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,966 @@
|
|
|
1
|
+
#define WIN32_LEAN_AND_MEAN
|
|
2
|
+
#include <winsock2.h>
|
|
3
|
+
#include <ws2tcpip.h>
|
|
4
|
+
#include <windows.h>
|
|
5
|
+
#include <aclapi.h>
|
|
6
|
+
#include <sddl.h>
|
|
7
|
+
#include <userenv.h>
|
|
8
|
+
#include <bcrypt.h>
|
|
9
|
+
|
|
10
|
+
#include <algorithm>
|
|
11
|
+
#include <cwctype>
|
|
12
|
+
#include <cstdio>
|
|
13
|
+
#include <cstdint>
|
|
14
|
+
#include <filesystem>
|
|
15
|
+
#include <sstream>
|
|
16
|
+
#include <stdexcept>
|
|
17
|
+
#include <string>
|
|
18
|
+
#include <unordered_map>
|
|
19
|
+
#include <vector>
|
|
20
|
+
|
|
21
|
+
#pragma comment(lib, "userenv.lib")
|
|
22
|
+
#pragma comment(lib, "advapi32.lib")
|
|
23
|
+
#pragma comment(lib, "Ole32.lib")
|
|
24
|
+
#pragma comment(lib, "bcrypt.lib")
|
|
25
|
+
#pragma comment(lib, "Ws2_32.lib")
|
|
26
|
+
|
|
27
|
+
namespace fs = std::filesystem;
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class SocketHandle {
|
|
31
|
+
public:
|
|
32
|
+
SocketHandle() = default;
|
|
33
|
+
explicit SocketHandle(SOCKET s) : s_(s) {}
|
|
34
|
+
~SocketHandle() { reset(); }
|
|
35
|
+
SocketHandle(const SocketHandle&) = delete;
|
|
36
|
+
SocketHandle& operator=(const SocketHandle&) = delete;
|
|
37
|
+
SocketHandle(SocketHandle&& other) noexcept : s_(other.release()) {}
|
|
38
|
+
SocketHandle& operator=(SocketHandle&& other) noexcept {
|
|
39
|
+
if (this != &other) reset(other.release());
|
|
40
|
+
return *this;
|
|
41
|
+
}
|
|
42
|
+
SOCKET get() const { return s_; }
|
|
43
|
+
explicit operator bool() const { return s_ != INVALID_SOCKET; }
|
|
44
|
+
SOCKET release() { SOCKET out = s_; s_ = INVALID_SOCKET; return out; }
|
|
45
|
+
void reset(SOCKET next = INVALID_SOCKET) {
|
|
46
|
+
if (s_ != INVALID_SOCKET) closesocket(s_);
|
|
47
|
+
s_ = next;
|
|
48
|
+
}
|
|
49
|
+
private:
|
|
50
|
+
SOCKET s_ = INVALID_SOCKET;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
class WinsockSession {
|
|
54
|
+
public:
|
|
55
|
+
WinsockSession() {
|
|
56
|
+
WSADATA data{};
|
|
57
|
+
const int error = WSAStartup(MAKEWORD(2, 2), &data);
|
|
58
|
+
if (error != 0) {
|
|
59
|
+
std::ostringstream os;
|
|
60
|
+
os << "WSAStartup failed with Winsock error " << error;
|
|
61
|
+
throw std::runtime_error(os.str());
|
|
62
|
+
}
|
|
63
|
+
started_ = true;
|
|
64
|
+
}
|
|
65
|
+
~WinsockSession() { if (started_) WSACleanup(); }
|
|
66
|
+
WinsockSession(const WinsockSession&) = delete;
|
|
67
|
+
WinsockSession& operator=(const WinsockSession&) = delete;
|
|
68
|
+
private:
|
|
69
|
+
bool started_ = false;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
struct LoopbackCanary {
|
|
73
|
+
SocketHandle listener;
|
|
74
|
+
unsigned short port = 0;
|
|
75
|
+
bool host_control_ok = false;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
static std::runtime_error WsaError(const char* what, int error = WSAGetLastError()) {
|
|
79
|
+
std::ostringstream os;
|
|
80
|
+
os << what << " failed with Winsock error " << error;
|
|
81
|
+
return std::runtime_error(os.str());
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static LoopbackCanary CreateLoopbackCanary() {
|
|
85
|
+
LoopbackCanary out{};
|
|
86
|
+
out.listener.reset(socket(AF_INET, SOCK_STREAM, IPPROTO_TCP));
|
|
87
|
+
if (!out.listener) throw WsaError("socket(loopback listener)");
|
|
88
|
+
|
|
89
|
+
BOOL exclusive = TRUE;
|
|
90
|
+
if (setsockopt(out.listener.get(), SOL_SOCKET, SO_EXCLUSIVEADDRUSE,
|
|
91
|
+
reinterpret_cast<const char*>(&exclusive), sizeof(exclusive)) == SOCKET_ERROR) {
|
|
92
|
+
throw WsaError("setsockopt(SO_EXCLUSIVEADDRUSE)");
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
sockaddr_in bindAddress{};
|
|
96
|
+
bindAddress.sin_family = AF_INET;
|
|
97
|
+
bindAddress.sin_port = htons(0);
|
|
98
|
+
bindAddress.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
|
99
|
+
if (bind(out.listener.get(), reinterpret_cast<const sockaddr*>(&bindAddress), sizeof(bindAddress)) == SOCKET_ERROR) {
|
|
100
|
+
throw WsaError("bind(loopback listener)");
|
|
101
|
+
}
|
|
102
|
+
if (listen(out.listener.get(), 2) == SOCKET_ERROR) throw WsaError("listen(loopback listener)");
|
|
103
|
+
|
|
104
|
+
sockaddr_in resolved{};
|
|
105
|
+
int resolvedBytes = sizeof(resolved);
|
|
106
|
+
if (getsockname(out.listener.get(), reinterpret_cast<sockaddr*>(&resolved), &resolvedBytes) == SOCKET_ERROR) {
|
|
107
|
+
throw WsaError("getsockname(loopback listener)");
|
|
108
|
+
}
|
|
109
|
+
out.port = ntohs(resolved.sin_port);
|
|
110
|
+
if (out.port == 0) throw std::runtime_error("loopback listener resolved invalid port");
|
|
111
|
+
|
|
112
|
+
SocketHandle control(socket(AF_INET, SOCK_STREAM, IPPROTO_TCP));
|
|
113
|
+
if (!control) throw WsaError("socket(loopback positive control)");
|
|
114
|
+
sockaddr_in target{};
|
|
115
|
+
target.sin_family = AF_INET;
|
|
116
|
+
target.sin_port = htons(out.port);
|
|
117
|
+
target.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
|
118
|
+
if (connect(control.get(), reinterpret_cast<const sockaddr*>(&target), sizeof(target)) == SOCKET_ERROR) {
|
|
119
|
+
throw WsaError("connect(loopback positive control)");
|
|
120
|
+
}
|
|
121
|
+
SocketHandle accepted(accept(out.listener.get(), nullptr, nullptr));
|
|
122
|
+
if (!accepted) throw WsaError("accept(loopback positive control)");
|
|
123
|
+
out.host_control_ok = true;
|
|
124
|
+
return out;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
class Handle {
|
|
128
|
+
public:
|
|
129
|
+
Handle() = default;
|
|
130
|
+
explicit Handle(HANDLE h) : h_(h) {}
|
|
131
|
+
~Handle() { reset(); }
|
|
132
|
+
Handle(const Handle&) = delete;
|
|
133
|
+
Handle& operator=(const Handle&) = delete;
|
|
134
|
+
Handle(Handle&& other) noexcept : h_(other.release()) {}
|
|
135
|
+
Handle& operator=(Handle&& other) noexcept {
|
|
136
|
+
if (this != &other) reset(other.release());
|
|
137
|
+
return *this;
|
|
138
|
+
}
|
|
139
|
+
HANDLE get() const { return h_; }
|
|
140
|
+
explicit operator bool() const { return h_ && h_ != INVALID_HANDLE_VALUE; }
|
|
141
|
+
HANDLE release() { HANDLE out = h_; h_ = nullptr; return out; }
|
|
142
|
+
void reset(HANDLE next = nullptr) {
|
|
143
|
+
if (h_ && h_ != INVALID_HANDLE_VALUE) CloseHandle(h_);
|
|
144
|
+
h_ = next;
|
|
145
|
+
}
|
|
146
|
+
private:
|
|
147
|
+
HANDLE h_ = nullptr;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
static std::runtime_error WinError(const char* what, DWORD error = GetLastError()) {
|
|
151
|
+
std::ostringstream os;
|
|
152
|
+
os << what << " failed with Win32 error " << error;
|
|
153
|
+
return std::runtime_error(os.str());
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static std::runtime_error HrError(const char* what, HRESULT hr) {
|
|
157
|
+
std::ostringstream os;
|
|
158
|
+
os << what << " failed with HRESULT 0x" << std::hex << static_cast<unsigned long>(hr);
|
|
159
|
+
return std::runtime_error(os.str());
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
static std::wstring Quote(const std::wstring& value) {
|
|
163
|
+
return L"\"" + value + L"\"";
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
static std::string EscapeJson(const std::string& value) {
|
|
167
|
+
std::string out;
|
|
168
|
+
out.reserve(value.size() + 16);
|
|
169
|
+
for (unsigned char c : value) {
|
|
170
|
+
switch (c) {
|
|
171
|
+
case '\\': out += "\\\\"; break;
|
|
172
|
+
case '"': out += "\\\""; break;
|
|
173
|
+
case '\n': out += "\\n"; break;
|
|
174
|
+
case '\r': out += "\\r"; break;
|
|
175
|
+
case '\t': out += "\\t"; break;
|
|
176
|
+
default:
|
|
177
|
+
if (c < 0x20) {
|
|
178
|
+
char tmp[7] = {};
|
|
179
|
+
std::snprintf(tmp, sizeof(tmp), "\\u%04x", static_cast<unsigned>(c));
|
|
180
|
+
out += tmp;
|
|
181
|
+
} else {
|
|
182
|
+
out.push_back(static_cast<char>(c));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return out;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static std::string NarrowAscii(const std::wstring& value) {
|
|
190
|
+
std::string out;
|
|
191
|
+
out.reserve(value.size());
|
|
192
|
+
for (wchar_t c : value) {
|
|
193
|
+
if (c < 0 || c > 0x7f) throw std::runtime_error("non-ASCII value cannot be narrowed safely");
|
|
194
|
+
out.push_back(static_cast<char>(c));
|
|
195
|
+
}
|
|
196
|
+
return out;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
static bool IsLowerHex64(const std::wstring& value) {
|
|
200
|
+
if (value.size() != 64) return false;
|
|
201
|
+
for (wchar_t c : value) {
|
|
202
|
+
if (!((c >= L'0' && c <= L'9') || (c >= L'a' && c <= L'f'))) return false;
|
|
203
|
+
}
|
|
204
|
+
return true;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
static std::wstring SidString(PSID sid) {
|
|
208
|
+
LPWSTR raw = nullptr;
|
|
209
|
+
if (!ConvertSidToStringSidW(sid, &raw)) throw WinError("ConvertSidToStringSidW");
|
|
210
|
+
std::wstring out(raw);
|
|
211
|
+
LocalFree(raw);
|
|
212
|
+
return out;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
static std::wstring CurrentUserSidString() {
|
|
216
|
+
HANDLE rawToken = nullptr;
|
|
217
|
+
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, &rawToken)) throw WinError("OpenProcessToken");
|
|
218
|
+
Handle token(rawToken);
|
|
219
|
+
DWORD bytes = 0;
|
|
220
|
+
GetTokenInformation(token.get(), TokenUser, nullptr, 0, &bytes);
|
|
221
|
+
if (GetLastError() != ERROR_INSUFFICIENT_BUFFER || bytes == 0) throw WinError("GetTokenInformation(size)");
|
|
222
|
+
std::vector<unsigned char> buffer(bytes);
|
|
223
|
+
if (!GetTokenInformation(token.get(), TokenUser, buffer.data(), bytes, &bytes)) throw WinError("GetTokenInformation(TokenUser)");
|
|
224
|
+
const TOKEN_USER* user = reinterpret_cast<const TOKEN_USER*>(buffer.data());
|
|
225
|
+
return SidString(user->User.Sid);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
static void ProtectCanaryForUserOnly(const std::wstring& path) {
|
|
229
|
+
const std::wstring userSidText = CurrentUserSidString();
|
|
230
|
+
PSID userSid = nullptr;
|
|
231
|
+
if (!ConvertStringSidToSidW(userSidText.c_str(), &userSid)) throw WinError("ConvertStringSidToSidW(user)");
|
|
232
|
+
|
|
233
|
+
BYTE systemBuffer[SECURITY_MAX_SID_SIZE] = {};
|
|
234
|
+
DWORD systemBytes = sizeof(systemBuffer);
|
|
235
|
+
if (!CreateWellKnownSid(WinLocalSystemSid, nullptr, systemBuffer, &systemBytes)) {
|
|
236
|
+
LocalFree(userSid);
|
|
237
|
+
throw WinError("CreateWellKnownSid(LocalSystem)");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
EXPLICIT_ACCESSW entries[2] = {};
|
|
241
|
+
for (auto& entry : entries) {
|
|
242
|
+
entry.grfAccessPermissions = GENERIC_ALL;
|
|
243
|
+
entry.grfAccessMode = GRANT_ACCESS;
|
|
244
|
+
entry.grfInheritance = NO_INHERITANCE;
|
|
245
|
+
entry.Trustee.TrusteeForm = TRUSTEE_IS_SID;
|
|
246
|
+
entry.Trustee.TrusteeType = TRUSTEE_IS_USER;
|
|
247
|
+
}
|
|
248
|
+
entries[0].Trustee.ptstrName = static_cast<LPWSTR>(userSid);
|
|
249
|
+
entries[1].Trustee.ptstrName = reinterpret_cast<LPWSTR>(systemBuffer);
|
|
250
|
+
|
|
251
|
+
PACL acl = nullptr;
|
|
252
|
+
const DWORD aclStatus = SetEntriesInAclW(2, entries, nullptr, &acl);
|
|
253
|
+
if (aclStatus != ERROR_SUCCESS) {
|
|
254
|
+
LocalFree(userSid);
|
|
255
|
+
throw WinError("SetEntriesInAclW", aclStatus);
|
|
256
|
+
}
|
|
257
|
+
const DWORD secStatus = SetNamedSecurityInfoW(
|
|
258
|
+
const_cast<LPWSTR>(path.c_str()), SE_FILE_OBJECT,
|
|
259
|
+
DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION,
|
|
260
|
+
nullptr, nullptr, acl, nullptr);
|
|
261
|
+
LocalFree(acl);
|
|
262
|
+
LocalFree(userSid);
|
|
263
|
+
if (secStatus != ERROR_SUCCESS) throw WinError("SetNamedSecurityInfoW", secStatus);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
static void ProtectCanaryForUserAndAllAppPackages(const std::wstring& path) {
|
|
267
|
+
const std::wstring userSidText = CurrentUserSidString();
|
|
268
|
+
PSID userSid = nullptr;
|
|
269
|
+
PSID appPackagesSid = nullptr;
|
|
270
|
+
if (!ConvertStringSidToSidW(userSidText.c_str(), &userSid)) throw WinError("ConvertStringSidToSidW(user)");
|
|
271
|
+
if (!ConvertStringSidToSidW(L"S-1-15-2-1", &appPackagesSid)) {
|
|
272
|
+
LocalFree(userSid);
|
|
273
|
+
throw WinError("ConvertStringSidToSidW(ALL_APPLICATION_PACKAGES)");
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
BYTE systemBuffer[SECURITY_MAX_SID_SIZE] = {};
|
|
277
|
+
DWORD systemBytes = sizeof(systemBuffer);
|
|
278
|
+
if (!CreateWellKnownSid(WinLocalSystemSid, nullptr, systemBuffer, &systemBytes)) {
|
|
279
|
+
LocalFree(appPackagesSid);
|
|
280
|
+
LocalFree(userSid);
|
|
281
|
+
throw WinError("CreateWellKnownSid(LocalSystem)");
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
EXPLICIT_ACCESSW entries[3] = {};
|
|
285
|
+
for (auto& entry : entries) {
|
|
286
|
+
entry.grfAccessMode = GRANT_ACCESS;
|
|
287
|
+
entry.grfInheritance = NO_INHERITANCE;
|
|
288
|
+
entry.Trustee.TrusteeForm = TRUSTEE_IS_SID;
|
|
289
|
+
}
|
|
290
|
+
entries[0].grfAccessPermissions = GENERIC_ALL;
|
|
291
|
+
entries[0].Trustee.TrusteeType = TRUSTEE_IS_USER;
|
|
292
|
+
entries[0].Trustee.ptstrName = static_cast<LPWSTR>(userSid);
|
|
293
|
+
entries[1].grfAccessPermissions = GENERIC_ALL;
|
|
294
|
+
entries[1].Trustee.TrusteeType = TRUSTEE_IS_USER;
|
|
295
|
+
entries[1].Trustee.ptstrName = reinterpret_cast<LPWSTR>(systemBuffer);
|
|
296
|
+
entries[2].grfAccessPermissions = GENERIC_READ;
|
|
297
|
+
entries[2].Trustee.TrusteeType = TRUSTEE_IS_GROUP;
|
|
298
|
+
entries[2].Trustee.ptstrName = static_cast<LPWSTR>(appPackagesSid);
|
|
299
|
+
|
|
300
|
+
PACL acl = nullptr;
|
|
301
|
+
const DWORD aclStatus = SetEntriesInAclW(3, entries, nullptr, &acl);
|
|
302
|
+
if (aclStatus != ERROR_SUCCESS) {
|
|
303
|
+
LocalFree(appPackagesSid);
|
|
304
|
+
LocalFree(userSid);
|
|
305
|
+
throw WinError("SetEntriesInAclW(AAP)", aclStatus);
|
|
306
|
+
}
|
|
307
|
+
const DWORD secStatus = SetNamedSecurityInfoW(
|
|
308
|
+
const_cast<LPWSTR>(path.c_str()), SE_FILE_OBJECT,
|
|
309
|
+
DACL_SECURITY_INFORMATION | PROTECTED_DACL_SECURITY_INFORMATION,
|
|
310
|
+
nullptr, nullptr, acl, nullptr);
|
|
311
|
+
LocalFree(acl);
|
|
312
|
+
LocalFree(appPackagesSid);
|
|
313
|
+
LocalFree(userSid);
|
|
314
|
+
if (secStatus != ERROR_SUCCESS) throw WinError("SetNamedSecurityInfoW(AAP)", secStatus);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
static void WriteTextNew(const std::wstring& path, const char* bytes, DWORD length) {
|
|
318
|
+
Handle h(CreateFileW(path.c_str(), GENERIC_WRITE, 0, nullptr, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, nullptr));
|
|
319
|
+
if (!h) throw WinError("CreateFileW(write)");
|
|
320
|
+
DWORD written = 0;
|
|
321
|
+
if (!WriteFile(h.get(), bytes, length, &written, nullptr) || written != length) throw WinError("WriteFile");
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
static void WriteBytesNew(const std::wstring& path, const std::vector<unsigned char>& bytes) {
|
|
325
|
+
Handle h(CreateFileW(path.c_str(), GENERIC_WRITE, 0, nullptr, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, nullptr));
|
|
326
|
+
if (!h) throw WinError("CreateFileW(input)");
|
|
327
|
+
DWORD written = 0;
|
|
328
|
+
if (!bytes.empty() && (!WriteFile(h.get(), bytes.data(), static_cast<DWORD>(bytes.size()), &written, nullptr) || written != static_cast<DWORD>(bytes.size()))) {
|
|
329
|
+
throw WinError("WriteFile(input)");
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
static std::vector<unsigned char> ReadFileBounded(const std::wstring& path, size_t limit) {
|
|
334
|
+
Handle h(CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr));
|
|
335
|
+
if (!h) throw WinError("CreateFileW(read)");
|
|
336
|
+
LARGE_INTEGER size{};
|
|
337
|
+
if (!GetFileSizeEx(h.get(), &size) || size.QuadPart < 0 || static_cast<unsigned long long>(size.QuadPart) > limit) {
|
|
338
|
+
throw std::runtime_error("sandbox file exceeds limit");
|
|
339
|
+
}
|
|
340
|
+
std::vector<unsigned char> out(static_cast<size_t>(size.QuadPart));
|
|
341
|
+
DWORD read = 0;
|
|
342
|
+
if (!out.empty() && (!ReadFile(h.get(), out.data(), static_cast<DWORD>(out.size()), &read, nullptr) || read != static_cast<DWORD>(out.size()))) {
|
|
343
|
+
throw WinError("ReadFile");
|
|
344
|
+
}
|
|
345
|
+
return out;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
static std::string ReadTextBounded(const std::wstring& path, size_t limit) {
|
|
349
|
+
const std::vector<unsigned char> bytes = ReadFileBounded(path, limit);
|
|
350
|
+
return std::string(bytes.begin(), bytes.end());
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
static std::vector<unsigned char> ReadStdinBounded(size_t limit) {
|
|
354
|
+
std::vector<unsigned char> out;
|
|
355
|
+
out.reserve(64 * 1024);
|
|
356
|
+
HANDLE input = GetStdHandle(STD_INPUT_HANDLE);
|
|
357
|
+
if (!input || input == INVALID_HANDLE_VALUE) throw WinError("GetStdHandle(stdin)");
|
|
358
|
+
unsigned char buffer[8192] = {};
|
|
359
|
+
for (;;) {
|
|
360
|
+
DWORD read = 0;
|
|
361
|
+
if (!ReadFile(input, buffer, sizeof(buffer), &read, nullptr)) {
|
|
362
|
+
const DWORD error = GetLastError();
|
|
363
|
+
if (error == ERROR_BROKEN_PIPE) break;
|
|
364
|
+
throw WinError("ReadFile(stdin)", error);
|
|
365
|
+
}
|
|
366
|
+
if (read == 0) break;
|
|
367
|
+
if (out.size() + read > limit) throw std::runtime_error("stdin import exceeds 1 MiB limit");
|
|
368
|
+
out.insert(out.end(), buffer, buffer + read);
|
|
369
|
+
}
|
|
370
|
+
return out;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
static std::string Base64Encode(const std::vector<unsigned char>& bytes) {
|
|
374
|
+
static const char table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
375
|
+
std::string out;
|
|
376
|
+
out.reserve(((bytes.size() + 2) / 3) * 4);
|
|
377
|
+
size_t i = 0;
|
|
378
|
+
while (i + 3 <= bytes.size()) {
|
|
379
|
+
const uint32_t n = (static_cast<uint32_t>(bytes[i]) << 16) |
|
|
380
|
+
(static_cast<uint32_t>(bytes[i + 1]) << 8) |
|
|
381
|
+
static_cast<uint32_t>(bytes[i + 2]);
|
|
382
|
+
out.push_back(table[(n >> 18) & 63]);
|
|
383
|
+
out.push_back(table[(n >> 12) & 63]);
|
|
384
|
+
out.push_back(table[(n >> 6) & 63]);
|
|
385
|
+
out.push_back(table[n & 63]);
|
|
386
|
+
i += 3;
|
|
387
|
+
}
|
|
388
|
+
if (i < bytes.size()) {
|
|
389
|
+
uint32_t n = static_cast<uint32_t>(bytes[i]) << 16;
|
|
390
|
+
out.push_back(table[(n >> 18) & 63]);
|
|
391
|
+
if (i + 1 < bytes.size()) {
|
|
392
|
+
n |= static_cast<uint32_t>(bytes[i + 1]) << 8;
|
|
393
|
+
out.push_back(table[(n >> 12) & 63]);
|
|
394
|
+
out.push_back(table[(n >> 6) & 63]);
|
|
395
|
+
out.push_back('=');
|
|
396
|
+
} else {
|
|
397
|
+
out.push_back(table[(n >> 12) & 63]);
|
|
398
|
+
out.push_back('=');
|
|
399
|
+
out.push_back('=');
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return out;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
static std::wstring TempPathWithPrefix(const wchar_t* prefix) {
|
|
406
|
+
wchar_t temp[MAX_PATH + 1] = {};
|
|
407
|
+
const DWORD n = GetTempPathW(MAX_PATH, temp);
|
|
408
|
+
if (n == 0 || n >= MAX_PATH) throw WinError("GetTempPathW");
|
|
409
|
+
wchar_t name[160] = {};
|
|
410
|
+
swprintf_s(name, L"%s-%lu-%llu.txt", prefix,
|
|
411
|
+
static_cast<unsigned long>(GetCurrentProcessId()),
|
|
412
|
+
static_cast<unsigned long long>(GetTickCount64()));
|
|
413
|
+
return (fs::path(temp) / name).wstring();
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
static void WriteHostCanary(const std::wstring& path) {
|
|
417
|
+
static const char secret[] = "HOST-ONLY-CANARY\n";
|
|
418
|
+
WriteTextNew(path, secret, static_cast<DWORD>(sizeof(secret) - 1));
|
|
419
|
+
ProtectCanaryForUserOnly(path);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
static void WriteAapCanary(const std::wstring& path) {
|
|
423
|
+
static const char marker[] = "ALL-APPLICATION-PACKAGES-CANARY\n";
|
|
424
|
+
WriteTextNew(path, marker, static_cast<DWORD>(sizeof(marker) - 1));
|
|
425
|
+
ProtectCanaryForUserAndAllAppPackages(path);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
static std::wstring ProfileName() {
|
|
429
|
+
wchar_t name[80] = {};
|
|
430
|
+
swprintf_s(name, L"Deadbyte.Mcp.V06.%lu.%llu",
|
|
431
|
+
static_cast<unsigned long>(GetCurrentProcessId()),
|
|
432
|
+
static_cast<unsigned long long>(GetTickCount64() & 0xFFFFFFu));
|
|
433
|
+
return name;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
static PSID CreateEphemeralProfile(const std::wstring& name) {
|
|
437
|
+
PSID sid = nullptr;
|
|
438
|
+
HRESULT hr = CreateAppContainerProfile(name.c_str(), L"DEADBYTE MCP V0.5",
|
|
439
|
+
L"Contained execution profile", nullptr, 0, &sid);
|
|
440
|
+
if (hr == HRESULT_FROM_WIN32(ERROR_ALREADY_EXISTS)) hr = DeriveAppContainerSidFromAppContainerName(name.c_str(), &sid);
|
|
441
|
+
if (FAILED(hr) || !sid) throw HrError("CreateAppContainerProfile", hr);
|
|
442
|
+
return sid;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
static std::wstring AppContainerFolder(PSID sid) {
|
|
446
|
+
const std::wstring sidText = SidString(sid);
|
|
447
|
+
PWSTR raw = nullptr;
|
|
448
|
+
const HRESULT hr = GetAppContainerFolderPath(sidText.c_str(), &raw);
|
|
449
|
+
if (FAILED(hr) || !raw) throw HrError("GetAppContainerFolderPath", hr);
|
|
450
|
+
std::wstring out(raw);
|
|
451
|
+
CoTaskMemFree(raw);
|
|
452
|
+
return out;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
static std::runtime_error BcryptError(const char* what, NTSTATUS status) {
|
|
458
|
+
std::ostringstream os;
|
|
459
|
+
os << what << " failed with NTSTATUS 0x" << std::hex << static_cast<unsigned long>(status);
|
|
460
|
+
return std::runtime_error(os.str());
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
static std::string HexLower(const std::vector<unsigned char>& bytes) {
|
|
464
|
+
static const char digits[] = "0123456789abcdef";
|
|
465
|
+
std::string out;
|
|
466
|
+
out.reserve(bytes.size() * 2);
|
|
467
|
+
for (unsigned char b : bytes) {
|
|
468
|
+
out.push_back(digits[(b >> 4) & 0x0f]);
|
|
469
|
+
out.push_back(digits[b & 0x0f]);
|
|
470
|
+
}
|
|
471
|
+
return out;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
static std::string Sha256FileHex(const std::wstring& path) {
|
|
475
|
+
BCRYPT_ALG_HANDLE algorithm = nullptr;
|
|
476
|
+
BCRYPT_HASH_HANDLE hash = nullptr;
|
|
477
|
+
NTSTATUS status = BCryptOpenAlgorithmProvider(&algorithm, BCRYPT_SHA256_ALGORITHM, nullptr, 0);
|
|
478
|
+
if (status < 0) throw BcryptError("BCryptOpenAlgorithmProvider", status);
|
|
479
|
+
auto closeAlgorithm = [&]() {
|
|
480
|
+
if (hash) { BCryptDestroyHash(hash); hash = nullptr; }
|
|
481
|
+
if (algorithm) { BCryptCloseAlgorithmProvider(algorithm, 0); algorithm = nullptr; }
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
try {
|
|
485
|
+
DWORD objectBytes = 0;
|
|
486
|
+
DWORD copied = 0;
|
|
487
|
+
status = BCryptGetProperty(algorithm, BCRYPT_OBJECT_LENGTH,
|
|
488
|
+
reinterpret_cast<PUCHAR>(&objectBytes), sizeof(objectBytes), &copied, 0);
|
|
489
|
+
if (status < 0 || copied != sizeof(objectBytes) || objectBytes == 0) throw BcryptError("BCryptGetProperty(object length)", status);
|
|
490
|
+
DWORD digestBytes = 0;
|
|
491
|
+
copied = 0;
|
|
492
|
+
status = BCryptGetProperty(algorithm, BCRYPT_HASH_LENGTH,
|
|
493
|
+
reinterpret_cast<PUCHAR>(&digestBytes), sizeof(digestBytes), &copied, 0);
|
|
494
|
+
if (status < 0 || copied != sizeof(digestBytes) || digestBytes != 32) throw BcryptError("BCryptGetProperty(hash length)", status);
|
|
495
|
+
|
|
496
|
+
std::vector<unsigned char> object(objectBytes);
|
|
497
|
+
std::vector<unsigned char> digest(digestBytes);
|
|
498
|
+
status = BCryptCreateHash(algorithm, &hash, object.data(), static_cast<ULONG>(object.size()), nullptr, 0, 0);
|
|
499
|
+
if (status < 0) throw BcryptError("BCryptCreateHash", status);
|
|
500
|
+
|
|
501
|
+
Handle file(CreateFileW(path.c_str(), GENERIC_READ, FILE_SHARE_READ, nullptr, OPEN_EXISTING,
|
|
502
|
+
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, nullptr));
|
|
503
|
+
if (!file) throw WinError("CreateFileW(worker registry hash)");
|
|
504
|
+
std::vector<unsigned char> buffer(64 * 1024);
|
|
505
|
+
for (;;) {
|
|
506
|
+
DWORD read = 0;
|
|
507
|
+
if (!ReadFile(file.get(), buffer.data(), static_cast<DWORD>(buffer.size()), &read, nullptr)) {
|
|
508
|
+
throw WinError("ReadFile(worker registry hash)");
|
|
509
|
+
}
|
|
510
|
+
if (read == 0) break;
|
|
511
|
+
status = BCryptHashData(hash, buffer.data(), read, 0);
|
|
512
|
+
if (status < 0) throw BcryptError("BCryptHashData", status);
|
|
513
|
+
}
|
|
514
|
+
status = BCryptFinishHash(hash, digest.data(), static_cast<ULONG>(digest.size()), 0);
|
|
515
|
+
if (status < 0) throw BcryptError("BCryptFinishHash", status);
|
|
516
|
+
const std::string out = HexLower(digest);
|
|
517
|
+
closeAlgorithm();
|
|
518
|
+
return out;
|
|
519
|
+
} catch (...) {
|
|
520
|
+
closeAlgorithm();
|
|
521
|
+
throw;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
static std::string Sha256BytesHex(const std::vector<unsigned char>& bytes) {
|
|
526
|
+
BCRYPT_ALG_HANDLE algorithm = nullptr;
|
|
527
|
+
BCRYPT_HASH_HANDLE hash = nullptr;
|
|
528
|
+
NTSTATUS status = BCryptOpenAlgorithmProvider(&algorithm, BCRYPT_SHA256_ALGORITHM, nullptr, 0);
|
|
529
|
+
if (status < 0) throw BcryptError("BCryptOpenAlgorithmProvider(bytes)", status);
|
|
530
|
+
auto closeAlgorithm = [&]() {
|
|
531
|
+
if (hash) { BCryptDestroyHash(hash); hash = nullptr; }
|
|
532
|
+
if (algorithm) { BCryptCloseAlgorithmProvider(algorithm, 0); algorithm = nullptr; }
|
|
533
|
+
};
|
|
534
|
+
try {
|
|
535
|
+
DWORD objectBytes = 0, digestBytes = 0, copied = 0;
|
|
536
|
+
status = BCryptGetProperty(algorithm, BCRYPT_OBJECT_LENGTH, reinterpret_cast<PUCHAR>(&objectBytes), sizeof(objectBytes), &copied, 0);
|
|
537
|
+
if (status < 0 || objectBytes == 0) throw BcryptError("BCryptGetProperty(bytes object)", status);
|
|
538
|
+
status = BCryptGetProperty(algorithm, BCRYPT_HASH_LENGTH, reinterpret_cast<PUCHAR>(&digestBytes), sizeof(digestBytes), &copied, 0);
|
|
539
|
+
if (status < 0 || digestBytes != 32) throw BcryptError("BCryptGetProperty(bytes hash)", status);
|
|
540
|
+
std::vector<unsigned char> object(objectBytes), digest(digestBytes);
|
|
541
|
+
status = BCryptCreateHash(algorithm, &hash, object.data(), static_cast<ULONG>(object.size()), nullptr, 0, 0);
|
|
542
|
+
if (status < 0) throw BcryptError("BCryptCreateHash(bytes)", status);
|
|
543
|
+
if (!bytes.empty()) {
|
|
544
|
+
status = BCryptHashData(hash, const_cast<PUCHAR>(bytes.data()), static_cast<ULONG>(bytes.size()), 0);
|
|
545
|
+
if (status < 0) throw BcryptError("BCryptHashData(bytes)", status);
|
|
546
|
+
}
|
|
547
|
+
status = BCryptFinishHash(hash, digest.data(), static_cast<ULONG>(digest.size()), 0);
|
|
548
|
+
if (status < 0) throw BcryptError("BCryptFinishHash(bytes)", status);
|
|
549
|
+
const std::string out = HexLower(digest);
|
|
550
|
+
closeAlgorithm();
|
|
551
|
+
return out;
|
|
552
|
+
} catch (...) { closeAlgorithm(); throw; }
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
static std::unordered_map<std::string, std::string> ParseWorkerRegistryManifest(const std::wstring& path) {
|
|
556
|
+
const std::string text = ReadTextBounded(path, 64ull * 1024ull);
|
|
557
|
+
std::unordered_map<std::string, std::string> values;
|
|
558
|
+
std::istringstream lines(text);
|
|
559
|
+
std::string line;
|
|
560
|
+
while (std::getline(lines, line)) {
|
|
561
|
+
if (!line.empty() && line.back() == '\r') line.pop_back();
|
|
562
|
+
if (line.empty()) continue;
|
|
563
|
+
const size_t equals = line.find('=');
|
|
564
|
+
if (equals == std::string::npos || equals == 0 || equals + 1 >= line.size()) {
|
|
565
|
+
throw std::runtime_error("worker registry manifest malformed line");
|
|
566
|
+
}
|
|
567
|
+
const std::string key = line.substr(0, equals);
|
|
568
|
+
const std::string value = line.substr(equals + 1);
|
|
569
|
+
if (!values.emplace(key, value).second) throw std::runtime_error("worker registry manifest duplicate key");
|
|
570
|
+
}
|
|
571
|
+
if (values.size() != 12) throw std::runtime_error("worker registry manifest key count mismatch");
|
|
572
|
+
return values;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
static const std::string& ManifestValue(const std::unordered_map<std::string, std::string>& values,
|
|
576
|
+
const std::string& key) {
|
|
577
|
+
const auto it = values.find(key);
|
|
578
|
+
if (it == values.end()) throw std::runtime_error("worker registry manifest missing key: " + key);
|
|
579
|
+
return it->second;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
struct RegistryEvidence {
|
|
583
|
+
std::string manifest_sha256;
|
|
584
|
+
std::string selected_worker_sha256;
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
struct WorkerSpec {
|
|
588
|
+
const wchar_t* worker_id;
|
|
589
|
+
const wchar_t* executable;
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
static std::string InvocationRequestSha256(const std::wstring& challenge,
|
|
593
|
+
const std::wstring& operation,
|
|
594
|
+
const std::string& inputSha256,
|
|
595
|
+
const RegistryEvidence& registryEvidence,
|
|
596
|
+
const WorkerSpec& workerSpec) {
|
|
597
|
+
const std::string body =
|
|
598
|
+
std::string("{\"challenge\":\"") + NarrowAscii(challenge) +
|
|
599
|
+
"\",\"input_sha256\":\"" + inputSha256 +
|
|
600
|
+
"\",\"operation\":\"" + NarrowAscii(operation) +
|
|
601
|
+
"\",\"schema\":\"deadbyte.invocation.v1\",\"worker_id\":\"" + NarrowAscii(workerSpec.worker_id) +
|
|
602
|
+
"\",\"worker_manifest_sha256\":\"" + registryEvidence.manifest_sha256 +
|
|
603
|
+
"\",\"worker_source_sha256\":\"" + registryEvidence.selected_worker_sha256 + "\"}";
|
|
604
|
+
return Sha256BytesHex(std::vector<unsigned char>(body.begin(), body.end()));
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
static bool ResolveWorkerSpec(const std::wstring& operation, WorkerSpec* spec) {
|
|
608
|
+
if (operation == L"uppercase_ascii" || operation == L"lowercase_ascii") {
|
|
609
|
+
spec->worker_id = L"contained-transform-v1";
|
|
610
|
+
spec->executable = L"contained-transform-worker.exe";
|
|
611
|
+
return true;
|
|
612
|
+
}
|
|
613
|
+
if (operation == L"reverse_bytes") {
|
|
614
|
+
spec->worker_id = L"contained-reverse-v1";
|
|
615
|
+
spec->executable = L"contained-reverse-worker.exe";
|
|
616
|
+
return true;
|
|
617
|
+
}
|
|
618
|
+
return false;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
static RegistryEvidence VerifyWorkerRegistryManifest(const fs::path& binDir,
|
|
623
|
+
const std::wstring& operation,
|
|
624
|
+
const WorkerSpec& selected) {
|
|
625
|
+
const fs::path manifestPath = binDir / L"WORKER-REGISTRY.txt";
|
|
626
|
+
const auto values = ParseWorkerRegistryManifest(manifestPath.wstring());
|
|
627
|
+
auto require = [&](const std::string& key, const std::string& expected) {
|
|
628
|
+
if (ManifestValue(values, key) != expected) throw std::runtime_error("worker registry manifest mismatch: " + key);
|
|
629
|
+
};
|
|
630
|
+
require("schema", "deadbyte.worker-registry.v1");
|
|
631
|
+
require("version", "0.6.0");
|
|
632
|
+
require("policy", "compile-time-operation-to-executable");
|
|
633
|
+
require("launcher.executable", "deadbyte-exec.exe");
|
|
634
|
+
require("operation.uppercase_ascii", "contained-transform-v1");
|
|
635
|
+
require("operation.lowercase_ascii", "contained-transform-v1");
|
|
636
|
+
require("operation.reverse_bytes", "contained-reverse-v1");
|
|
637
|
+
require("worker.contained-transform-v1.executable", "contained-transform-worker.exe");
|
|
638
|
+
require("worker.contained-reverse-v1.executable", "contained-reverse-worker.exe");
|
|
639
|
+
|
|
640
|
+
const fs::path launcherPath = binDir / L"deadbyte-exec.exe";
|
|
641
|
+
const fs::path transformPath = binDir / L"contained-transform-worker.exe";
|
|
642
|
+
const fs::path reversePath = binDir / L"contained-reverse-worker.exe";
|
|
643
|
+
require("launcher.sha256", Sha256FileHex(launcherPath.wstring()));
|
|
644
|
+
require("worker.contained-transform-v1.sha256", Sha256FileHex(transformPath.wstring()));
|
|
645
|
+
require("worker.contained-reverse-v1.sha256", Sha256FileHex(reversePath.wstring()));
|
|
646
|
+
|
|
647
|
+
const std::string operationKey = "operation." + NarrowAscii(operation);
|
|
648
|
+
require(operationKey, NarrowAscii(selected.worker_id));
|
|
649
|
+
const std::string workerPrefix = "worker." + NarrowAscii(selected.worker_id);
|
|
650
|
+
require(workerPrefix + ".executable", NarrowAscii(selected.executable));
|
|
651
|
+
|
|
652
|
+
RegistryEvidence evidence{};
|
|
653
|
+
evidence.manifest_sha256 = Sha256FileHex(manifestPath.wstring());
|
|
654
|
+
evidence.selected_worker_sha256 = ManifestValue(values, workerPrefix + ".sha256");
|
|
655
|
+
return evidence;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
static void SetJobLimits(HANDLE job) {
|
|
659
|
+
JOBOBJECT_EXTENDED_LIMIT_INFORMATION info{};
|
|
660
|
+
info.BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE |
|
|
661
|
+
JOB_OBJECT_LIMIT_ACTIVE_PROCESS |
|
|
662
|
+
JOB_OBJECT_LIMIT_PROCESS_MEMORY;
|
|
663
|
+
info.BasicLimitInformation.ActiveProcessLimit = 1;
|
|
664
|
+
info.ProcessMemoryLimit = 128ull * 1024ull * 1024ull;
|
|
665
|
+
if (!SetInformationJobObject(job, JobObjectExtendedLimitInformation, &info, sizeof(info))) {
|
|
666
|
+
throw WinError("SetInformationJobObject(extended)");
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
JOBOBJECT_BASIC_UI_RESTRICTIONS ui{};
|
|
670
|
+
ui.UIRestrictionsClass = JOB_OBJECT_UILIMIT_DESKTOP |
|
|
671
|
+
JOB_OBJECT_UILIMIT_DISPLAYSETTINGS |
|
|
672
|
+
JOB_OBJECT_UILIMIT_EXITWINDOWS |
|
|
673
|
+
JOB_OBJECT_UILIMIT_GLOBALATOMS |
|
|
674
|
+
JOB_OBJECT_UILIMIT_HANDLES |
|
|
675
|
+
JOB_OBJECT_UILIMIT_READCLIPBOARD |
|
|
676
|
+
JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS |
|
|
677
|
+
JOB_OBJECT_UILIMIT_WRITECLIPBOARD;
|
|
678
|
+
if (!SetInformationJobObject(job, JobObjectBasicUIRestrictions, &ui, sizeof(ui))) {
|
|
679
|
+
throw WinError("SetInformationJobObject(ui)");
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
int wmain(int argc, wchar_t** argv) {
|
|
684
|
+
if (argc != 7 || wcscmp(argv[1], L"--operation") != 0 ||
|
|
685
|
+
wcscmp(argv[3], L"--challenge") != 0 || wcscmp(argv[5], L"--request-digest") != 0) {
|
|
686
|
+
std::fprintf(stderr, "deadbyte-exec: invalid fixed argument contract\n");
|
|
687
|
+
return 64;
|
|
688
|
+
}
|
|
689
|
+
const std::wstring operation = argv[2];
|
|
690
|
+
const std::wstring invocationChallenge = argv[4];
|
|
691
|
+
const std::wstring invocationRequestSha256 = argv[6];
|
|
692
|
+
if (!IsLowerHex64(invocationChallenge) || !IsLowerHex64(invocationRequestSha256)) {
|
|
693
|
+
std::fprintf(stderr, "deadbyte-exec: invalid invocation challenge/request digest\n");
|
|
694
|
+
return 64;
|
|
695
|
+
}
|
|
696
|
+
WorkerSpec workerSpec{};
|
|
697
|
+
if (!ResolveWorkerSpec(operation, &workerSpec)) {
|
|
698
|
+
std::fprintf(stderr, "deadbyte-exec: unsupported --operation\n");
|
|
699
|
+
return 64;
|
|
700
|
+
}
|
|
701
|
+
wchar_t selfPath[MAX_PATH + 1] = {};
|
|
702
|
+
const DWORD selfChars = GetModuleFileNameW(nullptr, selfPath, MAX_PATH);
|
|
703
|
+
if (selfChars == 0 || selfChars >= MAX_PATH) {
|
|
704
|
+
std::fprintf(stderr, "deadbyte-exec: GetModuleFileNameW failed\n");
|
|
705
|
+
return 65;
|
|
706
|
+
}
|
|
707
|
+
const fs::path binDir = fs::path(selfPath).parent_path();
|
|
708
|
+
const std::wstring sourceWorker = (binDir / workerSpec.executable).wstring();
|
|
709
|
+
const RegistryEvidence registryEvidence = VerifyWorkerRegistryManifest(binDir, operation, workerSpec);
|
|
710
|
+
|
|
711
|
+
const std::wstring profileName = ProfileName();
|
|
712
|
+
const std::wstring hostCanary = TempPathWithPrefix(L"deadbyte-v06-host-canary");
|
|
713
|
+
const std::wstring aapCanary = TempPathWithPrefix(L"deadbyte-v06-aap-canary");
|
|
714
|
+
PSID appSid = nullptr;
|
|
715
|
+
bool profileCreated = false;
|
|
716
|
+
bool cleanupOk = false;
|
|
717
|
+
|
|
718
|
+
try {
|
|
719
|
+
const std::vector<unsigned char> imported = ReadStdinBounded(1024ull * 1024ull);
|
|
720
|
+
const std::string importedSha256 = Sha256BytesHex(imported);
|
|
721
|
+
const std::string recomputedInvocation = InvocationRequestSha256(
|
|
722
|
+
invocationChallenge, operation, importedSha256, registryEvidence, workerSpec);
|
|
723
|
+
if (recomputedInvocation != NarrowAscii(invocationRequestSha256)) {
|
|
724
|
+
throw std::runtime_error("invocation request digest mismatch before worker launch");
|
|
725
|
+
}
|
|
726
|
+
WriteHostCanary(hostCanary);
|
|
727
|
+
WriteAapCanary(aapCanary);
|
|
728
|
+
WinsockSession winsock;
|
|
729
|
+
LoopbackCanary networkCanary = CreateLoopbackCanary();
|
|
730
|
+
if (!networkCanary.host_control_ok) throw std::runtime_error("loopback network positive control failed");
|
|
731
|
+
|
|
732
|
+
appSid = CreateEphemeralProfile(profileName);
|
|
733
|
+
profileCreated = true;
|
|
734
|
+
const std::wstring sidText = SidString(appSid);
|
|
735
|
+
const fs::path runDir = fs::path(AppContainerFolder(appSid)) / L"deadbyte-v06-exec";
|
|
736
|
+
fs::create_directories(runDir);
|
|
737
|
+
|
|
738
|
+
const fs::path workerCopy = runDir / workerSpec.executable;
|
|
739
|
+
const fs::path inputPath = runDir / L"import.bin";
|
|
740
|
+
const fs::path outputPath = runDir / L"export.bin";
|
|
741
|
+
const fs::path evidencePath = runDir / L"execution-proof.json";
|
|
742
|
+
fs::remove(workerCopy);
|
|
743
|
+
fs::remove(inputPath);
|
|
744
|
+
fs::remove(outputPath);
|
|
745
|
+
fs::remove(evidencePath);
|
|
746
|
+
|
|
747
|
+
if (!CopyFileW(sourceWorker.c_str(), workerCopy.c_str(), TRUE)) throw WinError("CopyFileW(worker)");
|
|
748
|
+
if (Sha256FileHex(workerCopy.wstring()) != registryEvidence.selected_worker_sha256) {
|
|
749
|
+
throw std::runtime_error("copied worker hash does not match verified worker registry manifest");
|
|
750
|
+
}
|
|
751
|
+
WriteBytesNew(inputPath.wstring(), imported);
|
|
752
|
+
|
|
753
|
+
Handle job(CreateJobObjectW(nullptr, nullptr));
|
|
754
|
+
if (!job) throw WinError("CreateJobObjectW");
|
|
755
|
+
SetJobLimits(job.get());
|
|
756
|
+
|
|
757
|
+
SIZE_T attrBytes = 0;
|
|
758
|
+
constexpr DWORD kAttributeCount = 2;
|
|
759
|
+
InitializeProcThreadAttributeList(nullptr, kAttributeCount, 0, &attrBytes);
|
|
760
|
+
if (GetLastError() != ERROR_INSUFFICIENT_BUFFER || attrBytes == 0) throw WinError("InitializeProcThreadAttributeList(size)");
|
|
761
|
+
auto* attrs = reinterpret_cast<LPPROC_THREAD_ATTRIBUTE_LIST>(HeapAlloc(GetProcessHeap(), 0, attrBytes));
|
|
762
|
+
if (!attrs) throw std::runtime_error("HeapAlloc(attribute list) failed");
|
|
763
|
+
|
|
764
|
+
auto freeAttrs = [&]() {
|
|
765
|
+
if (attrs) {
|
|
766
|
+
DeleteProcThreadAttributeList(attrs);
|
|
767
|
+
HeapFree(GetProcessHeap(), 0, attrs);
|
|
768
|
+
attrs = nullptr;
|
|
769
|
+
}
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
if (!InitializeProcThreadAttributeList(attrs, kAttributeCount, 0, &attrBytes)) {
|
|
773
|
+
const DWORD e = GetLastError();
|
|
774
|
+
freeAttrs();
|
|
775
|
+
throw WinError("InitializeProcThreadAttributeList", e);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
SECURITY_CAPABILITIES caps{};
|
|
779
|
+
caps.AppContainerSid = appSid;
|
|
780
|
+
caps.Capabilities = nullptr;
|
|
781
|
+
caps.CapabilityCount = 0;
|
|
782
|
+
if (!UpdateProcThreadAttribute(attrs, 0, PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES,
|
|
783
|
+
&caps, sizeof(caps), nullptr, nullptr)) {
|
|
784
|
+
const DWORD e = GetLastError();
|
|
785
|
+
freeAttrs();
|
|
786
|
+
throw WinError("UpdateProcThreadAttribute(security capabilities)", e);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
HANDLE jobList[] = {job.get()};
|
|
790
|
+
if (!UpdateProcThreadAttribute(attrs, 0, PROC_THREAD_ATTRIBUTE_JOB_LIST,
|
|
791
|
+
jobList, sizeof(jobList), nullptr, nullptr)) {
|
|
792
|
+
const DWORD e = GetLastError();
|
|
793
|
+
freeAttrs();
|
|
794
|
+
throw WinError("UpdateProcThreadAttribute(job list)", e);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
STARTUPINFOEXW si{};
|
|
798
|
+
si.StartupInfo.cb = sizeof(si);
|
|
799
|
+
si.lpAttributeList = attrs;
|
|
800
|
+
PROCESS_INFORMATION pi{};
|
|
801
|
+
|
|
802
|
+
std::wstring command = Quote(workerCopy.wstring()) +
|
|
803
|
+
L" --operation " + operation +
|
|
804
|
+
L" --challenge " + invocationChallenge +
|
|
805
|
+
L" --request-digest " + invocationRequestSha256 +
|
|
806
|
+
L" --input " + Quote(inputPath.wstring()) +
|
|
807
|
+
L" --output " + Quote(outputPath.wstring()) +
|
|
808
|
+
L" --evidence " + Quote(evidencePath.wstring()) +
|
|
809
|
+
L" --outside " + Quote(hostCanary) +
|
|
810
|
+
L" --aap-canary " + Quote(aapCanary) +
|
|
811
|
+
L" --network-probe-port " + std::to_wstring(networkCanary.port);
|
|
812
|
+
std::vector<wchar_t> mutableCommand(command.begin(), command.end());
|
|
813
|
+
mutableCommand.push_back(L'\0');
|
|
814
|
+
|
|
815
|
+
// AppContainer process creation needs a small amount of user environment
|
|
816
|
+
// bootstrap state. In particular Microsoft documents LOCALAPPDATA as the
|
|
817
|
+
// root from which the AppContainer profile is exposed, and Chromium's
|
|
818
|
+
// Windows sandbox keeps LOCALAPPDATA when filtering target environments.
|
|
819
|
+
// Copy only this fixed bootstrap allowlist from the trusted host process;
|
|
820
|
+
// never pass arbitrary process.env values to the contained worker.
|
|
821
|
+
static constexpr const wchar_t* kEnvironmentAllowlist[] = {
|
|
822
|
+
L"Path", L"SystemDrive", L"SystemRoot", L"TEMP", L"TMP", L"LOCALAPPDATA"};
|
|
823
|
+
|
|
824
|
+
LPWCH rawHostEnvironment = GetEnvironmentStringsW();
|
|
825
|
+
if (!rawHostEnvironment) {
|
|
826
|
+
const DWORD e = GetLastError();
|
|
827
|
+
freeAttrs();
|
|
828
|
+
throw WinError("GetEnvironmentStringsW(contained worker)", e);
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
std::vector<std::wstring> environmentEntries;
|
|
832
|
+
bool localAppDataPresent = false;
|
|
833
|
+
for (const wchar_t* entry = rawHostEnvironment; *entry != L'\0'; entry += wcslen(entry) + 1) {
|
|
834
|
+
for (const wchar_t* allowedName : kEnvironmentAllowlist) {
|
|
835
|
+
const size_t nameChars = wcslen(allowedName);
|
|
836
|
+
if (_wcsnicmp(entry, allowedName, nameChars) == 0 && entry[nameChars] == L'=') {
|
|
837
|
+
environmentEntries.emplace_back(entry);
|
|
838
|
+
if (_wcsicmp(allowedName, L"LOCALAPPDATA") == 0) localAppDataPresent = true;
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
FreeEnvironmentStringsW(rawHostEnvironment);
|
|
844
|
+
rawHostEnvironment = nullptr;
|
|
845
|
+
|
|
846
|
+
if (!localAppDataPresent) {
|
|
847
|
+
freeAttrs();
|
|
848
|
+
throw std::runtime_error("contained worker bootstrap environment missing LOCALAPPDATA");
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
const std::wstring runDirText = runDir.wstring();
|
|
852
|
+
if (runDirText.size() < 3 || runDirText[1] != L':' ||
|
|
853
|
+
!((runDirText[0] >= L'A' && runDirText[0] <= L'Z') ||
|
|
854
|
+
(runDirText[0] >= L'a' && runDirText[0] <= L'z'))) {
|
|
855
|
+
freeAttrs();
|
|
856
|
+
throw std::runtime_error("contained worker current directory is not a drive-qualified path");
|
|
857
|
+
}
|
|
858
|
+
const wchar_t driveLetter = static_cast<wchar_t>(towupper(runDirText[0]));
|
|
859
|
+
const std::wstring drivePrefix = std::wstring(L"=") + driveLetter + L":=";
|
|
860
|
+
environmentEntries.push_back(drivePrefix + runDirText);
|
|
861
|
+
std::sort(environmentEntries.begin(), environmentEntries.end(),
|
|
862
|
+
[](const std::wstring& a, const std::wstring& b) {
|
|
863
|
+
return _wcsicmp(a.c_str(), b.c_str()) < 0;
|
|
864
|
+
});
|
|
865
|
+
|
|
866
|
+
std::vector<wchar_t> workerEnvironment;
|
|
867
|
+
size_t environmentChars = 1;
|
|
868
|
+
for (const auto& entry : environmentEntries) environmentChars += entry.size() + 1;
|
|
869
|
+
workerEnvironment.reserve(environmentChars);
|
|
870
|
+
for (const auto& entry : environmentEntries) {
|
|
871
|
+
workerEnvironment.insert(workerEnvironment.end(), entry.begin(), entry.end());
|
|
872
|
+
workerEnvironment.push_back(L'\0');
|
|
873
|
+
}
|
|
874
|
+
workerEnvironment.push_back(L'\0');
|
|
875
|
+
|
|
876
|
+
const DWORD creationFlags = EXTENDED_STARTUPINFO_PRESENT | CREATE_UNICODE_ENVIRONMENT | CREATE_NO_WINDOW;
|
|
877
|
+
const BOOL created = CreateProcessW(workerCopy.c_str(), mutableCommand.data(), nullptr, nullptr, FALSE,
|
|
878
|
+
creationFlags, workerEnvironment.data(), runDir.c_str(), &si.StartupInfo, &pi);
|
|
879
|
+
const DWORD createError = created ? ERROR_SUCCESS : GetLastError();
|
|
880
|
+
freeAttrs();
|
|
881
|
+
if (!created) throw WinError("CreateProcessW(contained worker)", createError);
|
|
882
|
+
|
|
883
|
+
Handle process(pi.hProcess);
|
|
884
|
+
Handle thread(pi.hThread);
|
|
885
|
+
bool timedOut = false;
|
|
886
|
+
const DWORD wait = WaitForSingleObject(process.get(), 10000);
|
|
887
|
+
if (wait == WAIT_TIMEOUT) {
|
|
888
|
+
timedOut = true;
|
|
889
|
+
TerminateJobObject(job.get(), 92);
|
|
890
|
+
WaitForSingleObject(process.get(), 3000);
|
|
891
|
+
} else if (wait != WAIT_OBJECT_0) {
|
|
892
|
+
throw WinError("WaitForSingleObject");
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
DWORD exitCode = 0xFFFFFFFFu;
|
|
896
|
+
if (!GetExitCodeProcess(process.get(), &exitCode)) throw WinError("GetExitCodeProcess");
|
|
897
|
+
process.reset();
|
|
898
|
+
thread.reset();
|
|
899
|
+
job.reset();
|
|
900
|
+
|
|
901
|
+
std::string proof = "{}";
|
|
902
|
+
if (fs::exists(evidencePath)) proof = ReadTextBounded(evidencePath.wstring(), 64ull * 1024ull);
|
|
903
|
+
if (!proof.empty() && proof.back() == '\n') proof.pop_back();
|
|
904
|
+
const std::vector<unsigned char> exported = fs::exists(outputPath)
|
|
905
|
+
? ReadFileBounded(outputPath.wstring(), 1024ull * 1024ull)
|
|
906
|
+
: std::vector<unsigned char>{};
|
|
907
|
+
|
|
908
|
+
const HRESULT cleanupHr = DeleteAppContainerProfile(profileName.c_str());
|
|
909
|
+
cleanupOk = SUCCEEDED(cleanupHr);
|
|
910
|
+
profileCreated = false;
|
|
911
|
+
DeleteFileW(hostCanary.c_str());
|
|
912
|
+
DeleteFileW(aapCanary.c_str());
|
|
913
|
+
if (appSid) { FreeSid(appSid); appSid = nullptr; }
|
|
914
|
+
|
|
915
|
+
const bool pass = !timedOut && exitCode == 0 && proof != "{}";
|
|
916
|
+
const std::string encoded = Base64Encode(exported);
|
|
917
|
+
std::printf(
|
|
918
|
+
"{\"status\":\"%s\",\"backend\":\"windows-appcontainer\",\"mode\":\"appcontainer\","
|
|
919
|
+
"\"operation\":\"%s\",\"invocation_schema\":\"deadbyte.invocation.v1\","
|
|
920
|
+
"\"invocation_challenge\":\"%s\",\"invocation_request_sha256\":\"%s\","
|
|
921
|
+
"\"worker_registry\":\"compile-time-operation-to-executable\","
|
|
922
|
+
"\"worker_id\":\"%s\",\"worker_executable\":\"%s\","
|
|
923
|
+
"\"worker_manifest\":\"WORKER-REGISTRY.txt\",\"worker_manifest_sha256\":\"%s\","
|
|
924
|
+
"\"worker_manifest_verified\":true,\"worker_source_sha256\":\"%s\",\"appcontainer_sid\":\"%s\","
|
|
925
|
+
"\"network_capabilities\":0,\"network_policy\":\"zero-capabilities-plus-active-loopback-denial\","
|
|
926
|
+
"\"network_probe_schema\":\"deadbyte.network.loopback.v1\",\"network_probe_target\":\"127.0.0.1\","
|
|
927
|
+
"\"network_probe_port\":%u,\"network_probe_host_control_ok\":true,"
|
|
928
|
+
"\"job_assignment\":\"atomic-attribute\","
|
|
929
|
+
"\"job_breakaway_enabled\":false,\"job_ui_restrictions\":true,"
|
|
930
|
+
"\"active_process_limit\":1,\"process_memory_limit_bytes\":134217728,"
|
|
931
|
+
"\"child_control\":\"job-active-process-limit\",\"child_process_policy\":\"not-used\","
|
|
932
|
+
"\"import_transport\":\"host-stdin-to-profile-copy\","
|
|
933
|
+
"\"export_transport\":\"profile-copy-to-host-json\",\"workspace_mounted\":false,"
|
|
934
|
+
"\"worker_environment\":\"appcontainer-bootstrap-allowlist-plus-drive-cwd\","
|
|
935
|
+
"\"worker_localappdata_present\":true,"
|
|
936
|
+
"\"worker_environment_allowlist_exact\":true,"
|
|
937
|
+
"\"worker_drive_current_directory_set\":true,"
|
|
938
|
+
"\"timed_out\":%s,\"child_exit_code\":%lu,\"profile_cleanup_ok\":%s,"
|
|
939
|
+
"\"input_bytes\":%llu,\"output_bytes\":%llu,\"output_base64\":\"%s\",\"proof\":%s}\n",
|
|
940
|
+
pass ? "passed" : "failed",
|
|
941
|
+
EscapeJson(NarrowAscii(operation)).c_str(),
|
|
942
|
+
NarrowAscii(invocationChallenge).c_str(),
|
|
943
|
+
NarrowAscii(invocationRequestSha256).c_str(),
|
|
944
|
+
EscapeJson(NarrowAscii(workerSpec.worker_id)).c_str(),
|
|
945
|
+
EscapeJson(NarrowAscii(workerSpec.executable)).c_str(),
|
|
946
|
+
registryEvidence.manifest_sha256.c_str(),
|
|
947
|
+
registryEvidence.selected_worker_sha256.c_str(),
|
|
948
|
+
EscapeJson(NarrowAscii(sidText)).c_str(),
|
|
949
|
+
static_cast<unsigned>(networkCanary.port),
|
|
950
|
+
timedOut ? "true" : "false",
|
|
951
|
+
static_cast<unsigned long>(exitCode),
|
|
952
|
+
cleanupOk ? "true" : "false",
|
|
953
|
+
static_cast<unsigned long long>(imported.size()),
|
|
954
|
+
static_cast<unsigned long long>(exported.size()),
|
|
955
|
+
encoded.c_str(),
|
|
956
|
+
proof.c_str());
|
|
957
|
+
return pass ? 0 : 2;
|
|
958
|
+
} catch (const std::exception& e) {
|
|
959
|
+
if (profileCreated) DeleteAppContainerProfile(profileName.c_str());
|
|
960
|
+
DeleteFileW(hostCanary.c_str());
|
|
961
|
+
DeleteFileW(aapCanary.c_str());
|
|
962
|
+
if (appSid) FreeSid(appSid);
|
|
963
|
+
std::fprintf(stderr, "deadbyte-exec: %s\n", e.what());
|
|
964
|
+
return 1;
|
|
965
|
+
}
|
|
966
|
+
}
|