@chatcode/chatcode-cli 3.0.5 → 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 +25 -25
- 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
package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-activity.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** Observe command-admitted activity through quiescence and preserve a goal's first terminal outcome. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
4
|
+
import type { CommandExecution, JsonRpcTransportPeer } from '@deepseek-ai/dsh-sdk-protocol';
|
|
5
|
+
/** One command's SDK completion observer; its listeners end at completion, rejection, or shutdown. */
|
|
6
|
+
export declare class QueryActivity {
|
|
7
|
+
private readonly agent;
|
|
8
|
+
private readonly transport;
|
|
9
|
+
private readonly onClose;
|
|
10
|
+
private readonly disposers;
|
|
11
|
+
private commandId;
|
|
12
|
+
private result;
|
|
13
|
+
private closed;
|
|
14
|
+
private input;
|
|
15
|
+
private inputIdle;
|
|
16
|
+
private goalId;
|
|
17
|
+
private goalOutcome;
|
|
18
|
+
private goalStopped;
|
|
19
|
+
private response;
|
|
20
|
+
private turnReason;
|
|
21
|
+
/**
|
|
22
|
+
* Subscribe before the native command starts so fast input and completion cannot be lost.
|
|
23
|
+
* @param ctx - server-owned context; goal services remain optional for other commands.
|
|
24
|
+
* @param agent - exact receiving Agent.
|
|
25
|
+
* @param transport - SDK notification stream.
|
|
26
|
+
* @param ownsInvocation - whether the current async operation is this native invocation.
|
|
27
|
+
* @param signal - server lifetime; abort releases observation without cancelling unrelated work.
|
|
28
|
+
* @param onClose - remove this closed observer from its owner's registry.
|
|
29
|
+
*/
|
|
30
|
+
constructor(ctx: Context, agent: Agent, transport: JsonRpcTransportPeer, ownsInvocation: () => boolean, signal: AbortSignal, onClose: (activity: QueryActivity) => void);
|
|
31
|
+
/**
|
|
32
|
+
* Retain native settlement; admitted input waits through replacement work before completing.
|
|
33
|
+
* @param execution - the already-logged native result.
|
|
34
|
+
*/
|
|
35
|
+
accept(execution: CommandExecution): void;
|
|
36
|
+
/** Report withdrawal of the optional provider needed by an active goal query. */
|
|
37
|
+
goalUnavailable(): void;
|
|
38
|
+
/** Release all listeners when the request fails or the server shuts down. */
|
|
39
|
+
close(): void;
|
|
40
|
+
private check;
|
|
41
|
+
private finish;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=query-activity.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** SDK content-block validation and extraction for native command routing. */
|
|
2
|
+
import type { ContentBlock } from '@deepseek-ai/dsh-llm';
|
|
3
|
+
import type { SdkEncodedImageBlock, SdkPromptContentBlock } from '@deepseek-ai/dsh-sdk-protocol';
|
|
4
|
+
/**
|
|
5
|
+
* Validate fields used by input routing before creating a Session.
|
|
6
|
+
* @param value - untrusted contentBlocks from a JSON-RPC query.
|
|
7
|
+
* @returns ordered input blocks; ordinary prompt admission owns non-routing content.
|
|
8
|
+
* @throws on an empty input or malformed text or encoded image fields.
|
|
9
|
+
*/
|
|
10
|
+
export declare function queryContent(value: unknown): SdkPromptContentBlock[];
|
|
11
|
+
/**
|
|
12
|
+
* Select command images without joining text blocks or dropping other content.
|
|
13
|
+
* @param blocks - validated input containing a recognized command.
|
|
14
|
+
* @param text - the exact first text block used to recognize the command.
|
|
15
|
+
* @returns encoded images in their original order, before any attachment writes.
|
|
16
|
+
* @throws if the command shares its input with another text block or unsupported attachment representation.
|
|
17
|
+
*/
|
|
18
|
+
export declare function queryCommandImages(blocks: SdkPromptContentBlock[], text: ContentBlock & {
|
|
19
|
+
type: 'text';
|
|
20
|
+
}): SdkEncodedImageBlock[];
|
|
21
|
+
//# sourceMappingURL=query-content.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Desktop text-input recognition for the SDK; command execution stays with the native registry. */
|
|
2
|
+
import type { CommandDescriptor } from '@deepseek-ai/dsh-commands/types';
|
|
3
|
+
/**
|
|
4
|
+
* Recognize compact, explicit permission changes, plan, and goal by their definition identities.
|
|
5
|
+
* Canonical and Chinese aliases follow the effective registered name; unrelated exact names remain prompts.
|
|
6
|
+
* Other text remains a prompt.
|
|
7
|
+
* @param text - original input; the caller preserves it on the ordinary-prompt path.
|
|
8
|
+
* @param commands - exact receiving Agent's current command descriptors.
|
|
9
|
+
* @returns the supported command line using its registered name and a native-compatible separator, otherwise undefined.
|
|
10
|
+
*/
|
|
11
|
+
export declare function queryCommand(text: string, commands: readonly CommandDescriptor[]): string | undefined;
|
|
12
|
+
//# sourceMappingURL=query-input.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/user-questions.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
3
|
+
import type { JsonRpcTransportPeer } from '@deepseek-ai/dsh-sdk-protocol';
|
|
4
|
+
/** Owns question forwarding and cancellation for one SDK transport. */
|
|
5
|
+
export declare class SdkUserQuestionBridge {
|
|
6
|
+
private readonly ctx;
|
|
7
|
+
private readonly transport;
|
|
8
|
+
/** Enabled only after the host advertises an answerer at initialization. */
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
private readonly questionShutdown;
|
|
11
|
+
private readonly unregister;
|
|
12
|
+
constructor(ctx: Context, transport: JsonRpcTransportPeer, ownsAgent: (agent: Agent) => boolean);
|
|
13
|
+
/** Stop admission and cancel outstanding questions before SDK Agents drain. */
|
|
14
|
+
close(): void;
|
|
15
|
+
private ask;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=user-questions.d.ts.map
|
|
@@ -602,6 +602,7 @@ function canonicalHeader(header) {
|
|
|
602
602
|
const adapterDefaults = header.adapterDefaults;
|
|
603
603
|
return {
|
|
604
604
|
config: header.config,
|
|
605
|
+
...header.promptScoped === true ? { promptScoped: true } : {},
|
|
605
606
|
...adapterDefaults?.reasoningEffort === true || adapterDefaults?.maxTokens === true ? { adapterDefaults } : {},
|
|
606
607
|
...header.tools !== void 0 && header.tools.length > 0 ? { tools: header.tools } : {}
|
|
607
608
|
};
|
|
@@ -617,7 +618,7 @@ function sameSchema(a, b) {
|
|
|
617
618
|
* @returns whether config, adapter defaults, and tools all match.
|
|
618
619
|
*/
|
|
619
620
|
function headerEquals(a, b) {
|
|
620
|
-
if (!callConfigEquals(a.config, b.config) || a.adapterDefaults?.reasoningEffort !== b.adapterDefaults?.reasoningEffort || a.adapterDefaults?.maxTokens !== b.adapterDefaults?.maxTokens) return false;
|
|
621
|
+
if (!callConfigEquals(a.config, b.config) || a.promptScoped !== b.promptScoped || a.adapterDefaults?.reasoningEffort !== b.adapterDefaults?.reasoningEffort || a.adapterDefaults?.maxTokens !== b.adapterDefaults?.maxTokens) return false;
|
|
621
622
|
const at = a.tools ?? [];
|
|
622
623
|
const bt = b.tools ?? [];
|
|
623
624
|
return at.length === bt.length && at.every((tool, i) => sameSchema(tool, bt[i]));
|
|
@@ -18,6 +18,7 @@ export function canonicalHeader(header) {
|
|
|
18
18
|
const adapterDefaults = header.adapterDefaults;
|
|
19
19
|
return {
|
|
20
20
|
config: header.config,
|
|
21
|
+
...header.promptScoped === true ? { promptScoped: true } : {},
|
|
21
22
|
...adapterDefaults?.reasoningEffort === true || adapterDefaults?.maxTokens === true
|
|
22
23
|
? { adapterDefaults }
|
|
23
24
|
: {},
|
|
@@ -36,6 +37,7 @@ function sameSchema(a, b) {
|
|
|
36
37
|
*/
|
|
37
38
|
export function headerEquals(a, b) {
|
|
38
39
|
if (!callConfigEquals(a.config, b.config)
|
|
40
|
+
|| a.promptScoped !== b.promptScoped
|
|
39
41
|
|| a.adapterDefaults?.reasoningEffort !== b.adapterDefaults?.reasoningEffort
|
|
40
42
|
|| a.adapterDefaults?.maxTokens !== b.adapterDefaults?.maxTokens)
|
|
41
43
|
return false;
|
|
@@ -217,6 +217,8 @@ export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];
|
|
|
217
217
|
export interface EpochHeader {
|
|
218
218
|
/** The conversation's call configuration (provider, model, reasoning effort, and sampling scalars). */
|
|
219
219
|
config: LlmCallConfig;
|
|
220
|
+
/** The call configuration belongs to one prompt's turn. */
|
|
221
|
+
promptScoped?: true;
|
|
220
222
|
/** Effective config fields materialized from the exact adapter rather than proposed by a caller. */
|
|
221
223
|
adapterDefaults?: LlmCallConfigAdapterDefaults;
|
|
222
224
|
/** Assembled tool schemas; absent for a tool-less request. */
|
package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/CopyToast.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store';
|
|
3
|
+
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
4
|
+
import type { SessionMarkdownCopyState } from './copy-controller.ts';
|
|
5
|
+
import { NS } from './locales.ts';
|
|
6
|
+
/** Copy state and dismissal bound into the root overlay entry. */
|
|
7
|
+
export interface SessionMarkdownCopyToastInjected {
|
|
8
|
+
hooks: {
|
|
9
|
+
sessionMarkdownCopy: ObservableSnapshot<SessionMarkdownCopyState>;
|
|
10
|
+
};
|
|
11
|
+
dismiss: () => void;
|
|
12
|
+
}
|
|
13
|
+
/** Props of the root overlay copy notice. */
|
|
14
|
+
export type SessionMarkdownCopyToastProps = PropsRuntime<'shell.overlay'> & PropsLocale<typeof NS> & InjectFace<SessionMarkdownCopyToastInjected>;
|
|
15
|
+
/**
|
|
16
|
+
* Show the settled copy outcome outside the Session Header and menu lifetime.
|
|
17
|
+
* @param props - copy notice hook, dismissal action, and localized copy.
|
|
18
|
+
* @returns the success or failure toast, or null while no notice shows.
|
|
19
|
+
*/
|
|
20
|
+
export declare function SessionMarkdownCopyToast({ useSessionMarkdownCopy, dismiss, t, }: SessionMarkdownCopyToastProps): ReactNode;
|
|
21
|
+
//# sourceMappingURL=CopyToast.d.ts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser controller for the Session Header's "Copy Session as Markdown" action. One
|
|
3
|
+
* plugin instance owns one pending copy: the clipboard is a browser-wide
|
|
4
|
+
* destination, so a second request joins the pending operation instead of
|
|
5
|
+
* racing it.
|
|
6
|
+
*
|
|
7
|
+
* On hosts with `ClipboardItem` and `navigator.clipboard.write`, the controller
|
|
8
|
+
* starts that write synchronously from the click with a promised text Blob, so
|
|
9
|
+
* the browser keeps the user activation while the Host prepares the
|
|
10
|
+
* transcript. Other hosts fall back to `writeClipboard` after preparation. A
|
|
11
|
+
* disposal aborts the read and prevents later text from reaching the Blob, but
|
|
12
|
+
* an accepted operating-system clipboard write cannot be rolled back.
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
import { type SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
16
|
+
import type { SessionId } from '@deepseek-ai/dsh-session/types';
|
|
17
|
+
/** Whether the latest copy attempt succeeded, prepared no transcript, or could not write. */
|
|
18
|
+
export type SessionMarkdownCopyNoticeKind = 'success' | 'preparationFailed' | 'clipboardFailed';
|
|
19
|
+
/** One settled copy notice; `seq` keys the toast so a repeat copy restarts it. */
|
|
20
|
+
export interface SessionMarkdownCopyNotice {
|
|
21
|
+
readonly kind: SessionMarkdownCopyNoticeKind;
|
|
22
|
+
readonly seq: number;
|
|
23
|
+
}
|
|
24
|
+
/** Copy state shared by every Header row and the root overlay toast. */
|
|
25
|
+
export interface SessionMarkdownCopyState {
|
|
26
|
+
/** Whether this plugin instance has a copy operation still pending. */
|
|
27
|
+
copying: boolean;
|
|
28
|
+
/** Latest settled copy notice, or null while none shows. */
|
|
29
|
+
notice: SessionMarkdownCopyNotice | null;
|
|
30
|
+
}
|
|
31
|
+
/** Browser clipboard operations used by one copy attempt. */
|
|
32
|
+
export interface SessionMarkdownClipboard {
|
|
33
|
+
/** Whether a deferred write can start inside the click's activation window. */
|
|
34
|
+
supportsDeferredWrite(): boolean;
|
|
35
|
+
/** Start one deferred text write; the browser observes the data promise as it settles. */
|
|
36
|
+
writeDeferred(data: Promise<Blob>): Promise<void>;
|
|
37
|
+
/** Write prepared text on hosts without the deferred API; false means the browser rejected it. */
|
|
38
|
+
writeText(text: string): Promise<boolean>;
|
|
39
|
+
}
|
|
40
|
+
/** HTTP carrier for the Markdown route. */
|
|
41
|
+
type Fetch = (input: string | URL, init?: RequestInit) => Promise<Response>;
|
|
42
|
+
/** Owns the one pending Markdown copy for this plugin instance. */
|
|
43
|
+
export declare class SessionMarkdownCopyController {
|
|
44
|
+
private readonly fetcher;
|
|
45
|
+
private readonly clipboard;
|
|
46
|
+
/** uSES-safe state source shared by every Header row and the overlay toast. */
|
|
47
|
+
readonly store: SnapshotStore<SessionMarkdownCopyState>;
|
|
48
|
+
private pending;
|
|
49
|
+
private disposed;
|
|
50
|
+
private noticeSeq;
|
|
51
|
+
constructor(fetcher?: Fetch, clipboard?: SessionMarkdownClipboard);
|
|
52
|
+
/**
|
|
53
|
+
* Copy one Session's complete transcript. A request received while a copy is
|
|
54
|
+
* pending joins that operation and keeps its originally captured Session.
|
|
55
|
+
* @param sessionId - Session captured by the click.
|
|
56
|
+
* @returns after the clipboard work settles, a failure notice is published, or a late post-disposal request is ignored.
|
|
57
|
+
*/
|
|
58
|
+
copy(sessionId: SessionId): Promise<void>;
|
|
59
|
+
/** Clear the shown toast without affecting a pending copy. */
|
|
60
|
+
dismiss(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Abort a pending read, suppress a late clipboard write or notice, and reach
|
|
63
|
+
* quiescence. A write already accepted by the operating system cannot be
|
|
64
|
+
* undone.
|
|
65
|
+
* @returns after the pending operation and any admitted clipboard work settle.
|
|
66
|
+
*/
|
|
67
|
+
dispose(): Promise<void>;
|
|
68
|
+
private run;
|
|
69
|
+
private prepare;
|
|
70
|
+
private settleDeferred;
|
|
71
|
+
private settleFallback;
|
|
72
|
+
private isCancelled;
|
|
73
|
+
private publishNotice;
|
|
74
|
+
}
|
|
75
|
+
export {};
|
|
76
|
+
//# sourceMappingURL=copy-controller.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure backend converter for one complete committed Session log. The Session
|
|
3
|
+
* Markdown copy Host route uses it, and the package entry exports it for
|
|
4
|
+
* callers that already hold the logical events. The raw log is authoritative:
|
|
5
|
+
* compaction surface replacements never remove earlier messages, and
|
|
6
|
+
* fork-inherited history appears once. Reasoning, system and developer
|
|
7
|
+
* messages, injected non-human context, request headers, and runtime records
|
|
8
|
+
* are omitted.
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
import type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
12
|
+
/**
|
|
13
|
+
* Render one complete committed Session log as Markdown. This is a pure backend
|
|
14
|
+
* utility: it needs no mounted plugin, reads no storage, and does not mutate the
|
|
15
|
+
* supplied events. The latest `session/title` event supplies the heading; the
|
|
16
|
+
* rest of the transcript is derived only from the supplied logical events.
|
|
17
|
+
* @param events - complete committed logical event snapshot in seq order, including any inherited prefix.
|
|
18
|
+
* @param sourcePath - optional backend-resolved path to the selected Session artifact; emitted verbatim in a fenced text block.
|
|
19
|
+
* @returns Markdown ending in exactly one newline; an empty log returns the heading and optional source metadata only.
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatSessionMarkdown(events: readonly SessionEvent[], sourcePath?: string): string;
|
|
22
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -3938,8 +3938,36 @@ function resolveRetryPolicy(config, path) {
|
|
|
3938
3938
|
}
|
|
3939
3939
|
}
|
|
3940
3940
|
//#endregion
|
|
3941
|
+
//#region ../../llm/llm/src/brand.ts
|
|
3942
|
+
/**
|
|
3943
|
+
* dsh-llm's owned branded ids: tool-call correlation and provider request
|
|
3944
|
+
* diagnostics.
|
|
3945
|
+
*
|
|
3946
|
+
* The `Branded<B>` primitive and stateless constructor live in
|
|
3947
|
+
* `@deepseek-ai/dsh-brand` so every owner of a cross-boundary id can brand it
|
|
3948
|
+
* without depending on dsh-llm; see that package's README for the
|
|
3949
|
+
* nominal-typing policy.
|
|
3950
|
+
*
|
|
3951
|
+
* @module @deepseek-ai/dsh-llm/brand
|
|
3952
|
+
*/
|
|
3953
|
+
/**
|
|
3954
|
+
* Brand an adapter-owned reasoning-effort identifier.
|
|
3955
|
+
* @param id - the opaque identifier exposed by one model capability.
|
|
3956
|
+
* @returns the same string, branded; no validation is performed.
|
|
3957
|
+
*/
|
|
3958
|
+
function ReasoningEffortId(id) {
|
|
3959
|
+
return brandString(id);
|
|
3960
|
+
}
|
|
3961
|
+
//#endregion
|
|
3941
3962
|
//#region ../../llm/llm/src/call-config.ts
|
|
3942
3963
|
/**
|
|
3964
|
+
* Conversation call configuration and freeze utilities. Provider routing,
|
|
3965
|
+
* model, reasoning effort, and sampling values are request-header state that
|
|
3966
|
+
* can affect cache reuse; request waterfalls replace them and the loop logs
|
|
3967
|
+
* changed snapshots instead of allowing silent per-call drift.
|
|
3968
|
+
* @module dsh-llm/call-config
|
|
3969
|
+
*/
|
|
3970
|
+
/**
|
|
3943
3971
|
* Field-wise equality over {@link LlmCallConfig} — the comparison a caller
|
|
3944
3972
|
* runs to decide whether a proposed configuration is a real change (worth a
|
|
3945
3973
|
* logged header snapshot) or the held one restated.
|
|
@@ -3948,7 +3976,7 @@ function resolveRetryPolicy(config, path) {
|
|
|
3948
3976
|
* @returns whether every field (including the `stop` list, element-wise) matches.
|
|
3949
3977
|
*/
|
|
3950
3978
|
function callConfigEquals(a, b) {
|
|
3951
|
-
if (a.provider !== b.provider || a.model !== b.model || a.reasoningEffort !== b.reasoningEffort || a.temperature !== b.temperature || a.maxTokens !== b.maxTokens) return false;
|
|
3979
|
+
if (a.provider !== b.provider || a.model !== b.model || a.reasoningEffort !== b.reasoningEffort || a.temperature !== b.temperature || a.maxTokens !== b.maxTokens || a.contextWindow !== b.contextWindow || a.protocol !== b.protocol || !deepEqualJson(a.protocolOptions, b.protocolOptions)) return false;
|
|
3952
3980
|
if (a.stop === void 0 || b.stop === void 0) return a.stop === b.stop;
|
|
3953
3981
|
return a.stop.length === b.stop.length && a.stop.every((s, i) => s === b.stop?.[i]);
|
|
3954
3982
|
}
|
|
@@ -4038,6 +4066,93 @@ function harnessErrorCode(error) {
|
|
|
4038
4066
|
return error instanceof HarnessError ? error.code : "UNKNOWN";
|
|
4039
4067
|
}
|
|
4040
4068
|
//#endregion
|
|
4069
|
+
//#region ../../llm/llm/src/prompt-protocol-options.ts
|
|
4070
|
+
const requestFields = new Set([
|
|
4071
|
+
"model",
|
|
4072
|
+
"provider",
|
|
4073
|
+
"messages",
|
|
4074
|
+
"contents",
|
|
4075
|
+
"input",
|
|
4076
|
+
"prompt",
|
|
4077
|
+
"system",
|
|
4078
|
+
"instructions",
|
|
4079
|
+
"systeminstruction",
|
|
4080
|
+
"stream",
|
|
4081
|
+
"streamoptions",
|
|
4082
|
+
"tools",
|
|
4083
|
+
"toolchoice",
|
|
4084
|
+
"toolconfig",
|
|
4085
|
+
"functions",
|
|
4086
|
+
"functioncall",
|
|
4087
|
+
"paralleltoolcalls",
|
|
4088
|
+
"plugins",
|
|
4089
|
+
"mcpservers",
|
|
4090
|
+
"previousresponseid",
|
|
4091
|
+
"conversation",
|
|
4092
|
+
"cachedcontent",
|
|
4093
|
+
"store",
|
|
4094
|
+
"background",
|
|
4095
|
+
"n",
|
|
4096
|
+
"temperature",
|
|
4097
|
+
"maxtokens",
|
|
4098
|
+
"maxcompletiontokens",
|
|
4099
|
+
"maxoutputtokens",
|
|
4100
|
+
"contextwindow",
|
|
4101
|
+
"user",
|
|
4102
|
+
"safetyidentifier",
|
|
4103
|
+
"sessionid",
|
|
4104
|
+
"promptcachekey",
|
|
4105
|
+
"promptcacheretention"
|
|
4106
|
+
]);
|
|
4107
|
+
const privateFields = new Set([
|
|
4108
|
+
"authorization",
|
|
4109
|
+
"apikey",
|
|
4110
|
+
"xapikey",
|
|
4111
|
+
"xgoogapikey",
|
|
4112
|
+
"accesstoken",
|
|
4113
|
+
"refreshtoken",
|
|
4114
|
+
"credentials",
|
|
4115
|
+
"clientsecret",
|
|
4116
|
+
"password",
|
|
4117
|
+
"secret",
|
|
4118
|
+
"token",
|
|
4119
|
+
"headers",
|
|
4120
|
+
"extraheaders",
|
|
4121
|
+
"defaultheaders",
|
|
4122
|
+
"httpoptions",
|
|
4123
|
+
"extrabody",
|
|
4124
|
+
"betas",
|
|
4125
|
+
"baseurl",
|
|
4126
|
+
"endpoint",
|
|
4127
|
+
"url",
|
|
4128
|
+
"proxy",
|
|
4129
|
+
"signal",
|
|
4130
|
+
"abortsignal",
|
|
4131
|
+
"constructor",
|
|
4132
|
+
"prototype",
|
|
4133
|
+
"proto"
|
|
4134
|
+
]);
|
|
4135
|
+
/** Return the first field that would cross the Runtime's generation boundary. */
|
|
4136
|
+
function unsafePromptProtocolField(options) {
|
|
4137
|
+
for (const [name, value] of Object.entries(options ?? {})) {
|
|
4138
|
+
const field = `protocolOptions.${name}`;
|
|
4139
|
+
if (requestFields.has(name.toLowerCase().replace(/[^a-z0-9]/gu, "")) || /^dsh_/iu.test(name)) return field;
|
|
4140
|
+
const pending = [{
|
|
4141
|
+
name,
|
|
4142
|
+
value,
|
|
4143
|
+
depth: 0
|
|
4144
|
+
}];
|
|
4145
|
+
for (let item = pending.pop(); item !== void 0; item = pending.pop()) {
|
|
4146
|
+
if (item.depth > 32 || privateFields.has(item.name.toLowerCase().replace(/[^a-z0-9]/gu, ""))) return field;
|
|
4147
|
+
if (typeof item.value === "object" && item.value !== null) for (const [key, child] of Object.entries(item.value)) pending.push({
|
|
4148
|
+
name: key,
|
|
4149
|
+
value: child,
|
|
4150
|
+
depth: item.depth + 1
|
|
4151
|
+
});
|
|
4152
|
+
}
|
|
4153
|
+
}
|
|
4154
|
+
}
|
|
4155
|
+
//#endregion
|
|
4041
4156
|
//#region ../../llm/llm/src/content.ts
|
|
4042
4157
|
function quoted(value) {
|
|
4043
4158
|
return JSON.stringify(value);
|
|
@@ -4755,6 +4870,14 @@ var LlmError = class extends HarnessError {
|
|
|
4755
4870
|
});
|
|
4756
4871
|
}
|
|
4757
4872
|
};
|
|
4873
|
+
/**
|
|
4874
|
+
* Guard Runtime-owned request fields and credentials before persisting protocol options.
|
|
4875
|
+
* @param options - Adapter-owned generation parameters supplied for the current turn.
|
|
4876
|
+
*/
|
|
4877
|
+
function validatePromptProtocolOptions(options) {
|
|
4878
|
+
const field = unsafePromptProtocolField(options);
|
|
4879
|
+
if (field !== void 0) throw new LlmError(field, "UNSUPPORTED_OPTION");
|
|
4880
|
+
}
|
|
4758
4881
|
(() => {
|
|
4759
4882
|
let _classSuper = TypertRemoteService;
|
|
4760
4883
|
let _instanceExtraInitializers = [];
|
|
@@ -5178,6 +5301,47 @@ var LlmError = class extends HarnessError {
|
|
|
5178
5301
|
const info = await this.resolveModelInfoFor(registration, config.model, signal);
|
|
5179
5302
|
return this.resolveCallWithInfo(config, info);
|
|
5180
5303
|
}
|
|
5304
|
+
/**
|
|
5305
|
+
* Resolve prompt controls before queue admission, without contacting the upstream API.
|
|
5306
|
+
* @param request - Validated JSON model configuration from the prompt transport.
|
|
5307
|
+
* @returns Controls safe to persist with the queued user message.
|
|
5308
|
+
*/
|
|
5309
|
+
resolvePromptConfig(request) {
|
|
5310
|
+
const { provider, model, protocol, options, protocolOptions } = request;
|
|
5311
|
+
const adapter = this.registration(provider).adapter;
|
|
5312
|
+
if (request.apiKey !== void 0 && !adapter.supportsPromptApiKey(provider, model)) throw new LlmError("apiKey", "UNSUPPORTED_OPTION");
|
|
5313
|
+
const config = {
|
|
5314
|
+
provider,
|
|
5315
|
+
model,
|
|
5316
|
+
...protocol === void 0 ? {} : { protocol }
|
|
5317
|
+
};
|
|
5318
|
+
const forwarded = new Map(Object.entries(protocolOptions ?? {}));
|
|
5319
|
+
for (const [key, value] of Object.entries(options)) {
|
|
5320
|
+
const invalid = () => new LlmError(`options.${key}`, "UNSUPPORTED_OPTION");
|
|
5321
|
+
if (forwarded.has(key)) throw invalid();
|
|
5322
|
+
switch (key) {
|
|
5323
|
+
case "temperature":
|
|
5324
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < 0) throw invalid();
|
|
5325
|
+
config.temperature = value;
|
|
5326
|
+
break;
|
|
5327
|
+
case "contextWindow":
|
|
5328
|
+
case "maxTokens":
|
|
5329
|
+
if (typeof value !== "number" || !Number.isSafeInteger(value) || value <= 0) throw invalid();
|
|
5330
|
+
config[key] = value;
|
|
5331
|
+
break;
|
|
5332
|
+
case "reasoningEffort":
|
|
5333
|
+
if (typeof value !== "string" || value.trim() === "") throw invalid();
|
|
5334
|
+
config.reasoningEffort = ReasoningEffortId(value);
|
|
5335
|
+
break;
|
|
5336
|
+
default: forwarded.set(key, value);
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5339
|
+
if (forwarded.size > 0) config.protocolOptions = Object.fromEntries(forwarded);
|
|
5340
|
+
if (config.contextWindow !== void 0 && config.maxTokens !== void 0 && config.maxTokens >= config.contextWindow) throw new LlmError("options.maxTokens", "UNSUPPORTED_OPTION");
|
|
5341
|
+
validatePromptProtocolOptions(config.protocolOptions);
|
|
5342
|
+
adapter.validatePromptProtocol(config);
|
|
5343
|
+
return config;
|
|
5344
|
+
}
|
|
5181
5345
|
/** Validate request controls against one already-bound exact model result. */
|
|
5182
5346
|
resolveCallWithInfo(config, info) {
|
|
5183
5347
|
const defaulted = config.maxTokens === void 0 && info.defaultMaxTokens !== void 0 ? {
|
|
@@ -5199,9 +5363,10 @@ var LlmError = class extends HarnessError {
|
|
|
5199
5363
|
};
|
|
5200
5364
|
}
|
|
5201
5365
|
}
|
|
5366
|
+
const context = config.contextWindow === void 0 ? info.context : { contextWindow: config.contextWindow };
|
|
5202
5367
|
return {
|
|
5203
5368
|
config: resolvedConfig,
|
|
5204
|
-
...
|
|
5369
|
+
...context === void 0 ? {} : { context },
|
|
5205
5370
|
modelInfo: info
|
|
5206
5371
|
};
|
|
5207
5372
|
}
|
|
@@ -5211,10 +5376,12 @@ var LlmError = class extends HarnessError {
|
|
|
5211
5376
|
* so HMR cannot combine one adapter's capability result with another adapter.
|
|
5212
5377
|
* @param config - provider/model route and optional request controls.
|
|
5213
5378
|
* @param signal - optional cancellation for adapter-owned capability lookup.
|
|
5379
|
+
* @param promptApiKey - in-memory credential bound to this call and kept out of request events.
|
|
5214
5380
|
* @returns a prepared config and its registration-bound stream entry point.
|
|
5215
5381
|
*/
|
|
5216
|
-
async prepareCall(config, signal) {
|
|
5382
|
+
async prepareCall(config, signal, promptApiKey) {
|
|
5217
5383
|
const registration = this.registration(config.provider);
|
|
5384
|
+
if (promptApiKey !== void 0 && !registration.adapter.supportsPromptApiKey(config.provider, config.model)) throw new LlmError("This model route cannot use a prompt API key", "UNSUPPORTED_OPTION");
|
|
5218
5385
|
const adapterCall = await registration.adapter.prepareCall(config.provider, config.model, signal);
|
|
5219
5386
|
const modelInfo = this.normalizeModelInfo(registration, config.model, adapterCall.model);
|
|
5220
5387
|
const resolved = this.resolveCallWithInfo(config, modelInfo);
|
|
@@ -5241,7 +5408,8 @@ var LlmError = class extends HarnessError {
|
|
|
5241
5408
|
registration,
|
|
5242
5409
|
config: resolvedConfig,
|
|
5243
5410
|
modelInfo,
|
|
5244
|
-
dispatch: (options) => adapterCall.stream(options)
|
|
5411
|
+
dispatch: (options) => adapterCall.stream(options, promptApiKey),
|
|
5412
|
+
...promptApiKey === void 0 ? {} : { promptApiKey }
|
|
5245
5413
|
});
|
|
5246
5414
|
}
|
|
5247
5415
|
});
|
|
@@ -5335,7 +5503,7 @@ var LlmError = class extends HarnessError {
|
|
|
5335
5503
|
}
|
|
5336
5504
|
iterator = dispatch(this.forAdapter(projectedOptions, adapter))[Symbol.asyncIterator]();
|
|
5337
5505
|
} catch (error) {
|
|
5338
|
-
yield adapterFailureChunk(error, options.signal);
|
|
5506
|
+
yield adapterFailureChunk(error, options.signal, prepared?.promptApiKey);
|
|
5339
5507
|
return;
|
|
5340
5508
|
}
|
|
5341
5509
|
let completed = false;
|
|
@@ -5350,14 +5518,23 @@ var LlmError = class extends HarnessError {
|
|
|
5350
5518
|
};
|
|
5351
5519
|
} catch (error) {
|
|
5352
5520
|
completed = true;
|
|
5353
|
-
yield adapterFailureChunk(error, options.signal);
|
|
5521
|
+
yield adapterFailureChunk(error, options.signal, prepared?.promptApiKey);
|
|
5354
5522
|
return;
|
|
5355
5523
|
}
|
|
5356
5524
|
if (item.done) {
|
|
5357
5525
|
completed = true;
|
|
5358
5526
|
return;
|
|
5359
5527
|
}
|
|
5360
|
-
|
|
5528
|
+
const chunk = item.value;
|
|
5529
|
+
const key = prepared?.promptApiKey;
|
|
5530
|
+
if (key !== void 0 && chunk.type === "finish" && (chunk.reason.kind === "error" || chunk.reason.kind === "aborted")) yield {
|
|
5531
|
+
...chunk,
|
|
5532
|
+
reason: {
|
|
5533
|
+
...chunk.reason,
|
|
5534
|
+
failure: redactPromptFailure(chunk.reason.failure, key)
|
|
5535
|
+
}
|
|
5536
|
+
};
|
|
5537
|
+
else yield chunk;
|
|
5361
5538
|
}
|
|
5362
5539
|
} finally {
|
|
5363
5540
|
if (!completed) {
|
|
@@ -5386,8 +5563,9 @@ var LlmError = class extends HarnessError {
|
|
|
5386
5563
|
};
|
|
5387
5564
|
})();
|
|
5388
5565
|
/** Convert one adapter throw into the stream protocol's terminal outcome. */
|
|
5389
|
-
function adapterFailureChunk(error, signal) {
|
|
5390
|
-
const
|
|
5566
|
+
function adapterFailureChunk(error, signal, promptApiKey) {
|
|
5567
|
+
const normalized = normalizeLlmFailure(error);
|
|
5568
|
+
const failure = promptApiKey === void 0 ? normalized : redactPromptFailure(normalized, promptApiKey);
|
|
5391
5569
|
return {
|
|
5392
5570
|
type: "finish",
|
|
5393
5571
|
reason: signal?.aborted || failure.code === "ABORTED" ? {
|
|
@@ -5399,6 +5577,15 @@ function adapterFailureChunk(error, signal) {
|
|
|
5399
5577
|
}
|
|
5400
5578
|
};
|
|
5401
5579
|
}
|
|
5580
|
+
function redactPromptFailure(failure, apiKey) {
|
|
5581
|
+
const { message, code, requestId, ...rest } = failure;
|
|
5582
|
+
return {
|
|
5583
|
+
...rest,
|
|
5584
|
+
message: message.replaceAll(apiKey, "[redacted]"),
|
|
5585
|
+
code: code.includes(apiKey) ? "PROVIDER_ERROR" : code,
|
|
5586
|
+
...requestId === void 0 || requestId.includes(apiKey) ? {} : { requestId }
|
|
5587
|
+
};
|
|
5588
|
+
}
|
|
5402
5589
|
//#endregion
|
|
5403
5590
|
//#region ../../core/session/src/request-header.ts
|
|
5404
5591
|
/**
|
|
@@ -5412,6 +5599,7 @@ function canonicalHeader(header) {
|
|
|
5412
5599
|
const adapterDefaults = header.adapterDefaults;
|
|
5413
5600
|
return {
|
|
5414
5601
|
config: header.config,
|
|
5602
|
+
...header.promptScoped === true ? { promptScoped: true } : {},
|
|
5415
5603
|
...adapterDefaults?.reasoningEffort === true || adapterDefaults?.maxTokens === true ? { adapterDefaults } : {},
|
|
5416
5604
|
...header.tools !== void 0 && header.tools.length > 0 ? { tools: header.tools } : {}
|
|
5417
5605
|
};
|
|
@@ -104,7 +104,7 @@ export const TYPERT = {
|
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"name": "Agent",
|
|
107
|
-
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
107
|
+
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage, promptApiKey?: string): void;\n restorePromptApiKey?(message: UserMessage, apiKey: string): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"name": "AgentCancelCause",
|
|
@@ -216,7 +216,7 @@ export const TYPERT = {
|
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"name": "EpochHeader",
|
|
219
|
-
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
219
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n promptScoped?: true;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"name": "EveryScheduleDispatchChange",
|
|
@@ -340,7 +340,7 @@ export const TYPERT = {
|
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"name": "LlmCallConfig",
|
|
343
|
-
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
343
|
+
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n contextWindow?: number;\n protocol?: string;\n protocolOptions?: Readonly<Record<string, JsonValue>>;\n}"
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"name": "LlmCallConfigAdapterDefaults",
|
|
@@ -392,7 +392,7 @@ export const TYPERT = {
|
|
|
392
392
|
},
|
|
393
393
|
{
|
|
394
394
|
"name": "MessageSourceMap",
|
|
395
|
-
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n}"
|
|
395
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; promptDigest?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n}"
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
"name": "ModelMessageSource",
|
|
@@ -656,7 +656,7 @@ export const TYPERT = {
|
|
|
656
656
|
},
|
|
657
657
|
{
|
|
658
658
|
"name": "UserMessage",
|
|
659
|
-
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
659
|
+
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n readonly promptConfig?: LlmCallConfig;\n readonly promptApiKeyRequired?: true;\n}"
|
|
660
660
|
}
|
|
661
661
|
]
|
|
662
662
|
}
|