codexmate 0.1.36 → 0.1.38

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.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/README.vi.md +1 -1
  3. package/README.zh.md +1 -1
  4. package/cli/desktop-release.js +73 -0
  5. package/cli/skills.js +103 -4
  6. package/cli/update.js +27 -15
  7. package/cli.js +9 -3
  8. package/package.json +2 -1
  9. package/web-ui/app.js +17 -0
  10. package/web-ui/modules/app.computed.main-tabs.mjs +12 -0
  11. package/web-ui/modules/app.methods.agents.mjs +0 -3
  12. package/web-ui/modules/app.methods.install.mjs +38 -2
  13. package/web-ui/modules/app.methods.prompts-editor.mjs +30 -6
  14. package/web-ui/modules/app.methods.provider-cache.mjs +3 -0
  15. package/web-ui/modules/app.methods.startup-claude.mjs +10 -5
  16. package/web-ui/modules/i18n/locales/en.mjs +25 -0
  17. package/web-ui/modules/i18n/locales/ja.mjs +26 -1
  18. package/web-ui/modules/i18n/locales/vi.mjs +25 -0
  19. package/web-ui/modules/i18n/locales/zh-tw.mjs +25 -0
  20. package/web-ui/modules/i18n/locales/zh.mjs +25 -0
  21. package/web-ui/modules/i18n.mjs +3 -2
  22. package/web-ui/modules/session-features.mjs +25 -1
  23. package/web-ui/modules/skills.methods.mjs +61 -16
  24. package/web-ui/partials/index/layout-header.html +91 -90
  25. package/web-ui/partials/index/modals-basic.html +22 -9
  26. package/web-ui/partials/index/panel-market.html +10 -3
  27. package/web-ui/partials/index/panel-plugins.html +13 -10
  28. package/web-ui/partials/index/panel-prompts.html +40 -20
  29. package/web-ui/partials/index/plugin-file-sharing.html +4 -4
  30. package/web-ui/partials/index/session-features.html +24 -7
  31. package/web-ui/res/web-ui-render.precompiled.js +831 -268
  32. package/web-ui/styles/layout-shell.css +176 -259
  33. package/web-ui/styles/plugins-panel.css +67 -46
  34. package/web-ui/styles/prompts-editor.css +127 -27
  35. package/web-ui/styles/session-features.css +12 -1
  36. package/web-ui/styles/settings-panel.css +16 -14
  37. package/web-ui/styles/system-prompt.css +9 -4
  38. package/web-ui/styles/theme-dark-tokens.css +4 -0
  39. package/web-ui/styles/theme-dark.css +5 -31
  40. package/web-ui/styles/theme-ocean-tokens.css +3 -0
  41. package/web-ui/styles/theme-ocean.css +3 -26
  42. package/web-ui/styles/theme-violet-tokens.css +3 -0
  43. package/web-ui/styles/theme-violet.css +12 -59
@@ -141,17 +141,15 @@
141
141
  :class="['side-update-notice', 'side-update-notice--' + appVersionStatusKind()]"
142
142
  :title="appVersionStatusTitle()"
143
143
  @click="handleAppVersionStatusClick">
144
- <span class="side-update-dot"></span>
145
- <span class="side-update-copy">
146
- <span class="side-update-title">{{ appUpdateNoticeText() }}</span>
147
- <span class="side-update-meta">{{ appUpdateNoticeMeta() }}</span>
148
- </span>
144
+ <span class="side-update-dot" aria-hidden="true"></span>
145
+ <span class="side-update-title">{{ appUpdateNoticeText() }}</span>
146
+ <svg class="side-update-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 3 5 5-5 5"/></svg>
149
147
  </button>
150
148
  </div>
151
149
 
152
150
  <div class="side-rail-nav">
153
151
  <div class="side-section" role="navigation" :aria-label="t('side.overview')">
154
- <div class="side-section-title">{{ t('side.overview') }}</div>
152
+ <div class="side-section-title" :title="t('side.overview')">{{ t('side.overview') }}</div>
155
153
  <button
156
154
  id="side-tab-dashboard"
157
155
  data-main-tab="dashboard"
@@ -159,15 +157,15 @@
159
157
  :class="['side-item', { active: isMainTabNavActive('dashboard') }]"
160
158
  @pointerdown="onMainTabPointerDown('dashboard', $event)"
161
159
  @click="onMainTabClick('dashboard', $event)">
162
- <span class="side-item-icon" aria-hidden="true">⌂</span>
163
- <div class="side-item-title">{{ t('side.overview.doctor') }}</div>
160
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 11 12 3l9 8v9H3zM9 20v-6h6v6"/></svg>
161
+ <div class="side-item-title" :title="t('side.overview.doctor')">{{ t('side.overview.doctor') }}</div>
164
162
  <div class="side-item-meta">
165
163
  <span>{{ inspectorHealthStatus }}</span>
166
164
  </div>
167
165
  </button>
168
166
  </div>
169
167
  <div class="side-section" role="navigation" :aria-label="t('side.docs')">
170
- <div class="side-section-title">{{ t('side.docs') }}</div>
168
+ <div class="side-section-title" :title="t('side.docs')">{{ t('side.docs') }}</div>
171
169
  <button
172
170
  id="side-tab-docs"
173
171
  data-main-tab="docs"
@@ -175,15 +173,15 @@
175
173
  :class="['side-item', { active: isMainTabNavActive('docs') }]"
176
174
  @pointerdown="onMainTabPointerDown('docs', $event)"
177
175
  @click="onMainTabClick('docs', $event)">
178
- <span class="side-item-icon" aria-hidden="true">?</span>
179
- <div class="side-item-title">{{ t('side.docs.cliInstall') }}</div>
176
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 3h10l4 4v14H5zM14 3v5h5M8 12h8m-8 4h8"/></svg>
177
+ <div class="side-item-title" :title="t('side.docs.cliInstall')">{{ t('side.docs.cliInstall') }}</div>
180
178
  <div class="side-item-meta">
181
179
  <span>{{ String(installPackageManager || 'npm').toUpperCase() }} · {{ installCommandAction === 'update' ? t('common.update') : (installCommandAction === 'uninstall' ? t('common.uninstall') : t('common.install')) }}</span>
182
180
  </div>
183
181
  </button>
184
182
  </div>
185
183
  <div class="side-section" role="navigation" :aria-label="t('side.config')">
186
- <div class="side-section-title">{{ t('side.config') }}</div>
184
+ <div class="side-section-title" :title="t('side.config')">{{ t('side.config') }}</div>
187
185
  <button
188
186
  v-if="isConfigModeVisible('codex')"
189
187
  id="side-tab-config-codex"
@@ -191,11 +189,11 @@
191
189
  data-main-tab="config"
192
190
  data-config-mode="codex"
193
191
  :aria-current="mainTab === 'config' && configMode === 'codex' ? 'page' : null"
194
- :class="['side-item', 'side-item-compact', { active: isConfigModeNavActive('codex') }]"
192
+ :class="['side-item', { active: isConfigModeNavActive('codex') }]"
195
193
  @pointerdown="onConfigTabPointerDown('codex', $event)"
196
194
  @click="onConfigTabClick('codex', $event)">
197
- <span class="side-item-icon" aria-hidden="true">C</span>
198
- <div class="side-item-title">{{ t('side.config.codex') }}</div>
195
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m7 9 3 3-3 3m6 0h4"/></svg>
196
+ <div class="side-item-title" :title="t('side.config.codex')">{{ t('side.config.codex') }}</div>
199
197
  </button>
200
198
  <button
201
199
  v-if="isConfigModeVisible('claude')"
@@ -204,11 +202,11 @@
204
202
  data-main-tab="config"
205
203
  data-config-mode="claude"
206
204
  :aria-current="mainTab === 'config' && configMode === 'claude' ? 'page' : null"
207
- :class="['side-item', 'side-item-compact', { active: isConfigModeNavActive('claude') }]"
205
+ :class="['side-item', { active: isConfigModeNavActive('claude') }]"
208
206
  @pointerdown="onConfigTabPointerDown('claude', $event)"
209
207
  @click="onConfigTabClick('claude', $event)">
210
- <span class="side-item-icon" aria-hidden="true">A</span>
211
- <div class="side-item-title">{{ t('side.config.claude') }}</div>
208
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v18M3 12h18M5.6 5.6l12.8 12.8m0-12.8L5.6 18.4"/></svg>
209
+ <div class="side-item-title" :title="t('side.config.claude')">{{ t('side.config.claude') }}</div>
212
210
  </button>
213
211
  <button
214
212
  v-if="isConfigModeVisible('openclaw')"
@@ -217,11 +215,11 @@
217
215
  data-main-tab="config"
218
216
  data-config-mode="openclaw"
219
217
  :aria-current="mainTab === 'config' && configMode === 'openclaw' ? 'page' : null"
220
- :class="['side-item', 'side-item-compact', { active: isConfigModeNavActive('openclaw') }]"
218
+ :class="['side-item', { active: isConfigModeNavActive('openclaw') }]"
221
219
  @pointerdown="onConfigTabPointerDown('openclaw', $event)"
222
220
  @click="onConfigTabClick('openclaw', $event)">
223
- <span class="side-item-icon" aria-hidden="true">O</span>
224
- <div class="side-item-title">{{ t('side.config.openclaw') }}</div>
221
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20a6 6 0 0 0 6-6v-2a4 4 0 0 0 2-6l-2 3-2-3a4 4 0 0 0-1 6v2a3 3 0 1 1-6 0v-2a4 4 0 0 0-1-6L6 9 4 6a4 4 0 0 0 2 6v2a6 6 0 0 0 6 6Z"/></svg>
222
+ <div class="side-item-title" :title="t('side.config.openclaw')">{{ t('side.config.openclaw') }}</div>
225
223
  </button>
226
224
  <button
227
225
  v-if="isConfigModeVisible('opencode')"
@@ -230,11 +228,11 @@
230
228
  data-main-tab="config"
231
229
  data-config-mode="opencode"
232
230
  :aria-current="mainTab === 'config' && configMode === 'opencode' ? 'page' : null"
233
- :class="['side-item', 'side-item-compact', { active: isConfigModeNavActive('opencode') }]"
231
+ :class="['side-item', { active: isConfigModeNavActive('opencode') }]"
234
232
  @pointerdown="onConfigTabPointerDown('opencode', $event)"
235
233
  @click="onConfigTabClick('opencode', $event)">
236
- <span class="side-item-icon" aria-hidden="true">N</span>
237
- <div class="side-item-title">{{ t('side.config.opencode') }}</div>
234
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m8 6-6 6 6 6m8-12 6 6-6 6m-3-14-2 16"/></svg>
235
+ <div class="side-item-title" :title="t('side.config.opencode')">{{ t('side.config.opencode') }}</div>
238
236
  </button>
239
237
 
240
238
  <button
@@ -244,11 +242,11 @@
244
242
  data-main-tab="config"
245
243
  data-config-mode="kilocode"
246
244
  :aria-current="mainTab === 'config' && configMode === 'kilocode' ? 'page' : null"
247
- :class="['side-item', 'side-item-compact', { active: isConfigModeNavActive('kilocode') }]"
245
+ :class="['side-item', { active: isConfigModeNavActive('kilocode') }]"
248
246
  @pointerdown="onConfigTabPointerDown('kilocode', $event)"
249
247
  @click="onConfigTabClick('kilocode', $event)">
250
- <span class="side-item-icon" aria-hidden="true">K</span>
251
- <div class="side-item-title">{{ t('side.config.kilocode') }}</div>
248
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 18 9 6l6 12m-9-5h6m4-4 5 3-5 3"/></svg>
249
+ <div class="side-item-title" :title="t('side.config.kilocode')">{{ t('side.config.kilocode') }}</div>
252
250
  </button>
253
251
  <button
254
252
  v-if="isConfigModeVisible('pi')"
@@ -257,17 +255,17 @@
257
255
  data-main-tab="config"
258
256
  data-config-mode="pi"
259
257
  :aria-current="mainTab === 'config' && configMode === 'pi' ? 'page' : null"
260
- :class="['side-item', 'side-item-compact', { active: isConfigModeNavActive('pi') }]"
258
+ :class="['side-item', { active: isConfigModeNavActive('pi') }]"
261
259
  @pointerdown="onConfigTabPointerDown('pi', $event)"
262
260
  @click="onConfigTabClick('pi', $event)">
263
- <span class="side-item-icon" aria-hidden="true">P</span>
264
- <div class="side-item-title">{{ t('side.config.pi') }}</div>
261
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16m-12 0v7c0 3-1 4-2 4m10-11v8c0 2 1 3 3 3"/></svg>
262
+ <div class="side-item-title" :title="t('side.config.pi')">{{ t('side.config.pi') }}</div>
265
263
  </button>
266
264
  </div>
267
265
 
268
266
 
269
267
  <div class="side-section" role="navigation" :aria-label="t('side.workspace')">
270
- <div class="side-section-title">{{ t('side.workspace') }}</div>
268
+ <div class="side-section-title" :title="t('side.workspace')">{{ t('side.workspace') }}</div>
271
269
  <button
272
270
  id="side-tab-routing"
273
271
  data-main-tab="routing"
@@ -275,7 +273,8 @@
275
273
  :class="['side-item', { active: isMainTabNavActive('routing') }]"
276
274
  @pointerdown="onMainTabPointerDown('routing', $event)"
277
275
  @click="onMainTabClick('routing', $event)">
278
- <div class="side-item-title">{{ t('tab.routing') }}</div>
276
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 6h15m-4-4 4 4-4 4M20 18H5m4-4-4 4 4 4"/></svg>
277
+ <div class="side-item-title" :title="t('tab.routing')">{{ t('tab.routing') }}</div>
279
278
  </button>
280
279
  <button
281
280
  id="side-tab-sessions"
@@ -284,8 +283,8 @@
284
283
  :class="['side-item', { active: isMainTabNavActive('sessions') }]"
285
284
  @pointerdown="onMainTabPointerDown('sessions', $event)"
286
285
  @click="onMainTabClick('sessions', $event)">
287
- <span class="side-item-icon" aria-hidden="true">S</span>
288
- <div class="side-item-title">{{ t('side.sessions.browser') }}</div>
286
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 4h16v12h-9l-5 4v-4H4zm4 5h8m-8 3h6"/></svg>
287
+ <div class="side-item-title" :title="t('side.sessions.browser')">{{ t('side.sessions.browser') }}</div>
289
288
  <div class="side-item-meta">
290
289
  <span>{{ t('sessions.sourceLabel', { value: (sessionFilterSource === 'all' ? t('sessions.source.all') : (sessionFilterSource === 'claude' ? 'Claude Code' : (sessionFilterSource === 'gemini' ? 'Gemini CLI' : (sessionFilterSource === 'codebuddy' ? 'CodeBuddy Code' : (sessionFilterSource === 'workbuddy' ? 'WorkBuddy AI' : 'Codex'))))) }) }}</span>
291
290
  </div>
@@ -298,8 +297,8 @@
298
297
  :class="['side-item', { active: isMainTabNavActive('prompts') }]"
299
298
  @pointerdown="onMainTabPointerDown('prompts', $event)"
300
299
  @click="onMainTabClick('prompts', $event)">
301
- <span class="side-item-icon" aria-hidden="true">P</span>
302
- <div class="side-item-title">{{ t('side.prompts') }}</div>
300
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 4h14v16H5zm4 5h6m-6 4h6m-6 4h3"/></svg>
301
+ <div class="side-item-title" :title="t('side.prompts')">{{ t('side.prompts') }}</div>
303
302
  </button>
304
303
 
305
304
  <button
@@ -309,8 +308,8 @@
309
308
  :class="['side-item', { active: isMainTabNavActive('usage') }]"
310
309
  @pointerdown="onMainTabPointerDown('usage', $event)"
311
310
  @click="onMainTabClick('usage', $event)">
312
- <span class="side-item-icon" aria-hidden="true">↗</span>
313
- <div class="side-item-title">{{ t('tab.usage') }}</div>
311
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 4v16h16M8 16v-3m5 3V9m5 7V6"/></svg>
312
+ <div class="side-item-title" :title="t('tab.usage')">{{ t('tab.usage') }}</div>
314
313
  <div class="side-item-meta">
315
314
  <span>{{ t('usage.rangeLabel', { value: (sessionsUsageTimeRange === 'all' ? t('usage.range.all') : (sessionsUsageTimeRange === '30d' ? t('usage.range.30d.short') : t('usage.range.7d.short'))) }) }}</span>
316
315
  </div>
@@ -319,7 +318,7 @@
319
318
 
320
319
 
321
320
  <div class="side-section" role="navigation" :aria-label="t('side.skills')">
322
- <div class="side-section-title">{{ t('side.skills') }}</div>
321
+ <div class="side-section-title" :title="t('side.skills')">{{ t('side.skills') }}</div>
323
322
  <button
324
323
  id="side-tab-market"
325
324
  data-main-tab="market"
@@ -327,8 +326,8 @@
327
326
  :class="['side-item', { active: isMainTabNavActive('market') }]"
328
327
  @pointerdown="onMainTabPointerDown('market', $event)"
329
328
  @click="onMainTabClick('market', $event)">
330
- <span class="side-item-icon" aria-hidden="true">★</span>
331
- <div class="side-item-title">{{ t('tab.market') }}</div>
329
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3 2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1-4.4-4.3 6.1-.9Z"/></svg>
330
+ <div class="side-item-title" :title="t('tab.market')">{{ t('tab.market') }}</div>
332
331
  <div class="side-item-meta">
333
332
  <span>{{ t('skills.localLabel', { target: skillsTargetLabel }) }}</span>
334
333
  <span>{{ t('skills.counts', { installed: skillsList.length, importable: skillsImportList.length }) }}</span>
@@ -337,7 +336,7 @@
337
336
  </div>
338
337
 
339
338
  <div class="side-section" role="navigation" :aria-label="t('side.plugins')">
340
- <div class="side-section-title">{{ t('side.plugins') }}</div>
339
+ <div class="side-section-title" :title="t('side.plugins')">{{ t('side.plugins') }}</div>
341
340
  <button
342
341
  id="side-tab-plugins"
343
342
  data-main-tab="plugins"
@@ -346,8 +345,8 @@
346
345
  :class="['side-item', { active: isPluginsIdNavActive('prompt-templates') }]"
347
346
  @pointerdown="onPluginsTabPointerDown('prompt-templates', $event)"
348
347
  @click="onPluginsTabClick('prompt-templates', $event)">
349
- <span class="side-item-icon" aria-hidden="true">◇</span>
350
- <div class="side-item-title">{{ t('side.plugins.tools') }}</div>
348
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3 9 9-9 9-9-9zm0 5 4 4-4 4-4-4z"/></svg>
349
+ <div class="side-item-title" :title="t('side.plugins.tools')">{{ t('side.plugins.tools') }}</div>
351
350
  <div class="side-item-meta">
352
351
  <span>{{ t('side.plugins.templatesCount', { count: promptTemplatesList.length }) }}</span>
353
352
  </div>
@@ -360,8 +359,8 @@
360
359
  :class="['side-item', { active: isPluginsIdNavActive('text-tools') }]"
361
360
  @pointerdown="onPluginsTabPointerDown('text-tools', $event)"
362
361
  @click="onPluginsTabClick('text-tools', $event)">
363
- <span class="side-item-icon" aria-hidden="true">▤</span>
364
- <div class="side-item-title">{{ t('plugins.catalog.textTools.title') }}</div>
362
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 5h16M4 10h16M4 15h10M4 20h7"/></svg>
363
+ <div class="side-item-title" :title="t('plugins.catalog.textTools.title')">{{ t('plugins.catalog.textTools.title') }}</div>
365
364
  <div class="side-item-meta">
366
365
  <span>{{ t('plugins.textTools.tools.compress') }}</span>
367
366
  </div>
@@ -374,13 +373,13 @@
374
373
  :class="['side-item', { active: isPluginsIdNavActive('file-sharing') }]"
375
374
  @pointerdown="onPluginsTabPointerDown('file-sharing', $event)"
376
375
  @click="onPluginsTabClick('file-sharing', $event)">
377
- <span class="side-item-icon" aria-hidden="true">⇩</span>
378
- <div class="side-item-title">{{ t('plugins.fileSharing.title') }}</div>
376
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 6h6l2 2h6v11H5zm7 4v6m-2-2 2 2 2-2"/></svg>
377
+ <div class="side-item-title" :title="t('plugins.fileSharing.title')">{{ t('plugins.fileSharing.title') }}</div>
379
378
  </button>
380
379
  </div>
381
380
 
382
381
  <div class="side-section" role="navigation" :aria-label="t('side.system')">
383
- <div class="side-section-title">{{ t('side.system') }}</div>
382
+ <div class="side-section-title" :title="t('side.system')">{{ t('side.system') }}</div>
384
383
  <button
385
384
  id="side-tab-settings"
386
385
  data-main-tab="settings"
@@ -388,8 +387,8 @@
388
387
  :class="['side-item', { active: isMainTabNavActive('settings') }]"
389
388
  @pointerdown="onMainTabPointerDown('settings', $event)"
390
389
  @click="onMainTabClick('settings', $event)">
391
- <span class="side-item-icon" aria-hidden="true">⚙</span>
392
- <div class="side-item-title">{{ t('side.system.settings') }}</div>
390
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h3m4 0h9M4 17h9m4 0h3"/><circle cx="9" cy="7" r="2"/><circle cx="15" cy="17" r="2"/></svg>
391
+ <div class="side-item-title" :title="t('side.system.settings')">{{ t('side.system.settings') }}</div>
393
392
  </button>
394
393
  <button
395
394
  id="side-tab-trash"
@@ -398,8 +397,8 @@
398
397
  :class="['side-item', { active: isMainTabNavActive('trash') }]"
399
398
  @pointerdown="onMainTabPointerDown('trash', $event)"
400
399
  @click="onMainTabClick('trash', $event)">
401
- <span class="side-item-icon" aria-hidden="true">⌫</span>
402
- <div class="side-item-title">{{ t('settings.trash.title') }}</div>
400
+ <svg class="side-item-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13m-8 3v7m4-7v7"/></svg>
401
+ <div class="side-item-title" :title="t('settings.trash.title')">{{ t('settings.trash.title') }}</div>
403
402
  <div class="side-item-meta">
404
403
  <span>{{ t('settings.trash.meta') }}</span>
405
404
  <span v-if="sessionTrashCount > 0" class="side-item-badge">{{ sessionTrashCount }}</span>
@@ -412,48 +411,50 @@
412
411
  </div>
413
412
  </div>
414
413
 
415
- <div class="side-rail-lang">
416
- <div class="side-rail-lang-actions">
417
- <div class="side-language-menu">
414
+ <div class="side-rail-footer">
415
+ <div class="side-language-menu" @focusout="handleLanguageMenuFocusOut" @keydown.esc.stop.prevent="closeLanguageMenu(true)">
416
+ <button
417
+ type="button"
418
+ class="side-rail-action"
419
+ :aria-label="t('settings.language.sideLabel', { language: currentLanguageLabel() })"
420
+ :aria-expanded="languageMenuOpen ? 'true' : 'false'"
421
+ aria-haspopup="menu"
422
+ ref="sideLanguageTrigger"
423
+ @click="toggleLanguageMenu">
424
+ <svg class="side-rail-action-icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><circle cx="10" cy="10" r="7.5"/><ellipse cx="10" cy="10" rx="3.25" ry="7.5"/><path d="M2.5 10h15"/></svg>
425
+ <span>{{ lang === 'ja' || lang === 'zh' ? currentLanguageLabel() : lang.toUpperCase() }}</span>
426
+ <svg class="side-rail-action-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m4 10 4-4 4 4"/></svg>
427
+ </button>
428
+ <div v-if="languageMenuOpen" class="side-language-dropdown" role="menu">
418
429
  <button
430
+ v-for="option in languageOptions()"
431
+ :key="option.code"
419
432
  type="button"
420
- class="language-settings-link"
421
- :aria-label="t('settings.language.sideLabel', { language: currentLanguageLabel() })"
422
- :aria-expanded="languageMenuOpen ? 'true' : 'false'"
423
- aria-haspopup="menu"
424
- @click="toggleLanguageMenu"
425
- @keydown.esc.prevent="closeLanguageMenu">
426
- {{ currentLanguageLabel() }}
427
- <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 6l4 4 4-4"/></svg>
433
+ class="side-language-option"
434
+ :class="{ active: option.code === lang }"
435
+ role="menuitemradio"
436
+ :aria-checked="option.code === lang ? 'true' : 'false'"
437
+ @click="selectLanguage(option.code)">
438
+ <span>{{ option.nativeName }}</span>
439
+ <small>{{ option.englishName }}</small>
440
+ <svg v-if="option.code === lang" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 8.5l3 3 6-7"/></svg>
428
441
  </button>
429
- <div v-if="languageMenuOpen" class="side-language-dropdown" role="menu" @focusout="handleLanguageMenuFocusOut">
430
- <button
431
- v-for="option in languageOptions()"
432
- :key="option.code"
433
- type="button"
434
- class="side-language-option"
435
- :class="{ active: option.code === lang }"
436
- role="menuitemradio"
437
- :aria-checked="option.code === lang ? 'true' : 'false'"
438
- @click="selectLanguage(option.code)">
439
- <span>{{ option.nativeName }}</span>
440
- <small>{{ option.englishName }}</small>
441
- <svg v-if="option.code === lang" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3.5 8.5l3 3 6-7"/></svg>
442
- </button>
443
- </div>
444
442
  </div>
445
- <button
446
- type="button"
447
- class="side-announcement-button"
448
- :aria-label="t('announcement.providerCache.open')"
449
- :title="t('announcement.providerCache.open')"
450
- @click="openProviderCacheAnnouncementModal">
451
- <svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" width="16" height="16" aria-hidden="true">
452
- <path d="M15 8.5a5 5 0 0 0-10 0c0 2.75-1 4.25-2 5.5h14c-1-1.25-2-2.75-2-5.5Z"/>
453
- <path d="M8 16a2 2 0 0 0 4 0"/>
454
- </svg>
455
- </button>
456
443
  </div>
444
+ <button
445
+ type="button"
446
+ class="side-rail-action side-announcement-button"
447
+ :aria-label="t('announcement.providerCache.open')"
448
+ :title="t('announcement.providerCache.open')"
449
+ :aria-expanded="showProviderCacheAnnouncementModal ? 'true' : 'false'"
450
+ aria-haspopup="dialog"
451
+ ref="sideAnnouncementTrigger"
452
+ @click="openProviderCacheAnnouncementModal">
453
+ <svg class="side-rail-action-icon" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" focusable="false">
454
+ <path d="M15 8.5a5 5 0 0 0-10 0c0 2.75-1 4.25-2 5.5h14c-1-1.25-2-2.75-2-5.5ZM8 16a2 2 0 0 0 4 0"/>
455
+ </svg>
456
+ <span v-if="!hasReadSideAnnouncement" class="side-announcement-unread" aria-hidden="true"></span>
457
+ </button>
457
458
  </div>
458
459
  </aside>
459
460
  <main class="main-panel">
@@ -1,14 +1,27 @@
1
1
  <div v-if="showAppUpdateModal" class="modal-overlay" @click.self="closeAppUpdateModal">
2
2
  <div class="modal app-update-modal" role="dialog" aria-modal="true" aria-labelledby="app-update-title" aria-describedby="app-update-versions app-update-hint">
3
3
  <div id="app-update-title" class="modal-title">{{ t('side.update.available') }}</div>
4
- <div id="app-update-versions" class="form-group confirm-dialog-message">{{ t('side.update.metaVersions', { current: normalizePackageVersion(appVersion), latest: normalizePackageVersion(appLatestVersion) }) }}</div>
5
- <div class="docs-command-box">
6
- <input id="app-update-command" class="install-command" type="text" :value="appUpdateCommand()" readonly :aria-label="t('common.command')" @focus="$event.target.select()">
7
- <button type="button" class="btn-mini docs-copy-btn" @click="copyInstallCommand(appUpdateCommand())">{{ t('common.copy') }}</button>
8
- </div>
9
- <p id="app-update-hint" class="form-hint">{{ t('side.update.commandHint') }}</p>
4
+ <div id="app-update-versions" class="form-group confirm-dialog-message">{{ appLatestVersion ? t('side.update.metaVersions', { current: normalizePackageVersion(appVersion), latest: normalizePackageVersion(appLatestVersion) }) : t('side.update.currentOnly', { current: normalizePackageVersion(appVersion) }) }}</div>
5
+ <template v-if="appUpdateAction === 'download'">
6
+ <p id="app-update-hint" class="form-hint">{{ appVersionStatusLoading ? t('side.update.checking') : appVersionStatusError || (appUpdateAsset ? appUpdateAsset.name : t(isAppUpdateAvailable() ? 'side.update.assetUnavailable' : 'side.update.upToDate')) }}</p>
7
+ <p v-if="appUpdateDownloadStatus" class="form-hint" role="status">{{ t('side.update.download.' + appUpdateDownloadStatus) }}</p>
8
+ </template>
9
+ <template v-else>
10
+ <div class="docs-command-box">
11
+ <input id="app-update-command" class="install-command" type="text" :value="appUpdateCommand()" readonly :aria-label="t('common.command')" @focus="$event.target.select()">
12
+ <button type="button" class="btn-mini docs-copy-btn" @click="copyInstallCommand(appUpdateCommand())">{{ t('common.copy') }}</button>
13
+ </div>
14
+ <p id="app-update-hint" class="form-hint">{{ t('side.update.commandHint') }}</p>
15
+ </template>
10
16
  <div class="btn-group">
11
- <button type="button" class="btn btn-cancel" @click="closeAppUpdateModal">{{ t('common.close') }}</button>
17
+ <template v-if="appUpdateAction === 'download'">
18
+ <button v-if="appUpdateDownloadStatus === 'unavailable' || (!appUpdateAsset && (isAppUpdateAvailable() || appVersionStatusError || appVersionStatusLoading))"
19
+ id="app-update-primary" type="button" class="btn" :disabled="appVersionStatusLoading" @click="retryAppUpdateDownloadCheck">{{ t('side.update.retry') }}</button>
20
+ <button v-else-if="appUpdateAsset && hasNativeAppUpdateDownload()" id="app-update-primary" type="button" class="btn"
21
+ :disabled="appUpdateDownloadPending" @click="downloadAppUpdate">{{ t(appUpdateDownloadPending ? 'side.update.downloading' : 'side.update.downloadPackage') }}</button>
22
+ <a v-else-if="appUpdateAsset" id="app-update-primary" class="btn" :href="appUpdateAsset.url" target="_blank" rel="noopener noreferrer">{{ t('side.update.downloadPackage') }}</a>
23
+ </template>
24
+ <button id="app-update-close" type="button" class="btn btn-cancel" @click="closeAppUpdateModal">{{ t('common.close') }}</button>
12
25
  </div>
13
26
  </div>
14
27
  </div>
@@ -150,9 +163,9 @@
150
163
  </div>
151
164
 
152
165
  <!-- 项目功能公告模态框 -->
153
- <div v-if="showProviderCacheAnnouncementModal" class="modal-overlay project-announcement-overlay" @click.self="closeProviderCacheAnnouncementModal">
166
+ <div v-if="showProviderCacheAnnouncementModal" class="modal-overlay project-announcement-overlay" @click.self="closeProviderCacheAnnouncementModal" @keydown.esc.stop.prevent="closeProviderCacheAnnouncementModal">
154
167
  <div class="modal provider-cache-announcement-modal project-announcement-modal" role="dialog" aria-modal="true" aria-labelledby="provider-cache-announcement-title">
155
- <button type="button" class="project-announcement-close" :aria-label="t('announcement.project.closeAria')" @click="closeProviderCacheAnnouncementModal">×</button>
168
+ <button type="button" class="project-announcement-close" ref="sideAnnouncementClose" :aria-label="t('announcement.project.closeAria')" @click="closeProviderCacheAnnouncementModal">×</button>
156
169
  <div class="project-announcement-header">
157
170
  <div class="project-announcement-eyebrow">{{ t('announcement.project.eyebrow') }}</div>
158
171
  <div class="modal-title project-announcement-title" id="provider-cache-announcement-title">{{ t('announcement.project.title') }}</div>
@@ -50,9 +50,6 @@
50
50
  <span class="skills-flow-count">{{ skillsList.length }}</span>
51
51
  </div>
52
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
53
  <button type="button" class="skills-action-btn" @click="exportMarketSelectedSkills" :disabled="loading || !!initError || skillsMarketBusy || skillsMarketSelectedCount === 0">
57
54
  {{ skillsExporting ? t('market.export.running') : t('market.export.action') }} ({{ skillsMarketSelectedCount }})
58
55
  </button>
@@ -62,6 +59,16 @@
62
59
  </button>
63
60
  </div>
64
61
  </div>
62
+ <div class="skills-flow-actions">
63
+ <button type="button" class="skills-action-btn" @click="backupCurrentSkills" :disabled="loading || !!initError || skillsMarketBusy || skillsList.length === 0">
64
+ {{ skillsBackingUp ? t('market.backup.running') : t('market.backup.export') }}
65
+ </button>
66
+ <button type="button" class="skills-action-btn" @click="triggerSkillsZipImport('backup')" :disabled="loading || !!initError || skillsMarketBusy">
67
+ {{ skillsZipImporting ? t('modal.skills.actions.zipImporting') : t('market.backup.import') }}
68
+ </button>
69
+ <input ref="skillsBackupImportInput" type="file" accept=".zip,application/zip" hidden
70
+ @change="handleSkillsZipImportChange($event, 'backup')" @cancel="delete $event.target.dataset.targetApp">
71
+ </div>
65
72
  <div v-if="skillsList.length > 0" class="skills-market-selection-bar">
66
73
  <label class="skills-market-select-all">
67
74
  <input type="checkbox" :checked="skillsMarketAllSelected" @change="toggleAllSkillsMarketSelection" :disabled="skillsMarketBusy">
@@ -40,7 +40,7 @@
40
40
  <div v-else-if="pluginsActiveId === 'prompt-templates'" class="plugins-panel">
41
41
  <div class="plugins-panel-head">
42
42
  <div>
43
- <div class="plugins-panel-title">{{ t('plugins.promptTemplates.title') }}</div>
43
+ <h2 class="plugins-panel-title">{{ t('plugins.promptTemplates.title') }}</h2>
44
44
  </div>
45
45
  <div v-if="!pluginsSidebarVisible" class="settings-tab-actions">
46
46
  <button type="button" class="btn-tool btn-tool-compact" @click="loadPluginsOverview({ forceRefresh: true, silent: false })" :disabled="loading || !!initError || pluginsLoading">
@@ -68,8 +68,9 @@
68
68
  <div class="prompt-compose-workspace">
69
69
  <div class="prompt-compose-main">
70
70
  <div class="prompt-compose-form">
71
- <label class="form-label">{{ t('plugins.promptTemplates.compose.selectTemplate') }}</label>
71
+ <label class="form-label" for="prompt-compose-template">{{ t('plugins.promptTemplates.compose.selectTemplate') }}</label>
72
72
  <select
73
+ id="prompt-compose-template"
73
74
  class="form-select prompt-compose-template-select"
74
75
  :value="promptComposerSelectedTemplateId"
75
76
  @change="selectPromptComposerTemplate($event.target.value)"
@@ -119,7 +120,7 @@
119
120
  <div>
120
121
  <div class="prompt-vars-title">{{ t('plugins.promptTemplates.compose.outputTitle') }}</div>
121
122
  </div>
122
- <button type="button" class="btn-mini" @click="copyPromptComposerRendered" :disabled="pluginsLoading || !promptComposerRendered">{{ t('plugins.promptTemplates.compose.copy') }}</button>
123
+ <button type="button" class="btn-mini btn-confirm-mini" @click="copyPromptComposerRendered" :disabled="pluginsLoading || !promptComposerRendered">{{ t('plugins.promptTemplates.compose.copy') }}</button>
123
124
  </div>
124
125
  <textarea class="form-input prompt-preview-textarea" :value="promptComposerRendered" rows="10" readonly spellcheck="false" :aria-label="t('plugins.promptTemplates.compose.outputAria')"></textarea>
125
126
  </div>
@@ -135,7 +136,7 @@
135
136
  v-model.trim="promptTemplatesKeyword"
136
137
  :aria-label="t('plugins.promptTemplates.manage.searchAria')"
137
138
  :placeholder="t('plugins.promptTemplates.manage.searchPlaceholder')">
138
- <button type="button" class="btn-mini" @click="createPromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.manage.create') }}</button>
139
+ <button type="button" class="btn-mini btn-confirm-mini" @click="createPromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.manage.create') }}</button>
139
140
  <button type="button" class="btn-mini" @click="exportPromptTemplates" :disabled="pluginsLoading || !promptTemplatesList.length">{{ t('plugins.promptTemplates.manage.export') }}</button>
140
141
  <button type="button" class="btn-mini" @click="triggerPromptTemplatesImport" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.manage.import') }}</button>
141
142
  </div>
@@ -200,7 +201,7 @@
200
201
  <div v-if="!promptTemplateDraft.isBuiltin" class="prompt-editor-actions">
201
202
  <button type="button" class="btn-mini" @click="duplicatePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.editor.duplicate') }}</button>
202
203
  <button type="button" class="btn-mini delete" @click="deletePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.editor.delete') }}</button>
203
- <button type="button" class="btn-mini" @click="savePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.editor.save') }}</button>
204
+ <button type="button" class="btn-mini btn-confirm-mini" @click="savePromptTemplate" :disabled="pluginsLoading || pluginConfigSaving">{{ t('plugins.promptTemplates.editor.save') }}</button>
204
205
  </div>
205
206
  </div>
206
207
  <div v-if="promptTemplateDraft.isBuiltin" class="plugins-panel-note">
@@ -211,8 +212,9 @@
211
212
  </div>
212
213
 
213
214
  <div class="prompt-editor-body">
214
- <label class="form-label">{{ t('plugins.promptTemplates.editor.templateLabel') }}</label>
215
+ <label class="form-label" for="prompt-template-source">{{ t('plugins.promptTemplates.editor.templateLabel') }}</label>
215
216
  <textarea
217
+ id="prompt-template-source"
216
218
  class="form-input prompt-editor-textarea"
217
219
  v-model="promptTemplateDraftRaw.template"
218
220
  :disabled="promptTemplateDraft.isBuiltin"
@@ -255,10 +257,10 @@
255
257
  </div>
256
258
  </div>
257
259
  </div>
258
- <div v-else-if="pluginsActiveId === 'text-tools'" class="plugins-panel">
260
+ <div v-else-if="pluginsActiveId === 'text-tools'" class="plugins-panel plugins-panel-text-tools">
259
261
  <div class="plugins-panel-head">
260
262
  <div>
261
- <div class="plugins-panel-title">{{ t('plugins.textTools.title') }}</div>
263
+ <h2 class="plugins-panel-title">{{ t('plugins.textTools.title') }}</h2>
262
264
  </div>
263
265
  </div>
264
266
 
@@ -277,8 +279,9 @@
277
279
  <div class="prompt-compose-workspace">
278
280
  <div class="prompt-compose-main">
279
281
  <div class="prompt-compose-form">
280
- <label class="form-label">{{ t('plugins.textTools.compress.inputLabel') }}</label>
282
+ <label class="form-label" for="plugin-text-input">{{ t('plugins.textTools.compress.inputLabel') }}</label>
281
283
  <textarea
284
+ id="plugin-text-input"
282
285
  class="form-input prompt-editor-textarea"
283
286
  v-model="textToolsInput"
284
287
  rows="10"
@@ -292,7 +295,7 @@
292
295
  <div>
293
296
  <div class="prompt-vars-title">{{ t('plugins.textTools.compress.outputTitle') }}</div>
294
297
  </div>
295
- <button type="button" class="btn-mini" @click="copyTextToolsOutput" :disabled="!textToolsOutput">{{ t('plugins.textTools.compress.copy') }}</button>
298
+ <button type="button" class="btn-mini btn-confirm-mini" @click="copyTextToolsOutput" :disabled="!textToolsOutput">{{ t('plugins.textTools.compress.copy') }}</button>
296
299
  </div>
297
300
  <textarea class="form-input prompt-preview-textarea" :value="textToolsOutput" rows="10" readonly spellcheck="false" :aria-label="t('plugins.textTools.compress.outputAria')"></textarea>
298
301
  </div>