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,329 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { randomBytes } from 'node:crypto';
|
|
4
|
+
import { mkdtemp, mkdir, readFile, rm, writeFile } from 'node:fs/promises';
|
|
5
|
+
import os from 'node:os';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { generateTrustKeypair } from '../src/trust.mjs';
|
|
8
|
+
import { createCodingRuntime, loadCodingPolicy } from '../src/coding-plane.mjs';
|
|
9
|
+
import { loadAutonomousPolicy } from '../src/autonomous-policy.mjs';
|
|
10
|
+
import { createNativeDiffRuntime } from '../src/native-diff.mjs';
|
|
11
|
+
import { createAutonomousRuntime } from '../src/autonomous-runtime.mjs';
|
|
12
|
+
import { buildPlannerPrompt, parsePlannerDecision } from '../src/autonomous-planner.mjs';
|
|
13
|
+
|
|
14
|
+
const nonce = () => randomBytes(32).toString('hex');
|
|
15
|
+
async function fixture(delegates = {}) {
|
|
16
|
+
const root = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-r24-adv-'));
|
|
17
|
+
const project = path.join(root, 'project'); const trust = path.join(root, 'trust');
|
|
18
|
+
await mkdir(project); await mkdir(trust); await writeFile(path.join(project,'x.txt'),'x\n');
|
|
19
|
+
const keys = await generateTrustKeypair({ privateKeyPath:path.join(trust,'private.pem'), publicKeyPath:path.join(trust,'public.pem') });
|
|
20
|
+
const codingPath = path.join(root,'coding.json');
|
|
21
|
+
await writeFile(codingPath, JSON.stringify({ schema:'deadbyte.coding-policy.v1', enabled:true,
|
|
22
|
+
lease_file:path.join(root,'coding-lease.json'), evidence_dir:path.join(root,'coding-evidence'),
|
|
23
|
+
roots:{ project:{ path:project, read:true, write:true, exec:false, deny_paths:[] } }, commands:{} }));
|
|
24
|
+
const codingPolicy = await loadCodingPolicy(codingPath); await writeFile(codingPolicy.lease_file, JSON.stringify({ schema:'deadbyte.coding-lease.v1', policy_sha256:codingPolicy.policy_sha256,
|
|
25
|
+
instance_nonce:nonce(), root_ids:['project'], armed_at_utc:new Date().toISOString(), expires_at_utc:new Date(Date.now()+3600000).toISOString() }));
|
|
26
|
+
const autonomousPath = path.join(root,'autonomous.json');
|
|
27
|
+
await writeFile(autonomousPath, JSON.stringify({ schema:'deadbyte.autonomous-policy.v1', enabled:true,
|
|
28
|
+
lease_file:path.join(root,'autonomous-lease.json'), evidence_dir:path.join(root,'autonomous-evidence'), root_ids:['project'],
|
|
29
|
+
coding_policy_sha256:codingPolicy.policy_sha256, planner:{ backend:'client_sampling', max_tokens:2048 }, profiles:{},
|
|
30
|
+
limits:{ max_iterations:8, max_mutations:8, max_wall_ms:600000, max_context_bytes:262144, max_diff_bytes:262144, max_files_per_diff:4 } }));
|
|
31
|
+
const policy = await loadAutonomousPolicy(autonomousPath,codingPolicy);
|
|
32
|
+
await writeFile(policy.lease_file, JSON.stringify({ schema:'deadbyte.autonomous-lease.v1', policy_sha256:policy.policy_sha256,
|
|
33
|
+
instance_nonce:nonce(), root_ids:['project'], armed_at_utc:new Date().toISOString(), expires_at_utc:new Date(Date.now()+1800000).toISOString() }));
|
|
34
|
+
const codingRuntime = createCodingRuntime({ policy:codingPolicy, signingKeyPath:keys.privateKeyPath, verifyKeyPath:keys.publicKeyPath });
|
|
35
|
+
const nativeDiffRuntime = createNativeDiffRuntime({ policy,codingRuntime,signingKeyPath:keys.privateKeyPath,verifyKeyPath:keys.publicKeyPath });
|
|
36
|
+
const { codingRuntimeFactory, observationRuntimeFactory, ...runtimeDelegates } = delegates;
|
|
37
|
+
const autonomousCodingRuntime = codingRuntimeFactory ? codingRuntimeFactory(codingRuntime) : codingRuntime;
|
|
38
|
+
if (observationRuntimeFactory) runtimeDelegates.observationRuntime = observationRuntimeFactory({ codingPolicy,keys });
|
|
39
|
+
const runtime = createAutonomousRuntime({ policy,codingRuntime:autonomousCodingRuntime,nativeDiffRuntime,...runtimeDelegates,
|
|
40
|
+
signingKeyPath:keys.privateKeyPath,verifyKeyPath:keys.publicKeyPath });
|
|
41
|
+
return { root,project,keys,codingPolicy,policy,runtime };
|
|
42
|
+
}
|
|
43
|
+
async function submit(runtime,id='adv') {
|
|
44
|
+
return runtime.submit({ submissionId:id, rootId:'project', title:'adversarial', goal:'Inspect x.txt safely.', acceptance:'Do not claim release without evidence.' });
|
|
45
|
+
}
|
|
46
|
+
test('planner prompt compacts stale context payloads before failing the byte budget', () => {
|
|
47
|
+
const policy = { limits:{ max_context_bytes:65536 }, profiles:{} };
|
|
48
|
+
const contexts = Array.from({ length:8 }, (_,index) => ({
|
|
49
|
+
path:`context-${index}.txt`, sha256:String(index).repeat(64).slice(0,64), bytes:20000,
|
|
50
|
+
content:index === 7 ? `LATEST_SENTINEL:${'L'.repeat(19980)}` : `OLD_SENTINEL_${index}:${'X'.repeat(19980)}`
|
|
51
|
+
}));
|
|
52
|
+
const prompt = buildPlannerPrompt({
|
|
53
|
+
goal:{ title:'compact', goal:'keep current evidence', acceptance:'fit the planner byte budget' },
|
|
54
|
+
policy,
|
|
55
|
+
view:{ mutation_epoch:0, planner_round:0, tree:[], contexts, observations:[], recent_decisions:[] }
|
|
56
|
+
});
|
|
57
|
+
assert.match(prompt,/LATEST_SENTINEL/);
|
|
58
|
+
assert.doesNotMatch(prompt,/OLD_SENTINEL_0/);
|
|
59
|
+
assert.match(prompt,/content_elided/);
|
|
60
|
+
const stateText = prompt.match(/STATE=(.*)\nExample shape:/s)?.[1];
|
|
61
|
+
assert.ok(stateText);
|
|
62
|
+
assert.ok(Buffer.byteLength(stateText,'utf8') <= policy.limits.max_context_bytes);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test('planner accepts a strict authoritative plan snapshot without adding a new agent round', async () => {
|
|
66
|
+
const f = await fixture();
|
|
67
|
+
try {
|
|
68
|
+
const decision = parsePlannerDecision(JSON.stringify({
|
|
69
|
+
schema:'deadbyte.autonomous-decision.v1', action:'inspect', summary:'inspect under plan',
|
|
70
|
+
reads:[{path:'x.txt',max_bytes:4096}],
|
|
71
|
+
plan:{ title:'Inspect safely', steps:[
|
|
72
|
+
{ step_id:'inspect', title:'Inspect x.txt', status:'running' },
|
|
73
|
+
{ step_id:'finish', title:'Finish with evidence', status:'pending' }
|
|
74
|
+
] }
|
|
75
|
+
}),f.policy);
|
|
76
|
+
assert.equal(decision.plan.title,'Inspect safely');
|
|
77
|
+
assert.equal(decision.plan.steps[0].status,'running');
|
|
78
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test('completed authoritative plan hard-blocks further work before native diff mutation', async () => {
|
|
82
|
+
const f = await fixture();
|
|
83
|
+
try {
|
|
84
|
+
const goal = await submit(f.runtime,'plan-complete-guard');
|
|
85
|
+
const first = await f.runtime.run({ goalId:goal.goal_id, maxCycles:4 });
|
|
86
|
+
const initialPlan = { title:'Guarded work', steps:[
|
|
87
|
+
{ step_id:'inspect', title:'Inspect x.txt', status:'running' },
|
|
88
|
+
{ step_id:'finish', title:'Finish', status:'pending' }
|
|
89
|
+
] };
|
|
90
|
+
let result = await f.runtime.run({ goalId:goal.goal_id, maxCycles:4,
|
|
91
|
+
plannerResponse:{ request_id:first.planner_request.request_id, model:'fake', raw_text:JSON.stringify({
|
|
92
|
+
schema:'deadbyte.autonomous-decision.v1', action:'inspect', summary:'inspect x', reads:[{path:'x.txt',max_bytes:4096}], plan:initialPlan
|
|
93
|
+
}) } });
|
|
94
|
+
assert.equal(result.status,'input_required');
|
|
95
|
+
const completedPlan = { title:'Guarded work', steps:[
|
|
96
|
+
{ step_id:'inspect', title:'Inspect x.txt', status:'completed' },
|
|
97
|
+
{ step_id:'finish', title:'Finish', status:'completed' }
|
|
98
|
+
] };
|
|
99
|
+
result = await f.runtime.run({ goalId:goal.goal_id, maxCycles:4,
|
|
100
|
+
plannerResponse:{ request_id:result.planner_request.request_id, model:'fake', raw_text:JSON.stringify({
|
|
101
|
+
schema:'deadbyte.autonomous-decision.v1', action:'patch', summary:'must be blocked after plan complete', plan:completedPlan,
|
|
102
|
+
operations:[{kind:'replace',path:'x.txt',expected_sha256:'0'.repeat(64),old_string:'x',new_string:'y',expected_replacements:1}]
|
|
103
|
+
}) } });
|
|
104
|
+
assert.equal(result.status,'input_required');
|
|
105
|
+
assert.equal(await readFile(path.join(f.project,'x.txt'),'utf8'),'x\n');
|
|
106
|
+
const status = await f.runtime.status({ goalId:goal.goal_id });
|
|
107
|
+
assert.equal(status.active_plan.steps.every(step => step.status === 'completed'),true);
|
|
108
|
+
const journal = await f.runtime.events({ goalId:goal.goal_id, fromSeq:1, limit:100 });
|
|
109
|
+
assert.ok(journal.events.some(event => event.type === 'plan_guard_blocked' && event.payload?.reason === 'plan_complete_requires_finish'));
|
|
110
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
test('planner parser rejects malformed JSON and unknown top-level fields', async () => {
|
|
114
|
+
const f = await fixture();
|
|
115
|
+
try {
|
|
116
|
+
assert.throws(() => parsePlannerDecision('not-json',f.policy), /strict JSON/);
|
|
117
|
+
assert.throws(() => parsePlannerDecision(JSON.stringify({ schema:'deadbyte.autonomous-decision.v1', action:'pause', summary:'x', reason:'x', surprise:true }),f.policy), /unknown field/);
|
|
118
|
+
assert.throws(() => parsePlannerDecision(JSON.stringify({ schema:'deadbyte.autonomous-decision.v1', action:'delegate', summary:'inject',
|
|
119
|
+
operation:{kind:'process_action',session_id:'0'.repeat(64),action_id:'ping',raw_input:'whoami\\r\\n'} }),f.policy), /unknown field/);
|
|
120
|
+
assert.throws(() => parsePlannerDecision(JSON.stringify({ schema:'deadbyte.autonomous-decision.v1', action:'delegate', summary:'widen',
|
|
121
|
+
operation:{kind:'process_start',profile_id:'safe',cwd:'.',executable:'cmd.exe'} }),f.policy), /unknown field/);
|
|
122
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
test('R33 private delegate routes bounded machine reads and records signed evidence', async () => {
|
|
126
|
+
const calls=[];
|
|
127
|
+
const f = await fixture({ machineFsRuntime:{ async stat(args){ calls.push(args); return {status:'ok',root_id:args.rootId,path:args.relativePath,kind:'file',bytes:2}; } } });
|
|
128
|
+
try {
|
|
129
|
+
const goal=await submit(f.runtime,'r33-machine-stat');
|
|
130
|
+
let result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2});
|
|
131
|
+
result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2,plannerResponse:{request_id:result.planner_request.request_id,model:'fake',raw_text:JSON.stringify({
|
|
132
|
+
schema:'deadbyte.autonomous-decision.v1',action:'delegate',summary:'bounded stat',operation:{kind:'machine_stat',path:'x.txt',hash:true}
|
|
133
|
+
})}});
|
|
134
|
+
assert.equal(result.status,'input_required');
|
|
135
|
+
assert.deepEqual(calls,[{rootId:'project',relativePath:'x.txt',hash:true}]);
|
|
136
|
+
const journal=await f.runtime.events({goalId:goal.goal_id,fromSeq:1,limit:100});
|
|
137
|
+
const completed=journal.events.find(event=>event.type==='delegated_action_completed');
|
|
138
|
+
assert.equal(completed.payload.operation.kind,'machine_stat');
|
|
139
|
+
assert.match(completed.payload.evidence.result_sha256,/^[0-9a-f]{64}$/);
|
|
140
|
+
result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2,plannerResponse:{request_id:result.planner_request.request_id,model:'fake',raw_text:JSON.stringify({
|
|
141
|
+
schema:'deadbyte.autonomous-decision.v1',action:'finish',summary:'delegated evidence complete'
|
|
142
|
+
})}});
|
|
143
|
+
assert.equal(result.status,'completed');
|
|
144
|
+
const verified=await f.runtime.verify({goalId:goal.goal_id});
|
|
145
|
+
assert.equal(verified.ok,true);
|
|
146
|
+
assert.equal(verified.delegated_actions_verified,1);
|
|
147
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
test('R33 stale delegated identities fail closed into a signed pause', async () => {
|
|
151
|
+
const f = await fixture({ processRuntime:{ async status(){ throw new Error('unknown process session'); } } });
|
|
152
|
+
try {
|
|
153
|
+
const goal=await submit(f.runtime,'r33-stale-session');
|
|
154
|
+
let result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2});
|
|
155
|
+
result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2,plannerResponse:{request_id:result.planner_request.request_id,model:'fake',raw_text:JSON.stringify({
|
|
156
|
+
schema:'deadbyte.autonomous-decision.v1',action:'delegate',summary:'stale status',operation:{kind:'process_status',session_id:'1'.repeat(64)}
|
|
157
|
+
})}});
|
|
158
|
+
assert.equal(result.status,'paused');
|
|
159
|
+
assert.equal(result.reason,'delegated_action_failed');
|
|
160
|
+
const journal=await f.runtime.events({goalId:goal.goal_id,fromSeq:1,limit:100});
|
|
161
|
+
assert.ok(journal.events.some(event=>event.type==='goal_paused'&&/stale or belongs to another goal/.test(event.payload.detail)));
|
|
162
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
test('R33 delegated output over the planner context budget fails closed', async () => {
|
|
166
|
+
const f = await fixture({ machineFsRuntime:{ async read(){ return {status:'ok',data_base64:'A'.repeat(300000)}; } } });
|
|
167
|
+
try {
|
|
168
|
+
const goal=await submit(f.runtime,'r33-output-bound');
|
|
169
|
+
let result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2});
|
|
170
|
+
result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2,plannerResponse:{request_id:result.planner_request.request_id,model:'fake',raw_text:JSON.stringify({
|
|
171
|
+
schema:'deadbyte.autonomous-decision.v1',action:'delegate',summary:'bounded read',operation:{kind:'machine_read',path:'x.txt',max_bytes:16}
|
|
172
|
+
})}});
|
|
173
|
+
assert.equal(result.status,'paused');
|
|
174
|
+
assert.equal(result.reason,'delegated_action_failed');
|
|
175
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
test('R33 rechecks authority immediately before a delegated process mutation', async () => {
|
|
179
|
+
let checks=0,actions=0;
|
|
180
|
+
const f = await fixture({
|
|
181
|
+
codingRuntimeFactory(base){ return { ...base, async sessionStatus(){ checks++; const status=await base.sessionStatus();
|
|
182
|
+
return checks>=4?{...status,armed:false,reason:'revoked mid-run'}:status; } }; },
|
|
183
|
+
processRuntime:{ async start(){ actions++; return {session_id:'3'.repeat(64)}; }, async verifyEventJournal(){ return {ok:true,event_count:1,head_sha256:'2'.repeat(64)}; } }
|
|
184
|
+
});
|
|
185
|
+
try {
|
|
186
|
+
const goal=await submit(f.runtime,'r33-mid-run-revoke');
|
|
187
|
+
let result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2});
|
|
188
|
+
result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2,plannerResponse:{request_id:result.planner_request.request_id,model:'fake',raw_text:JSON.stringify({
|
|
189
|
+
schema:'deadbyte.autonomous-decision.v1',action:'delegate',summary:'must recheck',operation:{kind:'process_start',profile_id:'safe',cwd:'.'}
|
|
190
|
+
})}});
|
|
191
|
+
assert.equal(result.status,'paused');
|
|
192
|
+
assert.equal(result.reason,'delegated_action_failed');
|
|
193
|
+
assert.equal(actions,0);
|
|
194
|
+
assert.equal(checks,4);
|
|
195
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
test('R33 process delegates retain owned-session identity and verified journal evidence', async () => {
|
|
199
|
+
const sessionId='4'.repeat(64),calls=[];
|
|
200
|
+
const processRuntime={
|
|
201
|
+
async start(args){calls.push(['start',args]);return {session_id:sessionId,state:'running'};},
|
|
202
|
+
async action(args){calls.push(['action',args]);return {action_id:args.actionId,logical_bytes:4,logical_sha256:'5'.repeat(64),session:{session_id:sessionId,state:'running'}};},
|
|
203
|
+
async terminate(args){calls.push(['terminate',args]);return {session_id:sessionId,state:'terminated'};},
|
|
204
|
+
async verifyEventJournal(){return {ok:true,event_count:calls.length,head_sha256:String(5+calls.length).repeat(64)};}
|
|
205
|
+
};
|
|
206
|
+
const f=await fixture({processRuntime});
|
|
207
|
+
try {
|
|
208
|
+
const goal=await submit(f.runtime,'r33-owned-process');
|
|
209
|
+
let result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2});
|
|
210
|
+
const decisions=[
|
|
211
|
+
{kind:'process_start',profile_id:'safe',cwd:'.'},
|
|
212
|
+
{kind:'process_action',session_id:sessionId,action_id:'ping'},
|
|
213
|
+
{kind:'process_terminate',session_id:sessionId}
|
|
214
|
+
];
|
|
215
|
+
for(const [index,operation] of decisions.entries()){
|
|
216
|
+
result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2,plannerResponse:{request_id:result.planner_request.request_id,model:'fake',raw_text:JSON.stringify({
|
|
217
|
+
schema:'deadbyte.autonomous-decision.v1',action:'delegate',summary:`process ${index}`,operation
|
|
218
|
+
})}});
|
|
219
|
+
assert.equal(result.status,'input_required');
|
|
220
|
+
}
|
|
221
|
+
assert.deepEqual(calls.map(item=>item[0]),['start','action','terminate']);
|
|
222
|
+
const journal=await f.runtime.events({goalId:goal.goal_id,fromSeq:1,limit:200});
|
|
223
|
+
const completed=journal.events.filter(event=>event.type==='delegated_action_completed');
|
|
224
|
+
assert.equal(completed.length,3);
|
|
225
|
+
assert.ok(completed.every(event=>event.payload.evidence.kind==='process_journal'));
|
|
226
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
test('R33 rejects a delegated observation result whose signed receipt cannot be verified', async () => {
|
|
230
|
+
const f = await fixture({ observationRuntimeFactory:({codingPolicy})=>({ policy:codingPolicy, async systemStatus(){
|
|
231
|
+
return {status:'ok',receipt_id:'a'.repeat(24),receipt_sha256:'b'.repeat(64),request_sha256:'c'.repeat(64)};
|
|
232
|
+
} }) });
|
|
233
|
+
try {
|
|
234
|
+
const goal=await submit(f.runtime,'r33-observation-receipt-mismatch');
|
|
235
|
+
let result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2});
|
|
236
|
+
result=await f.runtime.run({goalId:goal.goal_id,maxCycles:2,plannerResponse:{request_id:result.planner_request.request_id,model:'fake',raw_text:JSON.stringify({
|
|
237
|
+
schema:'deadbyte.autonomous-decision.v1',action:'delegate',summary:'bad receipt',operation:{kind:'observation_system_status'}
|
|
238
|
+
})}});
|
|
239
|
+
assert.equal(result.status,'paused');
|
|
240
|
+
assert.equal(result.reason,'delegated_action_failed');
|
|
241
|
+
const journal=await f.runtime.events({goalId:goal.goal_id,fromSeq:1,limit:100});
|
|
242
|
+
assert.ok(journal.events.some(event=>event.type==='goal_paused'&&/receipt mismatch/.test(event.payload.detail)));
|
|
243
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
test('client sampling response must bind the exact pending request id', async () => {
|
|
247
|
+
const f = await fixture();
|
|
248
|
+
try {
|
|
249
|
+
const goal = await submit(f.runtime,'wrong-request');
|
|
250
|
+
const first = await f.runtime.run({ goalId:goal.goal_id, maxCycles:2 });
|
|
251
|
+
assert.equal(first.status,'input_required');
|
|
252
|
+
await assert.rejects(f.runtime.run({ goalId:goal.goal_id, maxCycles:2,
|
|
253
|
+
plannerResponse:{ request_id:'0'.repeat(64), model:'fake', raw_text:'{}' } }), /request_id mismatch/);
|
|
254
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
255
|
+
});
|
|
256
|
+
test('invalid client planner contract yields a signed repair request', async () => {
|
|
257
|
+
const f = await fixture();
|
|
258
|
+
try {
|
|
259
|
+
const goal = await submit(f.runtime,'planner-repair');
|
|
260
|
+
const first = await f.runtime.run({ goalId:goal.goal_id, maxCycles:2 });
|
|
261
|
+
assert.equal(first.status,'input_required');
|
|
262
|
+
const bad = JSON.stringify({ schema:'deadbyte.autonomous-decision.v1', action:'inspect', summary:'missing reads' });
|
|
263
|
+
const repaired = await f.runtime.run({ goalId:goal.goal_id, maxCycles:2,
|
|
264
|
+
plannerResponse:{ request_id:first.planner_request.request_id, model:'fake', raw_text:bad } });
|
|
265
|
+
assert.equal(repaired.status,'input_required');
|
|
266
|
+
assert.notEqual(repaired.planner_request.request_id,first.planner_request.request_id);
|
|
267
|
+
assert.match(repaired.planner_request.prompt,/PREVIOUS_RESPONSE_REJECTED/);
|
|
268
|
+
assert.match(repaired.planner_request.prompt,/planner inspect reads invalid/);
|
|
269
|
+
const journal = await f.runtime.events({ goalId:goal.goal_id, fromSeq:1, limit:100 });
|
|
270
|
+
const rejected = journal.events.find(event => event.type === 'planner_rejected');
|
|
271
|
+
assert.ok(rejected);
|
|
272
|
+
assert.equal(rejected.payload.request_id,first.planner_request.request_id);
|
|
273
|
+
assert.match(rejected.payload.response_sha256,/^[0-9a-f]{64}$/);
|
|
274
|
+
assert.match(rejected.payload.reason,/planner inspect reads invalid/);
|
|
275
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
test('three invalid planner contracts pause instead of retrying forever', async () => {
|
|
279
|
+
const f = await fixture();
|
|
280
|
+
try {
|
|
281
|
+
const goal = await submit(f.runtime,'planner-repair-limit');
|
|
282
|
+
let result = await f.runtime.run({ goalId:goal.goal_id, maxCycles:2 });
|
|
283
|
+
const bad = JSON.stringify({ schema:'deadbyte.autonomous-decision.v1', action:'inspect', summary:'missing reads' });
|
|
284
|
+
for (let attempt = 1; attempt <= 3; attempt += 1) {
|
|
285
|
+
result = await f.runtime.run({ goalId:goal.goal_id, maxCycles:2,
|
|
286
|
+
plannerResponse:{ request_id:result.planner_request.request_id, model:'fake', raw_text:bad } });
|
|
287
|
+
if (attempt < 3) assert.equal(result.status,'input_required');
|
|
288
|
+
}
|
|
289
|
+
assert.equal(result.status,'paused');
|
|
290
|
+
assert.equal(result.reason,'planner_contract_repeated_failure');
|
|
291
|
+
const journal = await f.runtime.events({ goalId:goal.goal_id, fromSeq:1, limit:100 });
|
|
292
|
+
assert.equal(journal.events.filter(event => event.type === 'planner_rejected').length,3);
|
|
293
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
test('autonomous execution fails closed when coding authority is revoked', async () => {
|
|
297
|
+
const f = await fixture();
|
|
298
|
+
try {
|
|
299
|
+
const goal = await submit(f.runtime,'coding-revoked');
|
|
300
|
+
await rm(f.codingPolicy.lease_file,{force:true});
|
|
301
|
+
await assert.rejects(f.runtime.run({ goalId:goal.goal_id, maxCycles:1 }), /coding plane is disarmed/);
|
|
302
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
test('three identical planner decisions trigger no-progress pause', async () => {
|
|
306
|
+
const f = await fixture();
|
|
307
|
+
try {
|
|
308
|
+
const goal = await submit(f.runtime,'no-progress');
|
|
309
|
+
let result = await f.runtime.run({ goalId:goal.goal_id, maxCycles:4 });
|
|
310
|
+
const decision = JSON.stringify({ schema:'deadbyte.autonomous-decision.v1', action:'inspect', summary:'same read', reads:[{path:'x.txt',max_bytes:4096}] });
|
|
311
|
+
for (let i=0; i<3 && result.status === 'input_required'; i += 1) {
|
|
312
|
+
result = await f.runtime.run({ goalId:goal.goal_id, maxCycles:4,
|
|
313
|
+
plannerResponse:{ request_id:result.planner_request.request_id, model:'fake', raw_text:decision } });
|
|
314
|
+
}
|
|
315
|
+
assert.equal(result.status,'paused');
|
|
316
|
+
assert.equal(result.reason,'no_progress_repeated_decision');
|
|
317
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
318
|
+
});
|
|
319
|
+
test('signed autonomous journal tamper is rejected before state is trusted', async () => {
|
|
320
|
+
const f = await fixture();
|
|
321
|
+
try {
|
|
322
|
+
const goal = await submit(f.runtime,'journal-tamper');
|
|
323
|
+
const eventFile = path.join(f.policy.evidence_dir,'goals',goal.goal_id,'events','000001.json');
|
|
324
|
+
const event = JSON.parse(await readFile(eventFile,'utf8'));
|
|
325
|
+
event.payload.title = 'forged';
|
|
326
|
+
await writeFile(eventFile,JSON.stringify(event));
|
|
327
|
+
await assert.rejects(f.runtime.status({ goalId:goal.goal_id }), /signature verification failed|hash-chain mismatch/);
|
|
328
|
+
} finally { await rm(f.root,{recursive:true,force:true}); }
|
|
329
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { readFile } from 'node:fs/promises';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const fixture = fileURLToPath(new URL('../workspaces/autonomous-live/fixture.txt', import.meta.url));
|
|
7
|
+
|
|
8
|
+
test('R24 live autonomous fixture is restored to release state', async () => {
|
|
9
|
+
assert.equal(await readFile(fixture, 'utf8'), 'READY\n');
|
|
10
|
+
});
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { createHash, randomBytes } from 'node:crypto';
|
|
4
|
+
import { createServer } from 'node:http';
|
|
5
|
+
import { mkdtemp, mkdir, readFile, rm, writeFile } from 'node:fs/promises';
|
|
6
|
+
import os from 'node:os';
|
|
7
|
+
import path from 'node:path';
|
|
8
|
+
import { generateTrustKeypair } from '../src/trust.mjs';
|
|
9
|
+
import { createCodingRuntime, loadCodingPolicy } from '../src/coding-plane.mjs';
|
|
10
|
+
import { loadAutonomousPolicy } from '../src/autonomous-policy.mjs';
|
|
11
|
+
import { createNativeDiffRuntime } from '../src/native-diff.mjs';
|
|
12
|
+
import { createAutonomousRuntime } from '../src/autonomous-runtime.mjs';
|
|
13
|
+
import { startAutonomousSupervisor } from '../src/autonomous-supervisor.mjs';
|
|
14
|
+
|
|
15
|
+
const sha = bytes => createHash('sha256').update(bytes).digest('hex');
|
|
16
|
+
async function startPlanner(decisions) {
|
|
17
|
+
const prompts = [];
|
|
18
|
+
const server = createServer(async (req,res) => {
|
|
19
|
+
let body = '';
|
|
20
|
+
for await (const chunk of req) body += chunk;
|
|
21
|
+
const parsed = JSON.parse(body); prompts.push(parsed.messages?.at(-1)?.content ?? '');
|
|
22
|
+
const decision = decisions[prompts.length - 1];
|
|
23
|
+
if (!decision) { res.writeHead(500); return res.end('planner sequence exhausted'); }
|
|
24
|
+
res.writeHead(200,{'content-type':'application/json'});
|
|
25
|
+
const content = typeof decision === 'string' ? decision : JSON.stringify(decision);
|
|
26
|
+
res.end(JSON.stringify({ model:'deadbyte-fake-planner', choices:[{ message:{ content } }] }));
|
|
27
|
+
});
|
|
28
|
+
await new Promise(resolve => server.listen(0,'127.0.0.1',resolve));
|
|
29
|
+
return { server, prompts, endpoint:`http://127.0.0.1:${server.address().port}/v1/chat/completions` };
|
|
30
|
+
}
|
|
31
|
+
async function fixture(decisionPrefix = []) {
|
|
32
|
+
const root = await mkdtemp(path.join(os.tmpdir(),'deadbyte-autonomous-loop-'));
|
|
33
|
+
const project = path.join(root,'project'); const trust = path.join(root,'trust');
|
|
34
|
+
await mkdir(project); await mkdir(trust);
|
|
35
|
+
const keys = await generateTrustKeypair({
|
|
36
|
+
privateKeyPath:path.join(trust,'private.pem'), publicKeyPath:path.join(trust,'public.pem')
|
|
37
|
+
});
|
|
38
|
+
const program = path.join(project,'program.mjs');
|
|
39
|
+
await writeFile(program,"export const value = 'broken';\n");
|
|
40
|
+
await writeFile(path.join(project,'build.mjs'),
|
|
41
|
+
"const m=await import('./program.mjs?build='+Date.now()); console.log(typeof m.value);\n");
|
|
42
|
+
await writeFile(path.join(project,'test.mjs'),
|
|
43
|
+
"const m=await import('./program.mjs?test='+Date.now()); if(m.value!=='fixed'){console.error('expected fixed got '+m.value);process.exit(1)} console.log('TEST_OK');\n");
|
|
44
|
+
await writeFile(path.join(project,'bench.mjs'),
|
|
45
|
+
"const m=await import('./program.mjs?bench='+Date.now()); let x=0; for(let i=0;i<10000;i++)x+=m.value.length; if(x<1)process.exit(2); console.log('BENCH_OK');\n");
|
|
46
|
+
const nodeHash = sha(await readFile(process.execPath));
|
|
47
|
+
const codingPolicyPath = path.join(root,'coding-policy.json');
|
|
48
|
+
await writeFile(codingPolicyPath,JSON.stringify({ schema:'deadbyte.coding-policy.v1', enabled:true,
|
|
49
|
+
lease_file:path.join(root,'coding-lease.json'), evidence_dir:path.join(root,'coding-evidence'),
|
|
50
|
+
roots:{ project:{ path:project, read:true, write:true, exec:true, deny_paths:[] } },
|
|
51
|
+
commands:{ node_script:{ kind:'script', executable:process.execPath, executable_sha256:nodeHash,
|
|
52
|
+
root_ids:['project'], prefix_args:[], extensions:['.mjs'], timeout_ms:120000, max_output_bytes:1048576 } }
|
|
53
|
+
},null,2));
|
|
54
|
+
const codingPolicy = await loadCodingPolicy(codingPolicyPath);
|
|
55
|
+
await writeFile(codingPolicy.lease_file,JSON.stringify({ schema:'deadbyte.coding-lease.v1',
|
|
56
|
+
policy_sha256:codingPolicy.policy_sha256, instance_nonce:randomBytes(32).toString('hex'), root_ids:['project'],
|
|
57
|
+
armed_at_utc:new Date().toISOString(), expires_at_utc:new Date(Date.now()+3600000).toISOString() }));
|
|
58
|
+
const buildHash = sha(await readFile(path.join(project,'build.mjs')));
|
|
59
|
+
const testHash = sha(await readFile(path.join(project,'test.mjs')));
|
|
60
|
+
const benchHash = sha(await readFile(path.join(project,'bench.mjs')));
|
|
61
|
+
const initialHash = sha(await readFile(program));
|
|
62
|
+
const almostBytes = Buffer.from("export const value = 'almost';\n");
|
|
63
|
+
const almostHash = sha(almostBytes);
|
|
64
|
+
const fixedBytes = Buffer.from("export const value = 'fixed';\n");
|
|
65
|
+
const fixedHash = sha(fixedBytes);
|
|
66
|
+
const decisions = [...decisionPrefix,
|
|
67
|
+
{ schema:'deadbyte.autonomous-decision.v1', action:'inspect', summary:'inspect program', reads:[{path:'program.mjs',max_bytes:4096}] },
|
|
68
|
+
{ schema:'deadbyte.autonomous-decision.v1', action:'patch', summary:'first repair attempt', operations:[
|
|
69
|
+
{kind:'replace',path:'program.mjs',expected_sha256:initialHash,old_string:"'broken'",new_string:"'almost'",expected_replacements:1}] },
|
|
70
|
+
{ schema:'deadbyte.autonomous-decision.v1', action:'inspect', summary:'diagnose failed test', reads:[{path:'program.mjs',max_bytes:4096}] },
|
|
71
|
+
{ schema:'deadbyte.autonomous-decision.v1', action:'patch', summary:'correct after test evidence', operations:[
|
|
72
|
+
{kind:'replace',path:'program.mjs',expected_sha256:almostHash,old_string:"'almost'",new_string:"'fixed'",expected_replacements:1}] },
|
|
73
|
+
{ schema:'deadbyte.autonomous-decision.v1', action:'finish', summary:'all acceptance evidence passes' }
|
|
74
|
+
];
|
|
75
|
+
const planner = await startPlanner(decisions);
|
|
76
|
+
const autonomousPolicyPath = path.join(root,'autonomous-policy.json');
|
|
77
|
+
await writeFile(autonomousPolicyPath,JSON.stringify({ schema:'deadbyte.autonomous-policy.v1', enabled:true,
|
|
78
|
+
lease_file:path.join(root,'autonomous-lease.json'), evidence_dir:path.join(root,'autonomous-evidence'),
|
|
79
|
+
root_ids:['project'], coding_policy_sha256:codingPolicy.policy_sha256,
|
|
80
|
+
planner:{ backend:'openai_compatible', endpoint:planner.endpoint, model:'fake', max_tokens:2048,
|
|
81
|
+
timeout_ms:30000, max_response_bytes:262144 },
|
|
82
|
+
profiles:{
|
|
83
|
+
build:{ kind:'command', root_id:'project', command_id:'node_script', script_path:'build.mjs',
|
|
84
|
+
script_sha256:buildHash, args:[], cwd:'.', required_for_release:true, run_after_mutation:true,
|
|
85
|
+
description:'syntax/import build check' },
|
|
86
|
+
test:{ kind:'command', root_id:'project', command_id:'node_script', script_path:'test.mjs',
|
|
87
|
+
script_sha256:testHash, args:[], cwd:'.', required_for_release:true, run_after_mutation:true,
|
|
88
|
+
description:'behavior regression test' },
|
|
89
|
+
bench:{ kind:'benchmark', root_id:'project', command_id:'node_script', script_path:'bench.mjs',
|
|
90
|
+
script_sha256:benchHash, args:[], cwd:'.', warmups:0, iterations:2, baseline_median_ms:null,
|
|
91
|
+
max_regression_pct:5, required_for_release:true, run_after_mutation:true,
|
|
92
|
+
description:'bounded benchmark' }
|
|
93
|
+
}, limits:{ max_iterations:10, max_mutations:8, max_wall_ms:300000,
|
|
94
|
+
max_context_bytes:524288, max_diff_bytes:262144, max_files_per_diff:4 }
|
|
95
|
+
},null,2));
|
|
96
|
+
const policy = await loadAutonomousPolicy(autonomousPolicyPath,codingPolicy);
|
|
97
|
+
await writeFile(policy.lease_file,JSON.stringify({ schema:'deadbyte.autonomous-lease.v1',
|
|
98
|
+
policy_sha256:policy.policy_sha256, instance_nonce:randomBytes(32).toString('hex'), root_ids:['project'],
|
|
99
|
+
armed_at_utc:new Date().toISOString(), expires_at_utc:new Date(Date.now()+1800000).toISOString() }));
|
|
100
|
+
const codingRuntime = createCodingRuntime({ policy:codingPolicy,
|
|
101
|
+
signingKeyPath:keys.privateKeyPath, verifyKeyPath:keys.publicKeyPath });
|
|
102
|
+
const nativeDiff = createNativeDiffRuntime({ policy,codingRuntime,
|
|
103
|
+
signingKeyPath:keys.privateKeyPath, verifyKeyPath:keys.publicKeyPath });
|
|
104
|
+
const runtime = createAutonomousRuntime({ policy,codingRuntime,nativeDiffRuntime:nativeDiff,
|
|
105
|
+
signingKeyPath:keys.privateKeyPath, verifyKeyPath:keys.publicKeyPath });
|
|
106
|
+
return { root,project,program,keys,policy,codingRuntime,nativeDiff,runtime,planner,
|
|
107
|
+
initialHash,almostHash,fixedHash };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
test('R24 autonomous goal diagnoses a failing test, replans with native diff, benchmarks, and releases', async () => {
|
|
111
|
+
const f = await fixture();
|
|
112
|
+
try {
|
|
113
|
+
const submitted = await f.runtime.submit({ submissionId:'full-loop', rootId:'project',
|
|
114
|
+
title:'repair program', goal:'make exported value equal fixed', acceptance:'build, test, and benchmark must pass',
|
|
115
|
+
maxIterations:10 });
|
|
116
|
+
assert.equal(submitted.status,'accepted');
|
|
117
|
+
const result = await f.runtime.run({ goalId:submitted.goal_id, maxCycles:16 });
|
|
118
|
+
assert.equal(result.status,'completed');
|
|
119
|
+
assert.equal(await readFile(f.program,'utf8'),"export const value = 'fixed';\n");
|
|
120
|
+
const status = await f.runtime.status({ goalId:submitted.goal_id });
|
|
121
|
+
assert.equal(status.state,'succeeded');
|
|
122
|
+
assert.equal(status.mutation_epoch,2);
|
|
123
|
+
assert.equal(status.mutation_count,2);
|
|
124
|
+
assert.ok(status.observations.some(item => item.profile_id === 'test' && item.passed === false));
|
|
125
|
+
assert.ok(status.observations.some(item => item.profile_id === 'test' && item.passed === true && item.mutation_epoch === 2));
|
|
126
|
+
assert.ok(status.observations.some(item => item.profile_id === 'bench' && item.passed === true && item.mutation_epoch === 2));
|
|
127
|
+
assert.equal(f.planner.prompts.length,5);
|
|
128
|
+
assert.match(f.planner.prompts[2],/expected fixed got almost/);
|
|
129
|
+
const verified = await f.runtime.verify({ goalId:submitted.goal_id });
|
|
130
|
+
assert.equal(verified.ok,true);
|
|
131
|
+
assert.equal(verified.native_diffs_verified,2);
|
|
132
|
+
assert.equal(verified.required_profiles_verified,3);
|
|
133
|
+
const gate = await f.runtime.releaseGate({ goalId:submitted.goal_id });
|
|
134
|
+
assert.equal(gate.status,'existing');
|
|
135
|
+
assert.equal(gate.ready,true);
|
|
136
|
+
} finally {
|
|
137
|
+
await new Promise(resolve => f.planner.server.close(resolve));
|
|
138
|
+
await rm(f.root,{recursive:true,force:true});
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
test('provider planner repairs an invalid structured decision inside the same run', async () => {
|
|
143
|
+
const f = await fixture(['not-json']);
|
|
144
|
+
try {
|
|
145
|
+
const submitted = await f.runtime.submit({ submissionId:'provider-repair', rootId:'project',
|
|
146
|
+
title:'repair after planner contract error', goal:'make exported value equal fixed',
|
|
147
|
+
acceptance:'build, test, and benchmark must pass', maxIterations:10 });
|
|
148
|
+
const result = await f.runtime.run({ goalId:submitted.goal_id, maxCycles:16 });
|
|
149
|
+
assert.equal(result.status,'completed');
|
|
150
|
+
assert.equal(await readFile(f.program,'utf8'),"export const value = 'fixed';\n");
|
|
151
|
+
assert.equal(f.planner.prompts.length,6);
|
|
152
|
+
assert.match(f.planner.prompts[1],/PREVIOUS_RESPONSE_REJECTED/);
|
|
153
|
+
const journal = await f.runtime.events({ goalId:submitted.goal_id, fromSeq:1, limit:200 });
|
|
154
|
+
const rejected = journal.events.filter(event => event.type === 'planner_rejected');
|
|
155
|
+
assert.equal(rejected.length,1);
|
|
156
|
+
assert.match(rejected[0].payload.reason,/strict JSON/);
|
|
157
|
+
assert.equal((await f.runtime.verify({ goalId:submitted.goal_id })).ok,true);
|
|
158
|
+
} finally {
|
|
159
|
+
await new Promise(resolve => f.planner.server.close(resolve));
|
|
160
|
+
await rm(f.root,{recursive:true,force:true});
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
test('provider supervisor completes a submitted goal without client run calls', async () => {
|
|
165
|
+
const f = await fixture();
|
|
166
|
+
const supervisor = startAutonomousSupervisor({ runtime:f.runtime, policy:f.policy, idleDelayMs:25, maxCycles:16,
|
|
167
|
+
logger:{ warn(){} } });
|
|
168
|
+
try {
|
|
169
|
+
const submitted = await f.runtime.submit({ submissionId:'background-loop', rootId:'project',
|
|
170
|
+
title:'background repair', goal:'make exported value equal fixed',
|
|
171
|
+
acceptance:'build, test, and benchmark must pass', maxIterations:10 });
|
|
172
|
+
const deadline = Date.now() + 20_000;
|
|
173
|
+
let status;
|
|
174
|
+
do {
|
|
175
|
+
status = await f.runtime.status({ goalId:submitted.goal_id });
|
|
176
|
+
if (status.state === 'succeeded') break;
|
|
177
|
+
if (status.state === 'paused' || status.state === 'cancelled') throw new Error(`supervisor stopped in ${status.state}: ${status.reason}`);
|
|
178
|
+
await new Promise(resolve => setTimeout(resolve, 25));
|
|
179
|
+
} while (Date.now() < deadline);
|
|
180
|
+
assert.equal(status.state, 'succeeded');
|
|
181
|
+
assert.equal(await readFile(f.program,'utf8'), "export const value = 'fixed';\n");
|
|
182
|
+
assert.equal((await f.runtime.verify({ goalId:submitted.goal_id })).ok, true);
|
|
183
|
+
} finally {
|
|
184
|
+
await supervisor.stop();
|
|
185
|
+
await new Promise(resolve => f.planner.server.close(resolve));
|
|
186
|
+
await rm(f.root,{recursive:true,force:true});
|
|
187
|
+
}
|
|
188
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import {
|
|
4
|
+
autonomousGoalVerifyOutputSchema,
|
|
5
|
+
autonomousStructuredResult
|
|
6
|
+
} from '../src/autonomous-output-contracts.mjs';
|
|
7
|
+
|
|
8
|
+
test('autonomous_goal_verify structured contract preserves delegated action evidence count', () => {
|
|
9
|
+
const value = {
|
|
10
|
+
ok:true,
|
|
11
|
+
goal_id:'1'.repeat(64),
|
|
12
|
+
receipt_sha256:'2'.repeat(64),
|
|
13
|
+
signature_valid:true,
|
|
14
|
+
mutation_epoch:1,
|
|
15
|
+
mutation_count:1,
|
|
16
|
+
planner_round:2,
|
|
17
|
+
required_profiles_verified:4,
|
|
18
|
+
native_diffs_verified:1,
|
|
19
|
+
delegated_actions_verified:1,
|
|
20
|
+
journal_head_sha256:'3'.repeat(64)
|
|
21
|
+
};
|
|
22
|
+
const result = autonomousStructuredResult(autonomousGoalVerifyOutputSchema,value);
|
|
23
|
+
assert.equal(result.structuredContent.delegated_actions_verified,1);
|
|
24
|
+
});
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import test from 'node:test';
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import { createHash } from 'node:crypto';
|
|
4
|
+
import { mkdtemp, mkdir, readFile, rm, writeFile } from 'node:fs/promises';
|
|
5
|
+
import os from 'node:os';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
import { Client } from '@modelcontextprotocol/client';
|
|
9
|
+
import { StdioClientTransport, getDefaultEnvironment } from '@modelcontextprotocol/client/stdio';
|
|
10
|
+
import { generateTrustKeypair } from '../src/trust.mjs';
|
|
11
|
+
|
|
12
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
13
|
+
const repoRoot = path.resolve(here, '..');
|
|
14
|
+
const serverPath = path.join(repoRoot, 'src', 'mcp-server.mjs');
|
|
15
|
+
const workspaceRoot = path.join(repoRoot, 'workspaces');
|
|
16
|
+
const r24Tools = [
|
|
17
|
+
'autonomous_goal_approve', 'autonomous_goal_cancel', 'autonomous_goal_events',
|
|
18
|
+
'autonomous_goal_run', 'autonomous_goal_status', 'autonomous_goal_submit',
|
|
19
|
+
'autonomous_goal_verify', 'autonomous_release_gate', 'autonomous_session_status',
|
|
20
|
+
'native_diff_apply', 'native_diff_preview', 'native_diff_verify'
|
|
21
|
+
];
|
|
22
|
+
const r23Tools = [
|
|
23
|
+
'contained_transform','evidence_verify','file_read','proof_execute','workspace_open',
|
|
24
|
+
'agent_task_approve','agent_task_cancel','agent_task_events','agent_task_run',
|
|
25
|
+
'agent_task_status','agent_task_submit','agent_task_verify',
|
|
26
|
+
'coding_benchmark_run','coding_command_run','coding_file_read','coding_file_write',
|
|
27
|
+
'coding_receipt_verify','coding_search','coding_session_status','coding_stat',
|
|
28
|
+
'coding_task_approve','coding_task_cancel','coding_task_events','coding_task_run',
|
|
29
|
+
'coding_task_status','coding_task_submit','coding_task_verify','coding_text_replace','coding_tree'
|
|
30
|
+
];
|
|
31
|
+
const sha256 = bytes => createHash('sha256').update(bytes).digest('hex');
|
|
32
|
+
async function sha256File(file) { return sha256(await readFile(file)); }
|
|
33
|
+
|
|
34
|
+
async function fixture() {
|
|
35
|
+
const root = await mkdtemp(path.join(os.tmpdir(), 'deadbyte-r24-catalog-'));
|
|
36
|
+
const project = path.join(root, 'project');
|
|
37
|
+
const trust = path.join(root, 'trust');
|
|
38
|
+
await mkdir(project); await mkdir(trust);
|
|
39
|
+
const keys = await generateTrustKeypair({
|
|
40
|
+
privateKeyPath: path.join(trust, 'private.pem'),
|
|
41
|
+
publicKeyPath: path.join(trust, 'public.pem')
|
|
42
|
+
});
|
|
43
|
+
const codingPolicyPath = path.join(root, 'coding-policy.json');
|
|
44
|
+
const codingPolicy = {
|
|
45
|
+
schema:'deadbyte.coding-policy.v1', enabled:true,
|
|
46
|
+
lease_file:path.join(root,'coding-lease.json'), evidence_dir:path.join(root,'coding-evidence'),
|
|
47
|
+
roots:{ project:{ path:project, read:true, write:true, exec:true, deny_paths:['.git','node_modules'] } },
|
|
48
|
+
commands:{ node_script:{ kind:'script', executable:process.execPath,
|
|
49
|
+
executable_sha256:await sha256File(process.execPath), root_ids:['project'], prefix_args:[],
|
|
50
|
+
extensions:['.mjs','.js'], timeout_ms:120000, max_output_bytes:1048576 } }
|
|
51
|
+
};
|
|
52
|
+
await writeFile(codingPolicyPath, JSON.stringify(codingPolicy, null, 2));
|
|
53
|
+
const autonomousPolicyPath = path.join(root, 'autonomous-policy.json');
|
|
54
|
+
await writeFile(autonomousPolicyPath, JSON.stringify({
|
|
55
|
+
schema:'deadbyte.autonomous-policy.v1', enabled:true,
|
|
56
|
+
lease_file:path.join(root,'autonomous-lease.json'),
|
|
57
|
+
evidence_dir:path.join(root,'autonomous-evidence'),
|
|
58
|
+
root_ids:['project'],
|
|
59
|
+
coding_policy_sha256:sha256(await readFile(codingPolicyPath)),
|
|
60
|
+
planner:{ backend:'client_sampling', max_tokens:4096 },
|
|
61
|
+
limits:{ max_iterations:12, max_mutations:24, max_wall_ms:1800000,
|
|
62
|
+
max_context_bytes:1048576, max_diff_bytes:1048576 },
|
|
63
|
+
profiles:{}
|
|
64
|
+
}, null, 2));
|
|
65
|
+
const client = new Client({ name:'deadbyte-r24-catalog-test', version:'0.8.0' },
|
|
66
|
+
{ versionNegotiation:{ mode:{ pin:'2026-07-28' } } });
|
|
67
|
+
const transport = new StdioClientTransport({
|
|
68
|
+
command:process.execPath, args:[serverPath], cwd:repoRoot,
|
|
69
|
+
env:{ ...getDefaultEnvironment(), DEADBYTE_WORKSPACE_ROOT:workspaceRoot,
|
|
70
|
+
DEADBYTE_SIGNING_KEY:keys.privateKeyPath, DEADBYTE_VERIFY_KEY:keys.publicKeyPath,
|
|
71
|
+
DEADBYTE_AGENT_RUNTIME:'1', DEADBYTE_CODING_RUNTIME:'1',
|
|
72
|
+
DEADBYTE_CODING_POLICY:codingPolicyPath, DEADBYTE_AUTONOMOUS_RUNTIME:'1',
|
|
73
|
+
DEADBYTE_AUTONOMOUS_POLICY:autonomousPolicyPath }, stderr:'pipe'
|
|
74
|
+
});
|
|
75
|
+
return { root, client, transport };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
test('R30 hermetic autonomous fixture exposes the exact 41-tool no-host catalog', async () => {
|
|
79
|
+
const f = await fixture();
|
|
80
|
+
try {
|
|
81
|
+
await f.client.connect(f.transport);
|
|
82
|
+
const listed = await f.client.listTools();
|
|
83
|
+
const names = listed.tools.map(tool => tool.name).sort();
|
|
84
|
+
assert.deepEqual(names, [...r23Tools, ...r24Tools].sort());
|
|
85
|
+
for (const tool of listed.tools.filter(item => r24Tools.includes(item.name))) {
|
|
86
|
+
assert.equal(tool.outputSchema?.type, 'object', `${tool.name} output schema missing`);
|
|
87
|
+
assert.equal(tool.outputSchema?.additionalProperties, false, `${tool.name} output schema must be strict`);
|
|
88
|
+
}
|
|
89
|
+
} finally {
|
|
90
|
+
await f.client.close().catch(() => {});
|
|
91
|
+
await rm(f.root, { recursive:true, force:true }).catch(() => {});
|
|
92
|
+
}
|
|
93
|
+
});
|