codex-copilot-dx 1.2.8 → 1.2.9
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 +1 -1
- package/docs/ARCHITECTURE.md +8 -0
- package/docs/REFERENCE.md +10 -9
- package/package.json +1 -1
- package/src/dashboard/console.js +17 -7
- package/src/dashboard/index.html +74 -54
- package/src/dashboard/language.js +40 -3
- package/src/dashboard/status.js +48 -17
- package/src/dashboard/ui.css +28 -5
- package/src/dashboard/ui.js +15 -5
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ No Node or Git? Download [install.sh](https://github.com/DaleXiao/codex-copilot-
|
|
|
18
18
|
|
|
19
19
|
CCDX reuses a compatible local credential or starts GitHub Device Flow, listens on `127.0.0.1:2026`, configures Codex, and opens the App. Interactive desktop starts also open the local WebUI once; use `ccdx --no-browser` or disable this in WebUI settings. No client binary patch is needed. On Windows, open the App manually unless native prediction setup is enabled. In restricted Windows PowerShell, use `npm.cmd` to install and `ccdx.cmd` for the first launch, or run `ccdx.cmd doctor --fix`. Startup, updates and explicit repair remove only CCDX's exact npm-generated `.ps1` launchers so later calls can use `ccdx`. The npm package adds no install hook or policy change; custom launchers are preserved. npm's own script is untouched. The configured `dummy` API key is a placeholder, not a credential.
|
|
20
20
|
|
|
21
|
-
The [local control console](http://127.0.0.1:2026/)
|
|
21
|
+
The [local control console](http://127.0.0.1:2026/) separates Overview, indented Codex/Claude pages, Model sources, Usage, Requests, Checks & repairs and Settings. Its sticky header stays stable across modules; page switches return to the top, while refreshes preserve scroll. Codex owns source/model, Auto Review, images, input suggestions and conversation buffering, with request performance separate from maintenance. Model sources owns accounts, catalogs and M365 access; browsing never changes routing. Claude shows each app's setup separately and labels combined Messages performance. Checks & repairs owns runtime diagnostics; Settings keeps appearance, startup and updates. Usage offers animated bars (default) or curves with scoped filters and no extra requests; reduced motion stays static. Trends load on demand. Recent requests open by default, with technical metadata folded into each row. Overview and the live terminal share an approximate token cache hit rate, preserving partial/unknown states. Overview's six activity dots share status polling; only idle has a breathing halo, failed or six-second-old evidence is unknown, and short requests can fall between snapshots. The existing style and logo remain. System proxy exceptions accept shortened IPv4 networks; M365 network failures retain specific, redacted reasons.
|
|
22
22
|
|
|
23
23
|
Startup shows bounded checks, sources with discovered model lists and Claude Code/App configuration. Prediction normally uses one summary line; `ccdx prediction status` retains recovery and environment details. After Ready, an interactive terminal shows current source/Claude state and a line-framed table of this process's returned usage and inference counters. Notices and activity each have their own line; individual requests do not scroll. Input includes reused input tokens. `ccdx --verbose` (also `--show-request-id`, or debug logging) retains detail output; optional file logging remains independently controlled. Source and Claude summaries wrap on narrow terminals. Failed reads show previous-data status and the last successful update time. Non-TTY, CI, dumb, or terminals too small for the full region use plain output (at least 40 columns / 16 rows are required). `Ready` only means the core service is available; discovered catalogs and configured clients do not prove inference access.
|
|
24
24
|
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -433,3 +433,11 @@ The existing same-origin bounded settings action saves terminal color through th
|
|
|
433
433
|
The existing status payload projects `model_activity.active` from the three fixed inference route counters plus actual image-generation activity, never total HTTP activity or image MCP calls. It adds no history store, provider request or listener. `dashboard/activity.js` consumes this metadata through the existing refresh path, expires stale evidence after six seconds and pauses offscreen animation. Idle, active and unknown remain distinct; CSS owns six theme-colored dots and the idle-only halo. Terminal Cache hit reads the existing raw runtime aggregate rather than deriving a ratio from rounded display numbers.
|
|
434
434
|
|
|
435
435
|
The Claude gateway still relays original native SSE bytes. `stream-performance.mjs` classifies only nonempty text, thinking and tool-argument deltas as first output; empty and signature-only deltas remain transport metadata. Sparse/interleaved blocks are not reordered or translated. Existing provider generations, locked atomic settings writes, cancellation and route ownership remain the composition boundaries.
|
|
436
|
+
|
|
437
|
+
## Dashboard layout and information scopes (1.2.9)
|
|
438
|
+
|
|
439
|
+
The existing CSS grid reserves explicit header/body/footer tracks; the body owns spare space from the full-height sidebar. The header uses an opaque themed sticky surface, stable action slots and a deliberate compact toolbar. Scrollbar space is stable, with an always-scroll fallback for older engines. `console.js` owns route titles/descriptions, scroll reset and main-content focus; refresh code does not navigate or reset scroll.
|
|
440
|
+
|
|
441
|
+
The eight existing views remain. `status.js` groups Overview clients by application using explicit selected-source evidence, retains all registered sources and projects separate Claude setup rows without inventing per-app Messages metrics. Account controls, catalog and access rows share the selected source in `ui.js`; source-management shortcuts browse without switching inference routes. Existing resource generations, cancellation, last-good snapshots and refresh cadence remain unchanged. Timestamps follow their own status/source/catalog/usage resources. Animation reads also check that Settings is visible.
|
|
442
|
+
|
|
443
|
+
HTML owns grouping: Codex buffer maintenance is separate from request performance, usage filters sit with the data they actually control, Requests prioritizes recent records and folds bounded technical fields into each row, and Checks & repairs owns runtime diagnostics. Settings owns preferences and updates. Request expansion is preserved by bounded request keys, and literal upstream values still use text nodes. Existing settings transactions, same-origin protections and confirmations remain in use; action failures target the affected controls. No framework, runtime dependency, endpoint, log scan, model call or installer policy is added.
|
package/docs/REFERENCE.md
CHANGED
|
@@ -1174,17 +1174,17 @@ once by default, using the configured main port when customized. See
|
|
|
1174
1174
|
startup preferences, output modes and effective-state rules. Assets require both
|
|
1175
1175
|
a loopback connection and loopback Host, including when the main listener uses LAN mode.
|
|
1176
1176
|
|
|
1177
|
-
The sidebar separates Overview, indented Codex/Claude Apps, Model sources, Usage, Requests, and Settings. Codex-specific images, prediction integration
|
|
1178
|
-
and conversation buffering stay under Codex. HTTP traffic counts include model
|
|
1177
|
+
The sidebar separates Overview, indented Codex/Claude Apps, Model sources, Usage, Requests, Checks & repairs, and Settings. Desktop header rows have explicit heights, the header sticks when it reaches the viewport top, and stable scrollbar space prevents horizontal movement between long and short pages. Narrow screens keep compact navigation and a two-row toolbar. Page switches reset scroll and move keyboard focus to the main content; background/manual data refreshes preserve scroll. Each page has its own purpose description, and data groups carry their own update times rather than a shared page-wide freshness claim. Codex-specific images, prediction integration
|
|
1178
|
+
and conversation buffering stay under Codex. Buffer controls and request performance have separate groups. HTTP traffic counts include model
|
|
1179
1179
|
catalogs and route errors; model outcomes and timing are named by protocol.
|
|
1180
1180
|
Microsoft 365's Claude Messages summary is not a Provider-wide request total.
|
|
1181
1181
|
|
|
1182
|
-
The
|
|
1182
|
+
The source access table uses bounded local credential metadata and Provider snapshots, showing only the selected source. Switching source tabs also changes the account controls and catalog, never application routing. Overview groups client rows by app and uses an explicitly selected source; it does not substitute a configured but unselected source when the selected source is unavailable. The source card still lists every registered source. Claude App and Claude Code have separate setup/local-service rows, while Messages performance stays combined and is labeled accordingly. A running local service does not prove the app is open.
|
|
1183
1183
|
A locally saved GitHub credential is not online entitlement. Account names with
|
|
1184
1184
|
underscores retain their exact display value; identity, keys and environment
|
|
1185
1185
|
values are not inferred from model names. Client configuration, gateway state,
|
|
1186
1186
|
recent requests and actual inference are separate observations. The top summary
|
|
1187
|
-
describes source/application status without mapping arrows. The source card counts and lists every discovered registered source, including disabled sources; availability and account evidence remain in the detailed tables. Each sidebar tab has a decorative inline SVG icon, with application entries indented. Terminal appearance has one Settings entry, and the animation selector has one separating rule.
|
|
1187
|
+
describes source/application status without mapping arrows. The source card counts and lists every discovered registered source, including disabled sources; availability and account evidence remain in the detailed tables. Each sidebar tab has a decorative inline SVG icon, with application entries indented. Terminal appearance has one Settings entry, and the animation selector has one separating rule. Settings contains webpage/terminal appearance, startup preferences and version updates. Local memory, queues, notices, raw HTTP traffic and request-size caps live under Checks & repairs → Runtime details. Account-check links identify the source and lead to its existing account tools. Save failures appear beside the affected controls; configuration repair previews and destructive-action confirmations remain in place.
|
|
1188
1188
|
|
|
1189
1189
|
Catalog tabs browse registered Provider directories without changing routing.
|
|
1190
1190
|
Rows retain protocol, eligible clients, reasoning metadata and directory state.
|
|
@@ -1210,6 +1210,8 @@ The separate current-run summary updates from returned usage in memory, without
|
|
|
1210
1210
|
rescanning retained logs at the status cadence.
|
|
1211
1211
|
Overview adds an approximate token cache hit rate: returned reused input tokens divided by returned input tokens, weighted by tokens rather than request percentages. Missing evidence is distinct from an explicit zero; all-unknown cache evidence, zero input and invalid counts display `—`. Mixed complete/incomplete cache evidence displays `~` before the recorded aggregate ratio. This describes recorded input reuse, not a request success ratio, invoice or whole-account cache statistic. Missing output alone does not invalidate usable input/cache evidence.
|
|
1212
1212
|
|
|
1213
|
+
The usage source selector applies to the whole page. Model selection controls both daily trends and the calendar; 7/30/90-day range and bar/line view belong to daily trends, and request/Token measure belongs to the fixed annual calendar. These controls do not redefine the all-history model table; selecting a known day narrows the table and Show all restores retained-history totals.
|
|
1214
|
+
|
|
1213
1215
|
Usage analytics remains collapsed until opened: 7/30/90-day charts and a bounded
|
|
1214
1216
|
365-day calendar in the browser time zone. Model/range/day selection reuses its
|
|
1215
1217
|
snapshot. Days outside retained history are distinct from zero recorded activity.
|
|
@@ -1247,8 +1249,7 @@ Client cancellations remain in verbose/file diagnostics as informational records
|
|
|
1247
1249
|
timeouts and actual failures remain notices. Non-TTY, CI, dumb and terminals under
|
|
1248
1250
|
40 columns or 16 rows retain plain output. At 40×16 the compact table keeps all metrics and short source/Code/App states. Larger terminals wrap full state descriptions. No runtime terminal dependency is added.
|
|
1249
1251
|
|
|
1250
|
-
Terminal appearance lives in Settings,
|
|
1251
|
-
screens. Preview frames load on opening; closing, hiding the view/page or reduced
|
|
1252
|
+
Terminal appearance lives only in Settings. Preview frames load on opening; closing, hiding the view/page or reduced
|
|
1252
1253
|
motion stops preview timers. Saving changes the running supported status terminal.
|
|
1253
1254
|
|
|
1254
1255
|
The recent-failure view merges bounded Responses events, main-listener HTTP
|
|
@@ -1334,13 +1335,13 @@ ccdx --show-request-id
|
|
|
1334
1335
|
|
|
1335
1336
|
### Authentication recovery
|
|
1336
1337
|
|
|
1337
|
-
The dashboard's
|
|
1338
|
-
status snapshot. It shows at most 20 finished request observations: serialized
|
|
1338
|
+
The dashboard's **RECENT REQUESTS** section opens by default and reuses the same
|
|
1339
|
+
status snapshot. It shows at most 20 finished request observations: time, source, model, outcome and returned input tokens, with serialized
|
|
1339
1340
|
upstream payload bytes, image count, reported input tokens, the advertised model
|
|
1340
1341
|
window and terminal outcome, plus process-local compaction outcome counts. Missing
|
|
1341
1342
|
fields are unknown, not zero; input/window is a reference ratio, not an exact live
|
|
1342
1343
|
session measurement. No prompts, image bytes, files, tool results or extra session
|
|
1343
|
-
scan are retained.
|
|
1344
|
+
scan are retained. Technical fields are folded into each row. Expanded fields survive unchanged reads and retained matching request observations; closed/hidden request groups defer row rebuilding without another API call.
|
|
1344
1345
|
|
|
1345
1346
|
When the saved token is missing, `ccdx` looks for compatible local Copilot GitHub tokens, validates them with GitHub and Copilot, and imports a valid one before starting Device Flow. It checks explicit token sources (`CCDX_GITHUB_TOKEN`, `CCDX_GITHUB_TOKEN_PATH`, and `CCDX_GITHUB_TOKEN_PATHS`) plus common local `auth.json` layouts. Generic discovery refuses to choose silently when valid credentials for multiple GitHub accounts are found.
|
|
1346
1347
|
|
package/package.json
CHANGED
package/src/dashboard/console.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
const el = id => document.getElementById(id);
|
|
3
3
|
const label = (node, key, values = {}) => globalThis.ccdxLanguage.set(node, key, values);
|
|
4
4
|
const titles = { overview: "overview", codex: "Codex", claude: "Claude", models: "model_services", usage: "usage_and_diagnostics", requests: "request_records", checks: "tools_checks_title", system: "system_and_settings" };
|
|
5
|
+
const descriptions = { overview: "page_overview_description", codex: "page_codex_description", claude: "page_claude_description", models: "page_models_description", usage: "page_usage_description", requests: "page_requests_description", checks: "page_checks_description", system: "page_settings_description" };
|
|
6
|
+
const settingsViews = ["codex", "models", "system", "checks"];
|
|
5
7
|
let current = "overview", settings = null, settingsPending = false, stopped = false, timer = null, ticks = 0;
|
|
6
8
|
let sourceDirty = false, reviewDirty = false, sourceModels = [], modelsPreference = null, sourceGeneration = 0, modelsSource = null;
|
|
7
9
|
let settingsReadAt = null;
|
|
@@ -46,9 +48,14 @@
|
|
|
46
48
|
if (item.dataset.route === next) item.setAttribute("aria-current", "page");else item.removeAttribute("aria-current");
|
|
47
49
|
}
|
|
48
50
|
label(el("page-title"), titles[next]);
|
|
49
|
-
|
|
51
|
+
label(el("page-description"), descriptions[next]);
|
|
52
|
+
el("page-settings-note").textContent = "";
|
|
53
|
+
window.scrollTo(0, 0);
|
|
54
|
+
el("main-content").focus({ preventScroll: true });
|
|
55
|
+
if (settingsViews.includes(next)) void loadSettings();
|
|
50
56
|
if (next === "models") { void dashboardRefresh.refresh("models");void dashboardRefresh.refresh("auth"); }
|
|
51
57
|
if (next === "usage") { void dashboardRefresh.refresh("usage");usageView.revealChart(); } else usageView.stopMotion();
|
|
58
|
+
if (next === "requests") renderContext();
|
|
52
59
|
if (next === "system") { void dashboardRefresh.refresh("animation");void dashboardRefresh.refresh("updates"); }
|
|
53
60
|
syncAnimationPreview();
|
|
54
61
|
}
|
|
@@ -143,7 +150,7 @@
|
|
|
143
150
|
syncAccountControls();
|
|
144
151
|
try { applySettings(await api());settingsReadAt = new Date().toLocaleTimeString(); }
|
|
145
152
|
catch (error) {
|
|
146
|
-
for (const id of ["settings-note", "page-settings-note"]) {
|
|
153
|
+
for (const id of ["settings-note", ...(settingsViews.includes(current) ? ["page-settings-note"] : [])]) {
|
|
147
154
|
label(el(id), settingsReadAt ? "showing_previous_data_updated_time" : "could_not_read_settings", { time: settingsReadAt });
|
|
148
155
|
el(id).title = error.message;
|
|
149
156
|
}
|
|
@@ -156,7 +163,11 @@
|
|
|
156
163
|
syncAccountControls();
|
|
157
164
|
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")];
|
|
158
165
|
controls.forEach(input => { input.disabled = true; });
|
|
159
|
-
|
|
166
|
+
const note = el(body.key ? `effect-${body.key}` : body.action === "color_theme" ? "terminal-color-note"
|
|
167
|
+
: body.action.startsWith("history_") ? "effect-history" : body.action === "prediction_fix" ? "prediction-note"
|
|
168
|
+
: body.operation === "switch" ? "source-control-note" : body.operation === "auto-review" ? "review-control-note"
|
|
169
|
+
: body.operation === "account" ? "m365-account-note" : "m365-control-note");
|
|
170
|
+
label(note, "applying");
|
|
160
171
|
if (button) button.setAttribute("aria-busy", "true");
|
|
161
172
|
try {
|
|
162
173
|
const data = await api(body);
|
|
@@ -176,8 +187,7 @@
|
|
|
176
187
|
if (settings) applySettings(settings);
|
|
177
188
|
if (body.operation === "account") { label(el("m365-account-note"), "company_account_not_saved", { reason: { key: accountReasons.has(error.code) ? error.code : error.message } });return; }
|
|
178
189
|
if (body.action === "color_theme") { label(el("terminal-color-note"), "not_saved_error", { error: error.message });return; }
|
|
179
|
-
|
|
180
|
-
if (body.key) el(`effect-${body.key}`).textContent = error.message;
|
|
190
|
+
note.textContent = error.message;
|
|
181
191
|
} finally {
|
|
182
192
|
settingsPending = false;controls.forEach(input => { input.disabled = false; });
|
|
183
193
|
syncAccountControls();
|
|
@@ -257,14 +267,14 @@
|
|
|
257
267
|
await dashboardRefresh.refresh("status", { force: true });
|
|
258
268
|
if (++ticks % 8 === 0) {
|
|
259
269
|
await dashboardRefresh.refresh("auth", { force: true });
|
|
260
|
-
if (
|
|
270
|
+
if (settingsViews.includes(current)) await loadSettings();
|
|
261
271
|
}
|
|
262
272
|
}
|
|
263
273
|
schedule();
|
|
264
274
|
}, 2000);
|
|
265
275
|
}
|
|
266
276
|
window.addEventListener("hashchange", navigate);
|
|
267
|
-
el("refresh").addEventListener("click", () => { if (
|
|
277
|
+
el("refresh").addEventListener("click", () => { if (settingsViews.includes(current)) void loadSettings(); });
|
|
268
278
|
window.addEventListener("pagehide", () => { stopped = true;clearTimeout(timer); });
|
|
269
279
|
window.addEventListener("pageshow", () => { stopped = false;schedule(); });
|
|
270
280
|
navigate();schedule();
|
package/src/dashboard/index.html
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<main id="main-content" tabindex="-1">
|
|
45
45
|
<section class="intro">
|
|
46
46
|
<h1><span id="page-title" data-i18n="overview">Overview</span></h1>
|
|
47
|
-
<
|
|
47
|
+
<p id="page-description" class="page-description" data-i18n="page_overview_description">Service, app connections and usage this run.</p>
|
|
48
48
|
<p id="page-settings-note" class="hint" role="status"></p>
|
|
49
49
|
</section>
|
|
50
50
|
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
<div id="model-activity" class="model-activity" data-state="unknown" role="status" aria-label="Activity unknown" data-i18n-label="model_activity_unknown">
|
|
54
54
|
<span class="activity-lamp" aria-hidden="true"></span><span class="activity-dots" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i></span><span id="model-activity-label" class="activity-label" data-i18n="model_activity_unknown">Activity unknown</span>
|
|
55
55
|
</div>
|
|
56
|
-
<section class="overview" aria-label="Overview" data-i18n-label="overview"><article class="card"><h2 data-i18n="adapter">SERVICE</h2><strong id="version">—</strong><p id="uptime">—</p></article><article class="card"><h2 data-i18n="sources">SOURCES</h2><strong id="source-summary">—</strong><p id="source-detail">—</p></article></section>
|
|
56
|
+
<section class="overview" aria-label="Overview" data-i18n-label="overview"><article class="card"><h2 data-i18n="adapter">SERVICE</h2><strong id="version">—</strong><p id="uptime">—</p><p id="updated" class="refresh-time" data-i18n="reading_status">Reading status…</p></article><article class="card"><h2 data-i18n="sources">SOURCES</h2><strong id="source-summary">—</strong><p id="source-detail">—</p></article></section>
|
|
57
57
|
<details class="panel dashboard-section" id="client-features" open>
|
|
58
58
|
<summary class="panel-heading"><h2 data-i18n="client_connections">APP SETUP</h2><span data-i18n="configuration_observation">SETUP AND ACTIVITY</span></summary>
|
|
59
|
-
<div class="table-wrap"><table><thead><tr><th data-i18n="
|
|
60
|
-
<
|
|
59
|
+
<div class="table-wrap"><table><thead><tr><th data-i18n="client">APP</th><th data-i18n="current_source">Current source</th><th data-i18n="connection_setup">Setup</th><th data-i18n="local_bridge">Local service</th><th data-i18n="last_request">LAST REQUEST</th></tr></thead><tbody id="provider-clients"></tbody></table></div>
|
|
60
|
+
<p class="hint" data-i18n="configured_not_successful">Configured does not mean a request succeeded.</p>
|
|
61
61
|
</details>
|
|
62
62
|
<section class="panel dashboard-section"><h2 data-i18n="this_run_usage">THIS RUN</h2><p id="runtime-usage" class="table-note"></p><p class="table-note"><span data-i18n="approx_cache_hit_rate">Approx. cache hit rate</span>: <strong id="runtime-cache-hit" data-i18n-title="runtime_cache_hit_basis" title="Reused input / input tokens. ~ Partial counts. — Unknown or invalid.">—</strong></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>
|
|
63
63
|
</div>
|
|
@@ -72,6 +72,8 @@
|
|
|
72
72
|
</div>
|
|
73
73
|
<p id="source-model-note" class="hint" data-i18n="github_model_in_codex">Choose your conversation model in Codex.</p>
|
|
74
74
|
<div id="source-control-note" class="hint" role="status"></div>
|
|
75
|
+
<p class="table-note model-summary"><span data-i18n="codex_models">CODEX MODELS</span>: <strong id="models">—</strong> · <span id="model-source">—</span></p>
|
|
76
|
+
<a class="section-link" href="#models" data-source-link="codex" data-i18n="view_model_list">View model list</a>
|
|
75
77
|
</section>
|
|
76
78
|
<section class="panel dashboard-section" aria-labelledby="review-heading">
|
|
77
79
|
<h2 id="review-heading" data-i18n="auto_review_settings">AUTO REVIEW</h2>
|
|
@@ -83,56 +85,68 @@
|
|
|
83
85
|
</div>
|
|
84
86
|
<p id="review-control-note" class="hint" role="status"></p>
|
|
85
87
|
</section>
|
|
86
|
-
<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>
|
|
87
|
-
<details class="panel dashboard-section" id="runtime-resources" open>
|
|
88
|
-
<summary data-i18n="codex_conversations">CODEX CONVERSATIONS</summary>
|
|
89
|
-
<div class="details"><article class="panel">
|
|
90
|
-
<div class="panel-heading"><h2 data-i18n="model_outcomes">REQUEST RESULTS</h2><span>RESPONSES</span></div>
|
|
91
|
-
<dl class="stats"><div><dt data-i18n="completed">Completed</dt><dd id="completed">—</dd></div><div><dt data-i18n="incomplete">Incomplete</dt><dd id="incomplete">—</dd></div><div><dt data-i18n="failed">Failed</dt><dd id="failed">—</dd></div><div><dt data-i18n="cancelled">Cancelled</dt><dd id="cancelled">—</dd></div></dl>
|
|
92
|
-
<p class="hint" data-i18n="http_2xx_model_completed">HTTP success does not mean a complete reply.</p>
|
|
93
|
-
<dl class="stats timing-stats"><div><dt data-i18n="first_output">First output</dt><dd id="ttft">—</dd></div><div><dt data-i18n="output_speed">Output speed</dt><dd id="tpot">—</dd></div></dl>
|
|
94
|
-
<p class="hint" data-i18n="codex_responses_timing_since_startup_output_speed_is_estimated">Codex Responses timing since startup. Speed is estimated.</p>
|
|
95
|
-
</article><article class="panel">
|
|
96
|
-
<div class="panel-heading"><h2 data-i18n="codex_conversation_buffer">CONVERSATION BUFFER</h2><span data-i18n="active_limit">STORAGE LIMIT</span></div>
|
|
97
|
-
<strong id="history">—</strong><progress id="history-meter" class="meter" max="100" value="0" aria-label="Local history usage" data-i18n-label="history_cache_usage"></progress>
|
|
98
|
-
<p id="history-detail" class="hint">—</p>
|
|
99
|
-
</article></div>
|
|
100
|
-
<p class="hint" data-i18n="temporary_local_data_for_responses_continuation_not_a_conversati">Keeps temporary data to continue replies. Does not save a chat archive.</p>
|
|
101
|
-
<div class="section-actions"><label><span data-i18n="buffer_limit_mib">Buffer limit (MiB)</span> <input id="history-limit" type="number" min="1" max="65536" step="1"></label><button id="save-history" type="button" data-i18n="apply_limit">Save limit</button><button id="clean-history" type="button" data-i18n="clear_inactive_buffer">Clear conversation buffer</button></div>
|
|
102
|
-
<p id="effect-history" class="hint" role="status"></p>
|
|
103
|
-
</details>
|
|
104
88
|
<details class="panel dashboard-section" id="prediction-settings" open>
|
|
105
89
|
<summary class="panel-heading"><h2 data-i18n="codex_input_predictions">INPUT SUGGESTIONS</h2><span data-i18n="codex_only">CODEX ONLY</span></summary>
|
|
90
|
+
<div class="setting-row"><label for="setting-prediction_enabled" data-i18n="allow_prediction_configuration">Allow suggestion updates</label><input id="setting-prediction_enabled" type="checkbox" role="switch" disabled><span id="effect-prediction_enabled" class="hint" role="status"></span></div>
|
|
91
|
+
<details class="tool-details"><summary data-i18n="status_and_repair">Status and repair</summary>
|
|
106
92
|
<dl class="stats"><div><dt data-i18n="prediction_integration_setup">Suggestion setup</dt><dd id="prediction-preference">—</dd></div><div><dt data-i18n="local_bridge">Local service</dt><dd id="prediction-bridge">—</dd></div><div><dt data-i18n="client_route">App settings requests</dt><dd id="prediction-route">—</dd></div><div><dt data-i18n="visible_candidate">Suggestion displayed</dt><dd id="prediction-candidate">—</dd></div></dl>
|
|
107
93
|
<p id="prediction-note" class="hint">—</p>
|
|
108
94
|
<p class="hint" data-i18n="configured_does_not_mean_displayed_use_ccdx_prediction_status_fo">Enabled does not mean a suggestion appeared. Details: ccdx prediction status.</p>
|
|
109
|
-
|
|
95
|
+
|
|
110
96
|
<div class="section-actions"><button id="fix-prediction" type="button" data-i18n="check_and_repair">Check and repair</button></div>
|
|
111
97
|
<p class="hint" data-i18n="pause_keeps_the_existing_trust_and_route_codex_may_retain_cached">Pause keeps existing trust and routing. Cached suggestions may still appear. First quit Codex, then run ccdx prediction on.</p>
|
|
98
|
+
</details>
|
|
112
99
|
</details>
|
|
113
100
|
<details class="panel dashboard-section" id="additional-capabilities">
|
|
114
|
-
<summary data-i18n="codex_image_generation">IMAGE GENERATION</summary>
|
|
115
|
-
<
|
|
116
|
-
<div class="panel-heading"><h2 data-i18n="image_service">Image service</h2><span data-i18n="codex_only">CODEX ONLY</span></div>
|
|
117
|
-
<strong id="image">—</strong><p id="image-detail" class="hint">—</p>
|
|
118
|
-
</article>
|
|
101
|
+
<summary class="panel-heading"><h2 data-i18n="codex_image_generation">IMAGE GENERATION</h2><span data-i18n="codex_only">CODEX ONLY</span></summary>
|
|
102
|
+
<strong id="image">—</strong><p id="image-detail" class="hint">—</p>
|
|
119
103
|
<div class="setting-row"><label for="setting-image_enabled" data-i18n="allow_new_image_calls">Allow image requests</label><input id="setting-image_enabled" type="checkbox" role="switch" disabled><span id="effect-image_enabled" class="hint" role="status"></span></div>
|
|
120
104
|
<p class="hint" data-i18n="pause_keeps_the_provider_configuration_running_calls_can_finish_">Pause keeps your setup. Running image requests can finish. First setup: ccdx enable-image.</p>
|
|
121
105
|
</details>
|
|
106
|
+
<details class="panel dashboard-section" id="runtime-resources">
|
|
107
|
+
<summary data-i18n="codex_conversation_buffer">CONVERSATION BUFFER</summary>
|
|
108
|
+
<strong id="history">—</strong><progress id="history-meter" class="meter" max="100" value="0" aria-label="Local history usage" data-i18n-label="history_cache_usage"></progress>
|
|
109
|
+
<p id="history-detail" class="hint">—</p>
|
|
110
|
+
|
|
111
|
+
<p class="hint" data-i18n="temporary_local_data_for_responses_continuation_not_a_conversati">Keeps temporary data to continue replies. Does not save a chat archive.</p>
|
|
112
|
+
<div class="section-actions"><label><span data-i18n="buffer_limit_mib">Buffer limit (MiB)</span> <input id="history-limit" type="number" min="1" max="65536" step="1"></label><button id="save-history" type="button" data-i18n="apply_limit">Save limit</button><button id="clean-history" type="button" data-i18n="clear_inactive_buffer">Clear conversation buffer</button></div>
|
|
113
|
+
<p id="effect-history" class="hint" role="status"></p>
|
|
114
|
+
</details>
|
|
115
|
+
<details class="panel dashboard-section" id="codex-performance">
|
|
116
|
+
<summary data-i18n="request_performance">REQUEST PERFORMANCE</summary>
|
|
117
|
+
<dl class="stats"><div><dt data-i18n="completed">Completed</dt><dd id="completed">—</dd></div><div><dt data-i18n="incomplete">Incomplete</dt><dd id="incomplete">—</dd></div><div><dt data-i18n="failed">Failed</dt><dd id="failed">—</dd></div><div><dt data-i18n="cancelled">Cancelled</dt><dd id="cancelled">—</dd></div></dl>
|
|
118
|
+
<p class="hint" data-i18n="http_2xx_model_completed">HTTP success does not mean a complete reply.</p>
|
|
119
|
+
<dl class="stats timing-stats"><div><dt data-i18n="first_output">First output</dt><dd id="ttft">—</dd></div><div><dt data-i18n="output_speed">Output speed</dt><dd id="tpot">—</dd></div></dl>
|
|
120
|
+
<p class="hint" data-i18n="codex_responses_timing_since_startup_output_speed_is_estimated">Codex Responses timing since startup. Speed is estimated.</p>
|
|
121
|
+
<a class="section-link" href="#requests" data-i18n="view_request_details">View request details</a>
|
|
122
|
+
</details>
|
|
122
123
|
</div>
|
|
123
124
|
<div data-view="claude" hidden>
|
|
124
|
-
<section class="panel dashboard-section"
|
|
125
|
-
<
|
|
126
|
-
<
|
|
125
|
+
<section class="panel dashboard-section" id="claude-connections">
|
|
126
|
+
<h2 data-i18n="client_connections">APP SETUP</h2>
|
|
127
|
+
<div class="table-wrap"><table><thead><tr><th data-i18n="client">APP</th><th data-i18n="connection_setup">Setup</th><th data-i18n="local_bridge">Local service</th><th data-i18n="last_request">LAST REQUEST</th></tr></thead><tbody id="claude-clients"></tbody></table></div>
|
|
127
128
|
<p id="claude-client-state" class="hint"></p>
|
|
129
|
+
<p class="hint" data-i18n="local_service_not_app">Local service status does not confirm the app is open.</p>
|
|
130
|
+
</section>
|
|
131
|
+
<section class="panel dashboard-section">
|
|
132
|
+
<h2 data-i18n="source">Source</h2><p class="table-note">Microsoft 365</p>
|
|
133
|
+
<p class="hint" data-i18n="claude_shared_source">Account and source settings apply to both Claude apps.</p>
|
|
134
|
+
<a class="section-link" href="#models" data-source-link="m365" data-i18n="manage_source_account">Manage source and account</a>
|
|
135
|
+
<details class="tool-details"><summary data-i18n="connection_details">Connection details</summary><p id="claude-route" class="table-note"></p><p>Anthropic Messages</p></details>
|
|
136
|
+
</section>
|
|
137
|
+
<section class="panel dashboard-section" id="claude-performance">
|
|
138
|
+
<div class="panel-heading"><h2 data-i18n="request_performance">REQUEST PERFORMANCE</h2><span data-i18n="messages_combined_since_start">MESSAGES COMBINED / SINCE STARTUP</span></div>
|
|
128
139
|
<dl class="stats"><div><dt data-i18n="completed">Completed</dt><dd id="claude-completed">—</dd></div><div><dt data-i18n="incomplete">Incomplete</dt><dd id="claude-incomplete">—</dd></div><div><dt data-i18n="failed">Failed</dt><dd id="claude-failed">—</dd></div><div><dt data-i18n="cancelled">Cancelled</dt><dd id="claude-cancelled">—</dd></div><div><dt data-i18n="first_output">First output</dt><dd id="claude-ttft">—</dd></div><div><dt data-i18n="output_speed">Output speed</dt><dd id="claude-speed">—</dd></div></dl>
|
|
140
|
+
<p class="hint" data-i18n="claude_metrics_combined">These metrics are not separated by Claude app.</p>
|
|
129
141
|
<p class="hint" data-i18n="since_this_service_started_configuration_authorization_model_dis">Counts start with this service. Setup, sign-in, listed models and successful requests are separate checks.</p>
|
|
142
|
+
<a class="section-link" href="#requests" data-i18n="view_request_details">View request details</a>
|
|
130
143
|
</section>
|
|
131
144
|
</div>
|
|
132
145
|
<div data-view="models" hidden>
|
|
133
146
|
<div id="model-providers" class="provider-tabs" role="tablist" aria-label="Model providers" data-i18n-label="model_providers"></div>
|
|
134
147
|
<p class="hint source-browse-note" data-i18n="tools_source_browse">Browsing a source does not change app settings.</p>
|
|
135
148
|
<div id="source-account-panel" role="tabpanel">
|
|
149
|
+
<p id="source-status-note" class="hint" role="status"></p>
|
|
136
150
|
<section class="panel dashboard-section" id="github-account">
|
|
137
151
|
<div class="panel-heading"><h2>GitHub Copilot</h2><span id="github-account-state"></span></div>
|
|
138
152
|
<p id="github-account-name" class="account-name">—</p><p id="github-account-hint" class="hint"></p>
|
|
@@ -173,7 +187,7 @@
|
|
|
173
187
|
<p class="hint" data-i18n="catalog_listing_does_not_guarantee_inference_access">Listed does not mean your account can use it.</p>
|
|
174
188
|
</details>
|
|
175
189
|
<details class="panel dashboard-section" id="account-authorization">
|
|
176
|
-
<summary
|
|
190
|
+
<summary data-i18n="source_access_details">SOURCE ACCESS DETAILS</summary>
|
|
177
191
|
<p class="hint" data-i18n="saved_credentials_authorization_model_access_and_client_requests">Saved sign-in, access, models and app requests are separate checks.</p>
|
|
178
192
|
<div class="table-wrap"><table><thead><tr><th data-i18n="source">Source</th><th data-i18n="account">ACCOUNT</th><th data-i18n="authorization">AUTHORIZATION</th><th data-i18n="service">SERVICE</th><th data-i18n="last_verified">LAST VERIFIED</th><th data-i18n="time_left">Time left</th></tr></thead><tbody id="provider-auth"></tbody></table></div>
|
|
179
193
|
</details>
|
|
@@ -183,26 +197,35 @@
|
|
|
183
197
|
<section class="panel dashboard-section">
|
|
184
198
|
<h2 data-i18n="tools_checks_title">Checks & repairs</h2>
|
|
185
199
|
<p class="hint" data-i18n="tools_local_scope">Local checks do not contact external services.</p>
|
|
186
|
-
<div class="section-actions"><button id="check-local" type="button" data-i18n="tools_check_local">Check this computer</button
|
|
200
|
+
<div class="section-actions"><button id="check-local" type="button" data-i18n="tools_check_local">Check this computer</button></div>
|
|
187
201
|
<p id="checks-note" class="table-note" role="status" aria-live="polite" data-i18n="tools_checks_empty">Run a check to see the results.</p>
|
|
188
202
|
<div class="table-wrap"><table class="checks-table"><thead><tr><th data-i18n="tools_check_item">Check</th><th data-i18n="state">State</th><th data-i18n="tools_details">Details</th></tr></thead><tbody id="checks-body"></tbody></table></div>
|
|
189
203
|
</section>
|
|
204
|
+
<section class="panel dashboard-section">
|
|
205
|
+
<h2 data-i18n="account_access">ACCOUNT AND ACCESS</h2><p class="hint" data-i18n="account_management_location">Manage sign-in, accounts and models under Model sources.</p>
|
|
206
|
+
<div class="section-actions"><button id="check-account-link" type="button" data-i18n="check_github_connection">Check GitHub connection</button><a class="section-link" href="#models" data-source-link="m365" data-i18n="view_m365_account">View M365 account</a></div>
|
|
207
|
+
</section>
|
|
190
208
|
<section class="panel dashboard-section">
|
|
191
209
|
<h2 data-i18n="tools_codex_connection">Codex connection</h2><p class="hint" data-i18n="tools_config_scope">Review CCDX-managed fields before repair. Other settings are preserved.</p>
|
|
192
210
|
<div class="section-actions"><button id="preview-config-repair" type="button" data-i18n="tools_review_repair">Review repair</button></div>
|
|
193
211
|
<section id="config-repair-preview" class="tool-flow" hidden><h3 data-i18n="tools_repair_preview">Repair preview</h3><dl id="config-repair-fields" class="failure-detail"></dl><pre id="config-preview-details" class="tool-code"></pre><div class="section-actions"><button id="apply-config-repair" type="button" data-i18n="tools_apply_repair">Back up and repair</button><button id="cancel-config-repair" type="button" data-i18n="cancel">Cancel</button></div></section>
|
|
194
212
|
</section>
|
|
195
|
-
<details class="panel dashboard-section"><summary data-i18n="
|
|
213
|
+
<details class="panel dashboard-section" id="runtime-diagnostics"><summary data-i18n="runtime_details">RUNTIME DETAILS</summary>
|
|
214
|
+
<section class="diagnostic-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>
|
|
215
|
+
<section class="diagnostic-section"><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></section>
|
|
216
|
+
</details>
|
|
217
|
+
<details class="panel dashboard-section"><summary data-i18n="more_checks_reports">MORE CHECKS AND REPORTS</summary>
|
|
196
218
|
<div class="section-actions"><button id="check-network" type="button" data-i18n="tools_network_check">Network settings</button></div><p id="network-check-result" class="hint" role="status"></p>
|
|
197
219
|
<h3 data-i18n="tools_compatibility">Model compatibility</h3><p class="hint" data-i18n="tools_compatibility_scope">This test sends model requests and uses quota. Run it explicitly in your terminal:</p><pre class="tool-code">ccdx doctor --compat</pre>
|
|
198
|
-
<p class="hint" data-i18n="tools_report_scope">Reports omit credentials, account details and chat content.</p>
|
|
220
|
+
<div class="tool-details"><h3 data-i18n="diagnostic_report">Diagnostic report</h3><p class="hint" data-i18n="tools_report_scope">Reports omit credentials, account details and chat content.</p><div class="section-actions"><button id="export-report" type="button" data-i18n="tools_export_report">Export report</button></div></div>
|
|
199
221
|
</details>
|
|
200
222
|
</div>
|
|
201
223
|
<div data-view="usage" hidden>
|
|
224
|
+
<div class="section-actions usage-source-controls"><label><span data-i18n="source_entire_page">Source / entire page</span><select id="usage-provider"><option value="" data-i18n="all_providers">All providers</option></select></label><button id="refresh-usage" type="button" data-i18n="refresh_usage">Refresh usage</button></div>
|
|
202
225
|
|
|
203
226
|
<details class="panel dashboard-section" id="model-usage" open>
|
|
204
|
-
<summary class="panel-heading"><h2 data-i18n="
|
|
205
|
-
<div class="section-actions"><
|
|
227
|
+
<summary class="panel-heading"><h2 data-i18n="usage_totals">USAGE TOTALS</h2><span id="usage-state" data-i18n="reading_log">COUNTING</span></summary>
|
|
228
|
+
<div class="section-actions"><button id="clear-usage-day" type="button" hidden data-i18n="all_history">Show all</button></div>
|
|
206
229
|
<p id="usage-note" class="table-note" data-i18n="aggregating_local_usage_metadata">Counting local usage…</p>
|
|
207
230
|
<div class="table-wrap"><table class="usage-table"><thead><tr><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="calls">REQUESTS</th><th scope="col" data-i18n="input">INPUT USAGE</th><th scope="col" data-i18n="cache_read">REUSED INPUT</th><th scope="col" data-i18n="output">OUTPUT USAGE</th><th scope="col" data-i18n="total">TOTAL</th><th scope="col" data-i18n="cache_hit">REUSE RATE</th></tr></thead><tbody id="usage-body"><tr><td colspan="7" data-i18n="loading">Loading…</td></tr></tbody></table></div>
|
|
208
231
|
<p class="hint" data-i18n="cache_hit_recorded_cached_input_tokens_incomplete_history_unavai">Unit: Token. Reused input is part of input.
|
|
@@ -210,42 +233,41 @@
|
|
|
210
233
|
<details id="usage-analytics" class="analytics-section">
|
|
211
234
|
<summary data-i18n="usage_analytics">USAGE TRENDS</summary>
|
|
212
235
|
<div class="analytics-controls">
|
|
213
|
-
<label><span data-i18n="
|
|
214
|
-
<label><span data-i18n="daily_range">Date range</span> <select id="analytics-range"><option value="7" data-i18n="7_days">Last 7 days</option><option value="30" selected data-i18n="30_days">Last 30 days</option><option value="90" data-i18n="90_days">Last 90 days</option></select></label>
|
|
215
|
-
<label><span data-i18n="chart_view">Chart view</span> <select id="analytics-view"><option value="bars" selected data-i18n="bar_chart">Bar chart</option><option value="line" data-i18n="line_chart">Line chart</option></select></label>
|
|
216
|
-
<label><span data-i18n="activity">Measure</span> <select id="analytics-metric"><option value="requests" data-i18n="calls_b73a5">Requests</option><option value="tokens" data-i18n="tokens">Usage (Token)</option></select></label>
|
|
236
|
+
<label><span data-i18n="model_both_charts">Model / both charts</span> <select id="analytics-model"><option value="" data-i18n="all_models">All models</option></select></label>
|
|
217
237
|
</div>
|
|
218
238
|
<p id="analytics-note" class="table-note" role="status" data-i18n="open_to_read_retained_usage_history">Open to view usage trends.</p>
|
|
219
239
|
<p id="analytics-updated" class="refresh-time"></p>
|
|
220
|
-
<div class="chart-heading"><h3 data-i18n="daily_tokens">DAILY USAGE</h3><span data-i18n="
|
|
240
|
+
<div class="chart-heading"><h3 data-i18n="daily_tokens">DAILY USAGE</h3><div class="analytics-controls"><label><span data-i18n="daily_range">Date range</span> <select id="analytics-range"><option value="7" data-i18n="7_days">Last 7 days</option><option value="30" selected data-i18n="30_days">Last 30 days</option><option value="90" data-i18n="90_days">Last 90 days</option></select></label>
|
|
241
|
+
<label><span data-i18n="chart_view">Chart view</span> <select id="analytics-view"><option value="bars" selected data-i18n="bar_chart">Bar chart</option><option value="line" data-i18n="line_chart">Line chart</option></select></label></div></div><p class="hint" data-i18n="input_output_cache_included_in_input">INPUT + OUTPUT / REUSED INPUT IS PART OF INPUT</p>
|
|
221
242
|
<div id="daily-bars" class="daily-bars" aria-label="Daily usage in Token" data-i18n-label="daily_token_usage"></div>
|
|
222
243
|
<div class="daily-axis"><span id="daily-from"></span><span id="daily-to"></span></div>
|
|
223
244
|
<div class="chart-legend"><span class="legend-input" data-i18n="input_36ecb">Input usage</span><span class="legend-output" data-i18n="output_b2439">Output usage</span></div>
|
|
224
|
-
<div class="chart-heading"><h3 data-i18n="request_activity_365_days">ACTIVITY · LAST 365 DAYS</h3><span id="activity-scale">—</
|
|
245
|
+
<div class="chart-heading"><h3 data-i18n="request_activity_365_days">ACTIVITY · LAST 365 DAYS</h3><div class="analytics-controls"><label><span data-i18n="calendar_measure">Calendar measure</span> <select id="analytics-metric"><option value="requests" data-i18n="calls_b73a5">Requests</option><option value="tokens" data-i18n="tokens">Usage (Token)</option></select></label></div></div><p id="activity-scale" class="hint">—</p>
|
|
225
246
|
<div class="calendar-scroll"><div class="calendar-grid"><div id="calendar-months" class="calendar-months" aria-hidden="true"></div><div id="activity-calendar" class="activity-calendar" aria-label="Daily recorded activity over 365 days" data-i18n-label="daily_recorded_request_activity"></div></div></div>
|
|
226
247
|
<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>
|
|
227
248
|
</details>
|
|
228
249
|
</details>
|
|
229
250
|
</div>
|
|
230
251
|
<div data-view="requests" hidden>
|
|
231
|
-
<details class="panel dashboard-section" id="source-requests">
|
|
252
|
+
<details class="panel dashboard-section" id="source-requests" open>
|
|
232
253
|
<summary data-i18n="requests_by_source">REQUESTS BY SOURCE</summary>
|
|
233
254
|
<p class="hint" data-i18n="results_since_startup_partial_usage_is_marked_separately">Results since startup. Partial usage is marked separately.</p>
|
|
234
255
|
<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>
|
|
256
|
+
<details class="tool-details"><summary data-i18n="source_summary_details">Source summaries</summary><div id="provider-requests" class="hint"></div></details>
|
|
235
257
|
</details>
|
|
236
|
-
<details class="
|
|
237
|
-
<summary class="panel-heading"><h2 data-i18n="recent_inference_http_failures">RECENT REQUEST ISSUES</h2><span id="failure-count">requests + events</span></summary>
|
|
238
|
-
<ol id="failures"><li class="empty" data-i18n="reading_874bf">Reading…</li></ol>
|
|
239
|
-
<p class="hint" data-i18n="upstream_messages_may_contain_sensitive_text">Error details may include private data.</p>
|
|
240
|
-
</details>
|
|
241
|
-
<details class="panel dashboard-section" id="request-context">
|
|
258
|
+
<details class="panel dashboard-section" id="request-context" open>
|
|
242
259
|
<summary data-i18n="recent_request_context">RECENT REQUESTS</summary>
|
|
243
260
|
<p id="context-note" class="table-note">—</p>
|
|
244
|
-
<div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="
|
|
261
|
+
<div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="time">Time</th><th scope="col" data-i18n="source">Source</th><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="outcome">RESULT</th><th scope="col" data-i18n="input_tokens">INPUT USAGE</th><th scope="col" data-i18n="tools_details">Details</th></tr></thead><tbody id="context-body"><tr><td colspan="6" data-i18n="no_observed_request_metadata">No request records yet.</td></tr></tbody></table></div>
|
|
245
262
|
<p class="hint" data-i18n="recent_upstream_request_metadata_not_exact_live_session_occupanc">Size: MiB. Usage: Token.
|
|
246
263
|
Request records do not show exact current-chat usage.
|
|
247
264
|
Missing data is unknown. This panel keeps no prompts or images.</p>
|
|
248
265
|
</details>
|
|
266
|
+
<details class="lower" id="recent-failures" open>
|
|
267
|
+
<summary class="panel-heading"><h2 data-i18n="recent_inference_http_failures">RECENT REQUEST ISSUES</h2><span id="failure-count">requests + events</span></summary>
|
|
268
|
+
<ol id="failures"><li class="empty" data-i18n="reading_874bf">Reading…</li></ol>
|
|
269
|
+
<p class="hint" data-i18n="upstream_messages_may_contain_sensitive_text">Error details may include private data.</p>
|
|
270
|
+
</details>
|
|
249
271
|
</div>
|
|
250
272
|
<div data-view="system" hidden>
|
|
251
273
|
<section class="panel dashboard-section" aria-labelledby="web-appearance-title">
|
|
@@ -301,14 +323,12 @@ Missing data is unknown. This panel keeps no prompts or images.</p>
|
|
|
301
323
|
</section>
|
|
302
324
|
|
|
303
325
|
<section class="panel dashboard-section" aria-labelledby="settings-heading">
|
|
304
|
-
<h2 id="settings-heading" data-i18n="
|
|
326
|
+
<h2 id="settings-heading" data-i18n="startup_preferences">STARTUP</h2>
|
|
305
327
|
<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>
|
|
306
328
|
<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>
|
|
307
329
|
<p id="settings-note" class="hint" role="status" data-i18n="reading_settings">Reading settings…</p>
|
|
308
330
|
</section>
|
|
309
331
|
|
|
310
|
-
<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>
|
|
311
|
-
<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>
|
|
312
332
|
<section class="panel dashboard-section" id="version-updates" aria-labelledby="version-updates-title">
|
|
313
333
|
<div class="version-heading"><h2 id="version-updates-title" data-i18n="version_updates">VERSION & UPDATES</h2><button id="check-updates" type="button" data-i18n="check_updates">Check for updates</button></div>
|
|
314
334
|
<dl class="version-list"><div><dt data-i18n="current_version">Current version</dt><dd id="update-current-version">—</dd><dd id="update-current-date" class="hint">—</dd></div><div id="update-latest-row" hidden><dt data-i18n="available_update">Update available</dt><dd id="update-latest-version">—</dd><dd id="update-latest-date" class="hint">—</dd></div></dl>
|
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
const translations = {
|
|
3
|
+
"page_overview_description": ["Service, app connections and usage this run.", "查看服务、应用和本次用量。"],
|
|
4
|
+
"page_codex_description": ["Set up Codex connections and features.", "配置 Codex 接入与专属功能。"],
|
|
5
|
+
"page_claude_description": ["Claude app connections and request performance.", "查看 Claude 接入与请求表现。"],
|
|
6
|
+
"page_models_description": ["Accounts, access checks and model lists.", "管理账号、访问权限和模型列表。"],
|
|
7
|
+
"page_usage_description": ["Usage totals, daily trends and annual activity.", "查看用量汇总、趋势与年度活动。"],
|
|
8
|
+
"page_requests_description": ["Recent requests, outcomes and issues.", "查看最近请求、处理结果和异常。"],
|
|
9
|
+
"page_checks_description": ["Check this computer and review connection repairs.", "检查本机环境,排查接入问题。"],
|
|
10
|
+
"page_settings_description": ["Appearance, terminal, startup and version.", "调整外观、启动行为和版本。"],
|
|
11
|
+
"current_source": ["Current source", "当前来源"],
|
|
12
|
+
"connection_setup": ["Setup", "接入配置"],
|
|
13
|
+
"configured_not_successful": ["Configured does not mean a request succeeded.", "已配置,不代表请求已成功。"],
|
|
14
|
+
"view_model_list": ["View model list", "查看模型列表"],
|
|
15
|
+
"view_request_details": ["View request details", "查看请求详情"],
|
|
16
|
+
"request_performance": ["REQUEST PERFORMANCE", "请求表现"],
|
|
17
|
+
"status_and_repair": ["Status and repair", "状态与修复"],
|
|
18
|
+
"local_service_not_app": ["Local service status does not confirm the app is open.", "本地服务运行,不代表应用已打开。"],
|
|
19
|
+
"claude_shared_source": ["Account and source settings apply to both Claude apps.", "账号与来源设置供两个应用共用。"],
|
|
20
|
+
"manage_source_account": ["Manage source and account", "管理来源与账号"],
|
|
21
|
+
"connection_details": ["Connection details", "连接详情"],
|
|
22
|
+
"messages_combined_since_start": ["MESSAGES COMBINED / SINCE STARTUP", "Messages 合计 / 本次启动"],
|
|
23
|
+
"claude_metrics_combined": ["These metrics are not separated by Claude app.", "当前统计不区分两个 Claude 应用。"],
|
|
24
|
+
"source_access_details": ["SOURCE ACCESS DETAILS", "来源访问详情"],
|
|
25
|
+
"account_access": ["ACCOUNT AND ACCESS", "账号与访问"],
|
|
26
|
+
"account_management_location": ["Manage sign-in, accounts and models under Model sources.", "登录、账号和模型在来源页管理。"],
|
|
27
|
+
"check_github_connection": ["Check GitHub connection", "检查 GitHub 连接"],
|
|
28
|
+
"view_m365_account": ["View M365 account", "查看 M365 账号"],
|
|
29
|
+
"more_checks_reports": ["MORE CHECKS AND REPORTS", "更多检查与报告"],
|
|
30
|
+
"diagnostic_report": ["Diagnostic report", "诊断报告"],
|
|
31
|
+
"runtime_details": ["RUNTIME DETAILS", "运行详情"],
|
|
32
|
+
"startup_preferences": ["STARTUP", "启动行为"],
|
|
33
|
+
"source_entire_page": ["Source / entire page", "来源 / 作用于整页"],
|
|
34
|
+
"refresh_usage": ["Refresh usage", "刷新用量"],
|
|
35
|
+
"usage_totals": ["USAGE TOTALS", "用量汇总"],
|
|
36
|
+
"model_both_charts": ["Model / both charts", "模型 / 作用于两张图"],
|
|
37
|
+
"calendar_measure": ["Measure / calendar only", "指标 / 仅作用于日历"],
|
|
38
|
+
"source_summary_details": ["Source summaries", "来源摘要"],
|
|
39
|
+
"request_metadata": ["Request metadata", "请求技术信息"],
|
|
3
40
|
"cancel": ["Cancel", "取消"],
|
|
4
41
|
"tools_checks_title": ["Checks & repairs", "检查与修复"],
|
|
5
42
|
"tools_source_browse": ["Browsing a source does not change app settings.", "切换标签只查看来源,不改变应用设置。"],
|
|
@@ -332,9 +369,9 @@
|
|
|
332
369
|
"local_ok": ["CONNECTED LOCALLY", "已连本机"],
|
|
333
370
|
"unavailable_eb0be": ["UNAVAILABLE", "无法读取"],
|
|
334
371
|
"refresh": ["Refresh", "刷新"],
|
|
335
|
-
"auto_refresh": ["Auto refresh", "
|
|
336
|
-
"auto_refresh_on": ["Auto refresh · ON", "
|
|
337
|
-
"auto_refresh_off": ["Auto refresh · OFF", "
|
|
372
|
+
"auto_refresh": ["Auto refresh", "自动刷新"],
|
|
373
|
+
"auto_refresh_on": ["Auto refresh · ON", "自动刷新 · 开"],
|
|
374
|
+
"auto_refresh_off": ["Auto refresh · OFF", "自动刷新 · 关"],
|
|
338
375
|
"every_30_minutes_while_visible_open_sections_update_on_demand": ["Refreshes every 30 minutes while visible. Opening a section also refreshes it.", "可见时每30分钟刷新。\n展开栏目也会刷新。"],
|
|
339
376
|
"local_only_visible_page_updates": ["THIS COMPUTER ONLY / UPDATES WHILE VISIBLE", "仅限本机/页面可见时更新"],
|
|
340
377
|
"updated_time": ["Updated {time}", "更新于{time}"],
|
package/src/dashboard/status.js
CHANGED
|
@@ -12,13 +12,15 @@
|
|
|
12
12
|
unknown: "unknown", unconfigured: "not_configured", ready: "ready", checking: "checking", unsupported: "unsupported",
|
|
13
13
|
configured: "configured", preserved: "existing_settings_kept", partially_preserved: "existing_settings_kept",
|
|
14
14
|
restored: "settings_restored", not_installed: "not_installed", configuration_unavailable: "setup_unavailable", not_configured: "unknown", standby: "standby" };
|
|
15
|
-
const auth = element("provider-auth"), clients = element("provider-clients"), requests = element("provider-requests");
|
|
16
|
-
auth.replaceChildren();clients.replaceChildren();requests.replaceChildren();
|
|
15
|
+
const auth = element("provider-auth"), clients = element("provider-clients"), requests = element("provider-requests"), claudeClients = element("claude-clients");
|
|
16
|
+
auth.replaceChildren();clients.replaceChildren();requests.replaceChildren();claudeClients?.replaceChildren();
|
|
17
|
+
const applications = new Map();
|
|
17
18
|
for (const provider of providers) {
|
|
18
19
|
sourceNames.set(provider.id, provider.name);
|
|
19
20
|
const identity = provider.auth || {};
|
|
20
21
|
const authRow = tableRow([provider.name, identity.account || "—", states[identity.state] || "unknown",
|
|
21
22
|
states[provider.state] || "unknown", identity.checked_at || "—", duration(identity.expires_in_ms)], { labels: [2, 3] });
|
|
23
|
+
authRow.setAttribute("data-provider", provider.id);
|
|
22
24
|
if (provider.reason) {
|
|
23
25
|
const network = provider.network_diagnostic;
|
|
24
26
|
localize(authRow.children[3], "state_reason", { state: phrase(states[provider.state] || "unknown"),
|
|
@@ -33,14 +35,9 @@
|
|
|
33
35
|
}
|
|
34
36
|
auth.append(authRow);
|
|
35
37
|
for (const client of provider.clients || []) {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
if (globalThis.ccdxIcons) {
|
|
40
|
-
globalThis.ccdxIcons.set(row.children[2], client.reason ? "state_reason" : states[client.state] || client.state, globalThis.ccdxIcons.kind(client.state), client.reason ? { state: phrase(states[client.state] || "unknown"), reason: client.reason } : {});
|
|
41
|
-
if (["running", "unavailable"].includes(client.gateway)) globalThis.ccdxIcons.set(row.children[3], client.gateway, globalThis.ccdxIcons.kind(client.gateway));
|
|
42
|
-
}
|
|
43
|
-
clients.append(row);
|
|
38
|
+
const id = client.id || client.name;
|
|
39
|
+
if (!applications.has(id)) applications.set(id, []);
|
|
40
|
+
applications.get(id).push({ provider, client });
|
|
44
41
|
}
|
|
45
42
|
if (provider.requests) {
|
|
46
43
|
const item = document.createElement("p");
|
|
@@ -49,11 +46,32 @@
|
|
|
49
46
|
requests.append(item);
|
|
50
47
|
}
|
|
51
48
|
}
|
|
49
|
+
for (const entries of applications.values()) {
|
|
50
|
+
const selected = entries.find(entry => entry.client.selected === true) || (entries.length === 1 ? entries[0] : null);
|
|
51
|
+
const client = selected?.client || { name: entries[0].client.name, state: "unknown" };
|
|
52
|
+
const row = tableRow([client.name, selected?.provider.name || "—", states[client.state] || "unknown",
|
|
53
|
+
client.gateway || "—", client.last_request_at || "—"], { labels: [2, 3] });
|
|
54
|
+
if (client.reason) localize(row.children[2], "state_reason", { state: phrase(states[client.state] || "unknown"), reason: client.reason });
|
|
55
|
+
if (globalThis.ccdxIcons) {
|
|
56
|
+
globalThis.ccdxIcons.set(row.children[2], client.reason ? "state_reason" : states[client.state] || "unknown", globalThis.ccdxIcons.kind(client.state), client.reason ? { state: phrase(states[client.state] || "unknown"), reason: client.reason } : {});
|
|
57
|
+
if (["running", "unavailable"].includes(client.gateway)) globalThis.ccdxIcons.set(row.children[3], client.gateway, globalThis.ccdxIcons.kind(client.gateway));
|
|
58
|
+
}
|
|
59
|
+
clients.append(row);
|
|
60
|
+
if (String(client.id || "").startsWith("claude_")) {
|
|
61
|
+
const detail = tableRow([client.name, states[client.state] || "unknown", client.gateway || "—", client.last_request_at || "—"], { labels: [1, 2] });
|
|
62
|
+
if (client.reason) localize(detail.children[1], "state_reason", { state: phrase(states[client.state] || "unknown"), reason: client.reason });
|
|
63
|
+
if (globalThis.ccdxIcons) {
|
|
64
|
+
globalThis.ccdxIcons.set(detail.children[1], client.reason ? "state_reason" : states[client.state] || "unknown", globalThis.ccdxIcons.kind(client.state), client.reason ? { state: phrase(states[client.state] || "unknown"), reason: client.reason } : {});
|
|
65
|
+
if (["running", "unavailable"].includes(client.gateway)) globalThis.ccdxIcons.set(detail.children[2], client.gateway, globalThis.ccdxIcons.kind(client.gateway));
|
|
66
|
+
}
|
|
67
|
+
claudeClients?.append(detail);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (element("claude-client-state")) element("claude-client-state").hidden = Boolean(claudeClients?.children.length);
|
|
52
71
|
text("source-summary", "count_providers", { count: providers.length });
|
|
53
72
|
element("source-detail").replaceChildren(...providers.map(provider => {
|
|
54
73
|
const item = document.createElement("span");item.textContent = provider.name;return item;
|
|
55
74
|
}));
|
|
56
|
-
text("auth-account", "provider_status_scope");
|
|
57
75
|
}
|
|
58
76
|
|
|
59
77
|
function duration(value) {
|
|
@@ -259,10 +277,11 @@
|
|
|
259
277
|
text("context-note", "20_latest_finished_requests_compactions_completed_completed_inco", {
|
|
260
278
|
completed: number(contextCompactions.completed), incomplete: number(contextCompactions.incomplete), failed: number(contextCompactions.failed),
|
|
261
279
|
});
|
|
262
|
-
if (element("request-context")?.open === false) return;
|
|
280
|
+
if (element("request-context")?.open === false || element("request-context")?.closest?.("[hidden]")) return;
|
|
263
281
|
const signature = JSON.stringify(contextRequests);
|
|
264
282
|
if (signature === contextSignature) return;
|
|
265
283
|
contextSignature = signature;
|
|
284
|
+
const expanded = new Set([...(body.querySelectorAll?.("details[open]") || [])].map(details => details.getAttribute("data-request-key")));
|
|
266
285
|
body.replaceChildren();
|
|
267
286
|
for (const request of contextRequests) {
|
|
268
287
|
const context = request.context || {};
|
|
@@ -270,12 +289,24 @@
|
|
|
270
289
|
? request.outcome[0].toUpperCase() + request.outcome.slice(1) : "unknown";
|
|
271
290
|
const ratio = finite(context.input_tokens) && finite(context.context_window_tokens) && Number(context.context_window_tokens) > 0
|
|
272
291
|
? `${(100 * Number(context.input_tokens) / Number(context.context_window_tokens)).toFixed(1)}%` : "—";
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
outcome], { labels: [
|
|
292
|
+
const at = Date.parse(request.at);
|
|
293
|
+
const row = tableRow([Number.isFinite(at) ? new Date(at).toLocaleTimeString() : "—",
|
|
294
|
+
String(sourceNames.get(request.provider) || request.provider || "—").slice(0, 80),
|
|
295
|
+
String(request.model || "unknown").slice(0, 80), outcome, number(context.input_tokens), ""], { labels: [3] });
|
|
296
|
+
if (globalThis.ccdxIcons) globalThis.ccdxIcons.set(row.children[3], outcome.toLowerCase(), globalThis.ccdxIcons.kind(outcome.toLowerCase()));
|
|
297
|
+
const details = document.createElement("details"), summary = document.createElement("summary"), fields = document.createElement("dl");
|
|
298
|
+
const key = String(request.request_id || `${request.at || ""}/${request.provider || ""}/${request.model || ""}`).slice(0, 256);
|
|
299
|
+
details.setAttribute?.("data-request-key", key);details.open = expanded.has(key);
|
|
300
|
+
details.className = "request-details";fields.className = "failure-detail";
|
|
301
|
+
localize(summary, "request_metadata");details.append(summary, fields);
|
|
302
|
+
for (const [key, value] of [["time", Number.isFinite(at) ? new Date(at).toLocaleString() : "—"],
|
|
303
|
+
["wire_mib", finite(context.payload_bytes) ? `${(Number(context.payload_bytes) / 1048576).toFixed(2)} MiB` : "—"],
|
|
304
|
+
["images", number(context.images)], ["model_window", number(context.context_window_tokens)], ["input_window", ratio]]) {
|
|
305
|
+
const term = document.createElement("dt"), detail = document.createElement("dd");localize(term, key);detail.textContent = value;fields.append(term, detail);
|
|
306
|
+
}
|
|
307
|
+
row.children[5].append(details);body.append(row);
|
|
277
308
|
}
|
|
278
|
-
if (!contextRequests.length) emptyTable("context-body",
|
|
309
|
+
if (!contextRequests.length) emptyTable("context-body", 6, "no_observed_request_metadata");
|
|
279
310
|
}
|
|
280
311
|
return { render, renderProviders, renderFailures, renderContext };
|
|
281
312
|
}
|
package/src/dashboard/ui.css
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* { box-sizing: border-box; }
|
|
4
4
|
[hidden] { display: none !important; }
|
|
5
5
|
body { margin: 0; color: var(--text); background: var(--page); font-size: 13px; }
|
|
6
|
+
html { scrollbar-gutter: stable; }
|
|
7
|
+
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
|
|
6
8
|
.shell { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
|
|
7
9
|
.topbar { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--top-border); }
|
|
8
10
|
.brand { color: var(--accent); font-size: 16px; font-weight: 750; letter-spacing: .07em; white-space: nowrap; }
|
|
@@ -158,7 +160,7 @@ footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color:
|
|
|
158
160
|
|
|
159
161
|
/* Each view has one scope. The sidebar stays separate from business data. */
|
|
160
162
|
[hidden] { display: none !important; }
|
|
161
|
-
.shell { max-width: 1520px; display: grid; grid-template-columns: 204px minmax(0, 1fr); column-gap: 34px; padding: 0 28px; }
|
|
163
|
+
.shell { max-width: 1520px; min-height: 100vh; display: grid; grid-template-columns: 204px minmax(0, 1fr); grid-template-rows: 76px minmax(0, 1fr) auto; column-gap: 34px; padding: 0 28px; }
|
|
162
164
|
.sidebar { grid-row: 1 / 4; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 24px 0; border-right: 1px solid var(--border); }
|
|
163
165
|
.sidebar-brand { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 12px; color: var(--accent); text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: .04em; }
|
|
164
166
|
.sidebar-brand .brand-caption { display: block; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .1em; margin-top: 8px; }
|
|
@@ -169,10 +171,28 @@ footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color:
|
|
|
169
171
|
.sidebar nav a:focus-visible, .sidebar-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
|
|
170
172
|
.nav-group { color: var(--subtle); font-size: 10px; padding: 18px 12px 4px; text-transform: uppercase; letter-spacing: .08em; }
|
|
171
173
|
.topbar, main, footer { grid-column: 2; min-width: 0; }
|
|
172
|
-
.topbar { min-height: 76px; gap: 14px; }
|
|
174
|
+
.topbar { height: 76px; min-height: 76px; gap: 14px; position: sticky; top: 0; z-index: 5; background: var(--page); }
|
|
173
175
|
.brand { font-size: 12px; }
|
|
174
|
-
.topbar-actions { gap: 12px; }
|
|
175
|
-
.
|
|
176
|
+
.topbar-actions { gap: 12px; flex-wrap: nowrap; }
|
|
177
|
+
.topbar-actions #connection { width: 154px; flex: none; }
|
|
178
|
+
.topbar-actions #auto-refresh { width: 164px; flex: none; }
|
|
179
|
+
.intro { display: block; padding: 32px 0 26px; min-height: 132px; }
|
|
180
|
+
.intro .page-description { margin-top: 14px; line-height: 1.7; }
|
|
181
|
+
main { align-self: start; }
|
|
182
|
+
.section-link { display: inline-block; color: var(--accent); font-size: 12px; text-underline-offset: 3px; }
|
|
183
|
+
.section-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
|
184
|
+
.model-summary strong { color: var(--strong); }
|
|
185
|
+
.panel h3 { color: var(--heading); font-size: 12px; font-weight: 650; margin: 0; }
|
|
186
|
+
.setting-row + .tool-details { border-top: 0; padding-top: 0; }
|
|
187
|
+
.diagnostic-section + .diagnostic-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
|
|
188
|
+
.diagnostic-section > strong { display: block; color: var(--strong); font-size: 23px; margin-top: 16px; }
|
|
189
|
+
.usage-source-controls { margin: 0 0 20px; }
|
|
190
|
+
.chart-heading { flex-wrap: wrap; align-items: end; }
|
|
191
|
+
.chart-heading .analytics-controls { margin: 0; }
|
|
192
|
+
.chart-heading label { display: grid; gap: 6px; color: var(--muted); }
|
|
193
|
+
.request-details { min-width: 190px; max-width: 340px; white-space: normal; }
|
|
194
|
+
.request-details .failure-detail { grid-template-columns: minmax(95px, auto) minmax(0, 1fr); margin-bottom: 0; }
|
|
195
|
+
.request-details .failure-detail dd { overflow-wrap: anywhere; }
|
|
176
196
|
.snapshot-meta { justify-content: flex-start; margin-top: 14px; line-height: 1.7; }
|
|
177
197
|
.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
178
198
|
.client-overview { grid-template-columns: 1fr; }
|
|
@@ -193,7 +213,8 @@ input[role="switch"]:checked::before { left: 19px; background: var(--accent); }
|
|
|
193
213
|
input[role="switch"]:focus-visible, input[type="number"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
|
194
214
|
input[role="switch"]:disabled { opacity: .5; cursor: wait; }
|
|
195
215
|
#process-queues { overflow-wrap: anywhere; font-size: 11px; }
|
|
196
|
-
@media (max-width:
|
|
216
|
+
@media (max-width: 1100px) { .topbar .brand { display: none; } .topbar { justify-content: flex-end; } }
|
|
217
|
+
@media (max-width: 900px) { .shell { grid-template-columns: 170px minmax(0, 1fr); column-gap: 20px; padding: 0 20px; } .setting-row { grid-template-columns: minmax(0, 1fr) 44px; } .setting-row .hint { grid-column: 1 / -1; } .overview { grid-template-columns: 1fr; } .shell { grid-template-rows: 96px minmax(0, 1fr) auto; } .topbar { height: 96px; } .topbar-actions { display: grid; grid-template-columns: 32px 32px minmax(0, 1fr) auto; gap: 8px 9px; width: 100%; } .topbar-actions #connection { grid-column: 1 / -1; width: auto; } .topbar-actions #auto-refresh { width: auto; min-width: 0; padding-inline: 8px; } }
|
|
197
218
|
@media (max-width: 640px) { .shell { display: block; padding: 0 16px; } .sidebar { position: static; height: auto; padding: 20px 0 14px; border-right: 0; border-bottom: 1px solid var(--border); } .sidebar-brand { font-size: 20px; width: fit-content; } .sidebar-brand .brand-caption { margin-top: 4px; } .sidebar nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; margin-top: 16px; } .sidebar nav a { padding: 9px 10px; font-size: 12px; border-left: 0; border-bottom: 2px solid transparent; } .sidebar nav a[aria-current="page"] { border-bottom-color: var(--accent); } .nav-group { display: none; } .topbar { min-height: 62px; justify-content: flex-start; } .topbar-actions { justify-content: flex-start; gap: 9px; } .intro { padding: 24px 0 18px; } .panel, .lower { padding: 17px; } .section-actions > label { width: 100%; } .stats { gap: 12px; } }
|
|
198
219
|
|
|
199
220
|
/* Keep forms aligned with the existing dashboard controls. */
|
|
@@ -205,6 +226,8 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
|
|
|
205
226
|
.analytics-controls select { box-sizing: border-box; height: 36px; min-height: 36px; line-height: normal; }
|
|
206
227
|
.section-actions button { padding-top: 0; padding-bottom: 0; }
|
|
207
228
|
@media (max-width: 640px) {
|
|
229
|
+
.topbar { height: 96px; padding: 8px 0; }
|
|
230
|
+
.topbar-actions { justify-content: initial; }
|
|
208
231
|
.section-actions > label { flex: 1 1 180px; }
|
|
209
232
|
.section-actions select { max-width: 100%; }
|
|
210
233
|
}
|
package/src/dashboard/ui.js
CHANGED
|
@@ -262,6 +262,7 @@ function syncUsageProviders() {
|
|
|
262
262
|
function chooseProvider(id) {
|
|
263
263
|
if (selectedProvider === id) return;
|
|
264
264
|
selectedProvider = id;
|
|
265
|
+
syncProviderDetails();
|
|
265
266
|
try { localStorage.setItem("ccdx.dashboard.modelProvider", id); } catch { /* Keep the current choice. */ }
|
|
266
267
|
for (const [key, button] of providerTabs) { button.setAttribute("aria-selected", String(key === id));button.tabIndex = key === id ? 0 : -1; }
|
|
267
268
|
dashboardRefresh.invalidate("models", { clear: true });
|
|
@@ -273,6 +274,10 @@ function chooseProvider(id) {
|
|
|
273
274
|
void loadModels();
|
|
274
275
|
}
|
|
275
276
|
|
|
277
|
+
function syncProviderDetails() {
|
|
278
|
+
for (const row of element("provider-auth").children) row.hidden = row.dataset.provider !== selectedProvider;
|
|
279
|
+
}
|
|
280
|
+
|
|
276
281
|
function applyProviders(data, { changed }) {
|
|
277
282
|
const wasInitialized = providerEntries.length > 0, previousSelection = selectedProvider;
|
|
278
283
|
const choices = entries => JSON.stringify(entries.map(source => [source.id, source.name, source.generation, source.selection]));
|
|
@@ -298,6 +303,7 @@ function applyProviders(data, { changed }) {
|
|
|
298
303
|
syncUsageProviders();
|
|
299
304
|
const available = providerEntries.some(provider => provider.id === selectedProvider);
|
|
300
305
|
if (!available) selectedProvider = providerEntries.find(provider => provider.clients?.some(client => client.id === "codex" && client.selected))?.id || providerEntries[0]?.id || "";
|
|
306
|
+
syncProviderDetails();
|
|
301
307
|
const container = element("model-providers");
|
|
302
308
|
for (const [id, button] of providerTabs) if (!providerEntries.some(provider => provider.id === id)) { button.remove();providerTabs.delete(id); }
|
|
303
309
|
for (const provider of providerEntries) {
|
|
@@ -358,7 +364,7 @@ function refreshTime(target, state) {
|
|
|
358
364
|
}
|
|
359
365
|
|
|
360
366
|
const timestamps = new Map();
|
|
361
|
-
for (const [key, ids] of [["auth", ["account-authorization"]], ["status", ["
|
|
367
|
+
for (const [key, ids] of [["auth", ["account-authorization", "client-features", "claude-connections"]], ["status", ["source-requests", "request-context", "recent-failures", "runtime-resources", "additional-capabilities", "codex-performance", "claude-performance", "runtime-diagnostics"]], ["models", ["upstream-models"]], ["usage", ["model-usage"]], ["animation", ["animation-settings"]]]) {
|
|
362
368
|
timestamps.set(key, ids.map(id => {
|
|
363
369
|
const node = document.createElement("p");
|
|
364
370
|
node.className = "refresh-time";
|
|
@@ -407,9 +413,9 @@ const dashboardRefresh = globalThis.ccdxRefresh.createController({
|
|
|
407
413
|
apply: applyProviders,
|
|
408
414
|
state: state => {
|
|
409
415
|
if (state.error) {
|
|
410
|
-
if (state.value) localize(element("
|
|
411
|
-
else text("
|
|
412
|
-
}
|
|
416
|
+
if (state.value) localize(element("source-status-note"), "update_failed_last_time", { time: new Date(state.updatedAt).toLocaleTimeString() });
|
|
417
|
+
else text("source-status-note", "unavailable_eb0be");
|
|
418
|
+
} else element("source-status-note").textContent = "";
|
|
413
419
|
for (const node of timestamps.get("auth")) refreshTime(node, state);
|
|
414
420
|
},
|
|
415
421
|
},
|
|
@@ -495,7 +501,7 @@ const dashboardRefresh = globalThis.ccdxRefresh.createController({
|
|
|
495
501
|
},
|
|
496
502
|
},
|
|
497
503
|
animation: {
|
|
498
|
-
visible: () => element("animation-settings").open && !animationSaving,
|
|
504
|
+
visible: () => element("animation-settings").open && !element("animation-settings").closest("[hidden]") && !animationSaving,
|
|
499
505
|
variant: () => element("animation-settings").open && !animationFramesLoaded ? "frames" : "metadata",
|
|
500
506
|
project: data => [data.theme, data.source, data.disabled_by_environment, data.themes.map(theme => [theme.id, theme.label, theme.default, Boolean(theme.frames)])],
|
|
501
507
|
load: ({ variant, signal }) => readDashboard(`/_ccdx/ui/animation${variant === "frames" ? "" : "?frames=0"}`, { signal, timeout: 8000 }),
|
|
@@ -556,6 +562,10 @@ element("clear-usage-day").addEventListener("click", () => selectUsageDay(""));
|
|
|
556
562
|
element("usage-provider")?.addEventListener("change", () => { dashboardRefresh.invalidate("usage");dashboardRefresh.refresh("usage", { force: true }); });
|
|
557
563
|
element("refresh-models").addEventListener("click", loadModels);
|
|
558
564
|
element("refresh-usage").addEventListener("click", loadUsage);
|
|
565
|
+
for (const link of document.querySelectorAll("[data-source-link]")) link.addEventListener("click", () => {
|
|
566
|
+
const id = link.dataset.sourceLink === "codex" ? providerEntries.find(provider => provider.clients?.some(client => client.id === "codex" && client.selected))?.id : link.dataset.sourceLink;
|
|
567
|
+
if (providerEntries.some(provider => provider.id === id)) chooseProvider(id);
|
|
568
|
+
});
|
|
559
569
|
loadAnimation();
|
|
560
570
|
refresh();
|
|
561
571
|
loadAuth();
|