@fish-under-sea/dsh-client-ui-task-board-fish 0.0.0-stage → 0.5.0

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 (165) hide show
  1. package/LICENSE +202 -0
  2. package/README.i18n.yaml +6 -0
  3. package/README.md +202 -2
  4. package/README.zh.md +203 -0
  5. package/cordis.patch.yml +12 -0
  6. package/icon.svg +3 -0
  7. package/lib/client.js +12941 -0
  8. package/lib/client.js.map +1 -0
  9. package/lib/index.js +10471 -0
  10. package/lib/types/client/PluginSettingsCard.d.ts +144 -0
  11. package/lib/types/client/TaskBoardSettingsCard.d.ts +92 -0
  12. package/lib/types/client/apply-guard.d.ts +25 -0
  13. package/lib/types/client/board/ClampedMarkdown.d.ts +3 -0
  14. package/lib/types/client/board/ConfirmDialog.d.ts +15 -0
  15. package/lib/types/client/board/EditTaskModal.d.ts +17 -0
  16. package/lib/types/client/board/LinkSubtaskModal.d.ts +14 -0
  17. package/lib/types/client/board/NewTaskModal.d.ts +26 -0
  18. package/lib/types/client/board/TagManagerModal.d.ts +26 -0
  19. package/lib/types/client/board/TaskBoard.d.ts +26 -0
  20. package/lib/types/client/board/TaskCard.d.ts +36 -0
  21. package/lib/types/client/board/TaskDetail.d.ts +9 -0
  22. package/lib/types/client/board/TaskForm.d.ts +72 -0
  23. package/lib/types/client/board/VerificationReport.d.ts +23 -0
  24. package/lib/types/client/board/card-view.d.ts +113 -0
  25. package/lib/types/client/board/icons.d.ts +32 -0
  26. package/lib/types/client/board/overlay.d.ts +69 -0
  27. package/lib/types/client/board/parse-model-pref.d.ts +4 -0
  28. package/lib/types/client/board/preset-label.d.ts +22 -0
  29. package/lib/types/client/board/status-key.d.ts +19 -0
  30. package/lib/types/client/board/task-markdown.d.ts +19 -0
  31. package/lib/types/client/host-api.d.ts +63 -0
  32. package/lib/types/client/index.d.ts +128 -0
  33. package/lib/types/client/locales.d.ts +443 -0
  34. package/lib/types/client/main-session.d.ts +32 -0
  35. package/lib/types/client/native-panel.d.ts +48 -0
  36. package/lib/types/client/plugin-card-seat.d.ts +108 -0
  37. package/lib/types/client/schedule-presets.d.ts +10 -0
  38. package/lib/types/client/schedule-zone.d.ts +97 -0
  39. package/lib/types/client/seats.d.ts +18 -0
  40. package/lib/types/client/service.d.ts +32 -0
  41. package/lib/types/client/settings-entry-form.d.ts +49 -0
  42. package/lib/types/client/settings-form.d.ts +213 -0
  43. package/lib/types/core/controller.d.ts +373 -0
  44. package/lib/types/core/degraded-reason.d.ts +46 -0
  45. package/lib/types/core/extension.d.ts +283 -0
  46. package/lib/types/core/freeze-snapshot.d.ts +71 -0
  47. package/lib/types/core/handover.d.ts +70 -0
  48. package/lib/types/core/issue-form.d.ts +16 -0
  49. package/lib/types/core/package-name.d.ts +9 -0
  50. package/lib/types/core/poll-cadence.d.ts +31 -0
  51. package/lib/types/core/schedule.d.ts +124 -0
  52. package/lib/types/core/session-reuse.d.ts +24 -0
  53. package/lib/types/core/store.d.ts +64 -0
  54. package/lib/types/core/subtask.d.ts +141 -0
  55. package/lib/types/core/tasks.d.ts +601 -0
  56. package/lib/types/core/use-cases/task-archive.d.ts +20 -0
  57. package/lib/types/core/use-cases/task-create.d.ts +27 -0
  58. package/lib/types/core/use-cases/task-delete.d.ts +27 -0
  59. package/lib/types/core/use-cases/task-parent.d.ts +21 -0
  60. package/lib/types/core/use-cases/task-schedule.d.ts +96 -0
  61. package/lib/types/core/use-cases/task-tag.d.ts +48 -0
  62. package/lib/types/core/use-cases/task-update.d.ts +56 -0
  63. package/lib/types/core/verification-budget.d.ts +52 -0
  64. package/lib/types/core/verification.d.ts +753 -0
  65. package/lib/types/core/workspace-target.d.ts +41 -0
  66. package/lib/types/dsh-home.d.ts +16 -0
  67. package/lib/types/host/agent-tools.d.ts +27 -0
  68. package/lib/types/host/extension-registry.d.ts +111 -0
  69. package/lib/types/host/llm-dispatch.d.ts +63 -0
  70. package/lib/types/host/verification-gate.d.ts +95 -0
  71. package/lib/types/host/verification-runner.d.ts +139 -0
  72. package/lib/types/host/workspace-evidence.d.ts +53 -0
  73. package/lib/types/host-ai.d.ts +51 -0
  74. package/lib/types/host-ledger.d.ts +385 -0
  75. package/lib/types/host-routes.d.ts +36 -0
  76. package/lib/types/host-runner.d.ts +252 -0
  77. package/lib/types/host-service.d.ts +379 -0
  78. package/lib/types/http.d.ts +59 -0
  79. package/lib/types/index.d.ts +322 -0
  80. package/lib/types/loopback.d.ts +24 -0
  81. package/lib/types/mount-once.d.ts +55 -0
  82. package/lib/types/power-inhibitor.d.ts +73 -0
  83. package/lib/types/protocol.d.ts +212 -0
  84. package/lib/types/tool-surface.d.ts +71 -0
  85. package/package.json +107 -4
  86. package/src/client/PluginSettingsCard.tsx +564 -0
  87. package/src/client/TaskBoardSettingsCard.tsx +539 -0
  88. package/src/client/apply-guard.ts +35 -0
  89. package/src/client/board/ClampedMarkdown.tsx +69 -0
  90. package/src/client/board/ConfirmDialog.tsx +44 -0
  91. package/src/client/board/EditTaskModal.tsx +110 -0
  92. package/src/client/board/LinkSubtaskModal.tsx +97 -0
  93. package/src/client/board/NewTaskModal.tsx +718 -0
  94. package/src/client/board/TagManagerModal.tsx +235 -0
  95. package/src/client/board/TaskBoard.tsx +558 -0
  96. package/src/client/board/TaskCard.tsx +315 -0
  97. package/src/client/board/TaskDetail.tsx +985 -0
  98. package/src/client/board/TaskForm.tsx +264 -0
  99. package/src/client/board/VerificationReport.tsx +322 -0
  100. package/src/client/board/card-view.ts +220 -0
  101. package/src/client/board/icons.tsx +89 -0
  102. package/src/client/board/overlay.tsx +189 -0
  103. package/src/client/board/parse-model-pref.ts +35 -0
  104. package/src/client/board/preset-label.ts +44 -0
  105. package/src/client/board/status-key.ts +41 -0
  106. package/src/client/board/task-markdown.module.css +137 -0
  107. package/src/client/board/task-markdown.tsx +106 -0
  108. package/src/client/board-settings.module.css +66 -0
  109. package/src/client/board.module.css +1837 -0
  110. package/src/client/css-modules.d.ts +5 -0
  111. package/src/client/host-api.ts +336 -0
  112. package/src/client/index.ts +501 -0
  113. package/src/client/locales.ts +905 -0
  114. package/src/client/main-session.ts +43 -0
  115. package/src/client/native-panel.tsx +140 -0
  116. package/src/client/plugin-card-seat.ts +199 -0
  117. package/src/client/schedule-presets.ts +13 -0
  118. package/src/client/schedule-zone.ts +233 -0
  119. package/src/client/seats.tsx +58 -0
  120. package/src/client/service.ts +94 -0
  121. package/src/client/settings-card.module.css +444 -0
  122. package/src/client/settings-entry-form.ts +142 -0
  123. package/src/client/settings-form.ts +468 -0
  124. package/src/core/controller.ts +871 -0
  125. package/src/core/degraded-reason.ts +81 -0
  126. package/src/core/extension.ts +376 -0
  127. package/src/core/freeze-snapshot.ts +213 -0
  128. package/src/core/handover.ts +132 -0
  129. package/src/core/issue-form.ts +19 -0
  130. package/src/core/package-name.ts +9 -0
  131. package/src/core/poll-cadence.ts +41 -0
  132. package/src/core/schedule.ts +363 -0
  133. package/src/core/session-reuse.ts +40 -0
  134. package/src/core/store.ts +371 -0
  135. package/src/core/subtask.ts +341 -0
  136. package/src/core/tasks.ts +843 -0
  137. package/src/core/use-cases/task-archive.ts +91 -0
  138. package/src/core/use-cases/task-create.ts +110 -0
  139. package/src/core/use-cases/task-delete.ts +43 -0
  140. package/src/core/use-cases/task-parent.ts +65 -0
  141. package/src/core/use-cases/task-schedule.ts +251 -0
  142. package/src/core/use-cases/task-tag.ts +110 -0
  143. package/src/core/use-cases/task-update.ts +126 -0
  144. package/src/core/verification-budget.ts +115 -0
  145. package/src/core/verification.ts +1594 -0
  146. package/src/core/workspace-target.ts +59 -0
  147. package/src/dsh-home.ts +42 -0
  148. package/src/host/agent-tools.ts +762 -0
  149. package/src/host/extension-registry.ts +509 -0
  150. package/src/host/llm-dispatch.ts +87 -0
  151. package/src/host/verification-gate.ts +487 -0
  152. package/src/host/verification-runner.ts +702 -0
  153. package/src/host/workspace-evidence.ts +176 -0
  154. package/src/host-ai.ts +158 -0
  155. package/src/host-ledger.ts +1826 -0
  156. package/src/host-routes.ts +306 -0
  157. package/src/host-runner.ts +755 -0
  158. package/src/host-service.ts +1112 -0
  159. package/src/http.ts +127 -0
  160. package/src/index.ts +722 -0
  161. package/src/loopback.ts +63 -0
  162. package/src/mount-once.ts +142 -0
  163. package/src/power-inhibitor.ts +321 -0
  164. package/src/protocol.ts +591 -0
  165. package/src/tool-surface.ts +95 -0
@@ -0,0 +1,905 @@
1
+ /**
2
+ * Task-board copy: zh-first dictionaries with an English fallback, selected
3
+ * by the document language. Kept dependency-free (no dsh locale service) so
4
+ * the DOM-injected entry row and the standalone board tree share one tiny
5
+ * lookup.
6
+ */
7
+
8
+ /** zh dictionary (key-set source of truth). */
9
+ export const zh = {
10
+ 'entry.label': '任务看板',
11
+ 'board.title': '任务看板',
12
+ 'board.close': '返回会话',
13
+ 'board.new': '新建任务',
14
+ 'board.search': '筛选任务…',
15
+ 'board.empty': '这个状态还没有任务',
16
+ 'board.filterAll': '全部',
17
+ 'board.archive': '归档',
18
+ 'board.archiveView': '归档 ({count})',
19
+ 'board.backToBoard': '返回看板',
20
+ 'archive.empty': '没有已归档的任务',
21
+ 'board.status': '状态',
22
+ 'board.status.backlog': '待规划',
23
+ 'board.status.todo': '待办',
24
+ 'board.status.running': '进行中',
25
+ 'board.status.done': '已完成',
26
+ 'board.status.failed': '已失败',
27
+ 'board.runs': '次执行',
28
+ 'board.pending': '正在提交',
29
+ 'board.created': '创建于',
30
+ 'board.hostError': 'Host 操作失败:{error}',
31
+ 'board.hostError.notMounted': '任务看板的后台接口没有挂载:宿主没有加载这个插件(可能未安装、未启用,或该行启动失败)。重启 DSH 服务后再试',
32
+ 'board.hostError.ledgerLocked': '任务看板的账本已被另一个 DSH 进程占用(占用者 pid {pid}),本实例没有注册后台接口:关闭那个 DSH 实例,或等它退出后再点重试——反复重启本实例无效(宿主原因:{detail})',
33
+ 'board.hostError.degraded': '任务看板这一行在启动时降级,后台接口没有注册(宿主原因:{detail})',
34
+ 'board.hostError.unauthorized': '登录状态已失效,请刷新页面后重试',
35
+ 'board.hostError.forbidden': '当前环境未通过同源校验:桌面外壳或反向代理可能未传递浏览器标记,也没有携带宿主认证凭据',
36
+ 'board.hostError.locked': '任务看板的后台数据被占用:{detail}',
37
+ 'board.hostError.timeout': '后台 {seconds} 秒内没有响应,请稍后重试',
38
+ 'board.hostError.unreachable': '连接不上本机 DSH 服务,请确认它仍在运行',
39
+ 'board.hostError.unexpected': '后台返回了无法识别的响应(HTTP {status})',
40
+ 'board.project': '项目',
41
+ 'board.projectAll': '全部项目',
42
+ 'board.projectNew': '新建项目…',
43
+ 'board.projectNewPath': '项目目录(宿主上的绝对路径)',
44
+ 'board.projectNewPathPlaceholder': '例如 C:\\work\\my-project 或 /home/me/project',
45
+ 'board.projectCreate': '创建项目',
46
+ 'board.projectCreateFailed': '创建项目失败:{error}',
47
+ 'new.aiParse': 'AI 解析',
48
+ 'new.aiParseHint': '把从别处复制的一段话粘进来,让模型整理成标题、描述和执行 Prompt;解析结果只填进下面的表单,你可以先改再创建。',
49
+ 'new.aiParsePlaceholder': '粘贴要变成任务的内容…',
50
+ 'new.aiParseModel': '解析用模型',
51
+ 'new.aiParseRun': '解析并填入',
52
+ 'new.aiParseCancel': '取消解析',
53
+ 'new.aiParseEmpty': '先粘贴一段内容再解析',
54
+ 'new.aiParseNoModel': '这个部署还没有可用的模型,请先在 DSH 里配置模型提供商,或换一个模型再试',
55
+ 'new.aiParseUnavailable': '后台没有解析接口可用,重启 DSH 服务后再试',
56
+ 'new.aiParseTimeout': '模型 {seconds} 秒内没有返回结果,请重试或换一个更快的模型',
57
+ 'new.aiParseFailed': '解析失败:{error}',
58
+ 'board.retryHost': '重试连接 Host',
59
+ 'board.hostMeta': 'Host 时区 {timeZone} · revision {revision}',
60
+ // 新建/编辑对话框的区域分组:折叠后每个区域仍以一行摘要显示当前配置。
61
+ 'new.section.parse': 'AI 解析',
62
+ 'new.section.content': '任务内容',
63
+ 'new.section.labels': '标签',
64
+ 'new.section.execution': '执行设置',
65
+ 'new.section.run': '运行方式',
66
+ 'new.section.handover': '交接与续跑',
67
+ 'new.section.schedule': '定时运行',
68
+ 'new.summary.none': '未设置',
69
+ 'new.summary.labelCount': '{count} 个标签',
70
+ 'new.summary.filled': '已填写',
71
+ 'new.summary.scheduleOff': '未启用',
72
+ 'new.summary.multiRound': '多轮 /goal',
73
+ 'new.summary.singleRound': '单轮',
74
+ 'new.title': '标题',
75
+ 'new.titlePlaceholder': '一句话描述要做什么',
76
+ 'new.description': '描述',
77
+ 'new.descriptionPlaceholder': '补充背景、范围与验收(可选)',
78
+ 'new.prompt': '执行 Prompt',
79
+ 'new.promptPlaceholder': '发给 agent 的完整指令(留空则使用标题)',
80
+ 'new.submit': '创建',
81
+ 'new.createAndRun': '创建并执行',
82
+ 'new.cancel': '取消',
83
+ 'new.required': '标题不能为空',
84
+ 'new.freeze': '冻结快照(可选)',
85
+ 'new.freezePlaceholder': '粘贴会话输出的 <<<FREEZE … >>>FREEZE 冻结块,解析为目标/进度/下一步(可选)',
86
+ 'detail.freeze': '冻结快照',
87
+ 'detail.freeze.goal': '目标',
88
+ 'detail.freeze.progress': '进度',
89
+ 'detail.freeze.next': '下一步',
90
+ 'detail.freeze.frozenAt': '冻结于 {time}',
91
+ 'detail.freeze.frozenBy': '来源会话 {session}',
92
+ 'detail.freeze.redacted': '冻结文本命中敏感模式,已自动替换为 [REDACTED];接手前请人工复核。',
93
+ 'card.frozen': '冻结',
94
+ 'new.handover': '交接包引用(可选)',
95
+ 'new.handoverPlaceholder': '每行一个文档/脚本引用;填写后,上面选择的钉住三元组(工作区/模式/权限)会作为交接包附加到卡片',
96
+ 'detail.handover': '交接包',
97
+ 'detail.handover.bundledAt': '打包于 {time}',
98
+ 'detail.handover.references': '引用',
99
+ 'new.tags': '标签(可选)',
100
+ 'new.tagsHint': '标签用于卡片徽章与顶栏筛选;填了「执行提示」的行会在每次执行前注入 Prompt,留空则只作展示。',
101
+ 'new.tagName': '标签名',
102
+ 'new.tagNamePlaceholder': '例如:工作',
103
+ 'new.tagPrompt': '执行提示(可选)',
104
+ 'new.tagPromptPlaceholder': '例如:产物归档到 02-工作/',
105
+ 'new.tagAdd': '添加标签',
106
+ 'new.tagRemove': '移除标签 {name}',
107
+ 'board.tagFilter': '按标签筛选',
108
+ 'board.tagFilterClear': '清除标签筛选',
109
+ 'board.tagEmpty': '没有同时带这些标签的任务',
110
+ 'board.tagManage': '管理标签',
111
+ 'tags.title': '标签管理',
112
+ 'tags.hint': '标签是顶栏筛选与卡片徽章的来源。重命名会写到所有卡片上(与已有同名标签合并),删除会从全部任务(含已归档)上移除;任务本身不受影响。',
113
+ 'tags.empty': '当前没有任何标签在使用。',
114
+ 'tags.usage': '{count} 个任务',
115
+ 'tags.rename': '重命名',
116
+ 'tags.renameLabel': '重命名标签 {name}',
117
+ 'tags.delete': '删除',
118
+ 'tags.deleteTitle': '删除标签',
119
+ 'tags.deleteConfirm': '从 {count} 个任务上移除标签「{name}」?该标签的执行提示会一并移除,任务本身不受影响。',
120
+ 'tags.deleteOk': '删除',
121
+ 'tags.save': '保存',
122
+ 'tags.mergeHint': '将合并进已有标签「{name}」',
123
+ 'tags.renameFailed': '重命名未被接受。',
124
+ 'tags.deleteFailed': '删除未被接受。',
125
+ 'tags.done': '完成',
126
+ 'detail.permissionPending': '权限待确认:本卡有效权限({permission})高于会话默认,手动执行与定时调度都会被拒绝,需人工确认后才能运行。',
127
+ 'detail.permissionConfirm': '确认权限绑定',
128
+ 'detail.permissionConfirmed': '已确认权限绑定 · {time}',
129
+ 'detail.title': '任务详情',
130
+ 'detail.edit': '编辑',
131
+ 'detail.editTags': '编辑标签',
132
+ 'detail.duplicate': '复制为新任务',
133
+ 'detail.duplicateAndEdit': '修改并新建副本',
134
+ 'detail.close': '关闭',
135
+ 'edit.title': '编辑任务',
136
+ 'edit.save': '保存',
137
+ 'new.duplicateTitle': '新建任务(副本)',
138
+ 'new.archiveOriginal': '创建后归档原任务',
139
+ 'detail.prompt': '执行 Prompt',
140
+ 'detail.description': '描述',
141
+ 'detail.expand': '展开全文',
142
+ 'detail.collapse': '收起',
143
+ 'detail.execution': '执行记录',
144
+ 'detail.noExecution': '尚未执行',
145
+ 'detail.run': '执行',
146
+ 'detail.rerun': '重新执行',
147
+ 'detail.delete': '删除',
148
+ 'detail.archive': '归档',
149
+ 'detail.restore': '恢复',
150
+ 'detail.archivedAt': '已归档 · {time}',
151
+ 'detail.viewSession': '查看会话',
152
+ 'detail.noSession': '暂无会话',
153
+ 'detail.executionStarted': '已启动',
154
+ 'detail.execution.initiator': '发起会话 {session}',
155
+ 'detail.execution.external': 'Host 之外完成:{agent}',
156
+ 'detail.executionEnded': '已结束',
157
+ 'detail.result.succeeded': '成功',
158
+ 'detail.result.failed': '失败',
159
+ 'detail.result.cancelled': '已取消',
160
+ 'detail.result.running': '进行中',
161
+ 'delete.title': '删除任务',
162
+ 'delete.confirm': '确定删除「{name}」吗?删除后不可恢复。',
163
+ 'delete.ok': '删除',
164
+ 'delete.cancel': '取消',
165
+ 'status.move.backlog': '移到待规划',
166
+ 'status.move.todo': '移到待办',
167
+ 'status.move.running': '移到进行中',
168
+ 'status.move.done': '移到已完成',
169
+ 'status.move.failed': '移到已失败',
170
+ 'exec.error.noWorkspace': '没有可用工作区,无法执行任务',
171
+ 'exec.error.promptRejected': 'Prompt 被拒绝',
172
+ 'run.failed': '执行失败:{error}',
173
+ 'time.justNow': '刚刚',
174
+ 'detail.schedule': '定时运行',
175
+ 'detail.schedule.enable': '启用定时执行',
176
+ 'detail.schedule.cron': 'Cron 表达式',
177
+ 'detail.schedule.presets': '预设',
178
+ 'detail.schedule.preset.daily9': '每天 09:00',
179
+ 'detail.schedule.preset.hourly': '每小时',
180
+ 'detail.schedule.preset.tenMin': '每 10 分钟',
181
+ 'detail.schedule.preset.weeklyMon9': '每周一 09:00',
182
+ 'detail.schedule.nextRun': '下次运行',
183
+ 'detail.schedule.lastTriggered': '上次触发',
184
+ 'detail.schedule.invalid': 'Cron 表达式无效',
185
+ 'detail.schedule.notScheduled': '尚未排程',
186
+ 'detail.schedule.dueSoon': '即将运行',
187
+ 'detail.schedule.timeZone': '时区',
188
+ 'detail.schedule.timeZoneHost': 'Host 时区({timeZone})',
189
+ 'detail.schedule.timeZoneHostUnknown': 'Host 时区(未知)',
190
+ 'detail.schedule.timeZoneHint': 'Cron 的墙上时间按此时区解读;夏令时跳变会跳过不存在的时刻,重复的时刻只触发一次。',
191
+ 'detail.schedule.timeZoneSearch': '搜索时区…',
192
+ 'detail.schedule.timeZoneNone': '没有匹配的时区',
193
+ 'detail.schedule.nextRunOverdue': '已逾期 {duration}',
194
+ 'detail.schedule.duration.days': '{count} 天',
195
+ 'detail.schedule.duration.hours': '{count} 小时',
196
+ 'detail.schedule.duration.minutes': '{count} 分钟',
197
+ 'detail.schedule.duration.seconds': '{count} 秒',
198
+ // 调度方式:单次计划与循环规则是两类计划,不是同一 cron 的日期限定写法。
199
+ 'detail.schedule.mode': '调度方式',
200
+ 'detail.schedule.mode.cron': '循环',
201
+ 'detail.schedule.mode.once': '单次',
202
+ 'detail.schedule.at': '执行时间',
203
+ 'detail.schedule.atHint': '按所选时区解读的计划时刻;必须是未来时间。',
204
+ 'detail.schedule.atInvalid': '请选择未来的有效时间',
205
+ 'detail.schedule.plannedAt': '计划时间',
206
+ 'detail.schedule.zoneOnceHint': '所选时刻按此时区解读。',
207
+ 'detail.schedule.maxRuns': '次数上限',
208
+ 'detail.schedule.maxRunsUnlimited': '不限次数',
209
+ 'detail.schedule.maxRunsValue': '最多 {count} 次',
210
+ 'detail.schedule.maxRunsCustom': '自定义',
211
+ 'detail.schedule.maxRunsInvalid': '次数上限必须是正整数',
212
+ 'detail.schedule.runs': '已执行 {done}/{total} 次',
213
+ 'detail.schedule.runsUnlimited': '已执行 {done} 次',
214
+ 'detail.schedule.remaining': '剩余 {count} 次',
215
+ 'detail.schedule.cancel': '关闭调度',
216
+ 'detail.schedule.ended': '调度已结束:{reason}',
217
+ 'detail.schedule.skipped': '上次跳过:{reason}',
218
+ 'detail.schedule.stop.fired': '单次计划已执行',
219
+ 'detail.schedule.stop.limit': '已达次数上限',
220
+ 'detail.schedule.stop.no-target': '计划已无可执行时刻',
221
+ 'detail.schedule.stop.missed': '错过执行时刻,已跳过',
222
+ 'detail.schedule.stop.busy': '触发时任务正在运行,已跳过',
223
+ 'detail.schedule.stop.permission': '权限待人工确认,已跳过',
224
+ 'detail.schedule.stop.launch-failed': '启动失败未创建执行,次数已退回',
225
+ 'card.scheduled': '定时',
226
+ 'card.scheduledOnce': '单次',
227
+ 'new.workspace': '工作区',
228
+ 'new.agentPreset': 'Agent 预设',
229
+ 'new.permission': '权限',
230
+ 'new.model': '模型',
231
+ 'exec.workspace.recent': '最近使用(默认)',
232
+ 'exec.mode.inherit': '继承(部署默认)',
233
+ 'exec.mode.inheritWith': '继承(部署默认:{preset})',
234
+ 'exec.mode.builtinGroup': '内置预设',
235
+ 'exec.mode.customGroup': '自定义预设',
236
+ 'preset.builtin.standard': '标准',
237
+ 'preset.builtin.ptc': 'PTC(程序化工具调用)',
238
+ 'preset.builtin.minimal': '极简',
239
+ 'preset.builtin.cordis': 'Cordis',
240
+ 'exec.mode.defaultSuffix': '(默认)',
241
+ 'exec.mode.brokenSuffix': '(不可用)',
242
+ 'exec.mode.removed': '(已移除)',
243
+ 'exec.permission.default': '会话默认',
244
+ 'exec.permission.inheritParent': '继承父任务({permission})',
245
+ 'exec.permission.read-only': '只读',
246
+ 'exec.permission.workspace-write': '工作区可写',
247
+ 'exec.permission.danger-full-access': '完全访问',
248
+ 'exec.model.default': '宿主默认(agent-default-model)',
249
+ 'exec.model.unknown': '(未知模型/回退默认)',
250
+ 'exec.reuseSession': '在同一对话继续',
251
+ 'exec.teamRun': '用 Agent Team 执行(Leader/teammate)',
252
+ 'exec.teamRunHint': '开启后:执行本任务只启动一个 Leader 会话,每个子任务由它派生为 teammate 并在该会话内并行工作(子任务自身的权限钉住不适用)。关闭则每个成员各开独立会话。',
253
+ 'exec.teamRunUnavailable': '当前部署未提供 Agent Teams 服务,无法启用。',
254
+ 'exec.reuseSessionHint': '开启后,本任务的后续执行在上一次会话里继续(该会话空闲且仍存在时),不再每次新建对话;每次复用时都会重新应用上面钉住的权限与模型。',
255
+ 'exec.goalRun': '以 dsh 内置的 /goal 开始执行任务',
256
+ 'exec.goalRunHint': '默认关闭:勾选后执行时把任务目标作为持久目标交给 dsh 内置的 /goal,会话会自动续跑多轮,直到 agent 标记目标完成;看板在该目标真正结束后才结算本次执行。不勾选则只执行一轮普通对话。',
257
+ 'exec.skipVerification': '跳过本任务的验收',
258
+ 'exec.skipVerificationHint': '默认关闭:勾选后本任务以 goal 形式执行时不再拦截 update_goal 标记完成,也不要求通过验收;执行记录会标注「该卡片跳过验收」。仅对之后新开的执行生效,验收总开关关闭时本项无意义。',
259
+ 'detail.executionSettings': '执行设置',
260
+ 'exec.hint': '执行时生效:工作区决定执行会话落在哪个工作区;Agent 预设决定会话的组合(工具面与提示词段);权限经 /permission 命令应用到会话。留空则继承部署默认。',
261
+ // 插件设置卡片(settings.plugin.item 席位)。
262
+ 'settings.title': '任务看板',
263
+ 'settings.description': '任务编排、agent 播报与目标验收。',
264
+ 'settings.enabled': '启用任务看板',
265
+ 'settings.enabledCardHint': '总开关、播报、睡眠保护与子任务层级。',
266
+ 'settings.enabledHint': '关闭后隐藏侧边栏入口与看板视图,并注销 task_board_* agent 工具;开启时任何会话都可以通过这些工具读写看板、子任务与定时计划。',
267
+ 'settings.announceToAgent': '向 agent 播报任务看板',
268
+ 'settings.announceToAgentHint': '开启:每条 agent 系统提示都会包含本看板的说明;关闭:不播报,agent 仅在用户主动提及时了解看板。',
269
+ 'settings.preventIdleSleep': '阻止系统空闲睡眠',
270
+ 'settings.preventIdleSleepHint': '默认关闭。开启后,只要存在运行中的 DSH 会话、已启用的定时任务或会话状态尚未确认,Host 就阻止整机因空闲睡眠;屏幕仍可自动关闭。',
271
+ 'settings.powerStatus': '平台:{platform};保护状态:{phase};运行会话:{running};已启用计划:{schedules}',
272
+ 'settings.powerBoundary': '这可能增加电池消耗。合盖、手动睡眠、休眠、关机、低电量或企业策略不在保证范围内,也不会唤醒已经睡眠的机器。',
273
+ 'settings.powerUnknown': '未知',
274
+ 'settings.powerError': '最近一次电源保护错误:{error}',
275
+ 'settings.inherit': '继承',
276
+ 'settings.on': '开',
277
+ 'settings.off': '关',
278
+ 'settings.overridden': '已覆盖',
279
+ 'settings.reset': '恢复默认',
280
+ 'settings.notExposed': '当前 DSH 版本未向设置页暴露本插件的配置命名空间,表单不可用。可编辑 ~/.dsh/settings.yaml 直接配置,或将本命名空间加入 Host 设置白名单后重启。',
281
+ 'settings.readOnly': '当前部署的设置只读。',
282
+ 'settings.expand': '展开设置',
283
+ 'settings.collapse': '收起设置',
284
+ 'settings.save': '保存',
285
+ 'settings.saving': '保存中…',
286
+ 'settings.discard': '放弃',
287
+ 'settings.unsaved': '未保存',
288
+ 'settings.saveFailed': '部署未接受这些值,已保留供你修改。',
289
+ 'settings.invalidNumber': '请输入数字,留空则使用默认值。',
290
+ 'settings.sessionPollSeconds': '会话轮询间隔(秒)',
291
+ 'settings.sessionPollSecondsHint': '默认 5 秒。仅在看板有需要核对的事情——运行中的卡片或未结算的执行——时才读取会话名册;两者都没有时不再轮询,Host 不会持续扫描持久化会话目录。取值 1–300 秒:间隔越短结算越快、Host 负载越高。',
292
+ 'settings.maxSubtaskDepth': '子任务深度上限',
293
+ 'settings.maxSubtaskDepthHint': '默认 1:一个任务只允许一层子任务,子任务不能再创建或关联子任务。最大 3。执行父任务会并发执行它的整棵子任务树,层级越深,一次执行开启的会话越多。',
294
+ 'settings.maxSubtaskDepthOption': '{depth} 层',
295
+ 'settings.runBehaviorTitle': '运行行为',
296
+ 'settings.runBehaviorCardHint': '全局原生 /goal 执行开关(总开关,默认关闭)。',
297
+ 'settings.goalRunGlobal': '全局启用 DSH 原生 /goal 执行',
298
+ 'settings.goalRunGlobalHint': '默认关闭。关闭时所有任务都按普通单回合执行,不调用 dsh 内置的 /goal;只有这里开启、且任务级「以 /goal 开始执行」被勾选时,才执行原生 /goal。任务级勾选始终可操作、也不会被这里的开关改写,总开关只决定它是否生效。开关按执行启动时冻结,只影响之后新开的执行。',
299
+ 'settings.goalRunGlobalDisabledTaskOption': '全局「原生 /goal 执行」总开关已关闭:任务级选项仍可随时勾选或取消,但暂不生效,你保存的偏好也不会被改写;开启总开关后即按该偏好执行。本次执行按普通单回合进行,未执行 goal 验收。',
300
+ 'settings.goalVerificationTitle': '任务验收',
301
+ 'settings.goalVerification': '启用任务验收',
302
+ 'settings.goalVerificationCardHint': '验收开关、裁判模型与判据阈值。',
303
+ 'settings.goalVerificationHint': '默认打开:以 goal 形式执行的任务在 update_goal 标记完成前必须先通过一次验收(三项 coding 判据(本分区面向工程任务)、阈值 0.65、每项两轮且交换 A/B 位置,实际工作须胜过空工作基线)。首次不通过会把总分、逐项分数与可定位问题反馈给 agent 修复,同一执行最多两次验收;第二次仍不通过则本次执行判失败。仅作用于本插件以 goal 形式执行的任务,不影响普通聊天,也不影响显式 goalRun:false 的单回合任务。每次验收都会真实调用裁判模型并消耗额度。',
304
+ 'settings.goalVerificationModel': '验收模型',
305
+ 'settings.goalVerificationModelHint': '留空即继承宿主:使用宿主模型目录的默认路由,而不是任务卡钉住的执行模型。',
306
+ 'settings.goalVerificationModelInherit': '继承宿主({model})',
307
+ 'settings.goalVerificationModelInheritUnknown': '继承宿主(宿主未提供模型目录)',
308
+ 'settings.goalVerificationEffort': '推理强度',
309
+ 'settings.goalVerificationEffortHint': '留空即继承宿主默认档位。目标模型不支持所选档位时不会盲传:验收改用该模型自己的默认档位,并在下方标注回退。',
310
+ 'settings.goalVerificationEffortInherit': '继承宿主({effort})',
311
+ 'settings.goalVerificationEffortInheritUnknown': '继承宿主(模型默认档位)',
312
+ 'settings.goalVerificationResolved': '实际解析后的验收配置',
313
+ 'settings.goalVerificationResolvedModel': '裁判模型:{model}',
314
+ 'settings.goalVerificationResolvedEffort': '推理强度:{effort}',
315
+ 'settings.goalVerificationResolvedNoEffort': '推理强度:不显式传参(用模型自身默认)',
316
+ 'settings.goalVerificationResolvedSource': '来源:{source}',
317
+ 'settings.goalVerificationSourceInherit': '继承宿主',
318
+ 'settings.goalVerificationSourceExplicit': '显式配置',
319
+ 'settings.goalVerificationResolvedPreset': '判据:coding(Specification Adherence / Output Match / Error Signal Detection),阈值 {threshold}',
320
+ 'settings.goalVerificationRouteMissing': '宿主未提供模型目录,无法解析验收模型:开启后 goal 任务的完成声明会被拒绝并记录为验收异常。',
321
+ 'settings.goalVerificationEffortFallback': '所选推理强度 {requested} 不被目标模型支持,已回退为 {resolved}。',
322
+ 'settings.goalVerificationEffortFallbackNone': '所选推理强度 {requested} 不被目标模型支持,已回退为该模型默认档位(不显式传参)。',
323
+ 'settings.goalVerificationModelInvalid': '配置的验收模型不是 provider/model 形式,已回退宿主默认。',
324
+ 'running.executing': '执行中',
325
+ 'running.verifying': '验收中',
326
+ 'running.repairing': '验收未通过修复中',
327
+ 'running.verificationPassed': '验收通过',
328
+ 'running.verificationFailed': '验收未通过',
329
+ 'running.verificationInvalid': '验收无效,等待处理',
330
+ 'verify.title': '验收报告',
331
+ 'verify.status.passed': '通过',
332
+ 'verify.status.failed': '未通过',
333
+ 'verify.status.exception': '异常',
334
+ 'verify.status.verifying': '验收中',
335
+ 'verify.status.pending': '待验收',
336
+ 'verify.status.off': '本次执行未启用验收',
337
+ 'verify.status.invalid': '验收无效',
338
+ 'verify.status.invalidHeld': '验收无效,等待人工处理',
339
+ 'verify.attemptInvalid': '第 {index} 次验收无效',
340
+ 'verify.invalidReason.missing-finding': '未达标的判据没有对应的结构化问题反馈',
341
+ 'verify.invalidReason.unlocatable-quote': '问题反馈引用的位置不存在于本次裁判所见的证据中',
342
+ 'verify.invalidReason.baseline-finding': '问题反馈指向空工作基线,而不是本次执行的工作',
343
+ 'verify.invalidReason.vacuous-finding': '问题反馈为空或空泛评价,没有说明实际观测与差异',
344
+ 'verify.invalidReason.insufficient-evidence': '裁判看到的证据不足(例如轨迹被截断),无法支撑否决',
345
+ 'verify.invalidReason.unknown': '未产生可用的质量判定',
346
+ 'verify.invalidCounts': '有效质量判定 {quality}/{max} · 无效验收 {invalid}/{maxInvalid} · 验收异常 {exceptions}/{max}',
347
+ 'verify.invalidDetail': '无效原因:{reason}',
348
+ 'verify.criterionFindings': '结构化问题反馈(判据 · 引用位置 · 实际引用)',
349
+ 'verify.criterionFinding': '{criterion} · {location}:“{quote}”',
350
+ 'verify.criterionFindingFull': '{criterion} · {location}:“{quote}” 要求:{requirement} 观测:{observation} 差异:{gap}',
351
+ 'verify.location.task': '任务要求',
352
+ 'verify.location.trajectory': '执行轨迹',
353
+ 'verify.location.workspace': '宿主记录的变更',
354
+ 'verify.location.baseline': '空工作基线(不构成否决证据)',
355
+ 'verify.location.unknown': '未标明位置',
356
+ 'verify.detailRemoved': '本条验收的详细材料已在通过并成功结算后自动清理(不是裁判未举证)。',
357
+ 'verify.cleanup.cleaned': '本次执行的验收专用详细材料已在通过并成功结算后自动清理;以下为保留的轻量审计凭据。',
358
+ 'verify.cleanup.pending': '验收专用详细材料待清理(将通过并结算后启动)。',
359
+ 'verify.cleanup.failed': '验收详细材料清理失败(已重试 {attempts} 次):{error};通过记录仍然有效,宿主重启后会补清。',
360
+ 'verify.cleanup.audit': '保留凭据:第 {index} 次 · {stage} · 分数 {score} · 证据哈希 {hash}',
361
+ 'verify.cleanup.stage.quality': '质量判定',
362
+ 'verify.cleanup.stage.invalid': '无效验收',
363
+ 'verify.cleanup.stage.exception': '验收异常',
364
+ 'verify.cleanup.stage.budget': '时间预算耗尽',
365
+ 'verify.summary': '总分 {score}(阈值 {threshold})· 空工作基线 {baseline}',
366
+ 'verify.criteria': '逐项判据',
367
+ 'verify.criterion': '{name}:{score}(阈值 {threshold})',
368
+ 'verify.rounds': '每项 {rounds} 轮,交换 A/B 位置后取平均',
369
+ 'verify.judge': '裁判模型 {model}(推理强度 {effort})',
370
+ 'verify.judgeNoEffort': '裁判模型 {model}(推理强度:不显式传参)',
371
+ 'verify.judgeInherited': '裁判模型 {model}(继承宿主)',
372
+ 'verify.attempt': '第 {index} 次验收',
373
+ 'verify.attemptException': '第 {index} 次验收异常',
374
+ 'verify.counts': '质量验收 {quality}/{max} · 验收异常 {exceptions}/{max}',
375
+ 'verify.findings': '问题反馈',
376
+ 'verify.noFindings': '本次裁判没有报告可定位的问题',
377
+ 'verify.evidence': '证据范围:{chars} 字符 · {entries} 条轨迹 · 截断 {omitted} 字符',
378
+ 'verify.workspaceEvidence': '其中 {files} 个文件变更取自宿主自身观察',
379
+ 'verify.usage': '用量:请求 {calls} 次 · 输入 {input} · 输出 {output} · 推理 {reasoning} tokens',
380
+ 'verify.usageIncomplete': '(至少一次请求的用量未知,以上为下限)',
381
+ 'verify.finalFailure': '判定依据:{reason}',
382
+ 'verify.applicability.disabled': '本次执行启动时验收开关关闭,按原有回合判定结算。',
383
+ 'verify.applicability.goalUnavailable': '本次执行未成为 goal 执行(卡片未勾选「以 /goal 开始执行任务」,或 /goal 被拒绝/不可用),验收未强制执行。',
384
+ 'verify.applicability.skipped': '该任务卡勾选了「跳过验收」,本次执行未经验收判定。',
385
+ 'verify.applicability.teamMember': '团队执行成员:由 Lead 的团队汇总证据统一验收。',
386
+ 'verify.applicability.goalDisabled': '本次执行启动时全局「原生 /goal 执行」总开关关闭,按普通单回合执行:本次未执行 goal 验收,既不算已验收通过,也不因此判失败。',
387
+ 'verify.effortFallback': '推理强度回退:{requested} → {resolved}',
388
+ 'verify.thresholdValue': '{value}%',
389
+ // 子任务(父子关系、级联执行、关联/解除关联)。
390
+ 'detail.parent': '父任务',
391
+ 'detail.parent.open': '打开父任务',
392
+ 'detail.subtasks': '子任务',
393
+ 'detail.subtasks.empty': '还没有子任务',
394
+ 'detail.subtasks.add': '添加子任务',
395
+ 'detail.subtasks.link': '关联现有任务',
396
+ 'detail.subtasks.detach': '解除关联',
397
+ 'detail.subtasks.runningLock': '子任务正在执行,结算后才能解除关联或改挂父任务',
398
+ 'detail.subtasks.runHint': '执行本任务会同时并发执行它的 {count} 个子任务;子任务失败不影响其它子任务继续执行。',
399
+ 'detail.subtasks.waiting': '等待子任务结算',
400
+ 'detail.subtasks.depthLimit': '当前子任务深度上限为 {depth} 层,子任务不能再创建或关联子任务。',
401
+ 'detail.subtasks.hostOnly': '连接 Host 后才能创建或关联子任务。',
402
+ 'new.subtaskTitle': '新建子任务',
403
+ 'new.subtaskInherit': '未单独选择的执行设置继承父任务(工作区、模式、权限、模型),可在此覆盖。',
404
+ 'link.subtask.title': '关联现有任务',
405
+ 'link.subtask.hint': '只能关联没有父任务的在看板任务;关联后它成为本任务的子任务。',
406
+ 'link.subtask.empty': '没有可关联的任务',
407
+ 'link.subtask.confirm': '关联',
408
+ 'card.subtask': '子任务',
409
+ 'card.subtasks': '{count} 子任务',
410
+ 'card.subtasksFailed': '{count} 失败',
411
+ 'card.subtasksRunning': '{count} 运行中',
412
+ 'card.subtasksBreakdown': '子任务 {total}:已完成 {done},运行中 {running},失败 {failed}',
413
+ 'card.result.succeeded': '最近成功',
414
+ 'card.result.failed': '最近失败',
415
+ 'card.result.cancelled': '最近取消',
416
+ 'card.declared': '手动结算',
417
+ 'card.declaredHint': '卡片所在列与最近一次执行结果不一致:该列由人工移动或外部系统(如 Issue 关闭)设置,而不是这次执行的结算。',
418
+ 'card.openSession': '打开最近执行的会话',
419
+ 'card.tagsLabel': '标签 {tags}',
420
+ 'card.time.created': '创建于 {time}',
421
+ 'card.time.started': '已运行 {time}',
422
+ 'card.time.settled': '结算于 {time}',
423
+ 'card.time.archived': '归档于 {time}',
424
+ 'card.time.updated': '更新于 {time}',
425
+ 'board.density.compact': '切换为紧凑卡片',
426
+ 'board.density.comfortable': '切换为完整卡片',
427
+ 'board.group.today': '今天',
428
+ 'board.group.week': '近 7 天',
429
+ 'board.group.earlier': '更早',
430
+ 'board.group.expand': '展开 {count} 张',
431
+ 'board.group.collapse': '收起',
432
+ 'board.hideSubtasks': '隐藏子任务',
433
+ 'board.showSubtasks': '显示子任务',
434
+ 'board.subtaskFilterHint': '看板默认只显示父任务;搜索或按标签筛选时会自动展开子任务。',
435
+ } satisfies Record<string, string>
436
+
437
+ /** en dictionary, complete against the zh key set. */
438
+ export const en: Record<keyof typeof zh, string> = {
439
+ 'entry.label': 'Task Board',
440
+ 'board.title': 'Task Board',
441
+ 'board.close': 'Back to chat',
442
+ 'board.new': 'New Task',
443
+ 'board.search': 'Filter tasks…',
444
+ 'board.empty': 'No tasks in this column',
445
+ 'board.filterAll': 'All',
446
+ 'board.archive': 'Archive',
447
+ 'board.archiveView': 'Archived ({count})',
448
+ 'board.backToBoard': 'Back to board',
449
+ 'archive.empty': 'No archived tasks',
450
+ 'board.status': 'Status',
451
+ 'board.status.backlog': 'Backlog',
452
+ 'board.status.todo': 'To Do',
453
+ 'board.status.running': 'In Progress',
454
+ 'board.status.done': 'Done',
455
+ 'board.status.failed': 'Failed',
456
+ 'board.runs': 'runs',
457
+ 'board.pending': 'Submitting',
458
+ 'board.created': 'Created',
459
+ 'board.hostError': 'Host action failed: {error}',
460
+ 'board.hostError.notMounted': 'The task board Host API is not mounted: the Host did not load this plugin (not installed, disabled, or its row failed to start). Restart the DSH service and try again',
461
+ 'board.hostError.ledgerLocked': 'Another DSH process (pid {pid}) holds the task board ledger, so this instance registered no Host API: close that DSH instance, or wait for it to exit and retry. Restarting this instance cannot help (reason: {detail})',
462
+ 'board.hostError.degraded': 'The task board row degraded during start, so its Host API was not registered: {detail}',
463
+ 'board.hostError.unauthorized': 'This session is no longer signed in; reload the page and try again',
464
+ 'board.hostError.forbidden': 'The request did not pass the same-origin fence: the desktop shell or reverse proxy may not have forwarded browser credentials',
465
+ 'board.hostError.locked': 'The task board ledger is locked: {detail}',
466
+ 'board.hostError.timeout': 'The Host did not answer within {seconds}s; try again shortly',
467
+ 'board.hostError.unreachable': 'Cannot reach the local DSH service; make sure it is still running',
468
+ 'board.hostError.unexpected': 'The Host returned an unrecognized response (HTTP {status})',
469
+ 'board.project': 'Project',
470
+ 'board.projectAll': 'All projects',
471
+ 'board.projectNew': 'New project…',
472
+ 'board.projectNewPath': 'Project directory (absolute path on the Host)',
473
+ 'board.projectNewPathPlaceholder': 'e.g. C:\\work\\my-project or /home/me/project',
474
+ 'board.projectCreate': 'Create project',
475
+ 'board.projectCreateFailed': 'Could not create the project: {error}',
476
+ 'new.aiParse': 'Parse with AI',
477
+ 'new.aiParseHint': 'Paste text copied from somewhere else and let a model turn it into a title, description, and run prompt; the result only fills the form below, so you can edit it before creating the task.',
478
+ 'new.aiParsePlaceholder': 'Paste the content to turn into a task…',
479
+ 'new.aiParseModel': 'Model used for parsing',
480
+ 'new.aiParseRun': 'Parse and fill',
481
+ 'new.aiParseCancel': 'Cancel parsing',
482
+ 'new.aiParseEmpty': 'Paste something to parse first',
483
+ 'new.aiParseNoModel': 'This deployment has no model available; configure a model provider in DSH or pick another model',
484
+ 'new.aiParseUnavailable': 'The Host has no parse endpoint; restart the DSH service and try again',
485
+ 'new.aiParseTimeout': 'The model did not answer within {seconds}s; try again or pick a faster model',
486
+ 'new.aiParseFailed': 'Parsing failed: {error}',
487
+ 'board.retryHost': 'Retry Host connection',
488
+ 'board.hostMeta': 'Host time zone {timeZone} · revision {revision}',
489
+ // Create/edit dialog regions: a collapsed region still shows a one-line summary of its values.
490
+ 'new.section.parse': 'AI Parse',
491
+ 'new.section.content': 'Task Content',
492
+ 'new.section.labels': 'Tags',
493
+ 'new.section.execution': 'Execution Settings',
494
+ 'new.section.run': 'Run Mode',
495
+ 'new.section.handover': 'Handover',
496
+ 'new.section.schedule': 'Scheduled Runs',
497
+ 'new.summary.none': 'Not set',
498
+ 'new.summary.labelCount': '{count} tags',
499
+ 'new.summary.filled': 'Filled',
500
+ 'new.summary.scheduleOff': 'Off',
501
+ 'new.summary.multiRound': 'multi-round /goal',
502
+ 'new.summary.singleRound': 'single round',
503
+ 'new.title': 'Title',
504
+ 'new.titlePlaceholder': 'What should be done, in one line',
505
+ 'new.description': 'Description',
506
+ 'new.descriptionPlaceholder': 'Background, scope, acceptance criteria (optional)',
507
+ 'new.prompt': 'Run Prompt',
508
+ 'new.promptPlaceholder': 'The full instruction sent to the agent (title is used when blank)',
509
+ 'new.submit': 'Create',
510
+ 'new.createAndRun': 'Create and run',
511
+ 'new.cancel': 'Cancel',
512
+ 'new.required': 'Title is required',
513
+ 'new.freeze': 'Frozen snapshot (optional)',
514
+ 'new.freezePlaceholder': 'Paste a <<<FREEZE ... >>>FREEZE block from a session; it parses into goal/progress/next (optional)',
515
+ 'detail.freeze': 'Frozen snapshot',
516
+ 'detail.freeze.goal': 'Goal',
517
+ 'detail.freeze.progress': 'Progress',
518
+ 'detail.freeze.next': 'Next',
519
+ 'detail.freeze.frozenAt': 'Frozen at {time}',
520
+ 'detail.freeze.frozenBy': 'Source session {session}',
521
+ 'detail.freeze.redacted': 'Sensitive patterns were detected in the frozen text and replaced with [REDACTED]; review manually before resuming.',
522
+ 'card.frozen': 'frozen',
523
+ 'new.handover': 'Handover references (optional)',
524
+ 'new.handoverPlaceholder': 'One doc/script reference per line; when filled, the pinned triplet picked above (workspace/mode/permission) is attached to the card as a handover bundle',
525
+ 'detail.handover': 'Handover bundle',
526
+ 'detail.handover.bundledAt': 'Bundled at {time}',
527
+ 'detail.handover.references': 'References',
528
+ 'new.tags': 'Tags (optional)',
529
+ 'new.tagsHint': 'Tags drive the card badges and the board filter; a row with an execution hint is injected ahead of the prompt on every run, an empty one is display-only.',
530
+ 'new.tagName': 'Tag name',
531
+ 'new.tagNamePlaceholder': 'e.g. Work',
532
+ 'new.tagPrompt': 'Execution hint (optional)',
533
+ 'new.tagPromptPlaceholder': 'e.g. Archive artefacts under 02-work/',
534
+ 'new.tagAdd': 'Add tag',
535
+ 'new.tagRemove': 'Remove tag {name}',
536
+ 'board.tagFilter': 'Filter by tag',
537
+ 'board.tagFilterClear': 'Clear tag filter',
538
+ 'board.tagEmpty': 'No task carries all of these tags',
539
+ 'board.tagManage': 'Manage labels',
540
+ 'tags.title': 'Label manager',
541
+ 'tags.hint': 'Labels feed the board filter and the card badges. Renaming writes to every card (merging into a label that already exists), and deleting removes the label from every task including archived ones; the tasks themselves are untouched.',
542
+ 'tags.empty': 'No labels are in use.',
543
+ 'tags.usage': '{count} tasks',
544
+ 'tags.rename': 'Rename',
545
+ 'tags.renameLabel': 'Rename the label {name}',
546
+ 'tags.delete': 'Delete',
547
+ 'tags.deleteTitle': 'Delete label',
548
+ 'tags.deleteConfirm': 'Remove the label "{name}" from {count} task(s)? Its execution hint is removed with it; the tasks themselves are unaffected.',
549
+ 'tags.deleteOk': 'Delete',
550
+ 'tags.save': 'Save',
551
+ 'tags.mergeHint': 'Merges into the existing label "{name}"',
552
+ 'tags.renameFailed': 'The rename was not accepted.',
553
+ 'tags.deleteFailed': 'The deletion was not accepted.',
554
+ 'tags.done': 'Done',
555
+ 'detail.permissionPending': 'Permission pending confirmation: this card\'s effective permission ({permission}) is above the session default; manual runs and cron are refused until a human confirms.',
556
+ 'detail.permissionConfirm': 'Confirm permission binding',
557
+ 'detail.permissionConfirmed': 'Permission confirmed · {time}',
558
+ 'detail.title': 'Task Detail',
559
+ 'detail.edit': 'Edit',
560
+ 'detail.editTags': 'Edit tags',
561
+ 'detail.duplicate': 'Duplicate Task',
562
+ 'detail.duplicateAndEdit': 'Edit as New Copy',
563
+ 'detail.close': 'Close',
564
+ 'edit.title': 'Edit Task',
565
+ 'edit.save': 'Save',
566
+ 'new.duplicateTitle': 'New Task (Copy)',
567
+ 'new.archiveOriginal': 'Archive original task upon creation',
568
+ 'detail.prompt': 'Run Prompt',
569
+ 'detail.description': 'Description',
570
+ 'detail.expand': 'Show more',
571
+ 'detail.collapse': 'Show less',
572
+ 'detail.execution': 'Execution History',
573
+ 'detail.noExecution': 'Not executed yet',
574
+ 'detail.run': 'Run',
575
+ 'detail.rerun': 'Run Again',
576
+ 'detail.delete': 'Delete',
577
+ 'detail.archive': 'Archive',
578
+ 'detail.restore': 'Restore',
579
+ 'detail.archivedAt': 'Archived · {time}',
580
+ 'detail.viewSession': 'View Session',
581
+ 'detail.noSession': 'No session',
582
+ 'detail.executionStarted': 'Started',
583
+ 'detail.execution.initiator': 'Initiated by session {session}',
584
+ 'detail.execution.external': 'Completed outside this Host by {agent}',
585
+ 'detail.executionEnded': 'Ended',
586
+ 'detail.result.succeeded': 'Succeeded',
587
+ 'detail.result.failed': 'Failed',
588
+ 'detail.result.cancelled': 'Cancelled',
589
+ 'detail.result.running': 'Running',
590
+ 'delete.title': 'Delete Task',
591
+ 'delete.confirm': 'Delete "{name}"? This cannot be undone.',
592
+ 'delete.ok': 'Delete',
593
+ 'delete.cancel': 'Cancel',
594
+ 'status.move.backlog': 'Move to Backlog',
595
+ 'status.move.todo': 'Move to To Do',
596
+ 'status.move.running': 'Move to Running',
597
+ 'status.move.done': 'Move to Done',
598
+ 'status.move.failed': 'Move to Failed',
599
+ 'exec.error.noWorkspace': 'No workspace is available to run the task',
600
+ 'exec.error.promptRejected': 'Prompt rejected',
601
+ 'run.failed': 'Run failed: {error}',
602
+ 'time.justNow': 'just now',
603
+ 'detail.schedule': 'Scheduled Runs',
604
+ 'detail.schedule.enable': 'Enable scheduled runs',
605
+ 'detail.schedule.cron': 'Cron expression',
606
+ 'detail.schedule.presets': 'Presets',
607
+ 'detail.schedule.preset.daily9': 'Every day 09:00',
608
+ 'detail.schedule.preset.hourly': 'Every hour',
609
+ 'detail.schedule.preset.tenMin': 'Every 10 minutes',
610
+ 'detail.schedule.preset.weeklyMon9': 'Every Monday 09:00',
611
+ 'detail.schedule.nextRun': 'Next run',
612
+ 'detail.schedule.lastTriggered': 'Last triggered',
613
+ 'detail.schedule.invalid': 'Invalid cron expression',
614
+ 'detail.schedule.notScheduled': 'Not scheduled yet',
615
+ 'detail.schedule.dueSoon': 'Due soon',
616
+ 'detail.schedule.timeZone': 'Time zone',
617
+ 'detail.schedule.timeZoneHost': 'Host time zone ({timeZone})',
618
+ 'detail.schedule.timeZoneHostUnknown': 'Host time zone (unknown)',
619
+ 'detail.schedule.timeZoneHint': 'The cron wall clock is read in this zone; daylight-saving gaps are skipped and a repeated time fires once.',
620
+ 'detail.schedule.timeZoneSearch': 'Search time zones…',
621
+ 'detail.schedule.timeZoneNone': 'No matching time zone',
622
+ 'detail.schedule.nextRunOverdue': 'Overdue by {duration}',
623
+ 'detail.schedule.duration.days': '{count}d',
624
+ 'detail.schedule.duration.hours': '{count}h',
625
+ 'detail.schedule.duration.minutes': '{count}m',
626
+ 'detail.schedule.duration.seconds': '{count}s',
627
+ // Scheduling mode: a one-shot and a recurring rule are two kinds of plan,
628
+ // not the same cron expression restricted to a date.
629
+ 'detail.schedule.mode': 'Mode',
630
+ 'detail.schedule.mode.cron': 'Recurring',
631
+ 'detail.schedule.mode.once': 'Once',
632
+ 'detail.schedule.at': 'Run at',
633
+ 'detail.schedule.atHint': 'Planned instant, read in the selected zone; it must be in the future.',
634
+ 'detail.schedule.atInvalid': 'Choose a valid future time',
635
+ 'detail.schedule.plannedAt': 'Planned time',
636
+ 'detail.schedule.zoneOnceHint': 'The chosen instant is read in this zone.',
637
+ 'detail.schedule.maxRuns': 'Run limit',
638
+ 'detail.schedule.maxRunsUnlimited': 'Unlimited',
639
+ 'detail.schedule.maxRunsValue': 'At most {count} runs',
640
+ 'detail.schedule.maxRunsCustom': 'Custom',
641
+ 'detail.schedule.maxRunsInvalid': 'The run limit must be a positive whole number',
642
+ 'detail.schedule.runs': 'Ran {done}/{total}',
643
+ 'detail.schedule.runsUnlimited': 'Ran {done}',
644
+ 'detail.schedule.remaining': '{count} left',
645
+ 'detail.schedule.cancel': 'Cancel schedule',
646
+ 'detail.schedule.ended': 'Schedule ended: {reason}',
647
+ 'detail.schedule.skipped': 'Last skip: {reason}',
648
+ 'detail.schedule.stop.fired': 'the one-shot ran',
649
+ 'detail.schedule.stop.limit': 'the run limit was reached',
650
+ 'detail.schedule.stop.no-target': 'the plan has no reachable occurrence',
651
+ 'detail.schedule.stop.missed': 'the instant was missed and skipped',
652
+ 'detail.schedule.stop.busy': 'the task was already running, so the occurrence was skipped',
653
+ 'detail.schedule.stop.permission': 'a permission awaited human confirmation, so the occurrence was skipped',
654
+ 'detail.schedule.stop.launch-failed': 'the launch failed before any execution existed, so the run was refunded',
655
+ 'card.scheduled': 'scheduled',
656
+ 'card.scheduledOnce': 'once',
657
+ 'new.workspace': 'Workspace',
658
+ 'new.agentPreset': 'Agent preset',
659
+ 'new.permission': 'Permission',
660
+ 'new.model': 'Model',
661
+ 'exec.workspace.recent': 'Most recent (default)',
662
+ 'exec.mode.inherit': 'Inherit (deployment default)',
663
+ 'exec.mode.inheritWith': 'Inherit (deployment default: {preset})',
664
+ 'exec.mode.builtinGroup': 'Built-in presets',
665
+ 'exec.mode.customGroup': 'Custom presets',
666
+ 'preset.builtin.standard': 'Standard',
667
+ 'preset.builtin.ptc': 'PTC (programmatic tool calling)',
668
+ 'preset.builtin.minimal': 'Minimal',
669
+ 'preset.builtin.cordis': 'Cordis',
670
+ 'exec.mode.defaultSuffix': ' (default)',
671
+ 'exec.mode.brokenSuffix': ' (unavailable)',
672
+ 'exec.mode.removed': ' (removed)',
673
+ 'exec.permission.default': 'Session default',
674
+ 'exec.permission.inheritParent': 'Inherit parent ({permission})',
675
+ 'exec.permission.read-only': 'Read-only',
676
+ 'exec.permission.workspace-write': 'Workspace Write',
677
+ 'exec.permission.danger-full-access': 'Full Access',
678
+ 'exec.model.default': 'Host default (agent-default-model)',
679
+ 'exec.model.unknown': ' (unknown / fallback to default)',
680
+ 'exec.reuseSession': 'Continue in the same conversation',
681
+ 'exec.teamRun': 'Run with an Agent Team (Lead + teammates)',
682
+ 'exec.teamRunHint': 'On: running this task starts one Lead session and spawns a teammate per subtask inside it, working in parallel (a subtask permission pin does not apply). Off: every member gets its own independent session.',
683
+ 'exec.teamRunUnavailable': 'This deployment serves no Agent Teams service, so team runs cannot be enabled.',
684
+ 'exec.reuseSessionHint': 'When on, later runs continue in the previous session (when that session is idle and still exists) instead of starting a new conversation each time; the pinned permission and model above are re-applied on every reuse.',
685
+ 'exec.goalRun': "Start the run with dsh's built-in /goal",
686
+ 'exec.goalRunHint': 'Off by default: when checked, the run arms dsh built-in /goal with the task objective, so the session keeps working automatic continuation rounds until the agent marks the goal complete, and the board settles the execution only when that goal really ends. Unchecked: one plain turn.',
687
+ 'exec.skipVerification': 'Skip acceptance for this task',
688
+ 'exec.skipVerificationHint': 'Off by default: when checked, a goal-form run of this task no longer gates update_goal on a passing acceptance, and the execution record is marked as skipped. It applies only to executions started afterwards, and means nothing while the board-wide acceptance switch is off.',
689
+ 'detail.executionSettings': 'Execution Settings',
690
+ 'exec.hint': 'Applied when the task runs: the workspace decides where the execution session lands; the agent preset composes the session (tool face and prompt sections); the permission is applied through the /permission command. Blank inherits the deployment default.',
691
+ // Plugin settings card (the `settings.plugin.item` seat).
692
+ 'settings.title': 'Task Board',
693
+ 'settings.description': 'Task orchestration, agent announcement and goal acceptance.',
694
+ 'settings.enabled': 'Enable the task board',
695
+ 'settings.enabledCardHint': 'Master switch, announcement, sleep protection and subtask depth.',
696
+ 'settings.enabledHint': 'When off, the sidebar entry and board view are hidden and the task_board_* agent tools are unregistered; while on, any session can read and drive the board, its subtasks and its schedules through those tools.',
697
+ 'settings.announceToAgent': 'Announce the task board to agents',
698
+ 'settings.announceToAgentHint': 'On: every agent system prompt includes a note about this board. Off: no announcement; agents learn about the board only when you mention it.',
699
+ 'settings.preventIdleSleep': 'Prevent idle system sleep',
700
+ 'settings.preventIdleSleepHint': 'Off by default. When enabled, the Host prevents idle system sleep while any DSH session runs, any schedule is enabled, or session state is not yet known. The display may still turn off.',
701
+ 'settings.powerStatus': 'Platform: {platform}; protection: {phase}; running sessions: {running}; enabled schedules: {schedules}',
702
+ 'settings.powerBoundary': 'This may use more battery. Lid close, manual sleep, hibernation, shutdown, low-battery actions, and enterprise policy are outside the guarantee; an already sleeping computer is not woken.',
703
+ 'settings.powerUnknown': 'unknown',
704
+ 'settings.powerError': 'Latest power-protection error: {error}',
705
+ 'settings.inherit': 'Inherit',
706
+ 'settings.on': 'On',
707
+ 'settings.off': 'Off',
708
+ 'settings.overridden': 'Overridden',
709
+ 'settings.reset': 'Reset to default',
710
+ 'settings.notExposed': 'This DSH version does not expose this plugin\'s settings namespace to the configuration page, so the form is unavailable. Edit ~/.dsh/settings.yaml directly, or add the namespace to the Host settings allowlist and restart.',
711
+ 'settings.readOnly': 'This deployment stores settings read-only.',
712
+ 'settings.expand': 'Show settings',
713
+ 'settings.collapse': 'Hide settings',
714
+ 'settings.save': 'Save',
715
+ 'settings.saving': 'Saving…',
716
+ 'settings.discard': 'Discard',
717
+ 'settings.unsaved': 'Unsaved',
718
+ 'settings.saveFailed': 'The deployment did not accept these values; they were left for you to correct.',
719
+ 'settings.invalidNumber': 'Enter a number, or leave blank to use the default.',
720
+ 'settings.sessionPollSeconds': 'Session poll interval (seconds)',
721
+ 'settings.sessionPollSecondsHint': 'Default 5. The Host reads the DSH session roster only while the board has something to reconcile: a running card or an open execution. With neither it stops polling and never re-scans the persisted session directory. Range 1 to 300 seconds: a shorter interval settles runs sooner and costs the Host more.',
722
+ 'settings.maxSubtaskDepth': 'Subtask depth limit',
723
+ 'settings.maxSubtaskDepthHint': 'Default 1: a task may carry one level of subtasks, and a subtask cannot create or link further subtasks. Maximum 3. Running a task also runs its whole subtask tree concurrently, and every extra level opens more sessions per run.',
724
+ 'settings.maxSubtaskDepthOption': '{depth} levels',
725
+ 'settings.runBehaviorTitle': 'Run behavior',
726
+ 'settings.runBehaviorCardHint': 'The global native /goal switch (master control, off by default).',
727
+ 'settings.goalRunGlobal': 'Global: run tasks with dsh native /goal',
728
+ 'settings.goalRunGlobalHint': 'Off by default. While off, every task runs one plain turn and never calls dsh built-in /goal; a run uses native /goal only when this is on AND the task-level option is checked (see the task option below). The task-level checkbox always stays operable and this switch never rewrites it: the master switch only decides whether that choice takes effect. The switch is frozen when an execution starts, so it only affects runs opened afterwards.',
729
+ 'settings.goalRunGlobalDisabledTaskOption': 'The global native /goal switch is off: the task-level option can still be checked or cleared, but it has no effect right now and the preference you save is never rewritten; turning the global switch back on applies it. This execution runs one plain turn and performs no goal acceptance.',
730
+ 'settings.goalVerificationTitle': 'Task acceptance',
731
+ 'settings.goalVerification': 'Enable task acceptance',
732
+ 'settings.goalVerificationCardHint': 'The switch, the judge model and the criteria threshold.',
733
+ 'settings.goalVerificationHint': 'On by default: a task executed in goal form must pass one acceptance before update_goal may mark it complete (the three coding criteria, aimed at engineering tasks, a 0.65 threshold, two rounds per criterion with the A/B slots swapped, and the work must beat the empty-work baseline). A first failure returns the total, the per-criterion scores and the located findings to the fixing agent, and one execution may accept at most twice; a second failure fails that execution. It affects only this board goal-form executions, never plain chat and never a task pinned to goalRun: false. Every acceptance really calls the judge model and spends quota.',
734
+ 'settings.goalVerificationModel': 'Judge model',
735
+ 'settings.goalVerificationModelHint': 'Blank inherits the host: the default route of the host model catalog, never the card pinned execution model.',
736
+ 'settings.goalVerificationModelInherit': 'Inherit host ({model})',
737
+ 'settings.goalVerificationModelInheritUnknown': 'Inherit host (no model catalog)',
738
+ 'settings.goalVerificationEffort': 'Reasoning effort',
739
+ 'settings.goalVerificationEffortHint': 'Blank inherits the host default level. A level the target model does not declare is never sent blindly: the acceptance falls back to that model own default level, and the fallback is reported below.',
740
+ 'settings.goalVerificationEffortInherit': 'Inherit host ({effort})',
741
+ 'settings.goalVerificationEffortInheritUnknown': 'Inherit host (model default level)',
742
+ 'settings.goalVerificationResolved': 'Resolved acceptance configuration',
743
+ 'settings.goalVerificationResolvedModel': 'Judge model: {model}',
744
+ 'settings.goalVerificationResolvedEffort': 'Reasoning effort: {effort}',
745
+ 'settings.goalVerificationResolvedNoEffort': 'Reasoning effort: not sent explicitly (the model default)',
746
+ 'settings.goalVerificationResolvedSource': 'Source: {source}',
747
+ 'settings.goalVerificationSourceInherit': 'inherited from the host',
748
+ 'settings.goalVerificationSourceExplicit': 'explicit configuration',
749
+ 'settings.goalVerificationResolvedPreset': 'Rubric: coding (Specification Adherence / Output Match / Error Signal Detection), threshold {threshold}',
750
+ 'settings.goalVerificationRouteMissing': 'The host serves no model catalog, so no judge route resolves: with acceptance on, a goal completion claim is refused and recorded as an acceptance anomaly.',
751
+ 'settings.goalVerificationEffortFallback': 'The selected reasoning effort {requested} is not supported by the target model; it falls back to {resolved}.',
752
+ 'settings.goalVerificationEffortFallbackNone': 'The selected reasoning effort {requested} is not supported by the target model; it falls back to that model default level (not sent explicitly).',
753
+ 'settings.goalVerificationModelInvalid': 'The configured judge model is not a provider/model route; the host default is used instead.',
754
+ 'running.executing': 'Executing',
755
+ 'running.verifying': 'Verifying',
756
+ 'running.repairing': 'Fixing a failed acceptance',
757
+ 'running.verificationPassed': 'Acceptance passed',
758
+ 'running.verificationFailed': 'Acceptance failed',
759
+ 'running.verificationInvalid': 'Invalid acceptance, waiting for a human',
760
+ 'verify.title': 'Acceptance report',
761
+ 'verify.status.passed': 'Passed',
762
+ 'verify.status.failed': 'Failed',
763
+ 'verify.status.exception': 'Anomaly',
764
+ 'verify.status.verifying': 'Verifying',
765
+ 'verify.status.pending': 'Not yet verified',
766
+ 'verify.status.off': 'Acceptance was off for this execution',
767
+ 'verify.status.invalid': 'Invalid acceptance',
768
+ 'verify.status.invalidHeld': 'Invalid acceptance, waiting for a human',
769
+ 'verify.attemptInvalid': 'Invalid acceptance {index}',
770
+ 'verify.invalidReason.missing-finding': 'A failing criterion carries no structured finding of its own',
771
+ 'verify.invalidReason.unlocatable-quote': 'A finding cites a passage that is not in the evidence the judge saw',
772
+ 'verify.invalidReason.baseline-finding': 'A finding points at the empty-work baseline instead of this execution\'s work',
773
+ 'verify.invalidReason.vacuous-finding': 'A finding is empty or a generic evaluation with no observation or difference',
774
+ 'verify.invalidReason.insufficient-evidence': 'The judge saw too little evidence (for example a truncated trace) to support a veto',
775
+ 'verify.invalidReason.unknown': 'No usable quality verdict was produced',
776
+ 'verify.invalidCounts': 'Valid quality verdicts {quality}/{max} · invalid acceptances {invalid}/{maxInvalid} · anomalies {exceptions}/{max}',
777
+ 'verify.invalidDetail': 'Invalid because: {reason}',
778
+ 'verify.criterionFindings': 'Structured findings (criterion · cited location · verbatim citation)',
779
+ 'verify.criterionFinding': '{criterion} · {location}: "{quote}"',
780
+ 'verify.criterionFindingFull': '{criterion} · {location}: "{quote}" requirement: {requirement} observed: {observation} gap: {gap}',
781
+ 'verify.location.task': 'task statement',
782
+ 'verify.location.trajectory': 'execution trajectory',
783
+ 'verify.location.workspace': 'host-recorded changes',
784
+ 'verify.location.baseline': 'empty-work baseline (not evidence against the work)',
785
+ 'verify.location.unknown': 'location not named',
786
+ 'verify.detailRemoved': 'This attempt detail was cleaned up automatically after the execution passed and settled (the judge did report evidence).',
787
+ 'verify.cleanup.cleaned': 'The acceptance-only detail of this execution was cleaned up automatically after it passed and settled; what remains is the lightweight audit credential.',
788
+ 'verify.cleanup.pending': 'The acceptance-only detail is pending cleanup (started once the execution passes and settles).',
789
+ 'verify.cleanup.failed': 'Cleaning the acceptance detail failed after {attempts} attempts: {error}. The pass record is still valid and the host retries on its next start.',
790
+ 'verify.cleanup.audit': 'Kept credential: attempt {index} · {stage} · score {score} · evidence hash {hash}',
791
+ 'verify.cleanup.stage.quality': 'quality verdict',
792
+ 'verify.cleanup.stage.invalid': 'invalid acceptance',
793
+ 'verify.cleanup.stage.exception': 'acceptance anomaly',
794
+ 'verify.cleanup.stage.budget': 'time budget exhausted',
795
+ 'verify.summary': 'Total {score} (threshold {threshold}) · empty-work baseline {baseline}',
796
+ 'verify.criteria': 'Per-criterion scores',
797
+ 'verify.criterion': '{name}: {score} (threshold {threshold})',
798
+ 'verify.rounds': '{rounds} rounds per criterion, A/B slots swapped, averaged',
799
+ 'verify.judge': 'Judge {model} (reasoning effort {effort})',
800
+ 'verify.judgeNoEffort': 'Judge {model} (reasoning effort: not sent explicitly)',
801
+ 'verify.judgeInherited': 'Judge {model} (inherited from the host)',
802
+ 'verify.attempt': 'Acceptance {index}',
803
+ 'verify.attemptException': 'Acceptance anomaly {index}',
804
+ 'verify.counts': 'Quality verdicts {quality}/{max} · anomalies {exceptions}/{max}',
805
+ 'verify.findings': 'Findings',
806
+ 'verify.noFindings': 'The judge reported no locatable finding',
807
+ 'verify.evidence': 'Evidence: {chars} characters · {entries} trace entries · {omitted} characters truncated',
808
+ 'verify.workspaceEvidence': '{files} changed file(s) observed by the host',
809
+ 'verify.usage': 'Usage: {calls} requests · {input} input · {output} output · {reasoning} reasoning tokens',
810
+ 'verify.usageIncomplete': ' (at least one request usage is unknown; these counts are a floor)',
811
+ 'verify.finalFailure': 'Verdict basis: {reason}',
812
+ 'verify.applicability.disabled': 'Acceptance was off when this execution started; it settles on the historical verdict.',
813
+ 'verify.applicability.goalUnavailable': 'This execution never became a goal run (the card did not check Start with /goal, or /goal was refused or unavailable), so acceptance was not enforced.',
814
+ 'verify.applicability.skipped': 'This card checked Skip acceptance, so the execution was never judged.',
815
+ 'verify.applicability.teamMember': 'Team member: the Lead team-summary evidence is accepted as one execution.',
816
+ 'verify.applicability.goalDisabled': 'The global native /goal switch was off when this execution started, so it ran one plain turn: no goal acceptance was performed, which neither counts as a pass nor fails the run.',
817
+ 'verify.effortFallback': 'Reasoning effort fallback: {requested} → {resolved}',
818
+ 'verify.thresholdValue': '{value}%',
819
+ // Subtasks (parent/child links, cascade runs, link/detach).
820
+ 'detail.parent': 'Parent task',
821
+ 'detail.parent.open': 'Open parent task',
822
+ 'detail.subtasks': 'Subtasks',
823
+ 'detail.subtasks.empty': 'No subtasks yet',
824
+ 'detail.subtasks.add': 'Add subtask',
825
+ 'detail.subtasks.link': 'Link existing task',
826
+ 'detail.subtasks.detach': 'Detach',
827
+ 'detail.subtasks.runningLock': 'This subtask is running; it can be detached or re-linked once it settles',
828
+ 'detail.subtasks.runHint': 'Running this task also runs its {count} subtasks concurrently; one subtask failing does not stop the others.',
829
+ 'detail.subtasks.waiting': 'Waiting for subtasks',
830
+ 'detail.subtasks.depthLimit': 'The subtask depth limit is {depth}; a subtask cannot create or link further subtasks.',
831
+ 'detail.subtasks.hostOnly': 'Connect to the Host to create or link subtasks.',
832
+ 'new.subtaskTitle': 'New Subtask',
833
+ 'new.subtaskInherit': 'Execution settings left unset inherit the parent (workspace, mode, permission, model); override any of them here.',
834
+ 'link.subtask.title': 'Link an existing task',
835
+ 'link.subtask.hint': 'Only an on-board task without a parent can be linked; it then becomes a subtask of this task.',
836
+ 'link.subtask.empty': 'No task can be linked',
837
+ 'link.subtask.confirm': 'Link',
838
+ 'card.subtask': 'subtask',
839
+ 'card.subtasks': '{count} subtasks',
840
+ 'card.subtasksFailed': '{count} failed',
841
+ 'card.subtasksRunning': '{count} running',
842
+ 'card.subtasksBreakdown': 'Subtasks {total}: {done} done, {running} running, {failed} failed',
843
+ 'card.result.succeeded': 'last succeeded',
844
+ 'card.result.failed': 'last failed',
845
+ 'card.result.cancelled': 'last cancelled',
846
+ 'card.declared': 'set by hand',
847
+ 'card.declaredHint': 'The column disagrees with the latest run: it was set by a manual move or an external system (such as a closed issue), not by that run settling.',
848
+ 'card.openSession': 'Open the latest execution session',
849
+ 'card.tagsLabel': 'labels {tags}',
850
+ 'card.time.created': 'Created {time}',
851
+ 'card.time.started': 'Running {time}',
852
+ 'card.time.settled': 'Settled {time}',
853
+ 'card.time.archived': 'Archived {time}',
854
+ 'card.time.updated': 'Updated {time}',
855
+ 'board.density.compact': 'Switch to compact cards',
856
+ 'board.density.comfortable': 'Switch to full cards',
857
+ 'board.group.today': 'Today',
858
+ 'board.group.week': 'Last 7 days',
859
+ 'board.group.earlier': 'Earlier',
860
+ 'board.group.expand': 'Show {count}',
861
+ 'board.group.collapse': 'Collapse',
862
+ 'board.hideSubtasks': 'Hide subtasks',
863
+ 'board.showSubtasks': 'Show subtasks',
864
+ 'board.subtaskFilterHint': 'The board shows parent tasks only; a text or label filter reveals the subtasks automatically.',
865
+ }
866
+
867
+ /** The dictionary key union. */
868
+
869
+ /** The dictionary key union. */
870
+ export type TaskBoardKey = keyof typeof zh
871
+
872
+ /** The settings-card slice of the task-board dictionary. */
873
+ export type SettingsCardKey = TaskBoardKey
874
+
875
+ /** Active dictionary, picked by the document language at call time. */
876
+ export function dictionary(): Record<TaskBoardKey, string> {
877
+ const lang = typeof document !== 'undefined' ? document.documentElement.lang : 'zh'
878
+ return lang.toLowerCase().startsWith('en') ? en : zh
879
+ }
880
+
881
+ /**
882
+ * SDK translate seat wired by the browser apply() once ctx.locale is bound
883
+ * (setRuntimeTranslate). When present it reads the ACTIVE locale at call
884
+ * time, so plain-DOM surfaces (sidebar row, toggles) follow a runtime
885
+ * language switch; the document-language pick above stays only as the
886
+ * unwired fallback (locale service absent, module-scope early callers).
887
+ */
888
+ let runtimeT: ((key: TaskBoardKey, params?: Record<string, string>) => string) | undefined
889
+
890
+ /** Wire the SDK translate seat; pass undefined to restore the document-language pick. */
891
+ export function setRuntimeTranslate(t: ((key: TaskBoardKey, params?: Record<string, string>) => string) | undefined): void {
892
+ runtimeT = t
893
+ }
894
+
895
+ /** Translate a key with optional {name} template params. */
896
+ export function t(key: TaskBoardKey, params?: Record<string, string>): string {
897
+ if (runtimeT !== undefined) return runtimeT(key, params)
898
+ let text: string = dictionary()[key]
899
+ if (params !== undefined) {
900
+ for (const [name, value] of Object.entries(params)) {
901
+ text = text.replaceAll(`{${name}}`, value)
902
+ }
903
+ }
904
+ return text
905
+ }