@chatcode/chatcode-cli 3.0.5-rc.7 → 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 +26 -26
  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
@@ -1,6 +1,6 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
2
  import { isVolatile } from "@deepseek-ai/cosmokit";
3
- import { EMPTY_RESPONSE_CODE, IMAGE_OFFLOAD_REQUIRED_CODE, LlmAdapter, LlmError, ProviderRequestId, ReasoningEffortId, RetryPolicySchema, ToolCallId, attributionHeaders, contentHasImage, errorChain, isContextWindowExceededError, isQuotaExceededError, offloadedImageText, projectOffloadedImages, requestImageHandleText, requiredImageOffload, resolveImageAttachmentAccess, resolveRetryPolicy, textOnlyImageText } from "@deepseek-ai/dsh-llm";
3
+ import { EMPTY_RESPONSE_CODE, IMAGE_OFFLOAD_REQUIRED_CODE, LlmAdapter, LlmError, ProviderRequestId, ReasoningEffortId, RetryPolicySchema, ToolCallId, attributionHeaders, contentHasImage, errorChain, isContextWindowExceededError, isQuotaExceededError, offloadedImageText, projectOffloadedImages, requestImageHandleText, requiredImageOffload, resolveImageAttachmentAccess, resolveRetryPolicy, textOnlyImageText, validatePromptProtocolOptions } from "@deepseek-ai/dsh-llm";
4
4
  import { MAX_TIMER_DELAY_MS, deadline, idleWatchdog, timeoutOf } from "@deepseek-ai/dsh-timeout";
5
5
  import { ImageVariantId, longEdgeDimensions, requestImageDimensions } from "@deepseek-ai/dsh-attachment";
6
6
  import { createHash } from "node:crypto";
@@ -1676,11 +1676,19 @@ var DeepSeekProtocolAdapter = class extends LlmAdapter {
1676
1676
  imageRequestPricing(_provider, model) {
1677
1677
  return deepSeekImageRequestPricing(this.dependencies.options(), model, this.imageAccess);
1678
1678
  }
1679
+ supportsPromptApiKey() {
1680
+ return true;
1681
+ }
1682
+ validatePromptProtocol(config) {
1683
+ const protocol = this.protocol.files === "messages" ? "anthropic-messages" : "openai-completions";
1684
+ if (config.protocol !== void 0 && config.protocol !== protocol) throw new LlmError("protocol", "UNSUPPORTED_OPTION");
1685
+ validatePromptProtocolOptions(config.protocolOptions);
1686
+ }
1679
1687
  prepareCall(provider, model, _signal) {
1680
1688
  const connection = this.dependencies.options();
1681
1689
  return Promise.resolve({
1682
1690
  model: this.describe(connection, provider, model),
1683
- stream: (options) => this.generate(options, connection)
1691
+ stream: (options, promptApiKey) => this.generate(options, connection, promptApiKey)
1684
1692
  });
1685
1693
  }
1686
1694
  stream(options) {
@@ -1692,18 +1700,19 @@ var DeepSeekProtocolAdapter = class extends LlmAdapter {
1692
1700
  const { toolUpdate: _toolUpdate, ...supported } = info;
1693
1701
  return supported;
1694
1702
  }
1695
- async *generate(options, connection) {
1703
+ async *generate(options, connection, promptApiKey) {
1696
1704
  const env_1 = {
1697
1705
  stack: [],
1698
1706
  error: void 0,
1699
1707
  hasError: false
1700
1708
  };
1701
1709
  try {
1710
+ this.validatePromptProtocol(options);
1702
1711
  const consumer = new AbortController();
1703
1712
  const watchdog = __addDisposableResource(env_1, idleWatchdog(options.signal === void 0 ? consumer.signal : AbortSignal.any([consumer.signal, options.signal]), connection.streamIdleTimeoutMs, "MESSAGES_IDLE"), false);
1704
1713
  const iterator = this.request(options, connection, watchdog.signal, () => {
1705
1714
  watchdog.pulse();
1706
- });
1715
+ }, promptApiKey);
1707
1716
  try {
1708
1717
  while (true) {
1709
1718
  const next = await watchdog.next(iterator);
@@ -1728,10 +1737,10 @@ var DeepSeekProtocolAdapter = class extends LlmAdapter {
1728
1737
  __disposeResources(env_1);
1729
1738
  }
1730
1739
  }
1731
- async *request(options, connection, signal, activity) {
1740
+ async *request(options, connection, signal, activity, promptApiKey) {
1732
1741
  signal.throwIfAborted();
1733
1742
  const { messages, versions } = await prepareImages(options.messages, connection, options.model, this.dependencies.resolveAttachments?.(), this.imageAccess, signal);
1734
- const auth = await this.dependencies.resolveAuth(connection);
1743
+ const auth = promptApiKey === void 0 ? await this.dependencies.resolveAuth(connection) : { headers: this.protocol.files === "messages" ? { "x-api-key": promptApiKey } : { authorization: `Bearer ${promptApiKey}` } };
1735
1744
  const secrets = [
1736
1745
  connection.baseURL,
1737
1746
  new URL(connection.baseURL).host,
@@ -1762,7 +1771,10 @@ var DeepSeekProtocolAdapter = class extends LlmAdapter {
1762
1771
  reason
1763
1772
  });
1764
1773
  }, fileIds);
1765
- const extensions = await prepareRequestExtensions(body, {
1774
+ const extensions = await prepareRequestExtensions({
1775
+ ...body,
1776
+ ...options.protocolOptions
1777
+ }, {
1766
1778
  signal,
1767
1779
  ...options.sessionId === void 0 ? {} : { sessionId: String(options.sessionId) },
1768
1780
  ...options.purpose === void 0 ? {} : { purpose: options.purpose }
@@ -56,7 +56,7 @@ export declare function plainOptions(config: Config): Options;
56
56
  export declare const deepSeekConfigFields: {
57
57
  baseURL: z<string, string, "volatile">;
58
58
  thinking: z<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
59
- reasoningEffort: z<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
59
+ reasoningEffort: z<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
60
60
  maxTokens: z<number, number, "volatile-defined">;
61
61
  defaultContextWindow: z<number, number, "volatile-defined">;
62
62
  models: z<NoInfer<DeepSeekCatalogModel[]>, NoInfer<DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -76,7 +76,7 @@ export declare const deepSeekConfigFields: {
76
76
  export declare const Config: z<Schemastery.ObjectS<NoInfer<{
77
77
  baseURL: z<string, string, "volatile">;
78
78
  thinking: z<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
79
- reasoningEffort: z<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
79
+ reasoningEffort: z<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
80
80
  maxTokens: z<number, number, "volatile-defined">;
81
81
  defaultContextWindow: z<number, number, "volatile-defined">;
82
82
  models: z<NoInfer<DeepSeekCatalogModel[]>, NoInfer<DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -95,7 +95,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
95
95
  }>>, Schemastery.ObjectT<NoInfer<{
96
96
  baseURL: z<string, string, "volatile">;
97
97
  thinking: z<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
98
- reasoningEffort: z<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
98
+ reasoningEffort: z<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
99
99
  maxTokens: z<number, number, "volatile-defined">;
100
100
  defaultContextWindow: z<number, number, "volatile-defined">;
101
101
  models: z<NoInfer<DeepSeekCatalogModel[]>, NoInfer<DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -0,0 +1,34 @@
1
+ /** Credential values shared by DeepSeek model and web providers; callers own protocol headers and missing-key errors. */
2
+ import type { Context } from '@deepseek-ai/cordis';
3
+ import type { CredentialRef } from '@deepseek-ai/dsh-credentials';
4
+ /**
5
+ * Read and validate one API key. An installed credentials service is authoritative, including absence;
6
+ * only deployments without that service read the launch environment. Store and format failures propagate.
7
+ * @param ctx - context providing the credential and launch-environment services.
8
+ * @param ref - credential reference to resolve.
9
+ * @returns the validated key, or undefined when no key is configured.
10
+ */
11
+ export declare function resolveDeepSeekApiKey(ctx: Context, ref: CredentialRef): Promise<string | undefined>;
12
+ /**
13
+ * Check key presence without resolving a credential-store value or validating its format. Store failures propagate.
14
+ * @param ctx - context providing the credential and launch-environment services.
15
+ * @param ref - credential reference to inspect.
16
+ * @returns whether the authoritative credential source reports a configured key.
17
+ */
18
+ export declare function deepSeekApiKeyConfigured(ctx: Context, ref: CredentialRef): Promise<boolean>;
19
+ /**
20
+ * Read an account token only for a destination allowed by the account service. Credential-store failures propagate.
21
+ * @param ctx - context providing the optional account service.
22
+ * @param endpoint - destination that would receive the token.
23
+ * @returns the token, or undefined without an allowed signed-in account.
24
+ */
25
+ export declare function resolveDeepSeekAccountToken(ctx: Context, endpoint: string): Promise<string | undefined>;
26
+ /**
27
+ * Invalidate the account token rejected by a request, without clearing a newer sign-in. Removal failure is contained
28
+ * so callers can report the original request failure; the account service owns in-memory invalidation and persistence.
29
+ * @param ctx - context providing the optional account service.
30
+ * @param token - exact token sent by the rejected request.
31
+ * @returns settlement after the invalidation attempt.
32
+ */
33
+ export declare function rejectDeepSeekAccountToken(ctx: Context, token: string): Promise<void>;
34
+ //# sourceMappingURL=credential.d.ts.map
@@ -0,0 +1,56 @@
1
+ import type { LlmModelBadge } from '@deepseek-ai/dsh-llm';
2
+ import type { ListingEntry } from './listing.ts';
3
+ import type { DeepSeekCatalogModel } from './types.ts';
4
+ /** Field overrides for one model; unset fields and empty lists inherit the underlying entry. */
5
+ export type ModelOverride = Omit<DeepSeekCatalogModel, 'id'>;
6
+ /** Why this build refuses one listed model before network I/O. */
7
+ export type CatalogRefusal = {
8
+ readonly kind: 'upgrade-required';
9
+ readonly requiredVersion: string;
10
+ } | {
11
+ readonly kind: 'unsupported';
12
+ };
13
+ /** Inputs of one catalog resolution. */
14
+ export interface ListedCatalogInput {
15
+ /** Entries of the last successful listing, or `undefined` before one succeeds. */
16
+ readonly listing: readonly ListingEntry[] | undefined;
17
+ /** Validated models this build supports, carrying its client-side knowledge. */
18
+ readonly supported: readonly DeepSeekCatalogModel[];
19
+ /** Overrides by model id, holding only the fields each one declares. */
20
+ readonly overrides: Readonly<Record<string, ModelOverride>>;
21
+ /** Route output cap that a listed output capability bounds. */
22
+ readonly routeMaxTokens: number;
23
+ /** This build's semantic version. */
24
+ readonly clientVersion: string;
25
+ }
26
+ /** One resolved listed catalog. */
27
+ export interface ListedCatalog {
28
+ /** Selectable models in listing order, or this build's models when no listing succeeded. */
29
+ readonly offered: readonly DeepSeekCatalogModel[];
30
+ /** Entries request resolution consults: offered models, then supported models the listing does not offer. */
31
+ readonly resolution: readonly DeepSeekCatalogModel[];
32
+ /** Listed models refused before network I/O, by id. */
33
+ readonly refusals: ReadonlyMap<string, CatalogRefusal>;
34
+ /** Listed badges of offered models, by id. */
35
+ readonly badges: ReadonlyMap<string, LlmModelBadge>;
36
+ /** Listing entries hidden because their declarations are unreadable or unusable, and offered models whose badge is dropped. */
37
+ readonly problems: readonly string[];
38
+ /** Configuration diagnostics for `modelOverrides`. */
39
+ readonly overrideErrors: readonly string[];
40
+ }
41
+ /**
42
+ * Resolve a route's catalog from its listing. A declared minimum client version decides a
43
+ * listed model's availability; without one, only models this build supports
44
+ * are offered and the other listed models stay hidden.
45
+ * @param input - listing, supported models, overrides, route cap, and this build's version.
46
+ * @returns offered models, request-resolution entries, refusals, and diagnostics.
47
+ */
48
+ export declare function resolveListedCatalog(input: ListedCatalogInput): ListedCatalog;
49
+ /**
50
+ * Refuse a listed model this build cannot serve, before any network I/O.
51
+ * @param model - requested wire model id.
52
+ * @param refusal - the catalog's refusal for `model`, or `undefined` when it is admitted.
53
+ * @throws LlmError `CLIENT_UPGRADE_REQUIRED` naming the required and current versions, or `MODEL_UNSUPPORTED`.
54
+ */
55
+ export declare function refuseListedModel(model: string, refusal: CatalogRefusal | undefined): void;
56
+ //# sourceMappingURL=listed-catalog.d.ts.map
@@ -0,0 +1,71 @@
1
+ import type { ListingSettings } from './listing-config.ts';
2
+ import type { ModelListing } from './listing.ts';
3
+ /** Host-owned inputs of one cache instance. */
4
+ export interface ListingCacheDependencies {
5
+ /** Latest route configuration for automatic refresh; `undefined` stops following the listing. */
6
+ readonly settings: () => ListingSettings | undefined;
7
+ /** The credential the route sends to `url`, or `undefined` when it has none. */
8
+ readonly credential: (url: string) => Promise<string | undefined>;
9
+ /** Perform one listing request authenticated with `credential`; `signal` carries the {@link LISTING_TIMEOUT} request deadline. */
10
+ readonly load: (url: string, credential: string, signal: AbortSignal) => Promise<ModelListing>;
11
+ /** Wall clock used for listing age. */
12
+ readonly now: () => number;
13
+ /** Report a loaded listing. */
14
+ readonly info: (message: string) => void;
15
+ /** Report the first failure of a failing streak. */
16
+ readonly warn: (message: string) => void;
17
+ /** Publish a changed view; readers can immediately read `current()`. */
18
+ readonly changed: () => void;
19
+ }
20
+ /** What request resolution reads. */
21
+ export interface ListingView {
22
+ /** Whether a credential is available for the listing endpoint. */
23
+ readonly authenticated: boolean;
24
+ /** Last successful listing for this scope; `undefined` until one succeeds. */
25
+ readonly listing: ModelListing | undefined;
26
+ }
27
+ /** One route's listing cache; each endpoint and credential pair has its own scope. */
28
+ export declare class ModelListingCache {
29
+ private readonly dependencies;
30
+ private scope;
31
+ private listing;
32
+ /** Settle time of the latest load in this scope; `undefined` before the first one settles. */
33
+ private settledAt;
34
+ private inflight;
35
+ private request;
36
+ private generation;
37
+ private failing;
38
+ private closed;
39
+ private timer;
40
+ private readonly pending;
41
+ /** @param dependencies - credential, transport, clock, and diagnostic callbacks. */
42
+ constructor(dependencies: ListingCacheDependencies);
43
+ /**
44
+ * The last published view, without I/O.
45
+ * @returns the credential state and listing of the current scope.
46
+ */
47
+ current(): ListingView;
48
+ /**
49
+ * Resolve the view for the current credential. The first access of a scope
50
+ * waits for its load, which the request deadline bounds; later accesses
51
+ * return at once and refresh a stale listing in the background. After a load settles,
52
+ * automatic refresh uses the latest route settings; failures retain the last successful listing, including badges.
53
+ * @param settings - endpoint and timing of the caller's configuration generation.
54
+ * @param signal - abandons this wait only; the shared load continues.
55
+ * @returns the view after any first load of the scope settles.
56
+ */
57
+ view(settings: ListingSettings, signal?: AbortSignal): Promise<ListingView>;
58
+ /** Discard the listing and abort any in-flight load; the next access loads again and waits like a first access. */
59
+ invalidate(): void;
60
+ /**
61
+ * Stop automatic refresh and abort loads; later results and accesses change nothing.
62
+ * @returns completion of all admitted loads and automatic credential lookups.
63
+ */
64
+ dispose(): Promise<void>;
65
+ private rescope;
66
+ private start;
67
+ private notify;
68
+ private schedule;
69
+ private refresh;
70
+ }
71
+ //# sourceMappingURL=listing-cache.d.ts.map
@@ -0,0 +1,48 @@
1
+ /** Configuration of a route that follows a `/models` listing: cache timing and its validation. */
2
+ import type { Volatile } from '@deepseek-ai/cordis';
3
+ import z from '@deepseek-ai/schemastery';
4
+ /** Default deadline of one model-listing request and of a first-use wait. */
5
+ export declare const DEFAULT_MODELS_TIMEOUT_MS = 5000;
6
+ /** Default interval between automatic listing refreshes after first use. */
7
+ export declare const DEFAULT_MODELS_MAX_AGE_MS = 600000;
8
+ /** Listing fields of a route Config. */
9
+ export interface ModelListingConfig {
10
+ /** Deadline of one listing request, which also bounds a first-use wait (default five seconds). */
11
+ modelsTimeoutMs: Volatile<number>;
12
+ /**
13
+ * Listing refresh interval after first use; failures retry at the same interval (default ten minutes).
14
+ * Zero refreshes on each access and disables automatic refresh.
15
+ */
16
+ modelsMaxAgeMs: Volatile<number>;
17
+ }
18
+ /** Schemas of the {@link ModelListingConfig} fields. */
19
+ export declare const modelListingConfigFields: {
20
+ modelsTimeoutMs: z<number, number, "volatile-defined">;
21
+ modelsMaxAgeMs: z<number, number, "volatile-defined">;
22
+ };
23
+ /** Plain listing options accepted by {@link resolveListingTiming}. */
24
+ export interface ModelListingOptions {
25
+ modelsTimeoutMs?: number;
26
+ modelsMaxAgeMs?: number;
27
+ }
28
+ /** Listing cache timing of one configuration generation. */
29
+ export interface ListingTiming {
30
+ /** Deadline of one listing request. */
31
+ readonly timeoutMs: number;
32
+ /** Listing age after which the next access refreshes it. */
33
+ readonly maxAgeMs: number;
34
+ }
35
+ /** Listing endpoint and cache timing of one configuration generation. */
36
+ export interface ListingSettings extends ListingTiming {
37
+ /** Listing endpoint; it always shares the Messages origin. */
38
+ readonly url: string;
39
+ }
40
+ /**
41
+ * Validate listing timing. Settings updates can reach it without schema validation, so every bound is judged here.
42
+ * @param options - plain listing options; absent values take the defaults.
43
+ * @param owner - plugin name that prefixes each failure message.
44
+ * @returns the validated timing.
45
+ * @throws Error when a value is outside its schema bounds.
46
+ */
47
+ export declare function resolveListingTiming(options: ModelListingOptions, owner: string): ListingTiming;
48
+ //# sourceMappingURL=listing-config.d.ts.map
@@ -0,0 +1,91 @@
1
+ import type { LlmModelBadge, ModelModality } from '@deepseek-ai/dsh-llm';
2
+ /** Longest badge text this build displays, in user-perceived characters, for every translation. */
3
+ export declare const MAX_BADGE_TEXT_LENGTH = 12;
4
+ /** Code of a listing deadline's timeout reason; {@link requestModelListing} reports it as `TIMEOUT`. */
5
+ export declare const LISTING_TIMEOUT = "MODEL_LISTING_TIMEOUT";
6
+ /**
7
+ * The listing endpoint of a Messages root.
8
+ * @param baseURL - Messages `baseURL`.
9
+ * @returns `/models` at the origin of `baseURL`, the only origin that receives the route's credential.
10
+ */
11
+ export declare function modelListingURL(baseURL: string): string;
12
+ /** The requirement one listing entry declares under this client's product token. */
13
+ export type ClientRequirement = {
14
+ readonly kind: 'none';
15
+ } | {
16
+ readonly kind: 'min-version';
17
+ readonly version: string;
18
+ } | {
19
+ readonly kind: 'invalid';
20
+ };
21
+ /** Capabilities a usable listing entry declares, in catalog vocabulary. */
22
+ export interface ListedFacts {
23
+ /** Accepted request modalities this build sends. */
24
+ readonly inputModalities: readonly ModelModality[];
25
+ /** Combined request and response context, when declared. */
26
+ readonly contextWindow?: number;
27
+ /** Output capability, when declared. */
28
+ readonly maxOutputTokens?: number;
29
+ /** Messages system prompt mode, when declared; any value other than `in-history` reads as `leading-only`. */
30
+ readonly systemPromptUpdate?: 'in-history' | 'leading-only';
31
+ /** Messages tool update mode, when declared; any value other than `in-history` or `addition-only` reads as `leading-only`. */
32
+ readonly toolUpdate?: 'in-history' | 'addition-only' | 'leading-only';
33
+ }
34
+ /** A badge one listing entry declares, or why this build cannot display it. */
35
+ export type ListedBadge = {
36
+ readonly kind: 'badge';
37
+ readonly badge: LlmModelBadge;
38
+ } | {
39
+ readonly kind: 'invalid';
40
+ readonly reason: string;
41
+ };
42
+ /** Declared capabilities, or why the Messages transport cannot drive the model. */
43
+ export type ListedCapabilities = {
44
+ readonly usable: true;
45
+ readonly facts: ListedFacts;
46
+ } | {
47
+ readonly usable: false;
48
+ readonly reason: string;
49
+ };
50
+ /** One decoded listing entry; unusable capabilities never hide its id, name, or requirement. */
51
+ export interface ListingEntry {
52
+ /** Wire model id. */
53
+ readonly id: string;
54
+ /** Display name, when the entry declares a non-empty one. */
55
+ readonly name?: string;
56
+ /** Requirement declared under `client_requirements[DEEPSEEK_LISTING_CLIENT]`. */
57
+ readonly requirement: ClientRequirement;
58
+ /** Declared capabilities. */
59
+ readonly capabilities: ListedCapabilities;
60
+ /**
61
+ * Selector badge declared under `client_metadata[DEEPSEEK_LISTING_CLIENT].badge`; absent when the
62
+ * entry declares none, and never a reason to hide the entry.
63
+ */
64
+ readonly badge?: ListedBadge;
65
+ }
66
+ /** A decoded listing with at least one entry. */
67
+ export interface ModelListing {
68
+ /** Entries in listing order. */
69
+ readonly entries: readonly ListingEntry[];
70
+ /** Rows without a usable id, and repeated ids. */
71
+ readonly skipped: number;
72
+ }
73
+ /**
74
+ * Decode one `/models` body entry by entry.
75
+ * @param body - parsed JSON response.
76
+ * @returns the entries with a usable id, in listing order.
77
+ * @throws LlmError `INVALID_RESPONSE` when the body has no `data` array or no usable entry.
78
+ */
79
+ export declare function parseModelListing(body: unknown): ModelListing;
80
+ /**
81
+ * Request and decode one model listing. Redirects fail, so credentials stay on the requested origin.
82
+ * @param url - listing endpoint.
83
+ * @param headers - authentication headers for this endpoint.
84
+ * @param signal - cancellation and deadline of the whole exchange.
85
+ * @returns the decoded listing.
86
+ * @throws LlmError `TIMEOUT` when a {@link LISTING_TIMEOUT} deadline elapses before a complete body, `ABORTED` for
87
+ * another abort, `TRANSPORT` for a network failure, `HTTP_<status>` for a non-2xx answer,
88
+ * and `INVALID_RESPONSE` for a body that is not a JSON listing.
89
+ */
90
+ export declare function requestModelListing(url: string, headers: Readonly<Record<string, string>>, signal: AbortSignal): Promise<ModelListing>;
91
+ //# sourceMappingURL=listing.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /** Shared cancellation, image recovery, authentication, and delivery lifecycle for DeepSeek protocols. */
2
2
  import { LlmAdapter } from '@deepseek-ai/dsh-llm';
3
- import type { GenerateOptions, PreparedAdapterCall, StreamChunk } from '@deepseek-ai/dsh-llm';
3
+ import type { GenerateOptions, LlmCallConfig, PreparedAdapterCall, StreamChunk } from '@deepseek-ai/dsh-llm';
4
4
  import type { DeepSeekAdapterOptions, DeepSeekConnectionOptions as Connection } from './types.ts';
5
5
  import type { DeepSeekProtocol } from './protocol.ts';
6
6
  /** Provider adapter with protocol-independent request ownership and image recovery. */
@@ -32,6 +32,8 @@ export declare class DeepSeekProtocolAdapter<C extends Connection = Connection>
32
32
  inputModalities?: readonly import("@deepseek-ai/dsh-llm").ModelModality[];
33
33
  }>;
34
34
  imageRequestPricing(_provider: string, model: string): import("@deepseek-ai/dsh-llm").LlmImageRequestPricing;
35
+ supportsPromptApiKey(): boolean;
36
+ validatePromptProtocol(config: LlmCallConfig): void;
35
37
  prepareCall(provider: string, model: string, _signal?: AbortSignal): Promise<PreparedAdapterCall>;
36
38
  stream(options: GenerateOptions): AsyncIterable<StreamChunk>;
37
39
  private describe;
@@ -5,7 +5,7 @@ export type Config = ProtocolConfig;
5
5
  export declare const Config: import("@deepseek-ai/schemastery").default<Schemastery.ObjectS<NoInfer<{
6
6
  baseURL: import("@deepseek-ai/schemastery").default<string, string, "volatile">;
7
7
  thinking: import("@deepseek-ai/schemastery").default<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
8
- reasoningEffort: import("@deepseek-ai/schemastery").default<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
8
+ reasoningEffort: import("@deepseek-ai/schemastery").default<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
9
9
  maxTokens: import("@deepseek-ai/schemastery").default<number, number, "volatile-defined">;
10
10
  defaultContextWindow: import("@deepseek-ai/schemastery").default<number, number, "volatile-defined">;
11
11
  models: import("@deepseek-ai/schemastery").default<NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -24,7 +24,7 @@ export declare const Config: import("@deepseek-ai/schemastery").default<Schemast
24
24
  }>>, Schemastery.ObjectT<NoInfer<{
25
25
  baseURL: import("@deepseek-ai/schemastery").default<string, string, "volatile">;
26
26
  thinking: import("@deepseek-ai/schemastery").default<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
27
- reasoningEffort: import("@deepseek-ai/schemastery").default<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
27
+ reasoningEffort: import("@deepseek-ai/schemastery").default<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
28
28
  maxTokens: import("@deepseek-ai/schemastery").default<number, number, "volatile-defined">;
29
29
  defaultContextWindow: import("@deepseek-ai/schemastery").default<number, number, "volatile-defined">;
30
30
  models: import("@deepseek-ai/schemastery").default<NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -14,7 +14,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
14
14
  apiKeyEnv: z<string, string, "volatile-defined">;
15
15
  baseURL: z<string, string, "volatile">;
16
16
  thinking: z<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
17
- reasoningEffort: z<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
17
+ reasoningEffort: z<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
18
18
  maxTokens: z<number, number, "volatile-defined">;
19
19
  defaultContextWindow: z<number, number, "volatile-defined">;
20
20
  models: z<NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, "volatile-defined">;
@@ -34,7 +34,7 @@ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
34
34
  apiKeyEnv: z<string, string, "volatile-defined">;
35
35
  baseURL: z<string, string, "volatile">;
36
36
  thinking: z<"enabled" | "disabled", "enabled" | "disabled", "volatile">;
37
- reasoningEffort: z<"low" | "off" | "high" | "max", "low" | "off" | "high" | "max", "volatile">;
37
+ reasoningEffort: z<"off" | "low" | "high" | "max", "off" | "low" | "high" | "max", "volatile">;
38
38
  maxTokens: z<number, number, "volatile-defined">;
39
39
  defaultContextWindow: z<number, number, "volatile-defined">;
40
40
  models: z<NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, NoInfer<import("@deepseek-ai/dsh-llm-deepseek").DeepSeekCatalogModel[]>, "volatile-defined">;