codexmate 0.1.28 → 0.1.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 +53 -44
- package/README.vi.md +45 -36
- package/README.zh.md +51 -42
- package/cli/session-usage.js +2 -2
- package/cli/skills.js +33 -8
- package/cli.js +379 -19
- package/package.json +6 -1
- package/web-ui/app.js +12 -1
- package/web-ui/index.html +3 -2
- package/web-ui/logic.sessions.mjs +30 -4
- package/web-ui/modules/app.computed.dashboard.mjs +1 -1
- package/web-ui/modules/app.computed.session.mjs +52 -33
- package/web-ui/modules/app.methods.agents.mjs +36 -0
- package/web-ui/modules/app.methods.codex-config.mjs +3 -1
- package/web-ui/modules/app.methods.providers.mjs +12 -4
- package/web-ui/modules/app.methods.session-actions.mjs +10 -8
- package/web-ui/modules/app.methods.session-browser.mjs +8 -2
- package/web-ui/modules/app.methods.session-trash.mjs +16 -16
- package/web-ui/modules/app.methods.system-prompt.mjs +1 -8
- package/web-ui/modules/app.methods.theme.mjs +5 -4
- package/web-ui/modules/i18n/locales/en.mjs +80 -1
- package/web-ui/modules/i18n/locales/ja.mjs +80 -1
- package/web-ui/modules/i18n/locales/vi.mjs +80 -1
- package/web-ui/modules/i18n/locales/zh-tw.mjs +80 -1
- package/web-ui/modules/i18n/locales/zh.mjs +80 -1
- package/web-ui/modules/i18n.mjs +23 -0
- package/web-ui/modules/skills.computed.mjs +11 -0
- package/web-ui/modules/skills.methods.mjs +58 -8
- package/web-ui/partials/index/layout-footer.html +1 -1
- package/web-ui/partials/index/layout-header.html +32 -12
- package/web-ui/partials/index/modal-config-template-agents.html +1 -1
- package/web-ui/partials/index/modal-health-check.html +1 -1
- package/web-ui/partials/index/modal-openclaw-config.html +50 -50
- package/web-ui/partials/index/panel-dashboard.html +1 -1
- package/web-ui/partials/index/panel-market.html +23 -5
- package/web-ui/partials/index/panel-prompts.html +2 -2
- package/web-ui/partials/index/panel-sessions.html +52 -42
- package/web-ui/partials/index/panel-settings.html +6 -0
- package/web-ui/partials/index/panel-trash.html +3 -0
- package/web-ui/res/web-ui-render.precompiled.js +567 -439
- package/web-ui/session-helpers.mjs +3 -0
- package/web-ui/styles/base-theme.css +2 -2
- package/web-ui/styles/bridge-pool.css +1 -1
- package/web-ui/styles/feedback.css +26 -0
- package/web-ui/styles/layout-shell.css +66 -3
- package/web-ui/styles/navigation-panels.css +4 -10
- package/web-ui/styles/sessions-list.css +19 -1
- package/web-ui/styles/sessions-preview.css +88 -1
- package/web-ui/styles/sessions-toolbar-trash.css +2 -2
- package/web-ui/styles/settings-panel.css +1 -1
- package/web-ui/styles/skills-market.css +47 -0
- package/web-ui/styles/theme-dark-tokens.css +2 -2
- package/web-ui/styles/theme-dark.css +2 -2
- package/web-ui/styles/theme-ocean-tokens.css +88 -0
- package/web-ui/styles/theme-ocean.css +920 -0
- package/web-ui/styles/titles-cards.css +1 -1
- package/web-ui/styles/trash-panel.css +43 -6
- package/web-ui/styles.css +1 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div class="form-hint">
|
|
13
13
|
{{ openclawConfigPath || t('common.notLoaded') }}
|
|
14
14
|
<span v-if="openclawConfigPath">
|
|
15
|
-
|
|
15
|
+
{{ paren(openclawConfigExists ? t('common.exists') : t('common.notExistsWillCreateOnApply')) }}
|
|
16
16
|
</span>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="btn-group" style="justify-content:flex-start;">
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<div class="accordion-content" v-show="openclawAccordionStep === 1">
|
|
53
53
|
<div class="form-group">
|
|
54
54
|
<label class="form-label">{{ t('field.providerName') }}</label>
|
|
55
|
-
<input v-model="openclawQuick.providerName" class="form-input" placeholder="
|
|
55
|
+
<input v-model="openclawQuick.providerName" class="form-input" :placeholder="t('modal.openclaw.quick.providerNamePlaceholder')" @input="validateProviderName">
|
|
56
56
|
<div class="form-hint" :class="{ 'hint-error': !openclawValidation.providerName.valid }">
|
|
57
57
|
{{ openclawValidation.providerName.message || t('modal.openclaw.quick.providerHint') }}
|
|
58
58
|
</div>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</div>
|
|
88
88
|
<div class="accordion-actions">
|
|
89
89
|
<button class="btn btn-confirm btn-sm" @click="nextAccordionStep" :disabled="!openclawQuick.providerName">
|
|
90
|
-
|
|
90
|
+
{{ t('modal.openclaw.next') }}
|
|
91
91
|
</button>
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
@@ -111,13 +111,13 @@
|
|
|
111
111
|
<label class="form-label">{{ t('field.modelId') }}</label>
|
|
112
112
|
<input v-model="openclawQuick.modelId" class="form-input" :placeholder="t('placeholder.modelIdExample')" @input="validateModelId">
|
|
113
113
|
<div class="form-hint" :class="{ 'hint-error': !openclawValidation.modelId.valid }">
|
|
114
|
-
{{ openclawValidation.modelId.message || '
|
|
114
|
+
{{ openclawValidation.modelId.message || t('modal.openclaw.quick.modelIdHint') }}
|
|
115
115
|
</div>
|
|
116
116
|
</div>
|
|
117
117
|
<div class="form-group">
|
|
118
118
|
<label class="form-label">{{ t('field.displayName') }}</label>
|
|
119
119
|
<input v-model="openclawQuick.modelName" class="form-input" :placeholder="t('placeholder.modelNameOptional')">
|
|
120
|
-
<div class="form-hint"
|
|
120
|
+
<div class="form-hint">{{ t('modal.openclaw.quick.modelNameHint') }}</div>
|
|
121
121
|
</div>
|
|
122
122
|
<div class="form-group">
|
|
123
123
|
<label class="form-label">{{ t('field.contextAndMaxOutput') }}</label>
|
|
@@ -129,10 +129,10 @@
|
|
|
129
129
|
</div>
|
|
130
130
|
<div class="accordion-actions">
|
|
131
131
|
<button class="btn btn-cancel btn-sm" @click="prevAccordionStep">
|
|
132
|
-
|
|
132
|
+
{{ t('modal.openclaw.prev') }}
|
|
133
133
|
</button>
|
|
134
134
|
<button class="btn btn-confirm btn-sm" @click="nextAccordionStep" :disabled="!openclawQuick.modelId">
|
|
135
|
-
|
|
135
|
+
{{ t('modal.openclaw.next') }}
|
|
136
136
|
</button>
|
|
137
137
|
</div>
|
|
138
138
|
</div>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<template v-else>3</template>
|
|
147
147
|
</span>
|
|
148
148
|
<span class="accordion-title">{{ t('modal.openclaw.quick.optionsTitle') }}</span>
|
|
149
|
-
<span class="accordion-status"
|
|
149
|
+
<span class="accordion-status">{{ t('modal.openclaw.quick.advancedOptions') }}</span>
|
|
150
150
|
<svg class="accordion-chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
151
151
|
<path d="M6 9l6 6 6-6"/>
|
|
152
152
|
</svg>
|
|
@@ -167,10 +167,10 @@
|
|
|
167
167
|
<div class="form-hint">{{ t('modal.openclaw.quick.optionsHint') }}</div>
|
|
168
168
|
<div class="accordion-actions">
|
|
169
169
|
<button class="btn btn-cancel btn-sm" @click="prevAccordionStep">
|
|
170
|
-
|
|
170
|
+
{{ t('modal.openclaw.prev') }}
|
|
171
171
|
</button>
|
|
172
172
|
<button class="btn btn-confirm btn-sm" @click="finishAccordionStep">
|
|
173
|
-
|
|
173
|
+
{{ t('modal.openclaw.finish') }}
|
|
174
174
|
</button>
|
|
175
175
|
</div>
|
|
176
176
|
</div>
|
|
@@ -184,55 +184,55 @@
|
|
|
184
184
|
|
|
185
185
|
<div class="structured-section">
|
|
186
186
|
<div class="structured-header">
|
|
187
|
-
<span class="structured-title"
|
|
187
|
+
<span class="structured-title">{{ t('modal.openclaw.structured.title') }}</span>
|
|
188
188
|
<span class="form-hint">{{ t('modal.openclaw.structured.writeHint') }}</span>
|
|
189
189
|
</div>
|
|
190
190
|
<div class="structured-grid">
|
|
191
191
|
<div class="structured-card">
|
|
192
192
|
<div class="structured-card-title">Agents Defaults</div>
|
|
193
193
|
<div class="form-group">
|
|
194
|
-
<label class="form-label"
|
|
195
|
-
<input v-model="openclawStructured.agentPrimary" class="form-input" placeholder="
|
|
194
|
+
<label class="form-label">{{ t('modal.openclaw.structured.primaryModel') }}</label>
|
|
195
|
+
<input v-model="openclawStructured.agentPrimary" class="form-input" :placeholder="t('modal.openclaw.structured.providerModelPlaceholder')">
|
|
196
196
|
</div>
|
|
197
197
|
<div class="form-group">
|
|
198
|
-
<label class="form-label"
|
|
198
|
+
<label class="form-label">{{ t('modal.openclaw.structured.fallbackModels') }}</label>
|
|
199
199
|
<div class="list-row" v-for="(item, index) in openclawStructured.agentFallbacks" :key="'fallback-' + index">
|
|
200
|
-
<input v-model="openclawStructured.agentFallbacks[index]" class="form-input" placeholder="
|
|
201
|
-
<button class="btn-mini delete" @click="removeOpenclawFallback(index)"
|
|
200
|
+
<input v-model="openclawStructured.agentFallbacks[index]" class="form-input" :placeholder="t('modal.openclaw.structured.providerModelPlaceholder')">
|
|
201
|
+
<button class="btn-mini delete" @click="removeOpenclawFallback(index)">{{ t('common.delete') }}</button>
|
|
202
202
|
</div>
|
|
203
|
-
<button class="btn-mini" @click="addOpenclawFallback"
|
|
203
|
+
<button class="btn-mini" @click="addOpenclawFallback">{{ t('modal.openclaw.structured.addFallback') }}</button>
|
|
204
204
|
</div>
|
|
205
205
|
<div class="form-group">
|
|
206
206
|
<label class="form-label">Workspace</label>
|
|
207
|
-
<input v-model="openclawStructured.workspace" class="form-input" placeholder="
|
|
207
|
+
<input v-model="openclawStructured.workspace" class="form-input" :placeholder="t('modal.openclaw.structured.workspacePlaceholder')">
|
|
208
208
|
</div>
|
|
209
209
|
<div class="form-group">
|
|
210
210
|
<label class="form-label">Timeout(s)</label>
|
|
211
|
-
<input v-model="openclawStructured.timeout" class="form-input" placeholder="
|
|
211
|
+
<input v-model="openclawStructured.timeout" class="form-input" :placeholder="t('modal.openclaw.structured.timeoutPlaceholder')">
|
|
212
212
|
</div>
|
|
213
213
|
<div class="form-group">
|
|
214
214
|
<label class="form-label">Context Tokens</label>
|
|
215
|
-
<input v-model="openclawStructured.contextTokens" class="form-input" placeholder="
|
|
215
|
+
<input v-model="openclawStructured.contextTokens" class="form-input" :placeholder="t('modal.openclaw.structured.contextTokensPlaceholder')">
|
|
216
216
|
</div>
|
|
217
217
|
<div class="form-group">
|
|
218
218
|
<label class="form-label">Max Concurrent</label>
|
|
219
|
-
<input v-model="openclawStructured.maxConcurrent" class="form-input" placeholder="
|
|
219
|
+
<input v-model="openclawStructured.maxConcurrent" class="form-input" :placeholder="t('modal.openclaw.structured.maxConcurrentPlaceholder')">
|
|
220
220
|
</div>
|
|
221
221
|
</div>
|
|
222
222
|
|
|
223
223
|
<div class="structured-card">
|
|
224
224
|
<div class="structured-card-title">Env</div>
|
|
225
225
|
<div class="form-group">
|
|
226
|
-
<label class="form-label"
|
|
226
|
+
<label class="form-label">{{ t('modal.openclaw.structured.envVars') }}</label>
|
|
227
227
|
<div class="list-row" v-for="(item, index) in openclawStructured.envItems" :key="'env-' + index">
|
|
228
228
|
<input v-model="item.key" class="form-input" placeholder="KEY">
|
|
229
229
|
<input v-model="item.value" class="form-input" :type="item.show ? 'text' : 'password'" placeholder="VALUE">
|
|
230
230
|
<button class="btn-mini" @click="toggleOpenclawEnvItem(index)">
|
|
231
|
-
{{ item.show ? '
|
|
231
|
+
{{ item.show ? t('common.hide') : t('common.show') }}
|
|
232
232
|
</button>
|
|
233
|
-
<button class="btn-mini delete" @click="removeOpenclawEnvItem(index)"
|
|
233
|
+
<button class="btn-mini delete" @click="removeOpenclawEnvItem(index)">{{ t('common.delete') }}</button>
|
|
234
234
|
</div>
|
|
235
|
-
<button class="btn-mini" @click="addOpenclawEnvItem"
|
|
235
|
+
<button class="btn-mini" @click="addOpenclawEnvItem">{{ t('modal.openclaw.structured.addEnvVar') }}</button>
|
|
236
236
|
</div>
|
|
237
237
|
</div>
|
|
238
238
|
|
|
@@ -250,34 +250,34 @@
|
|
|
250
250
|
<div class="form-group">
|
|
251
251
|
<label class="form-label">Allow</label>
|
|
252
252
|
<div class="list-row" v-for="(item, index) in openclawStructured.toolsAllow" :key="'allow-' + index">
|
|
253
|
-
<input v-model="openclawStructured.toolsAllow[index]" class="form-input" placeholder="
|
|
254
|
-
<button class="btn-mini delete" @click="removeOpenclawToolsAllow(index)"
|
|
253
|
+
<input v-model="openclawStructured.toolsAllow[index]" class="form-input" :placeholder="t('modal.openclaw.structured.allowPlaceholder')">
|
|
254
|
+
<button class="btn-mini delete" @click="removeOpenclawToolsAllow(index)">{{ t('common.delete') }}</button>
|
|
255
255
|
</div>
|
|
256
|
-
<button class="btn-mini" @click="addOpenclawToolsAllow"
|
|
256
|
+
<button class="btn-mini" @click="addOpenclawToolsAllow">{{ t('modal.openclaw.structured.addAllow') }}</button>
|
|
257
257
|
</div>
|
|
258
258
|
<div class="form-group">
|
|
259
259
|
<label class="form-label">Deny</label>
|
|
260
260
|
<div class="list-row" v-for="(item, index) in openclawStructured.toolsDeny" :key="'deny-' + index">
|
|
261
|
-
<input v-model="openclawStructured.toolsDeny[index]" class="form-input" placeholder="
|
|
262
|
-
<button class="btn-mini delete" @click="removeOpenclawToolsDeny(index)"
|
|
261
|
+
<input v-model="openclawStructured.toolsDeny[index]" class="form-input" :placeholder="t('modal.openclaw.structured.denyPlaceholder')">
|
|
262
|
+
<button class="btn-mini delete" @click="removeOpenclawToolsDeny(index)">{{ t('common.delete') }}</button>
|
|
263
263
|
</div>
|
|
264
|
-
<button class="btn-mini" @click="addOpenclawToolsDeny"
|
|
264
|
+
<button class="btn-mini" @click="addOpenclawToolsDeny">{{ t('modal.openclaw.structured.addDeny') }}</button>
|
|
265
265
|
</div>
|
|
266
266
|
</div>
|
|
267
267
|
|
|
268
268
|
<div class="structured-card">
|
|
269
|
-
<div class="structured-card-title">
|
|
269
|
+
<div class="structured-card-title">{{ t('modal.openclaw.structured.providersTitle') }}</div>
|
|
270
270
|
<div v-if="openclawProviders.length === 0" class="form-hint">
|
|
271
|
-
|
|
271
|
+
{{ t('modal.openclaw.structured.noProviders') }}
|
|
272
272
|
</div>
|
|
273
273
|
<div v-else class="provider-list">
|
|
274
274
|
<div class="provider-item" v-for="(provider, index) in openclawProviders" :key="provider.key + '-' + provider.source + '-' + index">
|
|
275
275
|
<div class="provider-header">
|
|
276
276
|
<span class="provider-name">{{ provider.key }}</span>
|
|
277
|
-
<span class="provider-source"
|
|
278
|
-
<span v-if="provider.isActive" class="pill configured"
|
|
277
|
+
<span class="provider-source">{{ t('modal.openclaw.structured.sourceLabel') }}: {{ provider.source }}</span>
|
|
278
|
+
<span v-if="provider.isActive" class="pill configured">{{ t('modal.openclaw.structured.active') }}</span>
|
|
279
279
|
</div>
|
|
280
|
-
<div v-if="provider.fields.length === 0" class="form-hint"
|
|
280
|
+
<div v-if="provider.fields.length === 0" class="form-hint">{{ t('modal.openclaw.structured.noFields') }}</div>
|
|
281
281
|
<div v-else class="provider-fields">
|
|
282
282
|
<div class="provider-field" v-for="field in provider.fields" :key="provider.key + '-' + field.key">
|
|
283
283
|
<span class="provider-field-key">{{ field.key }}</span>
|
|
@@ -287,14 +287,14 @@
|
|
|
287
287
|
</div>
|
|
288
288
|
</div>
|
|
289
289
|
<div v-if="openclawMissingProviders.length" class="form-hint">
|
|
290
|
-
|
|
290
|
+
{{ t('modal.openclaw.structured.missingProviders', { list: openclawMissingProviders.join(', ') }) }}
|
|
291
291
|
</div>
|
|
292
292
|
</div>
|
|
293
293
|
|
|
294
294
|
<div class="structured-card">
|
|
295
|
-
<div class="structured-card-title">
|
|
295
|
+
<div class="structured-card-title">{{ t('modal.openclaw.structured.agentsTitle') }}</div>
|
|
296
296
|
<div v-if="openclawAgentsList.length === 0" class="form-hint">
|
|
297
|
-
|
|
297
|
+
{{ t('modal.openclaw.structured.noAgents') }}
|
|
298
298
|
</div>
|
|
299
299
|
<div v-else class="agent-list">
|
|
300
300
|
<div class="agent-item" v-for="(agent, index) in openclawAgentsList" :key="agent.key + '-' + index">
|
|
@@ -303,41 +303,41 @@
|
|
|
303
303
|
<span class="agent-id">ID: {{ agent.id }}</span>
|
|
304
304
|
</div>
|
|
305
305
|
<div class="agent-meta" v-if="agent.theme || agent.emoji || agent.avatar">
|
|
306
|
-
<span v-if="agent.theme"
|
|
307
|
-
<span v-if="agent.emoji"
|
|
308
|
-
<span v-if="agent.avatar"
|
|
306
|
+
<span v-if="agent.theme">{{ t('modal.openclaw.structured.themeLabel') }}: {{ agent.theme }}</span>
|
|
307
|
+
<span v-if="agent.emoji">{{ t('modal.openclaw.structured.emojiLabel') }}: {{ agent.emoji }}</span>
|
|
308
|
+
<span v-if="agent.avatar">{{ t('modal.openclaw.structured.avatarLabel') }}: {{ agent.avatar }}</span>
|
|
309
309
|
</div>
|
|
310
310
|
</div>
|
|
311
311
|
</div>
|
|
312
312
|
</div>
|
|
313
313
|
</div>
|
|
314
314
|
<div class="btn-group">
|
|
315
|
-
<button class="btn btn-confirm secondary" @click="syncOpenclawStructuredFromText"
|
|
315
|
+
<button class="btn btn-confirm secondary" @click="syncOpenclawStructuredFromText">{{ t('common.refreshFromText') }}</button>
|
|
316
316
|
<button class="btn btn-confirm" @click="applyOpenclawStructuredToText">{{ t('common.writeToEditor') }}</button>
|
|
317
317
|
</div>
|
|
318
318
|
</div>
|
|
319
319
|
|
|
320
320
|
<div class="form-group">
|
|
321
|
-
<label class="form-label">
|
|
321
|
+
<label class="form-label">{{ t('modal.openclaw.editorLabel') }}</label>
|
|
322
322
|
<textarea
|
|
323
323
|
v-model="openclawEditing.content"
|
|
324
324
|
class="form-input template-editor"
|
|
325
325
|
spellcheck="false"
|
|
326
326
|
:readonly="openclawSaving || openclawApplying"
|
|
327
|
-
placeholder="
|
|
327
|
+
:placeholder="t('modal.openclaw.editorPlaceholder')"></textarea>
|
|
328
328
|
<div class="template-editor-warning">
|
|
329
|
-
<span v-if="openclawEditing.lockName && isDefaultOpenclawConfig(openclawEditing.name)"
|
|
330
|
-
<span v-else
|
|
329
|
+
<span v-if="openclawEditing.lockName && isDefaultOpenclawConfig(openclawEditing.name)">{{ t('modal.openclaw.defaultConfigHint') }}</span>
|
|
330
|
+
<span v-else>{{ t('modal.openclaw.saveOnlyHint') }}</span>
|
|
331
331
|
</div>
|
|
332
332
|
</div>
|
|
333
333
|
|
|
334
334
|
<div class="btn-group">
|
|
335
|
-
<button class="btn btn-cancel" @click="closeOpenclawConfigModal" :disabled="openclawSaving || openclawApplying"
|
|
335
|
+
<button class="btn btn-cancel" @click="closeOpenclawConfigModal" :disabled="openclawSaving || openclawApplying">{{ t('common.cancel') }}</button>
|
|
336
336
|
<button class="btn btn-confirm" @click="saveOpenclawConfig" :disabled="openclawSaving || openclawApplying || (openclawEditing.lockName && isDefaultOpenclawConfig(openclawEditing.name))">
|
|
337
|
-
{{ openclawSaving ? '
|
|
337
|
+
{{ openclawSaving ? t('common.saving') : t('common.save') }}
|
|
338
338
|
</button>
|
|
339
339
|
<button class="btn btn-confirm secondary" @click="saveAndApplyOpenclawConfig" :disabled="openclawSaving || openclawApplying">
|
|
340
|
-
{{ openclawApplying ? '
|
|
340
|
+
{{ openclawApplying ? t('common.applying') : t('common.saveApply') }}
|
|
341
341
|
</button>
|
|
342
342
|
</div>
|
|
343
343
|
</div>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<div class="doctor-health-result" :class="healthCheckResult.ok ? 'ok' : 'error'">
|
|
36
36
|
<div class="doctor-health-title">
|
|
37
37
|
{{ healthCheckResult.ok ? t('dashboard.health.ok') : t('dashboard.health.fail') }}
|
|
38
|
-
<span v-if="healthCheckResult.issues && healthCheckResult.issues.length"
|
|
38
|
+
<span v-if="healthCheckResult.issues && healthCheckResult.issues.length">{{ paren(t('dashboard.health.issues', { count: healthCheckResult.issues.length })) }}</span>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
41
|
<div v-if="healthCheckResult.report" class="doctor-action-list">
|
|
@@ -49,15 +49,33 @@
|
|
|
49
49
|
<span class="skills-flow-title">{{ t('market.installed.title') }}</span>
|
|
50
50
|
<span class="skills-flow-count">{{ skillsList.length }}</span>
|
|
51
51
|
</div>
|
|
52
|
-
<
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
<div class="skills-flow-actions">
|
|
53
|
+
<button type="button" class="skills-action-btn" @click="backupCurrentSkills" :disabled="loading || !!initError || skillsMarketBusy || skillsList.length === 0">
|
|
54
|
+
{{ skillsBackingUp ? t('market.backup.running') : t('market.backup.action') }}
|
|
55
|
+
</button>
|
|
56
|
+
<button type="button" class="skills-action-btn" @click="exportMarketSelectedSkills" :disabled="loading || !!initError || skillsMarketBusy || skillsMarketSelectedCount === 0">
|
|
57
|
+
{{ skillsExporting ? t('market.export.running') : t('market.export.action') }} ({{ skillsMarketSelectedCount }})
|
|
58
|
+
</button>
|
|
59
|
+
<button type="button" class="btn-mini" @click="refreshSkillsList({ silent: false })" :disabled="loading || !!initError || skillsMarketBusy">
|
|
60
|
+
<svg v-if="!skillsLoading" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" width="14" height="14"><path d="M17 1l4 4-4 4"/><path d="M3 11V9a4 4 0 014-4h14"/><path d="M3 19l-4-4 4-4"/><path d="M17 9v2a4 4 0 01-4 4H3"/></svg>
|
|
61
|
+
<svg v-else viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" width="14" height="14" class="spin"><path d="M10 2v4m0 8v4M2 10h4m8 0h4m-3.5-6.5l2.5 2.5M4 4l2.5 2.5M16 16l-2.5-2.5M4 16l2.5-2.5"/></svg>
|
|
62
|
+
</button>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div v-if="skillsList.length > 0" class="skills-market-selection-bar">
|
|
66
|
+
<label class="skills-market-select-all">
|
|
67
|
+
<input type="checkbox" :checked="skillsMarketAllSelected" @change="toggleAllSkillsMarketSelection" :disabled="skillsMarketBusy">
|
|
68
|
+
<span>{{ t('market.selection.all') }}</span>
|
|
69
|
+
</label>
|
|
70
|
+
<span class="skills-market-selection-count">{{ t('market.selection.count', { count: skillsMarketSelectedCount }) }}</span>
|
|
56
71
|
</div>
|
|
57
72
|
<div v-if="skillsLoading && !skillsMarketLocalLoadedOnce" class="skills-flow-loading">{{ t('market.local.loading') }}</div>
|
|
58
73
|
<div v-else-if="skillsList.length === 0" class="skills-flow-empty">{{ t('market.local.empty') }}</div>
|
|
59
74
|
<div v-else class="skills-flow-list">
|
|
60
|
-
<div v-for="skill in skillsList" :key="'skill-' + skill.name" class="skills-flow-item" :class="{ 'has-issue': !skill.hasSkillFile }">
|
|
75
|
+
<div v-for="skill in skillsList" :key="'skill-' + skill.name" class="skills-flow-item" :class="{ 'has-issue': !skill.hasSkillFile, selected: skillsMarketSelectedNames.includes(skill.name) }">
|
|
76
|
+
<label class="skills-market-item-check">
|
|
77
|
+
<input type="checkbox" :checked="skillsMarketSelectedNames.includes(skill.name)" @change="toggleSkillsMarketSelection(skill.name)" :disabled="skillsMarketBusy">
|
|
78
|
+
</label>
|
|
61
79
|
<div class="skills-flow-main">
|
|
62
80
|
<span class="skills-flow-name">{{ skill.displayName || skill.name }}</span>
|
|
63
81
|
<span class="skills-flow-path">{{ skill.path }}</span>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<div class="form-hint">
|
|
41
41
|
{{ agentsPath || t('common.notLoaded') }}
|
|
42
42
|
<span v-if="agentsPath">
|
|
43
|
-
|
|
43
|
+
{{ paren(agentsExists ? t('common.exists') : t('common.notExistsWillCreateOnSave')) }}
|
|
44
44
|
</span>
|
|
45
45
|
<span v-if="agentsPath" class="prompts-token-hint">· {{ t('prompts.tokenCount.hint', { count: agentsTokenCount }) }}</span>
|
|
46
46
|
</div>
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
<div class="form-hint">
|
|
280
280
|
{{ sysPromptPath || t('common.notLoaded') }}
|
|
281
281
|
<span v-if="sysPromptPath">
|
|
282
|
-
|
|
282
|
+
{{ paren(sysPromptExists ? t('common.exists') : t('common.notExistsWillCreateOnSave')) }}
|
|
283
283
|
</span>
|
|
284
284
|
<span v-if="sysPromptPath" class="prompts-token-hint">· {{ t('prompts.tokenCount.hint', { count: sysPromptTokenCount }) }}</span>
|
|
285
285
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- 会话浏览模式 -->
|
|
2
2
|
<div
|
|
3
3
|
v-show="mainTab === 'sessions'"
|
|
4
|
-
class="mode-content"
|
|
4
|
+
class="mode-content session-browser-refined"
|
|
5
5
|
id="panel-sessions"
|
|
6
6
|
role="tabpanel"
|
|
7
7
|
:aria-labelledby="'tab-sessions'">
|
|
@@ -133,15 +133,18 @@
|
|
|
133
133
|
</div>
|
|
134
134
|
</div>
|
|
135
135
|
|
|
136
|
-
<div v-if="
|
|
137
|
-
{{ t('sessions.
|
|
136
|
+
<div v-if="sessionSearchInfo && !sessionsLoading" class="session-search-status" role="status">
|
|
137
|
+
<span class="session-search-count">{{ t('sessions.search.coverage', { scanned: sessionSearchInfo.scanned, candidates: sessionSearchInfo.candidates }) }}</span>
|
|
138
|
+
<span v-if="!sessionSearchInfo.complete" class="session-search-partial">{{ t('sessions.search.partial') }}</span>
|
|
139
|
+
<small class="session-search-scope">{{ t('sessions.search.scopeHint') }}</small>
|
|
138
140
|
</div>
|
|
139
141
|
|
|
140
|
-
<div v-
|
|
141
|
-
{{ t('sessions.empty') }}
|
|
142
|
+
<div v-if="!sessionsLoading && sessionsList.length === 0" class="session-empty session-empty-refined">
|
|
143
|
+
<p>{{ t(hasActiveSessionFilters() ? 'sessions.empty.filtered' : 'sessions.empty.source') }}</p>
|
|
144
|
+
<button v-if="hasActiveSessionFilters()" class="btn-tool btn-tool-compact" type="button" @click="clearSessionFilters">{{ t('sessions.empty.clearFilters') }}</button>
|
|
142
145
|
</div>
|
|
143
146
|
|
|
144
|
-
<div v-else class="session-layout">
|
|
147
|
+
<div v-else-if="sessionsList.length > 0" class="session-layout">
|
|
145
148
|
<div
|
|
146
149
|
v-if="sessionListRenderEnabled"
|
|
147
150
|
class="session-list"
|
|
@@ -178,7 +181,12 @@
|
|
|
178
181
|
<span class="session-batch-check-mark"></span>
|
|
179
182
|
</label>
|
|
180
183
|
<div class="session-item-main">
|
|
181
|
-
<div class="session-item-
|
|
184
|
+
<div class="session-item-heading">
|
|
185
|
+
<div class="session-item-title">{{ parseSessionTitleInfo(session).title || session.sessionId }}</div>
|
|
186
|
+
<div v-if="parseSessionTitleInfo(session).location" class="session-item-location" :title="parseSessionTitleInfo(session).location">
|
|
187
|
+
{{ parseSessionTitleInfo(session).location }}
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
182
190
|
<span class="session-count-badge">{{ session.messageCount == null ? '...' : session.messageCount }}</span>
|
|
183
191
|
<span v-if="session.match && session.match.hit" class="session-match-badge">{{ session.match.count }}</span>
|
|
184
192
|
<span
|
|
@@ -221,7 +229,6 @@
|
|
|
221
229
|
<span class="session-source" :data-source="session.source">{{ session.sourceLabel }}</span>
|
|
222
230
|
<span class="session-item-time">{{ session.updatedAtLabel || session.updatedAt || t('sessions.unknownTime') }}</span>
|
|
223
231
|
<span v-if="getSessionHotLabel(session)" class="session-item-hot">{{ getSessionHotLabel(session) }}</span>
|
|
224
|
-
<span v-if="session.cwd" class="session-item-cwd session-item-sub">{{ session.cwd }}</span>
|
|
225
232
|
<div v-if="session.match && session.match.snippets && session.match.snippets.length" class="session-match-snippets">
|
|
226
233
|
<div v-for="(snip, si) in session.match.snippets.slice(0, 2)" :key="si" class="session-match-snippet">{{ snip }}</div>
|
|
227
234
|
</div>
|
|
@@ -244,61 +251,64 @@
|
|
|
244
251
|
<span class="session-preview-meta-item">{{ activeSession.cwd }}</span>
|
|
245
252
|
</div>
|
|
246
253
|
</div>
|
|
247
|
-
<div class="session-actions">
|
|
248
|
-
<
|
|
254
|
+
<div class="session-actions session-preview-actions">
|
|
255
|
+
<div class="session-secondary-actions">
|
|
256
|
+
<button class="btn-session-refresh has-label session-action-optional-label" @click="loadActiveSessionDetail" :disabled="sessionDetailLoading || !activeSession"
|
|
249
257
|
:title="sessionDetailLoading ? t('sessions.preview.loading') : t('sessions.preview.refresh')"
|
|
250
258
|
:aria-label="sessionDetailLoading ? t('sessions.preview.loading') : t('sessions.preview.refresh')">
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
v-if="isDeleteAvailable(activeSession)"
|
|
256
|
-
class="btn-session-delete has-label"
|
|
257
|
-
@click="deleteSession(activeSession)"
|
|
258
|
-
:disabled="!activeSession || sessionsLoading || sessionDeleting[getSessionExportKey(activeSession)]"
|
|
259
|
-
:title="(activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash'))"
|
|
260
|
-
:aria-label="(activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash'))">
|
|
261
|
-
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 4 4 4 13 4"/><path d="M5.5 4V2.5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1V4"/><path d="M12 4v9.5a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 4 13.5V4"/></svg>
|
|
262
|
-
<span class="session-action-label">{{ (activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash')) }}</span>
|
|
263
|
-
</button>
|
|
264
|
-
<button
|
|
265
|
-
class="btn-session-export has-label"
|
|
266
|
-
@click="exportSession(activeSession)"
|
|
267
|
-
:disabled="!activeSession || sessionExporting[getSessionExportKey(activeSession)]"
|
|
268
|
-
:title="(activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export')"
|
|
269
|
-
:aria-label="(activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export')">
|
|
270
|
-
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M8 2v8"/><polyline points="4 7 8 10.5 12 7"/><path d="M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12"/></svg>
|
|
271
|
-
<span class="session-action-label">{{ (activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export') }}</span>
|
|
272
|
-
</button>
|
|
273
|
-
<div class="session-link-group">
|
|
274
|
-
<button
|
|
259
|
+
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 8a5.5 5.5 0 0 1 9.4-3.8"/><path d="M13.5 8a5.5 5.5 0 0 1-9.4 3.8"/><polyline points="2.5 2 2.5 5 5.5 5"/><polyline points="13.5 14 13.5 11 10.5 11"/></svg>
|
|
260
|
+
<span class="session-action-label session-action-optional-text">{{ t('sessions.preview.refresh') }}</span>
|
|
261
|
+
</button>
|
|
262
|
+
<div class="session-link-group"><button
|
|
275
263
|
class="btn-session-open"
|
|
276
264
|
@click="copySessionLink(activeSession)"
|
|
277
265
|
:disabled="!activeSession || !canBuildStandaloneUrl(activeSession)"
|
|
278
266
|
:title="t('sessions.preview.copyLink')"
|
|
279
267
|
:aria-label="t('sessions.preview.copyLink')">
|
|
280
268
|
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6.5 9.5a3.5 3.5 0 0 0 5 0l2-2a3.5 3.5 0 0 0-5-5l-1 1"/><path d="M9.5 6.5a3.5 3.5 0 0 0-5 0l-2 2a3.5 3.5 0 0 0 5 5l1-1"/></svg>
|
|
281
|
-
</button>
|
|
282
|
-
<button
|
|
269
|
+
</button> <button
|
|
283
270
|
class="btn-session-open"
|
|
284
271
|
@click="openSessionLink(activeSession)"
|
|
285
272
|
:disabled="!activeSession || !canBuildStandaloneUrl(activeSession)"
|
|
286
273
|
:title="t('sessions.preview.openLink')"
|
|
287
274
|
:aria-label="t('sessions.preview.openLink')">
|
|
288
275
|
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2h-8.5A1.5 1.5 0 0 0 2 3.5v8A1.5 1.5 0 0 0 3.5 13h8a1.5 1.5 0 0 0 1.5-1.5v-3"/><path d="M13 2v4h-4"/><path d="M13 2L7 8"/></svg>
|
|
289
|
-
</button>
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
class="btn-session-open has-label"
|
|
276
|
+
</button></div>
|
|
277
|
+
<button
|
|
278
|
+
class="btn-session-open has-label session-action-optional-label"
|
|
293
279
|
@click="copySessionPath(activeSession)"
|
|
294
280
|
:disabled="!activeSession || !getSessionFilePath(activeSession)"
|
|
295
281
|
:title="t('sessions.preview.copyPath')"
|
|
296
282
|
:aria-label="t('sessions.preview.copyPath')">
|
|
297
|
-
|
|
298
|
-
|
|
283
|
+
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M2 5.5V12.5a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a1 1 0 0 0-1-1H8L6.5 5H3a1 1 0 0 0-1 1z"/></svg>
|
|
284
|
+
<span class="session-action-label session-action-optional-text">{{ t('sessions.preview.copyPath') }}</span>
|
|
299
285
|
</button>
|
|
286
|
+
</div>
|
|
287
|
+
<div class="session-primary-actions">
|
|
288
|
+
<button
|
|
289
|
+
class="btn-session-export has-label"
|
|
290
|
+
@click="exportSession(activeSession)"
|
|
291
|
+
:disabled="!activeSession || sessionExporting[getSessionExportKey(activeSession)]"
|
|
292
|
+
:title="(activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export')"
|
|
293
|
+
:aria-label="(activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export')">
|
|
294
|
+
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M8 2v8"/><polyline points="4 7 8 10.5 12 7"/><path d="M2.5 12v1.5a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V12"/></svg>
|
|
295
|
+
<span class="session-action-label">{{ (activeSession && sessionExporting[getSessionExportKey(activeSession)]) ? t('sessions.preview.exporting') : t('sessions.preview.export') }}</span>
|
|
296
|
+
</button>
|
|
297
|
+
<button
|
|
298
|
+
v-if="isDeleteAvailable(activeSession)"
|
|
299
|
+
class="btn-session-delete has-label session-delete-text-button"
|
|
300
|
+
@click="deleteSession(activeSession)"
|
|
301
|
+
:disabled="!activeSession || sessionsLoading || sessionDeleting[getSessionExportKey(activeSession)]"
|
|
302
|
+
:title="(activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash'))"
|
|
303
|
+
:aria-label="(activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash'))">
|
|
304
|
+
<span class="session-action-label">{{ (activeSession && sessionDeleting[getSessionExportKey(activeSession)]) ? (sessionTrashEnabled === false ? t('sessions.preview.deleting') : t('sessions.preview.moving')) : (sessionTrashEnabled === false ? t('sessions.preview.deleteHard') : t('sessions.preview.moveToTrash')) }}</span>
|
|
305
|
+
</button>
|
|
306
|
+
</div>
|
|
300
307
|
</div>
|
|
301
308
|
</div>
|
|
309
|
+
<div class="session-export-feedback">
|
|
310
|
+
<p v-if="sessionExportNotice && sessionExportNotice.key === getSessionExportKey(activeSession)" class="session-export-notice" role="status">{{ t('sessions.export.truncated') }}</p>
|
|
311
|
+
</div>
|
|
302
312
|
|
|
303
313
|
<div v-if="sessionDetailLoading && !sessionPreviewLoadingMore" class="session-preview-empty">
|
|
304
314
|
{{ t('sessions.preview.loadingBody') }}
|
|
@@ -79,6 +79,12 @@
|
|
|
79
79
|
@click="setTheme('dark')">
|
|
80
80
|
{{ t('settings.theme.dark') }}
|
|
81
81
|
</button>
|
|
82
|
+
<button
|
|
83
|
+
type="button"
|
|
84
|
+
:class="['toggle-btn', { active: theme === 'ocean' }]"
|
|
85
|
+
@click="setTheme('ocean')">
|
|
86
|
+
{{ t('settings.theme.ocean') }}
|
|
87
|
+
</button>
|
|
82
88
|
</div>
|
|
83
89
|
<p class="settings-card-hint">{{ t('settings.theme.hint') }}</p>
|
|
84
90
|
</div>
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
</section>
|
|
31
31
|
|
|
32
|
+
<section class="trash-content-section" :aria-label="t('settings.trash.title')">
|
|
33
|
+
|
|
32
34
|
<!-- Disabled state -->
|
|
33
35
|
<div v-if="getSessionTrashViewState() === 'disabled'" class="trash-empty-state trash-disabled-state">
|
|
34
36
|
<svg class="trash-empty-svg" viewBox="0 0 64 64" fill="none" stroke="currentColor" stroke-width="1.2">
|
|
@@ -114,5 +116,6 @@
|
|
|
114
116
|
</div>
|
|
115
117
|
</div>
|
|
116
118
|
</template>
|
|
119
|
+
</section>
|
|
117
120
|
</div>
|
|
118
121
|
</div>
|