@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
|
@@ -94,6 +94,7 @@ import { SessionQueryError } from '@deepseek-ai/dsh-session-query';
|
|
|
94
94
|
import { Remote, RemoteError, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
95
95
|
import { ApiSessionAgentController, inspectApiSession, } from "./agent.js";
|
|
96
96
|
import { SessionCommandController } from "./commands.js";
|
|
97
|
+
import { LoginTokenStore } from "./login-token-store.js";
|
|
97
98
|
import { SessionControlController } from "./control.js";
|
|
98
99
|
import { SessionHistoryController } from "./history.js";
|
|
99
100
|
import { SessionFileReferences } from "./file-references.js";
|
|
@@ -113,14 +114,23 @@ let SessionController = (() => {
|
|
|
113
114
|
let _list_decorators;
|
|
114
115
|
let _search_decorators;
|
|
115
116
|
let _create_decorators;
|
|
117
|
+
let _workspaceAccess_decorators;
|
|
118
|
+
let _setWorkspaceAccess_decorators;
|
|
119
|
+
let _toolCatalog_decorators;
|
|
120
|
+
let _release_decorators;
|
|
121
|
+
let _setLoginToken_decorators;
|
|
122
|
+
let _clearLoginToken_decorators;
|
|
123
|
+
let _resume_decorators;
|
|
116
124
|
let _selectModel_decorators;
|
|
117
125
|
let _initializeDefaultModel_decorators;
|
|
118
126
|
let _modelCatalog_decorators;
|
|
127
|
+
let _refreshModelCatalog_decorators;
|
|
119
128
|
let _canOpenWorkspacePath_decorators;
|
|
120
129
|
let _openWorkspacePath_decorators;
|
|
121
130
|
let _workspacePathApplications_decorators;
|
|
122
131
|
let _rename_decorators;
|
|
123
132
|
let _fork_decorators;
|
|
133
|
+
let _promptModelConfig_decorators;
|
|
124
134
|
let _prompt_decorators;
|
|
125
135
|
let _attachment_decorators;
|
|
126
136
|
let _updateQueue_decorators;
|
|
@@ -135,14 +145,23 @@ let SessionController = (() => {
|
|
|
135
145
|
_list_decorators = [Remote('list')];
|
|
136
146
|
_search_decorators = [Remote('search')];
|
|
137
147
|
_create_decorators = [Remote('create')];
|
|
148
|
+
_workspaceAccess_decorators = [Remote('workspaceAccess')];
|
|
149
|
+
_setWorkspaceAccess_decorators = [Remote('setWorkspaceAccess')];
|
|
150
|
+
_toolCatalog_decorators = [Remote('toolCatalog')];
|
|
151
|
+
_release_decorators = [Remote('release')];
|
|
152
|
+
_setLoginToken_decorators = [Remote('setLoginToken')];
|
|
153
|
+
_clearLoginToken_decorators = [Remote('clearLoginToken')];
|
|
154
|
+
_resume_decorators = [Remote('resume')];
|
|
138
155
|
_selectModel_decorators = [Remote('selectModel')];
|
|
139
156
|
_initializeDefaultModel_decorators = [Remote];
|
|
140
157
|
_modelCatalog_decorators = [Remote('modelCatalog')];
|
|
158
|
+
_refreshModelCatalog_decorators = [Remote('refreshModelCatalog')];
|
|
141
159
|
_canOpenWorkspacePath_decorators = [Remote];
|
|
142
160
|
_openWorkspacePath_decorators = [Remote('openWorkspacePath')];
|
|
143
161
|
_workspacePathApplications_decorators = [Remote('workspacePathApplications')];
|
|
144
162
|
_rename_decorators = [Remote('rename')];
|
|
145
163
|
_fork_decorators = [Remote('fork')];
|
|
164
|
+
_promptModelConfig_decorators = [Remote('promptModelConfig')];
|
|
146
165
|
_prompt_decorators = [Remote('prompt')];
|
|
147
166
|
_attachment_decorators = [Remote('attachment')];
|
|
148
167
|
_updateQueue_decorators = [Remote('updateQueue')];
|
|
@@ -154,14 +173,23 @@ let SessionController = (() => {
|
|
|
154
173
|
__esDecorate(this, null, _list_decorators, { kind: "method", name: "list", static: false, private: false, access: { has: obj => "list" in obj, get: obj => obj.list }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
155
174
|
__esDecorate(this, null, _search_decorators, { kind: "method", name: "search", static: false, private: false, access: { has: obj => "search" in obj, get: obj => obj.search }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
156
175
|
__esDecorate(this, null, _create_decorators, { kind: "method", name: "create", static: false, private: false, access: { has: obj => "create" in obj, get: obj => obj.create }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
176
|
+
__esDecorate(this, null, _workspaceAccess_decorators, { kind: "method", name: "workspaceAccess", static: false, private: false, access: { has: obj => "workspaceAccess" in obj, get: obj => obj.workspaceAccess }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
177
|
+
__esDecorate(this, null, _setWorkspaceAccess_decorators, { kind: "method", name: "setWorkspaceAccess", static: false, private: false, access: { has: obj => "setWorkspaceAccess" in obj, get: obj => obj.setWorkspaceAccess }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
178
|
+
__esDecorate(this, null, _toolCatalog_decorators, { kind: "method", name: "toolCatalog", static: false, private: false, access: { has: obj => "toolCatalog" in obj, get: obj => obj.toolCatalog }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
179
|
+
__esDecorate(this, null, _release_decorators, { kind: "method", name: "release", static: false, private: false, access: { has: obj => "release" in obj, get: obj => obj.release }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
180
|
+
__esDecorate(this, null, _setLoginToken_decorators, { kind: "method", name: "setLoginToken", static: false, private: false, access: { has: obj => "setLoginToken" in obj, get: obj => obj.setLoginToken }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
181
|
+
__esDecorate(this, null, _clearLoginToken_decorators, { kind: "method", name: "clearLoginToken", static: false, private: false, access: { has: obj => "clearLoginToken" in obj, get: obj => obj.clearLoginToken }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
182
|
+
__esDecorate(this, null, _resume_decorators, { kind: "method", name: "resume", static: false, private: false, access: { has: obj => "resume" in obj, get: obj => obj.resume }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
157
183
|
__esDecorate(this, null, _selectModel_decorators, { kind: "method", name: "selectModel", static: false, private: false, access: { has: obj => "selectModel" in obj, get: obj => obj.selectModel }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
158
184
|
__esDecorate(this, null, _initializeDefaultModel_decorators, { kind: "method", name: "initializeDefaultModel", static: false, private: false, access: { has: obj => "initializeDefaultModel" in obj, get: obj => obj.initializeDefaultModel }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
159
185
|
__esDecorate(this, null, _modelCatalog_decorators, { kind: "method", name: "modelCatalog", static: false, private: false, access: { has: obj => "modelCatalog" in obj, get: obj => obj.modelCatalog }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
186
|
+
__esDecorate(this, null, _refreshModelCatalog_decorators, { kind: "method", name: "refreshModelCatalog", static: false, private: false, access: { has: obj => "refreshModelCatalog" in obj, get: obj => obj.refreshModelCatalog }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
160
187
|
__esDecorate(this, null, _canOpenWorkspacePath_decorators, { kind: "method", name: "canOpenWorkspacePath", static: false, private: false, access: { has: obj => "canOpenWorkspacePath" in obj, get: obj => obj.canOpenWorkspacePath }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
161
188
|
__esDecorate(this, null, _openWorkspacePath_decorators, { kind: "method", name: "openWorkspacePath", static: false, private: false, access: { has: obj => "openWorkspacePath" in obj, get: obj => obj.openWorkspacePath }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
162
189
|
__esDecorate(this, null, _workspacePathApplications_decorators, { kind: "method", name: "workspacePathApplications", static: false, private: false, access: { has: obj => "workspacePathApplications" in obj, get: obj => obj.workspacePathApplications }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
163
190
|
__esDecorate(this, null, _rename_decorators, { kind: "method", name: "rename", static: false, private: false, access: { has: obj => "rename" in obj, get: obj => obj.rename }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
164
191
|
__esDecorate(this, null, _fork_decorators, { kind: "method", name: "fork", static: false, private: false, access: { has: obj => "fork" in obj, get: obj => obj.fork }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
192
|
+
__esDecorate(this, null, _promptModelConfig_decorators, { kind: "method", name: "promptModelConfig", static: false, private: false, access: { has: obj => "promptModelConfig" in obj, get: obj => obj.promptModelConfig }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
165
193
|
__esDecorate(this, null, _prompt_decorators, { kind: "method", name: "prompt", static: false, private: false, access: { has: obj => "prompt" in obj, get: obj => obj.prompt }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
166
194
|
__esDecorate(this, null, _attachment_decorators, { kind: "method", name: "attachment", static: false, private: false, access: { has: obj => "attachment" in obj, get: obj => obj.attachment }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
167
195
|
__esDecorate(this, null, _updateQueue_decorators, { kind: "method", name: "updateQueue", static: false, private: false, access: { has: obj => "updateQueue" in obj, get: obj => obj.updateQueue }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
@@ -207,6 +235,8 @@ let SessionController = (() => {
|
|
|
207
235
|
constructor(ctx, config, internals = {}) {
|
|
208
236
|
super(ctx, 'sessionController', { namespace: 'session' });
|
|
209
237
|
installModelSelectionProjection(ctx);
|
|
238
|
+
// Desktop-injected login token store: backed by the credentials service.
|
|
239
|
+
ctx.plugin(LoginTokenStore);
|
|
210
240
|
this.agents = new ApiSessionAgentController(ctx);
|
|
211
241
|
this.commands = new SessionCommandController(ctx, this.agents, process.cwd());
|
|
212
242
|
ctx.effect(() => ctx.fileUploads.registerAgentResolver(async (sessionId) => {
|
|
@@ -334,7 +364,14 @@ let SessionController = (() => {
|
|
|
334
364
|
* @returns visible Session summaries ordered by activity.
|
|
335
365
|
*/
|
|
336
366
|
async list(_request, signal) {
|
|
337
|
-
|
|
367
|
+
try {
|
|
368
|
+
return { items: await this.listState.list(signal) };
|
|
369
|
+
}
|
|
370
|
+
catch (error) {
|
|
371
|
+
if (error instanceof RemoteError)
|
|
372
|
+
throw error;
|
|
373
|
+
throw new RemoteError('session/list-failed', 'failed to list sessions', {});
|
|
374
|
+
}
|
|
338
375
|
}
|
|
339
376
|
/**
|
|
340
377
|
* Search visible Session content without resuming an Agent.
|
|
@@ -343,7 +380,14 @@ let SessionController = (() => {
|
|
|
343
380
|
* @returns authorized bounded Session search results.
|
|
344
381
|
*/
|
|
345
382
|
search(request, signal) {
|
|
346
|
-
|
|
383
|
+
try {
|
|
384
|
+
return this.listState.search(request.query, signal);
|
|
385
|
+
}
|
|
386
|
+
catch (error) {
|
|
387
|
+
if (error instanceof RemoteError)
|
|
388
|
+
throw error;
|
|
389
|
+
throw new RemoteError('session/search-failed', 'failed to search sessions', {});
|
|
390
|
+
}
|
|
347
391
|
}
|
|
348
392
|
/**
|
|
349
393
|
* Create or idempotently adopt one ordinary Session.
|
|
@@ -351,16 +395,156 @@ let SessionController = (() => {
|
|
|
351
395
|
* @returns the Session identity and resolved preset when configured.
|
|
352
396
|
*/
|
|
353
397
|
async create(request) {
|
|
398
|
+
this.ctx.logger.info('session-controller: create', { sessionId: request.sessionId, cwd: request.cwd, workspaceId: request.workspaceId });
|
|
354
399
|
if (request.sessionId !== undefined)
|
|
355
400
|
await this.assertNotDeleted(request.sessionId);
|
|
356
401
|
return this.commands.create(request);
|
|
357
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* Read the effective Runtime sandbox and approval policy for a Session.
|
|
405
|
+
* @param request - existing Session identity; cold Sessions may resume.
|
|
406
|
+
* @returns the active sandbox, durable preset name and approval mode.
|
|
407
|
+
*/
|
|
408
|
+
async workspaceAccess(request) {
|
|
409
|
+
if (!request.sessionId)
|
|
410
|
+
throw new RemoteError('gateway/bad-request', 'sessionId is required', {});
|
|
411
|
+
await this.assertNotDeleted(request.sessionId);
|
|
412
|
+
const result = await this.agents.resolveAgent(request.sessionId);
|
|
413
|
+
if ('error' in result)
|
|
414
|
+
throw result.error;
|
|
415
|
+
const presets = this.ctx.get('permissionPresets');
|
|
416
|
+
if (!presets)
|
|
417
|
+
throw new RemoteError('session/capability-unavailable', 'Permission presets are not composed', {});
|
|
418
|
+
const preset = presets.current(result.agent.session);
|
|
419
|
+
const spec = presets.resolve(preset);
|
|
420
|
+
return { mode: spec.sandbox, preset, approval: spec.approval };
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Change the durable permission state used by the Web picker, between tasks only.
|
|
424
|
+
* @param request - existing Session identity and requested workspace access.
|
|
425
|
+
* @returns the actual policy after persistence; active work or queued inputs are refused.
|
|
426
|
+
*/
|
|
427
|
+
async setWorkspaceAccess(request) {
|
|
428
|
+
if (!['read-only', 'workspace-write', 'danger-full-access'].includes(request.mode))
|
|
429
|
+
throw new RemoteError('gateway/bad-request', 'Unknown workspace access', {});
|
|
430
|
+
await this.assertNotDeleted(request.sessionId);
|
|
431
|
+
const result = await this.agents.resolveAgent(request.sessionId);
|
|
432
|
+
if ('error' in result)
|
|
433
|
+
throw result.error;
|
|
434
|
+
const agent = result.agent;
|
|
435
|
+
return this.agents.serializeImageAdmission(agent, async () => {
|
|
436
|
+
this.agents.assertWritable(agent);
|
|
437
|
+
if (agent.status !== 'idle' || agent.inbox.nextStep.length || agent.inbox.nextTurn.length)
|
|
438
|
+
throw new RemoteError('session/agent-busy', 'Stop or finish the task before changing workspace access', { reason: String(agent.id) });
|
|
439
|
+
const presets = this.ctx.get('permissionPresets');
|
|
440
|
+
if (!presets)
|
|
441
|
+
throw new RemoteError('session/capability-unavailable', 'Permission presets are not composed', {});
|
|
442
|
+
presets.set(agent.session, request.mode);
|
|
443
|
+
return this.workspaceAccess({ sessionId: request.sessionId });
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Read the executable Tool names in one resolved Agent scope.
|
|
448
|
+
* @param request - existing Session identity; cold Sessions may resume.
|
|
449
|
+
* @returns enabled Tool names and descriptions, without execution callbacks.
|
|
450
|
+
*/
|
|
451
|
+
async toolCatalog(request) {
|
|
452
|
+
if (!request.sessionId)
|
|
453
|
+
throw new RemoteError('gateway/bad-request', 'sessionId is required', {});
|
|
454
|
+
await this.assertNotDeleted(request.sessionId);
|
|
455
|
+
const result = await this.agents.resolveAgent(request.sessionId);
|
|
456
|
+
if ('error' in result)
|
|
457
|
+
throw result.error;
|
|
458
|
+
const tools = this.ctx.get('tools');
|
|
459
|
+
if (!tools)
|
|
460
|
+
throw new RemoteError('session/capability-unavailable', 'Tools are not composed', {});
|
|
461
|
+
return tools.schemas(result.agent).map(({ name, description }) => ({ name, description }));
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Release an idle Session's writer without stopping other Sessions.
|
|
465
|
+
* @param request - ordinary Session identity owned by this controller.
|
|
466
|
+
* @returns acknowledgement after persistence has drained and unlocked.
|
|
467
|
+
*/
|
|
468
|
+
async release(request) {
|
|
469
|
+
try {
|
|
470
|
+
await this.agents.releaseSession(request.sessionId);
|
|
471
|
+
return { released: true };
|
|
472
|
+
}
|
|
473
|
+
catch (error) {
|
|
474
|
+
if (error instanceof RemoteError)
|
|
475
|
+
throw error;
|
|
476
|
+
throw new RemoteError('session/release-failed', `failed to release session "${request.sessionId}"`, { sessionId: request.sessionId });
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Inject a ChatCode OAuth grant into the credentials service.
|
|
481
|
+
*
|
|
482
|
+
* The desktop AI workbench calls this after completing OAuth to provide the
|
|
483
|
+
* access token and optional metadata (refreshToken, expiry, user info).
|
|
484
|
+
* The grant is stored in the credentials service (persisted to disk, encrypted)
|
|
485
|
+
* using the same credential key as ChatCodeAuthService, so the auth bundle
|
|
486
|
+
* automatically reads it without any modification.
|
|
487
|
+
*
|
|
488
|
+
* Token expiry is detected by API 401 responses, not by local clock.
|
|
489
|
+
* When the token expires, the LLM adapter returns API 401 naturally.
|
|
490
|
+
*
|
|
491
|
+
* @param request - ChatCode OAuth grant fields.
|
|
492
|
+
* @returns confirmation.
|
|
493
|
+
*/
|
|
494
|
+
async setLoginToken(request) {
|
|
495
|
+
if (!request.accessToken || typeof request.accessToken !== 'string') {
|
|
496
|
+
throw new RemoteError('gateway/bad-request', 'accessToken is required', {});
|
|
497
|
+
}
|
|
498
|
+
try {
|
|
499
|
+
await this.ctx.loginTokenStore.set(request);
|
|
500
|
+
this.ctx.logger.info('session-controller: setLoginToken', { hasRefreshToken: request.refreshToken !== undefined });
|
|
501
|
+
return { ok: true };
|
|
502
|
+
}
|
|
503
|
+
catch (error) {
|
|
504
|
+
this.ctx.logger.error('session-controller: setLoginToken failed', { error: String(error) });
|
|
505
|
+
if (error instanceof RemoteError)
|
|
506
|
+
throw error;
|
|
507
|
+
throw new RemoteError('session/login-token-store-failed', `login token could not be stored: ${String(error)}`, {});
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Remove the ChatCode OAuth token from the credentials service.
|
|
512
|
+
* @param _request - unused (no params needed).
|
|
513
|
+
* @returns confirmation.
|
|
514
|
+
*/
|
|
515
|
+
async clearLoginToken(_request) {
|
|
516
|
+
try {
|
|
517
|
+
await this.ctx.loginTokenStore.delete();
|
|
518
|
+
this.ctx.logger.info('session-controller: clearLoginToken');
|
|
519
|
+
return { ok: true };
|
|
520
|
+
}
|
|
521
|
+
catch (error) {
|
|
522
|
+
this.ctx.logger.error('session-controller: clearLoginToken failed', { error: String(error) });
|
|
523
|
+
if (error instanceof RemoteError)
|
|
524
|
+
throw error;
|
|
525
|
+
throw new RemoteError('session/login-token-delete-failed', `login token could not be deleted: ${String(error)}`, {});
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Resume an existing Session, optionally with provider/model overrides.
|
|
530
|
+
* The Session must already exist in persistence. Desktop AI workbenches use
|
|
531
|
+
* this after Runtime restart to re-inject the model selection.
|
|
532
|
+
* @param request - Session identity and optional provider/model override.
|
|
533
|
+
* @returns the Session identity and resolved model selection.
|
|
534
|
+
*/
|
|
535
|
+
resume(request) {
|
|
536
|
+
if (!request.sessionId)
|
|
537
|
+
throw new RemoteError('gateway/bad-request', 'sessionId is required', {});
|
|
538
|
+
this.ctx.logger.info('session-controller: resume', { sessionId: request.sessionId });
|
|
539
|
+
return this.assertNotDeleted(request.sessionId).then(() => this.commands.resume(request));
|
|
540
|
+
}
|
|
358
541
|
/**
|
|
359
542
|
* Select a model after explicitly resuming the Session and awaiting default persistence.
|
|
360
543
|
* @param request - Session identity and requested model selection.
|
|
361
544
|
* @returns the normalized selection after the shared save and Session selection succeed.
|
|
362
545
|
*/
|
|
363
546
|
selectModel(request) {
|
|
547
|
+
this.ctx.logger.info('session-controller: selectModel', { sessionId: request.sessionId, provider: request.provider, model: request.model });
|
|
364
548
|
return this.assertNotDeleted(request.sessionId).then(() => this.commands.selectModel(request));
|
|
365
549
|
}
|
|
366
550
|
/**
|
|
@@ -388,6 +572,24 @@ let SessionController = (() => {
|
|
|
388
572
|
* @returns provider-grouped models, the deployment default, and isolated provider failures.
|
|
389
573
|
*/
|
|
390
574
|
modelCatalog() {
|
|
575
|
+
try {
|
|
576
|
+
return buildModelCatalog(this.ctx);
|
|
577
|
+
}
|
|
578
|
+
catch (error) {
|
|
579
|
+
if (error instanceof RemoteError)
|
|
580
|
+
throw error;
|
|
581
|
+
throw new RemoteError('session/model-catalog-failed', 'failed to build model catalog', {});
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
/** Refresh account-owned catalogs before returning safe model names and routes.
|
|
585
|
+
* @returns the current registry catalog; refresh failures reject without changing Session selection.
|
|
586
|
+
*/
|
|
587
|
+
async refreshModelCatalog() {
|
|
588
|
+
this.ctx.logger.info('session-controller: refreshModelCatalog', {});
|
|
589
|
+
const catalog = this.ctx.get('chatcodeModelCatalog');
|
|
590
|
+
if (catalog === undefined)
|
|
591
|
+
throw new RemoteError('gateway/internal', 'ChatCode model catalog service is unavailable', {});
|
|
592
|
+
await catalog.refresh();
|
|
391
593
|
return buildModelCatalog(this.ctx);
|
|
392
594
|
}
|
|
393
595
|
/**
|
|
@@ -395,7 +597,12 @@ let SessionController = (() => {
|
|
|
395
597
|
* @returns true when the matching open operation is available.
|
|
396
598
|
*/
|
|
397
599
|
canOpenWorkspacePath() {
|
|
398
|
-
|
|
600
|
+
try {
|
|
601
|
+
return this.canOpenPath();
|
|
602
|
+
}
|
|
603
|
+
catch {
|
|
604
|
+
return false;
|
|
605
|
+
}
|
|
399
606
|
}
|
|
400
607
|
/**
|
|
401
608
|
* Describe the serving desktop for authenticated file-action routes.
|
|
@@ -472,6 +679,7 @@ let SessionController = (() => {
|
|
|
472
679
|
* @returns the accepted title and durable event sequence.
|
|
473
680
|
*/
|
|
474
681
|
rename(request) {
|
|
682
|
+
this.ctx.logger.info('session-controller: rename', { sessionId: request.sessionId });
|
|
475
683
|
return this.assertNotDeleted(request.sessionId).then(() => this.commands.rename(request));
|
|
476
684
|
}
|
|
477
685
|
/**
|
|
@@ -482,8 +690,16 @@ let SessionController = (() => {
|
|
|
482
690
|
* @returns the new Session identity.
|
|
483
691
|
*/
|
|
484
692
|
fork(request) {
|
|
693
|
+
this.ctx.logger.info('session-controller: fork', { sessionId: request.sessionId });
|
|
485
694
|
return this.assertNotDeleted(request.sessionId).then(() => this.commands.fork(request));
|
|
486
695
|
}
|
|
696
|
+
/**
|
|
697
|
+
* Advertise support for request-local model configuration.
|
|
698
|
+
* @returns Supported model configuration version.
|
|
699
|
+
*/
|
|
700
|
+
promptModelConfig() {
|
|
701
|
+
return { version: 1, requestApiKey: true, unifiedOptions: true };
|
|
702
|
+
}
|
|
487
703
|
/**
|
|
488
704
|
* Admit one prompt after explicitly resuming its Session.
|
|
489
705
|
* @param request - Session identity, prompt content, source metadata, and delivery mode.
|
|
@@ -492,6 +708,7 @@ let SessionController = (() => {
|
|
|
492
708
|
*/
|
|
493
709
|
prompt(request, signal) {
|
|
494
710
|
signal.throwIfAborted();
|
|
711
|
+
this.ctx.logger.info('session-controller: prompt', { sessionId: request.sessionId, mode: request.mode });
|
|
495
712
|
return this.assertNotDeleted(request.sessionId).then(() => this.commands.prompt(request));
|
|
496
713
|
}
|
|
497
714
|
/**
|
|
@@ -516,6 +733,7 @@ let SessionController = (() => {
|
|
|
516
733
|
* @returns acknowledgement that cancellation was requested.
|
|
517
734
|
*/
|
|
518
735
|
cancel(request) {
|
|
736
|
+
this.ctx.logger.info('session-controller: cancel', { sessionId: request.sessionId });
|
|
519
737
|
return this.commands.cancel(request);
|
|
520
738
|
}
|
|
521
739
|
/**
|
|
@@ -551,7 +769,7 @@ let SessionController = (() => {
|
|
|
551
769
|
async assertNotDeleted(sessionId) {
|
|
552
770
|
await this.ctx.workspaceRegistry.refresh();
|
|
553
771
|
if (this.ctx.workspaceRegistry.deletedSessionIds.includes(sessionId)) {
|
|
554
|
-
throw new RemoteError('session/
|
|
772
|
+
throw new RemoteError('session/deleted', 'Session has been permanently deleted', { sessionId });
|
|
555
773
|
}
|
|
556
774
|
}
|
|
557
775
|
/**
|
|
@@ -601,8 +819,14 @@ let SessionController = (() => {
|
|
|
601
819
|
* @param signal - cancellation owned by the Remote stream carrier.
|
|
602
820
|
* @returns one complete baseline followed by live replacement frames.
|
|
603
821
|
*/
|
|
604
|
-
control(signal) {
|
|
605
|
-
|
|
822
|
+
async *control(signal) {
|
|
823
|
+
try {
|
|
824
|
+
yield* this.controlState.control(signal);
|
|
825
|
+
}
|
|
826
|
+
catch (error) {
|
|
827
|
+
this.ctx.logger.error('session-controller: control stream failed', { error: String(error) });
|
|
828
|
+
throw error;
|
|
829
|
+
}
|
|
606
830
|
}
|
|
607
831
|
};
|
|
608
832
|
})();
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Login token store for desktop-injected ChatCode OAuth tokens.
|
|
3
|
+
*
|
|
4
|
+
* Stores login tokens (obtained by the desktop AI workbench via OAuth) into
|
|
5
|
+
* the existing credentials service as GrantRecords, using the same credential
|
|
6
|
+
* key that ChatCodeAuthService reads from. This means the existing auth bundle
|
|
7
|
+
* automatically picks up desktop-injected tokens without modification.
|
|
8
|
+
*
|
|
9
|
+
* The storage format matches ChatCodeAuthService's AccountState:
|
|
10
|
+
* payload: { version: 2, grant: { version: 1, accessToken, refreshToken?, ... } }
|
|
11
|
+
*
|
|
12
|
+
* Runtime crash → token is preserved in the credentials service on disk.
|
|
13
|
+
* Desktop does NOT need to re-prompt the user for OAuth.
|
|
14
|
+
*
|
|
15
|
+
* @module @deepseek-ai/dsh-login-token-store
|
|
16
|
+
*/
|
|
17
|
+
import { Service } from '@deepseek-ai/cordis';
|
|
18
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
19
|
+
declare module '@deepseek-ai/cordis' {
|
|
20
|
+
interface Context {
|
|
21
|
+
/** Login token store for desktop-injected ChatCode OAuth tokens. */
|
|
22
|
+
loginTokenStore: LoginTokenStore;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/** Grant fields the desktop may provide after completing OAuth. */
|
|
26
|
+
export interface DesktopGrantInput {
|
|
27
|
+
accessToken: string;
|
|
28
|
+
refreshToken?: string;
|
|
29
|
+
longToken?: string;
|
|
30
|
+
expiresAtMs?: number;
|
|
31
|
+
userName?: string;
|
|
32
|
+
emailAddress?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Owns the login token store backed by the credentials service.
|
|
36
|
+
*
|
|
37
|
+
* Tokens are stored as GrantRecords in the same credential key used by
|
|
38
|
+
* ChatCodeAuthService. This ensures that status/accessToken/refreshToken
|
|
39
|
+
* automatically reads desktop-injected tokens without any modification to
|
|
40
|
+
* the auth bundle.
|
|
41
|
+
*/
|
|
42
|
+
export declare class LoginTokenStore extends Service {
|
|
43
|
+
constructor(ctx: Context);
|
|
44
|
+
/**
|
|
45
|
+
* Store a ChatCode OAuth grant with accessToken and optional metadata.
|
|
46
|
+
* Replaces any existing grant for the same key using ChatCodeAuthService's
|
|
47
|
+
* payload format: { version: 2, grant: { version: 1, accessToken, ... } }.
|
|
48
|
+
*
|
|
49
|
+
* refreshToken defaults to accessToken when not provided, so ChatCodeAuthService
|
|
50
|
+
* can use it as a self-refresh credential when the provider does not issue a
|
|
51
|
+
* separate refresh token (implicit/OAuth PKCE flows).
|
|
52
|
+
*/
|
|
53
|
+
set(input: DesktopGrantInput): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Remove the ChatCode OAuth token from the credentials service.
|
|
56
|
+
*/
|
|
57
|
+
delete(): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Check whether a ChatCode OAuth token exists.
|
|
60
|
+
*/
|
|
61
|
+
has(): Promise<boolean>;
|
|
62
|
+
}
|
|
63
|
+
export default LoginTokenStore;
|
|
64
|
+
//# sourceMappingURL=login-token-store.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Login token store for desktop-injected ChatCode OAuth tokens.
|
|
3
|
+
*
|
|
4
|
+
* Stores login tokens (obtained by the desktop AI workbench via OAuth) into
|
|
5
|
+
* the existing credentials service as GrantRecords, using the same credential
|
|
6
|
+
* key that ChatCodeAuthService reads from. This means the existing auth bundle
|
|
7
|
+
* automatically picks up desktop-injected tokens without modification.
|
|
8
|
+
*
|
|
9
|
+
* The storage format matches ChatCodeAuthService's AccountState:
|
|
10
|
+
* payload: { version: 2, grant: { version: 1, accessToken, refreshToken?, ... } }
|
|
11
|
+
*
|
|
12
|
+
* Runtime crash → token is preserved in the credentials service on disk.
|
|
13
|
+
* Desktop does NOT need to re-prompt the user for OAuth.
|
|
14
|
+
*
|
|
15
|
+
* @module @deepseek-ai/dsh-login-token-store
|
|
16
|
+
*/
|
|
17
|
+
import { Service } from '@deepseek-ai/cordis';
|
|
18
|
+
import { credentialKey } from '@deepseek-ai/dsh-credentials';
|
|
19
|
+
/**
|
|
20
|
+
* The ChatCode credential key shared with ChatCodeAuthService.
|
|
21
|
+
* Must match cco-llm-chatcode-config/src/chatcode-auth.ts CHATCODE_CREDENTIAL_KEY.
|
|
22
|
+
*/
|
|
23
|
+
const CHATCODE_CREDENTIAL_KEY = credentialKey('chatcode-auth', 'default');
|
|
24
|
+
/**
|
|
25
|
+
* Owns the login token store backed by the credentials service.
|
|
26
|
+
*
|
|
27
|
+
* Tokens are stored as GrantRecords in the same credential key used by
|
|
28
|
+
* ChatCodeAuthService. This ensures that status/accessToken/refreshToken
|
|
29
|
+
* automatically reads desktop-injected tokens without any modification to
|
|
30
|
+
* the auth bundle.
|
|
31
|
+
*/
|
|
32
|
+
export class LoginTokenStore extends Service {
|
|
33
|
+
constructor(ctx) {
|
|
34
|
+
super(ctx, 'loginTokenStore');
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Store a ChatCode OAuth grant with accessToken and optional metadata.
|
|
38
|
+
* Replaces any existing grant for the same key using ChatCodeAuthService's
|
|
39
|
+
* payload format: { version: 2, grant: { version: 1, accessToken, ... } }.
|
|
40
|
+
*
|
|
41
|
+
* refreshToken defaults to accessToken when not provided, so ChatCodeAuthService
|
|
42
|
+
* can use it as a self-refresh credential when the provider does not issue a
|
|
43
|
+
* separate refresh token (implicit/OAuth PKCE flows).
|
|
44
|
+
*/
|
|
45
|
+
async set(input) {
|
|
46
|
+
await this.ctx.credentials.modifyRecord(CHATCODE_CREDENTIAL_KEY, async () => {
|
|
47
|
+
return {
|
|
48
|
+
kind: 'grant',
|
|
49
|
+
payload: {
|
|
50
|
+
version: 2,
|
|
51
|
+
grant: {
|
|
52
|
+
version: 1,
|
|
53
|
+
accessToken: input.accessToken,
|
|
54
|
+
refreshToken: input.refreshToken ?? input.accessToken,
|
|
55
|
+
...(input.longToken === undefined ? {} : { longToken: input.longToken }),
|
|
56
|
+
...(input.expiresAtMs === undefined ? {} : { expiresAtMs: input.expiresAtMs }),
|
|
57
|
+
...(input.userName === undefined ? {} : { userName: input.userName }),
|
|
58
|
+
...(input.emailAddress === undefined ? {} : { emailAddress: input.emailAddress }),
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Remove the ChatCode OAuth token from the credentials service.
|
|
66
|
+
*/
|
|
67
|
+
async delete() {
|
|
68
|
+
await this.ctx.credentials.deleteRecord(CHATCODE_CREDENTIAL_KEY);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check whether a ChatCode OAuth token exists.
|
|
72
|
+
*/
|
|
73
|
+
async has() {
|
|
74
|
+
const record = await this.ctx.credentials.readRecord(CHATCODE_CREDENTIAL_KEY);
|
|
75
|
+
return record !== undefined;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export default LoginTokenStore;
|
|
79
|
+
//# sourceMappingURL=login-token-store.js.map
|
package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Passive Session state, coalesced observations and quiescence waits. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { HistoryController } from '../history/controller.ts';
|
|
4
|
+
import type { SessionState, SessionStateRequest, SessionWaitRequest, SessionWaitValue } from '../types.ts';
|
|
5
|
+
/** Reads and waits without activating or cancelling Session execution. */
|
|
6
|
+
export declare class StateController {
|
|
7
|
+
private readonly ctx;
|
|
8
|
+
private readonly historyController;
|
|
9
|
+
/**
|
|
10
|
+
* @param ctx - live Session and pending Remote event services.
|
|
11
|
+
* @param historyController - passive read entry used for cold state and its bounded output.
|
|
12
|
+
*/
|
|
13
|
+
constructor(ctx: Context, historyController: HistoryController);
|
|
14
|
+
/**
|
|
15
|
+
* Read passive execution and pending-input state.
|
|
16
|
+
* @param request - Session identity.
|
|
17
|
+
* @param signal - read cancellation.
|
|
18
|
+
* @returns current passive state.
|
|
19
|
+
*/
|
|
20
|
+
state(request: SessionStateRequest, signal: AbortSignal): Promise<SessionState>;
|
|
21
|
+
/**
|
|
22
|
+
* Observe complete passive state replacements.
|
|
23
|
+
* @param request - Session identity.
|
|
24
|
+
* @param signal - observation cancellation.
|
|
25
|
+
* @returns complete state replacements, starting with the current state.
|
|
26
|
+
*/
|
|
27
|
+
observeState(request: SessionStateRequest, signal: AbortSignal): AsyncIterable<SessionState>;
|
|
28
|
+
/**
|
|
29
|
+
* Wait for quiescence, pending input, or the deadline without cancelling execution.
|
|
30
|
+
* @param request - Session identity, timeout and assistant output window.
|
|
31
|
+
* @param signal - cancellation of this wait only, never of Agent execution.
|
|
32
|
+
* @returns the stopping reason and last complete state; no state before timeout is an error.
|
|
33
|
+
*/
|
|
34
|
+
wait(request: SessionWaitRequest, signal: AbortSignal): Promise<SessionWaitValue>;
|
|
35
|
+
private listen;
|
|
36
|
+
/**
|
|
37
|
+
* @param sessionId - Session to sample.
|
|
38
|
+
* @param signal - read cancellation.
|
|
39
|
+
* @param retried - whether a live source already redirected this read once.
|
|
40
|
+
* @returns one passive state sample.
|
|
41
|
+
*/
|
|
42
|
+
private readState;
|
|
43
|
+
private pendingInput;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=controller.d.ts.map
|