deadbyte-mcp 0.8.7
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/DEADBYTE-MCP-R27-FINAL/R27-ADMIN-CLOSURE.json +22 -0
- package/DEADBYTE-MCP-R27-FINAL/R27-CLEANUP-FINAL-RECEIPT.json +24 -0
- package/DEADBYTE-MCP-R27-FINAL/R27-FINAL-CLOSURE.json +188 -0
- package/DEADBYTE-MCP-R27-FINAL/R27-SLOT-UPDATE-RECEIPT.json +109 -0
- package/DEADBYTE-MCP.cmd +4 -0
- package/MANIFEST.SHA256 +1389 -0
- package/README.txt +260 -0
- package/bin/WORKER-REGISTRY.txt +12 -0
- package/bin/appcontainer-stage.exe +0 -0
- package/bin/appcontainer-stage.obj +0 -0
- package/bin/bootstrap-advapi32.exe +0 -0
- package/bin/bootstrap-advapi32.obj +0 -0
- package/bin/bootstrap-exitcode.exe +0 -0
- package/bin/bootstrap-exitcode.obj +0 -0
- package/bin/bootstrap-kernel32.exe +0 -0
- package/bin/bootstrap-kernel32.obj +0 -0
- package/bin/child-control-probe.exe +0 -0
- package/bin/child-control-probe.obj +0 -0
- package/bin/child-control-stage.exe +0 -0
- package/bin/child-control-stage.obj +0 -0
- package/bin/contained-reverse-worker.exe +0 -0
- package/bin/contained-reverse-worker.obj +0 -0
- package/bin/contained-transform-worker.exe +0 -0
- package/bin/contained-transform-worker.obj +0 -0
- package/bin/containment-probe.exe +0 -0
- package/bin/containment-probe.obj +0 -0
- package/bin/deadbyte-contain.exe +0 -0
- package/bin/deadbyte-contain.obj +0 -0
- package/bin/deadbyte-exec.exe +0 -0
- package/bin/deadbyte-exec.obj +0 -0
- package/bin/deadbyte-process-host.exe +0 -0
- package/bin/deadbyte-process-host.obj +0 -0
- package/bin/deadbyte-tunnel-host.exe +0 -0
- package/bin/deadbyte-tunnel-host.obj +0 -0
- package/conpty-input-observer.obj +0 -0
- package/controller/DEADBYTE-MCP.cmd +5 -0
- package/controller/README.TXT +127 -0
- package/controller/deadbyte-controller.config.psd1.example +60 -0
- package/controller/deadbyte-controller.ps1 +1090 -0
- package/controller/deadbyte-host-policy.json.example +33 -0
- package/controller/deadbyte-process-policy.json +47 -0
- package/docs/ARCHITECTURE.md +168 -0
- package/docs/AUTHORITY.md +56 -0
- package/docs/CHILD-CONTROL.md +31 -0
- package/docs/CONSTRUCTION-LADDER.md +84 -0
- package/docs/CONTAINMENT.md +92 -0
- package/docs/EXECUTION.md +330 -0
- package/docs/NETWORK.md +64 -0
- package/docs/R221-STRICT-OUTPUT-CONTRACT.md +24 -0
- package/docs/REFERENCES.txt +117 -0
- package/docs/TRUST.md +46 -0
- package/docs/V070-HARDENING.md +48 -0
- package/docs/V071-HOST-PLANE.md +113 -0
- package/docs/V073-TUNNEL-STDIO-COMPAT.md +37 -0
- package/docs/V080-AGENT-RUNTIME.md +101 -0
- package/docs/V080-R23-CODING-AGENT.md +50 -0
- package/docs/V080-R24-AUTONOMOUS-PRODUCTION.md +74 -0
- package/docs/V081-R25-MANUS-CONTROL-SEMANTICS.md +145 -0
- package/docs/V082-R26-RUNTIME-SELF-UPDATE.md +86 -0
- package/docs/V083-R27-IMMUTABLE-RELEASE-SLOTS.md +55 -0
- package/docs/V084-R28-PERSISTENT-NAMED-TUNNEL.md +57 -0
- package/docs/V085-R29-MACHINE-IDENTITY.md +99 -0
- package/docs/superpowers/plans/2026-09-14-r30-process-plane.md +178 -0
- package/docs/superpowers/plans/2026-09-14-r31-process-prerequisite.md +132 -0
- package/docs/superpowers/plans/2026-09-15-r33-audit-chain-npx.md +132 -0
- package/docs/superpowers/specs/2026-09-14-r30-r33-machine-control-design.md +214 -0
- package/docs/superpowers/specs/2026-09-14-r31-r33-final-baseline-successor-design.md +133 -0
- package/docs/superpowers/specs/2026-09-15-r33-audit-chain-npx-design.md +145 -0
- package/mcp-server.mjs +1 -0
- package/miniconpty.obj +0 -0
- package/native/appcontainer-stage.cpp +353 -0
- package/native/bootstrap-advapi32.cpp +70 -0
- package/native/bootstrap-exitcode.cpp +6 -0
- package/native/bootstrap-kernel32.cpp +47 -0
- package/native/child-control-probe.cpp +67 -0
- package/native/child-control-stage.cpp +347 -0
- package/native/contained-network-proof.h +118 -0
- package/native/contained-reverse-worker.cpp +299 -0
- package/native/contained-transform-worker.cpp +312 -0
- package/native/containment-probe.cpp +269 -0
- package/native/deadbyte-contain.cpp +625 -0
- package/native/deadbyte-exec.cpp +966 -0
- package/native/deadbyte-process-host.cpp +340 -0
- package/native/deadbyte-tunnel-host.cpp +109 -0
- package/node_modules/@modelcontextprotocol/client/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/client/README.md +26 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-1b6pVpkg.cjs +7531 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-1b6pVpkg.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-97rDpkRx.mjs +7514 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-97rDpkRx.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-FOQRM7up.d.cts +1071 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-FOQRM7up.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-INpkxUi1.d.mts +1071 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-INpkxUi1.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3ZJEoRM.d.mts +74 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3ZJEoRM.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3dvjU3F.cjs +986 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3dvjU3F.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-BylNJ1R5.mjs +981 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-BylNJ1R5.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-doTkZbTr.d.cts +74 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +60 -0
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +42 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BGO_ZrYF.cjs +46 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BGO_ZrYF.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BOhdv1Fc.mjs +34 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BOhdv1Fc.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-CHhhk6PQ.d.cts +2526 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-CHhhk6PQ.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-D4xIIEF6.d.mts +2523 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-D4xIIEF6.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +5690 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +3252 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +3252 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +5481 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +14 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +14 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +21 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +20 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +7063 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +7431 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +217 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +96 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +96 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +212 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +1099 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-mS0yxCL0.d.mts +1099 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-mS0yxCL0.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +5 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +3 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/package.json +166 -0
- package/node_modules/@modelcontextprotocol/core/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/core/README.md +40 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts +8501 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +1678 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +2899 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts +8501 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/package.json +85 -0
- package/node_modules/@modelcontextprotocol/server/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/server/README.md +30 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs +7514 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts +1071 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts +1071 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs +7531 -0
- package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs +986 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts +74 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts +74 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs +981 -0
- package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Bnu9O96Y.cjs +60 -0
- package/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs +42 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts +4043 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-CLhGwQTn.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts +4045 -0
- package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-dBHMsxwf.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +46 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +34 -0
- package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs +2055 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +739 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +739 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs +1870 -0
- package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs +2022 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-D7GmuPnv.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs +1931 -0
- package/node_modules/@modelcontextprotocol/server/dist/mcp-DXXb3Vv3.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +23 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +11 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +11 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +22 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +12 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +4 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +30 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +10 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +10 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +29 -0
- package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs +7606 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs +8104 -0
- package/node_modules/@modelcontextprotocol/server/dist/src-STyD_Vvf.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +564 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +107 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +107 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +562 -0
- package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts +1099 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts +1099 -0
- package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +5 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +3 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +3 -0
- package/node_modules/@modelcontextprotocol/server/package.json +160 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +89 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/eventsource/LICENSE +22 -0
- package/node_modules/eventsource/README.md +167 -0
- package/node_modules/eventsource/dist/index.cjs +273 -0
- package/node_modules/eventsource/dist/index.cjs.map +1 -0
- package/node_modules/eventsource/dist/index.d.cts +332 -0
- package/node_modules/eventsource/dist/index.d.ts +332 -0
- package/node_modules/eventsource/dist/index.js +273 -0
- package/node_modules/eventsource/dist/index.js.map +1 -0
- package/node_modules/eventsource/package.json +130 -0
- package/node_modules/eventsource/src/EventSource.ts +596 -0
- package/node_modules/eventsource/src/errors.ts +141 -0
- package/node_modules/eventsource/src/index.ts +3 -0
- package/node_modules/eventsource/src/types.ts +152 -0
- package/node_modules/eventsource-parser/LICENSE +21 -0
- package/node_modules/eventsource-parser/README.md +157 -0
- package/node_modules/eventsource-parser/dist/index.cjs +177 -0
- package/node_modules/eventsource-parser/dist/index.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/index.d.cts +169 -0
- package/node_modules/eventsource-parser/dist/index.d.ts +169 -0
- package/node_modules/eventsource-parser/dist/index.js +177 -0
- package/node_modules/eventsource-parser/dist/index.js.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.cjs +29 -0
- package/node_modules/eventsource-parser/dist/stream.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.d.cts +134 -0
- package/node_modules/eventsource-parser/dist/stream.d.ts +134 -0
- package/node_modules/eventsource-parser/dist/stream.js +30 -0
- package/node_modules/eventsource-parser/dist/stream.js.map +1 -0
- package/node_modules/eventsource-parser/package.json +92 -0
- package/node_modules/eventsource-parser/src/errors.ts +44 -0
- package/node_modules/eventsource-parser/src/index.ts +8 -0
- package/node_modules/eventsource-parser/src/parse.ts +439 -0
- package/node_modules/eventsource-parser/src/stream.ts +107 -0
- package/node_modules/eventsource-parser/src/types.ts +122 -0
- package/node_modules/eventsource-parser/stream.js +2 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/jose/README.md +150 -0
- package/node_modules/jose/dist/types/index.d.ts +56 -0
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +37 -0
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +54 -0
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +37 -0
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +72 -0
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +43 -0
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +74 -0
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +13 -0
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +17 -0
- package/node_modules/jose/dist/types/jwks/local.d.ts +20 -0
- package/node_modules/jose/dist/types/jwks/remote.d.ts +106 -0
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +25 -0
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +37 -0
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +31 -0
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +37 -0
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +52 -0
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +44 -0
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +41 -0
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +62 -0
- package/node_modules/jose/dist/types/jwt/sign.d.ts +26 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +28 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +38 -0
- package/node_modules/jose/dist/types/key/export.d.ts +19 -0
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +40 -0
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +37 -0
- package/node_modules/jose/dist/types/key/import.d.ts +73 -0
- package/node_modules/jose/dist/types/types.d.ts +871 -0
- package/node_modules/jose/dist/types/util/base64url.d.ts +16 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +10 -0
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +9 -0
- package/node_modules/jose/dist/types/util/errors.d.ts +220 -0
- package/node_modules/jose/dist/webapi/index.js +32 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +9 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +49 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +15 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +65 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +51 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +177 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +33 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +74 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +70 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +149 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +22 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +9 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +32 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +25 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +76 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +74 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +21 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +72 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +18 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +43 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/node_modules/jose/dist/webapi/key/export.js +44 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +52 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +41 -0
- package/node_modules/jose/dist/webapi/key/import.js +61 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +179 -0
- package/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +44 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +134 -0
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +28 -0
- package/node_modules/jose/dist/webapi/lib/deflate.js +52 -0
- package/node_modules/jose/dist/webapi/lib/helpers.js +42 -0
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +26 -0
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +107 -0
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +243 -0
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +142 -0
- package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +20 -0
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +17 -0
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +73 -0
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +85 -0
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +139 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +232 -0
- package/node_modules/jose/dist/webapi/lib/key.js +147 -0
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +10 -0
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +7 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +262 -0
- package/node_modules/jose/dist/webapi/lib/key_options.js +6 -0
- package/node_modules/jose/dist/webapi/lib/options.js +74 -0
- package/node_modules/jose/dist/webapi/lib/signing.js +26 -0
- package/node_modules/jose/dist/webapi/lib/type_checks.js +33 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +39 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +24 -0
- package/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/node_modules/jose/package.json +198 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/pkce-challenge/CHANGELOG.md +114 -0
- package/node_modules/pkce-challenge/LICENSE +21 -0
- package/node_modules/pkce-challenge/README.md +55 -0
- package/node_modules/pkce-challenge/dist/index.browser.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.browser.js +75 -0
- package/node_modules/pkce-challenge/dist/index.node.cjs +83 -0
- package/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.js +78 -0
- package/node_modules/pkce-challenge/package.json +59 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +54 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +68 -0
- package/proof/CONTAINMENT-BUILD.txt +163 -0
- package/proof/MCP-SMOKE-STATUS.txt +9 -0
- package/proof/NODE-SYNTAX.txt +4 -0
- package/proof/PROOF.txt +6 -0
- package/proof/SECRET-SCAN.txt +4 -0
- package/proof/SOURCE-GATES.txt +16 -0
- package/proof/STATUS.txt +11 -0
- package/proof/TARGET-V0313-CONTAINMENT-PASS.sha256 +1 -0
- package/proof/TARGET-V0313-CONTAINMENT-PASS.txt +215 -0
- package/proof/TARGET-V040-CONTAINED-IPC-FAIL.sha256 +1 -0
- package/proof/TARGET-V040-CONTAINED-IPC-FAIL.txt +299 -0
- package/proof/TARGET-V041-CONTAINED-CREATEPROCESS-203.sha256 +1 -0
- package/proof/TARGET-V041-CONTAINED-CREATEPROCESS-203.txt +311 -0
- package/proof/TARGET-V042-CONTAINED-CREATEPROCESS-203.sha256 +1 -0
- package/proof/TARGET-V042-CONTAINED-CREATEPROCESS-203.txt +313 -0
- package/proof/TARGET-V043-CONTAINED-CREATEPROCESS-203.sha256 +1 -0
- package/proof/TARGET-V043-CONTAINED-CREATEPROCESS-203.txt +308 -0
- package/proof/TARGET-V044-CONTAINED-PASS.sha256 +1 -0
- package/proof/TARGET-V044-CONTAINED-PASS.txt +432 -0
- package/proof/TARGET-V045-DUAL-OPERATION-PASS.sha256 +1 -0
- package/proof/TARGET-V045-DUAL-OPERATION-PASS.txt +481 -0
- package/proof/TARGET-V046-FIXED-EXECUTABLE-REGISTRY-PASS.sha256 +1 -0
- package/proof/TARGET-V046-FIXED-EXECUTABLE-REGISTRY-PASS.txt +610 -0
- package/proof/TARGET-V047-RUNTIME-MANIFEST-PASS.sha256 +1 -0
- package/proof/TARGET-V047-RUNTIME-MANIFEST-PASS.txt +642 -0
- package/proof/TARGET-V050-BATCH-GATE-PASS.sha256 +1 -0
- package/proof/TARGET-V050-BATCH-GATE-PASS.txt +713 -0
- package/proof/TESTS.txt +686 -0
- package/proof/TRUST-EPHEMERAL.txt +4 -0
- package/proof/V03-FREEZE.txt +27 -0
- package/proof/V041-IPC-HOTFIX.txt +16 -0
- package/proof/V042-ENV-HOTFIX.txt +15 -0
- package/proof/V043-DRIVE-CWD-HOTFIX.txt +14 -0
- package/proof/V044-LOCALAPPDATA-HOTFIX.txt +18 -0
- package/proof/V045-OPERATION-REGISTRY.txt +7 -0
- package/proof/V046-WORKER-REGISTRY.txt +12 -0
- package/proof/V047-WORKER-MANIFEST.txt +18 -0
- package/proof/V050-BATCH-TRUST-CLOSURE.txt +21 -0
- package/proof/V060-ACTIVE-NETWORK-AUTHORITY.txt +29 -0
- package/proof/V070-NODE-SYNTAX.txt +36 -0
- package/proof/V070-NODE-TESTS.txt +752 -0
- package/proof/V070-PACK-DRY-RUN.txt +126 -0
- package/proof/V070-SOURCE-GATE.txt +30 -0
- package/proof/V070-STATIC-SCAN.txt +4 -0
- package/proof/V070-WINDOWS-GATE-PENDING.txt +25 -0
- package/proof/V071-NODE-SYNTAX.txt +1 -0
- package/proof/V071-NODE-TESTS.txt +796 -0
- package/proof/V071-PACK-DRY-RUN.json +656 -0
- package/proof/V071-SOURCE-GATE.txt +16 -0
- package/proof/V071-WINDOWS-GATE-PENDING.txt +24 -0
- package/proof/V073-NODE-SYNTAX.txt +4 -0
- package/proof/V073-SOURCE-GATE.txt +21 -0
- package/proof/V073-STATIC-SCAN.txt +10 -0
- package/proof/V073-WINDOWS-GATE-PENDING.txt +5 -0
- package/proof/VERIFY.txt +7 -0
- package/proof/WINDOWS-CONTAINED-STATUS.txt +5 -0
- package/proof/WINDOWS-CONTAINMENT-STATUS.txt +3 -0
- package/scripts/autonomous-benchmark.mjs +12 -0
- package/scripts/autonomous-build.ps1 +20 -0
- package/scripts/autonomous-tests.ps1 +9 -0
- package/scripts/build-containment.ps1 +279 -0
- package/scripts/coding-live-smoke.mjs +5 -0
- package/scripts/deferred-slot-operation.mjs +84 -0
- package/scripts/final-closure-verify.mjs +159 -0
- package/scripts/final-closure.mjs +106 -0
- package/scripts/gate-windows.ps1 +42 -0
- package/scripts/init-host-policy.ps1 +121 -0
- package/scripts/refresh-process-policy.mjs +68 -0
- package/scripts/release-manifest.mjs +187 -0
- package/scripts/release-parity.mjs +190 -0
- package/scripts/runtime-self-update.mjs +15 -0
- package/scripts/windows-gate-evidence.mjs +52 -0
- package/src/agent-mcp-tools.mjs +158 -0
- package/src/agent-runtime.mjs +874 -0
- package/src/audit-context.mjs +73 -0
- package/src/audit-verify.mjs +93 -0
- package/src/authority-smoke.mjs +117 -0
- package/src/autonomous-mcp-tools.mjs +118 -0
- package/src/autonomous-output-contracts.mjs +125 -0
- package/src/autonomous-planner-contracts.mjs +73 -0
- package/src/autonomous-planner.mjs +290 -0
- package/src/autonomous-policy.mjs +146 -0
- package/src/autonomous-runtime.mjs +993 -0
- package/src/autonomous-supervisor.mjs +86 -0
- package/src/canonical-json.mjs +17 -0
- package/src/coding-mcp-tools.mjs +143 -0
- package/src/coding-output-contracts.mjs +189 -0
- package/src/coding-plane.mjs +657 -0
- package/src/coding-search.mjs +55 -0
- package/src/coding-task-runtime.mjs +725 -0
- package/src/contained-cli.mjs +30 -0
- package/src/contained-executor.mjs +276 -0
- package/src/contained-result.mjs +149 -0
- package/src/contained-smoke.mjs +101 -0
- package/src/containment-bootstrap.mjs +94 -0
- package/src/containment-child-control.mjs +109 -0
- package/src/containment-construction.mjs +107 -0
- package/src/containment-result.mjs +87 -0
- package/src/containment-smoke.mjs +71 -0
- package/src/deadbyte-cli.mjs +55 -0
- package/src/executor.mjs +158 -0
- package/src/hash.mjs +17 -0
- package/src/host-plane.mjs +423 -0
- package/src/ingress-mode.mjs +22 -0
- package/src/invocation.mjs +34 -0
- package/src/machine-fs-mcp-tools.mjs +80 -0
- package/src/machine-fs-output-contracts.mjs +67 -0
- package/src/machine-fs-smoke-client.mjs +134 -0
- package/src/machine-fs.mjs +475 -0
- package/src/machine-identity.mjs +275 -0
- package/src/machine-mcp-tools.mjs +43 -0
- package/src/machine-output-contracts.mjs +58 -0
- package/src/mcp-contained-smoke-client.mjs +139 -0
- package/src/mcp-host-smoke-client.mjs +136 -0
- package/src/mcp-server.mjs +419 -0
- package/src/mcp-smoke-client.mjs +136 -0
- package/src/native-diff.mjs +403 -0
- package/src/observation-mcp-tools.mjs +44 -0
- package/src/observation-output-contracts.mjs +50 -0
- package/src/observation-runtime.mjs +257 -0
- package/src/observation-smoke-client.mjs +97 -0
- package/src/operation-policy.mjs +19 -0
- package/src/output-contracts.mjs +252 -0
- package/src/path-policy.mjs +91 -0
- package/src/process-mcp-tools.mjs +72 -0
- package/src/process-output-contracts.mjs +79 -0
- package/src/process-policy.mjs +150 -0
- package/src/process-runtime.mjs +297 -0
- package/src/process-smoke-client.mjs +124 -0
- package/src/proof-cli.mjs +23 -0
- package/src/proof-worker.mjs +11 -0
- package/src/receipt.mjs +111 -0
- package/src/release-generation.mjs +233 -0
- package/src/release-slot.mjs +293 -0
- package/src/remote-mcp-autonomous-smoke-client.mjs +138 -0
- package/src/remote-mcp-coding-smoke-client.mjs +111 -0
- package/src/remote-mcp-host-smoke-client.mjs +84 -0
- package/src/remote-mcp-machine-smoke-client.mjs +66 -0
- package/src/remote-mcp-r24-disarmed-smoke-client.mjs +38 -0
- package/src/remote-mcp-r33-parity-client.mjs +177 -0
- package/src/remote-mcp-smoke-client.mjs +162 -0
- package/src/request-identity.mjs +63 -0
- package/src/runtime-identity.mjs +33 -0
- package/src/runtime-update.mjs +961 -0
- package/src/text-policy.mjs +9 -0
- package/src/tool-audit.mjs +261 -0
- package/src/trust-init.mjs +21 -0
- package/src/trust.mjs +82 -0
- package/src/tunnel-stdio-compat-smoke.mjs +142 -0
- package/src/tunnel-stdio-compat.mjs +126 -0
- package/src/verifier-cli.mjs +13 -0
- package/src/verifier.mjs +333 -0
- package/src/version.mjs +6 -0
- package/src/worker-registry.mjs +108 -0
- package/test/DEADBYTE-MCP-WRITE-PROBE.txt +5 -0
- package/test/agent-crash-child.mjs +25 -0
- package/test/agent-crash-worker.mjs +19 -0
- package/test/agent-runtime-adversarial.test.mjs +228 -0
- package/test/agent-runtime-crash.test.mjs +76 -0
- package/test/agent-runtime.test.mjs +124 -0
- package/test/agent-task-receipt.test.mjs +73 -0
- package/test/audit-context.test.mjs +50 -0
- package/test/audit-server-integration.test.mjs +30 -0
- package/test/audit-verify.test.mjs +32 -0
- package/test/autonomous-adversarial.test.mjs +329 -0
- package/test/autonomous-live-fixture.test.mjs +10 -0
- package/test/autonomous-loop.test.mjs +188 -0
- package/test/autonomous-output-contract.test.mjs +24 -0
- package/test/autonomous-runtime.test.mjs +93 -0
- package/test/autonomous-supervisor-integration.test.mjs +106 -0
- package/test/cli-entrypoint.test.mjs +34 -0
- package/test/coding-crash.test.mjs +74 -0
- package/test/coding-observation.test.mjs +62 -0
- package/test/coding-plane-adversarial.test.mjs +130 -0
- package/test/coding-plane.test.mjs +93 -0
- package/test/coding-runtime.test.mjs +165 -0
- package/test/contained.test.mjs +931 -0
- package/test/containment.test.mjs +557 -0
- package/test/controller-r21.test.mjs +28 -0
- package/test/controller-r211.test.mjs +21 -0
- package/test/controller-r212.test.mjs +31 -0
- package/test/controller-r24-dns.test.mjs +14 -0
- package/test/controller-r24.test.mjs +32 -0
- package/test/controller-r27.test.mjs +56 -0
- package/test/controller-r29.test.mjs +25 -0
- package/test/controller-r30.test.mjs +30 -0
- package/test/controller.test.mjs +165 -0
- package/test/core.test.mjs +305 -0
- package/test/deferred-slot-operation-behavior.test.mjs +29 -0
- package/test/deferred-slot-operation.test.mjs +18 -0
- package/test/helpers/coding-crash-child.mjs +22 -0
- package/test/host-plane.test.mjs +129 -0
- package/test/machine-fs-mcp-tools.test.mjs +46 -0
- package/test/machine-fs-runtime.test.mjs +105 -0
- package/test/machine-identity.test.mjs +131 -0
- package/test/machine-mcp-integration.test.mjs +88 -0
- package/test/machine-mcp-tools.test.mjs +77 -0
- package/test/mcp-contained-smoke-isolation.test.mjs +14 -0
- package/test/named-tunnel-host.test.mjs +27 -0
- package/test/native-diff.test.mjs +102 -0
- package/test/observation-integration.test.mjs +56 -0
- package/test/observation-mcp-tools.test.mjs +40 -0
- package/test/observation-runtime.test.mjs +123 -0
- package/test/output-schema.test.mjs +86 -0
- package/test/package-boundary.test.mjs +38 -0
- package/test/process-mcp-tools.test.mjs +71 -0
- package/test/process-native.test.mjs +78 -0
- package/test/process-policy-refresh.test.mjs +64 -0
- package/test/process-policy.test.mjs +118 -0
- package/test/process-release-gate.test.mjs +41 -0
- package/test/process-runtime.test.mjs +184 -0
- package/test/process-supervision.test.mjs +24 -0
- package/test/r33-closeout-regression.test.mjs +109 -0
- package/test/r33-finalization.test.mjs +67 -0
- package/test/release-generation.test.mjs +116 -0
- package/test/release-manifest-windows.test.mjs +89 -0
- package/test/release-slot.test.mjs +122 -0
- package/test/release-smoke-isolation.test.mjs +22 -0
- package/test/release-version.test.mjs +35 -0
- package/test/remote-r24-catalog.test.mjs +75 -0
- package/test/runtime-self-update.test.mjs +280 -0
- package/test/standing-grants.test.mjs +77 -0
- package/test/tool-audit.test.mjs +134 -0
- package/test/tunnel-stdio-compat.test.mjs +163 -0
- package/workspaces/autonomous-live/fixture.txt +1 -0
- package/workspaces/demo/input.txt +1 -0
|
@@ -0,0 +1,931 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { mkdir, mkdtemp, readFile, writeFile } from 'node:fs/promises';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { randomBytes } from 'node:crypto';
|
|
6
|
+
import os from 'node:os';
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
import { writeReceipt } from '../src/receipt.mjs';
|
|
9
|
+
import { verifyReceipt } from '../src/verifier.mjs';
|
|
10
|
+
import { generateTrustKeypair, loadPrivateSigningKey, signReceiptBytes } from '../src/trust.mjs';
|
|
11
|
+
import { sha256Bytes, sha256File } from '../src/hash.mjs';
|
|
12
|
+
import { validateContainedExecutionResult } from '../src/contained-result.mjs';
|
|
13
|
+
import { loadVerifiedWorkerRegistry } from '../src/worker-registry.mjs';
|
|
14
|
+
import { invocationRequestSha256, INVOCATION_SCHEMA } from '../src/invocation.mjs';
|
|
15
|
+
import { createRequestIdentity } from '../src/request-identity.mjs';
|
|
16
|
+
import { operationPolicy } from '../src/operation-policy.mjs';
|
|
17
|
+
import { canonicalJson } from '../src/canonical-json.mjs';
|
|
18
|
+
import { relativeFromRoot } from '../src/path-policy.mjs';
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
async function writeLegacyReceiptV1(args) {
|
|
22
|
+
const { rootReal, operation, inputSourcePath, inputBytes, outputPath, workerPath,
|
|
23
|
+
workerId = 'proof-worker-v1', exitCode, stdout, stderr, execution, signingKey } = args;
|
|
24
|
+
const evidenceDir = path.join(rootReal, 'evidence');
|
|
25
|
+
await mkdir(evidenceDir, { recursive: true });
|
|
26
|
+
const id = randomBytes(12).toString('hex');
|
|
27
|
+
const inputSnapshotRel = `evidence/${id}.input`;
|
|
28
|
+
const stdoutRel = `evidence/${id}.stdout`;
|
|
29
|
+
const stderrRel = `evidence/${id}.stderr`;
|
|
30
|
+
const receiptRel = `evidence/${id}.json`;
|
|
31
|
+
await writeFile(path.join(rootReal, inputSnapshotRel), inputBytes, { flag: 'wx' });
|
|
32
|
+
await writeFile(path.join(rootReal, stdoutRel), stdout, { flag: 'wx' });
|
|
33
|
+
await writeFile(path.join(rootReal, stderrRel), stderr, { flag: 'wx' });
|
|
34
|
+
const body = {
|
|
35
|
+
schema: 'deadbyte.receipt.v1', receipt_id: id, operation, exit_code: exitCode,
|
|
36
|
+
input: { source_path: relativeFromRoot(rootReal, inputSourcePath), snapshot_path: inputSnapshotRel, sha256: sha256Bytes(inputBytes) },
|
|
37
|
+
output: { path: relativeFromRoot(rootReal, outputPath), sha256: await sha256File(outputPath) },
|
|
38
|
+
worker: { id: workerId, sha256: await sha256File(workerPath) },
|
|
39
|
+
stdout: { path: stdoutRel, sha256: sha256Bytes(stdout) },
|
|
40
|
+
stderr: { path: stderrRel, sha256: sha256Bytes(stderr) },
|
|
41
|
+
...(execution === undefined ? {} : { execution })
|
|
42
|
+
};
|
|
43
|
+
const receiptSha256 = sha256Bytes(Buffer.from(canonicalJson(body), 'utf8'));
|
|
44
|
+
const signedBody = { ...body, receipt_sha256: receiptSha256 };
|
|
45
|
+
const receipt = { ...signedBody, attestation: { algorithm: 'ed25519', key_id: signingKey.keyId,
|
|
46
|
+
signature_base64: signReceiptBytes(signingKey.privateKey, Buffer.from(canonicalJson(signedBody), 'utf8')).toString('base64') } };
|
|
47
|
+
const text = `${canonicalJson(receipt)}\n`;
|
|
48
|
+
await writeFile(path.join(rootReal, receiptRel), text, { flag: 'wx' });
|
|
49
|
+
return { receipt, receiptPath: path.join(rootReal, receiptRel), receiptRelativePath: receiptRel };
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function writeTestReceipt(args) {
|
|
53
|
+
if (args.operation === 'contained_transform' && args.execution?.invocation_schema === undefined) {
|
|
54
|
+
return writeLegacyReceiptV1(args);
|
|
55
|
+
}
|
|
56
|
+
let execution = args.execution;
|
|
57
|
+
if (args.operation === 'contained_transform') {
|
|
58
|
+
const policy = operationPolicy(execution.operation);
|
|
59
|
+
execution = {
|
|
60
|
+
...execution,
|
|
61
|
+
operation_policy: {
|
|
62
|
+
max_input_bytes: policy.maxInputBytes,
|
|
63
|
+
max_output_bytes: policy.maxOutputBytes,
|
|
64
|
+
launcher_timeout_ms: policy.launcherTimeoutMs
|
|
65
|
+
},
|
|
66
|
+
pre_export_semantic_verified: true
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const workerSha256 = await sha256File(args.workerPath);
|
|
70
|
+
const completeInvocation = execution?.invocation_schema && execution?.invocation_challenge && execution?.invocation_request_sha256;
|
|
71
|
+
const request = createRequestIdentity({
|
|
72
|
+
operation: args.operation,
|
|
73
|
+
inputSha256: sha256Bytes(args.inputBytes),
|
|
74
|
+
workerId: args.workerId ?? 'proof-worker-v1',
|
|
75
|
+
workerSha256,
|
|
76
|
+
...(completeInvocation ? { containedInvocation: {
|
|
77
|
+
schema: execution.invocation_schema,
|
|
78
|
+
challenge: execution.invocation_challenge,
|
|
79
|
+
requestSha256: execution.invocation_request_sha256
|
|
80
|
+
} } : {})
|
|
81
|
+
});
|
|
82
|
+
return writeReceipt({ ...args, execution, request });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function valid() {
|
|
86
|
+
return {
|
|
87
|
+
status: 'passed',
|
|
88
|
+
backend: 'windows-appcontainer',
|
|
89
|
+
mode: 'appcontainer',
|
|
90
|
+
operation: 'uppercase_ascii',
|
|
91
|
+
invocation_schema: 'deadbyte.invocation.v1',
|
|
92
|
+
invocation_challenge: '1111111111111111111111111111111111111111111111111111111111111111',
|
|
93
|
+
invocation_request_sha256: '2222222222222222222222222222222222222222222222222222222222222222',
|
|
94
|
+
worker_registry: 'compile-time-operation-to-executable',
|
|
95
|
+
worker_id: 'contained-transform-v1',
|
|
96
|
+
worker_executable: 'contained-transform-worker.exe',
|
|
97
|
+
worker_manifest: 'WORKER-REGISTRY.txt',
|
|
98
|
+
worker_manifest_sha256: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
|
99
|
+
worker_manifest_verified: true,
|
|
100
|
+
worker_source_sha256: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
|
|
101
|
+
appcontainer_sid: 'S-1-15-2-test',
|
|
102
|
+
network_capabilities: 0,
|
|
103
|
+
network_policy: 'zero-capabilities-plus-active-loopback-denial',
|
|
104
|
+
network_probe_schema: 'deadbyte.network.loopback.v1',
|
|
105
|
+
network_probe_target: '127.0.0.1',
|
|
106
|
+
network_probe_port: 49152,
|
|
107
|
+
network_probe_host_control_ok: true,
|
|
108
|
+
active_network_denial_ok: true,
|
|
109
|
+
job_assignment: 'atomic-attribute',
|
|
110
|
+
job_breakaway_enabled: false,
|
|
111
|
+
active_process_limit: 1,
|
|
112
|
+
process_memory_limit_bytes: 134217728,
|
|
113
|
+
child_control: 'job-active-process-limit',
|
|
114
|
+
child_process_policy: 'not-used',
|
|
115
|
+
import_transport: 'host-stdin-to-profile-copy',
|
|
116
|
+
export_transport: 'profile-copy-to-host-json',
|
|
117
|
+
workspace_mounted: false,
|
|
118
|
+
worker_environment: 'appcontainer-bootstrap-allowlist-plus-drive-cwd',
|
|
119
|
+
worker_localappdata_present: true,
|
|
120
|
+
worker_environment_allowlist_exact: true,
|
|
121
|
+
worker_drive_current_directory_set: true,
|
|
122
|
+
timed_out: false,
|
|
123
|
+
child_exit_code: 0,
|
|
124
|
+
profile_cleanup_ok: true,
|
|
125
|
+
input_bytes: 12,
|
|
126
|
+
output_bytes: 12,
|
|
127
|
+
output_base64: 'SEVMTE8gV09STEQK',
|
|
128
|
+
proof: {
|
|
129
|
+
status: 'passed',
|
|
130
|
+
token_appcontainer_query_ok: true,
|
|
131
|
+
token_is_appcontainer: true,
|
|
132
|
+
capability_query_ok: true,
|
|
133
|
+
capability_count: 0,
|
|
134
|
+
aap_canary_readable: true,
|
|
135
|
+
aap_mode_evidence_ok: true,
|
|
136
|
+
outside_read_denied: true,
|
|
137
|
+
inside_write_ok: true,
|
|
138
|
+
in_job: true,
|
|
139
|
+
normal_child_execution_denied: true,
|
|
140
|
+
breakaway_child_execution_denied: true,
|
|
141
|
+
network_probe_schema: 'deadbyte.network.loopback.v1',
|
|
142
|
+
network_probe_attempted: true,
|
|
143
|
+
network_probe_target: '127.0.0.1',
|
|
144
|
+
network_probe_port: 49152,
|
|
145
|
+
network_connect_succeeded: false,
|
|
146
|
+
network_connect_error: 10013,
|
|
147
|
+
network_connect_timed_out: false,
|
|
148
|
+
active_network_denial_ok: true,
|
|
149
|
+
input_read_ok: true,
|
|
150
|
+
transform_ok: true,
|
|
151
|
+
output_write_ok: true,
|
|
152
|
+
input_bytes: 12,
|
|
153
|
+
output_bytes: 12,
|
|
154
|
+
operation: 'uppercase_ascii',
|
|
155
|
+
invocation_schema: 'deadbyte.invocation.v1',
|
|
156
|
+
invocation_challenge: '1111111111111111111111111111111111111111111111111111111111111111',
|
|
157
|
+
invocation_request_sha256: '2222222222222222222222222222222222222222222222222222222222222222'
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function bindInvocation(raw, { inputBytes, manifestSha256, workerSourceSha256, challenge = '11'.repeat(32) }) {
|
|
163
|
+
raw.invocation_schema = INVOCATION_SCHEMA;
|
|
164
|
+
raw.invocation_challenge = challenge;
|
|
165
|
+
raw.proof.invocation_schema = INVOCATION_SCHEMA;
|
|
166
|
+
raw.proof.invocation_challenge = challenge;
|
|
167
|
+
raw.invocation_request_sha256 = invocationRequestSha256({
|
|
168
|
+
challenge, operation: raw.operation, inputSha256: sha256Bytes(inputBytes),
|
|
169
|
+
workerManifestSha256: manifestSha256, workerId: raw.worker_id, workerSourceSha256
|
|
170
|
+
});
|
|
171
|
+
raw.proof.invocation_request_sha256 = raw.invocation_request_sha256;
|
|
172
|
+
return raw;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
async function writeRuntimeRegistry(runtime) {
|
|
176
|
+
const launcherPath = path.join(runtime, 'deadbyte-exec.exe');
|
|
177
|
+
const transformWorkerPath = path.join(runtime, 'contained-transform-worker.exe');
|
|
178
|
+
const reverseWorkerPath = path.join(runtime, 'contained-reverse-worker.exe');
|
|
179
|
+
const launcherSha = await sha256File(launcherPath);
|
|
180
|
+
const transformSha = await sha256File(transformWorkerPath);
|
|
181
|
+
const reverseSha = await sha256File(reverseWorkerPath);
|
|
182
|
+
const text = [
|
|
183
|
+
'schema=deadbyte.worker-registry.v1',
|
|
184
|
+
'version=0.6.0',
|
|
185
|
+
'policy=compile-time-operation-to-executable',
|
|
186
|
+
'launcher.executable=deadbyte-exec.exe',
|
|
187
|
+
`launcher.sha256=${launcherSha}`,
|
|
188
|
+
'operation.lowercase_ascii=contained-transform-v1',
|
|
189
|
+
'operation.reverse_bytes=contained-reverse-v1',
|
|
190
|
+
'operation.uppercase_ascii=contained-transform-v1',
|
|
191
|
+
'worker.contained-reverse-v1.executable=contained-reverse-worker.exe',
|
|
192
|
+
`worker.contained-reverse-v1.sha256=${reverseSha}`,
|
|
193
|
+
'worker.contained-transform-v1.executable=contained-transform-worker.exe',
|
|
194
|
+
`worker.contained-transform-v1.sha256=${transformSha}`
|
|
195
|
+
].join('\n') + '\n';
|
|
196
|
+
const manifestPath = path.join(runtime, 'WORKER-REGISTRY.txt');
|
|
197
|
+
await writeFile(manifestPath, text);
|
|
198
|
+
return {
|
|
199
|
+
manifestPath, manifestSha256: sha256Bytes(Buffer.from(text, 'utf8')),
|
|
200
|
+
launcherPath, transformWorkerPath, reverseWorkerPath,
|
|
201
|
+
transformSha, reverseSha
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
test('contained launcher treats anonymous-pipe ERROR_BROKEN_PIPE as normal stdin EOF', async () => {
|
|
207
|
+
const source = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
208
|
+
assert.match(source, /if \(error == ERROR_BROKEN_PIPE\) break;/);
|
|
209
|
+
assert.match(source, /throw WinError\("ReadFile\(stdin\)", error\)/);
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
test('contained executor rejects a launcher-reported truncated stdin import', async () => {
|
|
213
|
+
const executor = await readFile(fileURLToPath(new URL('../src/contained-executor.mjs', import.meta.url)), 'utf8');
|
|
214
|
+
assert.match(executor, /rawResult\.input_bytes !== inputBytes\.length/);
|
|
215
|
+
assert.match(executor, /contained input byte count mismatch/);
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
test('contained invocation request digest binds challenge input operation manifest and worker identity', () => {
|
|
220
|
+
const digestA = invocationRequestSha256({
|
|
221
|
+
challenge: '11'.repeat(32), operation: 'uppercase_ascii', inputSha256: 'aa'.repeat(32),
|
|
222
|
+
workerManifestSha256: 'bb'.repeat(32), workerId: 'contained-transform-v1', workerSourceSha256: 'cc'.repeat(32)
|
|
223
|
+
});
|
|
224
|
+
const digestB = invocationRequestSha256({
|
|
225
|
+
challenge: '12'.repeat(32), operation: 'uppercase_ascii', inputSha256: 'aa'.repeat(32),
|
|
226
|
+
workerManifestSha256: 'bb'.repeat(32), workerId: 'contained-transform-v1', workerSourceSha256: 'cc'.repeat(32)
|
|
227
|
+
});
|
|
228
|
+
assert.equal(digestA, '2ac6df58e73603634b4ba611053708a7b58958ccd9e3f6716365f0411cc4ae72');
|
|
229
|
+
assert.notEqual(digestA, digestB);
|
|
230
|
+
assert.equal(INVOCATION_SCHEMA, 'deadbyte.invocation.v1');
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
test('contained result rejects stale invocation challenge or request digest', () => {
|
|
234
|
+
const r = valid();
|
|
235
|
+
assert.throws(() => validateContainedExecutionResult(r, 'uppercase_ascii', { challenge: '33'.repeat(32), requestSha256: r.invocation_request_sha256 }), /invocation challenge mismatch/);
|
|
236
|
+
assert.throws(() => validateContainedExecutionResult(r, 'uppercase_ascii', { challenge: r.invocation_challenge, requestSha256: '44'.repeat(32) }), /invocation request hash mismatch/);
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
test('native launcher independently recomputes invocation digest before worker launch and workers echo it', async () => {
|
|
240
|
+
const launcher = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
241
|
+
const transform = await readFile(fileURLToPath(new URL('../native/contained-transform-worker.cpp', import.meta.url)), 'utf8');
|
|
242
|
+
const reverse = await readFile(fileURLToPath(new URL('../native/contained-reverse-worker.cpp', import.meta.url)), 'utf8');
|
|
243
|
+
assert.match(launcher, /InvocationRequestSha256/);
|
|
244
|
+
assert.match(launcher, /invocation request digest mismatch before worker launch/);
|
|
245
|
+
assert.match(launcher, /--challenge/);
|
|
246
|
+
assert.match(launcher, /--request-digest/);
|
|
247
|
+
for (const worker of [transform, reverse]) {
|
|
248
|
+
assert.match(worker, /deadbyte\.invocation\.v1/);
|
|
249
|
+
assert.match(worker, /invocationChallenge/);
|
|
250
|
+
assert.match(worker, /invocationRequestSha256/);
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
test('contained executor cross-checks native manifest and selected-worker hashes before signing receipt', async () => {
|
|
255
|
+
const executor = await readFile(fileURLToPath(new URL('../src/contained-executor.mjs', import.meta.url)), 'utf8');
|
|
256
|
+
assert.match(executor, /execution\.worker_manifest_sha256 !== verifiedRegistry\.manifestSha256/);
|
|
257
|
+
assert.match(executor, /execution\.worker_source_sha256 !== worker\.workerSha256/);
|
|
258
|
+
assert.match(executor, /independently verified manifest/);
|
|
259
|
+
assert.match(executor, /independently verified binary/);
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
test('trusted contained host launcher inherits Windows host environment instead of a lossy hand-picked subset', async () => {
|
|
263
|
+
const executor = await readFile(fileURLToPath(new URL('../src/contained-executor.mjs', import.meta.url)), 'utf8');
|
|
264
|
+
assert.doesNotMatch(executor, /minimalEnvironment/);
|
|
265
|
+
assert.doesNotMatch(executor, /env:\s*\{/);
|
|
266
|
+
assert.doesNotMatch(executor, /env:\s*minimalEnvironment/);
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
test('AppContainer worker receives only the fixed bootstrap allowlist plus drive current-directory state', async () => {
|
|
270
|
+
const source = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
271
|
+
assert.match(source, /GetEnvironmentStringsW\(\)/);
|
|
272
|
+
for (const name of ['Path', 'SystemDrive', 'SystemRoot', 'TEMP', 'TMP', 'LOCALAPPDATA']) {
|
|
273
|
+
assert.match(source, new RegExp(`L\"${name}\"`));
|
|
274
|
+
}
|
|
275
|
+
assert.match(source, /bootstrap environment missing LOCALAPPDATA/);
|
|
276
|
+
assert.match(source, /drivePrefix = std::wstring\(L"="\) \+ driveLetter \+ L":="/);
|
|
277
|
+
assert.match(source, /environmentEntries\.push_back\(drivePrefix \+ runDirText\)/);
|
|
278
|
+
assert.match(source, /std::sort\(environmentEntries/);
|
|
279
|
+
assert.match(source, /CreateProcessW\(workerCopy\.c_str\(\), mutableCommand\.data\(\)/);
|
|
280
|
+
assert.match(source, /creationFlags, workerEnvironment\.data\(\), runDir\.c_str\(\)/);
|
|
281
|
+
assert.doesNotMatch(source, /CreateEnvironmentBlock\(&rawWorkerEnvironment, nullptr, FALSE\)/);
|
|
282
|
+
});
|
|
283
|
+
|
|
284
|
+
test('contained launcher reports the exact bootstrap environment policy in runtime evidence', async () => {
|
|
285
|
+
const source = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
286
|
+
assert.ok(source.includes('\\"worker_environment\\":\\"appcontainer-bootstrap-allowlist-plus-drive-cwd'));
|
|
287
|
+
assert.ok(source.includes('\\"worker_localappdata_present\\":true'));
|
|
288
|
+
assert.ok(source.includes('\\"worker_environment_allowlist_exact\\":true'));
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
test('contained execution validator rejects a missing LOCALAPPDATA bootstrap marker', () => {
|
|
292
|
+
const r = valid();
|
|
293
|
+
r.worker_localappdata_present = false;
|
|
294
|
+
assert.throws(() => validateContainedExecutionResult(r), /missing LOCALAPPDATA/);
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
test('contained execution validator rejects a non-exact worker environment allowlist', () => {
|
|
298
|
+
const r = valid();
|
|
299
|
+
r.worker_environment_allowlist_exact = false;
|
|
300
|
+
assert.throws(() => validateContainedExecutionResult(r), /allowlist was not exact/);
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
test('contained execution validator rejects a missing drive-current-directory environment entry', () => {
|
|
304
|
+
const r = valid();
|
|
305
|
+
r.worker_drive_current_directory_set = false;
|
|
306
|
+
assert.throws(() => validateContainedExecutionResult(r), /drive current-directory entry missing/);
|
|
307
|
+
});
|
|
308
|
+
test('contained execution validator accepts the complete fixed-transform invariant set', () => {
|
|
309
|
+
const result = validateContainedExecutionResult(valid());
|
|
310
|
+
assert.equal(result.job_assignment, 'atomic-attribute');
|
|
311
|
+
assert.equal(result.workspace_mounted, false);
|
|
312
|
+
assert.equal(result.proof.transform_ok, true);
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
test('contained execution validator rejects any granted capability', () => {
|
|
316
|
+
const r = valid();
|
|
317
|
+
r.network_capabilities = 1;
|
|
318
|
+
assert.throws(() => validateContainedExecutionResult(r), /capabilities were granted/);
|
|
319
|
+
});
|
|
320
|
+
|
|
321
|
+
test('contained execution validator rejects host workspace mounting', () => {
|
|
322
|
+
const r = valid();
|
|
323
|
+
r.workspace_mounted = true;
|
|
324
|
+
assert.throws(() => validateContainedExecutionResult(r), /workspace was mounted/);
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
test('contained execution validator rejects non-atomic Job assignment', () => {
|
|
328
|
+
const r = valid();
|
|
329
|
+
r.job_assignment = 'post-create';
|
|
330
|
+
assert.throws(() => validateContainedExecutionResult(r), /Job assignment is not atomic/);
|
|
331
|
+
});
|
|
332
|
+
|
|
333
|
+
test('contained execution validator rejects normal child payload execution', () => {
|
|
334
|
+
const r = valid();
|
|
335
|
+
r.proof.normal_child_execution_denied = false;
|
|
336
|
+
assert.throws(() => validateContainedExecutionResult(r), /normal child payload executed/);
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
test('contained execution validator rejects explicit breakaway payload execution', () => {
|
|
340
|
+
const r = valid();
|
|
341
|
+
r.proof.breakaway_child_execution_denied = false;
|
|
342
|
+
assert.throws(() => validateContainedExecutionResult(r), /breakaway child payload executed/);
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
test('contained execution validator rejects a non-AppContainer worker', () => {
|
|
346
|
+
const r = valid();
|
|
347
|
+
r.proof.token_is_appcontainer = false;
|
|
348
|
+
assert.throws(() => validateContainedExecutionResult(r), /worker token is not AppContainer/);
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
test('contained execution source has a compile-time worker registry and no user executable parameter', async () => {
|
|
352
|
+
const executor = await readFile(fileURLToPath(new URL('../src/contained-executor.mjs', import.meta.url)), 'utf8');
|
|
353
|
+
const registry = await readFile(fileURLToPath(new URL('../src/worker-registry.mjs', import.meta.url)), 'utf8');
|
|
354
|
+
const server = await readFile(fileURLToPath(new URL('../src/mcp-server.mjs', import.meta.url)), 'utf8');
|
|
355
|
+
assert.match(registry, /contained-transform-worker\.exe/);
|
|
356
|
+
assert.match(registry, /contained-reverse-worker\.exe/);
|
|
357
|
+
assert.match(registry, /CONTAINED_EXECUTION_REGISTRY/);
|
|
358
|
+
assert.match(registry, /CONTAINED_TRANSFORM_OPERATIONS/);
|
|
359
|
+
assert.match(registry, /uppercase_ascii/);
|
|
360
|
+
assert.match(registry, /lowercase_ascii/);
|
|
361
|
+
assert.match(registry, /reverse_bytes/);
|
|
362
|
+
assert.match(executor, /loadVerifiedWorkerRegistry/);
|
|
363
|
+
assert.match(server, /'contained_transform'/);
|
|
364
|
+
assert.match(server, /z\.enum\(CONTAINED_TRANSFORM_OPERATIONS\)/);
|
|
365
|
+
assert.doesNotMatch(server, /executable:\s*z\./);
|
|
366
|
+
assert.doesNotMatch(executor, /--worker/);
|
|
367
|
+
assert.doesNotMatch(server, /command_run|shell_execute|powershell_run/);
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
test('contained launcher imports by stdin/profile copy and never mounts a host workspace', async () => {
|
|
371
|
+
const source = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
372
|
+
assert.match(source, /ReadStdinBounded/);
|
|
373
|
+
assert.match(source, /WriteBytesNew\(inputPath/);
|
|
374
|
+
assert.match(source, /PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES/);
|
|
375
|
+
assert.match(source, /PROC_THREAD_ATTRIBUTE_JOB_LIST/);
|
|
376
|
+
assert.match(source, /CapabilityCount = 0/);
|
|
377
|
+
assert.match(source, /JOB_OBJECT_LIMIT_ACTIVE_PROCESS/);
|
|
378
|
+
assert.match(source, /workspace_mounted\\\":false/);
|
|
379
|
+
assert.doesNotMatch(source, /PROC_THREAD_ATTRIBUTE_CHILD_PROCESS_POLICY/);
|
|
380
|
+
assert.doesNotMatch(source, /PROCESS_CREATION_CHILD_PROCESS_RESTRICTED/);
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
test('contained workers recheck AppContainer, zero capabilities, canaries, Job and child denial', async () => {
|
|
384
|
+
const transformSource = await readFile(fileURLToPath(new URL('../native/contained-transform-worker.cpp', import.meta.url)), 'utf8');
|
|
385
|
+
const reverseSource = await readFile(fileURLToPath(new URL('../native/contained-reverse-worker.cpp', import.meta.url)), 'utf8');
|
|
386
|
+
for (const source of [transformSource, reverseSource]) for (const token of [
|
|
387
|
+
'TokenIsAppContainer',
|
|
388
|
+
'TokenCapabilities',
|
|
389
|
+
'aapCanary',
|
|
390
|
+
'outsideDenied',
|
|
391
|
+
'IsProcessInJob',
|
|
392
|
+
'CREATE_BREAKAWAY_FROM_JOB',
|
|
393
|
+
'normalDenied',
|
|
394
|
+
'breakawayDenied',
|
|
395
|
+
]) assert.match(source, new RegExp(token));
|
|
396
|
+
assert.match(transformSource, /TransformAscii/);
|
|
397
|
+
assert.match(reverseSource, /TransformBytes/);
|
|
398
|
+
assert.match(reverseSource, /std::reverse/);
|
|
399
|
+
});
|
|
400
|
+
|
|
401
|
+
test('native build produces the contained launcher and worker with static runtime', async () => {
|
|
402
|
+
const build = await readFile(fileURLToPath(new URL('../scripts/build-containment.ps1', import.meta.url)), 'utf8');
|
|
403
|
+
assert.match(build, /contained-launcher/);
|
|
404
|
+
assert.match(build, /contained-worker/);
|
|
405
|
+
assert.match(build, /deadbyte-exec\.exe/);
|
|
406
|
+
assert.match(build, /contained-transform-worker\.exe/);
|
|
407
|
+
assert.match(build, /contained-reverse-worker\.exe/);
|
|
408
|
+
assert.match(build, /\$ContainedLauncherCommand = 'cl \{0\} \/MT/);
|
|
409
|
+
assert.match(build, /\$ContainedWorkerCommand = 'cl \{0\} \/MT/);
|
|
410
|
+
assert.match(build, /\$ContainedReverseWorkerCommand = 'cl \{0\} \/MT/);
|
|
411
|
+
assert.match(build, /Assert-NoDynamicRuntime -Name 'contained-launcher'/);
|
|
412
|
+
assert.match(build, /Assert-NoDynamicRuntime -Name 'contained-worker'/);
|
|
413
|
+
assert.match(build, /Assert-NoDynamicRuntime -Name 'contained-reverse-worker'/);
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
test('native build emits a deterministic worker registry manifest and launcher verifies it before execution', async () => {
|
|
417
|
+
const build = await readFile(fileURLToPath(new URL('../scripts/build-containment.ps1', import.meta.url)), 'utf8');
|
|
418
|
+
const launcher = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
419
|
+
assert.match(build, /WORKER-REGISTRY\.txt/);
|
|
420
|
+
assert.match(build, /schema=deadbyte\.worker-registry\.v1/);
|
|
421
|
+
assert.match(build, /worker_registry_manifest_sha256/);
|
|
422
|
+
assert.match(build, /bcrypt\.lib/);
|
|
423
|
+
assert.match(launcher, /VerifyWorkerRegistryManifest/);
|
|
424
|
+
assert.match(launcher, /BCryptHashData/);
|
|
425
|
+
assert.match(launcher, /copied worker hash does not match verified worker registry manifest/);
|
|
426
|
+
assert.match(launcher, /worker_manifest_sha256/);
|
|
427
|
+
});
|
|
428
|
+
|
|
429
|
+
test('V0.7 contained execution has compile-time budgets and a pre-export semantic gate', async () => {
|
|
430
|
+
const policy = await readFile(fileURLToPath(new URL('../src/operation-policy.mjs', import.meta.url)), 'utf8');
|
|
431
|
+
const executor = await readFile(fileURLToPath(new URL('../src/contained-executor.mjs', import.meta.url)), 'utf8');
|
|
432
|
+
assert.match(policy, /maxInputBytes: 1024 \* 1024/);
|
|
433
|
+
assert.match(policy, /maxOutputBytes: 1024 \* 1024/);
|
|
434
|
+
assert.match(policy, /launcherTimeoutMs: 15000/);
|
|
435
|
+
assert.match(executor, /verifyPreExportSemantics/);
|
|
436
|
+
assert.match(executor, /contained pre-export semantic verification failed/);
|
|
437
|
+
assert.match(executor, /pre_export_semantic_verified: true/);
|
|
438
|
+
assert.match(executor, /operation_policy/);
|
|
439
|
+
});
|
|
440
|
+
|
|
441
|
+
test('receipt and verifier bind contained worker, launcher and independent transform semantics', async () => {
|
|
442
|
+
const receipt = await readFile(fileURLToPath(new URL('../src/receipt.mjs', import.meta.url)), 'utf8');
|
|
443
|
+
const verifier = await readFile(fileURLToPath(new URL('../src/verifier.mjs', import.meta.url)), 'utf8');
|
|
444
|
+
assert.match(receipt, /workerId/);
|
|
445
|
+
assert.match(receipt, /execution/);
|
|
446
|
+
assert.match(verifier, /contained-transform-v1/);
|
|
447
|
+
assert.match(verifier, /contained-reverse-v1/);
|
|
448
|
+
assert.match(verifier, /reverse_bytes/);
|
|
449
|
+
assert.match(verifier, /launcher hash mismatch/);
|
|
450
|
+
assert.match(verifier, /transformAscii/);
|
|
451
|
+
assert.match(verifier, /lowercase_ascii/);
|
|
452
|
+
assert.match(verifier, /contained transform semantic mismatch/);
|
|
453
|
+
});
|
|
454
|
+
|
|
455
|
+
test('MCP protocol smoke accepts only the base or base-plus-host catalog and excludes agent tools', async () => {
|
|
456
|
+
const smoke = await readFile(fileURLToPath(new URL('../src/mcp-smoke-client.mjs', import.meta.url)), 'utf8');
|
|
457
|
+
for (const name of ['contained_transform', 'evidence_verify', 'file_read', 'proof_execute', 'workspace_open']) assert.match(smoke, new RegExp(name));
|
|
458
|
+
for (const name of ['host_exec', 'host_file_read', 'host_file_write']) assert.match(smoke, new RegExp(name));
|
|
459
|
+
assert.match(smoke, /allowedCatalogs/);
|
|
460
|
+
assert.match(smoke, /baseTools/);
|
|
461
|
+
assert.match(smoke, /privilegedTools/);
|
|
462
|
+
assert.doesNotMatch(smoke, /agent_task_/);
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
test('contained receipt verifies fixed runtime hashes and independently recomputed transform semantics', async () => {
|
|
467
|
+
const root = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v04-contained-receipt-'));
|
|
468
|
+
const runtime = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v04-runtime-'));
|
|
469
|
+
const trust = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v04-trust-'));
|
|
470
|
+
const inputPath = path.join(root, 'input.txt');
|
|
471
|
+
const outputPath = path.join(root, 'output.txt');
|
|
472
|
+
const workerPath = path.join(runtime, 'contained-transform-worker.exe');
|
|
473
|
+
const reverseWorkerPath = path.join(runtime, 'contained-reverse-worker.exe');
|
|
474
|
+
const launcherPath = path.join(runtime, 'deadbyte-exec.exe');
|
|
475
|
+
await writeFile(inputPath, 'hello world\n');
|
|
476
|
+
await writeFile(outputPath, 'HELLO WORLD\n');
|
|
477
|
+
await writeFile(workerPath, 'FAKE-CONTAINED-WORKER\n');
|
|
478
|
+
await writeFile(reverseWorkerPath, 'FAKE-REVERSE-WORKER\n');
|
|
479
|
+
await writeFile(launcherPath, 'FAKE-CONTAINED-LAUNCHER\n');
|
|
480
|
+
const registry = await writeRuntimeRegistry(runtime);
|
|
481
|
+
const keys = await generateTrustKeypair({
|
|
482
|
+
privateKeyPath: path.join(trust, 'private.pem'),
|
|
483
|
+
publicKeyPath: path.join(trust, 'public.pem')
|
|
484
|
+
});
|
|
485
|
+
const signingKey = await loadPrivateSigningKey(keys.privateKeyPath);
|
|
486
|
+
const inputBytes = Buffer.from('hello world\n');
|
|
487
|
+
const raw = valid();
|
|
488
|
+
raw.worker_manifest_sha256 = registry.manifestSha256;
|
|
489
|
+
raw.worker_source_sha256 = registry.transformSha;
|
|
490
|
+
bindInvocation(raw, { inputBytes, manifestSha256: registry.manifestSha256, workerSourceSha256: registry.transformSha, challenge: '21'.repeat(32) });
|
|
491
|
+
const execution = validateContainedExecutionResult(raw);
|
|
492
|
+
execution.launcher_sha256 = await sha256File(launcherPath);
|
|
493
|
+
execution.output_sha256 = sha256Bytes(Buffer.from('HELLO WORLD\n'));
|
|
494
|
+
|
|
495
|
+
const receipt = await writeTestReceipt({
|
|
496
|
+
rootReal: root,
|
|
497
|
+
operation: 'contained_transform',
|
|
498
|
+
inputSourcePath: inputPath,
|
|
499
|
+
inputBytes,
|
|
500
|
+
outputPath,
|
|
501
|
+
workerPath,
|
|
502
|
+
workerId: 'contained-transform-v1',
|
|
503
|
+
exitCode: 0,
|
|
504
|
+
stdout: Buffer.from('{"status":"passed"}\n'),
|
|
505
|
+
stderr: Buffer.alloc(0),
|
|
506
|
+
execution,
|
|
507
|
+
signingKey
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
const checked = await verifyReceipt({
|
|
511
|
+
workspacePath: root,
|
|
512
|
+
receiptPath: receipt.receiptRelativePath,
|
|
513
|
+
verifyKeyPath: keys.publicKeyPath,
|
|
514
|
+
_runtimePaths: {
|
|
515
|
+
proofWorkerPath: workerPath,
|
|
516
|
+
containedTransformWorkerPath: workerPath,
|
|
517
|
+
containedReverseWorkerPath: reverseWorkerPath,
|
|
518
|
+
containedLauncherPath: launcherPath
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
assert.equal(checked.ok, true, JSON.stringify(checked));
|
|
522
|
+
assert.equal(checked.containment_verified, true);
|
|
523
|
+
|
|
524
|
+
await writeFile(outputPath, 'HELLO world\n');
|
|
525
|
+
const tampered = await verifyReceipt({
|
|
526
|
+
workspacePath: root,
|
|
527
|
+
receiptPath: receipt.receiptRelativePath,
|
|
528
|
+
verifyKeyPath: keys.publicKeyPath,
|
|
529
|
+
_runtimePaths: {
|
|
530
|
+
proofWorkerPath: workerPath,
|
|
531
|
+
containedTransformWorkerPath: workerPath,
|
|
532
|
+
containedReverseWorkerPath: reverseWorkerPath,
|
|
533
|
+
containedLauncherPath: launcherPath
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
assert.deepEqual(tampered, { ok: false, reason: 'contained transform semantic mismatch' });
|
|
537
|
+
});
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
test('independent verifier rejects invocation digest tamper and partial invocation evidence', async () => {
|
|
541
|
+
const root = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v050-invocation-receipt-'));
|
|
542
|
+
const runtime = path.join(root, 'runtime');
|
|
543
|
+
await (await import('node:fs/promises')).mkdir(runtime, { recursive: true });
|
|
544
|
+
const launcherPath = path.join(runtime, 'deadbyte-exec.exe');
|
|
545
|
+
const workerPath = path.join(runtime, 'contained-transform-worker.exe');
|
|
546
|
+
const reverseWorkerPath = path.join(runtime, 'contained-reverse-worker.exe');
|
|
547
|
+
await writeFile(launcherPath, 'LAUNCHER\n');
|
|
548
|
+
await writeFile(workerPath, 'WORKER\n');
|
|
549
|
+
await writeFile(reverseWorkerPath, 'REVERSE\n');
|
|
550
|
+
const registry = await writeRuntimeRegistry(runtime);
|
|
551
|
+
const inputPath = path.join(root, 'input.txt');
|
|
552
|
+
const outputPath = path.join(root, 'output.txt');
|
|
553
|
+
const inputBytes = Buffer.from('Hello\n');
|
|
554
|
+
const outputBytes = Buffer.from('HELLO\n');
|
|
555
|
+
await writeFile(inputPath, inputBytes);
|
|
556
|
+
await writeFile(outputPath, outputBytes);
|
|
557
|
+
const keys = await generateTrustKeypair({ privateKeyPath: path.join(root, 'private.pem'), publicKeyPath: path.join(root, 'public.pem') });
|
|
558
|
+
const signing = await loadPrivateSigningKey(keys.privateKeyPath);
|
|
559
|
+
const raw = valid();
|
|
560
|
+
raw.input_bytes = inputBytes.length; raw.output_bytes = outputBytes.length;
|
|
561
|
+
raw.proof.input_bytes = inputBytes.length; raw.proof.output_bytes = outputBytes.length;
|
|
562
|
+
raw.worker_manifest_sha256 = registry.manifestSha256; raw.worker_source_sha256 = registry.transformSha;
|
|
563
|
+
raw.invocation_challenge = 'ab'.repeat(32); raw.proof.invocation_challenge = raw.invocation_challenge;
|
|
564
|
+
raw.invocation_request_sha256 = invocationRequestSha256({ challenge: raw.invocation_challenge, operation: raw.operation, inputSha256: sha256Bytes(inputBytes), workerManifestSha256: registry.manifestSha256, workerId: raw.worker_id, workerSourceSha256: registry.transformSha });
|
|
565
|
+
raw.proof.invocation_request_sha256 = raw.invocation_request_sha256;
|
|
566
|
+
const execution = validateContainedExecutionResult(raw);
|
|
567
|
+
execution.launcher_sha256 = await sha256File(launcherPath); execution.output_sha256 = sha256Bytes(outputBytes);
|
|
568
|
+
const receiptResult = await writeTestReceipt({ rootReal: root, operation: 'contained_transform', inputSourcePath: inputPath, inputBytes, outputPath, workerPath, workerId: raw.worker_id, exitCode: 0, stdout: Buffer.from('{}\n'), stderr: Buffer.alloc(0), execution, signingKey: signing });
|
|
569
|
+
const runtimePaths = { proofWorkerPath: workerPath, containedTransformWorkerPath: workerPath, containedReverseWorkerPath: reverseWorkerPath, containedLauncherPath: launcherPath };
|
|
570
|
+
const checked = await verifyReceipt({ workspacePath: root, receiptPath: receiptResult.receiptRelativePath, verifyKeyPath: keys.publicKeyPath, _runtimePaths: runtimePaths });
|
|
571
|
+
assert.equal(checked.ok, true);
|
|
572
|
+
|
|
573
|
+
const tamperedExecution = { ...execution, invocation_request_sha256: 'ff'.repeat(32), proof: { ...execution.proof, invocation_request_sha256: 'ff'.repeat(32) } };
|
|
574
|
+
const tamperedReceipt = await writeTestReceipt({ rootReal: root, operation: 'contained_transform', inputSourcePath: inputPath, inputBytes, outputPath, workerPath, workerId: raw.worker_id, exitCode: 0, stdout: Buffer.from('{}\n'), stderr: Buffer.alloc(0), execution: tamperedExecution, signingKey: signing });
|
|
575
|
+
const bad = await verifyReceipt({ workspacePath: root, receiptPath: tamperedReceipt.receiptRelativePath, verifyKeyPath: keys.publicKeyPath, _runtimePaths: runtimePaths });
|
|
576
|
+
assert.deepEqual(bad, { ok: false, reason: 'invocation request digest mismatch' });
|
|
577
|
+
|
|
578
|
+
const partialExecution = { ...execution }; delete partialExecution.invocation_request_sha256;
|
|
579
|
+
await assert.rejects(
|
|
580
|
+
() => writeTestReceipt({ rootReal: root, operation: 'contained_transform', inputSourcePath: inputPath, inputBytes, outputPath, workerPath, workerId: raw.worker_id, exitCode: 0, stdout: Buffer.from('{}\n'), stderr: Buffer.alloc(0), execution: partialExecution, signingKey: signing }),
|
|
581
|
+
/request contained invocation binding mismatch/
|
|
582
|
+
);
|
|
583
|
+
});
|
|
584
|
+
|
|
585
|
+
test('independent verifier preserves pre-V0.4.7 contained receipt compatibility but rejects partial manifest evidence', async () => {
|
|
586
|
+
const root = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v047-legacy-receipt-'));
|
|
587
|
+
const runtime = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v047-legacy-runtime-'));
|
|
588
|
+
const trust = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v047-legacy-trust-'));
|
|
589
|
+
const inputPath = path.join(root, 'input.txt');
|
|
590
|
+
const outputPath = path.join(root, 'output.txt');
|
|
591
|
+
const workerPath = path.join(runtime, 'contained-transform-worker.exe');
|
|
592
|
+
const reverseWorkerPath = path.join(runtime, 'contained-reverse-worker.exe');
|
|
593
|
+
const launcherPath = path.join(runtime, 'deadbyte-exec.exe');
|
|
594
|
+
await writeFile(inputPath, 'legacy\n');
|
|
595
|
+
await writeFile(outputPath, 'LEGACY\n');
|
|
596
|
+
await writeFile(workerPath, 'LEGACY-TRANSFORM-WORKER\n');
|
|
597
|
+
await writeFile(reverseWorkerPath, 'LEGACY-REVERSE-WORKER\n');
|
|
598
|
+
await writeFile(launcherPath, 'LEGACY-LAUNCHER\n');
|
|
599
|
+
const keys = await generateTrustKeypair({ privateKeyPath: path.join(trust, 'private.pem'), publicKeyPath: path.join(trust, 'public.pem') });
|
|
600
|
+
const signingKey = await loadPrivateSigningKey(keys.privateKeyPath);
|
|
601
|
+
const execution = validateContainedExecutionResult(valid());
|
|
602
|
+
delete execution.worker_manifest;
|
|
603
|
+
delete execution.worker_manifest_sha256;
|
|
604
|
+
delete execution.worker_manifest_verified;
|
|
605
|
+
delete execution.worker_source_sha256;
|
|
606
|
+
delete execution.invocation_schema;
|
|
607
|
+
delete execution.invocation_challenge;
|
|
608
|
+
delete execution.invocation_request_sha256;
|
|
609
|
+
delete execution.proof.invocation_schema;
|
|
610
|
+
delete execution.proof.invocation_challenge;
|
|
611
|
+
delete execution.proof.invocation_request_sha256;
|
|
612
|
+
for (const field of ['network_policy', 'network_probe_schema', 'network_probe_target', 'network_probe_port', 'network_probe_host_control_ok', 'active_network_denial_ok']) delete execution[field];
|
|
613
|
+
for (const field of ['network_probe_schema', 'network_probe_attempted', 'network_probe_target', 'network_probe_port', 'network_connect_succeeded', 'network_connect_error', 'network_connect_timed_out', 'active_network_denial_ok']) delete execution.proof[field];
|
|
614
|
+
execution.launcher_sha256 = await sha256File(launcherPath);
|
|
615
|
+
execution.output_sha256 = sha256Bytes(Buffer.from('LEGACY\n'));
|
|
616
|
+
const receipt = await writeTestReceipt({
|
|
617
|
+
rootReal: root, operation: 'contained_transform', inputSourcePath: inputPath,
|
|
618
|
+
inputBytes: Buffer.from('legacy\n'), outputPath, workerPath, workerId: 'contained-transform-v1',
|
|
619
|
+
exitCode: 0, stdout: Buffer.from('{\"status\":\"passed\"}\n'), stderr: Buffer.alloc(0), execution, signingKey
|
|
620
|
+
});
|
|
621
|
+
const runtimePaths = { proofWorkerPath: workerPath, containedTransformWorkerPath: workerPath, containedReverseWorkerPath: reverseWorkerPath, containedLauncherPath: launcherPath };
|
|
622
|
+
const checked = await verifyReceipt({ workspacePath: root, receiptPath: receipt.receiptRelativePath, verifyKeyPath: keys.publicKeyPath, _runtimePaths: runtimePaths });
|
|
623
|
+
assert.equal(checked.ok, true, JSON.stringify(checked));
|
|
624
|
+
assert.equal(checked.active_network_denial_verified, false);
|
|
625
|
+
|
|
626
|
+
const partialExecution = { ...execution, worker_manifest: 'WORKER-REGISTRY.txt' };
|
|
627
|
+
const partialReceipt = await writeTestReceipt({
|
|
628
|
+
rootReal: root, operation: 'contained_transform', inputSourcePath: inputPath,
|
|
629
|
+
inputBytes: Buffer.from('legacy\n'), outputPath, workerPath, workerId: 'contained-transform-v1',
|
|
630
|
+
exitCode: 0, stdout: Buffer.from('{\"status\":\"passed\"}\n'), stderr: Buffer.alloc(0), execution: partialExecution, signingKey
|
|
631
|
+
});
|
|
632
|
+
const partial = await verifyReceipt({ workspacePath: root, receiptPath: partialReceipt.receiptRelativePath, verifyKeyPath: keys.publicKeyPath, _runtimePaths: runtimePaths });
|
|
633
|
+
assert.deepEqual(partial, { ok: false, reason: 'partial worker manifest evidence' });
|
|
634
|
+
|
|
635
|
+
const partialNetworkExecution = { ...execution, network_policy: 'zero-capabilities-plus-active-loopback-denial' };
|
|
636
|
+
const partialNetworkReceipt = await writeTestReceipt({
|
|
637
|
+
rootReal: root, operation: 'contained_transform', inputSourcePath: inputPath,
|
|
638
|
+
inputBytes: Buffer.from('legacy\n'), outputPath, workerPath, workerId: 'contained-transform-v1',
|
|
639
|
+
exitCode: 0, stdout: Buffer.from('{"status":"passed"}\n'), stderr: Buffer.alloc(0), execution: partialNetworkExecution, signingKey
|
|
640
|
+
});
|
|
641
|
+
const partialNetwork = await verifyReceipt({ workspacePath: root, receiptPath: partialNetworkReceipt.receiptRelativePath, verifyKeyPath: keys.publicKeyPath, _runtimePaths: runtimePaths });
|
|
642
|
+
assert.deepEqual(partialNetwork, { ok: false, reason: 'partial active network evidence' });
|
|
643
|
+
});
|
|
644
|
+
|
|
645
|
+
test('contained operation registry accepts lowercase_ascii and rejects unknown operations', () => {
|
|
646
|
+
const lower = valid();
|
|
647
|
+
lower.operation = 'lowercase_ascii';
|
|
648
|
+
lower.proof.operation = 'lowercase_ascii';
|
|
649
|
+
assert.equal(validateContainedExecutionResult(lower, 'lowercase_ascii').operation, 'lowercase_ascii');
|
|
650
|
+
assert.throws(() => validateContainedExecutionResult(lower, 'rot13'), /unsupported expected operation/);
|
|
651
|
+
});
|
|
652
|
+
|
|
653
|
+
test('native launcher uses a compile-time operation-to-executable registry', async () => {
|
|
654
|
+
const launcher = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
655
|
+
const transformWorker = await readFile(fileURLToPath(new URL('../native/contained-transform-worker.cpp', import.meta.url)), 'utf8');
|
|
656
|
+
const reverseWorker = await readFile(fileURLToPath(new URL('../native/contained-reverse-worker.cpp', import.meta.url)), 'utf8');
|
|
657
|
+
assert.match(launcher, /ResolveWorkerSpec/);
|
|
658
|
+
assert.match(launcher, /contained-transform-v1/);
|
|
659
|
+
assert.match(launcher, /contained-reverse-v1/);
|
|
660
|
+
assert.match(launcher, /contained-transform-worker\.exe/);
|
|
661
|
+
assert.match(launcher, /contained-reverse-worker\.exe/);
|
|
662
|
+
assert.match(transformWorker, /uppercase_ascii/);
|
|
663
|
+
assert.match(transformWorker, /lowercase_ascii/);
|
|
664
|
+
assert.match(reverseWorker, /reverse_bytes/);
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
test('contained execution validator binds operation to fixed worker identity and executable', () => {
|
|
668
|
+
const wrongId = valid();
|
|
669
|
+
wrongId.worker_id = 'contained-reverse-v1';
|
|
670
|
+
assert.throws(() => validateContainedExecutionResult(wrongId), /worker id mismatch/);
|
|
671
|
+
|
|
672
|
+
const wrongExe = valid();
|
|
673
|
+
wrongExe.worker_executable = 'contained-reverse-worker.exe';
|
|
674
|
+
assert.throws(() => validateContainedExecutionResult(wrongExe), /worker executable mismatch/);
|
|
675
|
+
|
|
676
|
+
const reverse = valid();
|
|
677
|
+
reverse.operation = 'reverse_bytes';
|
|
678
|
+
reverse.worker_id = 'contained-reverse-v1';
|
|
679
|
+
reverse.worker_executable = 'contained-reverse-worker.exe';
|
|
680
|
+
reverse.proof.operation = 'reverse_bytes';
|
|
681
|
+
assert.equal(validateContainedExecutionResult(reverse, 'reverse_bytes').worker_id, 'contained-reverse-v1');
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
test('build-generated worker registry manifest binds launcher and both worker hashes and rejects tamper', async () => {
|
|
685
|
+
const runtime = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v047-registry-'));
|
|
686
|
+
await writeFile(path.join(runtime, 'deadbyte-exec.exe'), 'LAUNCHER\n');
|
|
687
|
+
await writeFile(path.join(runtime, 'contained-transform-worker.exe'), 'TRANSFORM\n');
|
|
688
|
+
await writeFile(path.join(runtime, 'contained-reverse-worker.exe'), 'REVERSE\n');
|
|
689
|
+
const expected = await writeRuntimeRegistry(runtime);
|
|
690
|
+
const checked = await loadVerifiedWorkerRegistry({ binDir: runtime });
|
|
691
|
+
assert.equal(checked.manifestSha256, expected.manifestSha256);
|
|
692
|
+
assert.equal(checked.workers['contained-transform-v1'].sha256, expected.transformSha);
|
|
693
|
+
assert.equal(checked.workers['contained-reverse-v1'].sha256, expected.reverseSha);
|
|
694
|
+
await writeFile(path.join(runtime, 'contained-reverse-worker.exe'), 'REVERSE-TAMPERED\n');
|
|
695
|
+
await assert.rejects(() => loadVerifiedWorkerRegistry({ binDir: runtime }), /worker\.contained-reverse-v1\.sha256/);
|
|
696
|
+
});
|
|
697
|
+
|
|
698
|
+
test('contained execution validator rejects missing or altered worker manifest evidence', () => {
|
|
699
|
+
const missing = valid();
|
|
700
|
+
missing.worker_manifest_verified = false;
|
|
701
|
+
assert.throws(() => validateContainedExecutionResult(missing), /worker manifest was not verified/);
|
|
702
|
+
const badHash = valid();
|
|
703
|
+
badHash.worker_manifest_sha256 = 'xyz';
|
|
704
|
+
assert.throws(() => validateContainedExecutionResult(badHash), /worker manifest hash missing/);
|
|
705
|
+
});
|
|
706
|
+
|
|
707
|
+
test('MCP contained_transform schema is a compile-time operation enum with no executable or invocation-control surface', async () => {
|
|
708
|
+
const server = await readFile(fileURLToPath(new URL('../src/mcp-server.mjs', import.meta.url)), 'utf8');
|
|
709
|
+
assert.match(server, /z\.enum\(CONTAINED_TRANSFORM_OPERATIONS\)/);
|
|
710
|
+
assert.equal((server.match(/inputSchema: z\.strictObject\(\{/g) ?? []).length, 8);
|
|
711
|
+
assert.match(server, /if \(hostPolicy\)/);
|
|
712
|
+
for (const name of ['host_file_read', 'host_file_write', 'host_exec']) assert.match(server, new RegExp(`'${name}'`));
|
|
713
|
+
assert.doesNotMatch(server, /inputSchema: z\.object\(\{/);
|
|
714
|
+
assert.doesNotMatch(server, /executable:\s*z\.|argv:\s*z\.|environment:\s*z\.|challenge:\s*z\.|request_digest:\s*z\.|worker_id:\s*z\./);
|
|
715
|
+
});
|
|
716
|
+
|
|
717
|
+
test('R27 Windows batch gate builds native payload before freezing and verifying the candidate', async () => {
|
|
718
|
+
const gate = await readFile(fileURLToPath(new URL('../scripts/gate-windows.ps1', import.meta.url)), 'utf8');
|
|
719
|
+
for (const stage of ['test', 'mcp:smoke', 'mcp:agent:smoke', 'containment:build', 'manifest:write', 'manifest:verify', 'authority:smoke', 'containment:smoke', 'contained:smoke', 'mcp:contained:smoke']) assert.match(gate, new RegExp(stage.replace(':', '\\:')));
|
|
720
|
+
assert.ok(gate.indexOf("'containment-build'") < gate.indexOf("'release-manifest-write'"));
|
|
721
|
+
assert.ok(gate.indexOf("'release-manifest-write'") < gate.indexOf("'tests'"));
|
|
722
|
+
assert.match(gate, /npm\.cmd/);
|
|
723
|
+
assert.doesNotMatch(gate, /&&|\|\|/);
|
|
724
|
+
assert.match(gate, /WINDOWS BATCH GATE: PASS/);
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
test('contained receipt verifies lowercase_ascii semantics and rejects semantic tamper', async () => {
|
|
729
|
+
const root = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v045-contained-lower-receipt-'));
|
|
730
|
+
const runtime = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v045-runtime-'));
|
|
731
|
+
const trust = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v045-trust-'));
|
|
732
|
+
const inputPath = path.join(root, 'input.txt');
|
|
733
|
+
const outputPath = path.join(root, 'output.txt');
|
|
734
|
+
const workerPath = path.join(runtime, 'contained-transform-worker.exe');
|
|
735
|
+
const reverseWorkerPath = path.join(runtime, 'contained-reverse-worker.exe');
|
|
736
|
+
const launcherPath = path.join(runtime, 'deadbyte-exec.exe');
|
|
737
|
+
await writeFile(inputPath, 'HELLO WORLD\n');
|
|
738
|
+
await writeFile(outputPath, 'hello world\n');
|
|
739
|
+
await writeFile(workerPath, 'FAKE-CONTAINED-WORKER\n');
|
|
740
|
+
await writeFile(reverseWorkerPath, 'FAKE-REVERSE-WORKER\n');
|
|
741
|
+
await writeFile(launcherPath, 'FAKE-CONTAINED-LAUNCHER\n');
|
|
742
|
+
const registry = await writeRuntimeRegistry(runtime);
|
|
743
|
+
const keys = await generateTrustKeypair({
|
|
744
|
+
privateKeyPath: path.join(trust, 'private.pem'),
|
|
745
|
+
publicKeyPath: path.join(trust, 'public.pem')
|
|
746
|
+
});
|
|
747
|
+
const signingKey = await loadPrivateSigningKey(keys.privateKeyPath);
|
|
748
|
+
const inputBytes = Buffer.from('HELLO WORLD\n');
|
|
749
|
+
const lower = valid();
|
|
750
|
+
lower.operation = 'lowercase_ascii';
|
|
751
|
+
lower.proof.operation = 'lowercase_ascii';
|
|
752
|
+
lower.worker_manifest_sha256 = registry.manifestSha256;
|
|
753
|
+
lower.worker_source_sha256 = registry.transformSha;
|
|
754
|
+
bindInvocation(lower, { inputBytes, manifestSha256: registry.manifestSha256, workerSourceSha256: registry.transformSha, challenge: '31'.repeat(32) });
|
|
755
|
+
const execution = validateContainedExecutionResult(lower, 'lowercase_ascii');
|
|
756
|
+
execution.launcher_sha256 = await sha256File(launcherPath);
|
|
757
|
+
execution.output_sha256 = sha256Bytes(Buffer.from('hello world\n'));
|
|
758
|
+
|
|
759
|
+
const receipt = await writeTestReceipt({
|
|
760
|
+
rootReal: root,
|
|
761
|
+
operation: 'contained_transform',
|
|
762
|
+
inputSourcePath: inputPath,
|
|
763
|
+
inputBytes,
|
|
764
|
+
outputPath,
|
|
765
|
+
workerPath,
|
|
766
|
+
workerId: 'contained-transform-v1',
|
|
767
|
+
exitCode: 0,
|
|
768
|
+
stdout: Buffer.from('{"status":"passed"}\n'),
|
|
769
|
+
stderr: Buffer.alloc(0),
|
|
770
|
+
execution,
|
|
771
|
+
signingKey
|
|
772
|
+
});
|
|
773
|
+
|
|
774
|
+
const checked = await verifyReceipt({
|
|
775
|
+
workspacePath: root,
|
|
776
|
+
receiptPath: receipt.receiptRelativePath,
|
|
777
|
+
verifyKeyPath: keys.publicKeyPath,
|
|
778
|
+
_runtimePaths: {
|
|
779
|
+
proofWorkerPath: workerPath,
|
|
780
|
+
containedTransformWorkerPath: workerPath,
|
|
781
|
+
containedReverseWorkerPath: reverseWorkerPath,
|
|
782
|
+
containedLauncherPath: launcherPath
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
assert.equal(checked.ok, true, JSON.stringify(checked));
|
|
786
|
+
assert.equal(checked.containment_verified, true);
|
|
787
|
+
|
|
788
|
+
await writeFile(outputPath, 'HELLO world\n');
|
|
789
|
+
const tampered = await verifyReceipt({
|
|
790
|
+
workspacePath: root,
|
|
791
|
+
receiptPath: receipt.receiptRelativePath,
|
|
792
|
+
verifyKeyPath: keys.publicKeyPath,
|
|
793
|
+
_runtimePaths: {
|
|
794
|
+
proofWorkerPath: workerPath,
|
|
795
|
+
containedTransformWorkerPath: workerPath,
|
|
796
|
+
containedReverseWorkerPath: reverseWorkerPath,
|
|
797
|
+
containedLauncherPath: launcherPath
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
assert.deepEqual(tampered, { ok: false, reason: 'contained transform semantic mismatch' });
|
|
801
|
+
});
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
test('contained receipt verifies reverse_bytes through the fixed reverse worker and rejects tamper', async () => {
|
|
805
|
+
const root = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v046-contained-reverse-receipt-'));
|
|
806
|
+
const runtime = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v046-runtime-'));
|
|
807
|
+
const trust = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-v046-trust-'));
|
|
808
|
+
const inputPath = path.join(root, 'input.bin');
|
|
809
|
+
const outputPath = path.join(root, 'output.bin');
|
|
810
|
+
const transformWorkerPath = path.join(runtime, 'contained-transform-worker.exe');
|
|
811
|
+
const reverseWorkerPath = path.join(runtime, 'contained-reverse-worker.exe');
|
|
812
|
+
const launcherPath = path.join(runtime, 'deadbyte-exec.exe');
|
|
813
|
+
const inputBytes = Buffer.from('abc123\n');
|
|
814
|
+
const outputBytes = Buffer.from(inputBytes).reverse();
|
|
815
|
+
await writeFile(inputPath, inputBytes);
|
|
816
|
+
await writeFile(outputPath, outputBytes);
|
|
817
|
+
await writeFile(transformWorkerPath, 'FAKE-TRANSFORM-WORKER\n');
|
|
818
|
+
await writeFile(reverseWorkerPath, 'FAKE-REVERSE-WORKER\n');
|
|
819
|
+
await writeFile(launcherPath, 'FAKE-CONTAINED-LAUNCHER\n');
|
|
820
|
+
const registry = await writeRuntimeRegistry(runtime);
|
|
821
|
+
const keys = await generateTrustKeypair({
|
|
822
|
+
privateKeyPath: path.join(trust, 'private.pem'),
|
|
823
|
+
publicKeyPath: path.join(trust, 'public.pem')
|
|
824
|
+
});
|
|
825
|
+
const signingKey = await loadPrivateSigningKey(keys.privateKeyPath);
|
|
826
|
+
const reverse = valid();
|
|
827
|
+
reverse.operation = 'reverse_bytes';
|
|
828
|
+
reverse.worker_id = 'contained-reverse-v1';
|
|
829
|
+
reverse.worker_executable = 'contained-reverse-worker.exe';
|
|
830
|
+
reverse.proof.operation = 'reverse_bytes';
|
|
831
|
+
reverse.input_bytes = inputBytes.length;
|
|
832
|
+
reverse.output_bytes = outputBytes.length;
|
|
833
|
+
reverse.proof.input_bytes = inputBytes.length;
|
|
834
|
+
reverse.proof.output_bytes = outputBytes.length;
|
|
835
|
+
reverse.worker_manifest_sha256 = registry.manifestSha256;
|
|
836
|
+
reverse.worker_source_sha256 = registry.reverseSha;
|
|
837
|
+
bindInvocation(reverse, { inputBytes, manifestSha256: registry.manifestSha256, workerSourceSha256: registry.reverseSha, challenge: '41'.repeat(32) });
|
|
838
|
+
const execution = validateContainedExecutionResult(reverse, 'reverse_bytes');
|
|
839
|
+
execution.launcher_sha256 = await sha256File(launcherPath);
|
|
840
|
+
execution.output_sha256 = sha256Bytes(outputBytes);
|
|
841
|
+
|
|
842
|
+
const receipt = await writeTestReceipt({
|
|
843
|
+
rootReal: root,
|
|
844
|
+
operation: 'contained_transform',
|
|
845
|
+
inputSourcePath: inputPath,
|
|
846
|
+
inputBytes,
|
|
847
|
+
outputPath,
|
|
848
|
+
workerPath: reverseWorkerPath,
|
|
849
|
+
workerId: 'contained-reverse-v1',
|
|
850
|
+
exitCode: 0,
|
|
851
|
+
stdout: Buffer.from('{"status":"passed"}\n'),
|
|
852
|
+
stderr: Buffer.alloc(0),
|
|
853
|
+
execution,
|
|
854
|
+
signingKey
|
|
855
|
+
});
|
|
856
|
+
|
|
857
|
+
const runtimePaths = {
|
|
858
|
+
proofWorkerPath: transformWorkerPath,
|
|
859
|
+
containedTransformWorkerPath: transformWorkerPath,
|
|
860
|
+
containedReverseWorkerPath: reverseWorkerPath,
|
|
861
|
+
containedLauncherPath: launcherPath
|
|
862
|
+
};
|
|
863
|
+
const checked = await verifyReceipt({
|
|
864
|
+
workspacePath: root, receiptPath: receipt.receiptRelativePath,
|
|
865
|
+
verifyKeyPath: keys.publicKeyPath, _runtimePaths: runtimePaths
|
|
866
|
+
});
|
|
867
|
+
assert.equal(checked.ok, true, JSON.stringify(checked));
|
|
868
|
+
assert.equal(checked.containment_verified, true);
|
|
869
|
+
|
|
870
|
+
await writeFile(outputPath, Buffer.from('321cba\n'));
|
|
871
|
+
const tampered = await verifyReceipt({
|
|
872
|
+
workspacePath: root, receiptPath: receipt.receiptRelativePath,
|
|
873
|
+
verifyKeyPath: keys.publicKeyPath, _runtimePaths: runtimePaths
|
|
874
|
+
});
|
|
875
|
+
assert.deepEqual(tampered, { ok: false, reason: 'contained transform semantic mismatch' });
|
|
876
|
+
});
|
|
877
|
+
|
|
878
|
+
test('active network proof uses a host-positive-control loopback listener and requires AppContainer denial', async () => {
|
|
879
|
+
const launcher = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
880
|
+
const transform = await readFile(fileURLToPath(new URL('../native/contained-transform-worker.cpp', import.meta.url)), 'utf8');
|
|
881
|
+
const reverse = await readFile(fileURLToPath(new URL('../native/contained-reverse-worker.cpp', import.meta.url)), 'utf8');
|
|
882
|
+
const helper = await readFile(fileURLToPath(new URL('../native/contained-network-proof.h', import.meta.url)), 'utf8');
|
|
883
|
+
assert.match(launcher, /CreateLoopbackCanary/);
|
|
884
|
+
assert.match(launcher, /connect\(control\.get\(\)/);
|
|
885
|
+
assert.match(launcher, /accept\(out\.listener\.get\(\)/);
|
|
886
|
+
assert.match(launcher, /--network-probe-port/);
|
|
887
|
+
assert.match(launcher, /zero-capabilities-plus-active-loopback-denial/);
|
|
888
|
+
assert.match(helper, /ProbeLoopbackTcp/);
|
|
889
|
+
assert.match(helper, /INADDR_LOOPBACK/);
|
|
890
|
+
assert.match(helper, /out\.denial_ok = .* !out\.connect_succeeded/);
|
|
891
|
+
for (const worker of [transform, reverse]) {
|
|
892
|
+
assert.match(worker, /networkProbe\.denial_ok/);
|
|
893
|
+
assert.match(worker, /deadbyte\.network\.loopback\.v1/);
|
|
894
|
+
assert.match(worker, /network_connect_succeeded/);
|
|
895
|
+
assert.match(worker, /active_network_denial_ok/);
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
|
|
899
|
+
test('contained execution validator fails closed on active network evidence', () => {
|
|
900
|
+
const readable = valid();
|
|
901
|
+
readable.proof.network_connect_succeeded = true;
|
|
902
|
+
readable.proof.network_connect_error = 0;
|
|
903
|
+
readable.proof.active_network_denial_ok = false;
|
|
904
|
+
assert.throws(() => validateContainedExecutionResult(readable), /forbidden loopback network connection/);
|
|
905
|
+
|
|
906
|
+
const noControl = valid();
|
|
907
|
+
noControl.network_probe_host_control_ok = false;
|
|
908
|
+
assert.throws(() => validateContainedExecutionResult(noControl), /host loopback positive control failed/);
|
|
909
|
+
|
|
910
|
+
const wrongPort = valid();
|
|
911
|
+
wrongPort.proof.network_probe_port += 1;
|
|
912
|
+
assert.throws(() => validateContainedExecutionResult(wrongPort), /worker network probe port mismatch/);
|
|
913
|
+
});
|
|
914
|
+
|
|
915
|
+
test('execution authority is strict at MCP and native argv boundaries', async () => {
|
|
916
|
+
const server = await readFile(fileURLToPath(new URL('../src/mcp-server.mjs', import.meta.url)), 'utf8');
|
|
917
|
+
const launcher = await readFile(fileURLToPath(new URL('../native/deadbyte-exec.cpp', import.meta.url)), 'utf8');
|
|
918
|
+
const helper = await readFile(fileURLToPath(new URL('../native/contained-network-proof.h', import.meta.url)), 'utf8');
|
|
919
|
+
const authority = await readFile(fileURLToPath(new URL('../src/authority-smoke.mjs', import.meta.url)), 'utf8');
|
|
920
|
+
assert.match(server, /inputSchema: z\.strictObject\(/);
|
|
921
|
+
assert.doesNotMatch(server, /worker_id:\s*z\./);
|
|
922
|
+
assert.doesNotMatch(server, /executable:\s*z\./);
|
|
923
|
+
assert.doesNotMatch(server, /argv:\s*z\./);
|
|
924
|
+
assert.match(launcher, /argc != 7/);
|
|
925
|
+
assert.match(launcher, /invalid fixed argument contract/);
|
|
926
|
+
assert.match(helper, /HasExactContainedWorkerArguments/);
|
|
927
|
+
assert.match(authority, /--worker/);
|
|
928
|
+
assert.match(authority, /extra executable field/);
|
|
929
|
+
assert.match(authority, /extra argv field/);
|
|
930
|
+
assert.match(authority, /path-shaped operation/);
|
|
931
|
+
});
|