@deepseek-harness-tui/dsh-tui 0.16.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (488) hide show
  1. package/README.md +213 -34
  2. package/assets/plugin-icon.svg +13 -0
  3. package/assets/windows-installer.cs +308 -0
  4. package/assets/windows-installer.ps1 +17 -0
  5. package/bin/dsh-tui.js +64 -5
  6. package/cli/adapters/dsh/index.mjs +111 -0
  7. package/cli/adapters/dsh/locate.mjs +73 -0
  8. package/cli/adapters/dsh/management-plugin.mjs +111 -0
  9. package/cli/args.mjs +154 -0
  10. package/cli/contracts.d.ts +48 -0
  11. package/cli/engine.mjs +92 -0
  12. package/cli/entry.mjs +48 -0
  13. package/cli/process.mjs +118 -0
  14. package/cli/protocol.mjs +23 -0
  15. package/cli/schema-v1.json +33 -0
  16. package/cordis.patch.yml +3 -1
  17. package/cordis.yml +3 -1
  18. package/guide/dsh-tui-guide/SKILL.md +1 -0
  19. package/guide/dsh-tui-guide/cli.en.md +114 -0
  20. package/guide/dsh-tui-guide/cli.md +114 -0
  21. package/guide/dsh-tui-guide/configuration.en.md +7 -5
  22. package/guide/dsh-tui-guide/configuration.md +7 -5
  23. package/guide/dsh-tui-guide/getting-started.en.md +33 -3
  24. package/guide/dsh-tui-guide/getting-started.md +23 -2
  25. package/guide/dsh-tui-guide/interaction.en.md +50 -17
  26. package/guide/dsh-tui-guide/interaction.md +35 -13
  27. package/guide/dsh-tui-guide/plugins.en.md +63 -11
  28. package/guide/dsh-tui-guide/plugins.md +41 -7
  29. package/guide/dsh-tui-guide/user-guide.en.md +55 -34
  30. package/guide/dsh-tui-guide/user-guide.md +45 -28
  31. package/lib/settings.json +85 -42
  32. package/lib/types/adapter/channel/plugins.d.ts.map +1 -1
  33. package/lib/types/adapter/channel/plugins.js +8 -0
  34. package/lib/types/adapter/channel/ui-policy.d.ts +2 -1
  35. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
  36. package/lib/types/adapter/channel/ui-policy.js +4 -0
  37. package/lib/types/adapter/ports/channel-display.d.ts +10 -0
  38. package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
  39. package/lib/types/adapter/ports/channel-session.d.ts +2 -0
  40. package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
  41. package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
  42. package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
  43. package/lib/types/adapter/ports/channel-ui.d.ts +22 -2
  44. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  45. package/lib/types/adapter/ports/channel-view.d.ts +11 -1
  46. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  47. package/lib/types/adapter/ports/channel.d.ts +7 -0
  48. package/lib/types/adapter/ports/channel.d.ts.map +1 -1
  49. package/lib/types/adapter/standard/grants.d.ts +60 -0
  50. package/lib/types/adapter/standard/grants.d.ts.map +1 -1
  51. package/lib/types/adapter/standard/grants.js +74 -0
  52. package/lib/types/agent/capabilities.d.ts +2 -0
  53. package/lib/types/agent/capabilities.d.ts.map +1 -1
  54. package/lib/types/agent/events.d.ts +15 -1
  55. package/lib/types/agent/events.d.ts.map +1 -1
  56. package/lib/types/api.d.ts +2 -2
  57. package/lib/types/api.d.ts.map +1 -1
  58. package/lib/types/backends/claude/translate/events.d.ts.map +1 -1
  59. package/lib/types/backends/claude/translate/events.js +2 -1
  60. package/lib/types/backends/codex/auth/status.js +1 -1
  61. package/lib/types/backends/codex/session/controls.d.ts.map +1 -1
  62. package/lib/types/backends/codex/session/controls.js +6 -5
  63. package/lib/types/backends/codex/session/goals.d.ts.map +1 -1
  64. package/lib/types/backends/codex/session/side-query.d.ts.map +1 -1
  65. package/lib/types/backends/codex/translate/events.d.ts.map +1 -1
  66. package/lib/types/backends/codex/translate/events.js +3 -1
  67. package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -1
  68. package/lib/types/backends/shared/channel-tokens.js +9 -8
  69. package/lib/types/channel/history-restore.d.ts.map +1 -1
  70. package/lib/types/channel/history-restore.js +2 -0
  71. package/lib/types/channel/interaction.d.ts.map +1 -1
  72. package/lib/types/channel/interaction.js +1 -0
  73. package/lib/types/channel/projection.d.ts +1 -1
  74. package/lib/types/channel/projection.d.ts.map +1 -1
  75. package/lib/types/channel/projection.js +19 -4
  76. package/lib/types/channel/questions.d.ts +2 -0
  77. package/lib/types/channel/questions.d.ts.map +1 -1
  78. package/lib/types/channel/sanitize.d.ts +14 -0
  79. package/lib/types/channel/sanitize.d.ts.map +1 -1
  80. package/lib/types/channel/sanitize.js +55 -0
  81. package/lib/types/channel/working-directory.d.ts +9 -0
  82. package/lib/types/channel/working-directory.d.ts.map +1 -0
  83. package/lib/types/channel/working-directory.js +7 -0
  84. package/lib/types/commands.d.ts +8 -1
  85. package/lib/types/commands.d.ts.map +1 -1
  86. package/lib/types/commands.js +14 -5
  87. package/lib/types/components/ChatTitle.d.ts +7 -0
  88. package/lib/types/components/ChatTitle.d.ts.map +1 -0
  89. package/lib/types/components/ChatTitle.js +15 -0
  90. package/lib/types/components/CodeBlockFrame.d.ts.map +1 -1
  91. package/lib/types/components/CodeBlockFrame.js +10 -5
  92. package/lib/types/components/CompactionStatusRow.d.ts.map +1 -1
  93. package/lib/types/components/CompactionStatusRow.js +24 -3
  94. package/lib/types/components/GoalTodoPanel.d.ts +73 -6
  95. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  96. package/lib/types/components/GoalTodoPanel.js +165 -17
  97. package/lib/types/components/Markdown.d.ts +9 -1
  98. package/lib/types/components/Markdown.d.ts.map +1 -1
  99. package/lib/types/components/Markdown.js +5 -4
  100. package/lib/types/components/MessageList.d.ts.map +1 -1
  101. package/lib/types/components/MessageList.js +20 -14
  102. package/lib/types/components/PluginGrantList.d.ts +45 -0
  103. package/lib/types/components/PluginGrantList.d.ts.map +1 -0
  104. package/lib/types/components/PluginGrantList.js +126 -0
  105. package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
  106. package/lib/types/components/PluginInstallPane.js +35 -6
  107. package/lib/types/components/PluginManagePane.d.ts.map +1 -1
  108. package/lib/types/components/PluginManagePane.js +65 -8
  109. package/lib/types/components/PromptInput.d.ts +13 -5
  110. package/lib/types/components/PromptInput.d.ts.map +1 -1
  111. package/lib/types/components/PromptInput.js +190 -108
  112. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  113. package/lib/types/components/SplitDiffView.js +232 -22
  114. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  115. package/lib/types/components/SubagentDashboard.js +10 -0
  116. package/lib/types/components/SubagentDetailScene.d.ts +3 -1
  117. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  118. package/lib/types/components/SubagentDetailScene.js +17 -1
  119. package/lib/types/components/Whale.d.ts.map +1 -1
  120. package/lib/types/components/Whale.js +8 -5
  121. package/lib/types/components/approvals/ApprovalPanel.d.ts +1 -1
  122. package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
  123. package/lib/types/components/approvals/ApprovalPanel.js +93 -11
  124. package/lib/types/components/bigfont.d.ts.map +1 -1
  125. package/lib/types/components/bigfont.js +2 -1
  126. package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
  127. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  128. package/lib/types/components/messages/AssistantToolUseMessage.js +24 -11
  129. package/lib/types/components/onboardingModel.d.ts +2 -2
  130. package/lib/types/components/onboardingModel.js +3 -3
  131. package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
  132. package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
  133. package/lib/types/components/onboardingProviderPlan.js +78 -0
  134. package/lib/types/components/previewRows.d.ts +19 -0
  135. package/lib/types/components/previewRows.d.ts.map +1 -0
  136. package/lib/types/components/previewRows.js +46 -0
  137. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  138. package/lib/types/components/questions/AskUserQuestionPanel.js +75 -10
  139. package/lib/types/components/sessions/ForeignSessionRow.d.ts +3 -9
  140. package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -1
  141. package/lib/types/components/sessions/ForeignSessionRow.js +6 -10
  142. package/lib/types/components/sessions/SessionListRow.d.ts +4 -9
  143. package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
  144. package/lib/types/components/sessions/SessionListRow.js +18 -10
  145. package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
  146. package/lib/types/components/sidePanel/InfoPanel.js +4 -3
  147. package/lib/types/components/sidePanel/SidePanelLayout.d.ts.map +1 -1
  148. package/lib/types/components/sidePanel/SidePanelLayout.js +5 -5
  149. package/lib/types/components/sidePanel/WorkspacePanel.d.ts.map +1 -1
  150. package/lib/types/components/sidePanel/WorkspacePanel.js +19 -7
  151. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +7 -0
  152. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
  153. package/lib/types/components/sidePanel/btw/BtwComposer.js +16 -0
  154. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
  155. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +8 -1
  156. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
  157. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
  158. package/lib/types/components/sidePanel/btw/BtwThreadScene.js +8 -1
  159. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
  160. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
  161. package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
  162. package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
  163. package/lib/types/components/sidePanel/builtinPanels.js +36 -18
  164. package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
  165. package/lib/types/components/sidePanel/companion/CompanionPanel.js +2 -1
  166. package/lib/types/components/sidePanel/panelMarkdown.d.ts +32 -0
  167. package/lib/types/components/sidePanel/panelMarkdown.d.ts.map +1 -0
  168. package/lib/types/components/sidePanel/panelMarkdown.js +45 -0
  169. package/lib/types/components/sidePanel/pluginPanelAdapter.d.ts.map +1 -1
  170. package/lib/types/components/sidePanel/pluginPanelAdapter.js +6 -1
  171. package/lib/types/components/sidePanel/subagentFailureRead.d.ts +21 -0
  172. package/lib/types/components/sidePanel/subagentFailureRead.d.ts.map +1 -0
  173. package/lib/types/components/sidePanel/subagentFailureRead.js +66 -0
  174. package/lib/types/components/sidePanel/types.d.ts +2 -0
  175. package/lib/types/components/sidePanel/types.d.ts.map +1 -1
  176. package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
  177. package/lib/types/components/sidePanel/useSidePanel.js +39 -7
  178. package/lib/types/components/trajectory/MiniWake.d.ts +2 -2
  179. package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
  180. package/lib/types/components/trajectory/MiniWake.js +7 -3
  181. package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
  182. package/lib/types/components/workspaces/HomeWorkspaceRow.js +4 -7
  183. package/lib/types/dsh-adapter/backend/session.d.ts +7 -1
  184. package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
  185. package/lib/types/dsh-adapter/backend/session.js +62 -6
  186. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
  187. package/lib/types/dsh-adapter/backend/translate.js +18 -4
  188. package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
  189. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
  190. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
  191. package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
  192. package/lib/types/dsh-adapter/channel/binding-events.d.ts +5 -1
  193. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
  194. package/lib/types/dsh-adapter/channel/binding-events.js +18 -1
  195. package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
  196. package/lib/types/dsh-adapter/channel/command-completions.js +6 -8
  197. package/lib/types/dsh-adapter/channel/composer-images.d.ts +11 -1
  198. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
  199. package/lib/types/dsh-adapter/channel/composer-images.js +121 -113
  200. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
  201. package/lib/types/dsh-adapter/channel/composer-mentions.js +38 -17
  202. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +1 -1
  203. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
  204. package/lib/types/dsh-adapter/channel/context-bookkeeping.js +9 -5
  205. package/lib/types/dsh-adapter/channel/core/actions.d.ts +1 -1
  206. package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -1
  207. package/lib/types/dsh-adapter/channel/core/actions.js +23 -2
  208. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +10 -1
  209. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
  210. package/lib/types/dsh-adapter/channel/core/binding-feed.js +48 -3
  211. package/lib/types/dsh-adapter/channel/core/compose.d.ts +5 -2
  212. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
  213. package/lib/types/dsh-adapter/channel/core/compose.js +7 -0
  214. package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
  215. package/lib/types/dsh-adapter/channel/core/files.js +2 -1
  216. package/lib/types/dsh-adapter/channel/core/host.d.ts +14 -10
  217. package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -1
  218. package/lib/types/dsh-adapter/channel/core/host.js +192 -13
  219. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +1 -0
  220. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
  221. package/lib/types/dsh-adapter/channel/core/local-actions.js +32 -3
  222. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
  223. package/lib/types/dsh-adapter/channel/extensions.js +31 -5
  224. package/lib/types/dsh-adapter/channel/input-actions.d.ts +2 -2
  225. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
  226. package/lib/types/dsh-adapter/channel/input-actions.js +34 -0
  227. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +5 -2
  228. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
  229. package/lib/types/dsh-adapter/channel/input-delivery.js +31 -4
  230. package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
  231. package/lib/types/dsh-adapter/channel/mentions.js +21 -7
  232. package/lib/types/dsh-adapter/channel/model-actions.d.ts +1 -1
  233. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
  234. package/lib/types/dsh-adapter/channel/model-actions.js +7 -1
  235. package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
  236. package/lib/types/dsh-adapter/channel/model-selection.js +6 -4
  237. package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
  238. package/lib/types/dsh-adapter/channel/paths.js +11 -9
  239. package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
  240. package/lib/types/dsh-adapter/channel/session-fork.js +1 -0
  241. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
  242. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
  243. package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
  244. package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
  245. package/lib/types/dsh-adapter/channel/session-metadata.js +15 -2
  246. package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
  247. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
  248. package/lib/types/dsh-adapter/channel/session-reset.js +7 -1
  249. package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
  250. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
  251. package/lib/types/dsh-adapter/channel/session-resume.js +56 -36
  252. package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
  253. package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
  254. package/lib/types/dsh-adapter/channel/session-rewind.js +3 -1
  255. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
  256. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
  257. package/lib/types/dsh-adapter/channel/session-tree-actions.js +3 -1
  258. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  259. package/lib/types/dsh-adapter/channel/settings-host.js +10 -3
  260. package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
  261. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
  262. package/lib/types/dsh-adapter/channel/state.js +2 -2
  263. package/lib/types/dsh-adapter/channel/types.d.ts +13 -1
  264. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  265. package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -3
  266. package/lib/types/dsh-adapter/compat/liveSession.js +3 -3
  267. package/lib/types/dsh-adapter/compat/sessionLog.d.ts +1 -1
  268. package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
  269. package/lib/types/dsh-adapter/compat/sessionLog.js +17 -1
  270. package/lib/types/dsh-adapter/contract.d.ts +7 -5
  271. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  272. package/lib/types/dsh-adapter/contract.js +10 -5
  273. package/lib/types/dsh-adapter/effect-ledger.d.ts +1 -1
  274. package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
  275. package/lib/types/dsh-adapter/effect-ledger.js +1 -0
  276. package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
  277. package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
  278. package/lib/types/dsh-adapter/experimental-bundles.d.ts +29 -0
  279. package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
  280. package/lib/types/dsh-adapter/experimental-bundles.js +15 -0
  281. package/lib/types/dsh-adapter/grant-file.d.ts +70 -0
  282. package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
  283. package/lib/types/dsh-adapter/grant-file.js +178 -0
  284. package/lib/types/dsh-adapter/host-access.d.ts +4 -0
  285. package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
  286. package/lib/types/dsh-adapter/host-access.js +54 -4
  287. package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
  288. package/lib/types/dsh-adapter/host-contract.js +2 -2
  289. package/lib/types/dsh-adapter/host-dsh.js +3 -3
  290. package/lib/types/dsh-adapter/index.d.ts +8 -4
  291. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  292. package/lib/types/dsh-adapter/index.js +17 -12
  293. package/lib/types/dsh-adapter/panels.d.ts +28 -8
  294. package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
  295. package/lib/types/dsh-adapter/panels.js +11 -56
  296. package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
  297. package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
  298. package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
  299. package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
  300. package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
  301. package/lib/types/dsh-adapter/plugin-install.js +160 -13
  302. package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
  303. package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
  304. package/lib/types/dsh-adapter/plugin-manage.js +240 -51
  305. package/lib/types/dsh-adapter/plugin.d.ts +81 -0
  306. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  307. package/lib/types/dsh-adapter/plugin.js +378 -84
  308. package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
  309. package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
  310. package/lib/types/dsh-adapter/plugins-info.js +99 -31
  311. package/lib/types/dsh-adapter/presets.d.ts +19 -6
  312. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  313. package/lib/types/dsh-adapter/presets.js +69 -12
  314. package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
  315. package/lib/types/dsh-adapter/process-exit.js +1 -1
  316. package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
  317. package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
  318. package/lib/types/dsh-adapter/providerWizard.js +11 -5
  319. package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
  320. package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
  321. package/lib/types/dsh-adapter/row-attachment.js +29 -0
  322. package/lib/types/dsh-adapter/session-tools.d.ts +34 -0
  323. package/lib/types/dsh-adapter/session-tools.d.ts.map +1 -0
  324. package/lib/types/dsh-adapter/session-tools.js +39 -0
  325. package/lib/types/dsh-adapter/settings-sections.d.ts +18 -1
  326. package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
  327. package/lib/types/dsh-adapter/settings-sections.js +73 -0
  328. package/lib/types/dsh-adapter/status.d.ts +88 -1
  329. package/lib/types/dsh-adapter/status.d.ts.map +1 -1
  330. package/lib/types/dsh-adapter/status.js +318 -3
  331. package/lib/types/dsh-adapter/team-mode.d.ts +42 -33
  332. package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
  333. package/lib/types/dsh-adapter/team-mode.js +76 -112
  334. package/lib/types/dsh-adapter/worktree-tool.d.ts +27 -0
  335. package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
  336. package/lib/types/dsh-adapter/worktree-tool.js +87 -0
  337. package/lib/types/extensions.d.ts +1 -1
  338. package/lib/types/extensions.d.ts.map +1 -1
  339. package/lib/types/force-production-react.js +3 -3
  340. package/lib/types/heldInputs.d.ts +36 -0
  341. package/lib/types/heldInputs.d.ts.map +1 -0
  342. package/lib/types/heldInputs.js +173 -0
  343. package/lib/types/i18n.d.ts +543 -73
  344. package/lib/types/i18n.d.ts.map +1 -1
  345. package/lib/types/i18n.js +265 -46
  346. package/lib/types/ink/colorize.d.ts +7 -1
  347. package/lib/types/ink/colorize.d.ts.map +1 -1
  348. package/lib/types/ink/colorize.js +29 -8
  349. package/lib/types/ink/components/App.d.ts +2 -1
  350. package/lib/types/ink/components/App.d.ts.map +1 -1
  351. package/lib/types/ink/components/App.js +10 -3
  352. package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
  353. package/lib/types/ink/components/ScrollBox.js +1 -0
  354. package/lib/types/ink/dom.d.ts +1 -0
  355. package/lib/types/ink/dom.d.ts.map +1 -1
  356. package/lib/types/ink/hooks/use-program-status.d.ts +78 -0
  357. package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -0
  358. package/lib/types/ink/hooks/use-program-status.js +96 -0
  359. package/lib/types/ink/ink.d.ts +13 -4
  360. package/lib/types/ink/ink.d.ts.map +1 -1
  361. package/lib/types/ink/ink.js +119 -25
  362. package/lib/types/ink/output.d.ts +17 -2
  363. package/lib/types/ink/output.d.ts.map +1 -1
  364. package/lib/types/ink/output.js +85 -2
  365. package/lib/types/ink/parse-keypress.d.ts +1 -0
  366. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  367. package/lib/types/ink/parse-keypress.js +5 -4
  368. package/lib/types/ink/render-node-to-output.d.ts +2 -0
  369. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  370. package/lib/types/ink/render-node-to-output.js +79 -10
  371. package/lib/types/ink/root.d.ts +8 -0
  372. package/lib/types/ink/root.d.ts.map +1 -1
  373. package/lib/types/ink/root.js +12 -3
  374. package/lib/types/ink/screen.d.ts +11 -0
  375. package/lib/types/ink/screen.d.ts.map +1 -1
  376. package/lib/types/ink/screen.js +44 -0
  377. package/lib/types/ink/selection.d.ts +7 -2
  378. package/lib/types/ink/selection.d.ts.map +1 -1
  379. package/lib/types/ink/selection.js +187 -44
  380. package/lib/types/ink/shutdown-input.d.ts +15 -0
  381. package/lib/types/ink/shutdown-input.d.ts.map +1 -0
  382. package/lib/types/ink/shutdown-input.js +28 -0
  383. package/lib/types/ink/sixel-cursor-heal.d.ts +21 -0
  384. package/lib/types/ink/sixel-cursor-heal.d.ts.map +1 -0
  385. package/lib/types/ink/sixel-cursor-heal.js +62 -0
  386. package/lib/types/ink/sixel-graphics.d.ts +6 -0
  387. package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
  388. package/lib/types/ink/sixel-graphics.js +18 -0
  389. package/lib/types/ink/styles.d.ts +8 -1
  390. package/lib/types/ink/styles.d.ts.map +1 -1
  391. package/lib/types/ink/terminal-notification-windows.d.ts +195 -0
  392. package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -0
  393. package/lib/types/ink/terminal-notification-windows.js +433 -0
  394. package/lib/types/ink/terminal-notification.d.ts +3 -1
  395. package/lib/types/ink/terminal-notification.d.ts.map +1 -1
  396. package/lib/types/ink/terminal-notification.js +4 -1
  397. package/lib/types/ink/terminal-querier.d.ts +9 -1
  398. package/lib/types/ink/terminal-querier.d.ts.map +1 -1
  399. package/lib/types/ink/terminal-querier.js +32 -1
  400. package/lib/types/ink/terminal.d.ts +23 -2
  401. package/lib/types/ink/terminal.d.ts.map +1 -1
  402. package/lib/types/ink/terminal.js +32 -2
  403. package/lib/types/ink/termio/osc.d.ts +2 -1
  404. package/lib/types/ink/termio/osc.d.ts.map +1 -1
  405. package/lib/types/ink/termio/osc.js +37 -8
  406. package/lib/types/ink/termio/osc7501.d.ts +102 -0
  407. package/lib/types/ink/termio/osc7501.d.ts.map +1 -0
  408. package/lib/types/ink/termio/osc7501.js +229 -0
  409. package/lib/types/ink/termio/tokenize.js +5 -7
  410. package/lib/types/onboardingDraft.d.ts +143 -0
  411. package/lib/types/onboardingDraft.d.ts.map +1 -0
  412. package/lib/types/onboardingDraft.js +71 -0
  413. package/lib/types/panels.d.ts +1 -1
  414. package/lib/types/panels.d.ts.map +1 -1
  415. package/lib/types/screens/AgentTranscriptScene.d.ts +3 -1
  416. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
  417. package/lib/types/screens/AgentTranscriptScene.js +5 -1
  418. package/lib/types/screens/Chat.d.ts +6 -6
  419. package/lib/types/screens/Chat.d.ts.map +1 -1
  420. package/lib/types/screens/Chat.js +394 -141
  421. package/lib/types/screens/Launchpad.d.ts +8 -2
  422. package/lib/types/screens/Launchpad.d.ts.map +1 -1
  423. package/lib/types/screens/Launchpad.js +32 -12
  424. package/lib/types/screens/Onboarding.d.ts +22 -3
  425. package/lib/types/screens/Onboarding.d.ts.map +1 -1
  426. package/lib/types/screens/Onboarding.js +606 -36
  427. package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
  428. package/lib/types/screens/SessionSupervisor.js +31 -21
  429. package/lib/types/screens/Settings.d.ts +5 -1
  430. package/lib/types/screens/Settings.d.ts.map +1 -1
  431. package/lib/types/screens/Settings.js +528 -51
  432. package/lib/types/screens/StatusLine.d.ts +9 -3
  433. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  434. package/lib/types/screens/StatusLine.js +91 -15
  435. package/lib/types/screens/StatusMetrics.d.ts +2 -11
  436. package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
  437. package/lib/types/screens/StatusMetrics.js +20 -14
  438. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
  439. package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +1 -1
  440. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +1 -1
  441. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
  442. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +13 -21
  443. package/lib/types/sessionMounts.d.ts +14 -0
  444. package/lib/types/sessionMounts.d.ts.map +1 -1
  445. package/lib/types/sessionMounts.js +20 -9
  446. package/lib/types/sessions/format.d.ts +39 -0
  447. package/lib/types/sessions/format.d.ts.map +1 -1
  448. package/lib/types/sessions/format.js +83 -0
  449. package/lib/types/sessions/resumeFailure.d.ts +4 -0
  450. package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
  451. package/lib/types/sessions/resumeFailure.js +12 -4
  452. package/lib/types/sessions/workspaceCounts.d.ts +6 -0
  453. package/lib/types/sessions/workspaceCounts.d.ts.map +1 -0
  454. package/lib/types/sessions/workspaceCounts.js +24 -0
  455. package/lib/types/settings/definitions.d.ts +24 -0
  456. package/lib/types/settings/definitions.d.ts.map +1 -1
  457. package/lib/types/settings/definitions.js +40 -15
  458. package/lib/types/tips.js +2 -2
  459. package/lib/types/tuiDisplayPrefs.d.ts +113 -5
  460. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  461. package/lib/types/tuiDisplayPrefs.js +276 -14
  462. package/lib/types/update.d.ts +15 -14
  463. package/lib/types/update.d.ts.map +1 -1
  464. package/lib/types/update.js +163 -115
  465. package/lib/types/updateProcess.d.ts +28 -0
  466. package/lib/types/updateProcess.d.ts.map +1 -0
  467. package/lib/types/updateProcess.js +135 -0
  468. package/lib/types/utils/inputWordBoundary.d.ts +5 -0
  469. package/lib/types/utils/inputWordBoundary.d.ts.map +1 -0
  470. package/lib/types/utils/inputWordBoundary.js +18 -0
  471. package/lib/types/utils/keymap.d.ts +1 -1
  472. package/lib/types/utils/keymap.d.ts.map +1 -1
  473. package/lib/types/utils/keymap.js +6 -1
  474. package/lib/types/utils/paths.d.ts +15 -0
  475. package/lib/types/utils/paths.d.ts.map +1 -1
  476. package/lib/types/utils/paths.js +25 -0
  477. package/lib/types/windowsInstaller.d.ts +4 -0
  478. package/lib/types/windowsInstaller.d.ts.map +1 -0
  479. package/lib/types/windowsInstaller.js +237 -0
  480. package/locale/en.json +6 -0
  481. package/locale/zh.json +6 -0
  482. package/package.json +130 -111
  483. package/presets/liangshen/custom-bash.mjs +13 -1
  484. package/presets/liangshen/instruction-hint.mjs +4 -1
  485. package/presets/liangshen/skill-search.mjs +14 -2
  486. package/presets/winbash.mjs +16 -4
  487. package/tui-profile/feed/README.md +17 -8
  488. package/tui-profile/feed/first-party.json +1 -1
@@ -45,7 +45,7 @@ export declare const EFFECT_LEDGER_NAME = "effect-ledger.jsonl";
45
45
  /** Default ledger file (JSONL, one record per line). */
46
46
  export declare const EFFECT_LEDGER_FILE: string;
47
47
  /** Resource kinds recorded by the host's wired emitters. */
48
- export declare const LEDGER_RESOURCE_KINDS: readonly ["command", "scene", "shortcut", "status", "renderer", "theme", "storage-namespace", "subscription", "permission"];
48
+ export declare const LEDGER_RESOURCE_KINDS: readonly ["command", "scene", "shortcut", "status", "status-field", "renderer", "theme", "storage-namespace", "subscription", "permission"];
49
49
  export type LedgerOperation = 'create' | 'bind' | 'replace' | 'release' | 'cleanup-failed';
50
50
  export type LedgerResult = 'applied' | 'pending' | 'failed';
51
51
  /** Caller-facing record input; the runtime fills the lifecycle triple. */
@@ -1 +1 @@
1
- {"version":3,"file":"effect-ledger.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/effect-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AActD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,wBAAwB,CAAA;AAEvD,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,QAAqC,CAAA;AAEpE,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,6HAUxB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAA;AAC1F,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE3D,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,eAAe,CAAA;IAC1B,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;IACtC,MAAM,EAAE,YAAY,CAAA;IACpB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yDAAyD;IACzD,QAAQ,CAAC,EAA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AgBlB,OAAO,CAAC,YAAY;CAarB;AA+CD,eAAe,sBAAsB,CAAA"}
@@ -59,6 +59,7 @@ export const LEDGER_RESOURCE_KINDS = [
59
59
  'scene',
60
60
  'shortcut',
61
61
  'status',
62
+ 'status-field',
62
63
  'renderer',
63
64
  'theme',
64
65
  'storage-namespace',
@@ -18,6 +18,12 @@ export interface EntrySlot {
18
18
  /** The DSH side. The row calls it once, after the Loader settled; it never
19
19
  * throws (a failure lands in the mounted screen). */
20
20
  attachDsh?: (ctx: unknown, runtimeConfig: unknown, configOwner: unknown) => Promise<void>;
21
+ /** A row applied again after `attachDsh` was taken (its services came
22
+ * back after unloading under the screen, #1651): the hook that remounts
23
+ * the DSH seams on the new row and reopens the screen's session if it
24
+ * ended with the previous row, called like `attachDsh`. Undefined while
25
+ * the previous row is still mounted, and the new row stays idle. */
26
+ reattachDsh?: () => EntrySlot['attachDsh'];
21
27
  /** DSH: the composition failed or had no `dsh-tui` row, the startup session
22
28
  * will never come. `logPath` is the saved startup report, if any. */
23
29
  composeFailed?: (error: unknown, logPath?: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"entry-slot.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/entry-slot.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,+CAA+C;AAC/C,MAAM,WAAW,SAAS;IACxB,kEAAkE;IAClE,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;IACrB,2FAA2F;IAC3F,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;IAC/B;6DACyD;IACzD,OAAO,EAAE,OAAO,CAAA;IAChB;0DACsD;IACtD,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACzF;0EACsE;IACtE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,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eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAI/E;AAED,sEAAsE;AACtE,wBAAgB,aAAa,IAAI,SAAS,GAAG,SAAS,CAErD;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,IAAI,SAAS,CAAC,WAAW,CAAC,CAKxD"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * DSH installation-supplied experimental bundles this TUI can drive, and the
3
+ * line that says how.
4
+ *
5
+ * A curated list, not a discovery: the plugin service reports every optional
6
+ * bundle the installation ships (voice input and the plugin market included),
7
+ * but only entries with a real TUI entry point belong here. `/plugin list`
8
+ * intersects this list with what the running installation supplies, so an
9
+ * older dsh simply shows nothing.
10
+ *
11
+ * @module
12
+ */
13
+ import type { I18nKey } from '../i18n.js';
14
+ /** The bundle that mounts the `auto` permission preset. */
15
+ export declare const AUTO_REVIEW_BUNDLE = "@deepseek-ai/dsh-experimental-auto-review";
16
+ /** The bundle that mounts the five read-only session-search tools. */
17
+ export declare const SESSION_SEARCH_BUNDLE = "@deepseek-ai/dsh-experimental-session-search";
18
+ /** The bundle that mounts `create_worktree` (a new Git branch and worktree the
19
+ * session then moves into; the TUI follows the move like any other cd). */
20
+ export declare const WORKTREE_BUNDLE = "@deepseek-ai/dsh-experimental-tool-worktree";
21
+ /** One experimental feature the TUI knows how to switch on and use. */
22
+ export interface TuiExperimentalBundle {
23
+ readonly name: string;
24
+ /** How to use the feature once it is on, in the reader's language. */
25
+ readonly hint: I18nKey;
26
+ }
27
+ /** The features `/plugin list` advertises, in product order. */
28
+ export declare const TUI_EXPERIMENTAL_BUNDLES: readonly TuiExperimentalBundle[];
29
+ //# sourceMappingURL=experimental-bundles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"experimental-bundles.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/experimental-bundles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGzC,2DAA2D;AAC3D,eAAO,MAAM,kBAAkB,8CAA8C,CAAA;AAE7E,sEAAsE;AACtE,eAAO,MAAM,qBAAqB,iDAAiD,CAAA;AAEnF;4EAC4E;AAC5E,eAAO,MAAM,eAAe,gDAAgD,CAAA;AAE5E,uEAAuE;AACvE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CACvB;AAED,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,EAAE,SAAS,qBAAqB,EAKpE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { TEAM_BUNDLE } from './team-roster.js';
2
+ /** The bundle that mounts the `auto` permission preset. */
3
+ export const AUTO_REVIEW_BUNDLE = '@deepseek-ai/dsh-experimental-auto-review';
4
+ /** The bundle that mounts the five read-only session-search tools. */
5
+ export const SESSION_SEARCH_BUNDLE = '@deepseek-ai/dsh-experimental-session-search';
6
+ /** The bundle that mounts `create_worktree` (a new Git branch and worktree the
7
+ * session then moves into; the TUI follows the move like any other cd). */
8
+ export const WORKTREE_BUNDLE = '@deepseek-ai/dsh-experimental-tool-worktree';
9
+ /** The features `/plugin list` advertises, in product order. */
10
+ export const TUI_EXPERIMENTAL_BUNDLES = [
11
+ { name: TEAM_BUNDLE, hint: 'plugins-experimental-team-hint' },
12
+ { name: AUTO_REVIEW_BUNDLE, hint: 'plugins-experimental-auto-review-hint' },
13
+ { name: SESSION_SEARCH_BUNDLE, hint: 'plugins-experimental-session-search-hint' },
14
+ { name: WORKTREE_BUNDLE, hint: 'plugins-experimental-worktree-hint' },
15
+ ];
@@ -0,0 +1,70 @@
1
+ import { type GrantMutation, type GrantStore } from '../adapter/standard/grants.js';
2
+ import type { DeclaredGrants } from './plugin-declaration.js';
3
+ /** The grants-file operations the lifecycle flows ask for. */
4
+ export type { GrantMutation, GrantPermissionWrite } from '../adapter/standard/grants.js';
5
+ export interface GrantWriteResult {
6
+ readonly ok: true;
7
+ /** False when the document already had every requested rule (no write happened). */
8
+ readonly changed: boolean;
9
+ /**
10
+ * Restore the bytes this write replaced; only while the file still contains
11
+ * exactly what was written. Returns false when it was edited since, when the
12
+ * previous state cannot be restored, or when the lock cannot be taken.
13
+ */
14
+ readonly undo: () => Promise<boolean>;
15
+ }
16
+ export type GrantWriteFailure = {
17
+ readonly ok: false;
18
+ readonly reason: 'corrupt' | 'unreadable' | 'write-failed';
19
+ readonly detail?: string;
20
+ };
21
+ /** The grants file a lifecycle action writes (`~/.dsh-tui/extension-grants.json`). */
22
+ export declare function grantsFilePath(dataDir?: string): string;
23
+ /** Why one write failed, localized, with the filesystem's own words bounded and sanitized. */
24
+ export declare function grantFailureText(failure: GrantWriteFailure): string;
25
+ /** Test overrides; production resolves the packaged paths. */
26
+ export interface GrantWriteOptions {
27
+ readonly dataDir?: string | undefined;
28
+ /** The registry's known permission names; defaults to the packaged spec data. */
29
+ readonly knownPermissions?: readonly string[] | undefined;
30
+ }
31
+ /** One permission a plan lists: what the package declares, and what is true now. */
32
+ export interface GrantPlanEntry {
33
+ readonly name: string;
34
+ readonly scope: string;
35
+ readonly default: 'allow' | 'deny';
36
+ /** Whether the live store already allows this exact operation scope. */
37
+ readonly granted: boolean;
38
+ }
39
+ /**
40
+ * What the confirmation pane shows before a lifecycle action. `unknown` names
41
+ * the declarations this host's registry does not know: they are never written
42
+ * (the store would ignore them) and are reported instead of dropped.
43
+ */
44
+ export interface GrantPlan {
45
+ /** The component id the rules are keyed by — never the bundle name. */
46
+ readonly id: string;
47
+ readonly entries: readonly GrantPlanEntry[];
48
+ readonly unknown: readonly string[];
49
+ }
50
+ /**
51
+ * The plan for one package declaration, evaluated with the same
52
+ * activation-less principal `/plugin check` uses. Activation-scoped rules in
53
+ * the file therefore fail closed here, while the write is a global rule — the
54
+ * same split the report has always had.
55
+ *
56
+ * Unknown permission names never enter `entries`: writing one would produce a
57
+ * rule the store ignores, and this host cannot say what it authorizes.
58
+ */
59
+ export declare function planGrants(grants: GrantStore, declared: DeclaredGrants): GrantPlan;
60
+ /**
61
+ * Apply one mutation to the grants file.
62
+ *
63
+ * A missing file is the empty document (`{}`), exactly as `readGrantStore`
64
+ * reads it; an existing zero-byte file is corruption and is refused, also
65
+ * exactly as the store reads it. The read-modify-write runs under
66
+ * `extension-grants.json.lock`; the reader stays lock-free because the
67
+ * same-directory rename makes it see either the old or the new complete bytes.
68
+ */
69
+ export declare function applyGrantMutation(mutation: GrantMutation, options?: GrantWriteOptions): Promise<GrantWriteResult | GrantWriteFailure>;
70
+ //# sourceMappingURL=grant-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grant-file.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/grant-file.ts"],"names":[],"mappings":"AA+BA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,UAAU,EAChB,MAAM,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAG7D,8DAA8D;AAC9D,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAExF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,oFAAoF;IACpF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;CACtC;AAED,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,YAAY,GAAG,cAAc,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhH,sFAAsF;AACtF,wBAAgB,cAAc,CAAC,OAAO,GAAE,MAAiB,GAAG,MAAM,CAEjE;AAED,8FAA8F;AAC9F,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAMnE;AAED,8DAA8D;AAC9D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,iFAAiF;IACjF,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;CAC1D;AAED,oFAAoF;AACpF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAAA;IAClC,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,CAAA;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAWD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,SAAS,CAiBlF;AAwBD;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,aAAa,EACvB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,gBAAgB,GAAG,iBAAiB,CAAC,CA0D/C"}
@@ -0,0 +1,178 @@
1
+ /**
2
+ * The write half of the plugin grant file (`~/.dsh-tui/extension-grants.json`).
3
+ *
4
+ * `../adapter/standard/grants.ts` answers "may this operation run"; it has
5
+ * always been read-only, and the only writer used to be the person editing the
6
+ * file. The lifecycle flows (`./plugin-install.ts`, `./plugin-manage.ts`) need
7
+ * to grant a package's declared permissions on install/enable, revoke them on
8
+ * disable and forget them on removal, so this module owns the file I/O and
9
+ * nothing else: the document's shape and what a valid rewrite looks like stay
10
+ * in the reader's own module.
11
+ *
12
+ * Three rules decide the shape of this file:
13
+ *
14
+ * - **Never repair the person's file.** A corrupt document (bad JSON, an
15
+ * unknown root key, a malformed rule, zero bytes) is refused with a reason;
16
+ * the caller reports it and carries on with the install/enable, because an
17
+ * authorization is an enhancement, not a precondition.
18
+ * - **Never write a document the reader would call corrupt.** The rewritten
19
+ * text is parsed again before it reaches the disk.
20
+ * - **Atomic, undoable, and serialized across processes.** Same-directory
21
+ * temporary file + rename, like `usageStats.ts`, under the same sibling file
22
+ * lock (`extension-grants.json.lock`) the profile's atomic writes use, so a
23
+ * second TUI instance cannot lose an ensure/revoke/forget between our read
24
+ * and our rename. `undo()` restores the previous bytes only while the file
25
+ * still holds what this writer put there, so a hand edit in between is
26
+ * reported rather than overwritten.
27
+ */
28
+ import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs';
29
+ import { join } from 'node:path';
30
+ import { withFileLock } from '@deepseek-ai/dsh-atomic-write';
31
+ import { loadSpecData } from '../adapter/standard/registry.js';
32
+ import { EXTENSION_GRANTS_FILE, parseGrantStore, rewriteGrantDocument, } from '../adapter/standard/grants.js';
33
+ import { t } from '../i18n.js';
34
+ import { DATA_DIR } from '../utils/paths.js';
35
+ import { cleanScalarText } from './sanitize.js';
36
+ /** The grants file a lifecycle action writes (`~/.dsh-tui/extension-grants.json`). */
37
+ export function grantsFilePath(dataDir = DATA_DIR) {
38
+ return join(dataDir, EXTENSION_GRANTS_FILE);
39
+ }
40
+ /** Why one write failed, localized, with the filesystem's own words bounded and sanitized. */
41
+ export function grantFailureText(failure) {
42
+ const key = failure.reason === 'corrupt'
43
+ ? 'plugins-grant-reason-corrupt'
44
+ : failure.reason === 'unreadable' ? 'plugins-grant-reason-unreadable' : 'plugins-grant-reason-write-failed';
45
+ const detail = failure.detail === undefined ? '' : ` (${cleanScalarText(failure.detail, 200)})`;
46
+ return `${t(key)}${detail}`;
47
+ }
48
+ /** The registry's known permission names, or none when the spec data is unusable. */
49
+ function knownPermissionNames() {
50
+ try {
51
+ return (loadSpecData()?.permissions.permissions ?? []).map(permission => permission.name);
52
+ }
53
+ catch {
54
+ return [];
55
+ }
56
+ }
57
+ /**
58
+ * The plan for one package declaration, evaluated with the same
59
+ * activation-less principal `/plugin check` uses. Activation-scoped rules in
60
+ * the file therefore fail closed here, while the write is a global rule — the
61
+ * same split the report has always had.
62
+ *
63
+ * Unknown permission names never enter `entries`: writing one would produce a
64
+ * rule the store ignores, and this host cannot say what it authorizes.
65
+ */
66
+ export function planGrants(grants, declared) {
67
+ const known = new Set(grants.knownPermissions());
68
+ const entries = [];
69
+ const unknown = new Set();
70
+ for (const permission of declared.permissions) {
71
+ if (!known.has(permission.name)) {
72
+ unknown.add(permission.name);
73
+ continue;
74
+ }
75
+ entries.push({
76
+ name: permission.name,
77
+ scope: permission.scope,
78
+ default: grants.defaultOf(permission.name),
79
+ granted: grants.allows({ componentId: declared.id }, permission.name, permission.scope),
80
+ });
81
+ }
82
+ return { id: declared.id, entries, unknown: [...unknown] };
83
+ }
84
+ /** Atomically replace `file` with `text`, leaving no temporary behind on failure. */
85
+ function writeAtomically(file, text) {
86
+ const temp = `${file}.tmp`;
87
+ try {
88
+ writeFileSync(temp, text);
89
+ renameSync(temp, file);
90
+ }
91
+ catch (error) {
92
+ try {
93
+ rmSync(temp, { force: true });
94
+ }
95
+ catch {
96
+ // The rename is the real failure; a leftover temporary is the temp dir's.
97
+ }
98
+ throw error;
99
+ }
100
+ }
101
+ /**
102
+ * Apply one mutation to the grants file.
103
+ *
104
+ * A missing file is the empty document (`{}`), exactly as `readGrantStore`
105
+ * reads it; an existing zero-byte file is corruption and is refused, also
106
+ * exactly as the store reads it. The read-modify-write runs under
107
+ * `extension-grants.json.lock`; the reader stays lock-free because the
108
+ * same-directory rename makes it see either the old or the new complete bytes.
109
+ */
110
+ export async function applyGrantMutation(mutation, options = {}) {
111
+ if (mutation.id === '')
112
+ return { ok: false, reason: 'write-failed', detail: 'empty component id' };
113
+ const dir = options.dataDir ?? DATA_DIR;
114
+ const file = join(dir, EXTENSION_GRANTS_FILE);
115
+ try {
116
+ mkdirSync(dir, { recursive: true });
117
+ return await withFileLock(file, async () => {
118
+ let previous;
119
+ try {
120
+ previous = { text: readFileSync(file, 'utf8'), existed: true };
121
+ }
122
+ catch (error) {
123
+ if (error.code !== 'ENOENT') {
124
+ return { ok: false, reason: 'unreadable', detail: error instanceof Error ? error.message : String(error) };
125
+ }
126
+ previous = { text: '{}', existed: false };
127
+ }
128
+ // The document this mutation targets, with declared permission names this
129
+ // host does not know removed: a rule the store ignores must not be written.
130
+ const applied = mutation.kind === 'ensure'
131
+ ? {
132
+ ...mutation,
133
+ permissions: mutation.permissions.filter(permission => (options.knownPermissions ?? knownPermissionNames()).includes(permission.name)),
134
+ }
135
+ : mutation;
136
+ const rewritten = rewriteGrantDocument(previous.text, applied);
137
+ if ('error' in rewritten)
138
+ return { ok: false, reason: 'corrupt' };
139
+ if (!rewritten.changed)
140
+ return { ok: true, changed: false, undo: async () => true };
141
+ if (parseGrantStore(rewritten.text).corrupt)
142
+ return { ok: false, reason: 'write-failed', detail: 'the rewrite did not round-trip' };
143
+ writeAtomically(file, rewritten.text);
144
+ return {
145
+ ok: true,
146
+ changed: true,
147
+ undo: async () => {
148
+ try {
149
+ return await withFileLock(file, async () => {
150
+ let current;
151
+ try {
152
+ current = readFileSync(file, 'utf8');
153
+ }
154
+ catch {
155
+ return false;
156
+ }
157
+ // Someone edited the file after this write: restoring the old
158
+ // bytes would silently throw their change away.
159
+ if (current !== rewritten.text)
160
+ return false;
161
+ if (previous.existed)
162
+ writeAtomically(file, previous.text);
163
+ else
164
+ rmSync(file, { force: true });
165
+ return true;
166
+ });
167
+ }
168
+ catch {
169
+ return false;
170
+ }
171
+ },
172
+ };
173
+ });
174
+ }
175
+ catch (error) {
176
+ return { ok: false, reason: 'write-failed', detail: error instanceof Error ? error.message : String(error) };
177
+ }
178
+ }
@@ -17,6 +17,10 @@ export declare function armRootCapabilityGuard(root: Context): void;
17
17
  * the composition root while running from a host plugin callback. This module
18
18
  * is internal and is not part of the public plugin package surface. */
19
19
  export declare function withHostRootCapability<T>(callback: () => T): T;
20
+ /** Run host code outside the plugin activation that triggered it: an action
21
+ * the entry owns, which a row only sets off (the screen reopening its session
22
+ * when the dsh-tui row applies again), acts as the entry, not as that row. */
23
+ export declare function outsideActivation<T>(callback: () => T): T;
20
24
  export declare function concreteService<T extends object>(service: T): T;
21
25
  /** Bind a host-side disposer to the caller's authenticated Cordis activation.
22
26
  * A failed registration immediately rolls back the owned contribution. */
@@ -1 +1 @@
1
- {"version":3,"file":"host-access.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/host-access.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAS,MAAM,qBAAqB,CAAA;AAmLpD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,IAAI,CAKlE;AAWD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAE1D;AAkID;;uEAEuE;AACvE,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAE9D;AAwLD,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAe/D;AAED;0EAC0E;AAC1E,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,OAAO,EACvB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,OAAO,KAAK,IAAI,GAC9C,OAAO,CA2BT;AAED,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAMhE;AAED;+EAC+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,MAAM,OAAO,EACvB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,OAAO,KAAK,IAAI,GAC9C,OAAO,CA2BT;AAED,yEAAyE;AACzE,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAMhE;AAED;+EAC+E;AAC/E,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAInE;AAED;;;6EAG6E;AAC7E,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAIrD;AAiHD;;;4EAG4E;AAC5E,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAO3E;AAED;;;iEAGiE;AACjE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAehH;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAmBlG"}
@@ -352,6 +352,12 @@ function currentActivationIsPlugin(root) {
352
352
  export function withHostRootCapability(callback) {
353
353
  return hostCapabilityStorage.run(true, callback);
354
354
  }
355
+ /** Run host code outside the plugin activation that triggered it: an action
356
+ * the entry owns, which a row only sets off (the screen reopening its session
357
+ * when the dsh-tui row applies again), acts as the entry, not as that row. */
358
+ export function outsideActivation(callback) {
359
+ return activationStorage.exit(callback);
360
+ }
355
361
  function rejectRootCapability(root, capability) {
356
362
  if (currentActivationIsPlugin(root)) {
357
363
  throw new Error(`dsh-tui: ${capability} is unavailable from a plugin activation`);
@@ -379,12 +385,15 @@ function guardRootCapabilities(root) {
379
385
  const registry = concreteService(root.registry);
380
386
  if (!guardedRootRegistries.has(registry)) {
381
387
  guardedRootRegistries.add(registry);
388
+ // Mutations only. Reads move nothing, and `root.registry` should behave
389
+ // like `ctx.registry`, which the guard never inspected: `getTraceable`
390
+ // rebinds a service to its caller's context, so only the `root.` alias
391
+ // ever resolved to the root receiver. Cordis itself reads through this
392
+ // alias too — `ReflectService.notify` calls `this.ctx.registry.values()`
393
+ // after a `provide()` (cordis lib/index.js).
382
394
  guardServiceMethod(registry, 'inject', root, 'root.inject', true);
383
395
  guardServiceMethod(registry, 'plugin', root, 'root.plugin', true);
384
396
  guardServiceMethod(registry, 'delete', root, 'root.registry.delete', true);
385
- for (const method of ['resolve', 'get', 'has', 'keys', 'values', 'entries', 'forEach']) {
386
- guardServiceMethod(registry, method, root, `root.registry.${method}`, true);
387
- }
388
397
  }
389
398
  }
390
399
  catch {
@@ -394,7 +403,18 @@ function guardRootCapabilities(root) {
394
403
  const events = concreteService(root.events);
395
404
  if (!guardedRootEvents.has(events)) {
396
405
  guardedRootEvents.add(events);
397
- for (const method of ['on', 'once', 'emit', 'parallel', 'serial', 'bail', 'waterfall', 'register', 'unregister', 'dispatch']) {
406
+ // Dispatch stays open; subscribing stays closed. `waterfall` also carries
407
+ // Cordis' own `internal/get` / `internal/set` resolution, so treating it
408
+ // as a hook surface would put the service system behind the guard. What
409
+ // #1765 actually hit was the config-reload `emit` that `recompose()`
410
+ // performs on the root context at the end of a web-originated save: a
411
+ // property read on `root` short-circuits before `internal/get`, so the
412
+ // emit is the only stop that failed. Subscribing stays refused —
413
+ // `on`/`once`/`register`/`unregister` pin a listener to the root past
414
+ // the activation that added it. That covers the direct subscription
415
+ // methods only; Cordis' own `internal/listener` channel predates this
416
+ // guard and can still park a hook on the root fiber through `emit`.
417
+ for (const method of ['on', 'once', 'register', 'unregister']) {
398
418
  guardServiceMethod(events, method, root, `root.events.${method}`, true);
399
419
  }
400
420
  }
@@ -413,6 +433,36 @@ function guardRootCapabilities(root) {
413
433
  // Fall through when a minimal embedder omits reflection internals.
414
434
  }
415
435
  admitRootProjectionRegistrations(root);
436
+ installRootInvocationAccessor(root);
437
+ }
438
+ const invocationAccessorRoots = new WeakSet();
439
+ /**
440
+ * `dsh-typert-protocol` registers the `invocation` accessor on the root the
441
+ * first time any Remote service is constructed — "on the root, where it
442
+ * outlives any one Service". When that first Remote service activates after
443
+ * the guard (a dsh-base row resuming once the first TUI row installed it,
444
+ * #1616), the registration is refused and every later Remote service retries
445
+ * and fails the same way. The host installs that same root-owned property when
446
+ * it installs the guard, so the protocol finds it where it looks for it.
447
+ *
448
+ * This admits no activation: nothing here is owned by a plugin or released on
449
+ * its unload (the upstream contract puts the accessor on the root), a plugin
450
+ * gains no capability it lacked, and `root.accessor` from a plugin activation
451
+ * is still refused by the guard. A root without a reflection service keeps
452
+ * typert's own registration path and its refusal.
453
+ */
454
+ function installRootInvocationAccessor(root) {
455
+ if (invocationAccessorRoots.has(root))
456
+ return;
457
+ invocationAccessorRoots.add(root);
458
+ try {
459
+ if (Object.hasOwn(root.reflect.props, 'invocation'))
460
+ return;
461
+ withHostRootCapability(() => root.accessor('invocation', { get: () => undefined }));
462
+ }
463
+ catch {
464
+ // A minimal embedder without a reflection service keeps the plain guard.
465
+ }
416
466
  }
417
467
  const projectionRegistryRoots = new WeakSet();
418
468
  const guardedProjectionRegistries = new WeakSet();
@@ -7,7 +7,7 @@
7
7
  /** The host CLI package whose installation the entry loads. */
8
8
  export declare const HOST_PACKAGE = "@deepseek-ai/dsh";
9
9
  /** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
10
- export declare const HOST_REPLICA_VERSION = "0.2.1-rc.2";
10
+ export declare const HOST_REPLICA_VERSION = "0.2.1-rc.5";
11
11
  /** Where the entry resolves a host module from. */
12
12
  export type HostModuleVia =
13
13
  /** The host package's own `createRequire` (its nested node_modules). */
@@ -7,7 +7,7 @@
7
7
  /** The host CLI package whose installation the entry loads. */
8
8
  export const HOST_PACKAGE = '@deepseek-ai/dsh';
9
9
  /** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
10
- export const HOST_REPLICA_VERSION = '0.2.1-rc.2';
10
+ export const HOST_REPLICA_VERSION = '0.2.1-rc.5';
11
11
  /** The host modules the entry loads, all from one installation, in load order. */
12
12
  export const HOST_MODULES = [
13
13
  { key: 'cordis', specifier: '@deepseek-ai/cordis', via: 'host', exports: ['Context'] },
@@ -70,7 +70,7 @@ export const HOST_DEVIATIONS = [
70
70
  { id: 'startup-report-always', what: 'bin.js saves a report for a StartupError only and lets other startup errors crash; the entry saves one for every composition failure (HostComposeError carries the path) because the screen stays up' },
71
71
  { id: 'startup-report-no-terminal', what: 'reportStartupFailure\'s terminal half is not reproduced: the screen is up, the failure row names the report' },
72
72
  { id: 'no-overlays', what: '--patch overlays, --from-default-profile and resolvedProfile are not reproduced (the launcher passes none)' },
73
- { id: 'defer-root-guard', what: 'deferRootCapabilityGuard(root) (host-access.ts) keeps the TUI\'s root-capability guard off from the entry\'s binding of the root through the screen\'s mount; armRootCapabilityGuard then lets the first TUI row activation install it, as on the profile path, and the composition\'s settling installs it if no TUI row activated' },
73
+ { id: 'defer-root-guard', what: 'deferRootCapabilityGuard(root) (host-access.ts) keeps the TUI\'s root-capability guard off from the entry\'s binding of the root through the screen\'s mount; armRootCapabilityGuard then lets the first TUI row activation install it, as on the profile path, and the composition\'s settling installs it if no TUI row activated. Installing the guard also materializes the root-owned `invocation` accessor dsh-typert-protocol otherwise registers from the first Remote service, so a dsh-base row that resumes after the first TUI row (issue #1616) still activates; the guard itself is unchanged (verify-plugin-lifecycle)' },
74
74
  { id: 'report-exclude-network', what: 'host-entry.ts sets process.report.excludeNetwork = true for the process: DSH\'s flock libc probe (process.report.getReport) otherwise blocked ~10s on reverse lookups of sockets the mounted screen already opened' },
75
75
  { id: 'hijack-before-tui', what: 'the host\'s PluginPackages resolution is installed before any TUI module loads, for both kernels; runProfile installs it inside boot()\'s prepare' },
76
76
  { id: 'kernel-after-discovery', what: 'prepareHostRoot first supplies only the neutral Loader/resolution root; after backend assembly, HostRoot.selectKernel prepares DSH-only proxy, failure handlers and services from the same final kernel the entry uses for its slot and composition' },
@@ -391,7 +391,7 @@ function hostVersion(host) {
391
391
  }
392
392
  }
393
393
  /**
394
- * dsh `bin.js` reportStartupFailure (0.2.1-rc.2), the file half only: the
394
+ * dsh `bin.js` reportStartupFailure (0.2.1-rc.5), the file half only: the
395
395
  * screen is up, so never stderr. Undefined when it could not be written.
396
396
  */
397
397
  async function writeStartupReport(error, context) {
@@ -425,7 +425,7 @@ async function writeStartupReport(error, context) {
425
425
  }
426
426
  return logPath;
427
427
  }
428
- /** dsh `profile-boot` createAppReady (0.2.1-rc.2). */
428
+ /** dsh `profile-boot` createAppReady (0.2.1-rc.5). */
429
429
  function createAppReady() {
430
430
  let ready = false;
431
431
  const listeners = new Set();
@@ -450,7 +450,7 @@ function createAppReady() {
450
450
  },
451
451
  };
452
452
  }
453
- /** dsh `process-shutdown` createProcessShutdown (0.2.1-rc.2), the `shutdown` half only. */
453
+ /** dsh `process-shutdown` createProcessShutdown (0.2.1-rc.5), the `shutdown` half only. */
454
454
  function createProcessShutdown(dispose, timeoutMs = PROCESS_SHUTDOWN_TIMEOUT_MS) {
455
455
  let pending;
456
456
  let settled = false;
@@ -172,7 +172,8 @@ export interface Config {
172
172
  smoothStreaming?: boolean;
173
173
  /** Successful task notifications: off, unfocused (default), or always. */
174
174
  taskNotifications?: TaskNotifications;
175
- /** Terminal notification transport: auto (default), OSC 9, or BEL. */
175
+ /** Notification transport: auto (default), OSC 9, BEL, or the native Windows
176
+ * toast, which off Windows resolves back to the probed terminal protocol. */
176
177
  notificationMethod?: NotificationMethod;
177
178
  /** Mermaid diagrams (settings `dsh-tui.mermaidDiagrams`): ```mermaid
178
179
  * fences in replies render as Unicode box-drawing art — flowcharts,
@@ -231,9 +232,12 @@ export interface Config {
231
232
  /** Chat column as a fraction of the content width, clamped to 0.1–0.95
232
233
  * (default 0.68); +/- while the panel is focused nudges it live. */
233
234
  ratio?: number;
234
- /** Enabled panel ids, comma-separated, in PanelBar order (default:
235
- * all eight built-in panels). A
236
- * malformed id is dropped, an unknown one survives for a plugin. */
235
+ /** Which panels the side-panel bar shows, in PanelBar order. `*` (the
236
+ * default) means every registered panel — built-ins plus whatever a
237
+ * plugin registers later; an explicit comma list means exactly those ids
238
+ * (an unknown-but-well-formed id stays as a placeholder for a plugin).
239
+ * Registration never rewrites this value: a malformed id is dropped, the
240
+ * rest keep their order. */
237
241
  panels?: string;
238
242
  };
239
243
  /** Companion pet (settings `dsh-tui.companion.*`): which skin the panel
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAE5F,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAkR,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACxf,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAC1F,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzE,eAAO,MAAM,IAAI,YAAY,CAAA;AAU7B,eAAO,MAAM,MAAM,UAAa,CAAA;AAEhC;;;GAG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