codexmate 0.0.29 → 0.0.30
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 +421 -421
- package/README.zh.md +354 -354
- package/cli/agents-files.js +224 -224
- package/cli/archive-helpers.js +446 -446
- package/cli/auth-profiles.js +375 -375
- package/cli/builtin-proxy.js +1725 -1725
- package/cli/claude-proxy.js +1022 -1022
- package/cli/config-bootstrap.js +402 -384
- package/cli/config-health.js +454 -338
- package/cli/doctor-core.js +903 -903
- package/cli/import-skills-url.js +356 -356
- package/cli/local-bridge.js +324 -0
- package/cli/openai-bridge.js +1653 -1576
- package/cli/openclaw-config.js +629 -629
- package/cli/session-convert-args.js +65 -65
- package/cli/session-convert-io.js +82 -82
- package/cli/session-convert.js +43 -43
- package/cli/session-usage.concurrent.js +28 -28
- package/cli/session-usage.js +118 -118
- package/cli/session-usage.models.js +176 -176
- package/cli/skills.js +1141 -1141
- package/cli/zip-commands.js +510 -510
- package/cli.js +15481 -15340
- package/lib/automation.js +404 -404
- package/lib/cli-file-utils.js +151 -151
- package/lib/cli-models-utils.js +440 -440
- package/lib/cli-network-utils.js +190 -190
- package/lib/cli-path-utils.js +85 -85
- package/lib/cli-session-utils.js +121 -121
- package/lib/cli-sessions.js +417 -417
- package/lib/cli-utils.js +155 -155
- package/lib/cli-webhook.js +126 -126
- package/lib/download-artifacts.js +92 -92
- package/lib/mcp-stdio.js +453 -453
- package/lib/task-orchestrator.js +869 -869
- package/lib/text-diff.js +303 -303
- package/lib/workflow-engine.js +340 -340
- package/package.json +76 -76
- package/plugins/README.md +20 -20
- package/plugins/README.zh-CN.md +20 -20
- package/plugins/prompt-templates/comment-polish/index.mjs +25 -25
- package/plugins/prompt-templates/computed.mjs +253 -253
- package/plugins/prompt-templates/index.mjs +8 -8
- package/plugins/prompt-templates/manifest.mjs +15 -15
- package/plugins/prompt-templates/methods.mjs +553 -553
- package/plugins/prompt-templates/overview.mjs +91 -91
- package/plugins/prompt-templates/ownership.mjs +19 -19
- package/plugins/prompt-templates/rule-ack/index.mjs +21 -21
- package/plugins/prompt-templates/storage.mjs +64 -64
- package/plugins/registry.mjs +16 -16
- package/web-ui/app.js +645 -639
- package/web-ui/index.html +36 -36
- package/web-ui/logic.agents-diff.mjs +386 -386
- package/web-ui/logic.claude.mjs +168 -168
- package/web-ui/logic.codex.mjs +69 -69
- package/web-ui/logic.mjs +5 -5
- package/web-ui/logic.runtime.mjs +128 -128
- package/web-ui/logic.session-convert.mjs +70 -70
- package/web-ui/logic.sessions.mjs +765 -765
- package/web-ui/modules/api.mjs +90 -90
- package/web-ui/modules/app.computed.dashboard.mjs +248 -225
- package/web-ui/modules/app.computed.index.mjs +17 -17
- package/web-ui/modules/app.computed.main-tabs.mjs +205 -205
- package/web-ui/modules/app.computed.session.mjs +999 -999
- package/web-ui/modules/app.constants.mjs +15 -15
- package/web-ui/modules/app.methods.agents.mjs +632 -632
- package/web-ui/modules/app.methods.claude-config.mjs +200 -200
- package/web-ui/modules/app.methods.codex-config.mjs +917 -892
- package/web-ui/modules/app.methods.index.mjs +94 -94
- package/web-ui/modules/app.methods.install.mjs +205 -205
- package/web-ui/modules/app.methods.navigation.mjs +774 -761
- package/web-ui/modules/app.methods.openclaw-core.mjs +814 -814
- package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -372
- package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -369
- package/web-ui/modules/app.methods.providers.mjs +529 -493
- package/web-ui/modules/app.methods.runtime.mjs +345 -345
- package/web-ui/modules/app.methods.session-actions.mjs +593 -593
- package/web-ui/modules/app.methods.session-browser.mjs +984 -984
- package/web-ui/modules/app.methods.session-timeline.mjs +479 -479
- package/web-ui/modules/app.methods.session-trash.mjs +438 -438
- package/web-ui/modules/app.methods.startup-claude.mjs +534 -533
- package/web-ui/modules/app.methods.task-orchestration.mjs +556 -556
- package/web-ui/modules/app.methods.webhook.mjs +79 -79
- package/web-ui/modules/config-mode.computed.mjs +124 -124
- package/web-ui/modules/config-template-confirm-pref.mjs +33 -33
- package/web-ui/modules/i18n.dict.mjs +3146 -3131
- package/web-ui/modules/i18n.mjs +62 -62
- package/web-ui/modules/plugins.computed.mjs +3 -3
- package/web-ui/modules/plugins.methods.mjs +3 -3
- package/web-ui/modules/plugins.storage.mjs +11 -11
- package/web-ui/modules/provider-url-display.mjs +17 -17
- package/web-ui/modules/sessions-filters-url.mjs +85 -85
- package/web-ui/modules/skills.computed.mjs +107 -107
- package/web-ui/modules/skills.methods.mjs +482 -481
- package/web-ui/partials/index/layout-footer.html +13 -13
- package/web-ui/partials/index/layout-header.html +500 -500
- package/web-ui/partials/index/modal-config-template-agents.html +174 -174
- package/web-ui/partials/index/modal-confirm-toast.html +32 -32
- package/web-ui/partials/index/modal-health-check.html +45 -45
- package/web-ui/partials/index/modal-openclaw-config.html +280 -280
- package/web-ui/partials/index/modal-skills.html +200 -200
- package/web-ui/partials/index/modals-basic.html +162 -162
- package/web-ui/partials/index/panel-config-claude.html +194 -194
- package/web-ui/partials/index/panel-config-codex.html +337 -323
- package/web-ui/partials/index/panel-config-openclaw.html +83 -83
- package/web-ui/partials/index/panel-dashboard.html +219 -186
- package/web-ui/partials/index/panel-docs.html +147 -147
- package/web-ui/partials/index/panel-market.html +177 -177
- package/web-ui/partials/index/panel-orchestration.html +391 -391
- package/web-ui/partials/index/panel-plugins.html +253 -253
- package/web-ui/partials/index/panel-sessions.html +308 -316
- package/web-ui/partials/index/panel-settings.html +190 -190
- package/web-ui/partials/index/panel-trash.html +88 -88
- package/web-ui/partials/index/panel-usage.html +371 -371
- package/web-ui/res/json5.min.js +1 -1
- package/web-ui/res/vue.global.prod.js +13 -13
- package/web-ui/session-helpers.mjs +594 -576
- package/web-ui/source-bundle.cjs +233 -233
- package/web-ui/styles/base-theme.css +281 -281
- package/web-ui/styles/controls-forms.css +422 -422
- package/web-ui/styles/dashboard.css +406 -274
- package/web-ui/styles/docs-panel.css +271 -271
- package/web-ui/styles/feedback.css +108 -108
- package/web-ui/styles/health-check-dialog.css +144 -144
- package/web-ui/styles/layout-shell.css +626 -626
- package/web-ui/styles/modals-core.css +466 -466
- package/web-ui/styles/navigation-panels.css +391 -391
- package/web-ui/styles/openclaw-structured.css +266 -266
- package/web-ui/styles/plugins-panel.css +564 -523
- package/web-ui/styles/responsive.css +454 -454
- package/web-ui/styles/sessions-list.css +417 -419
- package/web-ui/styles/sessions-preview.css +407 -411
- package/web-ui/styles/sessions-toolbar-trash.css +334 -330
- package/web-ui/styles/sessions-usage.css +1040 -1040
- package/web-ui/styles/settings-panel.css +349 -349
- package/web-ui/styles/skills-list.css +305 -303
- package/web-ui/styles/skills-market.css +429 -406
- package/web-ui/styles/task-orchestration.css +822 -822
- package/web-ui/styles/titles-cards.css +472 -472
- package/web-ui/styles/trash-panel.css +90 -90
- package/web-ui/styles/webhook.css +81 -81
- package/web-ui/styles.css +23 -23
- package/web-ui.html +17 -17
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
<!-- OpenClaw 配置模式 -->
|
|
2
|
-
<div
|
|
3
|
-
v-show="mainTab === 'config' && configMode === 'openclaw'"
|
|
4
|
-
class="mode-content mode-cards"
|
|
5
|
-
id="panel-config-openclaw"
|
|
6
|
-
role="tabpanel"
|
|
7
|
-
:aria-labelledby="forceCompactLayout ? 'tab-config' : 'side-tab-config-openclaw'">
|
|
8
|
-
<div v-if="forceCompactLayout && !sessionStandalone" class="segmented-control">
|
|
9
|
-
<button type="button" :class="['segment', { active: configMode === 'codex' }]" @click="switchConfigMode('codex')">{{ t('tab.config.codex') }}</button>
|
|
10
|
-
<button type="button" :class="['segment', { active: configMode === 'claude' }]" @click="switchConfigMode('claude')">{{ t('tab.config.claude') }}</button>
|
|
11
|
-
<button type="button" :class="['segment', { active: configMode === 'openclaw' }]" @click="switchConfigMode('openclaw')">{{ t('tab.config.openclaw') }}</button>
|
|
12
|
-
</div>
|
|
13
|
-
<div class="config-template-hint">
|
|
14
|
-
{{ t('openclaw.applyHint') }}
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div class="selector-section">
|
|
18
|
-
<div class="selector-header">
|
|
19
|
-
<span class="selector-title">AGENTS.md</span>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="config-template-hint">
|
|
22
|
-
{{ t('openclaw.agents.hint') }}
|
|
23
|
-
</div>
|
|
24
|
-
<button class="btn-tool" @click="openOpenclawAgentsEditor" :disabled="loading || !!initError || agentsLoading">
|
|
25
|
-
{{ agentsLoading ? t('config.modelLoading') : t('openclaw.agents.open') }}
|
|
26
|
-
</button>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div class="selector-section">
|
|
30
|
-
<div class="selector-header">
|
|
31
|
-
<label class="selector-title" for="openclaw-workspace-file">{{ t('openclaw.workspaceFile') }}</label>
|
|
32
|
-
</div>
|
|
33
|
-
<input
|
|
34
|
-
id="openclaw-workspace-file"
|
|
35
|
-
class="form-input"
|
|
36
|
-
v-model="openclawWorkspaceFileName"
|
|
37
|
-
:placeholder="t('openclaw.workspace.placeholder')">
|
|
38
|
-
<div class="config-template-hint">
|
|
39
|
-
{{ t('openclaw.workspace.hint') }}
|
|
40
|
-
</div>
|
|
41
|
-
<button class="btn-tool" @click="openOpenclawWorkspaceEditor" :disabled="loading || !!initError || agentsLoading">
|
|
42
|
-
{{ agentsLoading ? t('config.modelLoading') : t('openclaw.workspace.open') }}
|
|
43
|
-
</button>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div class="card-list">
|
|
47
|
-
<div v-for="(config, name) in openclawConfigs" :key="name"
|
|
48
|
-
:class="['card', { active: currentOpenclawConfig === name }]"
|
|
49
|
-
@click="applyOpenclawConfig(name)"
|
|
50
|
-
@keydown.enter.self.prevent="applyOpenclawConfig(name)"
|
|
51
|
-
@keydown.space.self.prevent="applyOpenclawConfig(name)"
|
|
52
|
-
tabindex="0"
|
|
53
|
-
role="button"
|
|
54
|
-
:aria-current="currentOpenclawConfig === name ? 'true' : null">
|
|
55
|
-
<div class="card-leading">
|
|
56
|
-
<div class="card-icon">{{ name.charAt(0).toUpperCase() }}</div>
|
|
57
|
-
<div class="card-content">
|
|
58
|
-
<div class="card-title">{{ name }}</div>
|
|
59
|
-
<div class="card-subtitle">{{ openclawSubtitle(config) }}</div>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
<div class="card-trailing">
|
|
63
|
-
<span :class="['pill', openclawHasContent(config) ? 'configured' : 'empty']">
|
|
64
|
-
{{ openclawHasContent(config) ? t('openclaw.configured') : t('openclaw.notConfigured') }}
|
|
65
|
-
</span>
|
|
66
|
-
<div class="card-actions" @click.stop>
|
|
67
|
-
<button class="card-action-btn" @click="openOpenclawEditModal(name)" :aria-label="t('openclaw.action.editAria', { name })" :title="t('openclaw.action.edit')">
|
|
68
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
69
|
-
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
|
|
70
|
-
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
|
|
71
|
-
</svg>
|
|
72
|
-
</button>
|
|
73
|
-
<button v-if="name !== '默认配置'" class="card-action-btn delete" @click="deleteOpenclawConfig(name)" :aria-label="t('openclaw.action.deleteAria', { name })" :title="t('openclaw.action.delete')">
|
|
74
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
75
|
-
<path d="M3 6h18"/>
|
|
76
|
-
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>
|
|
77
|
-
</svg>
|
|
78
|
-
</button>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
1
|
+
<!-- OpenClaw 配置模式 -->
|
|
2
|
+
<div
|
|
3
|
+
v-show="mainTab === 'config' && configMode === 'openclaw'"
|
|
4
|
+
class="mode-content mode-cards"
|
|
5
|
+
id="panel-config-openclaw"
|
|
6
|
+
role="tabpanel"
|
|
7
|
+
:aria-labelledby="forceCompactLayout ? 'tab-config' : 'side-tab-config-openclaw'">
|
|
8
|
+
<div v-if="forceCompactLayout && !sessionStandalone" class="segmented-control">
|
|
9
|
+
<button type="button" :class="['segment', { active: configMode === 'codex' }]" @click="switchConfigMode('codex')">{{ t('tab.config.codex') }}</button>
|
|
10
|
+
<button type="button" :class="['segment', { active: configMode === 'claude' }]" @click="switchConfigMode('claude')">{{ t('tab.config.claude') }}</button>
|
|
11
|
+
<button type="button" :class="['segment', { active: configMode === 'openclaw' }]" @click="switchConfigMode('openclaw')">{{ t('tab.config.openclaw') }}</button>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="config-template-hint">
|
|
14
|
+
{{ t('openclaw.applyHint') }}
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="selector-section">
|
|
18
|
+
<div class="selector-header">
|
|
19
|
+
<span class="selector-title">AGENTS.md</span>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="config-template-hint">
|
|
22
|
+
{{ t('openclaw.agents.hint') }}
|
|
23
|
+
</div>
|
|
24
|
+
<button class="btn-tool" @click="openOpenclawAgentsEditor" :disabled="loading || !!initError || agentsLoading">
|
|
25
|
+
{{ agentsLoading ? t('config.modelLoading') : t('openclaw.agents.open') }}
|
|
26
|
+
</button>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="selector-section">
|
|
30
|
+
<div class="selector-header">
|
|
31
|
+
<label class="selector-title" for="openclaw-workspace-file">{{ t('openclaw.workspaceFile') }}</label>
|
|
32
|
+
</div>
|
|
33
|
+
<input
|
|
34
|
+
id="openclaw-workspace-file"
|
|
35
|
+
class="form-input"
|
|
36
|
+
v-model="openclawWorkspaceFileName"
|
|
37
|
+
:placeholder="t('openclaw.workspace.placeholder')">
|
|
38
|
+
<div class="config-template-hint">
|
|
39
|
+
{{ t('openclaw.workspace.hint') }}
|
|
40
|
+
</div>
|
|
41
|
+
<button class="btn-tool" @click="openOpenclawWorkspaceEditor" :disabled="loading || !!initError || agentsLoading">
|
|
42
|
+
{{ agentsLoading ? t('config.modelLoading') : t('openclaw.workspace.open') }}
|
|
43
|
+
</button>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div class="card-list">
|
|
47
|
+
<div v-for="(config, name) in openclawConfigs" :key="name"
|
|
48
|
+
:class="['card', { active: currentOpenclawConfig === name }]"
|
|
49
|
+
@click="applyOpenclawConfig(name)"
|
|
50
|
+
@keydown.enter.self.prevent="applyOpenclawConfig(name)"
|
|
51
|
+
@keydown.space.self.prevent="applyOpenclawConfig(name)"
|
|
52
|
+
tabindex="0"
|
|
53
|
+
role="button"
|
|
54
|
+
:aria-current="currentOpenclawConfig === name ? 'true' : null">
|
|
55
|
+
<div class="card-leading">
|
|
56
|
+
<div class="card-icon">{{ name.charAt(0).toUpperCase() }}</div>
|
|
57
|
+
<div class="card-content">
|
|
58
|
+
<div class="card-title">{{ name }}</div>
|
|
59
|
+
<div class="card-subtitle">{{ openclawSubtitle(config) }}</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="card-trailing">
|
|
63
|
+
<span :class="['pill', openclawHasContent(config) ? 'configured' : 'empty']">
|
|
64
|
+
{{ openclawHasContent(config) ? t('openclaw.configured') : t('openclaw.notConfigured') }}
|
|
65
|
+
</span>
|
|
66
|
+
<div class="card-actions" @click.stop>
|
|
67
|
+
<button class="card-action-btn" @click="openOpenclawEditModal(name)" :aria-label="t('openclaw.action.editAria', { name })" :title="t('openclaw.action.edit')">
|
|
68
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
69
|
+
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
|
|
70
|
+
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
|
|
71
|
+
</svg>
|
|
72
|
+
</button>
|
|
73
|
+
<button v-if="name !== '默认配置'" class="card-action-btn delete" @click="deleteOpenclawConfig(name)" :aria-label="t('openclaw.action.deleteAria', { name })" :title="t('openclaw.action.delete')">
|
|
74
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
75
|
+
<path d="M3 6h18"/>
|
|
76
|
+
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>
|
|
77
|
+
</svg>
|
|
78
|
+
</button>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
@@ -1,186 +1,219 @@
|
|
|
1
|
-
<div
|
|
2
|
-
v-show="mainTab === 'dashboard'"
|
|
3
|
-
class="mode-content"
|
|
4
|
-
id="panel-dashboard"
|
|
5
|
-
role="tabpanel"
|
|
6
|
-
:aria-labelledby="'tab-dashboard'">
|
|
7
|
-
<div class="selector-section doctor-hero">
|
|
8
|
-
<div class="selector-header">
|
|
9
|
-
<span class="selector-title">{{ t('dashboard.doctor.title') }}</span>
|
|
10
|
-
<div class="selector-actions">
|
|
11
|
-
<button
|
|
12
|
-
class="btn-tool btn-tool-compact"
|
|
13
|
-
@click="runHealthCheck"
|
|
14
|
-
:disabled="loading || !!initError || healthCheckLoading">
|
|
15
|
-
{{ healthCheckLoading ? t('dashboard.doctor.checking') : t('dashboard.doctor.runChecks') }}
|
|
16
|
-
</button>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="doctor-grid">
|
|
20
|
-
<button type="button" class="doctor-card" @click="switchMainTab('config')" :disabled="loading || !!initError">
|
|
21
|
-
<div class="doctor-card-title">{{ t('dashboard.card.config') }}</div>
|
|
22
|
-
<div class="doctor-card-meta">
|
|
23
|
-
<span>{{ inspectorConfigModeLabel }}</span>
|
|
24
|
-
<span>·</span>
|
|
25
|
-
<span>{{ inspectorCurrentConfigLabel }}</span>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="doctor-card-kv">
|
|
28
|
-
<span>{{ t('dashboard.kv.model') }}</span>
|
|
29
|
-
<span>{{ inspectorCurrentModelLabel }}</span>
|
|
30
|
-
</div>
|
|
31
|
-
</button>
|
|
32
|
-
<button type="button" class="doctor-card" @click="switchMainTab('sessions')" :disabled="loading || !!initError">
|
|
33
|
-
<div class="doctor-card-title">{{ t('dashboard.card.sessions') }}</div>
|
|
34
|
-
<div class="doctor-card-meta">
|
|
35
|
-
<span>{{ sessionsLoading ? t('dashboard.state.loading') : (sessionsLoadedOnce ? t('dashboard.state.ready') : t('dashboard.state.idle')) }}</span>
|
|
36
|
-
<span>·</span>
|
|
37
|
-
<span>{{ t('dashboard.sessions.count', { count: sessionsList.length }) }}</span>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="doctor-card-kv" v-if="activeSessionDetailError">
|
|
40
|
-
<span>{{ t('dashboard.kv.issue') }}</span>
|
|
41
|
-
<span class="doctor-kv-error">{{ activeSessionDetailError }}</span>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="doctor-card-kv" v-else>
|
|
44
|
-
<span>{{ t('dashboard.kv.active') }}</span>
|
|
45
|
-
<span>{{ activeSession ? (activeSession.title || activeSession.sessionId) : t('dashboard.none') }}</span>
|
|
46
|
-
</div>
|
|
47
|
-
</button>
|
|
48
|
-
<button type="button" class="doctor-card" @click="switchMainTab('usage')" :disabled="loading || !!initError">
|
|
49
|
-
<div class="doctor-card-title">{{ t('dashboard.card.usage') }}</div>
|
|
50
|
-
<div class="doctor-card-meta">
|
|
51
|
-
<span>{{ sessionsUsageLoading ? t('dashboard.state.loading') : (sessionsUsageLoadedOnce ? t('dashboard.state.ready') : t('dashboard.state.idle')) }}</span>
|
|
52
|
-
<span>·</span>
|
|
53
|
-
<span>{{ t('dashboard.usage.range', { value: (sessionsUsageTimeRange === 'all' ? t('usage.range.all') : (sessionsUsageTimeRange === '30d' ? t('usage.range.30d.short') : t('usage.range.7d.short'))) }) }}</span>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="doctor-card-kv" v-if="sessionsUsageError">
|
|
56
|
-
<span>{{ t('dashboard.kv.issue') }}</span>
|
|
57
|
-
<span class="doctor-kv-error">{{ sessionsUsageError }}</span>
|
|
58
|
-
</div>
|
|
59
|
-
<div class="doctor-card-kv" v-else>
|
|
60
|
-
<span>{{ t('dashboard.kv.sessions') }}</span>
|
|
61
|
-
<span>{{ sessionUsageSummaryCards[0] ? sessionUsageSummaryCards[0].value : 0 }}</span>
|
|
62
|
-
</div>
|
|
63
|
-
<div class="doctor-card-kv"
|
|
64
|
-
v-if="sessionsUsageLoadedOnce
|
|
65
|
-
&& sessionsUsageList.filter(session => !(session && typeof session.model === 'string' && session.model.trim())).length">
|
|
66
|
-
<span>{{ t('dashboard.kv.missingModel') }}</span>
|
|
67
|
-
<span>{{ sessionsUsageList.filter(session => !(session && typeof session.model === 'string' && session.model.trim())).length }}</span>
|
|
68
|
-
</div>
|
|
69
|
-
</button>
|
|
70
|
-
<button
|
|
71
|
-
v-if="taskOrchestrationTabEnabled"
|
|
72
|
-
type="button"
|
|
73
|
-
class="doctor-card"
|
|
74
|
-
@click="switchMainTab('orchestration')"
|
|
75
|
-
:disabled="loading || !!initError">
|
|
76
|
-
<div class="doctor-card-title">{{ t('dashboard.card.tasks') }}</div>
|
|
77
|
-
<div class="doctor-card-meta">
|
|
78
|
-
<span>{{ taskOrchestration && taskOrchestration.loading ? t('dashboard.state.loading') : t('dashboard.state.ready') }}</span>
|
|
79
|
-
<span>·</span>
|
|
80
|
-
<span>{{ t('dashboard.tasks.queue', { running: taskOrchestrationQueueStats.running, queued: taskOrchestrationQueueStats.queued }) }}</span>
|
|
81
|
-
</div>
|
|
82
|
-
<div class="doctor-card-kv" v-if="taskOrchestration && taskOrchestration.planIssues && taskOrchestration.planIssues.length">
|
|
83
|
-
<span>{{ t('dashboard.kv.blockers') }}</span>
|
|
84
|
-
<span>{{ taskOrchestration.planIssues.length }}</span>
|
|
85
|
-
</div>
|
|
86
|
-
<div class="doctor-card-kv" v-else>
|
|
87
|
-
<span>{{ t('dashboard.kv.runs') }}</span>
|
|
88
|
-
<span>{{ taskOrchestration && taskOrchestration.runs ? taskOrchestration.runs.length : 0 }}</span>
|
|
89
|
-
</div>
|
|
90
|
-
</button>
|
|
91
|
-
<button type="button" class="doctor-card" @click="switchMainTab('market')" :disabled="loading || !!initError">
|
|
92
|
-
<div class="doctor-card-title">{{ t('dashboard.card.skills') }}</div>
|
|
93
|
-
<div class="doctor-card-meta">
|
|
94
|
-
<span>{{ skillsMarketBusy ? t('dashboard.state.loading') : t('dashboard.state.ready') }}</span>
|
|
95
|
-
<span>·</span>
|
|
96
|
-
<span>{{ t('dashboard.skills.count', { installed: skillsList.length, importable: skillsImportList.length }) }}</span>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="doctor-card-kv">
|
|
99
|
-
<span>{{ t('dashboard.kv.target') }}</span>
|
|
100
|
-
<span>{{ skillsTargetLabel }}</span>
|
|
101
|
-
</div>
|
|
102
|
-
<div class="doctor-card-kv" v-if="skillsRootPath">
|
|
103
|
-
<span>{{ t('dashboard.kv.root') }}</span>
|
|
104
|
-
<span>{{ skillsRootPath }}</span>
|
|
105
|
-
</div>
|
|
106
|
-
</button>
|
|
107
|
-
</div>
|
|
108
|
-
<div class="doctor-status-row">
|
|
109
|
-
<div class="doctor-status-chip" :class="inspectorHealthTone">
|
|
110
|
-
<span>{{ t('dashboard.status.health') }}</span>
|
|
111
|
-
<strong>{{ inspectorHealthStatus }}</strong>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="doctor-status-chip">
|
|
114
|
-
<span>{{ t('dashboard.status.busy') }}</span>
|
|
115
|
-
<strong>{{ inspectorBusyStatus }}</strong>
|
|
116
|
-
</div>
|
|
117
|
-
<div class="doctor-status-chip">
|
|
118
|
-
<span>{{ t('dashboard.status.models') }}</span>
|
|
119
|
-
<strong>{{ inspectorModelLoadStatus }}</strong>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
<div v-if="
|
|
123
|
-
<div class="doctor-health-title">
|
|
124
|
-
{{
|
|
125
|
-
<span v-if="
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
<
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
1
|
+
<div
|
|
2
|
+
v-show="mainTab === 'dashboard'"
|
|
3
|
+
class="mode-content"
|
|
4
|
+
id="panel-dashboard"
|
|
5
|
+
role="tabpanel"
|
|
6
|
+
:aria-labelledby="'tab-dashboard'">
|
|
7
|
+
<div class="selector-section doctor-hero">
|
|
8
|
+
<div class="selector-header">
|
|
9
|
+
<span class="selector-title">{{ t('dashboard.doctor.title') }}</span>
|
|
10
|
+
<div class="selector-actions">
|
|
11
|
+
<button
|
|
12
|
+
class="btn-tool btn-tool-compact"
|
|
13
|
+
@click="runHealthCheck"
|
|
14
|
+
:disabled="loading || !!initError || healthCheckLoading">
|
|
15
|
+
{{ healthCheckLoading ? t('dashboard.doctor.checking') : t('dashboard.doctor.runChecks') }}
|
|
16
|
+
</button>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="doctor-grid">
|
|
20
|
+
<button type="button" class="doctor-card" @click="switchMainTab('config')" :disabled="loading || !!initError">
|
|
21
|
+
<div class="doctor-card-title">{{ t('dashboard.card.config') }}</div>
|
|
22
|
+
<div class="doctor-card-meta">
|
|
23
|
+
<span>{{ inspectorConfigModeLabel }}</span>
|
|
24
|
+
<span>·</span>
|
|
25
|
+
<span>{{ inspectorCurrentConfigLabel }}</span>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="doctor-card-kv">
|
|
28
|
+
<span>{{ t('dashboard.kv.model') }}</span>
|
|
29
|
+
<span>{{ inspectorCurrentModelLabel }}</span>
|
|
30
|
+
</div>
|
|
31
|
+
</button>
|
|
32
|
+
<button type="button" class="doctor-card" @click="switchMainTab('sessions')" :disabled="loading || !!initError">
|
|
33
|
+
<div class="doctor-card-title">{{ t('dashboard.card.sessions') }}</div>
|
|
34
|
+
<div class="doctor-card-meta">
|
|
35
|
+
<span>{{ sessionsLoading ? t('dashboard.state.loading') : (sessionsLoadedOnce ? t('dashboard.state.ready') : t('dashboard.state.idle')) }}</span>
|
|
36
|
+
<span>·</span>
|
|
37
|
+
<span>{{ t('dashboard.sessions.count', { count: sessionsList.length }) }}</span>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="doctor-card-kv" v-if="activeSessionDetailError">
|
|
40
|
+
<span>{{ t('dashboard.kv.issue') }}</span>
|
|
41
|
+
<span class="doctor-kv-error">{{ activeSessionDetailError }}</span>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="doctor-card-kv" v-else>
|
|
44
|
+
<span>{{ t('dashboard.kv.active') }}</span>
|
|
45
|
+
<span>{{ activeSession ? (activeSession.title || activeSession.sessionId) : t('dashboard.none') }}</span>
|
|
46
|
+
</div>
|
|
47
|
+
</button>
|
|
48
|
+
<button type="button" class="doctor-card" @click="switchMainTab('usage')" :disabled="loading || !!initError">
|
|
49
|
+
<div class="doctor-card-title">{{ t('dashboard.card.usage') }}</div>
|
|
50
|
+
<div class="doctor-card-meta">
|
|
51
|
+
<span>{{ sessionsUsageLoading ? t('dashboard.state.loading') : (sessionsUsageLoadedOnce ? t('dashboard.state.ready') : t('dashboard.state.idle')) }}</span>
|
|
52
|
+
<span>·</span>
|
|
53
|
+
<span>{{ t('dashboard.usage.range', { value: (sessionsUsageTimeRange === 'all' ? t('usage.range.all') : (sessionsUsageTimeRange === '30d' ? t('usage.range.30d.short') : t('usage.range.7d.short'))) }) }}</span>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="doctor-card-kv" v-if="sessionsUsageError">
|
|
56
|
+
<span>{{ t('dashboard.kv.issue') }}</span>
|
|
57
|
+
<span class="doctor-kv-error">{{ sessionsUsageError }}</span>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="doctor-card-kv" v-else>
|
|
60
|
+
<span>{{ t('dashboard.kv.sessions') }}</span>
|
|
61
|
+
<span>{{ sessionUsageSummaryCards[0] ? sessionUsageSummaryCards[0].value : 0 }}</span>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="doctor-card-kv"
|
|
64
|
+
v-if="sessionsUsageLoadedOnce
|
|
65
|
+
&& sessionsUsageList.filter(session => !(session && typeof session.model === 'string' && session.model.trim())).length">
|
|
66
|
+
<span>{{ t('dashboard.kv.missingModel') }}</span>
|
|
67
|
+
<span>{{ sessionsUsageList.filter(session => !(session && typeof session.model === 'string' && session.model.trim())).length }}</span>
|
|
68
|
+
</div>
|
|
69
|
+
</button>
|
|
70
|
+
<button
|
|
71
|
+
v-if="taskOrchestrationTabEnabled"
|
|
72
|
+
type="button"
|
|
73
|
+
class="doctor-card"
|
|
74
|
+
@click="switchMainTab('orchestration')"
|
|
75
|
+
:disabled="loading || !!initError">
|
|
76
|
+
<div class="doctor-card-title">{{ t('dashboard.card.tasks') }}</div>
|
|
77
|
+
<div class="doctor-card-meta">
|
|
78
|
+
<span>{{ taskOrchestration && taskOrchestration.loading ? t('dashboard.state.loading') : t('dashboard.state.ready') }}</span>
|
|
79
|
+
<span>·</span>
|
|
80
|
+
<span>{{ t('dashboard.tasks.queue', { running: taskOrchestrationQueueStats.running, queued: taskOrchestrationQueueStats.queued }) }}</span>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="doctor-card-kv" v-if="taskOrchestration && taskOrchestration.planIssues && taskOrchestration.planIssues.length">
|
|
83
|
+
<span>{{ t('dashboard.kv.blockers') }}</span>
|
|
84
|
+
<span>{{ taskOrchestration.planIssues.length }}</span>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="doctor-card-kv" v-else>
|
|
87
|
+
<span>{{ t('dashboard.kv.runs') }}</span>
|
|
88
|
+
<span>{{ taskOrchestration && taskOrchestration.runs ? taskOrchestration.runs.length : 0 }}</span>
|
|
89
|
+
</div>
|
|
90
|
+
</button>
|
|
91
|
+
<button type="button" class="doctor-card" @click="switchMainTab('market')" :disabled="loading || !!initError">
|
|
92
|
+
<div class="doctor-card-title">{{ t('dashboard.card.skills') }}</div>
|
|
93
|
+
<div class="doctor-card-meta">
|
|
94
|
+
<span>{{ skillsMarketBusy ? t('dashboard.state.loading') : t('dashboard.state.ready') }}</span>
|
|
95
|
+
<span>·</span>
|
|
96
|
+
<span>{{ t('dashboard.skills.count', { installed: skillsList.length, importable: skillsImportList.length }) }}</span>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="doctor-card-kv">
|
|
99
|
+
<span>{{ t('dashboard.kv.target') }}</span>
|
|
100
|
+
<span>{{ skillsTargetLabel }}</span>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="doctor-card-kv" v-if="skillsRootPath">
|
|
103
|
+
<span>{{ t('dashboard.kv.root') }}</span>
|
|
104
|
+
<span>{{ skillsRootPath }}</span>
|
|
105
|
+
</div>
|
|
106
|
+
</button>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="doctor-status-row">
|
|
109
|
+
<div class="doctor-status-chip" :class="inspectorHealthTone">
|
|
110
|
+
<span>{{ t('dashboard.status.health') }}</span>
|
|
111
|
+
<strong>{{ inspectorHealthStatus }}</strong>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="doctor-status-chip">
|
|
114
|
+
<span>{{ t('dashboard.status.busy') }}</span>
|
|
115
|
+
<strong>{{ inspectorBusyStatus }}</strong>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="doctor-status-chip">
|
|
118
|
+
<span>{{ t('dashboard.status.models') }}</span>
|
|
119
|
+
<strong>{{ inspectorModelLoadStatus }}</strong>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div v-if="providersHealthLoading || providersHealthResult" class="doctor-providers-health">
|
|
123
|
+
<div class="doctor-providers-health-title">
|
|
124
|
+
{{ t('dashboard.providersHealth.title') }}
|
|
125
|
+
<span v-if="providersHealthResult" class="doctor-providers-health-summary">
|
|
126
|
+
{{ providersHealthResult.summary.green }}/{{ providersHealthResult.summary.total }}
|
|
127
|
+
</span>
|
|
128
|
+
<span v-else class="doctor-providers-health-summary">{{ t('dashboard.providersHealth.checking') }}</span>
|
|
129
|
+
</div>
|
|
130
|
+
<div v-if="providersHealthResult" class="doctor-providers-grid">
|
|
131
|
+
<div v-for="entry in providersHealthResult.providers"
|
|
132
|
+
:key="entry.provider"
|
|
133
|
+
class="doctor-provider-chip"
|
|
134
|
+
:class="[entry.status]"
|
|
135
|
+
:title="entry.provider + (entry.remote ? (entry.remote.ok ? ' OK' : ' ' + entry.remote.message) : '')">
|
|
136
|
+
<span class="doctor-provider-name">
|
|
137
|
+
{{ entry.provider }}
|
|
138
|
+
<span v-if="entry.isCurrent" class="doctor-provider-current">{{ t('dashboard.providersHealth.current') }}</span>
|
|
139
|
+
</span>
|
|
140
|
+
<span class="doctor-provider-status-dot"></span>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div v-if="providersHealthResult && providersHealthResult.providers.some(e => e.issues && e.issues.length)" class="doctor-provider-issues">
|
|
144
|
+
<div v-for="entry in providersHealthResult.providers.filter(e => e.issues && e.issues.length)"
|
|
145
|
+
:key="entry.provider + '-issues'"
|
|
146
|
+
class="doctor-provider-issue-card">
|
|
147
|
+
<div class="doctor-provider-issue-name">{{ entry.provider }}</div>
|
|
148
|
+
<div v-for="issue in entry.issues" :key="issue.code" class="doctor-provider-issue-row">
|
|
149
|
+
<span class="doctor-provider-issue-text">{{ issue.message }}</span>
|
|
150
|
+
<span v-if="issue.suggestion" class="doctor-provider-issue-fix">{{ issue.suggestion }}</span>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
<div v-if="healthCheckResult" class="doctor-health-result" :class="healthCheckResult.ok ? 'ok' : 'error'">
|
|
156
|
+
<div class="doctor-health-title">
|
|
157
|
+
{{ healthCheckResult.ok ? t('dashboard.health.ok') : t('dashboard.health.fail') }}
|
|
158
|
+
<span v-if="healthCheckResult.issues && healthCheckResult.issues.length">({{ t('dashboard.health.issues', { count: healthCheckResult.issues.length }) }})</span>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<div v-if="healthCheckResult && healthCheckResult.report && healthCheckResult.report.issues && healthCheckResult.report.issues.length" class="doctor-action-list">
|
|
162
|
+
<div v-for="issue in healthCheckResult.report.issues" :key="issue.id" class="doctor-action-card">
|
|
163
|
+
<div class="doctor-action-head">
|
|
164
|
+
<div class="doctor-action-title">{{ issue.problem || (issue.problemKey ? t(issue.problemKey, issue.problemParams) : '') }}</div>
|
|
165
|
+
<div :class="['doctor-action-severity', issue.severity]">{{ issue.severityLabel || issue.severity }}</div>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="doctor-action-impact">{{ issue.impact || (issue.impactKey ? t(issue.impactKey, issue.impactParams) : '') }}</div>
|
|
168
|
+
<div v-if="issue.actions && issue.actions.length" class="doctor-action-buttons">
|
|
169
|
+
<template v-for="(action, index) in issue.actions" :key="issue.id + '-action-' + index">
|
|
170
|
+
<button
|
|
171
|
+
v-if="action.type === 'navigate'"
|
|
172
|
+
type="button"
|
|
173
|
+
class="btn-tool btn-tool-compact"
|
|
174
|
+
@click="switchMainTab(action.target)">
|
|
175
|
+
{{ action.label || (action.labelKey ? t(action.labelKey, action.labelParams) : t('dashboard.doctor.open')) }}
|
|
176
|
+
</button>
|
|
177
|
+
<button
|
|
178
|
+
v-else-if="action.type === 'run-check'"
|
|
179
|
+
type="button"
|
|
180
|
+
class="btn-tool btn-tool-compact"
|
|
181
|
+
@click="runHealthCheck({ doctor: true, forceRefresh: true })"
|
|
182
|
+
:disabled="healthCheckLoading">
|
|
183
|
+
{{ t('dashboard.doctor.runChecks') }}
|
|
184
|
+
</button>
|
|
185
|
+
<button
|
|
186
|
+
v-else-if="action.type === 'export'"
|
|
187
|
+
type="button"
|
|
188
|
+
class="btn-tool btn-tool-compact"
|
|
189
|
+
@click="healthCheckResult && healthCheckResult.report
|
|
190
|
+
? (action.format === 'md'
|
|
191
|
+
? downloadTextFile('codexmate-doctor.md', String(healthCheckResult.markdown || ''), 'text/markdown;charset=utf-8')
|
|
192
|
+
: downloadTextFile('codexmate-doctor.json', JSON.stringify(healthCheckResult.report, null, 2), 'application/json;charset=utf-8'))
|
|
193
|
+
: null">
|
|
194
|
+
{{ action.format === 'md' ? t('dashboard.doctor.export.md') : t('dashboard.doctor.export.json') }}
|
|
195
|
+
</button>
|
|
196
|
+
</template>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
<div class="doctor-action-footer">
|
|
200
|
+
<button
|
|
201
|
+
type="button"
|
|
202
|
+
class="btn-tool btn-tool-compact"
|
|
203
|
+
@click="healthCheckResult && healthCheckResult.report
|
|
204
|
+
? downloadTextFile('codexmate-doctor.json', JSON.stringify(healthCheckResult.report, null, 2), 'application/json;charset=utf-8')
|
|
205
|
+
: null">
|
|
206
|
+
{{ t('dashboard.doctor.export.json') }}
|
|
207
|
+
</button>
|
|
208
|
+
<button
|
|
209
|
+
type="button"
|
|
210
|
+
class="btn-tool btn-tool-compact"
|
|
211
|
+
@click="healthCheckResult && healthCheckResult.report
|
|
212
|
+
? downloadTextFile('codexmate-doctor.md', String(healthCheckResult.markdown || ''), 'text/markdown;charset=utf-8')
|
|
213
|
+
: null">
|
|
214
|
+
{{ t('dashboard.doctor.export.md') }}
|
|
215
|
+
</button>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|