@deepseek-harness-tui/dsh-tui 0.10.0 → 0.10.1

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 (664) hide show
  1. package/README.md +146 -2
  2. package/bin/dsh-tui.js +99 -33
  3. package/cordis.patch.yml +25 -5
  4. package/lib/types/adapter/channel/actions.d.ts +17 -0
  5. package/lib/types/adapter/channel/actions.d.ts.map +1 -0
  6. package/lib/types/adapter/channel/actions.js +28 -0
  7. package/lib/types/adapter/channel/consumer.d.ts +34 -0
  8. package/lib/types/adapter/channel/consumer.d.ts.map +1 -0
  9. package/lib/types/adapter/channel/consumer.js +87 -0
  10. package/lib/types/adapter/channel/features.d.ts +12 -0
  11. package/lib/types/adapter/channel/features.d.ts.map +1 -0
  12. package/lib/types/adapter/channel/features.js +41 -0
  13. package/lib/types/adapter/channel/host-registry.d.ts +40 -0
  14. package/lib/types/adapter/channel/host-registry.d.ts.map +1 -0
  15. package/lib/types/adapter/channel/host-registry.js +120 -0
  16. package/lib/types/adapter/channel/index.d.ts +22 -0
  17. package/lib/types/adapter/channel/index.d.ts.map +1 -0
  18. package/lib/types/adapter/channel/index.js +21 -0
  19. package/lib/types/adapter/channel/internal-token.d.ts +12 -0
  20. package/lib/types/adapter/channel/internal-token.d.ts.map +1 -0
  21. package/lib/types/adapter/channel/internal-token.js +11 -0
  22. package/lib/types/adapter/channel/plugins.d.ts +17 -0
  23. package/lib/types/adapter/channel/plugins.d.ts.map +1 -0
  24. package/lib/types/adapter/channel/plugins.js +47 -0
  25. package/lib/types/adapter/channel/projection.d.ts +15 -0
  26. package/lib/types/adapter/channel/projection.d.ts.map +1 -0
  27. package/lib/types/adapter/channel/projection.js +59 -0
  28. package/lib/types/adapter/channel/provider.d.ts +52 -0
  29. package/lib/types/adapter/channel/provider.d.ts.map +1 -0
  30. package/lib/types/adapter/channel/provider.js +231 -0
  31. package/lib/types/adapter/channel/read-view.d.ts +4 -0
  32. package/lib/types/adapter/channel/read-view.d.ts.map +1 -0
  33. package/lib/types/adapter/channel/read-view.js +132 -0
  34. package/lib/types/adapter/channel/session-projection.d.ts +56 -0
  35. package/lib/types/adapter/channel/session-projection.d.ts.map +1 -0
  36. package/lib/types/adapter/channel/session-projection.js +247 -0
  37. package/lib/types/adapter/channel/state.d.ts +11 -0
  38. package/lib/types/adapter/channel/state.d.ts.map +1 -0
  39. package/lib/types/adapter/channel/state.js +55 -0
  40. package/lib/types/adapter/channel/transcript.d.ts +15 -0
  41. package/lib/types/adapter/channel/transcript.d.ts.map +1 -0
  42. package/lib/types/adapter/channel/transcript.js +22 -0
  43. package/lib/types/adapter/channel/ui-policy.d.ts +106 -0
  44. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -0
  45. package/lib/types/adapter/channel/ui-policy.js +166 -0
  46. package/lib/types/adapter/channel/ui.d.ts +16 -0
  47. package/lib/types/adapter/channel/ui.d.ts.map +1 -0
  48. package/lib/types/adapter/channel/ui.js +168 -0
  49. package/lib/types/adapter/index.d.ts +20 -0
  50. package/lib/types/adapter/index.d.ts.map +1 -0
  51. package/lib/types/adapter/index.js +19 -0
  52. package/lib/types/adapter/kernel/contract-catalog.d.ts +12 -0
  53. package/lib/types/adapter/kernel/contract-catalog.d.ts.map +1 -0
  54. package/lib/types/adapter/kernel/contract-catalog.js +11 -0
  55. package/lib/types/adapter/kernel/diagnostics.d.ts +18 -0
  56. package/lib/types/adapter/kernel/diagnostics.d.ts.map +1 -0
  57. package/lib/types/adapter/kernel/diagnostics.js +16 -0
  58. package/lib/types/adapter/kernel/driver-types.d.ts +16 -0
  59. package/lib/types/adapter/kernel/driver-types.d.ts.map +1 -0
  60. package/lib/types/adapter/kernel/driver-types.js +8 -0
  61. package/lib/types/adapter/kernel/host-facade.d.ts +65 -0
  62. package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -0
  63. package/lib/types/adapter/kernel/host-facade.js +215 -0
  64. package/lib/types/adapter/kernel/host-probe-access.d.ts +71 -0
  65. package/lib/types/adapter/kernel/host-probe-access.d.ts.map +1 -0
  66. package/lib/types/adapter/kernel/host-probe-access.js +121 -0
  67. package/lib/types/adapter/kernel/index.d.ts +20 -0
  68. package/lib/types/adapter/kernel/index.d.ts.map +1 -0
  69. package/lib/types/adapter/kernel/index.js +19 -0
  70. package/lib/types/adapter/kernel/kernel-runtime.d.ts +138 -0
  71. package/lib/types/adapter/kernel/kernel-runtime.d.ts.map +1 -0
  72. package/lib/types/adapter/kernel/kernel-runtime.js +572 -0
  73. package/lib/types/adapter/kernel/ledger.d.ts +55 -0
  74. package/lib/types/adapter/kernel/ledger.d.ts.map +1 -0
  75. package/lib/types/adapter/kernel/ledger.js +33 -0
  76. package/lib/types/adapter/kernel/legacy-facade.d.ts +22 -0
  77. package/lib/types/adapter/kernel/legacy-facade.d.ts.map +1 -0
  78. package/lib/types/adapter/kernel/legacy-facade.js +34 -0
  79. package/lib/types/adapter/kernel/lifecycle.d.ts +38 -0
  80. package/lib/types/adapter/kernel/lifecycle.d.ts.map +1 -0
  81. package/lib/types/adapter/kernel/lifecycle.js +53 -0
  82. package/lib/types/adapter/kernel/replay-isolation.d.ts +27 -0
  83. package/lib/types/adapter/kernel/replay-isolation.d.ts.map +1 -0
  84. package/lib/types/adapter/kernel/replay-isolation.js +45 -0
  85. package/lib/types/adapter/kernel/replay.d.ts +132 -0
  86. package/lib/types/adapter/kernel/replay.d.ts.map +1 -0
  87. package/lib/types/adapter/kernel/replay.js +425 -0
  88. package/lib/types/adapter/kernel/runtime-context.d.ts +15 -0
  89. package/lib/types/adapter/kernel/runtime-context.d.ts.map +1 -0
  90. package/lib/types/adapter/kernel/runtime-context.js +24 -0
  91. package/lib/types/adapter/kernel/runtime.d.ts +70 -0
  92. package/lib/types/adapter/kernel/runtime.d.ts.map +1 -0
  93. package/lib/types/adapter/kernel/runtime.js +325 -0
  94. package/lib/types/adapter/kernel/slices/channel.d.ts +3 -0
  95. package/lib/types/adapter/kernel/slices/channel.d.ts.map +1 -0
  96. package/lib/types/adapter/kernel/slices/channel.js +8 -0
  97. package/lib/types/adapter/kernel/slices/decisions.d.ts +3 -0
  98. package/lib/types/adapter/kernel/slices/decisions.d.ts.map +1 -0
  99. package/lib/types/adapter/kernel/slices/decisions.js +10 -0
  100. package/lib/types/adapter/kernel/slices/extensions.d.ts +8 -0
  101. package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -0
  102. package/lib/types/adapter/kernel/slices/extensions.js +43 -0
  103. package/lib/types/adapter/kernel/slices/index.d.ts +19 -0
  104. package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -0
  105. package/lib/types/adapter/kernel/slices/index.js +36 -0
  106. package/lib/types/adapter/kernel/slices/presentation.d.ts +3 -0
  107. package/lib/types/adapter/kernel/slices/presentation.d.ts.map +1 -0
  108. package/lib/types/adapter/kernel/slices/presentation.js +14 -0
  109. package/lib/types/adapter/kernel/slices/scenes.d.ts +3 -0
  110. package/lib/types/adapter/kernel/slices/scenes.d.ts.map +1 -0
  111. package/lib/types/adapter/kernel/slices/scenes.js +14 -0
  112. package/lib/types/adapter/kernel/slices/settings.d.ts +3 -0
  113. package/lib/types/adapter/kernel/slices/settings.d.ts.map +1 -0
  114. package/lib/types/adapter/kernel/slices/settings.js +12 -0
  115. package/lib/types/adapter/kernel/slices/types.d.ts +20 -0
  116. package/lib/types/adapter/kernel/slices/types.d.ts.map +1 -0
  117. package/lib/types/adapter/kernel/slices/types.js +12 -0
  118. package/lib/types/adapter/kernel/slices/workspace.d.ts +3 -0
  119. package/lib/types/adapter/kernel/slices/workspace.d.ts.map +1 -0
  120. package/lib/types/adapter/kernel/slices/workspace.js +15 -0
  121. package/lib/types/adapter/ports/channel-catalog.d.ts +90 -0
  122. package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -0
  123. package/lib/types/adapter/ports/channel-catalog.js +2 -0
  124. package/lib/types/adapter/ports/channel-display.d.ts +90 -0
  125. package/lib/types/adapter/ports/channel-display.d.ts.map +1 -0
  126. package/lib/types/adapter/ports/channel-display.js +2 -0
  127. package/lib/types/adapter/ports/channel-session.d.ts +227 -0
  128. package/lib/types/adapter/ports/channel-session.d.ts.map +1 -0
  129. package/lib/types/adapter/ports/channel-session.js +2 -0
  130. package/lib/types/adapter/ports/channel-settings.d.ts +273 -0
  131. package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -0
  132. package/lib/types/adapter/ports/channel-settings.js +1 -0
  133. package/lib/types/adapter/ports/channel-ui.d.ts +569 -0
  134. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -0
  135. package/lib/types/adapter/ports/channel-ui.js +1 -0
  136. package/lib/types/adapter/ports/channel-view.d.ts +609 -0
  137. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -0
  138. package/lib/types/adapter/ports/channel-view.js +2 -0
  139. package/lib/types/adapter/ports/channel-workspace.d.ts +45 -0
  140. package/lib/types/adapter/ports/channel-workspace.d.ts.map +1 -0
  141. package/lib/types/adapter/ports/channel-workspace.js +2 -0
  142. package/lib/types/adapter/ports/channel.d.ts +145 -0
  143. package/lib/types/adapter/ports/channel.d.ts.map +1 -0
  144. package/lib/types/adapter/ports/channel.js +22 -0
  145. package/lib/types/adapter/ports/decisions.d.ts +18 -0
  146. package/lib/types/adapter/ports/decisions.d.ts.map +1 -0
  147. package/lib/types/adapter/ports/decisions.js +9 -0
  148. package/lib/types/adapter/ports/descriptor.d.ts +25 -0
  149. package/lib/types/adapter/ports/descriptor.d.ts.map +1 -0
  150. package/lib/types/adapter/ports/descriptor.js +11 -0
  151. package/lib/types/adapter/ports/extensions.d.ts +86 -0
  152. package/lib/types/adapter/ports/extensions.d.ts.map +1 -0
  153. package/lib/types/adapter/ports/extensions.js +9 -0
  154. package/lib/types/adapter/ports/index.d.ts +23 -0
  155. package/lib/types/adapter/ports/index.d.ts.map +1 -0
  156. package/lib/types/adapter/ports/index.js +14 -0
  157. package/lib/types/adapter/ports/owner.d.ts +19 -0
  158. package/lib/types/adapter/ports/owner.d.ts.map +1 -0
  159. package/lib/types/adapter/ports/owner.js +9 -0
  160. package/lib/types/adapter/ports/presentation.d.ts +81 -0
  161. package/lib/types/adapter/ports/presentation.d.ts.map +1 -0
  162. package/lib/types/adapter/ports/presentation.js +10 -0
  163. package/lib/types/adapter/ports/scenes.d.ts +24 -0
  164. package/lib/types/adapter/ports/scenes.d.ts.map +1 -0
  165. package/lib/types/adapter/ports/scenes.js +8 -0
  166. package/lib/types/adapter/ports/settings.d.ts +44 -0
  167. package/lib/types/adapter/ports/settings.d.ts.map +1 -0
  168. package/lib/types/adapter/ports/settings.js +9 -0
  169. package/lib/types/adapter/ports/workspace.d.ts +60 -0
  170. package/lib/types/adapter/ports/workspace.d.ts.map +1 -0
  171. package/lib/types/adapter/ports/workspace.js +8 -0
  172. package/lib/types/adapter/spec/index.d.ts +11 -0
  173. package/lib/types/adapter/spec/index.d.ts.map +1 -0
  174. package/lib/types/adapter/spec/index.js +10 -0
  175. package/lib/types/adapter/spec/profile.d.ts +10 -0
  176. package/lib/types/adapter/spec/profile.d.ts.map +1 -0
  177. package/lib/types/adapter/spec/profile.js +9 -0
  178. package/lib/types/adapter/spec/protocol-constants.d.ts +60 -0
  179. package/lib/types/adapter/spec/protocol-constants.d.ts.map +1 -0
  180. package/lib/types/adapter/spec/protocol-constants.js +129 -0
  181. package/lib/types/adapter/spec/tui-contributions.d.ts +18 -0
  182. package/lib/types/adapter/spec/tui-contributions.d.ts.map +1 -0
  183. package/lib/types/adapter/spec/tui-contributions.js +19 -0
  184. package/lib/types/adapter/standard/admission.d.ts +11 -0
  185. package/lib/types/adapter/standard/admission.d.ts.map +1 -0
  186. package/lib/types/adapter/standard/admission.js +10 -0
  187. package/lib/types/adapter/standard/descriptor.d.ts +74 -0
  188. package/lib/types/adapter/standard/descriptor.d.ts.map +1 -0
  189. package/lib/types/adapter/standard/descriptor.js +356 -0
  190. package/lib/types/{dsh-adapter → adapter/standard}/grants.d.ts +8 -3
  191. package/lib/types/adapter/standard/grants.d.ts.map +1 -0
  192. package/lib/types/{dsh-adapter → adapter/standard}/grants.js +14 -8
  193. package/lib/types/adapter/standard/index.d.ts +25 -0
  194. package/lib/types/adapter/standard/index.d.ts.map +1 -0
  195. package/lib/types/adapter/standard/index.js +24 -0
  196. package/lib/types/adapter/standard/negotiate.d.ts.map +1 -0
  197. package/lib/types/{plugin-spec → adapter/standard}/permission-scope.d.ts +3 -8
  198. package/lib/types/adapter/standard/permission-scope.d.ts.map +1 -0
  199. package/lib/types/{plugin-spec → adapter/standard}/permission-scope.js +4 -26
  200. package/lib/types/adapter/standard/protocols.d.ts +12 -0
  201. package/lib/types/adapter/standard/protocols.d.ts.map +1 -0
  202. package/lib/types/adapter/standard/protocols.js +11 -0
  203. package/lib/types/adapter/standard/registry.d.ts.map +1 -0
  204. package/lib/types/{plugin-spec → adapter/standard}/registry.js +3 -15
  205. package/lib/types/adapter/standard/schema-check.d.ts.map +1 -0
  206. package/lib/types/{plugin-spec → adapter/standard}/schema-check.js +4 -2
  207. package/lib/types/adapter/standard/tui-extension.d.ts +25 -0
  208. package/lib/types/adapter/standard/tui-extension.d.ts.map +1 -0
  209. package/lib/types/adapter/standard/tui-extension.js +45 -0
  210. package/lib/types/{plugin-spec → adapter/standard}/types.d.ts +3 -9
  211. package/lib/types/adapter/standard/types.d.ts.map +1 -0
  212. package/lib/types/{plugin-spec → adapter/standard}/validate.d.ts +3 -3
  213. package/lib/types/adapter/standard/validate.d.ts.map +1 -0
  214. package/lib/types/{plugin-spec → adapter/standard}/validate.js +14 -13
  215. package/lib/types/adapter/upstream/channel-driver.d.ts +22 -0
  216. package/lib/types/adapter/upstream/channel-driver.d.ts.map +1 -0
  217. package/lib/types/adapter/upstream/channel-driver.js +424 -0
  218. package/lib/types/adapter/upstream/decisions-driver.d.ts +15 -0
  219. package/lib/types/adapter/upstream/decisions-driver.d.ts.map +1 -0
  220. package/lib/types/adapter/upstream/decisions-driver.js +141 -0
  221. package/lib/types/adapter/upstream/detection.d.ts +26 -0
  222. package/lib/types/adapter/upstream/detection.d.ts.map +1 -0
  223. package/lib/types/adapter/upstream/detection.js +9 -0
  224. package/lib/types/adapter/upstream/driver.d.ts +50 -0
  225. package/lib/types/adapter/upstream/driver.d.ts.map +1 -0
  226. package/lib/types/adapter/upstream/driver.js +8 -0
  227. package/lib/types/adapter/upstream/extensions-driver.d.ts +24 -0
  228. package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -0
  229. package/lib/types/adapter/upstream/extensions-driver.js +697 -0
  230. package/lib/types/adapter/upstream/host-descriptor-driver.d.ts +45 -0
  231. package/lib/types/adapter/upstream/host-descriptor-driver.d.ts.map +1 -0
  232. package/lib/types/adapter/upstream/host-descriptor-driver.js +606 -0
  233. package/lib/types/adapter/upstream/index.d.ts +18 -0
  234. package/lib/types/adapter/upstream/index.d.ts.map +1 -0
  235. package/lib/types/adapter/upstream/index.js +15 -0
  236. package/lib/types/adapter/upstream/presentation-driver.d.ts +17 -0
  237. package/lib/types/adapter/upstream/presentation-driver.d.ts.map +1 -0
  238. package/lib/types/adapter/upstream/presentation-driver.js +129 -0
  239. package/lib/types/adapter/upstream/scenes-driver.d.ts +18 -0
  240. package/lib/types/adapter/upstream/scenes-driver.d.ts.map +1 -0
  241. package/lib/types/adapter/upstream/scenes-driver.js +170 -0
  242. package/lib/types/adapter/upstream/settings-driver.d.ts +20 -0
  243. package/lib/types/adapter/upstream/settings-driver.d.ts.map +1 -0
  244. package/lib/types/adapter/upstream/settings-driver.js +173 -0
  245. package/lib/types/adapter/upstream/workspace-driver.d.ts +19 -0
  246. package/lib/types/adapter/upstream/workspace-driver.d.ts.map +1 -0
  247. package/lib/types/adapter/upstream/workspace-driver.js +190 -0
  248. package/lib/types/api.d.ts +1 -1
  249. package/lib/types/api.d.ts.map +1 -1
  250. package/lib/types/commands.d.ts +2 -41
  251. package/lib/types/commands.d.ts.map +1 -1
  252. package/lib/types/commands.js +1 -1
  253. package/lib/types/components/GoalTodoPanel.d.ts +2 -1
  254. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  255. package/lib/types/components/HistorySearchDialog.d.ts.map +1 -1
  256. package/lib/types/components/HistorySearchDialog.js +7 -5
  257. package/lib/types/components/MessageList.d.ts.map +1 -1
  258. package/lib/types/components/MessageList.js +36 -8
  259. package/lib/types/components/ModelPicker.d.ts +1 -1
  260. package/lib/types/components/ModelPicker.d.ts.map +1 -1
  261. package/lib/types/components/ModelPicker.js +8 -4
  262. package/lib/types/components/OverlayAbove.d.ts +22 -1
  263. package/lib/types/components/OverlayAbove.d.ts.map +1 -1
  264. package/lib/types/components/OverlayAbove.js +74 -5
  265. package/lib/types/components/PromptInput.d.ts +2 -1
  266. package/lib/types/components/PromptInput.d.ts.map +1 -1
  267. package/lib/types/components/RewindPicker.d.ts.map +1 -1
  268. package/lib/types/components/RewindPicker.js +14 -6
  269. package/lib/types/components/SkillsPicker.d.ts.map +1 -1
  270. package/lib/types/components/SkillsPicker.js +6 -4
  271. package/lib/types/components/Spinner/spinnerMode.d.ts +1 -5
  272. package/lib/types/components/Spinner/spinnerMode.d.ts.map +1 -1
  273. package/lib/types/components/design-system/ThemedBox.d.ts +4 -2
  274. package/lib/types/components/design-system/ThemedBox.d.ts.map +1 -1
  275. package/lib/types/components/design-system/ThemedBox.js +2 -2
  276. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  277. package/lib/types/components/messages/AssistantToolUseMessage.js +69 -25
  278. package/lib/types/components/overlayBudget.d.ts +39 -0
  279. package/lib/types/components/overlayBudget.d.ts.map +1 -0
  280. package/lib/types/components/overlayBudget.js +43 -0
  281. package/lib/types/deepseekBalance.d.ts +2 -36
  282. package/lib/types/deepseekBalance.d.ts.map +1 -1
  283. package/lib/types/deepseekBalance.js +0 -14
  284. package/lib/types/deepseekPricing.d.ts +2 -1
  285. package/lib/types/deepseekPricing.d.ts.map +1 -1
  286. package/lib/types/deepseekPricing.js +8 -1
  287. package/lib/types/dsh-adapter/approvals.d.ts +11 -1
  288. package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
  289. package/lib/types/dsh-adapter/approvals.js +32 -12
  290. package/lib/types/dsh-adapter/channel/action-readiness.d.ts +20 -0
  291. package/lib/types/dsh-adapter/channel/action-readiness.d.ts.map +1 -0
  292. package/lib/types/dsh-adapter/channel/action-readiness.js +83 -0
  293. package/lib/types/dsh-adapter/channel/activity.d.ts +20 -0
  294. package/lib/types/dsh-adapter/channel/activity.d.ts.map +1 -0
  295. package/lib/types/dsh-adapter/channel/activity.js +113 -0
  296. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +64 -0
  297. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -0
  298. package/lib/types/dsh-adapter/channel/agent-view-projection.js +295 -0
  299. package/lib/types/dsh-adapter/channel/background-action.d.ts +41 -0
  300. package/lib/types/dsh-adapter/channel/background-action.d.ts.map +1 -0
  301. package/lib/types/dsh-adapter/channel/background-action.js +86 -0
  302. package/lib/types/dsh-adapter/channel/binding-events.d.ts +60 -0
  303. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -0
  304. package/lib/types/dsh-adapter/channel/binding-events.js +159 -0
  305. package/lib/types/dsh-adapter/channel/binding.d.ts +41 -0
  306. package/lib/types/dsh-adapter/channel/binding.d.ts.map +1 -0
  307. package/lib/types/dsh-adapter/channel/binding.js +227 -0
  308. package/lib/types/dsh-adapter/channel/command-completions.d.ts +29 -0
  309. package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -0
  310. package/lib/types/dsh-adapter/channel/command-completions.js +94 -0
  311. package/lib/types/dsh-adapter/channel/commands.d.ts +8 -0
  312. package/lib/types/dsh-adapter/channel/commands.d.ts.map +1 -0
  313. package/lib/types/dsh-adapter/channel/commands.js +9 -0
  314. package/lib/types/dsh-adapter/channel/compaction.d.ts +19 -0
  315. package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -0
  316. package/lib/types/dsh-adapter/channel/compaction.js +116 -0
  317. package/lib/types/dsh-adapter/channel/composer-images.d.ts +57 -0
  318. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -0
  319. package/lib/types/dsh-adapter/channel/composer-images.js +217 -0
  320. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts +15 -0
  321. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -0
  322. package/lib/types/dsh-adapter/channel/composer-mentions.js +200 -0
  323. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +26 -0
  324. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -0
  325. package/lib/types/dsh-adapter/channel/context-bookkeeping.js +30 -0
  326. package/lib/types/dsh-adapter/channel/decisions.d.ts +19 -0
  327. package/lib/types/dsh-adapter/channel/decisions.d.ts.map +1 -0
  328. package/lib/types/dsh-adapter/channel/decisions.js +90 -0
  329. package/lib/types/dsh-adapter/channel/emitter.d.ts +10 -0
  330. package/lib/types/dsh-adapter/channel/emitter.d.ts.map +1 -0
  331. package/lib/types/dsh-adapter/channel/emitter.js +71 -0
  332. package/lib/types/dsh-adapter/channel/external-commands.d.ts +31 -0
  333. package/lib/types/dsh-adapter/channel/external-commands.d.ts.map +1 -0
  334. package/lib/types/dsh-adapter/channel/external-commands.js +187 -0
  335. package/lib/types/dsh-adapter/channel/file-actions.d.ts +20 -0
  336. package/lib/types/dsh-adapter/channel/file-actions.d.ts.map +1 -0
  337. package/lib/types/dsh-adapter/channel/file-actions.js +45 -0
  338. package/lib/types/dsh-adapter/channel/input-actions.d.ts +13 -0
  339. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -0
  340. package/lib/types/dsh-adapter/channel/input-actions.js +135 -0
  341. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +34 -0
  342. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -0
  343. package/lib/types/dsh-adapter/channel/input-delivery.js +241 -0
  344. package/lib/types/dsh-adapter/channel/job-projection.d.ts +28 -0
  345. package/lib/types/dsh-adapter/channel/job-projection.d.ts.map +1 -0
  346. package/lib/types/dsh-adapter/channel/job-projection.js +150 -0
  347. package/lib/types/dsh-adapter/channel/lifetime-resources.d.ts +9 -0
  348. package/lib/types/dsh-adapter/channel/lifetime-resources.d.ts.map +1 -0
  349. package/lib/types/dsh-adapter/channel/lifetime-resources.js +33 -0
  350. package/lib/types/dsh-adapter/channel/loaded-context.d.ts +40 -0
  351. package/lib/types/dsh-adapter/channel/loaded-context.d.ts.map +1 -0
  352. package/lib/types/dsh-adapter/channel/loaded-context.js +62 -0
  353. package/lib/types/dsh-adapter/channel/local-actions.d.ts +70 -0
  354. package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -0
  355. package/lib/types/dsh-adapter/channel/local-actions.js +108 -0
  356. package/lib/types/dsh-adapter/channel/mentions.d.ts +29 -0
  357. package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -0
  358. package/lib/types/dsh-adapter/channel/mentions.js +235 -0
  359. package/lib/types/dsh-adapter/channel/mode-actions.d.ts +30 -0
  360. package/lib/types/dsh-adapter/channel/mode-actions.d.ts.map +1 -0
  361. package/lib/types/dsh-adapter/channel/mode-actions.js +247 -0
  362. package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts +35 -0
  363. package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts.map +1 -0
  364. package/lib/types/dsh-adapter/channel/mode-permission-actions.js +199 -0
  365. package/lib/types/dsh-adapter/channel/mode-permission.d.ts +58 -0
  366. package/lib/types/dsh-adapter/channel/mode-permission.d.ts.map +1 -0
  367. package/lib/types/dsh-adapter/channel/mode-permission.js +240 -0
  368. package/lib/types/dsh-adapter/channel/mode-roster.d.ts +51 -0
  369. package/lib/types/dsh-adapter/channel/mode-roster.d.ts.map +1 -0
  370. package/lib/types/dsh-adapter/channel/mode-roster.js +119 -0
  371. package/lib/types/dsh-adapter/channel/model-actions.d.ts +46 -0
  372. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -0
  373. package/lib/types/dsh-adapter/channel/model-actions.js +275 -0
  374. package/lib/types/dsh-adapter/channel/model-switch.d.ts +32 -0
  375. package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -0
  376. package/lib/types/dsh-adapter/channel/model-switch.js +98 -0
  377. package/lib/types/dsh-adapter/channel/notifications.d.ts +9 -0
  378. package/lib/types/dsh-adapter/channel/notifications.d.ts.map +1 -0
  379. package/lib/types/dsh-adapter/channel/notifications.js +24 -0
  380. package/lib/types/dsh-adapter/channel/owner.d.ts +18 -0
  381. package/lib/types/dsh-adapter/channel/owner.d.ts.map +1 -0
  382. package/lib/types/dsh-adapter/channel/owner.js +73 -0
  383. package/lib/types/dsh-adapter/channel/paths.d.ts +31 -0
  384. package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -0
  385. package/lib/types/dsh-adapter/channel/paths.js +147 -0
  386. package/lib/types/dsh-adapter/channel/permissions.d.ts +40 -0
  387. package/lib/types/dsh-adapter/channel/permissions.d.ts.map +1 -0
  388. package/lib/types/dsh-adapter/channel/permissions.js +184 -0
  389. package/lib/types/dsh-adapter/channel/preferences.d.ts +3 -0
  390. package/lib/types/dsh-adapter/channel/preferences.d.ts.map +1 -0
  391. package/lib/types/dsh-adapter/channel/preferences.js +103 -0
  392. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts +13 -0
  393. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -0
  394. package/lib/types/dsh-adapter/channel/projection-helpers.js +63 -0
  395. package/lib/types/dsh-adapter/channel/projection.d.ts +40 -0
  396. package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -0
  397. package/lib/types/dsh-adapter/channel/projection.js +1021 -0
  398. package/lib/types/dsh-adapter/channel/reports.d.ts +32 -0
  399. package/lib/types/dsh-adapter/channel/reports.d.ts.map +1 -0
  400. package/lib/types/dsh-adapter/channel/reports.js +171 -0
  401. package/lib/types/dsh-adapter/channel/session-actions.d.ts +13 -0
  402. package/lib/types/dsh-adapter/channel/session-actions.d.ts.map +1 -0
  403. package/lib/types/dsh-adapter/channel/session-actions.js +29 -0
  404. package/lib/types/dsh-adapter/channel/session-adoption.d.ts +32 -0
  405. package/lib/types/dsh-adapter/channel/session-adoption.d.ts.map +1 -0
  406. package/lib/types/dsh-adapter/channel/session-adoption.js +35 -0
  407. package/lib/types/dsh-adapter/channel/session-fork.d.ts +19 -0
  408. package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -0
  409. package/lib/types/dsh-adapter/channel/session-fork.js +85 -0
  410. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +32 -0
  411. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -0
  412. package/lib/types/dsh-adapter/channel/session-live-adoption.js +62 -0
  413. package/lib/types/dsh-adapter/channel/session-metadata.d.ts +81 -0
  414. package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -0
  415. package/lib/types/dsh-adapter/channel/session-metadata.js +209 -0
  416. package/lib/types/dsh-adapter/channel/session-reset.d.ts +11 -0
  417. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -0
  418. package/lib/types/dsh-adapter/channel/session-reset.js +44 -0
  419. package/lib/types/dsh-adapter/channel/session-resume.d.ts +56 -0
  420. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -0
  421. package/lib/types/dsh-adapter/channel/session-resume.js +240 -0
  422. package/lib/types/dsh-adapter/channel/session-rewind.d.ts +19 -0
  423. package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -0
  424. package/lib/types/dsh-adapter/channel/session-rewind.js +121 -0
  425. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +19 -0
  426. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -0
  427. package/lib/types/dsh-adapter/channel/session-tree-actions.js +132 -0
  428. package/lib/types/dsh-adapter/channel/session-tree.d.ts +10 -0
  429. package/lib/types/dsh-adapter/channel/session-tree.d.ts.map +1 -0
  430. package/lib/types/dsh-adapter/channel/session-tree.js +503 -0
  431. package/lib/types/dsh-adapter/channel/settings-host.d.ts +4 -0
  432. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -0
  433. package/lib/types/dsh-adapter/channel/settings-host.js +256 -0
  434. package/lib/types/dsh-adapter/channel/skill-catalog.d.ts +27 -0
  435. package/lib/types/dsh-adapter/channel/skill-catalog.d.ts.map +1 -0
  436. package/lib/types/dsh-adapter/channel/skill-catalog.js +183 -0
  437. package/lib/types/dsh-adapter/channel/state.d.ts +46 -0
  438. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -0
  439. package/lib/types/dsh-adapter/channel/state.js +31 -0
  440. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +47 -0
  441. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -0
  442. package/lib/types/dsh-adapter/channel/subagent-projection.js +140 -0
  443. package/lib/types/dsh-adapter/channel/transcript.d.ts +73 -0
  444. package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -0
  445. package/lib/types/dsh-adapter/channel/transcript.js +312 -0
  446. package/lib/types/dsh-adapter/channel/types.d.ts +162 -0
  447. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -0
  448. package/lib/types/dsh-adapter/channel/types.js +1 -0
  449. package/lib/types/dsh-adapter/channel/usage.d.ts +13 -0
  450. package/lib/types/dsh-adapter/channel/usage.d.ts.map +1 -0
  451. package/lib/types/dsh-adapter/channel/usage.js +48 -0
  452. package/lib/types/dsh-adapter/channel/workspace-actions.d.ts +20 -0
  453. package/lib/types/dsh-adapter/channel/workspace-actions.d.ts.map +1 -0
  454. package/lib/types/dsh-adapter/channel/workspace-actions.js +56 -0
  455. package/lib/types/dsh-adapter/channel-facade-actions.d.ts +25 -0
  456. package/lib/types/dsh-adapter/channel-facade-actions.d.ts.map +1 -0
  457. package/lib/types/dsh-adapter/channel-facade-actions.js +55 -0
  458. package/lib/types/dsh-adapter/channel-scene-outlet.d.ts +6 -0
  459. package/lib/types/dsh-adapter/channel-scene-outlet.d.ts.map +1 -0
  460. package/lib/types/dsh-adapter/channel-scene-outlet.js +13 -0
  461. package/lib/types/dsh-adapter/channel-ui.d.ts +9 -0
  462. package/lib/types/dsh-adapter/channel-ui.d.ts.map +1 -0
  463. package/lib/types/dsh-adapter/channel-ui.js +128 -0
  464. package/lib/types/dsh-adapter/channel.d.ts +9 -1525
  465. package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
  466. package/lib/types/dsh-adapter/channel.js +750 -8145
  467. package/lib/types/dsh-adapter/command-trees.d.ts +1 -0
  468. package/lib/types/dsh-adapter/command-trees.d.ts.map +1 -1
  469. package/lib/types/dsh-adapter/command-trees.js +20 -1
  470. package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -1
  471. package/lib/types/dsh-adapter/compat/liveSession.d.ts.map +1 -1
  472. package/lib/types/dsh-adapter/compat/liveSession.js +23 -0
  473. package/lib/types/dsh-adapter/compat/persistence.d.ts +21 -0
  474. package/lib/types/dsh-adapter/compat/persistence.d.ts.map +1 -0
  475. package/lib/types/dsh-adapter/compat/persistence.js +17 -0
  476. package/lib/types/dsh-adapter/compat/sessionLog.d.ts +50 -11
  477. package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
  478. package/lib/types/dsh-adapter/compat/sessionLog.js +325 -36
  479. package/lib/types/dsh-adapter/component-identity.d.ts +1 -1
  480. package/lib/types/dsh-adapter/component-identity.d.ts.map +1 -1
  481. package/lib/types/dsh-adapter/component-identity.js +1 -1
  482. package/lib/types/dsh-adapter/contract.d.ts +11 -9
  483. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  484. package/lib/types/dsh-adapter/contract.js +19 -12
  485. package/lib/types/dsh-adapter/decision-guard.d.ts +56 -12
  486. package/lib/types/dsh-adapter/decision-guard.d.ts.map +1 -1
  487. package/lib/types/dsh-adapter/decision-guard.js +134 -22
  488. package/lib/types/dsh-adapter/dialogs.d.ts.map +1 -1
  489. package/lib/types/dsh-adapter/dialogs.js +13 -0
  490. package/lib/types/dsh-adapter/effect-ledger.d.ts +5 -0
  491. package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
  492. package/lib/types/dsh-adapter/effect-ledger.js +53 -15
  493. package/lib/types/dsh-adapter/extension-events.d.ts +2 -9
  494. package/lib/types/dsh-adapter/extension-events.d.ts.map +1 -1
  495. package/lib/types/dsh-adapter/extension-events.js +0 -20
  496. package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
  497. package/lib/types/dsh-adapter/extensions.js +3 -2
  498. package/lib/types/dsh-adapter/host-grants.d.ts +23 -0
  499. package/lib/types/dsh-adapter/host-grants.d.ts.map +1 -0
  500. package/lib/types/dsh-adapter/host-grants.js +45 -0
  501. package/lib/types/dsh-adapter/jobs.d.ts +2 -46
  502. package/lib/types/dsh-adapter/jobs.d.ts.map +1 -1
  503. package/lib/types/dsh-adapter/jobs.js +0 -25
  504. package/lib/types/dsh-adapter/message-observer.d.ts +15 -2
  505. package/lib/types/dsh-adapter/message-observer.d.ts.map +1 -1
  506. package/lib/types/dsh-adapter/message-observer.js +157 -28
  507. package/lib/types/dsh-adapter/plugin-host.d.ts +80 -11
  508. package/lib/types/dsh-adapter/plugin-host.d.ts.map +1 -1
  509. package/lib/types/dsh-adapter/plugin-host.js +438 -41
  510. package/lib/types/dsh-adapter/plugin-storage.d.ts +11 -1
  511. package/lib/types/dsh-adapter/plugin-storage.d.ts.map +1 -1
  512. package/lib/types/dsh-adapter/plugin-storage.js +150 -11
  513. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  514. package/lib/types/dsh-adapter/plugin.js +75 -34
  515. package/lib/types/dsh-adapter/plugins-info.d.ts +2 -2
  516. package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
  517. package/lib/types/dsh-adapter/plugins-info.js +11 -6
  518. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  519. package/lib/types/dsh-adapter/presets.js +3 -2
  520. package/lib/types/dsh-adapter/providerWizard.d.ts +2 -159
  521. package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
  522. package/lib/types/dsh-adapter/questions.d.ts +8 -0
  523. package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
  524. package/lib/types/dsh-adapter/questions.js +18 -0
  525. package/lib/types/dsh-adapter/recap.d.ts +1 -9
  526. package/lib/types/dsh-adapter/recap.d.ts.map +1 -1
  527. package/lib/types/dsh-adapter/recap.js +0 -14
  528. package/lib/types/dsh-adapter/renderers.d.ts +1 -0
  529. package/lib/types/dsh-adapter/renderers.d.ts.map +1 -1
  530. package/lib/types/dsh-adapter/renderers.js +26 -1
  531. package/lib/types/dsh-adapter/scenes.d.ts +3 -1
  532. package/lib/types/dsh-adapter/scenes.d.ts.map +1 -1
  533. package/lib/types/dsh-adapter/scenes.js +31 -0
  534. package/lib/types/dsh-adapter/sessionTree.d.ts +14 -95
  535. package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
  536. package/lib/types/dsh-adapter/sessionTree.js +51 -36
  537. package/lib/types/dsh-adapter/sessions/index.d.ts +1 -1
  538. package/lib/types/dsh-adapter/sessions/index.d.ts.map +1 -1
  539. package/lib/types/dsh-adapter/sessions/index.js +1 -1
  540. package/lib/types/dsh-adapter/sessions/list.d.ts +23 -0
  541. package/lib/types/dsh-adapter/sessions/list.d.ts.map +1 -1
  542. package/lib/types/dsh-adapter/sessions/list.js +25 -14
  543. package/lib/types/dsh-adapter/sessions/types.d.ts +2 -128
  544. package/lib/types/dsh-adapter/sessions/types.d.ts.map +1 -1
  545. package/lib/types/dsh-adapter/sessions/types.js +0 -13
  546. package/lib/types/dsh-adapter/settings-sections.d.ts +4 -95
  547. package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
  548. package/lib/types/dsh-adapter/settings-sections.js +50 -13
  549. package/lib/types/dsh-adapter/settingsEditor.d.ts +2 -36
  550. package/lib/types/dsh-adapter/settingsEditor.d.ts.map +1 -1
  551. package/lib/types/dsh-adapter/settingsEditor.js +0 -18
  552. package/lib/types/dsh-adapter/shortcuts.d.ts +5 -0
  553. package/lib/types/dsh-adapter/shortcuts.d.ts.map +1 -1
  554. package/lib/types/dsh-adapter/shortcuts.js +49 -0
  555. package/lib/types/dsh-adapter/status.d.ts +5 -0
  556. package/lib/types/dsh-adapter/status.d.ts.map +1 -1
  557. package/lib/types/dsh-adapter/status.js +29 -0
  558. package/lib/types/dsh-adapter/subagents.d.ts +9 -49
  559. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  560. package/lib/types/dsh-adapter/subagents.js +92 -1
  561. package/lib/types/dsh-adapter/themes.d.ts +1 -0
  562. package/lib/types/dsh-adapter/themes.d.ts.map +1 -1
  563. package/lib/types/dsh-adapter/themes.js +29 -0
  564. package/lib/types/dsh-adapter/toast.d.ts +13 -0
  565. package/lib/types/dsh-adapter/toast.d.ts.map +1 -1
  566. package/lib/types/dsh-adapter/toast.js +31 -1
  567. package/lib/types/dsh-adapter/trajectory/aggregate.d.ts +2 -1
  568. package/lib/types/dsh-adapter/trajectory/aggregate.d.ts.map +1 -1
  569. package/lib/types/dsh-adapter/trajectory/aggregate.js +2 -1
  570. package/lib/types/dsh-adapter/trajectory/guards.d.ts +37 -18
  571. package/lib/types/dsh-adapter/trajectory/guards.d.ts.map +1 -1
  572. package/lib/types/dsh-adapter/trajectory/guards.js +43 -5
  573. package/lib/types/dsh-adapter/trajectory/inspect.d.ts +2 -2
  574. package/lib/types/dsh-adapter/trajectory/inspect.d.ts.map +1 -1
  575. package/lib/types/dsh-adapter/trajectory/projection.d.ts +31 -13
  576. package/lib/types/dsh-adapter/trajectory/projection.d.ts.map +1 -1
  577. package/lib/types/dsh-adapter/trajectory/projection.js +71 -14
  578. package/lib/types/dsh-adapter/trajectory/types.d.ts +1 -1
  579. package/lib/types/dsh-adapter/trajectory/types.d.ts.map +1 -1
  580. package/lib/types/dsh-adapter/transcript-images.d.ts +2 -19
  581. package/lib/types/dsh-adapter/transcript-images.d.ts.map +1 -1
  582. package/lib/types/dsh-adapter/workspaces.d.ts +2 -49
  583. package/lib/types/dsh-adapter/workspaces.d.ts.map +1 -1
  584. package/lib/types/dsh-adapter/workspaces.js +23 -3
  585. package/lib/types/i18n.d.ts +19 -7
  586. package/lib/types/i18n.d.ts.map +1 -1
  587. package/lib/types/i18n.js +8 -3
  588. package/lib/types/ink/render-node-to-output.d.ts +24 -1
  589. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  590. package/lib/types/ink/render-node-to-output.js +103 -4
  591. package/lib/types/ink/renderer.d.ts.map +1 -1
  592. package/lib/types/ink/renderer.js +14 -2
  593. package/lib/types/ink/styles.d.ts +12 -0
  594. package/lib/types/ink/styles.d.ts.map +1 -1
  595. package/lib/types/modelGroups.d.ts +1 -1
  596. package/lib/types/modelGroups.d.ts.map +1 -1
  597. package/lib/types/modelRoute.js +1 -1
  598. package/lib/types/plugin-host.d.ts +3 -4
  599. package/lib/types/plugin-host.d.ts.map +1 -1
  600. package/lib/types/plugin-host.js +8 -6
  601. package/lib/types/screens/AgentView.d.ts +1 -1
  602. package/lib/types/screens/AgentView.d.ts.map +1 -1
  603. package/lib/types/screens/Chat.d.ts +3 -2
  604. package/lib/types/screens/Chat.d.ts.map +1 -1
  605. package/lib/types/screens/Chat.js +71 -9
  606. package/lib/types/screens/SessionBrowser.d.ts +1 -1
  607. package/lib/types/screens/SessionBrowser.d.ts.map +1 -1
  608. package/lib/types/screens/SessionTree.d.ts +1 -1
  609. package/lib/types/screens/SessionTree.d.ts.map +1 -1
  610. package/lib/types/screens/Settings.d.ts +1 -1
  611. package/lib/types/screens/Settings.d.ts.map +1 -1
  612. package/lib/types/screens/StatusLine.d.ts +1 -1
  613. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  614. package/lib/types/screens/StatusLine.js +40 -1
  615. package/lib/types/screens/TrajectoryScene.d.ts +1 -1
  616. package/lib/types/screens/TrajectoryScene.d.ts.map +1 -1
  617. package/lib/types/sessionModes.d.ts +11 -15
  618. package/lib/types/sessionModes.d.ts.map +1 -1
  619. package/lib/types/sessionModes.js +11 -0
  620. package/lib/types/tuiDisplayPrefs.d.ts +2 -68
  621. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  622. package/lib/types/tuiDisplayPrefs.js +5 -1
  623. package/lib/types/utils/credentials.d.ts +13 -0
  624. package/lib/types/utils/credentials.d.ts.map +1 -0
  625. package/lib/types/utils/credentials.js +41 -0
  626. package/lib/types/utils/fileSuggestions.d.ts +2 -9
  627. package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
  628. package/lib/types/utils/fold-long-lines.d.ts +38 -0
  629. package/lib/types/utils/fold-long-lines.d.ts.map +1 -0
  630. package/lib/types/utils/fold-long-lines.js +91 -0
  631. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/pi-ai.d.ts +1 -1
  632. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/profiles.js +4 -0
  633. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/service.js +15 -2
  634. package/node_modules/@deepseek-harness-tui/dsh-auth/package.json +10 -10
  635. package/package.json +124 -81
  636. package/presets/liangshen/.dsh-tui-managed.json +1 -1
  637. package/presets/liangshen/agent.cordis.yml +20 -4
  638. package/presets/liangshen/compaction-epoch.mjs +3 -1
  639. package/presets/liangshen/instruction-hint.mjs +2 -1
  640. package/presets/liangshen/session-events.mjs +8 -0
  641. package/lib/types/dsh-adapter/grants.d.ts.map +0 -1
  642. package/lib/types/dsh-adapter/host-descriptor.d.ts +0 -24
  643. package/lib/types/dsh-adapter/host-descriptor.d.ts.map +0 -1
  644. package/lib/types/dsh-adapter/host-descriptor.js +0 -169
  645. package/lib/types/dsh-adapter/plugin-test-utils.d.ts +0 -62
  646. package/lib/types/dsh-adapter/plugin-test-utils.d.ts.map +0 -1
  647. package/lib/types/dsh-adapter/plugin-test-utils.js +0 -61
  648. package/lib/types/plugin-spec/negotiate.d.ts.map +0 -1
  649. package/lib/types/plugin-spec/permission-scope.d.ts.map +0 -1
  650. package/lib/types/plugin-spec/registry.d.ts.map +0 -1
  651. package/lib/types/plugin-spec/schema-check.d.ts.map +0 -1
  652. package/lib/types/plugin-spec/tui-extension.d.ts +0 -16
  653. package/lib/types/plugin-spec/tui-extension.d.ts.map +0 -1
  654. package/lib/types/plugin-spec/tui-extension.js +0 -79
  655. package/lib/types/plugin-spec/types.d.ts.map +0 -1
  656. package/lib/types/plugin-spec/validate.d.ts.map +0 -1
  657. package/lib/types/test-utils.d.ts +0 -2
  658. package/lib/types/test-utils.d.ts.map +0 -1
  659. package/lib/types/test-utils.js +0 -8
  660. /package/lib/types/{plugin-spec → adapter/standard}/negotiate.d.ts +0 -0
  661. /package/lib/types/{plugin-spec → adapter/standard}/negotiate.js +0 -0
  662. /package/lib/types/{plugin-spec → adapter/standard}/registry.d.ts +0 -0
  663. /package/lib/types/{plugin-spec → adapter/standard}/schema-check.d.ts +0 -0
  664. /package/lib/types/{plugin-spec → adapter/standard}/types.js +0 -0
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Kernel diagnostics surface.
3
+ *
4
+ * @internal P2: a snapshot formatter consumed by `/doctor` and local
5
+ * diagnostics. The richer `KernelRuntime.diagnosticSnapshot()` is the
6
+ * canonical kernel state surface; this helper remains for the legacy
7
+ * /doctor line shape. It never writes, registers, subscribes or mutates host
8
+ * capabilities.
9
+ */
10
+ import type { HostDescriptorSnapshot } from '../ports/descriptor.js';
11
+ import type { AdapterRuntimeOptions } from './runtime.js';
12
+ export interface AdapterDiagnostics {
13
+ readonly runtime: AdapterRuntimeOptions;
14
+ readonly descriptor: HostDescriptorSnapshot;
15
+ readonly permissions: readonly string[];
16
+ }
17
+ export declare function collectAdapterDiagnostics(runtime: AdapterRuntimeOptions, descriptor: HostDescriptorSnapshot, permissions: readonly string[]): AdapterDiagnostics;
18
+ //# sourceMappingURL=diagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../../src/adapter/kernel/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEzD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAA;IACvC,QAAQ,CAAC,UAAU,EAAE,sBAAsB,CAAA;IAC3C,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAA;CACxC;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,qBAAqB,EAC9B,UAAU,EAAE,sBAAsB,EAClC,WAAW,EAAE,SAAS,MAAM,EAAE,GAC7B,kBAAkB,CAMpB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Kernel diagnostics surface.
3
+ *
4
+ * @internal P2: a snapshot formatter consumed by `/doctor` and local
5
+ * diagnostics. The richer `KernelRuntime.diagnosticSnapshot()` is the
6
+ * canonical kernel state surface; this helper remains for the legacy
7
+ * /doctor line shape. It never writes, registers, subscribes or mutates host
8
+ * capabilities.
9
+ */
10
+ export function collectAdapterDiagnostics(runtime, descriptor, permissions) {
11
+ return Object.freeze({
12
+ runtime: Object.freeze({ ...runtime }),
13
+ descriptor,
14
+ permissions: Object.freeze([...permissions]),
15
+ });
16
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Shared plain data types used by the Kernel and upstream driver contract.
3
+ *
4
+ * These are deliberately not Standard/Spec protocol definitions: they are the
5
+ * minimal coordinate/key shapes that drivers, kernel and descriptor plumbing
6
+ * need to agree on without upstream importing the Standard plane.
7
+ */
8
+ export interface ContractCoordinate {
9
+ readonly apiVersion: string;
10
+ readonly kind: string;
11
+ }
12
+ export interface ContractRef extends ContractCoordinate {
13
+ readonly optional?: boolean;
14
+ readonly fallback?: string;
15
+ }
16
+ //# sourceMappingURL=driver-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"driver-types.d.ts","sourceRoot":"","sources":["../../../../src/adapter/kernel/driver-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Shared plain data types used by the Kernel and upstream driver contract.
3
+ *
4
+ * These are deliberately not Standard/Spec protocol definitions: they are the
5
+ * minimal coordinate/key shapes that drivers, kernel and descriptor plumbing
6
+ * need to agree on without upstream importing the Standard plane.
7
+ */
8
+ export {};
@@ -0,0 +1,65 @@
1
+ /**
2
+ * HostFacade: thin composition / identity entry over mounted Host Ports.
3
+ *
4
+ * P2 callers normally obtain this from `KernelRuntime.facade()`, which backs
5
+ * the descriptor port with the unified kernel lifecycle evidence.
6
+ * `facadeFromLegacy` remains only as a long-term compatibility fallback for
7
+ * bare/test compositions (outside P6 removal scope; owner: dsh-tui adapter).
8
+ * Hard rules:
9
+ * - It performs no business logic, no protocol translation, no capability
10
+ * detection, no registry, and stores no mutable host state.
11
+ * - It is for TUI host-internal code only. External plugins continue to use
12
+ * dsh-std / dsh-ecosystem-spec public protocol surfaces.
13
+ * - It only exposes Host Ports; admission, permission evaluation and ledger
14
+ * writes are Kernel/Standard internal services and must never be exposed
15
+ * as ordinary Host Ports.
16
+ */
17
+ import type { HostDescriptorPort } from '../ports/descriptor.js';
18
+ import type { HostPresentationPort } from '../ports/presentation.js';
19
+ import type { HostWorkspacePort } from '../ports/workspace.js';
20
+ import type { HostScenesPort } from '../ports/scenes.js';
21
+ import type { HostSettingsPort } from '../ports/settings.js';
22
+ import type { HostStatusPort, HostShortcutsPort, HostRenderersPort, HostThemesPort, HostToastPort, HostCommandTreesPort } from '../ports/extensions.js';
23
+ import type { HostDecisionsPort } from '../ports/decisions.js';
24
+ import type { HostChannelPort } from '../ports/channel.js';
25
+ import { type AdapterMode } from './runtime.js';
26
+ export interface HostFacade {
27
+ readonly descriptor: HostDescriptorPort;
28
+ readonly presentation?: HostPresentationPort;
29
+ readonly workspace?: HostWorkspacePort;
30
+ readonly scenes?: HostScenesPort;
31
+ readonly settings?: HostSettingsPort;
32
+ readonly status?: HostStatusPort;
33
+ readonly shortcuts?: HostShortcutsPort;
34
+ readonly renderers?: HostRenderersPort;
35
+ readonly themes?: HostThemesPort;
36
+ readonly toast?: HostToastPort;
37
+ readonly commandTrees?: HostCommandTreesPort;
38
+ readonly decisions?: HostDecisionsPort;
39
+ readonly channel?: HostChannelPort;
40
+ }
41
+ export interface HostFacadePorts {
42
+ readonly descriptor: HostDescriptorPort;
43
+ readonly presentation?: HostPresentationPort;
44
+ readonly workspace?: HostWorkspacePort;
45
+ readonly scenes?: HostScenesPort;
46
+ readonly settings?: HostSettingsPort;
47
+ readonly status?: HostStatusPort;
48
+ readonly shortcuts?: HostShortcutsPort;
49
+ readonly renderers?: HostRenderersPort;
50
+ readonly themes?: HostThemesPort;
51
+ readonly toast?: HostToastPort;
52
+ readonly commandTrees?: HostCommandTreesPort;
53
+ readonly decisions?: HostDecisionsPort;
54
+ readonly channel?: HostChannelPort;
55
+ }
56
+ /** Build the immutable facade from already-composed slice implementations. */
57
+ export declare function createHostFacade(ports: HostFacadePorts): HostFacade;
58
+ /**
59
+ * Build a HostFacade whose descriptor and every mounted Host Port method are
60
+ * wrapped with the unified shadow-policy assertion. This is what the Kernel
61
+ * exposes to internal TUI callers: no Port method can silently perform a
62
+ * mutate/register/subscribe side effect in passive/replay production modes.
63
+ */
64
+ export declare function createShadowGuardedHostFacade(ports: HostFacadePorts, mode: AdapterMode): HostFacade;
65
+ //# sourceMappingURL=host-facade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-facade.d.ts","sourceRoot":"","sources":["../../../../src/adapter/kernel/host-facade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,cAAc,CAAA;AAGrB,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAA;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAA;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IACpC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;IAC9B,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAA;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAA;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAA;CACnC;AAmJD,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,UAAU,CAgBnE;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CA2BnG"}
@@ -0,0 +1,215 @@
1
+ /**
2
+ * HostFacade: thin composition / identity entry over mounted Host Ports.
3
+ *
4
+ * P2 callers normally obtain this from `KernelRuntime.facade()`, which backs
5
+ * the descriptor port with the unified kernel lifecycle evidence.
6
+ * `facadeFromLegacy` remains only as a long-term compatibility fallback for
7
+ * bare/test compositions (outside P6 removal scope; owner: dsh-tui adapter).
8
+ * Hard rules:
9
+ * - It performs no business logic, no protocol translation, no capability
10
+ * detection, no registry, and stores no mutable host state.
11
+ * - It is for TUI host-internal code only. External plugins continue to use
12
+ * dsh-std / dsh-ecosystem-spec public protocol surfaces.
13
+ * - It only exposes Host Ports; admission, permission evaluation and ledger
14
+ * writes are Kernel/Standard internal services and must never be exposed
15
+ * as ordinary Host Ports.
16
+ */
17
+ import { assertShadowPolicy, effectClassFor, } from './runtime.js';
18
+ import { CHANNEL_PORT_METHOD_CAPABILITIES as CHANNEL_PORT_CAPABILITIES } from '../channel/features.js';
19
+ /**
20
+ * Per-method shadow-policy capabilities for mounted Host Ports.
21
+ *
22
+ * Every method on a mounted Port is guarded by the Kernel effect matrix. This
23
+ * is the last line of defense after `KernelRuntime.mount()` has already
24
+ * rejected whole drivers whose mountEffectClass is not allowed in a shadow
25
+ * mode: even a read-only-mounted Port cannot silently execute a mutate /
26
+ * register / subscribe method while the runtime is passive/replay-shadow.
27
+ */
28
+ const PORT_METHOD_CAPABILITIES = Object.freeze({
29
+ presentation: Object.freeze({
30
+ ask: 'host.presentation.ask',
31
+ approve: 'host.presentation.approve',
32
+ dialog: 'host.presentation.dialog',
33
+ }),
34
+ workspace: Object.freeze({
35
+ list: 'host.workspaces.list',
36
+ resolve: 'host.workspaces.resolve',
37
+ describe: 'host.workspaces.describe',
38
+ commandShell: 'host.workspaces.commandShell',
39
+ rename: 'host.workspaces.rename',
40
+ commands: 'host.workspaces.commands',
41
+ runCommand: 'host.workspaces.runCommand',
42
+ }),
43
+ scenes: Object.freeze({
44
+ register: 'host.scenes.register',
45
+ list: 'host.scenes.list',
46
+ open: 'host.scenes.open',
47
+ close: 'host.scenes.close',
48
+ active: 'host.scenes.active',
49
+ subscribe: 'host.scenes.subscribe',
50
+ }),
51
+ settings: Object.freeze({
52
+ register: 'host.settings.register',
53
+ list: 'host.settings.list',
54
+ section: 'host.settings.section',
55
+ subscribe: 'host.settings.subscribe',
56
+ }),
57
+ status: Object.freeze({
58
+ set: 'host.status.set',
59
+ snapshot: 'host.status.snapshot',
60
+ subscribe: 'host.status.subscribe',
61
+ }),
62
+ shortcuts: Object.freeze({
63
+ register: 'host.shortcuts.register',
64
+ list: 'host.shortcuts.list',
65
+ dispatch: 'host.shortcuts.dispatch',
66
+ }),
67
+ renderers: Object.freeze({
68
+ register: 'host.renderers.register',
69
+ render: 'host.renderers.render',
70
+ }),
71
+ themes: Object.freeze({
72
+ register: 'host.themes.register',
73
+ snapshot: 'host.themes.snapshot',
74
+ resolve: 'host.themes.resolver',
75
+ subscribe: 'host.themes.subscribe',
76
+ }),
77
+ toast: Object.freeze({
78
+ show: 'host.toast.show',
79
+ }),
80
+ commandTrees: Object.freeze({
81
+ register: 'host.command-trees.register',
82
+ children: 'host.command-trees.children',
83
+ descriptions: 'host.command-trees.descriptions',
84
+ }),
85
+ decisions: Object.freeze({
86
+ probe: 'host.decision.probe',
87
+ subscribe: 'host.decision.subscribe',
88
+ }),
89
+ });
90
+ function assertPortMethod(mode, capability) {
91
+ const effectClass = effectClassFor(capability);
92
+ if (effectClass === undefined) {
93
+ throw new Error(`dsh-tui: Host Port method has no registered effect class: ${capability}`);
94
+ }
95
+ assertShadowPolicy(effectClass, mode);
96
+ }
97
+ function wrapPort(port, portName, mode) {
98
+ const capabilities = PORT_METHOD_CAPABILITIES[portName];
99
+ if (capabilities === undefined) {
100
+ throw new Error(`dsh-tui: no shadow-policy map for Host Port "${portName}"`);
101
+ }
102
+ const wrapped = {};
103
+ for (const key of Object.keys(port)) {
104
+ const capability = capabilities[key];
105
+ if (capability === undefined) {
106
+ throw new Error(`dsh-tui: Host Port "${portName}" method "${key}" is missing from the shadow-policy map`);
107
+ }
108
+ const descriptor = Object.getOwnPropertyDescriptor(port, key);
109
+ if (descriptor?.get !== undefined) {
110
+ Object.defineProperty(wrapped, key, {
111
+ enumerable: true,
112
+ get() {
113
+ assertPortMethod(mode, capability);
114
+ return descriptor.get.call(port);
115
+ },
116
+ });
117
+ }
118
+ else {
119
+ const original = port[key];
120
+ if (typeof original === 'function') {
121
+ wrapped[key] = function (...args) {
122
+ assertPortMethod(mode, capability);
123
+ return Reflect.apply(original, port, args);
124
+ };
125
+ }
126
+ else {
127
+ wrapped[key] = original;
128
+ }
129
+ }
130
+ }
131
+ return Object.freeze(wrapped);
132
+ }
133
+ function wrapChannelPort(port, mode) {
134
+ const wrapped = {};
135
+ for (const subName of Object.keys(port)) {
136
+ const subPort = port[subName];
137
+ if (subPort === undefined)
138
+ continue;
139
+ const capabilities = CHANNEL_PORT_CAPABILITIES[subName];
140
+ if (capabilities === undefined) {
141
+ throw new Error(`dsh-tui: Host Channel sub-port "${subName}" is missing from the shadow-policy map`);
142
+ }
143
+ const subWrapped = {};
144
+ for (const key of Object.keys(subPort)) {
145
+ const capability = capabilities[key];
146
+ if (capability === undefined) {
147
+ throw new Error(`dsh-tui: Host Channel "${subName}" method "${key}" is missing from the shadow-policy map`);
148
+ }
149
+ const original = subPort[key];
150
+ if (typeof original === 'function') {
151
+ subWrapped[key] = function (...args) {
152
+ assertPortMethod(mode, capability);
153
+ return Reflect.apply(original, subPort, args);
154
+ };
155
+ }
156
+ else {
157
+ subWrapped[key] = original;
158
+ }
159
+ }
160
+ wrapped[subName] = Object.freeze(subWrapped);
161
+ }
162
+ return Object.freeze(wrapped);
163
+ }
164
+ /** Build the immutable facade from already-composed slice implementations. */
165
+ export function createHostFacade(ports) {
166
+ return Object.freeze({
167
+ descriptor: ports.descriptor,
168
+ ...(ports.presentation === undefined ? {} : { presentation: ports.presentation }),
169
+ ...(ports.workspace === undefined ? {} : { workspace: ports.workspace }),
170
+ ...(ports.scenes === undefined ? {} : { scenes: ports.scenes }),
171
+ ...(ports.settings === undefined ? {} : { settings: ports.settings }),
172
+ ...(ports.status === undefined ? {} : { status: ports.status }),
173
+ ...(ports.shortcuts === undefined ? {} : { shortcuts: ports.shortcuts }),
174
+ ...(ports.renderers === undefined ? {} : { renderers: ports.renderers }),
175
+ ...(ports.themes === undefined ? {} : { themes: ports.themes }),
176
+ ...(ports.toast === undefined ? {} : { toast: ports.toast }),
177
+ ...(ports.commandTrees === undefined ? {} : { commandTrees: ports.commandTrees }),
178
+ ...(ports.decisions === undefined ? {} : { decisions: ports.decisions }),
179
+ ...(ports.channel === undefined ? {} : { channel: ports.channel }),
180
+ });
181
+ }
182
+ /**
183
+ * Build a HostFacade whose descriptor and every mounted Host Port method are
184
+ * wrapped with the unified shadow-policy assertion. This is what the Kernel
185
+ * exposes to internal TUI callers: no Port method can silently perform a
186
+ * mutate/register/subscribe side effect in passive/replay production modes.
187
+ */
188
+ export function createShadowGuardedHostFacade(ports, mode) {
189
+ const descriptor = Object.freeze({
190
+ get generationId() {
191
+ assertShadowPolicy('read-only', mode);
192
+ return ports.descriptor.generationId;
193
+ },
194
+ snapshot() {
195
+ assertShadowPolicy('read-only', mode);
196
+ return ports.descriptor.snapshot();
197
+ },
198
+ });
199
+ const wrapped = {
200
+ descriptor,
201
+ ...(ports.presentation === undefined ? {} : { presentation: wrapPort(ports.presentation, 'presentation', mode) }),
202
+ ...(ports.workspace === undefined ? {} : { workspace: wrapPort(ports.workspace, 'workspace', mode) }),
203
+ ...(ports.scenes === undefined ? {} : { scenes: wrapPort(ports.scenes, 'scenes', mode) }),
204
+ ...(ports.settings === undefined ? {} : { settings: wrapPort(ports.settings, 'settings', mode) }),
205
+ ...(ports.status === undefined ? {} : { status: wrapPort(ports.status, 'status', mode) }),
206
+ ...(ports.shortcuts === undefined ? {} : { shortcuts: wrapPort(ports.shortcuts, 'shortcuts', mode) }),
207
+ ...(ports.renderers === undefined ? {} : { renderers: wrapPort(ports.renderers, 'renderers', mode) }),
208
+ ...(ports.themes === undefined ? {} : { themes: wrapPort(ports.themes, 'themes', mode) }),
209
+ ...(ports.toast === undefined ? {} : { toast: wrapPort(ports.toast, 'toast', mode) }),
210
+ ...(ports.commandTrees === undefined ? {} : { commandTrees: wrapPort(ports.commandTrees, 'commandTrees', mode) }),
211
+ ...(ports.decisions === undefined ? {} : { decisions: wrapPort(ports.decisions, 'decisions', mode) }),
212
+ ...(ports.channel === undefined ? {} : { channel: wrapChannelPort(ports.channel, mode) }),
213
+ };
214
+ return createHostFacade(wrapped);
215
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Host-only live-probe access.
3
+ *
4
+ * The reversible live probes used by the Kernel's driver are deliberately not
5
+ * methods on the plugin-visible Cordis services. A plugin can obtain
6
+ * `ctx.tuiPluginStorage`, `ctx.tuiMessageObserver` or `ctx.tuiPluginHost` and
7
+ * call ordinary public methods, but it cannot discover a `probeReversible`
8
+ * method from the normal package export surface.
9
+ *
10
+ * IMPORTANT trust boundary:
11
+ *
12
+ * This module is NOT a security boundary. dsh-TUI's plugin model is
13
+ * trusted-in-process; any code running in the same process can locate the
14
+ * package root through `package.json` and absolutely import the compiled
15
+ * internal file (for example `lib/adapter/kernel/host-probe-access.js`).
16
+ * The package `exports` map blocks ordinary deep imports, but it cannot stop
17
+ * same-process absolute-path loading. The host-only token and registration
18
+ * functions therefore exist to prevent accidental public-API pollution and
19
+ * obvious misuse, not to defend against a malicious in-process plugin.
20
+ *
21
+ * Hardening choices:
22
+ * - `HOST_PROBE_TOKEN` is a module-local symbol and is NOT exported from this
23
+ * module or from any package public entry.
24
+ * - The registration functions refuse to replace an existing host runner on a
25
+ * concrete service, so an in-process caller cannot overwrite the real probe
26
+ * with a fake one after the host has bootstrapped.
27
+ * - The run functions accept an optional token only for backwards-compatible
28
+ * calling conventions; when no token is supplied they still execute the
29
+ * registered host runner. They are internal module functions, not package
30
+ * public API.
31
+ */
32
+ export interface CommandLiveProbeResult {
33
+ readonly ok: true;
34
+ readonly name: string;
35
+ readonly lifecycleAppends: number;
36
+ }
37
+ export interface StorageLiveProbeResult {
38
+ readonly service: 'tuiPluginStorage';
39
+ readonly ok: true;
40
+ readonly operations: readonly string[];
41
+ readonly tempNamespace: string;
42
+ }
43
+ export interface MessageLiveProbeResult {
44
+ readonly service: 'tuiMessageObserver';
45
+ readonly ok: true;
46
+ readonly before: number;
47
+ readonly during: number;
48
+ readonly after: number;
49
+ readonly delivered: number;
50
+ }
51
+ type CommandRunner = (token?: unknown) => Promise<CommandLiveProbeResult>;
52
+ type StorageRunner = (token?: unknown) => Promise<StorageLiveProbeResult>;
53
+ type MessageRunner = (token?: unknown) => Promise<MessageLiveProbeResult>;
54
+ /**
55
+ * Register a live-probe runner for a concrete host service.
56
+ *
57
+ * If a runner is already registered for the same unwrapped service, the call
58
+ * is a no-op: the host bootstrap owns the WeakMap slot and an in-process
59
+ * caller must not be able to replace a real probe with a forged runner.
60
+ */
61
+ export declare function registerCommandLiveProbe(service: object, runner: CommandRunner): void;
62
+ export declare function registerStorageLiveProbe(service: object, runner: StorageRunner): void;
63
+ export declare function registerMessageLiveProbe(service: object, runner: MessageRunner): void;
64
+ export declare function hasCommandLiveProbe(service: unknown): boolean;
65
+ export declare function hasStorageLiveProbe(service: unknown): boolean;
66
+ export declare function hasMessageLiveProbe(service: unknown): boolean;
67
+ export declare function runCommandLiveProbe(service: unknown, token?: unknown): Promise<CommandLiveProbeResult>;
68
+ export declare function runStorageLiveProbe(service: unknown, token?: unknown): Promise<StorageLiveProbeResult>;
69
+ export declare function runMessageLiveProbe(service: unknown, token?: unknown): Promise<MessageLiveProbeResult>;
70
+ export {};
71
+ //# sourceMappingURL=host-probe-access.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-probe-access.d.ts","sourceRoot":"","sources":["../../../../src/adapter/kernel/host-probe-access.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAKH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;CAClC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAA;IACpC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;CAC/B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,OAAO,EAAE,oBAAoB,CAAA;IACtC,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;IACjB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAuBD,KAAK,aAAa,GAAG,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAA;AACzE,KAAK,aAAa,GAAG,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAA;AACzE,KAAK,aAAa,GAAG,CAAC,KAAK,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,sBAAsB,CAAC,CAAA;AAMzE;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAGrF;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAGrF;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAGrF;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAG7D;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAG7D;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAG7D;AAQD,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAM5G;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAM5G;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAM5G"}
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Host-only live-probe access.
3
+ *
4
+ * The reversible live probes used by the Kernel's driver are deliberately not
5
+ * methods on the plugin-visible Cordis services. A plugin can obtain
6
+ * `ctx.tuiPluginStorage`, `ctx.tuiMessageObserver` or `ctx.tuiPluginHost` and
7
+ * call ordinary public methods, but it cannot discover a `probeReversible`
8
+ * method from the normal package export surface.
9
+ *
10
+ * IMPORTANT trust boundary:
11
+ *
12
+ * This module is NOT a security boundary. dsh-TUI's plugin model is
13
+ * trusted-in-process; any code running in the same process can locate the
14
+ * package root through `package.json` and absolutely import the compiled
15
+ * internal file (for example `lib/adapter/kernel/host-probe-access.js`).
16
+ * The package `exports` map blocks ordinary deep imports, but it cannot stop
17
+ * same-process absolute-path loading. The host-only token and registration
18
+ * functions therefore exist to prevent accidental public-API pollution and
19
+ * obvious misuse, not to defend against a malicious in-process plugin.
20
+ *
21
+ * Hardening choices:
22
+ * - `HOST_PROBE_TOKEN` is a module-local symbol and is NOT exported from this
23
+ * module or from any package public entry.
24
+ * - The registration functions refuse to replace an existing host runner on a
25
+ * concrete service, so an in-process caller cannot overwrite the real probe
26
+ * with a fake one after the host has bootstrapped.
27
+ * - The run functions accept an optional token only for backwards-compatible
28
+ * calling conventions; when no token is supplied they still execute the
29
+ * registered host runner. They are internal module functions, not package
30
+ * public API.
31
+ */
32
+ /** Opaque host-only token. Module-local; deliberately not exported. */
33
+ const HOST_PROBE_TOKEN = Symbol('dsh-tui.host-probe-token');
34
+ /** The Cordis traceable-proxy unwrap marker used by the host-access module. */
35
+ const CORDIS_ORIGINAL = Symbol.for('cordis.original');
36
+ function unwrapService(service) {
37
+ if (service === null || typeof service !== 'object')
38
+ return undefined;
39
+ let current = service;
40
+ const seen = new WeakSet();
41
+ while (!seen.has(current)) {
42
+ seen.add(current);
43
+ let original;
44
+ try {
45
+ original = Reflect.get(current, CORDIS_ORIGINAL);
46
+ }
47
+ catch {
48
+ break;
49
+ }
50
+ if (original === null || typeof original !== 'object' || original === current)
51
+ break;
52
+ current = original;
53
+ }
54
+ return current;
55
+ }
56
+ const commandRunners = new WeakMap();
57
+ const storageRunners = new WeakMap();
58
+ const messageRunners = new WeakMap();
59
+ /**
60
+ * Register a live-probe runner for a concrete host service.
61
+ *
62
+ * If a runner is already registered for the same unwrapped service, the call
63
+ * is a no-op: the host bootstrap owns the WeakMap slot and an in-process
64
+ * caller must not be able to replace a real probe with a forged runner.
65
+ */
66
+ export function registerCommandLiveProbe(service, runner) {
67
+ const key = unwrapService(service) ?? service;
68
+ if (!commandRunners.has(key))
69
+ commandRunners.set(key, runner);
70
+ }
71
+ export function registerStorageLiveProbe(service, runner) {
72
+ const key = unwrapService(service) ?? service;
73
+ if (!storageRunners.has(key))
74
+ storageRunners.set(key, runner);
75
+ }
76
+ export function registerMessageLiveProbe(service, runner) {
77
+ const key = unwrapService(service) ?? service;
78
+ if (!messageRunners.has(key))
79
+ messageRunners.set(key, runner);
80
+ }
81
+ export function hasCommandLiveProbe(service) {
82
+ const key = unwrapService(service);
83
+ return key !== undefined && commandRunners.has(key);
84
+ }
85
+ export function hasStorageLiveProbe(service) {
86
+ const key = unwrapService(service);
87
+ return key !== undefined && storageRunners.has(key);
88
+ }
89
+ export function hasMessageLiveProbe(service) {
90
+ const key = unwrapService(service);
91
+ return key !== undefined && messageRunners.has(key);
92
+ }
93
+ function assertOptionalHostToken(token) {
94
+ if (token !== undefined && token !== HOST_PROBE_TOKEN) {
95
+ throw new Error('dsh-tui: host-only live probe access denied');
96
+ }
97
+ }
98
+ export async function runCommandLiveProbe(service, token) {
99
+ assertOptionalHostToken(token);
100
+ const key = unwrapService(service);
101
+ const runner = key === undefined ? undefined : commandRunners.get(key);
102
+ if (runner === undefined)
103
+ throw new Error('dsh-tui: host command live probe accessor is not registered');
104
+ return runner(token);
105
+ }
106
+ export async function runStorageLiveProbe(service, token) {
107
+ assertOptionalHostToken(token);
108
+ const key = unwrapService(service);
109
+ const runner = key === undefined ? undefined : storageRunners.get(key);
110
+ if (runner === undefined)
111
+ throw new Error('dsh-tui: host storage live probe accessor is not registered');
112
+ return runner(token);
113
+ }
114
+ export async function runMessageLiveProbe(service, token) {
115
+ assertOptionalHostToken(token);
116
+ const key = unwrapService(service);
117
+ const runner = key === undefined ? undefined : messageRunners.get(key);
118
+ if (runner === undefined)
119
+ throw new Error('dsh-tui: host message live probe accessor is not registered');
120
+ return runner(token);
121
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Adapter Kernel.
3
+ *
4
+ * P1 provided the read-only skeleton. P2 adds:
5
+ * - a minimal real `KernelRuntime` (driver registration/mount, detection,
6
+ * declared → staged → live, diagnostics);
7
+ * - reversible live probes for Command / LocalStorage / MessageObserver;
8
+ * - passive/replay harness support in `replay.ts`.
9
+ * P3 adds per-capability kernel slices and mounted Host Ports.
10
+ */
11
+ export * from './runtime.js';
12
+ export * from './lifecycle.js';
13
+ export * from './host-facade.js';
14
+ export * from './kernel-runtime.js';
15
+ export * from './diagnostics.js';
16
+ export * from './ledger.js';
17
+ export * from './legacy-facade.js';
18
+ export * from './replay.js';
19
+ export * from './slices/index.js';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapter/kernel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Adapter Kernel.
3
+ *
4
+ * P1 provided the read-only skeleton. P2 adds:
5
+ * - a minimal real `KernelRuntime` (driver registration/mount, detection,
6
+ * declared → staged → live, diagnostics);
7
+ * - reversible live probes for Command / LocalStorage / MessageObserver;
8
+ * - passive/replay harness support in `replay.ts`.
9
+ * P3 adds per-capability kernel slices and mounted Host Ports.
10
+ */
11
+ export * from './runtime.js';
12
+ export * from './lifecycle.js';
13
+ export * from './host-facade.js';
14
+ export * from './kernel-runtime.js';
15
+ export * from './diagnostics.js';
16
+ export * from './ledger.js';
17
+ export * from './legacy-facade.js';
18
+ export * from './replay.js';
19
+ export * from './slices/index.js';