@capybara-hq/device 0.1.0-rc.13 → 0.1.0-rc.14
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 +34 -0
- package/dist/args.d.ts +12 -2
- package/dist/args.js +35 -0
- package/dist/boot-id.d.ts +17 -0
- package/dist/boot-id.js +43 -0
- package/dist/cli.d.ts +5 -0
- package/dist/cli.js +38 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.js +15 -3
- package/dist/commands/ceiling.d.ts +28 -0
- package/dist/commands/ceiling.js +120 -0
- package/dist/commands/login.js +18 -4
- package/dist/commands/mode.js +7 -3
- package/dist/commands/policy.js +3 -3
- package/dist/commands/start.d.ts +16 -1
- package/dist/commands/start.js +73 -8
- package/dist/commands/status.js +2 -2
- package/dist/exec/docker-operations.d.ts +44 -0
- package/dist/exec/docker-operations.js +288 -0
- package/dist/exec/docker.d.ts +11 -0
- package/dist/exec/docker.js +22 -1
- package/dist/exec/instance-binding.d.ts +107 -0
- package/dist/exec/instance-binding.js +267 -0
- package/dist/exec/linux-agent.d.ts +27 -0
- package/dist/exec/linux-agent.js +866 -0
- package/dist/exec/linux-operation-backend.d.ts +60 -0
- package/dist/exec/linux-operation-backend.js +85 -0
- package/dist/exec/linux-operation-worker.d.ts +33 -0
- package/dist/exec/linux-operation-worker.js +304 -0
- package/dist/exec/linux-runtime.d.ts +80 -0
- package/dist/exec/linux-runtime.js +181 -0
- package/dist/exec/mac-operation-backend.d.ts +113 -0
- package/dist/exec/mac-operation-backend.js +370 -0
- package/dist/exec/mac-self-check.d.ts +37 -0
- package/dist/exec/mac-self-check.js +163 -0
- package/dist/exec/mac-write-policy.d.ts +34 -0
- package/dist/exec/mac-write-policy.js +194 -0
- package/dist/exec/native-helper-client.d.ts +46 -0
- package/dist/exec/native-helper-client.js +204 -0
- package/dist/exec/operation-supervisor.d.ts +187 -0
- package/dist/exec/operation-supervisor.js +1307 -0
- package/dist/exec/operation-types.d.ts +55 -0
- package/dist/exec/operation-types.js +164 -0
- package/dist/exec/operation-worker.d.ts +83 -0
- package/dist/exec/operation-worker.js +649 -0
- package/dist/exec/output-spool-helper.d.ts +2 -0
- package/dist/exec/output-spool-helper.js +149 -0
- package/dist/exec/output-spool.d.ts +72 -0
- package/dist/exec/output-spool.js +324 -0
- package/dist/exec/runtime-manifest.d.ts +115 -0
- package/dist/exec/runtime-manifest.js +642 -0
- package/dist/exec/runtime-source.d.ts +87 -0
- package/dist/exec/runtime-source.js +305 -0
- package/dist/exec/switch.js +6 -5
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.md +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/CAPYBARA-MODIFICATIONS.patch +70 -0
- package/{LICENSE → dist/node_modules/@anthropic-ai/sandbox-runtime/LICENSE} +1 -2
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/README.md +1288 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js +527 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/cli.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts +22 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js +20 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/index.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts +4 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js +119 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-cli.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js +5 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/proxy-main.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts +52 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js +153 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/address.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts +168 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js +250 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/aws-sigv4.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts +58 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js +128 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/body-substitution.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts +124 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js +258 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-aws-pairs.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts +87 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js +138 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-decode.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts +67 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js +113 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-extract.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts +70 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js +171 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-env.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts +121 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js +282 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-mask-files.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts +108 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js +208 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/credential-sentinel.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts +130 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js +780 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/decider-client.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts +106 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js +221 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/domain-pattern.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts +98 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js +194 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/emitted-connection.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts +44 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js +220 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/generate-seccomp-filter.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts +89 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js +230 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/glob-pattern.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts +316 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js +920 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/http-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts +32 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js +111 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/java-proxy-agent.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts +348 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js +3147 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts +55 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js +152 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/linux-violation-monitor.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts +12 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js +43 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/listen-in-range.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts +117 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js +1286 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/macos-sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts +209 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js +464 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-ca.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts +28 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js +139 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mitm-leaf.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts +64 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js +182 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/mux-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts +13 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js +32 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/own-files.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts +179 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js +510 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/parent-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts +133 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js +340 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/path-entries.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts +99 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js +259 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/proxy-only.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts +28 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js +176 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/read-deny-glob.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts +332 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js +754 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/request-filter.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts +76 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js +221 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/resolved-address-guard.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts +1967 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js +1311 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-config.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts +188 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js +2646 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-manager.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts +158 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js +3 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-schemas.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts +479 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js +1637 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts +50 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js +143 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/sandbox-violation-store.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts +67 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js +345 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/socks-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts +212 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js +1174 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/tls-terminate-proxy.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts +1615 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js +2848 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/sandbox/windows-sandbox-utils.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts +31 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js +69 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/config-loader.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts +7 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js +25 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/debug.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts +15 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js +49 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/platform.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts +35 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js +106 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/real-path.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts +29 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js +51 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/ripgrep.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts +27 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js +47 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/shell-quote.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts +9 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.d.ts.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js +25 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/dist/utils/which.js.map +1 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/package.json +90 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/build.ts +95 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/arm64/apply-seccomp +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/build.ts +73 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/seccomp/x64/apply-seccomp +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/arm64/srt-win.exe +0 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/build.ts +28 -0
- package/dist/node_modules/@anthropic-ai/sandbox-runtime/vendor/srt-win/x64/srt-win.exe +0 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/NOTICE +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/README.md +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/agent-templates.md +59 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/concepts.md +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/connector-templates.md +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/channel.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/config-source.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/connector.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/context.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/counter.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/directory.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/file-preview.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/identity-source.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/model-provider.md +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/object-store.md +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/sandbox.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/secret-store.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-fetch.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extension-points/web-search.md +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/extensions.md +88 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/plugin-format.md +100 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/setup.md +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/skills.md +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/agent-docs/tool-naming.md +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.d.ts +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/agent-template.js +501 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.d.ts +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/bootstrap.js +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.d.ts +107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/cards.js +287 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.d.ts +293 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/channel.js +31 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.d.ts +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-css.js +326 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.d.ts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/client-section.js +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.d.ts +153 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/config-ui.js +662 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.d.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector-auth.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.d.ts +196 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/connector.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.d.ts +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/context.js +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.d.ts +287 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ctx.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.d.ts +55 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/define-extension.js +92 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol-v3.d.ts +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol-v3.js +409 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.d.ts +330 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/device-protocol.js +567 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.d.ts +38 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/directory.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.d.ts +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/extension-point.js +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.d.ts +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/file-preview.js +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.d.ts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/frontmatter.js +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.d.ts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/git-hosts.js +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.d.ts +295 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/hooks.js +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.d.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/http-access.js +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.d.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/identity.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.d.ts +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/index.js +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.d.ts +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/marketplace.js +326 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.d.ts +101 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model-params.js +235 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.d.ts +336 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/model.js +204 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.d.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/net.js +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.d.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/org-access.js +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.d.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/permissions.js +328 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.d.ts +204 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-manifest.js +504 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.d.ts +183 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/plugin-package.js +480 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-linux-runtime-source.js +1886 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-native-runtime-source.js +325 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.d.ts +248 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-operation.js +245 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.d.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-runtime-source.js +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.d.ts +60 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox-write-denies.js +630 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.d.ts +417 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/sandbox.js +195 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.d.ts +11 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/secret.js +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.d.ts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/semver-range.js +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.d.ts +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-check.js +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.d.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-parse.js +350 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.d.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide-render.js +351 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.d.ts +94 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/setup-guide.js +336 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.d.ts +87 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-invocation.js +211 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.d.ts +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill-keys.js +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.d.ts +107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/skill.js +283 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.d.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/storage.js +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.d.ts +39 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-assets.js +449 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.d.ts +37 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-readability.js +145 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.d.ts +279 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme-tokens.generated.js +174 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.d.ts +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/theme.js +392 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.d.ts +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool-key.js +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.d.ts +205 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/tool.js +238 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.d.ts +23 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-parts.js +337 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.d.ts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-resolve.js +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.d.ts +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui-slots.js +238 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.d.ts +385 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/ui.js +432 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/url.js +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.d.ts +105 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/dist/web.js +135 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/README.md +218 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.cjs +96 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/compile.js +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.cjs +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/index.js +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.cjs +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/index.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/locales/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/index.js +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/mini/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/package.json +147 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/compile.ts +56 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/index.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/locales/index.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/mini/index.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v3/types.ts +5138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/core.ts +230 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/index.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/schemas.ts +5226 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/util.ts +1293 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.cjs +167 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/ZodError.js +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.cjs +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.cjs +41 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.cjs +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.cjs +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.cjs +3798 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.cts +1034 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.d.ts +1034 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v3/types.js +3697 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/compat.js +31 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/errors.js +57 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.cjs +97 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/external.js +17 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/in-out.js +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.cjs +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/iso.js +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/parse.js +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.cjs +1269 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.cts +335 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.d.ts +335 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/api.js +1107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.cjs +561 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/checks.js +516 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/compile.js +1866 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.cjs +167 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.cts +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.d.ts +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/core.js +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.cjs +61 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/doc.js +38 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.cjs +317 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/errors.js +267 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.cjs +70 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.cts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.d.ts +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/index.js +19 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/memoizer.js +311 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.cjs +233 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/parse.js +175 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/regexes.js +156 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.cjs +75 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.cjs +2699 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.cts +1275 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.d.ts +1275 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/schemas.js +2636 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.cjs +964 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.cts +280 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.d.ts +280 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/util.js +873 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.cjs +27 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.cjs +214 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/core/visit.js +169 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/index.js +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ar.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.cjs +137 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/az.js +110 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.cjs +195 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/be.js +168 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bg.js +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/bn.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ca.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ckb.js +133 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/cs.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.cjs +147 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/da.js +120 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/de.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/el.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.cjs +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/en.js +125 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/eo.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.cjs +163 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/es.js +136 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fa.js +119 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fi.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/fr.js +129 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/gu.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.cjs +248 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/he.js +221 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hi.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hr.js +126 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hu.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/hy.js +158 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/id.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.cjs +152 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/index.js +63 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/is.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/it.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ja.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ka.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kh.js +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/km.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/kn.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ko.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/lt.js +207 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/mk.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ms.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ne.js +111 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nl.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/nn.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/no.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ota.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pl.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ps.js +119 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/pt.js +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ro.js +122 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ru.js +168 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sk.js +116 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sl.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/sv.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ta.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tg.js +117 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/th.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tk.js +107 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/tr.js +110 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ua.js +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uk.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/ur.js +115 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/uz.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/vi.js +113 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/yo.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/coerce.js +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.cjs +95 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/external.js +16 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/in-out.js +36 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/iso.js +34 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.cjs +51 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/index.js +3 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/node_modules/zod/v4-mini/package.json +7 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/package.json +61 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/bootstrap.v1.schema.json +131 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/connector-template.v1.schema.json +151 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/marketplace.v1.schema.json +320 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/plugin.v1.schema.json +487 -0
- package/dist/node_modules/@capybara-hq/plugin-sdk/schemas/theme.v1.schema.json +225 -0
- package/dist/node_modules/@pondwader/socks5-server/.github/workflows/ci.yml +27 -0
- package/dist/node_modules/@pondwader/socks5-server/LICENSE +20 -0
- package/dist/node_modules/@pondwader/socks5-server/README.md +151 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.d.mts +87 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.d.ts +87 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.js +346 -0
- package/dist/node_modules/@pondwader/socks5-server/dist/index.mjs +307 -0
- package/dist/node_modules/@pondwader/socks5-server/package.json +31 -0
- package/dist/node_modules/@types/debug/LICENSE +21 -0
- package/dist/node_modules/@types/debug/README.md +69 -0
- package/dist/node_modules/@types/debug/index.d.ts +50 -0
- package/dist/node_modules/@types/debug/package.json +58 -0
- package/dist/node_modules/@types/mdast/LICENSE +21 -0
- package/dist/node_modules/@types/mdast/README.md +15 -0
- package/dist/node_modules/@types/mdast/index.d.ts +1123 -0
- package/dist/node_modules/@types/mdast/package.json +47 -0
- package/dist/node_modules/@types/ms/LICENSE +21 -0
- package/dist/node_modules/@types/ms/README.md +82 -0
- package/dist/node_modules/@types/ms/index.d.ts +63 -0
- package/dist/node_modules/@types/ms/package.json +26 -0
- package/dist/node_modules/@types/unist/LICENSE +21 -0
- package/dist/node_modules/@types/unist/README.md +15 -0
- package/dist/node_modules/@types/unist/index.d.ts +119 -0
- package/dist/node_modules/@types/unist/package.json +60 -0
- package/dist/node_modules/ccount/index.d.ts +11 -0
- package/dist/node_modules/ccount/index.js +27 -0
- package/dist/node_modules/ccount/license +22 -0
- package/dist/node_modules/ccount/package.json +71 -0
- package/dist/node_modules/ccount/readme.md +149 -0
- package/dist/node_modules/character-entities/index.d.ts +6 -0
- package/dist/node_modules/character-entities/index.js +2132 -0
- package/dist/node_modules/character-entities/license +22 -0
- package/dist/node_modules/character-entities/package.json +78 -0
- package/dist/node_modules/character-entities/readme.md +152 -0
- package/dist/node_modules/commander/LICENSE +22 -0
- package/dist/node_modules/commander/Readme.md +1157 -0
- package/dist/node_modules/commander/esm.mjs +16 -0
- package/dist/node_modules/commander/index.js +24 -0
- package/dist/node_modules/commander/lib/argument.js +149 -0
- package/dist/node_modules/commander/lib/command.js +2509 -0
- package/dist/node_modules/commander/lib/error.js +39 -0
- package/dist/node_modules/commander/lib/help.js +520 -0
- package/dist/node_modules/commander/lib/option.js +330 -0
- package/dist/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/dist/node_modules/commander/package-support.json +16 -0
- package/dist/node_modules/commander/package.json +84 -0
- package/dist/node_modules/commander/typings/esm.d.mts +3 -0
- package/dist/node_modules/commander/typings/index.d.ts +969 -0
- package/dist/node_modules/debug/LICENSE +20 -0
- package/dist/node_modules/debug/README.md +481 -0
- package/dist/node_modules/debug/package.json +64 -0
- package/dist/node_modules/debug/src/browser.js +272 -0
- package/dist/node_modules/debug/src/common.js +292 -0
- package/dist/node_modules/debug/src/index.js +10 -0
- package/dist/node_modules/debug/src/node.js +263 -0
- package/dist/node_modules/decode-named-character-reference/index.d.ts +13 -0
- package/dist/node_modules/decode-named-character-reference/index.d.ts.map +1 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.d.ts +6 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.d.ts.map +1 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +32 -0
- package/dist/node_modules/decode-named-character-reference/index.js +19 -0
- package/dist/node_modules/decode-named-character-reference/license +22 -0
- package/dist/node_modules/decode-named-character-reference/package.json +90 -0
- package/dist/node_modules/decode-named-character-reference/readme.md +136 -0
- package/dist/node_modules/dequal/dist/index.js +86 -0
- package/dist/node_modules/dequal/dist/index.min.js +1 -0
- package/dist/node_modules/dequal/dist/index.mjs +84 -0
- package/dist/node_modules/dequal/index.d.ts +1 -0
- package/dist/node_modules/dequal/license +21 -0
- package/dist/node_modules/dequal/lite/index.d.ts +1 -0
- package/dist/node_modules/dequal/lite/index.js +31 -0
- package/dist/node_modules/dequal/lite/index.min.js +1 -0
- package/dist/node_modules/dequal/lite/index.mjs +29 -0
- package/dist/node_modules/dequal/package.json +57 -0
- package/dist/node_modules/dequal/readme.md +112 -0
- package/dist/node_modules/devlop/lib/default.js +9 -0
- package/dist/node_modules/devlop/lib/development.d.ts +84 -0
- package/dist/node_modules/devlop/lib/development.js +238 -0
- package/dist/node_modules/devlop/license +22 -0
- package/dist/node_modules/devlop/package.json +80 -0
- package/dist/node_modules/devlop/readme.md +360 -0
- package/dist/node_modules/escape-string-regexp/index.d.ts +16 -0
- package/dist/node_modules/escape-string-regexp/index.js +11 -0
- package/dist/node_modules/escape-string-regexp/license +9 -0
- package/dist/node_modules/escape-string-regexp/package.json +40 -0
- package/dist/node_modules/escape-string-regexp/readme.md +34 -0
- package/dist/node_modules/kysely/LICENSE +21 -0
- package/dist/node_modules/kysely/README.md +242 -0
- package/dist/node_modules/kysely/dist/dialect/database-introspector.d.ts +50 -0
- package/dist/node_modules/kysely/dist/dialect/database-introspector.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.d.ts +79 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter-base.js +24 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter.d.ts +131 -0
- package/dist/node_modules/kysely/dist/dialect/dialect-adapter.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/dialect.d.ts +34 -0
- package/dist/node_modules/kysely/dist/dialect/dialect.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.d.ts +72 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-adapter.js +31 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.d.ts +171 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.d.ts +70 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-dialect.js +62 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.d.ts +60 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-driver.js +358 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-introspector.js +103 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.d.ts +17 -0
- package/dist/node_modules/kysely/dist/dialect/mssql/mssql-query-compiler.js +89 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.d.ts +71 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-adapter.js +25 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.d.ts +71 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.d.ts +61 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-dialect.js +53 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.d.ts +56 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-driver.js +252 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-introspector.js +73 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.d.ts +27 -0
- package/dist/node_modules/kysely/dist/dialect/mysql/mysql-query-compiler.js +77 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.d.ts +68 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-adapter.js +17 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.d.ts +58 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.d.ts +55 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-dialect.js +47 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.d.ts +57 -0
- package/dist/node_modules/kysely/dist/dialect/pglite/pglite-driver.js +119 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.d.ts +71 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-adapter.js +28 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.d.ts +123 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.d.ts +61 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-dialect.js +53 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.d.ts +61 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-driver.js +198 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-introspector.js +102 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.d.ts +4 -0
- package/dist/node_modules/kysely/dist/dialect/postgres/postgres-query-compiler.js +8 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.d.ts +72 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-adapter.js +23 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.d.ts +42 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect-config.js +2 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.d.ts +55 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-dialect.js +48 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.d.ts +43 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-driver.js +84 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.d.ts +14 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-introspector.js +87 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.d.ts +15 -0
- package/dist/node_modules/kysely/dist/dialect/sqlite/sqlite-query-compiler.js +38 -0
- package/dist/node_modules/kysely/dist/driver/connection-mutex.d.ts +12 -0
- package/dist/node_modules/kysely/dist/driver/connection-mutex.js +26 -0
- package/dist/node_modules/kysely/dist/driver/connection-provider.d.ts +9 -0
- package/dist/node_modules/kysely/dist/driver/connection-provider.js +2 -0
- package/dist/node_modules/kysely/dist/driver/database-connection.d.ts +49 -0
- package/dist/node_modules/kysely/dist/driver/database-connection.js +2 -0
- package/dist/node_modules/kysely/dist/driver/default-connection-provider.d.ts +13 -0
- package/dist/node_modules/kysely/dist/driver/default-connection-provider.js +16 -0
- package/dist/node_modules/kysely/dist/driver/driver.d.ts +62 -0
- package/dist/node_modules/kysely/dist/driver/driver.js +19 -0
- package/dist/node_modules/kysely/dist/driver/dummy-driver.d.ts +75 -0
- package/dist/node_modules/kysely/dist/driver/dummy-driver.js +80 -0
- package/dist/node_modules/kysely/dist/driver/runtime-driver.d.ts +49 -0
- package/dist/node_modules/kysely/dist/driver/runtime-driver.js +174 -0
- package/dist/node_modules/kysely/dist/driver/single-connection-provider.d.ts +11 -0
- package/dist/node_modules/kysely/dist/driver/single-connection-provider.js +26 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.d.ts +18 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-reference-builder.js +32 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.d.ts +16 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic-table-builder.js +41 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic.d.ts +124 -0
- package/dist/node_modules/kysely/dist/dynamic/dynamic.js +129 -0
- package/dist/node_modules/kysely/dist/expression/expression-builder.d.ts +914 -0
- package/dist/node_modules/kysely/dist/expression/expression-builder.js +121 -0
- package/dist/node_modules/kysely/dist/expression/expression-wrapper.d.ts +631 -0
- package/dist/node_modules/kysely/dist/expression/expression-wrapper.js +128 -0
- package/dist/node_modules/kysely/dist/expression/expression.d.ts +198 -0
- package/dist/node_modules/kysely/dist/expression/expression.js +12 -0
- package/dist/node_modules/kysely/dist/helpers/mssql.d.ts +212 -0
- package/dist/node_modules/kysely/dist/helpers/mssql.js +215 -0
- package/dist/node_modules/kysely/dist/helpers/mysql.d.ts +147 -0
- package/dist/node_modules/kysely/dist/helpers/mysql.js +158 -0
- package/dist/node_modules/kysely/dist/helpers/postgres.d.ts +199 -0
- package/dist/node_modules/kysely/dist/helpers/postgres.js +203 -0
- package/dist/node_modules/kysely/dist/helpers/sqlite.d.ts +189 -0
- package/dist/node_modules/kysely/dist/helpers/sqlite.js +200 -0
- package/dist/node_modules/kysely/dist/index.d.ts +314 -0
- package/dist/node_modules/kysely/dist/index.js +200 -0
- package/dist/node_modules/kysely/dist/kysely.d.ts +796 -0
- package/dist/node_modules/kysely/dist/kysely.js +1032 -0
- package/dist/node_modules/kysely/dist/migration/file-migration-provider.d.ts +51 -0
- package/dist/node_modules/kysely/dist/migration/file-migration-provider.js +61 -0
- package/dist/node_modules/kysely/dist/migration/index.d.ts +2 -0
- package/dist/node_modules/kysely/dist/migration/index.js +3 -0
- package/dist/node_modules/kysely/dist/migration/migrator.d.ts +393 -0
- package/dist/node_modules/kysely/dist/migration/migrator.js +614 -0
- package/dist/node_modules/kysely/dist/operation-node/add-column-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/add-column-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/add-constraint-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/add-index-node.d.ts +29 -0
- package/dist/node_modules/kysely/dist/operation-node/add-index-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/add-value-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/add-value-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.d.ts +29 -0
- package/dist/node_modules/kysely/dist/operation-node/aggregate-function-node.js +56 -0
- package/dist/node_modules/kysely/dist/operation-node/alias-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/alias-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-column-node.d.ts +23 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-column-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-table-node.d.ts +38 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-table-node.js +30 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-type-node.d.ts +24 -0
- package/dist/node_modules/kysely/dist/operation-node/alter-type-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/and-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/and-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/binary-operation-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/case-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/case-node.js +40 -0
- package/dist/node_modules/kysely/dist/operation-node/cast-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/cast-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/check-constraint-node.js +20 -0
- package/dist/node_modules/kysely/dist/operation-node/collate-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/collate-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/column-definition-node.d.ts +38 -0
- package/dist/node_modules/kysely/dist/operation-node/column-definition-node.js +40 -0
- package/dist/node_modules/kysely/dist/operation-node/column-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/column-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/column-update-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/column-update-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-name-node.js +21 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/common-table-expression-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/constraint-node.d.ts +5 -0
- package/dist/node_modules/kysely/dist/operation-node/constraint-node.js +2 -0
- package/dist/node_modules/kysely/dist/operation-node/create-index-node.d.ts +29 -0
- package/dist/node_modules/kysely/dist/operation-node/create-index-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/create-schema-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/create-schema-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/create-table-node.d.ts +37 -0
- package/dist/node_modules/kysely/dist/operation-node/create-table-node.js +62 -0
- package/dist/node_modules/kysely/dist/operation-node/create-type-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/create-type-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/create-view-node.d.ts +26 -0
- package/dist/node_modules/kysely/dist/operation-node/create-view-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/data-type-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/data-type-node.js +80 -0
- package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.d.ts +13 -0
- package/dist/node_modules/kysely/dist/operation-node/default-insert-value-node.js +15 -0
- package/dist/node_modules/kysely/dist/operation-node/default-value-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/default-value-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/delete-query-node.d.ts +42 -0
- package/dist/node_modules/kysely/dist/operation-node/delete-query-node.js +50 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-column-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-column-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-constraint-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-index-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-index-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-schema-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-table-node.d.ts +24 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-table-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-type-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-type-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-view-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/drop-view-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/explain-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/explain-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/fetch-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/fetch-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.d.ts +26 -0
- package/dist/node_modules/kysely/dist/operation-node/foreign-key-constraint-node.js +28 -0
- package/dist/node_modules/kysely/dist/operation-node/from-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/from-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/function-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/function-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/generated-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/generated-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-item-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/group-by-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/having-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/having-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/identifier-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/identifier-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/insert-query-node.d.ts +40 -0
- package/dist/node_modules/kysely/dist/operation-node/insert-query-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/join-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/join-node.js +35 -0
- package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/json-operator-chain-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-leg-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/json-path-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/json-reference-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/json-reference-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/limit-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/limit-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/list-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/list-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/matched-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/matched-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/merge-query-node.d.ts +32 -0
- package/dist/node_modules/kysely/dist/operation-node/merge-query-node.js +43 -0
- package/dist/node_modules/kysely/dist/operation-node/modify-column-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/modify-column-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/offset-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/offset-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.d.ts +32 -0
- package/dist/node_modules/kysely/dist/operation-node/on-conflict-node.js +66 -0
- package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/on-duplicate-key-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/on-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/on-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-source.d.ts +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-source.js +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.d.ts +244 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-transformer.js +958 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.d.ts +207 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node-visitor.js +115 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node.d.ts +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operation-node.js +5 -0
- package/dist/node_modules/kysely/dist/operation-node/operator-node.d.ts +65 -0
- package/dist/node_modules/kysely/dist/operation-node/operator-node.js +148 -0
- package/dist/node_modules/kysely/dist/operation-node/or-action-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/or-action-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/or-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/or-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.d.ts +20 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-item-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/order-by-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/output-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/output-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/over-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/over-node.js +33 -0
- package/dist/node_modules/kysely/dist/operation-node/parens-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/parens-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-item-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/partition-by-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/primary-key-constraint-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/primitive-value-list-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/query-node.d.ts +61 -0
- package/dist/node_modules/kysely/dist/operation-node/query-node.js +100 -0
- package/dist/node_modules/kysely/dist/operation-node/raw-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/raw-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/reference-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/reference-node.js +25 -0
- package/dist/node_modules/kysely/dist/operation-node/references-node.d.ts +27 -0
- package/dist/node_modules/kysely/dist/operation-node/references-node.js +43 -0
- package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.d.ts +19 -0
- package/dist/node_modules/kysely/dist/operation-node/refresh-materialized-view-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-column-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-column-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-constraint-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-value-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/rename-value-node.js +14 -0
- package/dist/node_modules/kysely/dist/operation-node/returning-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/returning-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/root-operation-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/root-operation-node.js +27 -0
- package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/schemable-identifier-node.js +24 -0
- package/dist/node_modules/kysely/dist/operation-node/select-all-node.d.ts +13 -0
- package/dist/node_modules/kysely/dist/operation-node/select-all-node.js +15 -0
- package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/select-modifier-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/select-query-node.d.ts +63 -0
- package/dist/node_modules/kysely/dist/operation-node/select-query-node.js +127 -0
- package/dist/node_modules/kysely/dist/operation-node/selection-node.d.ts +21 -0
- package/dist/node_modules/kysely/dist/operation-node/selection-node.js +30 -0
- package/dist/node_modules/kysely/dist/operation-node/set-operation-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/set-operation-node.js +18 -0
- package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.d.ts +3 -0
- package/dist/node_modules/kysely/dist/operation-node/simple-reference-expression-node.js +2 -0
- package/dist/node_modules/kysely/dist/operation-node/table-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/table-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/top-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/top-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/tuple-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/tuple-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/unary-operation-node.js +17 -0
- package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.d.ts +30 -0
- package/dist/node_modules/kysely/dist/operation-node/unique-constraint-node.js +29 -0
- package/dist/node_modules/kysely/dist/operation-node/update-query-node.d.ts +41 -0
- package/dist/node_modules/kysely/dist/operation-node/update-query-node.js +48 -0
- package/dist/node_modules/kysely/dist/operation-node/using-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/using-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/value-list-node.d.ts +14 -0
- package/dist/node_modules/kysely/dist/operation-node/value-list-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/value-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/value-node.js +23 -0
- package/dist/node_modules/kysely/dist/operation-node/values-node.d.ts +17 -0
- package/dist/node_modules/kysely/dist/operation-node/values-node.js +16 -0
- package/dist/node_modules/kysely/dist/operation-node/when-node.d.ts +16 -0
- package/dist/node_modules/kysely/dist/operation-node/when-node.js +22 -0
- package/dist/node_modules/kysely/dist/operation-node/where-node.d.ts +15 -0
- package/dist/node_modules/kysely/dist/operation-node/where-node.js +26 -0
- package/dist/node_modules/kysely/dist/operation-node/with-node.d.ts +18 -0
- package/dist/node_modules/kysely/dist/operation-node/with-node.js +23 -0
- package/dist/node_modules/kysely/dist/parser/binary-operation-parser.d.ts +23 -0
- package/dist/node_modules/kysely/dist/parser/binary-operation-parser.js +68 -0
- package/dist/node_modules/kysely/dist/parser/coalesce-parser.d.ts +12 -0
- package/dist/node_modules/kysely/dist/parser/coalesce-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/collate-parser.d.ts +1 -0
- package/dist/node_modules/kysely/dist/parser/collate-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/data-type-parser.d.ts +5 -0
- package/dist/node_modules/kysely/dist/parser/data-type-parser.js +12 -0
- package/dist/node_modules/kysely/dist/parser/default-value-parser.d.ts +4 -0
- package/dist/node_modules/kysely/dist/parser/default-value-parser.js +8 -0
- package/dist/node_modules/kysely/dist/parser/delete-from-parser.d.ts +9 -0
- package/dist/node_modules/kysely/dist/parser/delete-from-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/expression-parser.d.ts +20 -0
- package/dist/node_modules/kysely/dist/parser/expression-parser.js +26 -0
- package/dist/node_modules/kysely/dist/parser/fetch-parser.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/fetch-parser.js +15 -0
- package/dist/node_modules/kysely/dist/parser/group-by-parser.d.ts +6 -0
- package/dist/node_modules/kysely/dist/parser/group-by-parser.js +9 -0
- package/dist/node_modules/kysely/dist/parser/identifier-parser.d.ts +3 -0
- package/dist/node_modules/kysely/dist/parser/identifier-parser.js +26 -0
- package/dist/node_modules/kysely/dist/parser/insert-values-parser.d.ts +14 -0
- package/dist/node_modules/kysely/dist/parser/insert-values-parser.js +62 -0
- package/dist/node_modules/kysely/dist/parser/join-parser.d.ts +10 -0
- package/dist/node_modules/kysely/dist/parser/join-parser.js +28 -0
- package/dist/node_modules/kysely/dist/parser/merge-into-parser.d.ts +7 -0
- package/dist/node_modules/kysely/dist/parser/merge-into-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/merge-parser.d.ts +9 -0
- package/dist/node_modules/kysely/dist/parser/merge-parser.js +28 -0
- package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/on-commit-action-parse.js +8 -0
- package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/on-modify-action-parser.js +8 -0
- package/dist/node_modules/kysely/dist/parser/order-by-parser.d.ts +25 -0
- package/dist/node_modules/kysely/dist/parser/order-by-parser.js +67 -0
- package/dist/node_modules/kysely/dist/parser/parse-utils.d.ts +10 -0
- package/dist/node_modules/kysely/dist/parser/parse-utils.js +33 -0
- package/dist/node_modules/kysely/dist/parser/partition-by-parser.d.ts +6 -0
- package/dist/node_modules/kysely/dist/parser/partition-by-parser.js +6 -0
- package/dist/node_modules/kysely/dist/parser/reference-parser.d.ts +31 -0
- package/dist/node_modules/kysely/dist/parser/reference-parser.js +93 -0
- package/dist/node_modules/kysely/dist/parser/returning-parser.d.ts +8 -0
- package/dist/node_modules/kysely/dist/parser/returning-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/savepoint-parser.d.ts +4 -0
- package/dist/node_modules/kysely/dist/parser/savepoint-parser.js +9 -0
- package/dist/node_modules/kysely/dist/parser/select-from-parser.d.ts +6 -0
- package/dist/node_modules/kysely/dist/parser/select-from-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/select-parser.d.ts +36 -0
- package/dist/node_modules/kysely/dist/parser/select-parser.js +47 -0
- package/dist/node_modules/kysely/dist/parser/set-operation-parser.d.ts +5 -0
- package/dist/node_modules/kysely/dist/parser/set-operation-parser.js +14 -0
- package/dist/node_modules/kysely/dist/parser/table-parser.d.ts +24 -0
- package/dist/node_modules/kysely/dist/parser/table-parser.js +49 -0
- package/dist/node_modules/kysely/dist/parser/top-parser.d.ts +2 -0
- package/dist/node_modules/kysely/dist/parser/top-parser.js +17 -0
- package/dist/node_modules/kysely/dist/parser/tuple-parser.d.ts +47 -0
- package/dist/node_modules/kysely/dist/parser/tuple-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/unary-operation-parser.d.ts +8 -0
- package/dist/node_modules/kysely/dist/parser/unary-operation-parser.js +16 -0
- package/dist/node_modules/kysely/dist/parser/update-parser.d.ts +9 -0
- package/dist/node_modules/kysely/dist/parser/update-parser.js +2 -0
- package/dist/node_modules/kysely/dist/parser/update-set-parser.d.ts +16 -0
- package/dist/node_modules/kysely/dist/parser/update-set-parser.js +23 -0
- package/dist/node_modules/kysely/dist/parser/value-parser.d.ts +13 -0
- package/dist/node_modules/kysely/dist/parser/value-parser.js +33 -0
- package/dist/node_modules/kysely/dist/parser/with-parser.d.ts +46 -0
- package/dist/node_modules/kysely/dist/parser/with-parser.js +34 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.d.ts +170 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-plugin.js +119 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.d.ts +9 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case-transformer.js +16 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.d.ts +15 -0
- package/dist/node_modules/kysely/dist/plugin/camel-case/camel-case.js +108 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.d.ts +70 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-plugin.js +16 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.d.ts +11 -0
- package/dist/node_modules/kysely/dist/plugin/deduplicate-joins/deduplicate-joins-transformer.js +39 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.d.ts +211 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-plugin.js +159 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.d.ts +8 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists-transformer.js +26 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.d.ts +44 -0
- package/dist/node_modules/kysely/dist/plugin/handle-empty-in-lists/handle-empty-in-lists.js +63 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.d.ts +73 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-plugin.js +19 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.d.ts +15 -0
- package/dist/node_modules/kysely/dist/plugin/immediate-value/immediate-value-transformer.js +20 -0
- package/dist/node_modules/kysely/dist/plugin/kysely-plugin.d.ts +73 -0
- package/dist/node_modules/kysely/dist/plugin/kysely-plugin.js +2 -0
- package/dist/node_modules/kysely/dist/plugin/noop-plugin.d.ts +64 -0
- package/dist/node_modules/kysely/dist/plugin/noop-plugin.js +9 -0
- package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.d.ts +141 -0
- package/dist/node_modules/kysely/dist/plugin/parse-json-results/parse-json-results-plugin.js +143 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.d.ts +81 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-plugin.js +27 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.d.ts +5 -0
- package/dist/node_modules/kysely/dist/plugin/safe-null-comparison/safe-null-comparison-transformer.js +20 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.d.ts +66 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-plugin.js +14 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.d.ts +18 -0
- package/dist/node_modules/kysely/dist/plugin/with-schema/with-schema-transformer.js +170 -0
- package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.d.ts +379 -0
- package/dist/node_modules/kysely/dist/query-builder/aggregate-function-builder.js +238 -0
- package/dist/node_modules/kysely/dist/query-builder/case-builder.d.ts +184 -0
- package/dist/node_modules/kysely/dist/query-builder/case-builder.js +116 -0
- package/dist/node_modules/kysely/dist/query-builder/cte-builder.d.ts +20 -0
- package/dist/node_modules/kysely/dist/query-builder/cte-builder.js +34 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.d.ts +1344 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-query-builder.js +497 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-result.d.ts +4 -0
- package/dist/node_modules/kysely/dist/query-builder/delete-result.js +7 -0
- package/dist/node_modules/kysely/dist/query-builder/function-module.d.ts +592 -0
- package/dist/node_modules/kysely/dist/query-builder/function-module.js +60 -0
- package/dist/node_modules/kysely/dist/query-builder/having-interface.d.ts +15 -0
- package/dist/node_modules/kysely/dist/query-builder/having-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.d.ts +1231 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-query-builder.js +1151 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-result.d.ts +46 -0
- package/dist/node_modules/kysely/dist/query-builder/insert-result.js +50 -0
- package/dist/node_modules/kysely/dist/query-builder/join-builder.d.ts +38 -0
- package/dist/node_modules/kysely/dist/query-builder/join-builder.js +48 -0
- package/dist/node_modules/kysely/dist/query-builder/json-path-builder.d.ts +294 -0
- package/dist/node_modules/kysely/dist/query-builder/json-path-builder.js +203 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.d.ts +993 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-query-builder.js +613 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-result.d.ts +4 -0
- package/dist/node_modules/kysely/dist/query-builder/merge-result.js +7 -0
- package/dist/node_modules/kysely/dist/query-builder/no-result-error.d.ts +10 -0
- package/dist/node_modules/kysely/dist/query-builder/no-result-error.js +14 -0
- package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.d.ts +875 -0
- package/dist/node_modules/kysely/dist/query-builder/on-conflict-builder.js +254 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-interface.d.ts +158 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.d.ts +43 -0
- package/dist/node_modules/kysely/dist/query-builder/order-by-item-builder.js +72 -0
- package/dist/node_modules/kysely/dist/query-builder/output-interface.d.ts +138 -0
- package/dist/node_modules/kysely/dist/query-builder/output-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/over-builder.d.ts +101 -0
- package/dist/node_modules/kysely/dist/query-builder/over-builder.js +37 -0
- package/dist/node_modules/kysely/dist/query-builder/returning-interface.d.ts +87 -0
- package/dist/node_modules/kysely/dist/query-builder/returning-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.d.ts +28 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder-expression.js +2 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder.d.ts +2413 -0
- package/dist/node_modules/kysely/dist/query-builder/select-query-builder.js +387 -0
- package/dist/node_modules/kysely/dist/query-builder/update-query-builder.d.ts +1388 -0
- package/dist/node_modules/kysely/dist/query-builder/update-query-builder.js +506 -0
- package/dist/node_modules/kysely/dist/query-builder/update-result.d.ts +14 -0
- package/dist/node_modules/kysely/dist/query-builder/update-result.js +18 -0
- package/dist/node_modules/kysely/dist/query-builder/where-interface.d.ts +382 -0
- package/dist/node_modules/kysely/dist/query-builder/where-interface.js +2 -0
- package/dist/node_modules/kysely/dist/query-compiler/compiled-query.d.ts +14 -0
- package/dist/node_modules/kysely/dist/query-compiler/compiled-query.js +25 -0
- package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.d.ts +243 -0
- package/dist/node_modules/kysely/dist/query-compiler/default-query-compiler.js +1452 -0
- package/dist/node_modules/kysely/dist/query-compiler/query-compiler.d.ts +9 -0
- package/dist/node_modules/kysely/dist/query-compiler/query-compiler.js +2 -0
- package/dist/node_modules/kysely/dist/query-creator.d.ts +593 -0
- package/dist/node_modules/kysely/dist/query-creator.js +620 -0
- package/dist/node_modules/kysely/dist/query-executor/default-query-executor.d.ts +52 -0
- package/dist/node_modules/kysely/dist/query-executor/default-query-executor.js +37 -0
- package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.d.ts +50 -0
- package/dist/node_modules/kysely/dist/query-executor/noop-query-executor.js +34 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-base.d.ts +69 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-base.js +169 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.d.ts +8 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor-provider.js +2 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor.d.ts +75 -0
- package/dist/node_modules/kysely/dist/query-executor/query-executor.js +2 -0
- package/dist/node_modules/kysely/dist/query-finalizer.d.ts +27 -0
- package/dist/node_modules/kysely/dist/query-finalizer.js +23 -0
- package/dist/node_modules/kysely/dist/raw-builder/raw-builder.d.ts +219 -0
- package/dist/node_modules/kysely/dist/raw-builder/raw-builder.js +84 -0
- package/dist/node_modules/kysely/dist/raw-builder/sql.d.ts +358 -0
- package/dist/node_modules/kysely/dist/raw-builder/sql.js +76 -0
- package/dist/node_modules/kysely/dist/readonly/index.d.ts +6 -0
- package/dist/node_modules/kysely/dist/readonly/index.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.d.ts +6 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-compiled-query.js +6 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.d.ts +19 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-database-connection.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-driver.d.ts +5 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-driver.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-kysely.d.ts +230 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-kysely.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.d.ts +37 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-query-creator.js +2 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.d.ts +32 -0
- package/dist/node_modules/kysely/dist/readonly/readonly-with-parser.js +2 -0
- package/dist/node_modules/kysely/dist/schema/alter-column-builder.d.ts +53 -0
- package/dist/node_modules/kysely/dist/schema/alter-column-builder.js +70 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.d.ts +33 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-foreign-key-constraint-builder.js +64 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.d.ts +157 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-add-index-builder.js +151 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-builder.d.ts +151 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-builder.js +269 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.d.ts +27 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-drop-constraint-builder.js +56 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-executor.d.ts +19 -0
- package/dist/node_modules/kysely/dist/schema/alter-table-executor.js +17 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.d.ts +25 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-add-value-builder.js +50 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-builder.d.ts +33 -0
- package/dist/node_modules/kysely/dist/schema/alter-type-builder.js +62 -0
- package/dist/node_modules/kysely/dist/schema/check-constraint-builder.d.ts +13 -0
- package/dist/node_modules/kysely/dist/schema/check-constraint-builder.js +17 -0
- package/dist/node_modules/kysely/dist/schema/column-definition-builder.d.ts +514 -0
- package/dist/node_modules/kysely/dist/schema/column-definition-builder.js +597 -0
- package/dist/node_modules/kysely/dist/schema/create-index-builder.d.ts +205 -0
- package/dist/node_modules/kysely/dist/schema/create-index-builder.js +185 -0
- package/dist/node_modules/kysely/dist/schema/create-schema-builder.d.ts +25 -0
- package/dist/node_modules/kysely/dist/schema/create-schema-builder.js +31 -0
- package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.d.ts +35 -0
- package/dist/node_modules/kysely/dist/schema/create-table-add-index-builder.js +24 -0
- package/dist/node_modules/kysely/dist/schema/create-table-builder.d.ts +379 -0
- package/dist/node_modules/kysely/dist/schema/create-table-builder.js +465 -0
- package/dist/node_modules/kysely/dist/schema/create-type-builder.d.ts +34 -0
- package/dist/node_modules/kysely/dist/schema/create-type-builder.js +40 -0
- package/dist/node_modules/kysely/dist/schema/create-view-builder.d.ts +49 -0
- package/dist/node_modules/kysely/dist/schema/create-view-builder.js +95 -0
- package/dist/node_modules/kysely/dist/schema/drop-column-builder.d.ts +12 -0
- package/dist/node_modules/kysely/dist/schema/drop-column-builder.js +18 -0
- package/dist/node_modules/kysely/dist/schema/drop-index-builder.d.ts +31 -0
- package/dist/node_modules/kysely/dist/schema/drop-index-builder.js +54 -0
- package/dist/node_modules/kysely/dist/schema/drop-schema-builder.d.ts +26 -0
- package/dist/node_modules/kysely/dist/schema/drop-schema-builder.js +41 -0
- package/dist/node_modules/kysely/dist/schema/drop-table-builder.d.ts +32 -0
- package/dist/node_modules/kysely/dist/schema/drop-table-builder.js +54 -0
- package/dist/node_modules/kysely/dist/schema/drop-type-builder.d.ts +32 -0
- package/dist/node_modules/kysely/dist/schema/drop-type-builder.js +47 -0
- package/dist/node_modules/kysely/dist/schema/drop-view-builder.d.ts +27 -0
- package/dist/node_modules/kysely/dist/schema/drop-view-builder.js +49 -0
- package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.d.ts +28 -0
- package/dist/node_modules/kysely/dist/schema/foreign-key-constraint-builder.js +45 -0
- package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.d.ts +17 -0
- package/dist/node_modules/kysely/dist/schema/primary-key-constraint-builder.js +34 -0
- package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.d.ts +48 -0
- package/dist/node_modules/kysely/dist/schema/refresh-materialized-view-builder.js +72 -0
- package/dist/node_modules/kysely/dist/schema/schema-module.d.ts +254 -0
- package/dist/node_modules/kysely/dist/schema/schema-module.js +356 -0
- package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.d.ts +23 -0
- package/dist/node_modules/kysely/dist/schema/unique-constraint-builder.js +42 -0
- package/dist/node_modules/kysely/dist/util/abort.d.ts +49 -0
- package/dist/node_modules/kysely/dist/util/abort.js +78 -0
- package/dist/node_modules/kysely/dist/util/column-type.d.ts +229 -0
- package/dist/node_modules/kysely/dist/util/column-type.js +2 -0
- package/dist/node_modules/kysely/dist/util/compilable.d.ts +5 -0
- package/dist/node_modules/kysely/dist/util/compilable.js +5 -0
- package/dist/node_modules/kysely/dist/util/deferred.d.ts +7 -0
- package/dist/node_modules/kysely/dist/util/deferred.js +23 -0
- package/dist/node_modules/kysely/dist/util/executable.d.ts +35 -0
- package/dist/node_modules/kysely/dist/util/executable.js +2 -0
- package/dist/node_modules/kysely/dist/util/explainable.d.ts +40 -0
- package/dist/node_modules/kysely/dist/util/explainable.js +2 -0
- package/dist/node_modules/kysely/dist/util/infer-result.d.ts +48 -0
- package/dist/node_modules/kysely/dist/util/infer-result.js +2 -0
- package/dist/node_modules/kysely/dist/util/json-object-args.d.ts +3 -0
- package/dist/node_modules/kysely/dist/util/json-object-args.js +32 -0
- package/dist/node_modules/kysely/dist/util/log-once.d.ts +5 -0
- package/dist/node_modules/kysely/dist/util/log-once.js +13 -0
- package/dist/node_modules/kysely/dist/util/log.d.ts +28 -0
- package/dist/node_modules/kysely/dist/util/log.js +56 -0
- package/dist/node_modules/kysely/dist/util/object-utils.d.ts +24 -0
- package/dist/node_modules/kysely/dist/util/object-utils.js +144 -0
- package/dist/node_modules/kysely/dist/util/performance-now.d.ts +1 -0
- package/dist/node_modules/kysely/dist/util/performance-now.js +10 -0
- package/dist/node_modules/kysely/dist/util/provide-controlled-connection.d.ts +8 -0
- package/dist/node_modules/kysely/dist/util/provide-controlled-connection.js +22 -0
- package/dist/node_modules/kysely/dist/util/query-id.d.ts +4 -0
- package/dist/node_modules/kysely/dist/util/query-id.js +14 -0
- package/dist/node_modules/kysely/dist/util/random-string.d.ts +1 -0
- package/dist/node_modules/kysely/dist/util/random-string.js +75 -0
- package/dist/node_modules/kysely/dist/util/stack-trace-utils.d.ts +1 -0
- package/dist/node_modules/kysely/dist/util/stack-trace-utils.js +14 -0
- package/dist/node_modules/kysely/dist/util/streamable.d.ts +38 -0
- package/dist/node_modules/kysely/dist/util/streamable.js +2 -0
- package/dist/node_modules/kysely/dist/util/type-error.d.ts +3 -0
- package/dist/node_modules/kysely/dist/util/type-error.js +2 -0
- package/dist/node_modules/kysely/dist/util/type-utils.d.ts +205 -0
- package/dist/node_modules/kysely/dist/util/type-utils.js +2 -0
- package/dist/node_modules/kysely/outdated-typescript.d.ts +5 -0
- package/dist/node_modules/kysely/package.json +128 -0
- package/dist/node_modules/longest-streak/index.d.ts +11 -0
- package/dist/node_modules/longest-streak/index.js +36 -0
- package/dist/node_modules/longest-streak/license +22 -0
- package/dist/node_modules/longest-streak/package.json +73 -0
- package/dist/node_modules/longest-streak/readme.md +150 -0
- package/dist/node_modules/markdown-table/index.d.ts +171 -0
- package/dist/node_modules/markdown-table/index.d.ts.map +1 -0
- package/dist/node_modules/markdown-table/index.js +393 -0
- package/dist/node_modules/markdown-table/license +22 -0
- package/dist/node_modules/markdown-table/package.json +77 -0
- package/dist/node_modules/markdown-table/readme.md +344 -0
- package/dist/node_modules/mdast-util-find-and-replace/index.d.ts +9 -0
- package/dist/node_modules/mdast-util-find-and-replace/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-find-and-replace/index.js +11 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts +79 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +257 -0
- package/dist/node_modules/mdast-util-find-and-replace/license +22 -0
- package/dist/node_modules/mdast-util-find-and-replace/package.json +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/readme.md +366 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/index.d.ts +23 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/index.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +53 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/index.js +1455 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +321 -0
- package/dist/node_modules/mdast-util-from-markdown/dev/lib/types.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/index.d.ts +23 -0
- package/dist/node_modules/mdast-util-from-markdown/index.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts +53 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +1270 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/types.d.ts +321 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/types.js +2 -0
- package/dist/node_modules/mdast-util-from-markdown/license +22 -0
- package/dist/node_modules/mdast-util-from-markdown/package.json +98 -0
- package/dist/node_modules/mdast-util-from-markdown/readme.md +549 -0
- package/dist/node_modules/mdast-util-gfm/index.d.ts +12 -0
- package/dist/node_modules/mdast-util-gfm/index.js +2 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.d.ts +24 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +63 -0
- package/dist/node_modules/mdast-util-gfm/license +22 -0
- package/dist/node_modules/mdast-util-gfm/package.json +125 -0
- package/dist/node_modules/mdast-util-gfm/readme.md +497 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/index.d.ts +1 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.d.ts +18 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/license +22 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/readme.md +334 -0
- package/dist/node_modules/mdast-util-gfm-footnote/index.d.ts +34 -0
- package/dist/node_modules/mdast-util-gfm-footnote/index.js +2 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts +22 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
- package/dist/node_modules/mdast-util-gfm-footnote/license +22 -0
- package/dist/node_modules/mdast-util-gfm-footnote/package.json +111 -0
- package/dist/node_modules/mdast-util-gfm-footnote/readme.md +494 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/index.d.ts +19 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts +19 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +133 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/license +22 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/package.json +84 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/readme.md +350 -0
- package/dist/node_modules/mdast-util-gfm-table/index.d.ts +54 -0
- package/dist/node_modules/mdast-util-gfm-table/index.js +2 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.d.ts +51 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
- package/dist/node_modules/mdast-util-gfm-table/license +22 -0
- package/dist/node_modules/mdast-util-gfm-table/package.json +101 -0
- package/dist/node_modules/mdast-util-gfm-table/readme.md +605 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/index.d.ts +4 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.d.ts +23 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/license +22 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/readme.md +366 -0
- package/dist/node_modules/mdast-util-phrasing/index.d.ts +1 -0
- package/dist/node_modules/mdast-util-phrasing/index.js +1 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.d.ts +3 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +45 -0
- package/dist/node_modules/mdast-util-phrasing/license +23 -0
- package/dist/node_modules/mdast-util-phrasing/package.json +78 -0
- package/dist/node_modules/mdast-util-phrasing/readme.md +200 -0
- package/dist/node_modules/mdast-util-to-markdown/index.d.ts +18 -0
- package/dist/node_modules/mdast-util-to-markdown/index.js +3 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/configure.js +98 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +40 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +41 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +86 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +83 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +67 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +84 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +78 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +92 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +42 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +28 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +86 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +78 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +37 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +129 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +73 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +107 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +67 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +30 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +17 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/index.js +213 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/join.js +56 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/types.d.ts +1005 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/types.js +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +4 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/unsafe.js +160 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/character.js +32 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +12 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +42 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +30 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +21 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +93 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +110 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +704 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +27 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +39 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +14 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +39 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.js +63 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +40 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +17 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/safe.js +263 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +1 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
- package/dist/node_modules/mdast-util-to-markdown/license +22 -0
- package/dist/node_modules/mdast-util-to-markdown/package.json +88 -0
- package/dist/node_modules/mdast-util-to-markdown/readme.md +814 -0
- package/dist/node_modules/mdast-util-to-string/index.d.ts +2 -0
- package/dist/node_modules/mdast-util-to-string/index.js +5 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.d.ts +31 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +108 -0
- package/dist/node_modules/mdast-util-to-string/license +22 -0
- package/dist/node_modules/mdast-util-to-string/package.json +78 -0
- package/dist/node_modules/mdast-util-to-string/readme.md +218 -0
- package/dist/node_modules/micromark/dev/index.d.ts +82 -0
- package/dist/node_modules/micromark/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/index.js +68 -0
- package/dist/node_modules/micromark/dev/lib/compile.d.ts +16 -0
- package/dist/node_modules/micromark/dev/lib/compile.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/compile.js +1162 -0
- package/dist/node_modules/micromark/dev/lib/constructs.d.ts +73 -0
- package/dist/node_modules/micromark/dev/lib/constructs.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/constructs.js +101 -0
- package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts +46 -0
- package/dist/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/create-tokenizer.js +718 -0
- package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts +4 -0
- package/dist/node_modules/micromark/dev/lib/initialize/content.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/content.js +99 -0
- package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts +10 -0
- package/dist/node_modules/micromark/dev/lib/initialize/document.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/document.js +449 -0
- package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts +4 -0
- package/dist/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/flow.js +86 -0
- package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts +8 -0
- package/dist/node_modules/micromark/dev/lib/initialize/text.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/initialize/text.js +248 -0
- package/dist/node_modules/micromark/dev/lib/parse.d.ts +10 -0
- package/dist/node_modules/micromark/dev/lib/parse.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/parse.js +58 -0
- package/dist/node_modules/micromark/dev/lib/postprocess.d.ts +9 -0
- package/dist/node_modules/micromark/dev/lib/postprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/postprocess.js +19 -0
- package/dist/node_modules/micromark/dev/lib/preprocess.d.ts +13 -0
- package/dist/node_modules/micromark/dev/lib/preprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/lib/preprocess.js +139 -0
- package/dist/node_modules/micromark/dev/stream.d.ts +35 -0
- package/dist/node_modules/micromark/dev/stream.d.ts.map +1 -0
- package/dist/node_modules/micromark/dev/stream.js +270 -0
- package/dist/node_modules/micromark/index.d.ts +82 -0
- package/dist/node_modules/micromark/index.d.ts.map +1 -0
- package/dist/node_modules/micromark/index.js +60 -0
- package/dist/node_modules/micromark/lib/compile.d.ts +16 -0
- package/dist/node_modules/micromark/lib/compile.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/compile.js +1068 -0
- package/dist/node_modules/micromark/lib/constructs.d.ts +73 -0
- package/dist/node_modules/micromark/lib/constructs.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.d.ts +46 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +613 -0
- package/dist/node_modules/micromark/lib/initialize/content.d.ts +4 -0
- package/dist/node_modules/micromark/lib/initialize/content.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +79 -0
- package/dist/node_modules/micromark/lib/initialize/document.d.ts +10 -0
- package/dist/node_modules/micromark/lib/initialize/document.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +370 -0
- package/dist/node_modules/micromark/lib/initialize/flow.d.ts +4 -0
- package/dist/node_modules/micromark/lib/initialize/flow.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +58 -0
- package/dist/node_modules/micromark/lib/initialize/text.d.ts +8 -0
- package/dist/node_modules/micromark/lib/initialize/text.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +216 -0
- package/dist/node_modules/micromark/lib/parse.d.ts +10 -0
- package/dist/node_modules/micromark/lib/parse.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/parse.js +56 -0
- package/dist/node_modules/micromark/lib/postprocess.d.ts +9 -0
- package/dist/node_modules/micromark/lib/postprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/postprocess.js +18 -0
- package/dist/node_modules/micromark/lib/preprocess.d.ts +13 -0
- package/dist/node_modules/micromark/lib/preprocess.d.ts.map +1 -0
- package/dist/node_modules/micromark/lib/preprocess.js +112 -0
- package/dist/node_modules/micromark/license +22 -0
- package/dist/node_modules/micromark/package.json +87 -0
- package/dist/node_modules/micromark/readme.md +488 -0
- package/dist/node_modules/micromark/stream.d.ts +35 -0
- package/dist/node_modules/micromark/stream.d.ts.map +1 -0
- package/dist/node_modules/micromark/stream.js +256 -0
- package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts +23 -0
- package/dist/node_modules/micromark-core-commonmark/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/index.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/attention.js +294 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/autolink.js +269 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +62 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +162 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +69 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +166 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +472 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +178 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/code-text.js +257 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +7 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/content.js +185 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/definition.js +295 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +65 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +229 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +938 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/html-text.js +783 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-end.js +658 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +119 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +71 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +34 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/list.js +306 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/partial-non-lazy-continuation.js +67 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +213 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +120 -0
- package/dist/node_modules/micromark-core-commonmark/index.d.ts +23 -0
- package/dist/node_modules/micromark-core-commonmark/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/index.js +22 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +231 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +422 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +159 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts +7 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +163 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +191 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +827 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +561 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +110 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +63 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +213 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +61 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +187 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +4 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +1 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/license +22 -0
- package/dist/node_modules/micromark-core-commonmark/package.json +62 -0
- package/dist/node_modules/micromark-core-commonmark/readme.md +171 -0
- package/dist/node_modules/micromark-extension-gfm/index.d.ts +28 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +69 -0
- package/dist/node_modules/micromark-extension-gfm/license +22 -0
- package/dist/node_modules/micromark-extension-gfm/package.json +107 -0
- package/dist/node_modules/micromark-extension-gfm/readme.md +433 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.d.ts +24 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.js +56 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.js +983 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts +24 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/readme.md +422 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts +164 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.d.ts +25 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/html.js +226 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.d.ts +9 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.js +558 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/index.d.ts +164 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.d.ts +25 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.d.ts +9 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/readme.md +656 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.d.ts +30 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/html.js +26 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.d.ts +12 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/dev/lib/syntax.js +183 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/index.d.ts +24 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.d.ts +12 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/readme.md +304 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/index.d.ts +55 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +51 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +231 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +11 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/html.js +153 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +14 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +64 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +18 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +964 -0
- package/dist/node_modules/micromark-extension-gfm-table/index.d.ts +55 -0
- package/dist/node_modules/micromark-extension-gfm-table/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +51 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +222 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts +11 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/html.js +135 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +14 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +18 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +1 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +846 -0
- package/dist/node_modules/micromark-extension-gfm-table/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-table/package.json +86 -0
- package/dist/node_modules/micromark-extension-gfm-table/readme.md +515 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/index.d.ts +1 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.d.ts +12 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
- package/dist/node_modules/micromark-extension-gfm-tagfilter/readme.md +237 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.d.ts +17 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/html.js +29 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/dev/lib/syntax.js +166 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/index.d.ts +17 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.d.ts +13 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.d.ts +10 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/license +22 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/readme.md +305 -0
- package/dist/node_modules/micromark-factory-destination/dev/index.d.ts +42 -0
- package/dist/node_modules/micromark-factory-destination/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-destination/dev/index.js +255 -0
- package/dist/node_modules/micromark-factory-destination/index.d.ts +42 -0
- package/dist/node_modules/micromark-factory-destination/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-destination/index.js +206 -0
- package/dist/node_modules/micromark-factory-destination/license +22 -0
- package/dist/node_modules/micromark-factory-destination/package.json +57 -0
- package/dist/node_modules/micromark-factory-destination/readme.md +234 -0
- package/dist/node_modules/micromark-factory-label/dev/index.d.ts +37 -0
- package/dist/node_modules/micromark-factory-label/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-label/dev/index.js +172 -0
- package/dist/node_modules/micromark-factory-label/index.d.ts +37 -0
- package/dist/node_modules/micromark-factory-label/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-label/index.js +148 -0
- package/dist/node_modules/micromark-factory-label/license +22 -0
- package/dist/node_modules/micromark-factory-label/package.json +60 -0
- package/dist/node_modules/micromark-factory-label/readme.md +224 -0
- package/dist/node_modules/micromark-factory-space/dev/index.d.ts +60 -0
- package/dist/node_modules/micromark-factory-space/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-space/dev/index.js +122 -0
- package/dist/node_modules/micromark-factory-space/index.d.ts +60 -0
- package/dist/node_modules/micromark-factory-space/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-space/index.js +116 -0
- package/dist/node_modules/micromark-factory-space/license +22 -0
- package/dist/node_modules/micromark-factory-space/package.json +46 -0
- package/dist/node_modules/micromark-factory-space/readme.md +225 -0
- package/dist/node_modules/micromark-factory-title/dev/index.d.ts +36 -0
- package/dist/node_modules/micromark-factory-title/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-title/dev/index.js +169 -0
- package/dist/node_modules/micromark-factory-title/index.d.ts +36 -0
- package/dist/node_modules/micromark-factory-title/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-title/index.js +158 -0
- package/dist/node_modules/micromark-factory-title/license +22 -0
- package/dist/node_modules/micromark-factory-title/package.json +58 -0
- package/dist/node_modules/micromark-factory-title/readme.md +229 -0
- package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts +22 -0
- package/dist/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-whitespace/dev/index.js +53 -0
- package/dist/node_modules/micromark-factory-whitespace/index.d.ts +22 -0
- package/dist/node_modules/micromark-factory-whitespace/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +44 -0
- package/dist/node_modules/micromark-factory-whitespace/license +22 -0
- package/dist/node_modules/micromark-factory-whitespace/package.json +57 -0
- package/dist/node_modules/micromark-factory-whitespace/readme.md +205 -0
- package/dist/node_modules/micromark-util-character/dev/index.d.ts +195 -0
- package/dist/node_modules/micromark-util-character/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-character/dev/index.js +252 -0
- package/dist/node_modules/micromark-util-character/index.d.ts +195 -0
- package/dist/node_modules/micromark-util-character/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-character/index.js +246 -0
- package/dist/node_modules/micromark-util-character/license +22 -0
- package/dist/node_modules/micromark-util-character/package.json +57 -0
- package/dist/node_modules/micromark-util-character/readme.md +446 -0
- package/dist/node_modules/micromark-util-chunked/dev/index.d.ts +41 -0
- package/dist/node_modules/micromark-util-chunked/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-chunked/dev/index.js +89 -0
- package/dist/node_modules/micromark-util-chunked/index.d.ts +41 -0
- package/dist/node_modules/micromark-util-chunked/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-chunked/index.js +81 -0
- package/dist/node_modules/micromark-util-chunked/license +22 -0
- package/dist/node_modules/micromark-util-chunked/package.json +57 -0
- package/dist/node_modules/micromark-util-chunked/readme.md +219 -0
- package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts +18 -0
- package/dist/node_modules/micromark-util-classify-character/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-classify-character/dev/index.js +38 -0
- package/dist/node_modules/micromark-util-classify-character/index.d.ts +18 -0
- package/dist/node_modules/micromark-util-classify-character/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +27 -0
- package/dist/node_modules/micromark-util-classify-character/license +22 -0
- package/dist/node_modules/micromark-util-classify-character/package.json +59 -0
- package/dist/node_modules/micromark-util-classify-character/readme.md +205 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.d.ts +22 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +143 -0
- package/dist/node_modules/micromark-util-combine-extensions/license +22 -0
- package/dist/node_modules/micromark-util-combine-extensions/package.json +52 -0
- package/dist/node_modules/micromark-util-combine-extensions/readme.md +201 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +16 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +42 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +16 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/license +22 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/readme.md +184 -0
- package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts +14 -0
- package/dist/node_modules/micromark-util-decode-string/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-string/dev/index.js +53 -0
- package/dist/node_modules/micromark-util-decode-string/index.d.ts +14 -0
- package/dist/node_modules/micromark-util-decode-string/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +45 -0
- package/dist/node_modules/micromark-util-decode-string/license +22 -0
- package/dist/node_modules/micromark-util-decode-string/package.json +63 -0
- package/dist/node_modules/micromark-util-decode-string/readme.md +179 -0
- package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts +78 -0
- package/dist/node_modules/micromark-util-edit-map/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-edit-map/dev/index.js +237 -0
- package/dist/node_modules/micromark-util-edit-map/index.d.ts +78 -0
- package/dist/node_modules/micromark-util-edit-map/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +225 -0
- package/dist/node_modules/micromark-util-edit-map/license +22 -0
- package/dist/node_modules/micromark-util-edit-map/package.json +48 -0
- package/dist/node_modules/micromark-util-edit-map/readme.md +234 -0
- package/dist/node_modules/micromark-util-encode/index.d.ts +14 -0
- package/dist/node_modules/micromark-util-encode/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-encode/index.js +33 -0
- package/dist/node_modules/micromark-util-encode/license +22 -0
- package/dist/node_modules/micromark-util-encode/package.json +47 -0
- package/dist/node_modules/micromark-util-encode/readme.md +176 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.d.ts +30 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +93 -0
- package/dist/node_modules/micromark-util-html-tag-name/license +22 -0
- package/dist/node_modules/micromark-util-html-tag-name/package.json +47 -0
- package/dist/node_modules/micromark-util-html-tag-name/readme.md +193 -0
- package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +21 -0
- package/dist/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-normalize-identifier/dev/index.js +38 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts +21 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +33 -0
- package/dist/node_modules/micromark-util-normalize-identifier/license +22 -0
- package/dist/node_modules/micromark-util-normalize-identifier/package.json +58 -0
- package/dist/node_modules/micromark-util-normalize-identifier/readme.md +187 -0
- package/dist/node_modules/micromark-util-resolve-all/index.d.ts +22 -0
- package/dist/node_modules/micromark-util-resolve-all/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +32 -0
- package/dist/node_modules/micromark-util-resolve-all/license +22 -0
- package/dist/node_modules/micromark-util-resolve-all/package.json +48 -0
- package/dist/node_modules/micromark-util-resolve-all/readme.md +238 -0
- package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +36 -0
- package/dist/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-sanitize-uri/dev/index.js +124 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts +36 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/dist/node_modules/micromark-util-sanitize-uri/license +22 -0
- package/dist/node_modules/micromark-util-sanitize-uri/package.json +59 -0
- package/dist/node_modules/micromark-util-sanitize-uri/readme.md +214 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts +12 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/index.js +284 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +161 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +288 -0
- package/dist/node_modules/micromark-util-subtokenize/index.d.ts +12 -0
- package/dist/node_modules/micromark-util-subtokenize/index.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +228 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +161 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/dist/node_modules/micromark-util-subtokenize/license +22 -0
- package/dist/node_modules/micromark-util-subtokenize/package.json +60 -0
- package/dist/node_modules/micromark-util-subtokenize/readme.md +181 -0
- package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts +139 -0
- package/dist/node_modules/micromark-util-symbol/lib/codes.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/codes.js +158 -0
- package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts +37 -0
- package/dist/node_modules/micromark-util-symbol/lib/constants.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/constants.js +44 -0
- package/dist/node_modules/micromark-util-symbol/lib/default.d.ts +5 -0
- package/dist/node_modules/micromark-util-symbol/lib/default.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/default.js +4 -0
- package/dist/node_modules/micromark-util-symbol/lib/types.d.ts +106 -0
- package/dist/node_modules/micromark-util-symbol/lib/types.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/types.js +453 -0
- package/dist/node_modules/micromark-util-symbol/lib/values.d.ts +102 -0
- package/dist/node_modules/micromark-util-symbol/lib/values.d.ts.map +1 -0
- package/dist/node_modules/micromark-util-symbol/lib/values.js +109 -0
- package/dist/node_modules/micromark-util-symbol/license +22 -0
- package/dist/node_modules/micromark-util-symbol/package.json +43 -0
- package/dist/node_modules/micromark-util-symbol/readme.md +168 -0
- package/dist/node_modules/micromark-util-types/index.d.ts +1315 -0
- package/dist/node_modules/micromark-util-types/index.js +2 -0
- package/dist/node_modules/micromark-util-types/license +22 -0
- package/dist/node_modules/micromark-util-types/package.json +37 -0
- package/dist/node_modules/micromark-util-types/readme.md +151 -0
- package/dist/node_modules/ms/index.js +162 -0
- package/dist/node_modules/ms/license.md +21 -0
- package/dist/node_modules/ms/package.json +38 -0
- package/dist/node_modules/ms/readme.md +59 -0
- package/dist/node_modules/node-forge/LICENSE +331 -0
- package/dist/node_modules/node-forge/README.md +2075 -0
- package/dist/node_modules/node-forge/dist/forge.all.min.js +2 -0
- package/dist/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
- package/dist/node_modules/node-forge/dist/forge.min.js +2 -0
- package/dist/node_modules/node-forge/dist/forge.min.js.map +1 -0
- package/dist/node_modules/node-forge/dist/prime.worker.min.js +2 -0
- package/dist/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
- package/dist/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
- package/dist/node_modules/node-forge/lib/aes.js +1091 -0
- package/dist/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
- package/dist/node_modules/node-forge/lib/asn1-validator.js +91 -0
- package/dist/node_modules/node-forge/lib/asn1.js +1522 -0
- package/dist/node_modules/node-forge/lib/baseN.js +186 -0
- package/dist/node_modules/node-forge/lib/cipher.js +230 -0
- package/dist/node_modules/node-forge/lib/cipherModes.js +1027 -0
- package/dist/node_modules/node-forge/lib/des.js +496 -0
- package/dist/node_modules/node-forge/lib/ed25519.js +1117 -0
- package/dist/node_modules/node-forge/lib/forge.js +13 -0
- package/dist/node_modules/node-forge/lib/form.js +149 -0
- package/dist/node_modules/node-forge/lib/hmac.js +146 -0
- package/dist/node_modules/node-forge/lib/http.js +1371 -0
- package/dist/node_modules/node-forge/lib/index.all.js +16 -0
- package/dist/node_modules/node-forge/lib/index.js +33 -0
- package/dist/node_modules/node-forge/lib/jsbn.js +1294 -0
- package/dist/node_modules/node-forge/lib/kem.js +168 -0
- package/dist/node_modules/node-forge/lib/log.js +319 -0
- package/dist/node_modules/node-forge/lib/md.all.js +13 -0
- package/dist/node_modules/node-forge/lib/md.js +11 -0
- package/dist/node_modules/node-forge/lib/md5.js +289 -0
- package/dist/node_modules/node-forge/lib/mgf.js +12 -0
- package/dist/node_modules/node-forge/lib/mgf1.js +57 -0
- package/dist/node_modules/node-forge/lib/oids.js +180 -0
- package/dist/node_modules/node-forge/lib/pbe.js +1029 -0
- package/dist/node_modules/node-forge/lib/pbkdf2.js +211 -0
- package/dist/node_modules/node-forge/lib/pem.js +413 -0
- package/dist/node_modules/node-forge/lib/pkcs1.js +276 -0
- package/dist/node_modules/node-forge/lib/pkcs12.js +1081 -0
- package/dist/node_modules/node-forge/lib/pkcs7.js +1260 -0
- package/dist/node_modules/node-forge/lib/pkcs7asn1.js +410 -0
- package/dist/node_modules/node-forge/lib/pki.js +102 -0
- package/dist/node_modules/node-forge/lib/prime.js +297 -0
- package/dist/node_modules/node-forge/lib/prime.worker.js +168 -0
- package/dist/node_modules/node-forge/lib/prng.js +419 -0
- package/dist/node_modules/node-forge/lib/pss.js +241 -0
- package/dist/node_modules/node-forge/lib/random.js +191 -0
- package/dist/node_modules/node-forge/lib/rc2.js +410 -0
- package/dist/node_modules/node-forge/lib/rsa.js +2014 -0
- package/dist/node_modules/node-forge/lib/sha1.js +319 -0
- package/dist/node_modules/node-forge/lib/sha256.js +327 -0
- package/dist/node_modules/node-forge/lib/sha512.js +561 -0
- package/dist/node_modules/node-forge/lib/socket.js +287 -0
- package/dist/node_modules/node-forge/lib/ssh.js +236 -0
- package/dist/node_modules/node-forge/lib/tls.js +4347 -0
- package/dist/node_modules/node-forge/lib/tlssocket.js +249 -0
- package/dist/node_modules/node-forge/lib/util.js +2652 -0
- package/dist/node_modules/node-forge/lib/x509.js +3946 -0
- package/dist/node_modules/node-forge/lib/xhr.js +738 -0
- package/dist/node_modules/node-forge/package.json +123 -0
- package/dist/node_modules/saxes/README.md +323 -0
- package/dist/node_modules/saxes/package.json +71 -0
- package/dist/node_modules/saxes/saxes.d.ts +635 -0
- package/dist/node_modules/saxes/saxes.js +2053 -0
- package/dist/node_modules/saxes/saxes.js.map +1 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/README.md +680 -0
- package/dist/node_modules/semver/bin/semver.js +195 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +577 -0
- package/dist/node_modules/semver/classes/semver.js +350 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/truncate.js +48 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +93 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +17 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -0
- package/dist/node_modules/unist-util-is/index.d.ts +5 -0
- package/dist/node_modules/unist-util-is/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-is/index.js +7 -0
- package/dist/node_modules/unist-util-is/lib/index.d.ts +111 -0
- package/dist/node_modules/unist-util-is/lib/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-is/lib/index.js +296 -0
- package/dist/node_modules/unist-util-is/license +22 -0
- package/dist/node_modules/unist-util-is/package.json +103 -0
- package/dist/node_modules/unist-util-is/readme.md +351 -0
- package/dist/node_modules/unist-util-stringify-position/index.d.ts +1 -0
- package/dist/node_modules/unist-util-stringify-position/index.js +1 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.d.ts +61 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +84 -0
- package/dist/node_modules/unist-util-stringify-position/license +22 -0
- package/dist/node_modules/unist-util-stringify-position/package.json +80 -0
- package/dist/node_modules/unist-util-stringify-position/readme.md +206 -0
- package/dist/node_modules/unist-util-visit/index.d.ts +16 -0
- package/dist/node_modules/unist-util-visit/index.js +2 -0
- package/dist/node_modules/unist-util-visit/lib/index.d.ts +219 -0
- package/dist/node_modules/unist-util-visit/lib/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +324 -0
- package/dist/node_modules/unist-util-visit/license +22 -0
- package/dist/node_modules/unist-util-visit/package.json +98 -0
- package/dist/node_modules/unist-util-visit/readme.md +373 -0
- package/dist/node_modules/unist-util-visit-parents/index.d.ts +18 -0
- package/dist/node_modules/unist-util-visit-parents/index.js +2 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts +10 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +11 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts +10 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.node.js +11 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts +540 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.d.ts.map +1 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +582 -0
- package/dist/node_modules/unist-util-visit-parents/license +22 -0
- package/dist/node_modules/unist-util-visit-parents/package.json +96 -0
- package/dist/node_modules/unist-util-visit-parents/readme.md +499 -0
- package/dist/node_modules/ws/LICENSE +20 -0
- package/dist/node_modules/ws/README.md +548 -0
- package/dist/node_modules/ws/browser.js +8 -0
- package/dist/node_modules/ws/index.js +22 -0
- package/dist/node_modules/ws/lib/buffer-util.js +131 -0
- package/dist/node_modules/ws/lib/constants.js +19 -0
- package/dist/node_modules/ws/lib/event-target.js +292 -0
- package/dist/node_modules/ws/lib/extension.js +203 -0
- package/dist/node_modules/ws/lib/limiter.js +55 -0
- package/dist/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/dist/node_modules/ws/lib/receiver.js +743 -0
- package/dist/node_modules/ws/lib/sender.js +607 -0
- package/dist/node_modules/ws/lib/stream.js +161 -0
- package/dist/node_modules/ws/lib/subprotocol.js +62 -0
- package/dist/node_modules/ws/lib/validation.js +152 -0
- package/dist/node_modules/ws/lib/websocket-server.js +562 -0
- package/dist/node_modules/ws/lib/websocket.js +1421 -0
- package/dist/node_modules/ws/package.json +74 -0
- package/dist/node_modules/ws/wrapper.mjs +21 -0
- package/dist/node_modules/xmlchars/LICENSE +18 -0
- package/dist/node_modules/xmlchars/README.md +33 -0
- package/dist/node_modules/xmlchars/package.json +51 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed4.d.ts +31 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed4.js.map +1 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed5.d.ts +51 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
- package/dist/node_modules/xmlchars/xml/1.0/ed5.js.map +1 -0
- package/dist/node_modules/xmlchars/xml/1.1/ed2.d.ts +73 -0
- package/dist/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
- package/dist/node_modules/xmlchars/xml/1.1/ed2.js.map +1 -0
- package/dist/node_modules/xmlchars/xmlchars.d.ts +170 -0
- package/dist/node_modules/xmlchars/xmlchars.js +191 -0
- package/dist/node_modules/xmlchars/xmlchars.js.map +1 -0
- package/dist/node_modules/xmlchars/xmlns/1.0/ed3.d.ts +28 -0
- package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
- package/dist/node_modules/xmlchars/xmlns/1.0/ed3.js.map +1 -0
- package/dist/node_modules/yaml/LICENSE +13 -0
- package/dist/node_modules/yaml/README.md +172 -0
- package/dist/node_modules/yaml/bin.mjs +11 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/dist/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/dist/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
- package/dist/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/dist/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/dist/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/dist/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/dist/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/dist/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/dist/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/dist/node_modules/yaml/browser/dist/errors.js +57 -0
- package/dist/node_modules/yaml/browser/dist/index.js +17 -0
- package/dist/node_modules/yaml/browser/dist/log.js +11 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/dist/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/dist/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/dist/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/dist/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/dist/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/dist/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/dist/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/dist/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/dist/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/dist/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/dist/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/dist/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/dist/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/dist/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/dist/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/dist/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/dist/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/dist/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/dist/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/dist/node_modules/yaml/browser/dist/util.js +11 -0
- package/dist/node_modules/yaml/browser/dist/visit.js +233 -0
- package/dist/node_modules/yaml/browser/index.js +5 -0
- package/dist/node_modules/yaml/browser/package.json +3 -0
- package/dist/node_modules/yaml/dist/cli.d.ts +8 -0
- package/dist/node_modules/yaml/dist/cli.mjs +201 -0
- package/dist/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/dist/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/dist/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/dist/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/dist/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/dist/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/dist/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/dist/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/dist/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/dist/node_modules/yaml/dist/compose/composer.js +224 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/dist/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/dist/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/dist/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/dist/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
- package/dist/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/dist/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/dist/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/dist/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/dist/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/dist/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/dist/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/dist/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/dist/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/dist/node_modules/yaml/dist/doc/Document.js +337 -0
- package/dist/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/dist/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/dist/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/dist/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/dist/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/dist/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/dist/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/dist/node_modules/yaml/dist/doc/directives.js +178 -0
- package/dist/node_modules/yaml/dist/errors.d.ts +21 -0
- package/dist/node_modules/yaml/dist/errors.js +62 -0
- package/dist/node_modules/yaml/dist/index.d.ts +25 -0
- package/dist/node_modules/yaml/dist/index.js +50 -0
- package/dist/node_modules/yaml/dist/log.d.ts +3 -0
- package/dist/node_modules/yaml/dist/log.js +19 -0
- package/dist/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/dist/node_modules/yaml/dist/nodes/Alias.js +120 -0
- package/dist/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/dist/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/dist/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/dist/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/dist/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/dist/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/dist/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/dist/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/dist/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/dist/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/dist/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/dist/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/dist/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/dist/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/dist/node_modules/yaml/dist/options.d.ts +350 -0
- package/dist/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/dist/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/dist/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/dist/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/dist/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/dist/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/dist/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/dist/node_modules/yaml/dist/parse/cst.js +112 -0
- package/dist/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/dist/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/dist/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/dist/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/dist/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/dist/node_modules/yaml/dist/parse/parser.js +980 -0
- package/dist/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/dist/node_modules/yaml/dist/public-api.js +107 -0
- package/dist/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/dist/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/dist/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/dist/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/dist/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/dist/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/dist/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/dist/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/dist/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/dist/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/dist/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/dist/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/dist/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/dist/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/dist/node_modules/yaml/dist/schema/tags.js +99 -0
- package/dist/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/dist/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/dist/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/dist/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/dist/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/dist/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/dist/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/dist/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/dist/node_modules/yaml/dist/test-events.js +134 -0
- package/dist/node_modules/yaml/dist/util.d.ts +16 -0
- package/dist/node_modules/yaml/dist/util.js +28 -0
- package/dist/node_modules/yaml/dist/visit.d.ts +102 -0
- package/dist/node_modules/yaml/dist/visit.js +236 -0
- package/dist/node_modules/yaml/package.json +97 -0
- package/dist/node_modules/yaml/util.js +2 -0
- package/dist/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/zod/README.md +208 -0
- package/dist/node_modules/zod/index.cjs +33 -0
- package/dist/node_modules/zod/index.d.cts +4 -0
- package/dist/node_modules/zod/index.d.ts +4 -0
- package/dist/node_modules/zod/index.js +4 -0
- package/dist/node_modules/zod/package.json +118 -0
- package/dist/node_modules/zod/src/index.ts +4 -0
- package/dist/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/zod/src/v3/types.ts +5136 -0
- package/dist/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/dist/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/dist/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/dist/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/dist/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/dist/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/dist/node_modules/zod/src/v4/core/config.ts +15 -0
- package/dist/node_modules/zod/src/v4/core/core.ts +134 -0
- package/dist/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/dist/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/dist/node_modules/zod/src/v4/core/function.ts +176 -0
- package/dist/node_modules/zod/src/v4/core/index.ts +15 -0
- package/dist/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/dist/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/dist/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/dist/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/dist/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/dist/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/dist/node_modules/zod/src/v4/core/util.ts +775 -0
- package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/dist/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/dist/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/dist/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/dist/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/dist/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/dist/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/dist/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/dist/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/dist/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/dist/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/dist/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/dist/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/dist/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/dist/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/dist/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/dist/node_modules/zod/v3/ZodError.cjs +138 -0
- package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/zod/v3/ZodError.js +133 -0
- package/dist/node_modules/zod/v3/errors.cjs +17 -0
- package/dist/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/zod/v3/external.cjs +22 -0
- package/dist/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/zod/v3/index.cjs +33 -0
- package/dist/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/zod/v3/locales/en.cjs +111 -0
- package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/zod/v3/types.cjs +3775 -0
- package/dist/node_modules/zod/v3/types.d.cts +1031 -0
- package/dist/node_modules/zod/v3/types.d.ts +1031 -0
- package/dist/node_modules/zod/v3/types.js +3693 -0
- package/dist/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/dist/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/dist/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/dist/node_modules/zod/v4/classic/compat.js +27 -0
- package/dist/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.js +41 -0
- package/dist/node_modules/zod/v4/classic/external.cjs +70 -0
- package/dist/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/dist/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/dist/node_modules/zod/v4/classic/external.js +18 -0
- package/dist/node_modules/zod/v4/classic/index.cjs +33 -0
- package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/dist/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/dist/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.js +30 -0
- package/dist/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/dist/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/dist/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/dist/node_modules/zod/v4/classic/parse.js +6 -0
- package/dist/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/dist/node_modules/zod/v4/core/api.cjs +1039 -0
- package/dist/node_modules/zod/v4/core/api.d.cts +284 -0
- package/dist/node_modules/zod/v4/core/api.d.ts +284 -0
- package/dist/node_modules/zod/v4/core/api.js +906 -0
- package/dist/node_modules/zod/v4/core/checks.cjs +591 -0
- package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/dist/node_modules/zod/v4/core/checks.js +565 -0
- package/dist/node_modules/zod/v4/core/core.cjs +67 -0
- package/dist/node_modules/zod/v4/core/core.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/core.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/core.js +61 -0
- package/dist/node_modules/zod/v4/core/doc.cjs +39 -0
- package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/zod/v4/core/doc.js +35 -0
- package/dist/node_modules/zod/v4/core/errors.cjs +226 -0
- package/dist/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/dist/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/dist/node_modules/zod/v4/core/errors.js +195 -0
- package/dist/node_modules/zod/v4/core/function.cjs +102 -0
- package/dist/node_modules/zod/v4/core/function.d.cts +52 -0
- package/dist/node_modules/zod/v4/core/function.d.ts +52 -0
- package/dist/node_modules/zod/v4/core/function.js +75 -0
- package/dist/node_modules/zod/v4/core/index.cjs +44 -0
- package/dist/node_modules/zod/v4/core/index.d.cts +15 -0
- package/dist/node_modules/zod/v4/core/index.d.ts +15 -0
- package/dist/node_modules/zod/v4/core/index.js +15 -0
- package/dist/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/parse.cjs +87 -0
- package/dist/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/dist/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/dist/node_modules/zod/v4/core/parse.js +57 -0
- package/dist/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/dist/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/dist/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/dist/node_modules/zod/v4/core/regexes.js +95 -0
- package/dist/node_modules/zod/v4/core/registries.cjs +56 -0
- package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/dist/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/dist/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/dist/node_modules/zod/v4/core/schemas.js +1717 -0
- package/dist/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/dist/node_modules/zod/v4/core/util.cjs +539 -0
- package/dist/node_modules/zod/v4/core/util.d.cts +183 -0
- package/dist/node_modules/zod/v4/core/util.d.ts +183 -0
- package/dist/node_modules/zod/v4/core/util.js +493 -0
- package/dist/node_modules/zod/v4/core/versions.cjs +8 -0
- package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/zod/v4/index.cjs +22 -0
- package/dist/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/index.js +3 -0
- package/dist/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ar.js +116 -0
- package/dist/node_modules/zod/v4/locales/az.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/az.js +115 -0
- package/dist/node_modules/zod/v4/locales/be.cjs +190 -0
- package/dist/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/be.js +164 -0
- package/dist/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.js +118 -0
- package/dist/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/dist/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.js +135 -0
- package/dist/node_modules/zod/v4/locales/de.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/de.js +116 -0
- package/dist/node_modules/zod/v4/locales/en.cjs +145 -0
- package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/en.js +117 -0
- package/dist/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.js +116 -0
- package/dist/node_modules/zod/v4/locales/es.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/es.js +117 -0
- package/dist/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/dist/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.js +122 -0
- package/dist/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/dist/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.js +122 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/dist/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.js +116 -0
- package/dist/node_modules/zod/v4/locales/he.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/he.js +117 -0
- package/dist/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.js +117 -0
- package/dist/node_modules/zod/v4/locales/id.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/id.js +116 -0
- package/dist/node_modules/zod/v4/locales/index.cjs +84 -0
- package/dist/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/dist/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/dist/node_modules/zod/v4/locales/index.js +39 -0
- package/dist/node_modules/zod/v4/locales/it.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/it.js +117 -0
- package/dist/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.js +115 -0
- package/dist/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/kh.js +117 -0
- package/dist/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/dist/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.js +121 -0
- package/dist/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.js +118 -0
- package/dist/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.js +116 -0
- package/dist/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.js +117 -0
- package/dist/node_modules/zod/v4/locales/no.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/no.js +116 -0
- package/dist/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.js +117 -0
- package/dist/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.js +117 -0
- package/dist/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/dist/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.js +122 -0
- package/dist/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.js +116 -0
- package/dist/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/dist/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.js +164 -0
- package/dist/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.js +117 -0
- package/dist/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.js +118 -0
- package/dist/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.js +117 -0
- package/dist/node_modules/zod/v4/locales/th.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/th.js +117 -0
- package/dist/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.js +115 -0
- package/dist/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ua.js +117 -0
- package/dist/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.js +117 -0
- package/dist/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.js +116 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/dist/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.js +17 -0
- package/dist/node_modules/zod/v4/mini/external.cjs +62 -0
- package/dist/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/dist/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/dist/node_modules/zod/v4/mini/external.js +13 -0
- package/dist/node_modules/zod/v4/mini/index.cjs +32 -0
- package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.js +30 -0
- package/dist/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/dist/node_modules/zod/v4/mini/schemas.js +732 -0
- package/dist/node_modules/zod/v4-mini/index.cjs +17 -0
- package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/dist/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/dist/node_modules/zod/v4-mini/index.js +1 -0
- package/dist/node_modules/zwitch/index.d.ts +67 -0
- package/dist/node_modules/zwitch/index.js +118 -0
- package/dist/node_modules/zwitch/license +22 -0
- package/dist/node_modules/zwitch/package.json +72 -0
- package/dist/node_modules/zwitch/readme.md +226 -0
- package/dist/owner-report.d.ts +26 -0
- package/dist/owner-report.js +98 -0
- package/dist/policy.d.ts +3 -3
- package/dist/policy.js +2 -1
- package/dist/runtime-manifest.json +1 -0
- package/dist/server-ops.d.ts +10 -0
- package/dist/server-ops.js +231 -3
- package/dist/staged-connect.d.ts +37 -0
- package/dist/staged-connect.js +296 -0
- package/dist/staged-device.d.ts +109 -0
- package/dist/staged-device.js +227 -0
- package/dist/staged-session.d.ts +115 -0
- package/dist/staged-session.js +354 -0
- package/dist/state.d.ts +36 -8
- package/dist/state.js +101 -15
- package/package.json +10 -6
|
@@ -0,0 +1,3147 @@
|
|
|
1
|
+
import { quote } from '../utils/shell-quote.js';
|
|
2
|
+
import { logForDebugging } from '../utils/debug.js';
|
|
3
|
+
import { realPathOf, wayTo } from '../utils/real-path.js';
|
|
4
|
+
import { whichSync } from '../utils/which.js';
|
|
5
|
+
import { randomBytes } from 'node:crypto';
|
|
6
|
+
import * as fs from 'fs';
|
|
7
|
+
import { spawn, spawnSync } from 'node:child_process';
|
|
8
|
+
import { endianness, tmpdir } from 'node:os';
|
|
9
|
+
import path, { join } from 'node:path';
|
|
10
|
+
import { ripGrep, RipgrepError } from '../utils/ripgrep.js';
|
|
11
|
+
import { buildJavaToolOptions } from './java-proxy-agent.js';
|
|
12
|
+
import { readNamesOf, writeNamesOf } from './path-entries.js';
|
|
13
|
+
import { generateProxyEnvVars, buildPosixGitSafeDirEnv, normalizePathForSandbox, normalizeCaseForComparison, isSymlinkOutsideBoundary, encodeSandboxedCommand, attributionKeyFor, DANGEROUS_FILES, isAbsenceErrno, isAtOrUnder, isStrictlyUnder, properAncestors, nameLocation, getDangerousDirectories, workingDirectory, } from './sandbox-utils.js';
|
|
14
|
+
import { getApplySeccompBinaryPath } from './generate-seccomp-filter.js';
|
|
15
|
+
/** Default max depth for searching dangerous files */
|
|
16
|
+
const DEFAULT_MANDATORY_DENY_SEARCH_DEPTH = 3;
|
|
17
|
+
/**
|
|
18
|
+
* Find if any component of the path is a symlink within the allowed write paths.
|
|
19
|
+
* Returns the symlink path if found, or null if no symlinks.
|
|
20
|
+
*
|
|
21
|
+
* This is used to detect and block symlink replacement attacks where an attacker
|
|
22
|
+
* could delete a symlink and create a real directory with malicious content.
|
|
23
|
+
*/
|
|
24
|
+
function findSymlinkInPath(targetPath, allowedWritePaths) {
|
|
25
|
+
const parts = targetPath.split(path.sep);
|
|
26
|
+
let currentPath = '';
|
|
27
|
+
for (const part of parts) {
|
|
28
|
+
if (!part)
|
|
29
|
+
continue; // Skip empty parts (leading /)
|
|
30
|
+
const nextPath = currentPath + path.sep + part;
|
|
31
|
+
try {
|
|
32
|
+
const stats = fs.lstatSync(nextPath);
|
|
33
|
+
if (stats.isSymbolicLink()) {
|
|
34
|
+
// Check if this symlink is within an allowed write path
|
|
35
|
+
const isWithinAllowedPath = allowedWritePaths.some(allowedPath => isAtOrUnder(nextPath, allowedPath));
|
|
36
|
+
if (isWithinAllowedPath) {
|
|
37
|
+
return nextPath;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
// Path doesn't exist - no symlink issue here
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
currentPath = nextPath;
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
/** As many missing names as one way is followed up from again. */
|
|
50
|
+
const MAX_MISSING_NAMES_PASSED = 40;
|
|
51
|
+
/**
|
|
52
|
+
* Canonicalize a deny path through symlinks before any mask or bind is
|
|
53
|
+
* computed (resolve-before-mask). Deny paths regularly contain symlinked
|
|
54
|
+
* ancestors — the common dotfiles setup symlinks .claude (or the parent of
|
|
55
|
+
* .mcp.json) to a real directory — and masking the raw symlink with
|
|
56
|
+
* `--ro-bind /dev/null <symlink>` makes bwrap abort at startup: "Is a
|
|
57
|
+
* directory" for relative link targets, ENOENT for absolute ones.
|
|
58
|
+
*
|
|
59
|
+
* Resolution: realpath when the full path exists; otherwise canonicalize the
|
|
60
|
+
* deepest existing ancestor and re-join the missing components.
|
|
61
|
+
*
|
|
62
|
+
* A dangling symlink along the way is followed as the kernel follows it, name
|
|
63
|
+
* by name, to the first name that is not there. What lies beyond that name is
|
|
64
|
+
* undecided, since whoever makes it decides where the way goes on. So the
|
|
65
|
+
* answer ends with it, and with the name that follows it if one does, which
|
|
66
|
+
* makes a directory of it: the caller's placeholder on the first missing
|
|
67
|
+
* component then keeps the whole way from coming about.
|
|
68
|
+
*
|
|
69
|
+
* A way that goes up again at once from the missing name is let pass by a
|
|
70
|
+
* directory put there as a placeholder. So that name goes to `alsoDenied`, to
|
|
71
|
+
* be denied for itself, and the way is followed on from where it would lead.
|
|
72
|
+
*
|
|
73
|
+
* A directory on the way that cannot be searched is the answer itself: what
|
|
74
|
+
* lies in it cannot be told, and denied whole it keeps its place and its mode.
|
|
75
|
+
*
|
|
76
|
+
* Returns null when the path cannot be canonicalized (a symlink cycle, a name
|
|
77
|
+
* that is no text). Callers fail closed on it.
|
|
78
|
+
*
|
|
79
|
+
* Unlike normalizePathForSandbox, this intentionally applies no
|
|
80
|
+
* isSymlinkOutsideBoundary check: that check exists so allow paths can't
|
|
81
|
+
* silently widen write access through a symlink, but a deny path only ever
|
|
82
|
+
* removes access, and the mask must land on the inode that writes through
|
|
83
|
+
* the symlink actually reach.
|
|
84
|
+
*/
|
|
85
|
+
function resolveSymlinkedDenyPath(targetPath, alsoDenied) {
|
|
86
|
+
try {
|
|
87
|
+
return realPathOf(targetPath);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
// Some component is missing or dangling — canonicalize manually below.
|
|
91
|
+
}
|
|
92
|
+
// Find the deepest ancestor that fully resolves, collecting the missing
|
|
93
|
+
// suffix components (leaf first, so unshift keeps them in path order).
|
|
94
|
+
let ancestor = targetPath;
|
|
95
|
+
const remainder = [];
|
|
96
|
+
let resolvedAncestor = null;
|
|
97
|
+
while (resolvedAncestor === null) {
|
|
98
|
+
const parent = path.dirname(ancestor);
|
|
99
|
+
if (parent === ancestor) {
|
|
100
|
+
return null; // reached the root without resolving anything
|
|
101
|
+
}
|
|
102
|
+
remainder.unshift(path.basename(ancestor));
|
|
103
|
+
ancestor = parent;
|
|
104
|
+
try {
|
|
105
|
+
resolvedAncestor = realPathOf(ancestor);
|
|
106
|
+
}
|
|
107
|
+
catch {
|
|
108
|
+
// Keep walking up.
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// The first missing component may be a dangling symlink (lstat succeeds,
|
|
112
|
+
// realpath fails); otherwise the remainder is genuinely non-existent and
|
|
113
|
+
// the re-joined path is final.
|
|
114
|
+
const rejoined = path.join(resolvedAncestor, ...remainder);
|
|
115
|
+
try {
|
|
116
|
+
fs.readlinkSync(path.join(resolvedAncestor, remainder[0]));
|
|
117
|
+
}
|
|
118
|
+
catch {
|
|
119
|
+
return rejoined; // Not a symlink — nothing left to resolve.
|
|
120
|
+
}
|
|
121
|
+
let why = 'it goes up from too many names that are not there';
|
|
122
|
+
try {
|
|
123
|
+
let onward = rejoined;
|
|
124
|
+
for (let i = 0; i < MAX_MISSING_NAMES_PASSED; i++) {
|
|
125
|
+
const { real, rest, notThere } = wayTo(onward);
|
|
126
|
+
if (notThere?.code === 'EACCES') {
|
|
127
|
+
return real || '/';
|
|
128
|
+
}
|
|
129
|
+
const names = rest.filter(name => name !== '' && name !== '.');
|
|
130
|
+
if (names[1] !== '..') {
|
|
131
|
+
return [real, ...names.slice(0, 2)].join('/') || '/';
|
|
132
|
+
}
|
|
133
|
+
alsoDenied?.push(`${real}/${names[0]}`);
|
|
134
|
+
onward = [real, ...names.slice(2)].join('/');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch (err) {
|
|
138
|
+
why = err;
|
|
139
|
+
}
|
|
140
|
+
// Said by the pass that acts on it, not by the one that gathers.
|
|
141
|
+
if (alsoDenied === undefined) {
|
|
142
|
+
logForDebugging(`[Sandbox Linux] Where a write to ${targetPath} would land cannot be settled: ${why}. The link on the way is masked instead, which can keep the sandbox from starting.`, { level: 'warn' });
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* The first existing component of the path that is not a directory, if there
|
|
148
|
+
* is one. Nothing can be created below it for as long as it is there: a git
|
|
149
|
+
* worktree's `.git` is a file, so there is no `.git/hooks`.
|
|
150
|
+
*/
|
|
151
|
+
function fileOnTheWay(targetPath) {
|
|
152
|
+
const parts = targetPath.split(path.sep);
|
|
153
|
+
let currentPath = '';
|
|
154
|
+
for (const part of parts) {
|
|
155
|
+
if (!part)
|
|
156
|
+
continue; // Skip empty parts (leading /)
|
|
157
|
+
const nextPath = currentPath + path.sep + part;
|
|
158
|
+
try {
|
|
159
|
+
if (!fs.statSync(nextPath).isDirectory())
|
|
160
|
+
return nextPath;
|
|
161
|
+
}
|
|
162
|
+
catch {
|
|
163
|
+
// Path doesn't exist — stop checking
|
|
164
|
+
break;
|
|
165
|
+
}
|
|
166
|
+
currentPath = nextPath;
|
|
167
|
+
}
|
|
168
|
+
return undefined;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Find the first non-existent path component.
|
|
172
|
+
* E.g., for "/existing/parent/nonexistent/child/file.txt" where /existing/parent exists,
|
|
173
|
+
* returns "/existing/parent/nonexistent"
|
|
174
|
+
*
|
|
175
|
+
* This is used to block creation of non-existent deny paths by mounting /dev/null
|
|
176
|
+
* at the first missing component, preventing mkdir from creating the parent directories.
|
|
177
|
+
*/
|
|
178
|
+
function findFirstNonExistentComponent(targetPath) {
|
|
179
|
+
const parts = targetPath.split(path.sep);
|
|
180
|
+
let currentPath = '';
|
|
181
|
+
for (const part of parts) {
|
|
182
|
+
if (!part)
|
|
183
|
+
continue; // Skip empty parts (leading /)
|
|
184
|
+
const nextPath = currentPath + path.sep + part;
|
|
185
|
+
if (!fs.existsSync(nextPath)) {
|
|
186
|
+
return nextPath;
|
|
187
|
+
}
|
|
188
|
+
currentPath = nextPath;
|
|
189
|
+
}
|
|
190
|
+
return targetPath; // Shouldn't reach here if called correctly
|
|
191
|
+
}
|
|
192
|
+
/** What the placeholder for an absent deny path is mounted on. */
|
|
193
|
+
var MountPointKind;
|
|
194
|
+
(function (MountPointKind) {
|
|
195
|
+
/** A file made on the host for it, which /dev/null goes on. */
|
|
196
|
+
MountPointKind["File"] = "file";
|
|
197
|
+
/** A directory made on the host for it, which an empty one goes on. */
|
|
198
|
+
MountPointKind["Directory"] = "directory";
|
|
199
|
+
/** The file above the path, which goes on itself. Nothing is made. */
|
|
200
|
+
MountPointKind["Held"] = "held";
|
|
201
|
+
/** None can be made. Nothing is mounted; what lies above is still pinned. */
|
|
202
|
+
MountPointKind["Unmakeable"] = "unmakeable";
|
|
203
|
+
})(MountPointKind || (MountPointKind = {}));
|
|
204
|
+
/** open(2)'s O_PATH on x86-64 and arm64; node:fs does not name it. Where the
|
|
205
|
+
* bit means something else the open is an ordinary one or fails, and a failure
|
|
206
|
+
* keeps the placeholder. */
|
|
207
|
+
const O_PATH = 0o10000000;
|
|
208
|
+
/** statfs(2)'s type for 9p, which is how WSL 2 mounts a Windows drive. */
|
|
209
|
+
const V9FS_MAGIC = 0x01021997;
|
|
210
|
+
/**
|
|
211
|
+
* The kind of mount point that can be made at `dest`, an absent path whose
|
|
212
|
+
* parent is there: `wanted`, a directory where only a file is refused, or
|
|
213
|
+
* unmakeable. bubblewrap makes it on the host as this user, before the command
|
|
214
|
+
* runs, and exits if it cannot.
|
|
215
|
+
*
|
|
216
|
+
* Unmakeable only where the refusal is not this user's to lift, so that the
|
|
217
|
+
* command cannot create `dest` either; `wanted` on any doubt (see
|
|
218
|
+
* mountPointFor).
|
|
219
|
+
*/
|
|
220
|
+
function makeableMountPoint(dest, wanted) {
|
|
221
|
+
/** The errno `attempt` is refused with. Any other failure is a doubt. */
|
|
222
|
+
const refusalOf = (attempt) => {
|
|
223
|
+
try {
|
|
224
|
+
attempt();
|
|
225
|
+
return undefined;
|
|
226
|
+
}
|
|
227
|
+
catch (err) {
|
|
228
|
+
const code = err.code;
|
|
229
|
+
if (code === 'EACCES' || code === 'EPERM' || code === 'EROFS')
|
|
230
|
+
return code;
|
|
231
|
+
throw err;
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
let fd;
|
|
235
|
+
try {
|
|
236
|
+
// One descriptor answers every question, through /proc: a command still
|
|
237
|
+
// running could put another directory at the path between two of them.
|
|
238
|
+
// Its link differs from the path when a symlink was followed on the way.
|
|
239
|
+
fd = fs.openSync(path.dirname(dest), O_PATH | fs.constants.O_NOFOLLOW | fs.constants.O_DIRECTORY);
|
|
240
|
+
const parent = `/proc/self/fd/${fd}`;
|
|
241
|
+
if (fs.readlinkSync(parent) !== path.dirname(dest))
|
|
242
|
+
return wanted;
|
|
243
|
+
const { uid, mode } = fs.fstatSync(fd);
|
|
244
|
+
// What the kernel asks of a directory before it creates anything in it.
|
|
245
|
+
const refusal = refusalOf(() => fs.accessSync(parent, fs.constants.W_OK | fs.constants.X_OK));
|
|
246
|
+
if (fs.statfsSync(parent).type !== V9FS_MAGIC) {
|
|
247
|
+
// EACCES is the word of the mode or an ACL, which the owner can change,
|
|
248
|
+
// and bubblewrap's user namespace overrides it for the owner. A
|
|
249
|
+
// read-only file system (EROFS) and an immutable directory (EPERM)
|
|
250
|
+
// refuse whoever asks from in there.
|
|
251
|
+
return refusal === undefined ||
|
|
252
|
+
(refusal === 'EACCES' && uid === process.geteuid?.())
|
|
253
|
+
? wanted
|
|
254
|
+
: MountPointKind.Unmakeable;
|
|
255
|
+
}
|
|
256
|
+
// On a Windows drive the Windows ACL decides, and nothing on this side
|
|
257
|
+
// tells it: every directory there is this user's, with a mode that lets it
|
|
258
|
+
// write, also one that takes subfolders and no files. So the mount point
|
|
259
|
+
// is made here instead of by bubblewrap, which finds it there.
|
|
260
|
+
if (refusal === undefined) {
|
|
261
|
+
const entry = `${parent}/${path.basename(dest)}`;
|
|
262
|
+
if (wanted === MountPointKind.File &&
|
|
263
|
+
refusalOf(() => fs.closeSync(fs.openSync(entry, 'wx', 0o444))) ===
|
|
264
|
+
undefined) {
|
|
265
|
+
return MountPointKind.File;
|
|
266
|
+
}
|
|
267
|
+
if (refusalOf(() => fs.mkdirSync(entry)) === undefined) {
|
|
268
|
+
return MountPointKind.Directory;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
// The name may be refused for a reason that passes. The folder is beyond
|
|
272
|
+
// this user when it may not even be given the mode it has.
|
|
273
|
+
return refusalOf(() => fs.chmodSync(parent, mode & 0o7777)) === undefined
|
|
274
|
+
? wanted
|
|
275
|
+
: MountPointKind.Unmakeable;
|
|
276
|
+
}
|
|
277
|
+
catch {
|
|
278
|
+
return wanted;
|
|
279
|
+
}
|
|
280
|
+
finally {
|
|
281
|
+
if (fd !== undefined)
|
|
282
|
+
fs.closeSync(fd);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
/** What the `.git` of a directory is, and so what is denied there. */
|
|
286
|
+
var DotGitKind;
|
|
287
|
+
(function (DotGitKind) {
|
|
288
|
+
/** A repository: its hooks and config are denied. */
|
|
289
|
+
DotGitKind["Directory"] = "directory";
|
|
290
|
+
/**
|
|
291
|
+
* The pointer of a worktree or a submodule ("gitdir: /path/..."). There are
|
|
292
|
+
* no .git/hooks for as long as it is a file, so the file is denied, which
|
|
293
|
+
* keeps it one.
|
|
294
|
+
*/
|
|
295
|
+
DotGitKind["File"] = "file";
|
|
296
|
+
/** Nothing is denied: a mount at .git would keep `git init` from making it. */
|
|
297
|
+
DotGitKind["Absent"] = "absent";
|
|
298
|
+
})(DotGitKind || (DotGitKind = {}));
|
|
299
|
+
function dotGitKindAt(dotGitPath) {
|
|
300
|
+
try {
|
|
301
|
+
return fs.statSync(dotGitPath).isDirectory()
|
|
302
|
+
? DotGitKind.Directory
|
|
303
|
+
: DotGitKind.File;
|
|
304
|
+
}
|
|
305
|
+
catch {
|
|
306
|
+
return DotGitKind.Absent;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* The part of the mandatory deny set that follows from the cwd alone: the
|
|
311
|
+
* dangerous files and directories resolved against it, plus `.git/hooks` and
|
|
312
|
+
* (unless the caller allows git config) `.git/config`, or a `.git` that is a
|
|
313
|
+
* file.
|
|
314
|
+
* {@link linuxGetMandatoryDenyPaths} adds the nested matches its ripgrep scan
|
|
315
|
+
* finds on top of these. Split out so a consumer that must not scan — the
|
|
316
|
+
* violation monitor, which needs the same denies to judge a write bwrap
|
|
317
|
+
* refuses — reads the same definition rather than a copy of it.
|
|
318
|
+
*/
|
|
319
|
+
export function linuxGetCwdMandatoryDenyPaths(allowGitConfig = false) {
|
|
320
|
+
const cwd = process.cwd();
|
|
321
|
+
// Note: Settings files are added at the callsite in sandbox-manager.ts
|
|
322
|
+
const denyPaths = [
|
|
323
|
+
// Dangerous files in CWD
|
|
324
|
+
...DANGEROUS_FILES.map(f => path.resolve(cwd, f)),
|
|
325
|
+
// Dangerous directories in CWD
|
|
326
|
+
...getDangerousDirectories().map(d => path.resolve(cwd, d)),
|
|
327
|
+
];
|
|
328
|
+
// Only the cwd's own: a .git file below it is git's to rewrite and remove
|
|
329
|
+
// (a checkout that recurses into submodules does).
|
|
330
|
+
const dotGitPath = path.resolve(cwd, '.git');
|
|
331
|
+
const dotGit = dotGitKindAt(dotGitPath);
|
|
332
|
+
if (dotGit === DotGitKind.File) {
|
|
333
|
+
denyPaths.push(dotGitPath);
|
|
334
|
+
}
|
|
335
|
+
if (dotGit === DotGitKind.Directory) {
|
|
336
|
+
// Git hooks always blocked for security
|
|
337
|
+
denyPaths.push(path.resolve(cwd, '.git/hooks'));
|
|
338
|
+
// Git config conditionally blocked based on allowGitConfig setting
|
|
339
|
+
if (!allowGitConfig) {
|
|
340
|
+
denyPaths.push(path.resolve(cwd, '.git/config'));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
return denyPaths;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* The directories below `cwd`, down to `maxDepth`, that ripgrep said it could
|
|
347
|
+
* not read, that this process cannot read either, and whose mode is this
|
|
348
|
+
* user's to change. What is in one is not known, so the caller denies it whole.
|
|
349
|
+
* Exported for testing.
|
|
350
|
+
*/
|
|
351
|
+
export function unreadableDirectories(stderr, cwd, maxDepth) {
|
|
352
|
+
const found = [];
|
|
353
|
+
const tried = new Set();
|
|
354
|
+
for (const line of stderr.split('\n')) {
|
|
355
|
+
// How a message is worded depends on ripgrep's version and on how many
|
|
356
|
+
// threads it has, so what stands before each ": " is tried.
|
|
357
|
+
const said = line.startsWith('rg: ') ? line.slice(4) : line;
|
|
358
|
+
for (let cut = said.indexOf(': '); cut !== -1; cut = said.indexOf(': ', cut + 1)) {
|
|
359
|
+
for (let dir = path.resolve(cwd, said.slice(0, cut)); dir.startsWith(cwd + path.sep) && !tried.has(dir); dir = path.dirname(dir)) {
|
|
360
|
+
tried.add(dir);
|
|
361
|
+
try {
|
|
362
|
+
// THREAT: the text is only a hint. A name can hold a newline and a
|
|
363
|
+
// whole message of its own, and a bind of `link/x` would bring what
|
|
364
|
+
// the link leads to INTO the sandbox. So: a directory, with no link
|
|
365
|
+
// on the way to it, that cannot be read from here. And this user's:
|
|
366
|
+
// nobody else's mode can be given back from inside, and there can
|
|
367
|
+
// be thousands of those (`/home`), each of them a mount.
|
|
368
|
+
const stat = fs.lstatSync(dir);
|
|
369
|
+
if (!stat.isDirectory() ||
|
|
370
|
+
stat.uid !== process.getuid?.() ||
|
|
371
|
+
realPathOf(dir) !== dir) {
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
catch (error) {
|
|
376
|
+
// What cannot be looked at, because what holds it cannot be
|
|
377
|
+
// searched, is stood in for by the directory above it.
|
|
378
|
+
if (error.code === 'EACCES')
|
|
379
|
+
continue;
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
try {
|
|
383
|
+
fs.accessSync(dir, fs.constants.R_OK | fs.constants.X_OK);
|
|
384
|
+
}
|
|
385
|
+
catch {
|
|
386
|
+
if (path.relative(cwd, dir).split(path.sep).length <= maxDepth) {
|
|
387
|
+
found.push(dir);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return found;
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* Get mandatory deny paths using ripgrep (Linux only).
|
|
398
|
+
* Uses a SINGLE ripgrep call with multiple glob patterns for efficiency.
|
|
399
|
+
* With --max-depth limiting, this is fast enough to run on each command without memoization.
|
|
400
|
+
*/
|
|
401
|
+
async function linuxGetMandatoryDenyPaths(ripgrepConfig = { command: 'rg' }, maxDepth = DEFAULT_MANDATORY_DENY_SEARCH_DEPTH, allowGitConfig = false, abortSignal) {
|
|
402
|
+
const cwd = process.cwd();
|
|
403
|
+
// Use provided signal or create a fallback controller
|
|
404
|
+
const fallbackController = new AbortController();
|
|
405
|
+
const signal = abortSignal ?? fallbackController.signal;
|
|
406
|
+
const dangerousDirectories = getDangerousDirectories();
|
|
407
|
+
const denyPaths = linuxGetCwdMandatoryDenyPaths(allowGitConfig);
|
|
408
|
+
// Build iglob args for all patterns in one ripgrep call
|
|
409
|
+
const iglobArgs = [];
|
|
410
|
+
for (const fileName of DANGEROUS_FILES) {
|
|
411
|
+
iglobArgs.push('--iglob', fileName);
|
|
412
|
+
}
|
|
413
|
+
for (const dirName of dangerousDirectories) {
|
|
414
|
+
iglobArgs.push('--iglob', `**/${dirName}/**`);
|
|
415
|
+
}
|
|
416
|
+
// Git hooks always blocked in nested repos. A repository is known by its
|
|
417
|
+
// HEAD, so that its hooks are denied before there are any.
|
|
418
|
+
iglobArgs.push('--iglob', '**/.git/hooks/**', '--iglob', '**/.git/HEAD');
|
|
419
|
+
// Git config conditionally blocked in nested repos
|
|
420
|
+
if (!allowGitConfig) {
|
|
421
|
+
iglobArgs.push('--iglob', '**/.git/config');
|
|
422
|
+
}
|
|
423
|
+
// Single ripgrep call to find all dangerous paths in subdirectories
|
|
424
|
+
// Limit depth for performance - deeply nested dangerous files are rare
|
|
425
|
+
// and the security benefit doesn't justify the traversal cost
|
|
426
|
+
//
|
|
427
|
+
// ripgrep lists files, and its depth is the file's. `sub/.vscode/x` and
|
|
428
|
+
// `sub/.git/config` lie at `maxDepth`; `sub/.git/hooks/pre-commit`, of the
|
|
429
|
+
// same directory, one level further down.
|
|
430
|
+
let matches = [];
|
|
431
|
+
try {
|
|
432
|
+
matches = await ripGrep([
|
|
433
|
+
'--files',
|
|
434
|
+
'--hidden',
|
|
435
|
+
// INVARIANT: no file decides what is listed. An ignore file that names
|
|
436
|
+
// a directory hides all beneath it, and a configuration file can add
|
|
437
|
+
// any flag; both are files in or above the tree.
|
|
438
|
+
'--no-ignore',
|
|
439
|
+
'--no-config',
|
|
440
|
+
// Into a pipe ripgrep writes by the block, and killed it drops the
|
|
441
|
+
// block: it would have listed nothing.
|
|
442
|
+
'--line-buffered',
|
|
443
|
+
'--max-depth',
|
|
444
|
+
String(maxDepth + 1),
|
|
445
|
+
...iglobArgs,
|
|
446
|
+
'-g',
|
|
447
|
+
'!**/node_modules/**',
|
|
448
|
+
], cwd, signal, ripgrepConfig);
|
|
449
|
+
}
|
|
450
|
+
catch (error) {
|
|
451
|
+
// Stopped, it found nothing: the caller must not be handed a command
|
|
452
|
+
// without the denies it would have found.
|
|
453
|
+
signal.throwIfAborted();
|
|
454
|
+
// INVARIANT: what ripgrep listed counts, however it ended. It exits 2 if
|
|
455
|
+
// there was a directory it could not read, having listed the rest, and is
|
|
456
|
+
// killed after ten seconds. What it had not come to by then is not denied.
|
|
457
|
+
if (error instanceof RipgrepError) {
|
|
458
|
+
matches = error.listed;
|
|
459
|
+
// A read-only bind also keeps the command from giving the mode back.
|
|
460
|
+
denyPaths.push(...unreadableDirectories(error.stderr, cwd, maxDepth));
|
|
461
|
+
}
|
|
462
|
+
logForDebugging(`[Sandbox] ripgrep scan failed: ${error}`, {
|
|
463
|
+
level: 'warn',
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
// The names a match can lie under, by path component.
|
|
467
|
+
const directoryNames = [
|
|
468
|
+
...dangerousDirectories,
|
|
469
|
+
'.git/hooks',
|
|
470
|
+
'.git/config',
|
|
471
|
+
'.git/HEAD',
|
|
472
|
+
].map(name => normalizeCaseForComparison(name).split('/'));
|
|
473
|
+
for (const match of matches) {
|
|
474
|
+
const segments = path
|
|
475
|
+
.relative(cwd, path.resolve(cwd, match))
|
|
476
|
+
.split(path.sep);
|
|
477
|
+
const lower = segments.map(normalizeCaseForComparison);
|
|
478
|
+
// Where the dangerous name begins and how long it is: the first of
|
|
479
|
+
// `directoryNames` on the way down, else the file itself.
|
|
480
|
+
let at = segments.length - 1;
|
|
481
|
+
let length = 1;
|
|
482
|
+
// How deep the directory holding the name, `at`, may lie. One level less
|
|
483
|
+
// for `directoryNames`, all alike: each costs mounts that keep what holds
|
|
484
|
+
// it from being renamed or removed, and bwrap's start grows with them.
|
|
485
|
+
let deepest = maxDepth - 1;
|
|
486
|
+
search: for (let i = 0; i < lower.length; i++) {
|
|
487
|
+
for (const name of directoryNames) {
|
|
488
|
+
if (name.every((component, k) => lower[i + k] === component)) {
|
|
489
|
+
at = i;
|
|
490
|
+
length = name.length;
|
|
491
|
+
deepest = maxDepth - 2;
|
|
492
|
+
break search;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if (at > deepest)
|
|
497
|
+
continue;
|
|
498
|
+
const found = segments.slice(0, at + length);
|
|
499
|
+
if (lower[at] === '.git' && lower[at + 1] === 'head')
|
|
500
|
+
found[at + 1] = 'hooks';
|
|
501
|
+
denyPaths.push(path.join(cwd, ...found));
|
|
502
|
+
}
|
|
503
|
+
return [...new Set(denyPaths)];
|
|
504
|
+
}
|
|
505
|
+
// Track mount points created by bwrap for non-existent deny paths.
|
|
506
|
+
// When bwrap does --ro-bind /dev/null /nonexistent/path, it creates an empty
|
|
507
|
+
// file on the host as a mount point. These persist after bwrap exits and must
|
|
508
|
+
// be cleaned up explicitly.
|
|
509
|
+
const bwrapMountPoints = new Set();
|
|
510
|
+
// The source of the empty-directory mount points: at most one at a time, made
|
|
511
|
+
// on first use, reused while a sandbox is running, and removed with the mount
|
|
512
|
+
// points — never before, because a live bind's source must stay.
|
|
513
|
+
// generateFilesystemArgs pins it read-only inside every sandbox that uses it.
|
|
514
|
+
let emptyMountSourceDir;
|
|
515
|
+
function ensureEmptyMountSourceDir() {
|
|
516
|
+
if (emptyMountSourceDir !== undefined) {
|
|
517
|
+
// Revalidated, not trusted: the path is under the system temp dir, which
|
|
518
|
+
// sandboxed commands commonly can write, and bwrap resolves a bind source
|
|
519
|
+
// on the HOST, so a directory swapped for a symlink between two wraps
|
|
520
|
+
// would publish whatever it points at. Anything that is not our own
|
|
521
|
+
// private empty directory is left where it is: it is not ours to delete.
|
|
522
|
+
try {
|
|
523
|
+
const stat = fs.lstatSync(emptyMountSourceDir);
|
|
524
|
+
if (stat.isDirectory() &&
|
|
525
|
+
stat.uid === process.getuid?.() &&
|
|
526
|
+
(stat.mode & 0o077) === 0 &&
|
|
527
|
+
fs.readdirSync(emptyMountSourceDir).length === 0) {
|
|
528
|
+
return emptyMountSourceDir;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
catch {
|
|
532
|
+
// Gone, or no longer inspectable: make a new one below.
|
|
533
|
+
}
|
|
534
|
+
logForDebugging(`[Sandbox Linux] Not reusing the empty-directory mount source, it is gone or no longer our own empty directory: ${emptyMountSourceDir}`);
|
|
535
|
+
}
|
|
536
|
+
emptyMountSourceDir = fs.mkdtempSync(path.join(tmpdir(), 'claude-empty-'));
|
|
537
|
+
// mkdtemp asks for 0700 but the umask applies, so under `umask 0200` the
|
|
538
|
+
// directory lands on 0500. Set the mode here rather than let the check
|
|
539
|
+
// above reject the directory this call has just made.
|
|
540
|
+
fs.chmodSync(emptyMountSourceDir, 0o700);
|
|
541
|
+
return emptyMountSourceDir;
|
|
542
|
+
}
|
|
543
|
+
export const CAP_SETFCAP = 31;
|
|
544
|
+
// This process's bounding set unioned with its inheritable set, read once —
|
|
545
|
+
// see processHasBoundingCapability for why those two. Only prctl(CAPBSET_DROP)
|
|
546
|
+
// and capset move them and this library calls neither, and without the memo
|
|
547
|
+
// the read is a synchronous open of /proc/self/status on the path of every
|
|
548
|
+
// wrapped command. Only a successful read is stored, so a transient failure
|
|
549
|
+
// does not latch "no capabilities" for the life of the process.
|
|
550
|
+
let boundingCapabilities;
|
|
551
|
+
let capabilityReadFailureLogged = false;
|
|
552
|
+
/**
|
|
553
|
+
* Whether this process holds `cap` in its bounding or inheritable set (Linux).
|
|
554
|
+
*
|
|
555
|
+
* bwrap is reached by execve, and for a euid-0 caller the kernel recomputes
|
|
556
|
+
* the new permitted set from the bounding and inheritable sets, discarding
|
|
557
|
+
* what the caller itself had permitted. Those two sets are therefore what
|
|
558
|
+
* decides which capabilities bwrap holds when it writes its uid map; CapPrm
|
|
559
|
+
* and CapEff do not, and for any process itself reached by exec as root they
|
|
560
|
+
* merely repeat the union.
|
|
561
|
+
*/
|
|
562
|
+
export function processHasBoundingCapability(cap) {
|
|
563
|
+
let bits = boundingCapabilities;
|
|
564
|
+
if (bits === undefined) {
|
|
565
|
+
let failure = 'has no CapBnd or CapInh line';
|
|
566
|
+
try {
|
|
567
|
+
bits = boundingCapabilitiesFromStatus(fs.readFileSync('/proc/self/status', 'utf8'));
|
|
568
|
+
boundingCapabilities = bits;
|
|
569
|
+
}
|
|
570
|
+
catch (e) {
|
|
571
|
+
failure = `could not be read (${String(e)})`;
|
|
572
|
+
}
|
|
573
|
+
if (bits === undefined) {
|
|
574
|
+
if (!capabilityReadFailureLogged) {
|
|
575
|
+
capabilityReadFailureLogged = true;
|
|
576
|
+
logForDebugging(`[Sandbox Linux] /proc/self/status ${failure} - assuming this process holds no capabilities`, { level: 'warn' });
|
|
577
|
+
}
|
|
578
|
+
return false;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
return ((bits >> BigInt(cap)) & 1n) === 1n;
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
* The capability set an execve gives a euid-0 caller's child, parsed out of a
|
|
585
|
+
* `/proc/<pid>/status`: CapBnd unioned with CapInh. `undefined` when either
|
|
586
|
+
* line is absent. CapPrm and CapEff are deliberately not consulted — see
|
|
587
|
+
* processHasBoundingCapability.
|
|
588
|
+
*/
|
|
589
|
+
export function boundingCapabilitiesFromStatus(status) {
|
|
590
|
+
const bounding = status.match(/^CapBnd:\s*([0-9a-fA-F]+)\s*$/m);
|
|
591
|
+
const inheritable = status.match(/^CapInh:\s*([0-9a-fA-F]+)\s*$/m);
|
|
592
|
+
return bounding && inheritable
|
|
593
|
+
? BigInt('0x' + bounding[1]) | BigInt('0x' + inheritable[1])
|
|
594
|
+
: undefined;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* The bwrap capability list. Always `--cap-drop ALL`, which for a non-root
|
|
598
|
+
* caller is bwrap's default anyway. `--cap-add CAP_SETFCAP` for the whole
|
|
599
|
+
* bwrap invocation — the outer shell and the two socat relays hold it too —
|
|
600
|
+
* when the caller is uid 0, the seccomp helper is in use and the capability
|
|
601
|
+
* survives into bwrap: the helper's nested user namespace maps uid 0, which
|
|
602
|
+
* Linux 5.12 and the distribution kernels that backported it allow only from
|
|
603
|
+
* a creator holding CAP_SETFCAP. Under the helper a uid-0 caller's command
|
|
604
|
+
* therefore has a full set inside that nested namespace, which is
|
|
605
|
+
* identity-mapped to the caller's uid 0, and the filesystem policy there
|
|
606
|
+
* rests on the helper's namespaces filter refusing the calls that change a
|
|
607
|
+
* mount tree: the nested namespace's locked mount copies refuse the unmount
|
|
608
|
+
* of any one of them, not the whole tree being moved aside. Without the
|
|
609
|
+
* helper (`allowAllUnixSockets`, or no usable helper binary) the command runs
|
|
610
|
+
* in bwrap's own namespaces and `--cap-drop ALL` is what stops it unmounting
|
|
611
|
+
* a deny.
|
|
612
|
+
*
|
|
613
|
+
* Pure: `hasSetfcap` is decided by the caller, which is also where the
|
|
614
|
+
* missing-capability case is reported once per process.
|
|
615
|
+
*/
|
|
616
|
+
export function capabilityArgs({ euid, hasSetfcap, usesSeccompHelper, }) {
|
|
617
|
+
const args = ['--cap-drop', 'ALL'];
|
|
618
|
+
if (euid !== 0)
|
|
619
|
+
return args;
|
|
620
|
+
if (!hasSetfcap)
|
|
621
|
+
return args;
|
|
622
|
+
if (usesSeccompHelper)
|
|
623
|
+
args.push('--cap-add', 'CAP_SETFCAP');
|
|
624
|
+
return args;
|
|
625
|
+
}
|
|
626
|
+
// Latch for the predicted case: once per process, not once per command.
|
|
627
|
+
let setfcapMissingLogged = false;
|
|
628
|
+
// A uid-0 caller whose bounding set lacks CAP_SETFCAP cannot sandbox
|
|
629
|
+
// anything: bwrap's own --unshare-user writes a uid map containing uid 0, and
|
|
630
|
+
// so does the seccomp helper's nested namespace, and a kernel that enforces
|
|
631
|
+
// the requirement refuses both unless the namespace's creator held the
|
|
632
|
+
// capability. allowAllUnixSockets does not avoid it — it only drops the
|
|
633
|
+
// helper, not bwrap's own user namespace. Worded for both the predicted case
|
|
634
|
+
// (the debug warning on the path of a wrapped command) and the confirmed one
|
|
635
|
+
// (checkLinuxDependencies, after bubblewrap has actually refused).
|
|
636
|
+
export const CAP_SETFCAP_MISSING_MESSAGE = "running as uid 0 without CAP_SETFCAP in this process's capability bounding set - on " +
|
|
637
|
+
'kernels that enforce the CAP_SETFCAP requirement for mapping uid 0 into a user namespace ' +
|
|
638
|
+
'(Linux 5.12 and distribution backports) every sandboxed command fails while writing a uid ' +
|
|
639
|
+
'map ("Operation not permitted"). Grant CAP_SETFCAP to this process, or run as a non-root user';
|
|
640
|
+
/**
|
|
641
|
+
* Linux's per-argument cap, MAX_ARG_STRLEN: 32 pages, so 128 KiB on most
|
|
642
|
+
* kernels and up to 2 MiB with 64 KiB pages. The page size is AT_PAGESZ in
|
|
643
|
+
* /proc/self/auxv (pairs of native words); 4 KiB, the smallest, if unreadable.
|
|
644
|
+
*/
|
|
645
|
+
let linuxMaxArgStrlen;
|
|
646
|
+
function maxArgStrlen() {
|
|
647
|
+
if (linuxMaxArgStrlen === undefined) {
|
|
648
|
+
const AT_PAGESZ = 6;
|
|
649
|
+
let pageSize = 4096;
|
|
650
|
+
try {
|
|
651
|
+
const auxv = fs.readFileSync('/proc/self/auxv');
|
|
652
|
+
const wordBytes = /64|s390x/.test(process.arch) ? 8 : 4;
|
|
653
|
+
// Buffer reads at most 6 bytes as a number; no value needed here is wider.
|
|
654
|
+
const low = Math.min(wordBytes, 6);
|
|
655
|
+
const word = (at) => endianness() === 'BE'
|
|
656
|
+
? auxv.readUIntBE(at + wordBytes - low, low)
|
|
657
|
+
: auxv.readUIntLE(at, low);
|
|
658
|
+
for (let at = 0; at + 2 * wordBytes <= auxv.length; at += 2 * wordBytes) {
|
|
659
|
+
if (word(at) === AT_PAGESZ) {
|
|
660
|
+
pageSize = word(at + wordBytes);
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
catch {
|
|
666
|
+
// No /proc: the smallest page size only moves a profile to the file
|
|
667
|
+
// sooner than it had to.
|
|
668
|
+
}
|
|
669
|
+
linuxMaxArgStrlen = 32 * pageSize;
|
|
670
|
+
}
|
|
671
|
+
return linuxMaxArgStrlen;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Room left below the cap when deciding whether the profile stays on the
|
|
675
|
+
* command line: the embedder may put a prefix of its own (`exec`, `cd x &&`,
|
|
676
|
+
* an assignment) in the same argument.
|
|
677
|
+
*/
|
|
678
|
+
const ARG_HEADROOM_BYTES = 4096;
|
|
679
|
+
/** bwrap's cap on parsed words, the command line and `--args` file together. */
|
|
680
|
+
const BWRAP_MAX_ARGS = 9000;
|
|
681
|
+
/**
|
|
682
|
+
* The fd the `--args` file is opened on: a single digit, since dash rejects
|
|
683
|
+
* multi-digit redirections, and high, since embedders hand the command low
|
|
684
|
+
* fds of their own (an extra stdio pipe, a helper as `/proc/self/fd/3`).
|
|
685
|
+
*/
|
|
686
|
+
const BWRAP_ARGS_FD = 9;
|
|
687
|
+
/**
|
|
688
|
+
* Linux's O_TMPFILE, which neither Node nor Bun exposes in `fs.constants`:
|
|
689
|
+
* the asm-generic __O_TMPFILE, the value on every architecture they build
|
|
690
|
+
* for Linux, together with the O_DIRECTORY the flag is defined to carry — a
|
|
691
|
+
* kernel or filesystem that does not know it therefore fails the open on the
|
|
692
|
+
* directory rather than creating a named file.
|
|
693
|
+
*/
|
|
694
|
+
const O_TMPFILE = 0o20000000 | fs.constants.O_DIRECTORY;
|
|
695
|
+
/**
|
|
696
|
+
* The `--args` profiles this process holds open.
|
|
697
|
+
*
|
|
698
|
+
* A profile is an unnamed file (O_TMPFILE): written at wrap time, kept open
|
|
699
|
+
* here, and opened again by the string bwrap runs through
|
|
700
|
+
* `/proc/<pid>/fd/<n>`, which is a fresh read-only description of the same
|
|
701
|
+
* inode at offset 0. Nothing is named at any point, so there is nothing for
|
|
702
|
+
* anyone to substitute between the wrap and the execution — not a sandbox
|
|
703
|
+
* that renames an ancestor of tmpdir, not a sandbox another process of the
|
|
704
|
+
* same user launched with tmpdir writable. Every sandbox this library starts
|
|
705
|
+
* has its own PID namespace and a fresh /proc, so none of them can reach
|
|
706
|
+
* /proc/<this pid> either.
|
|
707
|
+
*
|
|
708
|
+
* Fds close when the sandboxes of a batch are cleaned up, and fd numbers are
|
|
709
|
+
* reused: a string kept past its cleanup and run later opens whatever the
|
|
710
|
+
* number means by then — nothing (the redirection fails and the command does
|
|
711
|
+
* not run), something bwrap refuses, or another profile of this process,
|
|
712
|
+
* never one from outside it.
|
|
713
|
+
*/
|
|
714
|
+
const bwrapArgsFds = new Set();
|
|
715
|
+
/** Where the string bwrap runs opens the profile held on `fd`. */
|
|
716
|
+
function bwrapArgsProfilePath(fd) {
|
|
717
|
+
return `/proc/${process.pid}/fd/${fd}`;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Writes `mountWords` NUL-separated to an unnamed file and returns the fd it
|
|
721
|
+
* stays open on. Throws when no directory takes an O_TMPFILE file, or when
|
|
722
|
+
* the profile cannot be opened again through /proc: there is no named-file
|
|
723
|
+
* fallback, and before any of this an over-long profile failed with E2BIG
|
|
724
|
+
* anyway. The check is this process's own open; a child's can still be
|
|
725
|
+
* refused (a process made non-dumpable owns its /proc entries as root), and
|
|
726
|
+
* the string then fails in the redirection and runs no command.
|
|
727
|
+
*/
|
|
728
|
+
function openBwrapArgsProfile(mountWords) {
|
|
729
|
+
const contents = mountWords.map(word => word + '\0').join('');
|
|
730
|
+
const failures = [];
|
|
731
|
+
for (const dir of new Set([tmpdir(), '/dev/shm'])) {
|
|
732
|
+
let fd;
|
|
733
|
+
try {
|
|
734
|
+
fd = fs.openSync(dir, O_TMPFILE | fs.constants.O_RDWR, 0o600);
|
|
735
|
+
}
|
|
736
|
+
catch (error) {
|
|
737
|
+
failures.push(`${dir}: ${errorText(error)}`);
|
|
738
|
+
continue;
|
|
739
|
+
}
|
|
740
|
+
try {
|
|
741
|
+
fs.writeFileSync(fd, contents);
|
|
742
|
+
// Read-only from here: this process is done writing it.
|
|
743
|
+
fs.fchmodSync(fd, 0o400);
|
|
744
|
+
// The string opens this path. Fail now, where the caller is told why,
|
|
745
|
+
// rather than when the command runs.
|
|
746
|
+
fs.closeSync(fs.openSync(bwrapArgsProfilePath(fd), fs.constants.O_RDONLY));
|
|
747
|
+
}
|
|
748
|
+
catch (error) {
|
|
749
|
+
failures.push(`${dir}: ${errorText(error)}`);
|
|
750
|
+
fs.closeSync(fd);
|
|
751
|
+
continue;
|
|
752
|
+
}
|
|
753
|
+
bwrapArgsFds.add(fd);
|
|
754
|
+
return fd;
|
|
755
|
+
}
|
|
756
|
+
throw new Error(`no unnamed file could be opened for it (${failures.join('; ')})`);
|
|
757
|
+
}
|
|
758
|
+
function closeBwrapArgsProfile(fd) {
|
|
759
|
+
bwrapArgsFds.delete(fd);
|
|
760
|
+
try {
|
|
761
|
+
fs.closeSync(fd);
|
|
762
|
+
}
|
|
763
|
+
catch {
|
|
764
|
+
// Already closed: nothing left to release.
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
function errorText(error) {
|
|
768
|
+
return error instanceof Error ? error.message : String(error);
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Thrown when a Linux bubblewrap profile cannot be run on this host: what the
|
|
772
|
+
* configuration expands to, with the mandatory denies of the working
|
|
773
|
+
* directory, is past a limit, or, for `command_too_long` and `nul_in_path`,
|
|
774
|
+
* what the caller passed in is. The command was not run and no
|
|
775
|
+
* profile file stays open, so do not run the per-command cleanup
|
|
776
|
+
* (`cleanupAfterCommand()`, `cleanupBwrapMountPoints()`) for a wrap that
|
|
777
|
+
* threw: it would release a second time, and a sandbox still running would
|
|
778
|
+
* lose its mount points. Branch on `.code`, never on `.message`, which
|
|
779
|
+
* carries the sizes of the moment. Other wrap-time failures (a shell that is
|
|
780
|
+
* not on PATH, a bridge socket that is gone) are plain Errors.
|
|
781
|
+
*/
|
|
782
|
+
export class LinuxSandboxProfileError extends Error {
|
|
783
|
+
constructor(code, message, cause) {
|
|
784
|
+
super(message);
|
|
785
|
+
this.name = 'LinuxSandboxProfileError';
|
|
786
|
+
this.code = code;
|
|
787
|
+
if (cause !== undefined) {
|
|
788
|
+
// Non-enumerable, as a native `cause` is. Once the compile target is
|
|
789
|
+
// ES2022 this is `super(message, { cause })`.
|
|
790
|
+
Object.defineProperty(this, 'cause', {
|
|
791
|
+
value: cause,
|
|
792
|
+
writable: true,
|
|
793
|
+
configurable: true,
|
|
794
|
+
enumerable: false,
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Thrown by the wrap when the host changed its working directory while the
|
|
801
|
+
* mandatory denies were looked for. Nothing has been handed out or left on
|
|
802
|
+
* the host by then. `SandboxManager` starts the wrap over.
|
|
803
|
+
*/
|
|
804
|
+
export class WorkingDirectoryChanged extends Error {
|
|
805
|
+
constructor() {
|
|
806
|
+
super('The working directory changed while the command was being wrapped');
|
|
807
|
+
this.name = 'WorkingDirectoryChanged';
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* The shell string that runs bwrap with `bwrapArgs`, which the caller runs
|
|
812
|
+
* as one argument of `sh -c`. When that would not fit the kernel's
|
|
813
|
+
* per-argument cap, the words in `mounts` (a slice of `bwrapArgs`) go to an
|
|
814
|
+
* unnamed file this process holds open (see `bwrapArgsFds`) and bwrap reads
|
|
815
|
+
* them through `--args` at the same position; the string opens that file
|
|
816
|
+
* again through /proc. Every other word, the per-command environment and the
|
|
817
|
+
* command among them, stays on the line. The result stays a simple command,
|
|
818
|
+
* so a prefix (`exec`, `timeout 30`) or a suffix (`&& next`) still composes.
|
|
819
|
+
* Throws {@link LinuxSandboxProfileError} when the profile cannot run.
|
|
820
|
+
*/
|
|
821
|
+
function renderBwrapInvocation(bwrapBinary, bwrapArgs, mounts) {
|
|
822
|
+
// Whose the arguments are and what lowers each share: the mandatory denies
|
|
823
|
+
// follow from what the working directory holds, not from the configuration.
|
|
824
|
+
const shares = () => `${mounts.mandatoryDenyArgs} of its arguments are built-in write protection, in no list of the configuration: shell and tool settings and each git repository's hooks and config, in and below the working directory, and the directories holding them. For fewer, run from a directory with fewer repositories in it, or allow writing to fewer of them; a lower mandatoryDenySearchDepth leaves the deeper ones unprotected. The other ${bwrapArgs.length - mounts.mandatoryDenyArgs} are what the configuration expands to: each path takes about three arguments, each environment variable two`;
|
|
825
|
+
if (bwrapArgs.length > BWRAP_MAX_ARGS) {
|
|
826
|
+
throw new LinuxSandboxProfileError('too_many_arguments', `Sandbox profile has ${bwrapArgs.length} bwrap arguments and bwrap accepts at most ${BWRAP_MAX_ARGS} (about ${BWRAP_MAX_ARGS / 3} mounts). ${shares()}`);
|
|
827
|
+
}
|
|
828
|
+
const mountWords = bwrapArgs.slice(mounts.start, mounts.end);
|
|
829
|
+
// A command line ends at a NUL and bwrap splits an args file on one, so the
|
|
830
|
+
// word is cut short on the line and becomes several options in the file.
|
|
831
|
+
if (mountWords.some(word => word.includes('\0'))) {
|
|
832
|
+
throw new LinuxSandboxProfileError('nul_in_path', 'Sandbox profile contains a path with a NUL byte, which neither a command line nor a file of bwrap arguments can carry');
|
|
833
|
+
}
|
|
834
|
+
const inline = quote([bwrapBinary, ...bwrapArgs]);
|
|
835
|
+
const inlineBytes = Buffer.byteLength(inline, 'utf8');
|
|
836
|
+
const limit = maxArgStrlen() - 1;
|
|
837
|
+
if (inlineBytes <= limit - ARG_HEADROOM_BYTES) {
|
|
838
|
+
return inline;
|
|
839
|
+
}
|
|
840
|
+
const tooLong = `Sandbox profile is too long for the command line (${inlineBytes} bytes; past ${limit - ARG_HEADROOM_BYTES} it goes through a file)`;
|
|
841
|
+
// `--args <fd>` are two more words.
|
|
842
|
+
if (bwrapArgs.length + 2 > BWRAP_MAX_ARGS) {
|
|
843
|
+
throw new LinuxSandboxProfileError('too_many_arguments', `${tooLong} and, passed through a file, would exceed the ${BWRAP_MAX_ARGS} arguments bwrap accepts. ${shares()}`);
|
|
844
|
+
}
|
|
845
|
+
let argsFd;
|
|
846
|
+
try {
|
|
847
|
+
argsFd = openBwrapArgsProfile(mountWords);
|
|
848
|
+
}
|
|
849
|
+
catch (error) {
|
|
850
|
+
throw new LinuxSandboxProfileError('args_file_unavailable', `${tooLong} and cannot be passed through a file: ${errorText(error)}`, error);
|
|
851
|
+
}
|
|
852
|
+
// /bin/sh opens the profile on the fd and execs bwrap, which reads it to
|
|
853
|
+
// EOF and closes it before running the command.
|
|
854
|
+
const viaArgsFile = quote([
|
|
855
|
+
'/bin/sh',
|
|
856
|
+
'-c',
|
|
857
|
+
`exec ${BWRAP_ARGS_FD}<"$1" && shift && exec "$@"`,
|
|
858
|
+
'srt-args',
|
|
859
|
+
bwrapArgsProfilePath(argsFd),
|
|
860
|
+
bwrapBinary,
|
|
861
|
+
...bwrapArgs.slice(0, mounts.start),
|
|
862
|
+
'--args',
|
|
863
|
+
String(BWRAP_ARGS_FD),
|
|
864
|
+
...bwrapArgs.slice(mounts.end),
|
|
865
|
+
]);
|
|
866
|
+
const viaArgsFileBytes = Buffer.byteLength(viaArgsFile, 'utf8');
|
|
867
|
+
if (viaArgsFileBytes > limit) {
|
|
868
|
+
closeBwrapArgsProfile(argsFd);
|
|
869
|
+
throw new LinuxSandboxProfileError('command_too_long', `Sandboxed command is too long for one shell argument even with the mounts passed through a file (${viaArgsFileBytes} bytes; the limit here is ${limit})`);
|
|
870
|
+
}
|
|
871
|
+
logForDebugging(`[Sandbox Linux] bwrap mounts moved to an unnamed file, read through ${bwrapArgsProfilePath(argsFd)} on bwrap's fd ${BWRAP_ARGS_FD}: the command line would be ${inlineBytes} bytes as one argument`);
|
|
872
|
+
return viaArgsFile;
|
|
873
|
+
}
|
|
874
|
+
// Number of wrapped commands that have been generated but whose cleanup has
|
|
875
|
+
// not yet run. cleanupBwrapMountPoints() defers file deletion while this is
|
|
876
|
+
// positive, because deleting a mount point file on the host while another
|
|
877
|
+
// bwrap instance is still running detaches that instance's bind mount and
|
|
878
|
+
// the deny rule stops applying inside it.
|
|
879
|
+
let activeSandboxCount = 0;
|
|
880
|
+
// Forced cleanups so far. One zeroes the count under a wrap still in flight,
|
|
881
|
+
// which from then on has nothing in it to give back.
|
|
882
|
+
let forcedCleanups = 0;
|
|
883
|
+
let exitHandlerRegistered = false;
|
|
884
|
+
/**
|
|
885
|
+
* Register cleanup handler for bwrap mount points
|
|
886
|
+
*/
|
|
887
|
+
function registerExitCleanupHandler() {
|
|
888
|
+
if (exitHandlerRegistered) {
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
process.on('exit', () => {
|
|
892
|
+
cleanupBwrapMountPoints({ force: true });
|
|
893
|
+
});
|
|
894
|
+
exitHandlerRegistered = true;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Clean up mount point files created by bwrap for non-existent deny paths.
|
|
898
|
+
*
|
|
899
|
+
* When protecting non-existent deny paths, bwrap creates empty files on the
|
|
900
|
+
* host filesystem as mount points for --ro-bind. These files persist after
|
|
901
|
+
* bwrap exits. This function removes them.
|
|
902
|
+
*
|
|
903
|
+
* This should be called after each sandboxed command completes to prevent
|
|
904
|
+
* ghost dotfiles (e.g. .bashrc, .gitconfig) from appearing in the working
|
|
905
|
+
* directory. It is also called automatically on process exit as a safety net.
|
|
906
|
+
*
|
|
907
|
+
* Each call decrements the active-sandbox counter that was incremented by
|
|
908
|
+
* wrapCommandWithSandboxLinux(). File deletion is deferred until the counter
|
|
909
|
+
* reaches zero. Deleting a mount point file on the host while another bwrap
|
|
910
|
+
* instance is still running detaches that instance's bind mount (the dentry
|
|
911
|
+
* is unhashed, so path lookup no longer finds the mount) and the deny rule
|
|
912
|
+
* stops applying inside that sandbox.
|
|
913
|
+
*
|
|
914
|
+
* Pass `{ force: true }` to delete unconditionally — used by the process-exit
|
|
915
|
+
* handler and reset() where deferral is not meaningful.
|
|
916
|
+
*
|
|
917
|
+
* Also closes the `--args` profiles the wraps of this batch opened.
|
|
918
|
+
*/
|
|
919
|
+
export function cleanupBwrapMountPoints(opts) {
|
|
920
|
+
if (!opts?.force) {
|
|
921
|
+
if (activeSandboxCount > 0) {
|
|
922
|
+
activeSandboxCount--;
|
|
923
|
+
}
|
|
924
|
+
if (activeSandboxCount > 0) {
|
|
925
|
+
logForDebugging(`[Sandbox Linux] Deferring mount point cleanup — ${activeSandboxCount} sandbox(es) still active`);
|
|
926
|
+
return;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
else {
|
|
930
|
+
activeSandboxCount = 0;
|
|
931
|
+
forcedCleanups++;
|
|
932
|
+
}
|
|
933
|
+
// Deepest first: a sandbox wrapped while another's directory mount point is
|
|
934
|
+
// there gets its own inside it, and a directory goes only when it is empty.
|
|
935
|
+
const deepestFirst = [...bwrapMountPoints].sort((a, b) => b.length - a.length);
|
|
936
|
+
for (const mountPoint of deepestFirst) {
|
|
937
|
+
try {
|
|
938
|
+
// Only remove if it's still the empty file/directory bwrap created.
|
|
939
|
+
// If something else has written real content, leave it alone.
|
|
940
|
+
const stat = fs.statSync(mountPoint);
|
|
941
|
+
if (stat.isFile() && stat.size === 0) {
|
|
942
|
+
fs.unlinkSync(mountPoint);
|
|
943
|
+
logForDebugging(`[Sandbox Linux] Cleaned up bwrap mount point (file): ${mountPoint}`);
|
|
944
|
+
}
|
|
945
|
+
else if (stat.isDirectory()) {
|
|
946
|
+
// Empty directory mount points are created for intermediate
|
|
947
|
+
// components (Fix 2). Only remove if still empty.
|
|
948
|
+
const entries = fs.readdirSync(mountPoint);
|
|
949
|
+
if (entries.length === 0) {
|
|
950
|
+
fs.rmdirSync(mountPoint);
|
|
951
|
+
logForDebugging(`[Sandbox Linux] Cleaned up bwrap mount point (dir): ${mountPoint}`);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
catch {
|
|
956
|
+
// Ignore cleanup errors — the file may have already been removed
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
bwrapMountPoints.clear();
|
|
960
|
+
if (emptyMountSourceDir !== undefined) {
|
|
961
|
+
try {
|
|
962
|
+
// rmdirSync, not a recursive remove: it neither follows a symlink nor
|
|
963
|
+
// descends, so a path that is no longer our empty directory is left
|
|
964
|
+
// exactly as found.
|
|
965
|
+
fs.rmdirSync(emptyMountSourceDir);
|
|
966
|
+
logForDebugging(`[Sandbox Linux] Cleaned up the empty-directory mount source: ${emptyMountSourceDir}`);
|
|
967
|
+
emptyMountSourceDir = undefined;
|
|
968
|
+
}
|
|
969
|
+
catch (err) {
|
|
970
|
+
const code = err.code;
|
|
971
|
+
if (code === 'ENOTEMPTY') {
|
|
972
|
+
logForDebugging(`[Sandbox Linux] Left the empty-directory mount source behind, something has written into it: ${emptyMountSourceDir}`);
|
|
973
|
+
}
|
|
974
|
+
// Forget the path only when there is nothing left to remove. ENOTEMPTY,
|
|
975
|
+
// EACCES and EBUSY (a forced cleanup while a live sandbox still pins the
|
|
976
|
+
// source) leave it ours to try again; the revalidation on next use
|
|
977
|
+
// decides whether it can be reused.
|
|
978
|
+
if (code === 'ENOENT' || code === 'ENOTDIR') {
|
|
979
|
+
emptyMountSourceDir = undefined;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
for (const argsFd of [...bwrapArgsFds]) {
|
|
984
|
+
closeBwrapArgsProfile(argsFd);
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
function isExecutable(p) {
|
|
988
|
+
try {
|
|
989
|
+
fs.accessSync(p, fs.constants.X_OK);
|
|
990
|
+
return true;
|
|
991
|
+
}
|
|
992
|
+
catch {
|
|
993
|
+
return false;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Get detailed status of Linux sandbox dependencies
|
|
998
|
+
*/
|
|
999
|
+
export function getLinuxDependencyStatus(opts) {
|
|
1000
|
+
const { seccompConfig, bwrapPath, socatPath } = opts ?? {};
|
|
1001
|
+
// argv0 mode: apply-seccomp is compiled into the caller's binary — skip
|
|
1002
|
+
// the on-disk lookup and trust that applyPath resolves inside bwrap.
|
|
1003
|
+
return {
|
|
1004
|
+
hasBwrap: bwrapPath ? isExecutable(bwrapPath) : whichSync('bwrap') !== null,
|
|
1005
|
+
hasSocat: socatPath ? isExecutable(socatPath) : whichSync('socat') !== null,
|
|
1006
|
+
hasSeccompApply: seccompConfig?.argv0
|
|
1007
|
+
? true
|
|
1008
|
+
: getApplySeccompBinaryPath(seccompConfig?.applyPath) !== null,
|
|
1009
|
+
};
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Check sandbox dependencies and return structured result
|
|
1013
|
+
*/
|
|
1014
|
+
export function checkLinuxDependencies(opts) {
|
|
1015
|
+
const { seccompConfig, bwrapPath, socatPath } = opts ?? {};
|
|
1016
|
+
const errors = [];
|
|
1017
|
+
const warnings = [];
|
|
1018
|
+
// An explicit override is a directive, not a hint — if it doesn't exist,
|
|
1019
|
+
// surface that rather than silently falling back to PATH.
|
|
1020
|
+
let usableBwrap = null;
|
|
1021
|
+
if (bwrapPath) {
|
|
1022
|
+
if (isExecutable(bwrapPath))
|
|
1023
|
+
usableBwrap = bwrapPath;
|
|
1024
|
+
else
|
|
1025
|
+
errors.push(`bubblewrap (bwrap) not executable at ${bwrapPath}`);
|
|
1026
|
+
}
|
|
1027
|
+
else {
|
|
1028
|
+
usableBwrap = whichSync('bwrap');
|
|
1029
|
+
if (usableBwrap === null)
|
|
1030
|
+
errors.push('bubblewrap (bwrap) not installed');
|
|
1031
|
+
}
|
|
1032
|
+
if (socatPath) {
|
|
1033
|
+
if (!isExecutable(socatPath))
|
|
1034
|
+
errors.push(`socat not executable at ${socatPath}`);
|
|
1035
|
+
}
|
|
1036
|
+
else if (whichSync('socat') === null) {
|
|
1037
|
+
errors.push('socat not installed');
|
|
1038
|
+
}
|
|
1039
|
+
if (!seccompConfig?.argv0 &&
|
|
1040
|
+
getApplySeccompBinaryPath(seccompConfig?.applyPath) === null) {
|
|
1041
|
+
warnings.push('seccomp not available - unix socket access not restricted');
|
|
1042
|
+
}
|
|
1043
|
+
const uid0Error = uid0SandboxError({
|
|
1044
|
+
euid: process.geteuid?.(),
|
|
1045
|
+
hasSetfcap: processHasBoundingCapability(CAP_SETFCAP),
|
|
1046
|
+
bwrap: usableBwrap,
|
|
1047
|
+
});
|
|
1048
|
+
if (uid0Error !== null)
|
|
1049
|
+
errors.push(uid0Error);
|
|
1050
|
+
const outdated = outdatedBwrapWarning(usableBwrap);
|
|
1051
|
+
if (outdated !== null)
|
|
1052
|
+
warnings.push(outdated);
|
|
1053
|
+
return { warnings, errors };
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* The oldest bubblewrap on which everything this library does holds. Mount
|
|
1057
|
+
* plans start on 0.4.0 and later, but before 0.5.0 `ensure_file()` takes
|
|
1058
|
+
* only a regular file as a file bind's mount point, so a mask on a fifo,
|
|
1059
|
+
* socket or device node blocks or fails.
|
|
1060
|
+
*/
|
|
1061
|
+
export const OLDEST_FULLY_SUPPORTED_BWRAP_VERSION = '0.5.0';
|
|
1062
|
+
// Keyed by path, so a caller that passes an explicit bwrapPath is not
|
|
1063
|
+
// answered for another binary. A probe that got no answer is kept too, as
|
|
1064
|
+
// null: it can block for the whole timeout, and callers ask several times
|
|
1065
|
+
// during one start-up.
|
|
1066
|
+
// INVARIANT: the version decides a warning and nothing else. No mount plan may
|
|
1067
|
+
// rest on it: one slow start would then decide for the life of the process.
|
|
1068
|
+
const bwrapVersions = new Map();
|
|
1069
|
+
/** The version `bwrap --version` reports, or null when it could not be asked. */
|
|
1070
|
+
function probeBwrapVersion(bwrap) {
|
|
1071
|
+
const cached = bwrapVersions.get(bwrap);
|
|
1072
|
+
if (cached !== undefined)
|
|
1073
|
+
return cached;
|
|
1074
|
+
const probe = spawnSync(bwrap, ['--version'], {
|
|
1075
|
+
timeout: 5000,
|
|
1076
|
+
stdio: ['ignore', 'pipe', 'ignore'],
|
|
1077
|
+
encoding: 'utf8',
|
|
1078
|
+
});
|
|
1079
|
+
const version = probe.error === undefined && probe.status === 0
|
|
1080
|
+
? (/\d+(?:\.\d+)*/.exec(probe.stdout ?? '')?.[0] ?? null)
|
|
1081
|
+
: null;
|
|
1082
|
+
bwrapVersions.set(bwrap, version);
|
|
1083
|
+
return version;
|
|
1084
|
+
}
|
|
1085
|
+
/** Negative when `a` is the older version. A missing or unreadable component
|
|
1086
|
+
* counts as 0, so '0.5' and '0.5.0' compare equal. */
|
|
1087
|
+
function compareVersions(a, b) {
|
|
1088
|
+
const partsOf = (version) => version.split('.').map(part => {
|
|
1089
|
+
const parsed = Number.parseInt(part, 10);
|
|
1090
|
+
return Number.isNaN(parsed) ? 0 : parsed;
|
|
1091
|
+
});
|
|
1092
|
+
const left = partsOf(a);
|
|
1093
|
+
const right = partsOf(b);
|
|
1094
|
+
for (let i = 0; i < Math.max(left.length, right.length); i++) {
|
|
1095
|
+
const difference = (left[i] ?? 0) - (right[i] ?? 0);
|
|
1096
|
+
if (difference !== 0)
|
|
1097
|
+
return difference;
|
|
1098
|
+
}
|
|
1099
|
+
return 0;
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* A warning naming a bubblewrap older than
|
|
1103
|
+
* OLDEST_FULLY_SUPPORTED_BWRAP_VERSION, and what that costs. Not an error:
|
|
1104
|
+
* the sandbox starts and enforces on it. A version that could not be asked
|
|
1105
|
+
* for is not reported: a guess would be noise on every run.
|
|
1106
|
+
*/
|
|
1107
|
+
function outdatedBwrapWarning(bwrap) {
|
|
1108
|
+
if (bwrap === null)
|
|
1109
|
+
return null;
|
|
1110
|
+
const version = probeBwrapVersion(bwrap);
|
|
1111
|
+
if (version === null ||
|
|
1112
|
+
compareVersions(version, OLDEST_FULLY_SUPPORTED_BWRAP_VERSION) >= 0) {
|
|
1113
|
+
return null;
|
|
1114
|
+
}
|
|
1115
|
+
return (`bubblewrap ${version} at ${bwrap} is older than ` +
|
|
1116
|
+
`${OLDEST_FULLY_SUPPORTED_BWRAP_VERSION}: a denyRead entry or credential ` +
|
|
1117
|
+
`mask naming a path that is not a regular file (a fifo, socket or device ` +
|
|
1118
|
+
`node) cannot be applied on it. Everything else is unaffected`);
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Predict, then confirm. The prediction — uid 0 with no CAP_SETFCAP to hand
|
|
1122
|
+
* to bwrap — is exact about the capability but not about the kernel, so ask
|
|
1123
|
+
* bubblewrap itself before failing the caller's initialize(). An error, not a
|
|
1124
|
+
* warning: if it holds, every sandboxed command fails.
|
|
1125
|
+
*
|
|
1126
|
+
* `bwrap === null` skips the probe: a missing or unusable bubblewrap is
|
|
1127
|
+
* already its own dependency error, and a second one about capabilities would
|
|
1128
|
+
* only misdirect.
|
|
1129
|
+
*/
|
|
1130
|
+
export function uid0SandboxError({ euid, hasSetfcap, bwrap, }) {
|
|
1131
|
+
if (euid !== 0 || hasSetfcap || bwrap === null)
|
|
1132
|
+
return null;
|
|
1133
|
+
const refusal = probeUid0UserNamespace(bwrap);
|
|
1134
|
+
if (refusal === null)
|
|
1135
|
+
return null;
|
|
1136
|
+
return refusal === ''
|
|
1137
|
+
? CAP_SETFCAP_MISSING_MESSAGE
|
|
1138
|
+
: `${CAP_SETFCAP_MISSING_MESSAGE} (bubblewrap: ${refusal})`;
|
|
1139
|
+
}
|
|
1140
|
+
// One probe result per bwrap binary: whether a uid-0 map is refused is a
|
|
1141
|
+
// property of the kernel and the binary, not of the moment. Keyed by path so
|
|
1142
|
+
// a caller that passes an explicit bwrapPath is not answered for another one.
|
|
1143
|
+
const uid0UserNamespaceProbes = new Map();
|
|
1144
|
+
/**
|
|
1145
|
+
* Run `bwrap --unshare-user --dev-bind / / true` once and report whether this
|
|
1146
|
+
* kernel actually refuses to map uid 0. `null` means it does not, so there is
|
|
1147
|
+
* nothing to report; otherwise bubblewrap's own first stderr line, or the
|
|
1148
|
+
* empty string when the probe could not be run at all and the prediction
|
|
1149
|
+
* stands unaided.
|
|
1150
|
+
*/
|
|
1151
|
+
function probeUid0UserNamespace(bwrap) {
|
|
1152
|
+
const cached = uid0UserNamespaceProbes.get(bwrap);
|
|
1153
|
+
if (cached !== undefined)
|
|
1154
|
+
return cached;
|
|
1155
|
+
const probe = spawnSync(bwrap, ['--unshare-user', '--dev-bind', '/', '/', 'true'], {
|
|
1156
|
+
timeout: 5000,
|
|
1157
|
+
stdio: ['ignore', 'ignore', 'pipe'],
|
|
1158
|
+
encoding: 'utf8',
|
|
1159
|
+
});
|
|
1160
|
+
const refusal = probe.error === undefined && probe.status === 0
|
|
1161
|
+
? null
|
|
1162
|
+
: ((probe.stderr ?? '')
|
|
1163
|
+
.split('\n')
|
|
1164
|
+
.map(line => line.trim())
|
|
1165
|
+
.find(line => line.length > 0)
|
|
1166
|
+
?.slice(0, 200) ?? '');
|
|
1167
|
+
uid0UserNamespaceProbes.set(bwrap, refusal);
|
|
1168
|
+
return refusal;
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* Initialize the Linux network bridge for sandbox networking
|
|
1172
|
+
*
|
|
1173
|
+
* ARCHITECTURE NOTE:
|
|
1174
|
+
* Linux network sandboxing uses bwrap --unshare-net which creates a completely isolated
|
|
1175
|
+
* network namespace with NO network access. To enable network access, we:
|
|
1176
|
+
*
|
|
1177
|
+
* 1. Host side: Run socat bridges that listen on Unix sockets and forward to host proxy servers
|
|
1178
|
+
* - HTTP bridge: Unix socket -> host HTTP proxy (for HTTP/HTTPS traffic)
|
|
1179
|
+
* - SOCKS bridge: Unix socket -> host SOCKS5 proxy (for SSH/git traffic)
|
|
1180
|
+
*
|
|
1181
|
+
* 2. Sandbox side: Bind the Unix sockets into the isolated namespace and run socat listeners
|
|
1182
|
+
* - HTTP listener on port 3128 -> HTTP Unix socket -> host HTTP proxy
|
|
1183
|
+
* - SOCKS listener on port 1080 -> SOCKS Unix socket -> host SOCKS5 proxy
|
|
1184
|
+
*
|
|
1185
|
+
* 3. Configure environment:
|
|
1186
|
+
* - HTTP_PROXY=http://localhost:3128 for HTTP/HTTPS tools
|
|
1187
|
+
* - GIT_SSH_COMMAND with socat for SSH through SOCKS5
|
|
1188
|
+
*
|
|
1189
|
+
* LIMITATION: Unlike macOS sandbox which can enforce domain-based allowlists at the kernel level,
|
|
1190
|
+
* Linux's --unshare-net provides only all-or-nothing network isolation. Domain filtering happens
|
|
1191
|
+
* at the host proxy level, not the sandbox boundary. This means network restrictions on Linux
|
|
1192
|
+
* depend on the proxy's filtering capabilities.
|
|
1193
|
+
*
|
|
1194
|
+
* DEPENDENCIES: Requires bwrap (bubblewrap) and socat
|
|
1195
|
+
*/
|
|
1196
|
+
export async function initializeLinuxNetworkBridge(httpProxyPort, socksProxyPort, socatPath) {
|
|
1197
|
+
const socat = socatPath ?? 'socat';
|
|
1198
|
+
const socketId = randomBytes(8).toString('hex');
|
|
1199
|
+
const httpSocketPath = join(tmpdir(), `claude-http-${socketId}.sock`);
|
|
1200
|
+
// Only allocated when ports differ; in the mux case the SOCKS side
|
|
1201
|
+
// reuses httpSocketPath.
|
|
1202
|
+
const socksSocketPath = join(tmpdir(), `claude-socks-${socketId}.sock`);
|
|
1203
|
+
// Start HTTP bridge
|
|
1204
|
+
const httpSocatArgs = [
|
|
1205
|
+
`UNIX-LISTEN:${httpSocketPath},fork,reuseaddr`,
|
|
1206
|
+
`TCP:localhost:${httpProxyPort},keepalive,keepidle=10,keepintvl=5,keepcnt=3`,
|
|
1207
|
+
];
|
|
1208
|
+
logForDebugging(`Starting HTTP bridge: ${socat} ${httpSocatArgs.join(' ')}`);
|
|
1209
|
+
const httpBridgeProcess = spawn(socat, httpSocatArgs, {
|
|
1210
|
+
stdio: 'ignore',
|
|
1211
|
+
});
|
|
1212
|
+
// Add error and exit handlers to monitor bridge health. These must be
|
|
1213
|
+
// registered before the !pid check: when spawn fails (e.g. socat is
|
|
1214
|
+
// missing or not executable), the ChildProcess emits an asynchronous
|
|
1215
|
+
// 'error' event, and throwing first would leave that event without a
|
|
1216
|
+
// listener — surfacing as an uncaughtException instead of the rejection
|
|
1217
|
+
// below.
|
|
1218
|
+
httpBridgeProcess.on('error', err => {
|
|
1219
|
+
logForDebugging(`HTTP bridge process error: ${err}`, { level: 'error' });
|
|
1220
|
+
});
|
|
1221
|
+
httpBridgeProcess.on('exit', (code, signal) => {
|
|
1222
|
+
logForDebugging(`HTTP bridge process exited with code ${code}, signal ${signal}`, { level: code === 0 ? 'info' : 'error' });
|
|
1223
|
+
});
|
|
1224
|
+
if (!httpBridgeProcess.pid) {
|
|
1225
|
+
throw new Error('Failed to start HTTP bridge process');
|
|
1226
|
+
}
|
|
1227
|
+
// SOCKS bridge: when the host serves both protocols on one port (the mux),
|
|
1228
|
+
// a second socat to the same TCP target is redundant — reuse the HTTP
|
|
1229
|
+
// bridge's process and socket path. Downstream consumers
|
|
1230
|
+
// (LinuxNetworkBridgeContext, in-sandbox socat, cleanup) treat duplicate
|
|
1231
|
+
// refs idempotently. A separate bridge is only spawned when the ports
|
|
1232
|
+
// differ (external proxy override).
|
|
1233
|
+
let socksBridgeProcess;
|
|
1234
|
+
let socksSockPath;
|
|
1235
|
+
if (socksProxyPort === httpProxyPort) {
|
|
1236
|
+
socksBridgeProcess = httpBridgeProcess;
|
|
1237
|
+
socksSockPath = httpSocketPath;
|
|
1238
|
+
}
|
|
1239
|
+
else {
|
|
1240
|
+
socksSockPath = socksSocketPath;
|
|
1241
|
+
const socksSocatArgs = [
|
|
1242
|
+
`UNIX-LISTEN:${socksSocketPath},fork,reuseaddr`,
|
|
1243
|
+
`TCP:localhost:${socksProxyPort},keepalive,keepidle=10,keepintvl=5,keepcnt=3`,
|
|
1244
|
+
];
|
|
1245
|
+
logForDebugging(`Starting SOCKS bridge: ${socat} ${socksSocatArgs.join(' ')}`);
|
|
1246
|
+
socksBridgeProcess = spawn(socat, socksSocatArgs, {
|
|
1247
|
+
stdio: 'ignore',
|
|
1248
|
+
});
|
|
1249
|
+
// Add error and exit handlers to monitor bridge health — registered
|
|
1250
|
+
// before the !pid check for the same reason as the HTTP bridge above.
|
|
1251
|
+
socksBridgeProcess.on('error', err => {
|
|
1252
|
+
logForDebugging(`SOCKS bridge process error: ${err}`, { level: 'error' });
|
|
1253
|
+
});
|
|
1254
|
+
socksBridgeProcess.on('exit', (code, signal) => {
|
|
1255
|
+
logForDebugging(`SOCKS bridge process exited with code ${code}, signal ${signal}`, { level: code === 0 ? 'info' : 'error' });
|
|
1256
|
+
});
|
|
1257
|
+
if (!socksBridgeProcess.pid) {
|
|
1258
|
+
// Clean up HTTP bridge
|
|
1259
|
+
if (httpBridgeProcess.pid) {
|
|
1260
|
+
try {
|
|
1261
|
+
process.kill(httpBridgeProcess.pid, 'SIGTERM');
|
|
1262
|
+
}
|
|
1263
|
+
catch {
|
|
1264
|
+
// Ignore errors
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
throw new Error('Failed to start SOCKS bridge process');
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
// Wait for both sockets to be ready
|
|
1271
|
+
const maxAttempts = 5;
|
|
1272
|
+
for (let i = 0; i < maxAttempts; i++) {
|
|
1273
|
+
if (!httpBridgeProcess.pid ||
|
|
1274
|
+
httpBridgeProcess.killed ||
|
|
1275
|
+
!socksBridgeProcess.pid ||
|
|
1276
|
+
socksBridgeProcess.killed) {
|
|
1277
|
+
throw new Error('Linux bridge process died unexpectedly');
|
|
1278
|
+
}
|
|
1279
|
+
try {
|
|
1280
|
+
// fs already imported
|
|
1281
|
+
if (fs.existsSync(httpSocketPath) && fs.existsSync(socksSockPath)) {
|
|
1282
|
+
logForDebugging(`Linux bridges ready after ${i + 1} attempts`);
|
|
1283
|
+
break;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
catch (err) {
|
|
1287
|
+
logForDebugging(`Error checking sockets (attempt ${i + 1}): ${err}`, {
|
|
1288
|
+
level: 'error',
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
if (i === maxAttempts - 1) {
|
|
1292
|
+
// Clean up both processes
|
|
1293
|
+
if (httpBridgeProcess.pid) {
|
|
1294
|
+
try {
|
|
1295
|
+
process.kill(httpBridgeProcess.pid, 'SIGTERM');
|
|
1296
|
+
}
|
|
1297
|
+
catch {
|
|
1298
|
+
// Ignore errors
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
if (socksBridgeProcess.pid) {
|
|
1302
|
+
try {
|
|
1303
|
+
process.kill(socksBridgeProcess.pid, 'SIGTERM');
|
|
1304
|
+
}
|
|
1305
|
+
catch {
|
|
1306
|
+
// Ignore errors
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
throw new Error(`Failed to create bridge sockets after ${maxAttempts} attempts`);
|
|
1310
|
+
}
|
|
1311
|
+
await new Promise(resolve => setTimeout(resolve, i * 100));
|
|
1312
|
+
}
|
|
1313
|
+
return {
|
|
1314
|
+
httpSocketPath,
|
|
1315
|
+
socksSocketPath: socksSockPath,
|
|
1316
|
+
httpBridgeProcess,
|
|
1317
|
+
socksBridgeProcess,
|
|
1318
|
+
httpProxyPort,
|
|
1319
|
+
socksProxyPort,
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Read by the seccomp helper, never by this process. The write denies are
|
|
1324
|
+
* read-only binds, and a bind protects a path only in the mount namespace it
|
|
1325
|
+
* was made in. Creating a user namespace takes no capability and gives a full
|
|
1326
|
+
* set over a private copy of the mount tree, from which the binds can be
|
|
1327
|
+
* detached all at once; a directory opened beforehand then reaches the denied
|
|
1328
|
+
* names. So by default the helper refuses the calls with a seccomp filter and
|
|
1329
|
+
* sets user.max_user_namespaces to zero in the namespace it made. `1` lifts
|
|
1330
|
+
* both. A wrap with no helper gives bubblewrap --disable-userns instead.
|
|
1331
|
+
*/
|
|
1332
|
+
const NESTED_USERNS_ENV = 'SRT_ALLOW_NESTED_USERNS';
|
|
1333
|
+
/**
|
|
1334
|
+
* The assignment the helper's command line starts with, so that the variable
|
|
1335
|
+
* holds what the configuration says: the wrap reaches the helper through a
|
|
1336
|
+
* shell, whose start-up files (BASH_ENV) could set it after bubblewrap cleared
|
|
1337
|
+
* it, and an assignment before a command is made after those.
|
|
1338
|
+
*/
|
|
1339
|
+
function helperEnvironmentPrefix(allowNestedUserNamespaces) {
|
|
1340
|
+
return `${NESTED_USERNS_ENV}=${allowNestedUserNamespaces ? '1' : '0'} `;
|
|
1341
|
+
}
|
|
1342
|
+
// Keyed by path, like the uid-0 probe. Only an answer is kept: a probe that
|
|
1343
|
+
// failed is made again the next time.
|
|
1344
|
+
const disableUsernsProbes = new Map();
|
|
1345
|
+
/**
|
|
1346
|
+
* Whether this bubblewrap lists --disable-userns (0.8.0 and later) and can
|
|
1347
|
+
* honour it: a setuid bubblewrap refuses the option outright.
|
|
1348
|
+
*/
|
|
1349
|
+
export function bwrapCanDisableUserns(bwrap) {
|
|
1350
|
+
const cached = disableUsernsProbes.get(bwrap);
|
|
1351
|
+
if (cached !== undefined)
|
|
1352
|
+
return cached;
|
|
1353
|
+
let can = false;
|
|
1354
|
+
try {
|
|
1355
|
+
if ((fs.statSync(bwrap).mode & 0o4000) === 0) {
|
|
1356
|
+
const help = spawnSync(bwrap, ['--help'], {
|
|
1357
|
+
timeout: 5000,
|
|
1358
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1359
|
+
encoding: 'utf8',
|
|
1360
|
+
});
|
|
1361
|
+
const text = `${help.stdout ?? ''}${help.stderr ?? ''}`;
|
|
1362
|
+
if (help.error !== undefined || text.trim() === '')
|
|
1363
|
+
return false;
|
|
1364
|
+
can = text.includes('--disable-userns');
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
catch {
|
|
1368
|
+
return false;
|
|
1369
|
+
}
|
|
1370
|
+
disableUsernsProbes.set(bwrap, can);
|
|
1371
|
+
return can;
|
|
1372
|
+
}
|
|
1373
|
+
let noUsernsLimitLogged = false;
|
|
1374
|
+
/**
|
|
1375
|
+
* Resolve how to invoke apply-seccomp: either a standalone binary path, or a
|
|
1376
|
+
* multicall-binary prefix that dispatches on the ARGV0 env var.
|
|
1377
|
+
*
|
|
1378
|
+
* Returns a shell-ready string ending in a trailing space — callers append
|
|
1379
|
+
* quote([shell, '-c', cmd]). Returns undefined when seccomp is
|
|
1380
|
+
* unavailable (no argv0, no binary found).
|
|
1381
|
+
*
|
|
1382
|
+
* When argv0 is set, applyPath is used verbatim (no existence check); the
|
|
1383
|
+
* caller is responsible for ensuring it resolves inside the bwrap namespace.
|
|
1384
|
+
*/
|
|
1385
|
+
function resolveApplySeccompPrefix(applyPath, argv0) {
|
|
1386
|
+
if (argv0) {
|
|
1387
|
+
if (!applyPath) {
|
|
1388
|
+
throw new Error('seccompConfig.argv0 requires seccompConfig.applyPath');
|
|
1389
|
+
}
|
|
1390
|
+
return `ARGV0=${quote([argv0])} ${quote([applyPath])} `;
|
|
1391
|
+
}
|
|
1392
|
+
const binary = getApplySeccompBinaryPath(applyPath);
|
|
1393
|
+
return binary ? `${quote([binary])} ` : undefined;
|
|
1394
|
+
}
|
|
1395
|
+
/**
|
|
1396
|
+
* Shell lines that return once both relays listen, given their process ids in
|
|
1397
|
+
* `$_srt_http` and `$_srt_socks`. The relays are started in the background,
|
|
1398
|
+
* and a command that connects at once got there first: its first connection
|
|
1399
|
+
* was refused.
|
|
1400
|
+
*
|
|
1401
|
+
* The network namespace counts its TCP sockets in use, and a listening one
|
|
1402
|
+
* counts from the moment it listens. The namespace is new and only the two
|
|
1403
|
+
* relays make a socket in it before the command runs, one each, so two in
|
|
1404
|
+
* use are the two relays listening. Not `/proc/net/tcp`, which names the
|
|
1405
|
+
* ports: one read of it walks the host's whole connection table (5 ms on a
|
|
1406
|
+
* machine with 256 GB).
|
|
1407
|
+
*
|
|
1408
|
+
* It gives up, and the command starts as it did before, when a relay has
|
|
1409
|
+
* exited, when a file cannot be read, and after 0.3 s by `/proc/uptime`,
|
|
1410
|
+
* which counts in hundredths (the `1` in front keeps a leading zero from
|
|
1411
|
+
* being read as octal).
|
|
1412
|
+
*
|
|
1413
|
+
* INVARIANT: these lines start no program. They run before the seccomp
|
|
1414
|
+
* filter is on, so anything found on `PATH` here would run without it. That
|
|
1415
|
+
* is why they poll without a pause: `sleep` is a program in all three
|
|
1416
|
+
* shells.
|
|
1417
|
+
*
|
|
1418
|
+
* No `!`: shell-quote would put a backslash before it that the shell keeps.
|
|
1419
|
+
* No `%1`: dash resolves no job outside an interactive shell.
|
|
1420
|
+
*/
|
|
1421
|
+
const RELAYS_LISTEN = [
|
|
1422
|
+
'_srt_since=',
|
|
1423
|
+
'while [ -r /proc/net/sockstat ] && kill -0 "$_srt_http" "$_srt_socks" 2>/dev/null; do',
|
|
1424
|
+
' _srt_up=0',
|
|
1425
|
+
' for _srt_counts in /proc/net/sockstat /proc/net/sockstat6; do',
|
|
1426
|
+
' [ -r "$_srt_counts" ] || continue',
|
|
1427
|
+
' while read -r _srt_kind _srt_skip _srt_inuse _srt_skip; do',
|
|
1428
|
+
' case "$_srt_kind" in TCP: | TCP6:) _srt_up=$((_srt_up + _srt_inuse)); break ;; esac',
|
|
1429
|
+
' done < "$_srt_counts"',
|
|
1430
|
+
' done',
|
|
1431
|
+
' [ "$_srt_up" -lt 2 ] || break',
|
|
1432
|
+
' read -r _srt_now _srt_skip 2>/dev/null < /proc/uptime || break',
|
|
1433
|
+
' _srt_now=1${_srt_now%.*}${_srt_now#*.}',
|
|
1434
|
+
' [ "$((_srt_now - ${_srt_since:=$_srt_now}))" -lt 30 ] || break',
|
|
1435
|
+
'done',
|
|
1436
|
+
'unset _srt_since _srt_now _srt_up _srt_counts _srt_kind _srt_skip _srt_inuse _srt_http _srt_socks',
|
|
1437
|
+
];
|
|
1438
|
+
/**
|
|
1439
|
+
* Build the command that runs inside the sandbox.
|
|
1440
|
+
* Sets up HTTP proxy on port 3128 and SOCKS proxy on port 1080
|
|
1441
|
+
*/
|
|
1442
|
+
function buildSandboxCommand(httpSocketPath, socksSocketPath, userCommand, applySeccompPrefix, shell, socatPath) {
|
|
1443
|
+
// Default to bash for backward compatibility
|
|
1444
|
+
const shellPath = shell || 'bash';
|
|
1445
|
+
// Host filesystem is bind-mounted into the sandbox, so an explicit
|
|
1446
|
+
// socatPath resolves to the same binary inside bwrap.
|
|
1447
|
+
const socat = quote([socatPath ?? 'socat']);
|
|
1448
|
+
// socat's own backlog is 5. A connection that finds the queue full is
|
|
1449
|
+
// dropped, and tried again after 1 s, then 2 s, 4 s and so on: of a package
|
|
1450
|
+
// installer's burst, some wait for a minute. The kernel caps the number.
|
|
1451
|
+
const listen = 'fork,reuseaddr,backlog=4096';
|
|
1452
|
+
// Which family a plain TCP-LISTEN takes is socat's choice, and differs by
|
|
1453
|
+
// version. One that takes IPv6 exits at once on a kernel that has none, and
|
|
1454
|
+
// nothing listens; one that takes IPv4 refuses a client to which `localhost`
|
|
1455
|
+
// is ::1 and that tries no second address. So the family is named: IPv6 with
|
|
1456
|
+
// IPv4 mapped in, which serves both, and IPv4 alone where that fails.
|
|
1457
|
+
const relay = (port, socketPath) => `{ ${socat} TCP6-LISTEN:${port},ipv6only=0,${listen} UNIX-CONNECT:${socketPath} || ` +
|
|
1458
|
+
`exec ${socat} TCP4-LISTEN:${port},${listen} UNIX-CONNECT:${socketPath}; } >/dev/null 2>&1 &`;
|
|
1459
|
+
const socatCommands = [
|
|
1460
|
+
relay(3128, httpSocketPath),
|
|
1461
|
+
'_srt_http=$!',
|
|
1462
|
+
relay(1080, socksSocketPath),
|
|
1463
|
+
'_srt_socks=$!',
|
|
1464
|
+
// The trap saves the status the script is exiting with and exits with
|
|
1465
|
+
// it. A bare `exit` inside an EXIT trap is not portable: bash and dash
|
|
1466
|
+
// keep the script's status, zsh takes the status of the trap's own last
|
|
1467
|
+
// command (the kill), so under zsh a failing command reported 0. Single
|
|
1468
|
+
// quotes, so $? and $rc are read when the trap runs, not when it is set.
|
|
1469
|
+
"trap 'rc=$?; kill %1 %2 2>/dev/null; exit $rc' EXIT",
|
|
1470
|
+
...RELAYS_LISTEN,
|
|
1471
|
+
];
|
|
1472
|
+
// apply-seccomp runs after socat so socat can still create Unix sockets.
|
|
1473
|
+
if (applySeccompPrefix) {
|
|
1474
|
+
const applySeccompCmd = applySeccompPrefix + quote([shellPath, '-c', userCommand]);
|
|
1475
|
+
const innerScript = [...socatCommands, applySeccompCmd].join('\n');
|
|
1476
|
+
return `${shellPath} -c ${quote([innerScript])}`;
|
|
1477
|
+
}
|
|
1478
|
+
else {
|
|
1479
|
+
const innerScript = [...socatCommands, `eval ${quote([userCommand])}`].join('\n');
|
|
1480
|
+
return `${shellPath} -c ${quote([innerScript])}`;
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* The three classes an fs errno from a path lookup falls into, enumerated
|
|
1485
|
+
* once because each leads somewhere different: ABSENCE, where the name
|
|
1486
|
+
* resolves to no file and every consumer already treats the path as absent
|
|
1487
|
+
* (isAbsenceErrno, in sandbox-utils.ts, where the glob walk classifies the
|
|
1488
|
+
* same failures); TRANSIENT, a busy, unlucky or re-exporting host rather
|
|
1489
|
+
* than a fact about the path, worth asking once more before the failure is
|
|
1490
|
+
* taken for an answer; and SETTLED, a file that is there and cannot be
|
|
1491
|
+
* looked at, and will not become readable while this wrap runs. Every code
|
|
1492
|
+
* neither predicate names is settled, because nothing says it clears.
|
|
1493
|
+
*/
|
|
1494
|
+
function isTransientErrno(err) {
|
|
1495
|
+
const code = err?.code;
|
|
1496
|
+
return (code === 'EIO' ||
|
|
1497
|
+
code === 'ESTALE' ||
|
|
1498
|
+
code === 'EMFILE' ||
|
|
1499
|
+
code === 'ENFILE' ||
|
|
1500
|
+
code === 'EAGAIN');
|
|
1501
|
+
}
|
|
1502
|
+
/**
|
|
1503
|
+
* `attempt`, asked a second time when the first failure was transient and
|
|
1504
|
+
* rethrown otherwise. Two caveats come with the second ask: a same-tick retry
|
|
1505
|
+
* cannot clear descriptor exhaustion (EMFILE, ENFILE), so for those it is
|
|
1506
|
+
* best effort. And on a soft-mounted network filesystem that is down, a
|
|
1507
|
+
* transient-class errno arrives only after the mount's own timeout, so the
|
|
1508
|
+
* retry can double that stall — a hard mount never returns at all, so the
|
|
1509
|
+
* retry never runs there.
|
|
1510
|
+
*/
|
|
1511
|
+
function retryingTransient(attempt) {
|
|
1512
|
+
try {
|
|
1513
|
+
return attempt();
|
|
1514
|
+
}
|
|
1515
|
+
catch (err) {
|
|
1516
|
+
if (!isTransientErrno(err))
|
|
1517
|
+
throw err;
|
|
1518
|
+
}
|
|
1519
|
+
return attempt();
|
|
1520
|
+
}
|
|
1521
|
+
/** The top-level directories this wrap leaves to the kernel and to the
|
|
1522
|
+
* caller's own remounts. A cover must never take one — --proc and --dev
|
|
1523
|
+
* replace two of them after the pins are spliced in, and /sys is kernel
|
|
1524
|
+
* state — and the '/' read-deny expansion must not hide one either. */
|
|
1525
|
+
const KERNEL_TOP_LEVEL_DIRS = ['/proc', '/dev', '/sys'];
|
|
1526
|
+
/**
|
|
1527
|
+
* A self-bind ("pin") for every directory between a seed (where a deny bind,
|
|
1528
|
+
* file mask or read-deny tmpfs lands) and the allowed write root covering it,
|
|
1529
|
+
* shallow-first, which makes each one a mountpoint the kernel refuses to
|
|
1530
|
+
* rename or remove. A directory that is not there is skipped: bwrap cannot
|
|
1531
|
+
* bind a missing source and there is nothing to rename. One that exists but
|
|
1532
|
+
* cannot be inspected is still pinned, and if bwrap cannot bind it either the
|
|
1533
|
+
* sandbox does not start, which is where the deny loop lands too.
|
|
1534
|
+
*
|
|
1535
|
+
* Pins are read-only and spliced in beneath every other mount, so that one
|
|
1536
|
+
* landing on top of an allowed write root cannot make it read-only; a write
|
|
1537
|
+
* root needs no pin of its own there, its allow bind already being a live
|
|
1538
|
+
* mountpoint.
|
|
1539
|
+
*
|
|
1540
|
+
* A '/' write root defeats that: its own recursive `--bind / /` is one of the
|
|
1541
|
+
* mounts above the pins and buries them, leaving those directories renamable.
|
|
1542
|
+
* Under one the pins therefore go AFTER the allow binds and take every
|
|
1543
|
+
* ancestor, the other allowed write roots included, stopping below the
|
|
1544
|
+
* top-level directory D on the chain; a writable `--bind D D` — the cover —
|
|
1545
|
+
* takes D itself and buries them again. Lookups enter the cover and never meet
|
|
1546
|
+
* a pin, so no filesystem boundary lands inside D, while the kernel's rename
|
|
1547
|
+
* and rmdir checks scan mounts by dentry and still find one. The only new
|
|
1548
|
+
* boundary is at D. /proc, /dev and /sys are never covered, and a seed under
|
|
1549
|
+
* one of them gets no pins.
|
|
1550
|
+
*/
|
|
1551
|
+
function ancestorPinArgs(seeds, writeRoots) {
|
|
1552
|
+
const { rootIsWriteRoot } = writeRoots;
|
|
1553
|
+
const pinDirs = new Set();
|
|
1554
|
+
const coverDirs = new Set();
|
|
1555
|
+
// Verdicts are seed-independent: a visited ancestor's chain is done.
|
|
1556
|
+
const visited = new Set();
|
|
1557
|
+
for (const seed of seeds) {
|
|
1558
|
+
if (rootIsWriteRoot &&
|
|
1559
|
+
KERNEL_TOP_LEVEL_DIRS.some(dir => isAtOrUnder(seed, dir))) {
|
|
1560
|
+
continue;
|
|
1561
|
+
}
|
|
1562
|
+
for (let dir = path.dirname(seed); dir !== '/' && !visited.has(dir) && writeRoots.isWithinAllowedWrite(dir); dir = path.dirname(dir)) {
|
|
1563
|
+
visited.add(dir);
|
|
1564
|
+
if (rootIsWriteRoot) {
|
|
1565
|
+
if (path.dirname(dir) === '/') {
|
|
1566
|
+
coverDirs.add(dir);
|
|
1567
|
+
continue;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
else if (writeRoots.isAllowedWriteRoot(dir)) {
|
|
1571
|
+
continue;
|
|
1572
|
+
}
|
|
1573
|
+
try {
|
|
1574
|
+
fs.statSync(dir);
|
|
1575
|
+
}
|
|
1576
|
+
catch (err) {
|
|
1577
|
+
if (isAbsenceErrno(err))
|
|
1578
|
+
continue;
|
|
1579
|
+
}
|
|
1580
|
+
pinDirs.add(dir);
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
const covers = [...coverDirs];
|
|
1584
|
+
if (covers.length > 0) {
|
|
1585
|
+
logForDebugging(`[Sandbox Linux] Covering the pinned ancestors under: ${covers.join(', ')}`);
|
|
1586
|
+
}
|
|
1587
|
+
return [
|
|
1588
|
+
...[...pinDirs]
|
|
1589
|
+
.sort((a, b) => a.split('/').length - b.split('/').length)
|
|
1590
|
+
.flatMap(dir => ['--ro-bind', dir, dir]),
|
|
1591
|
+
...covers.flatMap(dir => ['--bind', dir, dir]),
|
|
1592
|
+
];
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Mount a tmpfs over a read-denied directory, then restore the allowed write
|
|
1596
|
+
* paths and allowRead paths the tmpfs just wiped. Returns the mounts it
|
|
1597
|
+
* re-bound, writable and read-only, which is what a later pass re-emits when
|
|
1598
|
+
* a denyWrite bind re-exposes this directory.
|
|
1599
|
+
*/
|
|
1600
|
+
function pushReadDenyDirMounts(args, unit) {
|
|
1601
|
+
const { landing, allowedWritePaths, readAllowPaths } = unit;
|
|
1602
|
+
args.push('--tmpfs', landing);
|
|
1603
|
+
// How to bind allowed path `p` back, if it is a carve-out of this unit:
|
|
1604
|
+
// its name must live inside the denied directory, and so must what it
|
|
1605
|
+
// resolves to. Parent directories may be symlinks (/lib/x is a carve-out
|
|
1606
|
+
// of a tmpfs on /usr, where /lib is a link to /usr/lib). A path that is
|
|
1607
|
+
// itself a symlink INTO the directory is not a carve-out: it names the
|
|
1608
|
+
// link, which this tmpfs did not hide, and re-allows nothing the link
|
|
1609
|
+
// points at, or a link planted at an allowed path (docs -> ~/.ssh) would
|
|
1610
|
+
// cancel the deny of its target.
|
|
1611
|
+
//
|
|
1612
|
+
// The mount goes back at the NAME (the entry re-allows the name it is, and
|
|
1613
|
+
// an entry whose last component is a symlink is ENOENT inside the sandbox
|
|
1614
|
+
// if restored only at its target), from the RESOLVED source: that is the
|
|
1615
|
+
// path both containment checks were made against, and naming it leaves
|
|
1616
|
+
// bwrap nothing to re-resolve at mount time.
|
|
1617
|
+
const restorePlacementOf = (p) => {
|
|
1618
|
+
const dest = unit.nameLocation(p);
|
|
1619
|
+
if (!isAtOrUnder(dest, landing))
|
|
1620
|
+
return undefined;
|
|
1621
|
+
const { canonical: source, resolved } = unit.resolve(p);
|
|
1622
|
+
if (!resolved) {
|
|
1623
|
+
logForDebugging(`[Sandbox Linux] Not restoring ${p} over denyRead tmpfs ${landing}: nothing there resolves (absent, dangling or unreadable), so the only source available is the name itself`, { level: 'warn' });
|
|
1624
|
+
return undefined;
|
|
1625
|
+
}
|
|
1626
|
+
if (!isAtOrUnder(source, landing)) {
|
|
1627
|
+
logForDebugging(`[Sandbox Linux] Not restoring ${p} over denyRead tmpfs ${landing}: it resolves outside it, to ${source}`, { level: 'warn' });
|
|
1628
|
+
return undefined;
|
|
1629
|
+
}
|
|
1630
|
+
// Restoring at the name from a DIFFERENT path is a second mount of the
|
|
1631
|
+
// target's inode, which nothing landing on the target's own path covers,
|
|
1632
|
+
// so such a restore is dropped whenever the read section hides anything
|
|
1633
|
+
// at, inside or around that target: the deny wins, and the follow-up that
|
|
1634
|
+
// gives the carve-out back has to bind the target at the target.
|
|
1635
|
+
if (source !== dest) {
|
|
1636
|
+
const denied = unit.readDenialAround(source);
|
|
1637
|
+
if (denied !== undefined) {
|
|
1638
|
+
logForDebugging(`[Sandbox Linux] Not restoring ${p} over denyRead tmpfs ${landing}: it resolves to ${source}, and the read section denies or masks ${denied}`, { level: 'warn' });
|
|
1639
|
+
return undefined;
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
return { source, dest };
|
|
1643
|
+
};
|
|
1644
|
+
// tmpfs wiped any earlier write binds under this path — restore them.
|
|
1645
|
+
const restoredWrites = [];
|
|
1646
|
+
for (const writePath of allowedWritePaths) {
|
|
1647
|
+
const placement = restorePlacementOf(writePath);
|
|
1648
|
+
if (placement === undefined)
|
|
1649
|
+
continue;
|
|
1650
|
+
args.push('--bind', placement.source, placement.dest);
|
|
1651
|
+
restoredWrites.push(placement);
|
|
1652
|
+
logForDebugging(`[Sandbox Linux] Re-bound write path wiped by denyRead tmpfs: ${writePath}`);
|
|
1653
|
+
}
|
|
1654
|
+
// Re-allow specific paths within the denied directory (allowRead overrides denyRead).
|
|
1655
|
+
// After mounting tmpfs over the denied dir, bind back the allowed subdirectories
|
|
1656
|
+
// so they are readable again.
|
|
1657
|
+
const restoredReads = [];
|
|
1658
|
+
for (const allowPath of readAllowPaths) {
|
|
1659
|
+
const placement = restorePlacementOf(allowPath);
|
|
1660
|
+
if (placement === undefined)
|
|
1661
|
+
continue;
|
|
1662
|
+
// Skip only if a write path was re-bound just above AND covers
|
|
1663
|
+
// allowPath. A write path that's an ancestor of the deny dir isn't
|
|
1664
|
+
// re-bound (it wasn't wiped), so allowPath under it still needs
|
|
1665
|
+
// its own ro-bind here.
|
|
1666
|
+
if (restoredWrites.some(w => isAtOrUnder(placement.dest, w.dest)))
|
|
1667
|
+
continue;
|
|
1668
|
+
// Bind the allowed path back over the tmpfs so it's readable
|
|
1669
|
+
args.push('--ro-bind', placement.source, placement.dest);
|
|
1670
|
+
restoredReads.push(placement);
|
|
1671
|
+
logForDebugging(`[Sandbox Linux] Re-allowed read access within denied region: ${allowPath}`);
|
|
1672
|
+
}
|
|
1673
|
+
return { restoredWrites, restoredReads };
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* Generate filesystem bind mount arguments for bwrap
|
|
1677
|
+
*/
|
|
1678
|
+
async function generateFilesystemArgs(readConfig, writeConfig, maskedFileBinds, maskedFileStoreDir, ripgrepConfig = { command: 'rg' }, mandatoryDenySearchDepth = DEFAULT_MANDATORY_DENY_SEARCH_DEPTH, allowGitConfig = false, abortSignal) {
|
|
1679
|
+
const args = [];
|
|
1680
|
+
const startedIn = workingDirectory();
|
|
1681
|
+
// fs already imported
|
|
1682
|
+
// Collect normalized allowed write paths. Populated in the writeConfig
|
|
1683
|
+
// block, read again in the denyRead loop to re-bind writes under tmpfs.
|
|
1684
|
+
const allowedWritePaths = [];
|
|
1685
|
+
// denyWrite binds are buffered and emitted after denyRead processing so that
|
|
1686
|
+
// a denyRead tmpfs over an ancestor directory doesn't wipe them out.
|
|
1687
|
+
const denyWriteArgs = [];
|
|
1688
|
+
// Where the mandatory denies' binds begin in it: after the configuration's.
|
|
1689
|
+
let mandatoryDenyArgsStart = Infinity;
|
|
1690
|
+
// Directories that a deny entry re-binds read-only inside the sandbox
|
|
1691
|
+
// (--ro-bind <dir> <dir>), keyed by resolved dest, with every raw
|
|
1692
|
+
// (pre-resolution) spelling each was reached through. A non-existent deny
|
|
1693
|
+
// path whose deepest existing ancestor lies within one of these is already
|
|
1694
|
+
// uncreatable, and must not get a /dev/null stub: bwrap would have to
|
|
1695
|
+
// creat() the mount point inside that read-only mount and abort ("Can't
|
|
1696
|
+
// create file at <path>: Read-only file system"). An EXISTING deny path
|
|
1697
|
+
// strictly beneath one is likewise already unwritable and its own
|
|
1698
|
+
// --ro-bind <p> <p> is skipped as redundant. The spellings matter
|
|
1699
|
+
// because the re-application passes record a deny bind's raw spelling
|
|
1700
|
+
// beside its resolved dest, so the stub-skip guard tests a covering
|
|
1701
|
+
// directory in its canonical form AND every recorded spelling.
|
|
1702
|
+
const readOnlyDenyDirSpellings = new Map();
|
|
1703
|
+
// Resolved dests that at least one deny entry reaches through a symlink.
|
|
1704
|
+
// Asked of the dest, not of the entry in hand: the deny loop deduplicates
|
|
1705
|
+
// on the dest, so which spelling it sees is the caller's ordering.
|
|
1706
|
+
const symlinkedDenySpellingDests = new Set();
|
|
1707
|
+
// dest → the pre-resolution deny path it came from. A bind at the resolved
|
|
1708
|
+
// dest also re-exposes whatever the symlinked spelling leads to, so the
|
|
1709
|
+
// re-application passes below compare a read deny's landing against both
|
|
1710
|
+
// spellings. Landings and allowed write paths are canonical, so the extra
|
|
1711
|
+
// spelling can only match more of them, never fewer.
|
|
1712
|
+
const denyWriteRawDests = new Map();
|
|
1713
|
+
// Placeholder dests where no mount point can be made (see mountPointFor).
|
|
1714
|
+
// Planned like the others, so that their ancestors are pinned and counted
|
|
1715
|
+
// alike, and left out at emission.
|
|
1716
|
+
const unmakeableDenyDests = new Set();
|
|
1717
|
+
// The shared empty directory this call's placeholders bind from, resolved at
|
|
1718
|
+
// most once per wrap: resolving again mid-wrap (the cached path having been
|
|
1719
|
+
// tampered with in between) would leave the binds already emitted pointing
|
|
1720
|
+
// at a directory this same call has just judged not ours.
|
|
1721
|
+
let emptySource;
|
|
1722
|
+
// Where a mount given `p` lands: `p` fully resolved, every symlink on the
|
|
1723
|
+
// way and not one hop. One resolution per path per wrap, so every predicate
|
|
1724
|
+
// below sees the same answer, and none before the mandatory-deny scan's
|
|
1725
|
+
// await: that scan can run arbitrarily long, and a realpath taken ahead of
|
|
1726
|
+
// it would miss a symlink retargeted meanwhile.
|
|
1727
|
+
const canonicalFormCache = new Map();
|
|
1728
|
+
// Paths whose canonical location could not be LOOKED AT — a settled errno,
|
|
1729
|
+
// or a transient one that outlived the retry — so the recorded spelling
|
|
1730
|
+
// stands in for it. That is a guess, and the
|
|
1731
|
+
// stub-skip prediction below refuses to conclude anything from a guess made
|
|
1732
|
+
// about its own inputs. Plain absence is not a guess: nothing is there to
|
|
1733
|
+
// resolve, and every consumer already treats such a path as absent (a
|
|
1734
|
+
// dangling symlink under '/' is ordinary, and counting it would keep every
|
|
1735
|
+
// deny placeholder on the whole host).
|
|
1736
|
+
const canonicalFormGuesses = new Set();
|
|
1737
|
+
// Paths canonicalForm answered with the spelling it was given because
|
|
1738
|
+
// nothing could be resolved. A mount SOURCE must never be one of them:
|
|
1739
|
+
// bwrap would resolve whatever sits at that name at mount time, after the
|
|
1740
|
+
// containment checks ran against the name itself.
|
|
1741
|
+
const canonicalFormUnresolved = new Set();
|
|
1742
|
+
const canonicalForm = (p) => {
|
|
1743
|
+
let canonical = canonicalFormCache.get(p);
|
|
1744
|
+
if (canonical === undefined) {
|
|
1745
|
+
try {
|
|
1746
|
+
canonical = retryingTransient(() => realPathOf(p));
|
|
1747
|
+
}
|
|
1748
|
+
catch (err) {
|
|
1749
|
+
canonical = p; // vanished or unresolvable: the recorded form stands
|
|
1750
|
+
canonicalFormUnresolved.add(p);
|
|
1751
|
+
if (!isAbsenceErrno(err)) {
|
|
1752
|
+
canonicalFormGuesses.add(p);
|
|
1753
|
+
logForDebugging(`[Sandbox Linux] Where ${p} really is cannot be told, so what is mounted for it is mounted on this spelling, which bubblewrap may refuse: ${err}`, { level: 'warn' });
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
canonicalFormCache.set(p, canonical);
|
|
1757
|
+
}
|
|
1758
|
+
return canonical;
|
|
1759
|
+
};
|
|
1760
|
+
/** Where `p` resolves to, beside whether anything was resolved at all.
|
|
1761
|
+
* Answered together because the answer is the spelling itself when nothing
|
|
1762
|
+
* was, and a mount source must never be one of those. */
|
|
1763
|
+
const canonicalLocationOf = (p) => ({
|
|
1764
|
+
canonical: canonicalForm(p),
|
|
1765
|
+
resolved: !canonicalFormUnresolved.has(p),
|
|
1766
|
+
});
|
|
1767
|
+
/** `p` as recorded, plus its canonical location when that differs. */
|
|
1768
|
+
const mountForms = (p) => {
|
|
1769
|
+
const canonical = canonicalForm(p);
|
|
1770
|
+
return canonical === p ? [p] : [p, canonical];
|
|
1771
|
+
};
|
|
1772
|
+
// Where the name `p` lives: its parent directories resolved, its last
|
|
1773
|
+
// component as written. This, not what `p` resolves to, decides which read
|
|
1774
|
+
// deny an allowRead entry is an exception to: an entry that is a symlink
|
|
1775
|
+
// names the link, and re-allows nothing the link points at.
|
|
1776
|
+
const nameLocationOf = (p) => nameLocation(p, canonicalForm);
|
|
1777
|
+
// Whether a canonical path lies inside the write allowlist, and so
|
|
1778
|
+
// whether it is stubbed and pinned at all: a path outside it is left
|
|
1779
|
+
// read-only by the initial --ro-bind / /. allowedWritePaths entries are
|
|
1780
|
+
// canonical (the allow loop drops a symlink-spelled one) and recorded with
|
|
1781
|
+
// trailing slashes stripped.
|
|
1782
|
+
//
|
|
1783
|
+
// Containment is root-aware (isAtOrUnder) because '/' is a legal allowOnly
|
|
1784
|
+
// entry that the allow loop binds writable: an `allowedPath + '/'` prefix
|
|
1785
|
+
// test spells it '//' and matches nothing, so every deny no other allow
|
|
1786
|
+
// entry covers would be judged outside the allowlist and silently lose its
|
|
1787
|
+
// bind over a writable root. The ancestor pins are the one consumer that
|
|
1788
|
+
// treats a '/' write root specially: see ancestorPinArgs.
|
|
1789
|
+
const isWithinAnyAllowedWritePath = (candidatePath) => allowedWritePaths.some(allowedPath => isAtOrUnder(candidatePath, allowedPath));
|
|
1790
|
+
// Whether an existing deny path gets its own --ro-bind: it lies inside the
|
|
1791
|
+
// write allowlist, or an allowed write path lies beneath it, whose --bind
|
|
1792
|
+
// the deny's then covers. The deny pre-pass and the deny loop's --ro-bind
|
|
1793
|
+
// gate MUST share it: the pre-pass is only sound if it records exactly the
|
|
1794
|
+
// directories the loop re-binds read-only (a recorded directory that is
|
|
1795
|
+
// never re-bound read-only would suppress stubs unsafely; a re-bound
|
|
1796
|
+
// directory missing from the record only costs an abort).
|
|
1797
|
+
const meetsAnyAllowedWritePath = (candidatePath) => isWithinAnyAllowedWritePath(candidatePath) ||
|
|
1798
|
+
allowedWritePaths.some(allowedPath => isStrictlyUnder(allowedPath, candidatePath));
|
|
1799
|
+
const isAllowedWriteRoot = (candidatePath) => allowedWritePaths.includes(candidatePath);
|
|
1800
|
+
// Resolves symlinks, so computed on first use, which is after the
|
|
1801
|
+
// mandatory-deny scan.
|
|
1802
|
+
let readAllowPathsMemo;
|
|
1803
|
+
const readAllowPaths = () => (readAllowPathsMemo ?? (readAllowPathsMemo = (readConfig?.allowWithinDeny || []).map(p => normalizePathForSandbox(p, { literal: true }))));
|
|
1804
|
+
let ownReadAllowPathsMemo;
|
|
1805
|
+
const ownReadAllowPaths = () => (ownReadAllowPathsMemo ?? (ownReadAllowPathsMemo = (readConfig?.ownAllowWithinDeny ?? []).map(p => normalizePathForSandbox(p, { literal: true }))));
|
|
1806
|
+
// The denyOnly entries that are credential denies, as they are spelled
|
|
1807
|
+
// there, and what may be an exception to a read deny of either kind.
|
|
1808
|
+
const credentialDenies = new Set(readConfig?.credentialDenyOnly);
|
|
1809
|
+
const readExceptionsTo = (isCredential) => isCredential ? ownReadAllowPaths() : readAllowPaths();
|
|
1810
|
+
// What the read section mounts for one denyRead entry: a tmpfs (directory)
|
|
1811
|
+
// or a /dev/null mask (anything else) on the entry itself; nothing when it
|
|
1812
|
+
// is not there; and, when it cannot be inspected, a tmpfs on the deepest
|
|
1813
|
+
// directory above it that can. That hides more than was asked, never less:
|
|
1814
|
+
// a same-uid command can make a parent unsearchable (chmod 000) and undo it
|
|
1815
|
+
// again from inside the next sandbox, so "unreadable now" is not "absent".
|
|
1816
|
+
// This is the widest blast radius a transient failure has, hence the retry:
|
|
1817
|
+
// one unlucky EIO turns a file deny into a stand-in over its whole
|
|
1818
|
+
// directory, and every carve-out beneath that is then refused.
|
|
1819
|
+
const readDenyTargetOf = (entry) => {
|
|
1820
|
+
for (let candidate = entry;; candidate = path.dirname(candidate)) {
|
|
1821
|
+
if (candidate === '/' && candidate !== entry)
|
|
1822
|
+
return undefined;
|
|
1823
|
+
try {
|
|
1824
|
+
const stats = retryingTransient(() => fs.statSync(candidate));
|
|
1825
|
+
return {
|
|
1826
|
+
path: candidate,
|
|
1827
|
+
isDirectory: stats.isDirectory(),
|
|
1828
|
+
isStandIn: candidate !== entry,
|
|
1829
|
+
};
|
|
1830
|
+
}
|
|
1831
|
+
catch (err) {
|
|
1832
|
+
if (isAbsenceErrno(err) || candidate === '/')
|
|
1833
|
+
return undefined;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
};
|
|
1837
|
+
// Where that mount lands, which is where the entry really is: one mount
|
|
1838
|
+
// then covers every spelling of that place; the real contents are hidden
|
|
1839
|
+
// wherever they are reachable, even when the route that named them is
|
|
1840
|
+
// itself inside an earlier tmpfs; and no mount is ever asked to land on a
|
|
1841
|
+
// symlink, which bubblewrap refuses outright from 0.12 on ("Can't mount on
|
|
1842
|
+
// symlink destination").
|
|
1843
|
+
//
|
|
1844
|
+
// '/' is never a landing. Only a symlink to the root resolves there (a '/'
|
|
1845
|
+
// entry itself is expanded into the root's children), and a --tmpfs /
|
|
1846
|
+
// would wipe every mount placed before it while the pivot promoted it,
|
|
1847
|
+
// booting the command on an empty tree. The directory holding the link
|
|
1848
|
+
// stands in for it, on the same rule as an entry that cannot be inspected,
|
|
1849
|
+
// and `undefined` means nothing at all is mounted for this entry.
|
|
1850
|
+
const readDenyMountOf = (entry) => {
|
|
1851
|
+
const target = readDenyTargetOf(entry);
|
|
1852
|
+
if (target === undefined)
|
|
1853
|
+
return undefined;
|
|
1854
|
+
const landing = canonicalForm(target.path);
|
|
1855
|
+
if (landing !== '/') {
|
|
1856
|
+
return {
|
|
1857
|
+
landing,
|
|
1858
|
+
named: target.path,
|
|
1859
|
+
isDirectory: target.isDirectory,
|
|
1860
|
+
isStandIn: target.isStandIn,
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
const holder = canonicalForm(path.dirname(target.path));
|
|
1864
|
+
if (holder === '/')
|
|
1865
|
+
return undefined;
|
|
1866
|
+
return {
|
|
1867
|
+
landing: holder,
|
|
1868
|
+
named: target.path,
|
|
1869
|
+
isDirectory: true,
|
|
1870
|
+
isStandIn: true,
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
// The directories and files the read section denies, as configured. A '/'
|
|
1874
|
+
// entry is expanded into the root's children, because --tmpfs / would wipe
|
|
1875
|
+
// every prior mount (ro-bind /, write binds, deny binds). /proc and /dev are
|
|
1876
|
+
// skipped (the caller remounts them after this function returns) and so is
|
|
1877
|
+
// /sys (kernel interface; the host's is already read-only via ro-bind). A
|
|
1878
|
+
// child an allowRead entry covers (its name is the child, or an ancestor
|
|
1879
|
+
// of where the child lands) is skipped too: the deny is synthetic and the
|
|
1880
|
+
// allow is the caller's, and a tmpfs at the child's canonical location
|
|
1881
|
+
// (/bin lands at /usr/bin) would only be restored over again. An entry
|
|
1882
|
+
// that is a symlink to the child covers nothing: its name lives elsewhere. /etc/ssh/ssh_config.d is
|
|
1883
|
+
// always hidden when there is a read policy: ssh is strict about config
|
|
1884
|
+
// file ownership and permissions, which can look wrong inside the sandbox
|
|
1885
|
+
// ("Bad owner or permissions" under OrbStack). Throws if '/' cannot be
|
|
1886
|
+
// listed, a transient failure having been retried once. Computed on first
|
|
1887
|
+
// use, like readAllowPaths.
|
|
1888
|
+
let readDenyEntriesMemo;
|
|
1889
|
+
const readDenyEntries = () => {
|
|
1890
|
+
if (readDenyEntriesMemo !== undefined)
|
|
1891
|
+
return readDenyEntriesMemo;
|
|
1892
|
+
if (!readConfig)
|
|
1893
|
+
return [];
|
|
1894
|
+
const entries = [];
|
|
1895
|
+
for (const p of readConfig.denyOnly || []) {
|
|
1896
|
+
if (normalizePathForSandbox(p, { literal: true }) !== '/') {
|
|
1897
|
+
entries.push(p);
|
|
1898
|
+
continue;
|
|
1899
|
+
}
|
|
1900
|
+
// The only call here that throws, and the list is memoised on success
|
|
1901
|
+
// alone, so the retry belongs to it rather than to one of its callers:
|
|
1902
|
+
// the stub-skip derivation catches a throw and gives up on the
|
|
1903
|
+
// prediction, and the denyRead loop below does not catch one at all.
|
|
1904
|
+
const children = retryingTransient(() => fs.readdirSync('/'));
|
|
1905
|
+
const isCredential = credentialDenies.has(p);
|
|
1906
|
+
for (const child of children) {
|
|
1907
|
+
if (KERNEL_TOP_LEVEL_DIRS.includes(`/${child}`))
|
|
1908
|
+
continue;
|
|
1909
|
+
const childLocation = canonicalForm('/' + child);
|
|
1910
|
+
const covered = readExceptionsTo(isCredential).some(allowPath => isAtOrUnder(childLocation, nameLocationOf(allowPath)));
|
|
1911
|
+
if (covered) {
|
|
1912
|
+
logForDebugging(`[Sandbox Linux] Root deny expansion skips /${child}: covered by allowRead`);
|
|
1913
|
+
continue;
|
|
1914
|
+
}
|
|
1915
|
+
entries.push('/' + child);
|
|
1916
|
+
if (isCredential)
|
|
1917
|
+
credentialDenies.add('/' + child);
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
if (fs.existsSync('/etc/ssh/ssh_config.d')) {
|
|
1921
|
+
entries.push('/etc/ssh/ssh_config.d');
|
|
1922
|
+
}
|
|
1923
|
+
readDenyEntriesMemo = entries;
|
|
1924
|
+
return entries;
|
|
1925
|
+
};
|
|
1926
|
+
// Shallow-first by canonical depth, so a tmpfs over a directory lands
|
|
1927
|
+
// before the tmpfs or /dev/null mask on anything inside it however either
|
|
1928
|
+
// was spelled. That order is what lets a unit restore its write and
|
|
1929
|
+
// allowRead paths unconditionally: nothing emitted so far can lie inside
|
|
1930
|
+
// one. Sorted by spelling, a symlink-spelled entry could mount first inside
|
|
1931
|
+
// a directory listed after it, whose restores would then bury it.
|
|
1932
|
+
const canonicalDepth = (p) => canonicalForm(p).split('/').length;
|
|
1933
|
+
// What every denyRead entry mounts and where: ONE walk, whose answers the
|
|
1934
|
+
// deny loop, the locations the carve-out gate below reads, and the
|
|
1935
|
+
// stub-skip prediction all take, so none of them can disagree about where
|
|
1936
|
+
// a deny lands. `mount` is undefined where nothing is mounted at all;
|
|
1937
|
+
// `liftedFile` marks a file deny an allowRead entry naming that very file
|
|
1938
|
+
// cancels — the entry mounts nothing in that case either. Lazy and
|
|
1939
|
+
// memoised like readDenyEntries(): it resolves symlinks, so it must not run
|
|
1940
|
+
// before the mandatory-deny scan's await.
|
|
1941
|
+
let readDenyPlanMemo;
|
|
1942
|
+
const readDenyPlan = () => (readDenyPlanMemo ?? (readDenyPlanMemo = readDenyEntries()
|
|
1943
|
+
.map(p => ({
|
|
1944
|
+
normalizedPath: normalizePathForSandbox(p, { literal: true }),
|
|
1945
|
+
isCredential: credentialDenies.has(p),
|
|
1946
|
+
}))
|
|
1947
|
+
.sort((a, b) => canonicalDepth(a.normalizedPath) - canonicalDepth(b.normalizedPath))
|
|
1948
|
+
.map(({ normalizedPath, isCredential }) => {
|
|
1949
|
+
const mount = readDenyMountOf(normalizedPath);
|
|
1950
|
+
return {
|
|
1951
|
+
normalizedPath,
|
|
1952
|
+
mount,
|
|
1953
|
+
isCredential,
|
|
1954
|
+
liftedFile: mount !== undefined &&
|
|
1955
|
+
!mount.isDirectory &&
|
|
1956
|
+
readExceptionsTo(isCredential).some(allowPath => nameLocationOf(allowPath) === mount.landing),
|
|
1957
|
+
};
|
|
1958
|
+
})));
|
|
1959
|
+
// Where the ancestor pins are spliced in once every mount is known:
|
|
1960
|
+
// beneath the allow binds, or after them under a '/' write root that would
|
|
1961
|
+
// otherwise bury them (see ancestorPinArgs).
|
|
1962
|
+
let ancestorPinInsertAt;
|
|
1963
|
+
// Determine initial root mount based on write restrictions
|
|
1964
|
+
if (writeConfig) {
|
|
1965
|
+
// Write restrictions: Start with read-only root, then allow writes to specific paths
|
|
1966
|
+
args.push('--ro-bind', '/', '/');
|
|
1967
|
+
const beneathAllowBinds = args.length;
|
|
1968
|
+
// Allow writes to specific paths
|
|
1969
|
+
for (const pathPattern of writeConfig.allowOnly || []) {
|
|
1970
|
+
// Every path here is a name, and normalizePathForSandbox strips a
|
|
1971
|
+
// name's trailing slash; the strip below stays as a guard. Allow paths
|
|
1972
|
+
// are recorded slash-free because every
|
|
1973
|
+
// downstream comparison — the deny loop's within-allowlist gate,
|
|
1974
|
+
// findSymlinkInPath's mask scoping, the emission filter's re-expose
|
|
1975
|
+
// check, the denyRead re-bind and its allowRead skip, and the stub-skip
|
|
1976
|
+
// vetoes — matches by `allowedPath + '/'` prefix, which '<dir>//'
|
|
1977
|
+
// silently defeats. bwrap binds 'dir' and 'dir/' identically, so
|
|
1978
|
+
// normalizing the recorded spelling fixes every consumer at once
|
|
1979
|
+
// instead of per-predicate. ('/' itself is kept; the empty spelling an
|
|
1980
|
+
// empty $HOME expands '~' to is NOT the root, and falls out at the
|
|
1981
|
+
// existence check below.)
|
|
1982
|
+
const normalized = normalizePathForSandbox(pathPattern, { literal: true });
|
|
1983
|
+
const normalizedPath = normalized === '' ? '' : normalized.replace(/\/+$/, '') || '/';
|
|
1984
|
+
logForDebugging(`[Sandbox Linux] Processing write path: ${pathPattern} -> ${normalizedPath}`);
|
|
1985
|
+
// Skip /dev/* paths since --dev /dev already handles them
|
|
1986
|
+
if (normalizedPath.startsWith('/dev/')) {
|
|
1987
|
+
logForDebugging(`[Sandbox Linux] Skipping /dev path: ${normalizedPath}`);
|
|
1988
|
+
continue;
|
|
1989
|
+
}
|
|
1990
|
+
if (!fs.existsSync(normalizedPath)) {
|
|
1991
|
+
logForDebugging(`[Sandbox Linux] Skipping non-existent write path: ${normalizedPath}`);
|
|
1992
|
+
continue;
|
|
1993
|
+
}
|
|
1994
|
+
// Check if path is a symlink pointing outside expected boundaries
|
|
1995
|
+
// bwrap follows symlinks, so --bind on a symlink makes the target writable
|
|
1996
|
+
// This could unexpectedly expose paths the user didn't intend to allow
|
|
1997
|
+
try {
|
|
1998
|
+
const resolvedPath = realPathOf(normalizedPath);
|
|
1999
|
+
// Trim trailing slashes before comparing: realpathSync never returns
|
|
2000
|
+
// a trailing slash, but normalizedPath may have one, which would cause
|
|
2001
|
+
// a false mismatch and incorrectly treat the path as a symlink.
|
|
2002
|
+
const normalizedForComparison = normalizedPath.replace(/\/+$/, '');
|
|
2003
|
+
if (resolvedPath !== normalizedForComparison &&
|
|
2004
|
+
isSymlinkOutsideBoundary(normalizedPath, resolvedPath)) {
|
|
2005
|
+
logForDebugging(`[Sandbox Linux] Skipping symlink write path pointing outside expected location: ${pathPattern} -> ${resolvedPath}`);
|
|
2006
|
+
continue;
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
catch {
|
|
2010
|
+
// realpathSync failed - path might not exist or be accessible, skip it
|
|
2011
|
+
logForDebugging(`[Sandbox Linux] Skipping write path that could not be resolved: ${normalizedPath}`);
|
|
2012
|
+
continue;
|
|
2013
|
+
}
|
|
2014
|
+
args.push('--bind', normalizedPath, normalizedPath);
|
|
2015
|
+
allowedWritePaths.push(normalizedPath);
|
|
2016
|
+
}
|
|
2017
|
+
ancestorPinInsertAt = isAllowedWriteRoot('/')
|
|
2018
|
+
? args.length
|
|
2019
|
+
: beneathAllowBinds;
|
|
2020
|
+
let stubSkipVetoInputs;
|
|
2021
|
+
const getStubSkipVetoInputs = () => {
|
|
2022
|
+
if (stubSkipVetoInputs !== undefined) {
|
|
2023
|
+
return stubSkipVetoInputs;
|
|
2024
|
+
}
|
|
2025
|
+
const unusable = (cause) => {
|
|
2026
|
+
logForDebugging(`[Sandbox Linux] Read-deny prediction unusable (${cause}); keeping every deny placeholder, which refuses to start wherever a covering deny directory is read-only: bubblewrap cannot create a placeholder's mount point there`, { level: 'warn' });
|
|
2027
|
+
return { usable: false };
|
|
2028
|
+
};
|
|
2029
|
+
// Single-shot: readDenyEntries() owns the retry for the one thing that
|
|
2030
|
+
// throws here, its listing of '/'. A guess would survive a retry
|
|
2031
|
+
// anyway, being a settled verdict about a path that cannot be looked at.
|
|
2032
|
+
try {
|
|
2033
|
+
const allowedWritePathsBothForms = allowedWritePaths.flatMap(mountForms);
|
|
2034
|
+
const prospectiveReadDenyTmpfsDirsBothForms = readDenyPlan().flatMap(({ mount }) => {
|
|
2035
|
+
if (!mount?.isDirectory)
|
|
2036
|
+
return [];
|
|
2037
|
+
// The tmpfs hides its landing, and the spelling the entry
|
|
2038
|
+
// resolved to when that differs. '/' is never a landing, and
|
|
2039
|
+
// must not enter the prediction as a spelling either (a link
|
|
2040
|
+
// to the root resolves there, and its holder is the landing):
|
|
2041
|
+
// every covering directory lies under '/', so predicting a
|
|
2042
|
+
// tmpfs there would veto every skip on the whole host.
|
|
2043
|
+
return [
|
|
2044
|
+
...new Set([...mountForms(mount.named), mount.landing]),
|
|
2045
|
+
].filter(form => form !== '/');
|
|
2046
|
+
});
|
|
2047
|
+
// Every canonicalForm call site runs inside this derivation or after
|
|
2048
|
+
// the deny loop that triggers it, so a guess recorded by now was made
|
|
2049
|
+
// about the derivation's own inputs. A future caller that resolves
|
|
2050
|
+
// earlier can only add guesses here, which vetoes more skips, never
|
|
2051
|
+
// fewer.
|
|
2052
|
+
stubSkipVetoInputs =
|
|
2053
|
+
canonicalFormGuesses.size > 0
|
|
2054
|
+
? unusable(`no canonical location for ${[...canonicalFormGuesses].join(', ')}`)
|
|
2055
|
+
: {
|
|
2056
|
+
usable: true,
|
|
2057
|
+
allowedWritePathsBothForms,
|
|
2058
|
+
prospectiveReadDenyTmpfsDirsBothForms,
|
|
2059
|
+
};
|
|
2060
|
+
}
|
|
2061
|
+
catch (err) {
|
|
2062
|
+
stubSkipVetoInputs = unusable(`deriving it threw: ${err}`);
|
|
2063
|
+
}
|
|
2064
|
+
return stubSkipVetoInputs;
|
|
2065
|
+
};
|
|
2066
|
+
// Deny writes within allowed paths (user-specified + mandatory denies)
|
|
2067
|
+
const configuredDenyPaths = writeConfig.denyWithinAllow || [];
|
|
2068
|
+
const denyPaths = [
|
|
2069
|
+
...configuredDenyPaths,
|
|
2070
|
+
...(await linuxGetMandatoryDenyPaths(ripgrepConfig, mandatoryDenySearchDepth, allowGitConfig, abortSignal)),
|
|
2071
|
+
];
|
|
2072
|
+
// INVARIANT: one plan, one working directory. A relative entry is resolved
|
|
2073
|
+
// against it on both sides of the await above, the only one here.
|
|
2074
|
+
if (workingDirectory() !== startedIn)
|
|
2075
|
+
throw new WorkingDirectoryChanged();
|
|
2076
|
+
// Duplicate deny entries must be collapsed: a duplicate
|
|
2077
|
+
// --ro-bind /dev/null <dest> hits a char device on the second pass and
|
|
2078
|
+
// bwrap's ensure_file() falls through to creat() on a read-only mount.
|
|
2079
|
+
const seenDenyWrite = new Set();
|
|
2080
|
+
// Every directory a deny path lies beneath, there or not.
|
|
2081
|
+
const denyPathAncestors = new Set();
|
|
2082
|
+
// PRE-PASS (order-independent): record the directories the loop below
|
|
2083
|
+
// re-binds read-only, BEFORE any stub decision, so the read-only
|
|
2084
|
+
// conclusion does not depend on where an enclosing directory appears in
|
|
2085
|
+
// the caller's denyWrite ordering. It applies the loop's own resolution,
|
|
2086
|
+
// the same symlink re-check, and the same meetsAnyAllowedWritePath
|
|
2087
|
+
// gate as the --ro-bind emission, and it records every raw spelling each
|
|
2088
|
+
// directory is reached through. A recorded directory is EVIDENCE for
|
|
2089
|
+
// skipping a stub only if it also passes the guard's vetoes below (no
|
|
2090
|
+
// read-deny tmpfs contains it in any spelling; no allowed write path is
|
|
2091
|
+
// both beneath it and under such a tmpfs), which exclude every way its
|
|
2092
|
+
// subtree could be writable in the sandbox. Keep the two passes in lockstep: a
|
|
2093
|
+
// directory recorded here is either re-bound read-only by the loop or
|
|
2094
|
+
// skipped because a recorded directory above it survived the vetoes and
|
|
2095
|
+
// is bound in its place, so every record still stands for a bind that
|
|
2096
|
+
// lands — unless a symlink appears in its path between the two passes,
|
|
2097
|
+
// where the loop masks that component and emits no bind for the
|
|
2098
|
+
// directory (the re-check below); an emitted one missing from the record
|
|
2099
|
+
// only costs a spurious abort.
|
|
2100
|
+
for (const pathPattern of denyPaths) {
|
|
2101
|
+
const rawPath = normalizePathForSandbox(pathPattern, { literal: true });
|
|
2102
|
+
if (rawPath.startsWith('/dev/')) {
|
|
2103
|
+
continue;
|
|
2104
|
+
}
|
|
2105
|
+
const resolvedPath = resolveSymlinkedDenyPath(rawPath, denyPaths);
|
|
2106
|
+
if (resolvedPath === null || resolvedPath.startsWith('/dev/')) {
|
|
2107
|
+
continue;
|
|
2108
|
+
}
|
|
2109
|
+
for (const above of properAncestors(resolvedPath)) {
|
|
2110
|
+
denyPathAncestors.add(above);
|
|
2111
|
+
}
|
|
2112
|
+
// Same defense-in-depth re-check as the loop: there the --ro-bind is
|
|
2113
|
+
// replaced by a symlink mask, so such a directory must not be recorded
|
|
2114
|
+
// as re-bound here.
|
|
2115
|
+
if (findSymlinkInPath(resolvedPath, allowedWritePaths)) {
|
|
2116
|
+
continue;
|
|
2117
|
+
}
|
|
2118
|
+
if (resolvedPath !== rawPath) {
|
|
2119
|
+
symlinkedDenySpellingDests.add(resolvedPath);
|
|
2120
|
+
}
|
|
2121
|
+
let isDirectory = false;
|
|
2122
|
+
try {
|
|
2123
|
+
isDirectory = fs.statSync(resolvedPath).isDirectory();
|
|
2124
|
+
}
|
|
2125
|
+
catch {
|
|
2126
|
+
continue; // absent (or vanished): not a read-only re-bound directory
|
|
2127
|
+
}
|
|
2128
|
+
if (!isDirectory) {
|
|
2129
|
+
continue;
|
|
2130
|
+
}
|
|
2131
|
+
if (meetsAnyAllowedWritePath(resolvedPath)) {
|
|
2132
|
+
// Keep every spelling this dest is reached through (the
|
|
2133
|
+
// re-application passes record the first-seen raw spelling beside
|
|
2134
|
+
// the dest, which this pass cannot assume): the guard below treats
|
|
2135
|
+
// the directory as unsafe if a read-deny tmpfs contains ANY of them.
|
|
2136
|
+
let spellings = readOnlyDenyDirSpellings.get(resolvedPath);
|
|
2137
|
+
if (spellings === undefined) {
|
|
2138
|
+
spellings = new Set();
|
|
2139
|
+
readOnlyDenyDirSpellings.set(resolvedPath, spellings);
|
|
2140
|
+
}
|
|
2141
|
+
spellings.add(rawPath);
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
// Per-covering-dir veto verdict, computed once per recorded directory
|
|
2145
|
+
// (the inputs never change during the deny loop) instead of per absent
|
|
2146
|
+
// deny entry.
|
|
2147
|
+
// INVARIANT: a stub, or an existing deny path's own bind, is skipped
|
|
2148
|
+
// only under a recorded covering deny directory that was judged against
|
|
2149
|
+
// a prediction that could be derived, that no read-deny tmpfs contains
|
|
2150
|
+
// (it, or any spelling it was reached through), and beneath which no
|
|
2151
|
+
// allowed write path sits that a read-deny tmpfs also covers. '/' is the
|
|
2152
|
+
// exception: it contains every allowed write path, so
|
|
2153
|
+
// coveredBySafeReadOnlyDenyDir judges a vetoed '/' against the candidate
|
|
2154
|
+
// instead — see the branch there.
|
|
2155
|
+
// The skip rests on the emission order: nothing host-backed and writable
|
|
2156
|
+
// lands after the buffered read-only binds, so a covering bind is the
|
|
2157
|
+
// last word on its subtree unless a tmpfs above it drops that bind at
|
|
2158
|
+
// emission. Where a veto could apply, keep the stub: the pre-existing
|
|
2159
|
+
// abort is preferable to a silently creatable deny path.
|
|
2160
|
+
const coveringDirUnsafeVerdicts = new Map();
|
|
2161
|
+
const coveringDirIsUnsafe = (denyDir) => {
|
|
2162
|
+
const cached = coveringDirUnsafeVerdicts.get(denyDir);
|
|
2163
|
+
if (cached !== undefined) {
|
|
2164
|
+
return cached;
|
|
2165
|
+
}
|
|
2166
|
+
const vetoInputs = getStubSkipVetoInputs();
|
|
2167
|
+
const unsafe =
|
|
2168
|
+
// (0) the prediction of what the denyRead loop will mount is
|
|
2169
|
+
// unusable, so no veto below can be trusted to fire. Veto
|
|
2170
|
+
// everything rather than nothing: a prediction that failed is no
|
|
2171
|
+
// evidence that this directory is reliably read-only.
|
|
2172
|
+
!vetoInputs.usable ||
|
|
2173
|
+
// (i) an allowed write path both strictly beneath the dir and at or
|
|
2174
|
+
// under a prospective read-deny tmpfs. Re-applying that tmpfs
|
|
2175
|
+
// after the dir's read-only bind is the one pass that mounts
|
|
2176
|
+
// anything inside such a path at all, and it restores read-only,
|
|
2177
|
+
// so this names no live re-opening route today and no
|
|
2178
|
+
// configuration is known that needs it. It is the only veto that
|
|
2179
|
+
// speaks about a writable path under the dir: should a pass after
|
|
2180
|
+
// the deny binds ever restore one writable again, the skip fails
|
|
2181
|
+
// closed here.
|
|
2182
|
+
vetoInputs.allowedWritePathsBothForms.some(writePath => isStrictlyUnder(writePath, denyDir) &&
|
|
2183
|
+
vetoInputs.prospectiveReadDenyTmpfsDirsBothForms.some(tmpfsDir => isAtOrUnder(writePath, tmpfsDir))) ||
|
|
2184
|
+
// (ii) a read-deny tmpfs CONTAINING the dir: its own --ro-bind is
|
|
2185
|
+
// dropped as hidden-by-the-tmpfs at emission, and a tmpfs above
|
|
2186
|
+
// it restores allowed paths around it — either way the dir's own
|
|
2187
|
+
// bind is not the last word on that subtree. A tmpfs containing
|
|
2188
|
+
// only a raw spelling it was reached through counts too; that
|
|
2189
|
+
// over-predicts, which only keeps a stub.
|
|
2190
|
+
vetoInputs.prospectiveReadDenyTmpfsDirsBothForms.some(tmpfsDir => [denyDir, ...(readOnlyDenyDirSpellings.get(denyDir) ?? [])].some(spelling => isAtOrUnder(spelling, tmpfsDir)));
|
|
2191
|
+
coveringDirUnsafeVerdicts.set(denyDir, unsafe);
|
|
2192
|
+
return unsafe;
|
|
2193
|
+
};
|
|
2194
|
+
// Materialized once: the pre-pass above fully populates the map and the
|
|
2195
|
+
// deny loop never mutates it.
|
|
2196
|
+
const readOnlyDenyDirs = [...readOnlyDenyDirSpellings.keys()];
|
|
2197
|
+
// The allowed write paths with no recorded directory above them.
|
|
2198
|
+
// INVARIANT: one strictly beneath a recorded directory is never writable,
|
|
2199
|
+
// whatever the vetoes say of that directory's own bind. Emitted, that bind
|
|
2200
|
+
// (or the one above that it is skipped for) covers the path; dropped as
|
|
2201
|
+
// hidden by a read-deny tmpfs, that tmpfs has wiped the path's allow bind,
|
|
2202
|
+
// and the emission filter puts a read-only bind on every write path a unit
|
|
2203
|
+
// restored beneath the dropped dest. No writable mount follows either.
|
|
2204
|
+
const uncoveredWritePaths = allowedWritePaths.filter(allowedPath => !readOnlyDenyDirs.some(denyDir => isStrictlyUnder(allowedPath, denyDir)));
|
|
2205
|
+
// Is `candidate` already unwritable in the sandbox: strictly under a
|
|
2206
|
+
// recorded read-only deny directory that survives every
|
|
2207
|
+
// coveringDirIsUnsafe veto? Strictly, because a deny equal to a recorded
|
|
2208
|
+
// directory IS that covering bind and must be emitted (an absent path
|
|
2209
|
+
// never equals one). Stops at the first vetoed covering directory.
|
|
2210
|
+
const coveredBySafeReadOnlyDenyDir = (candidate) => {
|
|
2211
|
+
let covered = false;
|
|
2212
|
+
for (const denyDir of readOnlyDenyDirs) {
|
|
2213
|
+
if (!isStrictlyUnder(candidate, denyDir))
|
|
2214
|
+
continue;
|
|
2215
|
+
if (coveringDirIsUnsafe(denyDir)) {
|
|
2216
|
+
if (denyDir === '/') {
|
|
2217
|
+
// A vetoed '/' does not disqualify an inner recorded directory:
|
|
2218
|
+
// everything lies beneath it, so it would veto every skip and
|
|
2219
|
+
// stub each absent mandatory-deny path of a write-denied cwd
|
|
2220
|
+
// after that cwd's own bind — the startup abort. Its descendants
|
|
2221
|
+
// are decided by their own recorded directories.
|
|
2222
|
+
//
|
|
2223
|
+
// It does still COVER a candidate outside every predicted
|
|
2224
|
+
// read-deny tmpfs. Its own --ro-bind / / holds the whole tree
|
|
2225
|
+
// read-only from where it is emitted, burying the allow loop's
|
|
2226
|
+
// binds, and the only writable surface after it is a re-applied
|
|
2227
|
+
// tmpfs itself: the re-application passes no allowed write
|
|
2228
|
+
// paths, so everything it restores comes back read-only. An
|
|
2229
|
+
// allowed write path beneath the root is therefore not a vector
|
|
2230
|
+
// here, and vetoing on one only brings the abort back for
|
|
2231
|
+
// `allowOnly: ['/', <dir>]`. An underivable prediction proves
|
|
2232
|
+
// nothing and keeps the stub. Without this branch, `allowOnly:
|
|
2233
|
+
// ['/']` with `denyWithinAllow: ['/']` stubs each absent cwd
|
|
2234
|
+
// dotfile on the read-only root it just mounted — the startup
|
|
2235
|
+
// abort — whenever anything vetoes '/', which an unusable
|
|
2236
|
+
// prediction or an allowed write path under a read-deny tmpfs
|
|
2237
|
+
// does. The branch is strictly stricter than covering on the
|
|
2238
|
+
// root's own bind, and it is what decides those two cases.
|
|
2239
|
+
const vetoInputs = getStubSkipVetoInputs();
|
|
2240
|
+
if (vetoInputs.usable &&
|
|
2241
|
+
!vetoInputs.prospectiveReadDenyTmpfsDirsBothForms.some(tmpfsDir => isAtOrUnder(candidate, tmpfsDir))) {
|
|
2242
|
+
covered = true;
|
|
2243
|
+
}
|
|
2244
|
+
continue;
|
|
2245
|
+
}
|
|
2246
|
+
return false;
|
|
2247
|
+
}
|
|
2248
|
+
covered = true;
|
|
2249
|
+
}
|
|
2250
|
+
return covered;
|
|
2251
|
+
};
|
|
2252
|
+
// The placeholder dests decided so far.
|
|
2253
|
+
const decidedMountPoints = new Set();
|
|
2254
|
+
const decidedMountPointOver = (p) => [p, ...properAncestors(p)].find(at => decidedMountPoints.has(at));
|
|
2255
|
+
/**
|
|
2256
|
+
* The placeholder an absent deny path adds to the plan: where, which is
|
|
2257
|
+
* its first missing component or the file above it, and on what kind of
|
|
2258
|
+
* mount point. Undefined where the path adds nothing.
|
|
2259
|
+
*
|
|
2260
|
+
* INVARIANT: a placeholder is left out only where the sandboxed command
|
|
2261
|
+
* cannot create the path either; each branch says why it cannot. On any
|
|
2262
|
+
* doubt the placeholder stays: at worst bubblewrap cannot make its mount
|
|
2263
|
+
* point and nothing starts, which loses no deny.
|
|
2264
|
+
*/
|
|
2265
|
+
const mountPointFor = (absentPath) => {
|
|
2266
|
+
const none = (why) => {
|
|
2267
|
+
logForDebugging(`[Sandbox Linux] No placeholder for non-existent deny path ${absentPath}: ${why}`);
|
|
2268
|
+
return undefined;
|
|
2269
|
+
};
|
|
2270
|
+
// One mount point per destination. Deny paths are deduplicated on the
|
|
2271
|
+
// deny path, but a placeholder lands on the first MISSING component, so
|
|
2272
|
+
// two denies can share one: denyWrite '<cwd>/.claude' together with the
|
|
2273
|
+
// mandatory '<cwd>/.claude/commands', in a project with no `.claude/`.
|
|
2274
|
+
// Asked of the record, not of the host, where the component may be
|
|
2275
|
+
// there by now (see makeableMountPoint).
|
|
2276
|
+
const decided = decidedMountPointOver(absentPath);
|
|
2277
|
+
if (decided !== undefined)
|
|
2278
|
+
return none(`decided with ${decided}`);
|
|
2279
|
+
// Read-only in the sandbox, where bwrap could not creat() a mount point
|
|
2280
|
+
// either. No allowed write path holds it, which leaves it to the initial
|
|
2281
|
+
// --ro-bind / /, or only covered ones do (see uncoveredWritePaths); or a
|
|
2282
|
+
// recorded deny directory covers it and survives the
|
|
2283
|
+
// coveringDirIsUnsafe vetoes (see the INVARIANT at its definition). The
|
|
2284
|
+
// pre-pass has recorded every such directory, wherever it appears in
|
|
2285
|
+
// denyPaths; recorded directories exist, so one that covers the path is
|
|
2286
|
+
// at or above its deepest existing ancestor.
|
|
2287
|
+
if (!uncoveredWritePaths.some(allowedPath => isAtOrUnder(absentPath, allowedPath)) ||
|
|
2288
|
+
coveredBySafeReadOnlyDenyDir(absentPath)) {
|
|
2289
|
+
return none('it is read-only there');
|
|
2290
|
+
}
|
|
2291
|
+
// Nothing can be created under a file (a git worktree's .git is one),
|
|
2292
|
+
// for as long as the file is there. So it is kept there, where the
|
|
2293
|
+
// command may write the directory that holds it. Where it may write the
|
|
2294
|
+
// file alone, that stays where it is and writable. It is not tracked
|
|
2295
|
+
// for removal: it is the caller's own, or another sandbox's mount point.
|
|
2296
|
+
// Asked of what lies above the path, not of the path: another sandbox's
|
|
2297
|
+
// bubblewrap may have made a mount point at it since it was found
|
|
2298
|
+
// absent, and a file there is no reason to leave it unbound.
|
|
2299
|
+
const file = fileOnTheWay(path.dirname(absentPath));
|
|
2300
|
+
if (file !== undefined) {
|
|
2301
|
+
if (seenDenyWrite.has(file))
|
|
2302
|
+
return none(`${file} is denied itself`);
|
|
2303
|
+
if (!uncoveredWritePaths.some(allowedPath => isAtOrUnder(path.dirname(file), allowedPath))) {
|
|
2304
|
+
return none(`${file} is a file, in a directory that is read-only`);
|
|
2305
|
+
}
|
|
2306
|
+
seenDenyWrite.add(file);
|
|
2307
|
+
decidedMountPoints.add(file);
|
|
2308
|
+
return { dest: file, kind: MountPointKind.Held };
|
|
2309
|
+
}
|
|
2310
|
+
// A component with a deny path beneath it is covered by an empty
|
|
2311
|
+
// read-only directory, which blocks creating it and everything below it
|
|
2312
|
+
// exactly as /dev/null does and stays traversable; as a file it breaks
|
|
2313
|
+
// tools that expect a directory there. Whatever the order of denyPaths.
|
|
2314
|
+
const dest = findFirstNonExistentComponent(absentPath);
|
|
2315
|
+
decidedMountPoints.add(dest);
|
|
2316
|
+
const kind = makeableMountPoint(dest, denyPathAncestors.has(dest)
|
|
2317
|
+
? MountPointKind.Directory
|
|
2318
|
+
: MountPointKind.File);
|
|
2319
|
+
if (kind === MountPointKind.Unmakeable) {
|
|
2320
|
+
// The directories above it are pinned all the same: a command that
|
|
2321
|
+
// may write one of THEM could otherwise move the refusing one aside.
|
|
2322
|
+
unmakeableDenyDests.add(dest);
|
|
2323
|
+
}
|
|
2324
|
+
else {
|
|
2325
|
+
// INVARIANT: only a path found absent here is tracked, for
|
|
2326
|
+
// cleanupBwrapMountPoints() to remove. An existing file that looks
|
|
2327
|
+
// like a mount point may be the caller's own, or that of another
|
|
2328
|
+
// process's sandbox still running, whose deny goes with it.
|
|
2329
|
+
bwrapMountPoints.add(dest);
|
|
2330
|
+
registerExitCleanupHandler();
|
|
2331
|
+
}
|
|
2332
|
+
return { dest, kind };
|
|
2333
|
+
};
|
|
2334
|
+
/** What goes on it. The empty directory is made when first asked for. */
|
|
2335
|
+
const mountSourceFor = ({ dest, kind }) => {
|
|
2336
|
+
switch (kind) {
|
|
2337
|
+
case MountPointKind.Held:
|
|
2338
|
+
return dest;
|
|
2339
|
+
case MountPointKind.Directory:
|
|
2340
|
+
return (emptySource ?? (emptySource = ensureEmptyMountSourceDir()));
|
|
2341
|
+
case MountPointKind.File:
|
|
2342
|
+
return '/dev/null';
|
|
2343
|
+
case MountPointKind.Unmakeable:
|
|
2344
|
+
// Never mounted: unmakeableDenyDests keeps it out of what is emitted.
|
|
2345
|
+
return '/dev/null';
|
|
2346
|
+
}
|
|
2347
|
+
};
|
|
2348
|
+
for (const [index, pathPattern] of denyPaths.entries()) {
|
|
2349
|
+
if (index === configuredDenyPaths.length) {
|
|
2350
|
+
mandatoryDenyArgsStart = denyWriteArgs.length;
|
|
2351
|
+
}
|
|
2352
|
+
const rawPath = normalizePathForSandbox(pathPattern, { literal: true });
|
|
2353
|
+
// Skip /dev/* paths since --dev /dev already handles them
|
|
2354
|
+
if (rawPath.startsWith('/dev/')) {
|
|
2355
|
+
continue;
|
|
2356
|
+
}
|
|
2357
|
+
// Resolve-before-mask: normalizePathForSandbox keeps the raw symlink
|
|
2358
|
+
// path whenever resolution crosses isSymlinkOutsideBoundary (the
|
|
2359
|
+
// common dotfiles case), so canonicalize here. Every mask/bind below
|
|
2360
|
+
// must be computed against the resolved path — bwrap dest-resolves
|
|
2361
|
+
// symlinks, so a mask on the raw path either aborts startup (dir
|
|
2362
|
+
// symlink) or lands on the target inode anyway (file symlink). Writes
|
|
2363
|
+
// through the original symlinked path resolve to the same denied
|
|
2364
|
+
// target inside the mount namespace.
|
|
2365
|
+
const normalizedPath = resolveSymlinkedDenyPath(rawPath);
|
|
2366
|
+
if (normalizedPath === null) {
|
|
2367
|
+
// Unresolvable: a symlink cycle, or a chain past the ELOOP bound.
|
|
2368
|
+
// Fail closed. Dropping the deny here would sandbox the command with
|
|
2369
|
+
// the path unprotected, so instead mask the symlink component and let
|
|
2370
|
+
// bwrap refuse to start. When no component is a symlink inside an
|
|
2371
|
+
// allowed write path there is nothing to protect: the path is already
|
|
2372
|
+
// read-only from the initial --ro-bind / /.
|
|
2373
|
+
const unresolvableSymlink = findSymlinkInPath(rawPath, allowedWritePaths);
|
|
2374
|
+
if (unresolvableSymlink && !seenDenyWrite.has(unresolvableSymlink)) {
|
|
2375
|
+
seenDenyWrite.add(unresolvableSymlink);
|
|
2376
|
+
denyWriteArgs.push('--ro-bind', '/dev/null', unresolvableSymlink);
|
|
2377
|
+
denyWriteRawDests.set(unresolvableSymlink, rawPath);
|
|
2378
|
+
}
|
|
2379
|
+
logForDebugging(`[Sandbox Linux] Deny path could not be resolved through symlinks, failing closed: ${rawPath}`);
|
|
2380
|
+
continue;
|
|
2381
|
+
}
|
|
2382
|
+
if (normalizedPath !== rawPath) {
|
|
2383
|
+
logForDebugging(`[Sandbox Linux] Resolved symlinked deny path: ${rawPath} -> ${normalizedPath}`);
|
|
2384
|
+
}
|
|
2385
|
+
// Re-check after resolution: a deny path can only now land in /dev (e.g.
|
|
2386
|
+
// a symlink into it), where --dev /dev has already replaced the tree and
|
|
2387
|
+
// a bind would either miss or fight the new devtmpfs.
|
|
2388
|
+
if (normalizedPath.startsWith('/dev/')) {
|
|
2389
|
+
continue;
|
|
2390
|
+
}
|
|
2391
|
+
// Dedup post-resolution: distinct spellings (tilde vs absolute, via
|
|
2392
|
+
// symlink vs direct) converge to the same real path here.
|
|
2393
|
+
if (seenDenyWrite.has(normalizedPath))
|
|
2394
|
+
continue;
|
|
2395
|
+
seenDenyWrite.add(normalizedPath);
|
|
2396
|
+
// Defense-in-depth: the resolved path should be symlink-free for its
|
|
2397
|
+
// existing prefix, but the tree may change between resolution and this
|
|
2398
|
+
// check. A hit still fails closed — bwrap refuses to start rather than
|
|
2399
|
+
// sandboxing with an unprotected deny path.
|
|
2400
|
+
const symlinkInPath = findSymlinkInPath(normalizedPath, allowedWritePaths);
|
|
2401
|
+
if (symlinkInPath) {
|
|
2402
|
+
if (!seenDenyWrite.has(symlinkInPath)) {
|
|
2403
|
+
seenDenyWrite.add(symlinkInPath);
|
|
2404
|
+
denyWriteArgs.push('--ro-bind', '/dev/null', symlinkInPath);
|
|
2405
|
+
denyWriteRawDests.set(symlinkInPath, rawPath);
|
|
2406
|
+
}
|
|
2407
|
+
logForDebugging(`[Sandbox Linux] Mounted /dev/null at symlink ${symlinkInPath} to prevent symlink replacement attack`);
|
|
2408
|
+
continue;
|
|
2409
|
+
}
|
|
2410
|
+
// Handle non-existent paths by mounting /dev/null to block creation.
|
|
2411
|
+
// Without this, a sandboxed process could mkdir+write a denied path that
|
|
2412
|
+
// doesn't exist yet, bypassing the deny rule entirely.
|
|
2413
|
+
if (decidedMountPointOver(normalizedPath) !== undefined ||
|
|
2414
|
+
!fs.existsSync(normalizedPath)) {
|
|
2415
|
+
const placeholder = mountPointFor(normalizedPath);
|
|
2416
|
+
if (placeholder !== undefined) {
|
|
2417
|
+
const { dest, kind } = placeholder;
|
|
2418
|
+
const source = mountSourceFor(placeholder);
|
|
2419
|
+
denyWriteArgs.push('--ro-bind', source, dest);
|
|
2420
|
+
// The first of the denies that share the destination. The record is
|
|
2421
|
+
// purely additive: it only gives the tmpfs and mask comparisons
|
|
2422
|
+
// below a second spelling to test, and `dest` itself is always
|
|
2423
|
+
// tested.
|
|
2424
|
+
denyWriteRawDests.set(dest, rawPath);
|
|
2425
|
+
logForDebugging(kind === MountPointKind.Unmakeable
|
|
2426
|
+
? `[Sandbox Linux] No mount point at ${dest}, which neither bubblewrap nor the command can create, for ${normalizedPath}`
|
|
2427
|
+
: `[Sandbox Linux] Mounted ${source} at ${dest} to block creation of ${normalizedPath}`);
|
|
2428
|
+
}
|
|
2429
|
+
continue;
|
|
2430
|
+
}
|
|
2431
|
+
// Only add deny binding if this path is within an allowed write path or
|
|
2432
|
+
// holds one. Otherwise all of it is already read-only from the initial
|
|
2433
|
+
// --ro-bind / /
|
|
2434
|
+
if (meetsAnyAllowedWritePath(normalizedPath)) {
|
|
2435
|
+
// Already unwritable under a read-only denied directory (the
|
|
2436
|
+
// existing-path twin of the stub skip above). Veto (ii) keeps the
|
|
2437
|
+
// covering bind through the emission filter; a dest ANY deny entry
|
|
2438
|
+
// reaches through a symlink keeps its own bind, so that the plan does
|
|
2439
|
+
// not depend on which spelling of it the loop sees first.
|
|
2440
|
+
if (!symlinkedDenySpellingDests.has(normalizedPath) &&
|
|
2441
|
+
coveredBySafeReadOnlyDenyDir(normalizedPath)) {
|
|
2442
|
+
logForDebugging(`[Sandbox Linux] Skipping deny path already under read-only denied directory: ${normalizedPath}`);
|
|
2443
|
+
continue;
|
|
2444
|
+
}
|
|
2445
|
+
// A deny's read-only bind is emitted after every allow bind, so an
|
|
2446
|
+
// allowed write path beneath it comes back read-only instead of
|
|
2447
|
+
// stopping the sandbox from starting. Say so: the config asked for
|
|
2448
|
+
// both and only the deny takes effect.
|
|
2449
|
+
for (const buried of allowedWritePaths) {
|
|
2450
|
+
if (isStrictlyUnder(buried, normalizedPath)) {
|
|
2451
|
+
logForDebugging(`[Sandbox Linux] Write deny ${normalizedPath} covers allowed write path ${buried}; ${buried} will be read-only`, { level: 'warn' });
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
denyWriteArgs.push('--ro-bind', normalizedPath, normalizedPath);
|
|
2455
|
+
denyWriteRawDests.set(normalizedPath, rawPath);
|
|
2456
|
+
}
|
|
2457
|
+
else {
|
|
2458
|
+
logForDebugging(`[Sandbox Linux] Skipping deny path not within allowed paths: ${normalizedPath}`);
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
else {
|
|
2463
|
+
// No write restrictions: Allow all writes
|
|
2464
|
+
args.push('--bind', '/', '/');
|
|
2465
|
+
// Recording '/' makes isWithinAnyAllowedWritePath and isAllowedWriteRoot
|
|
2466
|
+
// say so, which is the '/'-write-root shape ancestorPinArgs treats
|
|
2467
|
+
// specially. Nothing is ever restored for it: no read-deny tmpfs lands
|
|
2468
|
+
// at '/'.
|
|
2469
|
+
allowedWritePaths.push('/');
|
|
2470
|
+
ancestorPinInsertAt = args.length;
|
|
2471
|
+
}
|
|
2472
|
+
// denyWriteArgs is emitted after the denyRead loop below.
|
|
2473
|
+
// Handle read restrictions by mounting tmpfs over denied paths.
|
|
2474
|
+
// Non-glob spellings arrive slash-free from normalizePathForSandbox — the
|
|
2475
|
+
// comparisons below (hidden-by-tmpfs prefixes, the exact-match allowRead
|
|
2476
|
+
// skip, pushReadDenyDirMounts' re-bind checks) depend on that.
|
|
2477
|
+
// The read-deny mounts emitted so far, in emission order: directories
|
|
2478
|
+
// masked by --tmpfs with what their restore loops re-bound, and files
|
|
2479
|
+
// masked by --ro-bind <source> <dest> (/dev/null for read-deny, the
|
|
2480
|
+
// sentinel fake for a credential mask). `landing` is where each mount sits
|
|
2481
|
+
// in the sandbox. Every later decision reads these records: the ancestor
|
|
2482
|
+
// pins, the deny-bind emission filter and the re-application passes.
|
|
2483
|
+
const readDenyTmpfsUnits = [];
|
|
2484
|
+
const fileMasks = [];
|
|
2485
|
+
// Replay the tmpfs units in order (bwrap is last-mount-wins): is `location`
|
|
2486
|
+
// beneath a unit's tmpfs and not brought back by a restore since? A restore
|
|
2487
|
+
// counts only where it lands. One reached through a symlink puts the
|
|
2488
|
+
// target's inode at the NAME; the target's own path is still under the
|
|
2489
|
+
// tmpfs, and asking there must not answer "brought back".
|
|
2490
|
+
const isHiddenByTmpfs = (location, broughtBackBy) => {
|
|
2491
|
+
const broughtBack = (restored) => restored.some(r => isAtOrUnder(location, r.dest));
|
|
2492
|
+
let hidden = false;
|
|
2493
|
+
for (const unit of readDenyTmpfsUnits) {
|
|
2494
|
+
if (isAtOrUnder(location, unit.landing)) {
|
|
2495
|
+
hidden = true;
|
|
2496
|
+
}
|
|
2497
|
+
if (broughtBack(unit.restoredWrites) ||
|
|
2498
|
+
(broughtBackBy === 'writes and reads' &&
|
|
2499
|
+
broughtBack(unit.restoredReads))) {
|
|
2500
|
+
hidden = false;
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
return hidden;
|
|
2504
|
+
};
|
|
2505
|
+
// Entries a glob expansion produced for a directory it could not list.
|
|
2506
|
+
// What the pattern matches beneath an allowed path in there was never
|
|
2507
|
+
// found, so binding that path back over the tmpfs would show every one of
|
|
2508
|
+
// those matches unmasked.
|
|
2509
|
+
const unlistableDenyDirs = new Set(readConfig?.unlistableDenyDirs ?? []);
|
|
2510
|
+
// The credential masks, one fake per landing. Where two entries name one
|
|
2511
|
+
// file ('~/.netrc' and its absolute form), the last is kept: it is the
|
|
2512
|
+
// mask bubblewrap would leave in force there.
|
|
2513
|
+
const credentialMaskFakes = new Map();
|
|
2514
|
+
for (const { realPath, fakePath } of maskedFileBinds ?? []) {
|
|
2515
|
+
credentialMaskFakes.set(canonicalForm(realPath), fakePath);
|
|
2516
|
+
}
|
|
2517
|
+
// Destinations a file mask has been placed at, or will be: one mount per
|
|
2518
|
+
// destination. A second file mount lands on what the first put there, a
|
|
2519
|
+
// character device for a /dev/null mask, which bubblewrap before 0.5.0
|
|
2520
|
+
// does not take as a mount point: it refuses to start ("Can't create file
|
|
2521
|
+
// at <dest>: Permission denied"). Seeded with the credential landings,
|
|
2522
|
+
// which are emitted after this loop and win where both name one file.
|
|
2523
|
+
const fileMaskLandings = new Set(credentialMaskFakes.keys());
|
|
2524
|
+
// Every location the read section hides, each one where its mount lands:
|
|
2525
|
+
// one per entry that mounts something — a directory's tmpfs, the stand-in
|
|
2526
|
+
// tmpfs of an entry that could not be inspected or that resolves to '/', a
|
|
2527
|
+
// file's /dev/null mask — and one per masked credential file. An entry that
|
|
2528
|
+
// mounts nothing hides nothing, and must not cost a carve-out; a stand-in
|
|
2529
|
+
// hides where it lands, which is above the entry that asked for it. A
|
|
2530
|
+
// landing the loop below then skips as already hidden stays in this list:
|
|
2531
|
+
// it refuses a carve-out the mounts alone would have allowed, which is the
|
|
2532
|
+
// safe direction and one comparison fewer.
|
|
2533
|
+
const readDeniedLocations = [
|
|
2534
|
+
...readDenyPlan().flatMap(({ mount, liftedFile }) => mount === undefined || liftedFile ? [] : [mount.landing]),
|
|
2535
|
+
...credentialMaskFakes.keys(),
|
|
2536
|
+
];
|
|
2537
|
+
// What the read section hides at, inside, or around `target`, ignoring the
|
|
2538
|
+
// tmpfs landing at `landing` and every deny above it — those are what a
|
|
2539
|
+
// carve-out restored into that tmpfs is the exception to. Everything else
|
|
2540
|
+
// that overlaps the target wins over the carve-out. Both sides are resolved
|
|
2541
|
+
// locations: every read deny mounts where its entry resolves, and `target`
|
|
2542
|
+
// is what the carve-out resolves to, so no spelling has to be guessed at.
|
|
2543
|
+
// Returns the offending location, for the debug line.
|
|
2544
|
+
const readDenialAround = (target, landing) => readDeniedLocations.find(denied => !isAtOrUnder(landing, denied) &&
|
|
2545
|
+
(isAtOrUnder(denied, target) || isAtOrUnder(target, denied)));
|
|
2546
|
+
// What a tmpfs unit binds back. A path whose name lives at or beneath the
|
|
2547
|
+
// landing of a credential deny is bound back by no unit, the library's own
|
|
2548
|
+
// files apart. A path above such a landing is, and the credential deny,
|
|
2549
|
+
// being deeper, is mounted after it.
|
|
2550
|
+
const credentialLandings = readDenyPlan().flatMap(({ mount, isCredential }) => mount !== undefined && isCredential ? [mount.landing] : []);
|
|
2551
|
+
const leftOut = new Set();
|
|
2552
|
+
const outsideCredentials = (p) => {
|
|
2553
|
+
const landing = credentialLandings.find(at => isAtOrUnder(nameLocationOf(p), at));
|
|
2554
|
+
if (landing !== undefined && !leftOut.has(p)) {
|
|
2555
|
+
leftOut.add(p);
|
|
2556
|
+
logForDebugging(`[Sandbox Linux] ${p} is at or beneath the credential deny ${landing}: not bound back`, { level: 'warn' });
|
|
2557
|
+
}
|
|
2558
|
+
return landing === undefined;
|
|
2559
|
+
};
|
|
2560
|
+
const restorableReadPaths = readAllowPaths().filter(p => ownReadAllowPaths().includes(p) || outsideCredentials(p));
|
|
2561
|
+
const restorableWritePaths = allowedWritePaths.filter(outsideCredentials);
|
|
2562
|
+
for (const { normalizedPath, mount, liftedFile } of readDenyPlan()) {
|
|
2563
|
+
if (mount === undefined) {
|
|
2564
|
+
logForDebugging(`[Sandbox Linux] Read deny path mounts nothing this wrap can place (absent, or uninspectable, or a link to '/' with nothing but '/' holding it): ${normalizedPath}`);
|
|
2565
|
+
continue;
|
|
2566
|
+
}
|
|
2567
|
+
const { landing, isDirectory, isStandIn } = mount;
|
|
2568
|
+
// One mount per location. A tmpfs emitted so far already hides this
|
|
2569
|
+
// place, and nothing bound back over it shows the host there again, so a
|
|
2570
|
+
// mount here would be created inside that tmpfs and change nothing. This
|
|
2571
|
+
// also collapses two spellings of one directory, and the entries a
|
|
2572
|
+
// collapsed read-deny glob leaves beneath a directory it already denies.
|
|
2573
|
+
if (isHiddenByTmpfs(landing, 'writes and reads')) {
|
|
2574
|
+
logForDebugging(`[Sandbox Linux] Skipping read deny already hidden by a denyRead tmpfs: ${landing}`);
|
|
2575
|
+
continue;
|
|
2576
|
+
}
|
|
2577
|
+
if (isDirectory) {
|
|
2578
|
+
// A stand-in for an entry this wrap cannot vouch for hides everything
|
|
2579
|
+
// beneath it: nothing under it can be vouched for either. So does a
|
|
2580
|
+
// directory a glob expansion could not enumerate.
|
|
2581
|
+
if (isStandIn) {
|
|
2582
|
+
logForDebugging(`[Sandbox Linux] Read deny path ${normalizedPath} cannot be mounted where it names; hiding ${landing} instead`, { level: 'warn' });
|
|
2583
|
+
}
|
|
2584
|
+
const unlistable = unlistableDenyDirs.has(normalizedPath) ||
|
|
2585
|
+
unlistableDenyDirs.has(landing);
|
|
2586
|
+
if (unlistable) {
|
|
2587
|
+
logForDebugging(`[Sandbox Linux] Read-denied directory could not be listed when the glob was expanded; restoring nothing beneath it: ${landing}`, { level: 'warn' });
|
|
2588
|
+
}
|
|
2589
|
+
const restoresNothing = isStandIn || unlistable;
|
|
2590
|
+
const restored = pushReadDenyDirMounts(args, {
|
|
2591
|
+
landing,
|
|
2592
|
+
allowedWritePaths: restoresNothing ? [] : restorableWritePaths,
|
|
2593
|
+
readAllowPaths: restoresNothing ? [] : restorableReadPaths,
|
|
2594
|
+
resolve: canonicalLocationOf,
|
|
2595
|
+
readDenialAround: restoreTarget => readDenialAround(restoreTarget, landing),
|
|
2596
|
+
nameLocation: nameLocationOf,
|
|
2597
|
+
});
|
|
2598
|
+
readDenyTmpfsUnits.push({ landing, ...restored });
|
|
2599
|
+
}
|
|
2600
|
+
else {
|
|
2601
|
+
// For files, only an exact allowRead match overrides the deny: an
|
|
2602
|
+
// entry that names this very file, through whatever symlinked
|
|
2603
|
+
// directories. One that is a symlink to it names the link and lifts
|
|
2604
|
+
// nothing, or a link planted at an allowRead path would cancel the deny
|
|
2605
|
+
// of the file it points at. A directory allowRead does not un-deny a
|
|
2606
|
+
// file specifically listed in denyRead — otherwise denyRead: ['.env']
|
|
2607
|
+
// + allowRead: ['.'] silently drops the .env deny.
|
|
2608
|
+
if (liftedFile) {
|
|
2609
|
+
logForDebugging(`[Sandbox Linux] Skipping read deny for re-allowed path: ${normalizedPath}`);
|
|
2610
|
+
continue;
|
|
2611
|
+
}
|
|
2612
|
+
// One mask per destination (see fileMaskLandings): spellings of one
|
|
2613
|
+
// file converge here, and each would otherwise mount over the last.
|
|
2614
|
+
if (fileMaskLandings.has(landing)) {
|
|
2615
|
+
logForDebugging(`[Sandbox Linux] Skipping read deny at a destination a file mask already covers: ${normalizedPath} -> ${landing}`);
|
|
2616
|
+
continue;
|
|
2617
|
+
}
|
|
2618
|
+
fileMaskLandings.add(landing);
|
|
2619
|
+
// For files, bind /dev/null instead of tmpfs, where the path resolves
|
|
2620
|
+
// like every other read-deny mount.
|
|
2621
|
+
args.push('--ro-bind', '/dev/null', landing);
|
|
2622
|
+
fileMasks.push({ source: '/dev/null', landing });
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
// Whole-file credential masks: same bind shape as a file read-deny,
|
|
2626
|
+
// at the same place — where the path really resolves, which is what
|
|
2627
|
+
// covers a credential dotfile that is a symlink into a dotfile manager's
|
|
2628
|
+
// directory (~/.netrc, ~/.npmrc). realPath was already normalized
|
|
2629
|
+
// (tilde-expanded, realpath'd) by the caller. The fake's parent dir is
|
|
2630
|
+
// explicitly ro-bound at the end of this function, so the bind source is
|
|
2631
|
+
// never writable from inside the sandbox.
|
|
2632
|
+
for (const [landing, fakePath] of credentialMaskFakes) {
|
|
2633
|
+
args.push('--ro-bind', fakePath, landing);
|
|
2634
|
+
fileMasks.push({ source: fakePath, landing });
|
|
2635
|
+
}
|
|
2636
|
+
// Ancestor pinning: the directories between a deny bind, file mask or
|
|
2637
|
+
// read-deny tmpfs and its covering allowed write root carry no mount, so
|
|
2638
|
+
// rename(2) on one moves the mount along with it and the path can be
|
|
2639
|
+
// recreated unprotected (mv .git aside; mkdir .git; write .git/hooks/x),
|
|
2640
|
+
// or, for a read-denied path, is simply not found by the next command's
|
|
2641
|
+
// wrap and left readable under its new name. ancestorPinArgs says what is
|
|
2642
|
+
// pinned and where. Seeds are landings because the walk takes dirname() of
|
|
2643
|
+
// each: a symlink spelling would pin the chain of the link, not of where
|
|
2644
|
+
// the mount sits. Deny binds, tmpfs units and masks are emitted later and
|
|
2645
|
+
// land on top of both pins and covers.
|
|
2646
|
+
const pinArgs = ancestorPinArgs([
|
|
2647
|
+
...denyWriteRawDests.keys(),
|
|
2648
|
+
...fileMasks.map(mask => mask.landing),
|
|
2649
|
+
...readDenyTmpfsUnits.map(unit => unit.landing),
|
|
2650
|
+
], {
|
|
2651
|
+
rootIsWriteRoot: isAllowedWriteRoot('/'),
|
|
2652
|
+
isWithinAllowedWrite: isWithinAnyAllowedWritePath,
|
|
2653
|
+
isAllowedWriteRoot,
|
|
2654
|
+
});
|
|
2655
|
+
args.splice(ancestorPinInsertAt, 0, ...pinArgs);
|
|
2656
|
+
// What the mandatory denies cost, for the refusal of a profile with too many
|
|
2657
|
+
// arguments: the pins above them here, their own binds as they are emitted.
|
|
2658
|
+
const pinned = new Set(pinArgs);
|
|
2659
|
+
const mandatoryDenyPins = new Set();
|
|
2660
|
+
for (let i = mandatoryDenyArgsStart; i < denyWriteArgs.length; i += 3) {
|
|
2661
|
+
for (let dir = path.dirname(denyWriteArgs[i + 2]); dir !== '/' && !mandatoryDenyPins.has(dir); dir = path.dirname(dir)) {
|
|
2662
|
+
if (pinned.has(dir))
|
|
2663
|
+
mandatoryDenyPins.add(dir);
|
|
2664
|
+
}
|
|
2665
|
+
}
|
|
2666
|
+
let mandatoryDenyArgs = 3 * mandatoryDenyPins.size;
|
|
2667
|
+
// Emitting denyWrite last means these ro-binds layer on top of any write
|
|
2668
|
+
// paths the denyRead loop just re-bound. Before this ordering, tmpfs over
|
|
2669
|
+
// an ancestor of cwd would wipe the .git/hooks protection. But skip any
|
|
2670
|
+
// dest already masked by denyRead:
|
|
2671
|
+
//
|
|
2672
|
+
// - file masks: --ro-bind <host> <host> for denyWrite would undo
|
|
2673
|
+
// --ro-bind /dev/null <host> from denyRead, which landed first.
|
|
2674
|
+
// - tmpfs dirs: a dest at or under a denyRead tmpfs is already hidden, and
|
|
2675
|
+
// re-binding the host path on top of the tmpfs would expose the real
|
|
2676
|
+
// (read-denied) contents read-only. Writes inside the tmpfs never reach
|
|
2677
|
+
// the host, so the write-deny stays enforced without the bind. Exception:
|
|
2678
|
+
// if an allowed write path at-or-under that tmpfs covers the dest, the
|
|
2679
|
+
// denyRead loop re-bound it (the .git/hooks case) and the write-deny bind
|
|
2680
|
+
// is still required on top.
|
|
2681
|
+
// Both are decided by where the mask or tmpfs landed against the deny's
|
|
2682
|
+
// canonical dest, which is where its bind lands.
|
|
2683
|
+
const emittedDenyWriteDests = [];
|
|
2684
|
+
// Write paths already restored read-only by a dropped deny bind, so two
|
|
2685
|
+
// denies covering the same path emit one --ro-bind.
|
|
2686
|
+
const restoredReadOnlyWritePaths = new Set();
|
|
2687
|
+
for (let i = 0; i < denyWriteArgs.length; i += 3) {
|
|
2688
|
+
const dest = denyWriteArgs[i + 2];
|
|
2689
|
+
if (unmakeableDenyDests.has(dest))
|
|
2690
|
+
continue;
|
|
2691
|
+
const rawDest = denyWriteRawDests.get(dest) ?? dest;
|
|
2692
|
+
// A mask's landing, not its dest: the landing is where the mask's bind
|
|
2693
|
+
// actually sits, and this deny's dest is canonical, so the two are
|
|
2694
|
+
// comparable as written.
|
|
2695
|
+
if (fileMasks.some(mask => mask.landing === dest))
|
|
2696
|
+
continue;
|
|
2697
|
+
if (isHiddenByTmpfs(dest, 'writes')) {
|
|
2698
|
+
logForDebugging(`[Sandbox Linux] Skipping denyWrite bind already hidden by denyRead tmpfs: ${dest}`);
|
|
2699
|
+
// The tmpfs hides this dest but not a write path one of the units
|
|
2700
|
+
// restored writable beneath it: that path is inside this write deny, so
|
|
2701
|
+
// restore it read-only, where the unit left it. Emitting the dest's own
|
|
2702
|
+
// bind instead would expose the read-denied directory around it.
|
|
2703
|
+
// uncoveredWritePaths counts on this restore.
|
|
2704
|
+
for (const unit of readDenyTmpfsUnits) {
|
|
2705
|
+
for (const writeMount of unit.restoredWrites) {
|
|
2706
|
+
const writePath = writeMount.dest;
|
|
2707
|
+
if (!isAtOrUnder(writePath, dest) &&
|
|
2708
|
+
!isAtOrUnder(writePath, rawDest)) {
|
|
2709
|
+
continue;
|
|
2710
|
+
}
|
|
2711
|
+
// A masked file needs no restore: its mask already holds it
|
|
2712
|
+
// unreadable and unwritable. A read-only bind of the real file here
|
|
2713
|
+
// would land ABOVE that mask, and the re-application below would
|
|
2714
|
+
// then have to put the mask back over a bind this loop only just
|
|
2715
|
+
// emitted — so skipping saves both that bind and its emitted-dest
|
|
2716
|
+
// entry. A masked file strictly BENEATH a restored directory is the
|
|
2717
|
+
// other case and stays: recording that directory is what puts its
|
|
2718
|
+
// mask back on top. Masks and restores are both keyed by where they
|
|
2719
|
+
// land, so one comparison answers for every spelling.
|
|
2720
|
+
if (fileMasks.some(mask => mask.landing === writePath)) {
|
|
2721
|
+
logForDebugging(`[Sandbox Linux] Leaving a masked file to its mask inside dropped denyWrite bind ${dest}: ${writePath}`);
|
|
2722
|
+
continue;
|
|
2723
|
+
}
|
|
2724
|
+
if (restoredReadOnlyWritePaths.has(writePath))
|
|
2725
|
+
continue;
|
|
2726
|
+
restoredReadOnlyWritePaths.add(writePath);
|
|
2727
|
+
args.push('--ro-bind', writeMount.source, writePath);
|
|
2728
|
+
// Like a deny bind, this one lands above whatever the read section
|
|
2729
|
+
// mounted inside the write path, so the re-application passes below
|
|
2730
|
+
// have to see it and put those mounts back.
|
|
2731
|
+
emittedDenyWriteDests.push(writePath);
|
|
2732
|
+
logForDebugging(`[Sandbox Linux] Restoring write path read-only inside dropped denyWrite bind ${dest}: ${writePath}`);
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
continue;
|
|
2736
|
+
}
|
|
2737
|
+
args.push(denyWriteArgs[i], denyWriteArgs[i + 1], dest);
|
|
2738
|
+
if (i >= mandatoryDenyArgsStart)
|
|
2739
|
+
mandatoryDenyArgs += 3;
|
|
2740
|
+
emittedDenyWriteDests.push(dest);
|
|
2741
|
+
// The tmpfs / mask re-application passes below ask "does this bind sit
|
|
2742
|
+
// above a read-denied path?". A bind at the resolved dest also re-exposes
|
|
2743
|
+
// anything under the symlinked spelling, so record both.
|
|
2744
|
+
if (rawDest !== dest)
|
|
2745
|
+
emittedDenyWriteDests.push(rawDest);
|
|
2746
|
+
}
|
|
2747
|
+
// The inverse stacking problem: a denyWrite ro-bind whose dest strictly
|
|
2748
|
+
// contains a read-denied dir re-exposes that dir's real contents (the bind
|
|
2749
|
+
// landed after the tmpfs). Re-apply the tmpfs on top, with the allowRead
|
|
2750
|
+
// re-binds the denyRead loop emitted. A bind of '/' itself (allowOnly and
|
|
2751
|
+
// denyWithinAllow both naming it) contains every one of them, so
|
|
2752
|
+
// containment is root-aware. An allowed write path beneath such a tmpfs
|
|
2753
|
+
// lies inside the emitted deny dest too, so the deny wins: it comes back
|
|
2754
|
+
// read-only, visible as it was after the first pass but not writable.
|
|
2755
|
+
// Deeper units and masks under the same dest follow in the same order as
|
|
2756
|
+
// the first pass, so nothing restored here stays on top of one.
|
|
2757
|
+
for (const unit of readDenyTmpfsUnits) {
|
|
2758
|
+
const reExposingDest = emittedDenyWriteDests.find(dest => isStrictlyUnder(unit.landing, dest));
|
|
2759
|
+
if (reExposingDest !== undefined) {
|
|
2760
|
+
logForDebugging(`[Sandbox Linux] Re-applying denyRead tmpfs re-exposed by denyWrite bind: ${unit.landing}`);
|
|
2761
|
+
// Name the paths that lose their write access here, and to which deny.
|
|
2762
|
+
if (unit.restoredWrites.length > 0) {
|
|
2763
|
+
logForDebugging(`[Sandbox Linux] Restoring write paths read-only inside denyWrite bind ${reExposingDest}: ${unit.restoredWrites.map(w => w.dest).join(', ')}`);
|
|
2764
|
+
}
|
|
2765
|
+
// The recorded pairs go back as they are: each restore returns to where
|
|
2766
|
+
// the first pass put it, from the source it vetted then. Write paths
|
|
2767
|
+
// come back read-only, being inside the deny that re-exposed the tmpfs.
|
|
2768
|
+
// The tmpfs goes back at the unit's landing, which is the destination
|
|
2769
|
+
// the first pass gave bwrap for it.
|
|
2770
|
+
args.push('--tmpfs', unit.landing);
|
|
2771
|
+
for (const restored of [...unit.restoredWrites, ...unit.restoredReads]) {
|
|
2772
|
+
args.push('--ro-bind', restored.source, restored.dest);
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
// Same problem for masked files: the mask landed before the denyWrite
|
|
2777
|
+
// ancestor bind, so the real file is back. Re-apply the mask with its
|
|
2778
|
+
// original source (/dev/null for read-deny, the fake for credential mask).
|
|
2779
|
+
for (const mask of fileMasks) {
|
|
2780
|
+
if (emittedDenyWriteDests.some(dest => isAtOrUnder(mask.landing, dest))) {
|
|
2781
|
+
logForDebugging(`[Sandbox Linux] Re-applying file mask re-exposed by denyWrite bind: ${mask.landing}`);
|
|
2782
|
+
args.push('--ro-bind', mask.source, mask.landing);
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
// INVARIANT: the fake-file store directory must never be writable from
|
|
2786
|
+
// inside the sandbox. If it were, a sandboxed process could plant a
|
|
2787
|
+
// symlink at a fake path and a later host-side write() would follow it,
|
|
2788
|
+
// or replace a fake's content so the bind exposes attacker bytes. Emit
|
|
2789
|
+
// last so it overlays any earlier --bind that covers the store dir
|
|
2790
|
+
// (e.g. allowWrite: ['/tmp'] when the store is under os.tmpdir()).
|
|
2791
|
+
if (maskedFileStoreDir !== undefined) {
|
|
2792
|
+
args.push('--ro-bind', maskedFileStoreDir, maskedFileStoreDir);
|
|
2793
|
+
}
|
|
2794
|
+
// INVARIANT, for the same reason: the empty directory the placeholders above
|
|
2795
|
+
// bind from must never be writable from inside the sandbox. It lives under
|
|
2796
|
+
// the system temp dir, so a caller's allowWrite or a host $TMPDIR under a
|
|
2797
|
+
// default write path makes it writable — and a placeholder binds it onto a
|
|
2798
|
+
// DENIED destination, so a write to the source lands at the deny. Emit last,
|
|
2799
|
+
// like the store, to overlay any earlier --bind that covers it. A same-uid
|
|
2800
|
+
// process on the host can still swap the source between wrap and run, which
|
|
2801
|
+
// is outside what this library defends against.
|
|
2802
|
+
if (emptySource !== undefined) {
|
|
2803
|
+
args.push('--ro-bind', emptySource, emptySource);
|
|
2804
|
+
}
|
|
2805
|
+
return { args, mandatoryDenyArgs };
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* Wrap a command with sandbox restrictions on Linux
|
|
2809
|
+
*
|
|
2810
|
+
* UNIX SOCKET BLOCKING (APPLY-SECCOMP):
|
|
2811
|
+
* This implementation uses a custom apply-seccomp binary to block Unix domain socket
|
|
2812
|
+
* creation for user commands while allowing network infrastructure:
|
|
2813
|
+
*
|
|
2814
|
+
* The two stages are described in README.md, "Unix Socket Restrictions
|
|
2815
|
+
* (Linux)".
|
|
2816
|
+
*
|
|
2817
|
+
* This solves the conflict between:
|
|
2818
|
+
* - Security: Blocking arbitrary Unix socket creation in user commands
|
|
2819
|
+
* - Functionality: Network sandboxing requires socat to call socket(AF_UNIX, ...) for bridge connections
|
|
2820
|
+
*
|
|
2821
|
+
* The seccomp-bpf filter blocks socket(AF_UNIX, ...) syscalls, preventing:
|
|
2822
|
+
* - Creating new Unix domain socket file descriptors
|
|
2823
|
+
*
|
|
2824
|
+
* It also blocks socket(AF_VSOCK, ...): the network namespace does not fence
|
|
2825
|
+
* VM sockets, so one would reach out of the sandbox past the proxies.
|
|
2826
|
+
*
|
|
2827
|
+
* Security limitations:
|
|
2828
|
+
* - Does NOT block operations (bind, connect, sendto, etc.) on inherited Unix socket FDs
|
|
2829
|
+
* - Does NOT prevent passing Unix socket FDs via SCM_RIGHTS
|
|
2830
|
+
* - For most sandboxing use cases, blocking socket creation is sufficient
|
|
2831
|
+
*
|
|
2832
|
+
* The filter allows:
|
|
2833
|
+
* - All TCP/UDP sockets (AF_INET, AF_INET6) for normal network operations
|
|
2834
|
+
* - All other syscalls
|
|
2835
|
+
*
|
|
2836
|
+
* PLATFORM NOTE:
|
|
2837
|
+
* The allowUnixSockets configuration is not path-based on Linux (unlike macOS)
|
|
2838
|
+
* because seccomp-bpf cannot inspect user-space memory to read socket paths.
|
|
2839
|
+
*
|
|
2840
|
+
* Requirements for seccomp filtering:
|
|
2841
|
+
* - Pre-built apply-seccomp binaries are included for x64 and ARM64
|
|
2842
|
+
* - Pre-generated BPF filters are included for x64 and ARM64
|
|
2843
|
+
* - Other architectures are not currently supported (no apply-seccomp binary available)
|
|
2844
|
+
* - To use sandboxing without Unix socket blocking on unsupported architectures,
|
|
2845
|
+
* set allowAllUnixSockets: true in your configuration
|
|
2846
|
+
* Dependencies are checked by checkLinuxDependencies() before enabling the sandbox.
|
|
2847
|
+
*
|
|
2848
|
+
* CALLER OBLIGATION: the euid and capability decisions behind the returned
|
|
2849
|
+
* string are made here, in the process that builds it, so the string must be
|
|
2850
|
+
* run by a process with the same euid and the same capability bounding and
|
|
2851
|
+
* inheritable sets.
|
|
2852
|
+
*/
|
|
2853
|
+
export async function wrapCommandWithSandboxLinux(params) {
|
|
2854
|
+
const { command, commandId, needsNetworkRestriction, httpSocketPath, socksSocketPath, httpProxyPort, socksProxyPort, proxyAuthToken, caCertPath, javaAgentJarPath, unsetEnvVars, setEnvVars, maskedFileBinds, maskedFileStoreDir, enableWeakerNestedSandbox, allowNestedUserNamespaces, allowAllUnixSockets, binShell, ripgrepConfig = { command: 'rg' }, mandatoryDenySearchDepth = DEFAULT_MANDATORY_DENY_SEARCH_DEPTH, allowGitConfig = false, gitSafeDirectories, seccompConfig, bwrapPath, socatPath, observeSocketPath, abortSignal, } = params;
|
|
2855
|
+
// bubblewrap takes no patterns, so every path here is a name. The literal
|
|
2856
|
+
// lists are folded into the lists they belong to, once, so that nothing
|
|
2857
|
+
// below can read a list and miss them; a pattern in `allowOnly` that is no
|
|
2858
|
+
// name is dropped by the fold (see writeNamesOf).
|
|
2859
|
+
const readConfig = readNamesOf(params.readConfig);
|
|
2860
|
+
const writeConfig = writeNamesOf(params.writeConfig);
|
|
2861
|
+
// Determine if we have restrictions to apply
|
|
2862
|
+
// Read: denyOnly pattern - empty array means no restrictions
|
|
2863
|
+
// Write: allowOnly pattern - undefined means no restrictions, any config means restrictions
|
|
2864
|
+
const hasReadRestrictions = (readConfig && readConfig.denyOnly.length > 0) ||
|
|
2865
|
+
(maskedFileBinds !== undefined && maskedFileBinds.length > 0);
|
|
2866
|
+
const hasWriteRestrictions = writeConfig !== undefined;
|
|
2867
|
+
const hasEnvRestrictions = (unsetEnvVars !== undefined && unsetEnvVars.length > 0) ||
|
|
2868
|
+
(setEnvVars !== undefined && Object.keys(setEnvVars).length > 0);
|
|
2869
|
+
const hasGitConfig = (gitSafeDirectories?.length ?? 0) > 0;
|
|
2870
|
+
// Check if we need any sandboxing
|
|
2871
|
+
if (!needsNetworkRestriction &&
|
|
2872
|
+
!hasReadRestrictions &&
|
|
2873
|
+
!hasWriteRestrictions &&
|
|
2874
|
+
!hasEnvRestrictions &&
|
|
2875
|
+
!hasGitConfig) {
|
|
2876
|
+
return command;
|
|
2877
|
+
}
|
|
2878
|
+
// Mark this sandbox invocation as active. cleanupBwrapMountPoints() will
|
|
2879
|
+
// defer file deletion until this (and every other concurrent) invocation
|
|
2880
|
+
// has been cleaned up. The matching decrement happens in
|
|
2881
|
+
// cleanupBwrapMountPoints(), which the caller must invoke after the
|
|
2882
|
+
// spawned command exits. If wrapping fails below, the catch block
|
|
2883
|
+
// decrements so the count does not leak.
|
|
2884
|
+
activeSandboxCount++;
|
|
2885
|
+
const countedAfter = forcedCleanups;
|
|
2886
|
+
// One encoded key for both carriers below (SRT_ENCODED_CMD for the seccomp
|
|
2887
|
+
// observer, the proxy username for network denies), so a violation seen
|
|
2888
|
+
// through either resolves to the same registry entry. macOS derives its log
|
|
2889
|
+
// tag from a single key the same way.
|
|
2890
|
+
const attributionKey = encodeSandboxedCommand(attributionKeyFor(command, commandId));
|
|
2891
|
+
const bwrapArgs = ['--new-session', '--die-with-parent'];
|
|
2892
|
+
let applySeccompPrefix;
|
|
2893
|
+
try {
|
|
2894
|
+
// ========== SECCOMP FILTER (Unix Socket Blocking) ==========
|
|
2895
|
+
// apply-seccomp wraps the workload and applies the baked-in BPF filter
|
|
2896
|
+
// that blocks socket(AF_UNIX, ...). Skipped when allowAllUnixSockets is true.
|
|
2897
|
+
if (!allowAllUnixSockets) {
|
|
2898
|
+
applySeccompPrefix = resolveApplySeccompPrefix(seccompConfig?.applyPath, seccompConfig?.argv0);
|
|
2899
|
+
if (!applySeccompPrefix) {
|
|
2900
|
+
logForDebugging('[Sandbox Linux] apply-seccomp binary not available - unix socket blocking disabled. ' +
|
|
2901
|
+
'Install @anthropic-ai/sandbox-runtime globally for full protection.', { level: 'warn' });
|
|
2902
|
+
}
|
|
2903
|
+
else {
|
|
2904
|
+
applySeccompPrefix =
|
|
2905
|
+
helperEnvironmentPrefix(allowNestedUserNamespaces === true) +
|
|
2906
|
+
applySeccompPrefix;
|
|
2907
|
+
logForDebugging('[Sandbox Linux] Applying seccomp filter for Unix socket blocking');
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
else {
|
|
2911
|
+
logForDebugging('[Sandbox Linux] Skipping seccomp filter - allowAllUnixSockets is enabled');
|
|
2912
|
+
}
|
|
2913
|
+
// ========== VIOLATION OBSERVATION (best-effort) ==========
|
|
2914
|
+
// Only meaningful when apply-seccomp will run — it is the binary that
|
|
2915
|
+
// installs the USER_NOTIF filter and ships the listener fd.
|
|
2916
|
+
if (observeSocketPath && applySeccompPrefix) {
|
|
2917
|
+
if (fs.existsSync(observeSocketPath)) {
|
|
2918
|
+
bwrapArgs.push('--bind', observeSocketPath, observeSocketPath);
|
|
2919
|
+
bwrapArgs.push('--setenv', 'SRT_OBSERVE_SOCK', observeSocketPath);
|
|
2920
|
+
// Tag events with the encoded command so the violation store can
|
|
2921
|
+
// associate them with this invocation (parity with macOS log tag).
|
|
2922
|
+
bwrapArgs.push('--setenv', 'SRT_ENCODED_CMD', attributionKey);
|
|
2923
|
+
}
|
|
2924
|
+
else {
|
|
2925
|
+
logForDebugging('[Sandbox Linux] observe socket missing — supervisor not running; ' +
|
|
2926
|
+
'continuing without violation monitoring');
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
// ========== ENV RESTRICTIONS ==========
|
|
2930
|
+
// Drop denied credential env vars from the inherited environment. Emitted
|
|
2931
|
+
// before the proxy --setenv flags below: bwrap applies env operations in
|
|
2932
|
+
// argument order, so SRT's own proxy plumbing vars survive even if a
|
|
2933
|
+
// caller lists one of them as a denied credential.
|
|
2934
|
+
if (hasEnvRestrictions) {
|
|
2935
|
+
for (const name of unsetEnvVars ?? []) {
|
|
2936
|
+
bwrapArgs.push('--unsetenv', name);
|
|
2937
|
+
}
|
|
2938
|
+
// Masked credentials override the inherited real value with a
|
|
2939
|
+
// sentinel; bwrap --setenv replaces any inherited value of NAME.
|
|
2940
|
+
for (const [name, value] of Object.entries(setEnvVars ?? {})) {
|
|
2941
|
+
bwrapArgs.push('--setenv', name, value);
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
// ========== GIT CONFIG (safe.directory) ==========
|
|
2945
|
+
// Under `--unshare-user` the repo owner's uid is unmapped so git
|
|
2946
|
+
// sees dubious ownership. `buildPosixGitSafeDirEnv` composes
|
|
2947
|
+
// against the child's actual starting env (process.env inherited,
|
|
2948
|
+
// unsetEnvVars dropped, setEnvVars overlaid) so an ambient
|
|
2949
|
+
// GIT_CONFIG_COUNT is continued, not clobbered.
|
|
2950
|
+
if (gitSafeDirectories && gitSafeDirectories.length > 0) {
|
|
2951
|
+
const gitCfg = buildPosixGitSafeDirEnv({
|
|
2952
|
+
safeDirs: gitSafeDirectories,
|
|
2953
|
+
unsetEnvVars,
|
|
2954
|
+
setEnvVars,
|
|
2955
|
+
});
|
|
2956
|
+
for (const [name, value] of Object.entries(gitCfg)) {
|
|
2957
|
+
bwrapArgs.push('--setenv', name, value);
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
// ========== NETWORK RESTRICTIONS ==========
|
|
2961
|
+
if (needsNetworkRestriction) {
|
|
2962
|
+
// Always unshare network namespace to isolate network access
|
|
2963
|
+
// This removes all network interfaces, effectively blocking all network
|
|
2964
|
+
bwrapArgs.push('--unshare-net');
|
|
2965
|
+
// If proxy sockets are provided, bind them into the sandbox to allow
|
|
2966
|
+
// filtered network access through the proxy. If not provided, network
|
|
2967
|
+
// is completely blocked (empty allowedDomains = block all)
|
|
2968
|
+
if (httpSocketPath && socksSocketPath) {
|
|
2969
|
+
// Verify socket files still exist before trying to bind them
|
|
2970
|
+
if (!fs.existsSync(httpSocketPath)) {
|
|
2971
|
+
throw new Error(`Linux HTTP bridge socket does not exist: ${httpSocketPath}. ` +
|
|
2972
|
+
'The bridge process may have died. Try reinitializing the sandbox.');
|
|
2973
|
+
}
|
|
2974
|
+
if (!fs.existsSync(socksSocketPath)) {
|
|
2975
|
+
throw new Error(`Linux SOCKS bridge socket does not exist: ${socksSocketPath}. ` +
|
|
2976
|
+
'The bridge process may have died. Try reinitializing the sandbox.');
|
|
2977
|
+
}
|
|
2978
|
+
// Bind both sockets into the sandbox
|
|
2979
|
+
bwrapArgs.push('--bind', httpSocketPath, httpSocketPath);
|
|
2980
|
+
// When the mux serves both protocols, socksSocketPath is the same
|
|
2981
|
+
// file as httpSocketPath; bwrap rejects a duplicate --bind of the
|
|
2982
|
+
// same source→target.
|
|
2983
|
+
if (socksSocketPath !== httpSocketPath) {
|
|
2984
|
+
bwrapArgs.push('--bind', socksSocketPath, socksSocketPath);
|
|
2985
|
+
}
|
|
2986
|
+
// Add proxy environment variables
|
|
2987
|
+
// HTTP_PROXY points to the socat listener inside the sandbox (port 3128)
|
|
2988
|
+
// which forwards to the Unix socket that bridges to the host's proxy server
|
|
2989
|
+
const proxyEnv = generateProxyEnvVars(3128, // Internal HTTP listener port
|
|
2990
|
+
1080, // Internal SOCKS listener port
|
|
2991
|
+
caCertPath, proxyAuthToken, writeConfig === undefined, attributionKey);
|
|
2992
|
+
bwrapArgs.push(...proxyEnv.flatMap((env) => {
|
|
2993
|
+
const firstEq = env.indexOf('=');
|
|
2994
|
+
const key = env.slice(0, firstEq);
|
|
2995
|
+
const value = env.slice(firstEq + 1);
|
|
2996
|
+
return ['--setenv', key, value];
|
|
2997
|
+
}));
|
|
2998
|
+
// JVMs ignore the proxy env vars above; the agent jar translates
|
|
2999
|
+
// them into system properties + an Authenticator at JVM start
|
|
3000
|
+
// (see java-proxy-agent.ts). Composed against the inherited value
|
|
3001
|
+
// so a caller's own JAVA_TOOL_OPTIONS survives.
|
|
3002
|
+
const javaToolOptions = buildJavaToolOptions({
|
|
3003
|
+
agentJarPath: javaAgentJarPath,
|
|
3004
|
+
unsetEnvVars,
|
|
3005
|
+
inherited: process.env.JAVA_TOOL_OPTIONS,
|
|
3006
|
+
});
|
|
3007
|
+
if (javaToolOptions !== undefined) {
|
|
3008
|
+
bwrapArgs.push('--setenv', 'JAVA_TOOL_OPTIONS', javaToolOptions);
|
|
3009
|
+
}
|
|
3010
|
+
// Add host proxy port environment variables for debugging/transparency
|
|
3011
|
+
// These show which host ports the Unix socket bridges connect to
|
|
3012
|
+
if (httpProxyPort !== undefined) {
|
|
3013
|
+
bwrapArgs.push('--setenv', 'CLAUDE_CODE_HOST_HTTP_PROXY_PORT', String(httpProxyPort));
|
|
3014
|
+
}
|
|
3015
|
+
if (socksProxyPort !== undefined) {
|
|
3016
|
+
bwrapArgs.push('--setenv', 'CLAUDE_CODE_HOST_SOCKS_PROXY_PORT', String(socksProxyPort));
|
|
3017
|
+
}
|
|
3018
|
+
}
|
|
3019
|
+
// If no sockets provided, network is completely blocked (--unshare-net without proxy)
|
|
3020
|
+
}
|
|
3021
|
+
// ========== FILESYSTEM RESTRICTIONS ==========
|
|
3022
|
+
const { args: fsArgs, mandatoryDenyArgs } = await generateFilesystemArgs(readConfig, writeConfig, maskedFileBinds, maskedFileStoreDir, ripgrepConfig, mandatoryDenySearchDepth, allowGitConfig, abortSignal);
|
|
3023
|
+
const mountsStart = bwrapArgs.length;
|
|
3024
|
+
bwrapArgs.push(...fsArgs);
|
|
3025
|
+
const mounts = {
|
|
3026
|
+
start: mountsStart,
|
|
3027
|
+
end: bwrapArgs.length,
|
|
3028
|
+
mandatoryDenyArgs,
|
|
3029
|
+
};
|
|
3030
|
+
// Always bind /dev
|
|
3031
|
+
bwrapArgs.push('--dev', '/dev');
|
|
3032
|
+
// ========== PID NAMESPACE ISOLATION ==========
|
|
3033
|
+
// IMPORTANT: These must come AFTER filesystem binds for nested bwrap to work
|
|
3034
|
+
// By default, always unshare PID namespace and mount fresh /proc.
|
|
3035
|
+
// If we don't have --unshare-pid, it is possible to escape the sandbox.
|
|
3036
|
+
// If we don't have --proc, it is possible to read host /proc and leak information about code running
|
|
3037
|
+
// outside the sandbox. But, --proc is not available when running in unprivileged docker containers
|
|
3038
|
+
// so we support running without it if explicitly requested.
|
|
3039
|
+
bwrapArgs.push('--unshare-pid');
|
|
3040
|
+
// --unshare-user in both modes: bwrap only auto-creates a userns when
|
|
3041
|
+
// EUID != 0. A root parent in an unprivileged container (Docker's
|
|
3042
|
+
// default: EUID=0 without CAP_SYS_ADMIN) would otherwise try a direct
|
|
3043
|
+
// clone and EPERM.
|
|
3044
|
+
const euid = process.geteuid?.();
|
|
3045
|
+
const hasSetfcap = processHasBoundingCapability(CAP_SETFCAP);
|
|
3046
|
+
if (euid === 0 && !hasSetfcap && !setfcapMissingLogged) {
|
|
3047
|
+
setfcapMissingLogged = true;
|
|
3048
|
+
logForDebugging(`[Sandbox Linux] ${CAP_SETFCAP_MISSING_MESSAGE}`, {
|
|
3049
|
+
level: 'warn',
|
|
3050
|
+
});
|
|
3051
|
+
}
|
|
3052
|
+
bwrapArgs.push('--unshare-user', ...capabilityArgs({
|
|
3053
|
+
euid,
|
|
3054
|
+
hasSetfcap,
|
|
3055
|
+
usesSeccompHelper: applySeccompPrefix !== undefined,
|
|
3056
|
+
}));
|
|
3057
|
+
if (!enableWeakerNestedSandbox) {
|
|
3058
|
+
// Mount fresh /proc if PID namespace is isolated (secure mode).
|
|
3059
|
+
bwrapArgs.push('--proc', '/proc');
|
|
3060
|
+
}
|
|
3061
|
+
else {
|
|
3062
|
+
// --bind /proc /proc: apply-seccomp's nested-userns path writes
|
|
3063
|
+
// /proc/self/setgroups and uid_map. Without --proc above, the
|
|
3064
|
+
// --ro-bind / / leaves /proc read-only and those writes EROFS; a
|
|
3065
|
+
// fresh proc mount is what an unprivileged container refuses.
|
|
3066
|
+
bwrapArgs.push('--bind', '/proc', '/proc');
|
|
3067
|
+
}
|
|
3068
|
+
// The caller's environment decides nothing about the command's namespaces:
|
|
3069
|
+
// the variable is cleared after every other environment operation, which
|
|
3070
|
+
// bubblewrap applies in argument order, and helperEnvironmentPrefix sets it.
|
|
3071
|
+
bwrapArgs.push('--unsetenv', NESTED_USERNS_ENV);
|
|
3072
|
+
// With no helper to refuse user namespaces, bubblewrap is asked to. Never
|
|
3073
|
+
// beside the helper, which makes one of its own, and not under
|
|
3074
|
+
// enableWeakerNestedSandbox: bubblewrap does it by writing a sysctl, and
|
|
3075
|
+
// dies on the read-only /proc/sys of an unprivileged container.
|
|
3076
|
+
if (applySeccompPrefix === undefined &&
|
|
3077
|
+
allowNestedUserNamespaces !== true) {
|
|
3078
|
+
const bwrap = enableWeakerNestedSandbox
|
|
3079
|
+
? null
|
|
3080
|
+
: (bwrapPath ?? whichSync('bwrap'));
|
|
3081
|
+
if (bwrap !== null && bwrapCanDisableUserns(bwrap)) {
|
|
3082
|
+
bwrapArgs.push('--disable-userns');
|
|
3083
|
+
}
|
|
3084
|
+
else if (!noUsernsLimitLogged) {
|
|
3085
|
+
noUsernsLimitLogged = true;
|
|
3086
|
+
logForDebugging('[Sandbox Linux] no seccomp helper in use, and bubblewrap cannot disable user namespaces ' +
|
|
3087
|
+
'(needs 0.8.0 or later, not setuid, and no enableWeakerNestedSandbox) - ' +
|
|
3088
|
+
'a sandboxed command that creates one can undo the write denies', { level: 'warn' });
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
// apply-seccomp obtains CAP_SYS_ADMIN for its nested PID+mount unshare
|
|
3092
|
+
// by creating a nested user namespace. This requires the host to permit
|
|
3093
|
+
// capability-bearing unprivileged user namespaces (the same requirement
|
|
3094
|
+
// bwrap itself has when not installed setuid). See README for the
|
|
3095
|
+
// Ubuntu 24.04 sysctl if AppArmor restricts this.
|
|
3096
|
+
// ========== COMMAND ==========
|
|
3097
|
+
// Use the user's shell (zsh, bash, etc.) to ensure aliases/snapshots work
|
|
3098
|
+
// Resolve the full path to the shell binary since bwrap doesn't use $PATH
|
|
3099
|
+
const shellName = binShell || 'bash';
|
|
3100
|
+
const shell = whichSync(shellName);
|
|
3101
|
+
if (!shell) {
|
|
3102
|
+
throw new Error(`Shell '${shellName}' not found in PATH`);
|
|
3103
|
+
}
|
|
3104
|
+
bwrapArgs.push('--', shell, '-c');
|
|
3105
|
+
// With network restrictions, route the command through buildSandboxCommand
|
|
3106
|
+
// so socat starts before seccomp is applied. Otherwise invoke apply-seccomp
|
|
3107
|
+
// directly if we have a binary.
|
|
3108
|
+
if (needsNetworkRestriction && httpSocketPath && socksSocketPath) {
|
|
3109
|
+
const sandboxCommand = buildSandboxCommand(httpSocketPath, socksSocketPath, command, applySeccompPrefix, shell, socatPath);
|
|
3110
|
+
bwrapArgs.push(sandboxCommand);
|
|
3111
|
+
}
|
|
3112
|
+
else if (applySeccompPrefix) {
|
|
3113
|
+
const applySeccompCmd = applySeccompPrefix + quote([shell, '-c', command]);
|
|
3114
|
+
bwrapArgs.push(applySeccompCmd);
|
|
3115
|
+
}
|
|
3116
|
+
else {
|
|
3117
|
+
bwrapArgs.push(command);
|
|
3118
|
+
}
|
|
3119
|
+
const wrappedCommand = renderBwrapInvocation(bwrapPath ?? 'bwrap', bwrapArgs, mounts);
|
|
3120
|
+
const restrictions = [];
|
|
3121
|
+
if (needsNetworkRestriction)
|
|
3122
|
+
restrictions.push('network');
|
|
3123
|
+
if (hasReadRestrictions || hasWriteRestrictions)
|
|
3124
|
+
restrictions.push('filesystem');
|
|
3125
|
+
if (hasEnvRestrictions)
|
|
3126
|
+
restrictions.push('env');
|
|
3127
|
+
if (applySeccompPrefix)
|
|
3128
|
+
restrictions.push('seccomp(unix-block)');
|
|
3129
|
+
logForDebugging(`[Sandbox Linux] Wrapped command with bwrap (${restrictions.join(', ')} restrictions)`);
|
|
3130
|
+
// INVARIANT: a wrap that hands out a command is in the count when it does,
|
|
3131
|
+
// whatever a forced cleanup did meanwhile: its caller gives one back.
|
|
3132
|
+
if (forcedCleanups !== countedAfter)
|
|
3133
|
+
activeSandboxCount++;
|
|
3134
|
+
return wrappedCommand;
|
|
3135
|
+
}
|
|
3136
|
+
catch (error) {
|
|
3137
|
+
// Undo the activeSandboxCount increment — the caller won't call
|
|
3138
|
+
// cleanupBwrapMountPoints() for a wrap that threw. A command that ended
|
|
3139
|
+
// meanwhile deferred its removal to this wrap, so it runs here. After a
|
|
3140
|
+
// forced cleanup the count is of other sandboxes only: one taken from it
|
|
3141
|
+
// has their mount points removed while they run.
|
|
3142
|
+
if (forcedCleanups === countedAfter)
|
|
3143
|
+
cleanupBwrapMountPoints();
|
|
3144
|
+
throw error;
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
//# sourceMappingURL=linux-sandbox-utils.js.map
|