@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
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { HarnessError } from '@deepseek-ai/dsh-llm';
|
|
2
|
+
import type { InferValue } from '@deepseek-ai/dsh-tools';
|
|
3
|
+
import type { PatchExecutionReport } from './patch/types.ts';
|
|
4
|
+
/** Strict canonical output; full file texts feed rendering and are excluded from presentation metadata. */
|
|
5
|
+
export declare const patchOutputSchema: {
|
|
6
|
+
readonly type: "object";
|
|
7
|
+
readonly additionalProperties: false;
|
|
8
|
+
readonly properties: {
|
|
9
|
+
readonly phase: {
|
|
10
|
+
readonly type: "string";
|
|
11
|
+
readonly const: "commit";
|
|
12
|
+
readonly required: true;
|
|
13
|
+
};
|
|
14
|
+
readonly cancelled: {
|
|
15
|
+
readonly type: "boolean";
|
|
16
|
+
readonly required: true;
|
|
17
|
+
};
|
|
18
|
+
readonly operations: {
|
|
19
|
+
readonly type: "array";
|
|
20
|
+
readonly required: true;
|
|
21
|
+
readonly items: {
|
|
22
|
+
readonly type: "object";
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
readonly properties: {
|
|
25
|
+
readonly index: {
|
|
26
|
+
readonly type: "integer";
|
|
27
|
+
readonly required: true;
|
|
28
|
+
};
|
|
29
|
+
readonly kind: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
readonly enum: readonly ["add", "update", "delete", "move"];
|
|
32
|
+
readonly required: true;
|
|
33
|
+
};
|
|
34
|
+
readonly path: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly required: true;
|
|
37
|
+
};
|
|
38
|
+
readonly destination: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
};
|
|
41
|
+
readonly patchLine: {
|
|
42
|
+
readonly type: "integer";
|
|
43
|
+
readonly required: true;
|
|
44
|
+
};
|
|
45
|
+
readonly status: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
readonly enum: readonly ["completed", "failed", "unknown", "skipped"];
|
|
48
|
+
readonly required: true;
|
|
49
|
+
};
|
|
50
|
+
readonly code: {
|
|
51
|
+
readonly type: "string";
|
|
52
|
+
};
|
|
53
|
+
readonly message: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
};
|
|
56
|
+
readonly hunkLine: {
|
|
57
|
+
readonly type: "integer";
|
|
58
|
+
};
|
|
59
|
+
readonly changes: {
|
|
60
|
+
readonly type: "array";
|
|
61
|
+
readonly items: {
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly additionalProperties: false;
|
|
64
|
+
readonly properties: {
|
|
65
|
+
readonly path: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly required: true;
|
|
68
|
+
};
|
|
69
|
+
readonly before: {
|
|
70
|
+
readonly required: true;
|
|
71
|
+
readonly oneOf: readonly [{
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "null";
|
|
75
|
+
}];
|
|
76
|
+
};
|
|
77
|
+
readonly after: {
|
|
78
|
+
readonly required: true;
|
|
79
|
+
readonly oneOf: readonly [{
|
|
80
|
+
readonly type: "string";
|
|
81
|
+
}, {
|
|
82
|
+
readonly type: "null";
|
|
83
|
+
}];
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly affectedPaths: {
|
|
92
|
+
readonly type: "array";
|
|
93
|
+
readonly items: {
|
|
94
|
+
readonly type: "string";
|
|
95
|
+
};
|
|
96
|
+
readonly required: true;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
/** Validated commit value shared by rendering and presentation. */
|
|
101
|
+
export type PatchToolValue = InferValue<typeof patchOutputSchema>;
|
|
102
|
+
/** Patch syntax and symbolic-link refusals retain their own stable codes. */
|
|
103
|
+
export declare class PatchToolError extends HarnessError {
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Convert a report into a commit value, or reject while no disk change exists.
|
|
107
|
+
* A commit whose first operation failed without any change, such as a provider sandbox
|
|
108
|
+
* denial, rejects like a preflight refusal so the error code reaches the same retry paths.
|
|
109
|
+
* @param report - executor report.
|
|
110
|
+
* @returns a flat, lossless JSON commit value, including partial failures.
|
|
111
|
+
* @throws FsError or PatchToolError for syntax, preflight, or first-operation refusals.
|
|
112
|
+
*/
|
|
113
|
+
export declare function patchToolValue(report: PatchExecutionReport): PatchToolValue;
|
|
114
|
+
/**
|
|
115
|
+
* Identify a stopped commit, including cancellation before the next operation.
|
|
116
|
+
* @param value - canonical patch result.
|
|
117
|
+
* @returns whether the patch did not finish every operation.
|
|
118
|
+
*/
|
|
119
|
+
export declare function patchStopped(value: PatchToolValue): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Render completed paths and actionable stopped-operation diagnostics.
|
|
122
|
+
* @param value - canonical patch result; paths already use the executor's display spelling.
|
|
123
|
+
* @returns concise model-visible text without whole-file contents.
|
|
124
|
+
*/
|
|
125
|
+
export declare function renderPatch(value: PatchToolValue): string;
|
|
126
|
+
/**
|
|
127
|
+
* Derive hunks only from known completed effects, including a partial move destination.
|
|
128
|
+
* Creations store no diff, as for `write`; a removal without a bounded basis stores none either.
|
|
129
|
+
* @param value - canonical commit value containing the provider's bounded baselines.
|
|
130
|
+
* @returns serializable diff hunks and an explicit stopped flag; no whole-file change records.
|
|
131
|
+
*/
|
|
132
|
+
export declare function patchPresentationMeta(value: PatchToolValue): {
|
|
133
|
+
diffs: {
|
|
134
|
+
path: string;
|
|
135
|
+
oldText: string | null;
|
|
136
|
+
newText: string;
|
|
137
|
+
}[];
|
|
138
|
+
stopped: boolean;
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=apply-patch-output.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DiffCallView, DiffResultView, ToolResult } from '@deepseek-ai/dsh-tools';
|
|
2
|
+
/**
|
|
3
|
+
* Preview the requested operations without resolving paths or reading the filesystem.
|
|
4
|
+
* A deletion has no diff text to preview and appears only among the locations.
|
|
5
|
+
* @param patch - raw patch argument.
|
|
6
|
+
* @returns a diff call view, or undefined when syntax is invalid.
|
|
7
|
+
*/
|
|
8
|
+
export declare function presentPatchCall(patch: string): DiffCallView | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Present applied metadata; failed or missing metadata uses generic result rendering.
|
|
11
|
+
* @param result - live or replayed tool result.
|
|
12
|
+
* @returns known applied hunks with a stopped title where appropriate.
|
|
13
|
+
*/
|
|
14
|
+
export declare function presentPatchResult(result: ToolResult): DiffResultView | undefined;
|
|
15
|
+
//# sourceMappingURL=apply-patch-presentation.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Multi-file patch tool over the guarded patch executor. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { FsSandboxController } from './sandbox.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Register the patch tool and scope-aware guidance using the shared mutation controller.
|
|
6
|
+
* @param ctx - plugin effect scope and filesystem services.
|
|
7
|
+
* @param sandbox - per-call policy resolver and denial mapper.
|
|
8
|
+
*/
|
|
9
|
+
export declare function applyApplyPatchTool(ctx: Context, sandbox: FsSandboxController): void;
|
|
10
|
+
//# sourceMappingURL=apply-patch.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Shared observation and result fields for successful file mutations. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { FsTarget, FsVersion } from '@deepseek-ai/dsh-fs';
|
|
4
|
+
import type { ToolExecution } from '@deepseek-ai/dsh-tools';
|
|
5
|
+
/**
|
|
6
|
+
* Record the new file version and expose the mutation result with its canonical path.
|
|
7
|
+
* @param ctx - filesystem and observation event owner.
|
|
8
|
+
* @param target - resolved file that was mutated.
|
|
9
|
+
* @param outcome - successful provider result; its version stays in the observation event.
|
|
10
|
+
* @param exec - calling tool execution.
|
|
11
|
+
* @returns the provider's result fields without the version, plus the canonical absolute path.
|
|
12
|
+
*/
|
|
13
|
+
export declare function mutationResult<T extends {
|
|
14
|
+
version: FsVersion;
|
|
15
|
+
}>(ctx: Context, target: FsTarget, outcome: T, exec: ToolExecution): Omit<T, 'version'> & {
|
|
16
|
+
path: string;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=mutation-result.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Sequential provider commits with truthful partial results and uncertainty checks. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { SandboxExecutionPolicy } from '@deepseek-ai/dsh-sandbox';
|
|
4
|
+
import type { ToolExecution } from '@deepseek-ai/dsh-tools';
|
|
5
|
+
import type { FsSandboxController } from '../sandbox.ts';
|
|
6
|
+
import type { PatchExecutionReport, PlannedOperation } from './types.ts';
|
|
7
|
+
/**
|
|
8
|
+
* Commit a fully admitted plan; the first failure stops later operations without rollback.
|
|
9
|
+
* @param ctx - provider and observation dispatcher.
|
|
10
|
+
* @param sandbox - existing model-facing denial mapper.
|
|
11
|
+
* @param exec - session actor and cancellation signal.
|
|
12
|
+
* @param policy - request's resolved confinement policy.
|
|
13
|
+
* @param operations - operations that all passed preflight.
|
|
14
|
+
* @returns known changes, failed or unknown effects, and skipped successors in patch order.
|
|
15
|
+
*/
|
|
16
|
+
export declare function commitPatch(ctx: Context, sandbox: FsSandboxController, exec: ToolExecution, policy: SandboxExecutionPolicy | undefined, operations: readonly PlannedOperation[]): Promise<PatchExecutionReport>;
|
|
17
|
+
//# sourceMappingURL=execute.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Internal patch executor; tool registration and persisted result metadata are owned by its caller. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { ToolExecution } from '@deepseek-ai/dsh-tools';
|
|
4
|
+
import type { FsSandboxController } from '../sandbox.ts';
|
|
5
|
+
import type { PatchExecutionReport, PatchExecutionRequest } from './types.ts';
|
|
6
|
+
export type { PatchExecutionReport, PatchExecutionRequest, PatchFailure, PatchFailureCode, PatchFileChange, PatchOperationOutcome, PatchOperationRecord, PatchRefusal } from './types.ts';
|
|
7
|
+
/**
|
|
8
|
+
* Preflight a whole patch before sequential guarded mutations; business failures become records.
|
|
9
|
+
* @param ctx - mounted filesystem and observation-policy events.
|
|
10
|
+
* @param sandbox - denial mapper shared with existing filesystem tools.
|
|
11
|
+
* @param exec - session cwd, observation actor, and cancellation signal.
|
|
12
|
+
* @param request - raw patch and policy already resolved by the caller.
|
|
13
|
+
* @returns the syntax failure, the preflight refusals, or ordered commit outcomes.
|
|
14
|
+
* @throws unexpected programming defects without starting further operations.
|
|
15
|
+
*/
|
|
16
|
+
export declare function executePatch(ctx: Context, sandbox: FsSandboxController, exec: ToolExecution, request: PatchExecutionRequest): Promise<PatchExecutionReport>;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** Patch parsing and target identity shared by preflight and sequential commits. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import { FsError } from '@deepseek-ai/dsh-fs';
|
|
4
|
+
import type { FsTarget, FsVersion, FsWriteIntent } from '@deepseek-ai/dsh-fs';
|
|
5
|
+
import type { SandboxExecutionPolicy } from '@deepseek-ai/dsh-sandbox';
|
|
6
|
+
import type { ToolExecution } from '@deepseek-ai/dsh-tools';
|
|
7
|
+
import type { FsSandboxController } from '../sandbox.ts';
|
|
8
|
+
import type { PatchExecutionRequest, PatchFailure, PatchPlan, PlannedOperation } from './types.ts';
|
|
9
|
+
/**
|
|
10
|
+
* Resolve every operation without dropping repeated aliases or splitting moves.
|
|
11
|
+
* @param ctx - filesystem service owner.
|
|
12
|
+
* @param sandbox - filesystem diagnostic mapper.
|
|
13
|
+
* @param exec - session cwd and execution signal.
|
|
14
|
+
* @param request - raw patch and resolved per-call policy.
|
|
15
|
+
* @returns resolved operations sharing one target per canonical key, plus resolution refusals.
|
|
16
|
+
*/
|
|
17
|
+
export declare function planPatch(ctx: Context, sandbox: FsSandboxController, exec: ToolExecution, request: PatchExecutionRequest): Promise<PatchPlan>;
|
|
18
|
+
/**
|
|
19
|
+
* Obtain a source guard without recording an observation.
|
|
20
|
+
* @param ctx - intent dispatcher.
|
|
21
|
+
* @param exec - opaque observation actor.
|
|
22
|
+
* @param target - resolved source.
|
|
23
|
+
* @param kind - deletion or edit-family source policy.
|
|
24
|
+
* @returns the observed version, or undefined for a bare provider.
|
|
25
|
+
*/
|
|
26
|
+
export declare function sourceIntent(ctx: Context, exec: ToolExecution, target: FsTarget, kind: 'delete' | 'edit'): Promise<{
|
|
27
|
+
version: FsVersion;
|
|
28
|
+
} | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Obtain a write guard without recording an observation.
|
|
31
|
+
* @param ctx - intent dispatcher.
|
|
32
|
+
* @param exec - opaque observation actor.
|
|
33
|
+
* @param target - resolved write destination.
|
|
34
|
+
* @returns the observed write intent, or undefined for a bare provider.
|
|
35
|
+
*/
|
|
36
|
+
export declare function destinationIntent(ctx: Context, exec: ToolExecution, target: FsTarget): Promise<FsWriteIntent | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* Preserve filesystem codes while applying the existing model-facing error policy.
|
|
39
|
+
* @param sandbox - shared denial mapper.
|
|
40
|
+
* @param policy - policy supplied by the request.
|
|
41
|
+
* @param error - expected filesystem failure.
|
|
42
|
+
* @param path - display path whose operation failed.
|
|
43
|
+
* @returns the remediated code and message; unexpected mapper defects reject.
|
|
44
|
+
*/
|
|
45
|
+
export declare function patchFailure(sandbox: FsSandboxController, policy: SandboxExecutionPolicy | undefined, error: FsError, path: string): PatchFailure;
|
|
46
|
+
/**
|
|
47
|
+
* List all targets the operation can mutate, with destination first for a move.
|
|
48
|
+
* @param operation - resolved operation.
|
|
49
|
+
* @returns targets whose versions the uncertainty comparison records.
|
|
50
|
+
*/
|
|
51
|
+
export declare function mutationTargets(operation: PlannedOperation): FsTarget[];
|
|
52
|
+
//# sourceMappingURL=plan.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Read-only simulation of patch effects; no internal read establishes model observation. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { SandboxExecutionPolicy } from '@deepseek-ai/dsh-sandbox';
|
|
4
|
+
import type { ToolExecution } from '@deepseek-ai/dsh-tools';
|
|
5
|
+
import type { FsSandboxController } from '../sandbox.ts';
|
|
6
|
+
import type { PatchRefusal, PlannedOperation } from './types.ts';
|
|
7
|
+
/**
|
|
8
|
+
* Collect every independent preflight refusal while simulating only admitted operations.
|
|
9
|
+
* Sandbox containment is the provider's decision at commit, as for write and edit.
|
|
10
|
+
* @param ctx - filesystem service owner; reads never emit observations.
|
|
11
|
+
* @param sandbox - model-facing denial mapper.
|
|
12
|
+
* @param exec - observation actor and cancellation signal.
|
|
13
|
+
* @param policy - resolved confinement policy used to label refusals.
|
|
14
|
+
* @param operations - complete resolved operation plan.
|
|
15
|
+
* @returns refused operations in patch order; any refusal forbids the commit phase.
|
|
16
|
+
*/
|
|
17
|
+
export declare function preflightPatch(ctx: Context, sandbox: FsSandboxController, exec: ToolExecution, policy: SandboxExecutionPolicy | undefined, operations: readonly PlannedOperation[]): Promise<PatchRefusal[]>;
|
|
18
|
+
//# sourceMappingURL=preflight.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/** Internal patch outcomes, failure diagnostics, and operation-local plans. */
|
|
2
|
+
import type { FsErrorCode, FsTarget } from '@deepseek-ai/dsh-fs';
|
|
3
|
+
import type { PatchHunk } from '@deepseek-ai/dsh-fs-patch';
|
|
4
|
+
import type { SandboxExecutionPolicy } from '@deepseek-ai/dsh-sandbox';
|
|
5
|
+
/** One request after the caller resolves its per-call sandbox policy. */
|
|
6
|
+
export interface PatchExecutionRequest {
|
|
7
|
+
/** Raw patch text from the model. */
|
|
8
|
+
patch: string;
|
|
9
|
+
/** Resolved per-call policy; undefined under an unconfined backend. */
|
|
10
|
+
sandboxPolicy: SandboxExecutionPolicy | undefined;
|
|
11
|
+
}
|
|
12
|
+
/** One file operation; unresolved paths retain their original patch spelling on resolution failure. */
|
|
13
|
+
export interface PatchOperationRecord {
|
|
14
|
+
/** Zero-based position in the patch. */
|
|
15
|
+
index: number;
|
|
16
|
+
/** File effect represented by this operation. */
|
|
17
|
+
kind: 'add' | 'update' | 'delete' | 'move';
|
|
18
|
+
/** Source display path (created path for add), or raw patch path if resolution failed. */
|
|
19
|
+
path: string;
|
|
20
|
+
/** Move destination display path, or raw patch path if it could not be resolved. */
|
|
21
|
+
destination?: string;
|
|
22
|
+
/** One-based patch line of the operation header. */
|
|
23
|
+
patchLine: number;
|
|
24
|
+
}
|
|
25
|
+
/** LF text before and after one effect; null means absence or an unavailable provider basis. */
|
|
26
|
+
export interface PatchFileChange {
|
|
27
|
+
/** Canonical absolute process path that changed. */
|
|
28
|
+
path: string;
|
|
29
|
+
/** Previous text, or null for absence or an unavailable basis. */
|
|
30
|
+
before: string | null;
|
|
31
|
+
/** Published text, or null after deletion. */
|
|
32
|
+
after: string | null;
|
|
33
|
+
}
|
|
34
|
+
/** Filesystem failures plus syntax and disallowed symlink-source diagnostics. */
|
|
35
|
+
export type PatchFailureCode = FsErrorCode | 'PATCH_SYNTAX' | 'PATCH_SYMLINK_SOURCE';
|
|
36
|
+
/** Actionable diagnostic ready for model output. */
|
|
37
|
+
export interface PatchFailure {
|
|
38
|
+
/** Stable machine-readable reason. */
|
|
39
|
+
code: PatchFailureCode;
|
|
40
|
+
/** Message after sandbox denial mapping and filesystem remediation. */
|
|
41
|
+
message: string;
|
|
42
|
+
/** Patch line of an unmatched hunk. */
|
|
43
|
+
hunkLine?: number;
|
|
44
|
+
}
|
|
45
|
+
/** One operation refused before any write. */
|
|
46
|
+
export interface PatchRefusal {
|
|
47
|
+
operation: PatchOperationRecord;
|
|
48
|
+
failure: PatchFailure;
|
|
49
|
+
}
|
|
50
|
+
/** Each operation retains completed effects even when a move fails halfway. */
|
|
51
|
+
export type PatchOperationOutcome = {
|
|
52
|
+
status: 'completed';
|
|
53
|
+
operation: PatchOperationRecord;
|
|
54
|
+
changes: PatchFileChange[];
|
|
55
|
+
} | {
|
|
56
|
+
status: 'failed';
|
|
57
|
+
operation: PatchOperationRecord;
|
|
58
|
+
failure: PatchFailure;
|
|
59
|
+
changes: PatchFileChange[];
|
|
60
|
+
} | {
|
|
61
|
+
status: 'unknown';
|
|
62
|
+
operation: PatchOperationRecord;
|
|
63
|
+
failure: PatchFailure;
|
|
64
|
+
} | {
|
|
65
|
+
status: 'skipped';
|
|
66
|
+
operation: PatchOperationRecord;
|
|
67
|
+
};
|
|
68
|
+
/** Syntax and preflight refusals prevent all writes; a commit failure stops later operations. */
|
|
69
|
+
export type PatchExecutionReport = {
|
|
70
|
+
phase: 'syntax';
|
|
71
|
+
failure: PatchFailure;
|
|
72
|
+
} | {
|
|
73
|
+
phase: 'preflight';
|
|
74
|
+
refusals: [PatchRefusal, ...PatchRefusal[]];
|
|
75
|
+
} | {
|
|
76
|
+
phase: 'commit';
|
|
77
|
+
outcomes: PatchOperationOutcome[];
|
|
78
|
+
affectedPaths: string[];
|
|
79
|
+
cancelled: boolean;
|
|
80
|
+
};
|
|
81
|
+
/** Resolved operation with raw source spelling retained for no-follow inspection. */
|
|
82
|
+
export type PlannedOperation = {
|
|
83
|
+
record: PatchOperationRecord;
|
|
84
|
+
target: FsTarget;
|
|
85
|
+
rawPath: string;
|
|
86
|
+
} & ({
|
|
87
|
+
kind: 'add';
|
|
88
|
+
content: string;
|
|
89
|
+
} | {
|
|
90
|
+
kind: 'update';
|
|
91
|
+
hunks: readonly PatchHunk[];
|
|
92
|
+
} | {
|
|
93
|
+
kind: 'delete';
|
|
94
|
+
} | {
|
|
95
|
+
kind: 'move';
|
|
96
|
+
destination: FsTarget;
|
|
97
|
+
hunks: readonly PatchHunk[];
|
|
98
|
+
});
|
|
99
|
+
/** Resolved operations and path-resolution refusals in one parsed patch. */
|
|
100
|
+
export interface PatchPlan {
|
|
101
|
+
/** Resolved operations in patch order. */
|
|
102
|
+
operations: PlannedOperation[];
|
|
103
|
+
/** Resolution refusals; unresolvable paths retain their raw patch spelling. */
|
|
104
|
+
refusals: PatchRefusal[];
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Deployment-owned preset choices for one delegation tool. */
|
|
2
|
+
import type { SubagentProvider } from '@deepseek-ai/dsh-subagent';
|
|
3
|
+
/** Optional default and model-selectable preset ids for a spawn tool. */
|
|
4
|
+
export interface PresetSelectionConfig {
|
|
5
|
+
/** Default independent preset; omission inherits the parent when the model makes no selection. */
|
|
6
|
+
agentPreset?: string;
|
|
7
|
+
/** Non-empty allowlist exposing agent_preset to the model; omission disables model selection. */
|
|
8
|
+
allowedAgentPresets?: string[] | undefined;
|
|
9
|
+
}
|
|
10
|
+
/** Untrusted preset selection from model/tool JSON. */
|
|
11
|
+
export interface PresetSelectionRequest {
|
|
12
|
+
readonly agent_preset?: unknown;
|
|
13
|
+
}
|
|
14
|
+
/** Validates configured choices and resolves model input against the allowlist. */
|
|
15
|
+
export declare class SubagentPresetSelection {
|
|
16
|
+
private readonly config;
|
|
17
|
+
constructor(config: PresetSelectionConfig);
|
|
18
|
+
/** Whether this tool requires the preset service and an independently composing provider. */
|
|
19
|
+
get configured(): boolean;
|
|
20
|
+
/** Preset ids advertised in the model parameter. */
|
|
21
|
+
get choices(): readonly string[] | undefined;
|
|
22
|
+
/** Model-visible selection and default guidance. */
|
|
23
|
+
get description(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Reject independent selection for providers that inherit conversation history or lack support.
|
|
26
|
+
* @param provider - Currently registered delegation provider.
|
|
27
|
+
*/
|
|
28
|
+
assertProvider(provider: SubagentProvider): void;
|
|
29
|
+
/**
|
|
30
|
+
* Validate model input and apply the deployment default.
|
|
31
|
+
* @param request - Model-supplied tool arguments.
|
|
32
|
+
* @returns Selected preset id, or omission to inherit the parent.
|
|
33
|
+
*/
|
|
34
|
+
resolve(request: PresetSelectionRequest): string | undefined;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=preset-selection.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Input waiting owned by the subagent control plugin. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
/**
|
|
4
|
+
* Register one inbox wait tool and cancel its waits when the plugin unloads.
|
|
5
|
+
* @param ctx - plugin context owning the tool, event listeners, and wait lifetime.
|
|
6
|
+
*/
|
|
7
|
+
export declare function registerWaitAgent(ctx: Context): void;
|
|
8
|
+
//# sourceMappingURL=wait-agent.d.ts.map
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/** Input waiting owned by the subagent control plugin. */
|
|
2
|
+
import { HarnessError } from '@deepseek-ai/dsh-llm';
|
|
3
|
+
import { defineTool } from '@deepseek-ai/dsh-tools';
|
|
4
|
+
/** Wait failures retain a stable machine-readable reason through tool execution. */
|
|
5
|
+
class AgentWaitError extends HarnessError {
|
|
6
|
+
constructor(message, code) {
|
|
7
|
+
super(message, code);
|
|
8
|
+
this.name = 'AgentWaitError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Wait without consuming input; every settlement removes its live resources.
|
|
13
|
+
* Within one model tool call, such as a `run_code` program, pending input that
|
|
14
|
+
* an earlier wait already reported does not end this wait: that input reaches
|
|
15
|
+
* the model only after the call finishes, so a waiting loop cannot spin on it.
|
|
16
|
+
*/
|
|
17
|
+
function waitForInput(ctx, agent, timeoutMs, signal, lifetime, reported, rootCallId) {
|
|
18
|
+
lifetime.throwIfAborted();
|
|
19
|
+
if (ctx.agents.get(agent.id) !== agent) {
|
|
20
|
+
throw new AgentWaitError('wait_agent requires the exact live calling agent', 'WAIT_UNAVAILABLE');
|
|
21
|
+
}
|
|
22
|
+
const previous = reported.get(agent);
|
|
23
|
+
const seen = previous?.rootCallId === rootCallId ? previous.ids : undefined;
|
|
24
|
+
return new Promise((resolve, reject) => {
|
|
25
|
+
const finish = (settle) => {
|
|
26
|
+
clearTimeout(timer);
|
|
27
|
+
offInbox();
|
|
28
|
+
offDisposed();
|
|
29
|
+
signal.removeEventListener('abort', onAbort);
|
|
30
|
+
lifetime.removeEventListener('abort', onUnload);
|
|
31
|
+
settle();
|
|
32
|
+
};
|
|
33
|
+
const onInput = () => {
|
|
34
|
+
const pending = agent.inbox.nextStep;
|
|
35
|
+
if (pending.some(message => seen?.has(message.id) !== true)) {
|
|
36
|
+
reported.set(agent, { rootCallId, ids: new Set(pending.map(message => message.id)) });
|
|
37
|
+
finish(() => { resolve({ timedOut: false }); });
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
// oxlint-disable-next-line typescript/prefer-promise-reject-errors -- Cancellation preserves the caller's exact AbortSignal reason.
|
|
41
|
+
const onAbort = () => { finish(() => { reject(signal.reason); }); };
|
|
42
|
+
// oxlint-disable-next-line typescript/prefer-promise-reject-errors -- This plugin aborts its lifetime only with AgentWaitError.
|
|
43
|
+
const onUnload = () => { finish(() => { reject(lifetime.reason); }); };
|
|
44
|
+
const offInbox = ctx.on('agent/inbox/inserted', ({ agent: recipient }) => {
|
|
45
|
+
if (recipient === agent)
|
|
46
|
+
onInput();
|
|
47
|
+
});
|
|
48
|
+
const offDisposed = ctx.on('agent/disposed', ({ agent: disposed }) => {
|
|
49
|
+
if (disposed === agent) {
|
|
50
|
+
finish(() => {
|
|
51
|
+
reject(new AgentWaitError('wait_agent ended because the calling agent was disposed', 'WAIT_UNAVAILABLE'));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
signal.addEventListener('abort', onAbort, { once: true });
|
|
56
|
+
lifetime.addEventListener('abort', onUnload, { once: true });
|
|
57
|
+
const timer = setTimeout(() => { finish(() => { resolve({ timedOut: true }); }); }, timeoutMs);
|
|
58
|
+
// Subscribe before reading pending input so an arrival cannot fall between them.
|
|
59
|
+
if (signal.aborted)
|
|
60
|
+
onAbort();
|
|
61
|
+
else
|
|
62
|
+
onInput();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Register one inbox wait tool and cancel its waits when the plugin unloads.
|
|
67
|
+
* @param ctx - plugin context owning the tool, event listeners, and wait lifetime.
|
|
68
|
+
*/
|
|
69
|
+
export function registerWaitAgent(ctx) {
|
|
70
|
+
const lifetime = new AbortController();
|
|
71
|
+
const reported = new WeakMap();
|
|
72
|
+
ctx.effect(() => () => {
|
|
73
|
+
lifetime.abort(new AgentWaitError('wait_agent ended because its plugin was unloaded', 'WAIT_UNAVAILABLE'));
|
|
74
|
+
}, 'subagent-control.waits()');
|
|
75
|
+
ctx.tools.register(defineTool({
|
|
76
|
+
name: 'wait_agent',
|
|
77
|
+
description: 'Wait for input at your next step, including agent messages, completion notifications, and user steering. Returns immediately if new input is pending. `timedOut: false` means new input is pending. Pending input is delivered to the model after code execution finishes.',
|
|
78
|
+
parameters: {
|
|
79
|
+
timeout_ms: {
|
|
80
|
+
type: 'integer',
|
|
81
|
+
description: 'Wait duration in milliseconds, from 10000 through 3600000. Defaults to 30000.',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
output: {
|
|
85
|
+
schema: {
|
|
86
|
+
type: 'object',
|
|
87
|
+
additionalProperties: false,
|
|
88
|
+
properties: { timedOut: { type: 'boolean', required: true } },
|
|
89
|
+
},
|
|
90
|
+
render: (_args, value) => [{ type: 'text', text: JSON.stringify(value) }],
|
|
91
|
+
},
|
|
92
|
+
async execute(args, exec) {
|
|
93
|
+
const timeoutMs = args.timeout_ms ?? 30_000;
|
|
94
|
+
if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 10_000 || timeoutMs > 3_600_000) {
|
|
95
|
+
throw new AgentWaitError('timeout_ms must be an integer from 10000 through 3600000', 'WAIT_INVALID_TIMEOUT');
|
|
96
|
+
}
|
|
97
|
+
if (exec.agent === undefined) {
|
|
98
|
+
throw new AgentWaitError('wait_agent requires a calling agent', 'WAIT_UNAVAILABLE');
|
|
99
|
+
}
|
|
100
|
+
return await waitForInput(ctx, exec.agent, timeoutMs, exec.signal, lifetime.signal, reported, exec.rootCallId);
|
|
101
|
+
},
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=wait-agent.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schedules one assistant step's tool calls. Exclusive calls form barriers;
|
|
3
|
+
* parallel calls use a bounded rolling pool and are reclassified before start.
|
|
4
|
+
* Dispatch may overlap, while policy, results, and result context remain
|
|
5
|
+
* model-ordered. Abort or an internal scheduler failure stops replenishment
|
|
6
|
+
* and drains started calls.
|
|
7
|
+
*
|
|
8
|
+
* Abort records synthetic error results for skipped calls so replay stays
|
|
9
|
+
* valid. A terminal scheduler failure rejects after draining; the owning step
|
|
10
|
+
* records conservative recovery results before closing.
|
|
11
|
+
* @module dsh-tools/batch
|
|
12
|
+
*/
|
|
13
|
+
import type { ToolBatchInput, ToolBatchResult } from './executor.ts';
|
|
14
|
+
import type { ToolExecutionPipeline } from './pipeline.ts';
|
|
15
|
+
/**
|
|
16
|
+
* Execute raw calls with ordered policy and results around overlapping tool bodies.
|
|
17
|
+
* Abort drains started calls and synthesizes results for skipped calls. Internal
|
|
18
|
+
* failures drain before rejecting with the already committed results and context.
|
|
19
|
+
* @param input - raw calls, optional concurrency override, and optional Session owner.
|
|
20
|
+
* @param pipeline - executor-owned invocation implementation.
|
|
21
|
+
* @param maxParallel - reads the executor's current validated limit when input has no override.
|
|
22
|
+
* @returns model-ordered outcomes after every started body has settled.
|
|
23
|
+
* @throws RangeError when the explicit concurrency override is not a positive integer.
|
|
24
|
+
*/
|
|
25
|
+
export declare function executeToolBatch(input: ToolBatchInput, pipeline: ToolExecutionPipeline, maxParallel: () => number): Promise<ToolBatchResult>;
|
|
26
|
+
//# sourceMappingURL=batch.d.ts.map
|