@chatcode/chatcode-cli 3.0.5 → 3.0.6-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (495) hide show
  1. package/README.i18n.yaml +6 -6
  2. package/README.md +7 -0
  3. package/README.zh.md +7 -0
  4. package/lib/bin.js +19 -5
  5. package/lib/{command-errors-CnbcOM1a.js → command-errors-vCFKCJFq.js} +12 -12
  6. package/lib/{command-trees-CU7BxVJo.js → command-trees-N2_LR4f-.js} +2 -2
  7. package/lib/{component-identity-kZK1_hFy.js → component-identity-CaV_MmmE.js} +3 -3
  8. package/lib/desktop-history-B0iUekXf.js +72 -0
  9. package/lib/desktop-history-DvgkONgj.js +2 -0
  10. package/lib/{dump-config-D8kXfdTs.js → dump-config-CgIYHBp2.js} +1 -1
  11. package/lib/dump-config-D6TruNva.js +2 -0
  12. package/lib/{dump-config-schema-CtZbroi6.js → dump-config-schema-GiAtkJwx.js} +2 -2
  13. package/lib/{extension-events-hLxwPvpg.js → extension-events-B5qKP0-X.js} +20 -20
  14. package/lib/{host-access-kT-u85k_.js → host-access-BRXW3V8i.js} +1 -1
  15. package/lib/{keymap-DS1M8sDo.js → keymap-BYjklwli.js} +2 -2
  16. package/lib/{plugin-CYw-MBRn.js → plugin-BACkrsVG.js} +1 -1
  17. package/lib/{plugin-d65VulBk.js → plugin-VYAv2o0K.js} +498 -348
  18. package/lib/{profile-boot-CffsubnV.js → profile-boot-c5YKtUIb.js} +17 -4
  19. package/lib/profile-boot.js +1 -1
  20. package/lib/{scenes-DG6T8t-A.js → scenes-B-iDMpgW.js} +3 -3
  21. package/lib/{settings-sections-2SuE0biI.js → settings-sections-CYCrZKUk.js} +3 -3
  22. package/lib/{statusBarSettings-B2MEAwnI.js → statusBarSettings-Cu-b_o4Q.js} +3 -3
  23. package/lib/{themes-DUO7kGW-.js → themes-DC9GpV6q.js} +12 -12
  24. package/lib/tui-compat-command-trees.js +1 -1
  25. package/lib/tui-compat-extensions.js +3 -3
  26. package/lib/tui-compat-plugin-host.js +5 -5
  27. package/lib/tui-compat-scenes.js +1 -1
  28. package/lib/tui-compat-settings-sections.js +1 -1
  29. package/lib/tui-compat-working-activity.js +1 -1
  30. package/lib/tui-compat-workspaces.js +1 -1
  31. package/lib/tui-compat.js +6 -6
  32. package/lib/types/args.d.ts +8 -1
  33. package/lib/types/desktop-history.d.ts +31 -0
  34. package/lib/types/installed-bin.d.ts +9 -0
  35. package/lib/{workspaces-CLOkL_yE.js → workspaces-BchdRzlw.js} +2 -2
  36. package/package.json +26 -26
  37. package/runtime/manifest.json +3 -2
  38. package/runtime/node_modules/@chatcode/runtime-client/README.md +225 -0
  39. package/runtime/node_modules/@chatcode/runtime-client/desktop-history-guard.mjs +65 -0
  40. package/runtime/node_modules/@chatcode/runtime-client/desktop-history.mjs +278 -0
  41. package/runtime/node_modules/@chatcode/runtime-client/desktop-permission-gate.mjs +28 -0
  42. package/runtime/node_modules/@chatcode/runtime-client/execution.mjs +593 -0
  43. package/runtime/node_modules/@chatcode/runtime-client/index.d.ts +449 -0
  44. package/runtime/node_modules/@chatcode/runtime-client/model-preferences.mjs +57 -0
  45. package/runtime/node_modules/@chatcode/runtime-client/package.json +53 -0
  46. package/runtime/node_modules/@chatcode/runtime-client/runtime-connector.mjs +736 -0
  47. package/runtime/node_modules/@chatcode/runtime-client/session-activity.mjs +121 -0
  48. package/runtime/node_modules/@chatcode/runtime-client/session-browser.mjs +122 -0
  49. package/runtime/node_modules/@chatcode/runtime-client/stdio-bridge.mjs +103 -0
  50. package/runtime/node_modules/@chatcode/runtime-client/user-questions.mjs +108 -0
  51. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts +69 -0
  52. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts.map +1 -0
  53. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts +68 -0
  54. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts.map +1 -0
  55. package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts +9 -0
  56. package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts.map +1 -0
  57. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/index.js +2 -2
  58. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.d.ts +6 -0
  59. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +2 -2
  60. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/runtime-types.d.ts +12 -3
  61. package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +11 -0
  62. package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/types/index.d.ts +7 -0
  63. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +69 -17
  64. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/invariant.js +1 -1
  65. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/agent.d.ts +3 -1
  66. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/inbox.d.ts +13 -0
  67. package/runtime/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +5 -5
  68. package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.d.ts +40 -0
  69. package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.js +164 -0
  70. package/runtime/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +460 -79
  71. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +636 -44
  72. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +483 -55
  73. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.d.ts +19 -1
  74. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +377 -40
  75. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.d.ts +24 -4
  76. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +97 -15
  77. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +1 -1
  78. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.d.ts +11 -2
  79. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +172 -18
  80. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.d.ts +35 -0
  81. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
  82. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.d.ts +43 -0
  83. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.js +80 -0
  84. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.d.ts +104 -0
  85. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +294 -0
  86. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.d.ts +105 -0
  87. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +297 -0
  88. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +4 -4
  89. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.d.ts +88 -1
  90. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +230 -6
  91. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.d.ts +64 -0
  92. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.js +79 -0
  93. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.d.ts +45 -0
  94. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.js +289 -0
  95. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.d.ts +40 -0
  96. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.js +112 -0
  97. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.d.ts +93 -1
  98. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.d.ts +25 -0
  99. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.js +139 -0
  100. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +9 -0
  101. package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +5 -5
  102. package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.d.ts +42 -0
  103. package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.js +101 -0
  104. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/bundle-platform.d.ts +17 -0
  105. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/startup-diagnostics.d.ts +38 -0
  106. package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/client/socket.d.ts +50 -0
  107. package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/connect-protocol.d.ts +6 -0
  108. package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/peer.d.ts +36 -0
  109. package/runtime/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +5 -5
  110. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/de.d.ts +47 -0
  111. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/es.d.ts +47 -0
  112. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/fr.d.ts +47 -0
  113. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ja.d.ts +47 -0
  114. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/pt.d.ts +47 -0
  115. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ru.d.ts +47 -0
  116. package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/assets.d.ts +51 -0
  117. package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/notify.d.ts +8 -0
  118. package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/release-change.d.ts +44 -0
  119. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/CreatePluginMenuItem.d.ts +20 -0
  120. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/analytics.d.ts +8 -0
  121. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalCard.d.ts +8 -0
  122. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalWarning.d.ts +10 -0
  123. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/PixelWhale.d.ts +14 -0
  124. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/artwork.d.ts +17 -0
  125. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/code-fill.d.ts +21 -0
  126. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/renderer.d.ts +20 -0
  127. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ChatFlow.d.ts +4 -0
  128. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ReasoningContent.d.ts +16 -0
  129. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningStatus.d.ts +18 -0
  130. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningWhaleTail.d.ts +6 -0
  131. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/UserContent.d.ts +9 -0
  132. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/flow-motion.d.ts +110 -0
  133. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-interaction.d.ts +19 -0
  134. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-selection.d.ts +20 -0
  135. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/contract/group-tree.d.ts +32 -0
  136. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/conversation-nodes/group-tree-segments.d.ts +42 -0
  137. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/file-path.d.ts +11 -0
  138. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/reasoning-text.d.ts +8 -0
  139. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/index.d.ts +2 -2
  140. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/types/client/option-groups.d.ts +15 -0
  141. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/text-interaction.d.ts +31 -0
  142. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/user-text.d.ts +60 -0
  143. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/interaction-registry.d.ts +28 -0
  144. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-document.d.ts +21 -0
  145. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-registry.d.ts +26 -0
  146. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/draft.d.ts +23 -0
  147. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/CommandChip.d.ts +13 -0
  148. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/QuoteNode.d.ts +61 -0
  149. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-node.d.ts +87 -0
  150. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-selection.d.ts +20 -0
  151. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/prompt.d.ts +9 -0
  152. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/submission-analytics.d.ts +10 -0
  153. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/UserText.d.ts +22 -0
  154. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/session-reference-rule.d.ts +15 -0
  155. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/whitespace-rules.d.ts +7 -0
  156. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/view-pins.d.ts +22 -0
  157. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/GoalCommandReference.d.ts +9 -0
  158. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/user-text-rules.d.ts +21 -0
  159. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/types/client/provider-order.d.ts +10 -0
  160. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/context-menus.d.ts +18 -0
  161. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/open-toast.d.ts +40 -0
  162. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/outcome.d.ts +7 -0
  163. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/session-open-with.d.ts +14 -0
  164. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/BundleDetailSection.d.ts +26 -0
  165. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/PluginRefreshToast.d.ts +17 -0
  166. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/detail-store.d.ts +76 -0
  167. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/header-scroll.d.ts +14 -0
  168. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/sanitize-install-input.d.ts +8 -0
  169. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/tab-ledger.d.ts +15 -0
  170. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/versions.d.ts +33 -0
  171. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/AnimatedRows.module.css +7 -0
  172. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +12 -0
  173. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DetailDocument.module.css +67 -0
  174. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/InlineEditor.module.css +23 -0
  175. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
  176. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/QuotePreview.module.css +101 -0
  177. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RowDragPreview.module.css +12 -0
  178. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/UserMessageBubble.module.css +11 -0
  179. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ZoomControls.module.css +54 -0
  180. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/AnimatedRows.d.ts +49 -0
  181. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +16 -0
  182. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DetailDocument.d.ts +78 -0
  183. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DraggableImage.d.ts +19 -0
  184. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCardGroup.d.ts +25 -0
  185. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/InlineEditor.d.ts +23 -0
  186. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
  187. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuRow.d.ts +37 -0
  188. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/QuotePreview.d.ts +24 -0
  189. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SubmenuPanel.d.ts +19 -0
  190. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/UserMessageBubble.d.ts +11 -0
  191. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ZoomControls.d.ts +27 -0
  192. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/document-zoom.d.ts +17 -0
  193. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-drag-actions.d.ts +32 -0
  194. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/artwork.d.ts +426 -0
  195. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/image-drag.d.ts +17 -0
  196. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/copy-tex.d.ts +14 -0
  197. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/quote-text.d.ts +8 -0
  198. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/windows-path-destinations.d.ts +11 -0
  199. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/menu-submenu-position.d.ts +15 -0
  200. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/tooltip-placement.d.ts +35 -0
  201. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-clipboard-copy.d.ts +14 -0
  202. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useMenuSubmenu.d.ts +43 -0
  203. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useRowDragPreview.d.ts +20 -0
  204. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/FileReference.d.ts +29 -0
  205. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/user-text-rules.d.ts +18 -0
  206. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/NewSessionLimit.d.ts +12 -0
  207. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/RuleSelectRow.d.ts +22 -0
  208. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/ScheduleEmptyIllustration.d.ts +12 -0
  209. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskEditorFields.d.ts +54 -0
  210. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskRuleControls.d.ts +50 -0
  211. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/clear-ended.d.ts +33 -0
  212. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-store.d.ts +32 -0
  213. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-timing.d.ts +47 -0
  214. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/task-record.d.ts +30 -0
  215. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  216. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/account-avatar.d.ts +37 -0
  217. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/browser-login.d.ts +33 -0
  218. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/notice-transition.d.ts +7 -0
  219. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/index.d.ts +2 -2
  220. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/onboarding-settings.d.ts +1 -1
  221. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  222. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/DesktopChannelRow.d.ts +31 -0
  223. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/HostReleasePrompt.d.ts +24 -0
  224. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-channel-source.d.ts +43 -0
  225. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ApiKeyInput.d.ts +17 -0
  226. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ModelReasoningEfforts.d.ts +43 -0
  227. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/useModelRows.d.ts +41 -0
  228. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  229. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/PanelIcon.d.ts +9 -0
  230. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/panel-pins.d.ts +21 -0
  231. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/scroll-handoff.d.ts +24 -0
  232. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.frontmatter-fields.js +5768 -0
  233. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/PreviewFrame.d.ts +34 -0
  234. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/image/pan.d.ts +8 -0
  235. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter-fields.d.ts +20 -0
  236. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter.d.ts +13 -0
  237. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileNavigator.d.ts +33 -0
  238. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileTree.d.ts +114 -0
  239. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/NavigatorToggle.d.ts +28 -0
  240. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/navigator-layout.d.ts +6 -0
  241. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/workspace-tree.d.ts +51 -0
  242. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/TabMenuContent.d.ts +13 -0
  243. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/flash.d.ts +10 -0
  244. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/GuideMoreIcon.d.ts +7 -0
  245. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/guide-pins.d.ts +28 -0
  246. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/SkillReference.d.ts +19 -0
  247. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/user-text-rules.d.ts +17 -0
  248. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/slots.d.ts +12 -0
  249. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontFamilyRow.d.ts +19 -0
  250. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontSettingsGroup.d.ts +19 -0
  251. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/icon-sprite.d.ts +17 -0
  252. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/ExitCodeBadge.d.ts +9 -0
  253. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/QuestionToolRow.d.ts +13 -0
  254. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/file-menu.d.ts +15 -0
  255. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/models/recorded-path.d.ts +8 -0
  256. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/client/watch-tool-result.d.ts +15 -0
  257. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/types.d.ts +16 -0
  258. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/QuestionReplyView.d.ts +16 -0
  259. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/question-reply.d.ts +74 -0
  260. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/contract/toast.d.ts +67 -0
  261. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/path-suffix.d.ts +15 -0
  262. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/rows/WorkspaceDialogs.d.ts +10 -0
  263. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/SessionMenu.d.ts +6 -0
  264. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/context-menus.d.ts +12 -0
  265. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/Toast.d.ts +21 -0
  266. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/register.d.ts +10 -0
  267. package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -5
  268. package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.d.ts +46 -0
  269. package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
  270. package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +11 -8
  271. package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/types/index.d.ts +3 -1
  272. package/runtime/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -10
  273. package/runtime/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/types/locales.d.ts +48 -0
  274. package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/MicrophonePicker.d.ts +6 -0
  275. package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/failure-text.d.ts +11 -0
  276. package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/microphone-device.d.ts +13 -0
  277. package/runtime/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -5
  278. package/runtime/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-Dc3g2Bl1.js} +11 -7
  279. package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/module-files.d.ts +48 -0
  280. package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/package-manifest.d.ts +35 -0
  281. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/index.js +241 -64
  282. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +26 -11
  283. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  284. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.d.ts +19 -0
  285. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.js +5 -1
  286. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.d.ts +30 -6
  287. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +109 -8
  288. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/message.d.ts +5 -0
  289. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.d.ts +5 -0
  290. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.js +32 -0
  291. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/types.d.ts +7 -0
  292. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +19 -7
  293. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/config.d.ts +3 -3
  294. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/credential.d.ts +34 -0
  295. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listed-catalog.d.ts +56 -0
  296. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-cache.d.ts +71 -0
  297. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-config.d.ts +48 -0
  298. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing.d.ts +91 -0
  299. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocol-adapter.d.ts +3 -1
  300. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/types/config.d.ts +2 -2
  301. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/types/config.d.ts +2 -2
  302. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +149 -28
  303. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/adapter.d.ts +3 -1
  304. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/prompt-options.d.ts +17 -0
  305. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.d.ts +10 -0
  306. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.generated.d.ts +10 -0
  307. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/types.d.ts +8 -0
  308. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/credentials.d.ts +34 -0
  309. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/deadline.d.ts +12 -0
  310. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/diagnostic.d.ts +22 -0
  311. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/generation.d.ts +42 -0
  312. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/probe.d.ts +37 -0
  313. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/status.d.ts +87 -0
  314. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/templates.d.ts +37 -0
  315. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/types.d.ts +85 -0
  316. package/runtime/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +4 -4
  317. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.d.ts +40 -0
  318. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.js +85 -0
  319. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.d.ts +17 -0
  320. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.js +72 -0
  321. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.d.ts +27 -0
  322. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.js +65 -0
  323. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.d.ts +15 -0
  324. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.js +54 -0
  325. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.d.ts +40 -0
  326. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.js +61 -0
  327. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/config.d.ts +38 -0
  328. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/configuration.d.ts +10 -0
  329. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/async-function.d.ts +8 -0
  330. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/index.d.ts +12 -0
  331. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/repl.d.ts +8 -0
  332. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/types.d.ts +68 -0
  333. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script-await.d.ts +8 -0
  334. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script.d.ts +8 -0
  335. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/execution.d.ts +66 -0
  336. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/evaluation-ended.d.ts +7 -0
  337. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/module-hooks.d.ts +37 -0
  338. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/vm-modules.d.ts +35 -0
  339. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process-entry.d.ts +2 -0
  340. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process.d.ts +16 -0
  341. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/policy-processes.d.ts +30 -0
  342. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/rpc.d.ts +13 -0
  343. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/worker.d.ts +66 -0
  344. package/runtime/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +215 -9
  345. package/runtime/node_modules/@deepseek-ai/dsh-sandbox/lib/types/locales.d.ts +41 -0
  346. package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types/acl-skill.d.ts +19 -0
  347. package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-Ci-q7_aQ.js → types-DwkEVVWZ.js} +357 -81
  348. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-activity.d.ts +43 -0
  349. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-content.d.ts +21 -0
  350. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-input.d.ts +12 -0
  351. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/user-questions.d.ts +17 -0
  352. package/runtime/node_modules/@deepseek-ai/dsh-session/lib/index.js +2 -1
  353. package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/request-header.js +2 -0
  354. package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/types.d.ts +2 -0
  355. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/CopyToast.d.ts +21 -0
  356. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/copy-controller.d.ts +76 -0
  357. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/markdown.d.ts +22 -0
  358. package/runtime/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +197 -9
  359. package/runtime/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +5 -5
  360. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +5 -5
  361. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.d.ts +112 -0
  362. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +112 -0
  363. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.d.ts +232 -0
  364. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +1250 -0
  365. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.d.ts +56 -0
  366. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
  367. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.d.ts +49 -0
  368. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +130 -0
  369. package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/types/linux-scope-selector.d.ts +60 -0
  370. package/runtime/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +215 -9
  371. package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.d.ts +74 -0
  372. package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.js +94 -0
  373. package/runtime/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/types/timed.d.ts +13 -0
  374. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +31 -1
  375. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-output.d.ts +140 -0
  376. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-presentation.d.ts +15 -0
  377. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch.d.ts +10 -0
  378. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/mutation-result.d.ts +18 -0
  379. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/execute.d.ts +17 -0
  380. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/index.d.ts +17 -0
  381. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/plan.d.ts +52 -0
  382. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/preflight.d.ts +18 -0
  383. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/types.d.ts +106 -0
  384. package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent/lib/types/preset-selection.d.ts +36 -0
  385. package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.d.ts +8 -0
  386. package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.js +104 -0
  387. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.d.ts +26 -0
  388. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.js +246 -0
  389. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.d.ts +376 -0
  390. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.js +51 -0
  391. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.d.ts +58 -0
  392. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.js +2 -0
  393. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.d.ts +90 -0
  394. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.js +19 -0
  395. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.d.ts +154 -0
  396. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.js +701 -0
  397. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.d.ts +13 -0
  398. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.js +15 -0
  399. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.d.ts +32 -0
  400. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.js +9 -0
  401. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.d.ts +21 -0
  402. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.js +143 -0
  403. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.d.ts +85 -0
  404. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
  405. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.d.ts +37 -0
  406. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
  407. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/cron.d.ts +54 -0
  408. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/duration.d.ts +61 -0
  409. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/instant.d.ts +145 -0
  410. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/recurrence.d.ts +38 -0
  411. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/rrule.d.ts +34 -0
  412. package/runtime/node_modules/@deepseek-ai/dsh-util-values/lib/types/partial-json.d.ts +152 -0
  413. package/runtime/node_modules/@deepseek-ai/dsh-web-app/lib/types/public-url.d.ts +16 -0
  414. package/lib/dump-config-DuCc-QB7.js +0 -2
  415. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.d.ts +0 -26
  416. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
  417. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/watch-config.d.ts +0 -13
  418. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/types/ImageLightbox.d.ts +0 -27
  419. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/queue.d.ts +0 -9
  420. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/queue-store.d.ts +0 -20
  421. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/ProducedFiles.d.ts +0 -14
  422. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/icons.d.ts +0 -8
  423. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -29
  424. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
  425. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-contract.d.ts +0 -86
  426. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-scope.d.ts +0 -141
  427. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-update-bridge.d.ts +0 -23
  428. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/AgentLoopCard.d.ts +0 -12
  429. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/BashCard.d.ts +0 -12
  430. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/ConfigurablePluginsTab.d.ts +0 -19
  431. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginCard.d.ts +0 -42
  432. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginConfigForm.d.ts +0 -34
  433. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentCard.d.ts +0 -12
  434. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentLimitsFields.d.ts +0 -14
  435. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionCard.d.ts +0 -12
  436. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionFields.d.ts +0 -14
  437. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/WebSearchCard.d.ts +0 -16
  438. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/agent-loop-card-controller.d.ts +0 -43
  439. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/bash-card-controller.d.ts +0 -45
  440. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/card-form.d.ts +0 -171
  441. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/fields.d.ts +0 -69
  442. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/slot-contract.d.ts +0 -31
  443. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-card-controller.d.ts +0 -32
  444. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-limits-card-controller.d.ts +0 -33
  445. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-model-selection-card-controller.d.ts +0 -129
  446. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/tab-store.d.ts +0 -65
  447. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/web-search-card-controller.d.ts +0 -93
  448. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/code/languages.d.ts +0 -9
  449. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/icons.d.ts +0 -14
  450. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/pdf/PdfBody.d.ts +0 -24
  451. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/types/client/TerminalBody.d.ts +0 -14
  452. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/subagent-lineage.d.ts +0 -21
  453. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/subagent-lineage.d.ts +0 -21
  454. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/defaults.d.ts +0 -24
  455. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-id.d.ts +0 -19
  456. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-store.d.ts +0 -86
  457. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/files-api.d.ts +0 -111
  458. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/image-tokens.d.ts +0 -34
  459. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/messages-api.d.ts +0 -10
  460. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/model-info.d.ts +0 -16
  461. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/models.d.ts +0 -4
  462. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-extensions.d.ts +0 -16
  463. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-files.d.ts +0 -49
  464. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-pricing.d.ts +0 -60
  465. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/types.d.ts +0 -119
  466. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/upload-index.d.ts +0 -68
  467. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/adapter.d.ts +0 -45
  468. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/serialize.d.ts +0 -78
  469. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/sse.d.ts +0 -24
  470. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/translate.d.ts +0 -37
  471. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/types.d.ts +0 -178
  472. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/adapter.d.ts +0 -47
  473. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/images.d.ts +0 -35
  474. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/replay.d.ts +0 -27
  475. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/serialize.d.ts +0 -18
  476. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/sse.d.ts +0 -8
  477. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/translate.d.ts +0 -14
  478. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/transport.d.ts +0 -15
  479. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/types.d.ts +0 -62
  480. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.d.ts +0 -19
  481. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +0 -30
  482. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.d.ts +0 -35
  483. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +0 -68
  484. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.d.ts +0 -10
  485. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +0 -22
  486. package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.d.ts +0 -16
  487. package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
  488. package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +0 -1525
  489. package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
  490. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.d.ts +0 -28
  491. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.js +0 -25
  492. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.d.ts +0 -93
  493. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.js +0 -303
  494. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.d.ts +0 -3
  495. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.js +0 -5
@@ -94,6 +94,7 @@ import { SessionQueryError } from '@deepseek-ai/dsh-session-query';
94
94
  import { Remote, RemoteError, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
95
95
  import { ApiSessionAgentController, inspectApiSession, } from "./agent.js";
96
96
  import { SessionCommandController } from "./commands.js";
97
+ import { LoginTokenStore } from "./login-token-store.js";
97
98
  import { SessionControlController } from "./control.js";
98
99
  import { SessionHistoryController } from "./history.js";
99
100
  import { SessionFileReferences } from "./file-references.js";
@@ -113,14 +114,23 @@ let SessionController = (() => {
113
114
  let _list_decorators;
114
115
  let _search_decorators;
115
116
  let _create_decorators;
117
+ let _workspaceAccess_decorators;
118
+ let _setWorkspaceAccess_decorators;
119
+ let _toolCatalog_decorators;
120
+ let _release_decorators;
121
+ let _setLoginToken_decorators;
122
+ let _clearLoginToken_decorators;
123
+ let _resume_decorators;
116
124
  let _selectModel_decorators;
117
125
  let _initializeDefaultModel_decorators;
118
126
  let _modelCatalog_decorators;
127
+ let _refreshModelCatalog_decorators;
119
128
  let _canOpenWorkspacePath_decorators;
120
129
  let _openWorkspacePath_decorators;
121
130
  let _workspacePathApplications_decorators;
122
131
  let _rename_decorators;
123
132
  let _fork_decorators;
133
+ let _promptModelConfig_decorators;
124
134
  let _prompt_decorators;
125
135
  let _attachment_decorators;
126
136
  let _updateQueue_decorators;
@@ -135,14 +145,23 @@ let SessionController = (() => {
135
145
  _list_decorators = [Remote('list')];
136
146
  _search_decorators = [Remote('search')];
137
147
  _create_decorators = [Remote('create')];
148
+ _workspaceAccess_decorators = [Remote('workspaceAccess')];
149
+ _setWorkspaceAccess_decorators = [Remote('setWorkspaceAccess')];
150
+ _toolCatalog_decorators = [Remote('toolCatalog')];
151
+ _release_decorators = [Remote('release')];
152
+ _setLoginToken_decorators = [Remote('setLoginToken')];
153
+ _clearLoginToken_decorators = [Remote('clearLoginToken')];
154
+ _resume_decorators = [Remote('resume')];
138
155
  _selectModel_decorators = [Remote('selectModel')];
139
156
  _initializeDefaultModel_decorators = [Remote];
140
157
  _modelCatalog_decorators = [Remote('modelCatalog')];
158
+ _refreshModelCatalog_decorators = [Remote('refreshModelCatalog')];
141
159
  _canOpenWorkspacePath_decorators = [Remote];
142
160
  _openWorkspacePath_decorators = [Remote('openWorkspacePath')];
143
161
  _workspacePathApplications_decorators = [Remote('workspacePathApplications')];
144
162
  _rename_decorators = [Remote('rename')];
145
163
  _fork_decorators = [Remote('fork')];
164
+ _promptModelConfig_decorators = [Remote('promptModelConfig')];
146
165
  _prompt_decorators = [Remote('prompt')];
147
166
  _attachment_decorators = [Remote('attachment')];
148
167
  _updateQueue_decorators = [Remote('updateQueue')];
@@ -154,14 +173,23 @@ let SessionController = (() => {
154
173
  __esDecorate(this, null, _list_decorators, { kind: "method", name: "list", static: false, private: false, access: { has: obj => "list" in obj, get: obj => obj.list }, metadata: _metadata }, null, _instanceExtraInitializers);
155
174
  __esDecorate(this, null, _search_decorators, { kind: "method", name: "search", static: false, private: false, access: { has: obj => "search" in obj, get: obj => obj.search }, metadata: _metadata }, null, _instanceExtraInitializers);
156
175
  __esDecorate(this, null, _create_decorators, { kind: "method", name: "create", static: false, private: false, access: { has: obj => "create" in obj, get: obj => obj.create }, metadata: _metadata }, null, _instanceExtraInitializers);
176
+ __esDecorate(this, null, _workspaceAccess_decorators, { kind: "method", name: "workspaceAccess", static: false, private: false, access: { has: obj => "workspaceAccess" in obj, get: obj => obj.workspaceAccess }, metadata: _metadata }, null, _instanceExtraInitializers);
177
+ __esDecorate(this, null, _setWorkspaceAccess_decorators, { kind: "method", name: "setWorkspaceAccess", static: false, private: false, access: { has: obj => "setWorkspaceAccess" in obj, get: obj => obj.setWorkspaceAccess }, metadata: _metadata }, null, _instanceExtraInitializers);
178
+ __esDecorate(this, null, _toolCatalog_decorators, { kind: "method", name: "toolCatalog", static: false, private: false, access: { has: obj => "toolCatalog" in obj, get: obj => obj.toolCatalog }, metadata: _metadata }, null, _instanceExtraInitializers);
179
+ __esDecorate(this, null, _release_decorators, { kind: "method", name: "release", static: false, private: false, access: { has: obj => "release" in obj, get: obj => obj.release }, metadata: _metadata }, null, _instanceExtraInitializers);
180
+ __esDecorate(this, null, _setLoginToken_decorators, { kind: "method", name: "setLoginToken", static: false, private: false, access: { has: obj => "setLoginToken" in obj, get: obj => obj.setLoginToken }, metadata: _metadata }, null, _instanceExtraInitializers);
181
+ __esDecorate(this, null, _clearLoginToken_decorators, { kind: "method", name: "clearLoginToken", static: false, private: false, access: { has: obj => "clearLoginToken" in obj, get: obj => obj.clearLoginToken }, metadata: _metadata }, null, _instanceExtraInitializers);
182
+ __esDecorate(this, null, _resume_decorators, { kind: "method", name: "resume", static: false, private: false, access: { has: obj => "resume" in obj, get: obj => obj.resume }, metadata: _metadata }, null, _instanceExtraInitializers);
157
183
  __esDecorate(this, null, _selectModel_decorators, { kind: "method", name: "selectModel", static: false, private: false, access: { has: obj => "selectModel" in obj, get: obj => obj.selectModel }, metadata: _metadata }, null, _instanceExtraInitializers);
158
184
  __esDecorate(this, null, _initializeDefaultModel_decorators, { kind: "method", name: "initializeDefaultModel", static: false, private: false, access: { has: obj => "initializeDefaultModel" in obj, get: obj => obj.initializeDefaultModel }, metadata: _metadata }, null, _instanceExtraInitializers);
159
185
  __esDecorate(this, null, _modelCatalog_decorators, { kind: "method", name: "modelCatalog", static: false, private: false, access: { has: obj => "modelCatalog" in obj, get: obj => obj.modelCatalog }, metadata: _metadata }, null, _instanceExtraInitializers);
186
+ __esDecorate(this, null, _refreshModelCatalog_decorators, { kind: "method", name: "refreshModelCatalog", static: false, private: false, access: { has: obj => "refreshModelCatalog" in obj, get: obj => obj.refreshModelCatalog }, metadata: _metadata }, null, _instanceExtraInitializers);
160
187
  __esDecorate(this, null, _canOpenWorkspacePath_decorators, { kind: "method", name: "canOpenWorkspacePath", static: false, private: false, access: { has: obj => "canOpenWorkspacePath" in obj, get: obj => obj.canOpenWorkspacePath }, metadata: _metadata }, null, _instanceExtraInitializers);
161
188
  __esDecorate(this, null, _openWorkspacePath_decorators, { kind: "method", name: "openWorkspacePath", static: false, private: false, access: { has: obj => "openWorkspacePath" in obj, get: obj => obj.openWorkspacePath }, metadata: _metadata }, null, _instanceExtraInitializers);
162
189
  __esDecorate(this, null, _workspacePathApplications_decorators, { kind: "method", name: "workspacePathApplications", static: false, private: false, access: { has: obj => "workspacePathApplications" in obj, get: obj => obj.workspacePathApplications }, metadata: _metadata }, null, _instanceExtraInitializers);
163
190
  __esDecorate(this, null, _rename_decorators, { kind: "method", name: "rename", static: false, private: false, access: { has: obj => "rename" in obj, get: obj => obj.rename }, metadata: _metadata }, null, _instanceExtraInitializers);
164
191
  __esDecorate(this, null, _fork_decorators, { kind: "method", name: "fork", static: false, private: false, access: { has: obj => "fork" in obj, get: obj => obj.fork }, metadata: _metadata }, null, _instanceExtraInitializers);
192
+ __esDecorate(this, null, _promptModelConfig_decorators, { kind: "method", name: "promptModelConfig", static: false, private: false, access: { has: obj => "promptModelConfig" in obj, get: obj => obj.promptModelConfig }, metadata: _metadata }, null, _instanceExtraInitializers);
165
193
  __esDecorate(this, null, _prompt_decorators, { kind: "method", name: "prompt", static: false, private: false, access: { has: obj => "prompt" in obj, get: obj => obj.prompt }, metadata: _metadata }, null, _instanceExtraInitializers);
166
194
  __esDecorate(this, null, _attachment_decorators, { kind: "method", name: "attachment", static: false, private: false, access: { has: obj => "attachment" in obj, get: obj => obj.attachment }, metadata: _metadata }, null, _instanceExtraInitializers);
167
195
  __esDecorate(this, null, _updateQueue_decorators, { kind: "method", name: "updateQueue", static: false, private: false, access: { has: obj => "updateQueue" in obj, get: obj => obj.updateQueue }, metadata: _metadata }, null, _instanceExtraInitializers);
@@ -207,6 +235,8 @@ let SessionController = (() => {
207
235
  constructor(ctx, config, internals = {}) {
208
236
  super(ctx, 'sessionController', { namespace: 'session' });
209
237
  installModelSelectionProjection(ctx);
238
+ // Desktop-injected login token store: backed by the credentials service.
239
+ ctx.plugin(LoginTokenStore);
210
240
  this.agents = new ApiSessionAgentController(ctx);
211
241
  this.commands = new SessionCommandController(ctx, this.agents, process.cwd());
212
242
  ctx.effect(() => ctx.fileUploads.registerAgentResolver(async (sessionId) => {
@@ -334,7 +364,14 @@ let SessionController = (() => {
334
364
  * @returns visible Session summaries ordered by activity.
335
365
  */
336
366
  async list(_request, signal) {
337
- return { items: await this.listState.list(signal) };
367
+ try {
368
+ return { items: await this.listState.list(signal) };
369
+ }
370
+ catch (error) {
371
+ if (error instanceof RemoteError)
372
+ throw error;
373
+ throw new RemoteError('session/list-failed', 'failed to list sessions', {});
374
+ }
338
375
  }
339
376
  /**
340
377
  * Search visible Session content without resuming an Agent.
@@ -343,7 +380,14 @@ let SessionController = (() => {
343
380
  * @returns authorized bounded Session search results.
344
381
  */
345
382
  search(request, signal) {
346
- return this.listState.search(request.query, signal);
383
+ try {
384
+ return this.listState.search(request.query, signal);
385
+ }
386
+ catch (error) {
387
+ if (error instanceof RemoteError)
388
+ throw error;
389
+ throw new RemoteError('session/search-failed', 'failed to search sessions', {});
390
+ }
347
391
  }
348
392
  /**
349
393
  * Create or idempotently adopt one ordinary Session.
@@ -351,16 +395,156 @@ let SessionController = (() => {
351
395
  * @returns the Session identity and resolved preset when configured.
352
396
  */
353
397
  async create(request) {
398
+ this.ctx.logger.info('session-controller: create', { sessionId: request.sessionId, cwd: request.cwd, workspaceId: request.workspaceId });
354
399
  if (request.sessionId !== undefined)
355
400
  await this.assertNotDeleted(request.sessionId);
356
401
  return this.commands.create(request);
357
402
  }
403
+ /**
404
+ * Read the effective Runtime sandbox and approval policy for a Session.
405
+ * @param request - existing Session identity; cold Sessions may resume.
406
+ * @returns the active sandbox, durable preset name and approval mode.
407
+ */
408
+ async workspaceAccess(request) {
409
+ if (!request.sessionId)
410
+ throw new RemoteError('gateway/bad-request', 'sessionId is required', {});
411
+ await this.assertNotDeleted(request.sessionId);
412
+ const result = await this.agents.resolveAgent(request.sessionId);
413
+ if ('error' in result)
414
+ throw result.error;
415
+ const presets = this.ctx.get('permissionPresets');
416
+ if (!presets)
417
+ throw new RemoteError('session/capability-unavailable', 'Permission presets are not composed', {});
418
+ const preset = presets.current(result.agent.session);
419
+ const spec = presets.resolve(preset);
420
+ return { mode: spec.sandbox, preset, approval: spec.approval };
421
+ }
422
+ /**
423
+ * Change the durable permission state used by the Web picker, between tasks only.
424
+ * @param request - existing Session identity and requested workspace access.
425
+ * @returns the actual policy after persistence; active work or queued inputs are refused.
426
+ */
427
+ async setWorkspaceAccess(request) {
428
+ if (!['read-only', 'workspace-write', 'danger-full-access'].includes(request.mode))
429
+ throw new RemoteError('gateway/bad-request', 'Unknown workspace access', {});
430
+ await this.assertNotDeleted(request.sessionId);
431
+ const result = await this.agents.resolveAgent(request.sessionId);
432
+ if ('error' in result)
433
+ throw result.error;
434
+ const agent = result.agent;
435
+ return this.agents.serializeImageAdmission(agent, async () => {
436
+ this.agents.assertWritable(agent);
437
+ if (agent.status !== 'idle' || agent.inbox.nextStep.length || agent.inbox.nextTurn.length)
438
+ throw new RemoteError('session/agent-busy', 'Stop or finish the task before changing workspace access', { reason: String(agent.id) });
439
+ const presets = this.ctx.get('permissionPresets');
440
+ if (!presets)
441
+ throw new RemoteError('session/capability-unavailable', 'Permission presets are not composed', {});
442
+ presets.set(agent.session, request.mode);
443
+ return this.workspaceAccess({ sessionId: request.sessionId });
444
+ });
445
+ }
446
+ /**
447
+ * Read the executable Tool names in one resolved Agent scope.
448
+ * @param request - existing Session identity; cold Sessions may resume.
449
+ * @returns enabled Tool names and descriptions, without execution callbacks.
450
+ */
451
+ async toolCatalog(request) {
452
+ if (!request.sessionId)
453
+ throw new RemoteError('gateway/bad-request', 'sessionId is required', {});
454
+ await this.assertNotDeleted(request.sessionId);
455
+ const result = await this.agents.resolveAgent(request.sessionId);
456
+ if ('error' in result)
457
+ throw result.error;
458
+ const tools = this.ctx.get('tools');
459
+ if (!tools)
460
+ throw new RemoteError('session/capability-unavailable', 'Tools are not composed', {});
461
+ return tools.schemas(result.agent).map(({ name, description }) => ({ name, description }));
462
+ }
463
+ /**
464
+ * Release an idle Session's writer without stopping other Sessions.
465
+ * @param request - ordinary Session identity owned by this controller.
466
+ * @returns acknowledgement after persistence has drained and unlocked.
467
+ */
468
+ async release(request) {
469
+ try {
470
+ await this.agents.releaseSession(request.sessionId);
471
+ return { released: true };
472
+ }
473
+ catch (error) {
474
+ if (error instanceof RemoteError)
475
+ throw error;
476
+ throw new RemoteError('session/release-failed', `failed to release session "${request.sessionId}"`, { sessionId: request.sessionId });
477
+ }
478
+ }
479
+ /**
480
+ * Inject a ChatCode OAuth grant into the credentials service.
481
+ *
482
+ * The desktop AI workbench calls this after completing OAuth to provide the
483
+ * access token and optional metadata (refreshToken, expiry, user info).
484
+ * The grant is stored in the credentials service (persisted to disk, encrypted)
485
+ * using the same credential key as ChatCodeAuthService, so the auth bundle
486
+ * automatically reads it without any modification.
487
+ *
488
+ * Token expiry is detected by API 401 responses, not by local clock.
489
+ * When the token expires, the LLM adapter returns API 401 naturally.
490
+ *
491
+ * @param request - ChatCode OAuth grant fields.
492
+ * @returns confirmation.
493
+ */
494
+ async setLoginToken(request) {
495
+ if (!request.accessToken || typeof request.accessToken !== 'string') {
496
+ throw new RemoteError('gateway/bad-request', 'accessToken is required', {});
497
+ }
498
+ try {
499
+ await this.ctx.loginTokenStore.set(request);
500
+ this.ctx.logger.info('session-controller: setLoginToken', { hasRefreshToken: request.refreshToken !== undefined });
501
+ return { ok: true };
502
+ }
503
+ catch (error) {
504
+ this.ctx.logger.error('session-controller: setLoginToken failed', { error: String(error) });
505
+ if (error instanceof RemoteError)
506
+ throw error;
507
+ throw new RemoteError('session/login-token-store-failed', `login token could not be stored: ${String(error)}`, {});
508
+ }
509
+ }
510
+ /**
511
+ * Remove the ChatCode OAuth token from the credentials service.
512
+ * @param _request - unused (no params needed).
513
+ * @returns confirmation.
514
+ */
515
+ async clearLoginToken(_request) {
516
+ try {
517
+ await this.ctx.loginTokenStore.delete();
518
+ this.ctx.logger.info('session-controller: clearLoginToken');
519
+ return { ok: true };
520
+ }
521
+ catch (error) {
522
+ this.ctx.logger.error('session-controller: clearLoginToken failed', { error: String(error) });
523
+ if (error instanceof RemoteError)
524
+ throw error;
525
+ throw new RemoteError('session/login-token-delete-failed', `login token could not be deleted: ${String(error)}`, {});
526
+ }
527
+ }
528
+ /**
529
+ * Resume an existing Session, optionally with provider/model overrides.
530
+ * The Session must already exist in persistence. Desktop AI workbenches use
531
+ * this after Runtime restart to re-inject the model selection.
532
+ * @param request - Session identity and optional provider/model override.
533
+ * @returns the Session identity and resolved model selection.
534
+ */
535
+ resume(request) {
536
+ if (!request.sessionId)
537
+ throw new RemoteError('gateway/bad-request', 'sessionId is required', {});
538
+ this.ctx.logger.info('session-controller: resume', { sessionId: request.sessionId });
539
+ return this.assertNotDeleted(request.sessionId).then(() => this.commands.resume(request));
540
+ }
358
541
  /**
359
542
  * Select a model after explicitly resuming the Session and awaiting default persistence.
360
543
  * @param request - Session identity and requested model selection.
361
544
  * @returns the normalized selection after the shared save and Session selection succeed.
362
545
  */
363
546
  selectModel(request) {
547
+ this.ctx.logger.info('session-controller: selectModel', { sessionId: request.sessionId, provider: request.provider, model: request.model });
364
548
  return this.assertNotDeleted(request.sessionId).then(() => this.commands.selectModel(request));
365
549
  }
366
550
  /**
@@ -388,6 +572,24 @@ let SessionController = (() => {
388
572
  * @returns provider-grouped models, the deployment default, and isolated provider failures.
389
573
  */
390
574
  modelCatalog() {
575
+ try {
576
+ return buildModelCatalog(this.ctx);
577
+ }
578
+ catch (error) {
579
+ if (error instanceof RemoteError)
580
+ throw error;
581
+ throw new RemoteError('session/model-catalog-failed', 'failed to build model catalog', {});
582
+ }
583
+ }
584
+ /** Refresh account-owned catalogs before returning safe model names and routes.
585
+ * @returns the current registry catalog; refresh failures reject without changing Session selection.
586
+ */
587
+ async refreshModelCatalog() {
588
+ this.ctx.logger.info('session-controller: refreshModelCatalog', {});
589
+ const catalog = this.ctx.get('chatcodeModelCatalog');
590
+ if (catalog === undefined)
591
+ throw new RemoteError('gateway/internal', 'ChatCode model catalog service is unavailable', {});
592
+ await catalog.refresh();
391
593
  return buildModelCatalog(this.ctx);
392
594
  }
393
595
  /**
@@ -395,7 +597,12 @@ let SessionController = (() => {
395
597
  * @returns true when the matching open operation is available.
396
598
  */
397
599
  canOpenWorkspacePath() {
398
- return this.canOpenPath();
600
+ try {
601
+ return this.canOpenPath();
602
+ }
603
+ catch {
604
+ return false;
605
+ }
399
606
  }
400
607
  /**
401
608
  * Describe the serving desktop for authenticated file-action routes.
@@ -472,6 +679,7 @@ let SessionController = (() => {
472
679
  * @returns the accepted title and durable event sequence.
473
680
  */
474
681
  rename(request) {
682
+ this.ctx.logger.info('session-controller: rename', { sessionId: request.sessionId });
475
683
  return this.assertNotDeleted(request.sessionId).then(() => this.commands.rename(request));
476
684
  }
477
685
  /**
@@ -482,8 +690,16 @@ let SessionController = (() => {
482
690
  * @returns the new Session identity.
483
691
  */
484
692
  fork(request) {
693
+ this.ctx.logger.info('session-controller: fork', { sessionId: request.sessionId });
485
694
  return this.assertNotDeleted(request.sessionId).then(() => this.commands.fork(request));
486
695
  }
696
+ /**
697
+ * Advertise support for request-local model configuration.
698
+ * @returns Supported model configuration version.
699
+ */
700
+ promptModelConfig() {
701
+ return { version: 1, requestApiKey: true, unifiedOptions: true };
702
+ }
487
703
  /**
488
704
  * Admit one prompt after explicitly resuming its Session.
489
705
  * @param request - Session identity, prompt content, source metadata, and delivery mode.
@@ -492,6 +708,7 @@ let SessionController = (() => {
492
708
  */
493
709
  prompt(request, signal) {
494
710
  signal.throwIfAborted();
711
+ this.ctx.logger.info('session-controller: prompt', { sessionId: request.sessionId, mode: request.mode });
495
712
  return this.assertNotDeleted(request.sessionId).then(() => this.commands.prompt(request));
496
713
  }
497
714
  /**
@@ -516,6 +733,7 @@ let SessionController = (() => {
516
733
  * @returns acknowledgement that cancellation was requested.
517
734
  */
518
735
  cancel(request) {
736
+ this.ctx.logger.info('session-controller: cancel', { sessionId: request.sessionId });
519
737
  return this.commands.cancel(request);
520
738
  }
521
739
  /**
@@ -551,7 +769,7 @@ let SessionController = (() => {
551
769
  async assertNotDeleted(sessionId) {
552
770
  await this.ctx.workspaceRegistry.refresh();
553
771
  if (this.ctx.workspaceRegistry.deletedSessionIds.includes(sessionId)) {
554
- throw new RemoteError('session/not-found', 'Session has been permanently deleted', { sessionId });
772
+ throw new RemoteError('session/deleted', 'Session has been permanently deleted', { sessionId });
555
773
  }
556
774
  }
557
775
  /**
@@ -601,8 +819,14 @@ let SessionController = (() => {
601
819
  * @param signal - cancellation owned by the Remote stream carrier.
602
820
  * @returns one complete baseline followed by live replacement frames.
603
821
  */
604
- control(signal) {
605
- return this.controlState.control(signal);
822
+ async *control(signal) {
823
+ try {
824
+ yield* this.controlState.control(signal);
825
+ }
826
+ catch (error) {
827
+ this.ctx.logger.error('session-controller: control stream failed', { error: String(error) });
828
+ throw error;
829
+ }
606
830
  }
607
831
  };
608
832
  })();
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Login token store for desktop-injected ChatCode OAuth tokens.
3
+ *
4
+ * Stores login tokens (obtained by the desktop AI workbench via OAuth) into
5
+ * the existing credentials service as GrantRecords, using the same credential
6
+ * key that ChatCodeAuthService reads from. This means the existing auth bundle
7
+ * automatically picks up desktop-injected tokens without modification.
8
+ *
9
+ * The storage format matches ChatCodeAuthService's AccountState:
10
+ * payload: { version: 2, grant: { version: 1, accessToken, refreshToken?, ... } }
11
+ *
12
+ * Runtime crash → token is preserved in the credentials service on disk.
13
+ * Desktop does NOT need to re-prompt the user for OAuth.
14
+ *
15
+ * @module @deepseek-ai/dsh-login-token-store
16
+ */
17
+ import { Service } from '@deepseek-ai/cordis';
18
+ import type { Context } from '@deepseek-ai/cordis';
19
+ declare module '@deepseek-ai/cordis' {
20
+ interface Context {
21
+ /** Login token store for desktop-injected ChatCode OAuth tokens. */
22
+ loginTokenStore: LoginTokenStore;
23
+ }
24
+ }
25
+ /** Grant fields the desktop may provide after completing OAuth. */
26
+ export interface DesktopGrantInput {
27
+ accessToken: string;
28
+ refreshToken?: string;
29
+ longToken?: string;
30
+ expiresAtMs?: number;
31
+ userName?: string;
32
+ emailAddress?: string;
33
+ }
34
+ /**
35
+ * Owns the login token store backed by the credentials service.
36
+ *
37
+ * Tokens are stored as GrantRecords in the same credential key used by
38
+ * ChatCodeAuthService. This ensures that status/accessToken/refreshToken
39
+ * automatically reads desktop-injected tokens without any modification to
40
+ * the auth bundle.
41
+ */
42
+ export declare class LoginTokenStore extends Service {
43
+ constructor(ctx: Context);
44
+ /**
45
+ * Store a ChatCode OAuth grant with accessToken and optional metadata.
46
+ * Replaces any existing grant for the same key using ChatCodeAuthService's
47
+ * payload format: { version: 2, grant: { version: 1, accessToken, ... } }.
48
+ *
49
+ * refreshToken defaults to accessToken when not provided, so ChatCodeAuthService
50
+ * can use it as a self-refresh credential when the provider does not issue a
51
+ * separate refresh token (implicit/OAuth PKCE flows).
52
+ */
53
+ set(input: DesktopGrantInput): Promise<void>;
54
+ /**
55
+ * Remove the ChatCode OAuth token from the credentials service.
56
+ */
57
+ delete(): Promise<void>;
58
+ /**
59
+ * Check whether a ChatCode OAuth token exists.
60
+ */
61
+ has(): Promise<boolean>;
62
+ }
63
+ export default LoginTokenStore;
64
+ //# sourceMappingURL=login-token-store.d.ts.map
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Login token store for desktop-injected ChatCode OAuth tokens.
3
+ *
4
+ * Stores login tokens (obtained by the desktop AI workbench via OAuth) into
5
+ * the existing credentials service as GrantRecords, using the same credential
6
+ * key that ChatCodeAuthService reads from. This means the existing auth bundle
7
+ * automatically picks up desktop-injected tokens without modification.
8
+ *
9
+ * The storage format matches ChatCodeAuthService's AccountState:
10
+ * payload: { version: 2, grant: { version: 1, accessToken, refreshToken?, ... } }
11
+ *
12
+ * Runtime crash → token is preserved in the credentials service on disk.
13
+ * Desktop does NOT need to re-prompt the user for OAuth.
14
+ *
15
+ * @module @deepseek-ai/dsh-login-token-store
16
+ */
17
+ import { Service } from '@deepseek-ai/cordis';
18
+ import { credentialKey } from '@deepseek-ai/dsh-credentials';
19
+ /**
20
+ * The ChatCode credential key shared with ChatCodeAuthService.
21
+ * Must match cco-llm-chatcode-config/src/chatcode-auth.ts CHATCODE_CREDENTIAL_KEY.
22
+ */
23
+ const CHATCODE_CREDENTIAL_KEY = credentialKey('chatcode-auth', 'default');
24
+ /**
25
+ * Owns the login token store backed by the credentials service.
26
+ *
27
+ * Tokens are stored as GrantRecords in the same credential key used by
28
+ * ChatCodeAuthService. This ensures that status/accessToken/refreshToken
29
+ * automatically reads desktop-injected tokens without any modification to
30
+ * the auth bundle.
31
+ */
32
+ export class LoginTokenStore extends Service {
33
+ constructor(ctx) {
34
+ super(ctx, 'loginTokenStore');
35
+ }
36
+ /**
37
+ * Store a ChatCode OAuth grant with accessToken and optional metadata.
38
+ * Replaces any existing grant for the same key using ChatCodeAuthService's
39
+ * payload format: { version: 2, grant: { version: 1, accessToken, ... } }.
40
+ *
41
+ * refreshToken defaults to accessToken when not provided, so ChatCodeAuthService
42
+ * can use it as a self-refresh credential when the provider does not issue a
43
+ * separate refresh token (implicit/OAuth PKCE flows).
44
+ */
45
+ async set(input) {
46
+ await this.ctx.credentials.modifyRecord(CHATCODE_CREDENTIAL_KEY, async () => {
47
+ return {
48
+ kind: 'grant',
49
+ payload: {
50
+ version: 2,
51
+ grant: {
52
+ version: 1,
53
+ accessToken: input.accessToken,
54
+ refreshToken: input.refreshToken ?? input.accessToken,
55
+ ...(input.longToken === undefined ? {} : { longToken: input.longToken }),
56
+ ...(input.expiresAtMs === undefined ? {} : { expiresAtMs: input.expiresAtMs }),
57
+ ...(input.userName === undefined ? {} : { userName: input.userName }),
58
+ ...(input.emailAddress === undefined ? {} : { emailAddress: input.emailAddress }),
59
+ },
60
+ },
61
+ };
62
+ });
63
+ }
64
+ /**
65
+ * Remove the ChatCode OAuth token from the credentials service.
66
+ */
67
+ async delete() {
68
+ await this.ctx.credentials.deleteRecord(CHATCODE_CREDENTIAL_KEY);
69
+ }
70
+ /**
71
+ * Check whether a ChatCode OAuth token exists.
72
+ */
73
+ async has() {
74
+ const record = await this.ctx.credentials.readRecord(CHATCODE_CREDENTIAL_KEY);
75
+ return record !== undefined;
76
+ }
77
+ }
78
+ export default LoginTokenStore;
79
+ //# sourceMappingURL=login-token-store.js.map
@@ -0,0 +1,45 @@
1
+ /** Passive Session state, coalesced observations and quiescence waits. */
2
+ import type { Context } from '@deepseek-ai/cordis';
3
+ import type { HistoryController } from '../history/controller.ts';
4
+ import type { SessionState, SessionStateRequest, SessionWaitRequest, SessionWaitValue } from '../types.ts';
5
+ /** Reads and waits without activating or cancelling Session execution. */
6
+ export declare class StateController {
7
+ private readonly ctx;
8
+ private readonly historyController;
9
+ /**
10
+ * @param ctx - live Session and pending Remote event services.
11
+ * @param historyController - passive read entry used for cold state and its bounded output.
12
+ */
13
+ constructor(ctx: Context, historyController: HistoryController);
14
+ /**
15
+ * Read passive execution and pending-input state.
16
+ * @param request - Session identity.
17
+ * @param signal - read cancellation.
18
+ * @returns current passive state.
19
+ */
20
+ state(request: SessionStateRequest, signal: AbortSignal): Promise<SessionState>;
21
+ /**
22
+ * Observe complete passive state replacements.
23
+ * @param request - Session identity.
24
+ * @param signal - observation cancellation.
25
+ * @returns complete state replacements, starting with the current state.
26
+ */
27
+ observeState(request: SessionStateRequest, signal: AbortSignal): AsyncIterable<SessionState>;
28
+ /**
29
+ * Wait for quiescence, pending input, or the deadline without cancelling execution.
30
+ * @param request - Session identity, timeout and assistant output window.
31
+ * @param signal - cancellation of this wait only, never of Agent execution.
32
+ * @returns the stopping reason and last complete state; no state before timeout is an error.
33
+ */
34
+ wait(request: SessionWaitRequest, signal: AbortSignal): Promise<SessionWaitValue>;
35
+ private listen;
36
+ /**
37
+ * @param sessionId - Session to sample.
38
+ * @param signal - read cancellation.
39
+ * @param retried - whether a live source already redirected this read once.
40
+ * @returns one passive state sample.
41
+ */
42
+ private readState;
43
+ private pendingInput;
44
+ }
45
+ //# sourceMappingURL=controller.d.ts.map