codex-copilot-dx 1.4.9 → 1.4.11

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.
@@ -1262,4 +1262,4 @@ The implementation takes the native/gateway-state ownership separation from [Mag
1262
1262
 
1263
1263
  `tool-activity.mjs` stores bounded, memory-only metadata behind each stream-performance observer. Existing parsed Responses items, Messages blocks and Gemini function calls supply tool names and scoped identifiers; no argument or output body is copied. The existing session/profile HMAC and application label isolate result matching. Results match call IDs, with a unique-name-only fallback for Gemini. Request completion changes generated calls to waiting, never to successful execution. Observable returned results, source failures and cancellation terminate the corresponding observations. Live response activity renews preparing observations with at most one notification per second per request. Missing evidence becomes unknown after 90 seconds, with a bounded late-result window. Snapshot reads perform lazy retention cleanup; there is no server polling loop.
1264
1264
 
1265
- The WebUI consumes this metadata through the existing activity subscription. `dashboard/tool-activity.js` draws only the selected style, caches layout/theme measurements, caps drawing at 30 fps and DPR 1.5, pauses hidden/off-screen/reduced-motion views, and stops terminal cues within 0.9 seconds. Beam ring is the default; grid, busy pulse, fast streaks and assembly line are alternatives. Removed styles fall back to the default and Off retains state text. With no pending calls, conversation-purpose active requests supply processing/reply cues; internal diagnostics and terminal requests are excluded. Non-live request snapshots expire after six seconds. Local deadline timers stop stale activity even when the stream has no new events. Native controls, theme variables and the language dictionary preserve the existing UI contract. Existing `requests --active` and `requests tools` grammar also drive TUI discovery.
1265
+ The WebUI consumes this metadata through the existing activity subscription. `dashboard/tool-activity.js` draws only the selected style, caches layout/theme measurements, caps drawing at 30 fps and DPR 1.5, pauses hidden/off-screen/reduced-motion views, and stops terminal cues within 0.9 seconds. Assembly line is the default; Beam ring and Grid are alternatives. Removed styles fall back to the default and Off retains state text. With no pending calls, conversation-purpose active requests supply processing/reply cues; internal diagnostics and terminal requests are excluded. Non-live request snapshots expire after six seconds. Local deadline timers stop stale activity even when the stream has no new events. Native controls, theme variables and the language dictionary preserve the existing UI contract. Existing `requests --active` and `requests tools` grammar also drive TUI discovery.
package/docs/REFERENCE.md CHANGED
@@ -128,7 +128,7 @@ Each protocol observer retains at most 64 series of 64 request points and 16 com
128
128
 
129
129
  ## Observed tool calls
130
130
 
131
- **Requests → Tool and agent activity** uses the existing activity stream for Codex, Claude and Antigravity. Beam ring is the default; choose Grid, Busy pulse, Fast streaks, Assembly line or Off. This browser remembers valid choices; removed Orbit rings and Woven field choices fall back to Beam ring. Captions change with observed call preparation, waiting and returned results. When no tools are pending, active conversation requests show processing or reply generation. These are observed gateway request phases, not a count of native subagents. Motion runs at a faster presentation cadence, independent of event frequency; it is not a progress percentage or a call counter. System reduced motion and hidden/off-screen views pause continuous drawing. Off stops drawing and keeps the status text. Returned results have at most a 0.9-second finish cue; failure, cancellation and unavailable evidence stop continuous motion.
131
+ **Requests → Tool and agent activity** uses the existing activity stream for Codex, Claude and Antigravity. Assembly line is the default. It shows a roller belt feeding a press. You can also choose Beam ring, Grid or Off. This browser remembers valid choices; removed styles fall back to Assembly line. Captions change with observed call preparation, waiting and returned results. When no tools are pending, active conversation requests show processing or reply generation. These are observed gateway request phases, not a count of native subagents. Motion runs at a faster presentation cadence, independent of event frequency; it is not a progress percentage or a call counter. System reduced motion and hidden/off-screen views pause continuous drawing. Off stops drawing and keeps the status text. Returned results have at most a 0.9-second finish cue; failure, cancellation and unavailable evidence stop continuous motion.
132
132
 
133
133
  Calls are correlated using their IDs and the existing app/profile/session scope. A model emitting a tool call does not prove that the client executed it. Only a matching returned result ends the wait; ambiguous name-only Gemini results stay unconfirmed. Without a reliable session, completed requests show unconfirmed tool state. After 90 seconds without observable tool or response activity, the UI pauses and shows that fresh status is needed. Late results can update retained unconfirmed observations for another five minutes. These display deadlines never cancel tools or change source timeouts.
134
134
 
@@ -259,7 +259,7 @@ For an identified conversation, hovering a point in the input-history chart show
259
259
 
260
260
  In **Settings → Advanced: request limits**, **Shared request-body limit** sets the shared gateway reservation to 32–128 MiB (default 32 MiB). It applies at the next CCDX start. `ccdx config limits` shows the saved and running values. `CCDX_MAX_INFLIGHT_BODY_BYTES` still overrides the saved value. This control does not change per-request size limits, the decompressed-body or response-history pools, Claude's separate Messages queue, or provider concurrency. Increasing this limit does not fix a provider timeout. Antigravity control GETs without a framed body do not enter the upload queue. Allowlisted read-only control POSTs with a known, uncompressed body of at most 8 KiB use four independent slots and an eight-request waiting limit. Other requests still use the shared body queue. `ccdx status --json` reports the short queue under `gemini.activity.short_control_queue`.
261
261
 
262
- `ccdx status` shows the longest admitted wait in the gateway's local request-body queue. `status --json` retains the longest sample and up to 16 recent waits, including cancellations and timeouts. Samples record a route, request ID, wait reason and byte counts in memory; no request body or credential is retained. The existing request details distinguish local waiting from waiting for the selected source. Local waiting ends before the body is read, and source waiting ends before sending upstream. For Antigravity Copilot Chat, `ccdx status --json` reports how many body bytes were passed to the socket (`attempts[].body_written_bytes`), when the local send finished (`body_sent_ms`, measured from request receipt), the outbound client correlation ID (`client_request_id`), and any observed transport error (`transport_error`). The WebUI shows total duration, sending time, response-header wait and first usable output when available. Copy details keeps the local ID, outbound ID and upstream response ID distinct. Valid upstream retry guidance is preserved on 429 and 503; neither response triggers an automatic resend. A local timeout is not a recorded connection error. None of these markers prove the source received or processed the body.
262
+ `ccdx status` shows the longest admitted wait in the gateway's local request-body queue. `status --json` retains the longest sample and up to 16 recent waits, including cancellations and timeouts. Samples record a route, request ID, wait reason and byte counts in memory; no request body or credential is retained. The request table shows the total time. Its details keep source, input usage, and the separate phases. An open request detail in view retains its place as new records arrive. If its disclosure held keyboard focus, that focus is restored. In **Checks → Service requests**, the error category table separates generation, capability and access, request method, request path, and other errors. These classify the same errors shown in the 4xx/5xx totals. The existing request details distinguish local waiting from waiting for the selected source. Local waiting ends before the body is read, and source waiting ends before sending upstream. For Antigravity Copilot Chat, `ccdx status --json` reports how many body bytes were passed to the socket (`attempts[].body_written_bytes`), when the local send finished (`body_sent_ms`, measured from request receipt), the outbound client correlation ID (`client_request_id`), and any observed transport error (`transport_error`). The WebUI shows total duration, sending time, response-header wait and first usable output when available. Copy details keeps the local ID, outbound ID and upstream response ID distinct. Valid upstream retry guidance is preserved on 429 and 503; neither response triggers an automatic resend. A local timeout is not a recorded connection error. None of these markers prove the source received or processed the body.
263
263
 
264
264
  All three Apps share admission for the same configured source and account. A slot spans the real upstream response body through completion, cancellation or error. Request-body memory is tracked separately; uploads of unknown length start with a minimal reservation and grow it by bytes read, before retaining the data for parsing. If there is not enough room, reading pauses until existing requests release memory. Only one such reader per pool may grow at a time; a reader waiting for more memory takes priority over new admissions. Once upload is complete, another reader can start while the earlier request retains its actual body reservation. Requests larger than the pool still run exclusively at the pool ceiling, subject to the existing per-request limits. Growth waits share the existing upload deadline and can appear in the body-read time; the entry queue is recorded separately. Recovery and internal summaries acquire fresh slots after the rejected response releases its slot.
265
265
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-copilot-dx",
3
- "version": "1.4.9",
3
+ "version": "1.4.11",
4
4
  "description": "Local gateway for Codex, Claude and Gemini Antigravity with Copilot, Microsoft 365 and custom APIs",
5
5
  "author": "Dale Xiao",
6
6
  "type": "module",
@@ -0,0 +1,72 @@
1
+ const object = value => value !== null && typeof value === "object" && !Array.isArray(value);
2
+ const schemaMaps = new Set(["properties", "patternProperties", "$defs", "definitions", "dependentSchemas"]);
3
+ const schemaLists = new Set(["allOf", "anyOf", "oneOf", "prefixItems"]);
4
+ const schemaValues = new Set(["additionalProperties", "unevaluatedProperties", "additionalItems",
5
+ "unevaluatedItems", "contains", "propertyNames", "not", "if", "then", "else", "contentSchema"]);
6
+ const references = ["$ref", "$dynamicRef", "$recursiveRef"];
7
+
8
+ function mapChanged(value, map) {
9
+ const entries = Object.entries(value).map(([key, item]) => [key, map(item, key)]);
10
+ return entries.every(([key, item]) => item === value[key]) ? value : Object.fromEntries(entries);
11
+ }
12
+ const requiredList = value => value === undefined
13
+ || Array.isArray(value) && value.every(item => typeof item === "string") && new Set(value).size === value.length;
14
+
15
+ // Carbon rejects object-union schemas whose type/required sit next to anyOf
16
+ // while the properties are declared inside its branches. Distribute these two
17
+ // conjunctive assertions into every branch: T & (A | B) == (T & A) | (T & B).
18
+ // Keep nullable types, const discriminators and all branch-specific constraints.
19
+ export function normalizeCarbonToolSchema(schema, depth = 0) {
20
+ if (!object(schema) || depth > 128) return schema;
21
+ const recurse = child => normalizeCarbonToolSchema(child, depth + 1);
22
+ const result = mapChanged(schema, (value, key) => {
23
+ if (schemaMaps.has(key) && object(value)) return mapChanged(value, recurse);
24
+ if ((schemaLists.has(key) || key === "items") && Array.isArray(value)) {
25
+ const next = value.map(recurse);
26
+ return next.every((item, index) => item === value[index]) ? value : next;
27
+ }
28
+ if (schemaValues.has(key) || key === "items") return recurse(value);
29
+ if (key === "dependencies" && object(value)) {
30
+ return mapChanged(value, item => Array.isArray(item) ? item : recurse(item));
31
+ }
32
+ // Literal values under const/enum/default/examples are data, not schemas.
33
+ return value;
34
+ });
35
+ return distributeAssertions(result, depth);
36
+ }
37
+
38
+ function distributeAssertions(schema, depth) {
39
+ if (depth > 128) return schema;
40
+ let result = schema;
41
+ const { anyOf, type, required } = result;
42
+ const validType = type === undefined || typeof type === "string"
43
+ || Array.isArray(type) && type.length > 0 && type.every(item => typeof item === "string");
44
+ if (!Array.isArray(anyOf) || !anyOf.length || result.properties !== undefined
45
+ || type === undefined && required === undefined || !validType || !requiredList(required)
46
+ || references.some(key => Object.hasOwn(result, key))
47
+ || !anyOf.every(branch => object(branch) && !references.some(key => Object.hasOwn(branch, key))
48
+ && (type === undefined || branch.type === undefined || JSON.stringify(type) === JSON.stringify(branch.type))
49
+ && requiredList(branch.required))) return result;
50
+
51
+ result = { ...result, anyOf: anyOf.map(branch => distributeAssertions({ ...branch,
52
+ ...(type === undefined ? {} : { type }),
53
+ ...(required === undefined ? {} : { required: [...new Set([...(branch.required || []), ...required])] }),
54
+ }, depth + 1))};
55
+ delete result.type;
56
+ delete result.required;
57
+ return result;
58
+ }
59
+
60
+ // Operate only on outbound tool parameters, after the Carbon namespace/deferred
61
+ // tool bridge. Canonical request/history objects and non-Carbon routes stay intact.
62
+ export function normalizeCarbonToolSchemas(body) {
63
+ if (!Array.isArray(body?.tools)) return body;
64
+ const tools = body.tools.map(tool => {
65
+ if (tool?.type !== "function") return tool;
66
+ const owner = object(tool.function) ? tool.function : tool;
67
+ const parameters = normalizeCarbonToolSchema(owner.parameters);
68
+ if (parameters === owner.parameters) return tool;
69
+ return owner === tool ? { ...tool, parameters } : { ...tool, function: { ...owner, parameters } };
70
+ });
71
+ return tools.every((tool, index) => tool === body.tools[index]) ? body : { ...body, tools };
72
+ }
@@ -241,7 +241,10 @@
241
241
  function showCapabilities() {
242
242
  const values = resolved(model, protocol.value), fresh = model.metadata?.deployment === source(editing)?.deployment_revision;
243
243
  words(status, fresh ? "cap_catalog_" + (model.metadata.state || "reported") : "cap_unknown");
244
- if (fresh && model.metadata.checked_at) status.append(" · ", new Date(model.metadata.checked_at).toLocaleString());
244
+ if (fresh && model.metadata.checked_at) {
245
+ const checkedAt = document.createElement("time");checkedAt.className = "metadata-check-time";
246
+ checkedAt.textContent = new Date(model.metadata.checked_at).toLocaleString();status.append(checkedAt);
247
+ }
245
248
  body.replaceChildren();
246
249
  for (const key of ["context_window", "max_input_tokens", "max_output_tokens", "max_tool_definitions", "supported_parameters", "reasoning_efforts", "reasoning_adaptive", "tools", "input_modalities", "web_search"]) {
247
250
  const row = node("tr"), label = node("th");words(label, ({ reasoning_efforts: "cap_reasoning", input_modalities: "cap_input_types", web_search: "cap_search" })[key] || "cap_field_" + key);
@@ -455,7 +458,7 @@
455
458
  if (editingClient === "codex" && memoryMatches(item)) { const badge = node("span", undefined, "memory-model-badge");words(badge, "memory_extract_role");name.append(badge); }
456
459
  const action = button(bindingDefault === routeId(item) && bindingSelection.has(key) ? "cap_default" : "cap_set_default", () => { bindingDirty = true;bindingSelection.add(key);bindingDefault = routeId(item);rememberDraft();bindingRows({ kind: "default", key }); });
457
460
  action.setAttribute("aria-pressed", String(bindingDefault === routeId(item) && bindingSelection.has(key)));
458
- action.dataset.binding = key;action.disabled = Boolean(item.unavailable);action.setAttribute("aria-label", item.id + " · " + format(bindingDefault === routeId(item) ? "cap_default" : "cap_set_default"));
461
+ action.dataset.binding = key;action.disabled = Boolean(item.unavailable);action.setAttribute("aria-label", format("model_action_label", { name: item.id, action: format(bindingDefault === routeId(item) ? "cap_default" : "cap_set_default") }));
459
462
  if (item.unavailable) { const warning = node("span", undefined, "hint binding-unavailable");words(warning, item.reason ? "visibility_" + item.reason : "cap_model_unavailable");name.append(warning); }
460
463
  const cell = node("td");cell.append(action);
461
464
  const details = [node("td", source(item.source)?.name || item.source), node("td", count(capability.context_window)), node("td", reasoningText(capability))];
@@ -465,7 +468,7 @@
465
468
  const saved = bindingEfforts.get(key);
466
469
  if (saved && !levels.includes(saved)) { const option = node("option");option.value = saved;option.disabled = true;words(option, "cap_effort_unavailable", { effort: saved });select.append(option); }
467
470
  for (const effort of levels) { const option = node("option", effort);option.value = effort;select.append(option); }
468
- select.value = saved || "";select.dataset.effortBinding = key;select.setAttribute("aria-label", (item.display_name || item.id) + " · " + format("cap_reasoning"));
471
+ select.value = saved || "";select.dataset.effortBinding = key;select.setAttribute("aria-label", format("model_action_label", { name: item.display_name || item.id, action: format("cap_reasoning") }));
469
472
  select.disabled = busy || Boolean(item.unavailable) || !bindingSelection.has(key);
470
473
  select.addEventListener("change", () => { if (select.value) bindingEfforts.set(key, select.value);else bindingEfforts.delete(key);bindingDirty = true;rememberDraft();bindingRows({ kind: "effort", key }); });
471
474
  details[2].replaceChildren(select);effortControls++;
@@ -13,9 +13,9 @@
13
13
  const node = el(`client-version-${client}`);if (!node) continue;
14
14
  const rows = Array.isArray(value?.[client]) ? value[client] : [];
15
15
  if (!rows.length) { node.removeAttribute("data-i18n");node.textContent = "—";node.title = "";continue; }
16
- const version = rows.map(row => `${rows.length > 1 ? `${row.name} ` : ""}${row.version}${row.build && row.build !== row.version ? ` (${row.build})` : ""}${row.cli_version ? ` · CLI ${row.cli_version}` : ""}`).join(" / ");
16
+ const version = rows.map(row => `${rows.length > 1 ? `${row.name} ` : ""}${row.version}${row.build && row.build !== row.version ? ` (${row.build})` : ""}${row.cli_version ? ` (CLI ${row.cli_version})` : ""}`).join(" / ");
17
17
  label(node, rows.some(row => row.changed_at) ? "client_version_changed" : "client_version_observed", { version });
18
- node.title = rows.filter(row => row.changed_at).map(row => `${row.previous?.version || "—"} → ${row.version} · ${time(row.changed_at, { date: true })}`).join(" / ");
18
+ node.title = rows.filter(row => row.changed_at).map(row => `${row.previous?.version || "—"} → ${row.version} (${time(row.changed_at, { date: true })})`).join(" / ");
19
19
  }
20
20
  }
21
21
  globalThis.ccdxClientVersions = { render: renderClientVersions };
@@ -93,7 +93,7 @@
93
93
  let tr = detailRows.get(id);
94
94
  if (!tr) { tr = entry("tr");for (let i = 0; i < 6; i++) tr.append(entry("td"));detailRows.set(id, tr); }
95
95
  const values = [appName(row.application), sourceName(row.provider, awaitingMetadata(row)), modelName(row.model, awaitingMetadata(row)), format(fresh ? status(row) : "flow_last_observed"), `${((row.elapsed_ms + Math.max(0, Date.now() - sampledAt)) / 1000).toFixed(1)} s`, row.upstream_attempts.toLocaleString()];
96
- if (row.previous_request) values[3] += " · " + format("flow_previous_result", { reason: row.previous_request.stop_reason || row.previous_request.outcome || "—", seconds: (row.previous_request.elapsed_ms / 1000).toFixed(1) });
96
+ if (row.previous_request) values[3] += " (" + format("flow_previous_result", { reason: row.previous_request.stop_reason || row.previous_request.outcome || "—", seconds: (row.previous_request.elapsed_ms / 1000).toFixed(1) }) + ")";
97
97
  tr.title = row.session_id ? format("flow_session_previous", { session: row.session_id, reason: row.previous_request?.stop_reason || row.previous_request?.outcome || "—", seconds: row.previous_request ? (row.previous_request.elapsed_ms / 1000).toFixed(1) : "—" }) : format("flow_session_unknown");
98
98
  values.forEach((value, i) => { if (tr.children[i].textContent !== value) tr.children[i].textContent = value; });
99
99
  if (body.children[index] !== tr) body.insertBefore(tr, body.children[index] || null);
@@ -59,7 +59,7 @@
59
59
  const isDefault=ids.includes(currentDefault())&&chosen.has(currentDefault());
60
60
  button.type='button';button.value=model.id;button.disabled=busy||sharedPending;
61
61
  const title=isDefault?'cap_default':'cap_set_default';language.set(button,title);
62
- button.setAttribute('aria-pressed',String(isDefault));button.setAttribute('aria-label',model.name+' · '+language.format(title));
62
+ button.setAttribute('aria-pressed',String(isDefault));button.setAttribute('aria-label',language.format('model_action_label',{name:model.name,action:language.format(title)}));
63
63
  button.addEventListener('click',()=>{
64
64
  if(isDefault)return;
65
65
  const saved=ids.filter(id=>selected().includes(id)),visible=model.efforts.filter(item=>chosen.has(item.id));
@@ -9,7 +9,7 @@
9
9
  <script src="/theme.js"></script>
10
10
  <link rel="stylesheet" href="/ui.css">
11
11
  <script src="/dashboard.js" defer></script>
12
- <title data-i18n="ccdx_local_dashboard">CCDX · Dashboard</title>
12
+ <title data-i18n="ccdx_local_dashboard">CCDX Dashboard</title>
13
13
  </head>
14
14
  <body>
15
15
  <div class="shell">
@@ -31,7 +31,7 @@
31
31
 
32
32
  <header class="topbar">
33
33
  <div class="brand">CCDX </div>
34
- <div class="topbar-actions"><span id="connection" class="badge neutral" role="status" data-i18n="reading">READING</span><button id="theme-toggle" class="icon-button" type="button" aria-label="Switch to light mode" title="Switch to light mode"><svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.42 1.42m11.3 11.3 1.42 1.42M2 12h2m16 0h2M4.93 19.07l1.42-1.42m11.3-11.3 1.42-1.42"/></svg><svg class="icon-moon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path d="M12 3A9 9 0 1 0 21 12 7 7 0 0 1 12 3Z"/></svg></button><button id="language-toggle" class="icon-button language-button" type="button" aria-label="Switch to Chinese" title="Switch to Chinese">中文</button><button id="auto-refresh" type="button" aria-pressed="true" data-i18n-title="activity_updates_live" title="Activity updates live. Catalogs and retained usage refresh on demand or every 30 minutes while open."><span class="auto-refresh-measure" aria-hidden="true" data-i18n="auto_refresh_off">Auto refresh · OFF</span><span id="auto-refresh-label" data-i18n="auto_refresh_on">Auto refresh · ON</span></button><button id="refresh" type="button" data-i18n="refresh">Refresh</button></div>
34
+ <div class="topbar-actions"><span id="connection" class="badge neutral" role="status" data-i18n="reading">READING</span><button id="theme-toggle" class="icon-button" type="button" aria-label="Switch to light mode" title="Switch to light mode"><svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.42 1.42m11.3 11.3 1.42 1.42M2 12h2m16 0h2M4.93 19.07l1.42-1.42m11.3-11.3 1.42-1.42"/></svg><svg class="icon-moon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path d="M12 3A9 9 0 1 0 21 12 7 7 0 0 1 12 3Z"/></svg></button><button id="language-toggle" class="icon-button language-button" type="button" aria-label="Switch to Chinese" title="Switch to Chinese">中文</button><button id="auto-refresh" type="button" aria-pressed="true" data-i18n-title="activity_updates_live" title="Activity updates live. Catalogs and retained usage refresh on demand or every 30 minutes while open."><span class="auto-refresh-measure" aria-hidden="true" data-i18n="auto_refresh_off">Auto refresh: Off</span><span id="auto-refresh-label" data-i18n="auto_refresh_on">Auto refresh: On</span></button><button id="refresh" type="button" data-i18n="refresh">Refresh</button></div>
35
35
  </header>
36
36
 
37
37
  <main id="main-content" tabindex="-1">
@@ -98,7 +98,7 @@
98
98
  </div>
99
99
  <p id="source-model-note" class="hint" data-i18n="github_model_in_codex">Choose your conversation model in Codex.</p>
100
100
  <div id="source-control-note" class="hint" role="status"></div>
101
- <p class="table-note model-summary"><span data-i18n="codex_models">CODEX MODELS</span>: <strong id="models">—</strong> · <span id="model-source">—</span></p>
101
+ <p class="table-note model-summary"><span data-i18n="codex_models">CODEX MODELS</span>: <strong id="models">—</strong> <span id="model-source">—</span></p>
102
102
  <a class="section-link" href="#models" data-source-link="codex" data-i18n="view_model_list">View model list</a>
103
103
  </section>
104
104
  <section class="panel dashboard-section" aria-labelledby="review-heading">
@@ -280,7 +280,7 @@
280
280
  <div class="section-actions"><button id="source-access-save" type="submit" data-i18n="api_save" disabled>Save</button><button id="source-access-cancel" type="button" data-i18n="cap_discard_changes" disabled>Discard changes</button></div>
281
281
  <p id="source-access-note" class="hint" role="status" aria-live="polite"></p>
282
282
  </form>
283
- <details class="tool-details" id="source-concurrency"><summary data-i18n="source_concurrency">Concurrency · Auto</summary>
283
+ <details class="tool-details" id="source-concurrency"><summary data-i18n="source_concurrency">Concurrency (Auto)</summary>
284
284
  <form id="source-limit-form"><div class="connection-fields"><label><span data-i18n="source_concurrency_maximum">Maximum concurrency</span><input id="source-limit-maximum" type="number" min="1" max="128" step="1" inputmode="numeric" placeholder="Auto" data-i18n-placeholder="source_concurrency_auto"></label></div>
285
285
  <p class="hint" data-i18n="source_concurrency_hint">Leave blank for Auto. A value only sets its ceiling.</p>
286
286
  <div class="section-actions"><button id="source-limit-save" type="submit" data-i18n="api_save" disabled>Save</button></div><p id="source-limit-note" class="hint" role="status" aria-live="polite"></p>
@@ -325,7 +325,21 @@
325
325
  </section>
326
326
  <details class="panel dashboard-section" id="runtime-diagnostics"><summary data-i18n="runtime_details">RUNTIME DETAILS</summary>
327
327
  <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>
328
- <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>
328
+ <section class="diagnostic-section request-diagnostics"><h2 data-i18n="http_traffic">SERVICE REQUESTS</h2>
329
+ <dl id="request-errors" class="request-kpis">
330
+ <div><dt data-i18n="requests">Requests</dt><dd id="requests">—</dd></div>
331
+ <div><dt>4xx</dt><dd id="requests-4xx">—</dd></div><div><dt>5xx</dt><dd id="requests-5xx">—</dd></div>
332
+ <div><dt data-i18n="active">Active</dt><dd id="requests-active">—</dd></div>
333
+ </dl>
334
+ <table id="http-error-breakdown" class="http-error-table" data-i18n-label="http_error_classes" aria-label="HTTP errors by category">
335
+ <thead><tr><th scope="col" data-i18n="http_error_inference">Generation</th><th scope="col" data-i18n="http_error_capability">Capability and access</th><th scope="col" data-i18n="http_error_protocol">Request method</th><th scope="col" data-i18n="http_error_route">Request path</th><th scope="col" data-i18n="other">Other</th></tr></thead>
336
+ <tbody><tr><td id="http-inference">—</td><td id="http-capability">—</td><td id="http-protocol">—</td><td id="http-route">—</td><td id="http-other">—</td></tr></tbody>
337
+ </table>
338
+ <dl class="http-error-grid" data-i18n-label="http_error_classes" aria-label="HTTP errors by category">
339
+ <div><dt data-i18n="http_error_inference">Generation</dt><dd id="http-mobile-inference">—</dd></div><div><dt data-i18n="http_error_capability">Capability and access</dt><dd id="http-mobile-capability">—</dd></div><div><dt data-i18n="http_error_protocol">Request method</dt><dd id="http-mobile-protocol">—</dd></div><div><dt data-i18n="http_error_route">Request path</dt><dd id="http-mobile-route">—</dd></div><div><dt data-i18n="other">Other</dt><dd id="http-mobile-other">—</dd></div>
340
+ </dl>
341
+ <p class="request-limits-line"><span data-i18n="per_request_limits_active">Per-request limits</span><span id="body-limits">—</span></p>
342
+ </section>
329
343
  </details>
330
344
  <details class="panel dashboard-section"><summary data-i18n="more_checks_reports">MORE CHECKS AND REPORTS</summary>
331
345
  <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>
@@ -388,9 +402,9 @@
388
402
  <details id="flow-active" class="tool-details"><summary id="flow-active-title" data-i18n="flow_active_requests">Active requests</summary><div class="table-wrap"><table><thead><tr><th data-i18n="client">App</th><th data-i18n="source">Source</th><th data-i18n="model">Model</th><th data-i18n="state">State</th><th data-i18n="flow_elapsed">Elapsed</th><th data-i18n="attempts">Attempts</th></tr></thead><tbody id="flow-active-body"></tbody></table></div></details>
389
403
  </section>
390
404
  <section id="tool-activity" class="panel dashboard-section" aria-labelledby="tool-title" data-paused="true">
391
- <div class="panel-heading"><h2 id="tool-title" data-i18n="tool_heading">TOOL AND AGENT ACTIVITY</h2><label class="tool-style" for="tool-style"><span data-i18n="tool_style">Style</span><select id="tool-style"><option value="halo" data-i18n="tool_style_halo">Beam ring</option><option value="grid" data-i18n="tool_style_grid">Grid</option><option value="busy" data-i18n="tool_style_busy">Busy pulse</option><option value="speed" data-i18n="tool_style_speed">Fast streaks</option><option value="assembly" data-i18n="tool_style_assembly">Assembly line</option><option value="off" data-i18n="tool_style_off">Off</option></select></label></div>
392
- <div id="tool-stage" class="tool-stage" data-style="halo">
393
- <div class="tool-visual"><div class="tool-orbit"><canvas id="tool-canvas" role="img" data-i18n-label="tool_heading" aria-label="Tool and agent activity"></canvas></div><p class="tool-narration"><span id="tool-state" role="status" aria-live="polite" data-i18n="flow_status_unknown">Waiting for a fresh status</span><span id="tool-cursor" aria-hidden="true" hidden> ···</span></p></div>
405
+ <div class="panel-heading"><h2 id="tool-title" data-i18n="tool_heading">TOOL AND AGENT ACTIVITY</h2><label class="tool-style" for="tool-style"><span data-i18n="tool_style">Style</span><select id="tool-style"><option value="assembly" data-i18n="tool_style_assembly">Assembly line</option><option value="halo" data-i18n="tool_style_halo">Beam ring</option><option value="grid" data-i18n="tool_style_grid">Grid</option><option value="off" data-i18n="tool_style_off">Off</option></select></label></div>
406
+ <div id="tool-stage" class="tool-stage" data-style="assembly">
407
+ <div class="tool-visual"><div class="tool-orbit"><canvas id="tool-canvas" role="img" data-i18n-label="tool_heading" aria-label="Tool and agent activity"></canvas></div><p class="tool-narration"><span id="tool-state" role="status" aria-live="polite" data-i18n="flow_status_unknown">Waiting for a fresh status</span><span id="tool-cursor" aria-hidden="true" hidden> …</span></p></div>
394
408
  <div class="tool-content"><p id="tool-context" class="tool-context" hidden></p><div id="tool-list"></div><p id="tool-more" class="hint" hidden></p><details id="tool-details" class="tool-details tool-technical" hidden><summary data-i18n="tool_details">Call details</summary><div id="tool-technical"></div></details></div>
395
409
  </div>
396
410
  </section>
@@ -398,13 +412,12 @@
398
412
  <summary data-i18n="requests_by_source">REQUESTS BY SOURCE</summary>
399
413
  <p class="hint" data-i18n="results_since_startup_partial_usage_is_marked_separately">Results since startup. Partial usage is marked separately.</p>
400
414
  <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>
401
- <details class="tool-details"><summary data-i18n="source_summary_details">Source summaries</summary><div id="provider-requests" class="hint"></div></details>
415
+ <details class="tool-details"><summary data-i18n="source_summary_details">Source summaries</summary><div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="source">Source</th><th scope="col" data-i18n="protocol">Protocol</th><th scope="col" data-i18n="completed">Completed</th><th scope="col" data-i18n="incomplete">Incomplete</th><th scope="col" data-i18n="failed">Failed</th></tr></thead><tbody id="provider-requests"></tbody></table></div></details>
402
416
  </details>
403
417
  <details class="panel dashboard-section" id="request-context" open>
404
418
  <summary data-i18n="recent_request_context">RECENT REQUESTS</summary>
405
- <p id="context-note" class="table-note">—</p>
406
- <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>
407
- <details class="tool-details"><summary data-i18n="record_scope">Record scope</summary><p class="hint" data-i18n="recent_upstream_request_metadata_not_exact_live_session_occupanc">No prompts or images are stored. — means unavailable data.</p><p class="hint" data-i18n="http_2xx_model_completed">HTTP status and model outcome are recorded separately.</p></details>
419
+ <div class="table-wrap"><table class="recent-requests-table"><thead><tr><th scope="col" data-i18n="time">Time</th><th scope="col" data-i18n="client">App</th><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="outcome">RESULT</th><th scope="col" class="recent-request-duration" data-i18n="request_total_time">Total time</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>
420
+ <details class="tool-details"><summary data-i18n="record_scope">Record scope</summary><p id="context-note" class="table-note">—</p><p class="hint" data-i18n="recent_upstream_request_metadata_not_exact_live_session_occupanc">No prompts or images are stored. — means unavailable data.</p><p class="hint" data-i18n="http_2xx_model_completed">HTTP status and model outcome are recorded separately.</p></details>
408
421
  </details>
409
422
  <details class="lower" id="recent-failures" open>
410
423
  <summary class="panel-heading"><h2 data-i18n="recent_inference_http_failures">RECENT REQUEST ISSUES</h2><span id="failure-count">requests + events</span></summary>
@@ -437,7 +450,7 @@
437
450
  </details>
438
451
  <details class="tool-details"><summary data-i18n="terminal_color_preview">Terminal preview</summary>
439
452
  <div id="terminal-color-sample" class="terminal-sample" data-terminal-palette="green" aria-label="Terminal color preview" data-i18n-label="terminal_color_preview">
440
- <div class="terminal-caption"><span>CCDX · Terminal</span><span data-i18n="appearance_sample">Sample data</span></div>
453
+ <div class="terminal-caption"><span>CCDX Terminal</span><span data-i18n="appearance_sample">Sample data</span></div>
441
454
  <div class="terminal-brand">
442
455
  <pre class="terminal-logo" aria-hidden="true"> ▄▀█▄ ▄█▀▄
443
456
  █ ▄███▄ █
@@ -483,7 +496,7 @@
483
496
  <div class="nightly-update">
484
497
  <div class="setting-row"><label for="nightly-update" data-i18n="nightly_update">Update overnight</label><input id="nightly-update" type="checkbox" role="switch" aria-describedby="nightly-risk" disabled><span id="nightly-state" class="hint" role="status"></span></div>
485
498
  <p id="nightly-risk" class="hint" data-i18n="nightly_risk">Updates install a new version and restart CCDX. Continuing a conversation may be affected.</p>
486
- <div id="nightly-rules" hidden><dl class="nightly-rules"><div><dt data-i18n="nightly_window">Update window</dt><dd data-i18n="nightly_window_value">00:00–04:00 · Local time</dd></div><div><dt data-i18n="nightly_when">When to update</dt><dd data-i18n="nightly_when_value">Idle for 10 minutes, after checks pass</dd></div><div><dt data-i18n="nightly_versions">Versions</dt><dd data-i18n="nightly_versions_value">Stable patches released at least 24 hours ago</dd></div><div><dt data-i18n="nightly_failure">If an update fails</dt><dd data-i18n="nightly_failure_value">Try restoring the previous version and pause this update</dd></div></dl></div>
499
+ <div id="nightly-rules" hidden><dl class="nightly-rules"><div><dt data-i18n="nightly_window">Update window</dt><dd data-i18n="nightly_window_value">00:00–04:00 local time</dd></div><div><dt data-i18n="nightly_when">When to update</dt><dd data-i18n="nightly_when_value">Idle for 10 minutes, after checks pass</dd></div><div><dt data-i18n="nightly_versions">Versions</dt><dd data-i18n="nightly_versions_value">Stable patches released at least 24 hours ago</dd></div><div><dt data-i18n="nightly_failure">If an update fails</dt><dd data-i18n="nightly_failure_value">Try restoring the previous version and pause this update</dd></div></dl></div>
487
500
  </div>
488
501
  <p id="update-state" class="hint" role="status" data-i18n="reading">READING</p>
489
502
  <div class="section-actions"><button id="install-update" type="button" data-i18n="update_install_now" disabled>Install update</button><span id="manual-update-note" class="hint" role="status"></span></div><details class="tool-details" id="update-advanced"><summary data-i18n="advanced_terminal">Advanced: terminal commands</summary><div id="update-command-row" class="update-command"><code id="update-command">ccdx update github</code><button type="button" id="copy-update" data-i18n="copy_command">Copy command</button></div>
@@ -491,7 +504,7 @@
491
504
  <p id="update-checked" class="refresh-time"></p>
492
505
  <details class="update-install"><summary data-i18n="update_install_help">Update failed? View full installation commands</summary><p class="hint" data-i18n="update_install_hint">Download the official installer. No Git required.</p>
493
506
  <div class="section-actions install-platforms" role="group" aria-label="Installation platform" data-i18n-label="installation_platform"><button type="button" data-install-platform="macos" aria-pressed="true">macOS</button><button type="button" data-install-platform="windows" aria-pressed="false">Windows</button></div>
494
- <div class="install-command-heading"><span id="install-shell" class="hint">macOS · Terminal</span><button type="button" id="copy-install" data-i18n="copy_command">Copy command</button></div><pre id="install-command" class="install-command"></pre>
507
+ <div class="install-command-heading"><span id="install-shell" class="hint">macOS Terminal</span><button type="button" id="copy-install" data-i18n="copy_command">Copy command</button></div><pre id="install-command" class="install-command"></pre>
495
508
  <p class="hint" data-i18n="update_install_policy">Reuses compatible Node/npm or installs a private runtime. Keeps your registry, proxy, certificates and shell policy.</p>
496
509
  <p id="install-windows-policy" class="hint" hidden data-i18n="update_windows_policy">If scripts are blocked, use your company’s approved installation method.</p>
497
510
  </details></details><p id="update-copy-note" class="hint" role="status"></p>
@@ -4,9 +4,7 @@
4
4
  "tool_style": ["Style","样式"],
5
5
  "tool_style_grid": ["Grid","格子进度条"],
6
6
  "tool_style_halo": ["Beam ring","光束圆环"],
7
- "tool_style_busy": ["Busy pulse","忙碌脉冲"],
8
- "tool_style_speed": ["Fast streaks","疾速流光"],
9
- "tool_style_assembly": ["Assembly line","装配流水线"],
7
+ "tool_style_assembly": ["Assembly line","装配线"],
10
8
  "tool_style_off": ["Off","关闭"],
11
9
  "tool_preparing": ["Preparing a tool call","正在准备调用"],
12
10
  "tool_preparing_many": ["Preparing {count} calls","并行准备 {count} 项调用"],
@@ -72,7 +70,7 @@
72
70
  prediction_open: ["Open Codex", "打开 Codex"],
73
71
  feature_remove: ["Remove setup", "移除接入"],
74
72
  flow_previous_result: ["Previous: {reason}, {seconds} s", "上次:{reason},{seconds} 秒"],
75
- flow_session_previous: ["Session {session} · previous: {reason}, {seconds} s", "会话 {session} · 上次请求:{reason},{seconds} 秒"],
73
+ flow_session_previous: ["Session {session}. Previous request: {reason} ({seconds} s)", "会话 {session}。上次请求:{reason}({seconds} 秒)"],
76
74
  flow_session_unknown: ["Session correlation unavailable", "无法关联会话"],
77
75
  image_check: ["Check access", "检查接入"],
78
76
  image_repair: ["Repair access", "修复接入"],
@@ -148,7 +146,7 @@
148
146
  privacy_heading: ["ADVANCED", "高级"], privacy_enable: ["Local masking", "本地脱敏"], privacy_scope: ["Conversation and tool text. Images and predictions keep their current behavior.", "检查对话和工具文本。图片与预测保持原有行为。"], privacy_state_checking: ["Checking locally", "本地检查中"],
149
147
  privacy_personal: ["Include personal information", "同时保护个人信息"], privacy_personal_hint: ["Names and addresses may be mistaken for code.", "姓名和地址可能与代码混淆。"], privacy_try: ["Try locally", "本地试用"], privacy_sample: ["Sample text", "试用文本"], privacy_check: ["Check text", "检查文本"], privacy_remove: ["Delete model", "删除模型"],
150
148
  privacy_download: ["Downloads about 39 MB plus the local component. Checks may add delay or mistake ordinary text.", "下载约 39 MB 模型及本地组件。检查可能增加等待或误识别。"], privacy_fail_closed: ["If a check cannot finish, the request is not sent.", "检查未完成时,请求不会发出。"], privacy_confirm: ["Download & enable", "下载并开启"],
151
- privacy_state_off: ["Off", "已关闭"], privacy_state_downloading: ["Downloading · {percent}%", "下载中 · {percent}%"], privacy_state_loading: ["Loading locally", "本地加载中"], privacy_state_ready: ["Keys and passwords", "密钥与密码"], privacy_state_error: ["Not ready", "尚未就绪"], privacy_state_installed: ["Downloaded · off", "已下载 · 已关闭"], privacy_result: ["{count} values masked · {ms} ms", "脱敏 {count} 项 · {ms} ms"],
149
+ privacy_state_off: ["Off", "已关闭"], privacy_state_downloading: ["Downloading ({percent}%)", "下载中({percent}%)"], privacy_state_loading: ["Loading locally", "本地加载中"], privacy_state_ready: ["Keys and passwords", "密钥与密码"], privacy_state_error: ["Not ready", "尚未就绪"], privacy_state_installed: ["Downloaded (off)", "已下载,未启用"], privacy_result: ["{count} values masked in {ms} ms", "脱敏 {count} 项,耗时 {ms} ms"],
152
150
  privacy_response_error: ["Reply restoration failed ({code}). The reply was stopped.", "回复还原失败({code}),回复已停止。"],
153
151
  privacy_error: ["Check could not finish. Nothing was sent; retry or review these settings.", "检查未完成,未发送请求。请重试或检查设置。"], privacy_download_error: ["Download failed. Check approved download access, proxy and certificates.", "下载失败。请检查下载权限、代理和证书。"], privacy_changed: ["Settings changed elsewhere. Reload this section before trying again.", "设置已在其他窗口修改。请刷新后重试。"], privacy_preview_error: ["Local check failed. No text was sent to a provider.", "本地检查失败。未向模型来源发送文本。"],
154
152
  privacy_busy: ["Local detection is busy. Nothing was sent; retry shortly.", "本地检测繁忙,未发送请求。请稍后重试。"],
@@ -166,7 +164,7 @@
166
164
  "context_latest_input": ["Latest input", "最近输入"],
167
165
  "context_reuse": ["Cache reuse", "缓存复用"],
168
166
  "context_history": ["Input history", "输入变化"],
169
- "context_point_usage": ["{time} · input {input} tokens · cache reuse {reuse}", "{time} · 输入 {input} Token · 缓存复用 {reuse}"],
167
+ "context_point_usage": ["{time}\nInput: {input} tokens\nCache reuse: {reuse}", "{time}\n输入:{input} Token\n缓存复用:{reuse}"],
170
168
  "context_compactions": ["Gateway compactions", "网关压缩"],
171
169
  "context_elapsed": ["Elapsed", "耗时"],
172
170
  "context_conversation": ["Conversation {id}", "会话 {id}"],
@@ -177,11 +175,11 @@
177
175
  "context_no_compactions": ["No observed compactions.", "未观测到压缩。"],
178
176
  "context_concurrent": ["Concurrent requests", "并发请求"],
179
177
  "context_request_order": ["Request order", "请求顺序"],
180
- "context_scope": ["This run · Reported metadata", "本次运行 · 上报数据"],
178
+ "context_scope": ["This run (reported data)", "本次运行的上报数据"],
181
179
  "context_read_failed": ["Read failed. Previous data kept.", "读取失败,保留上次数据。"],
182
180
  "model_id": ["Model ID", "模型 ID"],
183
181
  "catalog_scope": ["Catalog scope", "目录说明"],
184
- "issue_brief": ["{cause} · {model} · {time}", "{cause} · {model} · {time}"],
182
+ "issue_brief": ["{cause}: {model} ({time})", "{model}:{cause}({time})"],
185
183
  "issue_count_unavailable": ["Token counting unavailable", "令牌计数接口不可用"],
186
184
  "issue_source_limit": ["Source usage limit reached", "模型来源用量受限"],
187
185
  "issue_source_quota": ["Source credits or quota exhausted", "模型来源余额或配额不足"],
@@ -194,18 +192,18 @@
194
192
  "issue_request_failed": ["Request did not complete", "请求未完成"],
195
193
  "issue_upstream_timeout": ["Source request timed out", "来源请求超时"],
196
194
  "issue_after_send_timeout": ["Timed out waiting for the source", "等待来源响应超时"],
197
- "issue_source_rate_wait": ["Source rate limit · wait {seconds} s", "来源限流 · 建议等待 {seconds} 秒"],
195
+ "issue_source_rate_wait": ["Source rate limit. Wait {seconds} s.", "来源限流。建议等待 {seconds} 秒。"],
198
196
  "api_save_read": ["Save & read models", "保存并读取模型"],
199
197
  "api_read_failed": ["API saved. Model lookup failed; retry here. {code}", "来源已保存;模型读取失败,可在此重试。{code}"],
200
198
  "sync_capability_unverified": ["Client capabilities are unverified; existing settings were kept.", "客户端能力未验证,现有设置已保留。"],
201
199
  "source_accounts": ["Sources", "来源"],
202
- "sync_config_written": ["Configuration written · reopen the app to load changes", "配置已写入 · 重开应用查看变更"],
203
- "sync_manual": ["Selection saved · automatic sync is off", "选择已保存 · 自动同步已关闭"],
204
- "sync_preserved": ["Manual settings retained · review sync details", "手工设置已保留 · 查看同步详情"],
205
- "sync_failed": ["Configuration could not be written · review sync details", "配置写入失败 · 查看同步详情"],
200
+ "sync_config_written": ["Configuration saved. Reopen to load it.", "配置已保存,重新打开应用后生效。"],
201
+ "sync_manual": ["Selection saved. Automatic sync is off.", "选择已保存,未同步到应用。"],
202
+ "sync_preserved": ["Manual settings retained. See sync details.", "已保留手动设置,可查看同步详情。"],
203
+ "sync_failed": ["Could not write configuration. See sync details.", "无法写入配置,可查看同步详情。"],
206
204
  "sync_not_configured": ["App configuration not applied", "尚未应用到客户端配置"],
207
205
  "cap_save_sync": ["Save & sync", "保存并同步"],
208
- "api_impact_models": ["Selected models: {before} → {after} · removes {removed}", "已选模型:{before} → {after} · 移除{removed}个"],
206
+ "api_impact_models": ["Selected models: {before} → {after} ({removed} removed)", "已选模型:{before} → {after},移除 {removed} 个"],
209
207
  "api_impact_default_kept": ["The default model stays unchanged.", "默认模型保持不变。"],
210
208
  "api_impact_unavailable": ["Refresh the page to review affected apps.", "请刷新页面,查看受影响的应用。"],
211
209
  "api_impact_changed": ["Selections changed. Review the updated impact before confirming.", "模型选择已变化,请重新确认影响。"],
@@ -227,7 +225,7 @@
227
225
  "source_apps_review": ["Saved. Review {apps} sync results on the app page.", "已保存,请在应用页复核 {apps} 同步结果。"],
228
226
  "catalog_read_network": ["Online read", "在线读取"],
229
227
  "catalog_read_cache": ["Local cache", "本地缓存"],
230
- "catalog_read_summary": ["{origin} · {total} models · GPT {gpt} / Claude {claude} · {time}", "{origin} · {total} 个模型 · GPT {gpt} / Claude {claude} · {time}"],
228
+ "catalog_read_summary": ["{origin}: {total} models (GPT {gpt}, Claude {claude}), read {time}", "{origin} 共 {total} 个模型(GPT {gpt}、Claude {claude}),读取于 {time}"],
231
229
  "catalog_local_cache": ["CCDX model cache", "本机模型缓存"],
232
230
  "catalog_cache_used": ["Used", "已使用"],
233
231
  "catalog_cache_unused": ["Not used", "未使用"],
@@ -321,9 +319,15 @@
321
319
  "visibility_source_restricted": ["Hidden or restricted by source", "来源隐藏或限制了此模型"],
322
320
  "visibility_protocol_unsupported": ["Required interface unavailable", "缺少应用所需接口"],
323
321
  "visibility_model_not_selected": ["Not selected for this app", "此应用尚未选择该模型"],
324
- "http_categories": ["Generation {inference} · Capabilities/access {capability} · Methods {protocol} · Paths {route} · Other {other}", "生成 {inference} · 能力/访问 {capability} · 方法 {protocol} · 路径 {route} · 其他 {other}"],
322
+ "http_error_classes": ["HTTP errors by category", "HTTP 错误分类"],
323
+ "http_error_inference": ["Generation", "生成请求"],
324
+ "http_error_capability": ["Capability and access", "能力与访问"],
325
+ "http_error_protocol": ["Request method", "请求方法"],
326
+ "http_error_route": ["Request path", "请求路径"],
327
+ "other": ["Other", "其他"],
328
+ "http_categories": ["Generation {inference}, capability and access {capability}, request method {protocol}, request path {route}, other {other}", "生成 {inference},能力与访问 {capability},请求方法 {protocol},请求路径 {route},其他 {other}"],
325
329
  "no_upstream_call": ["No upstream call", "未调用上游"],
326
- "repeated_issue": ["{detail} · {count} occurrences", "{detail} · 出现 {count} 次"],
330
+ "repeated_issue": ["{detail} ({count} occurrences)", "{detail}(共 {count} 次)"],
327
331
  "reason": ["Reason", "具体原因"],
328
332
  "occurrences": ["Occurrences", "出现次数"],
329
333
  "capability_cached": ["Recent capability result reused", "沿用近期能力结果"],
@@ -337,7 +341,7 @@
337
341
  "nightly_update": ["Update overnight", "夜间自动更新"],
338
342
  "nightly_risk": ["Updates install a new version and restart CCDX. Continuing a conversation may be affected.", "开启后会自动安装新版并重启 CCDX,可能影响会话续接。"],
339
343
  "nightly_window": ["Update window", "更新时间"],
340
- "nightly_window_value": ["00:00–04:00 · Local time", "00:00–04:00 · 本机时间"],
344
+ "nightly_window_value": ["00:00–04:00 local time", "本机时间 00:00–04:00"],
341
345
  "nightly_when": ["When to update", "执行条件"],
342
346
  "nightly_when_value": ["Idle for 10 minutes, after checks pass", "持续空闲 10 分钟,且检查通过"],
343
347
  "nightly_versions": ["Versions", "更新范围"],
@@ -345,8 +349,8 @@
345
349
  "nightly_failure": ["If an update fails", "更新失败"],
346
350
  "nightly_failure_value": ["Try restoring the previous version and pause this update", "尝试恢复原版,并暂停该版本"],
347
351
  "nightly_off": ["Off by default", "默认关闭"],
348
- "nightly_next_start": ["On · Starts next time you run CCDX", "已开启 · 下次启动 CCDX 生效"],
349
- "nightly_watching": ["On · Waiting for an idle overnight window", "已开启 · 等待夜间空闲时段"],
352
+ "nightly_next_start": ["Starts the next time you run CCDX", "下次启动 CCDX 时生效"],
353
+ "nightly_watching": ["Waiting for an idle overnight window", "等待夜间空闲时段"],
350
354
  "nightly_checking": ["Checking for updates", "正在检查更新"],
351
355
  "nightly_preparing": ["Preparing an update; service stays available", "正在准备新版,当前服务继续运行"],
352
356
  "nightly_deferred": ["Deferred until another idle window", "已延后,等待下个空闲时段"],
@@ -399,7 +403,7 @@
399
403
  "application_action_route_conflict": ["Existing routing was preserved. Check the app configuration.", "已有路由已保留,请检查应用配置。"],
400
404
  "codex_auto_launch": ["Open Codex when CCDX starts", "启动 CCDX 时打开 Codex"],
401
405
  "application_preference_failed": ["Not saved. Try again.", "未保存,请重试。"],
402
- "source_concurrency": ["Concurrency · Auto", "并发 · 自动"],
406
+ "source_concurrency": ["Concurrency (Auto)", "并发(自动)"],
403
407
  "source_concurrency_auto": ["Auto", "自动"],
404
408
  "source_concurrency_maximum": ["Maximum concurrency", "最大并发"],
405
409
  "source_concurrency_hint": ["Leave blank for Auto. A value only sets its ceiling.", "留空自动调节,填写数值仅设上限。"],
@@ -596,7 +600,7 @@
596
600
  "image_first_setup": ["Uses the existing GitHub account", "使用现有 GitHub 账号"],
597
601
  "record_scope": ["Record scope", "记录范围"],
598
602
  "estimated_percentiles": ["Approx. first-output P50 / P95", "首个输出 P50 / P95(约)"],
599
- "percentile_values": ["{p50} / {p95} ms · {samples} samples", "{p50} / {p95} ms · {samples} 次样本"],
603
+ "percentile_values": ["{p50} / {p95} ms ({samples} samples)", "{p50} / {p95} ms({samples} 次样本)"],
600
604
  "percentile_basis": ["Estimated from histogram buckets since startup; includes partial-output failures.", "按本次运行的耗时分布估算,包含已有输出的失败请求。"],
601
605
  "source_initial_review_saved": ["Source and initial review settings saved. Applies to new requests.", "来源及初始审查设置已保存,用于新的请求。"],
602
606
 
@@ -609,10 +613,10 @@
609
613
  "flow_no_active": ["Waiting for the next request", "等待下一次请求"],
610
614
  "flow_last_observed": ["Last observed", "上次记录"],
611
615
  "flow_active_requests": ["Active requests", "进行中的请求"],
612
- "flow_active_count": ["Active requests · {count}", "进行中 · {count}"],
613
- "flow_last_count": ["Last observed · {count}", "上次记录 · {count}"],
616
+ "flow_active_count": ["Active requests ({count})", "进行中({count})"],
617
+ "flow_last_count": ["Last observed ({count})", "上次记录({count})"],
614
618
  "flow_related_count": ["{count} related requests", "{count} 个相关请求"],
615
- "flow_group_scope": ["{apps} apps · {models} model groups", "{apps} 个应用 · {models} 个模型分组"],
619
+ "flow_group_scope": ["{apps} apps, {models} model groups", "{apps} 个应用,{models} 个模型分组"],
616
620
  "flow_omitted": ["Showing {count} requests; {omitted} more have no detail", "显示 {count} 个请求,另有 {omitted} 个暂无详情"],
617
621
  "flow_more_models": ["Show {count} more models", "显示其余 {count} 个模型"],
618
622
  "flow_fewer_models": ["Show fewer models", "收起模型"],
@@ -656,12 +660,12 @@
656
660
  "flow_elapsed": ["Elapsed", "已持续"],
657
661
  "sign_in_status": ["Sign-in", "登录状态"],
658
662
  "account_details": ["Account details", "账号详情"],
659
- "preference_effect": ["{saved} · {state}", "{saved} · {state}"],
663
+ "preference_effect": ["{saved} ({state})", "{saved}({state})"],
660
664
  "model_details": ["Model details", "模型详情"],
661
665
  "model_outcome": ["Model result", "模型结果"],
662
666
  "attempts": ["Attempts", "尝试次数"],
663
667
  "last_success": ["Last success", "最后成功"],
664
- "request_http_failure": ["HTTP {status} · Failed", "请求失败 · HTTP {status}"],
668
+ "request_http_failure": ["Request failed (HTTP {status})", "请求失败(HTTP {status})"],
665
669
  "catalog_cause_sign_in_rejected": ["Microsoft 365 rejected the sign-in. Check account access.", "Microsoft 365 拒绝了登录,请检查账号权限。"],
666
670
  "catalog_cause_entra_access_disabled": ["Copilot CLI Entra access is not enabled for this account.", "此账号尚未开通 Copilot CLI Entra 访问。"],
667
671
  "catalog_cause_access_denied": ["Microsoft 365 denied access to the model list.", "Microsoft 365 拒绝访问模型列表。"],
@@ -679,7 +683,7 @@
679
683
  "claude_shared_source": ["Shared by Claude Code and Claude App.", "Claude Code 与 Claude App 共用此来源。"],
680
684
  "manage_source_account": ["Manage source and account", "管理来源与账号"],
681
685
  "connection_details": ["Connection details", "连接详情"],
682
- "messages_combined_since_start": ["Both Claude apps · This service run", "两款应用合计 · 本次运行"],
686
+ "messages_combined_since_start": ["Both Claude apps in this run", "本次运行中两款 Claude 应用的合计"],
683
687
  "claude_metrics_combined": ["Both Claude apps", "两款应用合计"],
684
688
  "source_access_details": ["CONNECTION DIAGNOSTICS", "连接诊断"],
685
689
  "account_access": ["Account & access", "账号与访问"],
@@ -740,7 +744,7 @@
740
744
  "tools_local_scope": ["Local checks only", "仅检查本机"],
741
745
  "client_versions_scope": ["Installed versions only; running App adoption and compatibility are separate.", "显示已安装版本;运行中的版本和接入状态需分别确认。"],
742
746
  "client_version_observed": ["{version}", "{version}"],
743
- "client_version_changed": ["{version} · updated, access unverified", "{version} · 已更新,接入待确认"],
747
+ "client_version_changed": ["{version} (updated; access unverified)", "{version}(已更新,接入待确认)"],
744
748
  "tools_check_local": ["Check this computer", "本机检查"],
745
749
  "tools_export_report": ["Export report", "导出报告"],
746
750
  "tools_checks_empty": ["Run a local check to see results.", "运行本机检查后查看结果。"],
@@ -810,7 +814,7 @@
810
814
  "update_attempted_time": ["Last attempt: {time}", "最近尝试:{time}"],
811
815
  "update_install_help": ["Update failed? View full installation commands", "更新遇到问题?查看完整安装指令"],
812
816
  "installation_platform": ["Installation platform", "安装平台"],
813
- "update_install_hint": ["Full installation commands · No Git required", "完整安装指令 · 无需 Git"],
817
+ "update_install_hint": ["Installation commands (no Git required)", "安装命令(无需 Git)"],
814
818
  "update_install_policy": ["Installs a private runtime if Node/npm is missing. Keeps registry, proxy, certificates and script policy.", "缺少 Node/npm 时安装专用运行环境。\n保留镜像、代理、证书和脚本策略。"],
815
819
  "update_windows_policy": ["If scripts are blocked, use your company-approved installation method.", "脚本受限时,请使用公司批准的安装方式。"],
816
820
  "update_copy_unavailable": ["Clipboard unavailable. Select the command and copy it.", "无法自动复制,请选中指令复制。"],
@@ -819,7 +823,7 @@
819
823
  "choose_company_account": ["Choose a company account", "选择公司账号"],
820
824
  "use_this_account": ["Use this account", "使用此账号"],
821
825
  "company_account_scope": ["Shared by Codex and Claude. Start a new conversation after switching.", "供 Codex 和 Claude 共用。切换后请新建对话。"],
822
- "company_account_current": ["{login} · Tenant {tenant} · {source}", "{login}\n租户:{tenant} · {source}"],
826
+ "company_account_current": ["{login}\nTenant: {tenant}\nSource: {source}", "{login}\n租户:{tenant}\n来源:{source}"],
823
827
  "account_source_windows": ["Windows sign-in", "Windows 登录账号"],
824
828
  "account_source_single": ["Only company account", "唯一公司账号"],
825
829
  "account_source_manual": ["Your choice", "手动选择"],
@@ -940,7 +944,7 @@
940
944
  "updated_from_returned_usage_not_a_live_bill_pending_usage_is_not": ["Returned usage only.", "仅统计已返回用量。"],
941
945
  "applies_to_the_running_terminal": ["Updates the running terminal.", "保存后更新当前终端。"],
942
946
  "recent_inference_http_failures": ["RECENT REQUEST ISSUES", "近期异常"],
943
- "codex_responses_timing_since_startup_output_speed_is_estimated": ["This service run · Estimated output speed", "本次运行 · 输出速度为估算"],
947
+ "codex_responses_timing_since_startup_output_speed_is_estimated": ["Output speed is estimated for this run.", "本次运行的输出速度为估算值。"],
944
948
  "service_reachable": ["CONNECTED LOCALLY", "已连本机"],
945
949
  "saved_choice_applies_to_the_running_terminal": ["Saving updates the running terminal.", "保存后更新当前终端。"],
946
950
  "effective_now": ["Active now", "已生效"],
@@ -950,7 +954,7 @@
950
954
  "next_configuration_request_cached_suggestions_may_remain": ["Applies on the next settings request. Cached suggestions may still appear.", "下次读取建议设置时生效。\n已有建议可能仍会显示。"],
951
955
  "reopen_the_client_to_finish": ["Reopen the app", "重开应用"],
952
956
  "restart_ccdx_to_finish": ["Restart CCDX", "请重启 CCDX"],
953
- "saved_saved_effective_effective_state": ["Saved {saved}; active {effective} · {state}", "已保存:{saved};当前:{effective} · {state}"],
957
+ "saved_saved_effective_effective_state": ["Saved {saved}; active {effective} ({state})", "已保存:{saved};当前:{effective}({state})"],
954
958
  "on": ["On", "开启"],
955
959
  "off": ["Off", "关闭"],
956
960
  "controlled_by_environment": ["Set at startup", "启动限定"],
@@ -994,7 +998,7 @@
994
998
  "running": ["Running", "运行中"],
995
999
  "unavailable": ["Unavailable", "不可用"],
996
1000
  "count_providers": ["{count} providers", "{count}个来源"],
997
- "provider_done_done_incomplete_incomplete_failed_failed": ["{provider}: {done} done / {incomplete} incomplete / {failed} failed", "{provider}:完成{done}·未完成{incomplete}·失败{failed}"],
1001
+ "provider_done_done_incomplete_incomplete_failed_failed": ["{provider}: {done} done, {incomplete} incomplete, {failed} failed", "{provider}:完成 {done},未完成 {incomplete},失败 {failed}"],
998
1002
  "provider_status_authorization_and_inference_are_separate": ["Source status. Sign-in and successful requests are checked separately.", "来源状态分别核实。\n登录不代表请求一定成功。"],
999
1003
  "saved_credentials_authorization_model_access_and_client_requests": ["Saved sign-in, access, models and app requests are separate checks.", "登录信息、访问权限分别核实。\n模型访问与应用请求单独记录。"],
1000
1004
  "client_features": ["APP FEATURES", "应用功能"],
@@ -1031,6 +1035,7 @@
1031
1035
  "upstream_body_written": ["Written to connection", "已交给连接"],
1032
1036
  "upstream_transport_error": ["Transport error", "传输错误"],
1033
1037
  "upstream_wait_headers": ["Wait for response headers", "等待响应头"],
1038
+ "model_action_label": ["{name}: {action}", "{name}:{action}"],
1034
1039
  "request_total_time": ["Total time", "总耗时"],
1035
1040
  "request_masking": ["Local masking", "本地脱敏"],
1036
1041
  "request_total_inline": ["Total {value}", "总耗时 {value}"],
@@ -1038,7 +1043,7 @@
1038
1043
  "client_request_id": ["Outbound request ID", "出站编号"],
1039
1044
  "retry_after": ["Retry-After", "重试提示"],
1040
1045
  "upstream_no_headers": ["Timed out before response headers", "等待响应头超时"],
1041
- "body_queue_detail": ["{ms} ms · {result}. At entry: {reason}. Reserved {reserved}; in use {occupied}/{limit}.", "{ms} ms · {result}。{reason};预留 {reserved},占用 {occupied}/{limit}。"],
1046
+ "body_queue_detail": ["{ms} ms ({result}). At entry: {reason}. Reserved {reserved}; in use {occupied}/{limit}.", "{ms} ms({result})。{reason};预留 {reserved},占用 {occupied}/{limit}。"],
1042
1047
  "body_queue_admitted": ["Admitted", "已放行"],
1043
1048
  "body_queue_timed_out": ["Queue timed out", "排队超时"],
1044
1049
  "body_queue_aborted": ["Wait cancelled", "等待已取消"],
@@ -1050,15 +1055,15 @@
1050
1055
  "body_queue_budget": ["Remaining budget could not cover the reservation", "剩余额度不足以预留本请求"],
1051
1056
  "gateway_timing_output_speed_is_estimated": ["Estimated by CCDX. Not internal model time or total throughput.", "由 CCDX 估算。\n不代表模型内部耗时或总吞吐。"],
1052
1057
  "value_samples_samples": ["{value} / {samples} samples", "{value} / {samples}次样本"],
1053
- "ccdx_local_dashboard": ["CCDX · Dashboard", "CCDX · 运行面板"],
1058
+ "ccdx_local_dashboard": ["CCDX Dashboard", "CCDX 运行面板"],
1054
1059
  "local_status": ["/ DASHBOARD", "/ 运行面板"],
1055
1060
  "reading": ["READING", "读取中"],
1056
1061
  "local_ok": ["CONNECTED LOCALLY", "已连本机"],
1057
1062
  "unavailable_eb0be": ["UNAVAILABLE", "无法读取"],
1058
1063
  "refresh": ["Refresh", "刷新"],
1059
1064
  "auto_refresh": ["Auto refresh", "自动刷新"],
1060
- "auto_refresh_on": ["Auto refresh · ON", "自动刷新 · 开"],
1061
- "auto_refresh_off": ["Auto refresh · OFF", "自动刷新 · 关"],
1065
+ "auto_refresh_on": ["Auto refresh: On", "自动刷新:开"],
1066
+ "auto_refresh_off": ["Auto refresh: Off", "自动刷新:关"],
1062
1067
  "every_30_minutes_while_visible_open_sections_update_on_demand": ["Refreshes every 30 minutes while visible. Opening a section also refreshes it.", "可见时每30分钟刷新。\n展开栏目也会刷新。"],
1063
1068
  "local_only_visible_page_updates": ["THIS COMPUTER ONLY / UPDATES WHILE VISIBLE", "仅限本机/页面可见时更新"],
1064
1069
  "updated_time": ["Updated {time}", "更新于{time}"],
@@ -1079,7 +1084,7 @@
1079
1084
  "outcome": ["RESULT", "结果"],
1080
1085
  "unknown": ["Unknown", "未知状态"],
1081
1086
  "no_observed_request_metadata": ["No request records yet.", "暂未收到请求记录。"],
1082
- "20_latest_finished_requests_compactions_completed_completed_inco": ["Last 20 finished requests · Compaction: {completed} completed · {incomplete} incomplete · {failed} failed", "最近 20 次已结束请求 · 上下文压缩:完成 {completed} · 未完成 {incomplete} · 失败 {failed}"],
1087
+ "20_latest_finished_requests_compactions_completed_completed_inco": ["Last 20 finished requests. Compaction: {completed} completed, {incomplete} incomplete, {failed} failed.", "最近 20 条已结束请求。上下文压缩:完成 {completed} 次,未完成 {incomplete} 次,失败 {failed} 次。"],
1083
1088
  "recent_upstream_request_metadata_not_exact_live_session_occupanc": ["No prompts or images are stored. — means unavailable data.", "不保存提问或图片。— 表示数据未知。"],
1084
1089
  "runtime_details": ["Runtime details", "运行详情"],
1085
1090
  "adapter": ["SERVICE", "服务状态"],
@@ -1162,7 +1167,7 @@
1162
1167
  "daily_token_usage": ["Input and output usage by date", "按日期记录的输入与输出用量"],
1163
1168
  "input_36ecb": ["Input usage", "输入用量"],
1164
1169
  "output_b2439": ["Output usage", "输出用量"],
1165
- "request_activity_365_days": ["ACTIVITY · LAST 365 DAYS", "活跃日历"],
1170
+ "request_activity_365_days": ["Activity over the last 365 days", "活跃日历"],
1166
1171
  "daily_recorded_request_activity": ["Recorded usage by date", "按日期记录的用量"],
1167
1172
  "select_a_day_to_inspect_its_model_totals_no_history_is_distinct_": ["Select a day for usage. Blank means no records.", "点击日期查看当天用量。空白表示无记录。"],
1168
1173
  "recent_failures": ["Recent issues", "异常记录"],
@@ -1174,7 +1179,7 @@
1174
1179
  "animation_theme": ["Animation style", "动效样式"],
1175
1180
  "save_selection": ["Save animation", "保存动效"],
1176
1181
  "applies_on_next_ccdx_start": ["Save, then restart ccdx to apply.", "保存后,下次启动生效。"],
1177
- "local_only_no_background_polling": ["LOCAL ONLY · NO TIMED REFRESH", "仅在本机查看。不会定时读取。"],
1182
+ "local_only_no_background_polling": ["Local only. No scheduled refresh.", "仅在本机查看。不会定时读取。"],
1178
1183
  "saved_github_copilot_account_local_credentials_only_not_an_onlin": ["Saved sign-in only. Online access has not been checked.", "仅显示已保存的登录信息。\n尚未核实访问权限。"],
1179
1184
  "github_reading": ["GitHub / READING", "GitHub / 读取中"],
1180
1185
  "github_unavailable": ["GitHub / UNAVAILABLE", "GitHub / 无法读取"],
@@ -1182,7 +1187,7 @@
1182
1187
  "github_invalid": ["GitHub / INVALID DETAILS", "GitHub / 信息无效"],
1183
1188
  "github_account_saved": ["GitHub / {account} / SAVED", "GitHub / {account} / 已保存"],
1184
1189
  "account_unknown": ["account unknown", "账号未知"],
1185
- "pid_pid_uptime_duration": ["PID {pid} · running {duration}", "进程编号:{pid} · 已运行:{duration}"],
1190
+ "pid_pid_uptime_duration": ["Running {duration} (PID {pid})", "已运行 {duration}(进程 {pid})"],
1186
1191
  "bound": ["IDENTIFIED", "已识别"],
1187
1192
  "unconfirmed": ["NOT CONFIRMED", "未确认"],
1188
1193
  "service_token_ttl_duration": ["Sign-in valid for {duration}", "登录信息剩余有效期:{duration}"],
@@ -1192,7 +1197,7 @@
1192
1197
  "cache": ["existing list", "已有列表"],
1193
1198
  "live": ["online list", "在线列表"],
1194
1199
  "unknown_b23a6": ["unknown", "未知"],
1195
- "4xx_client_5xx_server_active_active": ["4xx {client} · 5xx {server} · active {active}", "4xx {client} · 5xx {server} · 进行中 {active}"],
1200
+ "4xx_client_5xx_server_active_active": ["4xx: {client}, 5xx: {server}, active: {active}", "4xx:{client},5xx:{server},进行中:{active}"],
1196
1201
  "raw_raw_decoded_decoded": ["Received limit: {raw}\nAfter unpacking: {decoded}", "接收上限:{raw}\n展开后上限:{decoded}"],
1197
1202
  "entries_entries_trees_trees_misses_misses_evicted_evicted": ["Records: {entries} / groups: {trees}\nNot found: {misses} / removed: {evicted}", "暂存:{entries}条/分组:{trees}\n未找到:{misses}\n清理后未找到:{evicted}"],
1198
1203
  "count_succeeded": ["{count} succeeded", "成功:{count}次"],
@@ -1249,13 +1254,13 @@
1249
1254
  "no_live_catalog_available": ["Cannot get the model list.", "无法获取模型列表。"],
1250
1255
  "no_usage_records": ["No usage records yet.", "暂未记录用量。"],
1251
1256
  "local_log": ["LOCAL RECORDS", "本机记录"],
1252
- "records_records_shown_of_models_models_shown_day": ["Records: {records} · models: {shown} of {models}{day}", "记录:{records}条\n模型:展示{shown}个,共{models}个{day}"],
1257
+ "records_records_shown_of_models_models_shown_day": ["Records: {records}\nModels shown: {shown} of {models}{day}", "记录:{records} 条\n模型:展示 {shown} 个,共 {models} 个{day}"],
1253
1258
  "zone_model": [" / {zone} / {model}", " / {zone} / {model}"],
1254
1259
  "no_retained_history": ["no records", "没有记录"],
1255
1260
  "calls_recorded_calls_input_input_output_output_cached_cached_inc": ["{calls} usage records\nInput: {input} / output: {output}\nReused input: {cached} Token\nReused input is part of input.{partial}", "用量记录:{calls}\n输入:{input}/输出:{output}\n复用输入:{cached} Token\n复用部分已计入输入。{partial}"],
1256
1261
  "partial_token_counts": ["\nIncomplete usage records.", "\n用量记录不完整。"],
1257
1262
  "date_description": ["{date} / {description}", "{date} / {description}"],
1258
- "metric_peak_peak": ["{metric} · Peak {peak}", "{metric} · 峰值 {peak}"],
1263
+ "metric_peak_peak": ["{metric} (peak {peak})", "{metric}(峰值 {peak})"],
1259
1264
  "input_output": ["TOTAL USAGE (Token)", "总用量"],
1260
1265
  "recorded_calls": ["RECORDED REQUESTS", "请求次数"],
1261
1266
  "zone_from_to_retained_history_starts_first_oldest_day_may_be_par": ["Zone: {zone}\nRange: {from}–{to}\nFirst record: {first}\nThe first day may be partial.{excluded}{limit}", "时区:{zone}\n记录范围:{from}—{to}\n最早记录:{first}\n最早一天可能记录不全。{excluded}{limit}"],
@@ -23,7 +23,7 @@
23
23
  const status = ["downloading", "loading", "error"].includes(state.state) ? state.state : state.enabled ? state.state === "ready" ? state.pending_checks ? "checking" : "ready" : "error" : state.state === "installed" || state.state === "ready" ? "installed" : "off";
24
24
  words("privacy-status", `privacy_state_${status}`, { percent: Math.min(100, Math.round((state.downloaded_bytes || 0) * 100 / Math.max(1, state.download_bytes))) });
25
25
  el("privacy-status").hidden = status === "off";
26
- el("privacy-device").textContent = state.backend ? state.device && state.device !== state.backend ? `${state.backend} · ${state.device}` : state.backend : "";
26
+ el("privacy-device").textContent = state.backend ? state.device && state.device !== state.backend ? `${state.backend} (${state.device})` : state.backend : "";
27
27
  const check = state.enabled && state.last_check?.state === "failed" ? state.last_check : null;
28
28
  if (state.error) words("privacy-error", state.error.includes("download") ? "privacy_download_error" : "privacy_error");
29
29
  else if (state.enabled && state.last_response?.state === "failed") words("privacy-error", "privacy_response_error", { code: state.last_response.privacy_error || "ccdx_privacy_response_invalid" });
@@ -46,12 +46,11 @@
46
46
  applications.get(id).push({ provider, client });
47
47
  }
48
48
  if (provider.requests) {
49
- const item = document.createElement("p");
50
- localize(item, "provider_done_done_incomplete_incomplete_failed_failed", { provider: `${provider.name} · ${provider.request_scope || "Claude Messages"}`,
51
- done: number(provider.requests.completed), incomplete: number(provider.requests.incomplete), failed: number(provider.requests.failed) });
52
- requests.append(item);
49
+ requests.append(tableRow([provider.name, provider.request_scope || "Claude Messages", number(provider.requests.completed),
50
+ number(provider.requests.incomplete), number(provider.requests.failed)]));
53
51
  }
54
52
  }
53
+ if (!requests.children.length) emptyTable("provider-requests", 5, "no_requests_observed");
55
54
  for (const entries of applications.values()) {
56
55
  const selected = entries.find(entry => entry.client.selected === true) || (entries.length === 1 ? entries[0] : null);
57
56
  const client = selected?.client || { name: entries[0].client.name, state: entries.every(entry => entry.client.state === "paused") ? "paused" : "unknown" };
@@ -239,6 +238,20 @@
239
238
  }
240
239
  }
241
240
 
241
+ function renderRequestCounts(data) {
242
+ const requests = data.requests || {};
243
+ text("requests", number(requests.total));
244
+ text("requests-4xx", number(requests.status_4xx));
245
+ text("requests-5xx", number(requests.status_5xx));
246
+ text("requests-active", number(requests.active));
247
+ const categories = data.http_errors?.by_category;
248
+ for (const key of ["inference", "capability", "protocol", "route", "other"]) {
249
+ const value = categories ? number(categories[key] ?? 0) : "—";
250
+ text(`http-${key}`, value);
251
+ text(`http-mobile-${key}`, value);
252
+ }
253
+ }
254
+
242
255
  function render(data) {
243
256
  if (data.scope === "summary") {
244
257
  globalThis.ccdxDashboardActivity?.update(data.model_activity);
@@ -259,12 +272,7 @@
259
272
  text("models", number(models.models));
260
273
  text("model-source", "source_source_live_ccdx_models", { source: phrase(String(models.source || "unknown").slice(0, 80)) });
261
274
 
262
- const requests = data.requests || {};
263
- text("requests", number(requests.total));
264
- text("request-errors", "4xx_client_5xx_server_active_active", { client: number(requests.status_4xx), server: number(requests.status_5xx), active: number(requests.active) });
265
- const categories = data.http_errors?.by_category;
266
- text("http-error-breakdown", categories ? "http_categories" : "—",
267
- categories ? Object.fromEntries(["inference", "capability", "protocol", "route", "other"].map(key => [key, number(categories[key] || 0)])) : {});
275
+ renderRequestCounts(data);
268
276
  text("body-limits", "raw_raw_decoded_decoded", { raw: mib(data.limits?.max_body_bytes), decoded: mib(data.limits?.max_decoded_body_bytes) });
269
277
 
270
278
  const outcomes = data.stream_performance?.by_route?.responses?.terminal_outcomes?.totals || {};
@@ -350,11 +358,7 @@
350
358
  globalThis.ccdxDashboardFlow?.update(data, { live: true });globalThis.ccdxToolActivity?.update(data, { live: true });
351
359
  text("version", `v${data.version || "?"}`);
352
360
  text("uptime", "pid_pid_uptime_duration", { pid: number(data.pid), duration: duration(data.uptime_ms) });
353
- text("requests", number(data.requests?.total));
354
- text("request-errors", "4xx_client_5xx_server_active_active", { client: number(data.requests?.status_4xx), server: number(data.requests?.status_5xx), active: number(data.requests?.active) });
355
- const categories = data.http_errors?.by_category;
356
- text("http-error-breakdown", categories ? "http_categories" : "—",
357
- categories ? Object.fromEntries(["inference", "capability", "protocol", "route", "other"].map(key => [key, number(categories[key] || 0)])) : {});
361
+ renderRequestCounts(data);
358
362
  for (const key of ["completed", "incomplete", "failed", "cancelled"]) {
359
363
  text(key, number(data.stream_performance?.by_route?.responses?.terminal_outcomes?.totals[key]));
360
364
  text(`claude-${key}`, number(data.providers?.claude?.requests?.performance?.by_route?.messages?.terminal_outcomes?.totals[key]));
@@ -392,7 +396,19 @@
392
396
  const signature = JSON.stringify(contextRequests);
393
397
  if (signature === contextSignature) return;
394
398
  contextSignature = signature;
395
- const expanded = new Set([...(body.querySelectorAll?.("details[open]") || [])].filter(details => details.dataset.disclosureClosing !== "true").map(details => details.getAttribute("data-request-key")));
399
+ const openDetails = [...(body.querySelectorAll?.("details[open]") || [])].filter(details => details.dataset.disclosureClosing !== "true");
400
+ const expanded = new Set(openDetails.map(details => details.getAttribute("data-request-key")));
401
+ const viewport = document.defaultView;
402
+ const focused = document.activeElement?.closest?.(".request-details > summary");
403
+ const keepFocus = Boolean(focused && body.contains?.(focused));
404
+ const topInView = summary => {
405
+ if (!viewport?.scrollY || !summary) return null;
406
+ const box = summary.getBoundingClientRect();return box.bottom > 0 && box.top < viewport.innerHeight ? box.top : null;
407
+ };
408
+ let reading = keepFocus ? focused : null;
409
+ if (!reading && viewport?.scrollY) reading = openDetails.map(details => details.querySelector("summary")).find(summary => topInView(summary) !== null);
410
+ const readingKey = reading?.parentElement?.getAttribute("data-request-key"), readingTop = topInView(reading);
411
+ let restoredSummary;
396
412
  body.replaceChildren();
397
413
  for (const request of contextRequests) {
398
414
  const context = request.context || {};
@@ -401,23 +417,22 @@
401
417
  const ratio = finite(context.input_tokens) && finite(context.context_window_tokens) && Number(context.context_window_tokens) > 0
402
418
  ? `${(100 * Number(context.input_tokens) / Number(context.context_window_tokens)).toFixed(1)}%` : "—";
403
419
  const at = Date.parse(request.at);
404
- const row = tableRow([Number.isFinite(at) ? time(at) : "—",
405
- String(sourceLabel(request.provider) || "—").slice(0, 80),
406
- String(request.model || "unknown").slice(0, 80), outcome, number(context.input_tokens), ""], { labels: [3] });
420
+ const totalMs = request.timings_ms?.finished;
421
+ const app = ["codex", "codex_app", "codex_cli", "claude", "claude_app", "claude_code", "gemini_app", "api"].includes(request.application) ? request.application : "api";
422
+ const row = tableRow([Number.isFinite(at) ? time(at) : "—", "",
423
+ String(request.model || "unknown").slice(0, 80), outcome, Number.isFinite(totalMs) ? requestTime(totalMs) : "—", ""], { labels: [3] });
424
+ localize(row.children[1], `flow_app_${app}`);
425
+ row.children[4].className = "recent-request-duration";
407
426
  const wireFailure = Number.isInteger(request.http_status) && request.http_status >= 400;
408
427
  if (request.rejection_reason) {
409
428
  if (globalThis.ccdxIcons) globalThis.ccdxIcons.set(row.children[3], "request_access_blocked", "unavailable");else localize(row.children[3], "request_access_blocked");
410
429
  } else if (globalThis.ccdxIcons) globalThis.ccdxIcons.set(row.children[3], wireFailure ? "request_http_failure" : outcome.toLowerCase(),
411
430
  wireFailure ? "warning" : globalThis.ccdxIcons.kind(outcome.toLowerCase()), wireFailure ? { status: request.http_status } : {});
412
431
  else if (wireFailure) localize(row.children[3], "request_http_failure", { status: request.http_status });
413
- const totalMs = request.timings_ms?.finished;
414
- if (Number.isFinite(totalMs)) {
415
- const total = document.createElement("small");total.className = "table-note";
416
- localize(total, "request_total_inline", { value: requestTime(totalMs) });row.children[3].append(total);
417
- }
418
432
  const details = document.createElement("details"), summary = document.createElement("summary"), fields = document.createElement("dl");
419
433
  const key = String(request.request_id || `${request.at || ""}/${request.provider || ""}/${request.model || ""}`).slice(0, 256);
420
434
  details.setAttribute?.("data-request-key", key);details.open = expanded.has(key);
435
+ if (key === readingKey) restoredSummary = summary;
421
436
  details.className = "request-details";fields.className = "failure-detail";
422
437
  localize(summary, "tools_details");details.append(summary, fields);
423
438
  const queue = context.body_queue;
@@ -429,6 +444,7 @@
429
444
  const attempt = request.attempts?.at(-1);
430
445
  for (const [key, value] of [["request_id", request.request_id || "—"], ["http_status", number(request.http_status)], ["attempts", number(request.upstream_attempts)], ["model_outcome", globalThis.ccdxLanguage?.format(outcome.toLowerCase()) || outcome],
431
446
  ["time", Number.isFinite(at) ? time(at, { date: true }) : "—"],
447
+ ["source", String(sourceLabel(request.provider) || "—").slice(0, 80)], ["input_tokens", number(context.input_tokens)],
432
448
  ...(Number.isSafeInteger(queue?.wait_ms) && queue.wait_ms > 0 ? [["body_queue_wait", phrase("body_queue_detail", {
433
449
  ms: number(queue.wait_ms), result: phrase(queueResult), reason: phrase(queueReason),
434
450
  reserved: mib(queue.requested_bytes), occupied: mib(queue.active_bytes), limit: mib(queue.limit_bytes),
@@ -454,6 +470,13 @@
454
470
  }
455
471
  row.children[5].append(details);body.append(row);
456
472
  }
473
+ if (restoredSummary) {
474
+ if (keepFocus) restoredSummary.focus({ preventScroll: true });
475
+ if (readingTop !== null) {
476
+ const shift = restoredSummary.getBoundingClientRect().top - readingTop;
477
+ if (Math.abs(shift) > 1) viewport.scrollBy(0, shift);
478
+ }
479
+ }
457
480
  if (!contextRequests.length) emptyTable("context-body", 6, "no_observed_request_metadata");
458
481
  }
459
482
  return { render, renderActivity, renderProviders, renderFailures, renderContext };
@@ -1,20 +1,78 @@
1
1
  (() => {
2
2
  const root = document.getElementById("tool-activity");if (!root) return;
3
3
  const el = id => document.getElementById(id), canvas = el("tool-canvas"), ctx = canvas.getContext?.("2d");
4
- const styles = new Set(["halo", "grid", "busy", "speed", "assembly", "off"]), storageKey = "ccdx.dashboard.toolMotionStyle";
4
+ const styles = new Set(["halo", "grid", "assembly", "off"]), storageKey = "ccdx.dashboard.toolMotionStyle";
5
5
  const pending = state => ["preparing", "waiting"].includes(state);
6
6
  const phrase = (key, values = {}) => globalThis.ccdxLanguage.format(key, values);
7
7
  const text = (id, key, values) => globalThis.ccdxLanguage.set(el(id), key, values);
8
- const state = { scene: "idle", style: "halo", intensity: .8, reduce: false };
8
+ const state = { scene: "idle", style: "assembly", intensity: .8, reduce: false };
9
9
  try { const saved = localStorage.getItem(storageKey);if (styles.has(saved)) state.style = saved; } catch {}
10
10
  const motion = globalThis.matchMedia?.("(prefers-reduced-motion: reduce)") || { matches: false, addEventListener() {} };
11
11
  let records = [], fresh = false, supported = false, visible = true, raf = 0, last = 0, start = performance.now(), expiry = null;
12
- let signature = "", box = { width: 0, height: 0 }, color = "", omitted = 0, requests = [], requestDeadline = 0;
12
+ let signature = "", box = { width: 0, height: 0 }, color = "", surface = "", omitted = 0, requests = [], requestDeadline = 0;
13
13
  const animating = () => ["calling", "parallel", "waiting", "processing", "responding"].includes(state.scene);
14
14
  const shown = () => document.visibilityState === "visible" && !root.closest("[hidden]") && visible;
15
15
  function measure() {
16
- box = canvas.getBoundingClientRect();color = getComputedStyle(document.documentElement).getPropertyValue("--accent").trim();
16
+ box = canvas.getBoundingClientRect();
17
+ const theme = getComputedStyle(document.documentElement);
18
+ color = theme.getPropertyValue("--accent").trim();surface = theme.getPropertyValue("--surface").trim();
17
19
  refreshAnimation();
20
+ }
21
+ function drawAssembly(dpr,w,h,t,active,waiting,returned,reduced) {
22
+ const scale=Math.min((w-12)/264,(h-12)/118);
23
+ if(scale<=0)return;
24
+ ctx.setTransform(scale*dpr,0,0,scale*dpr,(w-264*scale)*dpr/2,(h-118*scale)*dpr/2);
25
+ const running=active||waiting;
26
+ const phase=reduced?.42:(t*(waiting?.7:1.04))%2.1/2.1;
27
+ const press=running?Math.max(0,1-Math.abs(phase-.5)/.14):0;
28
+ const workX=returned?132+91*Math.min(1,t/.85):
29
+ phase<.34?29+103*phase/.34:phase<.66?132:132+91*(phase-.66)/.34;
30
+ const moving=running&&(phase<.34||phase>=.66)||returned;
31
+ const shift=moving?(reduced?0:t*78)%14:0;
32
+ const assembled=returned||phase>=.5;
33
+ function path(points,closed=false){
34
+ ctx.beginPath();ctx.moveTo(points[0],points[1]);
35
+ for(let i=2;i<points.length;i+=2)ctx.lineTo(points[i],points[i+1]);
36
+ if(closed)ctx.closePath();
37
+ }
38
+ // Floor, braced stands and the rear uprights of the press.
39
+ ctx.lineWidth=1.2;ctx.globalAlpha=.22;
40
+ path([18,108,246,108]);ctx.stroke();
41
+ ctx.globalAlpha=.52;
42
+ path([35,88,35,108,55,108,55,88,35,106,55,90]);ctx.stroke();
43
+ path([209,88,209,108,229,108,229,88,209,106,229,90]);ctx.stroke();
44
+ ctx.fillRect(99,22,5,45);ctx.fillRect(160,22,5,45);
45
+ ctx.strokeRect(93,11,78,13);
46
+ ctx.globalAlpha=.23;
47
+ ctx.fillRect(93,11,78,13);
48
+ ctx.globalAlpha=.65;
49
+ ctx.beginPath();
50
+ for(let i=98;i<168;i+=8){ctx.moveTo(i,21);ctx.lineTo(i+4,14);}
51
+ ctx.stroke();
52
+ // Belt deck and rollers, with the drive drums in the front housing.
53
+ ctx.globalAlpha=.18;path([13,77,239,77,252,65,26,65],true);ctx.fill();
54
+ ctx.globalAlpha=.64;ctx.stroke();
55
+ ctx.beginPath();
56
+ for(let i=30;i<235;i+=14){ctx.moveTo(i+shift,75);ctx.lineTo(i+shift+9,67);}
57
+ ctx.stroke();
58
+ ctx.globalAlpha=.16;ctx.fillRect(13,77,226,13);
59
+ ctx.globalAlpha=.72;ctx.strokeRect(13,77,226,13);
60
+ for(const x of [22,230]){ctx.beginPath();ctx.arc(x,83.5,3.8,0,Math.PI*2);ctx.stroke();}
61
+ // Cylinder, piston and platen travel together.
62
+ const piston=press*9;
63
+ ctx.globalAlpha=.82;ctx.strokeRect(123,24,18,13);ctx.fillRect(130,37,4,5+piston);
64
+ ctx.fillRect(120,42+piston,24,3);
65
+ if(running||returned){
66
+ const x=workX-11,y=assembled?57:60;
67
+ ctx.globalAlpha=1;ctx.fillStyle=surface;
68
+ path([x,75,x,y,x+6,y-5,x+27,y-5,x+27,70,x+21,75],true);ctx.fill();
69
+ ctx.fillStyle=color;ctx.globalAlpha=.24;ctx.fill();
70
+ ctx.globalAlpha=.86;ctx.stroke();
71
+ path([x,y,x+21,y,x+27,y-5]);ctx.stroke();
72
+ path([x+21,y,x+21,75]);ctx.stroke();
73
+ if(assembled){ctx.globalAlpha=.62;ctx.fillRect(x+6,y+5,9,3);}
74
+ }
75
+ ctx.globalAlpha=1;
18
76
  }
19
77
  function draw(now=performance.now()){
20
78
  if(!ctx||!box.width||!box.height)return;
@@ -36,38 +94,8 @@
36
94
  }
37
95
  ctx.globalAlpha=1;return;
38
96
  }
39
- if(state.style==='busy'){
40
- const n=7,bw=12,gap=11,left=cx-(n*bw+(n-1)*gap)/2;
41
- for(let i=0;i<n;i++){
42
- const wave=active||waiting?(Math.sin(t*(waiting?6:11)-i*.8)+1)/2:.2;
43
- const bh=quiet?12:returned?22:14+wave*54;
44
- ctx.globalAlpha=quiet?.15:returned?.55:.18+wave*power;ctx.fillRect(left+i*(bw+gap),cy-bh/2,bw,bh);
45
- }
46
- ctx.globalAlpha=1;return;
47
- }
48
- if(state.style==='speed'){
49
- const span=Math.min(w-36,220),left=cx-span/2;
50
- for(let i=0;i<7;i++){
51
- const phase=(t*(waiting?1.5:3.3)+i*.173)%1,len=20+(i%3)*16,y=cy+(i-3)*13;
52
- const x=active||waiting?left+phase*(span+len)-len:left+span*.43;
53
- ctx.globalAlpha=quiet?.12:returned?.5:Math.sin(phase*Math.PI)*power;
54
- ctx.lineWidth=i===3?3:1.5;ctx.beginPath();ctx.moveTo(Math.max(left,x),y);ctx.lineTo(Math.min(left+span,x+len),y);ctx.stroke();
55
- }
56
- ctx.globalAlpha=1;return;
57
- }
58
97
  if(state.style==='assembly'){
59
- const span=Math.min(w-32,218),left=cx-span/2,rail=cy+23;
60
- ctx.globalAlpha=quiet?.12:.26;ctx.lineWidth=1;
61
- ctx.beginPath();ctx.moveTo(left,rail);ctx.lineTo(left+span,rail);ctx.moveTo(left,rail+8);ctx.lineTo(left+span,rail+8);ctx.stroke();
62
- for(let i=0;i<3;i++){
63
- const x=left+span*(i+.5)/3,phase=(t*(waiting?1.5:3.2)-i/3+9)%1,press=active||waiting?Math.max(0,1-Math.abs(phase-.5)*5):0;
64
- ctx.globalAlpha=quiet?.16:.58;ctx.fillRect(x-14,cy-36,28,8);ctx.fillRect(x-2,cy-28,4,16+press*16);ctx.fillRect(x-9,cy-14+press*16,18,4);
65
- }
66
- for(let i=0;i<5;i++){
67
- const phase=active||waiting?(t*(waiting?.7:1.6)+i/5)%1:(i+.5)/5,x=left+phase*span;
68
- ctx.globalAlpha=quiet?.12:returned?.55:.2+Math.sin(phase*Math.PI)*power;ctx.fillRect(x-5,rail-12,10,10);
69
- }
70
- ctx.globalAlpha=1;return;
98
+ drawAssembly(dpr,w,h,t,active,waiting,returned,reduced);return;
71
99
  }
72
100
  arc(r,0,Math.PI*2,.25);arc(r*.85,0,Math.PI*2,.13);arc(r*1.12,0,Math.PI*2,.1);
73
101
  const spin=active?t*1.6:waiting?t*.9:0;
@@ -148,7 +176,7 @@
148
176
  const displayed = active.length ? rows : agents.length ? agents : rows;
149
177
  const groups = new Map(displayed.map(row => [`${row.application}:${row.provider}:${row.model}`, row]));
150
178
  el("tool-context").hidden = !displayed.length;
151
- el("tool-context").textContent = groups.size === 1 ? `${appName(displayed[0].application)} · ${displayed[0].model === "other" ? phrase("flow_model_pending") : displayed[0].model}` : phrase("tool_groups", { count: groups.size });
179
+ el("tool-context").textContent = groups.size === 1 ? phrase("model_action_label", { name: appName(displayed[0].application), action: displayed[0].model === "other" ? phrase("flow_model_pending") : displayed[0].model }) : phrase("tool_groups", { count: groups.size });
152
180
  const list = el("tool-list");list.replaceChildren();
153
181
  for (const row of displayed.slice(0, 6)) {
154
182
  const agent = row.responding !== undefined;
@@ -161,7 +189,13 @@
161
189
  el("tool-details").hidden = !rows.length;
162
190
  el("tool-technical").replaceChildren();
163
191
  for (const row of rows) {
164
- const line = document.createElement("p");line.textContent = `${appName(row.application)} · ${sourceName(row.provider)} · ${row.model} · ${row.name || phrase("tool_action_generic")} · ${phrase(`tool_row_${row.state}`)}`;el("tool-technical").append(line);
192
+ const line = document.createElement("dl");line.className = "tool-record-fields";
193
+ for (const [label, value] of [["client", appName(row.application)], ["source", sourceName(row.provider)],
194
+ ["model", row.model], ["tool_heading", row.name || phrase("tool_action_generic")], ["outcome", phrase(`tool_row_${row.state}`)]]) {
195
+ const term = document.createElement("dt"), detail = document.createElement("dd");
196
+ term.textContent = phrase(label);detail.textContent = value;line.append(term, detail);
197
+ }
198
+ el("tool-technical").append(line);
165
199
  }
166
200
  el("tool-more").hidden = rows.length <= 6 && !omitted;
167
201
  text("tool-more", "tool_more", { count: Math.max(0, rows.length - 6) + omitted });
@@ -167,7 +167,7 @@
167
167
  el("config-preview-details").textContent = data.checks.map(check => check.message).join("\n");
168
168
  text("checks-note", "tools_review_repair");
169
169
  } else if (action.action === "compatibility") {
170
- el("compatibility-note").textContent = (data.checks || []).map(check => check.message).join(" · ");
170
+ el("compatibility-note").textContent = (data.checks || []).map(check => check.message).join("\n");
171
171
  } else if (action.action === "repair") {
172
172
  el("config-repair-preview").hidden = true;repairPreview = null;
173
173
  if (data.local?.checked_at) renderChecks(data.local);
@@ -171,11 +171,11 @@ select option { color: var(--text); background: var(--surface); }
171
171
  .chart-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 22px 0 10px; }
172
172
  .chart-heading h3 { margin: 0; color: var(--heading); font-size: 11px; }
173
173
  .chart-heading span, .chart-legend { color: var(--muted); font-size: 10px; }
174
- .daily-bars { display: flex; align-items: end; gap: 3px; height: 130px; border-bottom: 1px solid var(--border); }
175
- .daily-bar { height: 100%; flex: 1; min-width: 0; padding: 0; border: 0; display: flex; flex-direction: column; justify-content: end; background: transparent; border-radius: 0; }
174
+ .daily-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 130px; border-bottom: 1px solid var(--border); }
175
+ .daily-bar { height: 100%; min-width: 0; padding: 0; border: 0; display: flex; flex-direction: column; justify-content: end; background: transparent; border-radius: 0; }
176
176
  .daily-bar span { display: block; flex-shrink: 0; width: 100%; }
177
- .daily-bar .bar-stack { display:flex; flex-direction:column; justify-content:end; height:100%; transform-origin:center bottom; }
178
- .daily-lines { position:relative; gap:0; }
177
+ .daily-bar .bar-stack { display:flex; flex-direction:column; justify-content:end; align-self:center; width:max(calc(100% - 3px), min(100%, 2px)); height:100%; transform-origin:center bottom; }
178
+ .daily-lines { position:relative; }
179
179
  .daily-line-plot { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
180
180
  .daily-curve { fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:0; }
181
181
  .curve-input { stroke:var(--accent-soft); }
@@ -196,7 +196,7 @@ select option { color: var(--text); background: var(--surface); }
196
196
  .calendar-grid { width: max-content; }
197
197
  .calendar-months { display: grid; grid-auto-columns: 12px; gap: 4px; margin-bottom: 7px; color: var(--muted); font-size: 9px; height: 14px; }
198
198
  .activity-calendar { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 4px; width: max-content; }
199
- .calendar-day { padding: 0; border: 1px solid var(--border); width: 12px; height: 12px; background: var(--button-bg); }
199
+ .calendar-day { padding: 0; border: 1px solid var(--border); width: 12px; height: 12px; min-height: 0; background: var(--button-bg); }
200
200
  .calendar-day[data-level="1"] { background: color-mix(in srgb, var(--accent-soft) 25%, var(--surface)); }
201
201
  .calendar-day[data-level="2"] { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
202
202
  .calendar-day[data-level="3"] { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
@@ -594,7 +594,7 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
594
594
  .binding-table td:first-child { grid-column: 1; min-width: 0; }
595
595
  .binding-table td:first-child label { overflow-wrap: anywhere; }
596
596
  .binding-table td[data-label] { grid-column: 1 / -1; color: var(--muted); }
597
- .binding-table td[data-label]::before { content: attr(data-label) " · "; color: var(--subtle); }
597
+ .binding-table td[data-label]::before { content: attr(data-label); margin-inline-end: 8px; color: var(--subtle); }
598
598
  .binding-table td:last-child { grid-column: 2; grid-row: 1; align-self: center; }
599
599
  .binding-table td:last-child button { min-width: 88px; padding: 9px; }
600
600
  .binding-table td[colspan] { grid-column: 1 / -1; }
@@ -708,3 +708,29 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
708
708
  @keyframes tool-cursor { 50% { opacity:0; } }
709
709
  @media(max-width:620px) { .tool-stage { grid-template-columns:1fr;gap:8px; }.tool-visual { width:100%;max-width:330px;margin:auto; }.tool-content { padding-bottom:8px; }.tool-context { margin-bottom:4px; } }
710
710
  @media(prefers-reduced-motion:reduce) { #tool-cursor { animation:none; } }
711
+
712
+ /* Compact request statistics in the existing diagnostics panel. */
713
+ .request-kpis { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 8px 0; font-size: 12px; }
714
+ .request-kpis > div, .http-error-grid > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
715
+ .request-kpis dt, .http-error-grid dt { color: var(--muted); }
716
+ .request-kpis dd, .http-error-grid dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
717
+ .http-error-table { width: auto; margin: 4px 0; }
718
+ .http-error-table :is(th,td) { text-align: right; white-space: normal; padding-block: 4px; font-variant-numeric: tabular-nums; }
719
+ .http-error-grid { display: none; }
720
+ .request-limits-line { display: flex; flex-wrap: wrap; gap: 4px 10px; }
721
+ .recent-request-duration { text-align: right; font-variant-numeric: tabular-nums; }
722
+ @media (max-width: 620px) {
723
+ .http-error-table { display: none; }
724
+ .http-error-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px 10px; margin: 6px 0; font-size: 12px; }
725
+ .http-error-grid > div { grid-column: span 2; justify-content: space-between; }
726
+ .http-error-grid > div:nth-child(n+4) { grid-column: span 3; }
727
+ .http-error-grid dt { overflow-wrap: anywhere; }
728
+ }
729
+
730
+ .metadata-check-time { display: block; color: var(--muted); }
731
+ .tool-record-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 8px; margin: 4px 0 8px; }
732
+ .tool-record-fields dt { color: var(--muted); }
733
+ .tool-record-fields dd { margin: 0; overflow-wrap: anywhere; }
734
+ [data-view="system"] .setting-row { gap: 10px; padding-block: 8px; }
735
+ [data-view="overview"] .card { min-height: 0; padding-block: 12px; }
736
+ [data-view="overview"] .card strong { margin-top: 6px; }
@@ -31,7 +31,7 @@ try {
31
31
  const command = installationCommand(platform, snapshot?.current?.version, snapshot?.latest?.version);
32
32
  element("install-command").textContent = command;
33
33
  element("copy-install").disabled = !command;
34
- element("install-shell").textContent = platform === "windows" ? "Windows · PowerShell" : "macOS · Terminal";
34
+ element("install-shell").textContent = platform === "windows" ? "Windows PowerShell" : "macOS Terminal";
35
35
  element("install-windows-policy").hidden = platform !== "windows";
36
36
  }
37
37
  function render(data) {
@@ -412,7 +412,8 @@ export async function handleDashboardApi(req, res, pathname, {
412
412
  return selection.matches(record);
413
413
  };
414
414
  const analysis = (analytics || filtered) && !usageSummaryFn
415
- ? await analyzeUsageLogs(undefined, { provider, model: selection.filters.model, from: selection.filters.from, to: selection.filters.to, timeZone: selection.filters.time_zone, signal: abort.signal }) : null;
415
+ ? await analyzeUsageLogs(undefined, { provider, model: selection.filters.model, purpose: selection.filters.purpose,
416
+ from: selection.filters.from, to: selection.filters.to, timeZone: selection.filters.time_zone, signal: abort.signal }) : null;
416
417
  const summary = analysis?.summary || await (usageSummaryFn || (options => summarizeUsageLogs(undefined, { ...options, signal: abort.signal })))({ provider,
417
418
  ...(filtered ? { recordFilter } : {}), ...(analytics ? { onRecord: analytics.record } : {}) });
418
419
  const availableModels = analysis?.analytics.models || (observedModels.size ? [...observedModels].sort() : Object.keys(provider ? summary.byModel : summary.bySourceModel || summary.byModel).sort().slice(0, 100));
@@ -111,7 +111,7 @@ function makeGuard(validators, maxBytes) {
111
111
  const state = pending.get(event?.index);
112
112
  if (state && event.type === "content_block_delta") {
113
113
  if (event.delta?.type !== "input_json_delta" || typeof event.delta.partial_json !== "string") throw invalidToolInput();
114
- state.parts.push(event.delta.partial_json);
114
+ if (event.delta.partial_json) state.parts.push(event.delta.partial_json);
115
115
  }
116
116
  if (state && event.type === "content_block_stop") {
117
117
  let value = state.initial, unsafe = state.unsafe;
@@ -379,8 +379,12 @@ export function createResponsesHandler(options) {
379
379
  carbonBridge = prepareCarbonToolBridge(prepared.body, prepared.currentInputStart);
380
380
  if (streaming) carbonStream = createCarbonStreamAdapter(carbonBridge);
381
381
  }
382
- const chatContext = carbonBridge
382
+ let chatContext = carbonBridge
383
383
  ? { ...prepared, body: carbonBridge.body, currentInputStart: carbonBridge.currentInputStart } : prepared;
384
+ if (carbonRoute) {
385
+ const { normalizeCarbonToolSchemas } = await import("./carbon-tool-schema.mjs");
386
+ chatContext = { ...chatContext, body: normalizeCarbonToolSchemas(chatContext.body) };
387
+ }
384
388
  let { chatReq, bodyText } = await prepareResponsesChatPayload(chatContext, {
385
389
  assertActive: assertPrepareActive,
386
390
  payloadOptions: responsesPayloadOptions,