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

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 (705) hide show
  1. package/README.md +5 -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 +229 -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/Chat/JobCard.d.ts.map +1 -1
  254. package/lib/types/components/Chat/JobCard.js +8 -1
  255. package/lib/types/components/GoalTodoPanel.d.ts +2 -1
  256. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  257. package/lib/types/components/HistorySearchDialog.d.ts.map +1 -1
  258. package/lib/types/components/HistorySearchDialog.js +7 -5
  259. package/lib/types/components/Markdown.d.ts +2 -2
  260. package/lib/types/components/Markdown.d.ts.map +1 -1
  261. package/lib/types/components/Markdown.js +28 -3
  262. package/lib/types/components/MessageList.d.ts.map +1 -1
  263. package/lib/types/components/MessageList.js +46 -17
  264. package/lib/types/components/ModelPicker.d.ts +1 -1
  265. package/lib/types/components/ModelPicker.d.ts.map +1 -1
  266. package/lib/types/components/ModelPicker.js +8 -4
  267. package/lib/types/components/OverlayAbove.d.ts +22 -1
  268. package/lib/types/components/OverlayAbove.d.ts.map +1 -1
  269. package/lib/types/components/OverlayAbove.js +74 -5
  270. package/lib/types/components/PromptInput.d.ts +2 -1
  271. package/lib/types/components/PromptInput.d.ts.map +1 -1
  272. package/lib/types/components/RewindPicker.d.ts.map +1 -1
  273. package/lib/types/components/RewindPicker.js +14 -6
  274. package/lib/types/components/SkillsPicker.d.ts.map +1 -1
  275. package/lib/types/components/SkillsPicker.js +6 -4
  276. package/lib/types/components/Spinner/spinnerMode.d.ts +1 -5
  277. package/lib/types/components/Spinner/spinnerMode.d.ts.map +1 -1
  278. package/lib/types/components/StreamingMarkdown.d.ts.map +1 -1
  279. package/lib/types/components/StreamingMarkdown.js +61 -9
  280. package/lib/types/components/design-system/ThemedBox.d.ts +4 -2
  281. package/lib/types/components/design-system/ThemedBox.d.ts.map +1 -1
  282. package/lib/types/components/design-system/ThemedBox.js +2 -2
  283. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  284. package/lib/types/components/messages/AssistantToolUseMessage.js +69 -25
  285. package/lib/types/components/overlayBudget.d.ts +39 -0
  286. package/lib/types/components/overlayBudget.d.ts.map +1 -0
  287. package/lib/types/components/overlayBudget.js +43 -0
  288. package/lib/types/deepseekBalance.d.ts +2 -36
  289. package/lib/types/deepseekBalance.d.ts.map +1 -1
  290. package/lib/types/deepseekBalance.js +0 -14
  291. package/lib/types/deepseekPricing.d.ts +2 -1
  292. package/lib/types/deepseekPricing.d.ts.map +1 -1
  293. package/lib/types/deepseekPricing.js +8 -1
  294. package/lib/types/dsh-adapter/approvals.d.ts +11 -1
  295. package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
  296. package/lib/types/dsh-adapter/approvals.js +32 -12
  297. package/lib/types/dsh-adapter/channel/action-readiness.d.ts +20 -0
  298. package/lib/types/dsh-adapter/channel/action-readiness.d.ts.map +1 -0
  299. package/lib/types/dsh-adapter/channel/action-readiness.js +83 -0
  300. package/lib/types/dsh-adapter/channel/activity.d.ts +20 -0
  301. package/lib/types/dsh-adapter/channel/activity.d.ts.map +1 -0
  302. package/lib/types/dsh-adapter/channel/activity.js +113 -0
  303. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +64 -0
  304. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -0
  305. package/lib/types/dsh-adapter/channel/agent-view-projection.js +295 -0
  306. package/lib/types/dsh-adapter/channel/background-action.d.ts +41 -0
  307. package/lib/types/dsh-adapter/channel/background-action.d.ts.map +1 -0
  308. package/lib/types/dsh-adapter/channel/background-action.js +86 -0
  309. package/lib/types/dsh-adapter/channel/binding-events.d.ts +65 -0
  310. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -0
  311. package/lib/types/dsh-adapter/channel/binding-events.js +169 -0
  312. package/lib/types/dsh-adapter/channel/binding.d.ts +41 -0
  313. package/lib/types/dsh-adapter/channel/binding.d.ts.map +1 -0
  314. package/lib/types/dsh-adapter/channel/binding.js +227 -0
  315. package/lib/types/dsh-adapter/channel/command-completions.d.ts +29 -0
  316. package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -0
  317. package/lib/types/dsh-adapter/channel/command-completions.js +94 -0
  318. package/lib/types/dsh-adapter/channel/commands.d.ts +8 -0
  319. package/lib/types/dsh-adapter/channel/commands.d.ts.map +1 -0
  320. package/lib/types/dsh-adapter/channel/commands.js +9 -0
  321. package/lib/types/dsh-adapter/channel/compaction.d.ts +19 -0
  322. package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -0
  323. package/lib/types/dsh-adapter/channel/compaction.js +116 -0
  324. package/lib/types/dsh-adapter/channel/composer-images.d.ts +57 -0
  325. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -0
  326. package/lib/types/dsh-adapter/channel/composer-images.js +217 -0
  327. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts +15 -0
  328. package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -0
  329. package/lib/types/dsh-adapter/channel/composer-mentions.js +200 -0
  330. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +26 -0
  331. package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -0
  332. package/lib/types/dsh-adapter/channel/context-bookkeeping.js +30 -0
  333. package/lib/types/dsh-adapter/channel/decisions.d.ts +19 -0
  334. package/lib/types/dsh-adapter/channel/decisions.d.ts.map +1 -0
  335. package/lib/types/dsh-adapter/channel/decisions.js +90 -0
  336. package/lib/types/dsh-adapter/channel/emitter.d.ts +10 -0
  337. package/lib/types/dsh-adapter/channel/emitter.d.ts.map +1 -0
  338. package/lib/types/dsh-adapter/channel/emitter.js +71 -0
  339. package/lib/types/dsh-adapter/channel/external-commands.d.ts +31 -0
  340. package/lib/types/dsh-adapter/channel/external-commands.d.ts.map +1 -0
  341. package/lib/types/dsh-adapter/channel/external-commands.js +187 -0
  342. package/lib/types/dsh-adapter/channel/file-actions.d.ts +20 -0
  343. package/lib/types/dsh-adapter/channel/file-actions.d.ts.map +1 -0
  344. package/lib/types/dsh-adapter/channel/file-actions.js +45 -0
  345. package/lib/types/dsh-adapter/channel/input-actions.d.ts +13 -0
  346. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -0
  347. package/lib/types/dsh-adapter/channel/input-actions.js +135 -0
  348. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +37 -0
  349. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -0
  350. package/lib/types/dsh-adapter/channel/input-delivery.js +305 -0
  351. package/lib/types/dsh-adapter/channel/job-projection.d.ts +28 -0
  352. package/lib/types/dsh-adapter/channel/job-projection.d.ts.map +1 -0
  353. package/lib/types/dsh-adapter/channel/job-projection.js +150 -0
  354. package/lib/types/dsh-adapter/channel/lifetime-resources.d.ts +9 -0
  355. package/lib/types/dsh-adapter/channel/lifetime-resources.d.ts.map +1 -0
  356. package/lib/types/dsh-adapter/channel/lifetime-resources.js +33 -0
  357. package/lib/types/dsh-adapter/channel/loaded-context.d.ts +40 -0
  358. package/lib/types/dsh-adapter/channel/loaded-context.d.ts.map +1 -0
  359. package/lib/types/dsh-adapter/channel/loaded-context.js +62 -0
  360. package/lib/types/dsh-adapter/channel/local-actions.d.ts +70 -0
  361. package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -0
  362. package/lib/types/dsh-adapter/channel/local-actions.js +108 -0
  363. package/lib/types/dsh-adapter/channel/mentions.d.ts +29 -0
  364. package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -0
  365. package/lib/types/dsh-adapter/channel/mentions.js +235 -0
  366. package/lib/types/dsh-adapter/channel/mode-actions.d.ts +30 -0
  367. package/lib/types/dsh-adapter/channel/mode-actions.d.ts.map +1 -0
  368. package/lib/types/dsh-adapter/channel/mode-actions.js +247 -0
  369. package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts +35 -0
  370. package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts.map +1 -0
  371. package/lib/types/dsh-adapter/channel/mode-permission-actions.js +199 -0
  372. package/lib/types/dsh-adapter/channel/mode-permission.d.ts +58 -0
  373. package/lib/types/dsh-adapter/channel/mode-permission.d.ts.map +1 -0
  374. package/lib/types/dsh-adapter/channel/mode-permission.js +240 -0
  375. package/lib/types/dsh-adapter/channel/mode-roster.d.ts +51 -0
  376. package/lib/types/dsh-adapter/channel/mode-roster.d.ts.map +1 -0
  377. package/lib/types/dsh-adapter/channel/mode-roster.js +119 -0
  378. package/lib/types/dsh-adapter/channel/model-actions.d.ts +46 -0
  379. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -0
  380. package/lib/types/dsh-adapter/channel/model-actions.js +275 -0
  381. package/lib/types/dsh-adapter/channel/model-switch.d.ts +32 -0
  382. package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -0
  383. package/lib/types/dsh-adapter/channel/model-switch.js +98 -0
  384. package/lib/types/dsh-adapter/channel/notifications.d.ts +9 -0
  385. package/lib/types/dsh-adapter/channel/notifications.d.ts.map +1 -0
  386. package/lib/types/dsh-adapter/channel/notifications.js +24 -0
  387. package/lib/types/dsh-adapter/channel/owner.d.ts +18 -0
  388. package/lib/types/dsh-adapter/channel/owner.d.ts.map +1 -0
  389. package/lib/types/dsh-adapter/channel/owner.js +73 -0
  390. package/lib/types/dsh-adapter/channel/paths.d.ts +31 -0
  391. package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -0
  392. package/lib/types/dsh-adapter/channel/paths.js +147 -0
  393. package/lib/types/dsh-adapter/channel/permissions.d.ts +40 -0
  394. package/lib/types/dsh-adapter/channel/permissions.d.ts.map +1 -0
  395. package/lib/types/dsh-adapter/channel/permissions.js +187 -0
  396. package/lib/types/dsh-adapter/channel/preferences.d.ts +3 -0
  397. package/lib/types/dsh-adapter/channel/preferences.d.ts.map +1 -0
  398. package/lib/types/dsh-adapter/channel/preferences.js +103 -0
  399. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts +13 -0
  400. package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -0
  401. package/lib/types/dsh-adapter/channel/projection-helpers.js +63 -0
  402. package/lib/types/dsh-adapter/channel/projection.d.ts +40 -0
  403. package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -0
  404. package/lib/types/dsh-adapter/channel/projection.js +1021 -0
  405. package/lib/types/dsh-adapter/channel/reports.d.ts +32 -0
  406. package/lib/types/dsh-adapter/channel/reports.d.ts.map +1 -0
  407. package/lib/types/dsh-adapter/channel/reports.js +171 -0
  408. package/lib/types/dsh-adapter/channel/session-actions.d.ts +13 -0
  409. package/lib/types/dsh-adapter/channel/session-actions.d.ts.map +1 -0
  410. package/lib/types/dsh-adapter/channel/session-actions.js +29 -0
  411. package/lib/types/dsh-adapter/channel/session-adoption.d.ts +32 -0
  412. package/lib/types/dsh-adapter/channel/session-adoption.d.ts.map +1 -0
  413. package/lib/types/dsh-adapter/channel/session-adoption.js +35 -0
  414. package/lib/types/dsh-adapter/channel/session-fork.d.ts +19 -0
  415. package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -0
  416. package/lib/types/dsh-adapter/channel/session-fork.js +85 -0
  417. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +32 -0
  418. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -0
  419. package/lib/types/dsh-adapter/channel/session-live-adoption.js +62 -0
  420. package/lib/types/dsh-adapter/channel/session-metadata.d.ts +81 -0
  421. package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -0
  422. package/lib/types/dsh-adapter/channel/session-metadata.js +209 -0
  423. package/lib/types/dsh-adapter/channel/session-reset.d.ts +11 -0
  424. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -0
  425. package/lib/types/dsh-adapter/channel/session-reset.js +44 -0
  426. package/lib/types/dsh-adapter/channel/session-resume.d.ts +56 -0
  427. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -0
  428. package/lib/types/dsh-adapter/channel/session-resume.js +240 -0
  429. package/lib/types/dsh-adapter/channel/session-rewind.d.ts +19 -0
  430. package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -0
  431. package/lib/types/dsh-adapter/channel/session-rewind.js +128 -0
  432. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +19 -0
  433. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -0
  434. package/lib/types/dsh-adapter/channel/session-tree-actions.js +138 -0
  435. package/lib/types/dsh-adapter/channel/session-tree.d.ts +10 -0
  436. package/lib/types/dsh-adapter/channel/session-tree.d.ts.map +1 -0
  437. package/lib/types/dsh-adapter/channel/session-tree.js +503 -0
  438. package/lib/types/dsh-adapter/channel/settings-host.d.ts +4 -0
  439. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -0
  440. package/lib/types/dsh-adapter/channel/settings-host.js +256 -0
  441. package/lib/types/dsh-adapter/channel/skill-catalog.d.ts +33 -0
  442. package/lib/types/dsh-adapter/channel/skill-catalog.d.ts.map +1 -0
  443. package/lib/types/dsh-adapter/channel/skill-catalog.js +215 -0
  444. package/lib/types/dsh-adapter/channel/state.d.ts +46 -0
  445. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -0
  446. package/lib/types/dsh-adapter/channel/state.js +31 -0
  447. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +47 -0
  448. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -0
  449. package/lib/types/dsh-adapter/channel/subagent-projection.js +140 -0
  450. package/lib/types/dsh-adapter/channel/transcript.d.ts +73 -0
  451. package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -0
  452. package/lib/types/dsh-adapter/channel/transcript.js +312 -0
  453. package/lib/types/dsh-adapter/channel/types.d.ts +162 -0
  454. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -0
  455. package/lib/types/dsh-adapter/channel/types.js +1 -0
  456. package/lib/types/dsh-adapter/channel/usage.d.ts +13 -0
  457. package/lib/types/dsh-adapter/channel/usage.d.ts.map +1 -0
  458. package/lib/types/dsh-adapter/channel/usage.js +48 -0
  459. package/lib/types/dsh-adapter/channel/workspace-actions.d.ts +20 -0
  460. package/lib/types/dsh-adapter/channel/workspace-actions.d.ts.map +1 -0
  461. package/lib/types/dsh-adapter/channel/workspace-actions.js +56 -0
  462. package/lib/types/dsh-adapter/channel-facade-actions.d.ts +25 -0
  463. package/lib/types/dsh-adapter/channel-facade-actions.d.ts.map +1 -0
  464. package/lib/types/dsh-adapter/channel-facade-actions.js +55 -0
  465. package/lib/types/dsh-adapter/channel-scene-outlet.d.ts +6 -0
  466. package/lib/types/dsh-adapter/channel-scene-outlet.d.ts.map +1 -0
  467. package/lib/types/dsh-adapter/channel-scene-outlet.js +13 -0
  468. package/lib/types/dsh-adapter/channel-ui.d.ts +9 -0
  469. package/lib/types/dsh-adapter/channel-ui.d.ts.map +1 -0
  470. package/lib/types/dsh-adapter/channel-ui.js +128 -0
  471. package/lib/types/dsh-adapter/channel.d.ts +9 -1525
  472. package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
  473. package/lib/types/dsh-adapter/channel.js +753 -8145
  474. package/lib/types/dsh-adapter/command-trees.d.ts +1 -0
  475. package/lib/types/dsh-adapter/command-trees.d.ts.map +1 -1
  476. package/lib/types/dsh-adapter/command-trees.js +20 -1
  477. package/lib/types/dsh-adapter/compat/liveSession.d.ts +8 -4
  478. package/lib/types/dsh-adapter/compat/liveSession.d.ts.map +1 -1
  479. package/lib/types/dsh-adapter/compat/liveSession.js +28 -3
  480. package/lib/types/dsh-adapter/compat/persistence.d.ts +21 -0
  481. package/lib/types/dsh-adapter/compat/persistence.d.ts.map +1 -0
  482. package/lib/types/dsh-adapter/compat/persistence.js +17 -0
  483. package/lib/types/dsh-adapter/compat/sessionLog.d.ts +50 -11
  484. package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
  485. package/lib/types/dsh-adapter/compat/sessionLog.js +325 -36
  486. package/lib/types/dsh-adapter/component-identity.d.ts +1 -1
  487. package/lib/types/dsh-adapter/component-identity.d.ts.map +1 -1
  488. package/lib/types/dsh-adapter/component-identity.js +1 -1
  489. package/lib/types/dsh-adapter/contract.d.ts +11 -9
  490. package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
  491. package/lib/types/dsh-adapter/contract.js +19 -12
  492. package/lib/types/dsh-adapter/decision-guard.d.ts +56 -12
  493. package/lib/types/dsh-adapter/decision-guard.d.ts.map +1 -1
  494. package/lib/types/dsh-adapter/decision-guard.js +134 -22
  495. package/lib/types/dsh-adapter/dialogs.d.ts.map +1 -1
  496. package/lib/types/dsh-adapter/dialogs.js +13 -0
  497. package/lib/types/dsh-adapter/effect-ledger.d.ts +5 -0
  498. package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
  499. package/lib/types/dsh-adapter/effect-ledger.js +53 -15
  500. package/lib/types/dsh-adapter/extension-events.d.ts +2 -9
  501. package/lib/types/dsh-adapter/extension-events.d.ts.map +1 -1
  502. package/lib/types/dsh-adapter/extension-events.js +0 -20
  503. package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
  504. package/lib/types/dsh-adapter/extensions.js +3 -2
  505. package/lib/types/dsh-adapter/host-grants.d.ts +23 -0
  506. package/lib/types/dsh-adapter/host-grants.d.ts.map +1 -0
  507. package/lib/types/dsh-adapter/host-grants.js +45 -0
  508. package/lib/types/dsh-adapter/jobs.d.ts +2 -46
  509. package/lib/types/dsh-adapter/jobs.d.ts.map +1 -1
  510. package/lib/types/dsh-adapter/jobs.js +0 -25
  511. package/lib/types/dsh-adapter/message-observer.d.ts +15 -2
  512. package/lib/types/dsh-adapter/message-observer.d.ts.map +1 -1
  513. package/lib/types/dsh-adapter/message-observer.js +157 -28
  514. package/lib/types/dsh-adapter/plugin-host.d.ts +80 -11
  515. package/lib/types/dsh-adapter/plugin-host.d.ts.map +1 -1
  516. package/lib/types/dsh-adapter/plugin-host.js +438 -41
  517. package/lib/types/dsh-adapter/plugin-storage.d.ts +11 -1
  518. package/lib/types/dsh-adapter/plugin-storage.d.ts.map +1 -1
  519. package/lib/types/dsh-adapter/plugin-storage.js +150 -11
  520. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  521. package/lib/types/dsh-adapter/plugin.js +75 -34
  522. package/lib/types/dsh-adapter/plugins-info.d.ts +2 -2
  523. package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
  524. package/lib/types/dsh-adapter/plugins-info.js +11 -6
  525. package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
  526. package/lib/types/dsh-adapter/presets.js +3 -2
  527. package/lib/types/dsh-adapter/providerWizard.d.ts +2 -159
  528. package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
  529. package/lib/types/dsh-adapter/questions.d.ts +8 -0
  530. package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
  531. package/lib/types/dsh-adapter/questions.js +18 -0
  532. package/lib/types/dsh-adapter/recap.d.ts +1 -9
  533. package/lib/types/dsh-adapter/recap.d.ts.map +1 -1
  534. package/lib/types/dsh-adapter/recap.js +0 -14
  535. package/lib/types/dsh-adapter/renderers.d.ts +1 -0
  536. package/lib/types/dsh-adapter/renderers.d.ts.map +1 -1
  537. package/lib/types/dsh-adapter/renderers.js +26 -1
  538. package/lib/types/dsh-adapter/scenes.d.ts +3 -1
  539. package/lib/types/dsh-adapter/scenes.d.ts.map +1 -1
  540. package/lib/types/dsh-adapter/scenes.js +31 -0
  541. package/lib/types/dsh-adapter/sessionTree.d.ts +14 -95
  542. package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
  543. package/lib/types/dsh-adapter/sessionTree.js +51 -36
  544. package/lib/types/dsh-adapter/sessions/digest.d.ts.map +1 -1
  545. package/lib/types/dsh-adapter/sessions/digest.js +40 -19
  546. package/lib/types/dsh-adapter/sessions/frames.js +2 -0
  547. package/lib/types/dsh-adapter/sessions/index.d.ts +1 -1
  548. package/lib/types/dsh-adapter/sessions/index.d.ts.map +1 -1
  549. package/lib/types/dsh-adapter/sessions/index.js +1 -1
  550. package/lib/types/dsh-adapter/sessions/list.d.ts +23 -0
  551. package/lib/types/dsh-adapter/sessions/list.d.ts.map +1 -1
  552. package/lib/types/dsh-adapter/sessions/list.js +28 -17
  553. package/lib/types/dsh-adapter/sessions/store.d.ts +2 -2
  554. package/lib/types/dsh-adapter/sessions/store.d.ts.map +1 -1
  555. package/lib/types/dsh-adapter/sessions/store.js +12 -11
  556. package/lib/types/dsh-adapter/sessions/types.d.ts +4 -128
  557. package/lib/types/dsh-adapter/sessions/types.d.ts.map +1 -1
  558. package/lib/types/dsh-adapter/sessions/types.js +0 -13
  559. package/lib/types/dsh-adapter/settings-sections.d.ts +4 -95
  560. package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
  561. package/lib/types/dsh-adapter/settings-sections.js +50 -13
  562. package/lib/types/dsh-adapter/settingsEditor.d.ts +2 -36
  563. package/lib/types/dsh-adapter/settingsEditor.d.ts.map +1 -1
  564. package/lib/types/dsh-adapter/settingsEditor.js +0 -18
  565. package/lib/types/dsh-adapter/shortcuts.d.ts +5 -0
  566. package/lib/types/dsh-adapter/shortcuts.d.ts.map +1 -1
  567. package/lib/types/dsh-adapter/shortcuts.js +49 -0
  568. package/lib/types/dsh-adapter/status.d.ts +5 -0
  569. package/lib/types/dsh-adapter/status.d.ts.map +1 -1
  570. package/lib/types/dsh-adapter/status.js +29 -0
  571. package/lib/types/dsh-adapter/subagents.d.ts +9 -49
  572. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  573. package/lib/types/dsh-adapter/subagents.js +92 -1
  574. package/lib/types/dsh-adapter/themes.d.ts +1 -0
  575. package/lib/types/dsh-adapter/themes.d.ts.map +1 -1
  576. package/lib/types/dsh-adapter/themes.js +29 -0
  577. package/lib/types/dsh-adapter/toast.d.ts +13 -0
  578. package/lib/types/dsh-adapter/toast.d.ts.map +1 -1
  579. package/lib/types/dsh-adapter/toast.js +31 -1
  580. package/lib/types/dsh-adapter/trajectory/aggregate.d.ts +2 -1
  581. package/lib/types/dsh-adapter/trajectory/aggregate.d.ts.map +1 -1
  582. package/lib/types/dsh-adapter/trajectory/aggregate.js +2 -1
  583. package/lib/types/dsh-adapter/trajectory/guards.d.ts +37 -18
  584. package/lib/types/dsh-adapter/trajectory/guards.d.ts.map +1 -1
  585. package/lib/types/dsh-adapter/trajectory/guards.js +43 -5
  586. package/lib/types/dsh-adapter/trajectory/inspect.d.ts +2 -2
  587. package/lib/types/dsh-adapter/trajectory/inspect.d.ts.map +1 -1
  588. package/lib/types/dsh-adapter/trajectory/projection.d.ts +31 -13
  589. package/lib/types/dsh-adapter/trajectory/projection.d.ts.map +1 -1
  590. package/lib/types/dsh-adapter/trajectory/projection.js +71 -14
  591. package/lib/types/dsh-adapter/trajectory/types.d.ts +1 -1
  592. package/lib/types/dsh-adapter/trajectory/types.d.ts.map +1 -1
  593. package/lib/types/dsh-adapter/transcript-images.d.ts +2 -19
  594. package/lib/types/dsh-adapter/transcript-images.d.ts.map +1 -1
  595. package/lib/types/dsh-adapter/workspaces.d.ts +2 -49
  596. package/lib/types/dsh-adapter/workspaces.d.ts.map +1 -1
  597. package/lib/types/dsh-adapter/workspaces.js +23 -3
  598. package/lib/types/i18n.d.ts +19 -7
  599. package/lib/types/i18n.d.ts.map +1 -1
  600. package/lib/types/i18n.js +8 -3
  601. package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
  602. package/lib/types/ink/components/ScrollBox.js +30 -33
  603. package/lib/types/ink/dom.d.ts.map +1 -1
  604. package/lib/types/ink/dom.js +32 -64
  605. package/lib/types/ink/get-max-width.d.ts +7 -15
  606. package/lib/types/ink/get-max-width.d.ts.map +1 -1
  607. package/lib/types/ink/get-max-width.js +7 -20
  608. package/lib/types/ink/ink.d.ts +1 -0
  609. package/lib/types/ink/ink.d.ts.map +1 -1
  610. package/lib/types/ink/ink.js +22 -3
  611. package/lib/types/ink/layout/node.d.ts +2 -0
  612. package/lib/types/ink/layout/node.d.ts.map +1 -1
  613. package/lib/types/ink/layout/yoga.d.ts +1 -0
  614. package/lib/types/ink/layout/yoga.d.ts.map +1 -1
  615. package/lib/types/ink/layout/yoga.js +3 -0
  616. package/lib/types/ink/node-cache.d.ts +11 -0
  617. package/lib/types/ink/node-cache.d.ts.map +1 -1
  618. package/lib/types/ink/node-cache.js +3 -0
  619. package/lib/types/ink/output.d.ts +6 -1
  620. package/lib/types/ink/output.d.ts.map +1 -1
  621. package/lib/types/ink/output.js +55 -65
  622. package/lib/types/ink/render-node-to-output.d.ts +24 -1
  623. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  624. package/lib/types/ink/render-node-to-output.js +195 -71
  625. package/lib/types/ink/renderer.d.ts.map +1 -1
  626. package/lib/types/ink/renderer.js +14 -2
  627. package/lib/types/ink/styles.d.ts +12 -0
  628. package/lib/types/ink/styles.d.ts.map +1 -1
  629. package/lib/types/ink/tabstops.d.ts +3 -2
  630. package/lib/types/ink/tabstops.d.ts.map +1 -1
  631. package/lib/types/ink/tabstops.js +5 -4
  632. package/lib/types/ink/wrap-text.js +2 -2
  633. package/lib/types/modelGroups.d.ts +1 -1
  634. package/lib/types/modelGroups.d.ts.map +1 -1
  635. package/lib/types/modelRoute.js +1 -1
  636. package/lib/types/native-ts/yoga-layout/index.d.ts +8 -3
  637. package/lib/types/native-ts/yoga-layout/index.d.ts.map +1 -1
  638. package/lib/types/native-ts/yoga-layout/index.js +23 -8
  639. package/lib/types/plugin-host.d.ts +3 -4
  640. package/lib/types/plugin-host.d.ts.map +1 -1
  641. package/lib/types/plugin-host.js +8 -6
  642. package/lib/types/screens/AgentView.d.ts +1 -1
  643. package/lib/types/screens/AgentView.d.ts.map +1 -1
  644. package/lib/types/screens/Chat.d.ts +3 -2
  645. package/lib/types/screens/Chat.d.ts.map +1 -1
  646. package/lib/types/screens/Chat.js +91 -17
  647. package/lib/types/screens/SessionBrowser.d.ts +1 -1
  648. package/lib/types/screens/SessionBrowser.d.ts.map +1 -1
  649. package/lib/types/screens/SessionTree.d.ts +1 -1
  650. package/lib/types/screens/SessionTree.d.ts.map +1 -1
  651. package/lib/types/screens/Settings.d.ts +1 -1
  652. package/lib/types/screens/Settings.d.ts.map +1 -1
  653. package/lib/types/screens/StatusLine.d.ts +1 -1
  654. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  655. package/lib/types/screens/StatusLine.js +40 -1
  656. package/lib/types/screens/TrajectoryScene.d.ts +1 -1
  657. package/lib/types/screens/TrajectoryScene.d.ts.map +1 -1
  658. package/lib/types/sessionModes.d.ts +11 -15
  659. package/lib/types/sessionModes.d.ts.map +1 -1
  660. package/lib/types/sessionModes.js +11 -0
  661. package/lib/types/tuiDisplayPrefs.d.ts +2 -68
  662. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  663. package/lib/types/tuiDisplayPrefs.js +5 -1
  664. package/lib/types/utils/credentials.d.ts +13 -0
  665. package/lib/types/utils/credentials.d.ts.map +1 -0
  666. package/lib/types/utils/credentials.js +41 -0
  667. package/lib/types/utils/fileSuggestions.d.ts +2 -9
  668. package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
  669. package/lib/types/utils/fold-long-lines.d.ts +38 -0
  670. package/lib/types/utils/fold-long-lines.d.ts.map +1 -0
  671. package/lib/types/utils/fold-long-lines.js +91 -0
  672. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/pi-ai.d.ts +1 -1
  673. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/profiles.js +4 -0
  674. package/node_modules/@deepseek-harness-tui/dsh-auth/lib/service.js +15 -2
  675. package/node_modules/@deepseek-harness-tui/dsh-auth/package.json +10 -10
  676. package/package.json +125 -81
  677. package/presets/liangshen/.dsh-tui-managed.json +1 -1
  678. package/presets/liangshen/agent.cordis.yml +20 -4
  679. package/presets/liangshen/compaction-epoch.mjs +3 -1
  680. package/presets/liangshen/instruction-hint.mjs +2 -1
  681. package/presets/liangshen/session-events.mjs +8 -0
  682. package/lib/types/dsh-adapter/grants.d.ts.map +0 -1
  683. package/lib/types/dsh-adapter/host-descriptor.d.ts +0 -24
  684. package/lib/types/dsh-adapter/host-descriptor.d.ts.map +0 -1
  685. package/lib/types/dsh-adapter/host-descriptor.js +0 -169
  686. package/lib/types/dsh-adapter/plugin-test-utils.d.ts +0 -62
  687. package/lib/types/dsh-adapter/plugin-test-utils.d.ts.map +0 -1
  688. package/lib/types/dsh-adapter/plugin-test-utils.js +0 -61
  689. package/lib/types/plugin-spec/negotiate.d.ts.map +0 -1
  690. package/lib/types/plugin-spec/permission-scope.d.ts.map +0 -1
  691. package/lib/types/plugin-spec/registry.d.ts.map +0 -1
  692. package/lib/types/plugin-spec/schema-check.d.ts.map +0 -1
  693. package/lib/types/plugin-spec/tui-extension.d.ts +0 -16
  694. package/lib/types/plugin-spec/tui-extension.d.ts.map +0 -1
  695. package/lib/types/plugin-spec/tui-extension.js +0 -79
  696. package/lib/types/plugin-spec/types.d.ts.map +0 -1
  697. package/lib/types/plugin-spec/validate.d.ts.map +0 -1
  698. package/lib/types/test-utils.d.ts +0 -2
  699. package/lib/types/test-utils.d.ts.map +0 -1
  700. package/lib/types/test-utils.js +0 -8
  701. /package/lib/types/{plugin-spec → adapter/standard}/negotiate.d.ts +0 -0
  702. /package/lib/types/{plugin-spec → adapter/standard}/negotiate.js +0 -0
  703. /package/lib/types/{plugin-spec → adapter/standard}/registry.d.ts +0 -0
  704. /package/lib/types/{plugin-spec → adapter/standard}/schema-check.d.ts +0 -0
  705. /package/lib/types/{plugin-spec → adapter/standard}/types.js +0 -0
@@ -0,0 +1,609 @@
1
+ /** Host-owned in-process Channel contract. No runtime or upstream imports. */
2
+ /**
3
+ * One rendered transcript row. The DSH session log is the source of truth:
4
+ * rows are derived from `session/event` records (and the initial
5
+ * `agent.session.events` replay), never from optimistic local state.
6
+ */
7
+ export interface ChatRow {
8
+ id: number;
9
+ kind: 'user' | 'assistant' | 'tool' | 'notice' | 'reasoning' | 'interrupt' | 'local' | 'local-output' | 'compact' | 'subagent' | 'job';
10
+ /** Extra label for non-human user rows (e.g. `steering`). */
11
+ label?: string;
12
+ /** Actual execution location for `!command` rows. */
13
+ executionTarget?: string;
14
+ text: string;
15
+ /** Durable session image blocks, loaded lazily through the attachment store. */
16
+ images?: readonly TranscriptImage[];
17
+ /** True while an assistant step is still streaming chunks. */
18
+ streaming?: boolean;
19
+ /** Present on `tool` rows; the card model. */
20
+ tool?: ToolRow;
21
+ /** Present on `subagent` rows; the subagent state snapshot. */
22
+ subagent?: SubagentRow;
23
+ /** Present on `job` rows; the background-job state snapshot. */
24
+ job?: JobRow;
25
+ /** Event wall-clock time (transcript-mode metadata, assistant rows). */
26
+ time?: number;
27
+ /** Present on `reasoning` rows once settled: thinking wall-clock duration. */
28
+ durationMs?: number;
29
+ /** Source session event seq — present on every log-derived row (rewind
30
+ * fork anchor on user rows; window-floor bookkeeping for the rest). */
31
+ seq?: number;
32
+ /** True when the row's full text was folded to keep the transcript window
33
+ * bounded (see MAX_ROWS); the session log still holds the full content
34
+ * and loadOlder() restores it. */
35
+ folded?: boolean;
36
+ /** True when loadOlder() restored this row from the log; restored rows are
37
+ * exempt from the next fold pass so a restore is not instantly undone. */
38
+ restored?: boolean;
39
+ /** True on rows created by LIVE event handling (not replay/resume/fold
40
+ * restore) — the smooth-streaming reveal animates freshly-arrived
41
+ * content only; replayed history must paint complete. Set once at
42
+ * creation; never mutated afterwards. */
43
+ fresh?: boolean;
44
+ }
45
+ /** Tool-call card state: the presentation of one tool invocation. */
46
+ export interface ToolRow {
47
+ readonly callId: string;
48
+ readonly name: string;
49
+ /** Raw JSON arguments as the model produced them (displayed truncated). */
50
+ readonly argsText: string;
51
+ /** Full arguments, shown when Ctrl+O verbose mode is on; dropped when the
52
+ * row is folded (session log retains it). */
53
+ argsFull?: string;
54
+ status: 'running' | 'ok' | 'error';
55
+ resultText?: string;
56
+ /** Full result text, shown when Ctrl+O verbose mode is on. */
57
+ resultFull?: string;
58
+ errorText?: string;
59
+ /** Tool-owned render intent from dsh-tools `presentCall` (diff/terminal/
60
+ * generic). Drives the structured card body instead of the raw text. */
61
+ callView?: ToolCallView;
62
+ /** Tool-owned completed-state view from `presentResult` (applied diff
63
+ * hunks, terminal output, read content…). Wins over callView once set. */
64
+ resultView?: ToolResultView;
65
+ /** Wall-clock start of the call (live elapsed while running). */
66
+ startedAt: number;
67
+ /** Settled wall-clock duration, written by tool/result. */
68
+ durationMs?: number;
69
+ }
70
+ /** Pending-call render intent (structural subset of dsh-tools ToolCallView). */
71
+ export type ToolCallView = {
72
+ readonly card: 'generic';
73
+ readonly title: string;
74
+ readonly kind?: string;
75
+ } | {
76
+ readonly card: 'terminal';
77
+ readonly title: string;
78
+ readonly description?: string;
79
+ readonly cwd?: string;
80
+ } | {
81
+ readonly card: 'diff';
82
+ readonly title: string;
83
+ readonly diffs: readonly ToolFileDiff[];
84
+ };
85
+ /** One file change in a tool presentation (dsh-tools FileDiff). */
86
+ export interface ToolFileDiff {
87
+ readonly path: string;
88
+ /** Prior content, or null for a new file / no before-image. */
89
+ readonly oldText: string | null;
90
+ readonly newText: string;
91
+ }
92
+ /** Completed-call render intent (structural subset of dsh-tools
93
+ * ToolResultView). `web` results and unknown shapes fall back to raw text. */
94
+ export type ToolResultView = {
95
+ readonly card: 'generic';
96
+ readonly title?: string;
97
+ readonly content?: ReadonlyArray<{
98
+ readonly type: string;
99
+ readonly text?: string;
100
+ }>;
101
+ } | {
102
+ readonly card: 'terminal';
103
+ readonly title?: string;
104
+ readonly output?: string;
105
+ readonly exitCode?: number;
106
+ readonly signal?: string;
107
+ } | {
108
+ readonly card: 'diff';
109
+ readonly title?: string;
110
+ readonly diffs: readonly ToolFileDiff[];
111
+ } | {
112
+ readonly card: 'read';
113
+ readonly title?: string;
114
+ readonly path?: string;
115
+ readonly content?: ReadonlyArray<{
116
+ readonly type: string;
117
+ readonly text?: string;
118
+ }>;
119
+ } | {
120
+ readonly card: 'search';
121
+ readonly shape: 'matches';
122
+ readonly title?: string;
123
+ readonly files: ReadonlyArray<{
124
+ readonly path: string;
125
+ readonly matches: ReadonlyArray<{
126
+ readonly lineNumber: number;
127
+ readonly line: string;
128
+ }>;
129
+ }>;
130
+ readonly truncated: boolean;
131
+ readonly total: number;
132
+ } | {
133
+ readonly card: 'search';
134
+ readonly shape: 'paths';
135
+ readonly title?: string;
136
+ readonly paths: readonly string[];
137
+ readonly truncated: boolean;
138
+ readonly total: number;
139
+ };
140
+ export interface SubagentRow {
141
+ agentId: string;
142
+ runId?: string;
143
+ description: string;
144
+ provider?: string;
145
+ model?: string;
146
+ effort?: string;
147
+ status: SubagentState['status'];
148
+ startedAt: number;
149
+ completedAt?: number;
150
+ durationMs?: number;
151
+ outputLines: string[];
152
+ toolCalls: SubagentState['toolCalls'];
153
+ tokens?: SubagentState['tokens'];
154
+ summary?: string;
155
+ stopReason?: string;
156
+ error?: string;
157
+ }
158
+ export interface SubagentState {
159
+ agentId: string;
160
+ runId?: string;
161
+ description: string;
162
+ provider?: string;
163
+ model?: string;
164
+ effort?: string;
165
+ status: SubagentStatus;
166
+ startedAt: number;
167
+ completedAt?: number;
168
+ endedAt?: number;
169
+ local?: boolean;
170
+ parentSessionId?: string;
171
+ sessionId?: string;
172
+ stopReason?: string;
173
+ error?: string;
174
+ /** Compatibility projection for older consumers. */
175
+ output: string[];
176
+ outputEvents: SubagentOutputLine[];
177
+ toolCalls: SubagentToolCall[];
178
+ tokens?: SubagentTokenUsage;
179
+ summary?: string;
180
+ }
181
+ /** Unified subagent activity domain model used by the adapter and every view. */
182
+ export type SubagentStatus = 'starting' | 'running' | 'completed' | 'failed' | 'cancelled' | 'unknown';
183
+ export interface SubagentOutputLine {
184
+ kind: SubagentOutputKind;
185
+ text: string;
186
+ at: number;
187
+ /** False while the line is still absorbing streaming deltas. */
188
+ settled?: boolean;
189
+ }
190
+ export type SubagentOutputKind = 'text' | 'thinking' | 'tool' | 'error' | 'system';
191
+ export interface SubagentToolCall {
192
+ id?: string;
193
+ name: string;
194
+ status: 'running' | 'completed' | 'failed';
195
+ startedAt: number;
196
+ endedAt?: number;
197
+ argsPreview?: string;
198
+ resultPreview?: string;
199
+ error?: string;
200
+ }
201
+ export interface SubagentTokenUsage {
202
+ input?: number;
203
+ output?: number;
204
+ total?: number;
205
+ context?: number;
206
+ }
207
+ /** One background job as a live transcript card (see `kind: 'job'`). */
208
+ export interface JobRow {
209
+ id: string;
210
+ kind: string;
211
+ label: string;
212
+ status: BackgroundJobStatus;
213
+ detail?: string;
214
+ startedAt: number;
215
+ finishedAt?: number;
216
+ /** Mirrored `job_output` tail feeding the card's three-line waterfall. */
217
+ outputLines: readonly string[];
218
+ }
219
+ /**
220
+ * Background-job projection for the UI (`/jobs` panel, transcript cards,
221
+ * status-line chip, completion toasts).
222
+ *
223
+ * The domain model sits on top of the harness job registry (`ctx.jobs`,
224
+ * `@deepseek-ai/dsh-jobs`). The registry is an optional service the TUI
225
+ * never hard-depends on: channel.ts reaches it through a local structural
226
+ * type ({@link JobsRuntime}), so compositions without the jobs plugin load
227
+ * the UI unchanged with the feature silently off.
228
+ *
229
+ * Two registry rules shape everything here:
230
+ *
231
+ * - `read()` is CONSUMING (one cursor per job) and a terminal read marks the
232
+ * job reported, which would eat the owning agent's `job_output` delta and
233
+ * suppress its completion notice. The UI therefore NEVER reads: the
234
+ * three-line output waterfall on a card is mirrored from the agent's own
235
+ * `job_output` tool results as they stream through the session event log
236
+ * ({@link BackgroundJobStore.onOutputSeen}), not polled.
237
+ * - Jobs are process-local and owner-fenced. `list(agent)` returns exactly
238
+ * the jobs the current conversation owns (plus unowned ones); a job that
239
+ * disappears while live was teardown-cancelled (owner disposal / session
240
+ * swap) and is frozen as `killed` so no transcript card ticks forever.
241
+ *
242
+ * @module jobs
243
+ */
244
+ /** Terminal / live lifecycle states, mirrored from the registry contract. */
245
+ export type BackgroundJobStatus = 'running' | 'stopping' | 'completed' | 'killed' | 'failed';
246
+ /** Running token totals across the session's assistant messages. */
247
+ export interface TokenUsage {
248
+ input: number;
249
+ output: number;
250
+ /** Prompt-cache hit tokens across the session (priced at the hit rate). */
251
+ cacheRead: number;
252
+ /** Prompt-cache write tokens across the session (priced with uncached input). */
253
+ cacheWrite: number;
254
+ /** Peak-hour tokens (billed at peak rates) — each usage lands in a bucket
255
+ * by its event time, so a session spanning both windows is priced per
256
+ * window instead of all at the current rate. */
257
+ peak: TokenBucket;
258
+ /** Off-peak-hour tokens (billed at idle rates). */
259
+ idle: TokenBucket;
260
+ }
261
+ /** One 计费时段(高峰/空闲)的 token 累计。 */
262
+ export interface TokenBucket {
263
+ input: number;
264
+ output: number;
265
+ cacheRead: number;
266
+ cacheWrite: number;
267
+ }
268
+ /** A transient status message shown above the prompt input. */
269
+ export interface NotificationItem {
270
+ id: number;
271
+ text: string;
272
+ /** Theme color key; defaults to dim. */
273
+ color?: 'error' | 'warning' | 'success';
274
+ /** Auto-dismiss after this many ms (default 4000); 0 = sticky, removed
275
+ * only through the early-dismiss handle. */
276
+ timeoutMs: number;
277
+ }
278
+ /** In-process working-line snapshot derived from the base session stream. */
279
+ export type ActivityStatus = ActivityState;
280
+ /**
281
+ * Durable same-session goal projection surfaced on the channel (see
282
+ * {@link Channel['goal']}). Mirrors the goal domain's `GoalSnapshot` +
283
+ * replay counters; declared locally so the UI needs no dsh-goal dependency.
284
+ */
285
+ export interface ChannelGoal {
286
+ id: string;
287
+ revision: number;
288
+ objective: string;
289
+ phase: 'active' | 'paused' | 'blocked' | 'complete';
290
+ /** Total admitted goal-round cap. */
291
+ maxGoalRounds: number;
292
+ /** Highest admitted continuation round so far. */
293
+ roundsStarted: number;
294
+ /** Present exactly while `phase` is `blocked`. */
295
+ blockedReason?: {
296
+ code: string;
297
+ message: string;
298
+ };
299
+ }
300
+ /** One entry of the latest todo-list snapshot (mirrors dsh-tool-todo's
301
+ * `TodoItem`; declared locally so the adapter needn't depend on that plugin). */
302
+ export interface TodoPanelItem {
303
+ content: string;
304
+ status: 'pending' | 'in_progress' | 'completed';
305
+ }
306
+ /**
307
+ * Snapshot of everything a fresh conversation for the current agent will
308
+ * load: the assembled system prompt (ordered sections, dynamic context,
309
+ * tools), the workspace instruction files baseline discovery would inject,
310
+ * and the skill catalog. Declared locally so screens and helpers consume a
311
+ * self-contained contract instead of the dsh-system-prompt/dsh-skill types.
312
+ */
313
+ export interface LoadedContext {
314
+ /** Ordered system-prompt sections after strict variable interpolation. */
315
+ readonly sections: readonly LoadedContextEntry[];
316
+ /** Dynamic context contributions (runtime snapshot parts). */
317
+ readonly contexts: readonly LoadedContextEntry[];
318
+ /** Workspace instruction files (AGENTS.md-family) discovered for the cwd. */
319
+ readonly files: readonly LoadedContextFile[];
320
+ /** Model-invocable skills, when the skill registry is mounted. */
321
+ readonly skills: readonly LoadedContextSkill[];
322
+ /** Model-visible tools in assembly order. */
323
+ readonly tools: readonly LoadedContextTool[];
324
+ }
325
+ /** One named prompt contribution with its model-visible text. */
326
+ export interface LoadedContextEntry {
327
+ /** Provider-declared name (e.g. `harness:identity`, `deployment:persona`). */
328
+ readonly name: string;
329
+ /** The interpolated text the model receives for this entry. */
330
+ readonly text: string;
331
+ }
332
+ /** One discovered workspace instruction file (AGENTS.md-family). */
333
+ export interface LoadedContextFile {
334
+ /** Model-facing path (e.g. `./AGENTS.md`). */
335
+ readonly displayPath: string;
336
+ }
337
+ /** One model-invocable skill from the skill registry. */
338
+ export interface LoadedContextSkill {
339
+ readonly name: string;
340
+ readonly description: string;
341
+ }
342
+ /** One model-visible tool from the prompt assembly. */
343
+ export interface LoadedContextTool {
344
+ readonly name: string;
345
+ readonly description: string;
346
+ }
347
+ /** @internal */
348
+ /** One user message submitted while the model was working, not yet claimed
349
+ * by a turn. `steer` lands at the next step boundary of the running turn;
350
+ * `followup` waits for the turn to end. */
351
+ export interface PendingMessage {
352
+ id: string;
353
+ text: string;
354
+ images: readonly ComposerImageRef[];
355
+ placement: 'steer' | 'followup';
356
+ }
357
+ /**
358
+ * Subagent row: displays a subagent's lifecycle (started → running → completed/failed).
359
+ * Derived from agent.task events and history events.
360
+ */
361
+ export interface SubagentControl {
362
+ interrupt(agentId: string): boolean;
363
+ }
364
+ /** One tracked job as the UI renders it. */
365
+ export interface BackgroundJobState {
366
+ id: string;
367
+ kind: string;
368
+ label: string;
369
+ /** The full command that started the job, captured from the originating
370
+ * tool call's args (`command`/`text`); the registry label is the friendly
371
+ * description. Absent when the start ack never streamed through (replay
372
+ * without the tool card, subagent one-shot jobs, …). */
373
+ command?: string;
374
+ status: BackgroundJobStatus;
375
+ detail?: string;
376
+ startedAt: number;
377
+ finishedAt?: number;
378
+ /** Last-seen output tail (mirrored `job_output` text), newest last. */
379
+ outputLines: string[];
380
+ /** Epoch ms of the last mirrored `job_output` read (receipt time). */
381
+ lastOutputAt?: number;
382
+ }
383
+ /**
384
+ * Background-job row control (`/jobs` panel): cancellation with the same
385
+ * authority the owning agent itself would use (`job_kill`). Returns false
386
+ * when the jobs service is absent or the job is unknown/foreign.
387
+ */
388
+ export interface JobControl {
389
+ kill(id: string): boolean;
390
+ }
391
+ export interface StagedImageInput {
392
+ data: Uint8Array;
393
+ mediaType: ChannelImageMediaType;
394
+ name?: string;
395
+ /** Absolute local path the bytes were read from, for the preview card's
396
+ * path row. Not handed to the attachment store and never persisted. */
397
+ path?: string;
398
+ }
399
+ /** UI-safe facade for one durable image block in the session transcript. */
400
+ export interface TranscriptImage {
401
+ readonly id: string;
402
+ readonly width: number;
403
+ readonly height: number;
404
+ readonly name?: string;
405
+ /** Verified media type, when the durable reference carries one. */
406
+ readonly mediaType?: string;
407
+ /** Stored byte size, when the durable reference carries one. */
408
+ readonly bytes?: number;
409
+ /**
410
+ * Absolute local path the bytes were staged from in THIS process: a pasted
411
+ * or dropped file, or the clipboard bitmap's temp export. Display-only and
412
+ * never persisted — the durable event carries a content hash, so images
413
+ * restored from the session log have none.
414
+ */
415
+ readonly path?: string;
416
+ read(signal?: AbortSignal): Promise<Uint8Array>;
417
+ }
418
+ /** Opaque capability returned for one staged composer image. The visible
419
+ * `[Image #N]` label is deliberately absent: PromptInput owns presentation
420
+ * numbering while this id is the non-reusable attachment identity. */
421
+ export interface StagedImageHandle {
422
+ readonly stageId: string;
423
+ }
424
+ /** One visible composer token bound to its opaque staged-image capability. */
425
+ export interface ComposerImageRef {
426
+ readonly token: string;
427
+ readonly stageId: string;
428
+ }
429
+ /** Text plus the image capabilities that belong to that exact draft. */
430
+ export interface ComposerSubmission {
431
+ readonly text: string;
432
+ readonly images?: readonly ComposerImageRef[];
433
+ }
434
+ /** UI-safe projection of one settled DSH registry command. Keeping the
435
+ * result kind across the adapter boundary lets the composer retain a
436
+ * rejected image draft instead of treating the error text as success. */
437
+ export type ExternalCommandOutcome = {
438
+ readonly kind: 'success';
439
+ readonly text: string;
440
+ readonly consumeDraft: true;
441
+ } | {
442
+ readonly kind: 'error';
443
+ readonly text: string;
444
+ readonly consumeDraft: boolean;
445
+ };
446
+ /** The observable outcome of adopting a persisted session. */
447
+ export type ResumeResult = {
448
+ readonly ok: true;
449
+ } | {
450
+ readonly ok: false;
451
+ readonly reason: 'working';
452
+ } | {
453
+ readonly ok: false;
454
+ readonly reason: 'unavailable';
455
+ } | {
456
+ readonly ok: false;
457
+ readonly reason: 'cancelled';
458
+ } | {
459
+ readonly ok: false;
460
+ readonly reason: 'failed';
461
+ readonly error: string;
462
+ };
463
+ /**
464
+ * Mutable channel state owned by {@link createChannel}: the screen's
465
+ * reactive store. Screens subscribe and re-render on `version` bumps; the
466
+ * fields mirror the public {@link Channel} contract, and the `@internal`
467
+ * emit hooks belong to the implementation.
468
+ */
469
+ /** One adapter-owned reasoning-effort level for the `/effort` slider. */
470
+ export interface EffortOption {
471
+ id: string;
472
+ name: string;
473
+ description?: string;
474
+ }
475
+ /**
476
+ * Adapter-owned permission roster snapshot. `options` never contains the
477
+ * official `custom` sentinel; it is represented only by `current`.
478
+ */
479
+ export interface PermissionPresetSnapshot {
480
+ readonly availability: PermissionPresetAvailability;
481
+ readonly options: readonly PermissionPresetOption[];
482
+ readonly current?: PermissionPresetCurrent;
483
+ }
484
+ export type PermissionPresetAvailability = 'runtime' | 'legacy' | 'unavailable';
485
+ export interface PermissionPresetOption {
486
+ readonly value: string;
487
+ readonly name: string;
488
+ readonly description?: string;
489
+ }
490
+ export interface PermissionPresetCurrent {
491
+ readonly value: string;
492
+ readonly name: string;
493
+ readonly description?: string;
494
+ readonly kind: 'preset' | 'custom';
495
+ }
496
+ /** @internal */
497
+ /** One roster entry in the `/preset` picker (see {@link Channel.listPresets}). */
498
+ export interface PresetOption {
499
+ id: string;
500
+ name?: string;
501
+ description?: string;
502
+ /** Present when the roster marked this preset unloadable (shown verbatim). */
503
+ broken?: string;
504
+ isDefault: boolean;
505
+ }
506
+ /** One skill in the live agent's catalog, for the `/skills` picker (issue #204). */
507
+ export interface SkillInfo {
508
+ readonly name: string;
509
+ readonly description: string;
510
+ /** True when `/name` invokes it (it appears in the `/` menu, issue #86). */
511
+ readonly userInvocable: boolean;
512
+ /** Discovery source bucket (bundled / user-* / project-* / runtime / …). */
513
+ readonly source: string;
514
+ }
515
+ /** Secret-free credential metadata for configuration and status surfaces. */
516
+ export interface CredentialStatus {
517
+ configured: boolean;
518
+ source?: string;
519
+ writable: boolean;
520
+ }
521
+ /** One row in the agent view list. */
522
+ export interface AgentViewRow {
523
+ /** Session id — the attach/dispatch target. */
524
+ readonly id: string;
525
+ /** Display title (session title, or a fallback from the prompt/cwd). */
526
+ readonly title: string;
527
+ /** Absolute working directory the session runs in. */
528
+ readonly cwd: string;
529
+ /** One-line activity summary derived from the session's recent output. */
530
+ readonly summary: string;
531
+ readonly status: AgentViewStatus;
532
+ /** True when an agent for this session is alive in THIS process (✻ vs ∙). */
533
+ readonly live: boolean;
534
+ /** True when this is the session the TUI terminal is attached to. */
535
+ readonly current: boolean;
536
+ /** Unix epoch milliseconds when the session was created. */
537
+ readonly createdAt: number;
538
+ /** Unix epoch milliseconds of the session's latest activity. */
539
+ readonly updatedAt: number;
540
+ }
541
+ /**
542
+ * One session's state in the agent view.
543
+ * State vocabulary:
544
+ * `working` — a turn is running; `needs-input` — an approval request is
545
+ * parked for this agent; `idle` — live and waiting for the next prompt;
546
+ * `completed` — a live agent whose last turn ended (task finished, waiting);
547
+ * `failed` — the last turn ended with an error; `stopped` — the session's
548
+ * process is gone (persisted only).
549
+ */
550
+ export type AgentViewStatus = 'working' | 'needs-input' | 'idle' | 'completed' | 'failed' | 'stopped';
551
+ /** The observable outcome of dispatching a new background session. */
552
+ export type AgentViewDispatchResult = {
553
+ readonly ok: true;
554
+ readonly sessionId: string;
555
+ } | {
556
+ readonly ok: false;
557
+ readonly reason: 'unavailable';
558
+ } | {
559
+ readonly ok: false;
560
+ readonly reason: 'failed';
561
+ readonly error: string;
562
+ };
563
+ /** The observable outcome of backgrounding the attached session. */
564
+ export type BackgroundResult = {
565
+ readonly ok: true;
566
+ readonly backgroundedSessionId: string;
567
+ } | {
568
+ readonly ok: false;
569
+ };
570
+ export type AgentStatus = 'idle' | 'running';
571
+ export interface ActivityState {
572
+ readonly phase: 'idle' | 'waiting' | 'thinking' | 'tool' | 'done';
573
+ readonly line: string;
574
+ readonly label?: string;
575
+ readonly detail?: string;
576
+ readonly phrase?: string;
577
+ readonly toolCount: number;
578
+ readonly turnElapsedMs: number;
579
+ readonly phaseStartedAt: number;
580
+ }
581
+ export interface LlmModelInfo {
582
+ provider: string;
583
+ id: string;
584
+ name: string;
585
+ description?: string;
586
+ inputModalities?: readonly string[];
587
+ }
588
+ export interface LlmProviderInfo {
589
+ id: string;
590
+ name: string;
591
+ }
592
+ export interface LlmDiscoveredModel {
593
+ id: string;
594
+ name?: string;
595
+ contextWindow?: number;
596
+ maxTokens?: number;
597
+ }
598
+ export type ChannelImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';
599
+ export interface ChannelSceneMetadata {
600
+ readonly id: string;
601
+ readonly title?: string;
602
+ }
603
+ export interface RawTrajEvent {
604
+ readonly type: string;
605
+ readonly seq: number;
606
+ readonly time: number;
607
+ readonly data: unknown;
608
+ }
609
+ //# sourceMappingURL=channel-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel-view.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/channel-view.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAG9E;;;;GAIG;AACH,MAAM,WAAW,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channel contract. No runtime or upstream imports. */
2
+ export interface TuiWorkspaceTarget {
3
+ /** Stable, user-pasteable target identifier. */
4
+ uri: string;
5
+ /** Host-side cwd recorded in the DSH session header. */
6
+ cwd: string;
7
+ /** Compact picker/status label. */
8
+ label: string;
9
+ /** Optional secondary picker copy. */
10
+ description?: string;
11
+ kind: TuiWorkspaceKind;
12
+ /** Provider-owned compact badge; the TUI does not interpret it. */
13
+ badge: string;
14
+ }
15
+ export type TuiWorkspaceKind = 'local' | 'provider';
16
+ export interface TuiWorkspaceCommand {
17
+ name: string;
18
+ aliases?: readonly string[];
19
+ description: string;
20
+ run(input: string, context: {
21
+ cwd: string;
22
+ }, signal?: AbortSignal): Promise<TuiWorkspaceCommandResult> | TuiWorkspaceCommandResult;
23
+ }
24
+ export type TuiWorkspaceCommandResult = {
25
+ kind: 'choices';
26
+ title: string;
27
+ choices: readonly TuiWorkspaceChoice[];
28
+ } | {
29
+ kind: 'target';
30
+ target: TuiWorkspaceTarget;
31
+ };
32
+ export interface TuiWorkspaceChoice {
33
+ id: string;
34
+ label: string;
35
+ description?: string;
36
+ badge?: string;
37
+ choose(signal?: AbortSignal): Promise<TuiWorkspaceCommandResult> | TuiWorkspaceCommandResult;
38
+ /** Optional inline editor entered with Tab while this choice is focused. */
39
+ input?: {
40
+ initialValue?: string;
41
+ placeholder?: string;
42
+ submit(value: string, signal?: AbortSignal): Promise<TuiWorkspaceCommandResult> | TuiWorkspaceCommandResult;
43
+ };
44
+ }
45
+ //# sourceMappingURL=channel-workspace.d.ts.map