codexmate 0.1.35 → 0.1.37

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 (50) hide show
  1. package/README.md +102 -100
  2. package/README.vi.md +105 -93
  3. package/README.zh.md +102 -98
  4. package/cli/skills.js +103 -4
  5. package/cli.js +5 -2
  6. package/package.json +1 -1
  7. package/web-ui/app.js +14 -0
  8. package/web-ui/logic.codex.mjs +14 -0
  9. package/web-ui/modules/app.computed.main-tabs.mjs +12 -0
  10. package/web-ui/modules/app.methods.agents.mjs +0 -3
  11. package/web-ui/modules/app.methods.claude-config.mjs +26 -5
  12. package/web-ui/modules/app.methods.install.mjs +13 -17
  13. package/web-ui/modules/app.methods.navigation.mjs +1 -1
  14. package/web-ui/modules/app.methods.openclaw-editing.mjs +29 -0
  15. package/web-ui/modules/app.methods.openclaw-persist.mjs +3 -3
  16. package/web-ui/modules/app.methods.opencode-config.mjs +34 -0
  17. package/web-ui/modules/app.methods.pi-config.mjs +14 -9
  18. package/web-ui/modules/app.methods.prompts-editor.mjs +30 -6
  19. package/web-ui/modules/app.methods.providers.mjs +11 -0
  20. package/web-ui/modules/app.methods.session-trash.mjs +4 -5
  21. package/web-ui/modules/app.methods.startup-claude.mjs +11 -5
  22. package/web-ui/modules/claude-provider-presets.mjs +23 -0
  23. package/web-ui/modules/i18n/locales/en.mjs +29 -0
  24. package/web-ui/modules/i18n/locales/ja.mjs +29 -0
  25. package/web-ui/modules/i18n/locales/vi.mjs +29 -0
  26. package/web-ui/modules/i18n/locales/zh-tw.mjs +29 -0
  27. package/web-ui/modules/i18n/locales/zh.mjs +29 -0
  28. package/web-ui/modules/pi-provider-templates.mjs +6 -1
  29. package/web-ui/modules/session-features.mjs +25 -1
  30. package/web-ui/modules/skills.methods.mjs +61 -16
  31. package/web-ui/partials/index/layout-header.html +36 -37
  32. package/web-ui/partials/index/modal-openclaw-config.html +3 -0
  33. package/web-ui/partials/index/modals-basic.html +1 -1
  34. package/web-ui/partials/index/modals-pi-provider.html +1 -1
  35. package/web-ui/partials/index/panel-config-claude.html +4 -21
  36. package/web-ui/partials/index/panel-config-codex.html +3 -1
  37. package/web-ui/partials/index/panel-config-opencode.html +4 -0
  38. package/web-ui/partials/index/panel-market.html +10 -3
  39. package/web-ui/partials/index/panel-prompts.html +40 -20
  40. package/web-ui/partials/index/panel-settings.html +45 -0
  41. package/web-ui/partials/index/session-features.html +24 -7
  42. package/web-ui/res/web-ui-render.precompiled.js +531 -271
  43. package/web-ui/styles/layout-shell.css +41 -70
  44. package/web-ui/styles/prompts-editor.css +127 -27
  45. package/web-ui/styles/session-features.css +12 -1
  46. package/web-ui/styles/settings-panel.css +4 -0
  47. package/web-ui/styles/system-prompt.css +9 -4
  48. package/web-ui/styles/theme-dark.css +0 -18
  49. package/web-ui/styles/theme-ocean.css +0 -14
  50. package/web-ui/styles/theme-violet.css +0 -23
@@ -124,32 +124,28 @@ export function createInstallMethods(options = {}) {
124
124
  if (this.appVersionStatusLoading) return false;
125
125
  this.appVersionStatusLoading = true;
126
126
  this.appVersionStatusError = '';
127
+ this.appVersionStatusChecked = false;
128
+ this.appLatestVersion = '';
129
+ this.appVersionStatusSource = '';
130
+ this.appVersionStatusCheckedAt = '';
127
131
  try {
128
132
  const res = await api('version-status', options.force ? { force: true } : {});
129
- if (res && res.currentVersion && !this.appVersion) {
130
- this.appVersion = this.normalizePackageVersion(res.currentVersion) || String(res.currentVersion || '');
133
+ if (!this.appVersion) {
134
+ this.appVersion = this.normalizePackageVersion(res?.currentVersion);
131
135
  }
132
- if (res && res.latestVersion) {
133
- this.appLatestVersion = this.normalizePackageVersion(res.latestVersion) || String(res.latestVersion || '');
134
- }
135
- if (res && typeof res.source === 'string') {
136
- this.appVersionStatusSource = res.source;
137
- }
138
- if (res && typeof res.checkedAt === 'string') {
139
- this.appVersionStatusCheckedAt = res.checkedAt;
140
- }
141
- if (res && res.error) {
142
- this.appVersionStatusError = res.error;
143
- this.appVersionStatusChecked = true;
144
- if (!options.silent) this.showMessage(res.error, 'error');
145
- return false;
136
+ if (res?.error) throw new Error(res.error);
137
+ const latestVersion = this.normalizePackageVersion(res?.latestVersion);
138
+ if (!latestVersion || !this.normalizePackageVersion(this.appVersion)) {
139
+ throw new Error(this.t('side.update.checkFailed'));
146
140
  }
141
+ this.appLatestVersion = latestVersion;
142
+ this.appVersionStatusSource = typeof res.source === 'string' ? res.source : '';
143
+ this.appVersionStatusCheckedAt = typeof res.checkedAt === 'string' ? res.checkedAt : '';
147
144
  this.appVersionStatusChecked = true;
148
145
  return true;
149
146
  } catch (e) {
150
147
  const message = e && e.message ? e.message : this.t('side.update.checkFailed');
151
148
  this.appVersionStatusError = message;
152
- this.appVersionStatusChecked = true;
153
149
  if (!options.silent) this.showMessage(message, 'error');
154
150
  return false;
155
151
  } finally {
@@ -118,7 +118,7 @@
118
118
  : vm.pluginsActiveId;
119
119
  const pluginsActiveId = typeof pluginsActiveIdSource === 'string' ? pluginsActiveIdSource.trim() : '';
120
120
  const snapshot = {
121
- settingsTab: settingsTab === 'data' ? 'data' : 'general',
121
+ settingsTab: settingsTab === 'data' || settingsTab === 'about' ? settingsTab : 'general',
122
122
  mainTab: resolveSelectableMainTab(mainTab),
123
123
  configMode: configModeSet && configModeSet.has(configMode) ? configMode : 'codex',
124
124
  modelTestTarget: vm.modelTestTarget === 'pi' ? 'pi' : 'codex',
@@ -145,6 +145,34 @@ export function createOpenclawEditingMethods() {
145
145
  this.showMessage('已写入', 'success');
146
146
  },
147
147
 
148
+ fillOpenclawProviderPreset() {
149
+ if (!this.isToolConfigWriteAllowed('openclaw') || this.openclawFileLoading || this.openclawSaving || this.openclawApplying) return;
150
+ const providerName = 'openai-api';
151
+ const parsed = this.parseOpenclawContent(this.openclawEditing.content, { allowEmpty: true });
152
+ if (!parsed.ok) {
153
+ this.showMessage(parsed.error, 'error');
154
+ return;
155
+ }
156
+ if (Object.hasOwn(parsed.data.models?.providers || {}, providerName)) {
157
+ this.showMessage(this.t('config.providerTemplate.duplicate', { name: providerName }), 'info');
158
+ return;
159
+ }
160
+ this.openclawQuick = {
161
+ ...this.getOpenclawQuickDefaults(),
162
+ fromProviderPreset: true,
163
+ providerName,
164
+ baseUrl: 'https://api.openai.com/v1',
165
+ apiType: 'openai-responses',
166
+ modelId: 'gpt-5.4-mini',
167
+ setPrimary: false,
168
+ overrideProvider: false,
169
+ overrideModels: false
170
+ };
171
+ this.openclawAccordionStep = 1;
172
+ this.validateProviderName();
173
+ this.validateModelId();
174
+ },
175
+
148
176
  applyOpenclawQuickToText() {
149
177
  const parsed = this.parseOpenclawContent(this.openclawEditing.content, { allowEmpty: true });
150
178
  if (!parsed.ok) {
@@ -273,6 +301,7 @@ export function createOpenclawEditingMethods() {
273
301
  providers[providerName] = provider;
274
302
  models.providers = providers;
275
303
  config.models = models;
304
+ if (this.openclawQuick.fromProviderPreset) this.openclawEditing.fromProviderPreset = true;
276
305
 
277
306
  if (this.openclawQuick.setPrimary) {
278
307
  const agents = ensureObject(config.agents);
@@ -225,7 +225,7 @@ export function createOpenclawPersistMethods(options = {}) {
225
225
  }
226
226
  },
227
227
 
228
- persistOpenclawConfig({ closeModal = true } = {}) {
228
+ persistOpenclawConfig({ closeModal = true, select = !this.openclawEditing.fromProviderPreset } = {}) {
229
229
  if (!this.openclawEditing.name || !this.openclawEditing.name.trim()) {
230
230
  this.showMessage('请输入名称', 'error');
231
231
  return '';
@@ -246,7 +246,7 @@ export function createOpenclawPersistMethods(options = {}) {
246
246
  this.openclawConfigs[name] = {
247
247
  content: this.openclawEditing.content
248
248
  };
249
- this.currentOpenclawConfig = name;
249
+ if (select) this.currentOpenclawConfig = name;
250
250
  if (this.saveOpenclawConfigs() === false) {
251
251
  if (hadPreviousConfig) {
252
252
  this.openclawConfigs[name] = previousConfig;
@@ -286,7 +286,7 @@ export function createOpenclawPersistMethods(options = {}) {
286
286
  }
287
287
  this.openclawApplying = true;
288
288
  try {
289
- const name = this.persistOpenclawConfig({ closeModal: false });
289
+ const name = this.persistOpenclawConfig({ closeModal: false, select: true });
290
290
  if (!name) return;
291
291
  const config = this.openclawConfigs[name];
292
292
  const res = await api('apply-openclaw-config', {
@@ -1,3 +1,14 @@
1
+ const OPENCODE_DEEPSEEK_PRESET = {
2
+ id: 'deepseek-api',
3
+ name: 'DeepSeek API',
4
+ npm: '@ai-sdk/openai-compatible',
5
+ options: {
6
+ baseURL: 'https://api.deepseek.com/v1',
7
+ apiKey: '{env:DEEPSEEK_API_KEY}'
8
+ },
9
+ models: { 'deepseek-flash': { name: 'DeepSeek Flash' } }
10
+ };
11
+
1
12
  function normalizeOpencodeProviderName(value) {
2
13
  const name = typeof value === 'string' ? value.trim().toLowerCase() : '';
3
14
  return /^[a-z0-9_.-]+$/.test(name) ? name : '';
@@ -29,6 +40,29 @@ export function createOpencodeConfigMethods(options = {}) {
29
40
  const { api, modelCatalog = {} } = options;
30
41
 
31
42
  return {
43
+ insertOpencodeProviderPreset() {
44
+ if (!this.isToolConfigWriteAllowed('opencode') || this.opencodeLoading || this.opencodeSaving || this.opencodeApplying) return;
45
+ let config;
46
+ try {
47
+ config = summarizeOpencodeDraft(this.opencodeContent);
48
+ } catch (error) {
49
+ this.showMessage(error.message, 'error');
50
+ return;
51
+ }
52
+ const { id, ...preset } = OPENCODE_DEEPSEEK_PRESET;
53
+ const providers = config.provider;
54
+ if (providers !== undefined && (!providers || typeof providers !== 'object' || Array.isArray(providers))) {
55
+ this.showMessage(this.t('opencode.preset.invalidProviders'), 'error');
56
+ return;
57
+ }
58
+ if ((providers && Object.hasOwn(providers, id)) || (this.opencodeProviders || []).some(provider => provider.name === id)) {
59
+ this.showMessage(this.t('config.providerTemplate.duplicate', { name: id }), 'info');
60
+ return;
61
+ }
62
+ config.provider = { ...providers, [id]: preset };
63
+ this.opencodeContent = JSON.stringify(config, null, 2) + '\n';
64
+ },
65
+
32
66
  opencodeProviderCatalog() {
33
67
  const configured = Array.isArray(this.opencodeProviders)
34
68
  ? this.opencodeProviders.map(item => item && item.name).filter(Boolean)
@@ -170,6 +170,7 @@ export function createPiConfigMethods({ api: apiClient }) {
170
170
  return '';
171
171
  },
172
172
  resetPiEditorTransientState() {
173
+ this.piRemoteModelsLoading = false;
173
174
  this.piRemoteModels = [];
174
175
  this.piRemoteModelError = '';
175
176
  this.piRemoteChecked = {};
@@ -227,12 +228,11 @@ export function createPiConfigMethods({ api: apiClient }) {
227
228
  api: template.api || 'openai-completions',
228
229
  apiKey: '',
229
230
  configJsonDraft: '',
230
- models: []
231
+ models: (template.models || []).map(model => ({ ...model, input: [...model.input] }))
231
232
  },
232
233
  extras: {},
233
234
  original: null
234
235
  };
235
- this.fetchPiRemoteModels();
236
236
  },
237
237
  resetPiProviderTemplateSelection() {
238
238
  this.piSelectedProviderTemplate = '';
@@ -347,13 +347,7 @@ export function createPiConfigMethods({ api: apiClient }) {
347
347
  },
348
348
  resetPiProviderEditing() {
349
349
  this.editingPiProvider = null;
350
- this.piRemoteModels = [];
351
- this.piRemoteModelError = '';
352
- this.piRemoteChecked = {};
353
- this.piCatalogFillError = '';
354
- this.piCatalogFillIndex = -1;
355
- this.piModelSearch = '';
356
- this.piEditorJsonError = '';
350
+ this.resetPiEditorTransientState();
357
351
  },
358
352
  closePiProviderEditor() {
359
353
  const editor = this.editingPiProvider;
@@ -364,6 +358,17 @@ export function createPiConfigMethods({ api: apiClient }) {
364
358
  this.showAddPiProviderModal = false;
365
359
  this.piProviderPickerQuery = '';
366
360
  },
361
+ updatePiModelId(model, id) {
362
+ if (id === model.id) return;
363
+ const preset = PI_PROVIDER_TEMPLATE_GROUPS.flatMap(group => group.templates)
364
+ .find(template => template.id === this.piSelectedProviderTemplate);
365
+ const original = preset?.models?.find(entry => entry.id === model.id);
366
+ if (this.editingPiProvider?.isNew && original) {
367
+ Object.assign(model, this.piCreateModelRecord(id));
368
+ } else {
369
+ model.id = id;
370
+ }
371
+ },
367
372
  removePiProviderModel(index) {
368
373
  if (!this.editingPiProvider) return;
369
374
  const list = this.editingPiProvider.form.models;
@@ -26,12 +26,15 @@ import {
26
26
 
27
27
  const PROMPTS_PREVIEW_DEBOUNCE_MS = 300;
28
28
  const PROMPTS_AXIS_DEBOUNCE_MS = 300;
29
+ const PROMPTS_HEADING_SELECTOR = 'h1, h2, h3, h4, h5, h6';
29
30
 
30
31
  const PROMPTS_EDITOR_META = {
31
32
  agents: {
32
33
  contentField: 'agentsContent',
33
34
  originalField: 'agentsOriginalContent',
34
35
  previewField: 'agentsPreviewHtml',
36
+ headingsField: 'agentsPreviewHeadings',
37
+ previewPaneRef: 'promptsAgentsPreviewPane',
35
38
  axisField: 'agentsChangeAxis',
36
39
  diffLinesField: 'agentsDiffLines',
37
40
  diffStatsField: 'agentsDiffStats',
@@ -47,6 +50,8 @@ const PROMPTS_EDITOR_META = {
47
50
  contentField: 'sysPromptContent',
48
51
  originalField: 'sysPromptOriginalContent',
49
52
  previewField: 'sysPromptPreviewHtml',
53
+ headingsField: 'sysPreviewHeadings',
54
+ previewPaneRef: 'promptsSysPreviewPane',
50
55
  axisField: 'sysChangeAxis',
51
56
  diffLinesField: 'sysPromptDiffLines',
52
57
  diffStatsField: 'sysPromptDiffStats',
@@ -97,13 +102,19 @@ export function createPromptsEditorMethods(options = {}) {
97
102
  }
98
103
  const libs = resolvePromptsPreviewLibs();
99
104
  const state = buildMarkdownPreviewHtml(this[meta.contentField], libs.marked, libs.purify);
100
- if (state.unavailable) {
101
- this.promptsPreviewLibsMissing = true;
102
- this[meta.previewField] = '';
103
- return;
104
- }
105
- this.promptsPreviewLibsMissing = false;
105
+ this.promptsPreviewLibsMissing = Boolean(state.unavailable);
106
106
  this[meta.previewField] = state.html;
107
+ this[meta.headingsField] = [];
108
+ if (!state.html || typeof document === 'undefined') return;
109
+
110
+ // Use the sanitized preview so code fences and duplicate headings stay aligned with the rendered document.
111
+ const preview = document.createElement('template');
112
+ preview.innerHTML = state.html;
113
+ this[meta.headingsField] = Array.from(preview.content.querySelectorAll(PROMPTS_HEADING_SELECTOR), (heading, index) => ({
114
+ index,
115
+ depth: Math.min(Number(heading.tagName.slice(1)) - 1, 3),
116
+ text: heading.textContent.trim()
117
+ })).filter(heading => heading.text);
107
118
  },
108
119
 
109
120
  schedulePromptsPreview(key) {
@@ -186,6 +197,19 @@ export function createPromptsEditorMethods(options = {}) {
186
197
  }
187
198
  },
188
199
 
200
+ jumpToPromptsHeading(key, index) {
201
+ const meta = this.promptsEditorMeta(key);
202
+ if (!meta) return;
203
+ if (this.promptsPreviewCollapsed) this.togglePromptsPreviewCollapsed();
204
+ this.$nextTick(() => {
205
+ const pane = this.$refs[meta.previewPaneRef];
206
+ const heading = pane?.querySelectorAll(PROMPTS_HEADING_SELECTOR)[index];
207
+ if (!heading) return;
208
+ const top = heading.getBoundingClientRect().top - pane.getBoundingClientRect().top + pane.scrollTop;
209
+ pane.scrollTo({ top: top - 12 });
210
+ });
211
+ },
212
+
189
213
  setPromptsMobileView(view) {
190
214
  if (view === 'edit' || view === 'preview') {
191
215
  this.promptsMobileView = view;
@@ -333,6 +333,17 @@ export function createProvidersMethods(options = {}) {
333
333
  this.showAddModal = true;
334
334
  },
335
335
 
336
+ openCodexProviderPreset(preset) {
337
+ if (!this.isToolConfigWriteAllowed('codex')) return;
338
+ this.openAddProviderModal();
339
+ Object.assign(this.newProvider, {
340
+ name: preset.name,
341
+ url: preset.url,
342
+ model: preset.model || '',
343
+ useTransform: !!preset.useTransform
344
+ });
345
+ },
346
+
336
347
  openAddProviderModal() {
337
348
  this.newProvider = {
338
349
  name: nextCodexProviderName(this.providersList),
@@ -1,3 +1,5 @@
1
+ const SETTINGS_TABS = ['general', 'data', 'about'];
2
+
1
3
  export function createSessionTrashMethods(options = {}) {
2
4
  const {
3
5
  api,
@@ -213,10 +215,7 @@ export function createSessionTrashMethods(options = {}) {
213
215
  },
214
216
 
215
217
  normalizeSettingsTab(tab) {
216
- if (tab === 'general' || tab === 'data') {
217
- return tab;
218
- }
219
- return 'general';
218
+ return SETTINGS_TABS.includes(tab) ? tab : 'general';
220
219
  },
221
220
 
222
221
  async onSettingsTabClick(tab) {
@@ -227,7 +226,7 @@ export function createSessionTrashMethods(options = {}) {
227
226
  if (!event) {
228
227
  return;
229
228
  }
230
- const tabs = ['general', 'data'];
229
+ const tabs = SETTINGS_TABS;
231
230
  const currentTab = this.normalizeSettingsTab(tab || this.settingsTab);
232
231
  const currentIndex = Math.max(0, tabs.indexOf(currentTab));
233
232
  let nextIndex = currentIndex;
@@ -67,11 +67,16 @@ export function createStartupClaudeMethods(options = {}) {
67
67
  this.currentModels = statusRes.currentModels && typeof statusRes.currentModels === 'object'
68
68
  ? { ...statusRes.currentModels }
69
69
  : {};
70
- const dictModelForCurrent = this.currentProvider
71
- && typeof this.currentModels[this.currentProvider] === 'string'
72
- ? this.currentModels[this.currentProvider].trim()
73
- : '';
74
- this.currentModel = dictModelForCurrent || statusRes.model;
70
+ // config.toml is the active selection; the dictionary only remembers choices when switching providers.
71
+ const configuredModel = typeof statusRes.model === 'string' ? statusRes.model.trim() : '';
72
+ this.currentModel = configuredModel === '未设置' ? '' : configuredModel;
73
+ if (this.currentProvider && this.currentProvider !== '未设置') {
74
+ if (this.currentModel) {
75
+ this.currentModels[this.currentProvider] = this.currentModel;
76
+ } else {
77
+ delete this.currentModels[this.currentProvider];
78
+ }
79
+ }
75
80
  try {
76
81
  const installRes = await withRequestDeadline(signal => api('install-status', {}, { signal }), { timeoutMs: Math.max(0, Math.min(1200, timeLeftMs())) });
77
82
  if (installRes && !installRes.error) {
@@ -551,6 +556,7 @@ export function createStartupClaudeMethods(options = {}) {
551
556
  },
552
557
 
553
558
  openClaudeConfigModal() {
559
+ this.claudeAddFromPreset = false;
554
560
  this.newClaudeConfig = {
555
561
  name: nextClaudeConfigName(this.claudeConfigs),
556
562
  apiKey: '',
@@ -0,0 +1,23 @@
1
+ // Existing native Claude presets; credentials and proxy routes are not part of the catalog.
2
+ export const CLAUDE_PROVIDER_PRESETS = Object.freeze([
3
+ { name: 'Anthropic API', baseUrl: 'https://api.anthropic.com', model: 'claude-sonnet-4-6' },
4
+ { name: 'DeepSeek', baseUrl: 'https://api.deepseek.com/anthropic', model: 'deepseek-flash' },
5
+ { name: 'Zhipu GLM', baseUrl: 'https://open.bigmodel.cn/api/anthropic', model: 'glm-5' },
6
+ { name: 'Z.ai GLM', baseUrl: 'https://api.z.ai/api/anthropic', model: 'glm-5' },
7
+ { name: 'Qwen Coder', baseUrl: 'https://coding.dashscope.aliyuncs.com/apps/anthropic', model: 'qwen3-coder' },
8
+ { name: 'Kimi k2', baseUrl: 'https://api.moonshot.cn/anthropic', model: 'kimi-k2.5' },
9
+ { name: 'Kimi For Coding', baseUrl: 'https://api.kimi.com/coding/', model: 'kimi-k2.5' },
10
+ { name: 'KAT-Coder', baseUrl: 'https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/claude-code-proxy', model: 'KAT-Coder-Pro V1' },
11
+ { name: 'Longcat', baseUrl: 'https://api.longcat.chat/anthropic', model: 'LongCat-Flash-Chat' },
12
+ { name: 'MiniMax', baseUrl: 'https://api.minimaxi.com/anthropic', model: 'MiniMax-M2.7' },
13
+ { name: 'MiniMax en', baseUrl: 'https://api.minimax.io/anthropic', model: 'MiniMax-M2.7' },
14
+ { name: 'DouBaoSeed', baseUrl: 'https://ark.cn-beijing.volces.com/api/coding', model: 'doubao-seed-2-0-code-preview-latest' },
15
+ { name: 'BaiLing', baseUrl: 'https://api.tbox.cn/api/anthropic', model: 'Ling-2.5-1T' },
16
+ { name: 'ModelScope', baseUrl: 'https://api-inference.modelscope.cn', model: 'ZhipuAI/GLM-5' },
17
+ { name: 'AiHubMix', baseUrl: 'https://aihubmix.com', model: 'glm-4.7' },
18
+ { name: 'DMXAPI', baseUrl: 'https://www.dmxapi.cn', model: 'glm-4.7' },
19
+ { name: 'PackyCode', baseUrl: 'https://www.packyapi.com', model: 'glm-4.7' },
20
+ { name: 'AnyRouter', baseUrl: 'https://anyrouter.top', model: 'claude-opus-4-7[1m]' },
21
+ { name: 'Xiaomi MiMo', baseUrl: 'https://api.xiaomimimo.com/anthropic', model: 'mimo-v2.5-pro' },
22
+ { name: 'Xiaomi Token Plan', baseUrl: 'https://token-plan-cn.xiaomimimo.com/anthropic', model: 'mimo-v2.5-pro' },
23
+ ]);
@@ -135,6 +135,11 @@ const en = Object.freeze({
135
135
  "features.indexFailures": "{count} read failures; these records are not covered",
136
136
  "features.coverage": "Searched {scanned}/{total} indexed sessions",
137
137
  "features.partial": "Partial coverage; at most 100 matches are shown",
138
+ "features.resultView": "Result view",
139
+ "features.byMessage": "By message",
140
+ "features.bySession": "By session",
141
+ "features.returnedMatches": "{count} returned matches",
142
+ "features.groupedTruncated": "Result limit reached; groups count only returned matches.",
138
143
  "features.context": "Surrounding context",
139
144
  "features.generateDraft": "Generate handoff draft ({count})",
140
145
  "features.draftReview": "Draft not sent. Review evidence and edit next steps before sending.",
@@ -555,6 +560,8 @@ const en = Object.freeze({
555
560
  'prompts.editor.preview': 'Preview',
556
561
  'prompts.editor.previewUnavailable': 'Preview components missing (marked / DOMPurify), please refresh the page',
557
562
  'prompts.editor.previewEmpty': 'Nothing to preview yet',
563
+ 'prompts.editor.outline': 'Document outline',
564
+ 'prompts.editor.outlineEmpty': 'No headings',
558
565
  'prompts.editor.changeAxis': 'Change navigation axis',
559
566
  'prompts.editor.changeAxisTick': 'Line {line} (+{added} / -{removed})',
560
567
  'prompts.tokenCount.hint': '~{count} tokens',
@@ -1320,6 +1327,12 @@ const en = Object.freeze({
1320
1327
  'opencode.summary.sourceCodexMate': 'CodexMate store',
1321
1328
  'opencode.summary.sourceOpenCode': 'Active OpenCode',
1322
1329
  'config.providerTemplate.title': 'Provider presets',
1330
+ 'config.providerTemplate.direct': 'Direct',
1331
+ 'config.providerTemplate.bridge': 'Local bridge',
1332
+ 'config.providerTemplate.fillDraft': 'Fill draft: {name}',
1333
+ 'config.providerTemplate.duplicate': 'Provider {name} already exists',
1334
+ 'opencode.preset.hint': 'Fills the draft below. Saving does not switch the default model. Set DEEPSEEK_API_KEY before running OpenCode. Saving rewrites JSON without comments.',
1335
+ 'opencode.preset.invalidProviders': 'OpenCode provider must be an object.',
1323
1336
  'config.models': 'Model',
1324
1337
  'config.modelLoading': 'Loading...',
1325
1338
  'config.models.unlimited': 'No model list available. Enter manually.',
@@ -1443,6 +1456,11 @@ const en = Object.freeze({
1443
1456
  'settings.tab.general': 'General',
1444
1457
  'settings.tab.data': 'Data',
1445
1458
  'settings.tabs.aria': 'Settings categories',
1459
+ 'settings.tab.about': 'About',
1460
+ 'settings.about.update': 'Software update',
1461
+ 'settings.about.currentVersion': 'Current version: {version}',
1462
+ 'settings.about.latestVersion': 'Latest version: {version}',
1463
+ 'settings.about.viewUpdate': 'View update',
1446
1464
  'settings.quickSettings.title': 'Quick Settings',
1447
1465
  'settings.language.sideLabel': 'Language: {language}',
1448
1466
  'announcement.providerCache.open': 'Feature announcement',
@@ -1634,6 +1652,17 @@ const en = Object.freeze({
1634
1652
 
1635
1653
  'market.backup.action': 'Back up current target',
1636
1654
  'market.backup.running': 'Backing up...',
1655
+ 'market.backup.export': 'Export backup',
1656
+ 'market.backup.import': 'Import backup',
1657
+ 'market.backup.targetChanged': 'Target changed. Select the backup again.',
1658
+ 'market.backup.tooLarge': 'The backup exceeds the 20 MiB import limit.',
1659
+ 'market.backup.invalid': 'Select a valid v1 Skills backup.',
1660
+ 'market.backup.importFailed': 'Could not import the backup.',
1661
+ 'market.backup.result': 'Restored: {restored}. Skipped: {skipped}. Failed: {failed}.',
1662
+ 'market.backup.exportFailed': 'Could not export the backup.',
1663
+ 'market.backup.exportPartial': 'Exported: {count}. Failed: {failed}.',
1664
+ 'market.backup.exportResult': 'Exported {count} entries.',
1665
+ 'market.backup.exportLimited': 'Keep this ZIP for offline recovery; it cannot be imported through the web page.',
1637
1666
  'market.export.action': 'Export selected',
1638
1667
  'market.export.running': 'Exporting...',
1639
1668
  'market.selection.all': 'Select all',
@@ -135,6 +135,11 @@ const ja = Object.freeze({
135
135
  "features.indexFailures": "{count} 件の読み込み失敗。該当記録は対象外です",
136
136
  "features.coverage": "登録済みセッション {scanned}/{total} 件を検索",
137
137
  "features.partial": "対象範囲は一部のみ。最大 100 件を表示",
138
+ "features.resultView": "結果の表示形式",
139
+ "features.byMessage": "メッセージ別",
140
+ "features.bySession": "セッション別",
141
+ "features.returnedMatches": "表示対象 {count} 件",
142
+ "features.groupedTruncated": "結果が上限に達しました。グループの件数は取得済みの結果のみを数えます。",
138
143
  "features.context": "前後の文脈",
139
144
  "features.generateDraft": "引き継ぎ下書きを作成({count} 件)",
140
145
  "features.draftReview": "下書きは未送信です。根拠を確認し、次の手順を編集してください。",
@@ -556,6 +561,8 @@ const ja = Object.freeze({
556
561
  'prompts.editor.preview': 'プレビュー',
557
562
  'prompts.editor.previewUnavailable': 'プレビュー用コンポーネント(marked / DOMPurify)が読み込まれていません。ページを再読み込みしてください',
558
563
  'prompts.editor.previewEmpty': 'プレビューする内容がありません',
564
+ 'prompts.editor.outline': 'ドキュメントの目次',
565
+ 'prompts.editor.outlineEmpty': '見出しがありません',
559
566
  'prompts.editor.changeAxis': '変更ナビゲーション軸',
560
567
  'prompts.editor.changeAxisTick': '{line} 行目(+{added} / -{removed})',
561
568
  'prompts.tokenCount.hint': '約 {count} トークン',
@@ -1323,6 +1330,12 @@ const ja = Object.freeze({
1323
1330
  'opencode.summary.sourceCodexMate': 'CodexMate store',
1324
1331
  'opencode.summary.sourceOpenCode': 'Active OpenCode',
1325
1332
  'config.providerTemplate.title': 'プリセットプロバイダー',
1333
+ 'config.providerTemplate.direct': '直接接続',
1334
+ 'config.providerTemplate.bridge': 'ローカル変換',
1335
+ 'config.providerTemplate.fillDraft': '下書きに入力:{name}',
1336
+ 'config.providerTemplate.duplicate': 'プロバイダー {name} は既に存在します',
1337
+ 'opencode.preset.hint': '下書きのみ変更します。保存しても既定モデルは変わりません。OpenCode の実行前に DEEPSEEK_API_KEY を設定してください。 保存時にコメントなしの JSON に変換します。',
1338
+ 'opencode.preset.invalidProviders': 'OpenCode の provider はオブジェクトである必要があります。',
1326
1339
  'config.models': 'モデル',
1327
1340
  'config.modelLoading': '読み込み中...',
1328
1341
  'config.models.unlimited': '現在モデル一覧がありません。手動入力可能です。',
@@ -1446,6 +1459,11 @@ const ja = Object.freeze({
1446
1459
  'settings.tab.general': '一般',
1447
1460
  'settings.tab.data': 'データ',
1448
1461
  'settings.tabs.aria': '設定カテゴリ',
1462
+ 'settings.tab.about': '情報',
1463
+ 'settings.about.update': 'ソフトウェア更新',
1464
+ 'settings.about.currentVersion': '現在のバージョン:{version}',
1465
+ 'settings.about.latestVersion': '最新バージョン:{version}',
1466
+ 'settings.about.viewUpdate': '更新を確認する',
1449
1467
  'settings.quickSettings.title': 'クイック設定',
1450
1468
  'settings.language.sideLabel': '言語:{language}',
1451
1469
  'announcement.providerCache.open': '機能のお知らせ',
@@ -1636,6 +1654,17 @@ const ja = Object.freeze({
1636
1654
 
1637
1655
  'market.backup.action': '現在のターゲットをバックアップ',
1638
1656
  'market.backup.running': 'バックアップ中...',
1657
+ 'market.backup.export': 'バックアップをエクスポート',
1658
+ 'market.backup.import': 'バックアップをインポート',
1659
+ 'market.backup.targetChanged': 'ターゲットが変わりました。バックアップを選び直してください。',
1660
+ 'market.backup.tooLarge': 'バックアップが 20 MiB を超えているため、インポートできません。',
1661
+ 'market.backup.invalid': '有効な v1 Skills バックアップを選択してください。',
1662
+ 'market.backup.importFailed': 'バックアップのインポートに失敗しました。',
1663
+ 'market.backup.result': '復元 {restored} 件、スキップ {skipped} 件、失敗 {failed} 件。',
1664
+ 'market.backup.exportFailed': 'バックアップのエクスポートに失敗しました。',
1665
+ 'market.backup.exportPartial': 'エクスポート {count} 件、失敗 {failed} 件。',
1666
+ 'market.backup.exportResult': '{count} 件をエクスポートしました。',
1667
+ 'market.backup.exportLimited': 'この ZIP はオフライン用です。Web ページからはインポートできません。',
1639
1668
  'market.export.action': '選択をエクスポート',
1640
1669
  'market.export.running': 'エクスポート中...',
1641
1670
  'market.selection.all': 'すべて選択',
@@ -135,6 +135,11 @@ const vi = Object.freeze({
135
135
  "features.indexFailures": "Không đọc được {count} mục; kết quả không bao gồm các mục này",
136
136
  "features.coverage": "Đã tìm {scanned}/{total} phiên được lập chỉ mục",
137
137
  "features.partial": "Kết quả chưa bao phủ toàn bộ phạm vi; hiển thị tối đa 100 kết quả",
138
+ "features.resultView": "Chế độ xem kết quả",
139
+ "features.byMessage": "Theo tin nhắn",
140
+ "features.bySession": "Theo phiên",
141
+ "features.returnedMatches": "{count} kết quả trả về",
142
+ "features.groupedTruncated": "Đã đạt giới hạn; nhóm chỉ đếm các kết quả được trả về.",
138
143
  "features.context": "Ngữ cảnh xung quanh",
139
144
  "features.generateDraft": "Tạo bản nháp bàn giao ({count})",
140
145
  "features.draftReview": "Bản nháp chưa được gửi. Kiểm tra bằng chứng và sửa bước tiếp theo trước khi gửi.",
@@ -602,6 +607,8 @@ const vi = Object.freeze({
602
607
  'prompts.editor.preview': 'Xem trước',
603
608
  'prompts.editor.previewUnavailable': 'Thư viện xem trước (marked / DOMPurify) chưa được tải, hãy tải lại trang',
604
609
  'prompts.editor.previewEmpty': 'Chưa có nội dung để xem trước',
610
+ 'prompts.editor.outline': 'Mục lục tài liệu',
611
+ 'prompts.editor.outlineEmpty': 'Không có tiêu đề',
605
612
  'prompts.editor.changeAxis': 'Trục điều hướng thay đổi',
606
613
  'prompts.editor.changeAxisTick': 'Dòng {line} (+{added} / -{removed})',
607
614
  'prompts.tokenCount.hint': '~{count} token',
@@ -1447,6 +1454,12 @@ const vi = Object.freeze({
1447
1454
  'usage.sessions.topDensity': 'Nhiều tin nhắn nhất',
1448
1455
  'config.addProvider': 'Thêm nhà cung cấp',
1449
1456
  'config.providerTemplate.title': 'Preset nhà cung cấp',
1457
+ 'config.providerTemplate.direct': 'Trực tiếp',
1458
+ 'config.providerTemplate.bridge': 'Cầu nối cục bộ',
1459
+ 'config.providerTemplate.fillDraft': 'Điền bản nháp: {name}',
1460
+ 'config.providerTemplate.duplicate': 'Nhà cung cấp {name} đã tồn tại',
1461
+ 'opencode.preset.hint': 'Chỉ điền bản nháp bên dưới. Lưu không đổi mô hình mặc định. Hãy đặt DEEPSEEK_API_KEY trước khi chạy OpenCode. Khi lưu, JSON được ghi lại không có chú thích.',
1462
+ 'opencode.preset.invalidProviders': 'Trường provider của OpenCode phải là một đối tượng.',
1450
1463
  'config.models': 'Model',
1451
1464
  'config.modelLoading': 'Đang tải...',
1452
1465
  'config.models.unlimited': 'Không có danh sách model. Nhập thủ công.',
@@ -1545,6 +1558,11 @@ const vi = Object.freeze({
1545
1558
  'settings.tab.general': 'Chung',
1546
1559
  'settings.tab.data': 'Dữ liệu',
1547
1560
  'settings.tabs.aria': 'Danh mục cài đặt',
1561
+ 'settings.tab.about': 'Giới thiệu',
1562
+ 'settings.about.update': 'Cập nhật phần mềm',
1563
+ 'settings.about.currentVersion': 'Phiên bản hiện tại: {version}',
1564
+ 'settings.about.latestVersion': 'Phiên bản mới nhất: {version}',
1565
+ 'settings.about.viewUpdate': 'Xem bản cập nhật',
1548
1566
  'settings.quickSettings.title': 'Cài đặt nhanh',
1549
1567
  'settings.claude.title': 'Cấu hình Claude',
1550
1568
  'settings.claude.meta': 'Sao lưu / nhập ~/.claude',
@@ -1624,6 +1642,17 @@ const vi = Object.freeze({
1624
1642
  'market.root.fallback': 'Đường dẫn mặc định',
1625
1643
  'market.backup.action': 'Sao lưu mục tiêu hiện tại',
1626
1644
  'market.backup.running': 'Đang sao lưu...',
1645
+ 'market.backup.export': 'Xuất bản sao lưu',
1646
+ 'market.backup.import': 'Nhập bản sao lưu',
1647
+ 'market.backup.targetChanged': 'Đích đã thay đổi. Hãy chọn lại bản sao lưu.',
1648
+ 'market.backup.tooLarge': 'Bản sao lưu vượt giới hạn nhập 20 MiB.',
1649
+ 'market.backup.invalid': 'Hãy chọn bản sao lưu Skills v1 hợp lệ.',
1650
+ 'market.backup.importFailed': 'Không thể nhập bản sao lưu.',
1651
+ 'market.backup.result': 'Đã khôi phục: {restored}. Bỏ qua: {skipped}. Thất bại: {failed}.',
1652
+ 'market.backup.exportFailed': 'Không thể xuất bản sao lưu.',
1653
+ 'market.backup.exportPartial': 'Đã xuất: {count}. Thất bại: {failed}.',
1654
+ 'market.backup.exportResult': 'Đã xuất {count} mục.',
1655
+ 'market.backup.exportLimited': 'Giữ tệp ZIP này để khôi phục ngoại tuyến; không thể nhập qua trang web.',
1627
1656
  'market.export.action': 'Xuất đã chọn',
1628
1657
  'market.export.running': 'Đang xuất...',
1629
1658
  'market.selection.all': 'Chọn tất cả',