@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
package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.d.ts
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/** Passive per-Session streams; subscriptions never acquire Session observations. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { Session, SessionEvent, SessionId } from '@deepseek-ai/dsh-session';
|
|
4
|
+
import type { SessionProjectionChange, SessionEventEntry } from '../types.ts';
|
|
5
|
+
/** Raw history notifications buffered before an opening cut is known. */
|
|
6
|
+
export type EventItem = {
|
|
7
|
+
readonly type: 'event';
|
|
8
|
+
readonly session: Session;
|
|
9
|
+
readonly event: SessionEvent;
|
|
10
|
+
} | {
|
|
11
|
+
readonly type: 'created';
|
|
12
|
+
readonly session: Session;
|
|
13
|
+
readonly end: number;
|
|
14
|
+
};
|
|
15
|
+
/** A single subscription buffers before either consumption mode starts. */
|
|
16
|
+
export declare class EventListener implements Disposable {
|
|
17
|
+
private readonly buffer;
|
|
18
|
+
private readonly disposes;
|
|
19
|
+
private firstReceivedSeq;
|
|
20
|
+
private nextExpectedSeq;
|
|
21
|
+
/**
|
|
22
|
+
* @param ctx - context owning the event registrations.
|
|
23
|
+
* @param sessionId - Session whose notifications are emitted.
|
|
24
|
+
* @param signal - cancellation that wakes consumers.
|
|
25
|
+
* @param queue - optional caller-owned buffer; only an internally created buffer is disposed here.
|
|
26
|
+
*/
|
|
27
|
+
constructor(ctx: Context, sessionId: SessionId, signal: AbortSignal, queue?: Pick<ListenerBuffer<SessionEventEntry>, 'createInput' | 'capture'>);
|
|
28
|
+
/** Consume notifications without reading history.
|
|
29
|
+
* @returns event frames from the first received event, without loading a baseline. */
|
|
30
|
+
events(): AsyncIterable<SessionEventEntry>;
|
|
31
|
+
/** Set the inclusive opening cut for buffered history notifications.
|
|
32
|
+
* @param cursor - snapshot cut set before consuming the queue. */
|
|
33
|
+
setCursor(cursor: number): void;
|
|
34
|
+
private transform;
|
|
35
|
+
private iterate;
|
|
36
|
+
private recordFirst;
|
|
37
|
+
[Symbol.dispose](): void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Select the uncovered events represented by one notification.
|
|
41
|
+
* @param item - one buffered notification.
|
|
42
|
+
* @param next - next required seq, or undefined before the first event.
|
|
43
|
+
* @returns uncovered events and the next required seq without acquiring an observation.
|
|
44
|
+
*/
|
|
45
|
+
export declare function eventItem(item: EventItem, next?: number): {
|
|
46
|
+
events: readonly SessionEvent[];
|
|
47
|
+
next: number | undefined;
|
|
48
|
+
};
|
|
49
|
+
/** Projection changes of one Session, one change per committed event that changed a projection. */
|
|
50
|
+
export declare class ProjectionListener implements Disposable {
|
|
51
|
+
private readonly buffer;
|
|
52
|
+
/**
|
|
53
|
+
* @param ctx - context owning projection notifications.
|
|
54
|
+
* @param sessionId - Session whose notifications are emitted.
|
|
55
|
+
* @param signal - cancellation that removes registrations and wakes consumers.
|
|
56
|
+
*/
|
|
57
|
+
constructor(ctx: Context, sessionId: SessionId, signal: AbortSignal);
|
|
58
|
+
/** Consume per-event projection changes.
|
|
59
|
+
* @returns validated change frames, one per committed event; projection seqs need not be contiguous. */
|
|
60
|
+
changes(): AsyncIterable<SessionProjectionChange>;
|
|
61
|
+
[Symbol.dispose](): void;
|
|
62
|
+
}
|
|
63
|
+
/** Owns buffering, callback failure and registration cleanup for one consumer. */
|
|
64
|
+
export declare class ListenerBuffer<T> implements Disposable {
|
|
65
|
+
private readonly values;
|
|
66
|
+
private readonly transformIds;
|
|
67
|
+
private readonly transforms;
|
|
68
|
+
private readonly cleanup;
|
|
69
|
+
private wake;
|
|
70
|
+
private closed;
|
|
71
|
+
private failure;
|
|
72
|
+
private consumed;
|
|
73
|
+
constructor(ctx: Context, signal: AbortSignal);
|
|
74
|
+
/**
|
|
75
|
+
* Register cleanup, or run it immediately when already closed.
|
|
76
|
+
* @param dispose - synchronous cleanup.
|
|
77
|
+
*/
|
|
78
|
+
own(dispose: () => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* Contain producer failure and wake the consumer with that failure.
|
|
81
|
+
* @param action - synchronous producer operation.
|
|
82
|
+
*/
|
|
83
|
+
capture(action: () => void): void;
|
|
84
|
+
/**
|
|
85
|
+
* Register a dequeue transform and obtain its write-only input.
|
|
86
|
+
* @param transform - conversion bound once and evaluated when each input is dequeued.
|
|
87
|
+
* @returns a write-only input sharing this buffer's storage and lifetime.
|
|
88
|
+
* @throws when this buffer is already closed.
|
|
89
|
+
*/
|
|
90
|
+
createInput<Input>(transform: (item: Input) => Iterable<T>): {
|
|
91
|
+
append(item: Input): void;
|
|
92
|
+
prepend(item: Input): void;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Consume queued values once, releasing the buffer when iteration ends.
|
|
96
|
+
* @returns transformed output values.
|
|
97
|
+
*/
|
|
98
|
+
items(): AsyncIterable<T>;
|
|
99
|
+
private throwIfFailed;
|
|
100
|
+
/** @returns whether disposal ended this buffer while a transform was yielding. */
|
|
101
|
+
private isClosed;
|
|
102
|
+
private notify;
|
|
103
|
+
[Symbol.dispose](): void;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=listener.d.ts.map
|
package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/** Passive per-Session streams; subscriptions never acquire Session observations. */
|
|
2
|
+
import { Deque } from '@deepseek-ai/dsh-deque';
|
|
3
|
+
import { SessionLogOffset } from '@deepseek-ai/dsh-session';
|
|
4
|
+
import { RemoteError } from '@deepseek-ai/dsh-typert-protocol';
|
|
5
|
+
import { entryFor } from "../history.js";
|
|
6
|
+
/** A single subscription buffers before either consumption mode starts. */
|
|
7
|
+
export class EventListener {
|
|
8
|
+
buffer;
|
|
9
|
+
disposes = [];
|
|
10
|
+
firstReceivedSeq;
|
|
11
|
+
nextExpectedSeq;
|
|
12
|
+
/**
|
|
13
|
+
* @param ctx - context owning the event registrations.
|
|
14
|
+
* @param sessionId - Session whose notifications are emitted.
|
|
15
|
+
* @param signal - cancellation that wakes consumers.
|
|
16
|
+
* @param queue - optional caller-owned buffer; only an internally created buffer is disposed here.
|
|
17
|
+
*/
|
|
18
|
+
constructor(ctx, sessionId, signal, queue) {
|
|
19
|
+
signal.throwIfAborted();
|
|
20
|
+
const buffer = queue ?? new ListenerBuffer(ctx, signal);
|
|
21
|
+
this.buffer = queue === undefined ? buffer : undefined;
|
|
22
|
+
const input = buffer.createInput(item => this.transform(item));
|
|
23
|
+
const target = sessionId;
|
|
24
|
+
try {
|
|
25
|
+
this.disposes.push(ctx.on('session/event', (session, event) => {
|
|
26
|
+
if (session.id !== target)
|
|
27
|
+
return;
|
|
28
|
+
buffer.capture(() => {
|
|
29
|
+
this.recordFirst(event.seq);
|
|
30
|
+
input.append({ type: 'event', session, event });
|
|
31
|
+
});
|
|
32
|
+
}, { global: true }));
|
|
33
|
+
this.disposes.push(ctx.on('session/created', (session) => {
|
|
34
|
+
if (session.id !== target)
|
|
35
|
+
return;
|
|
36
|
+
buffer.capture(() => {
|
|
37
|
+
if (session.firstLiveSeq < session.seq)
|
|
38
|
+
this.recordFirst(session.firstLiveSeq);
|
|
39
|
+
input.prepend({ type: 'created', session, end: session.seq });
|
|
40
|
+
});
|
|
41
|
+
}, { global: true }));
|
|
42
|
+
this.buffer?.own(() => { this[Symbol.dispose](); });
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
this[Symbol.dispose]();
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/** Consume notifications without reading history.
|
|
50
|
+
* @returns event frames from the first received event, without loading a baseline. */
|
|
51
|
+
events() {
|
|
52
|
+
return this.iterate();
|
|
53
|
+
}
|
|
54
|
+
/** Set the inclusive opening cut for buffered history notifications.
|
|
55
|
+
* @param cursor - snapshot cut set before consuming the queue. */
|
|
56
|
+
setCursor(cursor) {
|
|
57
|
+
this.nextExpectedSeq = cursor + 1;
|
|
58
|
+
}
|
|
59
|
+
*transform(item) {
|
|
60
|
+
if (this.disposes.length === 0)
|
|
61
|
+
return;
|
|
62
|
+
this.nextExpectedSeq ??= this.firstReceivedSeq;
|
|
63
|
+
const result = eventItem(item, this.nextExpectedSeq);
|
|
64
|
+
this.nextExpectedSeq = result.next;
|
|
65
|
+
for (const event of result.events) {
|
|
66
|
+
if (this.disposes.length === 0)
|
|
67
|
+
return;
|
|
68
|
+
yield entryFor(event);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async *iterate() {
|
|
72
|
+
if (this.buffer === undefined)
|
|
73
|
+
throw new Error('Consume the externally owned history buffer directly');
|
|
74
|
+
try {
|
|
75
|
+
yield* this.buffer.items();
|
|
76
|
+
}
|
|
77
|
+
finally {
|
|
78
|
+
this[Symbol.dispose]();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
recordFirst(seq) {
|
|
82
|
+
this.firstReceivedSeq = this.firstReceivedSeq === undefined ? seq : Math.min(this.firstReceivedSeq, seq);
|
|
83
|
+
}
|
|
84
|
+
[Symbol.dispose]() {
|
|
85
|
+
for (const dispose of this.disposes.splice(0).reverse())
|
|
86
|
+
dispose();
|
|
87
|
+
this.buffer?.[Symbol.dispose]();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Select the uncovered events represented by one notification.
|
|
92
|
+
* @param item - one buffered notification.
|
|
93
|
+
* @param next - next required seq, or undefined before the first event.
|
|
94
|
+
* @returns uncovered events and the next required seq without acquiring an observation.
|
|
95
|
+
*/
|
|
96
|
+
export function eventItem(item, next) {
|
|
97
|
+
if (item.type === 'event') {
|
|
98
|
+
if (next !== undefined && item.event.seq < next)
|
|
99
|
+
return { events: [], next };
|
|
100
|
+
if (next !== undefined && item.event.seq !== next) {
|
|
101
|
+
throw new RemoteError('gateway/internal', `session event stream skipped seq ${String(next)}`, {});
|
|
102
|
+
}
|
|
103
|
+
return { events: [item.event], next: item.event.seq + 1 };
|
|
104
|
+
}
|
|
105
|
+
const start = next ?? item.session.firstLiveSeq;
|
|
106
|
+
if (start >= item.end)
|
|
107
|
+
return { events: [], next };
|
|
108
|
+
// oxlint-disable-next-line typescript/no-deprecated -- Existing Session-created history adaptation.
|
|
109
|
+
const events = item.session.snapshotEvents(SessionLogOffset(start), SessionLogOffset(item.end));
|
|
110
|
+
for (const event of events) {
|
|
111
|
+
if (next !== undefined && event.seq !== next) {
|
|
112
|
+
throw new RemoteError('gateway/internal', `session event stream skipped seq ${String(next)}`, {});
|
|
113
|
+
}
|
|
114
|
+
next = event.seq + 1;
|
|
115
|
+
}
|
|
116
|
+
return { events, next };
|
|
117
|
+
}
|
|
118
|
+
/** Projection changes of one Session, one change per committed event that changed a projection. */
|
|
119
|
+
export class ProjectionListener {
|
|
120
|
+
buffer;
|
|
121
|
+
/**
|
|
122
|
+
* @param ctx - context owning projection notifications.
|
|
123
|
+
* @param sessionId - Session whose notifications are emitted.
|
|
124
|
+
* @param signal - cancellation that removes registrations and wakes consumers.
|
|
125
|
+
*/
|
|
126
|
+
constructor(ctx, sessionId, signal) {
|
|
127
|
+
this.buffer = new ListenerBuffer(ctx, signal);
|
|
128
|
+
const input = this.buffer.createInput(item => [item]);
|
|
129
|
+
const target = sessionId;
|
|
130
|
+
try {
|
|
131
|
+
this.buffer.own(ctx.sessionProjections.onEventChanged((session, changes, seq) => {
|
|
132
|
+
if (session.id !== target)
|
|
133
|
+
return;
|
|
134
|
+
this.buffer.capture(() => {
|
|
135
|
+
// Every projection definition validates its value before change publication.
|
|
136
|
+
const change = { type: 'projection', seq, changes: changes };
|
|
137
|
+
input.append({ session, change });
|
|
138
|
+
});
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
this.buffer[Symbol.dispose]();
|
|
143
|
+
throw error;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/** Consume per-event projection changes.
|
|
147
|
+
* @returns validated change frames, one per committed event; projection seqs need not be contiguous. */
|
|
148
|
+
async *changes() {
|
|
149
|
+
try {
|
|
150
|
+
for await (const { change } of this.buffer.items()) {
|
|
151
|
+
yield change;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
finally {
|
|
155
|
+
this[Symbol.dispose]();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
[Symbol.dispose]() {
|
|
159
|
+
this.buffer[Symbol.dispose]();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/** Owns buffering, callback failure and registration cleanup for one consumer. */
|
|
163
|
+
export class ListenerBuffer {
|
|
164
|
+
values = new Deque();
|
|
165
|
+
transformIds = new Deque();
|
|
166
|
+
transforms = [];
|
|
167
|
+
cleanup = [];
|
|
168
|
+
wake;
|
|
169
|
+
closed = false;
|
|
170
|
+
failure;
|
|
171
|
+
consumed = false;
|
|
172
|
+
constructor(ctx, signal) {
|
|
173
|
+
signal.throwIfAborted();
|
|
174
|
+
const close = () => { this[Symbol.dispose](); };
|
|
175
|
+
signal.addEventListener('abort', close, { once: true });
|
|
176
|
+
this.own(() => { signal.removeEventListener('abort', close); });
|
|
177
|
+
try {
|
|
178
|
+
const dispose = ctx.effect(() => close, 'session-controller.listener-buffer');
|
|
179
|
+
this.own(() => { void dispose(); });
|
|
180
|
+
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
this[Symbol.dispose]();
|
|
183
|
+
throw error;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Register cleanup, or run it immediately when already closed.
|
|
188
|
+
* @param dispose - synchronous cleanup.
|
|
189
|
+
*/
|
|
190
|
+
own(dispose) {
|
|
191
|
+
if (this.closed)
|
|
192
|
+
dispose();
|
|
193
|
+
else
|
|
194
|
+
this.cleanup.push(dispose);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Contain producer failure and wake the consumer with that failure.
|
|
198
|
+
* @param action - synchronous producer operation.
|
|
199
|
+
*/
|
|
200
|
+
capture(action) {
|
|
201
|
+
if (this.closed)
|
|
202
|
+
return;
|
|
203
|
+
try {
|
|
204
|
+
action();
|
|
205
|
+
}
|
|
206
|
+
catch (error) {
|
|
207
|
+
this.failure = { error };
|
|
208
|
+
this[Symbol.dispose]();
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Register a dequeue transform and obtain its write-only input.
|
|
213
|
+
* @param transform - conversion bound once and evaluated when each input is dequeued.
|
|
214
|
+
* @returns a write-only input sharing this buffer's storage and lifetime.
|
|
215
|
+
* @throws when this buffer is already closed.
|
|
216
|
+
*/
|
|
217
|
+
createInput(transform) {
|
|
218
|
+
if (this.closed)
|
|
219
|
+
throw new Error('Cannot register a transform on a closed listener buffer');
|
|
220
|
+
const transformId = this.transforms.length;
|
|
221
|
+
// Only this typed input can enqueue values with its private transform id.
|
|
222
|
+
this.transforms.push(value => transform(value));
|
|
223
|
+
return {
|
|
224
|
+
append: (item) => {
|
|
225
|
+
if (this.closed)
|
|
226
|
+
return;
|
|
227
|
+
this.values.pushBack(item);
|
|
228
|
+
this.transformIds.pushBack(transformId);
|
|
229
|
+
this.notify();
|
|
230
|
+
},
|
|
231
|
+
prepend: (item) => {
|
|
232
|
+
if (this.closed)
|
|
233
|
+
return;
|
|
234
|
+
this.values.pushFront(item);
|
|
235
|
+
this.transformIds.pushFront(transformId);
|
|
236
|
+
this.notify();
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Consume queued values once, releasing the buffer when iteration ends.
|
|
242
|
+
* @returns transformed output values.
|
|
243
|
+
*/
|
|
244
|
+
async *items() {
|
|
245
|
+
if (this.consumed)
|
|
246
|
+
throw new RemoteError('gateway/internal', 'Session listener already has a consumer', {});
|
|
247
|
+
this.consumed = true;
|
|
248
|
+
try {
|
|
249
|
+
for (;;) {
|
|
250
|
+
if (this.failure !== undefined)
|
|
251
|
+
throw this.failure.error;
|
|
252
|
+
if (this.closed)
|
|
253
|
+
return;
|
|
254
|
+
if (this.transformIds.size === 0) {
|
|
255
|
+
await new Promise((resolve) => { this.wake = resolve; });
|
|
256
|
+
continue;
|
|
257
|
+
}
|
|
258
|
+
const transformId = this.transformIds.popFront();
|
|
259
|
+
const value = this.values.popFront();
|
|
260
|
+
for (const item of this.transforms[transformId](value)) {
|
|
261
|
+
this.throwIfFailed();
|
|
262
|
+
if (this.isClosed())
|
|
263
|
+
return;
|
|
264
|
+
yield item;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
finally {
|
|
269
|
+
this[Symbol.dispose]();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
throwIfFailed() {
|
|
273
|
+
if (this.failure !== undefined)
|
|
274
|
+
throw this.failure.error;
|
|
275
|
+
}
|
|
276
|
+
/** @returns whether disposal ended this buffer while a transform was yielding. */
|
|
277
|
+
isClosed() {
|
|
278
|
+
return this.closed;
|
|
279
|
+
}
|
|
280
|
+
notify() {
|
|
281
|
+
const wake = this.wake;
|
|
282
|
+
this.wake = undefined;
|
|
283
|
+
wake?.();
|
|
284
|
+
}
|
|
285
|
+
[Symbol.dispose]() {
|
|
286
|
+
if (this.closed)
|
|
287
|
+
return;
|
|
288
|
+
this.closed = true;
|
|
289
|
+
this.values.clear();
|
|
290
|
+
this.transformIds.clear();
|
|
291
|
+
this.transforms.length = 0;
|
|
292
|
+
this.notify();
|
|
293
|
+
for (const dispose of this.cleanup.splice(0).reverse())
|
|
294
|
+
dispose();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
//# sourceMappingURL=listener.js.map
|
|
@@ -279,7 +279,7 @@ export class SessionHistoryController {
|
|
|
279
279
|
rejectNotFound(address);
|
|
280
280
|
}
|
|
281
281
|
try {
|
|
282
|
-
validateAddress(address, observation.header, observation.inheritedEventCount, observation.projections);
|
|
282
|
+
validateAddress(address, observation.header, observation.inheritedEventCount, observation.projections, address.kind === 'subagent' && observation.source === 'live' && !observation.events.some(event => event.seq >= observation.inheritedEventCount && event.type === 'subagent/descriptor'));
|
|
283
283
|
}
|
|
284
284
|
catch (error) {
|
|
285
285
|
observation[Symbol.dispose]();
|
|
@@ -348,7 +348,7 @@ function validateHistoryWindow(request) {
|
|
|
348
348
|
function addressId(address) {
|
|
349
349
|
return address.kind === 'session' ? address.sessionId : address.childSessionId;
|
|
350
350
|
}
|
|
351
|
-
function validateAddress(address, header, inheritedEventCount, projections) {
|
|
351
|
+
function validateAddress(address, header, inheritedEventCount, projections, descriptorPending) {
|
|
352
352
|
if (address.kind === 'session') {
|
|
353
353
|
if (header.origin === 'subagent') {
|
|
354
354
|
throw new RemoteError('session/agent-busy', 'subagent Sessions require their durable parent address', {
|
|
@@ -364,10 +364,10 @@ function validateAddress(address, header, inheritedEventCount, projections) {
|
|
|
364
364
|
}
|
|
365
365
|
const identity = projections?.values.subagent;
|
|
366
366
|
if (identity === null) {
|
|
367
|
-
throw new RemoteError('subagent/catalog-diagnostic', 'subagent descriptor is corrupt', {
|
|
367
|
+
throw new RemoteError('subagent/catalog-diagnostic', descriptorPending ? 'subagent descriptor is not ready' : 'subagent descriptor is corrupt', {
|
|
368
368
|
parentSessionId: address.parentSessionId,
|
|
369
369
|
childSessionId: address.childSessionId,
|
|
370
|
-
reason: 'corrupt',
|
|
370
|
+
reason: descriptorPending ? 'unavailable' : 'corrupt',
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
if (identity === undefined || identity.seq < inheritedEventCount) {
|
|
@@ -7,7 +7,7 @@ import type { SessionInspection } from '@deepseek-ai/dsh-session-persistence';
|
|
|
7
7
|
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
8
8
|
import { type ApiSessionAgentResult } from './agent.ts';
|
|
9
9
|
import { buildModelCatalog } from './catalog.ts';
|
|
10
|
-
import type { ModelCatalog, SessionWorkspacePathApplication, SessionAttachmentRequest, SessionAttachmentValue, SessionCancelRequest, SessionCancelValue, SessionControlFrame, SessionCreateRequest, SessionCreateValue, SessionFollowFrame, SessionFollowRequest, SessionForkRequest, SessionForkValue, SessionListRequest, SessionListValue, SessionOpenWorkspacePathRequest, SessionOpenWorkspacePathValue, SessionPage, SessionPageRequest, SessionPromptRequest, SessionPromptValue, SessionRenameRequest, SessionRenameValue, SessionSearchRequest, SessionSearchValue, SessionSelectModelRequest, SessionSelectModelValue, SessionProjectionsRequest, SessionProjectionsValue, SessionUpdateQueueRequest, SessionUpdateQueueValue } from './types.ts';
|
|
10
|
+
import type { ModelCatalog, SessionWorkspacePathApplication, SessionAttachmentRequest, SessionAttachmentValue, SessionCancelRequest, SessionCancelValue, SessionClearLoginTokenRequest, SessionClearLoginTokenValue, SessionControlFrame, SessionCreateRequest, SessionCreateValue, SessionFollowFrame, SessionFollowRequest, SessionForkRequest, SessionForkValue, SessionListRequest, SessionListValue, SessionOpenWorkspacePathRequest, SessionOpenWorkspacePathValue, SessionPage, SessionPageRequest, SessionPromptRequest, SessionPromptValue, SessionRenameRequest, SessionRenameValue, SessionResumeRequest, SessionResumeValue, SessionSearchRequest, SessionSearchValue, SessionSelectModelRequest, SessionSelectModelValue, SessionSetLoginTokenRequest, SessionSetLoginTokenValue, SessionProjectionsRequest, SessionProjectionsValue, SessionUpdateQueueRequest, SessionUpdateQueueValue } from './types.ts';
|
|
11
11
|
export type * from './types.ts';
|
|
12
12
|
export { ApiSessionNotFound } from './agent.ts';
|
|
13
13
|
export { SessionFileReferences } from './file-references.ts';
|
|
@@ -91,6 +91,80 @@ export declare class SessionController extends TypertRemoteService {
|
|
|
91
91
|
* @returns the Session identity and resolved preset when configured.
|
|
92
92
|
*/
|
|
93
93
|
create(request: SessionCreateRequest): Promise<SessionCreateValue>;
|
|
94
|
+
/**
|
|
95
|
+
* Read the effective Runtime sandbox and approval policy for a Session.
|
|
96
|
+
* @param request - existing Session identity; cold Sessions may resume.
|
|
97
|
+
* @returns the active sandbox, durable preset name and approval mode.
|
|
98
|
+
*/
|
|
99
|
+
workspaceAccess(request: {
|
|
100
|
+
sessionId: SessionId;
|
|
101
|
+
}): Promise<{
|
|
102
|
+
mode: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
103
|
+
preset: string;
|
|
104
|
+
approval: 'ask' | 'never';
|
|
105
|
+
}>;
|
|
106
|
+
/**
|
|
107
|
+
* Change the durable permission state used by the Web picker, between tasks only.
|
|
108
|
+
* @param request - existing Session identity and requested workspace access.
|
|
109
|
+
* @returns the actual policy after persistence; active work or queued inputs are refused.
|
|
110
|
+
*/
|
|
111
|
+
setWorkspaceAccess(request: {
|
|
112
|
+
sessionId: SessionId;
|
|
113
|
+
mode: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
114
|
+
}): Promise<{
|
|
115
|
+
mode: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
116
|
+
preset: string;
|
|
117
|
+
approval: 'ask' | 'never';
|
|
118
|
+
}>;
|
|
119
|
+
/**
|
|
120
|
+
* Read the executable Tool names in one resolved Agent scope.
|
|
121
|
+
* @param request - existing Session identity; cold Sessions may resume.
|
|
122
|
+
* @returns enabled Tool names and descriptions, without execution callbacks.
|
|
123
|
+
*/
|
|
124
|
+
toolCatalog(request: {
|
|
125
|
+
sessionId: SessionId;
|
|
126
|
+
}): Promise<Array<{
|
|
127
|
+
name: string;
|
|
128
|
+
description: string;
|
|
129
|
+
}>>;
|
|
130
|
+
/**
|
|
131
|
+
* Release an idle Session's writer without stopping other Sessions.
|
|
132
|
+
* @param request - ordinary Session identity owned by this controller.
|
|
133
|
+
* @returns acknowledgement after persistence has drained and unlocked.
|
|
134
|
+
*/
|
|
135
|
+
release(request: SessionCancelRequest): Promise<{
|
|
136
|
+
readonly released: true;
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* Inject a ChatCode OAuth grant into the credentials service.
|
|
140
|
+
*
|
|
141
|
+
* The desktop AI workbench calls this after completing OAuth to provide the
|
|
142
|
+
* access token and optional metadata (refreshToken, expiry, user info).
|
|
143
|
+
* The grant is stored in the credentials service (persisted to disk, encrypted)
|
|
144
|
+
* using the same credential key as ChatCodeAuthService, so the auth bundle
|
|
145
|
+
* automatically reads it without any modification.
|
|
146
|
+
*
|
|
147
|
+
* Token expiry is detected by API 401 responses, not by local clock.
|
|
148
|
+
* When the token expires, the LLM adapter returns API 401 naturally.
|
|
149
|
+
*
|
|
150
|
+
* @param request - ChatCode OAuth grant fields.
|
|
151
|
+
* @returns confirmation.
|
|
152
|
+
*/
|
|
153
|
+
setLoginToken(request: SessionSetLoginTokenRequest): Promise<SessionSetLoginTokenValue>;
|
|
154
|
+
/**
|
|
155
|
+
* Remove the ChatCode OAuth token from the credentials service.
|
|
156
|
+
* @param _request - unused (no params needed).
|
|
157
|
+
* @returns confirmation.
|
|
158
|
+
*/
|
|
159
|
+
clearLoginToken(_request: SessionClearLoginTokenRequest): Promise<SessionClearLoginTokenValue>;
|
|
160
|
+
/**
|
|
161
|
+
* Resume an existing Session, optionally with provider/model overrides.
|
|
162
|
+
* The Session must already exist in persistence. Desktop AI workbenches use
|
|
163
|
+
* this after Runtime restart to re-inject the model selection.
|
|
164
|
+
* @param request - Session identity and optional provider/model override.
|
|
165
|
+
* @returns the Session identity and resolved model selection.
|
|
166
|
+
*/
|
|
167
|
+
resume(request: SessionResumeRequest): Promise<SessionResumeValue>;
|
|
94
168
|
/**
|
|
95
169
|
* Select a model after explicitly resuming the Session and awaiting default persistence.
|
|
96
170
|
* @param request - Session identity and requested model selection.
|
|
@@ -107,6 +181,10 @@ export declare class SessionController extends TypertRemoteService {
|
|
|
107
181
|
* @returns provider-grouped models, the deployment default, and isolated provider failures.
|
|
108
182
|
*/
|
|
109
183
|
modelCatalog(): Promise<ModelCatalog>;
|
|
184
|
+
/** Refresh account-owned catalogs before returning safe model names and routes.
|
|
185
|
+
* @returns the current registry catalog; refresh failures reject without changing Session selection.
|
|
186
|
+
*/
|
|
187
|
+
refreshModelCatalog(): Promise<ModelCatalog>;
|
|
110
188
|
/**
|
|
111
189
|
* Report whether this deployment can hand a Session workspace path to a native desktop.
|
|
112
190
|
* @returns true when the matching open operation is available.
|
|
@@ -154,6 +232,15 @@ export declare class SessionController extends TypertRemoteService {
|
|
|
154
232
|
* @returns the new Session identity.
|
|
155
233
|
*/
|
|
156
234
|
fork(request: SessionForkRequest): Promise<SessionForkValue>;
|
|
235
|
+
/**
|
|
236
|
+
* Advertise support for request-local model configuration.
|
|
237
|
+
* @returns Supported model configuration version.
|
|
238
|
+
*/
|
|
239
|
+
promptModelConfig(): {
|
|
240
|
+
version: 1;
|
|
241
|
+
requestApiKey: true;
|
|
242
|
+
unifiedOptions: true;
|
|
243
|
+
};
|
|
157
244
|
/**
|
|
158
245
|
* Admit one prompt after explicitly resuming its Session.
|
|
159
246
|
* @param request - Session identity, prompt content, source metadata, and delivery mode.
|