@deepseek-harness-tui/dsh-tui 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1023) hide show
  1. package/README.md +85 -5
  2. package/assets/claude-girl/claude-girl-happy.png +0 -0
  3. package/assets/claude-girl/claude-girl.png +0 -0
  4. package/assets/codex-girl/codex-girl-happy.png +0 -0
  5. package/assets/codex-girl/codex-girl.png +0 -0
  6. package/bin/dsh-tui.js +104 -18
  7. package/cordis.patch.yml +2 -0
  8. package/cordis.yml +2 -0
  9. package/guide/dsh-tui-guide/SKILL.md +4 -2
  10. package/guide/dsh-tui-guide/claude-backend.en.md +203 -0
  11. package/guide/dsh-tui-guide/claude-backend.md +161 -0
  12. package/guide/dsh-tui-guide/codex-backend.en.md +297 -0
  13. package/guide/dsh-tui-guide/codex-backend.md +257 -0
  14. package/guide/dsh-tui-guide/configuration.en.md +9 -2
  15. package/guide/dsh-tui-guide/configuration.md +9 -2
  16. package/guide/dsh-tui-guide/interaction.en.md +169 -27
  17. package/guide/dsh-tui-guide/interaction.md +115 -17
  18. package/guide/dsh-tui-guide/themes.en.md +24 -2
  19. package/guide/dsh-tui-guide/themes.md +21 -2
  20. package/guide/dsh-tui-guide/user-guide.en.md +38 -23
  21. package/guide/dsh-tui-guide/user-guide.md +22 -11
  22. package/guide/dsh-tui-guide/vscode.en.md +1 -0
  23. package/guide/dsh-tui-guide/vscode.md +1 -0
  24. package/lib/settings.json +139 -6
  25. package/lib/types/adapter/channel/state.d.ts.map +1 -1
  26. package/lib/types/adapter/channel/state.js +1 -0
  27. package/lib/types/adapter/channel/ui-policy.d.ts +17 -2
  28. package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
  29. package/lib/types/adapter/channel/ui-policy.js +29 -0
  30. package/lib/types/adapter/channel/ui.d.ts.map +1 -1
  31. package/lib/types/adapter/channel/ui.js +45 -5
  32. package/lib/types/adapter/ports/channel-catalog.d.ts +7 -0
  33. package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
  34. package/lib/types/adapter/ports/channel-display.d.ts +7 -1
  35. package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
  36. package/lib/types/adapter/ports/channel-session.d.ts +5 -0
  37. package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
  38. package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
  39. package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
  40. package/lib/types/adapter/ports/channel-ui.d.ts +183 -6
  41. package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
  42. package/lib/types/adapter/ports/channel-view.d.ts +477 -13
  43. package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
  44. package/lib/types/agent/backend.d.ts +168 -0
  45. package/lib/types/agent/backend.d.ts.map +1 -0
  46. package/lib/types/agent/backend.js +1 -0
  47. package/lib/types/agent/capabilities.d.ts +461 -0
  48. package/lib/types/agent/capabilities.d.ts.map +1 -0
  49. package/lib/types/agent/capabilities.js +1 -0
  50. package/lib/types/agent/events.d.ts +733 -0
  51. package/lib/types/agent/events.d.ts.map +1 -0
  52. package/lib/types/agent/events.js +2 -0
  53. package/lib/types/agent/index.d.ts +8 -0
  54. package/lib/types/agent/index.d.ts.map +1 -0
  55. package/lib/types/agent/index.js +7 -0
  56. package/lib/types/agent/messages.d.ts +52 -0
  57. package/lib/types/agent/messages.d.ts.map +1 -0
  58. package/lib/types/agent/messages.js +91 -0
  59. package/lib/types/agent/presentation.d.ts +29 -0
  60. package/lib/types/agent/presentation.d.ts.map +1 -0
  61. package/lib/types/agent/presentation.js +4 -0
  62. package/lib/types/agent/refs.d.ts +30 -0
  63. package/lib/types/agent/refs.d.ts.map +1 -0
  64. package/lib/types/agent/refs.js +39 -0
  65. package/lib/types/agent/session.d.ts +78 -0
  66. package/lib/types/agent/session.d.ts.map +1 -0
  67. package/lib/types/agent/session.js +1 -0
  68. package/lib/types/backends/claude/activity.d.ts +53 -0
  69. package/lib/types/backends/claude/activity.d.ts.map +1 -0
  70. package/lib/types/backends/claude/activity.js +103 -0
  71. package/lib/types/backends/claude/auth.d.ts +245 -0
  72. package/lib/types/backends/claude/auth.d.ts.map +1 -0
  73. package/lib/types/backends/claude/auth.js +503 -0
  74. package/lib/types/backends/claude/backend.d.ts +32 -0
  75. package/lib/types/backends/claude/backend.d.ts.map +1 -0
  76. package/lib/types/backends/claude/backend.js +296 -0
  77. package/lib/types/backends/claude/catalog.d.ts +17 -0
  78. package/lib/types/backends/claude/catalog.d.ts.map +1 -0
  79. package/lib/types/backends/claude/catalog.js +94 -0
  80. package/lib/types/backends/claude/channels.d.ts +63 -0
  81. package/lib/types/backends/claude/channels.d.ts.map +1 -0
  82. package/lib/types/backends/claude/channels.js +275 -0
  83. package/lib/types/backends/claude/contract.d.ts +37 -0
  84. package/lib/types/backends/claude/contract.d.ts.map +1 -0
  85. package/lib/types/backends/claude/contract.js +46 -0
  86. package/lib/types/backends/claude/controls.d.ts +134 -0
  87. package/lib/types/backends/claude/controls.d.ts.map +1 -0
  88. package/lib/types/backends/claude/controls.js +425 -0
  89. package/lib/types/backends/claude/dialogs.d.ts +62 -0
  90. package/lib/types/backends/claude/dialogs.d.ts.map +1 -0
  91. package/lib/types/backends/claude/dialogs.js +253 -0
  92. package/lib/types/backends/claude/flag-settings.d.ts +12 -0
  93. package/lib/types/backends/claude/flag-settings.d.ts.map +1 -0
  94. package/lib/types/backends/claude/flag-settings.js +49 -0
  95. package/lib/types/backends/claude/images.d.ts +49 -0
  96. package/lib/types/backends/claude/images.d.ts.map +1 -0
  97. package/lib/types/backends/claude/images.js +94 -0
  98. package/lib/types/backends/claude/index.d.ts +5 -0
  99. package/lib/types/backends/claude/index.d.ts.map +1 -0
  100. package/lib/types/backends/claude/index.js +4 -0
  101. package/lib/types/backends/claude/install.d.ts +15 -0
  102. package/lib/types/backends/claude/install.d.ts.map +1 -0
  103. package/lib/types/backends/claude/install.js +91 -0
  104. package/lib/types/backends/claude/modelEnv.d.ts +64 -0
  105. package/lib/types/backends/claude/modelEnv.d.ts.map +1 -0
  106. package/lib/types/backends/claude/modelEnv.js +199 -0
  107. package/lib/types/backends/claude/narrow.d.ts +10 -0
  108. package/lib/types/backends/claude/narrow.d.ts.map +1 -0
  109. package/lib/types/backends/claude/narrow.js +8 -0
  110. package/lib/types/backends/claude/older-history.d.ts +16 -0
  111. package/lib/types/backends/claude/older-history.d.ts.map +1 -0
  112. package/lib/types/backends/claude/older-history.js +101 -0
  113. package/lib/types/backends/claude/options.d.ts +181 -0
  114. package/lib/types/backends/claude/options.d.ts.map +1 -0
  115. package/lib/types/backends/claude/options.js +208 -0
  116. package/lib/types/backends/claude/permissions.d.ts +83 -0
  117. package/lib/types/backends/claude/permissions.d.ts.map +1 -0
  118. package/lib/types/backends/claude/permissions.js +331 -0
  119. package/lib/types/backends/claude/prefs.d.ts +55 -0
  120. package/lib/types/backends/claude/prefs.d.ts.map +1 -0
  121. package/lib/types/backends/claude/prefs.js +150 -0
  122. package/lib/types/backends/claude/process.d.ts +19 -0
  123. package/lib/types/backends/claude/process.d.ts.map +1 -0
  124. package/lib/types/backends/claude/process.js +156 -0
  125. package/lib/types/backends/claude/replay.d.ts +129 -0
  126. package/lib/types/backends/claude/replay.d.ts.map +1 -0
  127. package/lib/types/backends/claude/replay.js +505 -0
  128. package/lib/types/backends/claude/sdk-warnings.d.ts +23 -0
  129. package/lib/types/backends/claude/sdk-warnings.d.ts.map +1 -0
  130. package/lib/types/backends/claude/sdk-warnings.js +55 -0
  131. package/lib/types/backends/claude/sdk.d.ts +12 -0
  132. package/lib/types/backends/claude/sdk.d.ts.map +1 -0
  133. package/lib/types/backends/claude/sdk.js +34 -0
  134. package/lib/types/backends/claude/send-message.d.ts +54 -0
  135. package/lib/types/backends/claude/send-message.d.ts.map +1 -0
  136. package/lib/types/backends/claude/send-message.js +65 -0
  137. package/lib/types/backends/claude/session/auth.d.ts +47 -0
  138. package/lib/types/backends/claude/session/auth.d.ts.map +1 -0
  139. package/lib/types/backends/claude/session/auth.js +226 -0
  140. package/lib/types/backends/claude/session/channels.d.ts +82 -0
  141. package/lib/types/backends/claude/session/channels.d.ts.map +1 -0
  142. package/lib/types/backends/claude/session/channels.js +45 -0
  143. package/lib/types/backends/claude/session/input.d.ts +16 -0
  144. package/lib/types/backends/claude/session/input.d.ts.map +1 -0
  145. package/lib/types/backends/claude/session/input.js +64 -0
  146. package/lib/types/backends/claude/session/lifecycle.d.ts +6 -0
  147. package/lib/types/backends/claude/session/lifecycle.d.ts.map +1 -0
  148. package/lib/types/backends/claude/session/lifecycle.js +852 -0
  149. package/lib/types/backends/claude/session/store.d.ts +17 -0
  150. package/lib/types/backends/claude/session/store.d.ts.map +1 -0
  151. package/lib/types/backends/claude/session/store.js +122 -0
  152. package/lib/types/backends/claude/session/subagents.d.ts +13 -0
  153. package/lib/types/backends/claude/session/subagents.d.ts.map +1 -0
  154. package/lib/types/backends/claude/session/subagents.js +77 -0
  155. package/lib/types/backends/claude/session/types.d.ts +89 -0
  156. package/lib/types/backends/claude/session/types.d.ts.map +1 -0
  157. package/lib/types/backends/claude/session/types.js +1 -0
  158. package/lib/types/backends/claude/session.d.ts +4 -0
  159. package/lib/types/backends/claude/session.d.ts.map +1 -0
  160. package/lib/types/backends/claude/session.js +2 -0
  161. package/lib/types/backends/claude/side-query.d.ts +34 -0
  162. package/lib/types/backends/claude/side-query.d.ts.map +1 -0
  163. package/lib/types/backends/claude/side-query.js +116 -0
  164. package/lib/types/backends/claude/task-output.d.ts +13 -0
  165. package/lib/types/backends/claude/task-output.d.ts.map +1 -0
  166. package/lib/types/backends/claude/task-output.js +101 -0
  167. package/lib/types/backends/claude/tools.d.ts +45 -0
  168. package/lib/types/backends/claude/tools.d.ts.map +1 -0
  169. package/lib/types/backends/claude/tools.js +231 -0
  170. package/lib/types/backends/claude/transcript-file.d.ts +41 -0
  171. package/lib/types/backends/claude/transcript-file.d.ts.map +1 -0
  172. package/lib/types/backends/claude/transcript-file.js +195 -0
  173. package/lib/types/backends/claude/translate/attempts.d.ts +33 -0
  174. package/lib/types/backends/claude/translate/attempts.d.ts.map +1 -0
  175. package/lib/types/backends/claude/translate/attempts.js +243 -0
  176. package/lib/types/backends/claude/translate/content.d.ts +33 -0
  177. package/lib/types/backends/claude/translate/content.d.ts.map +1 -0
  178. package/lib/types/backends/claude/translate/content.js +91 -0
  179. package/lib/types/backends/claude/translate/core.d.ts +76 -0
  180. package/lib/types/backends/claude/translate/core.d.ts.map +1 -0
  181. package/lib/types/backends/claude/translate/core.js +447 -0
  182. package/lib/types/backends/claude/translate/events.d.ts +9 -0
  183. package/lib/types/backends/claude/translate/events.d.ts.map +1 -0
  184. package/lib/types/backends/claude/translate/events.js +77 -0
  185. package/lib/types/backends/claude/translate/lanes.d.ts +31 -0
  186. package/lib/types/backends/claude/translate/lanes.d.ts.map +1 -0
  187. package/lib/types/backends/claude/translate/lanes.js +177 -0
  188. package/lib/types/backends/claude/translate/messages.d.ts +36 -0
  189. package/lib/types/backends/claude/translate/messages.d.ts.map +1 -0
  190. package/lib/types/backends/claude/translate/messages.js +202 -0
  191. package/lib/types/backends/claude/translate/system.d.ts +40 -0
  192. package/lib/types/backends/claude/translate/system.d.ts.map +1 -0
  193. package/lib/types/backends/claude/translate/system.js +399 -0
  194. package/lib/types/backends/claude/translate/tasks.d.ts +19 -0
  195. package/lib/types/backends/claude/translate/tasks.d.ts.map +1 -0
  196. package/lib/types/backends/claude/translate/tasks.js +159 -0
  197. package/lib/types/backends/claude/translate/types.d.ts +114 -0
  198. package/lib/types/backends/claude/translate/types.d.ts.map +1 -0
  199. package/lib/types/backends/claude/translate/types.js +1 -0
  200. package/lib/types/backends/claude/translate.d.ts +9 -0
  201. package/lib/types/backends/claude/translate.d.ts.map +1 -0
  202. package/lib/types/backends/claude/translate.js +6 -0
  203. package/lib/types/backends/codex/auth/external-tokens.d.ts +66 -0
  204. package/lib/types/backends/codex/auth/external-tokens.d.ts.map +1 -0
  205. package/lib/types/backends/codex/auth/external-tokens.js +325 -0
  206. package/lib/types/backends/codex/auth/route.d.ts +14 -0
  207. package/lib/types/backends/codex/auth/route.d.ts.map +1 -0
  208. package/lib/types/backends/codex/auth/route.js +52 -0
  209. package/lib/types/backends/codex/auth/status.d.ts +16 -0
  210. package/lib/types/backends/codex/auth/status.d.ts.map +1 -0
  211. package/lib/types/backends/codex/auth/status.js +115 -0
  212. package/lib/types/backends/codex/backend.d.ts +58 -0
  213. package/lib/types/backends/codex/backend.d.ts.map +1 -0
  214. package/lib/types/backends/codex/backend.js +201 -0
  215. package/lib/types/backends/codex/catalog.d.ts +17 -0
  216. package/lib/types/backends/codex/catalog.d.ts.map +1 -0
  217. package/lib/types/backends/codex/catalog.js +128 -0
  218. package/lib/types/backends/codex/channels.d.ts +59 -0
  219. package/lib/types/backends/codex/channels.d.ts.map +1 -0
  220. package/lib/types/backends/codex/channels.js +274 -0
  221. package/lib/types/backends/codex/contract.d.ts +46 -0
  222. package/lib/types/backends/codex/contract.d.ts.map +1 -0
  223. package/lib/types/backends/codex/contract.js +80 -0
  224. package/lib/types/backends/codex/detect.d.ts +14 -0
  225. package/lib/types/backends/codex/detect.d.ts.map +1 -0
  226. package/lib/types/backends/codex/detect.js +90 -0
  227. package/lib/types/backends/codex/index.d.ts +6 -0
  228. package/lib/types/backends/codex/index.d.ts.map +1 -0
  229. package/lib/types/backends/codex/index.js +5 -0
  230. package/lib/types/backends/codex/modes.d.ts +16 -0
  231. package/lib/types/backends/codex/modes.d.ts.map +1 -0
  232. package/lib/types/backends/codex/modes.js +49 -0
  233. package/lib/types/backends/codex/narrow.d.ts +20 -0
  234. package/lib/types/backends/codex/narrow.d.ts.map +1 -0
  235. package/lib/types/backends/codex/narrow.js +18 -0
  236. package/lib/types/backends/codex/prefs.d.ts +42 -0
  237. package/lib/types/backends/codex/prefs.d.ts.map +1 -0
  238. package/lib/types/backends/codex/prefs.js +124 -0
  239. package/lib/types/backends/codex/protocol/index.d.ts +149 -0
  240. package/lib/types/backends/codex/protocol/index.d.ts.map +1 -0
  241. package/lib/types/backends/codex/protocol/index.js +130 -0
  242. package/lib/types/backends/codex/rpc/binary.d.ts +35 -0
  243. package/lib/types/backends/codex/rpc/binary.d.ts.map +1 -0
  244. package/lib/types/backends/codex/rpc/binary.js +174 -0
  245. package/lib/types/backends/codex/rpc/client.d.ts +72 -0
  246. package/lib/types/backends/codex/rpc/client.d.ts.map +1 -0
  247. package/lib/types/backends/codex/rpc/client.js +214 -0
  248. package/lib/types/backends/codex/rpc/hub.d.ts +105 -0
  249. package/lib/types/backends/codex/rpc/hub.d.ts.map +1 -0
  250. package/lib/types/backends/codex/rpc/hub.js +532 -0
  251. package/lib/types/backends/codex/rpc/transport.d.ts +39 -0
  252. package/lib/types/backends/codex/rpc/transport.d.ts.map +1 -0
  253. package/lib/types/backends/codex/rpc/transport.js +212 -0
  254. package/lib/types/backends/codex/session/activity.d.ts +18 -0
  255. package/lib/types/backends/codex/session/activity.d.ts.map +1 -0
  256. package/lib/types/backends/codex/session/activity.js +108 -0
  257. package/lib/types/backends/codex/session/approvals.d.ts +39 -0
  258. package/lib/types/backends/codex/session/approvals.d.ts.map +1 -0
  259. package/lib/types/backends/codex/session/approvals.js +477 -0
  260. package/lib/types/backends/codex/session/commands.d.ts +37 -0
  261. package/lib/types/backends/codex/session/commands.d.ts.map +1 -0
  262. package/lib/types/backends/codex/session/commands.js +141 -0
  263. package/lib/types/backends/codex/session/controls.d.ts +37 -0
  264. package/lib/types/backends/codex/session/controls.d.ts.map +1 -0
  265. package/lib/types/backends/codex/session/controls.js +303 -0
  266. package/lib/types/backends/codex/session/goals.d.ts +25 -0
  267. package/lib/types/backends/codex/session/goals.d.ts.map +1 -0
  268. package/lib/types/backends/codex/session/goals.js +97 -0
  269. package/lib/types/backends/codex/session/history.d.ts +52 -0
  270. package/lib/types/backends/codex/session/history.d.ts.map +1 -0
  271. package/lib/types/backends/codex/session/history.js +196 -0
  272. package/lib/types/backends/codex/session/images.d.ts +17 -0
  273. package/lib/types/backends/codex/session/images.d.ts.map +1 -0
  274. package/lib/types/backends/codex/session/images.js +138 -0
  275. package/lib/types/backends/codex/session/input.d.ts +75 -0
  276. package/lib/types/backends/codex/session/input.d.ts.map +1 -0
  277. package/lib/types/backends/codex/session/input.js +294 -0
  278. package/lib/types/backends/codex/session/plan-review.d.ts +19 -0
  279. package/lib/types/backends/codex/session/plan-review.d.ts.map +1 -0
  280. package/lib/types/backends/codex/session/plan-review.js +48 -0
  281. package/lib/types/backends/codex/session/prompts.d.ts +7 -0
  282. package/lib/types/backends/codex/session/prompts.d.ts.map +1 -0
  283. package/lib/types/backends/codex/session/prompts.js +47 -0
  284. package/lib/types/backends/codex/session/session.d.ts +12 -0
  285. package/lib/types/backends/codex/session/session.d.ts.map +1 -0
  286. package/lib/types/backends/codex/session/session.js +871 -0
  287. package/lib/types/backends/codex/session/side-query.d.ts +25 -0
  288. package/lib/types/backends/codex/session/side-query.d.ts.map +1 -0
  289. package/lib/types/backends/codex/session/side-query.js +121 -0
  290. package/lib/types/backends/codex/session/state.d.ts +57 -0
  291. package/lib/types/backends/codex/session/state.d.ts.map +1 -0
  292. package/lib/types/backends/codex/session/state.js +1 -0
  293. package/lib/types/backends/codex/session/subagents.d.ts +28 -0
  294. package/lib/types/backends/codex/session/subagents.d.ts.map +1 -0
  295. package/lib/types/backends/codex/session/subagents.js +286 -0
  296. package/lib/types/backends/codex/session/tasks.d.ts +25 -0
  297. package/lib/types/backends/codex/session/tasks.d.ts.map +1 -0
  298. package/lib/types/backends/codex/session/tasks.js +207 -0
  299. package/lib/types/backends/codex/session/tool-output.d.ts +9 -0
  300. package/lib/types/backends/codex/session/tool-output.d.ts.map +1 -0
  301. package/lib/types/backends/codex/session/tool-output.js +29 -0
  302. package/lib/types/backends/codex/translate/commands.d.ts +30 -0
  303. package/lib/types/backends/codex/translate/commands.d.ts.map +1 -0
  304. package/lib/types/backends/codex/translate/commands.js +103 -0
  305. package/lib/types/backends/codex/translate/events.d.ts +9 -0
  306. package/lib/types/backends/codex/translate/events.d.ts.map +1 -0
  307. package/lib/types/backends/codex/translate/events.js +71 -0
  308. package/lib/types/backends/codex/translate/items.d.ts +112 -0
  309. package/lib/types/backends/codex/translate/items.d.ts.map +1 -0
  310. package/lib/types/backends/codex/translate/items.js +375 -0
  311. package/lib/types/backends/codex/translate/live.d.ts +39 -0
  312. package/lib/types/backends/codex/translate/live.d.ts.map +1 -0
  313. package/lib/types/backends/codex/translate/live.js +315 -0
  314. package/lib/types/backends/codex/translate/notices.d.ts +27 -0
  315. package/lib/types/backends/codex/translate/notices.d.ts.map +1 -0
  316. package/lib/types/backends/codex/translate/notices.js +99 -0
  317. package/lib/types/backends/codex/translate/presentation.d.ts +49 -0
  318. package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -0
  319. package/lib/types/backends/codex/translate/presentation.js +237 -0
  320. package/lib/types/backends/codex/translate/replay.d.ts +18 -0
  321. package/lib/types/backends/codex/translate/replay.d.ts.map +1 -0
  322. package/lib/types/backends/codex/translate/replay.js +33 -0
  323. package/lib/types/backends/codex/translate/usage.d.ts +29 -0
  324. package/lib/types/backends/codex/translate/usage.d.ts.map +1 -0
  325. package/lib/types/backends/codex/translate/usage.js +65 -0
  326. package/lib/types/backends/shared/atomic-file.d.ts +4 -0
  327. package/lib/types/backends/shared/atomic-file.d.ts.map +1 -0
  328. package/lib/types/backends/shared/atomic-file.js +52 -0
  329. package/lib/types/backends/shared/channel-tokens.d.ts +29 -0
  330. package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -0
  331. package/lib/types/backends/shared/channel-tokens.js +161 -0
  332. package/lib/types/backends/shared/display-path.d.ts +3 -0
  333. package/lib/types/backends/shared/display-path.d.ts.map +1 -0
  334. package/lib/types/backends/shared/display-path.js +12 -0
  335. package/lib/types/branding.d.ts +92 -0
  336. package/lib/types/branding.d.ts.map +1 -0
  337. package/lib/types/branding.js +117 -0
  338. package/lib/types/channel/activity.d.ts +53 -0
  339. package/lib/types/channel/activity.d.ts.map +1 -0
  340. package/lib/types/channel/activity.js +955 -0
  341. package/lib/types/channel/capabilities.d.ts +24 -0
  342. package/lib/types/channel/capabilities.d.ts.map +1 -0
  343. package/lib/types/channel/capabilities.js +57 -0
  344. package/lib/types/channel/channel-slug.d.ts +9 -0
  345. package/lib/types/channel/channel-slug.d.ts.map +1 -0
  346. package/lib/types/channel/channel-slug.js +15 -0
  347. package/lib/types/channel/channel-wizard.d.ts +30 -0
  348. package/lib/types/channel/channel-wizard.d.ts.map +1 -0
  349. package/lib/types/channel/channel-wizard.js +226 -0
  350. package/lib/types/channel/elicitation.d.ts +135 -0
  351. package/lib/types/channel/elicitation.d.ts.map +1 -0
  352. package/lib/types/channel/elicitation.js +360 -0
  353. package/lib/types/channel/goal-command.d.ts +49 -0
  354. package/lib/types/channel/goal-command.d.ts.map +1 -0
  355. package/lib/types/channel/goal-command.js +72 -0
  356. package/lib/types/channel/history-restore.d.ts +16 -0
  357. package/lib/types/channel/history-restore.d.ts.map +1 -0
  358. package/lib/types/channel/history-restore.js +214 -0
  359. package/lib/types/channel/interaction.d.ts +38 -0
  360. package/lib/types/channel/interaction.d.ts.map +1 -0
  361. package/lib/types/channel/interaction.js +110 -0
  362. package/lib/types/channel/job-format.d.ts +6 -0
  363. package/lib/types/channel/job-format.d.ts.map +1 -0
  364. package/lib/types/channel/job-format.js +12 -0
  365. package/lib/types/channel/live-output.d.ts +35 -0
  366. package/lib/types/channel/live-output.d.ts.map +1 -0
  367. package/lib/types/channel/live-output.js +74 -0
  368. package/lib/types/channel/model-capabilities.d.ts +10 -0
  369. package/lib/types/channel/model-capabilities.d.ts.map +1 -0
  370. package/lib/types/channel/model-capabilities.js +51 -0
  371. package/lib/types/channel/permissions.d.ts +155 -0
  372. package/lib/types/channel/permissions.d.ts.map +1 -0
  373. package/lib/types/channel/permissions.js +188 -0
  374. package/lib/types/channel/projection.d.ts +110 -0
  375. package/lib/types/channel/projection.d.ts.map +1 -0
  376. package/lib/types/channel/projection.js +1521 -0
  377. package/lib/types/channel/question-record.d.ts +76 -0
  378. package/lib/types/channel/question-record.d.ts.map +1 -0
  379. package/lib/types/channel/question-record.js +109 -0
  380. package/lib/types/channel/questions.d.ts +204 -0
  381. package/lib/types/channel/questions.d.ts.map +1 -0
  382. package/lib/types/channel/questions.js +286 -0
  383. package/lib/types/channel/sanitize.d.ts +49 -0
  384. package/lib/types/channel/sanitize.d.ts.map +1 -0
  385. package/lib/types/channel/sanitize.js +88 -0
  386. package/lib/types/channel/selection-record.d.ts +18 -0
  387. package/lib/types/channel/selection-record.d.ts.map +1 -0
  388. package/lib/types/channel/selection-record.js +45 -0
  389. package/lib/types/channel/side-prompts.d.ts +59 -0
  390. package/lib/types/channel/side-prompts.d.ts.map +1 -0
  391. package/lib/types/channel/side-prompts.js +127 -0
  392. package/lib/types/channel/transcript.d.ts +17 -0
  393. package/lib/types/channel/transcript.d.ts.map +1 -0
  394. package/lib/types/channel/transcript.js +19 -0
  395. package/lib/types/channel/usage.d.ts +48 -0
  396. package/lib/types/channel/usage.d.ts.map +1 -0
  397. package/lib/types/channel/usage.js +143 -0
  398. package/lib/types/commands.d.ts +147 -0
  399. package/lib/types/commands.d.ts.map +1 -1
  400. package/lib/types/commands.js +196 -2
  401. package/lib/types/components/AgentMessageComposer.d.ts +50 -0
  402. package/lib/types/components/AgentMessageComposer.d.ts.map +1 -0
  403. package/lib/types/components/AgentMessageComposer.js +159 -0
  404. package/lib/types/components/BtwPanel.d.ts +13 -12
  405. package/lib/types/components/BtwPanel.d.ts.map +1 -1
  406. package/lib/types/components/BtwPanel.js +35 -24
  407. package/lib/types/components/ChannelPicker.d.ts +40 -0
  408. package/lib/types/components/ChannelPicker.d.ts.map +1 -0
  409. package/lib/types/components/ChannelPicker.js +26 -0
  410. package/lib/types/components/Chat/JobCard.d.ts +29 -31
  411. package/lib/types/components/Chat/JobCard.d.ts.map +1 -1
  412. package/lib/types/components/Chat/JobCard.js +31 -112
  413. package/lib/types/components/Chat/SubagentMessage.d.ts +4 -1
  414. package/lib/types/components/Chat/SubagentMessage.d.ts.map +1 -1
  415. package/lib/types/components/Chat/SubagentMessage.js +10 -3
  416. package/lib/types/components/ClaudeGirl.d.ts +27 -0
  417. package/lib/types/components/ClaudeGirl.d.ts.map +1 -0
  418. package/lib/types/components/ClaudeGirl.js +30 -0
  419. package/lib/types/components/CodeBlockFrame.d.ts +19 -0
  420. package/lib/types/components/CodeBlockFrame.d.ts.map +1 -0
  421. package/lib/types/components/CodeBlockFrame.js +138 -0
  422. package/lib/types/components/CommandSuggestions.d.ts +10 -1
  423. package/lib/types/components/CommandSuggestions.d.ts.map +1 -1
  424. package/lib/types/components/CommandSuggestions.js +20 -3
  425. package/lib/types/components/ContextBarView.d.ts +2 -2
  426. package/lib/types/components/ContextBarView.d.ts.map +1 -1
  427. package/lib/types/components/ContextBarView.js +18 -8
  428. package/lib/types/components/EffortChargeGlyph.d.ts +1 -1
  429. package/lib/types/components/EffortChargeGlyph.d.ts.map +1 -1
  430. package/lib/types/components/EffortChargeGlyph.js +3 -4
  431. package/lib/types/components/EffortInputBorder.d.ts +1 -2
  432. package/lib/types/components/EffortInputBorder.d.ts.map +1 -1
  433. package/lib/types/components/EffortInputBorder.js +7 -4
  434. package/lib/types/components/EffortSlider.d.ts +5 -1
  435. package/lib/types/components/EffortSlider.d.ts.map +1 -1
  436. package/lib/types/components/EffortSlider.js +2 -2
  437. package/lib/types/components/EffortTierBadge.d.ts +1 -2
  438. package/lib/types/components/EffortTierBadge.d.ts.map +1 -1
  439. package/lib/types/components/EffortTierBadge.js +8 -5
  440. package/lib/types/components/GoalTodoPanel.d.ts +2 -1
  441. package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
  442. package/lib/types/components/GoalTodoPanel.js +11 -5
  443. package/lib/types/components/InlineMathParagraph.js +1 -1
  444. package/lib/types/components/JobsPanel.d.ts +8 -9
  445. package/lib/types/components/JobsPanel.d.ts.map +1 -1
  446. package/lib/types/components/JobsPanel.js +72 -13
  447. package/lib/types/components/KernelPicker.d.ts +28 -0
  448. package/lib/types/components/KernelPicker.d.ts.map +1 -0
  449. package/lib/types/components/KernelPicker.js +37 -0
  450. package/lib/types/components/LogoV2.d.ts +7 -1
  451. package/lib/types/components/LogoV2.d.ts.map +1 -1
  452. package/lib/types/components/LogoV2.js +120 -24
  453. package/lib/types/components/Markdown.d.ts +2 -1
  454. package/lib/types/components/Markdown.d.ts.map +1 -1
  455. package/lib/types/components/Markdown.js +37 -8
  456. package/lib/types/components/MathBlock.d.ts.map +1 -1
  457. package/lib/types/components/MathBlock.js +3 -1
  458. package/lib/types/components/MermaidDiagram.d.ts.map +1 -1
  459. package/lib/types/components/MermaidDiagram.js +7 -5
  460. package/lib/types/components/MessageList.d.ts +21 -3
  461. package/lib/types/components/MessageList.d.ts.map +1 -1
  462. package/lib/types/components/MessageList.js +62 -42
  463. package/lib/types/components/ModePicker.d.ts +20 -0
  464. package/lib/types/components/ModePicker.d.ts.map +1 -0
  465. package/lib/types/components/ModePicker.js +17 -0
  466. package/lib/types/components/PromptInput.d.ts +2 -2
  467. package/lib/types/components/PromptInput.d.ts.map +1 -1
  468. package/lib/types/components/PromptInput.js +308 -55
  469. package/lib/types/components/SdkInstallWizard.d.ts +44 -0
  470. package/lib/types/components/SdkInstallWizard.d.ts.map +1 -0
  471. package/lib/types/components/SdkInstallWizard.js +18 -0
  472. package/lib/types/components/SearchBox.d.ts +7 -8
  473. package/lib/types/components/SearchBox.d.ts.map +1 -1
  474. package/lib/types/components/SearchBox.js +18 -9
  475. package/lib/types/components/SplitDiffView.d.ts.map +1 -1
  476. package/lib/types/components/SplitDiffView.js +113 -6
  477. package/lib/types/components/StarPrompt.d.ts.map +1 -1
  478. package/lib/types/components/StarPrompt.js +5 -3
  479. package/lib/types/components/StreamingMarkdown.d.ts.map +1 -1
  480. package/lib/types/components/StreamingMarkdown.js +6 -4
  481. package/lib/types/components/SubagentCard.d.ts +2 -1
  482. package/lib/types/components/SubagentCard.d.ts.map +1 -1
  483. package/lib/types/components/SubagentCard.js +25 -18
  484. package/lib/types/components/SubagentDashboard.d.ts +10 -6
  485. package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
  486. package/lib/types/components/SubagentDashboard.js +32 -21
  487. package/lib/types/components/SubagentDetailScene.d.ts +16 -1
  488. package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
  489. package/lib/types/components/SubagentDetailScene.js +196 -45
  490. package/lib/types/components/SyntaxText.d.ts.map +1 -1
  491. package/lib/types/components/SyntaxText.js +4 -1
  492. package/lib/types/components/TurnInterruptedRow.d.ts +3 -1
  493. package/lib/types/components/TurnInterruptedRow.d.ts.map +1 -1
  494. package/lib/types/components/TurnInterruptedRow.js +6 -3
  495. package/lib/types/components/TurnUsageRow.d.ts +24 -0
  496. package/lib/types/components/TurnUsageRow.d.ts.map +1 -0
  497. package/lib/types/components/TurnUsageRow.js +46 -0
  498. package/lib/types/components/WorkingSpinner.d.ts +2 -1
  499. package/lib/types/components/WorkingSpinner.d.ts.map +1 -1
  500. package/lib/types/components/WorkingSpinner.js +21 -4
  501. package/lib/types/components/approvals/ApprovalPanel.d.ts +36 -13
  502. package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
  503. package/lib/types/components/approvals/ApprovalPanel.js +173 -25
  504. package/lib/types/components/claudeGirlSprite.d.ts +18 -0
  505. package/lib/types/components/claudeGirlSprite.d.ts.map +1 -0
  506. package/lib/types/components/claudeGirlSprite.js +48 -0
  507. package/lib/types/components/design-system/ThemeProvider.d.ts.map +1 -1
  508. package/lib/types/components/design-system/ThemeProvider.js +46 -13
  509. package/lib/types/components/design-system/ThemedText.d.ts +3 -1
  510. package/lib/types/components/design-system/ThemedText.d.ts.map +1 -1
  511. package/lib/types/components/design-system/ThemedText.js +2 -2
  512. package/lib/types/components/diffPatch.d.ts +55 -0
  513. package/lib/types/components/diffPatch.d.ts.map +1 -0
  514. package/lib/types/components/diffPatch.js +142 -0
  515. package/lib/types/components/kernelCatalog.d.ts +48 -0
  516. package/lib/types/components/kernelCatalog.d.ts.map +1 -0
  517. package/lib/types/components/kernelCatalog.js +53 -0
  518. package/lib/types/components/launchpadActions.d.ts +13 -6
  519. package/lib/types/components/launchpadActions.d.ts.map +1 -1
  520. package/lib/types/components/launchpadActions.js +26 -4
  521. package/lib/types/components/launchpadParams.d.ts +101 -0
  522. package/lib/types/components/launchpadParams.d.ts.map +1 -0
  523. package/lib/types/components/launchpadParams.js +171 -0
  524. package/lib/types/components/maidPortrait.d.ts +37 -5
  525. package/lib/types/components/maidPortrait.d.ts.map +1 -1
  526. package/lib/types/components/maidPortrait.js +73 -54
  527. package/lib/types/components/messages/AgentMessageFlow.d.ts +20 -0
  528. package/lib/types/components/messages/AgentMessageFlow.d.ts.map +1 -0
  529. package/lib/types/components/messages/AgentMessageFlow.js +37 -0
  530. package/lib/types/components/messages/AssistantThinkingMessage.d.ts +6 -1
  531. package/lib/types/components/messages/AssistantThinkingMessage.d.ts.map +1 -1
  532. package/lib/types/components/messages/AssistantThinkingMessage.js +29 -5
  533. package/lib/types/components/messages/AssistantToolUseMessage.d.ts +11 -2
  534. package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
  535. package/lib/types/components/messages/AssistantToolUseMessage.js +289 -36
  536. package/lib/types/components/messages/TranscriptLeaves.d.ts +85 -0
  537. package/lib/types/components/messages/TranscriptLeaves.d.ts.map +1 -0
  538. package/lib/types/components/messages/TranscriptLeaves.js +74 -0
  539. package/lib/types/components/messages/agentTeam.d.ts +69 -0
  540. package/lib/types/components/messages/agentTeam.d.ts.map +1 -0
  541. package/lib/types/components/messages/agentTeam.js +53 -0
  542. package/lib/types/components/messages/liveOutputLines.d.ts +33 -0
  543. package/lib/types/components/messages/liveOutputLines.d.ts.map +1 -0
  544. package/lib/types/components/messages/liveOutputLines.js +100 -0
  545. package/lib/types/components/messages/subagentTranscript.d.ts +146 -0
  546. package/lib/types/components/messages/subagentTranscript.d.ts.map +1 -0
  547. package/lib/types/components/messages/subagentTranscript.js +304 -0
  548. package/lib/types/components/questions/AskUserQuestionPanel.d.ts +16 -1
  549. package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
  550. package/lib/types/components/questions/AskUserQuestionPanel.js +76 -6
  551. package/lib/types/components/questions/PlanReviewPanel.d.ts +8 -3
  552. package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
  553. package/lib/types/components/questions/PlanReviewPanel.js +11 -6
  554. package/lib/types/components/questions/ProviderModelEditor.d.ts +12 -0
  555. package/lib/types/components/questions/ProviderModelEditor.d.ts.map +1 -0
  556. package/lib/types/components/questions/ProviderModelEditor.js +266 -0
  557. package/lib/types/components/shimmer.d.ts +26 -0
  558. package/lib/types/components/shimmer.d.ts.map +1 -1
  559. package/lib/types/components/shimmer.js +26 -0
  560. package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
  561. package/lib/types/components/sidePanel/InfoPanel.js +13 -8
  562. package/lib/types/components/sidePanel/PanelBar.d.ts +0 -24
  563. package/lib/types/components/sidePanel/PanelBar.d.ts.map +1 -1
  564. package/lib/types/components/sidePanel/PanelBar.js +55 -77
  565. package/lib/types/components/sidePanel/PanelStore.d.ts +3 -1
  566. package/lib/types/components/sidePanel/PanelStore.d.ts.map +1 -1
  567. package/lib/types/components/sidePanel/PanelStore.js +8 -4
  568. package/lib/types/components/sidePanel/SidePanelColumn.d.ts +3 -10
  569. package/lib/types/components/sidePanel/SidePanelColumn.d.ts.map +1 -1
  570. package/lib/types/components/sidePanel/SidePanelColumn.js +9 -12
  571. package/lib/types/components/sidePanel/TrajectoryPanel.d.ts.map +1 -1
  572. package/lib/types/components/sidePanel/TrajectoryPanel.js +78 -14
  573. package/lib/types/components/sidePanel/agentViewStore.d.ts +20 -0
  574. package/lib/types/components/sidePanel/agentViewStore.d.ts.map +1 -0
  575. package/lib/types/components/sidePanel/agentViewStore.js +26 -0
  576. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +50 -0
  577. package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -0
  578. package/lib/types/components/sidePanel/btw/BtwComposer.js +45 -0
  579. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts +13 -0
  580. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -0
  581. package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +147 -0
  582. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +14 -0
  583. package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -0
  584. package/lib/types/components/sidePanel/btw/BtwThreadScene.js +131 -0
  585. package/lib/types/components/sidePanel/btw/BtwThreadView.d.ts +30 -0
  586. package/lib/types/components/sidePanel/btw/BtwThreadView.d.ts.map +1 -0
  587. package/lib/types/components/sidePanel/btw/BtwThreadView.js +87 -0
  588. package/lib/types/components/sidePanel/btw/threads.d.ts +111 -0
  589. package/lib/types/components/sidePanel/btw/threads.d.ts.map +1 -0
  590. package/lib/types/components/sidePanel/btw/threads.js +302 -0
  591. package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
  592. package/lib/types/components/sidePanel/builtinPanels.js +70 -30
  593. package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts +4 -46
  594. package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
  595. package/lib/types/components/sidePanel/companion/CompanionPanel.js +19 -55
  596. package/lib/types/components/sidePanel/companion/mood.d.ts +32 -0
  597. package/lib/types/components/sidePanel/companion/mood.d.ts.map +1 -1
  598. package/lib/types/components/sidePanel/companion/mood.js +44 -0
  599. package/lib/types/components/sidePanel/companion/skins.d.ts +34 -0
  600. package/lib/types/components/sidePanel/companion/skins.d.ts.map +1 -1
  601. package/lib/types/components/sidePanel/companion/skins.js +203 -29
  602. package/lib/types/components/splashFonts.d.ts +17 -9
  603. package/lib/types/components/splashFonts.d.ts.map +1 -1
  604. package/lib/types/components/splashFonts.js +119 -15
  605. package/lib/types/components/splashLayout.d.ts.map +1 -1
  606. package/lib/types/components/splashLayout.js +3 -1
  607. package/lib/types/components/subagentDetailMemory.d.ts +17 -0
  608. package/lib/types/components/subagentDetailMemory.d.ts.map +1 -0
  609. package/lib/types/components/subagentDetailMemory.js +28 -0
  610. package/lib/types/components/trajectory/Inspector.d.ts.map +1 -1
  611. package/lib/types/components/trajectory/Inspector.js +9 -0
  612. package/lib/types/components/trajectory/Ledger.d.ts.map +1 -1
  613. package/lib/types/components/trajectory/Ledger.js +7 -1
  614. package/lib/types/components/trajectory/scope.d.ts +64 -0
  615. package/lib/types/components/trajectory/scope.d.ts.map +1 -0
  616. package/lib/types/components/trajectory/scope.js +88 -0
  617. package/lib/types/components/trajectory/useTrajectoryScope.d.ts +42 -0
  618. package/lib/types/components/trajectory/useTrajectoryScope.d.ts.map +1 -0
  619. package/lib/types/components/trajectory/useTrajectoryScope.js +86 -0
  620. package/lib/types/customTheme.d.ts +4 -6
  621. package/lib/types/customTheme.d.ts.map +1 -1
  622. package/lib/types/customTheme.js +6 -8
  623. package/lib/types/dsh-adapter/approvals.d.ts +18 -5
  624. package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
  625. package/lib/types/dsh-adapter/approvals.js +17 -4
  626. package/lib/types/dsh-adapter/backend/session.d.ts +64 -0
  627. package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -0
  628. package/lib/types/dsh-adapter/backend/session.js +291 -0
  629. package/lib/types/dsh-adapter/backend/translate.d.ts +58 -0
  630. package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -0
  631. package/lib/types/dsh-adapter/backend/translate.js +467 -0
  632. package/lib/types/dsh-adapter/backends.d.ts +49 -0
  633. package/lib/types/dsh-adapter/backends.d.ts.map +1 -0
  634. package/lib/types/dsh-adapter/backends.js +124 -0
  635. package/lib/types/dsh-adapter/channel/action-readiness.d.ts +16 -0
  636. package/lib/types/dsh-adapter/channel/action-readiness.d.ts.map +1 -1
  637. package/lib/types/dsh-adapter/channel/action-readiness.js +109 -0
  638. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +2 -2
  639. package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
  640. package/lib/types/dsh-adapter/channel/background-action.d.ts +2 -2
  641. package/lib/types/dsh-adapter/channel/background-action.d.ts.map +1 -1
  642. package/lib/types/dsh-adapter/channel/background-action.js +7 -5
  643. package/lib/types/dsh-adapter/channel/binding-events.d.ts +19 -9
  644. package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
  645. package/lib/types/dsh-adapter/channel/binding-events.js +58 -135
  646. package/lib/types/dsh-adapter/channel/binding.d.ts +61 -14
  647. package/lib/types/dsh-adapter/channel/binding.d.ts.map +1 -1
  648. package/lib/types/dsh-adapter/channel/binding.js +102 -35
  649. package/lib/types/dsh-adapter/channel/command-completions.d.ts +3 -0
  650. package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
  651. package/lib/types/dsh-adapter/channel/command-completions.js +33 -4
  652. package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -1
  653. package/lib/types/dsh-adapter/channel/compaction.js +3 -2
  654. package/lib/types/dsh-adapter/channel/composer-images.d.ts +5 -0
  655. package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
  656. package/lib/types/dsh-adapter/channel/composer-images.js +4 -3
  657. package/lib/types/dsh-adapter/channel/core/actions.d.ts +39 -0
  658. package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -0
  659. package/lib/types/dsh-adapter/channel/core/actions.js +152 -0
  660. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +145 -0
  661. package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -0
  662. package/lib/types/dsh-adapter/channel/core/binding-feed.js +289 -0
  663. package/lib/types/dsh-adapter/channel/core/compose.d.ts +217 -0
  664. package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -0
  665. package/lib/types/dsh-adapter/channel/core/compose.js +938 -0
  666. package/lib/types/dsh-adapter/channel/core/files.d.ts +57 -0
  667. package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -0
  668. package/lib/types/dsh-adapter/channel/core/files.js +45 -0
  669. package/lib/types/dsh-adapter/channel/core/host.d.ts +55 -0
  670. package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -0
  671. package/lib/types/dsh-adapter/channel/core/host.js +116 -0
  672. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +46 -0
  673. package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -0
  674. package/lib/types/dsh-adapter/channel/core/local-actions.js +117 -0
  675. package/lib/types/dsh-adapter/channel/core/local-images.d.ts +20 -0
  676. package/lib/types/dsh-adapter/channel/core/local-images.d.ts.map +1 -0
  677. package/lib/types/dsh-adapter/channel/core/local-images.js +147 -0
  678. package/lib/types/dsh-adapter/channel/core/reports.d.ts +12 -0
  679. package/lib/types/dsh-adapter/channel/core/reports.d.ts.map +1 -0
  680. package/lib/types/dsh-adapter/channel/core/reports.js +77 -0
  681. package/lib/types/dsh-adapter/channel/core/session-controls.d.ts +39 -0
  682. package/lib/types/dsh-adapter/channel/core/session-controls.d.ts.map +1 -0
  683. package/lib/types/dsh-adapter/channel/core/session-controls.js +219 -0
  684. package/lib/types/dsh-adapter/channel/core/session-switch.d.ts +174 -0
  685. package/lib/types/dsh-adapter/channel/core/session-switch.d.ts.map +1 -0
  686. package/lib/types/dsh-adapter/channel/core/session-switch.js +390 -0
  687. package/lib/types/dsh-adapter/channel/core/sessions.d.ts +40 -0
  688. package/lib/types/dsh-adapter/channel/core/sessions.d.ts.map +1 -0
  689. package/lib/types/dsh-adapter/channel/core/sessions.js +268 -0
  690. package/lib/types/dsh-adapter/channel/decisions.d.ts +4 -3
  691. package/lib/types/dsh-adapter/channel/decisions.d.ts.map +1 -1
  692. package/lib/types/dsh-adapter/channel/decisions.js +4 -4
  693. package/lib/types/dsh-adapter/channel/emitter.d.ts +15 -2
  694. package/lib/types/dsh-adapter/channel/emitter.d.ts.map +1 -1
  695. package/lib/types/dsh-adapter/channel/emitter.js +5 -3
  696. package/lib/types/dsh-adapter/channel/extensions.d.ts +36 -0
  697. package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -0
  698. package/lib/types/dsh-adapter/channel/extensions.js +714 -0
  699. package/lib/types/dsh-adapter/channel/ide-selection.d.ts +1 -10
  700. package/lib/types/dsh-adapter/channel/ide-selection.d.ts.map +1 -1
  701. package/lib/types/dsh-adapter/channel/ide-selection.js +4 -46
  702. package/lib/types/dsh-adapter/channel/input-actions.d.ts +27 -4
  703. package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
  704. package/lib/types/dsh-adapter/channel/input-actions.js +240 -21
  705. package/lib/types/dsh-adapter/channel/input-delivery.d.ts +21 -5
  706. package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
  707. package/lib/types/dsh-adapter/channel/input-delivery.js +65 -27
  708. package/lib/types/dsh-adapter/channel/local-actions.d.ts +10 -32
  709. package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
  710. package/lib/types/dsh-adapter/channel/local-actions.js +10 -78
  711. package/lib/types/dsh-adapter/channel/local-fs.d.ts +3 -0
  712. package/lib/types/dsh-adapter/channel/local-fs.d.ts.map +1 -0
  713. package/lib/types/dsh-adapter/channel/local-fs.js +46 -0
  714. package/lib/types/dsh-adapter/channel/mode-actions.d.ts +3 -3
  715. package/lib/types/dsh-adapter/channel/mode-actions.d.ts.map +1 -1
  716. package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts +2 -2
  717. package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts.map +1 -1
  718. package/lib/types/dsh-adapter/channel/model-actions.d.ts +3 -3
  719. package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
  720. package/lib/types/dsh-adapter/channel/model-actions.js +38 -5
  721. package/lib/types/dsh-adapter/channel/model-switch.d.ts +2 -2
  722. package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
  723. package/lib/types/dsh-adapter/channel/model-switch.js +9 -6
  724. package/lib/types/dsh-adapter/channel/preferences.d.ts +1 -1
  725. package/lib/types/dsh-adapter/channel/preferences.d.ts.map +1 -1
  726. package/lib/types/dsh-adapter/channel/preferences.js +16 -0
  727. package/lib/types/dsh-adapter/channel/projection.d.ts +16 -13
  728. package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -1
  729. package/lib/types/dsh-adapter/channel/projection.js +38 -1143
  730. package/lib/types/dsh-adapter/channel/question-record.d.ts +3 -75
  731. package/lib/types/dsh-adapter/channel/question-record.d.ts.map +1 -1
  732. package/lib/types/dsh-adapter/channel/question-record.js +3 -107
  733. package/lib/types/dsh-adapter/channel/session-activity.d.ts +9 -0
  734. package/lib/types/dsh-adapter/channel/session-activity.d.ts.map +1 -0
  735. package/lib/types/dsh-adapter/channel/session-activity.js +42 -0
  736. package/lib/types/dsh-adapter/channel/session-adoption.d.ts +4 -4
  737. package/lib/types/dsh-adapter/channel/session-adoption.d.ts.map +1 -1
  738. package/lib/types/dsh-adapter/channel/session-adoption.js +3 -1
  739. package/lib/types/dsh-adapter/channel/session-fork.d.ts +1 -1
  740. package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
  741. package/lib/types/dsh-adapter/channel/session-fork.js +2 -1
  742. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +7 -3
  743. package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
  744. package/lib/types/dsh-adapter/channel/session-live-adoption.js +1 -1
  745. package/lib/types/dsh-adapter/channel/session-metadata.d.ts +2 -9
  746. package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
  747. package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
  748. package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
  749. package/lib/types/dsh-adapter/channel/session-reset.js +4 -0
  750. package/lib/types/dsh-adapter/channel/session-resume.d.ts +5 -10
  751. package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
  752. package/lib/types/dsh-adapter/channel/session-resume.js +74 -113
  753. package/lib/types/dsh-adapter/channel/session-rewind.d.ts +4 -4
  754. package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
  755. package/lib/types/dsh-adapter/channel/session-rewind.js +7 -6
  756. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +4 -4
  757. package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
  758. package/lib/types/dsh-adapter/channel/session-tree-actions.js +8 -7
  759. package/lib/types/dsh-adapter/channel/settings-host.d.ts +1 -1
  760. package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
  761. package/lib/types/dsh-adapter/channel/settings-host.js +8 -0
  762. package/lib/types/dsh-adapter/channel/skill-catalog.d.ts +5 -1
  763. package/lib/types/dsh-adapter/channel/skill-catalog.d.ts.map +1 -1
  764. package/lib/types/dsh-adapter/channel/skill-catalog.js +2 -2
  765. package/lib/types/dsh-adapter/channel/state.d.ts +72 -1
  766. package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
  767. package/lib/types/dsh-adapter/channel/state.js +7 -3
  768. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +58 -3
  769. package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
  770. package/lib/types/dsh-adapter/channel/subagent-projection.js +153 -9
  771. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +114 -0
  772. package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -0
  773. package/lib/types/dsh-adapter/channel/subagent-transcript.js +279 -0
  774. package/lib/types/dsh-adapter/channel/transcript.d.ts +7 -15
  775. package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
  776. package/lib/types/dsh-adapter/channel/transcript.js +17 -21
  777. package/lib/types/dsh-adapter/channel/types.d.ts +16 -7
  778. package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
  779. package/lib/types/dsh-adapter/channel/usage.d.ts +3 -23
  780. package/lib/types/dsh-adapter/channel/usage.d.ts.map +1 -1
  781. package/lib/types/dsh-adapter/channel/usage.js +5 -111
  782. package/lib/types/dsh-adapter/channel/workspace-actions.d.ts.map +1 -1
  783. package/lib/types/dsh-adapter/channel/workspace-actions.js +2 -1
  784. package/lib/types/dsh-adapter/channel.d.ts +17 -8
  785. package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
  786. package/lib/types/dsh-adapter/channel.js +24 -1059
  787. package/lib/types/dsh-adapter/context-occupancy.d.ts +6 -1
  788. package/lib/types/dsh-adapter/context-occupancy.d.ts.map +1 -1
  789. package/lib/types/dsh-adapter/context-occupancy.js +6 -1
  790. package/lib/types/dsh-adapter/decision-guard.d.ts +24 -0
  791. package/lib/types/dsh-adapter/decision-guard.d.ts.map +1 -1
  792. package/lib/types/dsh-adapter/decision-guard.js +44 -0
  793. package/lib/types/dsh-adapter/extension-events.d.ts +4 -1
  794. package/lib/types/dsh-adapter/extension-events.d.ts.map +1 -1
  795. package/lib/types/dsh-adapter/extension-events.js +22 -10
  796. package/lib/types/dsh-adapter/index.d.ts +41 -3
  797. package/lib/types/dsh-adapter/index.d.ts.map +1 -1
  798. package/lib/types/dsh-adapter/index.js +28 -1
  799. package/lib/types/dsh-adapter/jobs.d.ts +5 -3
  800. package/lib/types/dsh-adapter/jobs.d.ts.map +1 -1
  801. package/lib/types/dsh-adapter/jobs.js +53 -14
  802. package/lib/types/dsh-adapter/migrate/parse/jsonl.d.ts +1 -16
  803. package/lib/types/dsh-adapter/migrate/parse/jsonl.d.ts.map +1 -1
  804. package/lib/types/dsh-adapter/migrate/parse/jsonl.js +3 -29
  805. package/lib/types/dsh-adapter/oauth-credential-source.d.ts +34 -0
  806. package/lib/types/dsh-adapter/oauth-credential-source.d.ts.map +1 -0
  807. package/lib/types/dsh-adapter/oauth-credential-source.js +66 -0
  808. package/lib/types/dsh-adapter/plugin.d.ts +38 -2
  809. package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
  810. package/lib/types/dsh-adapter/plugin.js +546 -110
  811. package/lib/types/dsh-adapter/provider-model-capabilities.d.ts +10 -0
  812. package/lib/types/dsh-adapter/provider-model-capabilities.d.ts.map +1 -0
  813. package/lib/types/dsh-adapter/provider-model-capabilities.js +80 -0
  814. package/lib/types/dsh-adapter/providerWizard.d.ts +8 -2
  815. package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
  816. package/lib/types/dsh-adapter/providerWizard.js +118 -52
  817. package/lib/types/dsh-adapter/questions.d.ts +29 -124
  818. package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
  819. package/lib/types/dsh-adapter/questions.js +33 -267
  820. package/lib/types/dsh-adapter/recap.d.ts +3 -15
  821. package/lib/types/dsh-adapter/recap.d.ts.map +1 -1
  822. package/lib/types/dsh-adapter/recap.js +3 -46
  823. package/lib/types/dsh-adapter/sanitize.d.ts +4 -44
  824. package/lib/types/dsh-adapter/sanitize.d.ts.map +1 -1
  825. package/lib/types/dsh-adapter/sanitize.js +4 -84
  826. package/lib/types/dsh-adapter/session-mount-heartbeat.d.ts +3 -1
  827. package/lib/types/dsh-adapter/session-mount-heartbeat.d.ts.map +1 -1
  828. package/lib/types/dsh-adapter/session-mount-heartbeat.js +4 -2
  829. package/lib/types/dsh-adapter/sessions/digest.d.ts +18 -3
  830. package/lib/types/dsh-adapter/sessions/digest.d.ts.map +1 -1
  831. package/lib/types/dsh-adapter/sessions/digest.js +60 -27
  832. package/lib/types/dsh-adapter/sessions/list.d.ts.map +1 -1
  833. package/lib/types/dsh-adapter/sessions/list.js +6 -4
  834. package/lib/types/dsh-adapter/sessions/recovery.d.ts +2 -2
  835. package/lib/types/dsh-adapter/sessions/recovery.d.ts.map +1 -1
  836. package/lib/types/dsh-adapter/sessions/recovery.js +23 -14
  837. package/lib/types/dsh-adapter/sessions/store.d.ts +2 -0
  838. package/lib/types/dsh-adapter/sessions/store.d.ts.map +1 -1
  839. package/lib/types/dsh-adapter/sessions/store.js +1 -0
  840. package/lib/types/dsh-adapter/sessions/types.d.ts +2 -0
  841. package/lib/types/dsh-adapter/sessions/types.d.ts.map +1 -1
  842. package/lib/types/dsh-adapter/sideQuestion.d.ts.map +1 -1
  843. package/lib/types/dsh-adapter/sideQuestion.js +3 -13
  844. package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
  845. package/lib/types/dsh-adapter/subagents.js +7 -0
  846. package/lib/types/dsh-adapter/themes.d.ts +1 -1
  847. package/lib/types/dsh-adapter/themes.d.ts.map +1 -1
  848. package/lib/types/dsh-adapter/trajectory/agent-source.d.ts +84 -0
  849. package/lib/types/dsh-adapter/trajectory/agent-source.d.ts.map +1 -0
  850. package/lib/types/dsh-adapter/trajectory/agent-source.js +601 -0
  851. package/lib/types/dsh-adapter/trajectory/guards.d.ts +31 -1
  852. package/lib/types/dsh-adapter/trajectory/guards.d.ts.map +1 -1
  853. package/lib/types/dsh-adapter/trajectory/guards.js +28 -0
  854. package/lib/types/dsh-adapter/trajectory/index.d.ts +3 -1
  855. package/lib/types/dsh-adapter/trajectory/index.d.ts.map +1 -1
  856. package/lib/types/dsh-adapter/trajectory/index.js +1 -0
  857. package/lib/types/dsh-adapter/trajectory/inspect.d.ts +7 -0
  858. package/lib/types/dsh-adapter/trajectory/inspect.d.ts.map +1 -1
  859. package/lib/types/dsh-adapter/trajectory/inspect.js +70 -2
  860. package/lib/types/dsh-adapter/trajectory/projection.d.ts +4 -0
  861. package/lib/types/dsh-adapter/trajectory/projection.d.ts.map +1 -1
  862. package/lib/types/dsh-adapter/trajectory/projection.js +36 -0
  863. package/lib/types/dsh-adapter/trajectory/types.d.ts +13 -0
  864. package/lib/types/dsh-adapter/trajectory/types.d.ts.map +1 -1
  865. package/lib/types/effortPrefs.d.ts +7 -0
  866. package/lib/types/effortPrefs.d.ts.map +1 -1
  867. package/lib/types/effortPrefs.js +11 -2
  868. package/lib/types/handoffAck.d.ts +57 -0
  869. package/lib/types/handoffAck.d.ts.map +1 -0
  870. package/lib/types/handoffAck.js +154 -0
  871. package/lib/types/handoffEvents.d.ts +52 -0
  872. package/lib/types/handoffEvents.d.ts.map +1 -0
  873. package/lib/types/handoffEvents.js +128 -0
  874. package/lib/types/i18n.d.ts +3189 -68
  875. package/lib/types/i18n.d.ts.map +1 -1
  876. package/lib/types/i18n.js +855 -9
  877. package/lib/types/ink/colorize.d.ts.map +1 -1
  878. package/lib/types/ink/colorize.js +8 -2
  879. package/lib/types/ink/components/AlternateScreen.d.ts +12 -1
  880. package/lib/types/ink/components/AlternateScreen.d.ts.map +1 -1
  881. package/lib/types/ink/components/AlternateScreen.js +25 -4
  882. package/lib/types/ink/components/App.d.ts +5 -1
  883. package/lib/types/ink/components/App.d.ts.map +1 -1
  884. package/lib/types/ink/components/App.js +52 -5
  885. package/lib/types/ink/components/Image.d.ts +8 -1
  886. package/lib/types/ink/components/Image.d.ts.map +1 -1
  887. package/lib/types/ink/components/Image.js +2 -2
  888. package/lib/types/ink/components/Text.d.ts +8 -1
  889. package/lib/types/ink/components/Text.d.ts.map +1 -1
  890. package/lib/types/ink/components/Text.js +11 -1
  891. package/lib/types/ink/dom.d.ts.map +1 -1
  892. package/lib/types/ink/dom.js +75 -3
  893. package/lib/types/ink/hooks/use-input.d.ts.map +1 -1
  894. package/lib/types/ink/hooks/use-input.js +9 -4
  895. package/lib/types/ink/ink.d.ts.map +1 -1
  896. package/lib/types/ink/ink.js +8 -2
  897. package/lib/types/ink/kitty-graphics.d.ts +7 -2
  898. package/lib/types/ink/kitty-graphics.d.ts.map +1 -1
  899. package/lib/types/ink/kitty-graphics.js +15 -7
  900. package/lib/types/ink/node-cache.d.ts +15 -1
  901. package/lib/types/ink/node-cache.d.ts.map +1 -1
  902. package/lib/types/ink/node-cache.js +4 -1
  903. package/lib/types/ink/output.d.ts.map +1 -1
  904. package/lib/types/ink/output.js +2 -0
  905. package/lib/types/ink/parse-keypress.d.ts +13 -0
  906. package/lib/types/ink/parse-keypress.d.ts.map +1 -1
  907. package/lib/types/ink/parse-keypress.js +438 -19
  908. package/lib/types/ink/reconciler.d.ts.map +1 -1
  909. package/lib/types/ink/reconciler.js +9 -0
  910. package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
  911. package/lib/types/ink/render-node-to-output.js +200 -4
  912. package/lib/types/ink/render-stats.d.ts +35 -0
  913. package/lib/types/ink/render-stats.d.ts.map +1 -0
  914. package/lib/types/ink/render-stats.js +53 -0
  915. package/lib/types/ink/sixel-codec.d.ts +11 -1
  916. package/lib/types/ink/sixel-codec.d.ts.map +1 -1
  917. package/lib/types/ink/sixel-codec.js +10 -3
  918. package/lib/types/ink/sixel-graphics.js +2 -2
  919. package/lib/types/ink/styles.d.ts +46 -0
  920. package/lib/types/ink/styles.d.ts.map +1 -1
  921. package/lib/types/ink/terminal-image.d.ts +7 -0
  922. package/lib/types/ink/terminal-image.d.ts.map +1 -1
  923. package/lib/types/ink/terminal-querier.d.ts +1 -1
  924. package/lib/types/ink/terminal-querier.js +4 -4
  925. package/lib/types/ink/text-decoration.d.ts +49 -0
  926. package/lib/types/ink/text-decoration.d.ts.map +1 -0
  927. package/lib/types/ink/text-decoration.js +235 -0
  928. package/lib/types/ink/update-overflow-guard.d.ts +9 -0
  929. package/lib/types/ink/update-overflow-guard.d.ts.map +1 -1
  930. package/lib/types/ink/update-overflow-guard.js +41 -0
  931. package/lib/types/ink/wrap-text.d.ts.map +1 -1
  932. package/lib/types/ink/wrap-text.js +5 -1
  933. package/lib/types/kernelPrefs.d.ts +51 -0
  934. package/lib/types/kernelPrefs.d.ts.map +1 -0
  935. package/lib/types/kernelPrefs.js +126 -0
  936. package/lib/types/modelRecents.d.ts +10 -2
  937. package/lib/types/modelRecents.d.ts.map +1 -1
  938. package/lib/types/modelRecents.js +20 -7
  939. package/lib/types/screens/AgentTranscriptScene.d.ts +42 -0
  940. package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -0
  941. package/lib/types/screens/AgentTranscriptScene.js +269 -0
  942. package/lib/types/screens/Chat.d.ts +45 -7
  943. package/lib/types/screens/Chat.d.ts.map +1 -1
  944. package/lib/types/screens/Chat.js +625 -113
  945. package/lib/types/screens/Launchpad.d.ts +24 -7
  946. package/lib/types/screens/Launchpad.d.ts.map +1 -1
  947. package/lib/types/screens/Launchpad.js +147 -28
  948. package/lib/types/screens/SessionSupervisor.d.ts +3 -3
  949. package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
  950. package/lib/types/screens/SessionSupervisor.js +69 -5
  951. package/lib/types/screens/Settings.d.ts.map +1 -1
  952. package/lib/types/screens/Settings.js +211 -7
  953. package/lib/types/screens/StatusLine.d.ts +40 -1
  954. package/lib/types/screens/StatusLine.d.ts.map +1 -1
  955. package/lib/types/screens/StatusLine.js +131 -19
  956. package/lib/types/screens/StatusMetrics.d.ts +53 -17
  957. package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
  958. package/lib/types/screens/StatusMetrics.js +141 -30
  959. package/lib/types/screens/TrajectoryScene.d.ts.map +1 -1
  960. package/lib/types/screens/TrajectoryScene.js +74 -12
  961. package/lib/types/screens/chat/backendCommands.d.ts +37 -0
  962. package/lib/types/screens/chat/backendCommands.d.ts.map +1 -0
  963. package/lib/types/screens/chat/backendCommands.js +51 -0
  964. package/lib/types/screens/chat/useBackendChannels.d.ts +20 -0
  965. package/lib/types/screens/chat/useBackendChannels.d.ts.map +1 -0
  966. package/lib/types/screens/chat/useBackendChannels.js +117 -0
  967. package/lib/types/screens/chat/useKernelPicker.d.ts +23 -0
  968. package/lib/types/screens/chat/useKernelPicker.d.ts.map +1 -0
  969. package/lib/types/screens/chat/useKernelPicker.js +72 -0
  970. package/lib/types/screens/chatOverlay.d.ts +32 -2
  971. package/lib/types/screens/chatOverlay.d.ts.map +1 -1
  972. package/lib/types/screens/chatOverlay.js +9 -0
  973. package/lib/types/screens/sessionSupervisor/useForeignSessions.d.ts.map +1 -1
  974. package/lib/types/screens/sessionSupervisor/useForeignSessions.js +5 -1
  975. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +14 -0
  976. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
  977. package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +97 -22
  978. package/lib/types/sessionHistory.d.ts +18 -1
  979. package/lib/types/sessionHistory.d.ts.map +1 -1
  980. package/lib/types/sessionHistory.js +46 -4
  981. package/lib/types/sessionPins.d.ts +7 -0
  982. package/lib/types/sessionPins.d.ts.map +1 -1
  983. package/lib/types/sessionPins.js +9 -0
  984. package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
  985. package/lib/types/sessions/resumeFailure.js +2 -1
  986. package/lib/types/settings/definitions.d.ts +74 -0
  987. package/lib/types/settings/definitions.d.ts.map +1 -1
  988. package/lib/types/settings/definitions.js +50 -4
  989. package/lib/types/terminal-utils/hyperlink.d.ts +2 -2
  990. package/lib/types/terminal-utils/hyperlink.d.ts.map +1 -1
  991. package/lib/types/terminal-utils/hyperlink.js +21 -4
  992. package/lib/types/terminal-utils/markdown.d.ts +34 -6
  993. package/lib/types/terminal-utils/markdown.d.ts.map +1 -1
  994. package/lib/types/terminal-utils/markdown.js +257 -66
  995. package/lib/types/theme.d.ts +49 -8
  996. package/lib/types/theme.d.ts.map +1 -1
  997. package/lib/types/theme.js +514 -18
  998. package/lib/types/tips.js +2 -2
  999. package/lib/types/trajectory/effortIgnition.d.ts +25 -7
  1000. package/lib/types/trajectory/effortIgnition.d.ts.map +1 -1
  1001. package/lib/types/trajectory/effortIgnition.js +106 -34
  1002. package/lib/types/trajectory/window.d.ts +26 -0
  1003. package/lib/types/trajectory/window.d.ts.map +1 -0
  1004. package/lib/types/trajectory/window.js +27 -0
  1005. package/lib/types/tuiDisplayPrefs.d.ts +38 -1
  1006. package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
  1007. package/lib/types/tuiDisplayPrefs.js +45 -1
  1008. package/lib/types/update.d.ts +88 -3
  1009. package/lib/types/update.d.ts.map +1 -1
  1010. package/lib/types/update.js +285 -18
  1011. package/lib/types/utils/crashDetail.d.ts +56 -0
  1012. package/lib/types/utils/crashDetail.d.ts.map +1 -0
  1013. package/lib/types/utils/crashDetail.js +175 -0
  1014. package/lib/types/utils/imageResize.d.ts +9 -23
  1015. package/lib/types/utils/imageResize.d.ts.map +1 -1
  1016. package/lib/types/utils/imageResize.js +24 -20
  1017. package/lib/types/utils/inputPaste.d.ts +9 -8
  1018. package/lib/types/utils/inputPaste.d.ts.map +1 -1
  1019. package/lib/types/utils/inputPaste.js +53 -16
  1020. package/lib/types/utils/jsonl.d.ts +24 -0
  1021. package/lib/types/utils/jsonl.d.ts.map +1 -0
  1022. package/lib/types/utils/jsonl.js +36 -0
  1023. package/package.json +18 -2
@@ -6,7 +6,7 @@
6
6
 
7
7
  | Key | Behavior |
8
8
  | --- | --- |
9
- | `Enter` | Send while idle; steer text into the running turn at its next step boundary; confirm an open menu |
9
+ | `Enter` | Send while idle; run a known `/` command (with or without arguments — while a turn runs its own gate decides); steer the remaining text into the running turn at its next step boundary; confirm an open menu |
10
10
  | `Tab` | Complete a `/` command or `@` file; while the model is working, queue non-empty input as a post-turn follow-up |
11
11
  | `Ctrl+Enter` | Interrupt the running turn and process the input immediately |
12
12
  | `Shift+Enter` / `Ctrl+J` | Insert a newline at the caret; `Ctrl+J` (LF) is the fallback when the terminal cannot report the Shift modifier; macOS Terminal.app uses `Option+Enter` |
@@ -16,11 +16,11 @@
16
16
  | `Ctrl+V` / `Alt+V` | Insert clipboard text or files; images are sent as durable attachments. Use `Alt+V` when the terminal intercepts `Ctrl+V` |
17
17
  | `Ctrl+G` | Edit the current input in an external editor (`$VISUAL` → `$EDITOR`); saving and quitting fills it back, `:cq`/non-zero exit keeps the draft; with neither variable set the TUI asks you to configure one (no `vi` fallback) |
18
18
  | `Ctrl+Shift+E` | Expand the fullscreen draft editor (or click the `⛶` affordance at the end of the input row): line numbers + current-line highlight + live line/char stats<br>`Enter` inserts a newline, `Ctrl+Enter` or the Send button sends, `Esc` or the Collapse button keeps the draft and returns<br>wheel-scrolls freely; click/drag/double-click selection work as in the inline prompt; remappable via `/settings` |
19
- | `Esc` | Ladder: close help → close the image preview → close the command menu → close the file menu (only the current `@` token)<br>→ **with a selection in the prompt input: only clear it (text untouched)** → interrupt the turn and redeliver pending messages → clear non-empty input → double-tap on empty input = rewind<br>in fullscreen, an active mouse selection is cleared first (not copied) |
19
+ | `Esc` | Ladder: close help → close the image preview → close the command menu → close the file menu (only the current `@` token)<br>→ **with a selection in the prompt input: only clear it (text untouched)** → with the held-queue selector open: only leave the selector → interrupt the turn and hold the queued messages (no automatic re-send, see "Message delivery semantics") → clear non-empty input → double-tap on empty input = rewind<br>in fullscreen, an active mouse selection is cleared first (not copied) |
20
20
  | `Ctrl+Z` | Undo the prompt draft's last word-level edit (text, caret and images together). Draft-only: a submit, a history recall (`Ctrl+R`/`↑`) or a session switch ends the history; it is NOT the message/conversation rewind behind `Esc Esc`. Remappable via `/settings` |
21
21
  | `Esc` / `Ctrl+C` / `Enter` while an image preview is open | Close the preview and restore the surface underneath; other keys are not passed through |
22
22
  | `Left` / `Right` in the image modal | Previous / next image, no wrapping; caret peeks keep arrows with the prompt |
23
- | `←` (empty input) | Background this session and open the session-management screen (same as `/bg`) |
23
+ | `←` (empty input) | Open the session manager (same as `/bg`); DSH backgrounds the current session first, while Claude/Codex keep it attached |
24
24
  | `Ctrl+C` | Interrupt while working; press again while the interrupt is still settling to force-exit<br>clear non-empty idle input; **while idle with a selection in the prompt input, copy it to the clipboard (selection kept for editing)**; press twice on empty input to exit |
25
25
  | `Ctrl+D` | Same ladder as `Ctrl+C`: interrupt while working (press again to force-exit if the interrupt stalls); press twice while idle to exit |
26
26
  | `Ctrl+O` | Toggle transcript/verbose detail, including full reasoning and tool arguments/output; also the escape hatch for the **long-line fold** (a single line over 1000 chars is clipped to 1000 with a `… N chars folded` marker — see the user guide §5). Clicking the folded row (or the tool card face) toggles it too |
@@ -79,9 +79,11 @@ results back to the chat screen and add no new behavior.
79
79
  - **Launchpad**: printable input goes into the input box (the prefix turns from `❯` to `⌘` when the line
80
80
  starts with `/`), `Backspace`/`Delete`/`←`/`→`/`Home`/`End` edit it; the caret is an **inverse block
81
81
  sitting on the current character** (inverse on that one character; an inverse blank cell at end of
82
- line), blinking is a pure style toggle (inverse ↔ regular, ~550ms per phase) and never occupies an
83
- extra cell or eats a character; `Alt+R` continues the most recent session (= the first entry row slot,
84
- bound only on this screen, no-op when there is nothing to continue, remappable in `/settings`);
82
+ line — a theme that declares the `cursor` key paints a solid fill with a contrasting glyph instead,
83
+ see [Themes](themes.en.md)), blinking is a pure style toggle (inverse ↔ regular, ~550ms per phase)
84
+ and never occupies an extra cell or eats a character; `Alt+R` continues the most recent session
85
+ (= the first entry row slot, bound only on this screen, no-op when there is nothing to continue,
86
+ remappable in `/settings`);
85
87
  a leading `/` opens the
86
88
  **command palette** (the same data source and component as the chat composer: `↑`/`↓` move the selection,
87
89
  `Enter`/`Tab`/click **run** the selected command, `Esc` dismisses only the palette and keeps the draft);
@@ -98,9 +100,18 @@ results back to the chat screen and add no new behavior.
98
100
  (`Esc` closes it back onto the launchpad), the picked value updates the row in place and the typed draft
99
101
  is untouched; clicking inside the picker selects, **clicking elsewhere closes it and clicking another
100
102
  segment switches to that picker**.
101
- - **Entry row (v7, four slots)**: `Continue "…"` (Alt+R; the slot is absent when there is nothing to
102
- continue) · `Sessions & workspaces` (`/home` — history and workspaces merged into one entry) ·
103
- `Settings` (`/settings`) · a **conditional slot** (priority: background jobs running → `Background
103
+ All four segments **stay on the row**: they are drawn verbatim
104
+ when they fit; when they do not, only the **over-long segments** are truncated at the tail with a
105
+ trailing `…` (the permission segment is **never truncated**), and hovering a truncated segment
106
+ shows its **full name** in a card after ~600ms (mouse tracking is always on for the launchpad
107
+ screen, inline mode included); only when the **full permission name does not fit the budget** —
108
+ widening the terminal past 76 columns changes nothing, while a narrower terminal or a longer
109
+ permission name triggers it earlier — does the row fall back to dropping **whole segments from
110
+ the tail** (permission → mode → effort → model), which also drops them from the focus ring.
111
+ - **Entry row**: `Continue "…"` (Alt+R; the slot is absent when
112
+ there is nothing to continue) · `Sessions & workspaces` (`/home` — history and workspaces merged into
113
+ one entry) · `Settings` (`/settings`) · `Kernel · <current kernel>` (`/kernel`, opens the kernel
114
+ picker, see the commands section) · a **conditional slot** (priority: background jobs running → `Background
104
115
  jobs`; update detected → `Update available`; usage milestone reached and never starred → `Feed us a
105
116
  star`; fallback `Help`). Full screens opened from the launchpad (sessions & workspaces / settings /
106
117
  background jobs / the family tree / the wizard) render **above the launchpad** — `Esc` closes them
@@ -110,15 +121,18 @@ results back to the chat screen and add no new behavior.
110
121
  glyphs never bleed through), yet no background color is emitted (no white block; Kitty splash
111
122
  art still shows through the terminal-default cells; the chat page's pickers are unaffected).
112
123
  - **Tips line**: click to rotate (three tips cycle; the first-run tip has top priority and never rotates);
113
- keyboard path = focus ring + `Enter`; as of v7 it also **auto-rotates** (~10s per tip; a manual
124
+ keyboard path = focus ring + `Enter`; it also **auto-rotates** (~10s per tip; a manual
114
125
  rotate resets the timer) — the switch changes only the text, never the row height or centering.
115
- - **Corner plates (v7)**: the bottom-left working directory is **clickable** — it opens the existing
126
+ - **Corner plates**: the bottom-left working directory is **clickable** — it opens the existing
116
127
  `/workspace` menu (rendered above the launchpad; `Esc` returns to the launchpad), keyboard path =
117
- the focus ring's last slot + `Enter`, hover/focus = text highlight; the bottom-right plate shows
118
- **two versions stacked vertically**: `dsh-tui v<TUI>` on the first row, `dsh-core v<kernel>` on
119
- the second (the kernel version is read from the host/kernel package manifests; only the TUI row
120
- is drawn when neither resolves), both right-aligned with the cwd plate top-aligned to the first
121
- row, truncated per the existing truncate-middle contract on narrow terminals.
128
+ the focus ring's last slot + `Enter`, hover/focus = text highlight; the bottom-right plate starts
129
+ with `dsh-tui v<TUI>`, followed by one row for each of the two kernels:
130
+ `▸ DSH · dsh-core v<kernel>` / `Claude · claude-code v<CLI>`. `▸` marks the current kernel and the
131
+ other row stays dim; an unavailable kernel adds the reason after its version (such as *Not installed*
132
+ or *Not signed in*), a row whose version cannot be read shows just the name, and *Checking…* shows
133
+ while the probe runs. The whole block is clickable and opens the same kernel picker (keyboard path =
134
+ focus ring + `Enter`). Rows are right-aligned, the cwd plate is top-aligned to the first row, and
135
+ narrow terminals truncate per the existing truncate-middle contract.
122
136
  - **Wizard**: `←`/`→` change step (except the effort slider in step 3 and a drilled-in model list, where the
123
137
  horizontal keys belong to the child control), `Tab` switches between the language/theme and
124
138
  model/effort/workspace panes, `↑`/`↓` move the selection; `Enter` runs the step (step 1 = re-check
@@ -127,9 +141,10 @@ results back to the chat screen and add no new behavior.
127
141
  **language pane applies on `Enter`**; `Enter` on the last step finishes and records the guide when the
128
142
  focused card is a shortcut card, and tries the command when it is a command card; `Esc` skips
129
143
  (**not recorded**, asked again next launch).
130
- - **Mouse** (fullscreen): the launchpad's quick actions (hover = the label turns accent-blue and bold,
131
- leaving restores the dim look), param segments, command palette, Tips line, the wizard's "Try it" cards
132
- and the workspace picker are clickable, and a click lands on the same command path as the keyboard.
144
+ - **Mouse** (mouse tracking is always on for this screen): the launchpad's quick actions (hover = the
145
+ label turns accent-blue and bold, leaving restores the dim look), param segments, command palette,
146
+ Tips line, the wizard's "Try it" cards and the workspace picker are clickable, and a click lands on
147
+ the same command path as the keyboard.
133
148
 
134
149
  ## Editing keys
135
150
 
@@ -179,7 +194,8 @@ text and newlines, and is never mistaken for an Enter key. To keep rendering, cl
179
194
  mapping, and selection geometry consistent:
180
195
 
181
196
  - Terminal ANSI controls are stripped on entry.
182
- - A multi-line paste no longer leaves a stray `_`: when a Windows terminal delivers the paste as win32-input-mode records, the residue (`ESC[Vk;Sc;Uc;Kd;Cs;Rc_`, or the ESC-less tail left by a split record) is stripped whole on entry. Only the five-separator record grammar matches, so genuine underscores and bracket text that merely resembles a record are untouched.
197
+ - A multi-line paste no longer leaves a stray `_`, and no longer drops characters: when a Windows terminal delivers the paste as win32-input-mode records, the key records that leak into the payload (`ESC[Vk;Sc;Uc;Kd;Cs;Rc_`, or the ESC-less tail left by a split record) are decoded back into the characters their `Uc` field encodes — newlines included, through the same CR+LF fold — which is why the chip's line count equals the paste's real line count. **The decode needs evidence**: only a *transition pair* (the same `Uc` pressed and released) is decoded back into characters; a **lone** record — with no pair to prove it is a record stream rather than literal text in the payload — is still stripped whole as a protocol token and its `Uc` is **not** restored, as are records with no character meaning (a `Uc=0` synthesized record, a key record with no text). The promise is therefore "no character is dropped silently **once the bytes are proven to be a record stream**", not "every record shape is decoded back".
198
+ - Both stripping and decoding need evidence: complete records are consumed before ESC-less tails (so a record is never sliced open and its orphan ESC never eats the payload character behind it), and a tail must stand alone as its own token — a record-shaped run welded into the payload's own word is kept byte-for-byte (visible residue beats silent loss). Only the five-separator record grammar matches, so genuine underscores and bracket text that merely resembles a record are untouched.
183
199
  - Pasted CRLF collapses: a CR+LF pair produces one newline instead of two; LF-only and lone CR keep their previous behavior.
184
200
  - Tabs are expanded to spaces on entry.
185
201
 
@@ -278,13 +294,33 @@ While the model is working, three paths have different placement:
278
294
 
279
295
  | Action | Placement |
280
296
  | --- | --- |
281
- | `Enter` | Steer: deliver to the running turn at its next step boundary |
297
+ | `Enter` | known `/` command (with or without arguments) → run it, its own gate decides; anything else → steer: deliver to the running turn at its next step boundary |
282
298
  | `Tab` | Follow-up: wait until the current turn finishes |
283
299
  | `Ctrl+Enter` | Interrupt: stop the turn and deliver immediately |
284
300
 
301
+ **While a turn is running, a command is always a command; only two kinds of input steer: plain text that is not a command, and a direct skill gesture (`/skill-name …`).** The completion overlay groups commands by their impact on the current conversation: the harmless ones stay on top in their normal style, while gated, interrupting, replacing or steering commands sink to the bottom in the theme's grey (`subtle`, no header row) — where they stay selectable.
302
+
285
303
  - Undelivered messages appear above the editor.
286
304
  - `Alt/Option+Up` retrieves the latest one.
287
- - Pressing `Esc` while pending messages exist interrupts and redelivers them immediately.
305
+ - Pressing `Esc` while the model works interrupts the turn and holds the queued
306
+ messages above the input instead of re-sending them; the hint row reads
307
+ `Press ↑ to edit queued messages, ⏎ to send now`. DSH and Claude behave the same.
308
+ - With messages held and idle, `↑` on an empty input opens the queued-message
309
+ selector: `↑`/`↓` move, `⏎` takes the selected message back into the input
310
+ for editing, `Esc` leaves the selector. You can also click a held message
311
+ (takes it back for editing; with a draft in the input the two swap, and
312
+ `Ctrl+Z` swaps them back) or click the hint row (sends everything).
313
+ - `⏎` on an empty input sends all held messages in order, exactly once; with a
314
+ draft in the input `⏎` sends only the draft and the held messages stay, so
315
+ they are never bundled with it.
316
+ - `Ctrl+Enter` (with a draft) interrupts the turn and sends the held messages together
317
+ with the draft right away.
318
+ - When a turn ends normally, queued messages still flow into the next turn;
319
+ `Ctrl+C` keeps the queue.
320
+ - Only messages the backend confirmed as withdrawn are held. With an older
321
+ Claude CLI that cannot withdraw them, or when the withdrawal request fails,
322
+ the backend still runs them next turn; dsh-TUI stops holding them, says so,
323
+ and never sends them twice.
288
324
 
289
325
  ## Session workflows
290
326
 
@@ -384,9 +420,10 @@ On Windows, `dsh-tui.cmd --resume` uses the session ID last written to `~/.dsh-t
384
420
 
385
421
  ### Background sessions
386
422
 
387
- `/bg` (alias `/background`) moves the current session to the background and keeps it
423
+ On DSH, `/bg` (alias `/background`) moves the current session to the background and keeps it
388
424
  running, switches the terminal to a fresh session, and opens the session-management screen;
389
- `←` on an empty prompt does the same.
425
+ `←` on an empty prompt does the same. On Claude/Codex, both entries open the session manager
426
+ without backgrounding the attached session.
390
427
 
391
428
  - While a background session waits on you, the prompt footer shows `← N agents`.
392
429
  - A background session awaiting approval shows as **needs input**, and the approval panel labels which session it comes from.
@@ -462,6 +499,79 @@ A full-screen scene (no scrollback pollution) over the whole session timeline:
462
499
 
463
500
  See [Configuration](configuration.en.md#agent-presets).
464
501
 
502
+ ### Channel profiles (/channel, Claude only)
503
+
504
+ Relay channels often route a request to a different model while keeping a Claude
505
+ tier name (such as Opus 5.5 (1M)). A channel profile records each channel's model
506
+ mappings and connection, in `~/.dsh-tui/backends/claude/channels.json`:
507
+
508
+ ```json
509
+ {
510
+ "active": "zhipu",
511
+ "channels": [
512
+ {
513
+ "id": "zhipu",
514
+ "name": "Zhipu",
515
+ "baseUrl": "https://open.bigmodel.cn/api/anthropic",
516
+ "tokenRef": "CHANNEL_ZHIPU_TOKEN",
517
+ "models": { "claude-opus-5-5[1m]": "glm-5.3[1M]" },
518
+ "tiers": { "opus": "glm-5.3[1M]", "haiku": "glm-5.3-flash" }
519
+ }
520
+ ]
521
+ }
522
+ ```
523
+
524
+ - `models` is an exact map: exact match first, then a match that strips the `[1m]`
525
+ suffix and ignores case. `tiers` matches tier keywords (`haiku`/`opus`/`sonnet`/
526
+ `fable`); the reserved `default` matches every other model (like
527
+ `ANTHROPIC_MODEL`). Both fields are optional.
528
+ - The `id` is derived from `name` (lowercase, non-alphanumerics folded into `-`);
529
+ importing again updates the channel with the same id.
530
+ - The model name shown is taken in this order: the active channel's `models` > its
531
+ `tiers` > the legacy `model-names.json` > the tier variables in the Claude
532
+ settings `env` > the raw id. Without an active channel it is as if the file did
533
+ not exist.
534
+ - `baseUrl`, `tokenRef` and a channel-private `env` are the connection; all are
535
+ optional. The active channel decides where the session connects and outranks the
536
+ dsh-auth subscription sign-in. The token is stored in `~/.dsh/.credentials.yaml`
537
+ (0600, the same credential store `/provider` uses, referenced as
538
+ `CHANNEL_<ID>_TOKEN` by default); `channels.json` keeps only the reference, never
539
+ the token.
540
+ - The connection reaches the CLI twice: in the child environment and through the
541
+ SDK `settings` option (the CLI's `--settings` layer, which outranks the `env` of
542
+ `~/.claude/settings.json`, so values a tool such as cc-switch wrote there cannot
543
+ override the channel). `ANTHROPIC_API_KEY`/`ANTHROPIC_AUTH_TOKEN` issued for a
544
+ different endpoint are never carried to the new host.
545
+
546
+ `/channel` opens the picker, in this order:
547
+
548
+ - The channels (the active one ticked, the sub-row shows the mapping counts).
549
+ `Enter` switches the active channel. Between channels with the same connection
550
+ the switch is in place and the footer and `/model` names refresh at once; a
551
+ different connection restarts into a new session (a running CLI cannot change
552
+ its connection).
553
+ - *Import from settings.json*: names the channel after the `ANTHROPIC_BASE_URL`
554
+ host, takes `ANTHROPIC_DEFAULT_{HAIKU,OPUS,SONNET,FABLE}_MODEL` and
555
+ `ANTHROPIC_MODEL` as `tiers` (exact `models` are never guessed), and takes the
556
+ `baseUrl` and `ANTHROPIC_AUTH_TOKEN` too (the token goes to the credential store
557
+ as above). Importing again updates the same-id channel and keeps hand-written
558
+ `models`.
559
+ - *Add a channel* and *Manage channels*: open the same question panel `/provider`
560
+ uses. Adding asks for the name, base URL, token (input hidden), mapping source
561
+ (take the tiers from the settings or skip) and whether to switch now; managing
562
+ edits the base URL or token, refreshes the mappings from the settings, or deletes
563
+ the channel along with its stored token.
564
+ - *View mappings*: prints the active channel's `models` and `tiers` as a local
565
+ transcript block. To edit single entries, edit `channels.json`; the display
566
+ follows the order above live.
567
+
568
+ A corrupt file reads as empty, a failed write only reaches the debug log, and
569
+ writes go through a same-directory temporary file and an atomic rename. dsh-tui
570
+ never edits `~/.claude/settings.json`; when its `ANTHROPIC_BASE_URL` or credentials
571
+ conflict with the active channel, the session start shows one notice that this
572
+ session connects per the channel profile. The command appears only in Claude
573
+ sessions.
574
+
465
575
  ### Workspaces
466
576
 
467
577
  - `/workspace resume` opens the workspace picker.
@@ -627,10 +737,15 @@ owns the keyboard (when a questionnaire is also pending, approval takes priority
627
737
 
628
738
  The protocol offers only "allow once / deny" — there is **no "always allow"**.
629
739
 
740
+ On the Claude backend the approval comes from the CLI: it adds *allow always*
741
+ when the CLI suggests a rule, and with the focus on the reject row you can type a
742
+ reason; see [Claude backend](claude-backend.en.md#approvals-and-questions).
743
+
630
744
  ## Slash commands
631
745
 
632
746
  The command menu merges local commands with the DSH command registry. Type `/` to inspect the complete surface available in the current composition.
633
747
 
748
+ - **While a turn is running**, the overlay groups commands by their impact on the current conversation: the harmless ones stay on top in their normal style, while gated, interrupting, replacing or steering commands sink to the bottom in the theme's grey (`subtle`, no header row) — and stay selectable there.
634
749
  - Command descriptions follow the UI language (`/lang`).
635
750
  - Built-in commands and mapped registry commands (`/plan`, `/goal`, `/feedback`) show Chinese translations in zh.
636
751
  - Unmapped registry commands fall back to the registry's own text.
@@ -638,7 +753,7 @@ The command menu merges local commands with the DSH command registry. Type `/` t
638
753
  **Sessions**
639
754
 
640
755
  - `/new`, `/resume`, `/home`, `/agentview` — all three open the same session-management screen.
641
- - `/bg` — alias `/background`, backgrounds the session and opens that screen.
756
+ - `/bg` — alias `/background`, opens the session manager; DSH backgrounds the session first, while Claude/Codex keep it attached.
642
757
  - `/rename`.
643
758
  - `/recap` — session recap: apply the suggested title in one key; `/settings` can enable an
644
759
  auto-summary on session open, on by default — a divider + `Recap:` line appears at the
@@ -659,8 +774,9 @@ The command menu merges local commands with the DSH command registry. Type `/` t
659
774
 
660
775
  **Model and display**
661
776
 
662
- - `/model`, `/effort`, `/thinking`, `/tokens`, `/activity`, `/preset`, `/theme`, `/color` —
663
- session accent color: bare opens the palette picker, `<name>` sets directly, `status`/`reset`;
777
+ - `/model`, `/effort`, `/thinking`, `/tokens`, `/activity`, `/preset`, `/theme`.
778
+ - `/channel` — the channel-profile picker (Claude backend only; see the Channel profiles section).
779
+ - `/color` — session accent color: bare opens the palette picker, `<name>` sets directly, `status`/`reset`;
664
780
  input border + session-name chip at the top-right, per-session; chip off by default, enable
665
781
  in `/settings`.
666
782
  - `/panel` — side panel: toggle / focus / zoom / switch panels (subcommands in the user guide §2.8).
@@ -679,6 +795,16 @@ The command menu merges local commands with the DSH command registry. Type `/` t
679
795
 
680
796
  - `/update`, `/vim` — vim editing mode toggle, see "Editing keys".
681
797
  - `/terminal-setup`, `/connect`, `/help`, `/exit` — aliases `/quit`, `/q`.
798
+ - `/kernel` — opens the kernel picker (the current kernel is ticked; every row
799
+ carries a version and a one-line explanation), on DSH and Claude sessions alike.
800
+ Picking the other kernel remembers it and restarts into it with a new session;
801
+ the old session stays in `/resume`, and if the new session fails to start you
802
+ are back on the old one. A running turn blocks the switch. The launchpad's
803
+ Kernel entry and its bottom-right kernel block open the same picker. When
804
+ `--backend` or the config row names a kernel, this restart follows your pick but
805
+ a later direct launch follows the flag. A fresh launch lands on the launchpad
806
+ whichever kernel is remembered; a launch with a resume target goes straight
807
+ into the session.
682
808
 
683
809
  **Registry**
684
810
 
@@ -717,6 +843,22 @@ Additional forms:
717
843
  available, it fails loudly instead of sending the input to the model.
718
844
  - Exiting plan mode restores the pre-plan atoms first, then the durable preset you were on before plan mode (while the registry still offers it).
719
845
  - When the registry service is absent, TUI uses its legacy three-row compatibility roster; a mounted but broken service is unavailable and fails closed.
846
+ - Non-DSH backends (Claude) that declare native permission modes answer
847
+ `/permission` with that backend's own modes: `default` (ask before each risky
848
+ action), `acceptEdits` (auto-accept file edits), `plan` (read-only planning),
849
+ `bypassPermissions` (skip every permission check), plus `auto` where the model
850
+ supports it, each with a one-line explanation. `bypassPermissions` can only be
851
+ picked explicitly here; the `Shift+Tab` cycle default → acceptEdits → plan
852
+ (→ auto) never reaches it. The footer always shows the current mode
853
+ (`bypassPermissions`/`dontAsk` in the warning colour), except under Minimal UI.
854
+ A Claude settings file with `defaultMode: bypassPermissions` is downgraded to
855
+ `default` with a transcript notice, so a cloned repository cannot silently turn
856
+ every prompt off.
857
+ - The `/permission` pick is saved to `~/.dsh-tui/backends/claude/prefs.json` (the
858
+ same file as the model and effort picks) and later sessions start on it.
859
+ Precedence: the `DSH_TUI_CLAUDE_PERMISSION_MODE` environment variable > the
860
+ remembered pick > Claude settings > `default`. Starting in `bypassPermissions`
861
+ from the remembered pick is announced in the transcript.
720
862
  - `/lang` toggles the interface language (see "Interface language").
721
863
  - `/compact` compresses the session history; unavailable under the kernel Minimal agent preset (`minimal`, a single persistent-shell tool), which mounts no compaction and does not prune tool results — a long session can hit the context limit and oversized tool output stays in full (Help and `/` completion mark the entry, and entering the preset says so once) — unrelated to the display-side Minimal UI switch.
722
864
  - `/thinking` toggles extended reasoning display; UI state only — **not persisted**.
@@ -6,7 +6,7 @@
6
6
 
7
7
  | 按键 | 行为 |
8
8
  | --- | --- |
9
- | `Enter` | 空闲时发送;模型工作时把文本 steer 到当前回合的下一步边界;菜单打开时确认选项 |
9
+ | `Enter` | 空闲时发送;输入构成已知 `/` 命令时执行该命令(可带参数,回合运行中由该命令自己的门禁裁决);模型工作时把其余文本 steer 到当前回合的下一步边界;菜单打开时确认选项 |
10
10
  | `Tab` | 补全 `/` 命令或 `@` 文件;模型工作且输入非空时排入当前回合之后的 follow-up |
11
11
  | `Ctrl+Enter` | 打断当前回合并立即处理输入消息 |
12
12
  | `Shift+Enter` / `Ctrl+J` | 在光标处插入换行;终端无法上报 Shift 修饰键时可用 `Ctrl+J`(LF)兜底,macOS Terminal.app 用 `Option+Enter` |
@@ -17,9 +17,10 @@
17
17
  | `Ctrl+G` | 用外部编辑器(`$VISUAL` → `$EDITOR`)编辑当前输入,保存退出后回填;`:cq` 或非零退出保留原稿;未设置变量时提示配置,无 `vi` 兜底 |
18
18
  | `Ctrl+Shift+E` | 展开全屏草稿编辑器(也可点输入行尾 `⛶`):行号 + 当前行高亮 + 行/字统计,`Enter` 换行、`Ctrl+Enter` 或「发送」按钮发送、`Esc` 或「收起」按钮收起(草稿保留);滚轮自由滚动、点击定位/拖选/双击选词与输入框一致;可经 `/settings` 重映射 |
19
19
  | `Ctrl+Z` | 撤销输入框草稿的上一步「词级」编辑(文本、光标、图片一起回退)。只作用于草稿:提交、历史召回(`Ctrl+R`/`↑`)或换会话后即结束;`Esc Esc` 的会话/消息回溯与它不是一回事。可经 `/settings` 重映射 |
20
- | `Esc` | 层级:关帮助 → 关图片预览 → 关命令菜单 → 关文件菜单(仅当前 `@` token)→ **输入框内有选区时仅清选区(文本不动)** → 中断回合并重投 pending 消息 → 有输入时清空 → 空输入连续两次 = 时间回溯 rewind;fullscreen 下有鼠标选区时优先取消选区(不复制) |
20
+ | `Esc` | 层级:关帮助 → 关图片预览 → 关命令菜单 → 关文件菜单(仅当前 `@` token)→ **输入框内有选区时仅清选区(文本不动)** → 排队选择器开着时仅退出选择器 → 中断回合并暂存排队消息(不自动重发,见「消息投递语义」)→ 有输入时清空 → 空输入连续两次 = 时间回溯 rewind;fullscreen 下有鼠标选区时优先取消选区(不复制) |
21
21
  | 图片预览打开时 `Esc` / `Ctrl+C` / `Enter` | 关闭预览,恢复下层界面;其余按键不透传 |
22
22
  | 图片弹窗中的 `←` / `→` | 上一张 / 下一张;首尾不循环,临时光标预览不抢输入框方向键 |
23
+ | `←`(输入框为空) | 打开会话管理界面;DSH 内核会先把当前会话转入后台,Claude/Codex 内核保持当前会话运行 |
23
24
  | `Ctrl+C` | 工作时中断;中断迟迟不收敛时再按一次强制退出;空闲且有输入时清空;**空闲且输入框内有选区时复制选区到剪贴板(保留选区继续编辑)**;空输入时连续两次退出 |
24
25
  | `Ctrl+D` | 与 `Ctrl+C` 同阶梯:工作中=中断(未收敛时再按=强制退出);空闲时连续两次退出 |
25
26
  | `Ctrl+O` | 切换 transcript/verbose 详情,展开思考与完整工具参数/输出;也是**超长单行折叠**(单行 > 1000 字符裁到 1000 + `… 已折叠 N 字符` 标记,见 user guide §5)的展开逃生门——鼠标点被折叠的那一行(或工具卡卡面)同样能展开/收起 |
@@ -74,7 +75,8 @@
74
75
 
75
76
  - **落地页**:可打印字符接进输入框(行首 `/` 时前缀由 `❯` 变 `⌘`),`Backspace`/`Delete`/`←`/`→`/`Home`/`End` 编辑;
76
77
  - **落地页**:可打印字符接进输入框(行首 `/` 时前缀由 `❯` 变 `⌘`),`Backspace`/`Delete`/`←`/`→`/`Home`/`End` 编辑;
77
- 输入光标是**压在当前字符身上的反显块**(对那一个字符 inverse,行尾是反显空格),闪烁是纯样式切换
78
+ 输入光标是**压在当前字符身上的反显块**(对那一个字符 inverse,行尾是反显空格;主题声明了 `cursor`
79
+ 键时改用该填充色的实色块配对比字形,见[主题系统](themes.md)),闪烁是纯样式切换
78
80
  (inverse ↔ 常规,约 550ms 一相位),绝不另起一格、绝不吃掉字符;`Alt+R` 继续最近一条会话
79
81
  (= 入口行第一格「继续「…」」,仅此屏生效,无可继续会话时无动作,键位可在 `/settings` 改);
80
82
  **执行**选中命令,`Esc` 只收面板、草稿不动);面板没收时 `Enter` 直接**发送**这一行(行首 `/` 的命令——含
@@ -86,9 +88,13 @@
86
88
  的显示名——Standard/PTC/极简…):四段**各自可点**,点开的就是对话页同一套选择器
87
89
  (`/model` · `/effort` · `/preset` · `/permission`),选择器**盖在落地页之上**、吃走键盘
88
90
  (`Esc` 关掉它回到落地页),选中的值就地更新参数行、已输入的草稿不动;选择器开着时点它内部是选择,
89
- **点别处会关掉它、点另一段会直接切换**成那个选择器。
90
- - **入口行(第七版四格)**:`继续「…」`(Alt+R;无可继续会话时整格不画)· `会话与工作区`(`/home`,
91
- 历史会话与工作区合并成一个入口)· `设置`(`/settings`)· **条件位**(优先级:有后台任务在跑 →
91
+ **点别处会关掉它、点另一段会直接切换**成那个选择器。四段**常在**:这一行装得下就原样画;
92
+ 装不下时只把**超长的段**按显示宽度截尾成 `前缀…`(权限段**不被截断**),悬停被截断的段约 600ms
93
+ 弹出卡片显示**完整名**(落地页这一屏恒启用鼠标跟踪,inline 模式下也是);其余各段压到下限后
94
+ **完整权限名放不进预算**时(终端 ≥76 列后,再宽也不改变结果;更窄的终端或更长的权限名都会更早触发)
95
+ 才回落到按显示顺序**从尾部整段省掉**(权限 → 模式 → 思考深度 → 模型),省掉的段同时退出焦点环。
96
+ - **入口行**:`继续「…」`(Alt+R;无可继续会话时整格不画)· `会话与工作区`(`/home`,
97
+ 历史会话与工作区合并成一个入口)· `设置`(`/settings`)· `内核 · <当前内核>`(`/kernel`,打开内核选择器,见「命令」一节)· **条件位**(优先级:有后台任务在跑 →
92
98
  `后台任务`;检测到新版本 → `有新版本`;用量到档且从未 star → `投喂一颗 Star`;兜底 `帮助`)。
93
99
  从落地页打开的整屏界面(会话与工作区 / 设置 / 后台任务 / 家谱 / 引导向导)都**盖在落地页之上**,
94
100
  `Esc` 退出回到落地页(草稿/参数/焦点原样保留);**离开落地页进对话页的唯一方式是回车提交一条
@@ -96,19 +102,22 @@
96
102
  遮掉宿主屏的字形(绝不重影)、不发背景色(无白底;Kitty 立绘图像仍从终端默认背景透出;
97
103
  聊天页同款选择器不受影响)。
98
104
  - **Tips 行**:可点击轮换(三条 Tips 循环;首启那一句优先级最高、不参与轮换),键盘路径 = 焦点环 + `Enter`;
99
- 第七版起还**自动轮换**(约 10s 一换,手动切换后计时重置),切换只改文本、行高与居中位置不变。
100
- - **双角铭牌(第七版)**:左下角工作目录**可点**——点开既有的 `/workspace` 菜单
105
+ 还会**自动轮换**(约 10s 一换,手动切换后计时重置),切换只改文本、行高与居中位置不变。
106
+ - **双角铭牌**:左下角工作目录**可点**——点开既有的 `/workspace` 菜单
101
107
  (盖在落地页之上、`Esc` 回落地页),键盘路径 = 焦点环末格 + `Enter`,悬停/焦点 =
102
- 文字高亮;右下角是**双版本竖排两行**:第一行 `dsh-tui v<TUI>`、第二行
103
- `dsh-core v<内核>`(内核版本读宿主/内核线包的 manifest,读不到只画 TUI 一行),
104
- 两行都右对齐、左下目录铭牌与第一行顶对齐,窄屏按既有 truncate-middle 截断。
108
+ 文字高亮;右下角第一行是 `dsh-tui v<TUI>`,其下两个内核各占一行:
109
+ `▸ DSH · dsh-core v<内核>` / `Claude · claude-code v<CLI>`。`▸` 标出当前内核,其余行暗色;
110
+ 不可用的内核在版本后写原因(如「未安装」「未登录」),读不到版本时只写名字,检测期间显示
111
+ 「检测中…」。整块可点,打开同一个内核选择器(键盘路径 = 焦点环 + `Enter`)。
112
+ 各行右对齐,左下目录铭牌与第一行顶对齐,窄屏按既有 truncate-middle 截断。
105
113
  - **引导向导**:`←`/`→` 换步骤(例外:第三步的强度区、以及已钻进去的模型列表,横向键归子控件,不换步骤)、
106
114
  `Tab` 在「语言 / 主题」与「模型 / 强度 / 工作区」两组面板间切、`↑`/`↓` 移动选择;
107
115
  `Enter` 执行这一步(第一步 = 重新检查连通性,第三步 = 钻进 provider / 换模型 / 打开工作区选择器——**强度不走 Enter**,只用 `←`/`→` 调且移动即生效);
108
116
  主题面板移动光标即预览,**语言面板要 `Enter` 才生效**;最后一步的 `Enter` 在**键位卡**上「完成」并记账,
109
117
  在命令卡上则是「试一下」;`Esc` 跳过(**不记账**,下次启动再问)。
110
- - **鼠标**(fullscreen):落地页的快捷入口(悬停 = 文字变主题蓝加粗,移开复原)、参数行四段、命令补全面板、
111
- Tips 行、引导招式卡的「试一下」与工作区选择器都可点,点击与键盘落到同一条命令路径。
118
+ - **鼠标**(落地页这一屏恒启用鼠标跟踪):落地页的快捷入口(悬停 = 文字变主题蓝加粗,移开复原)、
119
+ 参数行四段、命令补全面板、Tips 行、引导招式卡的「试一下」与工作区选择器都可点,
120
+ 点击与键盘落到同一条命令路径。
112
121
 
113
122
  ## 输入编辑
114
123
 
@@ -157,7 +166,8 @@ Bracketed paste(右键或终端原生粘贴)保留普通文本与换行。
157
166
 
158
167
  - 不会把粘贴内容误当成 `Enter` 提交。
159
168
  - 为保显示、点击与选区几何一致,剥离终端 ANSI 控制序列。
160
- - 多行粘贴不再留下 `_`:Windows 终端以 win32-input-mode 逐条记录投递时,残留的键记录(`ESC[Vk;Sc;Uc;Kd;Cs;Rc_` 完整形态,或记录拆散后无 ESC 的尾部)在入口整体剥离;只匹配 5 段分号的记录语法,普通文本里的真实 `_` 与形似记录的方括号文本不受影响。
169
+ - 多行粘贴不再留下 `_`,也不再丢字符:Windows 终端以 win32-input-mode 逐条记录投递时,泄漏进载荷的键记录(`ESC[Vk;Sc;Uc;Kd;Cs;Rc_` 完整形态,或记录拆散后无 ESC 的尾部)按 `Uc` 字段**还原成它编码的字符**(含换行,走同一条 CR+LF 折叠规则),所以 chip 报出的行数等于粘贴内容的真实行数。**还原要有证据**:只有构成**成对转移**(同一 `Uc` 的按下+抬起)的记录才还原成字符;**单条**记录(拿不到成对证据、无法与载荷里的字面文本区分)仍按协议记号整体剥离,它的 `Uc` **不还原**;没有字符语义的记录(`Uc=0` 的合成记录、无文本的按键记录)同样整体剥离。本屏的承诺因此是「**在能证明这些字节是记录流时**不静默删除字符」,而不是"任何记录形状都还原成字符"。
170
+ - 剥离与还原都要证据:完整记录先于尾部剥离(不会把一条记录从中间切开、留下孤立 ESC 再连带吃掉紧随的一个载荷字符);无 ESC 的尾部必须自成记号,焊在载荷自身词内的记录形态逐字节保留(宁可见残留)。只匹配 5 段分号的记录语法,普通文本里的真实 `_` 与形似记录的方括号文本不受影响。
161
171
  - CRLF 折叠:粘贴内容里的 CR+LF 只产生一个换行,不再多出空行;LF-only 与单独 CR 行为不变。
162
172
  - `Tab` 进入编辑缓冲区时展开为空格。
163
173
 
@@ -284,14 +294,26 @@ Bracketed paste(右键或终端原生粘贴)保留普通文本与换行。
284
294
 
285
295
  | 操作 | 放置位置 |
286
296
  | --- | --- |
287
- | `Enter` | steer:送入正在运行的回合,在下一步边界被 Agent 领取 |
297
+ | `Enter` | 输入构成已知 `/` 命令(可带参数)→ 按命令执行,由该命令自己的门禁裁决;其余文本 → steer:送入正在运行的回合,在下一步边界被 Agent 领取 |
288
298
  | `Tab` | follow-up:等待当前回合结束后再处理 |
289
299
  | `Ctrl+Enter` | interrupt:中断当前回合并立即投递 |
290
300
 
301
+ **回合运行中,命令永远是命令;只有两类输入才 steer:不构成命令的普通文本,以及直接调用技能的手势(`/技能名 …`)。** 补全浮窗据此把命令按对当前对话的影响分区:不影响的在上(原样式),会被门禁拦下 / 会打断或替换对话 / 会 steer 的沉到下方、整行变灰(`subtle`,不插标题行),灰区命令仍可选中执行。
302
+
291
303
  输入框上方会显示尚未领取的消息。
292
304
 
293
305
  - `Alt/Option+Up` 取回最后一条。
294
- - 模型工作时按 `Esc` 会中断,并立即重投当前 pending 消息。
306
+ - 模型工作时按 `Esc` 会中断回合,排队消息暂存在输入框上方,不自动重发;提示行显示
307
+ `按 ↑ 编辑排队消息,⏎ 立即发送`。DSH 与 Claude 后端行为相同。
308
+ - 有暂存消息且空闲时,在空输入框按 `↑` 打开排队消息选择器:`↑`/`↓` 移动,`⏎` 把选中的消息
309
+ 取回输入框编辑,`Esc` 退出选择器。也可以直接点暂存的消息(取回编辑;输入框里已有草稿
310
+ 时两者互换,`Ctrl+Z` 换回)或点提示行(全部发送)。
311
+ - 空输入框按 `⏎` 按顺序发送全部暂存消息,只发一次;输入框有草稿时 `⏎` 只发送草稿,暂存的
312
+ 消息继续暂存,不会和草稿合并发出。
313
+ - `Ctrl+Enter`(有草稿时)中断当前回合,连同暂存消息一起立即发送。
314
+ - 回合正常结束时,排队消息照常进入下一回合;`Ctrl+C` 中断时保留队列。
315
+ - 只有后端确认已撤回的消息才会暂存。旧版 Claude CLI 不支持撤回,或撤回请求失败时,这些
316
+ 消息仍由后端在下一回合执行,dsh-TUI 不再暂存它们并给出提示,不会重复发送。
295
317
 
296
318
  ## 会话工作流
297
319
 
@@ -492,6 +514,60 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
492
514
  - 已经开始的会话会把选择保存为下一次 `/new` 或启动时的默认值。
493
515
  - 详细规则见[配置参考](configuration.md#agent-preset)。
494
516
 
517
+ ### 渠道档案(/channel,仅 Claude)
518
+
519
+ 中转渠道常把请求路由到别的模型,却沿用 Claude 的档位名(例如 Opus 5.5 (1M))。渠道档案
520
+ 记录每个渠道的模型映射和连接方式,存在 `~/.dsh-tui/backends/claude/channels.json`:
521
+
522
+ ```json
523
+ {
524
+ "active": "zhipu",
525
+ "channels": [
526
+ {
527
+ "id": "zhipu",
528
+ "name": "智谱",
529
+ "baseUrl": "https://open.bigmodel.cn/api/anthropic",
530
+ "tokenRef": "CHANNEL_ZHIPU_TOKEN",
531
+ "models": { "claude-opus-5-5[1m]": "glm-5.3[1M]" },
532
+ "tiers": { "opus": "glm-5.3[1M]", "haiku": "glm-5.3-flash" }
533
+ }
534
+ ]
535
+ }
536
+ ```
537
+
538
+ - `models` 是精确映射:先精确匹配,再去掉 `[1m]` 后缀、忽略大小写匹配。`tiers` 按档位关键字
539
+ (`haiku`/`opus`/`sonnet`/`fable`)匹配,保留字 `default` 匹配其余所有模型(对应
540
+ `ANTHROPIC_MODEL`)。两个字段都可省略。
541
+ - `id` 由 `name` 生成(小写,非字母数字折叠成 `-`);重复导入会更新同 id 的渠道。
542
+ - 显示的模型名按以下顺序取:激活渠道的 `models` > 激活渠道的 `tiers` > 旧的
543
+ `model-names.json` > Claude 设置 `env` 里的档位变量 > 原始 id。没有激活渠道时与没有这个
544
+ 文件一样。
545
+ - `baseUrl`、`tokenRef` 与渠道私有的 `env` 是连接信息,都可省略。激活的渠道决定本会话连到
546
+ 哪里,并优先于 dsh-auth 订阅登录。令牌存在 `~/.dsh/.credentials.yaml`(0600,与 `/provider`
547
+ 的密钥同一个凭据库,引用名默认 `CHANNEL_<ID>_TOKEN`),`channels.json` 只存引用,不存明文。
548
+ - 连接经两处下发给 CLI:子进程环境,以及 SDK 的 `settings` 选项(CLI 的 `--settings` 层,
549
+ 优先级高于 `~/.claude/settings.json` 的 `env`,所以 cc-switch 之类工具写进设置文件的值
550
+ 不会盖过渠道)。环境里为其他端点签发的 `ANTHROPIC_API_KEY`/`ANTHROPIC_AUTH_TOKEN` 不会
551
+ 带到新主机。
552
+
553
+ `/channel` 打开选择器,依次是:
554
+
555
+ - 各渠道(当前渠道打勾,副行是映射条数)。`Enter` 切换激活渠道。连接信息相同的渠道之间就地
556
+ 切换,页脚和 `/model` 的模型名立即刷新;连接不同则重启进入新会话(运行中的 CLI 换不了连接)。
557
+ - 「从 settings.json 导入」:用 `ANTHROPIC_BASE_URL` 的主机名作渠道名,把
558
+ `ANTHROPIC_DEFAULT_{HAIKU,OPUS,SONNET,FABLE}_MODEL` 与 `ANTHROPIC_MODEL` 收进 `tiers`
559
+ (不猜 `models`),同时收下 `baseUrl` 和 `ANTHROPIC_AUTH_TOKEN`(按上面的规则入凭据库)。
560
+ 重复导入更新同 id 的渠道,手写的 `models` 保留。
561
+ - 「新增渠道」与「管理渠道」:打开与 `/provider` 相同的问答面板。新增依次问名字、baseUrl、
562
+ 令牌(输入不回显)、映射来源(从设置吸收档位或跳过)、是否立即切换;管理可以改 baseUrl、
563
+ 令牌,从设置刷新映射,或删除渠道(连同保存的令牌)。
564
+ - 「查看映射」:把当前渠道的 `models` 和 `tiers` 打印成本地转录块。逐条编辑请直接改
565
+ `channels.json`,模型名按上面的顺序实时生效。
566
+
567
+ 文件损坏时读作空,写入失败只记调试日志,写入经同目录临时文件 + rename 原子替换。
568
+ dsh-tui 不修改 `~/.claude/settings.json`;会话启动时若其中的 `ANTHROPIC_BASE_URL` 或凭据与
569
+ 激活渠道冲突,会提示一次本会话按渠道档案连接。该命令只在 Claude 会话中出现。
570
+
495
571
  ### 工作区
496
572
 
497
573
  `/workspace` 子命令:
@@ -667,11 +743,15 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
667
743
 
668
744
  协议只有「允许一次 / 拒绝」两种结果,**没有「总是允许」**。
669
745
 
746
+ Claude 后端的审批来自 CLI:CLI 给出建议时多一个「始终允许」,焦点在「拒绝」行时还可以输入
747
+ 拒绝理由,见[Claude 后端](claude-backend.md#审批与提问)。
748
+
670
749
  ## Slash Commands
671
750
 
672
751
  命令菜单由本地命令与 DSH 命令注册表合并而成。
673
752
 
674
753
  - 输入 `/` 查看当前组合真正可用的全集。
754
+ - **回合运行中**,浮窗按「对当前对话的影响」分区:不影响的在上(原样式),会被门禁拦下 / 会打断或替换对话 / 会 steer 的沉到下方、整行变灰(`subtle`,不插标题行),灰区命令仍可选中执行。
675
755
  - 命令描述随界面语言(`/lang`)中英切换。
676
756
  - 内置命令与已收录的注册表命令(`/plan`、`/goal`、`/feedback`)显示中文翻译。
677
757
  - 其余注册表命令回退注册表原文。
@@ -680,7 +760,7 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
680
760
 
681
761
  - `/new`。
682
762
  - `/resume`、`/home`、`/agentview`:三者打开同一个会话管理界面。
683
- - `/bg`(别名 `/background`):会话转入后台并打开该界面。
763
+ - `/bg`(别名 `/background`):打开会话管理界面;DSH 内核先将当前会话转入后台,Claude/Codex 内核保持当前会话运行。
684
764
  - `/rename`。
685
765
  - `/recap`:最近活动摘要 + 建议标题一键应用。
686
766
  - 设置 `recapOnOpen` 开启时打开会话自动出分隔线 + `回顾:` 摘要行,发送新消息后消失,默认开。
@@ -700,6 +780,7 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
700
780
  **模型与显示**
701
781
 
702
782
  - `/model`、`/effort`、`/thinking`、`/tokens`、`/activity`、`/preset`、`/theme`。
783
+ - `/channel`:渠道档案选择器(仅 Claude 后端,见「渠道档案」小节)。
703
784
  - `/color`:会话强调色。
704
785
  - 无参打开调色板选择器,`<名>` 直接设置,`status`/`reset`。
705
786
  - 输入框边框 + 右上角会话名标签,按会话保存。
@@ -721,6 +802,11 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
721
802
  **其他**
722
803
 
723
804
  - `/update`、`/vim`(vim 编辑模式开关,见「输入编辑」)、`/terminal-setup`、`/connect`、`/help`。
805
+ - `/kernel`:打开内核选择器(当前内核打勾,每行带版本与一句说明),在 DSH 与 Claude 会话里都可用。
806
+ 选中另一个内核会记住选择并重启进入它,在新内核里开新会话;原会话仍可在 `/resume` 找到,新会话
807
+ 启动失败时回到原会话。回合进行中不能切换。启动页的「内核」入口与右下角内核区打开的是同一个
808
+ 选择器。用 `--backend` 或配置行指定了内核时,本次按选择重启,之后直接启动仍按参数。全新启动
809
+ 不论记住的是哪个内核都先到启动页,带恢复目标的启动直接进入会话。
724
810
  - `/exit`(别名 `/quit`、`/q`)。
725
811
 
726
812
  **注册表**
@@ -753,6 +839,18 @@ dsh-TUI 不预装通用技能;技能内容与发现规则由 DSH 及当前组
753
839
  - registry 服务缺失时 TUI 使用三项 legacy 兼容名册。
754
840
  - 服务已挂载但损坏、为空或不一致时标记 unavailable 并 fail closed。
755
841
  - 退出计划模式先恢复进入前的 sandbox/approval,再还原进入前所在的权限预设(registry 仍提供时)。
842
+ - 非 DSH 后端(如 Claude)声明原生权限模式时,`/permission` 列的是该后端的模式:
843
+ `default`(逐个询问)、`acceptEdits`(自动接受编辑)、`plan`(只读规划)、
844
+ `bypassPermissions`(跳过全部权限确认),模型支持时还有 `auto`,每行带一句解释。
845
+ `bypassPermissions` 只能在这个选择器里明确选择,`Shift+Tab` 的循环
846
+ default → acceptEdits → plan(→ auto)到不了它。状态栏总是显示当前模式
847
+ (`bypassPermissions`/`dontAsk` 用警告色),只有「极简界面」例外。Claude 设置里的
848
+ `defaultMode: bypassPermissions` 会降为 `default` 并在转录里提示,克隆来的仓库不能
849
+ 悄悄关掉所有确认。
850
+ - `/permission` 的选择会存进 `~/.dsh-tui/backends/claude/prefs.json`(与模型、effort
851
+ 同一个文件),之后的会话按它启动。优先级:`DSH_TUI_CLAUDE_PERMISSION_MODE` 环境变量 >
852
+ 记住的选择 > Claude 设置 > `default`。按记住的选择以 `bypassPermissions` 启动时,转录里
853
+ 会提示一句。
756
854
  - `/lang` 切换中英界面语言(见「界面语言」)。
757
855
  - `/compact` 压缩会话历史;内核「极简模式」预设(Agent preset `minimal`,只有一个持久 shell 工具)既不挂载压缩服务也不剪枝工具结果,长会话可能撞上下文上限、超长工具输出整段留在上下文里,`/compact` 因此不可用(Help 与 `/` 补全标注「不可用」,进入该预设时提示一次)——与界面设置的「极简界面」无关。
758
856
  - `/thinking` 扩展思考显示开关,仅本次界面状态、**不持久化**。