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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (478) 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/desktop-history-B0iUekXf.js +72 -0
  6. package/lib/desktop-history-DvgkONgj.js +2 -0
  7. package/lib/{dump-config-D8kXfdTs.js → dump-config-CgIYHBp2.js} +1 -1
  8. package/lib/dump-config-D6TruNva.js +2 -0
  9. package/lib/{dump-config-schema-CtZbroi6.js → dump-config-schema-GiAtkJwx.js} +2 -2
  10. package/lib/{plugin-CYw-MBRn.js → plugin-BACkrsVG.js} +1 -1
  11. package/lib/{profile-boot-CffsubnV.js → profile-boot-c5YKtUIb.js} +17 -4
  12. package/lib/profile-boot.js +1 -1
  13. package/lib/tui-compat.js +1 -1
  14. package/lib/types/args.d.ts +8 -1
  15. package/lib/types/desktop-history.d.ts +31 -0
  16. package/lib/types/installed-bin.d.ts +9 -0
  17. package/package.json +25 -25
  18. package/runtime/manifest.json +3 -2
  19. package/runtime/node_modules/@chatcode/runtime-client/README.md +225 -0
  20. package/runtime/node_modules/@chatcode/runtime-client/desktop-history-guard.mjs +65 -0
  21. package/runtime/node_modules/@chatcode/runtime-client/desktop-history.mjs +278 -0
  22. package/runtime/node_modules/@chatcode/runtime-client/desktop-permission-gate.mjs +28 -0
  23. package/runtime/node_modules/@chatcode/runtime-client/execution.mjs +593 -0
  24. package/runtime/node_modules/@chatcode/runtime-client/index.d.ts +449 -0
  25. package/runtime/node_modules/@chatcode/runtime-client/model-preferences.mjs +57 -0
  26. package/runtime/node_modules/@chatcode/runtime-client/package.json +53 -0
  27. package/runtime/node_modules/@chatcode/runtime-client/runtime-connector.mjs +736 -0
  28. package/runtime/node_modules/@chatcode/runtime-client/session-activity.mjs +121 -0
  29. package/runtime/node_modules/@chatcode/runtime-client/session-browser.mjs +122 -0
  30. package/runtime/node_modules/@chatcode/runtime-client/stdio-bridge.mjs +103 -0
  31. package/runtime/node_modules/@chatcode/runtime-client/user-questions.mjs +108 -0
  32. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts +69 -0
  33. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts.map +1 -0
  34. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts +68 -0
  35. package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts.map +1 -0
  36. package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts +9 -0
  37. package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts.map +1 -0
  38. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/index.js +2 -2
  39. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.d.ts +6 -0
  40. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +2 -2
  41. package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/runtime-types.d.ts +12 -3
  42. package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +11 -0
  43. package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/types/index.d.ts +7 -0
  44. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +69 -17
  45. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/invariant.js +1 -1
  46. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/agent.d.ts +3 -1
  47. package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/inbox.d.ts +13 -0
  48. package/runtime/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +5 -5
  49. package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.d.ts +40 -0
  50. package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.js +164 -0
  51. package/runtime/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +460 -79
  52. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +636 -44
  53. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +483 -55
  54. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.d.ts +19 -1
  55. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +377 -40
  56. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.d.ts +24 -4
  57. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +97 -15
  58. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +1 -1
  59. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.d.ts +11 -2
  60. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +172 -18
  61. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.d.ts +35 -0
  62. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
  63. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.d.ts +43 -0
  64. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.js +80 -0
  65. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.d.ts +104 -0
  66. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +294 -0
  67. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.d.ts +105 -0
  68. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +297 -0
  69. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +4 -4
  70. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.d.ts +88 -1
  71. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +230 -6
  72. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.d.ts +64 -0
  73. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.js +79 -0
  74. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.d.ts +45 -0
  75. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.js +289 -0
  76. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.d.ts +40 -0
  77. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.js +112 -0
  78. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.d.ts +93 -1
  79. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.d.ts +25 -0
  80. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.js +139 -0
  81. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +9 -0
  82. package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +5 -5
  83. package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.d.ts +42 -0
  84. package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.js +101 -0
  85. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/bundle-platform.d.ts +17 -0
  86. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/startup-diagnostics.d.ts +38 -0
  87. package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/client/socket.d.ts +50 -0
  88. package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/connect-protocol.d.ts +6 -0
  89. package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/peer.d.ts +36 -0
  90. package/runtime/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +5 -5
  91. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/de.d.ts +47 -0
  92. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/es.d.ts +47 -0
  93. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/fr.d.ts +47 -0
  94. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ja.d.ts +47 -0
  95. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/pt.d.ts +47 -0
  96. package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ru.d.ts +47 -0
  97. package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/assets.d.ts +51 -0
  98. package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/notify.d.ts +8 -0
  99. package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/release-change.d.ts +44 -0
  100. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/CreatePluginMenuItem.d.ts +20 -0
  101. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/analytics.d.ts +8 -0
  102. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalCard.d.ts +8 -0
  103. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalWarning.d.ts +10 -0
  104. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/PixelWhale.d.ts +14 -0
  105. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/artwork.d.ts +17 -0
  106. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/code-fill.d.ts +21 -0
  107. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/renderer.d.ts +20 -0
  108. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ChatFlow.d.ts +4 -0
  109. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ReasoningContent.d.ts +16 -0
  110. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningStatus.d.ts +18 -0
  111. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningWhaleTail.d.ts +6 -0
  112. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/UserContent.d.ts +9 -0
  113. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/flow-motion.d.ts +110 -0
  114. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-interaction.d.ts +19 -0
  115. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-selection.d.ts +20 -0
  116. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/contract/group-tree.d.ts +32 -0
  117. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/conversation-nodes/group-tree-segments.d.ts +42 -0
  118. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/file-path.d.ts +11 -0
  119. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/reasoning-text.d.ts +8 -0
  120. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/index.d.ts +2 -2
  121. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/types/client/option-groups.d.ts +15 -0
  122. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/text-interaction.d.ts +31 -0
  123. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/user-text.d.ts +60 -0
  124. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/interaction-registry.d.ts +28 -0
  125. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-document.d.ts +21 -0
  126. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-registry.d.ts +26 -0
  127. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/draft.d.ts +23 -0
  128. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/CommandChip.d.ts +13 -0
  129. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/QuoteNode.d.ts +61 -0
  130. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-node.d.ts +87 -0
  131. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-selection.d.ts +20 -0
  132. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/prompt.d.ts +9 -0
  133. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/submission-analytics.d.ts +10 -0
  134. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/UserText.d.ts +22 -0
  135. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/session-reference-rule.d.ts +15 -0
  136. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/whitespace-rules.d.ts +7 -0
  137. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/view-pins.d.ts +22 -0
  138. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/GoalCommandReference.d.ts +9 -0
  139. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/user-text-rules.d.ts +21 -0
  140. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/types/client/provider-order.d.ts +10 -0
  141. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/context-menus.d.ts +18 -0
  142. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/open-toast.d.ts +40 -0
  143. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/outcome.d.ts +7 -0
  144. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/session-open-with.d.ts +14 -0
  145. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/BundleDetailSection.d.ts +26 -0
  146. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/PluginRefreshToast.d.ts +17 -0
  147. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/detail-store.d.ts +76 -0
  148. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/header-scroll.d.ts +14 -0
  149. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/sanitize-install-input.d.ts +8 -0
  150. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/tab-ledger.d.ts +15 -0
  151. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/versions.d.ts +33 -0
  152. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/AnimatedRows.module.css +7 -0
  153. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +12 -0
  154. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DetailDocument.module.css +67 -0
  155. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/InlineEditor.module.css +23 -0
  156. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
  157. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/QuotePreview.module.css +101 -0
  158. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RowDragPreview.module.css +12 -0
  159. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/UserMessageBubble.module.css +11 -0
  160. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ZoomControls.module.css +54 -0
  161. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/AnimatedRows.d.ts +49 -0
  162. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +16 -0
  163. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DetailDocument.d.ts +78 -0
  164. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DraggableImage.d.ts +19 -0
  165. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCardGroup.d.ts +25 -0
  166. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/InlineEditor.d.ts +23 -0
  167. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
  168. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuRow.d.ts +37 -0
  169. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/QuotePreview.d.ts +24 -0
  170. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SubmenuPanel.d.ts +19 -0
  171. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/UserMessageBubble.d.ts +11 -0
  172. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ZoomControls.d.ts +27 -0
  173. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/document-zoom.d.ts +17 -0
  174. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-drag-actions.d.ts +32 -0
  175. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/artwork.d.ts +426 -0
  176. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/image-drag.d.ts +17 -0
  177. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/copy-tex.d.ts +14 -0
  178. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/quote-text.d.ts +8 -0
  179. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/windows-path-destinations.d.ts +11 -0
  180. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/menu-submenu-position.d.ts +15 -0
  181. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/tooltip-placement.d.ts +35 -0
  182. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-clipboard-copy.d.ts +14 -0
  183. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useMenuSubmenu.d.ts +43 -0
  184. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useRowDragPreview.d.ts +20 -0
  185. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/FileReference.d.ts +29 -0
  186. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/user-text-rules.d.ts +18 -0
  187. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/NewSessionLimit.d.ts +12 -0
  188. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/RuleSelectRow.d.ts +22 -0
  189. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/ScheduleEmptyIllustration.d.ts +12 -0
  190. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskEditorFields.d.ts +54 -0
  191. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskRuleControls.d.ts +50 -0
  192. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/clear-ended.d.ts +33 -0
  193. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-store.d.ts +32 -0
  194. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-timing.d.ts +47 -0
  195. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/task-record.d.ts +30 -0
  196. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  197. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/account-avatar.d.ts +37 -0
  198. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/browser-login.d.ts +33 -0
  199. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/notice-transition.d.ts +7 -0
  200. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/index.d.ts +2 -2
  201. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/onboarding-settings.d.ts +1 -1
  202. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  203. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/DesktopChannelRow.d.ts +31 -0
  204. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/HostReleasePrompt.d.ts +24 -0
  205. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-channel-source.d.ts +43 -0
  206. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ApiKeyInput.d.ts +17 -0
  207. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ModelReasoningEfforts.d.ts +43 -0
  208. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/useModelRows.d.ts +41 -0
  209. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  210. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/PanelIcon.d.ts +9 -0
  211. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/panel-pins.d.ts +21 -0
  212. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/scroll-handoff.d.ts +24 -0
  213. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.frontmatter-fields.js +5768 -0
  214. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/PreviewFrame.d.ts +34 -0
  215. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/image/pan.d.ts +8 -0
  216. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter-fields.d.ts +20 -0
  217. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter.d.ts +13 -0
  218. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileNavigator.d.ts +33 -0
  219. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileTree.d.ts +114 -0
  220. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/NavigatorToggle.d.ts +28 -0
  221. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/navigator-layout.d.ts +6 -0
  222. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/workspace-tree.d.ts +51 -0
  223. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/TabMenuContent.d.ts +13 -0
  224. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/flash.d.ts +10 -0
  225. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/GuideMoreIcon.d.ts +7 -0
  226. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/guide-pins.d.ts +28 -0
  227. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/SkillReference.d.ts +19 -0
  228. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/user-text-rules.d.ts +17 -0
  229. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/slots.d.ts +12 -0
  230. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontFamilyRow.d.ts +19 -0
  231. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontSettingsGroup.d.ts +19 -0
  232. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/icon-sprite.d.ts +17 -0
  233. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/ExitCodeBadge.d.ts +9 -0
  234. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/QuestionToolRow.d.ts +13 -0
  235. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/file-menu.d.ts +15 -0
  236. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/models/recorded-path.d.ts +8 -0
  237. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/client/watch-tool-result.d.ts +15 -0
  238. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/types.d.ts +16 -0
  239. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/QuestionReplyView.d.ts +16 -0
  240. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/question-reply.d.ts +74 -0
  241. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/contract/toast.d.ts +67 -0
  242. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/path-suffix.d.ts +15 -0
  243. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/rows/WorkspaceDialogs.d.ts +10 -0
  244. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/SessionMenu.d.ts +6 -0
  245. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/context-menus.d.ts +12 -0
  246. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/Toast.d.ts +21 -0
  247. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/register.d.ts +10 -0
  248. package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -5
  249. package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.d.ts +46 -0
  250. package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
  251. package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +11 -8
  252. package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/types/index.d.ts +3 -1
  253. package/runtime/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -10
  254. package/runtime/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/types/locales.d.ts +48 -0
  255. package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/MicrophonePicker.d.ts +6 -0
  256. package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/failure-text.d.ts +11 -0
  257. package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/microphone-device.d.ts +13 -0
  258. package/runtime/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -5
  259. package/runtime/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-Dc3g2Bl1.js} +11 -7
  260. package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/module-files.d.ts +48 -0
  261. package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/package-manifest.d.ts +35 -0
  262. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/index.js +241 -64
  263. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +26 -11
  264. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  265. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.d.ts +19 -0
  266. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.js +5 -1
  267. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.d.ts +30 -6
  268. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +109 -8
  269. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/message.d.ts +5 -0
  270. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.d.ts +5 -0
  271. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.js +32 -0
  272. package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/types.d.ts +7 -0
  273. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +19 -7
  274. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/config.d.ts +3 -3
  275. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/credential.d.ts +34 -0
  276. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listed-catalog.d.ts +56 -0
  277. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-cache.d.ts +71 -0
  278. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-config.d.ts +48 -0
  279. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing.d.ts +91 -0
  280. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocol-adapter.d.ts +3 -1
  281. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/types/config.d.ts +2 -2
  282. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/types/config.d.ts +2 -2
  283. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +149 -28
  284. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/adapter.d.ts +3 -1
  285. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/prompt-options.d.ts +17 -0
  286. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.d.ts +10 -0
  287. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.generated.d.ts +10 -0
  288. package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/types.d.ts +8 -0
  289. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/credentials.d.ts +34 -0
  290. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/deadline.d.ts +12 -0
  291. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/diagnostic.d.ts +22 -0
  292. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/generation.d.ts +42 -0
  293. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/probe.d.ts +37 -0
  294. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/status.d.ts +87 -0
  295. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/templates.d.ts +37 -0
  296. package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/types.d.ts +85 -0
  297. package/runtime/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +4 -4
  298. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.d.ts +40 -0
  299. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.js +85 -0
  300. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.d.ts +17 -0
  301. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.js +72 -0
  302. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.d.ts +27 -0
  303. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.js +65 -0
  304. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.d.ts +15 -0
  305. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.js +54 -0
  306. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.d.ts +40 -0
  307. package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.js +61 -0
  308. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/config.d.ts +38 -0
  309. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/configuration.d.ts +10 -0
  310. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/async-function.d.ts +8 -0
  311. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/index.d.ts +12 -0
  312. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/repl.d.ts +8 -0
  313. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/types.d.ts +68 -0
  314. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script-await.d.ts +8 -0
  315. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script.d.ts +8 -0
  316. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/execution.d.ts +66 -0
  317. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/evaluation-ended.d.ts +7 -0
  318. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/module-hooks.d.ts +37 -0
  319. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/vm-modules.d.ts +35 -0
  320. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process-entry.d.ts +2 -0
  321. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process.d.ts +16 -0
  322. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/policy-processes.d.ts +30 -0
  323. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/rpc.d.ts +13 -0
  324. package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/worker.d.ts +66 -0
  325. package/runtime/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +215 -9
  326. package/runtime/node_modules/@deepseek-ai/dsh-sandbox/lib/types/locales.d.ts +41 -0
  327. package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types/acl-skill.d.ts +19 -0
  328. package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-Ci-q7_aQ.js → types-DwkEVVWZ.js} +357 -81
  329. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-activity.d.ts +43 -0
  330. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-content.d.ts +21 -0
  331. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-input.d.ts +12 -0
  332. package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/user-questions.d.ts +17 -0
  333. package/runtime/node_modules/@deepseek-ai/dsh-session/lib/index.js +2 -1
  334. package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/request-header.js +2 -0
  335. package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/types.d.ts +2 -0
  336. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/CopyToast.d.ts +21 -0
  337. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/copy-controller.d.ts +76 -0
  338. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/markdown.d.ts +22 -0
  339. package/runtime/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +197 -9
  340. package/runtime/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +5 -5
  341. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +5 -5
  342. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.d.ts +112 -0
  343. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +112 -0
  344. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.d.ts +232 -0
  345. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +1250 -0
  346. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.d.ts +56 -0
  347. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
  348. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.d.ts +49 -0
  349. package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +130 -0
  350. package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/types/linux-scope-selector.d.ts +60 -0
  351. package/runtime/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +215 -9
  352. package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.d.ts +74 -0
  353. package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.js +94 -0
  354. package/runtime/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/types/timed.d.ts +13 -0
  355. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +31 -1
  356. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-output.d.ts +140 -0
  357. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-presentation.d.ts +15 -0
  358. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch.d.ts +10 -0
  359. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/mutation-result.d.ts +18 -0
  360. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/execute.d.ts +17 -0
  361. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/index.d.ts +17 -0
  362. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/plan.d.ts +52 -0
  363. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/preflight.d.ts +18 -0
  364. package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/types.d.ts +106 -0
  365. package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent/lib/types/preset-selection.d.ts +36 -0
  366. package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.d.ts +8 -0
  367. package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.js +104 -0
  368. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.d.ts +26 -0
  369. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.js +246 -0
  370. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.d.ts +376 -0
  371. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.js +51 -0
  372. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.d.ts +58 -0
  373. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.js +2 -0
  374. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.d.ts +90 -0
  375. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.js +19 -0
  376. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.d.ts +154 -0
  377. package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.js +701 -0
  378. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.d.ts +13 -0
  379. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.js +15 -0
  380. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.d.ts +32 -0
  381. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.js +9 -0
  382. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.d.ts +21 -0
  383. package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.js +143 -0
  384. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.d.ts +85 -0
  385. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
  386. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.d.ts +37 -0
  387. package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
  388. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/cron.d.ts +54 -0
  389. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/duration.d.ts +61 -0
  390. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/instant.d.ts +145 -0
  391. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/recurrence.d.ts +38 -0
  392. package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/rrule.d.ts +34 -0
  393. package/runtime/node_modules/@deepseek-ai/dsh-util-values/lib/types/partial-json.d.ts +152 -0
  394. package/runtime/node_modules/@deepseek-ai/dsh-web-app/lib/types/public-url.d.ts +16 -0
  395. package/runtime/node_modules/@deepseek-ai/node-addon-system/lib/.tsbuildinfo +1 -1
  396. package/lib/dump-config-DuCc-QB7.js +0 -2
  397. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.d.ts +0 -26
  398. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
  399. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/watch-config.d.ts +0 -13
  400. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/types/ImageLightbox.d.ts +0 -27
  401. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/queue.d.ts +0 -9
  402. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/queue-store.d.ts +0 -20
  403. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/ProducedFiles.d.ts +0 -14
  404. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/icons.d.ts +0 -8
  405. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -29
  406. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
  407. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-contract.d.ts +0 -86
  408. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-scope.d.ts +0 -141
  409. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-update-bridge.d.ts +0 -23
  410. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/AgentLoopCard.d.ts +0 -12
  411. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/BashCard.d.ts +0 -12
  412. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/ConfigurablePluginsTab.d.ts +0 -19
  413. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginCard.d.ts +0 -42
  414. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginConfigForm.d.ts +0 -34
  415. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentCard.d.ts +0 -12
  416. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentLimitsFields.d.ts +0 -14
  417. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionCard.d.ts +0 -12
  418. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionFields.d.ts +0 -14
  419. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/WebSearchCard.d.ts +0 -16
  420. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/agent-loop-card-controller.d.ts +0 -43
  421. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/bash-card-controller.d.ts +0 -45
  422. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/card-form.d.ts +0 -171
  423. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/fields.d.ts +0 -69
  424. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/slot-contract.d.ts +0 -31
  425. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-card-controller.d.ts +0 -32
  426. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-limits-card-controller.d.ts +0 -33
  427. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-model-selection-card-controller.d.ts +0 -129
  428. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/tab-store.d.ts +0 -65
  429. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/web-search-card-controller.d.ts +0 -93
  430. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/code/languages.d.ts +0 -9
  431. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/icons.d.ts +0 -14
  432. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/pdf/PdfBody.d.ts +0 -24
  433. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/types/client/TerminalBody.d.ts +0 -14
  434. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/subagent-lineage.d.ts +0 -21
  435. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/subagent-lineage.d.ts +0 -21
  436. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/defaults.d.ts +0 -24
  437. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-id.d.ts +0 -19
  438. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-store.d.ts +0 -86
  439. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/files-api.d.ts +0 -111
  440. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/image-tokens.d.ts +0 -34
  441. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/messages-api.d.ts +0 -10
  442. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/model-info.d.ts +0 -16
  443. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/models.d.ts +0 -4
  444. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-extensions.d.ts +0 -16
  445. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-files.d.ts +0 -49
  446. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-pricing.d.ts +0 -60
  447. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/types.d.ts +0 -119
  448. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/upload-index.d.ts +0 -68
  449. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/adapter.d.ts +0 -45
  450. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/serialize.d.ts +0 -78
  451. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/sse.d.ts +0 -24
  452. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/translate.d.ts +0 -37
  453. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/types.d.ts +0 -178
  454. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/adapter.d.ts +0 -47
  455. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/images.d.ts +0 -35
  456. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/replay.d.ts +0 -27
  457. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/serialize.d.ts +0 -18
  458. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/sse.d.ts +0 -8
  459. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/translate.d.ts +0 -14
  460. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/transport.d.ts +0 -15
  461. package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/types.d.ts +0 -62
  462. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.d.ts +0 -19
  463. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +0 -30
  464. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.d.ts +0 -35
  465. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +0 -68
  466. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.d.ts +0 -10
  467. package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +0 -22
  468. package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.d.ts +0 -16
  469. package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
  470. package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +0 -1525
  471. package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
  472. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.d.ts +0 -28
  473. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.js +0 -25
  474. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.d.ts +0 -93
  475. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.js +0 -303
  476. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.d.ts +0 -3
  477. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.js +0 -5
  478. package/lib/{plugin-d65VulBk.js → plugin-BccFcAte.js} +1 -1
@@ -519,7 +519,7 @@ export const TYPERT = {
519
519
  },
520
520
  {
521
521
  "name": "Agent",
522
- "declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
522
+ "declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage, promptApiKey?: string): void;\n restorePromptApiKey?(message: UserMessage, apiKey: string): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
523
523
  },
524
524
  {
525
525
  "name": "AgentCancelCause",
@@ -643,7 +643,7 @@ export const TYPERT = {
643
643
  },
644
644
  {
645
645
  "name": "EpochHeader",
646
- "declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
646
+ "declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n promptScoped?: true;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
647
647
  },
648
648
  {
649
649
  "name": "EveryScheduleDispatchChange",
@@ -775,7 +775,7 @@ export const TYPERT = {
775
775
  },
776
776
  {
777
777
  "name": "LlmCallConfig",
778
- "declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
778
+ "declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n contextWindow?: number;\n protocol?: string;\n protocolOptions?: Readonly<Record<string, JsonValue>>;\n}"
779
779
  },
780
780
  {
781
781
  "name": "LlmCallConfigAdapterDefaults",
@@ -827,7 +827,7 @@ export const TYPERT = {
827
827
  },
828
828
  {
829
829
  "name": "MessageSourceMap",
830
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n}"
830
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; promptDigest?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n}"
831
831
  },
832
832
  {
833
833
  "name": "ModelMessageSource",
@@ -1075,7 +1075,7 @@ export const TYPERT = {
1075
1075
  },
1076
1076
  {
1077
1077
  "name": "UserMessage",
1078
- "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
1078
+ "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n readonly promptConfig?: LlmCallConfig;\n readonly promptApiKeyRequired?: true;\n}"
1079
1079
  }
1080
1080
  ]
1081
1081
  }
@@ -161,8 +161,9 @@ function addUsage(state, next) {
161
161
  * The opening `session` event is written before the subscription starts, so a
162
162
  * caller must invoke this before submitting the task. Text and reasoning are
163
163
  * emitted only when the step's `assistant/message` commits them, and the
164
- * terminal `final` event carries the same lossless answer the default mode
165
- * prints (it is deliberately not bounded).
164
+ * terminal `final` event carries the exact Session identity, the durable turn
165
+ * reason (null without a terminal turn), and the lossless answer. It is not bounded.
166
+ * Tool results include any durable structured error under the ordinary output bounds.
166
167
  * @param ctx - plugin context carrying the live Session feed.
167
168
  * @param agent - the exact Agent whose events belong to this invocation.
168
169
  * @param sink - stdout sink receiving one JSON object per line.
@@ -244,12 +245,13 @@ function projectJsonRun(ctx, agent, sink, options = {}) {
244
245
  return;
245
246
  case "tool/result": {
246
247
  if (event.surfaceOp !== "append") return;
247
- const block = event.data.message.content[0];
248
+ const message = event.data.message;
248
249
  write({
249
250
  type: "tool_result",
250
- callId: block.toolCallId,
251
- status: block.isError === true ? "error" : "completed",
252
- result: resultText(block.content)
251
+ callId: message.toolCallId,
252
+ status: message.isError === true ? "error" : "completed",
253
+ result: resultText(message.content),
254
+ ...event.data.error === void 0 ? {} : { error: event.data.error }
253
255
  });
254
256
  return;
255
257
  }
@@ -263,10 +265,12 @@ function projectJsonRun(ctx, agent, sink, options = {}) {
263
265
  });
264
266
  const stopSession = ctx.on("session/event", onSessionEvent);
265
267
  return {
266
- finish(text) {
268
+ finish(text, reason) {
267
269
  if (disposed) return;
268
270
  sink.write(`${JSON.stringify({
269
271
  type: "final",
272
+ sessionId: agent.id,
273
+ reason: reason ?? null,
270
274
  text
271
275
  })}\n`);
272
276
  },
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Records the inode, size and modification time of loaded `file:` modules. A module is stale when its file
3
+ * disappeared or its identity differs from the recorded one. Change time is not recorded: creating a hard link to a
4
+ * file, as pnpm does when it imports from its store, changes it without changing content. A module first loaded after
5
+ * the last observation has no record; it is stale when its file was modified at or after that observation, less the
6
+ * timestamp resolution, so a reinstall between loading and the next comparison is detected at the cost of reloading a
7
+ * module that was first loaded after such a write.
8
+ */
9
+ export declare class ModuleFiles {
10
+ /** Identity per recorded module; `undefined` marks a stale module, such as a pending one first loaded after the last observation. */
11
+ private records;
12
+ private observedAt;
13
+ /**
14
+ * The current time of the clock the operating system stamps local file writes with, read from a new marker file that is
15
+ * removed again. The system clock and file timestamps can differ by a clock tick in either direction, so module files
16
+ * are compared with this time; when no marker can be created, the system clock is used.
17
+ * @returns Epoch milliseconds.
18
+ */
19
+ now(): number;
20
+ /**
21
+ * Compare loaded file modules with disk.
22
+ * @param urls `file:` URLs of the loaded modules to compare.
23
+ * @returns URLs of stale modules, and the identity read for each compared URL (`undefined` for a missing file).
24
+ */
25
+ compare(urls: Iterable<string>): {
26
+ stale: Set<string>;
27
+ seen: Map<string, string | undefined>;
28
+ };
29
+ /**
30
+ * Replace every record with the identities of the given loaded modules.
31
+ * @param urls `file:` URLs of the loaded modules to record.
32
+ * @param options `seen` supplies identities read earlier for modules whose cache entry has not changed since, so a
33
+ * later write stays detectable; other modules are read now, and stay stale when their file was modified after `at`.
34
+ * `retained` modules keep their record, or are marked stale when they have none. `at` is the observation time from
35
+ * {@link now} used for unrecorded modules.
36
+ */
37
+ observe(urls: Iterable<string>, options?: {
38
+ seen?: ReadonlyMap<string, string | undefined>;
39
+ retained?: ReadonlySet<string>;
40
+ at?: number;
41
+ }): void;
42
+ /**
43
+ * Record the current identity of modules just evaluated again, leaving every other record unchanged.
44
+ * @param urls `file:` URLs of the re-evaluated modules.
45
+ */
46
+ refresh(urls: Iterable<string>): void;
47
+ }
48
+ //# sourceMappingURL=module-files.d.ts.map
@@ -0,0 +1,35 @@
1
+ /** Package directories whose manifests are read from disk instead of Node's native cache. */
2
+ export declare class PackageManifests {
3
+ private readonly directories;
4
+ private readonly configurations;
5
+ /** Real directory of each directory a lookup reached; linked consumers name a package by its link path. */
6
+ private readonly realDirectories;
7
+ private native;
8
+ private rawBinding;
9
+ private rawReader;
10
+ private rawCommonJs;
11
+ private readonly restorers;
12
+ /**
13
+ * Expire cached configuration for one package directory. Loaded modules stay evaluated; later resolutions and
14
+ * format checks read the manifest on disk.
15
+ * @param manifest - absolute path of the changed `package.json`.
16
+ */
17
+ invalidate(manifest: string): void;
18
+ /** Restore every replaced Node method this instance installed. */
19
+ dispose(): void;
20
+ private isPathWithinDirectory;
21
+ private isPathInInvalidatedDirectory;
22
+ private isUrlInInvalidatedDirectory;
23
+ private installPackageHooks;
24
+ private hookCommonJsLoad;
25
+ private hookBindingReadPackageJSON;
26
+ private hookBindingGetPackageScopeConfig;
27
+ private hookBindingGetPackageType;
28
+ private hookReaderGetNearestParentPackageJSON;
29
+ private readCachedPackageConfig;
30
+ /** A string names the first manifest outside the invalidated directories; Node answers for it. */
31
+ private findNearestPackageConfig;
32
+ /** @param context - optional ESM import details used only when reporting invalid package configuration. */
33
+ private readPackageConfigFromDisk;
34
+ }
35
+ //# sourceMappingURL=package-manifest.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { Remote, RemoteError, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
3
- import { assertNever, deepFreeze, snapshotJsonValue } from "@deepseek-ai/dsh-util-values";
3
+ import { assertNever, deepEqualJson, deepFreeze, snapshotJsonValue } from "@deepseek-ai/dsh-util-values";
4
4
  import { randomUUID } from "@deepseek-ai/dsh-util-crypto";
5
5
  import { brandString } from "@deepseek-ai/dsh-brand";
6
6
  import z from "@deepseek-ai/schemastery";
@@ -346,6 +346,59 @@ function resolveRetryPolicy(config, path) {
346
346
  }
347
347
  }
348
348
  //#endregion
349
+ //#region lib/types/brand.js
350
+ /**
351
+ * dsh-llm's owned branded ids: tool-call correlation and provider request
352
+ * diagnostics.
353
+ *
354
+ * The `Branded<B>` primitive and stateless constructor live in
355
+ * `@deepseek-ai/dsh-brand` so every owner of a cross-boundary id can brand it
356
+ * without depending on dsh-llm; see that package's README for the
357
+ * nominal-typing policy.
358
+ *
359
+ * @module @deepseek-ai/dsh-llm/brand
360
+ */
361
+ /**
362
+ * Brand a message identifier.
363
+ * @param id - the opaque message identifier.
364
+ * @returns the same string with the message-id brand.
365
+ */
366
+ function MessageId(id) {
367
+ return brandString(id);
368
+ }
369
+ /**
370
+ * Brand a string as a {@link ToolCallId}.
371
+ * @param id - the provider-issued or synthesized call id.
372
+ * @returns the same string with the tool-call-id brand.
373
+ */
374
+ function ToolCallId(id) {
375
+ return brandString(id);
376
+ }
377
+ /**
378
+ * Brand a provider-issued request identifier.
379
+ * @param id - the opaque provider-issued string.
380
+ * @returns the same string, branded; no validation is performed.
381
+ */
382
+ function ProviderRequestId(id) {
383
+ return brandString(id);
384
+ }
385
+ /**
386
+ * Brand one loop-owned streaming attempt identifier.
387
+ * @param id - the opaque Agent-lifecycle-local identifier.
388
+ * @returns the same string with the attempt-id brand.
389
+ */
390
+ function LlmAttemptId(id) {
391
+ return brandString(id);
392
+ }
393
+ /**
394
+ * Brand an adapter-owned reasoning-effort identifier.
395
+ * @param id - the opaque identifier exposed by one model capability.
396
+ * @returns the same string, branded; no validation is performed.
397
+ */
398
+ function ReasoningEffortId(id) {
399
+ return brandString(id);
400
+ }
401
+ //#endregion
349
402
  //#region lib/types/call-config.js
350
403
  /**
351
404
  * Conversation call configuration and freeze utilities. Provider routing,
@@ -365,7 +418,7 @@ const AGENT_LOOP_REQUESTS = /* @__PURE__ */ new WeakSet();
365
418
  * @returns whether every field (including the `stop` list, element-wise) matches.
366
419
  */
367
420
  function callConfigEquals(a, b) {
368
- if (a.provider !== b.provider || a.model !== b.model || a.reasoningEffort !== b.reasoningEffort || a.temperature !== b.temperature || a.maxTokens !== b.maxTokens) return false;
421
+ if (a.provider !== b.provider || a.model !== b.model || a.reasoningEffort !== b.reasoningEffort || a.temperature !== b.temperature || a.maxTokens !== b.maxTokens || a.contextWindow !== b.contextWindow || a.protocol !== b.protocol || !deepEqualJson(a.protocolOptions, b.protocolOptions)) return false;
369
422
  if (a.stop === void 0 || b.stop === void 0) return a.stop === b.stop;
370
423
  return a.stop.length === b.stop.length && a.stop.every((s, i) => s === b.stop?.[i]);
371
424
  }
@@ -514,6 +567,93 @@ function normalizeApiKey(raw) {
514
567
  };
515
568
  }
516
569
  //#endregion
570
+ //#region lib/types/prompt-protocol-options.js
571
+ const requestFields = new Set([
572
+ "model",
573
+ "provider",
574
+ "messages",
575
+ "contents",
576
+ "input",
577
+ "prompt",
578
+ "system",
579
+ "instructions",
580
+ "systeminstruction",
581
+ "stream",
582
+ "streamoptions",
583
+ "tools",
584
+ "toolchoice",
585
+ "toolconfig",
586
+ "functions",
587
+ "functioncall",
588
+ "paralleltoolcalls",
589
+ "plugins",
590
+ "mcpservers",
591
+ "previousresponseid",
592
+ "conversation",
593
+ "cachedcontent",
594
+ "store",
595
+ "background",
596
+ "n",
597
+ "temperature",
598
+ "maxtokens",
599
+ "maxcompletiontokens",
600
+ "maxoutputtokens",
601
+ "contextwindow",
602
+ "user",
603
+ "safetyidentifier",
604
+ "sessionid",
605
+ "promptcachekey",
606
+ "promptcacheretention"
607
+ ]);
608
+ const privateFields = new Set([
609
+ "authorization",
610
+ "apikey",
611
+ "xapikey",
612
+ "xgoogapikey",
613
+ "accesstoken",
614
+ "refreshtoken",
615
+ "credentials",
616
+ "clientsecret",
617
+ "password",
618
+ "secret",
619
+ "token",
620
+ "headers",
621
+ "extraheaders",
622
+ "defaultheaders",
623
+ "httpoptions",
624
+ "extrabody",
625
+ "betas",
626
+ "baseurl",
627
+ "endpoint",
628
+ "url",
629
+ "proxy",
630
+ "signal",
631
+ "abortsignal",
632
+ "constructor",
633
+ "prototype",
634
+ "proto"
635
+ ]);
636
+ /** Return the first field that would cross the Runtime's generation boundary. */
637
+ function unsafePromptProtocolField(options) {
638
+ for (const [name, value] of Object.entries(options ?? {})) {
639
+ const field = `protocolOptions.${name}`;
640
+ if (requestFields.has(name.toLowerCase().replace(/[^a-z0-9]/gu, "")) || /^dsh_/iu.test(name)) return field;
641
+ const pending = [{
642
+ name,
643
+ value,
644
+ depth: 0
645
+ }];
646
+ for (let item = pending.pop(); item !== void 0; item = pending.pop()) {
647
+ if (item.depth > 32 || privateFields.has(item.name.toLowerCase().replace(/[^a-z0-9]/gu, ""))) return field;
648
+ if (typeof item.value === "object" && item.value !== null) for (const [key, child] of Object.entries(item.value)) pending.push({
649
+ name: key,
650
+ value: child,
651
+ depth: item.depth + 1
652
+ });
653
+ }
654
+ }
655
+ }
656
+ //#endregion
517
657
  //#region lib/types/content.js
518
658
  /** Content-block structure helpers. @module @deepseek-ai/dsh-llm/content */
519
659
  /**
@@ -878,59 +1018,6 @@ function attributionHeaders(identity = APP_IDENTITY) {
878
1018
  return { "user-agent": userAgent(identity) };
879
1019
  }
880
1020
  //#endregion
881
- //#region lib/types/brand.js
882
- /**
883
- * dsh-llm's owned branded ids: tool-call correlation and provider request
884
- * diagnostics.
885
- *
886
- * The `Branded<B>` primitive and stateless constructor live in
887
- * `@deepseek-ai/dsh-brand` so every owner of a cross-boundary id can brand it
888
- * without depending on dsh-llm; see that package's README for the
889
- * nominal-typing policy.
890
- *
891
- * @module @deepseek-ai/dsh-llm/brand
892
- */
893
- /**
894
- * Brand a message identifier.
895
- * @param id - the opaque message identifier.
896
- * @returns the same string with the message-id brand.
897
- */
898
- function MessageId(id) {
899
- return brandString(id);
900
- }
901
- /**
902
- * Brand a string as a {@link ToolCallId}.
903
- * @param id - the provider-issued or synthesized call id.
904
- * @returns the same string with the tool-call-id brand.
905
- */
906
- function ToolCallId(id) {
907
- return brandString(id);
908
- }
909
- /**
910
- * Brand a provider-issued request identifier.
911
- * @param id - the opaque provider-issued string.
912
- * @returns the same string, branded; no validation is performed.
913
- */
914
- function ProviderRequestId(id) {
915
- return brandString(id);
916
- }
917
- /**
918
- * Brand one loop-owned streaming attempt identifier.
919
- * @param id - the opaque Agent-lifecycle-local identifier.
920
- * @returns the same string with the attempt-id brand.
921
- */
922
- function LlmAttemptId(id) {
923
- return brandString(id);
924
- }
925
- /**
926
- * Brand an adapter-owned reasoning-effort identifier.
927
- * @param id - the opaque identifier exposed by one model capability.
928
- * @returns the same string, branded; no validation is performed.
929
- */
930
- function ReasoningEffortId(id) {
931
- return brandString(id);
932
- }
933
- //#endregion
934
1021
  //#region lib/types/assembler.js
935
1022
  /**
936
1023
  * Incremental chunk-to-message assembler. This is the single canonical assembly
@@ -1639,6 +1726,14 @@ var LlmError = class extends HarnessError {
1639
1726
  }
1640
1727
  };
1641
1728
  /**
1729
+ * Guard Runtime-owned request fields and credentials before persisting protocol options.
1730
+ * @param options - Adapter-owned generation parameters supplied for the current turn.
1731
+ */
1732
+ function validatePromptProtocolOptions(options) {
1733
+ const field = unsafePromptProtocolField(options);
1734
+ if (field !== void 0) throw new LlmError(field, "UNSUPPORTED_OPTION");
1735
+ }
1736
+ /**
1642
1737
  * Project recorded image omissions for an adapter built against the
1643
1738
  * pre-event API. Retained occurrences that exceed the route budget fail with
1644
1739
  * `IMAGE_OFFLOAD_REQUIRED`, allowing the Session recovery plugin to record a
@@ -1753,6 +1848,24 @@ var LlmAdapter = class {
1753
1848
  stream: (options) => this.stream(options)
1754
1849
  };
1755
1850
  }
1851
+ /**
1852
+ * Report whether a prompt can supply its own upstream API key for this route.
1853
+ * @param _provider - registered provider route.
1854
+ * @param _model - exact model id.
1855
+ * @returns whether the prepared stream honors a prompt API key.
1856
+ */
1857
+ supportsPromptApiKey(_provider, _model) {
1858
+ return false;
1859
+ }
1860
+ /**
1861
+ * Validate the optional protocol assertion and protocol-specific generation options.
1862
+ * @param config - Common controls and protocol options for the registered route.
1863
+ */
1864
+ validatePromptProtocol(config) {
1865
+ if (config.protocol !== void 0) throw new LlmError("protocol", "UNSUPPORTED_OPTION");
1866
+ const option = Object.keys(config.protocolOptions ?? {})[0];
1867
+ if (option !== void 0) throw new LlmError(`protocolOptions.${option}`, "UNSUPPORTED_OPTION");
1868
+ }
1756
1869
  };
1757
1870
  /**
1758
1871
  * The abstract `llm` service: an adapter registry plus a streaming model-call
@@ -2181,6 +2294,47 @@ let LlmRuntime = (() => {
2181
2294
  const info = await this.resolveModelInfoFor(registration, config.model, signal);
2182
2295
  return this.resolveCallWithInfo(config, info);
2183
2296
  }
2297
+ /**
2298
+ * Resolve prompt controls before queue admission, without contacting the upstream API.
2299
+ * @param request - Validated JSON model configuration from the prompt transport.
2300
+ * @returns Controls safe to persist with the queued user message.
2301
+ */
2302
+ resolvePromptConfig(request) {
2303
+ const { provider, model, protocol, options, protocolOptions } = request;
2304
+ const adapter = this.registration(provider).adapter;
2305
+ if (request.apiKey !== void 0 && !adapter.supportsPromptApiKey(provider, model)) throw new LlmError("apiKey", "UNSUPPORTED_OPTION");
2306
+ const config = {
2307
+ provider,
2308
+ model,
2309
+ ...protocol === void 0 ? {} : { protocol }
2310
+ };
2311
+ const forwarded = new Map(Object.entries(protocolOptions ?? {}));
2312
+ for (const [key, value] of Object.entries(options)) {
2313
+ const invalid = () => new LlmError(`options.${key}`, "UNSUPPORTED_OPTION");
2314
+ if (forwarded.has(key)) throw invalid();
2315
+ switch (key) {
2316
+ case "temperature":
2317
+ if (typeof value !== "number" || !Number.isFinite(value) || value < 0) throw invalid();
2318
+ config.temperature = value;
2319
+ break;
2320
+ case "contextWindow":
2321
+ case "maxTokens":
2322
+ if (typeof value !== "number" || !Number.isSafeInteger(value) || value <= 0) throw invalid();
2323
+ config[key] = value;
2324
+ break;
2325
+ case "reasoningEffort":
2326
+ if (typeof value !== "string" || value.trim() === "") throw invalid();
2327
+ config.reasoningEffort = ReasoningEffortId(value);
2328
+ break;
2329
+ default: forwarded.set(key, value);
2330
+ }
2331
+ }
2332
+ if (forwarded.size > 0) config.protocolOptions = Object.fromEntries(forwarded);
2333
+ if (config.contextWindow !== void 0 && config.maxTokens !== void 0 && config.maxTokens >= config.contextWindow) throw new LlmError("options.maxTokens", "UNSUPPORTED_OPTION");
2334
+ validatePromptProtocolOptions(config.protocolOptions);
2335
+ adapter.validatePromptProtocol(config);
2336
+ return config;
2337
+ }
2184
2338
  /** Validate request controls against one already-bound exact model result. */
2185
2339
  resolveCallWithInfo(config, info) {
2186
2340
  const defaulted = config.maxTokens === void 0 && info.defaultMaxTokens !== void 0 ? {
@@ -2202,9 +2356,10 @@ let LlmRuntime = (() => {
2202
2356
  };
2203
2357
  }
2204
2358
  }
2359
+ const context = config.contextWindow === void 0 ? info.context : { contextWindow: config.contextWindow };
2205
2360
  return {
2206
2361
  config: resolvedConfig,
2207
- ...info.context === void 0 ? {} : { context: info.context },
2362
+ ...context === void 0 ? {} : { context },
2208
2363
  modelInfo: info
2209
2364
  };
2210
2365
  }
@@ -2214,10 +2369,12 @@ let LlmRuntime = (() => {
2214
2369
  * so HMR cannot combine one adapter's capability result with another adapter.
2215
2370
  * @param config - provider/model route and optional request controls.
2216
2371
  * @param signal - optional cancellation for adapter-owned capability lookup.
2372
+ * @param promptApiKey - in-memory credential bound to this call and kept out of request events.
2217
2373
  * @returns a prepared config and its registration-bound stream entry point.
2218
2374
  */
2219
- async prepareCall(config, signal) {
2375
+ async prepareCall(config, signal, promptApiKey) {
2220
2376
  const registration = this.registration(config.provider);
2377
+ if (promptApiKey !== void 0 && !registration.adapter.supportsPromptApiKey(config.provider, config.model)) throw new LlmError("This model route cannot use a prompt API key", "UNSUPPORTED_OPTION");
2221
2378
  const adapterCall = await registration.adapter.prepareCall(config.provider, config.model, signal);
2222
2379
  const modelInfo = this.normalizeModelInfo(registration, config.model, adapterCall.model);
2223
2380
  const resolved = this.resolveCallWithInfo(config, modelInfo);
@@ -2244,7 +2401,8 @@ let LlmRuntime = (() => {
2244
2401
  registration,
2245
2402
  config: resolvedConfig,
2246
2403
  modelInfo,
2247
- dispatch: (options) => adapterCall.stream(options)
2404
+ dispatch: (options) => adapterCall.stream(options, promptApiKey),
2405
+ ...promptApiKey === void 0 ? {} : { promptApiKey }
2248
2406
  });
2249
2407
  }
2250
2408
  });
@@ -2338,7 +2496,7 @@ let LlmRuntime = (() => {
2338
2496
  }
2339
2497
  iterator = dispatch(this.forAdapter(projectedOptions, adapter))[Symbol.asyncIterator]();
2340
2498
  } catch (error) {
2341
- yield adapterFailureChunk(error, options.signal);
2499
+ yield adapterFailureChunk(error, options.signal, prepared?.promptApiKey);
2342
2500
  return;
2343
2501
  }
2344
2502
  let completed = false;
@@ -2353,14 +2511,23 @@ let LlmRuntime = (() => {
2353
2511
  };
2354
2512
  } catch (error) {
2355
2513
  completed = true;
2356
- yield adapterFailureChunk(error, options.signal);
2514
+ yield adapterFailureChunk(error, options.signal, prepared?.promptApiKey);
2357
2515
  return;
2358
2516
  }
2359
2517
  if (item.done) {
2360
2518
  completed = true;
2361
2519
  return;
2362
2520
  }
2363
- yield item.value;
2521
+ const chunk = item.value;
2522
+ const key = prepared?.promptApiKey;
2523
+ if (key !== void 0 && chunk.type === "finish" && (chunk.reason.kind === "error" || chunk.reason.kind === "aborted")) yield {
2524
+ ...chunk,
2525
+ reason: {
2526
+ ...chunk.reason,
2527
+ failure: redactPromptFailure(chunk.reason.failure, key)
2528
+ }
2529
+ };
2530
+ else yield chunk;
2364
2531
  }
2365
2532
  } finally {
2366
2533
  if (!completed) {
@@ -2389,8 +2556,9 @@ let LlmRuntime = (() => {
2389
2556
  };
2390
2557
  })();
2391
2558
  /** Convert one adapter throw into the stream protocol's terminal outcome. */
2392
- function adapterFailureChunk(error, signal) {
2393
- const failure = normalizeLlmFailure(error);
2559
+ function adapterFailureChunk(error, signal, promptApiKey) {
2560
+ const normalized = normalizeLlmFailure(error);
2561
+ const failure = promptApiKey === void 0 ? normalized : redactPromptFailure(normalized, promptApiKey);
2394
2562
  return {
2395
2563
  type: "finish",
2396
2564
  reason: signal?.aborted || failure.code === "ABORTED" ? {
@@ -2402,5 +2570,14 @@ function adapterFailureChunk(error, signal) {
2402
2570
  }
2403
2571
  };
2404
2572
  }
2573
+ function redactPromptFailure(failure, apiKey) {
2574
+ const { message, code, requestId, ...rest } = failure;
2575
+ return {
2576
+ ...rest,
2577
+ message: message.replaceAll(apiKey, "[redacted]"),
2578
+ code: code.includes(apiKey) ? "PROVIDER_ERROR" : code,
2579
+ ...requestId === void 0 || requestId.includes(apiKey) ? {} : { requestId }
2580
+ };
2581
+ }
2405
2582
  //#endregion
2406
- export { ACCOUNT_QUOTA_EXCEEDED_CODE, APP_IDENTITY, AssistantStreamAccumulator, BlockAssembler, CONTEXT_SUMMARY_MAX_CHARS, CONTEXT_WINDOW_EXCEEDED_CODE, EMPTY_RESPONSE_CODE, HarnessError, IMAGE_OFFLOAD_REQUIRED_CODE, INVALID_CREDENTIAL_CODE, LlmAdapter, LlmAttemptId, LlmError, LlmRuntime, LlmRuntime as default, MessageId, ProviderRequestId, QUOTA_EXCEEDED_CODE, ReasoningEffortId, RetryPolicySchema, ToolCallId, assembleAssistantStream, assertUsableApiKey, assistantStreamChunks, assistantStreamFirstTokenTime, assistantStreamHasVisibleContent, assistantStreamHasVisibleText, attributionHeaders, boundContextSummary, callConfigEquals, chunkHasVisibleText, contentHasFile, contentHasImage, createAssistantMessage, createDeveloperMessage, createMessage, createSystemMessage, createToolResultMessage, createUserMessage, errorChain, expandAssistantStream, fileHandleText, freezeMessage, isAgentLoopRequest, isContextWindowExceededError, isHarnessError, isQuotaExceededError, isTokenDelta, isVisibleChunk, joinAssistantStreamText, lastAssistantStreamChunk, markAgentLoopRequest, normalizeApiKey, offloadRequestImagesWithPolicy, offloadedImageText, projectFilesToText, projectImagesForTextModel, projectOffloadedImages, projectToolUpdates, requestImageHandleText, requiredImageOffload, resolveImageAttachmentAccess, resolveRetryPolicy, runFirstTokenTime, runFirstVisibleTime, textOnlyImageText, userAgent };
2583
+ export { ACCOUNT_QUOTA_EXCEEDED_CODE, APP_IDENTITY, AssistantStreamAccumulator, BlockAssembler, CONTEXT_SUMMARY_MAX_CHARS, CONTEXT_WINDOW_EXCEEDED_CODE, EMPTY_RESPONSE_CODE, HarnessError, IMAGE_OFFLOAD_REQUIRED_CODE, INVALID_CREDENTIAL_CODE, LlmAdapter, LlmAttemptId, LlmError, LlmRuntime, LlmRuntime as default, MessageId, ProviderRequestId, QUOTA_EXCEEDED_CODE, ReasoningEffortId, RetryPolicySchema, ToolCallId, assembleAssistantStream, assertUsableApiKey, assistantStreamChunks, assistantStreamFirstTokenTime, assistantStreamHasVisibleContent, assistantStreamHasVisibleText, attributionHeaders, boundContextSummary, callConfigEquals, chunkHasVisibleText, contentHasFile, contentHasImage, createAssistantMessage, createDeveloperMessage, createMessage, createSystemMessage, createToolResultMessage, createUserMessage, errorChain, expandAssistantStream, fileHandleText, freezeMessage, isAgentLoopRequest, isContextWindowExceededError, isHarnessError, isQuotaExceededError, isTokenDelta, isVisibleChunk, joinAssistantStreamText, lastAssistantStreamChunk, markAgentLoopRequest, normalizeApiKey, offloadRequestImagesWithPolicy, offloadedImageText, projectFilesToText, projectImagesForTextModel, projectOffloadedImages, projectToolUpdates, requestImageHandleText, requiredImageOffload, resolveImageAttachmentAccess, resolveRetryPolicy, runFirstTokenTime, runFirstVisibleTime, textOnlyImageText, userAgent, validatePromptProtocolOptions };