codexmate 0.1.37 → 0.1.39

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 (40) hide show
  1. package/README.md +2 -2
  2. package/README.vi.md +2 -2
  3. package/README.zh.md +2 -2
  4. package/cli/desktop-release.js +73 -0
  5. package/cli/update.js +27 -15
  6. package/cli.js +9 -3
  7. package/lib/model-test.js +126 -21
  8. package/package.json +4 -1
  9. package/plugins/prompt-templates/overview.mjs +1 -7
  10. package/web-ui/app.js +5 -0
  11. package/web-ui/modules/app.methods.install.mjs +38 -2
  12. package/web-ui/modules/app.methods.provider-cache.mjs +3 -0
  13. package/web-ui/modules/i18n/locales/en.mjs +1945 -2011
  14. package/web-ui/modules/i18n/locales/expand.mjs +18 -0
  15. package/web-ui/modules/i18n/locales/ja.mjs +1946 -2012
  16. package/web-ui/modules/i18n/locales/keys.mjs +1945 -0
  17. package/web-ui/modules/i18n/locales/vi.mjs +1945 -1980
  18. package/web-ui/modules/i18n/locales/zh-tw.mjs +1945 -2009
  19. package/web-ui/modules/i18n/locales/zh.mjs +1944 -2009
  20. package/web-ui/modules/i18n.mjs +3 -2
  21. package/web-ui/modules/model-test.mjs +114 -26
  22. package/web-ui/partials/index/layout-header.html +73 -71
  23. package/web-ui/partials/index/modals-basic.html +22 -9
  24. package/web-ui/partials/index/panel-plugins.html +23 -35
  25. package/web-ui/partials/index/plugin-file-sharing.html +4 -4
  26. package/web-ui/partials/index/routing-model-test.html +29 -9
  27. package/web-ui/res/web-ui-render.precompiled.js +1 -14467
  28. package/web-ui/styles/layout-shell.css +155 -209
  29. package/web-ui/styles/navigation-panels.css +8 -9
  30. package/web-ui/styles/plugins-panel.css +78 -132
  31. package/web-ui/styles/responsive.css +7 -7
  32. package/web-ui/styles/routing.css +8 -0
  33. package/web-ui/styles/settings-panel.css +16 -14
  34. package/web-ui/styles/sub-tabs.css +13 -0
  35. package/web-ui/styles/theme-dark-tokens.css +4 -0
  36. package/web-ui/styles/theme-dark.css +5 -13
  37. package/web-ui/styles/theme-ocean-tokens.css +3 -0
  38. package/web-ui/styles/theme-ocean.css +3 -12
  39. package/web-ui/styles/theme-violet-tokens.css +3 -0
  40. package/web-ui/styles/theme-violet.css +14 -38
@@ -70,12 +70,13 @@ export function createI18nMethods() {
70
70
  toggleLanguageMenu() {
71
71
  this.languageMenuOpen = !this.languageMenuOpen;
72
72
  },
73
- closeLanguageMenu() {
73
+ closeLanguageMenu(restoreFocus = false) {
74
74
  this.languageMenuOpen = false;
75
+ if (restoreFocus) this.$refs?.sideLanguageTrigger?.focus();
75
76
  },
76
77
  selectLanguage(nextLang) {
77
78
  this.setLang(nextLang);
78
- this.languageMenuOpen = false;
79
+ this.closeLanguageMenu(true);
79
80
  },
80
81
  handleLanguageMenuFocusOut(event) {
81
82
  const currentTarget = event && event.currentTarget;
@@ -2,18 +2,19 @@ import { api } from './api.mjs';
2
2
  import { buildMarkdownPreviewHtml } from '../logic.markdown-editor.mjs';
3
3
 
4
4
  const MAX_PROMPT_LENGTH = 8000;
5
+ const MODEL_TEST_SELECTIONS_KEY = 'codexmate.modelTest.selections';
5
6
 
6
7
  export function modelTestData() {
7
8
  return {
8
9
  modelTestTarget: 'codex', modelTestCatalogs: { codex: [], pi: [] }, modelTestProvider: '', modelTestModel: '',
9
- modelTestPrompt: '', modelTestLoading: false, modelTestRunning: false, modelTestError: '', modelTestResult: null
10
+ modelTestSelections: null, modelTestPrompt: '', modelTestLoading: false, modelTestRunning: false, modelTestError: '', modelTestResult: null, modelTestBatch: null, modelTestDiscovering: false
10
11
  };
11
12
  }
12
13
 
13
- export function createModelTestMethods({ request }) {
14
+ export function createModelTestMethods({ request, getStorage = () => globalThis.localStorage }) {
14
15
  return {
15
16
  async loadModelTestCatalog() {
16
- if (this.modelTestLoading || this.modelTestRunning) return;
17
+ if (this.modelTestLoading || this.modelTestRunning || this.modelTestDiscovering) return;
17
18
  this.modelTestLoading = true;
18
19
  this.modelTestError = '';
19
20
  try {
@@ -26,22 +27,63 @@ export function createModelTestMethods({ request }) {
26
27
  },
27
28
  modelTestProviders() { return this.modelTestCatalogs[this.modelTestTarget]; },
28
29
  modelTestModels() { return this.modelTestProviders().find(entry => entry.name === this.modelTestProvider)?.models || []; },
29
- selectModelTestProvider() {
30
+ canRunModelTest() {
31
+ return this.modelTestModel === null ? Boolean(this.modelTestProvider) : this.modelTestModels().includes(this.modelTestModel);
32
+ },
33
+ getModelTestSelections() {
34
+ if (this.modelTestSelections === null) {
35
+ let saved;
36
+ try { saved = JSON.parse(getStorage()?.getItem(MODEL_TEST_SELECTIONS_KEY) ?? 'null'); }
37
+ catch (_) { /* Storage may be blocked or corrupted; keep an in-memory selection. */ }
38
+ this.modelTestSelections = { codex: saved?.codex, pi: saved?.pi };
39
+ }
40
+ return this.modelTestSelections;
41
+ },
42
+ saveModelTestSelection() {
43
+ if (!this.modelTestProviders().some(({ name }) => name === this.modelTestProvider)) return;
44
+ const selections = this.getModelTestSelections();
45
+ const previous = selections[this.modelTestTarget];
46
+ selections[this.modelTestTarget] = {
47
+ provider: this.modelTestProvider,
48
+ models: { ...previous?.models, [this.modelTestProvider]: this.modelTestModel }
49
+ };
50
+ try { getStorage()?.setItem(MODEL_TEST_SELECTIONS_KEY, JSON.stringify(selections)); }
51
+ catch (_) { /* Retain the in-memory selection if writing fails. */ }
52
+ },
53
+ selectModelTestProvider(event) {
30
54
  const providers = this.modelTestProviders();
55
+ if (!providers.length) {
56
+ this.modelTestProvider = '';
57
+ this.modelTestModel = '';
58
+ return;
59
+ }
60
+ const saved = this.getModelTestSelections()[this.modelTestTarget];
31
61
  const current = this.modelTestTarget === 'codex' ? this.currentProvider : this.piActiveProvider;
32
- if (!providers.some(entry => entry.name === this.modelTestProvider)) {
33
- this.modelTestProvider = providers.find(entry => entry.name === current)?.name || providers[0]?.name || '';
62
+ const hasProvider = providers.some(({ name }) => name === this.modelTestProvider);
63
+ if (!hasProvider) {
64
+ this.modelTestProvider = providers.find(({ name }) => name === saved?.provider)?.name
65
+ || providers.find(({ name }) => name === current)?.name || providers[0].name;
34
66
  }
35
67
  const models = this.modelTestModels();
36
- const currentModel = this.modelTestTarget === 'codex' ? this.currentModels?.[this.modelTestProvider] || this.currentModel : this.piActiveModel;
37
- if (!models.includes(this.modelTestModel)) this.modelTestModel = models.includes(currentModel) ? currentModel : models[0] || '';
68
+ const savedModels = saved?.models;
69
+ const hasSavedModel = savedModels && Object.hasOwn(savedModels, this.modelTestProvider);
70
+ const savedModel = hasSavedModel ? savedModels[this.modelTestProvider] : undefined;
71
+ if ((event || !hasProvider) && (savedModel === null || models.includes(savedModel))) {
72
+ this.modelTestModel = savedModel;
73
+ } else if (!(models.includes(this.modelTestModel) || (!event && hasProvider && this.modelTestModel === null))) {
74
+ const currentModel = this.modelTestTarget === 'codex' ? this.currentModels?.[this.modelTestProvider] || this.currentModel : this.piActiveModel;
75
+ this.modelTestModel = models.includes(currentModel) ? currentModel : models[0] || '';
76
+ }
77
+ if (event) this.saveModelTestSelection();
38
78
  },
39
79
  setModelTestTarget(target) {
40
- if (this.modelTestRunning) return;
41
- this.modelTestTarget = target;
42
- this.modelTestProvider = '';
43
- this.modelTestModel = '';
44
- this.selectModelTestProvider();
80
+ if (this.modelTestRunning || this.modelTestDiscovering) return;
81
+ if (this.modelTestTarget !== target) {
82
+ this.modelTestTarget = target;
83
+ this.modelTestProvider = '';
84
+ this.modelTestModel = '';
85
+ this.selectModelTestProvider();
86
+ }
45
87
  if (!this.__webUiPreferencesApplying && typeof this.persistWebUiPreferences === 'function') {
46
88
  this.persistWebUiPreferences({ navigation: { modelTestTarget: target } });
47
89
  }
@@ -49,27 +91,73 @@ export function createModelTestMethods({ request }) {
49
91
  modelTestDuration(result = this.modelTestResult) {
50
92
  return this.t('modelTest.seconds', { seconds: (result.durationMs / 1000).toFixed(2) });
51
93
  },
52
- modelTestPreview() {
53
- return buildMarkdownPreviewHtml(this.modelTestResult?.text, globalThis.marked, globalThis.DOMPurify);
94
+ modelTestPreview(result = this.modelTestResult) {
95
+ return buildMarkdownPreviewHtml(result?.text, globalThis.marked, globalThis.DOMPurify);
96
+ },
97
+ toggleModelTestResult(result, event) {
98
+ result.open = event.currentTarget.open;
99
+ if (result.open && result.ok && !result.rendered) result.rendered = this.modelTestPreview(result);
100
+ },
101
+ async sendModelTest(identity, prompt, catalogId) {
102
+ const entry = { ...identity, prompt };
103
+ const started = Date.now();
104
+ try {
105
+ const result = await request('model-test-run', { ...entry, ...(catalogId === undefined ? {} : { catalogId }) });
106
+ return { ...entry, durationMs: Date.now() - started, ...result };
107
+ } catch (error) {
108
+ return { ...entry, ok: false, error: error.message, durationMs: Date.now() - started };
109
+ }
110
+ },
111
+ async runAllModelTests() {
112
+ if (this.modelTestRunning || this.modelTestLoading || this.modelTestDiscovering) return;
113
+ const prompt = this.modelTestPrompt.trim();
114
+ if (!prompt || this.modelTestPrompt.length > MAX_PROMPT_LENGTH || !this.modelTestProvider) {
115
+ this.modelTestError = this.t('modelTest.batchRequired');
116
+ return;
117
+ }
118
+ const identity = { target: this.modelTestTarget, provider: this.modelTestProvider };
119
+ this.modelTestError = '';
120
+ this.modelTestDiscovering = true;
121
+ try {
122
+ const catalog = await request('model-test-discover', identity);
123
+ if (catalog.error) throw new Error(catalog.error.message || catalog.error);
124
+ const models = [...new Set(catalog.models)];
125
+ if (!models.length) throw new Error(this.t('modelTest.batchEmpty'));
126
+ const confirmed = await this.requestConfirmDialog({
127
+ title: this.t('modelTest.runAll'), confirmText: this.t('modelTest.runAll'),
128
+ message: this.t('modelTest.confirmAll', { provider: identity.provider, count: models.length })
129
+ });
130
+ if (!confirmed) return;
131
+ this.modelTestRunning = true;
132
+ this.modelTestDiscovering = false;
133
+ this.modelTestResult = null;
134
+ this.modelTestBatch = { ...identity, prompt, total: models.length, current: '', results: [] };
135
+ for (const model of models) {
136
+ this.modelTestBatch.current = model;
137
+ const result = await this.sendModelTest({ ...identity, model }, prompt, catalog.catalogId);
138
+ this.modelTestBatch.results.push(result);
139
+ }
140
+ } catch (error) { this.modelTestError = error.message; }
141
+ finally {
142
+ this.modelTestDiscovering = false;
143
+ this.modelTestRunning = false;
144
+ if (this.modelTestBatch) this.modelTestBatch.current = '';
145
+ }
54
146
  },
55
147
  async runModelTest() {
56
- if (this.modelTestRunning || this.modelTestLoading) return;
148
+ if (this.modelTestRunning || this.modelTestLoading || this.modelTestDiscovering) return;
149
+ if (this.modelTestModel === null) return this.runAllModelTests();
57
150
  const prompt = this.modelTestPrompt.trim();
58
151
  if (!prompt || this.modelTestPrompt.length > MAX_PROMPT_LENGTH || !this.modelTestModels().includes(this.modelTestModel)) {
59
152
  this.modelTestError = this.t('modelTest.required'); return;
60
153
  }
61
154
  this.modelTestRunning = true;
62
155
  this.modelTestError = '';
63
- this.modelTestResult = { target: this.modelTestTarget, provider: this.modelTestProvider, model: this.modelTestModel, prompt };
64
- const started = Date.now();
65
- try {
66
- const result = await request('model-test-run', {
67
- target: this.modelTestTarget, provider: this.modelTestProvider, model: this.modelTestModel, prompt
68
- });
69
- this.modelTestResult = { ...this.modelTestResult, durationMs: Date.now() - started, ...result };
70
- } catch (error) {
71
- this.modelTestResult = { ...this.modelTestResult, ok: false, error: error.message, durationMs: Date.now() - started };
72
- } finally { this.modelTestRunning = false; }
156
+ const identity = { target: this.modelTestTarget, provider: this.modelTestProvider, model: this.modelTestModel };
157
+ this.modelTestBatch = null;
158
+ this.modelTestResult = { ...identity, prompt };
159
+ try { this.modelTestResult = await this.sendModelTest(identity, prompt); }
160
+ finally { this.modelTestRunning = false; }
73
161
  }
74
162
  };
75
163
  }
@@ -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('plugins.catalog.promptTemplates.title')">{{ t('plugins.catalog.promptTemplates.title') }}</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>
@@ -413,31 +412,20 @@
413
412
  </div>
414
413
 
415
414
  <div class="side-rail-footer">
416
- <button
417
- type="button"
418
- class="side-rail-action side-announcement-button"
419
- @click="openProviderCacheAnnouncementModal">
420
- <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" aria-hidden="true">
421
- <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"/>
422
- <path d="M8 16a2 2 0 0 0 4 0"/>
423
- </svg>
424
- <span>{{ t('announcement.providerCache.open') }}</span>
425
- <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="M6 4l4 4-4 4"/></svg>
426
- </button>
427
- <div class="side-language-menu">
415
+ <div class="side-language-menu" @focusout="handleLanguageMenuFocusOut" @keydown.esc.stop.prevent="closeLanguageMenu(true)">
428
416
  <button
429
417
  type="button"
430
418
  class="side-rail-action"
431
419
  :aria-label="t('settings.language.sideLabel', { language: currentLanguageLabel() })"
432
420
  :aria-expanded="languageMenuOpen ? 'true' : 'false'"
433
421
  aria-haspopup="menu"
434
- @click="toggleLanguageMenu"
435
- @keydown.esc.prevent="closeLanguageMenu">
422
+ ref="sideLanguageTrigger"
423
+ @click="toggleLanguageMenu">
436
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>
437
- <span>{{ currentLanguageLabel() }}</span>
438
- <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 6l4 4 4-4"/></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>
439
427
  </button>
440
- <div v-if="languageMenuOpen" class="side-language-dropdown" role="menu" @focusout="handleLanguageMenuFocusOut">
428
+ <div v-if="languageMenuOpen" class="side-language-dropdown" role="menu">
441
429
  <button
442
430
  v-for="option in languageOptions()"
443
431
  :key="option.code"
@@ -453,13 +441,27 @@
453
441
  </button>
454
442
  </div>
455
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>
456
458
  </div>
457
459
  </aside>
458
460
  <main class="main-panel">
459
461
  <div class="main-panel-topbar">
460
462
  <div class="panel-header panel-header-refined" v-if="!sessionStandalone">
461
463
  <div class="panel-header-copy">
462
- <div v-if="mainTabKicker" class="panel-kicker">{{ mainTabKicker }}</div>
464
+ <div v-if="mainTabKicker && mainTab !== 'plugins'" class="panel-kicker">{{ mainTabKicker }}</div>
463
465
  <h1 class="main-title">{{ mainTabTitle }}</h1>
464
466
  </div>
465
467
  </div>