@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,2848 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as os from 'node:os';
|
|
3
|
+
import * as net from 'node:net';
|
|
4
|
+
import * as path from 'node:path';
|
|
5
|
+
import { spawn, spawnSync } from 'node:child_process';
|
|
6
|
+
import { once } from 'node:events';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import { logForDebugging } from '../utils/debug.js';
|
|
9
|
+
import { generateProxyEnvVars, encodeSandboxedCommand, attributionKeyFor, buildGitConfigEnv, normalizePathForSandbox, containsGlobCharsWin, expandGlobPattern, isAtOrUnder, isUncPath, markedLiteralPath, normalizeCaseForComparison, stripExtendedPathPrefix, } from './sandbox-utils.js';
|
|
10
|
+
// Kept on this module's surface for out-of-tree importers; the
|
|
11
|
+
// implementations live in sandbox-utils.ts.
|
|
12
|
+
export { containsGlobCharsWin, stripExtendedPathPrefix, buildGitConfigEnv, isUncPath, } from './sandbox-utils.js';
|
|
13
|
+
import { certThumbprint, generateCa, validateCaPair } from './mitm-ca.js';
|
|
14
|
+
import { literalReadings } from './path-entries.js';
|
|
15
|
+
/**
|
|
16
|
+
* Error thrown by the Windows sandbox backend. Carries a stable
|
|
17
|
+
* {@link WindowsSandboxErrorCode} on `.code` so callers can branch
|
|
18
|
+
* without prose-matching `.message`. `instanceof WindowsSandboxError`
|
|
19
|
+
* narrows `.code` to the union.
|
|
20
|
+
*
|
|
21
|
+
* `.subcommand` is set on errors thrown from the `srt-win` spawn
|
|
22
|
+
* chokepoint (`spawn_failed`, `srt_win_timeout`, `srt_win_nonzero`,
|
|
23
|
+
* `srt_win_bad_json`) to the first CLI arg (e.g. `'install'`,
|
|
24
|
+
* `'wfp'`) so a consumer can distinguish install-spawn-failed from
|
|
25
|
+
* probe-spawn-failed without prose-matching. Unset elsewhere.
|
|
26
|
+
*/
|
|
27
|
+
export class WindowsSandboxError extends Error {
|
|
28
|
+
constructor(code, message, subcommand) {
|
|
29
|
+
super(message);
|
|
30
|
+
this.name = 'WindowsSandboxError';
|
|
31
|
+
this.code = code;
|
|
32
|
+
this.subcommand = subcommand;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
// ────────────────────────────────────────────────────────────────────
|
|
36
|
+
// Types
|
|
37
|
+
// ────────────────────────────────────────────────────────────────────
|
|
38
|
+
export const DEFAULT_WINDOWS_PROXY_PORT_RANGE = [
|
|
39
|
+
60080, 60089,
|
|
40
|
+
];
|
|
41
|
+
/**
|
|
42
|
+
* The one loopback port that stays blocked for the sandbox account with
|
|
43
|
+
* `network.allowLocalBinding`, so the fence check has a connect that must
|
|
44
|
+
* be refused. `srt-win` owns it (`LOOPBACK_PROBE_PORT` in `wfp.rs`).
|
|
45
|
+
*/
|
|
46
|
+
export const WINDOWS_LOOPBACK_PROBE_PORT = 1;
|
|
47
|
+
/** What `network.allowLocalBinding` opens on Windows, in plain words. */
|
|
48
|
+
export const WINDOWS_ALLOW_LOOPBACK_EFFECT = `Loopback is open: sandboxed commands can connect to every TCP and ` +
|
|
49
|
+
`UDP port on localhost (127.0.0.0/8 and ::1; port ` +
|
|
50
|
+
`${WINDOWS_LOOPBACK_PROBE_PORT} alone stays blocked, so the sandbox ` +
|
|
51
|
+
`can check its own fence). Every service listening ` +
|
|
52
|
+
`on localhost is reachable from them, and any local forwarder (a DNS ` +
|
|
53
|
+
`stub, a SOCKS or HTTP proxy, a VPN or security agent, a tunnel) ` +
|
|
54
|
+
`reachable there gives them a way off the machine that the network ` +
|
|
55
|
+
`restrictions do not cover.`;
|
|
56
|
+
const PWSH_FLAGS = ['-NoProfile', '-Command'];
|
|
57
|
+
/**
|
|
58
|
+
* Sole normalizer from the cross-platform `binShell?: string |
|
|
59
|
+
* WindowsBinShell` surface ({@link SandboxManager.wrapWithSandboxArgv})
|
|
60
|
+
* to a spawnable `{exe, args}` pair. All validation lives here —
|
|
61
|
+
* {@link wrapCommandWithSandboxWindows} consumes the result verbatim.
|
|
62
|
+
*
|
|
63
|
+
* String form: bare token (`'cmd'|'pwsh'|'powershell'`) resolves to
|
|
64
|
+
* the default install; absolute path to `bash.exe`/`sh.exe`/
|
|
65
|
+
* `pwsh.exe`/`powershell.exe`/`cmd.exe` keeps the caller's path with
|
|
66
|
+
* the matching flag shape. Object form: `exe` must be absolute; `args`
|
|
67
|
+
* pass through unchanged. Throws on anything else — no silent
|
|
68
|
+
* fallback to cmd.exe.
|
|
69
|
+
*
|
|
70
|
+
* Uses `path.win32` explicitly so the function (and its unit test)
|
|
71
|
+
* is platform-independent.
|
|
72
|
+
*/
|
|
73
|
+
export function parseWindowsBinShell(raw) {
|
|
74
|
+
const systemRoot = process.env.SystemRoot ?? 'C:\\Windows';
|
|
75
|
+
const cmdDefault = {
|
|
76
|
+
exe: path.win32.join(systemRoot, 'System32', 'cmd.exe'),
|
|
77
|
+
args: ['/d', '/s', '/c'],
|
|
78
|
+
};
|
|
79
|
+
if (raw === undefined || raw === null)
|
|
80
|
+
return cmdDefault;
|
|
81
|
+
if (typeof raw === 'object') {
|
|
82
|
+
if (!path.win32.isAbsolute(raw.exe)) {
|
|
83
|
+
throw new WindowsSandboxError('bin_shell_invalid', `binShell.exe must be an absolute path ` +
|
|
84
|
+
`(got ${JSON.stringify(raw.exe)})`);
|
|
85
|
+
}
|
|
86
|
+
if (!Array.isArray(raw.args)) {
|
|
87
|
+
throw new WindowsSandboxError('bin_shell_invalid', `binShell.args must be an array (got ${JSON.stringify(raw.args)})`);
|
|
88
|
+
}
|
|
89
|
+
return raw;
|
|
90
|
+
}
|
|
91
|
+
const rawBase = path.win32.basename(raw);
|
|
92
|
+
const base = rawBase.toLowerCase();
|
|
93
|
+
const isAbs = path.win32.isAbsolute(raw);
|
|
94
|
+
// A relative path with a directory component (`bin\bash.exe`) is
|
|
95
|
+
// neither a token nor a resolved install — never silently degrade.
|
|
96
|
+
if (!isAbs && raw !== rawBase) {
|
|
97
|
+
throw new WindowsSandboxError('bin_shell_invalid', `binShell string must be a bare token or an absolute path ` +
|
|
98
|
+
`(got ${JSON.stringify(raw)})`);
|
|
99
|
+
}
|
|
100
|
+
switch (base) {
|
|
101
|
+
case 'bash':
|
|
102
|
+
case 'bash.exe':
|
|
103
|
+
case 'sh':
|
|
104
|
+
case 'sh.exe':
|
|
105
|
+
// Bare 'bash' is ambiguous (WSL vs Git Bash) — require the
|
|
106
|
+
// resolved install path.
|
|
107
|
+
if (!isAbs) {
|
|
108
|
+
throw new WindowsSandboxError('bin_shell_invalid', `binShell bash path must be absolute ` +
|
|
109
|
+
`(got ${JSON.stringify(raw)}); pass the resolved Git Bash ` +
|
|
110
|
+
`install path`);
|
|
111
|
+
}
|
|
112
|
+
return { exe: raw, args: ['-c'] };
|
|
113
|
+
case 'pwsh':
|
|
114
|
+
case 'pwsh.exe':
|
|
115
|
+
return { exe: isAbs ? raw : 'pwsh.exe', args: PWSH_FLAGS };
|
|
116
|
+
case 'powershell':
|
|
117
|
+
case 'powershell.exe':
|
|
118
|
+
return {
|
|
119
|
+
exe: isAbs
|
|
120
|
+
? raw
|
|
121
|
+
: path.win32.join(systemRoot, 'System32', 'WindowsPowerShell', 'v1.0', 'powershell.exe'),
|
|
122
|
+
args: PWSH_FLAGS,
|
|
123
|
+
};
|
|
124
|
+
case 'cmd':
|
|
125
|
+
case 'cmd.exe':
|
|
126
|
+
return isAbs ? { exe: raw, args: cmdDefault.args } : cmdDefault;
|
|
127
|
+
default:
|
|
128
|
+
throw new WindowsSandboxError('bin_shell_invalid', `unrecognised binShell ${JSON.stringify(raw)}: expected ` +
|
|
129
|
+
`'cmd' | 'powershell' | 'pwsh' or an absolute path to ` +
|
|
130
|
+
`bash.exe/sh.exe/pwsh.exe/powershell.exe`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// ────────────────────────────────────────────────────────────────────
|
|
134
|
+
// Binary resolution
|
|
135
|
+
// ────────────────────────────────────────────────────────────────────
|
|
136
|
+
function repoRoot() {
|
|
137
|
+
// src/sandbox/windows-sandbox-utils.ts → repo root (compiled: dist/sandbox/…)
|
|
138
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
139
|
+
return path.resolve(here, '..', '..');
|
|
140
|
+
}
|
|
141
|
+
const nodeArchToDir = { x64: 'x64', arm64: 'arm64' };
|
|
142
|
+
/**
|
|
143
|
+
* The srt-win binary packaged with this module
|
|
144
|
+
* (`vendor/srt-win/<arch>/srt-win.exe`, arch from `process.arch`).
|
|
145
|
+
* Pass explicitly as `windows.srtWin.path` if you want the vendored
|
|
146
|
+
* exe — {@link resolveSrtWin} never falls back to it implicitly.
|
|
147
|
+
*
|
|
148
|
+
* WARNING: in a dev checkout this file may live inside your sandbox
|
|
149
|
+
* write grant — a sandboxed process could overwrite it; prefer a
|
|
150
|
+
* binary outside any grant (e.g. your own signed executable).
|
|
151
|
+
*/
|
|
152
|
+
export const VENDORED_SRT_WIN_EXE = path.join(repoRoot(), 'vendor', 'srt-win', nodeArchToDir[process.arch] ?? process.arch, 'srt-win.exe');
|
|
153
|
+
/**
|
|
154
|
+
* Locate a built `srt-win.exe` for development/CI. Checks, in order:
|
|
155
|
+
* 1. `<root>/vendor/srt-win/{arch}/srt-win.exe` (prebuilt —
|
|
156
|
+
* {@link VENDORED_SRT_WIN_EXE}).
|
|
157
|
+
* 2. `<root>/vendor/srt-win-src/target/release/srt-win.exe` (local
|
|
158
|
+
* `cargo build --release`).
|
|
159
|
+
*
|
|
160
|
+
* `<root>` is {@link repoRoot} — `__dirname/../..`, which resolves to the
|
|
161
|
+
* repo root from `src/sandbox/` and `dist/sandbox/` alike, and to the
|
|
162
|
+
* package root when installed under `node_modules`.
|
|
163
|
+
*
|
|
164
|
+
* This is an explicit helper — nothing calls it as an ambient
|
|
165
|
+
* default. Production callers set `windows.srtWin.path` (their own
|
|
166
|
+
* binary, or {@link VENDORED_SRT_WIN_EXE}); see {@link resolveSrtWin}.
|
|
167
|
+
*
|
|
168
|
+
* @throws if neither candidate exists.
|
|
169
|
+
*/
|
|
170
|
+
export function getSrtWinPath() {
|
|
171
|
+
const root = repoRoot();
|
|
172
|
+
const arch = nodeArchToDir[process.arch];
|
|
173
|
+
const candidates = [];
|
|
174
|
+
if (arch) {
|
|
175
|
+
candidates.push(path.join(root, 'vendor', 'srt-win', arch, 'srt-win.exe'));
|
|
176
|
+
}
|
|
177
|
+
candidates.push(path.join(root, 'vendor', 'srt-win-src', 'target', 'release', 'srt-win.exe'));
|
|
178
|
+
for (const c of candidates) {
|
|
179
|
+
if (fs.existsSync(c))
|
|
180
|
+
return c;
|
|
181
|
+
}
|
|
182
|
+
throw new WindowsSandboxError('srt_win_not_found', `srt-win.exe not found. Set windows.srtWin.path or build with ` +
|
|
183
|
+
`\`cargo build --release --manifest-path vendor/srt-win-src/Cargo.toml\`. ` +
|
|
184
|
+
`Looked in: ${candidates.join(', ')}`);
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* `argv[1]` sentinel a multicall embedder's dispatcher matches
|
|
188
|
+
* against to route into `srt_win::run_from_args`. Mirrors the Rust
|
|
189
|
+
* `srt_win::SRT_WIN_DISPATCH_ARG1`; the two MUST stay in sync.
|
|
190
|
+
* `run_from_args` strips it before clap, so the standalone binary
|
|
191
|
+
* accepts it harmlessly.
|
|
192
|
+
*/
|
|
193
|
+
export const SRT_WIN_DISPATCH_ARG1 = '--srt-win';
|
|
194
|
+
/**
|
|
195
|
+
* Resolve the `srt-win` spawn target from config. `cfg.path` is
|
|
196
|
+
* required and used verbatim; {@link SRT_WIN_DISPATCH_ARG1} is
|
|
197
|
+
* prepended so a multicall dispatcher routes on `argv[1]` (the
|
|
198
|
+
* standalone binary strips it harmlessly).
|
|
199
|
+
*
|
|
200
|
+
* The path must be explicit because the packaged exe lives under
|
|
201
|
+
* the package root, which in a dev checkout sits inside the
|
|
202
|
+
* working-tree write grant (a planted `srt-win.exe` there would be
|
|
203
|
+
* spawned as the broker). Callers that want the packaged binary
|
|
204
|
+
* pass {@link VENDORED_SRT_WIN_EXE}.
|
|
205
|
+
*
|
|
206
|
+
* @throws if `cfg.path` is unset or names a missing file.
|
|
207
|
+
*/
|
|
208
|
+
export function resolveSrtWin(cfg) {
|
|
209
|
+
if (cfg?.path === undefined) {
|
|
210
|
+
throw new WindowsSandboxError('srt_win_not_found', `no srt-win path configured; set windows.srtWin.path (e.g. to the ` +
|
|
211
|
+
`exported VENDORED_SRT_WIN_EXE constant for the packaged binary)`);
|
|
212
|
+
}
|
|
213
|
+
if (!fs.existsSync(cfg.path)) {
|
|
214
|
+
throw new WindowsSandboxError('srt_win_not_found', `windows.srtWin.path is set to '${cfg.path}' but the file does ` +
|
|
215
|
+
`not exist`);
|
|
216
|
+
}
|
|
217
|
+
return { exe: cfg.path, prependArgs: [SRT_WIN_DISPATCH_ARG1] };
|
|
218
|
+
}
|
|
219
|
+
function runSrtWin(args, opts = {}) {
|
|
220
|
+
// Callers must thread `srtWin` (SandboxManager resolves once at
|
|
221
|
+
// `initialize()`); the argless `resolveSrtWin()` throws, telling a
|
|
222
|
+
// direct helper caller to pass an explicit path.
|
|
223
|
+
const { exe, prependArgs } = opts.srtWin ?? resolveSrtWin();
|
|
224
|
+
const r = spawnSync(exe, [...prependArgs, ...args], {
|
|
225
|
+
encoding: 'utf8',
|
|
226
|
+
windowsHide: true,
|
|
227
|
+
timeout: opts.timeoutMs ?? 15000,
|
|
228
|
+
...(opts.stdin !== undefined ? { input: opts.stdin } : {}),
|
|
229
|
+
});
|
|
230
|
+
if (r.error) {
|
|
231
|
+
// ETIMEDOUT means the process ran and spawnSync killed it after
|
|
232
|
+
// `timeout` — throw a distinct code so every caller surfaces
|
|
233
|
+
// "timed out" instead of an opaque `exited null`. Callers with a
|
|
234
|
+
// more specific mapping (e.g. `install_timeout`) catch by code.
|
|
235
|
+
// Any other `r.error` (ENOENT, EACCES, EINVAL) means the process
|
|
236
|
+
// never started.
|
|
237
|
+
if (r.error.code === 'ETIMEDOUT') {
|
|
238
|
+
throw new WindowsSandboxError('srt_win_timeout', `srt-win ${args.join(' ')} timed out after ` +
|
|
239
|
+
`${opts.timeoutMs ?? 15000}ms` +
|
|
240
|
+
(r.signal ? ` (killed by ${r.signal})` : ''), args[0]);
|
|
241
|
+
}
|
|
242
|
+
throw new WindowsSandboxError('spawn_failed', `srt-win ${args[0]}: spawn failed: ${r.error.message}`, args[0]);
|
|
243
|
+
}
|
|
244
|
+
throwIfRefusedBesideOthers(args, r.status, r.stdout ?? '');
|
|
245
|
+
return {
|
|
246
|
+
status: r.status,
|
|
247
|
+
signal: r.signal,
|
|
248
|
+
stdout: (r.stdout ?? '').trim(),
|
|
249
|
+
stderr: (r.stderr ?? '').trim(),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* `srt-win`'s exit code when its lock is held by a `profile grant` or
|
|
254
|
+
* `profile forget`: the caller is told after about three seconds.
|
|
255
|
+
*/
|
|
256
|
+
export const SRT_WIN_EXIT_PROFILE_BUSY = 25;
|
|
257
|
+
/**
|
|
258
|
+
* `srt-win exec`'s exit code when the session a command was started
|
|
259
|
+
* for (`heldBy`) ended while the command ran: the command and
|
|
260
|
+
* everything it started were terminated.
|
|
261
|
+
*/
|
|
262
|
+
export const SRT_WIN_EXIT_SESSION_ENDED = 26;
|
|
263
|
+
/** `srt-win`'s exit code for "nothing was removed: sandbox sessions or commands are running". */
|
|
264
|
+
export const SRT_WIN_EXIT_HELD_BY_OTHERS = 22;
|
|
265
|
+
/** `srt-win profile grant`'s exit code for "nothing was changed: sandbox sessions or commands are running". */
|
|
266
|
+
export const SRT_WIN_EXIT_GRANT_BLOCKED = 24;
|
|
267
|
+
/** One row of `srt-win`'s `{"held_by": […]}`, said as what it is. */
|
|
268
|
+
function describeWindowsHolder(h) {
|
|
269
|
+
const who = `process ${String(h.pid)}`;
|
|
270
|
+
const at = String(h.path);
|
|
271
|
+
switch (h.kind) {
|
|
272
|
+
case 'profile':
|
|
273
|
+
return `${who} is a sandbox session or command`;
|
|
274
|
+
case 'kept_root':
|
|
275
|
+
return `${who} runs on the kept write grant on ${at}`;
|
|
276
|
+
case 'grant':
|
|
277
|
+
return `${who} holds a session grant on ${at}`;
|
|
278
|
+
case 'deny':
|
|
279
|
+
case 'deny_fdc':
|
|
280
|
+
case 'deny_delete':
|
|
281
|
+
case 'deny_satisfied':
|
|
282
|
+
return `${who} holds a session deny on ${at}`;
|
|
283
|
+
default:
|
|
284
|
+
return `${who} holds ${String(h.kind)} on ${at}`;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
function describeWindowsHolders(stdout) {
|
|
288
|
+
let held = [];
|
|
289
|
+
try {
|
|
290
|
+
const parsed = JSON.parse(stdout);
|
|
291
|
+
if (Array.isArray(parsed.held_by))
|
|
292
|
+
held = parsed.held_by;
|
|
293
|
+
}
|
|
294
|
+
catch {
|
|
295
|
+
// The exit code says it; the list is for the message only.
|
|
296
|
+
}
|
|
297
|
+
const said = held.slice(0, 8).map(describeWindowsHolder);
|
|
298
|
+
if (held.length > said.length) {
|
|
299
|
+
said.push(`${held.length - said.length} more`);
|
|
300
|
+
}
|
|
301
|
+
return said.join('; ');
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* The one mapping of `srt-win`'s refusals beside other sandbox activity:
|
|
305
|
+
* 25 (a profile operation runs), 22 (nothing removed), 24 (grant unchanged).
|
|
306
|
+
*/
|
|
307
|
+
function throwIfRefusedBesideOthers(args, status, stdout) {
|
|
308
|
+
if (status === SRT_WIN_EXIT_PROFILE_BUSY) {
|
|
309
|
+
throw new WindowsSandboxError('profile_operation_in_progress', `The read grant on your user profile is being written or removed ` +
|
|
310
|
+
`right now (srt-win profile grant / profile forget). Nothing in the ` +
|
|
311
|
+
`sandbox can start until that is done; try again when it has ` +
|
|
312
|
+
`finished.`, args[0]);
|
|
313
|
+
}
|
|
314
|
+
if (status !== SRT_WIN_EXIT_HELD_BY_OTHERS &&
|
|
315
|
+
status !== SRT_WIN_EXIT_GRANT_BLOCKED) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
const what = describeWindowsHolders(stdout);
|
|
319
|
+
const who = what ? ` (${what})` : '';
|
|
320
|
+
if (status === SRT_WIN_EXIT_GRANT_BLOCKED) {
|
|
321
|
+
throw new WindowsSandboxError('profile_grant_blocked_by_session', `The read grant on your user profile was not changed: sandbox ` +
|
|
322
|
+
`sessions or commands are running${who}, and the grant is written ` +
|
|
323
|
+
`only while none is, so that no session sees it change. What was ` +
|
|
324
|
+
`granted before is as it was. End them and run it again.`, args[0]);
|
|
325
|
+
}
|
|
326
|
+
throw new WindowsSandboxError('kept_grants_in_use', `srt-win ${args.slice(0, 2).join(' ')} removed nothing: sandbox ` +
|
|
327
|
+
`sessions or commands are running${who}, and what they run on is ` +
|
|
328
|
+
`not taken from under them. End them and run it again.`, args[0]);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Async twin of {@link runSrtWin}: same signature, same result shape,
|
|
332
|
+
* but the event loop stays live. Prefer it for any call reachable
|
|
333
|
+
* from a UI/render path — the sync variant `spawnSync`-blocks, which
|
|
334
|
+
* on Windows can be seconds when Defender cold-scans `srt-win.exe`.
|
|
335
|
+
*/
|
|
336
|
+
function runSrtWinAsync(args, opts = {}) {
|
|
337
|
+
const { exe, prependArgs } = opts.srtWin ?? resolveSrtWin();
|
|
338
|
+
const timeoutMs = opts.timeoutMs ?? 15000;
|
|
339
|
+
return new Promise((resolve, reject) => {
|
|
340
|
+
const child = spawn(exe, [...prependArgs, ...args], {
|
|
341
|
+
windowsHide: true,
|
|
342
|
+
});
|
|
343
|
+
// Manual timer instead of spawn's `timeout` option so a timeout
|
|
344
|
+
// is distinguishable from an external kill — parity with the
|
|
345
|
+
// sync variant's ETIMEDOUT branch (same code, same message).
|
|
346
|
+
let timedOut = false;
|
|
347
|
+
const timer = timeoutMs > 0
|
|
348
|
+
? setTimeout(() => {
|
|
349
|
+
timedOut = true;
|
|
350
|
+
child.kill();
|
|
351
|
+
}, timeoutMs)
|
|
352
|
+
: undefined;
|
|
353
|
+
let stdout = '';
|
|
354
|
+
let stderr = '';
|
|
355
|
+
child.stdout?.setEncoding('utf8').on('data', d => (stdout += d));
|
|
356
|
+
child.stderr?.setEncoding('utf8').on('data', d => (stderr += d));
|
|
357
|
+
// Swallow EPIPE if the child dies before the stdin write drains.
|
|
358
|
+
child.stdin?.on('error', () => { }).end(opts.stdin);
|
|
359
|
+
child.once('error', e => {
|
|
360
|
+
clearTimeout(timer);
|
|
361
|
+
reject(new WindowsSandboxError('spawn_failed', `srt-win ${args[0]}: spawn failed: ${e.message}`, args[0]));
|
|
362
|
+
});
|
|
363
|
+
child.once('close', (status, signal) => {
|
|
364
|
+
clearTimeout(timer);
|
|
365
|
+
if (timedOut) {
|
|
366
|
+
reject(new WindowsSandboxError('srt_win_timeout', `srt-win ${args.join(' ')} timed out after ${timeoutMs}ms` +
|
|
367
|
+
(signal ? ` (killed by ${signal})` : ''), args[0]));
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
try {
|
|
371
|
+
throwIfRefusedBesideOthers(args, status, stdout);
|
|
372
|
+
}
|
|
373
|
+
catch (e) {
|
|
374
|
+
reject(e);
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
resolve({ status, signal, stdout: stdout.trim(), stderr: stderr.trim() });
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
function parseSrtWinJson(args, r) {
|
|
382
|
+
if (r.status !== 0) {
|
|
383
|
+
throw new WindowsSandboxError('srt_win_nonzero', `srt-win ${args.join(' ')} exited ${r.status}: ${r.stderr || r.stdout}`, args[0]);
|
|
384
|
+
}
|
|
385
|
+
try {
|
|
386
|
+
return JSON.parse(r.stdout);
|
|
387
|
+
}
|
|
388
|
+
catch (e) {
|
|
389
|
+
throw new WindowsSandboxError('srt_win_bad_json', `srt-win ${args.join(' ')}: unparseable JSON output ` +
|
|
390
|
+
`${JSON.stringify(r.stdout)}: ${e.message}`, args[0]);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
function runSrtWinJson(args, opts) {
|
|
394
|
+
return parseSrtWinJson(args, runSrtWin(args, opts));
|
|
395
|
+
}
|
|
396
|
+
async function runSrtWinJsonAsync(args, opts) {
|
|
397
|
+
return parseSrtWinJson(args, await runSrtWinAsync(args, opts));
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* As {@link runSrtWinJson} but parses stdout BEFORE checking the
|
|
401
|
+
* exit code, so a non-zero exit with the per-path JSON intact
|
|
402
|
+
* still surfaces every entry. For best-effort teardown helpers
|
|
403
|
+
* (`acl restore`/`acl revoke`).
|
|
404
|
+
*/
|
|
405
|
+
function runSrtWinJsonAllowFail(args, opts) {
|
|
406
|
+
const r = runSrtWin(args, opts);
|
|
407
|
+
let json;
|
|
408
|
+
try {
|
|
409
|
+
json = JSON.parse(r.stdout);
|
|
410
|
+
}
|
|
411
|
+
catch (e) {
|
|
412
|
+
throw new WindowsSandboxError('srt_win_bad_json', `srt-win ${args.join(' ')}: unparseable JSON output ` +
|
|
413
|
+
`${JSON.stringify(r.stdout)}: ${e.message}`, args[0]);
|
|
414
|
+
}
|
|
415
|
+
return { ok: r.status === 0, json, stderr: r.stderr };
|
|
416
|
+
}
|
|
417
|
+
function wfpStatusArgs(sublayerGuid) {
|
|
418
|
+
const args = ['wfp', 'status'];
|
|
419
|
+
if (sublayerGuid)
|
|
420
|
+
args.push('--sublayer-guid', sublayerGuid);
|
|
421
|
+
return args;
|
|
422
|
+
}
|
|
423
|
+
function mapWfpStatus(raw) {
|
|
424
|
+
return {
|
|
425
|
+
state: raw.state,
|
|
426
|
+
filters: raw.filters,
|
|
427
|
+
...(raw.port_range && { portRange: raw.port_range }),
|
|
428
|
+
allowLoopback: raw.allow_loopback === true,
|
|
429
|
+
...(raw.user_sid && { userSid: raw.user_sid }),
|
|
430
|
+
...(raw.hint && { hint: raw.hint }),
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Behaviours of `srt-win` this library relies on and asks for by
|
|
435
|
+
* name. `srt-win` lists what it does as `capabilities` in `user
|
|
436
|
+
* status` and `profile status`.
|
|
437
|
+
*/
|
|
438
|
+
export const WINDOWS_SRT_WIN_CAPABILITIES = {
|
|
439
|
+
/**
|
|
440
|
+
* A read deny handed to `srt-win` is also written on every recorded
|
|
441
|
+
* path of the profile read grant beneath it that carries an allow
|
|
442
|
+
* of its own.
|
|
443
|
+
*/
|
|
444
|
+
profileDenyExpansion: 'profile-deny-expansion',
|
|
445
|
+
/**
|
|
446
|
+
* Sessions are recorded as holders of the kept grants they run on,
|
|
447
|
+
* and `acl forget` / `profile forget` take
|
|
448
|
+
* `--unless-held-by-others`.
|
|
449
|
+
*/
|
|
450
|
+
keptGrantHolders: 'kept-grant-holders',
|
|
451
|
+
/**
|
|
452
|
+
* `acl grant` itself refuses a path that reaches an exclusion
|
|
453
|
+
* recorded with the profile read grant.
|
|
454
|
+
*/
|
|
455
|
+
profileSessionGrantCheck: 'profile-session-grant-check',
|
|
456
|
+
/**
|
|
457
|
+
* That expansion leaves out the recorded paths the session allows
|
|
458
|
+
* more specifically: the grants of the same `acl grant` call, and
|
|
459
|
+
* the ones a command names with `--deny-read-except`.
|
|
460
|
+
*/
|
|
461
|
+
readDenyExcept: 'read-deny-except',
|
|
462
|
+
/**
|
|
463
|
+
* A session under the write-restricted token is recorded as a
|
|
464
|
+
* holder of the profile read grant from its start, and `exec` is
|
|
465
|
+
* told which session holds for it (`--held-by`) or holds for itself.
|
|
466
|
+
*/
|
|
467
|
+
execHolder: 'exec-holder',
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* The first capability this library needs that `capabilities` (as
|
|
471
|
+
* `srt-win` reported them) does not list.
|
|
472
|
+
*/
|
|
473
|
+
export function missingWindowsSrtWinCapability(capabilities) {
|
|
474
|
+
return Object.values(WINDOWS_SRT_WIN_CAPABILITIES).find(c => !capabilities.includes(c));
|
|
475
|
+
}
|
|
476
|
+
function capabilityList(v) {
|
|
477
|
+
return Array.isArray(v)
|
|
478
|
+
? v.filter((x) => typeof x === 'string')
|
|
479
|
+
: [];
|
|
480
|
+
}
|
|
481
|
+
/** The typed error for an `srt-win` that lacks a behaviour by name. */
|
|
482
|
+
export function windowsSrtWinOutdatedError(capability, why) {
|
|
483
|
+
return new WindowsSandboxError('srt_win_outdated', `The srt-win in use is older than this library: it does not report ` +
|
|
484
|
+
`the capability '${capability}', which ${why}. Update srt-win (the ` +
|
|
485
|
+
`one shipped with the program embedding this library, or the ` +
|
|
486
|
+
`package's own) to a build that matches the library. Nothing was ` +
|
|
487
|
+
`granted.`);
|
|
488
|
+
}
|
|
489
|
+
const SECLOGON_STATES = [
|
|
490
|
+
'ok',
|
|
491
|
+
'disabled',
|
|
492
|
+
'missing',
|
|
493
|
+
'cannot-read',
|
|
494
|
+
];
|
|
495
|
+
function mapUserStatus(raw) {
|
|
496
|
+
return {
|
|
497
|
+
provisioned: raw.user.exists,
|
|
498
|
+
...(raw.user.sid && { sid: raw.user.sid }),
|
|
499
|
+
groupExists: raw.user.group_exists,
|
|
500
|
+
...(raw.user.group_sid && { groupSid: raw.user.group_sid }),
|
|
501
|
+
inBuiltinUsers: raw.user.in_builtin_users,
|
|
502
|
+
inSandboxGroup: raw.user.in_sandbox_group,
|
|
503
|
+
hiddenFromLogon: raw.user.hidden_from_logon,
|
|
504
|
+
credPresent: raw.cred_present,
|
|
505
|
+
...(typeof raw.marker_version === 'number' && {
|
|
506
|
+
markerVersion: raw.marker_version,
|
|
507
|
+
}),
|
|
508
|
+
...(typeof raw.setup_version === 'number' && {
|
|
509
|
+
setupVersion: raw.setup_version,
|
|
510
|
+
}),
|
|
511
|
+
realUserSid: raw.real_user_sid,
|
|
512
|
+
...(raw.ca_cert_thumb && { caCertThumb: raw.ca_cert_thumb }),
|
|
513
|
+
...(raw.ca_cert_pem && { caCertPem: raw.ca_cert_pem }),
|
|
514
|
+
...(raw.seclogon !== undefined &&
|
|
515
|
+
SECLOGON_STATES.includes(raw.seclogon) && {
|
|
516
|
+
seclogon: raw.seclogon,
|
|
517
|
+
}),
|
|
518
|
+
// Anything but an explicit "none" counts: a state this code does
|
|
519
|
+
// not know must not read as "no grants".
|
|
520
|
+
...(raw.persistent_grants &&
|
|
521
|
+
raw.persistent_grants.state !== 'none' && {
|
|
522
|
+
persistentGrants: {
|
|
523
|
+
state: raw.persistent_grants.state === 'present' ? 'present' : 'unknown',
|
|
524
|
+
roots: raw.persistent_grants.roots ?? [],
|
|
525
|
+
...(raw.persistent_grants.reason && {
|
|
526
|
+
reason: raw.persistent_grants.reason,
|
|
527
|
+
}),
|
|
528
|
+
},
|
|
529
|
+
}),
|
|
530
|
+
...(typeof raw.session_user_sid === 'string' &&
|
|
531
|
+
raw.session_user_sid !== '' && {
|
|
532
|
+
sessionUserSid: raw.session_user_sid,
|
|
533
|
+
}),
|
|
534
|
+
capabilities: capabilityList(raw.capabilities),
|
|
535
|
+
// As above: only an explicit "none" is no grant.
|
|
536
|
+
...(raw.profile_grant &&
|
|
537
|
+
raw.profile_grant.state !== 'none' && {
|
|
538
|
+
profileGrant: {
|
|
539
|
+
state: raw.profile_grant.state === 'present' ? 'present' : 'unknown',
|
|
540
|
+
...(raw.profile_grant.reason && {
|
|
541
|
+
reason: raw.profile_grant.reason,
|
|
542
|
+
}),
|
|
543
|
+
},
|
|
544
|
+
}),
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
/** User-facing text for a disabled/absent Secondary Logon service. */
|
|
548
|
+
function seclogonDisabledMessage(state) {
|
|
549
|
+
return state === 'missing'
|
|
550
|
+
? `The Windows Secondary Logon service (seclogon) is not present ` +
|
|
551
|
+
`on this machine; the sandbox cannot start without it.`
|
|
552
|
+
: `The Windows Secondary Logon service (seclogon) is disabled; an ` +
|
|
553
|
+
`administrator must set its startup type to Manual (\`sc.exe ` +
|
|
554
|
+
`config seclogon start= demand\`). The sandbox cannot start ` +
|
|
555
|
+
`without it.`;
|
|
556
|
+
}
|
|
557
|
+
/** `srt-win` exit code for a `seclogon_disabled` launch failure. */
|
|
558
|
+
const SRT_WIN_EXIT_SECLOGON_DISABLED = 18;
|
|
559
|
+
/**
|
|
560
|
+
* The typed `seclogon_disabled` error for an `srt-win` launch result, if it
|
|
561
|
+
* is one. Gated on the exit code first: the child's own stderr could match.
|
|
562
|
+
*/
|
|
563
|
+
function seclogonDisabledFrom(r, subcommand) {
|
|
564
|
+
if (r.status !== SRT_WIN_EXIT_SECLOGON_DISABLED)
|
|
565
|
+
return undefined;
|
|
566
|
+
const e = parseSrtWinLaunchError(r.stderr, subcommand);
|
|
567
|
+
return e?.code === 'seclogon_disabled'
|
|
568
|
+
? e
|
|
569
|
+
: undefined;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Query sandbox-user provisioning state AND the WFP filter set in a
|
|
573
|
+
* single `srt-win status` spawn — the same objects
|
|
574
|
+
* {@link getWindowsSandboxUserStatus} and {@link getWindowsWfpStatus}
|
|
575
|
+
* return, without paying two subprocess round-trips. Does not require
|
|
576
|
+
* elevation (WFP degrades to `cannot-read` for a non-elevated caller;
|
|
577
|
+
* see {@link WindowsWfpStatusResult.hint}).
|
|
578
|
+
*/
|
|
579
|
+
export function checkWindowsSandboxStatus(opts = {}) {
|
|
580
|
+
const args = ['status'];
|
|
581
|
+
if (opts.sublayerGuid)
|
|
582
|
+
args.push('--sublayer-guid', opts.sublayerGuid);
|
|
583
|
+
const raw = runSrtWinJson(args, {
|
|
584
|
+
srtWin: opts.srtWin,
|
|
585
|
+
});
|
|
586
|
+
return { user: mapUserStatus(raw.user), wfp: mapWfpStatus(raw.wfp) };
|
|
587
|
+
}
|
|
588
|
+
/** Async twin of {@link checkWindowsSandboxStatus}. */
|
|
589
|
+
export async function checkWindowsSandboxStatusAsync(opts = {}) {
|
|
590
|
+
const args = ['status'];
|
|
591
|
+
if (opts.sublayerGuid)
|
|
592
|
+
args.push('--sublayer-guid', opts.sublayerGuid);
|
|
593
|
+
const raw = await runSrtWinJsonAsync(args, { srtWin: opts.srtWin });
|
|
594
|
+
return { user: mapUserStatus(raw.user), wfp: mapWfpStatus(raw.wfp) };
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Query the WFP filter set under the given sublayer via live BFE
|
|
598
|
+
* enumeration. `installed` means at least one srt-win-tagged
|
|
599
|
+
* `block-user` filter is present. Detection is **tag-based**
|
|
600
|
+
* (providerData JSON); filters installed by other tooling without the
|
|
601
|
+
* tag are not counted.
|
|
602
|
+
*
|
|
603
|
+
* BFE enumeration is admin-gated — a non-elevated caller gets
|
|
604
|
+
* `state:"cannot-read"` with a `hint` (not an error). The
|
|
605
|
+
* non-elevated readiness check is {@link verifyWindowsWfpEgress}.
|
|
606
|
+
*
|
|
607
|
+
* Prefer {@link getWindowsWfpStatusAsync}; this variant
|
|
608
|
+
* `spawnSync`-blocks the event loop.
|
|
609
|
+
*/
|
|
610
|
+
export function getWindowsWfpStatus(opts = {}) {
|
|
611
|
+
return mapWfpStatus(runSrtWinJson(wfpStatusArgs(opts.sublayerGuid), {
|
|
612
|
+
srtWin: opts.srtWin,
|
|
613
|
+
}));
|
|
614
|
+
}
|
|
615
|
+
/** Async twin of {@link getWindowsWfpStatus}. */
|
|
616
|
+
export async function getWindowsWfpStatusAsync(opts = {}) {
|
|
617
|
+
return mapWfpStatus(await runSrtWinJsonAsync(wfpStatusArgs(opts.sublayerGuid), {
|
|
618
|
+
srtWin: opts.srtWin,
|
|
619
|
+
}));
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Install flags for `ctx`. `force` only when the install replaces a
|
|
623
|
+
* set that is in place with another configuration: it refuses that
|
|
624
|
+
* without `--force` (exit 13), and needs none otherwise.
|
|
625
|
+
*/
|
|
626
|
+
function windowsInstallFlags(ctx, force) {
|
|
627
|
+
const [lo, hi] = ctx.proxyPortRange ?? DEFAULT_WINDOWS_PROXY_PORT_RANGE;
|
|
628
|
+
const [defLo, defHi] = DEFAULT_WINDOWS_PROXY_PORT_RANGE;
|
|
629
|
+
return ((ctx.sublayerGuid ? ` --sublayer-guid ${ctx.sublayerGuid}` : '') +
|
|
630
|
+
(lo !== defLo || hi !== defHi ? ` --proxy-port-range ${lo}-${hi}` : '') +
|
|
631
|
+
(ctx.sandboxUser && ctx.sandboxUser !== 'srt-sandbox'
|
|
632
|
+
? ` --sandbox-user ${ctx.sandboxUser}`
|
|
633
|
+
: '') +
|
|
634
|
+
(ctx.allowLoopback ? ` --allow-loopback` : '') +
|
|
635
|
+
(force ? ` --force` : ''));
|
|
636
|
+
}
|
|
637
|
+
function windowsInstallCommand(ctx, force) {
|
|
638
|
+
return `npx sandbox-runtime windows-install` + windowsInstallFlags(ctx, force);
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Whether a failed `srt-win` run is an `srt-win` that predates
|
|
642
|
+
* `--allow-loopback` rejecting the argument.
|
|
643
|
+
*/
|
|
644
|
+
function rejectsAllowLoopback(r) {
|
|
645
|
+
return /unexpected argument '--allow-loopback'/.test(r.stderr);
|
|
646
|
+
}
|
|
647
|
+
function srtWinTooOld(stderr) {
|
|
648
|
+
return new WindowsSandboxError('srt_win_too_old', `srt-win is too old for network.allowLocalBinding: it does not know ` +
|
|
649
|
+
`\`--allow-loopback\`. Update srt-win (and re-run the install with ` +
|
|
650
|
+
`it), or unset network.allowLocalBinding. (${stderr.trim()})`);
|
|
651
|
+
}
|
|
652
|
+
const WFP_RESIDUAL_TEXT = {
|
|
653
|
+
'anonymous-egress': 'a connect to an off-loopback destination made while impersonating ' +
|
|
654
|
+
'the anonymous token is not blocked (no filter is keyed on that ' +
|
|
655
|
+
'token; a sandboxed process that puts it on a thread before ' +
|
|
656
|
+
'creating a socket is not fenced)',
|
|
657
|
+
'anonymous-loopback': 'a connect to a loopback destination made while impersonating the ' +
|
|
658
|
+
'anonymous token is not blocked (local listeners outside the proxy ' +
|
|
659
|
+
'port range are reachable that way)',
|
|
660
|
+
'deny-only-user-sid': 'a connect made under a copy of the sandbox token whose user SID is ' +
|
|
661
|
+
'deny-only is not blocked (the filters cannot match that token)',
|
|
662
|
+
'lowered-integrity-unprobed': 'a lowered-integrity copy of the sandbox token could not be set up on ' +
|
|
663
|
+
'this machine, so no connect under it was observed',
|
|
664
|
+
};
|
|
665
|
+
function isWfpResidual(s) {
|
|
666
|
+
return Object.prototype.hasOwnProperty.call(WFP_RESIDUAL_TEXT, s);
|
|
667
|
+
}
|
|
668
|
+
/**
|
|
669
|
+
* Turn one `srt-win wfp verify` run into a result or a typed error
|
|
670
|
+
* (pure). An attempt the fence must refuse that got through rejects
|
|
671
|
+
* whatever the exit code says; a residual never throws.
|
|
672
|
+
*/
|
|
673
|
+
export function interpretWindowsWfpVerify(r, install = {}) {
|
|
674
|
+
let raw;
|
|
675
|
+
try {
|
|
676
|
+
raw = JSON.parse(r.stdout);
|
|
677
|
+
}
|
|
678
|
+
catch {
|
|
679
|
+
if (rejectsAllowLoopback(r))
|
|
680
|
+
throw srtWinTooOld(r.stderr);
|
|
681
|
+
// Timeout is thrown as `srt_win_timeout` by `runSrtWinAsync` before this
|
|
682
|
+
// parse; status=null here means an external signal.
|
|
683
|
+
throw new WindowsSandboxError('wfp_verify_unparseable', `WFP egress fence could not be verified — \`srt-win wfp ` +
|
|
684
|
+
`verify\` exited ${r.status}` +
|
|
685
|
+
(r.signal ? ` (signal ${r.signal})` : '') +
|
|
686
|
+
` with unparseable output ${JSON.stringify(r.stdout)} ` +
|
|
687
|
+
`(stderr: ${JSON.stringify(r.stderr)})`);
|
|
688
|
+
}
|
|
689
|
+
const outcome = (v) => (v ?? 'skipped');
|
|
690
|
+
const probes = {
|
|
691
|
+
plain: outcome(raw.egress_probe),
|
|
692
|
+
anonymous: outcome(raw.anonymous_probe),
|
|
693
|
+
anonymousLoopback: outcome(raw.anonymous_loopback_probe),
|
|
694
|
+
denyOnly: outcome(raw.deny_only_probe),
|
|
695
|
+
lowIntegrity: outcome(raw.low_integrity_probe),
|
|
696
|
+
lowIntegrityLoopback: outcome(raw.low_integrity_loopback_probe),
|
|
697
|
+
untrustedIntegrity: outcome(raw.untrusted_integrity_probe),
|
|
698
|
+
untrustedIntegrityLoopback: outcome(raw.untrusted_integrity_loopback_probe),
|
|
699
|
+
...(raw.allow_loopback && {
|
|
700
|
+
openLoopback: outcome(raw.open_loopback_probe),
|
|
701
|
+
}),
|
|
702
|
+
};
|
|
703
|
+
const offLoopback = raw.anonymous_target ?? 'no target';
|
|
704
|
+
// Where the attempts the fence must refuse on loopback went: the
|
|
705
|
+
// reserved port when loopback is open, else the listener.
|
|
706
|
+
const blockedTarget = raw.egress_target ?? raw.target;
|
|
707
|
+
const summary = `plain=${probes.plain} (${blockedTarget}), ` +
|
|
708
|
+
`anonymous=${probes.anonymous} (${offLoopback}), ` +
|
|
709
|
+
`anonymous-loopback=${probes.anonymousLoopback}, ` +
|
|
710
|
+
`deny-only=${probes.denyOnly}, ` +
|
|
711
|
+
`low-integrity=${probes.lowIntegrity} (${offLoopback}), ` +
|
|
712
|
+
`low-integrity-loopback=${probes.lowIntegrityLoopback}, ` +
|
|
713
|
+
`untrusted-integrity=${probes.untrustedIntegrity} (${offLoopback}), ` +
|
|
714
|
+
`untrusted-integrity-loopback=${probes.untrustedIntegrityLoopback}` +
|
|
715
|
+
(raw.allow_loopback
|
|
716
|
+
? `, open-loopback=${probes.openLoopback} (${raw.target})`
|
|
717
|
+
: '');
|
|
718
|
+
// The reinstall that suits THIS session: its loopback mode, and the
|
|
719
|
+
// install options it was configured with.
|
|
720
|
+
const session = {
|
|
721
|
+
...install,
|
|
722
|
+
allowLoopback: raw.allow_loopback ?? install.allowLoopback,
|
|
723
|
+
};
|
|
724
|
+
if (r.status === 19 || raw.allow_loopback_mismatch) {
|
|
725
|
+
throw new WindowsSandboxError('wfp_loopback_mismatch', `WFP egress fence does not match network.allowLocalBinding — ` +
|
|
726
|
+
(raw.hint ?? 'the installed filter set has a different loopback mode') +
|
|
727
|
+
`. Through this package: \`` +
|
|
728
|
+
windowsInstallCommand(session, true) +
|
|
729
|
+
`\`.`);
|
|
730
|
+
}
|
|
731
|
+
// The attempts the fence must refuse. One getting through rejects
|
|
732
|
+
// whatever the exit code says.
|
|
733
|
+
const lowIl = 'the sandbox user under a low-integrity copy of its token';
|
|
734
|
+
const untrustedIl = 'the sandbox user under an untrusted-integrity copy of its token';
|
|
735
|
+
const which = [
|
|
736
|
+
[probes.plain, 'the sandbox user', blockedTarget],
|
|
737
|
+
[probes.lowIntegrity, lowIl, raw.anonymous_target],
|
|
738
|
+
[probes.lowIntegrityLoopback, lowIl, blockedTarget],
|
|
739
|
+
[probes.untrustedIntegrity, untrustedIl, raw.anonymous_target],
|
|
740
|
+
[probes.untrustedIntegrityLoopback, untrustedIl, blockedTarget],
|
|
741
|
+
]
|
|
742
|
+
.filter(([o]) => o === 'connected' || o === 'refused')
|
|
743
|
+
.map(([, who, tgt]) => `direct outbound from ${who} to ${tgt}`);
|
|
744
|
+
// With loopback open nothing listens at the plain attempt's port: no
|
|
745
|
+
// answer in time is no refusal by the filter either.
|
|
746
|
+
if (raw.allow_loopback && probes.plain === 'unreachable') {
|
|
747
|
+
which.push(`direct outbound from the sandbox user to ${blockedTarget} (no ` +
|
|
748
|
+
`answer where the filter must refuse at once)`);
|
|
749
|
+
}
|
|
750
|
+
if (r.status === 3 || which.length > 0) {
|
|
751
|
+
throw new WindowsSandboxError('wfp_fence_inactive', `WFP egress fence is not active — ` +
|
|
752
|
+
`${which.join(' and ') || 'a direct outbound connect'} was not ` +
|
|
753
|
+
`blocked [${summary}]. Re-run \`` +
|
|
754
|
+
windowsInstallCommand(session, false) +
|
|
755
|
+
`\` (one UAC prompt). (${r.stderr})`);
|
|
756
|
+
}
|
|
757
|
+
if (r.status !== 0) {
|
|
758
|
+
throw new WindowsSandboxError('wfp_verify_inconclusive', `WFP egress fence could not be verified — probe to ` +
|
|
759
|
+
`${blockedTarget} was '${raw.egress_probe}' (exit ` +
|
|
760
|
+
`${r.status}) [${summary}]. The fence may be absent. Re-run ` +
|
|
761
|
+
`\`srt-win install\`. (${r.stderr})`);
|
|
762
|
+
}
|
|
763
|
+
// Exit 0 alone is not a pass: the plain attempt must say `blocked`.
|
|
764
|
+
if (raw.egress_probe !== 'blocked') {
|
|
765
|
+
throw new WindowsSandboxError('wfp_verify_inconclusive', `WFP egress fence could not be verified — \`srt-win wfp verify\` ` +
|
|
766
|
+
`exited 0 but reported the plain attempt as ` +
|
|
767
|
+
`'${raw.egress_probe ?? 'missing'}' [${summary}]. (${r.stderr})`);
|
|
768
|
+
}
|
|
769
|
+
const residuals = (raw.residuals ?? []).filter(isWfpResidual);
|
|
770
|
+
const warnings = residuals.map(x => `WFP egress fence residual '${x}': ${WFP_RESIDUAL_TEXT[x]}`);
|
|
771
|
+
if (probes.lowIntegrity === 'skipped' ||
|
|
772
|
+
probes.untrustedIntegrity === 'skipped') {
|
|
773
|
+
warnings.push(`WFP egress fence: the off-loopback lowered-integrity attempts ` +
|
|
774
|
+
`were skipped (no off-loopback address on this machine, or an ` +
|
|
775
|
+
`srt-win that does not make them)`);
|
|
776
|
+
}
|
|
777
|
+
// A pass says direct egress is blocked. With loopback open that is
|
|
778
|
+
// not the whole story, so the result says the rest.
|
|
779
|
+
if (raw.allow_loopback)
|
|
780
|
+
warnings.push(WINDOWS_ALLOW_LOOPBACK_EFFECT);
|
|
781
|
+
return { target: raw.target, stderr: r.stderr, probes, residuals, warnings };
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Behavioral proof that the WFP egress fence is active for the
|
|
785
|
+
* sandbox user. Binds a local listener on an ephemeral loopback port
|
|
786
|
+
* outside the WFP loopback-permit range, then spawns `srt-win
|
|
787
|
+
* runner` as the sandbox user (via `CreateProcessWithLogonW`) to
|
|
788
|
+
* attempt direct TCP connects, one per token shape a sandboxed
|
|
789
|
+
* process can present. The WFP block-user filter
|
|
790
|
+
* fires at `ALE_AUTH_CONNECT` — before any packet leaves — so an
|
|
791
|
+
* active fence yields WSAEACCES immediately and a missing fence lets
|
|
792
|
+
* the connect through (the kernel completes the handshake against
|
|
793
|
+
* the listening socket's backlog). The event loop stays live while
|
|
794
|
+
* `srt-win` runs. Does not require elevation and does not depend on
|
|
795
|
+
* any external host.
|
|
796
|
+
*
|
|
797
|
+
* With `opts.allowLoopback` the connects that must be blocked go to
|
|
798
|
+
* {@link WINDOWS_LOOPBACK_PROBE_PORT}, where nothing listens and only
|
|
799
|
+
* the filter's refusal passes, and the listener is what `srt-win` must
|
|
800
|
+
* be able to reach.
|
|
801
|
+
*
|
|
802
|
+
* `initialize()` calls this once per session, so a stale install
|
|
803
|
+
* (sandbox user provisioned but filters since removed) fails closed
|
|
804
|
+
* at session start instead of running every exec with full egress.
|
|
805
|
+
*
|
|
806
|
+
* @param opts.target overrides the probe target (skips the local
|
|
807
|
+
* listener bind).
|
|
808
|
+
* @param opts.proxyPortRange the WFP loopback-permit range the
|
|
809
|
+
* listener must avoid. Default
|
|
810
|
+
* {@link DEFAULT_WINDOWS_PROXY_PORT_RANGE}.
|
|
811
|
+
* @param opts.allowLoopback the session's `network.allowLocalBinding`;
|
|
812
|
+
* `srt-win` compares it with the installed loopback mode.
|
|
813
|
+
* @param opts.sublayerGuid, opts.sandboxUser the session's install
|
|
814
|
+
* options, named in the reinstall command an error suggests.
|
|
815
|
+
* @param opts.anonymousEgress also make the off-loopback attempt under
|
|
816
|
+
* the anonymous token. It cannot change the result and can take
|
|
817
|
+
* seconds, so `initialize()` leaves it out; for diagnostics only.
|
|
818
|
+
* @param opts.writeRoots the session's write roots: the probe runs
|
|
819
|
+
* under the write-restricted token a command of the session gets.
|
|
820
|
+
* @throws on any outcome other than exit 0.
|
|
821
|
+
*/
|
|
822
|
+
export async function verifyWindowsWfpEgress(opts = {}) {
|
|
823
|
+
let target = opts.target;
|
|
824
|
+
let server;
|
|
825
|
+
if (!target) {
|
|
826
|
+
// Bind ephemeral; retry if it lands inside the WFP
|
|
827
|
+
// loopback-permit range (a port in-range would be PERMITted
|
|
828
|
+
// even with the fence active → false `connected`).
|
|
829
|
+
const [lo, hi] = opts.proxyPortRange ?? DEFAULT_WINDOWS_PROXY_PORT_RANGE;
|
|
830
|
+
for (let i = 0; i < 5; i++) {
|
|
831
|
+
// A connect that gets through is accepted while `srt-win` runs:
|
|
832
|
+
// drop it, and keep its errors from being uncaught.
|
|
833
|
+
const s = net.createServer(c => c.on('error', () => { }).destroy());
|
|
834
|
+
s.listen(0, '127.0.0.1');
|
|
835
|
+
await once(s, 'listening');
|
|
836
|
+
const p = s.address().port;
|
|
837
|
+
if (p < lo || p > hi) {
|
|
838
|
+
server = s;
|
|
839
|
+
target = `127.0.0.1:${p}`;
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
s.close();
|
|
843
|
+
}
|
|
844
|
+
if (!target) {
|
|
845
|
+
throw new WindowsSandboxError('wfp_verify_bind_failed', `verifyWindowsWfpEgress: could not bind a loopback ` +
|
|
846
|
+
`listener outside the WFP permit range [${lo},${hi}] in ` +
|
|
847
|
+
`5 attempts`);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
const args = ['wfp', 'verify', '--target', target];
|
|
851
|
+
if (opts.anonymousEgress)
|
|
852
|
+
args.push('--anonymous-egress');
|
|
853
|
+
if (opts.allowLoopback)
|
|
854
|
+
args.push('--allow-loopback');
|
|
855
|
+
// Under the token a command of the session gets.
|
|
856
|
+
args.push('--write-restricted-token');
|
|
857
|
+
for (const r of opts.writeRoots ?? [])
|
|
858
|
+
args.push('--write-root', r);
|
|
859
|
+
try {
|
|
860
|
+
// 30s: first call after install may create the sandbox user's
|
|
861
|
+
// profile (LOGON_WITH_PROFILE) via CreateProcessWithLogonW, and
|
|
862
|
+
// the runner bounds each of its connects (probe.rs).
|
|
863
|
+
const r = await runSrtWinAsync(args, {
|
|
864
|
+
timeoutMs: 30000,
|
|
865
|
+
srtWin: opts.srtWin,
|
|
866
|
+
});
|
|
867
|
+
logForDebugging(`[Sandbox Windows] wfp verify exit=${r.status}: ${r.stderr || r.stdout}`);
|
|
868
|
+
// Exit 18 comes with empty stdout: report the typed failure before
|
|
869
|
+
// the output is parsed.
|
|
870
|
+
const seclogon = seclogonDisabledFrom(r, 'wfp');
|
|
871
|
+
if (seclogon)
|
|
872
|
+
throw seclogon;
|
|
873
|
+
const result = interpretWindowsWfpVerify(r, {
|
|
874
|
+
sublayerGuid: opts.sublayerGuid,
|
|
875
|
+
proxyPortRange: opts.proxyPortRange,
|
|
876
|
+
sandboxUser: opts.sandboxUser,
|
|
877
|
+
allowLoopback: opts.allowLoopback,
|
|
878
|
+
});
|
|
879
|
+
for (const w of result.warnings) {
|
|
880
|
+
logForDebugging(`[Sandbox Windows] ${w}`, { level: 'warn' });
|
|
881
|
+
}
|
|
882
|
+
return result;
|
|
883
|
+
}
|
|
884
|
+
finally {
|
|
885
|
+
server?.close();
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Query the sandbox user account's provisioning state. Each field
|
|
890
|
+
* is independently observed so a half-provisioned install (e.g.
|
|
891
|
+
* user exists but credential file missing) is distinguishable.
|
|
892
|
+
* Does not require elevation.
|
|
893
|
+
*
|
|
894
|
+
* Prefer {@link getWindowsSandboxUserStatusAsync}; this variant
|
|
895
|
+
* `spawnSync`-blocks the event loop.
|
|
896
|
+
*/
|
|
897
|
+
export function getWindowsSandboxUserStatus(opts = {}) {
|
|
898
|
+
return mapUserStatus(runSrtWinJson(['user', 'status'], { srtWin: opts.srtWin }));
|
|
899
|
+
}
|
|
900
|
+
/** Async twin of {@link getWindowsSandboxUserStatus}. */
|
|
901
|
+
export async function getWindowsSandboxUserStatusAsync(opts = {}) {
|
|
902
|
+
return mapUserStatus(await runSrtWinJsonAsync(['user', 'status'], {
|
|
903
|
+
srtWin: opts.srtWin,
|
|
904
|
+
}));
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Read back the persistent MITM CA the sandbox was installed with
|
|
908
|
+
* (via `srt-win user trust-ca` / {@link windowsTrustCa}).
|
|
909
|
+
* Returns `null` when no CA was installed. The PEM is what `srt-win
|
|
910
|
+
* user status` reconstructs from the DER recorded in the registry.
|
|
911
|
+
*
|
|
912
|
+
* On Windows, `tlsTerminate` requires this CA to be present in the
|
|
913
|
+
* sandbox user's `CurrentUser\Root` (schannel-level trust is an
|
|
914
|
+
* install-time concern, not per-session); the host calls this from
|
|
915
|
+
* `initialize()` to fail early with an actionable message when it
|
|
916
|
+
* isn't.
|
|
917
|
+
*
|
|
918
|
+
* @param status pass an already-fetched
|
|
919
|
+
* {@link getWindowsSandboxUserStatus} result to avoid a second
|
|
920
|
+
* `srt-win user status` spawn.
|
|
921
|
+
*/
|
|
922
|
+
export function getWindowsSandboxCaCert(status, opts = {}) {
|
|
923
|
+
const u = status ?? getWindowsSandboxUserStatus(opts);
|
|
924
|
+
if (!u.caCertThumb || !u.caCertPem)
|
|
925
|
+
return null;
|
|
926
|
+
return { pem: u.caCertPem, thumb: u.caCertThumb };
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* Install (or replace) the MITM CA in the **sandbox user's**
|
|
930
|
+
* `CurrentUser\Root` and record it in the registry (so
|
|
931
|
+
* {@link getWindowsSandboxCaCert} surfaces its thumbprint + PEM).
|
|
932
|
+
* Thin wrapper around `srt-win user trust-ca <path>`. Does NOT
|
|
933
|
+
* require elevation. Persistent until {@link uninstallWindowsSandbox}
|
|
934
|
+
* deletes the sandbox user's profile.
|
|
935
|
+
*
|
|
936
|
+
* The CA has a separate lifecycle from {@link installWindowsSandbox}
|
|
937
|
+
* — install provisions the account/filters and never touches the CA;
|
|
938
|
+
* call this AFTER install when `tlsTerminate` will be used.
|
|
939
|
+
*
|
|
940
|
+
* @throws when the sandbox user is not provisioned, the file is not a
|
|
941
|
+
* parseable X.509 certificate, or the registry write into the
|
|
942
|
+
* sandbox user's hive fails.
|
|
943
|
+
*/
|
|
944
|
+
export function windowsTrustCa(caCertPath, opts = {}) {
|
|
945
|
+
// 60s: first call may create the sandbox user's profile
|
|
946
|
+
// (LOGON_WITH_PROFILE) via the one-shot CreateProcessWithLogonW.
|
|
947
|
+
const r = runSrtWin(['user', 'trust-ca', caCertPath], {
|
|
948
|
+
timeoutMs: 60000,
|
|
949
|
+
srtWin: opts.srtWin,
|
|
950
|
+
});
|
|
951
|
+
checkTrustCaResult(caCertPath, r);
|
|
952
|
+
}
|
|
953
|
+
/** Async twin of {@link windowsTrustCa} — identical argv and errors. */
|
|
954
|
+
export async function windowsTrustCaAsync(caCertPath, opts = {}) {
|
|
955
|
+
const r = await runSrtWinAsync(['user', 'trust-ca', caCertPath], {
|
|
956
|
+
timeoutMs: 60000,
|
|
957
|
+
srtWin: opts.srtWin,
|
|
958
|
+
});
|
|
959
|
+
checkTrustCaResult(caCertPath, r);
|
|
960
|
+
}
|
|
961
|
+
function checkTrustCaResult(caCertPath, r) {
|
|
962
|
+
logForDebugging(`[Sandbox Windows] user trust-ca exit=${r.status}: ${r.stderr || r.stdout}`);
|
|
963
|
+
const seclogon = seclogonDisabledFrom(r, 'user');
|
|
964
|
+
if (seclogon)
|
|
965
|
+
throw seclogon;
|
|
966
|
+
if (r.status !== 0) {
|
|
967
|
+
throw new WindowsSandboxError('trust_ca_failed', `srt-win user trust-ca '${caCertPath}' failed (exit ` +
|
|
968
|
+
`${r.status}): ${r.stderr || r.stdout}`);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* The machine-wide state directory `%ProgramData%\sandbox-runtime`,
|
|
973
|
+
* mirroring `srt-win`'s `state_db::machine_store_dir()` exactly.
|
|
974
|
+
* Since the registry move it hosts only the managed CA key material
|
|
975
|
+
* (`ca\`), which must stay on the filesystem because the broker's
|
|
976
|
+
* unelevated generate-if-absent self-heal rewrites it; the
|
|
977
|
+
* credential, marker, and CA record live in
|
|
978
|
+
* `HKLM\SOFTWARE\sandbox-runtime`. Created and ACL'd by the
|
|
979
|
+
* elevated `srt-win install`: Administrators own it, BUILTIN\Users
|
|
980
|
+
* have modify, and the sandbox group carries an explicit
|
|
981
|
+
* `(OI)(CI)` DENY.
|
|
982
|
+
*/
|
|
983
|
+
export function windowsStateDir() {
|
|
984
|
+
const programData = process.env.ProgramData;
|
|
985
|
+
if (!programData)
|
|
986
|
+
throw new Error('ProgramData is not set');
|
|
987
|
+
return path.win32.join(programData, 'sandbox-runtime');
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Generate-if-absent a persistent MITM CA under
|
|
991
|
+
* `{windowsStateDir()}\ca\` and ensure it is trusted in
|
|
992
|
+
* the sandbox user's `CurrentUser\Root`. Idempotent and unelevated:
|
|
993
|
+
* a second call with a valid on-disk pair returns it with
|
|
994
|
+
* `generated: false`. On the machine store the `ca\` subdir is
|
|
995
|
+
* user-writable by design (BUILTIN\Users modify, inherited from the
|
|
996
|
+
* install-ACL'd store), so this self-heal keeps working without
|
|
997
|
+
* admin rights for every user of the machine.
|
|
998
|
+
*
|
|
999
|
+
* **Storage.** The pair lives in a single `ca.json = {certPem,
|
|
1000
|
+
* keyPem}` written atomically (tmp+rename) and re-read after every
|
|
1001
|
+
* write, so it is always a matched pair and concurrent brokers
|
|
1002
|
+
* converge on whichever rename landed last. `cert.pem`/`key.pem` are
|
|
1003
|
+
* derived copies for diagnostic tooling; `ca.json` is the source of
|
|
1004
|
+
* truth.
|
|
1005
|
+
*
|
|
1006
|
+
* **Key custody is broker-side.** The MITM proxy runs as the real
|
|
1007
|
+
* user, so the sandbox user never needs to read the key. The `ca/`
|
|
1008
|
+
* subdirectory inherits the machine store's `(OI)(CI)` DACL, which
|
|
1009
|
+
* carries an explicit `sandbox-runtime-users` DENY (see
|
|
1010
|
+
* {@link windowsStateDir}), so `ca.json`/`key.pem` are unreadable
|
|
1011
|
+
* from inside the sandbox with no per-file ACL work here. The key
|
|
1012
|
+
* IS readable (and replaceable) by other REAL local users — an
|
|
1013
|
+
* accepted trade-off of the shared store: the sandbox account is
|
|
1014
|
+
* network-confined by SID-keyed WFP filters regardless of who
|
|
1015
|
+
* spawns it. The certificate reaches the sandboxed child via the
|
|
1016
|
+
* schannel registry write ({@link windowsTrustCa}) and the
|
|
1017
|
+
* trust-bundle env vars — never via these files.
|
|
1018
|
+
*
|
|
1019
|
+
* `SandboxManager.initialize()` calls this on Windows when
|
|
1020
|
+
* `tlsTerminate` is enabled without an explicit
|
|
1021
|
+
* `caCertPath`/`caKeyPath`, then feeds the returned PEMs to
|
|
1022
|
+
* `createMitmCA` — so an embedder gets a stable CA across restarts
|
|
1023
|
+
* without orchestrating generation, storage, or trust itself. Explicit
|
|
1024
|
+
* paths in config bypass this entirely.
|
|
1025
|
+
*
|
|
1026
|
+
* @param opts.force regenerate even if a valid pair is on disk.
|
|
1027
|
+
* @param opts.status pass an already-fetched
|
|
1028
|
+
* {@link getWindowsSandboxUserStatus} result to skip the
|
|
1029
|
+
* provisioning check and avoid re-spawning `srt-win user status`
|
|
1030
|
+
* for the trust reconcile.
|
|
1031
|
+
* @param opts.dir override the CA directory (tests). Default
|
|
1032
|
+
* `windowsStateDir()/ca`.
|
|
1033
|
+
* @param opts.regenerateWithinDays regenerate if `notAfter` is within
|
|
1034
|
+
* this many days. Default 30.
|
|
1035
|
+
* @throws when the sandbox user is not provisioned (run
|
|
1036
|
+
* {@link installWindowsSandbox} first), or the CA directory cannot
|
|
1037
|
+
* be created.
|
|
1038
|
+
*/
|
|
1039
|
+
export async function ensurePersistentWindowsCa(opts = {}) {
|
|
1040
|
+
// Provisioning gate. The `ca/` subdirectory's whole custody story
|
|
1041
|
+
// depends on inheriting the state-DB dir's stamped DACL — which
|
|
1042
|
+
// `srt-win install` creates. Never mkdir the state dir here.
|
|
1043
|
+
const status = opts.status ??
|
|
1044
|
+
(await getWindowsSandboxUserStatusAsync({ srtWin: opts.srtWin }));
|
|
1045
|
+
if (!status.provisioned || !status.credPresent) {
|
|
1046
|
+
throw new Error(`ensurePersistentWindowsCa: sandbox user is not provisioned ` +
|
|
1047
|
+
`(user=${status.provisioned}, cred=${status.credPresent}). ` +
|
|
1048
|
+
`Run \`npx sandbox-runtime windows-install\` first.`);
|
|
1049
|
+
}
|
|
1050
|
+
const stateDir = opts.dir ? undefined : windowsStateDir();
|
|
1051
|
+
if (stateDir && !fs.existsSync(stateDir)) {
|
|
1052
|
+
throw new Error(`ensurePersistentWindowsCa: state directory ${stateDir} does not ` +
|
|
1053
|
+
`exist. Run \`npx sandbox-runtime windows-install\` first.`);
|
|
1054
|
+
}
|
|
1055
|
+
const dir = opts.dir ?? path.win32.join(stateDir, 'ca');
|
|
1056
|
+
const jsonPath = path.join(dir, 'ca.json');
|
|
1057
|
+
const certPath = path.join(dir, 'cert.pem');
|
|
1058
|
+
const keyPath = path.join(dir, 'key.pem');
|
|
1059
|
+
const horizonMs = (opts.regenerateWithinDays ?? 30) * 24 * 60 * 60 * 1000;
|
|
1060
|
+
// tmp+rename atomic write. Node's `renameSync` on Windows is
|
|
1061
|
+
// libuv's `MoveFileExW(…, MOVEFILE_REPLACE_EXISTING)` — an atomic
|
|
1062
|
+
// same-volume replace — so `p` is either its previous content or
|
|
1063
|
+
// the full new content, never partial.
|
|
1064
|
+
const atomicWrite = (p, data) => {
|
|
1065
|
+
const tmp = `${p}.tmp.${process.pid}`;
|
|
1066
|
+
fs.writeFileSync(tmp, data);
|
|
1067
|
+
fs.renameSync(tmp, p);
|
|
1068
|
+
};
|
|
1069
|
+
// Shared return path: write the derived cert.pem/key.pem siblings
|
|
1070
|
+
// (tooling-only — trust-ca never reads them), reconcile trust, and
|
|
1071
|
+
// assemble the result. Trust is idempotent and ADDITIVE: `srt-win
|
|
1072
|
+
// user trust-ca` writes a per-thumbprint registry key (a rotation
|
|
1073
|
+
// adds the new cert, prior ones stay trusted); the state-DB
|
|
1074
|
+
// `ca_cert` column tracks the latest.
|
|
1075
|
+
const finish = async (certPem, keyPem, thumbprint, generated) => {
|
|
1076
|
+
atomicWrite(certPath, certPem);
|
|
1077
|
+
atomicWrite(keyPath, keyPem);
|
|
1078
|
+
const trusted = generated || status.caCertThumb !== thumbprint;
|
|
1079
|
+
if (trusted) {
|
|
1080
|
+
// Trust from a per-call unique temp, never a shared mutable
|
|
1081
|
+
// path — a concurrent broker's write to `cert.pem` could
|
|
1082
|
+
// otherwise swap the bytes between our write and `srt-win user
|
|
1083
|
+
// trust-ca`'s read, leaving the registry trusting a different
|
|
1084
|
+
// cert than this session's proxy signs with.
|
|
1085
|
+
const t = path.join(dir, `.trust.${process.pid}.${Date.now()}.pem`);
|
|
1086
|
+
fs.writeFileSync(t, certPem);
|
|
1087
|
+
try {
|
|
1088
|
+
await windowsTrustCaAsync(t, { srtWin: opts.srtWin });
|
|
1089
|
+
}
|
|
1090
|
+
finally {
|
|
1091
|
+
fs.rmSync(t, { force: true });
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
logForDebugging(`[Sandbox Windows] persistent CA ` +
|
|
1095
|
+
`${generated ? 'generated' : 'reused'} (thumb=${thumbprint}` +
|
|
1096
|
+
`${trusted && !generated ? ', trust reconciled' : ''})`);
|
|
1097
|
+
return {
|
|
1098
|
+
certPem,
|
|
1099
|
+
keyPem,
|
|
1100
|
+
certPath,
|
|
1101
|
+
keyPath,
|
|
1102
|
+
thumbprint,
|
|
1103
|
+
generated,
|
|
1104
|
+
trusted,
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
// Read+validate helper. Any read/parse/validate failure returns
|
|
1108
|
+
// undefined (never throws) so a corrupt on-disk pair is not an
|
|
1109
|
+
// error the embedder has to handle.
|
|
1110
|
+
const readValid = () => {
|
|
1111
|
+
let stored;
|
|
1112
|
+
try {
|
|
1113
|
+
stored = JSON.parse(fs.readFileSync(jsonPath, 'utf8'));
|
|
1114
|
+
}
|
|
1115
|
+
catch (err) {
|
|
1116
|
+
logForDebugging(`[Sandbox Windows] persistent CA ca.json unreadable ` +
|
|
1117
|
+
`(${err.message})`, { level: 'warn' });
|
|
1118
|
+
return undefined;
|
|
1119
|
+
}
|
|
1120
|
+
if (typeof stored.certPem !== 'string' || typeof stored.keyPem !== 'string')
|
|
1121
|
+
return undefined;
|
|
1122
|
+
const v = validateCaPair(stored.certPem, stored.keyPem);
|
|
1123
|
+
if (!v.ok) {
|
|
1124
|
+
logForDebugging(`[Sandbox Windows] persistent CA invalid (${v.reason})`, {
|
|
1125
|
+
level: 'warn',
|
|
1126
|
+
});
|
|
1127
|
+
return undefined;
|
|
1128
|
+
}
|
|
1129
|
+
return {
|
|
1130
|
+
certPem: stored.certPem,
|
|
1131
|
+
keyPem: stored.keyPem,
|
|
1132
|
+
thumbprint: v.thumbprint,
|
|
1133
|
+
notAfter: v.notAfter,
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
// Reuse when ca.json exists, validates, and isn't expiring inside
|
|
1137
|
+
// the horizon.
|
|
1138
|
+
if (!opts.force) {
|
|
1139
|
+
const on = readValid();
|
|
1140
|
+
if (on && on.notAfter.getTime() - Date.now() > horizonMs) {
|
|
1141
|
+
return await finish(on.certPem, on.keyPem, on.thumbprint, false);
|
|
1142
|
+
}
|
|
1143
|
+
if (on) {
|
|
1144
|
+
logForDebugging(`[Sandbox Windows] persistent CA expiring ` +
|
|
1145
|
+
`${on.notAfter.toISOString()}; regenerating`, { level: 'warn' });
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
// Generate. `ca/` (not the state dir) is mkdir'd here so it
|
|
1149
|
+
// inherits the parent's (OI)(CI) DACL. After the atomic write,
|
|
1150
|
+
// RE-READ ca.json and use that content: a concurrent broker's
|
|
1151
|
+
// rename may have won, and returning our own PEMs would diverge
|
|
1152
|
+
// from disk — the re-read makes every racer converge.
|
|
1153
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
1154
|
+
// Best-effort sweep of stale `*.tmp.*` / `.trust.*` files from
|
|
1155
|
+
// crashed prior brokers.
|
|
1156
|
+
try {
|
|
1157
|
+
const cutoff = Date.now() - 5 * 60 * 1000;
|
|
1158
|
+
for (const f of fs.readdirSync(dir)) {
|
|
1159
|
+
if (!f.includes('.tmp.') && !f.startsWith('.trust.'))
|
|
1160
|
+
continue;
|
|
1161
|
+
const p = path.join(dir, f);
|
|
1162
|
+
if (fs.statSync(p).mtimeMs < cutoff)
|
|
1163
|
+
fs.rmSync(p, { force: true });
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
catch {
|
|
1167
|
+
// sweep is best-effort; a leftover tmp is harmless.
|
|
1168
|
+
}
|
|
1169
|
+
const gen = generateCa({ cn: 'sandbox-runtime persistent CA' });
|
|
1170
|
+
atomicWrite(jsonPath, JSON.stringify({ certPem: gen.certPem, keyPem: gen.keyPem }));
|
|
1171
|
+
const on = readValid();
|
|
1172
|
+
// `on` can only be undefined if a concurrent broker overwrote with
|
|
1173
|
+
// an invalid pair (which the tmp+rename path can't produce) — so
|
|
1174
|
+
// treat as our own write having landed.
|
|
1175
|
+
const { certPem, keyPem, thumbprint } = on ?? {
|
|
1176
|
+
certPem: gen.certPem,
|
|
1177
|
+
keyPem: gen.keyPem,
|
|
1178
|
+
thumbprint: certThumbprint(gen.certPem),
|
|
1179
|
+
};
|
|
1180
|
+
return await finish(certPem, keyPem, thumbprint, true);
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Default spawn budget for the self-elevating install/uninstall. The Windows
|
|
1184
|
+
* UAC consent dialog auto-dismisses after ~2 minutes, so anything shorter
|
|
1185
|
+
* risks killing the subprocess while a legitimate approval is still pending
|
|
1186
|
+
* (elevation is not retracted when the parent dies, so a late approval after
|
|
1187
|
+
* we have timed out would half-complete).
|
|
1188
|
+
*/
|
|
1189
|
+
const INSTALL_TIMEOUT_MS = 120000;
|
|
1190
|
+
/** Effective spawn budget for the self-elevating install/uninstall. */
|
|
1191
|
+
function installTimeoutMs(opts) {
|
|
1192
|
+
return opts.timeoutMs ?? INSTALL_TIMEOUT_MS;
|
|
1193
|
+
}
|
|
1194
|
+
function installArgs(opts) {
|
|
1195
|
+
const args = ['install'];
|
|
1196
|
+
if (opts.sublayerGuid)
|
|
1197
|
+
args.push('--sublayer-guid', opts.sublayerGuid);
|
|
1198
|
+
if (opts.proxyPortRange) {
|
|
1199
|
+
args.push('--proxy-port-range', `${opts.proxyPortRange[0]}-${opts.proxyPortRange[1]}`);
|
|
1200
|
+
}
|
|
1201
|
+
if (opts.allowLoopback)
|
|
1202
|
+
args.push('--allow-loopback');
|
|
1203
|
+
if (opts.sandboxUser)
|
|
1204
|
+
args.push('--sandbox-user', opts.sandboxUser);
|
|
1205
|
+
if (opts.force)
|
|
1206
|
+
args.push('--force');
|
|
1207
|
+
return args;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* Re-throw a `srt_win_timeout` from the install spawn as the more
|
|
1211
|
+
* specific `install_timeout` (the UAC prompt is the usual cause).
|
|
1212
|
+
* Shared by the sync and async install variants.
|
|
1213
|
+
*/
|
|
1214
|
+
function remapInstallTimeout(e) {
|
|
1215
|
+
if (e instanceof WindowsSandboxError && e.code === 'srt_win_timeout') {
|
|
1216
|
+
throw new WindowsSandboxError('install_timeout', `srt-win install timed out — the UAC prompt may still be open. ` +
|
|
1217
|
+
`Re-run when ready to grant elevation. (${e.message})`);
|
|
1218
|
+
}
|
|
1219
|
+
throw e;
|
|
1220
|
+
}
|
|
1221
|
+
// srt-win install exit-code contract:
|
|
1222
|
+
// 0 ok
|
|
1223
|
+
// 10 user cancelled UAC elevation
|
|
1224
|
+
// 12 WFP install failed
|
|
1225
|
+
// 13 already installed with different config (use --force)
|
|
1226
|
+
// 14 sandbox-user provisioning failed
|
|
1227
|
+
// 17 ambient write-deny stamping failed
|
|
1228
|
+
// 1 other error (stderr has detail)
|
|
1229
|
+
// Throws on any failure code; the caller reads back state on 0/10.
|
|
1230
|
+
function throwOnInstallFailure(r) {
|
|
1231
|
+
logForDebugging(`[Sandbox Windows] install exit=${r.status}: ${r.stderr || r.stdout}`);
|
|
1232
|
+
if (r.status === 0 || r.status === 10)
|
|
1233
|
+
return;
|
|
1234
|
+
if (rejectsAllowLoopback(r))
|
|
1235
|
+
throw srtWinTooOld(r.stderr);
|
|
1236
|
+
const out = r.stderr || r.stdout;
|
|
1237
|
+
switch (r.status) {
|
|
1238
|
+
case 12:
|
|
1239
|
+
throw new WindowsSandboxError('install_wfp_failed', `srt-win install: WFP filter install failed: ${out}`);
|
|
1240
|
+
case 14:
|
|
1241
|
+
throw new WindowsSandboxError('install_user_failed', `srt-win install: sandbox user provisioning failed: ${out}`);
|
|
1242
|
+
case 13:
|
|
1243
|
+
throw new WindowsSandboxError('install_config_conflict', `srt-win install: filters already exist under this sublayer with ` +
|
|
1244
|
+
`a different port range, loopback mode or sandbox-user ` +
|
|
1245
|
+
`name. Pass ` +
|
|
1246
|
+
`{force: true} to replace, or pick a different sublayerGuid. ` +
|
|
1247
|
+
`Output: ${out}`);
|
|
1248
|
+
case 17:
|
|
1249
|
+
throw new WindowsSandboxError('install_ambient_failed', `srt-win install: ambient write-deny stamping failed (stock ` +
|
|
1250
|
+
`world-writable system dirs could not be deny-stamped for the ` +
|
|
1251
|
+
`sandbox user): ${out}`);
|
|
1252
|
+
default:
|
|
1253
|
+
throw new WindowsSandboxError('install_failed', `srt-win install failed (exit ${r.status}): ${out}`);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* One-shot install: provisions the `srt-sandbox` user account and
|
|
1258
|
+
* installs the user-SID-keyed WFP filter set — all in a single
|
|
1259
|
+
* self-elevating process (one UAC prompt). Idempotent; re-running
|
|
1260
|
+
* rotates the sandbox user's password.
|
|
1261
|
+
*
|
|
1262
|
+
* Network for the calling user is **not disrupted**: the filters key
|
|
1263
|
+
* on the `srt-sandbox` user's SID, so the broker, services, and
|
|
1264
|
+
* every other principal fall through to default-permit. No logout
|
|
1265
|
+
* is required.
|
|
1266
|
+
*
|
|
1267
|
+
* Returns the post-call WFP + sandbox-user state. If the user
|
|
1268
|
+
* cancels the UAC prompt this returns `{cancelled: true, …}` rather
|
|
1269
|
+
* than throwing — cancellation is a user choice, not an error.
|
|
1270
|
+
*
|
|
1271
|
+
* Prefer {@link installWindowsSandboxAsync}; this variant
|
|
1272
|
+
* `spawnSync`-blocks the event loop for the full UAC-prompt wait
|
|
1273
|
+
* (up to `timeoutMs`).
|
|
1274
|
+
*
|
|
1275
|
+
* @throws on user/WFP creation failure, if filters already exist
|
|
1276
|
+
* under `sublayerGuid` with a different port range or loopback mode
|
|
1277
|
+
* and `force` is not set, or if `srt-win` predates `allowLoopback`.
|
|
1278
|
+
*/
|
|
1279
|
+
export function installWindowsSandbox(opts = {}) {
|
|
1280
|
+
const srtWin = opts.srtWin ?? resolveSrtWin();
|
|
1281
|
+
let r;
|
|
1282
|
+
try {
|
|
1283
|
+
r = runSrtWin(installArgs(opts), {
|
|
1284
|
+
timeoutMs: installTimeoutMs(opts),
|
|
1285
|
+
srtWin,
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
catch (e) {
|
|
1289
|
+
remapInstallTimeout(e);
|
|
1290
|
+
}
|
|
1291
|
+
throwOnInstallFailure(r);
|
|
1292
|
+
const state = checkWindowsSandboxStatus({
|
|
1293
|
+
sublayerGuid: opts.sublayerGuid,
|
|
1294
|
+
srtWin,
|
|
1295
|
+
});
|
|
1296
|
+
if (r.status === 10)
|
|
1297
|
+
return { ...state, cancelled: true };
|
|
1298
|
+
const skip = installProfileGrantSkip(opts, state.user);
|
|
1299
|
+
if (skip)
|
|
1300
|
+
return { ...state, profileGrant: skip };
|
|
1301
|
+
opts.onProfileGrantStart?.(windowsProfileGrantNotice(os.homedir()));
|
|
1302
|
+
try {
|
|
1303
|
+
const result = grantWindowsProfileReadSync(installProfileGrantOptions(opts, srtWin));
|
|
1304
|
+
return {
|
|
1305
|
+
...state,
|
|
1306
|
+
profileGrant: { applied: true, userSid: state.user.realUserSid, result },
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1309
|
+
catch (e) {
|
|
1310
|
+
throwInstallProfileGrantFailure(e);
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
/**
|
|
1314
|
+
* Async twin of {@link installWindowsSandbox}. Same options, same
|
|
1315
|
+
* return type, same throw semantics. The UAC prompt is still modal,
|
|
1316
|
+
* but the event loop stays live — spinners keep painting and timers
|
|
1317
|
+
* keep firing.
|
|
1318
|
+
*/
|
|
1319
|
+
export async function installWindowsSandboxAsync(opts = {}) {
|
|
1320
|
+
const srtWin = opts.srtWin ?? resolveSrtWin();
|
|
1321
|
+
let r;
|
|
1322
|
+
try {
|
|
1323
|
+
r = await runSrtWinAsync(installArgs(opts), {
|
|
1324
|
+
timeoutMs: installTimeoutMs(opts),
|
|
1325
|
+
srtWin,
|
|
1326
|
+
});
|
|
1327
|
+
}
|
|
1328
|
+
catch (e) {
|
|
1329
|
+
remapInstallTimeout(e);
|
|
1330
|
+
}
|
|
1331
|
+
throwOnInstallFailure(r);
|
|
1332
|
+
const state = await checkWindowsSandboxStatusAsync({
|
|
1333
|
+
sublayerGuid: opts.sublayerGuid,
|
|
1334
|
+
srtWin,
|
|
1335
|
+
});
|
|
1336
|
+
if (r.status === 10)
|
|
1337
|
+
return { ...state, cancelled: true };
|
|
1338
|
+
const skip = installProfileGrantSkip(opts, state.user);
|
|
1339
|
+
if (skip)
|
|
1340
|
+
return { ...state, profileGrant: skip };
|
|
1341
|
+
opts.onProfileGrantStart?.(windowsProfileGrantNotice(os.homedir()));
|
|
1342
|
+
try {
|
|
1343
|
+
const result = await grantWindowsProfileRead(installProfileGrantOptions(opts, srtWin));
|
|
1344
|
+
return {
|
|
1345
|
+
...state,
|
|
1346
|
+
profileGrant: { applied: true, userSid: state.user.realUserSid, result },
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
catch (e) {
|
|
1350
|
+
throwInstallProfileGrantFailure(e);
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
/** LocalSystem, LocalService, NetworkService: accounts no one runs sessions as. */
|
|
1354
|
+
const WINDOWS_SERVICE_ACCOUNT_SIDS = new Set([
|
|
1355
|
+
'S-1-5-18',
|
|
1356
|
+
'S-1-5-19',
|
|
1357
|
+
'S-1-5-20',
|
|
1358
|
+
]);
|
|
1359
|
+
/**
|
|
1360
|
+
* Why an install leaves the profile read grant unapplied (`undefined`: it
|
|
1361
|
+
* applies it): asked to skip, a service account, or not running as the
|
|
1362
|
+
* owner of the interactive session, whose profile it would open instead.
|
|
1363
|
+
*/
|
|
1364
|
+
export function windowsProfileGrantSkipReason(user, opts = {}) {
|
|
1365
|
+
if (opts.skipProfileGrant)
|
|
1366
|
+
return 'skipProfileGrant was set';
|
|
1367
|
+
const how = `run the install, or grantWindowsProfileRead() (\`srt-win profile ` +
|
|
1368
|
+
`grant\`), as the user whose sessions are to read their profile`;
|
|
1369
|
+
if (WINDOWS_SERVICE_ACCOUNT_SIDS.has(user.realUserSid)) {
|
|
1370
|
+
return (`the install ran as the service account ${user.realUserSid}, which ` +
|
|
1371
|
+
`runs no sessions; ${how}`);
|
|
1372
|
+
}
|
|
1373
|
+
if (user.sessionUserSid === undefined) {
|
|
1374
|
+
return (`the owner of the session this install ran in could not be ` +
|
|
1375
|
+
`determined, so it is not known whose profile ${user.realUserSid} ` +
|
|
1376
|
+
`is; ${how}`);
|
|
1377
|
+
}
|
|
1378
|
+
if (user.sessionUserSid.toUpperCase() !== user.realUserSid.toUpperCase()) {
|
|
1379
|
+
return (`the install ran as ${user.realUserSid} in a session that belongs ` +
|
|
1380
|
+
`to ${user.sessionUserSid}; granting would open the installing ` +
|
|
1381
|
+
`account's profile, not the session owner's; ${how}`);
|
|
1382
|
+
}
|
|
1383
|
+
return undefined;
|
|
1384
|
+
}
|
|
1385
|
+
function installProfileGrantSkip(opts, user) {
|
|
1386
|
+
const reason = windowsProfileGrantSkipReason(user, opts);
|
|
1387
|
+
return reason === undefined ? undefined : { applied: false, reason };
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* What the profile read grant is about to do, in one line, for the person
|
|
1391
|
+
* at the keyboard.
|
|
1392
|
+
*/
|
|
1393
|
+
export function windowsProfileGrantNotice(profileDir) {
|
|
1394
|
+
return (`Making ${profileDir} readable to sandboxed commands on this machine, ` +
|
|
1395
|
+
`except the excluded credential stores (SSH and GPG keys, cloud and ` +
|
|
1396
|
+
`browser sign-ins, password managers, registry hives). Readable ` +
|
|
1397
|
+
`files include package-manager configuration that can hold feed ` +
|
|
1398
|
+
`tokens: .npmrc, pip.ini, NuGet.Config, Maven settings.xml, ` +
|
|
1399
|
+
`gradle.properties, .gitconfig. Skip with --skip-profile-grant ` +
|
|
1400
|
+
`(skipProfileGrant); undo with \`srt-win profile forget\` ` +
|
|
1401
|
+
`(forgetWindowsProfileRead()).`);
|
|
1402
|
+
}
|
|
1403
|
+
function installProfileGrantOptions(opts, srtWin) {
|
|
1404
|
+
return {
|
|
1405
|
+
exclude: opts.profileExclude,
|
|
1406
|
+
timeoutMs: opts.profileGrantTimeoutMs,
|
|
1407
|
+
onProgress: opts.onProfileGrantProgress,
|
|
1408
|
+
srtWin,
|
|
1409
|
+
};
|
|
1410
|
+
}
|
|
1411
|
+
/**
|
|
1412
|
+
* The account and the filters are installed and the profile read grant
|
|
1413
|
+
* is not: its own error, so the caller does not take the whole install
|
|
1414
|
+
* for failed.
|
|
1415
|
+
*/
|
|
1416
|
+
function throwInstallProfileGrantFailure(e) {
|
|
1417
|
+
const cause = e;
|
|
1418
|
+
// Refused beside other sandbox activity: nothing was written, and a
|
|
1419
|
+
// grant made before is still the current one.
|
|
1420
|
+
if (cause instanceof WindowsSandboxError &&
|
|
1421
|
+
(cause.code === 'profile_grant_blocked_by_session' ||
|
|
1422
|
+
cause.code === 'profile_operation_in_progress')) {
|
|
1423
|
+
throw new WindowsSandboxError(cause.code, `The Windows sandbox is installed. ${cause.message}`, 'profile');
|
|
1424
|
+
}
|
|
1425
|
+
const timedOut = cause instanceof WindowsSandboxError && cause.code === 'srt_win_timeout';
|
|
1426
|
+
throw new WindowsSandboxError('profile_grant_failed', `The Windows sandbox is installed, but the read grant on your user ` +
|
|
1427
|
+
`profile ${timedOut ? 'did not finish in time' : 'could not be applied'}` +
|
|
1428
|
+
`: ${cause.message}\nNo session starts until it is complete. Run the ` +
|
|
1429
|
+
`install again, or grantWindowsProfileRead(), to finish it; ` +
|
|
1430
|
+
`forgetWindowsProfileRead() removes what was written.`, 'profile');
|
|
1431
|
+
}
|
|
1432
|
+
/**
|
|
1433
|
+
* Remove the WFP filter set under `sublayerGuid` and the
|
|
1434
|
+
* `srt-sandbox` account, its credential file, and the setup marker
|
|
1435
|
+
* (one UAC prompt). Idempotent.
|
|
1436
|
+
*
|
|
1437
|
+
* @returns `{cancelled: true}` if the user dismissed UAC.
|
|
1438
|
+
*/
|
|
1439
|
+
export function uninstallWindowsSandbox(opts = {}) {
|
|
1440
|
+
const args = ['uninstall'];
|
|
1441
|
+
if (opts.sublayerGuid)
|
|
1442
|
+
args.push('--sublayer-guid', opts.sublayerGuid);
|
|
1443
|
+
if (opts.keepUser)
|
|
1444
|
+
args.push('--keep-user');
|
|
1445
|
+
const r = runSrtWin(args, {
|
|
1446
|
+
timeoutMs: opts.timeoutMs ??
|
|
1447
|
+
(opts.keepUser
|
|
1448
|
+
? INSTALL_TIMEOUT_MS
|
|
1449
|
+
: INSTALL_TIMEOUT_MS + PROFILE_GRANT_TIMEOUT_MS),
|
|
1450
|
+
srtWin: opts.srtWin,
|
|
1451
|
+
});
|
|
1452
|
+
logForDebugging(`[Sandbox Windows] uninstall exit=${r.status}: ${r.stderr || r.stdout}`);
|
|
1453
|
+
if (r.status === 10)
|
|
1454
|
+
return { cancelled: true };
|
|
1455
|
+
if (r.status !== 0) {
|
|
1456
|
+
throw new WindowsSandboxError('uninstall_failed', `srt-win uninstall failed (exit ${r.status}): ${r.stderr || r.stdout}`);
|
|
1457
|
+
}
|
|
1458
|
+
return {};
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* Resolve any Windows filesystem-config path list — `allowRead`/
|
|
1462
|
+
* `allowWrite` grants and `denyRead`/`denyWrite` stamps — to
|
|
1463
|
+
* concrete paths via the single platform-aware
|
|
1464
|
+
* {@link normalizePathForSandbox} chokepoint (Linux/macOS parity:
|
|
1465
|
+
* point-in-time expansion at session initialize, not per-exec).
|
|
1466
|
+
* Glob patterns are expanded; non-glob paths are normalized and
|
|
1467
|
+
* returned 1:1. Directory targets are accepted — the additive
|
|
1468
|
+
* sandbox-user ACE carries `(OI)(CI)` so it covers the subtree.
|
|
1469
|
+
*
|
|
1470
|
+
* Missing literal paths are dropped for `mode: 'grant'` (a grant on
|
|
1471
|
+
* nothing is meaningless) but PASSED THROUGH for `mode: 'deny'` —
|
|
1472
|
+
* `srt-win acl stamp` materializes a placeholder chain (mkdirs each
|
|
1473
|
+
* missing intermediate + creates an empty leaf) and stamps every
|
|
1474
|
+
* created component, so the deny lands on the exact target path
|
|
1475
|
+
* and the sandbox user cannot create/write/delete it. A trailing
|
|
1476
|
+
* `/` or `\` on the raw input means "the target is a directory":
|
|
1477
|
+
* the placeholder leaf is created as an empty directory instead of
|
|
1478
|
+
* an empty file, so a later `mkdirSync({recursive: true})` on the
|
|
1479
|
+
* real path succeeds. Glob results (existing-by-construction) drop
|
|
1480
|
+
* on a stat miss regardless of mode: a glob is inherently "match
|
|
1481
|
+
* existing".
|
|
1482
|
+
*
|
|
1483
|
+
* **UNC exception:** a `\\server\share\…` **literal** passes through
|
|
1484
|
+
* raw in BOTH modes (no existence probe — see {@link isUncPath});
|
|
1485
|
+
* `srt-win` soft-drops a missing UNC deny target rather than
|
|
1486
|
+
* materializing a placeholder chain on an SMB share. A UNC **glob**
|
|
1487
|
+
* still walks the share (user-trusted).
|
|
1488
|
+
*
|
|
1489
|
+
* `[` and `]` are characters of a name here, but the walk that expands a
|
|
1490
|
+
* glob reads them as a character class. So a glob beneath a directory with
|
|
1491
|
+
* brackets in its name is also expanded beneath that directory taken as the
|
|
1492
|
+
* name it is (see path-entries.ts). A UNC glob is not: finding the directory
|
|
1493
|
+
* would probe the share.
|
|
1494
|
+
*
|
|
1495
|
+
* An entry marked `{ path, literal: true }` is a literal whatever it holds.
|
|
1496
|
+
* One that holds `*` or `?` is skipped: no Win32 name has them, and
|
|
1497
|
+
* `srt-win` refuses the characters outright.
|
|
1498
|
+
*/
|
|
1499
|
+
export function expandWindowsFsPaths(patterns, opts) {
|
|
1500
|
+
const out = new Set();
|
|
1501
|
+
for (const entry of patterns) {
|
|
1502
|
+
const marked = typeof entry !== 'string';
|
|
1503
|
+
const raw = marked ? markedLiteralPath(entry) : entry;
|
|
1504
|
+
const norm = normalizePathForSandbox(raw, marked ? { literal: true } : undefined);
|
|
1505
|
+
if (marked && containsGlobCharsWin(norm)) {
|
|
1506
|
+
logForDebugging(`[Sandbox Windows] Skipping a literal path that no file can have: ${norm}`, { level: 'warn' });
|
|
1507
|
+
continue;
|
|
1508
|
+
}
|
|
1509
|
+
const isGlob = !marked && containsGlobCharsWin(norm);
|
|
1510
|
+
// UNC literal: pass raw (no stat) — see {@link isUncPath}. A
|
|
1511
|
+
// UNC glob falls through to expandGlobPattern below.
|
|
1512
|
+
if (isUncPath(norm) && !isGlob) {
|
|
1513
|
+
out.add(norm);
|
|
1514
|
+
continue;
|
|
1515
|
+
}
|
|
1516
|
+
const candidates = isGlob
|
|
1517
|
+
? [
|
|
1518
|
+
...expandGlobPattern(norm, { caseInsensitive: true }),
|
|
1519
|
+
...literalReadings(raw, opts?.mode === 'deny' ? 'deny' : 'allow', {
|
|
1520
|
+
isPattern: containsGlobCharsWin,
|
|
1521
|
+
}).flatMap(reading => reading.glob
|
|
1522
|
+
? expandGlobPattern(reading.path, {
|
|
1523
|
+
caseInsensitive: true,
|
|
1524
|
+
anchor: reading.anchor,
|
|
1525
|
+
})
|
|
1526
|
+
: []),
|
|
1527
|
+
]
|
|
1528
|
+
: [norm];
|
|
1529
|
+
for (const c of candidates) {
|
|
1530
|
+
const st = fs.statSync(c, { throwIfNoEntry: false });
|
|
1531
|
+
if (!st) {
|
|
1532
|
+
// normalizePathForSandbox (path.resolve) strips the
|
|
1533
|
+
// trailing separator (the dir-leaf signal — see doc);
|
|
1534
|
+
// re-apply it from the raw input.
|
|
1535
|
+
if (opts?.mode === 'deny' && !isGlob) {
|
|
1536
|
+
out.add(/[\\/]$/.test(raw) && !/[\\/]$/.test(c) ? c + '\\' : c);
|
|
1537
|
+
}
|
|
1538
|
+
continue;
|
|
1539
|
+
}
|
|
1540
|
+
out.add(c);
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
return [...out];
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* A path that names a network share (`\\\\server\\share\\…`, `\\\\?\\UNC\\…`)
|
|
1547
|
+
* or anything in the device namespace other than a drive (`\\\\.\\pipe\\…`,
|
|
1548
|
+
* `\\\\?\\GLOBALROOT\\…`).
|
|
1549
|
+
*/
|
|
1550
|
+
function isUnprobedWindowsPath(p) {
|
|
1551
|
+
return isUncPath(p) || /^[\\/]{2}[?.][\\/](?![a-z]:)/i.test(p);
|
|
1552
|
+
}
|
|
1553
|
+
/** "Does not exist" as opposed to "could not look". */
|
|
1554
|
+
function isAbsentError(e) {
|
|
1555
|
+
const code = e?.code;
|
|
1556
|
+
return code === 'ENOENT' || code === 'ENOTDIR';
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* The single place a path of a session's configuration is resolved on
|
|
1560
|
+
* disk for comparison: the same final-path lookup `srt-win` makes.
|
|
1561
|
+
*/
|
|
1562
|
+
function resolveWindowsPath(p) {
|
|
1563
|
+
if (isUnprobedWindowsPath(p))
|
|
1564
|
+
return { state: 'unprobed' };
|
|
1565
|
+
try {
|
|
1566
|
+
// eslint-disable-next-line no-restricted-properties
|
|
1567
|
+
return { state: 'resolved', path: fs.realpathSync.native(p) };
|
|
1568
|
+
}
|
|
1569
|
+
catch (e) {
|
|
1570
|
+
return isAbsentError(e)
|
|
1571
|
+
? { state: 'absent' }
|
|
1572
|
+
: {
|
|
1573
|
+
state: 'error',
|
|
1574
|
+
code: e?.code ?? 'unknown',
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* `p` for comparison with another path: links, junctions, 8.3 names and
|
|
1580
|
+
* the case on disk are resolved, as `srt-win` resolves a path it is given.
|
|
1581
|
+
*/
|
|
1582
|
+
function windowsPathKey(p) {
|
|
1583
|
+
return windowsPathKeyOf(p, resolveWindowsPath(p));
|
|
1584
|
+
}
|
|
1585
|
+
/** {@link windowsPathKey} from a look at the path already taken. */
|
|
1586
|
+
function windowsPathKeyOf(p, resolved) {
|
|
1587
|
+
return normalizeCaseForComparison(path.win32
|
|
1588
|
+
.normalize(stripExtendedPathPrefix(resolved.state === 'resolved' ? resolved.path : p))
|
|
1589
|
+
.replace(/\\/g, '/')
|
|
1590
|
+
.replace(/\/+$/, ''));
|
|
1591
|
+
}
|
|
1592
|
+
/** The one of `dirs` that a path is, or lies beneath. */
|
|
1593
|
+
function coveringWindowsPath(dirs) {
|
|
1594
|
+
const keys = dirs.map(windowsPathKey);
|
|
1595
|
+
return p => {
|
|
1596
|
+
if (keys.length === 0)
|
|
1597
|
+
return undefined;
|
|
1598
|
+
const key = windowsPathKey(p);
|
|
1599
|
+
const covering = keys.findIndex(dir => isAtOrUnder(key, dir));
|
|
1600
|
+
return covering < 0 ? undefined : dirs[covering];
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* The ones of `grants` that lie strictly beneath one of `denies`: the
|
|
1605
|
+
* grants that rank above those denies, an allow set further down
|
|
1606
|
+
* being the one that counts.
|
|
1607
|
+
*/
|
|
1608
|
+
export function windowsGrantsBeneathDenies(grants, denies) {
|
|
1609
|
+
if (grants.length === 0 || denies.length === 0)
|
|
1610
|
+
return [];
|
|
1611
|
+
const denyKeys = denies.map(windowsPathKey);
|
|
1612
|
+
const keyed = grants.map(g => ({ path: g, key: windowsPathKey(g) }));
|
|
1613
|
+
// Per deny, the topmost grants strictly beneath THAT deny.
|
|
1614
|
+
const out = new Map();
|
|
1615
|
+
for (const d of denyKeys) {
|
|
1616
|
+
const beneath = keyed.filter(g => g.key !== d && isAtOrUnder(g.key, d));
|
|
1617
|
+
for (const g of beneath) {
|
|
1618
|
+
const covered = beneath.some(other => other.key !== g.key && isAtOrUnder(g.key, other.key));
|
|
1619
|
+
if (!covered && !out.has(g.key))
|
|
1620
|
+
out.set(g.key, g.path);
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
return [...out.values()];
|
|
1624
|
+
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Ranks the lists against each other, as on the other platforms, and returns
|
|
1627
|
+
* the grants and stamps that say so. Takes concrete paths
|
|
1628
|
+
* ({@link expandWindowsFsPaths}).
|
|
1629
|
+
*
|
|
1630
|
+
* The ACEs set on an object come before the ones it inherits, so beneath a
|
|
1631
|
+
* DENY on a directory an ALLOW set further down is the one that counts. That
|
|
1632
|
+
* is the rank of `allowRead` over `denyRead`. The other two ranks are the
|
|
1633
|
+
* opposite one, so `srt-win` is handed no such ALLOW for them:
|
|
1634
|
+
*
|
|
1635
|
+
* - `denyWrite` over `allowWrite`: a write grant at or beneath a write deny
|
|
1636
|
+
* is a read grant.
|
|
1637
|
+
* - `credentialDeny` (`credentials.files`) over `allowRead` and `allowWrite`:
|
|
1638
|
+
* a grant at or beneath a credential deny is left out. The caller adds the
|
|
1639
|
+
* grants for the library's own files to the result, so they are the only
|
|
1640
|
+
* exceptions.
|
|
1641
|
+
*
|
|
1642
|
+
* `held` are grants that are on disk already: the session's, when one command
|
|
1643
|
+
* brings denies of its own. They cannot be taken back for one command, so
|
|
1644
|
+
* each gets the deny at its own path, where `srt-win` puts DENY first.
|
|
1645
|
+
*/
|
|
1646
|
+
export function rankWindowsFsAccess(lists) {
|
|
1647
|
+
const credentialDenyOver = coveringWindowsPath(lists.credentialDeny);
|
|
1648
|
+
const writeDenyOver = coveringWindowsPath(lists.denyWrite);
|
|
1649
|
+
const grantRead = new Set();
|
|
1650
|
+
const grantWrite = new Set();
|
|
1651
|
+
const rank = (list, p) => {
|
|
1652
|
+
const credentialDeny = credentialDenyOver(p);
|
|
1653
|
+
const writeDeny = list === 'allowWrite' ? writeDenyOver(p) : undefined;
|
|
1654
|
+
if (credentialDeny === undefined && writeDeny === undefined) {
|
|
1655
|
+
const grants = list === 'allowRead' ? grantRead : grantWrite;
|
|
1656
|
+
grants.add(p);
|
|
1657
|
+
return;
|
|
1658
|
+
}
|
|
1659
|
+
if (credentialDeny === undefined)
|
|
1660
|
+
grantRead.add(p);
|
|
1661
|
+
logForDebugging(`[Sandbox Windows] ${list} ${p} is at or beneath ` +
|
|
1662
|
+
(credentialDeny !== undefined
|
|
1663
|
+
? `the credential file entry ${credentialDeny}: not granted`
|
|
1664
|
+
: `denyWrite ${writeDeny}: granted read only`), { level: 'warn' });
|
|
1665
|
+
};
|
|
1666
|
+
for (const p of lists.allowRead)
|
|
1667
|
+
rank('allowRead', p);
|
|
1668
|
+
for (const p of lists.allowWrite)
|
|
1669
|
+
rank('allowWrite', p);
|
|
1670
|
+
const heldRead = lists.held?.grantRead ?? [];
|
|
1671
|
+
const heldWrite = lists.held?.grantWrite ?? [];
|
|
1672
|
+
return {
|
|
1673
|
+
grantRead: [...grantRead],
|
|
1674
|
+
grantWrite: [...grantWrite],
|
|
1675
|
+
denyRead: [
|
|
1676
|
+
...new Set([
|
|
1677
|
+
...lists.denyRead,
|
|
1678
|
+
...lists.credentialDeny,
|
|
1679
|
+
...[...heldRead, ...heldWrite].filter(p => credentialDenyOver(p) !== undefined),
|
|
1680
|
+
]),
|
|
1681
|
+
],
|
|
1682
|
+
denyWrite: [
|
|
1683
|
+
...new Set([
|
|
1684
|
+
...lists.denyWrite,
|
|
1685
|
+
...heldWrite.filter(p => writeDenyOver(p) !== undefined),
|
|
1686
|
+
]),
|
|
1687
|
+
],
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
/**
|
|
1691
|
+
* Parse a structured `srt-win exec` error from its stderr. `exec`
|
|
1692
|
+
* emits typed launch failures as a single JSON line
|
|
1693
|
+
* `{"code":…,"message":…}` alongside a distinct exit code —
|
|
1694
|
+
* `mapped_drive_cwd` is exit **16**, `seclogon_disabled` exit **18**,
|
|
1695
|
+
* `wfp_loopback_mismatch` exit **19**. Embedders that spawn the
|
|
1696
|
+
* `{argv, env}` from {@link wrapCommandWithSandboxWindows} call
|
|
1697
|
+
* this on non-zero exit to surface an actionable
|
|
1698
|
+
* {@link WindowsSandboxError} instead of a bare status.
|
|
1699
|
+
*
|
|
1700
|
+
* Returns `undefined` when no typed-error line is present (the
|
|
1701
|
+
* common case: exit status is the child's own). Gate on the
|
|
1702
|
+
* `srt-win` exit code before calling — the sandboxed child's own
|
|
1703
|
+
* stderr is pumped through unchanged, so a child that happened to
|
|
1704
|
+
* print a matching JSON line would parse here too.
|
|
1705
|
+
*/
|
|
1706
|
+
export function parseWindowsSandboxError(stderr) {
|
|
1707
|
+
return parseSrtWinLaunchError(stderr, 'exec');
|
|
1708
|
+
}
|
|
1709
|
+
/** {@link parseWindowsSandboxError} for any runner-launching subcommand. */
|
|
1710
|
+
function parseSrtWinLaunchError(stderr, subcommand) {
|
|
1711
|
+
for (const line of stderr.split(/\r?\n/)) {
|
|
1712
|
+
const t = line.trim();
|
|
1713
|
+
if (!t.startsWith('{') || !t.includes('"code"'))
|
|
1714
|
+
continue;
|
|
1715
|
+
try {
|
|
1716
|
+
const j = JSON.parse(t);
|
|
1717
|
+
// Exit 25: the command needed the lock a profile grant or forget
|
|
1718
|
+
// is holding.
|
|
1719
|
+
if (j.code === 'profile_operation_in_progress') {
|
|
1720
|
+
return new WindowsSandboxError('profile_operation_in_progress', j.message ?? 'a profile grant or forget is in progress', 'exec');
|
|
1721
|
+
}
|
|
1722
|
+
// Exit 26: the process named with `heldBy` ended while the
|
|
1723
|
+
// command ran, and the command was terminated with it.
|
|
1724
|
+
if (j.code === 'session_ended') {
|
|
1725
|
+
return new WindowsSandboxError('session_ended', j.message ??
|
|
1726
|
+
'the session that started this command ended; the command was terminated', 'exec');
|
|
1727
|
+
}
|
|
1728
|
+
if (j.code === 'mapped_drive_cwd') {
|
|
1729
|
+
// The canonical class carries `code`/`subcommand`; `drive`
|
|
1730
|
+
// is this one code's extra payload, attached as a plain
|
|
1731
|
+
// property rather than forking the class.
|
|
1732
|
+
return Object.assign(new WindowsSandboxError('mapped_drive_cwd', j.message ?? 'mapped/network-drive working directory', subcommand), { drive: j.drive });
|
|
1733
|
+
}
|
|
1734
|
+
// Exit 19: the installed loopback mode is not the one the
|
|
1735
|
+
// command was wrapped for; nothing was launched.
|
|
1736
|
+
if (j.code === 'wfp_loopback_mismatch') {
|
|
1737
|
+
return new WindowsSandboxError('wfp_loopback_mismatch', j.message ?? "the installed loopback mode is not this session's", 'exec');
|
|
1738
|
+
}
|
|
1739
|
+
if (j.code === 'seclogon_disabled') {
|
|
1740
|
+
const state = j.state === 'missing' ? 'missing' : 'disabled';
|
|
1741
|
+
return Object.assign(new WindowsSandboxError('seclogon_disabled', j.message ?? seclogonDisabledMessage(state), subcommand), { state });
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
catch {
|
|
1745
|
+
// not our line
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
return undefined;
|
|
1749
|
+
}
|
|
1750
|
+
/**
|
|
1751
|
+
* Apply the file-deny ACE set for one host session: an additive
|
|
1752
|
+
* `(D;OICI;mask;;;<sb-SID>)` on the target plus a
|
|
1753
|
+
* `(D;OICI;FILE_DELETE_CHILD;;;<sb-SID>)` on the parent — no
|
|
1754
|
+
* PROTECTED rewrite, no SD snapshot. Idempotent and refcounted via
|
|
1755
|
+
* srt-win's `working_aces` table.
|
|
1756
|
+
*
|
|
1757
|
+
* Inputs are passed verbatim to `srt-win` (which canonicalizes and
|
|
1758
|
+
* rejects globs). Callers that accept globs should pre-expand via
|
|
1759
|
+
* {@link expandWindowsFsPaths}.
|
|
1760
|
+
*
|
|
1761
|
+
* @throws on exit ≠ 0 — including exit 2 (one or more inputs
|
|
1762
|
+
* skipped). srt-win stamps the resolvable inputs before exiting
|
|
1763
|
+
* 2, so on throw the caller should call {@link restoreWindowsAcl}
|
|
1764
|
+
* to release whatever WAS stamped.
|
|
1765
|
+
*/
|
|
1766
|
+
export function stampWindowsAcl(opts) {
|
|
1767
|
+
const holder = opts.holderPid ?? process.pid;
|
|
1768
|
+
const stdin = JSON.stringify({
|
|
1769
|
+
denyRead: opts.denyRead,
|
|
1770
|
+
denyWrite: opts.denyWrite,
|
|
1771
|
+
});
|
|
1772
|
+
const r = runSrtWin([
|
|
1773
|
+
'acl',
|
|
1774
|
+
'stamp',
|
|
1775
|
+
'--holder-pid',
|
|
1776
|
+
`${holder}`,
|
|
1777
|
+
'--sandbox-user-sid',
|
|
1778
|
+
opts.sandboxUserSid,
|
|
1779
|
+
], { timeoutMs: 60000, stdin, srtWin: opts.srtWin });
|
|
1780
|
+
logForDebugging(`[Sandbox Windows] acl stamp exit=${r.status}: ${r.stderr || r.stdout}`);
|
|
1781
|
+
if (r.status !== 0) {
|
|
1782
|
+
throw new WindowsSandboxError('acl_stamp_failed', `srt-win acl stamp exited ${r.status} ` +
|
|
1783
|
+
(r.status === 2 ? '(partial — some inputs skipped)' : '(failed)') +
|
|
1784
|
+
`: ${r.stderr || r.stdout}`);
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
/**
|
|
1788
|
+
* `acl revoke` statuses that show a grant released. An allow-list, so
|
|
1789
|
+
* a status this code does not know fails closed.
|
|
1790
|
+
*/
|
|
1791
|
+
const WINDOWS_ACL_GRANT_RELEASED_STATUSES = new Set([
|
|
1792
|
+
'revoked',
|
|
1793
|
+
'stillHeld',
|
|
1794
|
+
'downgraded',
|
|
1795
|
+
'relocated',
|
|
1796
|
+
'noRow',
|
|
1797
|
+
'gone',
|
|
1798
|
+
'missing',
|
|
1799
|
+
]);
|
|
1800
|
+
/**
|
|
1801
|
+
* Whether one `acl revoke` outcome shows its grant released. "missing"
|
|
1802
|
+
* comes only from an older srt-win, which also says it of a path it
|
|
1803
|
+
* could not open, so it counts only if the path is really gone.
|
|
1804
|
+
*/
|
|
1805
|
+
function windowsAclGrantReleased(o) {
|
|
1806
|
+
if (typeof o !== 'object' || o === null)
|
|
1807
|
+
return false;
|
|
1808
|
+
const { path: p, status } = o;
|
|
1809
|
+
if (typeof p !== 'string' || typeof status !== 'string')
|
|
1810
|
+
return false;
|
|
1811
|
+
if (!WINDOWS_ACL_GRANT_RELEASED_STATUSES.has(status))
|
|
1812
|
+
return false;
|
|
1813
|
+
if (status !== 'missing')
|
|
1814
|
+
return true;
|
|
1815
|
+
try {
|
|
1816
|
+
fs.lstatSync(p);
|
|
1817
|
+
return false;
|
|
1818
|
+
}
|
|
1819
|
+
catch (e) {
|
|
1820
|
+
return e.code === 'ENOENT';
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* Release this holder's deny ACEs. Best-effort; `undefined` when
|
|
1825
|
+
* `srt-win` failed. srt-win refuses (status `grantPending`) while the
|
|
1826
|
+
* holder still has a grant recorded: revoke first.
|
|
1827
|
+
*/
|
|
1828
|
+
export function restoreWindowsAcl(opts) {
|
|
1829
|
+
const holder = opts.holderPid ?? process.pid;
|
|
1830
|
+
// Don't let a teardown helper throw — the caller's reset() must
|
|
1831
|
+
// complete. runSrtWinJsonAllowFail parses stdout before checking
|
|
1832
|
+
// the exit code, so a non-zero exit with the per-path JSON intact
|
|
1833
|
+
// still surfaces every entry to reset()'s loop. Only spawn-fail
|
|
1834
|
+
// / unparseable output throws → log and return undefined.
|
|
1835
|
+
try {
|
|
1836
|
+
const r = runSrtWinJsonAllowFail([
|
|
1837
|
+
'acl',
|
|
1838
|
+
'restore',
|
|
1839
|
+
'--holder-pid',
|
|
1840
|
+
`${holder}`,
|
|
1841
|
+
'--sandbox-user-sid',
|
|
1842
|
+
opts.sandboxUserSid,
|
|
1843
|
+
'--json',
|
|
1844
|
+
], { timeoutMs: 60000, srtWin: opts.srtWin });
|
|
1845
|
+
if (!r.ok) {
|
|
1846
|
+
logForDebugging(`[Sandbox Windows] acl restore exited non-zero (per-path ` +
|
|
1847
|
+
`outcomes preserved): ${r.stderr}`, { level: 'error' });
|
|
1848
|
+
}
|
|
1849
|
+
// Pre- same-user-removal builds emit `{paths, parents}`; post-
|
|
1850
|
+
// emit a flat array. Flatten either so reset()'s logging loop
|
|
1851
|
+
// is shape-agnostic across the transition.
|
|
1852
|
+
return Array.isArray(r.json)
|
|
1853
|
+
? r.json
|
|
1854
|
+
: [...(r.json.paths ?? []), ...(r.json.parents ?? [])];
|
|
1855
|
+
}
|
|
1856
|
+
catch (e) {
|
|
1857
|
+
logForDebugging(`[Sandbox Windows] acl restore: ${e.message}`, {
|
|
1858
|
+
level: 'error',
|
|
1859
|
+
});
|
|
1860
|
+
return undefined;
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
function allowProfileExclusionArgs(opts) {
|
|
1864
|
+
return (opts.allowProfileExclusions ?? []).flatMap(p => [
|
|
1865
|
+
'--allow-profile-exclusion',
|
|
1866
|
+
p,
|
|
1867
|
+
]);
|
|
1868
|
+
}
|
|
1869
|
+
/**
|
|
1870
|
+
* Apply per-session additive `(OI)(CI)` ALLOW ACEs for the sandbox
|
|
1871
|
+
* user on each path. The sandbox user has no inherent rights on
|
|
1872
|
+
* real-user-owned files; this is what makes the working tree (and
|
|
1873
|
+
* explicit `allowRead`/`allowWrite` paths) reachable from the
|
|
1874
|
+
* child. Idempotent and refcounted via srt-win's `working_aces`
|
|
1875
|
+
* table.
|
|
1876
|
+
*
|
|
1877
|
+
* @throws on exit ≠ 0. On throw the caller should call
|
|
1878
|
+
* {@link revokeWindowsAcl} to release whatever WAS granted.
|
|
1879
|
+
*/
|
|
1880
|
+
export function grantWindowsAcl(opts) {
|
|
1881
|
+
const holder = opts.holderPid ?? process.pid;
|
|
1882
|
+
const stdin = JSON.stringify({ read: opts.read, write: opts.write });
|
|
1883
|
+
const r = runSrtWin([
|
|
1884
|
+
'acl',
|
|
1885
|
+
'grant',
|
|
1886
|
+
'--holder-pid',
|
|
1887
|
+
`${holder}`,
|
|
1888
|
+
'--sandbox-user-sid',
|
|
1889
|
+
opts.sandboxUserSid,
|
|
1890
|
+
...allowProfileExclusionArgs(opts),
|
|
1891
|
+
], { timeoutMs: 60000, stdin, srtWin: opts.srtWin });
|
|
1892
|
+
logForDebugging(`[Sandbox Windows] acl grant exit=${r.status}: ${r.stderr || r.stdout}`);
|
|
1893
|
+
if (r.status !== 0) {
|
|
1894
|
+
throw new WindowsSandboxError('acl_grant_failed', `srt-win acl grant exited ${r.status}: ${r.stderr || r.stdout}`);
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
/**
|
|
1898
|
+
* Session start under the write-restricted token: one `srt-win acl
|
|
1899
|
+
* grant --persistent`. Grants on the `write` roots are KEPT at session
|
|
1900
|
+
* end; `srt-win acl forget` removes them.
|
|
1901
|
+
*/
|
|
1902
|
+
export async function grantWindowsAclPersistent(opts) {
|
|
1903
|
+
const holder = opts.holderPid ?? process.pid;
|
|
1904
|
+
const stdin = JSON.stringify({
|
|
1905
|
+
read: opts.read,
|
|
1906
|
+
write: opts.write,
|
|
1907
|
+
denyRead: opts.denyRead,
|
|
1908
|
+
denyWrite: opts.denyWrite,
|
|
1909
|
+
});
|
|
1910
|
+
const r = await runSrtWinAsync([
|
|
1911
|
+
'acl',
|
|
1912
|
+
'grant',
|
|
1913
|
+
'--holder-pid',
|
|
1914
|
+
`${holder}`,
|
|
1915
|
+
'--sandbox-user-sid',
|
|
1916
|
+
opts.sandboxUserSid,
|
|
1917
|
+
'--persistent',
|
|
1918
|
+
...allowProfileExclusionArgs(opts),
|
|
1919
|
+
],
|
|
1920
|
+
// A root's first grant walks its whole tree.
|
|
1921
|
+
{ timeoutMs: 600000, stdin, srtWin: opts.srtWin });
|
|
1922
|
+
logForDebugging(`[Sandbox Windows] acl grant --persistent exit=${r.status}: ` +
|
|
1923
|
+
`${r.stderr || r.stdout}`);
|
|
1924
|
+
if (r.status !== 0) {
|
|
1925
|
+
throw new WindowsSandboxError('acl_grant_failed', `srt-win acl grant --persistent exited ${r.status} ` +
|
|
1926
|
+
(r.status === 2 ? '(partial — some inputs skipped)' : '(failed)') +
|
|
1927
|
+
`: ${r.stderr || r.stdout}`);
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
/**
|
|
1931
|
+
* {@link revokeWindowsAcl} that also reports whether the revoke
|
|
1932
|
+
* completed; gate {@link restoreWindowsAcl} on `complete`.
|
|
1933
|
+
*/
|
|
1934
|
+
export function revokeWindowsAclChecked(opts) {
|
|
1935
|
+
const holder = opts.holderPid ?? process.pid;
|
|
1936
|
+
let result;
|
|
1937
|
+
try {
|
|
1938
|
+
const r = runSrtWinJsonAllowFail([
|
|
1939
|
+
'acl',
|
|
1940
|
+
'revoke',
|
|
1941
|
+
'--holder-pid',
|
|
1942
|
+
`${holder}`,
|
|
1943
|
+
'--sandbox-user-sid',
|
|
1944
|
+
opts.sandboxUserSid,
|
|
1945
|
+
'--json',
|
|
1946
|
+
], { timeoutMs: 60000, srtWin: opts.srtWin });
|
|
1947
|
+
if (!r.ok) {
|
|
1948
|
+
logForDebugging(`[Sandbox Windows] acl revoke exited non-zero: ${r.stderr}`, { level: 'error' });
|
|
1949
|
+
}
|
|
1950
|
+
result = windowsAclRevokeResult(r.ok, r.json, r.stderr);
|
|
1951
|
+
}
|
|
1952
|
+
catch (e) {
|
|
1953
|
+
const detail = e.message;
|
|
1954
|
+
logForDebugging(`[Sandbox Windows] acl revoke: ${detail}`, {
|
|
1955
|
+
level: 'error',
|
|
1956
|
+
});
|
|
1957
|
+
result = { complete: false, outcomes: undefined, pending: [], detail };
|
|
1958
|
+
}
|
|
1959
|
+
return result;
|
|
1960
|
+
}
|
|
1961
|
+
/** Judge a revoke that ran to the end and printed JSON. */
|
|
1962
|
+
function windowsAclRevokeResult(exitedZero, json, stderr) {
|
|
1963
|
+
const outcomes = Array.isArray(json)
|
|
1964
|
+
? json
|
|
1965
|
+
: undefined;
|
|
1966
|
+
const unreleased = (outcomes ?? []).filter(o => !windowsAclGrantReleased(o));
|
|
1967
|
+
return {
|
|
1968
|
+
complete: exitedZero && outcomes !== undefined && unreleased.length === 0,
|
|
1969
|
+
outcomes,
|
|
1970
|
+
pending: unreleased.map(o => String(o?.path)),
|
|
1971
|
+
detail: stderr.trim() || undefined,
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
/**
|
|
1975
|
+
* Release this holder's grants. Best-effort (does not throw). Do not
|
|
1976
|
+
* follow with {@link restoreWindowsAcl}: use
|
|
1977
|
+
* {@link revokeWindowsAclChecked}, which says whether it completed.
|
|
1978
|
+
*/
|
|
1979
|
+
export function revokeWindowsAcl(opts) {
|
|
1980
|
+
return revokeWindowsAclChecked(opts).outcomes;
|
|
1981
|
+
}
|
|
1982
|
+
const PROFILE_GRANT_STATES = new Set([
|
|
1983
|
+
'none',
|
|
1984
|
+
'current',
|
|
1985
|
+
'outdated',
|
|
1986
|
+
'incomplete',
|
|
1987
|
+
'unknown',
|
|
1988
|
+
]);
|
|
1989
|
+
const PROFILE_PATH_KINDS = new Set([
|
|
1990
|
+
'container',
|
|
1991
|
+
'granted',
|
|
1992
|
+
'file',
|
|
1993
|
+
'denied',
|
|
1994
|
+
]);
|
|
1995
|
+
/**
|
|
1996
|
+
* The variables {@link windowsProfileReadEnv} can return; any other name
|
|
1997
|
+
* `srt-win` reports is dropped. `RUSTUP_HOME` and `CARGO_HOME` name
|
|
1998
|
+
* directories, which stay read-only to the sandboxed command.
|
|
1999
|
+
*/
|
|
2000
|
+
export const WINDOWS_PROFILE_READ_ENV_VARS = [
|
|
2001
|
+
'NPM_CONFIG_USERCONFIG',
|
|
2002
|
+
'GIT_CONFIG_GLOBAL',
|
|
2003
|
+
'PIP_CONFIG_FILE',
|
|
2004
|
+
'MAVEN_ARGS',
|
|
2005
|
+
'RUSTUP_HOME',
|
|
2006
|
+
'CARGO_HOME',
|
|
2007
|
+
];
|
|
2008
|
+
/**
|
|
2009
|
+
* The version of `srt-win profile status`'s record format this library
|
|
2010
|
+
* reads. Any other version is not read: its lists decide what may be granted.
|
|
2011
|
+
*/
|
|
2012
|
+
const WINDOWS_PROFILE_RECORD_VERSION = 1;
|
|
2013
|
+
function stringList(v) {
|
|
2014
|
+
return Array.isArray(v) && v.every(x => typeof x === 'string' && x !== '')
|
|
2015
|
+
? v
|
|
2016
|
+
: undefined;
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* Why a status that says `current` cannot be relied on, if so.
|
|
2020
|
+
*/
|
|
2021
|
+
function profileStatusProblem(raw) {
|
|
2022
|
+
if (raw.record_version !== WINDOWS_PROFILE_RECORD_VERSION) {
|
|
2023
|
+
return (`srt-win reports record format ${JSON.stringify(raw.record_version)}; ` +
|
|
2024
|
+
`this library reads format ${WINDOWS_PROFILE_RECORD_VERSION}`);
|
|
2025
|
+
}
|
|
2026
|
+
const exclusions = stringList(raw.exclusions);
|
|
2027
|
+
if (!exclusions || exclusions.length === 0) {
|
|
2028
|
+
return 'the recorded grant carries no list of excluded paths';
|
|
2029
|
+
}
|
|
2030
|
+
if (!stringList(raw.ungranted_only)) {
|
|
2031
|
+
return 'the recorded grant carries no list of ungranted directories';
|
|
2032
|
+
}
|
|
2033
|
+
return undefined;
|
|
2034
|
+
}
|
|
2035
|
+
function mapProfileStatus(raw) {
|
|
2036
|
+
// A state this code does not know is not a usable grant.
|
|
2037
|
+
let state = (PROFILE_GRANT_STATES.has(raw.state ?? '') ? raw.state : 'unknown');
|
|
2038
|
+
let reason = raw.reason;
|
|
2039
|
+
const problem = state === 'current' ? profileStatusProblem(raw) : undefined;
|
|
2040
|
+
if (problem) {
|
|
2041
|
+
state = 'outdated';
|
|
2042
|
+
reason = problem;
|
|
2043
|
+
}
|
|
2044
|
+
const env = {};
|
|
2045
|
+
if (state === 'current') {
|
|
2046
|
+
for (const name of WINDOWS_PROFILE_READ_ENV_VARS) {
|
|
2047
|
+
const v = raw.env?.[name];
|
|
2048
|
+
if (typeof v === 'string' && v !== '')
|
|
2049
|
+
env[name] = v;
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
return {
|
|
2053
|
+
state,
|
|
2054
|
+
...(reason && { reason }),
|
|
2055
|
+
...(raw.profile && { profile: raw.profile }),
|
|
2056
|
+
capabilities: capabilityList(raw.capabilities),
|
|
2057
|
+
notGranted: grantItems(raw.not_granted),
|
|
2058
|
+
selfClosed: grantItems(raw.self_closed),
|
|
2059
|
+
unverifiable: grantItems(raw.unverifiable),
|
|
2060
|
+
unprotected: grantItems(raw.unprotected),
|
|
2061
|
+
staleAllow: grantItems(raw.stale_allow),
|
|
2062
|
+
replacedFiles: stringList(raw.replaced_files) ?? [],
|
|
2063
|
+
extraExclusions: raw.extra_exclusions ?? [],
|
|
2064
|
+
exclusions: stringList(raw.exclusions) ?? [],
|
|
2065
|
+
ungrantedOnly: stringList(raw.ungranted_only) ?? [],
|
|
2066
|
+
counts: {
|
|
2067
|
+
containers: raw.containers ?? 0,
|
|
2068
|
+
granted: raw.granted ?? 0,
|
|
2069
|
+
files: raw.files ?? 0,
|
|
2070
|
+
denied: raw.denied ?? 0,
|
|
2071
|
+
},
|
|
2072
|
+
env,
|
|
2073
|
+
...(raw.paths && {
|
|
2074
|
+
paths: raw.paths.filter((p) => typeof p.path === 'string' &&
|
|
2075
|
+
typeof p.kind === 'string' &&
|
|
2076
|
+
PROFILE_PATH_KINDS.has(p.kind)),
|
|
2077
|
+
}),
|
|
2078
|
+
};
|
|
2079
|
+
}
|
|
2080
|
+
/**
|
|
2081
|
+
* The recorded profile read grant (`srt-win profile status`): whether one
|
|
2082
|
+
* exists and is current, and with `paths` every path it wrote on. Throws
|
|
2083
|
+
* `profile_operation_in_progress` while a grant or forget is running.
|
|
2084
|
+
* Blocks the event loop: prefer {@link getWindowsProfileReadStatusAsync}.
|
|
2085
|
+
*/
|
|
2086
|
+
export function getWindowsProfileReadStatus(opts = {}) {
|
|
2087
|
+
const args = ['profile', 'status'];
|
|
2088
|
+
if (opts.paths)
|
|
2089
|
+
args.push('--paths');
|
|
2090
|
+
const raw = runSrtWinJson(args, {
|
|
2091
|
+
timeoutMs: 30000,
|
|
2092
|
+
srtWin: opts.srtWin,
|
|
2093
|
+
});
|
|
2094
|
+
// Asked while a grant or forget is running: the record is being
|
|
2095
|
+
// rewritten, and is not a run that was cut short.
|
|
2096
|
+
if (raw.state === 'in_progress') {
|
|
2097
|
+
throwIfRefusedBesideOthers(args, SRT_WIN_EXIT_PROFILE_BUSY, '');
|
|
2098
|
+
}
|
|
2099
|
+
return mapProfileStatus(raw);
|
|
2100
|
+
}
|
|
2101
|
+
/** Async twin of {@link getWindowsProfileReadStatus}: the event loop stays live. */
|
|
2102
|
+
export async function getWindowsProfileReadStatusAsync(opts = {}) {
|
|
2103
|
+
const args = ['profile', 'status'];
|
|
2104
|
+
if (opts.paths)
|
|
2105
|
+
args.push('--paths');
|
|
2106
|
+
const raw = await runSrtWinJsonAsync(args, {
|
|
2107
|
+
timeoutMs: 30000,
|
|
2108
|
+
srtWin: opts.srtWin,
|
|
2109
|
+
});
|
|
2110
|
+
if (raw.state === 'in_progress') {
|
|
2111
|
+
throwIfRefusedBesideOthers(args, SRT_WIN_EXIT_PROFILE_BUSY, '');
|
|
2112
|
+
}
|
|
2113
|
+
return mapProfileStatus(raw);
|
|
2114
|
+
}
|
|
2115
|
+
const PROFILE_GRANT_TIMEOUT_MS = 30 * 60000;
|
|
2116
|
+
/** A `[{path, reason}]` list as `srt-win` reports it; anything else is none. */
|
|
2117
|
+
function grantItems(v) {
|
|
2118
|
+
return Array.isArray(v)
|
|
2119
|
+
? v.flatMap(i => {
|
|
2120
|
+
const { path: p, reason } = (i ?? {});
|
|
2121
|
+
if (typeof p !== 'string')
|
|
2122
|
+
return [];
|
|
2123
|
+
const { caller_reads: reads, cause, protected_exclusion: protectedExclusion, entry, } = i;
|
|
2124
|
+
return [
|
|
2125
|
+
{
|
|
2126
|
+
path: p,
|
|
2127
|
+
reason: typeof reason === 'string' ? reason : '',
|
|
2128
|
+
...((typeof reads === 'boolean' || reads === 'unknown') && {
|
|
2129
|
+
callerReads: reads,
|
|
2130
|
+
}),
|
|
2131
|
+
...(typeof cause === 'string' && { cause }),
|
|
2132
|
+
...(typeof protectedExclusion === 'boolean' && {
|
|
2133
|
+
protectedExclusion,
|
|
2134
|
+
}),
|
|
2135
|
+
...((entry === 'explicit' || entry === 'inherited') && { entry }),
|
|
2136
|
+
},
|
|
2137
|
+
];
|
|
2138
|
+
})
|
|
2139
|
+
: [];
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Write or refresh the profile read grant (`srt-win profile grant`), as
|
|
2143
|
+
* the user of this process, unelevated. Runs only while no sandbox session
|
|
2144
|
+
* or command is running (`profile_grant_blocked_by_session`).
|
|
2145
|
+
*/
|
|
2146
|
+
export async function grantWindowsProfileRead(opts = {}) {
|
|
2147
|
+
const { exe, prependArgs } = opts.srtWin ?? resolveSrtWin();
|
|
2148
|
+
const args = profileGrantArgs(opts);
|
|
2149
|
+
const timeoutMs = opts.timeoutMs ?? PROFILE_GRANT_TIMEOUT_MS;
|
|
2150
|
+
const r = await new Promise((resolve, reject) => {
|
|
2151
|
+
const child = spawn(exe, [...prependArgs, ...args], { windowsHide: true });
|
|
2152
|
+
let timedOut = false;
|
|
2153
|
+
const timer = timeoutMs > 0
|
|
2154
|
+
? setTimeout(() => {
|
|
2155
|
+
timedOut = true;
|
|
2156
|
+
child.kill();
|
|
2157
|
+
}, timeoutMs)
|
|
2158
|
+
: undefined;
|
|
2159
|
+
let stdout = '';
|
|
2160
|
+
let stderr = '';
|
|
2161
|
+
let pending = '';
|
|
2162
|
+
child.stdout?.setEncoding('utf8').on('data', d => (stdout += d));
|
|
2163
|
+
child.stderr?.setEncoding('utf8').on('data', (d) => {
|
|
2164
|
+
stderr += d;
|
|
2165
|
+
pending += d;
|
|
2166
|
+
const lines = pending.split(/\r?\n/);
|
|
2167
|
+
pending = lines.pop() ?? '';
|
|
2168
|
+
for (const line of lines) {
|
|
2169
|
+
if (line.trim() !== '')
|
|
2170
|
+
opts.onProgress?.(line);
|
|
2171
|
+
}
|
|
2172
|
+
});
|
|
2173
|
+
child.stdin?.on('error', () => { }).end();
|
|
2174
|
+
child.once('error', e => {
|
|
2175
|
+
clearTimeout(timer);
|
|
2176
|
+
reject(new WindowsSandboxError('spawn_failed', `srt-win profile: spawn failed: ${e.message}`, 'profile'));
|
|
2177
|
+
});
|
|
2178
|
+
child.once('close', (status, signal) => {
|
|
2179
|
+
clearTimeout(timer);
|
|
2180
|
+
if (pending.trim() !== '')
|
|
2181
|
+
opts.onProgress?.(pending);
|
|
2182
|
+
if (timedOut) {
|
|
2183
|
+
reject(new WindowsSandboxError('srt_win_timeout', `srt-win profile grant timed out after ${timeoutMs}ms; the ` +
|
|
2184
|
+
`grant is recorded as incomplete — run it again, or remove ` +
|
|
2185
|
+
`it with forgetWindowsProfileRead()`, 'profile'));
|
|
2186
|
+
return;
|
|
2187
|
+
}
|
|
2188
|
+
try {
|
|
2189
|
+
throwIfRefusedBesideOthers(args, status, stdout);
|
|
2190
|
+
}
|
|
2191
|
+
catch (e) {
|
|
2192
|
+
reject(e);
|
|
2193
|
+
return;
|
|
2194
|
+
}
|
|
2195
|
+
resolve({ status, signal, stdout: stdout.trim(), stderr: stderr.trim() });
|
|
2196
|
+
});
|
|
2197
|
+
});
|
|
2198
|
+
return profileGrantResult(args, r);
|
|
2199
|
+
}
|
|
2200
|
+
function profileGrantArgs(opts) {
|
|
2201
|
+
const args = ['profile', 'grant', '--json'];
|
|
2202
|
+
for (const e of opts.exclude ?? [])
|
|
2203
|
+
args.push('--exclude', e);
|
|
2204
|
+
if (opts.replaceExclusions)
|
|
2205
|
+
args.push('--replace-excludes');
|
|
2206
|
+
return args;
|
|
2207
|
+
}
|
|
2208
|
+
function profileGrantResult(args, r) {
|
|
2209
|
+
logForDebugging(`[Sandbox Windows] profile grant exit=${r.status}: ${r.stderr.slice(-2000)}`);
|
|
2210
|
+
if (r.status !== 0) {
|
|
2211
|
+
throw new WindowsSandboxError('profile_grant_failed', `srt-win profile grant exited ${r.status}: ` +
|
|
2212
|
+
`${r.stderr.slice(-2000) || r.stdout}`, 'profile');
|
|
2213
|
+
}
|
|
2214
|
+
// stdout carries one JSON object; `--json` puts nothing else there.
|
|
2215
|
+
const raw = parseSrtWinJson(args, r);
|
|
2216
|
+
return {
|
|
2217
|
+
profile: raw.profile,
|
|
2218
|
+
containers: raw.containers,
|
|
2219
|
+
granted: raw.granted,
|
|
2220
|
+
files: raw.files,
|
|
2221
|
+
denied: raw.denied,
|
|
2222
|
+
placeholders: raw.placeholders,
|
|
2223
|
+
writes: raw.writes,
|
|
2224
|
+
unchanged: raw.unchanged,
|
|
2225
|
+
removed: raw.removed,
|
|
2226
|
+
skipped: raw.skipped ?? [],
|
|
2227
|
+
notGranted: grantItems(raw.not_granted),
|
|
2228
|
+
selfClosed: grantItems(raw.self_closed),
|
|
2229
|
+
unverifiable: grantItems(raw.unverifiable),
|
|
2230
|
+
unprotected: grantItems(raw.unprotected),
|
|
2231
|
+
staleAllow: grantItems(raw.stale_allow),
|
|
2232
|
+
forgottenRoots: grantItems(raw.forgotten_roots),
|
|
2233
|
+
elapsedMs: raw.elapsed_ms,
|
|
2234
|
+
};
|
|
2235
|
+
}
|
|
2236
|
+
/**
|
|
2237
|
+
* {@link grantWindowsProfileRead} for the synchronous install: blocks
|
|
2238
|
+
* until `srt-win` exits, and hands `onProgress` its lines only then.
|
|
2239
|
+
*/
|
|
2240
|
+
function grantWindowsProfileReadSync(opts) {
|
|
2241
|
+
const args = profileGrantArgs(opts);
|
|
2242
|
+
const r = runSrtWin(args, {
|
|
2243
|
+
timeoutMs: opts.timeoutMs ?? PROFILE_GRANT_TIMEOUT_MS,
|
|
2244
|
+
srtWin: opts.srtWin,
|
|
2245
|
+
});
|
|
2246
|
+
for (const line of r.stderr.split(/\r?\n/)) {
|
|
2247
|
+
if (line.trim() !== '')
|
|
2248
|
+
opts.onProgress?.(line);
|
|
2249
|
+
}
|
|
2250
|
+
return profileGrantResult(args, r);
|
|
2251
|
+
}
|
|
2252
|
+
/**
|
|
2253
|
+
* Remove the profile read grant (`srt-win profile forget`). Synchronous:
|
|
2254
|
+
* blocks for as long as the removal takes; with an event loop use
|
|
2255
|
+
* {@link forgetWindowsProfileReadAsync}. Throws `profile_forget_failed`.
|
|
2256
|
+
*/
|
|
2257
|
+
export function forgetWindowsProfileRead(opts = {}) {
|
|
2258
|
+
const r = runSrtWin(['profile', 'forget', '--json'], {
|
|
2259
|
+
timeoutMs: opts.timeoutMs ?? PROFILE_GRANT_TIMEOUT_MS,
|
|
2260
|
+
srtWin: opts.srtWin,
|
|
2261
|
+
});
|
|
2262
|
+
profileForgetResult(r);
|
|
2263
|
+
}
|
|
2264
|
+
/** {@link forgetWindowsProfileRead} without blocking the event loop. */
|
|
2265
|
+
export async function forgetWindowsProfileReadAsync(opts = {}) {
|
|
2266
|
+
const r = await runSrtWinAsync(['profile', 'forget', '--json'], {
|
|
2267
|
+
timeoutMs: opts.timeoutMs ?? PROFILE_GRANT_TIMEOUT_MS,
|
|
2268
|
+
srtWin: opts.srtWin,
|
|
2269
|
+
});
|
|
2270
|
+
profileForgetResult(r);
|
|
2271
|
+
}
|
|
2272
|
+
function profileForgetResult(r) {
|
|
2273
|
+
logForDebugging(`[Sandbox Windows] profile forget exit=${r.status}: ` +
|
|
2274
|
+
`${r.stderr || r.stdout}`);
|
|
2275
|
+
if (r.status !== 0) {
|
|
2276
|
+
throw new WindowsSandboxError('profile_forget_failed', `The profile read grant could not be removed (srt-win profile ` +
|
|
2277
|
+
`forget exited ${r.status}): ${r.stderr || r.stdout}`, 'profile');
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
/** `p` for a comparison of profile paths: no `\\?\` prefix, `/`, lower case, no separator at the end. */
|
|
2281
|
+
function profilePathKey(p) {
|
|
2282
|
+
return stripExtendedPathPrefix(p)
|
|
2283
|
+
.replace(/\\/g, '/')
|
|
2284
|
+
.replace(/\/+$/, '')
|
|
2285
|
+
.toLowerCase();
|
|
2286
|
+
}
|
|
2287
|
+
/** One component of a recorded exclusion against one of a path; both lower case. */
|
|
2288
|
+
function exclusionComponentMatches(pattern, name) {
|
|
2289
|
+
if (pattern === '*')
|
|
2290
|
+
return true;
|
|
2291
|
+
if (pattern.endsWith('*'))
|
|
2292
|
+
return name.startsWith(pattern.slice(0, -1));
|
|
2293
|
+
return pattern === name;
|
|
2294
|
+
}
|
|
2295
|
+
/**
|
|
2296
|
+
* Whether something that exists beneath the directory `dir` matches
|
|
2297
|
+
* `rest`, the components of an exclusion that `dir` lies above.
|
|
2298
|
+
*/
|
|
2299
|
+
function exclusionMatchedBeneath(dir, rest, top = true) {
|
|
2300
|
+
if (rest.length === 0)
|
|
2301
|
+
return 'match';
|
|
2302
|
+
let entries;
|
|
2303
|
+
try {
|
|
2304
|
+
const st = fs.lstatSync(dir);
|
|
2305
|
+
if (st.isSymbolicLink()) {
|
|
2306
|
+
// Beneath `dir`, a link is simply not followed. `dir` itself was
|
|
2307
|
+
// resolved a moment ago and should not be one.
|
|
2308
|
+
return top ? { unexamined: `'${dir}' is a link` } : 'none';
|
|
2309
|
+
}
|
|
2310
|
+
if (!st.isDirectory())
|
|
2311
|
+
return 'none';
|
|
2312
|
+
entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
2313
|
+
}
|
|
2314
|
+
catch (e) {
|
|
2315
|
+
if (isAbsentError(e))
|
|
2316
|
+
return 'none';
|
|
2317
|
+
const code = e?.code ?? 'error';
|
|
2318
|
+
return { unexamined: `'${dir}' could not be listed (${code})` };
|
|
2319
|
+
}
|
|
2320
|
+
let unexamined;
|
|
2321
|
+
for (const e of entries) {
|
|
2322
|
+
if (!exclusionComponentMatches(rest[0], normalizeCaseForComparison(e.name))) {
|
|
2323
|
+
continue;
|
|
2324
|
+
}
|
|
2325
|
+
const found = exclusionMatchedBeneath(path.join(dir, e.name), rest.slice(1), false);
|
|
2326
|
+
if (found === 'match')
|
|
2327
|
+
return 'match';
|
|
2328
|
+
if (found !== 'none')
|
|
2329
|
+
unexamined ?? (unexamined = found);
|
|
2330
|
+
}
|
|
2331
|
+
return unexamined ?? 'none';
|
|
2332
|
+
}
|
|
2333
|
+
/**
|
|
2334
|
+
* The paths among `paths` a session must not grant while the profile read
|
|
2335
|
+
* grant exists, with the exclusion each collides with. Paths are resolved
|
|
2336
|
+
* first; fails closed on a path that exists and cannot be listed.
|
|
2337
|
+
*/
|
|
2338
|
+
export function windowsProfileExclusionConflicts(paths, grant, opts = {}) {
|
|
2339
|
+
if (paths.length === 0)
|
|
2340
|
+
return [];
|
|
2341
|
+
const access = opts.write ? 'write' : 'read';
|
|
2342
|
+
const rulesOf = (list, kind) => list.map(e => ({
|
|
2343
|
+
exclusion: e,
|
|
2344
|
+
kind,
|
|
2345
|
+
parts: normalizeCaseForComparison(profilePathKey(e)).split('/'),
|
|
2346
|
+
}));
|
|
2347
|
+
// The ungranted-only directory itself is looked for first, so it is
|
|
2348
|
+
// reported as what it is and not as "above" something inside it.
|
|
2349
|
+
const ungranted = rulesOf(grant.ungrantedOnly, 'ungranted-only');
|
|
2350
|
+
const rules = [
|
|
2351
|
+
...ungranted.map(r => ({ ...r, onlyEqual: true })),
|
|
2352
|
+
...rulesOf(grant.exclusions, 'protected').map(r => ({
|
|
2353
|
+
...r,
|
|
2354
|
+
onlyEqual: false,
|
|
2355
|
+
})),
|
|
2356
|
+
...ungranted.map(r => ({ ...r, onlyEqual: false })),
|
|
2357
|
+
];
|
|
2358
|
+
if (rules.length === 0)
|
|
2359
|
+
return [];
|
|
2360
|
+
const admitted = new Set(opts.write ? [] : (opts.override ?? []).map(windowsPathKey));
|
|
2361
|
+
const out = [];
|
|
2362
|
+
for (const p of paths) {
|
|
2363
|
+
// One guarded look at the path: the comparison key and the
|
|
2364
|
+
// lookups beneath it use the same result.
|
|
2365
|
+
const onDisk = resolveWindowsPath(p);
|
|
2366
|
+
const key = windowsPathKeyOf(p, onDisk);
|
|
2367
|
+
const parts = key.split('/');
|
|
2368
|
+
for (const r of rules) {
|
|
2369
|
+
const shared = Math.min(parts.length, r.parts.length);
|
|
2370
|
+
let related = true;
|
|
2371
|
+
for (let i = 0; related && i < shared; i++) {
|
|
2372
|
+
related = exclusionComponentMatches(r.parts[i], parts[i]);
|
|
2373
|
+
}
|
|
2374
|
+
if (!related)
|
|
2375
|
+
continue;
|
|
2376
|
+
const relation = parts.length === r.parts.length
|
|
2377
|
+
? 'equal'
|
|
2378
|
+
: parts.length > r.parts.length
|
|
2379
|
+
? 'inside'
|
|
2380
|
+
: 'above';
|
|
2381
|
+
if (r.onlyEqual && relation !== 'equal')
|
|
2382
|
+
continue;
|
|
2383
|
+
let unexamined;
|
|
2384
|
+
if (relation === 'above' && r.exclusion.includes('*')) {
|
|
2385
|
+
if (onDisk.state === 'absent')
|
|
2386
|
+
continue;
|
|
2387
|
+
if (onDisk.state === 'resolved') {
|
|
2388
|
+
const found = exclusionMatchedBeneath(onDisk.path, r.parts.slice(parts.length));
|
|
2389
|
+
if (found === 'none')
|
|
2390
|
+
continue;
|
|
2391
|
+
if (found !== 'match')
|
|
2392
|
+
unexamined = found.unexamined;
|
|
2393
|
+
}
|
|
2394
|
+
else {
|
|
2395
|
+
// Never opened (a share, the device namespace) or not
|
|
2396
|
+
// openable: nothing was looked at, so nothing is admitted.
|
|
2397
|
+
unexamined =
|
|
2398
|
+
onDisk.state === 'unprobed'
|
|
2399
|
+
? `'${p}' is not on a local drive and is not examined`
|
|
2400
|
+
: `'${p}' could not be resolved (${onDisk.code})`;
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
if (r.kind === 'ungranted-only') {
|
|
2404
|
+
if (relation === 'inside')
|
|
2405
|
+
continue;
|
|
2406
|
+
}
|
|
2407
|
+
else if (relation !== 'above' && admitted.has(key)) {
|
|
2408
|
+
// An admitted path is still checked against the other
|
|
2409
|
+
// exclusions: it may lie above one of them.
|
|
2410
|
+
continue;
|
|
2411
|
+
}
|
|
2412
|
+
out.push({
|
|
2413
|
+
path: p,
|
|
2414
|
+
exclusion: r.exclusion,
|
|
2415
|
+
kind: r.kind,
|
|
2416
|
+
access,
|
|
2417
|
+
relation,
|
|
2418
|
+
...(unexamined === undefined ? {} : { unexamined }),
|
|
2419
|
+
});
|
|
2420
|
+
break;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
return out;
|
|
2424
|
+
}
|
|
2425
|
+
/**
|
|
2426
|
+
* Variables an embedder may set so a tool reads the real user's files in
|
|
2427
|
+
* place. Empty unless the grant is current; never one `env` already holds.
|
|
2428
|
+
* The library sets none of them itself.
|
|
2429
|
+
*/
|
|
2430
|
+
export function windowsProfileReadEnv(status, env = {}) {
|
|
2431
|
+
if (status.state !== 'current')
|
|
2432
|
+
return {};
|
|
2433
|
+
const supplied = new Set(Object.entries(env)
|
|
2434
|
+
.filter(([, v]) => v !== undefined)
|
|
2435
|
+
.map(([k]) => k.toUpperCase()));
|
|
2436
|
+
const out = {};
|
|
2437
|
+
for (const name of WINDOWS_PROFILE_READ_ENV_VARS) {
|
|
2438
|
+
const v = status.env[name];
|
|
2439
|
+
if (v !== undefined && !supplied.has(name))
|
|
2440
|
+
out[name] = v;
|
|
2441
|
+
}
|
|
2442
|
+
return out;
|
|
2443
|
+
}
|
|
2444
|
+
// ────────────────────────────────────────────────────────────────────
|
|
2445
|
+
// Wrap
|
|
2446
|
+
// ────────────────────────────────────────────────────────────────────
|
|
2447
|
+
/**
|
|
2448
|
+
* `no_proxy` for a sandboxed child with `network.allowLocalBinding`:
|
|
2449
|
+
* the loopback hosts, so proxy-aware clients connect to local servers
|
|
2450
|
+
* directly. Otherwise `no_proxy` is not set at all.
|
|
2451
|
+
*/
|
|
2452
|
+
export const WINDOWS_LOOPBACK_NO_PROXY = 'localhost,127.0.0.1,::1';
|
|
2453
|
+
/**
|
|
2454
|
+
* Build the spawn descriptor for running `command` inside the Windows
|
|
2455
|
+
* sandbox: an `argv` array plus the `env` to spawn it with.
|
|
2456
|
+
*
|
|
2457
|
+
* Caller MUST spawn the result with `{shell: false}` — that is the
|
|
2458
|
+
* security boundary that keeps untrusted bytes off the host's shell
|
|
2459
|
+
* (the inner `cmd.exe /c` runs INSIDE the sandbox; see
|
|
2460
|
+
* `vendor/srt-win-src/src/launch.rs` `build_cmdline` for the passthrough
|
|
2461
|
+
* rationale) — AND with the returned `env`.
|
|
2462
|
+
*
|
|
2463
|
+
* Proxy configuration is single-sourced by {@link generateProxyEnvVars}
|
|
2464
|
+
* (the same canonical builder used on macOS/Linux). `srt-win exec`
|
|
2465
|
+
* takes no `--http-proxy` / `--socks-proxy` flags and synthesizes no
|
|
2466
|
+
* proxy env. The two-hop runner starts with the SANDBOX user's
|
|
2467
|
+
* profile env (`USERPROFILE`/`TEMP` isolated) and overlays exactly
|
|
2468
|
+
* what we pass as `--env` — built here from the broker's `PATH` plus
|
|
2469
|
+
* the generated proxy set.
|
|
2470
|
+
*/
|
|
2471
|
+
export function wrapCommandWithSandboxWindows(p) {
|
|
2472
|
+
const { exe, prependArgs } = p.srtWin ?? resolveSrtWin();
|
|
2473
|
+
// Generated proxy + CA-trust env. Single-sourced here so the
|
|
2474
|
+
// same object feeds (a) the spawn env merge below and (b) the
|
|
2475
|
+
// explicit `--env` overlay for the runner.
|
|
2476
|
+
//
|
|
2477
|
+
// The CA trust-bundle path is emitted with forward slashes:
|
|
2478
|
+
// msys2's POSIX-path conversion leaves `C:/…` alone and every
|
|
2479
|
+
// tool we set the var for (curl, git, node, python, …) accepts
|
|
2480
|
+
// forward slashes on Windows; backslashes would be mangled if
|
|
2481
|
+
// the value passes through a bash command line. Schannel-level
|
|
2482
|
+
// trust comes from the registry write `srt-win user trust-ca`
|
|
2483
|
+
// did at install time; the env-var layer here covers the
|
|
2484
|
+
// OpenSSL-backed tools.
|
|
2485
|
+
const generated = envListToObject(generateProxyEnvVars(p.httpProxyPort, p.socksProxyPort, p.caCertPath?.replace(/\\/g, '/'), p.proxyAuthToken, undefined, encodeSandboxedCommand(attributionKeyFor(p.command, p.commandId))));
|
|
2486
|
+
// TMPDIR is a POSIX path meant for the macOS/Linux FS sandbox — it
|
|
2487
|
+
// serves no purpose on Windows and breaks msys2 tools (mktemp etc.).
|
|
2488
|
+
delete generated.TMPDIR;
|
|
2489
|
+
// NO_PROXY=localhost,127.0.0.1,… is correct on POSIX where seatbelt/
|
|
2490
|
+
// bwrap allow direct loopback: a NO_PROXY match makes the client
|
|
2491
|
+
// connect directly and it works. On Windows the WFP fence blocks
|
|
2492
|
+
// ALL direct connects from the sandbox user — including loopback
|
|
2493
|
+
// outside the proxy-port PERMIT range — so NO_PROXY makes clients
|
|
2494
|
+
// bypass the proxy and hit the fence; every localhost/127.0.0.1
|
|
2495
|
+
// request fails. Consumers currently work around with
|
|
2496
|
+
// `curl --noproxy ""`. Drop NO_PROXY here so localhost goes through
|
|
2497
|
+
// the proxy (which connects on the child's behalf, from the broker's
|
|
2498
|
+
// SID, and is not fenced).
|
|
2499
|
+
delete generated.NO_PROXY;
|
|
2500
|
+
delete generated.no_proxy;
|
|
2501
|
+
// With loopback open the fence permits direct loopback connects, so the
|
|
2502
|
+
// loopback hosts (only: private networks are still fenced) skip the proxy.
|
|
2503
|
+
if (p.allowLoopback && (p.httpProxyPort || p.socksProxyPort)) {
|
|
2504
|
+
generated.no_proxy = WINDOWS_LOOPBACK_NO_PROXY;
|
|
2505
|
+
}
|
|
2506
|
+
// GIT_CONFIG_* set — safe.directory (dubious-ownership) + the
|
|
2507
|
+
// schannel CA knobs. Composed against setEnvVars so a caller
|
|
2508
|
+
// that already emits GIT_CONFIG_COUNT keeps its entries.
|
|
2509
|
+
const gitCfg = buildGitConfigEnv({
|
|
2510
|
+
safeDirs: [
|
|
2511
|
+
p.cwd ?? process.cwd(),
|
|
2512
|
+
...(p.allowWrite ?? []),
|
|
2513
|
+
...(p.gitSafeDirectories ?? []),
|
|
2514
|
+
],
|
|
2515
|
+
schannelCa: p.caCertPath !== undefined,
|
|
2516
|
+
// Schannel cannot acquire credentials under the write-restricted
|
|
2517
|
+
// token; git's OpenSSL backend reads the same GIT_SSL_CAINFO.
|
|
2518
|
+
opensslBackend: true,
|
|
2519
|
+
baseEnv: p.setEnvVars,
|
|
2520
|
+
});
|
|
2521
|
+
const argv = [exe, ...prependArgs, 'exec'];
|
|
2522
|
+
if (p.quiet !== false)
|
|
2523
|
+
argv.push('--quiet');
|
|
2524
|
+
if (p.heldBy !== undefined)
|
|
2525
|
+
argv.push('--held-by', `${p.heldBy}`);
|
|
2526
|
+
argv.push('--write-restricted-token');
|
|
2527
|
+
for (const r of p.writeRoots ?? [])
|
|
2528
|
+
argv.push('--write-root', r);
|
|
2529
|
+
if (p.allowLoopback)
|
|
2530
|
+
argv.push('--allow-loopback');
|
|
2531
|
+
for (const d of p.denyRead ?? [])
|
|
2532
|
+
argv.push('--deny-read', d);
|
|
2533
|
+
for (const a of p.denyReadExcept ?? [])
|
|
2534
|
+
argv.push('--deny-read-except', a);
|
|
2535
|
+
for (const d of p.denyWrite ?? [])
|
|
2536
|
+
argv.push('--deny-write', d);
|
|
2537
|
+
// The two-hop runner starts with the SANDBOX user's profile env
|
|
2538
|
+
// (USERPROFILE/TEMP isolated) and overlays exactly what we pass as
|
|
2539
|
+
// `--env`. The broker does NOT enumerate its own env — the overlay
|
|
2540
|
+
// is built here from the broker's PATH, the mode:'mask' sentinel
|
|
2541
|
+
// set, the generated proxy set, and the GIT_CONFIG_* set.
|
|
2542
|
+
// Sentinels precede `generated` so a caller masking e.g.
|
|
2543
|
+
// `HTTPS_PROXY` cannot break the sandbox's own proxy plumbing —
|
|
2544
|
+
// same precedence as the macOS/Linux `env -u … VAR=…
|
|
2545
|
+
// sandbox-exec` order. `gitCfg` is last so its GIT_CONFIG_COUNT
|
|
2546
|
+
// (which composes against setEnvVars) wins.
|
|
2547
|
+
// Merged ignoring case, as Windows reads names: a caller's
|
|
2548
|
+
// `Https_Proxy` is the same variable as ours. Node's built-in clients
|
|
2549
|
+
// read the proxy variables only with NODE_USE_ENV_PROXY set; it sits in
|
|
2550
|
+
// the first layer, so a caller's value, in any case, wins.
|
|
2551
|
+
const overlay = mergeWindowsEnv({
|
|
2552
|
+
PATH: process.env.PATH,
|
|
2553
|
+
PATHEXT: process.env.PATHEXT,
|
|
2554
|
+
...(p.httpProxyPort ? { NODE_USE_ENV_PROXY: '1' } : {}),
|
|
2555
|
+
}, p.setEnvVars ?? {}, generated, gitCfg);
|
|
2556
|
+
for (const [k, v] of Object.entries(overlay)) {
|
|
2557
|
+
if (v !== undefined)
|
|
2558
|
+
argv.push('--env', `${k}=${v}`);
|
|
2559
|
+
}
|
|
2560
|
+
argv.push('--');
|
|
2561
|
+
// Inner shell: `{exe, args}` from parseWindowsBinShell — the SOLE
|
|
2562
|
+
// normalizer. `p.command` lands as a single argv element; srt-win's
|
|
2563
|
+
// `build_cmdline` MSVCRT-quotes it (or wraps in one outer "…" for
|
|
2564
|
+
// cmd /s) so the inner shell receives it intact. See launch.rs.
|
|
2565
|
+
const sh = p.binShell ?? parseWindowsBinShell(undefined);
|
|
2566
|
+
argv.push(sh.exe, ...sh.args, p.command);
|
|
2567
|
+
// CreateProcessW's lpCommandLine is capped at 32 767 WCHARs.
|
|
2568
|
+
// Node's `shell:false` spawn builds it by MSVCRT-quoting each
|
|
2569
|
+
// argv element and joining with spaces; ~30 000 leaves headroom
|
|
2570
|
+
// for the quote overhead the estimate doesn't model.
|
|
2571
|
+
const cmdlineEstimate = argv.reduce((n, a) => n + a.length + 3, 0);
|
|
2572
|
+
if (cmdlineEstimate > 30000) {
|
|
2573
|
+
throw new WindowsSandboxError('argv_too_long', `Windows sandbox argv is ~${cmdlineEstimate} chars ` +
|
|
2574
|
+
`(CreateProcessW limit is 32 767). Besides the command itself it ` +
|
|
2575
|
+
`carries ${p.denyRead?.length ?? 0} per-command read denies, ` +
|
|
2576
|
+
`${p.denyReadExcept?.length ?? 0} session grants beneath them, ` +
|
|
2577
|
+
`${p.denyWrite?.length ?? 0} write denies and ` +
|
|
2578
|
+
`${p.writeRoots?.length ?? 0} write roots; the command was not ` +
|
|
2579
|
+
`run with fewer.`);
|
|
2580
|
+
}
|
|
2581
|
+
// The two-hop runner starts with a FRESH `srt-sandbox` profile
|
|
2582
|
+
// env (`lpEnvironment = NULL` + `LOGON_WITH_PROFILE`), so the
|
|
2583
|
+
// broker process's environment never reaches the child. The
|
|
2584
|
+
// returned `env` is the spawn env for the broker (srt-win)
|
|
2585
|
+
// process only; the child sees the `--env` overlay built into
|
|
2586
|
+
// `argv` above (PATH/PATHEXT + mode:'mask' sentinels + proxy).
|
|
2587
|
+
const env = { ...process.env, ...generated };
|
|
2588
|
+
return { argv, env };
|
|
2589
|
+
}
|
|
2590
|
+
/**
|
|
2591
|
+
* The one spelling each proxy variable has in a sandboxed command's
|
|
2592
|
+
* environment. Must match `PROXY_NAME_SPELLING` in launch.rs.
|
|
2593
|
+
*/
|
|
2594
|
+
const WINDOWS_PROXY_NAME_SPELLING = [
|
|
2595
|
+
'http_proxy',
|
|
2596
|
+
'https_proxy',
|
|
2597
|
+
'ftp_proxy',
|
|
2598
|
+
'all_proxy',
|
|
2599
|
+
'no_proxy',
|
|
2600
|
+
'grpc_proxy',
|
|
2601
|
+
'RSYNC_PROXY',
|
|
2602
|
+
];
|
|
2603
|
+
/**
|
|
2604
|
+
* Merge environment layers ignoring case, as Windows reads names: a later
|
|
2605
|
+
* layer's entry replaces an earlier one, name and value; an `undefined`
|
|
2606
|
+
* value sets nothing. Two names that differ only by case in one block make
|
|
2607
|
+
* .NET's `Process.Start` throw.
|
|
2608
|
+
*/
|
|
2609
|
+
export function mergeWindowsEnv(...layers) {
|
|
2610
|
+
const byName = new Map();
|
|
2611
|
+
for (const layer of layers) {
|
|
2612
|
+
for (const [name, value] of Object.entries(layer)) {
|
|
2613
|
+
if (value === undefined)
|
|
2614
|
+
continue;
|
|
2615
|
+
const folded = name.toUpperCase();
|
|
2616
|
+
const spelling = WINDOWS_PROXY_NAME_SPELLING.find(n => n.toUpperCase() === folded) ??
|
|
2617
|
+
name;
|
|
2618
|
+
byName.set(folded, [spelling, value]);
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
return Object.fromEntries(byName.values());
|
|
2622
|
+
}
|
|
2623
|
+
/**
|
|
2624
|
+
* Parse a list of `KEY=VALUE` strings (as produced by
|
|
2625
|
+
* {@link generateProxyEnvVars}) into an object. Splits on the FIRST
|
|
2626
|
+
* `=` only, so values containing `=` survive intact.
|
|
2627
|
+
*/
|
|
2628
|
+
function envListToObject(list) {
|
|
2629
|
+
const out = {};
|
|
2630
|
+
for (const entry of list) {
|
|
2631
|
+
const eq = entry.indexOf('=');
|
|
2632
|
+
if (eq === -1)
|
|
2633
|
+
continue;
|
|
2634
|
+
out[entry.slice(0, eq)] = entry.slice(eq + 1);
|
|
2635
|
+
}
|
|
2636
|
+
return out;
|
|
2637
|
+
}
|
|
2638
|
+
// ────────────────────────────────────────────────────────────────────
|
|
2639
|
+
// Dependency / readiness check
|
|
2640
|
+
// ────────────────────────────────────────────────────────────────────
|
|
2641
|
+
/**
|
|
2642
|
+
* Why an existing install cannot be used by this `srt-win` (its setup
|
|
2643
|
+
* marker is another release's; re-run the install), or `undefined`.
|
|
2644
|
+
* An `srt-win` that does not report its setup version is not judged.
|
|
2645
|
+
*/
|
|
2646
|
+
export function windowsSetupVersionMismatch(us, sublayerGuid) {
|
|
2647
|
+
if (us.setupVersion === undefined || us.markerVersion === us.setupVersion) {
|
|
2648
|
+
return undefined;
|
|
2649
|
+
}
|
|
2650
|
+
if (us.markerVersion !== undefined && us.markerVersion > us.setupVersion) {
|
|
2651
|
+
const sl = sublayerGuid ? ` --sublayer-guid ${sublayerGuid}` : '';
|
|
2652
|
+
return (`The Windows sandbox on this machine was set up by a newer ` +
|
|
2653
|
+
`release (setup version ${us.markerVersion}; this release needs ` +
|
|
2654
|
+
`${us.setupVersion}). Use that release, or replace its install ` +
|
|
2655
|
+
`with this one: \`srt-win.exe install --force${sl}\`.\n` +
|
|
2656
|
+
`Nothing is granted or run until then.`);
|
|
2657
|
+
}
|
|
2658
|
+
return (`The Windows sandbox on this machine was set up by a different ` +
|
|
2659
|
+
`release (setup version ${us.markerVersion ?? 'unknown'}; this ` +
|
|
2660
|
+
`release needs ${us.setupVersion}). Re-run the install to upgrade ` +
|
|
2661
|
+
`it in place (one UAC prompt):\n` +
|
|
2662
|
+
windowsInstallCommandLines(windowsInstallFlags({ sublayerGuid }, false)) +
|
|
2663
|
+
`Nothing is granted or run until then.`);
|
|
2664
|
+
}
|
|
2665
|
+
/** The two ways to run the install, with `flags` (see `windowsInstallFlags`). */
|
|
2666
|
+
function windowsInstallCommandLines(flags) {
|
|
2667
|
+
return (` npx sandbox-runtime windows-install${flags}\n` +
|
|
2668
|
+
` — or call installWindowsSandbox(), or run ` +
|
|
2669
|
+
`\`srt-win.exe install${flags}\` directly.\n`);
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
* Install instructions, surfaced verbatim in error messages.
|
|
2673
|
+
*/
|
|
2674
|
+
export function windowsInstallInstructions(install, force = false) {
|
|
2675
|
+
const ctx = typeof install === 'string' ? { sublayerGuid: install } : install;
|
|
2676
|
+
return (`Windows sandbox needs a one-time install (one UAC prompt):\n` +
|
|
2677
|
+
windowsInstallCommandLines(windowsInstallFlags(ctx ?? {}, force)) +
|
|
2678
|
+
`No logout is needed: the WFP filter keys on the dedicated ` +
|
|
2679
|
+
`\`srt-sandbox\` user's SID, so your network is unaffected.`);
|
|
2680
|
+
}
|
|
2681
|
+
function settle(fn) {
|
|
2682
|
+
try {
|
|
2683
|
+
return { status: 'fulfilled', value: fn() };
|
|
2684
|
+
}
|
|
2685
|
+
catch (e) {
|
|
2686
|
+
return { status: 'rejected', reason: e };
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2690
|
+
* Interpret the two probe results into a {@link SandboxDependencyCheck}.
|
|
2691
|
+
* Shared by the sync and async `checkWindowsDependencies*` variants so
|
|
2692
|
+
* both produce byte-identical `errors[]` for the same underlying state.
|
|
2693
|
+
*
|
|
2694
|
+
* `getWfp` is lazy: the sync caller's thunk spawns `wfp status` on
|
|
2695
|
+
* demand (preserving the short-circuit — no second spawn when
|
|
2696
|
+
* `user status` already failed); the async caller has already run
|
|
2697
|
+
* both probes concurrently and its thunk returns the settled result.
|
|
2698
|
+
*/
|
|
2699
|
+
function interpretDependencyProbes(install, user, getWfp) {
|
|
2700
|
+
const { sublayerGuid, allowLoopback } = install;
|
|
2701
|
+
const errors = [];
|
|
2702
|
+
const warnings = [];
|
|
2703
|
+
const mode = (open) => (open ? 'open' : 'closed');
|
|
2704
|
+
let reinstallRequired;
|
|
2705
|
+
let loopbackMismatch;
|
|
2706
|
+
const result = () => ({
|
|
2707
|
+
errors,
|
|
2708
|
+
warnings,
|
|
2709
|
+
...(reinstallRequired && { reinstallRequired }),
|
|
2710
|
+
...(loopbackMismatch && { loopbackMismatch }),
|
|
2711
|
+
});
|
|
2712
|
+
// 2. Sandbox user provisioned + credential readable.
|
|
2713
|
+
if (user.status === 'rejected') {
|
|
2714
|
+
errors.push(`srt-win user status failed: ${user.reason.message}`);
|
|
2715
|
+
return { errors, warnings };
|
|
2716
|
+
}
|
|
2717
|
+
const us = user.value;
|
|
2718
|
+
if (!us.provisioned || !us.credPresent) {
|
|
2719
|
+
errors.push(`Sandbox user is not provisioned (user=${us.provisioned}, ` +
|
|
2720
|
+
`cred=${us.credPresent}). ` +
|
|
2721
|
+
windowsInstallInstructions(install));
|
|
2722
|
+
}
|
|
2723
|
+
else {
|
|
2724
|
+
// Installed, by a release with another setup version: an upgrade,
|
|
2725
|
+
// not a missing sandbox, so its own wording.
|
|
2726
|
+
reinstallRequired = windowsSetupVersionMismatch(us, sublayerGuid);
|
|
2727
|
+
if (reinstallRequired)
|
|
2728
|
+
errors.push(reinstallRequired);
|
|
2729
|
+
}
|
|
2730
|
+
// 2b. Secondary Logon service usable: every launch goes through it.
|
|
2731
|
+
// Field absent (older srt-win) → no opinion.
|
|
2732
|
+
if (us.seclogon === 'disabled' || us.seclogon === 'missing') {
|
|
2733
|
+
errors.push(seclogonDisabledMessage(us.seclogon));
|
|
2734
|
+
}
|
|
2735
|
+
else if (us.seclogon === 'cannot-read') {
|
|
2736
|
+
logForDebugging(`[Sandbox Windows] Secondary Logon (seclogon) state cannot-read; ` +
|
|
2737
|
+
`a launch will show whether it is usable`);
|
|
2738
|
+
}
|
|
2739
|
+
// 3. WFP filters installed under the sublayer. BFE enumeration is
|
|
2740
|
+
// admin-gated; `cannot-read` is informational only — the
|
|
2741
|
+
// BEHAVIORAL check (`verifyWindowsWfpEgress`) runs at
|
|
2742
|
+
// `initialize()` and is what actually fails closed.
|
|
2743
|
+
const wfp = getWfp();
|
|
2744
|
+
if (wfp.status === 'rejected') {
|
|
2745
|
+
errors.push(`srt-win wfp status failed: ${wfp.reason.message}`);
|
|
2746
|
+
return result();
|
|
2747
|
+
}
|
|
2748
|
+
const ws = wfp.value;
|
|
2749
|
+
if (ws.state === 'cannot-read') {
|
|
2750
|
+
logForDebugging(`[Sandbox Windows] wfp status cannot-read (non-elevated): ${ws.hint}`);
|
|
2751
|
+
}
|
|
2752
|
+
else if (ws.state === 'loopback-mismatch') {
|
|
2753
|
+
// The filters in place are not the ones the install recorded.
|
|
2754
|
+
errors.push(`WFP filters under sublayer ${sublayerGuid ?? '(default)'} cannot ` +
|
|
2755
|
+
`be used: their loopback mode ` +
|
|
2756
|
+
`(${ws.allowLoopback ? 'open' : 'closed'}) is not the one the ` +
|
|
2757
|
+
`install recorded. Re-run the install for this configuration ` +
|
|
2758
|
+
`(one UAC prompt):\n ` +
|
|
2759
|
+
windowsInstallCommand(install, true));
|
|
2760
|
+
}
|
|
2761
|
+
else if (ws.state !== 'installed') {
|
|
2762
|
+
// 'absent'. If the user is also not-provisioned, the user-state
|
|
2763
|
+
// error above already gave the right instruction; don't repeat.
|
|
2764
|
+
if (us.provisioned && us.credPresent) {
|
|
2765
|
+
errors.push(`WFP filters not installed under sublayer ` +
|
|
2766
|
+
`${sublayerGuid ?? '(default)'}. ` +
|
|
2767
|
+
windowsInstallInstructions(install));
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
else if (ws.portRange) {
|
|
2771
|
+
logForDebugging(`[Sandbox Windows] WFP installed: ${ws.filters} filters, ` +
|
|
2772
|
+
`proxy port range ${ws.portRange[0]}-${ws.portRange[1]}, ` +
|
|
2773
|
+
`loopback ${mode(ws.allowLoopback)}`);
|
|
2774
|
+
}
|
|
2775
|
+
// 4. The installed loopback mode is the configured one, in either
|
|
2776
|
+
// direction (`undefined`: the caller did not say what is configured).
|
|
2777
|
+
const fenced = us.provisioned &&
|
|
2778
|
+
us.credPresent &&
|
|
2779
|
+
(ws.state === 'installed' || ws.state === 'cannot-read');
|
|
2780
|
+
if (fenced &&
|
|
2781
|
+
allowLoopback !== undefined &&
|
|
2782
|
+
ws.allowLoopback !== allowLoopback) {
|
|
2783
|
+
loopbackMismatch =
|
|
2784
|
+
`WFP filters under sublayer ${sublayerGuid ?? '(default)'} do not ` +
|
|
2785
|
+
`match network.allowLocalBinding (installed: loopback ` +
|
|
2786
|
+
`${mode(ws.allowLoopback)}; configured: ` +
|
|
2787
|
+
`${mode(allowLoopback)}). Re-run the install for this ` +
|
|
2788
|
+
`configuration (one UAC prompt):\n ` +
|
|
2789
|
+
windowsInstallCommand(install, true);
|
|
2790
|
+
errors.push(loopbackMismatch);
|
|
2791
|
+
}
|
|
2792
|
+
else if (fenced && ws.allowLoopback) {
|
|
2793
|
+
// Not an error, and not to be read past: say what is open.
|
|
2794
|
+
warnings.push(WINDOWS_ALLOW_LOOPBACK_EFFECT);
|
|
2795
|
+
}
|
|
2796
|
+
return result();
|
|
2797
|
+
}
|
|
2798
|
+
/**
|
|
2799
|
+
* Check the Windows backend is ready to sandbox. Errors block
|
|
2800
|
+
* `initialize()`; warnings are informational.
|
|
2801
|
+
*
|
|
2802
|
+
* Prefer {@link checkWindowsDependenciesAsync}; this variant
|
|
2803
|
+
* `spawnSync`-blocks the event loop on two `srt-win.exe` spawns
|
|
2804
|
+
* (Windows Defender cold-scan can add seconds).
|
|
2805
|
+
*
|
|
2806
|
+
* @param opts.allowLoopback the configured `network.allowLocalBinding`:
|
|
2807
|
+
* an install with the other loopback mode is an error. Omit it to
|
|
2808
|
+
* skip the comparison.
|
|
2809
|
+
* @param opts.proxyPortRange, opts.sandboxUser the configured install
|
|
2810
|
+
* options, named in the install command an error suggests.
|
|
2811
|
+
*/
|
|
2812
|
+
export function checkWindowsDependencies(opts = {}) {
|
|
2813
|
+
// 1. Binary present. The argless `resolveSrtWin()` throws (no
|
|
2814
|
+
// implicit vendor fallback) — surfaced as a dependency error
|
|
2815
|
+
// telling the caller to thread an explicit path.
|
|
2816
|
+
let srtWin;
|
|
2817
|
+
try {
|
|
2818
|
+
srtWin = opts.srtWin ?? resolveSrtWin();
|
|
2819
|
+
}
|
|
2820
|
+
catch (e) {
|
|
2821
|
+
return { errors: [e.message], warnings: [] };
|
|
2822
|
+
}
|
|
2823
|
+
logForDebugging(`[Sandbox Windows] using srt-win at ${srtWin.exe}`);
|
|
2824
|
+
return interpretDependencyProbes(opts, settle(() => getWindowsSandboxUserStatus({ srtWin })),
|
|
2825
|
+
// Lazy: spawned only if user-status succeeded (short-circuit).
|
|
2826
|
+
() => settle(() => getWindowsWfpStatus({ sublayerGuid: opts.sublayerGuid, srtWin })));
|
|
2827
|
+
}
|
|
2828
|
+
/**
|
|
2829
|
+
* Async twin of {@link checkWindowsDependencies}. Same result for the
|
|
2830
|
+
* same underlying state; runs the two `srt-win` probes concurrently
|
|
2831
|
+
* and never blocks the event loop.
|
|
2832
|
+
*/
|
|
2833
|
+
export async function checkWindowsDependenciesAsync(opts = {}) {
|
|
2834
|
+
let srtWin;
|
|
2835
|
+
try {
|
|
2836
|
+
srtWin = opts.srtWin ?? resolveSrtWin();
|
|
2837
|
+
}
|
|
2838
|
+
catch (e) {
|
|
2839
|
+
return { errors: [e.message], warnings: [] };
|
|
2840
|
+
}
|
|
2841
|
+
logForDebugging(`[Sandbox Windows] using srt-win at ${srtWin.exe}`);
|
|
2842
|
+
const [user, wfp] = await Promise.allSettled([
|
|
2843
|
+
getWindowsSandboxUserStatusAsync({ srtWin }),
|
|
2844
|
+
getWindowsWfpStatusAsync({ sublayerGuid: opts.sublayerGuid, srtWin }),
|
|
2845
|
+
]);
|
|
2846
|
+
return interpretDependencyProbes(opts, user, () => wfp);
|
|
2847
|
+
}
|
|
2848
|
+
//# sourceMappingURL=windows-sandbox-utils.js.map
|