@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,5 +1,5 @@
|
|
|
1
1
|
import { launchEnvironmentOf } from "@deepseek-ai/dsh-launch-environment";
|
|
2
|
-
import { CONTEXT_WINDOW_EXCEEDED_CODE, EMPTY_RESPONSE_CODE, IMAGE_OFFLOAD_REQUIRED_CODE, INVALID_CREDENTIAL_CODE, LlmAdapter, LlmError, QUOTA_EXCEEDED_CODE, ReasoningEffortId, RetryPolicySchema, assertUsableApiKey, attributionHeaders, contentHasImage, isContextWindowExceededError, isQuotaExceededError, normalizeApiKey, offloadedImageText, projectOffloadedImages, requestImageHandleText, requiredImageOffload, resolveImageAttachmentAccess, resolveRetryPolicy } from "@deepseek-ai/dsh-llm";
|
|
2
|
+
import { CONTEXT_WINDOW_EXCEEDED_CODE, EMPTY_RESPONSE_CODE, IMAGE_OFFLOAD_REQUIRED_CODE, INVALID_CREDENTIAL_CODE, LlmAdapter, LlmError, QUOTA_EXCEEDED_CODE, ReasoningEffortId, RetryPolicySchema, assertUsableApiKey, attributionHeaders, contentHasImage, isContextWindowExceededError, isQuotaExceededError, normalizeApiKey, offloadedImageText, projectOffloadedImages, requestImageHandleText, requiredImageOffload, resolveImageAttachmentAccess, resolveRetryPolicy, validatePromptProtocolOptions } from "@deepseek-ai/dsh-llm";
|
|
3
3
|
import { deepEqualJson } from "@deepseek-ai/dsh-util-values";
|
|
4
4
|
import { MAX_TIMER_DELAY_MS, idleWatchdog, timeoutOf } from "@deepseek-ai/dsh-timeout";
|
|
5
5
|
import { brandString } from "@deepseek-ai/dsh-brand";
|
|
@@ -518,16 +518,16 @@ function allOfferedCompatFields() {
|
|
|
518
518
|
function assertOfferedCompatFields(provider, site, compat) {
|
|
519
519
|
for (const [field, value] of Object.entries(compat ?? {})) {
|
|
520
520
|
if (compatProtocols(field).length === 0) {
|
|
521
|
-
if (Object.values(COMPAT_GATES).some((gate) => gate[field] !== void 0)) invalid(provider, `${site} sets compat "${field}", which is not configurable here: pi-ai's installed catalog sets it for the vendors that need it, so name that provider as the route instead`);
|
|
522
|
-
invalid(provider, `${site} sets compat "${field}", which no wire protocol declares; the configurable switches are ${allOfferedCompatFields().join(", ")}`);
|
|
521
|
+
if (Object.values(COMPAT_GATES).some((gate) => gate[field] !== void 0)) invalid$1(provider, `${site} sets compat "${field}", which is not configurable here: pi-ai's installed catalog sets it for the vendors that need it, so name that provider as the route instead`);
|
|
522
|
+
invalid$1(provider, `${site} sets compat "${field}", which no wire protocol declares; the configurable switches are ${allOfferedCompatFields().join(", ")}`);
|
|
523
523
|
}
|
|
524
|
-
if (value == null) invalid(provider, `${site} sets compat "${field}" with no value; give it one, or remove the key to leave the field to the next layer — the installed catalog entry, then pi-ai's own detection`);
|
|
524
|
+
if (value == null) invalid$1(provider, `${site} sets compat "${field}" with no value; give it one, or remove the key to leave the field to the next layer — the installed catalog entry, then pi-ai's own detection`);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
/** An expected configuration failure that stored-catalog reads may retain for repair. */
|
|
528
528
|
var PiAiCatalogError = class extends Error {};
|
|
529
529
|
/** Report a route the deployment cannot serve, naming the settings key at fault. */
|
|
530
|
-
function invalid(provider, detail) {
|
|
530
|
+
function invalid$1(provider, detail) {
|
|
531
531
|
throw new PiAiCatalogError(`llm-pi-ai: provider "${provider}" ${detail}`);
|
|
532
532
|
}
|
|
533
533
|
/**
|
|
@@ -564,15 +564,15 @@ function resolveModelReasoning(provider, entry, base) {
|
|
|
564
564
|
const efforts = entry.reasoningEfforts;
|
|
565
565
|
if (efforts === void 0) return { reasoning: base?.reasoning ?? false };
|
|
566
566
|
if (efforts === false) return { reasoning: false };
|
|
567
|
-
if (efforts === null || Object.keys(efforts).length === 0) invalid(provider, `model "${entry.id}" has an empty reasoningEfforts; declare the offered levels, set false for a non-reasoning model, or omit the field to keep the installed catalog's capability`);
|
|
567
|
+
if (efforts === null || Object.keys(efforts).length === 0) invalid$1(provider, `model "${entry.id}" has an empty reasoningEfforts; declare the offered levels, set false for a non-reasoning model, or omit the field to keep the installed catalog's capability`);
|
|
568
568
|
const declared = THINKING_LEVELS.flatMap((level) => {
|
|
569
569
|
const wire = efforts[level];
|
|
570
570
|
return wire === void 0 ? [] : [[level, wire]];
|
|
571
571
|
});
|
|
572
572
|
for (const [level, wire] of declared) if (wire === null) {
|
|
573
|
-
if (level !== "off") invalid(provider, `model "${entry.id}" reasoningEfforts.${level} needs the wire value dispatch should send; only "off" may leave it empty`);
|
|
574
|
-
} else if (wire.length === 0) invalid(provider, `model "${entry.id}" reasoningEfforts.${level} must not be an empty string`);
|
|
575
|
-
if (!declared.some(([level]) => level !== "off")) invalid(provider, `model "${entry.id}" reasoningEfforts offers no level beyond "off"; declare a thinking level, or set reasoningEfforts to false for a non-reasoning model`);
|
|
573
|
+
if (level !== "off") invalid$1(provider, `model "${entry.id}" reasoningEfforts.${level} needs the wire value dispatch should send; only "off" may leave it empty`);
|
|
574
|
+
} else if (wire.length === 0) invalid$1(provider, `model "${entry.id}" reasoningEfforts.${level} must not be an empty string`);
|
|
575
|
+
if (!declared.some(([level]) => level !== "off")) invalid$1(provider, `model "${entry.id}" reasoningEfforts offers no level beyond "off"; declare a thinking level, or set reasoningEfforts to false for a non-reasoning model`);
|
|
576
576
|
const map = {};
|
|
577
577
|
for (const level of THINKING_LEVELS) {
|
|
578
578
|
const wire = efforts[level];
|
|
@@ -612,7 +612,7 @@ function resolveModelCompat(provider, entry, route, base, api) {
|
|
|
612
612
|
for (const [field, value] of configuredCompatEntries(entry.compat)) {
|
|
613
613
|
if (gate?.[field] !== "offer") {
|
|
614
614
|
const offered = offeredCompatFields(api);
|
|
615
|
-
invalid(provider, `model "${entry.id}" sets compat "${field}", but its api is "${api}", which does not take it; that switch exists on ${compatProtocols(field).join(", ")}, and "${api}" offers ${offered.length === 0 ? "no configurable compat" : offered.join(", ")}`);
|
|
615
|
+
invalid$1(provider, `model "${entry.id}" sets compat "${field}", but its api is "${api}", which does not take it; that switch exists on ${compatProtocols(field).join(", ")}, and "${api}" offers ${offered.length === 0 ? "no configurable compat" : offered.join(", ")}`);
|
|
616
616
|
}
|
|
617
617
|
configured[field] = value;
|
|
618
618
|
}
|
|
@@ -639,39 +639,39 @@ function resolveRouteModels(request, validation = "strict") {
|
|
|
639
639
|
const overrides = request.modelOverrides ?? {};
|
|
640
640
|
const modelErrors = /* @__PURE__ */ new Map();
|
|
641
641
|
for (const [id, override] of Object.entries(overrides)) {
|
|
642
|
-
if (id.length === 0) invalid(provider, "has a modelOverrides entry with an empty model id");
|
|
643
|
-
if (defaults.size === 0) invalid(provider, `sets modelOverrides for "${id}", but the installed catalog does not describe this route; a declared route spells every model out in its models list`);
|
|
644
|
-
if (configured.length > 0) invalid(provider, `sets modelOverrides for "${id}" beside a models list; models already replaces the served catalog, so declare the fields on its entries`);
|
|
642
|
+
if (id.length === 0) invalid$1(provider, "has a modelOverrides entry with an empty model id");
|
|
643
|
+
if (defaults.size === 0) invalid$1(provider, `sets modelOverrides for "${id}", but the installed catalog does not describe this route; a declared route spells every model out in its models list`);
|
|
644
|
+
if (configured.length > 0) invalid$1(provider, `sets modelOverrides for "${id}" beside a models list; models already replaces the served catalog, so declare the fields on its entries`);
|
|
645
645
|
if (!defaults.has(id)) {
|
|
646
646
|
const message = `modelOverrides names "${id}", which the installed catalog does not describe`;
|
|
647
|
-
if (validation === "strict") invalid(provider, message);
|
|
647
|
+
if (validation === "strict") invalid$1(provider, message);
|
|
648
648
|
modelErrors.set(id, `llm-pi-ai: provider "${provider}" ${message}`);
|
|
649
649
|
}
|
|
650
|
-
if ("id" in override) invalid(provider, `modelOverrides entry "${id}" sets "id", which is the dict key`);
|
|
650
|
+
if ("id" in override) invalid$1(provider, `modelOverrides entry "${id}" sets "id", which is the dict key`);
|
|
651
651
|
}
|
|
652
652
|
const entries = configured.length > 0 ? configured : [...defaults.values()].map((model) => ({
|
|
653
653
|
id: model.id,
|
|
654
654
|
...overrides[model.id]
|
|
655
655
|
}));
|
|
656
|
-
if (entries.length === 0) invalid(provider, "resolves no models; the installed catalog does not describe this route, so its models must be listed in configuration");
|
|
656
|
+
if (entries.length === 0) invalid$1(provider, "resolves no models; the installed catalog does not describe this route, so its models must be listed in configuration");
|
|
657
657
|
const routeApi = sharedCatalogApi(defaults);
|
|
658
658
|
assertOfferedCompatFields(provider, "route", request.compat);
|
|
659
659
|
const seen = /* @__PURE__ */ new Set();
|
|
660
660
|
const configuredMaxTokens = /* @__PURE__ */ new Map();
|
|
661
661
|
const resolveEntry = (entry) => {
|
|
662
662
|
assertOfferedCompatFields(provider, `model "${entry.id}"`, entry.compat);
|
|
663
|
-
if (entry.id.length === 0) invalid(provider, "has a model with an empty id");
|
|
664
|
-
if (seen.has(entry.id)) invalid(provider, `lists model "${entry.id}" more than once`);
|
|
663
|
+
if (entry.id.length === 0) invalid$1(provider, "has a model with an empty id");
|
|
664
|
+
if (seen.has(entry.id)) invalid$1(provider, `lists model "${entry.id}" more than once`);
|
|
665
665
|
seen.add(entry.id);
|
|
666
666
|
const base = defaults.get(entry.id);
|
|
667
667
|
const api = request.api ?? base?.api ?? routeApi;
|
|
668
|
-
if (api === void 0) invalid(provider, `model "${entry.id}" needs an api; the installed catalog does not describe it, so set the route's api to the wire protocol its endpoint speaks`);
|
|
668
|
+
if (api === void 0) invalid$1(provider, `model "${entry.id}" needs an api; the installed catalog does not describe it, so set the route's api to the wire protocol its endpoint speaks`);
|
|
669
669
|
const baseUrl = request.baseURL ?? base?.baseUrl ?? providerBaseUrl;
|
|
670
|
-
if (baseUrl === void 0) invalid(provider, `model "${entry.id}" needs a baseURL; the installed catalog does not describe this route`);
|
|
670
|
+
if (baseUrl === void 0) invalid$1(provider, `model "${entry.id}" needs a baseURL; the installed catalog does not describe this route`);
|
|
671
671
|
const contextWindow = entry.contextWindow ?? base?.contextWindow ?? request.defaultContextWindow;
|
|
672
|
-
if (!Number.isInteger(contextWindow) || contextWindow <= 0) invalid(provider, `model "${entry.id}" contextWindow must be a positive integer`);
|
|
672
|
+
if (!Number.isInteger(contextWindow) || contextWindow <= 0) invalid$1(provider, `model "${entry.id}" contextWindow must be a positive integer`);
|
|
673
673
|
const maxTokens = entry.maxTokens ?? base?.maxTokens ?? request.defaultMaxTokens;
|
|
674
|
-
if (!Number.isInteger(maxTokens) || maxTokens <= 0) invalid(provider, `model "${entry.id}" maxTokens must be a positive integer`);
|
|
674
|
+
if (!Number.isInteger(maxTokens) || maxTokens <= 0) invalid$1(provider, `model "${entry.id}" maxTokens must be a positive integer`);
|
|
675
675
|
if (entry.maxTokens !== void 0) configuredMaxTokens.set(entry.id, entry.maxTokens);
|
|
676
676
|
return {
|
|
677
677
|
...base,
|
|
@@ -704,7 +704,7 @@ function resolveRouteModels(request, validation = "strict") {
|
|
|
704
704
|
for (const [field] of configuredCompatEntries(request.compat)) {
|
|
705
705
|
const takers = compatProtocols(field);
|
|
706
706
|
if (serviceableModels.some((model) => takers.includes(model.api))) continue;
|
|
707
|
-
invalid(provider, `sets compat "${field}", but no model on the route speaks a protocol that takes it; it exists on ${takers.join(", ")}`);
|
|
707
|
+
invalid$1(provider, `sets compat "${field}", but no model on the route speaks a protocol that takes it; it exists on ${takers.join(", ")}`);
|
|
708
708
|
}
|
|
709
709
|
return {
|
|
710
710
|
models: serviceableModels,
|
|
@@ -1580,6 +1580,112 @@ async function* toStreamChunks(events, contextWindow, callerSignal, requestedMod
|
|
|
1580
1580
|
throw new LlmError("pi-ai event stream ended without done/error", "STREAM_CLOSED");
|
|
1581
1581
|
}
|
|
1582
1582
|
//#endregion
|
|
1583
|
+
//#region lib/types/prompt-options.js
|
|
1584
|
+
/** Prompt-supplied generation controls for pi-ai HTTP request builders. */
|
|
1585
|
+
const jsonBodyProtocols = new Set([
|
|
1586
|
+
"openai-completions",
|
|
1587
|
+
"openai-responses",
|
|
1588
|
+
"azure-openai-responses",
|
|
1589
|
+
"anthropic-messages"
|
|
1590
|
+
]);
|
|
1591
|
+
const googleProtocols = new Set(["google-generative-ai", "google-vertex"]);
|
|
1592
|
+
function invalid(field) {
|
|
1593
|
+
throw new LlmError(field, "UNSUPPORTED_OPTION");
|
|
1594
|
+
}
|
|
1595
|
+
function range(value, min, max) {
|
|
1596
|
+
return typeof value === "number" && Number.isFinite(value) && value >= min && value <= max;
|
|
1597
|
+
}
|
|
1598
|
+
function record(value) {
|
|
1599
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1600
|
+
}
|
|
1601
|
+
/**
|
|
1602
|
+
* Validate protocol options before queue admission and against the bound stream model.
|
|
1603
|
+
* @param config - Request controls and optional protocol assertion.
|
|
1604
|
+
* @param protocol - Protocol of the resolved pi-ai model.
|
|
1605
|
+
*/
|
|
1606
|
+
function validatePiPromptOptions(config, protocol) {
|
|
1607
|
+
if (config.protocol !== void 0 && config.protocol !== protocol) invalid("protocol");
|
|
1608
|
+
const options = config.protocolOptions;
|
|
1609
|
+
const first = Object.keys(options ?? {})[0];
|
|
1610
|
+
if (options === void 0 || first === void 0) return;
|
|
1611
|
+
if (!jsonBodyProtocols.has(protocol) && !googleProtocols.has(protocol)) invalid(`protocolOptions.${first}`);
|
|
1612
|
+
validatePromptProtocolOptions(options);
|
|
1613
|
+
for (const [key, value] of Object.entries(options)) {
|
|
1614
|
+
const field = `protocolOptions.${key}`;
|
|
1615
|
+
if (googleProtocols.has(protocol)) {
|
|
1616
|
+
if (key === "thinking_level" && (typeof value !== "string" || !/^(minimal|low|medium|high)$/iu.test(value) || options.thinkingConfig !== void 0)) invalid(field);
|
|
1617
|
+
if (key === "thinkingConfig" && (!record(value) || value.thinkingLevel !== void 0 && value.thinkingBudget !== void 0)) invalid(field);
|
|
1618
|
+
if (key === "generationConfig" || key === "config") invalid(field);
|
|
1619
|
+
}
|
|
1620
|
+
if (protocol === "openai-completions" || protocol === "anthropic-messages") {
|
|
1621
|
+
if (key === "top_p" && !range(value, 0, 1)) invalid(field);
|
|
1622
|
+
}
|
|
1623
|
+
if (protocol === "openai-completions") {
|
|
1624
|
+
if ((key === "presence_penalty" || key === "frequency_penalty") && !range(value, -2, 2)) invalid(field);
|
|
1625
|
+
if (key === "seed" && (typeof value !== "number" || !Number.isSafeInteger(value))) invalid(field);
|
|
1626
|
+
}
|
|
1627
|
+
if (protocol === "anthropic-messages") {
|
|
1628
|
+
if (key === "top_k" && (typeof value !== "number" || !Number.isSafeInteger(value) || value <= 0)) invalid(field);
|
|
1629
|
+
if (key === "thinking") {
|
|
1630
|
+
if (!record(value) || typeof value.type !== "string") invalid(field);
|
|
1631
|
+
const budget = value.budget_tokens;
|
|
1632
|
+
if (budget !== void 0 && (value.type !== "enabled" || typeof budget !== "number" || !Number.isSafeInteger(budget) || budget < 1024 || config.maxTokens !== void 0 && budget >= config.maxTokens || config.temperature !== void 0 || options.top_p !== void 0 || options.top_k !== void 0)) invalid(field);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Apply options at the provider request boundary.
|
|
1639
|
+
* @param payload - Request object produced by the selected protocol.
|
|
1640
|
+
* @param options - Generation controls admitted by the protocol adapter.
|
|
1641
|
+
* @param protocol - Protocol of the resolved pi-ai model.
|
|
1642
|
+
* @returns The payload with protocol-specific generation controls applied.
|
|
1643
|
+
*/
|
|
1644
|
+
function applyPiPromptOptions(payload, options, protocol) {
|
|
1645
|
+
if (!record(payload)) invalid("protocolOptions");
|
|
1646
|
+
if (googleProtocols.has(protocol)) {
|
|
1647
|
+
const { thinking_level: level, ...fields } = options;
|
|
1648
|
+
const generationConfig = fields;
|
|
1649
|
+
if (typeof level === "string") generationConfig.thinkingConfig = { thinkingLevel: level.toUpperCase() };
|
|
1650
|
+
const config = record(payload.config) ? { ...payload.config } : {};
|
|
1651
|
+
if (generationConfig.thinkingConfig !== void 0) {
|
|
1652
|
+
const thinking = record(config.thinkingConfig) ? config.thinkingConfig : {};
|
|
1653
|
+
delete config.thinkingConfig;
|
|
1654
|
+
if (record(generationConfig.thinkingConfig) && typeof thinking.includeThoughts === "boolean") generationConfig.thinkingConfig = {
|
|
1655
|
+
includeThoughts: thinking.includeThoughts,
|
|
1656
|
+
...generationConfig.thinkingConfig
|
|
1657
|
+
};
|
|
1658
|
+
}
|
|
1659
|
+
const httpOptions = record(config.httpOptions) ? config.httpOptions : {};
|
|
1660
|
+
const extraBody = record(httpOptions.extraBody) ? httpOptions.extraBody : {};
|
|
1661
|
+
const priorGeneration = record(extraBody.generationConfig) ? extraBody.generationConfig : {};
|
|
1662
|
+
return {
|
|
1663
|
+
...payload,
|
|
1664
|
+
config: {
|
|
1665
|
+
...config,
|
|
1666
|
+
httpOptions: {
|
|
1667
|
+
...httpOptions,
|
|
1668
|
+
extraBody: {
|
|
1669
|
+
...extraBody,
|
|
1670
|
+
generationConfig: {
|
|
1671
|
+
...priorGeneration,
|
|
1672
|
+
...generationConfig
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
};
|
|
1678
|
+
}
|
|
1679
|
+
if (protocol === "anthropic-messages" && record(options.thinking) && typeof options.thinking.budget_tokens === "number") {
|
|
1680
|
+
const limit = payload.max_tokens;
|
|
1681
|
+
if (typeof limit !== "number" || options.thinking.budget_tokens >= limit) invalid("protocolOptions.thinking");
|
|
1682
|
+
}
|
|
1683
|
+
return {
|
|
1684
|
+
...payload,
|
|
1685
|
+
...options
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
//#endregion
|
|
1583
1689
|
//#region lib/types/adapter.js
|
|
1584
1690
|
/**
|
|
1585
1691
|
* Generic pi-ai-backed implementation of the Harness LLM seam.
|
|
@@ -1824,17 +1930,24 @@ var PiAiAdapter = class extends LlmAdapter {
|
|
|
1824
1930
|
...reasoningInfo(resolvedModel, defaultLevel)
|
|
1825
1931
|
};
|
|
1826
1932
|
}
|
|
1933
|
+
supportsPromptApiKey(provider, model) {
|
|
1934
|
+
const api = this.modelOf(this.current(), provider, model).api;
|
|
1935
|
+
return api === "openai-completions" || api === "anthropic-messages" || api === "openai-responses";
|
|
1936
|
+
}
|
|
1937
|
+
validatePromptProtocol(config) {
|
|
1938
|
+
validatePiPromptOptions(config, this.modelOf(this.current(), config.provider, config.model).api);
|
|
1939
|
+
}
|
|
1827
1940
|
prepareCall(provider, model, _signal) {
|
|
1828
1941
|
const snapshot = this.current();
|
|
1829
1942
|
return Promise.resolve({
|
|
1830
1943
|
model: this.modelInfo(snapshot, provider, model),
|
|
1831
|
-
stream: (options) => this.streamWithSnapshot(options, snapshot)
|
|
1944
|
+
stream: (options, promptApiKey) => this.streamWithSnapshot(options, snapshot, promptApiKey)
|
|
1832
1945
|
});
|
|
1833
1946
|
}
|
|
1834
1947
|
stream(options) {
|
|
1835
1948
|
return this.streamWithSnapshot(options, this.current());
|
|
1836
1949
|
}
|
|
1837
|
-
async *streamWithSnapshot(options, snapshot) {
|
|
1950
|
+
async *streamWithSnapshot(options, snapshot, promptApiKey) {
|
|
1838
1951
|
const env_1 = {
|
|
1839
1952
|
stack: [],
|
|
1840
1953
|
error: void 0,
|
|
@@ -1843,9 +1956,16 @@ var PiAiAdapter = class extends LlmAdapter {
|
|
|
1843
1956
|
try {
|
|
1844
1957
|
if (options.stop !== void 0) throw new LlmError("llm-pi-ai does not support GenerateOptions.stop", "UNSUPPORTED_OPTION");
|
|
1845
1958
|
const profile = this.profileOf(snapshot, options.provider);
|
|
1846
|
-
const
|
|
1959
|
+
const resolvedModel = this.modelOf(snapshot, options.provider, options.model);
|
|
1960
|
+
validatePiPromptOptions(options, resolvedModel.api);
|
|
1961
|
+
const model = options.contextWindow === void 0 ? resolvedModel : {
|
|
1962
|
+
...resolvedModel,
|
|
1963
|
+
contextWindow: options.contextWindow
|
|
1964
|
+
};
|
|
1965
|
+
const protocolOptions = options.protocolOptions;
|
|
1966
|
+
const headers = promptApiKey === void 0 ? profile.headers : Object.fromEntries(Object.entries(profile.headers ?? {}).filter(([name]) => !/^(?:authorization|x-api-key|api-key)$/iu.test(name)));
|
|
1847
1967
|
const reasoning = resolveReasoningLevel(model, options.reasoningEffort ?? profile.reasoning);
|
|
1848
|
-
const apiKey = await this.config.resolveApiKey(options.provider, profile);
|
|
1968
|
+
const apiKey = promptApiKey ?? await this.config.resolveApiKey(options.provider, profile);
|
|
1849
1969
|
const consumer = new AbortController();
|
|
1850
1970
|
const upstream = options.signal === void 0 ? consumer.signal : AbortSignal.any([options.signal, consumer.signal]);
|
|
1851
1971
|
const streamIdleTimeoutMs = profile.streamIdleTimeoutMs;
|
|
@@ -1878,9 +1998,10 @@ var PiAiAdapter = class extends LlmAdapter {
|
|
|
1878
1998
|
...profileOptions(profile, reasoning, apiKey),
|
|
1879
1999
|
...options.temperature === void 0 ? {} : { temperature: options.temperature },
|
|
1880
2000
|
...options.maxTokens === void 0 ? {} : { maxTokens: options.maxTokens },
|
|
2001
|
+
...protocolOptions === void 0 ? {} : { onPayload: (payload) => applyPiPromptOptions(payload, protocolOptions, model.api) },
|
|
1881
2002
|
...options.sessionId === void 0 ? {} : { sessionId: String(options.sessionId) },
|
|
1882
2003
|
signal: watchdog.signal,
|
|
1883
|
-
headers: requestHeaders(
|
|
2004
|
+
headers: requestHeaders(headers)
|
|
1884
2005
|
}), model.contextWindow, options.signal, model.id)[Symbol.asyncIterator]();
|
|
1885
2006
|
let exhausted = false;
|
|
1886
2007
|
try {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
*/
|
|
28
28
|
import type { AuthContext, CredentialStore } from '@earendil-works/pi-ai';
|
|
29
29
|
import { LlmAdapter } from '@deepseek-ai/dsh-llm';
|
|
30
|
-
import type { GenerateOptions, ImageAttachmentAccess, LlmModelInfo, LlmProviderInfo, LlmResolvedModelInfo, PreparedAdapterCall, ResolvedRetryPolicy, StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
30
|
+
import type { GenerateOptions, LlmCallConfig, ImageAttachmentAccess, LlmModelInfo, LlmProviderInfo, LlmResolvedModelInfo, PreparedAdapterCall, ResolvedRetryPolicy, StreamChunk } from '@deepseek-ai/dsh-llm';
|
|
31
31
|
import type { AttachmentStore, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment';
|
|
32
32
|
import type { ResolvedPiAiProviderProfile } from './config.ts';
|
|
33
33
|
/** Constructor options for {@link PiAiAdapter}: the two resolution hooks the plugin owns. */
|
|
@@ -98,6 +98,8 @@ export declare class PiAiAdapter extends LlmAdapter {
|
|
|
98
98
|
listModels(provider: string): Promise<readonly LlmModelInfo[]>;
|
|
99
99
|
resolveModel(provider: string, model: string, _signal?: AbortSignal): Promise<LlmResolvedModelInfo>;
|
|
100
100
|
private modelInfo;
|
|
101
|
+
supportsPromptApiKey(provider: string, model: string): boolean;
|
|
102
|
+
validatePromptProtocol(config: LlmCallConfig): void;
|
|
101
103
|
prepareCall(provider: string, model: string, _signal?: AbortSignal): Promise<PreparedAdapterCall>;
|
|
102
104
|
stream(options: GenerateOptions): AsyncIterable<StreamChunk>;
|
|
103
105
|
private streamWithSnapshot;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Prompt-supplied generation controls for pi-ai HTTP request builders. */
|
|
2
|
+
import { type LlmCallConfig } from '@deepseek-ai/dsh-llm';
|
|
3
|
+
/**
|
|
4
|
+
* Validate protocol options before queue admission and against the bound stream model.
|
|
5
|
+
* @param config - Request controls and optional protocol assertion.
|
|
6
|
+
* @param protocol - Protocol of the resolved pi-ai model.
|
|
7
|
+
*/
|
|
8
|
+
export declare function validatePiPromptOptions(config: LlmCallConfig, protocol: string): void;
|
|
9
|
+
/**
|
|
10
|
+
* Apply options at the provider request boundary.
|
|
11
|
+
* @param payload - Request object produced by the selected protocol.
|
|
12
|
+
* @param options - Generation controls admitted by the protocol adapter.
|
|
13
|
+
* @param protocol - Protocol of the resolved pi-ai model.
|
|
14
|
+
* @returns The payload with protocol-specific generation controls applied.
|
|
15
|
+
*/
|
|
16
|
+
export declare function applyPiPromptOptions(payload: unknown, options: NonNullable<LlmCallConfig['protocolOptions']>, protocol: string): object;
|
|
17
|
+
//# sourceMappingURL=prompt-options.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Installed provider defaults for configuration surfaces. */
|
|
2
|
+
import type { Provider } from '@earendil-works/pi-ai';
|
|
3
|
+
import type { LlmConfigurableProvider } from '@deepseek-ai/dsh-llm';
|
|
4
|
+
/**
|
|
5
|
+
* Return generated display metadata without executing authentication.
|
|
6
|
+
* @param provider - Installed catalog provider, possibly from a newer consumer dependency.
|
|
7
|
+
* @returns Known metadata, or only a fixed public endpoint for an unrecorded provider.
|
|
8
|
+
*/
|
|
9
|
+
export declare function providerDefaultsOf(provider: Provider): Pick<LlmConfigurableProvider, 'nativeAuth' | 'defaultBaseURL' | 'baseURLEnv'>;
|
|
10
|
+
//# sourceMappingURL=provider-data.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.generated.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Generated from the installed pi-ai catalog. Run pnpm gen-provider-data; do not edit. */
|
|
2
|
+
import type { BuiltinProvider } from '@earendil-works/pi-ai/providers/all';
|
|
3
|
+
import type { LlmConfigurableProvider } from '@deepseek-ai/dsh-llm';
|
|
4
|
+
type ProviderData = Pick<LlmConfigurableProvider, 'defaultBaseURL' | 'baseURLEnv'> & {
|
|
5
|
+
env: readonly string[];
|
|
6
|
+
};
|
|
7
|
+
/** Catalog endpoints and environment names; no credentials are evaluated at runtime. */
|
|
8
|
+
export declare const PROVIDER_DATA: Record<BuiltinProvider, ProviderData> & Partial<Record<string, ProviderData>>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=provider-data.generated.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Request metadata exposed to pi-ai transport-header contributors. */
|
|
2
|
+
import type { GenerateOptions } from '@deepseek-ai/dsh-llm';
|
|
3
|
+
/** Model-hidden routing metadata from the exact prepared adapter call. */
|
|
4
|
+
export interface PiAiRequestHeaderContext extends Readonly<Pick<GenerateOptions<string>, 'provider' | 'model' | 'sessionId' | 'purpose'>> {
|
|
5
|
+
/** Resolved endpoint of the model selected for this call. */
|
|
6
|
+
readonly baseURL: string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Runtime template resolution and secret redaction for one MCP instance. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { Config } from './index.ts';
|
|
4
|
+
/** Resolves raw configuration through the current credential provider and redacts every value it resolved. */
|
|
5
|
+
export declare class McpTemplateBinding {
|
|
6
|
+
private readonly ctx;
|
|
7
|
+
private readonly config;
|
|
8
|
+
/** Enabled credential references from raw configuration, including currently unconfigured references. */
|
|
9
|
+
readonly refs: ReadonlySet<string>;
|
|
10
|
+
/** Resolved values and their URL-encoded forms, retained for the instance lifetime. */
|
|
11
|
+
private readonly secrets;
|
|
12
|
+
constructor(ctx: Context, config: Config);
|
|
13
|
+
/**
|
|
14
|
+
* Replace every value this binding resolved, including earlier rotations.
|
|
15
|
+
* @param text - diagnostic or upstream text.
|
|
16
|
+
* @returns the text with resolved values replaced by `[redacted]`.
|
|
17
|
+
*/
|
|
18
|
+
redact(text: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Format a failure, naming the operation and redacting resolved values when templates are enabled.
|
|
21
|
+
* @param error - caught operation failure.
|
|
22
|
+
* @param operation - local operation name for the diagnostic.
|
|
23
|
+
* @returns diagnostic text safe for the configured template mode.
|
|
24
|
+
*/
|
|
25
|
+
diagnostic(error: unknown, operation: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Resolve transport strings without changing the plugin's raw configuration.
|
|
28
|
+
* @param signal - cancellation checked before and after template resolution.
|
|
29
|
+
* @returns resolved transport configuration, or the raw configuration when expansion is disabled.
|
|
30
|
+
* @throws when a credential or the credentials provider is unavailable.
|
|
31
|
+
*/
|
|
32
|
+
resolve(signal: AbortSignal): Promise<Config>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Shared settlement deadline for the startup and probe budgets. */
|
|
2
|
+
/**
|
|
3
|
+
* Settle with `promise`, or reject with `timeoutMessage` once `remainingMs`
|
|
4
|
+
* elapses first. The timer never holds the process open, and a non-Error
|
|
5
|
+
* rejection is wrapped so callers always observe an Error.
|
|
6
|
+
* @param promise - operation the deadline bounds.
|
|
7
|
+
* @param remainingMs - remaining budget in milliseconds (clamped to at least 1).
|
|
8
|
+
* @param timeoutMessage - diagnostic carried by the deadline rejection.
|
|
9
|
+
* @returns the operation's value; rejects with the deadline or the operation's failure.
|
|
10
|
+
*/
|
|
11
|
+
export declare function withDeadline<T>(promise: Promise<T>, remainingMs: number, timeoutMessage: string): Promise<T>;
|
|
12
|
+
//# sourceMappingURL=deadline.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connection diagnostics retain cause chains. Configurations that resolve
|
|
3
|
+
* secrets replace every known secret value before text leaves the instance.
|
|
4
|
+
*/
|
|
5
|
+
/** Local failure whose message contains no expanded configuration or upstream text. */
|
|
6
|
+
export declare class McpLocalError extends Error {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Replace every occurrence of known secret values, longest first so a secret
|
|
10
|
+
* that contains another is replaced whole.
|
|
11
|
+
* @param text - diagnostic or upstream text.
|
|
12
|
+
* @param secrets - non-empty secret values known to the instance.
|
|
13
|
+
* @returns the text with each occurrence replaced by `[redacted]`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function redactSecrets(text: string, secrets: Iterable<string>): string;
|
|
16
|
+
/**
|
|
17
|
+
* Flatten an error and its `cause` chain into `outer, cause: inner, …`.
|
|
18
|
+
* @param error - the caught value; non-Errors stringify as-is.
|
|
19
|
+
* @returns the joined diagnostic line.
|
|
20
|
+
*/
|
|
21
|
+
export declare function describeError(error: unknown): string;
|
|
22
|
+
//# sourceMappingURL=diagnostic.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** One transport lifetime, including pending work and confirmed closure. */
|
|
2
|
+
import type { Client } from '@modelcontextprotocol/client';
|
|
3
|
+
import type { Config } from './index.ts';
|
|
4
|
+
import type { McpCloseResult } from './types.ts';
|
|
5
|
+
/** Tracks actual tasks separately from their interruptible callers. */
|
|
6
|
+
export declare class McpGeneration {
|
|
7
|
+
readonly client: Client;
|
|
8
|
+
private readonly closeTimeoutMs;
|
|
9
|
+
private readonly diagnostic;
|
|
10
|
+
/** Cancellation shared by the transport and all work owned by this generation. */
|
|
11
|
+
readonly lifetime: AbortController;
|
|
12
|
+
private readonly pending;
|
|
13
|
+
private readonly closed;
|
|
14
|
+
private transport;
|
|
15
|
+
private started;
|
|
16
|
+
private closeObserved;
|
|
17
|
+
private closing;
|
|
18
|
+
constructor(client: Client, closeTimeoutMs: number, diagnostic: (error: unknown) => string);
|
|
19
|
+
/**
|
|
20
|
+
* Connect within the caller's remaining startup or probe budget.
|
|
21
|
+
* @param config - resolved transport configuration.
|
|
22
|
+
* @param timeoutMs - remaining operation budget; undefined leaves the SDK default.
|
|
23
|
+
* @returns completion of negotiation, or cancellation/deadline rejection.
|
|
24
|
+
*/
|
|
25
|
+
connect(config: Config, timeoutMs: number | undefined): Promise<void>;
|
|
26
|
+
/** Reject when this generation was cancelled or its transport reported closure. */
|
|
27
|
+
assertOpen(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Track work through settlement, even when its caller times out or is cancelled.
|
|
30
|
+
* @param operation - work receiving this generation's cancellation signal.
|
|
31
|
+
* @param timeoutMs - optional caller deadline in milliseconds; does not cancel the work.
|
|
32
|
+
* @returns the operation's result, or a cancellation/deadline rejection.
|
|
33
|
+
*/
|
|
34
|
+
run<T>(operation: (signal: AbortSignal) => Promise<T>, timeoutMs?: number): Promise<T>;
|
|
35
|
+
/**
|
|
36
|
+
* Cancel callers, close the transport, and await owned work within the cleanup budget.
|
|
37
|
+
* @returns the shared cleanup result, distinguishing transport closure from cleanup failure.
|
|
38
|
+
*/
|
|
39
|
+
close(): Promise<McpCloseResult>;
|
|
40
|
+
private finish;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=generation.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One-shot MCP server probe: connect, read the server identity, list tools,
|
|
3
|
+
* close. Nothing registers on `ctx.tools`, no `serverName` is reserved, and
|
|
4
|
+
* nothing persists — the probe answers a configuration surface's
|
|
5
|
+
* "test this server" without touching the live instance set. Expected
|
|
6
|
+
* failures return a stage-classified value rather than throwing, so a wire
|
|
7
|
+
* caller renders the outcome without exception mapping.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
12
|
+
import type { McpProbeResult } from './types.ts';
|
|
13
|
+
import type { Config } from './index.ts';
|
|
14
|
+
/** Options for one {@link probeServer} call. */
|
|
15
|
+
export interface McpProbeOptions {
|
|
16
|
+
/** Budget for the whole probe (connect + listing) in milliseconds; default 10000. */
|
|
17
|
+
timeoutMs?: number;
|
|
18
|
+
/** Maximum listing pages before returning a truncated result; default 16. */
|
|
19
|
+
maxPages?: number;
|
|
20
|
+
/** Maximum raw tool names retained in the result; default 512. */
|
|
21
|
+
maxToolNames?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Abort the in-flight probe; settles as a failure at the current stage after
|
|
24
|
+
* bounded generation cleanup.
|
|
25
|
+
*/
|
|
26
|
+
signal?: AbortSignal;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Probe a server without registering tools or reserving its namespace.
|
|
30
|
+
* @param ctx - context providing template sources when expansion is enabled.
|
|
31
|
+
* @param config - transport configuration; its startup budget does not bound the probe.
|
|
32
|
+
* @param options - whole-probe budget, listing caps, and cancellation signal.
|
|
33
|
+
* @returns the connect/list outcome and independent cleanup result after bounded closure.
|
|
34
|
+
* @throws for invalid options, malformed templates, or a missing required credentials provider.
|
|
35
|
+
*/
|
|
36
|
+
export declare function probeServer(ctx: Context, config: Config, options?: McpProbeOptions): Promise<McpProbeResult>;
|
|
37
|
+
//# sourceMappingURL=probe.d.ts.map
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { Fiber } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { McpCloseResult, McpConnectionStatus } from './types.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Connection status and cleanup results keyed by the owning Cordis Fiber.
|
|
5
|
+
* The cell survives reloads of that Fiber and remains readable after final
|
|
6
|
+
* disposal, which detaches existing observers.
|
|
7
|
+
*
|
|
8
|
+
* @module
|
|
9
|
+
*/
|
|
10
|
+
/** Read-and-observe handle over one instance's {@link McpConnectionStatus}. */
|
|
11
|
+
export interface McpConnectionStatusHandle {
|
|
12
|
+
/**
|
|
13
|
+
* The current status.
|
|
14
|
+
* @returns the latest status the supervisor published.
|
|
15
|
+
*/
|
|
16
|
+
current(): McpConnectionStatus;
|
|
17
|
+
/**
|
|
18
|
+
* The latest generation's cleanup result, independent of connection status.
|
|
19
|
+
* @returns unconfirmed while a generation is open, or its recorded cleanup result.
|
|
20
|
+
*/
|
|
21
|
+
closure(): McpCloseResult;
|
|
22
|
+
/**
|
|
23
|
+
* Observe status transitions. Callbacks run synchronously in publish order;
|
|
24
|
+
* a throwing callback is contained and logged without affecting the
|
|
25
|
+
* supervisor or other callbacks.
|
|
26
|
+
* @param callback - invoked with each published status.
|
|
27
|
+
* @returns the disposer removing this observer.
|
|
28
|
+
*/
|
|
29
|
+
onChange(callback: (status: McpConnectionStatus) => void | Promise<void>): () => void;
|
|
30
|
+
}
|
|
31
|
+
/** Writable status cell retained across supervisors on the same Fiber. */
|
|
32
|
+
export declare class McpStatusCell implements McpConnectionStatusHandle {
|
|
33
|
+
private warn;
|
|
34
|
+
private value;
|
|
35
|
+
private closeResult;
|
|
36
|
+
closure(): McpCloseResult;
|
|
37
|
+
/** Mark the next generation's closure as unconfirmed. */
|
|
38
|
+
opened(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Record cleanup without publishing a connection-status transition.
|
|
41
|
+
* @param result - independently observed transport and local cleanup outcome.
|
|
42
|
+
*/
|
|
43
|
+
recordClosure(result: McpCloseResult): void;
|
|
44
|
+
/** Remove existing observers without discarding the readable status or cleanup result. */
|
|
45
|
+
detach(): void;
|
|
46
|
+
private readonly listeners;
|
|
47
|
+
/**
|
|
48
|
+
* @param warn - contained-listener diagnostic sink (the owning plugin's logger).
|
|
49
|
+
*/
|
|
50
|
+
constructor(warn: (message: string, error: unknown) => void);
|
|
51
|
+
/**
|
|
52
|
+
* Associate observer diagnostics with the Fiber's current supervisor.
|
|
53
|
+
* @param warn - contained-listener diagnostic sink.
|
|
54
|
+
*/
|
|
55
|
+
setWarningSink(warn: (message: string, error: unknown) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* The current status.
|
|
58
|
+
* @returns the latest published status.
|
|
59
|
+
*/
|
|
60
|
+
current(): McpConnectionStatus;
|
|
61
|
+
/**
|
|
62
|
+
* Observe status transitions; see {@link McpConnectionStatusHandle.onChange}.
|
|
63
|
+
* @param callback - invoked with each published status.
|
|
64
|
+
* @returns the disposer removing this observer.
|
|
65
|
+
*/
|
|
66
|
+
onChange(callback: (status: McpConnectionStatus) => void | Promise<void>): () => void;
|
|
67
|
+
/**
|
|
68
|
+
* Publish the next status and notify observers. A throwing observer is
|
|
69
|
+
* contained so a broken consumer cannot wedge the supervisor's transition.
|
|
70
|
+
* @param next - the status to publish.
|
|
71
|
+
*/
|
|
72
|
+
update(next: McpConnectionStatus): void;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Create or reuse a Fiber's status cell without discarding prior cleanup results.
|
|
76
|
+
* @param fiber - the actual plugin Fiber owning the supervisor.
|
|
77
|
+
* @param warn - diagnostic sink for observer failures.
|
|
78
|
+
* @returns the stable writable cell for this Fiber.
|
|
79
|
+
*/
|
|
80
|
+
export declare function registerStatusCell(fiber: Fiber, warn: (message: string, error: unknown) => void): McpStatusCell;
|
|
81
|
+
/**
|
|
82
|
+
* Look up status through an actual Fiber or the handle returned by `ctx.plugin()`.
|
|
83
|
+
* @param fiber - plugin Fiber or its thenable handle.
|
|
84
|
+
* @returns the retained cell, or `undefined` before the MCP instance registers one.
|
|
85
|
+
*/
|
|
86
|
+
export declare function connectionStatusIn(fiber: Fiber): McpConnectionStatusHandle | undefined;
|
|
87
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `${credential:REF}` syntax and substitution for MCP transport strings.
|
|
3
|
+
* Managers validate syntax at configuration writes; the client resolves values
|
|
4
|
+
* at runtime without changing the stored configuration.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import { McpLocalError } from './diagnostic.ts';
|
|
9
|
+
/** A referenced credential has no configured value. */
|
|
10
|
+
export declare class MissingTemplateValue extends McpLocalError {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The credential references one configured string names, read statically. A
|
|
14
|
+
* rotation observer uses this over the raw configuration so a server whose
|
|
15
|
+
* earlier resolution failed — a credential configured only now — is still
|
|
16
|
+
* recognized as affected.
|
|
17
|
+
* @param value - the configured string.
|
|
18
|
+
* @returns the referenced credential names, in template order.
|
|
19
|
+
*/
|
|
20
|
+
export declare function credentialRefsIn(value: string): string[];
|
|
21
|
+
/**
|
|
22
|
+
* Reject a string whose `${…}` occurrences are not all well-formed template
|
|
23
|
+
* tokens, naming the offending occurrence and where it sits.
|
|
24
|
+
* @param value - the configured string.
|
|
25
|
+
* @param where - configuration path used in the thrown message.
|
|
26
|
+
*/
|
|
27
|
+
export declare function assertTemplateSyntax(value: string, where: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Resolve every template token in one string.
|
|
30
|
+
* @param value - the configured string.
|
|
31
|
+
* @param where - configuration path used in thrown messages.
|
|
32
|
+
* @param credential - credential-reference lookup returning `undefined` while unconfigured.
|
|
33
|
+
* @returns the substituted string.
|
|
34
|
+
* @throws when a referenced credential is unconfigured.
|
|
35
|
+
*/
|
|
36
|
+
export declare function resolveTemplateString(value: string, where: string, credential: (ref: string) => Promise<string | undefined>): Promise<string>;
|
|
37
|
+
//# sourceMappingURL=templates.d.ts.map
|