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,15 @@
|
|
|
1
|
+
import { type EntropyObservationPoolFile } from "./pool.js";
|
|
2
|
+
export declare const observationPoolDirectory: (agentDir: string) => string;
|
|
3
|
+
export interface LoadedObservationPool {
|
|
4
|
+
file?: EntropyObservationPoolFile;
|
|
5
|
+
error?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const loadObservationPool: (agentDir: string) => LoadedObservationPool;
|
|
8
|
+
export declare const loadObservationPoolAsync: (agentDir: string) => Promise<LoadedObservationPool>;
|
|
9
|
+
export interface SavedObservationPool {
|
|
10
|
+
file: EntropyObservationPoolFile;
|
|
11
|
+
written: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const saveObservationPool: (agentDir: string, file: EntropyObservationPoolFile) => SavedObservationPool;
|
|
14
|
+
export declare const saveObservationPoolAsync: (agentDir: string, file: EntropyObservationPoolFile) => Promise<SavedObservationPool>;
|
|
15
|
+
//# sourceMappingURL=pool-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool-store.d.ts","sourceRoot":"","sources":["../../src/entropy/pool-store.ts"],"names":[],"mappings":"AAWA,OAAO,EAGL,KAAK,0BAA0B,EAGhC,MAAM,WAAW,CAAC;AAcnB,eAAO,MAAM,wBAAwB,GAAI,UAAU,MAAM,KAAG,MAClB,CAAC;AA6F3C,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,KAAG,qBAmBtD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,UAAU,MAAM,KACf,OAAO,CAAC,qBAAqB,CAiB/B,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,MAAM,0BAA0B,KAC/B,oBAyBA,CAAC;AAEJ,eAAO,MAAM,wBAAwB,GACnC,UAAU,MAAM,EAChB,MAAM,0BAA0B,KAC/B,OAAO,CAAC,oBAAoB,CA8B5B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { EntropyValueObservation } from "./types.js";
|
|
2
|
+
export declare const OBSERVATION_POOL_VERSION: 1;
|
|
3
|
+
export declare const POOL_TRACKED_VALUES = 16;
|
|
4
|
+
export declare const POOL_TRACKED_SESSIONS = 16;
|
|
5
|
+
export declare const POOL_BAKED_DIGESTS = 512;
|
|
6
|
+
export interface EntropyPoolValueCount {
|
|
7
|
+
value: string | number | boolean;
|
|
8
|
+
count: number;
|
|
9
|
+
}
|
|
10
|
+
export interface EntropyObservationPoolEntry {
|
|
11
|
+
ref: string;
|
|
12
|
+
key: string;
|
|
13
|
+
values: EntropyPoolValueCount[];
|
|
14
|
+
total: number;
|
|
15
|
+
}
|
|
16
|
+
export interface EntropyPoolTrackedSession {
|
|
17
|
+
file: string;
|
|
18
|
+
digest: string;
|
|
19
|
+
counts: Record<string, number>;
|
|
20
|
+
}
|
|
21
|
+
export interface EntropyObservationPoolFile {
|
|
22
|
+
version: typeof OBSERVATION_POOL_VERSION;
|
|
23
|
+
entries: EntropyObservationPoolEntry[];
|
|
24
|
+
tracked: EntropyPoolTrackedSession[];
|
|
25
|
+
baked: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface EntropyObservationWindow {
|
|
28
|
+
file: string;
|
|
29
|
+
observations: readonly EntropyValueObservation[];
|
|
30
|
+
}
|
|
31
|
+
export interface MergedObservationPool {
|
|
32
|
+
file: EntropyObservationPoolFile;
|
|
33
|
+
mergedSessions: number;
|
|
34
|
+
skippedSessions: number;
|
|
35
|
+
}
|
|
36
|
+
export declare const observationIdentity: (observation: EntropyValueObservation) => string;
|
|
37
|
+
export declare const observationWindowDigest: (observations: readonly EntropyValueObservation[]) => string;
|
|
38
|
+
export declare const mergeObservationWindow: (pool: EntropyObservationPoolFile | undefined, windows: readonly EntropyObservationWindow[]) => MergedObservationPool;
|
|
39
|
+
export declare const mergeObservationWindowAsync: (pool: EntropyObservationPoolFile | undefined, windows: readonly EntropyObservationWindow[]) => Promise<MergedObservationPool>;
|
|
40
|
+
export declare const poolToValueObservations: (pool: EntropyObservationPoolFile | undefined) => EntropyValueObservation[];
|
|
41
|
+
//# sourceMappingURL=pool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/entropy/pool.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,eAAO,MAAM,wBAAwB,EAAG,CAAU,CAAC;AACnD,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AACxC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC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AAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EntropyProposal } from "./types.js";
|
|
2
|
+
export declare const formatEntropyMetric: (value: number) => string;
|
|
3
|
+
export declare const formatEntropyCommandHints: () => string[];
|
|
4
|
+
export declare const entropyReviewKey: (proposals: readonly EntropyProposal[]) => string;
|
|
5
|
+
export declare const formatEntropyReviewNotice: (proposals: readonly EntropyProposal[]) => string;
|
|
6
|
+
export declare const formatEntropyCompileNotice: (input: {
|
|
7
|
+
proposals: readonly EntropyProposal[];
|
|
8
|
+
beforeScore: number;
|
|
9
|
+
afterScore: number;
|
|
10
|
+
elapsedMs: number;
|
|
11
|
+
reviewCount?: number;
|
|
12
|
+
}) => string;
|
|
13
|
+
//# sourceMappingURL=presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../src/entropy/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAwBlD,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAAyC,CAAC;AAE9F,eAAO,MAAM,yBAAyB,QAAO,MAAM,EAMlD,CAAC;AA6CF,eAAO,MAAM,gBAAgB,GAAI,WAAW,SAAS,eAAe,EAAE,KAAG,MAwBxE,CAAC;AAaF,eAAO,MAAM,yBAAyB,GACpC,WAAW,SAAS,eAAe,EAAE,KACpC,MAKF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,OAAO;IAChD,SAAS,EAAE,SAAS,eAAe,EAAE,CAAC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,KAAG,MAWH,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { EntropyAuditCall, EntropyReport, EntropySurfaceSnapshot, EntropyTraceInput, EntropyTrend, EntropyValueObservation } from "./types.js";
|
|
2
|
+
export interface SessionCorpusEntry {
|
|
3
|
+
file: string;
|
|
4
|
+
operations: number;
|
|
5
|
+
report: EntropyReport;
|
|
6
|
+
}
|
|
7
|
+
export interface SessionModelTrend {
|
|
8
|
+
model: string;
|
|
9
|
+
sessions: number;
|
|
10
|
+
latestBehavioralScore: number;
|
|
11
|
+
slopePerSession: number;
|
|
12
|
+
latestRejectionsPer1k: number;
|
|
13
|
+
}
|
|
14
|
+
export interface SessionCorpusResult {
|
|
15
|
+
files: readonly string[];
|
|
16
|
+
sessions: SessionCorpusEntry[];
|
|
17
|
+
latest?: EntropyReport;
|
|
18
|
+
trend: EntropyTrend;
|
|
19
|
+
models: SessionModelTrend[];
|
|
20
|
+
}
|
|
21
|
+
export declare const projectSessionFiles: (agentDir: string, cwd: string, limit?: number) => string[];
|
|
22
|
+
export declare const machineSessionFiles: (agentDir: string, cwd: string | undefined, limit?: number) => string[];
|
|
23
|
+
export declare const projectSessionFilesAsync: (agentDir: string, cwd: string, limit?: number) => Promise<string[]>;
|
|
24
|
+
export declare const machineSessionFilesAsync: (agentDir: string, cwd: string | undefined, limit?: number) => Promise<string[]>;
|
|
25
|
+
export declare const measureSessionCorpus: (input: {
|
|
26
|
+
files: readonly string[];
|
|
27
|
+
surface?: EntropySurfaceSnapshot;
|
|
28
|
+
catalogDigest?: string;
|
|
29
|
+
}) => SessionCorpusResult;
|
|
30
|
+
export interface SessionObservationWindow {
|
|
31
|
+
file: string;
|
|
32
|
+
observations: EntropyValueObservation[];
|
|
33
|
+
}
|
|
34
|
+
export interface SessionWindowEvidence {
|
|
35
|
+
traces: EntropyTraceInput[];
|
|
36
|
+
valueObservations: EntropyValueObservation[];
|
|
37
|
+
auditCalls: EntropyAuditCall[];
|
|
38
|
+
observationWindows: SessionObservationWindow[];
|
|
39
|
+
}
|
|
40
|
+
export declare const sessionWindowEvidenceAsync: (files: readonly string[]) => Promise<SessionWindowEvidence>;
|
|
41
|
+
export declare const measureSessionCorpusAsync: (input: {
|
|
42
|
+
files: readonly string[];
|
|
43
|
+
surface?: EntropySurfaceSnapshot;
|
|
44
|
+
catalogDigest?: string;
|
|
45
|
+
}) => Promise<SessionCorpusResult>;
|
|
46
|
+
export declare const sessionWindowEvidence: (files: readonly string[]) => SessionWindowEvidence;
|
|
47
|
+
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/entropy/sessions.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,gBAAgB,EAEhB,aAAa,EACb,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACxB,MAAM,YAAY,CAAC;AA4DpB,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;CACvB;AAID,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAID,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,KAAK,MAAM,EACX,cAA8B,KAC7B,MAAM,EAyBR,CAAC;AAOF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,EAChB,KAAK,MAAM,GAAG,SAAS,EACvB,cAA8B,KAC7B,MAAM,EA0DR,CAAC;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
+
import type { EntropySurfaceSnapshot } from "./types.js";
|
|
4
|
+
export interface EntropySurfaceListAction {
|
|
5
|
+
ref: string;
|
|
6
|
+
inputSchema: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface EntropySurfaceRegistry {
|
|
9
|
+
list(request: {
|
|
10
|
+
limit?: number;
|
|
11
|
+
declared?: boolean;
|
|
12
|
+
}, context: FabricInvocationContext): Promise<readonly EntropySurfaceListAction[]>;
|
|
13
|
+
}
|
|
14
|
+
export declare const liveSurfaceSnapshot: (input: {
|
|
15
|
+
registry: EntropySurfaceRegistry;
|
|
16
|
+
extensionContext: ExtensionContext;
|
|
17
|
+
cwd: string;
|
|
18
|
+
}) => Promise<EntropySurfaceSnapshot>;
|
|
19
|
+
export declare const entropySurfaceHash: (surface: EntropySurfaceSnapshot) => string;
|
|
20
|
+
export interface EntropySurfaceFreedomEntry {
|
|
21
|
+
ref: string;
|
|
22
|
+
freedom: number;
|
|
23
|
+
}
|
|
24
|
+
export interface EntropySurfaceFreedomReport {
|
|
25
|
+
actions: EntropySurfaceFreedomEntry[];
|
|
26
|
+
total: number;
|
|
27
|
+
mean: number;
|
|
28
|
+
}
|
|
29
|
+
export declare const surfaceFreedomReport: (surface: EntropySurfaceSnapshot) => EntropySurfaceFreedomReport;
|
|
30
|
+
//# sourceMappingURL=surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../src/entropy/surface.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAG9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAIzD,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CACF,OAAO,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAC/C,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,SAAS,wBAAwB,EAAE,CAAC,CAAC;CACjD;AAiBD,eAAO,MAAM,mBAAmB,GAAU,OAAO;IAC/C,QAAQ,EAAE,sBAAsB,CAAC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,GAAG,EAAE,MAAM,CAAC;CACb,KAAG,OAAO,CAAC,sBAAsB,CAejC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,SAAS,sBAAsB,KAAG,MAC5C,CAAC;AAE1B,MAAM,WAAW,0BAA0B;IACzC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAMD,eAAO,MAAM,oBAAoB,GAC/B,SAAS,sBAAsB,KAC9B,2BAUF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type CompiledSurfaceFile } from "./compiled-surface.js";
|
|
2
|
+
import type { EntropyAuditCall, EntropySurfaceSnapshot, EntropyTraceInput } from "./types.js";
|
|
3
|
+
export type EntropyTrialClass = "both-accept" | "both-reject" | "tightening-cost" | "typed-failure-win" | "quarantine-win" | "quarantine-cost";
|
|
4
|
+
export interface EntropyTrialTotals {
|
|
5
|
+
operations: number;
|
|
6
|
+
bothAccept: number;
|
|
7
|
+
bothReject: number;
|
|
8
|
+
tighteningCost: number;
|
|
9
|
+
typedFailureWin: number;
|
|
10
|
+
quarantineWin: number;
|
|
11
|
+
quarantineCost: number;
|
|
12
|
+
}
|
|
13
|
+
export interface EntropyTrialDivergence {
|
|
14
|
+
ref: string;
|
|
15
|
+
trialClass: EntropyTrialClass;
|
|
16
|
+
count: number;
|
|
17
|
+
}
|
|
18
|
+
export type EntropyTrialVerdict = "no-evidence" | "clean" | "costly";
|
|
19
|
+
export interface EntropyTrialReport {
|
|
20
|
+
verdict: EntropyTrialVerdict;
|
|
21
|
+
/** Window score against the declared surface. */
|
|
22
|
+
declaredScore: number;
|
|
23
|
+
/** Window score against the compiled surface. */
|
|
24
|
+
effectiveScore: number;
|
|
25
|
+
delta: number;
|
|
26
|
+
totals: EntropyTrialTotals;
|
|
27
|
+
divergences: EntropyTrialDivergence[];
|
|
28
|
+
}
|
|
29
|
+
export declare const runEntropyTrial: (input: {
|
|
30
|
+
traces: readonly EntropyTraceInput[];
|
|
31
|
+
live: EntropySurfaceSnapshot;
|
|
32
|
+
artifact?: CompiledSurfaceFile;
|
|
33
|
+
auditCalls?: readonly EntropyAuditCall[];
|
|
34
|
+
}) => EntropyTrialReport;
|
|
35
|
+
//# sourceMappingURL=trial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trial.d.ts","sourceRoot":"","sources":["../../src/entropy/trial.ts"],"names":[],"mappings":"AAUA,OAAO,EAAwB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIvF,OAAO,KAAK,EACV,gBAAgB,EAEhB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,YAAY,CAAC;AASpB,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,aAAa,GACb,iBAAiB,GACjB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,iBAAiB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErE,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,iDAAiD;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,sBAAsB,EAAE,CAAC;CACvC;AAmCD,eAAO,MAAM,eAAe,GAAI,OAAO;IACrC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACrC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;CAC1C,KAAG,kBAyGH,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export declare const ENTROPY_METRIC_VERSION: 2;
|
|
2
|
+
export declare const ENTROPY_WEIGHTS: {
|
|
3
|
+
readonly shape: 1;
|
|
4
|
+
readonly failureStage: 1;
|
|
5
|
+
readonly churn: 4;
|
|
6
|
+
readonly navigation: 4;
|
|
7
|
+
readonly flow: 1;
|
|
8
|
+
readonly lexicon: 2;
|
|
9
|
+
readonly staticFreedom: 0.25;
|
|
10
|
+
};
|
|
11
|
+
export declare const ENTROPY_INVOCATION_STAGES: readonly string[];
|
|
12
|
+
export type EntropyOutcome = "succeeded" | "failed" | "aborted" | "timed_out";
|
|
13
|
+
export interface EntropySurfaceAction {
|
|
14
|
+
ref: string;
|
|
15
|
+
inputSchema: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface EntropySurfaceSnapshot {
|
|
18
|
+
version: 1;
|
|
19
|
+
actions: EntropySurfaceAction[];
|
|
20
|
+
}
|
|
21
|
+
export interface EntropyOperationInput {
|
|
22
|
+
ref: string;
|
|
23
|
+
args: Record<string, unknown>;
|
|
24
|
+
outcome: EntropyOutcome;
|
|
25
|
+
failureStage?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface EntropyTraceInput {
|
|
28
|
+
operations: EntropyOperationInput[];
|
|
29
|
+
taskKey?: string;
|
|
30
|
+
/** Producing model, stamped from the session scan as `provider/modelId`. */
|
|
31
|
+
model?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface EntropyRepairRowInput {
|
|
34
|
+
kind: "keyAlias" | "actionAlias";
|
|
35
|
+
ref: string;
|
|
36
|
+
from: string;
|
|
37
|
+
to: string;
|
|
38
|
+
}
|
|
39
|
+
export interface EntropyValueObservation {
|
|
40
|
+
ref: string;
|
|
41
|
+
key: string;
|
|
42
|
+
value: string | number | boolean;
|
|
43
|
+
/** Observation multiplicity; window scans emit one entry per call, pools emit one per distinct value. */
|
|
44
|
+
count?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface EntropyAuditCall {
|
|
47
|
+
ref: string;
|
|
48
|
+
args: Record<string, unknown>;
|
|
49
|
+
}
|
|
50
|
+
export interface EntropyShapeSignature {
|
|
51
|
+
signature: string;
|
|
52
|
+
count: number;
|
|
53
|
+
}
|
|
54
|
+
export interface EntropyRefReport {
|
|
55
|
+
ref: string;
|
|
56
|
+
calls: number;
|
|
57
|
+
succeeded: number;
|
|
58
|
+
failed: number;
|
|
59
|
+
shapeSignatures: EntropyShapeSignature[];
|
|
60
|
+
shapeEntropyBits: number;
|
|
61
|
+
failureStageEntropyBits: number;
|
|
62
|
+
churnRate: number;
|
|
63
|
+
lexiconRows: number;
|
|
64
|
+
staticFreedom: number;
|
|
65
|
+
score: number;
|
|
66
|
+
}
|
|
67
|
+
export interface EntropyTotals {
|
|
68
|
+
traces: number;
|
|
69
|
+
operations: number;
|
|
70
|
+
actionOperations: number;
|
|
71
|
+
discoveryOperations: number;
|
|
72
|
+
workflowOperations: number;
|
|
73
|
+
succeeded: number;
|
|
74
|
+
failed: number;
|
|
75
|
+
aborted: number;
|
|
76
|
+
timedOut: number;
|
|
77
|
+
invocationRejections: number;
|
|
78
|
+
invocationRejectionsPer1k: number;
|
|
79
|
+
}
|
|
80
|
+
export interface EntropyModelReport {
|
|
81
|
+
model: string;
|
|
82
|
+
operations: number;
|
|
83
|
+
actionOperations: number;
|
|
84
|
+
succeeded: number;
|
|
85
|
+
invocationRejections: number;
|
|
86
|
+
invocationRejectionsPer1k: number;
|
|
87
|
+
behavioralScore: number;
|
|
88
|
+
}
|
|
89
|
+
export interface EntropyReport {
|
|
90
|
+
metricVersion: typeof ENTROPY_METRIC_VERSION;
|
|
91
|
+
catalogDigest: string;
|
|
92
|
+
totals: EntropyTotals;
|
|
93
|
+
shapeEntropyBits: number;
|
|
94
|
+
failureStageEntropyBits: number;
|
|
95
|
+
churnRate: number;
|
|
96
|
+
navigationRatio: number;
|
|
97
|
+
flowEntropyBits: number;
|
|
98
|
+
lexiconRows: number;
|
|
99
|
+
staticFreedom: number;
|
|
100
|
+
/** Surface share of the score: static freedom of the refs the corpus used. */
|
|
101
|
+
staticScore: number;
|
|
102
|
+
/** Everything models exercised: wobble, churn, rejections, navigation, flow, lexicon. */
|
|
103
|
+
behavioralScore: number;
|
|
104
|
+
score: number;
|
|
105
|
+
refs: EntropyRefReport[];
|
|
106
|
+
/** Behavioral attribution per producing model; empty when no trace carries one. */
|
|
107
|
+
byModel: EntropyModelReport[];
|
|
108
|
+
}
|
|
109
|
+
export type EntropyProposal = {
|
|
110
|
+
kind: "enum-tighten";
|
|
111
|
+
ref: string;
|
|
112
|
+
key: string;
|
|
113
|
+
values: (string | number | boolean)[];
|
|
114
|
+
calls: number;
|
|
115
|
+
distinct: number;
|
|
116
|
+
topShare: number;
|
|
117
|
+
} | {
|
|
118
|
+
kind: "declare-enum";
|
|
119
|
+
ref: string;
|
|
120
|
+
key: string;
|
|
121
|
+
values: (string | number | boolean)[];
|
|
122
|
+
calls: number;
|
|
123
|
+
distinct: number;
|
|
124
|
+
topShare: number;
|
|
125
|
+
} | {
|
|
126
|
+
kind: "overload-split";
|
|
127
|
+
ref: string;
|
|
128
|
+
shapeEntropyBits: number;
|
|
129
|
+
clusters: {
|
|
130
|
+
keys: string[];
|
|
131
|
+
calls: number;
|
|
132
|
+
}[];
|
|
133
|
+
} | {
|
|
134
|
+
kind: "sequence-fuse";
|
|
135
|
+
sequence: string[];
|
|
136
|
+
occurrences: number;
|
|
137
|
+
} | {
|
|
138
|
+
kind: "noise-quarantine";
|
|
139
|
+
ref: string;
|
|
140
|
+
calls: number;
|
|
141
|
+
succeeded: number;
|
|
142
|
+
failed: number;
|
|
143
|
+
failureStageEntropyBits: number;
|
|
144
|
+
};
|
|
145
|
+
export interface EntropyGateResult {
|
|
146
|
+
passed: boolean;
|
|
147
|
+
beforeScore: number;
|
|
148
|
+
afterScore: number;
|
|
149
|
+
delta: number;
|
|
150
|
+
reasons: string[];
|
|
151
|
+
}
|
|
152
|
+
export interface EntropyTrend {
|
|
153
|
+
count: number;
|
|
154
|
+
first?: number;
|
|
155
|
+
last?: number;
|
|
156
|
+
slopePerStep: number;
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/entropy/types.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AAIjD,eAAO,MAAM,eAAe;;;;;;;;CAQlB,CAAC;AAIX,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAAuC,CAAC;AAE/F,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAC;AAE9E,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM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AW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAID,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Usage } from "@oh-my-pi/pi-ai";
|
|
2
|
+
import type { ExtensionContext } from "@oh-my-pi/pi-coding-agent";
|
|
3
|
+
import { type FabricExecutionTraceV1 } from "./audit/trace.js";
|
|
4
|
+
import { FabricActivityStore } from "./activity/store.js";
|
|
5
|
+
import type { CapturedToolCatalog } from "./capture/catalog.js";
|
|
6
|
+
import type { FabricRunDisplay } from "./activity/types.js";
|
|
7
|
+
import { type FabricConfig } from "./config.js";
|
|
8
|
+
import { ActionRegistry, type FabricCallAudit } from "./core/action-registry.js";
|
|
9
|
+
import { FabricSessionApprovals } from "./core/approval-controller.js";
|
|
10
|
+
import { FabricAutoApprovalClassifier } from "./core/auto-approval-classifier.js";
|
|
11
|
+
import type { FabricCommittedCapabilityView } from "./protocol.js";
|
|
12
|
+
import type { FabricTypeError } from "./runtime/type-checker.js";
|
|
13
|
+
export interface FabricExecutionResult {
|
|
14
|
+
success: boolean;
|
|
15
|
+
value: unknown;
|
|
16
|
+
logs: string[];
|
|
17
|
+
audits: FabricCallAudit[];
|
|
18
|
+
phases: string[];
|
|
19
|
+
trace: FabricExecutionTraceV1;
|
|
20
|
+
elapsedMs: number;
|
|
21
|
+
typeErrors?: FabricTypeError[];
|
|
22
|
+
error?: string;
|
|
23
|
+
handoffRequest?: Record<string, unknown>;
|
|
24
|
+
usage?: Usage;
|
|
25
|
+
}
|
|
26
|
+
interface FabricExecutionPartial {
|
|
27
|
+
audits: FabricCallAudit[];
|
|
28
|
+
phases: string[];
|
|
29
|
+
progress?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface FabricExecutionAuthorizer {
|
|
32
|
+
authorize(ref: string, parentToolCallId: string): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export interface FabricExecutionOptions {
|
|
35
|
+
code: string;
|
|
36
|
+
payloads?: Record<string, string>;
|
|
37
|
+
/** Per-invocation whole-program deadline request from fabric_exec.timeoutMs.
|
|
38
|
+
* Raises (never lowers) the configured executor.timeoutMs, subject to
|
|
39
|
+
* executor.maxTimeoutMs. */
|
|
40
|
+
requestedTimeoutMs?: number;
|
|
41
|
+
signal: AbortSignal | undefined;
|
|
42
|
+
parentToolCallId: string;
|
|
43
|
+
context: ExtensionContext;
|
|
44
|
+
tokenBudget?: number;
|
|
45
|
+
maxAgentCalls?: number;
|
|
46
|
+
display?: FabricRunDisplay;
|
|
47
|
+
onPartial(snapshot: FabricExecutionPartial): void;
|
|
48
|
+
}
|
|
49
|
+
export declare class FabricExecutionService {
|
|
50
|
+
#private;
|
|
51
|
+
readonly registry: ActionRegistry;
|
|
52
|
+
readonly config: FabricConfig;
|
|
53
|
+
readonly activity?: FabricActivityStore | undefined;
|
|
54
|
+
readonly authorizer?: FabricExecutionAuthorizer | undefined;
|
|
55
|
+
readonly autoApprovalClassifier: FabricAutoApprovalClassifier;
|
|
56
|
+
readonly sessionApprovals: FabricSessionApprovals;
|
|
57
|
+
readonly capturedTools?: CapturedToolCatalog | undefined;
|
|
58
|
+
constructor(registry: ActionRegistry, config: FabricConfig, activity?: FabricActivityStore | undefined, authorizer?: FabricExecutionAuthorizer | undefined, autoApprovalClassifier?: FabricAutoApprovalClassifier, sessionApprovals?: FabricSessionApprovals, capturedTools?: CapturedToolCatalog | undefined);
|
|
59
|
+
setCapabilityView(view: FabricCommittedCapabilityView | undefined): void;
|
|
60
|
+
execute(options: FabricExecutionOptions): Promise<FabricExecutionResult>;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=execution-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-service.d.ts","sourceRoot":"","sources":["../src/execution-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAML,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,KAAK,EAIV,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EACd,KAAK,eAAe,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,sBAAsB,EAEvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAKlF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AASnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAoEjE,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,sBAAsB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC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D,gBAAgB,yBAA+B,EAC/C,aAAa,CAAC,EAAE,mBAAmB,YAAA;IAG9C,iBAAiB,CAAC,IAAI,EAAE,6BAA6B,GAAG,SAAS,GAAG,IAAI;IAIlE,OAAO,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAwmB/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fabric-exec-arguments.d.ts","sourceRoot":"","sources":["../src/fabric-exec-arguments.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,yBAAyB,GAAI,QAAQ;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SACpE,CAAC;AAEjC,eAAO,MAAM,0BAA0B,GAAI,OAAO,OAAO,KAAG,OA8B3D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ToolDefinition } from "@oh-my-pi/pi-coding-agent";
|
|
2
|
+
import type { CodePreviewSettings } from "./ui/code-preview.js";
|
|
3
|
+
import { type FabricToolShellDecorator } from "./ui/code-preview-shell.js";
|
|
4
|
+
import type { FabricState } from "./fabric-state.js";
|
|
5
|
+
import type { PendingFabricHandoff } from "./prewalk/handoff.js";
|
|
6
|
+
import type { FabricToolDisplayController } from "./ui/tool-display.js";
|
|
7
|
+
export declare const createFabricExecTool: (state: FabricState, codePreviewSettings: CodePreviewSettings, pendingHandoffs: Map<string, PendingFabricHandoff>, decorateShell?: FabricToolShellDecorator, toolDisplay?: FabricToolDisplayController) => ToolDefinition<any, any>;
|
|
8
|
+
//# sourceMappingURL=fabric-exec-tool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fabric-exec-tool.d.ts","sourceRoot":"","sources":["../src/fabric-exec-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,cAAc,EAA2B,MAAM,2BAA2B,CAAC;AAWhG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EACL,KAAK,wBAAwB,EAG9B,MAAM,4BAA4B,CAAC;AAQpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AASrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AA6CjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AA6HxE,eAAO,MAAM,oBAAoB,GAC/B,OAAO,WAAW,EAClB,qBAAqB,mBAAmB,EACxC,iBAAiB,GAAG,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAClD,gBAAe,wBAA+C,EAC9D,cAAc,2BAA2B,KACxC,cAAc,CAAC,GAAG,EAAE,GAAG,CAq0BzB,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { ExtensionContext } from "@oh-my-pi/pi-coding-agent";
|
|
2
|
+
import type { ExtensionAPI } from "@oh-my-pi/pi-coding-agent";
|
|
3
|
+
import { FabricActivityStore } from "./activity/store.js";
|
|
4
|
+
import { ActorDirectory } from "./actors/directory.js";
|
|
5
|
+
import { GlobalActorRegistry } from "./actors/global-registry.js";
|
|
6
|
+
import type { FabricActorHostEvent } from "./actors/types.js";
|
|
7
|
+
import { CapturedToolCatalog } from "./capture/catalog.js";
|
|
8
|
+
import { FabricComponentCatalog } from "./components/catalog.js";
|
|
9
|
+
import { FabricComponentLoader } from "./components/loader.js";
|
|
10
|
+
import { type FabricOwnedModelGuidance } from "./components/model-guidance.js";
|
|
11
|
+
import type { FabricComponentDefinition, FabricComponentGraph } from "./components/types.js";
|
|
12
|
+
import { type FabricConfig, type FabricResultFormat, type FabricSchemaMode } from "./config.js";
|
|
13
|
+
import { ActionRegistry } from "./core/action-registry.js";
|
|
14
|
+
import { FabricSessionApprovals } from "./core/approval-controller.js";
|
|
15
|
+
import { CompactController } from "./core/compact-controller.js";
|
|
16
|
+
import { FabricExecutionService, type FabricExecutionResult } from "./execution-service.js";
|
|
17
|
+
import { RepairCompiler } from "./repairs/compiler.js";
|
|
18
|
+
import { FabricSpeculationStreamTap } from "./speculation/stream-tap.js";
|
|
19
|
+
import { MeshStore } from "./mesh/store.js";
|
|
20
|
+
import type { FabricLifecycleEventType } from "./lifecycle/types.js";
|
|
21
|
+
import type { FabricParticipantInfo, FabricParticipantListOptions, FabricPeerInfo } from "./topology/types.js";
|
|
22
|
+
import { PrewalkController } from "./prewalk/controller.js";
|
|
23
|
+
import { PrewalkDriftTracker } from "./prewalk/fs-drift.js";
|
|
24
|
+
import { type PendingFabricHandoff } from "./prewalk/handoff.js";
|
|
25
|
+
import type { AgentToolResultMessage } from "./agents/types.js";
|
|
26
|
+
import { type FabricAgentMessageDelivery, type FabricAgentMessageResult, type FabricMainAgentInfo } from "./main-agent.js";
|
|
27
|
+
import { type FabricProvider } from "./protocol.js";
|
|
28
|
+
import { AgentManager } from "./agents/manager.js";
|
|
29
|
+
import type { FabricRuntimePaths } from "./runtime-paths.js";
|
|
30
|
+
export interface FabricRuntimeStateOptions {
|
|
31
|
+
activity?: FabricActivityStore;
|
|
32
|
+
prewalk?: PrewalkController;
|
|
33
|
+
prewalkDrift?: PrewalkDriftTracker;
|
|
34
|
+
sessionApprovals?: FabricSessionApprovals;
|
|
35
|
+
paths?: FabricRuntimePaths;
|
|
36
|
+
}
|
|
37
|
+
export declare class FabricRuntimeState {
|
|
38
|
+
#private;
|
|
39
|
+
readonly omp: ExtensionAPI;
|
|
40
|
+
readonly capturedTools: CapturedToolCatalog;
|
|
41
|
+
readonly componentCatalog: FabricComponentCatalog;
|
|
42
|
+
readonly activity: FabricActivityStore;
|
|
43
|
+
readonly prewalk: PrewalkController;
|
|
44
|
+
readonly prewalkDrift: PrewalkDriftTracker;
|
|
45
|
+
readonly sessionApprovals: FabricSessionApprovals;
|
|
46
|
+
constructor(omp: ExtensionAPI, capturedTools: CapturedToolCatalog, options?: FabricRuntimeStateOptions);
|
|
47
|
+
get initialized(): boolean;
|
|
48
|
+
get widgetDismissedAt(): number;
|
|
49
|
+
set widgetDismissedAt(value: number);
|
|
50
|
+
get cwd(): string | undefined;
|
|
51
|
+
get config(): FabricConfig;
|
|
52
|
+
/** Stream tap for speculative PTC; undefined when speculation is disabled. */
|
|
53
|
+
get speculationTap(): FabricSpeculationStreamTap | undefined;
|
|
54
|
+
/** Turn-boundary backstop: tap state and unserved entries never outlive a turn. */
|
|
55
|
+
resetSpeculation(): void;
|
|
56
|
+
get registry(): ActionRegistry;
|
|
57
|
+
get components(): FabricComponentLoader;
|
|
58
|
+
get execution(): FabricExecutionService;
|
|
59
|
+
get agents(): AgentManager;
|
|
60
|
+
get actors(): ActorDirectory;
|
|
61
|
+
get globalActors(): GlobalActorRegistry;
|
|
62
|
+
get mesh(): MeshStore;
|
|
63
|
+
mainAgentInfo(context?: ExtensionContext): FabricMainAgentInfo;
|
|
64
|
+
peerInfos(): FabricPeerInfo[];
|
|
65
|
+
componentGraph(): FabricComponentGraph;
|
|
66
|
+
modelGuidance(): FabricOwnedModelGuidance[];
|
|
67
|
+
participantInfos(options?: FabricParticipantListOptions): FabricParticipantInfo[];
|
|
68
|
+
queueUserMessage(targetId: string, message: string, delivery: FabricAgentMessageDelivery): Promise<FabricAgentMessageResult>;
|
|
69
|
+
stopParticipant(targetId: string): Promise<unknown>;
|
|
70
|
+
get compact(): CompactController;
|
|
71
|
+
get repairs(): RepairCompiler;
|
|
72
|
+
initialize(context: ExtensionContext, bootstrapConfig?: FabricConfig): Promise<void>;
|
|
73
|
+
ensure(context: ExtensionContext): Promise<void>;
|
|
74
|
+
setSchemaMode(mode: FabricSchemaMode, executorRuntime: FabricConfig["executor"]["runtime"]): void;
|
|
75
|
+
reloadConfig(context: ExtensionContext, next: FabricConfig): void;
|
|
76
|
+
claimHandoff(execution: FabricExecutionResult, sessionId: string, resultFormat: FabricResultFormat, outerToolCallId: string): Promise<PendingFabricHandoff | undefined>;
|
|
77
|
+
runHandoffAtBoundary(pending: PendingFabricHandoff, outerToolResult: AgentToolResultMessage, context: ExtensionContext): Promise<Record<string, unknown>>;
|
|
78
|
+
noteMainActivity(context: ExtensionContext): void;
|
|
79
|
+
dispatchHostEvent(event: FabricActorHostEvent, payload: unknown, context: ExtensionContext): number;
|
|
80
|
+
publishHostLifecycle(event: FabricLifecycleEventType, payload: unknown): Promise<void>;
|
|
81
|
+
registerExternal(provider: FabricProvider, options?: {
|
|
82
|
+
overwrite?: boolean;
|
|
83
|
+
}): void;
|
|
84
|
+
registerExternalComponent(component: FabricComponentDefinition, options?: {
|
|
85
|
+
overwrite?: boolean;
|
|
86
|
+
}): void;
|
|
87
|
+
settleComponents(): Promise<void>;
|
|
88
|
+
shutdown(): Promise<void>;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=fabric-runtime-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fabric-runtime-state.d.ts","sourceRoot":"","sources":["../src/fabric-runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAOlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAIlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAA0B,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,gCAAgC,CAAC;AASxC,OAAO,KAAK,EACV,yBAAyB,EACzB,oB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