@deepseek-harness-tui/dsh-tui 0.18.0 → 0.20.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 +90 -59
  2. package/bin/dsh-tui.js +46 -3
  3. package/cordis.patch.yml +5 -3
  4. package/cordis.yml +3 -2
  5. package/guide/dsh-tui-guide/codex-backend.en.md +2 -2
  6. package/guide/dsh-tui-guide/codex-backend.md +2 -2
  7. package/guide/dsh-tui-guide/configuration.en.md +7 -2
  8. package/guide/dsh-tui-guide/configuration.md +7 -2
  9. package/guide/dsh-tui-guide/getting-started.en.md +168 -4
  10. package/guide/dsh-tui-guide/getting-started.md +121 -14
  11. package/guide/dsh-tui-guide/interaction.en.md +11 -10
  12. package/guide/dsh-tui-guide/interaction.md +5 -4
  13. package/guide/dsh-tui-guide/user-guide.en.md +12 -6
  14. package/guide/dsh-tui-guide/user-guide.md +12 -6
  15. package/lib/settings.json +24 -8
  16. package/lib/types/adapter/ports/channel-ui.d.ts +10 -7
  17. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  18. package/lib/types/adapter/ports/channel-view.d.ts +67 -8
  19. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  20. package/lib/types/agent/events.d.ts +14 -5
  21. package/lib/types/agent/events.d.ts.map +1 -1
  22. package/lib/types/agent/session.d.ts +5 -0
  23. package/lib/types/agent/session.d.ts.map +1 -1
  24. package/lib/types/backends/claude/tools.d.ts.map +1 -1
  25. package/lib/types/backends/claude/tools.js +8 -3
  26. package/lib/types/backends/claude/translate/core.d.ts +2 -2
  27. package/lib/types/backends/claude/translate/core.d.ts.map +1 -1
  28. package/lib/types/backends/claude/translate/core.js +10 -6
  29. package/lib/types/backends/codex/session/commands.d.ts +2 -0
  30. package/lib/types/backends/codex/session/commands.d.ts.map +1 -1
  31. package/lib/types/backends/codex/session/commands.js +8 -4
  32. package/lib/types/backends/codex/session/input.d.ts +11 -7
  33. package/lib/types/backends/codex/session/input.d.ts.map +1 -1
  34. package/lib/types/backends/codex/session/input.js +68 -15
  35. package/lib/types/backends/codex/session/session.d.ts.map +1 -1
  36. package/lib/types/backends/codex/session/session.js +2 -3
  37. package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
  38. package/lib/types/backends/codex/translate/presentation.js +5 -2
  39. package/lib/types/channel/interaction.d.ts.map +1 -1
  40. package/lib/types/channel/interaction.js +1 -0
  41. package/lib/types/channel/permissions.d.ts +15 -0
  42. package/lib/types/channel/permissions.d.ts.map +1 -1
  43. package/lib/types/channel/permissions.js +28 -0
  44. package/lib/types/channel/projection.d.ts.map +1 -1
  45. package/lib/types/channel/projection.js +89 -11
  46. package/lib/types/channel/questions.d.ts +45 -3
  47. package/lib/types/channel/questions.d.ts.map +1 -1
  48. package/lib/types/channel/questions.js +43 -0
  49. package/lib/types/channel/sanitize.d.ts.map +1 -1
  50. package/lib/types/channel/sanitize.js +8 -4
  51. package/lib/types/channel/subagent-failure.d.ts +49 -0
  52. package/lib/types/channel/subagent-failure.d.ts.map +1 -0
  53. package/lib/types/channel/subagent-failure.js +59 -0
  54. package/lib/types/channel/transcript.d.ts +17 -0
  55. package/lib/types/channel/transcript.d.ts.map +1 -1
  56. package/lib/types/channel/transcript.js +35 -0
  57. package/lib/types/commands.js +2 -2
  58. package/lib/types/components/MessageList.d.ts.map +1 -1
  59. package/lib/types/components/MessageList.js +14 -10
  60. package/lib/types/components/PromptInput.d.ts.map +1 -1
  61. package/lib/types/components/PromptInput.js +61 -6
  62. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  63. package/lib/types/components/SplitDiffView.js +3 -2
  64. package/lib/types/components/StarPrompt.d.ts +5 -3
  65. package/lib/types/components/StarPrompt.d.ts.map +1 -1
  66. package/lib/types/components/StarPrompt.js +56 -6
  67. package/lib/types/components/SubagentCard.d.ts.map +1 -1
  68. package/lib/types/components/SubagentCard.js +1 -1
  69. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  70. package/lib/types/components/SubagentDashboard.js +9 -2
  71. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  72. package/lib/types/components/SubagentDetailScene.js +1 -1
  73. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  74. package/lib/types/components/messages/AssistantToolUseMessage.js +126 -25
  75. package/lib/types/components/questions/AskUserQuestionPanel.d.ts +5 -8
  76. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  77. package/lib/types/components/questions/AskUserQuestionPanel.js +7 -4
  78. package/lib/types/components/questions/PlanReviewPanel.d.ts +3 -6
  79. package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
  80. package/lib/types/components/revealScope.d.ts +15 -0
  81. package/lib/types/components/revealScope.d.ts.map +1 -0
  82. package/lib/types/components/revealScope.js +17 -0
  83. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +34 -1
  84. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
  85. package/lib/types/components/sidePanel/btw/BtwComposer.js +108 -7
  86. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
  87. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +1 -1
  88. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
  89. package/lib/types/components/sidePanel/btw/BtwThreadScene.js +1 -1
  90. package/lib/types/components/smoothReveal.d.ts +36 -6
  91. package/lib/types/components/smoothReveal.d.ts.map +1 -1
  92. package/lib/types/components/smoothReveal.js +92 -21
  93. package/lib/types/components/teamRoster.d.ts +6 -3
  94. package/lib/types/components/teamRoster.d.ts.map +1 -1
  95. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts +4 -14
  96. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
  97. package/lib/types/components/workspaces/HomeWorkspaceRow.js +26 -17
  98. package/lib/types/dsh-adapter/approvals.d.ts +19 -0
  99. package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
  100. package/lib/types/dsh-adapter/approvals.js +17 -1
  101. package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
  102. package/lib/types/dsh-adapter/backend/session.js +12 -0
  103. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  104. package/lib/types/dsh-adapter/backend/translate.js +21 -4
  105. package/lib/types/dsh-adapter/channel/attached-context.d.ts +15 -2
  106. package/lib/types/dsh-adapter/channel/attached-context.d.ts.map +1 -1
  107. package/lib/types/dsh-adapter/channel/attached-context.js +26 -3
  108. package/lib/types/dsh-adapter/channel/binding-events.d.ts +3 -0
  109. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
  110. package/lib/types/dsh-adapter/channel/binding-events.js +43 -2
  111. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +2 -6
  112. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
  113. package/lib/types/dsh-adapter/channel/context-bookkeeping.js +7 -1
  114. package/lib/types/dsh-adapter/channel/core/compose.d.ts +2 -6
  115. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
  116. package/lib/types/dsh-adapter/channel/core/compose.js +1 -1
  117. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
  118. package/lib/types/dsh-adapter/channel/core/local-actions.js +3 -26
  119. package/lib/types/dsh-adapter/channel/emitter.js +1 -1
  120. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  121. package/lib/types/dsh-adapter/channel/extensions.js +15 -4
  122. package/lib/types/dsh-adapter/channel/input-actions.d.ts +2 -2
  123. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
  124. package/lib/types/dsh-adapter/channel/input-actions.js +34 -10
  125. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +3 -7
  126. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
  127. package/lib/types/dsh-adapter/channel/input-delivery.js +14 -5
  128. package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
  129. package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
  130. package/lib/types/dsh-adapter/channel/model-actions.d.ts +4 -1
  131. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
  132. package/lib/types/dsh-adapter/channel/model-actions.js +26 -9
  133. package/lib/types/dsh-adapter/channel/model-selection.d.ts +27 -2
  134. package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
  135. package/lib/types/dsh-adapter/channel/model-selection.js +81 -37
  136. package/lib/types/dsh-adapter/channel/model-switch.d.ts +1 -1
  137. package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
  138. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
  139. package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
  140. package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
  141. package/lib/types/dsh-adapter/channel/session-rewind.js +6 -2
  142. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
  143. package/lib/types/dsh-adapter/channel/session-tree-actions.js +8 -4
  144. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  145. package/lib/types/dsh-adapter/channel/settings-host.js +185 -36
  146. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
  147. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
  148. package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
  149. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
  150. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
  151. package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
  152. package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
  153. package/lib/types/dsh-adapter/channel/transcript.d.ts +3 -2
  154. package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
  155. package/lib/types/dsh-adapter/channel/transcript.js +13 -4
  156. package/lib/types/dsh-adapter/channel/types.d.ts +11 -2
  157. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  158. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
  159. package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
  160. package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
  161. package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
  162. package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
  163. package/lib/types/dsh-adapter/compat/messages.js +2 -2
  164. package/lib/types/dsh-adapter/contract.d.ts +29 -3
  165. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  166. package/lib/types/dsh-adapter/contract.js +48 -5
  167. package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
  168. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
  169. package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
  170. package/lib/types/dsh-adapter/fresh-agent.d.ts +1 -1
  171. package/lib/types/dsh-adapter/fresh-agent.d.ts.map +1 -1
  172. package/lib/types/dsh-adapter/fresh-agent.js +60 -11
  173. package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
  174. package/lib/types/dsh-adapter/host-access.js +60 -11
  175. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  176. package/lib/types/dsh-adapter/host-contract.d.ts.map +1 -1
  177. package/lib/types/dsh-adapter/host-contract.js +5 -3
  178. package/lib/types/dsh-adapter/host-dsh.d.ts +2 -8
  179. package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
  180. package/lib/types/dsh-adapter/host-dsh.js +30 -6
  181. package/lib/types/dsh-adapter/host-entry.js +4 -0
  182. package/lib/types/dsh-adapter/index.d.ts +9 -1
  183. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  184. package/lib/types/dsh-adapter/index.js +5 -0
  185. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
  186. package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
  187. package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
  188. package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
  189. package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
  190. package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
  191. package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
  192. package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
  193. package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
  194. package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
  195. package/lib/types/dsh-adapter/oauth/index.js +44 -0
  196. package/lib/types/dsh-adapter/oauth/profiles.d.ts.map +1 -1
  197. package/lib/types/dsh-adapter/oauth/profiles.js +14 -1
  198. package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
  199. package/lib/types/dsh-adapter/oauth/service.js +5 -6
  200. package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
  201. package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
  202. package/lib/types/dsh-adapter/plugin-manage.js +3 -2
  203. package/lib/types/dsh-adapter/plugin.d.ts +237 -6
  204. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  205. package/lib/types/dsh-adapter/plugin.js +751 -67
  206. package/lib/types/dsh-adapter/presets.d.ts +38 -11
  207. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  208. package/lib/types/dsh-adapter/presets.js +46 -17
  209. package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
  210. package/lib/types/dsh-adapter/process-exit.js +1 -1
  211. package/lib/types/dsh-adapter/questions.d.ts +3 -4
  212. package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
  213. package/lib/types/dsh-adapter/questions.js +1 -1
  214. package/lib/types/dsh-adapter/session-list-metadata.js +2 -2
  215. package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
  216. package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
  217. package/lib/types/dsh-adapter/session-projection-store.js +30 -23
  218. package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
  219. package/lib/types/dsh-adapter/sessionTree.js +4 -1
  220. package/lib/types/dsh-adapter/subagents.d.ts +6 -0
  221. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  222. package/lib/types/dsh-adapter/subagents.js +32 -3
  223. package/lib/types/dsh-adapter/team-mode.d.ts +46 -27
  224. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  225. package/lib/types/dsh-adapter/team-mode.js +157 -29
  226. package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
  227. package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
  228. package/lib/types/dsh-adapter/team-roster.js +206 -39
  229. package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
  230. package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
  231. package/lib/types/dsh-adapter/team-tools.js +81 -26
  232. package/lib/types/dsh-adapter/tool-scope.d.ts +24 -0
  233. package/lib/types/dsh-adapter/tool-scope.d.ts.map +1 -0
  234. package/lib/types/dsh-adapter/tool-scope.js +127 -0
  235. package/lib/types/dsh-adapter/types.d.ts +2 -1
  236. package/lib/types/dsh-adapter/types.d.ts.map +1 -1
  237. package/lib/types/heldInputs.d.ts +55 -16
  238. package/lib/types/heldInputs.d.ts.map +1 -1
  239. package/lib/types/heldInputs.js +277 -41
  240. package/lib/types/i18n.d.ts +292 -20
  241. package/lib/types/i18n.d.ts.map +1 -1
  242. package/lib/types/i18n.js +89 -13
  243. package/lib/types/ink/components/App.d.ts +2 -0
  244. package/lib/types/ink/components/App.d.ts.map +1 -1
  245. package/lib/types/ink/components/App.js +8 -0
  246. package/lib/types/ink/dom.d.ts.map +1 -1
  247. package/lib/types/ink/dom.js +13 -3
  248. package/lib/types/ink/events/input-event.d.ts.map +1 -1
  249. package/lib/types/ink/events/input-event.js +7 -6
  250. package/lib/types/ink/flush-tick.d.ts +6 -0
  251. package/lib/types/ink/flush-tick.d.ts.map +1 -1
  252. package/lib/types/ink/flush-tick.js +31 -0
  253. package/lib/types/ink/hit-test.d.ts +2 -0
  254. package/lib/types/ink/hit-test.d.ts.map +1 -1
  255. package/lib/types/ink/hit-test.js +10 -0
  256. package/lib/types/ink/hooks/use-program-status.d.ts +1 -1
  257. package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -1
  258. package/lib/types/ink/hooks/use-program-status.js +3 -2
  259. package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
  260. package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
  261. package/lib/types/ink/hooks/use-terminal-title.js +23 -3
  262. package/lib/types/ink/ink.d.ts +1 -0
  263. package/lib/types/ink/ink.d.ts.map +1 -1
  264. package/lib/types/ink/ink.js +7 -4
  265. package/lib/types/ink/jumpback-state.d.ts +33 -0
  266. package/lib/types/ink/jumpback-state.d.ts.map +1 -0
  267. package/lib/types/ink/jumpback-state.js +51 -0
  268. package/lib/types/ink/jumpback.d.ts +78 -0
  269. package/lib/types/ink/jumpback.d.ts.map +1 -0
  270. package/lib/types/ink/jumpback.js +515 -0
  271. package/lib/types/ink/log-update.js +37 -14
  272. package/lib/types/ink/notify-helper/activate.cs +836 -0
  273. package/lib/types/ink/notify-helper/compile.d.ts +30 -0
  274. package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
  275. package/lib/types/ink/notify-helper/compile.js +235 -0
  276. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  277. package/lib/types/ink/parse-keypress.js +25 -0
  278. package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
  279. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
  280. package/lib/types/ink/terminal-notification-windows.js +14 -21
  281. package/lib/types/ink/terminal-notification.d.ts +31 -2
  282. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  283. package/lib/types/ink/terminal-notification.js +51 -0
  284. package/lib/types/ink/terminal.d.ts +15 -3
  285. package/lib/types/ink/terminal.d.ts.map +1 -1
  286. package/lib/types/ink/terminal.js +38 -9
  287. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  288. package/lib/types/screens/AgentTranscriptScene.js +1 -1
  289. package/lib/types/screens/Chat.d.ts +4 -3
  290. package/lib/types/screens/Chat.d.ts.map +1 -1
  291. package/lib/types/screens/Chat.js +81 -11
  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.d.ts +12 -0
  304. package/lib/types/settings/definitions.d.ts.map +1 -1
  305. package/lib/types/settings/definitions.js +15 -7
  306. package/lib/types/update.d.ts +412 -20
  307. package/lib/types/update.d.ts.map +1 -1
  308. package/lib/types/update.js +2094 -193
  309. package/lib/types/updateHost.d.ts +198 -0
  310. package/lib/types/updateHost.d.ts.map +1 -0
  311. package/lib/types/updateHost.js +608 -0
  312. package/lib/types/utils/processName.d.ts +16 -0
  313. package/lib/types/utils/processName.d.ts.map +1 -0
  314. package/lib/types/utils/processName.js +27 -0
  315. package/package.json +114 -111
  316. package/presets/liangshen/agent.cordis.yml +4 -0
  317. package/tui-profile/feed/README.md +1 -1
  318. package/tui-profile/feed/first-party.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"team-mode.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/team-mode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAC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S,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAKvD;AAED,sEAAsE;AACtE,MAAM,WAAW,eAAe;IAC9B,yGAAyG;IACzG,QAAQ,CAAC,OAAO,EAAE,MAAM;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,iBAAiB,CAAA;CACvE;AAED,sEAAsE;AACtE,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAA;AA6ClG;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE;IACP,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS,CAAA;CAC5C,GACL,gBAAgB,CAuBlB"}
@@ -7,7 +7,8 @@ import { TEAM_SPAWN_TOOL } from './team-tools.js';
7
7
  const TEAM_COMMAND_NAME = 'team';
8
8
  /**
9
9
  * Whether the team service is mounted. This is the one signal `/team` appears
10
- * on: the desktop UI shows the same feature only while its service is there.
10
+ * on: a bundle host mounts it only while the feature is on, while a selection
11
+ * host always mounts it (the saved mode decides whether the tools are there).
11
12
  * @param ctx - Host context of the composition root.
12
13
  */
13
14
  export function teamServiceActive(ctx) {
@@ -34,21 +35,33 @@ export function withTeamCommandVisibility(commands, visible) {
34
35
  const TEAM_REPLACED_TOOLS = new Set(['subagent', 'subagent_fork']);
35
36
  /**
36
37
  * 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.
38
+ * so whether the team replaces them is decided where the tools are known: a
39
+ * registry carrying `spawn_teammate` drops `subagent` / `subagent_fork` on the
40
+ * agent's own scope (the assembly no longer carries tool declarations since
41
+ * 0.2.2). This follows a bundle toggled at run time into the sessions already
42
+ * joined (a preset revision cannot), and a team service that never activated
43
+ * leaves the legacy tools in place.
44
+ *
45
+ * Bundle hosts only: a selection host (`0.2.2-rc.2` and later) has no
46
+ * `spawn_teammate`, and the standard `subagent` / `subagent_fork` tools are
47
+ * its own delegation surface, so the predicate is inert there. Kept for the
48
+ * old hosts this application still supports.
49
+ *
50
+ * @param registered - Effective agent tool names, including inherited preset tools.
51
+ * @returns The replaced tool names to deny, empty when the team is inactive.
45
52
  */
53
+ export function teamReplacedToolDeny(registered) {
54
+ if (!registered.has(TEAM_SPAWN_TOOL))
55
+ return [];
56
+ return [...TEAM_REPLACED_TOOLS].filter(name => registered.has(name));
57
+ }
58
+ /** Keep the legacy final-assembly seam; new presentations carry no tools. */
46
59
  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)))
60
+ if (assembly.tools === undefined)
50
61
  return assembly;
51
- return { ...assembly, tools: assembly.tools.filter(tool => !TEAM_REPLACED_TOOLS.has(tool.name)) };
62
+ const deny = new Set(teamReplacedToolDeny(new Set(assembly.tools.map(tool => tool.name))));
63
+ const tools = assembly.tools.filter(tool => !deny.has(tool.name));
64
+ return tools.length === assembly.tools.length ? assembly : { ...assembly, tools };
52
65
  }
53
66
  export function parseTeamArgs(args) {
54
67
  const sub = args.trim().split(/\s+/)[0] ?? '';
@@ -59,11 +72,42 @@ export function parseTeamArgs(args) {
59
72
  return { kind: 'unknown', sub };
60
73
  }
61
74
  /**
62
- * Wire `/team` to the running composition. The command only reports; the
63
- * bundle switch is `/plugin enable|disable`, which shares the lifecycle flow
64
- * and its confirmations.
75
+ * The per-session switch, when this service has one. Bundle hosts expose task
76
+ * methods only; their switch stays the bundle lifecycle.
77
+ * @param ctx - Host context of the composition root.
78
+ */
79
+ function teamSwitchOf(ctx) {
80
+ const service = ctx.get('agentTeams', false);
81
+ if (service === undefined || typeof service.setEnabled !== 'function' || typeof service.isEnabled !== 'function')
82
+ return undefined;
83
+ return service;
84
+ }
85
+ /**
86
+ * Resolve the root Agent that owns the saved selection. The service rejects
87
+ * descendants, so the walk is not merely a convenience.
88
+ * @param ctx - Host context of the composition root.
89
+ * @param agent - The bound session's live Agent.
90
+ * @returns the root Agent, or `undefined` when the tree cannot be resolved.
91
+ */
92
+ function rootAgentOf(ctx, agent) {
93
+ const subagents = ctx.get('subagents', false);
94
+ try {
95
+ return subagents?.rootOf?.(agent) ?? agent;
96
+ }
97
+ catch {
98
+ return undefined;
99
+ }
100
+ }
101
+ /** `/team off force`: confirms switching off while subagents are still running. */
102
+ function switchForceRequested(args) {
103
+ return /(?:^|\s)(?:force|--force|-f)(?:\s|$)/i.test(args);
104
+ }
105
+ /**
106
+ * Wire `/team` to the running composition. On a selection host it also moves
107
+ * the switch; on a bundle host it only reports and points at
108
+ * `/plugin enable|disable` (the lifecycle flow and its confirmations).
65
109
  * @param ctx - Host context of the composition root.
66
- * @param options - The profile a CLI route names.
110
+ * @param options - The profile a CLI route names, and how to reach the bound session's live Agent.
67
111
  * @returns the command entry the screen calls.
68
112
  */
69
113
  export function createTeamCommandEntry(ctx, options = {}) {
@@ -73,6 +117,13 @@ export function createTeamCommandEntry(ctx, options = {}) {
73
117
  if (parsed.kind === 'unknown') {
74
118
  return [t('team-cmd-usage', { sub: cell(parsed.sub) })];
75
119
  }
120
+ const service = teamSwitchOf(ctx);
121
+ if (service !== undefined) {
122
+ const bound = resolveBoundRoot(ctx, options.rootAgent);
123
+ if (parsed.kind === 'status')
124
+ return teamSwitchStatusLines(service, bound, sink);
125
+ return teamSwitchActionLines(service, bound, sink, args);
126
+ }
76
127
  // The mounted service is the only state `/team` reports on.
77
128
  if (parsed.kind === 'status' && teamServiceActive(ctx)) {
78
129
  return teamStatusLines(ctx, sink);
@@ -84,12 +135,91 @@ export function createTeamCommandEntry(ctx, options = {}) {
84
135
  return teamSwitchRouteLines(ctx, profile, parsed.kind === 'switch' ? 'switch' : 'not-enabled');
85
136
  };
86
137
  }
138
+ /** The bound session's root Agent, when a live DSH Agent can be reached. */
139
+ function resolveBoundRoot(ctx, rootAgent) {
140
+ if (rootAgent === undefined)
141
+ return undefined;
142
+ let agent;
143
+ try {
144
+ agent = rootAgent();
145
+ }
146
+ catch {
147
+ return undefined;
148
+ }
149
+ if (agent === undefined)
150
+ return undefined;
151
+ return rootAgentOf(ctx, agent);
152
+ }
153
+ /**
154
+ * `/team` and `/team status` on a selection host: the saved mode, the service
155
+ * and the bound session's subagents.
156
+ */
157
+ function teamSwitchStatusLines(service, rootAgent, sink) {
158
+ const lines = [];
159
+ const enabled = readTeamMode(service, rootAgent);
160
+ lines.push(enabled === undefined
161
+ ? t('team-cmd-mode-unavailable')
162
+ : t('team-cmd-mode', { state: t(enabled ? 'team-cmd-on' : 'team-cmd-off') }));
163
+ lines.push(t('team-cmd-service', { state: t('team-cmd-running') }));
164
+ lines.push(...memberCountLines(sink));
165
+ if (enabled === false)
166
+ lines.push(t('team-cmd-use-switch'));
167
+ return lines;
168
+ }
169
+ /** `/team on|off` on a selection host: write the saved selection and report it. */
170
+ async function teamSwitchActionLines(service, rootAgent, sink, args) {
171
+ if (rootAgent === undefined)
172
+ return [t('team-cmd-switch-unavailable')];
173
+ // The subcommand token decides the direction. Scanning the whole argument
174
+ // string would let a stray later token flip it (`/team off on` must stay off).
175
+ const action = args.trim().split(/\s+/)[0]?.toLowerCase();
176
+ const enable = action === 'on';
177
+ const members = sink.members();
178
+ // Switching off keeps subagents and tasks on a selection host; the confirm
179
+ // only exists because running work keeps going without Team guidance. It
180
+ // counts subagents, which no longer appear in the team wire.
181
+ if (!enable && !switchForceRequested(args) && members.active + members.unseen > 0) {
182
+ return [t('team-cmd-switch-confirm', { members: String(members.active + members.unseen) })];
183
+ }
184
+ try {
185
+ await service.setEnabled(rootAgent, enable);
186
+ }
187
+ catch (error) {
188
+ return [t('team-cmd-switch-failed', { reason: cell(error instanceof Error ? error.message : String(error)) })];
189
+ }
190
+ const lines = [
191
+ t('team-cmd-mode', { state: t(enable ? 'team-cmd-on' : 'team-cmd-off') }),
192
+ ...memberCountLines(sink),
193
+ ];
194
+ if (!enable)
195
+ lines.push(t('team-cmd-use-switch'));
196
+ return lines;
197
+ }
198
+ /** The saved selection, or `undefined` when the live Agent cannot be read. */
199
+ function readTeamMode(service, rootAgent) {
200
+ if (rootAgent === undefined)
201
+ return undefined;
202
+ try {
203
+ return service.isEnabled(rootAgent);
204
+ }
205
+ catch {
206
+ return undefined;
207
+ }
208
+ }
209
+ /** The member-count tail both mechanisms share. */
210
+ function memberCountLines(sink) {
211
+ const { total, active, unseen } = sink.members();
212
+ return [total === 0
213
+ ? t('team-cmd-no-members')
214
+ : t(unseen === 0 ? 'team-cmd-members' : 'team-cmd-members-unseen', { total: String(total), active: String(active), unseen: String(unseen) })];
215
+ }
87
216
  /**
88
- * Where the switch went, checked against this launch: the in-session lifecycle
89
- * command only when the plugin service can run it and the installation lists
90
- * the bundle; the CLI route or the DSH-line reason otherwise. A bundle the
91
- * profile already selects is not told to enable itself: with no service running
92
- * the answer is the restart or the failed activation.
217
+ * Where the switch went on a bundle host, checked against this launch: the
218
+ * in-session lifecycle command only when the plugin service can run it and the
219
+ * installation lists the bundle; the CLI route or the DSH-line reason
220
+ * otherwise. A bundle the profile already selects is not told to enable
221
+ * itself: with no service running the answer is the restart or the failed
222
+ * activation.
93
223
  */
94
224
  async function teamSwitchRouteLines(ctx, profile, kind) {
95
225
  const manager = pluginManagerOf(ctx);
@@ -115,9 +245,10 @@ async function teamSwitchRouteLines(ctx, profile, kind) {
115
245
  return [t(kind === 'switch' ? 'team-cmd-switch-moved' : 'team-cmd-not-enabled', { bundle: TEAM_BUNDLE })];
116
246
  }
117
247
  /**
118
- * `/team` and `/team status`: whether the profile selects the bundle and the
119
- * bound session's team. The caller only runs this while the service is mounted,
120
- * so the service line states that state instead of re-reading it.
248
+ * `/team` and `/team status` on a bundle host: whether the profile selects the
249
+ * bundle and the bound session's team. The caller only runs this while the
250
+ * service is mounted, so the service line states that state instead of
251
+ * re-reading it.
121
252
  */
122
253
  async function teamStatusLines(ctx, sink) {
123
254
  const manager = pluginManagerOf(ctx);
@@ -144,9 +275,6 @@ async function teamStatusLines(ctx, sink) {
144
275
  if (selected === false)
145
276
  lines.push(t('team-cmd-pending-off'));
146
277
  }
147
- const { total, active, unseen } = sink.members();
148
- lines.push(total === 0
149
- ? t('team-cmd-no-members')
150
- : t(unseen === 0 ? 'team-cmd-members' : 'team-cmd-members-unseen', { total: String(total), active: String(active), unseen: String(unseen) }));
278
+ lines.push(...memberCountLines(sink));
151
279
  return lines;
152
280
  }
@@ -1,12 +1,22 @@
1
1
  /**
2
- * Read side of DSH's experimental Agent Teams: the Lead session's `agentTeam`
3
- * projection (roster + non-deleted task board), folded for the session on
4
- * screen. Inside a teammate it reads the Lead's value, found through the
5
- * teammate header's `parentSession` (another child of the Lead reads none).
2
+ * Read side of DSH Agent Teams: the Lead session's `agentTeam` projection
3
+ * (saved selection + non-deleted task board, and — on older hosts — the
4
+ * durable member roster), folded for the session on screen. Inside a
5
+ * teammate it reads the Lead's value, found through the teammate header's
6
+ * `parentSession` (another child of the Lead reads none on a roster host).
6
7
  *
7
- * The wire value is narrowed locally (`@deepseek-ai/dsh-experimental-agent-team`
8
- * is never imported); a composition without the team service never publishes
9
- * the key and the store stays empty.
8
+ * Two upstream wire shapes are told apart by shape, never by version:
9
+ *
10
+ * - `roster` — DSH `0.2.2-rc.1` and earlier: `agentTeam` carries
11
+ * `{members, tasks, failure?}`. The team exists only while the bundle that
12
+ * mounts the service is on, so an implicit one-member team is no team.
13
+ * - `switch` — DSH `0.2.2-rc.2` and later: `agentTeam` carries
14
+ * `{enabled, tasks, failure?}` and no members; the service ships in
15
+ * `dsh-base` and each root session saves its own selection. Members are the
16
+ * Lead's current subagents, supplied by the parent `subagentCatalog`
17
+ * projection and joined here.
18
+ *
19
+ * Neither package is imported: both wire values are narrowed locally.
10
20
  *
11
21
  * @module
12
22
  */
@@ -14,7 +24,17 @@ import type { Context } from '@deepseek-ai/cordis';
14
24
  import type { TeamView } from '../adapter/ports/channel-view.js';
15
25
  import { type SessionProjectionStore, type WatchedSession } from './session-projection-store.js';
16
26
  export declare const TEAM_PROJECTION_KEY = "agentTeam";
17
- /** The upstream bundle that mounts the team service and tools: the team-mode switch. */
27
+ /**
28
+ * The parent Session's direct-child catalog, and on `switch` hosts the only
29
+ * member source. Payload version 3 rows carry the child's model-facing `name`.
30
+ */
31
+ export declare const SUBAGENT_CATALOG_KEY = "subagentCatalog";
32
+ /**
33
+ * The upstream bundle that mounts the team service on `0.2.2-rc.1` and
34
+ * earlier hosts: the legacy switch. `0.2.2-rc.2` retires it (the service and
35
+ * task tools ship in `dsh-base`, switched per root session), so the name only
36
+ * serves the old-host flows and their migration hints.
37
+ */
18
38
  export declare const TEAM_BUNDLE = "@deepseek-ai/dsh-experimental-agent-team-profile";
19
39
  /** What the channel reads: the team of one session, if any. */
20
40
  export interface TeamSource {
@@ -24,15 +44,25 @@ export interface TeamSource {
24
44
  subscribe(listener: () => void): () => void;
25
45
  }
26
46
  export type TeamRosterStore = SessionProjectionStore<TeamView> & TeamSource;
47
+ /** One direct child as the parent `subagentCatalog` projection publishes it. */
48
+ export interface CatalogChild {
49
+ readonly id: string;
50
+ /** Model-facing name (payload v3): unique among the parent's children. */
51
+ readonly name?: string;
52
+ /** Durable creation label: what the delegation asked the child to do. */
53
+ readonly label?: string;
54
+ }
27
55
  /**
28
- * Narrow one `agentTeam` value into the view the UI renders. A session's
29
- * implicit team (the Lead alone, no task, no failure) is no team: every root
30
- * session publishes that baseline once the service is mounted.
56
+ * Narrow one `agentTeam` value into the view the UI renders. Both upstream
57
+ * shapes are told apart by the value itself; a session's implicit team (the
58
+ * Lead alone, no task, no failure) is no team on a roster host, while a
59
+ * `switch` host publishes the saved selection.
31
60
  * @param value - Raw projection value.
32
61
  * @param leadSessionId - The session the value was published for.
62
+ * @param catalog - The Lead's direct-child catalog (a `switch` host's member source).
33
63
  * @returns the team view, or `undefined` when there is nothing to show.
34
64
  */
35
- export declare function asTeamView(value: unknown, leadSessionId: string): TeamView | undefined;
65
+ export declare function asTeamView(value: unknown, leadSessionId: string, catalog?: readonly CatalogChild[]): TeamView | undefined;
36
66
  interface AgentsLike {
37
67
  list(): Iterable<{
38
68
  readonly session: {
@@ -41,17 +71,22 @@ interface AgentsLike {
41
71
  }>;
42
72
  }
43
73
  /**
44
- * The team a bound session belongs to is rooted at itself, or — for a
45
- * delegated child — at its parent: teammates are direct children of the Lead.
74
+ * The team a bound session belongs to is rooted at its top-level ancestor:
75
+ * the Lead itself, or — for a delegated child — the root its creator chain
76
+ * reaches. On a roster host teammates are direct children of the Lead; a
77
+ * `switch` host can nest deeper. Loaded ancestors are followed by identity;
78
+ * one that is gone stops the walk at its recorded parent id (the value there
79
+ * is likely absent, which reads as no team rather than a stale one).
46
80
  * @param session - The bound session.
47
- * @param agents - Live agents, to find the Lead's session object for a baseline.
81
+ * @param agents - Live agents, used to find loaded ancestors for traversal and baseline snapshots.
48
82
  * @returns the session whose `agentTeam` value to read.
49
83
  */
50
84
  export declare function teamRootOf(session: unknown, agents: AgentsLike | undefined): WatchedSession;
51
85
  /**
52
- * The watched team as seen from `sessionId`: the Lead's own, or a listed
53
- * teammate's. Any other child of the Lead (a plain subagent, a workflow
54
- * spawn) is watched at the same parent but belongs to no team.
86
+ * The watched team as seen from `sessionId`: the Lead's own, or — on a
87
+ * roster host — a listed teammate's. A `switch` host's tree is the team, so
88
+ * any session watched at that Lead reads it. Any other child of a roster
89
+ * host's Lead (a plain subagent, a workflow spawn) belongs to no team.
55
90
  * @param team - The watched session's team.
56
91
  * @param sessionId - The bound session.
57
92
  * @returns the team, or `undefined` when the session is not on it.
@@ -1 +1 @@
1
- {"version":3,"file":"team-roster.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/team-roster.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAwB,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AACtF,OAAO,EAAyD,KAAK,sBAAsB,EAAE,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEvJ,eAAO,MAAM,mBAAmB,cAAc,CAAA;AAE9C,wFAAwF;AACxF,eAAO,MAAM,WAAW,qDAAqD,CAAA;AAE7E,+DAA+D;AAC/D,MAAM,WAAW,UAAU;IACzB;kFAC8E;IAC9E,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;IAC/C,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;CAC5C;AAED,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAA;AAkC3E;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAUtF;AAOD,UAAU,UAAU;IAClB,IAAI,IAAI,QAAQ,CAAC;QAAE,QAAQ,CAAC,OAAO,EAAE;YAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC,CAAA;CACjE;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAA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