@best-agent/cli 0.0.2-beta.8 → 0.0.2-beta.9

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 (70) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -181
  3. package/dist/launcher.js +32 -0
  4. package/package.json +15 -27
  5. package/dist/best-agent-native-bridge.d.ts +0 -389
  6. package/dist/best-agent-native-bridge.js +0 -4645
  7. package/dist/cli-storage.d.ts +0 -5
  8. package/dist/cli-storage.js +0 -7
  9. package/dist/dimsdk/ask-user.d.ts +0 -21
  10. package/dist/dimsdk/ask-user.js +0 -131
  11. package/dist/dimsdk/cli/version.d.ts +0 -6
  12. package/dist/dimsdk/cli/version.js +0 -36
  13. package/dist/dimsdk/compat/archships/dim-agent/runtime-host.d.ts +0 -49
  14. package/dist/dimsdk/compat/archships/dim-agent/runtime-host.js +0 -215
  15. package/dist/dimsdk/compat/runtime-host.d.ts +0 -2
  16. package/dist/dimsdk/compat/runtime-host.js +0 -2
  17. package/dist/dimsdk/core/debug-log.d.ts +0 -8
  18. package/dist/dimsdk/core/debug-log.js +0 -100
  19. package/dist/dimsdk/core/env.d.ts +0 -26
  20. package/dist/dimsdk/core/env.js +0 -130
  21. package/dist/dimsdk/core/markdown/sanitize.d.ts +0 -2
  22. package/dist/dimsdk/core/markdown/sanitize.js +0 -43
  23. package/dist/dimsdk/core/markdown/wrap.d.ts +0 -9
  24. package/dist/dimsdk/core/markdown/wrap.js +0 -139
  25. package/dist/dimsdk/core/markdown.d.ts +0 -18
  26. package/dist/dimsdk/core/markdown.js +0 -62
  27. package/dist/dimsdk/core/model.d.ts +0 -273
  28. package/dist/dimsdk/core/model.js +0 -16
  29. package/dist/dimsdk/core/observability/perf-log.d.ts +0 -18
  30. package/dist/dimsdk/core/observability/perf-log.js +0 -236
  31. package/dist/dimsdk/core/store/agent-event-mappers.d.ts +0 -26
  32. package/dist/dimsdk/core/store/agent-event-mappers.js +0 -109
  33. package/dist/dimsdk/core/store/message-mutations.d.ts +0 -105
  34. package/dist/dimsdk/core/store/message-mutations.js +0 -1528
  35. package/dist/dimsdk/core/store/semantic-readers.d.ts +0 -2
  36. package/dist/dimsdk/core/store/semantic-readers.js +0 -4
  37. package/dist/dimsdk/core/store/transcript-projector.d.ts +0 -164
  38. package/dist/dimsdk/core/store/transcript-projector.js +0 -580
  39. package/dist/dimsdk/core/tool-metadata.d.ts +0 -12
  40. package/dist/dimsdk/core/tool-metadata.js +0 -70
  41. package/dist/dimsdk/core/transcript-part-id.d.ts +0 -6
  42. package/dist/dimsdk/core/transcript-part-id.js +0 -22
  43. package/dist/dimsdk/i18n/index.d.ts +0 -18
  44. package/dist/dimsdk/i18n/index.js +0 -141
  45. package/dist/dimsdk/i18n/locales/en.d.ts +0 -988
  46. package/dist/dimsdk/i18n/locales/en.js +0 -987
  47. package/dist/dimsdk/i18n/locales/index.d.ts +0 -1976
  48. package/dist/dimsdk/i18n/locales/index.js +0 -8
  49. package/dist/dimsdk/i18n/locales/zh-CN.d.ts +0 -988
  50. package/dist/dimsdk/i18n/locales/zh-CN.js +0 -987
  51. package/dist/dimsdk/i18n/types.d.ts +0 -13
  52. package/dist/dimsdk/i18n/types.js +0 -2
  53. package/dist/dimsdk/shared/value-normalizers.d.ts +0 -7
  54. package/dist/dimsdk/shared/value-normalizers.js +0 -48
  55. package/dist/dimsdk-tui.bundle-size.json +0 -169
  56. package/dist/dimsdk-tui.bundle.js +0 -330756
  57. package/dist/goatchain-adapter.d.ts +0 -41
  58. package/dist/goatchain-adapter.js +0 -499
  59. package/dist/index.d.ts +0 -3
  60. package/dist/index.js +0 -1405
  61. package/dist/native-runtime-bridge.d.ts +0 -387
  62. package/dist/native-runtime-bridge.js +0 -4624
  63. package/dist/provider-config-env.d.ts +0 -7
  64. package/dist/provider-config-env.js +0 -286
  65. package/dist/provider-model-limit-index.generated.d.ts +0 -3
  66. package/dist/provider-model-limit-index.generated.js +0 -7818
  67. package/dist/provider-model-limits.d.ts +0 -8
  68. package/dist/provider-model-limits.js +0 -43
  69. package/dist/runtime.d.ts +0 -47
  70. package/dist/runtime.js +0 -516
@@ -1,988 +0,0 @@
1
- declare const _default: {
2
- readonly common: {
3
- readonly apply: "应用";
4
- readonly cancel: "取消";
5
- readonly close: "关闭";
6
- readonly copy: "复制";
7
- readonly confirm: "确认";
8
- readonly refresh: "刷新";
9
- readonly yes: "是";
10
- readonly no: "否";
11
- readonly exit: "退出";
12
- readonly back: "返回";
13
- readonly next: "下一步";
14
- readonly save: "保存";
15
- readonly empty: "—";
16
- readonly unknownError: "未知错误";
17
- readonly inputClearTip: "Ctrl+C 清空";
18
- };
19
- readonly configDialog: {
20
- readonly title: "设置";
21
- readonly hint: "Tab/Shift+Tab 切换字段 • Enter 应用 • Esc 取消";
22
- readonly modelsTitle: "模型(自定义)";
23
- readonly modelsPlaceholder: "model-a, model-b";
24
- readonly contextWindowTitle: "上下文窗口";
25
- readonly contextWindowLocked: "上下文窗口(模型定义)";
26
- readonly contextWindowPlaceholder: "128000";
27
- readonly temperatureTitle: "温度";
28
- readonly temperaturePlaceholder: "0.7";
29
- readonly temperatureValidationError: "温度:只能输入数字和”.”";
30
- readonly maxTokensTitle: "最大输出 Token 数";
31
- readonly maxTokensPlaceholder: "8192";
32
- readonly baseUrlTitle: "Base URL(OpenAI 兼容)";
33
- readonly baseUrlPlaceholder: "https://api.openai.com/v1";
34
- readonly apiKeyCurrentPrefix: "当前:";
35
- readonly apiKeyNotSet: "(未设置)";
36
- readonly apiKeyTitle: "API Key";
37
- readonly apiKeyPlaceholder: "粘贴新 Key 以更新(留空保持不变)";
38
- readonly interleavedThinkingTitle: "交错思考(空格切换)";
39
- readonly interleavedThinkingLocked: "交错思考(模型定义)";
40
- readonly interleavedThinkingOpen: "开启";
41
- readonly interleavedThinkingClose: "关闭";
42
- readonly tipIntensityTitle: "提示强度";
43
- readonly tipIntensityOff: "关闭";
44
- readonly tipIntensityLow: "低";
45
- readonly tipIntensityStandard: "标准";
46
- readonly shortcutsTitle: "快捷键";
47
- readonly shortcutCommandsLabel: "命令面板";
48
- readonly shortcutTimelineLabel: "时间线";
49
- readonly shortcutNewSessionLabel: "新会话";
50
- readonly shortcutsPlaceholder: "如 mod+p";
51
- readonly shortcutsHint: "使用 mod/ctrl/alt/shift + 键(a-z, 0-9, F1-F12)。";
52
- };
53
- readonly languageDialog: {
54
- readonly title: "语言";
55
- readonly hint: "Enter 应用 • Esc 取消";
56
- readonly languageTitle: "语言";
57
- readonly languageEnglish: "English";
58
- readonly languageChinese: "简体中文";
59
- };
60
- readonly toolSettingsDialog: {
61
- readonly title: "工具设置";
62
- readonly hint: "Enter 应用 • Esc 取消";
63
- readonly websearchTitle: "WebSearch API Key";
64
- readonly apiKeyCurrentPrefix: "当前:";
65
- readonly apiKeyNotSet: "(未设置)";
66
- readonly apiKeyPlaceholder: "粘贴 Serper API Key";
67
- };
68
- readonly pluginsDialog: {
69
- readonly title: "插件";
70
- readonly hint: "选择一个插件进行配置 • Esc 关闭";
71
- readonly serperSearch: "Serper Search";
72
- readonly serperSearchDetail: "通过 Serper API 进行网络搜索";
73
- readonly configured: "已配置";
74
- readonly notConfigured: "未配置";
75
- readonly serperConfigTitle: "Serper Search 设置";
76
- readonly serperConfigHint: "Enter 应用 • Esc 取消";
77
- };
78
- readonly mcpSettingsDialog: {
79
- readonly title: "MCP";
80
- readonly hint: "编辑 mcp.json 文件以配置 MCP 服务器 • Esc 关闭";
81
- readonly configFileLabel: "配置文件:";
82
- readonly noServersHint: "尚未配置 MCP 服务器。";
83
- readonly serverCount: "已配置 {count} 个服务器";
84
- readonly guideText: "编辑上方文件以添加或修改 MCP 服务器。";
85
- readonly openFile: "打开文件";
86
- readonly reload: "重新加载";
87
- readonly close: "关闭";
88
- readonly reloaded: "MCP 配置已重新加载。";
89
- readonly reloadFailed: "重新加载失败:{error}";
90
- readonly status: "状态";
91
- readonly toolCount: "工具数";
92
- readonly disabled: "禁用";
93
- readonly testConnection: "测试";
94
- readonly testing: "正在测试连接...";
95
- readonly testComplete: "测试完成。";
96
- readonly testPartial: "测试完成(有错误)。";
97
- readonly testFailed: "连接失败:{error}";
98
- readonly invalidJson: "JSON 无效:{error}";
99
- readonly invalidShape: "MCP JSON 无效:需要 \"mcpServers\"。";
100
- readonly invalidServer: "MCP 服务器配置无效:{name}";
101
- readonly noServers: "没有找到 MCP 服务器。";
102
- readonly lintOk: "JSON 语法正确";
103
- readonly lintAt: "{error}(第 {line} 行,第 {column} 列)";
104
- readonly lintUnclosed: "未闭合的 {char}(第 {line} 行,第 {column} 列)";
105
- readonly lintInvalid: "{error}";
106
- readonly exampleFormat: "示例格式:";
107
- };
108
- readonly toolApprovalsDialog: {
109
- readonly title: "工具审批";
110
- readonly useAlways: "Always";
111
- readonly useAuto: "Auto";
112
- readonly useNormal: "Normal";
113
- readonly useStrict: "Strict";
114
- readonly close: "关闭";
115
- readonly focusedTitleAlways: "ALWAYS";
116
- readonly focusedTitleAuto: "AUTO";
117
- readonly focusedTitleNormal: "NORMAL";
118
- readonly focusedTitleStrict: "STRICT";
119
- readonly focusedTitleClose: "CLOSE";
120
- readonly focusedDescAlways: "可复用范围的审批自动通过;敏感的一次性请求仍需确认。";
121
- readonly focusedDescAuto: "非高风险审批自动通过,高风险仍需确认。";
122
- readonly focusedDescNormal: "读取类自动通过,写入类需确认。";
123
- readonly focusedDescStrict: "所有工具均须确认(最安全,最慢)。";
124
- readonly focusedDescClose: "关闭此对话框,不更改当前设置。";
125
- readonly currentPrefix: "当前:{mode}";
126
- readonly tip: "提示:用 ↑/↓ 移动,Enter 确认,Esc 关闭。";
127
- };
128
- readonly settingsDialog: {
129
- readonly pendingApproval: "请先处理待审批请求再更改设置。";
130
- readonly invalidShortcut: "快捷键无效:{label}({value})";
131
- readonly shortcutCommands: "命令面板快捷键";
132
- readonly shortcutTimeline: "时间线快捷键";
133
- readonly shortcutNewSession: "新会话快捷键";
134
- readonly toolApprovalsApplied: "工具审批:{mode}";
135
- readonly applied: "设置已应用。";
136
- };
137
- readonly exitAppDialog: {
138
- readonly title: "退出 DimCode";
139
- readonly confirm: "现在退出?";
140
- readonly warning: "仍有响应在进行中,退出将中断它。";
141
- readonly reasonPrefix: "原因:{reason}";
142
- };
143
- readonly approvalDialog: {
144
- readonly title: "工具权限审批";
145
- readonly toolLabel: "工具:{tool}{suffix}";
146
- readonly toolLabelSuffix: "({description})";
147
- readonly permissionLabel: "权限:{permission}({risk})";
148
- readonly descriptionLabel: "说明:{description}";
149
- readonly commandLabel: "命令:";
150
- readonly inlineActionHint: "↑/← 上一个 ↓/→ 下一个 Enter 确认 1/2/3 选择";
151
- readonly inlineActionHintCompact: "←/→ 移动 Enter 确认 1/2/3 选择";
152
- readonly buttons: {
153
- readonly approve: "允许";
154
- readonly alwaysApprove: "总是允许";
155
- readonly deny: "拒绝";
156
- readonly always: "总是";
157
- readonly ok: "确定";
158
- readonly no: "否";
159
- readonly y: "Y";
160
- readonly all: "全";
161
- readonly n: "N";
162
- };
163
- };
164
- readonly askUserDialog: {
165
- readonly noQuestionsTitle: "没有问题";
166
- readonly noQuestionsBody: "没有需要回答的问题。";
167
- readonly title: "问题 {index}/{total}:{header}";
168
- readonly defaultHeader: "问题";
169
- readonly prev: "上一题";
170
- readonly next: "下一题";
171
- readonly submit: "提交";
172
- readonly otherOption: "其他";
173
- readonly otherDetail: "填写自定义答案";
174
- readonly inlineHintOptions: "按 ↑↓ 移动选项,按 ←→ 切换按钮,按 Enter 触发。";
175
- readonly inlineHintMulti: "多选:按 Space 勾选或取消勾选。";
176
- readonly inlineHintButtons: "按 Tab 切到按钮,按 ←→ 切换,按 Enter 触发,按 ↑ 回到选项。";
177
- readonly inlineHintNav: "Ctrl+Left / Ctrl+Right(或 Ctrl+A / Ctrl+E)切换问题。";
178
- readonly inlineHintSubmit: "Ctrl+Enter 提交,Esc 取消。";
179
- readonly inlineButtonPrev: "[上一题]";
180
- readonly inlineButtonNext: "[下一题]";
181
- readonly inlineButtonSubmit: "[提交]";
182
- readonly inlineButtonCancel: "[取消]";
183
- readonly inlineActionHint: "Space 选择 ←/→ 切按钮 Enter 触发 Esc 取消";
184
- readonly inlineActionHintCompact: "←/→ 切按钮 Enter 触发 Esc 取消";
185
- readonly optionsSummaryAll: "共 {count} 个选项";
186
- readonly optionsSummaryVisibleMore: "共 {count} 个选项({start}-{end})↓ 更多";
187
- readonly multiSelectHint: "[多选] 空格切换,Enter 确认";
188
- readonly singleSelectHint: "[单选] 方向键移动,Enter 确认";
189
- readonly customAnswerLabel: "自定义答案:";
190
- readonly customAnswerPlaceholder: "请输入答案…";
191
- readonly otherPlaceholder: "已选“其他”:输入自定义答案,回车填入。";
192
- };
193
- readonly nextApiOAuthDialog: {
194
- readonly title: "DimCode OAuth 登录";
195
- readonly copyUrl: "复制链接";
196
- readonly submitCallback: "提交回调";
197
- readonly refreshModels: "刷新模型";
198
- readonly refreshingModels: "刷新中…";
199
- readonly login: "登录";
200
- readonly logout: "退出登录";
201
- readonly statusTitle: "状态";
202
- readonly statusAuthenticated: "✓ 已登录:{email}";
203
- readonly statusLoading: "⏳ 正在认证…";
204
- readonly statusNotLoggedIn: "✗ 未登录";
205
- readonly instructionAuthenticated: "使用 ↑↓/1-9 选择模型,←→ 切换按钮,Enter 确认";
206
- readonly instructionLoading: "若浏览器未打开,按 C 复制下方链接";
207
- readonly instructionNeedsSetup: "请检查 DimCode OAuth client 的 redirect_uri、scope 和启用状态后重试";
208
- readonly instructionWithUrl: "按 C 复制 OAuth 链接,Enter 打开浏览器,或在下方粘贴回调";
209
- readonly instructionUnauthed: "按 Enter 使用 DimCode OAuth 登录,或按 Esc 关闭";
210
- readonly oauthUrlTitleLoading: "OAuth 链接(浏览器未打开时复制)";
211
- readonly oauthUrlTitleReady: "OAuth 链接(可直接使用)";
212
- readonly callbackUrlTitle: "回调 URL";
213
- readonly callbackPlaceholder: "粘贴最终 localhost 回调 URL 或 code";
214
- readonly callbackEmpty: "请粘贴回调 URL 或授权 code。";
215
- readonly callbackParseFailed: "无法解析粘贴的回调 URL。";
216
- readonly callbackMissingCode: "粘贴内容缺少 code 参数。";
217
- readonly callbackStateMismatch: "OAuth state 不匹配,请重新登录。";
218
- readonly scrollIndicator: " [{start}-{end} / 共 {total}]";
219
- readonly selectModelTitle: "选择模型(↑↓/1-9,确认后应用){indicator}";
220
- readonly aboutTitle: "关于 DimCode OAuth";
221
- readonly setupTitle: "OAuth 登录异常";
222
- readonly aboutBulletOne: "• 内置使用 DimCode OAuth client";
223
- readonly aboutBulletTwo: "• 登录后会拉取 relay 模型并保存 provider 配置";
224
- readonly aboutBulletThree: "• 使用 OAuth refresh token,而不是长期 API Key";
225
- readonly viewAllPlans: "查看所有方案 →";
226
- readonly defaultAccount: "DimCode 账号";
227
- readonly toast: {
228
- readonly generatingUrl: "正在生成 OAuth 链接…";
229
- readonly urlReady: "OAuth 链接已就绪!复制或按 Enter 打开浏览器。";
230
- readonly generateUrlFailed: "生成 OAuth 链接失败:{error}";
231
- readonly localCallbackUnavailable: "本地 OAuth 回调不可用:{error}。请手动粘贴回调。";
232
- readonly startingLogin: "正在开始 OAuth 登录…";
233
- readonly browserOpened: "已打开浏览器,如未打开请从对话框复制链接。";
234
- readonly copyUrlToLogin: "请从对话框复制 OAuth 链接登录。";
235
- readonly urlCopied: "OAuth 链接已复制到剪贴板。";
236
- readonly urlCopyFailed: "复制 OAuth 链接失败。";
237
- readonly callbackRejected: "OAuth 回调无效:{error}";
238
- readonly authSuccess: "已成功通过 DimCode OAuth 认证!";
239
- readonly loginFailed: "OAuth 登录失败:{error}";
240
- readonly loggedOut: "已退出 DimCode OAuth 登录";
241
- readonly loggedOutWithRemoteWarning: "已退出 DimCode OAuth 登录,但服务端撤销失败:{error}";
242
- readonly logoutFailed: "退出登录失败:{error}";
243
- readonly initFailed: "初始化对话框失败:{error}";
244
- readonly modelSwitched: "已切换模型:{model}";
245
- readonly selectModelFailed: "选择模型失败:{error}";
246
- readonly modelsRefreshed: "已刷新 {count} 个模型。";
247
- readonly modelsRefreshFailed: "刷新模型失败:{error}";
248
- };
249
- };
250
- readonly debugTryDialog: {
251
- readonly titleDebug: "调试";
252
- readonly titleDebugging: "正在调试";
253
- readonly copy: "复制";
254
- readonly proceed: "继续";
255
- readonly fixed: "已修复";
256
- readonly body: "我已添加调试日志(并可能修复了问题)。请现在尝试复现,然后选择结果。";
257
- };
258
- readonly exitSessionDialog: {
259
- readonly title: "退出会话";
260
- readonly confirm: "退出当前会话并返回首页?";
261
- readonly note: "下一条消息将开启新会话。";
262
- };
263
- readonly messageActionsDialog: {
264
- readonly title: "消息操作";
265
- readonly revert: "撤回消息";
266
- readonly revertWithFiles: "撤回消息及文件改动";
267
- readonly revertKeepFiles: "撤回消息(保留文件更改)";
268
- readonly revertFilesOnly: "只回滚文件改动";
269
- readonly copy: "复制消息文本到剪贴板";
270
- readonly fork: "分叉创建新会话";
271
- readonly pin: "置顶消息";
272
- readonly unpin: "取消置顶";
273
- };
274
- readonly pathPickerDialog: {
275
- readonly hint: "↑/↓ 选择 • Tab 补全 • Enter 确认 • Esc 关闭";
276
- };
277
- readonly providerConnectDialog: {
278
- readonly title: "连接 {provider}";
279
- readonly providerFallback: "提供方";
280
- readonly hint: "Tab 切换 • Ctrl+C 清空 • Enter 应用";
281
- readonly hintOpenAI: "Tab 切换 • Ctrl+C 清空 • Enter 应用";
282
- readonly hintGemini: "Tab 切换 • Ctrl+C 清空 • Enter 应用";
283
- readonly hintAnthropic: "Tab 切换 • Ctrl+C 清空 • Enter 应用";
284
- readonly hintGeneric: "Tab 切换 • Ctrl+C 清空 • Enter 应用";
285
- readonly applyingHint: "正在测试连接,请稍候...";
286
- readonly applyingButton: "应用中...";
287
- readonly testConnection: "测试连接";
288
- readonly baseUrlStatusAutoFix: "自动修正:{value}";
289
- readonly baseUrlStatusInvalid: "Base URL 必须是 http(s)";
290
- readonly baseUrlTitle: "Base URL";
291
- readonly baseUrlPlaceholder: "https://api.example.com/v1";
292
- readonly apiKeyTitle: "API Key";
293
- readonly apiKeyPlaceholder: "粘贴新 Key 以更新(留空保持不变)";
294
- readonly apiKeyCurrent: "当前:{value}";
295
- readonly apiKeyNotSet: "当前:(未设置)";
296
- readonly clearKey: "清除 Key";
297
- readonly useDetectedKey: "使用 {name}";
298
- };
299
- readonly redoConfirmDialog: {
300
- readonly title: "确认重做";
301
- readonly body: "确定要恢复已撤回的消息吗?";
302
- };
303
- readonly renameSessionDialog: {
304
- readonly title: "重命名会话";
305
- readonly label: "会话名称";
306
- readonly placeholder: "例如:规划笔记";
307
- };
308
- readonly sessionsDialog: {
309
- readonly timeNow: "刚刚";
310
- readonly timeMinutes: "{count} 分钟";
311
- readonly timeHours: "{count} 小时";
312
- readonly timeDays: "{count} 天";
313
- readonly newSession: "新会话";
314
- readonly title: "会话({count})";
315
- readonly titleScoped: "会话({count}/{total})";
316
- readonly scope: "范围:{cwd}";
317
- readonly loading: "加载中…";
318
- readonly confirmDelete: "确认删除:再次按 Delete";
319
- readonly header: "{count} 个会话 • 方向键导航 • Enter 选择{range}{activity}";
320
- readonly headerRange: " • 显示 {start}-{end}";
321
- readonly runningCount: "运行中 {count} 个";
322
- readonly pausedCount: "等待确认 {count} 个";
323
- readonly hint: "输入以跳转 • ←/→ 按钮 • Enter 确认 • Esc 关闭";
324
- readonly focusPrefix: "焦点:{focus}";
325
- readonly focusList: "列表";
326
- readonly focusButtons: "按钮";
327
- readonly noSessionsCwd: "当前目录没有会话";
328
- readonly noSessions: "暂无已保存会话";
329
- readonly nodeOnly: "会话仅在 Node/CLI 模式可用。";
330
- readonly newSessionTitle: "新会话";
331
- readonly newSessionTarget: "一个新会话";
332
- readonly busy: {
333
- readonly agentResponding: "助手仍在响应";
334
- readonly awaitingAskUser: "等待 AskUser 回复";
335
- readonly awaitingToolApproval: "等待工具审批";
336
- readonly pendingApproval: "等待审批";
337
- };
338
- readonly buttons: {
339
- readonly open: "打开";
340
- readonly delete: "删除";
341
- readonly deleteConfirm: "删除(确认)";
342
- readonly scope: "范围:{scope}";
343
- readonly scopeCwd: "当前目录";
344
- readonly scopeAll: "全部";
345
- readonly refresh: "刷新";
346
- };
347
- };
348
- readonly switchSessionDialog: {
349
- readonly title: "切换会话";
350
- readonly confirm: "切换并中断";
351
- readonly target: "切换到 {target}?";
352
- readonly fallback: "现在切换会话?";
353
- readonly warning: "这将中断当前会话的响应/流程。";
354
- readonly reason: "原因:{reason}";
355
- };
356
- readonly themeDialog: {
357
- readonly title: "主题";
358
- readonly hint: "Enter 应用 • Esc 取消";
359
- readonly mode: "模式";
360
- readonly light: "浅色";
361
- readonly dark: "深色";
362
- readonly tip: "提示:默认跟随系统主题。";
363
- };
364
- readonly commandPalette: {
365
- readonly searchPlaceholder: "搜索…";
366
- readonly noMatches: "无匹配项";
367
- readonly hint: "输入筛选 • Enter: 打开 • Esc: 关闭";
368
- readonly title: "命令";
369
- };
370
- readonly help: {
371
- readonly title: "帮助";
372
- readonly modeLabel: "模式:{mode}";
373
- readonly modeDetail: "当前助理模式。";
374
- readonly shortcutsLabel: "快捷键";
375
- readonly onboarding: "欢迎使用!快速上手:\n1) /connect:连接提供方\n2) /models:选择模型\n3) 发送「hello」开始对话\n提示:{commandsKey} 可打开命令面板。";
376
- readonly items: {
377
- readonly help: "帮助与快捷键(F1)";
378
- readonly commands: "命令面板(Ctrl+P)";
379
- readonly back: "返回上一跳";
380
- readonly status: "切换状态详情";
381
- };
382
- };
383
- readonly commands: {
384
- readonly help: {
385
- readonly label: "帮助";
386
- readonly detail: "快捷键与常用命令(F1)";
387
- };
388
- readonly sessions: {
389
- readonly label: "会话";
390
- readonly detail: "选择或创建会话(/sessions)";
391
- };
392
- readonly timeline: {
393
- readonly label: "时间线";
394
- readonly detail: "跳转到用户消息(/timeline)";
395
- };
396
- readonly trace: {
397
- readonly label: "请求追踪";
398
- readonly detail: "查看当前会话请求链路(/trace)";
399
- };
400
- readonly newSession: {
401
- readonly label: "新会话";
402
- readonly detail: "开始新会话(/new)";
403
- };
404
- readonly connectProvider: {
405
- readonly label: "连接提供方";
406
- readonly detail: "连接提供方(/connect)";
407
- };
408
- readonly models: {
409
- readonly label: "模型";
410
- readonly detail: "选择模型(/models)";
411
- };
412
- readonly toolApprovals: {
413
- readonly label: "工具审批";
414
- readonly detail: "配置审批(/approvals)";
415
- };
416
- readonly toolSettings: {
417
- readonly label: "工具设置";
418
- readonly detail: "配置工具设置(/tool-settings)";
419
- };
420
- readonly mcpHub: {
421
- readonly label: "MCP";
422
- readonly detail: "管理 MCP 连接器与设置(/mcp)";
423
- };
424
- readonly plugins: {
425
- readonly label: "插件";
426
- readonly detail: "管理插件(/plugins)";
427
- };
428
- readonly mcpSettings: {
429
- readonly label: "MCP(高级 JSON)";
430
- readonly detail: "配置原始 MCP 服务器 JSON(/mcp-settings)";
431
- };
432
- readonly language: {
433
- readonly label: "语言";
434
- readonly detail: "切换界面语言(/language)";
435
- };
436
- readonly settings: {
437
- readonly label: "设置";
438
- readonly detail: "自定义提供方(/settings, Ctrl+K)";
439
- };
440
- };
441
- readonly homePage: {
442
- readonly multilineTitle: "多行文本";
443
- readonly multilineTitleWithCount: "多行文本({count} 行)";
444
- readonly providerCustom: "自定义";
445
- readonly reviewPrompt: "帮我审查代码变更";
446
- readonly footerCwd: "cwd {cwd}";
447
- readonly hints: {
448
- readonly switchMode: "切换模式";
449
- readonly commands: "命令";
450
- };
451
- readonly tips: {
452
- readonly greeting: "欢迎回来!用 {commandsKey} 打开命令,或用 /connect 配置提供方。";
453
- readonly commandsAlias: "小贴士:{key} 可打开命令面板。";
454
- };
455
- readonly prompts: {
456
- readonly help: "帮助与快捷键(F1)";
457
- readonly sessions: "列出/选择会话";
458
- readonly connect: "连接提供方";
459
- readonly models: "选择模型";
460
- readonly newSession: "开始新会话";
461
- readonly approvals: "配置工具审批(auto/normal/strict)";
462
- readonly commands: "打开命令面板";
463
- readonly toolSettings: "配置工具设置";
464
- readonly mcpSettings: "打开 MCP";
465
- readonly plugins: "管理插件";
466
- readonly language: "切换界面语言";
467
- readonly theme: "选择主题";
468
- readonly status: "切换状态详情";
469
- readonly review: "审查代码变更";
470
- readonly skills: "查看已加载的 Skills";
471
- readonly exit: "退出应用";
472
- readonly debug: "调试对话框(聊天)";
473
- readonly settings: "自定义提供方设置";
474
- };
475
- readonly commandPalette: {
476
- readonly connect: "连接提供方";
477
- readonly models: "选择模型";
478
- };
479
- readonly commands: {
480
- readonly debugLabel: "调试";
481
- readonly debugDetail: "运行时状态(/debug)";
482
- };
483
- readonly toast: {
484
- readonly approvalsUsage: "使用 /approvals(无需 on/off)。";
485
- readonly customProviderOnly: "设置仅适用于自定义提供方。";
486
- readonly redoChatOnly: "重做仅在聊天视图可用。";
487
- readonly retryChatOnly: "重试仅在聊天视图可用。";
488
- readonly pinsChatOnly: "置顶仅在聊天视图可用。";
489
- readonly renameChatOnly: "重命名仅在聊天视图可用(/rename <title>)。";
490
- readonly commandRemoved: "该指令已移除:{command}";
491
- readonly helpAliasRemoved: "查看帮助请按 F1。";
492
- readonly deleteConfirm: "再次按 Delete 确认删除。";
493
- readonly themeToggled: "主题:{mode}";
494
- readonly pasteImagePending: "图片处理中,请稍候再发送。";
495
- };
496
- };
497
- readonly chatPage: {
498
- readonly placeholder: "随便问点什么…(换行:Shift+Enter 或 Ctrl+J)";
499
- readonly placeholderAwaitingApproval: "审批阻塞中:请选择 允许 / 拒绝 后继续。";
500
- readonly reviewPrompt: "帮我审查代码变更";
501
- readonly notification: {
502
- readonly approvalTitle: "[需要审批] 工具权限";
503
- readonly approvalMessage: "DimCode 正在等待工具审批:{tool}。";
504
- readonly askUserTitle: "[需要操作] 问题";
505
- readonly askUserMessage: "DimCode 正在等待你在当前 terminal 中回答。";
506
- readonly doneTitle: "[任务完成]";
507
- readonly doneMessage: "DimCode 已完成本次任务。";
508
- readonly doneMessageWithDuration: "DimCode 已完成本次任务,耗时 {duration}。";
509
- readonly doneMessageWithTools: "DimCode 已完成本次任务,共调用 {tools} 次工具。";
510
- readonly doneMessageWithToolsAndDuration: "DimCode 已完成本次任务,耗时 {duration},共调用 {tools} 次工具。";
511
- };
512
- readonly headerStats: "{messages} 条消息 · {tokens} 令牌";
513
- readonly contextChip: "≈{pct}% / {tokens} 令牌";
514
- readonly contextChipCompact: "{pct}%";
515
- readonly thinkingWords: "Coalescing,Thinking,Reasoning,Planning,Analyzing,Synthesizing,Refining,Composing";
516
- readonly modelFallback: "模型";
517
- readonly mode: {
518
- readonly plan: "计划";
519
- readonly agent: "助手";
520
- readonly debug: "调试";
521
- };
522
- readonly status: {
523
- readonly approvalsAuto: "AUTO";
524
- readonly approvalsAll: "ALL";
525
- readonly blockedByApproval: "等待审批中";
526
- readonly awaitingApprovalAction: "等待你的审批:请选择允许 / 拒绝后继续。";
527
- };
528
- readonly footer: {
529
- readonly dragSelect: "拖拽选择";
530
- readonly openLink: "Ctrl+点击打开文件或链接";
531
- readonly esc: "esc";
532
- readonly approvalPaused: "⏸ 已暂停";
533
- readonly approvalPausedHint: "等待审批中(按 Enter 选择)。";
534
- readonly shortcuts: "Ctrl+K:配置 Ctrl+O:展开/收起工具/思考 Cmd+Delete/Ctrl+W:清空输入 Tab:切换模式 {commandsKey}:命令";
535
- readonly shortcutsCompact: "Ctrl+K:配置 Ctrl+O:工具/思考 Cmd+Delete/Ctrl+W:清空 Tab:切换模式 {commandsKey}:命令";
536
- readonly shortcutsMicro: "Ctrl+O:工具 {commandsKey}:命令";
537
- readonly shortcutsMini: "{commandsKey}:命令";
538
- };
539
- readonly session: {
540
- readonly new: "新建";
541
- };
542
- readonly restore: {
543
- readonly loading: "正在恢复会话...";
544
- readonly error: "恢复该会话失败。";
545
- };
546
- readonly timeline: {
547
- readonly title: "时间线";
548
- readonly empty: "(空)";
549
- readonly filterAll: "全部消息";
550
- readonly filterUser: "用户消息";
551
- readonly filterTool: "工具调用";
552
- };
553
- readonly pins: {
554
- readonly title: "置顶";
555
- readonly empty: "(空)";
556
- };
557
- readonly jumpToBottom: {
558
- readonly button: "↓";
559
- };
560
- readonly prompts: {
561
- readonly help: "帮助与快捷键(F1)";
562
- readonly newSession: "开始新会话";
563
- readonly resume: "恢复已暂停的队列";
564
- readonly sessions: "列出/选择会话";
565
- readonly timeline: "跳转到用户消息";
566
- readonly trace: "查看当前会话请求/事件追踪";
567
- readonly pins: "打开置顶消息";
568
- readonly pin: "置顶上一条消息";
569
- readonly back: "返回上一跳";
570
- readonly connect: "连接提供方";
571
- readonly models: "选择模型";
572
- readonly theme: "切换界面主题";
573
- readonly approvals: "配置工具审批(auto/normal/strict)";
574
- readonly commands: "打开命令面板";
575
- readonly toolSettings: "配置工具设置";
576
- readonly mcpSettings: "打开 MCP";
577
- readonly plugins: "管理插件";
578
- readonly language: "切换界面语言";
579
- readonly status: "切换状态详情";
580
- readonly review: "审查代码变更";
581
- readonly retry: "重试上一条用户消息";
582
- readonly compact: "压缩会话上下文";
583
- readonly rename: "重命名当前会话";
584
- readonly skills: "查看已加载的 Skills";
585
- readonly exit: "退出应用";
586
- readonly debug: "调试对话框";
587
- readonly settings: "自定义提供方设置";
588
- };
589
- readonly commands: {
590
- readonly pinsLabel: "置顶";
591
- readonly pinsDetail: "打开置顶消息";
592
- readonly backLabel: "返回";
593
- readonly backDetail: "回到上一跳";
594
- readonly debugLabel: "调试";
595
- readonly debugDetail: "运行时状态(/debug)";
596
- readonly statusLabel: "状态";
597
- readonly statusDetail: "切换状态详情";
598
- readonly themeLabel: "主题";
599
- readonly themeDetail: "切换颜色主题";
600
- };
601
- readonly tips: {
602
- readonly contextWarn: "小贴士:上下文快满了,可以用 /compact 压缩或 /new 新开会话。";
603
- readonly contextCritical: "小贴士:已接近上下文上限,建议 /new 新开会话(或先 /compact)。";
604
- readonly timeline: "小贴士:对话变长时,用 /tl 打开时间线快速跳回某条消息。";
605
- readonly timelineAlias: "小贴士:/tl 是 /timeline 的快捷别名。";
606
- readonly commandsAlias: "小贴士:{key} 可打开命令面板。";
607
- readonly errorRecovery: "小贴士:出错时可试试 /compact 或 /new。";
608
- readonly greeting: "欢迎回来!用 {commandsKey} 打开命令,或用 /connect 配置提供方。";
609
- readonly compactDelight: "不错!保持上下文精简很有帮助。";
610
- readonly addTests: "搞定了!要不要我顺手写测试?回复「是/要」。";
611
- };
612
- readonly trace: {
613
- readonly title: "会话追踪";
614
- readonly loading: "正在加载会话追踪...";
615
- readonly empty: "当前会话还没有可显示的请求追踪。";
616
- readonly error: "加载会话追踪失败。";
617
- readonly summary: "{requests} 个请求 · {events} 个事件 · {processes} 个进程";
618
- readonly hint: "上下键切换请求 · 刷新重新拉取 · Esc 关闭";
619
- readonly sessionEvents: "会话级事件";
620
- readonly requestFallback: "(空提示词)";
621
- readonly counts: "{events} 个事件 · {runs} 个 run · {tools} 个工具 · {children} 个子任务 · {compactions} 次压缩";
622
- readonly processes: "进程:{count}";
623
- readonly noProcesses: "这个请求没有托管的 process-session。";
624
- readonly moreProcesses: "… 还有 {count} 个进程";
625
- readonly moreEvents: "… 还有 {count} 个事件";
626
- };
627
- readonly subagent: {
628
- readonly title: "Subagent";
629
- readonly titleWithName: "Subagent:{name}";
630
- readonly loading: "正在加载 subagent...";
631
- readonly empty: "当前还没有可显示的 subagent 工作内容。";
632
- readonly error: "加载 subagent 失败。";
633
- readonly summary: "{status} · {tools} 个工具 · {messages} 条消息 · {events} 个事件 · {thread}";
634
- readonly hint: "滚动查看子聊天 · 刷新重新拉取 · Esc 关闭";
635
- readonly running: "Subagent 运行中...";
636
- readonly sending: "发送中...";
637
- readonly send: "发送";
638
- readonly messageLabel: "给运行中的 subagent 发消息:";
639
- readonly pausedReadonly: "Subagent 正在等待审批或用户输入,请在主界面处理。";
640
- readonly readonly: "该 subagent 未在运行,输入只读。";
641
- readonly messagePlaceholder: "给这个 subagent 发送消息...";
642
- readonly readonlyPlaceholder: "Subagent 只读";
643
- };
644
- readonly confirm: {
645
- readonly addTests: "请为刚才的修改补充测试。";
646
- };
647
- readonly toast: {
648
- readonly customProviderOnly: "设置仅适用于自定义提供方。";
649
- readonly renameNodeOnly: "重命名仅在 Node/CLI 模式可用。";
650
- readonly noActiveSession: "没有可重命名的会话。";
651
- readonly sessionNameEmpty: "会话名称不能为空。";
652
- readonly sessionRenamed: "会话已重命名为:{title}";
653
- readonly renameFailed: "重命名会话失败。";
654
- readonly linkOpenHint: "提示:Ctrl+点击可打开文件或链接。";
655
- readonly copySuccess: "已复制";
656
- readonly copyFailed: "复制失败";
657
- readonly forkFailed: "分叉会话失败。";
658
- readonly backEmpty: "没有可返回的上一跳。";
659
- readonly pinsEmpty: "还没有置顶消息。";
660
- readonly pinEmpty: "暂无可置顶的消息。";
661
- readonly pinned: "已置顶消息。";
662
- readonly unpinned: "已取消置顶。";
663
- readonly debugUnavailable: "调试服务器不可用。";
664
- readonly approvalsUsage: "使用 /approvals(无需 on/off)。";
665
- readonly debugDialogOpened: "调试对话框已打开。";
666
- readonly debugDialogClosed: "调试对话框已关闭。";
667
- readonly traceUnavailable: "当前运行时不支持会话追踪。";
668
- readonly subagentUnavailable: "当前运行时不支持查看 subagent。";
669
- readonly subagentReadonly: "该 subagent 当前不能接收消息。";
670
- readonly subagentSteerSent: "subagent steer 已提交。";
671
- readonly subagentSteerFailed: "发送 subagent 消息失败。";
672
- readonly renameUsage: "用法:/rename <title>";
673
- readonly themeToggled: "主题:{mode}";
674
- readonly statusCompactOn: "状态:精简";
675
- readonly statusCompactOff: "状态:详细";
676
- readonly compactingSession: "正在压缩会话...";
677
- readonly compactSuccess: "会话已压缩:{message}";
678
- readonly compactWarning: "会话已压缩,但收益有限:{message}";
679
- readonly compactSuccessDetailWithTokens: "前 {count} 条历史消息已折叠为摘要,预估输入 {before} -> {after} tokens,约省 {saved} tokens。";
680
- readonly compactSuccessDetailNotReduced: "前 {count} 条历史消息已折叠为摘要,但预估输入变成了 {before} -> {after} tokens,这次没有变小。";
681
- readonly compactSuccessDetailCountOnly: "前 {count} 条历史消息已折叠为摘要。";
682
- readonly compactSuccessDetailSummaryOnly: "已生成新的历史摘要。";
683
- readonly compactAlreadyCurrent: "会话已经是最新压缩状态,没有新的历史可折叠。";
684
- readonly compactFailed: "会话压缩失败:{error}";
685
- readonly compactFailedTokenLimit: "压缩失败:上下文预算不足。请正确设置 DIMCODE_CONTEXT_WINDOW,或切换更大上下文模型,或使用 /new。详情:{error}";
686
- readonly retryEmpty: "没有可重试的上一条消息。";
687
- readonly commandRemoved: "该指令已移除:{command}";
688
- readonly helpAliasRemoved: "查看帮助请按 F1。";
689
- readonly waitForResponse: "请等待当前响应完成,或按 Esc 中断。";
690
- readonly pasteImagePending: "图片处理中,请稍候再发送。";
691
- readonly pendingApproval: "请先处理 tool_approve。";
692
- readonly awaitingApprovalAction: "已暂停:需要你的操作。请在权限卡中选择允许 / 始终允许 / 拒绝。";
693
- readonly awaitingApprovalStillWaiting: "仍在等待审批({seconds} 秒)。在你允许或拒绝前,模型不会继续。";
694
- readonly pendingAskUser: "请先处理 ask_user。";
695
- readonly sessionBusyElsewhere: "另一个窗口还在处理当前会话。请等它结束后再在这里发送。";
696
- readonly notificationSessionBusy: "这条通知属于另一个忙碌中的会话。请先完成当前工作,或手动切换过去。";
697
- readonly notificationSessionUnavailable: "当前环境无法打开这条通知对应的会话。";
698
- readonly notificationSessionSwitchFailed: "打开这条通知对应的会话失败。";
699
- readonly approvalNotActive: "该审批在排队,请先处理当前审批。";
700
- readonly askUserNotActive: "该 ask_user 已失效。";
701
- };
702
- };
703
- readonly chatQueue: {
704
- readonly label: "队列({count})";
705
- readonly labelCompact: "队列 {count}";
706
- readonly more: "还有 {count} 条…";
707
- readonly resumeToken: "/resume";
708
- readonly resumePlainToken: "resume";
709
- readonly resumeLegacyToken: "继续队列";
710
- readonly state: {
711
- readonly idle: "待发送";
712
- readonly running: "运行中";
713
- readonly paused: "等待继续";
714
- readonly error: "错误";
715
- };
716
- readonly item: {
717
- readonly steerAction: "Steer";
718
- readonly steerReady: "优先";
719
- readonly steerPending: "下一次";
720
- readonly steerPaused: "暂停";
721
- };
722
- readonly toast: {
723
- readonly enqueued: "已加入队列(第 {count} 条)。";
724
- readonly full: "队列已满(最多 5 条),请先删除或 /new 新建会话。";
725
- readonly cleared: "已清空 {count} 条队列消息。";
726
- readonly deleted: "已删除 {count} 条队列消息,按 Ctrl+Z 可撤销。";
727
- readonly steerPromoted: "已升级为 steer;恢复队列后会优先生效。";
728
- readonly steerQueued: "steer 当前不能立刻注入;已排到最前,会在下一轮优先生效。";
729
- readonly steerSent: "steer 已提交;会在当前轮下一次模型调用前注入。";
730
- readonly undo: "已撤销队列删除。";
731
- readonly pausedTip: "队列已暂停,输入 {resume} 或 {resumeText} 可继续,或发送新消息后选择如何处理。";
732
- readonly stale: "队列已暂停:请求疑似卡住。";
733
- };
734
- readonly confirm: {
735
- readonly title: "继续发送队列吗?";
736
- readonly description: "上一条请求未完成,队列中还有 {count} 条等待发送。";
737
- readonly hint: "继续发送下一条,或暂停队列。";
738
- readonly continue: "继续发送";
739
- readonly pause: "暂停队列";
740
- readonly reason: "原因:{reason}";
741
- };
742
- readonly reason: {
743
- readonly network_error: "网络异常。";
744
- readonly timeout: "请求超时。";
745
- readonly canceled_by_user: "已由用户取消。";
746
- readonly rate_limited: "触发限流。";
747
- readonly config_unavailable: "保存的配置不可用。";
748
- readonly unknown: "请求失败。";
749
- };
750
- readonly draftDecision: {
751
- readonly title: "队列已暂停";
752
- readonly description: "还有 {count} 条队列消息等待发送。请选择如何处理这次新输入。";
753
- readonly previewLabel: "新输入:";
754
- readonly continue: "继续队列";
755
- readonly append: "追加到队列";
756
- readonly replace: "丢弃旧队列并发送";
757
- };
758
- };
759
- readonly chatStatus: {
760
- readonly done: "完成。";
761
- readonly error: "错误。";
762
- readonly interrupted: "已中断。";
763
- readonly permissionDenied: "权限被拒绝。";
764
- readonly planning: "规划中…";
765
- readonly drafting: "起草中…";
766
- readonly runningTool: "正在运行 {tool}…";
767
- readonly runningTools: "正在运行 {count} 个工具…";
768
- readonly approvalPendingOther: "已有其他审批在等待({permission})…";
769
- readonly awaitingApproval: "等待批准…";
770
- readonly awaitingApprovalWithPerm: "等待批准({permission})…";
771
- readonly awaitingApprovalWithRisk: "等待批准({risk})…";
772
- readonly awaitingAnswers: "等待回答…";
773
- readonly resumingApproved: "已批准,继续…";
774
- readonly resumingDenied: "已拒绝,继续…";
775
- readonly resuming: "继续…";
776
- readonly autoApprovingWithRisk: "自动批准中({risk})…";
777
- readonly riskFallback: "风险";
778
- readonly toolFallback: "工具";
779
- readonly thinking: "思考中…";
780
- readonly autoCompactionRequired: "上下文接近上限,需要先压缩。";
781
- readonly autoCompactionRequiredDetailed: "上下文接近上限 · 下一次请求预计占用 {estimated} tokens,自动压缩阈值为 {threshold} tokens,因此需要先压缩。";
782
- readonly compressed: "上下文已压缩 · 已将 {removed} 条旧消息折叠为摘要,本轮请求预估少占用 {saved} tokens(耗时 {elapsed}ms)";
783
- readonly autoCompactedDetailed: "自动压缩完成 · 已将 {removed} 条旧消息折叠为摘要,预估输入 {before} -> {after} tokens,约省 {saved} tokens";
784
- readonly autoCompactedNotReduced: "自动压缩完成 · 已将 {removed} 条旧消息折叠为摘要,但预估输入变成了 {before} -> {after} tokens,这次没有变小";
785
- readonly autoCompactedSaved: "自动压缩完成 · 已将 {removed} 条旧消息折叠为摘要,约省 {saved} tokens";
786
- readonly autoCompactedCountOnly: "自动压缩完成 · 已将 {removed} 条旧消息折叠为摘要";
787
- readonly interruptedMarkdown: "> **已中断** · 用户已取消响应(`Esc`)。";
788
- readonly awaitingApprovalPrefix: "等待批准";
789
- readonly awaitingAnswersPrefix: "等待回答";
790
- readonly approvalPendingPrefix: "已有其他审批在等待";
791
- readonly autoApprovingPrefix: "自动批准中";
792
- };
793
- readonly chatParts: {
794
- readonly thinking: "思考";
795
- readonly plan: "计划";
796
- readonly todo: "待办";
797
- };
798
- readonly chatRender: {
799
- readonly userLabel: "用户";
800
- readonly outputLabel: "↳ 输出";
801
- readonly outputLabelShort: "输出:";
802
- readonly canceled: "已取消";
803
- readonly inputLabel: "输入:";
804
- readonly collapse: "...(收起)";
805
- readonly moreLines: "...(还有 {count} 行)";
806
- readonly moreLinesOmitted: "...(已省略 {count} 行;设置 {envVar} 可增加)";
807
- readonly streamingTail: "…(流式:仅显示最后 {shown} 个字符;已省略 {omitted} 个)";
808
- readonly copy: "复制";
809
- readonly userResponses: "用户回复:";
810
- readonly approvalQueued: "等待前一个审批完成…";
811
- readonly proposedPlan: {
812
- readonly title: "实施计划";
813
- };
814
- readonly llmMeta: {
815
- readonly changedFiles: "本轮改动 {count} 个文件:{files}";
816
- readonly changedFilesMore: "另 {count} 个";
817
- readonly revertHint: "提示:点击这条消息并选择“撤回消息”可回退本轮改动与消息。";
818
- readonly changedFilesCardTitle: "本轮改动 {count} 个文件:";
819
- readonly revertButton: "撤回";
820
- };
821
- readonly toolName: {
822
- readonly explore: "Explore";
823
- readonly subagent: "Subagent";
824
- };
825
- readonly toolSuffix: {
826
- readonly offset: "偏移 {value}";
827
- readonly limit: "限制 {value}";
828
- readonly matches: "{count} 个匹配";
829
- readonly todos: "{count} 项待办";
830
- readonly results: "{count} 条结果";
831
- readonly results_one: "{count} 条结果";
832
- };
833
- readonly toolGroup: {
834
- readonly readFiles: "读取 {count} 个文件";
835
- readonly writeFiles: "写入 {count} 个文件";
836
- readonly editFiles: "编辑 {count} 个文件";
837
- readonly globPatterns: "Glob {count} 个模式";
838
- readonly globSingle: "Glob {pattern}";
839
- readonly grepPatterns: "Grep {count} 个模式";
840
- readonly bashCommands: "执行 {count} 条命令";
841
- readonly searchQueries: "搜索 {count} 个查询";
842
- readonly summarySeparator: ",";
843
- readonly editedFilesDone: "编辑 {count} 个文件";
844
- readonly searchesDone: "{count} 次搜索";
845
- readonly bashCommandsDone: "执行 {count} 条命令";
846
- readonly fetchUrlsDone: "获取 {count} 个 URL";
847
- readonly subagentsDone: "{count} 个 Subagent";
848
- readonly taskCount: "{name} x{count}";
849
- readonly generic: "{name} x{count}";
850
- };
851
- };
852
- readonly toolApproval: {
853
- readonly reason: {
854
- readonly search: "搜索可能访问网络。";
855
- readonly bash: "Bash 可执行命令。";
856
- readonly edit: "文件变更可能修改本地文件。";
857
- readonly grep: "Grep 可能读取本地文件。";
858
- };
859
- readonly inlineHint: "按 ↑↓←→ 移动,按 Enter 选择。";
860
- readonly awaitingUserAction: "等待你的操作:请选择允许 / 始终允许 / 拒绝。";
861
- readonly decision: {
862
- readonly userDenied: "用户拒绝了审批";
863
- };
864
- readonly denied: {
865
- readonly title: "# 工具权限被拒绝";
866
- readonly toolLine: "- 工具:`{tool}`";
867
- readonly permissionLine: "- 权限:`{permission}`";
868
- readonly hint: "你可以重新选择该 tool_call 并重试。";
869
- };
870
- readonly summary: {
871
- readonly title: "# 已批准并执行工具";
872
- readonly permissionLine: "已批准 `{permission}` 权限以执行 `{tool}`。";
873
- };
874
- readonly required: "需要审批({risk})。";
875
- readonly args: {
876
- readonly commandWithDescription: "命令:{command} - {description}";
877
- readonly command: "命令:{command}";
878
- readonly description: "说明:{description}";
879
- readonly raw: "参数:{args}";
880
- };
881
- };
882
- readonly pathPicker: {
883
- readonly titleWorkspace: "选择工作区";
884
- readonly titleFile: "选择文件";
885
- readonly placeholderWorkspace: "输入路径(../ 等)。Tab 补全,Enter 选择目录。";
886
- readonly placeholderFile: "输入路径(../ 等)。Tab 补全,Enter 选择文件。";
887
- };
888
- readonly providerDialogs: {
889
- readonly customLabel: "自定义";
890
- readonly customDetail: "自定义";
891
- readonly nextApiOAuthLabel: "DimCode OAuth";
892
- readonly nextApiOAuthDetail: "通过 DimCode OAuth 登录";
893
- readonly addCustomLabel: "添加自定义提供方";
894
- readonly addCustomDetail: "添加自定义提供方";
895
- readonly providerFallback: "提供方";
896
- readonly adapter: {
897
- readonly openai: "OpenAI";
898
- readonly openaiOpenRouter: "OpenAI 兼容(OpenRouter)";
899
- readonly openaiLocal: "OpenAI 兼容(本地端点)";
900
- readonly openaiResponses: "OpenAI Responses";
901
- readonly gemini: "Gemini";
902
- readonly anthropic: "Anthropic";
903
- };
904
- readonly status: {
905
- readonly configured: "已配置";
906
- readonly notConfigured: "未配置";
907
- };
908
- readonly manage: {
909
- readonly title: "自定义提供方:{provider}";
910
- readonly connect: "连接";
911
- readonly connectDetail: "编辑 API Key / Base URL";
912
- readonly rename: "重命名";
913
- readonly renameDetail: "编辑提供方名称";
914
- readonly models: "编辑模型";
915
- readonly modelsDetail: "更新可用模型 ID";
916
- readonly delete: "删除";
917
- readonly deleteDetail: "移除此提供方";
918
- };
919
- readonly deleteConfirm: {
920
- readonly title: "删除 {provider}?";
921
- readonly confirm: "删除(确认)";
922
- readonly confirmDetail: "此操作无法撤销";
923
- readonly cancelDetail: "保留提供方";
924
- };
925
- readonly nameDialog: {
926
- readonly title: "命名自定义提供方";
927
- readonly label: "提供方名称";
928
- readonly placeholder: "例如:DeepSeek(代理)";
929
- };
930
- readonly modelsDialog: {
931
- readonly title: "自定义提供方模型";
932
- readonly modelsTitle: "模型";
933
- readonly modelsPlaceholder: "模型 ID(, 或换行分隔)";
934
- readonly hint: ", / 换行分隔 • Shift+Enter 换行 • Enter 应用";
935
- readonly fetch: "拉取模型";
936
- readonly fetching: "正在拉取模型…";
937
- };
938
- readonly modelsFetchDialog: {
939
- readonly title: "选择模型";
940
- readonly searchPlaceholder: "筛选模型";
941
- readonly hint: "Space 勾选 • Enter 确认 • Esc 取消";
942
- };
943
- readonly toast: {
944
- readonly modelSet: "模型已设置为 {provider} / {model}。";
945
- readonly noModels: "你目前还没有可用模型,请先连接一个提供方(/connect)。";
946
- readonly connectFirst: "首次发送前请先连接提供方(/connect)。";
947
- readonly apiKeyRequired: "需要 API Key。";
948
- readonly baseUrlRequired: "需要 Base URL。";
949
- readonly baseUrlInvalid: "Base URL 必须以 http:// 或 https:// 开头。";
950
- readonly connected: "已连接 {provider}。";
951
- readonly connectedSelectModel: "已连接 {provider},请选择模型。";
952
- readonly connectedCheckFailed: "已连接 {provider},但自检失败:{reason}";
953
- readonly connectionTestPassed: "连接测试通过:{provider}。";
954
- readonly connectionTestFailed: "连接测试失败:{provider} - {reason}";
955
- readonly connectionActionUpdateKey: "操作建议:重新打开连接,更新 API Key 后再次测试。";
956
- readonly connectionActionFixBaseUrl: "操作建议:检查 Base URL 路径(通常以 /v1 结尾)后再次测试。";
957
- readonly connectionActionSwitchKey: "操作建议:稍后重试,或切换其他 Key/提供方。";
958
- readonly connectionActionRetryTest: "操作建议:检查网络/代理后再次执行测试连接。";
959
- readonly noModelsFetching: "暂无模型,正在拉取模型列表…";
960
- readonly firstUseGuide: "快速上手:1) /connect 2) /models 3) 发送「hello」";
961
- readonly firstUseSendHello: "下一步:发送第一条消息(例如:「hello」)。";
962
- readonly connectionCheckUnauthorized: "401 未授权:请检查 API Key 与提供方是否匹配。";
963
- readonly connectionCheckForbidden: "403 禁止访问:当前 Key 可能无此提供方/模型权限。";
964
- readonly connectionCheckNotFound: "404 未找到:请检查 Base URL 路径(OpenAI 兼容通常以 /v1 结尾)。";
965
- readonly connectionCheckRateLimited: "429 限流:请稍后重试,或切换其他 Key/提供方。";
966
- readonly connectionCheckTimeout: "连接超时:请检查网络/代理后重试。";
967
- readonly connectionCheckNetwork: "网络连接失败:请检查 DNS/代理/Base URL。";
968
- readonly connectionCheckFailed: "连接自检失败:{error}";
969
- readonly apiKeyCleared: "已清除 {provider} 的 API Key。";
970
- readonly customAdded: "已添加自定义提供方:{provider}。";
971
- readonly customRenamed: "已重命名自定义提供方:{provider}。";
972
- readonly customModelsUpdated: "已更新自定义提供方模型:{provider}。";
973
- readonly customDeleted: "已删除自定义提供方:{provider}。";
974
- readonly modelsRequired: "至少需要一个模型。";
975
- readonly modelsEmpty: "未获取到模型。";
976
- readonly modelsFetchFailed: "模型拉取失败:{error}";
977
- readonly modelsFetchChatCompletions: "当 Base URL 为 /chat/completions 或 /responses 时不支持拉取模型。";
978
- readonly manualModelsRequired: "此端点不支持自动发现模型。请在模型配置中手动输入模型名称。";
979
- readonly nameRequired: "提供方名称不能为空。";
980
- readonly nameConflict: "提供方名称已存在。";
981
- };
982
- };
983
- readonly copyToast: {
984
- readonly copiedToClipboard: "已复制到剪贴板";
985
- };
986
- };
987
- export default _default;
988
- //# sourceMappingURL=zh-CN.d.ts.map