@deepseek-harness-tui/dsh-tui 0.16.0 → 0.17.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 (401) hide show
  1. package/README.md +214 -34
  2. package/assets/plugin-icon.svg +13 -0
  3. package/assets/windows-installer.cs +308 -0
  4. package/assets/windows-installer.ps1 +17 -0
  5. package/bin/dsh-tui.js +64 -5
  6. package/cli/adapters/dsh/index.mjs +111 -0
  7. package/cli/adapters/dsh/locate.mjs +73 -0
  8. package/cli/adapters/dsh/management-plugin.mjs +111 -0
  9. package/cli/args.mjs +154 -0
  10. package/cli/contracts.d.ts +48 -0
  11. package/cli/engine.mjs +92 -0
  12. package/cli/entry.mjs +48 -0
  13. package/cli/process.mjs +118 -0
  14. package/cli/protocol.mjs +23 -0
  15. package/cli/schema-v1.json +33 -0
  16. package/cordis.patch.yml +3 -1
  17. package/cordis.yml +3 -1
  18. package/guide/dsh-tui-guide/SKILL.md +1 -0
  19. package/guide/dsh-tui-guide/claude-backend.en.md +8 -0
  20. package/guide/dsh-tui-guide/claude-backend.md +5 -0
  21. package/guide/dsh-tui-guide/cli.en.md +114 -0
  22. package/guide/dsh-tui-guide/cli.md +114 -0
  23. package/guide/dsh-tui-guide/configuration.en.md +6 -5
  24. package/guide/dsh-tui-guide/configuration.md +6 -5
  25. package/guide/dsh-tui-guide/getting-started.en.md +44 -10
  26. package/guide/dsh-tui-guide/getting-started.md +31 -9
  27. package/guide/dsh-tui-guide/interaction.en.md +22 -10
  28. package/guide/dsh-tui-guide/interaction.md +18 -8
  29. package/guide/dsh-tui-guide/plugins.en.md +35 -4
  30. package/guide/dsh-tui-guide/plugins.md +23 -2
  31. package/guide/dsh-tui-guide/user-guide.en.md +30 -23
  32. package/guide/dsh-tui-guide/user-guide.md +29 -22
  33. package/lib/settings.json +83 -40
  34. package/lib/types/adapter/channel/plugins.d.ts.map +1 -1
  35. package/lib/types/adapter/channel/plugins.js +8 -0
  36. package/lib/types/adapter/channel/ui-policy.d.ts +1 -1
  37. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
  38. package/lib/types/adapter/channel/ui-policy.js +3 -0
  39. package/lib/types/adapter/ports/channel-display.d.ts +10 -0
  40. package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
  41. package/lib/types/adapter/ports/channel-session.d.ts +2 -0
  42. package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
  43. package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
  44. package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
  45. package/lib/types/adapter/ports/channel-ui.d.ts +17 -2
  46. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  47. package/lib/types/adapter/ports/channel-view.d.ts +8 -1
  48. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  49. package/lib/types/adapter/ports/channel.d.ts +7 -0
  50. package/lib/types/adapter/ports/channel.d.ts.map +1 -1
  51. package/lib/types/agent/capabilities.d.ts +2 -0
  52. package/lib/types/agent/capabilities.d.ts.map +1 -1
  53. package/lib/types/agent/events.d.ts +8 -0
  54. package/lib/types/agent/events.d.ts.map +1 -1
  55. package/lib/types/api.d.ts +2 -2
  56. package/lib/types/api.d.ts.map +1 -1
  57. package/lib/types/backends/claude/translate/events.d.ts.map +1 -1
  58. package/lib/types/backends/claude/translate/events.js +2 -1
  59. package/lib/types/backends/codex/auth/status.js +1 -1
  60. package/lib/types/backends/codex/session/controls.d.ts.map +1 -1
  61. package/lib/types/backends/codex/session/controls.js +6 -5
  62. package/lib/types/backends/codex/session/goals.d.ts.map +1 -1
  63. package/lib/types/backends/codex/session/side-query.d.ts.map +1 -1
  64. package/lib/types/backends/codex/translate/events.d.ts.map +1 -1
  65. package/lib/types/backends/codex/translate/events.js +3 -1
  66. package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -1
  67. package/lib/types/backends/shared/channel-tokens.js +9 -8
  68. package/lib/types/channel/history-restore.d.ts.map +1 -1
  69. package/lib/types/channel/history-restore.js +2 -0
  70. package/lib/types/channel/interaction.d.ts.map +1 -1
  71. package/lib/types/channel/interaction.js +1 -0
  72. package/lib/types/channel/projection.d.ts +1 -1
  73. package/lib/types/channel/projection.d.ts.map +1 -1
  74. package/lib/types/channel/projection.js +19 -4
  75. package/lib/types/channel/questions.d.ts +2 -0
  76. package/lib/types/channel/questions.d.ts.map +1 -1
  77. package/lib/types/channel/sanitize.d.ts +14 -0
  78. package/lib/types/channel/sanitize.d.ts.map +1 -1
  79. package/lib/types/channel/sanitize.js +55 -0
  80. package/lib/types/channel/working-directory.d.ts +9 -0
  81. package/lib/types/channel/working-directory.d.ts.map +1 -0
  82. package/lib/types/channel/working-directory.js +7 -0
  83. package/lib/types/commands.d.ts +8 -1
  84. package/lib/types/commands.d.ts.map +1 -1
  85. package/lib/types/commands.js +13 -4
  86. package/lib/types/components/ChatTitle.d.ts +7 -0
  87. package/lib/types/components/ChatTitle.d.ts.map +1 -0
  88. package/lib/types/components/ChatTitle.js +15 -0
  89. package/lib/types/components/CodeBlockFrame.d.ts.map +1 -1
  90. package/lib/types/components/CodeBlockFrame.js +10 -5
  91. package/lib/types/components/CompactionStatusRow.d.ts.map +1 -1
  92. package/lib/types/components/CompactionStatusRow.js +24 -3
  93. package/lib/types/components/GoalTodoPanel.d.ts +3 -1
  94. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  95. package/lib/types/components/GoalTodoPanel.js +2 -2
  96. package/lib/types/components/Markdown.d.ts +9 -1
  97. package/lib/types/components/Markdown.d.ts.map +1 -1
  98. package/lib/types/components/Markdown.js +5 -4
  99. package/lib/types/components/MessageList.d.ts.map +1 -1
  100. package/lib/types/components/MessageList.js +17 -12
  101. package/lib/types/components/PromptInput.d.ts +13 -5
  102. package/lib/types/components/PromptInput.d.ts.map +1 -1
  103. package/lib/types/components/PromptInput.js +189 -107
  104. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  105. package/lib/types/components/SplitDiffView.js +232 -22
  106. package/lib/types/components/SubagentDetailScene.d.ts +3 -1
  107. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  108. package/lib/types/components/SubagentDetailScene.js +5 -1
  109. package/lib/types/components/Whale.d.ts.map +1 -1
  110. package/lib/types/components/Whale.js +8 -5
  111. package/lib/types/components/approvals/ApprovalPanel.d.ts +1 -1
  112. package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
  113. package/lib/types/components/approvals/ApprovalPanel.js +93 -11
  114. package/lib/types/components/bigfont.d.ts.map +1 -1
  115. package/lib/types/components/bigfont.js +2 -1
  116. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  117. package/lib/types/components/messages/AssistantToolUseMessage.js +13 -6
  118. package/lib/types/components/previewRows.d.ts +19 -0
  119. package/lib/types/components/previewRows.d.ts.map +1 -0
  120. package/lib/types/components/previewRows.js +46 -0
  121. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  122. package/lib/types/components/questions/AskUserQuestionPanel.js +75 -10
  123. package/lib/types/components/sessions/ForeignSessionRow.d.ts +3 -9
  124. package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -1
  125. package/lib/types/components/sessions/ForeignSessionRow.js +6 -10
  126. package/lib/types/components/sessions/SessionListRow.d.ts +4 -9
  127. package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
  128. package/lib/types/components/sessions/SessionListRow.js +18 -10
  129. package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
  130. package/lib/types/components/sidePanel/InfoPanel.js +4 -3
  131. package/lib/types/components/sidePanel/SidePanelLayout.d.ts.map +1 -1
  132. package/lib/types/components/sidePanel/SidePanelLayout.js +5 -5
  133. package/lib/types/components/sidePanel/WorkspacePanel.d.ts.map +1 -1
  134. package/lib/types/components/sidePanel/WorkspacePanel.js +19 -7
  135. package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
  136. package/lib/types/components/sidePanel/builtinPanels.js +22 -16
  137. package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
  138. package/lib/types/components/sidePanel/companion/CompanionPanel.js +2 -1
  139. package/lib/types/components/sidePanel/panelMarkdown.d.ts +32 -0
  140. package/lib/types/components/sidePanel/panelMarkdown.d.ts.map +1 -0
  141. package/lib/types/components/sidePanel/panelMarkdown.js +45 -0
  142. package/lib/types/components/sidePanel/pluginPanelAdapter.d.ts.map +1 -1
  143. package/lib/types/components/sidePanel/pluginPanelAdapter.js +6 -1
  144. package/lib/types/components/sidePanel/subagentFailureRead.d.ts +21 -0
  145. package/lib/types/components/sidePanel/subagentFailureRead.d.ts.map +1 -0
  146. package/lib/types/components/sidePanel/subagentFailureRead.js +66 -0
  147. package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
  148. package/lib/types/components/sidePanel/useSidePanel.js +24 -6
  149. package/lib/types/components/trajectory/MiniWake.d.ts +2 -2
  150. package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
  151. package/lib/types/components/trajectory/MiniWake.js +7 -3
  152. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
  153. package/lib/types/components/workspaces/HomeWorkspaceRow.js +4 -7
  154. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  155. package/lib/types/dsh-adapter/backend/translate.js +11 -1
  156. package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
  157. package/lib/types/dsh-adapter/channel/binding-events.d.ts +5 -1
  158. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
  159. package/lib/types/dsh-adapter/channel/binding-events.js +18 -1
  160. package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
  161. package/lib/types/dsh-adapter/channel/command-completions.js +6 -8
  162. package/lib/types/dsh-adapter/channel/composer-images.d.ts +9 -1
  163. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
  164. package/lib/types/dsh-adapter/channel/composer-images.js +111 -111
  165. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
  166. package/lib/types/dsh-adapter/channel/composer-mentions.js +16 -10
  167. package/lib/types/dsh-adapter/channel/core/actions.d.ts +1 -1
  168. package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -1
  169. package/lib/types/dsh-adapter/channel/core/actions.js +23 -2
  170. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +4 -1
  171. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
  172. package/lib/types/dsh-adapter/channel/core/binding-feed.js +13 -2
  173. package/lib/types/dsh-adapter/channel/core/compose.d.ts +4 -1
  174. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
  175. package/lib/types/dsh-adapter/channel/core/compose.js +2 -0
  176. package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
  177. package/lib/types/dsh-adapter/channel/core/files.js +2 -1
  178. package/lib/types/dsh-adapter/channel/core/host.d.ts +14 -10
  179. package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -1
  180. package/lib/types/dsh-adapter/channel/core/host.js +192 -13
  181. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +1 -0
  182. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
  183. package/lib/types/dsh-adapter/channel/core/local-actions.js +32 -3
  184. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  185. package/lib/types/dsh-adapter/channel/extensions.js +31 -5
  186. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
  187. package/lib/types/dsh-adapter/channel/input-actions.js +4 -0
  188. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +4 -1
  189. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
  190. package/lib/types/dsh-adapter/channel/input-delivery.js +24 -1
  191. package/lib/types/dsh-adapter/channel/model-actions.d.ts +1 -1
  192. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
  193. package/lib/types/dsh-adapter/channel/model-actions.js +7 -1
  194. package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
  195. package/lib/types/dsh-adapter/channel/model-selection.js +6 -4
  196. package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
  197. package/lib/types/dsh-adapter/channel/session-fork.js +1 -0
  198. package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
  199. package/lib/types/dsh-adapter/channel/session-metadata.js +15 -2
  200. package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
  201. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
  202. package/lib/types/dsh-adapter/channel/session-reset.js +4 -0
  203. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
  204. package/lib/types/dsh-adapter/channel/session-resume.js +46 -33
  205. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  206. package/lib/types/dsh-adapter/channel/settings-host.js +10 -3
  207. package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
  208. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
  209. package/lib/types/dsh-adapter/channel/state.js +2 -2
  210. package/lib/types/dsh-adapter/channel/types.d.ts +13 -1
  211. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  212. package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -3
  213. package/lib/types/dsh-adapter/compat/liveSession.js +3 -3
  214. package/lib/types/dsh-adapter/compat/sessionLog.d.ts +1 -1
  215. package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
  216. package/lib/types/dsh-adapter/compat/sessionLog.js +17 -1
  217. package/lib/types/dsh-adapter/contract.d.ts +6 -5
  218. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  219. package/lib/types/dsh-adapter/contract.js +7 -5
  220. package/lib/types/dsh-adapter/effect-ledger.d.ts +1 -1
  221. package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
  222. package/lib/types/dsh-adapter/effect-ledger.js +1 -0
  223. package/lib/types/dsh-adapter/experimental-bundles.d.ts +26 -0
  224. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
  225. package/lib/types/dsh-adapter/experimental-bundles.js +11 -0
  226. package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
  227. package/lib/types/dsh-adapter/host-access.js +4 -0
  228. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  229. package/lib/types/dsh-adapter/host-contract.js +2 -2
  230. package/lib/types/dsh-adapter/host-dsh.js +3 -3
  231. package/lib/types/dsh-adapter/host-entry.js +5 -3
  232. package/lib/types/dsh-adapter/index.d.ts +8 -4
  233. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  234. package/lib/types/dsh-adapter/index.js +9 -7
  235. package/lib/types/dsh-adapter/install/pnpm-profile-add.d.ts.map +1 -1
  236. package/lib/types/dsh-adapter/install/pnpm-profile-add.js +9 -3
  237. package/lib/types/dsh-adapter/panels.d.ts +21 -7
  238. package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
  239. package/lib/types/dsh-adapter/panels.js +11 -56
  240. package/lib/types/dsh-adapter/plugin.d.ts +81 -0
  241. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  242. package/lib/types/dsh-adapter/plugin.js +318 -70
  243. package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
  244. package/lib/types/dsh-adapter/plugins-info.js +65 -10
  245. package/lib/types/dsh-adapter/presets.d.ts +15 -6
  246. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  247. package/lib/types/dsh-adapter/presets.js +51 -12
  248. package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
  249. package/lib/types/dsh-adapter/process-exit.js +1 -1
  250. package/lib/types/dsh-adapter/session-tools.d.ts +34 -0
  251. package/lib/types/dsh-adapter/session-tools.d.ts.map +1 -0
  252. package/lib/types/dsh-adapter/session-tools.js +39 -0
  253. package/lib/types/dsh-adapter/settings-sections.d.ts +18 -1
  254. package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
  255. package/lib/types/dsh-adapter/settings-sections.js +73 -0
  256. package/lib/types/dsh-adapter/status.d.ts +88 -1
  257. package/lib/types/dsh-adapter/status.d.ts.map +1 -1
  258. package/lib/types/dsh-adapter/status.js +318 -3
  259. package/lib/types/dsh-adapter/team-mode.d.ts +42 -33
  260. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  261. package/lib/types/dsh-adapter/team-mode.js +76 -112
  262. package/lib/types/extensions.d.ts +1 -1
  263. package/lib/types/extensions.d.ts.map +1 -1
  264. package/lib/types/force-production-react.js +3 -3
  265. package/lib/types/i18n.d.ts +195 -52
  266. package/lib/types/i18n.d.ts.map +1 -1
  267. package/lib/types/i18n.js +96 -30
  268. package/lib/types/ink/colorize.d.ts +7 -1
  269. package/lib/types/ink/colorize.d.ts.map +1 -1
  270. package/lib/types/ink/colorize.js +29 -8
  271. package/lib/types/ink/components/App.d.ts +2 -1
  272. package/lib/types/ink/components/App.d.ts.map +1 -1
  273. package/lib/types/ink/components/App.js +10 -3
  274. package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
  275. package/lib/types/ink/components/ScrollBox.js +1 -0
  276. package/lib/types/ink/dom.d.ts +1 -0
  277. package/lib/types/ink/dom.d.ts.map +1 -1
  278. package/lib/types/ink/hooks/use-program-status.d.ts +78 -0
  279. package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -0
  280. package/lib/types/ink/hooks/use-program-status.js +96 -0
  281. package/lib/types/ink/ink.d.ts +13 -4
  282. package/lib/types/ink/ink.d.ts.map +1 -1
  283. package/lib/types/ink/ink.js +119 -25
  284. package/lib/types/ink/output.d.ts +17 -2
  285. package/lib/types/ink/output.d.ts.map +1 -1
  286. package/lib/types/ink/output.js +85 -2
  287. package/lib/types/ink/parse-keypress.d.ts +1 -0
  288. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  289. package/lib/types/ink/parse-keypress.js +5 -4
  290. package/lib/types/ink/render-node-to-output.d.ts +2 -0
  291. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  292. package/lib/types/ink/render-node-to-output.js +79 -10
  293. package/lib/types/ink/root.d.ts +8 -0
  294. package/lib/types/ink/root.d.ts.map +1 -1
  295. package/lib/types/ink/root.js +12 -3
  296. package/lib/types/ink/screen.d.ts +11 -0
  297. package/lib/types/ink/screen.d.ts.map +1 -1
  298. package/lib/types/ink/screen.js +44 -0
  299. package/lib/types/ink/selection.d.ts +7 -2
  300. package/lib/types/ink/selection.d.ts.map +1 -1
  301. package/lib/types/ink/selection.js +187 -44
  302. package/lib/types/ink/shutdown-input.d.ts +15 -0
  303. package/lib/types/ink/shutdown-input.d.ts.map +1 -0
  304. package/lib/types/ink/shutdown-input.js +28 -0
  305. package/lib/types/ink/sixel-cursor-heal.d.ts +21 -0
  306. package/lib/types/ink/sixel-cursor-heal.d.ts.map +1 -0
  307. package/lib/types/ink/sixel-cursor-heal.js +62 -0
  308. package/lib/types/ink/sixel-graphics.d.ts +6 -0
  309. package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
  310. package/lib/types/ink/sixel-graphics.js +18 -0
  311. package/lib/types/ink/styles.d.ts +8 -1
  312. package/lib/types/ink/styles.d.ts.map +1 -1
  313. package/lib/types/ink/terminal-notification-windows.d.ts +195 -0
  314. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -0
  315. package/lib/types/ink/terminal-notification-windows.js +433 -0
  316. package/lib/types/ink/terminal-notification.d.ts +3 -1
  317. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  318. package/lib/types/ink/terminal-notification.js +4 -1
  319. package/lib/types/ink/terminal-querier.d.ts +9 -1
  320. package/lib/types/ink/terminal-querier.d.ts.map +1 -1
  321. package/lib/types/ink/terminal-querier.js +32 -1
  322. package/lib/types/ink/terminal.d.ts +23 -2
  323. package/lib/types/ink/terminal.d.ts.map +1 -1
  324. package/lib/types/ink/terminal.js +32 -2
  325. package/lib/types/ink/termio/osc.d.ts +2 -1
  326. package/lib/types/ink/termio/osc.d.ts.map +1 -1
  327. package/lib/types/ink/termio/osc.js +37 -8
  328. package/lib/types/ink/termio/osc7501.d.ts +102 -0
  329. package/lib/types/ink/termio/osc7501.d.ts.map +1 -0
  330. package/lib/types/ink/termio/osc7501.js +229 -0
  331. package/lib/types/ink/termio/tokenize.js +5 -7
  332. package/lib/types/panels.d.ts +1 -1
  333. package/lib/types/panels.d.ts.map +1 -1
  334. package/lib/types/screens/AgentTranscriptScene.d.ts +3 -1
  335. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  336. package/lib/types/screens/AgentTranscriptScene.js +5 -1
  337. package/lib/types/screens/Chat.d.ts +6 -6
  338. package/lib/types/screens/Chat.d.ts.map +1 -1
  339. package/lib/types/screens/Chat.js +304 -111
  340. package/lib/types/screens/Launchpad.d.ts +8 -2
  341. package/lib/types/screens/Launchpad.d.ts.map +1 -1
  342. package/lib/types/screens/Launchpad.js +32 -12
  343. package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
  344. package/lib/types/screens/SessionSupervisor.js +31 -21
  345. package/lib/types/screens/Settings.d.ts +5 -1
  346. package/lib/types/screens/Settings.d.ts.map +1 -1
  347. package/lib/types/screens/Settings.js +528 -51
  348. package/lib/types/screens/StatusLine.d.ts +9 -3
  349. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  350. package/lib/types/screens/StatusLine.js +91 -15
  351. package/lib/types/screens/StatusMetrics.d.ts +2 -11
  352. package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
  353. package/lib/types/screens/StatusMetrics.js +20 -14
  354. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
  355. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +1 -1
  356. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +1 -1
  357. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
  358. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +13 -21
  359. package/lib/types/sessionMounts.d.ts +14 -0
  360. package/lib/types/sessionMounts.d.ts.map +1 -1
  361. package/lib/types/sessionMounts.js +20 -9
  362. package/lib/types/sessions/format.d.ts +39 -0
  363. package/lib/types/sessions/format.d.ts.map +1 -1
  364. package/lib/types/sessions/format.js +83 -0
  365. package/lib/types/sessions/resumeFailure.d.ts +4 -0
  366. package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
  367. package/lib/types/sessions/resumeFailure.js +12 -4
  368. package/lib/types/sessions/workspaceCounts.d.ts +6 -0
  369. package/lib/types/sessions/workspaceCounts.d.ts.map +1 -0
  370. package/lib/types/sessions/workspaceCounts.js +24 -0
  371. package/lib/types/settings/definitions.d.ts +24 -0
  372. package/lib/types/settings/definitions.d.ts.map +1 -1
  373. package/lib/types/settings/definitions.js +38 -13
  374. package/lib/types/tips.js +2 -2
  375. package/lib/types/tuiDisplayPrefs.d.ts +113 -5
  376. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  377. package/lib/types/tuiDisplayPrefs.js +276 -14
  378. package/lib/types/update.d.ts +46 -36
  379. package/lib/types/update.d.ts.map +1 -1
  380. package/lib/types/update.js +248 -157
  381. package/lib/types/updateProcess.d.ts +28 -0
  382. package/lib/types/updateProcess.d.ts.map +1 -0
  383. package/lib/types/updateProcess.js +135 -0
  384. package/lib/types/utils/inputWordBoundary.d.ts +5 -0
  385. package/lib/types/utils/inputWordBoundary.d.ts.map +1 -0
  386. package/lib/types/utils/inputWordBoundary.js +18 -0
  387. package/lib/types/utils/keymap.d.ts +1 -1
  388. package/lib/types/utils/keymap.d.ts.map +1 -1
  389. package/lib/types/utils/keymap.js +6 -1
  390. package/lib/types/windowsInstaller.d.ts +4 -0
  391. package/lib/types/windowsInstaller.d.ts.map +1 -0
  392. package/lib/types/windowsInstaller.js +237 -0
  393. package/locale/en.json +6 -0
  394. package/locale/zh.json +6 -0
  395. package/package.json +127 -111
  396. package/presets/liangshen/custom-bash.mjs +13 -1
  397. package/presets/liangshen/instruction-hint.mjs +4 -1
  398. package/presets/liangshen/skill-search.mjs +14 -2
  399. package/presets/winbash.mjs +16 -4
  400. package/tui-profile/feed/README.md +17 -8
  401. package/tui-profile/feed/first-party.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"plugins-info.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugins-info.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAYH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,EAA2C,KAAK,iBAAiB,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACnI,OAAO,EAAqC,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAI/F,iEAAiE;AACjE,eAAO,MAAM,uBAAuB,KAAK,CAAA;AACzC,sDAAsD;AACtD,eAAO,MAAM,mBAAmB,IAAI,CAAA;AAIpC,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,MAAM,EAAE,UAAU,CAAA;IAClB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAC1B,sEAAsE;IACtE,WAAW,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,iBAAiB,GAAG,SAAS,CAAA;IACpE,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AA+DD;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,OAAO,KAAG,MAAsE,CAAA;AA0B5G,8CAA8C;AAC9C,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,yFAAyF;A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wBG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAClD,mBAAmB,CAMrB;AA+ND,sFAAsF;AACtF,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,iBAAiB,GAAG,SAAS,GACrC,OAAO,CAAC,MAAM,EAAE,CAAC,CA0BnB;AAED,+EAA+E;AAC/E,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,iBAAiB,GAAG,SAAS,GACrC,OAAO,CAAC,MAAM,EAAE,CAAC,CAEnB"}
@@ -40,6 +40,7 @@ import { loadSpecData } from '../adapter/standard/registry.js';
40
40
  import { createContractIndex, validatePlugin, negotiate } from '../adapter/standard/admission.js';
41
41
  import { cleanScalarText } from './sanitize.js';
42
42
  import { isCompositionOwned, pluginDeclarationIn } from './plugin-declaration.js';
43
+ import { TUI_EXPERIMENTAL_BUNDLES } from './experimental-bundles.js';
43
44
  import { extraBundles, localizedPluginText } from './plugin-manager.js';
44
45
  import { PLUGIN_STORAGE_DIR } from './plugin-storage.js';
45
46
  import { EFFECT_LEDGER_NAME } from './effect-ledger.js';
@@ -562,19 +563,73 @@ function bundleLine(deps, bundle, options = {}) {
562
563
  function needsDeclarationLegend(deps, bundles) {
563
564
  return bundles.some(bundle => !isCompositionOwned(bundle.name) && deps.declaration?.(bundle.name) === undefined);
564
565
  }
565
- /** `/plugin list`: the plugins this profile added, one line each. */
566
+ /**
567
+ * The TUI experimental features this installation supplies, in catalog order.
568
+ * A bundle the profile itself added (`installed: true`) is the person's own
569
+ * plugin and stays in the "you added" section; only the installation-supplied
570
+ * half is advertised here.
571
+ */
572
+ function experimentalEntries(bundles) {
573
+ return TUI_EXPERIMENTAL_BUNDLES.flatMap(entry => {
574
+ const bundle = bundles.find(candidate => candidate.name === entry.name && candidate.optional && !candidate.installed);
575
+ return bundle === undefined ? [] : [{ bundle, hint: entry.hint }];
576
+ });
577
+ }
578
+ /** The switch line and the usage hint of one experimental bundle, when readable. */
579
+ function experimentalUsageLines(bundle, hint) {
580
+ if (bundle.error !== undefined)
581
+ return [];
582
+ return [
583
+ ` ${t(bundle.enabled ? 'plugins-experimental-disable' : 'plugins-experimental-enable', { bundle: cell(bundle.name) })}`,
584
+ ` ${t(hint)}`,
585
+ ];
586
+ }
587
+ /** One experimental row: title, version and state, without plugin-declaration tags. */
588
+ function experimentalLine(bundle) {
589
+ const flags = [t(bundle.enabled ? 'plugins-bundle-on' : 'plugins-bundle-off')];
590
+ if (bundle.error !== undefined)
591
+ flags.push(t('plugins-bundle-problem', { code: cell(bundle.error.code) }));
592
+ const title = cell(localizedPluginText(bundle, bundle.name));
593
+ const version = bundle.version === undefined ? '' : ` ${cell(bundle.version)}`;
594
+ return ` ${title}${version} · ${flags.join(' · ')}`;
595
+ }
596
+ /** The experimental section; empty when the installation supplies none. */
597
+ function experimentalLines(entries) {
598
+ if (entries.length === 0)
599
+ return [];
600
+ const lines = [t('plugins-experimental-header', { count: String(entries.length) })];
601
+ for (const { bundle, hint } of entries) {
602
+ lines.push(experimentalLine(bundle));
603
+ lines.push(...experimentalUsageLines(bundle, hint));
604
+ }
605
+ return lines;
606
+ }
607
+ /** `/plugin list`: the plugins this profile added, then switchable experimental features. */
566
608
  function listLines(deps, bundles) {
567
609
  const extras = extraBundles(bundles);
568
- if (extras.length === 0)
610
+ const experimental = experimentalEntries(bundles);
611
+ if (extras.length === 0 && experimental.length === 0)
569
612
  return [t('plugins-list-empty')];
570
- const lines = [t('plugins-list-header', { count: String(extras.length) })];
571
- for (const bundle of extras)
572
- lines.push(bundleLine(deps, bundle, { rows: false }));
573
- // The tag is explained once per report, next to the rows it qualifies: this
574
- // surface is a transcript, so there is nothing to click open (C-3).
575
- if (needsDeclarationLegend(deps, extras))
576
- lines.push(t('plugins-tag-undeclared-hint'));
577
- lines.push(t('plugins-list-hint'));
613
+ const lines = [];
614
+ if (extras.length === 0) {
615
+ lines.push(t('plugins-list-empty'));
616
+ }
617
+ else {
618
+ lines.push(t('plugins-list-header', { count: String(extras.length) }));
619
+ for (const bundle of extras)
620
+ lines.push(bundleLine(deps, bundle, { rows: false }));
621
+ // The tag is explained once per report, next to the rows it qualifies: this
622
+ // surface is a transcript, so there is nothing to click open (C-3).
623
+ if (needsDeclarationLegend(deps, extras))
624
+ lines.push(t('plugins-tag-undeclared-hint'));
625
+ }
626
+ // Separate the two sections (and their entries) so the report reads as
627
+ // blocks instead of one dense list.
628
+ if (experimental.length > 0) {
629
+ if (lines.length > 0)
630
+ lines.push('');
631
+ lines.push(...experimentalLines(experimental));
632
+ }
578
633
  return lines;
579
634
  }
580
635
  /**
@@ -103,16 +103,25 @@ export declare function resolvePersistedRoute(ctx: Context, sessionId: SessionId
103
103
  export declare function presetHidesHostAskTool(presetId: string | undefined): boolean;
104
104
  /**
105
105
  * Keep the official Minimal preset's model-facing catalog minimal: it declares
106
- * exactly one persistent shell tool, and the host-mounted ask_user_question
107
- * must not become a second one.
106
+ * exactly one persistent shell tool, and host-layer contributors the person
107
+ * switched on elsewhere must not become extra ones.
108
108
  *
109
- * This is a per-assembly filter rather than a startup-time decision because
110
- * one TUI process can resume, create, or recompose sessions under different
111
- * presets. The session log remains the source of truth for the active preset.
109
+ * Two such contributors are carved out here:
110
+ * - the host-mounted `ask_user_question` (see `presetHidesHostAskTool`);
111
+ * - `@deepseek-ai/dsh-experimental-session-search`, which registers five
112
+ * read-only tools AND a usage-guidance section. The upstream bundle promises
113
+ * "every preset including minimal"; this app intentionally deviates, because
114
+ * 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
+ *
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.
112
121
  *
113
122
  * @param assembly - Fully assembled prompt inputs for one model request.
114
123
  * @param presetId - Preset recorded for the requesting session.
115
- * @returns The original assembly, except ask_user_question is absent in Minimal.
124
+ * @returns The original assembly when nothing is carved out, else the filtered copy.
116
125
  */
117
126
  export declare function filterMinimalPresetTools(assembly: PromptAssembly, presetId: string | undefined): PromptAssembly;
118
127
  /**
@@ -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,gCAAgC,CAAA;AACpE,OAAO,EAAsB,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAWtE,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,kFAAkF;IAClF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAA;CAC5B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAmBhG;AAED;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW5G;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAGpE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,qBAAqB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,CAmBhG;AAED;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAW5G;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAGpE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAW/G;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE5E;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,cAAc,CAM/G;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"}
@@ -20,6 +20,35 @@ 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
22
  const ASK_USER_TOOL = 'ask_user_question';
23
+ /**
24
+ * The prompt section `@deepseek-ai/dsh-experimental-session-search` contributes
25
+ * to the host layer once that bundle is enabled (`order: TOOL_SESSION_QUERY`).
26
+ * It is a section, not a tool: dropping only the five tools below would leave
27
+ * Minimal's model reading guidance for tools it cannot call.
28
+ */
29
+ const SESSION_SEARCH_SECTION = 'tool:session-query';
30
+ /**
31
+ * The five read-only tools the same bundle registers on the host tool layer
32
+ * (`@deepseek-ai/dsh-tool-session-query@0.2.1-rc.2`). The assembly carries no
33
+ * per-tool provenance, so these names are the only way to recognise them —
34
+ * same approach as `team-mode.ts`'s replaced-tool list. Renames upstream turn
35
+ * this carve-out into a silent no-op; `verify:minimal-preset-tools` pins them.
36
+ */
37
+ const SESSION_SEARCH_TOOLS = new Set([
38
+ 'session_search',
39
+ 'session_event_search',
40
+ 'session_trace',
41
+ 'session_event_trace',
42
+ 'session_event_read',
43
+ ]);
44
+ /**
45
+ * Whether a preset's model-facing catalog is fixed by its own composition and
46
+ * must therefore be shielded from HOST-layer contributors the person switched
47
+ * on elsewhere. Only the official Minimal preset qualifies.
48
+ */
49
+ function isMinimalPreset(presetId) {
50
+ return presetId === 'minimal';
51
+ }
23
52
  /**
24
53
  * Resolve the preset one new/resumed session will run under and the setup
25
54
  * that installs it. `requested` undefined adopts the roster default.
@@ -142,28 +171,38 @@ export async function resolvePersistedRoute(ctx, sessionId) {
142
171
  * @returns True when the host-layer tool must be filtered out of the assembly.
143
172
  */
144
173
  export function presetHidesHostAskTool(presetId) {
145
- return presetId === 'minimal';
174
+ return isMinimalPreset(presetId);
146
175
  }
147
176
  /**
148
177
  * Keep the official Minimal preset's model-facing catalog minimal: it declares
149
- * exactly one persistent shell tool, and the host-mounted ask_user_question
150
- * must not become a second one.
178
+ * exactly one persistent shell tool, and host-layer contributors the person
179
+ * switched on elsewhere must not become extra ones.
180
+ *
181
+ * Two such contributors are carved out here:
182
+ * - the host-mounted `ask_user_question` (see `presetHidesHostAskTool`);
183
+ * - `@deepseek-ai/dsh-experimental-session-search`, which registers five
184
+ * read-only tools AND a usage-guidance section. The upstream bundle promises
185
+ * "every preset including minimal"; this app intentionally deviates, because
186
+ * 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.
151
189
  *
152
- * This is a per-assembly filter rather than a startup-time decision because
153
- * one TUI process can resume, create, or recompose sessions under different
154
- * presets. The session log remains the source of truth for the active preset.
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.
155
193
  *
156
194
  * @param assembly - Fully assembled prompt inputs for one model request.
157
195
  * @param presetId - Preset recorded for the requesting session.
158
- * @returns The original assembly, except ask_user_question is absent in Minimal.
196
+ * @returns The original assembly when nothing is carved out, else the filtered copy.
159
197
  */
160
198
  export function filterMinimalPresetTools(assembly, presetId) {
161
- if (!presetHidesHostAskTool(presetId) || !assembly.tools.some(tool => tool.name === ASK_USER_TOOL))
199
+ if (!isMinimalPreset(presetId))
162
200
  return assembly;
163
- return {
164
- ...assembly,
165
- tools: assembly.tools.filter(tool => tool.name !== ASK_USER_TOOL),
166
- };
201
+ const tools = assembly.tools.filter(tool => tool.name !== ASK_USER_TOOL && !SESSION_SEARCH_TOOLS.has(tool.name));
202
+ const sections = assembly.sections.filter(section => section.name !== SESSION_SEARCH_SECTION);
203
+ if (tools.length === assembly.tools.length && sections.length === assembly.sections.length)
204
+ return assembly;
205
+ return { ...assembly, tools, sections };
167
206
  }
168
207
  /**
169
208
  * 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.2): the dispose bound. */
26
+ /** dsh `process-shutdown` PROCESS_SHUTDOWN_TIMEOUT_MS (0.2.1-rc.3): 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.2): the dispose bound. */
9
+ /** dsh `process-shutdown` PROCESS_SHUTDOWN_TIMEOUT_MS (0.2.1-rc.3): 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;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Card headers for the experimental session-search tools.
3
+ *
4
+ * `@deepseek-ai/dsh-tool-session-query@0.2.1-rc.2` gives both search calls a
5
+ * static sentence — "Search prior sessions" / "Search session events" — while
6
+ * a titled generic card renders that sentence and nothing else (the tool name
7
+ * and the arguments stay off the header). Two different calls therefore read
8
+ * alike, and the word "search" repeats the result body's own first line
9
+ * ("Session search results (3):").
10
+ *
11
+ * This adapter is the layer allowed to decide presentation (`agent/
12
+ * presentation.ts`: "a backend translator decides which shape a call gets"),
13
+ * so it gives those two calls a bash-style header instead: the object first,
14
+ * the concrete query in parentheses.
15
+ *
16
+ * The rewrite is self-expiring: it fires only while the upstream title is
17
+ * still the pinned 0.2.1-rc.2 string. A wording change upstream (or a future
18
+ * result presenter) wins silently instead of fighting a second source of
19
+ * truth; delete the entry once upstream ships the new wording.
20
+ *
21
+ * @module
22
+ */
23
+ import type { ToolCallView } from './channel/types.js';
24
+ /**
25
+ * Refine a session-search call card's title with the query it was given.
26
+ *
27
+ * @param name - Tool name.
28
+ * @param view - The upstream presentation view for this call, if any.
29
+ * @param rawArgs - The call's JSON arguments, as persisted.
30
+ * @returns The upstream view untouched unless the tool, the pinned title and
31
+ * a non-empty string `query` all line up; else a retitled copy.
32
+ */
33
+ export declare function refineSessionSearchTitle(name: string, view: ToolCallView | undefined, rawArgs: string): ToolCallView | undefined;
34
+ //# sourceMappingURL=session-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-tools.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/session-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAQtD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,OAAO,EAAE,MAAM,GACd,YAAY,GAAG,SAAS,CAmB1B"}
@@ -0,0 +1,39 @@
1
+ /** Pinned upstream title → the header stem this app shows instead. */
2
+ const REFINED = new Map([
3
+ ['session_search', { pinned: 'Search prior sessions', stem: 'Sessions' }],
4
+ ['session_event_search', { pinned: 'Search session events', stem: 'Events' }],
5
+ ]);
6
+ /**
7
+ * Refine a session-search call card's title with the query it was given.
8
+ *
9
+ * @param name - Tool name.
10
+ * @param view - The upstream presentation view for this call, if any.
11
+ * @param rawArgs - The call's JSON arguments, as persisted.
12
+ * @returns The upstream view untouched unless the tool, the pinned title and
13
+ * a non-empty string `query` all line up; else a retitled copy.
14
+ */
15
+ export function refineSessionSearchTitle(name, view, rawArgs) {
16
+ if (view === undefined || view.card !== 'generic')
17
+ return view;
18
+ const refined = REFINED.get(name);
19
+ if (refined === undefined || view.title !== refined.pinned)
20
+ return view;
21
+ let args;
22
+ try {
23
+ args = JSON.parse(rawArgs);
24
+ }
25
+ catch {
26
+ return view;
27
+ }
28
+ const query = args?.query;
29
+ if (typeof query !== 'string')
30
+ return view;
31
+ const trimmed = query.trim();
32
+ if (trimmed === '')
33
+ return view;
34
+ // The generic card header is one line (`HeaderTitle`'s non-terminal branch),
35
+ // and the query is free model text: JSON-encoding keeps newlines, quotes and
36
+ // control bytes printable inside the `Name("query")` shape instead of
37
+ // splitting the row or writing raw escape sequences to the terminal.
38
+ return { ...view, title: `${refined.stem}(${JSON.stringify(trimmed)})` };
39
+ }
@@ -1,5 +1,5 @@
1
1
  import type { TuiSettingsSection } from '../adapter/ports/channel-settings.js';
2
- export type { TuiSettingsSection, TuiSettingsGroup, TuiSettingsField, TuiSettingsFieldKind, TuiSettingsFieldOption, TuiSettingsFieldWrite } from '../adapter/ports/channel-settings.js';
2
+ export type { TuiSettingsSection, TuiSettingsPage, TuiSettingsGroup, TuiSettingsField, TuiSettingsFieldKind, TuiSettingsFieldOption, TuiSettingsFieldWrite } from '../adapter/ports/channel-settings.js';
3
3
  /**
4
4
  * Plugin settings-section extension seam for terminal front doors.
5
5
  *
@@ -44,5 +44,22 @@ export declare class TuiSettingsSectionsRuntime extends Service {
44
44
  }
45
45
  export declare function getHostSettingsSections(runtime: TuiSettingsSectionsRuntime | undefined): TuiSettingsSectionsHost | undefined;
46
46
  export declare function getLocalSettingsSectionsHost(ctx?: Context): TuiSettingsSectionsHost;
47
+ /**
48
+ * Register a host-owned section in whichever registry `/settings` reads, and
49
+ * keep it there while the composition's `tuiSettingsSections` service comes
50
+ * and goes.
51
+ *
52
+ * The channel prefers the service whenever it exists, while a registration
53
+ * made before the service row activated lands in the in-package fallback —
54
+ * profile rows activate concurrently (`EntryGroup.update` awaits all of
55
+ * them), so "the service exists" is not a boot-order guarantee. A reloaded
56
+ * service row also starts from an empty registry, stranding sections
57
+ * registered in the previous instance. Either transition would leave the
58
+ * section in the registry the screen no longer reads: it disappears from
59
+ * /settings while other sections keep rendering. Both announce themselves
60
+ * through `internal/service`; the replacement registration is taken before
61
+ * the old one is released, so a failed move leaves the section where it was.
62
+ */
63
+ export declare function trackHostSettingsSection(ctx: Context, section: TuiSettingsSection): () => void;
47
64
  export default TuiSettingsSectionsRuntime;
48
65
  //# sourceMappingURL=settings-sections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings-sections.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/settings-sections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAA2G,MAAM,sCAAs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AC,GAAG,CAAC,EAAE,OAAO,GAAG,uBAAuB,CAiBnF;AASD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,kBAAkB,GAAG,MAAM,IAAI,CA2B9F;AAED,eAAe,0BAA0B,CAAA"}
@@ -113,6 +113,24 @@ function registerSection(runtime, section, owner) {
113
113
  if (state.sections.has(ns))
114
114
  throw new Error(`TUI settings section "${ns}" is already registered`);
115
115
  const groupIds = new Set();
116
+ // Pages are display-only grouping keys: validate the id so a tab can never
117
+ // collide with the screen's own sentinel/page keys, and keep the title the
118
+ // tab strip renders.
119
+ const page = section.page === undefined
120
+ ? undefined
121
+ : (() => {
122
+ const id = section.page.id.trim();
123
+ if (!/^[a-z][a-z0-9_-]*$/u.test(id))
124
+ throw new TypeError(`invalid TUI settings page id: ${section.page.id}`);
125
+ const title = section.page.title.trim();
126
+ if (title === '')
127
+ throw new TypeError(`TUI settings page "${id}" needs a title`);
128
+ return Object.freeze({
129
+ id,
130
+ title,
131
+ descriptions: section.page.descriptions === undefined ? undefined : Object.freeze({ ...section.page.descriptions }),
132
+ });
133
+ })();
116
134
  const groups = section.groups === undefined
117
135
  ? undefined
118
136
  : Object.freeze(section.groups.map(group => {
@@ -149,6 +167,7 @@ function registerSection(runtime, section, owner) {
149
167
  ...section,
150
168
  ns,
151
169
  descriptions: section.descriptions === undefined ? undefined : Object.freeze({ ...section.descriptions }),
170
+ page,
152
171
  groups,
153
172
  fields,
154
173
  });
@@ -250,4 +269,58 @@ export function getLocalSettingsSectionsHost(ctx) {
250
269
  });
251
270
  return state.host;
252
271
  }
272
+ /** The registry `/settings` reads right now: the composition's service, else
273
+ * the in-package fallback (the channel resolves the same pair). */
274
+ function currentSettingsSectionsHost(ctx) {
275
+ return getHostSettingsSections(ctx.get('tuiSettingsSections'))
276
+ ?? getLocalSettingsSectionsHost(ctx);
277
+ }
278
+ /**
279
+ * Register a host-owned section in whichever registry `/settings` reads, and
280
+ * keep it there while the composition's `tuiSettingsSections` service comes
281
+ * and goes.
282
+ *
283
+ * The channel prefers the service whenever it exists, while a registration
284
+ * made before the service row activated lands in the in-package fallback —
285
+ * profile rows activate concurrently (`EntryGroup.update` awaits all of
286
+ * them), so "the service exists" is not a boot-order guarantee. A reloaded
287
+ * service row also starts from an empty registry, stranding sections
288
+ * registered in the previous instance. Either transition would leave the
289
+ * section in the registry the screen no longer reads: it disappears from
290
+ * /settings while other sections keep rendering. Both announce themselves
291
+ * through `internal/service`; the replacement registration is taken before
292
+ * the old one is released, so a failed move leaves the section where it was.
293
+ */
294
+ export function trackHostSettingsSection(ctx, section) {
295
+ let host = currentSettingsSectionsHost(ctx);
296
+ let unregister = host.register(section);
297
+ let disposed = false;
298
+ const off = ctx.on('internal/service', ((name) => {
299
+ if (name !== 'tuiSettingsSections' || disposed)
300
+ return;
301
+ const target = currentSettingsSectionsHost(ctx);
302
+ if (target === host)
303
+ return;
304
+ let dispose;
305
+ try {
306
+ dispose = target.register(section);
307
+ }
308
+ catch (error) {
309
+ // A registry that already holds this namespace (a reload that kept the
310
+ // row's state) must not take the section down with the move.
311
+ ctx.logger.warn(`dsh-tui: keeping settings section "${section.ns}" in its current registry: ${error instanceof Error ? error.message : String(error)}`);
312
+ return;
313
+ }
314
+ unregister();
315
+ host = target;
316
+ unregister = dispose;
317
+ }));
318
+ return () => {
319
+ if (disposed)
320
+ return;
321
+ disposed = true;
322
+ off();
323
+ unregister();
324
+ };
325
+ }
253
326
  export default TuiSettingsSectionsRuntime;
@@ -5,7 +5,10 @@
5
5
  * sanitizes and joins every text contribution into one line. `registerView`
6
6
  * is the bounded rich companion for compact, pointer-only surfaces that need
7
7
  * host React and themed cells (for example a progress card). It deliberately
8
- * receives no input, channel, or raw-terminal capability.
8
+ * receives no input, channel, or raw-terminal capability. `setField` is the
9
+ * footer sibling: one keyed text cell admitted into the prompt footer's
10
+ * existing left/right groups, with the same lifecycle, ownership, token, and
11
+ * ledger rules as `set()`.
9
12
  *
10
13
  * Same split as the dialogs seam: a cordis-free store the chat screen
11
14
  * subscribes to, and a thin cordis service validating untrusted input.
@@ -58,6 +61,54 @@ export interface TuiStatusViewEntry {
58
61
  /** Remounts the error boundary after a dispose + same-key re-registration. */
59
62
  readonly registrationId: number;
60
63
  }
64
+ /** Where a plugin footer field joins the footer: the left group's tail, the
65
+ * right group's head, or the right group's tail. `right-tail` is the row's
66
+ * right edge in the split layout only: `statusBar.compact` (the default)
67
+ * merges both groups into one left-aligned chain, where the slots order that
68
+ * chain and the ctx chip / trailing free space stay to the field's right. */
69
+ export type TuiStatusFieldSlot = 'left-tail' | 'right-head' | 'right-tail';
70
+ /** Semantic theme tone for a footer field. Literal colours are refused so a
71
+ * plugin cannot paint a one-off cell that ignores the active theme. */
72
+ export type TuiStatusFieldTone = 'dim' | 'accent' | 'success' | 'warning' | 'error';
73
+ /** Options for `tuiStatus.setField`. Every key is optional; on update an
74
+ * omitted key keeps that field's previous value (a fresh key starts from the
75
+ * defaults documented below). */
76
+ export interface TuiStatusFieldOptions {
77
+ /** Default `'left-tail'`. */
78
+ readonly slot?: TuiStatusFieldSlot;
79
+ /** Default `'dim'`. */
80
+ readonly tone?: TuiStatusFieldTone;
81
+ /** Hard text cap in terminal cells: default 16, clamped to 1…32. */
82
+ readonly maxCells?: number;
83
+ /** Hide the field below this terminal width: default 0, clamped to 0…400. */
84
+ readonly minColumns?: number;
85
+ /** Supplemental-row text shown while the pointer rests on the field,
86
+ * capped at 160 cells. Declaring `onClick` requires it. */
87
+ readonly detail?: string;
88
+ /** Pointer click in fullscreen (mouse tracking) only. Declaring it without
89
+ * a non-empty `detail` is refused: a clickable cell owes an explanation. */
90
+ readonly onClick?: () => void;
91
+ }
92
+ /** Host-side normalized field. `onClick` is the host-WRAPPED handler (errors
93
+ * are logged and reported to the UI); this type stays inside the adapter. */
94
+ export interface TuiStatusFieldEntry {
95
+ readonly key: string;
96
+ readonly text: string;
97
+ readonly slot: TuiStatusFieldSlot;
98
+ readonly tone: TuiStatusFieldTone;
99
+ readonly maxCells: number;
100
+ readonly minColumns: number;
101
+ readonly detail?: string;
102
+ readonly onClick?: () => void;
103
+ }
104
+ /** Host-side admission record: the frozen entry, the token + owner a disposer
105
+ * checks, and the unwrapped click so an options-less update can reuse it. */
106
+ export interface TuiStatusFieldRecord {
107
+ readonly entry: TuiStatusFieldEntry;
108
+ readonly token: number;
109
+ readonly owner: object;
110
+ readonly rawOnClick?: () => void;
111
+ }
61
112
  /** Cordis-free text + view store. Render order is first-set/register order
62
113
  * (Map insertion order), so plugin contributions do not jump on updates. */
63
114
  export declare class TuiStatusStore {
@@ -65,8 +116,11 @@ export declare class TuiStatusStore {
65
116
  private readonly listeners;
66
117
  private readonly entries;
67
118
  private readonly views;
119
+ private readonly fields;
68
120
  private snapshot;
69
121
  private viewSnapshot;
122
+ private fieldSnapshot;
123
+ private onFieldError;
70
124
  constructor(onViewError?: ((key: string, error: Error) => void) | undefined);
71
125
  /** Set or clear (undefined/empty) one key. */
72
126
  set(key: string, text: string | undefined, token?: number, owner?: object): void;
@@ -83,6 +137,23 @@ export declare class TuiStatusStore {
83
137
  clearViewIf(key: string, token: number, owner?: object): boolean;
84
138
  /** Called only by the host-side error boundary. */
85
139
  reportViewError(key: string, error: Error): void;
140
+ /** Current footer fields, first-set first and referentially stable between
141
+ * mutations for `useSyncExternalStore`. */
142
+ getFieldSnapshot(): readonly TuiStatusFieldEntry[];
143
+ /** Store (or overwrite) one admitted field. Slot/option merging already
144
+ * happened in the service; the store only records normalized entries. */
145
+ setField(entry: TuiStatusFieldEntry, token: number, owner: object, rawOnClick?: () => void): void;
146
+ /** The full admission record for `key` (read by the service to merge an
147
+ * update onto the previous options and to check ownership). */
148
+ fieldEntry(key: string): TuiStatusFieldRecord | undefined;
149
+ fieldCount(): number;
150
+ /** How many footer fields one activation currently owns (cap enforcement). */
151
+ fieldsOwnedBy(owner: object): number;
152
+ /** Clear `key` only while it still holds this token AND owner. */
153
+ clearFieldIf(key: string, token: number, owner?: object): boolean;
154
+ /** UI-side handler for a plugin click that threw; the service logs first. */
155
+ setFieldErrorHandler(handler?: (key: string, error: Error) => void): void;
156
+ reportFieldError(key: string, error: Error): void;
86
157
  /** Clear `key` only while it still holds the write tagged `token` — a
87
158
  * stale disposer must not wipe a newer contribution (even one with
88
159
  * identical text). Returns true when this call actually cleared. */
@@ -124,6 +195,22 @@ export declare class TuiStatusRuntime extends Service {
124
195
  * guess (C-060 honest identity).
125
196
  */
126
197
  set(key: string, text: string | number | boolean | undefined, identity?: Context): () => void;
198
+ /**
199
+ * Insert (or update/clear) one keyed TEXT field in the prompt footer's
200
+ * existing left/right groups — no new row, no plugin component. The field
201
+ * keeps the same admission contract as `set()`: plugin caller, activation
202
+ * ownership, token-based disposers, effect-ledger records, never throws.
203
+ *
204
+ * Unlike `set()`, footer fields are capped (six total, two per activation)
205
+ * and each cell is truncated by the host to `maxCells` (default 16, at most
206
+ * 32) so the row's flex shrinking always has a definite bound. `detail` and
207
+ * `onClick` are optional; a click without a detail line is refused (the
208
+ * footer must never promise an action it cannot explain on hover).
209
+ *
210
+ * Passing `undefined` (or text that sanitizes to nothing) CLEARS the field;
211
+ * a stale disposer cannot clear a newer write for the same key.
212
+ */
213
+ setField(key: string, text: string | number | boolean | undefined, options?: TuiStatusFieldOptions, identity?: Context): () => void;
127
214
  /**
128
215
  * Register a compact React view above the prompt. The component receives
129
216
  * the host's React plus a pointer-only UI kit; it owns its live data via an
@@ -1 +1 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAUtD,iCAAiC;AACjC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ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