ikanban-web 0.2.9 → 0.2.11
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.
- package/dist/assets/{ghostty-web-CveYg7XI.js → ghostty-web-BOsxUEnx.js} +1 -1
- package/dist/assets/home-DmwjxlRp.js +1 -0
- package/dist/assets/{index-BlcL7wgr.js → index-CE2ZqGRp.js} +103 -103
- package/dist/assets/index-Z4u1EVXA.css +1 -0
- package/dist/assets/session-FqpMK7PV.js +24 -0
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/src/app.tsx +82 -57
- package/src/components/dialog-command-palette.tsx +70 -0
- package/src/components/dialog-fork.tsx +1 -1
- package/src/components/dialog-select-file.tsx +1 -1
- package/src/components/prompt-input/submit.ts +1 -1
- package/src/components/titlebar.tsx +12 -1
- package/src/context/notification.tsx +2 -2
- package/src/i18n/en.ts +173 -83
- package/src/i18n/zh.ts +98 -47
- package/src/pages/directory-layout.tsx +2 -2
- package/src/pages/home.tsx +374 -89
- package/src/pages/layout/sidebar-items.tsx +3 -3
- package/src/pages/layout/sidebar-workspace.tsx +1 -1
- package/src/pages/layout.tsx +175 -237
- package/src/pages/session/message-timeline.tsx +6 -5
- package/src/pages/session/use-session-commands.tsx +1 -1
- package/src/pages/session.tsx +2 -1
- package/dist/assets/home-OHGVA1hY.js +0 -1
- package/dist/assets/index-B0TEjAod.css +0 -1
- package/dist/assets/session-CdIG8nTN.js +0 -24
package/src/i18n/zh.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { dict as en } from "./en"
|
|
1
|
+
import { dict as en } from "./en";
|
|
2
2
|
|
|
3
|
-
type Keys = keyof typeof en
|
|
3
|
+
type Keys = keyof typeof en;
|
|
4
4
|
|
|
5
5
|
export const dict = {
|
|
6
6
|
"command.category.suggested": "建议",
|
|
@@ -162,24 +162,29 @@ export const dict = {
|
|
|
162
162
|
"provider.connect.apiKey.label": "{{provider}} API 密钥",
|
|
163
163
|
"provider.connect.apiKey.placeholder": "API 密钥",
|
|
164
164
|
"provider.connect.apiKey.required": "API 密钥为必填项",
|
|
165
|
-
"provider.connect.opencodeZen.line1":
|
|
166
|
-
|
|
165
|
+
"provider.connect.opencodeZen.line1":
|
|
166
|
+
"OpenCode Zen 为你提供一组精选的可靠优化模型,用于代码智能体。",
|
|
167
|
+
"provider.connect.opencodeZen.line2":
|
|
168
|
+
"只需一个 API 密钥,你就能使用 Claude、GPT、Gemini、GLM 等模型。",
|
|
167
169
|
"provider.connect.opencodeZen.visit.prefix": "访问 ",
|
|
168
170
|
"provider.connect.opencodeZen.visit.link": "opencode.ai/zen",
|
|
169
171
|
"provider.connect.opencodeZen.visit.suffix": " 获取你的 API 密钥。",
|
|
170
172
|
"provider.connect.oauth.code.visit.prefix": "访问 ",
|
|
171
173
|
"provider.connect.oauth.code.visit.link": "此链接",
|
|
172
|
-
"provider.connect.oauth.code.visit.suffix":
|
|
174
|
+
"provider.connect.oauth.code.visit.suffix":
|
|
175
|
+
" 获取授权码,以连接你的帐户并在 OpenCode 中使用 {{provider}} 模型。",
|
|
173
176
|
"provider.connect.oauth.code.label": "{{method}} 授权码",
|
|
174
177
|
"provider.connect.oauth.code.placeholder": "授权码",
|
|
175
178
|
"provider.connect.oauth.code.required": "授权码为必填项",
|
|
176
179
|
"provider.connect.oauth.code.invalid": "授权码无效",
|
|
177
180
|
"provider.connect.oauth.auto.visit.prefix": "访问 ",
|
|
178
181
|
"provider.connect.oauth.auto.visit.link": "此链接",
|
|
179
|
-
"provider.connect.oauth.auto.visit.suffix":
|
|
182
|
+
"provider.connect.oauth.auto.visit.suffix":
|
|
183
|
+
" 并输入以下代码,以连接你的帐户并在 OpenCode 中使用 {{provider}} 模型。",
|
|
180
184
|
"provider.connect.oauth.auto.confirmationCode": "确认码",
|
|
181
185
|
"provider.connect.toast.connected.title": "{{provider}} 已连接",
|
|
182
|
-
"provider.connect.toast.connected.description":
|
|
186
|
+
"provider.connect.toast.connected.description":
|
|
187
|
+
"现在可以使用 {{provider}} 模型了。",
|
|
183
188
|
|
|
184
189
|
"provider.custom.title": "自定义提供商",
|
|
185
190
|
"provider.custom.description.prefix": "配置与 OpenAI 兼容的提供商。请查看",
|
|
@@ -187,14 +192,16 @@ export const dict = {
|
|
|
187
192
|
"provider.custom.description.suffix": "。",
|
|
188
193
|
"provider.custom.field.providerID.label": "提供商 ID",
|
|
189
194
|
"provider.custom.field.providerID.placeholder": "myprovider",
|
|
190
|
-
"provider.custom.field.providerID.description":
|
|
195
|
+
"provider.custom.field.providerID.description":
|
|
196
|
+
"使用小写字母、数字、连字符或下划线",
|
|
191
197
|
"provider.custom.field.name.label": "显示名称",
|
|
192
198
|
"provider.custom.field.name.placeholder": "我的 AI 提供商",
|
|
193
199
|
"provider.custom.field.baseURL.label": "基础 URL",
|
|
194
200
|
"provider.custom.field.baseURL.placeholder": "https://api.myprovider.com/v1",
|
|
195
201
|
"provider.custom.field.apiKey.label": "API 密钥",
|
|
196
202
|
"provider.custom.field.apiKey.placeholder": "API 密钥",
|
|
197
|
-
"provider.custom.field.apiKey.description":
|
|
203
|
+
"provider.custom.field.apiKey.description":
|
|
204
|
+
"可选。如果你通过请求头管理认证,可留空。",
|
|
198
205
|
"provider.custom.models.label": "模型",
|
|
199
206
|
"provider.custom.models.id.label": "ID",
|
|
200
207
|
"provider.custom.models.id.placeholder": "model-id",
|
|
@@ -210,7 +217,8 @@ export const dict = {
|
|
|
210
217
|
"provider.custom.headers.remove": "移除请求头",
|
|
211
218
|
"provider.custom.headers.add": "添加请求头",
|
|
212
219
|
"provider.custom.error.providerID.required": "提供商 ID 为必填项",
|
|
213
|
-
"provider.custom.error.providerID.format":
|
|
220
|
+
"provider.custom.error.providerID.format":
|
|
221
|
+
"请使用小写字母、数字、连字符或下划线",
|
|
214
222
|
"provider.custom.error.providerID.exists": "该提供商 ID 已存在",
|
|
215
223
|
"provider.custom.error.name.required": "显示名称为必填项",
|
|
216
224
|
"provider.custom.error.baseURL.required": "基础 URL 为必填项",
|
|
@@ -219,7 +227,8 @@ export const dict = {
|
|
|
219
227
|
"provider.custom.error.duplicate": "重复",
|
|
220
228
|
|
|
221
229
|
"provider.disconnect.toast.disconnected.title": "{{provider}} 已断开连接",
|
|
222
|
-
"provider.disconnect.toast.disconnected.description":
|
|
230
|
+
"provider.disconnect.toast.disconnected.description":
|
|
231
|
+
"{{provider}} 模型已不再可用。",
|
|
223
232
|
|
|
224
233
|
"model.tag.free": "免费",
|
|
225
234
|
"model.tag.latest": "最新",
|
|
@@ -303,7 +312,8 @@ export const dict = {
|
|
|
303
312
|
"prompt.toast.pasteUnsupported.title": "不支持的粘贴",
|
|
304
313
|
"prompt.toast.pasteUnsupported.description": "这里只能粘贴图片或 PDF 文件。",
|
|
305
314
|
"prompt.toast.modelAgentRequired.title": "请选择智能体和模型",
|
|
306
|
-
"prompt.toast.modelAgentRequired.description":
|
|
315
|
+
"prompt.toast.modelAgentRequired.description":
|
|
316
|
+
"发送提示前请先选择智能体和模型。",
|
|
307
317
|
"prompt.toast.worktreeCreateFailed.title": "创建工作树失败",
|
|
308
318
|
"prompt.toast.sessionCreateFailed.title": "创建会话失败",
|
|
309
319
|
"prompt.toast.shellSendFailed.title": "发送 shell 命令失败",
|
|
@@ -347,7 +357,8 @@ export const dict = {
|
|
|
347
357
|
"dialog.server.add.password": "密码(可选)",
|
|
348
358
|
"dialog.server.edit.title": "编辑服务器",
|
|
349
359
|
"dialog.server.default.title": "默认服务器",
|
|
350
|
-
"dialog.server.default.description":
|
|
360
|
+
"dialog.server.default.description":
|
|
361
|
+
"应用启动时连接此服务器,而不是启动本地服务器。需要重启。",
|
|
351
362
|
"dialog.server.default.none": "未选择服务器",
|
|
352
363
|
"dialog.server.default.set": "将当前服务器设为默认",
|
|
353
364
|
"dialog.server.default.clear": "清除",
|
|
@@ -368,7 +379,8 @@ export const dict = {
|
|
|
368
379
|
"dialog.project.edit.color": "颜色",
|
|
369
380
|
"dialog.project.edit.color.select": "选择{{color}}颜色",
|
|
370
381
|
"dialog.project.edit.worktree.startup": "工作区启动脚本",
|
|
371
|
-
"dialog.project.edit.worktree.startup.description":
|
|
382
|
+
"dialog.project.edit.worktree.startup.description":
|
|
383
|
+
"在创建新的工作区 (worktree) 后运行。",
|
|
372
384
|
"dialog.project.edit.worktree.startup.placeholder": "例如 bun install",
|
|
373
385
|
|
|
374
386
|
"context.breakdown.title": "上下文拆分",
|
|
@@ -463,8 +475,10 @@ export const dict = {
|
|
|
463
475
|
"error.page.report.prefix": "请将此错误报告给 OpenCode 团队",
|
|
464
476
|
"error.page.report.discord": "在 Discord 上",
|
|
465
477
|
"error.page.version": "版本:{{version}}",
|
|
466
|
-
"error.dev.rootNotFound":
|
|
467
|
-
|
|
478
|
+
"error.dev.rootNotFound":
|
|
479
|
+
"未找到根元素。你是不是忘了把它添加到 index.html?或者 id 属性拼写错了?",
|
|
480
|
+
"error.globalSync.connectFailed":
|
|
481
|
+
"无法连接到服务器。是否有服务器正在 `{{url}}` 运行?",
|
|
468
482
|
|
|
469
483
|
"directory.error.invalidUrl": "URL 中的目录无效。",
|
|
470
484
|
|
|
@@ -476,28 +490,43 @@ export const dict = {
|
|
|
476
490
|
"error.chain.responseBody": "响应内容:\n{{body}}",
|
|
477
491
|
"error.chain.didYouMean": "你是不是想输入:{{suggestions}}",
|
|
478
492
|
"error.chain.modelNotFound": "未找到模型:{{provider}}/{{model}}",
|
|
479
|
-
"error.chain.checkConfig":
|
|
480
|
-
|
|
481
|
-
"error.chain.
|
|
482
|
-
|
|
493
|
+
"error.chain.checkConfig":
|
|
494
|
+
"请检查你的配置 (opencode.json) 中的 provider/model 名称",
|
|
495
|
+
"error.chain.mcpFailed":
|
|
496
|
+
'MCP 服务器 "{{name}}" 启动失败。注意: OpenCode 暂不支持 MCP 认证。',
|
|
497
|
+
"error.chain.providerAuthFailed":
|
|
498
|
+
"提供商认证失败({{provider}}):{{message}}",
|
|
499
|
+
"error.chain.providerInitFailed":
|
|
500
|
+
'无法初始化提供商 "{{provider}}"。请检查凭据和配置。',
|
|
483
501
|
"error.chain.configJsonInvalid": "配置文件 {{path}} 不是有效的 JSON(C)",
|
|
484
|
-
"error.chain.configJsonInvalidWithMessage":
|
|
502
|
+
"error.chain.configJsonInvalidWithMessage":
|
|
503
|
+
"配置文件 {{path}} 不是有效的 JSON(C):{{message}}",
|
|
485
504
|
"error.chain.configDirectoryTypo":
|
|
486
505
|
'{{path}} 中的目录 "{{dir}}" 无效。请将目录重命名为 "{{suggestion}}" 或移除它。这是一个常见拼写错误。',
|
|
487
|
-
"error.chain.configFrontmatterError":
|
|
506
|
+
"error.chain.configFrontmatterError":
|
|
507
|
+
"无法解析 {{path}} 中的 frontmatter:\n{{message}}",
|
|
488
508
|
"error.chain.configInvalid": "配置文件 {{path}} 无效",
|
|
489
509
|
"error.chain.configInvalidWithMessage": "配置文件 {{path}} 无效:{{message}}",
|
|
490
510
|
|
|
491
511
|
"notification.permission.title": "需要权限",
|
|
492
|
-
"notification.permission.description":
|
|
512
|
+
"notification.permission.description":
|
|
513
|
+
"{{sessionTitle}}({{projectName}})需要权限",
|
|
493
514
|
"notification.question.title": "问题",
|
|
494
|
-
"notification.question.description":
|
|
515
|
+
"notification.question.description":
|
|
516
|
+
"{{sessionTitle}}({{projectName}})有一个问题",
|
|
495
517
|
"notification.action.goToSession": "前往会话",
|
|
496
518
|
"notification.session.responseReady.title": "回复已就绪",
|
|
497
519
|
"notification.session.error.title": "会话错误",
|
|
498
520
|
"notification.session.error.fallbackDescription": "发生错误",
|
|
499
521
|
|
|
500
522
|
"home.recentProjects": "最近项目",
|
|
523
|
+
"home.sessionBoard": "会话看板",
|
|
524
|
+
"home.sessionBoard.description": "按 Progress 和 Idle 分组。",
|
|
525
|
+
"home.sessionBoard.progress": "Progress",
|
|
526
|
+
"home.sessionBoard.idle": "Idle",
|
|
527
|
+
"home.sessionBoard.emptyProgress": "当前没有正在运行的会话。",
|
|
528
|
+
"home.sessionBoard.emptyIdle": "还没有空闲会话。",
|
|
529
|
+
"home.sessionBoard.emptyOther": "当前没有需要额外关注的会话。",
|
|
501
530
|
"home.empty.title": "没有最近项目",
|
|
502
531
|
"home.empty.description": "通过打开本地项目开始使用",
|
|
503
532
|
|
|
@@ -512,7 +541,8 @@ export const dict = {
|
|
|
512
541
|
"session.review.empty": "此会话暂无更改",
|
|
513
542
|
"session.review.noVcs": "未检测到 Git 版本控制系统,因此无法检测会话更改",
|
|
514
543
|
"session.review.emptyProject": "当前没有项目更改",
|
|
515
|
-
"session.review.noVcsProject":
|
|
544
|
+
"session.review.noVcsProject":
|
|
545
|
+
"未检测到 Git 版本控制系统,因此无法检测项目更改",
|
|
516
546
|
"session.review.noChanges": "无更改",
|
|
517
547
|
"session.files.selectToOpen": "选择要打开的文件",
|
|
518
548
|
"session.files.all": "所有文件",
|
|
@@ -547,8 +577,10 @@ export const dict = {
|
|
|
547
577
|
"status.popover.action.manageServers": "管理服务器",
|
|
548
578
|
|
|
549
579
|
"session.share.popover.title": "发布到网页",
|
|
550
|
-
"session.share.popover.description.shared":
|
|
551
|
-
|
|
580
|
+
"session.share.popover.description.shared":
|
|
581
|
+
"此会话已在网页上公开。任何拥有链接的人都可以访问。",
|
|
582
|
+
"session.share.popover.description.unshared":
|
|
583
|
+
"在网页上公开分享此会话。任何拥有链接的人都可以访问。",
|
|
552
584
|
"session.share.action.share": "分享",
|
|
553
585
|
"session.share.action.publish": "发布",
|
|
554
586
|
"session.share.action.publishing": "正在发布...",
|
|
@@ -568,7 +600,8 @@ export const dict = {
|
|
|
568
600
|
"terminal.title.numbered": "终端 {{number}}",
|
|
569
601
|
"terminal.close": "关闭终端",
|
|
570
602
|
"terminal.connectionLost.title": "连接已丢失",
|
|
571
|
-
"terminal.connectionLost.description":
|
|
603
|
+
"terminal.connectionLost.description":
|
|
604
|
+
"终端连接已中断。这可能发生在服务器重启时。",
|
|
572
605
|
|
|
573
606
|
"common.closeTab": "关闭标签页",
|
|
574
607
|
"common.dismiss": "忽略",
|
|
@@ -592,7 +625,8 @@ export const dict = {
|
|
|
592
625
|
"sidebar.workspaces.disable": "禁用工作区",
|
|
593
626
|
"sidebar.gettingStarted.title": "入门",
|
|
594
627
|
"sidebar.gettingStarted.line1": "OpenCode 提供免费模型,你可以立即开始使用。",
|
|
595
|
-
"sidebar.gettingStarted.line2":
|
|
628
|
+
"sidebar.gettingStarted.line2":
|
|
629
|
+
"连接任意提供商即可使用更多模型,如 Claude、GPT、Gemini 等。",
|
|
596
630
|
"sidebar.project.recentSessions": "最近会话",
|
|
597
631
|
"sidebar.project.viewAllSessions": "查看全部会话",
|
|
598
632
|
"sidebar.project.clearNotifications": "清除通知",
|
|
@@ -607,7 +641,8 @@ export const dict = {
|
|
|
607
641
|
|
|
608
642
|
"settings.desktop.section.wsl": "WSL",
|
|
609
643
|
"settings.desktop.wsl.title": "WSL 集成",
|
|
610
|
-
"settings.desktop.wsl.description":
|
|
644
|
+
"settings.desktop.wsl.description":
|
|
645
|
+
"在 Windows 的 WSL 环境中运行 OpenCode 服务器。",
|
|
611
646
|
|
|
612
647
|
"settings.general.section.appearance": "外观",
|
|
613
648
|
"settings.general.section.notifications": "系统通知",
|
|
@@ -619,24 +654,31 @@ export const dict = {
|
|
|
619
654
|
"settings.general.row.language.title": "语言",
|
|
620
655
|
"settings.general.row.language.description": "更改 OpenCode 的显示语言",
|
|
621
656
|
"settings.general.row.appearance.title": "外观",
|
|
622
|
-
"settings.general.row.appearance.description":
|
|
657
|
+
"settings.general.row.appearance.description":
|
|
658
|
+
"自定义 OpenCode 在你的设备上的外观",
|
|
623
659
|
"settings.general.row.theme.title": "主题",
|
|
624
660
|
"settings.general.row.theme.description": "自定义 OpenCode 的主题。",
|
|
625
661
|
"settings.general.row.font.title": "字体",
|
|
626
662
|
"settings.general.row.font.description": "自定义代码块使用的等宽字体",
|
|
627
663
|
"settings.general.row.reasoningSummaries.title": "显示推理摘要",
|
|
628
|
-
"settings.general.row.reasoningSummaries.description":
|
|
664
|
+
"settings.general.row.reasoningSummaries.description":
|
|
665
|
+
"在时间线中显示模型推理摘要",
|
|
629
666
|
"settings.general.row.shellToolPartsExpanded.title": "展开 shell 工具部分",
|
|
630
|
-
"settings.general.row.shellToolPartsExpanded.description":
|
|
667
|
+
"settings.general.row.shellToolPartsExpanded.description":
|
|
668
|
+
"默认在时间线中展开 shell 工具部分",
|
|
631
669
|
"settings.general.row.editToolPartsExpanded.title": "展开编辑工具部分",
|
|
632
|
-
"settings.general.row.editToolPartsExpanded.description":
|
|
670
|
+
"settings.general.row.editToolPartsExpanded.description":
|
|
671
|
+
"默认在时间线中展开 edit、write 和 patch 工具部分",
|
|
633
672
|
"settings.general.row.wayland.title": "使用原生 Wayland",
|
|
634
|
-
"settings.general.row.wayland.description":
|
|
635
|
-
|
|
673
|
+
"settings.general.row.wayland.description":
|
|
674
|
+
"在 Wayland 上禁用 X11 回退。需要重启。",
|
|
675
|
+
"settings.general.row.wayland.tooltip":
|
|
676
|
+
"在混合刷新率显示器的 Linux 系统上,原生 Wayland 可能更稳定。",
|
|
636
677
|
"settings.general.row.releaseNotes.title": "发行说明",
|
|
637
678
|
"settings.general.row.releaseNotes.description": "更新后显示“新功能”弹窗",
|
|
638
679
|
"settings.general.row.releaseNotesCurrent.title": "当前版本变更",
|
|
639
|
-
"settings.general.row.releaseNotesCurrent.description":
|
|
680
|
+
"settings.general.row.releaseNotesCurrent.description":
|
|
681
|
+
"在 GitHub 打开当前版本的更新记录",
|
|
640
682
|
"settings.general.action.releaseNotesCurrent": "查看变更",
|
|
641
683
|
|
|
642
684
|
"settings.updates.row.startup.title": "启动时检查更新",
|
|
@@ -646,7 +688,8 @@ export const dict = {
|
|
|
646
688
|
"settings.updates.action.checkNow": "立即检查",
|
|
647
689
|
"settings.updates.action.checking": "正在检查...",
|
|
648
690
|
"settings.updates.toast.latest.title": "已是最新版本",
|
|
649
|
-
"settings.updates.toast.latest.description":
|
|
691
|
+
"settings.updates.toast.latest.description":
|
|
692
|
+
"你正在使用最新版本的 OpenCode。",
|
|
650
693
|
|
|
651
694
|
"font.option.ibmPlexMono": "IBM Plex Mono",
|
|
652
695
|
"font.option.cascadiaCode": "Cascadia Code",
|
|
@@ -710,13 +753,16 @@ export const dict = {
|
|
|
710
753
|
"sound.option.yup06": "是 06",
|
|
711
754
|
|
|
712
755
|
"settings.general.notifications.agent.title": "智能体",
|
|
713
|
-
"settings.general.notifications.agent.description":
|
|
756
|
+
"settings.general.notifications.agent.description":
|
|
757
|
+
"当智能体完成或需要注意时显示系统通知",
|
|
714
758
|
"settings.general.notifications.permissions.title": "权限",
|
|
715
|
-
"settings.general.notifications.permissions.description":
|
|
759
|
+
"settings.general.notifications.permissions.description":
|
|
760
|
+
"当需要权限时显示系统通知",
|
|
716
761
|
"settings.general.notifications.errors.title": "错误",
|
|
717
762
|
"settings.general.notifications.errors.description": "发生错误时显示系统通知",
|
|
718
763
|
"settings.general.sounds.agent.title": "智能体",
|
|
719
|
-
"settings.general.sounds.agent.description":
|
|
764
|
+
"settings.general.sounds.agent.description":
|
|
765
|
+
"当智能体完成或需要注意时播放声音",
|
|
720
766
|
"settings.general.sounds.permissions.title": "权限",
|
|
721
767
|
"settings.general.sounds.permissions.description": "当需要权限时播放声音",
|
|
722
768
|
"settings.general.sounds.errors.title": "错误",
|
|
@@ -727,7 +773,8 @@ export const dict = {
|
|
|
727
773
|
"settings.shortcuts.reset.toast.title": "快捷键已重置",
|
|
728
774
|
"settings.shortcuts.reset.toast.description": "键盘快捷键已重置为默认设置。",
|
|
729
775
|
"settings.shortcuts.conflict.title": "快捷键已被占用",
|
|
730
|
-
"settings.shortcuts.conflict.description":
|
|
776
|
+
"settings.shortcuts.conflict.description":
|
|
777
|
+
"{{keybind}} 已分配给 {{titles}}。",
|
|
731
778
|
"settings.shortcuts.unassigned": "未设置",
|
|
732
779
|
"settings.shortcuts.pressKeys": "按下按键",
|
|
733
780
|
"settings.shortcuts.search.placeholder": "搜索快捷键",
|
|
@@ -771,7 +818,8 @@ export const dict = {
|
|
|
771
818
|
"settings.permissions.tool.read.title": "读取",
|
|
772
819
|
"settings.permissions.tool.read.description": "读取文件(匹配文件路径)",
|
|
773
820
|
"settings.permissions.tool.edit.title": "编辑",
|
|
774
|
-
"settings.permissions.tool.edit.description":
|
|
821
|
+
"settings.permissions.tool.edit.description":
|
|
822
|
+
"修改文件,包括编辑、写入、补丁和多重编辑",
|
|
775
823
|
"settings.permissions.tool.glob.title": "Glob",
|
|
776
824
|
"settings.permissions.tool.glob.description": "使用 glob 模式匹配文件",
|
|
777
825
|
"settings.permissions.tool.grep.title": "Grep",
|
|
@@ -797,9 +845,11 @@ export const dict = {
|
|
|
797
845
|
"settings.permissions.tool.codesearch.title": "代码搜索",
|
|
798
846
|
"settings.permissions.tool.codesearch.description": "在网上搜索代码",
|
|
799
847
|
"settings.permissions.tool.external_directory.title": "外部目录",
|
|
800
|
-
"settings.permissions.tool.external_directory.description":
|
|
848
|
+
"settings.permissions.tool.external_directory.description":
|
|
849
|
+
"访问项目目录之外的文件",
|
|
801
850
|
"settings.permissions.tool.doom_loop.title": "死循环",
|
|
802
|
-
"settings.permissions.tool.doom_loop.description":
|
|
851
|
+
"settings.permissions.tool.doom_loop.description":
|
|
852
|
+
"检测具有相同输入的重复工具调用",
|
|
803
853
|
|
|
804
854
|
"session.delete.failed.title": "删除会话失败",
|
|
805
855
|
"session.delete.title": "删除会话",
|
|
@@ -844,5 +894,6 @@ export const dict = {
|
|
|
844
894
|
"common.time.hoursAgo.short": "{{count}}小时前",
|
|
845
895
|
"common.time.daysAgo.short": "{{count}}天前",
|
|
846
896
|
"settings.providers.connected.environmentDescription": "已通过环境变量连接",
|
|
847
|
-
"settings.providers.custom.description":
|
|
848
|
-
|
|
897
|
+
"settings.providers.custom.description":
|
|
898
|
+
"通过基础 URL 添加与 OpenAI 兼容的提供商。",
|
|
899
|
+
} satisfies Partial<Record<Keys, string>>;
|
|
@@ -19,8 +19,8 @@ function DirectoryDataProvider(props: ParentProps<{ directory: string }>) {
|
|
|
19
19
|
<DataProvider
|
|
20
20
|
data={sync.data}
|
|
21
21
|
directory={props.directory}
|
|
22
|
-
onNavigateToSession={(sessionID: string) => navigate(`/${params.dir}
|
|
23
|
-
onSessionHref={(sessionID: string) => `/${params.dir}
|
|
22
|
+
onNavigateToSession={(sessionID: string) => navigate(`/${params.dir}/${sessionID}`)}
|
|
23
|
+
onSessionHref={(sessionID: string) => `/${params.dir}/${sessionID}`}
|
|
24
24
|
>
|
|
25
25
|
<LocalProvider>{props.children}</LocalProvider>
|
|
26
26
|
</DataProvider>
|