codex-copilot-dx 1.4.12 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/docs/ARCHITECTURE.md +8 -0
- package/docs/REFERENCE.md +17 -15
- package/package.json +1 -1
- package/src/access-settings.mjs +1 -0
- package/src/adapter.mjs +2 -0
- package/src/antigravity-bindings.mjs +83 -0
- package/src/antigravity-chat-bridge.mjs +38 -8
- package/src/antigravity-handler.mjs +70 -37
- package/src/antigravity-runtime.mjs +44 -35
- package/src/cli-command-spec.mjs +1 -1
- package/src/cli-management-app.mjs +169 -0
- package/src/cli-management.mjs +7 -164
- package/src/connection-management.mjs +2 -0
- package/src/connection-routing.mjs +14 -5
- package/src/context-compaction-wire.mjs +6 -6
- package/src/dashboard/connections.js +13 -3
- package/src/dashboard/features.js +2 -2
- package/src/dashboard/index.html +41 -37
- package/src/dashboard/language.js +32 -17
- package/src/dashboard/status.js +20 -28
- package/src/dashboard/tool-activity-machines.js +362 -0
- package/src/dashboard/tool-activity.js +24 -115
- package/src/dashboard/tools.js +3 -4
- package/src/dashboard/ui.css +24 -3
- package/src/dashboard/ui.js +14 -0
- package/src/dashboard/usage.js +9 -1
- package/src/dashboard.mjs +1 -0
- package/src/local-privacy.mjs +3 -3
- package/src/management-routes.mjs +3 -3
- package/src/observability.mjs +9 -4
- package/src/privacy-transform.mjs +21 -6
- package/src/response-failures.mjs +7 -3
- package/src/safe-upstream-error.mjs +2 -2
- package/src/status-summary.mjs +13 -0
- package/src/stream-performance.mjs +1 -1
- package/src/terminal-state.mjs +8 -2
package/src/dashboard/index.html
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</section>
|
|
104
104
|
<section class="panel dashboard-section" aria-labelledby="review-heading">
|
|
105
105
|
<h2 id="review-heading" data-i18n="auto_review_settings">AUTO REVIEW</h2>
|
|
106
|
-
|
|
106
|
+
|
|
107
107
|
<div class="section-actions">
|
|
108
108
|
<label><span data-i18n="auto_review_model">Review model</span><select id="source-review"></select></label>
|
|
109
109
|
<label><span data-i18n="thinking_level">Thinking level</span><select id="source-review-effort"></select></label>
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
</details>
|
|
156
156
|
</div>
|
|
157
157
|
<div data-view="claude" hidden>
|
|
158
|
-
<div class="provider-tabs client-segments" role="
|
|
159
|
-
<div id="claude-model-management"></div>
|
|
158
|
+
<div class="provider-tabs client-segments" role="tablist" aria-label="Claude"><button type="button" id="claude-app-tab" role="tab" data-claude-client="claude_app" aria-selected="true" aria-controls="claude-model-management">Claude App</button><button type="button" id="claude-code-tab" role="tab" tabindex="-1" data-claude-client="claude_code" aria-selected="false" aria-controls="claude-model-management">Claude Code</button></div>
|
|
159
|
+
<div id="claude-model-management" role="tabpanel" aria-labelledby="claude-app-tab"></div>
|
|
160
160
|
<details class="panel dashboard-section" id="claude-connections">
|
|
161
161
|
<summary data-i18n="connection_details">Connection details</summary>
|
|
162
162
|
<div class="table-wrap"><table><thead><tr><th data-i18n="client">APP</th><th data-i18n="connection_setup" data-i18n-title="configured_not_successful">Setup</th><th data-i18n="local_bridge">Local service</th><th data-i18n="last_request">LAST REQUEST</th></tr></thead><tbody id="claude-clients"></tbody></table></div>
|
|
@@ -176,10 +176,10 @@
|
|
|
176
176
|
<div data-view="gemini" hidden>
|
|
177
177
|
<section class="connection-access"><div class="connection-row"><label for="gemini-enabled" data-i18n="gemini_access_title">Copilot access</label><label class="switch-hit"><input id="gemini-enabled" type="checkbox" role="switch" data-i18n-label="gemini_access_title" aria-label="Copilot access" disabled></label></div></section>
|
|
178
178
|
<section class="panel dashboard-section">
|
|
179
|
-
<div class="panel-heading"><h2 data-i18n="cap_visible_model">Available models</h2><span id="gemini-draft-state" role="status" hidden></span></div>
|
|
179
|
+
<div class="panel-heading"><h2 data-i18n="cap_visible_model">Available models</h2><div class="section-actions"><span id="gemini-draft-state" role="status" hidden></span><button id="gemini-refresh" type="button" data-i18n="refresh_models">Refresh models</button></div></div>
|
|
180
180
|
<form id="gemini-model-form">
|
|
181
181
|
<div class="table-wrap"><table class="binding-table"><thead><tr><th data-i18n="model">Model</th><th data-i18n="source">Source</th><th data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-i18n="gemini_new_chat_default">New chat default</th></tr></thead><tbody id="gemini-models"></tbody></table></div>
|
|
182
|
-
<div class="section-actions"><label><span data-i18n="gemini_copilot_timeout">Copilot response timeout (s)</span> <input id="gemini-copilot-timeout" type="number" min="1" max="600" step="1" inputmode="numeric" disabled></label><span id="gemini-timeout-lock" class="hint" data-i18n="controlled_by_environment" hidden>Set at startup</span>
|
|
182
|
+
<div class="section-actions"><label><span data-i18n="gemini_copilot_timeout">Copilot response-header timeout (s)</span> <input id="gemini-copilot-timeout" data-i18n-placeholder="limit_default" placeholder="Use default" type="number" min="1" max="600" step="1" inputmode="numeric" disabled></label><span id="gemini-timeout-lock" class="hint" data-i18n="controlled_by_environment" hidden>Set at startup</span>
|
|
183
183
|
<label id="gemini-native-source-field" hidden><span data-i18n="gemini_native_source">Custom Gemini source</span> <select id="gemini-native-source" disabled></select></label></div>
|
|
184
184
|
<div class="section-actions"><button id="gemini-save" type="submit" data-i18n="api_save" disabled>Save</button><button id="gemini-cancel" type="button" data-i18n="cap_discard_changes" disabled>Discard changes</button><button id="gemini-use-app-default" type="button" data-i18n="gemini_use_app_default" hidden>Use app default</button></div>
|
|
185
185
|
</form>
|
|
@@ -190,9 +190,9 @@
|
|
|
190
190
|
<summary data-i18n="connection_details">Connection details</summary>
|
|
191
191
|
<p id="gemini-route-state" class="client-sync-state" role="status">—</p>
|
|
192
192
|
<p class="hint" data-i18n="gemini_scope">Native Google models remain available. Copilot models and background requests use Copilot.</p>
|
|
193
|
-
<
|
|
193
|
+
<div class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="installed_version">Installed version</th></tr></thead><tbody><tr><td>Antigravity</td><td id="gemini-version">—</td></tr></tbody></table></div><p id="gemini-app-state" class="table-note">—</p>
|
|
194
194
|
<p id="gemini-reopen" class="hint" data-i18n="gemini_reopen" hidden>Quit Gemini, then open it here to load CCDX models.</p>
|
|
195
|
-
<div class="section-actions"><button id="gemini-open" type="button" data-i18n="gemini_open">Open Antigravity</button><
|
|
195
|
+
<div class="section-actions"><button id="gemini-open" type="button" data-i18n="gemini_open">Open Antigravity</button><a class="section-link" href="#models" data-source-link="github" data-i18n="gemini_open_sources">Model sources</a></div>
|
|
196
196
|
</details>
|
|
197
197
|
<details class="panel dashboard-section"><summary data-i18n="gemini_activity">Connection activity</summary>
|
|
198
198
|
<p class="hint" data-i18n="gemini_activity_scope">Includes model requests and client discovery.</p>
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
<label><span data-i18n="api_key_env">Read key from environment</span><input name="key_env" type="text" autocomplete="off" spellcheck="false" placeholder="CCDX_COMPANY_API_KEY"><span class="hint" data-i18n="api_key_env_hint">Optional for servers without a credential service. Set before starting CCDX.</span></label>
|
|
224
224
|
</div></details>
|
|
225
225
|
|
|
226
|
-
<fieldset><legend data-i18n="model_catalog">Model list</legend><div class="section-actions"><button type="button" id="connection-discover" data-i18n="api_read_models">Read models</button><button type="button" id="connection-discover-cancel" data-i18n="cancel" hidden>Cancel</button><span class="hint" data-i18n="api_discovery_save_first">Save the
|
|
226
|
+
<fieldset><legend data-i18n="model_catalog">Model list</legend><div class="section-actions"><button type="button" id="connection-discover" data-i18n="api_read_models">Read models</button><button type="button" id="connection-discover-cancel" data-i18n="cancel" hidden>Cancel</button><span id="connection-discover-note" class="hint" data-i18n="api_discovery_save_first">Save the source before reading models.</span></div>
|
|
227
227
|
<details class="tool-details" id="connection-manual-model"><summary data-i18n="api_manual_model">Add a model manually</summary><div class="section-actions"><input type="text" id="connection-model-id" spellcheck="false" autocomplete="off" aria-label="Model ID" placeholder="Model ID"><button type="button" id="connection-model-add" data-i18n="api_add_model">Add model</button></div></details>
|
|
228
228
|
<p class="hint" data-i18n="api_model_protocol_hint">Choose the APIs each model supports.</p><div class="table-wrap"><table><thead><tr><th data-i18n="model">Model</th><th data-i18n="api_protocols">Available APIs</th><th data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-i18n="cap_search">Search</th><th></th></tr></thead><tbody id="connection-models"></tbody></table></div>
|
|
229
229
|
</fieldset>
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
<p class="hint" data-i18n="tools_device_instructions">Open GitHub, enter this code, and authorize CCDX.</p>
|
|
249
249
|
<div class="device-code-row"><code id="github-user-code" class="device-code">—</code><button id="github-copy-code" class="icon-button" type="button" aria-label="Copy code" data-i18n-label="tools_copy_code" disabled><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><rect x="8" y="8" width="12" height="12" rx="1"/><path d="M16 8V4H4v12h4"/></svg></button></div>
|
|
250
250
|
<p id="github-copy-state" class="hint" role="status" aria-live="polite"></p>
|
|
251
|
-
<a id="github-authorize" class="tool-link
|
|
251
|
+
<a id="github-authorize" class="tool-link section-link" href="https://github.com/login/device" target="_blank" rel="noopener noreferrer" data-i18n="tools_open_github">Authorize on GitHub</a>
|
|
252
252
|
<button id="github-cancel" type="button" data-i18n="cancel">Cancel</button>
|
|
253
253
|
<p class="hint" data-i18n="tools_keep_old_signin">Old sign-in is kept until verification succeeds.</p>
|
|
254
254
|
</section>
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
<p id="models-note" class="table-note" data-i18n="reading_provider_catalog">Loading model list…</p>
|
|
296
296
|
<details id="model-check-details" class="model-check-details" hidden><summary data-i18n="source_check_details">Check details</summary><dl id="model-check-fields" class="failure-detail"></dl></details>
|
|
297
297
|
<div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="catalog_supported_apps">Supported apps</th><th scope="col" data-i18n="tools_details">Details</th></tr></thead><tbody id="live-models-body" role="tabpanel"><tr><td colspan="3" data-i18n="loading">Loading…</td></tr></tbody></table></div>
|
|
298
|
-
<
|
|
298
|
+
<p class="hint" data-i18n="catalog_listing_does_not_guarantee_inference_access">Inference access unverified.</p>
|
|
299
299
|
</details>
|
|
300
300
|
<details class="panel dashboard-section" id="account-authorization">
|
|
301
301
|
<summary data-i18n="source_access_details">SOURCE ACCESS DETAILS</summary>
|
|
@@ -307,21 +307,21 @@
|
|
|
307
307
|
<div data-view="checks" hidden>
|
|
308
308
|
<section class="panel dashboard-section">
|
|
309
309
|
<h2 data-i18n="tools_check_local">Check this computer</h2>
|
|
310
|
-
<
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
<div class="section-actions"><button id="check-local" type="button" data-i18n="
|
|
316
|
-
<p id="checks-note" class="table-note" role="status" aria-live="polite"
|
|
317
|
-
<div class="table-wrap" id="checks-results" hidden><table class="checks-table"><thead><tr><th data-i18n="tools_check_item">Check</th><th data-i18n="state">State</th><th data-i18n="tools_details">Details</th></tr></thead><tbody id="checks-body"></tbody></table></div>
|
|
310
|
+
<div class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="installed_version">Installed version</th></tr></thead><tbody>
|
|
311
|
+
<tr><td>Codex App</td><td id="client-version-codex">—</td></tr>
|
|
312
|
+
<tr><td>Claude App</td><td id="client-version-claude">—</td></tr>
|
|
313
|
+
<tr><td>Antigravity</td><td id="client-version-antigravity">—</td></tr>
|
|
314
|
+
</tbody></table></div>
|
|
315
|
+
<div class="section-actions"><button id="check-local" type="button" data-i18n="run_local_check">Run check</button></div>
|
|
316
|
+
<p id="checks-note" class="table-note" role="status" aria-live="polite"></p>
|
|
317
|
+
<div class="table-wrap" id="checks-results" hidden><table class="checks-table dense-table"><thead><tr><th data-i18n="tools_check_item">Check</th><th data-i18n="state">State</th><th data-i18n="tools_details">Details</th></tr></thead><tbody id="checks-body"></tbody></table></div>
|
|
318
318
|
</section>
|
|
319
319
|
<section class="panel dashboard-section">
|
|
320
320
|
<h2 data-i18n="account_access">ACCOUNT AND ACCESS</h2>
|
|
321
|
-
<div class="section-actions"><
|
|
321
|
+
<div class="section-actions"><a id="check-account-link" class="button-link account-entry" href="#models" data-source-link="github" data-i18n="github_account_entry">GitHub account</a><a class="button-link account-entry" href="#models" data-source-link="m365" data-i18n="m365_account_entry">M365 account</a></div>
|
|
322
322
|
</section>
|
|
323
323
|
<section class="panel dashboard-section">
|
|
324
|
-
<h2 data-i18n="tools_codex_connection">Codex connection</h2
|
|
324
|
+
<h2 data-i18n="tools_codex_connection">Codex connection</h2>
|
|
325
325
|
<div class="section-actions"><button id="preview-config-repair" type="button" data-i18n="tools_review_repair">Review repair</button></div>
|
|
326
326
|
<section id="config-repair-preview" class="tool-flow" hidden><h3 data-i18n="tools_repair_preview">Repair preview</h3><dl id="config-repair-fields" class="failure-detail"></dl><pre id="config-preview-details" class="tool-code"></pre><div class="section-actions"><button id="apply-config-repair" type="button" data-i18n="tools_apply_repair">Back up and repair</button><button id="cancel-config-repair" type="button" data-i18n="cancel">Cancel</button></div></section>
|
|
327
327
|
</section>
|
|
@@ -344,17 +344,17 @@
|
|
|
344
344
|
</section>
|
|
345
345
|
</details>
|
|
346
346
|
<details class="panel dashboard-section"><summary data-i18n="more_checks_reports">MORE CHECKS AND REPORTS</summary>
|
|
347
|
-
<div class="section-actions"><button id="check-network" type="button" data-i18n="tools_network_check">
|
|
348
|
-
<h3 data-i18n="tools_compatibility">Model compatibility</h3><p class="hint" data-i18n="compatibility_scope">Tests Codex Responses, streaming and compaction. Uses quota.</p><p id="compatibility-note" class="hint" role="status"></p>
|
|
349
|
-
<div class="tool-details"><h3 data-i18n="diagnostic_report">Diagnostic report</h3><p class="hint" data-i18n="tools_report_scope">Reports omit credentials, account details and chat content.</p><div class="section-actions"><button id="
|
|
347
|
+
<div class="section-actions"><button id="check-network" type="button" data-i18n="tools_network_check">View network settings</button></div><p id="network-check-result" class="hint" role="status"></p>
|
|
348
|
+
<h3 data-i18n="tools_compatibility">Model compatibility</h3><p class="hint" data-i18n="compatibility_scope">Tests Codex Responses, streaming and compaction. Uses quota.</p><div class="section-actions"><button id="check-compatibility" type="button" data-i18n="compatibility_test">Test Codex model compatibility</button></div><p id="compatibility-note" class="hint" role="status"></p>
|
|
349
|
+
<div class="tool-details"><h3 data-i18n="diagnostic_report">Diagnostic report</h3><p class="hint" data-i18n="tools_report_scope">Reports omit credentials, account details and chat content.</p><div class="section-actions"><button id="export-report" type="button" data-i18n="tools_export_report">Export report</button></div></div>
|
|
350
350
|
</details>
|
|
351
351
|
</div>
|
|
352
352
|
<div data-view="usage" hidden>
|
|
353
353
|
<div class="context-tabs" role="tablist" aria-label="Usage view" data-i18n-label="context_tabs"><button type="button" id="usage-tokens-tab" role="tab" aria-selected="true" aria-controls="usage-tokens-pane" data-i18n="context_tokens">Tokens</button><button type="button" id="usage-context-tab" role="tab" aria-selected="false" aria-controls="usage-context-pane" data-i18n="context_title">Context</button></div>
|
|
354
354
|
<div id="usage-tokens-pane" role="tabpanel" aria-labelledby="usage-tokens-tab">
|
|
355
355
|
<div class="section-actions usage-source-controls"><label><span data-i18n="source_entire_page">Source / entire page</span><select id="usage-provider"><option value="" data-i18n="all_providers">All providers</option></select></label>
|
|
356
|
-
<label><span data-i18n="usage_model_page">Model
|
|
357
|
-
<label><span data-i18n="usage_range_page">Time
|
|
356
|
+
<label><span data-i18n="usage_model_page">Model</span><select id="analytics-model"><option value="" data-i18n="all_models">All models</option></select></label>
|
|
357
|
+
<label><span data-i18n="usage_range_page">Time</span><select id="analytics-range"><option value="all" selected data-i18n="usage_all_history">All retained history</option><option value="7" data-i18n="7_days">Last 7 days</option><option value="30" data-i18n="30_days">Last 30 days</option><option value="90" data-i18n="90_days">Last 90 days</option><option value="365" data-i18n="usage_365_days">Last 365 days</option></select></label>
|
|
358
358
|
<label><span data-i18n="request_kind">Request purpose</span><select id="usage-purpose"><option value="" data-i18n="purpose_all">All purposes</option><option value="conversation" data-i18n="purpose_conversation">Conversation</option><option value="compaction" data-i18n="purpose_compaction">Compression</option><option value="diagnostic" data-i18n="purpose_diagnostic">Diagnostic</option><option value="compatibility" data-i18n="purpose_compatibility">Compatibility test</option><option value="unknown" data-i18n="purpose_unknown">Unknown</option></select></label>
|
|
359
359
|
<button id="refresh-usage" type="button" data-i18n="refresh_usage">Refresh usage</button></div>
|
|
360
360
|
|
|
@@ -375,14 +375,14 @@
|
|
|
375
375
|
<summary class="panel-heading"><h2 data-i18n="usage_totals">USAGE TOTALS</h2><span id="usage-state" data-i18n="reading_log">COUNTING</span></summary>
|
|
376
376
|
<div class="section-actions"><button id="clear-usage-day" type="button" hidden data-i18n="usage_clear_date">Clear date</button></div>
|
|
377
377
|
<p id="usage-note" class="table-note" data-i18n="aggregating_local_usage_metadata">Counting local usage…</p>
|
|
378
|
-
<div class="table-wrap"><table class="usage-table"><thead><tr><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="usage_records">RECORDS</th><th scope="col" data-i18n="input">INPUT USAGE</th><th scope="col" data-i18n="cache_read">REUSED INPUT</th><th scope="col" data-i18n="cache_write">CACHE WRITE</th><th scope="col" data-i18n="output">OUTPUT USAGE</th><th scope="col" data-i18n="total">TOTAL</th><th scope="col" data-i18n="cache_hit">REUSE RATE</th></tr></thead><tbody id="usage-body"><tr><td colspan="8" data-i18n="loading">Loading…</td></tr></tbody></table></div>
|
|
378
|
+
<div class="table-wrap"><table class="usage-table dense-table"><thead><tr><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="usage_records">RECORDS</th><th scope="col" data-i18n="input">INPUT USAGE</th><th scope="col" data-i18n="cache_read">REUSED INPUT</th><th scope="col" data-i18n="cache_write">CACHE WRITE</th><th scope="col" data-i18n="output">OUTPUT USAGE</th><th scope="col" data-i18n="total">TOTAL</th><th scope="col" data-i18n="cache_hit">REUSE RATE</th></tr></thead><tbody id="usage-body"><tr><td colspan="8" data-i18n="loading">Loading…</td></tr></tbody></table></div>
|
|
379
379
|
<p class="hint" data-i18n="cache_hit_recorded_cached_input_tokens_incomplete_history_unavai">Unit: Token. Reused input is part of input. Rate uses records with valid input and cache-read counts.
|
|
380
380
|
~ Partial coverage. — No valid input basis.</p>
|
|
381
381
|
|
|
382
382
|
</details>
|
|
383
383
|
</div>
|
|
384
384
|
<div id="usage-context-pane" role="tabpanel" aria-labelledby="usage-context-tab" hidden>
|
|
385
|
-
<section class="panel dashboard-section"><h2 data-i18n="context_activity">Conversations & requests</h2><p id="context-view-state" class="table-note" role="status"></p><div class="table-wrap"><table class="context-sessions"><thead><tr><th data-i18n="context_item">Conversation / request</th><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="context_share">Input share</th></tr></thead><tbody id="context-sessions"></tbody></table></div></section>
|
|
385
|
+
<section class="panel dashboard-section"><h2 data-i18n="context_activity">Conversations & requests</h2><p id="context-view-state" class="table-note" role="status"></p><div class="table-wrap"><table class="context-sessions dense-table"><thead><tr><th data-i18n="context_item">Conversation / request</th><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="context_share">Input share</th></tr></thead><tbody id="context-sessions"></tbody></table></div></section>
|
|
386
386
|
<section id="context-selection" class="panel dashboard-section" aria-labelledby="context-selection-title" hidden><div class="panel-heading"><h2 id="context-selection-title"></h2><span id="context-selection-source"></span></div>
|
|
387
387
|
<dl class="context-metrics"><div><dt data-i18n="context_latest_input">Latest input</dt><dd id="context-latest-input">—</dd></div><div><dt data-i18n="model_window">Model window</dt><dd id="context-window">—</dd></div><div><dt data-i18n="context_share">Input share</dt><dd id="context-share">—</dd></div><div><dt data-i18n="context_reuse">Cache reuse</dt><dd id="context-reuse">—</dd></div></dl>
|
|
388
388
|
<div class="panel-heading"><h3 data-i18n="context_history">Input history</h3><span id="context-history-note"></span></div><div id="context-history-chart" class="context-history-chart"></div>
|
|
@@ -403,10 +403,10 @@
|
|
|
403
403
|
<div class="flow-caption"><span id="flow-caption" data-i18n="flow_status_unknown">Status unavailable</span><button id="flow-clear" type="button" data-i18n="flow_show_all" hidden>Show all</button><button id="flow-more" type="button" hidden>More models</button></div>
|
|
404
404
|
</section>
|
|
405
405
|
<section id="tool-activity" class="panel dashboard-section" aria-labelledby="tool-title" data-paused="true">
|
|
406
|
-
<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="
|
|
406
|
+
<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="sorter" data-i18n="tool_style_sorter">Dual-lane sorter</option><option value="gantry" data-i18n="tool_style_gantry">Gantry transfer</option><option value="rotary" data-i18n="tool_style_rotary">Indexing table</option><option value="off" data-i18n="tool_style_off">Off</option></select></label></div>
|
|
407
407
|
<div id="tool-stage" class="tool-stage" data-style="assembly">
|
|
408
408
|
<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>
|
|
409
|
-
<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>
|
|
409
|
+
<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 class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="source">Source</th><th data-i18n="model">Model</th><th data-i18n="tool_name">Tool</th><th data-i18n="outcome">Result</th></tr></thead><tbody id="tool-technical"></tbody></table></div></details></div>
|
|
410
410
|
</div>
|
|
411
411
|
</section>
|
|
412
412
|
<details id="flow-active" class="panel dashboard-section"><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>
|
|
@@ -418,15 +418,15 @@
|
|
|
418
418
|
</details>
|
|
419
419
|
<details class="panel dashboard-section" id="request-context" open>
|
|
420
420
|
<summary data-i18n="recent_request_context">RECENT REQUESTS</summary>
|
|
421
|
-
<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>
|
|
421
|
+
<div class="table-wrap"><table class="recent-requests-table dense-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>
|
|
422
422
|
<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>
|
|
423
423
|
</details>
|
|
424
424
|
<details class="lower" id="recent-failures" open>
|
|
425
425
|
<summary class="panel-heading"><h2 data-i18n="recent_inference_http_failures">RECENT REQUEST ISSUES</h2><span id="failure-count">requests + events</span></summary>
|
|
426
426
|
<label for="failure-kind" class="sr-only" data-i18n="issue_category">Issue category</label>
|
|
427
427
|
<select id="failure-kind"><option value="issues" data-i18n="issue_replies">Reply issues</option><option value="capability" data-i18n="issue_capabilities">Capability notices</option><option value="connection" data-i18n="issue_connections">Connections and paths</option><option value="discovery" data-i18n="issue_discovery">Service probes</option></select>
|
|
428
|
-
<
|
|
429
|
-
<details id="failure-history" class="tool-details" hidden><summary id="failure-history-title">Failures over 24 hours</summary><div class="table-wrap"><table><thead><tr><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="phase">Phase</th><th data-i18n="failed">Failed</th><th data-i18n="
|
|
428
|
+
<div class="table-wrap"><table class="dense-table failure-table"><thead><tr><th data-i18n="time">Time</th><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="failure_reason">Reason</th></tr></thead><tbody id="failures"><tr><td colspan="4" data-i18n="reading_874bf">Reading…</td></tr></tbody></table></div>
|
|
429
|
+
<details id="failure-history" class="tool-details" hidden><summary id="failure-history-title">Failures over 24 hours</summary><div class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="phase">Phase</th><th data-i18n="failed">Failed</th><th data-i18n="last_failed_at">Last failure</th><th data-i18n="last_request_id">Last request ID</th></tr></thead><tbody id="failure-history-body"></tbody></table></div></details>
|
|
430
430
|
</details>
|
|
431
431
|
</div>
|
|
432
432
|
<div data-view="system" hidden>
|
|
@@ -445,9 +445,9 @@
|
|
|
445
445
|
<select id="terminal-color-theme" disabled class="appearance-select"><option value="green" data-i18n="appearance_classic_green">Classic green (default)</option><option value="klein" data-i18n="appearance_klein_blue">Klein blue</option><option value="pink" data-i18n="appearance_soft_pink">Soft pink</option><option value="mono" data-i18n="appearance_black_white">Black & white</option><option value="orange" data-i18n="appearance_orange">Orange</option></select>
|
|
446
446
|
</div>
|
|
447
447
|
|
|
448
|
-
<div class="setting-row terminal-animation-toggle"><label for="setting-terminal_animation_enabled" data-i18n="
|
|
448
|
+
<div class="setting-row terminal-animation-toggle"><label for="setting-terminal_animation_enabled" data-i18n="terminal_animation_enable">Enable animation</label><input id="setting-terminal_animation_enabled" type="checkbox" role="switch" disabled><span id="effect-terminal_animation_enabled" class="hint" role="status"></span></div>
|
|
449
449
|
<details id="animation-settings" class="appearance-animation settings-panel">
|
|
450
|
-
<summary class="panel-heading"><h2 data-i18n="
|
|
450
|
+
<summary class="panel-heading"><h2 data-i18n="animation_theme">Animation style</h2><span id="animation-state" data-i18n="reading">READING</span></summary>
|
|
451
451
|
<div id="animation-options" class="animation-options" role="group" aria-label="Animation style" data-i18n-label="animation_theme"></div>
|
|
452
452
|
<div class="section-actions"><button id="save-animation" type="button" disabled data-i18n="save_selection">Save animation</button><span id="animation-note" role="status" data-i18n="applies_to_the_running_terminal">Updates the running terminal.</span></div>
|
|
453
453
|
</details>
|
|
@@ -526,8 +526,8 @@
|
|
|
526
526
|
<details class="panel dashboard-section" id="request-limits"><summary data-i18n="advanced_limits">Advanced: request limits</summary><div class="section-actions"><label><span data-i18n="decoded_limit">Decoded request limit (MiB)</span><input id="decoded-limit" type="number" min="128" max="512" step="1"></label><button id="decoded-limit-save" type="button" data-i18n="api_save">Save</button><button id="decoded-limit-default" type="button" data-i18n="limit_default">Use default</button></div><p id="decoded-limit-note" class="hint" role="status"></p><div class="section-actions"><label><span data-i18n="inflight_body_limit">Shared request-body limit (MiB)</span> <input id="inflight-body-limit" type="number" min="32" max="128" step="1" required aria-describedby="inflight-body-limit-note" disabled></label><button id="inflight-body-limit-save" type="button" data-i18n="api_save" disabled>Save</button><button id="inflight-body-limit-default" type="button" data-i18n="limit_default" disabled>Use default</button></div><p id="inflight-body-limit-note" class="hint" role="status"></p></details>
|
|
527
527
|
<section class="panel dashboard-section" id="settings-preferences" aria-labelledby="preferences-heading">
|
|
528
528
|
<h2 id="preferences-heading" data-i18n="preferences_heading">SAVE & RESTORE</h2>
|
|
529
|
-
<div class="preferences-row"><div><label for="preferences-auto" data-i18n="preferences_auto">Save changes automatically</label
|
|
530
|
-
<div class="preferences-row preferences-separator"><div><
|
|
529
|
+
<div class="preferences-row"><div><label for="preferences-auto" data-i18n="preferences_auto">Save changes automatically</label></div><input id="preferences-auto" type="checkbox" role="switch" disabled checked></div>
|
|
530
|
+
<div class="preferences-row preferences-separator"><div><p class="hint" data-i18n="preferences_reset_hint">Back up saved settings before restoring.</p></div><button id="preferences-reset" type="button" disabled data-i18n="preferences_reset">Restore defaults</button></div>
|
|
531
531
|
<div id="preferences-backup" class="preferences-row preferences-separator" hidden><div><span data-i18n="preferences_backup">Settings before restore</span><p id="preferences-backup-time" class="hint"></p></div><button id="preferences-restore" type="button" data-i18n="preferences_restore">Restore backup</button></div>
|
|
532
532
|
<div id="preferences-manual" class="preferences-row preferences-separator" hidden><span id="preferences-manual-note" class="hint"></span><div class="connection-actions"><button id="preferences-discard" type="button" data-i18n="preferences_discard">Discard changes</button><button id="preferences-save" type="button" data-i18n="preferences_save">Save changes</button></div></div>
|
|
533
533
|
<div class="section-actions"><button id="preferences-retry" type="button" hidden data-i18n="view_retry">Retry</button><p id="preferences-error" class="hint" role="alert"></p></div>
|
|
@@ -539,8 +539,12 @@
|
|
|
539
539
|
</dialog>
|
|
540
540
|
</div>
|
|
541
541
|
</main>
|
|
542
|
-
|
|
542
|
+
|
|
543
543
|
</div>
|
|
544
|
+
<dialog id="action-confirm" class="preferences-dialog" aria-labelledby="action-confirm-title" aria-describedby="action-confirm-detail">
|
|
545
|
+
<h2 id="action-confirm-title"></h2><p id="action-confirm-detail"></p>
|
|
546
|
+
<form method="dialog" class="section-actions"><button id="action-confirm-cancel" value="cancel" data-i18n="cancel" autofocus>Cancel</button><button id="action-confirm-apply" value="confirm"></button></form>
|
|
547
|
+
</dialog>
|
|
544
548
|
<dialog id="connection-memory-confirm" class="memory-confirm" aria-labelledby="connection-memory-confirm-title"><h2 id="connection-memory-confirm-title" data-i18n="memory_close_title">Turn off the memory extraction model?</h2><p data-i18n="memory_close_body">Codex uses this model to extract new memories. Turning it off may prevent new memory generation.</p><p class="hint" data-i18n="memory_existing_kept">Existing memories will not be deleted.</p><div class="section-actions"><button type="button" id="connection-memory-keep" data-i18n="memory_keep_enabled">Keep enabled</button><button type="button" id="connection-memory-close" data-i18n="memory_close_anyway">Turn off anyway</button></div></dialog>
|
|
545
549
|
</body>
|
|
546
550
|
</html>
|
|
@@ -2,9 +2,23 @@
|
|
|
2
2
|
const translations = {
|
|
3
3
|
"tool_heading": ["Tool and agent activity","工具与代理活动"],
|
|
4
4
|
"tool_style": ["Style","样式"],
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"tool_name": ["Tool", "工具"],
|
|
6
|
+
"tool_style_sorter": ["Dual-lane sorter","双轨分拣"],
|
|
7
|
+
"tool_style_gantry": ["Gantry transfer","龙门移载"],
|
|
8
|
+
"tool_style_rotary": ["Indexing table","分度转盘"],
|
|
7
9
|
"tool_style_assembly": ["Assembly line","装配线"],
|
|
10
|
+
"refresh_models": ["Refresh models", "刷新模型"],
|
|
11
|
+
"routing_reason": ["Model routing", "选模依据"],
|
|
12
|
+
"routing_conversation_model": ["Conversation model", "会话模型"],
|
|
13
|
+
"routing_background_default": ["Background default", "后台默认模型"],
|
|
14
|
+
"routing_background_available": ["Available model for background work", "可用的后台模型"],
|
|
15
|
+
"failure_reason": ["Reason", "原因"],
|
|
16
|
+
"run_local_check": ["Run check", "运行检查"],
|
|
17
|
+
"installed_version": ["Installed version", "已安装版本"],
|
|
18
|
+
"last_failed_at": ["Last failure", "最近失败时间"],
|
|
19
|
+
"last_request_id": ["Last request ID", "最近请求编号"],
|
|
20
|
+
"terminal_animation_enable": ["Enable animation", "启用动效"],
|
|
21
|
+
"tools_open_github": ["Authorize on GitHub", "前往 GitHub 授权"],
|
|
8
22
|
"tool_style_off": ["Off","关闭"],
|
|
9
23
|
"tool_preparing": ["Preparing a tool call","正在准备调用"],
|
|
10
24
|
"tool_preparing_many": ["Preparing {count} calls","并行准备 {count} 项调用"],
|
|
@@ -47,12 +61,12 @@
|
|
|
47
61
|
gemini_source_disabled: ["Copilot source is off.", "Copilot 来源未启用。"],
|
|
48
62
|
gemini_open_sources: ["Model sources", "前往模型来源"],
|
|
49
63
|
gemini_new_chat_default: ["New chat default", "新会话默认"],
|
|
50
|
-
gemini_copilot_timeout: ["Copilot response timeout (s)", "Copilot
|
|
64
|
+
gemini_copilot_timeout: ["Copilot response-header timeout (s)", "Copilot 响应头超时(秒)"],
|
|
51
65
|
gemini_timeout_default: ["Default: {seconds}", "默认:{seconds}"],
|
|
52
66
|
gemini_native_source: ["Custom Gemini source", "自定义 Gemini 来源"],
|
|
53
67
|
gemini_native_source_none: ["None", "不使用"],
|
|
54
68
|
gemini_settings_saved: ["Model settings saved", "模型设置已保存"],
|
|
55
|
-
gemini_scope: ["
|
|
69
|
+
gemini_scope: ["Google and Copilot models keep separate routes.", "Google 和 Copilot 模型各走自己的来源。"],
|
|
56
70
|
gemini_enable: ["Enable Copilot access", "启用 Copilot 接入"], gemini_disable: ["Pause Copilot access", "停用 Copilot 接入"], gemini_open: ["Open client", "打开客户端"],
|
|
57
71
|
gemini_reopen: ["Reopen the app to load the settings.", "重新打开应用以加载设置。"],
|
|
58
72
|
gemini_pause_reopen: ["Reopen the app to restore the Google route.", "重新打开应用以恢复 Google 接入。"],
|
|
@@ -166,7 +180,7 @@
|
|
|
166
180
|
"context_item": ["Conversation / request", "会话/请求"],
|
|
167
181
|
"context_share": ["Input share", "输入占比"],
|
|
168
182
|
"context_latest_input": ["Latest input", "最近输入"],
|
|
169
|
-
"context_reuse": ["Cache reuse", "
|
|
183
|
+
"context_reuse": ["Cache reuse", "缓存复用率"],
|
|
170
184
|
"context_history": ["Input history", "输入变化"],
|
|
171
185
|
"context_point_usage": ["{time}\nInput: {input} tokens\nCache reuse: {reuse}", "{time}\n输入:{input} Token\n缓存复用:{reuse}"],
|
|
172
186
|
"context_compactions": ["Gateway compactions", "网关压缩"],
|
|
@@ -202,7 +216,7 @@
|
|
|
202
216
|
"failure_phase_headers": ["Waiting for response headers", "等待响应头"],
|
|
203
217
|
"failure_phase_stream": ["Reading response", "读取响应"],
|
|
204
218
|
"failure_phase_upstream": ["Upstream rejected", "上游拒绝"],
|
|
205
|
-
"issue_after_send_timeout": ["
|
|
219
|
+
"issue_after_send_timeout": ["Request sent. Response headers timed out.", "正文已发送,等待响应头超时"],
|
|
206
220
|
"issue_source_rate_wait": ["Source rate limit. Wait {seconds} s.", "来源限流。建议等待 {seconds} 秒。"],
|
|
207
221
|
"api_save_read": ["Save & read models", "保存并读取模型"],
|
|
208
222
|
"api_read_failed": ["API saved. Model lookup failed; retry here. {code}", "来源已保存;模型读取失败,可在此重试。{code}"],
|
|
@@ -414,14 +428,14 @@
|
|
|
414
428
|
"application_action_route_conflict": ["Existing routing was preserved. Check the app configuration.", "已有路由已保留,请检查应用配置。"],
|
|
415
429
|
"codex_auto_launch": ["Open Codex when CCDX starts", "启动 CCDX 时打开 Codex"],
|
|
416
430
|
"application_preference_failed": ["Not saved. Try again.", "未保存,请重试。"],
|
|
417
|
-
"source_concurrency": ["Concurrency
|
|
431
|
+
"source_concurrency": ["Concurrency limit", "并发限制"],
|
|
418
432
|
"source_concurrency_auto": ["Auto", "自动"],
|
|
419
433
|
"source_concurrency_maximum": ["Maximum concurrency", "最大并发"],
|
|
420
434
|
"source_concurrency_hint": ["Leave blank for Auto. A value only sets its ceiling.", "留空自动调节,填写数值仅设上限。"],
|
|
421
435
|
"ccdx_source_queue_full": ["The source is busy; its waiting queue is full.", "来源繁忙,等待队列已满。"],
|
|
422
436
|
"ccdx_source_queue_timeout": ["Waiting for the source timed out.", "等待来源超时。"],
|
|
423
437
|
"ccdx_source_limited": ["The source is limited. Retry after its recovery time.", "来源限流,请在恢复后重试。"],
|
|
424
|
-
"ccdx_source_limit_invalid": ["
|
|
438
|
+
"ccdx_source_limit_invalid": ["Leave blank for Auto, or enter 1–128.", "留空使用自动,或填写 1~128 的上限。"],
|
|
425
439
|
"cap_effort_scope": ["Used only when the app omits a reasoning level.", "应用未指定档位时生效。"],
|
|
426
440
|
"cap_effort_unavailable": ["{effort} (unavailable)", "{effort}(已不可用)"],
|
|
427
441
|
"ccdx_client_effort_unavailable": ["The saved reasoning level is unavailable. Choose a declared level or follow the app.", "已保存的推理档位不可用,请选择支持的档位或跟随应用。"],
|
|
@@ -534,7 +548,7 @@
|
|
|
534
548
|
"api_endpoint_options": ["Addresses & authentication", "接口地址与认证"],
|
|
535
549
|
"api_messages_auth": ["Messages authentication", "Messages 认证"],
|
|
536
550
|
"api_read_models": ["Read models", "读取模型"],
|
|
537
|
-
"api_discovery_save_first": ["
|
|
551
|
+
"api_discovery_save_first": ["Save the source before reading models.", "先保存来源,再读取模型。"],
|
|
538
552
|
"api_add_model": ["Add model", "添加模型"],
|
|
539
553
|
"api_manual_model": ["Add a model manually", "手工添加模型"],
|
|
540
554
|
"api_model_protocol_hint": ["Select the models to use and their supported APIs.", "勾选要使用的模型,再选择其支持的接口。"],
|
|
@@ -653,8 +667,8 @@
|
|
|
653
667
|
"request_usage_partial": ["Some counts unavailable", "部分计数未提供"],
|
|
654
668
|
"request_usage_missing": ["No valid usage received", "未收到有效用量"],
|
|
655
669
|
"request_usage_unavailable": ["Metadata could not be read", "元数据无法读取"],
|
|
656
|
-
"usage_model_page": ["Model
|
|
657
|
-
"usage_range_page": ["Time
|
|
670
|
+
"usage_model_page": ["Model", "模型"],
|
|
671
|
+
"usage_range_page": ["Time", "时间"],
|
|
658
672
|
"usage_all_history": ["All retained history", "全部已保留历史"],
|
|
659
673
|
"usage_365_days": ["Last 365 days", "最近 365 天"],
|
|
660
674
|
"usage_clear_date": ["Clear date", "清除日期"],
|
|
@@ -709,7 +723,7 @@
|
|
|
709
723
|
"refresh_usage": ["Refresh usage", "刷新用量"],
|
|
710
724
|
"usage_totals": ["USAGE TOTALS", "用量汇总"],
|
|
711
725
|
"model_both_charts": ["Model / both charts", "模型 / 作用于两张图"],
|
|
712
|
-
"calendar_measure": ["Measure
|
|
726
|
+
"calendar_measure": ["Measure", "统计指标"],
|
|
713
727
|
"source_summary_details": ["Source summaries", "来源摘要"],
|
|
714
728
|
"request_metadata": ["Request metadata", "请求技术信息"],
|
|
715
729
|
"cancel": ["Cancel", "取消"],
|
|
@@ -777,7 +791,7 @@
|
|
|
777
791
|
"tools_repair_complete": ["Configuration repaired and checked. Previous settings were backed up when present.", "配置已修复并检查。原配置存在时已备份。"],
|
|
778
792
|
"tools_repair_preserved": ["Settings preserved. Review the configuration before retrying.", "配置已保留,请先检查原文件。"],
|
|
779
793
|
"tools_more_checks": ["More checks", "更多检查"],
|
|
780
|
-
"tools_network_check": ["
|
|
794
|
+
"tools_network_check": ["View network settings", "查看网络设置"],
|
|
781
795
|
"tools_network_read_only": ["Network settings read. Proxy and certificate policies are unchanged.", "已读取网络设置,代理和证书策略保持不变。"],
|
|
782
796
|
"tools_compatibility": ["Model compatibility", "模型兼容性"],
|
|
783
797
|
"tools_compatibility_scope": ["Sends model requests and uses quota. Run in your terminal.", "会调用模型并消耗额度,请在终端执行。"],
|
|
@@ -906,12 +920,13 @@
|
|
|
906
920
|
"github_model_in_codex": ["Choose your conversation model in Codex.", "在 Codex 中选择对话模型。"],
|
|
907
921
|
"auto_review_settings": ["AUTO REVIEW", "自动审查"],
|
|
908
922
|
"review_uses_selected_source": ["Uses the selected source above.", "使用上方选定的来源。"],
|
|
909
|
-
"thinking_level": ["
|
|
923
|
+
"thinking_level": ["Reasoning level", "推理档位"],
|
|
910
924
|
"follow_client": ["Follow Codex (low if omitted)", "跟随 Codex(未指定时用 low)"],
|
|
911
925
|
"review_follow_model": ["Follow conversation model", "跟随会话模型"],
|
|
912
926
|
"save_review": ["Save review settings", "保存审查设置"],
|
|
913
927
|
"m365_source_access": ["Provides models for Codex and Claude on supported devices.", "在支持的设备上为 Codex 和 Claude 提供模型。"],
|
|
914
928
|
"confirm_disable_m365": ["Disable Microsoft 365? Its Claude connection will stop and unchanged CCDX-owned settings will be restored. Codex will use GitHub Copilot. Your sign-in and usage history will be kept.", "停用 Microsoft 365?Claude 本地连接将关闭,未被您改动的 CCDX 设置将恢复。Codex 将改用 GitHub Copilot。登录信息和用量记录会保留。"],
|
|
929
|
+
"ccdx_review_environment_override": ["Auto Review uses the startup override.", "自动审查使用启动时指定的模型。"],
|
|
915
930
|
"review_environment_override": ["Controlled by CCDX_AUTO_REVIEW_MODEL. Change that startup setting first.", "由 CCDX_AUTO_REVIEW_MODEL 指定。请先调整启动设置。"],
|
|
916
931
|
"review_save_source_first": ["Save this source before saving review settings.", "请先保存所选来源,再保存审查设置。"],
|
|
917
932
|
"model_choices_loading": ["Loading model choices…", "正在读取可选模型…"],
|
|
@@ -1275,11 +1290,11 @@
|
|
|
1275
1290
|
"metric_peak_peak": ["{metric} (peak {peak})", "{metric}(峰值 {peak})"],
|
|
1276
1291
|
"input_output": ["TOTAL USAGE (Token)", "总用量"],
|
|
1277
1292
|
"recorded_calls": ["RECORDED REQUESTS", "请求次数"],
|
|
1278
|
-
"zone_from_to_retained_history_starts_first_oldest_day_may_be_par": ["
|
|
1293
|
+
"zone_from_to_retained_history_starts_first_oldest_day_may_be_par": ["{from}–{to} ({zone}){excluded}{limit}", "{from} 至 {to}({zone}){excluded}{limit}"],
|
|
1279
1294
|
"count_records_with_invalid_future_timestamps_excluded": ["\nSkipped {count} records with invalid or future dates.", "\n已跳过{count}条时间异常记录。"],
|
|
1280
1295
|
"model_filters_limited_to_100_all_model_totals_include_the_remain": ["\nFilters show up to 100 models. Totals include the rest.", "\n只列出前100个模型。\n总计包含其余模型。"],
|
|
1281
|
-
"selected_date_model_totals_in_the_usage_table_above_all_history_": ["Selected: {date}
|
|
1282
|
-
"select_a_day_for_model_totals_calls_are_usage_records_not_messag": ["
|
|
1296
|
+
"selected_date_model_totals_in_the_usage_table_above_all_history_": ["Selected date: {date}", "已选日期:{date}"],
|
|
1297
|
+
"select_a_day_for_model_totals_calls_are_usage_records_not_messag": ["Hatched: no retained records. Blank: recorded zero.", "斜线格:无保留记录。空白格:记录为零。"],
|
|
1283
1298
|
"log_unavailable": ["READ FAILED", "读取失败"],
|
|
1284
1299
|
"no_usage_summary_available": ["Cannot read usage records.", "无法读取用量记录。"],
|
|
1285
1300
|
"analytics_unavailable_refresh_usage_to_retry": ["Trends unavailable. Refresh Model usage to retry.", "统计失败,请刷新用量。"],
|
package/src/dashboard/status.js
CHANGED
|
@@ -139,15 +139,11 @@
|
|
|
139
139
|
failures.reverse();
|
|
140
140
|
text("failure-count", "count_retained_requests_events", { count: failures.length });
|
|
141
141
|
if (!failures.length) {
|
|
142
|
-
|
|
143
|
-
item.className = "empty";
|
|
144
|
-
localize(item, "no_recent_request_failures_recorded");
|
|
145
|
-
list.append(item);
|
|
142
|
+
emptyTable("failures", 4, "no_recent_request_failures_recorded");
|
|
146
143
|
return;
|
|
147
144
|
}
|
|
148
145
|
for (const failure of failures) {
|
|
149
146
|
const notModelRequest = ["not_found", "image_mcp", "models", "claude_models"].includes(failure.route);
|
|
150
|
-
const item = document.createElement("li");
|
|
151
147
|
const details = document.createElement("details");
|
|
152
148
|
details.dataset.key = `${failure.at}/${failure.request_id || failure.response_id}/${failure.code}`;
|
|
153
149
|
details.open = expanded.has(details.dataset.key);
|
|
@@ -167,25 +163,16 @@
|
|
|
167
163
|
: failure.http_status === 504 && failure.code === "upstream_timeout"
|
|
168
164
|
? Number.isFinite(attempt?.body_sent_ms) && attempt.headers_ms === null ? "issue_after_send_timeout" : "issue_upstream_timeout"
|
|
169
165
|
: failure.http_status === 401 || failure.http_status === 403 ? "issue_access_denied" : "issue_request_failed";
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
178
|
-
localize(title,
|
|
179
|
-
if (failure.occurrences > 1) {
|
|
180
|
-
summary.detail = phrase("repeated_issue", { detail: summary.detail, count: failure.occurrences });
|
|
181
|
-
localize(title, "detail_retry", summary);
|
|
182
|
-
}
|
|
166
|
+
const at = failure.at ? time(failure.at, { date: true }) : phrase("unknown_time");
|
|
167
|
+
const app = failure.application || timeline?.application;
|
|
168
|
+
const row = tableRow([at, "", notModelRequest ? "" : failure.model || "", ""]);
|
|
169
|
+
localize(row.children[1], app ? `flow_app_${app}` : "unknown");
|
|
170
|
+
if (notModelRequest || !failure.model) localize(row.children[2], notModelRequest ? "not_applicable" : "unknown_model");
|
|
171
|
+
const retryWait = seconds && cause === "issue_source_rate";
|
|
172
|
+
const causeKey = retryWait ? "issue_source_rate_wait" : cause, causeArgs = retryWait ? { seconds: number(seconds) } : {};
|
|
173
|
+
if (failure.occurrences > 1) localize(title, "repeated_issue", { detail: phrase(causeKey, causeArgs), count: failure.occurrences });
|
|
174
|
+
else localize(title, causeKey, causeArgs);
|
|
183
175
|
const provider = failure.provider || timeline?.provider;
|
|
184
|
-
if (provider) {
|
|
185
|
-
const source = sourceLabel(provider);
|
|
186
|
-
const original = phrase("detail_retry", summary);
|
|
187
|
-
localize(title, "source_failure_summary", { source, detail: original });
|
|
188
|
-
}
|
|
189
176
|
const timings = timeline?.timings_ms || {};
|
|
190
177
|
const timingText = ["admission", "body", "history", "images", "serialization", "upstream_start", "upstream_headers", "first_output", "last_activity", "terminal", "finished"]
|
|
191
178
|
.filter((key) => finite(timings[key])).map((key) => `${key}=${Number(timings[key]).toFixed(1)}`).join(" / ");
|
|
@@ -204,7 +191,7 @@
|
|
|
204
191
|
request_options: failure.request_options ? JSON.stringify(failure.request_options) : undefined,
|
|
205
192
|
transport: failure.transport ? JSON.stringify(failure.transport) : undefined,
|
|
206
193
|
output_requested: timeline?.context?.max_output_tokens_requested, output_sent: timeline?.context?.max_output_tokens_sent,
|
|
207
|
-
output_used: timeline?.context?.output_tokens, stop_reason: timeline?.stop_reason, requested_model: failure.requested_model, request_kind: failure.request_kind === "unknown" ? undefined : failure.request_kind, provider
|
|
194
|
+
output_used: timeline?.context?.output_tokens, stop_reason: timeline?.stop_reason, requested_model: failure.requested_model, request_kind: failure.request_kind === "unknown" ? undefined : failure.request_kind, provider,
|
|
208
195
|
attempt_timings: failure.attempt_timings || timeline?.attempts ? JSON.stringify(failure.attempt_timings || timeline.attempts) : undefined,
|
|
209
196
|
timings_ms: timingText };
|
|
210
197
|
const diagnostic = document.createElement("dl");
|
|
@@ -232,9 +219,10 @@
|
|
|
232
219
|
});
|
|
233
220
|
const privacy = document.createElement("p");privacy.className = "hint";
|
|
234
221
|
localize(privacy, "upstream_messages_may_contain_sensitive_text");
|
|
235
|
-
details.append(title, diagnostic
|
|
236
|
-
|
|
237
|
-
|
|
222
|
+
details.append(title, diagnostic);
|
|
223
|
+
if (failure.diagnostic_message) details.append(privacy);
|
|
224
|
+
details.append(copy);
|
|
225
|
+
row.children[3].append(details);list.append(row);
|
|
238
226
|
}
|
|
239
227
|
}
|
|
240
228
|
|
|
@@ -457,7 +445,9 @@
|
|
|
457
445
|
const attempt = request.attempts?.at(-1);
|
|
458
446
|
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],
|
|
459
447
|
["time", Number.isFinite(at) ? time(at, { date: true }) : "—"],
|
|
460
|
-
["
|
|
448
|
+
["client", request.application ? phrase(`flow_app_${request.application}`) : phrase("unknown")],
|
|
449
|
+
...(Number.isFinite(request.timings_ms?.finished) ? [["request_total_time", requestTime(request.timings_ms.finished)]] : []),
|
|
450
|
+
["source", String(sourceLabel(request.provider) || "—")], ["input_tokens", number(context.input_tokens)],
|
|
461
451
|
...(Number.isSafeInteger(queue?.wait_ms) && queue.wait_ms > 0 ? [["body_queue_wait", phrase("body_queue_detail", {
|
|
462
452
|
ms: number(queue.wait_ms), result: phrase(queueResult), reason: phrase(queueReason),
|
|
463
453
|
reserved: mib(queue.requested_bytes), occupied: mib(queue.active_bytes), limit: mib(queue.limit_bytes),
|
|
@@ -474,6 +464,8 @@
|
|
|
474
464
|
["wire_mib", finite(context.payload_bytes) ? `${(Number(context.payload_bytes) / 1048576).toFixed(2)} MiB` : "—"],
|
|
475
465
|
["images", number(context.images)], ["model_window", number(context.context_window_tokens)], ["input_window", ratio],
|
|
476
466
|
["output_requested", number(context.max_output_tokens_requested)], ["output_sent", number(context.max_output_tokens_sent)], ["output_used", number(context.output_tokens)], ["stop_reason", request.stop_reason || "—"],
|
|
467
|
+
...(["conversation_model", "background_default", "background_available"].includes(context.routing_reason)
|
|
468
|
+
? [["routing_reason", phrase(`routing_${context.routing_reason}`)]] : []),
|
|
477
469
|
...(context.requested_model && context.requested_model !== request.model ? [["requested_model", context.requested_model]] : []),
|
|
478
470
|
...(["reported", "partial", "missing", "unavailable"].includes(context.usage_state) ? [["request_usage_state", globalThis.ccdxLanguage?.format("request_usage_" + context.usage_state) || context.usage_state]] : []),
|
|
479
471
|
...(context.client_tool_errors_received > 0 ? [["client_tool_errors_received", number(context.client_tool_errors_received)]] : [])]) {
|