@chatcode/chatcode-cli 3.0.5 → 3.0.6-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/{command-errors-CnbcOM1a.js → command-errors-vCFKCJFq.js} +12 -12
- package/lib/{command-trees-CU7BxVJo.js → command-trees-N2_LR4f-.js} +2 -2
- package/lib/{component-identity-kZK1_hFy.js → component-identity-CaV_MmmE.js} +3 -3
- 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/{extension-events-hLxwPvpg.js → extension-events-B5qKP0-X.js} +20 -20
- package/lib/{host-access-kT-u85k_.js → host-access-BRXW3V8i.js} +1 -1
- package/lib/{keymap-DS1M8sDo.js → keymap-BYjklwli.js} +2 -2
- package/lib/{plugin-CYw-MBRn.js → plugin-BACkrsVG.js} +1 -1
- package/lib/{plugin-d65VulBk.js → plugin-VYAv2o0K.js} +498 -348
- package/lib/{profile-boot-CffsubnV.js → profile-boot-c5YKtUIb.js} +17 -4
- package/lib/profile-boot.js +1 -1
- package/lib/{scenes-DG6T8t-A.js → scenes-B-iDMpgW.js} +3 -3
- package/lib/{settings-sections-2SuE0biI.js → settings-sections-CYCrZKUk.js} +3 -3
- package/lib/{statusBarSettings-B2MEAwnI.js → statusBarSettings-Cu-b_o4Q.js} +3 -3
- package/lib/{themes-DUO7kGW-.js → themes-DC9GpV6q.js} +12 -12
- package/lib/tui-compat-command-trees.js +1 -1
- package/lib/tui-compat-extensions.js +3 -3
- package/lib/tui-compat-plugin-host.js +5 -5
- package/lib/tui-compat-scenes.js +1 -1
- package/lib/tui-compat-settings-sections.js +1 -1
- package/lib/tui-compat-working-activity.js +1 -1
- package/lib/tui-compat-workspaces.js +1 -1
- package/lib/tui-compat.js +6 -6
- 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/lib/{workspaces-CLOkL_yE.js → workspaces-BchdRzlw.js} +2 -2
- 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/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
|
@@ -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
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/upload-index.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/** Durable DeepSeek attachment-to-file-id index. @module dsh-llm-deepseek/upload-index */
|
|
2
|
-
import type { AttachmentId, ImageVariantId as ImageVariantIdType } from '@deepseek-ai/dsh-attachment';
|
|
3
|
-
import type { DeepSeekFileId as DeepSeekFileIdType, DeepSeekFileScope as DeepSeekFileScopeType } from './file-id.ts';
|
|
4
|
-
/** One durable remote upload mapping. Unix times are milliseconds. */
|
|
5
|
-
export interface DeepSeekUploadRecord {
|
|
6
|
-
scope: DeepSeekFileScopeType;
|
|
7
|
-
/** Provider-independent normalized attachment from which the uploaded request version was derived. */
|
|
8
|
-
attachmentId: AttachmentId;
|
|
9
|
-
/** Complete request transformation identity, including route budgets and encoder parameters. */
|
|
10
|
-
variantId: ImageVariantIdType;
|
|
11
|
-
fileId: DeepSeekFileIdType;
|
|
12
|
-
bytes: number;
|
|
13
|
-
createdAt: number;
|
|
14
|
-
expiresAt: number;
|
|
15
|
-
}
|
|
16
|
-
/** Candidate commit outcome when another process already published a reusable upload. */
|
|
17
|
-
export interface UploadIndexCommit {
|
|
18
|
-
record: DeepSeekUploadRecord;
|
|
19
|
-
accepted: boolean;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Derive a non-secret stable index namespace without persisting or logging the API key.
|
|
23
|
-
* @param baseURL - normalized provider endpoint namespace.
|
|
24
|
-
* @param apiKey - resolved credential used only as hash input.
|
|
25
|
-
* @returns branded SHA-256 namespace digest.
|
|
26
|
-
*/
|
|
27
|
-
export declare function deepSeekFileScope(baseURL: string, apiKey: string): DeepSeekFileScopeType;
|
|
28
|
-
/** Atomic local index shared by every DeepSeek session in this DSH home. */
|
|
29
|
-
export declare class DeepSeekUploadIndex {
|
|
30
|
-
/** Absolute owner-private JSON index path. */
|
|
31
|
-
readonly path: string;
|
|
32
|
-
/**
|
|
33
|
-
* @param path - explicit test path; omission uses `DSH_HOME/llm-deepseek/files-v3.json`.
|
|
34
|
-
*/
|
|
35
|
-
constructor(path?: string);
|
|
36
|
-
private load;
|
|
37
|
-
private save;
|
|
38
|
-
/**
|
|
39
|
-
* Read one reusable mapping.
|
|
40
|
-
* @param scope - endpoint/API-key namespace.
|
|
41
|
-
* @param variantId - complete request-image transformation identity.
|
|
42
|
-
* @param now - current Unix time in milliseconds.
|
|
43
|
-
* @param refreshMarginMs - remaining lifetime below which a mapping is not reused.
|
|
44
|
-
* @returns the mapping when it has enough lifetime remaining.
|
|
45
|
-
*/
|
|
46
|
-
get(scope: DeepSeekFileScopeType, variantId: ImageVariantIdType, now: number, refreshMarginMs: number): Promise<DeepSeekUploadRecord | undefined>;
|
|
47
|
-
/**
|
|
48
|
-
* Publish a completed upload unless another process already published a reusable mapping.
|
|
49
|
-
* @param candidate - completed remote upload.
|
|
50
|
-
* @param now - current Unix time in milliseconds.
|
|
51
|
-
* @param refreshMarginMs - minimum reusable remaining lifetime.
|
|
52
|
-
* @returns the winning record and whether the candidate entered the index.
|
|
53
|
-
*/
|
|
54
|
-
commit(candidate: DeepSeekUploadRecord, now: number, refreshMarginMs: number): Promise<UploadIndexCommit>;
|
|
55
|
-
/**
|
|
56
|
-
* Remove one exact mapping without deleting a concurrently installed successor.
|
|
57
|
-
* @param scope - endpoint/API-key namespace.
|
|
58
|
-
* @param variantId - complete request-image transformation identity.
|
|
59
|
-
* @param fileId - exact remote generation being invalidated.
|
|
60
|
-
*/
|
|
61
|
-
remove(scope: DeepSeekFileScopeType, variantId: ImageVariantIdType, fileId: DeepSeekFileIdType): Promise<void>;
|
|
62
|
-
/**
|
|
63
|
-
* Remove every local mapping for one remote namespace.
|
|
64
|
-
* @param scope - endpoint/API-key namespace.
|
|
65
|
-
*/
|
|
66
|
-
clear(scope: DeepSeekFileScopeType): Promise<void>;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=upload-index.d.ts.map
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `DeepSeekAdapter`: fetch + SSE against a DeepSeek (OpenAI-compatible)
|
|
3
|
-
* chat-completions endpoint, emitting harness StreamChunks. The adapter is
|
|
4
|
-
* transport-only: connection facts arrive through a thunk resolved once per
|
|
5
|
-
* operation and the bearer token through a per-request resolver, so the
|
|
6
|
-
* registering plugin owns validation, layering, and credential policy.
|
|
7
|
-
*
|
|
8
|
-
* @module dsh-llm-deepseek/adapter
|
|
9
|
-
*/
|
|
10
|
-
import { LlmAdapter } from '@deepseek-ai/dsh-llm';
|
|
11
|
-
import type { GenerateOptions, LlmModelInfo, LlmProviderInfo, PreparedAdapterCall, LlmResolvedModelInfo, ResolvedRetryPolicy, StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
12
|
-
import type { DeepSeekAdapterOptions } from '../../common/types.ts';
|
|
13
|
-
import type { DeepSeekFileStore } from '../../common/file-store.ts';
|
|
14
|
-
import type { WireError } from './types.ts';
|
|
15
|
-
/**
|
|
16
|
-
* Map an HTTP status to a stable LlmError code.
|
|
17
|
-
* @param status - status of a non-2xx provider response.
|
|
18
|
-
* @param error - parsed provider error body, when available.
|
|
19
|
-
* @returns the normalized harness error code.
|
|
20
|
-
*/
|
|
21
|
-
export declare function httpErrorCode(status: number, error?: WireError['error']): string;
|
|
22
|
-
/**
|
|
23
|
-
* The first real `LlmAdapter`. One instance serves every model name it was
|
|
24
|
-
* registered under (the harness model name IS the wire model name).
|
|
25
|
-
*
|
|
26
|
-
* One stable signal reaches both initial fetch and body reads. Caller aborts
|
|
27
|
-
* map to `ABORTED`; the configured per-read idle watchdog maps to `TIMEOUT`.
|
|
28
|
-
*/
|
|
29
|
-
export declare class ChatCompletionsAdapter extends LlmAdapter {
|
|
30
|
-
private readonly config;
|
|
31
|
-
private readonly files;
|
|
32
|
-
constructor(config: DeepSeekAdapterOptions & {
|
|
33
|
-
resolveFiles: () => DeepSeekFileStore;
|
|
34
|
-
});
|
|
35
|
-
providerInfo(provider: string): LlmProviderInfo;
|
|
36
|
-
providerRetryPolicy(_provider: string): ResolvedRetryPolicy;
|
|
37
|
-
imageRequestPricing(_provider: string, model: string): ReturnType<LlmAdapter['imageRequestPricing']>;
|
|
38
|
-
listModels(provider: string): Promise<readonly LlmModelInfo[]>;
|
|
39
|
-
resolveModel(provider: string, model: string, _signal?: AbortSignal): Promise<LlmResolvedModelInfo>;
|
|
40
|
-
prepareCall(provider: string, model: string, _signal?: AbortSignal): Promise<PreparedAdapterCall>;
|
|
41
|
-
stream(options: GenerateOptions): AsyncIterable<StreamChunk>;
|
|
42
|
-
private streamWithConnection;
|
|
43
|
-
private request;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serialize harness messages into DeepSeek chat completions. Text-only
|
|
3
|
-
* requests retain string user content; the image path resolves durable
|
|
4
|
-
* attachments into ordered file-id or inline parts. Tool-result images follow their
|
|
5
|
-
* string-only tool messages in a separate user message.
|
|
6
|
-
* @module dsh-llm-deepseek/serialize
|
|
7
|
-
*/
|
|
8
|
-
import type { ContentBlock, GenerateOptions, ImageAttachmentAccessResolver, Message } from '@deepseek-ai/dsh-llm';
|
|
9
|
-
import type { ImageAttachmentRef, RequestImageAttachment } from '@deepseek-ai/dsh-attachment';
|
|
10
|
-
import type { WireMessage, WireRequest } from './types.ts';
|
|
11
|
-
import type { RequestDefaults } from '../../common/types.ts';
|
|
12
|
-
/** Provider representation for every retained image in one request. */
|
|
13
|
-
export type ImageRequestRepresentation = {
|
|
14
|
-
kind: 'file';
|
|
15
|
-
/** Resolve a retained request version to a reusable DeepSeek file id. */
|
|
16
|
-
resolveFileId: (version: RequestImageAttachment, block: Extract<ContentBlock, {
|
|
17
|
-
type: 'image';
|
|
18
|
-
}>, location: ImageWireLocation) => Promise<string>;
|
|
19
|
-
} | {
|
|
20
|
-
kind: 'base64';
|
|
21
|
-
};
|
|
22
|
-
/** Dependencies required only when the request contains image input. */
|
|
23
|
-
export interface ImageSerializationOptions {
|
|
24
|
-
/** One representation used for every retained image in this request. */
|
|
25
|
-
representation: ImageRequestRepresentation;
|
|
26
|
-
/** Request versions prepared for the conservatively retained normalized attachments, keyed by attachment id. */
|
|
27
|
-
requestImages: ReadonlyMap<ImageAttachmentRef['attachmentId'], RequestImageAttachment>;
|
|
28
|
-
/** Resolve current tool access independently from deterministic request-image versions. */
|
|
29
|
-
resolveImageAccess?: ImageAttachmentAccessResolver;
|
|
30
|
-
/** Positive bound on accumulated represented image bytes. */
|
|
31
|
-
maxRequestImageBytes: number;
|
|
32
|
-
/** Maximum represented images in one request. */
|
|
33
|
-
maxImagesPerRequest?: number;
|
|
34
|
-
/** Represented-byte removal step applied after the request exceeds its byte bound. */
|
|
35
|
-
byteQuantum?: number;
|
|
36
|
-
/** Image-count removal step applied after the request exceeds its count bound. */
|
|
37
|
-
countQuantum?: number;
|
|
38
|
-
}
|
|
39
|
-
export type { ImageWireLocation } from '../../common/request-files.ts';
|
|
40
|
-
import type { ImageWireLocation } from '../../common/request-files.ts';
|
|
41
|
-
/**
|
|
42
|
-
* Serialize the conversation. `tool-result` blocks become standalone
|
|
43
|
-
* `{role: 'tool'}` messages; the harness puts each tool result in its own
|
|
44
|
-
* user-role message, so a mixed user message contributes its text first and
|
|
45
|
-
* its tool results as separate wire messages after.
|
|
46
|
-
* @param messages - the harness conversation, in order.
|
|
47
|
-
* @returns the wire messages; order preserved, each tool result expanded into its own entry.
|
|
48
|
-
*/
|
|
49
|
-
export declare function serializeMessages(messages: Message[]): WireMessage[];
|
|
50
|
-
/**
|
|
51
|
-
* Serialize image-capable history after resolving durable attachments.
|
|
52
|
-
* Consecutive tool results keep string `tool` messages and share one following
|
|
53
|
-
* user message containing their images.
|
|
54
|
-
* @param messages - request history whose offloaded occurrences are already placeholder text.
|
|
55
|
-
* @param images - prepared request versions, one provider representation, and its budget.
|
|
56
|
-
* @returns ordered DeepSeek wire messages.
|
|
57
|
-
*/
|
|
58
|
-
export declare function serializeMessagesWithImages(messages: readonly Message[], images: ImageSerializationOptions): Promise<WireMessage[]>;
|
|
59
|
-
/**
|
|
60
|
-
* Build the full wire request. Always streaming (`stream: true`, usage
|
|
61
|
-
* reporting on); optional fields are omitted rather than sent as null, so
|
|
62
|
-
* provider defaults apply.
|
|
63
|
-
* @param options - the harness request (model, history, system, tools, sampling).
|
|
64
|
-
* @param defaults - adapter-level thinking defaults; undefined fields put nothing on the wire.
|
|
65
|
-
* @returns the chat-completions request body.
|
|
66
|
-
*/
|
|
67
|
-
export declare function serializeRequest(options: GenerateOptions, defaults?: RequestDefaults): WireRequest;
|
|
68
|
-
/**
|
|
69
|
-
* Build one image-capable request while keeping durable bytes out of session
|
|
70
|
-
* messages. Offloaded occurrences become per-image text; retained occurrences
|
|
71
|
-
* must fit the route budget at their exact request-version byte lengths.
|
|
72
|
-
* @param options - harness request containing image-capable user content.
|
|
73
|
-
* @param images - request versions, optional current access resolver, and request bounds.
|
|
74
|
-
* @param defaults - adapter-level thinking defaults.
|
|
75
|
-
* @returns the fully materialized DeepSeek request body.
|
|
76
|
-
*/
|
|
77
|
-
export declare function serializeRequestWithImages(options: GenerateOptions, images: ImageSerializationOptions, defaults?: RequestDefaults): Promise<WireRequest>;
|
|
78
|
-
//# sourceMappingURL=serialize.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Decode an SSE byte stream into event `data` payloads. Framing — chunk
|
|
3
|
-
* reassembly, UTF-8/CRLF/BOM handling, comment and non-data field skipping,
|
|
4
|
-
* multi-`data:` joining — is `eventsource-parser`'s. Comments are reported
|
|
5
|
-
* only through an optional transport-activity callback. This module keeps the
|
|
6
|
-
* DeepSeek protocol: the literal `[DONE]` is yielded so the caller owns final
|
|
7
|
-
* flushing, and EOF before it raises {@link LlmError}. Framing is spec-strict:
|
|
8
|
-
* an event dispatches only on its blank-line terminator, so an unterminated
|
|
9
|
-
* tail at EOF is truncation, not a flushable payload.
|
|
10
|
-
*
|
|
11
|
-
* @module dsh-llm-deepseek/sse
|
|
12
|
-
*/
|
|
13
|
-
/** The terminal payload DeepSeek (and OpenAI) send after the last chunk. */
|
|
14
|
-
export declare const DONE = "[DONE]";
|
|
15
|
-
/**
|
|
16
|
-
* Parse an SSE byte stream into data payloads. Yields `[DONE]` as the final
|
|
17
|
-
* value and returns; throws `LlmError('STREAM_CLOSED')` when the stream ends
|
|
18
|
-
* without it (truncated response — the model call cannot be trusted).
|
|
19
|
-
* @param stream - raw SSE bytes; reads may split anywhere, including mid-UTF-8 sequence.
|
|
20
|
-
* @param onComment - optional transport-activity callback; comments never enter the yielded payload stream.
|
|
21
|
-
* @returns each event's data payload in arrival order, the `[DONE]` sentinel last.
|
|
22
|
-
*/
|
|
23
|
-
export declare function parseSse(stream: ReadableStream<BufferSource>, onComment?: (comment: string) => void): AsyncGenerator<string>;
|
|
24
|
-
//# sourceMappingURL=sse.d.ts.map
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Translate DeepSeek SSE payloads with one stateful harness block per content, reasoning, or tool
|
|
3
|
-
* call index. An empty initial reasoning delta does not open a block. Finish reason and the latest
|
|
4
|
-
* usage are deferred until `[DONE]`, covering both finish-attached and trailing usage-only shapes
|
|
5
|
-
* while ensuring no chunk follows `finish`.
|
|
6
|
-
*
|
|
7
|
-
* Translate DeepSeek wire chunks into the harness `StreamChunk` protocol.
|
|
8
|
-
* @module dsh-llm-deepseek/translate
|
|
9
|
-
*/
|
|
10
|
-
import type { FinishReason, StreamChunk, TokenUsage } from '@deepseek-ai/dsh-llm';
|
|
11
|
-
import type { WireUsage } from './types.ts';
|
|
12
|
-
/**
|
|
13
|
-
* Map the wire finish_reason vocabulary to the harness FinishReason.
|
|
14
|
-
* @param reason - the wire `finish_reason` string.
|
|
15
|
-
* @returns the mapped reason; unrecognized values (content_filter, …) become `{kind: 'error'}` with the uppercased value as `code`.
|
|
16
|
-
*/
|
|
17
|
-
export declare function mapFinishReason(reason: string): FinishReason;
|
|
18
|
-
/**
|
|
19
|
-
* Map wire usage fields. DeepSeek's `prompt_tokens` INCLUDES cache hits
|
|
20
|
-
* (`prompt_tokens = prompt_cache_hit_tokens + prompt_cache_miss_tokens`,
|
|
21
|
-
* api/create-chat-completion); the harness TokenUsage convention is
|
|
22
|
-
* DISJOINT counts, so cache reads are subtracted out of `inputTokens`.
|
|
23
|
-
* @param usage - wire usage from the finish chunk or the trailing usage-only chunk.
|
|
24
|
-
* @returns disjoint harness counts; an exact total is present only when the
|
|
25
|
-
* aggregate prompt/completion counters are valid and agree with any wire total.
|
|
26
|
-
*/
|
|
27
|
-
export declare function mapUsage(usage: WireUsage): TokenUsage;
|
|
28
|
-
/**
|
|
29
|
-
* Consume SSE data payloads (ending with `[DONE]`) and yield StreamChunks.
|
|
30
|
-
* Malformed JSON payloads abort the stream with `MALFORMED_RESPONSE`.
|
|
31
|
-
* @param payloads - SSE data payloads from {@link parseSse}, `[DONE]`-terminated.
|
|
32
|
-
* @returns deltas as they arrive; `block-end`s, `usage`, and `finish` are all deferred to the `[DONE]` sentinel.
|
|
33
|
-
* A `stop` (or absent) finish with no opened blocks is a degenerate provider completion and maps to an
|
|
34
|
-
* `EMPTY_RESPONSE` error finish instead of a successful empty message.
|
|
35
|
-
*/
|
|
36
|
-
export declare function translate(payloads: AsyncIterable<string>): AsyncGenerator<StreamChunk>;
|
|
37
|
-
//# sourceMappingURL=translate.d.ts.map
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DeepSeek chat-completions wire format (OpenAI-compatible). Types only.
|
|
3
|
-
*
|
|
4
|
-
* Source of truth: the official API docs at
|
|
5
|
-
* `~/repos/deepsuite-docs/apps/docs/docs` (api/create-chat-completion,
|
|
6
|
-
* guides/thinking_mode.mdx, guides/tool_calls.md), cross-checked against
|
|
7
|
-
* live streams from the internal endpoint (2026-06).
|
|
8
|
-
*
|
|
9
|
-
* @module dsh-llm-deepseek/types
|
|
10
|
-
*/
|
|
11
|
-
/** Request body for `POST {baseURL}/chat/completions`. */
|
|
12
|
-
export interface WireRequest {
|
|
13
|
-
model: string;
|
|
14
|
-
messages: WireMessage[];
|
|
15
|
-
stream: true;
|
|
16
|
-
stream_options: {
|
|
17
|
-
include_usage: true;
|
|
18
|
-
};
|
|
19
|
-
/** Thinking-mode toggle (top level, NOT inside extra_body on the wire). */
|
|
20
|
-
thinking?: {
|
|
21
|
-
type: 'enabled' | 'disabled';
|
|
22
|
-
};
|
|
23
|
-
/** Thinking effort (official levels). */
|
|
24
|
-
reasoning_effort?: 'low' | 'high' | 'max';
|
|
25
|
-
tools?: WireTool[];
|
|
26
|
-
temperature?: number;
|
|
27
|
-
max_tokens?: number;
|
|
28
|
-
/**
|
|
29
|
-
* Stop sequences (OpenAI `stop`): generation halts as soon as the model
|
|
30
|
-
* produces any one of these strings. Mapped from `GenerateOptions.stop`.
|
|
31
|
-
*/
|
|
32
|
-
stop?: string[];
|
|
33
|
-
}
|
|
34
|
-
/** System-role message: a single string of instructions. */
|
|
35
|
-
export interface WireSystemMessage {
|
|
36
|
-
role: 'system';
|
|
37
|
-
content: string;
|
|
38
|
-
}
|
|
39
|
-
/** Text part inside a multimodal user message. */
|
|
40
|
-
export interface WireTextContentPart {
|
|
41
|
-
type: 'text';
|
|
42
|
-
text: string;
|
|
43
|
-
}
|
|
44
|
-
/** Files API reference inside a multimodal user message. */
|
|
45
|
-
export interface WireFileContentPart {
|
|
46
|
-
type: 'file';
|
|
47
|
-
file_id: string;
|
|
48
|
-
}
|
|
49
|
-
/** Inline base64 data URL inside a multimodal user message. */
|
|
50
|
-
export interface WireImageUrlContentPart {
|
|
51
|
-
type: 'image_url';
|
|
52
|
-
image_url: {
|
|
53
|
-
url: string;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
/** One image representation accepted by a multimodal user message. */
|
|
57
|
-
export type WireImageContentPart = WireFileContentPart | WireImageUrlContentPart;
|
|
58
|
-
/** Ordered input part accepted by a multimodal user message. */
|
|
59
|
-
export type WireUserContentPart = WireTextContentPart | WireImageContentPart;
|
|
60
|
-
/** User-role message: text-only string or ordered multimodal input. */
|
|
61
|
-
export interface WireUserMessage {
|
|
62
|
-
role: 'user';
|
|
63
|
-
content: string | WireUserContentPart[];
|
|
64
|
-
}
|
|
65
|
-
/** Tool-role message: the result of one tool call, keyed by its call id. */
|
|
66
|
-
export interface WireToolMessage {
|
|
67
|
-
role: 'tool';
|
|
68
|
-
tool_call_id: string;
|
|
69
|
-
content: string;
|
|
70
|
-
}
|
|
71
|
-
/** One entry of the request `messages` array, discriminated on `role`. */
|
|
72
|
-
export type WireMessage = WireSystemMessage | WireUserMessage | WireAssistantMessage | WireToolMessage;
|
|
73
|
-
/**
|
|
74
|
-
* Assistant-role history message. The harness replays `content: ""` (never
|
|
75
|
-
* null) on tool-call-only turns — some gateways reject null — and sends null
|
|
76
|
-
* only when the turn carried neither text nor tool calls.
|
|
77
|
-
*/
|
|
78
|
-
export interface WireAssistantMessage {
|
|
79
|
-
role: 'assistant';
|
|
80
|
-
content: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* CoT passback, present on every turn whose assistant content carried
|
|
83
|
-
* reasoning. REQUIRED on tool-call turns in thinking mode (see
|
|
84
|
-
* guides/thinking_mode.mdx § Tool Calls); DeepSeek ignores it elsewhere,
|
|
85
|
-
* while a gateway re-encoding for another vendor recovers that turn's
|
|
86
|
-
* thinking signature by hashing it.
|
|
87
|
-
*/
|
|
88
|
-
reasoning_content?: string;
|
|
89
|
-
tool_calls?: WireToolCall[];
|
|
90
|
-
}
|
|
91
|
-
/** A completed tool call replayed on an assistant history message; `arguments` is the raw JSON string. */
|
|
92
|
-
export interface WireToolCall {
|
|
93
|
-
id: string;
|
|
94
|
-
type: 'function';
|
|
95
|
-
function: {
|
|
96
|
-
name: string;
|
|
97
|
-
arguments: string;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
/** One entry of the request `tools` array; `parameters` is a JSON Schema object. */
|
|
101
|
-
export interface WireTool {
|
|
102
|
-
type: 'function';
|
|
103
|
-
function: {
|
|
104
|
-
name: string;
|
|
105
|
-
description: string;
|
|
106
|
-
parameters: Record<string, unknown>;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
/** One parsed SSE `data:` payload (a chat.completion.chunk). */
|
|
110
|
-
export interface WireChunk {
|
|
111
|
-
choices?: WireChoice[];
|
|
112
|
-
/** Arrives attached to the finish chunk and/or as a trailing usage-only chunk. */
|
|
113
|
-
usage?: WireUsage | null;
|
|
114
|
-
}
|
|
115
|
-
/** One streamed choice (requests always ask for a single one); `finish_reason` is non-null only on its terminal chunk. */
|
|
116
|
-
export interface WireChoice {
|
|
117
|
-
delta?: WireDelta;
|
|
118
|
-
finish_reason?: string | null;
|
|
119
|
-
}
|
|
120
|
-
/** The incremental content of one streamed choice; any subset of fields may be present per chunk. */
|
|
121
|
-
export interface WireDelta {
|
|
122
|
-
role?: string;
|
|
123
|
-
/** Visible text. Null/empty on reasoning/tool-call chunks. */
|
|
124
|
-
content?: string | null;
|
|
125
|
-
/**
|
|
126
|
-
* Thinking-mode CoT. The FIRST chunk carries an empty string (must not
|
|
127
|
-
* open a reasoning block); absent entirely in non-thinking mode.
|
|
128
|
-
*/
|
|
129
|
-
reasoning_content?: string | null;
|
|
130
|
-
tool_calls?: WireToolCallDelta[];
|
|
131
|
-
}
|
|
132
|
-
/** A streamed fragment of one tool call; fragments sharing an `index` concatenate into one call. */
|
|
133
|
-
export interface WireToolCallDelta {
|
|
134
|
-
/** Disambiguates parallel tool calls; stable across a call's deltas. */
|
|
135
|
-
index: number;
|
|
136
|
-
/**
|
|
137
|
-
* Carried by the first delta of each call. Gateways observed in the wild
|
|
138
|
-
* repeat it on continuation deltas as `''` or `null`; both mean "unchanged".
|
|
139
|
-
*/
|
|
140
|
-
id?: string | null;
|
|
141
|
-
type?: 'function';
|
|
142
|
-
function?: {
|
|
143
|
-
/** Carried by the first delta of each call, with the same `''`/`null` repetition as {@link WireToolCallDelta.id}. */
|
|
144
|
-
name?: string | null;
|
|
145
|
-
/** Argument JSON fragment (concatenate across deltas). */
|
|
146
|
-
arguments?: string | null;
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Wire token accounting. `prompt_tokens` INCLUDES cache hits (it equals
|
|
151
|
-
* `prompt_cache_hit_tokens + prompt_cache_miss_tokens`); `mapUsage` subtracts
|
|
152
|
-
* them to keep the harness convention of disjoint counts.
|
|
153
|
-
* `prompt_tokens_details.cached_tokens` is the OpenAI-compat spelling of the
|
|
154
|
-
* hit count.
|
|
155
|
-
*/
|
|
156
|
-
export interface WireUsage {
|
|
157
|
-
prompt_tokens: number;
|
|
158
|
-
completion_tokens: number;
|
|
159
|
-
/** Provider-reported aggregate across prompt and completion tokens. */
|
|
160
|
-
total_tokens?: number;
|
|
161
|
-
prompt_cache_hit_tokens?: number;
|
|
162
|
-
prompt_cache_miss_tokens?: number;
|
|
163
|
-
prompt_tokens_details?: {
|
|
164
|
-
cached_tokens?: number;
|
|
165
|
-
};
|
|
166
|
-
completion_tokens_details?: {
|
|
167
|
-
reasoning_tokens?: number;
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
/** Non-2xx error body. */
|
|
171
|
-
export interface WireError {
|
|
172
|
-
error?: {
|
|
173
|
-
message?: string;
|
|
174
|
-
type?: string;
|
|
175
|
-
code?: string;
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
//# sourceMappingURL=types.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/adapter.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/** Direct Messages transport with one cancellable lifecycle per model request. */
|
|
2
|
-
import { LlmAdapter } from '@deepseek-ai/dsh-llm';
|
|
3
|
-
import type { GenerateOptions, ImageAttachmentAccessResolver, PreparedAdapterCall, StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
4
|
-
import type { AttachmentStore } from '@deepseek-ai/dsh-attachment';
|
|
5
|
-
import type { DeepSeekAdapterOptions, DeepSeekConnectionOptions as Connection } from '../../common/types.ts';
|
|
6
|
-
import type { DeepSeekFileStore } from '../../common/file-store.ts';
|
|
7
|
-
/** Request-local dependencies supplied by the owning Cordis plugin. */
|
|
8
|
-
export interface AdapterDependencies {
|
|
9
|
-
/** Resolve a single validated configuration generation. */
|
|
10
|
-
connection(): Connection;
|
|
11
|
-
/** Resolve the key named by that same generation. */
|
|
12
|
-
apiKey(connection: Connection): Promise<string>;
|
|
13
|
-
/** Stable anonymous Harness identity. */
|
|
14
|
-
userId(): string;
|
|
15
|
-
/** Current attachment service; absence is valid for text requests. */
|
|
16
|
-
attachments(): AttachmentStore | undefined;
|
|
17
|
-
/** Current execution-world attachment path. */
|
|
18
|
-
imageAccess: ImageAttachmentAccessResolver;
|
|
19
|
-
/** Process-wide Files upload reuse and recovery. */
|
|
20
|
-
files(): DeepSeekFileStore;
|
|
21
|
-
/** Prepare plugin-contributed fields for this exact HTTP request. */
|
|
22
|
-
prepareExtensions: DeepSeekAdapterOptions['prepareExtensions'];
|
|
23
|
-
/** Report discarded replay metadata without exposing durable content or signatures. */
|
|
24
|
-
onReplayDegrade?: (detail: {
|
|
25
|
-
provider: string;
|
|
26
|
-
model: string;
|
|
27
|
-
reason: string;
|
|
28
|
-
}) => void;
|
|
29
|
-
}
|
|
30
|
-
/** DeepSeek provider using Messages content and native thinking replay. */
|
|
31
|
-
export declare class DeepSeekMessagesAdapter extends LlmAdapter {
|
|
32
|
-
private readonly dependencies;
|
|
33
|
-
constructor(dependencies: AdapterDependencies);
|
|
34
|
-
providerInfo(provider: string): {
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
};
|
|
38
|
-
providerRetryPolicy(_provider: string): import("@deepseek-ai/dsh-llm").ResolvedRetryPolicy;
|
|
39
|
-
listModels(provider: string): Promise<import("@deepseek-ai/dsh-llm").LlmModelInfo[]>;
|
|
40
|
-
resolveModel(provider: string, model: string): Promise<import("@deepseek-ai/dsh-llm").LlmResolvedModelInfo>;
|
|
41
|
-
imageRequestPricing(_provider: string, model: string): import("@deepseek-ai/dsh-llm").LlmImageRequestPricing;
|
|
42
|
-
prepareCall(provider: string, model: string): Promise<PreparedAdapterCall>;
|
|
43
|
-
stream(options: GenerateOptions): AsyncIterable<StreamChunk>;
|
|
44
|
-
private generate;
|
|
45
|
-
private request;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=adapter.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/images.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/** Deterministic Messages image preparation for Files references and bounded inline fallback. */
|
|
2
|
-
import type { AttachmentStore, ImageAttachmentRef, RequestImageAttachment } from '@deepseek-ai/dsh-attachment';
|
|
3
|
-
import type { ImageAttachmentAccessResolver, Message } from '@deepseek-ai/dsh-llm';
|
|
4
|
-
import type { DeepSeekConnectionOptions as Connection } from '../../common/types.ts';
|
|
5
|
-
import type { DeepSeekFileId } from '../../common/file-id.ts';
|
|
6
|
-
import type { RequestFiles } from '../../common/request-files.ts';
|
|
7
|
-
export { deepSeekImageRequestPricing as imagePricing } from '../../common/request-pricing.ts';
|
|
8
|
-
/** Normalize retained image references before converting Messages content.
|
|
9
|
-
* @param history - durable history; never mutated.
|
|
10
|
-
* @param connection - request-local image budgets.
|
|
11
|
-
* @param modelId - target model id.
|
|
12
|
-
* @param attachments - mounted attachment store, required only for image requests.
|
|
13
|
-
* @param access - current execution-world path resolver.
|
|
14
|
-
* @param signal - request cancellation.
|
|
15
|
-
* @returns projected history and prepared image bytes keyed by attachment id.
|
|
16
|
-
*/
|
|
17
|
-
export declare function prepareImages(history: readonly Message[], connection: Connection, modelId: string, attachments: AttachmentStore | undefined, access: ImageAttachmentAccessResolver, signal: AbortSignal): Promise<{
|
|
18
|
-
messages: readonly Message[];
|
|
19
|
-
versions: Map<ImageAttachmentRef['attachmentId'], RequestImageAttachment>;
|
|
20
|
-
}>;
|
|
21
|
-
/** Require logged offload before retrying images that exceed the inline budget.
|
|
22
|
-
* @param messages - history already within the Files budget.
|
|
23
|
-
* @param versions - normalized versions prepared for retained references.
|
|
24
|
-
* @param connection - resolved inline bounds.
|
|
25
|
-
* @returns unchanged history within both byte and image-count limits.
|
|
26
|
-
*/
|
|
27
|
-
export declare function inlineImages(messages: readonly Message[], versions: ReadonlyMap<ImageAttachmentRef['attachmentId'], RequestImageAttachment>, connection: Connection): readonly Message[];
|
|
28
|
-
/** Resolve retained images to Files ids, recording every occurrence for failure diagnostics.
|
|
29
|
-
* @param messages - history within the Files byte/count budget.
|
|
30
|
-
* @param versions - normalized versions for every retained reference.
|
|
31
|
-
* @param files - request-owned Files resolution and recovery.
|
|
32
|
-
* @returns ids keyed by durable attachment identity.
|
|
33
|
-
*/
|
|
34
|
-
export declare function prepareFileIds(messages: readonly Message[], versions: ReadonlyMap<ImageAttachmentRef['attachmentId'], RequestImageAttachment>, files: RequestFiles): Promise<Map<ImageAttachmentRef['attachmentId'], DeepSeekFileId>>;
|
|
35
|
-
//# sourceMappingURL=images.d.ts.map
|