codexmate 0.0.29 → 0.0.31
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 +363 -421
- package/README.zh.md +371 -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 +69 -65
- package/cli/session-convert-io.js +82 -82
- package/cli/session-convert.js +150 -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 +15778 -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 +646 -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 +841 -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 +591 -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 +3174 -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 +357 -323
- package/web-ui/partials/index/panel-config-codex.html.bak +337 -0
- 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 +302 -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 +591 -576
- package/web-ui/source-bundle.cjs +233 -233
- package/web-ui/styles/base-theme.css +281 -281
- package/web-ui/styles/bridge-pool.css +197 -0
- 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 +348 -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 +24 -23
- package/web-ui.html +17 -17
|
@@ -1,225 +1,248 @@
|
|
|
1
|
-
import { getProviderDisplayUrl, checkIsTransformProvider } from './provider-url-display.mjs';
|
|
2
|
-
import { getCodexModelCatalogForProvider, CODEX_PROVIDER_TEMPLATES } from '../logic.codex.mjs';
|
|
3
|
-
export function createDashboardComputed() {
|
|
4
|
-
return {
|
|
5
|
-
agentsDiffHasChanges() {
|
|
6
|
-
if (this.agentsDiffTruncated) {
|
|
7
|
-
return !!this.agentsDiffHasChangesValue;
|
|
8
|
-
}
|
|
9
|
-
const stats = this.agentsDiffStats || {};
|
|
10
|
-
const added = Number(stats.added || 0);
|
|
11
|
-
const removed = Number(stats.removed || 0);
|
|
12
|
-
return added > 0 || removed > 0;
|
|
13
|
-
},
|
|
14
|
-
configTemplateDiffHasChanges() {
|
|
15
|
-
const stats = this.configTemplateDiffStats || {};
|
|
16
|
-
const added = Number(stats.added || 0);
|
|
17
|
-
const removed = Number(stats.removed || 0);
|
|
18
|
-
if (this.configTemplateDiffHasChangesValue !== undefined && this.configTemplateDiffHasChangesValue !== null) {
|
|
19
|
-
return !!this.configTemplateDiffHasChangesValue;
|
|
20
|
-
}
|
|
21
|
-
return added > 0 || removed > 0;
|
|
22
|
-
},
|
|
23
|
-
claudeModelHasList() {
|
|
24
|
-
return this.claudeModelOptions.length > 0;
|
|
25
|
-
},
|
|
26
|
-
claudeModelOptions() {
|
|
27
|
-
const list = Array.isArray(this.claudeModels) ? [...this.claudeModels] : [];
|
|
28
|
-
const current = (this.currentClaudeModel || '').trim();
|
|
29
|
-
if (current && !list.includes(current)) {
|
|
30
|
-
list.unshift(current);
|
|
31
|
-
}
|
|
32
|
-
return list;
|
|
33
|
-
},
|
|
34
|
-
activeProviderModel() {
|
|
35
|
-
return (name) => {
|
|
36
|
-
const target = String(name || '').trim();
|
|
37
|
-
if (!target) return '';
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
seen.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
if (
|
|
187
|
-
|
|
188
|
-
return
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (this.
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
return
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
1
|
+
import { getProviderDisplayUrl, checkIsTransformProvider } from './provider-url-display.mjs';
|
|
2
|
+
import { getCodexModelCatalogForProvider, CODEX_PROVIDER_TEMPLATES } from '../logic.codex.mjs';
|
|
3
|
+
export function createDashboardComputed() {
|
|
4
|
+
return {
|
|
5
|
+
agentsDiffHasChanges() {
|
|
6
|
+
if (this.agentsDiffTruncated) {
|
|
7
|
+
return !!this.agentsDiffHasChangesValue;
|
|
8
|
+
}
|
|
9
|
+
const stats = this.agentsDiffStats || {};
|
|
10
|
+
const added = Number(stats.added || 0);
|
|
11
|
+
const removed = Number(stats.removed || 0);
|
|
12
|
+
return added > 0 || removed > 0;
|
|
13
|
+
},
|
|
14
|
+
configTemplateDiffHasChanges() {
|
|
15
|
+
const stats = this.configTemplateDiffStats || {};
|
|
16
|
+
const added = Number(stats.added || 0);
|
|
17
|
+
const removed = Number(stats.removed || 0);
|
|
18
|
+
if (this.configTemplateDiffHasChangesValue !== undefined && this.configTemplateDiffHasChangesValue !== null) {
|
|
19
|
+
return !!this.configTemplateDiffHasChangesValue;
|
|
20
|
+
}
|
|
21
|
+
return added > 0 || removed > 0;
|
|
22
|
+
},
|
|
23
|
+
claudeModelHasList() {
|
|
24
|
+
return this.claudeModelOptions.length > 0;
|
|
25
|
+
},
|
|
26
|
+
claudeModelOptions() {
|
|
27
|
+
const list = Array.isArray(this.claudeModels) ? [...this.claudeModels] : [];
|
|
28
|
+
const current = (this.currentClaudeModel || '').trim();
|
|
29
|
+
if (current && !list.includes(current)) {
|
|
30
|
+
list.unshift(current);
|
|
31
|
+
}
|
|
32
|
+
return list;
|
|
33
|
+
},
|
|
34
|
+
activeProviderModel() {
|
|
35
|
+
return (name) => {
|
|
36
|
+
const target = String(name || '').trim();
|
|
37
|
+
if (!target) return '';
|
|
38
|
+
if (target === 'local') return '';
|
|
39
|
+
const dict = this.currentModels && typeof this.currentModels === 'object' ? this.currentModels : {};
|
|
40
|
+
const fromDict = typeof dict[target] === 'string' ? dict[target].trim() : '';
|
|
41
|
+
if (fromDict) return fromDict;
|
|
42
|
+
const activeName = String(this.currentProvider || '').trim();
|
|
43
|
+
if (target === activeName) {
|
|
44
|
+
const top = typeof this.currentModel === 'string' ? this.currentModel.trim() : '';
|
|
45
|
+
if (top && top !== '未设置') return top;
|
|
46
|
+
}
|
|
47
|
+
return '';
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
codexModelOptions() {
|
|
51
|
+
const seen = new Set();
|
|
52
|
+
const out = [];
|
|
53
|
+
const push = (val) => {
|
|
54
|
+
const s = typeof val === 'string' ? val.trim() : '';
|
|
55
|
+
if (!s || seen.has(s)) return;
|
|
56
|
+
seen.add(s);
|
|
57
|
+
out.push(s);
|
|
58
|
+
};
|
|
59
|
+
const activeName = String(this.displayCurrentProvider || '').trim();
|
|
60
|
+
const current = typeof this.currentModel === 'string' ? this.currentModel.trim() : '';
|
|
61
|
+
if (current && current !== '未设置') push(current);
|
|
62
|
+
const dict = this.currentModels && typeof this.currentModels === 'object' ? this.currentModels : {};
|
|
63
|
+
if (activeName && typeof dict[activeName] === 'string') push(dict[activeName]);
|
|
64
|
+
const remote = Array.isArray(this.models) ? this.models : [];
|
|
65
|
+
for (const m of remote) push(m);
|
|
66
|
+
const list = Array.isArray(this.providersList) ? this.providersList : [];
|
|
67
|
+
const activeProvider = list.find((p) => p && p.name === activeName);
|
|
68
|
+
if (activeProvider) {
|
|
69
|
+
for (const m of getCodexModelCatalogForProvider(activeProvider)) push(m);
|
|
70
|
+
}
|
|
71
|
+
return out;
|
|
72
|
+
},
|
|
73
|
+
codexModelHasList() {
|
|
74
|
+
return this.codexModelOptions.length > 0;
|
|
75
|
+
},
|
|
76
|
+
codexProviderTemplates() {
|
|
77
|
+
return CODEX_PROVIDER_TEMPLATES;
|
|
78
|
+
},
|
|
79
|
+
displayCurrentProvider() {
|
|
80
|
+
const switching = String(this.providerSwitchDisplayTarget || '').trim();
|
|
81
|
+
if (switching) return switching;
|
|
82
|
+
const current = String(this.currentProvider || '').trim();
|
|
83
|
+
return current;
|
|
84
|
+
},
|
|
85
|
+
displayProvidersList() {
|
|
86
|
+
const list = Array.isArray(this.providersList) ? [...this.providersList] : [];
|
|
87
|
+
list.sort((a, b) => {
|
|
88
|
+
if (a.name === 'local') return -1;
|
|
89
|
+
if (b.name === 'local') return 1;
|
|
90
|
+
return 0;
|
|
91
|
+
});
|
|
92
|
+
return list;
|
|
93
|
+
},
|
|
94
|
+
|
|
95
|
+
displayProviderUrl() {
|
|
96
|
+
return (provider) => {
|
|
97
|
+
if (provider && provider.name === 'local') return '';
|
|
98
|
+
return getProviderDisplayUrl(provider);
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
isTransformProvider() {
|
|
103
|
+
return (provider) => checkIsTransformProvider(provider);
|
|
104
|
+
},
|
|
105
|
+
installTargetCards() {
|
|
106
|
+
const targets = Array.isArray(this.installStatusTargets) && this.installStatusTargets.length
|
|
107
|
+
? this.installStatusTargets
|
|
108
|
+
: [
|
|
109
|
+
{
|
|
110
|
+
id: 'claude',
|
|
111
|
+
name: 'Claude Code CLI',
|
|
112
|
+
packageName: '@anthropic-ai/claude-code',
|
|
113
|
+
installed: false,
|
|
114
|
+
bin: 'claude',
|
|
115
|
+
version: '',
|
|
116
|
+
commandPath: '',
|
|
117
|
+
error: ''
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 'codebuddy',
|
|
121
|
+
name: 'CodeBuddy Code',
|
|
122
|
+
packageName: '@tencent-ai/codebuddy-code',
|
|
123
|
+
installed: false,
|
|
124
|
+
bin: 'codebuddy',
|
|
125
|
+
version: '',
|
|
126
|
+
commandPath: '',
|
|
127
|
+
error: ''
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 'gemini',
|
|
131
|
+
name: 'Gemini CLI',
|
|
132
|
+
packageName: '@google/gemini-cli',
|
|
133
|
+
installed: false,
|
|
134
|
+
bin: 'gemini',
|
|
135
|
+
version: '',
|
|
136
|
+
commandPath: '',
|
|
137
|
+
error: ''
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
id: 'codex',
|
|
141
|
+
name: 'Codex CLI',
|
|
142
|
+
packageName: '@openai/codex',
|
|
143
|
+
installed: false,
|
|
144
|
+
bin: 'codex',
|
|
145
|
+
version: '',
|
|
146
|
+
commandPath: '',
|
|
147
|
+
error: ''
|
|
148
|
+
}
|
|
149
|
+
];
|
|
150
|
+
const action = this.normalizeInstallAction(this.installCommandAction);
|
|
151
|
+
return targets.map((target) => {
|
|
152
|
+
const id = target && typeof target.id === 'string' ? target.id : '';
|
|
153
|
+
const termuxCommand = id === 'codex'
|
|
154
|
+
? this.getInstallCommand(id, action, 'termux')
|
|
155
|
+
: '';
|
|
156
|
+
return {
|
|
157
|
+
...target,
|
|
158
|
+
command: this.getInstallCommand(id, action),
|
|
159
|
+
termuxCommand
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
},
|
|
163
|
+
installRegistryPreview() {
|
|
164
|
+
return this.resolveInstallRegistryUrl(this.installRegistryPreset, this.installRegistryCustom);
|
|
165
|
+
},
|
|
166
|
+
inspectorBusyStatus() {
|
|
167
|
+
const tasks = [];
|
|
168
|
+
if (this.loading) tasks.push(this.t('dashboard.busy.init'));
|
|
169
|
+
if (this.sessionsLoading) tasks.push(this.t('dashboard.busy.sessions'));
|
|
170
|
+
if (this.codexModelsLoading || this.claudeModelsLoading) tasks.push(this.t('dashboard.busy.models'));
|
|
171
|
+
if (this.codexApplying || this.configTemplateApplying || this.openclawApplying) tasks.push(this.t('dashboard.busy.configApply'));
|
|
172
|
+
if (this.agentsSaving) tasks.push(this.t('dashboard.busy.agents'));
|
|
173
|
+
if (this.skillsLoading || this.skillsDeleting || this.skillsScanningImports || this.skillsImporting || this.skillsZipImporting || this.skillsExporting) tasks.push(this.t('dashboard.busy.skills'));
|
|
174
|
+
if (this.taskOrchestration && (this.taskOrchestration.loading || this.taskOrchestration.planning || this.taskOrchestration.running || this.taskOrchestration.queueAdding || this.taskOrchestration.queueStarting || this.taskOrchestration.retrying || this.taskOrchestration.selectedRunLoading)) {
|
|
175
|
+
tasks.push(this.t('dashboard.busy.tasks'));
|
|
176
|
+
}
|
|
177
|
+
return tasks.length ? tasks.join(' / ') : this.t('dashboard.busy.idle');
|
|
178
|
+
},
|
|
179
|
+
inspectorMessageSummary() {
|
|
180
|
+
const value = typeof this.message === 'string' ? this.message.trim() : '';
|
|
181
|
+
return value || this.t('dashboard.message.none');
|
|
182
|
+
},
|
|
183
|
+
inspectorSessionSourceLabel() {
|
|
184
|
+
if (this.sessionFilterSource === 'codex') return this.t('dashboard.sessionSource.codex');
|
|
185
|
+
if (this.sessionFilterSource === 'claude') return this.t('dashboard.sessionSource.claude');
|
|
186
|
+
if (this.sessionFilterSource === 'gemini') return this.t('dashboard.sessionSource.gemini');
|
|
187
|
+
if (this.sessionFilterSource === 'codebuddy') return this.t('dashboard.sessionSource.codebuddy');
|
|
188
|
+
return this.t('dashboard.sessionSource.all');
|
|
189
|
+
},
|
|
190
|
+
inspectorSessionPathLabel() {
|
|
191
|
+
const value = typeof this.sessionPathFilter === 'string' ? this.sessionPathFilter.trim() : '';
|
|
192
|
+
return value || this.t('dashboard.sessionPath.all');
|
|
193
|
+
},
|
|
194
|
+
inspectorSessionQueryLabel() {
|
|
195
|
+
if (!this.isSessionQueryEnabled) return this.t('dashboard.sessionQuery.unsupported');
|
|
196
|
+
const value = typeof this.sessionQuery === 'string' ? this.sessionQuery.trim() : '';
|
|
197
|
+
return value || this.t('dashboard.sessionQuery.unset');
|
|
198
|
+
},
|
|
199
|
+
inspectorHealthStatus() {
|
|
200
|
+
if (this.initError) return this.t('dashboard.healthStatus.failRead');
|
|
201
|
+
if (this.loading) return this.t('dashboard.healthStatus.initializing');
|
|
202
|
+
return this.t('dashboard.healthStatus.ok');
|
|
203
|
+
},
|
|
204
|
+
inspectorHealthTone() {
|
|
205
|
+
if (this.initError) return 'error';
|
|
206
|
+
if (this.loading) return 'warn';
|
|
207
|
+
return 'ok';
|
|
208
|
+
},
|
|
209
|
+
inspectorModelLoadStatus() {
|
|
210
|
+
if (this.codexModelsLoading || this.claudeModelsLoading) {
|
|
211
|
+
return this.t('dashboard.modelStatus.loading');
|
|
212
|
+
}
|
|
213
|
+
if (this.modelsSource === 'error' || this.claudeModelsSource === 'error') {
|
|
214
|
+
return this.t('dashboard.modelStatus.error');
|
|
215
|
+
}
|
|
216
|
+
return this.t('dashboard.modelStatus.ok');
|
|
217
|
+
},
|
|
218
|
+
installTroubleshootingTips() {
|
|
219
|
+
const platform = this.resolveInstallPlatform();
|
|
220
|
+
if (platform === 'win32') {
|
|
221
|
+
return [
|
|
222
|
+
this.t('docs.tip.win.1'),
|
|
223
|
+
this.t('docs.tip.win.2'),
|
|
224
|
+
this.t('docs.tip.win.3')
|
|
225
|
+
];
|
|
226
|
+
}
|
|
227
|
+
return [
|
|
228
|
+
this.t('docs.tip.unix.1'),
|
|
229
|
+
this.t('docs.tip.unix.2'),
|
|
230
|
+
this.t('docs.tip.unix.3')
|
|
231
|
+
];
|
|
232
|
+
},
|
|
233
|
+
providersHealthSummary() {
|
|
234
|
+
if (!this.providersHealthResult || !this.providersHealthResult.summary) {
|
|
235
|
+
return { total: 0, green: 0, yellow: 0, red: 0 };
|
|
236
|
+
}
|
|
237
|
+
return this.providersHealthResult.summary;
|
|
238
|
+
},
|
|
239
|
+
providersHealthTone() {
|
|
240
|
+
if (!this.providersHealthResult) return '';
|
|
241
|
+
const s = this.providersHealthResult.summary;
|
|
242
|
+
if (!s) return '';
|
|
243
|
+
if (s.red > 0) return 'error';
|
|
244
|
+
if (s.yellow > 0) return 'warn';
|
|
245
|
+
return 'ok';
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { createDashboardComputed } from './app.computed.dashboard.mjs';
|
|
2
|
-
import { createMainTabsComputed } from './app.computed.main-tabs.mjs';
|
|
3
|
-
import { createSessionComputed } from './app.computed.session.mjs';
|
|
4
|
-
import { createConfigModeComputed } from './config-mode.computed.mjs';
|
|
5
|
-
import { createSkillsComputed } from './skills.computed.mjs';
|
|
6
|
-
import { createPluginsComputed } from './plugins.computed.mjs';
|
|
7
|
-
|
|
8
|
-
export function createAppComputed() {
|
|
9
|
-
return {
|
|
10
|
-
...createSessionComputed(),
|
|
11
|
-
...createDashboardComputed(),
|
|
12
|
-
...createMainTabsComputed(),
|
|
13
|
-
...createSkillsComputed(),
|
|
14
|
-
...createPluginsComputed(),
|
|
15
|
-
...createConfigModeComputed()
|
|
16
|
-
};
|
|
17
|
-
}
|
|
1
|
+
import { createDashboardComputed } from './app.computed.dashboard.mjs';
|
|
2
|
+
import { createMainTabsComputed } from './app.computed.main-tabs.mjs';
|
|
3
|
+
import { createSessionComputed } from './app.computed.session.mjs';
|
|
4
|
+
import { createConfigModeComputed } from './config-mode.computed.mjs';
|
|
5
|
+
import { createSkillsComputed } from './skills.computed.mjs';
|
|
6
|
+
import { createPluginsComputed } from './plugins.computed.mjs';
|
|
7
|
+
|
|
8
|
+
export function createAppComputed() {
|
|
9
|
+
return {
|
|
10
|
+
...createSessionComputed(),
|
|
11
|
+
...createDashboardComputed(),
|
|
12
|
+
...createMainTabsComputed(),
|
|
13
|
+
...createSkillsComputed(),
|
|
14
|
+
...createPluginsComputed(),
|
|
15
|
+
...createConfigModeComputed()
|
|
16
|
+
};
|
|
17
|
+
}
|