open-multi-agent-kit 1.2.0 → 1.2.2
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/CHANGELOG.md +46 -0
- package/README.md +2 -2
- package/dist/approval-api.d.ts +5 -0
- package/dist/approval-api.d.ts.map +1 -0
- package/dist/approval-api.js +5 -0
- package/dist/approval-api.js.map +1 -0
- package/dist/cli/session-picker.d.ts +2 -2
- package/dist/cli/session-picker.d.ts.map +1 -1
- package/dist/cli/session-picker.js.map +1 -1
- package/dist/commands/verified-run-cli.d.ts.map +1 -1
- package/dist/commands/verified-run-cli.js +69 -22
- package/dist/commands/verified-run-cli.js.map +1 -1
- package/dist/commands/verified-run-signal.d.ts +3 -0
- package/dist/commands/verified-run-signal.d.ts.map +1 -0
- package/dist/commands/verified-run-signal.js +15 -0
- package/dist/commands/verified-run-signal.js.map +1 -0
- package/dist/coordination/broker.d.ts.map +1 -1
- package/dist/coordination/broker.js +13 -6
- package/dist/coordination/broker.js.map +1 -1
- package/dist/coordination/operation.d.ts +1 -0
- package/dist/coordination/operation.d.ts.map +1 -1
- package/dist/coordination/operation.js +55 -3
- package/dist/coordination/operation.js.map +1 -1
- package/dist/coordination/resource.d.ts +1 -1
- package/dist/coordination/resource.d.ts.map +1 -1
- package/dist/coordination/resource.js +10 -4
- package/dist/coordination/resource.js.map +1 -1
- package/dist/coordination/types.d.ts.map +1 -1
- package/dist/coordination/types.js +1 -1
- package/dist/coordination/types.js.map +1 -1
- package/dist/core/adaptorch-bridge.d.ts +1 -1
- package/dist/core/adaptorch-bridge.d.ts.map +1 -1
- package/dist/core/adaptorch-bridge.js +1 -1
- package/dist/core/adaptorch-bridge.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +16 -16
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +32 -33
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/canonical-json.d.ts +3 -0
- package/dist/core/canonical-json.d.ts.map +1 -0
- package/dist/core/canonical-json.js +20 -0
- package/dist/core/canonical-json.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +7 -3
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +14 -29
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/compaction/fallback.d.ts +16 -5
- package/dist/core/compaction/fallback.d.ts.map +1 -1
- package/dist/core/compaction/fallback.js +4 -3
- package/dist/core/compaction/fallback.js.map +1 -1
- package/dist/core/compaction/model-failover.d.ts +21 -0
- package/dist/core/compaction/model-failover.d.ts.map +1 -0
- package/dist/core/compaction/model-failover.js +46 -0
- package/dist/core/compaction/model-failover.js.map +1 -0
- package/dist/core/compaction/session-summary.d.ts +21 -0
- package/dist/core/compaction/session-summary.d.ts.map +1 -0
- package/dist/core/compaction/session-summary.js +27 -0
- package/dist/core/compaction/session-summary.js.map +1 -0
- package/dist/core/export-html/template.js +14 -0
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/session-lifecycle-types.d.ts +14 -0
- package/dist/core/extensions/session-lifecycle-types.d.ts.map +1 -0
- package/dist/core/extensions/session-lifecycle-types.js +2 -0
- package/dist/core/extensions/session-lifecycle-types.js.map +1 -0
- package/dist/core/extensions/types.d.ts +4 -9
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/http-dispatcher.d.ts.map +1 -1
- package/dist/core/http-dispatcher.js +10 -1
- package/dist/core/http-dispatcher.js.map +1 -1
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +3 -6
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/legacy-resource-policy.d.ts +7 -0
- package/dist/core/legacy-resource-policy.d.ts.map +1 -0
- package/dist/core/legacy-resource-policy.js +9 -0
- package/dist/core/legacy-resource-policy.js.map +1 -0
- package/dist/core/mcp/config.d.ts.map +1 -1
- package/dist/core/mcp/config.js +17 -3
- package/dist/core/mcp/config.js.map +1 -1
- package/dist/core/mcp/connection-queue.d.ts +12 -0
- package/dist/core/mcp/connection-queue.d.ts.map +1 -0
- package/dist/core/mcp/connection-queue.js +46 -0
- package/dist/core/mcp/connection-queue.js.map +1 -0
- package/dist/core/mcp/manager-runtime.d.ts +55 -0
- package/dist/core/mcp/manager-runtime.d.ts.map +1 -0
- package/dist/core/mcp/manager-runtime.js +66 -0
- package/dist/core/mcp/manager-runtime.js.map +1 -0
- package/dist/core/mcp/manager.d.ts +12 -68
- package/dist/core/mcp/manager.d.ts.map +1 -1
- package/dist/core/mcp/manager.js +33 -113
- package/dist/core/mcp/manager.js.map +1 -1
- package/dist/core/mcp/protocol.d.ts.map +1 -1
- package/dist/core/mcp/protocol.js +70 -40
- package/dist/core/mcp/protocol.js.map +1 -1
- package/dist/core/package-manager.d.ts +4 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +59 -129
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/package-resource-patterns.d.ts +7 -0
- package/dist/core/package-resource-patterns.d.ts.map +1 -0
- package/dist/core/package-resource-patterns.js +99 -0
- package/dist/core/package-resource-patterns.js.map +1 -0
- package/dist/core/provider-resilience.d.ts +9 -0
- package/dist/core/provider-resilience.d.ts.map +1 -1
- package/dist/core/provider-resilience.js +15 -0
- package/dist/core/provider-resilience.js.map +1 -1
- package/dist/core/reasoning-router-v4.d.ts +5 -2
- package/dist/core/reasoning-router-v4.d.ts.map +1 -1
- package/dist/core/reasoning-router-v4.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +4 -8
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/run-execution-api.d.ts +8 -1
- package/dist/core/run-execution-api.d.ts.map +1 -1
- package/dist/core/run-execution-api.js +4 -0
- package/dist/core/run-execution-api.js.map +1 -1
- package/dist/core/run-journal.d.ts +1 -2
- package/dist/core/run-journal.d.ts.map +1 -1
- package/dist/core/run-journal.js +2 -19
- package/dist/core/run-journal.js.map +1 -1
- package/dist/core/session-listing.d.ts +51 -0
- package/dist/core/session-listing.d.ts.map +1 -0
- package/dist/core/session-listing.js +111 -0
- package/dist/core/session-listing.js.map +1 -0
- package/dist/core/session-manager.d.ts +12 -37
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +12 -118
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-message-text.d.ts +5 -0
- package/dist/core/session-message-text.d.ts.map +1 -0
- package/dist/core/session-message-text.js +9 -0
- package/dist/core/session-message-text.js.map +1 -0
- package/dist/core/skills-catalog-cache.d.ts +2 -0
- package/dist/core/skills-catalog-cache.d.ts.map +1 -1
- package/dist/core/skills-catalog-cache.js +71 -17
- package/dist/core/skills-catalog-cache.js.map +1 -1
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +1 -1
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/verified-run/authority-clock.d.ts +3 -0
- package/dist/core/verified-run/authority-clock.d.ts.map +1 -0
- package/dist/core/verified-run/authority-clock.js +25 -0
- package/dist/core/verified-run/authority-clock.js.map +1 -0
- package/dist/core/verified-run/authority-errors.d.ts +10 -0
- package/dist/core/verified-run/authority-errors.d.ts.map +1 -0
- package/dist/core/verified-run/authority-errors.js +17 -0
- package/dist/core/verified-run/authority-errors.js.map +1 -0
- package/dist/core/verified-run/authority-events.d.ts +126 -0
- package/dist/core/verified-run/authority-events.d.ts.map +1 -0
- package/dist/core/verified-run/authority-events.js +482 -0
- package/dist/core/verified-run/authority-events.js.map +1 -0
- package/dist/core/verified-run/authority-journal.d.ts +27 -0
- package/dist/core/verified-run/authority-journal.d.ts.map +1 -0
- package/dist/core/verified-run/authority-journal.js +83 -0
- package/dist/core/verified-run/authority-journal.js.map +1 -0
- package/dist/core/verified-run/authority-meaning.d.ts +13 -0
- package/dist/core/verified-run/authority-meaning.d.ts.map +1 -0
- package/dist/core/verified-run/authority-meaning.js +40 -0
- package/dist/core/verified-run/authority-meaning.js.map +1 -0
- package/dist/core/verified-run/authority-runtime.d.ts +82 -0
- package/dist/core/verified-run/authority-runtime.d.ts.map +1 -0
- package/dist/core/verified-run/authority-runtime.js +169 -0
- package/dist/core/verified-run/authority-runtime.js.map +1 -0
- package/dist/core/verified-run/authority-store.d.ts +204 -0
- package/dist/core/verified-run/authority-store.d.ts.map +1 -0
- package/dist/core/verified-run/authority-store.js +852 -0
- package/dist/core/verified-run/authority-store.js.map +1 -0
- package/dist/core/verified-run/broker.d.ts +8 -1
- package/dist/core/verified-run/broker.d.ts.map +1 -1
- package/dist/core/verified-run/broker.js +94 -90
- package/dist/core/verified-run/broker.js.map +1 -1
- package/dist/core/verified-run/candidate-policy.d.ts +10 -0
- package/dist/core/verified-run/candidate-policy.d.ts.map +1 -0
- package/dist/core/verified-run/candidate-policy.js +33 -0
- package/dist/core/verified-run/candidate-policy.js.map +1 -0
- package/dist/core/verified-run/candidate.d.ts.map +1 -1
- package/dist/core/verified-run/candidate.js +5 -10
- package/dist/core/verified-run/candidate.js.map +1 -1
- package/dist/core/verified-run/coordinator.d.ts +35 -17
- package/dist/core/verified-run/coordinator.d.ts.map +1 -1
- package/dist/core/verified-run/coordinator.js +111 -57
- package/dist/core/verified-run/coordinator.js.map +1 -1
- package/dist/core/verified-run/dag-phase.d.ts.map +1 -1
- package/dist/core/verified-run/dag-phase.js +1 -1
- package/dist/core/verified-run/dag-phase.js.map +1 -1
- package/dist/core/verified-run/dag-recovery.d.ts +5 -1
- package/dist/core/verified-run/dag-recovery.d.ts.map +1 -1
- package/dist/core/verified-run/dag-recovery.js +10 -4
- package/dist/core/verified-run/dag-recovery.js.map +1 -1
- package/dist/core/verified-run/event-parser.d.ts.map +1 -1
- package/dist/core/verified-run/event-parser.js +33 -0
- package/dist/core/verified-run/event-parser.js.map +1 -1
- package/dist/core/verified-run/evidence-read-projection.d.ts +4 -0
- package/dist/core/verified-run/evidence-read-projection.d.ts.map +1 -0
- package/dist/core/verified-run/evidence-read-projection.js +27 -0
- package/dist/core/verified-run/evidence-read-projection.js.map +1 -0
- package/dist/core/verified-run/evidence.d.ts +12 -1
- package/dist/core/verified-run/evidence.d.ts.map +1 -1
- package/dist/core/verified-run/evidence.js +51 -2
- package/dist/core/verified-run/evidence.js.map +1 -1
- package/dist/core/verified-run/git-candidate-preflight.d.ts +4 -0
- package/dist/core/verified-run/git-candidate-preflight.d.ts.map +1 -0
- package/dist/core/verified-run/git-candidate-preflight.js +34 -0
- package/dist/core/verified-run/git-candidate-preflight.js.map +1 -0
- package/dist/core/verified-run/git-effect-supervisor.d.ts +24 -0
- package/dist/core/verified-run/git-effect-supervisor.d.ts.map +1 -0
- package/dist/core/verified-run/git-effect-supervisor.js +174 -0
- package/dist/core/verified-run/git-effect-supervisor.js.map +1 -0
- package/dist/core/verified-run/git-execution.d.ts +27 -0
- package/dist/core/verified-run/git-execution.d.ts.map +1 -0
- package/dist/core/verified-run/git-execution.js +118 -0
- package/dist/core/verified-run/git-execution.js.map +1 -0
- package/dist/core/verified-run/git-plumbing.d.ts +37 -0
- package/dist/core/verified-run/git-plumbing.d.ts.map +1 -0
- package/dist/core/verified-run/git-plumbing.js +171 -0
- package/dist/core/verified-run/git-plumbing.js.map +1 -0
- package/dist/core/verified-run/git-publication-worker.d.ts +2 -0
- package/dist/core/verified-run/git-publication-worker.d.ts.map +1 -0
- package/dist/core/verified-run/git-publication-worker.js +54 -0
- package/dist/core/verified-run/git-publication-worker.js.map +1 -0
- package/dist/core/verified-run/git-sandbox-layout.d.ts +4 -0
- package/dist/core/verified-run/git-sandbox-layout.d.ts.map +1 -0
- package/dist/core/verified-run/git-sandbox-layout.js +29 -0
- package/dist/core/verified-run/git-sandbox-layout.js.map +1 -0
- package/dist/core/verified-run/git-worker-protocol.d.ts +19 -0
- package/dist/core/verified-run/git-worker-protocol.d.ts.map +1 -0
- package/dist/core/verified-run/git-worker-protocol.js +109 -0
- package/dist/core/verified-run/git-worker-protocol.js.map +1 -0
- package/dist/core/verified-run/git-worker-runtime.d.ts +19 -0
- package/dist/core/verified-run/git-worker-runtime.d.ts.map +1 -0
- package/dist/core/verified-run/git-worker-runtime.js +74 -0
- package/dist/core/verified-run/git-worker-runtime.js.map +1 -0
- package/dist/core/verified-run/journal.d.ts +2 -3
- package/dist/core/verified-run/journal.d.ts.map +1 -1
- package/dist/core/verified-run/journal.js.map +1 -1
- package/dist/core/verified-run/namespace-identity.d.ts.map +1 -1
- package/dist/core/verified-run/namespace-identity.js +1 -1
- package/dist/core/verified-run/namespace-identity.js.map +1 -1
- package/dist/core/verified-run/owned-execution.d.ts +10 -1
- package/dist/core/verified-run/owned-execution.d.ts.map +1 -1
- package/dist/core/verified-run/owned-execution.js +124 -31
- package/dist/core/verified-run/owned-execution.js.map +1 -1
- package/dist/core/verified-run/phase-context.d.ts +2 -0
- package/dist/core/verified-run/phase-context.d.ts.map +1 -1
- package/dist/core/verified-run/phase-context.js.map +1 -1
- package/dist/core/verified-run/projection.d.ts.map +1 -1
- package/dist/core/verified-run/projection.js +51 -1
- package/dist/core/verified-run/projection.js.map +1 -1
- package/dist/core/verified-run/publish-preflight.d.ts +12 -0
- package/dist/core/verified-run/publish-preflight.d.ts.map +1 -0
- package/dist/core/verified-run/publish-preflight.js +38 -0
- package/dist/core/verified-run/publish-preflight.js.map +1 -0
- package/dist/core/verified-run/publish-start.d.ts +5 -0
- package/dist/core/verified-run/publish-start.d.ts.map +1 -0
- package/dist/core/verified-run/publish-start.js +7 -0
- package/dist/core/verified-run/publish-start.js.map +1 -0
- package/dist/core/verified-run/recovery-projection.d.ts.map +1 -1
- package/dist/core/verified-run/recovery-projection.js +5 -0
- package/dist/core/verified-run/recovery-projection.js.map +1 -1
- package/dist/core/verified-run/recovery.d.ts +5 -1
- package/dist/core/verified-run/recovery.d.ts.map +1 -1
- package/dist/core/verified-run/recovery.js +10 -4
- package/dist/core/verified-run/recovery.js.map +1 -1
- package/dist/core/verified-run/run-plan.d.ts +17 -0
- package/dist/core/verified-run/run-plan.d.ts.map +1 -0
- package/dist/core/verified-run/run-plan.js +18 -0
- package/dist/core/verified-run/run-plan.js.map +1 -0
- package/dist/core/verified-run/run-publish-owned.d.ts +6 -0
- package/dist/core/verified-run/run-publish-owned.d.ts.map +1 -0
- package/dist/core/verified-run/run-publish-owned.js +199 -0
- package/dist/core/verified-run/run-publish-owned.js.map +1 -0
- package/dist/core/verified-run/run-publish.d.ts +19 -0
- package/dist/core/verified-run/run-publish.d.ts.map +1 -0
- package/dist/core/verified-run/run-publish.js +210 -0
- package/dist/core/verified-run/run-publish.js.map +1 -0
- package/dist/core/verified-run/run-status-owned.d.ts +4 -0
- package/dist/core/verified-run/run-status-owned.d.ts.map +1 -0
- package/dist/core/verified-run/run-status-owned.js +14 -0
- package/dist/core/verified-run/run-status-owned.js.map +1 -0
- package/dist/core/verified-run/run-status.d.ts +133 -0
- package/dist/core/verified-run/run-status.d.ts.map +1 -0
- package/dist/core/verified-run/run-status.js +193 -0
- package/dist/core/verified-run/run-status.js.map +1 -0
- package/dist/core/verified-run/run-types.d.ts +31 -0
- package/dist/core/verified-run/run-types.d.ts.map +1 -1
- package/dist/core/verified-run/run-types.js.map +1 -1
- package/dist/core/verified-run/storage.d.ts.map +1 -1
- package/dist/core/verified-run/storage.js +1 -1
- package/dist/core/verified-run/storage.js.map +1 -1
- package/dist/core/verified-run/supervisor-adapter.d.ts +77 -0
- package/dist/core/verified-run/supervisor-adapter.d.ts.map +1 -0
- package/dist/core/verified-run/supervisor-adapter.js +164 -0
- package/dist/core/verified-run/supervisor-adapter.js.map +1 -0
- package/dist/core/verified-run/verification-phase.d.ts.map +1 -1
- package/dist/core/verified-run/verification-phase.js +1 -1
- package/dist/core/verified-run/verification-phase.js.map +1 -1
- package/dist/core/verified-run/writer-phase.d.ts.map +1 -1
- package/dist/core/verified-run/writer-phase.js +1 -0
- package/dist/core/verified-run/writer-phase.js.map +1 -1
- package/dist/core/verified-run/writer-recovery.d.ts +2 -0
- package/dist/core/verified-run/writer-recovery.d.ts.map +1 -1
- package/dist/core/verified-run/writer-recovery.js +1 -0
- package/dist/core/verified-run/writer-recovery.js.map +1 -1
- package/dist/core/workload-shard-execution-types.d.ts +4 -1
- package/dist/core/workload-shard-execution-types.d.ts.map +1 -1
- package/dist/core/workload-shard-execution-types.js.map +1 -1
- package/dist/core/workload-shard-executor.d.ts +2 -2
- package/dist/core/workload-shard-executor.d.ts.map +1 -1
- package/dist/core/workload-shard-executor.js +16 -37
- package/dist/core/workload-shard-executor.js.map +1 -1
- package/dist/core/workload-shard-frontier.d.ts +5 -0
- package/dist/core/workload-shard-frontier.d.ts.map +1 -0
- package/dist/core/workload-shard-frontier.js +47 -0
- package/dist/core/workload-shard-frontier.js.map +1 -0
- package/dist/core/workload-shard-runner.d.ts.map +1 -1
- package/dist/core/workload-shard-runner.js +28 -17
- package/dist/core/workload-shard-runner.js.map +1 -1
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +2 -1
- package/dist/main.js.map +1 -1
- package/dist/metacognition/bridge-result.d.ts +148 -0
- package/dist/metacognition/bridge-result.d.ts.map +1 -0
- package/dist/metacognition/bridge-result.js +46 -0
- package/dist/metacognition/bridge-result.js.map +1 -0
- package/dist/metacognition/calibration-selective.d.ts.map +1 -1
- package/dist/metacognition/calibration-selective.js +8 -2
- package/dist/metacognition/calibration-selective.js.map +1 -1
- package/dist/metacognition/index.d.ts +1 -0
- package/dist/metacognition/index.d.ts.map +1 -1
- package/dist/metacognition/index.js +1 -0
- package/dist/metacognition/index.js.map +1 -1
- package/dist/metacognition/risk.d.ts.map +1 -1
- package/dist/metacognition/risk.js +28 -14
- package/dist/metacognition/risk.js.map +1 -1
- package/dist/metacognition/runtime-bridge.d.ts +41 -14
- package/dist/metacognition/runtime-bridge.d.ts.map +1 -1
- package/dist/metacognition/runtime-bridge.js +357 -39
- package/dist/metacognition/runtime-bridge.js.map +1 -1
- package/dist/modes/interactive/components/assistant-message.d.ts +2 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/assistant-message.js +42 -26
- package/dist/modes/interactive/components/assistant-message.js.map +1 -1
- package/dist/modes/interactive/components/chat-container.d.ts +7 -0
- package/dist/modes/interactive/components/chat-container.d.ts.map +1 -0
- package/dist/modes/interactive/components/chat-container.js +14 -0
- package/dist/modes/interactive/components/chat-container.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -1
- package/dist/modes/interactive/components/dynamic-border.js +4 -2
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -1
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
- package/dist/modes/interactive/components/login-dialog.js +0 -1
- package/dist/modes/interactive/components/login-dialog.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-async-search.d.ts +33 -0
- package/dist/modes/interactive/components/session-selector-async-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-async-search.js +109 -0
- package/dist/modes/interactive/components/session-selector-async-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-loaders.d.ts +6 -0
- package/dist/modes/interactive/components/session-selector-loaders.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-loaders.js +9 -0
- package/dist/modes/interactive/components/session-selector-loaders.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +1 -1
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-tree.d.ts +16 -0
- package/dist/modes/interactive/components/session-selector-tree.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-tree.js +46 -0
- package/dist/modes/interactive/components/session-selector-tree.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +6 -1
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +36 -76
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution-images.d.ts +32 -0
- package/dist/modes/interactive/components/tool-execution-images.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution-images.js +144 -0
- package/dist/modes/interactive/components/tool-execution-images.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +3 -4
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +22 -71
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +7 -9
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/tui-diagnostics.d.ts +8 -4
- package/dist/modes/interactive/tui-diagnostics.d.ts.map +1 -1
- package/dist/modes/interactive/tui-diagnostics.js +35 -1
- package/dist/modes/interactive/tui-diagnostics.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +14 -17
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-response.d.ts +5 -0
- package/dist/modes/rpc/rpc-response.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-response.js +17 -0
- package/dist/modes/rpc/rpc-response.js.map +1 -0
- package/dist/utils/exif-orientation.d.ts.map +1 -1
- package/dist/utils/exif-orientation.js +2 -3
- package/dist/utils/exif-orientation.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +3 -5
- package/dist/utils/tools-manager.js.map +1 -1
- package/docs/adaptorch-preview-spec.md +7 -7
- package/docs/atomic-commit-planning.md +69 -0
- package/docs/compaction.md +26 -1
- package/docs/extensions.md +14 -0
- package/docs/mcp.md +22 -0
- package/docs/metacognition.md +79 -0
- package/docs/model-catalog-refresh.md +159 -1
- package/docs/models.md +1 -1
- package/docs/runtime-algorithms.md +49 -4
- package/docs/session-format.md +8 -0
- package/docs/sessions.md +19 -0
- package/docs/skills.md +19 -0
- package/docs/terminal-setup.md +15 -0
- package/docs/tui.md +41 -0
- package/docs/verified-run-safety.md +75 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/doom-overlay/wad-finder.ts +7 -3
- package/examples/extensions/gondolin/package-lock.json +2 -2
- package/examples/extensions/gondolin/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +18 -18
- package/package.json +6 -8
|
@@ -23,7 +23,6 @@ function getEnv() {
|
|
|
23
23
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
24
24
|
import { globSync } from "glob";
|
|
25
25
|
import ignore from "ignore";
|
|
26
|
-
import { minimatch } from "minimatch";
|
|
27
26
|
import { CONFIG_DIR_NAME } from "../config.js";
|
|
28
27
|
import { spawnProcess, spawnProcessSync } from "../utils/child-process.js";
|
|
29
28
|
import { parseGitUrl } from "../utils/git.js";
|
|
@@ -31,6 +30,7 @@ import { canonicalizePath, isLocalPath, markPathIgnoredByCloudSync, resolvePath
|
|
|
31
30
|
import { isStdoutTakenOver } from "./output-guard.js";
|
|
32
31
|
import { extractNpmPackageTarball } from "./package-archive.js";
|
|
33
32
|
import { readPackageManifest as readPackageManifestFile, } from "./package-manifest.js";
|
|
33
|
+
import { applyPatterns, isEnabledByOverrides } from "./package-resource-patterns.js";
|
|
34
34
|
const NETWORK_TIMEOUT_MS = 10000;
|
|
35
35
|
const UPDATE_CHECK_CONCURRENCY = 4;
|
|
36
36
|
const GIT_UPDATE_CONCURRENCY = 4;
|
|
@@ -464,126 +464,6 @@ function collectResourceFiles(dir, resourceType) {
|
|
|
464
464
|
}
|
|
465
465
|
return collectFiles(dir, FILE_PATTERNS[resourceType]);
|
|
466
466
|
}
|
|
467
|
-
function matchesAnyPattern(filePath, patterns, baseDir) {
|
|
468
|
-
const rel = toPosixPath(relative(baseDir, filePath));
|
|
469
|
-
const name = basename(filePath);
|
|
470
|
-
const filePathPosix = toPosixPath(filePath);
|
|
471
|
-
const isSkillFile = name === "SKILL.md";
|
|
472
|
-
const parentDir = isSkillFile ? dirname(filePath) : undefined;
|
|
473
|
-
const parentRel = isSkillFile ? toPosixPath(relative(baseDir, parentDir)) : undefined;
|
|
474
|
-
const parentName = isSkillFile ? basename(parentDir) : undefined;
|
|
475
|
-
const parentDirPosix = isSkillFile ? toPosixPath(parentDir) : undefined;
|
|
476
|
-
return patterns.some((pattern) => {
|
|
477
|
-
const normalizedPattern = toPosixPath(pattern);
|
|
478
|
-
if (minimatch(rel, normalizedPattern) ||
|
|
479
|
-
minimatch(name, normalizedPattern) ||
|
|
480
|
-
minimatch(filePathPosix, normalizedPattern)) {
|
|
481
|
-
return true;
|
|
482
|
-
}
|
|
483
|
-
if (!isSkillFile)
|
|
484
|
-
return false;
|
|
485
|
-
return (minimatch(parentRel, normalizedPattern) ||
|
|
486
|
-
minimatch(parentName, normalizedPattern) ||
|
|
487
|
-
minimatch(parentDirPosix, normalizedPattern));
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
function normalizeExactPattern(pattern) {
|
|
491
|
-
const normalized = pattern.startsWith("./") || pattern.startsWith(".\\") ? pattern.slice(2) : pattern;
|
|
492
|
-
return toPosixPath(normalized);
|
|
493
|
-
}
|
|
494
|
-
function matchesAnyExactPattern(filePath, patterns, baseDir) {
|
|
495
|
-
if (patterns.length === 0)
|
|
496
|
-
return false;
|
|
497
|
-
const rel = toPosixPath(relative(baseDir, filePath));
|
|
498
|
-
const name = basename(filePath);
|
|
499
|
-
const filePathPosix = toPosixPath(filePath);
|
|
500
|
-
const isSkillFile = name === "SKILL.md";
|
|
501
|
-
const parentDir = isSkillFile ? dirname(filePath) : undefined;
|
|
502
|
-
const parentRel = isSkillFile ? toPosixPath(relative(baseDir, parentDir)) : undefined;
|
|
503
|
-
const parentDirPosix = isSkillFile ? toPosixPath(parentDir) : undefined;
|
|
504
|
-
return patterns.some((pattern) => {
|
|
505
|
-
const normalized = normalizeExactPattern(pattern);
|
|
506
|
-
if (normalized === rel || normalized === filePathPosix) {
|
|
507
|
-
return true;
|
|
508
|
-
}
|
|
509
|
-
if (!isSkillFile)
|
|
510
|
-
return false;
|
|
511
|
-
return normalized === parentRel || normalized === parentDirPosix;
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
function getOverridePatterns(entries) {
|
|
515
|
-
return entries.filter((pattern) => pattern.startsWith("!") || pattern.startsWith("+") || pattern.startsWith("-"));
|
|
516
|
-
}
|
|
517
|
-
function isEnabledByOverrides(filePath, patterns, baseDir) {
|
|
518
|
-
const overrides = getOverridePatterns(patterns);
|
|
519
|
-
const excludes = overrides.filter((pattern) => pattern.startsWith("!")).map((pattern) => pattern.slice(1));
|
|
520
|
-
const forceIncludes = overrides.filter((pattern) => pattern.startsWith("+")).map((pattern) => pattern.slice(1));
|
|
521
|
-
const forceExcludes = overrides.filter((pattern) => pattern.startsWith("-")).map((pattern) => pattern.slice(1));
|
|
522
|
-
let enabled = true;
|
|
523
|
-
if (excludes.length > 0 && matchesAnyPattern(filePath, excludes, baseDir)) {
|
|
524
|
-
enabled = false;
|
|
525
|
-
}
|
|
526
|
-
if (forceIncludes.length > 0 && matchesAnyExactPattern(filePath, forceIncludes, baseDir)) {
|
|
527
|
-
enabled = true;
|
|
528
|
-
}
|
|
529
|
-
if (forceExcludes.length > 0 && matchesAnyExactPattern(filePath, forceExcludes, baseDir)) {
|
|
530
|
-
enabled = false;
|
|
531
|
-
}
|
|
532
|
-
return enabled;
|
|
533
|
-
}
|
|
534
|
-
/**
|
|
535
|
-
* Apply patterns to paths and return a Set of enabled paths.
|
|
536
|
-
* Pattern types:
|
|
537
|
-
* - Plain patterns: include matching paths
|
|
538
|
-
* - `!pattern`: exclude matching paths
|
|
539
|
-
* - `+path`: force-include exact path (overrides exclusions)
|
|
540
|
-
* - `-path`: force-exclude exact path (overrides force-includes)
|
|
541
|
-
*/
|
|
542
|
-
function applyPatterns(allPaths, patterns, baseDir) {
|
|
543
|
-
const includes = [];
|
|
544
|
-
const excludes = [];
|
|
545
|
-
const forceIncludes = [];
|
|
546
|
-
const forceExcludes = [];
|
|
547
|
-
for (const p of patterns) {
|
|
548
|
-
if (p.startsWith("+")) {
|
|
549
|
-
forceIncludes.push(p.slice(1));
|
|
550
|
-
}
|
|
551
|
-
else if (p.startsWith("-")) {
|
|
552
|
-
forceExcludes.push(p.slice(1));
|
|
553
|
-
}
|
|
554
|
-
else if (p.startsWith("!")) {
|
|
555
|
-
excludes.push(p.slice(1));
|
|
556
|
-
}
|
|
557
|
-
else {
|
|
558
|
-
includes.push(p);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
// Step 1: Apply includes (or all if no includes)
|
|
562
|
-
let result;
|
|
563
|
-
if (includes.length === 0) {
|
|
564
|
-
result = [...allPaths];
|
|
565
|
-
}
|
|
566
|
-
else {
|
|
567
|
-
result = allPaths.filter((filePath) => matchesAnyPattern(filePath, includes, baseDir));
|
|
568
|
-
}
|
|
569
|
-
// Step 2: Apply excludes
|
|
570
|
-
if (excludes.length > 0) {
|
|
571
|
-
result = result.filter((filePath) => !matchesAnyPattern(filePath, excludes, baseDir));
|
|
572
|
-
}
|
|
573
|
-
// Step 3: Force-include (add back from allPaths, overriding exclusions)
|
|
574
|
-
if (forceIncludes.length > 0) {
|
|
575
|
-
for (const filePath of allPaths) {
|
|
576
|
-
if (!result.includes(filePath) && matchesAnyExactPattern(filePath, forceIncludes, baseDir)) {
|
|
577
|
-
result.push(filePath);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
// Step 4: Force-exclude (remove even if included or force-included)
|
|
582
|
-
if (forceExcludes.length > 0) {
|
|
583
|
-
result = result.filter((filePath) => !matchesAnyExactPattern(filePath, forceExcludes, baseDir));
|
|
584
|
-
}
|
|
585
|
-
return new Set(result);
|
|
586
|
-
}
|
|
587
467
|
export class DefaultPackageManager {
|
|
588
468
|
cwd;
|
|
589
469
|
agentDir;
|
|
@@ -1595,6 +1475,7 @@ export class DefaultPackageManager {
|
|
|
1595
1475
|
this.ensureGitIgnore(gitRoot);
|
|
1596
1476
|
}
|
|
1597
1477
|
mkdirSync(dirname(targetDir), { recursive: true });
|
|
1478
|
+
rmSync(this.getGitUpdateMarkerPath(targetDir), { force: true });
|
|
1598
1479
|
await this.runCommand("git", ["clone", source.repo, targetDir]);
|
|
1599
1480
|
if (source.ref) {
|
|
1600
1481
|
await this.runCommand("git", ["checkout", source.ref], { cwd: targetDir });
|
|
@@ -1617,6 +1498,53 @@ export class DefaultPackageManager {
|
|
|
1617
1498
|
const target = await this.getLocalGitUpdateTarget(targetDir);
|
|
1618
1499
|
await this.ensureGitRef(targetDir, target.fetchArgs, target.ref);
|
|
1619
1500
|
}
|
|
1501
|
+
hasMissingGitDependencies(targetDir) {
|
|
1502
|
+
const packageJsonPath = join(targetDir, "package.json");
|
|
1503
|
+
if (!existsSync(packageJsonPath))
|
|
1504
|
+
return false;
|
|
1505
|
+
try {
|
|
1506
|
+
const manifest = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
1507
|
+
if (!manifest.dependencies ||
|
|
1508
|
+
typeof manifest.dependencies !== "object" ||
|
|
1509
|
+
Array.isArray(manifest.dependencies)) {
|
|
1510
|
+
return false;
|
|
1511
|
+
}
|
|
1512
|
+
const nodeModulesDir = resolve(targetDir, "node_modules");
|
|
1513
|
+
return Object.keys(manifest.dependencies).some((name) => {
|
|
1514
|
+
const dependencyPath = resolve(nodeModulesDir, name);
|
|
1515
|
+
if (!dependencyPath.startsWith(`${nodeModulesDir}${sep}`))
|
|
1516
|
+
return false;
|
|
1517
|
+
return !existsSync(dependencyPath);
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
catch {
|
|
1521
|
+
return false;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
async repairMissingGitDependencies(targetDir) {
|
|
1525
|
+
if (!this.hasMissingGitDependencies(targetDir))
|
|
1526
|
+
return;
|
|
1527
|
+
await this.runNpmCommand(this.getGitDependencyInstallArgs(), { cwd: targetDir });
|
|
1528
|
+
}
|
|
1529
|
+
getGitUpdateMarkerPath(targetDir) {
|
|
1530
|
+
return join(dirname(targetDir), `.${basename(targetDir)}.pi-update-incomplete`);
|
|
1531
|
+
}
|
|
1532
|
+
async cleanAndInstallGitDependencies(targetDir, markerPath) {
|
|
1533
|
+
// Clean untracked files (extensions should be pristine). If this fails after
|
|
1534
|
+
// deleting dependencies, repair them so the existing extension still loads.
|
|
1535
|
+
try {
|
|
1536
|
+
await this.runCommand("git", ["clean", "-fdx"], { cwd: targetDir });
|
|
1537
|
+
}
|
|
1538
|
+
catch (error) {
|
|
1539
|
+
await this.repairMissingGitDependencies(targetDir).catch(() => { });
|
|
1540
|
+
throw error;
|
|
1541
|
+
}
|
|
1542
|
+
const packageJsonPath = join(targetDir, "package.json");
|
|
1543
|
+
if (existsSync(packageJsonPath)) {
|
|
1544
|
+
await this.runNpmCommand(this.getGitDependencyInstallArgs(), { cwd: targetDir });
|
|
1545
|
+
}
|
|
1546
|
+
rmSync(markerPath, { force: true });
|
|
1547
|
+
}
|
|
1620
1548
|
async ensureGitRef(targetDir, fetchArgs, ref) {
|
|
1621
1549
|
// Fetch only the ref we will reset to, avoiding unrelated branch/tag noise.
|
|
1622
1550
|
await this.runCommand("git", fetchArgs, { cwd: targetDir });
|
|
@@ -1629,16 +1557,19 @@ export class DefaultPackageManager {
|
|
|
1629
1557
|
cwd: targetDir,
|
|
1630
1558
|
timeoutMs: NETWORK_TIMEOUT_MS,
|
|
1631
1559
|
});
|
|
1560
|
+
const markerPath = this.getGitUpdateMarkerPath(targetDir);
|
|
1632
1561
|
if (localHead.trim() === targetHead.trim()) {
|
|
1562
|
+
if (existsSync(markerPath)) {
|
|
1563
|
+
await this.cleanAndInstallGitDependencies(targetDir, markerPath);
|
|
1564
|
+
}
|
|
1565
|
+
else {
|
|
1566
|
+
await this.repairMissingGitDependencies(targetDir);
|
|
1567
|
+
}
|
|
1633
1568
|
return;
|
|
1634
1569
|
}
|
|
1570
|
+
writeFileSync(markerPath, "", "utf-8");
|
|
1635
1571
|
await this.runCommand("git", ["reset", "--hard", commitRef], { cwd: targetDir });
|
|
1636
|
-
|
|
1637
|
-
await this.runCommand("git", ["clean", "-fdx"], { cwd: targetDir });
|
|
1638
|
-
const packageJsonPath = join(targetDir, "package.json");
|
|
1639
|
-
if (existsSync(packageJsonPath)) {
|
|
1640
|
-
await this.runNpmCommand(this.getGitDependencyInstallArgs(), { cwd: targetDir });
|
|
1641
|
-
}
|
|
1572
|
+
await this.cleanAndInstallGitDependencies(targetDir, markerPath);
|
|
1642
1573
|
}
|
|
1643
1574
|
async refreshTemporaryGitSource(source, sourceStr) {
|
|
1644
1575
|
if (isOfflineModeEnabled()) {
|
|
@@ -1655,9 +1586,8 @@ export class DefaultPackageManager {
|
|
|
1655
1586
|
}
|
|
1656
1587
|
async removeGit(source, scope) {
|
|
1657
1588
|
const targetDir = this.getGitInstallPath(source, scope);
|
|
1658
|
-
if (!existsSync(targetDir))
|
|
1659
|
-
return;
|
|
1660
1589
|
rmSync(targetDir, { recursive: true, force: true });
|
|
1590
|
+
rmSync(this.getGitUpdateMarkerPath(targetDir), { force: true });
|
|
1661
1591
|
this.pruneEmptyGitParents(targetDir, this.getGitInstallRoot(scope));
|
|
1662
1592
|
}
|
|
1663
1593
|
pruneEmptyGitParents(targetDir, installRoot) {
|