omp-fabric 0.85.0
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 +170 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/dist/activity/store.d.ts +32 -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/manager.d.ts +175 -0
- package/dist/actors/manager.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/types.d.ts +211 -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 +127 -0
- package/dist/agents/compact-control.js.map +7 -0
- package/dist/agents/constants.d.ts +5 -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.d.ts +19 -0
- package/dist/agents/handoff.d.ts.map +1 -0
- package/dist/agents/manager.d.ts +68 -0
- package/dist/agents/manager.d.ts.map +1 -0
- package/dist/agents/omp-binary.d.ts +7 -0
- package/dist/agents/omp-binary.d.ts.map +1 -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/session-export.d.ts +9 -0
- package/dist/agents/session-export.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 +29 -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 +251 -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/async-settlement.d.ts +4 -0
- package/dist/async-settlement.d.ts.map +1 -0
- package/dist/audit/details.d.ts +82 -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 +95 -0
- package/dist/audit/trace.d.ts.map +1 -0
- package/dist/capture/catalog.d.ts +29 -0
- package/dist/capture/catalog.d.ts.map +1 -0
- package/dist/capture/interceptor.d.ts +21 -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-2GQC324T.js +5001 -0
- package/dist/chunks/chunk-2GQC324T.js.map +7 -0
- package/dist/chunks/chunk-2KEWFW56.js +1229 -0
- package/dist/chunks/chunk-2KEWFW56.js.map +7 -0
- package/dist/chunks/chunk-3J7BKUNG.js +354 -0
- package/dist/chunks/chunk-3J7BKUNG.js.map +7 -0
- package/dist/chunks/chunk-4A4MVZQW.js +253 -0
- package/dist/chunks/chunk-4A4MVZQW.js.map +7 -0
- package/dist/chunks/chunk-4HQDSTHN.js +221 -0
- package/dist/chunks/chunk-4HQDSTHN.js.map +7 -0
- package/dist/chunks/chunk-4LEDA76O.js +688 -0
- package/dist/chunks/chunk-4LEDA76O.js.map +7 -0
- package/dist/chunks/chunk-5GTPD4BA.js +1318 -0
- package/dist/chunks/chunk-5GTPD4BA.js.map +7 -0
- package/dist/chunks/chunk-5IWFSDU5.js +87 -0
- package/dist/chunks/chunk-5IWFSDU5.js.map +7 -0
- package/dist/chunks/chunk-6N4XGAZY.js +21 -0
- package/dist/chunks/chunk-6N4XGAZY.js.map +7 -0
- package/dist/chunks/chunk-6QBPSZJ5.js +647 -0
- package/dist/chunks/chunk-6QBPSZJ5.js.map +7 -0
- package/dist/chunks/chunk-6X6WUU2K.js +73 -0
- package/dist/chunks/chunk-6X6WUU2K.js.map +7 -0
- package/dist/chunks/chunk-7363CD5A.js +38 -0
- package/dist/chunks/chunk-7363CD5A.js.map +7 -0
- package/dist/chunks/chunk-77FQHHZD.js +231 -0
- package/dist/chunks/chunk-77FQHHZD.js.map +7 -0
- package/dist/chunks/chunk-7BIA5BJN.js +112 -0
- package/dist/chunks/chunk-7BIA5BJN.js.map +7 -0
- package/dist/chunks/chunk-7BOAOKWH.js +64 -0
- package/dist/chunks/chunk-7BOAOKWH.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-7VIQNUPS.js +17 -0
- package/dist/chunks/chunk-7VIQNUPS.js.map +7 -0
- package/dist/chunks/chunk-CT2AJ2UI.js +225 -0
- package/dist/chunks/chunk-CT2AJ2UI.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-ED3BRM6P.js +17 -0
- package/dist/chunks/chunk-ED3BRM6P.js.map +7 -0
- package/dist/chunks/chunk-G2IBGGBM.js +42 -0
- package/dist/chunks/chunk-G2IBGGBM.js.map +7 -0
- package/dist/chunks/chunk-GKOFZ76R.js +1596 -0
- package/dist/chunks/chunk-GKOFZ76R.js.map +7 -0
- package/dist/chunks/chunk-HDJBUXDX.js +1102 -0
- package/dist/chunks/chunk-HDJBUXDX.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-JHKOG5GS.js +187 -0
- package/dist/chunks/chunk-JHKOG5GS.js.map +7 -0
- package/dist/chunks/chunk-JP4LIZFT.js +1334 -0
- package/dist/chunks/chunk-JP4LIZFT.js.map +7 -0
- package/dist/chunks/chunk-JSBTB3P6.js +127 -0
- package/dist/chunks/chunk-JSBTB3P6.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-KIH3KLZU.js +95 -0
- package/dist/chunks/chunk-KIH3KLZU.js.map +7 -0
- package/dist/chunks/chunk-KIREBD2V.js +2208 -0
- package/dist/chunks/chunk-KIREBD2V.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-NCPJZXLM.js +57 -0
- package/dist/chunks/chunk-NCPJZXLM.js.map +7 -0
- package/dist/chunks/chunk-OJZNMROB.js +195 -0
- package/dist/chunks/chunk-OJZNMROB.js.map +7 -0
- package/dist/chunks/chunk-OPTP4PSE.js +469 -0
- package/dist/chunks/chunk-OPTP4PSE.js.map +7 -0
- package/dist/chunks/chunk-QPXSCMTG.js +24 -0
- package/dist/chunks/chunk-QPXSCMTG.js.map +7 -0
- package/dist/chunks/chunk-ROKMBLGN.js +1265 -0
- package/dist/chunks/chunk-ROKMBLGN.js.map +7 -0
- package/dist/chunks/chunk-SXMWV447.js +2445 -0
- package/dist/chunks/chunk-SXMWV447.js.map +7 -0
- package/dist/chunks/chunk-T5ZA5YRU.js +786 -0
- package/dist/chunks/chunk-T5ZA5YRU.js.map +7 -0
- package/dist/chunks/chunk-T6OAX4FO.js +1835 -0
- package/dist/chunks/chunk-T6OAX4FO.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-UOSJZXJV.js +142 -0
- package/dist/chunks/chunk-UOSJZXJV.js.map +7 -0
- package/dist/chunks/chunk-UPCARIJP.js +6627 -0
- package/dist/chunks/chunk-UPCARIJP.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-XU5Z4JCQ.js +297 -0
- package/dist/chunks/chunk-XU5Z4JCQ.js.map +7 -0
- package/dist/chunks/chunk-YWEXP724.js +427 -0
- package/dist/chunks/chunk-YWEXP724.js.map +7 -0
- package/dist/chunks/chunk-YZZIKJX6.js +60 -0
- package/dist/chunks/chunk-YZZIKJX6.js.map +7 -0
- package/dist/chunks/chunk-ZNAJDPT7.js +2203 -0
- package/dist/chunks/chunk-ZNAJDPT7.js.map +7 -0
- package/dist/chunks/chunk-ZTM45GH5.js +163 -0
- package/dist/chunks/chunk-ZTM45GH5.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 +98 -0
- package/dist/compaction/hook.d.ts.map +1 -0
- package/dist/compaction/hook.js +19 -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-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 +269 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/core/action-registry.d.ts +159 -0
- package/dist/core/action-registry.d.ts.map +1 -0
- package/dist/core/action-registry.js +17 -0
- package/dist/core/action-registry.js.map +7 -0
- package/dist/core/action-repair.d.ts +20 -0
- package/dist/core/action-repair.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 +30 -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 +13 -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/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/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/omp-bash-error.d.ts +11 -0
- package/dist/core/omp-bash-error.d.ts.map +1 -0
- package/dist/core/omp-tools.d.ts +9 -0
- package/dist/core/omp-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 +6 -0
- package/dist/core/session-context.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 +12 -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 +52 -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 +7 -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 +51 -0
- package/dist/entropy/compiled-surface.d.ts.map +1 -0
- package/dist/entropy/compiler.d.ts +28 -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 +15 -0
- package/dist/entropy/index.d.ts.map +1 -0
- package/dist/entropy/index.js +172 -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/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 +13 -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 +35 -0
- package/dist/entropy/trial.d.ts.map +1 -0
- package/dist/entropy/types.d.ts +158 -0
- package/dist/entropy/types.d.ts.map +1 -0
- package/dist/execution-service.d.ts +63 -0
- package/dist/execution-service.d.ts.map +1 -0
- package/dist/fabric-exec-arguments.d.ts +5 -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 +90 -0
- package/dist/fabric-runtime-state.d.ts.map +1 -0
- package/dist/fabric-runtime-state.js +13060 -0
- package/dist/fabric-runtime-state.js.map +7 -0
- package/dist/fabric-state.d.ts +89 -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 +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5719 -0
- package/dist/index.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/memory/context.d.ts +112 -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 +23 -0
- package/dist/memory/discovery.js.map +7 -0
- package/dist/memory/index.d.ts +107 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/lineage.d.ts +20 -0
- package/dist/memory/lineage.d.ts.map +1 -0
- package/dist/memory/normalize.d.ts +170 -0
- package/dist/memory/normalize.d.ts.map +1 -0
- package/dist/memory/normalize.js +22 -0
- package/dist/memory/normalize.js.map +7 -0
- package/dist/memory/regex.d.ts +19 -0
- package/dist/memory/regex.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 +22 -0
- package/dist/memory/search.js.map +7 -0
- package/dist/memory/tokenize.d.ts +24 -0
- package/dist/memory/tokenize.d.ts.map +1 -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 +60 -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 +45 -0
- package/dist/prewalk/handoff.d.ts.map +1 -0
- package/dist/protocol.d.ts +273 -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-provider.d.ts +59 -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/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 +27 -0
- package/dist/providers/mcp-provider.d.ts.map +1 -0
- package/dist/providers/memory-provider.d.ts +35 -0
- package/dist/providers/memory-provider.d.ts.map +1 -0
- package/dist/providers/memory-provider.js +16 -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/omp-bash-cwd.d.ts +31 -0
- package/dist/providers/omp-bash-cwd.d.ts.map +1 -0
- package/dist/providers/omp-tools-provider.d.ts +15 -0
- package/dist/providers/omp-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/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 +25 -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 +152 -0
- package/dist/residency/launcher.js.map +7 -0
- package/dist/residency/omp-entry.d.ts +3 -0
- package/dist/residency/omp-entry.d.ts.map +1 -0
- package/dist/residency/omp-entry.js +41 -0
- package/dist/residency/omp-entry.js.map +7 -0
- package/dist/residency/protocol.d.ts +119 -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 +291 -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/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 +226 -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 +35 -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/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 +319 -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/quickjs-runtime.d.ts +24 -0
- package/dist/runtime/quickjs-runtime.d.ts.map +1 -0
- package/dist/runtime/quickjs-runtime.js +12 -0
- package/dist/runtime/quickjs-runtime.js.map +7 -0
- package/dist/runtime/type-checker.d.ts +21 -0
- package/dist/runtime/type-checker.d.ts.map +1 -0
- package/dist/runtime/type-checker.js +15 -0
- package/dist/runtime/type-checker.js.map +7 -0
- package/dist/runtime-paths.d.ts +7 -0
- package/dist/runtime-paths.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/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/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 +39 -0
- package/dist/speculation/store.d.ts.map +1 -0
- package/dist/speculation/stream-tap.d.ts +27 -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/code-preview-shell.d.ts +26 -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 +15 -0
- package/dist/ui/conversation-chrome.d.ts.map +1 -0
- package/dist/ui/conversation-chrome.js +10 -0
- package/dist/ui/conversation-chrome.js.map +7 -0
- package/dist/ui/conversation-native-reader.d.ts +106 -0
- package/dist/ui/conversation-native-reader.d.ts.map +1 -0
- package/dist/ui/conversation-native-reader.js +784 -0
- package/dist/ui/conversation-native-reader.js.map +7 -0
- package/dist/ui/conversation-queue-store.d.ts +12 -0
- package/dist/ui/conversation-queue-store.d.ts.map +1 -0
- package/dist/ui/conversation-queue.d.ts +242 -0
- package/dist/ui/conversation-queue.d.ts.map +1 -0
- package/dist/ui/conversation-render.d.ts +45 -0
- package/dist/ui/conversation-render.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 +170 -0
- package/dist/ui/conversation.d.ts.map +1 -0
- package/dist/ui/conversation.js +1868 -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-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 +188 -0
- package/dist/ui/dashboard.d.ts.map +1 -0
- package/dist/ui/dashboard.js +4604 -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 +8 -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 +2 -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/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.d.ts +57 -0
- package/dist/ui/settings.d.ts.map +1 -0
- package/dist/ui/settings.js +1908 -0
- package/dist/ui/settings.js.map +7 -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 +7 -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/symbol-theme.d.ts +3 -0
- package/dist/ui/symbol-theme.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/options.d.ts +3 -0
- package/dist/worker/options.d.ts.map +1 -0
- package/dist/worker/options.js +104 -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 +123 -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 +1061 -0
- package/dist/worker.js.map +7 -0
- package/docs/agents.md +564 -0
- package/docs/architecture.md +139 -0
- package/docs/audit-trace.md +116 -0
- package/docs/certification.md +134 -0
- package/docs/compaction.md +332 -0
- package/docs/component-calculus.md +191 -0
- package/docs/components.md +329 -0
- package/docs/configuration.md +478 -0
- package/docs/entropy.md +396 -0
- package/docs/interface.md +149 -0
- package/docs/memory-recall.md +614 -0
- package/docs/programmatic-compaction.md +207 -0
- package/docs/provider-component-calculus.md +378 -0
- package/docs/providers.md +109 -0
- package/docs/repairs.md +69 -0
- package/docs/residency-runtime.md +82 -0
- package/docs/schema-enforcement.md +166 -0
- package/docs/skills.md +48 -0
- package/docs/speculation.md +132 -0
- package/docs/state-layer.md +197 -0
- package/package.json +116 -0
- package/skills/fabric-advisor/SKILL.md +29 -0
- package/skills/fabric-ambient/SKILL.md +44 -0
- package/skills/fabric-ambient/references/setup.md +90 -0
- package/skills/fabric-council/SKILL.md +94 -0
- package/skills/fabric-exec/SKILL.md +123 -0
- package/skills/fabric-exec/references/agents.md +211 -0
- package/skills/fabric-exec/references/mcp.md +49 -0
- package/skills/fabric-exec/references/mesh.md +51 -0
- package/skills/fabric-fusion/SKILL.md +332 -0
- package/skills/fabric-guide/SKILL.md +28 -0
- package/skills/fabric-rlm/SKILL.md +284 -0
- package/skills/fabric-schema/SKILL.md +121 -0
- package/skills/fabric-spec/SKILL.md +42 -0
- package/skills/fabric-supervisor/SKILL.md +37 -0
- package/skills/fabric-swarm/SKILL.md +80 -0
- package/skills/fabric-workflow/SKILL.md +133 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// src/ui/transcript-sanitization.ts
|
|
2
|
+
var MAX_TOOL_SUMMARY_CHARS = 500;
|
|
3
|
+
var MAX_ENCODED_STRING_CHARS = 160;
|
|
4
|
+
var MAX_TRANSCRIPT_VALUE_CHARS = 4e4;
|
|
5
|
+
var MAX_TRANSCRIPT_STRING_CHARS = 12e3;
|
|
6
|
+
var MAX_TRANSCRIPT_VALUE_NODES = 400;
|
|
7
|
+
var secretKey = /authorization|api[-_]?key|token|password|secret|cookie|credential|private[-_]?key/i;
|
|
8
|
+
var recordOf = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
9
|
+
var terminalSafe = (value, trim = true) => {
|
|
10
|
+
const safe = value.replace(/\x1b\][^\x07]*(?:\x07|\x1b\\)/g, "").replace(/\x1b\[[0-?]*[ -/]*[@-~]/g, "").replace(/[\u202a-\u202e\u2066-\u2069\u200e\u200f]/gi, "").replace(/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g, " ").replace(/\r\n?/g, "\n");
|
|
11
|
+
return trim ? safe.trim() : safe;
|
|
12
|
+
};
|
|
13
|
+
var graphemeSegmenter = Intl.Segmenter ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : void 0;
|
|
14
|
+
var graphemes = (value) => graphemeSegmenter ? [...graphemeSegmenter.segment(value)].map((entry) => entry.segment) : Array.from(value);
|
|
15
|
+
var clip = (value, max, trim = true) => {
|
|
16
|
+
const normalized = terminalSafe(value, trim);
|
|
17
|
+
if (normalized.length <= max) return normalized;
|
|
18
|
+
const parts = graphemes(normalized);
|
|
19
|
+
if (parts.length <= max) return normalized;
|
|
20
|
+
const tail = Math.min(1e3, Math.floor(max * 0.25));
|
|
21
|
+
return `${parts.slice(0, max - tail - 2).join("")}\u2026
|
|
22
|
+
${parts.slice(-tail).join("")}`;
|
|
23
|
+
};
|
|
24
|
+
var contentText = (value) => {
|
|
25
|
+
if (typeof value === "string") return value;
|
|
26
|
+
if (Array.isArray(value)) {
|
|
27
|
+
return value.map((part) => {
|
|
28
|
+
const record2 = recordOf(part);
|
|
29
|
+
return record2?.type === "text" && typeof record2.text === "string" ? record2.text : "";
|
|
30
|
+
}).filter(Boolean).join("");
|
|
31
|
+
}
|
|
32
|
+
const record = recordOf(value);
|
|
33
|
+
if (!record) return "";
|
|
34
|
+
if (typeof record.text === "string") return record.text;
|
|
35
|
+
if (record.content !== void 0) return contentText(record.content);
|
|
36
|
+
return "";
|
|
37
|
+
};
|
|
38
|
+
var messageError = (message) => {
|
|
39
|
+
if (message.role !== "assistant" || message.stopReason !== "error") return "";
|
|
40
|
+
const details = [];
|
|
41
|
+
if (typeof message.errorMessage === "string") details.push(message.errorMessage);
|
|
42
|
+
else if (typeof message.error === "string") details.push(message.error);
|
|
43
|
+
if (Array.isArray(message.diagnostics)) {
|
|
44
|
+
for (const value of message.diagnostics) {
|
|
45
|
+
const diagnostic = recordOf(value);
|
|
46
|
+
const nested = recordOf(diagnostic?.error);
|
|
47
|
+
const detail = typeof nested?.message === "string" ? nested.message : typeof diagnostic?.message === "string" ? diagnostic.message : void 0;
|
|
48
|
+
if (detail) details.push(detail);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return clip([...new Set(details)].join(" \xB7 ") || "Agent response failed", MAX_TOOL_SUMMARY_CHARS);
|
|
52
|
+
};
|
|
53
|
+
var redactInlineSecrets = (value) => value.replace(/\bBearer\s+[A-Za-z0-9._~+\/-]+=*/gi, "Bearer [redacted]").replace(/\bBasic\s+[A-Za-z0-9+/=]{8,}/gi, "Basic [redacted]").replace(/\b(?:sk|pk|ghp|github_pat|xox[baprs])[-_][A-Za-z0-9_-]{12,}\b/g, "[redacted]").replace(
|
|
54
|
+
/\b(Authorization|Proxy-Authorization|Cookie|Set-Cookie|X-Api-Key)\s*:\s*[^\r\n;]+/gi,
|
|
55
|
+
"$1: [redacted]"
|
|
56
|
+
).replace(
|
|
57
|
+
/\b([A-Z0-9_]*(?:PASSWORD|PASSWD|TOKEN|SECRET|API_KEY|ACCESS_KEY|PRIVATE_KEY|CREDENTIAL|COOKIE)[A-Z0-9_]*)\s*=\s*(?:"[^"]*"|'[^']*'|[^\s;&|]+)/gi,
|
|
58
|
+
"$1=[redacted]"
|
|
59
|
+
).replace(
|
|
60
|
+
/(--?(?:password|passwd|token|secret|api[-_]?key|access[-_]?key|credential|cookie))(?:=|\s+)(?:"[^"]*"|'[^']*'|[^\s;&|]+)/gi,
|
|
61
|
+
"$1=[redacted]"
|
|
62
|
+
).replace(/(https?:\/\/)[^\s/:@]+:[^\s/@]+@/gi, "$1[redacted]@");
|
|
63
|
+
var redact = (value, key = "", depth = 0, budget = {
|
|
64
|
+
chars: MAX_TRANSCRIPT_VALUE_CHARS,
|
|
65
|
+
nodes: MAX_TRANSCRIPT_VALUE_NODES
|
|
66
|
+
}) => {
|
|
67
|
+
if (secretKey.test(key)) return "[redacted]";
|
|
68
|
+
if (depth > 12) return "[nested value]";
|
|
69
|
+
if (budget.nodes <= 0) return "[value omitted]";
|
|
70
|
+
budget.nodes--;
|
|
71
|
+
if (typeof value === "string") {
|
|
72
|
+
const safe = terminalSafe(value, false);
|
|
73
|
+
if (safe.length >= MAX_ENCODED_STRING_CHARS && /^[A-Za-z0-9+/=_-]+$/.test(safe)) {
|
|
74
|
+
return `[large encoded value \xB7 ${safe.length} chars]`;
|
|
75
|
+
}
|
|
76
|
+
const available = Math.max(0, Math.min(MAX_TRANSCRIPT_STRING_CHARS, budget.chars));
|
|
77
|
+
if (available === 0) return "[text omitted]";
|
|
78
|
+
const hidden = redactInlineSecrets(clip(safe, available, false));
|
|
79
|
+
budget.chars = Math.max(0, budget.chars - hidden.length);
|
|
80
|
+
return hidden;
|
|
81
|
+
}
|
|
82
|
+
if (Array.isArray(value)) {
|
|
83
|
+
const entries2 = [];
|
|
84
|
+
for (const entry of value) {
|
|
85
|
+
if (budget.nodes <= 0) {
|
|
86
|
+
entries2.push(`[${value.length - entries2.length} entries omitted]`);
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
entries2.push(redact(entry, key, depth + 1, budget));
|
|
90
|
+
}
|
|
91
|
+
return entries2;
|
|
92
|
+
}
|
|
93
|
+
const record = recordOf(value);
|
|
94
|
+
if (!record) return value;
|
|
95
|
+
const entries = Object.entries(record);
|
|
96
|
+
const redacted = {};
|
|
97
|
+
for (let index = 0; index < entries.length; index++) {
|
|
98
|
+
if (budget.nodes <= 0) {
|
|
99
|
+
redacted["\u2026"] = `[${entries.length - index} fields omitted]`;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
const [name, entry] = entries[index];
|
|
103
|
+
redacted[name] = redact(entry, name, depth + 1, budget);
|
|
104
|
+
}
|
|
105
|
+
return redacted;
|
|
106
|
+
};
|
|
107
|
+
var redactRecord = (value) => {
|
|
108
|
+
const record = recordOf(value);
|
|
109
|
+
if (!record) return void 0;
|
|
110
|
+
return recordOf(redact(record));
|
|
111
|
+
};
|
|
112
|
+
var compactRedactedValue = (value) => {
|
|
113
|
+
try {
|
|
114
|
+
return clip(JSON.stringify(value).replace(/\s+/g, " "), MAX_TOOL_SUMMARY_CHARS);
|
|
115
|
+
} catch {
|
|
116
|
+
return clip(String(value ?? "").replace(/\s+/g, " "), MAX_TOOL_SUMMARY_CHARS);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// src/ui/conversation-transcript.ts
|
|
121
|
+
var DIRECT_ENVELOPE_PREFIX = "Fabric actor message from direct:";
|
|
122
|
+
var unwrapActorEnvelopeText = (text) => {
|
|
123
|
+
if (!text.startsWith(DIRECT_ENVELOPE_PREFIX)) return void 0;
|
|
124
|
+
const body = text.slice(DIRECT_ENVELOPE_PREFIX.length).trimStart();
|
|
125
|
+
if (!body.startsWith("{")) return void 0;
|
|
126
|
+
let parsed;
|
|
127
|
+
try {
|
|
128
|
+
parsed = JSON.parse(body);
|
|
129
|
+
} catch {
|
|
130
|
+
return void 0;
|
|
131
|
+
}
|
|
132
|
+
const envelope = recordOf(parsed);
|
|
133
|
+
if (!envelope || envelope.source !== "direct") return void 0;
|
|
134
|
+
const payload = recordOf(envelope.payload);
|
|
135
|
+
if (!payload || typeof payload.message !== "string") return void 0;
|
|
136
|
+
const message = payload.message;
|
|
137
|
+
return message.trim() ? message : void 0;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
recordOf,
|
|
142
|
+
terminalSafe,
|
|
143
|
+
clip,
|
|
144
|
+
contentText,
|
|
145
|
+
messageError,
|
|
146
|
+
redact,
|
|
147
|
+
redactRecord,
|
|
148
|
+
compactRedactedValue,
|
|
149
|
+
unwrapActorEnvelopeText
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=chunk-DLXPTBPL.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ui/transcript-sanitization.ts", "../../src/ui/conversation-transcript.ts"],
|
|
4
|
+
"sourcesContent": ["const MAX_TOOL_SUMMARY_CHARS = 500;\nconst MAX_ENCODED_STRING_CHARS = 160;\nconst MAX_TRANSCRIPT_VALUE_CHARS = 40_000;\nconst MAX_TRANSCRIPT_STRING_CHARS = 12_000;\nconst MAX_TRANSCRIPT_VALUE_NODES = 400;\nconst secretKey = /authorization|api[-_]?key|token|password|secret|cookie|credential|private[-_]?key/i;\n\ninterface RedactionBudget {\n chars: number;\n nodes: number;\n}\n\nexport const recordOf = (value: unknown): Record<string, unknown> | undefined =>\n typeof value === \"object\" && value !== null && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : undefined;\n\nexport const terminalSafe = (value: string, trim = true): string => {\n const safe = value\n .replace(/\\x1b\\][^\\x07]*(?:\\x07|\\x1b\\\\)/g, \"\")\n .replace(/\\x1b\\[[0-?]*[ -/]*[@-~]/g, \"\")\n .replace(/[\\u202a-\\u202e\\u2066-\\u2069\\u200e\\u200f]/gi, \"\")\n .replace(/[\\u0000-\\u0008\\u000b-\\u001f\\u007f-\\u009f]/g, \" \")\n .replace(/\\r\\n?/g, \"\\n\");\n return trim ? safe.trim() : safe;\n};\n\nconst graphemeSegmenter = Intl.Segmenter\n ? new Intl.Segmenter(undefined, { granularity: \"grapheme\" })\n : undefined;\n\nconst graphemes = (value: string): string[] =>\n graphemeSegmenter\n ? [...graphemeSegmenter.segment(value)].map((entry) => entry.segment)\n : Array.from(value);\n\nexport const clip = (value: string, max: number, trim = true): string => {\n const normalized = terminalSafe(value, trim);\n if (normalized.length <= max) return normalized;\n const parts = graphemes(normalized);\n if (parts.length <= max) return normalized;\n const tail = Math.min(1_000, Math.floor(max * 0.25));\n return `${parts.slice(0, max - tail - 2).join(\"\")}\u2026\\n${parts.slice(-tail).join(\"\")}`;\n};\n\nexport const contentText = (value: unknown): string => {\n if (typeof value === \"string\") return value;\n if (Array.isArray(value)) {\n return value\n .map((part) => {\n const record = recordOf(part);\n return record?.type === \"text\" && typeof record.text === \"string\" ? record.text : \"\";\n })\n .filter(Boolean)\n .join(\"\");\n }\n const record = recordOf(value);\n if (!record) return \"\";\n if (typeof record.text === \"string\") return record.text;\n if (record.content !== undefined) return contentText(record.content);\n return \"\";\n};\n\nexport const messageError = (message: Record<string, unknown>): string => {\n if (message.role !== \"assistant\" || message.stopReason !== \"error\") return \"\";\n const details: string[] = [];\n if (typeof message.errorMessage === \"string\") details.push(message.errorMessage);\n else if (typeof message.error === \"string\") details.push(message.error);\n if (Array.isArray(message.diagnostics)) {\n for (const value of message.diagnostics) {\n const diagnostic = recordOf(value);\n const nested = recordOf(diagnostic?.error);\n const detail =\n typeof nested?.message === \"string\"\n ? nested.message\n : typeof diagnostic?.message === \"string\"\n ? diagnostic.message\n : undefined;\n if (detail) details.push(detail);\n }\n }\n return clip([...new Set(details)].join(\" \u00B7 \") || \"Agent response failed\", MAX_TOOL_SUMMARY_CHARS);\n};\n\nconst redactInlineSecrets = (value: string): string =>\n value\n .replace(/\\bBearer\\s+[A-Za-z0-9._~+\\/-]+=*/gi, \"Bearer [redacted]\")\n .replace(/\\bBasic\\s+[A-Za-z0-9+/=]{8,}/gi, \"Basic [redacted]\")\n .replace(/\\b(?:sk|pk|ghp|github_pat|xox[baprs])[-_][A-Za-z0-9_-]{12,}\\b/g, \"[redacted]\")\n .replace(\n /\\b(Authorization|Proxy-Authorization|Cookie|Set-Cookie|X-Api-Key)\\s*:\\s*[^\\r\\n;]+/gi,\n \"$1: [redacted]\",\n )\n .replace(\n /\\b([A-Z0-9_]*(?:PASSWORD|PASSWD|TOKEN|SECRET|API_KEY|ACCESS_KEY|PRIVATE_KEY|CREDENTIAL|COOKIE)[A-Z0-9_]*)\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s;&|]+)/gi,\n \"$1=[redacted]\",\n )\n .replace(\n /(--?(?:password|passwd|token|secret|api[-_]?key|access[-_]?key|credential|cookie))(?:=|\\s+)(?:\"[^\"]*\"|'[^']*'|[^\\s;&|]+)/gi,\n \"$1=[redacted]\",\n )\n .replace(/(https?:\\/\\/)[^\\s/:@]+:[^\\s/@]+@/gi, \"$1[redacted]@\");\n\nexport const redact = (\n value: unknown,\n key = \"\",\n depth = 0,\n budget: RedactionBudget = {\n chars: MAX_TRANSCRIPT_VALUE_CHARS,\n nodes: MAX_TRANSCRIPT_VALUE_NODES,\n },\n): unknown => {\n if (secretKey.test(key)) return \"[redacted]\";\n if (depth > 12) return \"[nested value]\";\n if (budget.nodes <= 0) return \"[value omitted]\";\n budget.nodes--;\n if (typeof value === \"string\") {\n const safe = terminalSafe(value, false);\n if (safe.length >= MAX_ENCODED_STRING_CHARS && /^[A-Za-z0-9+/=_-]+$/.test(safe)) {\n return `[large encoded value \u00B7 ${safe.length} chars]`;\n }\n const available = Math.max(0, Math.min(MAX_TRANSCRIPT_STRING_CHARS, budget.chars));\n if (available === 0) return \"[text omitted]\";\n const hidden = redactInlineSecrets(clip(safe, available, false));\n budget.chars = Math.max(0, budget.chars - hidden.length);\n return hidden;\n }\n if (Array.isArray(value)) {\n const entries: unknown[] = [];\n for (const entry of value) {\n if (budget.nodes <= 0) {\n entries.push(`[${value.length - entries.length} entries omitted]`);\n break;\n }\n entries.push(redact(entry, key, depth + 1, budget));\n }\n return entries;\n }\n const record = recordOf(value);\n if (!record) return value;\n const entries = Object.entries(record);\n const redacted: Record<string, unknown> = {};\n for (let index = 0; index < entries.length; index++) {\n if (budget.nodes <= 0) {\n redacted[\"\u2026\"] = `[${entries.length - index} fields omitted]`;\n break;\n }\n const [name, entry] = entries[index]!;\n redacted[name] = redact(entry, name, depth + 1, budget);\n }\n return redacted;\n};\n\nexport const redactRecord = (value: unknown): Record<string, unknown> | undefined => {\n const record = recordOf(value);\n if (!record) return undefined;\n return recordOf(redact(record));\n};\n\nexport const compactRedactedValue = (value: unknown): string => {\n try {\n return clip(JSON.stringify(value).replace(/\\s+/g, \" \"), MAX_TOOL_SUMMARY_CHARS);\n } catch {\n return clip(String(value ?? \"\").replace(/\\s+/g, \" \"), MAX_TOOL_SUMMARY_CHARS);\n }\n};\n", "import type { FabricTranscriptEntry } from \"./transcript.js\";\nimport { recordOf } from \"./transcript-sanitization.js\";\n\nconst DIRECT_ENVELOPE_PREFIX = \"Fabric actor message from direct:\";\n\n/**\n * Display-only unwrapping of a Fabric direct actor message envelope.\n *\n * Actors receive messages as `Fabric actor message from <source>:` followed by\n * a JSON envelope. When that envelope is a validated direct actor message, this\n * returns the human payload text so transcripts show a normal user bubble.\n * Everything else \u2014 ordinary user JSON, code, malformed input, host-event\n * envelopes, non-direct sources \u2014 is preserved untouched by returning undefined.\n */\nexport const unwrapActorEnvelopeText = (text: string): string | undefined => {\n if (!text.startsWith(DIRECT_ENVELOPE_PREFIX)) return undefined;\n const body = text.slice(DIRECT_ENVELOPE_PREFIX.length).trimStart();\n if (!body.startsWith(\"{\")) return undefined;\n let parsed: unknown;\n try {\n parsed = JSON.parse(body);\n } catch {\n return undefined;\n }\n const envelope = recordOf(parsed);\n if (!envelope || envelope.source !== \"direct\") return undefined;\n const payload = recordOf(envelope.payload);\n if (!payload || typeof payload.message !== \"string\") return undefined;\n const message = payload.message;\n return message.trim() ? message : undefined;\n};\n\nexport interface FocusedTranscriptView {\n /** Entries to render in the focused (collapsed) view. */\n entries: FabricTranscriptEntry[];\n /** Raw diagnostics hidden by collapse; render these when expanded. */\n hiddenDiagnostics: FabricTranscriptEntry[];\n}\n\nconst workerWarningCount = (entry: FabricTranscriptEntry): number => {\n if (entry.kind !== \"error\" || entry.label !== \"Worker stderr\" || typeof entry.text !== \"string\") return 0;\n if (entry.warningCount !== undefined) return entry.warningCount;\n const lines = entry.text.split(/\\r?\\n/).filter((line) => line.trim());\n // Never collapse a mixed warning/error chunk just because its first line is a warning.\n return lines.length > 0 && lines.every((line) => /^\\s*Warning:/.test(line)) ? lines.length : 0;\n};\n\n/**\n * Pure focused-view projection: collapses runs of worker stderr warnings into\n * one diagnostics summary entry without discarding anything \u2014 hidden originals\n * come back in `hiddenDiagnostics` so an expand toggle can render them. Real\n * errors (non-warning stderr) always stay visible.\n */\nexport const focusTranscriptDiagnostics = (\n entries: FabricTranscriptEntry[],\n expandHint = \"Ctrl+O\",\n): FocusedTranscriptView => {\n const focused: FabricTranscriptEntry[] = [];\n const hidden: FabricTranscriptEntry[] = [];\n let run: FabricTranscriptEntry[] = [];\n\n const flushRun = (): void => {\n if (run.length === 0) return;\n const count = run.reduce((sum, entry) => sum + workerWarningCount(entry), 0);\n if (count === 1) {\n focused.push(run[0]!);\n } else {\n focused.push({\n id: `diagnostics-${run[0]!.id}`,\n kind: \"status\",\n label: \"Diagnostics\",\n text: `${count} worker warnings collapsed (${expandHint} to expand)`,\n status: \"completed\",\n });\n hidden.push(...run);\n }\n run = [];\n };\n\n for (const entry of entries) {\n if (workerWarningCount(entry) > 0) run.push(entry);\n else {\n flushRun();\n focused.push(entry);\n }\n }\n flushRun();\n return { entries: focused, hiddenDiagnostics: hidden };\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["record", "entries"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/residency/protocol.ts
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
var RESIDENT_HOST_FORMAT = 1;
|
|
5
|
+
var RESIDENT_DELIVERY_PREFIX = "residency/deliveries/";
|
|
6
|
+
var digest = (value) => createHash("sha256").update(value).digest("hex");
|
|
7
|
+
var residentHostId = (rootId) => `resident:${digest(rootId).slice(0, 24)}`;
|
|
8
|
+
var residentRoot = (meshRoot, rootId) => path.join(meshRoot, "residency", digest(rootId));
|
|
9
|
+
var residentDeliveryPrefix = (rootId) => `${RESIDENT_DELIVERY_PREFIX}${digest(rootId).slice(0, 32)}/`;
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
RESIDENT_HOST_FORMAT,
|
|
13
|
+
residentHostId,
|
|
14
|
+
residentRoot,
|
|
15
|
+
residentDeliveryPrefix
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=chunk-ED3BRM6P.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/residency/protocol.ts"],
|
|
4
|
+
"sourcesContent": ["import { createHash } from \"node:crypto\";\nimport path from \"node:path\";\nimport type { FabricOwnedModelGuidance } from \"../components/model-guidance.js\";\nimport type { FabricModelCandidate } from \"../core/model-resolution.js\";\nimport type { FabricAgentConfig, FabricMeshConfig, FabricRetentionConfig } from \"../config.js\";\nimport type { FabricActorInfo, FabricActorRequest } from \"../actors/types.js\";\nimport type { AgentHandleInfo, AgentRunRequest } from \"../agents/types.js\";\nimport type { MeshIdentity } from \"../mesh/store.js\";\n\nexport const RESIDENT_HOST_FORMAT = 1 as const;\nconst RESIDENT_DELIVERY_PREFIX = \"residency/deliveries/\";\n\nconst digest = (value: string): string =>\n createHash(\"sha256\").update(value).digest(\"hex\");\n\nexport const residentHostId = (rootId: string): string =>\n `resident:${digest(rootId).slice(0, 24)}`;\n\nexport const residentRoot = (meshRoot: string, rootId: string): string =>\n path.join(meshRoot, \"residency\", digest(rootId));\n\nexport const residentDeliveryPrefix = (rootId: string): string =>\n `${RESIDENT_DELIVERY_PREFIX}${digest(rootId).slice(0, 32)}/`;\n\nexport interface ResidentOmpModelState {\n available: FabricModelCandidate[];\n aliases: Record<string, string[]>;\n defaultModel?: string;\n}\n\nexport interface ResidentHostConfig {\n format: typeof RESIDENT_HOST_FORMAT;\n rootId: string;\n sessionId: string;\n cwd: string;\n projectRoot: string;\n meshRoot: string;\n actorRoot: string;\n sessionActorRoot?: string;\n residencyRoot: string;\n fullCodeMode: boolean;\n agents: FabricAgentConfig;\n mesh: FabricMeshConfig;\n retention: FabricRetentionConfig;\n workerPath: string;\n fabricExtensionPath: string;\n ompBinary: string;\n claudeBinary: string;\n vedaBinary: string;\n models?: ResidentOmpModelState;\n modelGuidance?: FabricOwnedModelGuidance[];\n}\n\nexport interface ResidentHostOwner {\n format: typeof RESIDENT_HOST_FORMAT;\n hostId: string;\n pid: number;\n token: string;\n startedAt: number;\n readyAt: number;\n}\n\ninterface ResidentSpawnCommand {\n format: typeof RESIDENT_HOST_FORMAT;\n operation: \"spawn\";\n requestId: string;\n rootId: string;\n request: AgentRunRequest;\n createdAt: number;\n}\n\ninterface ResidentCleanupCommand {\n format: typeof RESIDENT_HOST_FORMAT;\n operation: \"cleanup\";\n requestId: string;\n rootId: string;\n id: string;\n deleteBranch: boolean;\n createdAt: number;\n}\n\ninterface ResidentForegroundCommand {\n format: typeof RESIDENT_HOST_FORMAT;\n operation: \"foreground\";\n requestId: string;\n rootId: string;\n id: string;\n createdAt: number;\n}\n\ninterface ResidentRemoveActorCommand {\n format: typeof RESIDENT_HOST_FORMAT;\n operation: \"removeActor\";\n requestId: string;\n rootId: string;\n id: string;\n createdAt: number;\n}\n\ninterface ResidentCreateActorCommand {\n format: typeof RESIDENT_HOST_FORMAT;\n operation: \"createActor\";\n requestId: string;\n rootId: string;\n request: FabricActorRequest;\n createdAt: number;\n}\n\nexport type ResidentCommand =\n | ResidentSpawnCommand\n | ResidentCleanupCommand\n | ResidentForegroundCommand\n | ResidentRemoveActorCommand\n | ResidentCreateActorCommand;\n\nexport interface ResidentCommandResponse {\n format: typeof RESIDENT_HOST_FORMAT;\n requestId: string;\n ok: boolean;\n handle?: AgentHandleInfo;\n actor?: FabricActorInfo;\n error?: string;\n completedAt: number;\n}\n\nexport interface ResidentAgentMetadata {\n format: typeof RESIDENT_HOST_FORMAT;\n rootId: string;\n id: string;\n runDirectory: string;\n handle: AgentHandleInfo;\n worktreeGitRoot?: string;\n createdAt: number;\n updatedAt: number;\n}\n\nexport interface ResidentDeliveryRecord {\n format: typeof RESIDENT_HOST_FORMAT;\n id: string;\n rootId: string;\n from: MeshIdentity;\n delivery: \"steer\" | \"followUp\";\n triggerTurn: boolean;\n message: string;\n data?: unknown;\n createdAt: number;\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,kBAAkB;AAC3B,OAAO,UAAU;AAQV,IAAM,uBAAuB;AACpC,IAAM,2BAA2B;AAEjC,IAAM,SAAS,CAAC,UACd,WAAW,QAAQ,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK;AAE1C,IAAM,iBAAiB,CAAC,WAC7B,YAAY,OAAO,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC;AAElC,IAAM,eAAe,CAAC,UAAkB,WAC7C,KAAK,KAAK,UAAU,aAAa,OAAO,MAAM,CAAC;AAE1C,IAAM,yBAAyB,CAAC,WACrC,GAAG,wBAAwB,GAAG,OAAO,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// src/ui/symbol-theme.ts
|
|
2
|
+
var box = {
|
|
3
|
+
topLeft: "\u256D",
|
|
4
|
+
topRight: "\u256E",
|
|
5
|
+
bottomLeft: "\u2570",
|
|
6
|
+
bottomRight: "\u256F",
|
|
7
|
+
horizontal: "\u2500",
|
|
8
|
+
vertical: "\u2502",
|
|
9
|
+
teeDown: "\u252C",
|
|
10
|
+
teeUp: "\u2534",
|
|
11
|
+
teeLeft: "\u2524",
|
|
12
|
+
teeRight: "\u251C",
|
|
13
|
+
cross: "\u253C"
|
|
14
|
+
};
|
|
15
|
+
var ompSymbolTheme = {
|
|
16
|
+
cursor: "\u203A",
|
|
17
|
+
inputCursor: "\u2502",
|
|
18
|
+
boxRound: box,
|
|
19
|
+
boxSharp: {
|
|
20
|
+
topLeft: "\u250C",
|
|
21
|
+
topRight: "\u2510",
|
|
22
|
+
bottomLeft: "\u2514",
|
|
23
|
+
bottomRight: "\u2518",
|
|
24
|
+
horizontal: "\u2500",
|
|
25
|
+
vertical: "\u2502",
|
|
26
|
+
teeDown: "\u252C",
|
|
27
|
+
teeUp: "\u2534",
|
|
28
|
+
teeLeft: "\u2524",
|
|
29
|
+
teeRight: "\u251C",
|
|
30
|
+
cross: "\u253C"
|
|
31
|
+
},
|
|
32
|
+
table: box,
|
|
33
|
+
quoteBorder: "\u2502",
|
|
34
|
+
hrChar: "\u2500",
|
|
35
|
+
colorSwatch: "\u25A0",
|
|
36
|
+
spinnerFrames: ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"]
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
ompSymbolTheme
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=chunk-G2IBGGBM.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ui/symbol-theme.ts"],
|
|
4
|
+
"sourcesContent": ["import type { SymbolTheme } from \"@oh-my-pi/pi-tui\";\n\nconst box = {\n topLeft: \"\u256D\",\n topRight: \"\u256E\",\n bottomLeft: \"\u2570\",\n bottomRight: \"\u256F\",\n horizontal: \"\u2500\",\n vertical: \"\u2502\",\n teeDown: \"\u252C\",\n teeUp: \"\u2534\",\n teeLeft: \"\u2524\",\n teeRight: \"\u251C\",\n cross: \"\u253C\",\n};\n\nexport const ompSymbolTheme: SymbolTheme = {\n cursor: \"\u203A\",\n inputCursor: \"\u2502\",\n boxRound: box,\n boxSharp: {\n topLeft: \"\u250C\",\n topRight: \"\u2510\",\n bottomLeft: \"\u2514\",\n bottomRight: \"\u2518\",\n horizontal: \"\u2500\",\n vertical: \"\u2502\",\n teeDown: \"\u252C\",\n teeUp: \"\u2534\",\n teeLeft: \"\u2524\",\n teeRight: \"\u251C\",\n cross: \"\u253C\",\n },\n table: box,\n quoteBorder: \"\u2502\",\n hrChar: \"\u2500\",\n colorSwatch: \"\u25A0\",\n spinnerFrames: [\"\u280B\", \"\u2819\", \"\u2839\", \"\u2838\", \"\u283C\", \"\u2834\", \"\u2826\", \"\u2827\", \"\u2807\", \"\u280F\"],\n};\n"],
|
|
5
|
+
"mappings": ";AAEA,IAAM,MAAM;AAAA,EACV,SAAS;AAAA,EACT,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AACT;AAEO,IAAM,iBAA8B;AAAA,EACzC,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,UAAU;AAAA,EACV,UAAU;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,OAAO;AAAA,IACP,SAAS;AAAA,IACT,UAAU;AAAA,IACV,OAAO;AAAA,EACT;AAAA,EACA,OAAO;AAAA,EACP,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,eAAe,CAAC,UAAK,UAAK,UAAK,UAAK,UAAK,UAAK,UAAK,UAAK,UAAK,QAAG;AAClE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|