codexmate 0.1.33 → 0.1.34

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 (61) hide show
  1. package/README.md +13 -2
  2. package/README.vi.md +13 -2
  3. package/README.zh.md +13 -2
  4. package/cli/local-bridge.js +10 -6
  5. package/cli/openai-chat-routing.js +38 -0
  6. package/cli/routing-bridge.js +143 -0
  7. package/cli/system-prompt-files.js +75 -53
  8. package/cli.js +162 -4
  9. package/lib/file-sharing-lan.js +111 -0
  10. package/lib/file-sharing.js +196 -0
  11. package/lib/model-test-client.js +61 -0
  12. package/lib/model-test.js +126 -0
  13. package/lib/routing-groups.js +161 -0
  14. package/package.json +1 -1
  15. package/plugins/file-sharing/manifest.mjs +10 -0
  16. package/plugins/file-sharing/methods.mjs +101 -0
  17. package/plugins/file-sharing/overview.mjs +3 -0
  18. package/plugins/file-sharing/ownership.mjs +5 -0
  19. package/plugins/registry.mjs +3 -0
  20. package/web-ui/app.js +15 -2
  21. package/web-ui/index.html +3 -2
  22. package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
  23. package/web-ui/modules/app.methods.agents.mjs +12 -0
  24. package/web-ui/modules/app.methods.install.mjs +23 -3
  25. package/web-ui/modules/app.methods.navigation.mjs +2 -0
  26. package/web-ui/modules/app.methods.prompts-editor.mjs +7 -4
  27. package/web-ui/modules/app.methods.session-actions.mjs +2 -2
  28. package/web-ui/modules/app.methods.system-prompt.mjs +88 -17
  29. package/web-ui/modules/app.methods.theme.mjs +4 -3
  30. package/web-ui/modules/app.methods.web-ui-preferences.mjs +7 -0
  31. package/web-ui/modules/i18n/locales/en.mjs +123 -4
  32. package/web-ui/modules/i18n/locales/ja.mjs +123 -4
  33. package/web-ui/modules/i18n/locales/vi.mjs +123 -4
  34. package/web-ui/modules/i18n/locales/zh-tw.mjs +123 -4
  35. package/web-ui/modules/i18n/locales/zh.mjs +123 -4
  36. package/web-ui/modules/model-test.mjs +82 -0
  37. package/web-ui/modules/plugins.methods.mjs +3 -1
  38. package/web-ui/modules/prompt-ecosystem.methods.mjs +4 -3
  39. package/web-ui/modules/routing.mjs +206 -0
  40. package/web-ui/partials/index/layout-header.html +33 -12
  41. package/web-ui/partials/index/modals-basic.html +15 -0
  42. package/web-ui/partials/index/panel-plugins.html +3 -9
  43. package/web-ui/partials/index/panel-prompts.html +13 -7
  44. package/web-ui/partials/index/panel-routing.html +3 -0
  45. package/web-ui/partials/index/panel-settings.html +11 -1
  46. package/web-ui/partials/index/plugin-file-sharing.html +47 -0
  47. package/web-ui/partials/index/routing-model-test.html +53 -0
  48. package/web-ui/partials/index/session-diagnostics.html +7 -4
  49. package/web-ui/res/web-ui-render.precompiled.js +606 -105
  50. package/web-ui/styles/base-theme.css +1 -1
  51. package/web-ui/styles/modals-core.css +6 -5
  52. package/web-ui/styles/navigation-panels.css +4 -0
  53. package/web-ui/styles/plugins-panel.css +40 -1
  54. package/web-ui/styles/responsive.css +10 -5
  55. package/web-ui/styles/routing.css +78 -0
  56. package/web-ui/styles/session-features.css +117 -7
  57. package/web-ui/styles/settings-panel.css +30 -0
  58. package/web-ui/styles/system-prompt.css +8 -7
  59. package/web-ui/styles/theme-violet-tokens.css +52 -0
  60. package/web-ui/styles/theme-violet.css +1736 -0
  61. package/web-ui/styles.css +2 -0
@@ -204,7 +204,7 @@ export function createPromptsEditorMethods(options = {}) {
204
204
  (this.projectClaudeMdPath || '').trim(),
205
205
  this.sysPromptScope || 'global',
206
206
  this.sysPromptMode || 'system'
207
- ].join('|');
207
+ ].concat(this.sysPromptFileName ? [this.sysPromptFileName] : []).join('|');
208
208
  },
209
209
 
210
210
  // Lazy loader for the path-reference dropdown. Fetches the OTHER tabs'
@@ -220,7 +220,7 @@ export function createPromptsEditorMethods(options = {}) {
220
220
  if (this.promptsPathReferenceCacheKey === cacheKey && !this.promptsPathReferenceLoading) {
221
221
  return Promise.resolve();
222
222
  }
223
- if (this.promptsPathReferenceLoading && this._promptsPathReferencePromise) {
223
+ if (this.promptsPathReferenceLoading && this._promptsPathReferencePromise && this.promptsPathReferenceCacheKey === cacheKey) {
224
224
  return this._promptsPathReferencePromise;
225
225
  }
226
226
  if (typeof api !== 'function') {
@@ -245,6 +245,7 @@ export function createPromptsEditorMethods(options = {}) {
245
245
  }
246
246
  };
247
247
  this.promptsPathReferenceLoading = true;
248
+ this.promptsPathReferenceCacheKey = cacheKey;
248
249
  const promise = Promise.all([
249
250
  fetchEntry('get-agents-file', { metaOnly: true }),
250
251
  fetchEntry('get-opencode-agents-file', { metaOnly: true }),
@@ -252,8 +253,9 @@ export function createPromptsEditorMethods(options = {}) {
252
253
  projectPath
253
254
  ? fetchEntry('get-claude-md-file', { baseDir: projectPath, metaOnly: true })
254
255
  : Promise.resolve(null),
255
- fetchEntry('get-system-prompt', { scope, mode })
256
+ fetchEntry('get-system-prompt', { scope, mode, ...(this.sysPromptFileName ? { fileName: this.sysPromptFileName } : {}) })
256
257
  ]).then((results) => {
258
+ if (cacheKey !== this.buildPromptsPathReferenceCacheKey()) return;
257
259
  this.promptsPathReferencePaths = {
258
260
  codex: results[0],
259
261
  opencode: results[1],
@@ -263,6 +265,7 @@ export function createPromptsEditorMethods(options = {}) {
263
265
  };
264
266
  this.promptsPathReferenceCacheKey = cacheKey;
265
267
  }).finally(() => {
268
+ if (this._promptsPathReferencePromise !== promise) return;
266
269
  this.promptsPathReferenceLoading = false;
267
270
  this._promptsPathReferencePromise = null;
268
271
  });
@@ -275,7 +278,7 @@ export function createPromptsEditorMethods(options = {}) {
275
278
  currentTab: this.promptsSubTab,
276
279
  paths: this.promptsPathReferencePaths || {},
277
280
  t: (key, params) => (typeof this.t === 'function' ? this.t(key, params) : key),
278
- systemFile: (this.sysPromptMode || 'system') === 'append' ? 'APPEND_SYSTEM.md' : 'SYSTEM.md'
281
+ systemFile: this.sysPromptFileName || ((this.sysPromptMode || 'system') === 'append' ? 'APPEND_SYSTEM.md' : 'SYSTEM.md')
279
282
  });
280
283
  },
281
284
 
@@ -539,13 +539,13 @@ export function createSessionActionMethods(options = {}) {
539
539
  try {
540
540
  if (navigator.clipboard && window.isSecureContext) {
541
541
  await navigator.clipboard.writeText(text);
542
- this.showMessage('已复制命令', 'success');
542
+ this.showMessage(this.t('toast.copy.ok'), 'success');
543
543
  return;
544
544
  }
545
545
  } catch (_) {}
546
546
  const ok = this.fallbackCopyText(text);
547
547
  if (ok) {
548
- this.showMessage('已复制命令', 'success');
548
+ this.showMessage(this.t('toast.copy.ok'), 'success');
549
549
  return;
550
550
  }
551
551
  this.showMessage(this.t('toast.copy.fail'), 'error');
@@ -14,19 +14,83 @@ export function createSystemPromptMethods(options = {}) {
14
14
 
15
15
  return {
16
16
 
17
+ currentSysPromptFileName() {
18
+ return this.sysPromptFileName || (this.sysPromptMode === 'append' ? 'APPEND_SYSTEM.md' : 'SYSTEM.md');
19
+ },
20
+
21
+ isSysPromptCustomFile() {
22
+ return !['SYSTEM.md', 'APPEND_SYSTEM.md'].includes(this.currentSysPromptFileName());
23
+ },
24
+
25
+ sysPromptTargetParams() {
26
+ return {
27
+ scope: this.sysPromptScope || 'global', mode: this.sysPromptMode || 'append',
28
+ ...(this.sysPromptFileName ? { fileName: this.sysPromptFileName } : {})
29
+ };
30
+ },
31
+
32
+ canSwitchSysPromptTarget() {
33
+ if (this.sysPromptLoading || this.sysPromptSaving || this.sysPromptDiffVisible) return false;
34
+ if (!this.hasSysPromptContentChanged()) return true;
35
+ this.showMessage(this.t('sysPrompt.fileUnsaved'), 'info');
36
+ return false;
37
+ },
38
+
39
+ async loadSystemPromptFiles() {
40
+ if (this.sysPromptFilesLoading) return;
41
+ const scope = this.sysPromptScope || 'global';
42
+ const token = issueLatestRequestToken(this, '_sysPromptFilesRequestToken');
43
+ this.sysPromptFilesLoading = true;
44
+ try {
45
+ const result = await api('list-system-prompt-files', { scope });
46
+ if (!isLatestRequestToken(this, '_sysPromptFilesRequestToken', token) || scope !== this.sysPromptScope) return;
47
+ if (result.error) throw new Error(result.error);
48
+ this.sysPromptFiles = result.files;
49
+ const isListed = result.files.some(file => file.filename === this.currentSysPromptFileName());
50
+ if (!isListed) this.sysPromptFileMissing = true;
51
+ this.sysPromptFilesError = !isListed ? this.t('sysPrompt.fileMissing')
52
+ : (this.sysPromptFileMissing ? this.sysPromptFilesError : '');
53
+ } catch (error) {
54
+ if (isLatestRequestToken(this, '_sysPromptFilesRequestToken', token) && scope === this.sysPromptScope) {
55
+ this.sysPromptFilesError = error.message || this.t('toast.load.fail');
56
+ }
57
+ } finally {
58
+ if (isLatestRequestToken(this, '_sysPromptFilesRequestToken', token)) this.sysPromptFilesLoading = false;
59
+ }
60
+ },
61
+
62
+ switchSysPromptFileName(filename, event) {
63
+ if (event) event.target.value = this.currentSysPromptFileName();
64
+ if (filename === this.currentSysPromptFileName() || !this.canSwitchSysPromptTarget()) return;
65
+ if (!this.sysPromptFiles.some(file => file.filename === filename)) return;
66
+ this.sysPromptFileName = filename;
67
+ if (filename === 'SYSTEM.md') this.sysPromptMode = 'system';
68
+ if (filename === 'APPEND_SYSTEM.md') this.sysPromptMode = 'append';
69
+ this.closeSysHistory();
70
+ this.loadSystemPrompt();
71
+ },
72
+
17
73
  switchSysPromptScope(scope) {
18
- if (this.sysPromptLoading || this.sysPromptSaving) return;
74
+ if (!this.canSwitchSysPromptTarget()) return;
19
75
  const normalized = scope === 'project' ? scope : 'global';
20
76
  if (normalized === this.sysPromptScope) return;
21
77
  this.sysPromptScope = normalized;
78
+ this.sysPromptFileName = '';
79
+ this.sysPromptFiles = [];
80
+ this._sysPromptFilesRequestToken = null;
81
+ this.sysPromptFilesLoading = false;
82
+ this.closeSysHistory();
83
+ this.loadSystemPromptFiles();
22
84
  this.loadSystemPrompt();
23
85
  },
24
86
 
25
87
  switchSysPromptMode(mode) {
26
- if (this.sysPromptLoading || this.sysPromptSaving) return;
88
+ if (!this.canSwitchSysPromptTarget()) return;
27
89
  const normalized = mode === 'system' ? mode : 'append';
28
90
  if (normalized === this.sysPromptMode) return;
29
91
  this.sysPromptMode = normalized;
92
+ this.sysPromptFileName = normalized === 'system' ? 'SYSTEM.md' : 'APPEND_SYSTEM.md';
93
+ this.closeSysHistory();
30
94
  this.loadSystemPrompt();
31
95
  },
32
96
 
@@ -53,24 +117,29 @@ export function createSystemPromptMethods(options = {}) {
53
117
  const mode = this.sysPromptMode || 'append';
54
118
  const content = typeof this.sysPromptContent === 'string' ? this.sysPromptContent : '';
55
119
  const original = typeof this.sysPromptOriginalContent === 'string' ? this.sysPromptOriginalContent : '';
56
- return `${scope}::${mode}::${content.length}::${content}::${original.length}::${original}`;
120
+ return `${scope}::${mode}::${this.currentSysPromptFileName()}::${content.length}::${content}::${original.length}::${original}`;
57
121
  },
58
122
 
59
123
  async loadSystemPrompt() {
60
124
  const requestToken = issueLatestRequestToken(this, '_sysPromptOpenRequestToken');
125
+ const filename = this.currentSysPromptFileName();
61
126
  this.sysPromptLoading = true;
127
+ this.sysPromptFileMissing = true;
62
128
  this.resetSysPromptDiffState();
63
129
  try {
64
- const params = {
65
- scope: this.sysPromptScope || 'global',
66
- mode: this.sysPromptMode || 'append'
67
- };
130
+ const params = this.sysPromptTargetParams();
68
131
  const res = await api('get-system-prompt', params);
69
- if (!isLatestRequestToken(this, '_sysPromptOpenRequestToken', requestToken)) return;
70
- if (res.error) {
71
- this.showMessage(res.error, 'error');
132
+ if (!isLatestRequestToken(this, '_sysPromptOpenRequestToken', requestToken)
133
+ || params.scope !== this.sysPromptScope || filename !== this.currentSysPromptFileName()) return;
134
+ if (res.error || (this.isSysPromptCustomFile() && !res.exists)) {
135
+ this.sysPromptFileMissing = true;
136
+ this.sysPromptFilesError = res.error || this.t('sysPrompt.fileMissing');
137
+ this.showMessage(this.sysPromptFilesError, 'error');
72
138
  return;
73
139
  }
140
+ this.sysPromptFileName = res.filename || this.currentSysPromptFileName();
141
+ this.sysPromptFileMissing = false;
142
+ this.sysPromptFilesError = '';
74
143
  this.sysPromptContent = res.content || '';
75
144
  this.sysPromptOriginalContent = this.sysPromptContent;
76
145
  this.sysPromptPath = res.path || '';
@@ -79,7 +148,9 @@ export function createSystemPromptMethods(options = {}) {
79
148
  this.sysHistoryBucket = res.historyBucket || '';
80
149
  } catch (e) {
81
150
  if (!isLatestRequestToken(this, '_sysPromptOpenRequestToken', requestToken)) return;
82
- this.showMessage(this.t('toast.load.fail'), 'error');
151
+ this.sysPromptFileMissing = true;
152
+ this.sysPromptFilesError = this.t('toast.load.fail');
153
+ this.showMessage(this.sysPromptFilesError, 'error');
83
154
  } finally {
84
155
  if (isLatestRequestToken(this, '_sysPromptOpenRequestToken', requestToken)) {
85
156
  this.sysPromptLoading = false;
@@ -147,8 +218,7 @@ export function createSystemPromptMethods(options = {}) {
147
218
  }
148
219
  const rpcParams = {
149
220
  ...previewRequest.params,
150
- scope: this.sysPromptScope || 'global',
151
- mode: this.sysPromptMode || 'append'
221
+ ...this.sysPromptTargetParams()
152
222
  };
153
223
  const res = await apiWithMeta('preview-system-prompt-diff', rpcParams);
154
224
  if (!shouldApplyPreviewState()) return;
@@ -188,7 +258,7 @@ export function createSystemPromptMethods(options = {}) {
188
258
  },
189
259
 
190
260
  async applySystemPrompt() {
191
- if (this.sysPromptSaving) return;
261
+ if (this.sysPromptSaving || this.sysPromptFileMissing) return;
192
262
  if (!this.sysPromptDiffVisible) {
193
263
  if (!this.hasSysPromptContentChanged()) {
194
264
  this.showMessage(this.t('toast.noChanges'), 'info');
@@ -214,8 +284,7 @@ export function createSystemPromptMethods(options = {}) {
214
284
  this.sysPromptSaving = true;
215
285
  try {
216
286
  const params = {
217
- scope: this.sysPromptScope || 'global',
218
- mode: this.sysPromptMode || 'append',
287
+ ...this.sysPromptTargetParams(),
219
288
  content: this.sysPromptContent,
220
289
  baseHash: this.sysPromptHash
221
290
  };
@@ -248,7 +317,7 @@ export function createSystemPromptMethods(options = {}) {
248
317
  exportSysPromptContent() {
249
318
  const content = typeof this.sysPromptContent === 'string' ? this.sysPromptContent : '';
250
319
  if (!content) return;
251
- const filename = (this.sysPromptMode === 'system' ? 'SYSTEM.md' : 'APPEND_SYSTEM.md');
320
+ const filename = this.sysPromptFileName || (this.sysPromptMode === 'system' ? 'SYSTEM.md' : 'APPEND_SYSTEM.md');
252
321
  this.downloadTextFile(filename, content, 'text/markdown;charset=utf-8');
253
322
  },
254
323
 
@@ -292,6 +361,7 @@ export function createSystemPromptMethods(options = {}) {
292
361
  if (typeof this.sysHistoryBucket === 'string' && this.sysHistoryBucket) {
293
362
  return this.sysHistoryBucket;
294
363
  }
364
+ if (this.isSysPromptCustomFile()) return '';
295
365
  const scope = this.sysPromptScope || 'global';
296
366
  return 'system_' + scope + '_global';
297
367
  },
@@ -299,6 +369,7 @@ export function createSystemPromptMethods(options = {}) {
299
369
  async openSysHistory() {
300
370
  if (this.sysHistoryLoading) return;
301
371
  const bucket = this.resolveSysHistoryBucket();
372
+ if (!bucket || this.sysPromptFileMissing) return;
302
373
  this.sysHistoryVisible = true;
303
374
  this.sysHistoryError = '';
304
375
  await this.loadSysHistory(bucket);
@@ -1,16 +1,17 @@
1
1
  const THEME_STORAGE_CACHE_KEY = 'codexmateThemeCache';
2
+ const NON_DEFAULT_THEMES = ['dark', 'ocean', 'violet'];
2
3
 
3
4
  export function createThemeMethods() {
4
5
  return {
5
6
  normalizeTheme(value) {
6
7
  const normalized = typeof value === 'string' ? value.trim().toLowerCase() : '';
7
- return normalized === 'dark' || normalized === 'ocean' ? normalized : 'light';
8
+ return NON_DEFAULT_THEMES.includes(normalized) ? normalized : 'light';
8
9
  },
9
10
  applyDocumentTheme() {
10
11
  try {
11
12
  if (typeof document === 'undefined' || !document.documentElement) return;
12
13
  const next = this.normalizeTheme(this.theme);
13
- if (next === 'dark' || next === 'ocean') {
14
+ if (NON_DEFAULT_THEMES.includes(next)) {
14
15
  document.documentElement.setAttribute('data-theme', next);
15
16
  } else {
16
17
  document.documentElement.removeAttribute('data-theme');
@@ -20,7 +21,7 @@ export function createThemeMethods() {
20
21
  // the server-side webUi preference store.
21
22
  const storage = typeof globalThis !== 'undefined' ? globalThis.localStorage : null;
22
23
  if (storage && typeof storage.setItem === 'function' && typeof storage.removeItem === 'function') {
23
- if (next === 'dark' || next === 'ocean') storage.setItem(THEME_STORAGE_CACHE_KEY, next);
24
+ if (NON_DEFAULT_THEMES.includes(next)) storage.setItem(THEME_STORAGE_CACHE_KEY, next);
24
25
  else storage.removeItem(THEME_STORAGE_CACHE_KEY);
25
26
  }
26
27
  } catch (_) {}
@@ -108,6 +108,8 @@ function normalizeNavigationSnapshot(vm, source = {}) {
108
108
  return {
109
109
  mainTab: typeof source.mainTab === 'string' ? source.mainTab : vm.mainTab,
110
110
  configMode: typeof source.configMode === 'string' ? source.configMode : vm.configMode,
111
+ modelTestTarget: source.modelTestTarget === 'pi' || source.modelTestTarget === 'codex'
112
+ ? source.modelTestTarget : vm.modelTestTarget === 'pi' ? 'pi' : 'codex',
111
113
  settingsTab: typeof source.settingsTab === 'string' ? source.settingsTab : vm.settingsTab,
112
114
  skillsTargetApp: source.skillsTargetApp === 'claude' || source.skillsTargetApp === 'codex' || source.skillsTargetApp === 'pi'
113
115
  ? source.skillsTargetApp
@@ -481,6 +483,11 @@ export function createWebUiPreferencesMethods(options = {}) {
481
483
  if (Array.isArray(source.deletedClaudeSettingsImports)) {
482
484
  this.deletedClaudeSettingsImports = source.deletedClaudeSettingsImports;
483
485
  }
486
+ const modelTestTarget = source.navigation && source.navigation.modelTestTarget;
487
+ if (modelTestTarget === 'codex' || modelTestTarget === 'pi') {
488
+ if (typeof this.setModelTestTarget === 'function') this.setModelTestTarget(modelTestTarget);
489
+ else this.modelTestTarget = modelTestTarget;
490
+ }
484
491
  if (shouldApplyNavigation && source.navigation && typeof source.navigation === 'object') {
485
492
  const nav = source.navigation;
486
493
  if (typeof nav.settingsTab === 'string' && typeof this.normalizeSettingsTab === 'function') {
@@ -1,4 +1,103 @@
1
1
  const en = Object.freeze({
2
+ "modelTest.title": "Live test",
3
+ "modelTest.selection": "Choose a test model",
4
+ "modelTest.source": "Configuration source",
5
+ "modelTest.selectModel": "Select a model",
6
+ "modelTest.prompt": "Your message",
7
+ "modelTest.run": "Send test",
8
+ "modelTest.running": "Testing…",
9
+ "modelTest.completed": "Replied",
10
+ "modelTest.failed": "Test failed",
11
+ "modelTest.seconds": "{seconds} s",
12
+ "modelTest.loading": "Loading configured models…",
13
+ "modelTest.empty": "No configured models.",
14
+ "modelTest.required": "Enter a message and select a configured model.",
15
+ "modelTest.incomplete": "The reply reached the output limit and is incomplete.",
16
+
17
+ "routing.openai.purpose": "Expose a model routing API for OpenAI-compatible clients, with primary and backup models.",
18
+ "routing.openai.active": "OpenAI Chat configured for “{name}”.",
19
+ "routing.openai.off": "API disabled. Create a group and click Enable this group.",
20
+ "routing.openai.bindingHint": "Enabling a group activates this API; stopping it never falls back to Codex or Claude.",
21
+ "routing.openai.disable": "Disable API access",
22
+ "routing.openai.providers": "Reuse providers managed in Codex configuration, calling only Chat Completions. Codex need not be installed; neither native agent connection is changed.",
23
+ "routing.openai.baseUrl": "Client Base URL",
24
+ "routing.openai.model": "Client model ID",
25
+ "routing.openai.auth": "Use the CODEXMATE_HTTP_TOKEN access token as the client API key, not a provider secret. This token also grants access to the management API.",
26
+ "routing.openai.localOnly": "Without an access token, only loopback clients are allowed. If a client requires an API key, use local; it is never forwarded upstream.",
27
+ "routing.openai.alias": "routing is a fixed entry alias; the group selects the actual upstream models.",
28
+ "routing.openai.permission": "Group management uses Codex provider write access. Granting it allows local Codex configuration changes; enabling this group only saves routing selection.",
29
+ "routing.openai.use": "Enter the address and model ID below in an OpenAI-compatible client.",
30
+ "routing.purpose": "Set the model order for {agent}: choose a primary, then add backups if needed.",
31
+ "routing.help.title": "How it works and limits",
32
+ "routing.help.scope": "This page routes model requests. It does not start agents, run tasks or combine answers. Enabled means configuration is connected, not that a provider has passed a live check.",
33
+ "routing.help.errors": "Try the next group member only before output starts on HTTP 408 (timeout), 429 (rate limit) or 5xx (server error). Other 4xx errors and started replies never trigger a switch.",
34
+ "routing.help.model": "A provider supplies models. Name the group freely; enter a supported model ID for each group member, not a nickname. Existing configuration is prefilled; unknown IDs stay blank.",
35
+ "routing.start.create": "Create a model group: choose a primary; backups are optional.",
36
+ "routing.start.save": "Save the group.",
37
+ "routing.start.enable": "Click Enable this group.",
38
+ "routing.start.use": "After first activation, restart the selected agent and ask there.",
39
+ "routing.role.primary": "Primary",
40
+ "routing.role.backup": "Backup {index}",
41
+ "routing.role.member": "Model {index}",
42
+ "routing.editActive": "Editing an enabled group. Saved changes affect later requests; the current request is not replayed.",
43
+ "routing.defaultName": "{target} model group {index}",
44
+ "routing.nameRequired": "Enter a model group name.",
45
+ "routing.memberRequired": "Select a provider and enter a model for member {index}.",
46
+ "routing.memberMissing": "Member {index} has an unavailable provider. Replace or remove it.",
47
+ "routing.memberDuplicate": "Member {index} duplicates another member. Change its model or remove it.",
48
+ "routing.notActive": "This group is not active in the configuration. Refresh to check.",
49
+ "routing.activationUnconfirmed": "Binding completed; activation is unconfirmed. Refresh to check: {message}",
50
+ "routing.groupActivated": "“{name}” configured. For first use, restart the selected agent, then ask there.",
51
+ "routing.noProviders": "No selectable providers here yet. Add or check them in configuration.",
52
+ "routing.modelHint": "Enter a model ID supported by this provider",
53
+ "routing.inUse": "Enabled",
54
+ "routing.awaitingEnable": "Awaiting activation",
55
+ "routing.working": "Working…",
56
+ "routing.restorePool": "Stop using this group",
57
+ "routing.useGroup": "Enable this group",
58
+ "routing.bindEnable": "Enable this group",
59
+ "tab.routing": "Model test",
60
+ "kicker.routing": "",
61
+ "title.routing": "Model test",
62
+ "subtitle.routing": "",
63
+ "routing.target": "Connection target",
64
+ "routing.refresh": "Refresh",
65
+ "routing.create": "New model group",
66
+ "routing.failed": "Model routing setup did not finish.",
67
+ "routing.updated": "Model routing settings saved.",
68
+ "routing.loading": "Reading model routing settings",
69
+ "routing.bindingHint": "Creating a group does not enable it. For first use, click Enable this group.",
70
+ "routing.readOnly": "View only. Write access allows changes to this agent’s local configuration.",
71
+ "routing.edit": "Edit model group",
72
+ "routing.name": "Group name",
73
+ "routing.strategy": "Model selection",
74
+ "routing.strategy.order": "Primary first",
75
+ "routing.strategy.rotate": "Take turns",
76
+ "routing.strategy.order.hint": "Use the primary first; try backups on timeouts, rate limits or server errors before output starts.",
77
+ "routing.strategy.rotate.hint": "Rotate the preferred model per request, not multiple answers together.",
78
+ "routing.provider": "Provider",
79
+ "routing.model": "Model",
80
+ "routing.selectProvider": "Select provider",
81
+ "routing.unavailable": "Missing or excluded",
82
+ "routing.moveUp": "Move member up",
83
+ "routing.moveDown": "Move member down",
84
+ "routing.removeMember": "Remove member",
85
+ "routing.addMember": "Add member",
86
+ "routing.save": "Save",
87
+ "routing.empty": "No model groups yet. Follow these steps.",
88
+ "routing.openConfig": "Open configuration",
89
+ "routing.bound": "Bound",
90
+ "routing.memberCount": "View {count} model configurations",
91
+ "routing.unbind": "Unbind",
92
+ "routing.bind": "Bind only",
93
+ "routing.delete": "Delete",
94
+ "routing.deleteConfirm": "Delete routing group “{name}”? This cannot be undone.",
95
+ "routing.bridge.disable": "Restore agent configuration",
96
+ "routing.bridge.enable": "Connect model routing",
97
+ "routing.state.group": "Agent configured to use “{name}”.",
98
+ "routing.state.legacy": "Connected configuration; no model group selected.",
99
+ "routing.state.pending": "Enabled, but agent configuration is not connected.",
100
+ "routing.state.off": "Not enabled. Choose a group and click Enable this group.",
2
101
  "features.searchScope": "Search scope",
3
102
  "features.moreFilters": "More filters",
4
103
  "features.bookmarkHint": "Use the bookmark icon beside a message to keep useful excerpts.",
@@ -363,6 +462,7 @@ const en = Object.freeze({
363
462
  'side.update.availableWithVersion': 'Update available v{version}',
364
463
  'side.update.meta': 'Open update command',
365
464
  'side.update.metaVersions': 'Current v{current} → latest v{latest}',
465
+ 'side.update.commandHint': 'Run this in a terminal on the host running Codex Mate. Restart the service after a successful update.',
366
466
  'side.update.checkFailed': 'Failed to check latest version',
367
467
  'side.update.check': 'Check for updates',
368
468
  'side.update.checking': 'Checking for updates…',
@@ -483,7 +583,6 @@ const en = Object.freeze({
483
583
  'prompts.project.pathLabel': 'Project path (optional)',
484
584
  'prompts.project.selectPlaceholder': '-- Global (~/.claude/CLAUDE.md) --',
485
585
  'prompts.project.manualPlaceholder': 'Or enter a project root path...',
486
- 'prompts.project.detected': 'Editing CLAUDE.md in: {path}',
487
586
  'dashboard.doctor.title': 'Doctor',
488
587
  'dashboard.doctor.runChecks': 'Run checks',
489
588
  'dashboard.doctor.checking': 'Checking...',
@@ -582,11 +681,28 @@ const en = Object.freeze({
582
681
 
583
682
  // Plugins panel
584
683
  'plugins.sidebar.title': 'Plugins',
585
- 'plugins.sidebar.note': 'Reusable, standardized utilities. Future custom plugins should follow the same structure.',
586
684
  'plugins.sidebar.ariaList': 'Plugin list',
587
685
  'plugins.catalog.promptTemplates.title': 'Prompt templates',
588
686
  'plugins.catalog.promptTemplates.description': 'Standardized, template-driven prompt tools with variables, copy, and export helpers.',
589
687
  'plugins.status.standard': 'standard',
688
+ 'plugins.fileSharing.title': 'File sharing',
689
+ 'plugins.fileSharing.chooseFiles': 'Choose files',
690
+ 'plugins.fileSharing.chooseFolder': 'Choose folder',
691
+ 'plugins.fileSharing.confirm': 'Upload only the files listed below. Anyone authorized to access this Web instance can download them.',
692
+ 'plugins.fileSharing.upload': 'Upload',
693
+ 'plugins.fileSharing.empty': 'No shared files',
694
+ 'plugins.fileSharing.files': '{count} files',
695
+ 'plugins.fileSharing.remove': 'Remove share',
696
+ 'plugins.fileSharing.bytes': '{size} bytes',
697
+ 'plugins.fileSharing.download': 'Download',
698
+ 'plugins.fileSharing.copyLink': 'Copy LAN download link',
699
+ 'plugins.fileSharing.copyManually': 'Copy this download link manually.',
700
+ 'plugins.fileSharing.lanUnavailable': 'No private IPv4 interface is available, or the download port could not be opened.',
701
+ 'plugins.fileSharing.emptyFolder': 'Choose a folder containing at least one file.',
702
+ 'plugins.fileSharing.invalid': 'Invalid upload or path.',
703
+ 'plugins.fileSharing.busy': 'Another upload is in progress. Try again later.',
704
+ 'plugins.fileSharing.notFound': 'This share is no longer available. Refresh the list.',
705
+ 'plugins.fileSharing.failed': 'File sharing request failed. Try again.',
590
706
  'plugins.catalog.textTools.title': 'Text tools',
591
707
  'plugins.catalog.textTools.description': 'A set of lightweight plain-text utilities; the first tool compresses multi-line text into a single line.',
592
708
  'plugins.textTools.title': 'Text tools',
@@ -611,12 +727,10 @@ const en = Object.freeze({
611
727
  'plugins.promptTemplates.compose.chooseTemplateHint': 'Select a template to start composing.',
612
728
  'plugins.promptTemplates.compose.builtinSuffix': ' (built-in)',
613
729
  'plugins.promptTemplates.compose.empty': 'No templates available.',
614
- 'plugins.promptTemplates.compose.varsHint': 'Fill and add variables in “Manage”.',
615
730
  'plugins.promptTemplates.compose.missingCount': '{count} missing',
616
731
  'plugins.promptTemplates.compose.jumpToMissing': 'Jump to missing',
617
732
  'plugins.promptTemplates.compose.goManage': 'Manage variables',
618
733
  'plugins.promptTemplates.compose.outputTitle': 'Output',
619
- 'plugins.promptTemplates.compose.outputHint': 'Click “Copy” and paste into Codex/Claude.',
620
734
  'plugins.promptTemplates.compose.outputAria': 'Rendered prompt',
621
735
  'plugins.promptTemplates.compose.copy': 'Copy',
622
736
  'plugins.promptTemplates.manage.searchAria': 'Search templates',
@@ -1354,6 +1468,7 @@ const en = Object.freeze({
1354
1468
  'settings.theme.light': 'Light',
1355
1469
  'settings.theme.dark': 'Dark',
1356
1470
  'settings.theme.ocean': 'Ocean',
1471
+ 'settings.theme.violet': 'Violet',
1357
1472
  'settings.theme.hint': 'Theme preference is saved automatically and persists across reloads.',
1358
1473
  'settings.sharePrefix.title': 'Share command prefix',
1359
1474
  'settings.sharePrefix.meta': 'Used as the prefix for “Copy share command” in the Web UI',
@@ -1736,6 +1851,10 @@ const en = Object.freeze({
1736
1851
  'kilocode.writeRequired': 'Enable KiloCode write access first',
1737
1852
  'kilocode.saved': 'KiloCode config saved',
1738
1853
  'kilocode.autoSaved': 'KiloCode config synced',
1854
+ 'sysPrompt.fileLabel': 'File',
1855
+ 'sysPrompt.filesLoading': 'Loading files…',
1856
+ 'sysPrompt.fileMissing': 'File removed or unreadable. Refresh the file list.',
1857
+ 'sysPrompt.fileUnsaved': 'Save or cancel your changes before switching files.',
1739
1858
  'sysPrompt.scope.label': 'Scope',
1740
1859
  'sysPrompt.scope.global': 'Global (~/.pi/agent/)',
1741
1860
  'sysPrompt.scope.project': 'Project (<cwd>/.pi/)',