feat: add usage-stats display mode to In-Flight Monitor action

This commit is contained in:
c4ch3c4d3
2026-08-14 12:56:45 -06:00
parent 4c4ec0e8fd
commit e585992087
4 changed files with 68 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export function registerDataSources(): void {
let items: DataSourceItem[] = [];
try {
const models = await fetchModels(cfgFromSettings(settings));
items = models.map((m) => ({ label: `${m.id} (${m.status})`, value: m.id }));
items = [{ label: "All models", value: "all" }, ...models.map((m) => ({ label: `${m.id} (${m.status})`, value: m.id }))];
} catch {
items = [];
}
+1 -1
View File
@@ -24,7 +24,7 @@ export interface InflightRenderOptions {
}
export function renderInflight(opts: InflightRenderOptions): string {
const name = escapeXml(shorten(opts.modelName));
const name = escapeXml(shorten(opts.modelName === "all" ? "ALL MODELS" : opts.modelName));
if (opts.offline) {
return frame("#10131a", [