@deepseek-harness-tui/dsh-tui 0.17.0 → 0.19.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 (318) hide show
  1. package/README.md +43 -16
  2. package/bin/dsh-tui.js +46 -3
  3. package/cli/adapters/dsh/index.mjs +2 -2
  4. package/guide/dsh-tui-guide/cli.en.md +1 -1
  5. package/guide/dsh-tui-guide/cli.md +1 -1
  6. package/guide/dsh-tui-guide/codex-backend.en.md +2 -2
  7. package/guide/dsh-tui-guide/codex-backend.md +2 -2
  8. package/guide/dsh-tui-guide/configuration.en.md +8 -2
  9. package/guide/dsh-tui-guide/configuration.md +8 -2
  10. package/guide/dsh-tui-guide/getting-started.en.md +174 -6
  11. package/guide/dsh-tui-guide/getting-started.md +125 -15
  12. package/guide/dsh-tui-guide/interaction.en.md +30 -8
  13. package/guide/dsh-tui-guide/interaction.md +18 -5
  14. package/guide/dsh-tui-guide/plugins.en.md +28 -7
  15. package/guide/dsh-tui-guide/plugins.md +18 -5
  16. package/guide/dsh-tui-guide/user-guide.en.md +32 -17
  17. package/guide/dsh-tui-guide/user-guide.md +23 -12
  18. package/lib/settings.json +3 -3
  19. package/lib/types/adapter/channel/ui-policy.d.ts +1 -0
  20. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
  21. package/lib/types/adapter/channel/ui-policy.js +1 -0
  22. package/lib/types/adapter/ports/channel-ui.d.ts +10 -2
  23. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  24. package/lib/types/adapter/ports/channel-view.d.ts +31 -5
  25. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  26. package/lib/types/adapter/standard/grants.d.ts +60 -0
  27. package/lib/types/adapter/standard/grants.d.ts.map +1 -1
  28. package/lib/types/adapter/standard/grants.js +74 -0
  29. package/lib/types/agent/events.d.ts +16 -3
  30. package/lib/types/agent/events.d.ts.map +1 -1
  31. package/lib/types/agent/session.d.ts +5 -0
  32. package/lib/types/agent/session.d.ts.map +1 -1
  33. package/lib/types/backends/claude/translate/core.d.ts +2 -2
  34. package/lib/types/backends/claude/translate/core.d.ts.map +1 -1
  35. package/lib/types/backends/claude/translate/core.js +10 -6
  36. package/lib/types/backends/codex/session/commands.d.ts +2 -0
  37. package/lib/types/backends/codex/session/commands.d.ts.map +1 -1
  38. package/lib/types/backends/codex/session/commands.js +8 -4
  39. package/lib/types/backends/codex/session/input.d.ts +11 -7
  40. package/lib/types/backends/codex/session/input.d.ts.map +1 -1
  41. package/lib/types/backends/codex/session/input.js +68 -15
  42. package/lib/types/backends/codex/session/session.d.ts.map +1 -1
  43. package/lib/types/backends/codex/session/session.js +2 -3
  44. package/lib/types/channel/projection.d.ts.map +1 -1
  45. package/lib/types/channel/projection.js +78 -10
  46. package/lib/types/channel/questions.d.ts +19 -3
  47. package/lib/types/channel/questions.d.ts.map +1 -1
  48. package/lib/types/channel/sanitize.d.ts.map +1 -1
  49. package/lib/types/channel/sanitize.js +8 -4
  50. package/lib/types/channel/subagent-failure.d.ts +49 -0
  51. package/lib/types/channel/subagent-failure.d.ts.map +1 -0
  52. package/lib/types/channel/subagent-failure.js +59 -0
  53. package/lib/types/channel/transcript.d.ts +17 -0
  54. package/lib/types/channel/transcript.d.ts.map +1 -1
  55. package/lib/types/channel/transcript.js +35 -0
  56. package/lib/types/commands.js +2 -2
  57. package/lib/types/components/GoalTodoPanel.d.ts +71 -6
  58. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  59. package/lib/types/components/GoalTodoPanel.js +165 -17
  60. package/lib/types/components/MessageList.d.ts.map +1 -1
  61. package/lib/types/components/MessageList.js +14 -9
  62. package/lib/types/components/PluginGrantList.d.ts +45 -0
  63. package/lib/types/components/PluginGrantList.d.ts.map +1 -0
  64. package/lib/types/components/PluginGrantList.js +126 -0
  65. package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
  66. package/lib/types/components/PluginInstallPane.js +35 -6
  67. package/lib/types/components/PluginManagePane.d.ts.map +1 -1
  68. package/lib/types/components/PluginManagePane.js +65 -8
  69. package/lib/types/components/PromptInput.d.ts.map +1 -1
  70. package/lib/types/components/PromptInput.js +63 -8
  71. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  72. package/lib/types/components/SubagentDashboard.js +17 -1
  73. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  74. package/lib/types/components/SubagentDetailScene.js +12 -0
  75. package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
  76. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  77. package/lib/types/components/messages/AssistantToolUseMessage.js +16 -7
  78. package/lib/types/components/onboardingModel.d.ts +2 -2
  79. package/lib/types/components/onboardingModel.js +3 -3
  80. package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
  81. package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
  82. package/lib/types/components/onboardingProviderPlan.js +78 -0
  83. package/lib/types/components/questions/AskUserQuestionPanel.d.ts +5 -8
  84. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  85. package/lib/types/components/questions/AskUserQuestionPanel.js +7 -4
  86. package/lib/types/components/questions/PlanReviewPanel.d.ts +3 -6
  87. package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
  88. package/lib/types/components/revealScope.d.ts +15 -0
  89. package/lib/types/components/revealScope.d.ts.map +1 -0
  90. package/lib/types/components/revealScope.js +17 -0
  91. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +41 -1
  92. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
  93. package/lib/types/components/sidePanel/btw/BtwComposer.js +123 -6
  94. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
  95. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +9 -2
  96. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
  97. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
  98. package/lib/types/components/sidePanel/btw/BtwThreadScene.js +9 -2
  99. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
  100. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
  101. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
  102. package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
  103. package/lib/types/components/sidePanel/builtinPanels.js +14 -2
  104. package/lib/types/components/sidePanel/types.d.ts +2 -0
  105. package/lib/types/components/sidePanel/types.d.ts.map +1 -1
  106. package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
  107. package/lib/types/components/sidePanel/useSidePanel.js +15 -1
  108. package/lib/types/components/smoothReveal.d.ts +36 -6
  109. package/lib/types/components/smoothReveal.d.ts.map +1 -1
  110. package/lib/types/components/smoothReveal.js +92 -21
  111. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts +4 -14
  112. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
  113. package/lib/types/components/workspaces/HomeWorkspaceRow.js +26 -17
  114. package/lib/types/dsh-adapter/backend/session.d.ts +7 -1
  115. package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
  116. package/lib/types/dsh-adapter/backend/session.js +74 -6
  117. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  118. package/lib/types/dsh-adapter/backend/translate.js +15 -6
  119. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
  120. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
  121. package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
  122. package/lib/types/dsh-adapter/channel/attached-context.d.ts +15 -2
  123. package/lib/types/dsh-adapter/channel/attached-context.d.ts.map +1 -1
  124. package/lib/types/dsh-adapter/channel/attached-context.js +26 -3
  125. package/lib/types/dsh-adapter/channel/binding-events.d.ts +3 -0
  126. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
  127. package/lib/types/dsh-adapter/channel/binding-events.js +43 -2
  128. package/lib/types/dsh-adapter/channel/composer-images.d.ts +2 -0
  129. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
  130. package/lib/types/dsh-adapter/channel/composer-images.js +10 -2
  131. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
  132. package/lib/types/dsh-adapter/channel/composer-mentions.js +22 -7
  133. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +3 -7
  134. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
  135. package/lib/types/dsh-adapter/channel/context-bookkeeping.js +16 -6
  136. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +6 -0
  137. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
  138. package/lib/types/dsh-adapter/channel/core/binding-feed.js +35 -1
  139. package/lib/types/dsh-adapter/channel/core/compose.d.ts +3 -7
  140. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
  141. package/lib/types/dsh-adapter/channel/core/compose.js +6 -1
  142. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
  143. package/lib/types/dsh-adapter/channel/core/local-actions.js +3 -26
  144. package/lib/types/dsh-adapter/channel/emitter.js +1 -1
  145. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  146. package/lib/types/dsh-adapter/channel/extensions.js +8 -0
  147. package/lib/types/dsh-adapter/channel/input-actions.d.ts +4 -4
  148. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
  149. package/lib/types/dsh-adapter/channel/input-actions.js +59 -5
  150. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +3 -7
  151. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
  152. package/lib/types/dsh-adapter/channel/input-delivery.js +21 -8
  153. package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
  154. package/lib/types/dsh-adapter/channel/mentions.js +21 -7
  155. package/lib/types/dsh-adapter/channel/model-actions.d.ts +4 -1
  156. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
  157. package/lib/types/dsh-adapter/channel/model-actions.js +26 -9
  158. package/lib/types/dsh-adapter/channel/model-selection.d.ts +27 -2
  159. package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
  160. package/lib/types/dsh-adapter/channel/model-selection.js +81 -37
  161. package/lib/types/dsh-adapter/channel/model-switch.d.ts +1 -1
  162. package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
  163. package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
  164. package/lib/types/dsh-adapter/channel/paths.js +11 -9
  165. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
  166. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
  167. package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
  168. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
  169. package/lib/types/dsh-adapter/channel/session-reset.js +3 -1
  170. package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
  171. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
  172. package/lib/types/dsh-adapter/channel/session-resume.js +10 -3
  173. package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
  174. package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
  175. package/lib/types/dsh-adapter/channel/session-rewind.js +9 -3
  176. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
  177. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
  178. package/lib/types/dsh-adapter/channel/session-tree-actions.js +11 -5
  179. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  180. package/lib/types/dsh-adapter/channel/settings-host.js +6 -3
  181. package/lib/types/dsh-adapter/channel/transcript.d.ts +3 -2
  182. package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
  183. package/lib/types/dsh-adapter/channel/transcript.js +13 -4
  184. package/lib/types/dsh-adapter/channel/types.d.ts +11 -2
  185. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  186. package/lib/types/dsh-adapter/contract.d.ts +27 -3
  187. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  188. package/lib/types/dsh-adapter/contract.js +47 -5
  189. package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
  190. package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
  191. package/lib/types/dsh-adapter/experimental-bundles.d.ts +3 -0
  192. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
  193. package/lib/types/dsh-adapter/experimental-bundles.js +4 -0
  194. package/lib/types/dsh-adapter/fresh-agent.d.ts +1 -1
  195. package/lib/types/dsh-adapter/fresh-agent.d.ts.map +1 -1
  196. package/lib/types/dsh-adapter/fresh-agent.js +60 -11
  197. package/lib/types/dsh-adapter/grant-file.d.ts +70 -0
  198. package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
  199. package/lib/types/dsh-adapter/grant-file.js +178 -0
  200. package/lib/types/dsh-adapter/host-access.d.ts +4 -0
  201. package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
  202. package/lib/types/dsh-adapter/host-access.js +114 -15
  203. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  204. package/lib/types/dsh-adapter/host-contract.d.ts.map +1 -1
  205. package/lib/types/dsh-adapter/host-contract.js +5 -3
  206. package/lib/types/dsh-adapter/host-dsh.d.ts +0 -8
  207. package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
  208. package/lib/types/dsh-adapter/host-dsh.js +27 -6
  209. package/lib/types/dsh-adapter/host-entry.js +4 -0
  210. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  211. package/lib/types/dsh-adapter/index.js +8 -5
  212. package/lib/types/dsh-adapter/oauth/profiles.d.ts.map +1 -1
  213. package/lib/types/dsh-adapter/oauth/profiles.js +14 -1
  214. package/lib/types/dsh-adapter/panels.d.ts +7 -1
  215. package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
  216. package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
  217. package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
  218. package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
  219. package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
  220. package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
  221. package/lib/types/dsh-adapter/plugin-install.js +160 -13
  222. package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
  223. package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
  224. package/lib/types/dsh-adapter/plugin-manage.js +240 -51
  225. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  226. package/lib/types/dsh-adapter/plugin.js +203 -58
  227. package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
  228. package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
  229. package/lib/types/dsh-adapter/plugins-info.js +34 -21
  230. package/lib/types/dsh-adapter/presets.d.ts +41 -10
  231. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  232. package/lib/types/dsh-adapter/presets.js +59 -12
  233. package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
  234. package/lib/types/dsh-adapter/process-exit.js +1 -1
  235. package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
  236. package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
  237. package/lib/types/dsh-adapter/providerWizard.js +11 -5
  238. package/lib/types/dsh-adapter/questions.d.ts +3 -4
  239. package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
  240. package/lib/types/dsh-adapter/questions.js +1 -1
  241. package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
  242. package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
  243. package/lib/types/dsh-adapter/row-attachment.js +29 -0
  244. package/lib/types/dsh-adapter/session-list-metadata.js +2 -2
  245. package/lib/types/dsh-adapter/subagents.d.ts +5 -0
  246. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  247. package/lib/types/dsh-adapter/subagents.js +22 -1
  248. package/lib/types/dsh-adapter/team-mode.d.ts +17 -10
  249. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  250. package/lib/types/dsh-adapter/team-mode.js +19 -12
  251. package/lib/types/dsh-adapter/tool-scope.d.ts +24 -0
  252. package/lib/types/dsh-adapter/tool-scope.d.ts.map +1 -0
  253. package/lib/types/dsh-adapter/tool-scope.js +127 -0
  254. package/lib/types/dsh-adapter/types.d.ts +2 -1
  255. package/lib/types/dsh-adapter/types.d.ts.map +1 -1
  256. package/lib/types/dsh-adapter/worktree-tool.d.ts +27 -0
  257. package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
  258. package/lib/types/dsh-adapter/worktree-tool.js +87 -0
  259. package/lib/types/heldInputs.d.ts +75 -0
  260. package/lib/types/heldInputs.d.ts.map +1 -0
  261. package/lib/types/heldInputs.js +409 -0
  262. package/lib/types/i18n.d.ts +577 -34
  263. package/lib/types/i18n.d.ts.map +1 -1
  264. package/lib/types/i18n.js +230 -22
  265. package/lib/types/ink/components/App.d.ts +2 -0
  266. package/lib/types/ink/components/App.d.ts.map +1 -1
  267. package/lib/types/ink/components/App.js +8 -0
  268. package/lib/types/ink/events/input-event.d.ts.map +1 -1
  269. package/lib/types/ink/events/input-event.js +7 -6
  270. package/lib/types/ink/hit-test.d.ts +2 -0
  271. package/lib/types/ink/hit-test.d.ts.map +1 -1
  272. package/lib/types/ink/hit-test.js +10 -0
  273. package/lib/types/ink/hooks/use-program-status.d.ts +1 -1
  274. package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -1
  275. package/lib/types/ink/hooks/use-program-status.js +3 -2
  276. package/lib/types/ink/ink.d.ts +1 -0
  277. package/lib/types/ink/ink.d.ts.map +1 -1
  278. package/lib/types/ink/ink.js +5 -2
  279. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  280. package/lib/types/ink/parse-keypress.js +25 -0
  281. package/lib/types/ink/terminal.d.ts +13 -2
  282. package/lib/types/ink/terminal.d.ts.map +1 -1
  283. package/lib/types/ink/terminal.js +29 -5
  284. package/lib/types/onboardingDraft.d.ts +143 -0
  285. package/lib/types/onboardingDraft.d.ts.map +1 -0
  286. package/lib/types/onboardingDraft.js +71 -0
  287. package/lib/types/screens/Chat.d.ts.map +1 -1
  288. package/lib/types/screens/Chat.js +133 -32
  289. package/lib/types/screens/Onboarding.d.ts +22 -3
  290. package/lib/types/screens/Onboarding.d.ts.map +1 -1
  291. package/lib/types/screens/Onboarding.js +606 -36
  292. package/lib/types/screens/SessionSupervisor.d.ts +3 -6
  293. package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
  294. package/lib/types/screens/SessionSupervisor.js +5 -8
  295. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts +1 -2
  296. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
  297. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +2 -2
  298. package/lib/types/screens/sessionSupervisor/model.d.ts +1 -1
  299. package/lib/types/screens/sessionSupervisor/model.js +1 -1
  300. package/lib/types/sessionMounts.d.ts +12 -5
  301. package/lib/types/sessionMounts.d.ts.map +1 -1
  302. package/lib/types/sessionMounts.js +33 -6
  303. package/lib/types/settings/definitions.js +2 -2
  304. package/lib/types/update.d.ts +412 -20
  305. package/lib/types/update.d.ts.map +1 -1
  306. package/lib/types/update.js +2094 -193
  307. package/lib/types/updateHost.d.ts +198 -0
  308. package/lib/types/updateHost.d.ts.map +1 -0
  309. package/lib/types/updateHost.js +608 -0
  310. package/lib/types/utils/paths.d.ts +15 -0
  311. package/lib/types/utils/paths.d.ts.map +1 -1
  312. package/lib/types/utils/paths.js +25 -0
  313. package/lib/types/utils/processName.d.ts +16 -0
  314. package/lib/types/utils/processName.d.ts.map +1 -0
  315. package/lib/types/utils/processName.js +27 -0
  316. package/package.json +114 -108
  317. package/tui-profile/feed/README.md +1 -1
  318. package/tui-profile/feed/first-party.json +1 -1
@@ -18,7 +18,6 @@
18
18
  import type { Context } from '@deepseek-ai/cordis';
19
19
  import type { AgentSetup } from '@deepseek-ai/dsh-agent';
20
20
  import type { SessionId } from '@deepseek-ai/dsh-session';
21
- import type { PromptAssembly } from '@deepseek-ai/dsh-system-prompt';
22
21
  import { type ModelRoute } from '../modelRoute.js';
23
22
  /** The composition inputs for `agents.create`/`agents.resume`. */
24
23
  export interface PresetComposition {
@@ -106,24 +105,56 @@ export declare function presetHidesHostAskTool(presetId: string | undefined): bo
106
105
  * exactly one persistent shell tool, and host-layer contributors the person
107
106
  * switched on elsewhere must not become extra ones.
108
107
  *
109
- * Two such contributors are carved out here:
108
+ * The carve-outs live in two places since 0.2.2 split the prompt assembly
109
+ * from the tool declarations: this section filter, and `presetToolDeny`
110
+ * below, which {@link ./tool-scope.ts} hands to the registry's
111
+ * `tools.restrict()` on each agent's own scope. Both cover:
110
112
  * - the host-mounted `ask_user_question` (see `presetHidesHostAskTool`);
111
113
  * - `@deepseek-ai/dsh-experimental-session-search`, which registers five
112
114
  * read-only tools AND a usage-guidance section. The upstream bundle promises
113
115
  * "every preset including minimal"; this app intentionally deviates, because
114
116
  * Minimal's published promise is one persistent shell and a TUI process runs
115
- * sessions under several presets at once — hence an assembly-boundary filter
116
- * rather than a registry (or shell-whitelist) decision that would leak.
117
+ * sessions under several presets at once — hence a per-agent scope
118
+ * restriction rather than a global registry decision that would leak;
119
+ * - `@deepseek-ai/dsh-experimental-tool-worktree`'s `create_worktree` (one
120
+ * host-layer tool, no section), which would move the session away from the
121
+ * persistent shell.
117
122
  *
118
- * This is per-assembly because one TUI process can resume, create, or
119
- * recompose sessions under different presets. The session log remains the
120
- * source of truth for the active preset.
123
+ * This is per-agent because one TUI process can resume, create, or recompose
124
+ * sessions under different presets. The session log remains the source of
125
+ * truth for the active preset.
121
126
  *
122
- * @param assembly - Fully assembled prompt inputs for one model request.
127
+ * @param assembly - Prompt presentation for one model request.
123
128
  * @param presetId - Preset recorded for the requesting session.
124
- * @returns The original assembly when nothing is carved out, else the filtered copy.
129
+ * @returns The original presentation when nothing is carved out, else the filtered copy.
125
130
  */
126
- export declare function filterMinimalPresetTools(assembly: PromptAssembly, presetId: string | undefined): PromptAssembly;
131
+ export declare function filterMinimalPresetSections<T extends {
132
+ readonly sections: readonly {
133
+ readonly name: string;
134
+ }[];
135
+ }>(assembly: T, presetId: string | undefined): T;
136
+ /**
137
+ * Legacy hosts let the assembly waterfall own tool declarations. Keep the same
138
+ * safety carve-outs there; 0.2.2 presentations have no `tools` and use the
139
+ * registry restrictions instead. The structural type accepts both API lines.
140
+ */
141
+ export declare function filterMinimalPresetTools<T extends {
142
+ readonly sections: readonly {
143
+ readonly name: string;
144
+ }[];
145
+ readonly tools?: readonly {
146
+ readonly name: string;
147
+ }[];
148
+ }>(assembly: T, presetId: string | undefined): T;
149
+ /**
150
+ * Host-layer tools the preset must not expose, for the per-agent registry
151
+ * restriction (`tools.restrict()`); see {@link filterMinimalPresetSections}
152
+ * for why these carve-outs exist.
153
+ *
154
+ * @param presetId - Preset recorded for the requesting session.
155
+ * @returns Tool names to deny on that agent, empty when the preset is untouched.
156
+ */
157
+ export declare function presetToolDeny(presetId: string | undefined): readonly string[];
127
158
  /**
128
159
  * Read a service the way a joined agent sees it: through the preset scope
129
160
  * chain when a roster is mounted (preset realms hide e.g. `compaction` from
@@ -1 +1 @@
1
- {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/presets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAg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AE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,CAK/J;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS;IACjD,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACvD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACtD,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,CAAC,CAM/C;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,MAAM,EAAE,CAO9E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAKpG"}
@@ -19,6 +19,7 @@ import { recordedModelRoute } from '../modelRoute.js';
19
19
  import { snapshotLiveSessionEvents } from './compat/liveSession.js';
20
20
  import { readPersistedSession } from './compat/persistence.js';
21
21
  import { resolveCompatiblePreset, resolveRecordedPreset, rosterOf, } from './preset-resolution.js';
22
+ import { WORKTREE_TOOL } from './worktree-tool.js';
22
23
  const ASK_USER_TOOL = 'ask_user_question';
23
24
  /**
24
25
  * The prompt section `@deepseek-ai/dsh-experimental-session-search` contributes
@@ -49,6 +50,16 @@ const SESSION_SEARCH_TOOLS = new Set([
49
50
  function isMinimalPreset(presetId) {
50
51
  return presetId === 'minimal';
51
52
  }
53
+ /**
54
+ * Presets whose `bash` is the official persistent shell, which starts in the
55
+ * directory of its first call and never follows a later move: Minimal, and
56
+ * the bundled liangshen preset (the same shell on POSIX; its Windows
57
+ * `custom-bash` does follow, but one rule for both platforms keeps this a
58
+ * preset decision). After a worktree switch that shell would keep editing the
59
+ * source checkout, so these presets are not offered `create_worktree` until the
60
+ * shell follows the session directory (#1738).
61
+ */
62
+ const PERSISTENT_SHELL_PRESETS = new Set(['minimal', 'liangshen']);
52
63
  /**
53
64
  * Resolve the preset one new/resumed session will run under and the setup
54
65
  * that installs it. `requested` undefined adopts the roster default.
@@ -178,31 +189,67 @@ export function presetHidesHostAskTool(presetId) {
178
189
  * exactly one persistent shell tool, and host-layer contributors the person
179
190
  * switched on elsewhere must not become extra ones.
180
191
  *
181
- * Two such contributors are carved out here:
192
+ * The carve-outs live in two places since 0.2.2 split the prompt assembly
193
+ * from the tool declarations: this section filter, and `presetToolDeny`
194
+ * below, which {@link ./tool-scope.ts} hands to the registry's
195
+ * `tools.restrict()` on each agent's own scope. Both cover:
182
196
  * - the host-mounted `ask_user_question` (see `presetHidesHostAskTool`);
183
197
  * - `@deepseek-ai/dsh-experimental-session-search`, which registers five
184
198
  * read-only tools AND a usage-guidance section. The upstream bundle promises
185
199
  * "every preset including minimal"; this app intentionally deviates, because
186
200
  * Minimal's published promise is one persistent shell and a TUI process runs
187
- * sessions under several presets at once — hence an assembly-boundary filter
188
- * rather than a registry (or shell-whitelist) decision that would leak.
201
+ * sessions under several presets at once — hence a per-agent scope
202
+ * restriction rather than a global registry decision that would leak;
203
+ * - `@deepseek-ai/dsh-experimental-tool-worktree`'s `create_worktree` (one
204
+ * host-layer tool, no section), which would move the session away from the
205
+ * persistent shell.
189
206
  *
190
- * This is per-assembly because one TUI process can resume, create, or
191
- * recompose sessions under different presets. The session log remains the
192
- * source of truth for the active preset.
207
+ * This is per-agent because one TUI process can resume, create, or recompose
208
+ * sessions under different presets. The session log remains the source of
209
+ * truth for the active preset.
193
210
  *
194
- * @param assembly - Fully assembled prompt inputs for one model request.
211
+ * @param assembly - Prompt presentation for one model request.
195
212
  * @param presetId - Preset recorded for the requesting session.
196
- * @returns The original assembly when nothing is carved out, else the filtered copy.
213
+ * @returns The original presentation when nothing is carved out, else the filtered copy.
197
214
  */
198
- export function filterMinimalPresetTools(assembly, presetId) {
215
+ export function filterMinimalPresetSections(assembly, presetId) {
199
216
  if (!isMinimalPreset(presetId))
200
217
  return assembly;
201
- const tools = assembly.tools.filter(tool => tool.name !== ASK_USER_TOOL && !SESSION_SEARCH_TOOLS.has(tool.name));
202
218
  const sections = assembly.sections.filter(section => section.name !== SESSION_SEARCH_SECTION);
203
- if (tools.length === assembly.tools.length && sections.length === assembly.sections.length)
219
+ if (sections.length === assembly.sections.length)
204
220
  return assembly;
205
- return { ...assembly, tools, sections };
221
+ return { ...assembly, sections };
222
+ }
223
+ /**
224
+ * Legacy hosts let the assembly waterfall own tool declarations. Keep the same
225
+ * safety carve-outs there; 0.2.2 presentations have no `tools` and use the
226
+ * registry restrictions instead. The structural type accepts both API lines.
227
+ */
228
+ export function filterMinimalPresetTools(assembly, presetId) {
229
+ const presentation = filterMinimalPresetSections(assembly, presetId);
230
+ if (presentation.tools === undefined)
231
+ return presentation;
232
+ const deny = new Set(presetToolDeny(presetId));
233
+ const tools = presentation.tools.filter(tool => !deny.has(tool.name));
234
+ return tools.length === presentation.tools.length ? presentation : { ...presentation, tools };
235
+ }
236
+ /**
237
+ * Host-layer tools the preset must not expose, for the per-agent registry
238
+ * restriction (`tools.restrict()`); see {@link filterMinimalPresetSections}
239
+ * for why these carve-outs exist.
240
+ *
241
+ * @param presetId - Preset recorded for the requesting session.
242
+ * @returns Tool names to deny on that agent, empty when the preset is untouched.
243
+ */
244
+ export function presetToolDeny(presetId) {
245
+ const minimal = isMinimalPreset(presetId);
246
+ const persistentShell = presetId !== undefined && PERSISTENT_SHELL_PRESETS.has(presetId);
247
+ const deny = [];
248
+ if (persistentShell)
249
+ deny.push(WORKTREE_TOOL);
250
+ if (minimal)
251
+ deny.push(ASK_USER_TOOL, ...SESSION_SEARCH_TOOLS);
252
+ return deny;
206
253
  }
207
254
  /**
208
255
  * Read a service the way a joined agent sees it: through the preset scope
@@ -23,7 +23,7 @@ export type ExitRequestAnswer = 'exiting' | 'pending' | 'supervising' | 'refused
23
23
  export interface ProcessExitSeam {
24
24
  request?: (request: ExitRequest) => ExitRequestAnswer;
25
25
  }
26
- /** dsh `process-shutdown` PROCESS_SHUTDOWN_TIMEOUT_MS (0.2.1-rc.3): the dispose bound. */
26
+ /** dsh `process-shutdown` PROCESS_SHUTDOWN_TIMEOUT_MS (0.2.2-rc.1): the dispose bound. */
27
27
  export declare const PROCESS_SHUTDOWN_TIMEOUT_MS = 5000;
28
28
  /**
29
29
  * End the process by `signal`. Only the entry's own listeners come off, so the
@@ -6,7 +6,7 @@
6
6
  * tmux and service managers); a second signal forces the exit at once.
7
7
  */
8
8
  export const TERMINATION_SIGNALS = ['SIGTERM', 'SIGHUP', 'SIGINT'];
9
- /** dsh `process-shutdown` PROCESS_SHUTDOWN_TIMEOUT_MS (0.2.1-rc.3): the dispose bound. */
9
+ /** dsh `process-shutdown` PROCESS_SHUTDOWN_TIMEOUT_MS (0.2.2-rc.1): the dispose bound. */
10
10
  export const PROCESS_SHUTDOWN_TIMEOUT_MS = 5000;
11
11
  /** Last-resort bound for a funnel exit: outlasts its terminal cleanup plus the dispose bound. */
12
12
  const BACKSTOP_MS = PROCESS_SHUTDOWN_TIMEOUT_MS + 2000;
@@ -24,6 +24,8 @@ export interface ProviderWizardDeps {
24
24
  /** Live turn state; the model-switch question is skipped while working. */
25
25
  readonly working: () => boolean;
26
26
  readonly switchModel: (provider: string, model: string) => Promise<boolean>;
27
+ /** The live model id, named on the switch question's keep option when known. */
28
+ readonly currentModel?: () => string | undefined;
27
29
  }
28
30
  export type ProviderWizardOutcome = 'added' | 'updated' | 'deleted' | 'signed-out' | 'cancelled' | 'failed';
29
31
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"providerWizard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C,CAAA;IAC3E,gFAAgF;IAChF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;CACjD;AAED,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAA;AAqE3G;;;;;;;;;;;;GAYG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,qBAAqB,CAAC,CA8BhC;AA0yBD;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAC,EAC9D,KAAK,EAAE,cAAc,EACrB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,qBAAqB,CAAC,CAEhC;AA2HD,8DAA8D;AAC9D,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAA;AACrE,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAA;AACxE,MAAM,MAAM,oBAAoB,GAC5B,aAAa,GACb,qBAAqB,GACrB,gBAAgB,CAAA;AAEpB,qEAAqE;AACrE,MAAM,WAAW,cAAc;IAC7B;uEACmE;IACnE,QAAQ,CAAC,IAAI,EAAE,SAAS,kBAAkB,EAAE,CAAA;IAC5C,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IACxC,8DAA8D;IAC9D,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;IACjC,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAA;CACvC"}
@@ -335,16 +335,22 @@ async function runAddFlow(deps) {
335
335
  ]);
336
336
  notify(t('provider-success', { route }), { color: 'success' });
337
337
  if (!deps.working() && models.length > 0) {
338
- const target = models[0];
338
+ // Every enabled model is offered, so with several the user names the
339
+ // default explicitly instead of getting the first one or nothing (#1646).
340
+ const current = deps.currentModel?.();
339
341
  const switchAnswer = await ask({
340
342
  questions: [optionQuestion('switch', t('provider-q-switch'), [
341
- { label: t('provider-opt-switch-now', { model: target }) },
342
- { label: t('provider-opt-switch-keep') },
343
+ ...models.map(model => ({ label: t('provider-opt-switch-now', { model }) })),
344
+ {
345
+ label: t('provider-opt-switch-keep'),
346
+ ...(current === undefined ? {} : { description: t('provider-opt-switch-keep-desc', { model: current }) }),
347
+ },
343
348
  ], { hideCustomInput: true })],
344
349
  });
345
- if (answerSelected(switchAnswer, 'switch')[0] === t('provider-opt-switch-now', { model: target })) {
350
+ const picked = answerSelected(switchAnswer, 'switch')[0];
351
+ const target = models.find(model => picked === t('provider-opt-switch-now', { model }));
352
+ if (target !== undefined)
346
353
  await deps.switchModel(route, target);
347
- }
348
354
  }
349
355
  return 'added';
350
356
  }
@@ -18,8 +18,7 @@
18
18
  */
19
19
  import { compositionRoot } from './host-access.js';
20
20
  import { type AdapterRuntimeOptions } from '../adapter/kernel/runtime.js';
21
- import { type AskUserQuestionAnswer, type AskUserQuestionRequest } from '@deepseek-ai/dsh-user-questions';
22
- import { QuestionStore as SharedQuestionStore } from '../channel/questions.js';
21
+ import { QuestionStore as SharedQuestionStore, type QuestionAnswer, type QuestionRequest } from '../channel/questions.js';
23
22
  export type { QuestionDraft, QuestionSelection, QuestionSnapshot } from '../channel/questions.js';
24
23
  /** The shared store, rejecting interruptions with the DSH protocol error. */
25
24
  export declare class QuestionStore extends SharedQuestionStore {
@@ -31,9 +30,9 @@ export declare class QuestionStore extends SharedQuestionStore {
31
30
  * capability's audited entry (`verify:adapter-shadow`), and again,
32
31
  * idempotently, by the shared store every asker goes through.
33
32
  */
34
- ask(request: AskUserQuestionRequest, options?: {
33
+ ask(request: QuestionRequest, options?: {
35
34
  redact?: boolean;
36
- }): Promise<AskUserQuestionAnswer>;
35
+ }): Promise<QuestionAnswer>;
37
36
  }
38
37
  /** Host-only registration used by the TUI plugin bootstrap. */
39
38
  export declare function bindQuestionStore(ctx: Parameters<typeof compositionRoot>[0], store: QuestionStore): void;
@@ -1 +1 @@
1
- {"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/questions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC5B,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE9E,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAEjG,6EAA6E;AAC7E,qBAAa,aAAc,SAAQ,mBAAmB;gBACxC,OAAO,GAAE,qBAA+C;IAIpE;;;;;;OAMG;IACM,GAAG,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAI9G;AAID,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAGxG;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,aAAa,GAAG,SAAS,CAGtG"}
1
+ {"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/questions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAEzH,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAEjG,6EAA6E;AAC7E,qBAAa,aAAc,SAAQ,mBAAmB;gBACxC,OAAO,GAAE,qBAA+C;IAIpE;;;;;;OAMG;IACM,GAAG,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC;CAIhG;AAID,+DAA+D;AAC/D,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAGxG;AAED,6DAA6D;AAC7D,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,aAAa,GAAG,SAAS,CAGtG"}
@@ -18,7 +18,7 @@
18
18
  */
19
19
  import { compositionRoot } from './host-access.js';
20
20
  import { assertCapabilityShadowPolicy, defaultAdapterRuntime, } from '../adapter/kernel/runtime.js';
21
- import { UserQuestionError, } from '@deepseek-ai/dsh-user-questions';
21
+ import { UserQuestionError } from '@deepseek-ai/dsh-user-questions';
22
22
  import { QuestionStore as SharedQuestionStore } from '../channel/questions.js';
23
23
  /** The shared store, rejecting interruptions with the DSH protocol error. */
24
24
  export class QuestionStore extends SharedQuestionStore {
@@ -0,0 +1,30 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import type { EntrySlot } from './entry-slot.js';
3
+ /** What the entry's runtime lends the `dsh-tui` row hand-off (#1651). */
4
+ export interface RowAttachmentDeps {
5
+ /** The composition failed or the process is leaving: no row takes over. */
6
+ closed(): boolean;
7
+ /** The screen's channel can resume a session. */
8
+ ready(): boolean;
9
+ /** Mount the row's seams (presets, ask_user, approvals, the assembly
10
+ * filters) on its context; they unload with it. */
11
+ mountSeams(rowCtx: Context): Promise<void>;
12
+ /** A returning row's config becomes the screen's. */
13
+ readConfig(rowRuntimeConfig: unknown): void;
14
+ /** The screen's session ended with the previous row. */
15
+ ended(): boolean;
16
+ /** Reopen the ended session; it outlives the row that triggered it. */
17
+ reopen(): Promise<void>;
18
+ /** A reattach failed: the screen keeps the ended session. */
19
+ failed(error: unknown): void;
20
+ }
21
+ export interface RowAttachment {
22
+ /** Mount a row's seams; the row counts as mounted until its context unloads. */
23
+ mount(rowCtx: Context): Promise<void>;
24
+ /** The `EntrySlot.reattachDsh` hook: undefined while a row is mounted. */
25
+ reattach(): EntrySlot['attachDsh'];
26
+ }
27
+ /** The row seams the entry's DSH side mounts on the first `dsh-tui` row and
28
+ * again on any row that applies after the previous one unloaded. */
29
+ export declare function createRowAttachment(deps: RowAttachmentDeps): RowAttachment;
30
+ //# sourceMappingURL=row-attachment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-attachment.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/row-attachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,yEAAyE;AACzE,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,MAAM,IAAI,OAAO,CAAA;IACjB,iDAAiD;IACjD,KAAK,IAAI,OAAO,CAAA;IAChB;wDACoD;IACpD,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1C,qDAAqD;IACrD,UAAU,CAAC,gBAAgB,EAAE,OAAO,GAAG,IAAI,CAAA;IAC3C,wDAAwD;IACxD,KAAK,IAAI,OAAO,CAAA;IAChB,uEAAuE;IACvE,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACvB,6DAA6D;IAC7D,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,gFAAgF;IAChF,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACrC,0EAA0E;IAC1E,QAAQ,IAAI,SAAS,CAAC,WAAW,CAAC,CAAA;CACnC;AAED;qEACqE;AACrE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,GAAG,aAAa,CAsB1E"}
@@ -0,0 +1,29 @@
1
+ /** The row seams the entry's DSH side mounts on the first `dsh-tui` row and
2
+ * again on any row that applies after the previous one unloaded. */
3
+ export function createRowAttachment(deps) {
4
+ let mounted = false;
5
+ const mount = async (rowCtx) => {
6
+ mounted = true;
7
+ rowCtx.effect(() => () => { mounted = false; });
8
+ await deps.mountSeams(rowCtx);
9
+ };
10
+ const reattach = () => {
11
+ if (deps.closed() || mounted || !deps.ready())
12
+ return undefined;
13
+ return async (rowCtx, rowRuntimeConfig) => {
14
+ if (deps.closed() || mounted)
15
+ return;
16
+ try {
17
+ // The row may come back with a changed config: read it like the first.
18
+ deps.readConfig(rowRuntimeConfig);
19
+ await mount(rowCtx);
20
+ if (deps.ended())
21
+ await deps.reopen();
22
+ }
23
+ catch (error) {
24
+ deps.failed(error);
25
+ }
26
+ };
27
+ };
28
+ return { mount, reattach };
29
+ }
@@ -36,13 +36,13 @@ function sessionListMetadataDefinition() {
36
36
  }
37
37
  /** Register before creating the boot agent, so its first checkpoint has the key. */
38
38
  export function attachSessionListMetadata(ctx) {
39
- ctx.inject(['sessionProjections'], ((projectionCtx) => {
39
+ ctx.inject(['sessionProjections'], (async (projectionCtx) => {
40
40
  const registry = projectionCtx.sessionProjections;
41
41
  if (typeof registry?.register !== 'function')
42
42
  return;
43
43
  try {
44
44
  // The host binds this registration to the calling context's fiber.
45
- registry.register(sessionListMetadataDefinition());
45
+ await registry.register(sessionListMetadataDefinition());
46
46
  }
47
47
  catch (error) {
48
48
  try {
@@ -109,6 +109,11 @@ export declare class SubagentActivityStore {
109
109
  onFailed(agentId: string, error: string, endedAt?: number): void;
110
110
  onCancelled(agentId: string, reason?: string, summary?: string, endedAt?: number): void;
111
111
  private finish;
112
+ /** Keep this run's outcome before a continuable child opens its next run
113
+ * under the same `agentId`. `finish` accepts only the first terminal edge,
114
+ * so one run records once; the `known` branch only absorbs a durable replay
115
+ * of the same settlement. */
116
+ private recordSettledRun;
112
117
  /** Drop all tracked subagents and session links (session swap: the old
113
118
  * session's children were disposed with their parent — nothing may keep
114
119
  * routing events of a session the channel no longer projects). The
@@ -1 +1 @@
1
- {"version":3,"file":"subagents.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/subagents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAIlE,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,aAAa,EAAsC,kBAAkB,EAAE,gBAAgB,EAAsB,MAAM,kCAAkC,CAAA;AACxM,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAQtL;gCACgC;AAChC,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,QAAQ,EAAE,gBAAgB,CAAA;CAC3B;AAaD,qBAAa,qBAAqB;IAChC,OAAO,CAAC,MAAM,CAAmC;IACjD,OAAO,CAAC,cAAc,CAA6B;IACnD,OAAO,CAAC,SAAS,CAAwB;IACzC,OAAO,CAAC,OAAO,CAA2C;IAC1D,+DAA+D;IAC/D,OAAO,CA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,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAE5F,OAAO,CAAC,MAAM;IAwBd;;;kCAG8B;IAC9B,OAAO,CAAC,gBAAgB;IAUxB;;;sDAGkD;IAClD,KAAK,IAAI,IAAI;IAYb,QAAQ,IAAI,aAAa,EAAE;IAC3B,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAC/C,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAC3C,OAAO,CAAC,MAAM;CACf"}
@@ -3,6 +3,10 @@ import { toolResultPayload } from './compat/messages.js';
3
3
  import { toolFailureText } from './channel/transcript.js';
4
4
  const MAX_OUTPUT_EVENTS = 160;
5
5
  const MAX_OUTPUT_LINES = 160;
6
+ /** Settled runs kept per child. A continuable child can open runs forever, so
7
+ * the history is bounded; the banner only needs recent runs to reach its
8
+ * two-failure floor. */
9
+ const MAX_SETTLED_RUNS = 32;
6
10
  /** Keyed labels parked before their row exists (see `earlyLabels`). */
7
11
  const MAX_EARLY_LABELS = 64;
8
12
  export class SubagentActivityStore {
@@ -73,6 +77,7 @@ export class SubagentActivityStore {
73
77
  sessionId: info.sessionId,
74
78
  output: [],
75
79
  outputEvents: [],
80
+ settledRuns: [],
76
81
  toolCalls: [],
77
82
  ...(info.parentAgentId === undefined ? {} : { parentAgentId: info.parentAgentId }),
78
83
  });
@@ -535,8 +540,24 @@ export class SubagentActivityStore {
535
540
  state.summary = summary;
536
541
  if (status === 'failed')
537
542
  state.error = reason;
543
+ this.recordSettledRun(state, status);
538
544
  this.notify();
539
545
  }
546
+ /** Keep this run's outcome before a continuable child opens its next run
547
+ * under the same `agentId`. `finish` accepts only the first terminal edge,
548
+ * so one run records once; the `known` branch only absorbs a durable replay
549
+ * of the same settlement. */
550
+ recordSettledRun(state, status) {
551
+ const runId = state.runId ?? state.agentId;
552
+ const runs = [...(state.settledRuns ?? [])];
553
+ const entry = { runId, provider: state.provider, status };
554
+ const known = runs.findIndex(run => run.runId === runId);
555
+ if (known >= 0)
556
+ runs[known] = entry;
557
+ else
558
+ runs.push(entry);
559
+ state.settledRuns = runs.length > MAX_SETTLED_RUNS ? runs.slice(-MAX_SETTLED_RUNS) : runs;
560
+ }
540
561
  /** Drop all tracked subagents and session links (session swap: the old
541
562
  * session's children were disposed with their parent — nothing may keep
542
563
  * routing events of a session the channel no longer projects). The
@@ -552,7 +573,7 @@ export class SubagentActivityStore {
552
573
  this.earlyLabels.clear();
553
574
  this.notify();
554
575
  }
555
- snapshot() { return Array.from(this.states.values()).map(state => ({ ...state, output: [...state.output], outputEvents: [...state.outputEvents], toolCalls: state.toolCalls.map(tool => ({ ...tool })), tokens: state.tokens ? { ...state.tokens } : undefined })); }
576
+ snapshot() { return Array.from(this.states.values()).map(state => ({ ...state, output: [...state.output], outputEvents: [...state.outputEvents], toolCalls: state.toolCalls.map(tool => ({ ...tool })), tokens: state.tokens ? { ...state.tokens } : undefined, settledRuns: state.settledRuns?.map(run => ({ ...run })) })); }
556
577
  get(agentId) { return this.snapshot().find(state => state.agentId === agentId); }
557
578
  subscribe(listener) { this.listeners.add(listener); return () => this.listeners.delete(listener); }
558
579
  notify() { for (const listener of this.listeners)
@@ -17,7 +17,6 @@
17
17
  * @module
18
18
  */
19
19
  import type { Context } from '@deepseek-ai/cordis';
20
- import type { PromptAssembly } from '@deepseek-ai/dsh-system-prompt';
21
20
  import type { LocalCommand } from '../commands.js';
22
21
  import type { TeamActiveMembers } from './plugin-manage.js';
23
22
  /**
@@ -38,16 +37,24 @@ export declare function teamServiceActive(ctx: Context): boolean;
38
37
  export declare function withTeamCommandVisibility(commands: readonly LocalCommand[], visible: boolean): readonly LocalCommand[];
39
38
  /**
40
39
  * Keep one delegation tool set per request. Presets keep their legacy rows,
41
- * so whether the team replaces them is decided where the tools are known: an
42
- * assembly carrying `spawn_teammate` drops `subagent` / `subagent_fork`. This
43
- * follows a bundle toggled at run time into the sessions already joined (a
44
- * preset revision cannot), and a team service that never activated leaves the
45
- * legacy tools in place. The agent loop diffs these final tools against the
46
- * logged request header, so the model is told about each swap.
47
- * @param assembly - Fully assembled prompt inputs for one model request.
48
- * @returns The original assembly, or a copy without the replaced tools.
40
+ * so whether the team replaces them is decided where the tools are known: a
41
+ * registry carrying `spawn_teammate` drops `subagent` / `subagent_fork` on the
42
+ * agent's own scope (the assembly no longer carries tool declarations since
43
+ * 0.2.2). This follows a bundle toggled at run time into the sessions already
44
+ * joined (a preset revision cannot), and a team service that never activated
45
+ * leaves the legacy tools in place.
46
+ *
47
+ * @param registered - Effective agent tool names, including inherited preset tools.
48
+ * @returns The replaced tool names to deny, empty when the team is inactive.
49
49
  */
50
- export declare function filterTeamReplacedTools(assembly: PromptAssembly): PromptAssembly;
50
+ export declare function teamReplacedToolDeny(registered: ReadonlySet<string>): readonly string[];
51
+ /** Keep the legacy final-assembly seam; new presentations carry no tools. */
52
+ export declare function filterTeamReplacedTools<T extends {
53
+ readonly sections: readonly unknown[];
54
+ readonly tools?: readonly {
55
+ readonly name: string;
56
+ }[];
57
+ }>(assembly: T): T;
51
58
  /** What `/team` was asked. */
52
59
  export type TeamCommand = {
53
60
  readonly kind: 'status';
@@ -1 +1 @@
1
- {"version":3,"file":"team-mode.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/team-mode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAS3D;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAEvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBA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E,MAAM,EAAE,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAA;AAElG;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE;IAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAO,GAC1D,gBAAgB,CAiBlB"}
@@ -34,21 +34,28 @@ export function withTeamCommandVisibility(commands, visible) {
34
34
  const TEAM_REPLACED_TOOLS = new Set(['subagent', 'subagent_fork']);
35
35
  /**
36
36
  * Keep one delegation tool set per request. Presets keep their legacy rows,
37
- * so whether the team replaces them is decided where the tools are known: an
38
- * assembly carrying `spawn_teammate` drops `subagent` / `subagent_fork`. This
39
- * follows a bundle toggled at run time into the sessions already joined (a
40
- * preset revision cannot), and a team service that never activated leaves the
41
- * legacy tools in place. The agent loop diffs these final tools against the
42
- * logged request header, so the model is told about each swap.
43
- * @param assembly - Fully assembled prompt inputs for one model request.
44
- * @returns The original assembly, or a copy without the replaced tools.
37
+ * so whether the team replaces them is decided where the tools are known: a
38
+ * registry carrying `spawn_teammate` drops `subagent` / `subagent_fork` on the
39
+ * agent's own scope (the assembly no longer carries tool declarations since
40
+ * 0.2.2). This follows a bundle toggled at run time into the sessions already
41
+ * joined (a preset revision cannot), and a team service that never activated
42
+ * leaves the legacy tools in place.
43
+ *
44
+ * @param registered - Effective agent tool names, including inherited preset tools.
45
+ * @returns The replaced tool names to deny, empty when the team is inactive.
45
46
  */
47
+ export function teamReplacedToolDeny(registered) {
48
+ if (!registered.has(TEAM_SPAWN_TOOL))
49
+ return [];
50
+ return [...TEAM_REPLACED_TOOLS].filter(name => registered.has(name));
51
+ }
52
+ /** Keep the legacy final-assembly seam; new presentations carry no tools. */
46
53
  export function filterTeamReplacedTools(assembly) {
47
- if (!assembly.tools.some(tool => tool.name === TEAM_SPAWN_TOOL))
48
- return assembly;
49
- if (!assembly.tools.some(tool => TEAM_REPLACED_TOOLS.has(tool.name)))
54
+ if (assembly.tools === undefined)
50
55
  return assembly;
51
- return { ...assembly, tools: assembly.tools.filter(tool => !TEAM_REPLACED_TOOLS.has(tool.name)) };
56
+ const deny = new Set(teamReplacedToolDeny(new Set(assembly.tools.map(tool => tool.name))));
57
+ const tools = assembly.tools.filter(tool => !deny.has(tool.name));
58
+ return tools.length === assembly.tools.length ? assembly : { ...assembly, tools };
52
59
  }
53
60
  export function parseTeamArgs(args) {
54
61
  const sub = args.trim().split(/\s+/)[0] ?? '';
@@ -0,0 +1,24 @@
1
+ /** Per-agent preset/team tool visibility on the 0.2.2 registry seam.
2
+ * Older hosts retain the final assembly filters in plugin.ts instead.
3
+ */
4
+ import type { Context } from '@deepseek-ai/cordis';
5
+ /** The agent shape the restriction needs; no driver implementation is owned here. */
6
+ export interface ScopedAgentLike {
7
+ readonly ctx: Context;
8
+ readonly session: unknown;
9
+ }
10
+ export interface ToolScope {
11
+ /** Track an existing agent and refresh the composition's live scopes. */
12
+ apply(agent: ScopedAgentLike): void;
13
+ }
14
+ /**
15
+ * Keep one exact restriction per live agent, including background/child agents
16
+ * that never bind to the screen. Agent publication awaits agent/created, so its
17
+ * restriction is installed before the factory releases any queued work.
18
+ *
19
+ * @param ctx - Composition context supplying the registry and lifecycle events.
20
+ * @param own - Channel lifetime funnel; releases listeners and every owned mask.
21
+ * @param currentAgent - Initial/borrowed foreground not necessarily in the registry.
22
+ */
23
+ export declare function createToolScope(ctx: Context, own: (dispose: () => void) => void, currentAgent: () => ScopedAgentLike | undefined): ToolScope;
24
+ //# sourceMappingURL=tool-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-scope.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/tool-scope.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAclD,qFAAqF;AACrF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,SAAS;IACxB,yEAAyE;IACzE,KAAK,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAA;CACpC;AAMD;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,IAAI,EAClC,YAAY,EAAE,MAAM,eAAe,GAAG,SAAS,GAC9C,SAAS,CA6FX"}