@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,3199 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { defaultOnError, excludeKnownTags, preserveCustomPayload, requiredDefaultOnError, vecSkipError, } from "../../schema-deserialize.js";
|
|
3
|
+
import * as z from "zod/v4";
|
|
4
|
+
/**
|
|
5
|
+
* JSON RPC Request Id
|
|
6
|
+
*
|
|
7
|
+
* An identifier established by the Client that MUST contain a String, Number, or NULL value if included. If it is not included it is assumed to be a notification. The value SHOULD normally not be Null \[1\] and Numbers SHOULD NOT contain fractional parts \[2\]
|
|
8
|
+
*
|
|
9
|
+
* The Server MUST reply with the same value in the Response object if included. This member is used to correlate the context between the two objects.
|
|
10
|
+
*
|
|
11
|
+
* \[1\] The use of Null as a value for the id member in a Request object is discouraged, because this specification uses a value of Null for Responses with an unknown id. Also, because JSON-RPC 1.0 uses an id value of Null for Notifications this could cause confusion in handling.
|
|
12
|
+
*
|
|
13
|
+
* \[2\] Fractional parts may be problematic, since many decimal fractions cannot be represented exactly as binary fractions.
|
|
14
|
+
*/
|
|
15
|
+
export const zRequestId = z.union([z.number(), z.string()]).nullable();
|
|
16
|
+
/**
|
|
17
|
+
* A unique identifier for a conversation session between a client and agent.
|
|
18
|
+
*
|
|
19
|
+
* Sessions maintain their own context, conversation history, and state,
|
|
20
|
+
* allowing multiple independent interactions with the same agent.
|
|
21
|
+
*
|
|
22
|
+
* See protocol docs: [Session ID](https://agentclientprotocol.com/protocol/v2/draft/session-setup#session-id)
|
|
23
|
+
*/
|
|
24
|
+
export const zSessionId = z.string();
|
|
25
|
+
/**
|
|
26
|
+
* Unique identifier for a tool call within a session.
|
|
27
|
+
*/
|
|
28
|
+
export const zToolCallId = z.string();
|
|
29
|
+
/**
|
|
30
|
+
* Categories of tools that can be invoked.
|
|
31
|
+
*
|
|
32
|
+
* Tool kinds help clients choose appropriate icons and optimize how they
|
|
33
|
+
* display tool execution progress.
|
|
34
|
+
*
|
|
35
|
+
* See protocol docs: [Creating](https://agentclientprotocol.com/protocol/v2/draft/tool-calls#creating)
|
|
36
|
+
*/
|
|
37
|
+
export const zToolKind = z.union([
|
|
38
|
+
z.literal("read"),
|
|
39
|
+
z.literal("edit"),
|
|
40
|
+
z.literal("delete"),
|
|
41
|
+
z.literal("move"),
|
|
42
|
+
z.literal("search"),
|
|
43
|
+
z.literal("execute"),
|
|
44
|
+
z.literal("think"),
|
|
45
|
+
z.literal("fetch"),
|
|
46
|
+
z.literal("switch_mode"),
|
|
47
|
+
z.literal("other"),
|
|
48
|
+
z.string(),
|
|
49
|
+
]);
|
|
50
|
+
/**
|
|
51
|
+
* Execution status of a tool call.
|
|
52
|
+
*
|
|
53
|
+
* Tool calls progress through different statuses during their lifecycle.
|
|
54
|
+
*
|
|
55
|
+
* See protocol docs: [Status](https://agentclientprotocol.com/protocol/v2/draft/tool-calls#status)
|
|
56
|
+
*/
|
|
57
|
+
export const zToolCallStatus = z.union([
|
|
58
|
+
z.literal("pending"),
|
|
59
|
+
z.literal("in_progress"),
|
|
60
|
+
z.literal("completed"),
|
|
61
|
+
z.literal("failed"),
|
|
62
|
+
z.literal("cancelled"),
|
|
63
|
+
z.string(),
|
|
64
|
+
]);
|
|
65
|
+
/**
|
|
66
|
+
* The sender or recipient of messages and data in a conversation.
|
|
67
|
+
*/
|
|
68
|
+
export const zRole = z.union([
|
|
69
|
+
z.literal("assistant"),
|
|
70
|
+
z.literal("user"),
|
|
71
|
+
z.string(),
|
|
72
|
+
]);
|
|
73
|
+
/**
|
|
74
|
+
* Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
|
|
75
|
+
*/
|
|
76
|
+
export const zAnnotations = z.object({
|
|
77
|
+
audience: defaultOnError(vecSkipError(zRole).nullish(), () => undefined),
|
|
78
|
+
lastModified: defaultOnError(z.iso.datetime({ offset: true }).nullish(), () => undefined),
|
|
79
|
+
priority: defaultOnError(z.number().gte(0).lte(1).nullish(), () => undefined),
|
|
80
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
81
|
+
});
|
|
82
|
+
/**
|
|
83
|
+
* Text provided to or from an LLM.
|
|
84
|
+
*/
|
|
85
|
+
export const zTextContent = z.object({
|
|
86
|
+
text: z.string(),
|
|
87
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
|
|
88
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* An Internet media type identifying the format of protocol content.
|
|
92
|
+
*/
|
|
93
|
+
export const zMediaType = z.string();
|
|
94
|
+
/**
|
|
95
|
+
* An image provided to or from an LLM.
|
|
96
|
+
*/
|
|
97
|
+
export const zImageContent = z.object({
|
|
98
|
+
data: z.string(),
|
|
99
|
+
mimeType: zMediaType,
|
|
100
|
+
uri: defaultOnError(z.url().nullish(), () => undefined),
|
|
101
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
|
|
102
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
103
|
+
});
|
|
104
|
+
/**
|
|
105
|
+
* Audio provided to or from an LLM.
|
|
106
|
+
*/
|
|
107
|
+
export const zAudioContent = z.object({
|
|
108
|
+
data: z.string(),
|
|
109
|
+
mimeType: zMediaType,
|
|
110
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
|
|
111
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Theme an icon is designed for.
|
|
115
|
+
*/
|
|
116
|
+
export const zIconTheme = z.union([
|
|
117
|
+
z.literal("light"),
|
|
118
|
+
z.literal("dark"),
|
|
119
|
+
z.string(),
|
|
120
|
+
]);
|
|
121
|
+
/**
|
|
122
|
+
* An optionally-sized icon that can be displayed in a user interface.
|
|
123
|
+
*/
|
|
124
|
+
export const zIcon = z.object({
|
|
125
|
+
src: z.url(),
|
|
126
|
+
mimeType: defaultOnError(zMediaType.nullish(), () => undefined),
|
|
127
|
+
sizes: defaultOnError(vecSkipError(z.string()).nullish(), () => undefined),
|
|
128
|
+
theme: defaultOnError(zIconTheme.nullish(), () => undefined),
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* A resource that the server is capable of reading, included in a prompt or tool call result.
|
|
132
|
+
*/
|
|
133
|
+
export const zResourceLink = z.object({
|
|
134
|
+
name: z.string(),
|
|
135
|
+
uri: z.url(),
|
|
136
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
137
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
138
|
+
icons: defaultOnError(vecSkipError(zIcon).nullish(), () => undefined),
|
|
139
|
+
mimeType: defaultOnError(zMediaType.nullish(), () => undefined),
|
|
140
|
+
size: defaultOnError(z.number().nullish(), () => undefined),
|
|
141
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
|
|
142
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
143
|
+
});
|
|
144
|
+
/**
|
|
145
|
+
* Text-based resource contents.
|
|
146
|
+
*/
|
|
147
|
+
export const zTextResourceContents = z.object({
|
|
148
|
+
text: z.string(),
|
|
149
|
+
uri: z.url(),
|
|
150
|
+
mimeType: defaultOnError(zMediaType.nullish(), () => undefined),
|
|
151
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* Binary resource contents.
|
|
155
|
+
*/
|
|
156
|
+
export const zBlobResourceContents = z.object({
|
|
157
|
+
blob: z.string(),
|
|
158
|
+
uri: z.url(),
|
|
159
|
+
mimeType: defaultOnError(zMediaType.nullish(), () => undefined),
|
|
160
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
161
|
+
});
|
|
162
|
+
/**
|
|
163
|
+
* Resource content that can be embedded in a message.
|
|
164
|
+
*/
|
|
165
|
+
export const zEmbeddedResourceResource = z.union([
|
|
166
|
+
zTextResourceContents,
|
|
167
|
+
zBlobResourceContents,
|
|
168
|
+
]);
|
|
169
|
+
/**
|
|
170
|
+
* The contents of a resource, embedded into a prompt or tool call result.
|
|
171
|
+
*/
|
|
172
|
+
export const zEmbeddedResource = z.object({
|
|
173
|
+
resource: zEmbeddedResourceResource,
|
|
174
|
+
annotations: defaultOnError(zAnnotations.nullish(), () => undefined),
|
|
175
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
176
|
+
});
|
|
177
|
+
/**
|
|
178
|
+
* Content blocks represent displayable information in the Agent Client Protocol.
|
|
179
|
+
*
|
|
180
|
+
* They provide a structured way to handle various types of user-facing content—whether
|
|
181
|
+
* it's text from language models, images for analysis, or embedded resources for context.
|
|
182
|
+
*
|
|
183
|
+
* Content blocks appear in:
|
|
184
|
+
* - User prompts sent via `session/prompt`
|
|
185
|
+
* - Language model output reported through `session/update` notifications as
|
|
186
|
+
* message updates or streamed chunks
|
|
187
|
+
* - Progress updates and results from tool calls
|
|
188
|
+
*
|
|
189
|
+
* This structure is compatible with the Model Context Protocol (MCP), enabling
|
|
190
|
+
* agents to seamlessly forward content from MCP tool outputs without transformation.
|
|
191
|
+
*
|
|
192
|
+
* See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/draft/content)
|
|
193
|
+
*
|
|
194
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
195
|
+
* properties exactly as received; unlike known variants, those keys
|
|
196
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
197
|
+
*/
|
|
198
|
+
export const zContentBlock = preserveCustomPayload(z.union([
|
|
199
|
+
zTextContent.and(z.object({
|
|
200
|
+
type: z.literal("text"),
|
|
201
|
+
})),
|
|
202
|
+
zImageContent.and(z.object({
|
|
203
|
+
type: z.literal("image"),
|
|
204
|
+
})),
|
|
205
|
+
zAudioContent.and(z.object({
|
|
206
|
+
type: z.literal("audio"),
|
|
207
|
+
})),
|
|
208
|
+
zResourceLink.and(z.object({
|
|
209
|
+
type: z.literal("resource_link"),
|
|
210
|
+
})),
|
|
211
|
+
zEmbeddedResource.and(z.object({
|
|
212
|
+
type: z.literal("resource"),
|
|
213
|
+
})),
|
|
214
|
+
excludeKnownTags(z.object({
|
|
215
|
+
type: z.string(),
|
|
216
|
+
}), "type", ["audio", "image", "resource", "resource_link", "text"]),
|
|
217
|
+
]), "type", ["audio", "image", "resource", "resource_link", "text"]);
|
|
218
|
+
/**
|
|
219
|
+
* Standard content block (text, images, resources).
|
|
220
|
+
*/
|
|
221
|
+
export const zContent = z.object({
|
|
222
|
+
content: zContentBlock,
|
|
223
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
224
|
+
});
|
|
225
|
+
/**
|
|
226
|
+
* Kind of file content represented by a diff change.
|
|
227
|
+
*/
|
|
228
|
+
export const zDiffFileType = z.union([
|
|
229
|
+
z.literal("text"),
|
|
230
|
+
z.literal("binary"),
|
|
231
|
+
z.literal("directory"),
|
|
232
|
+
z.literal("symlink"),
|
|
233
|
+
z.string(),
|
|
234
|
+
]);
|
|
235
|
+
/**
|
|
236
|
+
* An absolute filesystem path used by the protocol.
|
|
237
|
+
*/
|
|
238
|
+
export const zAbsolutePath = z.string();
|
|
239
|
+
/**
|
|
240
|
+
* Operation metadata for add, delete, and modify changes.
|
|
241
|
+
*/
|
|
242
|
+
export const zDiffPathChange = z.object({
|
|
243
|
+
path: zAbsolutePath,
|
|
244
|
+
});
|
|
245
|
+
/**
|
|
246
|
+
* Operation metadata for move and copy changes.
|
|
247
|
+
*/
|
|
248
|
+
export const zDiffPathPairChange = z.object({
|
|
249
|
+
oldPath: zAbsolutePath,
|
|
250
|
+
path: zAbsolutePath,
|
|
251
|
+
});
|
|
252
|
+
/**
|
|
253
|
+
* One file-level change described by a [`Diff`].
|
|
254
|
+
*
|
|
255
|
+
* Structured change metadata lets clients identify affected files and
|
|
256
|
+
* operations without parsing the text patch.
|
|
257
|
+
*
|
|
258
|
+
* Custom variants (unknown `operation` values) keep their extra
|
|
259
|
+
* properties exactly as received; unlike known variants, those keys
|
|
260
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
261
|
+
*/
|
|
262
|
+
export const zDiffChange = preserveCustomPayload(z.intersection(z.union([
|
|
263
|
+
zDiffPathChange.and(z.object({
|
|
264
|
+
operation: z.literal("add"),
|
|
265
|
+
})),
|
|
266
|
+
zDiffPathChange.and(z.object({
|
|
267
|
+
operation: z.literal("delete"),
|
|
268
|
+
})),
|
|
269
|
+
zDiffPathChange.and(z.object({
|
|
270
|
+
operation: z.literal("modify"),
|
|
271
|
+
})),
|
|
272
|
+
zDiffPathPairChange.and(z.object({
|
|
273
|
+
operation: z.literal("move"),
|
|
274
|
+
})),
|
|
275
|
+
zDiffPathPairChange.and(z.object({
|
|
276
|
+
operation: z.literal("copy"),
|
|
277
|
+
})),
|
|
278
|
+
excludeKnownTags(z.object({
|
|
279
|
+
operation: z.string(),
|
|
280
|
+
}), "operation", ["add", "copy", "delete", "modify", "move"]),
|
|
281
|
+
]), z.object({
|
|
282
|
+
fileType: defaultOnError(zDiffFileType.nullish(), () => undefined),
|
|
283
|
+
mimeType: defaultOnError(zMediaType.nullish(), () => undefined),
|
|
284
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
285
|
+
})), "operation", ["add", "copy", "delete", "modify", "move"]);
|
|
286
|
+
/**
|
|
287
|
+
* Text patch format used by [`DiffPatch`].
|
|
288
|
+
*/
|
|
289
|
+
export const zDiffPatchFormat = z.union([z.literal("git_patch"), z.string()]);
|
|
290
|
+
/**
|
|
291
|
+
* Renderable patch text and its format.
|
|
292
|
+
*/
|
|
293
|
+
export const zDiffPatch = z.object({
|
|
294
|
+
format: zDiffPatchFormat,
|
|
295
|
+
text: z.string(),
|
|
296
|
+
});
|
|
297
|
+
/**
|
|
298
|
+
* File changes produced by a tool call.
|
|
299
|
+
*
|
|
300
|
+
* `changes` is authoritative for affected absolute paths and operations.
|
|
301
|
+
* `patch` optionally carries renderable text for some or all of those changes
|
|
302
|
+
* and MUST be consistent with `changes`. Agents SHOULD provide `patch` whenever
|
|
303
|
+
* feasible. Clients MUST handle diffs where `patch` is omitted or `null`.
|
|
304
|
+
*
|
|
305
|
+
* See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/draft/tool-calls#content)
|
|
306
|
+
*/
|
|
307
|
+
export const zDiff = z.object({
|
|
308
|
+
changes: vecSkipError(zDiffChange),
|
|
309
|
+
patch: defaultOnError(zDiffPatch.nullish(), () => undefined),
|
|
310
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
311
|
+
});
|
|
312
|
+
/**
|
|
313
|
+
* Unique identifier for an agent-owned terminal within a session.
|
|
314
|
+
*/
|
|
315
|
+
export const zTerminalId = z.string();
|
|
316
|
+
/**
|
|
317
|
+
* A display-only reference to an agent-owned terminal.
|
|
318
|
+
*
|
|
319
|
+
* Terminal state and output are delivered separately through
|
|
320
|
+
* [`TerminalUpdate`] and [`TerminalOutputChunk`].
|
|
321
|
+
*/
|
|
322
|
+
export const zTerminal = z.object({
|
|
323
|
+
terminalId: zTerminalId,
|
|
324
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
325
|
+
});
|
|
326
|
+
/**
|
|
327
|
+
* Content produced by a tool call.
|
|
328
|
+
*
|
|
329
|
+
* Tool calls can produce different types of content including standard
|
|
330
|
+
* content blocks (text, images), file diffs, or display-only terminals.
|
|
331
|
+
*
|
|
332
|
+
* See protocol docs: [Content](https://agentclientprotocol.com/protocol/v2/draft/tool-calls#content)
|
|
333
|
+
*
|
|
334
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
335
|
+
* properties exactly as received; unlike known variants, those keys
|
|
336
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
337
|
+
*/
|
|
338
|
+
export const zToolCallContent = preserveCustomPayload(z.union([
|
|
339
|
+
zContent.and(z.object({
|
|
340
|
+
type: z.literal("content"),
|
|
341
|
+
})),
|
|
342
|
+
zDiff.and(z.object({
|
|
343
|
+
type: z.literal("diff"),
|
|
344
|
+
})),
|
|
345
|
+
zTerminal.and(z.object({
|
|
346
|
+
type: z.literal("terminal"),
|
|
347
|
+
})),
|
|
348
|
+
excludeKnownTags(z.object({
|
|
349
|
+
type: z.string(),
|
|
350
|
+
}), "type", ["content", "diff", "terminal"]),
|
|
351
|
+
]), "type", ["content", "diff", "terminal"]);
|
|
352
|
+
/**
|
|
353
|
+
* A file location being accessed or modified by a tool.
|
|
354
|
+
*
|
|
355
|
+
* Enables clients to implement "follow-along" features that track
|
|
356
|
+
* which files the agent is working with in real-time.
|
|
357
|
+
*
|
|
358
|
+
* See protocol docs: [Following the Agent](https://agentclientprotocol.com/protocol/v2/draft/tool-calls#following-the-agent)
|
|
359
|
+
*/
|
|
360
|
+
export const zToolCallLocation = z.object({
|
|
361
|
+
path: zAbsolutePath,
|
|
362
|
+
line: defaultOnError(z
|
|
363
|
+
.int()
|
|
364
|
+
.gte(0)
|
|
365
|
+
.max(4294967295, {
|
|
366
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
367
|
+
})
|
|
368
|
+
.nullish(), () => undefined),
|
|
369
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
370
|
+
});
|
|
371
|
+
/**
|
|
372
|
+
* Represents an upsert for a tool call that the language model has requested.
|
|
373
|
+
*
|
|
374
|
+
* Tool calls are actions that the agent executes on behalf of the language model,
|
|
375
|
+
* such as reading files, executing code, or fetching data from external sources.
|
|
376
|
+
*
|
|
377
|
+
* Only [`ToolCallUpdate::tool_call_id`] is required. Other fields have patch semantics:
|
|
378
|
+
* omitted fields leave the existing tool call value unchanged, `null` clears or
|
|
379
|
+
* unsets the value, and concrete values replace the previous value. For
|
|
380
|
+
* collection fields, concrete arrays replace the previous collection, and both
|
|
381
|
+
* `null` and `[]` clear the collection. When a client receives a tool call ID it
|
|
382
|
+
* has not seen before, omitted fields use client defaults.
|
|
383
|
+
*
|
|
384
|
+
* See protocol docs: [Tool Calls](https://agentclientprotocol.com/protocol/v2/draft/tool-calls)
|
|
385
|
+
*/
|
|
386
|
+
export const zToolCallUpdate = z.object({
|
|
387
|
+
toolCallId: zToolCallId,
|
|
388
|
+
name: defaultOnError(z.string().nullish(), () => undefined),
|
|
389
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
390
|
+
kind: defaultOnError(zToolKind.nullish(), () => undefined),
|
|
391
|
+
status: defaultOnError(zToolCallStatus.nullish(), () => undefined),
|
|
392
|
+
content: defaultOnError(vecSkipError(zToolCallContent).nullish(), () => undefined),
|
|
393
|
+
locations: defaultOnError(vecSkipError(zToolCallLocation).nullish(), () => undefined),
|
|
394
|
+
rawInput: defaultOnError(z.unknown().optional(), () => undefined),
|
|
395
|
+
rawOutput: defaultOnError(z.unknown().optional(), () => undefined),
|
|
396
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
397
|
+
});
|
|
398
|
+
/**
|
|
399
|
+
* Permission request details for a tool call.
|
|
400
|
+
*/
|
|
401
|
+
export const zToolCallPermissionSubject = z.object({
|
|
402
|
+
toolCall: zToolCallUpdate,
|
|
403
|
+
});
|
|
404
|
+
/**
|
|
405
|
+
* Permission request details for a command.
|
|
406
|
+
*/
|
|
407
|
+
export const zCommandPermissionSubject = z.object({
|
|
408
|
+
command: z.string(),
|
|
409
|
+
cwd: zAbsolutePath,
|
|
410
|
+
toolCallId: defaultOnError(zToolCallId.nullish(), () => undefined),
|
|
411
|
+
terminalId: defaultOnError(zTerminalId.nullish(), () => undefined),
|
|
412
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
413
|
+
});
|
|
414
|
+
/**
|
|
415
|
+
* The operation requiring permission.
|
|
416
|
+
*
|
|
417
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
418
|
+
* properties exactly as received; unlike known variants, those keys
|
|
419
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
420
|
+
*/
|
|
421
|
+
export const zRequestPermissionSubject = preserveCustomPayload(z.union([
|
|
422
|
+
zToolCallPermissionSubject.and(z.object({
|
|
423
|
+
type: z.literal("tool_call"),
|
|
424
|
+
})),
|
|
425
|
+
zCommandPermissionSubject.and(z.object({
|
|
426
|
+
type: z.literal("command"),
|
|
427
|
+
})),
|
|
428
|
+
excludeKnownTags(z.object({
|
|
429
|
+
type: z.string(),
|
|
430
|
+
}), "type", ["command", "tool_call"]),
|
|
431
|
+
]), "type", ["command", "tool_call"]);
|
|
432
|
+
/**
|
|
433
|
+
* Unique identifier for a permission option.
|
|
434
|
+
*/
|
|
435
|
+
export const zPermissionOptionId = z.string();
|
|
436
|
+
/**
|
|
437
|
+
* The type of permission option being presented to the user.
|
|
438
|
+
*
|
|
439
|
+
* Helps clients choose appropriate icons and UI treatment.
|
|
440
|
+
*/
|
|
441
|
+
export const zPermissionOptionKind = z.union([
|
|
442
|
+
z.literal("allow_once"),
|
|
443
|
+
z.literal("allow_always"),
|
|
444
|
+
z.literal("reject_once"),
|
|
445
|
+
z.literal("reject_always"),
|
|
446
|
+
z.string(),
|
|
447
|
+
]);
|
|
448
|
+
/**
|
|
449
|
+
* An option presented to the user when requesting permission.
|
|
450
|
+
*/
|
|
451
|
+
export const zPermissionOption = z.object({
|
|
452
|
+
optionId: zPermissionOptionId,
|
|
453
|
+
name: z.string(),
|
|
454
|
+
kind: zPermissionOptionKind,
|
|
455
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
456
|
+
});
|
|
457
|
+
/**
|
|
458
|
+
* Request for user permission to proceed with an operation.
|
|
459
|
+
*
|
|
460
|
+
* Sent when the agent needs authorization before performing a sensitive operation.
|
|
461
|
+
*
|
|
462
|
+
* See protocol docs: [Requesting Permission](https://agentclientprotocol.com/protocol/v2/draft/tool-calls#requesting-permission)
|
|
463
|
+
*/
|
|
464
|
+
export const zRequestPermissionRequest = z.object({
|
|
465
|
+
sessionId: zSessionId,
|
|
466
|
+
title: z.string(),
|
|
467
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
468
|
+
subject: zRequestPermissionSubject.nullish(),
|
|
469
|
+
options: z.array(zPermissionOption).min(1),
|
|
470
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
471
|
+
});
|
|
472
|
+
/**
|
|
473
|
+
* Session-scoped elicitation, optionally tied to a specific tool call.
|
|
474
|
+
*
|
|
475
|
+
* When `tool_call_id` is set, the elicitation is tied to a specific tool call.
|
|
476
|
+
* This is useful when an agent receives an elicitation from an MCP server
|
|
477
|
+
* during a tool call and needs to redirect it to the user.
|
|
478
|
+
*/
|
|
479
|
+
export const zElicitationSessionScope = z.object({
|
|
480
|
+
sessionId: zSessionId,
|
|
481
|
+
toolCallId: defaultOnError(zToolCallId.nullish(), () => undefined),
|
|
482
|
+
});
|
|
483
|
+
/**
|
|
484
|
+
* Request-scoped elicitation, tied to a specific JSON-RPC request outside of a session
|
|
485
|
+
* (e.g., during auth/configuration phases before any session is started).
|
|
486
|
+
*/
|
|
487
|
+
export const zElicitationRequestScope = z.object({
|
|
488
|
+
requestId: zRequestId,
|
|
489
|
+
});
|
|
490
|
+
/**
|
|
491
|
+
* Object schema type.
|
|
492
|
+
*/
|
|
493
|
+
export const zElicitationSchemaType = z.literal("object");
|
|
494
|
+
/**
|
|
495
|
+
* String format types for string properties in elicitation schemas.
|
|
496
|
+
*/
|
|
497
|
+
export const zStringFormat = z.union([
|
|
498
|
+
z.literal("email"),
|
|
499
|
+
z.literal("uri"),
|
|
500
|
+
z.literal("date"),
|
|
501
|
+
z.literal("date-time"),
|
|
502
|
+
z.string(),
|
|
503
|
+
]);
|
|
504
|
+
/**
|
|
505
|
+
* A titled enum option with a const value, human-readable title, and optional description.
|
|
506
|
+
*/
|
|
507
|
+
export const zEnumOption = z.object({
|
|
508
|
+
const: z.string(),
|
|
509
|
+
title: z.string(),
|
|
510
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
511
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
512
|
+
});
|
|
513
|
+
/**
|
|
514
|
+
* Schema for string properties in an elicitation form.
|
|
515
|
+
*
|
|
516
|
+
* When `enum` or `oneOf` is set, this represents a single-select enum
|
|
517
|
+
* with `"type": "string"`.
|
|
518
|
+
*/
|
|
519
|
+
export const zStringPropertySchema = z.object({
|
|
520
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
521
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
522
|
+
minLength: z
|
|
523
|
+
.int()
|
|
524
|
+
.gte(0)
|
|
525
|
+
.max(4294967295, {
|
|
526
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
527
|
+
})
|
|
528
|
+
.nullish(),
|
|
529
|
+
maxLength: z
|
|
530
|
+
.int()
|
|
531
|
+
.gte(0)
|
|
532
|
+
.max(4294967295, {
|
|
533
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
534
|
+
})
|
|
535
|
+
.nullish(),
|
|
536
|
+
pattern: z.string().nullish(),
|
|
537
|
+
format: zStringFormat.nullish(),
|
|
538
|
+
default: defaultOnError(z.string().nullish(), () => undefined),
|
|
539
|
+
enum: z.array(z.string()).min(1).nullish(),
|
|
540
|
+
oneOf: z.array(zEnumOption).min(1).nullish(),
|
|
541
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
542
|
+
});
|
|
543
|
+
/**
|
|
544
|
+
* Schema for number (floating-point) properties in an elicitation form.
|
|
545
|
+
*/
|
|
546
|
+
export const zNumberPropertySchema = z.object({
|
|
547
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
548
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
549
|
+
minimum: z.number().nullish(),
|
|
550
|
+
maximum: z.number().nullish(),
|
|
551
|
+
default: defaultOnError(z.number().nullish(), () => undefined),
|
|
552
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
553
|
+
});
|
|
554
|
+
/**
|
|
555
|
+
* Schema for integer properties in an elicitation form.
|
|
556
|
+
*/
|
|
557
|
+
export const zIntegerPropertySchema = z.object({
|
|
558
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
559
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
560
|
+
minimum: z.number().nullish(),
|
|
561
|
+
maximum: z.number().nullish(),
|
|
562
|
+
default: defaultOnError(z.number().nullish(), () => undefined),
|
|
563
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
564
|
+
});
|
|
565
|
+
/**
|
|
566
|
+
* Schema for boolean properties in an elicitation form.
|
|
567
|
+
*/
|
|
568
|
+
export const zBooleanPropertySchema = z.object({
|
|
569
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
570
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
571
|
+
default: defaultOnError(z.boolean().nullish(), () => undefined),
|
|
572
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
573
|
+
});
|
|
574
|
+
/**
|
|
575
|
+
* String item schema for multi-select enum properties.
|
|
576
|
+
*/
|
|
577
|
+
export const zStringMultiSelectItems = z.object({
|
|
578
|
+
enum: z.array(z.string()).min(1),
|
|
579
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
580
|
+
});
|
|
581
|
+
/**
|
|
582
|
+
* Items definition for titled multi-select enum properties.
|
|
583
|
+
*/
|
|
584
|
+
export const zTitledMultiSelectItems = z.object({
|
|
585
|
+
anyOf: z.array(zEnumOption).min(1),
|
|
586
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
587
|
+
});
|
|
588
|
+
/**
|
|
589
|
+
* Items for a multi-select (array) property schema.
|
|
590
|
+
*
|
|
591
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
592
|
+
* properties exactly as received; unlike known variants, those keys
|
|
593
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
594
|
+
*/
|
|
595
|
+
export const zMultiSelectItems = preserveCustomPayload(z.union([
|
|
596
|
+
zStringMultiSelectItems.and(z.object({
|
|
597
|
+
type: z.literal("string"),
|
|
598
|
+
})),
|
|
599
|
+
excludeKnownTags(z.object({
|
|
600
|
+
type: z.string(),
|
|
601
|
+
}), "type", ["string"]),
|
|
602
|
+
zTitledMultiSelectItems,
|
|
603
|
+
]), "type", ["string"]);
|
|
604
|
+
/**
|
|
605
|
+
* Schema for multi-select (array) properties in an elicitation form.
|
|
606
|
+
*/
|
|
607
|
+
export const zMultiSelectPropertySchema = z.object({
|
|
608
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
609
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
610
|
+
minItems: z.number().nullish(),
|
|
611
|
+
maxItems: z.number().nullish(),
|
|
612
|
+
items: zMultiSelectItems,
|
|
613
|
+
default: defaultOnError(vecSkipError(z.string()).nullish(), () => undefined),
|
|
614
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
615
|
+
});
|
|
616
|
+
/**
|
|
617
|
+
* Property schema for elicitation form fields.
|
|
618
|
+
*
|
|
619
|
+
* Each variant corresponds to a JSON Schema `"type"` value.
|
|
620
|
+
* Single-select enums use the `String` variant with `enum` or `oneOf` set.
|
|
621
|
+
* Multi-select enums use the `Array` variant.
|
|
622
|
+
*
|
|
623
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
624
|
+
* properties exactly as received; unlike known variants, those keys
|
|
625
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
626
|
+
*/
|
|
627
|
+
export const zElicitationPropertySchema = preserveCustomPayload(z.union([
|
|
628
|
+
zStringPropertySchema.and(z.object({
|
|
629
|
+
type: z.literal("string"),
|
|
630
|
+
})),
|
|
631
|
+
zNumberPropertySchema.and(z.object({
|
|
632
|
+
type: z.literal("number"),
|
|
633
|
+
})),
|
|
634
|
+
zIntegerPropertySchema.and(z.object({
|
|
635
|
+
type: z.literal("integer"),
|
|
636
|
+
})),
|
|
637
|
+
zBooleanPropertySchema.and(z.object({
|
|
638
|
+
type: z.literal("boolean"),
|
|
639
|
+
})),
|
|
640
|
+
zMultiSelectPropertySchema.and(z.object({
|
|
641
|
+
type: z.literal("array"),
|
|
642
|
+
})),
|
|
643
|
+
excludeKnownTags(z.object({
|
|
644
|
+
type: z.string(),
|
|
645
|
+
}), "type", ["array", "boolean", "integer", "number", "string"]),
|
|
646
|
+
]), "type", ["array", "boolean", "integer", "number", "string"]);
|
|
647
|
+
/**
|
|
648
|
+
* Type-safe elicitation schema for requesting structured user input.
|
|
649
|
+
*
|
|
650
|
+
* This represents a JSON Schema object with primitive-typed properties,
|
|
651
|
+
* as required by the elicitation specification.
|
|
652
|
+
*/
|
|
653
|
+
export const zElicitationSchema = z.object({
|
|
654
|
+
type: defaultOnError(zElicitationSchemaType.optional().default("object"), () => "object"),
|
|
655
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
656
|
+
properties: z
|
|
657
|
+
.record(z.string(), zElicitationPropertySchema)
|
|
658
|
+
.optional()
|
|
659
|
+
.default({}),
|
|
660
|
+
required: z.array(z.string()).nullish(),
|
|
661
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
662
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
663
|
+
});
|
|
664
|
+
/**
|
|
665
|
+
* Form-based elicitation mode where the client renders a form from the provided schema.
|
|
666
|
+
*/
|
|
667
|
+
export const zElicitationFormMode = z.intersection(z.union([zElicitationSessionScope, zElicitationRequestScope]), z.object({
|
|
668
|
+
requestedSchema: zElicitationSchema,
|
|
669
|
+
}));
|
|
670
|
+
/**
|
|
671
|
+
* Unique identifier for an elicitation.
|
|
672
|
+
*/
|
|
673
|
+
export const zElicitationId = z.string();
|
|
674
|
+
/**
|
|
675
|
+
* URL-based elicitation mode where the client directs the user to a URL.
|
|
676
|
+
*/
|
|
677
|
+
export const zElicitationUrlMode = z.intersection(z.union([zElicitationSessionScope, zElicitationRequestScope]), z.object({
|
|
678
|
+
elicitationId: zElicitationId,
|
|
679
|
+
url: z.url(),
|
|
680
|
+
}));
|
|
681
|
+
/**
|
|
682
|
+
* Request from the agent to elicit structured user input.
|
|
683
|
+
*
|
|
684
|
+
* The agent sends this to the client to request information from the user,
|
|
685
|
+
* either via a form or by directing them to a URL.
|
|
686
|
+
* Elicitations are tied to a session (optionally a tool call) or a request.
|
|
687
|
+
*
|
|
688
|
+
* Custom variants (unknown `mode` values) keep their extra
|
|
689
|
+
* properties exactly as received; unlike known variants, those keys
|
|
690
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
691
|
+
*/
|
|
692
|
+
export const zCreateElicitationRequest = preserveCustomPayload(z.intersection(z.union([
|
|
693
|
+
zElicitationFormMode.and(z.object({
|
|
694
|
+
mode: z.literal("form"),
|
|
695
|
+
})),
|
|
696
|
+
zElicitationUrlMode.and(z.object({
|
|
697
|
+
mode: z.literal("url"),
|
|
698
|
+
})),
|
|
699
|
+
excludeKnownTags(z.intersection(z.union([zElicitationSessionScope, zElicitationRequestScope]), z.object({
|
|
700
|
+
mode: z.string(),
|
|
701
|
+
})), "mode", ["form", "url"]),
|
|
702
|
+
]), z.object({
|
|
703
|
+
message: z.string(),
|
|
704
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
705
|
+
})), "mode", ["form", "url"]);
|
|
706
|
+
/**
|
|
707
|
+
* **UNSTABLE**
|
|
708
|
+
*
|
|
709
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
710
|
+
*
|
|
711
|
+
* Unique identifier for an MCP server using the ACP transport.
|
|
712
|
+
*
|
|
713
|
+
* The value is opaque and generated by the ACP component providing the MCP server. It is
|
|
714
|
+
* used by `mcp/connect` to route connection requests back to the component that declared the
|
|
715
|
+
* server.
|
|
716
|
+
*
|
|
717
|
+
* @experimental
|
|
718
|
+
*/
|
|
719
|
+
export const zMcpServerAcpId = z.string();
|
|
720
|
+
/**
|
|
721
|
+
* **UNSTABLE**
|
|
722
|
+
*
|
|
723
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
724
|
+
*
|
|
725
|
+
* Request parameters for `mcp/connect`.
|
|
726
|
+
*
|
|
727
|
+
* @experimental
|
|
728
|
+
*/
|
|
729
|
+
export const zConnectMcpRequest = z.object({
|
|
730
|
+
serverId: zMcpServerAcpId,
|
|
731
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
732
|
+
});
|
|
733
|
+
/**
|
|
734
|
+
* **UNSTABLE**
|
|
735
|
+
*
|
|
736
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
737
|
+
*
|
|
738
|
+
* A unique identifier for an active MCP-over-ACP connection.
|
|
739
|
+
*
|
|
740
|
+
* @experimental
|
|
741
|
+
*/
|
|
742
|
+
export const zMcpConnectionId = z.string();
|
|
743
|
+
/**
|
|
744
|
+
* **UNSTABLE**
|
|
745
|
+
*
|
|
746
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
747
|
+
*
|
|
748
|
+
* Request parameters for `mcp/message`.
|
|
749
|
+
*
|
|
750
|
+
* @experimental
|
|
751
|
+
*/
|
|
752
|
+
export const zMessageMcpRequest = z.object({
|
|
753
|
+
connectionId: zMcpConnectionId,
|
|
754
|
+
method: z.string(),
|
|
755
|
+
params: z.record(z.string(), z.unknown()).nullish(),
|
|
756
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
757
|
+
});
|
|
758
|
+
/**
|
|
759
|
+
* **UNSTABLE**
|
|
760
|
+
*
|
|
761
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
762
|
+
*
|
|
763
|
+
* Request parameters for `mcp/disconnect`.
|
|
764
|
+
*
|
|
765
|
+
* @experimental
|
|
766
|
+
*/
|
|
767
|
+
export const zDisconnectMcpRequest = z.object({
|
|
768
|
+
connectionId: zMcpConnectionId,
|
|
769
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
770
|
+
});
|
|
771
|
+
/**
|
|
772
|
+
* Allows for sending an arbitrary request that is not part of the ACP spec.
|
|
773
|
+
* Extension methods provide a way to add custom functionality while maintaining
|
|
774
|
+
* protocol compatibility.
|
|
775
|
+
*
|
|
776
|
+
* See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/draft/extensibility)
|
|
777
|
+
*/
|
|
778
|
+
export const zExtRequest = z.unknown();
|
|
779
|
+
/**
|
|
780
|
+
* A JSON-RPC request object.
|
|
781
|
+
*/
|
|
782
|
+
export const zAgentRequest = z.object({
|
|
783
|
+
id: zRequestId,
|
|
784
|
+
method: z.string(),
|
|
785
|
+
params: z
|
|
786
|
+
.union([
|
|
787
|
+
zRequestPermissionRequest,
|
|
788
|
+
zCreateElicitationRequest,
|
|
789
|
+
zConnectMcpRequest,
|
|
790
|
+
zMessageMcpRequest,
|
|
791
|
+
zDisconnectMcpRequest,
|
|
792
|
+
zExtRequest,
|
|
793
|
+
])
|
|
794
|
+
.nullish(),
|
|
795
|
+
});
|
|
796
|
+
/**
|
|
797
|
+
* Protocol version identifier.
|
|
798
|
+
*
|
|
799
|
+
* This version is only bumped for breaking changes.
|
|
800
|
+
* Non-breaking changes should be introduced via capabilities.
|
|
801
|
+
*/
|
|
802
|
+
export const zProtocolVersion = z.int().gte(0).lte(65535);
|
|
803
|
+
/**
|
|
804
|
+
* Metadata about the implementation of the client or agent.
|
|
805
|
+
* Describes the name and version of an ACP implementation, with an optional
|
|
806
|
+
* title for UI representation.
|
|
807
|
+
*/
|
|
808
|
+
export const zImplementation = z.object({
|
|
809
|
+
name: z.string(),
|
|
810
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
811
|
+
version: z.string(),
|
|
812
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
813
|
+
});
|
|
814
|
+
/**
|
|
815
|
+
* Capabilities for image content in prompt requests.
|
|
816
|
+
*
|
|
817
|
+
* Supplying `{}` means the agent supports image content in prompts.
|
|
818
|
+
*/
|
|
819
|
+
export const zPromptImageCapabilities = z.object({
|
|
820
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
821
|
+
});
|
|
822
|
+
/**
|
|
823
|
+
* Capabilities for audio content in prompt requests.
|
|
824
|
+
*
|
|
825
|
+
* Supplying `{}` means the agent supports audio content in prompts.
|
|
826
|
+
*/
|
|
827
|
+
export const zPromptAudioCapabilities = z.object({
|
|
828
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
829
|
+
});
|
|
830
|
+
/**
|
|
831
|
+
* Capabilities for embedded context in prompt requests.
|
|
832
|
+
*
|
|
833
|
+
* Supplying `{}` means the agent supports embedded context in prompts.
|
|
834
|
+
*/
|
|
835
|
+
export const zPromptEmbeddedContextCapabilities = z.object({
|
|
836
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
837
|
+
});
|
|
838
|
+
/**
|
|
839
|
+
* Prompt capabilities supported by the agent in `session/prompt` requests.
|
|
840
|
+
*
|
|
841
|
+
* Baseline agent functionality requires support for [`ContentBlock::Text`]
|
|
842
|
+
* and [`ContentBlock::ResourceLink`] in prompt requests.
|
|
843
|
+
*
|
|
844
|
+
* Other variants must be explicitly opted in to.
|
|
845
|
+
* Capabilities for different types of content in prompt requests.
|
|
846
|
+
*
|
|
847
|
+
* Indicates which content types beyond the baseline (text and resource links)
|
|
848
|
+
* the agent can process.
|
|
849
|
+
*
|
|
850
|
+
* See protocol docs: [Prompt Capabilities](https://agentclientprotocol.com/protocol/v2/draft/initialization#prompt-capabilities)
|
|
851
|
+
*/
|
|
852
|
+
export const zPromptCapabilities = z.object({
|
|
853
|
+
image: defaultOnError(zPromptImageCapabilities.nullish(), () => undefined),
|
|
854
|
+
audio: defaultOnError(zPromptAudioCapabilities.nullish(), () => undefined),
|
|
855
|
+
embeddedContext: defaultOnError(zPromptEmbeddedContextCapabilities.nullish(), () => undefined),
|
|
856
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
857
|
+
});
|
|
858
|
+
/**
|
|
859
|
+
* Capabilities for stdio MCP server transports.
|
|
860
|
+
*
|
|
861
|
+
* Supplying `{}` means the agent supports stdio MCP server transports.
|
|
862
|
+
*/
|
|
863
|
+
export const zMcpStdioCapabilities = z.object({
|
|
864
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
865
|
+
});
|
|
866
|
+
/**
|
|
867
|
+
* Capabilities for HTTP MCP server transports.
|
|
868
|
+
*
|
|
869
|
+
* Supplying `{}` means the agent supports HTTP MCP server transports.
|
|
870
|
+
*/
|
|
871
|
+
export const zMcpHttpCapabilities = z.object({
|
|
872
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
873
|
+
});
|
|
874
|
+
/**
|
|
875
|
+
* **UNSTABLE**
|
|
876
|
+
*
|
|
877
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
878
|
+
*
|
|
879
|
+
* Capabilities for ACP MCP server transports.
|
|
880
|
+
*
|
|
881
|
+
* Supplying `{}` means the agent supports ACP MCP server transports.
|
|
882
|
+
*
|
|
883
|
+
* @experimental
|
|
884
|
+
*/
|
|
885
|
+
export const zMcpAcpCapabilities = z.object({
|
|
886
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
887
|
+
});
|
|
888
|
+
/**
|
|
889
|
+
* MCP capabilities supported by the agent for session lifecycle requests.
|
|
890
|
+
*/
|
|
891
|
+
export const zMcpCapabilities = z.object({
|
|
892
|
+
stdio: defaultOnError(zMcpStdioCapabilities.nullish(), () => undefined),
|
|
893
|
+
http: defaultOnError(zMcpHttpCapabilities.nullish(), () => undefined),
|
|
894
|
+
acp: defaultOnError(zMcpAcpCapabilities.nullish(), () => undefined),
|
|
895
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
896
|
+
});
|
|
897
|
+
/**
|
|
898
|
+
* Capabilities for the `session/delete` method.
|
|
899
|
+
*
|
|
900
|
+
* Supplying `{}` means the agent supports deleting sessions from `session/list`.
|
|
901
|
+
*/
|
|
902
|
+
export const zSessionDeleteCapabilities = z.object({
|
|
903
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
904
|
+
});
|
|
905
|
+
/**
|
|
906
|
+
* Capabilities for additional session directories support.
|
|
907
|
+
*
|
|
908
|
+
* Supplying `{}` means the agent supports the `additionalDirectories` field on
|
|
909
|
+
* supported session lifecycle requests. Agents that also support
|
|
910
|
+
* `session/list` may return `SessionInfo.additionalDirectories` to report the
|
|
911
|
+
* complete ordered additional-root list associated with a listed session.
|
|
912
|
+
*/
|
|
913
|
+
export const zSessionAdditionalDirectoriesCapabilities = z.object({
|
|
914
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
915
|
+
});
|
|
916
|
+
/**
|
|
917
|
+
* **UNSTABLE**
|
|
918
|
+
*
|
|
919
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
920
|
+
*
|
|
921
|
+
* Capabilities for the `session/fork` method.
|
|
922
|
+
*
|
|
923
|
+
* Supplying `{}` means the agent supports forking sessions.
|
|
924
|
+
*
|
|
925
|
+
* @experimental
|
|
926
|
+
*/
|
|
927
|
+
export const zSessionForkCapabilities = z.object({
|
|
928
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
929
|
+
});
|
|
930
|
+
/**
|
|
931
|
+
* Session capabilities supported by the agent.
|
|
932
|
+
*
|
|
933
|
+
* Supplying `{}` means the agent supports the baseline session methods:
|
|
934
|
+
* `session/new`, `session/list`, `session/resume`, `session/close`,
|
|
935
|
+
* `session/prompt`, `session/cancel`, and `session/update`.
|
|
936
|
+
*
|
|
937
|
+
* Agents that support sessions **MAY** support additional session methods,
|
|
938
|
+
* prompt content types, and MCP transports by specifying additional
|
|
939
|
+
* capabilities.
|
|
940
|
+
*
|
|
941
|
+
* See protocol docs: [Session Capabilities](https://agentclientprotocol.com/protocol/v2/draft/initialization#session-capabilities)
|
|
942
|
+
*/
|
|
943
|
+
export const zSessionCapabilities = z.object({
|
|
944
|
+
prompt: defaultOnError(zPromptCapabilities.nullish(), () => undefined),
|
|
945
|
+
mcp: defaultOnError(zMcpCapabilities.nullish(), () => undefined),
|
|
946
|
+
delete: defaultOnError(zSessionDeleteCapabilities.nullish(), () => undefined),
|
|
947
|
+
additionalDirectories: defaultOnError(zSessionAdditionalDirectoriesCapabilities.nullish(), () => undefined),
|
|
948
|
+
fork: defaultOnError(zSessionForkCapabilities.nullish(), () => undefined),
|
|
949
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
950
|
+
});
|
|
951
|
+
/**
|
|
952
|
+
* Authentication-related extension capabilities supported by the agent.
|
|
953
|
+
*
|
|
954
|
+
* This object does not advertise support for `auth/login` or `auth/logout`.
|
|
955
|
+
* Those methods are advertised by a non-empty `authMethods` list in the
|
|
956
|
+
* `initialize` response.
|
|
957
|
+
*/
|
|
958
|
+
export const zAgentAuthCapabilities = z.object({
|
|
959
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
960
|
+
});
|
|
961
|
+
/**
|
|
962
|
+
* **UNSTABLE**
|
|
963
|
+
*
|
|
964
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
965
|
+
*
|
|
966
|
+
* Provider configuration capabilities supported by the agent.
|
|
967
|
+
*
|
|
968
|
+
* Supplying `{}` means the agent supports provider configuration methods.
|
|
969
|
+
*
|
|
970
|
+
* @experimental
|
|
971
|
+
*/
|
|
972
|
+
export const zProvidersCapabilities = z.object({
|
|
973
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
974
|
+
});
|
|
975
|
+
/**
|
|
976
|
+
* Marker for `document/didOpen` capability support.
|
|
977
|
+
*/
|
|
978
|
+
export const zNesDocumentDidOpenCapabilities = z.object({
|
|
979
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
980
|
+
});
|
|
981
|
+
/**
|
|
982
|
+
* How the agent wants document changes delivered.
|
|
983
|
+
*/
|
|
984
|
+
export const zTextDocumentSyncKind = z.union([
|
|
985
|
+
z.literal("full"),
|
|
986
|
+
z.literal("incremental"),
|
|
987
|
+
]);
|
|
988
|
+
/**
|
|
989
|
+
* Capabilities for `document/didChange` events.
|
|
990
|
+
*/
|
|
991
|
+
export const zNesDocumentDidChangeCapabilities = z.object({
|
|
992
|
+
syncKind: zTextDocumentSyncKind,
|
|
993
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
994
|
+
});
|
|
995
|
+
/**
|
|
996
|
+
* Marker for `document/didClose` capability support.
|
|
997
|
+
*/
|
|
998
|
+
export const zNesDocumentDidCloseCapabilities = z.object({
|
|
999
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1000
|
+
});
|
|
1001
|
+
/**
|
|
1002
|
+
* Marker for `document/didSave` capability support.
|
|
1003
|
+
*/
|
|
1004
|
+
export const zNesDocumentDidSaveCapabilities = z.object({
|
|
1005
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1006
|
+
});
|
|
1007
|
+
/**
|
|
1008
|
+
* Marker for `document/didFocus` capability support.
|
|
1009
|
+
*/
|
|
1010
|
+
export const zNesDocumentDidFocusCapabilities = z.object({
|
|
1011
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1012
|
+
});
|
|
1013
|
+
/**
|
|
1014
|
+
* Document event capabilities the agent wants to receive.
|
|
1015
|
+
*/
|
|
1016
|
+
export const zNesDocumentEventCapabilities = z.object({
|
|
1017
|
+
didOpen: defaultOnError(zNesDocumentDidOpenCapabilities.nullish(), () => undefined),
|
|
1018
|
+
didChange: defaultOnError(zNesDocumentDidChangeCapabilities.nullish(), () => undefined),
|
|
1019
|
+
didClose: defaultOnError(zNesDocumentDidCloseCapabilities.nullish(), () => undefined),
|
|
1020
|
+
didSave: defaultOnError(zNesDocumentDidSaveCapabilities.nullish(), () => undefined),
|
|
1021
|
+
didFocus: defaultOnError(zNesDocumentDidFocusCapabilities.nullish(), () => undefined),
|
|
1022
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1023
|
+
});
|
|
1024
|
+
/**
|
|
1025
|
+
* Event capabilities the agent can consume.
|
|
1026
|
+
*/
|
|
1027
|
+
export const zNesEventCapabilities = z.object({
|
|
1028
|
+
document: defaultOnError(zNesDocumentEventCapabilities.nullish(), () => undefined),
|
|
1029
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1030
|
+
});
|
|
1031
|
+
/**
|
|
1032
|
+
* Capabilities for recent files context.
|
|
1033
|
+
*/
|
|
1034
|
+
export const zNesRecentFilesCapabilities = z.object({
|
|
1035
|
+
maxCount: defaultOnError(z
|
|
1036
|
+
.int()
|
|
1037
|
+
.gte(0)
|
|
1038
|
+
.max(4294967295, {
|
|
1039
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
1040
|
+
})
|
|
1041
|
+
.nullish(), () => undefined),
|
|
1042
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1043
|
+
});
|
|
1044
|
+
/**
|
|
1045
|
+
* Capabilities for related snippets context.
|
|
1046
|
+
*/
|
|
1047
|
+
export const zNesRelatedSnippetsCapabilities = z.object({
|
|
1048
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1049
|
+
});
|
|
1050
|
+
/**
|
|
1051
|
+
* Capabilities for edit history context.
|
|
1052
|
+
*/
|
|
1053
|
+
export const zNesEditHistoryCapabilities = z.object({
|
|
1054
|
+
maxCount: defaultOnError(z
|
|
1055
|
+
.int()
|
|
1056
|
+
.gte(0)
|
|
1057
|
+
.max(4294967295, {
|
|
1058
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
1059
|
+
})
|
|
1060
|
+
.nullish(), () => undefined),
|
|
1061
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1062
|
+
});
|
|
1063
|
+
/**
|
|
1064
|
+
* Capabilities for user actions context.
|
|
1065
|
+
*/
|
|
1066
|
+
export const zNesUserActionsCapabilities = z.object({
|
|
1067
|
+
maxCount: defaultOnError(z
|
|
1068
|
+
.int()
|
|
1069
|
+
.gte(0)
|
|
1070
|
+
.max(4294967295, {
|
|
1071
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
1072
|
+
})
|
|
1073
|
+
.nullish(), () => undefined),
|
|
1074
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1075
|
+
});
|
|
1076
|
+
/**
|
|
1077
|
+
* Capabilities for open files context.
|
|
1078
|
+
*/
|
|
1079
|
+
export const zNesOpenFilesCapabilities = z.object({
|
|
1080
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1081
|
+
});
|
|
1082
|
+
/**
|
|
1083
|
+
* Capabilities for diagnostics context.
|
|
1084
|
+
*/
|
|
1085
|
+
export const zNesDiagnosticsCapabilities = z.object({
|
|
1086
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1087
|
+
});
|
|
1088
|
+
/**
|
|
1089
|
+
* Context capabilities the agent wants attached to each suggestion request.
|
|
1090
|
+
*/
|
|
1091
|
+
export const zNesContextCapabilities = z.object({
|
|
1092
|
+
recentFiles: defaultOnError(zNesRecentFilesCapabilities.nullish(), () => undefined),
|
|
1093
|
+
relatedSnippets: defaultOnError(zNesRelatedSnippetsCapabilities.nullish(), () => undefined),
|
|
1094
|
+
editHistory: defaultOnError(zNesEditHistoryCapabilities.nullish(), () => undefined),
|
|
1095
|
+
userActions: defaultOnError(zNesUserActionsCapabilities.nullish(), () => undefined),
|
|
1096
|
+
openFiles: defaultOnError(zNesOpenFilesCapabilities.nullish(), () => undefined),
|
|
1097
|
+
diagnostics: defaultOnError(zNesDiagnosticsCapabilities.nullish(), () => undefined),
|
|
1098
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1099
|
+
});
|
|
1100
|
+
/**
|
|
1101
|
+
* NES capabilities advertised by the agent during initialization.
|
|
1102
|
+
*
|
|
1103
|
+
* Supplying `{}` means the agent supports the NES method surface. Omitted or
|
|
1104
|
+
* `null` both mean the agent does not advertise support for `nes*` methods.
|
|
1105
|
+
*/
|
|
1106
|
+
export const zNesCapabilities = z.object({
|
|
1107
|
+
events: defaultOnError(zNesEventCapabilities.nullish(), () => undefined),
|
|
1108
|
+
context: defaultOnError(zNesContextCapabilities.nullish(), () => undefined),
|
|
1109
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1110
|
+
});
|
|
1111
|
+
/**
|
|
1112
|
+
* The encoding used for character offsets in positions.
|
|
1113
|
+
*
|
|
1114
|
+
* Follows the same conventions as LSP 3.17. The default is UTF-16.
|
|
1115
|
+
*/
|
|
1116
|
+
export const zPositionEncodingKind = z.union([
|
|
1117
|
+
z.literal("utf-16"),
|
|
1118
|
+
z.literal("utf-32"),
|
|
1119
|
+
z.literal("utf-8"),
|
|
1120
|
+
]);
|
|
1121
|
+
/**
|
|
1122
|
+
* Capabilities supported by the agent.
|
|
1123
|
+
*
|
|
1124
|
+
* Advertised during initialization to inform the client about
|
|
1125
|
+
* available features and content types.
|
|
1126
|
+
*
|
|
1127
|
+
* See protocol docs: [Agent Capabilities](https://agentclientprotocol.com/protocol/v2/draft/initialization#agent-capabilities)
|
|
1128
|
+
*/
|
|
1129
|
+
export const zAgentCapabilities = z.object({
|
|
1130
|
+
session: defaultOnError(zSessionCapabilities.nullish(), () => undefined),
|
|
1131
|
+
auth: defaultOnError(zAgentAuthCapabilities.nullish(), () => undefined),
|
|
1132
|
+
providers: defaultOnError(zProvidersCapabilities.nullish(), () => undefined),
|
|
1133
|
+
nes: defaultOnError(zNesCapabilities.nullish(), () => undefined),
|
|
1134
|
+
positionEncoding: defaultOnError(zPositionEncodingKind.nullish(), () => undefined),
|
|
1135
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1136
|
+
});
|
|
1137
|
+
/**
|
|
1138
|
+
* Typed identifier used for auth method values on the wire.
|
|
1139
|
+
*/
|
|
1140
|
+
export const zAuthMethodId = z.string();
|
|
1141
|
+
/**
|
|
1142
|
+
* An environment variable to set when launching a process.
|
|
1143
|
+
*/
|
|
1144
|
+
export const zEnvVariable = z.object({
|
|
1145
|
+
name: z.string(),
|
|
1146
|
+
value: z.string(),
|
|
1147
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1148
|
+
});
|
|
1149
|
+
/**
|
|
1150
|
+
* Terminal-based authentication method.
|
|
1151
|
+
*
|
|
1152
|
+
* The client runs the configured agent program as a separate interactive
|
|
1153
|
+
* process for the user to authenticate via a TUI. Agents MUST advertise this
|
|
1154
|
+
* method only when the client enabled its terminal authentication capability.
|
|
1155
|
+
* A zero exit status signals success; any other termination signals failure.
|
|
1156
|
+
* The client MUST NOT pass this method to `auth/login`.
|
|
1157
|
+
*/
|
|
1158
|
+
export const zAuthMethodTerminal = z.object({
|
|
1159
|
+
methodId: zAuthMethodId,
|
|
1160
|
+
name: z.string(),
|
|
1161
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
1162
|
+
args: defaultOnError(vecSkipError(z.string()).optional(), () => []),
|
|
1163
|
+
env: defaultOnError(vecSkipError(zEnvVariable).optional(), () => []),
|
|
1164
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1165
|
+
});
|
|
1166
|
+
/**
|
|
1167
|
+
* Agent handles authentication itself through `auth/login`.
|
|
1168
|
+
*
|
|
1169
|
+
* The `type` discriminator value is `agent`.
|
|
1170
|
+
*/
|
|
1171
|
+
export const zAuthMethodAgent = z.object({
|
|
1172
|
+
methodId: zAuthMethodId,
|
|
1173
|
+
name: z.string(),
|
|
1174
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
1175
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1176
|
+
});
|
|
1177
|
+
/**
|
|
1178
|
+
* Describes an available authentication method.
|
|
1179
|
+
*
|
|
1180
|
+
* The `type` field acts as the discriminator in the serialized JSON form.
|
|
1181
|
+
*
|
|
1182
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
1183
|
+
* properties exactly as received; unlike known variants, those keys
|
|
1184
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
1185
|
+
*/
|
|
1186
|
+
export const zAuthMethod = preserveCustomPayload(z.union([
|
|
1187
|
+
zAuthMethodTerminal.and(z.object({
|
|
1188
|
+
type: z.literal("terminal"),
|
|
1189
|
+
})),
|
|
1190
|
+
zAuthMethodAgent.and(z.object({
|
|
1191
|
+
type: z.literal("agent"),
|
|
1192
|
+
})),
|
|
1193
|
+
excludeKnownTags(z.object({
|
|
1194
|
+
type: z.string(),
|
|
1195
|
+
methodId: zAuthMethodId,
|
|
1196
|
+
name: z.string(),
|
|
1197
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
1198
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1199
|
+
}), "type", ["agent", "terminal"]),
|
|
1200
|
+
]), "type", ["agent", "terminal"]);
|
|
1201
|
+
/**
|
|
1202
|
+
* Response to the `initialize` method.
|
|
1203
|
+
*
|
|
1204
|
+
* Contains the negotiated protocol version and agent capabilities.
|
|
1205
|
+
*
|
|
1206
|
+
* See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/v2/draft/initialization)
|
|
1207
|
+
*/
|
|
1208
|
+
export const zInitializeResponse = z.object({
|
|
1209
|
+
protocolVersion: zProtocolVersion,
|
|
1210
|
+
info: zImplementation,
|
|
1211
|
+
capabilities: defaultOnError(zAgentCapabilities.optional().default({}), () => ({})),
|
|
1212
|
+
authMethods: defaultOnError(vecSkipError(zAuthMethod).optional(), () => []),
|
|
1213
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1214
|
+
});
|
|
1215
|
+
/**
|
|
1216
|
+
* Response to the `auth/login` method.
|
|
1217
|
+
*/
|
|
1218
|
+
export const zLoginAuthResponse = z.object({
|
|
1219
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1220
|
+
});
|
|
1221
|
+
/**
|
|
1222
|
+
* **UNSTABLE**
|
|
1223
|
+
*
|
|
1224
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1225
|
+
*
|
|
1226
|
+
* Unique identifier for a configurable LLM provider.
|
|
1227
|
+
*
|
|
1228
|
+
* @experimental
|
|
1229
|
+
*/
|
|
1230
|
+
export const zProviderId = z.string();
|
|
1231
|
+
/**
|
|
1232
|
+
* **UNSTABLE**
|
|
1233
|
+
*
|
|
1234
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1235
|
+
*
|
|
1236
|
+
* Well-known API protocol identifiers for LLM providers.
|
|
1237
|
+
*
|
|
1238
|
+
* Agents and clients MUST handle unknown protocol identifiers gracefully.
|
|
1239
|
+
*
|
|
1240
|
+
* Protocol names beginning with `_` are free for custom use, like other ACP extension methods.
|
|
1241
|
+
* Protocol names that do not begin with `_` are reserved for the ACP spec.
|
|
1242
|
+
*
|
|
1243
|
+
* @experimental
|
|
1244
|
+
*/
|
|
1245
|
+
export const zLlmProtocol = z.union([
|
|
1246
|
+
z.literal("anthropic"),
|
|
1247
|
+
z.literal("openai"),
|
|
1248
|
+
z.literal("azure"),
|
|
1249
|
+
z.literal("vertex"),
|
|
1250
|
+
z.literal("bedrock"),
|
|
1251
|
+
z.string(),
|
|
1252
|
+
]);
|
|
1253
|
+
/**
|
|
1254
|
+
* **UNSTABLE**
|
|
1255
|
+
*
|
|
1256
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1257
|
+
*
|
|
1258
|
+
* Current effective non-secret routing configuration for a provider.
|
|
1259
|
+
*
|
|
1260
|
+
* @experimental
|
|
1261
|
+
*/
|
|
1262
|
+
export const zProviderCurrentConfig = z.object({
|
|
1263
|
+
apiType: zLlmProtocol,
|
|
1264
|
+
baseUrl: z.url(),
|
|
1265
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1266
|
+
});
|
|
1267
|
+
/**
|
|
1268
|
+
* **UNSTABLE**
|
|
1269
|
+
*
|
|
1270
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1271
|
+
*
|
|
1272
|
+
* Information about a configurable LLM provider.
|
|
1273
|
+
*
|
|
1274
|
+
* @experimental
|
|
1275
|
+
*/
|
|
1276
|
+
export const zProviderInfo = z.object({
|
|
1277
|
+
providerId: zProviderId,
|
|
1278
|
+
supported: requiredDefaultOnError(vecSkipError(zLlmProtocol), () => []),
|
|
1279
|
+
required: z.boolean(),
|
|
1280
|
+
current: zProviderCurrentConfig.nullish(),
|
|
1281
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1282
|
+
});
|
|
1283
|
+
/**
|
|
1284
|
+
* **UNSTABLE**
|
|
1285
|
+
*
|
|
1286
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1287
|
+
*
|
|
1288
|
+
* Response to `providers/list`.
|
|
1289
|
+
*
|
|
1290
|
+
* @experimental
|
|
1291
|
+
*/
|
|
1292
|
+
export const zListProvidersResponse = z.object({
|
|
1293
|
+
providers: z.array(zProviderInfo),
|
|
1294
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1295
|
+
});
|
|
1296
|
+
/**
|
|
1297
|
+
* **UNSTABLE**
|
|
1298
|
+
*
|
|
1299
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1300
|
+
*
|
|
1301
|
+
* Response to `providers/set`.
|
|
1302
|
+
*
|
|
1303
|
+
* @experimental
|
|
1304
|
+
*/
|
|
1305
|
+
export const zSetProviderResponse = z.object({
|
|
1306
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1307
|
+
});
|
|
1308
|
+
/**
|
|
1309
|
+
* **UNSTABLE**
|
|
1310
|
+
*
|
|
1311
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1312
|
+
*
|
|
1313
|
+
* Response to `providers/disable`.
|
|
1314
|
+
*
|
|
1315
|
+
* @experimental
|
|
1316
|
+
*/
|
|
1317
|
+
export const zDisableProviderResponse = z.object({
|
|
1318
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1319
|
+
});
|
|
1320
|
+
/**
|
|
1321
|
+
* Response to the `auth/logout` method.
|
|
1322
|
+
*/
|
|
1323
|
+
export const zLogoutAuthResponse = z.object({
|
|
1324
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1325
|
+
});
|
|
1326
|
+
/**
|
|
1327
|
+
* Unique identifier for a session configuration option.
|
|
1328
|
+
*/
|
|
1329
|
+
export const zSessionConfigId = z.string();
|
|
1330
|
+
/**
|
|
1331
|
+
* Semantic category for a session configuration option.
|
|
1332
|
+
*
|
|
1333
|
+
* This is intended to help Clients distinguish broadly common selectors (e.g. model selector vs
|
|
1334
|
+
* session mode selector vs thought/reasoning level) for UX purposes (keyboard shortcuts, icons,
|
|
1335
|
+
* placement). It MUST NOT be required for correctness. Clients MUST handle missing or unknown
|
|
1336
|
+
* categories gracefully.
|
|
1337
|
+
*
|
|
1338
|
+
* Category names beginning with `_` are free for custom use, like other ACP extension methods.
|
|
1339
|
+
* Category names that do not begin with `_` are reserved for the ACP spec.
|
|
1340
|
+
*/
|
|
1341
|
+
export const zSessionConfigOptionCategory = z.union([
|
|
1342
|
+
z.literal("mode"),
|
|
1343
|
+
z.literal("model"),
|
|
1344
|
+
z.literal("model_config"),
|
|
1345
|
+
z.literal("thought_level"),
|
|
1346
|
+
z.string(),
|
|
1347
|
+
]);
|
|
1348
|
+
/**
|
|
1349
|
+
* Unique identifier for a session configuration option value.
|
|
1350
|
+
*/
|
|
1351
|
+
export const zSessionConfigValueId = z.string();
|
|
1352
|
+
/**
|
|
1353
|
+
* A possible value for a session configuration option.
|
|
1354
|
+
*/
|
|
1355
|
+
export const zSessionConfigSelectOption = z.object({
|
|
1356
|
+
value: zSessionConfigValueId,
|
|
1357
|
+
name: z.string(),
|
|
1358
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
1359
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1360
|
+
});
|
|
1361
|
+
/**
|
|
1362
|
+
* Unique identifier for a session configuration option value group.
|
|
1363
|
+
*/
|
|
1364
|
+
export const zSessionConfigGroupId = z.string();
|
|
1365
|
+
/**
|
|
1366
|
+
* A group of possible values for a session configuration option.
|
|
1367
|
+
*/
|
|
1368
|
+
export const zSessionConfigSelectGroup = z.object({
|
|
1369
|
+
groupId: zSessionConfigGroupId,
|
|
1370
|
+
name: z.string(),
|
|
1371
|
+
options: requiredDefaultOnError(vecSkipError(zSessionConfigSelectOption), () => []),
|
|
1372
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1373
|
+
});
|
|
1374
|
+
/**
|
|
1375
|
+
* Possible values for a session configuration option.
|
|
1376
|
+
*/
|
|
1377
|
+
export const zSessionConfigSelectOptions = z.union([
|
|
1378
|
+
z.array(zSessionConfigSelectOption),
|
|
1379
|
+
z.array(zSessionConfigSelectGroup),
|
|
1380
|
+
]);
|
|
1381
|
+
/**
|
|
1382
|
+
* A single-value selector (dropdown) session configuration option payload.
|
|
1383
|
+
*/
|
|
1384
|
+
export const zSessionConfigSelect = z.object({
|
|
1385
|
+
currentValue: zSessionConfigValueId,
|
|
1386
|
+
options: zSessionConfigSelectOptions,
|
|
1387
|
+
});
|
|
1388
|
+
/**
|
|
1389
|
+
* A boolean on/off toggle session configuration option payload.
|
|
1390
|
+
*/
|
|
1391
|
+
export const zSessionConfigBoolean = z.object({
|
|
1392
|
+
currentValue: z.boolean(),
|
|
1393
|
+
});
|
|
1394
|
+
/**
|
|
1395
|
+
* A session configuration option selector and its current state.
|
|
1396
|
+
*
|
|
1397
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
1398
|
+
* properties exactly as received; unlike known variants, those keys
|
|
1399
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
1400
|
+
*/
|
|
1401
|
+
export const zSessionConfigOption = preserveCustomPayload(z.intersection(z.union([
|
|
1402
|
+
zSessionConfigSelect.and(z.object({
|
|
1403
|
+
type: z.literal("select"),
|
|
1404
|
+
})),
|
|
1405
|
+
zSessionConfigBoolean.and(z.object({
|
|
1406
|
+
type: z.literal("boolean"),
|
|
1407
|
+
})),
|
|
1408
|
+
excludeKnownTags(z.object({
|
|
1409
|
+
type: z.string(),
|
|
1410
|
+
}), "type", ["boolean", "select"]),
|
|
1411
|
+
]), z.object({
|
|
1412
|
+
configId: zSessionConfigId,
|
|
1413
|
+
name: z.string(),
|
|
1414
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
1415
|
+
category: defaultOnError(zSessionConfigOptionCategory.nullish(), () => undefined),
|
|
1416
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1417
|
+
})), "type", ["boolean", "select"]);
|
|
1418
|
+
/**
|
|
1419
|
+
* Response from creating a new session.
|
|
1420
|
+
*
|
|
1421
|
+
* See protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/v2/draft/session-setup#creating-a-session)
|
|
1422
|
+
*/
|
|
1423
|
+
export const zNewSessionResponse = z.object({
|
|
1424
|
+
sessionId: zSessionId,
|
|
1425
|
+
configOptions: defaultOnError(vecSkipError(zSessionConfigOption).optional(), () => []),
|
|
1426
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1427
|
+
});
|
|
1428
|
+
/**
|
|
1429
|
+
* Information about a session returned by session/list
|
|
1430
|
+
*/
|
|
1431
|
+
export const zSessionInfo = z.object({
|
|
1432
|
+
sessionId: zSessionId,
|
|
1433
|
+
cwd: zAbsolutePath,
|
|
1434
|
+
additionalDirectories: defaultOnError(vecSkipError(zAbsolutePath).optional(), () => []),
|
|
1435
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
1436
|
+
updatedAt: defaultOnError(z.iso.datetime({ offset: true }).nullish(), () => undefined),
|
|
1437
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1438
|
+
});
|
|
1439
|
+
/**
|
|
1440
|
+
* An opaque cursor used to paginate `session/list` results.
|
|
1441
|
+
*/
|
|
1442
|
+
export const zSessionListCursor = z.string();
|
|
1443
|
+
/**
|
|
1444
|
+
* Response from listing sessions.
|
|
1445
|
+
*/
|
|
1446
|
+
export const zListSessionsResponse = z.object({
|
|
1447
|
+
sessions: requiredDefaultOnError(vecSkipError(zSessionInfo), () => []),
|
|
1448
|
+
nextCursor: defaultOnError(zSessionListCursor.nullish(), () => undefined),
|
|
1449
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1450
|
+
});
|
|
1451
|
+
/**
|
|
1452
|
+
* Response from deleting a session.
|
|
1453
|
+
*/
|
|
1454
|
+
export const zDeleteSessionResponse = z.object({
|
|
1455
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1456
|
+
});
|
|
1457
|
+
/**
|
|
1458
|
+
* **UNSTABLE**
|
|
1459
|
+
*
|
|
1460
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1461
|
+
*
|
|
1462
|
+
* Response from forking an existing session.
|
|
1463
|
+
*
|
|
1464
|
+
* @experimental
|
|
1465
|
+
*/
|
|
1466
|
+
export const zForkSessionResponse = z.object({
|
|
1467
|
+
sessionId: zSessionId,
|
|
1468
|
+
configOptions: defaultOnError(vecSkipError(zSessionConfigOption).optional(), () => []),
|
|
1469
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1470
|
+
});
|
|
1471
|
+
/**
|
|
1472
|
+
* Response from resuming an existing session.
|
|
1473
|
+
*/
|
|
1474
|
+
export const zResumeSessionResponse = z.object({
|
|
1475
|
+
configOptions: defaultOnError(vecSkipError(zSessionConfigOption).optional(), () => []),
|
|
1476
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1477
|
+
});
|
|
1478
|
+
/**
|
|
1479
|
+
* Response from closing a session.
|
|
1480
|
+
*/
|
|
1481
|
+
export const zCloseSessionResponse = z.object({
|
|
1482
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1483
|
+
});
|
|
1484
|
+
/**
|
|
1485
|
+
* Response to `session/set_config_option` method.
|
|
1486
|
+
*/
|
|
1487
|
+
export const zSetSessionConfigOptionResponse = z.object({
|
|
1488
|
+
configOptions: requiredDefaultOnError(vecSkipError(zSessionConfigOption), () => []),
|
|
1489
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1490
|
+
});
|
|
1491
|
+
/**
|
|
1492
|
+
* Unique identifier for a message within a session.
|
|
1493
|
+
*/
|
|
1494
|
+
export const zMessageId = z.string();
|
|
1495
|
+
/**
|
|
1496
|
+
* Response acknowledging that a user prompt was inserted into the ACP conversation.
|
|
1497
|
+
*
|
|
1498
|
+
* This response does not indicate that the prompt was merely received or queued, nor that the
|
|
1499
|
+
* agent has finished processing it.
|
|
1500
|
+
* Processing and completion are reported through `state_update` session updates.
|
|
1501
|
+
*
|
|
1502
|
+
* See protocol docs: [Prompt Accepted](https://agentclientprotocol.com/protocol/v2/draft/prompt-lifecycle#2-prompt-accepted)
|
|
1503
|
+
*/
|
|
1504
|
+
export const zPromptResponse = z.object({
|
|
1505
|
+
messageId: zMessageId,
|
|
1506
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1507
|
+
});
|
|
1508
|
+
/**
|
|
1509
|
+
* Response to `nes/start`.
|
|
1510
|
+
*/
|
|
1511
|
+
export const zStartNesResponse = z.object({
|
|
1512
|
+
sessionId: zSessionId,
|
|
1513
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1514
|
+
});
|
|
1515
|
+
/**
|
|
1516
|
+
* **UNSTABLE**
|
|
1517
|
+
*
|
|
1518
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1519
|
+
*
|
|
1520
|
+
* Unique identifier for an NES suggestion.
|
|
1521
|
+
*
|
|
1522
|
+
* @experimental
|
|
1523
|
+
*/
|
|
1524
|
+
export const zNesSuggestionId = z.string();
|
|
1525
|
+
/**
|
|
1526
|
+
* A zero-based position in a text document.
|
|
1527
|
+
*
|
|
1528
|
+
* The meaning of `character` depends on the negotiated position encoding.
|
|
1529
|
+
*/
|
|
1530
|
+
export const zPosition = z.object({
|
|
1531
|
+
line: z.int().gte(0).max(4294967295, {
|
|
1532
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
1533
|
+
}),
|
|
1534
|
+
character: z.int().gte(0).max(4294967295, {
|
|
1535
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
1536
|
+
}),
|
|
1537
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1538
|
+
});
|
|
1539
|
+
/**
|
|
1540
|
+
* A range in a text document, expressed as start and end positions.
|
|
1541
|
+
*/
|
|
1542
|
+
export const zRange = z.object({
|
|
1543
|
+
start: zPosition,
|
|
1544
|
+
end: zPosition,
|
|
1545
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1546
|
+
});
|
|
1547
|
+
/**
|
|
1548
|
+
* A text edit within a suggestion.
|
|
1549
|
+
*/
|
|
1550
|
+
export const zNesTextEdit = z.object({
|
|
1551
|
+
range: zRange,
|
|
1552
|
+
newText: z.string(),
|
|
1553
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1554
|
+
});
|
|
1555
|
+
/**
|
|
1556
|
+
* A text edit suggestion.
|
|
1557
|
+
*/
|
|
1558
|
+
export const zNesEditSuggestion = z.object({
|
|
1559
|
+
suggestionId: zNesSuggestionId,
|
|
1560
|
+
uri: z.url(),
|
|
1561
|
+
edits: z.array(zNesTextEdit).min(1),
|
|
1562
|
+
cursorPosition: defaultOnError(zPosition.nullish(), () => undefined),
|
|
1563
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1564
|
+
});
|
|
1565
|
+
/**
|
|
1566
|
+
* A jump-to-location suggestion.
|
|
1567
|
+
*/
|
|
1568
|
+
export const zNesJumpSuggestion = z.object({
|
|
1569
|
+
suggestionId: zNesSuggestionId,
|
|
1570
|
+
uri: z.url(),
|
|
1571
|
+
position: zPosition,
|
|
1572
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1573
|
+
});
|
|
1574
|
+
/**
|
|
1575
|
+
* A rename symbol suggestion.
|
|
1576
|
+
*/
|
|
1577
|
+
export const zNesRenameSuggestion = z.object({
|
|
1578
|
+
suggestionId: zNesSuggestionId,
|
|
1579
|
+
uri: z.url(),
|
|
1580
|
+
position: zPosition,
|
|
1581
|
+
newName: z.string(),
|
|
1582
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1583
|
+
});
|
|
1584
|
+
/**
|
|
1585
|
+
* A search-and-replace suggestion.
|
|
1586
|
+
*/
|
|
1587
|
+
export const zNesSearchAndReplaceSuggestion = z.object({
|
|
1588
|
+
suggestionId: zNesSuggestionId,
|
|
1589
|
+
uri: z.url(),
|
|
1590
|
+
search: z.string(),
|
|
1591
|
+
replace: z.string(),
|
|
1592
|
+
isRegex: z.boolean().nullish(),
|
|
1593
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1594
|
+
});
|
|
1595
|
+
/**
|
|
1596
|
+
* A suggestion returned by the agent.
|
|
1597
|
+
*
|
|
1598
|
+
* Custom variants (unknown `kind` values) keep their extra
|
|
1599
|
+
* properties exactly as received; unlike known variants, those keys
|
|
1600
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
1601
|
+
*/
|
|
1602
|
+
export const zNesSuggestion = preserveCustomPayload(z.union([
|
|
1603
|
+
zNesEditSuggestion.and(z.object({
|
|
1604
|
+
kind: z.literal("edit"),
|
|
1605
|
+
})),
|
|
1606
|
+
zNesJumpSuggestion.and(z.object({
|
|
1607
|
+
kind: z.literal("jump"),
|
|
1608
|
+
})),
|
|
1609
|
+
zNesRenameSuggestion.and(z.object({
|
|
1610
|
+
kind: z.literal("rename"),
|
|
1611
|
+
})),
|
|
1612
|
+
zNesSearchAndReplaceSuggestion.and(z.object({
|
|
1613
|
+
kind: z.literal("searchAndReplace"),
|
|
1614
|
+
})),
|
|
1615
|
+
excludeKnownTags(z.object({
|
|
1616
|
+
kind: z.string(),
|
|
1617
|
+
suggestionId: zNesSuggestionId,
|
|
1618
|
+
}), "kind", ["edit", "jump", "rename", "searchAndReplace"]),
|
|
1619
|
+
]), "kind", ["edit", "jump", "rename", "searchAndReplace"]);
|
|
1620
|
+
/**
|
|
1621
|
+
* Response to `nes/suggest`.
|
|
1622
|
+
*/
|
|
1623
|
+
export const zSuggestNesResponse = z.object({
|
|
1624
|
+
suggestions: z.array(zNesSuggestion),
|
|
1625
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1626
|
+
});
|
|
1627
|
+
/**
|
|
1628
|
+
* Response from closing an NES session.
|
|
1629
|
+
*/
|
|
1630
|
+
export const zCloseNesResponse = z.object({
|
|
1631
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1632
|
+
});
|
|
1633
|
+
/**
|
|
1634
|
+
* Allows for sending an arbitrary response to an [`ExtRequest`] that is not part of the ACP spec.
|
|
1635
|
+
* Extension methods provide a way to add custom functionality while maintaining
|
|
1636
|
+
* protocol compatibility.
|
|
1637
|
+
*
|
|
1638
|
+
* See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/draft/extensibility)
|
|
1639
|
+
*/
|
|
1640
|
+
export const zExtResponse = z.unknown();
|
|
1641
|
+
/**
|
|
1642
|
+
* **UNSTABLE**
|
|
1643
|
+
*
|
|
1644
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1645
|
+
*
|
|
1646
|
+
* Response to `mcp/message`.
|
|
1647
|
+
*
|
|
1648
|
+
* This is the inner MCP response result payload. Any JSON value is valid.
|
|
1649
|
+
*
|
|
1650
|
+
* @experimental
|
|
1651
|
+
*/
|
|
1652
|
+
export const zMessageMcpResponse = z.unknown();
|
|
1653
|
+
/**
|
|
1654
|
+
* Predefined error codes for common JSON-RPC and ACP-specific errors.
|
|
1655
|
+
*
|
|
1656
|
+
* These codes follow the JSON-RPC 2.0 specification for standard errors
|
|
1657
|
+
* and use the reserved range (-32000 to -32099) for protocol-specific errors.
|
|
1658
|
+
*/
|
|
1659
|
+
export const zErrorCode = z.union([
|
|
1660
|
+
z.literal(-32700),
|
|
1661
|
+
z.literal(-32600),
|
|
1662
|
+
z.literal(-32601),
|
|
1663
|
+
z.literal(-32602),
|
|
1664
|
+
z.literal(-32603),
|
|
1665
|
+
z.literal(-32800),
|
|
1666
|
+
z.literal(-32000),
|
|
1667
|
+
z.literal(-32002),
|
|
1668
|
+
z
|
|
1669
|
+
.int()
|
|
1670
|
+
.min(-2147483648, {
|
|
1671
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
1672
|
+
})
|
|
1673
|
+
.max(2147483647, {
|
|
1674
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
1675
|
+
}),
|
|
1676
|
+
]);
|
|
1677
|
+
/**
|
|
1678
|
+
* JSON-RPC error object.
|
|
1679
|
+
*
|
|
1680
|
+
* Represents an error that occurred during method execution, following the
|
|
1681
|
+
* JSON-RPC 2.0 error object specification with optional additional data.
|
|
1682
|
+
*
|
|
1683
|
+
* See protocol docs: [JSON-RPC Error Object](https://www.jsonrpc.org/specification#error_object)
|
|
1684
|
+
*/
|
|
1685
|
+
export const zError = z.object({
|
|
1686
|
+
code: zErrorCode,
|
|
1687
|
+
message: z.string(),
|
|
1688
|
+
data: defaultOnError(z.unknown().optional(), () => undefined),
|
|
1689
|
+
});
|
|
1690
|
+
/**
|
|
1691
|
+
* A JSON-RPC response object.
|
|
1692
|
+
*/
|
|
1693
|
+
export const zAgentResponse = z.union([
|
|
1694
|
+
z.object({
|
|
1695
|
+
id: zRequestId,
|
|
1696
|
+
result: z.union([
|
|
1697
|
+
zInitializeResponse,
|
|
1698
|
+
zLoginAuthResponse,
|
|
1699
|
+
zListProvidersResponse,
|
|
1700
|
+
zSetProviderResponse,
|
|
1701
|
+
zDisableProviderResponse,
|
|
1702
|
+
zLogoutAuthResponse,
|
|
1703
|
+
zNewSessionResponse,
|
|
1704
|
+
zListSessionsResponse,
|
|
1705
|
+
zDeleteSessionResponse,
|
|
1706
|
+
zForkSessionResponse,
|
|
1707
|
+
zResumeSessionResponse,
|
|
1708
|
+
zCloseSessionResponse,
|
|
1709
|
+
zSetSessionConfigOptionResponse,
|
|
1710
|
+
zPromptResponse,
|
|
1711
|
+
zStartNesResponse,
|
|
1712
|
+
zSuggestNesResponse,
|
|
1713
|
+
zCloseNesResponse,
|
|
1714
|
+
zExtResponse,
|
|
1715
|
+
zMessageMcpResponse,
|
|
1716
|
+
]),
|
|
1717
|
+
}),
|
|
1718
|
+
z.object({
|
|
1719
|
+
id: zRequestId,
|
|
1720
|
+
error: zError,
|
|
1721
|
+
}),
|
|
1722
|
+
]);
|
|
1723
|
+
/**
|
|
1724
|
+
* A streamed item of message content.
|
|
1725
|
+
*/
|
|
1726
|
+
export const zContentChunk = z.object({
|
|
1727
|
+
messageId: zMessageId,
|
|
1728
|
+
content: zContentBlock,
|
|
1729
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1730
|
+
});
|
|
1731
|
+
/**
|
|
1732
|
+
* A user message upsert.
|
|
1733
|
+
*
|
|
1734
|
+
* Only [`UserMessage::message_id`] is required. `content` has patch semantics:
|
|
1735
|
+
* an omitted field leaves existing message content unchanged, `null` clears the
|
|
1736
|
+
* value, and a concrete array replaces the previous value. For a new
|
|
1737
|
+
* `messageId`, omitted fields use client defaults. `content` is replaced as a
|
|
1738
|
+
* whole array; send `[]` or `null` to clear it.
|
|
1739
|
+
*
|
|
1740
|
+
* Message updates and chunks are applied in the order they are received. When
|
|
1741
|
+
* a `user_message` update includes `content`, that array replaces any content
|
|
1742
|
+
* previously accumulated for the message, including content from earlier
|
|
1743
|
+
* chunks. Later chunks with the same `messageId` append to the current
|
|
1744
|
+
* content.
|
|
1745
|
+
*/
|
|
1746
|
+
export const zUserMessage = z.object({
|
|
1747
|
+
messageId: zMessageId,
|
|
1748
|
+
content: defaultOnError(vecSkipError(zContentBlock).nullish(), () => undefined),
|
|
1749
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1750
|
+
});
|
|
1751
|
+
/**
|
|
1752
|
+
* An agent message upsert.
|
|
1753
|
+
*
|
|
1754
|
+
* Only [`AgentMessage::message_id`] is required. `content` has patch semantics:
|
|
1755
|
+
* an omitted field leaves existing message content unchanged, `null` clears the
|
|
1756
|
+
* value, and a concrete array replaces the previous value. For a new
|
|
1757
|
+
* `messageId`, omitted fields use client defaults. `content` is replaced as a
|
|
1758
|
+
* whole array; send `[]` or `null` to clear it.
|
|
1759
|
+
*
|
|
1760
|
+
* Message updates and chunks are applied in the order they are received. When
|
|
1761
|
+
* an `agent_message` update includes `content`, that array replaces any
|
|
1762
|
+
* content previously accumulated for the message, including content from
|
|
1763
|
+
* earlier chunks. Later chunks with the same `messageId` append to the current
|
|
1764
|
+
* content.
|
|
1765
|
+
*/
|
|
1766
|
+
export const zAgentMessage = z.object({
|
|
1767
|
+
messageId: zMessageId,
|
|
1768
|
+
content: defaultOnError(vecSkipError(zContentBlock).nullish(), () => undefined),
|
|
1769
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1770
|
+
});
|
|
1771
|
+
/**
|
|
1772
|
+
* An agent thought or reasoning message upsert.
|
|
1773
|
+
*
|
|
1774
|
+
* Only [`AgentThought::message_id`] is required. `content` has patch semantics:
|
|
1775
|
+
* an omitted field leaves existing thought content unchanged, `null` clears the
|
|
1776
|
+
* value, and a concrete array replaces the previous value. For a new
|
|
1777
|
+
* `messageId`, omitted fields use client defaults. `content` is replaced as a
|
|
1778
|
+
* whole array; send `[]` or `null` to clear it.
|
|
1779
|
+
*
|
|
1780
|
+
* Message updates and chunks are applied in the order they are received. When
|
|
1781
|
+
* an `agent_thought` update includes `content`, that array replaces any
|
|
1782
|
+
* content previously accumulated for the thought, including content from
|
|
1783
|
+
* earlier chunks. Later chunks with the same `messageId` append to the current
|
|
1784
|
+
* content.
|
|
1785
|
+
*/
|
|
1786
|
+
export const zAgentThought = z.object({
|
|
1787
|
+
messageId: zMessageId,
|
|
1788
|
+
content: defaultOnError(vecSkipError(zContentBlock).nullish(), () => undefined),
|
|
1789
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1790
|
+
});
|
|
1791
|
+
/**
|
|
1792
|
+
* Foreground work is in progress.
|
|
1793
|
+
*/
|
|
1794
|
+
export const zRunningStateUpdate = z.object({
|
|
1795
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1796
|
+
});
|
|
1797
|
+
/**
|
|
1798
|
+
* Reasons why an agent stops active session work.
|
|
1799
|
+
*
|
|
1800
|
+
* See protocol docs: [Stop Reasons](https://agentclientprotocol.com/protocol/v2/draft/prompt-lifecycle#stop-reasons)
|
|
1801
|
+
*/
|
|
1802
|
+
export const zStopReason = z.union([
|
|
1803
|
+
z.literal("end_turn"),
|
|
1804
|
+
z.literal("max_tokens"),
|
|
1805
|
+
z.literal("max_turn_requests"),
|
|
1806
|
+
z.literal("refusal"),
|
|
1807
|
+
z.literal("cancelled"),
|
|
1808
|
+
z.string(),
|
|
1809
|
+
]);
|
|
1810
|
+
/**
|
|
1811
|
+
* **UNSTABLE**
|
|
1812
|
+
*
|
|
1813
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1814
|
+
*
|
|
1815
|
+
* Token usage information for completed session work.
|
|
1816
|
+
*
|
|
1817
|
+
* @experimental
|
|
1818
|
+
*/
|
|
1819
|
+
export const zUsage = z.object({
|
|
1820
|
+
totalTokens: z.number(),
|
|
1821
|
+
inputTokens: z.number(),
|
|
1822
|
+
outputTokens: z.number(),
|
|
1823
|
+
thoughtTokens: defaultOnError(z.number().nullish(), () => undefined),
|
|
1824
|
+
cachedReadTokens: defaultOnError(z.number().nullish(), () => undefined),
|
|
1825
|
+
cachedWriteTokens: defaultOnError(z.number().nullish(), () => undefined),
|
|
1826
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1827
|
+
});
|
|
1828
|
+
/**
|
|
1829
|
+
* The agent is ready to process a new prompt.
|
|
1830
|
+
*/
|
|
1831
|
+
export const zIdleStateUpdate = z.object({
|
|
1832
|
+
stopReason: defaultOnError(zStopReason.nullish(), () => undefined),
|
|
1833
|
+
usage: defaultOnError(zUsage.nullish(), () => undefined),
|
|
1834
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1835
|
+
});
|
|
1836
|
+
/**
|
|
1837
|
+
* Foreground work is blocked on user action.
|
|
1838
|
+
*/
|
|
1839
|
+
export const zRequiresActionStateUpdate = z.object({
|
|
1840
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1841
|
+
});
|
|
1842
|
+
/**
|
|
1843
|
+
* The state of the agent's foreground work has changed.
|
|
1844
|
+
*
|
|
1845
|
+
* Background activity can continue and emit other `session/update` notifications
|
|
1846
|
+
* while `idle`. Those notifications do not change this state.
|
|
1847
|
+
*
|
|
1848
|
+
* Custom variants (unknown `state` values) keep their extra
|
|
1849
|
+
* properties exactly as received; unlike known variants, those keys
|
|
1850
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
1851
|
+
*/
|
|
1852
|
+
export const zStateUpdate = preserveCustomPayload(z.union([
|
|
1853
|
+
zRunningStateUpdate.and(z.object({
|
|
1854
|
+
state: z.literal("running"),
|
|
1855
|
+
})),
|
|
1856
|
+
zIdleStateUpdate.and(z.object({
|
|
1857
|
+
state: z.literal("idle"),
|
|
1858
|
+
})),
|
|
1859
|
+
zRequiresActionStateUpdate.and(z.object({
|
|
1860
|
+
state: z.literal("requires_action"),
|
|
1861
|
+
})),
|
|
1862
|
+
excludeKnownTags(z.object({
|
|
1863
|
+
state: z.string(),
|
|
1864
|
+
}), "state", ["idle", "requires_action", "running"]),
|
|
1865
|
+
]), "state", ["idle", "requires_action", "running"]);
|
|
1866
|
+
/**
|
|
1867
|
+
* A streamed item of tool-call content.
|
|
1868
|
+
*
|
|
1869
|
+
* Tool-call content chunks append one [`ToolCallContent`] item to the current
|
|
1870
|
+
* content for the matching [`ToolCallId`]. Agents can use
|
|
1871
|
+
* [`ToolCallUpdate::content`] when they need to replace the whole content
|
|
1872
|
+
* collection instead.
|
|
1873
|
+
*/
|
|
1874
|
+
export const zToolCallContentChunk = z.object({
|
|
1875
|
+
toolCallId: zToolCallId,
|
|
1876
|
+
content: zToolCallContent,
|
|
1877
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1878
|
+
});
|
|
1879
|
+
/**
|
|
1880
|
+
* An authoritative replacement snapshot of terminal output bytes.
|
|
1881
|
+
*/
|
|
1882
|
+
export const zTerminalOutput = z.object({
|
|
1883
|
+
data: z.string(),
|
|
1884
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1885
|
+
});
|
|
1886
|
+
/**
|
|
1887
|
+
* Exit information for an agent-owned terminal.
|
|
1888
|
+
*
|
|
1889
|
+
* The presence of this object marks the terminal as exited, even when neither
|
|
1890
|
+
* an exit code nor a signal is known.
|
|
1891
|
+
*/
|
|
1892
|
+
export const zTerminalExitStatus = z.object({
|
|
1893
|
+
exitCode: defaultOnError(z
|
|
1894
|
+
.int()
|
|
1895
|
+
.gte(0)
|
|
1896
|
+
.max(4294967295, {
|
|
1897
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
1898
|
+
})
|
|
1899
|
+
.nullish(), () => undefined),
|
|
1900
|
+
signal: defaultOnError(z.string().nullish(), () => undefined),
|
|
1901
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1902
|
+
});
|
|
1903
|
+
/**
|
|
1904
|
+
* An upsert for the stored state of an agent-owned terminal.
|
|
1905
|
+
*
|
|
1906
|
+
* Only [`TerminalUpdate::terminal_id`] is required. Other fields have patch
|
|
1907
|
+
* semantics: omitted fields leave the stored value unchanged, `null` clears
|
|
1908
|
+
* it, and concrete values replace it. When the terminal ID is new, omitted
|
|
1909
|
+
* fields start unknown.
|
|
1910
|
+
*/
|
|
1911
|
+
export const zTerminalUpdate = z.object({
|
|
1912
|
+
terminalId: zTerminalId,
|
|
1913
|
+
command: defaultOnError(z.string().nullish(), () => undefined),
|
|
1914
|
+
cwd: defaultOnError(zAbsolutePath.nullish(), () => undefined),
|
|
1915
|
+
output: defaultOnError(zTerminalOutput.nullish(), () => undefined),
|
|
1916
|
+
exitStatus: defaultOnError(zTerminalExitStatus.nullish(), () => undefined),
|
|
1917
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1918
|
+
});
|
|
1919
|
+
/**
|
|
1920
|
+
* A chunk of bytes appended to an agent-owned terminal's output.
|
|
1921
|
+
*/
|
|
1922
|
+
export const zTerminalOutputChunk = z.object({
|
|
1923
|
+
terminalId: zTerminalId,
|
|
1924
|
+
data: z.string(),
|
|
1925
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1926
|
+
});
|
|
1927
|
+
/**
|
|
1928
|
+
* Unique identifier for a plan within a session.
|
|
1929
|
+
*/
|
|
1930
|
+
export const zPlanId = z.string();
|
|
1931
|
+
/**
|
|
1932
|
+
* Priority levels for plan entries.
|
|
1933
|
+
*
|
|
1934
|
+
* Used to indicate the relative importance or urgency of different
|
|
1935
|
+
* tasks in the execution plan.
|
|
1936
|
+
* See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/v2/draft/agent-plan#plan-entries)
|
|
1937
|
+
*/
|
|
1938
|
+
export const zPlanEntryPriority = z.union([
|
|
1939
|
+
z.literal("high"),
|
|
1940
|
+
z.literal("medium"),
|
|
1941
|
+
z.literal("low"),
|
|
1942
|
+
z.string(),
|
|
1943
|
+
]);
|
|
1944
|
+
/**
|
|
1945
|
+
* Status of a plan entry in the execution flow.
|
|
1946
|
+
*
|
|
1947
|
+
* Tracks the lifecycle of each task from planning through completion.
|
|
1948
|
+
* See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/v2/draft/agent-plan#plan-entries)
|
|
1949
|
+
*/
|
|
1950
|
+
export const zPlanEntryStatus = z.union([
|
|
1951
|
+
z.literal("pending"),
|
|
1952
|
+
z.literal("in_progress"),
|
|
1953
|
+
z.literal("completed"),
|
|
1954
|
+
z.literal("cancelled"),
|
|
1955
|
+
z.string(),
|
|
1956
|
+
]);
|
|
1957
|
+
/**
|
|
1958
|
+
* A single entry in the execution plan.
|
|
1959
|
+
*
|
|
1960
|
+
* Represents a task or goal that the assistant intends to accomplish
|
|
1961
|
+
* as part of fulfilling the user's request.
|
|
1962
|
+
* See protocol docs: [Plan Entries](https://agentclientprotocol.com/protocol/v2/draft/agent-plan#plan-entries)
|
|
1963
|
+
*/
|
|
1964
|
+
export const zPlanEntry = z.object({
|
|
1965
|
+
content: z.string(),
|
|
1966
|
+
priority: zPlanEntryPriority,
|
|
1967
|
+
status: zPlanEntryStatus,
|
|
1968
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1969
|
+
});
|
|
1970
|
+
/**
|
|
1971
|
+
* A plan represented as structured entries.
|
|
1972
|
+
*/
|
|
1973
|
+
export const zPlanItems = z.object({
|
|
1974
|
+
planId: zPlanId,
|
|
1975
|
+
entries: requiredDefaultOnError(vecSkipError(zPlanEntry), () => []),
|
|
1976
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1977
|
+
});
|
|
1978
|
+
/**
|
|
1979
|
+
* **UNSTABLE**
|
|
1980
|
+
*
|
|
1981
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1982
|
+
*
|
|
1983
|
+
* A plan represented by a file URI.
|
|
1984
|
+
*
|
|
1985
|
+
* @experimental
|
|
1986
|
+
*/
|
|
1987
|
+
export const zPlanFile = z.object({
|
|
1988
|
+
planId: zPlanId,
|
|
1989
|
+
uri: z.url(),
|
|
1990
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
1991
|
+
});
|
|
1992
|
+
/**
|
|
1993
|
+
* **UNSTABLE**
|
|
1994
|
+
*
|
|
1995
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
1996
|
+
*
|
|
1997
|
+
* A plan represented as raw markdown content.
|
|
1998
|
+
*
|
|
1999
|
+
* @experimental
|
|
2000
|
+
*/
|
|
2001
|
+
export const zPlanMarkdown = z.object({
|
|
2002
|
+
planId: zPlanId,
|
|
2003
|
+
content: z.string(),
|
|
2004
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2005
|
+
});
|
|
2006
|
+
/**
|
|
2007
|
+
* Updated content for a plan.
|
|
2008
|
+
*
|
|
2009
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
2010
|
+
* properties exactly as received; unlike known variants, those keys
|
|
2011
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
2012
|
+
*/
|
|
2013
|
+
export const zPlanUpdateContent = preserveCustomPayload(z.union([
|
|
2014
|
+
zPlanItems.and(z.object({
|
|
2015
|
+
type: z.literal("items"),
|
|
2016
|
+
})),
|
|
2017
|
+
zPlanFile.and(z.object({
|
|
2018
|
+
type: z.literal("file"),
|
|
2019
|
+
})),
|
|
2020
|
+
zPlanMarkdown.and(z.object({
|
|
2021
|
+
type: z.literal("markdown"),
|
|
2022
|
+
})),
|
|
2023
|
+
excludeKnownTags(z.object({
|
|
2024
|
+
type: z.string(),
|
|
2025
|
+
planId: zPlanId,
|
|
2026
|
+
}), "type", ["file", "items", "markdown"]),
|
|
2027
|
+
]), "type", ["file", "items", "markdown"]);
|
|
2028
|
+
/**
|
|
2029
|
+
* A content update for a plan identified by ID.
|
|
2030
|
+
*/
|
|
2031
|
+
export const zPlanUpdate = z.object({
|
|
2032
|
+
plan: zPlanUpdateContent,
|
|
2033
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2034
|
+
});
|
|
2035
|
+
/**
|
|
2036
|
+
* **UNSTABLE**
|
|
2037
|
+
*
|
|
2038
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2039
|
+
*
|
|
2040
|
+
* Removal notice for a plan identified by ID.
|
|
2041
|
+
*
|
|
2042
|
+
* @experimental
|
|
2043
|
+
*/
|
|
2044
|
+
export const zPlanRemoved = z.object({
|
|
2045
|
+
planId: zPlanId,
|
|
2046
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2047
|
+
});
|
|
2048
|
+
/**
|
|
2049
|
+
* All text that was typed after the command name is provided as input.
|
|
2050
|
+
*/
|
|
2051
|
+
export const zTextCommandInput = z.object({
|
|
2052
|
+
hint: z.string(),
|
|
2053
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2054
|
+
});
|
|
2055
|
+
/**
|
|
2056
|
+
* The input specification for a command.
|
|
2057
|
+
*
|
|
2058
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
2059
|
+
* properties exactly as received; unlike known variants, those keys
|
|
2060
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
2061
|
+
*/
|
|
2062
|
+
export const zAvailableCommandInput = preserveCustomPayload(z.union([
|
|
2063
|
+
zTextCommandInput.and(z.object({
|
|
2064
|
+
type: z.literal("text"),
|
|
2065
|
+
})),
|
|
2066
|
+
excludeKnownTags(z.object({
|
|
2067
|
+
type: z.string(),
|
|
2068
|
+
}), "type", ["text"]),
|
|
2069
|
+
]), "type", ["text"]);
|
|
2070
|
+
/**
|
|
2071
|
+
* Information about a command.
|
|
2072
|
+
*/
|
|
2073
|
+
export const zAvailableCommand = z.object({
|
|
2074
|
+
name: z.string(),
|
|
2075
|
+
description: z.string(),
|
|
2076
|
+
input: defaultOnError(zAvailableCommandInput.nullish(), () => undefined),
|
|
2077
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2078
|
+
});
|
|
2079
|
+
/**
|
|
2080
|
+
* Available commands are ready or have changed
|
|
2081
|
+
*/
|
|
2082
|
+
export const zAvailableCommandsUpdate = z.object({
|
|
2083
|
+
availableCommands: requiredDefaultOnError(vecSkipError(zAvailableCommand), () => []),
|
|
2084
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2085
|
+
});
|
|
2086
|
+
/**
|
|
2087
|
+
* Session configuration options have been updated.
|
|
2088
|
+
*/
|
|
2089
|
+
export const zConfigOptionUpdate = z.object({
|
|
2090
|
+
configOptions: requiredDefaultOnError(vecSkipError(zSessionConfigOption), () => []),
|
|
2091
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2092
|
+
});
|
|
2093
|
+
/**
|
|
2094
|
+
* Update to session metadata. All fields are optional to support partial updates.
|
|
2095
|
+
*
|
|
2096
|
+
* Agents send this notification to update session information like title or custom metadata.
|
|
2097
|
+
* This allows clients to display dynamic session names and track session state changes.
|
|
2098
|
+
*
|
|
2099
|
+
* Omitted fields leave the existing session info unchanged. `null` clears the
|
|
2100
|
+
* corresponding value.
|
|
2101
|
+
*/
|
|
2102
|
+
export const zSessionInfoUpdate = z.object({
|
|
2103
|
+
title: defaultOnError(z.string().nullish(), () => undefined),
|
|
2104
|
+
updatedAt: defaultOnError(z.iso.datetime({ offset: true }).nullish(), () => undefined),
|
|
2105
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2106
|
+
});
|
|
2107
|
+
/**
|
|
2108
|
+
* Cost information for a session.
|
|
2109
|
+
*/
|
|
2110
|
+
export const zCost = z.object({
|
|
2111
|
+
amount: z.number(),
|
|
2112
|
+
currency: z.string().regex(/^[A-Z]{3}$/),
|
|
2113
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2114
|
+
});
|
|
2115
|
+
/**
|
|
2116
|
+
* Context window and cost update for a session.
|
|
2117
|
+
*/
|
|
2118
|
+
export const zUsageUpdate = z.object({
|
|
2119
|
+
used: z.number(),
|
|
2120
|
+
size: z.number(),
|
|
2121
|
+
cost: defaultOnError(zCost.nullish(), () => undefined),
|
|
2122
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2123
|
+
});
|
|
2124
|
+
/**
|
|
2125
|
+
* **UNSTABLE**
|
|
2126
|
+
*
|
|
2127
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2128
|
+
*
|
|
2129
|
+
* Severity hint for a session notice.
|
|
2130
|
+
*
|
|
2131
|
+
* @experimental
|
|
2132
|
+
*/
|
|
2133
|
+
export const zNoticeSeverity = z.union([
|
|
2134
|
+
z.literal("info"),
|
|
2135
|
+
z.literal("warning"),
|
|
2136
|
+
z.literal("error"),
|
|
2137
|
+
z.string(),
|
|
2138
|
+
]);
|
|
2139
|
+
/**
|
|
2140
|
+
* **UNSTABLE**
|
|
2141
|
+
*
|
|
2142
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2143
|
+
*
|
|
2144
|
+
* Fire-and-forget advisory information for the user.
|
|
2145
|
+
*
|
|
2146
|
+
* Notices are live events rather than session history. Agents must not rely on
|
|
2147
|
+
* a notice being received, displayed, or seen by the user.
|
|
2148
|
+
* No Client capability is required, and unsupported Clients may ignore notices.
|
|
2149
|
+
*
|
|
2150
|
+
* See RFD: [Session Notices](https://agentclientprotocol.com/rfds/session-notices)
|
|
2151
|
+
*
|
|
2152
|
+
* @experimental
|
|
2153
|
+
*/
|
|
2154
|
+
export const zNotice = z.object({
|
|
2155
|
+
severity: zNoticeSeverity,
|
|
2156
|
+
title: z.string().min(1),
|
|
2157
|
+
description: defaultOnError(z.string().nullish(), () => undefined),
|
|
2158
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2159
|
+
});
|
|
2160
|
+
/**
|
|
2161
|
+
* **UNSTABLE**
|
|
2162
|
+
*
|
|
2163
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2164
|
+
*
|
|
2165
|
+
* Unique identifier for a context compaction within a session.
|
|
2166
|
+
*
|
|
2167
|
+
* @experimental
|
|
2168
|
+
*/
|
|
2169
|
+
export const zCompactionId = z.string();
|
|
2170
|
+
/**
|
|
2171
|
+
* **UNSTABLE**
|
|
2172
|
+
*
|
|
2173
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2174
|
+
*
|
|
2175
|
+
* Lifecycle state of a context compaction.
|
|
2176
|
+
*
|
|
2177
|
+
* @experimental
|
|
2178
|
+
*/
|
|
2179
|
+
export const zCompactionStatus = z.union([
|
|
2180
|
+
z.literal("in_progress"),
|
|
2181
|
+
z.literal("completed"),
|
|
2182
|
+
z.literal("failed"),
|
|
2183
|
+
z.literal("cancelled"),
|
|
2184
|
+
z.string(),
|
|
2185
|
+
]);
|
|
2186
|
+
/**
|
|
2187
|
+
* **UNSTABLE**
|
|
2188
|
+
*
|
|
2189
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2190
|
+
*
|
|
2191
|
+
* A context compaction upsert. The first update fixes the compaction's
|
|
2192
|
+
* timeline position. Later updates with the same ID patch that entity in place.
|
|
2193
|
+
*
|
|
2194
|
+
* `summary`, `error`, and `_meta` have patch semantics: omission leaves the
|
|
2195
|
+
* stored value unchanged, `null` clears it, and a concrete value replaces it.
|
|
2196
|
+
* `summary: []` also clears the retained summary. A non-empty summary is only
|
|
2197
|
+
* valid with `completed`; `error` is only valid with `failed`.
|
|
2198
|
+
*
|
|
2199
|
+
* @experimental
|
|
2200
|
+
*/
|
|
2201
|
+
export const zCompactionUpdate = z.object({
|
|
2202
|
+
compactionId: zCompactionId,
|
|
2203
|
+
status: zCompactionStatus,
|
|
2204
|
+
summary: defaultOnError(vecSkipError(zContentBlock).nullish(), () => undefined),
|
|
2205
|
+
error: defaultOnError(z.string().nullish(), () => undefined),
|
|
2206
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2207
|
+
});
|
|
2208
|
+
/**
|
|
2209
|
+
* **UNSTABLE**
|
|
2210
|
+
*
|
|
2211
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2212
|
+
*
|
|
2213
|
+
* A content block appended to the retained summary of an in-progress
|
|
2214
|
+
* compaction. Agents send chunks only after an `in_progress` update and before
|
|
2215
|
+
* the terminal update for the same ID.
|
|
2216
|
+
*
|
|
2217
|
+
* @experimental
|
|
2218
|
+
*/
|
|
2219
|
+
export const zCompactionSummaryChunk = z.object({
|
|
2220
|
+
compactionId: zCompactionId,
|
|
2221
|
+
content: zContentBlock,
|
|
2222
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2223
|
+
});
|
|
2224
|
+
/**
|
|
2225
|
+
* Different types of updates that can be sent while a session exists.
|
|
2226
|
+
*
|
|
2227
|
+
* These updates report messages, progress, and other session activity.
|
|
2228
|
+
*
|
|
2229
|
+
* See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/v2/draft/prompt-lifecycle#3-agent-reports-output)
|
|
2230
|
+
*
|
|
2231
|
+
* Custom variants (unknown `sessionUpdate` values) keep their extra
|
|
2232
|
+
* properties exactly as received; unlike known variants, those keys
|
|
2233
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
2234
|
+
*/
|
|
2235
|
+
export const zSessionUpdate = preserveCustomPayload(z.union([
|
|
2236
|
+
zContentChunk.and(z.object({
|
|
2237
|
+
sessionUpdate: z.literal("user_message_chunk"),
|
|
2238
|
+
})),
|
|
2239
|
+
zUserMessage.and(z.object({
|
|
2240
|
+
sessionUpdate: z.literal("user_message"),
|
|
2241
|
+
})),
|
|
2242
|
+
zContentChunk.and(z.object({
|
|
2243
|
+
sessionUpdate: z.literal("agent_message_chunk"),
|
|
2244
|
+
})),
|
|
2245
|
+
zAgentMessage.and(z.object({
|
|
2246
|
+
sessionUpdate: z.literal("agent_message"),
|
|
2247
|
+
})),
|
|
2248
|
+
zContentChunk.and(z.object({
|
|
2249
|
+
sessionUpdate: z.literal("agent_thought_chunk"),
|
|
2250
|
+
})),
|
|
2251
|
+
zAgentThought.and(z.object({
|
|
2252
|
+
sessionUpdate: z.literal("agent_thought"),
|
|
2253
|
+
})),
|
|
2254
|
+
zStateUpdate.and(z.object({
|
|
2255
|
+
sessionUpdate: z.literal("state_update"),
|
|
2256
|
+
})),
|
|
2257
|
+
zToolCallContentChunk.and(z.object({
|
|
2258
|
+
sessionUpdate: z.literal("tool_call_content_chunk"),
|
|
2259
|
+
})),
|
|
2260
|
+
zToolCallUpdate.and(z.object({
|
|
2261
|
+
sessionUpdate: z.literal("tool_call_update"),
|
|
2262
|
+
})),
|
|
2263
|
+
zTerminalUpdate.and(z.object({
|
|
2264
|
+
sessionUpdate: z.literal("terminal_update"),
|
|
2265
|
+
})),
|
|
2266
|
+
zTerminalOutputChunk.and(z.object({
|
|
2267
|
+
sessionUpdate: z.literal("terminal_output_chunk"),
|
|
2268
|
+
})),
|
|
2269
|
+
zPlanUpdate.and(z.object({
|
|
2270
|
+
sessionUpdate: z.literal("plan_update"),
|
|
2271
|
+
})),
|
|
2272
|
+
zPlanRemoved.and(z.object({
|
|
2273
|
+
sessionUpdate: z.literal("plan_removed"),
|
|
2274
|
+
})),
|
|
2275
|
+
zAvailableCommandsUpdate.and(z.object({
|
|
2276
|
+
sessionUpdate: z.literal("available_commands_update"),
|
|
2277
|
+
})),
|
|
2278
|
+
zConfigOptionUpdate.and(z.object({
|
|
2279
|
+
sessionUpdate: z.literal("config_option_update"),
|
|
2280
|
+
})),
|
|
2281
|
+
zSessionInfoUpdate.and(z.object({
|
|
2282
|
+
sessionUpdate: z.literal("session_info_update"),
|
|
2283
|
+
})),
|
|
2284
|
+
zUsageUpdate.and(z.object({
|
|
2285
|
+
sessionUpdate: z.literal("usage_update"),
|
|
2286
|
+
})),
|
|
2287
|
+
zNotice.and(z.object({
|
|
2288
|
+
sessionUpdate: z.literal("notice"),
|
|
2289
|
+
})),
|
|
2290
|
+
zCompactionUpdate.and(z.object({
|
|
2291
|
+
sessionUpdate: z.literal("compaction_update"),
|
|
2292
|
+
})),
|
|
2293
|
+
zCompactionSummaryChunk.and(z.object({
|
|
2294
|
+
sessionUpdate: z.literal("compaction_summary_chunk"),
|
|
2295
|
+
})),
|
|
2296
|
+
excludeKnownTags(z.object({
|
|
2297
|
+
sessionUpdate: z.string(),
|
|
2298
|
+
}), "sessionUpdate", [
|
|
2299
|
+
"agent_message",
|
|
2300
|
+
"agent_message_chunk",
|
|
2301
|
+
"agent_thought",
|
|
2302
|
+
"agent_thought_chunk",
|
|
2303
|
+
"available_commands_update",
|
|
2304
|
+
"compaction_summary_chunk",
|
|
2305
|
+
"compaction_update",
|
|
2306
|
+
"config_option_update",
|
|
2307
|
+
"notice",
|
|
2308
|
+
"plan_removed",
|
|
2309
|
+
"plan_update",
|
|
2310
|
+
"session_info_update",
|
|
2311
|
+
"state_update",
|
|
2312
|
+
"terminal_output_chunk",
|
|
2313
|
+
"terminal_update",
|
|
2314
|
+
"tool_call_content_chunk",
|
|
2315
|
+
"tool_call_update",
|
|
2316
|
+
"usage_update",
|
|
2317
|
+
"user_message",
|
|
2318
|
+
"user_message_chunk",
|
|
2319
|
+
]),
|
|
2320
|
+
]), "sessionUpdate", [
|
|
2321
|
+
"agent_message",
|
|
2322
|
+
"agent_message_chunk",
|
|
2323
|
+
"agent_thought",
|
|
2324
|
+
"agent_thought_chunk",
|
|
2325
|
+
"available_commands_update",
|
|
2326
|
+
"compaction_summary_chunk",
|
|
2327
|
+
"compaction_update",
|
|
2328
|
+
"config_option_update",
|
|
2329
|
+
"notice",
|
|
2330
|
+
"plan_removed",
|
|
2331
|
+
"plan_update",
|
|
2332
|
+
"session_info_update",
|
|
2333
|
+
"state_update",
|
|
2334
|
+
"terminal_output_chunk",
|
|
2335
|
+
"terminal_update",
|
|
2336
|
+
"tool_call_content_chunk",
|
|
2337
|
+
"tool_call_update",
|
|
2338
|
+
"usage_update",
|
|
2339
|
+
"user_message",
|
|
2340
|
+
"user_message_chunk",
|
|
2341
|
+
]);
|
|
2342
|
+
/**
|
|
2343
|
+
* Notification containing a session update from the agent.
|
|
2344
|
+
*
|
|
2345
|
+
* Agents can send session updates at any point while the session exists.
|
|
2346
|
+
*
|
|
2347
|
+
* See protocol docs: [Agent Reports Output](https://agentclientprotocol.com/protocol/v2/draft/prompt-lifecycle#3-agent-reports-output)
|
|
2348
|
+
*/
|
|
2349
|
+
export const zUpdateSessionNotification = z.object({
|
|
2350
|
+
sessionId: zSessionId,
|
|
2351
|
+
update: zSessionUpdate,
|
|
2352
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2353
|
+
});
|
|
2354
|
+
/**
|
|
2355
|
+
* Notification sent by the agent when a URL-based elicitation is complete.
|
|
2356
|
+
*/
|
|
2357
|
+
export const zCompleteElicitationNotification = z.object({
|
|
2358
|
+
elicitationId: zElicitationId,
|
|
2359
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2360
|
+
});
|
|
2361
|
+
/**
|
|
2362
|
+
* **UNSTABLE**
|
|
2363
|
+
*
|
|
2364
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2365
|
+
*
|
|
2366
|
+
* Notification parameters for `mcp/message`.
|
|
2367
|
+
*
|
|
2368
|
+
* This is used when the wrapped MCP message is a notification and the outer JSON-RPC
|
|
2369
|
+
* envelope has no `id`.
|
|
2370
|
+
*
|
|
2371
|
+
* @experimental
|
|
2372
|
+
*/
|
|
2373
|
+
export const zMessageMcpNotification = z.object({
|
|
2374
|
+
connectionId: zMcpConnectionId,
|
|
2375
|
+
method: z.string(),
|
|
2376
|
+
params: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2377
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2378
|
+
});
|
|
2379
|
+
/**
|
|
2380
|
+
* Allows the Agent to send an arbitrary notification that is not part of the ACP spec.
|
|
2381
|
+
* Extension notifications provide a way to send one-way messages for custom functionality
|
|
2382
|
+
* while maintaining protocol compatibility.
|
|
2383
|
+
*
|
|
2384
|
+
* See protocol docs: [Extensibility](https://agentclientprotocol.com/protocol/v2/draft/extensibility)
|
|
2385
|
+
*/
|
|
2386
|
+
export const zExtNotification = z.unknown();
|
|
2387
|
+
/**
|
|
2388
|
+
* A JSON-RPC notification object.
|
|
2389
|
+
*/
|
|
2390
|
+
export const zAgentNotification = z.object({
|
|
2391
|
+
method: z.string(),
|
|
2392
|
+
params: z
|
|
2393
|
+
.union([
|
|
2394
|
+
zUpdateSessionNotification,
|
|
2395
|
+
zCompleteElicitationNotification,
|
|
2396
|
+
zMessageMcpNotification,
|
|
2397
|
+
zExtNotification,
|
|
2398
|
+
])
|
|
2399
|
+
.nullish(),
|
|
2400
|
+
});
|
|
2401
|
+
/**
|
|
2402
|
+
* Capabilities for terminal authentication methods.
|
|
2403
|
+
*
|
|
2404
|
+
* Supplying `{}` means the client can reproduce the configured agent
|
|
2405
|
+
* invocation in an interactive terminal and supports terminal authentication
|
|
2406
|
+
* methods.
|
|
2407
|
+
*/
|
|
2408
|
+
export const zTerminalAuthCapabilities = z.object({
|
|
2409
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2410
|
+
});
|
|
2411
|
+
/**
|
|
2412
|
+
* Authentication capabilities supported by the client.
|
|
2413
|
+
*
|
|
2414
|
+
* Advertised during initialization to inform the agent which authentication
|
|
2415
|
+
* method types the client can handle. This governs opt-in types that require
|
|
2416
|
+
* additional client-side support.
|
|
2417
|
+
*/
|
|
2418
|
+
export const zAuthCapabilities = z.object({
|
|
2419
|
+
terminal: defaultOnError(zTerminalAuthCapabilities.nullish(), () => undefined),
|
|
2420
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2421
|
+
});
|
|
2422
|
+
/**
|
|
2423
|
+
* Form-based elicitation capabilities.
|
|
2424
|
+
*
|
|
2425
|
+
* Supplying `{}` means the client supports form-based elicitation.
|
|
2426
|
+
*/
|
|
2427
|
+
export const zElicitationFormCapabilities = z.object({
|
|
2428
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2429
|
+
});
|
|
2430
|
+
/**
|
|
2431
|
+
* URL-based elicitation capabilities.
|
|
2432
|
+
*
|
|
2433
|
+
* Supplying `{}` means the client supports URL-based elicitation.
|
|
2434
|
+
*/
|
|
2435
|
+
export const zElicitationUrlCapabilities = z.object({
|
|
2436
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2437
|
+
});
|
|
2438
|
+
/**
|
|
2439
|
+
* Elicitation capabilities supported by the client.
|
|
2440
|
+
*/
|
|
2441
|
+
export const zElicitationCapabilities = z.object({
|
|
2442
|
+
form: defaultOnError(zElicitationFormCapabilities.nullish(), () => undefined),
|
|
2443
|
+
url: defaultOnError(zElicitationUrlCapabilities.nullish(), () => undefined),
|
|
2444
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2445
|
+
});
|
|
2446
|
+
/**
|
|
2447
|
+
* Marker for jump suggestion support.
|
|
2448
|
+
*/
|
|
2449
|
+
export const zNesJumpCapabilities = z.object({
|
|
2450
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2451
|
+
});
|
|
2452
|
+
/**
|
|
2453
|
+
* Marker for rename suggestion support.
|
|
2454
|
+
*/
|
|
2455
|
+
export const zNesRenameCapabilities = z.object({
|
|
2456
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2457
|
+
});
|
|
2458
|
+
/**
|
|
2459
|
+
* Marker for search and replace suggestion support.
|
|
2460
|
+
*/
|
|
2461
|
+
export const zNesSearchAndReplaceCapabilities = z.object({
|
|
2462
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2463
|
+
});
|
|
2464
|
+
/**
|
|
2465
|
+
* NES capabilities advertised by the client during initialization.
|
|
2466
|
+
*/
|
|
2467
|
+
export const zClientNesCapabilities = z.object({
|
|
2468
|
+
jump: defaultOnError(zNesJumpCapabilities.nullish(), () => undefined),
|
|
2469
|
+
rename: defaultOnError(zNesRenameCapabilities.nullish(), () => undefined),
|
|
2470
|
+
searchAndReplace: defaultOnError(zNesSearchAndReplaceCapabilities.nullish(), () => undefined),
|
|
2471
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2472
|
+
});
|
|
2473
|
+
/**
|
|
2474
|
+
* Capabilities supported by the client.
|
|
2475
|
+
*
|
|
2476
|
+
* Advertised during initialization to inform the agent about
|
|
2477
|
+
* available features and methods.
|
|
2478
|
+
*
|
|
2479
|
+
* See protocol docs: [Client Capabilities](https://agentclientprotocol.com/protocol/v2/draft/initialization#client-capabilities)
|
|
2480
|
+
*/
|
|
2481
|
+
export const zClientCapabilities = z.object({
|
|
2482
|
+
auth: defaultOnError(zAuthCapabilities.nullish(), () => undefined),
|
|
2483
|
+
elicitation: defaultOnError(zElicitationCapabilities.nullish(), () => undefined),
|
|
2484
|
+
nes: defaultOnError(zClientNesCapabilities.nullish(), () => undefined),
|
|
2485
|
+
positionEncodings: defaultOnError(vecSkipError(zPositionEncodingKind).optional(), () => []),
|
|
2486
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2487
|
+
});
|
|
2488
|
+
/**
|
|
2489
|
+
* Request parameters for the initialize method.
|
|
2490
|
+
*
|
|
2491
|
+
* Sent by the client to establish connection and negotiate capabilities.
|
|
2492
|
+
*
|
|
2493
|
+
* See protocol docs: [Initialization](https://agentclientprotocol.com/protocol/v2/draft/initialization)
|
|
2494
|
+
*/
|
|
2495
|
+
export const zInitializeRequest = z.object({
|
|
2496
|
+
protocolVersion: zProtocolVersion,
|
|
2497
|
+
info: zImplementation,
|
|
2498
|
+
capabilities: defaultOnError(zClientCapabilities.optional().default({}), () => ({})),
|
|
2499
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2500
|
+
});
|
|
2501
|
+
/**
|
|
2502
|
+
* Request parameters for the `auth/login` method.
|
|
2503
|
+
*
|
|
2504
|
+
* Specifies which authentication method to use.
|
|
2505
|
+
*
|
|
2506
|
+
* Agents MUST support this method when their `initialize` response advertised
|
|
2507
|
+
* at least one valid authentication method. Clients MUST NOT call this method
|
|
2508
|
+
* when `authMethods` was omitted or empty.
|
|
2509
|
+
*/
|
|
2510
|
+
export const zLoginAuthRequest = z.object({
|
|
2511
|
+
methodId: zAuthMethodId,
|
|
2512
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2513
|
+
});
|
|
2514
|
+
/**
|
|
2515
|
+
* **UNSTABLE**
|
|
2516
|
+
*
|
|
2517
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2518
|
+
*
|
|
2519
|
+
* Request parameters for `providers/list`.
|
|
2520
|
+
*
|
|
2521
|
+
* @experimental
|
|
2522
|
+
*/
|
|
2523
|
+
export const zListProvidersRequest = z.object({
|
|
2524
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2525
|
+
});
|
|
2526
|
+
/**
|
|
2527
|
+
* **UNSTABLE**
|
|
2528
|
+
*
|
|
2529
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2530
|
+
*
|
|
2531
|
+
* Request parameters for `providers/set`.
|
|
2532
|
+
*
|
|
2533
|
+
* Replaces the full configuration for one provider ID.
|
|
2534
|
+
*
|
|
2535
|
+
* @experimental
|
|
2536
|
+
*/
|
|
2537
|
+
export const zSetProviderRequest = z.object({
|
|
2538
|
+
providerId: zProviderId,
|
|
2539
|
+
apiType: zLlmProtocol,
|
|
2540
|
+
baseUrl: z.url(),
|
|
2541
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
2542
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2543
|
+
});
|
|
2544
|
+
/**
|
|
2545
|
+
* **UNSTABLE**
|
|
2546
|
+
*
|
|
2547
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2548
|
+
*
|
|
2549
|
+
* Request parameters for `providers/disable`.
|
|
2550
|
+
*
|
|
2551
|
+
* @experimental
|
|
2552
|
+
*/
|
|
2553
|
+
export const zDisableProviderRequest = z.object({
|
|
2554
|
+
providerId: zProviderId,
|
|
2555
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2556
|
+
});
|
|
2557
|
+
/**
|
|
2558
|
+
* Request parameters for the `auth/logout` method.
|
|
2559
|
+
*
|
|
2560
|
+
* Terminates the current authenticated session.
|
|
2561
|
+
*
|
|
2562
|
+
* Agents MUST support this method when their `initialize` response advertised
|
|
2563
|
+
* at least one valid authentication method. Clients MUST NOT call this method
|
|
2564
|
+
* when `authMethods` was omitted or empty.
|
|
2565
|
+
*/
|
|
2566
|
+
export const zLogoutAuthRequest = z.object({
|
|
2567
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2568
|
+
});
|
|
2569
|
+
/**
|
|
2570
|
+
* An HTTP header to set when making requests to the MCP server.
|
|
2571
|
+
*/
|
|
2572
|
+
export const zHttpHeader = z.object({
|
|
2573
|
+
name: z.string(),
|
|
2574
|
+
value: z.string(),
|
|
2575
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2576
|
+
});
|
|
2577
|
+
/**
|
|
2578
|
+
* HTTP transport configuration for MCP.
|
|
2579
|
+
*/
|
|
2580
|
+
export const zMcpServerHttp = z.object({
|
|
2581
|
+
name: z.string(),
|
|
2582
|
+
url: z.url(),
|
|
2583
|
+
headers: z.array(zHttpHeader).optional(),
|
|
2584
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2585
|
+
});
|
|
2586
|
+
/**
|
|
2587
|
+
* **UNSTABLE**
|
|
2588
|
+
*
|
|
2589
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2590
|
+
*
|
|
2591
|
+
* ACP transport configuration for MCP.
|
|
2592
|
+
*
|
|
2593
|
+
* The MCP server is provided by an ACP component and communicates over the ACP channel
|
|
2594
|
+
* using `mcp/connect`, `mcp/message`, and `mcp/disconnect`.
|
|
2595
|
+
*
|
|
2596
|
+
* @experimental
|
|
2597
|
+
*/
|
|
2598
|
+
export const zMcpServerAcp = z.object({
|
|
2599
|
+
name: z.string(),
|
|
2600
|
+
serverId: zMcpServerAcpId,
|
|
2601
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2602
|
+
});
|
|
2603
|
+
/**
|
|
2604
|
+
* Stdio transport configuration for MCP.
|
|
2605
|
+
*/
|
|
2606
|
+
export const zMcpServerStdio = z.object({
|
|
2607
|
+
name: z.string(),
|
|
2608
|
+
command: zAbsolutePath,
|
|
2609
|
+
args: z.array(z.string()).optional(),
|
|
2610
|
+
env: z.array(zEnvVariable).optional(),
|
|
2611
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2612
|
+
});
|
|
2613
|
+
/**
|
|
2614
|
+
* Configuration for connecting to an MCP (Model Context Protocol) server.
|
|
2615
|
+
*
|
|
2616
|
+
* MCP servers provide tools and context that the agent can use when
|
|
2617
|
+
* processing prompts.
|
|
2618
|
+
*
|
|
2619
|
+
* See protocol docs: [MCP Servers](https://agentclientprotocol.com/protocol/v2/draft/session-setup#mcp-servers)
|
|
2620
|
+
*
|
|
2621
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
2622
|
+
* properties exactly as received; unlike known variants, those keys
|
|
2623
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
2624
|
+
*/
|
|
2625
|
+
export const zMcpServer = preserveCustomPayload(z.union([
|
|
2626
|
+
zMcpServerHttp.and(z.object({
|
|
2627
|
+
type: z.literal("http"),
|
|
2628
|
+
})),
|
|
2629
|
+
zMcpServerAcp.and(z.object({
|
|
2630
|
+
type: z.literal("acp"),
|
|
2631
|
+
})),
|
|
2632
|
+
zMcpServerStdio.and(z.object({
|
|
2633
|
+
type: z.literal("stdio"),
|
|
2634
|
+
})),
|
|
2635
|
+
excludeKnownTags(z.object({
|
|
2636
|
+
type: z.string(),
|
|
2637
|
+
}), "type", ["acp", "http", "stdio"]),
|
|
2638
|
+
]), "type", ["acp", "http", "stdio"]);
|
|
2639
|
+
/**
|
|
2640
|
+
* Request parameters for creating a new session.
|
|
2641
|
+
*
|
|
2642
|
+
* See protocol docs: [Creating a Session](https://agentclientprotocol.com/protocol/v2/draft/session-setup#creating-a-session)
|
|
2643
|
+
*/
|
|
2644
|
+
export const zNewSessionRequest = z.object({
|
|
2645
|
+
cwd: zAbsolutePath,
|
|
2646
|
+
additionalDirectories: defaultOnError(vecSkipError(zAbsolutePath).optional(), () => []),
|
|
2647
|
+
mcpServers: defaultOnError(vecSkipError(zMcpServer).optional(), () => []),
|
|
2648
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2649
|
+
});
|
|
2650
|
+
/**
|
|
2651
|
+
* Request parameters for listing existing sessions.
|
|
2652
|
+
*/
|
|
2653
|
+
export const zListSessionsRequest = z.object({
|
|
2654
|
+
cwd: zAbsolutePath.nullish(),
|
|
2655
|
+
cursor: zSessionListCursor.nullish(),
|
|
2656
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2657
|
+
});
|
|
2658
|
+
/**
|
|
2659
|
+
* Request parameters for deleting an existing session from `session/list`.
|
|
2660
|
+
*
|
|
2661
|
+
* Only available if the Agent supports the `session.delete` capability.
|
|
2662
|
+
*/
|
|
2663
|
+
export const zDeleteSessionRequest = z.object({
|
|
2664
|
+
sessionId: zSessionId,
|
|
2665
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2666
|
+
});
|
|
2667
|
+
/**
|
|
2668
|
+
* **UNSTABLE**
|
|
2669
|
+
*
|
|
2670
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
2671
|
+
*
|
|
2672
|
+
* Request parameters for forking an existing session.
|
|
2673
|
+
*
|
|
2674
|
+
* Creates a new session based on the context of an existing one, allowing
|
|
2675
|
+
* operations like generating summaries without affecting the original session's history.
|
|
2676
|
+
*
|
|
2677
|
+
* Only available if the Agent supports the `session.fork` capability.
|
|
2678
|
+
*
|
|
2679
|
+
* @experimental
|
|
2680
|
+
*/
|
|
2681
|
+
export const zForkSessionRequest = z.object({
|
|
2682
|
+
sessionId: zSessionId,
|
|
2683
|
+
cwd: zAbsolutePath,
|
|
2684
|
+
additionalDirectories: defaultOnError(vecSkipError(zAbsolutePath).optional(), () => []),
|
|
2685
|
+
mcpServers: defaultOnError(vecSkipError(zMcpServer).optional(), () => []),
|
|
2686
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2687
|
+
});
|
|
2688
|
+
/**
|
|
2689
|
+
* Inclusive replay cursor requesting replay from the start of retained conversation history.
|
|
2690
|
+
*/
|
|
2691
|
+
export const zReplayFromStart = z.object({
|
|
2692
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2693
|
+
});
|
|
2694
|
+
/**
|
|
2695
|
+
* Inclusive cursor describing where replayed session history should begin.
|
|
2696
|
+
*
|
|
2697
|
+
* Replay includes the position identified by the cursor.
|
|
2698
|
+
*
|
|
2699
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
2700
|
+
* properties exactly as received; unlike known variants, those keys
|
|
2701
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
2702
|
+
*/
|
|
2703
|
+
export const zReplayFrom = preserveCustomPayload(z.union([
|
|
2704
|
+
zReplayFromStart.and(z.object({
|
|
2705
|
+
type: z.literal("start"),
|
|
2706
|
+
})),
|
|
2707
|
+
excludeKnownTags(z.object({
|
|
2708
|
+
type: z.string(),
|
|
2709
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2710
|
+
}), "type", ["start"]),
|
|
2711
|
+
]), "type", ["start"]);
|
|
2712
|
+
/**
|
|
2713
|
+
* Request parameters for resuming an existing session.
|
|
2714
|
+
*
|
|
2715
|
+
* Resumes an existing session and optionally replays retained conversation
|
|
2716
|
+
* history according to `replayFrom`.
|
|
2717
|
+
*/
|
|
2718
|
+
export const zResumeSessionRequest = z.object({
|
|
2719
|
+
sessionId: zSessionId,
|
|
2720
|
+
cwd: zAbsolutePath,
|
|
2721
|
+
additionalDirectories: defaultOnError(vecSkipError(zAbsolutePath).optional(), () => []),
|
|
2722
|
+
mcpServers: defaultOnError(vecSkipError(zMcpServer).optional(), () => []),
|
|
2723
|
+
replayFrom: defaultOnError(zReplayFrom.nullish(), () => undefined),
|
|
2724
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2725
|
+
});
|
|
2726
|
+
/**
|
|
2727
|
+
* Request parameters for closing an active session.
|
|
2728
|
+
*
|
|
2729
|
+
* The agent **must** cancel any ongoing work related to the session (treat it
|
|
2730
|
+
* as if `session/cancel` was called) and then free up any resources associated
|
|
2731
|
+
* with the session.
|
|
2732
|
+
*/
|
|
2733
|
+
export const zCloseSessionRequest = z.object({
|
|
2734
|
+
sessionId: zSessionId,
|
|
2735
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2736
|
+
});
|
|
2737
|
+
/**
|
|
2738
|
+
* Request parameters for setting a session configuration option.
|
|
2739
|
+
*
|
|
2740
|
+
* Custom variants (unknown `type` values) keep their extra
|
|
2741
|
+
* properties exactly as received; unlike known variants, those keys
|
|
2742
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
2743
|
+
*/
|
|
2744
|
+
export const zSetSessionConfigOptionRequest = preserveCustomPayload(z.intersection(z.union([
|
|
2745
|
+
z.object({
|
|
2746
|
+
value: zSessionConfigValueId,
|
|
2747
|
+
type: z.literal("id"),
|
|
2748
|
+
}),
|
|
2749
|
+
z.object({
|
|
2750
|
+
value: z.boolean(),
|
|
2751
|
+
type: z.literal("boolean"),
|
|
2752
|
+
}),
|
|
2753
|
+
excludeKnownTags(z.object({
|
|
2754
|
+
type: z.string(),
|
|
2755
|
+
value: z.unknown(),
|
|
2756
|
+
}), "type", ["boolean", "id"]),
|
|
2757
|
+
]), z.object({
|
|
2758
|
+
sessionId: zSessionId,
|
|
2759
|
+
configId: zSessionConfigId,
|
|
2760
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2761
|
+
})), "type", ["boolean", "id"]);
|
|
2762
|
+
/**
|
|
2763
|
+
* Request parameters for sending a user prompt to the agent.
|
|
2764
|
+
*
|
|
2765
|
+
* Contains the user's message and any additional context.
|
|
2766
|
+
*
|
|
2767
|
+
* See protocol docs: [User Message](https://agentclientprotocol.com/protocol/v2/draft/prompt-lifecycle#1-user-message)
|
|
2768
|
+
*/
|
|
2769
|
+
export const zPromptRequest = z.object({
|
|
2770
|
+
sessionId: zSessionId,
|
|
2771
|
+
prompt: z.array(zContentBlock),
|
|
2772
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2773
|
+
});
|
|
2774
|
+
/**
|
|
2775
|
+
* A workspace folder.
|
|
2776
|
+
*/
|
|
2777
|
+
export const zWorkspaceFolder = z.object({
|
|
2778
|
+
uri: z.url(),
|
|
2779
|
+
name: z.string(),
|
|
2780
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2781
|
+
});
|
|
2782
|
+
/**
|
|
2783
|
+
* Repository metadata for an NES session.
|
|
2784
|
+
*/
|
|
2785
|
+
export const zNesRepository = z.object({
|
|
2786
|
+
name: z.string(),
|
|
2787
|
+
owner: z.string(),
|
|
2788
|
+
remoteUrl: z.string(),
|
|
2789
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2790
|
+
});
|
|
2791
|
+
/**
|
|
2792
|
+
* Request to start an NES session.
|
|
2793
|
+
*/
|
|
2794
|
+
export const zStartNesRequest = z.object({
|
|
2795
|
+
workspaceUri: defaultOnError(z.url().nullish(), () => undefined),
|
|
2796
|
+
workspaceFolders: z.array(zWorkspaceFolder).nullish(),
|
|
2797
|
+
repository: defaultOnError(zNesRepository.nullish(), () => undefined),
|
|
2798
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2799
|
+
});
|
|
2800
|
+
/**
|
|
2801
|
+
* What triggered the suggestion request.
|
|
2802
|
+
*/
|
|
2803
|
+
export const zNesTriggerKind = z.union([
|
|
2804
|
+
z.literal("automatic"),
|
|
2805
|
+
z.literal("diagnostic"),
|
|
2806
|
+
z.literal("manual"),
|
|
2807
|
+
z.string(),
|
|
2808
|
+
]);
|
|
2809
|
+
/**
|
|
2810
|
+
* A recently accessed file.
|
|
2811
|
+
*/
|
|
2812
|
+
export const zNesRecentFile = z.object({
|
|
2813
|
+
uri: z.url(),
|
|
2814
|
+
languageId: z.string(),
|
|
2815
|
+
text: z.string(),
|
|
2816
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2817
|
+
});
|
|
2818
|
+
/**
|
|
2819
|
+
* A code excerpt from a file.
|
|
2820
|
+
*/
|
|
2821
|
+
export const zNesExcerpt = z.object({
|
|
2822
|
+
startLine: z.int().gte(0).max(4294967295, {
|
|
2823
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
2824
|
+
}),
|
|
2825
|
+
endLine: z.int().gte(0).max(4294967295, {
|
|
2826
|
+
error: "Invalid value: Expected uint32 to be <= 4294967295",
|
|
2827
|
+
}),
|
|
2828
|
+
text: z.string(),
|
|
2829
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2830
|
+
});
|
|
2831
|
+
/**
|
|
2832
|
+
* A related code snippet from a file.
|
|
2833
|
+
*/
|
|
2834
|
+
export const zNesRelatedSnippet = z.object({
|
|
2835
|
+
uri: z.url(),
|
|
2836
|
+
excerpts: z.array(zNesExcerpt),
|
|
2837
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2838
|
+
});
|
|
2839
|
+
/**
|
|
2840
|
+
* An entry in the edit history.
|
|
2841
|
+
*/
|
|
2842
|
+
export const zNesEditHistoryEntry = z.object({
|
|
2843
|
+
uri: z.url(),
|
|
2844
|
+
diff: z.string(),
|
|
2845
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2846
|
+
});
|
|
2847
|
+
/**
|
|
2848
|
+
* A user action (typing, cursor movement, etc.).
|
|
2849
|
+
*/
|
|
2850
|
+
export const zNesUserAction = z.object({
|
|
2851
|
+
action: z.string(),
|
|
2852
|
+
uri: z.url(),
|
|
2853
|
+
position: zPosition,
|
|
2854
|
+
timestampMs: z.number(),
|
|
2855
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2856
|
+
});
|
|
2857
|
+
/**
|
|
2858
|
+
* An open file in the editor.
|
|
2859
|
+
*/
|
|
2860
|
+
export const zNesOpenFile = z.object({
|
|
2861
|
+
uri: z.url(),
|
|
2862
|
+
languageId: z.string(),
|
|
2863
|
+
visibleRange: defaultOnError(zRange.nullish(), () => undefined),
|
|
2864
|
+
lastFocusedMs: defaultOnError(z.number().nullish(), () => undefined),
|
|
2865
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2866
|
+
});
|
|
2867
|
+
/**
|
|
2868
|
+
* Severity of a diagnostic.
|
|
2869
|
+
*/
|
|
2870
|
+
export const zNesDiagnosticSeverity = z.union([
|
|
2871
|
+
z.literal("error"),
|
|
2872
|
+
z.literal("warning"),
|
|
2873
|
+
z.literal("information"),
|
|
2874
|
+
z.literal("hint"),
|
|
2875
|
+
z.string(),
|
|
2876
|
+
]);
|
|
2877
|
+
/**
|
|
2878
|
+
* A diagnostic (error, warning, etc.).
|
|
2879
|
+
*/
|
|
2880
|
+
export const zNesDiagnostic = z.object({
|
|
2881
|
+
uri: z.url(),
|
|
2882
|
+
range: zRange,
|
|
2883
|
+
severity: zNesDiagnosticSeverity,
|
|
2884
|
+
message: z.string(),
|
|
2885
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2886
|
+
});
|
|
2887
|
+
/**
|
|
2888
|
+
* Context attached to a suggestion request.
|
|
2889
|
+
*/
|
|
2890
|
+
export const zNesSuggestContext = z.object({
|
|
2891
|
+
recentFiles: z.array(zNesRecentFile).nullish(),
|
|
2892
|
+
relatedSnippets: z.array(zNesRelatedSnippet).nullish(),
|
|
2893
|
+
editHistory: z.array(zNesEditHistoryEntry).nullish(),
|
|
2894
|
+
userActions: z.array(zNesUserAction).nullish(),
|
|
2895
|
+
openFiles: z.array(zNesOpenFile).nullish(),
|
|
2896
|
+
diagnostics: z.array(zNesDiagnostic).nullish(),
|
|
2897
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2898
|
+
});
|
|
2899
|
+
/**
|
|
2900
|
+
* Request for a code suggestion.
|
|
2901
|
+
*/
|
|
2902
|
+
export const zSuggestNesRequest = z.object({
|
|
2903
|
+
sessionId: zSessionId,
|
|
2904
|
+
uri: z.url(),
|
|
2905
|
+
version: z.number(),
|
|
2906
|
+
position: zPosition,
|
|
2907
|
+
selection: zRange.nullish(),
|
|
2908
|
+
triggerKind: zNesTriggerKind,
|
|
2909
|
+
context: zNesSuggestContext.nullish(),
|
|
2910
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2911
|
+
});
|
|
2912
|
+
/**
|
|
2913
|
+
* Request to close an NES session.
|
|
2914
|
+
*
|
|
2915
|
+
* The agent **must** cancel any ongoing work related to the NES session
|
|
2916
|
+
* and then free up any resources associated with the session.
|
|
2917
|
+
*/
|
|
2918
|
+
export const zCloseNesRequest = z.object({
|
|
2919
|
+
sessionId: zSessionId,
|
|
2920
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2921
|
+
});
|
|
2922
|
+
/**
|
|
2923
|
+
* A JSON-RPC request object.
|
|
2924
|
+
*/
|
|
2925
|
+
export const zClientRequest = z.object({
|
|
2926
|
+
id: zRequestId,
|
|
2927
|
+
method: z.string(),
|
|
2928
|
+
params: z
|
|
2929
|
+
.union([
|
|
2930
|
+
zInitializeRequest,
|
|
2931
|
+
zLoginAuthRequest,
|
|
2932
|
+
zListProvidersRequest,
|
|
2933
|
+
zSetProviderRequest,
|
|
2934
|
+
zDisableProviderRequest,
|
|
2935
|
+
zLogoutAuthRequest,
|
|
2936
|
+
zNewSessionRequest,
|
|
2937
|
+
zListSessionsRequest,
|
|
2938
|
+
zDeleteSessionRequest,
|
|
2939
|
+
zForkSessionRequest,
|
|
2940
|
+
zResumeSessionRequest,
|
|
2941
|
+
zCloseSessionRequest,
|
|
2942
|
+
zSetSessionConfigOptionRequest,
|
|
2943
|
+
zPromptRequest,
|
|
2944
|
+
zStartNesRequest,
|
|
2945
|
+
zSuggestNesRequest,
|
|
2946
|
+
zCloseNesRequest,
|
|
2947
|
+
zMessageMcpRequest,
|
|
2948
|
+
zExtRequest,
|
|
2949
|
+
])
|
|
2950
|
+
.nullish(),
|
|
2951
|
+
});
|
|
2952
|
+
/**
|
|
2953
|
+
* The user selected one of the provided options.
|
|
2954
|
+
*/
|
|
2955
|
+
export const zSelectedPermissionOutcome = z.object({
|
|
2956
|
+
optionId: zPermissionOptionId,
|
|
2957
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2958
|
+
});
|
|
2959
|
+
/**
|
|
2960
|
+
* The outcome of a permission request.
|
|
2961
|
+
*
|
|
2962
|
+
* Custom variants (unknown `outcome` values) keep their extra
|
|
2963
|
+
* properties exactly as received; unlike known variants, those keys
|
|
2964
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
2965
|
+
*/
|
|
2966
|
+
export const zRequestPermissionOutcome = preserveCustomPayload(z.union([
|
|
2967
|
+
z.object({
|
|
2968
|
+
outcome: z.literal("cancelled"),
|
|
2969
|
+
}),
|
|
2970
|
+
zSelectedPermissionOutcome.and(z.object({
|
|
2971
|
+
outcome: z.literal("selected"),
|
|
2972
|
+
})),
|
|
2973
|
+
excludeKnownTags(z.object({
|
|
2974
|
+
outcome: z.string(),
|
|
2975
|
+
}), "outcome", ["cancelled", "selected"]),
|
|
2976
|
+
]), "outcome", ["cancelled", "selected"]);
|
|
2977
|
+
/**
|
|
2978
|
+
* Response to a permission request.
|
|
2979
|
+
*/
|
|
2980
|
+
export const zRequestPermissionResponse = z.object({
|
|
2981
|
+
outcome: zRequestPermissionOutcome,
|
|
2982
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
2983
|
+
});
|
|
2984
|
+
/**
|
|
2985
|
+
* Allowed wire representations for [`ElicitationContentValue`].
|
|
2986
|
+
*/
|
|
2987
|
+
export const zElicitationContentValue = z.union([
|
|
2988
|
+
z.string(),
|
|
2989
|
+
z.number(),
|
|
2990
|
+
z.number(),
|
|
2991
|
+
z.boolean(),
|
|
2992
|
+
z.array(z.string()),
|
|
2993
|
+
]);
|
|
2994
|
+
/**
|
|
2995
|
+
* The user accepted the elicitation and provided content.
|
|
2996
|
+
*/
|
|
2997
|
+
export const zElicitationAcceptAction = z.object({
|
|
2998
|
+
content: z.record(z.string(), zElicitationContentValue).nullish(),
|
|
2999
|
+
});
|
|
3000
|
+
/**
|
|
3001
|
+
* Response from the client to an elicitation request.
|
|
3002
|
+
*
|
|
3003
|
+
* Custom variants (unknown `action` values) keep their extra
|
|
3004
|
+
* properties exactly as received; unlike known variants, those keys
|
|
3005
|
+
* bypass lenient-field salvage and arrive unvalidated.
|
|
3006
|
+
*/
|
|
3007
|
+
export const zCreateElicitationResponse = preserveCustomPayload(z.intersection(z.union([
|
|
3008
|
+
zElicitationAcceptAction.and(z.object({
|
|
3009
|
+
action: z.literal("accept"),
|
|
3010
|
+
})),
|
|
3011
|
+
z.object({
|
|
3012
|
+
action: z.literal("decline"),
|
|
3013
|
+
}),
|
|
3014
|
+
z.object({
|
|
3015
|
+
action: z.literal("cancel"),
|
|
3016
|
+
}),
|
|
3017
|
+
excludeKnownTags(z.object({
|
|
3018
|
+
action: z.string(),
|
|
3019
|
+
}), "action", ["accept", "cancel", "decline"]),
|
|
3020
|
+
]), z.object({
|
|
3021
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3022
|
+
})), "action", ["accept", "cancel", "decline"]);
|
|
3023
|
+
/**
|
|
3024
|
+
* **UNSTABLE**
|
|
3025
|
+
*
|
|
3026
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
3027
|
+
*
|
|
3028
|
+
* Response to `mcp/connect`.
|
|
3029
|
+
*
|
|
3030
|
+
* @experimental
|
|
3031
|
+
*/
|
|
3032
|
+
export const zConnectMcpResponse = z.object({
|
|
3033
|
+
connectionId: zMcpConnectionId,
|
|
3034
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3035
|
+
});
|
|
3036
|
+
/**
|
|
3037
|
+
* **UNSTABLE**
|
|
3038
|
+
*
|
|
3039
|
+
* This capability is not part of the spec yet, and may be removed or changed at any point.
|
|
3040
|
+
*
|
|
3041
|
+
* Response to `mcp/disconnect`.
|
|
3042
|
+
*
|
|
3043
|
+
* @experimental
|
|
3044
|
+
*/
|
|
3045
|
+
export const zDisconnectMcpResponse = z.object({
|
|
3046
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3047
|
+
});
|
|
3048
|
+
/**
|
|
3049
|
+
* A JSON-RPC response object.
|
|
3050
|
+
*/
|
|
3051
|
+
export const zClientResponse = z.union([
|
|
3052
|
+
z.object({
|
|
3053
|
+
id: zRequestId,
|
|
3054
|
+
result: z.union([
|
|
3055
|
+
zRequestPermissionResponse,
|
|
3056
|
+
zCreateElicitationResponse,
|
|
3057
|
+
zConnectMcpResponse,
|
|
3058
|
+
zDisconnectMcpResponse,
|
|
3059
|
+
zMessageMcpResponse,
|
|
3060
|
+
zExtResponse,
|
|
3061
|
+
]),
|
|
3062
|
+
}),
|
|
3063
|
+
z.object({
|
|
3064
|
+
id: zRequestId,
|
|
3065
|
+
error: zError,
|
|
3066
|
+
}),
|
|
3067
|
+
]);
|
|
3068
|
+
/**
|
|
3069
|
+
* Notification to cancel ongoing operations for a session.
|
|
3070
|
+
*
|
|
3071
|
+
* See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/v2/draft/prompt-lifecycle#cancellation)
|
|
3072
|
+
*/
|
|
3073
|
+
export const zCancelSessionNotification = z.object({
|
|
3074
|
+
sessionId: zSessionId,
|
|
3075
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3076
|
+
});
|
|
3077
|
+
/**
|
|
3078
|
+
* Notification sent when a file is opened in the editor.
|
|
3079
|
+
*/
|
|
3080
|
+
export const zDidOpenDocumentNotification = z.object({
|
|
3081
|
+
sessionId: zSessionId,
|
|
3082
|
+
uri: z.url(),
|
|
3083
|
+
languageId: z.string(),
|
|
3084
|
+
version: z.number(),
|
|
3085
|
+
text: z.string(),
|
|
3086
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3087
|
+
});
|
|
3088
|
+
/**
|
|
3089
|
+
* A content change event for a document.
|
|
3090
|
+
*
|
|
3091
|
+
* When `range` is `None`, `text` is the full content of the document.
|
|
3092
|
+
* When `range` is `Some`, `text` replaces the given range.
|
|
3093
|
+
*/
|
|
3094
|
+
export const zTextDocumentContentChangeEvent = z.object({
|
|
3095
|
+
range: zRange.nullish(),
|
|
3096
|
+
text: z.string(),
|
|
3097
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3098
|
+
});
|
|
3099
|
+
/**
|
|
3100
|
+
* Notification sent when a file is edited.
|
|
3101
|
+
*/
|
|
3102
|
+
export const zDidChangeDocumentNotification = z.object({
|
|
3103
|
+
sessionId: zSessionId,
|
|
3104
|
+
uri: z.url(),
|
|
3105
|
+
version: z.number(),
|
|
3106
|
+
contentChanges: requiredDefaultOnError(vecSkipError(zTextDocumentContentChangeEvent), () => []),
|
|
3107
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3108
|
+
});
|
|
3109
|
+
/**
|
|
3110
|
+
* Notification sent when a file is closed.
|
|
3111
|
+
*/
|
|
3112
|
+
export const zDidCloseDocumentNotification = z.object({
|
|
3113
|
+
sessionId: zSessionId,
|
|
3114
|
+
uri: z.url(),
|
|
3115
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3116
|
+
});
|
|
3117
|
+
/**
|
|
3118
|
+
* Notification sent when a file is saved.
|
|
3119
|
+
*/
|
|
3120
|
+
export const zDidSaveDocumentNotification = z.object({
|
|
3121
|
+
sessionId: zSessionId,
|
|
3122
|
+
uri: z.url(),
|
|
3123
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3124
|
+
});
|
|
3125
|
+
/**
|
|
3126
|
+
* Notification sent when a file becomes the active editor tab.
|
|
3127
|
+
*/
|
|
3128
|
+
export const zDidFocusDocumentNotification = z.object({
|
|
3129
|
+
sessionId: zSessionId,
|
|
3130
|
+
uri: z.url(),
|
|
3131
|
+
version: z.number(),
|
|
3132
|
+
position: zPosition,
|
|
3133
|
+
visibleRange: zRange,
|
|
3134
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3135
|
+
});
|
|
3136
|
+
/**
|
|
3137
|
+
* Notification sent when a suggestion is accepted.
|
|
3138
|
+
*/
|
|
3139
|
+
export const zAcceptNesNotification = z.object({
|
|
3140
|
+
sessionId: zSessionId,
|
|
3141
|
+
suggestionId: zNesSuggestionId,
|
|
3142
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3143
|
+
});
|
|
3144
|
+
/**
|
|
3145
|
+
* The reason a suggestion was rejected.
|
|
3146
|
+
*/
|
|
3147
|
+
export const zNesRejectReason = z.union([
|
|
3148
|
+
z.literal("rejected"),
|
|
3149
|
+
z.literal("ignored"),
|
|
3150
|
+
z.literal("replaced"),
|
|
3151
|
+
z.literal("cancelled"),
|
|
3152
|
+
z.string(),
|
|
3153
|
+
]);
|
|
3154
|
+
/**
|
|
3155
|
+
* Notification sent when a suggestion is rejected.
|
|
3156
|
+
*/
|
|
3157
|
+
export const zRejectNesNotification = z.object({
|
|
3158
|
+
sessionId: zSessionId,
|
|
3159
|
+
suggestionId: zNesSuggestionId,
|
|
3160
|
+
reason: defaultOnError(zNesRejectReason.nullish(), () => undefined),
|
|
3161
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3162
|
+
});
|
|
3163
|
+
/**
|
|
3164
|
+
* A JSON-RPC notification object.
|
|
3165
|
+
*/
|
|
3166
|
+
export const zClientNotification = z.object({
|
|
3167
|
+
method: z.string(),
|
|
3168
|
+
params: z
|
|
3169
|
+
.union([
|
|
3170
|
+
zCancelSessionNotification,
|
|
3171
|
+
zDidOpenDocumentNotification,
|
|
3172
|
+
zDidChangeDocumentNotification,
|
|
3173
|
+
zDidCloseDocumentNotification,
|
|
3174
|
+
zDidSaveDocumentNotification,
|
|
3175
|
+
zDidFocusDocumentNotification,
|
|
3176
|
+
zAcceptNesNotification,
|
|
3177
|
+
zRejectNesNotification,
|
|
3178
|
+
zMessageMcpNotification,
|
|
3179
|
+
zExtNotification,
|
|
3180
|
+
])
|
|
3181
|
+
.nullish(),
|
|
3182
|
+
});
|
|
3183
|
+
/**
|
|
3184
|
+
* Notification to cancel an ongoing request.
|
|
3185
|
+
*
|
|
3186
|
+
* See protocol docs: [Cancellation](https://agentclientprotocol.com/protocol/v2/draft/cancellation)
|
|
3187
|
+
*/
|
|
3188
|
+
export const zCancelRequestNotification = z.object({
|
|
3189
|
+
requestId: zRequestId,
|
|
3190
|
+
_meta: defaultOnError(z.record(z.string(), z.unknown()).nullish(), () => undefined),
|
|
3191
|
+
});
|
|
3192
|
+
/**
|
|
3193
|
+
* A JSON-RPC notification object.
|
|
3194
|
+
*/
|
|
3195
|
+
export const zProtocolLevelNotification = z.object({
|
|
3196
|
+
method: z.string(),
|
|
3197
|
+
params: zCancelRequestNotification.nullish(),
|
|
3198
|
+
});
|
|
3199
|
+
//# sourceMappingURL=zod.gen.js.map
|