@tickernelz/paperclip-pro-adapter-utils 2026.925.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/acpx-engine/cli.d.ts +2 -0
- package/dist/acpx-engine/cli.d.ts.map +1 -0
- package/dist/acpx-engine/cli.js +128 -0
- package/dist/acpx-engine/cli.js.map +1 -0
- package/dist/acpx-engine/composed-run-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/composed-run-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/composed-run-characterization.test.js +739 -0
- package/dist/acpx-engine/composed-run-characterization.test.js.map +1 -0
- package/dist/acpx-engine/constants.d.ts +20 -0
- package/dist/acpx-engine/constants.d.ts.map +1 -0
- package/dist/acpx-engine/constants.js +37 -0
- package/dist/acpx-engine/constants.js.map +1 -0
- package/dist/acpx-engine/execute-identity.test.d.ts +2 -0
- package/dist/acpx-engine/execute-identity.test.d.ts.map +1 -0
- package/dist/acpx-engine/execute-identity.test.js +218 -0
- package/dist/acpx-engine/execute-identity.test.js.map +1 -0
- package/dist/acpx-engine/execute.d.ts +325 -0
- package/dist/acpx-engine/execute.d.ts.map +1 -0
- package/dist/acpx-engine/execute.js +4448 -0
- package/dist/acpx-engine/execute.js.map +1 -0
- package/dist/acpx-engine/execute.test.d.ts +2 -0
- package/dist/acpx-engine/execute.test.d.ts.map +1 -0
- package/dist/acpx-engine/execute.test.js +6694 -0
- package/dist/acpx-engine/execute.test.js.map +1 -0
- package/dist/acpx-engine/index.d.ts +6 -0
- package/dist/acpx-engine/index.d.ts.map +1 -0
- package/dist/acpx-engine/index.js +6 -0
- package/dist/acpx-engine/index.js.map +1 -0
- package/dist/acpx-engine/local-process-control.d.ts +5 -0
- package/dist/acpx-engine/local-process-control.d.ts.map +1 -0
- package/dist/acpx-engine/local-process-control.js +39 -0
- package/dist/acpx-engine/local-process-control.js.map +1 -0
- package/dist/acpx-engine/local-process-control.test.d.ts +2 -0
- package/dist/acpx-engine/local-process-control.test.d.ts.map +1 -0
- package/dist/acpx-engine/local-process-control.test.js +38 -0
- package/dist/acpx-engine/local-process-control.test.js.map +1 -0
- package/dist/acpx-engine/operator-stop.test.d.ts +2 -0
- package/dist/acpx-engine/operator-stop.test.d.ts.map +1 -0
- package/dist/acpx-engine/operator-stop.test.js +107 -0
- package/dist/acpx-engine/operator-stop.test.js.map +1 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.d.ts +2 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.d.ts.map +1 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.js +151 -0
- package/dist/acpx-engine/remote-spawn-smoke.test.js.map +1 -0
- package/dist/acpx-engine/run-contracts.d.ts +413 -0
- package/dist/acpx-engine/run-contracts.d.ts.map +1 -0
- package/dist/acpx-engine/run-contracts.js +20 -0
- package/dist/acpx-engine/run-contracts.js.map +1 -0
- package/dist/acpx-engine/run-contracts.test.d.ts +2 -0
- package/dist/acpx-engine/run-contracts.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-contracts.test.js +57 -0
- package/dist/acpx-engine/run-contracts.test.js.map +1 -0
- package/dist/acpx-engine/run-coordinator.d.ts +57 -0
- package/dist/acpx-engine/run-coordinator.d.ts.map +1 -0
- package/dist/acpx-engine/run-coordinator.js +63 -0
- package/dist/acpx-engine/run-coordinator.js.map +1 -0
- package/dist/acpx-engine/run-coordinator.test.d.ts +2 -0
- package/dist/acpx-engine/run-coordinator.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-coordinator.test.js +160 -0
- package/dist/acpx-engine/run-coordinator.test.js.map +1 -0
- package/dist/acpx-engine/run-fault-matrix.test.d.ts +2 -0
- package/dist/acpx-engine/run-fault-matrix.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-fault-matrix.test.js +829 -0
- package/dist/acpx-engine/run-fault-matrix.test.js.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.d.ts +30 -0
- package/dist/acpx-engine/run-resource-ledger.d.ts.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.js +148 -0
- package/dist/acpx-engine/run-resource-ledger.js.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.test.d.ts +2 -0
- package/dist/acpx-engine/run-resource-ledger.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-resource-ledger.test.js +154 -0
- package/dist/acpx-engine/run-resource-ledger.test.js.map +1 -0
- package/dist/acpx-engine/run-site-host.d.ts +73 -0
- package/dist/acpx-engine/run-site-host.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-host.js +65 -0
- package/dist/acpx-engine/run-site-host.js.map +1 -0
- package/dist/acpx-engine/run-site-host.test.d.ts +2 -0
- package/dist/acpx-engine/run-site-host.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-host.test.js +98 -0
- package/dist/acpx-engine/run-site-host.test.js.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.d.ts +142 -0
- package/dist/acpx-engine/run-site-sandbox.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.js +278 -0
- package/dist/acpx-engine/run-site-sandbox.js.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.test.d.ts +2 -0
- package/dist/acpx-engine/run-site-sandbox.test.d.ts.map +1 -0
- package/dist/acpx-engine/run-site-sandbox.test.js +275 -0
- package/dist/acpx-engine/run-site-sandbox.test.js.map +1 -0
- package/dist/acpx-engine/session-codec.d.ts +3 -0
- package/dist/acpx-engine/session-codec.d.ts.map +1 -0
- package/dist/acpx-engine/session-codec.js +49 -0
- package/dist/acpx-engine/session-codec.js.map +1 -0
- package/dist/acpx-engine/session-reuse-store.d.ts +62 -0
- package/dist/acpx-engine/session-reuse-store.d.ts.map +1 -0
- package/dist/acpx-engine/session-reuse-store.js +134 -0
- package/dist/acpx-engine/session-reuse-store.js.map +1 -0
- package/dist/acpx-engine/session-reuse-store.test.d.ts +2 -0
- package/dist/acpx-engine/session-reuse-store.test.d.ts.map +1 -0
- package/dist/acpx-engine/session-reuse-store.test.js +134 -0
- package/dist/acpx-engine/session-reuse-store.test.js.map +1 -0
- package/dist/acpx-engine/settlement-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/settlement-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/settlement-characterization.test.js +880 -0
- package/dist/acpx-engine/settlement-characterization.test.js.map +1 -0
- package/dist/acpx-engine/settlement-sequence.d.ts +77 -0
- package/dist/acpx-engine/settlement-sequence.d.ts.map +1 -0
- package/dist/acpx-engine/settlement-sequence.js +119 -0
- package/dist/acpx-engine/settlement-sequence.js.map +1 -0
- package/dist/acpx-engine/settlement-sequence.test.d.ts +2 -0
- package/dist/acpx-engine/settlement-sequence.test.d.ts.map +1 -0
- package/dist/acpx-engine/settlement-sequence.test.js +272 -0
- package/dist/acpx-engine/settlement-sequence.test.js.map +1 -0
- package/dist/acpx-engine/spawn-smoke.test.d.ts +2 -0
- package/dist/acpx-engine/spawn-smoke.test.d.ts.map +1 -0
- package/dist/acpx-engine/spawn-smoke.test.js +184 -0
- package/dist/acpx-engine/spawn-smoke.test.js.map +1 -0
- package/dist/acpx-engine/startup-cancellation.d.ts +8 -0
- package/dist/acpx-engine/startup-cancellation.d.ts.map +1 -0
- package/dist/acpx-engine/startup-cancellation.js +92 -0
- package/dist/acpx-engine/startup-cancellation.js.map +1 -0
- package/dist/acpx-engine/startup-cancellation.test.d.ts +2 -0
- package/dist/acpx-engine/startup-cancellation.test.d.ts.map +1 -0
- package/dist/acpx-engine/startup-cancellation.test.js +115 -0
- package/dist/acpx-engine/startup-cancellation.test.js.map +1 -0
- package/dist/acpx-engine/startup-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/startup-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/startup-characterization.test.js +742 -0
- package/dist/acpx-engine/startup-characterization.test.js.map +1 -0
- package/dist/acpx-engine/startup-timing.d.ts +419 -0
- package/dist/acpx-engine/startup-timing.d.ts.map +1 -0
- package/dist/acpx-engine/startup-timing.js +616 -0
- package/dist/acpx-engine/startup-timing.js.map +1 -0
- package/dist/acpx-engine/startup-timing.test.d.ts +2 -0
- package/dist/acpx-engine/startup-timing.test.d.ts.map +1 -0
- package/dist/acpx-engine/startup-timing.test.js +619 -0
- package/dist/acpx-engine/startup-timing.test.js.map +1 -0
- package/dist/acpx-engine/turn-characterization.test.d.ts +2 -0
- package/dist/acpx-engine/turn-characterization.test.d.ts.map +1 -0
- package/dist/acpx-engine/turn-characterization.test.js +566 -0
- package/dist/acpx-engine/turn-characterization.test.js.map +1 -0
- package/dist/acpx-engine/turn-sequence.d.ts +54 -0
- package/dist/acpx-engine/turn-sequence.d.ts.map +1 -0
- package/dist/acpx-engine/turn-sequence.js +75 -0
- package/dist/acpx-engine/turn-sequence.js.map +1 -0
- package/dist/acpx-engine/turn-sequence.test.d.ts +2 -0
- package/dist/acpx-engine/turn-sequence.test.d.ts.map +1 -0
- package/dist/acpx-engine/turn-sequence.test.js +177 -0
- package/dist/acpx-engine/turn-sequence.test.js.map +1 -0
- package/dist/acpx-engine/ui.d.ts +3 -0
- package/dist/acpx-engine/ui.d.ts.map +1 -0
- package/dist/acpx-engine/ui.js +162 -0
- package/dist/acpx-engine/ui.js.map +1 -0
- package/dist/billing.d.ts +2 -0
- package/dist/billing.d.ts.map +1 -0
- package/dist/billing.js +16 -0
- package/dist/billing.js.map +1 -0
- package/dist/billing.test.d.ts +2 -0
- package/dist/billing.test.d.ts.map +1 -0
- package/dist/billing.test.js +14 -0
- package/dist/billing.test.js.map +1 -0
- package/dist/bridge-transport-contract.d.ts +43 -0
- package/dist/bridge-transport-contract.d.ts.map +1 -0
- package/dist/bridge-transport-contract.js +33 -0
- package/dist/bridge-transport-contract.js.map +1 -0
- package/dist/chat-file-delivery.d.ts +10 -0
- package/dist/chat-file-delivery.d.ts.map +1 -0
- package/dist/chat-file-delivery.js +38 -0
- package/dist/chat-file-delivery.js.map +1 -0
- package/dist/chat-file-delivery.test.d.ts +2 -0
- package/dist/chat-file-delivery.test.d.ts.map +1 -0
- package/dist/chat-file-delivery.test.js +92 -0
- package/dist/chat-file-delivery.test.js.map +1 -0
- package/dist/command-managed-runtime.d.ts +162 -0
- package/dist/command-managed-runtime.d.ts.map +1 -0
- package/dist/command-managed-runtime.js +456 -0
- package/dist/command-managed-runtime.js.map +1 -0
- package/dist/command-managed-runtime.test.d.ts +2 -0
- package/dist/command-managed-runtime.test.d.ts.map +1 -0
- package/dist/command-managed-runtime.test.js +908 -0
- package/dist/command-managed-runtime.test.js.map +1 -0
- package/dist/command-redaction.d.ts +15 -0
- package/dist/command-redaction.d.ts.map +1 -0
- package/dist/command-redaction.js +97 -0
- package/dist/command-redaction.js.map +1 -0
- package/dist/command-redaction.test.d.ts +2 -0
- package/dist/command-redaction.test.d.ts.map +1 -0
- package/dist/command-redaction.test.js +80 -0
- package/dist/command-redaction.test.js.map +1 -0
- package/dist/duplex-frame-codec.d.ts +124 -0
- package/dist/duplex-frame-codec.d.ts.map +1 -0
- package/dist/duplex-frame-codec.js +134 -0
- package/dist/duplex-frame-codec.js.map +1 -0
- package/dist/duplex-frame-codec.test.d.ts +2 -0
- package/dist/duplex-frame-codec.test.d.ts.map +1 -0
- package/dist/duplex-frame-codec.test.js +172 -0
- package/dist/duplex-frame-codec.test.js.map +1 -0
- package/dist/duplex-observability.d.ts +220 -0
- package/dist/duplex-observability.d.ts.map +1 -0
- package/dist/duplex-observability.js +248 -0
- package/dist/duplex-observability.js.map +1 -0
- package/dist/duplex-observability.test.d.ts +2 -0
- package/dist/duplex-observability.test.d.ts.map +1 -0
- package/dist/duplex-observability.test.js +55 -0
- package/dist/duplex-observability.test.js.map +1 -0
- package/dist/env-bindings.d.ts +17 -0
- package/dist/env-bindings.d.ts.map +1 -0
- package/dist/env-bindings.js +98 -0
- package/dist/env-bindings.js.map +1 -0
- package/dist/env-bindings.test.d.ts +2 -0
- package/dist/env-bindings.test.d.ts.map +1 -0
- package/dist/env-bindings.test.js +66 -0
- package/dist/env-bindings.test.js.map +1 -0
- package/dist/exclude-patterns.d.ts +4 -0
- package/dist/exclude-patterns.d.ts.map +1 -0
- package/dist/exclude-patterns.js +26 -0
- package/dist/exclude-patterns.js.map +1 -0
- package/dist/execution-target-sandbox.test.d.ts +2 -0
- package/dist/execution-target-sandbox.test.d.ts.map +1 -0
- package/dist/execution-target-sandbox.test.js +6522 -0
- package/dist/execution-target-sandbox.test.js.map +1 -0
- package/dist/execution-target-stdin-race.test.d.ts +2 -0
- package/dist/execution-target-stdin-race.test.d.ts.map +1 -0
- package/dist/execution-target-stdin-race.test.js +1842 -0
- package/dist/execution-target-stdin-race.test.js.map +1 -0
- package/dist/execution-target.d.ts +537 -0
- package/dist/execution-target.d.ts.map +1 -0
- package/dist/execution-target.js +3877 -0
- package/dist/execution-target.js.map +1 -0
- package/dist/execution-target.test.d.ts +2 -0
- package/dist/execution-target.test.d.ts.map +1 -0
- package/dist/execution-target.test.js +346 -0
- package/dist/execution-target.test.js.map +1 -0
- package/dist/git-workspace-sync.d.ts +193 -0
- package/dist/git-workspace-sync.d.ts.map +1 -0
- package/dist/git-workspace-sync.js +786 -0
- package/dist/git-workspace-sync.js.map +1 -0
- package/dist/git-workspace-sync.test.d.ts +2 -0
- package/dist/git-workspace-sync.test.d.ts.map +1 -0
- package/dist/git-workspace-sync.test.js +830 -0
- package/dist/git-workspace-sync.test.js.map +1 -0
- package/dist/github-launcher-environment.test.d.ts +2 -0
- package/dist/github-launcher-environment.test.d.ts.map +1 -0
- package/dist/github-launcher-environment.test.js +285 -0
- package/dist/github-launcher-environment.test.js.map +1 -0
- package/dist/github-launcher.d.ts +8 -0
- package/dist/github-launcher.d.ts.map +1 -0
- package/dist/github-launcher.js +127 -0
- package/dist/github-launcher.js.map +1 -0
- package/dist/github-launcher.test.d.ts +2 -0
- package/dist/github-launcher.test.d.ts.map +1 -0
- package/dist/github-launcher.test.js +166 -0
- package/dist/github-launcher.test.js.map +1 -0
- package/dist/http2-bridge-server.d.ts +465 -0
- package/dist/http2-bridge-server.d.ts.map +1 -0
- package/dist/http2-bridge-server.js +1087 -0
- package/dist/http2-bridge-server.js.map +1 -0
- package/dist/http2-bridge-server.test.d.ts +2 -0
- package/dist/http2-bridge-server.test.d.ts.map +1 -0
- package/dist/http2-bridge-server.test.js +2129 -0
- package/dist/http2-bridge-server.test.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/local-process-sandbox.d.ts +41 -0
- package/dist/local-process-sandbox.d.ts.map +1 -0
- package/dist/local-process-sandbox.js +432 -0
- package/dist/local-process-sandbox.js.map +1 -0
- package/dist/local-process-sandbox.test.d.ts +2 -0
- package/dist/local-process-sandbox.test.d.ts.map +1 -0
- package/dist/local-process-sandbox.test.js +399 -0
- package/dist/local-process-sandbox.test.js.map +1 -0
- package/dist/log-redaction.d.ts +9 -0
- package/dist/log-redaction.d.ts.map +1 -0
- package/dist/log-redaction.js +88 -0
- package/dist/log-redaction.js.map +1 -0
- package/dist/login-capability.d.ts +88 -0
- package/dist/login-capability.d.ts.map +1 -0
- package/dist/login-capability.js +78 -0
- package/dist/login-capability.js.map +1 -0
- package/dist/login-capability.test.d.ts +2 -0
- package/dist/login-capability.test.d.ts.map +1 -0
- package/dist/login-capability.test.js +78 -0
- package/dist/login-capability.test.js.map +1 -0
- package/dist/login-pty-transport.d.ts +80 -0
- package/dist/login-pty-transport.d.ts.map +1 -0
- package/dist/login-pty-transport.js +75 -0
- package/dist/login-pty-transport.js.map +1 -0
- package/dist/login-pty-transport.test.d.ts +2 -0
- package/dist/login-pty-transport.test.d.ts.map +1 -0
- package/dist/login-pty-transport.test.js +185 -0
- package/dist/login-pty-transport.test.js.map +1 -0
- package/dist/login-runner-lifecycle.d.ts +70 -0
- package/dist/login-runner-lifecycle.d.ts.map +1 -0
- package/dist/login-runner-lifecycle.js +52 -0
- package/dist/login-runner-lifecycle.js.map +1 -0
- package/dist/login-runner-lifecycle.test.d.ts +2 -0
- package/dist/login-runner-lifecycle.test.d.ts.map +1 -0
- package/dist/login-runner-lifecycle.test.js +122 -0
- package/dist/login-runner-lifecycle.test.js.map +1 -0
- package/dist/mcp-isolation.integration.test.d.ts +2 -0
- package/dist/mcp-isolation.integration.test.d.ts.map +1 -0
- package/dist/mcp-isolation.integration.test.js +202 -0
- package/dist/mcp-isolation.integration.test.js.map +1 -0
- package/dist/paperclip-runner-permissions.d.ts +110 -0
- package/dist/paperclip-runner-permissions.d.ts.map +1 -0
- package/dist/paperclip-runner-permissions.js +150 -0
- package/dist/paperclip-runner-permissions.js.map +1 -0
- package/dist/paperclip-runner-permissions.test.d.ts +2 -0
- package/dist/paperclip-runner-permissions.test.d.ts.map +1 -0
- package/dist/paperclip-runner-permissions.test.js +47 -0
- package/dist/paperclip-runner-permissions.test.js.map +1 -0
- package/dist/published-exports.test.d.ts +2 -0
- package/dist/published-exports.test.d.ts.map +1 -0
- package/dist/published-exports.test.js +17 -0
- package/dist/published-exports.test.js.map +1 -0
- package/dist/remote-execution-env.d.ts +2 -0
- package/dist/remote-execution-env.d.ts.map +1 -0
- package/dist/remote-execution-env.js +46 -0
- package/dist/remote-execution-env.js.map +1 -0
- package/dist/remote-managed-runtime.d.ts +45 -0
- package/dist/remote-managed-runtime.d.ts.map +1 -0
- package/dist/remote-managed-runtime.js +183 -0
- package/dist/remote-managed-runtime.js.map +1 -0
- package/dist/remote-managed-runtime.test.d.ts +2 -0
- package/dist/remote-managed-runtime.test.d.ts.map +1 -0
- package/dist/remote-managed-runtime.test.js +294 -0
- package/dist/remote-managed-runtime.test.js.map +1 -0
- package/dist/runner-connectivity.d.ts +61 -0
- package/dist/runner-connectivity.d.ts.map +1 -0
- package/dist/runner-connectivity.js +81 -0
- package/dist/runner-connectivity.js.map +1 -0
- package/dist/runner-connectivity.test.d.ts +2 -0
- package/dist/runner-connectivity.test.d.ts.map +1 -0
- package/dist/runner-connectivity.test.js +183 -0
- package/dist/runner-connectivity.test.js.map +1 -0
- package/dist/runtime-progress.d.ts +48 -0
- package/dist/runtime-progress.d.ts.map +1 -0
- package/dist/runtime-progress.js +99 -0
- package/dist/runtime-progress.js.map +1 -0
- package/dist/runtime-progress.test.d.ts +2 -0
- package/dist/runtime-progress.test.d.ts.map +1 -0
- package/dist/runtime-progress.test.js +240 -0
- package/dist/runtime-progress.test.js.map +1 -0
- package/dist/sandbox-callback-bridge-body.d.ts +12 -0
- package/dist/sandbox-callback-bridge-body.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge-body.js +39 -0
- package/dist/sandbox-callback-bridge-body.js.map +1 -0
- package/dist/sandbox-callback-bridge-body.test.d.ts +2 -0
- package/dist/sandbox-callback-bridge-body.test.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge-body.test.js +31 -0
- package/dist/sandbox-callback-bridge-body.test.js.map +1 -0
- package/dist/sandbox-callback-bridge.d.ts +268 -0
- package/dist/sandbox-callback-bridge.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge.js +2357 -0
- package/dist/sandbox-callback-bridge.js.map +1 -0
- package/dist/sandbox-callback-bridge.test.d.ts +2 -0
- package/dist/sandbox-callback-bridge.test.d.ts.map +1 -0
- package/dist/sandbox-callback-bridge.test.js +3253 -0
- package/dist/sandbox-callback-bridge.test.js.map +1 -0
- package/dist/sandbox-file-sync.test.d.ts +2 -0
- package/dist/sandbox-file-sync.test.d.ts.map +1 -0
- package/dist/sandbox-file-sync.test.js +419 -0
- package/dist/sandbox-file-sync.test.js.map +1 -0
- package/dist/sandbox-install-command.d.ts +2 -0
- package/dist/sandbox-install-command.d.ts.map +1 -0
- package/dist/sandbox-install-command.js +47 -0
- package/dist/sandbox-install-command.js.map +1 -0
- package/dist/sandbox-install-command.test.d.ts +2 -0
- package/dist/sandbox-install-command.test.d.ts.map +1 -0
- package/dist/sandbox-install-command.test.js +22 -0
- package/dist/sandbox-install-command.test.js.map +1 -0
- package/dist/sandbox-managed-runtime.d.ts +417 -0
- package/dist/sandbox-managed-runtime.d.ts.map +1 -0
- package/dist/sandbox-managed-runtime.js +1337 -0
- package/dist/sandbox-managed-runtime.js.map +1 -0
- package/dist/sandbox-managed-runtime.test.d.ts +2 -0
- package/dist/sandbox-managed-runtime.test.d.ts.map +1 -0
- package/dist/sandbox-managed-runtime.test.js +3746 -0
- package/dist/sandbox-managed-runtime.test.js.map +1 -0
- package/dist/sandbox-run-log-stream.d.ts +44 -0
- package/dist/sandbox-run-log-stream.d.ts.map +1 -0
- package/dist/sandbox-run-log-stream.js +203 -0
- package/dist/sandbox-run-log-stream.js.map +1 -0
- package/dist/sandbox-shell.d.ts +3 -0
- package/dist/sandbox-shell.d.ts.map +1 -0
- package/dist/sandbox-shell.js +7 -0
- package/dist/sandbox-shell.js.map +1 -0
- package/dist/server-utils-env.test.d.ts +2 -0
- package/dist/server-utils-env.test.d.ts.map +1 -0
- package/dist/server-utils-env.test.js +15 -0
- package/dist/server-utils-env.test.js.map +1 -0
- package/dist/server-utils.d.ts +617 -0
- package/dist/server-utils.d.ts.map +1 -0
- package/dist/server-utils.js +3258 -0
- package/dist/server-utils.js.map +1 -0
- package/dist/server-utils.test.d.ts +2 -0
- package/dist/server-utils.test.d.ts.map +1 -0
- package/dist/server-utils.test.js +3047 -0
- package/dist/server-utils.test.js.map +1 -0
- package/dist/session-compaction.d.ts +25 -0
- package/dist/session-compaction.d.ts.map +1 -0
- package/dist/session-compaction.js +165 -0
- package/dist/session-compaction.js.map +1 -0
- package/dist/skill-library-manifest.d.ts +6 -0
- package/dist/skill-library-manifest.d.ts.map +1 -0
- package/dist/skill-library-manifest.js +53 -0
- package/dist/skill-library-manifest.js.map +1 -0
- package/dist/skill-library-manifest.test.d.ts +2 -0
- package/dist/skill-library-manifest.test.d.ts.map +1 -0
- package/dist/skill-library-manifest.test.js +84 -0
- package/dist/skill-library-manifest.test.js.map +1 -0
- package/dist/skills-staging-follow-symlinks.test.d.ts +2 -0
- package/dist/skills-staging-follow-symlinks.test.d.ts.map +1 -0
- package/dist/skills-staging-follow-symlinks.test.js +126 -0
- package/dist/skills-staging-follow-symlinks.test.js.map +1 -0
- package/dist/ssh-fixture.test.d.ts +2 -0
- package/dist/ssh-fixture.test.d.ts.map +1 -0
- package/dist/ssh-fixture.test.js +832 -0
- package/dist/ssh-fixture.test.js.map +1 -0
- package/dist/ssh.d.ts +124 -0
- package/dist/ssh.d.ts.map +1 -0
- package/dist/ssh.js +1667 -0
- package/dist/ssh.js.map +1 -0
- package/dist/sync-operation-schedule.d.ts +17 -0
- package/dist/sync-operation-schedule.d.ts.map +1 -0
- package/dist/sync-operation-schedule.js +66 -0
- package/dist/sync-operation-schedule.js.map +1 -0
- package/dist/sync-operation-schedule.test.d.ts +2 -0
- package/dist/sync-operation-schedule.test.d.ts.map +1 -0
- package/dist/sync-operation-schedule.test.js +130 -0
- package/dist/sync-operation-schedule.test.js.map +1 -0
- package/dist/test-support/mcp-isolation-harness.d.ts +23 -0
- package/dist/test-support/mcp-isolation-harness.d.ts.map +1 -0
- package/dist/test-support/mcp-isolation-harness.js +67 -0
- package/dist/test-support/mcp-isolation-harness.js.map +1 -0
- package/dist/types.d.ts +780 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/dist/workspace-restore-merge.d.ts +77 -0
- package/dist/workspace-restore-merge.d.ts.map +1 -0
- package/dist/workspace-restore-merge.js +396 -0
- package/dist/workspace-restore-merge.js.map +1 -0
- package/dist/workspace-restore-merge.test.d.ts +2 -0
- package/dist/workspace-restore-merge.test.d.ts.map +1 -0
- package/dist/workspace-restore-merge.test.js +438 -0
- package/dist/workspace-restore-merge.test.js.map +1 -0
- package/dist/workspace-restore-teardown.d.ts +29 -0
- package/dist/workspace-restore-teardown.d.ts.map +1 -0
- package/dist/workspace-restore-teardown.js +34 -0
- package/dist/workspace-restore-teardown.js.map +1 -0
- package/dist/workspace-restore-teardown.test.d.ts +2 -0
- package/dist/workspace-restore-teardown.test.d.ts.map +1 -0
- package/dist/workspace-restore-teardown.test.js +71 -0
- package/dist/workspace-restore-teardown.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/LICENSE +191 -0
- package/node_modules/@agentclientprotocol/sdk/README.md +70 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.d.ts +1803 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js +1869 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js +5036 -0
- package/node_modules/@agentclientprotocol/sdk/dist/acp.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.d.ts +89 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.js +490 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js +507 -0
- package/node_modules/@agentclientprotocol/sdk/dist/connection.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.d.ts +26 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js +96 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js +77 -0
- package/node_modules/@agentclientprotocol/sdk/dist/cookie-store.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js +232 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js +132 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.d.ts +9 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +221 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js +86 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js +112 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/http-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js +88 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/ws-client.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.d.ts +33 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js +435 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js +1380 -0
- package/node_modules/@agentclientprotocol/sdk/dist/http-stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.d.ts +603 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js +1076 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js +917 -0
- package/node_modules/@agentclientprotocol/sdk/dist/jsonrpc.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.d.ts +22 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js +64 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js +45 -0
- package/node_modules/@agentclientprotocol/sdk/dist/line-buffer.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.d.ts +17 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js +426 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js +499 -0
- package/node_modules/@agentclientprotocol/sdk/dist/node-adapter.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.d.ts +37 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js +474 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js +535 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol-router.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.d.ts +11 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js +69 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js +82 -0
- package/node_modules/@agentclientprotocol/sdk/dist/protocol.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.d.ts +183 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js +207 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/guards.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.d.ts +51 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js +52 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/index.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.d.ts +6219 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js +3 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/types.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.d.ts +15215 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +3084 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.d.ts +30 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js +98 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js +93 -0
- package/node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js +261 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-permission.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js +536 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-session-sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.d.ts +2 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js +88 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js +53 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js +992 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server-websocket-upgrade.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.d.ts +81 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.js +386 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.js +1116 -0
- package/node_modules/@agentclientprotocol/sdk/dist/server.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.d.ts +4 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.js +91 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js +126 -0
- package/node_modules/@agentclientprotocol/sdk/dist/sse.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.d.ts +35 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.js +115 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js +195 -0
- package/node_modules/@agentclientprotocol/sdk/dist/stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.d.ts +8 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js +51 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/streams.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.d.ts +24 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js +163 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-agent.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.d.ts +9 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js +74 -0
- package/node_modules/@agentclientprotocol/sdk/dist/test-support/test-http-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.d.ts +957 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +1484 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js +1287 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.d.ts +946 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +1046 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.d.ts +42 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js +43 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/index.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.d.ts +6208 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js +3 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/types.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.d.ts +33267 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +3199 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.d.ts +14 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js +357 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-server.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.d.ts +54 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js +253 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js +836 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-stream.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.d.ts +13 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js +78 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.d.ts +1 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js +42 -0
- package/node_modules/@agentclientprotocol/sdk/dist/ws-utils.test.js.map +1 -0
- package/node_modules/@agentclientprotocol/sdk/package.json +104 -0
- package/node_modules/@agentclientprotocol/sdk/schema/schema.json +8967 -0
- package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +10242 -0
- package/node_modules/@clack/core/LICENSE +9 -0
- package/node_modules/@clack/core/README.md +22 -0
- package/node_modules/@clack/core/dist/index.d.mts +503 -0
- package/node_modules/@clack/core/dist/index.mjs +1003 -0
- package/node_modules/@clack/core/package.json +63 -0
- package/node_modules/@clack/prompts/LICENSE +9 -0
- package/node_modules/@clack/prompts/README.md +396 -0
- package/node_modules/@clack/prompts/dist/index.d.mts +949 -0
- package/node_modules/@clack/prompts/dist/index.mjs +1423 -0
- package/node_modules/@clack/prompts/package.json +67 -0
- package/node_modules/@esbuild/linux-x64/README.md +3 -0
- package/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/node_modules/@esbuild/linux-x64/package.json +20 -0
- package/node_modules/acpx/LICENSE +21 -0
- package/node_modules/acpx/README.md +424 -0
- package/node_modules/acpx/dist/cli-CxsS1XQp.js +197 -0
- package/node_modules/acpx/dist/cli-CxsS1XQp.js.map +1 -0
- package/node_modules/acpx/dist/cli.d.ts +14 -0
- package/node_modules/acpx/dist/cli.d.ts.map +1 -0
- package/node_modules/acpx/dist/cli.js +2683 -0
- package/node_modules/acpx/dist/cli.js.map +1 -0
- package/node_modules/acpx/dist/client-DwNyFauq.d.ts +192 -0
- package/node_modules/acpx/dist/client-DwNyFauq.d.ts.map +1 -0
- package/node_modules/acpx/dist/flags-Bjq_XQ4-.js +260 -0
- package/node_modules/acpx/dist/flags-Bjq_XQ4-.js.map +1 -0
- package/node_modules/acpx/dist/flows-Db_LZKu9.js +1920 -0
- package/node_modules/acpx/dist/flows-Db_LZKu9.js.map +1 -0
- package/node_modules/acpx/dist/flows.d.ts +318 -0
- package/node_modules/acpx/dist/flows.d.ts.map +1 -0
- package/node_modules/acpx/dist/flows.js +2 -0
- package/node_modules/acpx/dist/live-checkpoint-ClPCSdrW.js +6210 -0
- package/node_modules/acpx/dist/live-checkpoint-ClPCSdrW.js.map +1 -0
- package/node_modules/acpx/dist/output-CjdF5rHk.js +4593 -0
- package/node_modules/acpx/dist/output-CjdF5rHk.js.map +1 -0
- package/node_modules/acpx/dist/runtime.d.ts +472 -0
- package/node_modules/acpx/dist/runtime.d.ts.map +1 -0
- package/node_modules/acpx/dist/runtime.js +1711 -0
- package/node_modules/acpx/dist/runtime.js.map +1 -0
- package/node_modules/acpx/dist/session-options-jkYbBxGE.d.ts +278 -0
- package/node_modules/acpx/dist/session-options-jkYbBxGE.d.ts.map +1 -0
- package/node_modules/acpx/package.json +129 -0
- package/node_modules/acpx/skills/acpx/SKILL.md +617 -0
- package/node_modules/b4a/LICENSE +201 -0
- package/node_modules/b4a/README.md +153 -0
- package/node_modules/b4a/browser.js +546 -0
- package/node_modules/b4a/index.d.ts +144 -0
- package/node_modules/b4a/index.js +193 -0
- package/node_modules/b4a/lib/ascii.js +31 -0
- package/node_modules/b4a/lib/base64.js +64 -0
- package/node_modules/b4a/lib/hex.js +51 -0
- package/node_modules/b4a/lib/latin1.js +31 -0
- package/node_modules/b4a/lib/utf16le.js +40 -0
- package/node_modules/b4a/lib/utf8.js +144 -0
- package/node_modules/b4a/package.json +54 -0
- package/node_modules/b4a/react-native.js +5 -0
- package/node_modules/b4a/runtime.d.ts +14 -0
- package/node_modules/bare-events/LICENSE +201 -0
- package/node_modules/bare-events/README.md +25 -0
- package/node_modules/bare-events/global.d.ts +15 -0
- package/node_modules/bare-events/global.js +5 -0
- package/node_modules/bare-events/index.d.ts +89 -0
- package/node_modules/bare-events/index.js +397 -0
- package/node_modules/bare-events/lib/errors.js +23 -0
- package/node_modules/bare-events/package.json +63 -0
- package/node_modules/bare-events/web.d.ts +79 -0
- package/node_modules/bare-events/web.js +417 -0
- package/node_modules/bare-fs/CMakeLists.txt +13 -0
- package/node_modules/bare-fs/LICENSE +201 -0
- package/node_modules/bare-fs/README.md +33 -0
- package/node_modules/bare-fs/binding.c +2913 -0
- package/node_modules/bare-fs/binding.js +1 -0
- package/node_modules/bare-fs/index.d.ts +1502 -0
- package/node_modules/bare-fs/index.js +2855 -0
- package/node_modules/bare-fs/lib/constants.d.ts +50 -0
- package/node_modules/bare-fs/lib/constants.js +49 -0
- package/node_modules/bare-fs/lib/errors.d.ts +13 -0
- package/node_modules/bare-fs/lib/errors.js +55 -0
- package/node_modules/bare-fs/package.json +74 -0
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/promises.d.ts +480 -0
- package/node_modules/bare-fs/promises.js +119 -0
- package/node_modules/bare-path/CMakeLists.txt +13 -0
- package/node_modules/bare-path/LICENSE +201 -0
- package/node_modules/bare-path/NOTICE +28 -0
- package/node_modules/bare-path/README.md +19 -0
- package/node_modules/bare-path/binding.c +106 -0
- package/node_modules/bare-path/binding.js +1 -0
- package/node_modules/bare-path/index.d.ts +27 -0
- package/node_modules/bare-path/index.js +9 -0
- package/node_modules/bare-path/lib/constants.js +11 -0
- package/node_modules/bare-path/lib/posix.js +263 -0
- package/node_modules/bare-path/lib/shared.js +81 -0
- package/node_modules/bare-path/lib/win32.js +564 -0
- package/node_modules/bare-path/package.json +47 -0
- package/node_modules/bare-path/prebuilds/android-arm/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/android-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/android-ia32/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/android-x64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/darwin-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/darwin-x64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/ios-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/ios-arm64-simulator/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/ios-x64-simulator/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/linux-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/linux-x64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/win32-arm64/bare-path.bare +0 -0
- package/node_modules/bare-path/prebuilds/win32-x64/bare-path.bare +0 -0
- package/node_modules/bare-stream/LICENSE +201 -0
- package/node_modules/bare-stream/README.md +354 -0
- package/node_modules/bare-stream/global.d.ts +31 -0
- package/node_modules/bare-stream/global.js +15 -0
- package/node_modules/bare-stream/index.d.ts +235 -0
- package/node_modules/bare-stream/index.js +493 -0
- package/node_modules/bare-stream/package.json +75 -0
- package/node_modules/bare-stream/promises.js +3 -0
- package/node_modules/bare-stream/web.d.ts +152 -0
- package/node_modules/bare-stream/web.js +607 -0
- package/node_modules/bare-url/CMakeLists.txt +36 -0
- package/node_modules/bare-url/LICENSE +201 -0
- package/node_modules/bare-url/README.md +33 -0
- package/node_modules/bare-url/binding.c +422 -0
- package/node_modules/bare-url/binding.js +1 -0
- package/node_modules/bare-url/global.d.ts +24 -0
- package/node_modules/bare-url/global.js +2 -0
- package/node_modules/bare-url/index.d.ts +96 -0
- package/node_modules/bare-url/index.js +676 -0
- package/node_modules/bare-url/lib/errors.d.ts +10 -0
- package/node_modules/bare-url/lib/errors.js +33 -0
- package/node_modules/bare-url/lib/url-search-params.d.ts +66 -0
- package/node_modules/bare-url/lib/url-search-params.js +276 -0
- package/node_modules/bare-url/package.json +54 -0
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1172 -0
- package/node_modules/commander/index.js +21 -0
- package/node_modules/commander/lib/argument.js +147 -0
- package/node_modules/commander/lib/command.js +2790 -0
- package/node_modules/commander/lib/error.js +36 -0
- package/node_modules/commander/lib/help.js +731 -0
- package/node_modules/commander/lib/option.js +377 -0
- package/node_modules/commander/lib/suggestSimilar.js +99 -0
- package/node_modules/commander/package-support.json +19 -0
- package/node_modules/commander/package.json +64 -0
- package/node_modules/commander/typings/index.d.ts +1113 -0
- package/node_modules/esbuild/LICENSE.md +21 -0
- package/node_modules/esbuild/README.md +3 -0
- package/node_modules/esbuild/bin/esbuild +223 -0
- package/node_modules/esbuild/install.js +300 -0
- package/node_modules/esbuild/lib/main.d.ts +720 -0
- package/node_modules/esbuild/lib/main.js +2536 -0
- package/node_modules/esbuild/package.json +74 -0
- package/node_modules/events-universal/LICENSE +201 -0
- package/node_modules/events-universal/README.md +17 -0
- package/node_modules/events-universal/bare.js +1 -0
- package/node_modules/events-universal/default.js +1 -0
- package/node_modules/events-universal/index.js +1 -0
- package/node_modules/events-universal/package.json +39 -0
- package/node_modules/events-universal/react-native.js +1 -0
- package/node_modules/fast-fifo/LICENSE +21 -0
- package/node_modules/fast-fifo/README.md +78 -0
- package/node_modules/fast-fifo/fixed-size.js +39 -0
- package/node_modules/fast-fifo/index.js +48 -0
- package/node_modules/fast-fifo/package.json +28 -0
- package/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/node_modules/fast-string-truncated-width/license +21 -0
- package/node_modules/fast-string-truncated-width/package.json +35 -0
- package/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/node_modules/fast-string-width/dist/index.js +14 -0
- package/node_modules/fast-string-width/license +21 -0
- package/node_modules/fast-string-width/package.json +34 -0
- package/node_modules/fast-string-width/readme.md +42 -0
- package/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/node_modules/fast-wrap-ansi/README.md +26 -0
- package/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/node_modules/fast-wrap-ansi/lib/main.js +218 -0
- package/node_modules/fast-wrap-ansi/package.json +51 -0
- package/node_modules/sisteransi/license +21 -0
- package/node_modules/sisteransi/package.json +34 -0
- package/node_modules/sisteransi/readme.md +113 -0
- package/node_modules/sisteransi/src/index.js +58 -0
- package/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/node_modules/skillflag/LICENSE +21 -0
- package/node_modules/skillflag/README.md +44 -0
- package/node_modules/skillflag/dist/bin/skill-install.d.ts +3 -0
- package/node_modules/skillflag/dist/bin/skill-install.d.ts.map +1 -0
- package/node_modules/skillflag/dist/bin/skill-install.js +6 -0
- package/node_modules/skillflag/dist/bin/skill-install.js.map +1 -0
- package/node_modules/skillflag/dist/bin/skillflag.d.ts +3 -0
- package/node_modules/skillflag/dist/bin/skillflag.d.ts.map +1 -0
- package/node_modules/skillflag/dist/bin/skillflag.js +25 -0
- package/node_modules/skillflag/dist/bin/skillflag.js.map +1 -0
- package/node_modules/skillflag/dist/core/digest.d.ts +2 -0
- package/node_modules/skillflag/dist/core/digest.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/digest.js +15 -0
- package/node_modules/skillflag/dist/core/digest.js.map +1 -0
- package/node_modules/skillflag/dist/core/errors.d.ts +6 -0
- package/node_modules/skillflag/dist/core/errors.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/errors.js +13 -0
- package/node_modules/skillflag/dist/core/errors.js.map +1 -0
- package/node_modules/skillflag/dist/core/export.d.ts +2 -0
- package/node_modules/skillflag/dist/core/export.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/export.js +28 -0
- package/node_modules/skillflag/dist/core/export.js.map +1 -0
- package/node_modules/skillflag/dist/core/list.d.ts +21 -0
- package/node_modules/skillflag/dist/core/list.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/list.js +71 -0
- package/node_modules/skillflag/dist/core/list.js.map +1 -0
- package/node_modules/skillflag/dist/core/paths.d.ts +15 -0
- package/node_modules/skillflag/dist/core/paths.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/paths.js +149 -0
- package/node_modules/skillflag/dist/core/paths.js.map +1 -0
- package/node_modules/skillflag/dist/core/show.d.ts +2 -0
- package/node_modules/skillflag/dist/core/show.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/show.js +8 -0
- package/node_modules/skillflag/dist/core/show.js.map +1 -0
- package/node_modules/skillflag/dist/core/skillflag.d.ts +3 -0
- package/node_modules/skillflag/dist/core/skillflag.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/skillflag.js +2 -0
- package/node_modules/skillflag/dist/core/skillflag.js.map +1 -0
- package/node_modules/skillflag/dist/core/tar.d.ts +16 -0
- package/node_modules/skillflag/dist/core/tar.d.ts.map +1 -0
- package/node_modules/skillflag/dist/core/tar.js +140 -0
- package/node_modules/skillflag/dist/core/tar.js.map +1 -0
- package/node_modules/skillflag/dist/index.d.ts +5 -0
- package/node_modules/skillflag/dist/index.d.ts.map +1 -0
- package/node_modules/skillflag/dist/index.js +3 -0
- package/node_modules/skillflag/dist/index.js.map +1 -0
- package/node_modules/skillflag/dist/install/cli.d.ts +57 -0
- package/node_modules/skillflag/dist/install/cli.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/cli.js +653 -0
- package/node_modules/skillflag/dist/install/cli.js.map +1 -0
- package/node_modules/skillflag/dist/install/copy.d.ts +2 -0
- package/node_modules/skillflag/dist/install/copy.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/copy.js +19 -0
- package/node_modules/skillflag/dist/install/copy.js.map +1 -0
- package/node_modules/skillflag/dist/install/errors.d.ts +6 -0
- package/node_modules/skillflag/dist/install/errors.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/errors.js +13 -0
- package/node_modules/skillflag/dist/install/errors.js.map +1 -0
- package/node_modules/skillflag/dist/install/extract.d.ts +3 -0
- package/node_modules/skillflag/dist/install/extract.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/extract.js +76 -0
- package/node_modules/skillflag/dist/install/extract.js.map +1 -0
- package/node_modules/skillflag/dist/install/install.d.ts +21 -0
- package/node_modules/skillflag/dist/install/install.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/install.js +35 -0
- package/node_modules/skillflag/dist/install/install.js.map +1 -0
- package/node_modules/skillflag/dist/install/resolve.d.ts +12 -0
- package/node_modules/skillflag/dist/install/resolve.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/resolve.js +119 -0
- package/node_modules/skillflag/dist/install/resolve.js.map +1 -0
- package/node_modules/skillflag/dist/install/validate.d.ts +7 -0
- package/node_modules/skillflag/dist/install/validate.d.ts.map +1 -0
- package/node_modules/skillflag/dist/install/validate.js +28 -0
- package/node_modules/skillflag/dist/install/validate.js.map +1 -0
- package/node_modules/skillflag/dist/shared/frontmatter.d.ts +2 -0
- package/node_modules/skillflag/dist/shared/frontmatter.d.ts.map +1 -0
- package/node_modules/skillflag/dist/shared/frontmatter.js +28 -0
- package/node_modules/skillflag/dist/shared/frontmatter.js.map +1 -0
- package/node_modules/skillflag/dist/skillflag.d.ts +29 -0
- package/node_modules/skillflag/dist/skillflag.d.ts.map +1 -0
- package/node_modules/skillflag/dist/skillflag.js +230 -0
- package/node_modules/skillflag/dist/skillflag.js.map +1 -0
- package/node_modules/skillflag/dist/utils/collections.d.ts +3 -0
- package/node_modules/skillflag/dist/utils/collections.d.ts.map +1 -0
- package/node_modules/skillflag/dist/utils/collections.js +18 -0
- package/node_modules/skillflag/dist/utils/collections.js.map +1 -0
- package/node_modules/skillflag/package.json +78 -0
- package/node_modules/skillflag/skills/skillflag/SKILL.md +144 -0
- package/node_modules/streamx/LICENSE +21 -0
- package/node_modules/streamx/README.md +550 -0
- package/node_modules/streamx/index.d.ts +198 -0
- package/node_modules/streamx/index.js +1314 -0
- package/node_modules/streamx/lib/errors.d.ts +13 -0
- package/node_modules/streamx/lib/errors.js +47 -0
- package/node_modules/streamx/package.json +51 -0
- package/node_modules/streamx/runtime.d.ts +55 -0
- package/node_modules/tar-stream/LICENSE +21 -0
- package/node_modules/tar-stream/README.md +183 -0
- package/node_modules/tar-stream/constants.js +14 -0
- package/node_modules/tar-stream/extract.js +418 -0
- package/node_modules/tar-stream/headers.js +322 -0
- package/node_modules/tar-stream/index.d.ts +60 -0
- package/node_modules/tar-stream/index.js +2 -0
- package/node_modules/tar-stream/pack.js +287 -0
- package/node_modules/tar-stream/package.json +50 -0
- package/node_modules/teex/LICENSE +21 -0
- package/node_modules/teex/README.md +31 -0
- package/node_modules/teex/example.js +16 -0
- package/node_modules/teex/index.js +52 -0
- package/node_modules/teex/package.json +26 -0
- package/node_modules/teex/test.js +68 -0
- package/node_modules/text-decoder/LICENSE +201 -0
- package/node_modules/text-decoder/README.md +36 -0
- package/node_modules/text-decoder/index.js +64 -0
- package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
- package/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
- package/node_modules/text-decoder/package.json +39 -0
- package/node_modules/tsx/LICENSE +21 -0
- package/node_modules/tsx/README.md +32 -0
- package/node_modules/tsx/dist/cjs/api/index.cjs +2 -0
- package/node_modules/tsx/dist/cjs/api/index.d.cts +35 -0
- package/node_modules/tsx/dist/cjs/api/index.d.mts +35 -0
- package/node_modules/tsx/dist/cjs/api/index.mjs +2 -0
- package/node_modules/tsx/dist/cjs/index.cjs +1 -0
- package/node_modules/tsx/dist/cli.mjs +55 -0
- package/node_modules/tsx/dist/client-XItNFmsq.cjs +1 -0
- package/node_modules/tsx/dist/esm/api/index.cjs +2 -0
- package/node_modules/tsx/dist/esm/api/index.d.cts +37 -0
- package/node_modules/tsx/dist/esm/api/index.d.mts +37 -0
- package/node_modules/tsx/dist/esm/api/index.mjs +2 -0
- package/node_modules/tsx/dist/esm/index.mjs +2 -0
- package/node_modules/tsx/dist/index-Bqjv9TxC.mjs +1 -0
- package/node_modules/tsx/dist/index-DE3OBZuV.mjs +14 -0
- package/node_modules/tsx/dist/lexer-CGfpMDSb.cjs +3 -0
- package/node_modules/tsx/dist/lexer-CanA6ArK.mjs +3 -0
- package/node_modules/tsx/dist/loader.mjs +2 -0
- package/node_modules/tsx/dist/package-Dj0mHsMt.mjs +1 -0
- package/node_modules/tsx/dist/patch-repl.cjs +1 -0
- package/node_modules/tsx/dist/preflight.cjs +1 -0
- package/node_modules/tsx/dist/register-B1c7OH6V.cjs +23 -0
- package/node_modules/tsx/dist/register-nyXW-TH3.mjs +2 -0
- package/node_modules/tsx/dist/repl.mjs +4 -0
- package/node_modules/tsx/dist/require-CBjy4Foe.mjs +10 -0
- package/node_modules/tsx/dist/require-CVaYn9z3.cjs +1 -0
- package/node_modules/tsx/dist/suppress-warnings.cjs +1 -0
- package/node_modules/tsx/dist/temporary-directory-Du7LpLp9.mjs +1 -0
- package/node_modules/tsx/package.json +70 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +218 -0
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +52 -0
- package/node_modules/zod/index.d.cts +3 -0
- package/node_modules/zod/index.d.ts +3 -0
- package/node_modules/zod/index.js +7 -0
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +147 -0
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/node_modules/zod/src/v4/core/compile.ts +2313 -0
- package/node_modules/zod/src/v4/core/core.ts +230 -0
- package/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/node_modules/zod/src/v4/core/index.ts +19 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/node_modules/zod/src/v4/core/util.ts +1280 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +167 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +143 -0
- package/node_modules/zod/v3/errors.cjs +36 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +41 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +52 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3798 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3697 -0
- package/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/node_modules/zod/v4/classic/errors.js +57 -0
- package/node_modules/zod/v4/classic/external.cjs +97 -0
- package/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/node_modules/zod/v4/classic/external.js +17 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +52 -0
- package/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/node_modules/zod/v4/classic/iso.js +15 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/node_modules/zod/v4/classic/parse.js +16 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/node_modules/zod/v4/core/api.cjs +1269 -0
- package/node_modules/zod/v4/core/api.d.cts +335 -0
- package/node_modules/zod/v4/core/api.d.ts +335 -0
- package/node_modules/zod/v4/core/api.js +1107 -0
- package/node_modules/zod/v4/core/checks.cjs +561 -0
- package/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/node_modules/zod/v4/core/checks.js +516 -0
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +167 -0
- package/node_modules/zod/v4/core/core.d.cts +82 -0
- package/node_modules/zod/v4/core/core.d.ts +82 -0
- package/node_modules/zod/v4/core/core.js +141 -0
- package/node_modules/zod/v4/core/doc.cjs +61 -0
- package/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/node_modules/zod/v4/core/doc.js +38 -0
- package/node_modules/zod/v4/core/errors.cjs +317 -0
- package/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/node_modules/zod/v4/core/errors.js +267 -0
- package/node_modules/zod/v4/core/index.cjs +70 -0
- package/node_modules/zod/v4/core/index.d.cts +19 -0
- package/node_modules/zod/v4/core/index.d.ts +19 -0
- package/node_modules/zod/v4/core/index.js +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +233 -0
- package/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/node_modules/zod/v4/core/parse.js +175 -0
- package/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/node_modules/zod/v4/core/regexes.js +156 -0
- package/node_modules/zod/v4/core/registries.cjs +75 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2669 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
- package/node_modules/zod/v4/core/schemas.js +2606 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/node_modules/zod/v4/core/util.cjs +949 -0
- package/node_modules/zod/v4/core/util.d.cts +278 -0
- package/node_modules/zod/v4/core/util.d.ts +278 -0
- package/node_modules/zod/v4/core/util.js +859 -0
- package/node_modules/zod/v4/core/versions.cjs +27 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +51 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +4 -0
- package/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +111 -0
- package/node_modules/zod/v4/locales/az.cjs +137 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +110 -0
- package/node_modules/zod/v4/locales/be.cjs +195 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +168 -0
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +112 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +116 -0
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +140 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +113 -0
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +152 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +125 -0
- package/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +114 -0
- package/node_modules/zod/v4/locales/es.cjs +163 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +136 -0
- package/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +119 -0
- package/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +117 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +129 -0
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +248 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +221 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +113 -0
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +138 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +111 -0
- package/node_modules/zod/v4/locales/index.cjs +152 -0
- package/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/node_modules/zod/v4/locales/index.js +63 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +140 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +113 -0
- package/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +112 -0
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +116 -0
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +114 -0
- package/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +112 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +115 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +140 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +113 -0
- package/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +114 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +114 -0
- package/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +119 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +142 -0
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +168 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +114 -0
- package/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +115 -0
- package/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +115 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +142 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +115 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +110 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +115 -0
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +113 -0
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +95 -0
- package/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/node_modules/zod/v4/mini/external.js +16 -0
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +51 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +51 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +50 -0
|
@@ -0,0 +1,1803 @@
|
|
|
1
|
+
import * as schema from "./schema/index.js";
|
|
2
|
+
import type { AnyMessage } from "./jsonrpc.js";
|
|
3
|
+
export type * from "./schema/types.gen.js";
|
|
4
|
+
export { CreateElicitationRequest, CreateElicitationResponse, ElicitationPropertySchema, MultiSelectItems, } from "./schema/guards.gen.js";
|
|
5
|
+
export { AGENT_METHODS, CLIENT_METHODS, PROTOCOL_METHODS, PROTOCOL_VERSION, } from "./schema/index.js";
|
|
6
|
+
/**
|
|
7
|
+
* Stream interface for stable ACP v1 connections.
|
|
8
|
+
*
|
|
9
|
+
* This type powers bidirectional communication for an ACP connection using
|
|
10
|
+
* individual JSON-RPC messages. The experimental v2 entry point exposes the
|
|
11
|
+
* batch-capable stream surface.
|
|
12
|
+
*
|
|
13
|
+
* The most common way to create a Stream is using {@link ndJsonStream}.
|
|
14
|
+
*/
|
|
15
|
+
export type Stream = {
|
|
16
|
+
/** Outgoing JSON-RPC messages written by this side of the connection. */
|
|
17
|
+
writable: WritableStream<AnyMessage>;
|
|
18
|
+
/** Incoming JSON-RPC messages read by this side of the connection. */
|
|
19
|
+
readable: ReadableStream<AnyMessage>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Creates a stable ACP v1 stream from newline-delimited JSON streams.
|
|
23
|
+
*
|
|
24
|
+
* @param output - The writable stream to send encoded messages to
|
|
25
|
+
* @param input - The readable stream to receive encoded messages from
|
|
26
|
+
* @returns A stream for bidirectional ACP v1 communication
|
|
27
|
+
*/
|
|
28
|
+
export declare function ndJsonStream(output: WritableStream<Uint8Array>, input: ReadableStream<Uint8Array>): Stream;
|
|
29
|
+
export { RequestError } from "./jsonrpc.js";
|
|
30
|
+
export type { AnyMessage, AnyNotification, AnyRequest, AnyResponse, ErrorResponse, JsonRpcId, MaybePromise, Result, SendRequestOptions, } from "./jsonrpc.js";
|
|
31
|
+
import type { JsonRpcId, MaybePromise, SendRequestOptions } from "./jsonrpc.js";
|
|
32
|
+
/**
|
|
33
|
+
* ACP method-name constants.
|
|
34
|
+
*
|
|
35
|
+
* Use these with `onRequest(...)`, `onNotification(...)`, `request(...)`, and
|
|
36
|
+
* `notify(...)` when you want literal-string type inference without spelling
|
|
37
|
+
* protocol strings inline.
|
|
38
|
+
*/
|
|
39
|
+
export declare const methods: {
|
|
40
|
+
readonly agent: {
|
|
41
|
+
readonly initialize: "initialize";
|
|
42
|
+
readonly authenticate: "authenticate";
|
|
43
|
+
readonly logout: "logout";
|
|
44
|
+
readonly providers: {
|
|
45
|
+
readonly list: "providers/list";
|
|
46
|
+
readonly set: "providers/set";
|
|
47
|
+
readonly disable: "providers/disable";
|
|
48
|
+
};
|
|
49
|
+
readonly session: {
|
|
50
|
+
readonly new: "session/new";
|
|
51
|
+
readonly load: "session/load";
|
|
52
|
+
readonly list: "session/list";
|
|
53
|
+
readonly delete: "session/delete";
|
|
54
|
+
readonly fork: "session/fork";
|
|
55
|
+
readonly resume: "session/resume";
|
|
56
|
+
readonly close: "session/close";
|
|
57
|
+
readonly setMode: "session/set_mode";
|
|
58
|
+
readonly setConfigOption: "session/set_config_option";
|
|
59
|
+
readonly prompt: "session/prompt";
|
|
60
|
+
readonly cancel: "session/cancel";
|
|
61
|
+
};
|
|
62
|
+
readonly nes: {
|
|
63
|
+
readonly start: "nes/start";
|
|
64
|
+
readonly suggest: "nes/suggest";
|
|
65
|
+
readonly accept: "nes/accept";
|
|
66
|
+
readonly reject: "nes/reject";
|
|
67
|
+
readonly close: "nes/close";
|
|
68
|
+
};
|
|
69
|
+
readonly document: {
|
|
70
|
+
readonly didOpen: "document/didOpen";
|
|
71
|
+
readonly didChange: "document/didChange";
|
|
72
|
+
readonly didClose: "document/didClose";
|
|
73
|
+
readonly didSave: "document/didSave";
|
|
74
|
+
readonly didFocus: "document/didFocus";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly client: {
|
|
78
|
+
readonly session: {
|
|
79
|
+
readonly requestPermission: "session/request_permission";
|
|
80
|
+
readonly update: "session/update";
|
|
81
|
+
};
|
|
82
|
+
readonly fs: {
|
|
83
|
+
readonly writeTextFile: "fs/write_text_file";
|
|
84
|
+
readonly readTextFile: "fs/read_text_file";
|
|
85
|
+
};
|
|
86
|
+
readonly terminal: {
|
|
87
|
+
readonly create: "terminal/create";
|
|
88
|
+
readonly output: "terminal/output";
|
|
89
|
+
readonly release: "terminal/release";
|
|
90
|
+
readonly waitForExit: "terminal/wait_for_exit";
|
|
91
|
+
readonly kill: "terminal/kill";
|
|
92
|
+
};
|
|
93
|
+
readonly elicitation: {
|
|
94
|
+
readonly create: "elicitation/create";
|
|
95
|
+
readonly complete: "elicitation/complete";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly protocol: {
|
|
99
|
+
readonly cancelRequest: "$/cancel_request";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Active ACP connection returned by `AgentApp.connect(...)` and
|
|
104
|
+
* `ClientApp.connect(...)`.
|
|
105
|
+
*
|
|
106
|
+
* Use this handle when you need a connection to stay open independently of a
|
|
107
|
+
* single `connectWith(...)` operation.
|
|
108
|
+
*/
|
|
109
|
+
export interface AcpConnection {
|
|
110
|
+
/**
|
|
111
|
+
* AbortSignal that aborts when the connection closes.
|
|
112
|
+
*/
|
|
113
|
+
readonly signal: AbortSignal;
|
|
114
|
+
/**
|
|
115
|
+
* Promise that resolves when the connection closes.
|
|
116
|
+
*/
|
|
117
|
+
readonly closed: Promise<void>;
|
|
118
|
+
/**
|
|
119
|
+
* Closes the connection and rejects pending requests.
|
|
120
|
+
*/
|
|
121
|
+
close(error?: unknown): void;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Agent-side connection returned by `AgentApp.connect(...)`.
|
|
125
|
+
*
|
|
126
|
+
* Use `client` to call client-side ACP methods for the lifetime of the
|
|
127
|
+
* connection.
|
|
128
|
+
*/
|
|
129
|
+
export interface AgentConnection extends AcpConnection {
|
|
130
|
+
/**
|
|
131
|
+
* Context for calling client-side ACP methods.
|
|
132
|
+
*/
|
|
133
|
+
readonly client: AgentContext;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Client-side connection returned by `ClientApp.connect(...)`.
|
|
137
|
+
*
|
|
138
|
+
* Use `agent` to call agent-side ACP methods and session helpers for the
|
|
139
|
+
* lifetime of the connection.
|
|
140
|
+
*/
|
|
141
|
+
export interface ClientConnection extends AcpConnection {
|
|
142
|
+
/**
|
|
143
|
+
* Context for calling agent-side ACP methods.
|
|
144
|
+
*/
|
|
145
|
+
readonly agent: ClientContext;
|
|
146
|
+
}
|
|
147
|
+
declare class AcpContext {
|
|
148
|
+
private readonly cx;
|
|
149
|
+
private readonly currentRequestId?;
|
|
150
|
+
/**
|
|
151
|
+
* JSON-RPC id of the request currently being handled.
|
|
152
|
+
*
|
|
153
|
+
* This is `undefined` for notification handlers and for contexts created
|
|
154
|
+
* outside an inbound request, such as `connect(...)` and `connectWith(...)`.
|
|
155
|
+
*/
|
|
156
|
+
get requestId(): JsonRpcId | undefined;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Context passed to agent-side handlers.
|
|
160
|
+
*
|
|
161
|
+
* Agents use this context to call client-side ACP methods while handling
|
|
162
|
+
* requests such as `session/prompt`.
|
|
163
|
+
*/
|
|
164
|
+
export declare class AgentContext extends AcpContext {
|
|
165
|
+
private constructor();
|
|
166
|
+
/**
|
|
167
|
+
* Sends a request to the client by ACP method name.
|
|
168
|
+
*
|
|
169
|
+
* Built-in method literals infer their params and response types. Custom
|
|
170
|
+
* methods can specify their response and params types with generics.
|
|
171
|
+
*/
|
|
172
|
+
request<Method extends ClientRequestMethod>(method: Method, params: ClientRequestParamsByMethod[Method], options?: SendRequestOptions): Promise<ClientRequestResponsesByMethod[Method]>;
|
|
173
|
+
request<Response = unknown, Params = unknown>(method: string, params?: Params, options?: SendRequestOptions): Promise<Response>;
|
|
174
|
+
/**
|
|
175
|
+
* Sends a notification to the client by ACP method name.
|
|
176
|
+
*
|
|
177
|
+
* Built-in method literals infer their params type. Custom notifications can
|
|
178
|
+
* specify their params type with a generic.
|
|
179
|
+
*/
|
|
180
|
+
notify<Method extends ClientNotificationMethod>(method: Method, params: ClientNotificationParamsByMethod[Method]): Promise<void>;
|
|
181
|
+
notify<Params = unknown>(method: string, params?: Params): Promise<void>;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Context used by clients to call agent-side ACP methods.
|
|
185
|
+
*
|
|
186
|
+
* `connectWith` passes a `ClientContext` to the callback. Client handlers also
|
|
187
|
+
* receive one as `ctx.agent` when they need to call back into the agent.
|
|
188
|
+
*/
|
|
189
|
+
export declare class ClientContext extends AcpContext {
|
|
190
|
+
private constructor();
|
|
191
|
+
/**
|
|
192
|
+
* Creates a builder for starting and observing an ACP session.
|
|
193
|
+
*
|
|
194
|
+
* Pass a string for the common case where only `cwd` is needed, or pass a
|
|
195
|
+
* full `NewSessionRequest` when you need MCP servers, `_meta`, or additional
|
|
196
|
+
* session fields.
|
|
197
|
+
*/
|
|
198
|
+
buildSession(cwd: string): SessionBuilder;
|
|
199
|
+
buildSession(request: schema.NewSessionRequest): SessionBuilder;
|
|
200
|
+
/**
|
|
201
|
+
* Builds active-session helpers around a `session/new` response.
|
|
202
|
+
*/
|
|
203
|
+
private attachSession;
|
|
204
|
+
/**
|
|
205
|
+
* Sends a request to the agent by ACP method name.
|
|
206
|
+
*
|
|
207
|
+
* Built-in method literals infer their params and response types. Custom
|
|
208
|
+
* methods can specify their response and params types with generics.
|
|
209
|
+
*/
|
|
210
|
+
request<Method extends AgentRequestMethod>(method: Method, params: AgentRequestParamsByMethod[Method], options?: SendRequestOptions): Promise<AgentRequestResponsesByMethod[Method]>;
|
|
211
|
+
request<Response = unknown, Params = unknown>(method: string, params?: Params, options?: SendRequestOptions): Promise<Response>;
|
|
212
|
+
/**
|
|
213
|
+
* Sends a notification to the agent by ACP method name.
|
|
214
|
+
*
|
|
215
|
+
* Built-in method literals infer their params type. Custom notifications can
|
|
216
|
+
* specify their params type with a generic.
|
|
217
|
+
*/
|
|
218
|
+
notify<Method extends AgentNotificationMethod>(method: Method, params: AgentNotificationParamsByMethod[Method]): Promise<void>;
|
|
219
|
+
notify<Params = unknown>(method: string, params?: Params): Promise<void>;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Message produced by an `ActiveSession`.
|
|
223
|
+
*
|
|
224
|
+
* `session_update` messages expose the typed `session/update` notification and
|
|
225
|
+
* `stop` messages report the final `session/prompt` response. A prompt turn is
|
|
226
|
+
* complete once a `stop` message is returned.
|
|
227
|
+
*/
|
|
228
|
+
export type ActiveSessionMessage = {
|
|
229
|
+
/**
|
|
230
|
+
* Indicates that this message came from a `session/update` notification.
|
|
231
|
+
*/
|
|
232
|
+
kind: "session_update";
|
|
233
|
+
/**
|
|
234
|
+
* Full notification sent by the agent.
|
|
235
|
+
*/
|
|
236
|
+
notification: schema.SessionNotification;
|
|
237
|
+
/**
|
|
238
|
+
* Convenience alias for `notification.update`.
|
|
239
|
+
*/
|
|
240
|
+
update: schema.SessionUpdate;
|
|
241
|
+
} | {
|
|
242
|
+
/**
|
|
243
|
+
* Indicates that the prompt turn has completed.
|
|
244
|
+
*/
|
|
245
|
+
kind: "stop";
|
|
246
|
+
/**
|
|
247
|
+
* Final response from `session/prompt`.
|
|
248
|
+
*/
|
|
249
|
+
response: schema.PromptResponse;
|
|
250
|
+
/**
|
|
251
|
+
* Convenience alias for `response.stopReason`.
|
|
252
|
+
*/
|
|
253
|
+
stopReason: schema.StopReason;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Builder for creating an `ActiveSession`.
|
|
257
|
+
*
|
|
258
|
+
* Start from `ctx.buildSession("/absolute/cwd")` for the common case, or
|
|
259
|
+
* pass a full `NewSessionRequest` to `ctx.buildSession(...)` when the session
|
|
260
|
+
* needs MCP servers, `_meta`, or additional request fields. All paths in ACP
|
|
261
|
+
* payloads should be absolute.
|
|
262
|
+
*/
|
|
263
|
+
export declare class SessionBuilder {
|
|
264
|
+
private cx;
|
|
265
|
+
private request;
|
|
266
|
+
private constructor();
|
|
267
|
+
/**
|
|
268
|
+
* Returns the `session/new` request that will be sent.
|
|
269
|
+
*
|
|
270
|
+
* The returned object is a defensive copy, so mutating it does not change the
|
|
271
|
+
* builder.
|
|
272
|
+
*/
|
|
273
|
+
toRequest(): schema.NewSessionRequest;
|
|
274
|
+
/**
|
|
275
|
+
* Replaces the additional workspace roots for this session.
|
|
276
|
+
*
|
|
277
|
+
* `additionalDirectories` expand the session's file-system scope without
|
|
278
|
+
* changing `cwd`. Each path should be absolute.
|
|
279
|
+
*/
|
|
280
|
+
withAdditionalDirectories(additionalDirectories: string[]): this;
|
|
281
|
+
/**
|
|
282
|
+
* Adds one MCP server to the `session/new` request.
|
|
283
|
+
*/
|
|
284
|
+
withMcpServer(mcpServer: schema.McpServer): this;
|
|
285
|
+
/**
|
|
286
|
+
* Starts the session and returns an `ActiveSession` for prompting and reading
|
|
287
|
+
* updates.
|
|
288
|
+
*
|
|
289
|
+
* Call `dispose()` on the returned session when you no longer need update
|
|
290
|
+
* routing, or use `withSession(...)` to scope disposal automatically.
|
|
291
|
+
*/
|
|
292
|
+
start(options?: SendRequestOptions): Promise<ActiveSession>;
|
|
293
|
+
/**
|
|
294
|
+
* Starts the session, runs `op`, and disposes the active-session update
|
|
295
|
+
* routing when `op` finishes or throws.
|
|
296
|
+
*/
|
|
297
|
+
withSession<T>(op: (session: ActiveSession) => MaybePromise<T>): Promise<T>;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Convenience wrapper for an active ACP session.
|
|
301
|
+
*
|
|
302
|
+
* An active session routes `session/update` notifications for one session ID
|
|
303
|
+
* into an async queue. Use `prompt(...)` to send user content, then read updates
|
|
304
|
+
* with `nextUpdate()` until a `stop` message is returned.
|
|
305
|
+
*/
|
|
306
|
+
export declare class ActiveSession {
|
|
307
|
+
private cx;
|
|
308
|
+
private sessionResponse;
|
|
309
|
+
private updates;
|
|
310
|
+
private registrations;
|
|
311
|
+
private constructor();
|
|
312
|
+
/**
|
|
313
|
+
* Session ID returned by `session/new`.
|
|
314
|
+
*/
|
|
315
|
+
get sessionId(): schema.SessionId;
|
|
316
|
+
/**
|
|
317
|
+
* Mode state returned when the session was created, if the agent provided it.
|
|
318
|
+
*/
|
|
319
|
+
get modes(): schema.SessionModeState | null | undefined;
|
|
320
|
+
/**
|
|
321
|
+
* Metadata returned when the session was created.
|
|
322
|
+
*/
|
|
323
|
+
get meta(): {
|
|
324
|
+
[key: string]: unknown;
|
|
325
|
+
} | null | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* Full response returned by `session/new`.
|
|
328
|
+
*/
|
|
329
|
+
get newSessionResponse(): schema.NewSessionResponse;
|
|
330
|
+
/**
|
|
331
|
+
* Sends a prompt to this session.
|
|
332
|
+
*
|
|
333
|
+
* Strings are converted to one text content block. A single content block is
|
|
334
|
+
* wrapped in an array. The returned promise resolves with the final
|
|
335
|
+
* `PromptResponse`, and the same completion is also queued as a `stop`
|
|
336
|
+
* message for `nextUpdate()`.
|
|
337
|
+
*/
|
|
338
|
+
prompt(prompt: string | schema.ContentBlock | Array<schema.ContentBlock>, options?: SendRequestOptions): Promise<schema.PromptResponse>;
|
|
339
|
+
/**
|
|
340
|
+
* Reads the next update or stop message for this session.
|
|
341
|
+
*/
|
|
342
|
+
nextUpdate(): Promise<ActiveSessionMessage>;
|
|
343
|
+
/**
|
|
344
|
+
* Reads text chunks until the current prompt turn stops.
|
|
345
|
+
*
|
|
346
|
+
* Only `agent_message_chunk` updates with text content are appended. Other
|
|
347
|
+
* update types are ignored by this helper; use `nextUpdate()` when you need
|
|
348
|
+
* tool calls, plans, or the final `PromptResponse`.
|
|
349
|
+
*/
|
|
350
|
+
readText(): Promise<string>;
|
|
351
|
+
/**
|
|
352
|
+
* Stops routing updates to this active-session helper.
|
|
353
|
+
*
|
|
354
|
+
* This does not close the ACP session on the agent. Use `ClientContext`
|
|
355
|
+
* session lifecycle methods when the protocol session itself should be closed
|
|
356
|
+
* or deleted.
|
|
357
|
+
*/
|
|
358
|
+
dispose(): void;
|
|
359
|
+
/**
|
|
360
|
+
* Supports explicit resource management with `using`.
|
|
361
|
+
*/
|
|
362
|
+
[Symbol.dispose](): void;
|
|
363
|
+
private promptBlocks;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Options used when creating an ACP app.
|
|
367
|
+
*/
|
|
368
|
+
export type AppOptions = {
|
|
369
|
+
/**
|
|
370
|
+
* Human-readable name used in JSON-RPC handler descriptions and diagnostics.
|
|
371
|
+
*/
|
|
372
|
+
name?: string;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Parser used by custom methods to validate or transform raw JSON-RPC params.
|
|
376
|
+
*
|
|
377
|
+
* A Zod schema can be passed directly because schemas expose a compatible
|
|
378
|
+
* `parse(...)` method.
|
|
379
|
+
*/
|
|
380
|
+
export type ParamsParser<Params> = {
|
|
381
|
+
/**
|
|
382
|
+
* Parses raw JSON-RPC params into the handler's typed params.
|
|
383
|
+
*/
|
|
384
|
+
parse: (params: unknown) => Params;
|
|
385
|
+
} | ((params: unknown) => Params);
|
|
386
|
+
/**
|
|
387
|
+
* Common context passed to agent-side handlers.
|
|
388
|
+
*/
|
|
389
|
+
export type AgentHandlerContext<Params> = {
|
|
390
|
+
/**
|
|
391
|
+
* Parsed request or notification params.
|
|
392
|
+
*/
|
|
393
|
+
params: Params;
|
|
394
|
+
/**
|
|
395
|
+
* AbortSignal for the current request, or the connection signal for
|
|
396
|
+
* notifications.
|
|
397
|
+
*/
|
|
398
|
+
signal: AbortSignal;
|
|
399
|
+
/**
|
|
400
|
+
* Typed client context for calling client-side ACP methods.
|
|
401
|
+
*/
|
|
402
|
+
client: AgentContext;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Context passed to agent-side request handlers.
|
|
406
|
+
*/
|
|
407
|
+
export type AgentRequestContext<Params> = AgentHandlerContext<Params> & {
|
|
408
|
+
/**
|
|
409
|
+
* JSON-RPC id of the request currently being handled.
|
|
410
|
+
*/
|
|
411
|
+
requestId: JsonRpcId;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Context passed to agent-side notification handlers.
|
|
415
|
+
*
|
|
416
|
+
* Notifications do not have JSON-RPC request ids.
|
|
417
|
+
*/
|
|
418
|
+
export type AgentNotificationContext<Params> = AgentHandlerContext<Params>;
|
|
419
|
+
/**
|
|
420
|
+
* Common context passed to client-side handlers.
|
|
421
|
+
*/
|
|
422
|
+
export type ClientHandlerContext<Params> = {
|
|
423
|
+
/**
|
|
424
|
+
* Parsed request or notification params.
|
|
425
|
+
*/
|
|
426
|
+
params: Params;
|
|
427
|
+
/**
|
|
428
|
+
* AbortSignal for the current request, or the connection signal for
|
|
429
|
+
* notifications.
|
|
430
|
+
*/
|
|
431
|
+
signal: AbortSignal;
|
|
432
|
+
/**
|
|
433
|
+
* Typed agent context for calling agent-side ACP methods.
|
|
434
|
+
*/
|
|
435
|
+
agent: ClientContext;
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* Context passed to client-side request handlers.
|
|
439
|
+
*/
|
|
440
|
+
export type ClientRequestContext<Params> = ClientHandlerContext<Params> & {
|
|
441
|
+
/**
|
|
442
|
+
* JSON-RPC id of the request currently being handled.
|
|
443
|
+
*/
|
|
444
|
+
requestId: JsonRpcId;
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* Context passed to client-side notification handlers.
|
|
448
|
+
*
|
|
449
|
+
* Notifications do not have JSON-RPC request ids.
|
|
450
|
+
*/
|
|
451
|
+
export type ClientNotificationContext<Params> = ClientHandlerContext<Params>;
|
|
452
|
+
/**
|
|
453
|
+
* Request handler registered on an `AgentApp`.
|
|
454
|
+
*/
|
|
455
|
+
export type AgentRequestHandler<Params, Response> = (context: AgentRequestContext<Params>) => MaybePromise<Response>;
|
|
456
|
+
/**
|
|
457
|
+
* Notification handler registered on an `AgentApp`.
|
|
458
|
+
*/
|
|
459
|
+
export type AgentNotificationHandler<Params> = (context: AgentNotificationContext<Params>) => MaybePromise<void>;
|
|
460
|
+
/**
|
|
461
|
+
* Request handler registered on a `ClientApp`.
|
|
462
|
+
*/
|
|
463
|
+
export type ClientRequestHandler<Params, Response> = (context: ClientRequestContext<Params>) => MaybePromise<Response>;
|
|
464
|
+
/**
|
|
465
|
+
* Notification handler registered on a `ClientApp`.
|
|
466
|
+
*/
|
|
467
|
+
export type ClientNotificationHandler<Params> = (context: ClientNotificationContext<Params>) => MaybePromise<void>;
|
|
468
|
+
/**
|
|
469
|
+
* Handler called when an `AgentApp` opens a connection.
|
|
470
|
+
*/
|
|
471
|
+
export type AgentConnectHandler = (connection: AgentConnection) => MaybePromise<void>;
|
|
472
|
+
/**
|
|
473
|
+
* Handler called when a `ClientApp` opens a connection.
|
|
474
|
+
*/
|
|
475
|
+
export type ClientConnectHandler = (connection: ClientConnection) => MaybePromise<void>;
|
|
476
|
+
/**
|
|
477
|
+
* Agent request handlers keyed by ACP protocol method name.
|
|
478
|
+
*/
|
|
479
|
+
export type AgentRequestHandlersByMethod = {
|
|
480
|
+
[schema.AGENT_METHODS.initialize]: AgentRequestHandler<schema.InitializeRequest, schema.InitializeResponse>;
|
|
481
|
+
[schema.AGENT_METHODS.session_new]: AgentRequestHandler<schema.NewSessionRequest, schema.NewSessionResponse>;
|
|
482
|
+
[schema.AGENT_METHODS.session_load]: AgentRequestHandler<schema.LoadSessionRequest, schema.LoadSessionResponse | void>;
|
|
483
|
+
[schema.AGENT_METHODS.session_fork]: AgentRequestHandler<schema.ForkSessionRequest, schema.ForkSessionResponse>;
|
|
484
|
+
[schema.AGENT_METHODS.session_list]: AgentRequestHandler<schema.ListSessionsRequest, schema.ListSessionsResponse>;
|
|
485
|
+
[schema.AGENT_METHODS.session_delete]: AgentRequestHandler<schema.DeleteSessionRequest, schema.DeleteSessionResponse | void>;
|
|
486
|
+
[schema.AGENT_METHODS.session_resume]: AgentRequestHandler<schema.ResumeSessionRequest, schema.ResumeSessionResponse>;
|
|
487
|
+
[schema.AGENT_METHODS.session_close]: AgentRequestHandler<schema.CloseSessionRequest, schema.CloseSessionResponse | void>;
|
|
488
|
+
[schema.AGENT_METHODS.session_set_mode]: AgentRequestHandler<schema.SetSessionModeRequest, schema.SetSessionModeResponse | void>;
|
|
489
|
+
[schema.AGENT_METHODS.session_set_config_option]: AgentRequestHandler<schema.SetSessionConfigOptionRequest, schema.SetSessionConfigOptionResponse>;
|
|
490
|
+
[schema.AGENT_METHODS.authenticate]: AgentRequestHandler<schema.AuthenticateRequest, schema.AuthenticateResponse | void>;
|
|
491
|
+
[schema.AGENT_METHODS.providers_list]: AgentRequestHandler<schema.ListProvidersRequest, schema.ListProvidersResponse>;
|
|
492
|
+
[schema.AGENT_METHODS.providers_set]: AgentRequestHandler<schema.SetProviderRequest, schema.SetProviderResponse | void>;
|
|
493
|
+
[schema.AGENT_METHODS.providers_disable]: AgentRequestHandler<schema.DisableProviderRequest, schema.DisableProviderResponse | void>;
|
|
494
|
+
[schema.AGENT_METHODS.logout]: AgentRequestHandler<schema.LogoutRequest, schema.LogoutResponse | void>;
|
|
495
|
+
[schema.AGENT_METHODS.session_prompt]: AgentRequestHandler<schema.PromptRequest, schema.PromptResponse>;
|
|
496
|
+
[schema.AGENT_METHODS.nes_start]: AgentRequestHandler<schema.StartNesRequest, schema.StartNesResponse>;
|
|
497
|
+
[schema.AGENT_METHODS.nes_suggest]: AgentRequestHandler<schema.SuggestNesRequest, schema.SuggestNesResponse>;
|
|
498
|
+
[schema.AGENT_METHODS.nes_close]: AgentRequestHandler<schema.CloseNesRequest, schema.CloseNesResponse | void>;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* ACP request methods that can be handled by an `AgentApp`.
|
|
502
|
+
*/
|
|
503
|
+
export type AgentRequestMethod = keyof AgentRequestHandlersByMethod & string;
|
|
504
|
+
/**
|
|
505
|
+
* Agent notification handlers keyed by ACP protocol method name.
|
|
506
|
+
*/
|
|
507
|
+
export type AgentNotificationHandlersByMethod = {
|
|
508
|
+
[schema.AGENT_METHODS
|
|
509
|
+
.session_cancel]: AgentNotificationHandler<schema.CancelNotification>;
|
|
510
|
+
[schema.AGENT_METHODS
|
|
511
|
+
.document_did_open]: AgentNotificationHandler<schema.DidOpenDocumentNotification>;
|
|
512
|
+
[schema.AGENT_METHODS
|
|
513
|
+
.document_did_change]: AgentNotificationHandler<schema.DidChangeDocumentNotification>;
|
|
514
|
+
[schema.AGENT_METHODS
|
|
515
|
+
.document_did_close]: AgentNotificationHandler<schema.DidCloseDocumentNotification>;
|
|
516
|
+
[schema.AGENT_METHODS
|
|
517
|
+
.document_did_save]: AgentNotificationHandler<schema.DidSaveDocumentNotification>;
|
|
518
|
+
[schema.AGENT_METHODS
|
|
519
|
+
.document_did_focus]: AgentNotificationHandler<schema.DidFocusDocumentNotification>;
|
|
520
|
+
[schema.AGENT_METHODS
|
|
521
|
+
.nes_accept]: AgentNotificationHandler<schema.AcceptNesNotification>;
|
|
522
|
+
[schema.AGENT_METHODS
|
|
523
|
+
.nes_reject]: AgentNotificationHandler<schema.RejectNesNotification>;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* ACP notification methods that can be handled by an `AgentApp`.
|
|
527
|
+
*/
|
|
528
|
+
export type AgentNotificationMethod = keyof AgentNotificationHandlersByMethod & string;
|
|
529
|
+
/**
|
|
530
|
+
* Client request handlers keyed by ACP protocol method name.
|
|
531
|
+
*/
|
|
532
|
+
export type ClientRequestHandlersByMethod = {
|
|
533
|
+
[schema.CLIENT_METHODS.session_request_permission]: ClientRequestHandler<schema.RequestPermissionRequest, schema.RequestPermissionResponse>;
|
|
534
|
+
[schema.CLIENT_METHODS.fs_write_text_file]: ClientRequestHandler<schema.WriteTextFileRequest, schema.WriteTextFileResponse | void>;
|
|
535
|
+
[schema.CLIENT_METHODS.fs_read_text_file]: ClientRequestHandler<schema.ReadTextFileRequest, schema.ReadTextFileResponse>;
|
|
536
|
+
[schema.CLIENT_METHODS.terminal_create]: ClientRequestHandler<schema.CreateTerminalRequest, schema.CreateTerminalResponse>;
|
|
537
|
+
[schema.CLIENT_METHODS.terminal_output]: ClientRequestHandler<schema.TerminalOutputRequest, schema.TerminalOutputResponse>;
|
|
538
|
+
[schema.CLIENT_METHODS.terminal_release]: ClientRequestHandler<schema.ReleaseTerminalRequest, schema.ReleaseTerminalResponse | void>;
|
|
539
|
+
[schema.CLIENT_METHODS.terminal_wait_for_exit]: ClientRequestHandler<schema.WaitForTerminalExitRequest, schema.WaitForTerminalExitResponse>;
|
|
540
|
+
[schema.CLIENT_METHODS.terminal_kill]: ClientRequestHandler<schema.KillTerminalRequest, schema.KillTerminalResponse | void>;
|
|
541
|
+
[schema.CLIENT_METHODS.elicitation_create]: ClientRequestHandler<schema.CreateElicitationRequest, schema.CreateElicitationResponse>;
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* ACP request methods that can be handled by a `ClientApp`.
|
|
545
|
+
*/
|
|
546
|
+
export type ClientRequestMethod = keyof ClientRequestHandlersByMethod & string;
|
|
547
|
+
/**
|
|
548
|
+
* Client notification handlers keyed by ACP protocol method name.
|
|
549
|
+
*/
|
|
550
|
+
export type ClientNotificationHandlersByMethod = {
|
|
551
|
+
[schema.CLIENT_METHODS
|
|
552
|
+
.session_update]: ClientNotificationHandler<schema.SessionNotification>;
|
|
553
|
+
[schema.CLIENT_METHODS
|
|
554
|
+
.elicitation_complete]: ClientNotificationHandler<schema.CompleteElicitationNotification>;
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* ACP notification methods that can be handled by a `ClientApp`.
|
|
558
|
+
*/
|
|
559
|
+
export type ClientNotificationMethod = keyof ClientNotificationHandlersByMethod & string;
|
|
560
|
+
/**
|
|
561
|
+
* Agent request params keyed by ACP protocol method name.
|
|
562
|
+
*/
|
|
563
|
+
export type AgentRequestParamsByMethod = {
|
|
564
|
+
[Method in AgentRequestMethod]: AgentRequestHandlersByMethod[Method] extends (context: infer Context) => MaybePromise<unknown> ? Context extends {
|
|
565
|
+
params: infer Params;
|
|
566
|
+
} ? Params : never : never;
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* Agent request responses keyed by ACP protocol method name.
|
|
570
|
+
*/
|
|
571
|
+
export type AgentRequestResponsesByMethod = {
|
|
572
|
+
[Method in AgentRequestMethod]: AgentRequestHandlersByMethod[Method] extends (context: infer _Context) => MaybePromise<infer Response> ? Exclude<Response, void> : never;
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* Agent notification params keyed by ACP protocol method name.
|
|
576
|
+
*/
|
|
577
|
+
export type AgentNotificationParamsByMethod = {
|
|
578
|
+
[Method in AgentNotificationMethod]: AgentNotificationHandlersByMethod[Method] extends (context: infer Context) => MaybePromise<void> ? Context extends {
|
|
579
|
+
params: infer Params;
|
|
580
|
+
} ? Params : never : never;
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* Client request params keyed by ACP protocol method name.
|
|
584
|
+
*/
|
|
585
|
+
export type ClientRequestParamsByMethod = {
|
|
586
|
+
[Method in ClientRequestMethod]: ClientRequestHandlersByMethod[Method] extends (context: infer Context) => MaybePromise<unknown> ? Context extends {
|
|
587
|
+
params: infer Params;
|
|
588
|
+
} ? Params : never : never;
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
* Client request responses keyed by ACP protocol method name.
|
|
592
|
+
*/
|
|
593
|
+
export type ClientRequestResponsesByMethod = {
|
|
594
|
+
[Method in ClientRequestMethod]: ClientRequestHandlersByMethod[Method] extends (context: infer _Context) => MaybePromise<infer Response> ? Exclude<Response, void> : never;
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Client notification params keyed by ACP protocol method name.
|
|
598
|
+
*/
|
|
599
|
+
export type ClientNotificationParamsByMethod = {
|
|
600
|
+
[Method in ClientNotificationMethod]: ClientNotificationHandlersByMethod[Method] extends (context: infer Context) => MaybePromise<void> ? Context extends {
|
|
601
|
+
params: infer Params;
|
|
602
|
+
} ? Params : never : never;
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* Creates an agent-side app.
|
|
606
|
+
*
|
|
607
|
+
* Register request and notification handlers by ACP method name, then call
|
|
608
|
+
* `connect(stream)` to serve an ACP client.
|
|
609
|
+
*/
|
|
610
|
+
export declare function agent(options?: AppOptions): AgentApp;
|
|
611
|
+
/**
|
|
612
|
+
* Agent-side app builder.
|
|
613
|
+
*
|
|
614
|
+
* Methods on this class register typed request or notification handlers and
|
|
615
|
+
* return `this`, so apps can be built with a fluent chain. Handler params are
|
|
616
|
+
* parsed with the generated ACP schemas before your handler runs, and thrown
|
|
617
|
+
* errors are converted to JSON-RPC errors by the connection layer.
|
|
618
|
+
*/
|
|
619
|
+
export declare class AgentApp {
|
|
620
|
+
private readonly builder;
|
|
621
|
+
private readonly connectHandlers;
|
|
622
|
+
constructor(options?: AppOptions);
|
|
623
|
+
/**
|
|
624
|
+
* Connects this agent app to a transport stream.
|
|
625
|
+
*/
|
|
626
|
+
connect(stream: Stream): AgentConnection;
|
|
627
|
+
/**
|
|
628
|
+
* Connects this agent app directly to a client app.
|
|
629
|
+
*
|
|
630
|
+
* This is useful for tests and in-process examples that do not need a
|
|
631
|
+
* transport.
|
|
632
|
+
*/
|
|
633
|
+
connect(client: ClientApp): AgentConnection;
|
|
634
|
+
/**
|
|
635
|
+
* Connects this agent app to a transport stream for the lifetime of `op`.
|
|
636
|
+
*
|
|
637
|
+
* The callback receives an `AgentContext` for calling client-side methods.
|
|
638
|
+
* When `op` resolves or rejects, the connection is closed.
|
|
639
|
+
*/
|
|
640
|
+
connectWith<T>(stream: Stream, op: (context: AgentContext) => MaybePromise<T>): Promise<T>;
|
|
641
|
+
/**
|
|
642
|
+
* Connects this agent app directly to a client app for the lifetime of `op`.
|
|
643
|
+
*/
|
|
644
|
+
connectWith<T>(client: ClientApp, op: (context: AgentContext) => MaybePromise<T>): Promise<T>;
|
|
645
|
+
/**
|
|
646
|
+
* Registers a handler that runs when this agent app opens a connection.
|
|
647
|
+
*
|
|
648
|
+
* Use this for connection-scoped work that needs to call client-side ACP
|
|
649
|
+
* methods outside an inbound request handler.
|
|
650
|
+
*/
|
|
651
|
+
onConnect(handler: AgentConnectHandler): this;
|
|
652
|
+
/**
|
|
653
|
+
* Registers a request handler by ACP method name.
|
|
654
|
+
*
|
|
655
|
+
* Built-in method literals infer their params and response types from
|
|
656
|
+
* `method`. Pass a parser as the second argument to register custom extension
|
|
657
|
+
* methods.
|
|
658
|
+
*/
|
|
659
|
+
onRequest<Method extends AgentRequestMethod>(method: Method, handler: AgentRequestHandlersByMethod[Method]): this;
|
|
660
|
+
onRequest<Params, Response>(method: string, params: ParamsParser<Params>, handler: AgentRequestHandler<Params, Response>): this;
|
|
661
|
+
/**
|
|
662
|
+
* Registers a notification handler by ACP method name.
|
|
663
|
+
*
|
|
664
|
+
* Built-in method literals infer their params type from `method`. Pass a
|
|
665
|
+
* parser as the second argument to register custom extension notifications.
|
|
666
|
+
*/
|
|
667
|
+
onNotification<Method extends AgentNotificationMethod>(method: Method, handler: AgentNotificationHandlersByMethod[Method]): this;
|
|
668
|
+
onNotification<Params>(method: string, params: ParamsParser<Params>, handler: AgentNotificationHandler<Params>): this;
|
|
669
|
+
private request;
|
|
670
|
+
private notification;
|
|
671
|
+
private connectConnection;
|
|
672
|
+
private openStreamConnection;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Creates a client-side app.
|
|
676
|
+
*
|
|
677
|
+
* Register request and notification handlers by ACP method name, then use
|
|
678
|
+
* `connectWith(...)` to run the workflow that calls agent-side methods.
|
|
679
|
+
*/
|
|
680
|
+
export declare function client(options?: AppOptions): ClientApp;
|
|
681
|
+
/**
|
|
682
|
+
* Client-side app builder.
|
|
683
|
+
*
|
|
684
|
+
* Methods on this class register typed client handlers and return `this`, so
|
|
685
|
+
* apps can be built with a fluent chain. `connectWith(...)` is the usual entry
|
|
686
|
+
* point for clients because it provides a `ClientContext` for calling
|
|
687
|
+
* agent-side requests and session helpers.
|
|
688
|
+
*/
|
|
689
|
+
export declare class ClientApp {
|
|
690
|
+
private readonly builder;
|
|
691
|
+
private readonly connectHandlers;
|
|
692
|
+
constructor(options?: AppOptions);
|
|
693
|
+
/**
|
|
694
|
+
* Connects this client app to a transport stream.
|
|
695
|
+
*/
|
|
696
|
+
connect(stream: Stream): ClientConnection;
|
|
697
|
+
/**
|
|
698
|
+
* Connects this client app directly to an agent app.
|
|
699
|
+
*
|
|
700
|
+
* This is useful for tests and in-process examples that do not need a
|
|
701
|
+
* transport.
|
|
702
|
+
*/
|
|
703
|
+
connect(agent: AgentApp): ClientConnection;
|
|
704
|
+
/**
|
|
705
|
+
* Connects this client app to a transport stream for the lifetime of `op`.
|
|
706
|
+
*
|
|
707
|
+
* The callback receives a `ClientContext` for calling agent-side methods.
|
|
708
|
+
* When `op` resolves or rejects, the connection is closed.
|
|
709
|
+
*/
|
|
710
|
+
connectWith<T>(stream: Stream, op: (context: ClientContext) => MaybePromise<T>): Promise<T>;
|
|
711
|
+
/**
|
|
712
|
+
* Connects this client app directly to an agent app for the lifetime of `op`.
|
|
713
|
+
*/
|
|
714
|
+
connectWith<T>(agent: AgentApp, op: (context: ClientContext) => MaybePromise<T>): Promise<T>;
|
|
715
|
+
/**
|
|
716
|
+
* Registers a handler that runs when this client app opens a connection.
|
|
717
|
+
*
|
|
718
|
+
* Use this for connection-scoped work that needs to call agent-side ACP
|
|
719
|
+
* methods outside an inbound request handler.
|
|
720
|
+
*/
|
|
721
|
+
onConnect(handler: ClientConnectHandler): this;
|
|
722
|
+
/**
|
|
723
|
+
* Registers a client request handler by ACP method name.
|
|
724
|
+
*
|
|
725
|
+
* Built-in method literals infer their params and response types from
|
|
726
|
+
* `method`. Pass a parser as the second argument to register custom extension
|
|
727
|
+
* methods.
|
|
728
|
+
*/
|
|
729
|
+
onRequest<Method extends ClientRequestMethod>(method: Method, handler: ClientRequestHandlersByMethod[Method]): this;
|
|
730
|
+
onRequest<Params, Response>(method: string, params: ParamsParser<Params>, handler: ClientRequestHandler<Params, Response>): this;
|
|
731
|
+
/**
|
|
732
|
+
* Registers a client notification handler by ACP method name.
|
|
733
|
+
*
|
|
734
|
+
* Built-in method literals infer their params type from `method`. Pass a
|
|
735
|
+
* parser as the second argument to register custom extension notifications.
|
|
736
|
+
*/
|
|
737
|
+
onNotification<Method extends ClientNotificationMethod>(method: Method, handler: ClientNotificationHandlersByMethod[Method]): this;
|
|
738
|
+
onNotification<Params>(method: string, params: ParamsParser<Params>, handler: ClientNotificationHandler<Params>): this;
|
|
739
|
+
private request;
|
|
740
|
+
private notification;
|
|
741
|
+
private connectConnection;
|
|
742
|
+
private openStreamConnection;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* An agent-side connection to a client.
|
|
746
|
+
*
|
|
747
|
+
* This class provides the agent's view of an ACP connection, allowing
|
|
748
|
+
* agents to communicate with clients. It implements the {@link Client} interface
|
|
749
|
+
* to provide methods for requesting permissions, accessing the file system,
|
|
750
|
+
* and sending session updates.
|
|
751
|
+
*
|
|
752
|
+
* See protocol docs: [Agent](https://agentclientprotocol.com/protocol/overview#agent)
|
|
753
|
+
*
|
|
754
|
+
* @deprecated Prefer {@link agent}, which registers typed handlers with a
|
|
755
|
+
* single context object and supports direct app composition.
|
|
756
|
+
*/
|
|
757
|
+
export declare class AgentSideConnection {
|
|
758
|
+
private connection;
|
|
759
|
+
/**
|
|
760
|
+
* Creates a new agent-side connection to a client.
|
|
761
|
+
*
|
|
762
|
+
* This establishes the communication channel from the agent's perspective
|
|
763
|
+
* following the ACP specification.
|
|
764
|
+
*
|
|
765
|
+
* @param toAgent - A function that creates an Agent handler to process incoming client requests
|
|
766
|
+
* @param stream - The bidirectional message stream for communication. Typically created using
|
|
767
|
+
* {@link ndJsonStream} for stdio-based connections.
|
|
768
|
+
*
|
|
769
|
+
* See protocol docs: [Communication Model](https://agentclientprotocol.com/protocol/overview#communication-model)
|
|
770
|
+
*
|
|
771
|
+
* @deprecated Prefer `agent({ name }).connect(stream)`.
|
|
772
|
+
*/
|
|
773
|
+
constructor(toAgent: (conn: AgentSideConnection) => Agent, stream: Stream);
|
|
774
|
+
/**
|
|
775
|
+
* Handles session update notifications from the agent.
|
|
776
|
+
*
|
|
777
|
+
* This is a notification endpoint (no response expected) that sends
|
|
778
|
+
* real-time updates about session progress, including message chunks,
|
|
779
|
+
* tool calls, and execution plans.
|
|
780
|
+
*
|
|
781
|
+
* Note: Clients SHOULD continue accepting tool call updates even after
|
|
782
|
+
* sending a `session/cancel` notification, as the agent may send final
|
|
783
|
+
* updates before responding with the cancelled stop reason.
|
|
784
|
+
*
|
|
785
|
+
* See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output)
|
|
786
|
+
*/
|
|
787
|
+
sessionUpdate(params: schema.SessionNotification): Promise<void>;
|
|
788
|
+
/**
|
|
789
|
+
* Requests permission from the user for a tool call operation.
|
|
790
|
+
*
|
|
791
|
+
* Called by the agent when it needs user authorization before executing
|
|
792
|
+
* a potentially sensitive operation. The client should present the options
|
|
793
|
+
* to the user and return their decision.
|
|
794
|
+
*
|
|
795
|
+
* If the client cancels the prompt turn via `session/cancel`, it MUST
|
|
796
|
+
* respond to this request with `RequestPermissionOutcome::Cancelled`.
|
|
797
|
+
*
|
|
798
|
+
* See protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/tool-calls#requesting-permission)
|
|
799
|
+
*/
|
|
800
|
+
requestPermission(params: schema.RequestPermissionRequest): Promise<schema.RequestPermissionResponse>;
|
|
801
|
+
/**
|
|
802
|
+
* Reads content from a text file in the client's file system.
|
|
803
|
+
*
|
|
804
|
+
* Only available if the client advertises the `fs.readTextFile` capability.
|
|
805
|
+
* Allows the agent to access file contents within the client's environment.
|
|
806
|
+
*
|
|
807
|
+
* See protocol docs: [Client](https://agentclientprotocol.com/protocol/overview#client)
|
|
808
|
+
*/
|
|
809
|
+
readTextFile(params: schema.ReadTextFileRequest): Promise<schema.ReadTextFileResponse>;
|
|
810
|
+
/**
|
|
811
|
+
* Writes content to a text file in the client's file system.
|
|
812
|
+
*
|
|
813
|
+
* Only available if the client advertises the `fs.writeTextFile` capability.
|
|
814
|
+
* Allows the agent to create or modify files within the client's environment.
|
|
815
|
+
*
|
|
816
|
+
* See protocol docs: [Client](https://agentclientprotocol.com/protocol/overview#client)
|
|
817
|
+
*/
|
|
818
|
+
writeTextFile(params: schema.WriteTextFileRequest): Promise<schema.WriteTextFileResponse>;
|
|
819
|
+
/**
|
|
820
|
+
* Executes a command in a new terminal.
|
|
821
|
+
*
|
|
822
|
+
* Returns a `TerminalHandle` that can be used to get output, wait for exit,
|
|
823
|
+
* kill the command, or release the terminal.
|
|
824
|
+
*
|
|
825
|
+
* The terminal can also be embedded in tool calls by using its ID in
|
|
826
|
+
* `ToolCallContent` with type "terminal".
|
|
827
|
+
*
|
|
828
|
+
* @param params - The terminal creation parameters
|
|
829
|
+
* @returns A handle to control and monitor the terminal
|
|
830
|
+
*/
|
|
831
|
+
createTerminal(params: schema.CreateTerminalRequest): Promise<TerminalHandle>;
|
|
832
|
+
/** Creates an elicitation to request input from the user. */
|
|
833
|
+
createElicitation(params: schema.CreateElicitationRequest): Promise<schema.CreateElicitationResponse>;
|
|
834
|
+
/** Notifies the client that a URL-based elicitation is complete. */
|
|
835
|
+
completeElicitation(params: schema.CompleteElicitationNotification): Promise<void>;
|
|
836
|
+
/**
|
|
837
|
+
* Sends a request to the client by ACP method name.
|
|
838
|
+
*
|
|
839
|
+
* Built-in method literals infer their params and response types. Custom
|
|
840
|
+
* methods can specify their response and params types with generics.
|
|
841
|
+
*/
|
|
842
|
+
request<Method extends ClientRequestMethod>(method: Method, params: ClientRequestParamsByMethod[Method], options?: SendRequestOptions): Promise<ClientRequestResponsesByMethod[Method]>;
|
|
843
|
+
request<Response = unknown, Params = unknown>(method: string, params?: Params, options?: SendRequestOptions): Promise<Response>;
|
|
844
|
+
/**
|
|
845
|
+
* Sends a notification to the client by ACP method name.
|
|
846
|
+
*
|
|
847
|
+
* Built-in method literals infer their params type. Custom notifications can
|
|
848
|
+
* specify their params type with a generic.
|
|
849
|
+
*/
|
|
850
|
+
notify<Method extends ClientNotificationMethod>(method: Method, params: ClientNotificationParamsByMethod[Method]): Promise<void>;
|
|
851
|
+
notify<Params = unknown>(method: string, params?: Params): Promise<void>;
|
|
852
|
+
/**
|
|
853
|
+
* Extension method.
|
|
854
|
+
*
|
|
855
|
+
* @deprecated Use {@link request}.
|
|
856
|
+
*/
|
|
857
|
+
extMethod(method: string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
858
|
+
/**
|
|
859
|
+
* Extension notification.
|
|
860
|
+
*
|
|
861
|
+
* @deprecated Use {@link notify}.
|
|
862
|
+
*/
|
|
863
|
+
extNotification(method: string, params: Record<string, unknown>): Promise<void>;
|
|
864
|
+
/**
|
|
865
|
+
* AbortSignal that aborts when the connection closes.
|
|
866
|
+
*
|
|
867
|
+
* This signal can be used to:
|
|
868
|
+
* - Listen for connection closure: `connection.signal.addEventListener('abort', () => {...})`
|
|
869
|
+
* - Check connection status synchronously: `if (connection.signal.aborted) {...}`
|
|
870
|
+
* - Pass to other APIs (fetch, setTimeout) for automatic cancellation
|
|
871
|
+
*
|
|
872
|
+
* The connection closes when the underlying stream ends, either normally or due to an error.
|
|
873
|
+
*
|
|
874
|
+
* @example
|
|
875
|
+
* ```typescript
|
|
876
|
+
* const connection = new AgentSideConnection(agent, stream);
|
|
877
|
+
*
|
|
878
|
+
* // Listen for closure
|
|
879
|
+
* connection.signal.addEventListener('abort', () => {
|
|
880
|
+
* console.log('Connection closed - performing cleanup');
|
|
881
|
+
* });
|
|
882
|
+
*
|
|
883
|
+
* // Check status
|
|
884
|
+
* if (connection.signal.aborted) {
|
|
885
|
+
* console.log('Connection is already closed');
|
|
886
|
+
* }
|
|
887
|
+
*
|
|
888
|
+
* // Pass to other APIs
|
|
889
|
+
* fetch(url, { signal: connection.signal });
|
|
890
|
+
* ```
|
|
891
|
+
*/
|
|
892
|
+
get signal(): AbortSignal;
|
|
893
|
+
/**
|
|
894
|
+
* Promise that resolves when the connection closes.
|
|
895
|
+
*
|
|
896
|
+
* The connection closes when the underlying stream ends, either normally or due to an error.
|
|
897
|
+
* Once closed, the connection cannot send or receive any more messages.
|
|
898
|
+
*
|
|
899
|
+
* This is useful for async/await style cleanup:
|
|
900
|
+
*
|
|
901
|
+
* @example
|
|
902
|
+
* ```typescript
|
|
903
|
+
* const connection = new AgentSideConnection(agent, stream);
|
|
904
|
+
* await connection.closed;
|
|
905
|
+
* console.log('Connection closed - performing cleanup');
|
|
906
|
+
* ```
|
|
907
|
+
*/
|
|
908
|
+
get closed(): Promise<void>;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Handle for controlling and monitoring a terminal created via `createTerminal`.
|
|
912
|
+
*
|
|
913
|
+
* Provides methods to:
|
|
914
|
+
* - Get current output without waiting
|
|
915
|
+
* - Wait for command completion
|
|
916
|
+
* - Kill the running command
|
|
917
|
+
* - Release terminal resources
|
|
918
|
+
*
|
|
919
|
+
* **Important:** Always call `release()` when done with the terminal to free resources.
|
|
920
|
+
|
|
921
|
+
* The terminal supports async disposal via `Symbol.asyncDispose` for automatic cleanup.
|
|
922
|
+
|
|
923
|
+
* You can use `await using` to ensure the terminal is automatically released when it
|
|
924
|
+
* goes out of scope.
|
|
925
|
+
*/
|
|
926
|
+
export declare class TerminalHandle {
|
|
927
|
+
/**
|
|
928
|
+
* Terminal identifier returned by `terminal/create`.
|
|
929
|
+
*/
|
|
930
|
+
id: string;
|
|
931
|
+
private sessionId;
|
|
932
|
+
private connection;
|
|
933
|
+
private constructor();
|
|
934
|
+
/**
|
|
935
|
+
* Gets the current terminal output without waiting for the command to exit.
|
|
936
|
+
*/
|
|
937
|
+
currentOutput(): Promise<schema.TerminalOutputResponse>;
|
|
938
|
+
/**
|
|
939
|
+
* Waits for the terminal command to complete and returns its exit status.
|
|
940
|
+
*/
|
|
941
|
+
waitForExit(): Promise<schema.WaitForTerminalExitResponse>;
|
|
942
|
+
/**
|
|
943
|
+
* Kills the terminal command without releasing the terminal.
|
|
944
|
+
*
|
|
945
|
+
* The terminal remains valid after killing, allowing you to:
|
|
946
|
+
* - Get the final output with `currentOutput()`
|
|
947
|
+
* - Check the exit status
|
|
948
|
+
* - Release the terminal when done
|
|
949
|
+
*
|
|
950
|
+
* Useful for implementing timeouts or cancellation.
|
|
951
|
+
*/
|
|
952
|
+
kill(): Promise<schema.KillTerminalResponse>;
|
|
953
|
+
/**
|
|
954
|
+
* Releases the terminal and frees all associated resources.
|
|
955
|
+
*
|
|
956
|
+
* If the command is still running, it will be killed.
|
|
957
|
+
* After release, the terminal ID becomes invalid and cannot be used
|
|
958
|
+
* with other terminal methods.
|
|
959
|
+
*
|
|
960
|
+
* Tool calls that already reference this terminal will continue to
|
|
961
|
+
* display its output.
|
|
962
|
+
*
|
|
963
|
+
* **Important:** Always call this method when done with the terminal.
|
|
964
|
+
*/
|
|
965
|
+
release(): Promise<schema.ReleaseTerminalResponse | void>;
|
|
966
|
+
/**
|
|
967
|
+
* Releases the terminal when used with `await using`.
|
|
968
|
+
*/
|
|
969
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* A client-side connection to an agent.
|
|
973
|
+
*
|
|
974
|
+
* This class provides the client's view of an ACP connection, allowing
|
|
975
|
+
* clients (such as code editors) to communicate with agents. It implements
|
|
976
|
+
* the {@link Agent} interface to provide methods for initializing sessions, sending
|
|
977
|
+
* prompts, and managing the agent lifecycle.
|
|
978
|
+
*
|
|
979
|
+
* See protocol docs: [Client](https://agentclientprotocol.com/protocol/overview#client)
|
|
980
|
+
*
|
|
981
|
+
* @deprecated Prefer {@link client}, which registers typed handlers with a
|
|
982
|
+
* single context object and supports `connectWith` and session helpers.
|
|
983
|
+
*/
|
|
984
|
+
export declare class ClientSideConnection implements Agent {
|
|
985
|
+
private connection;
|
|
986
|
+
/**
|
|
987
|
+
* Creates a new client-side connection to an agent.
|
|
988
|
+
*
|
|
989
|
+
* This establishes the communication channel between a client and agent
|
|
990
|
+
* following the ACP specification.
|
|
991
|
+
*
|
|
992
|
+
* @param toClient - A function that creates a Client handler to process incoming agent requests
|
|
993
|
+
* @param stream - The bidirectional message stream for communication. Typically created using
|
|
994
|
+
* {@link ndJsonStream} for stdio-based connections.
|
|
995
|
+
*
|
|
996
|
+
* See protocol docs: [Communication Model](https://agentclientprotocol.com/protocol/overview#communication-model)
|
|
997
|
+
*
|
|
998
|
+
* @deprecated Prefer `client({ name }).connectWith(stream, async (ctx) => ...)`.
|
|
999
|
+
*/
|
|
1000
|
+
constructor(toClient: (agent: Agent) => Client, stream: Stream);
|
|
1001
|
+
/**
|
|
1002
|
+
* Establishes the connection with a client and negotiates protocol capabilities.
|
|
1003
|
+
*
|
|
1004
|
+
* This method is called once at the beginning of the connection to:
|
|
1005
|
+
* - Negotiate the protocol version to use
|
|
1006
|
+
* - Exchange capability information between client and agent
|
|
1007
|
+
* - Determine available authentication methods
|
|
1008
|
+
*
|
|
1009
|
+
* The agent should respond with its supported protocol version and capabilities.
|
|
1010
|
+
*
|
|
1011
|
+
* See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/initialization)
|
|
1012
|
+
*/
|
|
1013
|
+
initialize(params: schema.InitializeRequest): Promise<schema.InitializeResponse>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Creates a new conversation session with the agent.
|
|
1016
|
+
*
|
|
1017
|
+
* Sessions represent independent conversation contexts with their own history and state.
|
|
1018
|
+
*
|
|
1019
|
+
* The agent should:
|
|
1020
|
+
* - Create a new session context
|
|
1021
|
+
* - Connect to any specified MCP servers
|
|
1022
|
+
* - Return a unique session ID for future requests
|
|
1023
|
+
*
|
|
1024
|
+
* The request may include `additionalDirectories` to expand the session's filesystem
|
|
1025
|
+
* scope beyond `cwd` without changing the base for relative paths.
|
|
1026
|
+
*
|
|
1027
|
+
* May return an `auth_required` error if the agent requires authentication.
|
|
1028
|
+
*
|
|
1029
|
+
* See protocol docs: [Session Setup](https://agentclientprotocol.com/protocol/session-setup)
|
|
1030
|
+
*/
|
|
1031
|
+
newSession(params: schema.NewSessionRequest): Promise<schema.NewSessionResponse>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Loads an existing session to resume a previous conversation.
|
|
1034
|
+
*
|
|
1035
|
+
* This method is only available if the agent advertises the `loadSession` capability.
|
|
1036
|
+
*
|
|
1037
|
+
* The agent should:
|
|
1038
|
+
* - Restore the session context and conversation history
|
|
1039
|
+
* - Connect to the specified MCP servers
|
|
1040
|
+
* - Stream the entire conversation history back to the client via notifications
|
|
1041
|
+
*
|
|
1042
|
+
* The request may include `additionalDirectories` to set the complete list of
|
|
1043
|
+
* additional workspace roots for the loaded session.
|
|
1044
|
+
*
|
|
1045
|
+
* See protocol docs: [Loading Sessions](https://agentclientprotocol.com/protocol/session-setup#loading-sessions)
|
|
1046
|
+
*/
|
|
1047
|
+
loadSession(params: schema.LoadSessionRequest): Promise<schema.LoadSessionResponse>;
|
|
1048
|
+
/**
|
|
1049
|
+
* **UNSTABLE**
|
|
1050
|
+
*
|
|
1051
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1052
|
+
*
|
|
1053
|
+
* Forks an existing session to create a new independent session.
|
|
1054
|
+
*
|
|
1055
|
+
* Creates a new session based on the context of an existing one, allowing
|
|
1056
|
+
* operations like generating summaries without affecting the original session's history.
|
|
1057
|
+
*
|
|
1058
|
+
* The request may include `additionalDirectories` to set the complete list of
|
|
1059
|
+
* additional workspace roots for the forked session.
|
|
1060
|
+
*
|
|
1061
|
+
* This method is only available if the agent advertises the `session.fork` capability.
|
|
1062
|
+
*
|
|
1063
|
+
* @experimental
|
|
1064
|
+
*/
|
|
1065
|
+
unstable_forkSession(params: schema.ForkSessionRequest): Promise<schema.ForkSessionResponse>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Lists existing sessions from the agent.
|
|
1068
|
+
*
|
|
1069
|
+
* This method is only available if the agent advertises the `listSessions` capability.
|
|
1070
|
+
*
|
|
1071
|
+
* Returns a list of sessions with metadata like session ID, working directory,
|
|
1072
|
+
* title, and last update time. Supports filtering by working directory,
|
|
1073
|
+
* `additionalDirectories`, and cursor-based pagination.
|
|
1074
|
+
*/
|
|
1075
|
+
listSessions(params: schema.ListSessionsRequest): Promise<schema.ListSessionsResponse>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Deletes an existing session returned by `session/list`.
|
|
1078
|
+
*
|
|
1079
|
+
* This method is only available if the agent advertises the `sessionCapabilities.delete` capability.
|
|
1080
|
+
*/
|
|
1081
|
+
deleteSession(params: schema.DeleteSessionRequest): Promise<schema.DeleteSessionResponse>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Resumes an existing session without returning previous messages.
|
|
1084
|
+
*
|
|
1085
|
+
* This method is only available if the agent advertises the `session.resume` capability.
|
|
1086
|
+
*
|
|
1087
|
+
* The agent should resume the session context, allowing the conversation to continue
|
|
1088
|
+
* without replaying the message history (unlike `session/load`).
|
|
1089
|
+
*
|
|
1090
|
+
* The request may include `additionalDirectories` to set the complete list of
|
|
1091
|
+
* additional workspace roots for the resumed session.
|
|
1092
|
+
*/
|
|
1093
|
+
resumeSession(params: schema.ResumeSessionRequest): Promise<schema.ResumeSessionResponse>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Closes an active session and frees up any resources associated with it.
|
|
1096
|
+
*
|
|
1097
|
+
* This method is only available if the agent advertises the `session.close` capability.
|
|
1098
|
+
*
|
|
1099
|
+
* The agent must cancel any ongoing work (as if `session/cancel` was called)
|
|
1100
|
+
* and then free up any resources associated with the session.
|
|
1101
|
+
*/
|
|
1102
|
+
closeSession(params: schema.CloseSessionRequest): Promise<schema.CloseSessionResponse>;
|
|
1103
|
+
/**
|
|
1104
|
+
* Sets the operational mode for a session.
|
|
1105
|
+
*
|
|
1106
|
+
* Allows switching between different agent modes (e.g., "ask", "architect", "code")
|
|
1107
|
+
* that affect system prompts, tool availability, and permission behaviors.
|
|
1108
|
+
*
|
|
1109
|
+
* The mode must be one of the modes advertised in `availableModes` during session
|
|
1110
|
+
* creation or loading. Agents may also change modes autonomously and notify the
|
|
1111
|
+
* client via `current_mode_update` notifications.
|
|
1112
|
+
*
|
|
1113
|
+
* This method can be called at any time during a session, whether the Agent is
|
|
1114
|
+
* idle or actively generating a turn.
|
|
1115
|
+
*
|
|
1116
|
+
* See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)
|
|
1117
|
+
*/
|
|
1118
|
+
setSessionMode(params: schema.SetSessionModeRequest): Promise<schema.SetSessionModeResponse>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Set a configuration option for a given session.
|
|
1121
|
+
*
|
|
1122
|
+
* The response contains the full set of configuration options and their current values,
|
|
1123
|
+
* as changing one option may affect the available values or state of other options.
|
|
1124
|
+
*/
|
|
1125
|
+
setSessionConfigOption(params: schema.SetSessionConfigOptionRequest): Promise<schema.SetSessionConfigOptionResponse>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Authenticates the client using the specified authentication method.
|
|
1128
|
+
*
|
|
1129
|
+
* Called when the agent requires authentication before allowing session creation.
|
|
1130
|
+
* The client provides the authentication method ID that was advertised during initialization.
|
|
1131
|
+
*
|
|
1132
|
+
* After successful authentication, the client can proceed to create sessions with
|
|
1133
|
+
* `newSession` without receiving an `auth_required` error.
|
|
1134
|
+
*
|
|
1135
|
+
* See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/initialization)
|
|
1136
|
+
*/
|
|
1137
|
+
authenticate(params: schema.AuthenticateRequest): Promise<schema.AuthenticateResponse>;
|
|
1138
|
+
/**
|
|
1139
|
+
* **UNSTABLE**
|
|
1140
|
+
*
|
|
1141
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1142
|
+
*
|
|
1143
|
+
* Lists providers that can be configured by the client.
|
|
1144
|
+
*
|
|
1145
|
+
* This method is only available if the agent advertises the `providers` capability.
|
|
1146
|
+
*
|
|
1147
|
+
* @experimental
|
|
1148
|
+
*/
|
|
1149
|
+
unstable_listProviders(params: schema.ListProvidersRequest): Promise<schema.ListProvidersResponse>;
|
|
1150
|
+
/**
|
|
1151
|
+
* **UNSTABLE**
|
|
1152
|
+
*
|
|
1153
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1154
|
+
*
|
|
1155
|
+
* Replaces the configuration for a provider.
|
|
1156
|
+
*
|
|
1157
|
+
* This method is only available if the agent advertises the `providers` capability.
|
|
1158
|
+
*
|
|
1159
|
+
* @experimental
|
|
1160
|
+
*/
|
|
1161
|
+
unstable_setProvider(params: schema.SetProviderRequest): Promise<schema.SetProviderResponse>;
|
|
1162
|
+
/**
|
|
1163
|
+
* **UNSTABLE**
|
|
1164
|
+
*
|
|
1165
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1166
|
+
*
|
|
1167
|
+
* Disables a provider.
|
|
1168
|
+
*
|
|
1169
|
+
* This method is only available if the agent advertises the `providers` capability.
|
|
1170
|
+
*
|
|
1171
|
+
* @experimental
|
|
1172
|
+
*/
|
|
1173
|
+
unstable_disableProvider(params: schema.DisableProviderRequest): Promise<schema.DisableProviderResponse>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Logout of the current authentication method.
|
|
1176
|
+
*/
|
|
1177
|
+
logout(params: schema.LogoutRequest): Promise<schema.LogoutResponse>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Processes a user prompt within a session.
|
|
1180
|
+
*
|
|
1181
|
+
* This method handles the whole lifecycle of a prompt:
|
|
1182
|
+
* - Receives user messages with optional context (files, images, etc.)
|
|
1183
|
+
* - Processes the prompt using language models
|
|
1184
|
+
* - Reports language model content and tool calls to the Clients
|
|
1185
|
+
* - Requests permission to run tools
|
|
1186
|
+
* - Executes any requested tool calls
|
|
1187
|
+
* - Returns when the turn is complete with a stop reason
|
|
1188
|
+
*
|
|
1189
|
+
* See protocol docs: [Prompt Turn](https://agentclientprotocol.com/protocol/prompt-turn)
|
|
1190
|
+
*/
|
|
1191
|
+
prompt(params: schema.PromptRequest): Promise<schema.PromptResponse>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Cancels ongoing operations for a session.
|
|
1194
|
+
*
|
|
1195
|
+
* This is a notification sent by the client to cancel an ongoing prompt turn.
|
|
1196
|
+
*
|
|
1197
|
+
* Upon receiving this notification, the Agent SHOULD:
|
|
1198
|
+
* - Stop all language model requests as soon as possible
|
|
1199
|
+
* - Abort all tool call invocations in progress
|
|
1200
|
+
* - Send any pending `session/update` notifications
|
|
1201
|
+
* - Respond to the original `session/prompt` request with `StopReason::Cancelled`
|
|
1202
|
+
*
|
|
1203
|
+
* See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/prompt-turn#cancellation)
|
|
1204
|
+
*/
|
|
1205
|
+
cancel(params: schema.CancelNotification): Promise<void>;
|
|
1206
|
+
/**
|
|
1207
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1208
|
+
*
|
|
1209
|
+
* Starts a NES (Next Edit Suggestions) session.
|
|
1210
|
+
*
|
|
1211
|
+
* @experimental
|
|
1212
|
+
*/
|
|
1213
|
+
unstable_startNes(params: schema.StartNesRequest): Promise<schema.StartNesResponse>;
|
|
1214
|
+
/**
|
|
1215
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1216
|
+
*
|
|
1217
|
+
* Sends a NES suggestion request.
|
|
1218
|
+
*
|
|
1219
|
+
* @experimental
|
|
1220
|
+
*/
|
|
1221
|
+
unstable_suggestNes(params: schema.SuggestNesRequest): Promise<schema.SuggestNesResponse>;
|
|
1222
|
+
/**
|
|
1223
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1224
|
+
*
|
|
1225
|
+
* Closes a NES session.
|
|
1226
|
+
*
|
|
1227
|
+
* @experimental
|
|
1228
|
+
*/
|
|
1229
|
+
unstable_closeNes(params: schema.CloseNesRequest): Promise<schema.CloseNesResponse>;
|
|
1230
|
+
/**
|
|
1231
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1232
|
+
*
|
|
1233
|
+
* Notifies the agent that a document was opened.
|
|
1234
|
+
*
|
|
1235
|
+
* @experimental
|
|
1236
|
+
*/
|
|
1237
|
+
unstable_didOpenDocument(params: schema.DidOpenDocumentNotification): Promise<void>;
|
|
1238
|
+
/**
|
|
1239
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1240
|
+
*
|
|
1241
|
+
* Notifies the agent that a document was changed.
|
|
1242
|
+
*
|
|
1243
|
+
* @experimental
|
|
1244
|
+
*/
|
|
1245
|
+
unstable_didChangeDocument(params: schema.DidChangeDocumentNotification): Promise<void>;
|
|
1246
|
+
/**
|
|
1247
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1248
|
+
*
|
|
1249
|
+
* Notifies the agent that a document was closed.
|
|
1250
|
+
*
|
|
1251
|
+
* @experimental
|
|
1252
|
+
*/
|
|
1253
|
+
unstable_didCloseDocument(params: schema.DidCloseDocumentNotification): Promise<void>;
|
|
1254
|
+
/**
|
|
1255
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1256
|
+
*
|
|
1257
|
+
* Notifies the agent that a document was saved.
|
|
1258
|
+
*
|
|
1259
|
+
* @experimental
|
|
1260
|
+
*/
|
|
1261
|
+
unstable_didSaveDocument(params: schema.DidSaveDocumentNotification): Promise<void>;
|
|
1262
|
+
/**
|
|
1263
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1264
|
+
*
|
|
1265
|
+
* Notifies the agent that a document received focus.
|
|
1266
|
+
*
|
|
1267
|
+
* @experimental
|
|
1268
|
+
*/
|
|
1269
|
+
unstable_didFocusDocument(params: schema.DidFocusDocumentNotification): Promise<void>;
|
|
1270
|
+
/**
|
|
1271
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1272
|
+
*
|
|
1273
|
+
* Notifies the agent that a NES suggestion was accepted.
|
|
1274
|
+
*
|
|
1275
|
+
* @experimental
|
|
1276
|
+
*/
|
|
1277
|
+
unstable_acceptNes(params: schema.AcceptNesNotification): Promise<void>;
|
|
1278
|
+
/**
|
|
1279
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1280
|
+
*
|
|
1281
|
+
* Notifies the agent that a NES suggestion was rejected.
|
|
1282
|
+
*
|
|
1283
|
+
* @experimental
|
|
1284
|
+
*/
|
|
1285
|
+
unstable_rejectNes(params: schema.RejectNesNotification): Promise<void>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Sends a request to the agent by ACP method name.
|
|
1288
|
+
*
|
|
1289
|
+
* Built-in method literals infer their params and response types. Custom
|
|
1290
|
+
* methods can specify their response and params types with generics.
|
|
1291
|
+
*/
|
|
1292
|
+
request<Method extends AgentRequestMethod>(method: Method, params: AgentRequestParamsByMethod[Method], options?: SendRequestOptions): Promise<AgentRequestResponsesByMethod[Method]>;
|
|
1293
|
+
request<Response = unknown, Params = unknown>(method: string, params?: Params, options?: SendRequestOptions): Promise<Response>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Sends a notification to the agent by ACP method name.
|
|
1296
|
+
*
|
|
1297
|
+
* Built-in method literals infer their params type. Custom notifications can
|
|
1298
|
+
* specify their params type with a generic.
|
|
1299
|
+
*/
|
|
1300
|
+
notify<Method extends AgentNotificationMethod>(method: Method, params: AgentNotificationParamsByMethod[Method]): Promise<void>;
|
|
1301
|
+
notify<Params = unknown>(method: string, params?: Params): Promise<void>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Extension method.
|
|
1304
|
+
*
|
|
1305
|
+
* @deprecated Use {@link request}.
|
|
1306
|
+
*/
|
|
1307
|
+
extMethod(method: string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1308
|
+
/**
|
|
1309
|
+
* Extension notification.
|
|
1310
|
+
*
|
|
1311
|
+
* @deprecated Use {@link notify}.
|
|
1312
|
+
*/
|
|
1313
|
+
extNotification(method: string, params: Record<string, unknown>): Promise<void>;
|
|
1314
|
+
/**
|
|
1315
|
+
* AbortSignal that aborts when the connection closes.
|
|
1316
|
+
*
|
|
1317
|
+
* This signal can be used to:
|
|
1318
|
+
* - Listen for connection closure: `connection.signal.addEventListener('abort', () => {...})`
|
|
1319
|
+
* - Check connection status synchronously: `if (connection.signal.aborted) {...}`
|
|
1320
|
+
* - Pass to other APIs (fetch, setTimeout) for automatic cancellation
|
|
1321
|
+
*
|
|
1322
|
+
* The connection closes when the underlying stream ends, either normally or due to an error.
|
|
1323
|
+
*
|
|
1324
|
+
* @example
|
|
1325
|
+
* ```typescript
|
|
1326
|
+
* const connection = new ClientSideConnection(client, stream);
|
|
1327
|
+
*
|
|
1328
|
+
* // Listen for closure
|
|
1329
|
+
* connection.signal.addEventListener('abort', () => {
|
|
1330
|
+
* console.log('Connection closed - performing cleanup');
|
|
1331
|
+
* });
|
|
1332
|
+
*
|
|
1333
|
+
* // Check status
|
|
1334
|
+
* if (connection.signal.aborted) {
|
|
1335
|
+
* console.log('Connection is already closed');
|
|
1336
|
+
* }
|
|
1337
|
+
*
|
|
1338
|
+
* // Pass to other APIs
|
|
1339
|
+
* fetch(url, { signal: connection.signal });
|
|
1340
|
+
* ```
|
|
1341
|
+
*/
|
|
1342
|
+
get signal(): AbortSignal;
|
|
1343
|
+
/**
|
|
1344
|
+
* Promise that resolves when the connection closes.
|
|
1345
|
+
*
|
|
1346
|
+
* The connection closes when the underlying stream ends, either normally or due to an error.
|
|
1347
|
+
* Once closed, the connection cannot send or receive any more messages.
|
|
1348
|
+
*
|
|
1349
|
+
* This is useful for async/await style cleanup:
|
|
1350
|
+
*
|
|
1351
|
+
* @example
|
|
1352
|
+
* ```typescript
|
|
1353
|
+
* const connection = new ClientSideConnection(client, stream);
|
|
1354
|
+
* await connection.closed;
|
|
1355
|
+
* console.log('Connection closed - performing cleanup');
|
|
1356
|
+
* ```
|
|
1357
|
+
*/
|
|
1358
|
+
get closed(): Promise<void>;
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* The Client interface defines the interface that ACP-compliant clients must implement.
|
|
1362
|
+
*
|
|
1363
|
+
* Clients are typically code editors (IDEs, text editors) that provide the interface
|
|
1364
|
+
* between users and AI agents. They manage the environment, handle user interactions,
|
|
1365
|
+
* and control access to resources.
|
|
1366
|
+
*/
|
|
1367
|
+
export interface Client {
|
|
1368
|
+
/**
|
|
1369
|
+
* Requests permission from the user for a tool call operation.
|
|
1370
|
+
*
|
|
1371
|
+
* Called by the agent when it needs user authorization before executing
|
|
1372
|
+
* a potentially sensitive operation. The client should present the options
|
|
1373
|
+
* to the user and return their decision.
|
|
1374
|
+
*
|
|
1375
|
+
* If the client cancels the prompt turn via `session/cancel`, it MUST
|
|
1376
|
+
* respond to this request with `RequestPermissionOutcome::Cancelled`.
|
|
1377
|
+
*
|
|
1378
|
+
* See protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/tool-calls#requesting-permission)
|
|
1379
|
+
*/
|
|
1380
|
+
requestPermission(params: schema.RequestPermissionRequest): MaybePromise<schema.RequestPermissionResponse>;
|
|
1381
|
+
/**
|
|
1382
|
+
* Handles session update notifications from the agent.
|
|
1383
|
+
*
|
|
1384
|
+
* This is a notification endpoint (no response expected) that receives
|
|
1385
|
+
* real-time updates about session progress, including message chunks,
|
|
1386
|
+
* tool calls, and execution plans.
|
|
1387
|
+
*
|
|
1388
|
+
* Note: Clients SHOULD continue accepting tool call updates even after
|
|
1389
|
+
* sending a `session/cancel` notification, as the agent may send final
|
|
1390
|
+
* updates before responding with the cancelled stop reason.
|
|
1391
|
+
*
|
|
1392
|
+
* See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/prompt-turn#3-agent-reports-output)
|
|
1393
|
+
*/
|
|
1394
|
+
sessionUpdate(params: schema.SessionNotification): MaybePromise<void>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Writes content to a text file in the client's file system.
|
|
1397
|
+
*
|
|
1398
|
+
* Only available if the client advertises the `fs.writeTextFile` capability.
|
|
1399
|
+
* Allows the agent to create or modify files within the client's environment.
|
|
1400
|
+
*
|
|
1401
|
+
* See protocol docs: [Client](https://agentclientprotocol.com/protocol/overview#client)
|
|
1402
|
+
*/
|
|
1403
|
+
writeTextFile?(params: schema.WriteTextFileRequest): MaybePromise<schema.WriteTextFileResponse | void>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Reads content from a text file in the client's file system.
|
|
1406
|
+
*
|
|
1407
|
+
* Only available if the client advertises the `fs.readTextFile` capability.
|
|
1408
|
+
* Allows the agent to access file contents within the client's environment.
|
|
1409
|
+
*
|
|
1410
|
+
* See protocol docs: [Client](https://agentclientprotocol.com/protocol/overview#client)
|
|
1411
|
+
*/
|
|
1412
|
+
readTextFile?(params: schema.ReadTextFileRequest): MaybePromise<schema.ReadTextFileResponse>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Creates a new terminal to execute a command.
|
|
1415
|
+
*
|
|
1416
|
+
* Only available if the `terminal` capability is set to `true`.
|
|
1417
|
+
*
|
|
1418
|
+
* The Agent must call `releaseTerminal` when done with the terminal
|
|
1419
|
+
* to free resources.
|
|
1420
|
+
|
|
1421
|
+
* @see {@link https://agentclientprotocol.com/protocol/terminals | Terminal Documentation}
|
|
1422
|
+
*/
|
|
1423
|
+
createTerminal?(params: schema.CreateTerminalRequest): MaybePromise<schema.CreateTerminalResponse>;
|
|
1424
|
+
/**
|
|
1425
|
+
* Gets the current output and exit status of a terminal.
|
|
1426
|
+
*
|
|
1427
|
+
* Returns immediately without waiting for the command to complete.
|
|
1428
|
+
* If the command has already exited, the exit status is included.
|
|
1429
|
+
*
|
|
1430
|
+
* @see {@link https://agentclientprotocol.com/protocol/terminals#getting-output | Getting Terminal Output}
|
|
1431
|
+
*/
|
|
1432
|
+
terminalOutput?(params: schema.TerminalOutputRequest): MaybePromise<schema.TerminalOutputResponse>;
|
|
1433
|
+
/**
|
|
1434
|
+
* Releases a terminal and frees all associated resources.
|
|
1435
|
+
*
|
|
1436
|
+
* The command is killed if it hasn't exited yet. After release,
|
|
1437
|
+
* the terminal ID becomes invalid for all other terminal methods.
|
|
1438
|
+
*
|
|
1439
|
+
* Tool calls that already contain the terminal ID continue to
|
|
1440
|
+
* display its output.
|
|
1441
|
+
*
|
|
1442
|
+
* @see {@link https://agentclientprotocol.com/protocol/terminals#releasing-terminals | Releasing Terminals}
|
|
1443
|
+
*/
|
|
1444
|
+
releaseTerminal?(params: schema.ReleaseTerminalRequest): MaybePromise<schema.ReleaseTerminalResponse | void>;
|
|
1445
|
+
/**
|
|
1446
|
+
* Waits for a terminal command to exit and returns its exit status.
|
|
1447
|
+
*
|
|
1448
|
+
* This method returns once the command completes, providing the
|
|
1449
|
+
* exit code and/or signal that terminated the process.
|
|
1450
|
+
*
|
|
1451
|
+
* @see {@link https://agentclientprotocol.com/protocol/terminals#waiting-for-exit | Waiting for Exit}
|
|
1452
|
+
*/
|
|
1453
|
+
waitForTerminalExit?(params: schema.WaitForTerminalExitRequest): MaybePromise<schema.WaitForTerminalExitResponse>;
|
|
1454
|
+
/**
|
|
1455
|
+
* Kills a terminal command without releasing the terminal.
|
|
1456
|
+
*
|
|
1457
|
+
* While `releaseTerminal` also kills the command, this method keeps
|
|
1458
|
+
* the terminal ID valid so it can be used with other methods.
|
|
1459
|
+
*
|
|
1460
|
+
* Useful for implementing command timeouts that terminate the command
|
|
1461
|
+
* and then retrieve the final output.
|
|
1462
|
+
*
|
|
1463
|
+
* Note: Call `releaseTerminal` when the terminal is no longer needed.
|
|
1464
|
+
*
|
|
1465
|
+
* @see {@link https://agentclientprotocol.com/protocol/terminals#killing-commands | Killing Commands}
|
|
1466
|
+
*/
|
|
1467
|
+
killTerminal?(params: schema.KillTerminalRequest): MaybePromise<schema.KillTerminalResponse | void>;
|
|
1468
|
+
/** Creates an elicitation to request input from the user. */
|
|
1469
|
+
createElicitation?(params: schema.CreateElicitationRequest): MaybePromise<schema.CreateElicitationResponse>;
|
|
1470
|
+
/** Called when a URL-based elicitation is complete. */
|
|
1471
|
+
completeElicitation?(params: schema.CompleteElicitationNotification): MaybePromise<void>;
|
|
1472
|
+
/**
|
|
1473
|
+
* Handles a request that is not otherwise registered by the legacy client.
|
|
1474
|
+
*
|
|
1475
|
+
* Allows the Agent to send an arbitrary request that is not part of the ACP spec.
|
|
1476
|
+
*
|
|
1477
|
+
* To help avoid conflicts, it's a good practice to prefix extension
|
|
1478
|
+
* methods with a unique identifier such as domain name.
|
|
1479
|
+
*
|
|
1480
|
+
* @deprecated Prefer `client().onRequest(...)` for custom methods.
|
|
1481
|
+
*/
|
|
1482
|
+
extMethod?(method: string, params: Record<string, unknown>): MaybePromise<Record<string, unknown>>;
|
|
1483
|
+
/**
|
|
1484
|
+
* Handles a notification that is not otherwise registered by the legacy client.
|
|
1485
|
+
*
|
|
1486
|
+
* Allows the Agent to send an arbitrary notification that is not part of the ACP spec.
|
|
1487
|
+
*
|
|
1488
|
+
* @deprecated Prefer `client().onNotification(...)` for custom notifications.
|
|
1489
|
+
*/
|
|
1490
|
+
extNotification?(method: string, params: Record<string, unknown>): MaybePromise<void>;
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* The Agent interface defines the interface that all ACP-compliant agents must implement.
|
|
1494
|
+
*
|
|
1495
|
+
* Agents are programs that use generative AI to autonomously modify code. They handle
|
|
1496
|
+
* requests from clients and execute tasks using language models and tools.
|
|
1497
|
+
*/
|
|
1498
|
+
export interface Agent {
|
|
1499
|
+
/**
|
|
1500
|
+
* Establishes the connection with a client and negotiates protocol capabilities.
|
|
1501
|
+
*
|
|
1502
|
+
* This method is called once at the beginning of the connection to:
|
|
1503
|
+
* - Negotiate the protocol version to use
|
|
1504
|
+
* - Exchange capability information between client and agent
|
|
1505
|
+
* - Determine available authentication methods
|
|
1506
|
+
*
|
|
1507
|
+
* The agent should respond with its supported protocol version and capabilities.
|
|
1508
|
+
*
|
|
1509
|
+
* See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/initialization)
|
|
1510
|
+
*/
|
|
1511
|
+
initialize(params: schema.InitializeRequest): MaybePromise<schema.InitializeResponse>;
|
|
1512
|
+
/**
|
|
1513
|
+
* Creates a new conversation session with the agent.
|
|
1514
|
+
*
|
|
1515
|
+
* Sessions represent independent conversation contexts with their own history and state.
|
|
1516
|
+
*
|
|
1517
|
+
* The agent should:
|
|
1518
|
+
* - Create a new session context
|
|
1519
|
+
* - Connect to any specified MCP servers
|
|
1520
|
+
* - Return a unique session ID for future requests
|
|
1521
|
+
*
|
|
1522
|
+
* The request may include `additionalDirectories` to expand the session's filesystem
|
|
1523
|
+
* scope beyond `cwd` without changing the base for relative paths.
|
|
1524
|
+
*
|
|
1525
|
+
* May return an `auth_required` error if the agent requires authentication.
|
|
1526
|
+
*
|
|
1527
|
+
* See protocol docs: [Session Setup](https://agentclientprotocol.com/protocol/session-setup)
|
|
1528
|
+
*/
|
|
1529
|
+
newSession(params: schema.NewSessionRequest): MaybePromise<schema.NewSessionResponse>;
|
|
1530
|
+
/**
|
|
1531
|
+
* Loads an existing session to resume a previous conversation.
|
|
1532
|
+
*
|
|
1533
|
+
* This method is only available if the agent advertises the `loadSession` capability.
|
|
1534
|
+
*
|
|
1535
|
+
* The agent should:
|
|
1536
|
+
* - Restore the session context and conversation history
|
|
1537
|
+
* - Connect to the specified MCP servers
|
|
1538
|
+
* - Stream the entire conversation history back to the client via notifications
|
|
1539
|
+
*
|
|
1540
|
+
* The request may include `additionalDirectories` to set the complete list of
|
|
1541
|
+
* additional workspace roots for the loaded session.
|
|
1542
|
+
*
|
|
1543
|
+
* See protocol docs: [Loading Sessions](https://agentclientprotocol.com/protocol/session-setup#loading-sessions)
|
|
1544
|
+
*/
|
|
1545
|
+
loadSession?(params: schema.LoadSessionRequest): MaybePromise<schema.LoadSessionResponse | void>;
|
|
1546
|
+
/**
|
|
1547
|
+
* **UNSTABLE**
|
|
1548
|
+
*
|
|
1549
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1550
|
+
*
|
|
1551
|
+
* Forks an existing session to create a new independent session.
|
|
1552
|
+
*
|
|
1553
|
+
* Creates a new session based on the context of an existing one, allowing
|
|
1554
|
+
* operations like generating summaries without affecting the original session's history.
|
|
1555
|
+
*
|
|
1556
|
+
* The request may include `additionalDirectories` to set the complete list of
|
|
1557
|
+
* additional workspace roots for the forked session.
|
|
1558
|
+
*
|
|
1559
|
+
* This method is only available if the agent advertises the `session.fork` capability.
|
|
1560
|
+
*
|
|
1561
|
+
* @experimental
|
|
1562
|
+
*/
|
|
1563
|
+
unstable_forkSession?(params: schema.ForkSessionRequest): MaybePromise<schema.ForkSessionResponse>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Lists existing sessions from the agent.
|
|
1566
|
+
*
|
|
1567
|
+
* This method is only available if the agent advertises the `listSessions` capability.
|
|
1568
|
+
*
|
|
1569
|
+
* Returns a list of sessions with metadata like session ID, working directory,
|
|
1570
|
+
* title, and last update time. Supports filtering by working directory,
|
|
1571
|
+
* `additionalDirectories`, and cursor-based pagination.
|
|
1572
|
+
*/
|
|
1573
|
+
listSessions?(params: schema.ListSessionsRequest): MaybePromise<schema.ListSessionsResponse>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Deletes an existing session returned by `session/list`.
|
|
1576
|
+
*
|
|
1577
|
+
* This method is only available if the agent advertises the `sessionCapabilities.delete` capability.
|
|
1578
|
+
*/
|
|
1579
|
+
deleteSession?(params: schema.DeleteSessionRequest): MaybePromise<schema.DeleteSessionResponse | void>;
|
|
1580
|
+
/**
|
|
1581
|
+
* Resumes an existing session without returning previous messages.
|
|
1582
|
+
*
|
|
1583
|
+
* This method is only available if the agent advertises the `session.resume` capability.
|
|
1584
|
+
*
|
|
1585
|
+
* The agent should resume the session context, allowing the conversation to continue
|
|
1586
|
+
* without replaying the message history (unlike `session/load`).
|
|
1587
|
+
*
|
|
1588
|
+
* The request may include `additionalDirectories` to set the complete list of
|
|
1589
|
+
* additional workspace roots for the resumed session.
|
|
1590
|
+
*/
|
|
1591
|
+
resumeSession?(params: schema.ResumeSessionRequest): MaybePromise<schema.ResumeSessionResponse>;
|
|
1592
|
+
/**
|
|
1593
|
+
* Closes an active session and frees up any resources associated with it.
|
|
1594
|
+
*
|
|
1595
|
+
* This method is only available if the agent advertises the `session.close` capability.
|
|
1596
|
+
*
|
|
1597
|
+
* The agent must cancel any ongoing work (as if `session/cancel` was called)
|
|
1598
|
+
* and then free up any resources associated with the session.
|
|
1599
|
+
*/
|
|
1600
|
+
closeSession?(params: schema.CloseSessionRequest): MaybePromise<schema.CloseSessionResponse | void>;
|
|
1601
|
+
/**
|
|
1602
|
+
* Sets the operational mode for a session.
|
|
1603
|
+
*
|
|
1604
|
+
* Allows switching between different agent modes (e.g., "ask", "architect", "code")
|
|
1605
|
+
* that affect system prompts, tool availability, and permission behaviors.
|
|
1606
|
+
*
|
|
1607
|
+
* The mode must be one of the modes advertised in `availableModes` during session
|
|
1608
|
+
* creation or loading. Agents may also change modes autonomously and notify the
|
|
1609
|
+
* client via `current_mode_update` notifications.
|
|
1610
|
+
*
|
|
1611
|
+
* This method can be called at any time during a session, whether the Agent is
|
|
1612
|
+
* idle or actively generating a turn.
|
|
1613
|
+
*
|
|
1614
|
+
* See protocol docs: [Session Modes](https://agentclientprotocol.com/protocol/session-modes)
|
|
1615
|
+
*/
|
|
1616
|
+
setSessionMode?(params: schema.SetSessionModeRequest): MaybePromise<schema.SetSessionModeResponse | void>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Set a configuration option for a given session.
|
|
1619
|
+
*
|
|
1620
|
+
* The response contains the full set of configuration options and their current values,
|
|
1621
|
+
* as changing one option may affect the available values or state of other options.
|
|
1622
|
+
*/
|
|
1623
|
+
setSessionConfigOption?(params: schema.SetSessionConfigOptionRequest): MaybePromise<schema.SetSessionConfigOptionResponse>;
|
|
1624
|
+
/**
|
|
1625
|
+
* Authenticates the client using the specified authentication method.
|
|
1626
|
+
*
|
|
1627
|
+
* Called when the agent requires authentication before allowing session creation.
|
|
1628
|
+
* The client provides the authentication method ID that was advertised during initialization.
|
|
1629
|
+
*
|
|
1630
|
+
* After successful authentication, the client can proceed to create sessions with
|
|
1631
|
+
* `newSession` without receiving an `auth_required` error.
|
|
1632
|
+
*
|
|
1633
|
+
* See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/initialization)
|
|
1634
|
+
*/
|
|
1635
|
+
authenticate(params: schema.AuthenticateRequest): MaybePromise<schema.AuthenticateResponse | void>;
|
|
1636
|
+
/**
|
|
1637
|
+
* **UNSTABLE**
|
|
1638
|
+
*
|
|
1639
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1640
|
+
*
|
|
1641
|
+
* Lists providers that can be configured by the client.
|
|
1642
|
+
*
|
|
1643
|
+
* This method is only available if the agent advertises the `providers` capability.
|
|
1644
|
+
*
|
|
1645
|
+
* @experimental
|
|
1646
|
+
*/
|
|
1647
|
+
unstable_listProviders?(params: schema.ListProvidersRequest): MaybePromise<schema.ListProvidersResponse>;
|
|
1648
|
+
/**
|
|
1649
|
+
* **UNSTABLE**
|
|
1650
|
+
*
|
|
1651
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1652
|
+
*
|
|
1653
|
+
* Replaces the configuration for a provider.
|
|
1654
|
+
*
|
|
1655
|
+
* This method is only available if the agent advertises the `providers` capability.
|
|
1656
|
+
*
|
|
1657
|
+
* @experimental
|
|
1658
|
+
*/
|
|
1659
|
+
unstable_setProvider?(params: schema.SetProviderRequest): MaybePromise<schema.SetProviderResponse | void>;
|
|
1660
|
+
/**
|
|
1661
|
+
* **UNSTABLE**
|
|
1662
|
+
*
|
|
1663
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1664
|
+
*
|
|
1665
|
+
* Disables a provider.
|
|
1666
|
+
*
|
|
1667
|
+
* This method is only available if the agent advertises the `providers` capability.
|
|
1668
|
+
*
|
|
1669
|
+
* @experimental
|
|
1670
|
+
*/
|
|
1671
|
+
unstable_disableProvider?(params: schema.DisableProviderRequest): MaybePromise<schema.DisableProviderResponse | void>;
|
|
1672
|
+
/**
|
|
1673
|
+
* Logout of the current authentication method.
|
|
1674
|
+
*/
|
|
1675
|
+
logout?(params: schema.LogoutRequest): MaybePromise<schema.LogoutResponse | void>;
|
|
1676
|
+
/**
|
|
1677
|
+
* Processes a user prompt within a session.
|
|
1678
|
+
*
|
|
1679
|
+
* This method handles the whole lifecycle of a prompt:
|
|
1680
|
+
* - Receives user messages with optional context (files, images, etc.)
|
|
1681
|
+
* - Processes the prompt using language models
|
|
1682
|
+
* - Reports language model content and tool calls to the Clients
|
|
1683
|
+
* - Requests permission to run tools
|
|
1684
|
+
* - Executes any requested tool calls
|
|
1685
|
+
* - Returns when the turn is complete with a stop reason
|
|
1686
|
+
*
|
|
1687
|
+
* See protocol docs: [Prompt Turn](https://agentclientprotocol.com/protocol/prompt-turn)
|
|
1688
|
+
*/
|
|
1689
|
+
prompt(params: schema.PromptRequest): MaybePromise<schema.PromptResponse>;
|
|
1690
|
+
/**
|
|
1691
|
+
* Cancels ongoing operations for a session.
|
|
1692
|
+
*
|
|
1693
|
+
* This is a notification sent by the client to cancel an ongoing prompt turn.
|
|
1694
|
+
*
|
|
1695
|
+
* Upon receiving this notification, the Agent SHOULD:
|
|
1696
|
+
* - Stop all language model requests as soon as possible
|
|
1697
|
+
* - Abort all tool call invocations in progress
|
|
1698
|
+
* - Send any pending `session/update` notifications
|
|
1699
|
+
* - Respond to the original `session/prompt` request with `StopReason::Cancelled`
|
|
1700
|
+
*
|
|
1701
|
+
* See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/prompt-turn#cancellation)
|
|
1702
|
+
*/
|
|
1703
|
+
cancel(params: schema.CancelNotification): MaybePromise<void>;
|
|
1704
|
+
/**
|
|
1705
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1706
|
+
*
|
|
1707
|
+
* Starts a NES (Next Edit Suggestions) session.
|
|
1708
|
+
*
|
|
1709
|
+
* @experimental
|
|
1710
|
+
*/
|
|
1711
|
+
unstable_startNes?(params: schema.StartNesRequest): MaybePromise<schema.StartNesResponse>;
|
|
1712
|
+
/**
|
|
1713
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1714
|
+
*
|
|
1715
|
+
* Sends a NES suggestion request.
|
|
1716
|
+
*
|
|
1717
|
+
* @experimental
|
|
1718
|
+
*/
|
|
1719
|
+
unstable_suggestNes?(params: schema.SuggestNesRequest): MaybePromise<schema.SuggestNesResponse>;
|
|
1720
|
+
/**
|
|
1721
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1722
|
+
*
|
|
1723
|
+
* Closes a NES session.
|
|
1724
|
+
*
|
|
1725
|
+
* @experimental
|
|
1726
|
+
*/
|
|
1727
|
+
unstable_closeNes?(params: schema.CloseNesRequest): MaybePromise<schema.CloseNesResponse | void>;
|
|
1728
|
+
/**
|
|
1729
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1730
|
+
*
|
|
1731
|
+
* Called when a document is opened.
|
|
1732
|
+
*
|
|
1733
|
+
* @experimental
|
|
1734
|
+
*/
|
|
1735
|
+
unstable_didOpenDocument?(params: schema.DidOpenDocumentNotification): MaybePromise<void>;
|
|
1736
|
+
/**
|
|
1737
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1738
|
+
*
|
|
1739
|
+
* Called when a document is changed.
|
|
1740
|
+
*
|
|
1741
|
+
* @experimental
|
|
1742
|
+
*/
|
|
1743
|
+
unstable_didChangeDocument?(params: schema.DidChangeDocumentNotification): MaybePromise<void>;
|
|
1744
|
+
/**
|
|
1745
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1746
|
+
*
|
|
1747
|
+
* Called when a document is closed.
|
|
1748
|
+
*
|
|
1749
|
+
* @experimental
|
|
1750
|
+
*/
|
|
1751
|
+
unstable_didCloseDocument?(params: schema.DidCloseDocumentNotification): MaybePromise<void>;
|
|
1752
|
+
/**
|
|
1753
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1754
|
+
*
|
|
1755
|
+
* Called when a document is saved.
|
|
1756
|
+
*
|
|
1757
|
+
* @experimental
|
|
1758
|
+
*/
|
|
1759
|
+
unstable_didSaveDocument?(params: schema.DidSaveDocumentNotification): MaybePromise<void>;
|
|
1760
|
+
/**
|
|
1761
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1762
|
+
*
|
|
1763
|
+
* Called when a document receives focus.
|
|
1764
|
+
*
|
|
1765
|
+
* @experimental
|
|
1766
|
+
*/
|
|
1767
|
+
unstable_didFocusDocument?(params: schema.DidFocusDocumentNotification): MaybePromise<void>;
|
|
1768
|
+
/**
|
|
1769
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1770
|
+
*
|
|
1771
|
+
* Called when a NES suggestion is accepted.
|
|
1772
|
+
*
|
|
1773
|
+
* @experimental
|
|
1774
|
+
*/
|
|
1775
|
+
unstable_acceptNes?(params: schema.AcceptNesNotification): MaybePromise<void>;
|
|
1776
|
+
/**
|
|
1777
|
+
* **UNSTABLE**: This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1778
|
+
*
|
|
1779
|
+
* Called when a NES suggestion is rejected.
|
|
1780
|
+
*
|
|
1781
|
+
* @experimental
|
|
1782
|
+
*/
|
|
1783
|
+
unstable_rejectNes?(params: schema.RejectNesNotification): MaybePromise<void>;
|
|
1784
|
+
/**
|
|
1785
|
+
* Handles a request that is not otherwise registered by the legacy agent.
|
|
1786
|
+
*
|
|
1787
|
+
* Allows the Client to send an arbitrary request that is not part of the ACP spec.
|
|
1788
|
+
*
|
|
1789
|
+
* To help avoid conflicts, it's a good practice to prefix extension
|
|
1790
|
+
* methods with a unique identifier such as domain name.
|
|
1791
|
+
*
|
|
1792
|
+
* @deprecated Prefer `agent().onRequest(...)` for custom methods.
|
|
1793
|
+
*/
|
|
1794
|
+
extMethod?(method: string, params: Record<string, unknown>): MaybePromise<Record<string, unknown>>;
|
|
1795
|
+
/**
|
|
1796
|
+
* Handles a notification that is not otherwise registered by the legacy agent.
|
|
1797
|
+
*
|
|
1798
|
+
* Allows the Client to send an arbitrary notification that is not part of the ACP spec.
|
|
1799
|
+
*
|
|
1800
|
+
* @deprecated Prefer `agent().onNotification(...)` for custom notifications.
|
|
1801
|
+
*/
|
|
1802
|
+
extNotification?(method: string, params: Record<string, unknown>): MaybePromise<void>;
|
|
1803
|
+
}
|