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,1334 @@
|
|
|
1
|
+
// src/runtime/guest-types.ts
|
|
2
|
+
var OMP_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES = {
|
|
3
|
+
read: "OmpReadCompatibilityArgument",
|
|
4
|
+
bash: "OmpBashCompatibilityArgument",
|
|
5
|
+
edit: "OmpEditCompatibilityArgument",
|
|
6
|
+
write: "OmpWriteCompatibilityArgument",
|
|
7
|
+
grep: "OmpGrepCompatibilityArgument",
|
|
8
|
+
find: "OmpFindCompatibilityArgument",
|
|
9
|
+
ls: "OmpLsCompatibilityArgument"
|
|
10
|
+
};
|
|
11
|
+
var OMP_CORE_NUMERIC_FIELDS = {
|
|
12
|
+
read: ["offset", "limit"],
|
|
13
|
+
bash: ["timeout"],
|
|
14
|
+
edit: [],
|
|
15
|
+
write: [],
|
|
16
|
+
grep: ["context", "limit"],
|
|
17
|
+
find: ["limit"],
|
|
18
|
+
ls: ["limit"]
|
|
19
|
+
};
|
|
20
|
+
var GUEST_TYPE_DECLARATIONS = `
|
|
21
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
22
|
+
type JsonValue = JsonPrimitive | JsonValue[] | { [key: string]: JsonValue };
|
|
23
|
+
type FabricTransport = "auto" | "process" | "tmux" | "screen" | "localterm" | "herdr";
|
|
24
|
+
type FabricAgentRunner = "omp" | "claude" | "veda";
|
|
25
|
+
type FabricThinking = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
26
|
+
interface FabricActionEffect {
|
|
27
|
+
kind: "none" | "scoped" | "transactional" | "emission";
|
|
28
|
+
resources?: string[];
|
|
29
|
+
ordering?: "commutative" | "ordered" | "unknown";
|
|
30
|
+
}
|
|
31
|
+
interface FabricAction {
|
|
32
|
+
ref: string;
|
|
33
|
+
provider: string;
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
inputSchema: Record<string, unknown>;
|
|
37
|
+
outputSchema?: Record<string, unknown>;
|
|
38
|
+
risk: "read" | "write" | "execute" | "network" | "agent";
|
|
39
|
+
namespace?: string;
|
|
40
|
+
effect?: FabricActionEffect;
|
|
41
|
+
}
|
|
42
|
+
interface FabricAgentRequest {
|
|
43
|
+
task: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
runner?: FabricAgentRunner;
|
|
46
|
+
transport?: FabricTransport;
|
|
47
|
+
model?: string;
|
|
48
|
+
persona?: string;
|
|
49
|
+
thinking?: FabricThinking;
|
|
50
|
+
tools?: string[];
|
|
51
|
+
timeoutMs?: number;
|
|
52
|
+
extensions?: boolean;
|
|
53
|
+
recursive?: boolean;
|
|
54
|
+
/** Filesystem execution directory; relative paths resolve from the parent agent cwd. */
|
|
55
|
+
cwd?: string;
|
|
56
|
+
worktree?: boolean;
|
|
57
|
+
schema?: Record<string, unknown>;
|
|
58
|
+
prompt?: string;
|
|
59
|
+
instructions?: string;
|
|
60
|
+
timeout_ms?: number;
|
|
61
|
+
residency?: FabricParticipantResidency;
|
|
62
|
+
}
|
|
63
|
+
interface FabricHandoffCall {
|
|
64
|
+
readonly ref: string;
|
|
65
|
+
}
|
|
66
|
+
interface FabricHandoffFacts {
|
|
67
|
+
readonly calls: readonly FabricHandoffCall[];
|
|
68
|
+
count(ref?: string | readonly string[]): number;
|
|
69
|
+
}
|
|
70
|
+
type FabricHandoffPredicate = (facts: Readonly<FabricHandoffFacts>) => boolean;
|
|
71
|
+
interface FabricHandoffRequest {
|
|
72
|
+
model: string;
|
|
73
|
+
task?: string;
|
|
74
|
+
when?: FabricHandoffPredicate;
|
|
75
|
+
name?: string;
|
|
76
|
+
transport?: FabricTransport;
|
|
77
|
+
thinking?: FabricThinking;
|
|
78
|
+
tools?: string[];
|
|
79
|
+
timeoutMs?: number;
|
|
80
|
+
extensions?: boolean;
|
|
81
|
+
recursive?: boolean;
|
|
82
|
+
schema?: Record<string, unknown>;
|
|
83
|
+
prompt?: string;
|
|
84
|
+
instructions?: string;
|
|
85
|
+
timeout_ms?: number;
|
|
86
|
+
}
|
|
87
|
+
interface FabricHandoffResult {
|
|
88
|
+
scheduled: true;
|
|
89
|
+
status: "deferred";
|
|
90
|
+
boundary: "fabric_exec_end";
|
|
91
|
+
}
|
|
92
|
+
interface FabricMainAgentInfo {
|
|
93
|
+
id: string;
|
|
94
|
+
name: "Main";
|
|
95
|
+
kind: "main";
|
|
96
|
+
status: "idle" | "running" | "remote";
|
|
97
|
+
runner: "omp";
|
|
98
|
+
transport: "host";
|
|
99
|
+
cwd?: string;
|
|
100
|
+
sessionId?: string;
|
|
101
|
+
model?: string;
|
|
102
|
+
thinking?: string;
|
|
103
|
+
startedAt?: number;
|
|
104
|
+
updatedAt: number;
|
|
105
|
+
pendingMessages: boolean;
|
|
106
|
+
local: boolean;
|
|
107
|
+
}
|
|
108
|
+
interface FabricPeerInfo {
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
kind: "peer";
|
|
112
|
+
status: "idle" | "running";
|
|
113
|
+
runner: "omp";
|
|
114
|
+
transport: "host";
|
|
115
|
+
cwd: string;
|
|
116
|
+
sessionId: string;
|
|
117
|
+
model?: string;
|
|
118
|
+
thinking?: string;
|
|
119
|
+
startedAt: number;
|
|
120
|
+
updatedAt: number;
|
|
121
|
+
pendingMessages: boolean;
|
|
122
|
+
local: false;
|
|
123
|
+
}
|
|
124
|
+
type FabricParticipantKind = "root" | "agent" | "actor";
|
|
125
|
+
type FabricParticipantResidency = "session" | "durable";
|
|
126
|
+
type FabricParticipantScope = "local" | "lineage" | "project";
|
|
127
|
+
type FabricParticipantCapability = "steer" | "followUp" | "stop" | "ask" | "actor-bindings" | "attach" | "fabric";
|
|
128
|
+
interface FabricParticipantInfo {
|
|
129
|
+
format: 1;
|
|
130
|
+
id: string;
|
|
131
|
+
kind: FabricParticipantKind;
|
|
132
|
+
rootId: string;
|
|
133
|
+
ownerHostId: string;
|
|
134
|
+
ownerIdentityId: string;
|
|
135
|
+
parentId?: string;
|
|
136
|
+
name: string;
|
|
137
|
+
status: string;
|
|
138
|
+
runner: FabricAgentRunner;
|
|
139
|
+
transport: FabricTransport | "host";
|
|
140
|
+
capabilities: FabricParticipantCapability[];
|
|
141
|
+
cwd?: string;
|
|
142
|
+
sessionId?: string;
|
|
143
|
+
model?: string;
|
|
144
|
+
thinking?: string;
|
|
145
|
+
startedAt: number;
|
|
146
|
+
updatedAt: number;
|
|
147
|
+
finishedAt?: number;
|
|
148
|
+
pendingMessages?: boolean;
|
|
149
|
+
currentTool?: string;
|
|
150
|
+
turns?: number;
|
|
151
|
+
toolCalls?: number;
|
|
152
|
+
usage?: { input: number; output: number; cacheRead: number; cacheWrite: number; cost: number };
|
|
153
|
+
actorQueued?: number;
|
|
154
|
+
actorMessages?: number;
|
|
155
|
+
controlProtocol: "v1" | "legacy";
|
|
156
|
+
residency: FabricParticipantResidency;
|
|
157
|
+
local: boolean;
|
|
158
|
+
stale: boolean;
|
|
159
|
+
}
|
|
160
|
+
type FabricLifecycleEventType =
|
|
161
|
+
| "omp.input"
|
|
162
|
+
| "omp.agent_start"
|
|
163
|
+
| "omp.agent_end"
|
|
164
|
+
| "omp.turn_end"
|
|
165
|
+
| "omp.tool_error"
|
|
166
|
+
| "omp.session_compact"
|
|
167
|
+
| "run.completed"
|
|
168
|
+
| "run.failed"
|
|
169
|
+
| "run.stopped"
|
|
170
|
+
| "run.timed_out"
|
|
171
|
+
| "tokens.usage"
|
|
172
|
+
| "component.state";
|
|
173
|
+
type FabricLifecycleDelivery = "steer" | "followUp";
|
|
174
|
+
interface FabricLifecycleSource {
|
|
175
|
+
id: string;
|
|
176
|
+
name: string;
|
|
177
|
+
kind: FabricParticipantKind;
|
|
178
|
+
rootId: string;
|
|
179
|
+
runner: FabricAgentRunner;
|
|
180
|
+
ownerHostId?: string;
|
|
181
|
+
ownerIdentityId?: string;
|
|
182
|
+
}
|
|
183
|
+
interface FabricLifecycleEvent {
|
|
184
|
+
version: 1;
|
|
185
|
+
id: string;
|
|
186
|
+
sequence: number;
|
|
187
|
+
event: FabricLifecycleEventType;
|
|
188
|
+
source: FabricLifecycleSource;
|
|
189
|
+
occurredAt: number;
|
|
190
|
+
publishedAt: number;
|
|
191
|
+
runId?: string;
|
|
192
|
+
status?: string;
|
|
193
|
+
data?: unknown;
|
|
194
|
+
}
|
|
195
|
+
interface FabricLifecycleSubscription {
|
|
196
|
+
format: 1;
|
|
197
|
+
id: string;
|
|
198
|
+
from: string;
|
|
199
|
+
events: FabricLifecycleEventType[];
|
|
200
|
+
to: string;
|
|
201
|
+
delivery: FabricLifecycleDelivery;
|
|
202
|
+
triggerTurn: boolean;
|
|
203
|
+
once: boolean;
|
|
204
|
+
afterSequence: number;
|
|
205
|
+
createdAt: number;
|
|
206
|
+
updatedAt: number;
|
|
207
|
+
createdBy: { id: string; name: string; kind: "main" | "agent" | "actor"; sessionId?: string };
|
|
208
|
+
lastDeliveredAt?: number;
|
|
209
|
+
lastEventId?: string;
|
|
210
|
+
lastError?: string;
|
|
211
|
+
}
|
|
212
|
+
interface FabricAgentHandle {
|
|
213
|
+
id: string;
|
|
214
|
+
name: string;
|
|
215
|
+
status: string;
|
|
216
|
+
runner: FabricAgentRunner;
|
|
217
|
+
transport: FabricTransport;
|
|
218
|
+
cwd: string;
|
|
219
|
+
model?: string;
|
|
220
|
+
thinking?: FabricThinking;
|
|
221
|
+
actorId?: string;
|
|
222
|
+
actorName?: string;
|
|
223
|
+
sessionId?: string;
|
|
224
|
+
runnerSessionId?: string;
|
|
225
|
+
attachCommand?: string;
|
|
226
|
+
branch?: string;
|
|
227
|
+
worktree?: string;
|
|
228
|
+
text?: string;
|
|
229
|
+
value?: unknown;
|
|
230
|
+
error?: string;
|
|
231
|
+
logFile?: string;
|
|
232
|
+
residency?: FabricParticipantResidency;
|
|
233
|
+
}
|
|
234
|
+
interface FabricRemoteControlResult {
|
|
235
|
+
queued: true;
|
|
236
|
+
messageId: string;
|
|
237
|
+
routed: "mesh";
|
|
238
|
+
acknowledged: true;
|
|
239
|
+
}
|
|
240
|
+
interface FabricAgentResult extends FabricAgentHandle {
|
|
241
|
+
task: string;
|
|
242
|
+
startedAt: number;
|
|
243
|
+
finishedAt?: number;
|
|
244
|
+
turns: number;
|
|
245
|
+
toolCalls: number;
|
|
246
|
+
text: string;
|
|
247
|
+
value?: unknown;
|
|
248
|
+
error?: string;
|
|
249
|
+
usage: { input: number; output: number; cacheRead: number; cacheWrite: number; cost: number };
|
|
250
|
+
pendingMessages?: { steering: string[]; followUp: string[] };
|
|
251
|
+
}
|
|
252
|
+
interface FabricModelInfo {
|
|
253
|
+
runner?: FabricAgentRunner;
|
|
254
|
+
provider: string;
|
|
255
|
+
id: string;
|
|
256
|
+
name: string;
|
|
257
|
+
key: string;
|
|
258
|
+
value?: string;
|
|
259
|
+
resolvedModel?: string;
|
|
260
|
+
displayName?: string;
|
|
261
|
+
description?: string;
|
|
262
|
+
supportsEffort?: boolean;
|
|
263
|
+
supportedEffortLevels?: string[];
|
|
264
|
+
supportsAdaptiveThinking?: boolean;
|
|
265
|
+
supportsFastMode?: boolean;
|
|
266
|
+
supportsAutoMode?: boolean;
|
|
267
|
+
}
|
|
268
|
+
interface FabricLogLine {
|
|
269
|
+
index?: number;
|
|
270
|
+
offset: number;
|
|
271
|
+
raw: string;
|
|
272
|
+
parsed?: unknown;
|
|
273
|
+
}
|
|
274
|
+
interface FabricAgentLog {
|
|
275
|
+
id: string;
|
|
276
|
+
runDirectory: string;
|
|
277
|
+
logFile: string;
|
|
278
|
+
status?: FabricAgentResult;
|
|
279
|
+
events: FabricLogLine[];
|
|
280
|
+
hasMore: boolean;
|
|
281
|
+
before?: number;
|
|
282
|
+
}
|
|
283
|
+
interface FabricActorLog {
|
|
284
|
+
actorId: string;
|
|
285
|
+
actorName: string;
|
|
286
|
+
sessionFile: string;
|
|
287
|
+
logDir: string;
|
|
288
|
+
session: FabricLogLine[];
|
|
289
|
+
sessionHasMore: boolean;
|
|
290
|
+
sessionBefore?: number;
|
|
291
|
+
run?: {
|
|
292
|
+
runId: string;
|
|
293
|
+
eventsFile: string;
|
|
294
|
+
status?: FabricAgentResult;
|
|
295
|
+
events: FabricLogLine[];
|
|
296
|
+
hasMore: boolean;
|
|
297
|
+
before?: number;
|
|
298
|
+
};
|
|
299
|
+
retainedRuns: string[];
|
|
300
|
+
}
|
|
301
|
+
interface FabricCapabilityActionHead {
|
|
302
|
+
key: string;
|
|
303
|
+
parentKey: string;
|
|
304
|
+
ref: string;
|
|
305
|
+
name: string;
|
|
306
|
+
description: string;
|
|
307
|
+
descriptorHash: string;
|
|
308
|
+
risk: "read" | "write" | "execute" | "network" | "agent";
|
|
309
|
+
namespace?: string;
|
|
310
|
+
effect?: FabricActionEffect;
|
|
311
|
+
}
|
|
312
|
+
interface FabricCapabilityProviderHead {
|
|
313
|
+
key: string;
|
|
314
|
+
parentKey: string;
|
|
315
|
+
name: string;
|
|
316
|
+
description: string;
|
|
317
|
+
descriptorHash: string;
|
|
318
|
+
actions: FabricCapabilityActionHead[];
|
|
319
|
+
}
|
|
320
|
+
interface FabricCapabilityCatalog {
|
|
321
|
+
kind: "omp-fabric.capability-catalog";
|
|
322
|
+
version: 1;
|
|
323
|
+
root: {
|
|
324
|
+
key: "capability:fabric";
|
|
325
|
+
name: "Fabric capabilities";
|
|
326
|
+
description: string;
|
|
327
|
+
descriptorHash: string;
|
|
328
|
+
};
|
|
329
|
+
providers: FabricCapabilityProviderHead[];
|
|
330
|
+
totalActions: number;
|
|
331
|
+
indexedActions: number;
|
|
332
|
+
complete: boolean;
|
|
333
|
+
reasons: string[];
|
|
334
|
+
}
|
|
335
|
+
interface FabricToolsApi {
|
|
336
|
+
providers(): Promise<Array<{ name: string; description: string }>>;
|
|
337
|
+
catalog(args?: { provider?: string; limit?: number }): Promise<FabricCapabilityCatalog>;
|
|
338
|
+
list(args?: { provider?: string; namespace?: string; query?: string; limit?: number }): Promise<FabricAction[]>;
|
|
339
|
+
search(query: string): Promise<FabricAction[]>;
|
|
340
|
+
search(args: { query: string; limit?: number }): Promise<FabricAction[]>;
|
|
341
|
+
describe(args: { ref: string }): Promise<FabricAction>;
|
|
342
|
+
call(args: { ref: string; args?: Record<string, unknown> }): Promise<unknown>;
|
|
343
|
+
progress(args: { message: string }): Promise<void>;
|
|
344
|
+
models(): Promise<FabricModelInfo[]>;
|
|
345
|
+
}
|
|
346
|
+
interface FabricCapturedToolResult {
|
|
347
|
+
content: Array<{ type: string; text?: string; [key: string]: unknown }>;
|
|
348
|
+
text: string;
|
|
349
|
+
details?: unknown;
|
|
350
|
+
isError: boolean;
|
|
351
|
+
terminate?: boolean;
|
|
352
|
+
source: { path: string; source: string; scope: string; origin: string; baseDir?: string };
|
|
353
|
+
}
|
|
354
|
+
interface FabricCapturedTool {
|
|
355
|
+
(args?: Record<string, unknown>): Promise<FabricCapturedToolResult>;
|
|
356
|
+
}
|
|
357
|
+
type FabricExtensionsApi = Record<string, FabricCapturedTool>;
|
|
358
|
+
// String-primary tools (read/bash/grep/find/ls) accept a bare string; the
|
|
359
|
+
// runtime proxy coerces it to { <primaryField>: string }. Lets the model write
|
|
360
|
+
// the natural form (omp.bash("ls")) instead of omp.bash({ command: "ls" }).
|
|
361
|
+
// Return shapes differ by tool: read/grep/find/ls return their text as a bare
|
|
362
|
+
// string (e.g. const src: string = await omp.read({ path })); shell/edit/write
|
|
363
|
+
// return { ok, output, details } (e.g. const { output } = await omp.bash(...)).
|
|
364
|
+
// Common alias keys (cmd\u2192command, query\u2192pattern, file\u2192path, dir\u2192path) and a
|
|
365
|
+
// flat edit shape ({ path, oldText, newText }) are also accepted; the runtime
|
|
366
|
+
// proxy normalizes them to the canonical form before the host validates args.
|
|
367
|
+
// Bash timeout is measured in seconds; timeoutMs is converted from milliseconds.
|
|
368
|
+
// Extended near-miss repairs: find's name/filename/glob \u2192 pattern, write's
|
|
369
|
+
// data \u2192 content, ls's folder \u2192 path, bash's script \u2192 command; numeric option
|
|
370
|
+
// fields (limit/offset/context/timeout) also accept numeric strings, coerced
|
|
371
|
+
// at runtime (2322 diagnostics are suppressed by the type-checker by design).
|
|
372
|
+
// String-primary tools also take a two-arg (primary, options) form \u2014
|
|
373
|
+
// omp.read("index.ts", { limit: 120 }) merges to { path, ...options } at
|
|
374
|
+
// runtime, the positional string winning the primary field on conflict.
|
|
375
|
+
// shell/edit/write envelopes are proxy-guarded so string-method access
|
|
376
|
+
// (.trim(), .split(), iteration) fails with an actionable TypeError pointing
|
|
377
|
+
// at .output instead of QuickJS's context-free "not a function" \u2014 property-
|
|
378
|
+
// miss (2339) checks are suppressed by design, so the runtime gives the hint.
|
|
379
|
+
type OmpPathArgument = {
|
|
380
|
+
path?: string;
|
|
381
|
+
file?: string;
|
|
382
|
+
absolutePath?: string;
|
|
383
|
+
file_path?: string;
|
|
384
|
+
filePath?: string;
|
|
385
|
+
filepath?: string;
|
|
386
|
+
pathname?: string;
|
|
387
|
+
target_file?: string;
|
|
388
|
+
targetFile?: string;
|
|
389
|
+
absolute_path?: string;
|
|
390
|
+
fileAbsolutePath?: string;
|
|
391
|
+
};
|
|
392
|
+
type OmpOptionalPathArgument = {
|
|
393
|
+
path?: string;
|
|
394
|
+
file?: string;
|
|
395
|
+
absolutePath?: string;
|
|
396
|
+
file_path?: string;
|
|
397
|
+
filePath?: string;
|
|
398
|
+
filepath?: string;
|
|
399
|
+
pathname?: string;
|
|
400
|
+
target_file?: string;
|
|
401
|
+
targetFile?: string;
|
|
402
|
+
absolute_path?: string;
|
|
403
|
+
fileAbsolutePath?: string;
|
|
404
|
+
dir?: string;
|
|
405
|
+
folder?: string;
|
|
406
|
+
directory?: string;
|
|
407
|
+
directoryPath?: string;
|
|
408
|
+
};
|
|
409
|
+
type OmpOldTextArgument = {
|
|
410
|
+
oldText?: string;
|
|
411
|
+
old?: string;
|
|
412
|
+
old_string?: string;
|
|
413
|
+
oldString?: string;
|
|
414
|
+
old_str?: string;
|
|
415
|
+
oldStr?: string;
|
|
416
|
+
from?: string;
|
|
417
|
+
old_value?: string;
|
|
418
|
+
old_text?: string;
|
|
419
|
+
oldContent?: string;
|
|
420
|
+
old_content?: string;
|
|
421
|
+
};
|
|
422
|
+
type OmpNewTextArgument = {
|
|
423
|
+
newText?: string;
|
|
424
|
+
new?: string;
|
|
425
|
+
replacement?: string;
|
|
426
|
+
new_string?: string;
|
|
427
|
+
newString?: string;
|
|
428
|
+
new_str?: string;
|
|
429
|
+
newStr?: string;
|
|
430
|
+
to?: string;
|
|
431
|
+
new_value?: string;
|
|
432
|
+
new_text?: string;
|
|
433
|
+
newContent?: string;
|
|
434
|
+
new_content?: string;
|
|
435
|
+
};
|
|
436
|
+
type OmpEditOperation = OmpOldTextArgument & OmpNewTextArgument & { all?: boolean };
|
|
437
|
+
type OmpCommandArgument = { command?: string; cmd?: string; shell?: string; cmdline?: string; script?: string; commandLine?: string };
|
|
438
|
+
type OmpContentArgument = { content?: string; contents?: string; body?: string; text?: string; data?: string; fileContent?: string };
|
|
439
|
+
type OmpGrepPatternArgument = { pattern?: string; query?: string; regex?: string; search?: string; q?: string; expression?: string; text?: string };
|
|
440
|
+
type OmpFindPatternArgument = { pattern?: string; query?: string; regex?: string; search?: string; name?: string; filename?: string; glob?: string; expression?: string; include?: string };
|
|
441
|
+
// Two-arg (primary, options) bags for the string-primary tools. Only option
|
|
442
|
+
// aliases belong here (max/start/ctx/ic/...), never primary-field aliases \u2014
|
|
443
|
+
// the primary field comes from the positional string.
|
|
444
|
+
type OmpReadOptions = { offset?: number; limit?: number; start?: number; max?: number };
|
|
445
|
+
// cwd is honored per call by the omp provider, which binds the command to a
|
|
446
|
+
// shell definition rooted there; relative paths resolve from the session cwd.
|
|
447
|
+
// The alias spellings mirror the shell entries in __ompArgAliases: the
|
|
448
|
+
// runtime repairs them, so the checker has to accept the same spellings or a
|
|
449
|
+
// repairable call is rejected before it ever reaches the sandbox.
|
|
450
|
+
type OmpShellOptions = {
|
|
451
|
+
timeout?: number; timeoutMs?: number; settle?: boolean;
|
|
452
|
+
cwd?: string; workdir?: string; directory?: string; workingDirectory?: string;
|
|
453
|
+
};
|
|
454
|
+
type OmpBashOptions = OmpShellOptions;
|
|
455
|
+
type OmpGrepOptions = { path?: string; glob?: string; globPattern?: string; ignoreCase?: boolean; ic?: boolean; caseInsensitive?: boolean; literal?: boolean; context?: number; ctx?: number; limit?: number; max?: number };
|
|
456
|
+
type OmpFindOptions = { path?: string; limit?: number; max?: number };
|
|
457
|
+
type OmpLsOptions = { limit?: number; max?: number };
|
|
458
|
+
type OmpReadArgument = string | (OmpPathArgument & OmpReadOptions);
|
|
459
|
+
type OmpBashArgument = string | (OmpCommandArgument & OmpBashOptions);
|
|
460
|
+
type OmpEditFlatArgument = OmpPathArgument & OmpOldTextArgument & OmpNewTextArgument & { all?: boolean };
|
|
461
|
+
type OmpEditArgument = OmpPathArgument & ({ edits: OmpEditOperation[]; all?: boolean } | OmpEditFlatArgument);
|
|
462
|
+
type OmpWriteArgument = string | (OmpPathArgument & OmpContentArgument);
|
|
463
|
+
type OmpGrepArgument = string | (OmpGrepPatternArgument & OmpGrepOptions);
|
|
464
|
+
type OmpFindArgument = string | (OmpFindPatternArgument & OmpFindOptions);
|
|
465
|
+
type OmpLsArgument = string | (OmpOptionalPathArgument & OmpLsOptions);
|
|
466
|
+
type OmpNumericString<T> = T extends number ? T | string : T;
|
|
467
|
+
type OmpNumericStringOptions<T> = { [K in keyof T]: OmpNumericString<T[K]> };
|
|
468
|
+
type OmpReadCompatibilityArgument = string | (OmpPathArgument & OmpNumericStringOptions<OmpReadOptions>);
|
|
469
|
+
type OmpBashCompatibilityArgument = string | (OmpCommandArgument & OmpNumericStringOptions<OmpBashOptions>);
|
|
470
|
+
type OmpEditCompatibilityArgument = OmpEditFlatArgument;
|
|
471
|
+
type OmpWriteCompatibilityArgument = OmpWriteArgument;
|
|
472
|
+
type OmpGrepCompatibilityArgument = string | (OmpGrepPatternArgument & OmpNumericStringOptions<OmpGrepOptions>);
|
|
473
|
+
type OmpFindCompatibilityArgument = string | (OmpFindPatternArgument & OmpNumericStringOptions<OmpFindOptions>);
|
|
474
|
+
type OmpLsCompatibilityArgument = string | (OmpOptionalPathArgument & OmpNumericStringOptions<OmpLsOptions>);
|
|
475
|
+
interface OmpToolsApi {
|
|
476
|
+
read(args: OmpReadArgument, options?: OmpReadOptions): Promise<string>;
|
|
477
|
+
bash(args: OmpBashArgument, options?: OmpBashOptions): Promise<{ ok: true; output: string; details: unknown } | { ok: false; output: string; details: null; exitCode: number; error: string }>;
|
|
478
|
+
edit(args: OmpEditArgument): Promise<{ ok: true; output: string; details: unknown }>;
|
|
479
|
+
edit(path: string, oldText: string, newText: string): Promise<{ ok: true; output: string; details: unknown }>;
|
|
480
|
+
write(args: OmpWriteArgument): Promise<{ ok: true; output: string; details: unknown }>;
|
|
481
|
+
write(path: string, content: string): Promise<{ ok: true; output: string; details: unknown }>;
|
|
482
|
+
grep(args: OmpGrepArgument): Promise<string>;
|
|
483
|
+
grep(pattern: string, path?: string | OmpGrepOptions, limit?: number): Promise<string>;
|
|
484
|
+
find(args: OmpFindArgument): Promise<string>;
|
|
485
|
+
find(pattern: string, path?: string | OmpFindOptions, limit?: number): Promise<string>;
|
|
486
|
+
ls(args?: OmpLsArgument, options?: OmpLsOptions): Promise<string>;
|
|
487
|
+
}
|
|
488
|
+
type FabricActorHostEvent =
|
|
489
|
+
| "resources_discover"
|
|
490
|
+
| "session_start"
|
|
491
|
+
| "session_before_switch"
|
|
492
|
+
| "session_switch"
|
|
493
|
+
| "session_before_branch"
|
|
494
|
+
| "session_branch"
|
|
495
|
+
| "session_before_compact"
|
|
496
|
+
| "session.compacting"
|
|
497
|
+
| "session_compact"
|
|
498
|
+
| "session_shutdown"
|
|
499
|
+
| "session_before_tree"
|
|
500
|
+
| "session_tree"
|
|
501
|
+
| "goal_updated"
|
|
502
|
+
| "input"
|
|
503
|
+
| "before_agent_start"
|
|
504
|
+
| "agent_start"
|
|
505
|
+
| "agent_end"
|
|
506
|
+
| "session_stop"
|
|
507
|
+
| "turn_start"
|
|
508
|
+
| "turn_end"
|
|
509
|
+
| "message_start"
|
|
510
|
+
| "message_update"
|
|
511
|
+
| "message_end"
|
|
512
|
+
| "context"
|
|
513
|
+
| "before_provider_request"
|
|
514
|
+
| "after_provider_response"
|
|
515
|
+
| "tool_execution_start"
|
|
516
|
+
| "tool_call"
|
|
517
|
+
| "tool_execution_update"
|
|
518
|
+
| "tool_result"
|
|
519
|
+
| "tool_execution_end"
|
|
520
|
+
| "user_bash"
|
|
521
|
+
| "tool_error";
|
|
522
|
+
type FabricActorDelivery = "mailbox" | "steer" | "followUp" | "nextTurn";
|
|
523
|
+
interface FabricActorHostMediaDescriptor {
|
|
524
|
+
readonly type: "image";
|
|
525
|
+
readonly mediaIndex: number;
|
|
526
|
+
readonly mimeType: string;
|
|
527
|
+
}
|
|
528
|
+
interface FabricActorHostSignal {
|
|
529
|
+
readonly payload: unknown;
|
|
530
|
+
readonly media?: readonly FabricActorHostMediaDescriptor[];
|
|
531
|
+
readonly idle: boolean;
|
|
532
|
+
readonly observedAt: number;
|
|
533
|
+
}
|
|
534
|
+
type FabricActorActivation =
|
|
535
|
+
| { readonly kind: "hostEvent"; readonly id: string; readonly source: string; readonly sequence: number; readonly createdAt: number; readonly event: FabricActorHostEvent; readonly mainRevision: number; readonly taskRevision: number; readonly signal?: FabricActorHostSignal }
|
|
536
|
+
| { readonly kind: "direct"; readonly id: string; readonly source: string; readonly sequence: number; readonly createdAt: number }
|
|
537
|
+
| { readonly kind: "mesh"; readonly id: string; readonly source: string; readonly sequence: number; readonly createdAt: number; readonly topic: string };
|
|
538
|
+
interface FabricActorValidityFacts {
|
|
539
|
+
readonly activation: Readonly<FabricActorActivation>;
|
|
540
|
+
readonly current: Readonly<{ latestActivationSequence: number; mainRevision: number; taskRevision: number; idle: boolean; now: number }>;
|
|
541
|
+
}
|
|
542
|
+
type FabricActorValidityDecision = boolean | { valid: boolean; reason?: string };
|
|
543
|
+
type FabricActorBindingScope = "session" | "project";
|
|
544
|
+
interface FabricActorRunBinding { model?: string; thinking?: FabricThinking }
|
|
545
|
+
type FabricActorValidWhile = (facts: Readonly<FabricActorValidityFacts>) => FabricActorValidityDecision;
|
|
546
|
+
interface FabricActorRequestBase {
|
|
547
|
+
scope?: "session" | "project" | "global";
|
|
548
|
+
name: string;
|
|
549
|
+
instructions: string;
|
|
550
|
+
events?: FabricActorHostEvent[];
|
|
551
|
+
topics?: string[];
|
|
552
|
+
responseMode?: "text" | "directive";
|
|
553
|
+
coalesce?: boolean;
|
|
554
|
+
runner?: FabricAgentRunner;
|
|
555
|
+
model?: string;
|
|
556
|
+
thinking?: FabricThinking;
|
|
557
|
+
tools?: string[];
|
|
558
|
+
transport?: FabricTransport;
|
|
559
|
+
timeoutMs?: number;
|
|
560
|
+
timeout_ms?: number;
|
|
561
|
+
extensions?: boolean;
|
|
562
|
+
requires?: Array<string | { ref: string; optional?: boolean }>;
|
|
563
|
+
validWhile?: FabricActorValidWhile;
|
|
564
|
+
residency?: FabricParticipantResidency;
|
|
565
|
+
}
|
|
566
|
+
type FabricActorRequest = FabricActorRequestBase & (
|
|
567
|
+
| { delivery?: "mailbox"; triggerTurn?: false }
|
|
568
|
+
| { delivery: "nextTurn"; triggerTurn?: false }
|
|
569
|
+
| { delivery: "steer" | "followUp"; triggerTurn: boolean }
|
|
570
|
+
);
|
|
571
|
+
interface FabricActorInfo {
|
|
572
|
+
id: string;
|
|
573
|
+
scope: "session" | "project";
|
|
574
|
+
name: string;
|
|
575
|
+
status: "idle" | "queued" | "running" | "stopped";
|
|
576
|
+
runner: FabricAgentRunner;
|
|
577
|
+
events: FabricActorHostEvent[];
|
|
578
|
+
topics: string[];
|
|
579
|
+
delivery: FabricActorDelivery;
|
|
580
|
+
responseMode: "text" | "directive";
|
|
581
|
+
triggerTurn: boolean;
|
|
582
|
+
coalesce: boolean;
|
|
583
|
+
model?: string;
|
|
584
|
+
thinking?: FabricThinking;
|
|
585
|
+
binding?: FabricActorRunBinding & { scope: "session"; sessionId: string; updatedAt?: number };
|
|
586
|
+
projectDefaults?: FabricActorRunBinding & { scope: "project" };
|
|
587
|
+
tools?: string[];
|
|
588
|
+
timeoutMs?: number;
|
|
589
|
+
extensions?: boolean;
|
|
590
|
+
requirements?: Array<{ ref: string; optional?: boolean }>;
|
|
591
|
+
capabilityDigest?: string;
|
|
592
|
+
missingCapabilities?: string[];
|
|
593
|
+
validWhile?: { version: 1; source: string };
|
|
594
|
+
residency: FabricParticipantResidency;
|
|
595
|
+
queued: number;
|
|
596
|
+
messages: number;
|
|
597
|
+
createdAt: number;
|
|
598
|
+
updatedAt: number;
|
|
599
|
+
lastRunId?: string;
|
|
600
|
+
lastError?: string;
|
|
601
|
+
sessionFile?: string;
|
|
602
|
+
logDir?: string;
|
|
603
|
+
}
|
|
604
|
+
interface FabricModelSwitchRequest {
|
|
605
|
+
/** provider/id, a models.aliases name, or a search term; resolution tries aliases first, then exact matches, then the closest fuzzy match (recency from pi-model-sort breaks ties) against authenticated models. */
|
|
606
|
+
model: string;
|
|
607
|
+
/** Optional provider filter applied before matching (e.g. "anthropic"). */
|
|
608
|
+
provider?: string;
|
|
609
|
+
}
|
|
610
|
+
interface FabricModelSwitchResult {
|
|
611
|
+
switched: boolean;
|
|
612
|
+
/** Active model as provider/id after the call (unchanged when reason is "already-active"). */
|
|
613
|
+
model: string;
|
|
614
|
+
name?: string;
|
|
615
|
+
/** Previously active provider/id when known. Absent for already-active results. */
|
|
616
|
+
previous?: string;
|
|
617
|
+
/** Set when the selector resolved through a configured models.aliases name. */
|
|
618
|
+
alias?: string;
|
|
619
|
+
/** How the selector resolved: the alias name, or one of closest/recent/latest for inexact picks. Absent for exact provider/id or bare-id matches. */
|
|
620
|
+
via?: string;
|
|
621
|
+
reason?: "already-active";
|
|
622
|
+
}
|
|
623
|
+
interface FabricActorMessage {
|
|
624
|
+
id: string;
|
|
625
|
+
actorId: string;
|
|
626
|
+
actorName: string;
|
|
627
|
+
direction: "in" | "out";
|
|
628
|
+
source: string;
|
|
629
|
+
createdAt: number;
|
|
630
|
+
text?: string;
|
|
631
|
+
data?: unknown;
|
|
632
|
+
action?: "silent" | "message" | "stop";
|
|
633
|
+
runId?: string;
|
|
634
|
+
error?: string;
|
|
635
|
+
stale?: boolean;
|
|
636
|
+
reason?: string;
|
|
637
|
+
}
|
|
638
|
+
// agentId/agent_id spellings repair to id during agent arg normalization.
|
|
639
|
+
type FabricAgentTargetArgs = { id: string; agentId?: string; agent_id?: string };
|
|
640
|
+
interface FabricAgentsApi {
|
|
641
|
+
run(args: FabricAgentRequest): Promise<FabricAgentResult>;
|
|
642
|
+
handoff(args: FabricHandoffRequest): Promise<FabricHandoffResult>;
|
|
643
|
+
spawn(args: FabricAgentRequest): Promise<FabricAgentHandle>;
|
|
644
|
+
wait(args: FabricAgentTargetArgs): Promise<FabricAgentResult>;
|
|
645
|
+
status(args: FabricAgentTargetArgs): Promise<FabricAgentResult | FabricAgentHandle | FabricMainAgentInfo | FabricActorInfo | FabricParticipantInfo>;
|
|
646
|
+
list(args?: { scope?: FabricParticipantScope }): Promise<Array<FabricAgentResult | FabricAgentHandle | FabricParticipantInfo>>;
|
|
647
|
+
members(args?: { scope?: FabricParticipantScope; kinds?: FabricParticipantKind[]; includeStale?: boolean }): Promise<FabricParticipantInfo[]>;
|
|
648
|
+
self(): Promise<FabricParticipantInfo>;
|
|
649
|
+
main(): Promise<FabricMainAgentInfo>;
|
|
650
|
+
sessions(): Promise<FabricParticipantInfo[]>;
|
|
651
|
+
peers(): Promise<FabricPeerInfo[]>;
|
|
652
|
+
subscribe(args: {
|
|
653
|
+
from: string;
|
|
654
|
+
events: FabricLifecycleEventType[];
|
|
655
|
+
to?: string;
|
|
656
|
+
delivery: FabricLifecycleDelivery;
|
|
657
|
+
triggerTurn: boolean;
|
|
658
|
+
once?: boolean;
|
|
659
|
+
}): Promise<FabricLifecycleSubscription>;
|
|
660
|
+
subscriptions(args?: { from?: string; to?: string }): Promise<FabricLifecycleSubscription[]>;
|
|
661
|
+
unsubscribe(args: FabricAgentTargetArgs): Promise<{ removed: boolean }>;
|
|
662
|
+
models(args?: { runner?: FabricAgentRunner; refresh?: boolean }): Promise<FabricModelInfo[]>;
|
|
663
|
+
stop(args: FabricAgentTargetArgs): Promise<FabricAgentResult | FabricActorInfo | FabricRemoteControlResult>;
|
|
664
|
+
cleanup(args: FabricAgentTargetArgs & { deleteBranch?: boolean; delete_branch?: boolean }): Promise<{ cleaned: boolean }>;
|
|
665
|
+
create(args: FabricActorRequest): Promise<FabricActorInfo>;
|
|
666
|
+
setModel(args: { id: string; model?: string; scope?: FabricActorBindingScope }): Promise<FabricActorInfo>;
|
|
667
|
+
switchModel(args: FabricModelSwitchRequest): Promise<FabricModelSwitchResult>;
|
|
668
|
+
setThinking(args: { id: string; thinking?: FabricThinking; scope?: FabricActorBindingScope }): Promise<FabricActorInfo>;
|
|
669
|
+
setTools(args: { id: string; tools: string[]; scope?: "project" | "global" }): Promise<FabricActorInfo>;
|
|
670
|
+
setEvents(args: { id: string; events: FabricActorHostEvent[] }): Promise<FabricActorInfo>;
|
|
671
|
+
setDeliveryPolicy(args: {
|
|
672
|
+
id: string;
|
|
673
|
+
delivery: FabricActorDelivery;
|
|
674
|
+
triggerTurn: boolean;
|
|
675
|
+
scope?: "project" | "global";
|
|
676
|
+
}): Promise<FabricActorInfo>;
|
|
677
|
+
setInstructions(args: {
|
|
678
|
+
id: string;
|
|
679
|
+
instructions: string;
|
|
680
|
+
scope?: "project" | "global";
|
|
681
|
+
}): Promise<FabricActorInfo>;
|
|
682
|
+
ask(args: { id: string; message: string; data?: unknown; model?: string; thinking?: FabricThinking }): Promise<FabricActorMessage>;
|
|
683
|
+
tell(args: { id: string; message: string; data?: unknown; model?: string; thinking?: FabricThinking }): Promise<{ queued: true; messageId: string }>;
|
|
684
|
+
steer(args: { id: string; message: string; data?: unknown }): Promise<{ queued: true; messageId: string; routed?: "local" | "main" | "mesh"; acknowledged?: boolean }>;
|
|
685
|
+
followUp(args: { id: string; message: string; data?: unknown }): Promise<{ queued: true; messageId: string; routed?: "local" | "main" | "mesh"; acknowledged?: boolean }>;
|
|
686
|
+
setSteeringMode(args: { id: string; mode: "all" | "one-at-a-time" }): Promise<{ queued: true; messageId: string }>;
|
|
687
|
+
setFollowUpMode(args: { id: string; mode: "all" | "one-at-a-time" }): Promise<{ queued: true; messageId: string }>;
|
|
688
|
+
actorStatus(args: FabricAgentTargetArgs): Promise<FabricActorInfo>;
|
|
689
|
+
actors(): Promise<FabricActorInfo[]>;
|
|
690
|
+
messages(args: { id: string; limit?: number }): Promise<FabricActorMessage[]>;
|
|
691
|
+
remove(args: { id: string }): Promise<{ removed: boolean }>;
|
|
692
|
+
log(args: {
|
|
693
|
+
id: string;
|
|
694
|
+
type?: "session" | "run" | "all";
|
|
695
|
+
lines?: number;
|
|
696
|
+
before?: number;
|
|
697
|
+
runId?: string;
|
|
698
|
+
}): Promise<FabricActorLog | FabricAgentLog>;
|
|
699
|
+
}
|
|
700
|
+
interface FabricMcpResult {
|
|
701
|
+
text: string;
|
|
702
|
+
content: unknown[];
|
|
703
|
+
structuredContent: unknown;
|
|
704
|
+
}
|
|
705
|
+
interface FabricMcpTool {
|
|
706
|
+
(args?: Record<string, unknown>): Promise<FabricMcpResult | unknown>;
|
|
707
|
+
}
|
|
708
|
+
interface FabricMcpServer {
|
|
709
|
+
[tool: string]: FabricMcpTool;
|
|
710
|
+
}
|
|
711
|
+
// Management verbs stay members of mcp even when the declare line below is
|
|
712
|
+
// replaced by generated per-server declarations (see the dynamic option on
|
|
713
|
+
// guestTypeDeclarations), so generated surfaces intersect with this type
|
|
714
|
+
// rather than re-declaring them.
|
|
715
|
+
interface FabricMcpManagement {
|
|
716
|
+
servers(): Promise<Array<{ name: string; description: string | null; transport: "http" | "stdio" }>>;
|
|
717
|
+
reload(): Promise<{ servers: string[] }>;
|
|
718
|
+
register(args: {
|
|
719
|
+
name: string;
|
|
720
|
+
description?: string;
|
|
721
|
+
command?: string;
|
|
722
|
+
args?: string[];
|
|
723
|
+
cwd?: string;
|
|
724
|
+
baseUrl?: string;
|
|
725
|
+
headers?: Record<string, string>;
|
|
726
|
+
env?: Record<string, string>;
|
|
727
|
+
overwrite?: boolean;
|
|
728
|
+
}): Promise<{ registered: string }>;
|
|
729
|
+
call(args: { server: string; tool: string; args?: Record<string, unknown> }): Promise<unknown>;
|
|
730
|
+
}
|
|
731
|
+
// Loose static surface: any server/tool name compiles and argument shapes are
|
|
732
|
+
// enforced at dispatch by the registry. With descriptor data available the
|
|
733
|
+
// execution service replaces the declare-const-mcp line below with a
|
|
734
|
+
// schema-typed rendering of the live cache (runtime/dynamic-guest-types.ts).
|
|
735
|
+
type FabricMcpApi = Record<string, FabricMcpServer> & FabricMcpManagement;
|
|
736
|
+
interface FabricCouncilRunOptions {
|
|
737
|
+
task: string;
|
|
738
|
+
roles: string[];
|
|
739
|
+
runner?: FabricAgentRunner;
|
|
740
|
+
transport?: FabricTransport;
|
|
741
|
+
model?: string;
|
|
742
|
+
thinking?: FabricThinking;
|
|
743
|
+
tools?: string[];
|
|
744
|
+
timeoutMs?: number;
|
|
745
|
+
/** Filesystem execution directory; relative paths resolve from the parent agent cwd. */
|
|
746
|
+
cwd?: string;
|
|
747
|
+
worktree?: boolean;
|
|
748
|
+
}
|
|
749
|
+
interface FabricCouncilApi {
|
|
750
|
+
run(args: FabricCouncilRunOptions & { synthesize?: true }): Promise<FabricAgentResult>;
|
|
751
|
+
run(args: FabricCouncilRunOptions & { synthesize: false }): Promise<FabricAgentResult[]>;
|
|
752
|
+
}
|
|
753
|
+
interface FabricMeshIdentity {
|
|
754
|
+
id: string;
|
|
755
|
+
name: string;
|
|
756
|
+
kind: "main" | "actor" | "agent";
|
|
757
|
+
sessionId?: string;
|
|
758
|
+
}
|
|
759
|
+
interface FabricMeshEvent {
|
|
760
|
+
id: string;
|
|
761
|
+
sequence: number;
|
|
762
|
+
topic: string;
|
|
763
|
+
kind: string;
|
|
764
|
+
from: FabricMeshIdentity;
|
|
765
|
+
to?: string;
|
|
766
|
+
text?: string;
|
|
767
|
+
data?: unknown;
|
|
768
|
+
createdAt: number;
|
|
769
|
+
}
|
|
770
|
+
interface FabricMeshStateEntry<T = unknown> {
|
|
771
|
+
key: string;
|
|
772
|
+
value: T;
|
|
773
|
+
version: number;
|
|
774
|
+
updatedAt: number;
|
|
775
|
+
updatedBy: FabricMeshIdentity;
|
|
776
|
+
}
|
|
777
|
+
interface FabricMeshApi {
|
|
778
|
+
self(): Promise<FabricMeshIdentity>;
|
|
779
|
+
publish(args: { topic: string; kind?: string; to?: string; text?: string; data?: unknown; message?: string; body?: string }): Promise<FabricMeshEvent>;
|
|
780
|
+
read(args?: { after?: number; topic?: string; to?: string; limit?: number; max?: number }): Promise<FabricMeshEvent[]>;
|
|
781
|
+
members(args?: { scope?: FabricParticipantScope; kinds?: FabricParticipantKind[]; includeStale?: boolean; limit?: number; max?: number; include_stale?: boolean }): Promise<FabricParticipantInfo[]>;
|
|
782
|
+
get<T = unknown>(args: { key: string }): Promise<FabricMeshStateEntry<T> | null>;
|
|
783
|
+
list<T = unknown>(args?: { prefix?: string; limit?: number; max?: number }): Promise<Array<FabricMeshStateEntry<T>>>;
|
|
784
|
+
put<T = unknown>(args: { key: string; value: T; ifVersion?: number; if_version?: number; version?: number }): Promise<FabricMeshStateEntry<T>>;
|
|
785
|
+
delete(args: { key: string; ifVersion?: number; if_version?: number; version?: number }): Promise<{ deleted: boolean; version?: number }>;
|
|
786
|
+
}
|
|
787
|
+
// Stable-provider argument bags declare the canonical keys plus the
|
|
788
|
+
// near-miss spellings repaired during argument normalization
|
|
789
|
+
// (providers/arg-normalization.ts and each provider's per-action table). The
|
|
790
|
+
// registry's prepare stage repairs aliases before schema validation, so a
|
|
791
|
+
// call spelled with an alias typechecks instead of tripping the
|
|
792
|
+
// excess-property check; the canonical key wins on conflict, and anything
|
|
793
|
+
// else fails additionalProperties:false validation with the offending
|
|
794
|
+
// property path named. Keep these spillover fields in sync with the provider
|
|
795
|
+
// normalization tables.
|
|
796
|
+
type FabricMemoryBranches = "active" | "all";
|
|
797
|
+
type FabricMemoryQueryMode = "literal" | "phrase" | "regex";
|
|
798
|
+
type FabricMemoryQueryMatch = "all" | "any";
|
|
799
|
+
interface FabricMemoryEntryRange {
|
|
800
|
+
first: number;
|
|
801
|
+
last: number;
|
|
802
|
+
}
|
|
803
|
+
interface FabricMemoryRecallArgs {
|
|
804
|
+
query?: string;
|
|
805
|
+
queryMode?: FabricMemoryQueryMode;
|
|
806
|
+
queryMatch?: FabricMemoryQueryMatch;
|
|
807
|
+
expectedSourceHash?: string;
|
|
808
|
+
expectedLineageFingerprint?: string;
|
|
809
|
+
branches?: FabricMemoryBranches;
|
|
810
|
+
scope?: string;
|
|
811
|
+
offset?: number;
|
|
812
|
+
pageSize?: number;
|
|
813
|
+
snippetChars?: number;
|
|
814
|
+
role?: string;
|
|
815
|
+
tool?: string;
|
|
816
|
+
ref?: string;
|
|
817
|
+
provider?: string;
|
|
818
|
+
action?: string;
|
|
819
|
+
outcome?: "succeeded" | "failed" | "aborted" | "timed_out";
|
|
820
|
+
since?: number;
|
|
821
|
+
until?: number;
|
|
822
|
+
entryRange?: FabricMemoryEntryRange;
|
|
823
|
+
q?: string;
|
|
824
|
+
limit?: number;
|
|
825
|
+
max?: number;
|
|
826
|
+
page_size?: number;
|
|
827
|
+
snippet_chars?: number;
|
|
828
|
+
query_mode?: FabricMemoryQueryMode;
|
|
829
|
+
query_match?: FabricMemoryQueryMatch;
|
|
830
|
+
entry_range?: FabricMemoryEntryRange;
|
|
831
|
+
}
|
|
832
|
+
interface FabricMemoryExpandArgs {
|
|
833
|
+
session: string;
|
|
834
|
+
expectedSourceHash?: string;
|
|
835
|
+
expectedLineageFingerprint?: string;
|
|
836
|
+
branches?: FabricMemoryBranches;
|
|
837
|
+
indices?: number[];
|
|
838
|
+
entryIds?: string[];
|
|
839
|
+
operationAddresses?: string[];
|
|
840
|
+
entryRange?: FabricMemoryEntryRange;
|
|
841
|
+
before?: number;
|
|
842
|
+
after?: number;
|
|
843
|
+
entryOffset?: number;
|
|
844
|
+
textOffset?: number;
|
|
845
|
+
maxChars?: number;
|
|
846
|
+
maxEntries?: number;
|
|
847
|
+
id?: string;
|
|
848
|
+
file?: string;
|
|
849
|
+
path?: string;
|
|
850
|
+
session_id?: string;
|
|
851
|
+
index?: number;
|
|
852
|
+
entry_ids?: string[];
|
|
853
|
+
operation_addresses?: string[];
|
|
854
|
+
entry_range?: FabricMemoryEntryRange;
|
|
855
|
+
entry_offset?: number;
|
|
856
|
+
text_offset?: number;
|
|
857
|
+
max_chars?: number;
|
|
858
|
+
max_entries?: number;
|
|
859
|
+
}
|
|
860
|
+
interface FabricMemoryCall<Ref extends string, Args> {
|
|
861
|
+
ref: Ref;
|
|
862
|
+
args: Args;
|
|
863
|
+
}
|
|
864
|
+
interface FabricMemoryRecallEntryHit {
|
|
865
|
+
kind: "entry";
|
|
866
|
+
sessionId: string;
|
|
867
|
+
tier: "hot" | "cold";
|
|
868
|
+
index: number;
|
|
869
|
+
entryId: string | null;
|
|
870
|
+
parentId: string | null;
|
|
871
|
+
operationAddress: string | null;
|
|
872
|
+
type: string;
|
|
873
|
+
role: string | null;
|
|
874
|
+
tool: string | null;
|
|
875
|
+
ref: string | null;
|
|
876
|
+
provider: string | null;
|
|
877
|
+
action: string | null;
|
|
878
|
+
timestamp: number | null;
|
|
879
|
+
isError: boolean;
|
|
880
|
+
outcome?: "succeeded" | "failed" | "aborted" | "timed_out";
|
|
881
|
+
score: number;
|
|
882
|
+
snippet: string;
|
|
883
|
+
truncated: boolean;
|
|
884
|
+
follow: FabricMemoryCall<"memory.expand", FabricMemoryExpandArgs>;
|
|
885
|
+
}
|
|
886
|
+
interface FabricMemoryRecallSessionHit {
|
|
887
|
+
kind: "session";
|
|
888
|
+
sessionId: string;
|
|
889
|
+
tier: "cold";
|
|
890
|
+
cwd: string;
|
|
891
|
+
lastTimestamp: number | null;
|
|
892
|
+
score: number;
|
|
893
|
+
matchedTerms: number;
|
|
894
|
+
matchedStructuralEntries: number;
|
|
895
|
+
follow: FabricMemoryCall<"memory.recall", FabricMemoryRecallArgs>;
|
|
896
|
+
}
|
|
897
|
+
type FabricMemoryRecallHit = FabricMemoryRecallEntryHit | FabricMemoryRecallSessionHit;
|
|
898
|
+
interface FabricMemoryError {
|
|
899
|
+
code: string;
|
|
900
|
+
message: string;
|
|
901
|
+
[key: string]: unknown;
|
|
902
|
+
}
|
|
903
|
+
interface FabricMemoryCoverage {
|
|
904
|
+
complete: boolean;
|
|
905
|
+
indexedSessions: number;
|
|
906
|
+
eligibleSessions: number;
|
|
907
|
+
staleSessions: number;
|
|
908
|
+
incompleteSessions: number;
|
|
909
|
+
reasons: string[];
|
|
910
|
+
error?: FabricMemoryError;
|
|
911
|
+
}
|
|
912
|
+
interface FabricMemoryRecallResult {
|
|
913
|
+
total: number;
|
|
914
|
+
hits: FabricMemoryRecallHit[];
|
|
915
|
+
next: FabricMemoryCall<"memory.recall", FabricMemoryRecallArgs> | null;
|
|
916
|
+
coverage: FabricMemoryCoverage;
|
|
917
|
+
error?: FabricMemoryError;
|
|
918
|
+
}
|
|
919
|
+
interface FabricMemoryExpandedEntry {
|
|
920
|
+
index: number;
|
|
921
|
+
entryId: string | null;
|
|
922
|
+
parentId: string | null;
|
|
923
|
+
type: string | null;
|
|
924
|
+
role: string | null;
|
|
925
|
+
timestamp: number | null;
|
|
926
|
+
isError: boolean;
|
|
927
|
+
anchor?: boolean;
|
|
928
|
+
text: string;
|
|
929
|
+
textRange: { start: number; end: number; total: number; complete: boolean };
|
|
930
|
+
parentEntryId?: string | null;
|
|
931
|
+
operationAddress?: string | null;
|
|
932
|
+
tool?: string | null;
|
|
933
|
+
ref?: string | null;
|
|
934
|
+
provider?: string | null;
|
|
935
|
+
action?: string | null;
|
|
936
|
+
outcome?: "succeeded" | "failed" | "aborted" | "timed_out";
|
|
937
|
+
filesTouched?: Array<string | null>;
|
|
938
|
+
operation?: unknown;
|
|
939
|
+
branchFact?: unknown;
|
|
940
|
+
structuredTruncated?: boolean;
|
|
941
|
+
factAddress?: string | null;
|
|
942
|
+
carrierEntryId?: string | null;
|
|
943
|
+
carrierParentId?: string | null;
|
|
944
|
+
carrierFromId?: string | null;
|
|
945
|
+
}
|
|
946
|
+
interface FabricMemoryExpandResult {
|
|
947
|
+
session?: string;
|
|
948
|
+
sourceHash?: string;
|
|
949
|
+
branches?: FabricMemoryBranches;
|
|
950
|
+
lineageFingerprint?: string;
|
|
951
|
+
entryCount?: number;
|
|
952
|
+
entries: FabricMemoryExpandedEntry[];
|
|
953
|
+
next?: FabricMemoryCall<"memory.expand", FabricMemoryExpandArgs> | null;
|
|
954
|
+
error?: FabricMemoryError;
|
|
955
|
+
}
|
|
956
|
+
interface FabricMemoryWalkResult {
|
|
957
|
+
visited: number;
|
|
958
|
+
stopped: boolean;
|
|
959
|
+
error?: FabricMemoryError;
|
|
960
|
+
}
|
|
961
|
+
interface FabricMemorySessionInfo {
|
|
962
|
+
id: string;
|
|
963
|
+
file: string;
|
|
964
|
+
cwd: string;
|
|
965
|
+
mtime: number;
|
|
966
|
+
entryCount: number;
|
|
967
|
+
tier: "hot" | "cold";
|
|
968
|
+
branches: FabricMemoryBranches;
|
|
969
|
+
lineageFingerprint: string | null;
|
|
970
|
+
}
|
|
971
|
+
interface FabricMemoryApi {
|
|
972
|
+
recall(args?: FabricMemoryRecallArgs): Promise<FabricMemoryRecallResult>;
|
|
973
|
+
expand(args: FabricMemoryExpandArgs): Promise<FabricMemoryExpandResult>;
|
|
974
|
+
walk(
|
|
975
|
+
args: FabricMemoryExpandArgs,
|
|
976
|
+
visitor: (
|
|
977
|
+
entry: FabricMemoryExpandedEntry,
|
|
978
|
+
index: number,
|
|
979
|
+
) => boolean | void | Promise<boolean | void>,
|
|
980
|
+
): Promise<FabricMemoryWalkResult>;
|
|
981
|
+
sessions(args?: {
|
|
982
|
+
scope?: string;
|
|
983
|
+
branches?: FabricMemoryBranches;
|
|
984
|
+
limit?: number;
|
|
985
|
+
max?: number;
|
|
986
|
+
}): Promise<{
|
|
987
|
+
scope?: string;
|
|
988
|
+
branches?: FabricMemoryBranches;
|
|
989
|
+
sessions?: FabricMemorySessionInfo[];
|
|
990
|
+
error?: FabricMemoryError;
|
|
991
|
+
}>;
|
|
992
|
+
}
|
|
993
|
+
interface FabricStateTransitionArgs {
|
|
994
|
+
label: string;
|
|
995
|
+
from?: string;
|
|
996
|
+
to: string;
|
|
997
|
+
summary: string;
|
|
998
|
+
evidence?: string[];
|
|
999
|
+
tags?: string[];
|
|
1000
|
+
kind?: "state" | "representation";
|
|
1001
|
+
complexity?: { files: string[] };
|
|
1002
|
+
force?: boolean;
|
|
1003
|
+
name?: string;
|
|
1004
|
+
description?: string;
|
|
1005
|
+
}
|
|
1006
|
+
interface FabricStateComplexityFile {
|
|
1007
|
+
file: string;
|
|
1008
|
+
supported: boolean;
|
|
1009
|
+
language?: string;
|
|
1010
|
+
current?: number;
|
|
1011
|
+
recorded?: number;
|
|
1012
|
+
delta?: number;
|
|
1013
|
+
recordedDelta?: number;
|
|
1014
|
+
}
|
|
1015
|
+
interface FabricStateVerificationResult {
|
|
1016
|
+
certified: boolean;
|
|
1017
|
+
violated: boolean;
|
|
1018
|
+
certificationStatus: "certified" | "failed";
|
|
1019
|
+
results: unknown[];
|
|
1020
|
+
failures: unknown[];
|
|
1021
|
+
certificate?: unknown;
|
|
1022
|
+
reportingError?: string;
|
|
1023
|
+
evidenceDigest: string;
|
|
1024
|
+
resultDigest: string;
|
|
1025
|
+
}
|
|
1026
|
+
interface FabricStateApi {
|
|
1027
|
+
transition(args: FabricStateTransitionArgs): Promise<{ event: FabricMeshEvent; head: unknown }>;
|
|
1028
|
+
get(): Promise<{
|
|
1029
|
+
head: unknown | null;
|
|
1030
|
+
goal: { check: string; description?: string } | null;
|
|
1031
|
+
complexity: { files: number; decisionPoints: number; lastNetDelta: number };
|
|
1032
|
+
certification: { current: unknown | null; recent: unknown[] };
|
|
1033
|
+
recentLabels: string[];
|
|
1034
|
+
}>;
|
|
1035
|
+
history(args?: { label?: string; limit?: number; includeArchived?: boolean; name?: string; max?: number }): Promise<{
|
|
1036
|
+
transitions: unknown[];
|
|
1037
|
+
labels: string[];
|
|
1038
|
+
certifications: unknown[];
|
|
1039
|
+
}>;
|
|
1040
|
+
complexity(args?: { files?: string[]; paths?: string[] }): Promise<{ files: FabricStateComplexityFile[]; netDelta: number }>;
|
|
1041
|
+
verify(args?: { labels?: string[]; includeArchived?: boolean; timeoutMs?: number; label?: string }): Promise<FabricStateVerificationResult>;
|
|
1042
|
+
goal(args: { check: string; description?: string; command?: string; cmd?: string; predicate?: string }): Promise<FabricMeshStateEntry<{ check: string; description?: string }>>;
|
|
1043
|
+
checkGoal(args?: { timeoutMs?: number }): Promise<{
|
|
1044
|
+
passed: boolean;
|
|
1045
|
+
output: string;
|
|
1046
|
+
exitCode: number | null;
|
|
1047
|
+
error?: string;
|
|
1048
|
+
}>;
|
|
1049
|
+
}
|
|
1050
|
+
type FabricSchemaEvidence =
|
|
1051
|
+
| { kind: "file_exists"; path: string }
|
|
1052
|
+
| { kind: "file_absent"; path: string }
|
|
1053
|
+
| { kind: "file_contains"; path: string; literal: string }
|
|
1054
|
+
| { kind: "file_sha256"; path: string; sha256: string }
|
|
1055
|
+
| { kind: "trusted_command"; name: string };
|
|
1056
|
+
type FabricSchemaFileOperation =
|
|
1057
|
+
| { kind: "write"; path: string; content: string; expected: { absent: true } | { sha256: string } }
|
|
1058
|
+
| { kind: "edit"; path: string; oldText: string; newText: string; expectedSha256: string }
|
|
1059
|
+
| { kind: "delete"; path: string; expectedSha256: string };
|
|
1060
|
+
interface FabricSchemaEvidenceResult {
|
|
1061
|
+
evidence: FabricSchemaEvidence;
|
|
1062
|
+
status: "confirmed" | "nonconfirmed" | "error";
|
|
1063
|
+
detail: string;
|
|
1064
|
+
exitCode?: number | null;
|
|
1065
|
+
output?: string;
|
|
1066
|
+
observedSha256?: string;
|
|
1067
|
+
}
|
|
1068
|
+
interface FabricSchemaStatus {
|
|
1069
|
+
mode: "off" | "audit" | "enforce";
|
|
1070
|
+
certificateTtlMs: number;
|
|
1071
|
+
maxFiles: number;
|
|
1072
|
+
maxBytes: number;
|
|
1073
|
+
trustedCommands: string[];
|
|
1074
|
+
generation: number;
|
|
1075
|
+
lastOutcome: "committed" | "rolled_back" | "quarantined" | null;
|
|
1076
|
+
hypotheses: Array<{
|
|
1077
|
+
id: string;
|
|
1078
|
+
label: string;
|
|
1079
|
+
status: string;
|
|
1080
|
+
generation: number;
|
|
1081
|
+
updatedAt: number;
|
|
1082
|
+
}>;
|
|
1083
|
+
}
|
|
1084
|
+
interface FabricSchemaVerificationResult {
|
|
1085
|
+
verified: boolean;
|
|
1086
|
+
hypothesisId: string;
|
|
1087
|
+
certificate?: string;
|
|
1088
|
+
issuedAt?: number;
|
|
1089
|
+
expiresAt?: number;
|
|
1090
|
+
reason?: string;
|
|
1091
|
+
results: FabricSchemaEvidenceResult[];
|
|
1092
|
+
}
|
|
1093
|
+
interface FabricSchemaCommitResult {
|
|
1094
|
+
outcome: "committed" | "rolled_back" | "quarantined";
|
|
1095
|
+
transactionId: string;
|
|
1096
|
+
generation?: number;
|
|
1097
|
+
paths?: string[];
|
|
1098
|
+
postconditions?: FabricSchemaEvidenceResult[];
|
|
1099
|
+
complexityReductionCertified?: boolean;
|
|
1100
|
+
stateTransition?: unknown;
|
|
1101
|
+
error?: string;
|
|
1102
|
+
rollbackError?: string;
|
|
1103
|
+
}
|
|
1104
|
+
interface FabricSchemaApi {
|
|
1105
|
+
status(): Promise<FabricSchemaStatus>;
|
|
1106
|
+
hypothesize(args: {
|
|
1107
|
+
label: string;
|
|
1108
|
+
summary: string;
|
|
1109
|
+
evidence: FabricSchemaEvidence[];
|
|
1110
|
+
complexityReduction?: boolean;
|
|
1111
|
+
name?: string;
|
|
1112
|
+
description?: string;
|
|
1113
|
+
complexity_reduction?: boolean;
|
|
1114
|
+
}): Promise<{
|
|
1115
|
+
hypothesisId: string;
|
|
1116
|
+
status: string;
|
|
1117
|
+
state: unknown;
|
|
1118
|
+
fingerprint: string;
|
|
1119
|
+
generation: number;
|
|
1120
|
+
}>;
|
|
1121
|
+
verify(args: { hypothesisId: string; id?: string; hypothesis_id?: string }): Promise<FabricSchemaVerificationResult>;
|
|
1122
|
+
commit(args: {
|
|
1123
|
+
hypothesisId: string;
|
|
1124
|
+
certificate: string;
|
|
1125
|
+
operations: FabricSchemaFileOperation[];
|
|
1126
|
+
postconditions: FabricSchemaEvidence[];
|
|
1127
|
+
id?: string;
|
|
1128
|
+
hypothesis_id?: string;
|
|
1129
|
+
}): Promise<FabricSchemaCommitResult>;
|
|
1130
|
+
abort(args: { hypothesisId: string; certificate?: string; id?: string; hypothesis_id?: string }): Promise<{
|
|
1131
|
+
aborted: true;
|
|
1132
|
+
hypothesisId: string;
|
|
1133
|
+
}>;
|
|
1134
|
+
}
|
|
1135
|
+
interface FabricCompactPendingIntent {
|
|
1136
|
+
reason?: string;
|
|
1137
|
+
instructions?: string;
|
|
1138
|
+
preserve?: string[];
|
|
1139
|
+
requestedBy: string;
|
|
1140
|
+
requestedAt: number;
|
|
1141
|
+
}
|
|
1142
|
+
interface FabricCompactLastCommit {
|
|
1143
|
+
at: number;
|
|
1144
|
+
requestedBy: string;
|
|
1145
|
+
status: "committed" | "cancelled" | "failed";
|
|
1146
|
+
summary?: string;
|
|
1147
|
+
tokensBefore?: number;
|
|
1148
|
+
estimatedTokensAfter?: number;
|
|
1149
|
+
error?: string;
|
|
1150
|
+
}
|
|
1151
|
+
type FabricComponentState = "waiting" | "loading" | "active" | "unloading" | "failed" | "quarantined" | "disposed";
|
|
1152
|
+
interface FabricComponentEffectInfo {
|
|
1153
|
+
label: string;
|
|
1154
|
+
kind: "none" | "scoped" | "transactional" | "emission";
|
|
1155
|
+
resources: string[];
|
|
1156
|
+
ordering: "commutative" | "ordered" | "unknown";
|
|
1157
|
+
}
|
|
1158
|
+
interface FabricComponentEffectConflict {
|
|
1159
|
+
withComponent: string;
|
|
1160
|
+
resources: string[];
|
|
1161
|
+
reason: "shared_resource" | "unknown_resource";
|
|
1162
|
+
}
|
|
1163
|
+
interface FabricComponentInfo {
|
|
1164
|
+
id: string;
|
|
1165
|
+
component: string;
|
|
1166
|
+
parentId?: string;
|
|
1167
|
+
state: FabricComponentState;
|
|
1168
|
+
guarantee: "managed" | "revertible";
|
|
1169
|
+
requirements: string[];
|
|
1170
|
+
provisions: string[];
|
|
1171
|
+
missing: string[];
|
|
1172
|
+
optionalMissing: string[];
|
|
1173
|
+
effects?: FabricComponentEffectInfo[];
|
|
1174
|
+
effectConflicts?: FabricComponentEffectConflict[];
|
|
1175
|
+
targetDigest?: string;
|
|
1176
|
+
error?: string;
|
|
1177
|
+
cleanupErrors?: string[];
|
|
1178
|
+
revision: number;
|
|
1179
|
+
createdAt: number;
|
|
1180
|
+
updatedAt: number;
|
|
1181
|
+
}
|
|
1182
|
+
interface FabricComponentsApi {
|
|
1183
|
+
list(): Promise<{
|
|
1184
|
+
definitions: Array<{ name: string; description?: string; revision: number; requirements: string[]; provisions: string[] }>;
|
|
1185
|
+
components: FabricComponentInfo[];
|
|
1186
|
+
}>;
|
|
1187
|
+
status(args: { id: string }): Promise<FabricComponentInfo>;
|
|
1188
|
+
graph(): Promise<{
|
|
1189
|
+
components: FabricComponentInfo[];
|
|
1190
|
+
edges: Array<{ from: string; to: string; ref: string; kind?: "dependency" | "ownership" }>;
|
|
1191
|
+
cycles: string[][];
|
|
1192
|
+
}>;
|
|
1193
|
+
reload(args?: { id?: string }): Promise<{ components: FabricComponentInfo[] }>;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
interface FabricCompactApi {
|
|
1197
|
+
request(args?: {
|
|
1198
|
+
reason?: string;
|
|
1199
|
+
instructions?: string;
|
|
1200
|
+
preserve?: string[];
|
|
1201
|
+
requestedBy?: string;
|
|
1202
|
+
instruction?: string;
|
|
1203
|
+
requested_by?: string;
|
|
1204
|
+
}): Promise<{ requested: true; intent: FabricCompactPendingIntent }>;
|
|
1205
|
+
status(): Promise<{ pending?: FabricCompactPendingIntent; last?: FabricCompactLastCommit }>;
|
|
1206
|
+
cancel(): Promise<{ cancelled: true }>;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
interface FabricWorkflowAgentOptions extends Omit<FabricAgentRequest, "task"> {
|
|
1210
|
+
label?: string;
|
|
1211
|
+
}
|
|
1212
|
+
type FabricActivityStatus = "pending" | "running" | "completed" | "failed" | "blocked" | "stopped";
|
|
1213
|
+
type FabricActivityKind = "agent" | "actor" | "tool" | "extension" | "mcp" | "mesh" | "task" | "custom";
|
|
1214
|
+
interface FabricWorkflowDisplay {
|
|
1215
|
+
name?: string;
|
|
1216
|
+
description?: string;
|
|
1217
|
+
}
|
|
1218
|
+
interface FabricWorkflowPhaseOptions {
|
|
1219
|
+
id?: string;
|
|
1220
|
+
description?: string;
|
|
1221
|
+
total?: number;
|
|
1222
|
+
}
|
|
1223
|
+
interface FabricWorkflowPhaseInput extends FabricWorkflowPhaseOptions {
|
|
1224
|
+
name: string;
|
|
1225
|
+
}
|
|
1226
|
+
interface FabricWorkflowItem {
|
|
1227
|
+
id: string;
|
|
1228
|
+
label: string;
|
|
1229
|
+
status?: FabricActivityStatus;
|
|
1230
|
+
phase?: string;
|
|
1231
|
+
detail?: string;
|
|
1232
|
+
kind?: FabricActivityKind;
|
|
1233
|
+
current?: string;
|
|
1234
|
+
total?: number;
|
|
1235
|
+
completed?: number;
|
|
1236
|
+
data?: unknown;
|
|
1237
|
+
}
|
|
1238
|
+
interface FabricWorkflowApi {
|
|
1239
|
+
agent<T = string>(prompt: string, options?: FabricWorkflowAgentOptions): Promise<T>;
|
|
1240
|
+
parallel<T, R>(items: T[], mapper: (item: T, index: number) => Promise<R> | R, concurrency?: number | { concurrency?: number }): Promise<R[]>;
|
|
1241
|
+
parallel<T>(thunks: Array<() => Promise<T> | T>, concurrency?: number | { concurrency?: number }): Promise<T[]>;
|
|
1242
|
+
pipeline<T>(items: T[], ...stages: Array<(value: unknown, original: T, index: number) => Promise<unknown> | unknown>): Promise<unknown[]>;
|
|
1243
|
+
configure(display: FabricWorkflowDisplay): Promise<FabricWorkflowDisplay>;
|
|
1244
|
+
phase(name: string, options?: FabricWorkflowPhaseOptions): Promise<{ name: string; index: number; id?: string }>;
|
|
1245
|
+
phase(input: FabricWorkflowPhaseInput): Promise<{ name: string; index: number; id?: string }>;
|
|
1246
|
+
item(item: FabricWorkflowItem): Promise<FabricWorkflowItem>;
|
|
1247
|
+
event(event: { message: string; level?: "info" | "success" | "warning" | "error"; data?: unknown }): Promise<void>;
|
|
1248
|
+
log(...values: unknown[]): void;
|
|
1249
|
+
budget: { total: number; spent(): number; remaining(): number };
|
|
1250
|
+
}
|
|
1251
|
+
declare const tools: FabricToolsApi;
|
|
1252
|
+
declare const omp: OmpToolsApi;
|
|
1253
|
+
declare const extensions: FabricExtensionsApi;
|
|
1254
|
+
declare const agents: FabricAgentsApi;
|
|
1255
|
+
declare const mesh: FabricMeshApi;
|
|
1256
|
+
declare const mcp: FabricMcpApi;
|
|
1257
|
+
declare const memory: FabricMemoryApi;
|
|
1258
|
+
declare const state: FabricStateApi;
|
|
1259
|
+
declare const schema: FabricSchemaApi;
|
|
1260
|
+
declare const components: FabricComponentsApi;
|
|
1261
|
+
declare const compact: FabricCompactApi;
|
|
1262
|
+
declare const council: FabricCouncilApi;
|
|
1263
|
+
declare const workflow: FabricWorkflowApi;
|
|
1264
|
+
declare function agent<T = string>(prompt: string, options?: FabricWorkflowAgentOptions): Promise<T>;
|
|
1265
|
+
declare function parallel<T, R>(items: T[], mapper: (item: T, index: number) => Promise<R> | R, concurrency?: number | { concurrency?: number }): Promise<R[]>;
|
|
1266
|
+
declare function parallel<T>(thunks: Array<() => Promise<T> | T>, concurrency?: number | { concurrency?: number }): Promise<T[]>;
|
|
1267
|
+
declare function pipeline<T>(items: T[], ...stages: Array<(value: unknown, original: T, index: number) => Promise<unknown> | unknown>): Promise<unknown[]>;
|
|
1268
|
+
declare function phase(name: string, options?: FabricWorkflowPhaseOptions): Promise<{ name: string; index: number; id?: string }>;
|
|
1269
|
+
declare function phase(input: FabricWorkflowPhaseInput): Promise<{ name: string; index: number; id?: string }>;
|
|
1270
|
+
declare function log(...values: unknown[]): void;
|
|
1271
|
+
declare const budget: FabricWorkflowApi["budget"];
|
|
1272
|
+
type FabricRlmRequest = Omit<FabricAgentRequest, "runner" | "recursive" | "cwd"> & { runner?: "omp" };
|
|
1273
|
+
declare const rlm: { query(args: FabricRlmRequest): Promise<FabricAgentResult> };
|
|
1274
|
+
interface FabricConsole {
|
|
1275
|
+
log(...args: unknown[]): void;
|
|
1276
|
+
info(...args: unknown[]): void;
|
|
1277
|
+
warn(...args: unknown[]): void;
|
|
1278
|
+
error(...args: unknown[]): void;
|
|
1279
|
+
}
|
|
1280
|
+
declare const console: FabricConsole;
|
|
1281
|
+
declare const payloads: Readonly<Record<string, string>>;
|
|
1282
|
+
declare function print(...args: unknown[]): void;
|
|
1283
|
+
declare function setTimeout(handler: (...args: any[]) => void, timeout?: number): number;
|
|
1284
|
+
declare function clearTimeout(handle: number): void;
|
|
1285
|
+
declare function setInterval(handler: (...args: any[]) => void, timeout?: number): number;
|
|
1286
|
+
declare function clearInterval(handle: number): void;
|
|
1287
|
+
`;
|
|
1288
|
+
var FULL_CODE_GLOBAL_DECLARATIONS = [
|
|
1289
|
+
"declare const omp: OmpToolsApi;\n",
|
|
1290
|
+
"declare const extensions: FabricExtensionsApi;\n"
|
|
1291
|
+
];
|
|
1292
|
+
var OMP_LOOSE_DECLARATION = "declare const omp: OmpToolsApi;\n";
|
|
1293
|
+
var MCP_LOOSE_DECLARATION = "declare const mcp: FabricMcpApi;\n";
|
|
1294
|
+
var EXTENSIONS_LOOSE_DECLARATION = "declare const extensions: FabricExtensionsApi;\n";
|
|
1295
|
+
var globalDeclarationLine = (name) => new RegExp(`^declare const ${name}: [^\\n]*;\\n`, "m");
|
|
1296
|
+
var terminatedDeclaration = (block) => block.endsWith("\n") ? block : `${block}
|
|
1297
|
+
`;
|
|
1298
|
+
var guestTypeDeclarations = (fullCodeMode, options = {}) => {
|
|
1299
|
+
const base = fullCodeMode ? GUEST_TYPE_DECLARATIONS : FULL_CODE_GLOBAL_DECLARATIONS.reduce(
|
|
1300
|
+
(declarations, declaration) => declarations.replace(declaration, ""),
|
|
1301
|
+
GUEST_TYPE_DECLARATIONS
|
|
1302
|
+
);
|
|
1303
|
+
let result = (options.excludeGlobals ?? []).reduce(
|
|
1304
|
+
(declarations, name) => declarations.replace(globalDeclarationLine(name), ""),
|
|
1305
|
+
base
|
|
1306
|
+
);
|
|
1307
|
+
if (fullCodeMode && options.coreOverrides && result.includes(OMP_LOOSE_DECLARATION)) {
|
|
1308
|
+
result = result.replace(
|
|
1309
|
+
OMP_LOOSE_DECLARATION,
|
|
1310
|
+
terminatedDeclaration(options.coreOverrides)
|
|
1311
|
+
);
|
|
1312
|
+
}
|
|
1313
|
+
if (options.dynamic?.mcp && result.includes(MCP_LOOSE_DECLARATION)) {
|
|
1314
|
+
result = result.replace(
|
|
1315
|
+
MCP_LOOSE_DECLARATION,
|
|
1316
|
+
terminatedDeclaration(options.dynamic.mcp)
|
|
1317
|
+
);
|
|
1318
|
+
}
|
|
1319
|
+
if (options.dynamic?.extensions && result.includes(EXTENSIONS_LOOSE_DECLARATION)) {
|
|
1320
|
+
result = result.replace(
|
|
1321
|
+
EXTENSIONS_LOOSE_DECLARATION,
|
|
1322
|
+
terminatedDeclaration(options.dynamic.extensions)
|
|
1323
|
+
);
|
|
1324
|
+
}
|
|
1325
|
+
return result;
|
|
1326
|
+
};
|
|
1327
|
+
|
|
1328
|
+
export {
|
|
1329
|
+
OMP_CORE_COMPATIBILITY_ARGUMENT_TYPE_NAMES,
|
|
1330
|
+
OMP_CORE_NUMERIC_FIELDS,
|
|
1331
|
+
GUEST_TYPE_DECLARATIONS,
|
|
1332
|
+
guestTypeDeclarations
|
|
1333
|
+
};
|
|
1334
|
+
//# sourceMappingURL=chunk-JP4LIZFT.js.map
|