@e4779/pi-fabric 0.117.2-fork.31 → 0.131.0-fork.32
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 +12 -5
- 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/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/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-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 +36 -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-3FJUP3GV.js → chunk-36XQFTEN.js} +2 -2
- 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-3PKZSIRA.js +1312 -0
- package/dist/chunks/chunk-3PKZSIRA.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-K7J2ABAZ.js → chunk-4KX6BIPL.js} +91 -31
- package/dist/chunks/chunk-4KX6BIPL.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-GIK2WNAK.js → chunk-5BOTHX47.js} +109 -20
- package/dist/chunks/chunk-5BOTHX47.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-GO32KSEZ.js → chunk-7CIES6X2.js} +84 -9
- package/dist/chunks/chunk-7CIES6X2.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-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-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-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-MLLYR3Y6.js → chunk-HSEZPCL5.js} +19 -78
- package/dist/chunks/chunk-HSEZPCL5.js.map +7 -0
- package/dist/chunks/{chunk-LNASO4VT.js → chunk-IOGDTIGN.js} +44 -19
- package/dist/chunks/chunk-IOGDTIGN.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-SPCJXN4K.js → chunk-LKYLD5SN.js} +298 -65
- package/dist/chunks/chunk-LKYLD5SN.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-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-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-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-UD7LFV43.js +28 -0
- package/dist/chunks/chunk-UD7LFV43.js.map +7 -0
- package/dist/chunks/{chunk-ASSLHWZS.js → chunk-UFMYN5TA.js} +2 -2
- 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-VNWQIGQL.js} +1820 -649
- package/dist/chunks/chunk-VNWQIGQL.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-XCEEQ5AB.js → chunk-WGMCNCP6.js} +1567 -1564
- package/dist/chunks/chunk-WGMCNCP6.js.map +7 -0
- package/dist/chunks/chunk-WKFRGICG.js +101 -0
- package/dist/chunks/chunk-WKFRGICG.js.map +7 -0
- package/dist/chunks/{chunk-3UGN25XS.js → chunk-WWTGWGH7.js} +80 -1662
- package/dist/chunks/chunk-WWTGWGH7.js.map +7 -0
- package/dist/chunks/{chunk-5UBRGTVN.js → chunk-X7QETPBC.js} +31 -15
- package/dist/chunks/chunk-X7QETPBC.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-EKODKR6Y.js → chunk-YHFWMAQ5.js} +1 -24
- package/dist/chunks/chunk-YHFWMAQ5.js.map +7 -0
- package/dist/chunks/{chunk-C7Z6F3SO.js → chunk-ZFWICFNJ.js} +27 -20
- package/dist/chunks/{chunk-C7Z6F3SO.js.map → chunk-ZFWICFNJ.js.map} +2 -2
- 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 +39 -2
- 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/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 +10 -8
- 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 +2125 -786
- 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/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/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.d.ts.map +1 -1
- package/dist/ui/dashboard.js +17 -13
- package/dist/ui/dashboard.js.map +2 -2
- package/dist/ui/fabric-render.d.ts +6 -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 +1 -0
- package/dist/ui/settings-values.d.ts.map +1 -1
- package/dist/ui/settings.js +59 -18
- 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 +34 -16
- 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 +164 -17
- package/docs/architecture.md +5 -1
- package/docs/audit-trace.md +2 -1
- package/docs/background-tasks.md +102 -16
- package/docs/codemode-parity.md +2 -2
- package/docs/compaction.md +21 -5
- package/docs/components.md +1 -1
- package/docs/configuration.md +111 -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 +20 -17
- package/docs/jev.md +1 -1
- 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 +92 -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 +109 -22
- package/skillsets/typescript/fabric-exec/SKILL.md +7 -7
- package/skillsets/typescript/fabric-exec/references/agents.md +12 -3
- 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-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-3FJUP3GV.js.map → chunk-36XQFTEN.js.map} +0 -0
- /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-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-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-ASSLHWZS.js.map → chunk-UFMYN5TA.js.map} +0 -0
- /package/dist/chunks/{chunk-LEU5CDSL.js.map → chunk-XFOSUGLU.js.map} +0 -0
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import type { FabricProgramTasks } from "../core/program-tasks.js";
|
|
2
3
|
import type { FabricShellJobStore } from "../core/shell-jobs.js";
|
|
3
4
|
interface ShellHangKeyOptions {
|
|
4
5
|
enabled: () => boolean;
|
|
5
6
|
ownsInput: () => boolean;
|
|
6
7
|
jobs: () => FabricShellJobStore | undefined;
|
|
8
|
+
programs?: () => FabricProgramTasks | undefined;
|
|
7
9
|
}
|
|
8
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* Spill or kill a nested shell that is still waiting, without a jobs API. With
|
|
12
|
+
* no shell waiting, Ctrl+B twice from an empty editor moves the running
|
|
13
|
+
* `fabric_exec` program to the background instead. A non-empty editor keeps
|
|
14
|
+
* Ctrl+B as cursor-left.
|
|
15
|
+
*/
|
|
9
16
|
export declare function installFabricShellHangKeys(context: ExtensionContext, options: ShellHangKeyOptions): () => void;
|
|
10
17
|
export {};
|
|
11
18
|
//# sourceMappingURL=shell-hang-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-hang-keys.d.ts","sourceRoot":"","sources":["../../src/ui/shell-hang-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,mBAAmB,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"shell-hang-keys.d.ts","sourceRoot":"","sources":["../../src/ui/shell-hang-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,OAAO,CAAC;IACzB,IAAI,EAAE,MAAM,mBAAmB,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,kBAAkB,GAAG,SAAS,CAAC;CACjD;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,gBAAgB,EACzB,OAAO,EAAE,mBAAmB,GAC3B,MAAM,IAAI,CAoEZ"}
|
package/dist/ui/shell-tasks.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export interface ShellTasksOptions {
|
|
|
8
8
|
requestRender: () => void;
|
|
9
9
|
rows: () => number;
|
|
10
10
|
keys?: KeybindingsManager;
|
|
11
|
-
id
|
|
11
|
+
id: string;
|
|
12
12
|
}
|
|
13
|
-
/** Lazy
|
|
13
|
+
/** Lazy single-task detail. Task selection belongs to the footer list. */
|
|
14
14
|
export declare class ShellTasksView implements Component {
|
|
15
15
|
#private;
|
|
16
16
|
readonly options: ShellTasksOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-tasks.d.ts","sourceRoot":"","sources":["../../src/ui/shell-tasks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAmE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAClJ,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIrF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,EAAE,
|
|
1
|
+
{"version":3,"file":"shell-tasks.d.ts","sourceRoot":"","sources":["../../src/ui/shell-tasks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAmE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAClJ,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIrF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD,0EAA0E;AAC1E,qBAAa,cAAe,YAAW,SAAS;;IAWlC,QAAQ,CAAC,OAAO,EAAE,iBAAiB;gBAA1B,OAAO,EAAE,iBAAiB;IA6C/C,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAsE/B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAyB/B,UAAU,IAAI,IAAI;IAClB,OAAO,IAAI,IAAI;CAOhB"}
|
package/dist/ui/shell-tasks.js
CHANGED
|
@@ -6,33 +6,25 @@ import {
|
|
|
6
6
|
padToWidth,
|
|
7
7
|
safeText,
|
|
8
8
|
wrapPlainText
|
|
9
|
-
} from "../chunks/chunk-
|
|
9
|
+
} from "../chunks/chunk-FK73YJKV.js";
|
|
10
10
|
|
|
11
11
|
// src/ui/shell-tasks.ts
|
|
12
12
|
import { stripVTControlCharacters } from "node:util";
|
|
13
13
|
import { getKeybindings, truncateToWidth, visibleWidth, wrapTextWithAnsi } from "@earendil-works/pi-tui";
|
|
14
|
-
var groupNames = ["Active", "Needs attention", "Finished"];
|
|
15
|
-
var taskGroup = (job) => job.finishedAt === void 0 ? 0 : job.status === "failed" || job.status === "timed_out" ? 1 : 2;
|
|
16
14
|
var elapsed = (job) => formatDuration((job.finishedAt ?? Date.now()) - job.startedAt) || "0s";
|
|
17
15
|
var outputLine = (line) => stripVTControlCharacters(line).replace(/\t/g, " ").replace(/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g, "");
|
|
18
16
|
var ShellTasksView = class {
|
|
19
17
|
constructor(options) {
|
|
20
18
|
this.options = options;
|
|
21
|
-
this.#id = options.id;
|
|
22
19
|
this.#refresh();
|
|
23
|
-
if (!this.#id && this.#jobs.length === 1) this.#id = this.#jobs[0].id;
|
|
24
|
-
this.#selected = this.#id ?? this.#selected;
|
|
25
20
|
this.#unsubscribe = options.jobs.subscribe((event) => {
|
|
21
|
+
if (event.job.id !== options.id) return;
|
|
26
22
|
this.#refresh();
|
|
27
|
-
|
|
23
|
+
void this.#read();
|
|
28
24
|
});
|
|
29
25
|
void this.#read();
|
|
30
26
|
}
|
|
31
|
-
#jobs = [];
|
|
32
|
-
#selected;
|
|
33
|
-
#listStart = 0;
|
|
34
27
|
#pageSize = 1;
|
|
35
|
-
#id;
|
|
36
28
|
#output = "";
|
|
37
29
|
#scroll = 0;
|
|
38
30
|
#stopArmed;
|
|
@@ -43,9 +35,8 @@ var ShellTasksView = class {
|
|
|
43
35
|
#unsubscribe;
|
|
44
36
|
#refresh() {
|
|
45
37
|
if (this.#closed) return;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const active = this.#jobs.some((job) => job.finishedAt === void 0);
|
|
38
|
+
const job = this.options.jobs.get(this.options.id)?.info();
|
|
39
|
+
const active = job !== void 0 && job.finishedAt === void 0;
|
|
49
40
|
if (active && !this.#timer) {
|
|
50
41
|
this.#timer = setInterval(() => this.options.requestRender(), 250);
|
|
51
42
|
this.#timer.unref?.();
|
|
@@ -56,13 +47,12 @@ var ShellTasksView = class {
|
|
|
56
47
|
this.options.requestRender();
|
|
57
48
|
}
|
|
58
49
|
async #read() {
|
|
59
|
-
|
|
60
|
-
if (!id || this.#closed) return;
|
|
50
|
+
if (this.#closed) return;
|
|
61
51
|
if (this.#reading) {
|
|
62
52
|
this.#readAgain = true;
|
|
63
53
|
return;
|
|
64
54
|
}
|
|
65
|
-
const job = this.options.jobs.get(id);
|
|
55
|
+
const job = this.options.jobs.get(this.options.id);
|
|
66
56
|
if (!job) {
|
|
67
57
|
this.#output = "Task no longer retained.";
|
|
68
58
|
return;
|
|
@@ -70,9 +60,9 @@ var ShellTasksView = class {
|
|
|
70
60
|
this.#reading = true;
|
|
71
61
|
try {
|
|
72
62
|
const output = await job.outputText();
|
|
73
|
-
if (!this.#closed
|
|
63
|
+
if (!this.#closed) this.#output = output;
|
|
74
64
|
} catch (error) {
|
|
75
|
-
if (!this.#closed
|
|
65
|
+
if (!this.#closed) this.#output = `Output unavailable: ${safeText(error instanceof Error ? error.message : error)}`;
|
|
76
66
|
} finally {
|
|
77
67
|
this.#reading = false;
|
|
78
68
|
if (!this.#closed) {
|
|
@@ -88,34 +78,13 @@ var ShellTasksView = class {
|
|
|
88
78
|
if (this.#closed) return;
|
|
89
79
|
const keys = this.options.keys ?? getKeybindings();
|
|
90
80
|
if (keys.matches(data, "tui.select.cancel")) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
this.options.done();
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
this.#id = void 0;
|
|
97
|
-
this.#stopArmed = void 0;
|
|
98
|
-
this.#refresh();
|
|
81
|
+
this.dispose();
|
|
82
|
+
this.options.done();
|
|
99
83
|
return;
|
|
100
84
|
}
|
|
101
|
-
if (
|
|
102
|
-
const index = Math.max(0, this.#jobs.findIndex((job) => job.id === this.#selected));
|
|
103
|
-
let next = index;
|
|
104
|
-
if (keys.matches(data, "tui.select.up")) next = index === 0 ? this.#jobs.length - 1 : index - 1;
|
|
105
|
-
else if (keys.matches(data, "tui.select.down")) next = index === this.#jobs.length - 1 ? 0 : index + 1;
|
|
106
|
-
else if (keys.matches(data, "tui.select.pageUp")) next = Math.max(0, index - this.#pageSize);
|
|
107
|
-
else if (keys.matches(data, "tui.select.pageDown")) next = Math.min(this.#jobs.length - 1, index + this.#pageSize);
|
|
108
|
-
else if (keys.matches(data, "tui.select.confirm") && this.#selected) {
|
|
109
|
-
this.#id = this.#selected;
|
|
110
|
-
this.#output = "";
|
|
111
|
-
this.#scroll = 0;
|
|
112
|
-
this.#stopArmed = void 0;
|
|
113
|
-
void this.#read();
|
|
114
|
-
}
|
|
115
|
-
this.#selected = this.#jobs[next]?.id;
|
|
116
|
-
} else if (data === "x") {
|
|
85
|
+
if (data === "x") {
|
|
117
86
|
const now = Date.now();
|
|
118
|
-
const job = this.options.jobs.get(this
|
|
87
|
+
const job = this.options.jobs.get(this.options.id);
|
|
119
88
|
if (job && !job.finished) {
|
|
120
89
|
if (this.#stopArmed !== void 0 && now - this.#stopArmed < 3e3) {
|
|
121
90
|
job.stop();
|
|
@@ -133,52 +102,16 @@ var ShellTasksView = class {
|
|
|
133
102
|
this.options.requestRender();
|
|
134
103
|
}
|
|
135
104
|
#status(job) {
|
|
136
|
-
const
|
|
105
|
+
const failed = job.status === "failed" || job.status === "timed_out";
|
|
137
106
|
const active = job.finishedAt === void 0;
|
|
138
|
-
const color = job.stopping ? "warning" : active ? "accent" :
|
|
139
|
-
const glyph = active ? spinnerFrame() :
|
|
140
|
-
return theme.fg(color, `${glyph} ${job.stopping ? "stopping" : job.status}`);
|
|
107
|
+
const color = job.stopping ? "warning" : active ? "accent" : failed ? "error" : job.status === "exited" ? "success" : "dim";
|
|
108
|
+
const glyph = active ? spinnerFrame() : failed ? "\u2717" : job.status === "exited" ? "\u2713" : "\u25A0";
|
|
109
|
+
return this.options.theme.fg(color, `${glyph} ${job.stopping ? "stopping" : job.status}`);
|
|
141
110
|
}
|
|
142
111
|
#section(label, width) {
|
|
143
112
|
const title = truncateToWidth(` ${label} `, width);
|
|
144
113
|
return this.options.theme.fg("borderMuted", title + "\u2500".repeat(Math.max(0, width - visibleWidth(title))));
|
|
145
114
|
}
|
|
146
|
-
#overview(width, height) {
|
|
147
|
-
const { theme } = this.options;
|
|
148
|
-
if (!this.#jobs.length) return [theme.fg("muted", "No background shell tasks."), theme.fg("dim", "Detached commands and monitors appear here.")].slice(0, height);
|
|
149
|
-
const selected = Math.max(0, this.#jobs.findIndex((job) => job.id === this.#selected));
|
|
150
|
-
const counts = groupNames.map((_, group) => this.#jobs.filter((job) => taskGroup(job) === group).length);
|
|
151
|
-
const compact = height < 4;
|
|
152
|
-
const rowSize = compact ? 1 : 2;
|
|
153
|
-
const window = (start) => {
|
|
154
|
-
const rows = [];
|
|
155
|
-
let previousGroup = -1, end = start;
|
|
156
|
-
for (let index = start; index < this.#jobs.length; index++) {
|
|
157
|
-
const job = this.#jobs[index];
|
|
158
|
-
const group = taskGroup(job);
|
|
159
|
-
const heading = !compact && group !== previousGroup;
|
|
160
|
-
if (rows.length + rowSize + Number(heading) > height) break;
|
|
161
|
-
if (heading) rows.push(this.#section(`${groupNames[group]} \xB7 ${counts[group]}`, width));
|
|
162
|
-
const chosen = job.id === this.#selected;
|
|
163
|
-
const title = safeText(job.description || job.command) || "Shell task";
|
|
164
|
-
const primary = `${chosen ? theme.fg("accent", "\u203A") : " "} ${this.#status(job)} ${theme.fg(chosen ? "accent" : "text", title)}`;
|
|
165
|
-
rows.push(chosen ? theme.bg("selectedBg", padToWidth(primary, width)) : truncateToWidth(primary, width));
|
|
166
|
-
if (!compact) {
|
|
167
|
-
const monitor = job.monitor ? ` \xB7 monitor:${job.monitor.delivery}` : "";
|
|
168
|
-
const exit = job.exitCode != null ? ` \xB7 exit ${job.exitCode}` : "";
|
|
169
|
-
rows.push(theme.fg("dim", ` ${job.id.slice(0, 8)} \xB7 ${job.tool} \xB7 ${elapsed(job)}${exit}${monitor}`));
|
|
170
|
-
}
|
|
171
|
-
previousGroup = group;
|
|
172
|
-
end = index + 1;
|
|
173
|
-
}
|
|
174
|
-
return { rows, end };
|
|
175
|
-
};
|
|
176
|
-
this.#listStart = Math.min(this.#listStart, selected);
|
|
177
|
-
let page = window(this.#listStart);
|
|
178
|
-
while (page.end <= selected && this.#listStart < selected) page = window(++this.#listStart);
|
|
179
|
-
this.#pageSize = Math.max(1, page.end - this.#listStart);
|
|
180
|
-
return page.rows;
|
|
181
|
-
}
|
|
182
115
|
#detail(job, width, height) {
|
|
183
116
|
const { theme } = this.options;
|
|
184
117
|
const meta = [
|
|
@@ -216,20 +149,20 @@ var ShellTasksView = class {
|
|
|
216
149
|
if (width <= 0) return [];
|
|
217
150
|
const { theme } = this.options;
|
|
218
151
|
const height = Math.max(1, Math.floor(this.options.rows() * 0.8));
|
|
219
|
-
const job = this
|
|
220
|
-
const
|
|
221
|
-
const
|
|
222
|
-
|
|
152
|
+
const job = this.options.jobs.get(this.options.id)?.info();
|
|
153
|
+
const active = job !== void 0 && job.finishedAt === void 0;
|
|
154
|
+
const armed = active && this.#stopArmed !== void 0 && Date.now() - this.#stopArmed < 3e3;
|
|
155
|
+
const hint = armed ? "Press x again to stop this task \xB7 esc close" : width < 70 ? `\u2191\u2193 \xB7 G tail${active ? " \xB7 x\xD72 stop" : ""} \xB7 esc` : `\u2191\u2193/pg scroll \xB7 G tail${active ? " \xB7 x twice stop" : ""} \xB7 esc close`;
|
|
156
|
+
const title = `Fabric \xB7 task ${this.options.id}`;
|
|
157
|
+
if (width < 8 || height < 7) return [title, hint].slice(0, height).map((row2) => truncateToWidth(row2, width));
|
|
223
158
|
const inner = width - 4;
|
|
224
159
|
const border = (text) => theme.fg("borderMuted", text);
|
|
225
160
|
const row = (text) => `${border("\u2502")} ${padToWidth(text, inner)} ${border("\u2502")}`;
|
|
226
|
-
const
|
|
227
|
-
const top = border("\u256D\u2500") + ` ${theme.fg("accent",
|
|
228
|
-
const
|
|
229
|
-
const index = this.#jobs.findIndex((task) => task.id === this.#selected);
|
|
230
|
-
const summary = this.#id ? job ? `${this.#status(job)} \xB7 Elapsed ${elapsed(job)}${job.exitCode !== void 0 ? ` \xB7 exit ${job.exitCode}` : ""}` : "Task no longer retained." : `${counts.join(" \xB7 ")}${index >= 0 ? ` \xB7 ${index + 1}/${this.#jobs.length}` : ""}`;
|
|
161
|
+
const heading = truncateToWidth(title, width - 6);
|
|
162
|
+
const top = border("\u256D\u2500") + ` ${theme.fg("accent", heading)} ` + border("\u2500".repeat(Math.max(0, width - visibleWidth(heading) - 6)) + "\u2500\u256E");
|
|
163
|
+
const summary = job ? `${this.#status(job)} \xB7 Elapsed ${elapsed(job)}${job.exitCode !== void 0 ? ` \xB7 exit ${job.exitCode}` : ""}` : "Task no longer retained.";
|
|
231
164
|
const bodyHeight = height - 6;
|
|
232
|
-
const body =
|
|
165
|
+
const body = job ? this.#detail(job, inner, bodyHeight) : ["Task no longer retained."];
|
|
233
166
|
while (body.length < bodyHeight) body.push("");
|
|
234
167
|
const separator = border(`\u251C${"\u2500".repeat(width - 2)}\u2524`);
|
|
235
168
|
return [top, row(summary), separator, ...body.map(row), separator, row(theme.fg(armed ? "warning" : "dim", hint)), border(`\u2570${"\u2500".repeat(width - 2)}\u256F`)];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ui/shell-tasks.ts"],
|
|
4
|
-
"sourcesContent": ["import { stripVTControlCharacters } from \"node:util\";\nimport type { Theme } from \"@earendil-works/pi-coding-agent\";\nimport { getKeybindings, truncateToWidth, visibleWidth, wrapTextWithAnsi, type Component, type KeybindingsManager } from \"@earendil-works/pi-tui\";\nimport type { FabricShellJobInfo, FabricShellJobStore } from \"../core/shell-jobs.js\";\nimport { formatDuration, padToWidth, safeText, wrapPlainText } from \"./format.js\";\nimport { spinnerFrame } from \"./spinner.js\";\n\nexport interface ShellTasksOptions {\n jobs: FabricShellJobStore;\n theme: Theme;\n done: () => void;\n requestRender: () => void;\n rows: () => number;\n keys?: KeybindingsManager;\n id?: string;\n}\n\nconst groupNames = [\"Active\", \"Needs attention\", \"Finished\"] as const;\nconst taskGroup = (job: FabricShellJobInfo): number => job.finishedAt === undefined ? 0\n : job.status === \"failed\" || job.status === \"timed_out\" ? 1 : 2;\nconst elapsed = (job: FabricShellJobInfo): string => formatDuration((job.finishedAt ?? Date.now()) - job.startedAt) || \"0s\";\nconst outputLine = (line: string): string => stripVTControlCharacters(line)\n .replace(/\\t/g, \" \").replace(/[\\u0000-\\u0008\\u000b-\\u001f\\u007f-\\u009f]/g, \"\");\n\n/** Lazy inspector; the controller owns lifetime, this view owns no Pi runtime. */\nexport class ShellTasksView implements Component {\n #jobs: FabricShellJobInfo[] = [];\n #selected: string | undefined;\n #listStart = 0;\n #pageSize = 1;\n #id: string | undefined;\n #output = \"\";\n #scroll = 0;\n #stopArmed: number | undefined;\n #reading = false;\n #readAgain = false;\n #closed = false;\n #timer: ReturnType<typeof setInterval> | undefined;\n #unsubscribe: () => void;\n\n constructor(readonly options: ShellTasksOptions) {\n this.#id = options.id;\n this.#refresh();\n if (!this.#id && this.#jobs.length === 1) this.#id = this.#jobs[0]!.id;\n this.#selected = this.#id ?? this.#selected;\n this.#unsubscribe = options.jobs.subscribe(event => {\n this.#refresh();\n if (event.job.id === this.#id) void this.#read();\n });\n void this.#read();\n }\n\n #refresh(): void {\n if (this.#closed) return;\n this.#jobs = this.options.jobs.list().filter(job => job.finishedAt === undefined || job.spilledAt !== undefined)\n .sort((a, b) => taskGroup(a) - taskGroup(b) || b.startedAt - a.startedAt);\n if (!this.#jobs.some(job => job.id === this.#selected)) this.#selected = this.#jobs[0]?.id;\n const active = this.#jobs.some(job => job.finishedAt === undefined);\n // Store events update metadata. Frames sample only the live in-memory tail, never disk logs.\n if (active && !this.#timer) {\n this.#timer = setInterval(() => this.options.requestRender(), 250);\n this.#timer.unref?.();\n } else if (!active && this.#timer) {\n clearInterval(this.#timer);\n this.#timer = undefined;\n }\n this.options.requestRender();\n }\n\n async #read(): Promise<void> {\n const id = this.#id;\n if (!id || this.#closed) return;\n if (this.#reading) { this.#readAgain = true; return; }\n const job = this.options.jobs.get(id);\n if (!job) { this.#output = \"Task no longer retained.\"; return; }\n this.#reading = true;\n try {\n const output = await job.outputText();\n if (!this.#closed && this.#id === id) this.#output = output;\n } catch (error) {\n if (!this.#closed && this.#id === id) this.#output = `Output unavailable: ${safeText(error instanceof Error ? error.message : error)}`;\n } finally {\n this.#reading = false;\n if (!this.#closed) {\n this.options.requestRender();\n if (this.#readAgain) { this.#readAgain = false; void this.#read(); }\n }\n }\n }\n\n handleInput(data: string): void {\n if (this.#closed) return;\n const keys = this.options.keys ?? getKeybindings();\n if (keys.matches(data, \"tui.select.cancel\")) {\n if (!this.#id) { this.dispose(); this.options.done(); return; }\n this.#id = undefined; this.#stopArmed = undefined; this.#refresh(); return;\n }\n if (!this.#id) {\n const index = Math.max(0, this.#jobs.findIndex(job => job.id === this.#selected));\n let next = index;\n if (keys.matches(data, \"tui.select.up\")) next = index === 0 ? this.#jobs.length - 1 : index - 1;\n else if (keys.matches(data, \"tui.select.down\")) next = index === this.#jobs.length - 1 ? 0 : index + 1;\n else if (keys.matches(data, \"tui.select.pageUp\")) next = Math.max(0, index - this.#pageSize);\n else if (keys.matches(data, \"tui.select.pageDown\")) next = Math.min(this.#jobs.length - 1, index + this.#pageSize);\n else if (keys.matches(data, \"tui.select.confirm\") && this.#selected) {\n this.#id = this.#selected; this.#output = \"\"; this.#scroll = 0; this.#stopArmed = undefined;\n void this.#read();\n }\n this.#selected = this.#jobs[next]?.id;\n } else if (data === \"x\") {\n const now = Date.now();\n const job = this.options.jobs.get(this.#id);\n if (job && !job.finished) {\n if (this.#stopArmed !== undefined && now - this.#stopArmed < 3000) { job.stop(); this.#stopArmed = undefined; }\n else this.#stopArmed = now;\n }\n } else {\n this.#stopArmed = undefined;\n if (keys.matches(data, \"tui.select.up\")) this.#scroll++;\n if (keys.matches(data, \"tui.select.down\")) this.#scroll = Math.max(0, this.#scroll - 1);\n if (keys.matches(data, \"tui.select.pageUp\")) this.#scroll += this.#pageSize;\n if (keys.matches(data, \"tui.select.pageDown\")) this.#scroll = Math.max(0, this.#scroll - this.#pageSize);\n if (data === \"G\") this.#scroll = 0;\n }\n this.options.requestRender();\n }\n\n #status(job: FabricShellJobInfo): string {\n const { theme } = this.options;\n const active = job.finishedAt === undefined;\n const color = job.stopping ? \"warning\" : active ? \"accent\" : taskGroup(job) === 1 ? \"error\" : job.status === \"exited\" ? \"success\" : \"dim\";\n const glyph = active ? spinnerFrame() : taskGroup(job) === 1 ? \"\u2717\" : job.status === \"exited\" ? \"\u2713\" : \"\u25A0\";\n return theme.fg(color, `${glyph} ${job.stopping ? \"stopping\" : job.status}`);\n }\n\n #section(label: string, width: number): string {\n const title = truncateToWidth(` ${label} `, width);\n return this.options.theme.fg(\"borderMuted\", title + \"\u2500\".repeat(Math.max(0, width - visibleWidth(title))));\n }\n\n #overview(width: number, height: number): string[] {\n const { theme } = this.options;\n if (!this.#jobs.length) return [theme.fg(\"muted\", \"No background shell tasks.\"), theme.fg(\"dim\", \"Detached commands and monitors appear here.\")].slice(0, height);\n const selected = Math.max(0, this.#jobs.findIndex(job => job.id === this.#selected));\n const counts = groupNames.map((_, group) => this.#jobs.filter(job => taskGroup(job) === group).length);\n const compact = height < 4;\n const rowSize = compact ? 1 : 2;\n const window = (start: number): { rows: string[]; end: number } => {\n const rows: string[] = [];\n let previousGroup = -1, end = start;\n for (let index = start; index < this.#jobs.length; index++) {\n const job = this.#jobs[index]!;\n const group = taskGroup(job);\n const heading = !compact && group !== previousGroup;\n if (rows.length + rowSize + Number(heading) > height) break;\n if (heading) rows.push(this.#section(`${groupNames[group]} \u00B7 ${counts[group]}`, width));\n const chosen = job.id === this.#selected;\n const title = safeText(job.description || job.command) || \"Shell task\";\n const primary = `${chosen ? theme.fg(\"accent\", \"\u203A\") : \" \"} ${this.#status(job)} ${theme.fg(chosen ? \"accent\" : \"text\", title)}`;\n rows.push(chosen ? theme.bg(\"selectedBg\", padToWidth(primary, width)) : truncateToWidth(primary, width));\n if (!compact) {\n const monitor = job.monitor ? ` \u00B7 monitor:${job.monitor.delivery}` : \"\";\n const exit = job.exitCode != null ? ` \u00B7 exit ${job.exitCode}` : \"\";\n rows.push(theme.fg(\"dim\", ` ${job.id.slice(0, 8)} \u00B7 ${job.tool} \u00B7 ${elapsed(job)}${exit}${monitor}`));\n }\n previousGroup = group; end = index + 1;\n }\n return { rows, end };\n };\n this.#listStart = Math.min(this.#listStart, selected);\n let page = window(this.#listStart);\n while (page.end <= selected && this.#listStart < selected) page = window(++this.#listStart);\n this.#pageSize = Math.max(1, page.end - this.#listStart);\n return page.rows;\n }\n\n #detail(job: FabricShellJobInfo, width: number, height: number): string[] {\n const { theme } = this.options;\n const meta = [\n theme.fg(\"accent\", safeText(job.description || job.command)),\n theme.fg(\"dim\", `${job.lastOutputAt !== undefined ? `last output ${formatDuration(Date.now() - job.lastOutputAt) || \"0s\"} ago` : \"no output yet\"}${job.pid ? ` \u00B7 pid ${job.pid}` : \"\"}`),\n theme.fg(\"muted\", `cwd: ${safeText(job.cwd ?? \"unknown\")}`),\n theme.fg(\"dim\", `Log: ${safeText(job.logPath ?? \"available after backgrounding\")}`),\n ];\n if (job.durable) meta.push(theme.fg(\"muted\", `Durable: jev-fabric ${job.durable.jobId ? `job ${safeText(job.durable.jobId)}` : \"job starting\"}${job.durable.adopted ? \" \u00B7 reattached\" : \"\"} \u00B7 survives Pi exit`));\n if (job.monitor) {\n meta.push(theme.fg(\"muted\", `Monitor: ${job.monitor.delivery === \"wake\" ? \"wake owning agent\" : \"UI only\"} \u00B7 deadline ${formatDuration(job.monitor.timeoutMs)} \u00B7 ${job.eventCount} events`));\n if (job.lastEvent) meta.push(theme.fg(\"dim\", `Latest event: ${safeText(job.lastEvent.lines.at(-1))}`));\n }\n const rows = meta.slice(0, Math.max(0, height - 6));\n if (height >= 5) {\n rows.push(this.#section(\"Command\", width));\n const commandSpace = Math.max(1, Math.min(3, height - rows.length - 4));\n const command = wrapPlainText(job.command.slice(0, 12000), width, commandSpace + 1);\n const clipped = command.length > commandSpace || job.command.length > 12000;\n rows.push(...command.slice(0, commandSpace).map(line => theme.fg(\"muted\", line)));\n if (clipped) rows[rows.length - 1] = theme.fg(\"dim\", truncateToWidth(\"\u2026 command clipped \u00B7 tasks.get for full text\", width));\n }\n const available = Math.max(1, height - rows.length - 1);\n // append() intentionally emits no store event for every output chunk.\n const text = job.finishedAt === undefined ? this.options.jobs.get(job.id)?.snapshotText(8000) ?? \"\" : this.#output;\n const output = text ? text.split(\"\\n\").flatMap(line => wrapTextWithAnsi(outputLine(line), width)) : [job.finishedAt === undefined ? \"Waiting for output\u2026\" : \"No output captured.\"];\n this.#scroll = Math.min(this.#scroll, Math.max(0, output.length - available));\n const end = output.length - this.#scroll;\n const start = Math.max(0, end - available);\n this.#pageSize = available;\n rows.push(this.#section(`Output \u00B7 ${this.#scroll ? `${start + 1}\u2013${end}/${output.length}` : \"tail\"} \u00B7 bounded`, width));\n rows.push(...output.slice(start, end).map(line => theme.fg(\"toolOutput\", line)));\n return rows.slice(0, height);\n }\n\n render(width: number): string[] {\n if (width <= 0) return [];\n const { theme } = this.options;\n const height = Math.max(1, Math.floor(this.options.rows() * 0.8));\n const job = this.#id ? this.options.jobs.get(this.#id)?.info() : undefined;\n const armed = job?.finishedAt === undefined && this.#stopArmed !== undefined && Date.now() - this.#stopArmed < 3000;\n const hint = !this.#id ? \"\u2191\u2193 select \u00B7 enter inspect \u00B7 esc close\"\n : armed ? \"Press x again to stop this task \u00B7 esc back\"\n : width < 70 ? `\u2191\u2193 \u00B7 G tail${job?.finishedAt === undefined ? \" \u00B7 x\u00D72 stop\" : \"\"} \u00B7 esc` : `\u2191\u2193/pg scroll \u00B7 G tail${job?.finishedAt === undefined ? \" \u00B7 x twice stop\" : \"\"} \u00B7 esc tasks`;\n if (width < 8 || height < 7) return [\"Fabric \u00B7 shell tasks\", hint].slice(0, height).map(row => truncateToWidth(row, width));\n const inner = width - 4;\n const border = (text: string) => theme.fg(\"borderMuted\", text);\n const row = (text: string) => `${border(\"\u2502\")} ${padToWidth(text, inner)} ${border(\"\u2502\")}`;\n const title = truncateToWidth(this.#id ? `Fabric \u00B7 task ${this.#id}` : \"Fabric \u00B7 shell tasks\", width - 6);\n const top = border(\"\u256D\u2500\") + ` ${theme.fg(\"accent\", title)} ` + border(\"\u2500\".repeat(Math.max(0, width - visibleWidth(title) - 6)) + \"\u2500\u256E\");\n const counts = groupNames.map((name, group) => `${this.#jobs.filter(task => taskGroup(task) === group).length} ${name.toLowerCase()}`);\n const index = this.#jobs.findIndex(task => task.id === this.#selected);\n const summary = this.#id ? job ? `${this.#status(job)} \u00B7 Elapsed ${elapsed(job)}${job.exitCode !== undefined ? ` \u00B7 exit ${job.exitCode}` : \"\"}` : \"Task no longer retained.\"\n : `${counts.join(\" \u00B7 \")}${index >= 0 ? ` \u00B7 ${index + 1}/${this.#jobs.length}` : \"\"}`;\n const bodyHeight = height - 6;\n const body = this.#id ? job ? this.#detail(job, inner, bodyHeight) : [\"Task no longer retained.\"] : this.#overview(inner, bodyHeight);\n while (body.length < bodyHeight) body.push(\"\");\n const separator = border(`\u251C${\"\u2500\".repeat(width - 2)}\u2524`);\n return [top, row(summary), separator, ...body.map(row), separator, row(theme.fg(armed ? \"warning\" : \"dim\", hint)), border(`\u2570${\"\u2500\".repeat(width - 2)}\u256F`)];\n }\n\n invalidate(): void { /* Theme and width are evaluated on every render. */ }\n dispose(): void {\n if (this.#closed) return;\n this.#closed = true;\n if (this.#timer) clearInterval(this.#timer);\n this.#timer = undefined;\n this.#unsubscribe();\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;AAAA,SAAS,gCAAgC;AAEzC,SAAS,gBAAgB,iBAAiB,cAAc,wBAAiE;AAezH,IAAM,
|
|
4
|
+
"sourcesContent": ["import { stripVTControlCharacters } from \"node:util\";\nimport type { Theme } from \"@earendil-works/pi-coding-agent\";\nimport { getKeybindings, truncateToWidth, visibleWidth, wrapTextWithAnsi, type Component, type KeybindingsManager } from \"@earendil-works/pi-tui\";\nimport type { FabricShellJobInfo, FabricShellJobStore } from \"../core/shell-jobs.js\";\nimport { formatDuration, padToWidth, safeText, wrapPlainText } from \"./format.js\";\nimport { spinnerFrame } from \"./spinner.js\";\n\nexport interface ShellTasksOptions {\n jobs: FabricShellJobStore;\n theme: Theme;\n done: () => void;\n requestRender: () => void;\n rows: () => number;\n keys?: KeybindingsManager;\n id: string;\n}\n\nconst elapsed = (job: FabricShellJobInfo): string => formatDuration((job.finishedAt ?? Date.now()) - job.startedAt) || \"0s\";\nconst outputLine = (line: string): string => stripVTControlCharacters(line)\n .replace(/\\t/g, \" \").replace(/[\\u0000-\\u0008\\u000b-\\u001f\\u007f-\\u009f]/g, \"\");\n\n/** Lazy single-task detail. Task selection belongs to the footer list. */\nexport class ShellTasksView implements Component {\n #pageSize = 1;\n #output = \"\";\n #scroll = 0;\n #stopArmed: number | undefined;\n #reading = false;\n #readAgain = false;\n #closed = false;\n #timer: ReturnType<typeof setInterval> | undefined;\n #unsubscribe: () => void;\n\n constructor(readonly options: ShellTasksOptions) {\n this.#refresh();\n this.#unsubscribe = options.jobs.subscribe(event => {\n if (event.job.id !== options.id) return;\n this.#refresh();\n void this.#read();\n });\n void this.#read();\n }\n\n #refresh(): void {\n if (this.#closed) return;\n const job = this.options.jobs.get(this.options.id)?.info();\n const active = job !== undefined && job.finishedAt === undefined;\n // Frames sample the selected task's live tail, never disk logs.\n if (active && !this.#timer) {\n this.#timer = setInterval(() => this.options.requestRender(), 250);\n this.#timer.unref?.();\n } else if (!active && this.#timer) {\n clearInterval(this.#timer);\n this.#timer = undefined;\n }\n this.options.requestRender();\n }\n\n async #read(): Promise<void> {\n if (this.#closed) return;\n if (this.#reading) { this.#readAgain = true; return; }\n const job = this.options.jobs.get(this.options.id);\n if (!job) { this.#output = \"Task no longer retained.\"; return; }\n this.#reading = true;\n try {\n const output = await job.outputText();\n if (!this.#closed) this.#output = output;\n } catch (error) {\n if (!this.#closed) this.#output = `Output unavailable: ${safeText(error instanceof Error ? error.message : error)}`;\n } finally {\n this.#reading = false;\n if (!this.#closed) {\n this.options.requestRender();\n if (this.#readAgain) { this.#readAgain = false; void this.#read(); }\n }\n }\n }\n\n handleInput(data: string): void {\n if (this.#closed) return;\n const keys = this.options.keys ?? getKeybindings();\n if (keys.matches(data, \"tui.select.cancel\")) { this.dispose(); this.options.done(); return; }\n if (data === \"x\") {\n const now = Date.now();\n const job = this.options.jobs.get(this.options.id);\n if (job && !job.finished) {\n if (this.#stopArmed !== undefined && now - this.#stopArmed < 3000) { job.stop(); this.#stopArmed = undefined; }\n else this.#stopArmed = now;\n }\n } else {\n this.#stopArmed = undefined;\n if (keys.matches(data, \"tui.select.up\")) this.#scroll++;\n if (keys.matches(data, \"tui.select.down\")) this.#scroll = Math.max(0, this.#scroll - 1);\n if (keys.matches(data, \"tui.select.pageUp\")) this.#scroll += this.#pageSize;\n if (keys.matches(data, \"tui.select.pageDown\")) this.#scroll = Math.max(0, this.#scroll - this.#pageSize);\n if (data === \"G\") this.#scroll = 0;\n }\n this.options.requestRender();\n }\n\n #status(job: FabricShellJobInfo): string {\n const failed = job.status === \"failed\" || job.status === \"timed_out\";\n const active = job.finishedAt === undefined;\n const color = job.stopping ? \"warning\" : active ? \"accent\" : failed ? \"error\" : job.status === \"exited\" ? \"success\" : \"dim\";\n const glyph = active ? spinnerFrame() : failed ? \"\u2717\" : job.status === \"exited\" ? \"\u2713\" : \"\u25A0\";\n return this.options.theme.fg(color, `${glyph} ${job.stopping ? \"stopping\" : job.status}`);\n }\n\n #section(label: string, width: number): string {\n const title = truncateToWidth(` ${label} `, width);\n return this.options.theme.fg(\"borderMuted\", title + \"\u2500\".repeat(Math.max(0, width - visibleWidth(title))));\n }\n\n #detail(job: FabricShellJobInfo, width: number, height: number): string[] {\n const { theme } = this.options;\n const meta = [\n theme.fg(\"accent\", safeText(job.description || job.command)),\n theme.fg(\"dim\", `${job.lastOutputAt !== undefined ? `last output ${formatDuration(Date.now() - job.lastOutputAt) || \"0s\"} ago` : \"no output yet\"}${job.pid ? ` \u00B7 pid ${job.pid}` : \"\"}`),\n theme.fg(\"muted\", `cwd: ${safeText(job.cwd ?? \"unknown\")}`),\n theme.fg(\"dim\", `Log: ${safeText(job.logPath ?? \"available after backgrounding\")}`),\n ];\n if (job.durable) meta.push(theme.fg(\"muted\", `Durable: jev-fabric ${job.durable.jobId ? `job ${safeText(job.durable.jobId)}` : \"job starting\"}${job.durable.adopted ? \" \u00B7 reattached\" : \"\"} \u00B7 survives Pi exit`));\n if (job.monitor) {\n meta.push(theme.fg(\"muted\", `Monitor: ${job.monitor.delivery === \"wake\" ? \"wake owning agent\" : \"UI only\"} \u00B7 deadline ${formatDuration(job.monitor.timeoutMs)} \u00B7 ${job.eventCount} events`));\n if (job.lastEvent) meta.push(theme.fg(\"dim\", `Latest event: ${safeText(job.lastEvent.lines.at(-1))}`));\n }\n const rows = meta.slice(0, Math.max(0, height - 6));\n if (height >= 5) {\n rows.push(this.#section(\"Command\", width));\n const commandSpace = Math.max(1, Math.min(3, height - rows.length - 4));\n const command = wrapPlainText(job.command.slice(0, 12000), width, commandSpace + 1);\n const clipped = command.length > commandSpace || job.command.length > 12000;\n rows.push(...command.slice(0, commandSpace).map(line => theme.fg(\"muted\", line)));\n if (clipped) rows[rows.length - 1] = theme.fg(\"dim\", truncateToWidth(\"\u2026 command clipped \u00B7 tasks.get for full text\", width));\n }\n const available = Math.max(1, height - rows.length - 1);\n // append() intentionally emits no store event for every output chunk.\n const text = job.finishedAt === undefined ? this.options.jobs.get(job.id)?.snapshotText(8000) ?? \"\" : this.#output;\n const output = text ? text.split(\"\\n\").flatMap(line => wrapTextWithAnsi(outputLine(line), width)) : [job.finishedAt === undefined ? \"Waiting for output\u2026\" : \"No output captured.\"];\n this.#scroll = Math.min(this.#scroll, Math.max(0, output.length - available));\n const end = output.length - this.#scroll;\n const start = Math.max(0, end - available);\n this.#pageSize = available;\n rows.push(this.#section(`Output \u00B7 ${this.#scroll ? `${start + 1}\u2013${end}/${output.length}` : \"tail\"} \u00B7 bounded`, width));\n rows.push(...output.slice(start, end).map(line => theme.fg(\"toolOutput\", line)));\n return rows.slice(0, height);\n }\n\n render(width: number): string[] {\n if (width <= 0) return [];\n const { theme } = this.options;\n const height = Math.max(1, Math.floor(this.options.rows() * 0.8));\n const job = this.options.jobs.get(this.options.id)?.info();\n const active = job !== undefined && job.finishedAt === undefined;\n const armed = active && this.#stopArmed !== undefined && Date.now() - this.#stopArmed < 3000;\n const hint = armed ? \"Press x again to stop this task \u00B7 esc close\"\n : width < 70 ? `\u2191\u2193 \u00B7 G tail${active ? \" \u00B7 x\u00D72 stop\" : \"\"} \u00B7 esc`\n : `\u2191\u2193/pg scroll \u00B7 G tail${active ? \" \u00B7 x twice stop\" : \"\"} \u00B7 esc close`;\n const title = `Fabric \u00B7 task ${this.options.id}`;\n if (width < 8 || height < 7) return [title, hint].slice(0, height).map(row => truncateToWidth(row, width));\n const inner = width - 4;\n const border = (text: string) => theme.fg(\"borderMuted\", text);\n const row = (text: string) => `${border(\"\u2502\")} ${padToWidth(text, inner)} ${border(\"\u2502\")}`;\n const heading = truncateToWidth(title, width - 6);\n const top = border(\"\u256D\u2500\") + ` ${theme.fg(\"accent\", heading)} ` + border(\"\u2500\".repeat(Math.max(0, width - visibleWidth(heading) - 6)) + \"\u2500\u256E\");\n const summary = job ? `${this.#status(job)} \u00B7 Elapsed ${elapsed(job)}${job.exitCode !== undefined ? ` \u00B7 exit ${job.exitCode}` : \"\"}` : \"Task no longer retained.\";\n const bodyHeight = height - 6;\n const body = job ? this.#detail(job, inner, bodyHeight) : [\"Task no longer retained.\"];\n while (body.length < bodyHeight) body.push(\"\");\n const separator = border(`\u251C${\"\u2500\".repeat(width - 2)}\u2524`);\n return [top, row(summary), separator, ...body.map(row), separator, row(theme.fg(armed ? \"warning\" : \"dim\", hint)), border(`\u2570${\"\u2500\".repeat(width - 2)}\u256F`)];\n }\n\n invalidate(): void { /* Theme and width are evaluated on every render. */ }\n dispose(): void {\n if (this.#closed) return;\n this.#closed = true;\n if (this.#timer) clearInterval(this.#timer);\n this.#timer = undefined;\n this.#unsubscribe();\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAAA,SAAS,gCAAgC;AAEzC,SAAS,gBAAgB,iBAAiB,cAAc,wBAAiE;AAezH,IAAM,UAAU,CAAC,QAAoC,gBAAgB,IAAI,cAAc,KAAK,IAAI,KAAK,IAAI,SAAS,KAAK;AACvH,IAAM,aAAa,CAAC,SAAyB,yBAAyB,IAAI,EACvE,QAAQ,OAAO,IAAI,EAAE,QAAQ,8CAA8C,EAAE;AAGzE,IAAM,iBAAN,MAA0C;AAAA,EAW/C,YAAqB,SAA4B;AAA5B;AACnB,SAAK,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K,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../src/ui/snapshot.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,kBAAkB,CAAC;AAIlE,OAAO,EAGL,KAAK,uBAAuB,EAG7B,MAAM,YAAY,CAAC;AAuDpB,oFAAoF;AACpF,qBAAa,4BAA4B;IACvC,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,QAAQ,CAAsC;IAEtD,GAAG,CAAC,MAAM,EAAE,OAAO,GAAG,uBAAuB,GAAG,SAAS;IAKzD,GAAG,CACD,MAAM,EAAE;QAAE,IAAI,EAAE,iBAAiB,EAAE,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/D,QAAQ,EAAE,uBAAuB,EACjC,iBAAiB,UAAQ,GACxB,IAAI;IAUP,KAAK,IAAI,IAAI;CAId;AAED,eAAO,MAAM,uBAAuB,GAClC,OAAO,WAAW,EAClB,QAAQ,SAAS,EAAE,EACnB,UAAU,gBAAgB,EAC1B,eAAe,iBAAiB,EAAE,EAClC,QAAQ,4BAA4B,EACpC,2BAAyB,KACxB,uBA8PF,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
/** Window and tab chrome clips titles far earlier than the transcript does. */
|
|
3
|
+
export declare const MAX_TERMINAL_TITLE_CHARS = 120;
|
|
4
|
+
/**
|
|
5
|
+
* A terminal title is written as one raw OSC string, so it cannot carry the
|
|
6
|
+
* transcript's styling: theme escapes would render as literal glyphs in the
|
|
7
|
+
* tab. `safeText` also keeps a declared display name from smuggling control
|
|
8
|
+
* characters into the terminal.
|
|
9
|
+
*/
|
|
10
|
+
export declare const terminalTitleText: (value: string | undefined) => string;
|
|
11
|
+
/** Session entry that carries the latest declared display title across resumes. */
|
|
12
|
+
export declare const TERMINAL_TITLE_ENTRY_TYPE = "pi-fabric-terminal-title";
|
|
13
|
+
type TitleEntryHost = Pick<ExtensionAPI, "appendEntry">;
|
|
14
|
+
/**
|
|
15
|
+
* Keeps the declared `fabric_exec` display title in the terminal chrome. The
|
|
16
|
+
* title is sticky by design: it holds until the next declared title, outlives
|
|
17
|
+
* the run that set it, and is adopted again when the session is resumed. Nested
|
|
18
|
+
* call detail never reaches the window, because the declared milestone is the
|
|
19
|
+
* one line a tab has room for.
|
|
20
|
+
*/
|
|
21
|
+
export declare class FabricTerminalTitle {
|
|
22
|
+
#private;
|
|
23
|
+
constructor(host: TitleEntryHost, enabled: () => boolean);
|
|
24
|
+
/** Adopt the title this session recorded, after Pi applies its own. */
|
|
25
|
+
resume(context: ExtensionContext): void;
|
|
26
|
+
/** Show the declared display title for a run and record it for resumes. */
|
|
27
|
+
show(context: ExtensionContext, title: string | undefined): void;
|
|
28
|
+
/** Put the sticky title back after Pi rewrites its own. */
|
|
29
|
+
reassert(context: ExtensionContext): void;
|
|
30
|
+
/** The title currently held, for callers that need to compare. */
|
|
31
|
+
current(): string | undefined;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Re-adopt the recorded title whenever Pi re-applies its own: on session start
|
|
35
|
+
* and branch switches, and again after a rename or a settled turn. Both are
|
|
36
|
+
* deferred one macrotask because Pi titles the window after the extension
|
|
37
|
+
* handlers for the same event have run.
|
|
38
|
+
*/
|
|
39
|
+
export declare const installTerminalTitle: (pi: ExtensionAPI, title: FabricTerminalTitle) => void;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=terminal-title.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal-title.d.ts","sourceRoot":"","sources":["../../src/ui/terminal-title.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGtF,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,MAI7D,CAAC;AAEF,mFAAmF;AACnF,eAAO,MAAM,yBAAyB,6BAA6B,CAAC;AAEpE,KAAK,cAAc,GAAG,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AAoBxD;;;;;;GAMG;AACH,qBAAa,mBAAmB;;gBAKlB,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,OAAO;IAKxD,uEAAuE;IACvE,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAQvC,2EAA2E;IAC3E,IAAI,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAahE,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAKzC,kEAAkE;IAClE,OAAO,IAAI,MAAM,GAAG,SAAS;CAa9B;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,IAAI,YAAY,EAAE,OAAO,mBAAmB,KAAG,IAkBnF,CAAC"}
|
package/dist/ui/types.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface FabricUiAgent {
|
|
|
20
20
|
model?: string;
|
|
21
21
|
thinking?: string;
|
|
22
22
|
currentTool?: string;
|
|
23
|
+
/** Latest declared fabric_exec display name. */
|
|
24
|
+
milestone?: string;
|
|
23
25
|
startedAt?: number;
|
|
24
26
|
updatedAt?: number;
|
|
25
27
|
finishedAt?: number;
|
|
@@ -67,6 +69,8 @@ export interface FabricUiStateEntry {
|
|
|
67
69
|
export interface FabricDashboardSnapshot {
|
|
68
70
|
shells?: import("../core/shell-jobs.js").FabricShellJobInfo[];
|
|
69
71
|
now: number;
|
|
72
|
+
/** This root session's peer label, such as `FAB-3`; it heads the widget. */
|
|
73
|
+
sessionLabel?: string;
|
|
70
74
|
widgetDismissedAt?: number;
|
|
71
75
|
runs: FabricActivityRun[];
|
|
72
76
|
main: FabricUiMain;
|
package/dist/ui/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ui/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EACV,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC1B,cAAc,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC;AAE1C,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,SA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AO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,OAAO,uBAAuB,EAAE,kBAAkB,EAAE,CAAC;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAC1B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACvC,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,cAAc,EAAE,oBAAoB,CAAC;IACrC,oEAAoE;IACpE,YAAY,EAAE,qBAAqB,EAAE,CAAC;IACtC,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,aAWzB,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,KAAG,OAAqC,CAAC;AAEtF,eAAO,MAAM,qBAAqB,GAAI,QAAQ,aAAa,EAAE,KAAG,aAAa,EAS/C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Shortcut that focuses the Fabric widget, besides ↓ in an empty editor. */
|
|
2
|
+
export declare const FABRIC_WIDGET_FOCUS_SHORTCUT = "ctrl+shift+e";
|
|
3
|
+
/** ↓ in an empty editor focuses the widget, which sits at the bottom of the screen. */
|
|
4
|
+
export declare const FABRIC_WIDGET_FOCUS_HINT = "\u2193 to manage";
|
|
5
|
+
//# sourceMappingURL=widget-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widget-keys.d.ts","sourceRoot":"","sources":["../../src/ui/widget-keys.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,uFAAuF;AACvF,eAAO,MAAM,wBAAwB,qBAAgB,CAAC"}
|
package/dist/ui/widget.d.ts
CHANGED
|
@@ -2,28 +2,45 @@ import type { Component, Focusable, TuiMouseEvent, TuiMouseEventResult } from "@
|
|
|
2
2
|
import type { Theme } from "@earendil-works/pi-coding-agent";
|
|
3
3
|
import type { FabricUiWidgetMode } from "../config.js";
|
|
4
4
|
import { FabricWidgetRetention } from "./retention.js";
|
|
5
|
-
import type { FabricAgentTranscript } from "./transcript.js";
|
|
6
5
|
import { type FabricDashboardSnapshot } from "./types.js";
|
|
7
|
-
/** A widget row that can be selected and
|
|
6
|
+
/** A widget row that can be selected and opened. */
|
|
8
7
|
export interface FabricWidgetRow {
|
|
9
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Agent id, actor id for an actor's worker row, the main session's id, a
|
|
10
|
+
* or the exact shell task id.
|
|
11
|
+
*/
|
|
10
12
|
id: string;
|
|
11
|
-
kind: "agent" | "actor";
|
|
13
|
+
kind: "main" | "agent" | "actor" | "shell";
|
|
12
14
|
name: string;
|
|
15
|
+
model?: string;
|
|
13
16
|
}
|
|
14
17
|
/** Optional interaction wiring; without it the widget stays a passive status box. */
|
|
15
18
|
export interface FabricWidgetInteraction {
|
|
16
|
-
/**
|
|
17
|
-
|
|
19
|
+
/** Open the participant's full conversation, where it can be read and steered. */
|
|
20
|
+
open?: (row: FabricWidgetRow) => void;
|
|
18
21
|
/**
|
|
19
22
|
* Return focus to the editor. `forward` is a key the widget does not use; the
|
|
20
23
|
* editor receives it, because Pi handles Ctrl+C and extension shortcuts there.
|
|
21
24
|
*/
|
|
22
25
|
release: (forward?: string) => void;
|
|
23
|
-
/**
|
|
24
|
-
hideThinking?: () => boolean;
|
|
25
|
-
/** Ask the host to redraw (selection and expansion change without a snapshot change). */
|
|
26
|
+
/** Ask the host to redraw (selection changes without a snapshot change). */
|
|
26
27
|
requestRender: () => void;
|
|
28
|
+
/** Called after each render, so the host can check where the widget sits. */
|
|
29
|
+
rendered?: () => void;
|
|
30
|
+
/** Space left after native UI and other extensions; zero temporarily hides the list. */
|
|
31
|
+
availableRows?: (width: number) => number | undefined;
|
|
32
|
+
/** The participant on screen; its row keeps the filled circle. Undefined means the main session. */
|
|
33
|
+
viewing?: () => string | undefined;
|
|
34
|
+
/** The main session's id, which makes the header a row to select, for windows Main is a place to return to. */
|
|
35
|
+
mainId?: string;
|
|
36
|
+
/** False drops the key hints, where the list is the window's only navigation. */
|
|
37
|
+
hints?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* With no row to select (no agent, actor worker, or shell task), the widget
|
|
40
|
+
* draws no lines while this is true: the host shows any session label
|
|
41
|
+
* elsewhere, on the editor border.
|
|
42
|
+
*/
|
|
43
|
+
collapseIdle?: () => boolean;
|
|
27
44
|
}
|
|
28
45
|
export declare const shouldShowFabricWidget: (snapshot: FabricDashboardSnapshot, mode: FabricUiWidgetMode, retention?: FabricWidgetRetention) => boolean;
|
|
29
46
|
/**
|
|
@@ -37,11 +54,10 @@ export declare const WIDGET_TERMINAL_ROW_SHARE = 0.5;
|
|
|
37
54
|
/** Effective row budget: the configured maximum, bounded by the live pane. */
|
|
38
55
|
export declare const widgetRowLimit: (maxRows: number, terminalRows?: number) => number;
|
|
39
56
|
/**
|
|
40
|
-
* Row budget while
|
|
41
|
-
*
|
|
42
|
-
* `maxRows`, but never more than that share.
|
|
57
|
+
* Row budget while the widget has focus. Focus is a request to see the list,
|
|
58
|
+
* so it may use its whole terminal share instead of `maxRows`, but never more.
|
|
43
59
|
*/
|
|
44
|
-
export declare const
|
|
60
|
+
export declare const widgetFocusedRowLimit: (maxRows: number, terminalRows?: number) => number;
|
|
45
61
|
export declare class FabricWidget implements Component, Focusable {
|
|
46
62
|
#private;
|
|
47
63
|
readonly theme: Theme;
|
|
@@ -53,10 +69,12 @@ export declare class FabricWidget implements Component, Focusable {
|
|
|
53
69
|
constructor(theme: Theme, snapshot: () => FabricDashboardSnapshot, maxRows: number, terminalRows?: (() => number | undefined) | undefined, retention?: FabricWidgetRetention, interaction?: FabricWidgetInteraction | undefined);
|
|
54
70
|
/** Set by the TUI when the widget gains or loses keyboard focus. */
|
|
55
71
|
focused: boolean;
|
|
56
|
-
/**
|
|
57
|
-
get expandedId(): string | undefined;
|
|
58
|
-
/** Select the first participant row; used when focus arrives from the keyboard. */
|
|
72
|
+
/** Select the row on screen, or the first row; used when focus arrives from the keyboard. */
|
|
59
73
|
selectDefault(): void;
|
|
74
|
+
/** Select the top row; ↓ from the editor lands on the row next to it. */
|
|
75
|
+
selectFirst(): void;
|
|
76
|
+
/** True while at least one row can take focus. */
|
|
77
|
+
hasRows(): boolean;
|
|
60
78
|
handleInput(data: string): void;
|
|
61
79
|
handleMouse(event: TuiMouseEvent): TuiMouseEventResult | undefined;
|
|
62
80
|
render(width: number): string[];
|
package/dist/ui/widget.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/ui/widget.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEvG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"widget.d.ts","sourceRoot":"","sources":["../../src/ui/widget.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEvG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,q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