@deepseek-harness-tui/dsh-tui 0.16.1 → 0.18.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 (488) hide show
  1. package/README.md +213 -34
  2. package/assets/plugin-icon.svg +13 -0
  3. package/assets/windows-installer.cs +308 -0
  4. package/assets/windows-installer.ps1 +17 -0
  5. package/bin/dsh-tui.js +64 -5
  6. package/cli/adapters/dsh/index.mjs +111 -0
  7. package/cli/adapters/dsh/locate.mjs +73 -0
  8. package/cli/adapters/dsh/management-plugin.mjs +111 -0
  9. package/cli/args.mjs +154 -0
  10. package/cli/contracts.d.ts +48 -0
  11. package/cli/engine.mjs +92 -0
  12. package/cli/entry.mjs +48 -0
  13. package/cli/process.mjs +118 -0
  14. package/cli/protocol.mjs +23 -0
  15. package/cli/schema-v1.json +33 -0
  16. package/cordis.patch.yml +3 -1
  17. package/cordis.yml +3 -1
  18. package/guide/dsh-tui-guide/SKILL.md +1 -0
  19. package/guide/dsh-tui-guide/cli.en.md +114 -0
  20. package/guide/dsh-tui-guide/cli.md +114 -0
  21. package/guide/dsh-tui-guide/configuration.en.md +7 -5
  22. package/guide/dsh-tui-guide/configuration.md +7 -5
  23. package/guide/dsh-tui-guide/getting-started.en.md +33 -3
  24. package/guide/dsh-tui-guide/getting-started.md +23 -2
  25. package/guide/dsh-tui-guide/interaction.en.md +50 -17
  26. package/guide/dsh-tui-guide/interaction.md +35 -13
  27. package/guide/dsh-tui-guide/plugins.en.md +63 -11
  28. package/guide/dsh-tui-guide/plugins.md +41 -7
  29. package/guide/dsh-tui-guide/user-guide.en.md +55 -34
  30. package/guide/dsh-tui-guide/user-guide.md +45 -28
  31. package/lib/settings.json +85 -42
  32. package/lib/types/adapter/channel/plugins.d.ts.map +1 -1
  33. package/lib/types/adapter/channel/plugins.js +8 -0
  34. package/lib/types/adapter/channel/ui-policy.d.ts +2 -1
  35. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
  36. package/lib/types/adapter/channel/ui-policy.js +4 -0
  37. package/lib/types/adapter/ports/channel-display.d.ts +10 -0
  38. package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
  39. package/lib/types/adapter/ports/channel-session.d.ts +2 -0
  40. package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
  41. package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
  42. package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
  43. package/lib/types/adapter/ports/channel-ui.d.ts +22 -2
  44. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  45. package/lib/types/adapter/ports/channel-view.d.ts +11 -1
  46. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  47. package/lib/types/adapter/ports/channel.d.ts +7 -0
  48. package/lib/types/adapter/ports/channel.d.ts.map +1 -1
  49. package/lib/types/adapter/standard/grants.d.ts +60 -0
  50. package/lib/types/adapter/standard/grants.d.ts.map +1 -1
  51. package/lib/types/adapter/standard/grants.js +74 -0
  52. package/lib/types/agent/capabilities.d.ts +2 -0
  53. package/lib/types/agent/capabilities.d.ts.map +1 -1
  54. package/lib/types/agent/events.d.ts +15 -1
  55. package/lib/types/agent/events.d.ts.map +1 -1
  56. package/lib/types/api.d.ts +2 -2
  57. package/lib/types/api.d.ts.map +1 -1
  58. package/lib/types/backends/claude/translate/events.d.ts.map +1 -1
  59. package/lib/types/backends/claude/translate/events.js +2 -1
  60. package/lib/types/backends/codex/auth/status.js +1 -1
  61. package/lib/types/backends/codex/session/controls.d.ts.map +1 -1
  62. package/lib/types/backends/codex/session/controls.js +6 -5
  63. package/lib/types/backends/codex/session/goals.d.ts.map +1 -1
  64. package/lib/types/backends/codex/session/side-query.d.ts.map +1 -1
  65. package/lib/types/backends/codex/translate/events.d.ts.map +1 -1
  66. package/lib/types/backends/codex/translate/events.js +3 -1
  67. package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -1
  68. package/lib/types/backends/shared/channel-tokens.js +9 -8
  69. package/lib/types/channel/history-restore.d.ts.map +1 -1
  70. package/lib/types/channel/history-restore.js +2 -0
  71. package/lib/types/channel/interaction.d.ts.map +1 -1
  72. package/lib/types/channel/interaction.js +1 -0
  73. package/lib/types/channel/projection.d.ts +1 -1
  74. package/lib/types/channel/projection.d.ts.map +1 -1
  75. package/lib/types/channel/projection.js +19 -4
  76. package/lib/types/channel/questions.d.ts +2 -0
  77. package/lib/types/channel/questions.d.ts.map +1 -1
  78. package/lib/types/channel/sanitize.d.ts +14 -0
  79. package/lib/types/channel/sanitize.d.ts.map +1 -1
  80. package/lib/types/channel/sanitize.js +55 -0
  81. package/lib/types/channel/working-directory.d.ts +9 -0
  82. package/lib/types/channel/working-directory.d.ts.map +1 -0
  83. package/lib/types/channel/working-directory.js +7 -0
  84. package/lib/types/commands.d.ts +8 -1
  85. package/lib/types/commands.d.ts.map +1 -1
  86. package/lib/types/commands.js +14 -5
  87. package/lib/types/components/ChatTitle.d.ts +7 -0
  88. package/lib/types/components/ChatTitle.d.ts.map +1 -0
  89. package/lib/types/components/ChatTitle.js +15 -0
  90. package/lib/types/components/CodeBlockFrame.d.ts.map +1 -1
  91. package/lib/types/components/CodeBlockFrame.js +10 -5
  92. package/lib/types/components/CompactionStatusRow.d.ts.map +1 -1
  93. package/lib/types/components/CompactionStatusRow.js +24 -3
  94. package/lib/types/components/GoalTodoPanel.d.ts +73 -6
  95. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  96. package/lib/types/components/GoalTodoPanel.js +165 -17
  97. package/lib/types/components/Markdown.d.ts +9 -1
  98. package/lib/types/components/Markdown.d.ts.map +1 -1
  99. package/lib/types/components/Markdown.js +5 -4
  100. package/lib/types/components/MessageList.d.ts.map +1 -1
  101. package/lib/types/components/MessageList.js +20 -14
  102. package/lib/types/components/PluginGrantList.d.ts +45 -0
  103. package/lib/types/components/PluginGrantList.d.ts.map +1 -0
  104. package/lib/types/components/PluginGrantList.js +126 -0
  105. package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
  106. package/lib/types/components/PluginInstallPane.js +35 -6
  107. package/lib/types/components/PluginManagePane.d.ts.map +1 -1
  108. package/lib/types/components/PluginManagePane.js +65 -8
  109. package/lib/types/components/PromptInput.d.ts +13 -5
  110. package/lib/types/components/PromptInput.d.ts.map +1 -1
  111. package/lib/types/components/PromptInput.js +190 -108
  112. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  113. package/lib/types/components/SplitDiffView.js +232 -22
  114. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  115. package/lib/types/components/SubagentDashboard.js +10 -0
  116. package/lib/types/components/SubagentDetailScene.d.ts +3 -1
  117. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  118. package/lib/types/components/SubagentDetailScene.js +17 -1
  119. package/lib/types/components/Whale.d.ts.map +1 -1
  120. package/lib/types/components/Whale.js +8 -5
  121. package/lib/types/components/approvals/ApprovalPanel.d.ts +1 -1
  122. package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
  123. package/lib/types/components/approvals/ApprovalPanel.js +93 -11
  124. package/lib/types/components/bigfont.d.ts.map +1 -1
  125. package/lib/types/components/bigfont.js +2 -1
  126. package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
  127. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  128. package/lib/types/components/messages/AssistantToolUseMessage.js +24 -11
  129. package/lib/types/components/onboardingModel.d.ts +2 -2
  130. package/lib/types/components/onboardingModel.js +3 -3
  131. package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
  132. package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
  133. package/lib/types/components/onboardingProviderPlan.js +78 -0
  134. package/lib/types/components/previewRows.d.ts +19 -0
  135. package/lib/types/components/previewRows.d.ts.map +1 -0
  136. package/lib/types/components/previewRows.js +46 -0
  137. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  138. package/lib/types/components/questions/AskUserQuestionPanel.js +75 -10
  139. package/lib/types/components/sessions/ForeignSessionRow.d.ts +3 -9
  140. package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -1
  141. package/lib/types/components/sessions/ForeignSessionRow.js +6 -10
  142. package/lib/types/components/sessions/SessionListRow.d.ts +4 -9
  143. package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
  144. package/lib/types/components/sessions/SessionListRow.js +18 -10
  145. package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
  146. package/lib/types/components/sidePanel/InfoPanel.js +4 -3
  147. package/lib/types/components/sidePanel/SidePanelLayout.d.ts.map +1 -1
  148. package/lib/types/components/sidePanel/SidePanelLayout.js +5 -5
  149. package/lib/types/components/sidePanel/WorkspacePanel.d.ts.map +1 -1
  150. package/lib/types/components/sidePanel/WorkspacePanel.js +19 -7
  151. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +7 -0
  152. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
  153. package/lib/types/components/sidePanel/btw/BtwComposer.js +16 -0
  154. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
  155. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +8 -1
  156. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
  157. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
  158. package/lib/types/components/sidePanel/btw/BtwThreadScene.js +8 -1
  159. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
  160. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
  161. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
  162. package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
  163. package/lib/types/components/sidePanel/builtinPanels.js +36 -18
  164. package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
  165. package/lib/types/components/sidePanel/companion/CompanionPanel.js +2 -1
  166. package/lib/types/components/sidePanel/panelMarkdown.d.ts +32 -0
  167. package/lib/types/components/sidePanel/panelMarkdown.d.ts.map +1 -0
  168. package/lib/types/components/sidePanel/panelMarkdown.js +45 -0
  169. package/lib/types/components/sidePanel/pluginPanelAdapter.d.ts.map +1 -1
  170. package/lib/types/components/sidePanel/pluginPanelAdapter.js +6 -1
  171. package/lib/types/components/sidePanel/subagentFailureRead.d.ts +21 -0
  172. package/lib/types/components/sidePanel/subagentFailureRead.d.ts.map +1 -0
  173. package/lib/types/components/sidePanel/subagentFailureRead.js +66 -0
  174. package/lib/types/components/sidePanel/types.d.ts +2 -0
  175. package/lib/types/components/sidePanel/types.d.ts.map +1 -1
  176. package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
  177. package/lib/types/components/sidePanel/useSidePanel.js +39 -7
  178. package/lib/types/components/trajectory/MiniWake.d.ts +2 -2
  179. package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
  180. package/lib/types/components/trajectory/MiniWake.js +7 -3
  181. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
  182. package/lib/types/components/workspaces/HomeWorkspaceRow.js +4 -7
  183. package/lib/types/dsh-adapter/backend/session.d.ts +7 -1
  184. package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
  185. package/lib/types/dsh-adapter/backend/session.js +62 -6
  186. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  187. package/lib/types/dsh-adapter/backend/translate.js +18 -4
  188. package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
  189. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
  190. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
  191. package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
  192. package/lib/types/dsh-adapter/channel/binding-events.d.ts +5 -1
  193. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
  194. package/lib/types/dsh-adapter/channel/binding-events.js +18 -1
  195. package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
  196. package/lib/types/dsh-adapter/channel/command-completions.js +6 -8
  197. package/lib/types/dsh-adapter/channel/composer-images.d.ts +11 -1
  198. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
  199. package/lib/types/dsh-adapter/channel/composer-images.js +121 -113
  200. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
  201. package/lib/types/dsh-adapter/channel/composer-mentions.js +38 -17
  202. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +1 -1
  203. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
  204. package/lib/types/dsh-adapter/channel/context-bookkeeping.js +9 -5
  205. package/lib/types/dsh-adapter/channel/core/actions.d.ts +1 -1
  206. package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -1
  207. package/lib/types/dsh-adapter/channel/core/actions.js +23 -2
  208. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +10 -1
  209. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
  210. package/lib/types/dsh-adapter/channel/core/binding-feed.js +48 -3
  211. package/lib/types/dsh-adapter/channel/core/compose.d.ts +5 -2
  212. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
  213. package/lib/types/dsh-adapter/channel/core/compose.js +7 -0
  214. package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
  215. package/lib/types/dsh-adapter/channel/core/files.js +2 -1
  216. package/lib/types/dsh-adapter/channel/core/host.d.ts +14 -10
  217. package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -1
  218. package/lib/types/dsh-adapter/channel/core/host.js +192 -13
  219. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +1 -0
  220. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
  221. package/lib/types/dsh-adapter/channel/core/local-actions.js +32 -3
  222. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  223. package/lib/types/dsh-adapter/channel/extensions.js +31 -5
  224. package/lib/types/dsh-adapter/channel/input-actions.d.ts +2 -2
  225. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
  226. package/lib/types/dsh-adapter/channel/input-actions.js +34 -0
  227. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +5 -2
  228. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
  229. package/lib/types/dsh-adapter/channel/input-delivery.js +31 -4
  230. package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
  231. package/lib/types/dsh-adapter/channel/mentions.js +21 -7
  232. package/lib/types/dsh-adapter/channel/model-actions.d.ts +1 -1
  233. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
  234. package/lib/types/dsh-adapter/channel/model-actions.js +7 -1
  235. package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
  236. package/lib/types/dsh-adapter/channel/model-selection.js +6 -4
  237. package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
  238. package/lib/types/dsh-adapter/channel/paths.js +11 -9
  239. package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
  240. package/lib/types/dsh-adapter/channel/session-fork.js +1 -0
  241. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
  242. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
  243. package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
  244. package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
  245. package/lib/types/dsh-adapter/channel/session-metadata.js +15 -2
  246. package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
  247. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
  248. package/lib/types/dsh-adapter/channel/session-reset.js +7 -1
  249. package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
  250. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
  251. package/lib/types/dsh-adapter/channel/session-resume.js +56 -36
  252. package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
  253. package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
  254. package/lib/types/dsh-adapter/channel/session-rewind.js +3 -1
  255. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
  256. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
  257. package/lib/types/dsh-adapter/channel/session-tree-actions.js +3 -1
  258. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  259. package/lib/types/dsh-adapter/channel/settings-host.js +10 -3
  260. package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
  261. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
  262. package/lib/types/dsh-adapter/channel/state.js +2 -2
  263. package/lib/types/dsh-adapter/channel/types.d.ts +13 -1
  264. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  265. package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -3
  266. package/lib/types/dsh-adapter/compat/liveSession.js +3 -3
  267. package/lib/types/dsh-adapter/compat/sessionLog.d.ts +1 -1
  268. package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
  269. package/lib/types/dsh-adapter/compat/sessionLog.js +17 -1
  270. package/lib/types/dsh-adapter/contract.d.ts +7 -5
  271. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  272. package/lib/types/dsh-adapter/contract.js +10 -5
  273. package/lib/types/dsh-adapter/effect-ledger.d.ts +1 -1
  274. package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
  275. package/lib/types/dsh-adapter/effect-ledger.js +1 -0
  276. package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
  277. package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
  278. package/lib/types/dsh-adapter/experimental-bundles.d.ts +29 -0
  279. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
  280. package/lib/types/dsh-adapter/experimental-bundles.js +15 -0
  281. package/lib/types/dsh-adapter/grant-file.d.ts +70 -0
  282. package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
  283. package/lib/types/dsh-adapter/grant-file.js +178 -0
  284. package/lib/types/dsh-adapter/host-access.d.ts +4 -0
  285. package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
  286. package/lib/types/dsh-adapter/host-access.js +54 -4
  287. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  288. package/lib/types/dsh-adapter/host-contract.js +2 -2
  289. package/lib/types/dsh-adapter/host-dsh.js +3 -3
  290. package/lib/types/dsh-adapter/index.d.ts +8 -4
  291. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  292. package/lib/types/dsh-adapter/index.js +17 -12
  293. package/lib/types/dsh-adapter/panels.d.ts +28 -8
  294. package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
  295. package/lib/types/dsh-adapter/panels.js +11 -56
  296. package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
  297. package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
  298. package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
  299. package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
  300. package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
  301. package/lib/types/dsh-adapter/plugin-install.js +160 -13
  302. package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
  303. package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
  304. package/lib/types/dsh-adapter/plugin-manage.js +240 -51
  305. package/lib/types/dsh-adapter/plugin.d.ts +81 -0
  306. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  307. package/lib/types/dsh-adapter/plugin.js +378 -84
  308. package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
  309. package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
  310. package/lib/types/dsh-adapter/plugins-info.js +99 -31
  311. package/lib/types/dsh-adapter/presets.d.ts +19 -6
  312. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  313. package/lib/types/dsh-adapter/presets.js +69 -12
  314. package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
  315. package/lib/types/dsh-adapter/process-exit.js +1 -1
  316. package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
  317. package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
  318. package/lib/types/dsh-adapter/providerWizard.js +11 -5
  319. package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
  320. package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
  321. package/lib/types/dsh-adapter/row-attachment.js +29 -0
  322. package/lib/types/dsh-adapter/session-tools.d.ts +34 -0
  323. package/lib/types/dsh-adapter/session-tools.d.ts.map +1 -0
  324. package/lib/types/dsh-adapter/session-tools.js +39 -0
  325. package/lib/types/dsh-adapter/settings-sections.d.ts +18 -1
  326. package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
  327. package/lib/types/dsh-adapter/settings-sections.js +73 -0
  328. package/lib/types/dsh-adapter/status.d.ts +88 -1
  329. package/lib/types/dsh-adapter/status.d.ts.map +1 -1
  330. package/lib/types/dsh-adapter/status.js +318 -3
  331. package/lib/types/dsh-adapter/team-mode.d.ts +42 -33
  332. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  333. package/lib/types/dsh-adapter/team-mode.js +76 -112
  334. package/lib/types/dsh-adapter/worktree-tool.d.ts +27 -0
  335. package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
  336. package/lib/types/dsh-adapter/worktree-tool.js +87 -0
  337. package/lib/types/extensions.d.ts +1 -1
  338. package/lib/types/extensions.d.ts.map +1 -1
  339. package/lib/types/force-production-react.js +3 -3
  340. package/lib/types/heldInputs.d.ts +36 -0
  341. package/lib/types/heldInputs.d.ts.map +1 -0
  342. package/lib/types/heldInputs.js +173 -0
  343. package/lib/types/i18n.d.ts +543 -73
  344. package/lib/types/i18n.d.ts.map +1 -1
  345. package/lib/types/i18n.js +265 -46
  346. package/lib/types/ink/colorize.d.ts +7 -1
  347. package/lib/types/ink/colorize.d.ts.map +1 -1
  348. package/lib/types/ink/colorize.js +29 -8
  349. package/lib/types/ink/components/App.d.ts +2 -1
  350. package/lib/types/ink/components/App.d.ts.map +1 -1
  351. package/lib/types/ink/components/App.js +10 -3
  352. package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
  353. package/lib/types/ink/components/ScrollBox.js +1 -0
  354. package/lib/types/ink/dom.d.ts +1 -0
  355. package/lib/types/ink/dom.d.ts.map +1 -1
  356. package/lib/types/ink/hooks/use-program-status.d.ts +78 -0
  357. package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -0
  358. package/lib/types/ink/hooks/use-program-status.js +96 -0
  359. package/lib/types/ink/ink.d.ts +13 -4
  360. package/lib/types/ink/ink.d.ts.map +1 -1
  361. package/lib/types/ink/ink.js +119 -25
  362. package/lib/types/ink/output.d.ts +17 -2
  363. package/lib/types/ink/output.d.ts.map +1 -1
  364. package/lib/types/ink/output.js +85 -2
  365. package/lib/types/ink/parse-keypress.d.ts +1 -0
  366. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  367. package/lib/types/ink/parse-keypress.js +5 -4
  368. package/lib/types/ink/render-node-to-output.d.ts +2 -0
  369. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  370. package/lib/types/ink/render-node-to-output.js +79 -10
  371. package/lib/types/ink/root.d.ts +8 -0
  372. package/lib/types/ink/root.d.ts.map +1 -1
  373. package/lib/types/ink/root.js +12 -3
  374. package/lib/types/ink/screen.d.ts +11 -0
  375. package/lib/types/ink/screen.d.ts.map +1 -1
  376. package/lib/types/ink/screen.js +44 -0
  377. package/lib/types/ink/selection.d.ts +7 -2
  378. package/lib/types/ink/selection.d.ts.map +1 -1
  379. package/lib/types/ink/selection.js +187 -44
  380. package/lib/types/ink/shutdown-input.d.ts +15 -0
  381. package/lib/types/ink/shutdown-input.d.ts.map +1 -0
  382. package/lib/types/ink/shutdown-input.js +28 -0
  383. package/lib/types/ink/sixel-cursor-heal.d.ts +21 -0
  384. package/lib/types/ink/sixel-cursor-heal.d.ts.map +1 -0
  385. package/lib/types/ink/sixel-cursor-heal.js +62 -0
  386. package/lib/types/ink/sixel-graphics.d.ts +6 -0
  387. package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
  388. package/lib/types/ink/sixel-graphics.js +18 -0
  389. package/lib/types/ink/styles.d.ts +8 -1
  390. package/lib/types/ink/styles.d.ts.map +1 -1
  391. package/lib/types/ink/terminal-notification-windows.d.ts +195 -0
  392. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -0
  393. package/lib/types/ink/terminal-notification-windows.js +433 -0
  394. package/lib/types/ink/terminal-notification.d.ts +3 -1
  395. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  396. package/lib/types/ink/terminal-notification.js +4 -1
  397. package/lib/types/ink/terminal-querier.d.ts +9 -1
  398. package/lib/types/ink/terminal-querier.d.ts.map +1 -1
  399. package/lib/types/ink/terminal-querier.js +32 -1
  400. package/lib/types/ink/terminal.d.ts +23 -2
  401. package/lib/types/ink/terminal.d.ts.map +1 -1
  402. package/lib/types/ink/terminal.js +32 -2
  403. package/lib/types/ink/termio/osc.d.ts +2 -1
  404. package/lib/types/ink/termio/osc.d.ts.map +1 -1
  405. package/lib/types/ink/termio/osc.js +37 -8
  406. package/lib/types/ink/termio/osc7501.d.ts +102 -0
  407. package/lib/types/ink/termio/osc7501.d.ts.map +1 -0
  408. package/lib/types/ink/termio/osc7501.js +229 -0
  409. package/lib/types/ink/termio/tokenize.js +5 -7
  410. package/lib/types/onboardingDraft.d.ts +143 -0
  411. package/lib/types/onboardingDraft.d.ts.map +1 -0
  412. package/lib/types/onboardingDraft.js +71 -0
  413. package/lib/types/panels.d.ts +1 -1
  414. package/lib/types/panels.d.ts.map +1 -1
  415. package/lib/types/screens/AgentTranscriptScene.d.ts +3 -1
  416. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  417. package/lib/types/screens/AgentTranscriptScene.js +5 -1
  418. package/lib/types/screens/Chat.d.ts +6 -6
  419. package/lib/types/screens/Chat.d.ts.map +1 -1
  420. package/lib/types/screens/Chat.js +394 -141
  421. package/lib/types/screens/Launchpad.d.ts +8 -2
  422. package/lib/types/screens/Launchpad.d.ts.map +1 -1
  423. package/lib/types/screens/Launchpad.js +32 -12
  424. package/lib/types/screens/Onboarding.d.ts +22 -3
  425. package/lib/types/screens/Onboarding.d.ts.map +1 -1
  426. package/lib/types/screens/Onboarding.js +606 -36
  427. package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
  428. package/lib/types/screens/SessionSupervisor.js +31 -21
  429. package/lib/types/screens/Settings.d.ts +5 -1
  430. package/lib/types/screens/Settings.d.ts.map +1 -1
  431. package/lib/types/screens/Settings.js +528 -51
  432. package/lib/types/screens/StatusLine.d.ts +9 -3
  433. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  434. package/lib/types/screens/StatusLine.js +91 -15
  435. package/lib/types/screens/StatusMetrics.d.ts +2 -11
  436. package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
  437. package/lib/types/screens/StatusMetrics.js +20 -14
  438. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
  439. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +1 -1
  440. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +1 -1
  441. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
  442. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +13 -21
  443. package/lib/types/sessionMounts.d.ts +14 -0
  444. package/lib/types/sessionMounts.d.ts.map +1 -1
  445. package/lib/types/sessionMounts.js +20 -9
  446. package/lib/types/sessions/format.d.ts +39 -0
  447. package/lib/types/sessions/format.d.ts.map +1 -1
  448. package/lib/types/sessions/format.js +83 -0
  449. package/lib/types/sessions/resumeFailure.d.ts +4 -0
  450. package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
  451. package/lib/types/sessions/resumeFailure.js +12 -4
  452. package/lib/types/sessions/workspaceCounts.d.ts +6 -0
  453. package/lib/types/sessions/workspaceCounts.d.ts.map +1 -0
  454. package/lib/types/sessions/workspaceCounts.js +24 -0
  455. package/lib/types/settings/definitions.d.ts +24 -0
  456. package/lib/types/settings/definitions.d.ts.map +1 -1
  457. package/lib/types/settings/definitions.js +40 -15
  458. package/lib/types/tips.js +2 -2
  459. package/lib/types/tuiDisplayPrefs.d.ts +113 -5
  460. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  461. package/lib/types/tuiDisplayPrefs.js +276 -14
  462. package/lib/types/update.d.ts +15 -14
  463. package/lib/types/update.d.ts.map +1 -1
  464. package/lib/types/update.js +163 -115
  465. package/lib/types/updateProcess.d.ts +28 -0
  466. package/lib/types/updateProcess.d.ts.map +1 -0
  467. package/lib/types/updateProcess.js +135 -0
  468. package/lib/types/utils/inputWordBoundary.d.ts +5 -0
  469. package/lib/types/utils/inputWordBoundary.d.ts.map +1 -0
  470. package/lib/types/utils/inputWordBoundary.js +18 -0
  471. package/lib/types/utils/keymap.d.ts +1 -1
  472. package/lib/types/utils/keymap.d.ts.map +1 -1
  473. package/lib/types/utils/keymap.js +6 -1
  474. package/lib/types/utils/paths.d.ts +15 -0
  475. package/lib/types/utils/paths.d.ts.map +1 -1
  476. package/lib/types/utils/paths.js +25 -0
  477. package/lib/types/windowsInstaller.d.ts +4 -0
  478. package/lib/types/windowsInstaller.d.ts.map +1 -0
  479. package/lib/types/windowsInstaller.js +237 -0
  480. package/locale/en.json +6 -0
  481. package/locale/zh.json +6 -0
  482. package/package.json +130 -111
  483. package/presets/liangshen/custom-bash.mjs +13 -1
  484. package/presets/liangshen/instruction-hint.mjs +4 -1
  485. package/presets/liangshen/skill-search.mjs +14 -2
  486. package/presets/winbash.mjs +16 -4
  487. package/tui-profile/feed/README.md +17 -8
  488. package/tui-profile/feed/first-party.json +1 -1
package/lib/types/i18n.js CHANGED
@@ -137,6 +137,8 @@ const dict = {
137
137
  'export-model': { zh: '- 模型: {{model}}', en: '- Model: {{model}}' },
138
138
  'export-session': { zh: '- 会话: {{id}}', en: '- Session: {{id}}' },
139
139
  'export-dir': { zh: '- 目录: {{cwd}}', en: '- Directory: {{cwd}}' },
140
+ 'mentions-image-adjusted': { zh: '@{{path}} 已适配:{{detail}}', en: '@{{path}} adapted: {{detail}}' },
141
+ 'mentions-image-failed': { zh: '@{{path}} 无法附加:{{reason}}', en: '@{{path}} could not be attached: {{reason}}' },
140
142
  'mentions-attached': { zh: '已附加 {{count}} 个文件引用', en: { one: 'Attached {{count}} file reference', other: 'Attached {{count}} file references' } },
141
143
  'mentions-missing': { zh: '未找到引用: {{paths}}', en: 'References not found: {{paths}}' },
142
144
  // Agent Teams: the tag after the sender of a peer message bubble.
@@ -175,6 +177,10 @@ const dict = {
175
177
  'input-images-staged': { zh: '已附加 {{count}} 张图片', en: { one: 'Attached {{count}} image', other: 'Attached {{count}} images' } },
176
178
  'input-images-staged-adapted': { zh: '已附加 {{count}} 张图片 · {{adapted}} 张已适配', en: { one: 'Attached {{count}} image · {{adapted}} adapted', other: 'Attached {{count}} images · {{adapted}} adapted' } },
177
179
  'send-failed': { zh: '发送失败 · {{err}}', en: 'Send failed · {{err}}' },
180
+ 'input-not-accepted': { zh: '后端没有接受这条消息,请重试或检查会话状态', en: 'The backend did not accept this message; retry or check the session state' },
181
+ 'input-refused-held': { zh: '{{reason}}。消息已暂存:按 ↑ 编辑', en: '{{reason}}. The message is held: ↑ to edit' },
182
+ 'session-reattached': { zh: '会话服务已恢复,已重新打开这个会话', en: 'The session services are back; this session was reopened' },
183
+ 'input-session-disposed': { zh: '这个会话已经结束,/new 开新会话或 /restart 恢复该会话', en: 'This session has ended; /new starts a new one, /restart resumes it' },
178
184
  // ── agent team: 用户发给子代理的消息,由父代理转发(模型可见) ──────
179
185
  'agent-message-native-envelope': { zh: '请通过 {{tool}} 将下面的消息发送给子代理 {{name}}(id: {{id}})。不要代替子代理回复。\n\n{{text}}', en: 'Use {{tool}} to send the following message to subagent {{name}} (id: {{id}}). Do not answer on behalf of the subagent.\n\n{{text}}' },
180
186
  'agent-message-envelope': {
@@ -215,6 +221,8 @@ const dict = {
215
221
  'status-rate-limit': { zh: '订阅用量 {{usage}}', en: 'Subscription usage {{usage}}' },
216
222
  'interrupt-failed': { zh: '打断请求失败:排队消息没有撤回,仍会在下一回合发送;已取消暂存,避免重复发送', en: 'The interrupt request failed: the queued messages were not withdrawn and will still run next turn; they are no longer held, so nothing is sent twice' },
217
223
  'interrupt-unconfirmed': { zh: '无法确认排队消息已撤回:它们仍会在下一回合发送,不再暂存', en: 'Could not confirm the queued messages were withdrawn: they will still run next turn and are no longer held' },
224
+ 'interrupt-pending': { zh: '中断请求已发出,正在等待回合停止……', en: 'Interrupt requested; waiting for the turn to stop…' },
225
+ 'interrupt-stuck': { zh: '中断迟迟没有生效(工具可能没有响应中断)。可用 /restart:它会中断当前回合并尝试重启;若进程无法正常收尾,退出后会打印恢复本会话的命令,并注明排队输入保存在哪里。', en: 'The interrupt is not taking effect (a tool may be ignoring it). Use /restart: it interrupts this turn and tries to restart; if the process cannot shut down cleanly it exits and prints the command that resumes this session and where the queued input is kept.' },
218
226
  'cmd-unavailable-backend': { zh: '/{{cmd}} 在 {{backend}} 内核下不可用', en: '/{{cmd}} is not available on the {{backend}} kernel' },
219
227
  'export-user-section': { zh: '## 用户', en: '## User' },
220
228
  'export-thinking-section': { zh: '## 思考', en: '## Thinking' },
@@ -350,8 +358,17 @@ const dict = {
350
358
  'resume-session-occupied': { zh: '该会话正被其他 TUI 终端占用(进程 {{pid}}),无法进入', en: 'Another TUI terminal holds this session (pid {{pid}}); cannot enter' },
351
359
  'resume-mount-busy': { zh: '无法确认该会话是否被其他终端占用(占用检查正忙),请稍后重试', en: 'Could not confirm whether another terminal holds this session (the occupancy check is busy); retry in a moment' },
352
360
  'resume-mount-unavailable': { zh: '无法验证该会话的占用状态 · {{detail}}', en: 'Could not verify this session\'s occupancy · {{detail}}' },
361
+ // 损坏账本的出口:只在拒绝句自称 `damaged` 时追加,所以它必须读起来像"针对那个文件"的
362
+ // 建议,而不是通用下一步。
363
+ //
364
+ // 长度由屏幕决定,不由作者决定:通知上限三行,而 120 列终端上实际换行宽度只有 80 列,
365
+ // 再长就会被裁。因此动作(删除 / remove)与前提(其他 / no other)必须挺过裁切,只有
366
+ // 末尾"会自动重建"这句安心话可以让位;`.lock` 同理不再在这里点名 —— 屏幕上放不下,
367
+ // 点名它的是 CLI 的 `--resume` 拒绝句。
368
+ 'resume-mount-ledger-repair': { zh: '该文件已损坏:无其他 dsh-tui 运行时删除它,会自动重建', en: 'Damaged: remove it with no other TUI running (it rebuilds)' },
353
369
  'session-mount-occupied-short': { zh: '占用 pid {{pid}}', en: 'held by pid {{pid}}' },
354
370
  'resume-failed': { zh: '恢复失败 · {{err}}', en: 'Resume failed · {{err}}' },
371
+ 'resume-owned-elsewhere': { zh: '另一个 DSH 进程正在写入此会话。请先在该进程(如 dsh web)释放会话,再重试恢复;不要删除会话或锁文件。', en: 'Another DSH process is writing this session. Release it in that process (for example, dsh web), then retry resume. Do not delete the session or lock files.' },
355
372
  'resume-attach-failed': { zh: '已恢复会话,但工作区挂载失败 · {{err}}', en: 'Session resumed, but workspace attachment failed · {{err}}' },
356
373
  'resume-session-changed': { zh: '会话已切换,恢复已放弃', en: 'The session changed; the resume was dropped' },
357
374
  'new-session-while-working': { zh: '回合运行中,无法新建会话', en: 'Cannot start a new session while a turn is running' },
@@ -435,6 +452,7 @@ const dict = {
435
452
  // ── questions.ts ─────────────────────────────────────────────────────
436
453
  'questionnaire-answered': { zh: '📋 问卷已答 · {{total}} 题', en: '📋 Questionnaire answered · {{total}} questions' },
437
454
  // ── utils/loaded-context.ts ─────────────────────────────────────────
455
+ 'command-output-truncated': { zh: '…(命令输出已截断:最多 200 行、65536 个 UTF-16 码元、每行 4000 显示单元)', en: '… (command output truncated: 200 lines, 65536 UTF-16 code units, 4000 cells per line)' },
438
456
  'context-truncated': { zh: '…(已截断)', en: '… (truncated)' },
439
457
  'context-sections': { zh: '系统提示词 {{n}} 段', en: 'System prompt {{n}} sections' },
440
458
  'context-files': { zh: '工作区指令 ×{{n}}', en: 'Workspace instructions ×{{n}}' },
@@ -494,6 +512,9 @@ const dict = {
494
512
  'status-model': { zh: '模型 {{model}}', en: 'Model {{model}}' },
495
513
  'status-working': { zh: '工作中', en: 'working' },
496
514
  'status-idle': { zh: '空闲', en: 'idle' },
515
+ 'program-status-approval': { zh: '等待授权:{{tool}}', en: 'Approval needed: {{tool}}' },
516
+ 'program-status-question': { zh: '等待回答:{{question}}', en: 'Waiting for your answer: {{question}}' },
517
+ 'program-status-dialog': { zh: '等待输入:{{title}}', en: 'Waiting for input: {{title}}' },
497
518
  'status-state': { zh: '状态 {{state}}', en: 'Status {{state}}' },
498
519
  'status-session': { zh: '会话 {{id}}', en: 'Session {{id}}' },
499
520
  'status-dir': { zh: '目录 {{cwd}}', en: 'Directory {{cwd}}' },
@@ -532,7 +553,6 @@ const dict = {
532
553
  'home-workspace-missing': { zh: '目录不存在', en: 'directory missing' },
533
554
  'home-no-workspaces': { zh: '还没有工作区 · 在任意目录启动 dsh-tui 即可自动加入', en: 'No workspaces yet · start dsh-tui in a directory to add it' },
534
555
  'home-sessions-title': { zh: '{{name}} 的会话', en: 'Sessions in {{name}}' },
535
- 'home-sessions-count': { zh: '{{n}} 个会话', en: { one: '{{n}} session', other: '{{n}} sessions' } },
536
556
  'home-no-sessions': { zh: '这个工作区还没有会话 · Enter 新建一个', en: 'No sessions in this workspace yet · Enter starts one' },
537
557
  'home-sessions-loading': { zh: '正在读取会话…', en: 'Loading sessions…' },
538
558
  'home-sessions-refreshing': { zh: '后台刷新中', en: 'refreshing' },
@@ -740,6 +760,7 @@ const dict = {
740
760
  'reload-kind-activity': { zh: '活动指示', en: 'activity' },
741
761
  // ── /restart (process restart with session resume) ────────────────────
742
762
  'restart-starting': { zh: '正在重启 dsh-tui,完成后自动恢复当前会话……', en: 'Restarting dsh-tui. The session resumes when it comes back…' },
763
+ 'restart-during-turn': { zh: '当前回合仍在运行,正在中断重启;排队输入会在重启后暂存(仅保留文字,图片不保留),不会自动发送。若进程无法正常收尾,退出后会打印恢复本会话的命令,并注明排队输入保存在哪里。', en: 'The current turn is still running; interrupting and restarting. Queued input is held after the restart (text only, images are not kept), not sent automatically. If the process cannot shut down cleanly it exits and prints the command that resumes this session and where the queued input is kept.' },
743
764
  'restart-unavailable': { zh: '当前运行方式不支持进程内重启(未挂载重启通道)。', en: 'Restart is unavailable in this launch mode (no restart channel mounted).' },
744
765
  'streaming-folded': { zh: '…(前 {{count}} 字符流式期间已折叠,落定后完整显示)', en: '…(first {{count}} chars folded while streaming; full text renders once the turn settles)' },
745
766
  'mermaid-too-wide': { zh: '(图需要 {{width}} 列,当前宽度不足,显示源码)', en: '(diagram needs {{width}} columns; showing the source)' },
@@ -776,6 +797,7 @@ const dict = {
776
797
  'btw-fullscreen-title': { zh: '侧问线程', en: 'Side thread' },
777
798
  'btw-scene-hints': { zh: 'Enter 追问 · ↑/↓ 选择 · n 新话题 · s 送聊天 · c 复制 · Esc 返回', en: 'Enter ask · ↑/↓ select · n new · s to chat · c copy · Esc back' },
778
799
  'btw-panel-unavailable': { zh: 'btw 面板未启用(/settings → dsh-tui.sidePanel.panels)', en: 'btw panel not enabled (/settings → dsh-tui.sidePanel.panels)' },
800
+ 'btw-surface-busy': { zh: '侧问已发出,但当前界面挡住了它(关掉浮层后再 /btw)', en: 'Side question is hidden by the current screen — close it, then rerun /btw' },
779
801
  'btw-output-unavailable': { zh: '没有收到回答', en: 'No answer received' },
780
802
  'btw-answering': { zh: '思考中…', en: 'Answering…' },
781
803
  'btw-hint-loading': { zh: 'Esc 取消', en: 'Esc cancel' },
@@ -973,11 +995,13 @@ const dict = {
973
995
  'input-sent-after-turn': { zh: '已发送,当前回合结束后处理', en: 'Sent, processed after the current turn' },
974
996
  'input-injected': { zh: '已从编辑器发送', en: 'Sent from editor' },
975
997
  'input-interrupted-next': { zh: '已插话 · 下一步立即处理', en: 'Interrupted · processed next' },
998
+ 'input-steer-pending': { zh: '已插话;中断尚未生效,等待回合恢复后再处理', en: 'Steered; the interrupt has not taken effect — held until the turn can advance' },
976
999
  'input-queued-after-turn': { zh: '已排队 · 回合结束后处理', en: 'Queued · processed after the turn' },
977
1000
  'input-cannot-retract': { zh: '无法撤回:消息可能已被处理,或当前版本不支持', en: 'Cannot retract: the message may already be processed, or this version doesn\'t support it' },
978
1001
  'input-retracted': { zh: '已撤回,可编辑后重新发送', en: 'Retracted, editable and resendable' },
979
1002
  'input-empty': { zh: '输入为空,没有可发送的内容', en: 'Empty input, nothing to send' },
980
1003
  'input-interrupt-immediate': { zh: '已打断当前回合,正在立即处理', en: 'Interrupted current turn, processing immediately' },
1004
+ 'input-interrupt-deferred': { zh: '中断尚未生效:消息已排队,回合结束后处理;若持续卡住,可用 /restart', en: 'The interrupt has not taken effect yet: messages are queued until the turn ends. If it stays stuck, use /restart' },
981
1005
  'input-clipboard-empty': { zh: '剪贴板为空', en: 'Clipboard is empty' },
982
1006
  'input-editor-unavailable': { zh: '错误:未配置编辑器。请设置 $VISUAL 或 $EDITOR 环境变量。', en: 'Error: No editor configured. Set $VISUAL or $EDITOR environment variable.' },
983
1007
  'input-editor-failed': { zh: '外部编辑器失败:{{name}}', en: 'External editor failed: {{name}}' },
@@ -995,10 +1019,18 @@ const dict = {
995
1019
  'input-pending-steer-label': { zh: '插话 · 下一步送达', en: 'Steer · delivered next' },
996
1020
  'input-pending-queue-label': { zh: '排队 · 回合结束后送达', en: 'Queued · delivered after the turn' },
997
1021
  'input-pending-actions-hint': { zh: '撤回 · Esc 打断并暂存排队消息', en: 'Retract · Esc interrupts and holds the queue' },
1022
+ 'input-pending-actions-hint-disposed': { zh: '撤回', en: 'Retract' },
998
1023
  'input-pending-dock-label': { zh: '已暂存 · 打断后保留,不会自动发送', en: 'Held · kept after the interrupt, not sent automatically' },
1024
+ 'input-pending-orphan-label': { zh: '已暂存 · 未送达,不会自动发送', en: 'Held · not delivered, not sent automatically' },
999
1025
  'input-pending-dock-hint': { zh: '按 ↑ 编辑排队消息,⏎ 立即发送', en: 'Press ↑ to edit queued messages, ⏎ to send now' },
1026
+ 'input-pending-dock-hint-disposed': { zh: '会话已结束:/new 或 /restart 后,⏎ 发送暂存消息,↑ 编辑', en: 'Session ended: after /new or /restart, ⏎ sends the held messages and ↑ edits them' },
1027
+ 'input-pending-dock-hint-working': { zh: '按 ↑ 编辑排队消息,回合结束后 ⏎ 发送', en: 'Press ↑ to edit queued messages, ⏎ sends after the turn' },
1000
1028
  'input-dock-sent': { zh: '已发送 {{n}} 条暂存消息', en: 'Sent {{n}} held message(s)' },
1001
1029
  'input-dock-swapped': { zh: '已交换:草稿暂存,所点消息回到输入框(Ctrl+Z 换回)', en: 'Swapped: the draft is held and the picked message is back in the input (Ctrl+Z swaps back)' },
1030
+ // No ⏎ here: whether ⏎ sends now or only after /new depends on the session,
1031
+ // and the dock hint below says which (#1651).
1032
+ 'input-orphans-held': { zh: '{{count}} 条排队消息没有送达,已暂存:按 ↑ 编辑', en: { one: '{{count}} queued message was not delivered and is held: ↑ to edit', other: '{{count}} queued messages were not delivered and are held: ↑ to edit' } },
1033
+ 'input-dock-session-disposed': { zh: '会话已结束,暂存消息仍保留;/new 开新会话或 /restart 恢复该会话后按 ⏎ 发送', en: 'This session has ended; held messages are kept. After /new or /restart, ⏎ sends them' },
1002
1034
  'input-dock-confirming': { zh: '{{n}} 条暂存消息还在等打断完成,稍后再发送或编辑', en: '{{n}} held message(s) are waiting for the interrupt to finish; send or edit again in a moment' },
1003
1035
  // U+30FB (not U+00B7): the separator participates in the folded-chip
1004
1036
  // width arithmetic; U+00B7 is EA-ambiguous and paints 2 cells on CJK
@@ -1055,6 +1087,7 @@ const dict = {
1055
1087
  'tool-live-omitted': { zh: '… 已省略 {{count}} 行', en: { one: '… {{count}} line omitted', other: '… {{count}} lines omitted' } },
1056
1088
  // 搜索结果截断行(search 卡 paths 形态):
1057
1089
  'search-results-total': { zh: '…(共 {{n}} 条)', en: '… ({{n}} total)' },
1090
+ 'worktree-result-base': { zh: '基于 {{from}}({{commit}})', en: 'from {{from}} ({{commit}})' },
1058
1091
  // 按行折叠的溢出提示:卡片正文行预算(capLines)、终端卡多行命令折叠
1059
1092
  // (foldTerminalCommand)、分屏 diff 隐藏行(SplitDiffView)。按字符折叠
1060
1093
  // 的行内标记见 long-line-folded。
@@ -1066,6 +1099,9 @@ const dict = {
1066
1099
  'tool-card-source-truncated': { zh: '原始数据已折叠:以上是预览,全文保留在会话日志里', en: 'Source folded: the above is a preview; the session log keeps the full text' },
1067
1100
  'tool-card-full-unavailable': { zh: '以上是整理后的视图,没有保留可展开的原始全文', en: 'Formatted view above; no raw full text was kept to expand' },
1068
1101
  'tool-card-window-shown': { zh: '… 只显示前 {{shown}}/{{total}} 行(全文仍保留)', en: '… showing the first {{shown}}/{{total}} lines (the full text is kept)' },
1102
+ // 双栏展开态的窗口按「换行后的屏幕行」计(一条源行可能占多行),与上面按源行计
1103
+ // 的 unified 卡不是同一个单位,故单独一条文案,避免「N/M 行」被读成源行数。
1104
+ 'tool-card-window-shown-wrapped': { zh: '… 只显示前 {{shown}}/{{total}} 个换行后的行', en: '… showing the first {{shown}}/{{total}} wrapped rows' },
1069
1105
  // 单回合用量行(/tokens、/cost、底栏 hover)。缓存段只在后端上报了缓存
1070
1106
  // token 时显示,未上报不当作 0。
1071
1107
  'usage-turn-summary': { zh: '本轮', en: 'turn' },
@@ -1085,8 +1121,6 @@ const dict = {
1085
1121
  'sugg-more-below': { zh: '↓{{n}}', en: '↓{{n}}' },
1086
1122
  // 二级补全子项描述(/lang /theme /effort /preset /activity 的 children)
1087
1123
  'sugg-status-desc': { zh: '显示当前选择', en: 'Show the current choice' },
1088
- 'sugg-team-on-desc': { zh: '开启 Agent Teams(启用团队 bundle)', en: 'Switch Agent Teams on (enable the team bundle)' },
1089
- 'sugg-team-off-desc': { zh: '关闭 Agent Teams(停用团队 bundle)', en: 'Switch Agent Teams off (disable the team bundle)' },
1090
1124
  'sugg-lang-zh-desc': { zh: '切换界面语言到中文', en: 'Switch the UI language to Chinese' },
1091
1125
  'sugg-lang-en-desc': { zh: '切换界面语言到英文', en: 'Switch the UI language to English' },
1092
1126
  'sugg-theme-auto-desc': { zh: '跟随终端背景自动切换', en: 'Follow the terminal background' },
@@ -1120,11 +1154,12 @@ const dict = {
1120
1154
  'help-clear-input': { zh: 'esc 清空输入', en: 'esc to clear input' },
1121
1155
  'help-history-nav': { zh: '↑/↓ 历史', en: '↑/↓ for history' },
1122
1156
  'help-move-cursor': { zh: '←/→ 移动光标', en: '←/→ to move cursor' },
1123
- 'help-word-jumps': { zh: '{{mod}}←/→ 按词跳转', en: '{{mod}}←/→ for word jumps' },
1157
+ 'help-word-jumps': { zh: '{{mod}}←/→ 或 Alt/Option+←/→ 按词跳转', en: '{{mod}}←/→ or Alt/Option+←/→ for word jumps' },
1124
1158
  'help-complete-command': { zh: 'tab 补全命令', en: 'tab to complete command' },
1125
1159
  'help-cycle-mode': { zh: 'shift+tab 切换模式', en: 'shift+tab to cycle mode' },
1126
1160
  'help-open-editor': { zh: '{{key}} 打开编辑器', en: '{{key}} to open editor' },
1127
- 'help-fold-todos': { zh: '{{key}} 折叠待办', en: '{{key}} to fold todos' },
1161
+ 'help-fold-todos': { zh: '{{key}} 运行时折叠/空闲时隐藏待办', en: '{{key}} to fold running / hide idle todos' },
1162
+ 'goal-todo-hide-hint': { zh: '{{key}} 隐藏/恢复', en: '{{key}} to hide/restore' },
1128
1163
  'goal-todo-fold-hint': { zh: '{{key}} 折叠', en: '{{key}} to fold' },
1129
1164
  // ── goal budget and the backend-neutral /goal (src/channel/goal-command.ts)
1130
1165
  'goal-budget-used': { zh: '已用 {{used}} / {{budget}} tokens · {{time}}', en: 'Used {{used}} / {{budget}} tokens · {{time}}' },
@@ -1196,10 +1231,20 @@ const dict = {
1196
1231
  'settings-web-key-changed': { zh: '网页搜索设置已变化,请重新打开设置后输入密钥', en: 'Web search settings changed. Reopen settings and enter the key again.' },
1197
1232
  // /settings 里 sidePanel.panels 的勾选列表。
1198
1233
  'settings-panels-unclaimed': { zh: '暂无面板使用此 id:先保留,等插件注册后生效', en: 'No panel uses this id yet; kept until a plugin registers it' },
1234
+ 'settings-panels-temporary': { zh: '临时面板 #{{n}} · 仅本次运行,不保存', en: 'Temporary panel #{{n}} · this run only, not saved' },
1235
+ 'settings-panels-legacy-anonymous': { zh: '旧匿名地址无法识别,请移除并重新选择面板', en: 'Old anonymous address: remove it and select the panel again' },
1199
1236
  'settings-panels-plugin': { zh: '插件面板({{plugin}})', en: 'Plugin panel ({{plugin}})' },
1200
1237
  'settings-panels-advanced': { zh: '高级:编辑原始面板列表', en: 'Advanced: edit raw panel list' },
1238
+ 'settings-fields-advanced': { zh: '高级:编辑原始字段列表', en: 'Advanced: edit raw field list' },
1239
+ 'settings-fields-unclaimed': { zh: '未认领:先保留,等插件注册后生效', en: 'Unclaimed; kept until a plugin registers it' },
1240
+ 'settings-fields-moved': { zh: '改自 {{slot}}', en: 'moved from {{slot}}' },
1241
+ 'settings-fields-slot-left-tail': { zh: '左组末尾', en: 'Left group tail' },
1242
+ 'settings-fields-slot-right-head': { zh: '右组开头', en: 'Right group head' },
1243
+ 'settings-fields-slot-right-tail': { zh: '右组末尾', en: 'Right group tail' },
1201
1244
  'settings-panels-min-one': { zh: '至少保留一个启用的面板', en: 'Keep at least one panel enabled' },
1245
+ 'settings-page-general': { zh: '常规', en: 'General' },
1202
1246
  'settings-hint-list': { zh: '**Enter** 进入/编辑/切换(改动即保存) · Esc 退出', en: '**Enter** open/edit/toggle (auto-saves) · Esc exit' },
1247
+ 'settings-hint-list-pages': { zh: '**Enter** 进入/编辑/切换(改动即保存) · **Tab** 切换页 · Esc 退出', en: '**Enter** open/edit/toggle (auto-saves) · **Tab** switch page · Esc exit' },
1203
1248
  'settings-hint-group': { zh: '**Enter** 编辑/切换(改动即保存) · Esc 返回', en: '**Enter** edit/toggle (auto-saves) · Esc back' },
1204
1249
  'settings-hint-edit': { zh: '**Enter** 确认并保存 · Esc 取消', en: '**Enter** to confirm & save · Esc to cancel' },
1205
1250
  // ── 会话与工作区列表行:行、计数、筛选、预览 ─────────────────────────
@@ -1235,6 +1280,7 @@ const dict = {
1235
1280
  'hint-rewind-back': { zh: '**Enter** 回退 · Esc 返回', en: '**Enter** to rewind · Esc to back' },
1236
1281
  'statusline-hint-select': { zh: 'esc 返回输入', en: 'esc to return to input' },
1237
1282
  'statusline-hint-working': { zh: 'esc 中断', en: 'esc to interrupt' },
1283
+ 'statusline-hint-interrupting': { zh: '中断中…', en: 'interrupting…' },
1238
1284
  'statusline-hint-shortcuts': { zh: '? 查看快捷键', en: '? for shortcuts' },
1239
1285
  // ── 底栏字段 hover 明细(补充行读出;技术标签 ctx/free/read 等保持不译)──
1240
1286
  'status-detail-session-id': { zh: '会话日志目录与此 id 同名', en: 'the session log directory is named after this id' },
@@ -1306,6 +1352,7 @@ const dict = {
1306
1352
  'ext-decision-pending': { zh: '正在等待插件决定({{event}})…', en: 'Waiting for a plugin decision ({{event}})…' },
1307
1353
  'ext-stale-dropped': { zh: '等待插件期间会话已切换,该条输入已丢弃', en: 'Session switched while a plugin decided — the input was dropped' },
1308
1354
  'ext-shortcut-failed': { zh: '插件快捷键 {{combo}} 执行失败', en: 'Plugin shortcut {{combo}} failed' },
1355
+ 'ext-status-field-failed': { zh: '插件底栏字段 {{key}} 操作失败', en: 'Plugin footer field {{key}} failed' },
1309
1356
  'command-invoke-denied': { zh: '命令调用已被授权文件拒绝(commands.invoke 已撤销)', en: 'Command invocation denied by the grants file (commands.invoke revoked)' },
1310
1357
  'command-invoke-denied-owner': {
1311
1358
  zh: '命令 "/{{name}}" 的调用已被拒绝——注册它的插件 "{{owner}}" 已被撤销 commands.invoke',
@@ -1362,9 +1409,35 @@ const dict = {
1362
1409
  zh: '本 profile 没有额外插件:只有安装自带与 dsh-tui 自身。装好后用 /plugin list 复查。',
1363
1410
  en: 'No extra plugins in this profile: only the installation-supplied bundles and dsh-tui itself. Run /plugin list again after installing one.',
1364
1411
  },
1365
- 'plugins-list-hint': {
1366
- zh: '详情:/plugin info <名字>;卸载:/plugin remove <名字>;启用 / 关闭:/plugin enable|disable <名字|行 id>;安装源:/plugin registries;完整诊断:无参 /plugin。',
1367
- en: 'Details: /plugin info <name>; remove: /plugin remove <name>; enable or disable: /plugin enable|disable <name|row id>; registries: /plugin registries; full diagnostics: bare /plugin.',
1412
+ 'plugins-experimental-header': {
1413
+ zh: 'DSH 自带实验性功能(EXP,{{count}} 项):',
1414
+ en: 'Experimental features shipped by DSH (EXP, {{count}}):',
1415
+ },
1416
+ 'plugins-experimental-enable': {
1417
+ zh: '启用:/plugin enable {{bundle}}',
1418
+ en: 'Enable: /plugin enable {{bundle}}',
1419
+ },
1420
+ 'plugins-experimental-disable': {
1421
+ zh: '关闭:/plugin disable {{bundle}}',
1422
+ en: 'Disable: /plugin disable {{bundle}}',
1423
+ },
1424
+ // 「用途」一行只回答「开完多出什么」,命令只留躲不掉的那一个:机制(索引在内存、
1425
+ // 极简模式如何取舍)与迁移细节都属于 README,这一屏是目录而不是说明书。
1426
+ 'plugins-experimental-team-hint': {
1427
+ zh: '用途:Agent 分工合作,/team status 看状态',
1428
+ en: 'Use: agents divide the work; /team status shows the roster',
1429
+ },
1430
+ 'plugins-experimental-auto-review-hint': {
1431
+ zh: '用途:/permission auto,模型自主审批',
1432
+ en: 'Use: /permission auto — the model approves on its own',
1433
+ },
1434
+ 'plugins-experimental-session-search-hint': {
1435
+ zh: '用途:Agent 能翻本工作区的历史会话',
1436
+ en: 'Use: agents can browse past sessions in this workspace',
1437
+ },
1438
+ 'plugins-experimental-worktree-hint': {
1439
+ zh: '用途:Agent 新开 Git 分支与工作树,转到里面干活',
1440
+ en: 'Use: agents start a new Git branch and worktree and move into it',
1368
1441
  },
1369
1442
  'plugins-bundles-header': { zh: '已装 bundle(数据来自 profile 插件服务):', en: 'Installed bundles (from the profile plugin service):' },
1370
1443
  'plugins-bundles-official': { zh: '安装自带', en: 'Official (installation-supplied)' },
@@ -1407,6 +1480,10 @@ const dict = {
1407
1480
  zh: '回合正在运行,先结束它(或 /new)再装插件:安装会改动 profile 并触发应用/热重载',
1408
1481
  en: 'A turn is running; finish it (or /new) before installing: an install changes the profile and applies or hot-reloads plugins',
1409
1482
  },
1483
+ 'plugins-install-grant-busy': {
1484
+ zh: '回合正在运行,先结束它(或 /new)再授予:授权会在下一次决策立即生效',
1485
+ en: 'A turn is running; finish it (or /new) before granting: the grant takes effect on the next decision',
1486
+ },
1410
1487
  'plugins-install-inspect': { zh: '将要安装:{{spec}}({{kind}} · {{bundle}})', en: 'About to install: {{spec}} ({{kind}} · {{bundle}})' },
1411
1488
  'plugins-install-trusted': {
1412
1489
  zh: '嫡系(feed 命中):{{name}}@{{version}} —— 跳过装包信任确认;仍记 effect ledger,仍在 /plugin 列表可见',
@@ -1478,10 +1555,60 @@ const dict = {
1478
1555
  zh: '提醒:注册表里的包在装上之前无法判定是否声明了 TUI 贡献;若未声明,它不会作为后端/贡献出现,并会在 /plugin 列表里带常驻标签。',
1479
1556
  en: 'Heads up: a registry package’s declaration cannot be read before it lands; if it declares none, it will not appear as a backend/contribution and /plugin will tag it.',
1480
1557
  },
1558
+ // ── 授权写入(grant-file.ts / 装链路 / 启停链路共用)──
1559
+ 'plugins-grant-reason-corrupt': { zh: '授权文件无法解析', en: 'the grants file cannot be parsed' },
1560
+ 'plugins-grant-reason-unreadable': { zh: '授权文件无法读取', en: 'the grants file cannot be read' },
1561
+ 'plugins-grant-reason-write-failed': { zh: '授权文件写入失败', en: 'the grants file could not be written' },
1562
+ 'plugins-grant-write-refused': {
1563
+ zh: '授权未写入({{reason}}):{{file}} —— 安装/启用继续进行,授权可在 /plugin 的授权矩阵里手工补齐。',
1564
+ en: 'No grant was written ({{reason}}): {{file}} — the install/enable goes on; add the rule by hand from the /plugin grant matrix.',
1565
+ },
1566
+ 'plugins-grant-unknown-skipped': { zh: '跳过宿主不认识的权限:{{names}}', en: 'Skipped permissions this host does not know: {{names}}' },
1567
+ 'plugins-install-granted': { zh: '已按声明授予 {{count}} 项权限({{id}})', en: 'Granted {{count}} declared permission(s) ({{id}})' },
1568
+ 'plugins-install-granted-silent': {
1569
+ zh: '已按包内声明自动授予 {{count}} 项权限({{id}})',
1570
+ en: 'Granted {{count}} declared permission(s) automatically ({{id}})',
1571
+ },
1572
+ 'plugins-grant-unapplied': {
1573
+ zh: '以下授权已写入但未生效(scope 不被接受或被 deny 覆盖):{{scopes}}',
1574
+ en: 'These rules were written but do not take effect (unsupported scope, or outranked by a deny): {{scopes}}',
1575
+ },
1576
+ 'plugins-grant-rolled-back': { zh: '已回滚本次写入的授权', en: 'The grant written for this run was rolled back' },
1577
+ 'plugins-grant-rollback-failed': {
1578
+ zh: '授权已写入但未能回滚:文件已被改动,请到 /plugin 的授权矩阵核对。',
1579
+ en: 'The grant was written but could not be rolled back: the file changed meanwhile; check the /plugin grant matrix.',
1580
+ },
1581
+ 'plugins-install-grant-ask': {
1582
+ zh: '该组件({{id}})已装上。下面这些权限写在包内声明里:现在授予吗?(授权是行为约束,不是安全隔离)',
1583
+ en: 'The component ({{id}}) is installed. These are the permissions it declares: grant them now? (Grants are behavioural constraints, not a security boundary.)',
1584
+ },
1585
+ 'plugins-grant-list-title': {
1586
+ zh: '要授予的权限(按包内声明,逐字使用其 scope)',
1587
+ en: 'Permissions to grant (as declared, with the declared scope verbatim)',
1588
+ },
1589
+ 'plugins-grant-list-title-revoke': {
1590
+ zh: '将撤销的权限(按包内声明,按权限名撤销)',
1591
+ en: 'Permissions to revoke (declared names; every scope of each)',
1592
+ },
1593
+ 'plugins-grant-default-allow': { zh: '默认允许', en: 'default allow' },
1594
+ 'plugins-grant-default-deny': { zh: '默认拒绝', en: 'default deny' },
1595
+ 'plugins-grant-granted': { zh: '✓已授权', en: '✓granted' },
1596
+ 'plugins-grant-not-granted': { zh: '·未授权', en: '·not granted' },
1597
+ 'plugins-grant-more': { zh: '还有 {{count}} 项…', en: 'and {{count}} more…' },
1598
+ 'plugins-grant-hidden': {
1599
+ zh: '共 {{count}} 项权限(此处未逐行显示)',
1600
+ en: '{{count}} permission(s) not listed here',
1601
+ },
1602
+ 'plugins-grant-unknown-line': {
1603
+ zh: '宿主不认识、将跳过:{{names}}(共 {{count}} 项)',
1604
+ en: 'Unknown to this host and skipped: {{names}} ({{count}} total)',
1605
+ },
1606
+ 'plugins-install-key-grant': { zh: '⏎ 授予 {{count}} 项 · esc 跳过(安装保留)', en: '⏎ grant {{count}} · esc skip (install stays)' },
1481
1607
  'plugins-install-builds-title': { zh: '以下构建脚本需要批准(写进 profile 的 allowBuilds):', en: 'These build scripts need approval (written to the profile allowBuilds):' },
1482
1608
  'plugins-install-incompatible-title': { zh: '版本不兼容的包:', en: 'Incompatible packages:' },
1483
1609
  'plugins-install-exemptions-title': { zh: '已登记的精确版本豁免:', en: 'Exact-version exemptions recorded:' },
1484
1610
  'plugins-install-key-confirm': { zh: '⏎ 安装 · esc 取消', en: '⏎ install · esc cancel' },
1611
+ 'plugins-install-key-confirm-grant': { zh: '⏎ 安装并授权 {{count}} 项 · esc 取消', en: '⏎ install and grant {{count}} · esc cancel' },
1485
1612
  'plugins-install-key-builds': { zh: '⏎ 允许这些脚本并重试 · esc 取消', en: '⏎ allow these scripts and retry · esc cancel' },
1486
1613
  'plugins-install-key-incompatible': { zh: '⏎ 接受风险并重试 · esc 取消', en: '⏎ accept the risk and retry · esc cancel' },
1487
1614
  'plugins-install-key-cancel': { zh: 'esc 取消安装', en: 'esc cancel the install' },
@@ -1530,6 +1657,10 @@ const dict = {
1530
1657
  'plugins-manage-enabled': { zh: '已启用 {{target}}:{{state}}', en: 'Enabled {{target}}: {{state}}' },
1531
1658
  'plugins-manage-disabled': { zh: '已关闭 {{target}}:{{state}}', en: 'Disabled {{target}}: {{state}}' },
1532
1659
  'plugins-manage-failed': { zh: '操作失败:{{reason}}', en: 'The action failed: {{reason}}' },
1660
+ 'plugins-manage-enable-persisted': {
1661
+ zh: 'profile 已记录这次启用,但运行中的宿主拒绝了重载:授权已保留,重启后生效。',
1662
+ en: 'The profile recorded this enable, but the running host refused the reload: the grant is kept and takes effect after a restart.',
1663
+ },
1533
1664
  'plugins-manage-incompatible': {
1534
1665
  zh: '版本不兼容:{{packages}}——要强行启用,先接受风险:dsh plugin --profile {{profile}} allow-version <包@版本> <当前版本> --accept-risk',
1535
1666
  en: 'Incompatible version: {{packages}} — to force it, accept the risk first: dsh plugin --profile {{profile}} allow-version <package@version> <running version> --accept-risk',
@@ -1546,14 +1677,42 @@ const dict = {
1546
1677
  zh: '用户数据仍在:{{paths}} —— 不再需要时可手动删除。',
1547
1678
  en: 'Your own data is still there: {{paths}} — delete it by hand when you no longer need it.',
1548
1679
  },
1549
- 'plugins-manage-residue-footprint': {
1550
- zh: '{{id}} 仍在授权文件 / 效果台账 / 存储目录里留有足迹',
1551
- en: '{{id}} still has a footprint in the grants file, the effect ledger or the storage directory',
1680
+ 'plugins-manage-residue-ledger': {
1681
+ zh: '效果台账仍有 {{id}} 的记录(审计保留):{{file}}',
1682
+ en: 'The effect ledger still records {{id}} (kept for audit): {{file}}',
1683
+ },
1684
+ 'plugins-manage-residue-storage': {
1685
+ zh: '存储目录里仍有 {{id}} 的命名空间(用户数据保留):{{file}}',
1686
+ en: 'A storage namespace for {{id}} is still on disk (your data is kept): {{file}}',
1552
1687
  },
1553
1688
  'plugins-manage-residue-unjudged': {
1554
1689
  zh: '读不到 {{target}} 的包内声明,无法判断它是否留下了用户数据(不猜)。',
1555
1690
  en: 'The declaration inside {{target}} could not be read, so what data it left behind cannot be judged (nothing is guessed).',
1556
1691
  },
1692
+ 'plugins-manage-grant-granted': { zh: '已按声明授予 {{count}} 项权限({{id}})', en: 'Granted {{count}} declared permission(s) ({{id}})' },
1693
+ 'plugins-manage-grant-forgotten': { zh: '已删除该组件的授权与 deny 条目({{id}})', en: 'Removed this component\'s grant and deny entries ({{id}})' },
1694
+ 'plugins-manage-grant-forget-failed': {
1695
+ zh: '⚠ 该组件的授权条目未能删除({{reason}}):{{id}} · {{file}} —— 复用同一 id 的包可能继承这组授权,请到 /plugin 的授权矩阵手工清理。',
1696
+ en: '⚠ This component\'s grant entries could not be removed ({{reason}}): {{id}} · {{file}} — a package reusing the same id may inherit them; clear them by hand from the /plugin grant matrix.',
1697
+ },
1698
+ 'plugins-manage-grant-unhandled': {
1699
+ zh: '读不到 {{target}} 的包内声明,或它不是本 profile 能接受的声明:无法确定组件 id,授权条目未处理(不猜)。',
1700
+ en: 'The declaration inside {{target}} could not be read, or is not one this profile accepts: its component id was not used, and grant entries were left alone (nothing is guessed).',
1701
+ },
1702
+ 'plugins-manage-grant-revoked': { zh: '已撤销 {{count}} 项授权({{id}})', en: 'Revoked {{count}} permission grant(s) ({{id}})' },
1703
+ 'plugins-manage-grant-revoke-failed': {
1704
+ zh: '已关闭,但授权条目未能撤销({{reason}}):{{id}} · {{file}} —— 见 /plugin 的授权矩阵。',
1705
+ en: 'Disabled, but the grant entries could not be revoked ({{reason}}): {{id}} · {{file}} — see the /plugin grant matrix.',
1706
+ },
1707
+ 'plugins-manage-key-enable-grant': { zh: '⏎ 启用并授权 {{count}} 项 · esc 返回', en: '⏎ enable and grant {{count}} · esc back' },
1708
+ 'plugins-manage-key-disable-revoke': {
1709
+ zh: '⏎ 关闭并撤销 {{count}} 项授权 · esc 返回',
1710
+ en: '⏎ disable and revoke {{count}} grant(s) · esc back',
1711
+ },
1712
+ 'plugins-manage-remove-grant-facts': {
1713
+ zh: '该组件的授权与 deny 条目会被删除(不可恢复);重新安装后需要再授权一次。',
1714
+ en: 'This component\'s grant and deny entries are deleted (not recoverable); a reinstall asks for them again.',
1715
+ },
1557
1716
  'plugins-manage-usage': { zh: '用法:/plugin {{sub}} <bundle 名 | 行 id>', en: 'Usage: /plugin {{sub}} <bundle name | row id>' },
1558
1717
  'plugins-manage-pane-title': { zh: '插件生命周期', en: 'Plugin lifecycle' },
1559
1718
  'plugins-manage-action-remove': { zh: '卸载', en: 'remove' },
@@ -1566,8 +1725,8 @@ const dict = {
1566
1725
  en: 'This is destructive: it changes the profile\'s package.json and lockfile (rolled back if the service fails) and drops its {{rows}} rows / {{overrides}} overrides. Your own data is not deleted (any residue is reported separately).',
1567
1726
  },
1568
1727
  'plugins-manage-trust-facts': {
1569
- zh: '无法验证已装代码的安装来源:启用后它就在本进程内运行、不自动更新、没有沙箱。它声明的权限见 /plugin 的授权矩阵。',
1570
- en: 'The installed code\'s source cannot be verified: once enabled it runs inside this process, with no auto-update and no sandbox. Its declared permissions are in the /plugin grant matrix.',
1728
+ zh: '无法验证已装代码的来源:启用后它在本进程内运行、无沙箱。本页列出的权限就是要授予的内容;授权是行为约束,不是安全隔离。',
1729
+ en: 'The installed code\'s source cannot be verified: it runs in-process with no sandbox. What this pane lists is what Enter grants; grants are behavioural constraints, not a security boundary.',
1571
1730
  },
1572
1731
  'plugins-manage-host-row-facts': {
1573
1732
  zh: '这一行属于宿主层(dsh-base):关掉它会卸载本应用注入的服务,本应用可能重启或退出。',
@@ -1659,6 +1818,7 @@ const dict = {
1659
1818
  'question-fold-waiting': { zh: '正在等你回答', en: 'Waiting for your answer' },
1660
1819
  'question-fold-expand': { zh: '{{combo}} 展开', en: '{{combo}} to expand' },
1661
1820
  'question-fold-hint': { zh: '{{combo}} 折叠 / 点标题行收起', en: '{{combo}} to fold / click the header' },
1821
+ 'question-detail-scroll': { zh: '… {{count}} 行未显示 · {{up}}/{{down}} 翻阅', en: { one: '… {{count}} line outside view · {{up}}/{{down}} to scroll', other: '… {{count}} lines outside view · {{up}}/{{down}} to scroll' } },
1662
1822
  'question-submit-selection': { zh: '提交选择(Enter)', en: 'Submit selection (Enter)' },
1663
1823
  'question-custom-tab': { zh: '自定义回答', en: 'Custom answer' },
1664
1824
  'question-attached-label': { zh: '(附加:{{label}})', en: '(attached: {{label}})' },
@@ -1674,9 +1834,11 @@ const dict = {
1674
1834
  'approval-always': { zh: '允许,且不再询问', en: 'Yes, and don\'t ask again' },
1675
1835
  'approval-hint': { zh: '↑/↓ 选择 · Enter 确认 · Esc 拒绝', en: '↑/↓ select · Enter confirm · Esc reject' },
1676
1836
  'approval-hint-feedback': { zh: '↑/↓/Tab 选择 · Enter 确认 · 选中拒绝后可输入理由 · Esc 拒绝', en: '↑/↓/Tab select · Enter confirm · on No, type a reason · Esc reject' },
1837
+ 'approval-hint-preview': { zh: '↑/↓ 选择 · Enter 确认 · Esc 拒绝 · {{up}}/{{down}} 翻阅预览', en: '↑/↓ select · Enter confirm · Esc reject · {{up}}/{{down}} scroll preview' },
1677
1838
  'approval-feedback-row': { zh: '{{label}}:{{reason}}', en: '{{label}}: {{reason}}' },
1678
1839
  'approval-subagent': { zh: '来自子代理 {{id}} 的请求', en: 'Requested by subagent {{id}}' },
1679
1840
  'approval-blocked-path': { zh: '涉及允许目录之外的路径:{{path}}', en: 'Outside the allowed directories: {{path}}' },
1841
+ 'panel-preview-omitted': { zh: '… 另有 {{count}} 行未显示', en: { one: '… {{count}} more line not shown', other: '… {{count}} more lines not shown' } },
1680
1842
  // ── components/Subagent*.tsx ────────────────────────────────────────
1681
1843
  'subagent-model': { zh: '模型', en: 'Model' },
1682
1844
  'subagent-duration': { zh: '时长', en: 'Duration' },
@@ -1742,29 +1904,35 @@ const dict = {
1742
1904
  'team-last-run-failed': { zh: '上一轮失败 {{error}}', en: 'last run failed {{error}}' },
1743
1905
  'team-task-blocked': { zh: '阻塞', en: 'blocked' },
1744
1906
  'team-failure': { zh: '团队记录被拒:{{failure}}', en: 'Team record rejected: {{failure}}' },
1745
- // ── /team:团队模式开关(团队 bundle 的启停,见 docs/agent-teams-design.md「开关机制」)──
1907
+ // ── /team:团队状态(开关是 /plugin enable|disable,见 docs/agent-teams-design.md「开关机制」)──
1746
1908
  'team-cmd-unavailable': { zh: '当前内核没有 Agent Teams。', en: 'The current kernel has no Agent Teams.' },
1747
- 'team-cmd-usage': { zh: '未知子命令「{{sub}}」。用法:/team [status] | on | off', en: 'Unknown subcommand "{{sub}}". Usage: /team [status] | on | off' },
1909
+ 'team-cmd-usage': { zh: '未知子命令「{{sub}}」。用法:/team [status]', en: 'Unknown subcommand "{{sub}}". Usage: /team [status]' },
1910
+ 'team-cmd-switch-moved': {
1911
+ zh: '团队开关已改为 /plugin enable|disable {{bundle}};/team 只报告状态。',
1912
+ en: 'The team switch moved to /plugin enable|disable {{bundle}}; /team only reports status.',
1913
+ },
1914
+ 'team-cmd-not-enabled': {
1915
+ zh: '团队服务未运行(bundle 未启用、启用后尚未生效,或激活失败)。开启/应用:/plugin enable {{bundle}};需要时重启。',
1916
+ en: 'The team service is not running (bundle off, enabled but not applied yet, or activation failed). Enable/apply with /plugin enable {{bundle}}; restart if needed.',
1917
+ },
1918
+ 'team-cmd-no-manager-route': {
1919
+ zh: '本次启动没有 profile 插件服务,无法在会话内切换。在终端用 dsh plugin --profile {{profile}} add {{bundle}}@<已装 DSH 版本>(关闭用 remove),然后重启;版本须与已装 DSH 完全一致。',
1920
+ en: 'This launch has no profile plugin service, so the team cannot be switched here. In a terminal run dsh plugin --profile {{profile}} add {{bundle}}@<your DSH version> (remove to switch off), then restart; the version must match the installed DSH exactly.',
1921
+ },
1922
+ 'team-cmd-bundle-absent': {
1923
+ zh: '本次运行的 DSH 安装不自带团队包(/plugin list 不显示它):先把 DSH 换到自带团队包的版本线,再重启并开启。',
1924
+ en: 'The running DSH installation does not ship the team bundle (/plugin list does not show it): switch DSH to a line that ships the team packages first, then restart and enable it.',
1925
+ },
1748
1926
  'team-cmd-no-manager': {
1749
- zh: '本次启动没有 profile 插件服务,无法在会话内切换。改用:dsh plugin --profile {{profile}} add {{bundle}}(关闭用 remove),然后重启。',
1750
- en: 'This launch has no profile plugin service, so the team cannot be switched here. Use dsh plugin --profile {{profile}} add {{bundle}} (remove to switch off), then restart.',
1927
+ zh: '本次启动没有 profile 插件服务:只能报告团队服务状态。',
1928
+ en: 'This launch has no profile plugin service: only the team service state can be reported.',
1751
1929
  },
1752
1930
  'team-cmd-bundle': { zh: '团队 bundle:{{state}}', en: 'Team bundle: {{state}}' },
1931
+ 'team-cmd-bundle-unknown': { zh: '团队 bundle:未知(插件服务没有列出该包)', en: 'Team bundle: unknown (the plugin service does not list it)' },
1753
1932
  'team-cmd-on': { zh: '已开启', en: 'on' },
1754
1933
  'team-cmd-off': { zh: '已关闭', en: 'off' },
1755
- 'team-cmd-already-on': { zh: '团队 bundle 已开启,无需改动。', en: 'The team bundle is already on; nothing to change.' },
1756
- 'team-cmd-not-installed': {
1757
- zh: '团队 bundle 未安装。在这里安装:/plugin install {{bundle}}(装完即开启);或在终端:dsh plugin --profile {{profile}} add {{bundle}}',
1758
- en: 'The team bundle is not installed. Install it here with /plugin install {{bundle}} (it is switched on once installed), or in a terminal with dsh plugin --profile {{profile}} add {{bundle}}',
1759
- },
1760
- 'team-cmd-kernel-unsupported': {
1761
- zh: '运行中的 DSH {{version}} 没有本应用能读取的团队 bundle:先把 DSH 换成 {{lines}} 之一,再安装同版本的团队 bundle。',
1762
- en: 'The running DSH {{version}} has no team bundle this app can read: switch DSH to one of {{lines}} first, then install the team bundle of that same version.',
1763
- },
1764
- 'team-cmd-off-not-installed': { zh: '团队 bundle 未安装,团队本就是关闭的,无需改动。', en: 'The team bundle is not installed, so the team is already off; nothing to change.' },
1765
1934
  'team-cmd-service': { zh: '团队服务:{{state}}', en: 'Team service: {{state}}' },
1766
1935
  'team-cmd-running': { zh: '运行中', en: 'running' },
1767
- 'team-cmd-stopped': { zh: '未运行', en: 'not running' },
1768
1936
  'team-cmd-pending-on': { zh: 'profile 已开启团队,但服务没有运行:重启后生效,或服务激活失败(见日志)。', en: 'The profile has the team on but the service is not running: it applies after a restart, or the service failed to activate (see the log).' },
1769
1937
  'team-cmd-pending-off': { zh: 'profile 已关闭团队,但服务仍在运行:重启后生效。', en: 'The profile has the team off but the service is still running: it applies after a restart.' },
1770
1938
  'team-cmd-no-members': { zh: '本会话没有 teammate。', en: 'No teammates in this session.' },
@@ -2008,9 +2176,10 @@ const dict = {
2008
2176
  'provider-cancelled': { zh: '已取消添加 provider', en: 'Provider setup cancelled' },
2009
2177
  'provider-success': { zh: 'provider {{route}} 已添加', en: 'Provider {{route}} added' },
2010
2178
  'provider-switch-hint': { zh: '运行 /model 可切换到新 provider 的模型', en: 'Run /model to switch to the new provider’s models' },
2011
- 'provider-q-switch': { zh: '立即切换到新 provider?', en: 'Switch to the new provider now?' },
2179
+ 'provider-q-switch': { zh: '要切换到新 provider 的哪个模型?', en: 'Switch to which model from the new provider?' },
2012
2180
  'provider-opt-switch-now': { zh: '切换到 {{model}}', en: 'Switch to {{model}}' },
2013
2181
  'provider-opt-switch-keep': { zh: '保持当前模型', en: 'Keep the current model' },
2182
+ 'provider-opt-switch-keep-desc': { zh: '当前:{{model}}', en: 'Current: {{model}}' },
2014
2183
  // /provider OAuth 分支(内置 OAuth 模块挂载 ctx.dshAuth 时出现)
2015
2184
  'provider-opt-oauth': { zh: '账号登录(OAuth)', en: 'Account sign-in (OAuth)' },
2016
2185
  'provider-opt-oauth-desc': { zh: '使用当前宿主支持的账号登录,无需 API key', en: 'Sign in with an account supported by this host — no API key' },
@@ -2143,7 +2312,7 @@ const dict = {
2143
2312
  'cmd-desc-migrate': { zh: '从其他编程代理导入对话(claude-code/codex/omp/zcode/grok-build)' },
2144
2313
  'cmd-desc-init': { zh: '在工作目录创建 AGENTS.md' },
2145
2314
  'cmd-desc-agents': { zh: '查看本会话的子代理' },
2146
- 'cmd-desc-team': { zh: '团队模式:查看状态,或 on / off 开关(启停 Agent Teams bundle)' },
2315
+ 'cmd-desc-team': { zh: '团队模式:团队服务运行时查看状态(开关用 /plugin enable|disable)' },
2147
2316
  'cmd-desc-jobs': { zh: '查看本会话的后台任务' },
2148
2317
  'cmd-desc-panel': { zh: '侧栏面板:开关 / 聚焦 / 缩放 / 切换', en: 'Side panel: toggle / focus / zoom / switch' },
2149
2318
  'cmd-desc-kernel': { zh: '选择内核(切换后重启进入)', en: 'Choose the kernel (restarts into it)' },
@@ -2263,7 +2432,7 @@ const dict = {
2263
2432
  'sugg-panel-zoom-desc': { zh: '缩放当前面板', en: 'Zoom the active panel' },
2264
2433
  'sugg-panel-id-desc': { zh: '打开该面板', en: 'Open this panel' },
2265
2434
  // /plugin 的子命令提示(补全树;动态实参见 plugin-completions.ts)
2266
- 'sugg-plugin-list-desc': { zh: '列出你装的额外插件', en: 'List the plugins this profile added' },
2435
+ 'sugg-plugin-list-desc': { zh: '列出额外插件与实验性功能', en: 'List added plugins and experimental features' },
2267
2436
  'sugg-plugin-info-desc': { zh: '查单个条目或待装 spec', en: 'Describe an installed plugin or an install spec' },
2268
2437
  'sugg-plugin-registries-desc': { zh: '查看安装源', en: 'Show where installations ask' },
2269
2438
  'sugg-plugin-check-desc': { zh: '校验清单,不安装', en: 'Validate a manifest without installing it' },
@@ -2293,7 +2462,7 @@ const dict = {
2293
2462
  'cmd-desc-hooks': { zh: '查看 hooks 状态' },
2294
2463
  'cmd-desc-mcp': { zh: '查看 MCP 状态' },
2295
2464
  'cmd-desc-skills': { zh: '列出所有可用技能' },
2296
- 'cmd-desc-plugin': { zh: '插件诊断;`list` 列你装的额外插件,`info` 查单个条目或待装 spec' },
2465
+ 'cmd-desc-plugin': { zh: '插件诊断;`list` 列额外插件与可开启的实验性功能,`info` 查单个条目或待装 spec' },
2297
2466
  'cmd-desc-update': { zh: '更新 dsh-tui 并重启' },
2298
2467
  // Misc
2299
2468
  'cmd-desc-vim': { zh: '切换 vim 模式' },
@@ -2360,8 +2529,7 @@ const dict = {
2360
2529
  'traj-hint-failure': { zh: '{{key}} 看完整轨迹', en: '{{key}} for the full trajectory' },
2361
2530
  // ── screens/Launchpad.tsx(开屏落地页:取代旧的"只有标题的空白会话")───────
2362
2531
  // 落地页是"启动后第一屏":大标题与吉祥物居中、输入框在下、再往下是
2363
- // 信息与快捷入口。用户真正发出第一条内容后才进聊天页,所以这里的
2364
- // 文案要短、要是动作而不是说明。
2532
+ // 信息与快捷入口。发送首句或开始多行编辑时进入聊天页;这里的文案要短。
2365
2533
  'launchpad-placeholder': { zh: '说点什么,或输入 / 看命令…', en: 'Say something, or type / for commands…' },
2366
2534
  // (launchpad-param-*-label / launchpad-param-mode-* 六键已删:2026-10 第四版
2367
2535
  // 参数行只画值不画字段名——用户原话"大家都知道是模型啊,不用画蛇添足";
@@ -2374,8 +2542,8 @@ const dict = {
2374
2542
  // 轮换顺序 = launchpad-tip → launchpad-tip-2 → launchpad-tip-3 → 回到首条;
2375
2543
  // 首启那一条(launchpad-first-run)优先级最高,不参与轮换。
2376
2544
  'launchpad-tip-2': {
2377
- zh: 'Ctrl+V 直接粘贴,Esc 清空后按 Esc 去看历史会话',
2378
- en: 'Ctrl+V pastes; Esc clears the draft, then Esc again opens sessions',
2545
+ zh: 'Ctrl+V 直接粘贴,Shift+Enter 进入聊天页换行',
2546
+ en: 'Ctrl+V pastes; Shift+Enter opens chat with a newline',
2379
2547
  },
2380
2548
  'launchpad-tip-3': {
2381
2549
  zh: '参数行四段都能点:模型 · 思考深度 · 模式 · 权限',
@@ -2596,10 +2764,10 @@ const dict = {
2596
2764
  // ── screens/Onboarding.tsx(首次引导:四步把常用配置配好)────────────────
2597
2765
  'onboarding-title': { zh: '欢迎使用 dsh-TUI', en: 'Welcome to dsh-TUI' },
2598
2766
  'onboarding-step-progress': { zh: '第 {{n}} / {{total}} 步', en: 'Step {{n}} of {{total}}' },
2599
- 'onboarding-step-apikey-title': { zh: 'API Key 与连通性', en: 'API key and connectivity' },
2600
- 'onboarding-step-apikey-desc': {
2601
- zh: '确认 DEEPSEEK_API_KEY 已就位,并真的连一次服务端。',
2602
- en: 'Confirm DEEPSEEK_API_KEY is in place and actually reach the API.',
2767
+ 'onboarding-step-access-title': { zh: '账号与模型接入', en: 'Accounts and models' },
2768
+ 'onboarding-step-access-desc': {
2769
+ zh: '登录订阅账号或加一个 API key,再把接入进来的模型选一个作为默认。',
2770
+ en: 'Sign in to a subscription or add an API key, then pick one of the models it brings in as the default.',
2603
2771
  },
2604
2772
  'onboarding-step-look-title': { zh: '语言与主题', en: 'Language and theme' },
2605
2773
  'onboarding-step-look-desc': {
@@ -2616,23 +2784,74 @@ const dict = {
2616
2784
  zh: '几个最省时间的键和最常用的命令,每一张都能直接点开试试。',
2617
2785
  en: 'The few keys and commands that save the most time — click any card to try it.',
2618
2786
  },
2619
- // 第一步:凭证与连通性。分流口径与 adapter 的 CredentialStatus /
2620
- // BalanceResult 一一对应,排查建议按原因分开给,而不是一句"检查网络"。
2787
+ // 第一步:账号与模型接入。上半是状态(凭证 + 订阅登录,只报掩码事实),
2788
+ // 下半是动作行——登录与"加 API key"都由 Chat 交给既有流程执行。
2621
2789
  'onboarding-key-checking': { zh: '正在读取凭证…', en: 'Reading credentials…' },
2622
2790
  'onboarding-key-configured': { zh: '已检测到 DEEPSEEK_API_KEY', en: 'DEEPSEEK_API_KEY detected' },
2623
2791
  'onboarding-key-source-env': { zh: '来源:环境变量', en: 'Source: environment variable' },
2624
2792
  'onboarding-key-source-config': { zh: '来源:配置文件', en: 'Source: config file' },
2625
2793
  'onboarding-key-source-unknown': { zh: '来源:未知', en: 'Source: unknown' },
2626
2794
  'onboarding-key-missing': { zh: '还没检测到 DEEPSEEK_API_KEY', en: 'No DEEPSEEK_API_KEY yet' },
2795
+ 'onboarding-key-optional': { zh: '未配置 DEEPSEEK_API_KEY(只有 DeepSeek 官方 API 需要)', en: 'DEEPSEEK_API_KEY is not set (only the DeepSeek official API needs it)' },
2627
2796
  'onboarding-key-shape': { zh: '形如 sk-…(只判断存在与否,永远不显示完整值)', en: 'Looks like sk-… (presence only — the value is never printed)' },
2628
- 'onboarding-key-howto-env': { zh: '设置一个环境变量再重启:', en: 'Set an environment variable and restart:' },
2629
- 'onboarding-key-howto-config': { zh: '或写进 dsh 的配置里:', en: 'Or put it in the dsh config:' },
2630
- 'onboarding-key-retry': { zh: '重新检查', en: 'Check again' },
2797
+ 'onboarding-access-oauth-in': { zh: '已登录:{{providers}}(共 {{n}} 个账号)', en: 'Signed in: {{providers}} ({{n}} accounts)' },
2798
+ 'onboarding-access-oauth-none': { zh: '还没有登录任何订阅账号', en: 'No subscription account signed in yet' },
2799
+ 'onboarding-access-action-signin': { zh: '登录订阅账号(OAuth)', en: 'Sign in to a subscription (OAuth)' },
2800
+ 'onboarding-access-action-signin-desc': {
2801
+ zh: 'ChatGPT / Claude / Grok 等订阅,或 DeepSeek 账号浏览器授权(已登录 {{signed}} / {{total}})',
2802
+ en: 'ChatGPT / Claude / Grok subscriptions, or DeepSeek account browser sign-in ({{signed}} / {{total}} signed in)',
2803
+ },
2804
+ 'onboarding-access-action-add': { zh: '添加模型提供方(API key)', en: 'Add a model provider (API key)' },
2805
+ 'onboarding-access-action-add-desc': {
2806
+ zh: '内置目录或自定义端点,密钥写进 DSH 凭据库(与 /provider 同一条路)',
2807
+ en: 'A built-in catalog or a custom endpoint; the key goes into the DSH credential store (the same path as /provider)',
2808
+ },
2809
+ 'onboarding-access-action-recheck': { zh: '重新检查', en: 'Check again' },
2810
+ 'onboarding-access-action-recheck-desc': {
2811
+ zh: '重读凭证、登录状态与可用模型',
2812
+ en: 'Re-read credentials, sign-in state and available models',
2813
+ },
2814
+ 'onboarding-access-action-next': { zh: '跳过这一步', en: 'Skip this step' },
2815
+ 'onboarding-access-action-next-desc': {
2816
+ zh: '之后随时可用 /provider 或 /auth 配置',
2817
+ en: 'You can configure it later with /provider or /auth',
2818
+ },
2819
+ 'onboarding-access-fallback': { zh: '当前组合里没有可用的接入入口,也可以手工配置:', en: 'No in-app access route is available in this composition; you can also configure it by hand:' },
2820
+ 'onboarding-access-fallback-signin': { zh: '当前组合里订阅登录不可用', en: 'Subscription sign-in is not available in this composition' },
2821
+ 'onboarding-access-fallback-provider': { zh: '/provider 需要经 dsh profile 启动', en: '/provider needs a launch through a dsh profile' },
2822
+ 'onboarding-access-fallback-env': { zh: '环境变量(重启生效):', en: 'Environment variable (takes effect after a restart):' },
2823
+ 'onboarding-access-fallback-powershell': { zh: 'PowerShell: [Environment]::SetEnvironmentVariable(\'DEEPSEEK_API_KEY\',\'sk-…\',\'User\')', en: 'PowerShell: [Environment]::SetEnvironmentVariable(\'DEEPSEEK_API_KEY\',\'sk-…\',\'User\')' },
2824
+ 'onboarding-access-fallback-cmd': { zh: 'cmd: setx DEEPSEEK_API_KEY "sk-…"', en: 'cmd: setx DEEPSEEK_API_KEY "sk-…"' },
2825
+ 'onboarding-access-fallback-store': { zh: '或写进 DSH 凭据库的 refs 段(默认位置):', en: 'Or write it into the DSH credential store\'s refs block (default location):' },
2826
+ 'onboarding-access-fallback-store-path': { zh: '~/.dsh/.credentials.yaml(DSH_HOME 覆盖时随之改变)', en: '~/.dsh/.credentials.yaml (moves with a DSH_HOME override)' },
2827
+ 'onboarding-access-signin-title': { zh: '选择要登录的账号', en: 'Choose an account to sign in' },
2828
+ 'onboarding-access-signin-hint': { zh: '**↑/↓** 选账号 · **Enter** 登录 · **Esc** 返回', en: '**↑/↓** pick · **Enter** sign in · **Esc** back' },
2829
+ 'onboarding-access-oauth-row': { zh: '{{provider}} — {{state}}', en: '{{provider}} — {{state}}' },
2830
+ 'onboarding-access-back': { zh: '← 返回', en: '← Back' },
2831
+ 'onboarding-access-in-flight': { zh: '上一项配置还在进行:接下来的问题会在问答面板里弹出,结束后这里显示结果', en: 'A configuration is still in progress: its next questions open in the question panel, and the result shows here when it ends' },
2832
+ 'onboarding-access-action-busy-desc': { zh: '上一项配置结束前不能再发起', en: 'Unavailable until the current configuration ends' },
2833
+ 'onboarding-access-cancelled': { zh: '已取消,没有写入任何东西', en: 'Cancelled — nothing was written' },
2834
+ 'onboarding-access-action-failed': { zh: '这次配置没有完成,可以重试或换一种方式', en: 'That configuration did not complete — retry, or use another route' },
2835
+ 'onboarding-access-action-failed-reason': { zh: '这次配置没有完成:{{reason}}', en: 'That configuration did not complete: {{reason}}' },
2836
+ 'onboarding-access-changed': { zh: '设置已更新,没有新增模型', en: 'Settings updated; no models were added' },
2837
+ 'onboarding-access-added-none': { zh: '这次没有新增可用模型(若取消了登录,可再试一次)', en: 'No new models this time (if you cancelled the sign-in, try again)' },
2838
+ 'onboarding-access-added-none-for': { zh: '{{provider}} 这次没有新增可用模型', en: '{{provider}} brought in no new models this time' },
2839
+ 'onboarding-access-added-auto': { zh: '已接入 {{provider}},默认模型设为 {{name}}', en: 'Adopted {{provider}}; default model set to {{name}}' },
2840
+ 'onboarding-access-added-provider': { zh: '已接入 {{provider}} 的 {{n}} 个模型;默认模型:{{model}}', en: 'Added {{n}} models from {{provider}}; default model: {{model}}' },
2841
+ 'onboarding-access-adopt-title': { zh: '{{provider}} 接入 {{n}} 个可用模型', en: '{{provider}} brought in {{n}} models' },
2842
+ 'onboarding-access-adopt-title-multi': { zh: '接入 {{n}} 个可用模型({{providers}} 个 provider)', en: '{{n}} models became available ({{providers}} providers)' },
2843
+ 'onboarding-access-adopt-note': {
2844
+ zh: '登录后这些模型都已可用(/model 里随时能换);这里只选一个作为默认模型。',
2845
+ en: 'All of these are usable now that you are signed in (switch anytime in /model); this only picks the default model.',
2846
+ },
2847
+ 'onboarding-access-adopt-hint': { zh: '**↑/↓** 移动 · **Enter** 设为默认 · **Esc** 保持当前模型', en: '**↑/↓** moves · **Enter** sets the default · **Esc** keeps the current model' },
2848
+ 'onboarding-access-adopt-cancelled': { zh: '已保持当前模型;新模型都已可用,随时可在 /model 里切换', en: 'Kept the current model; the new models are all available and can be switched in /model anytime' },
2631
2849
  'onboarding-conn-running': { zh: '正在连接 DeepSeek…', en: 'Connecting to DeepSeek…' },
2632
2850
  'onboarding-conn-ok': { zh: '连通正常', en: 'Connected' },
2633
2851
  'onboarding-conn-models': { zh: '{{count}} 个可用模型', en: '{{count}} models available' },
2634
2852
  'onboarding-conn-balance': { zh: '余额 {{amount}}', en: 'Balance {{amount}}' },
2635
2853
  'onboarding-conn-balance-none': { zh: '本次没有返回余额信息', en: 'No balance returned this time' },
2854
+ 'onboarding-conn-skipped': { zh: '已跳过 DeepSeek 余额检查(它只针对 DeepSeek 官方 key);已接入:{{providers}}', en: 'Skipped the DeepSeek balance check (it only covers the DeepSeek official key); connected: {{providers}}' },
2636
2855
  'onboarding-conn-fail-no-key': { zh: '没有可用的凭证,连通性检查没法开始', en: 'No usable credential, so the check cannot start' },
2637
2856
  'onboarding-conn-fail-network': { zh: '网络不通:检查代理、防火墙或离线环境', en: 'Network unreachable: check proxy, firewall or offline setup' },
2638
2857
  'onboarding-conn-fail-unauthorized': { zh: '凭证被拒绝:检查 key 是否复制完整、是否已失效', en: 'Credential rejected: check the key is complete and still valid' },
@@ -2678,7 +2897,7 @@ const dict = {
2678
2897
  zh: '这次引导没能记进 ~/.dsh-tui/onboarding.json,下次启动可能还会再问一次',
2679
2898
  en: 'Could not record the guide in ~/.dsh-tui/onboarding.json, so it may ask again next launch',
2680
2899
  },
2681
- 'cmd-desc-setup': { zh: '重跑首次引导(API Key / 语言主题 / 模型工作区 / 快捷键)' },
2900
+ 'cmd-desc-setup': { zh: '重跑首次引导(账号与模型接入 / 语言主题 / 模型工作区 / 快捷键)' },
2682
2901
  };
2683
2902
  /** The active language, module-level so non-React modules (channel.ts,
2684
2903
  * loaded-context.ts) resolve strings without a context. Defaults to `zh`