@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.
- package/README.i18n.yaml +6 -6
- package/README.md +7 -0
- package/README.zh.md +7 -0
- package/lib/bin.js +19 -5
- package/lib/desktop-history-B0iUekXf.js +72 -0
- package/lib/desktop-history-DvgkONgj.js +2 -0
- package/lib/{dump-config-D8kXfdTs.js → dump-config-CgIYHBp2.js} +1 -1
- package/lib/dump-config-D6TruNva.js +2 -0
- package/lib/{dump-config-schema-CtZbroi6.js → dump-config-schema-GiAtkJwx.js} +2 -2
- package/lib/{plugin-CYw-MBRn.js → plugin-BACkrsVG.js} +1 -1
- package/lib/{profile-boot-CffsubnV.js → profile-boot-c5YKtUIb.js} +17 -4
- package/lib/profile-boot.js +1 -1
- package/lib/tui-compat.js +1 -1
- package/lib/types/args.d.ts +8 -1
- package/lib/types/desktop-history.d.ts +31 -0
- package/lib/types/installed-bin.d.ts +9 -0
- package/package.json +26 -26
- package/runtime/manifest.json +3 -2
- package/runtime/node_modules/@chatcode/runtime-client/README.md +225 -0
- package/runtime/node_modules/@chatcode/runtime-client/desktop-history-guard.mjs +65 -0
- package/runtime/node_modules/@chatcode/runtime-client/desktop-history.mjs +278 -0
- package/runtime/node_modules/@chatcode/runtime-client/desktop-permission-gate.mjs +28 -0
- package/runtime/node_modules/@chatcode/runtime-client/execution.mjs +593 -0
- package/runtime/node_modules/@chatcode/runtime-client/index.d.ts +449 -0
- package/runtime/node_modules/@chatcode/runtime-client/model-preferences.mjs +57 -0
- package/runtime/node_modules/@chatcode/runtime-client/package.json +53 -0
- package/runtime/node_modules/@chatcode/runtime-client/runtime-connector.mjs +736 -0
- package/runtime/node_modules/@chatcode/runtime-client/session-activity.mjs +121 -0
- package/runtime/node_modules/@chatcode/runtime-client/session-browser.mjs +122 -0
- package/runtime/node_modules/@chatcode/runtime-client/stdio-bridge.mjs +103 -0
- package/runtime/node_modules/@chatcode/runtime-client/user-questions.mjs +108 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts +69 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts.map +1 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts +68 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts.map +1 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts.map +1 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/index.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/runtime-types.d.ts +12 -3
- package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/types/index.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +69 -17
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/invariant.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/agent.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/inbox.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.js +164 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +460 -79
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +636 -44
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +483 -55
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.d.ts +19 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +377 -40
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.d.ts +24 -4
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +97 -15
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.d.ts +11 -2
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +172 -18
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.js +80 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.d.ts +104 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +294 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.d.ts +105 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +297 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +4 -4
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.d.ts +88 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +230 -6
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.d.ts +64 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.js +79 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.d.ts +45 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.js +289 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.js +112 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.d.ts +93 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.d.ts +25 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.js +139 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.d.ts +42 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.js +101 -0
- package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/bundle-platform.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/startup-diagnostics.d.ts +38 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/client/socket.d.ts +50 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/connect-protocol.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/peer.d.ts +36 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/de.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/es.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/fr.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ja.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/pt.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ru.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/assets.d.ts +51 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/notify.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/release-change.d.ts +44 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/CreatePluginMenuItem.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/analytics.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalCard.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalWarning.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/PixelWhale.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/artwork.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/code-fill.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/renderer.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ChatFlow.d.ts +4 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ReasoningContent.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningStatus.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningWhaleTail.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/UserContent.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/flow-motion.d.ts +110 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-interaction.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-selection.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/contract/group-tree.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/conversation-nodes/group-tree-segments.d.ts +42 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/file-path.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/reasoning-text.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/index.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/types/client/option-groups.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/text-interaction.d.ts +31 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/user-text.d.ts +60 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/interaction-registry.d.ts +28 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-document.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-registry.d.ts +26 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/draft.d.ts +23 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/CommandChip.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/QuoteNode.d.ts +61 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-node.d.ts +87 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-selection.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/prompt.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/submission-analytics.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/UserText.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/session-reference-rule.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/whitespace-rules.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/view-pins.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/GoalCommandReference.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/user-text-rules.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/types/client/provider-order.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/context-menus.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/open-toast.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/outcome.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/session-open-with.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/BundleDetailSection.d.ts +26 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/PluginRefreshToast.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/detail-store.d.ts +76 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/header-scroll.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/sanitize-install-input.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/tab-ledger.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/versions.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/AnimatedRows.module.css +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DetailDocument.module.css +67 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/InlineEditor.module.css +23 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/QuotePreview.module.css +101 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RowDragPreview.module.css +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/UserMessageBubble.module.css +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ZoomControls.module.css +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/AnimatedRows.d.ts +49 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DetailDocument.d.ts +78 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DraggableImage.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCardGroup.d.ts +25 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/InlineEditor.d.ts +23 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuRow.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/QuotePreview.d.ts +24 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SubmenuPanel.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/UserMessageBubble.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ZoomControls.d.ts +27 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/document-zoom.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-drag-actions.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/artwork.d.ts +426 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/image-drag.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/copy-tex.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/quote-text.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/windows-path-destinations.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/menu-submenu-position.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/tooltip-placement.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-clipboard-copy.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useMenuSubmenu.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useRowDragPreview.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/FileReference.d.ts +29 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/user-text-rules.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/NewSessionLimit.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/RuleSelectRow.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/ScheduleEmptyIllustration.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskEditorFields.d.ts +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskRuleControls.d.ts +50 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/clear-ended.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-store.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-timing.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/task-record.d.ts +30 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/account-avatar.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/browser-login.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/notice-transition.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/index.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/onboarding-settings.d.ts +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/DesktopChannelRow.d.ts +31 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/HostReleasePrompt.d.ts +24 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-channel-source.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ApiKeyInput.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ModelReasoningEfforts.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/useModelRows.d.ts +41 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/PanelIcon.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/panel-pins.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/scroll-handoff.d.ts +24 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.frontmatter-fields.js +5768 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/PreviewFrame.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/image/pan.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter-fields.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileNavigator.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileTree.d.ts +114 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/NavigatorToggle.d.ts +28 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/navigator-layout.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/workspace-tree.d.ts +51 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/TabMenuContent.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/flash.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/GuideMoreIcon.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/guide-pins.d.ts +28 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/SkillReference.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/user-text-rules.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/slots.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontFamilyRow.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontSettingsGroup.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/icon-sprite.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/ExitCodeBadge.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/QuestionToolRow.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/file-menu.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/models/recorded-path.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/client/watch-tool-result.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/types.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/QuestionReplyView.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/question-reply.d.ts +74 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/contract/toast.d.ts +67 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/path-suffix.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/rows/WorkspaceDialogs.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/SessionMenu.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/context-menus.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/Toast.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/register.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.d.ts +46 -0
- package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
- package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +11 -8
- package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/types/index.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -10
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/types/locales.d.ts +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/MicrophonePicker.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/failure-text.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/microphone-device.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-Dc3g2Bl1.js} +11 -7
- package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/module-files.d.ts +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/package-manifest.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/index.js +241 -64
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +26 -11
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.js +5 -1
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.d.ts +30 -6
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +109 -8
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/message.d.ts +5 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.d.ts +5 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.js +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/types.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +19 -7
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/config.d.ts +3 -3
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/credential.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listed-catalog.d.ts +56 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-cache.d.ts +71 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-config.d.ts +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing.d.ts +91 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocol-adapter.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/types/config.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/types/config.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +149 -28
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/adapter.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/prompt-options.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.generated.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/types.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/credentials.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/deadline.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/diagnostic.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/generation.d.ts +42 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/probe.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/status.d.ts +87 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/templates.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/types.d.ts +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +4 -4
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.js +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.js +72 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.d.ts +27 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.js +65 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.js +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.js +61 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/config.d.ts +38 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/configuration.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/async-function.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/index.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/repl.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/types.d.ts +68 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script-await.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/execution.d.ts +66 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/evaluation-ended.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/module-hooks.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/vm-modules.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process-entry.d.ts +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/policy-processes.d.ts +30 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/rpc.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/worker.d.ts +66 -0
- package/runtime/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +215 -9
- package/runtime/node_modules/@deepseek-ai/dsh-sandbox/lib/types/locales.d.ts +41 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types/acl-skill.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-Ci-q7_aQ.js → types-DwkEVVWZ.js} +357 -81
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-activity.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-content.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-input.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/user-questions.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session/lib/index.js +2 -1
- package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/request-header.js +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/types.d.ts +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/CopyToast.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/copy-controller.d.ts +76 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/markdown.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +197 -9
- package/runtime/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.d.ts +112 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +112 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.d.ts +232 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +1250 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.d.ts +56 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.d.ts +49 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +130 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/types/linux-scope-selector.d.ts +60 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +215 -9
- package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.d.ts +74 -0
- package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.js +94 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/types/timed.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +31 -1
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-output.d.ts +140 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-presentation.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/mutation-result.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/execute.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/index.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/plan.d.ts +52 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/preflight.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/types.d.ts +106 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent/lib/types/preset-selection.d.ts +36 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.js +104 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.d.ts +26 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.js +246 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.d.ts +376 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.js +51 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.d.ts +58 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.js +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.d.ts +90 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.js +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.d.ts +154 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.js +701 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.js +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.js +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.js +143 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.d.ts +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/cron.d.ts +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/duration.d.ts +61 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/instant.d.ts +145 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/recurrence.d.ts +38 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/rrule.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-values/lib/types/partial-json.d.ts +152 -0
- package/runtime/node_modules/@deepseek-ai/dsh-web-app/lib/types/public-url.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/node-addon-system/lib/.tsbuildinfo +1 -1
- package/lib/dump-config-DuCc-QB7.js +0 -2
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.d.ts +0 -26
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
- package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/watch-config.d.ts +0 -13
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/types/ImageLightbox.d.ts +0 -27
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/queue.d.ts +0 -9
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/queue-store.d.ts +0 -20
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/ProducedFiles.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/icons.d.ts +0 -8
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -29
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-contract.d.ts +0 -86
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-scope.d.ts +0 -141
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-update-bridge.d.ts +0 -23
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/AgentLoopCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/BashCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/ConfigurablePluginsTab.d.ts +0 -19
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginCard.d.ts +0 -42
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginConfigForm.d.ts +0 -34
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentLimitsFields.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionFields.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/WebSearchCard.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/agent-loop-card-controller.d.ts +0 -43
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/bash-card-controller.d.ts +0 -45
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/card-form.d.ts +0 -171
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/fields.d.ts +0 -69
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/slot-contract.d.ts +0 -31
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-card-controller.d.ts +0 -32
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-limits-card-controller.d.ts +0 -33
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-model-selection-card-controller.d.ts +0 -129
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/tab-store.d.ts +0 -65
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/web-search-card-controller.d.ts +0 -93
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/code/languages.d.ts +0 -9
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/icons.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/pdf/PdfBody.d.ts +0 -24
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/types/client/TerminalBody.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/subagent-lineage.d.ts +0 -21
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/subagent-lineage.d.ts +0 -21
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/defaults.d.ts +0 -24
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-id.d.ts +0 -19
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-store.d.ts +0 -86
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/files-api.d.ts +0 -111
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/image-tokens.d.ts +0 -34
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/messages-api.d.ts +0 -10
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/model-info.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/models.d.ts +0 -4
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-extensions.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-files.d.ts +0 -49
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-pricing.d.ts +0 -60
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/types.d.ts +0 -119
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/upload-index.d.ts +0 -68
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/adapter.d.ts +0 -45
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/serialize.d.ts +0 -78
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/sse.d.ts +0 -24
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/translate.d.ts +0 -37
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/types.d.ts +0 -178
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/adapter.d.ts +0 -47
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/images.d.ts +0 -35
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/replay.d.ts +0 -27
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/serialize.d.ts +0 -18
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/sse.d.ts +0 -8
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/translate.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/transport.d.ts +0 -15
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/types.d.ts +0 -62
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.d.ts +0 -19
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +0 -30
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.d.ts +0 -35
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +0 -68
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.d.ts +0 -10
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +0 -22
- package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
- package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +0 -1525
- package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.d.ts +0 -28
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.js +0 -25
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.d.ts +0 -93
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.js +0 -303
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.d.ts +0 -3
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.js +0 -5
- 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(
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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">;
|