codex-copilot-dx 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -9
- package/bin/cli.mjs +1 -1
- package/docs/ARCHITECTURE.md +26 -0
- package/docs/REFERENCE.md +136 -87
- package/package.json +6 -4
- package/src/cli-options.mjs +1 -1
- package/src/dashboard/console.js +87 -35
- package/src/dashboard/index.html +95 -23
- package/src/dashboard/language.js +40 -5
- package/src/dashboard/status.js +11 -2
- package/src/dashboard/theme.js +39 -16
- package/src/dashboard/ui.css +71 -0
- package/src/dashboard/ui.js +27 -1
- package/src/dashboard-api.mjs +7 -2
- package/src/package-update.mjs +40 -8
- package/src/prediction-retirement.mjs +2 -7
- package/src/provider-metadata.mjs +2 -1
- package/src/provider-runtime.mjs +20 -6
- package/src/release-install.mjs +192 -0
- package/src/service-control.mjs +9 -7
- package/src/startup-ui.mjs +5 -2
- package/src/terminal-colors.mjs +20 -0
- package/src/terminal-console.mjs +6 -2
- package/src/user-settings.mjs +22 -1
- package/src/version.mjs +2 -6
- package/src/windows-command.mjs +13 -1
package/src/dashboard/console.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
const el = id => document.getElementById(id);
|
|
3
3
|
const label = (node, key, values = {}) => globalThis.ccdxLanguage.set(node, key, values);
|
|
4
|
-
const titles = { overview: "overview", codex: "Codex", claude: "Claude", models: "model_services", usage: "usage_and_diagnostics", system: "system_and_settings" };
|
|
4
|
+
const titles = { overview: "overview", codex: "Codex", claude: "Claude", models: "model_services", usage: "usage_and_diagnostics", requests: "request_records", system: "system_and_settings" };
|
|
5
5
|
let current = "overview", settings = null, settingsPending = false, stopped = false, timer = null, ticks = 0;
|
|
6
|
-
let sourceDirty = false, sourceGeneration = 0, modelsSource = null;
|
|
6
|
+
let sourceDirty = false, reviewDirty = false, sourceModels = [], modelsPreference = null, sourceGeneration = 0, modelsSource = null;
|
|
7
7
|
let settingsReadAt = null;
|
|
8
8
|
function navigate() {
|
|
9
9
|
const route = location.hash.slice(1), next = Object.hasOwn(titles, route) ? route : "overview";
|
|
@@ -28,7 +28,24 @@
|
|
|
28
28
|
const states = { immediate: "effective_now", terminal_unavailable: "terminal_animation_unavailable_in_this_output_mode", next_start: "next_ccdx_start", next_call: "applies_to_new_calls", needs_setup: "setup_required",
|
|
29
29
|
next_config_request: "next_configuration_request_cached_suggestions_may_remain", needs_app_relaunch: "reopen_the_client_to_finish", needs_service_restart: "restart_ccdx_to_finish" };
|
|
30
30
|
const selectedSource = () => providerEntries.find(source => source.id === el("source-provider").value);
|
|
31
|
-
const sourceReady = () => Boolean(selectedSource()) && (!selectedSource().selection.models_required || Boolean(el("source-model").value && el("source-review").value));
|
|
31
|
+
const sourceReady = () => Boolean(selectedSource()) && (!selectedSource().selection.models_required || Boolean(modelsSource === selectedSource().id && el("source-model").value && el("source-review").value));
|
|
32
|
+
const reviewLocked = () => selectedSource()?.id === "github" && settings?.providers?.github?.preference?.source === "environment";
|
|
33
|
+
function syncReviewButton() {
|
|
34
|
+
const sameSource = selectedSource()?.id === settings?.providers?.codex_provider;
|
|
35
|
+
el("save-review").disabled = settingsPending || !sameSource || reviewLocked() || modelsSource !== selectedSource()?.id || !el("source-review").value;
|
|
36
|
+
el("source-review").disabled = settingsPending || reviewLocked() || !sourceModels.length;
|
|
37
|
+
el("source-review-effort").disabled = el("source-review").disabled;
|
|
38
|
+
if (reviewLocked()) label(el("review-control-note"), "review_environment_override");
|
|
39
|
+
else if (!sameSource) label(el("review-control-note"), "review_save_source_first");
|
|
40
|
+
}
|
|
41
|
+
function syncEfforts(chosen) {
|
|
42
|
+
const model = sourceModels.find(model => model.id === el("source-review").value);
|
|
43
|
+
const efforts = model?.auto_review_efforts || model?.reasoning_efforts || [];
|
|
44
|
+
const follow = document.createElement("option");follow.value = "";label(follow, "follow_client");
|
|
45
|
+
el("source-review-effort").replaceChildren(follow, ...efforts.map(effort => { const option = document.createElement("option");option.value = effort;option.textContent = effort;return option; }));
|
|
46
|
+
el("source-review-effort").value = efforts.includes(chosen) ? chosen : "";
|
|
47
|
+
syncReviewButton();
|
|
48
|
+
}
|
|
32
49
|
function syncSources() {
|
|
33
50
|
const selector = el("source-provider"), selected = sourceDirty ? selector.value : settings?.providers?.codex_provider || selector.value;
|
|
34
51
|
const entries = providerEntries.filter(source => source.selection?.codex);
|
|
@@ -40,10 +57,17 @@
|
|
|
40
57
|
}
|
|
41
58
|
if (entries.some(source => source.id === selected)) selector.value = selected;
|
|
42
59
|
el("apply-source").disabled = settingsPending || !sourceReady();
|
|
60
|
+
syncReviewButton();
|
|
43
61
|
}
|
|
44
|
-
window.addEventListener("ccdx:providers", () => { syncSources();void loadSourceModels(); });
|
|
62
|
+
window.addEventListener("ccdx:providers", () => { syncSources();if (current === "codex") void loadSourceModels(); });
|
|
45
63
|
function applySettings(data) {
|
|
46
64
|
settings = data;
|
|
65
|
+
el("terminal-color-theme").value = data.color_theme || "green";
|
|
66
|
+
el("terminal-color-theme").disabled = settingsPending;
|
|
67
|
+
el("terminal-color-sample").dataset.terminalPalette = data.color_theme || "green";
|
|
68
|
+
el("animation-settings").dataset.terminalPalette = data.color_theme || "green";
|
|
69
|
+
label(el("terminal-color-note"), data.terminal?.mode !== "status"
|
|
70
|
+
? "terminal_theme_unavailable" : "terminal_theme_applied");
|
|
47
71
|
for (const key of ["terminal_animation_enabled", "open_webui", "image_enabled", "prediction_enabled"]) {
|
|
48
72
|
const input = el(`setting-${key}`), effective = data.effective[key];
|
|
49
73
|
input.checked = data.saved[key];input.disabled = Boolean(effective.locked);
|
|
@@ -57,21 +81,19 @@
|
|
|
57
81
|
label(el("effect-history"), data.history.source === "environment" ? "controlled_by_environment" : "applies_to_new_calls");
|
|
58
82
|
label(el("settings-note"), "settings_read_from_the_running_service");
|
|
59
83
|
el("page-settings-note").textContent = "";
|
|
60
|
-
const state = data.providers
|
|
84
|
+
const state = data.providers;
|
|
61
85
|
syncSources();
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
el("source-control-note").replaceChildren();
|
|
86
|
+
if (current === "codex" && state && (modelsSource !== el("source-provider").value || !sourceDirty && !reviewDirty && modelsPreference !== JSON.stringify(state[el("source-provider").value]?.preference))) void loadSourceModels();
|
|
87
|
+
el("m365-control-note").replaceChildren();
|
|
66
88
|
if (state) {
|
|
67
89
|
const source = document.createElement("span"), m365 = document.createElement("span");
|
|
68
90
|
label(source, "codex_source_source", { source: providerEntries.find(entry => entry.id === state.codex_provider)?.name || state.codex_provider });
|
|
69
91
|
const status = { ready: "ready", checking: "checking", disabled: "disabled", unsupported: "unsupported", idle: "unknown", unavailable: "unavailable" }[state.m365?.state] || "unknown";
|
|
70
92
|
label(m365, "microsoft_365_state", { state: { key: status } });
|
|
71
|
-
el("source-control-note").
|
|
93
|
+
el("source-control-note").replaceChildren(source);el("m365-control-note").append(m365);
|
|
72
94
|
if (state.m365?.reason) {
|
|
73
95
|
const detail = document.createElement("details"), summary = document.createElement("summary"), code = document.createElement("code");
|
|
74
|
-
label(summary, "message");code.textContent = state.m365.reason;detail.append(summary, code);el("
|
|
96
|
+
label(summary, "message");code.textContent = state.m365.reason;detail.append(summary, code);el("m365-control-note").append(detail);
|
|
75
97
|
}
|
|
76
98
|
}
|
|
77
99
|
el("process-notice").textContent = data.terminal?.last_notice || "";
|
|
@@ -79,6 +101,7 @@
|
|
|
79
101
|
async function loadSettings() {
|
|
80
102
|
if (settingsPending) return;
|
|
81
103
|
settingsPending = true;
|
|
104
|
+
el("terminal-color-theme").disabled = true;
|
|
82
105
|
try { applySettings(await api());settingsReadAt = new Date().toLocaleTimeString(); }
|
|
83
106
|
catch (error) {
|
|
84
107
|
for (const id of ["settings-note", "page-settings-note"]) {
|
|
@@ -86,69 +109,98 @@
|
|
|
86
109
|
el(id).title = error.message;
|
|
87
110
|
}
|
|
88
111
|
}
|
|
89
|
-
finally { settingsPending = false;el("apply-source").disabled = !sourceReady(); }
|
|
112
|
+
finally { settingsPending = false;el("terminal-color-theme").disabled = !settings;el("apply-source").disabled = !sourceReady();syncReviewButton(); }
|
|
90
113
|
}
|
|
91
114
|
async function change(body, button) {
|
|
92
115
|
if (settingsPending) return;
|
|
93
116
|
settingsPending = true;
|
|
94
|
-
const controls = [...document.querySelectorAll("[role=switch], #save-history, #clean-history, #fix-prediction, #apply-source, #m365-on, #m365-off")];
|
|
117
|
+
const controls = [...document.querySelectorAll("[role=switch], #save-history, #clean-history, #fix-prediction, #apply-source, #save-review, #source-provider, #source-model, #source-review, #source-review-effort, #terminal-color-theme, #m365-on, #m365-off")];
|
|
95
118
|
controls.forEach(input => { input.disabled = true; });
|
|
96
119
|
label(el("settings-note"), "applying");
|
|
97
120
|
if (button) button.setAttribute("aria-busy", "true");
|
|
98
121
|
try {
|
|
99
|
-
const data = await api(body);
|
|
100
|
-
|
|
122
|
+
const data = await api(body);
|
|
123
|
+
if (body.action === "provider" && body.operation === "switch") sourceDirty = false;
|
|
124
|
+
if (body.action === "provider" && body.operation === "auto-review") reviewDirty = false;
|
|
125
|
+
if (body.action === "provider" && body.operation === "off") { sourceDirty = false;reviewDirty = false; }
|
|
126
|
+
el("review-control-note").textContent = "";
|
|
127
|
+
applySettings(data);
|
|
128
|
+
if (body.action !== "color_theme") { await dashboardRefresh.refresh("status", { force: true });await dashboardRefresh.refresh("auth", { force: true }); }
|
|
101
129
|
}
|
|
102
130
|
catch (error) {
|
|
103
131
|
if (settings) applySettings(settings);
|
|
104
|
-
|
|
132
|
+
if (body.action === "color_theme") { label(el("terminal-color-note"), "not_saved_error", { error: error.message });return; }
|
|
133
|
+
el("settings-note").textContent = error.message;el("source-control-note").textContent = error.message;el("m365-control-note").textContent = error.message;el("review-control-note").textContent = error.message;el("effect-history").textContent = error.message;
|
|
105
134
|
if (body.key) el(`effect-${body.key}`).textContent = error.message;
|
|
106
135
|
} finally {
|
|
107
136
|
settingsPending = false;controls.forEach(input => { input.disabled = false; });
|
|
108
137
|
if (settings) for (const [key, value] of Object.entries(settings.effective)) if (value.locked) el(`setting-${key}`).disabled = true;
|
|
109
138
|
if (settings?.history.source === "environment") el("save-history").disabled = true;
|
|
110
|
-
el("apply-source").disabled = !
|
|
139
|
+
el("apply-source").disabled = !sourceReady();el("source-model").disabled = !selectedSource()?.selection.models_required;syncReviewButton();
|
|
111
140
|
button?.removeAttribute("aria-busy");
|
|
112
141
|
}
|
|
113
142
|
}
|
|
114
143
|
for (const input of document.querySelectorAll("[role=switch]")) input.addEventListener("change", () => {
|
|
115
144
|
void change({ action: "preference", key: input.id.slice("setting-".length), value: input.checked }, input);
|
|
116
145
|
});
|
|
146
|
+
el("terminal-color-theme").addEventListener("change", () => void change({ action: "color_theme", theme: el("terminal-color-theme").value }, el("terminal-color-theme")));
|
|
117
147
|
el("save-history").addEventListener("click", () => void change({ action: "history_limit", mib: Number(el("history-limit").value) }, el("save-history")));
|
|
118
148
|
el("clean-history").addEventListener("click", () => {
|
|
119
149
|
if (window.confirm(globalThis.ccdxLanguage.format("clear_inactive_codex_conversation_data_older_continuation_ids_ma"))) void change({ action: "history_clean" }, el("clean-history"));
|
|
120
150
|
});
|
|
121
151
|
el("fix-prediction").addEventListener("click", () => void change({ action: "prediction_fix" }, el("fix-prediction")));
|
|
122
|
-
for (const operation of ["on", "off"]) el(`m365-${operation}`).addEventListener("click", () =>
|
|
152
|
+
for (const operation of ["on", "off"]) el(`m365-${operation}`).addEventListener("click", () => {
|
|
153
|
+
if (operation === "off" && !window.confirm(globalThis.ccdxLanguage.format("confirm_disable_m365"))) return;
|
|
154
|
+
void change({ action: "provider", operation }, el(`m365-${operation}`));
|
|
155
|
+
});
|
|
123
156
|
async function loadSourceModels() {
|
|
124
157
|
const generation = ++sourceGeneration;
|
|
125
158
|
const source = selectedSource(), needsModels = source?.selection.models_required;
|
|
126
|
-
el("source-model").
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
159
|
+
el("source-model-field").hidden = !needsModels;el("source-model-note").hidden = Boolean(needsModels);
|
|
160
|
+
el("source-model").disabled = !needsModels;
|
|
161
|
+
if (!source) { sourceModels = [];syncReviewButton();return; }
|
|
162
|
+
const unsaved = (sourceDirty || reviewDirty) && modelsSource === source.id ? {
|
|
163
|
+
model: el("source-model").value, auto_review_model: el("source-review").value, auto_review_effort: el("source-review-effort").value } : null;
|
|
164
|
+
el("save-review").disabled = true;el("source-review").disabled = true;el("source-review-effort").disabled = true;
|
|
165
|
+
el("apply-source").disabled = settingsPending || Boolean(needsModels);
|
|
166
|
+
label(el("review-control-note"), "model_choices_loading");
|
|
131
167
|
try {
|
|
132
168
|
const response = await fetch(`/_ccdx/ui/models/live?provider=${encodeURIComponent(source.id)}`, { headers: { "X-CCDX-Dashboard": "1" }, cache: "no-store", signal: AbortSignal.timeout(15000) });
|
|
133
|
-
const data = await response.json();if (!response.ok) throw new Error(data.error);
|
|
169
|
+
const data = await response.json();if (!response.ok || !Array.isArray(data.models)) throw new Error(data.error || "Invalid model list");
|
|
134
170
|
if (generation !== sourceGeneration) return;
|
|
135
171
|
const models = data.models.filter(model => model.selectable && model.clients.includes("codex"));
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
172
|
+
sourceModels = models;
|
|
173
|
+
const preference = settings?.providers?.[source.id]?.preference;
|
|
174
|
+
for (const [id, key] of [["source-model", "model"], ["source-review", "auto_review_model"]]) {
|
|
175
|
+
el(id).replaceChildren(...models.map(model => { const option = document.createElement("option");option.value = model.id;option.textContent = model.id;return option; }));
|
|
176
|
+
const saved = key === "auto_review_model" && source.id === "github" ? preference?.model : preference?.[key];
|
|
177
|
+
const chosen = unsaved?.[key] || saved;
|
|
178
|
+
if (chosen && models.some(model => model.id === chosen)) el(id).value = chosen;
|
|
179
|
+
}
|
|
180
|
+
modelsSource = source.id;modelsPreference = JSON.stringify(preference);
|
|
181
|
+
const savedEffort = source.id === "github" ? preference?.reasoningEffort : preference?.auto_review_effort === undefined ? "low" : preference.auto_review_effort;
|
|
182
|
+
el("review-control-note").textContent = "";
|
|
183
|
+
syncEfforts(unsaved ? unsaved.auto_review_effort : savedEffort);
|
|
184
|
+
el("apply-source").disabled = settingsPending || !sourceReady();
|
|
185
|
+
} catch (error) {
|
|
186
|
+
if (generation === sourceGeneration) {
|
|
187
|
+
modelsSource = null;sourceModels = [];el("source-review").replaceChildren();el("source-review-effort").replaceChildren();
|
|
188
|
+
el("review-control-note").textContent = error.message;el("apply-source").disabled = settingsPending || !sourceReady();
|
|
141
189
|
}
|
|
142
|
-
|
|
143
|
-
el("apply-source").disabled = !el("source-model").value || !el("source-review").value;
|
|
144
|
-
} catch (error) { if (generation === sourceGeneration) el("source-control-note").textContent = error.message; }
|
|
190
|
+
}
|
|
145
191
|
}
|
|
146
|
-
el("source-provider").addEventListener("change", () => { sourceDirty = true;void loadSourceModels(); });
|
|
147
|
-
|
|
192
|
+
el("source-provider").addEventListener("change", () => { sourceDirty = true;reviewDirty = false;void loadSourceModels(); });
|
|
193
|
+
el("source-model").addEventListener("change", () => { sourceDirty = true; });
|
|
194
|
+
el("source-review").addEventListener("change", () => { reviewDirty = true;syncEfforts("low"); });
|
|
195
|
+
el("source-review-effort").addEventListener("change", () => { reviewDirty = true; });
|
|
148
196
|
el("apply-source").addEventListener("click", () => {
|
|
149
197
|
const provider = el("source-provider").value;
|
|
150
|
-
void change({ action: "provider", operation: "switch", provider, ...(selectedSource()?.selection.models_required ? {
|
|
198
|
+
void change({ action: "provider", operation: "switch", provider, ...(selectedSource()?.selection.models_required ? {
|
|
199
|
+
model: el("source-model").value, ...(settings?.providers?.codex_provider === provider ? {} : {
|
|
200
|
+
auto_review_model: el("source-review").value, auto_review_effort: el("source-review-effort").value || null }) } : {}) }, el("apply-source"));
|
|
151
201
|
});
|
|
202
|
+
el("save-review").addEventListener("click", () => void change({ action: "provider", operation: "auto-review", provider: el("source-provider").value,
|
|
203
|
+
model: el("source-review").value, auto_review_effort: el("source-review-effort").value || null }, el("save-review")));
|
|
152
204
|
// Only the small in-memory status snapshot is read at this cadence. Catalogs
|
|
153
205
|
// and retained usage keep their existing on-demand, bounded refresh policy.
|
|
154
206
|
function schedule() {
|
package/src/dashboard/index.html
CHANGED
|
@@ -22,13 +22,14 @@
|
|
|
22
22
|
<nav aria-label="Navigation" data-i18n-label="main_navigation">
|
|
23
23
|
<a href="#overview" data-route="overview" aria-current="page" data-i18n="overview">Overview</a>
|
|
24
24
|
<span class="nav-group" data-i18n="clients">Apps</span>
|
|
25
|
-
<a href="#codex" data-route="codex">Codex</a>
|
|
26
|
-
<a href="#claude" data-route="claude">Claude</a>
|
|
25
|
+
<a class="nav-child" href="#codex" data-route="codex">Codex</a>
|
|
26
|
+
<a class="nav-child" href="#claude" data-route="claude">Claude</a>
|
|
27
27
|
<a href="#models" data-route="models" data-i18n="model_services">Model sources</a>
|
|
28
|
-
<a href="#usage" data-route="usage" data-i18n="usage_and_diagnostics">Usage
|
|
28
|
+
<a href="#usage" data-route="usage" data-i18n="usage_and_diagnostics">Usage</a>
|
|
29
|
+
<a href="#requests" data-route="requests" data-i18n="request_records">Requests</a>
|
|
29
30
|
<a href="#system" data-route="system" data-i18n="system_and_settings">Settings</a>
|
|
30
31
|
</nav>
|
|
31
|
-
<div class="sidebar-bottom"><button id="open-animation" type="button" aria-controls="animation-settings" aria-expanded="false" data-i18n="terminal_appearance">Terminal appearance</button
|
|
32
|
+
<div class="sidebar-bottom"><button id="open-animation" type="button" aria-controls="animation-settings" aria-expanded="false" data-i18n="terminal_appearance">Terminal appearance</button></div>
|
|
32
33
|
</aside>
|
|
33
34
|
|
|
34
35
|
<header class="topbar">
|
|
@@ -54,6 +55,27 @@
|
|
|
54
55
|
<section class="panel dashboard-section"><h2 data-i18n="this_run_usage">THIS RUN</h2><p id="runtime-usage" class="table-note"></p><p class="hint" data-i18n="updated_from_returned_usage_not_a_live_bill_pending_usage_is_not">Counts returned usage only. Pending usage is not included. This is not a live bill.</p></section>
|
|
55
56
|
</div>
|
|
56
57
|
<div data-view="codex" hidden>
|
|
58
|
+
<section class="panel dashboard-section" aria-labelledby="routing-heading">
|
|
59
|
+
<h2 id="routing-heading" data-i18n="codex_model_source">CODEX MODEL SOURCE</h2>
|
|
60
|
+
<p class="hint" data-i18n="source_changes_new_requests">Changes apply to later Codex requests.</p>
|
|
61
|
+
<div class="section-actions">
|
|
62
|
+
<label><span data-i18n="source">Source</span><select id="source-provider"></select></label>
|
|
63
|
+
<label id="source-model-field" hidden><span data-i18n="conversation_model">Conversation model</span><select id="source-model"></select></label>
|
|
64
|
+
<button id="apply-source" type="button" data-i18n="apply_source">Use this source</button>
|
|
65
|
+
</div>
|
|
66
|
+
<p id="source-model-note" class="hint" data-i18n="github_model_in_codex">Choose your conversation model in Codex.</p>
|
|
67
|
+
<div id="source-control-note" class="hint" role="status"></div>
|
|
68
|
+
</section>
|
|
69
|
+
<section class="panel dashboard-section" aria-labelledby="review-heading">
|
|
70
|
+
<h2 id="review-heading" data-i18n="auto_review_settings">AUTO REVIEW</h2>
|
|
71
|
+
<p class="hint" data-i18n="review_uses_selected_source">Reviews use the source selected above. Save the source and review choices separately.</p>
|
|
72
|
+
<div class="section-actions">
|
|
73
|
+
<label><span data-i18n="auto_review_model">Review model</span><select id="source-review"></select></label>
|
|
74
|
+
<label><span data-i18n="thinking_level">Thinking level</span><select id="source-review-effort"></select></label>
|
|
75
|
+
<button id="save-review" type="button" data-i18n="save_review">Save review settings</button>
|
|
76
|
+
</div>
|
|
77
|
+
<p id="review-control-note" class="hint" role="status"></p>
|
|
78
|
+
</section>
|
|
57
79
|
<section class="overview client-overview"><article class="card"><h2 data-i18n="codex_models">CODEX MODELS</h2><strong id="models">—</strong><p id="model-source">—</p></article></section>
|
|
58
80
|
<details class="panel dashboard-section" id="runtime-resources" open>
|
|
59
81
|
<summary data-i18n="codex_conversations">CODEX CONVERSATIONS</summary>
|
|
@@ -111,23 +133,19 @@
|
|
|
111
133
|
<div id="model-providers" class="provider-tabs" role="tablist" aria-label="Model providers" data-i18n-label="model_providers"></div>
|
|
112
134
|
<div class="section-actions"><button id="refresh-models" type="button" data-i18n="refresh">Refresh</button></div>
|
|
113
135
|
<p id="models-note" class="table-note" data-i18n="reading_provider_catalog">Loading model list…</p>
|
|
136
|
+
<details id="model-check-details" class="model-check-details" hidden><summary data-i18n="source_check_details">Check details</summary><dl id="model-check-fields" class="failure-detail"></dl><p class="hint" data-i18n="source_check_action">Use Refresh to check this source again.</p></details>
|
|
114
137
|
<div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="vendor">MODEL MAKER</th><th scope="col" data-i18n="api">CONNECTION TYPE</th><th scope="col" data-i18n="client">APP</th><th scope="col" data-i18n="reasoning">THINKING LEVEL</th><th scope="col" data-i18n="state">STATE</th></tr></thead><tbody id="live-models-body" role="tabpanel"><tr><td colspan="6" data-i18n="loading">Loading…</td></tr></tbody></table></div>
|
|
115
138
|
<p class="hint" data-i18n="catalog_listing_does_not_guarantee_inference_access">Listed does not mean your account can use it.</p>
|
|
116
139
|
</details>
|
|
117
|
-
<section class="panel dashboard-section" aria-labelledby="
|
|
118
|
-
<h2 id="
|
|
119
|
-
<p class="hint" data-i18n="
|
|
120
|
-
<div class="section-actions"><
|
|
121
|
-
<div
|
|
122
|
-
<div id="source-control-note" class="hint" role="status"></div>
|
|
140
|
+
<section class="panel dashboard-section" aria-labelledby="source-access-heading">
|
|
141
|
+
<h2 id="source-access-heading">Microsoft 365</h2>
|
|
142
|
+
<p class="hint" data-i18n="m365_source_access">Provides models for Codex and Claude on supported devices.</p>
|
|
143
|
+
<div class="section-actions"><button id="m365-on" type="button" data-i18n="enable_service">Enable source</button><button id="m365-off" type="button" data-i18n="disable_service">Disable source</button></div>
|
|
144
|
+
<div id="m365-control-note" class="hint" role="status"></div>
|
|
123
145
|
</section>
|
|
124
146
|
</div>
|
|
125
147
|
<div data-view="usage" hidden>
|
|
126
|
-
|
|
127
|
-
<summary data-i18n="requests_by_source">REQUESTS BY SOURCE</summary>
|
|
128
|
-
<p class="hint" data-i18n="results_since_startup_partial_usage_is_marked_separately">Results since startup. Partial usage is marked separately.</p>
|
|
129
|
-
<div class="table-wrap"><table><thead><tr><th data-i18n="source">Source</th><th data-i18n="protocol">Protocol</th><th data-i18n="active">Active</th><th data-i18n="completed">Completed</th><th data-i18n="incomplete">Incomplete</th><th data-i18n="failed">Failed</th><th data-i18n="cancelled">Cancelled</th><th data-i18n="unknown">Unknown</th></tr></thead><tbody id="source-requests-body"></tbody></table></div>
|
|
130
|
-
</details>
|
|
148
|
+
|
|
131
149
|
<details class="panel dashboard-section" id="model-usage" open>
|
|
132
150
|
<summary class="panel-heading"><h2 data-i18n="usage">MODEL USAGE</h2><span id="usage-state" data-i18n="reading_log">COUNTING</span></summary>
|
|
133
151
|
<div class="section-actions"><label><span data-i18n="source">Source</span> <select id="usage-provider"><option value="" data-i18n="all_providers">All providers</option></select></label><button id="clear-usage-day" type="button" hidden data-i18n="all_history">Show all</button><button id="refresh-usage" type="button" data-i18n="refresh">Refresh</button></div>
|
|
@@ -153,6 +171,13 @@
|
|
|
153
171
|
<p id="analytics-selection" class="hint" role="status" data-i18n="select_a_day_to_inspect_its_model_totals_no_history_is_distinct_">Select a day for its usage. No records does not mean zero requests.</p>
|
|
154
172
|
</details>
|
|
155
173
|
</details>
|
|
174
|
+
</div>
|
|
175
|
+
<div data-view="requests" hidden>
|
|
176
|
+
<details class="panel dashboard-section" id="source-requests">
|
|
177
|
+
<summary data-i18n="requests_by_source">REQUESTS BY SOURCE</summary>
|
|
178
|
+
<p class="hint" data-i18n="results_since_startup_partial_usage_is_marked_separately">Results since startup. Partial usage is marked separately.</p>
|
|
179
|
+
<div class="table-wrap"><table><thead><tr><th data-i18n="source">Source</th><th data-i18n="protocol">Protocol</th><th data-i18n="active">Active</th><th data-i18n="completed">Completed</th><th data-i18n="incomplete">Incomplete</th><th data-i18n="failed">Failed</th><th data-i18n="cancelled">Cancelled</th><th data-i18n="unknown">Unknown</th></tr></thead><tbody id="source-requests-body"></tbody></table></div>
|
|
180
|
+
</details>
|
|
156
181
|
<details class="lower" id="recent-failures" open>
|
|
157
182
|
<summary class="panel-heading"><h2 data-i18n="recent_inference_http_failures">RECENT REQUEST ISSUES</h2><span id="failure-count">requests + events</span></summary>
|
|
158
183
|
<ol id="failures"><li class="empty" data-i18n="reading_874bf">Reading…</li></ol>
|
|
@@ -168,20 +193,67 @@ Missing data is unknown. This panel keeps no prompts or images.</p>
|
|
|
168
193
|
</details>
|
|
169
194
|
</div>
|
|
170
195
|
<div data-view="system" hidden>
|
|
171
|
-
|
|
172
|
-
|
|
196
|
+
<section class="panel dashboard-section" aria-labelledby="web-appearance-title">
|
|
197
|
+
<h2 id="web-appearance-title" data-i18n="appearance_web_appearance">网页外观</h2>
|
|
198
|
+
<div class="appearance-row">
|
|
199
|
+
<div class="appearance-label"><label for="web-color-theme" data-i18n="appearance_color_theme">颜色主题</label><p data-i18n="appearance_browser_scope">只影响当前浏览器。</p></div>
|
|
200
|
+
<select id="web-color-theme" class="appearance-select"><option value="green" data-i18n="appearance_classic_green">经典绿(默认)</option><option value="klein" data-i18n="appearance_klein_blue">克莱因蓝</option></select>
|
|
201
|
+
</div>
|
|
202
|
+
<p id="web-color-note" class="appearance-note" role="status" data-i18n="theme_saved_browser">选择后,网页立即换色。</p>
|
|
203
|
+
</section>
|
|
204
|
+
|
|
205
|
+
<section class="panel dashboard-section" id="terminal-appearance" aria-labelledby="terminal-appearance-title">
|
|
206
|
+
<h2 id="terminal-appearance-title" data-i18n="terminal_appearance">终端外观</h2>
|
|
207
|
+
<div class="appearance-row">
|
|
208
|
+
<div class="appearance-label"><label for="terminal-color-theme" data-i18n="appearance_color_theme">颜色主题</label><p data-i18n="appearance_terminal_scope">与网页主题分别设置。</p></div>
|
|
209
|
+
<select id="terminal-color-theme" disabled class="appearance-select"><option value="green" data-i18n="appearance_classic_green">经典绿(默认)</option><option value="klein" data-i18n="appearance_klein_blue">克莱因蓝</option></select>
|
|
210
|
+
</div>
|
|
211
|
+
<p id="terminal-color-note" class="appearance-note" role="status" data-i18n="appearance_terminal_effect">表格即时换色,启动 Logo 下次生效。</p>
|
|
212
|
+
|
|
213
|
+
<div id="terminal-color-sample" class="terminal-sample" data-terminal-palette="green" aria-label="Terminal color preview" data-i18n-label="terminal_color_preview">
|
|
214
|
+
<div class="terminal-caption"><span>CCDX · Terminal</span><span data-i18n="appearance_sample">Sample data</span></div>
|
|
215
|
+
<div class="terminal-brand">
|
|
216
|
+
<pre class="terminal-logo" aria-hidden="true"> ▄▀█▄ ▄█▀▄
|
|
217
|
+
█ ▄███▄ █
|
|
218
|
+
▄▀▀█▀ ▄ ▀█▀▀▄
|
|
219
|
+
▀▄▄█▄ ▀ ▄█▄▄▀
|
|
220
|
+
█ ▀███▀ █
|
|
221
|
+
▀▄█▀ ▀█▄▀ </pre>
|
|
222
|
+
<div><strong>CCDX</strong><span>by Dale Xiao</span></div>
|
|
223
|
+
</div>
|
|
224
|
+
<pre class="terminal-table terminal-wide">┌─────────────────────┬───────────────────┐
|
|
225
|
+
│ Usage / this run │ Inference │
|
|
226
|
+
├─────────────────────┼───────────────────┤
|
|
227
|
+
│ Input 1.7M │ Requests 57 │
|
|
228
|
+
│ Output 5.6K │ Active 2 │
|
|
229
|
+
└─────────────────────┴───────────────────┘</pre>
|
|
230
|
+
<pre class="terminal-table terminal-compact">┌──────────────┬──────────────┐
|
|
231
|
+
│ Usage │ Inference │
|
|
232
|
+
├──────────────┼──────────────┤
|
|
233
|
+
│ Input 1.7M │ Requests 57 │
|
|
234
|
+
│ Output 5.6K │ Active 2 │
|
|
235
|
+
└──────────────┴──────────────┘</pre>
|
|
236
|
+
<pre class="terminal-notices">0 notices / details in WebUI</pre>
|
|
237
|
+
<pre class="terminal-motion"><span id="terminal-sample-frame">[ :::::::]</span> <span id="terminal-sample-status">Working</span></pre>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<div class="setting-row"><label for="setting-terminal_animation_enabled" data-i18n="terminal_animation">Terminal animation</label><input id="setting-terminal_animation_enabled" type="checkbox" role="switch" disabled><span id="effect-terminal_animation_enabled" class="hint" role="status"></span></div>
|
|
241
|
+
<details id="animation-settings" class="appearance-animation settings-panel">
|
|
242
|
+
<summary class="panel-heading"><h2 data-i18n="terminal_animation_9edf6">TERMINAL ANIMATION</h2><span id="animation-state" data-i18n="reading">READING</span></summary>
|
|
243
|
+
<div id="animation-options" class="animation-options" role="group" aria-label="Animation style" data-i18n-label="animation_theme"></div>
|
|
244
|
+
<div class="section-actions"><button id="save-animation" type="button" disabled data-i18n="save_selection">Save animation</button><span id="animation-note" role="status" data-i18n="applies_to_the_running_terminal">Updates the running terminal.</span></div>
|
|
245
|
+
</details>
|
|
246
|
+
</section>
|
|
247
|
+
|
|
173
248
|
<section class="panel dashboard-section" aria-labelledby="settings-heading">
|
|
174
249
|
<h2 id="settings-heading" data-i18n="service_settings">SERVICE SETTINGS</h2>
|
|
175
250
|
<p class="hint" data-i18n="saved_preference_and_effective_state_are_separate_environment_ov">Saved choices and current behavior are shown separately. Startup overrides and required restarts are listed.</p>
|
|
176
|
-
<div class="setting-row"><label for="setting-terminal_animation_enabled" data-i18n="terminal_animation">Terminal animation</label><input id="setting-terminal_animation_enabled" type="checkbox" role="switch" disabled><span id="effect-terminal_animation_enabled" class="hint" role="status"></span></div>
|
|
177
251
|
<div class="setting-row"><label for="setting-open_webui" data-i18n="open_webui_at_startup">Open dashboard on startup</label><input id="setting-open_webui" type="checkbox" role="switch" disabled><span id="effect-open_webui" class="hint" role="status"></span></div>
|
|
178
252
|
<p id="settings-note" class="hint" role="status" data-i18n="reading_settings">Reading settings…</p>
|
|
179
253
|
</section>
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
<div class="section-actions"><button id="save-animation" type="button" disabled data-i18n="save_selection">Save animation</button><span id="animation-note" role="status" data-i18n="applies_to_the_running_terminal">Updates the running terminal.</span></div>
|
|
184
|
-
</details>
|
|
254
|
+
|
|
255
|
+
<section class="panel dashboard-section"><h2 data-i18n="process_listener">LOCAL SERVICE</h2><p id="process-state" class="table-note"></p><p id="process-memory" class="hint"></p><p id="process-queues" class="hint"></p><p id="process-notice" class="hint" role="status"></p></section>
|
|
256
|
+
<section class="overview client-overview"><article class="card"><h2 data-i18n="http_traffic">SERVICE REQUESTS</h2><strong id="requests">—</strong><p id="request-errors">—</p><p id="http-error-breakdown">—</p><p><span data-i18n="per_request_limits_active">Per-request limits</span><br><span id="body-limits">—</span></p></article></section>
|
|
185
257
|
</div>
|
|
186
258
|
</main>
|
|
187
259
|
<footer data-i18n="local_only_visible_page_updates">THIS COMPUTER ONLY / UPDATES WHILE VISIBLE</footer>
|
|
@@ -1,17 +1,53 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
const translations = {
|
|
3
|
+
"source_catalog_unavailable": ["Model list unavailable: {code}", "模型列表不可用:{code}"],
|
|
4
|
+
"terminal_color_preview": ["Terminal color preview", "终端配色预览"],
|
|
5
|
+
"source_retry_time": ["Can retry after {time}.", "可在 {time} 后重试。"],
|
|
6
|
+
"appearance_web_appearance": ["WEB APPEARANCE", "网页外观"],
|
|
7
|
+
"appearance_color_theme": ["Color theme", "颜色主题"],
|
|
8
|
+
"appearance_browser_scope": ["This browser only.", "只影响当前浏览器。"],
|
|
9
|
+
"appearance_classic_green": ["Classic green (default)", "经典绿(默认)"],
|
|
10
|
+
"appearance_klein_blue": ["Klein blue", "克莱因蓝"],
|
|
11
|
+
"appearance_terminal_scope": ["Independent of the webpage theme.", "与网页主题分别设置。"],
|
|
12
|
+
"appearance_terminal_effect": ["Table updates now. Startup logo changes next launch.", "表格即时换色,启动 Logo 下次生效。"],
|
|
13
|
+
"appearance_sample": ["Sample data", "示例数据"],
|
|
14
|
+
"theme_saved_browser": ["Saved in this browser. Changes apply now.", "保存在此浏览器,立即生效。"],
|
|
15
|
+
"theme_tab_only": ["This tab only. Browser storage is unavailable.", "本次有效,浏览器未能保存。"],
|
|
16
|
+
"terminal_theme_applied": ["Table updated. Startup logo changes next launch.", "表格已换色,启动 Logo 下次生效。"],
|
|
17
|
+
"terminal_theme_unavailable": ["Saved. Colored output is unavailable in this terminal mode.", "已保存,当前终端模式不显示配色。"],
|
|
18
|
+
"source_check_details": ["Check details", "检查详情"],
|
|
19
|
+
"source_check_failed": ["{source}: model list update failed.", "{source}:模型列表更新失败。"],
|
|
20
|
+
"source_check_previous": ["Showing the list from {time}.", "当前显示 {time} 的列表。"],
|
|
21
|
+
"source_check_none": ["No previous model list is available.", "暂无可用的旧模型列表。"],
|
|
22
|
+
"source_check_time": ["Last check", "本次检查"],
|
|
23
|
+
"source_check_reason": ["Reason", "失败原因"],
|
|
24
|
+
"source_check_action": ["Use Refresh to check this source again.", "点击刷新,重新检查此来源。"],
|
|
25
|
+
"source_failure_summary": ["{source} / {detail}", "{source} / {detail}"],
|
|
3
26
|
"codex_body_admission_active_active_queued_queued_queue_limit_lim": ["Codex body admission: active {active} / queued {queued} / queue limit {limit}", "Codex请求体:进行中{active}\n排队{queued} / 队列上限{limit}"],
|
|
4
27
|
"terminal_animation_unavailable_in_this_output_mode": ["Terminal animation unavailable in this output mode", "当前输出模式不播放终端动效"],
|
|
5
28
|
"prediction_integration_setup": ["Suggestion setup", "建议设置"],
|
|
6
29
|
"visible_status_updates_every_2_seconds_catalogs_and_retained_usa": ["Visible status updates every 2 seconds. Catalogs and retained usage refresh on demand or every 30 minutes while open.", "可见状态每2秒更新。\n列表和留存用量按需更新,\n展开时每30分钟刷新。"],
|
|
30
|
+
"request_records": ["Requests", "请求记录"],
|
|
31
|
+
"source_changes_new_requests": ["Changes apply to later Codex requests.", "保存后用于新的 Codex 请求。"],
|
|
32
|
+
"conversation_model": ["Conversation model", "对话模型"],
|
|
33
|
+
"github_model_in_codex": ["Choose your conversation model in Codex.", "在 Codex 中选择对话模型。"],
|
|
34
|
+
"auto_review_settings": ["AUTO REVIEW", "自动审查"],
|
|
35
|
+
"review_uses_selected_source": ["Reviews use the source above. First source setup saves the initial review choices; later review changes save separately.", "审查使用上方所选来源。首次切入时一并保存初始审查设置,之后分别保存。"],
|
|
36
|
+
"thinking_level": ["Thinking level", "思考强度"],
|
|
37
|
+
"follow_client": ["Follow Codex (low if omitted)", "跟随 Codex(未指定时用 low)"],
|
|
38
|
+
"save_review": ["Save review settings", "保存审查设置"],
|
|
39
|
+
"m365_source_access": ["Provides models for Codex and Claude on supported devices.", "在支持的设备上为 Codex 和 Claude 提供模型。"],
|
|
40
|
+
"confirm_disable_m365": ["Disable Microsoft 365? Its Claude connection will stop and unchanged CCDX-owned settings will be restored. Codex will use GitHub Copilot. Your sign-in and usage history will be kept.", "停用 Microsoft 365?Claude 本地连接将关闭,未被您改动的 CCDX 设置将恢复。Codex 将改用 GitHub Copilot。登录信息和用量记录会保留。"],
|
|
41
|
+
"review_environment_override": ["Controlled by CCDX_AUTO_REVIEW_MODEL. Change that startup setting first.", "由 CCDX_AUTO_REVIEW_MODEL 指定。请先调整启动设置。"],
|
|
42
|
+
"review_save_source_first": ["Save this source before saving review settings.", "请先保存所选来源,再保存审查设置。"],
|
|
43
|
+
"model_choices_loading": ["Loading model choices…", "正在读取可选模型…"],
|
|
7
44
|
"clients": ["Apps", "应用"],
|
|
8
45
|
"model_services": ["Model sources", "模型来源"],
|
|
9
|
-
"usage_and_diagnostics": ["Usage
|
|
46
|
+
"usage_and_diagnostics": ["Usage", "用量统计"],
|
|
10
47
|
"system_and_settings": ["Settings", "设置"],
|
|
11
48
|
"main_navigation": ["Navigation", "页面导航"],
|
|
12
49
|
"local_control": ["LOCAL CONTROL", "本机控制"],
|
|
13
50
|
"terminal_appearance": ["Terminal appearance", "终端外观"],
|
|
14
|
-
"local_service_client_specific_capabilities_stay_with_their_clien": ["Runs on this computer. Each app has its own features.", "在本机运行。\n各应用功能分别列出。"],
|
|
15
51
|
"configuration_observation": ["SETUP AND ACTIVITY", "接入状态"],
|
|
16
52
|
"codex_conversations": ["CODEX CONVERSATIONS", "对话处理"],
|
|
17
53
|
"codex_conversation_buffer": ["CONVERSATION BUFFER", "对话暂存"],
|
|
@@ -31,11 +67,11 @@
|
|
|
31
67
|
"service_settings": ["SERVICE SETTINGS", "服务设置"],
|
|
32
68
|
"saved_preference_and_effective_state_are_separate_environment_ov": ["Saved choices and current behavior are shown separately. Startup overrides and required restarts are listed.", "已保存与已生效分别显示。\n启动限制与重启要求会注明。"],
|
|
33
69
|
"terminal_animation": ["Terminal animation", "终端动效"],
|
|
34
|
-
"open_webui_at_startup": ["Open dashboard on startup", "
|
|
70
|
+
"open_webui_at_startup": ["Open dashboard on startup", "启动时打开网页"],
|
|
35
71
|
"reading_settings": ["Reading settings…", "读取设置中…"],
|
|
36
72
|
"codex_model_source": ["CODEX MODEL SOURCE", "模型来源"],
|
|
37
73
|
"catalog_tabs_only_change_the_view_apply_explicitly_to_change_the": ["Tabs only browse models. Apply changes the source for later Codex requests.", "切换标签只查看模型。\n保存后更改后续请求的来源。"],
|
|
38
|
-
"auto_review_model": ["Review model", "
|
|
74
|
+
"auto_review_model": ["Review model", "自动审查模型"],
|
|
39
75
|
"apply_source": ["Use this source", "使用来源"],
|
|
40
76
|
"enable_service": ["Enable source", "开启接入"],
|
|
41
77
|
"disable_service": ["Disable source", "停用接入"],
|
|
@@ -413,7 +449,6 @@
|
|
|
413
449
|
"Main navigation": "main_navigation",
|
|
414
450
|
"LOCAL CONTROL": "local_control",
|
|
415
451
|
"Terminal appearance": "terminal_appearance",
|
|
416
|
-
"Local service. Client-specific capabilities stay with their client.": "local_service_client_specific_capabilities_stay_with_their_clien",
|
|
417
452
|
"CONFIGURATION + OBSERVATION": "configuration_observation",
|
|
418
453
|
"CODEX CONVERSATIONS": "codex_conversations",
|
|
419
454
|
"CODEX CONVERSATION BUFFER": "codex_conversation_buffer",
|
package/src/dashboard/status.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
let contextCompactions = {};
|
|
5
5
|
let failureSignature;
|
|
6
6
|
let contextSignature;
|
|
7
|
+
const sourceNames = new Map([["github", "GitHub Copilot"], ["m365", "Microsoft 365"]]);
|
|
7
8
|
|
|
8
9
|
function renderProviders(data) {
|
|
9
10
|
const providers = data.providers || [];
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
auth.replaceChildren();clients.replaceChildren();requests.replaceChildren();
|
|
16
17
|
const routes = [];
|
|
17
18
|
for (const provider of providers) {
|
|
19
|
+
sourceNames.set(provider.id, provider.name);
|
|
18
20
|
const identity = provider.auth || {};
|
|
19
21
|
const authRow = tableRow([provider.name, identity.account || "—", states[identity.state] || "unknown",
|
|
20
22
|
states[provider.state] || "unknown", identity.checked_at || "—", duration(identity.expires_in_ms)], { labels: [2, 3] });
|
|
@@ -83,15 +85,22 @@
|
|
|
83
85
|
details.dataset.key = `${failure.at}/${failure.request_id || failure.response_id}/${failure.code}`;
|
|
84
86
|
details.open = expanded.has(details.dataset.key);
|
|
85
87
|
const title = document.createElement("summary");
|
|
86
|
-
|
|
88
|
+
const summary = {
|
|
87
89
|
detail: phrase("time_model_code", {
|
|
88
90
|
time: failure.at ? String(failure.at) : phrase("unknown_time"),
|
|
89
91
|
model: failure.model ? String(failure.model).slice(0, 80) : phrase("unknown_model"),
|
|
90
92
|
code: failure.code ? String(failure.code).slice(0, 80) : phrase("unknown_error"),
|
|
91
93
|
}),
|
|
92
94
|
retry: phrase(failure.retried ? "retry_attempted" : "no_retry"),
|
|
93
|
-
}
|
|
95
|
+
};
|
|
96
|
+
localize(title, "detail_retry", summary);
|
|
94
97
|
const timeline = failure.timeline;
|
|
98
|
+
const provider = failure.provider || timeline?.provider;
|
|
99
|
+
if (provider) {
|
|
100
|
+
const source = sourceNames.get(provider) || provider;
|
|
101
|
+
const original = phrase("detail_retry", summary);
|
|
102
|
+
localize(title, "source_failure_summary", { source, detail: original });
|
|
103
|
+
}
|
|
95
104
|
const timings = timeline?.timings_ms || {};
|
|
96
105
|
const timingText = ["admission", "body", "history", "images", "serialization", "upstream_start", "upstream_headers", "first_output", "last_activity", "terminal", "finished"]
|
|
97
106
|
.filter((key) => finite(timings[key])).map((key) => `${key}=${Number(timings[key]).toFixed(1)}`).join(" / ");
|