@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,24 +0,0 @@
|
|
|
1
|
-
/** PDF page presentation; binary content and tab information come from the document owner. */
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
3
|
-
import type { PropsLocale, PropsStore } from '@deepseek-ai/dsh-client-ui-slots';
|
|
4
|
-
import type { TabId } from '@deepseek-ai/dsh-client-ui-dockkit';
|
|
5
|
-
import type { DocumentPreviewProps } from '../document/contract.ts';
|
|
6
|
-
import { type PdfStore } from './store.ts';
|
|
7
|
-
/** A record's viewing preferences survive body unmounts and leave with the tab. */
|
|
8
|
-
export interface PdfBodyInjected {
|
|
9
|
-
/**
|
|
10
|
-
* Retain viewing preferences until the tab record ends.
|
|
11
|
-
* @param tabId - owning tab.
|
|
12
|
-
* @param signal - tab-record lifetime, not body visibility.
|
|
13
|
-
*/
|
|
14
|
-
readonly retainTab: (tabId: TabId, signal: AbortSignal) => void;
|
|
15
|
-
}
|
|
16
|
-
/** Standard document props plus the PDF entry's locale, viewing store, and lifetime callback. */
|
|
17
|
-
export type PdfBodyProps = DocumentPreviewProps & PropsLocale<'sidebarPdf'> & PropsStore<PdfStore> & PdfBodyInjected;
|
|
18
|
-
/**
|
|
19
|
-
* Present a PDF with tab-local viewing preferences and component-owned rendering resources.
|
|
20
|
-
* @param props - complete bytes and framework-owned tab/store/locale seats.
|
|
21
|
-
* @returns the PDF reader.
|
|
22
|
-
*/
|
|
23
|
-
export declare function PdfBody(props: PdfBodyProps): ReactNode;
|
|
24
|
-
//# sourceMappingURL=PdfBody.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** Sidebar terminal screen and connection recovery. */
|
|
2
|
-
import { type ReactNode } from 'react';
|
|
3
|
-
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
4
|
-
import type { TerminalBodyInjected } from './face.ts';
|
|
5
|
-
import '@xterm/xterm/css/xterm.css';
|
|
6
|
-
/** Standard sidebar owner share plus terminal model and localized copy. */
|
|
7
|
-
export type TerminalBodyProps = PropsRuntime<'sidebar.right.pane.tab'> & PropsLocale<'sidebarTerminal'> & InjectFace<TerminalBodyInjected>;
|
|
8
|
-
/**
|
|
9
|
-
* Render the retained terminal with the application theme.
|
|
10
|
-
* @param props - sidebar occurrence, model lookup and translated copy.
|
|
11
|
-
* @returns the terminal screen and any pending or exceptional state.
|
|
12
|
-
*/
|
|
13
|
-
export declare function TerminalBody({ useTabInfo, useTerminal, useTheme, view, t }: TerminalBodyProps): ReactNode;
|
|
14
|
-
//# sourceMappingURL=TerminalBody.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** UI Subagent-owned projection of descendant counts from Session summaries. */
|
|
2
|
-
import type { SessionId } from '@deepseek-ai/dsh-session/types';
|
|
3
|
-
interface LineageEntry {
|
|
4
|
-
readonly id: SessionId;
|
|
5
|
-
readonly parentId?: SessionId;
|
|
6
|
-
readonly origin?: 'subagent';
|
|
7
|
-
readonly running: boolean;
|
|
8
|
-
}
|
|
9
|
-
/** Descendant counts for one possible parent Session. */
|
|
10
|
-
export interface SubagentDescendantSummary {
|
|
11
|
-
readonly count: number;
|
|
12
|
-
readonly runningCount: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Index uninterrupted subagent descendants under each ancestor.
|
|
16
|
-
* @param summaries - Session summaries keyed by id.
|
|
17
|
-
* @returns descendant totals keyed by possible parent id.
|
|
18
|
-
*/
|
|
19
|
-
export declare function indexSubagentDescendants(summaries: Readonly<Record<SessionId, LineageEntry>>): ReadonlyMap<SessionId, SubagentDescendantSummary>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=subagent-lineage.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** UI Workspace-owned projection of descendant counts from Session summaries. */
|
|
2
|
-
import type { SessionId } from '@deepseek-ai/dsh-session/types';
|
|
3
|
-
interface LineageEntry {
|
|
4
|
-
readonly id: SessionId;
|
|
5
|
-
readonly parentId?: SessionId;
|
|
6
|
-
readonly origin?: 'subagent';
|
|
7
|
-
readonly running: boolean;
|
|
8
|
-
}
|
|
9
|
-
/** Descendant counts for one possible parent Session. */
|
|
10
|
-
export interface SubagentDescendantSummary {
|
|
11
|
-
readonly count: number;
|
|
12
|
-
readonly runningCount: number;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Index uninterrupted subagent descendants under each ancestor.
|
|
16
|
-
* @param summaries - Session summaries keyed by id.
|
|
17
|
-
* @returns descendant totals keyed by possible parent id.
|
|
18
|
-
*/
|
|
19
|
-
export declare function indexSubagentDescendants(summaries: Readonly<Record<SessionId, LineageEntry>>): ReadonlyMap<SessionId, SubagentDescendantSummary>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=subagent-lineage.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** Shared provider limits and Chat Files API defaults. */
|
|
2
|
-
/** Default maximum idle interval while an adapter stream read is outstanding. */
|
|
3
|
-
export declare const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 300000;
|
|
4
|
-
/** Default combined request/response context capacity. */
|
|
5
|
-
export declare const DEFAULT_CONTEXT_WINDOW = 1000000;
|
|
6
|
-
/** Default per-request output-token cap. */
|
|
7
|
-
export declare const DEFAULT_MAX_TOKENS = 256000;
|
|
8
|
-
/** Default bound on accumulated base64 image payload after Files API fallback. */
|
|
9
|
-
export declare const DEFAULT_MAX_INLINE_REQUEST_IMAGE_BYTES: number;
|
|
10
|
-
/** Deterministic raw-byte removal step. */
|
|
11
|
-
export declare const DEFAULT_IMAGE_OFFLOAD_BYTE_QUANTUM: number;
|
|
12
|
-
/** Deterministic base64-byte removal step after Files API fallback. */
|
|
13
|
-
export declare const DEFAULT_INLINE_IMAGE_OFFLOAD_BYTE_QUANTUM: number;
|
|
14
|
-
/** Deterministic image-count removal step. */
|
|
15
|
-
export declare const DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM = 20;
|
|
16
|
-
/** Default explicit lifetime for uploaded images. */
|
|
17
|
-
export declare const DEFAULT_FILE_EXPIRY_SECONDS: number;
|
|
18
|
-
/** Default proactive refresh window for indexed file ids. */
|
|
19
|
-
export declare const DEFAULT_FILE_REFRESH_MARGIN_SECONDS: number;
|
|
20
|
-
/** Default number of oldest harness-owned files removed on quota recovery. */
|
|
21
|
-
export declare const DEFAULT_FILE_QUOTA_CLEANUP_BATCH = 100;
|
|
22
|
-
/** Default deadline for resolving one request image through the Files API. */
|
|
23
|
-
export declare const DEFAULT_FILES_API_TIMEOUT_MS = 60000;
|
|
24
|
-
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** DeepSeek Files API identifiers. @module dsh-llm-deepseek/file-id */
|
|
2
|
-
import type { Branded } from '@deepseek-ai/dsh-brand';
|
|
3
|
-
/** Opaque identifier returned by the DeepSeek Files API. */
|
|
4
|
-
export type DeepSeekFileId = Branded<'DeepSeekFileId'>;
|
|
5
|
-
/**
|
|
6
|
-
* Brand a provider-returned file identifier after wire validation.
|
|
7
|
-
* @param id - non-empty Files API identifier.
|
|
8
|
-
* @returns the same string with its provider identity attached at type level.
|
|
9
|
-
*/
|
|
10
|
-
export declare function DeepSeekFileId(id: string): DeepSeekFileId;
|
|
11
|
-
/** Non-secret digest identifying one endpoint and API-key file namespace. */
|
|
12
|
-
export type DeepSeekFileScope = Branded<'DeepSeekFileScope'>;
|
|
13
|
-
/**
|
|
14
|
-
* Brand a locally derived namespace digest.
|
|
15
|
-
* @param scope - SHA-256 digest of endpoint and API key.
|
|
16
|
-
* @returns the same string with namespace identity attached at type level.
|
|
17
|
-
*/
|
|
18
|
-
export declare function DeepSeekFileScope(scope: string): DeepSeekFileScope;
|
|
19
|
-
//# sourceMappingURL=file-id.d.ts.map
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/** DeepSeek Files API upload reuse, invalidation, and quota recovery. @module dsh-llm-deepseek/file-store */
|
|
2
|
-
import type { RequestImageAttachment } from '@deepseek-ai/dsh-attachment';
|
|
3
|
-
import type { DeepSeekFileId } from './file-id.ts';
|
|
4
|
-
import { DeepSeekUploadIndex } from './upload-index.ts';
|
|
5
|
-
import type { DeepSeekUploadRecord } from './upload-index.ts';
|
|
6
|
-
import type { DeepSeekProtocol } from './types.ts';
|
|
7
|
-
/** Shared Files-store limit for each request image, including file-id references. */
|
|
8
|
-
export declare const MAX_IMAGE_BYTES: number;
|
|
9
|
-
/** Resolved file-store policy from the plugin configuration. */
|
|
10
|
-
export interface DeepSeekFilePolicy {
|
|
11
|
-
expiresAfterSeconds: number;
|
|
12
|
-
refreshMarginSeconds: number;
|
|
13
|
-
quotaCleanupBatch: number;
|
|
14
|
-
}
|
|
15
|
-
/** Connection facts needed by file operations. */
|
|
16
|
-
export interface DeepSeekFileConnection {
|
|
17
|
-
baseURL: string;
|
|
18
|
-
apiKey: string;
|
|
19
|
-
/** Files wire protocol selected by the resolved connection. */
|
|
20
|
-
protocol: DeepSeekProtocol;
|
|
21
|
-
}
|
|
22
|
-
/** Result of one file-id resolution. */
|
|
23
|
-
export interface DeepSeekFileReference {
|
|
24
|
-
record: DeepSeekUploadRecord;
|
|
25
|
-
uploaded: boolean;
|
|
26
|
-
}
|
|
27
|
-
interface FileStoreOptions {
|
|
28
|
-
index?: DeepSeekUploadIndex;
|
|
29
|
-
now?: () => number;
|
|
30
|
-
fetch?: typeof fetch;
|
|
31
|
-
}
|
|
32
|
-
/** User-scoped durable file-id reuse for the DeepSeek route. */
|
|
33
|
-
export declare class DeepSeekFileStore {
|
|
34
|
-
private readonly index;
|
|
35
|
-
private readonly now;
|
|
36
|
-
private readonly fetchImpl;
|
|
37
|
-
private readonly inflight;
|
|
38
|
-
/**
|
|
39
|
-
* @param options - testable index, clock, and transport boundaries.
|
|
40
|
-
*/
|
|
41
|
-
constructor(options?: FileStoreOptions);
|
|
42
|
-
private client;
|
|
43
|
-
/**
|
|
44
|
-
* Resolve or upload one deterministic request image. Concurrent calls share one upload while retaining independent waits.
|
|
45
|
-
* @param version - deterministic model-request bytes and complete transformation identity.
|
|
46
|
-
* @param connection - endpoint and API-key snapshot.
|
|
47
|
-
* @param policy - expiry and quota-recovery policy.
|
|
48
|
-
* @param signal - cancellation of this wait; shared transport stops when no waiter remains.
|
|
49
|
-
* @returns a reusable file id and whether this call published a new upload.
|
|
50
|
-
*/
|
|
51
|
-
ensureUploaded(version: RequestImageAttachment, connection: DeepSeekFileConnection, policy: DeepSeekFilePolicy, signal?: AbortSignal): Promise<DeepSeekFileReference>;
|
|
52
|
-
private ensureUploadedOnce;
|
|
53
|
-
/**
|
|
54
|
-
* Invalidate one exact local mapping after a model request rejects its remote id.
|
|
55
|
-
* @param version - request-image version whose remote generation failed.
|
|
56
|
-
* @param fileId - exact rejected file id.
|
|
57
|
-
* @param connection - endpoint and API-key snapshot.
|
|
58
|
-
*/
|
|
59
|
-
invalidate(version: RequestImageAttachment, fileId: DeepSeekFileId, connection: DeepSeekFileConnection): Promise<void>;
|
|
60
|
-
/**
|
|
61
|
-
* Delete the indexed remote file for one attachment and remove its local mapping.
|
|
62
|
-
* @param version - exact request-image version to release.
|
|
63
|
-
* @param connection - endpoint and API-key snapshot.
|
|
64
|
-
* @param policy - expiry policy used to locate a reusable mapping.
|
|
65
|
-
* @param signal - request cancellation.
|
|
66
|
-
* @returns whether an indexed file existed and was deleted.
|
|
67
|
-
*/
|
|
68
|
-
release(version: RequestImageAttachment, connection: DeepSeekFileConnection, policy: DeepSeekFilePolicy, signal?: AbortSignal): Promise<boolean>;
|
|
69
|
-
/**
|
|
70
|
-
* Delete the oldest provider files whose names identify harness ownership.
|
|
71
|
-
* @param connection - endpoint and API-key snapshot.
|
|
72
|
-
* @param count - positive maximum number of files to delete.
|
|
73
|
-
* @param signal - request cancellation.
|
|
74
|
-
* @returns number of successfully deleted files.
|
|
75
|
-
*/
|
|
76
|
-
reclaimOldestOwned(connection: DeepSeekFileConnection, count: number, signal?: AbortSignal): Promise<number>;
|
|
77
|
-
/**
|
|
78
|
-
* Delete every remote harness-owned file in the active API-key namespace and clear its index.
|
|
79
|
-
* @param connection - endpoint and API-key snapshot.
|
|
80
|
-
* @param signal - request cancellation.
|
|
81
|
-
* @returns number of deleted files.
|
|
82
|
-
*/
|
|
83
|
-
releaseAll(connection: DeepSeekFileConnection, signal?: AbortSignal): Promise<number>;
|
|
84
|
-
}
|
|
85
|
-
export {};
|
|
86
|
-
//# sourceMappingURL=file-store.d.ts.map
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/** DeepSeek Files API transport for Chat Completions and Messages endpoints. @module dsh-llm-deepseek/files-api */
|
|
2
|
-
import { LlmError } from '@deepseek-ai/dsh-llm';
|
|
3
|
-
import type { ImageMediaType } from '@deepseek-ai/dsh-attachment';
|
|
4
|
-
import type { DeepSeekFileId as DeepSeekFileIdType } from './file-id.ts';
|
|
5
|
-
import type { DeepSeekProtocol } from './types.ts';
|
|
6
|
-
/** Minimum provider-supported file lifetime. */
|
|
7
|
-
export declare const MIN_FILE_EXPIRY_SECONDS = 3600;
|
|
8
|
-
/** Maximum provider-supported file lifetime. */
|
|
9
|
-
export declare const MAX_FILE_EXPIRY_SECONDS = 2592000;
|
|
10
|
-
/** Maximum Files API upload size. */
|
|
11
|
-
export declare const MAX_FILE_UPLOAD_BYTES: number;
|
|
12
|
-
/** Current per-key file-count quota. */
|
|
13
|
-
export declare const MAX_STORED_FILE_COUNT = 10000;
|
|
14
|
-
/** Current per-key storage quota. */
|
|
15
|
-
export declare const MAX_STORED_FILE_BYTES: number;
|
|
16
|
-
/** Validated file metadata normalized from either DeepSeek Files protocol. */
|
|
17
|
-
export interface DeepSeekFileObject {
|
|
18
|
-
id: DeepSeekFileIdType;
|
|
19
|
-
bytes: number;
|
|
20
|
-
createdAt: number;
|
|
21
|
-
filename: string;
|
|
22
|
-
/** Chat Completions purpose; synthesized as `user_data` for Messages. */
|
|
23
|
-
purpose: 'user_data';
|
|
24
|
-
/** Remote Chat Completions expiry or the upload-time Messages reuse deadline; Messages list/retrieve omit this field. */
|
|
25
|
-
expiresAt?: number;
|
|
26
|
-
}
|
|
27
|
-
/** One page returned by `GET /files`. */
|
|
28
|
-
export interface DeepSeekFilePage {
|
|
29
|
-
data: DeepSeekFileObject[];
|
|
30
|
-
firstId?: DeepSeekFileIdType;
|
|
31
|
-
lastId?: DeepSeekFileIdType;
|
|
32
|
-
hasMore: boolean;
|
|
33
|
-
}
|
|
34
|
-
/** Files API operation failure with its HTTP status retained for recovery policy. */
|
|
35
|
-
export declare class DeepSeekFilesError extends LlmError {
|
|
36
|
-
/** Parsed provider detail used only for error classification. */
|
|
37
|
-
readonly detail: string;
|
|
38
|
-
/**
|
|
39
|
-
* @param message - user-readable provider failure.
|
|
40
|
-
* @param status - HTTP status returned by the Files API.
|
|
41
|
-
* @param detail - provider error fields joined for classification.
|
|
42
|
-
*/
|
|
43
|
-
constructor(message: string, status: number, detail: string);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Whether an upload failure reports a provider storage or file-count quota.
|
|
47
|
-
* @param error - Files API operation failure.
|
|
48
|
-
* @returns whether one bounded remote cleanup and upload retry may recover.
|
|
49
|
-
*/
|
|
50
|
-
export declare function isFilesQuotaError(error: unknown): error is DeepSeekFilesError;
|
|
51
|
-
interface FilesApiOptions {
|
|
52
|
-
baseURL: string;
|
|
53
|
-
apiKey: string;
|
|
54
|
-
protocol: DeepSeekProtocol;
|
|
55
|
-
fetch?: typeof fetch;
|
|
56
|
-
}
|
|
57
|
-
/** Direct Files client retaining the configured URL root and refusing redirects before credentials can leave its origin. */
|
|
58
|
-
export declare class DeepSeekFilesClient {
|
|
59
|
-
private readonly baseURL;
|
|
60
|
-
private readonly apiKey;
|
|
61
|
-
private readonly fetchImpl;
|
|
62
|
-
private readonly protocol;
|
|
63
|
-
private readonly path;
|
|
64
|
-
/**
|
|
65
|
-
* @param options - endpoint, API-key snapshot, and optional test transport.
|
|
66
|
-
*/
|
|
67
|
-
constructor(options: FilesApiOptions);
|
|
68
|
-
private parseFile;
|
|
69
|
-
private request;
|
|
70
|
-
/**
|
|
71
|
-
* Upload one image with an explicit expiry.
|
|
72
|
-
* @param input - deterministic request-version bytes, media type, filename, lifetime, and cancellation.
|
|
73
|
-
* @returns the validated file and reuse deadline. Messages omits expiry metadata;
|
|
74
|
-
* its deadline uses upload creation plus the requested lifetime.
|
|
75
|
-
*/
|
|
76
|
-
upload(input: {
|
|
77
|
-
data: Uint8Array;
|
|
78
|
-
mediaType: ImageMediaType;
|
|
79
|
-
filename: string;
|
|
80
|
-
expiresAfterSeconds: number;
|
|
81
|
-
signal?: AbortSignal;
|
|
82
|
-
}): Promise<DeepSeekFileObject & {
|
|
83
|
-
expiresAt: number;
|
|
84
|
-
}>;
|
|
85
|
-
/**
|
|
86
|
-
* List one page of files. Ordering applies only to Chat Completions; Messages owns its page order.
|
|
87
|
-
* @param options - pagination, ordering, and cancellation.
|
|
88
|
-
* @returns the validated page with null Messages cursors omitted.
|
|
89
|
-
*/
|
|
90
|
-
list(options?: {
|
|
91
|
-
after?: DeepSeekFileIdType;
|
|
92
|
-
limit?: number;
|
|
93
|
-
order?: 'asc' | 'desc';
|
|
94
|
-
signal?: AbortSignal;
|
|
95
|
-
}): Promise<DeepSeekFilePage>;
|
|
96
|
-
/**
|
|
97
|
-
* Retrieve one file object.
|
|
98
|
-
* @param fileId - provider file identifier.
|
|
99
|
-
* @param signal - request cancellation.
|
|
100
|
-
* @returns the validated file object.
|
|
101
|
-
*/
|
|
102
|
-
retrieve(fileId: DeepSeekFileIdType, signal?: AbortSignal): Promise<DeepSeekFileObject>;
|
|
103
|
-
/**
|
|
104
|
-
* Delete one provider file.
|
|
105
|
-
* @param fileId - provider file identifier.
|
|
106
|
-
* @param signal - request cancellation.
|
|
107
|
-
*/
|
|
108
|
-
delete(fileId: DeepSeekFileIdType, signal?: AbortSignal): Promise<void>;
|
|
109
|
-
}
|
|
110
|
-
export {};
|
|
111
|
-
//# sourceMappingURL=files-api.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/image-tokens.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DeepSeek vision-token accounting: the provider's published image-token
|
|
3
|
-
* calculator (api-docs.deepseek.com, Token & Token Usage) ported verbatim in
|
|
4
|
-
* its current `v41` configuration. The provider scales an image below
|
|
5
|
-
* 544×544 total pixels up, aligns it to a 14px-patch grid, downsamples 3:1
|
|
6
|
-
* per axis into token cells, and caps one image at 1024 tokens by solving the
|
|
7
|
-
* largest aspect-preserving grid inside that budget. The count is exact: this
|
|
8
|
-
* configuration has no alignment pad and no aspect-ratio clamp. Actual usage
|
|
9
|
-
* remains authoritative.
|
|
10
|
-
*
|
|
11
|
-
* @module dsh-llm-deepseek/image-tokens
|
|
12
|
-
*/
|
|
13
|
-
import type { ProjectedDimensions } from '@deepseek-ai/dsh-attachment';
|
|
14
|
-
/**
|
|
15
|
-
* Dimensions the harness sends so the provider keeps the whole image: the
|
|
16
|
-
* source itself when its patch-padded grid fits the token cap, otherwise the
|
|
17
|
-
* source aspect ratio at the solved grid's long edge. The provider pads the
|
|
18
|
-
* short edge to whole patches on its side. Rounding the aspect-preserving
|
|
19
|
-
* short edge can change the token count from the source's solved grid;
|
|
20
|
-
* request pricing uses the sent dimensions. Small images are never enlarged.
|
|
21
|
-
* @param width - positive integer source width in pixels.
|
|
22
|
-
* @param height - positive integer source height in pixels.
|
|
23
|
-
* @returns the request dimensions to encode.
|
|
24
|
-
*/
|
|
25
|
-
export declare function deepSeekRequestImageDimensions(width: number, height: number): ProjectedDimensions;
|
|
26
|
-
/**
|
|
27
|
-
* Vision tokens DeepSeek charges for one request image of the given
|
|
28
|
-
* dimensions.
|
|
29
|
-
* @param width - positive integer request-image width in pixels.
|
|
30
|
-
* @param height - positive integer request-image height in pixels.
|
|
31
|
-
* @returns the provider vision-token price, at most 1024.
|
|
32
|
-
*/
|
|
33
|
-
export declare function deepSeekImageTokens(width: number, height: number): number;
|
|
34
|
-
//# sourceMappingURL=image-tokens.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/messages-api.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** Shared DeepSeek Messages API endpoint and header policy. @module dsh-llm-deepseek/messages-api */
|
|
2
|
-
/** Required opt-in for Messages file operations and file-referenced image requests. */
|
|
3
|
-
export declare const MESSAGES_FILES_BETA = "files-api-2025-04-14";
|
|
4
|
-
/**
|
|
5
|
-
* Resolve the API root without duplicating an explicit provider version path.
|
|
6
|
-
* @param baseURL - validated configured endpoint root.
|
|
7
|
-
* @returns the root beneath which Messages resources are exposed.
|
|
8
|
-
*/
|
|
9
|
-
export declare function messagesApiRoot(baseURL: string): string;
|
|
10
|
-
//# sourceMappingURL=messages-api.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { LlmModelInfo, LlmResolvedModelInfo } from '@deepseek-ai/dsh-llm';
|
|
2
|
-
import type { DeepSeekCatalogModel, DeepSeekConnectionOptions } from './types.ts';
|
|
3
|
-
/** Advertise one catalog entry.
|
|
4
|
-
* @param provider - registered provider id.
|
|
5
|
-
* @param model - advisory catalog entry.
|
|
6
|
-
* @returns selector metadata.
|
|
7
|
-
*/
|
|
8
|
-
export declare function catalogModelInfo(provider: string, model: DeepSeekCatalogModel): LlmModelInfo;
|
|
9
|
-
/** Resolve model capabilities against one configuration generation.
|
|
10
|
-
* @param connection - validated connection facts.
|
|
11
|
-
* @param provider - registered provider id.
|
|
12
|
-
* @param model - requested wire model id.
|
|
13
|
-
* @returns effective model metadata for this operation.
|
|
14
|
-
*/
|
|
15
|
-
export declare function modelInfo(connection: DeepSeekConnectionOptions, provider: string, model: string): LlmResolvedModelInfo;
|
|
16
|
-
//# sourceMappingURL=model-info.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-extensions.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Prepare plugin-contributed request fields and commit their delivery after HTTP acceptance. */
|
|
2
|
-
import type { DeepSeekLlmApiExtensionRequest } from '@deepseek-ai/dsh-deepseek-llm-api-extensions';
|
|
3
|
-
import type { DeepSeekAdapterOptions } from './types.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Merge contributions without replacing protocol-owned fields. Preparation and
|
|
6
|
-
* acceptance failures retain the same error category across DeepSeek protocols.
|
|
7
|
-
* @param body - serialized protocol request before extension fields.
|
|
8
|
-
* @param options - request identity, purpose, and cancellation.
|
|
9
|
-
* @param prepare - contributor registry captured for this adapter.
|
|
10
|
-
* @returns HTTP payload and a commit to invoke only after a successful HTTP response.
|
|
11
|
-
*/
|
|
12
|
-
export declare function prepareRequestExtensions(body: DeepSeekLlmApiExtensionRequest['body'], options: Omit<DeepSeekLlmApiExtensionRequest, 'body'>, prepare: DeepSeekAdapterOptions['prepareExtensions']): Promise<{
|
|
13
|
-
payload: string;
|
|
14
|
-
accept(): Promise<void>;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=request-extensions.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-files.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/** Shared Files resolution, bounded stale-id recovery, and normalized-image diagnostics. */
|
|
2
|
-
import type { RequestImageAttachment } from '@deepseek-ai/dsh-attachment';
|
|
3
|
-
import type { DeepSeekFileStore, DeepSeekFileConnection, DeepSeekFilePolicy } from './file-store.ts';
|
|
4
|
-
import type { DeepSeekFileId } from './file-id.ts';
|
|
5
|
-
/** Position of an image occurrence in the request's conversation messages. */
|
|
6
|
-
export interface ImageWireLocation {
|
|
7
|
-
message: number;
|
|
8
|
-
image: number;
|
|
9
|
-
}
|
|
10
|
-
/** A file upload failure eligible for request-wide inline fallback. */
|
|
11
|
-
export declare class FileResolutionFailure extends Error {
|
|
12
|
-
constructor(cause: unknown);
|
|
13
|
-
}
|
|
14
|
-
/** Files state owned by one model request, including at most one stale-id retry. */
|
|
15
|
-
export declare class RequestFiles {
|
|
16
|
-
private readonly files;
|
|
17
|
-
private readonly connection;
|
|
18
|
-
private readonly policy;
|
|
19
|
-
private readonly timeoutMs;
|
|
20
|
-
private readonly signal;
|
|
21
|
-
private readonly activity;
|
|
22
|
-
private used;
|
|
23
|
-
private retried;
|
|
24
|
-
constructor(files: DeepSeekFileStore, connection: DeepSeekFileConnection, policy: DeepSeekFilePolicy, timeoutMs: number, signal: AbortSignal, activity: () => void);
|
|
25
|
-
/** Reset occurrence tracking before serializing the next HTTP attempt. */
|
|
26
|
-
beginAttempt(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Resolve a retained image under its own upload deadline.
|
|
29
|
-
* @param version - prepared request image.
|
|
30
|
-
* @param location - occurrence used by provider-rejection diagnostics.
|
|
31
|
-
* @returns the reusable provider id.
|
|
32
|
-
*/
|
|
33
|
-
resolve(version: RequestImageAttachment, location: ImageWireLocation): Promise<DeepSeekFileId>;
|
|
34
|
-
/**
|
|
35
|
-
* Invalidate rejected mappings; only the first stale-id response permits another request.
|
|
36
|
-
* @param detail - provider error fields used for stale-id classification.
|
|
37
|
-
* @returns whether the caller should serialize and dispatch again.
|
|
38
|
-
*/
|
|
39
|
-
retry(detail: string): Promise<boolean>;
|
|
40
|
-
/**
|
|
41
|
-
* Attribute a normalized-image rejection to the actual uploaded image occurrences.
|
|
42
|
-
* @param status - rejected request's HTTP status.
|
|
43
|
-
* @param message - provider's error message.
|
|
44
|
-
* @param detail - provider error classification fields.
|
|
45
|
-
* @returns the image diagnostic or the original provider message.
|
|
46
|
-
*/
|
|
47
|
-
errorMessage(status: number, message: string, detail: string): string;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=request-files.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-pricing.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provider-side request-image pricing for DeepSeek routes: prices every
|
|
3
|
-
* retained surface occurrence at its per-model request target with
|
|
4
|
-
* the published vision-token accounting, and every occurrence the surface
|
|
5
|
-
* marks offloaded as its placeholder text. Consumed synchronously by the
|
|
6
|
-
* token meter through `LlmAdapter.imageRequestPricing`; provider usage
|
|
7
|
-
* remains the authoritative anchor for completed requests.
|
|
8
|
-
*
|
|
9
|
-
* @module dsh-llm-deepseek/request-pricing
|
|
10
|
-
*/
|
|
11
|
-
import type { ImageAttachmentAccessResolver, LlmImageRequestPricing } from '@deepseek-ai/dsh-llm';
|
|
12
|
-
import type { ImageAttachmentRef, ImageRequestTarget } from '@deepseek-ai/dsh-attachment';
|
|
13
|
-
import type { DeepSeekCatalogModel, DeepSeekConnectionOptions } from './types.ts';
|
|
14
|
-
/** Default bound on accumulated file-referenced image bytes per request. */
|
|
15
|
-
export declare const DEFAULT_MAX_REQUEST_FILES_BYTES: number;
|
|
16
|
-
/** Provider request image-count limit. */
|
|
17
|
-
export declare const DEFAULT_MAX_IMAGES_PER_REQUEST = 600;
|
|
18
|
-
/** Total-pixel budget matching provider low-detail image input. */
|
|
19
|
-
export declare const DEFAULT_LOW_DETAIL_IMAGE_PIXEL_BUDGET: number;
|
|
20
|
-
/** Encoded-byte target for one deterministic model-request image; the smallest quality-ladder output is used when no quality fits. */
|
|
21
|
-
export declare const DEFAULT_REQUEST_IMAGE_MAX_BYTES: number;
|
|
22
|
-
/**
|
|
23
|
-
* Provider per-side limit for a request carrying 15 or more images, applied
|
|
24
|
-
* to every request image so the image count never changes a projection.
|
|
25
|
-
*/
|
|
26
|
-
export declare const REQUEST_IMAGE_MAX_DIMENSION = 4096;
|
|
27
|
-
/**
|
|
28
|
-
* Resolve the encoded-byte target one DeepSeek model route applies to every request image.
|
|
29
|
-
* @param model - Advertised model route and its optional image overrides.
|
|
30
|
-
* @returns the route's encoded-byte target.
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export declare function resolveRequestImageMaxBytes(model: DeepSeekCatalogModel): number;
|
|
34
|
-
/**
|
|
35
|
-
* Resolve the deterministic request target one DeepSeek model route chooses
|
|
36
|
-
* for one source image: the published token grid unless the model overrides
|
|
37
|
-
* it with a pixel budget, then the provider per-side limit, then the route's
|
|
38
|
-
* encoded-byte target. Small images are never enlarged.
|
|
39
|
-
* @param model - Advertised model route and its optional image overrides.
|
|
40
|
-
* @param source - intrinsic dimensions of the normalized attachment.
|
|
41
|
-
* @returns Complete request dimensions and encoded-byte target.
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
export declare function resolveRequestImageTarget(model: DeepSeekCatalogModel, source: Pick<ImageAttachmentRef, 'width' | 'height'>): ImageRequestTarget;
|
|
45
|
-
/**
|
|
46
|
-
* Build the request-image pricing for one DeepSeek route from a validated
|
|
47
|
-
* connection snapshot. Uncatalogued and text-only models price every
|
|
48
|
-
* occurrence as its deterministic text substitution; image-capable models
|
|
49
|
-
* price an offloaded occurrence as its placeholder text and a retained one by
|
|
50
|
-
* its projected request dimensions, with each occurrence's handle or
|
|
51
|
-
* placeholder text built through the same access resolution the serializer
|
|
52
|
-
* uses. Access paths resolve at pricing time, so a path that changes before
|
|
53
|
-
* the request only shifts the text price by its own length.
|
|
54
|
-
* @param connection - validated connection facts of the pricing resolution.
|
|
55
|
-
* @param model - exact model id named by the request header.
|
|
56
|
-
* @param resolveAccess - current execution-world access resolution shared with request serialization.
|
|
57
|
-
* @returns synchronous per-occurrence pricing for the route.
|
|
58
|
-
*/
|
|
59
|
-
export declare function deepSeekImageRequestPricing(connection: DeepSeekConnectionOptions, model: string, resolveAccess?: ImageAttachmentAccessResolver): LlmImageRequestPricing;
|
|
60
|
-
//# sourceMappingURL=request-pricing.d.ts.map
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/** Shared catalog and request-local dependencies for DeepSeek protocols. */
|
|
2
|
-
import type { ModelModality, SystemPromptUpdate, ResolvedRetryPolicy, ImageAttachmentAccess } from '@deepseek-ai/dsh-llm';
|
|
3
|
-
import type { AttachmentStore, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment';
|
|
4
|
-
import type { CredentialRef } from '@deepseek-ai/dsh-credentials';
|
|
5
|
-
import type { AnonymousUserId } from '@deepseek-ai/dsh-anonymous-user-id';
|
|
6
|
-
import type { DeepSeekLlmApiExtensionRequest, PreparedDeepSeekLlmApiExtensions } from '@deepseek-ai/dsh-deepseek-llm-api-extensions';
|
|
7
|
-
import type { DeepSeekFileStore, DeepSeekFilePolicy } from './file-store.ts';
|
|
8
|
-
/** Supported wire implementations; Responses is not yet implemented. */
|
|
9
|
-
export type DeepSeekProtocol = 'chat-completions' | 'messages';
|
|
10
|
-
/** One optional model entry advertised by the direct-fetch adapter. */
|
|
11
|
-
export interface DeepSeekCatalogModel {
|
|
12
|
-
/** Wire model id accepted by the configured endpoint. */
|
|
13
|
-
id: string;
|
|
14
|
-
/** Selector label; defaults to {@link id}. */
|
|
15
|
-
name?: string;
|
|
16
|
-
/** Optional selector detail for deployments with similar model variants. */
|
|
17
|
-
description?: string;
|
|
18
|
-
/** Known combined request/response context capacity; omitted when deployment metadata is unavailable. */
|
|
19
|
-
contextWindow?: number;
|
|
20
|
-
/** Per-request output cap for this model; omission falls back to the profile's {@link DeepSeekConnectionOptions.maxTokens}. */
|
|
21
|
-
maxTokens?: number;
|
|
22
|
-
/** Accepted request modalities; omission is text-only. */
|
|
23
|
-
inputModalities?: ModelModality[];
|
|
24
|
-
/**
|
|
25
|
-
* Total-pixel budget replacing the published token-grid projection for one
|
|
26
|
-
* deterministic request preview, or the 512-by-512 `low` preset; omission
|
|
27
|
-
* projects onto the token grid.
|
|
28
|
-
*/
|
|
29
|
-
imagePixelBudget?: number | 'low';
|
|
30
|
-
/** Encoded-byte target for one deterministic request preview; the smallest quality-ladder output is used when no quality fits. */
|
|
31
|
-
imageMaxBytes?: number;
|
|
32
|
-
/**
|
|
33
|
-
* `'in-history'` declares that the endpoint reads the latest `system`
|
|
34
|
-
* message at any position of the conversation as the complete effective
|
|
35
|
-
* system prompt; omission means only a leading system message is read.
|
|
36
|
-
*/
|
|
37
|
-
systemPromptUpdate?: SystemPromptUpdate;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Validated connection facts for one operation. The plugin's
|
|
41
|
-
* `resolveAdapterOptions` is the one explicit resolve step producing this
|
|
42
|
-
* shape; the adapter trusts it and re-reads it per operation, which is what
|
|
43
|
-
* makes a configuration change reach the next request without re-registration.
|
|
44
|
-
*/
|
|
45
|
-
export interface DeepSeekConnectionOptions {
|
|
46
|
-
/** Wire protocol selected by plugin configuration. */
|
|
47
|
-
protocol: DeepSeekProtocol;
|
|
48
|
-
/** Root compatible with the selected protocol; custom paths remain unchanged. */
|
|
49
|
-
baseURL: string;
|
|
50
|
-
/**
|
|
51
|
-
* Credential reference of this same resolution, resolved per request.
|
|
52
|
-
* Travelling with the endpoint is the point: a request can never pair one
|
|
53
|
-
* generation's URL with another generation's secret. Configuration carries
|
|
54
|
-
* only this name — a literal key is not a configuration value.
|
|
55
|
-
*/
|
|
56
|
-
apiKeyEnv: CredentialRef;
|
|
57
|
-
/** Request defaults applied to every call (thinking mode, effort). */
|
|
58
|
-
defaults: RequestDefaults;
|
|
59
|
-
/** Default per-request output cap; explicit request values win. */
|
|
60
|
-
maxTokens: number;
|
|
61
|
-
/** Positive context capacity used when the selected model has no exact value. */
|
|
62
|
-
defaultContextWindow: number;
|
|
63
|
-
/** Advisory models exposed to discovery consumers; requests remain unrestricted. */
|
|
64
|
-
models: readonly DeepSeekCatalogModel[];
|
|
65
|
-
/** Maximum provider idle time while one stream read is outstanding. */
|
|
66
|
-
streamIdleTimeoutMs: number;
|
|
67
|
-
/** Maximum accumulated file-referenced image bytes in one request. */
|
|
68
|
-
maxRequestFilesBytes: number;
|
|
69
|
-
/** Maximum accumulated base64 image payload after Files API fallback. */
|
|
70
|
-
maxInlineRequestImageBytes: number;
|
|
71
|
-
/** Maximum number of represented images in one request. */
|
|
72
|
-
maxImagesPerRequest: number;
|
|
73
|
-
/** Raw-byte removal step after the file-reference bound is exceeded. */
|
|
74
|
-
imageOffloadByteQuantum: number;
|
|
75
|
-
/** Base64-byte removal step after the inline fallback bound is exceeded. */
|
|
76
|
-
inlineImageOffloadByteQuantum: number;
|
|
77
|
-
/** Image-count removal step after the count bound is exceeded. */
|
|
78
|
-
imageOffloadCountQuantum: number;
|
|
79
|
-
/** Maximum duration of one request-image Files API resolution. */
|
|
80
|
-
filesApiTimeoutMs: number;
|
|
81
|
-
/** Upload expiry, refresh, and quota-recovery policy. */
|
|
82
|
-
filePolicy: DeepSeekFilePolicy;
|
|
83
|
-
/** Provider-owned model-request retry policy, already resolved. */
|
|
84
|
-
retryPolicy: ResolvedRetryPolicy;
|
|
85
|
-
}
|
|
86
|
-
/** Constructor options for {@link DeepSeekAdapter}: the operation-local resolution hooks the plugin owns. */
|
|
87
|
-
export interface DeepSeekAdapterOptions {
|
|
88
|
-
/** Report unusable native Messages replay metadata without exposing content or signatures. */
|
|
89
|
-
onReplayDegrade?: (detail: {
|
|
90
|
-
provider: string;
|
|
91
|
-
model: string;
|
|
92
|
-
reason: string;
|
|
93
|
-
}) => void;
|
|
94
|
-
/** Current validated connection facts; called once per operation. */
|
|
95
|
-
options: () => DeepSeekConnectionOptions;
|
|
96
|
-
/**
|
|
97
|
-
* Resolve the bearer token for the connection facts of one request. The
|
|
98
|
-
* snapshot is passed in — never re-read — so the key can only ever come
|
|
99
|
-
* from the same resolution as the endpoint it is sent to. Throws `LlmError`
|
|
100
|
-
* `MISSING_CREDENTIAL` when no key is available anywhere.
|
|
101
|
-
*/
|
|
102
|
-
resolveApiKey: (connection: DeepSeekConnectionOptions) => Promise<string>;
|
|
103
|
-
/** Resolve the harness-home anonymous id shared with telemetry and feedback. */
|
|
104
|
-
resolveUserId: () => AnonymousUserId;
|
|
105
|
-
/** Resolve the current durable attachment service; absence rejects image input. */
|
|
106
|
-
resolveAttachments?: () => AttachmentStore | undefined;
|
|
107
|
-
/** Bridge one attachment reference into the current model-tool execution world. */
|
|
108
|
-
resolveImageAccess?: (attachments: AttachmentStore, ref: ImageAttachmentRef) => ImageAttachmentAccess | undefined;
|
|
109
|
-
/** Resolve the process-wide upload reuse store. */
|
|
110
|
-
resolveFiles?: () => DeepSeekFileStore;
|
|
111
|
-
/** Prepare the official API's plugin-contributed top-level fields for one exact wire request. */
|
|
112
|
-
prepareExtensions: (request: DeepSeekLlmApiExtensionRequest) => Promise<PreparedDeepSeekLlmApiExtensions>;
|
|
113
|
-
}
|
|
114
|
-
/** Adapter-level request defaults (from plugin config). */
|
|
115
|
-
export interface RequestDefaults {
|
|
116
|
-
thinking?: 'enabled' | 'disabled' | undefined;
|
|
117
|
-
reasoningEffort?: 'off' | 'low' | 'high' | 'max' | undefined;
|
|
118
|
-
}
|
|
119
|
-
//# sourceMappingURL=types.d.ts.map
|