@e4779/pi-fabric 0.117.2-fork.31 → 0.131.4-fork.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/THIRD_PARTY_NOTICES.md +6 -14
- package/dist/activity/store.d.ts +2 -1
- package/dist/activity/store.d.ts.map +1 -1
- package/dist/actors/binding-store.d.ts +13 -0
- package/dist/actors/binding-store.d.ts.map +1 -1
- package/dist/actors/directory.d.ts.map +1 -1
- package/dist/actors/feedback.d.ts +5 -0
- package/dist/actors/feedback.d.ts.map +1 -0
- package/dist/actors/global-registry.d.ts +8 -0
- package/dist/actors/global-registry.d.ts.map +1 -1
- package/dist/actors/host-event-payload.d.ts +14 -0
- package/dist/actors/host-event-payload.d.ts.map +1 -1
- package/dist/actors/manager.d.ts +4 -3
- package/dist/actors/manager.d.ts.map +1 -1
- package/dist/actors/mesh-monitor.d.ts +2 -0
- package/dist/actors/mesh-monitor.d.ts.map +1 -1
- package/dist/actors/name-policy.d.ts +3 -0
- package/dist/actors/name-policy.d.ts.map +1 -0
- package/dist/actors/registry-store.d.ts +14 -5
- package/dist/actors/registry-store.d.ts.map +1 -1
- package/dist/actors/store-read.d.ts +16 -0
- package/dist/actors/store-read.d.ts.map +1 -0
- package/dist/agents/agent-files.d.ts +80 -0
- package/dist/agents/agent-files.d.ts.map +1 -0
- package/dist/agents/agent-files.js +327 -0
- package/dist/agents/agent-files.js.map +7 -0
- package/dist/agents/child-skills.d.ts +60 -0
- package/dist/agents/child-skills.d.ts.map +1 -0
- package/dist/agents/child-skills.js +94 -0
- package/dist/agents/child-skills.js.map +7 -0
- package/dist/agents/clone-first-worktree.d.ts +6 -0
- package/dist/agents/clone-first-worktree.d.ts.map +1 -1
- package/dist/agents/completion-inbox.d.ts.map +1 -1
- package/dist/agents/cow-clone.d.ts.map +1 -1
- package/dist/agents/handoff.d.ts +12 -2
- package/dist/agents/handoff.d.ts.map +1 -1
- package/dist/agents/herdr-status.d.ts +26 -0
- package/dist/agents/herdr-status.d.ts.map +1 -0
- package/dist/agents/herdr-status.js +161 -0
- package/dist/agents/herdr-status.js.map +7 -0
- package/dist/agents/hosted-run.d.ts +20 -4
- package/dist/agents/hosted-run.d.ts.map +1 -1
- package/dist/agents/manager.d.ts +18 -2
- package/dist/agents/manager.d.ts.map +1 -1
- package/dist/agents/model-pin-guard.d.ts +27 -0
- package/dist/agents/model-pin-guard.d.ts.map +1 -0
- package/dist/agents/model-pin-guard.js +86 -0
- package/dist/agents/model-pin-guard.js.map +7 -0
- package/dist/agents/model-pin.d.ts +25 -0
- package/dist/agents/model-pin.d.ts.map +1 -0
- package/dist/agents/provider-bridge.d.ts +7 -6
- package/dist/agents/provider-bridge.d.ts.map +1 -1
- package/dist/agents/provider-bridge.js +33 -5
- package/dist/agents/provider-bridge.js.map +3 -3
- package/dist/agents/request.d.ts.map +1 -1
- package/dist/agents/result.d.ts.map +1 -1
- package/dist/agents/result.js +1 -1
- package/dist/agents/runner-notice.d.ts.map +1 -1
- package/dist/agents/runner-protocol.d.ts +8 -0
- package/dist/agents/runner-protocol.d.ts.map +1 -1
- package/dist/agents/service-schema.d.ts.map +1 -1
- package/dist/agents/transports/herdr-core-socket.d.ts +13 -0
- package/dist/agents/transports/herdr-core-socket.d.ts.map +1 -0
- package/dist/agents/transports/herdr-core-transport.d.ts +10 -0
- package/dist/agents/transports/herdr-core-transport.d.ts.map +1 -0
- package/dist/agents/transports/herdr-socket.d.ts +12 -0
- package/dist/agents/transports/herdr-socket.d.ts.map +1 -0
- package/dist/agents/transports/herdr-transport.d.ts.map +1 -1
- package/dist/agents/types.d.ts +51 -0
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/agents/worker-recovery.d.ts +75 -0
- package/dist/agents/worker-recovery.d.ts.map +1 -0
- package/dist/agents/worktree-manager.d.ts.map +1 -1
- package/dist/agents.js +12 -11
- package/dist/agents.js.map +2 -2
- package/dist/audit/details.d.ts +38 -1
- package/dist/audit/details.d.ts.map +1 -1
- package/dist/audit/projection.d.ts.map +1 -1
- package/dist/audit/trace-schema.d.ts +50 -0
- package/dist/audit/trace-schema.d.ts.map +1 -0
- package/dist/audit/trace.d.ts +2 -48
- package/dist/audit/trace.d.ts.map +1 -1
- package/dist/chunks/chunk-2RWNVCFD.js +483 -0
- package/dist/chunks/chunk-2RWNVCFD.js.map +7 -0
- package/dist/chunks/chunk-2SCMGO2Z.js +16 -0
- package/dist/chunks/chunk-2SCMGO2Z.js.map +7 -0
- package/dist/chunks/chunk-35EEGOH3.js +324 -0
- package/dist/chunks/chunk-35EEGOH3.js.map +7 -0
- package/dist/chunks/{chunk-UTOBAZ5T.js → chunk-37NIOSVU.js} +1 -1
- package/dist/chunks/chunk-37NIOSVU.js.map +7 -0
- package/dist/chunks/chunk-3IJEQBFS.js +25 -0
- package/dist/chunks/chunk-3IJEQBFS.js.map +7 -0
- package/dist/chunks/{chunk-EHQQ4KCX.js → chunk-3MOY6WIB.js} +84 -19
- package/dist/chunks/chunk-3MOY6WIB.js.map +7 -0
- package/dist/chunks/chunk-3VK6UGAN.js +64 -0
- package/dist/chunks/chunk-3VK6UGAN.js.map +7 -0
- package/dist/chunks/{chunk-ROTCDDOV.js → chunk-3XT5WHSG.js} +59 -119
- package/dist/chunks/chunk-3XT5WHSG.js.map +7 -0
- package/dist/chunks/{chunk-FIDUHKMM.js → chunk-4BYS4ZLY.js} +16 -16
- package/dist/chunks/chunk-4BYS4ZLY.js.map +7 -0
- package/dist/chunks/{chunk-UOM37PE4.js → chunk-4PBW54I2.js} +162 -92
- package/dist/chunks/chunk-4PBW54I2.js.map +7 -0
- package/dist/chunks/{chunk-ZEXCKK4K.js → chunk-4WKD3YM3.js} +3 -3
- package/dist/chunks/{chunk-PK4NIJEV.js → chunk-4XMXFHAR.js} +62 -3
- package/dist/chunks/chunk-4XMXFHAR.js.map +7 -0
- package/dist/chunks/{chunk-4EW7GVUR.js → chunk-56NMRVTV.js} +589 -377
- package/dist/chunks/chunk-56NMRVTV.js.map +7 -0
- package/dist/chunks/chunk-5QJFDKPN.js +179 -0
- package/dist/chunks/chunk-5QJFDKPN.js.map +7 -0
- package/dist/chunks/{chunk-P7CBPPHY.js → chunk-6GWDGTHC.js} +5 -5
- package/dist/chunks/{chunk-P7CBPPHY.js.map → chunk-6GWDGTHC.js.map} +1 -1
- package/dist/chunks/chunk-6HO2IUQ5.js +104 -0
- package/dist/chunks/chunk-6HO2IUQ5.js.map +7 -0
- package/dist/chunks/chunk-6OGYPHNQ.js +62 -0
- package/dist/chunks/chunk-6OGYPHNQ.js.map +7 -0
- package/dist/chunks/{chunk-G4TLWHRS.js → chunk-7N7IC3Z2.js} +4 -3
- package/dist/chunks/{chunk-G4TLWHRS.js.map → chunk-7N7IC3Z2.js.map} +2 -2
- package/dist/chunks/{chunk-5XBYFSI5.js → chunk-7YNE4NB2.js} +2 -2
- package/dist/chunks/chunk-ASOJYFKU.js +1316 -0
- package/dist/chunks/chunk-ASOJYFKU.js.map +7 -0
- package/dist/chunks/{chunk-NTC2MCB6.js → chunk-B5L3X3ID.js} +1 -1
- package/dist/chunks/{chunk-NTC2MCB6.js.map → chunk-B5L3X3ID.js.map} +1 -1
- package/dist/chunks/chunk-BIBRWZWQ.js +325 -0
- package/dist/chunks/chunk-BIBRWZWQ.js.map +7 -0
- package/dist/chunks/{chunk-K6QXUGS5.js → chunk-BMAEZNZ5.js} +2 -1
- package/dist/chunks/{chunk-FSB2VIRZ.js → chunk-CBIV747V.js} +14 -3
- package/dist/chunks/chunk-CBIV747V.js.map +7 -0
- package/dist/chunks/{chunk-CCHZXF6K.js → chunk-CXYJJ3HZ.js} +3 -3
- package/dist/chunks/{chunk-R2XQ6AHT.js → chunk-DGERP4VL.js} +22 -10
- package/dist/chunks/chunk-DGERP4VL.js.map +7 -0
- package/dist/chunks/{chunk-C7Z6F3SO.js → chunk-DGUXJSYA.js} +64 -33
- package/dist/chunks/chunk-DGUXJSYA.js.map +7 -0
- package/dist/chunks/chunk-F2LGSRIN.js +38 -0
- package/dist/chunks/chunk-F2LGSRIN.js.map +7 -0
- package/dist/chunks/chunk-F6A6MQ6G.js +609 -0
- package/dist/chunks/chunk-F6A6MQ6G.js.map +7 -0
- package/dist/chunks/{chunk-IR3PIHJM.js → chunk-FK73YJKV.js} +67 -2
- package/dist/chunks/chunk-FK73YJKV.js.map +7 -0
- package/dist/chunks/{chunk-XCEEQ5AB.js → chunk-G2DZJ5LK.js} +1607 -1567
- package/dist/chunks/chunk-G2DZJ5LK.js.map +7 -0
- package/dist/chunks/{chunk-VYQV5JRT.js → chunk-GJVKEHDL.js} +2 -2
- package/dist/chunks/chunk-GJVKEHDL.js.map +7 -0
- package/dist/chunks/{chunk-TIIIHPHF.js → chunk-GS67KDMV.js} +2 -2
- package/dist/chunks/{chunk-D5NYNIST.js → chunk-H57KPL3V.js} +5 -5
- package/dist/chunks/{chunk-KVYNGDGC.js → chunk-HFDJWLMS.js} +6 -6
- package/dist/chunks/{chunk-KVYNGDGC.js.map → chunk-HFDJWLMS.js.map} +1 -1
- package/dist/chunks/{chunk-INRXG4J5.js → chunk-HGD75NZY.js} +2 -2
- package/dist/chunks/{chunk-CRRUW26I.js → chunk-HRDMBGMY.js} +12 -12
- package/dist/chunks/{chunk-CRRUW26I.js.map → chunk-HRDMBGMY.js.map} +2 -2
- package/dist/chunks/{chunk-GO32KSEZ.js → chunk-HRVYXRWZ.js} +85 -10
- package/dist/chunks/chunk-HRVYXRWZ.js.map +7 -0
- package/dist/chunks/{chunk-MLLYR3Y6.js → chunk-HSEZPCL5.js} +19 -78
- package/dist/chunks/chunk-HSEZPCL5.js.map +7 -0
- package/dist/chunks/chunk-JMUUNW2H.js +65 -0
- package/dist/chunks/chunk-JMUUNW2H.js.map +7 -0
- package/dist/chunks/{chunk-UXIBKMUM.js → chunk-KIFOEBYJ.js} +4 -4
- package/dist/chunks/{chunk-3FJUP3GV.js → chunk-L6H46CPY.js} +2 -2
- package/dist/chunks/{chunk-SPCJXN4K.js → chunk-LKYLD5SN.js} +298 -65
- package/dist/chunks/chunk-LKYLD5SN.js.map +7 -0
- package/dist/chunks/{chunk-K7J2ABAZ.js → chunk-LRSZFYUC.js} +92 -32
- package/dist/chunks/chunk-LRSZFYUC.js.map +7 -0
- package/dist/chunks/{chunk-GIK2WNAK.js → chunk-LZ2ZXOCU.js} +112 -23
- package/dist/chunks/chunk-LZ2ZXOCU.js.map +7 -0
- package/dist/chunks/{chunk-FUY6XVRX.js → chunk-MPMEK3IQ.js} +2 -2
- package/dist/chunks/{chunk-HP5P7NBO.js → chunk-MSDL7U6Q.js} +4 -4
- package/dist/chunks/{chunk-ASSLHWZS.js → chunk-MX53BRAC.js} +2 -2
- package/dist/chunks/chunk-N7ZAK2PB.js +132 -0
- package/dist/chunks/chunk-N7ZAK2PB.js.map +7 -0
- package/dist/chunks/{chunk-VSDUSNIA.js → chunk-NBIYYMKS.js} +8 -2
- package/dist/chunks/chunk-NBIYYMKS.js.map +7 -0
- package/dist/chunks/chunk-NENQZCGW.js +45 -0
- package/dist/chunks/chunk-NENQZCGW.js.map +7 -0
- package/dist/chunks/chunk-NJHJKINP.js +47 -0
- package/dist/chunks/chunk-NJHJKINP.js.map +7 -0
- package/dist/chunks/{chunk-U366I5K2.js → chunk-NQ7IWEIF.js} +18 -6
- package/dist/chunks/chunk-NQ7IWEIF.js.map +7 -0
- package/dist/chunks/{chunk-ZQMBS5SH.js → chunk-OJ4HAALD.js} +15 -12
- package/dist/chunks/chunk-OJ4HAALD.js.map +7 -0
- package/dist/chunks/chunk-OZCJU3PZ.js +33 -0
- package/dist/chunks/chunk-OZCJU3PZ.js.map +7 -0
- package/dist/chunks/chunk-P3DCXKL3.js +40 -0
- package/dist/chunks/chunk-P3DCXKL3.js.map +7 -0
- package/dist/chunks/chunk-P7YSPKTM.js +294 -0
- package/dist/chunks/chunk-P7YSPKTM.js.map +7 -0
- package/dist/chunks/chunk-PQVUMJ5J.js +223 -0
- package/dist/chunks/chunk-PQVUMJ5J.js.map +7 -0
- package/dist/chunks/chunk-PUBHBEYO.js +84 -0
- package/dist/chunks/chunk-PUBHBEYO.js.map +7 -0
- package/dist/chunks/{chunk-P4KH4S4S.js → chunk-QGTD3LAZ.js} +5 -20
- package/dist/chunks/chunk-QGTD3LAZ.js.map +7 -0
- package/dist/chunks/{chunk-TIJ3YQXX.js → chunk-QOEOKW2X.js} +2 -2
- package/dist/chunks/{chunk-TIJ3YQXX.js.map → chunk-QOEOKW2X.js.map} +1 -1
- package/dist/chunks/{chunk-QT4W5YVB.js → chunk-RAA3FAYZ.js} +2 -2
- package/dist/chunks/{chunk-3UGN25XS.js → chunk-RKJPBTBB.js} +98 -1664
- package/dist/chunks/chunk-RKJPBTBB.js.map +7 -0
- package/dist/chunks/{chunk-WJJXODAB.js → chunk-RLKRZXSX.js} +8 -1
- package/dist/chunks/{chunk-WJJXODAB.js.map → chunk-RLKRZXSX.js.map} +2 -2
- package/dist/chunks/chunk-RWKQ5SRW.js +129 -0
- package/dist/chunks/chunk-RWKQ5SRW.js.map +7 -0
- package/dist/chunks/chunk-SW25R47N.js +71 -0
- package/dist/chunks/chunk-SW25R47N.js.map +7 -0
- package/dist/chunks/{chunk-EKODKR6Y.js → chunk-TEMKDJJY.js} +148 -72
- package/dist/chunks/chunk-TEMKDJJY.js.map +7 -0
- package/dist/chunks/{chunk-EFETPXU2.js → chunk-TJZYM2SP.js} +118 -237
- package/dist/chunks/chunk-TJZYM2SP.js.map +7 -0
- package/dist/chunks/{chunk-53N2I4QA.js → chunk-TXCNZCZP.js} +2 -2
- package/dist/chunks/{chunk-LNASO4VT.js → chunk-U6Y6TKJL.js} +45 -20
- package/dist/chunks/chunk-U6Y6TKJL.js.map +7 -0
- package/dist/chunks/chunk-UD7LFV43.js +28 -0
- package/dist/chunks/chunk-UD7LFV43.js.map +7 -0
- package/dist/chunks/{chunk-7QKKLBHJ.js → chunk-UPMWLOKL.js} +10 -1
- package/dist/chunks/{chunk-7QKKLBHJ.js.map → chunk-UPMWLOKL.js.map} +2 -2
- package/dist/chunks/chunk-V4OW2ULC.js +422 -0
- package/dist/chunks/chunk-V4OW2ULC.js.map +7 -0
- package/dist/chunks/{chunk-FE6NOAO7.js → chunk-VGRUWTMG.js} +1993 -659
- package/dist/chunks/chunk-VGRUWTMG.js.map +7 -0
- package/dist/chunks/{chunk-PYFJW3HC.js → chunk-W5FEHVZA.js} +2 -16
- package/dist/chunks/{chunk-PYFJW3HC.js.map → chunk-W5FEHVZA.js.map} +3 -3
- package/dist/chunks/chunk-WKFRGICG.js +101 -0
- package/dist/chunks/chunk-WKFRGICG.js.map +7 -0
- package/dist/chunks/{chunk-LEU5CDSL.js → chunk-XFOSUGLU.js} +5 -5
- package/dist/chunks/{chunk-MZUC6LLH.js → chunk-XMYG2TKR.js} +4 -4
- package/dist/chunks/{chunk-MZUC6LLH.js.map → chunk-XMYG2TKR.js.map} +1 -1
- package/dist/chunks/chunk-YC65P7ZO.js +57 -0
- package/dist/chunks/chunk-YC65P7ZO.js.map +7 -0
- package/dist/chunks/{chunk-5UBRGTVN.js → chunk-ZHROHNEE.js} +31 -15
- package/dist/chunks/chunk-ZHROHNEE.js.map +7 -0
- package/dist/cli/decisions.d.ts.map +1 -1
- package/dist/cli/decisions.js +15 -3
- package/dist/cli/decisions.js.map +2 -2
- package/dist/cli/mesh.js +4 -3
- package/dist/cli/mesh.js.map +1 -1
- package/dist/commands/fabric-handler.d.ts +7 -0
- package/dist/commands/fabric-handler.d.ts.map +1 -0
- package/dist/commands/fabric-handler.js +916 -0
- package/dist/commands/fabric-handler.js.map +7 -0
- package/dist/commands/fabric.d.ts +11 -1
- package/dist/commands/fabric.d.ts.map +1 -1
- package/dist/compaction/claim-events.d.ts +61 -0
- package/dist/compaction/claim-events.d.ts.map +1 -0
- package/dist/compaction/claim-events.js +210 -0
- package/dist/compaction/claim-events.js.map +7 -0
- package/dist/compaction/claim.d.ts +51 -0
- package/dist/compaction/claim.d.ts.map +1 -0
- package/dist/compaction/hook.d.ts +28 -2
- package/dist/compaction/hook.d.ts.map +1 -1
- package/dist/compaction/hook.js +12 -7
- package/dist/compaction/owner.js +9 -8
- package/dist/compaction/trace-events.d.ts +1 -1
- package/dist/compaction/trace-events.d.ts.map +1 -1
- package/dist/components/configuration.js +6 -6
- package/dist/components/effect-scope.d.ts.map +1 -1
- package/dist/config.d.ts +40 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/core/action-arguments.d.ts.map +1 -1
- package/dist/core/action-policy-hooks.d.ts +69 -0
- package/dist/core/action-policy-hooks.d.ts.map +1 -0
- package/dist/core/action-registry.d.ts +31 -10
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/action-registry.js +12 -9
- package/dist/core/approval-controller.d.ts +23 -3
- package/dist/core/approval-controller.d.ts.map +1 -1
- package/dist/core/atomic-write.d.ts +164 -0
- package/dist/core/atomic-write.d.ts.map +1 -1
- package/dist/core/call-presentation.d.ts +14 -0
- package/dist/core/call-presentation.d.ts.map +1 -0
- package/dist/core/child-tool-allowlist.d.ts +17 -1
- package/dist/core/child-tool-allowlist.d.ts.map +1 -1
- package/dist/core/compact-controller.d.ts +34 -0
- package/dist/core/compact-controller.d.ts.map +1 -1
- package/dist/core/core-override-guidance.d.ts +3 -1
- package/dist/core/core-override-guidance.d.ts.map +1 -1
- package/dist/core/file-lock.d.ts.map +1 -1
- package/dist/core/foreground-tools.d.ts +4 -1
- package/dist/core/foreground-tools.d.ts.map +1 -1
- package/dist/core/host-policy.d.ts +43 -0
- package/dist/core/host-policy.d.ts.map +1 -0
- package/dist/core/host-sdk-runtime.d.ts.map +1 -1
- package/dist/core/host-sdk.d.ts.map +1 -1
- package/dist/core/host-sdk.js +1 -1
- package/dist/core/managed-host-guidance.d.ts +5 -0
- package/dist/core/managed-host-guidance.d.ts.map +1 -0
- package/dist/core/model-aliases.d.ts +22 -0
- package/dist/core/model-aliases.d.ts.map +1 -0
- package/dist/core/model-resolution.d.ts +41 -20
- package/dist/core/model-resolution.d.ts.map +1 -1
- package/dist/core/native-tool-result.d.ts +1 -0
- package/dist/core/native-tool-result.d.ts.map +1 -1
- package/dist/core/program-tasks.d.ts +52 -0
- package/dist/core/program-tasks.d.ts.map +1 -0
- package/dist/core/prompt-guidance.d.ts +5 -0
- package/dist/core/prompt-guidance.d.ts.map +1 -0
- package/dist/core/prompt-guidance.js +159 -0
- package/dist/core/prompt-guidance.js.map +7 -0
- package/dist/core/provider-operations.d.ts.map +1 -1
- package/dist/core/provider-operations.js +60 -108
- package/dist/core/provider-operations.js.map +3 -3
- package/dist/core/shell-inbox.d.ts.map +1 -1
- package/dist/core/shell-jobs.d.ts +7 -5
- package/dist/core/shell-jobs.d.ts.map +1 -1
- package/dist/core/shell-timing.d.ts.map +1 -1
- package/dist/core/skill-prompt.d.ts +1 -1
- package/dist/core/skill-prompt.d.ts.map +1 -1
- package/dist/core/skill-references.d.ts +1 -1
- package/dist/core/skill-references.d.ts.map +1 -1
- package/dist/core/system-guidance.d.ts.map +1 -1
- package/dist/core/tool-result-proxy.d.ts.map +1 -1
- package/dist/decisions/command.d.ts +2 -1
- package/dist/decisions/command.d.ts.map +1 -1
- package/dist/decisions/command.js +40 -12
- package/dist/decisions/command.js.map +2 -2
- package/dist/decisions/events.d.ts +12 -0
- package/dist/decisions/events.d.ts.map +1 -0
- package/dist/decisions/events.js +130 -0
- package/dist/decisions/events.js.map +7 -0
- package/dist/decisions/host.d.ts +31 -3
- package/dist/decisions/host.d.ts.map +1 -1
- package/dist/decisions/render.d.ts +44 -0
- package/dist/decisions/render.d.ts.map +1 -0
- package/dist/decisions/store.d.ts +8 -0
- package/dist/decisions/store.d.ts.map +1 -1
- package/dist/durable/agent.d.ts +8 -0
- package/dist/durable/agent.d.ts.map +1 -1
- package/dist/durable/extension-load-error.d.ts +8 -0
- package/dist/durable/extension-load-error.d.ts.map +1 -0
- package/dist/durable/session.d.ts +1 -0
- package/dist/durable/session.d.ts.map +1 -1
- package/dist/durable/worker-host.d.ts +10 -1
- package/dist/durable/worker-host.d.ts.map +1 -1
- package/dist/durable/worker-host.js +10 -1181
- package/dist/durable/worker-host.js.map +4 -4
- package/dist/durable/worker-options.d.ts +3 -0
- package/dist/durable/worker-options.d.ts.map +1 -1
- package/dist/durable/worker-role-seed.d.ts +82 -0
- package/dist/durable/worker-role-seed.d.ts.map +1 -0
- package/dist/durable/worker.js +43 -4
- package/dist/durable/worker.js.map +2 -2
- package/dist/durable-controls.d.ts.map +1 -1
- package/dist/durable-extension-wasm.d.ts +8 -0
- package/dist/durable-extension-wasm.d.ts.map +1 -0
- package/dist/durable-extension-wasm.js +32 -0
- package/dist/durable-extension-wasm.js.map +7 -0
- package/dist/durable-extension.d.ts +94 -0
- package/dist/durable-extension.d.ts.map +1 -0
- package/dist/durable-extension.js +649 -0
- package/dist/durable-extension.js.map +7 -0
- package/dist/durable-host.d.ts +8 -0
- package/dist/durable-host.d.ts.map +1 -0
- package/dist/durable-host.js +20 -0
- package/dist/durable-host.js.map +7 -0
- package/dist/durable-journal.d.ts +94 -0
- package/dist/durable-journal.d.ts.map +1 -0
- package/dist/durable.d.ts.map +1 -1
- package/dist/durable.js +13 -10
- package/dist/durable.js.map +2 -2
- package/dist/entropy/index.js +12 -10
- package/dist/entropy/pool-store.d.ts.map +1 -1
- package/dist/execution-service.d.ts +14 -0
- package/dist/execution-service.d.ts.map +1 -1
- package/dist/extension-bootstrap.d.ts.map +1 -1
- package/dist/extension-bootstrap.js +28 -27
- package/dist/extension-bootstrap.js.map +2 -2
- package/dist/extension-copy.d.ts +21 -0
- package/dist/extension-copy.d.ts.map +1 -0
- package/dist/extension-copy.js +90 -0
- package/dist/extension-copy.js.map +7 -0
- package/dist/extension.d.ts +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/fabric-exec-arguments.d.ts.map +1 -1
- package/dist/fabric-exec-tool.d.ts +2 -1
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.d.ts +19 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +2205 -839
- package/dist/fabric-runtime-state.js.map +4 -4
- package/dist/fabric-state.d.ts +44 -1
- package/dist/fabric-state.d.ts.map +1 -1
- package/dist/feedback.d.ts +5 -0
- package/dist/feedback.d.ts.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +88 -53
- package/dist/index.js.map +2 -2
- package/dist/jev/client.js +2 -2
- package/dist/jev/manager.d.ts +3 -0
- package/dist/jev/manager.d.ts.map +1 -1
- package/dist/jev/observation.d.ts +1 -1
- package/dist/jev/observation.js +6 -6
- package/dist/jev-fabric/bridge.d.ts.map +1 -1
- package/dist/jev.js +11 -12
- package/dist/main-agent.d.ts +2 -1
- package/dist/main-agent.d.ts.map +1 -1
- package/dist/managed-host.d.ts +13 -0
- package/dist/managed-host.d.ts.map +1 -1
- package/dist/memory/digest.js +2 -2
- package/dist/memory/discovery.js +6 -7
- package/dist/memory/file-worker.js +10 -11
- package/dist/memory/file-worker.js.map +1 -1
- package/dist/memory/normalize.js +5 -6
- package/dist/memory/search.js +7 -8
- package/dist/memory/worker-provider.js +11 -12
- package/dist/memory.js +11 -12
- package/dist/memory.js.map +1 -1
- package/dist/mesh/grants.d.ts +3 -3
- package/dist/mesh/grants.d.ts.map +1 -1
- package/dist/mesh/store.d.ts +8 -0
- package/dist/mesh/store.d.ts.map +1 -1
- package/dist/native-codemode.d.ts.map +1 -1
- package/dist/native-tool-catalog.d.ts.map +1 -1
- package/dist/native-tool-catalog.js +12 -3
- package/dist/native-tool-catalog.js.map +2 -2
- package/dist/programs/host.d.ts +18 -6
- package/dist/programs/host.d.ts.map +1 -1
- package/dist/programs/host.js +71 -47
- package/dist/programs/host.js.map +2 -2
- package/dist/programs/source.d.ts +11 -0
- package/dist/programs/source.d.ts.map +1 -1
- package/dist/programs/store.d.ts.map +1 -1
- package/dist/protocol.d.ts +504 -8
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +41 -11
- package/dist/provider-globals.d.ts +13 -0
- package/dist/provider-globals.d.ts.map +1 -0
- package/dist/providers/agents-actions.d.ts.map +1 -1
- package/dist/providers/agents-provider.d.ts +3 -0
- package/dist/providers/agents-provider.d.ts.map +1 -1
- package/dist/providers/captured-tools-provider.d.ts +5 -0
- package/dist/providers/captured-tools-provider.d.ts.map +1 -1
- package/dist/providers/compact-provider.d.ts +4 -1
- package/dist/providers/compact-provider.d.ts.map +1 -1
- package/dist/providers/components-provider.d.ts.map +1 -1
- package/dist/providers/decisions-provider.d.ts +9 -1
- package/dist/providers/decisions-provider.d.ts.map +1 -1
- package/dist/providers/jev-provider.d.ts +1 -1
- package/dist/providers/jev-provider.js +11 -12
- package/dist/providers/memory-provider.js +10 -11
- package/dist/providers/pi-tools-provider.d.ts +14 -0
- package/dist/providers/pi-tools-provider.d.ts.map +1 -1
- package/dist/providers/programs-provider.d.ts.map +1 -1
- package/dist/providers/sessions-provider.d.ts +7 -0
- package/dist/providers/sessions-provider.d.ts.map +1 -1
- package/dist/repeat-guard.d.ts +7 -6
- package/dist/repeat-guard.d.ts.map +1 -1
- package/dist/residency/actor-client.js +3 -3
- package/dist/residency/client.d.ts +15 -0
- package/dist/residency/client.d.ts.map +1 -1
- package/dist/residency/host.d.ts.map +1 -1
- package/dist/residency/host.js +34 -23
- package/dist/residency/launcher.js +1 -1
- package/dist/residency/pi-entry.js +34 -23
- package/dist/residency/pi-entry.js.map +1 -1
- package/dist/residency/protocol.d.ts +2 -0
- package/dist/residency/protocol.d.ts.map +1 -1
- package/dist/runners.js +11 -1
- package/dist/runners.js.map +2 -2
- package/dist/runtime/core-override-guest-types.js +2 -2
- package/dist/runtime/cpython-child-source.d.ts.map +1 -1
- package/dist/runtime/cpython-runtime.d.ts.map +1 -1
- package/dist/runtime/cpython-runtime.js +51 -21
- package/dist/runtime/cpython-runtime.js.map +2 -2
- package/dist/runtime/deadline-pause.d.ts +2 -0
- package/dist/runtime/deadline-pause.d.ts.map +1 -1
- package/dist/runtime/dynamic-guest-types.d.ts.map +1 -1
- package/dist/runtime/dynamic-guest-types.js +2 -1
- package/dist/runtime/exec-journal.d.ts +73 -0
- package/dist/runtime/exec-journal.d.ts.map +1 -0
- package/dist/runtime/exec-journal.js +335 -0
- package/dist/runtime/exec-journal.js.map +7 -0
- package/dist/runtime/guest-types.d.ts +3 -2
- package/dist/runtime/guest-types.d.ts.map +1 -1
- package/dist/runtime/guest-types.js +1 -1
- package/dist/runtime/journal-shim.d.ts +3 -0
- package/dist/runtime/journal-shim.d.ts.map +1 -0
- package/dist/runtime/kernel.d.ts +95 -1
- package/dist/runtime/kernel.d.ts.map +1 -1
- package/dist/runtime/monty-bridge.d.ts +6 -2
- package/dist/runtime/monty-bridge.d.ts.map +1 -1
- package/dist/runtime/monty-runtime.d.ts.map +1 -1
- package/dist/runtime/monty-runtime.js +27 -15
- package/dist/runtime/monty-runtime.js.map +2 -2
- package/dist/runtime/native-codemode-guest.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.d.ts.map +1 -1
- package/dist/runtime/node-process-runtime.js +7 -5
- package/dist/runtime/quickjs-runtime.d.ts +7 -1
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
- package/dist/runtime/quickjs-runtime.js +5 -4
- package/dist/runtime/sha256.d.ts +4 -0
- package/dist/runtime/sha256.d.ts.map +1 -0
- package/dist/runtime/transpile.d.ts +8 -0
- package/dist/runtime/transpile.d.ts.map +1 -0
- package/dist/runtime/type-checker.d.ts +1 -7
- package/dist/runtime/type-checker.d.ts.map +1 -1
- package/dist/runtime/type-checker.js +4 -2
- package/dist/runtime/typescript-kernel.js +13 -10
- package/dist/runtime/typescript-kernel.js.map +1 -1
- package/dist/runtime-state-builtins.d.ts.map +1 -1
- package/dist/speculation/scanner.js +1 -1
- package/dist/speculation/store.d.ts +7 -16
- package/dist/speculation/store.d.ts.map +1 -1
- package/dist/speculation/types.d.ts +1 -0
- package/dist/speculation/types.d.ts.map +1 -1
- package/dist/storage/retention.d.ts.map +1 -1
- package/dist/topology/participant-directory.d.ts +26 -1
- package/dist/topology/participant-directory.d.ts.map +1 -1
- package/dist/topology/peer-presence.d.ts.map +1 -1
- package/dist/topology/peer-settle.js +11 -0
- package/dist/topology/peer-settle.js.map +7 -0
- package/dist/topology/session-label-settings.d.ts +13 -0
- package/dist/topology/session-label-settings.d.ts.map +1 -0
- package/dist/topology/session-label.d.ts +60 -0
- package/dist/topology/session-label.d.ts.map +1 -0
- package/dist/topology/types.d.ts +27 -0
- package/dist/topology/types.d.ts.map +1 -1
- package/dist/type-error-guidance.js +1 -1
- package/dist/ui/controller.d.ts +1 -0
- package/dist/ui/controller.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.d.ts.map +1 -1
- package/dist/ui/conversation-chrome.js +3 -2
- package/dist/ui/conversation-commands.d.ts +1 -1
- package/dist/ui/conversation-commands.d.ts.map +1 -1
- package/dist/ui/conversation-native-reader.js +2 -2
- package/dist/ui/conversation-selection.d.ts +4 -1
- package/dist/ui/conversation-selection.d.ts.map +1 -1
- package/dist/ui/conversation-targets.d.ts.map +1 -1
- package/dist/ui/conversation-targets.js +2 -2
- package/dist/ui/conversation.d.ts +25 -24
- package/dist/ui/conversation.d.ts.map +1 -1
- package/dist/ui/conversation.js +170 -339
- package/dist/ui/conversation.js.map +2 -2
- package/dist/ui/core-tool-render.d.ts +1 -0
- package/dist/ui/core-tool-render.d.ts.map +1 -1
- package/dist/ui/dashboard-model.d.ts.map +1 -1
- package/dist/ui/dashboard.d.ts.map +1 -1
- package/dist/ui/dashboard.js +23 -16
- package/dist/ui/dashboard.js.map +2 -2
- package/dist/ui/fabric-render.d.ts +7 -0
- package/dist/ui/fabric-render.d.ts.map +1 -1
- package/dist/ui/footer-dock.d.ts +48 -0
- package/dist/ui/footer-dock.d.ts.map +1 -0
- package/dist/ui/format.d.ts +7 -0
- package/dist/ui/format.d.ts.map +1 -1
- package/dist/ui/settings-sections-lifecycle.d.ts.map +1 -1
- package/dist/ui/settings-sections-presentation.d.ts.map +1 -1
- package/dist/ui/settings-values.d.ts +2 -1
- package/dist/ui/settings-values.d.ts.map +1 -1
- package/dist/ui/settings.js +60 -19
- package/dist/ui/settings.js.map +2 -2
- package/dist/ui/shell-hang-keys.d.ts +8 -1
- package/dist/ui/shell-hang-keys.d.ts.map +1 -1
- package/dist/ui/shell-tasks.d.ts +2 -2
- package/dist/ui/shell-tasks.d.ts.map +1 -1
- package/dist/ui/shell-tasks.js +27 -94
- package/dist/ui/shell-tasks.js.map +2 -2
- package/dist/ui/snapshot.d.ts.map +1 -1
- package/dist/ui/terminal-title.d.ts +41 -0
- package/dist/ui/terminal-title.d.ts.map +1 -0
- package/dist/ui/types.d.ts +4 -0
- package/dist/ui/types.d.ts.map +1 -1
- package/dist/ui/widget-keys.d.ts +5 -0
- package/dist/ui/widget-keys.d.ts.map +1 -0
- package/dist/ui/widget.d.ts +40 -18
- package/dist/ui/widget.d.ts.map +1 -1
- package/dist/ui/word-diff/line-emphasis.js +1603 -0
- package/dist/ui/word-diff/line-emphasis.js.map +7 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.d.ts.map +1 -1
- package/dist/verified/authority.d.ts +2 -2
- package/dist/verified/authority.d.ts.map +1 -1
- package/dist/verified/budget.d.ts +4 -0
- package/dist/verified/budget.d.ts.map +1 -0
- package/dist/verified/generated/actor-name.d.ts +4 -0
- package/dist/verified/generated/actor-name.js +17 -0
- package/dist/verified/generated/authority.d.ts +4 -0
- package/dist/verified/generated/authority.js +28 -0
- package/dist/verified/generated/budget.d.ts +4 -0
- package/dist/verified/generated/budget.js +17 -0
- package/dist/verified/generated/compaction.d.ts +4 -0
- package/dist/verified/generated/compaction.js +19 -0
- package/dist/verified/generated/grants.d.ts +4 -0
- package/dist/verified/generated/grants.js +17 -0
- package/dist/verified/generated/lifecycle.d.ts +4 -0
- package/dist/verified/generated/lifecycle.js +50 -0
- package/dist/verified/generated/manifest.json +137 -48
- package/dist/verified/generated/policy.d.ts +17 -0
- package/dist/verified/generated/policy.js +211 -0
- package/dist/verified/generated/provider.d.ts +4 -0
- package/dist/verified/generated/provider.js +18 -0
- package/dist/verified/generated/resources.d.ts +6 -0
- package/dist/verified/generated/resources.js +73 -0
- package/dist/verified/generated/speculation.d.ts +6 -0
- package/dist/verified/generated/speculation.js +48 -0
- package/dist/verified/generated/storage.d.ts +4 -0
- package/dist/verified/generated/storage.js +18 -0
- package/dist/verified/grants.d.ts +22 -0
- package/dist/verified/grants.d.ts.map +1 -0
- package/dist/verified/lifecycle.d.ts +31 -0
- package/dist/verified/lifecycle.d.ts.map +1 -0
- package/dist/verified/machine.d.ts +18 -0
- package/dist/verified/machine.d.ts.map +1 -0
- package/dist/verified/memory.d.ts +1 -1
- package/dist/verified/memory.d.ts.map +1 -1
- package/dist/verified/nat.d.ts +1 -1
- package/dist/verified/nat.d.ts.map +1 -1
- package/dist/verified/policy.d.ts +17 -5
- package/dist/verified/policy.d.ts.map +1 -1
- package/dist/verified/provider.d.ts +22 -0
- package/dist/verified/provider.d.ts.map +1 -0
- package/dist/verified/resources.d.ts +21 -7
- package/dist/verified/resources.d.ts.map +1 -1
- package/dist/verified/speculation.d.ts +36 -0
- package/dist/verified/speculation.d.ts.map +1 -0
- package/dist/verified/storage.d.ts.map +1 -1
- package/dist/worker/missing-install.d.ts +8 -0
- package/dist/worker/missing-install.d.ts.map +1 -0
- package/dist/worker/options.d.ts.map +1 -1
- package/dist/worker/options.js +25 -0
- package/dist/worker/options.js.map +2 -2
- package/dist/worker/prompt-lifecycle.d.ts +16 -0
- package/dist/worker/prompt-lifecycle.d.ts.map +1 -0
- package/dist/worker/prompt-lifecycle.js +90 -0
- package/dist/worker/prompt-lifecycle.js.map +7 -0
- package/dist/worker/questions.d.ts +15 -3
- package/dist/worker/questions.d.ts.map +1 -1
- package/dist/worker/questions.js +53 -8
- package/dist/worker/questions.js.map +2 -2
- package/dist/worker/recovery-watchdog.d.ts +22 -0
- package/dist/worker/recovery-watchdog.d.ts.map +1 -1
- package/dist/worker/recovery-watchdog.js +116 -1
- package/dist/worker/recovery-watchdog.js.map +2 -2
- package/dist/worker/result.js +1 -1
- package/dist/worker/result.js.map +2 -2
- package/dist/worker.js +131 -21
- package/dist/worker.js.map +2 -2
- package/docs/actor-name-policy-handoff.md +5 -0
- package/docs/agents.md +172 -22
- package/docs/architecture.md +5 -1
- package/docs/audit-trace.md +2 -1
- package/docs/background-tasks.md +126 -28
- package/docs/codemode-parity.md +2 -2
- package/docs/compaction.md +21 -5
- package/docs/components.md +1 -1
- package/docs/configuration.md +113 -66
- package/docs/decisions.md +92 -10
- package/docs/durable-extension.md +121 -0
- package/docs/durable-pi.md +306 -6
- package/docs/extractive-history.md +3 -1
- package/docs/interface.md +22 -17
- package/docs/jev.md +2 -2
- package/docs/kernels.md +1 -1
- package/{node_modules/pi-coralbricks-provider/LICENSE → docs/licenses/gdp-wired-mit.txt} +1 -1
- package/docs/managed-host-migration.md +50 -0
- package/docs/programmatic-compaction.md +216 -6
- package/docs/programs.md +23 -1
- package/docs/prompt-cache.md +4 -2
- package/docs/provider-capabilities.md +15 -14
- package/docs/providers.md +99 -3
- package/docs/shell-composition.md +15 -0
- package/docs/short-lock-protocol.md +90 -0
- package/docs/skills.md +5 -1
- package/docs/speculation.md +6 -0
- package/docs/verified-kernels.md +309 -220
- package/package.json +45 -24
- package/proofs/actor-name.ts +27 -0
- package/proofs/authority.ts +62 -0
- package/proofs/budget.ts +24 -0
- package/proofs/compaction.ts +51 -0
- package/proofs/grants.ts +39 -0
- package/proofs/index.ts +40 -0
- package/proofs/kernel.ts +44 -0
- package/proofs/lifecycle.ts +128 -0
- package/proofs/policy.ts +195 -0
- package/proofs/provider.ts +52 -0
- package/proofs/resources.ts +160 -0
- package/proofs/speculation.ts +69 -0
- package/proofs/storage.ts +66 -0
- package/scripts/verified-kernels.ts +141 -0
- package/skillsets/python/fabric-council/SKILL.md +94 -20
- package/skillsets/python/fabric-exec/SKILL.md +2 -2
- package/skillsets/python/fabric-exec/references/agents.md +10 -4
- package/skillsets/python/fabric-fusion/SKILL.md +1 -1
- package/skillsets/python/fabric-guide/SKILL.md +1 -1
- package/skillsets/typescript/fabric-council/SKILL.md +110 -22
- package/skillsets/typescript/fabric-exec/SKILL.md +7 -7
- package/skillsets/typescript/fabric-exec/references/agents.md +17 -8
- package/skillsets/typescript/fabric-fusion/SKILL.md +1 -1
- package/skillsets/typescript/fabric-guide/SKILL.md +1 -1
- package/LAWS.bend +0 -502
- package/PROOF.bend +0 -452
- package/dist/chunks/chunk-3UGN25XS.js.map +0 -7
- package/dist/chunks/chunk-4EW7GVUR.js.map +0 -7
- package/dist/chunks/chunk-5UBRGTVN.js.map +0 -7
- package/dist/chunks/chunk-BN7F52EG.js +0 -525
- package/dist/chunks/chunk-BN7F52EG.js.map +0 -7
- package/dist/chunks/chunk-C7Z6F3SO.js.map +0 -7
- package/dist/chunks/chunk-DK35W6U7.js +0 -259
- package/dist/chunks/chunk-DK35W6U7.js.map +0 -7
- package/dist/chunks/chunk-EFETPXU2.js.map +0 -7
- package/dist/chunks/chunk-EHQQ4KCX.js.map +0 -7
- package/dist/chunks/chunk-EKODKR6Y.js.map +0 -7
- package/dist/chunks/chunk-FE6NOAO7.js.map +0 -7
- package/dist/chunks/chunk-FIDUHKMM.js.map +0 -7
- package/dist/chunks/chunk-FSB2VIRZ.js.map +0 -7
- package/dist/chunks/chunk-GIK2WNAK.js.map +0 -7
- package/dist/chunks/chunk-GO32KSEZ.js.map +0 -7
- package/dist/chunks/chunk-IR3PIHJM.js.map +0 -7
- package/dist/chunks/chunk-ITVLKXCI.js +0 -266
- package/dist/chunks/chunk-ITVLKXCI.js.map +0 -7
- package/dist/chunks/chunk-K7J2ABAZ.js.map +0 -7
- package/dist/chunks/chunk-KJZAOENY.js +0 -212
- package/dist/chunks/chunk-KJZAOENY.js.map +0 -7
- package/dist/chunks/chunk-LNASO4VT.js.map +0 -7
- package/dist/chunks/chunk-MLLYR3Y6.js.map +0 -7
- package/dist/chunks/chunk-P4KH4S4S.js.map +0 -7
- package/dist/chunks/chunk-PK4NIJEV.js.map +0 -7
- package/dist/chunks/chunk-Q2JQ3RYZ.js +0 -99
- package/dist/chunks/chunk-Q2JQ3RYZ.js.map +0 -7
- package/dist/chunks/chunk-R2XQ6AHT.js.map +0 -7
- package/dist/chunks/chunk-ROTCDDOV.js.map +0 -7
- package/dist/chunks/chunk-SPCJXN4K.js.map +0 -7
- package/dist/chunks/chunk-U366I5K2.js.map +0 -7
- package/dist/chunks/chunk-UKMQK5VP.js +0 -231
- package/dist/chunks/chunk-UKMQK5VP.js.map +0 -7
- package/dist/chunks/chunk-UOM37PE4.js.map +0 -7
- package/dist/chunks/chunk-UTOBAZ5T.js.map +0 -7
- package/dist/chunks/chunk-VSDUSNIA.js.map +0 -7
- package/dist/chunks/chunk-VTK2FEH7.js +0 -229
- package/dist/chunks/chunk-VTK2FEH7.js.map +0 -7
- package/dist/chunks/chunk-VYQV5JRT.js.map +0 -7
- package/dist/chunks/chunk-XCEEQ5AB.js.map +0 -7
- package/dist/chunks/chunk-ZLNJDTCN.js +0 -226
- package/dist/chunks/chunk-ZLNJDTCN.js.map +0 -7
- package/dist/chunks/chunk-ZQMBS5SH.js.map +0 -7
- package/dist/ui/conversation-shortcut.d.ts +0 -3
- package/dist/ui/conversation-shortcut.d.ts.map +0 -1
- package/dist/ui/widget-activity.d.ts +0 -21
- package/dist/ui/widget-activity.d.ts.map +0 -1
- package/dist/verified/generated/authority-kernel.d.ts +0 -10
- package/dist/verified/generated/authority-kernel.js +0 -127
- package/dist/verified/generated/kernel.d.ts +0 -31
- package/dist/verified/generated/kernel.js +0 -389
- package/dist/verified/generated/lifecycle-kernel.d.ts +0 -7
- package/dist/verified/generated/lifecycle-kernel.js +0 -164
- package/dist/verified/generated/provider-kernel.d.ts +0 -9
- package/dist/verified/generated/provider-kernel.js +0 -87
- package/dist/verified/generated/storage-kernel.d.ts +0 -11
- package/dist/verified/generated/storage-kernel.js +0 -107
- package/docs/licenses/bend-apache-2.0.txt +0 -202
- package/node_modules/pi-coralbricks-provider/README.md +0 -306
- package/node_modules/pi-coralbricks-provider/auth.ts +0 -30
- package/node_modules/pi-coralbricks-provider/custom-models.json +0 -1
- package/node_modules/pi-coralbricks-provider/deprecated-models.json +0 -1
- package/node_modules/pi-coralbricks-provider/guard.ts +0 -155
- package/node_modules/pi-coralbricks-provider/index.ts +0 -662
- package/node_modules/pi-coralbricks-provider/models.json +0 -88
- package/node_modules/pi-coralbricks-provider/package.json +0 -74
- package/node_modules/pi-coralbricks-provider/park.ts +0 -122
- package/node_modules/pi-coralbricks-provider/patch.json +0 -34
- package/node_modules/pi-coralbricks-provider/scripts/update-models.js +0 -658
- package/node_modules/pi-coralbricks-provider/settings.ts +0 -143
- package/node_modules/pi-coralbricks-provider/sync-policy.ts +0 -309
- package/proofs/abi.json +0 -308
- package/proofs/authority-abi.json +0 -7
- package/proofs/authority-kernel.bend +0 -23
- package/proofs/authority-proof.bend +0 -74
- package/proofs/authority-spec.bend +0 -30
- package/proofs/authority-state.bend +0 -43
- package/proofs/authority-types.d.ts +0 -3
- package/proofs/kernel.bend +0 -139
- package/proofs/lifecycle-abi.json +0 -3
- package/proofs/lifecycle-kernel.bend +0 -11
- package/proofs/lifecycle-proof.bend +0 -249
- package/proofs/lifecycle-spec.bend +0 -261
- package/proofs/lifecycle-types.d.ts +0 -4
- package/proofs/lifecycle.bend +0 -119
- package/proofs/provider-abi.json +0 -4
- package/proofs/provider-kernel.bend +0 -14
- package/proofs/provider-plans.bend +0 -28
- package/proofs/provider-spec.bend +0 -14
- package/proofs/provider-types.d.ts +0 -5
- package/proofs/resource-proof.bend +0 -633
- package/proofs/resource-spec.bend +0 -133
- package/proofs/resources.bend +0 -160
- package/proofs/state-kernel.bend +0 -17
- package/proofs/state-plans.bend +0 -40
- package/proofs/state-proof.bend +0 -42
- package/proofs/state-spec.bend +0 -26
- package/proofs/storage-abi.json +0 -3
- package/proofs/storage-kernel.bend +0 -11
- package/proofs/storage-plans.bend +0 -100
- package/proofs/storage-proof.bend +0 -176
- package/proofs/storage-spec.bend +0 -70
- package/proofs/storage-types.d.ts +0 -8
- package/proofs/types.d.ts +0 -7
- package/scripts/test-verified-kernels.mjs +0 -107
- package/scripts/verified-kernels.mjs +0 -176
- /package/dist/chunks/{chunk-ZEXCKK4K.js.map → chunk-4WKD3YM3.js.map} +0 -0
- /package/dist/chunks/{chunk-5XBYFSI5.js.map → chunk-7YNE4NB2.js.map} +0 -0
- /package/dist/chunks/{chunk-K6QXUGS5.js.map → chunk-BMAEZNZ5.js.map} +0 -0
- /package/dist/chunks/{chunk-CCHZXF6K.js.map → chunk-CXYJJ3HZ.js.map} +0 -0
- /package/dist/chunks/{chunk-TIIIHPHF.js.map → chunk-GS67KDMV.js.map} +0 -0
- /package/dist/chunks/{chunk-D5NYNIST.js.map → chunk-H57KPL3V.js.map} +0 -0
- /package/dist/chunks/{chunk-INRXG4J5.js.map → chunk-HGD75NZY.js.map} +0 -0
- /package/dist/chunks/{chunk-UXIBKMUM.js.map → chunk-KIFOEBYJ.js.map} +0 -0
- /package/dist/chunks/{chunk-3FJUP3GV.js.map → chunk-L6H46CPY.js.map} +0 -0
- /package/dist/chunks/{chunk-FUY6XVRX.js.map → chunk-MPMEK3IQ.js.map} +0 -0
- /package/dist/chunks/{chunk-HP5P7NBO.js.map → chunk-MSDL7U6Q.js.map} +0 -0
- /package/dist/chunks/{chunk-ASSLHWZS.js.map → chunk-MX53BRAC.js.map} +0 -0
- /package/dist/chunks/{chunk-QT4W5YVB.js.map → chunk-RAA3FAYZ.js.map} +0 -0
- /package/dist/chunks/{chunk-53N2I4QA.js.map → chunk-TXCNZCZP.js.map} +0 -0
- /package/dist/chunks/{chunk-LEU5CDSL.js.map → chunk-XFOSUGLU.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HumanWaitDeadlinePause
|
|
3
|
-
} from "./chunk-7QKKLBHJ.js";
|
|
4
1
|
import {
|
|
5
2
|
transpileFabricCodeWithSourceMap
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3IJEQBFS.js";
|
|
4
|
+
import {
|
|
5
|
+
HumanWaitDeadlinePause
|
|
6
|
+
} from "./chunk-UPMWLOKL.js";
|
|
7
7
|
import {
|
|
8
8
|
PI_ARGUMENT_NORMALIZATION_SOURCE
|
|
9
9
|
} from "./chunk-6KO2LEOO.js";
|
|
@@ -11,16 +11,19 @@ import {
|
|
|
11
11
|
piBashExitMetadata
|
|
12
12
|
} from "./chunk-XOBLUZMB.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./chunk-7TB7NXSL.js";
|
|
14
|
+
providerGlobalNames
|
|
15
|
+
} from "./chunk-35EEGOH3.js";
|
|
17
16
|
import {
|
|
18
17
|
PI_CORE_TOOL_NAMES
|
|
19
18
|
} from "./chunk-YU62DDKK.js";
|
|
19
|
+
import {
|
|
20
|
+
runAbortable,
|
|
21
|
+
settleWithin
|
|
22
|
+
} from "./chunk-7TB7NXSL.js";
|
|
20
23
|
|
|
21
24
|
// src/runtime/quickjs-runtime.ts
|
|
22
25
|
import releaseSyncVariant from "@jitl/quickjs-singlefile-mjs-release-sync";
|
|
23
|
-
import { newQuickJSWASMModuleFromVariant } from "quickjs-emscripten-core";
|
|
26
|
+
import { newQuickJSWASMModuleFromVariant, newVariant } from "quickjs-emscripten-core";
|
|
24
27
|
import ts from "typescript";
|
|
25
28
|
|
|
26
29
|
// src/runtime/guest-stack-map.ts
|
|
@@ -193,7 +196,8 @@ globalThis.exit = () => { throw __exit; };
|
|
|
193
196
|
globalThis.__fabricRun = async (main) => {
|
|
194
197
|
if (typeof __nativeToolsEnabled !== "undefined" && __nativeToolsEnabled) {
|
|
195
198
|
__nativeAllTools = Object.freeze(await __call("fabric.$piAllTools", {}));
|
|
196
|
-
|
|
199
|
+
// A host may also give a tool's identifier (jsName: my-tool -> my_tool) so tools.my_tool reaches it.
|
|
200
|
+
for (const tool of __nativeAllTools) { __nativeToolNames.add(tool.name); if (typeof tool.jsName === "string") __nativeToolNames.add(tool.jsName); }
|
|
197
201
|
__nativeCatalogReady = true;
|
|
198
202
|
if (__nativeProfile) globalThis.ALL_TOOLS = __nativeAllTools;
|
|
199
203
|
}
|
|
@@ -235,11 +239,24 @@ var missingStringsKeys = (code, strings) => {
|
|
|
235
239
|
const provided = strings ?? {};
|
|
236
240
|
return referencedPiKeys(code).filter((key) => !(key in provided));
|
|
237
241
|
};
|
|
238
|
-
var
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
var precompiledModules = /* @__PURE__ */ new WeakMap();
|
|
243
|
+
var quickJsModule = (wasmModule) => {
|
|
244
|
+
if (wasmModule === void 0) {
|
|
245
|
+
quickJsModulePromise ??= newQuickJSWASMModuleFromVariant(releaseSyncVariant);
|
|
246
|
+
return quickJsModulePromise;
|
|
247
|
+
}
|
|
248
|
+
let loaded = precompiledModules.get(wasmModule);
|
|
249
|
+
if (loaded === void 0) {
|
|
250
|
+
loaded = newQuickJSWASMModuleFromVariant(newVariant(releaseSyncVariant, { wasmModule }));
|
|
251
|
+
precompiledModules.set(wasmModule, loaded);
|
|
252
|
+
}
|
|
253
|
+
return loaded;
|
|
241
254
|
};
|
|
242
|
-
var
|
|
255
|
+
var nextMacrotask = () => new Promise((resolve) => {
|
|
256
|
+
if (typeof setImmediate === "function") setImmediate(() => resolve());
|
|
257
|
+
else setTimeout(resolve, 0);
|
|
258
|
+
});
|
|
259
|
+
var guestSetupSource = (fields, nativeStoreEnabled = false, profile = "additive", nativeToolsEnabled = false, providerGlobals = []) => `const __piCanonicalFields = ${JSON.stringify(fields ?? {})}; const __nativeStoreEnabled = ${nativeStoreEnabled}; const __nativeProfile = ${profile === "native"}; const __nativeToolsEnabled = ${nativeToolsEnabled}; const __providerGlobals = ${JSON.stringify(providerGlobalNames(providerGlobals))};
|
|
243
260
|
${GUEST_SETUP}`;
|
|
244
261
|
var GUEST_SETUP = `
|
|
245
262
|
(() => {
|
|
@@ -665,12 +682,16 @@ globalThis.agents = Object.freeze({
|
|
|
665
682
|
main: () => __call("agents.main", {}),
|
|
666
683
|
sessions: () => __call("agents.sessions", {}),
|
|
667
684
|
peers: () => __call("agents.peers", {}),
|
|
685
|
+
departed: (args = {}) => __call("agents.departed", args),
|
|
686
|
+
definitions: () => __call("agents.definitions", {}),
|
|
668
687
|
subscribe: (args) => __call("agents.subscribe", args),
|
|
669
688
|
subscriptions: (args = {}) => __call("agents.subscriptions", args),
|
|
670
689
|
unsubscribe: (args) => __call("agents.unsubscribe", args),
|
|
671
690
|
models: (args = {}) => __call("agents.models", args),
|
|
672
691
|
stop: (args) => __call("agents.stop", args),
|
|
673
692
|
cleanup: (args) => __call("agents.cleanup", args),
|
|
693
|
+
sleep: (args) => __call("agents.sleep", args),
|
|
694
|
+
wake: (args) => __call("agents.wake", args),
|
|
674
695
|
create: __createActor,
|
|
675
696
|
ask: (args) => __call("agents.ask", args),
|
|
676
697
|
tell: (args) => __call("agents.tell", args),
|
|
@@ -688,7 +709,7 @@ globalThis.agents = Object.freeze({
|
|
|
688
709
|
setDeliveryPolicy: (args) => __call("agents.setDeliveryPolicy", args),
|
|
689
710
|
clearMessages: (args) => __call("agents.clearMessages", args),
|
|
690
711
|
setInstructions: (args) => __call("agents.setInstructions", args),
|
|
691
|
-
actors: () => __call("agents.actors",
|
|
712
|
+
actors: (args = {}) => __call("agents.actors", args),
|
|
692
713
|
messages: (args) => __call("agents.messages", args),
|
|
693
714
|
remove: (args) => __call("agents.remove", args),
|
|
694
715
|
// Keyword keys for the actor-template routes, spelled as the provider,
|
|
@@ -928,6 +949,29 @@ globalThis.setInterval = (callback, ms = 0) => {
|
|
|
928
949
|
};
|
|
929
950
|
globalThis.clearTimeout = (id) => { __timerCallbacks.delete(id); };
|
|
930
951
|
globalThis.clearInterval = (id) => { __timerCallbacks.delete(id); };
|
|
952
|
+
// Providers other extensions register, as globals named after them. The host
|
|
953
|
+
// lists only names src/provider-globals.ts accepts; installing last, and only
|
|
954
|
+
// where no global exists, keeps every Fabric and language global intact.
|
|
955
|
+
// Each call is tools.call, so it takes the same host path, policy and limits.
|
|
956
|
+
const __providerGlobal = (provider) => new Proxy(Object.create(null), {
|
|
957
|
+
get(_target, property) {
|
|
958
|
+
if (typeof property === "symbol" || property === "then" || property === "toJSON") return undefined;
|
|
959
|
+
const ref = provider + "." + property;
|
|
960
|
+
return (args = {}) => {
|
|
961
|
+
if (args === null || typeof args !== "object" || Array.isArray(args)) {
|
|
962
|
+
return Promise.reject(new TypeError(ref + " takes one argument object"));
|
|
963
|
+
}
|
|
964
|
+
return __call("fabric.$call", { ref, args });
|
|
965
|
+
};
|
|
966
|
+
},
|
|
967
|
+
set() { return false; },
|
|
968
|
+
defineProperty() { return false; },
|
|
969
|
+
deleteProperty() { return false; },
|
|
970
|
+
});
|
|
971
|
+
for (const __name of (typeof __providerGlobals === "undefined" ? [] : __providerGlobals)) {
|
|
972
|
+
if (typeof __name !== "string" || !/^[a-z][a-z0-9_]{0,63}$/.test(__name) || __name in globalThis) continue;
|
|
973
|
+
globalThis[__name] = __providerGlobal(__name);
|
|
974
|
+
}
|
|
931
975
|
})();
|
|
932
976
|
`;
|
|
933
977
|
var formatValue = (value) => {
|
|
@@ -972,6 +1016,10 @@ var disposeQuickJsContext = (context) => {
|
|
|
972
1016
|
}
|
|
973
1017
|
};
|
|
974
1018
|
var QuickJsRuntime = class {
|
|
1019
|
+
#wasmModule;
|
|
1020
|
+
constructor(options = {}) {
|
|
1021
|
+
this.#wasmModule = options.wasmModule;
|
|
1022
|
+
}
|
|
975
1023
|
async execute(code, hostCall, options) {
|
|
976
1024
|
if (options.signal?.aborted) {
|
|
977
1025
|
return {
|
|
@@ -1015,7 +1063,7 @@ var QuickJsRuntime = class {
|
|
|
1015
1063
|
error: "QuickJS memory limit must be an integer between 1 byte and 4294967295 bytes (WASM32 maximum)"
|
|
1016
1064
|
};
|
|
1017
1065
|
}
|
|
1018
|
-
const module = await quickJsModule();
|
|
1066
|
+
const module = await quickJsModule(this.#wasmModule);
|
|
1019
1067
|
const context = module.newContext();
|
|
1020
1068
|
const runtime = context.runtime;
|
|
1021
1069
|
const jsonObject = context.getProp(context.global, "JSON");
|
|
@@ -1096,6 +1144,7 @@ var QuickJsRuntime = class {
|
|
|
1096
1144
|
const scheduleDeadline = () => {
|
|
1097
1145
|
if (!rejectDeadline || closing || cancelled || timedOut) return;
|
|
1098
1146
|
clearTimeout(timeout);
|
|
1147
|
+
options.onDeadline?.(Number.isFinite(executionDeadlineAt) ? executionDeadlineAt : void 0);
|
|
1099
1148
|
if (!Number.isFinite(executionDeadlineAt)) return;
|
|
1100
1149
|
timeout = setTimeout(expireDeadline, Math.min(2147483647, Math.max(0, executionDeadlineAt - Date.now())));
|
|
1101
1150
|
};
|
|
@@ -1121,12 +1170,193 @@ var QuickJsRuntime = class {
|
|
|
1121
1170
|
suspend: () => {
|
|
1122
1171
|
clearTimeout(timeout);
|
|
1123
1172
|
executionDeadlineAt = Infinity;
|
|
1173
|
+
options.onDeadline?.(void 0);
|
|
1124
1174
|
},
|
|
1125
1175
|
resume: (remainingMs) => {
|
|
1126
1176
|
executionDeadlineAt = Date.now() + remainingMs;
|
|
1127
1177
|
scheduleDeadline();
|
|
1128
1178
|
}
|
|
1129
1179
|
});
|
|
1180
|
+
const journal = options.journal;
|
|
1181
|
+
let issued = 0;
|
|
1182
|
+
let replaying = journal?.resuming === true;
|
|
1183
|
+
let logicalNow = journal?.startedAt ?? 0;
|
|
1184
|
+
let timerCount = 0;
|
|
1185
|
+
const held = /* @__PURE__ */ new Map();
|
|
1186
|
+
let stopReport;
|
|
1187
|
+
let journalFailure;
|
|
1188
|
+
const failJournal = (error) => {
|
|
1189
|
+
if (journalFailure !== void 0) return;
|
|
1190
|
+
journalFailure = `Fabric could not write its journal: ${error instanceof Error ? error.message : String(error)}`;
|
|
1191
|
+
abortHostCalls(journalFailure);
|
|
1192
|
+
rejectExecutionGate(journalFailure);
|
|
1193
|
+
};
|
|
1194
|
+
const errorOutcome = (reference, error) => {
|
|
1195
|
+
const exit = reference === "pi.bash" || reference === "pi.powershell" ? piBashExitMetadata(error) : void 0;
|
|
1196
|
+
const fields = guestErrorFields(error);
|
|
1197
|
+
return {
|
|
1198
|
+
ok: false,
|
|
1199
|
+
message: error instanceof Error ? error.message : String(error),
|
|
1200
|
+
...exit ? { bashExit: exit } : {},
|
|
1201
|
+
...fields.length > 0 ? { fields } : {}
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
const deliverOutcome = (promise, outcome) => {
|
|
1205
|
+
if (outcome.ok) {
|
|
1206
|
+
const handle = outcome.json === void 0 ? context.undefined : jsonHandle(context, jsonObject, jsonParse, JSON.parse(outcome.json));
|
|
1207
|
+
promise.resolve(handle);
|
|
1208
|
+
handle.dispose();
|
|
1209
|
+
return;
|
|
1210
|
+
}
|
|
1211
|
+
const errorHandle = context.newError(outcome.message);
|
|
1212
|
+
if (outcome.bashExit) {
|
|
1213
|
+
const metadata = jsonHandle(context, jsonObject, jsonParse, outcome.bashExit);
|
|
1214
|
+
context.setProp(errorHandle, "__fabricBashExit", metadata);
|
|
1215
|
+
metadata.dispose();
|
|
1216
|
+
}
|
|
1217
|
+
for (const [key, value] of outcome.fields ?? []) {
|
|
1218
|
+
const field = context.newNumber(value);
|
|
1219
|
+
context.setProp(errorHandle, key, field);
|
|
1220
|
+
field.dispose();
|
|
1221
|
+
}
|
|
1222
|
+
promise.reject(errorHandle);
|
|
1223
|
+
errorHandle.dispose();
|
|
1224
|
+
};
|
|
1225
|
+
let journalTail;
|
|
1226
|
+
const journalStopped = (promise) => closing || promise.alive === false || journalFailure !== void 0 || hostAbortController.signal.aborted;
|
|
1227
|
+
const recordAndDeliver = (seq, reference, args, promise, value, outcome) => {
|
|
1228
|
+
if (journalStopped(promise)) return;
|
|
1229
|
+
let result;
|
|
1230
|
+
try {
|
|
1231
|
+
result = outcome();
|
|
1232
|
+
} catch (error) {
|
|
1233
|
+
result = errorOutcome(reference, error);
|
|
1234
|
+
}
|
|
1235
|
+
const deliver = (at) => {
|
|
1236
|
+
if (journalStopped(promise)) return;
|
|
1237
|
+
logicalNow = at;
|
|
1238
|
+
cpuDeadlineAt = Date.now() + (options.maxCpuSliceMs ?? Infinity);
|
|
1239
|
+
deliverOutcome(promise, result);
|
|
1240
|
+
pumpJobs();
|
|
1241
|
+
};
|
|
1242
|
+
let saved;
|
|
1243
|
+
try {
|
|
1244
|
+
saved = journal.complete(seq, reference, args, value, result);
|
|
1245
|
+
} catch (error) {
|
|
1246
|
+
failJournal(error);
|
|
1247
|
+
return;
|
|
1248
|
+
}
|
|
1249
|
+
if (typeof saved === "number") {
|
|
1250
|
+
deliver(saved);
|
|
1251
|
+
return;
|
|
1252
|
+
}
|
|
1253
|
+
return saved.then(deliver, failJournal);
|
|
1254
|
+
};
|
|
1255
|
+
const settleJournaled = (seq, reference, args, promise, value, outcome) => {
|
|
1256
|
+
const run = () => recordAndDeliver(seq, reference, args, promise, value, outcome);
|
|
1257
|
+
const pending = journalTail ? journalTail.then(run) : run();
|
|
1258
|
+
if (pending === void 0) return;
|
|
1259
|
+
const tail = pending.catch(failJournal).finally(() => {
|
|
1260
|
+
if (journalTail === tail) journalTail = void 0;
|
|
1261
|
+
});
|
|
1262
|
+
journalTail = tail;
|
|
1263
|
+
hostTasks.add(tail);
|
|
1264
|
+
void tail.finally(() => hostTasks.delete(tail));
|
|
1265
|
+
return tail;
|
|
1266
|
+
};
|
|
1267
|
+
const startTimer = (seq, args, promise) => {
|
|
1268
|
+
const ms = Math.max(0, Number(args.ms ?? 0));
|
|
1269
|
+
const timer = setTimeout(() => {
|
|
1270
|
+
if (closing || promise.alive === false) return;
|
|
1271
|
+
if (journal) {
|
|
1272
|
+
settleJournaled(seq, "fabric.$timer", args, promise, void 0, () => ({ ok: true }));
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
promise.resolve(context.undefined);
|
|
1276
|
+
pumpJobs();
|
|
1277
|
+
}, ms);
|
|
1278
|
+
timer.unref?.();
|
|
1279
|
+
pendingTimers.add(timer);
|
|
1280
|
+
void promise.settled.then(() => pendingTimers.delete(timer));
|
|
1281
|
+
};
|
|
1282
|
+
const startHostCall = (seq, reference, args, promise) => {
|
|
1283
|
+
const waitsForHuman = options.isHumanWaitHostCall?.(reference, args) === true;
|
|
1284
|
+
if (waitsForHuman) humanWait.enter();
|
|
1285
|
+
const call = runAbortable(
|
|
1286
|
+
hostAbortController.signal,
|
|
1287
|
+
() => journal ? hostCall(reference, args, hostAbortController.signal, (wait) => humanWait.run(wait), { seq }) : hostCall(reference, args, hostAbortController.signal, (wait) => humanWait.run(wait))
|
|
1288
|
+
).finally(() => {
|
|
1289
|
+
if (waitsForHuman) humanWait.leave();
|
|
1290
|
+
});
|
|
1291
|
+
const task = journal ? call.then(
|
|
1292
|
+
(value) => settleJournaled(seq, reference, args, promise, value, () => ({
|
|
1293
|
+
ok: true,
|
|
1294
|
+
...value === void 0 ? {} : { json: jsonText(value) }
|
|
1295
|
+
})),
|
|
1296
|
+
(error) => settleJournaled(seq, reference, args, promise, void 0, () => errorOutcome(reference, error))
|
|
1297
|
+
).catch(failJournal) : call.then((value) => {
|
|
1298
|
+
if (closing || promise.alive === false) return;
|
|
1299
|
+
cpuDeadlineAt = Date.now() + (options.maxCpuSliceMs ?? Infinity);
|
|
1300
|
+
const handle = jsonHandle(context, jsonObject, jsonParse, value);
|
|
1301
|
+
promise.resolve(handle);
|
|
1302
|
+
handle.dispose();
|
|
1303
|
+
}).catch((error) => {
|
|
1304
|
+
if (closing || promise.alive === false) return;
|
|
1305
|
+
deliverOutcome(promise, errorOutcome(reference, error));
|
|
1306
|
+
}).finally(() => {
|
|
1307
|
+
if (!closing) pumpJobs();
|
|
1308
|
+
});
|
|
1309
|
+
hostTasks.add(task);
|
|
1310
|
+
void task.finally(() => hostTasks.delete(task));
|
|
1311
|
+
};
|
|
1312
|
+
const confirmRepeat = async (question) => {
|
|
1313
|
+
const confirm = options.confirmRepeat;
|
|
1314
|
+
if (!confirm) return false;
|
|
1315
|
+
if (confirm.pausesDeadline) humanWait.enter();
|
|
1316
|
+
try {
|
|
1317
|
+
return await confirm.ask(question, hostAbortController.signal) === true;
|
|
1318
|
+
} catch {
|
|
1319
|
+
return false;
|
|
1320
|
+
} finally {
|
|
1321
|
+
if (confirm.pausesDeadline) humanWait.leave();
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
const replayJournal = async (driver) => {
|
|
1325
|
+
for (const delivery of driver.replay) {
|
|
1326
|
+
if (cancelled || timedOut || closing) return void 0;
|
|
1327
|
+
const call = held.get(delivery.seq);
|
|
1328
|
+
if (!call || call.ref !== delivery.ref || driver.digest(call.args) !== delivery.digest) {
|
|
1329
|
+
const actual = call ?? [...held.entries()].sort(([left], [right]) => left - right)[0]?.[1];
|
|
1330
|
+
return driver.diverged(delivery, actual ? { ref: actual.ref, args: actual.args } : void 0);
|
|
1331
|
+
}
|
|
1332
|
+
held.delete(delivery.seq);
|
|
1333
|
+
try {
|
|
1334
|
+
await runAbortable(hostAbortController.signal, () => driver.served(delivery, call.args, hostAbortController.signal));
|
|
1335
|
+
} catch (error) {
|
|
1336
|
+
return error instanceof Error ? error.message : String(error);
|
|
1337
|
+
}
|
|
1338
|
+
if (cancelled || timedOut || closing || call.promise.alive === false) return void 0;
|
|
1339
|
+
logicalNow = delivery.at;
|
|
1340
|
+
cpuDeadlineAt = Date.now() + (options.maxCpuSliceMs ?? Infinity);
|
|
1341
|
+
deliverOutcome(call.promise, delivery.outcome);
|
|
1342
|
+
pumpJobs();
|
|
1343
|
+
}
|
|
1344
|
+
if (cancelled || timedOut || closing) return void 0;
|
|
1345
|
+
const waiting = [...held.entries()].sort(([left], [right]) => left - right);
|
|
1346
|
+
const stop = driver.frontier(waiting.map(([seq, call]) => ({ seq, ref: call.ref, args: call.args })));
|
|
1347
|
+
if (stop !== void 0) {
|
|
1348
|
+
if (stop.question === void 0 || !await confirmRepeat(stop.question)) return stop.report;
|
|
1349
|
+
if (cancelled || timedOut || closing) return void 0;
|
|
1350
|
+
}
|
|
1351
|
+
if (cancelled || timedOut || closing) return void 0;
|
|
1352
|
+
replaying = false;
|
|
1353
|
+
held.clear();
|
|
1354
|
+
for (const [seq, call] of waiting) {
|
|
1355
|
+
if (call.ref === "fabric.$timer") startTimer(seq, call.args, call.promise);
|
|
1356
|
+
else startHostCall(seq, call.ref, call.args, call.promise);
|
|
1357
|
+
}
|
|
1358
|
+
return void 0;
|
|
1359
|
+
};
|
|
1130
1360
|
try {
|
|
1131
1361
|
const hostFunction = context.newFunction(
|
|
1132
1362
|
"__fabricHostCall",
|
|
@@ -1134,64 +1364,31 @@ var QuickJsRuntime = class {
|
|
|
1134
1364
|
const reference = context.getString(referenceHandle);
|
|
1135
1365
|
const dumpedArgs = context.dump(argsHandle);
|
|
1136
1366
|
const args = typeof dumpedArgs === "object" && dumpedArgs !== null && !Array.isArray(dumpedArgs) ? dumpedArgs : {};
|
|
1367
|
+
const seq = journal ? issued++ : -1;
|
|
1137
1368
|
extendExecutionTimeout(reference, args);
|
|
1138
1369
|
const promise = context.newPromise();
|
|
1139
1370
|
pendingHostPromises.add(promise);
|
|
1140
1371
|
void promise.settled.then(() => pendingHostPromises.delete(promise));
|
|
1141
1372
|
if (reference === "fabric.$timer") {
|
|
1142
|
-
if (
|
|
1373
|
+
if (timerCount >= (options.maxPendingTimers ?? Infinity)) {
|
|
1143
1374
|
const errorHandle = context.newError("Guest pending timer limit exceeded");
|
|
1144
1375
|
promise.reject(errorHandle);
|
|
1145
1376
|
errorHandle.dispose();
|
|
1146
1377
|
return promise.handle;
|
|
1147
1378
|
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
timer.unref?.();
|
|
1155
|
-
pendingTimers.add(timer);
|
|
1156
|
-
void promise.settled.then(() => pendingTimers.delete(timer));
|
|
1379
|
+
timerCount++;
|
|
1380
|
+
void promise.settled.then(() => {
|
|
1381
|
+
timerCount--;
|
|
1382
|
+
});
|
|
1383
|
+
if (replaying || journalFailure !== void 0) held.set(seq, { ref: reference, args, promise });
|
|
1384
|
+
else startTimer(seq, args, promise);
|
|
1157
1385
|
return promise.handle;
|
|
1158
1386
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
).finally(() => {
|
|
1165
|
-
if (waitsForHuman) humanWait.leave();
|
|
1166
|
-
}).then((value2) => {
|
|
1167
|
-
if (closing || promise.alive === false) return;
|
|
1168
|
-
cpuDeadlineAt = Date.now() + (options.maxCpuSliceMs ?? Infinity);
|
|
1169
|
-
const handle = jsonHandle(context, jsonObject, jsonParse, value2);
|
|
1170
|
-
promise.resolve(handle);
|
|
1171
|
-
handle.dispose();
|
|
1172
|
-
}).catch((error) => {
|
|
1173
|
-
if (closing || promise.alive === false) return;
|
|
1174
|
-
const errorHandle = context.newError(
|
|
1175
|
-
error instanceof Error ? error.message : String(error)
|
|
1176
|
-
);
|
|
1177
|
-
const exit = reference === "pi.bash" || reference === "pi.powershell" ? piBashExitMetadata(error) : void 0;
|
|
1178
|
-
if (exit) {
|
|
1179
|
-
const metadata = jsonHandle(context, jsonObject, jsonParse, exit);
|
|
1180
|
-
context.setProp(errorHandle, "__fabricBashExit", metadata);
|
|
1181
|
-
metadata.dispose();
|
|
1182
|
-
}
|
|
1183
|
-
for (const [key, value2] of guestErrorFields(error)) {
|
|
1184
|
-
const field = context.newNumber(value2);
|
|
1185
|
-
context.setProp(errorHandle, key, field);
|
|
1186
|
-
field.dispose();
|
|
1187
|
-
}
|
|
1188
|
-
promise.reject(errorHandle);
|
|
1189
|
-
errorHandle.dispose();
|
|
1190
|
-
}).finally(() => {
|
|
1191
|
-
if (!closing) pumpJobs();
|
|
1192
|
-
});
|
|
1193
|
-
hostTasks.add(task);
|
|
1194
|
-
void task.finally(() => hostTasks.delete(task));
|
|
1387
|
+
if (replaying || journalFailure !== void 0) {
|
|
1388
|
+
held.set(seq, { ref: reference, args, promise });
|
|
1389
|
+
return promise.handle;
|
|
1390
|
+
}
|
|
1391
|
+
startHostCall(seq, reference, args, promise);
|
|
1195
1392
|
return promise.handle;
|
|
1196
1393
|
}
|
|
1197
1394
|
);
|
|
@@ -1219,7 +1416,7 @@ var QuickJsRuntime = class {
|
|
|
1219
1416
|
context.setProp(context.global, "__fabricTokenBudget", tokenBudget);
|
|
1220
1417
|
tokenBudget.dispose();
|
|
1221
1418
|
cpuDeadlineAt = Date.now() + (options.maxCpuSliceMs ?? Infinity);
|
|
1222
|
-
const setupResult = context.evalCode(guestSetupSource(options.piToolCanonicalFields, options.nativeStoreEnabled, options.codemodeProfile, options.nativeToolsEnabled), "pi-fabric-setup.js");
|
|
1419
|
+
const setupResult = context.evalCode(guestSetupSource(options.piToolCanonicalFields, options.nativeStoreEnabled, options.codemodeProfile, options.nativeToolsEnabled, options.providerGlobals), "pi-fabric-setup.js");
|
|
1223
1420
|
if (setupResult.error) {
|
|
1224
1421
|
const deadlineExceeded = interruptedByDeadline || interruptedByCpu || Date.now() > executionDeadlineAt;
|
|
1225
1422
|
if (deadlineExceeded) timedOut = true;
|
|
@@ -1234,6 +1431,18 @@ var QuickJsRuntime = class {
|
|
|
1234
1431
|
};
|
|
1235
1432
|
}
|
|
1236
1433
|
setupResult.value.dispose();
|
|
1434
|
+
if (journal) {
|
|
1435
|
+
const journalNow = context.newFunction("__fabricJournalNow", () => context.newNumber(logicalNow));
|
|
1436
|
+
context.setProp(context.global, "__fabricJournalNow", journalNow);
|
|
1437
|
+
journalNow.dispose();
|
|
1438
|
+
const shim = context.evalCode(journal.shim, "pi-fabric-journal-shim.js");
|
|
1439
|
+
if (shim.error) {
|
|
1440
|
+
const message = formatValue(context.dump(shim.error));
|
|
1441
|
+
shim.error.dispose();
|
|
1442
|
+
throw new Error(`Fabric journal shim failed: ${message}`);
|
|
1443
|
+
}
|
|
1444
|
+
shim.value.dispose();
|
|
1445
|
+
}
|
|
1237
1446
|
executionGate = context.newPromise();
|
|
1238
1447
|
context.setProp(context.global, "__fabricExecutionGate", executionGate.handle);
|
|
1239
1448
|
const guestBundle = options.transpiledCode === void 0 ? transpileFabricCodeWithSourceMap(code) : { code: options.transpiledCode, sourceMap: options.transpiledSourceMap };
|
|
@@ -1273,12 +1482,36 @@ Promise.race([globalThis.__fabricRun(__piFabricMain), globalThis.__fabricExecuti
|
|
|
1273
1482
|
rejectDeadline = reject;
|
|
1274
1483
|
scheduleDeadline();
|
|
1275
1484
|
});
|
|
1485
|
+
void deadline.catch(() => void 0);
|
|
1276
1486
|
pendingResolution = context.resolvePromise(activePromiseHandle);
|
|
1277
1487
|
pumpJobs();
|
|
1278
|
-
const
|
|
1488
|
+
const execution = (async () => {
|
|
1489
|
+
if (journal?.resuming) {
|
|
1490
|
+
const report = await replayJournal(journal);
|
|
1491
|
+
if (report !== void 0 && !cancelled && !timedOut && !closing) {
|
|
1492
|
+
stopReport = report;
|
|
1493
|
+
abortHostCalls(report);
|
|
1494
|
+
rejectExecutionGate(report);
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
return pendingResolution;
|
|
1498
|
+
})();
|
|
1499
|
+
const resolution = await Promise.race([execution, deadline, cancellation]);
|
|
1279
1500
|
pendingResolution = void 0;
|
|
1280
1501
|
activePromiseHandle.dispose();
|
|
1281
1502
|
activePromiseHandle = void 0;
|
|
1503
|
+
const stopped = stopReport ?? journalFailure;
|
|
1504
|
+
if (stopped !== void 0) {
|
|
1505
|
+
if (resolution.error) resolution.error.dispose();
|
|
1506
|
+
else resolution.value.dispose();
|
|
1507
|
+
return {
|
|
1508
|
+
value: void 0,
|
|
1509
|
+
logs,
|
|
1510
|
+
emitted: emittedSnapshot(),
|
|
1511
|
+
terminationReason: "runtime_error",
|
|
1512
|
+
error: stopped
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1282
1515
|
if (resolution.error) {
|
|
1283
1516
|
const deadlineExceeded = timedOut || interruptedByDeadline || interruptedByCpu || Date.now() > executionDeadlineAt;
|
|
1284
1517
|
if (deadlineExceeded) timedOut = true;
|
|
@@ -1335,7 +1568,7 @@ Promise.race([globalThis.__fabricRun(__piFabricMain), globalThis.__fabricExecuti
|
|
|
1335
1568
|
for (const promise of pendingHostPromises) promise.reject(errorHandle);
|
|
1336
1569
|
errorHandle.dispose();
|
|
1337
1570
|
pumpJobs();
|
|
1338
|
-
await
|
|
1571
|
+
await nextMacrotask();
|
|
1339
1572
|
const settled = await Promise.race([
|
|
1340
1573
|
pendingResolution ? pendingResolution.catch(() => void 0) : Promise.resolve(void 0),
|
|
1341
1574
|
new Promise((resolve) => {
|
|
@@ -1371,4 +1604,4 @@ export {
|
|
|
1371
1604
|
GUEST_SETUP,
|
|
1372
1605
|
QuickJsRuntime
|
|
1373
1606
|
};
|
|
1374
|
-
//# sourceMappingURL=chunk-
|
|
1607
|
+
//# sourceMappingURL=chunk-LKYLD5SN.js.map
|