@toddzheng024/dscode-desktop 0.0.0-stage → 0.7.33
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 +641 -0
- package/docs/account-login.md +44 -0
- package/docs/auto-review.md +128 -0
- package/docs/browser-use.md +783 -0
- package/docs/computer-use.md +81 -0
- package/docs/custom-providers.md +88 -0
- package/docs/demo.md +76 -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 +190 -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 +30 -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 +98 -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 +146 -0
- package/plugins/grok/index.mjs +122 -0
- package/plugins/grok/models.mjs +129 -0
- package/plugins/grok/status.mjs +28 -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 +99 -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 +120 -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 +119 -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 +123 -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 +68 -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 +96 -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 +271 -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 +148 -0
- package/plugins/tui-tools/hook-sources.mjs +113 -0
- package/plugins/tui-tools/hooks.mjs +23 -0
- package/plugins/tui-tools/index.mjs +268 -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,978 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
let _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema$value
|
|
5
|
+
const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema = () => (_deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
6
|
+
let _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema$value
|
|
7
|
+
const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema = () => (_deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
8
|
+
let _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema$value
|
|
9
|
+
const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema = () => (_deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema$value ??= z.literal("continuable"))
|
|
10
|
+
let _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema$value
|
|
11
|
+
const _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema = () => (_deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema$value ??= z.object({
|
|
12
|
+
'accepted': z.literal(true).readonly(),
|
|
13
|
+
}))
|
|
14
|
+
let _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema$value
|
|
15
|
+
const _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema = () => (_deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema$value ??= z.object({
|
|
16
|
+
'requestId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
17
|
+
'parentSessionId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
18
|
+
'childSessionId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
19
|
+
'mode': z.literal("continuable").readonly(),
|
|
20
|
+
'delivery': z.union([z.literal("queue"), z.literal("steer")]).readonly(),
|
|
21
|
+
'content': z.array(z.union([z.object({
|
|
22
|
+
'type': z.literal("text").readonly(),
|
|
23
|
+
'text': z.string().readonly(),
|
|
24
|
+
}), z.object({
|
|
25
|
+
'type': z.literal("image").readonly(),
|
|
26
|
+
'mediaType': z.union([z.literal("image/png"), z.literal("image/jpeg"), z.literal("image/webp"), z.literal("image/gif")]).readonly(),
|
|
27
|
+
'data': z.string().readonly(),
|
|
28
|
+
'name': z.string().readonly().optional(),
|
|
29
|
+
})])).readonly(),
|
|
30
|
+
'clientTimeZone': z.string().readonly().optional(),
|
|
31
|
+
}))
|
|
32
|
+
let _deepseek_ai_dsh_subagent_subagents_prompt_result$schema$value
|
|
33
|
+
const _deepseek_ai_dsh_subagent_subagents_prompt_result$schema = () => (_deepseek_ai_dsh_subagent_subagents_prompt_result$schema$value ??= z.object({
|
|
34
|
+
'messageId': z.intersection(z.string(), z.unknown()).readonly(),
|
|
35
|
+
}))
|
|
36
|
+
|
|
37
|
+
export const TYPERT = {
|
|
38
|
+
package: '@deepseek-ai/dsh-subagent',
|
|
39
|
+
face: 'host',
|
|
40
|
+
schemas: [
|
|
41
|
+
],
|
|
42
|
+
invocations: [
|
|
43
|
+
{
|
|
44
|
+
id: '@deepseek-ai/dsh-subagent#subagents/interruptByParent',
|
|
45
|
+
service: 'subagents',
|
|
46
|
+
namespace: 'subagents',
|
|
47
|
+
method: 'interruptByParent',
|
|
48
|
+
invocation: { kind: 'direct' },
|
|
49
|
+
parameters: [
|
|
50
|
+
{
|
|
51
|
+
name: 'childSessionId',
|
|
52
|
+
wire: 'childSessionId',
|
|
53
|
+
source: 'json',
|
|
54
|
+
codec: {
|
|
55
|
+
mode: 'strict',
|
|
56
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
57
|
+
create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'parentSessionId',
|
|
62
|
+
wire: 'parentSessionId',
|
|
63
|
+
source: 'json',
|
|
64
|
+
codec: {
|
|
65
|
+
mode: 'strict',
|
|
66
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
67
|
+
create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'mode',
|
|
72
|
+
wire: 'mode',
|
|
73
|
+
source: 'json',
|
|
74
|
+
codec: {
|
|
75
|
+
mode: 'strict',
|
|
76
|
+
typeSymbol: '@deepseek-ai/dsh-subagent#subagents/interruptByParent:mode',
|
|
77
|
+
create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
result: {
|
|
82
|
+
mode: 'strict',
|
|
83
|
+
typeSymbol: '@deepseek-ai/dsh-subagent/client#SubagentInterruptReceipt',
|
|
84
|
+
create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema,
|
|
85
|
+
},
|
|
86
|
+
sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":483,"column":3},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: '@deepseek-ai/dsh-subagent#subagents/prompt',
|
|
90
|
+
service: 'subagents',
|
|
91
|
+
namespace: 'subagents',
|
|
92
|
+
method: 'prompt',
|
|
93
|
+
invocation: { kind: 'direct' },
|
|
94
|
+
parameters: [
|
|
95
|
+
{
|
|
96
|
+
name: 'request',
|
|
97
|
+
wire: 'request',
|
|
98
|
+
source: 'json',
|
|
99
|
+
codec: {
|
|
100
|
+
mode: 'strict',
|
|
101
|
+
typeSymbol: '@deepseek-ai/dsh-subagent/client#SubagentPromptRequest',
|
|
102
|
+
create: _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
cancellation: { parameter: 'signal' },
|
|
107
|
+
result: {
|
|
108
|
+
mode: 'strict',
|
|
109
|
+
typeSymbol: '@deepseek-ai/dsh-subagent/client#SubagentPromptReceipt',
|
|
110
|
+
create: _deepseek_ai_dsh_subagent_subagents_prompt_result$schema,
|
|
111
|
+
},
|
|
112
|
+
sourceLocation: {"file":"packages/subagent/subagent/src/index.ts","line":416,"column":9},
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
model: {
|
|
116
|
+
"services": [
|
|
117
|
+
{
|
|
118
|
+
"description": "Named provider registry with one-shot runs, durable discovery, and continuable-child operations.",
|
|
119
|
+
"summary": "Named provider registry with one-shot runs, durable discovery, and continuable-child operations.",
|
|
120
|
+
"tags": [],
|
|
121
|
+
"jsDoc": "/** Named provider registry with one-shot runs, durable discovery, and continuable-child operations. */",
|
|
122
|
+
"key": "subagents",
|
|
123
|
+
"exportName": "SubagentRuntime",
|
|
124
|
+
"members": [
|
|
125
|
+
{
|
|
126
|
+
"kind": "method",
|
|
127
|
+
"name": "resolveMaxDepth",
|
|
128
|
+
"signature": "resolveMaxDepth(configured?: number | 'provider-managed'): number | undefined",
|
|
129
|
+
"summary": "Resolve a delegation tool's depth policy against the current user setting.",
|
|
130
|
+
"jsDoc": "/**\n * Resolve a delegation tool's depth policy against the current user setting.\n * @param configured - Explicit tool limit, or provider-managed for external delegation.\n * @returns The numeric limit, or undefined when the provider owns depth enforcement.\n */"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"kind": "method",
|
|
134
|
+
"name": "startContinuable",
|
|
135
|
+
"signature": "async startContinuable(spec: ContinuableStartSpec): Promise<ContinuableStart>",
|
|
136
|
+
"summary": "Establish one durable continuable child and deliver its initial prompt.",
|
|
137
|
+
"jsDoc": "/**\n * Establish one durable continuable child and deliver its initial prompt.\n * Resolves when the child's inbox accepts that prompt, without waiting for the\n * turn to start or for the message to reach the Session log; any earlier\n * failure rejects with no ids and rolls back the child entirely.\n * @param spec - provider, delegation request, and caller cancellation.\n * @returns the durable child id and the accepted prompt's message id.\n * @throws when continuation services are unavailable or materialization fails.\n */"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"kind": "method",
|
|
141
|
+
"name": "sendMessage",
|
|
142
|
+
"signature": "async sendMessage( sender: Agent, targetId: SessionId, content: ContentBlock[], options: SubagentSendMessageOptions, ): Promise<MessageId>",
|
|
143
|
+
"summary": "Steer one model-authored message to the sender's direct parent or direct continuable child.",
|
|
144
|
+
"jsDoc": "/**\n * Steer one model-authored message to the sender's direct parent or direct\n * continuable child. A running target admits it at the nearest step boundary;\n * an idle target starts a turn, and an absent direct child cold-resumes from\n * persistence. The service derives durable sender attribution from the exact\n * live sender. Caller cancellation stops only pre-acceptance work.\n * @param sender - exact live Agent authorizing and originating the message.\n * @param targetId - durable direct-parent or direct-child session id.\n * @param content - model-authored content to deliver.\n * @param options - caller cancellation before inbox acceptance.\n * @returns the accepted message's inbox id.\n * @throws when continuation services are unavailable, adjacency is rejected,\n * or the message was not admitted.\n */"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"kind": "method",
|
|
148
|
+
"name": "interrupt",
|
|
149
|
+
"signature": "interrupt(targetSessionId: SessionId, authority: SubagentInterruptAuthority): void",
|
|
150
|
+
"summary": "Interrupt one live continuable child's current turn under a human parent address or an exact live ancestor Agent.",
|
|
151
|
+
"jsDoc": "/**\n * Interrupt one live continuable child's current turn under a human parent\n * address or an exact live ancestor Agent. Fire-and-return: the cancel\n * signal is issued before this returns, but the target may keep running\n * until it observes the signal. Unclaimed pending inbox work, the Activation,\n * and published descendants are preserved; claimed work is not requeued.\n * Once the interrupted driver is idle, a waking send resumes the parked FIFO\n * queue. An absent target — including a one-shot or unknown id —\n * is an accepted no-op, as is a manager-less composition, which cannot own a\n * live Activation.\n * @param targetSessionId - the durable child session id to interrupt.\n * @param authority - the human parent address or exact live ancestor Agent.\n * @throws {SubagentError} `UNAUTHORIZED` when the authority does not own the\n * live target.\n */"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"kind": "method",
|
|
155
|
+
"name": "drainContinuableDescendants",
|
|
156
|
+
"signature": "async drainContinuableDescendants(parents: readonly Agent[]): Promise<void>",
|
|
157
|
+
"summary": "Close continuable admission below exact live parent Agents, stop only their visible descendant Activations synchronously, then await admitted scoped materializations and release those forests child-first.",
|
|
158
|
+
"jsDoc": "/**\n * Close continuable admission below exact live parent Agents, stop only their\n * visible descendant Activations synchronously, then await admitted scoped\n * materializations and release those forests child-first. The scoped cutoff\n * lasts until each exact parent leaves the registry; unrelated parent trees\n * remain live.\n * @param parents - exact host-owned parent Agents entering teardown.\n * @returns once every retained descendant Activation released its `AgentHandle`.\n * @throws an aggregate error after all branches settle when any failed.\n */"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"kind": "method",
|
|
162
|
+
"name": "drainContinuableChildren",
|
|
163
|
+
"signature": "async drainContinuableChildren(parent: Agent, childIds: readonly SessionId[]): Promise<void>",
|
|
164
|
+
"summary": "Release selected resident continuable direct children of one exact live parent.",
|
|
165
|
+
"jsDoc": "/**\n * Release selected resident continuable direct children of one exact live\n * parent. Other children of the same parent remain admitted and resident.\n * Absent targets and a manager-less composition are accepted no-ops.\n * @param parent - exact live direct parent authorizing the selected release.\n * @param childIds - durable direct-child ids to release when resident.\n * @returns once every selected Activation released its `AgentHandle`.\n * @throws {SubagentError} `UNAUTHORIZED` when a resident target belongs to a\n * different parent or the supplied parent identity is stale.\n */"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"kind": "method",
|
|
169
|
+
"name": "listChildren",
|
|
170
|
+
"signature": "listChildren(parentSessionId: SessionId, signal?: AbortSignal): Promise<SubagentCatalogEntry[]>",
|
|
171
|
+
"summary": "Read the parent's durable direct-child catalog without loading or resuming an Agent.",
|
|
172
|
+
"jsDoc": "/**\n * Read the parent's durable direct-child catalog without loading or resuming an Agent.\n * The service owns and releases the live-preferred Session observation.\n * @param parentSessionId - parent whose direct children are requested.\n * @param signal - cancellation forwarded to the Session query.\n * @returns catalog children in parent event order.\n * @throws {@link SubagentError} when query or catalog projection is unavailable.\n * @throws SessionQueryError when the parent cannot be read or the query is cancelled.\n */"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"kind": "method",
|
|
176
|
+
"name": "listDescendants",
|
|
177
|
+
"signature": "listDescendants(rootSessionId: SessionId, signal?: AbortSignal): Promise<SubagentDescendantListEntry[]>",
|
|
178
|
+
"summary": "Recursively list reachable parent catalogs in stable pre-order, preserving each catalog's event order.",
|
|
179
|
+
"jsDoc": "/**\n * Recursively list reachable parent catalogs in stable pre-order, preserving\n * each catalog's event order. Each row carries its catalog parent and depth;\n * one-shot and unknown-mode children remain traversal nodes. Unknown modes\n * produce unsupported diagnostics. Unreadable child catalogs produce corrupt\n * or unavailable diagnostics and stop only that branch. Root read failures,\n * missing services or projections, and cancellation reject the whole listing.\n * Each catalog is observed once and released before the next read. No Agent\n * is loaded or resumed; Sessions absent from reachable catalogs are omitted.\n * @param rootSessionId - session whose catalog starts descendant discovery.\n * @param signal - cancellation forwarded to and checked around each catalog read.\n * @returns children and branch diagnostics in parent-catalog pre-order.\n * @throws {@link SubagentError} when listing dependencies are unavailable or the caller cancels.\n * @throws SessionQueryError when the root catalog cannot be read.\n */"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"kind": "method",
|
|
183
|
+
"name": "prompt",
|
|
184
|
+
"signature": "@Remote('prompt') async prompt(request: SubagentPromptRequest, signal: AbortSignal): Promise<SubagentPromptReceipt>",
|
|
185
|
+
"summary": "Deliver one browser-authored message to a continuable child through the exact live direct parent, retaining the caller-minted request identity and validated browser zone on the accepted message.",
|
|
186
|
+
"jsDoc": "/**\n * Deliver one browser-authored message to a continuable child through the\n * exact live direct parent, retaining the caller-minted request identity and\n * validated browser zone on the accepted message. Success identifies the\n * message the child's inbox accepted; later execution is independent of this\n * call. Queue delivery targets a later turn; steer delivery targets the\n * nearest step and retains the Agent loop's best-effort fallback semantics.\n * Image parts are admitted and persisted through the attachment store\n * before delivery, and the child's model must accept image input.\n * Cold resume at capacity rejects with `subagent/delivery-unavailable`.\n * @param request - durable address, delivery, minted identity, content, and optional browser zone.\n * @param signal - carrier cancellation, owning the call until inbox acceptance.\n * @returns the accepted message's inbox identity.\n * @throws {RemoteError} `gateway/bad-request`, `subagent/attachment-invalid`,\n * `subagent/invalid-time-zone`, `subagent/parent-unavailable`,\n * `subagent/not-resumable`, `subagent/unauthorized`,\n * `subagent/delivery-unavailable`, `gateway/cancelled`, or `gateway/internal`.\n */"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"kind": "method",
|
|
190
|
+
"name": "interruptByParent",
|
|
191
|
+
"signature": "@Remote('interruptByParent') interruptByParent( childSessionId: SessionId, parentSessionId: SessionId, mode: 'continuable', ): SubagentInterruptReceipt",
|
|
192
|
+
"summary": "Remote face of {@link interrupt} under one durable parent address.",
|
|
193
|
+
"jsDoc": "/**\n * Remote face of {@link interrupt} under one durable parent address. No\n * catalog, history, persistence, or parent Agent lookup runs: the core\n * primitive alone authorizes the address against the live Activation, which\n * is what keeps a live child interruptible while its parent Agent is offline.\n * Absent, idle, and already-completed targets are accepted no-ops there.\n * @param childSessionId - durable child session id to interrupt.\n * @param parentSessionId - durable direct parent whose authority is claimed.\n * @param mode - required continuable-address discriminator.\n * @returns acknowledgement that the cancel signal was admitted, not that the target is quiescent.\n * @throws {RemoteError} `gateway/bad-request` for an empty id,\n * `subagent/unauthorized` when the address does not own the live target,\n * otherwise `gateway/internal`.\n */"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"kind": "method",
|
|
197
|
+
"name": "registerProvider",
|
|
198
|
+
"signature": "registerProvider(provider: SubagentProvider): () => void",
|
|
199
|
+
"summary": "Register a provider under its name.",
|
|
200
|
+
"jsDoc": "/**\n * Register a provider under its name. Registration is effect-scoped and HMR\n * safe; removing a provider blocks new starts but does not revoke runs that\n * were already returned to their holders.\n * @param provider - the trusted provider implementation.\n * @returns the exact Cordis effect disposer.\n */"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "method",
|
|
204
|
+
"name": "getProvider",
|
|
205
|
+
"signature": "getProvider(name: string): SubagentProvider | undefined",
|
|
206
|
+
"summary": "Look up a provider by name.",
|
|
207
|
+
"jsDoc": "/**\n * Look up a provider by name.\n * @param name - the provider name.\n * @returns the provider, or undefined when absent.\n */"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"kind": "method",
|
|
211
|
+
"name": "list",
|
|
212
|
+
"signature": "list(): string[]",
|
|
213
|
+
"summary": "List registered provider names in insertion order.",
|
|
214
|
+
"jsDoc": "/**\n * List registered provider names in insertion order.\n * @returns the registered names.\n */"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "method",
|
|
218
|
+
"name": "start",
|
|
219
|
+
"signature": "async start(name: string, request: SubagentStartRequest): Promise<SubagentRun>",
|
|
220
|
+
"summary": "Establish a published child on the named provider.",
|
|
221
|
+
"jsDoc": "/**\n * Establish a published child on the named provider. Capability and semantic\n * checks run before delegation. Provider ownership lasts until its promise\n * fulfills; a rejection therefore has no run for the caller to dispose and\n * emits no run lifecycle events. Post-publication turn and infrastructure\n * failures settle through the returned run.\n * A catalog append failure disposes the run and handles its result rejection;\n * the caller receives the catalog error even if disposal also fails.\n * @param name - the provider to use.\n * @param request - child label, prompt, parent, signal, and optional capabilities.\n * @returns the published holder-owned run.\n */"
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"types": [
|
|
225
|
+
{
|
|
226
|
+
"name": "AfterScheduleRecord",
|
|
227
|
+
"declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "Agent",
|
|
231
|
+
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "AgentCancelCause",
|
|
235
|
+
"declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "AgentMessageSource",
|
|
239
|
+
"declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "AgentOptions",
|
|
243
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "AgentStatus",
|
|
247
|
+
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "ApprovalOutcome",
|
|
251
|
+
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "ApprovalPolicy",
|
|
255
|
+
"declaration": "export type ApprovalPolicy = 'ask' | 'never';"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "ApprovalRequestId",
|
|
259
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "AssistantMessage",
|
|
263
|
+
"declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "AssistantProviderMetadata",
|
|
267
|
+
"declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "AssistantStreamRecord",
|
|
271
|
+
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "AtScheduleRecord",
|
|
275
|
+
"declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "AttachmentId",
|
|
279
|
+
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "Branded",
|
|
283
|
+
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "BrandedNumber",
|
|
287
|
+
"declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "CancelOptions",
|
|
291
|
+
"declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "CommandId",
|
|
295
|
+
"declaration": "export type CommandId = Branded<'CommandId'>;"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "CommandSource",
|
|
299
|
+
"declaration": "export type CommandSource = CommandSourceMap[keyof CommandSourceMap];"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "CommandSourceMap",
|
|
303
|
+
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "CompactionCheckpointSource",
|
|
307
|
+
"declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "CompactionId",
|
|
311
|
+
"declaration": "export type CompactionId = Branded<'CompactionId'>;"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "ContentBlock",
|
|
315
|
+
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "ContentBlockMap",
|
|
319
|
+
"declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-addition': ToolAdditionBlock;\n 'tool-removal': ToolRemovalBlock;\n}"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "ContentBlockType",
|
|
323
|
+
"declaration": "export type ContentBlockType = keyof ContentBlockMap;"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "ContextFormed",
|
|
327
|
+
"declaration": "export type ContextFormed = { readonly form?: never; } | { readonly form: 'instructions'; } | { readonly form: 'catalog'; } | { readonly form: 'snapshot'; readonly sections: readonly ContextSnapshotSection[]; } | { readonly form: 'notice'; readonly summary: string; } | { readonly form: 'relay'; } | { readonly form: 'recall'; };"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "ContextSnapshotSection",
|
|
331
|
+
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "ContinuableCreateRequest",
|
|
335
|
+
"declaration": "export interface ContinuableCreateRequest {\n readonly sessionId: SessionId;\n readonly parent: Agent;\n readonly signal: AbortSignal;\n}"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "ContinuableCreateSpec",
|
|
339
|
+
"declaration": "export interface ContinuableCreateSpec {\n readonly seed?: readonly SessionEvent[];\n}"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "ContinuableStart",
|
|
343
|
+
"declaration": "export interface ContinuableStart {\n readonly childId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"name": "ContinuableStartSpec",
|
|
347
|
+
"declaration": "export interface ContinuableStartSpec {\n readonly provider: string;\n readonly label: string;\n readonly childId?: SessionId;\n readonly request: Omit<SubagentStartRequest, 'label' | 'signal' | 'outputSchema'>;\n readonly signal: AbortSignal;\n}"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "ContinuableSubagentDescriptorData",
|
|
351
|
+
"declaration": "export interface ContinuableSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'continuable';\n readonly label: string;\n readonly agentProvider?: string;\n readonly agentModel?: string;\n readonly agentReasoningEffort?: ReasoningEffortId;\n readonly persona?: string;\n readonly toolFilter?: ToolRestriction;\n}"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "DeveloperMessage",
|
|
355
|
+
"declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "EpochHeader",
|
|
359
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "EveryScheduleDispatchChange",
|
|
363
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "EveryScheduleRecord",
|
|
367
|
+
"declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "FeedbackCategory",
|
|
371
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "FeedbackRecord",
|
|
375
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "FileAttachmentRef",
|
|
379
|
+
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "FileBlock",
|
|
383
|
+
"declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "FinishReason",
|
|
387
|
+
"declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "FinishReasonMap",
|
|
391
|
+
"declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "GoalBlockReason",
|
|
395
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "GoalChangeMeta",
|
|
399
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "GoalClearChangeMeta",
|
|
403
|
+
"declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "GoalId",
|
|
407
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "GoalMessageSource",
|
|
411
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "GoalOperation",
|
|
415
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "GoalPhase",
|
|
419
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "GoalRef",
|
|
423
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "GoalSnapshot",
|
|
427
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "GoalSnapshotChangeMeta",
|
|
431
|
+
"declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "ImageAttachmentRef",
|
|
435
|
+
"declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "ImageBlock",
|
|
439
|
+
"declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"name": "ImageMediaType",
|
|
443
|
+
"declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "ImageOffloadTarget",
|
|
447
|
+
"declaration": "export interface ImageOffloadTarget {\n seq: SessionSeq;\n imageIndexes: number[];\n}"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "Inbox",
|
|
451
|
+
"declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "InboxTarget",
|
|
455
|
+
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "JsonSchemaNode",
|
|
459
|
+
"declaration": "export interface JsonSchemaNode {\n type?: JsonSchemaType;\n oneOf?: JsonSchemaNode[];\n properties?: Record<string, JsonSchemaNode>;\n required?: string[];\n additionalProperties?: boolean;\n items?: JsonSchemaNode;\n enum?: JsonSchemaScalar[];\n const?: JsonSchemaScalar;\n description?: string;\n title?: string;\n default?: JsonValue;\n examples?: JsonValue;\n}"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "JsonSchemaScalar",
|
|
463
|
+
"declaration": "export type JsonSchemaScalar = string | number | boolean | null;"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "JsonSchemaType",
|
|
467
|
+
"declaration": "export type JsonSchemaType = 'object' | 'array' | 'string' | 'number' | 'integer' | 'boolean' | 'null';"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "JsonValue",
|
|
471
|
+
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "KnownCatalogMode",
|
|
475
|
+
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "LegacyAfterScheduleRecord",
|
|
479
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "LegacyAtScheduleRecord",
|
|
483
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "LegacyEveryScheduleRecord",
|
|
487
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "LegacyScheduleRecord",
|
|
491
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "LlmCallConfig",
|
|
495
|
+
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"name": "LlmCallConfigAdapterDefaults",
|
|
499
|
+
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "LlmFailure",
|
|
503
|
+
"declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"name": "Message",
|
|
507
|
+
"declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "MessageBase",
|
|
511
|
+
"declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "MessageFeedbackDelete",
|
|
515
|
+
"declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "MessageFeedbackItem",
|
|
519
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "MessageFeedbackPut",
|
|
523
|
+
"declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "MessageFeedbackRating",
|
|
527
|
+
"declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "MessageFeedbackVersion",
|
|
531
|
+
"declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "MessageId",
|
|
535
|
+
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "MessageRoleMap",
|
|
539
|
+
"declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "MessageSource",
|
|
543
|
+
"declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "MessageSourceMap",
|
|
547
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n}"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "ModelMessageSource",
|
|
551
|
+
"declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "ModelSelection",
|
|
555
|
+
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "ObjectJsonSchema",
|
|
559
|
+
"declaration": "export type ObjectJsonSchema = JsonSchemaNode & { type: 'object'; };"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "OneShotScheduleDispatchChange",
|
|
563
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"name": "OneShotSubagentDescriptorData",
|
|
567
|
+
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"name": "OptionalSessionSeq",
|
|
571
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "PromptContentPart",
|
|
575
|
+
"declaration": "export type PromptContentPart = { readonly type: 'text'; readonly text: string; } | { readonly type: 'image'; readonly mediaType: ImageMediaType; readonly data: string; readonly name?: string; };"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "ProviderRequestId",
|
|
579
|
+
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "PtcDispatchEventData",
|
|
583
|
+
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "PtcDispatchStartEventData",
|
|
587
|
+
"declaration": "export interface PtcDispatchStartEventData {\n rootCallId: ToolCallId;\n parentCallId: ToolCallId;\n subCallId: ToolCallId;\n name: string;\n arguments: unknown;\n}"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"name": "ReasoningBlock",
|
|
591
|
+
"declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "ReasoningEffortId",
|
|
595
|
+
"declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "ReplayEnvelope",
|
|
599
|
+
"declaration": "export interface ReplayEnvelope {\n response: unknown;\n blocks?: readonly unknown[];\n}"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "RequestContext",
|
|
603
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "RequestHeaderReason",
|
|
607
|
+
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "ResolvedSubagentStartRequest",
|
|
611
|
+
"declaration": "export interface ResolvedSubagentStartRequest extends SubagentStartRequest {\n readonly descriptor: SubagentDescriptorData;\n}"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"name": "SandboxMode",
|
|
615
|
+
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "ScheduleChange",
|
|
619
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "ScheduleCreateChange",
|
|
623
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "ScheduleDeleteChange",
|
|
627
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "ScheduleDispatchChange",
|
|
631
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "ScheduleId",
|
|
635
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "Session",
|
|
639
|
+
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "SessionEvent",
|
|
643
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "SessionEventMap",
|
|
647
|
+
"declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'permission/preset': { preset: string; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'schedule/change': ScheduleChange;\n}"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "SessionEventType",
|
|
651
|
+
"declaration": "export type SessionEventType = keyof SessionEventMap;"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "SessionHeader",
|
|
655
|
+
"declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "SessionId",
|
|
659
|
+
"declaration": "export type SessionId = Branded<'SessionId'>;"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"name": "SessionLogOffset",
|
|
663
|
+
"declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"name": "SessionReferenceSource",
|
|
667
|
+
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedFormatVersion?: number; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"name": "SessionRequestId",
|
|
671
|
+
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"name": "SessionSeq",
|
|
675
|
+
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "SessionSurface",
|
|
679
|
+
"declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "SessionTitleEventData",
|
|
683
|
+
"declaration": "export interface SessionTitleEventData {\n readonly title: string;\n readonly messageSeqs: SessionSeq[];\n readonly source: SessionTitleSource;\n}"
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"name": "SessionTitleModelIdentity",
|
|
687
|
+
"declaration": "export interface SessionTitleModelIdentity {\n readonly provider: string;\n readonly model: string;\n}"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"name": "SessionTitleProviderId",
|
|
691
|
+
"declaration": "export type SessionTitleProviderId = Branded<'SessionTitleProviderId'>;"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "SessionTitleSource",
|
|
695
|
+
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "SkillInvocationSource",
|
|
699
|
+
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"name": "StreamChunk",
|
|
703
|
+
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "SubagentCapabilities",
|
|
707
|
+
"declaration": "export interface SubagentCapabilities {\n readonly agentOptions: boolean;\n readonly outputSchema: boolean;\n readonly depthLimit: boolean;\n readonly toolFilter: boolean;\n readonly persona: boolean;\n}"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "SubagentCatalogEntry",
|
|
711
|
+
"declaration": "export type SubagentCatalogEntry = { readonly id: SessionId; readonly createdAt: number; } & ({ readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; } | { readonly mode: 'unknown'; readonly label?: string; });"
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "SubagentCatalogEvent",
|
|
715
|
+
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })));"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "SubagentCatalogRow",
|
|
719
|
+
"declaration": "export type SubagentCatalogRow = { readonly id: SessionId; readonly activity: 'running' | 'inactive'; } & ({ readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; });"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "SubagentDescendantListEntry",
|
|
723
|
+
"declaration": "export type SubagentDescendantListEntry = SubagentListEntry & { readonly parentId: SessionId; readonly depth: number; };"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"name": "SubagentDescriptorBase",
|
|
727
|
+
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "SubagentDescriptorData",
|
|
731
|
+
"declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"name": "SubagentInterruptAuthority",
|
|
735
|
+
"declaration": "export type SubagentInterruptAuthority = { readonly kind: 'user'; readonly parentSessionId: SessionId; } | { readonly kind: 'ancestor'; readonly agent: Agent; };"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
"name": "SubagentInterruptReceipt",
|
|
739
|
+
"declaration": "export interface SubagentInterruptReceipt {\n readonly accepted: true;\n}"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"name": "SubagentListEntry",
|
|
743
|
+
"declaration": "export type SubagentListEntry = SubagentCatalogRow & { readonly kind: 'child'; readonly hasChildren: boolean; } | { readonly kind: 'diagnostic'; readonly id: SessionId; readonly reason: 'corrupt' | 'unsupported' | 'unavailable'; };"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"name": "SubagentPromptReceipt",
|
|
747
|
+
"declaration": "export interface SubagentPromptReceipt {\n readonly messageId: MessageId;\n}"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"name": "SubagentPromptRequest",
|
|
751
|
+
"declaration": "export interface SubagentPromptRequest {\n readonly requestId: SubagentPromptRequestId;\n readonly parentSessionId: SessionId;\n readonly childSessionId: SessionId;\n readonly mode: 'continuable';\n readonly delivery: 'queue' | 'steer';\n readonly content: readonly PromptContentPart[];\n readonly clientTimeZone?: string;\n}"
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "SubagentPromptRequestId",
|
|
755
|
+
"declaration": "export type SubagentPromptRequestId = Branded<'session-request-id'>;"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "SubagentProvider",
|
|
759
|
+
"declaration": "export interface SubagentProvider {\n readonly name: string;\n readonly capabilities: SubagentCapabilities;\n readonly inheritsParentContext: boolean;\n readonly agentRouteDefaults?: Readonly<{ provider: string; model: string; }>;\n start(request: ResolvedSubagentStartRequest): Promise<SubagentRun>;\n prepareContinuable?(request: ContinuableCreateRequest): Promise<ContinuableCreateSpec>;\n}"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "SubagentResult",
|
|
763
|
+
"declaration": "export interface SubagentResult {\n readonly output: readonly ContentBlock[];\n readonly structured?: unknown;\n readonly diagnostic?: string;\n readonly stopReason: SubagentStopReason;\n}"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"name": "SubagentRun",
|
|
767
|
+
"declaration": "export interface SubagentRun {\n readonly id: SessionId;\n readonly localAgent: Agent | undefined;\n readonly result: Promise<SubagentResult>;\n dispose(): Promise<void>;\n}"
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"name": "SubagentSendMessageOptions",
|
|
771
|
+
"declaration": "export interface SubagentSendMessageOptions {\n readonly signal: AbortSignal;\n}"
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
"name": "SubagentSettledMessageSource",
|
|
775
|
+
"declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "SubagentStartRequest",
|
|
779
|
+
"declaration": "export interface SubagentStartRequest {\n readonly label?: string;\n readonly prompt: ContentBlock[];\n readonly parent: Agent;\n readonly signal: AbortSignal;\n readonly agentOptions?: AgentOptions;\n readonly outputSchema?: ObjectJsonSchema;\n readonly maxDepth?: number;\n readonly toolFilter?: ToolRestriction;\n readonly persona?: string;\n}"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"name": "SubagentStopReason",
|
|
783
|
+
"declaration": "export type SubagentStopReason = SubagentStopReasonMap[keyof SubagentStopReasonMap];"
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"name": "SubagentStopReasonMap",
|
|
787
|
+
"declaration": "export interface SubagentStopReasonMap {\n completed: 'completed';\n aborted: 'aborted';\n error: 'error';\n 'max-tokens': 'max-tokens';\n refusal: 'refusal';\n}"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "SurfaceEventType",
|
|
791
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "SurfaceIntent",
|
|
795
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "SurfaceOp",
|
|
799
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"name": "SystemMessage",
|
|
803
|
+
"declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "SystemPromptMessageSource",
|
|
807
|
+
"declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "SystemPromptUpdate",
|
|
811
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "TextBlock",
|
|
815
|
+
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"name": "TodoItem",
|
|
819
|
+
"declaration": "export interface TodoItem {\n content: string;\n status: 'pending' | 'in_progress' | 'completed';\n}"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"name": "TokenUsage",
|
|
823
|
+
"declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"name": "ToolAdditionBlock",
|
|
827
|
+
"declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"name": "ToolCallBlock",
|
|
831
|
+
"declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "ToolCallId",
|
|
835
|
+
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "ToolHistory",
|
|
839
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "ToolMessageSource",
|
|
843
|
+
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "ToolRemovalBlock",
|
|
847
|
+
"declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"name": "ToolRestriction",
|
|
851
|
+
"declaration": "export interface ToolRestriction {\n readonly allow?: readonly string[];\n readonly deny?: readonly string[];\n}"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"name": "ToolResultMessage",
|
|
855
|
+
"declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "ToolSchema",
|
|
859
|
+
"declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"name": "TurnEndCancelCause",
|
|
863
|
+
"declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "TurnEndReason",
|
|
867
|
+
"declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "TurnEndReasonMap",
|
|
871
|
+
"declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n forked: { kind: 'forked'; };\n}"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"name": "UserMessage",
|
|
875
|
+
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
876
|
+
}
|
|
877
|
+
]
|
|
878
|
+
}
|
|
879
|
+
],
|
|
880
|
+
"events": [
|
|
881
|
+
{
|
|
882
|
+
"description": "A published child settled. Scope-filtered dispatch uses the same delegating parent carrier as `subagent/start`, so the lifecycle pair reaches the same scoped audience.",
|
|
883
|
+
"summary": "A published child settled.",
|
|
884
|
+
"tags": [
|
|
885
|
+
{
|
|
886
|
+
"name": "param",
|
|
887
|
+
"argument": "info",
|
|
888
|
+
"comment": "- the run identity and terminal outcome.",
|
|
889
|
+
"text": "@param info - the run identity and terminal outcome.\n *"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "dshScopeScan",
|
|
893
|
+
"comment": "unsupported",
|
|
894
|
+
"text": "@dshScopeScan unsupported\n *"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "mode",
|
|
898
|
+
"comment": "emit",
|
|
899
|
+
"text": "@mode emit"
|
|
900
|
+
}
|
|
901
|
+
],
|
|
902
|
+
"jsDoc": "/**\n * A published child settled. Scope-filtered dispatch uses the same delegating\n * parent carrier as `subagent/start`, so the lifecycle pair reaches the\n * same scoped audience.\n * @param info - the run identity and terminal outcome.\n * @dshScopeScan unsupported\n * @mode emit\n */",
|
|
903
|
+
"name": "subagent/end",
|
|
904
|
+
"mode": "emit",
|
|
905
|
+
"signature": "'subagent/end'(this: Scoped<SubagentRuntime>, info: SubagentRunEndInfo): void"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"description": "A provider became resolvable in the registry.",
|
|
909
|
+
"summary": "A provider became resolvable in the registry.",
|
|
910
|
+
"tags": [
|
|
911
|
+
{
|
|
912
|
+
"name": "param",
|
|
913
|
+
"argument": "provider",
|
|
914
|
+
"comment": "- the registered provider.",
|
|
915
|
+
"text": "@param provider - the registered provider.\n *"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"name": "mode",
|
|
919
|
+
"comment": "emit",
|
|
920
|
+
"text": "@mode emit"
|
|
921
|
+
}
|
|
922
|
+
],
|
|
923
|
+
"jsDoc": "/**\n * A provider became resolvable in the registry.\n * @param provider - the registered provider.\n * @mode emit\n */",
|
|
924
|
+
"name": "subagent/provider-added",
|
|
925
|
+
"mode": "emit",
|
|
926
|
+
"signature": "'subagent/provider-added'(provider: SubagentProvider): void"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"description": "A provider left the registry. Accepted runs remain holder-owned.",
|
|
930
|
+
"summary": "A provider left the registry.",
|
|
931
|
+
"tags": [
|
|
932
|
+
{
|
|
933
|
+
"name": "param",
|
|
934
|
+
"argument": "name",
|
|
935
|
+
"comment": "- the provider name that no longer resolves.",
|
|
936
|
+
"text": "@param name - the provider name that no longer resolves.\n *"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"name": "mode",
|
|
940
|
+
"comment": "emit",
|
|
941
|
+
"text": "@mode emit"
|
|
942
|
+
}
|
|
943
|
+
],
|
|
944
|
+
"jsDoc": "/**\n * A provider left the registry. Accepted runs remain holder-owned.\n * @param name - the provider name that no longer resolves.\n * @mode emit\n */",
|
|
945
|
+
"name": "subagent/provider-removed",
|
|
946
|
+
"mode": "emit",
|
|
947
|
+
"signature": "'subagent/provider-removed'(name: string): void"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"description": "A provider established a published child. For in-process providers, `ctx.agents.get(info.id)` resolves during this notification. Scope-filtered dispatch keys the carrier by the delegating parent, so a parent-scoped listener observes only its own delegations. Paired with `subagent/end`.",
|
|
951
|
+
"summary": "A provider established a published child.",
|
|
952
|
+
"tags": [
|
|
953
|
+
{
|
|
954
|
+
"name": "param",
|
|
955
|
+
"argument": "info",
|
|
956
|
+
"comment": "- the provider and published child identity.",
|
|
957
|
+
"text": "@param info - the provider and published child identity.\n *"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "dshScopeScan",
|
|
961
|
+
"comment": "unsupported",
|
|
962
|
+
"text": "@dshScopeScan unsupported\n *"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "mode",
|
|
966
|
+
"comment": "emit",
|
|
967
|
+
"text": "@mode emit"
|
|
968
|
+
}
|
|
969
|
+
],
|
|
970
|
+
"jsDoc": "/**\n * A provider established a published child. For in-process providers,\n * `ctx.agents.get(info.id)` resolves during this notification.\n * Scope-filtered dispatch keys the carrier by the delegating parent, so a\n * parent-scoped listener observes only its own delegations. Paired with\n * `subagent/end`.\n * @param info - the provider and published child identity.\n * @dshScopeScan unsupported\n * @mode emit\n */",
|
|
971
|
+
"name": "subagent/start",
|
|
972
|
+
"mode": "emit",
|
|
973
|
+
"signature": "'subagent/start'(this: Scoped<SubagentRuntime>, info: SubagentRunInfo): void"
|
|
974
|
+
}
|
|
975
|
+
],
|
|
976
|
+
"objects": []
|
|
977
|
+
},
|
|
978
|
+
}
|