@toddzheng024/dscode-desktop 0.0.0-stage → 0.7.34
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/LICENSE +21 -0
- package/README.md +120 -2
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/bin/apply_patch +9 -0
- package/cordis.patch.yml +433 -0
- package/docs/CHANGELOG.md +649 -0
- package/docs/account-login.md +44 -0
- package/docs/auto-review.md +128 -0
- package/docs/browser-use.md +784 -0
- package/docs/computer-use.md +81 -0
- package/docs/custom-providers.md +88 -0
- package/docs/demo.md +158 -0
- package/docs/distribution.md +58 -0
- package/docs/dscode-ultra.md +75 -0
- package/docs/email.md +296 -0
- package/docs/exec.md +40 -0
- package/docs/hub-distribution.md +212 -0
- package/docs/memory.md +121 -0
- package/docs/opencode-go.md +61 -0
- package/docs/plugin-hub.md +68 -0
- package/docs/releases/0.2.0.md +28 -0
- package/docs/releases/0.3.0.md +21 -0
- package/docs/releases/0.4.0.md +20 -0
- package/docs/releases/0.5.0.md +19 -0
- package/docs/releases/0.6.0.md +20 -0
- package/docs/releases/0.7.0.md +22 -0
- package/docs/releases/0.7.1.md +20 -0
- package/docs/releases/0.7.10.md +10 -0
- package/docs/releases/0.7.11.md +17 -0
- package/docs/releases/0.7.12.md +11 -0
- package/docs/releases/0.7.13.md +12 -0
- package/docs/releases/0.7.14.md +11 -0
- package/docs/releases/0.7.15.md +11 -0
- package/docs/releases/0.7.16.md +10 -0
- package/docs/releases/0.7.17.md +12 -0
- package/docs/releases/0.7.18.md +13 -0
- package/docs/releases/0.7.19.md +8 -0
- package/docs/releases/0.7.2.md +19 -0
- package/docs/releases/0.7.20.md +10 -0
- package/docs/releases/0.7.21.md +9 -0
- package/docs/releases/0.7.22.md +11 -0
- package/docs/releases/0.7.23.md +14 -0
- package/docs/releases/0.7.24.md +11 -0
- package/docs/releases/0.7.25.md +8 -0
- package/docs/releases/0.7.26.md +18 -0
- package/docs/releases/0.7.27.md +8 -0
- package/docs/releases/0.7.28.md +22 -0
- package/docs/releases/0.7.29.md +12 -0
- package/docs/releases/0.7.3.md +23 -0
- package/docs/releases/0.7.30.md +19 -0
- package/docs/releases/0.7.31.md +14 -0
- package/docs/releases/0.7.32.md +14 -0
- package/docs/releases/0.7.33.md +37 -0
- package/docs/releases/0.7.34.md +24 -0
- package/docs/releases/0.7.4.md +16 -0
- package/docs/releases/0.7.5.md +18 -0
- package/docs/releases/0.7.6.md +29 -0
- package/docs/releases/0.7.7.md +36 -0
- package/docs/releases/0.7.8.md +14 -0
- package/docs/releases/0.7.9.md +15 -0
- package/docs/session-bridge.md +80 -0
- package/docs/session-cards.md +53 -0
- package/docs/session-communication.md +186 -0
- package/docs/session-metrics.md +41 -0
- package/docs/skills.md +81 -0
- package/docs/triggers.md +338 -0
- package/docs/tui-commands.md +204 -0
- package/extensions/browser/manifest.json +22 -0
- package/extensions/browser/popup.css +6 -0
- package/extensions/browser/popup.html +11 -0
- package/extensions/browser/popup.mjs +47 -0
- package/extensions/browser/protocol.mjs +168 -0
- package/extensions/browser/worker.mjs +94 -0
- package/icon.svg +7 -0
- package/locale/en.json +6 -0
- package/locale/zh-cn.json +6 -0
- package/node_modules/@deepseek-ai/node-addon-system/LICENSE +21 -0
- package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/node-addon-system/README.md +15 -0
- package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +15 -0
- package/node_modules/@deepseek-ai/node-addon-system/lib/flock.d.ts +13 -0
- package/node_modules/@deepseek-ai/node-addon-system/lib/flock.js +51 -0
- package/node_modules/@deepseek-ai/node-addon-system/lib/index.d.ts +73 -0
- package/node_modules/@deepseek-ai/node-addon-system/lib/index.js +98 -0
- package/node_modules/@deepseek-ai/node-addon-system/package.json +45 -0
- package/node_modules/@deepseek-ai/node-addon-system/src/flock.c +164 -0
- package/node_modules/@deepseek-ai/node-addon-system/src/main.c +298 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/LICENSE +28 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/README.md +9 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/README.zh.md +9 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/bin/system.node +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/package.json +31 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/prebuilds.json +6 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-x64/LICENSE +28 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-x64/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-x64/README.md +9 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-x64/README.zh.md +9 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-x64/bin/system.node +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-x64/package.json +31 -0
- package/node_modules/@deepseek-ai/node-addon-system-darwin-x64/prebuilds.json +6 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/LICENSE +28 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/README.md +11 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/README.zh.md +11 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/bin/glibc/system.node +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/bin/landlock-run +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/bin/musl/system.node +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/package.json +31 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-arm64/prebuilds.json +24 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/LICENSE +28 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/README.md +11 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/README.zh.md +11 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/bin/glibc/system.node +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/bin/landlock-run +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/bin/musl/system.node +0 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/package.json +31 -0
- package/node_modules/@deepseek-ai/node-addon-system-linux-x64/prebuilds.json +24 -0
- package/package.json +156 -4
- package/plugins/account/index.mjs +178 -0
- package/plugins/account/state.mjs +123 -0
- package/plugins/auto-review/audit.mjs +24 -0
- package/plugins/auto-review/index.mjs +267 -0
- package/plugins/auto-review/policy.mjs +92 -0
- package/plugins/browser/SKILL.md +158 -0
- package/plugins/browser/access.mjs +143 -0
- package/plugins/browser/config.mjs +60 -0
- package/plugins/browser/connection.mjs +385 -0
- package/plugins/browser/desktop-client.mjs +282 -0
- package/plugins/browser/desktop-host.mjs +74 -0
- package/plugins/browser/document-identity.mjs +57 -0
- package/plugins/browser/extension-relay.mjs +66 -0
- package/plugins/browser/files.mjs +32 -0
- package/plugins/browser/index.mjs +235 -0
- package/plugins/browser/mcp-entry.mjs +18 -0
- package/plugins/browser/mcp-tools.mjs +21 -0
- package/plugins/browser/presentation.mjs +45 -0
- package/plugins/browser/preview.mjs +77 -0
- package/plugins/browser/review.mjs +20 -0
- package/plugins/browser/screenshots.mjs +35 -0
- package/plugins/clipboard-image/clipboard-image.swift +56 -0
- package/plugins/clipboard-image/index.mjs +70 -0
- package/plugins/code-review/baseline.mjs +143 -0
- package/plugins/code-review/git.mjs +163 -0
- package/plugins/code-review/index.mjs +236 -0
- package/plugins/compaction/engine.mjs +304 -0
- package/plugins/compaction/tetris.mjs +65 -0
- package/plugins/compaction/threshold.mjs +99 -0
- package/plugins/computer-use/DESKTOP-SKILL.md +64 -0
- package/plugins/computer-use/desktop-host.mjs +75 -0
- package/plugins/computer-use/desktop-skill.mjs +28 -0
- package/plugins/computer-use/desktop-upstream.mjs +3 -0
- package/plugins/computer-use/index.mjs +37 -0
- package/plugins/cordis-config/plain.mjs +31 -0
- package/plugins/credentials/index.mjs +73 -0
- package/plugins/custom/adapter.mjs +110 -0
- package/plugins/custom/config.mjs +85 -0
- package/plugins/custom/desktop-client.mjs +150 -0
- package/plugins/custom/desktop-host.mjs +78 -0
- package/plugins/custom/images.mjs +32 -0
- package/plugins/custom/index.mjs +145 -0
- package/plugins/custom/wire.mjs +179 -0
- package/plugins/desktop/client.mjs +1041 -0
- package/plugins/desktop/index.mjs +10 -0
- package/plugins/desktop/shell-environment.mjs +9 -0
- package/plugins/desktop-workspace/hooks.mjs +29 -0
- package/plugins/desktop-workspace/index.mjs +37 -0
- package/plugins/dscode/board.mjs +260 -0
- package/plugins/dscode/child-target.mjs +11 -0
- package/plugins/dscode/control.mjs +17 -0
- package/plugins/dscode/desktop-client.mjs +55 -0
- package/plugins/dscode/desktop-host.mjs +37 -0
- package/plugins/dscode/index.mjs +270 -0
- package/plugins/email/cli.mjs +32 -0
- package/plugins/email/contacts.mjs +36 -0
- package/plugins/email/desktop-client.mjs +117 -0
- package/plugins/email/desktop-host.mjs +54 -0
- package/plugins/email/desktop-service.mjs +106 -0
- package/plugins/email/gmail-oauth.mjs +69 -0
- package/plugins/email/gmail-store.mjs +2 -0
- package/plugins/email/gmail.mjs +194 -0
- package/plugins/email/imap.mjs +136 -0
- package/plugins/email/inbox.d.mts +25 -0
- package/plugins/email/inbox.mjs +76 -0
- package/plugins/email/smtp.mjs +70 -0
- package/plugins/email/store.mjs +32 -0
- package/plugins/email-tools/index.mjs +46 -0
- package/plugins/exec/cli.mjs +64 -0
- package/plugins/exec/index.mjs +112 -0
- package/plugins/grok/adapter.mjs +114 -0
- package/plugins/grok/auth.mjs +76 -0
- package/plugins/grok/billing.mjs +147 -0
- package/plugins/grok/index.mjs +123 -0
- package/plugins/grok/models.mjs +129 -0
- package/plugins/grok/status.mjs +29 -0
- package/plugins/grok/wire.mjs +268 -0
- package/plugins/hub/catalog.mjs +82 -0
- package/plugins/hub/desktop-client.mjs +114 -0
- package/plugins/hub/desktop-host.mjs +129 -0
- package/plugins/i18n/messages.d.mts +21 -0
- package/plugins/i18n/messages.mjs +537 -0
- package/plugins/jev/approval.mjs +131 -0
- package/plugins/jev/client.mjs +74 -0
- package/plugins/jev/index.mjs +100 -0
- package/plugins/memory/content.mjs +57 -0
- package/plugins/memory/desktop-host.mjs +3 -0
- package/plugins/memory/index.mjs +168 -0
- package/plugins/memory/pipeline.mjs +79 -0
- package/plugins/memory/store.mjs +93 -0
- package/plugins/message-source/kind.mjs +20 -0
- package/plugins/opencode-go/adapter.mjs +96 -0
- package/plugins/opencode-go/command.mjs +128 -0
- package/plugins/opencode-go/index.mjs +121 -0
- package/plugins/opencode-go/models.mjs +58 -0
- package/plugins/opencode-go/oauth.mjs +194 -0
- package/plugins/opencode-go/search.mjs +86 -0
- package/plugins/opencode-go/usage.mjs +120 -0
- package/plugins/opencode-go/version.mjs +10 -0
- package/plugins/opencode-go/wire.mjs +73 -0
- package/plugins/openrouter/adapter.mjs +232 -0
- package/plugins/openrouter/index.mjs +124 -0
- package/plugins/openrouter/models.mjs +157 -0
- package/plugins/openrouter/search.mjs +113 -0
- package/plugins/openrouter/wire.mjs +101 -0
- package/plugins/providers/catalog.mjs +160 -0
- package/plugins/providers/chat-messages.mjs +120 -0
- package/plugins/providers/chat-stream.mjs +174 -0
- package/plugins/providers/desktop-client.mjs +84 -0
- package/plugins/providers/desktop-host.mjs +63 -0
- package/plugins/providers/effort.mjs +35 -0
- package/plugins/providers/http-errors.mjs +50 -0
- package/plugins/providers/openrouter-account.mjs +171 -0
- package/plugins/session-bridge/client.mjs +106 -0
- package/plugins/session-bridge/communication.mjs +260 -0
- package/plugins/session-bridge/index.mjs +67 -0
- package/plugins/session-bridge/mailbox.mjs +267 -0
- package/plugins/session-bridge/paths.mjs +21 -0
- package/plugins/session-bridge/server.mjs +172 -0
- package/plugins/session-bridge/tasks.mjs +229 -0
- package/plugins/session-cards/content.mjs +64 -0
- package/plugins/session-cards/index.mjs +38 -0
- package/plugins/session-cards/manager.mjs +140 -0
- package/plugins/session-metrics/attribution.mjs +30 -0
- package/plugins/session-metrics/balance.mjs +81 -0
- package/plugins/session-metrics/desktop-client.mjs +62 -0
- package/plugins/session-metrics/desktop-host.mjs +46 -0
- package/plugins/session-metrics/index.mjs +97 -0
- package/plugins/session-metrics/pricing.mjs +84 -0
- package/plugins/session-metrics/rate.mjs +59 -0
- package/plugins/session-metrics/store.mjs +75 -0
- package/plugins/session-metrics/turns.mjs +134 -0
- package/plugins/session-metrics/view.mjs +272 -0
- package/plugins/time-marks/desktop-host.mjs +2 -0
- package/plugins/time-marks/index.mjs +116 -0
- package/plugins/time-marks/marks.mjs +152 -0
- package/plugins/triggers/cli.mjs +558 -0
- package/plugins/triggers/commands.mjs +143 -0
- package/plugins/triggers/config.mjs +264 -0
- package/plugins/triggers/desktop-client.mjs +155 -0
- package/plugins/triggers/desktop-host.mjs +88 -0
- package/plugins/triggers/desktop-management.mjs +97 -0
- package/plugins/triggers/desktop-scheduler.mjs +125 -0
- package/plugins/triggers/host.mjs +24 -0
- package/plugins/triggers/index.mjs +27 -0
- package/plugins/triggers/job-cli.mjs +110 -0
- package/plugins/triggers/jobs.mjs +156 -0
- package/plugins/triggers/launchd.mjs +101 -0
- package/plugins/triggers/lease.mjs +24 -0
- package/plugins/triggers/log.mjs +104 -0
- package/plugins/triggers/management.mjs +181 -0
- package/plugins/triggers/options.mjs +117 -0
- package/plugins/triggers/overlay.mjs +7 -0
- package/plugins/triggers/poll.mjs +65 -0
- package/plugins/triggers/run.mjs +157 -0
- package/plugins/triggers/schedule.mjs +40 -0
- package/plugins/triggers/scheduler-service.mjs +46 -0
- package/plugins/triggers/scheduler.mjs +92 -0
- package/plugins/triggers/session-run.mjs +125 -0
- package/plugins/triggers/session.mjs +48 -0
- package/plugins/triggers/source-emit.mjs +19 -0
- package/plugins/triggers/source-host.mjs +78 -0
- package/plugins/triggers/source-ingress.mjs +70 -0
- package/plugins/triggers/source-sandbox.mjs +35 -0
- package/plugins/triggers/sources.mjs +45 -0
- package/plugins/triggers/spool.mjs +145 -0
- package/plugins/triggers/tools.mjs +67 -0
- package/plugins/triggers/unattended.mjs +18 -0
- package/plugins/tui-tools/composition.mjs +28 -0
- package/plugins/tui-tools/desktop-host.mjs +2 -0
- package/plugins/tui-tools/doctor-cli.mjs +22 -0
- package/plugins/tui-tools/doctor.mjs +149 -0
- package/plugins/tui-tools/hook-sources.mjs +113 -0
- package/plugins/tui-tools/hooks.mjs +23 -0
- package/plugins/tui-tools/index.mjs +269 -0
- package/plugins/tui-tools/sandbox-runner.mjs +123 -0
- package/plugins/tui-tools/shell.mjs +27 -0
- package/plugins/tui-tools/update.mjs +111 -0
- package/plugins/tui-tools/workspace-discovery.mjs +129 -0
- package/plugins/ultra/policy.mjs +42 -0
- package/plugins/worktree-subagent/worktree.mjs +56 -0
- package/runtime-sources.json +94 -0
- package/vendor/bash/LICENSE +21 -0
- package/vendor/bash/index.js +717 -0
- package/vendor/bash/types/background.d.ts +50 -0
- package/vendor/bash/types/index.d.ts +38 -0
- package/vendor/bash/types/render.d.ts +57 -0
- package/vendor/command-goal/LICENSE +21 -0
- package/vendor/command-goal/index.js +210 -0
- package/vendor/command-goal/types/index.d.ts +10 -0
- package/vendor/computer-use/LICENSE +21 -0
- package/vendor/computer-use/lib/approval-policy.js +12 -0
- package/vendor/computer-use/lib/approval-policy.js.map +1 -0
- package/vendor/computer-use/lib/artifacts.js +79 -0
- package/vendor/computer-use/lib/artifacts.js.map +1 -0
- package/vendor/computer-use/lib/backend.js +3 -0
- package/vendor/computer-use/lib/backend.js.map +1 -0
- package/vendor/computer-use/lib/client.js +369 -0
- package/vendor/computer-use/lib/client.js.map +1 -0
- package/vendor/computer-use/lib/config.js +159 -0
- package/vendor/computer-use/lib/config.js.map +1 -0
- package/vendor/computer-use/lib/confirmations.js +99 -0
- package/vendor/computer-use/lib/confirmations.js.map +1 -0
- package/vendor/computer-use/lib/diff.js +58 -0
- package/vendor/computer-use/lib/diff.js.map +1 -0
- package/vendor/computer-use/lib/errors.js +22 -0
- package/vendor/computer-use/lib/errors.js.map +1 -0
- package/vendor/computer-use/lib/exposure.js +244 -0
- package/vendor/computer-use/lib/exposure.js.map +1 -0
- package/vendor/computer-use/lib/index.js +66 -0
- package/vendor/computer-use/lib/index.js.map +1 -0
- package/vendor/computer-use/lib/leases.js +262 -0
- package/vendor/computer-use/lib/leases.js.map +1 -0
- package/vendor/computer-use/lib/providers/macos.js +243 -0
- package/vendor/computer-use/lib/providers/macos.js.map +1 -0
- package/vendor/computer-use/lib/providers/native-helper.js +726 -0
- package/vendor/computer-use/lib/providers/native-helper.js.map +1 -0
- package/vendor/computer-use/lib/providers/unsupported.js +51 -0
- package/vendor/computer-use/lib/providers/unsupported.js.map +1 -0
- package/vendor/computer-use/lib/service.js +608 -0
- package/vendor/computer-use/lib/service.js.map +1 -0
- package/vendor/computer-use/lib/skill.js +136 -0
- package/vendor/computer-use/lib/skill.js.map +1 -0
- package/vendor/computer-use/lib/target-resolver.js +180 -0
- package/vendor/computer-use/lib/target-resolver.js.map +1 -0
- package/vendor/computer-use/lib/tools.js +511 -0
- package/vendor/computer-use/lib/tools.js.map +1 -0
- package/vendor/computer-use/lib/types/approval-policy.d.ts +13 -0
- package/vendor/computer-use/lib/types/approval-policy.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/artifacts.d.ts +10 -0
- package/vendor/computer-use/lib/types/artifacts.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/backend.d.ts +124 -0
- package/vendor/computer-use/lib/types/backend.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/client/index.d.ts +83 -0
- package/vendor/computer-use/lib/types/client/index.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/config.d.ts +94 -0
- package/vendor/computer-use/lib/types/config.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/confirmations.d.ts +23 -0
- package/vendor/computer-use/lib/types/confirmations.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/diff.d.ts +5 -0
- package/vendor/computer-use/lib/types/diff.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/errors.d.ts +15 -0
- package/vendor/computer-use/lib/types/errors.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/exposure.d.ts +30 -0
- package/vendor/computer-use/lib/types/exposure.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/index.d.ts +21 -0
- package/vendor/computer-use/lib/types/index.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/leases.d.ts +81 -0
- package/vendor/computer-use/lib/types/leases.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/providers/macos.d.ts +39 -0
- package/vendor/computer-use/lib/types/providers/macos.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/providers/native-helper.d.ts +48 -0
- package/vendor/computer-use/lib/types/providers/native-helper.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/providers/unsupported.d.ts +23 -0
- package/vendor/computer-use/lib/types/providers/unsupported.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/service.d.ts +58 -0
- package/vendor/computer-use/lib/types/service.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/skill.d.ts +14 -0
- package/vendor/computer-use/lib/types/skill.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/target-resolver.d.ts +38 -0
- package/vendor/computer-use/lib/types/target-resolver.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/tools.d.ts +6 -0
- package/vendor/computer-use/lib/types/tools.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/types.d.ts +270 -0
- package/vendor/computer-use/lib/types/types.d.ts.map +1 -0
- package/vendor/computer-use/lib/types/web.d.ts +33 -0
- package/vendor/computer-use/lib/types/web.d.ts.map +1 -0
- package/vendor/computer-use/lib/types.js +9 -0
- package/vendor/computer-use/lib/types.js.map +1 -0
- package/vendor/computer-use/lib/web.js +188 -0
- package/vendor/computer-use/lib/web.js.map +1 -0
- package/vendor/computer-use/native/macos/Sources/Fixture/main.swift +412 -0
- package/vendor/computer-use/native/macos/Sources/Helper/CursorImage.swift +11 -0
- package/vendor/computer-use/native/macos/Sources/Helper/CursorMotion.swift +67 -0
- package/vendor/computer-use/native/macos/Sources/Helper/CursorOverlay.swift +840 -0
- package/vendor/computer-use/native/macos/Sources/Helper/TargetedPointer.swift +327 -0
- package/vendor/computer-use/native/macos/Sources/Helper/WindowNumberMatcher.swift +29 -0
- package/vendor/computer-use/native/macos/Sources/Helper/main.swift +1244 -0
- package/vendor/computer-use/native/macos/Sources/Monitor/main.swift +153 -0
- package/vendor/computer-use/native/macos/bin/dsh-computer-use-helper +0 -0
- package/vendor/computer-use/native/macos/manifest.json +14 -0
- package/vendor/persistent/LICENSE +21 -0
- package/vendor/persistent/index.js +411 -0
- package/vendor/persistent/types/index.d.ts +24 -0
- package/vendor/subagent/LICENSE +21 -0
- package/vendor/subagent/index.js +694 -0
- package/vendor/subagent/invariant.js +52 -0
- package/vendor/subagent/model-selection-settings.js +68 -0
- package/vendor/subagent/types/index.d.ts +82 -0
- package/vendor/subagent/types/invariant.d.ts +16 -0
- package/vendor/subagent/types/list-models.d.ts +10 -0
- package/vendor/subagent/types/model-selection-settings.d.ts +45 -0
- package/vendor/subagent/types/model-selection-state.d.ts +48 -0
- package/vendor/subagent/types/model-selection.d.ts +81 -0
- package/vendor/subagent-core/LICENSE +21 -0
- package/vendor/subagent-core/index.js +3202 -0
- package/vendor/subagent-core/invariant.js +76 -0
- package/vendor/subagent-core/typert.host.d.ts +3 -0
- package/vendor/subagent-core/typert.host.js +978 -0
- package/vendor/subagent-core/typert.remote-client.d.ts +25 -0
- package/vendor/subagent-core/typert.remote-client.js +114 -0
- package/vendor/subagent-core/types/archive-admission.d.ts +16 -0
- package/vendor/subagent-core/types/archive-admission.js +151 -0
- package/vendor/subagent-core/types/assistant-output.d.ts +48 -0
- package/vendor/subagent-core/types/assistant-output.js +73 -0
- package/vendor/subagent-core/types/catalog.d.ts +84 -0
- package/vendor/subagent-core/types/catalog.js +109 -0
- package/vendor/subagent-core/types/child-agent.d.ts +156 -0
- package/vendor/subagent-core/types/child-agent.js +213 -0
- package/vendor/subagent-core/types/client.d.ts +8 -0
- package/vendor/subagent-core/types/client.js +7 -0
- package/vendor/subagent-core/types/continuation-activation.d.ts +267 -0
- package/vendor/subagent-core/types/continuation-activation.js +700 -0
- package/vendor/subagent-core/types/continuation-messages.d.ts +62 -0
- package/vendor/subagent-core/types/continuation-messages.js +106 -0
- package/vendor/subagent-core/types/continuation.d.ts +124 -0
- package/vendor/subagent-core/types/continuation.js +455 -0
- package/vendor/subagent-core/types/control-types.d.ts +135 -0
- package/vendor/subagent-core/types/control-types.js +8 -0
- package/vendor/subagent-core/types/control.d.ts +45 -0
- package/vendor/subagent-core/types/control.js +79 -0
- package/vendor/subagent-core/types/depth.d.ts +31 -0
- package/vendor/subagent-core/types/depth.js +39 -0
- package/vendor/subagent-core/types/descriptor.d.ts +144 -0
- package/vendor/subagent-core/types/descriptor.js +193 -0
- package/vendor/subagent-core/types/error.d.ts +11 -0
- package/vendor/subagent-core/types/error.js +14 -0
- package/vendor/subagent-core/types/inbox.d.ts +43 -0
- package/vendor/subagent-core/types/inbox.js +61 -0
- package/vendor/subagent-core/types/index.d.ts +320 -0
- package/vendor/subagent-core/types/index.js +475 -0
- package/vendor/subagent-core/types/internal.d.ts +58 -0
- package/vendor/subagent-core/types/internal.js +58 -0
- package/vendor/subagent-core/types/invariant.d.ts +13 -0
- package/vendor/subagent-core/types/invariant.js +91 -0
- package/vendor/subagent-core/types/lifecycle.d.ts +113 -0
- package/vendor/subagent-core/types/lifecycle.js +180 -0
- package/vendor/subagent-core/types/list-children.d.ts +36 -0
- package/vendor/subagent-core/types/list-children.js +166 -0
- package/vendor/subagent-core/types/out-of-process.d.ts +118 -0
- package/vendor/subagent-core/types/out-of-process.js +219 -0
- package/vendor/subagent-core/types/projection-types.d.ts +82 -0
- package/vendor/subagent-core/types/projection-types.js +7 -0
- package/vendor/subagent-core/types/projection.d.ts +100 -0
- package/vendor/subagent-core/types/projection.js +157 -0
- package/vendor/subagent-core/types/run-settlement.d.ts +17 -0
- package/vendor/subagent-core/types/run-settlement.js +70 -0
- package/vendor/subagent-core/types/types.d.ts +377 -0
- package/vendor/subagent-core/types/types.js +19 -0
- package/vendor/subagent-driver/LICENSE +21 -0
- package/vendor/subagent-driver/index.js +255 -0
- package/vendor/subagent-driver/types/index.d.ts +33 -0
- package/vendor/subagent-driver/types/structured.d.ts +42 -0
- package/vendor/subagent-fork/LICENSE +21 -0
- package/vendor/subagent-fork/index.js +61 -0
- package/vendor/subagent-fork/types/index.d.ts +20 -0
- package/vendor/subagent-spawn/LICENSE +21 -0
- package/vendor/subagent-spawn/index.js +45 -0
- package/vendor/subagent-spawn/types/index.d.ts +19 -0
- package/vendor/terminal/LICENSE +21 -0
- package/vendor/terminal/index.js +1093 -0
- package/vendor/terminal/types/config.d.ts +82 -0
- package/vendor/terminal/types/index.d.ts +36 -0
- package/vendor/terminal/types/sanitize.d.ts +47 -0
- package/vendor/terminal/types/session.d.ts +87 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service Definition for the subagent capability seam (`ctx.subagents`): a named-provider registry plus a
|
|
3
|
+
* capability-validating asynchronous start API. Providers establish a
|
|
4
|
+
* child before returning its run, so fulfillment is the single publication and
|
|
5
|
+
* ownership-transfer boundary.
|
|
6
|
+
*
|
|
7
|
+
* Multiple providers coexist: each registers under a unique name and callers
|
|
8
|
+
* select one by name.
|
|
9
|
+
*
|
|
10
|
+
* This package owns the Service Definition role of the capability seam. Service Providers
|
|
11
|
+
* (`@deepseek-ai/dsh-subagent-spawn-in-process`, `-fork`, `-acp`) and the model-facing
|
|
12
|
+
* consumer (`@deepseek-ai/dsh-tool-subagent`) are separate packages.
|
|
13
|
+
*
|
|
14
|
+
* Public operations express caller intent: `start` returns one published owned
|
|
15
|
+
* one-shot run, `startContinuable` establishes a durable continuable child, and
|
|
16
|
+
* `sendMessage` steers between adjacent Agents without exposing whether a child
|
|
17
|
+
* is resident. Continuable children never become a {@link SubagentRun}: the
|
|
18
|
+
* continuation manager holds their `AgentHandle` directly and orders every turn
|
|
19
|
+
* through the child's own inbox, so providers contribute only the detached
|
|
20
|
+
* creation spec and see no handle, turn, or teardown. Direct-child
|
|
21
|
+
* discovery reads the parent catalog; descendant discovery recursively reads
|
|
22
|
+
* those child catalogs. Neither read requires the continuation runtime.
|
|
23
|
+
*
|
|
24
|
+
* Same-process providers are trusted typed collaborators. Requests, provider
|
|
25
|
+
* descriptors, results, and lifecycle payloads are borrowed immutable values;
|
|
26
|
+
* serialization and hostile-input validation belong at real process, worker,
|
|
27
|
+
* persistence, and model boundaries.
|
|
28
|
+
*
|
|
29
|
+
* @module @deepseek-ai/dsh-subagent
|
|
30
|
+
*/
|
|
31
|
+
import type { Volatile } from '@deepseek-ai/cordis';
|
|
32
|
+
import { Context } from '@deepseek-ai/cordis';
|
|
33
|
+
import z from '@deepseek-ai/schemastery';
|
|
34
|
+
import type { Scoped } from '@deepseek-ai/dsh-scope';
|
|
35
|
+
import type { ContentBlock, MessageId } from '@deepseek-ai/dsh-llm';
|
|
36
|
+
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
37
|
+
import type { SessionId } from '@deepseek-ai/dsh-session';
|
|
38
|
+
import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
|
|
39
|
+
import type { SubagentInterruptReceipt, SubagentPromptReceipt, SubagentPromptRequest } from './control-types.ts';
|
|
40
|
+
import type { ContinuableStart, ContinuableStartSpec, SubagentInterruptAuthority, SubagentProvider, SubagentRun, SubagentRunEndInfo, SubagentRunInfo, SubagentSendMessageOptions, SubagentStartRequest } from './types.ts';
|
|
41
|
+
import type { SubagentDescendantListEntry } from './list-children.ts';
|
|
42
|
+
import type { SubagentCatalogEntry } from './projection-types.ts';
|
|
43
|
+
import { deliverSubagentPrompt } from './internal.ts';
|
|
44
|
+
export type {} from './catalog.ts';
|
|
45
|
+
export * from './out-of-process.ts';
|
|
46
|
+
export { AssistantOutputFold, finalAssistantOutput } from './assistant-output.ts';
|
|
47
|
+
export { SubagentRunId } from './types.ts';
|
|
48
|
+
export type { ContinuableCreateRequest, ContinuableCreateSpec, ContinuableStart, ContinuableStartSpec, ResolvedSubagentStartRequest, SubagentCapabilities, SubagentInterruptAuthority, SubagentProvider, SubagentResult, SubagentRun, SubagentSendMessageOptions, SubagentStartRequest, SubagentStopReason, SubagentStopReasonMap, } from './types.ts';
|
|
49
|
+
export { foldSubagentDescriptor, snapshotSubagentDescriptor, SUBAGENT_DESCRIPTOR_VERSION, } from './descriptor.ts';
|
|
50
|
+
export type { ContinuableSubagentDescriptorData, ContinuableSubagentDescriptorInput, OneShotSubagentDescriptorData, OneShotSubagentDescriptorInput, SubagentDescriptorData, SubagentDescriptorInput, } from './descriptor.ts';
|
|
51
|
+
export type { SubagentCatalogEntry } from './projection-types.ts';
|
|
52
|
+
export { SubagentError } from './error.ts';
|
|
53
|
+
export { settleRun } from './run-settlement.ts';
|
|
54
|
+
export { assertSubagentMaxDepth, delegationDepthOf } from './depth.ts';
|
|
55
|
+
export { appendDelegatedPolicyOverrides, applyChildComposition, captureDelegatedPolicyOverrides, childSessionMeta, parentAgentOptionsForDelegation, resolveChildAgentOptions, resolveChildDepth, SubagentDepthError, } from './child-agent.ts';
|
|
56
|
+
export type { ChildComposition, DelegatedPolicyOverrides } from './child-agent.ts';
|
|
57
|
+
export type { AgentMessageSource, SubagentSettledMessageSource } from './continuation-messages.ts';
|
|
58
|
+
export type * from './control-types.ts';
|
|
59
|
+
export type { SubagentDescendantListEntry } from './list-children.ts';
|
|
60
|
+
export type { SubagentRunEndInfo, SubagentRunInfo } from './types.ts';
|
|
61
|
+
export type { SubagentIdentityProjection, SubagentTimingProjection } from './projection-types.ts';
|
|
62
|
+
declare module '@deepseek-ai/cordis' {
|
|
63
|
+
interface Context {
|
|
64
|
+
subagents: SubagentRuntime;
|
|
65
|
+
}
|
|
66
|
+
interface Events {
|
|
67
|
+
/**
|
|
68
|
+
* A provider became resolvable in the registry.
|
|
69
|
+
* @param provider - the registered provider.
|
|
70
|
+
* @mode emit
|
|
71
|
+
*/
|
|
72
|
+
'subagent/provider-added'(provider: SubagentProvider): void;
|
|
73
|
+
/**
|
|
74
|
+
* A provider left the registry. Accepted runs remain holder-owned.
|
|
75
|
+
* @param name - the provider name that no longer resolves.
|
|
76
|
+
* @mode emit
|
|
77
|
+
*/
|
|
78
|
+
'subagent/provider-removed'(name: string): void;
|
|
79
|
+
/**
|
|
80
|
+
* A provider established a published child. For in-process providers,
|
|
81
|
+
* `ctx.agents.get(info.id)` resolves during this notification.
|
|
82
|
+
* Scope-filtered dispatch keys the carrier by the delegating parent, so a
|
|
83
|
+
* parent-scoped listener observes only its own delegations. Paired with
|
|
84
|
+
* `subagent/end`.
|
|
85
|
+
* @param info - the provider and published child identity.
|
|
86
|
+
* @dshScopeScan unsupported
|
|
87
|
+
* @mode emit
|
|
88
|
+
*/
|
|
89
|
+
'subagent/start'(this: Scoped<SubagentRuntime>, info: SubagentRunInfo): void;
|
|
90
|
+
/**
|
|
91
|
+
* A published child settled. Scope-filtered dispatch uses the same delegating
|
|
92
|
+
* parent carrier as `subagent/start`, so the lifecycle pair reaches the
|
|
93
|
+
* same scoped audience.
|
|
94
|
+
* @param info - the run identity and terminal outcome.
|
|
95
|
+
* @dshScopeScan unsupported
|
|
96
|
+
* @mode emit
|
|
97
|
+
*/
|
|
98
|
+
'subagent/end'(this: Scoped<SubagentRuntime>, info: SubagentRunEndInfo): void;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/** Host configuration for continuable subagent capacity. */
|
|
102
|
+
export interface Config {
|
|
103
|
+
/** Maximum live children sharing uninterrupted continuable parent links; defaults to 8. */
|
|
104
|
+
maxActiveSubagents: Volatile<number>;
|
|
105
|
+
/** Default delegation depth for tools without an explicit limit; defaults to 1. */
|
|
106
|
+
maxDepth: Volatile<number>;
|
|
107
|
+
}
|
|
108
|
+
/** Named provider registry with one-shot runs, durable discovery, and continuable-child operations. */
|
|
109
|
+
export declare class SubagentRuntime extends TypertRemoteService {
|
|
110
|
+
private config;
|
|
111
|
+
static Config: z<Schemastery.ObjectS<NoInfer<{
|
|
112
|
+
maxDepth: z<number, number, "volatile-defined">;
|
|
113
|
+
maxActiveSubagents: z<number, number, "volatile-defined">;
|
|
114
|
+
}>>, Schemastery.ObjectT<NoInfer<{
|
|
115
|
+
maxDepth: z<number, number, "volatile-defined">;
|
|
116
|
+
maxActiveSubagents: z<number, number, "volatile-defined">;
|
|
117
|
+
}>>, "plain">;
|
|
118
|
+
private providers;
|
|
119
|
+
private continuations;
|
|
120
|
+
/**
|
|
121
|
+
* The contained lifecycle-edge publisher. Built here because scoped dispatch
|
|
122
|
+
* keys its carrier by this exact service instance, whose own context filter
|
|
123
|
+
* composes into the carrier.
|
|
124
|
+
*/
|
|
125
|
+
private readonly emitLifecycle;
|
|
126
|
+
constructor(ctx: Context, config: Config);
|
|
127
|
+
/**
|
|
128
|
+
* Resolve a delegation tool's depth policy against the current user setting.
|
|
129
|
+
* @param configured - Explicit tool limit, or provider-managed for external delegation.
|
|
130
|
+
* @returns The numeric limit, or undefined when the provider owns depth enforcement.
|
|
131
|
+
*/
|
|
132
|
+
resolveMaxDepth(configured?: number | 'provider-managed'): number | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Establish one durable continuable child and deliver its initial prompt.
|
|
135
|
+
* Resolves when the child's inbox accepts that prompt, without waiting for the
|
|
136
|
+
* turn to start or for the message to reach the Session log; any earlier
|
|
137
|
+
* failure rejects with no ids and rolls back the child entirely.
|
|
138
|
+
* @param spec - provider, delegation request, and caller cancellation.
|
|
139
|
+
* @returns the durable child id and the accepted prompt's message id.
|
|
140
|
+
* @throws when continuation services are unavailable or materialization fails.
|
|
141
|
+
*/
|
|
142
|
+
startContinuable(spec: ContinuableStartSpec): Promise<ContinuableStart>;
|
|
143
|
+
/**
|
|
144
|
+
* Steer one model-authored message to the sender's direct parent or direct
|
|
145
|
+
* continuable child. A running target admits it at the nearest step boundary;
|
|
146
|
+
* an idle target starts a turn, and an absent direct child cold-resumes from
|
|
147
|
+
* persistence. The service derives durable sender attribution from the exact
|
|
148
|
+
* live sender. Caller cancellation stops only pre-acceptance work.
|
|
149
|
+
* @param sender - exact live Agent authorizing and originating the message.
|
|
150
|
+
* @param targetId - durable direct-parent or direct-child session id.
|
|
151
|
+
* @param content - model-authored content to deliver.
|
|
152
|
+
* @param options - caller cancellation before inbox acceptance.
|
|
153
|
+
* @returns the accepted message's inbox id.
|
|
154
|
+
* @throws when continuation services are unavailable, adjacency is rejected,
|
|
155
|
+
* or the message was not admitted.
|
|
156
|
+
*/
|
|
157
|
+
sendMessage(sender: Agent, targetId: SessionId, content: ContentBlock[], options: SubagentSendMessageOptions): Promise<MessageId>;
|
|
158
|
+
/**
|
|
159
|
+
* Deliver one host-protocol message to a direct continuable child.
|
|
160
|
+
* Symbol-keyed so host adapters can preserve their own source descriptors without
|
|
161
|
+
* widening the public Service Definition or impersonating an Agent sender.
|
|
162
|
+
* @param parent - exact live direct parent authorizing delivery.
|
|
163
|
+
* @param childId - durable direct-child session id.
|
|
164
|
+
* @param content - host-authored content to deliver.
|
|
165
|
+
* @param source - durable host-protocol source descriptor.
|
|
166
|
+
* @param signal - caller cancellation before inbox acceptance.
|
|
167
|
+
* @param delivery - Queue as a distinct turn or Steer at the nearest step.
|
|
168
|
+
* @returns the accepted message's inbox id.
|
|
169
|
+
*/
|
|
170
|
+
private [deliverSubagentPrompt];
|
|
171
|
+
/**
|
|
172
|
+
* Interrupt one live continuable child's current turn under a human parent
|
|
173
|
+
* address or an exact live ancestor Agent. Fire-and-return: the cancel
|
|
174
|
+
* signal is issued before this returns, but the target may keep running
|
|
175
|
+
* until it observes the signal. Unclaimed pending inbox work, the Activation,
|
|
176
|
+
* and published descendants are preserved; claimed work is not requeued.
|
|
177
|
+
* Once the interrupted driver is idle, a waking send resumes the parked FIFO
|
|
178
|
+
* queue. An absent target — including a one-shot or unknown id —
|
|
179
|
+
* is an accepted no-op, as is a manager-less composition, which cannot own a
|
|
180
|
+
* live Activation.
|
|
181
|
+
* @param targetSessionId - the durable child session id to interrupt.
|
|
182
|
+
* @param authority - the human parent address or exact live ancestor Agent.
|
|
183
|
+
* @throws {SubagentError} `UNAUTHORIZED` when the authority does not own the
|
|
184
|
+
* live target.
|
|
185
|
+
*/
|
|
186
|
+
interrupt(targetSessionId: SessionId, authority: SubagentInterruptAuthority): void;
|
|
187
|
+
/**
|
|
188
|
+
* Close continuable admission below exact live parent Agents, stop only their
|
|
189
|
+
* visible descendant Activations synchronously, then await admitted scoped
|
|
190
|
+
* materializations and release those forests child-first. The scoped cutoff
|
|
191
|
+
* lasts until each exact parent leaves the registry; unrelated parent trees
|
|
192
|
+
* remain live.
|
|
193
|
+
* @param parents - exact host-owned parent Agents entering teardown.
|
|
194
|
+
* @returns once every retained descendant Activation released its `AgentHandle`.
|
|
195
|
+
* @throws an aggregate error after all branches settle when any failed.
|
|
196
|
+
*/
|
|
197
|
+
drainContinuableDescendants(parents: readonly Agent[]): Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* Release selected resident continuable direct children of one exact live
|
|
200
|
+
* parent. Other children of the same parent remain admitted and resident.
|
|
201
|
+
* Absent targets and a manager-less composition are accepted no-ops.
|
|
202
|
+
* @param parent - exact live direct parent authorizing the selected release.
|
|
203
|
+
* @param childIds - durable direct-child ids to release when resident.
|
|
204
|
+
* @returns once every selected Activation released its `AgentHandle`.
|
|
205
|
+
* @throws {SubagentError} `UNAUTHORIZED` when a resident target belongs to a
|
|
206
|
+
* different parent or the supplied parent identity is stale.
|
|
207
|
+
*/
|
|
208
|
+
drainContinuableChildren(parent: Agent, childIds: readonly SessionId[]): Promise<void>;
|
|
209
|
+
/**
|
|
210
|
+
* Read the parent's durable direct-child catalog without loading or resuming an Agent.
|
|
211
|
+
* The service owns and releases the live-preferred Session observation.
|
|
212
|
+
* @param parentSessionId - parent whose direct children are requested.
|
|
213
|
+
* @param signal - cancellation forwarded to the Session query.
|
|
214
|
+
* @returns catalog children in parent event order.
|
|
215
|
+
* @throws {@link SubagentError} when query or catalog projection is unavailable.
|
|
216
|
+
* @throws SessionQueryError when the parent cannot be read or the query is cancelled.
|
|
217
|
+
*/
|
|
218
|
+
listChildren(parentSessionId: SessionId, signal?: AbortSignal): Promise<SubagentCatalogEntry[]>;
|
|
219
|
+
/**
|
|
220
|
+
* Recursively list reachable parent catalogs in stable pre-order, preserving
|
|
221
|
+
* each catalog's event order. Each row carries its catalog parent and depth;
|
|
222
|
+
* one-shot and unknown-mode children remain traversal nodes. Unknown modes
|
|
223
|
+
* produce unsupported diagnostics. Unreadable child catalogs produce corrupt
|
|
224
|
+
* or unavailable diagnostics and stop only that branch. Root read failures,
|
|
225
|
+
* missing services or projections, and cancellation reject the whole listing.
|
|
226
|
+
* Each catalog is observed once and released before the next read. No Agent
|
|
227
|
+
* is loaded or resumed; Sessions absent from reachable catalogs are omitted.
|
|
228
|
+
* @param rootSessionId - session whose catalog starts descendant discovery.
|
|
229
|
+
* @param signal - cancellation forwarded to and checked around each catalog read.
|
|
230
|
+
* @returns children and branch diagnostics in parent-catalog pre-order.
|
|
231
|
+
* @throws {@link SubagentError} when listing dependencies are unavailable or the caller cancels.
|
|
232
|
+
* @throws SessionQueryError when the root catalog cannot be read.
|
|
233
|
+
*/
|
|
234
|
+
listDescendants(rootSessionId: SessionId, signal?: AbortSignal): Promise<SubagentDescendantListEntry[]>;
|
|
235
|
+
/**
|
|
236
|
+
* Deliver one browser-authored message to a continuable child through the
|
|
237
|
+
* exact live direct parent, retaining the caller-minted request identity and
|
|
238
|
+
* validated browser zone on the accepted message. Success identifies the
|
|
239
|
+
* message the child's inbox accepted; later execution is independent of this
|
|
240
|
+
* call. Queue delivery targets a later turn; steer delivery targets the
|
|
241
|
+
* nearest step and retains the Agent loop's best-effort fallback semantics.
|
|
242
|
+
* Image parts are admitted and persisted through the attachment store
|
|
243
|
+
* before delivery, and the child's model must accept image input.
|
|
244
|
+
* Cold resume at capacity rejects with `subagent/delivery-unavailable`.
|
|
245
|
+
* @param request - durable address, delivery, minted identity, content, and optional browser zone.
|
|
246
|
+
* @param signal - carrier cancellation, owning the call until inbox acceptance.
|
|
247
|
+
* @returns the accepted message's inbox identity.
|
|
248
|
+
* @throws {RemoteError} `gateway/bad-request`, `subagent/attachment-invalid`,
|
|
249
|
+
* `subagent/invalid-time-zone`, `subagent/parent-unavailable`,
|
|
250
|
+
* `subagent/not-resumable`, `subagent/unauthorized`,
|
|
251
|
+
* `subagent/delivery-unavailable`, `gateway/cancelled`, or `gateway/internal`.
|
|
252
|
+
*/
|
|
253
|
+
prompt(request: SubagentPromptRequest, signal: AbortSignal): Promise<SubagentPromptReceipt>;
|
|
254
|
+
/**
|
|
255
|
+
* Remote face of {@link interrupt} under one durable parent address. No
|
|
256
|
+
* catalog, history, persistence, or parent Agent lookup runs: the core
|
|
257
|
+
* primitive alone authorizes the address against the live Activation, which
|
|
258
|
+
* is what keeps a live child interruptible while its parent Agent is offline.
|
|
259
|
+
* Absent, idle, and already-completed targets are accepted no-ops there.
|
|
260
|
+
* @param childSessionId - durable child session id to interrupt.
|
|
261
|
+
* @param parentSessionId - durable direct parent whose authority is claimed.
|
|
262
|
+
* @param mode - required continuable-address discriminator.
|
|
263
|
+
* @returns acknowledgement that the cancel signal was admitted, not that the target is quiescent.
|
|
264
|
+
* @throws {RemoteError} `gateway/bad-request` for an empty id,
|
|
265
|
+
* `subagent/unauthorized` when the address does not own the live target,
|
|
266
|
+
* otherwise `gateway/internal`.
|
|
267
|
+
*/
|
|
268
|
+
interruptByParent(childSessionId: SessionId, parentSessionId: SessionId, mode: 'continuable'): SubagentInterruptReceipt;
|
|
269
|
+
/**
|
|
270
|
+
* Register a provider under its name. Registration is effect-scoped and HMR
|
|
271
|
+
* safe; removing a provider blocks new starts but does not revoke runs that
|
|
272
|
+
* were already returned to their holders.
|
|
273
|
+
* @param provider - the trusted provider implementation.
|
|
274
|
+
* @returns the exact Cordis effect disposer.
|
|
275
|
+
*/
|
|
276
|
+
registerProvider(provider: SubagentProvider): () => void;
|
|
277
|
+
/**
|
|
278
|
+
* Look up a provider by name.
|
|
279
|
+
* @param name - the provider name.
|
|
280
|
+
* @returns the provider, or undefined when absent.
|
|
281
|
+
*/
|
|
282
|
+
getProvider(name: string): SubagentProvider | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* List registered provider names in insertion order.
|
|
285
|
+
* @returns the registered names.
|
|
286
|
+
*/
|
|
287
|
+
list(): string[];
|
|
288
|
+
/**
|
|
289
|
+
* Establish a published child on the named provider. Capability and semantic
|
|
290
|
+
* checks run before delegation. Provider ownership lasts until its promise
|
|
291
|
+
* fulfills; a rejection therefore has no run for the caller to dispose and
|
|
292
|
+
* emits no run lifecycle events. Post-publication turn and infrastructure
|
|
293
|
+
* failures settle through the returned run.
|
|
294
|
+
* A catalog append failure disposes the run and handles its result rejection;
|
|
295
|
+
* the caller receives the catalog error even if disposal also fails.
|
|
296
|
+
* @param name - the provider to use.
|
|
297
|
+
* @param request - child label, prompt, parent, signal, and optional capabilities.
|
|
298
|
+
* @returns the published holder-owned run.
|
|
299
|
+
*/
|
|
300
|
+
start(name: string, request: SubagentStartRequest): Promise<SubagentRun>;
|
|
301
|
+
/**
|
|
302
|
+
* Resolve one provider's detached continuable-creation contribution. Method
|
|
303
|
+
* presence on the provider IS the capability, so a provider without it is
|
|
304
|
+
* rejected before the manager reserves any child resources.
|
|
305
|
+
*/
|
|
306
|
+
private prepareContinuable;
|
|
307
|
+
/** Look up a provider for dispatch or fail loud. */
|
|
308
|
+
private expectProvider;
|
|
309
|
+
/** Resolve the optional continuable-subagent manager or fail loud. */
|
|
310
|
+
private requireContinuations;
|
|
311
|
+
/**
|
|
312
|
+
* Build the lifecycle observer for one continuable Activation's residency
|
|
313
|
+
* epoch, so the manager publishes its edges without owning event dispatch.
|
|
314
|
+
*/
|
|
315
|
+
private observeActivation;
|
|
316
|
+
/** Reject the first requested capability that the provider lacks. */
|
|
317
|
+
private assertCapabilities;
|
|
318
|
+
}
|
|
319
|
+
export default SubagentRuntime;
|
|
320
|
+
//# sourceMappingURL=index.d.ts.map
|