@e4779/pi-fabric 0.92.17-fork.3
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/LICENSE +21 -0
- package/README.md +181 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/activity/store.d.ts +33 -0
- package/dist/activity/store.d.ts.map +1 -0
- package/dist/activity/types.d.ts +104 -0
- package/dist/activity/types.d.ts.map +1 -0
- package/dist/actors/binding-store.d.ts +17 -0
- package/dist/actors/binding-store.d.ts.map +1 -0
- package/dist/actors/context.d.ts +13 -0
- package/dist/actors/context.d.ts.map +1 -0
- package/dist/actors/delivery-policy.d.ts +8 -0
- package/dist/actors/delivery-policy.d.ts.map +1 -0
- package/dist/actors/directory.d.ts +47 -0
- package/dist/actors/directory.d.ts.map +1 -0
- package/dist/actors/global-registry.d.ts +47 -0
- package/dist/actors/global-registry.d.ts.map +1 -0
- package/dist/actors/host-event-observer.d.ts +5 -0
- package/dist/actors/host-event-observer.d.ts.map +1 -0
- package/dist/actors/host-event-payload.d.ts +14 -0
- package/dist/actors/host-event-payload.d.ts.map +1 -0
- package/dist/actors/log-store.d.ts +22 -0
- package/dist/actors/log-store.d.ts.map +1 -0
- package/dist/actors/manager.d.ts +175 -0
- package/dist/actors/manager.d.ts.map +1 -0
- package/dist/actors/mesh-monitor.d.ts +22 -0
- package/dist/actors/mesh-monitor.d.ts.map +1 -0
- package/dist/actors/predicate.d.ts +7 -0
- package/dist/actors/predicate.d.ts.map +1 -0
- package/dist/actors/registry-store.d.ts +15 -0
- package/dist/actors/registry-store.d.ts.map +1 -0
- package/dist/actors/types.d.ts +218 -0
- package/dist/actors/types.d.ts.map +1 -0
- package/dist/agents/bash-worktree-add.d.ts +24 -0
- package/dist/agents/bash-worktree-add.d.ts.map +1 -0
- package/dist/agents/budget-ledger.d.ts +88 -0
- package/dist/agents/budget-ledger.d.ts.map +1 -0
- package/dist/agents/claude-cli.d.ts +32 -0
- package/dist/agents/claude-cli.d.ts.map +1 -0
- package/dist/agents/claude-cli.js +17 -0
- package/dist/agents/claude-cli.js.map +7 -0
- package/dist/agents/clone-first-worktree.d.ts +17 -0
- package/dist/agents/clone-first-worktree.d.ts.map +1 -0
- package/dist/agents/compact-control.d.ts +32 -0
- package/dist/agents/compact-control.d.ts.map +1 -0
- package/dist/agents/compact-control.js +129 -0
- package/dist/agents/compact-control.js.map +7 -0
- package/dist/agents/constants.d.ts +9 -0
- package/dist/agents/constants.d.ts.map +1 -0
- package/dist/agents/cow-clone.d.ts +8 -0
- package/dist/agents/cow-clone.d.ts.map +1 -0
- package/dist/agents/handoff-completion.d.ts +4 -0
- package/dist/agents/handoff-completion.d.ts.map +1 -0
- package/dist/agents/handoff.d.ts +19 -0
- package/dist/agents/handoff.d.ts.map +1 -0
- package/dist/agents/lifecycle.d.ts +32 -0
- package/dist/agents/lifecycle.d.ts.map +1 -0
- package/dist/agents/manager.d.ts +75 -0
- package/dist/agents/manager.d.ts.map +1 -0
- package/dist/agents/pi-binary.d.ts +7 -0
- package/dist/agents/pi-binary.d.ts.map +1 -0
- package/dist/agents/request.d.ts +13 -0
- package/dist/agents/request.d.ts.map +1 -0
- package/dist/agents/result.d.ts +8 -0
- package/dist/agents/result.d.ts.map +1 -0
- package/dist/agents/result.js +9 -0
- package/dist/agents/result.js.map +7 -0
- package/dist/agents/rm.d.ts +15 -0
- package/dist/agents/rm.d.ts.map +1 -0
- package/dist/agents/semaphore.d.ts +7 -0
- package/dist/agents/semaphore.d.ts.map +1 -0
- package/dist/agents/service-provider.d.ts +9 -0
- package/dist/agents/service-provider.d.ts.map +1 -0
- package/dist/agents/service-schema.d.ts +6 -0
- package/dist/agents/service-schema.d.ts.map +1 -0
- package/dist/agents/service-types.d.ts +192 -0
- package/dist/agents/service-types.d.ts.map +1 -0
- package/dist/agents/service.d.ts +36 -0
- package/dist/agents/service.d.ts.map +1 -0
- package/dist/agents/session-export.d.ts +39 -0
- package/dist/agents/session-export.d.ts.map +1 -0
- package/dist/agents/session-pins.d.ts +24 -0
- package/dist/agents/session-pins.d.ts.map +1 -0
- package/dist/agents/thinking-transfer.d.ts +39 -0
- package/dist/agents/thinking-transfer.d.ts.map +1 -0
- package/dist/agents/transports/herdr-transport.d.ts +10 -0
- package/dist/agents/transports/herdr-transport.d.ts.map +1 -0
- package/dist/agents/transports/localterm-transport.d.ts +7 -0
- package/dist/agents/transports/localterm-transport.d.ts.map +1 -0
- package/dist/agents/transports/process-transport.d.ts +7 -0
- package/dist/agents/transports/process-transport.d.ts.map +1 -0
- package/dist/agents/transports/process-utils.d.ts +33 -0
- package/dist/agents/transports/process-utils.d.ts.map +1 -0
- package/dist/agents/transports/screen-transport.d.ts +7 -0
- package/dist/agents/transports/screen-transport.d.ts.map +1 -0
- package/dist/agents/transports/tmux-transport.d.ts +7 -0
- package/dist/agents/transports/tmux-transport.d.ts.map +1 -0
- package/dist/agents/types.d.ts +280 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/veda-cli.d.ts +22 -0
- package/dist/agents/veda-cli.d.ts.map +1 -0
- package/dist/agents/veda-cli.js +13 -0
- package/dist/agents/veda-cli.js.map +7 -0
- package/dist/agents/worktree-manager.d.ts +14 -0
- package/dist/agents/worktree-manager.d.ts.map +1 -0
- package/dist/agents/worktree-paths.d.ts +5 -0
- package/dist/agents/worktree-paths.d.ts.map +1 -0
- package/dist/agents.d.ts +8 -0
- package/dist/agents.d.ts.map +1 -0
- package/dist/agents.js +761 -0
- package/dist/agents.js.map +7 -0
- package/dist/async-settlement.d.ts +4 -0
- package/dist/async-settlement.d.ts.map +1 -0
- package/dist/audit/details.d.ts +86 -0
- package/dist/audit/details.d.ts.map +1 -0
- package/dist/audit/index.d.ts +4 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/projection.d.ts +20 -0
- package/dist/audit/projection.d.ts.map +1 -0
- package/dist/audit/trace.d.ts +99 -0
- package/dist/audit/trace.d.ts.map +1 -0
- package/dist/capture/catalog.d.ts +30 -0
- package/dist/capture/catalog.d.ts.map +1 -0
- package/dist/capture/interceptor.d.ts +20 -0
- package/dist/capture/interceptor.d.ts.map +1 -0
- package/dist/capture/wrapper.d.ts +15 -0
- package/dist/capture/wrapper.d.ts.map +1 -0
- package/dist/chunks/chunk-2DMJ7MEI.js +1984 -0
- package/dist/chunks/chunk-2DMJ7MEI.js.map +7 -0
- package/dist/chunks/chunk-2PZWDVJB.js +738 -0
- package/dist/chunks/chunk-2PZWDVJB.js.map +7 -0
- package/dist/chunks/chunk-2UQV52II.js +440 -0
- package/dist/chunks/chunk-2UQV52II.js.map +7 -0
- package/dist/chunks/chunk-32BNQ75J.js +1445 -0
- package/dist/chunks/chunk-32BNQ75J.js.map +7 -0
- package/dist/chunks/chunk-3H7SDWZI.js +467 -0
- package/dist/chunks/chunk-3H7SDWZI.js.map +7 -0
- package/dist/chunks/chunk-3MEHEH6B.js +41 -0
- package/dist/chunks/chunk-3MEHEH6B.js.map +7 -0
- package/dist/chunks/chunk-3QECYQGA.js +70 -0
- package/dist/chunks/chunk-3QECYQGA.js.map +7 -0
- package/dist/chunks/chunk-3WIGAX56.js +644 -0
- package/dist/chunks/chunk-3WIGAX56.js.map +7 -0
- package/dist/chunks/chunk-3YZUQESG.js +16 -0
- package/dist/chunks/chunk-3YZUQESG.js.map +7 -0
- package/dist/chunks/chunk-4JETKRFE.js +287 -0
- package/dist/chunks/chunk-4JETKRFE.js.map +7 -0
- package/dist/chunks/chunk-4SSMGBF4.js +93 -0
- package/dist/chunks/chunk-4SSMGBF4.js.map +7 -0
- package/dist/chunks/chunk-5SU3YXBS.js +15 -0
- package/dist/chunks/chunk-5SU3YXBS.js.map +7 -0
- package/dist/chunks/chunk-656HWVFU.js +409 -0
- package/dist/chunks/chunk-656HWVFU.js.map +7 -0
- package/dist/chunks/chunk-7A6NVHB5.js +1242 -0
- package/dist/chunks/chunk-7A6NVHB5.js.map +7 -0
- package/dist/chunks/chunk-7TB7NXSL.js +58 -0
- package/dist/chunks/chunk-7TB7NXSL.js.map +7 -0
- package/dist/chunks/chunk-AAHHYDTO.js +24 -0
- package/dist/chunks/chunk-AAHHYDTO.js.map +7 -0
- package/dist/chunks/chunk-ARLYAW2A.js +95 -0
- package/dist/chunks/chunk-ARLYAW2A.js.map +7 -0
- package/dist/chunks/chunk-AYBIR4YV.js +210 -0
- package/dist/chunks/chunk-AYBIR4YV.js.map +7 -0
- package/dist/chunks/chunk-BOTRGFQQ.js +87 -0
- package/dist/chunks/chunk-BOTRGFQQ.js.map +7 -0
- package/dist/chunks/chunk-CGPK5WHX.js +96 -0
- package/dist/chunks/chunk-CGPK5WHX.js.map +7 -0
- package/dist/chunks/chunk-CI56CW53.js +470 -0
- package/dist/chunks/chunk-CI56CW53.js.map +7 -0
- package/dist/chunks/chunk-CPSW2GW4.js +1466 -0
- package/dist/chunks/chunk-CPSW2GW4.js.map +7 -0
- package/dist/chunks/chunk-CQFP2RCP.js +64 -0
- package/dist/chunks/chunk-CQFP2RCP.js.map +7 -0
- package/dist/chunks/chunk-D5WKZONW.js +797 -0
- package/dist/chunks/chunk-D5WKZONW.js.map +7 -0
- package/dist/chunks/chunk-DLXPTBPL.js +151 -0
- package/dist/chunks/chunk-DLXPTBPL.js.map +7 -0
- package/dist/chunks/chunk-G4LADAYY.js +287 -0
- package/dist/chunks/chunk-G4LADAYY.js.map +7 -0
- package/dist/chunks/chunk-GXNR6NRU.js +447 -0
- package/dist/chunks/chunk-GXNR6NRU.js.map +7 -0
- package/dist/chunks/chunk-IGVDD2HT.js +10 -0
- package/dist/chunks/chunk-IGVDD2HT.js.map +7 -0
- package/dist/chunks/chunk-J2HV2URQ.js +1125 -0
- package/dist/chunks/chunk-J2HV2URQ.js.map +7 -0
- package/dist/chunks/chunk-KAD7UWT2.js +99 -0
- package/dist/chunks/chunk-KAD7UWT2.js.map +7 -0
- package/dist/chunks/chunk-KYXZJNV6.js +227 -0
- package/dist/chunks/chunk-KYXZJNV6.js.map +7 -0
- package/dist/chunks/chunk-LMAVZN7J.js +8 -0
- package/dist/chunks/chunk-LMAVZN7J.js.map +7 -0
- package/dist/chunks/chunk-M3S7XITB.js +110 -0
- package/dist/chunks/chunk-M3S7XITB.js.map +7 -0
- package/dist/chunks/chunk-MGDLRV2R.js +112 -0
- package/dist/chunks/chunk-MGDLRV2R.js.map +7 -0
- package/dist/chunks/chunk-MGWQOKBV.js +30 -0
- package/dist/chunks/chunk-MGWQOKBV.js.map +7 -0
- package/dist/chunks/chunk-N5GUXC6F.js +184 -0
- package/dist/chunks/chunk-N5GUXC6F.js.map +7 -0
- package/dist/chunks/chunk-NQOEHX62.js +215 -0
- package/dist/chunks/chunk-NQOEHX62.js.map +7 -0
- package/dist/chunks/chunk-OKOHRXGF.js +100 -0
- package/dist/chunks/chunk-OKOHRXGF.js.map +7 -0
- package/dist/chunks/chunk-OP2KTYQB.js +286 -0
- package/dist/chunks/chunk-OP2KTYQB.js.map +7 -0
- package/dist/chunks/chunk-OTCASLY2.js +52 -0
- package/dist/chunks/chunk-OTCASLY2.js.map +7 -0
- package/dist/chunks/chunk-PAN6C3JM.js +42 -0
- package/dist/chunks/chunk-PAN6C3JM.js.map +7 -0
- package/dist/chunks/chunk-PH7ZJ27F.js +6873 -0
- package/dist/chunks/chunk-PH7ZJ27F.js.map +7 -0
- package/dist/chunks/chunk-PM5I335G.js +225 -0
- package/dist/chunks/chunk-PM5I335G.js.map +7 -0
- package/dist/chunks/chunk-PSNXUZMY.js +218 -0
- package/dist/chunks/chunk-PSNXUZMY.js.map +7 -0
- package/dist/chunks/chunk-PXAICAUT.js +24 -0
- package/dist/chunks/chunk-PXAICAUT.js.map +7 -0
- package/dist/chunks/chunk-RERA6YWA.js +359 -0
- package/dist/chunks/chunk-RERA6YWA.js.map +7 -0
- package/dist/chunks/chunk-RNOPHITP.js +1720 -0
- package/dist/chunks/chunk-RNOPHITP.js.map +7 -0
- package/dist/chunks/chunk-RRGTKHXZ.js +931 -0
- package/dist/chunks/chunk-RRGTKHXZ.js.map +7 -0
- package/dist/chunks/chunk-SWB2OHYW.js +93 -0
- package/dist/chunks/chunk-SWB2OHYW.js.map +7 -0
- package/dist/chunks/chunk-T3A5GNCW.js +19 -0
- package/dist/chunks/chunk-T3A5GNCW.js.map +7 -0
- package/dist/chunks/chunk-TPLMVELH.js +118 -0
- package/dist/chunks/chunk-TPLMVELH.js.map +7 -0
- package/dist/chunks/chunk-TSRKCXNI.js +17 -0
- package/dist/chunks/chunk-TSRKCXNI.js.map +7 -0
- package/dist/chunks/chunk-U5FYOMG5.js +119 -0
- package/dist/chunks/chunk-U5FYOMG5.js.map +7 -0
- package/dist/chunks/chunk-U6CTHPZC.js +1924 -0
- package/dist/chunks/chunk-U6CTHPZC.js.map +7 -0
- package/dist/chunks/chunk-UDFDF7IY.js +1572 -0
- package/dist/chunks/chunk-UDFDF7IY.js.map +7 -0
- package/dist/chunks/chunk-UKMQK5VP.js +231 -0
- package/dist/chunks/chunk-UKMQK5VP.js.map +7 -0
- package/dist/chunks/chunk-UQ4LTUH4.js +2181 -0
- package/dist/chunks/chunk-UQ4LTUH4.js.map +7 -0
- package/dist/chunks/chunk-UTR3I23Z.js +65 -0
- package/dist/chunks/chunk-UTR3I23Z.js.map +7 -0
- package/dist/chunks/chunk-VPPIJRNZ.js +50 -0
- package/dist/chunks/chunk-VPPIJRNZ.js.map +7 -0
- package/dist/chunks/chunk-VRYEGVHR.js +195 -0
- package/dist/chunks/chunk-VRYEGVHR.js.map +7 -0
- package/dist/chunks/chunk-VRZNFNPB.js +4218 -0
- package/dist/chunks/chunk-VRZNFNPB.js.map +7 -0
- package/dist/chunks/chunk-VXZZJ44D.js +295 -0
- package/dist/chunks/chunk-VXZZJ44D.js.map +7 -0
- package/dist/chunks/chunk-W3FRE4VI.js +297 -0
- package/dist/chunks/chunk-W3FRE4VI.js.map +7 -0
- package/dist/chunks/chunk-WVH324VF.js +60 -0
- package/dist/chunks/chunk-WVH324VF.js.map +7 -0
- package/dist/chunks/chunk-X7G62ZGH.js +151 -0
- package/dist/chunks/chunk-X7G62ZGH.js.map +7 -0
- package/dist/chunks/chunk-XB3RJVT4.js +17 -0
- package/dist/chunks/chunk-XB3RJVT4.js.map +7 -0
- package/dist/chunks/chunk-XT4346N7.js +651 -0
- package/dist/chunks/chunk-XT4346N7.js.map +7 -0
- package/dist/chunks/chunk-Y7KNRAFL.js +1180 -0
- package/dist/chunks/chunk-Y7KNRAFL.js.map +7 -0
- package/dist/chunks/chunk-YK5AZ7CZ.js +692 -0
- package/dist/chunks/chunk-YK5AZ7CZ.js.map +7 -0
- package/dist/chunks/chunk-YU4O6SWQ.js +246 -0
- package/dist/chunks/chunk-YU4O6SWQ.js.map +7 -0
- package/dist/chunks/chunk-YU62DDKK.js +22 -0
- package/dist/chunks/chunk-YU62DDKK.js.map +7 -0
- package/dist/chunks/chunk-Z63R5GVN.js +121 -0
- package/dist/chunks/chunk-Z63R5GVN.js.map +7 -0
- package/dist/chunks/chunk-ZDNGXLEC.js +221 -0
- package/dist/chunks/chunk-ZDNGXLEC.js.map +7 -0
- package/dist/chunks/chunk-ZZ4LHQYJ.js +777 -0
- package/dist/chunks/chunk-ZZ4LHQYJ.js.map +7 -0
- package/dist/commands/fabric.d.ts +17 -0
- package/dist/commands/fabric.d.ts.map +1 -0
- package/dist/compaction/bounds.d.ts +23 -0
- package/dist/compaction/bounds.d.ts.map +1 -0
- package/dist/compaction/branch-details.d.ts +83 -0
- package/dist/compaction/branch-details.d.ts.map +1 -0
- package/dist/compaction/branch-summary.d.ts +9 -0
- package/dist/compaction/branch-summary.d.ts.map +1 -0
- package/dist/compaction/enrichers.d.ts +10 -0
- package/dist/compaction/enrichers.d.ts.map +1 -0
- package/dist/compaction/hook.d.ts +99 -0
- package/dist/compaction/hook.d.ts.map +1 -0
- package/dist/compaction/hook.js +22 -0
- package/dist/compaction/hook.js.map +7 -0
- package/dist/compaction/instructions.d.ts +38 -0
- package/dist/compaction/instructions.d.ts.map +1 -0
- package/dist/compaction/normalize.d.ts +83 -0
- package/dist/compaction/normalize.d.ts.map +1 -0
- package/dist/compaction/projections.d.ts +31 -0
- package/dist/compaction/projections.d.ts.map +1 -0
- package/dist/compaction/qa.d.ts +27 -0
- package/dist/compaction/qa.d.ts.map +1 -0
- package/dist/compaction/render.d.ts +10 -0
- package/dist/compaction/render.d.ts.map +1 -0
- package/dist/compaction/threshold.d.ts +5 -0
- package/dist/compaction/threshold.d.ts.map +1 -0
- package/dist/compaction/trace-events.d.ts +23 -0
- package/dist/compaction/trace-events.d.ts.map +1 -0
- package/dist/components/catalog.d.ts +25 -0
- package/dist/components/catalog.d.ts.map +1 -0
- package/dist/components/effect-policy.d.ts +21 -0
- package/dist/components/effect-policy.d.ts.map +1 -0
- package/dist/components/effect-scope.d.ts +31 -0
- package/dist/components/effect-scope.d.ts.map +1 -0
- package/dist/components/loader.d.ts +27 -0
- package/dist/components/loader.d.ts.map +1 -0
- package/dist/components/model-guidance.d.ts +48 -0
- package/dist/components/model-guidance.d.ts.map +1 -0
- package/dist/components/provider-component.d.ts +31 -0
- package/dist/components/provider-component.d.ts.map +1 -0
- package/dist/components/supervisor.d.ts +29 -0
- package/dist/components/supervisor.d.ts.map +1 -0
- package/dist/components/types.d.ts +140 -0
- package/dist/components/types.d.ts.map +1 -0
- package/dist/config-migrations.d.ts +11 -0
- package/dist/config-migrations.d.ts.map +1 -0
- package/dist/config.d.ts +282 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/core/action-arguments.d.ts +12 -0
- package/dist/core/action-arguments.d.ts.map +1 -0
- package/dist/core/action-registry.d.ts +170 -0
- package/dist/core/action-registry.d.ts.map +1 -0
- package/dist/core/action-registry.js +20 -0
- package/dist/core/action-registry.js.map +7 -0
- package/dist/core/action-repair.d.ts +15 -0
- package/dist/core/action-repair.d.ts.map +1 -0
- package/dist/core/action-result.d.ts +13 -0
- package/dist/core/action-result.d.ts.map +1 -0
- package/dist/core/agent-dir.d.ts +2 -0
- package/dist/core/agent-dir.d.ts.map +1 -0
- package/dist/core/approval-controller.d.ts +31 -0
- package/dist/core/approval-controller.d.ts.map +1 -0
- package/dist/core/atomic-write.d.ts +15 -0
- package/dist/core/atomic-write.d.ts.map +1 -0
- package/dist/core/auto-approval-classifier.d.ts +17 -0
- package/dist/core/auto-approval-classifier.d.ts.map +1 -0
- package/dist/core/call-preview.d.ts +8 -0
- package/dist/core/call-preview.d.ts.map +1 -0
- package/dist/core/child-tool-allowlist.d.ts +3 -0
- package/dist/core/child-tool-allowlist.d.ts.map +1 -0
- package/dist/core/compact-controller.d.ts +42 -0
- package/dist/core/compact-controller.d.ts.map +1 -0
- package/dist/core/core-override-guidance.d.ts +7 -0
- package/dist/core/core-override-guidance.d.ts.map +1 -0
- package/dist/core/damaged-file.d.ts +6 -0
- package/dist/core/damaged-file.d.ts.map +1 -0
- package/dist/core/direct-tool-approval.d.ts +19 -0
- package/dist/core/direct-tool-approval.d.ts.map +1 -0
- package/dist/core/effect-conflict.d.ts +3 -0
- package/dist/core/effect-conflict.d.ts.map +1 -0
- package/dist/core/file-lock.d.ts +12 -0
- package/dist/core/file-lock.d.ts.map +1 -0
- package/dist/core/kernel-skills.d.ts +3 -0
- package/dist/core/kernel-skills.d.ts.map +1 -0
- package/dist/core/model-resolution.d.ts +62 -0
- package/dist/core/model-resolution.d.ts.map +1 -0
- package/dist/core/model-usage.d.ts +8 -0
- package/dist/core/model-usage.d.ts.map +1 -0
- package/dist/core/pi-arguments.d.ts +3 -0
- package/dist/core/pi-arguments.d.ts.map +1 -0
- package/dist/core/pi-bash-error.d.ts +9 -0
- package/dist/core/pi-bash-error.d.ts.map +1 -0
- package/dist/core/pi-tools.d.ts +9 -0
- package/dist/core/pi-tools.d.ts.map +1 -0
- package/dist/core/provider-bindings.d.ts +47 -0
- package/dist/core/provider-bindings.d.ts.map +1 -0
- package/dist/core/proxy-contract.d.ts +18 -0
- package/dist/core/proxy-contract.d.ts.map +1 -0
- package/dist/core/session-context.d.ts +14 -0
- package/dist/core/session-context.d.ts.map +1 -0
- package/dist/core/shell-jobs.d.ts +99 -0
- package/dist/core/shell-jobs.d.ts.map +1 -0
- package/dist/core/skill-block.d.ts +10 -0
- package/dist/core/skill-block.d.ts.map +1 -0
- package/dist/core/skill-dir.d.ts +4 -0
- package/dist/core/skill-dir.d.ts.map +1 -0
- package/dist/core/skill-prompt.d.ts +3 -0
- package/dist/core/skill-prompt.d.ts.map +1 -0
- package/dist/core/skill-references.d.ts +7 -0
- package/dist/core/skill-references.d.ts.map +1 -0
- package/dist/core/stable-hash.d.ts +3 -0
- package/dist/core/stable-hash.d.ts.map +1 -0
- package/dist/core/system-guidance.d.ts +13 -0
- package/dist/core/system-guidance.d.ts.map +1 -0
- package/dist/core/token-math.d.ts +16 -0
- package/dist/core/token-math.d.ts.map +1 -0
- package/dist/core/tool-ownership.d.ts +47 -0
- package/dist/core/tool-ownership.d.ts.map +1 -0
- package/dist/core/tool-result-proxy.d.ts +18 -0
- package/dist/core/tool-result-proxy.d.ts.map +1 -0
- package/dist/entropy/active.d.ts +9 -0
- package/dist/entropy/active.d.ts.map +1 -0
- package/dist/entropy/compiled-store.d.ts +16 -0
- package/dist/entropy/compiled-store.d.ts.map +1 -0
- package/dist/entropy/compiled-surface.d.ts +57 -0
- package/dist/entropy/compiled-surface.d.ts.map +1 -0
- package/dist/entropy/compiler.d.ts +27 -0
- package/dist/entropy/compiler.d.ts.map +1 -0
- package/dist/entropy/corpus.d.ts +22 -0
- package/dist/entropy/corpus.d.ts.map +1 -0
- package/dist/entropy/fingerprint.d.ts +9 -0
- package/dist/entropy/fingerprint.d.ts.map +1 -0
- package/dist/entropy/index.d.ts +16 -0
- package/dist/entropy/index.d.ts.map +1 -0
- package/dist/entropy/index.js +194 -0
- package/dist/entropy/index.js.map +7 -0
- package/dist/entropy/meter.d.ts +10 -0
- package/dist/entropy/meter.d.ts.map +1 -0
- package/dist/entropy/normal-form.d.ts +40 -0
- package/dist/entropy/normal-form.d.ts.map +1 -0
- package/dist/entropy/passes.d.ts +13 -0
- package/dist/entropy/passes.d.ts.map +1 -0
- package/dist/entropy/pool-store.d.ts +15 -0
- package/dist/entropy/pool-store.d.ts.map +1 -0
- package/dist/entropy/pool.d.ts +41 -0
- package/dist/entropy/pool.d.ts.map +1 -0
- package/dist/entropy/presentation.d.ts +12 -0
- package/dist/entropy/presentation.d.ts.map +1 -0
- package/dist/entropy/sessions.d.ts +47 -0
- package/dist/entropy/sessions.d.ts.map +1 -0
- package/dist/entropy/surface.d.ts +30 -0
- package/dist/entropy/surface.d.ts.map +1 -0
- package/dist/entropy/trial.d.ts +38 -0
- package/dist/entropy/trial.d.ts.map +1 -0
- package/dist/entropy/types.d.ts +181 -0
- package/dist/entropy/types.d.ts.map +1 -0
- package/dist/execution-service.d.ts +66 -0
- package/dist/execution-service.d.ts.map +1 -0
- package/dist/fabric-exec-arguments.d.ts +7 -0
- package/dist/fabric-exec-arguments.d.ts.map +1 -0
- package/dist/fabric-exec-tool.d.ts +8 -0
- package/dist/fabric-exec-tool.d.ts.map +1 -0
- package/dist/fabric-runtime-state.d.ts +96 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -0
- package/dist/fabric-runtime-state.js +11928 -0
- package/dist/fabric-runtime-state.js.map +7 -0
- package/dist/fabric-state.d.ts +95 -0
- package/dist/fabric-state.d.ts.map +1 -0
- package/dist/failure-progress.d.ts +3 -0
- package/dist/failure-progress.d.ts.map +1 -0
- package/dist/host-compatibility.d.ts +5 -0
- package/dist/host-compatibility.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6094 -0
- package/dist/index.js.map +7 -0
- package/dist/jev/auth.d.ts +5 -0
- package/dist/jev/auth.d.ts.map +1 -0
- package/dist/jev/browser.d.ts +37 -0
- package/dist/jev/browser.d.ts.map +1 -0
- package/dist/jev/browser.js +13 -0
- package/dist/jev/browser.js.map +7 -0
- package/dist/jev/client.d.ts +29 -0
- package/dist/jev/client.d.ts.map +1 -0
- package/dist/jev/client.js +11 -0
- package/dist/jev/client.js.map +7 -0
- package/dist/jev/config.d.ts +17 -0
- package/dist/jev/config.d.ts.map +1 -0
- package/dist/jev/guest-types.d.ts +2 -0
- package/dist/jev/guest-types.d.ts.map +1 -0
- package/dist/jev/manager.d.ts +36 -0
- package/dist/jev/manager.d.ts.map +1 -0
- package/dist/jev/observation.d.ts +59 -0
- package/dist/jev/observation.d.ts.map +1 -0
- package/dist/jev/observation.js +20 -0
- package/dist/jev/observation.js.map +7 -0
- package/dist/jev/types.d.ts +142 -0
- package/dist/jev/types.d.ts.map +1 -0
- package/dist/jev/validation.d.ts +8 -0
- package/dist/jev/validation.d.ts.map +1 -0
- package/dist/jev.d.ts +9 -0
- package/dist/jev.d.ts.map +1 -0
- package/dist/jev.js +49 -0
- package/dist/jev.js.map +7 -0
- package/dist/lifecycle/broker.d.ts +30 -0
- package/dist/lifecycle/broker.d.ts.map +1 -0
- package/dist/lifecycle/delivery-scheduler.d.ts +30 -0
- package/dist/lifecycle/delivery-scheduler.d.ts.map +1 -0
- package/dist/lifecycle/types.d.ts +91 -0
- package/dist/lifecycle/types.d.ts.map +1 -0
- package/dist/log-tail.d.ts +11 -0
- package/dist/log-tail.d.ts.map +1 -0
- package/dist/main-agent.d.ts +70 -0
- package/dist/main-agent.d.ts.map +1 -0
- package/dist/managed-host.d.ts +22 -0
- package/dist/managed-host.d.ts.map +1 -0
- package/dist/mcp.d.ts +9 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +21 -0
- package/dist/mcp.js.map +7 -0
- package/dist/memory/client.d.ts +31 -0
- package/dist/memory/client.d.ts.map +1 -0
- package/dist/memory/context.d.ts +114 -0
- package/dist/memory/context.d.ts.map +1 -0
- package/dist/memory/digest.d.ts +48 -0
- package/dist/memory/digest.d.ts.map +1 -0
- package/dist/memory/digest.js +7 -0
- package/dist/memory/digest.js.map +7 -0
- package/dist/memory/discovery.d.ts +43 -0
- package/dist/memory/discovery.d.ts.map +1 -0
- package/dist/memory/discovery.js +25 -0
- package/dist/memory/discovery.js.map +7 -0
- package/dist/memory/expand-service.d.ts +4 -0
- package/dist/memory/expand-service.d.ts.map +1 -0
- package/dist/memory/host-source.d.ts +60 -0
- package/dist/memory/host-source.d.ts.map +1 -0
- package/dist/memory/index.d.ts +113 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/lineage.d.ts +25 -0
- package/dist/memory/lineage.d.ts.map +1 -0
- package/dist/memory/normalize.d.ts +188 -0
- package/dist/memory/normalize.d.ts.map +1 -0
- package/dist/memory/normalize.js +26 -0
- package/dist/memory/normalize.js.map +7 -0
- package/dist/memory/portable.d.ts +66 -0
- package/dist/memory/portable.d.ts.map +1 -0
- package/dist/memory/provider.d.ts +15 -0
- package/dist/memory/provider.d.ts.map +1 -0
- package/dist/memory/recall-service.d.ts +5 -0
- package/dist/memory/recall-service.d.ts.map +1 -0
- package/dist/memory/regex.d.ts +19 -0
- package/dist/memory/regex.d.ts.map +1 -0
- package/dist/memory/request-cache.d.ts +49 -0
- package/dist/memory/request-cache.d.ts.map +1 -0
- package/dist/memory/request-context.d.ts +57 -0
- package/dist/memory/request-context.d.ts.map +1 -0
- package/dist/memory/request-limits.d.ts +8 -0
- package/dist/memory/request-limits.d.ts.map +1 -0
- package/dist/memory/search.d.ts +98 -0
- package/dist/memory/search.d.ts.map +1 -0
- package/dist/memory/search.js +24 -0
- package/dist/memory/search.js.map +7 -0
- package/dist/memory/sessions-service.d.ts +3 -0
- package/dist/memory/sessions-service.d.ts.map +1 -0
- package/dist/memory/source-observation.d.ts +28 -0
- package/dist/memory/source-observation.d.ts.map +1 -0
- package/dist/memory/tokenize.d.ts +24 -0
- package/dist/memory/tokenize.d.ts.map +1 -0
- package/dist/memory.d.ts +8 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/memory.js +119 -0
- package/dist/memory.js.map +7 -0
- package/dist/mesh/store.d.ts +78 -0
- package/dist/mesh/store.d.ts.map +1 -0
- package/dist/output-budget.d.ts +12 -0
- package/dist/output-budget.d.ts.map +1 -0
- package/dist/prewalk/arm.d.ts +8 -0
- package/dist/prewalk/arm.d.ts.map +1 -0
- package/dist/prewalk/controller.d.ts +66 -0
- package/dist/prewalk/controller.d.ts.map +1 -0
- package/dist/prewalk/fs-drift.d.ts +19 -0
- package/dist/prewalk/fs-drift.d.ts.map +1 -0
- package/dist/prewalk/handoff.d.ts +46 -0
- package/dist/prewalk/handoff.d.ts.map +1 -0
- package/dist/protocol.d.ts +275 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +46 -0
- package/dist/protocol.js.map +7 -0
- package/dist/providers/agents-actions.d.ts +3 -0
- package/dist/providers/agents-actions.d.ts.map +1 -0
- package/dist/providers/agents-message-router.d.ts +29 -0
- package/dist/providers/agents-message-router.d.ts.map +1 -0
- package/dist/providers/agents-progress.d.ts +18 -0
- package/dist/providers/agents-progress.d.ts.map +1 -0
- package/dist/providers/agents-provider.d.ts +51 -0
- package/dist/providers/agents-provider.d.ts.map +1 -0
- package/dist/providers/arg-normalization.d.ts +15 -0
- package/dist/providers/arg-normalization.d.ts.map +1 -0
- package/dist/providers/captured-tools-provider.d.ts +23 -0
- package/dist/providers/captured-tools-provider.d.ts.map +1 -0
- package/dist/providers/compact-provider.d.ts +14 -0
- package/dist/providers/compact-provider.d.ts.map +1 -0
- package/dist/providers/components-provider.d.ts +12 -0
- package/dist/providers/components-provider.d.ts.map +1 -0
- package/dist/providers/jev-provider.d.ts +70 -0
- package/dist/providers/jev-provider.d.ts.map +1 -0
- package/dist/providers/jev-provider.js +28 -0
- package/dist/providers/jev-provider.js.map +7 -0
- package/dist/providers/mcp-descriptor-cache.d.ts +47 -0
- package/dist/providers/mcp-descriptor-cache.d.ts.map +1 -0
- package/dist/providers/mcp-provider.d.ts +47 -0
- package/dist/providers/mcp-provider.d.ts.map +1 -0
- package/dist/providers/memory-provider.d.ts +32 -0
- package/dist/providers/memory-provider.d.ts.map +1 -0
- package/dist/providers/memory-provider.js +23 -0
- package/dist/providers/memory-provider.js.map +7 -0
- package/dist/providers/mesh-provider.d.ts +17 -0
- package/dist/providers/mesh-provider.d.ts.map +1 -0
- package/dist/providers/pi-bash-cwd.d.ts +49 -0
- package/dist/providers/pi-bash-cwd.d.ts.map +1 -0
- package/dist/providers/pi-tools-provider.d.ts +25 -0
- package/dist/providers/pi-tools-provider.d.ts.map +1 -0
- package/dist/providers/schema-provider.d.ts +15 -0
- package/dist/providers/schema-provider.d.ts.map +1 -0
- package/dist/providers/state-provider.d.ts +16 -0
- package/dist/providers/state-provider.d.ts.map +1 -0
- package/dist/providers/write-diff-limits.d.ts +5 -0
- package/dist/providers/write-diff-limits.d.ts.map +1 -0
- package/dist/providers/write-preview.d.ts +3 -0
- package/dist/providers/write-preview.d.ts.map +1 -0
- package/dist/ref-names.d.ts +2 -0
- package/dist/ref-names.d.ts.map +1 -0
- package/dist/repairs/active.d.ts +7 -0
- package/dist/repairs/active.d.ts.map +1 -0
- package/dist/repairs/apply.d.ts +7 -0
- package/dist/repairs/apply.d.ts.map +1 -0
- package/dist/repairs/catalog-digest.d.ts +5 -0
- package/dist/repairs/catalog-digest.d.ts.map +1 -0
- package/dist/repairs/classify.d.ts +10 -0
- package/dist/repairs/classify.d.ts.map +1 -0
- package/dist/repairs/compiler.d.ts +33 -0
- package/dist/repairs/compiler.d.ts.map +1 -0
- package/dist/repairs/promote.d.ts +4 -0
- package/dist/repairs/promote.d.ts.map +1 -0
- package/dist/repairs/store.d.ts +10 -0
- package/dist/repairs/store.d.ts.map +1 -0
- package/dist/repairs/types.d.ts +49 -0
- package/dist/repairs/types.d.ts.map +1 -0
- package/dist/repeat-guard.d.ts +25 -0
- package/dist/repeat-guard.d.ts.map +1 -0
- package/dist/residency/actor-client.d.ts +16 -0
- package/dist/residency/actor-client.d.ts.map +1 -0
- package/dist/residency/actor-client.js +9 -0
- package/dist/residency/actor-client.js.map +7 -0
- package/dist/residency/client.d.ts +44 -0
- package/dist/residency/client.d.ts.map +1 -0
- package/dist/residency/host.d.ts +3 -0
- package/dist/residency/host.d.ts.map +1 -0
- package/dist/residency/host.js +32 -0
- package/dist/residency/host.js.map +7 -0
- package/dist/residency/launcher-owner.d.ts +7 -0
- package/dist/residency/launcher-owner.d.ts.map +1 -0
- package/dist/residency/launcher.d.ts +3 -0
- package/dist/residency/launcher.d.ts.map +1 -0
- package/dist/residency/launcher.js +154 -0
- package/dist/residency/launcher.js.map +7 -0
- package/dist/residency/pi-entry.d.ts +3 -0
- package/dist/residency/pi-entry.d.ts.map +1 -0
- package/dist/residency/pi-entry.js +48 -0
- package/dist/residency/pi-entry.js.map +7 -0
- package/dist/residency/protocol.d.ts +122 -0
- package/dist/residency/protocol.d.ts.map +1 -0
- package/dist/run-display.d.ts +3 -0
- package/dist/run-display.d.ts.map +1 -0
- package/dist/runtime/core-override-guest-types.d.ts +15 -0
- package/dist/runtime/core-override-guest-types.d.ts.map +1 -0
- package/dist/runtime/core-override-guest-types.js +9 -0
- package/dist/runtime/core-override-guest-types.js.map +7 -0
- package/dist/runtime/core-tool-properties.d.ts +6 -0
- package/dist/runtime/core-tool-properties.d.ts.map +1 -0
- package/dist/runtime/cpython-child-source.d.ts +2 -0
- package/dist/runtime/cpython-child-source.d.ts.map +1 -0
- package/dist/runtime/cpython-linux-sandbox.d.ts +2 -0
- package/dist/runtime/cpython-linux-sandbox.d.ts.map +1 -0
- package/dist/runtime/cpython-runtime.d.ts +9 -0
- package/dist/runtime/cpython-runtime.d.ts.map +1 -0
- package/dist/runtime/cpython-runtime.js +677 -0
- package/dist/runtime/cpython-runtime.js.map +7 -0
- package/dist/runtime/dynamic-guest-types.d.ts +3 -0
- package/dist/runtime/dynamic-guest-types.d.ts.map +1 -0
- package/dist/runtime/dynamic-guest-types.js +8 -0
- package/dist/runtime/dynamic-guest-types.js.map +7 -0
- package/dist/runtime/guest-code-repair.d.ts +2 -0
- package/dist/runtime/guest-code-repair.d.ts.map +1 -0
- package/dist/runtime/guest-stack-map.d.ts +11 -0
- package/dist/runtime/guest-stack-map.d.ts.map +1 -0
- package/dist/runtime/guest-types.d.ts +40 -0
- package/dist/runtime/guest-types.d.ts.map +1 -0
- package/dist/runtime/guest-types.js +13 -0
- package/dist/runtime/guest-types.js.map +7 -0
- package/dist/runtime/kernel.d.ts +30 -0
- package/dist/runtime/kernel.d.ts.map +1 -0
- package/dist/runtime/monty-bridge.d.ts +4 -0
- package/dist/runtime/monty-bridge.d.ts.map +1 -0
- package/dist/runtime/monty-runtime.d.ts +6 -0
- package/dist/runtime/monty-runtime.d.ts.map +1 -0
- package/dist/runtime/monty-runtime.js +485 -0
- package/dist/runtime/monty-runtime.js.map +7 -0
- package/dist/runtime/monty-source.d.ts +10 -0
- package/dist/runtime/monty-source.d.ts.map +1 -0
- package/dist/runtime/monty-values.d.ts +7 -0
- package/dist/runtime/monty-values.d.ts.map +1 -0
- package/dist/runtime/node-process-child-source.d.ts +2 -0
- package/dist/runtime/node-process-child-source.d.ts.map +1 -0
- package/dist/runtime/node-process-runtime.d.ts +10 -0
- package/dist/runtime/node-process-runtime.d.ts.map +1 -0
- package/dist/runtime/node-process-runtime.js +16 -0
- package/dist/runtime/node-process-runtime.js.map +7 -0
- package/dist/runtime/orchestration.d.ts +3 -0
- package/dist/runtime/orchestration.d.ts.map +1 -0
- package/dist/runtime/python-arguments.d.ts +2 -0
- package/dist/runtime/python-arguments.d.ts.map +1 -0
- package/dist/runtime/python-error-guidance.d.ts +6 -0
- package/dist/runtime/python-error-guidance.d.ts.map +1 -0
- package/dist/runtime/quickjs-runtime.d.ts +8 -0
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -0
- package/dist/runtime/quickjs-runtime.js +15 -0
- package/dist/runtime/quickjs-runtime.js.map +7 -0
- package/dist/runtime/type-checker.d.ts +18 -0
- package/dist/runtime/type-checker.d.ts.map +1 -0
- package/dist/runtime/type-checker.js +11 -0
- package/dist/runtime/type-checker.js.map +7 -0
- package/dist/runtime/typescript-kernel.d.ts +14 -0
- package/dist/runtime/typescript-kernel.d.ts.map +1 -0
- package/dist/runtime/typescript-kernel.js +53 -0
- package/dist/runtime/typescript-kernel.js.map +7 -0
- package/dist/runtime-paths.d.ts +7 -0
- package/dist/runtime-paths.d.ts.map +1 -0
- package/dist/runtime-state-builtins.d.ts +26 -0
- package/dist/runtime-state-builtins.d.ts.map +1 -0
- package/dist/runtime-state-speculation.d.ts +16 -0
- package/dist/runtime-state-speculation.d.ts.map +1 -0
- package/dist/schema/controller.d.ts +35 -0
- package/dist/schema/controller.d.ts.map +1 -0
- package/dist/schema/policy.d.ts +2 -0
- package/dist/schema/policy.d.ts.map +1 -0
- package/dist/schema/types.d.ts +86 -0
- package/dist/schema/types.d.ts.map +1 -0
- package/dist/schema/workspace.d.ts +19 -0
- package/dist/schema/workspace.d.ts.map +1 -0
- package/dist/speculation/eligibility.d.ts +22 -0
- package/dist/speculation/eligibility.d.ts.map +1 -0
- package/dist/speculation/freshness.d.ts +10 -0
- package/dist/speculation/freshness.d.ts.map +1 -0
- package/dist/speculation/partial-json.d.ts +9 -0
- package/dist/speculation/partial-json.d.ts.map +1 -0
- package/dist/speculation/python-scanner.d.ts +7 -0
- package/dist/speculation/python-scanner.d.ts.map +1 -0
- package/dist/speculation/python-scanner.js +166 -0
- package/dist/speculation/python-scanner.js.map +7 -0
- package/dist/speculation/scanner.d.ts +13 -0
- package/dist/speculation/scanner.d.ts.map +1 -0
- package/dist/speculation/scanner.js +182 -0
- package/dist/speculation/scanner.js.map +7 -0
- package/dist/speculation/store.d.ts +41 -0
- package/dist/speculation/store.d.ts.map +1 -0
- package/dist/speculation/stream-tap.d.ts +30 -0
- package/dist/speculation/stream-tap.d.ts.map +1 -0
- package/dist/speculation/types.d.ts +44 -0
- package/dist/speculation/types.d.ts.map +1 -0
- package/dist/state/complexity.d.ts +13 -0
- package/dist/state/complexity.d.ts.map +1 -0
- package/dist/state/evidence-runner.d.ts +17 -0
- package/dist/state/evidence-runner.d.ts.map +1 -0
- package/dist/state/store.d.ts +76 -0
- package/dist/state/store.d.ts.map +1 -0
- package/dist/state/types.d.ts +165 -0
- package/dist/state/types.d.ts.map +1 -0
- package/dist/storage/retention.d.ts +22 -0
- package/dist/storage/retention.d.ts.map +1 -0
- package/dist/thinking.d.ts +19 -0
- package/dist/thinking.d.ts.map +1 -0
- package/dist/topology/control-plane.d.ts +58 -0
- package/dist/topology/control-plane.d.ts.map +1 -0
- package/dist/topology/participant-directory.d.ts +33 -0
- package/dist/topology/participant-directory.d.ts.map +1 -0
- package/dist/topology/peer-settle.d.ts +51 -0
- package/dist/topology/peer-settle.d.ts.map +1 -0
- package/dist/topology/records.d.ts +6 -0
- package/dist/topology/records.d.ts.map +1 -0
- package/dist/topology/types.d.ts +89 -0
- package/dist/topology/types.d.ts.map +1 -0
- package/dist/type-error-guidance.d.ts +3 -0
- package/dist/type-error-guidance.d.ts.map +1 -0
- package/dist/ui/arc-group.d.ts +17 -0
- package/dist/ui/arc-group.d.ts.map +1 -0
- package/dist/ui/border-status-editor.d.ts +22 -0
- package/dist/ui/border-status-editor.d.ts.map +1 -0
- package/dist/ui/code-preview-shell.d.ts +11 -0
- package/dist/ui/code-preview-shell.d.ts.map +1 -0
- package/dist/ui/code-preview.d.ts +53 -0
- package/dist/ui/code-preview.d.ts.map +1 -0
- package/dist/ui/controller.d.ts +20 -0
- package/dist/ui/controller.d.ts.map +1 -0
- package/dist/ui/conversation-chrome.d.ts +16 -0
- package/dist/ui/conversation-chrome.d.ts.map +1 -0
- package/dist/ui/conversation-chrome.js +11 -0
- package/dist/ui/conversation-chrome.js.map +7 -0
- package/dist/ui/conversation-commands.d.ts +12 -0
- package/dist/ui/conversation-commands.d.ts.map +1 -0
- package/dist/ui/conversation-history.d.ts +6 -0
- package/dist/ui/conversation-history.d.ts.map +1 -0
- package/dist/ui/conversation-host.d.ts +7 -0
- package/dist/ui/conversation-host.d.ts.map +1 -0
- package/dist/ui/conversation-host.js +9 -0
- package/dist/ui/conversation-host.js.map +7 -0
- package/dist/ui/conversation-native-reader-checkpoint.d.ts +8 -0
- package/dist/ui/conversation-native-reader-checkpoint.d.ts.map +1 -0
- package/dist/ui/conversation-native-reader-replay.d.ts +10 -0
- package/dist/ui/conversation-native-reader-replay.d.ts.map +1 -0
- package/dist/ui/conversation-native-reader.d.ts +110 -0
- package/dist/ui/conversation-native-reader.d.ts.map +1 -0
- package/dist/ui/conversation-native-reader.js +1050 -0
- package/dist/ui/conversation-native-reader.js.map +7 -0
- package/dist/ui/conversation-queue-store.d.ts +14 -0
- package/dist/ui/conversation-queue-store.d.ts.map +1 -0
- package/dist/ui/conversation-queue.d.ts +244 -0
- package/dist/ui/conversation-queue.d.ts.map +1 -0
- package/dist/ui/conversation-render.d.ts +104 -0
- package/dist/ui/conversation-render.d.ts.map +1 -0
- package/dist/ui/conversation-selection.d.ts +18 -0
- package/dist/ui/conversation-selection.d.ts.map +1 -0
- package/dist/ui/conversation-shortcut.d.ts +3 -0
- package/dist/ui/conversation-shortcut.d.ts.map +1 -0
- package/dist/ui/conversation-targets.d.ts +7 -0
- package/dist/ui/conversation-targets.d.ts.map +1 -0
- package/dist/ui/conversation-targets.js +12 -0
- package/dist/ui/conversation-targets.js.map +7 -0
- package/dist/ui/conversation-transcript.d.ts +25 -0
- package/dist/ui/conversation-transcript.d.ts.map +1 -0
- package/dist/ui/conversation.d.ts +219 -0
- package/dist/ui/conversation.d.ts.map +1 -0
- package/dist/ui/conversation.js +2861 -0
- package/dist/ui/conversation.js.map +7 -0
- package/dist/ui/core-tool-render.d.ts +20 -0
- package/dist/ui/core-tool-render.d.ts.map +1 -0
- package/dist/ui/dashboard-detail.d.ts +68 -0
- package/dist/ui/dashboard-detail.d.ts.map +1 -0
- package/dist/ui/dashboard-fabric-graph.d.ts +50 -0
- package/dist/ui/dashboard-fabric-graph.d.ts.map +1 -0
- package/dist/ui/dashboard-graph-controller.d.ts +52 -0
- package/dist/ui/dashboard-graph-controller.d.ts.map +1 -0
- package/dist/ui/dashboard-modal-controller.d.ts +36 -0
- package/dist/ui/dashboard-modal-controller.d.ts.map +1 -0
- package/dist/ui/dashboard-model.d.ts +111 -0
- package/dist/ui/dashboard-model.d.ts.map +1 -0
- package/dist/ui/dashboard-presentation.d.ts +6 -0
- package/dist/ui/dashboard-presentation.d.ts.map +1 -0
- package/dist/ui/dashboard.d.ts +156 -0
- package/dist/ui/dashboard.d.ts.map +1 -0
- package/dist/ui/dashboard.js +4622 -0
- package/dist/ui/dashboard.js.map +7 -0
- package/dist/ui/diff-background.d.ts +12 -0
- package/dist/ui/diff-background.d.ts.map +1 -0
- package/dist/ui/dynamic-border.d.ts +8 -0
- package/dist/ui/dynamic-border.d.ts.map +1 -0
- package/dist/ui/escape-halt.d.ts +11 -0
- package/dist/ui/escape-halt.d.ts.map +1 -0
- package/dist/ui/fabric-actor-delivery-selector.d.ts +17 -0
- package/dist/ui/fabric-actor-delivery-selector.d.ts.map +1 -0
- package/dist/ui/fabric-actor-tool-selector.d.ts +22 -0
- package/dist/ui/fabric-actor-tool-selector.d.ts.map +1 -0
- package/dist/ui/fabric-code-parser.d.ts +9 -0
- package/dist/ui/fabric-code-parser.d.ts.map +1 -0
- package/dist/ui/fabric-host-event-selector.d.ts +29 -0
- package/dist/ui/fabric-host-event-selector.d.ts.map +1 -0
- package/dist/ui/fabric-model-selector.d.ts +64 -0
- package/dist/ui/fabric-model-selector.d.ts.map +1 -0
- package/dist/ui/fabric-render.d.ts +113 -0
- package/dist/ui/fabric-render.d.ts.map +1 -0
- package/dist/ui/fabric-thinking-selector.d.ts +26 -0
- package/dist/ui/fabric-thinking-selector.d.ts.map +1 -0
- package/dist/ui/fabric-title-hint.d.ts +3 -0
- package/dist/ui/fabric-title-hint.d.ts.map +1 -0
- package/dist/ui/format.d.ts +9 -0
- package/dist/ui/format.d.ts.map +1 -0
- package/dist/ui/handoff-completion.d.ts +3 -0
- package/dist/ui/handoff-completion.d.ts.map +1 -0
- package/dist/ui/highlight.d.ts +69 -0
- package/dist/ui/highlight.d.ts.map +1 -0
- package/dist/ui/model-picker.d.ts +46 -0
- package/dist/ui/model-picker.d.ts.map +1 -0
- package/dist/ui/model-picker.js +17 -0
- package/dist/ui/model-picker.js.map +7 -0
- package/dist/ui/preview-lines.d.ts +16 -0
- package/dist/ui/preview-lines.d.ts.map +1 -0
- package/dist/ui/row-balance.d.ts +29 -0
- package/dist/ui/row-balance.d.ts.map +1 -0
- package/dist/ui/settings-component.d.ts +26 -0
- package/dist/ui/settings-component.d.ts.map +1 -0
- package/dist/ui/settings-rpc.d.ts +15 -0
- package/dist/ui/settings-rpc.d.ts.map +1 -0
- package/dist/ui/settings-section-context.d.ts +18 -0
- package/dist/ui/settings-section-context.d.ts.map +1 -0
- package/dist/ui/settings-sections-agents.d.ts +5 -0
- package/dist/ui/settings-sections-agents.d.ts.map +1 -0
- package/dist/ui/settings-sections-execution.d.ts +8 -0
- package/dist/ui/settings-sections-execution.d.ts.map +1 -0
- package/dist/ui/settings-sections-lifecycle.d.ts +6 -0
- package/dist/ui/settings-sections-lifecycle.d.ts.map +1 -0
- package/dist/ui/settings-sections-presentation.d.ts +6 -0
- package/dist/ui/settings-sections-presentation.d.ts.map +1 -0
- package/dist/ui/settings-sections.d.ts +12 -0
- package/dist/ui/settings-sections.d.ts.map +1 -0
- package/dist/ui/settings-submenus.d.ts +74 -0
- package/dist/ui/settings-submenus.d.ts.map +1 -0
- package/dist/ui/settings-values.d.ts +63 -0
- package/dist/ui/settings-values.d.ts.map +1 -0
- package/dist/ui/settings.d.ts +21 -0
- package/dist/ui/settings.d.ts.map +1 -0
- package/dist/ui/settings.js +1985 -0
- package/dist/ui/settings.js.map +7 -0
- package/dist/ui/shell-hang-keys.d.ts +11 -0
- package/dist/ui/shell-hang-keys.d.ts.map +1 -0
- package/dist/ui/shiki-language.d.ts +7 -0
- package/dist/ui/shiki-language.d.ts.map +1 -0
- package/dist/ui/shiki-theme.d.ts +7 -0
- package/dist/ui/shiki-theme.d.ts.map +1 -0
- package/dist/ui/snapshot.d.ts +17 -0
- package/dist/ui/snapshot.d.ts.map +1 -0
- package/dist/ui/spinner.d.ts +6 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/state-file-preview.d.ts +13 -0
- package/dist/ui/state-file-preview.d.ts.map +1 -0
- package/dist/ui/structured.d.ts +9 -0
- package/dist/ui/structured.d.ts.map +1 -0
- package/dist/ui/tool-call-timing.d.ts +2 -0
- package/dist/ui/tool-call-timing.d.ts.map +1 -0
- package/dist/ui/tool-display.d.ts +8 -0
- package/dist/ui/tool-display.d.ts.map +1 -0
- package/dist/ui/topology.d.ts +162 -0
- package/dist/ui/topology.d.ts.map +1 -0
- package/dist/ui/transcript-parser.d.ts +18 -0
- package/dist/ui/transcript-parser.d.ts.map +1 -0
- package/dist/ui/transcript-reader.d.ts +10 -0
- package/dist/ui/transcript-reader.d.ts.map +1 -0
- package/dist/ui/transcript-sanitization.d.ts +14 -0
- package/dist/ui/transcript-sanitization.d.ts.map +1 -0
- package/dist/ui/transcript.d.ts +52 -0
- package/dist/ui/transcript.d.ts.map +1 -0
- package/dist/ui/types.d.ts +84 -0
- package/dist/ui/types.d.ts.map +1 -0
- package/dist/ui/widget.d.ts +16 -0
- package/dist/ui/widget.d.ts.map +1 -0
- package/dist/ui/word-diff/alignment.d.ts +6 -0
- package/dist/ui/word-diff/alignment.d.ts.map +1 -0
- package/dist/ui/word-diff/change-block.d.ts +18 -0
- package/dist/ui/word-diff/change-block.d.ts.map +1 -0
- package/dist/ui/word-diff/changed-line.d.ts +14 -0
- package/dist/ui/word-diff/changed-line.d.ts.map +1 -0
- package/dist/ui/word-diff/emphasis.d.ts +9 -0
- package/dist/ui/word-diff/emphasis.d.ts.map +1 -0
- package/dist/ui/word-diff/line-emphasis.d.ts +7 -0
- package/dist/ui/word-diff/line-emphasis.d.ts.map +1 -0
- package/dist/ui/word-diff/line-matching.d.ts +10 -0
- package/dist/ui/word-diff/line-matching.d.ts.map +1 -0
- package/dist/ui/word-diff/line-similarity.d.ts +16 -0
- package/dist/ui/word-diff/line-similarity.d.ts.map +1 -0
- package/dist/ui/word-diff/normalize.d.ts +3 -0
- package/dist/ui/word-diff/normalize.d.ts.map +1 -0
- package/dist/ui/word-diff/parse.d.ts +17 -0
- package/dist/ui/word-diff/parse.d.ts.map +1 -0
- package/dist/ui/word-diff/range-refinement.d.ts +5 -0
- package/dist/ui/word-diff/range-refinement.d.ts.map +1 -0
- package/dist/ui/word-diff/ranges.d.ts +11 -0
- package/dist/ui/word-diff/ranges.d.ts.map +1 -0
- package/dist/ui/word-diff/smart-filter.d.ts +3 -0
- package/dist/ui/word-diff/smart-filter.d.ts.map +1 -0
- package/dist/ui/word-diff/sparse-line-matching.d.ts +25 -0
- package/dist/ui/word-diff/sparse-line-matching.d.ts.map +1 -0
- package/dist/ui/word-diff/text-boundaries.d.ts +11 -0
- package/dist/ui/word-diff/text-boundaries.d.ts.map +1 -0
- package/dist/ui/word-diff/token-alignment.d.ts +9 -0
- package/dist/ui/word-diff/token-alignment.d.ts.map +1 -0
- package/dist/ui/word-diff/token-text-refinement.d.ts +4 -0
- package/dist/ui/word-diff/token-text-refinement.d.ts.map +1 -0
- package/dist/ui/word-diff/tokens.d.ts +16 -0
- package/dist/ui/word-diff/tokens.d.ts.map +1 -0
- package/dist/ui/word-diff/types.d.ts +10 -0
- package/dist/ui/word-diff/types.d.ts.map +1 -0
- package/dist/util.d.ts +3 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/worker/model-control.d.ts +14 -0
- package/dist/worker/model-control.d.ts.map +1 -0
- package/dist/worker/model-control.js +118 -0
- package/dist/worker/model-control.js.map +7 -0
- package/dist/worker/options.d.ts +3 -0
- package/dist/worker/options.d.ts.map +1 -0
- package/dist/worker/options.js +156 -0
- package/dist/worker/options.js.map +7 -0
- package/dist/worker/run-record.d.ts +22 -0
- package/dist/worker/run-record.d.ts.map +1 -0
- package/dist/worker/run-record.js +124 -0
- package/dist/worker/run-record.js.map +7 -0
- package/dist/worker/session-export.d.ts +45 -0
- package/dist/worker/session-export.d.ts.map +1 -0
- package/dist/worker/session-export.js +91 -0
- package/dist/worker/session-export.js.map +7 -0
- package/dist/worker.d.ts +3 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +1074 -0
- package/dist/worker.js.map +7 -0
- package/docs/agents.md +618 -0
- package/docs/architecture.md +141 -0
- package/docs/audit-trace.md +116 -0
- package/docs/certification.md +166 -0
- package/docs/compaction.md +345 -0
- package/docs/component-calculus.md +191 -0
- package/docs/components.md +330 -0
- package/docs/configuration.md +529 -0
- package/docs/entropy.md +214 -0
- package/docs/interface.md +210 -0
- package/docs/jev.md +289 -0
- package/docs/kernels.md +186 -0
- package/docs/memory-recall.md +664 -0
- package/docs/programmatic-compaction.md +205 -0
- package/docs/provider-component-calculus.md +378 -0
- package/docs/providers.md +163 -0
- package/docs/repairs.md +90 -0
- package/docs/residency-runtime.md +82 -0
- package/docs/schema-enforcement.md +166 -0
- package/docs/skills.md +50 -0
- package/docs/speculation.md +171 -0
- package/docs/state-layer.md +197 -0
- package/package.json +135 -0
- package/skillsets/python/fabric-advisor/SKILL.md +29 -0
- package/skillsets/python/fabric-ambient/SKILL.md +44 -0
- package/skillsets/python/fabric-ambient/references/setup.md +67 -0
- package/skillsets/python/fabric-council/SKILL.md +54 -0
- package/skillsets/python/fabric-exec/SKILL.md +74 -0
- package/skillsets/python/fabric-exec/references/agents.md +65 -0
- package/skillsets/python/fabric-exec/references/mcp.md +23 -0
- package/skillsets/python/fabric-exec/references/mesh.md +27 -0
- package/skillsets/python/fabric-fusion/SKILL.md +112 -0
- package/skillsets/python/fabric-guide/SKILL.md +29 -0
- package/skillsets/python/fabric-jev/SKILL.md +162 -0
- package/skillsets/python/fabric-rlm/SKILL.md +120 -0
- package/skillsets/python/fabric-schema/SKILL.md +55 -0
- package/skillsets/python/fabric-spec/SKILL.md +42 -0
- package/skillsets/python/fabric-supervisor/SKILL.md +37 -0
- package/skillsets/python/fabric-swarm/SKILL.md +40 -0
- package/skillsets/python/fabric-workflow/SKILL.md +62 -0
- package/skillsets/typescript/fabric-advisor/SKILL.md +29 -0
- package/skillsets/typescript/fabric-ambient/SKILL.md +44 -0
- package/skillsets/typescript/fabric-ambient/references/setup.md +90 -0
- package/skillsets/typescript/fabric-council/SKILL.md +94 -0
- package/skillsets/typescript/fabric-exec/SKILL.md +142 -0
- package/skillsets/typescript/fabric-exec/references/agents.md +218 -0
- package/skillsets/typescript/fabric-exec/references/mcp.md +49 -0
- package/skillsets/typescript/fabric-exec/references/mesh.md +51 -0
- package/skillsets/typescript/fabric-fusion/SKILL.md +332 -0
- package/skillsets/typescript/fabric-guide/SKILL.md +29 -0
- package/skillsets/typescript/fabric-jev/SKILL.md +159 -0
- package/skillsets/typescript/fabric-rlm/SKILL.md +284 -0
- package/skillsets/typescript/fabric-schema/SKILL.md +121 -0
- package/skillsets/typescript/fabric-spec/SKILL.md +42 -0
- package/skillsets/typescript/fabric-supervisor/SKILL.md +37 -0
- package/skillsets/typescript/fabric-swarm/SKILL.md +80 -0
- package/skillsets/typescript/fabric-workflow/SKILL.md +133 -0
|
@@ -0,0 +1,777 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveShikiTheme
|
|
3
|
+
} from "./chunk-OKOHRXGF.js";
|
|
4
|
+
|
|
5
|
+
// src/ui/highlight.ts
|
|
6
|
+
import { readFileSync, statSync } from "node:fs";
|
|
7
|
+
import { basename, extname } from "node:path";
|
|
8
|
+
import { bundledLanguages } from "shiki/langs";
|
|
9
|
+
import { bundledThemesInfo } from "shiki/themes";
|
|
10
|
+
|
|
11
|
+
// src/ui/shiki-theme.ts
|
|
12
|
+
var THEME_IMPORTS = {
|
|
13
|
+
"andromeeda": () => import("@shikijs/themes/andromeeda"),
|
|
14
|
+
"aurora-x": () => import("@shikijs/themes/aurora-x"),
|
|
15
|
+
"ayu-dark": () => import("@shikijs/themes/ayu-dark"),
|
|
16
|
+
"ayu-light": () => import("@shikijs/themes/ayu-light"),
|
|
17
|
+
"ayu-mirage": () => import("@shikijs/themes/ayu-mirage"),
|
|
18
|
+
"catppuccin-frappe": () => import("@shikijs/themes/catppuccin-frappe"),
|
|
19
|
+
"catppuccin-latte": () => import("@shikijs/themes/catppuccin-latte"),
|
|
20
|
+
"catppuccin-macchiato": () => import("@shikijs/themes/catppuccin-macchiato"),
|
|
21
|
+
"catppuccin-mocha": () => import("@shikijs/themes/catppuccin-mocha"),
|
|
22
|
+
"dark-plus": () => import("@shikijs/themes/dark-plus"),
|
|
23
|
+
"dracula": () => import("@shikijs/themes/dracula"),
|
|
24
|
+
"dracula-soft": () => import("@shikijs/themes/dracula-soft"),
|
|
25
|
+
"everforest-dark": () => import("@shikijs/themes/everforest-dark"),
|
|
26
|
+
"everforest-light": () => import("@shikijs/themes/everforest-light"),
|
|
27
|
+
"github-dark": () => import("@shikijs/themes/github-dark"),
|
|
28
|
+
"github-dark-default": () => import("@shikijs/themes/github-dark-default"),
|
|
29
|
+
"github-dark-dimmed": () => import("@shikijs/themes/github-dark-dimmed"),
|
|
30
|
+
"github-dark-high-contrast": () => import("@shikijs/themes/github-dark-high-contrast"),
|
|
31
|
+
"github-light": () => import("@shikijs/themes/github-light"),
|
|
32
|
+
"github-light-default": () => import("@shikijs/themes/github-light-default"),
|
|
33
|
+
"github-light-high-contrast": () => import("@shikijs/themes/github-light-high-contrast"),
|
|
34
|
+
"gruvbox-dark-hard": () => import("@shikijs/themes/gruvbox-dark-hard"),
|
|
35
|
+
"gruvbox-dark-medium": () => import("@shikijs/themes/gruvbox-dark-medium"),
|
|
36
|
+
"gruvbox-dark-soft": () => import("@shikijs/themes/gruvbox-dark-soft"),
|
|
37
|
+
"gruvbox-light-hard": () => import("@shikijs/themes/gruvbox-light-hard"),
|
|
38
|
+
"gruvbox-light-medium": () => import("@shikijs/themes/gruvbox-light-medium"),
|
|
39
|
+
"gruvbox-light-soft": () => import("@shikijs/themes/gruvbox-light-soft"),
|
|
40
|
+
"horizon": () => import("@shikijs/themes/horizon"),
|
|
41
|
+
"horizon-bright": () => import("@shikijs/themes/horizon-bright"),
|
|
42
|
+
"houston": () => import("@shikijs/themes/houston"),
|
|
43
|
+
"kanagawa-dragon": () => import("@shikijs/themes/kanagawa-dragon"),
|
|
44
|
+
"kanagawa-lotus": () => import("@shikijs/themes/kanagawa-lotus"),
|
|
45
|
+
"kanagawa-wave": () => import("@shikijs/themes/kanagawa-wave"),
|
|
46
|
+
"laserwave": () => import("@shikijs/themes/laserwave"),
|
|
47
|
+
"light-plus": () => import("@shikijs/themes/light-plus"),
|
|
48
|
+
"material-theme": () => import("@shikijs/themes/material-theme"),
|
|
49
|
+
"material-theme-darker": () => import("@shikijs/themes/material-theme-darker"),
|
|
50
|
+
"material-theme-lighter": () => import("@shikijs/themes/material-theme-lighter"),
|
|
51
|
+
"material-theme-ocean": () => import("@shikijs/themes/material-theme-ocean"),
|
|
52
|
+
"material-theme-palenight": () => import("@shikijs/themes/material-theme-palenight"),
|
|
53
|
+
"min-dark": () => import("@shikijs/themes/min-dark"),
|
|
54
|
+
"min-light": () => import("@shikijs/themes/min-light"),
|
|
55
|
+
"monokai": () => import("@shikijs/themes/monokai"),
|
|
56
|
+
"night-owl": () => import("@shikijs/themes/night-owl"),
|
|
57
|
+
"night-owl-light": () => import("@shikijs/themes/night-owl-light"),
|
|
58
|
+
"nord": () => import("@shikijs/themes/nord"),
|
|
59
|
+
"one-dark-pro": () => import("@shikijs/themes/one-dark-pro"),
|
|
60
|
+
"one-light": () => import("@shikijs/themes/one-light"),
|
|
61
|
+
"plastic": () => import("@shikijs/themes/plastic"),
|
|
62
|
+
"poimandres": () => import("@shikijs/themes/poimandres"),
|
|
63
|
+
"red": () => import("@shikijs/themes/red"),
|
|
64
|
+
"rose-pine": () => import("@shikijs/themes/rose-pine"),
|
|
65
|
+
"rose-pine-dawn": () => import("@shikijs/themes/rose-pine-dawn"),
|
|
66
|
+
"rose-pine-moon": () => import("@shikijs/themes/rose-pine-moon"),
|
|
67
|
+
"slack-dark": () => import("@shikijs/themes/slack-dark"),
|
|
68
|
+
"slack-ochin": () => import("@shikijs/themes/slack-ochin"),
|
|
69
|
+
"snazzy-light": () => import("@shikijs/themes/snazzy-light"),
|
|
70
|
+
"solarized-dark": () => import("@shikijs/themes/solarized-dark"),
|
|
71
|
+
"solarized-light": () => import("@shikijs/themes/solarized-light"),
|
|
72
|
+
"synthwave-84": () => import("@shikijs/themes/synthwave-84"),
|
|
73
|
+
"tokyo-night": () => import("@shikijs/themes/tokyo-night"),
|
|
74
|
+
"vesper": () => import("@shikijs/themes/vesper"),
|
|
75
|
+
"vitesse-black": () => import("@shikijs/themes/vitesse-black"),
|
|
76
|
+
"vitesse-dark": () => import("@shikijs/themes/vitesse-dark"),
|
|
77
|
+
"vitesse-light": () => import("@shikijs/themes/vitesse-light")
|
|
78
|
+
};
|
|
79
|
+
async function resolveShikiThemeObject(themeId) {
|
|
80
|
+
const loader = THEME_IMPORTS[themeId];
|
|
81
|
+
if (!loader) return void 0;
|
|
82
|
+
const mod = await loader();
|
|
83
|
+
return mod.default;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// src/ui/shiki-language.ts
|
|
87
|
+
var LANGUAGE_IMPORTS = {
|
|
88
|
+
bash: () => import("@shikijs/langs/shellscript"),
|
|
89
|
+
typescript: () => import("@shikijs/langs/typescript"),
|
|
90
|
+
tsx: () => import("@shikijs/langs/tsx"),
|
|
91
|
+
javascript: () => import("@shikijs/langs/javascript"),
|
|
92
|
+
jsx: () => import("@shikijs/langs/jsx"),
|
|
93
|
+
json: () => import("@shikijs/langs/json"),
|
|
94
|
+
markdown: () => import("@shikijs/langs/markdown"),
|
|
95
|
+
yaml: () => import("@shikijs/langs/yaml"),
|
|
96
|
+
toml: () => import("@shikijs/langs/toml"),
|
|
97
|
+
css: () => import("@shikijs/langs/css")
|
|
98
|
+
};
|
|
99
|
+
async function resolveShikiLanguageObjects(languageIds) {
|
|
100
|
+
const modules = await Promise.all(
|
|
101
|
+
languageIds.map(async (languageId) => {
|
|
102
|
+
const loader = LANGUAGE_IMPORTS[languageId];
|
|
103
|
+
if (!loader) throw new Error(`Unsupported preloaded Shiki language: ${languageId}`);
|
|
104
|
+
return loader();
|
|
105
|
+
})
|
|
106
|
+
);
|
|
107
|
+
return modules.flatMap((module) => module.default);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// src/ui/highlight.ts
|
|
111
|
+
var configuredMaxHighlightChars = Number.parseInt(
|
|
112
|
+
process.env.CODE_PREVIEW_MAX_HIGHLIGHT_CHARS ?? "",
|
|
113
|
+
10
|
|
114
|
+
);
|
|
115
|
+
var MAX_HIGHLIGHT_CHARS = Number.isFinite(configuredMaxHighlightChars) && configuredMaxHighlightChars > 0 ? configuredMaxHighlightChars : 8e4;
|
|
116
|
+
var configuredFileHighlightMaxSourceChars = Number.parseInt(
|
|
117
|
+
process.env.CODE_PREVIEW_FILE_HIGHLIGHT_MAX_CHARS ?? "",
|
|
118
|
+
10
|
|
119
|
+
);
|
|
120
|
+
var FILE_HIGHLIGHT_MAX_SOURCE_CHARS = Number.isFinite(configuredFileHighlightMaxSourceChars) && configuredFileHighlightMaxSourceChars > 0 ? configuredFileHighlightMaxSourceChars : 2e5;
|
|
121
|
+
var FILE_HIGHLIGHT_TICK_LINE_BUDGET = 96;
|
|
122
|
+
var FILE_HIGHLIGHT_TICK_CHAR_BUDGET = 16e3;
|
|
123
|
+
var FILE_HIGHLIGHT_ENTRY_LIMIT = 24;
|
|
124
|
+
var FILE_HIGHLIGHT_CHAR_LIMIT = 4e6;
|
|
125
|
+
var CACHE_LIMIT = 192;
|
|
126
|
+
var CACHE_CHAR_LIMIT = 4e6;
|
|
127
|
+
var PRELOADED_LANGUAGES = [
|
|
128
|
+
"bash",
|
|
129
|
+
"typescript",
|
|
130
|
+
"tsx",
|
|
131
|
+
"javascript",
|
|
132
|
+
"jsx",
|
|
133
|
+
"json",
|
|
134
|
+
"markdown",
|
|
135
|
+
"yaml",
|
|
136
|
+
"toml",
|
|
137
|
+
"css"
|
|
138
|
+
];
|
|
139
|
+
var LANGUAGE_ALIASES = /* @__PURE__ */ new Map([
|
|
140
|
+
["sh", "bash"],
|
|
141
|
+
["shell", "bash"],
|
|
142
|
+
["zsh", "bash"],
|
|
143
|
+
["ts", "typescript"],
|
|
144
|
+
["js", "javascript"],
|
|
145
|
+
["md", "markdown"],
|
|
146
|
+
["yml", "yaml"],
|
|
147
|
+
["py", "python"],
|
|
148
|
+
["rs", "rust"],
|
|
149
|
+
["rb", "ruby"],
|
|
150
|
+
["cs", "csharp"],
|
|
151
|
+
["fs", "fsharp"],
|
|
152
|
+
["ps1", "powershell"]
|
|
153
|
+
]);
|
|
154
|
+
var EXACT_BASENAMES = /* @__PURE__ */ new Map([
|
|
155
|
+
["dockerfile", "dockerfile"],
|
|
156
|
+
["makefile", "makefile"],
|
|
157
|
+
["gnumakefile", "makefile"],
|
|
158
|
+
["justfile", "makefile"],
|
|
159
|
+
["procfile", "shellscript"],
|
|
160
|
+
["gemfile", "ruby"],
|
|
161
|
+
["rakefile", "ruby"],
|
|
162
|
+
["cargo.lock", "toml"],
|
|
163
|
+
["package-lock.json", "json"],
|
|
164
|
+
["composer.lock", "json"],
|
|
165
|
+
["pnpm-lock.yaml", "yaml"],
|
|
166
|
+
["pnpm-lock.yml", "yaml"],
|
|
167
|
+
["yarn.lock", "yaml"]
|
|
168
|
+
]);
|
|
169
|
+
var EXTENSION_ALIASES = /* @__PURE__ */ new Map([
|
|
170
|
+
[".ts", "typescript"],
|
|
171
|
+
[".tsx", "tsx"],
|
|
172
|
+
[".js", "javascript"],
|
|
173
|
+
[".jsx", "jsx"],
|
|
174
|
+
[".mjs", "javascript"],
|
|
175
|
+
[".cjs", "javascript"],
|
|
176
|
+
[".json", "json"],
|
|
177
|
+
[".md", "markdown"],
|
|
178
|
+
[".markdown", "markdown"],
|
|
179
|
+
[".yml", "yaml"],
|
|
180
|
+
[".yaml", "yaml"],
|
|
181
|
+
[".toml", "toml"],
|
|
182
|
+
[".sh", "bash"],
|
|
183
|
+
[".bash", "bash"],
|
|
184
|
+
[".zsh", "bash"],
|
|
185
|
+
[".css", "css"],
|
|
186
|
+
[".html", "html"],
|
|
187
|
+
[".htm", "html"],
|
|
188
|
+
[".py", "python"],
|
|
189
|
+
[".rs", "rust"],
|
|
190
|
+
[".go", "go"],
|
|
191
|
+
[".rb", "ruby"],
|
|
192
|
+
[".php", "php"],
|
|
193
|
+
[".sql", "sql"],
|
|
194
|
+
[".xml", "xml"],
|
|
195
|
+
[".svg", "xml"],
|
|
196
|
+
[".vue", "vue"],
|
|
197
|
+
[".svelte", "svelte"],
|
|
198
|
+
[".c", "c"],
|
|
199
|
+
[".h", "c"],
|
|
200
|
+
[".cpp", "cpp"],
|
|
201
|
+
[".cc", "cpp"],
|
|
202
|
+
[".hpp", "cpp"],
|
|
203
|
+
[".java", "java"],
|
|
204
|
+
[".kt", "kotlin"],
|
|
205
|
+
[".swift", "swift"],
|
|
206
|
+
[".lua", "lua"],
|
|
207
|
+
[".r", "r"],
|
|
208
|
+
[".scala", "scala"],
|
|
209
|
+
[".clj", "clojure"],
|
|
210
|
+
[".ex", "elixir"],
|
|
211
|
+
[".exs", "elixir"],
|
|
212
|
+
[".erl", "erlang"],
|
|
213
|
+
[".hs", "haskell"],
|
|
214
|
+
[".ml", "ocaml"],
|
|
215
|
+
[".fs", "fsharp"],
|
|
216
|
+
[".fsx", "fsharp"],
|
|
217
|
+
[".cs", "csharp"],
|
|
218
|
+
[".ps1", "powershell"],
|
|
219
|
+
[".graphql", "graphql"],
|
|
220
|
+
[".prisma", "prisma"],
|
|
221
|
+
[".dockerfile", "dockerfile"]
|
|
222
|
+
]);
|
|
223
|
+
var THEME_TYPE = new Map(bundledThemesInfo.map((theme) => [theme.id, theme.type]));
|
|
224
|
+
var LOW_CONTRAST_FALLBACK = "\x1B[38;2;139;148;158m";
|
|
225
|
+
var highlighter;
|
|
226
|
+
var readyTheme;
|
|
227
|
+
var initializingTheme;
|
|
228
|
+
var initVersion = 0;
|
|
229
|
+
var highlighterGeneration = 0;
|
|
230
|
+
var themePreference = "auto";
|
|
231
|
+
var observedVariant = "dark";
|
|
232
|
+
var currentTheme = resolveShikiTheme(themePreference, observedVariant);
|
|
233
|
+
var enabled = true;
|
|
234
|
+
var loadedLanguages = /* @__PURE__ */ new Set();
|
|
235
|
+
var pendingLanguages = /* @__PURE__ */ new Set();
|
|
236
|
+
var languageLoadCallbacks = /* @__PURE__ */ new Map();
|
|
237
|
+
var highlighterReadyCallbacks = /* @__PURE__ */ new Set();
|
|
238
|
+
var renderCache = /* @__PURE__ */ new Map();
|
|
239
|
+
var renderCacheChars = 0;
|
|
240
|
+
var hashString = (value) => {
|
|
241
|
+
let hash = 5381;
|
|
242
|
+
for (let index = 0; index < value.length; index++) {
|
|
243
|
+
hash = (hash << 5) + hash + value.charCodeAt(index) | 0;
|
|
244
|
+
}
|
|
245
|
+
return hash;
|
|
246
|
+
};
|
|
247
|
+
var escapeControlChars = (text) => text.replace(/\x1b/g, "\u241B").replace(/\r/g, "\u240D").replace(/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/g, "\uFFFD");
|
|
248
|
+
var normalizeLanguage = (language) => {
|
|
249
|
+
const normalized = language.toLowerCase();
|
|
250
|
+
return LANGUAGE_ALIASES.get(normalized) ?? normalized;
|
|
251
|
+
};
|
|
252
|
+
var ANSI_16_RGB = [
|
|
253
|
+
{ r: 0, g: 0, b: 0 },
|
|
254
|
+
{ r: 205, g: 49, b: 49 },
|
|
255
|
+
{ r: 13, g: 161, b: 13 },
|
|
256
|
+
{ r: 229, g: 165, b: 10 },
|
|
257
|
+
{ r: 36, g: 114, b: 200 },
|
|
258
|
+
{ r: 188, g: 63, b: 188 },
|
|
259
|
+
{ r: 17, g: 168, b: 205 },
|
|
260
|
+
{ r: 229, g: 229, b: 229 },
|
|
261
|
+
{ r: 102, g: 102, b: 102 },
|
|
262
|
+
{ r: 241, g: 76, b: 76 },
|
|
263
|
+
{ r: 35, g: 209, b: 139 },
|
|
264
|
+
{ r: 245, g: 245, b: 67 },
|
|
265
|
+
{ r: 59, g: 142, b: 234 },
|
|
266
|
+
{ r: 214, g: 112, b: 214 },
|
|
267
|
+
{ r: 41, g: 184, b: 219 },
|
|
268
|
+
{ r: 255, g: 255, b: 255 }
|
|
269
|
+
];
|
|
270
|
+
var ansi256ToRgb = (index) => {
|
|
271
|
+
if (index < 16) return ANSI_16_RGB[Math.max(0, index)] ?? { r: 0, g: 0, b: 0 };
|
|
272
|
+
if (index < 232) {
|
|
273
|
+
const cube = index - 16;
|
|
274
|
+
const channel = (value) => value === 0 ? 0 : 55 + 40 * value;
|
|
275
|
+
return {
|
|
276
|
+
r: channel(Math.floor(cube / 36)),
|
|
277
|
+
g: channel(Math.floor(cube % 36 / 6)),
|
|
278
|
+
b: channel(cube % 6)
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
const gray = 8 + 10 * (Math.min(index, 255) - 232);
|
|
282
|
+
return { r: gray, g: gray, b: gray };
|
|
283
|
+
};
|
|
284
|
+
var parseAnsiBgColor = (sequence) => {
|
|
285
|
+
const truecolor = sequence.match(/\x1b\[4?8;2;(\d+);(\d+);(\d+)m/);
|
|
286
|
+
if (truecolor) {
|
|
287
|
+
return { r: Number(truecolor[1]), g: Number(truecolor[2]), b: Number(truecolor[3]) };
|
|
288
|
+
}
|
|
289
|
+
const indexed = sequence.match(/\x1b\[4?8;5;(\d+)m/);
|
|
290
|
+
if (indexed) return ansi256ToRgb(Number(indexed[1]));
|
|
291
|
+
return void 0;
|
|
292
|
+
};
|
|
293
|
+
var relativeLuminance = ({ r, g, b }) => (0.2126 * r + 0.7152 * g + 0.0722 * b) / 255;
|
|
294
|
+
var classifyPiTheme = (theme, env = process.env) => {
|
|
295
|
+
const name = theme?.name?.trim().toLowerCase();
|
|
296
|
+
if (name === "light") return "light";
|
|
297
|
+
if (name === "dark") return "dark";
|
|
298
|
+
const background = theme?.getBgAnsi ? parseAnsiBgColor(theme.getBgAnsi("userMessageBg")) : void 0;
|
|
299
|
+
if (background) return relativeLuminance(background) >= 0.5 ? "light" : "dark";
|
|
300
|
+
const colorFgBg = env.COLORFGBG;
|
|
301
|
+
if (colorFgBg) {
|
|
302
|
+
const index = colorFgBg.split(";").map((part) => Number.parseInt(part, 10)).filter((part) => Number.isInteger(part) && part >= 0 && part <= 255).at(-1);
|
|
303
|
+
if (index !== void 0) {
|
|
304
|
+
return relativeLuminance(ansi256ToRgb(index)) >= 0.5 ? "light" : "dark";
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return void 0;
|
|
308
|
+
};
|
|
309
|
+
var syncEffectiveTheme = (preference, variant) => {
|
|
310
|
+
themePreference = preference;
|
|
311
|
+
observedVariant = variant;
|
|
312
|
+
const effective = resolveShikiTheme(preference, variant);
|
|
313
|
+
if (effective === currentTheme) return false;
|
|
314
|
+
currentTheme = effective;
|
|
315
|
+
renderCache.clear();
|
|
316
|
+
renderCacheChars = 0;
|
|
317
|
+
resetFileHighlighting();
|
|
318
|
+
if (enabled && (highlighter || initializingTheme)) {
|
|
319
|
+
void initHighlighting(effective, true);
|
|
320
|
+
}
|
|
321
|
+
return true;
|
|
322
|
+
};
|
|
323
|
+
function observePiTheme(theme) {
|
|
324
|
+
const variant = classifyPiTheme(theme);
|
|
325
|
+
if (variant) syncEffectiveTheme(themePreference, variant);
|
|
326
|
+
}
|
|
327
|
+
var effectiveShikiThemeIsLight = () => THEME_TYPE.get(currentTheme) === "light";
|
|
328
|
+
var observedThemeVariant = () => observedVariant;
|
|
329
|
+
function languageFromPath(filePath) {
|
|
330
|
+
if (!filePath) return void 0;
|
|
331
|
+
const name = basename(filePath).toLowerCase();
|
|
332
|
+
if (name.startsWith(".env")) {
|
|
333
|
+
const candidate = "dotenv";
|
|
334
|
+
return candidate in bundledLanguages ? candidate : void 0;
|
|
335
|
+
}
|
|
336
|
+
if (name === "dockerfile" || name.startsWith("dockerfile.")) {
|
|
337
|
+
return "dockerfile" in bundledLanguages ? "dockerfile" : void 0;
|
|
338
|
+
}
|
|
339
|
+
const exact = EXACT_BASENAMES.get(name);
|
|
340
|
+
if (exact && exact in bundledLanguages) return exact;
|
|
341
|
+
const byExt = EXTENSION_ALIASES.get(extname(name));
|
|
342
|
+
return byExt && byExt in bundledLanguages ? byExt : void 0;
|
|
343
|
+
}
|
|
344
|
+
function configureHighlighting(themePreferenceValue, syntaxEnabled = true) {
|
|
345
|
+
const preference = themePreferenceValue.trim() || "auto";
|
|
346
|
+
const wasEnabled = enabled;
|
|
347
|
+
enabled = syntaxEnabled;
|
|
348
|
+
if (!enabled) {
|
|
349
|
+
themePreference = preference;
|
|
350
|
+
currentTheme = resolveShikiTheme(preference, observedVariant);
|
|
351
|
+
initVersion++;
|
|
352
|
+
initializingTheme = void 0;
|
|
353
|
+
highlighter?.dispose();
|
|
354
|
+
highlighter = void 0;
|
|
355
|
+
readyTheme = void 0;
|
|
356
|
+
highlighterGeneration++;
|
|
357
|
+
loadedLanguages.clear();
|
|
358
|
+
pendingLanguages.clear();
|
|
359
|
+
languageLoadCallbacks.clear();
|
|
360
|
+
highlighterReadyCallbacks.clear();
|
|
361
|
+
renderCache.clear();
|
|
362
|
+
renderCacheChars = 0;
|
|
363
|
+
resetFileHighlighting();
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
const themeChanged = syncEffectiveTheme(preference, observedVariant);
|
|
367
|
+
if (!themeChanged && !wasEnabled && !highlighter && !initializingTheme) {
|
|
368
|
+
void initHighlighting(currentTheme, syntaxEnabled);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
async function initHighlighting(theme, syntaxEnabled = true) {
|
|
372
|
+
currentTheme = theme;
|
|
373
|
+
enabled = syntaxEnabled;
|
|
374
|
+
if (!enabled) return;
|
|
375
|
+
const version = ++initVersion;
|
|
376
|
+
initializingTheme = theme;
|
|
377
|
+
try {
|
|
378
|
+
const { createHighlighter } = await import("shiki");
|
|
379
|
+
const themeObject = await resolveShikiThemeObject(theme);
|
|
380
|
+
if (!themeObject) {
|
|
381
|
+
throw new Error(`Unknown shiki theme: ${theme}`);
|
|
382
|
+
}
|
|
383
|
+
const next = await createHighlighter({
|
|
384
|
+
themes: [themeObject],
|
|
385
|
+
langs: await resolveShikiLanguageObjects(PRELOADED_LANGUAGES)
|
|
386
|
+
});
|
|
387
|
+
if (version !== initVersion) {
|
|
388
|
+
next.dispose();
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
highlighter?.dispose();
|
|
392
|
+
highlighter = next;
|
|
393
|
+
resetFileHighlighting();
|
|
394
|
+
readyTheme = theme;
|
|
395
|
+
initializingTheme = void 0;
|
|
396
|
+
highlighterGeneration++;
|
|
397
|
+
loadedLanguages.clear();
|
|
398
|
+
for (const lang of PRELOADED_LANGUAGES) loadedLanguages.add(lang);
|
|
399
|
+
notifyReady();
|
|
400
|
+
} catch (error) {
|
|
401
|
+
if (version !== initVersion) return;
|
|
402
|
+
initializingTheme = void 0;
|
|
403
|
+
console.warn("[pi-fabric] Shiki failed to initialize; previews will be plain text.", error);
|
|
404
|
+
highlighter?.dispose();
|
|
405
|
+
highlighter = void 0;
|
|
406
|
+
readyTheme = void 0;
|
|
407
|
+
highlighterGeneration++;
|
|
408
|
+
loadedLanguages.clear();
|
|
409
|
+
highlighterReadyCallbacks.clear();
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
var shouldSkipHighlight = (text) => text.length > MAX_HIGHLIGHT_CHARS;
|
|
413
|
+
var ansiFg = (hex) => {
|
|
414
|
+
const clean = hex.replace(/^#/, "").slice(0, 6);
|
|
415
|
+
const n = Number.parseInt(clean, 16);
|
|
416
|
+
return Number.isFinite(n) ? `\x1B[38;2;${n >> 16 & 255};${n >> 8 & 255};${n & 255}m` : "";
|
|
417
|
+
};
|
|
418
|
+
var ansiFromToken = (token) => {
|
|
419
|
+
let open = token.color ? ansiFg(token.color) : "";
|
|
420
|
+
let close = token.color ? "\x1B[39m" : "";
|
|
421
|
+
const fontStyle = token.fontStyle ?? 0;
|
|
422
|
+
if (fontStyle & 2) {
|
|
423
|
+
open += "\x1B[1m";
|
|
424
|
+
close = "\x1B[22m" + close;
|
|
425
|
+
}
|
|
426
|
+
if (fontStyle & 1) {
|
|
427
|
+
open += "\x1B[3m";
|
|
428
|
+
close = "\x1B[23m" + close;
|
|
429
|
+
}
|
|
430
|
+
if (fontStyle & 4) {
|
|
431
|
+
open += "\x1B[4m";
|
|
432
|
+
close = "\x1B[24m" + close;
|
|
433
|
+
}
|
|
434
|
+
return open + escapeControlChars(token.content) + close;
|
|
435
|
+
};
|
|
436
|
+
var isLowContrastFg = (params) => {
|
|
437
|
+
if (params === "30" || params === "90" || params === "38;5;0" || params === "38;5;8") return true;
|
|
438
|
+
if (!params.startsWith("38;2;")) return false;
|
|
439
|
+
const parts = params.split(";").map(Number);
|
|
440
|
+
const r = parts[2];
|
|
441
|
+
const g = parts[3];
|
|
442
|
+
const b = parts[4];
|
|
443
|
+
if (r === void 0 || g === void 0 || b === void 0) return false;
|
|
444
|
+
if (!Number.isFinite(r) || !Number.isFinite(g) || !Number.isFinite(b)) return false;
|
|
445
|
+
const luminance = 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
446
|
+
return luminance < 72;
|
|
447
|
+
};
|
|
448
|
+
var normalizeContrast = (ansi) => {
|
|
449
|
+
if (THEME_TYPE.get(currentTheme) === "light") return ansi;
|
|
450
|
+
return ansi.replace(
|
|
451
|
+
/\x1b\[([0-9;]*)m/g,
|
|
452
|
+
(seq, params) => isLowContrastFg(params) ? LOW_CONTRAST_FALLBACK : seq
|
|
453
|
+
);
|
|
454
|
+
};
|
|
455
|
+
var cacheRendered = (key, value) => {
|
|
456
|
+
const size = value.reduce((total, line) => total + line.length, 0);
|
|
457
|
+
renderCache.set(key, { value, size });
|
|
458
|
+
renderCacheChars += size;
|
|
459
|
+
while (renderCache.size > CACHE_LIMIT || renderCacheChars > CACHE_CHAR_LIMIT) {
|
|
460
|
+
const first = renderCache.keys().next().value;
|
|
461
|
+
if (first === void 0) break;
|
|
462
|
+
const cached = renderCache.get(first);
|
|
463
|
+
if (cached) renderCacheChars -= cached.size;
|
|
464
|
+
renderCache.delete(first);
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
var requestInit = (invalidate) => {
|
|
468
|
+
if (invalidate) highlighterReadyCallbacks.add(invalidate);
|
|
469
|
+
if (initializingTheme === currentTheme) return;
|
|
470
|
+
void initHighlighting(currentTheme, enabled);
|
|
471
|
+
};
|
|
472
|
+
var notifyReady = () => {
|
|
473
|
+
const callbacks = [...highlighterReadyCallbacks];
|
|
474
|
+
highlighterReadyCallbacks.clear();
|
|
475
|
+
for (const callback of callbacks) {
|
|
476
|
+
try {
|
|
477
|
+
callback();
|
|
478
|
+
} catch {
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
var requestLanguageLoad = (lang, invalidate) => {
|
|
483
|
+
if (invalidate) {
|
|
484
|
+
const callbacks = languageLoadCallbacks.get(lang) ?? /* @__PURE__ */ new Set();
|
|
485
|
+
callbacks.add(invalidate);
|
|
486
|
+
languageLoadCallbacks.set(lang, callbacks);
|
|
487
|
+
}
|
|
488
|
+
if (pendingLanguages.has(lang)) return;
|
|
489
|
+
const instance = highlighter;
|
|
490
|
+
if (!instance) return;
|
|
491
|
+
pendingLanguages.add(lang);
|
|
492
|
+
const generation = highlighterGeneration;
|
|
493
|
+
void instance.loadLanguage(lang).then(() => {
|
|
494
|
+
if (generation !== highlighterGeneration) return;
|
|
495
|
+
loadedLanguages.add(lang);
|
|
496
|
+
const callbacks = languageLoadCallbacks.get(lang);
|
|
497
|
+
languageLoadCallbacks.delete(lang);
|
|
498
|
+
for (const callback of callbacks ?? []) {
|
|
499
|
+
try {
|
|
500
|
+
callback();
|
|
501
|
+
} catch {
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}).catch(() => {
|
|
505
|
+
if (generation === highlighterGeneration) languageLoadCallbacks.delete(lang);
|
|
506
|
+
}).finally(() => {
|
|
507
|
+
if (generation === highlighterGeneration) pendingLanguages.delete(lang);
|
|
508
|
+
});
|
|
509
|
+
};
|
|
510
|
+
function highlightCode(text, lang, invalidate) {
|
|
511
|
+
if (!enabled || !lang || shouldSkipHighlight(text)) return null;
|
|
512
|
+
if (!highlighter || readyTheme !== currentTheme) {
|
|
513
|
+
requestInit(invalidate);
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
516
|
+
const shikiLang = normalizeLanguage(lang);
|
|
517
|
+
if (!(shikiLang in bundledLanguages)) return null;
|
|
518
|
+
const cacheKey = `${currentTheme}\0${shikiLang}\0${text.length}\0${hashString(text)}`;
|
|
519
|
+
const cached = renderCache.get(cacheKey);
|
|
520
|
+
if (cached) {
|
|
521
|
+
renderCache.delete(cacheKey);
|
|
522
|
+
renderCache.set(cacheKey, cached);
|
|
523
|
+
return cached.value;
|
|
524
|
+
}
|
|
525
|
+
if (!loadedLanguages.has(shikiLang)) {
|
|
526
|
+
requestLanguageLoad(shikiLang, invalidate);
|
|
527
|
+
return null;
|
|
528
|
+
}
|
|
529
|
+
try {
|
|
530
|
+
const tokens = highlighter.codeToTokensBase(text, {
|
|
531
|
+
lang: shikiLang,
|
|
532
|
+
theme: currentTheme
|
|
533
|
+
});
|
|
534
|
+
const rendered = tokens.map(
|
|
535
|
+
(line) => normalizeContrast(line.map(ansiFromToken).join(""))
|
|
536
|
+
);
|
|
537
|
+
cacheRendered(cacheKey, rendered);
|
|
538
|
+
return rendered;
|
|
539
|
+
} catch {
|
|
540
|
+
return null;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
var fileHighlightCache = /* @__PURE__ */ new Map();
|
|
544
|
+
var fileHighlightChars = 0;
|
|
545
|
+
var fileHighlightQueue = [];
|
|
546
|
+
var fileHighlightQueueScheduled = false;
|
|
547
|
+
var expandFileLineTabs = (text) => text.replace(/\t/g, " ");
|
|
548
|
+
var dropFileHighlightEntry = (key, entry) => {
|
|
549
|
+
if (fileHighlightCache.get(key) !== entry) return;
|
|
550
|
+
entry.stale = true;
|
|
551
|
+
entry.waiters = [];
|
|
552
|
+
fileHighlightCache.delete(key);
|
|
553
|
+
fileHighlightChars -= entry.chars;
|
|
554
|
+
};
|
|
555
|
+
var evictFileHighlightCache = () => {
|
|
556
|
+
while (fileHighlightCache.size > FILE_HIGHLIGHT_ENTRY_LIMIT || fileHighlightChars > FILE_HIGHLIGHT_CHAR_LIMIT) {
|
|
557
|
+
const oldestKey = fileHighlightCache.keys().next().value;
|
|
558
|
+
if (oldestKey === void 0) break;
|
|
559
|
+
const oldest = fileHighlightCache.get(oldestKey);
|
|
560
|
+
if (oldest) dropFileHighlightEntry(oldestKey, oldest);
|
|
561
|
+
else fileHighlightCache.delete(oldestKey);
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
var resetFileHighlighting = () => {
|
|
565
|
+
for (const [, entry] of fileHighlightCache) {
|
|
566
|
+
entry.stale = true;
|
|
567
|
+
entry.waiters = [];
|
|
568
|
+
}
|
|
569
|
+
fileHighlightCache.clear();
|
|
570
|
+
fileHighlightQueue.length = 0;
|
|
571
|
+
fileHighlightChars = 0;
|
|
572
|
+
};
|
|
573
|
+
var fireSatisfiedWaiters = (entry) => {
|
|
574
|
+
const covered = entry.lines.length;
|
|
575
|
+
const ready = /* @__PURE__ */ new Set();
|
|
576
|
+
const remaining = [];
|
|
577
|
+
for (const waiter of entry.waiters) {
|
|
578
|
+
if (waiter.to <= covered) ready.add(waiter.invalidate);
|
|
579
|
+
else remaining.push(waiter);
|
|
580
|
+
}
|
|
581
|
+
entry.waiters = remaining;
|
|
582
|
+
if (ready.size === 0) return;
|
|
583
|
+
queueMicrotask(() => {
|
|
584
|
+
for (const invalidate of ready) {
|
|
585
|
+
try {
|
|
586
|
+
invalidate();
|
|
587
|
+
} catch {
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
};
|
|
592
|
+
var advanceFileHighlight = (entry) => {
|
|
593
|
+
const instance = highlighter;
|
|
594
|
+
if (!instance || readyTheme !== currentTheme || instance !== entry.highlighter) {
|
|
595
|
+
entry.stale = true;
|
|
596
|
+
return;
|
|
597
|
+
}
|
|
598
|
+
const start = entry.lines.length;
|
|
599
|
+
const hardEnd = Math.min(entry.target, entry.sourceLines.length);
|
|
600
|
+
let end = start;
|
|
601
|
+
let chars = 0;
|
|
602
|
+
const maxEnd = Math.min(start + FILE_HIGHLIGHT_TICK_LINE_BUDGET, hardEnd);
|
|
603
|
+
while (end < maxEnd && chars <= FILE_HIGHLIGHT_TICK_CHAR_BUDGET) {
|
|
604
|
+
chars += (entry.sourceLines[end]?.length ?? 0) + 1;
|
|
605
|
+
end++;
|
|
606
|
+
}
|
|
607
|
+
if (end <= start) return;
|
|
608
|
+
try {
|
|
609
|
+
const tokens = instance.codeToTokensBase(entry.sourceLines.slice(start, end).join("\n"), {
|
|
610
|
+
lang: entry.lang,
|
|
611
|
+
theme: currentTheme,
|
|
612
|
+
...entry.state ? { grammarState: entry.state } : {}
|
|
613
|
+
});
|
|
614
|
+
const rendered = tokens.map(
|
|
615
|
+
(line) => normalizeContrast(line.map(ansiFromToken).join(""))
|
|
616
|
+
);
|
|
617
|
+
entry.state = instance.getLastGrammarState(tokens);
|
|
618
|
+
entry.lines.push(...rendered);
|
|
619
|
+
const delta = rendered.reduce((total, line) => total + line.length, 0);
|
|
620
|
+
entry.chars += delta;
|
|
621
|
+
fileHighlightChars += delta;
|
|
622
|
+
} catch {
|
|
623
|
+
entry.stale = true;
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
var pumpFileHighlightQueue = () => {
|
|
627
|
+
fileHighlightQueueScheduled = false;
|
|
628
|
+
let entry = fileHighlightQueue.shift();
|
|
629
|
+
while (entry !== void 0 && (entry.stale || entry.highlighter !== highlighter || entry.lines.length >= Math.min(entry.target, entry.sourceLines.length))) {
|
|
630
|
+
if (entry.waiters.length > 0) fireSatisfiedWaiters(entry);
|
|
631
|
+
entry = fileHighlightQueue.shift();
|
|
632
|
+
}
|
|
633
|
+
if (!entry) return;
|
|
634
|
+
advanceFileHighlight(entry);
|
|
635
|
+
if (!entry.stale) {
|
|
636
|
+
fireSatisfiedWaiters(entry);
|
|
637
|
+
if (entry.waiters.length > 0) fileHighlightQueue.push(entry);
|
|
638
|
+
}
|
|
639
|
+
if (fileHighlightQueue.length > 0) {
|
|
640
|
+
fileHighlightQueueScheduled = true;
|
|
641
|
+
setImmediate(pumpFileHighlightQueue);
|
|
642
|
+
}
|
|
643
|
+
};
|
|
644
|
+
var scheduleFileHighlight = (entry) => {
|
|
645
|
+
if (!fileHighlightQueue.includes(entry)) fileHighlightQueue.push(entry);
|
|
646
|
+
if (fileHighlightQueueScheduled) return;
|
|
647
|
+
fileHighlightQueueScheduled = true;
|
|
648
|
+
setImmediate(pumpFileHighlightQueue);
|
|
649
|
+
};
|
|
650
|
+
function highlightFileLines(filePath, lang, from, to, invalidate) {
|
|
651
|
+
if (!enabled || !lang || !filePath || to <= from || from < 0) return null;
|
|
652
|
+
if (!highlighter || readyTheme !== currentTheme) {
|
|
653
|
+
requestInit(invalidate);
|
|
654
|
+
return null;
|
|
655
|
+
}
|
|
656
|
+
const shikiLang = normalizeLanguage(lang);
|
|
657
|
+
if (!(shikiLang in bundledLanguages)) return null;
|
|
658
|
+
if (!loadedLanguages.has(shikiLang)) {
|
|
659
|
+
requestLanguageLoad(shikiLang, invalidate);
|
|
660
|
+
return null;
|
|
661
|
+
}
|
|
662
|
+
let stat;
|
|
663
|
+
try {
|
|
664
|
+
stat = statSync(filePath);
|
|
665
|
+
} catch {
|
|
666
|
+
return null;
|
|
667
|
+
}
|
|
668
|
+
if (!stat.isFile() || stat.size > FILE_HIGHLIGHT_MAX_SOURCE_CHARS) return null;
|
|
669
|
+
const key = `${currentTheme}\0${shikiLang}\0${filePath}`;
|
|
670
|
+
let entry = fileHighlightCache.get(key);
|
|
671
|
+
if (entry && (entry.mtimeMs !== stat.mtimeMs || entry.size !== stat.size)) {
|
|
672
|
+
dropFileHighlightEntry(key, entry);
|
|
673
|
+
entry = void 0;
|
|
674
|
+
}
|
|
675
|
+
if (!entry) {
|
|
676
|
+
let text;
|
|
677
|
+
try {
|
|
678
|
+
text = readFileSync(filePath, "utf8");
|
|
679
|
+
} catch {
|
|
680
|
+
return null;
|
|
681
|
+
}
|
|
682
|
+
if (text.includes("\0")) return null;
|
|
683
|
+
const sourceLines = text.replace(/\r\n?/g, "\n").split("\n").map(expandFileLineTabs);
|
|
684
|
+
entry = {
|
|
685
|
+
highlighter,
|
|
686
|
+
lang: shikiLang,
|
|
687
|
+
mtimeMs: stat.mtimeMs,
|
|
688
|
+
size: stat.size,
|
|
689
|
+
sourceLines,
|
|
690
|
+
lines: [],
|
|
691
|
+
state: void 0,
|
|
692
|
+
target: 0,
|
|
693
|
+
waiters: [],
|
|
694
|
+
stale: false,
|
|
695
|
+
chars: sourceLines.reduce((total, line) => total + line.length, 0)
|
|
696
|
+
};
|
|
697
|
+
fileHighlightCache.set(key, entry);
|
|
698
|
+
fileHighlightChars += entry.chars;
|
|
699
|
+
evictFileHighlightCache();
|
|
700
|
+
if (entry.stale) {
|
|
701
|
+
entry.waiters = [];
|
|
702
|
+
return null;
|
|
703
|
+
}
|
|
704
|
+
} else {
|
|
705
|
+
fileHighlightCache.delete(key);
|
|
706
|
+
fileHighlightCache.set(key, entry);
|
|
707
|
+
}
|
|
708
|
+
return fileHighlightRange(entry, from, to, invalidate);
|
|
709
|
+
}
|
|
710
|
+
function highlightSourceLines(cacheKey, sourceLines, lang, from, to, invalidate) {
|
|
711
|
+
if (!enabled || !lang || !cacheKey || to <= from || from < 0) return null;
|
|
712
|
+
if (!highlighter || readyTheme !== currentTheme) {
|
|
713
|
+
requestInit(invalidate);
|
|
714
|
+
return null;
|
|
715
|
+
}
|
|
716
|
+
const shikiLang = normalizeLanguage(lang);
|
|
717
|
+
if (!(shikiLang in bundledLanguages)) return null;
|
|
718
|
+
if (!loadedLanguages.has(shikiLang)) {
|
|
719
|
+
requestLanguageLoad(shikiLang, invalidate);
|
|
720
|
+
return null;
|
|
721
|
+
}
|
|
722
|
+
let entry = fileHighlightCache.get(cacheKey);
|
|
723
|
+
if (!entry) {
|
|
724
|
+
entry = {
|
|
725
|
+
highlighter,
|
|
726
|
+
lang: shikiLang,
|
|
727
|
+
sourceLines,
|
|
728
|
+
lines: [],
|
|
729
|
+
state: void 0,
|
|
730
|
+
target: 0,
|
|
731
|
+
waiters: [],
|
|
732
|
+
stale: false,
|
|
733
|
+
chars: sourceLines.reduce((total, line) => total + line.length, 0)
|
|
734
|
+
};
|
|
735
|
+
fileHighlightCache.set(cacheKey, entry);
|
|
736
|
+
fileHighlightChars += entry.chars;
|
|
737
|
+
evictFileHighlightCache();
|
|
738
|
+
if (entry.stale) {
|
|
739
|
+
entry.waiters = [];
|
|
740
|
+
return null;
|
|
741
|
+
}
|
|
742
|
+
} else {
|
|
743
|
+
fileHighlightCache.delete(cacheKey);
|
|
744
|
+
fileHighlightCache.set(cacheKey, entry);
|
|
745
|
+
}
|
|
746
|
+
return fileHighlightRange(entry, from, to, invalidate);
|
|
747
|
+
}
|
|
748
|
+
var fileHighlightRange = (entry, from, to, invalidate) => {
|
|
749
|
+
const total = entry.sourceLines.length;
|
|
750
|
+
if (from >= total) return null;
|
|
751
|
+
const clampedTo = Math.max(Math.min(to, total), Math.min(from, total));
|
|
752
|
+
entry.target = Math.max(entry.target, clampedTo);
|
|
753
|
+
if (invalidate && entry.lines.length < clampedTo) {
|
|
754
|
+
entry.waiters = entry.waiters.filter((waiter) => waiter.invalidate !== invalidate);
|
|
755
|
+
entry.waiters.push({ to: clampedTo, invalidate });
|
|
756
|
+
scheduleFileHighlight(entry);
|
|
757
|
+
}
|
|
758
|
+
if (entry.lines.length < clampedTo) return null;
|
|
759
|
+
const out = [];
|
|
760
|
+
for (let index = from; index < Math.min(to, total); index++) {
|
|
761
|
+
out.push({ raw: entry.sourceLines[index] ?? "", ansi: entry.lines[index] ?? "" });
|
|
762
|
+
}
|
|
763
|
+
return out;
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
export {
|
|
767
|
+
ansi256ToRgb,
|
|
768
|
+
observePiTheme,
|
|
769
|
+
effectiveShikiThemeIsLight,
|
|
770
|
+
observedThemeVariant,
|
|
771
|
+
languageFromPath,
|
|
772
|
+
configureHighlighting,
|
|
773
|
+
highlightCode,
|
|
774
|
+
highlightFileLines,
|
|
775
|
+
highlightSourceLines
|
|
776
|
+
};
|
|
777
|
+
//# sourceMappingURL=chunk-ZZ4LHQYJ.js.map
|