@zhixuan92/multi-model-agent-core 3.12.7 → 4.0.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/README.md +135 -2
- package/dist/bounded-execution/activity-tracker-types.d.ts +77 -0
- package/dist/bounded-execution/activity-tracker-types.d.ts.map +1 -0
- package/dist/bounded-execution/activity-tracker-types.js +23 -0
- package/dist/bounded-execution/activity-tracker-types.js.map +1 -0
- package/dist/bounded-execution/activity-tracker.d.ts +67 -0
- package/dist/bounded-execution/activity-tracker.d.ts.map +1 -0
- package/dist/bounded-execution/activity-tracker.js +381 -0
- package/dist/bounded-execution/activity-tracker.js.map +1 -0
- package/dist/bounded-execution/cost-compute.d.ts +27 -0
- package/dist/bounded-execution/cost-compute.d.ts.map +1 -0
- package/dist/bounded-execution/cost-compute.js +72 -0
- package/dist/bounded-execution/cost-compute.js.map +1 -0
- package/dist/bounded-execution/cost-meter.d.ts +20 -0
- package/dist/bounded-execution/cost-meter.d.ts.map +1 -0
- package/dist/bounded-execution/cost-meter.js +21 -0
- package/dist/bounded-execution/cost-meter.js.map +1 -0
- package/dist/bounded-execution/cost-rollup.d.ts +17 -0
- package/dist/bounded-execution/cost-rollup.d.ts.map +1 -0
- package/dist/bounded-execution/cost-rollup.js +40 -0
- package/dist/bounded-execution/cost-rollup.js.map +1 -0
- package/dist/bounded-execution/error-classifier.d.ts +11 -0
- package/dist/bounded-execution/error-classifier.d.ts.map +1 -0
- package/dist/bounded-execution/error-classifier.js +23 -0
- package/dist/bounded-execution/error-classifier.js.map +1 -0
- package/dist/bounded-execution/file-artifact-check.d.ts.map +1 -0
- package/dist/bounded-execution/file-artifact-check.js.map +1 -0
- package/dist/bounded-execution/idle-guard.d.ts +8 -0
- package/dist/bounded-execution/idle-guard.d.ts.map +1 -0
- package/dist/bounded-execution/idle-guard.js +18 -0
- package/dist/bounded-execution/idle-guard.js.map +1 -0
- package/dist/bounded-execution/index.d.ts +7 -0
- package/dist/bounded-execution/index.d.ts.map +1 -0
- package/dist/bounded-execution/index.js +8 -0
- package/dist/bounded-execution/index.js.map +1 -0
- package/dist/bounded-execution/wall-clock-guard.d.ts +8 -0
- package/dist/bounded-execution/wall-clock-guard.d.ts.map +1 -0
- package/dist/bounded-execution/wall-clock-guard.js +27 -0
- package/dist/bounded-execution/wall-clock-guard.js.map +1 -0
- package/dist/cleanup/batch-retention-sweeper.d.ts +7 -0
- package/dist/cleanup/batch-retention-sweeper.d.ts.map +1 -0
- package/dist/cleanup/batch-retention-sweeper.js +10 -0
- package/dist/cleanup/batch-retention-sweeper.js.map +1 -0
- package/dist/cleanup/context-block-gc-sweeper.d.ts +8 -0
- package/dist/cleanup/context-block-gc-sweeper.d.ts.map +1 -0
- package/dist/cleanup/context-block-gc-sweeper.js +12 -0
- package/dist/cleanup/context-block-gc-sweeper.js.map +1 -0
- package/dist/cleanup/index.d.ts +5 -0
- package/dist/cleanup/index.d.ts.map +1 -0
- package/dist/cleanup/index.js +6 -0
- package/dist/cleanup/index.js.map +1 -0
- package/dist/cleanup/project-idle-cleanup.d.ts +7 -0
- package/dist/cleanup/project-idle-cleanup.d.ts.map +1 -0
- package/dist/cleanup/project-idle-cleanup.js +15 -0
- package/dist/cleanup/project-idle-cleanup.js.map +1 -0
- package/dist/cleanup/shutdown-coordinator.d.ts +7 -0
- package/dist/cleanup/shutdown-coordinator.d.ts.map +1 -0
- package/dist/cleanup/shutdown-coordinator.js +13 -0
- package/dist/cleanup/shutdown-coordinator.js.map +1 -0
- package/dist/config/canonical-model-identity.d.ts.map +1 -0
- package/dist/config/canonical-model-identity.js.map +1 -0
- package/dist/config/config-resolver.d.ts +47 -0
- package/dist/config/config-resolver.d.ts.map +1 -0
- package/dist/config/config-resolver.js +57 -0
- package/dist/config/config-resolver.js.map +1 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +9 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/load.d.ts +2 -7
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/load.js +4 -16
- package/dist/config/load.js.map +1 -1
- package/dist/config/model-profile-registry.d.ts +121 -0
- package/dist/config/model-profile-registry.d.ts.map +1 -0
- package/dist/config/model-profile-registry.js +382 -0
- package/dist/config/model-profile-registry.js.map +1 -0
- package/dist/config/pricing-table.d.ts +16 -0
- package/dist/config/pricing-table.d.ts.map +1 -0
- package/dist/config/pricing-table.js +51 -0
- package/dist/config/pricing-table.js.map +1 -0
- package/dist/config/schema.d.ts +8 -72
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +8 -12
- package/dist/config/schema.js.map +1 -1
- package/dist/config/tier-policy-registry.d.ts +12 -0
- package/dist/config/tier-policy-registry.d.ts.map +1 -0
- package/dist/config/tier-policy-registry.js +13 -0
- package/dist/config/tier-policy-registry.js.map +1 -0
- package/dist/error-codes.d.ts +36 -1
- package/dist/error-codes.d.ts.map +1 -1
- package/dist/error-codes.js +52 -1
- package/dist/error-codes.js.map +1 -1
- package/dist/escalation/agent-resolver.d.ts +7 -0
- package/dist/escalation/agent-resolver.d.ts.map +1 -0
- package/dist/escalation/agent-resolver.js +16 -0
- package/dist/escalation/agent-resolver.js.map +1 -0
- package/dist/escalation/delegate-with-escalation.d.ts +28 -0
- package/dist/escalation/delegate-with-escalation.d.ts.map +1 -0
- package/dist/escalation/delegate-with-escalation.js +205 -0
- package/dist/escalation/delegate-with-escalation.js.map +1 -0
- package/dist/escalation/escalation-policy.d.ts +18 -0
- package/dist/escalation/escalation-policy.d.ts.map +1 -0
- package/dist/escalation/escalation-policy.js +34 -0
- package/dist/escalation/escalation-policy.js.map +1 -0
- package/dist/escalation/fallback-helpers.d.ts +22 -0
- package/dist/escalation/fallback-helpers.d.ts.map +1 -0
- package/dist/escalation/fallback-helpers.js +46 -0
- package/dist/escalation/fallback-helpers.js.map +1 -0
- package/dist/escalation/fallback-types.d.ts +60 -0
- package/dist/escalation/fallback-types.d.ts.map +1 -0
- package/dist/escalation/fallback-types.js +11 -0
- package/dist/escalation/fallback-types.js.map +1 -0
- package/dist/escalation/fallback.d.ts +3 -85
- package/dist/escalation/fallback.d.ts.map +1 -1
- package/dist/escalation/fallback.js +26 -130
- package/dist/escalation/fallback.js.map +1 -1
- package/dist/escalation/index.d.ts +3 -0
- package/dist/escalation/index.d.ts.map +1 -0
- package/dist/escalation/index.js +4 -0
- package/dist/escalation/index.js.map +1 -0
- package/dist/escalation/types.d.ts.map +1 -0
- package/dist/escalation/types.js.map +1 -0
- package/dist/events/caller-response-channel.d.ts +17 -0
- package/dist/events/caller-response-channel.d.ts.map +1 -0
- package/dist/events/caller-response-channel.js +10 -0
- package/dist/events/caller-response-channel.js.map +1 -0
- package/dist/events/clamp.d.ts.map +1 -0
- package/dist/events/clamp.js.map +1 -0
- package/dist/events/cloud-events.d.ts +114 -0
- package/dist/events/cloud-events.d.ts.map +1 -0
- package/dist/events/cloud-events.js +59 -0
- package/dist/events/cloud-events.js.map +1 -0
- package/dist/events/concern-classifier.d.ts +9 -0
- package/dist/events/concern-classifier.d.ts.map +1 -0
- package/dist/events/concern-classifier.js.map +1 -0
- package/dist/events/consent-rules.d.ts.map +1 -0
- package/dist/events/consent-rules.js.map +1 -0
- package/dist/events/diagnostics-types.d.ts +65 -0
- package/dist/events/diagnostics-types.d.ts.map +1 -0
- package/dist/events/diagnostics-types.js +2 -0
- package/dist/events/diagnostics-types.js.map +1 -0
- package/dist/events/event-base.d.ts +14 -0
- package/dist/events/event-base.d.ts.map +1 -0
- package/dist/events/event-base.js +24 -0
- package/dist/events/event-base.js.map +1 -0
- package/dist/events/event-builder.d.ts +20 -0
- package/dist/events/event-builder.d.ts.map +1 -0
- package/dist/events/event-builder.js +347 -0
- package/dist/events/event-builder.js.map +1 -0
- package/dist/events/event-emitter.d.ts +30 -0
- package/dist/events/event-emitter.d.ts.map +1 -0
- package/dist/events/event-emitter.js +58 -0
- package/dist/events/event-emitter.js.map +1 -0
- package/dist/events/http-server-log.d.ts +63 -0
- package/dist/events/http-server-log.d.ts.map +1 -0
- package/dist/events/http-server-log.js.map +1 -0
- package/dist/events/index.d.ts +6 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +7 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/jsonl-writer.d.ts.map +1 -0
- package/dist/events/jsonl-writer.js.map +1 -0
- package/dist/events/local-log-sink.d.ts +10 -0
- package/dist/events/local-log-sink.d.ts.map +1 -0
- package/dist/events/local-log-sink.js.map +1 -0
- package/dist/events/normalize.d.ts +18 -0
- package/dist/events/normalize.d.ts.map +1 -0
- package/dist/events/normalize.js +18 -0
- package/dist/events/normalize.js.map +1 -0
- package/dist/events/observability-events.d.ts +1196 -0
- package/dist/events/observability-events.d.ts.map +1 -0
- package/dist/events/observability-events.js +380 -0
- package/dist/events/observability-events.js.map +1 -0
- package/dist/events/privacy-filter.d.ts +2 -0
- package/dist/events/privacy-filter.d.ts.map +1 -0
- package/dist/events/privacy-filter.js +10 -0
- package/dist/events/privacy-filter.js.map +1 -0
- package/dist/events/request-spill.d.ts.map +1 -0
- package/dist/events/request-spill.js.map +1 -0
- package/dist/events/telemetry-channel.d.ts +9 -0
- package/dist/events/telemetry-channel.d.ts.map +1 -0
- package/dist/events/telemetry-channel.js +16 -0
- package/dist/events/telemetry-channel.js.map +1 -0
- package/dist/events/telemetry-sink.d.ts +12 -0
- package/dist/events/telemetry-sink.d.ts.map +1 -0
- package/dist/events/telemetry-sink.js +24 -0
- package/dist/events/telemetry-sink.js.map +1 -0
- package/dist/events/telemetry-types.d.ts +1509 -0
- package/dist/events/telemetry-types.d.ts.map +1 -0
- package/dist/events/telemetry-types.js +289 -0
- package/dist/events/telemetry-types.js.map +1 -0
- package/dist/events/verbose-line.d.ts.map +1 -0
- package/dist/events/verbose-line.js +99 -0
- package/dist/events/verbose-line.js.map +1 -0
- package/dist/events/verbose-log-channel.d.ts +9 -0
- package/dist/events/verbose-log-channel.d.ts.map +1 -0
- package/dist/events/verbose-log-channel.js +26 -0
- package/dist/events/verbose-log-channel.js.map +1 -0
- package/dist/identity/auth-token-store.d.ts +17 -0
- package/dist/identity/auth-token-store.d.ts.map +1 -0
- package/dist/identity/auth-token-store.js +67 -0
- package/dist/identity/auth-token-store.js.map +1 -0
- package/dist/identity/cwd-validator.d.ts +6 -0
- package/dist/identity/cwd-validator.d.ts.map +1 -0
- package/dist/identity/cwd-validator.js +16 -0
- package/dist/identity/cwd-validator.js.map +1 -0
- package/dist/identity/host-allowlist.d.ts +6 -0
- package/dist/identity/host-allowlist.d.ts.map +1 -0
- package/dist/identity/host-allowlist.js +11 -0
- package/dist/identity/host-allowlist.js.map +1 -0
- package/dist/identity/index.d.ts +6 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +7 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/identity/secret-redactor.d.ts +2 -0
- package/dist/identity/secret-redactor.d.ts.map +1 -0
- package/dist/identity/secret-redactor.js +35 -0
- package/dist/identity/secret-redactor.js.map +1 -0
- package/dist/identity/ssrf-guard.d.ts +4 -0
- package/dist/identity/ssrf-guard.d.ts.map +1 -0
- package/dist/identity/ssrf-guard.js +19 -0
- package/dist/identity/ssrf-guard.js.map +1 -0
- package/dist/index.d.ts +69 -46
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +48 -30
- package/dist/index.js.map +1 -1
- package/dist/intake/brief-compiler-slots/audit.d.ts +23 -0
- package/dist/intake/brief-compiler-slots/audit.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/audit.js +61 -0
- package/dist/intake/brief-compiler-slots/audit.js.map +1 -0
- package/dist/intake/brief-compiler-slots/debug.d.ts +41 -0
- package/dist/intake/brief-compiler-slots/debug.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/debug.js +49 -0
- package/dist/intake/brief-compiler-slots/debug.js.map +1 -0
- package/dist/intake/brief-compiler-slots/delegate.d.ts +29 -0
- package/dist/intake/brief-compiler-slots/delegate.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/delegate.js +44 -0
- package/dist/intake/brief-compiler-slots/delegate.js.map +1 -0
- package/dist/intake/brief-compiler-slots/execute-plan.d.ts +49 -0
- package/dist/intake/brief-compiler-slots/execute-plan.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/execute-plan.js +146 -0
- package/dist/intake/brief-compiler-slots/execute-plan.js.map +1 -0
- package/dist/intake/brief-compiler-slots/explore.d.ts +43 -0
- package/dist/intake/brief-compiler-slots/explore.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/explore.js +116 -0
- package/dist/intake/brief-compiler-slots/explore.js.map +1 -0
- package/dist/intake/brief-compiler-slots/investigate.d.ts +26 -0
- package/dist/intake/brief-compiler-slots/investigate.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/investigate.js +42 -0
- package/dist/intake/brief-compiler-slots/investigate.js.map +1 -0
- package/dist/intake/brief-compiler-slots/register-context-block.d.ts +17 -0
- package/dist/intake/brief-compiler-slots/register-context-block.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/register-context-block.js +17 -0
- package/dist/intake/brief-compiler-slots/register-context-block.js.map +1 -0
- package/dist/intake/brief-compiler-slots/retry.d.ts +20 -0
- package/dist/intake/brief-compiler-slots/retry.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/retry.js +37 -0
- package/dist/intake/brief-compiler-slots/retry.js.map +1 -0
- package/dist/intake/brief-compiler-slots/review.d.ts +34 -0
- package/dist/intake/brief-compiler-slots/review.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/review.js +85 -0
- package/dist/intake/brief-compiler-slots/review.js.map +1 -0
- package/dist/intake/brief-compiler-slots/verify.d.ts +21 -0
- package/dist/intake/brief-compiler-slots/verify.d.ts.map +1 -0
- package/dist/intake/brief-compiler-slots/verify.js +62 -0
- package/dist/intake/brief-compiler-slots/verify.js.map +1 -0
- package/dist/intake/brief-compiler.d.ts +9 -0
- package/dist/intake/brief-compiler.d.ts.map +1 -0
- package/dist/intake/brief-compiler.js +8 -0
- package/dist/intake/brief-compiler.js.map +1 -0
- package/dist/intake/classify.d.ts.map +1 -1
- package/dist/intake/classify.js +3 -2
- package/dist/intake/classify.js.map +1 -1
- package/dist/intake/field-inferer.d.ts +10 -0
- package/dist/intake/field-inferer.d.ts.map +1 -0
- package/dist/intake/field-inferer.js +57 -0
- package/dist/intake/field-inferer.js.map +1 -0
- package/dist/intake/host-allowlist-builder.d.ts +25 -0
- package/dist/intake/host-allowlist-builder.d.ts.map +1 -0
- package/dist/intake/host-allowlist-builder.js +102 -0
- package/dist/intake/host-allowlist-builder.js.map +1 -0
- package/dist/intake/index.d.ts +5 -0
- package/dist/intake/index.d.ts.map +1 -0
- package/dist/intake/index.js +6 -0
- package/dist/intake/index.js.map +1 -0
- package/dist/intake/pipeline.d.ts +2 -2
- package/dist/intake/pipeline.d.ts.map +1 -1
- package/dist/intake/pipeline.js +7 -73
- package/dist/intake/pipeline.js.map +1 -1
- package/dist/intake/plan-extractor.d.ts +20 -0
- package/dist/intake/plan-extractor.d.ts.map +1 -0
- package/dist/intake/plan-extractor.js +87 -0
- package/dist/intake/plan-extractor.js.map +1 -0
- package/dist/intake/resolve.d.ts +2 -3
- package/dist/intake/resolve.d.ts.map +1 -1
- package/dist/intake/resolve.js +4 -12
- package/dist/intake/resolve.js.map +1 -1
- package/dist/intake/types.d.ts +3 -53
- package/dist/intake/types.d.ts.map +1 -1
- package/dist/intake/verify-referenced-blocks.d.ts +5 -0
- package/dist/intake/verify-referenced-blocks.d.ts.map +1 -0
- package/dist/intake/verify-referenced-blocks.js +9 -0
- package/dist/intake/verify-referenced-blocks.js.map +1 -0
- package/dist/lifecycle/auto-commit.d.ts +18 -0
- package/dist/lifecycle/auto-commit.d.ts.map +1 -0
- package/dist/lifecycle/auto-commit.js.map +1 -0
- package/dist/lifecycle/auto-register-context-block.d.ts +11 -0
- package/dist/lifecycle/auto-register-context-block.d.ts.map +1 -0
- package/dist/lifecycle/auto-register-context-block.js +18 -0
- package/dist/lifecycle/auto-register-context-block.js.map +1 -0
- package/dist/lifecycle/executor-output-types.d.ts +51 -0
- package/dist/lifecycle/executor-output-types.d.ts.map +1 -0
- package/dist/lifecycle/executor-output-types.js +2 -0
- package/dist/lifecycle/executor-output-types.js.map +1 -0
- package/dist/lifecycle/fallback-report.d.ts.map +1 -0
- package/dist/lifecycle/fallback-report.js.map +1 -0
- package/dist/lifecycle/handlers/baseline-handlers.d.ts +7 -0
- package/dist/lifecycle/handlers/baseline-handlers.d.ts.map +1 -0
- package/dist/lifecycle/handlers/baseline-handlers.js +193 -0
- package/dist/lifecycle/handlers/baseline-handlers.js.map +1 -0
- package/dist/lifecycle/handlers/commit-stage.d.ts +16 -0
- package/dist/lifecycle/handlers/commit-stage.d.ts.map +1 -0
- package/dist/lifecycle/handlers/commit-stage.js +52 -0
- package/dist/lifecycle/handlers/commit-stage.js.map +1 -0
- package/dist/lifecycle/handlers/derive-terminal-status.d.ts +10 -0
- package/dist/lifecycle/handlers/derive-terminal-status.d.ts.map +1 -0
- package/dist/lifecycle/handlers/derive-terminal-status.js +35 -0
- package/dist/lifecycle/handlers/derive-terminal-status.js.map +1 -0
- package/dist/lifecycle/handlers/execution-context-builder.d.ts +5 -0
- package/dist/lifecycle/handlers/execution-context-builder.d.ts.map +1 -0
- package/dist/lifecycle/handlers/execution-context-builder.js +16 -0
- package/dist/lifecycle/handlers/execution-context-builder.js.map +1 -0
- package/dist/lifecycle/handlers/git-commit-handler.d.ts +19 -0
- package/dist/lifecycle/handlers/git-commit-handler.d.ts.map +1 -0
- package/dist/lifecycle/handlers/git-commit-handler.js +52 -0
- package/dist/lifecycle/handlers/git-commit-handler.js.map +1 -0
- package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts +19 -0
- package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts.map +1 -0
- package/dist/lifecycle/handlers/prepare-execution-context-handler.js +38 -0
- package/dist/lifecycle/handlers/prepare-execution-context-handler.js.map +1 -0
- package/dist/lifecycle/handlers/quality-chain-handlers.d.ts +22 -0
- package/dist/lifecycle/handlers/quality-chain-handlers.d.ts.map +1 -0
- package/dist/lifecycle/handlers/quality-chain-handlers.js +189 -0
- package/dist/lifecycle/handlers/quality-chain-handlers.js.map +1 -0
- package/dist/lifecycle/handlers/register-context-block-handlers.d.ts +3 -0
- package/dist/lifecycle/handlers/register-context-block-handlers.d.ts.map +1 -0
- package/dist/lifecycle/handlers/register-context-block-handlers.js +18 -0
- package/dist/lifecycle/handlers/register-context-block-handlers.js.map +1 -0
- package/dist/lifecycle/handlers/review-diff-handler.d.ts +31 -0
- package/dist/lifecycle/handlers/review-diff-handler.d.ts.map +1 -0
- package/dist/lifecycle/handlers/review-diff-handler.js +107 -0
- package/dist/lifecycle/handlers/review-diff-handler.js.map +1 -0
- package/dist/lifecycle/handlers/run-verify-command-handler.d.ts +25 -0
- package/dist/lifecycle/handlers/run-verify-command-handler.d.ts.map +1 -0
- package/dist/lifecycle/handlers/run-verify-command-handler.js +75 -0
- package/dist/lifecycle/handlers/run-verify-command-handler.js.map +1 -0
- package/dist/lifecycle/handlers/spec-chain-handlers.d.ts +21 -0
- package/dist/lifecycle/handlers/spec-chain-handlers.d.ts.map +1 -0
- package/dist/lifecycle/handlers/spec-chain-handlers.js +158 -0
- package/dist/lifecycle/handlers/spec-chain-handlers.js.map +1 -0
- package/dist/lifecycle/handlers/task-executor.d.ts +10 -0
- package/dist/lifecycle/handlers/task-executor.d.ts.map +1 -0
- package/dist/lifecycle/handlers/task-executor.js +16 -0
- package/dist/lifecycle/handlers/task-executor.js.map +1 -0
- package/dist/lifecycle/handlers/terminal-handlers.d.ts +6 -0
- package/dist/lifecycle/handlers/terminal-handlers.d.ts.map +1 -0
- package/dist/lifecycle/handlers/terminal-handlers.js +106 -0
- package/dist/lifecycle/handlers/terminal-handlers.js.map +1 -0
- package/dist/lifecycle/handlers/verify-stage.d.ts +37 -0
- package/dist/lifecycle/handlers/verify-stage.d.ts.map +1 -0
- package/dist/lifecycle/handlers/verify-stage.js +208 -0
- package/dist/lifecycle/handlers/verify-stage.js.map +1 -0
- package/dist/lifecycle/index.d.ts +3 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/lifecycle/index.js +4 -0
- package/dist/lifecycle/index.js.map +1 -0
- package/dist/lifecycle/lifecycle-context.d.ts +98 -0
- package/dist/lifecycle/lifecycle-context.d.ts.map +1 -0
- package/dist/lifecycle/lifecycle-context.js +2 -0
- package/dist/lifecycle/lifecycle-context.js.map +1 -0
- package/dist/lifecycle/lifecycle-dispatcher.d.ts +36 -0
- package/dist/lifecycle/lifecycle-dispatcher.d.ts.map +1 -0
- package/dist/lifecycle/lifecycle-dispatcher.js +51 -0
- package/dist/lifecycle/lifecycle-dispatcher.js.map +1 -0
- package/dist/lifecycle/lifecycle-driver.d.ts +9 -0
- package/dist/lifecycle/lifecycle-driver.d.ts.map +1 -0
- package/dist/lifecycle/lifecycle-driver.js +30 -0
- package/dist/lifecycle/lifecycle-driver.js.map +1 -0
- package/dist/lifecycle/metadata-repair.d.ts.map +1 -0
- package/dist/lifecycle/metadata-repair.js +33 -0
- package/dist/lifecycle/metadata-repair.js.map +1 -0
- package/dist/lifecycle/plan-extraction.d.ts.map +1 -0
- package/dist/lifecycle/plan-extraction.js.map +1 -0
- package/dist/lifecycle/shared-compute.d.ts +5 -0
- package/dist/lifecycle/shared-compute.d.ts.map +1 -0
- package/dist/lifecycle/shared-compute.js +19 -0
- package/dist/lifecycle/shared-compute.js.map +1 -0
- package/dist/lifecycle/stage-idle-tracker.d.ts.map +1 -0
- package/dist/lifecycle/stage-idle-tracker.js.map +1 -0
- package/dist/lifecycle/stage-plan-builder.d.ts +4 -0
- package/dist/lifecycle/stage-plan-builder.d.ts.map +1 -0
- package/dist/lifecycle/stage-plan-builder.js +173 -0
- package/dist/lifecycle/stage-plan-builder.js.map +1 -0
- package/dist/lifecycle/stage-plan-types.d.ts +102 -0
- package/dist/lifecycle/stage-plan-types.d.ts.map +1 -0
- package/dist/lifecycle/stage-plan-types.js +2 -0
- package/dist/lifecycle/stage-plan-types.js.map +1 -0
- package/dist/lifecycle/stage-stats.d.ts +88 -0
- package/dist/lifecycle/stage-stats.d.ts.map +1 -0
- package/dist/lifecycle/stage-stats.js +156 -0
- package/dist/lifecycle/stage-stats.js.map +1 -0
- package/dist/lifecycle/task-completion-summary.d.ts.map +1 -0
- package/dist/lifecycle/task-completion-summary.js +93 -0
- package/dist/lifecycle/task-completion-summary.js.map +1 -0
- package/dist/lifecycle/task-executor.d.ts +24 -0
- package/dist/lifecycle/task-executor.d.ts.map +1 -0
- package/dist/lifecycle/task-executor.js +207 -0
- package/dist/lifecycle/task-executor.js.map +1 -0
- package/dist/lifecycle/task-runner.d.ts +79 -0
- package/dist/lifecycle/task-runner.d.ts.map +1 -0
- package/dist/lifecycle/task-runner.js +254 -0
- package/dist/lifecycle/task-runner.js.map +1 -0
- package/dist/lifecycle/tool-config-types.d.ts +27 -0
- package/dist/lifecycle/tool-config-types.d.ts.map +1 -0
- package/dist/lifecycle/tool-config-types.js +2 -0
- package/dist/lifecycle/tool-config-types.js.map +1 -0
- package/dist/lifecycle/worker-status.d.ts +9 -0
- package/dist/lifecycle/worker-status.d.ts.map +1 -0
- package/dist/lifecycle/worker-status.js +19 -0
- package/dist/lifecycle/worker-status.js.map +1 -0
- package/dist/model-profiles.json +607 -125
- package/dist/providers/anthropic-messages-adapter.d.ts +18 -0
- package/dist/providers/anthropic-messages-adapter.d.ts.map +1 -0
- package/dist/providers/anthropic-messages-adapter.js +81 -0
- package/dist/providers/anthropic-messages-adapter.js.map +1 -0
- package/dist/providers/base/research-tools.d.ts.map +1 -0
- package/dist/providers/base/research-tools.js.map +1 -0
- package/dist/providers/base/result-builders.d.ts +82 -0
- package/dist/providers/base/result-builders.d.ts.map +1 -0
- package/dist/providers/base/result-builders.js +112 -0
- package/dist/providers/base/result-builders.js.map +1 -0
- package/dist/providers/base/time-check.d.ts.map +1 -0
- package/dist/providers/base/time-check.js.map +1 -0
- package/dist/providers/base/types.d.ts +53 -0
- package/dist/providers/base/types.d.ts.map +1 -0
- package/dist/providers/base/types.js.map +1 -0
- package/dist/providers/base/usage-accumulator.d.ts +9 -0
- package/dist/providers/base/usage-accumulator.d.ts.map +1 -0
- package/dist/providers/base/usage-accumulator.js +20 -0
- package/dist/providers/base/usage-accumulator.js.map +1 -0
- package/dist/providers/call-cache.d.ts.map +1 -0
- package/dist/providers/call-cache.js.map +1 -0
- package/dist/providers/error-classification.d.ts +49 -0
- package/dist/providers/error-classification.d.ts.map +1 -0
- package/dist/providers/error-classification.js +140 -0
- package/dist/providers/error-classification.js.map +1 -0
- package/dist/providers/file-tracker.d.ts +47 -0
- package/dist/providers/file-tracker.d.ts.map +1 -0
- package/dist/providers/file-tracker.js +71 -0
- package/dist/providers/file-tracker.js.map +1 -0
- package/dist/providers/index.d.ts +16 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +17 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/injection-type.d.ts.map +1 -0
- package/dist/providers/injection-type.js.map +1 -0
- package/dist/providers/make-runner-shell.d.ts +4 -0
- package/dist/providers/make-runner-shell.d.ts.map +1 -0
- package/dist/providers/make-runner-shell.js +69 -0
- package/dist/providers/make-runner-shell.js.map +1 -0
- package/dist/providers/openai-chat-adapter.d.ts +17 -0
- package/dist/providers/openai-chat-adapter.d.ts.map +1 -0
- package/dist/providers/openai-chat-adapter.js +87 -0
- package/dist/providers/openai-chat-adapter.js.map +1 -0
- package/dist/providers/openai-responses-adapter.d.ts +16 -0
- package/dist/providers/openai-responses-adapter.d.ts.map +1 -0
- package/dist/providers/openai-responses-adapter.js +109 -0
- package/dist/providers/openai-responses-adapter.js.map +1 -0
- package/dist/providers/openai-usage-interceptor.d.ts.map +1 -0
- package/dist/providers/openai-usage-interceptor.js +121 -0
- package/dist/providers/openai-usage-interceptor.js.map +1 -0
- package/dist/providers/prevention.d.ts.map +1 -0
- package/dist/providers/prevention.js +108 -0
- package/dist/providers/prevention.js.map +1 -0
- package/dist/providers/provider-factory.d.ts +13 -0
- package/dist/providers/provider-factory.d.ts.map +1 -0
- package/dist/providers/provider-factory.js +127 -0
- package/dist/providers/provider-factory.js.map +1 -0
- package/dist/providers/runner-adapter.d.ts +42 -0
- package/dist/providers/runner-adapter.d.ts.map +1 -0
- package/dist/providers/runner-adapter.js +2 -0
- package/dist/providers/runner-adapter.js.map +1 -0
- package/dist/providers/runner-shell-types.d.ts +37 -0
- package/dist/providers/runner-shell-types.d.ts.map +1 -0
- package/dist/providers/runner-shell-types.js +2 -0
- package/dist/providers/runner-shell-types.js.map +1 -0
- package/dist/providers/runner-shell.d.ts +8 -0
- package/dist/providers/runner-shell.d.ts.map +1 -0
- package/dist/providers/runner-shell.js +78 -0
- package/dist/providers/runner-shell.js.map +1 -0
- package/dist/providers/runner-types.d.ts +174 -0
- package/dist/providers/runner-types.d.ts.map +1 -0
- package/dist/providers/runner-types.js +2 -0
- package/dist/providers/runner-types.js.map +1 -0
- package/dist/providers/scratchpad-salvager.d.ts +19 -0
- package/dist/providers/scratchpad-salvager.d.ts.map +1 -0
- package/dist/providers/scratchpad-salvager.js +44 -0
- package/dist/providers/scratchpad-salvager.js.map +1 -0
- package/dist/providers/stall-detector.d.ts +22 -0
- package/dist/providers/stall-detector.d.ts.map +1 -0
- package/dist/providers/stall-detector.js +43 -0
- package/dist/providers/stall-detector.js.map +1 -0
- package/dist/providers/supervision.d.ts +108 -0
- package/dist/providers/supervision.d.ts.map +1 -0
- package/dist/providers/supervision.js +272 -0
- package/dist/providers/supervision.js.map +1 -0
- package/dist/providers/text-scratchpad.d.ts +28 -0
- package/dist/providers/text-scratchpad.d.ts.map +1 -0
- package/dist/providers/text-scratchpad.js +49 -0
- package/dist/providers/text-scratchpad.js.map +1 -0
- package/dist/providers/tool-definitions.d.ts +6 -0
- package/dist/providers/tool-definitions.d.ts.map +1 -0
- package/dist/providers/tool-definitions.js +236 -0
- package/dist/providers/tool-definitions.js.map +1 -0
- package/dist/providers/tool-implementations.d.ts +26 -0
- package/dist/providers/tool-implementations.d.ts.map +1 -0
- package/dist/providers/tool-implementations.js +221 -0
- package/dist/providers/tool-implementations.js.map +1 -0
- package/dist/providers/tool-tracker.d.ts +14 -0
- package/dist/providers/tool-tracker.d.ts.map +1 -0
- package/dist/providers/tool-tracker.js +13 -0
- package/dist/providers/tool-tracker.js.map +1 -0
- package/dist/reporting/batch-persister.d.ts +4 -0
- package/dist/reporting/batch-persister.d.ts.map +1 -0
- package/dist/reporting/batch-persister.js +11 -0
- package/dist/reporting/batch-persister.js.map +1 -0
- package/dist/reporting/commit-stage-runner.d.ts +12 -0
- package/dist/reporting/commit-stage-runner.d.ts.map +1 -0
- package/dist/reporting/commit-stage-runner.js +43 -0
- package/dist/reporting/commit-stage-runner.js.map +1 -0
- package/dist/reporting/compose-terminal-headline.d.ts +0 -1
- package/dist/reporting/compose-terminal-headline.d.ts.map +1 -1
- package/dist/reporting/compose-terminal-headline.js +2 -5
- package/dist/reporting/compose-terminal-headline.js.map +1 -1
- package/dist/reporting/derive-explore-status.d.ts +1 -1
- package/dist/reporting/derive-explore-status.d.ts.map +1 -1
- package/dist/reporting/derive-explore-status.js +2 -6
- package/dist/reporting/derive-explore-status.js.map +1 -1
- package/dist/reporting/derive-investigate-status.d.ts +2 -4
- package/dist/reporting/derive-investigate-status.d.ts.map +1 -1
- package/dist/reporting/derive-investigate-status.js +3 -10
- package/dist/reporting/derive-investigate-status.js.map +1 -1
- package/dist/reporting/headline-composer.d.ts +17 -0
- package/dist/reporting/headline-composer.d.ts.map +1 -0
- package/dist/reporting/headline-composer.js +10 -0
- package/dist/reporting/headline-composer.js.map +1 -0
- package/dist/reporting/headline-templates/audit.d.ts +3 -0
- package/dist/reporting/headline-templates/audit.d.ts.map +1 -0
- package/dist/reporting/headline-templates/audit.js +12 -0
- package/dist/reporting/headline-templates/audit.js.map +1 -0
- package/dist/reporting/headline-templates/debug.d.ts +8 -0
- package/dist/reporting/headline-templates/debug.d.ts.map +1 -0
- package/dist/reporting/headline-templates/debug.js +15 -0
- package/dist/reporting/headline-templates/debug.js.map +1 -0
- package/dist/reporting/headline-templates/delegate.d.ts +3 -0
- package/dist/reporting/headline-templates/delegate.d.ts.map +1 -0
- package/dist/reporting/headline-templates/delegate.js +12 -0
- package/dist/reporting/headline-templates/delegate.js.map +1 -0
- package/dist/reporting/headline-templates/execute-plan.d.ts +3 -0
- package/dist/reporting/headline-templates/execute-plan.d.ts.map +1 -0
- package/dist/reporting/headline-templates/execute-plan.js +14 -0
- package/dist/reporting/headline-templates/execute-plan.js.map +1 -0
- package/dist/reporting/headline-templates/explore.d.ts +3 -0
- package/dist/reporting/headline-templates/explore.d.ts.map +1 -0
- package/dist/reporting/headline-templates/explore.js +13 -0
- package/dist/reporting/headline-templates/explore.js.map +1 -0
- package/dist/reporting/headline-templates/investigate.d.ts +13 -0
- package/dist/reporting/headline-templates/investigate.d.ts.map +1 -0
- package/dist/reporting/headline-templates/investigate.js +53 -0
- package/dist/reporting/headline-templates/investigate.js.map +1 -0
- package/dist/reporting/headline-templates/register-context-block.d.ts +3 -0
- package/dist/reporting/headline-templates/register-context-block.d.ts.map +1 -0
- package/dist/reporting/headline-templates/register-context-block.js +6 -0
- package/dist/reporting/headline-templates/register-context-block.js.map +1 -0
- package/dist/reporting/headline-templates/retry.d.ts +3 -0
- package/dist/reporting/headline-templates/retry.d.ts.map +1 -0
- package/dist/reporting/headline-templates/retry.js +9 -0
- package/dist/reporting/headline-templates/retry.js.map +1 -0
- package/dist/reporting/headline-templates/review.d.ts +3 -0
- package/dist/reporting/headline-templates/review.d.ts.map +1 -0
- package/dist/reporting/headline-templates/review.js +15 -0
- package/dist/reporting/headline-templates/review.js.map +1 -0
- package/dist/reporting/headline-templates/verify.d.ts +3 -0
- package/dist/reporting/headline-templates/verify.d.ts.map +1 -0
- package/dist/reporting/headline-templates/verify.js +12 -0
- package/dist/reporting/headline-templates/verify.js.map +1 -0
- package/dist/reporting/index.d.ts +9 -0
- package/dist/reporting/index.d.ts.map +1 -0
- package/dist/reporting/index.js +10 -0
- package/dist/reporting/index.js.map +1 -0
- package/dist/reporting/report-parser-slots/audit-report.d.ts +13 -0
- package/dist/reporting/report-parser-slots/audit-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/audit-report.js +9 -0
- package/dist/reporting/report-parser-slots/audit-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/debug-report.d.ts +9 -0
- package/dist/reporting/report-parser-slots/debug-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/debug-report.js +9 -0
- package/dist/reporting/report-parser-slots/debug-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/delegate-report.d.ts +8 -0
- package/dist/reporting/report-parser-slots/delegate-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/delegate-report.js +19 -0
- package/dist/reporting/report-parser-slots/delegate-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/execute-plan-report.d.ts +11 -0
- package/dist/reporting/report-parser-slots/execute-plan-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/execute-plan-report.js +9 -0
- package/dist/reporting/report-parser-slots/execute-plan-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/explore-report.d.ts +17 -0
- package/dist/reporting/report-parser-slots/explore-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/explore-report.js +9 -0
- package/dist/reporting/report-parser-slots/explore-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/investigate-report.d.ts +46 -0
- package/dist/reporting/report-parser-slots/investigate-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/investigate-report.js +159 -0
- package/dist/reporting/report-parser-slots/investigate-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/register-context-block-report.d.ts +8 -0
- package/dist/reporting/report-parser-slots/register-context-block-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/register-context-block-report.js +9 -0
- package/dist/reporting/report-parser-slots/register-context-block-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/retry-report.d.ts +8 -0
- package/dist/reporting/report-parser-slots/retry-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/retry-report.js +9 -0
- package/dist/reporting/report-parser-slots/retry-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/review-report.d.ts +14 -0
- package/dist/reporting/report-parser-slots/review-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/review-report.js +9 -0
- package/dist/reporting/report-parser-slots/review-report.js.map +1 -0
- package/dist/reporting/report-parser-slots/verify-report.d.ts +10 -0
- package/dist/reporting/report-parser-slots/verify-report.d.ts.map +1 -0
- package/dist/reporting/report-parser-slots/verify-report.js +9 -0
- package/dist/reporting/report-parser-slots/verify-report.js.map +1 -0
- package/dist/reporting/response-envelope-builder.d.ts +32 -0
- package/dist/reporting/response-envelope-builder.d.ts.map +1 -0
- package/dist/reporting/response-envelope-builder.js +26 -0
- package/dist/reporting/response-envelope-builder.js.map +1 -0
- package/dist/reporting/structured-report-parser.d.ts +9 -0
- package/dist/reporting/structured-report-parser.d.ts.map +1 -0
- package/dist/reporting/structured-report-parser.js +8 -0
- package/dist/reporting/structured-report-parser.js.map +1 -0
- package/dist/reporting/structured-report.js +1 -1
- package/dist/reporting/terminal-block-registrar.d.ts +14 -0
- package/dist/reporting/terminal-block-registrar.d.ts.map +1 -0
- package/dist/reporting/terminal-block-registrar.js +17 -0
- package/dist/reporting/terminal-block-registrar.js.map +1 -0
- package/dist/reporting/terminal-status-deriver.d.ts +22 -0
- package/dist/reporting/terminal-status-deriver.d.ts.map +1 -0
- package/dist/reporting/terminal-status-deriver.js +38 -0
- package/dist/reporting/terminal-status-deriver.js.map +1 -0
- package/dist/reporting/verify-stage-runner.d.ts +21 -0
- package/dist/reporting/verify-stage-runner.d.ts.map +1 -0
- package/dist/reporting/verify-stage-runner.js +102 -0
- package/dist/reporting/verify-stage-runner.js.map +1 -0
- package/dist/research/explore-orchestrator.d.ts +14 -0
- package/dist/research/explore-orchestrator.d.ts.map +1 -0
- package/dist/research/explore-orchestrator.js +363 -0
- package/dist/research/explore-orchestrator.js.map +1 -0
- package/dist/research/index.d.ts +3 -0
- package/dist/research/index.d.ts.map +1 -0
- package/dist/research/index.js +4 -0
- package/dist/research/index.js.map +1 -0
- package/dist/research/web-fetch-helpers.d.ts +48 -0
- package/dist/research/web-fetch-helpers.d.ts.map +1 -0
- package/dist/research/web-fetch-helpers.js +225 -0
- package/dist/research/web-fetch-helpers.js.map +1 -0
- package/dist/research/web-fetch.d.ts.map +1 -1
- package/dist/research/web-fetch.js +1 -230
- package/dist/research/web-fetch.js.map +1 -1
- package/dist/review/annotator-engine.d.ts +30 -0
- package/dist/review/annotator-engine.d.ts.map +1 -0
- package/dist/review/annotator-engine.js +40 -0
- package/dist/review/annotator-engine.js.map +1 -0
- package/dist/review/annotator-output-parser.d.ts +13 -0
- package/dist/review/annotator-output-parser.d.ts.map +1 -0
- package/dist/review/annotator-output-parser.js +24 -0
- package/dist/review/annotator-output-parser.js.map +1 -0
- package/dist/review/annotator-prompt-builder.d.ts +9 -0
- package/dist/review/annotator-prompt-builder.d.ts.map +1 -0
- package/dist/review/annotator-prompt-builder.js +28 -0
- package/dist/review/annotator-prompt-builder.js.map +1 -0
- package/dist/review/default-engines.d.ts +5 -0
- package/dist/review/default-engines.d.ts.map +1 -0
- package/dist/review/default-engines.js +24 -0
- package/dist/review/default-engines.js.map +1 -0
- package/dist/review/index.d.ts +8 -0
- package/dist/review/index.d.ts.map +1 -0
- package/dist/review/index.js +9 -0
- package/dist/review/index.js.map +1 -0
- package/dist/review/review-types.d.ts +15 -0
- package/dist/review/review-types.d.ts.map +1 -0
- package/dist/review/review-types.js +3 -0
- package/dist/review/review-types.js.map +1 -0
- package/dist/review/review-verdict-aggregator.d.ts +17 -0
- package/dist/review/review-verdict-aggregator.d.ts.map +1 -0
- package/dist/review/review-verdict-aggregator.js +30 -0
- package/dist/review/review-verdict-aggregator.js.map +1 -0
- package/dist/review/review-verdict-mapping.d.ts +16 -0
- package/dist/review/review-verdict-mapping.d.ts.map +1 -0
- package/dist/review/review-verdict-mapping.js +24 -0
- package/dist/review/review-verdict-mapping.js.map +1 -0
- package/dist/review/reviewer-engine.d.ts +54 -0
- package/dist/review/reviewer-engine.d.ts.map +1 -0
- package/dist/review/reviewer-engine.js +58 -0
- package/dist/review/reviewer-engine.js.map +1 -0
- package/dist/review/reviewer-output-parser.d.ts +17 -0
- package/dist/review/reviewer-output-parser.d.ts.map +1 -0
- package/dist/review/reviewer-output-parser.js +62 -0
- package/dist/review/reviewer-output-parser.js.map +1 -0
- package/dist/review/reviewer-prompt-builder.d.ts +34 -0
- package/dist/review/reviewer-prompt-builder.d.ts.map +1 -0
- package/dist/review/reviewer-prompt-builder.js +28 -0
- package/dist/review/reviewer-prompt-builder.js.map +1 -0
- package/dist/review/templates/annotator-audit.d.ts +3 -0
- package/dist/review/templates/annotator-audit.d.ts.map +1 -0
- package/dist/review/templates/annotator-audit.js +5 -0
- package/dist/review/templates/annotator-audit.js.map +1 -0
- package/dist/review/templates/annotator-debug.d.ts +3 -0
- package/dist/review/templates/annotator-debug.d.ts.map +1 -0
- package/dist/review/templates/annotator-debug.js +5 -0
- package/dist/review/templates/annotator-debug.js.map +1 -0
- package/dist/review/templates/annotator-investigate.d.ts +3 -0
- package/dist/review/templates/annotator-investigate.d.ts.map +1 -0
- package/dist/review/templates/annotator-investigate.js +5 -0
- package/dist/review/templates/annotator-investigate.js.map +1 -0
- package/dist/review/templates/annotator-review.d.ts +3 -0
- package/dist/review/templates/annotator-review.d.ts.map +1 -0
- package/dist/review/templates/annotator-review.js +5 -0
- package/dist/review/templates/annotator-review.js.map +1 -0
- package/dist/review/templates/annotator-shared.d.ts +10 -0
- package/dist/review/templates/annotator-shared.d.ts.map +1 -0
- package/dist/review/templates/annotator-shared.js +62 -0
- package/dist/review/templates/annotator-shared.js.map +1 -0
- package/dist/review/templates/annotator-verify.d.ts +3 -0
- package/dist/review/templates/annotator-verify.d.ts.map +1 -0
- package/dist/review/templates/annotator-verify.js +5 -0
- package/dist/review/templates/annotator-verify.js.map +1 -0
- package/dist/review/templates/diff-review.d.ts +3 -0
- package/dist/review/templates/diff-review.d.ts.map +1 -0
- package/dist/review/templates/diff-review.js +7 -0
- package/dist/review/templates/diff-review.js.map +1 -0
- package/dist/review/templates/quality-review-artifact.d.ts +3 -0
- package/dist/review/templates/quality-review-artifact.d.ts.map +1 -0
- package/dist/review/templates/quality-review-artifact.js +8 -0
- package/dist/review/templates/quality-review-artifact.js.map +1 -0
- package/dist/review/templates/quality-review-audit.d.ts +3 -0
- package/dist/review/templates/quality-review-audit.d.ts.map +1 -0
- package/dist/review/templates/quality-review-audit.js +9 -0
- package/dist/review/templates/quality-review-audit.js.map +1 -0
- package/dist/review/templates/quality-review-debug.d.ts +3 -0
- package/dist/review/templates/quality-review-debug.d.ts.map +1 -0
- package/dist/review/templates/quality-review-debug.js +9 -0
- package/dist/review/templates/quality-review-debug.js.map +1 -0
- package/dist/review/templates/quality-review-investigate.d.ts +3 -0
- package/dist/review/templates/quality-review-investigate.d.ts.map +1 -0
- package/dist/review/templates/quality-review-investigate.js +9 -0
- package/dist/review/templates/quality-review-investigate.js.map +1 -0
- package/dist/review/templates/quality-review-review.d.ts +3 -0
- package/dist/review/templates/quality-review-review.d.ts.map +1 -0
- package/dist/review/templates/quality-review-review.js +9 -0
- package/dist/review/templates/quality-review-review.js.map +1 -0
- package/dist/review/templates/quality-review-verify.d.ts +3 -0
- package/dist/review/templates/quality-review-verify.d.ts.map +1 -0
- package/dist/review/templates/quality-review-verify.js +9 -0
- package/dist/review/templates/quality-review-verify.js.map +1 -0
- package/dist/review/templates/shared.d.ts +9 -0
- package/dist/review/templates/shared.d.ts.map +1 -0
- package/dist/review/templates/shared.js +2 -0
- package/dist/review/templates/shared.js.map +1 -0
- package/dist/review/templates/spec-review.d.ts +3 -0
- package/dist/review/templates/spec-review.d.ts.map +1 -0
- package/dist/review/templates/spec-review.js +8 -0
- package/dist/review/templates/spec-review.js.map +1 -0
- package/dist/stores/batch-cache.d.ts +29 -0
- package/dist/stores/batch-cache.d.ts.map +1 -0
- package/dist/stores/batch-cache.js +89 -0
- package/dist/stores/batch-cache.js.map +1 -0
- package/dist/stores/batch-registry.d.ts +101 -0
- package/dist/stores/batch-registry.d.ts.map +1 -0
- package/dist/stores/batch-registry.js +171 -0
- package/dist/stores/batch-registry.js.map +1 -0
- package/dist/stores/context-block-tool.d.ts +92 -0
- package/dist/stores/context-block-tool.d.ts.map +1 -0
- package/dist/stores/context-block-tool.js +137 -0
- package/dist/stores/context-block-tool.js.map +1 -0
- package/dist/stores/expand-context-blocks.d.ts +20 -0
- package/dist/stores/expand-context-blocks.d.ts.map +1 -0
- package/dist/stores/expand-context-blocks.js +46 -0
- package/dist/stores/expand-context-blocks.js.map +1 -0
- package/dist/stores/index.d.ts +4 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/index.js +5 -0
- package/dist/stores/index.js.map +1 -0
- package/dist/stores/project-context-registry.d.ts +17 -0
- package/dist/stores/project-context-registry.d.ts.map +1 -0
- package/dist/stores/project-context-registry.js +16 -0
- package/dist/stores/project-context-registry.js.map +1 -0
- package/dist/tool-surface/discover.d.ts +27 -0
- package/dist/tool-surface/discover.d.ts.map +1 -0
- package/dist/tool-surface/discover.js +87 -0
- package/dist/tool-surface/discover.js.map +1 -0
- package/dist/tool-surface/include-utils.d.ts +27 -0
- package/dist/tool-surface/include-utils.d.ts.map +1 -0
- package/dist/tool-surface/include-utils.js +90 -0
- package/dist/tool-surface/include-utils.js.map +1 -0
- package/dist/tool-surface/index.d.ts +6 -0
- package/dist/tool-surface/index.d.ts.map +1 -0
- package/dist/tool-surface/index.js +7 -0
- package/dist/tool-surface/index.js.map +1 -0
- package/dist/tool-surface/manifest.d.ts +94 -0
- package/dist/tool-surface/manifest.d.ts.map +1 -0
- package/dist/tool-surface/manifest.js +234 -0
- package/dist/tool-surface/manifest.js.map +1 -0
- package/dist/tool-surface/openapi-generator.d.ts +15 -0
- package/dist/tool-surface/openapi-generator.d.ts.map +1 -0
- package/dist/tool-surface/openapi-generator.js +261 -0
- package/dist/tool-surface/openapi-generator.js.map +1 -0
- package/dist/tool-surface/register-all-tools.d.ts +4 -0
- package/dist/tool-surface/register-all-tools.d.ts.map +1 -0
- package/dist/tool-surface/register-all-tools.js +33 -0
- package/dist/tool-surface/register-all-tools.js.map +1 -0
- package/dist/tool-surface/skill-installer-common.d.ts +48 -0
- package/dist/tool-surface/skill-installer-common.d.ts.map +1 -0
- package/dist/tool-surface/skill-installer-common.js +195 -0
- package/dist/tool-surface/skill-installer-common.js.map +1 -0
- package/dist/tool-surface/skill-installer.d.ts +10 -0
- package/dist/tool-surface/skill-installer.d.ts.map +1 -0
- package/dist/tool-surface/skill-installer.js +20 -0
- package/dist/tool-surface/skill-installer.js.map +1 -0
- package/dist/tool-surface/skill-installers/claude-code.d.ts +43 -0
- package/dist/tool-surface/skill-installers/claude-code.d.ts.map +1 -0
- package/dist/tool-surface/skill-installers/claude-code.js +65 -0
- package/dist/tool-surface/skill-installers/claude-code.js.map +1 -0
- package/dist/tool-surface/skill-installers/codex-cli.d.ts +27 -0
- package/dist/tool-surface/skill-installers/codex-cli.d.ts.map +1 -0
- package/dist/tool-surface/skill-installers/codex-cli.js +84 -0
- package/dist/tool-surface/skill-installers/codex-cli.js.map +1 -0
- package/dist/tool-surface/skill-installers/cursor.d.ts +72 -0
- package/dist/tool-surface/skill-installers/cursor.d.ts.map +1 -0
- package/dist/tool-surface/skill-installers/cursor.js +81 -0
- package/dist/tool-surface/skill-installers/cursor.js.map +1 -0
- package/dist/tool-surface/skill-installers/gemini-cli.d.ts +66 -0
- package/dist/tool-surface/skill-installers/gemini-cli.d.ts.map +1 -0
- package/dist/tool-surface/skill-installers/gemini-cli.js +111 -0
- package/dist/tool-surface/skill-installers/gemini-cli.js.map +1 -0
- package/dist/tool-surface/skill-manifest-sync.d.ts +11 -0
- package/dist/tool-surface/skill-manifest-sync.d.ts.map +1 -0
- package/dist/tool-surface/skill-manifest-sync.js +65 -0
- package/dist/tool-surface/skill-manifest-sync.js.map +1 -0
- package/dist/tool-surface/tool-surface-registry.d.ts +34 -0
- package/dist/tool-surface/tool-surface-registry.d.ts.map +1 -0
- package/dist/tool-surface/tool-surface-registry.js +23 -0
- package/dist/tool-surface/tool-surface-registry.js.map +1 -0
- package/dist/tools/audit/schema.d.ts +67 -0
- package/dist/tools/audit/schema.d.ts.map +1 -0
- package/dist/tools/audit/schema.js +19 -0
- package/dist/tools/audit/schema.js.map +1 -0
- package/dist/tools/audit/tool-config.d.ts +17 -0
- package/dist/tools/audit/tool-config.d.ts.map +1 -0
- package/dist/tools/audit/tool-config.js +144 -0
- package/dist/tools/audit/tool-config.js.map +1 -0
- package/dist/tools/debug/schema.d.ts +57 -0
- package/dist/tools/debug/schema.d.ts.map +1 -0
- package/dist/tools/debug/schema.js +16 -0
- package/dist/tools/debug/schema.js.map +1 -0
- package/dist/tools/debug/tool-config.d.ts +7 -0
- package/dist/tools/debug/tool-config.d.ts.map +1 -0
- package/dist/tools/debug/tool-config.js +79 -0
- package/dist/tools/debug/tool-config.js.map +1 -0
- package/dist/tools/delegate/schema.d.ts +70 -0
- package/dist/tools/delegate/schema.d.ts.map +1 -0
- package/dist/tools/delegate/schema.js +18 -0
- package/dist/tools/delegate/schema.js.map +1 -0
- package/dist/tools/delegate/tool-config.d.ts +17 -0
- package/dist/tools/delegate/tool-config.d.ts.map +1 -0
- package/dist/tools/delegate/tool-config.js +56 -0
- package/dist/tools/delegate/tool-config.js.map +1 -0
- package/dist/tools/execute-plan/schema.d.ts +66 -0
- package/dist/tools/execute-plan/schema.d.ts.map +1 -0
- package/dist/tools/execute-plan/schema.js +34 -0
- package/dist/tools/execute-plan/schema.js.map +1 -0
- package/dist/tools/execute-plan/tool-config.d.ts +21 -0
- package/dist/tools/execute-plan/tool-config.d.ts.map +1 -0
- package/dist/tools/execute-plan/tool-config.js +76 -0
- package/dist/tools/execute-plan/tool-config.js.map +1 -0
- package/dist/tools/explore/schema.d.ts +9 -0
- package/dist/tools/explore/schema.d.ts.map +1 -0
- package/dist/tools/explore/schema.js +64 -0
- package/dist/tools/explore/schema.js.map +1 -0
- package/dist/tools/explore/tool-config.d.ts +7 -0
- package/dist/tools/explore/tool-config.d.ts.map +1 -0
- package/dist/tools/explore/tool-config.js +36 -0
- package/dist/tools/explore/tool-config.js.map +1 -0
- package/dist/tools/index.d.ts +11 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +16 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/investigate/schema.d.ts +59 -0
- package/dist/tools/investigate/schema.d.ts.map +1 -0
- package/dist/tools/investigate/schema.js +12 -0
- package/dist/tools/investigate/schema.js.map +1 -0
- package/dist/tools/investigate/tool-config.d.ts +23 -0
- package/dist/tools/investigate/tool-config.d.ts.map +1 -0
- package/dist/tools/investigate/tool-config.js +93 -0
- package/dist/tools/investigate/tool-config.js.map +1 -0
- package/dist/tools/register-context-block/schema.d.ts +8 -0
- package/dist/tools/register-context-block/schema.d.ts.map +1 -0
- package/dist/tools/register-context-block/schema.js +7 -0
- package/dist/tools/register-context-block/schema.js.map +1 -0
- package/dist/tools/register-context-block/tool-config.d.ts +6 -0
- package/dist/tools/register-context-block/tool-config.d.ts.map +1 -0
- package/dist/tools/register-context-block/tool-config.js +38 -0
- package/dist/tools/register-context-block/tool-config.js.map +1 -0
- package/dist/tools/retry/schema.d.ts +54 -0
- package/dist/tools/retry/schema.d.ts.map +1 -0
- package/dist/tools/retry/schema.js +12 -0
- package/dist/tools/retry/schema.js.map +1 -0
- package/dist/tools/retry/tool-config.d.ts +11 -0
- package/dist/tools/retry/tool-config.d.ts.map +1 -0
- package/dist/tools/retry/tool-config.js +60 -0
- package/dist/tools/retry/tool-config.js.map +1 -0
- package/dist/tools/review/schema.d.ts +61 -0
- package/dist/tools/review/schema.d.ts.map +1 -0
- package/dist/tools/review/schema.js +16 -0
- package/dist/tools/review/schema.js.map +1 -0
- package/dist/tools/review/tool-config.d.ts +7 -0
- package/dist/tools/review/tool-config.d.ts.map +1 -0
- package/dist/tools/review/tool-config.js +85 -0
- package/dist/tools/review/tool-config.js.map +1 -0
- package/dist/tools/shared-output.d.ts +56 -0
- package/dist/tools/shared-output.d.ts.map +1 -0
- package/dist/tools/shared-output.js +33 -0
- package/dist/tools/shared-output.js.map +1 -0
- package/dist/tools/verify/schema.d.ts +56 -0
- package/dist/tools/verify/schema.d.ts.map +1 -0
- package/dist/tools/verify/schema.js +16 -0
- package/dist/tools/verify/schema.js.map +1 -0
- package/dist/tools/verify/tool-config.d.ts +14 -0
- package/dist/tools/verify/tool-config.d.ts.map +1 -0
- package/dist/tools/verify/tool-config.js +112 -0
- package/dist/tools/verify/tool-config.js.map +1 -0
- package/dist/transport/http-listener.d.ts +37 -0
- package/dist/transport/http-listener.d.ts.map +1 -0
- package/dist/transport/http-listener.js +50 -0
- package/dist/transport/http-listener.js.map +1 -0
- package/dist/transport/index.d.ts +4 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/index.js +4 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/transport/loopback-enforcer.d.ts +29 -0
- package/dist/transport/loopback-enforcer.d.ts.map +1 -0
- package/dist/transport/loopback-enforcer.js +71 -0
- package/dist/transport/loopback-enforcer.js.map +1 -0
- package/dist/transport/route-dispatcher.d.ts +34 -0
- package/dist/transport/route-dispatcher.d.ts.map +1 -0
- package/dist/transport/route-dispatcher.js +62 -0
- package/dist/transport/route-dispatcher.js.map +1 -0
- package/dist/types/config.d.ts +138 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +2 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/enums.d.ts +168 -0
- package/dist/types/enums.d.ts.map +1 -0
- package/dist/types/enums.js +113 -0
- package/dist/types/enums.js.map +1 -0
- package/dist/types/run-result.d.ts +130 -0
- package/dist/types/run-result.d.ts.map +1 -0
- package/dist/types/run-result.js +2 -0
- package/dist/types/run-result.js.map +1 -0
- package/dist/types/stage-stats.d.ts +85 -0
- package/dist/types/stage-stats.d.ts.map +1 -0
- package/dist/types/stage-stats.js +6 -0
- package/dist/types/stage-stats.js.map +1 -0
- package/dist/types/task-spec.d.ts +48 -0
- package/dist/types/task-spec.d.ts.map +1 -0
- package/dist/types/task-spec.js +2 -0
- package/dist/types/task-spec.js.map +1 -0
- package/dist/types.d.ts +5 -405
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +5 -26
- package/dist/types.js.map +1 -1
- package/package.json +221 -204
- package/dist/auth/claude-oauth.d.ts +0 -6
- package/dist/auth/claude-oauth.d.ts.map +0 -1
- package/dist/auth/claude-oauth.js +0 -8
- package/dist/auth/claude-oauth.js.map +0 -1
- package/dist/auth/codex-oauth.d.ts +0 -6
- package/dist/auth/codex-oauth.d.ts.map +0 -1
- package/dist/auth/codex-oauth.js +0 -50
- package/dist/auth/codex-oauth.js.map +0 -1
- package/dist/auto-commit.d.ts +0 -18
- package/dist/auto-commit.d.ts.map +0 -1
- package/dist/auto-commit.js.map +0 -1
- package/dist/batch-cache.d.ts +0 -27
- package/dist/batch-cache.d.ts.map +0 -1
- package/dist/batch-cache.js +0 -71
- package/dist/batch-cache.js.map +0 -1
- package/dist/batch-registry.d.ts +0 -85
- package/dist/batch-registry.d.ts.map +0 -1
- package/dist/batch-registry.js +0 -170
- package/dist/batch-registry.js.map +0 -1
- package/dist/config/read-only-review-flag.d.ts +0 -8
- package/dist/config/read-only-review-flag.d.ts.map +0 -1
- package/dist/config/read-only-review-flag.js +0 -14
- package/dist/config/read-only-review-flag.js.map +0 -1
- package/dist/context/context-block-store.d.ts +0 -85
- package/dist/context/context-block-store.d.ts.map +0 -1
- package/dist/context/context-block-store.js +0 -114
- package/dist/context/context-block-store.js.map +0 -1
- package/dist/context/expand-context-blocks.d.ts +0 -20
- package/dist/context/expand-context-blocks.d.ts.map +0 -1
- package/dist/context/expand-context-blocks.js +0 -46
- package/dist/context/expand-context-blocks.js.map +0 -1
- package/dist/cost/compute.d.ts +0 -33
- package/dist/cost/compute.d.ts.map +0 -1
- package/dist/cost/compute.js +0 -67
- package/dist/cost/compute.js.map +0 -1
- package/dist/cost/cost-meter.d.ts +0 -13
- package/dist/cost/cost-meter.d.ts.map +0 -1
- package/dist/cost/cost-meter.js +0 -20
- package/dist/cost/cost-meter.js.map +0 -1
- package/dist/cost/rollup.d.ts +0 -18
- package/dist/cost/rollup.d.ts.map +0 -1
- package/dist/cost/rollup.js +0 -43
- package/dist/cost/rollup.js.map +0 -1
- package/dist/delegate-with-escalation.d.ts +0 -28
- package/dist/delegate-with-escalation.d.ts.map +0 -1
- package/dist/delegate-with-escalation.js +0 -205
- package/dist/delegate-with-escalation.js.map +0 -1
- package/dist/diagnostics/http-server-log.d.ts +0 -63
- package/dist/diagnostics/http-server-log.d.ts.map +0 -1
- package/dist/diagnostics/http-server-log.js.map +0 -1
- package/dist/diagnostics/jsonl-writer.d.ts.map +0 -1
- package/dist/diagnostics/jsonl-writer.js.map +0 -1
- package/dist/diagnostics/request-spill.d.ts.map +0 -1
- package/dist/diagnostics/request-spill.js.map +0 -1
- package/dist/diagnostics/types.d.ts +0 -65
- package/dist/diagnostics/types.d.ts.map +0 -1
- package/dist/diagnostics/types.js.map +0 -1
- package/dist/diagnostics/verbose-line.d.ts.map +0 -1
- package/dist/diagnostics/verbose-line.js +0 -99
- package/dist/diagnostics/verbose-line.js.map +0 -1
- package/dist/effort-inference.d.ts +0 -7
- package/dist/effort-inference.d.ts.map +0 -1
- package/dist/effort-inference.js +0 -22
- package/dist/effort-inference.js.map +0 -1
- package/dist/executors/_shared/findings-schema.d.ts +0 -103
- package/dist/executors/_shared/findings-schema.d.ts.map +0 -1
- package/dist/executors/_shared/findings-schema.js +0 -73
- package/dist/executors/_shared/findings-schema.js.map +0 -1
- package/dist/executors/_shared/review-verdict-mapping.d.ts +0 -16
- package/dist/executors/_shared/review-verdict-mapping.d.ts.map +0 -1
- package/dist/executors/_shared/review-verdict-mapping.js +0 -24
- package/dist/executors/_shared/review-verdict-mapping.js.map +0 -1
- package/dist/executors/audit.d.ts +0 -7
- package/dist/executors/audit.d.ts.map +0 -1
- package/dist/executors/audit.js +0 -181
- package/dist/executors/audit.js.map +0 -1
- package/dist/executors/debug.d.ts +0 -7
- package/dist/executors/debug.d.ts.map +0 -1
- package/dist/executors/debug.js +0 -88
- package/dist/executors/debug.js.map +0 -1
- package/dist/executors/delegate.d.ts +0 -40
- package/dist/executors/delegate.d.ts.map +0 -1
- package/dist/executors/delegate.js +0 -151
- package/dist/executors/delegate.js.map +0 -1
- package/dist/executors/execute-plan.d.ts +0 -11
- package/dist/executors/execute-plan.d.ts.map +0 -1
- package/dist/executors/execute-plan.js +0 -160
- package/dist/executors/execute-plan.js.map +0 -1
- package/dist/executors/execution-context.d.ts +0 -3
- package/dist/executors/execution-context.d.ts.map +0 -1
- package/dist/executors/execution-context.js +0 -25
- package/dist/executors/execution-context.js.map +0 -1
- package/dist/executors/explore.d.ts +0 -13
- package/dist/executors/explore.d.ts.map +0 -1
- package/dist/executors/explore.js +0 -352
- package/dist/executors/explore.js.map +0 -1
- package/dist/executors/index.d.ts +0 -10
- package/dist/executors/index.d.ts.map +0 -1
- package/dist/executors/index.js +0 -11
- package/dist/executors/index.js.map +0 -1
- package/dist/executors/investigate.d.ts +0 -11
- package/dist/executors/investigate.d.ts.map +0 -1
- package/dist/executors/investigate.js +0 -131
- package/dist/executors/investigate.js.map +0 -1
- package/dist/executors/retry.d.ts +0 -20
- package/dist/executors/retry.d.ts.map +0 -1
- package/dist/executors/retry.js +0 -99
- package/dist/executors/retry.js.map +0 -1
- package/dist/executors/review.d.ts +0 -7
- package/dist/executors/review.d.ts.map +0 -1
- package/dist/executors/review.js +0 -152
- package/dist/executors/review.js.map +0 -1
- package/dist/executors/shared-compute.d.ts +0 -5
- package/dist/executors/shared-compute.d.ts.map +0 -1
- package/dist/executors/shared-compute.js +0 -19
- package/dist/executors/shared-compute.js.map +0 -1
- package/dist/executors/types.d.ts +0 -129
- package/dist/executors/types.d.ts.map +0 -1
- package/dist/executors/types.js.map +0 -1
- package/dist/executors/verify.d.ts +0 -7
- package/dist/executors/verify.d.ts.map +0 -1
- package/dist/executors/verify.js +0 -163
- package/dist/executors/verify.js.map +0 -1
- package/dist/file-artifact-check.d.ts.map +0 -1
- package/dist/file-artifact-check.js.map +0 -1
- package/dist/heartbeat.d.ts +0 -139
- package/dist/heartbeat.d.ts.map +0 -1
- package/dist/heartbeat.js +0 -401
- package/dist/heartbeat.js.map +0 -1
- package/dist/intake/clarification-store.d.ts +0 -23
- package/dist/intake/clarification-store.d.ts.map +0 -1
- package/dist/intake/clarification-store.js +0 -106
- package/dist/intake/clarification-store.js.map +0 -1
- package/dist/intake/compilers/audit.d.ts +0 -8
- package/dist/intake/compilers/audit.d.ts.map +0 -1
- package/dist/intake/compilers/audit.js +0 -50
- package/dist/intake/compilers/audit.js.map +0 -1
- package/dist/intake/compilers/debug.d.ts +0 -9
- package/dist/intake/compilers/debug.d.ts.map +0 -1
- package/dist/intake/compilers/debug.js +0 -32
- package/dist/intake/compilers/debug.js.map +0 -1
- package/dist/intake/compilers/delegate.d.ts +0 -16
- package/dist/intake/compilers/delegate.d.ts.map +0 -1
- package/dist/intake/compilers/delegate.js +0 -32
- package/dist/intake/compilers/delegate.js.map +0 -1
- package/dist/intake/compilers/execute-plan.d.ts +0 -14
- package/dist/intake/compilers/execute-plan.d.ts.map +0 -1
- package/dist/intake/compilers/execute-plan.js +0 -49
- package/dist/intake/compilers/execute-plan.js.map +0 -1
- package/dist/intake/compilers/explore.d.ts +0 -29
- package/dist/intake/compilers/explore.d.ts.map +0 -1
- package/dist/intake/compilers/explore.js +0 -108
- package/dist/intake/compilers/explore.js.map +0 -1
- package/dist/intake/compilers/investigate.d.ts +0 -12
- package/dist/intake/compilers/investigate.d.ts.map +0 -1
- package/dist/intake/compilers/investigate.js +0 -34
- package/dist/intake/compilers/investigate.js.map +0 -1
- package/dist/intake/compilers/review.d.ts +0 -9
- package/dist/intake/compilers/review.d.ts.map +0 -1
- package/dist/intake/compilers/review.js +0 -51
- package/dist/intake/compilers/review.js.map +0 -1
- package/dist/intake/compilers/verify.d.ts +0 -8
- package/dist/intake/compilers/verify.d.ts.map +0 -1
- package/dist/intake/compilers/verify.js +0 -52
- package/dist/intake/compilers/verify.js.map +0 -1
- package/dist/intake/confirm.d.ts +0 -7
- package/dist/intake/confirm.d.ts.map +0 -1
- package/dist/intake/confirm.js +0 -109
- package/dist/intake/confirm.js.map +0 -1
- package/dist/intake/feature-flag.d.ts +0 -6
- package/dist/intake/feature-flag.d.ts.map +0 -1
- package/dist/intake/feature-flag.js +0 -13
- package/dist/intake/feature-flag.js.map +0 -1
- package/dist/intake/force-clarification.d.ts +0 -5
- package/dist/intake/force-clarification.d.ts.map +0 -1
- package/dist/intake/force-clarification.js +0 -44
- package/dist/intake/force-clarification.js.map +0 -1
- package/dist/intake/infer.d.ts +0 -3
- package/dist/intake/infer.d.ts.map +0 -1
- package/dist/intake/infer.js +0 -42
- package/dist/intake/infer.js.map +0 -1
- package/dist/observability/buckets.d.ts +0 -3
- package/dist/observability/buckets.d.ts.map +0 -1
- package/dist/observability/buckets.js +0 -21
- package/dist/observability/buckets.js.map +0 -1
- package/dist/observability/bus.d.ts +0 -11
- package/dist/observability/bus.d.ts.map +0 -1
- package/dist/observability/bus.js +0 -37
- package/dist/observability/bus.js.map +0 -1
- package/dist/observability/events.d.ts +0 -1276
- package/dist/observability/events.d.ts.map +0 -1
- package/dist/observability/events.js +0 -476
- package/dist/observability/events.js.map +0 -1
- package/dist/observability/local-log-sink.d.ts +0 -10
- package/dist/observability/local-log-sink.d.ts.map +0 -1
- package/dist/observability/local-log-sink.js.map +0 -1
- package/dist/observability/telemetry-sink.d.ts +0 -12
- package/dist/observability/telemetry-sink.d.ts.map +0 -1
- package/dist/observability/telemetry-sink.js +0 -24
- package/dist/observability/telemetry-sink.js.map +0 -1
- package/dist/project-context.d.ts +0 -19
- package/dist/project-context.d.ts.map +0 -1
- package/dist/project-context.js +0 -18
- package/dist/project-context.js.map +0 -1
- package/dist/provider.d.ts +0 -5
- package/dist/provider.d.ts.map +0 -1
- package/dist/provider.js +0 -127
- package/dist/provider.js.map +0 -1
- package/dist/readiness/readiness.d.ts +0 -14
- package/dist/readiness/readiness.d.ts.map +0 -1
- package/dist/readiness/readiness.js +0 -162
- package/dist/readiness/readiness.js.map +0 -1
- package/dist/reporting/compose-investigate-headline.d.ts +0 -11
- package/dist/reporting/compose-investigate-headline.d.ts.map +0 -1
- package/dist/reporting/compose-investigate-headline.js +0 -29
- package/dist/reporting/compose-investigate-headline.js.map +0 -1
- package/dist/reporting/parse-investigation-report.d.ts +0 -39
- package/dist/reporting/parse-investigation-report.d.ts.map +0 -1
- package/dist/reporting/parse-investigation-report.js +0 -150
- package/dist/reporting/parse-investigation-report.js.map +0 -1
- package/dist/research/allowlist.d.ts +0 -25
- package/dist/research/allowlist.d.ts.map +0 -1
- package/dist/research/allowlist.js +0 -102
- package/dist/research/allowlist.js.map +0 -1
- package/dist/review/aggregate-result.d.ts +0 -5
- package/dist/review/aggregate-result.d.ts.map +0 -1
- package/dist/review/aggregate-result.js +0 -35
- package/dist/review/aggregate-result.js.map +0 -1
- package/dist/review/diff-review.d.ts +0 -46
- package/dist/review/diff-review.d.ts.map +0 -1
- package/dist/review/diff-review.js +0 -65
- package/dist/review/diff-review.js.map +0 -1
- package/dist/review/evidence.d.ts +0 -15
- package/dist/review/evidence.d.ts.map +0 -1
- package/dist/review/evidence.js +0 -26
- package/dist/review/evidence.js.map +0 -1
- package/dist/review/fallback-extraction.d.ts +0 -17
- package/dist/review/fallback-extraction.d.ts.map +0 -1
- package/dist/review/fallback-extraction.js +0 -189
- package/dist/review/fallback-extraction.js.map +0 -1
- package/dist/review/parse-reviewer-findings.d.ts +0 -26
- package/dist/review/parse-reviewer-findings.d.ts.map +0 -1
- package/dist/review/parse-reviewer-findings.js +0 -73
- package/dist/review/parse-reviewer-findings.js.map +0 -1
- package/dist/review/quality-only-prompts.d.ts +0 -33
- package/dist/review/quality-only-prompts.d.ts.map +0 -1
- package/dist/review/quality-only-prompts.js +0 -106
- package/dist/review/quality-only-prompts.js.map +0 -1
- package/dist/review/quality-reviewer.d.ts +0 -67
- package/dist/review/quality-reviewer.d.ts.map +0 -1
- package/dist/review/quality-reviewer.js +0 -200
- package/dist/review/quality-reviewer.js.map +0 -1
- package/dist/review/reviewer-prompt.d.ts +0 -14
- package/dist/review/reviewer-prompt.d.ts.map +0 -1
- package/dist/review/reviewer-prompt.js +0 -54
- package/dist/review/reviewer-prompt.js.map +0 -1
- package/dist/review/spec-reviewer.d.ts +0 -26
- package/dist/review/spec-reviewer.d.ts.map +0 -1
- package/dist/review/spec-reviewer.js +0 -85
- package/dist/review/spec-reviewer.js.map +0 -1
- package/dist/routing/canonical-model-identity.d.ts.map +0 -1
- package/dist/routing/canonical-model-identity.js.map +0 -1
- package/dist/routing/canonical-model.d.ts +0 -7
- package/dist/routing/canonical-model.d.ts.map +0 -1
- package/dist/routing/canonical-model.js +0 -11
- package/dist/routing/canonical-model.js.map +0 -1
- package/dist/routing/model-profiles.d.ts +0 -126
- package/dist/routing/model-profiles.d.ts.map +0 -1
- package/dist/routing/model-profiles.js +0 -393
- package/dist/routing/model-profiles.js.map +0 -1
- package/dist/routing/resolve-agent.d.ts +0 -8
- package/dist/routing/resolve-agent.d.ts.map +0 -1
- package/dist/routing/resolve-agent.js +0 -45
- package/dist/routing/resolve-agent.js.map +0 -1
- package/dist/routing/types.d.ts.map +0 -1
- package/dist/routing/types.js +0 -2
- package/dist/routing/types.js.map +0 -1
- package/dist/run-tasks/commit-stage.d.ts +0 -16
- package/dist/run-tasks/commit-stage.d.ts.map +0 -1
- package/dist/run-tasks/commit-stage.js +0 -52
- package/dist/run-tasks/commit-stage.js.map +0 -1
- package/dist/run-tasks/derive-terminal-status.d.ts +0 -4
- package/dist/run-tasks/derive-terminal-status.d.ts.map +0 -1
- package/dist/run-tasks/derive-terminal-status.js +0 -25
- package/dist/run-tasks/derive-terminal-status.js.map +0 -1
- package/dist/run-tasks/execute-task.d.ts +0 -20
- package/dist/run-tasks/execute-task.d.ts.map +0 -1
- package/dist/run-tasks/execute-task.js +0 -30
- package/dist/run-tasks/execute-task.js.map +0 -1
- package/dist/run-tasks/fallback-report.d.ts.map +0 -1
- package/dist/run-tasks/fallback-report.js.map +0 -1
- package/dist/run-tasks/index.d.ts +0 -59
- package/dist/run-tasks/index.d.ts.map +0 -1
- package/dist/run-tasks/index.js +0 -119
- package/dist/run-tasks/index.js.map +0 -1
- package/dist/run-tasks/metadata-repair.d.ts.map +0 -1
- package/dist/run-tasks/metadata-repair.js +0 -29
- package/dist/run-tasks/metadata-repair.js.map +0 -1
- package/dist/run-tasks/plan-extraction.d.ts.map +0 -1
- package/dist/run-tasks/plan-extraction.js.map +0 -1
- package/dist/run-tasks/reviewed-lifecycle.d.ts +0 -113
- package/dist/run-tasks/reviewed-lifecycle.d.ts.map +0 -1
- package/dist/run-tasks/reviewed-lifecycle.js +0 -1899
- package/dist/run-tasks/reviewed-lifecycle.js.map +0 -1
- package/dist/run-tasks/stage-idle-tracker.d.ts.map +0 -1
- package/dist/run-tasks/stage-idle-tracker.js.map +0 -1
- package/dist/run-tasks/task-completion-summary.d.ts.map +0 -1
- package/dist/run-tasks/task-completion-summary.js +0 -70
- package/dist/run-tasks/task-completion-summary.js.map +0 -1
- package/dist/run-tasks/verify-stage.d.ts +0 -25
- package/dist/run-tasks/verify-stage.d.ts.map +0 -1
- package/dist/run-tasks/verify-stage.js +0 -168
- package/dist/run-tasks/verify-stage.js.map +0 -1
- package/dist/run-tasks/worker-status.d.ts +0 -9
- package/dist/run-tasks/worker-status.d.ts.map +0 -1
- package/dist/run-tasks/worker-status.js +0 -19
- package/dist/run-tasks/worker-status.js.map +0 -1
- package/dist/runners/base/research-tools.d.ts.map +0 -1
- package/dist/runners/base/research-tools.js.map +0 -1
- package/dist/runners/base/result-builders.d.ts +0 -94
- package/dist/runners/base/result-builders.d.ts.map +0 -1
- package/dist/runners/base/result-builders.js +0 -134
- package/dist/runners/base/result-builders.js.map +0 -1
- package/dist/runners/base/time-check.d.ts.map +0 -1
- package/dist/runners/base/time-check.js.map +0 -1
- package/dist/runners/base/types.d.ts +0 -53
- package/dist/runners/base/types.d.ts.map +0 -1
- package/dist/runners/base/types.js +0 -2
- package/dist/runners/base/types.js.map +0 -1
- package/dist/runners/base/usage-accumulator.d.ts +0 -10
- package/dist/runners/base/usage-accumulator.d.ts.map +0 -1
- package/dist/runners/base/usage-accumulator.js +0 -22
- package/dist/runners/base/usage-accumulator.js.map +0 -1
- package/dist/runners/claude-runner.d.ts +0 -17
- package/dist/runners/claude-runner.d.ts.map +0 -1
- package/dist/runners/claude-runner.js +0 -962
- package/dist/runners/claude-runner.js.map +0 -1
- package/dist/runners/codex-runner.d.ts +0 -32
- package/dist/runners/codex-runner.d.ts.map +0 -1
- package/dist/runners/codex-runner.js +0 -992
- package/dist/runners/codex-runner.js.map +0 -1
- package/dist/runners/error-classification.d.ts +0 -49
- package/dist/runners/error-classification.d.ts.map +0 -1
- package/dist/runners/error-classification.js +0 -140
- package/dist/runners/error-classification.js.map +0 -1
- package/dist/runners/injection-type.d.ts.map +0 -1
- package/dist/runners/injection-type.js.map +0 -1
- package/dist/runners/openai-runner.d.ts +0 -74
- package/dist/runners/openai-runner.d.ts.map +0 -1
- package/dist/runners/openai-runner.js +0 -934
- package/dist/runners/openai-runner.js.map +0 -1
- package/dist/runners/openai-usage-interceptor.d.ts.map +0 -1
- package/dist/runners/openai-usage-interceptor.js +0 -121
- package/dist/runners/openai-usage-interceptor.js.map +0 -1
- package/dist/runners/prevention.d.ts.map +0 -1
- package/dist/runners/prevention.js +0 -108
- package/dist/runners/prevention.js.map +0 -1
- package/dist/runners/supervision.d.ts +0 -129
- package/dist/runners/supervision.d.ts.map +0 -1
- package/dist/runners/supervision.js +0 -310
- package/dist/runners/supervision.js.map +0 -1
- package/dist/runners/types.d.ts +0 -174
- package/dist/runners/types.d.ts.map +0 -1
- package/dist/runners/types.js +0 -2
- package/dist/runners/types.js.map +0 -1
- package/dist/telemetry/bucketing.d.ts +0 -13
- package/dist/telemetry/bucketing.d.ts.map +0 -1
- package/dist/telemetry/bucketing.js +0 -61
- package/dist/telemetry/bucketing.js.map +0 -1
- package/dist/telemetry/clamp.d.ts.map +0 -1
- package/dist/telemetry/clamp.js.map +0 -1
- package/dist/telemetry/concern-classifier.d.ts +0 -9
- package/dist/telemetry/concern-classifier.d.ts.map +0 -1
- package/dist/telemetry/concern-classifier.js.map +0 -1
- package/dist/telemetry/consent-rules.d.ts.map +0 -1
- package/dist/telemetry/consent-rules.js.map +0 -1
- package/dist/telemetry/event-builder.d.ts +0 -15
- package/dist/telemetry/event-builder.d.ts.map +0 -1
- package/dist/telemetry/event-builder.js +0 -327
- package/dist/telemetry/event-builder.js.map +0 -1
- package/dist/telemetry/field-coverage.d.ts +0 -17
- package/dist/telemetry/field-coverage.d.ts.map +0 -1
- package/dist/telemetry/field-coverage.js +0 -110
- package/dist/telemetry/field-coverage.js.map +0 -1
- package/dist/telemetry/normalize.d.ts +0 -18
- package/dist/telemetry/normalize.d.ts.map +0 -1
- package/dist/telemetry/normalize.js +0 -18
- package/dist/telemetry/normalize.js.map +0 -1
- package/dist/telemetry/types.d.ts +0 -1517
- package/dist/telemetry/types.d.ts.map +0 -1
- package/dist/telemetry/types.js +0 -320
- package/dist/telemetry/types.js.map +0 -1
- package/dist/tool-schemas/audit.d.ts +0 -71
- package/dist/tool-schemas/audit.d.ts.map +0 -1
- package/dist/tool-schemas/audit.js +0 -19
- package/dist/tool-schemas/audit.js.map +0 -1
- package/dist/tool-schemas/debug.d.ts +0 -61
- package/dist/tool-schemas/debug.d.ts.map +0 -1
- package/dist/tool-schemas/debug.js +0 -16
- package/dist/tool-schemas/debug.js.map +0 -1
- package/dist/tool-schemas/delegate.d.ts +0 -71
- package/dist/tool-schemas/delegate.d.ts.map +0 -1
- package/dist/tool-schemas/delegate.js +0 -21
- package/dist/tool-schemas/delegate.js.map +0 -1
- package/dist/tool-schemas/execute-plan.d.ts +0 -70
- package/dist/tool-schemas/execute-plan.d.ts.map +0 -1
- package/dist/tool-schemas/execute-plan.js +0 -34
- package/dist/tool-schemas/execute-plan.js.map +0 -1
- package/dist/tool-schemas/explore.d.ts +0 -9
- package/dist/tool-schemas/explore.d.ts.map +0 -1
- package/dist/tool-schemas/explore.js +0 -64
- package/dist/tool-schemas/explore.js.map +0 -1
- package/dist/tool-schemas/index.d.ts +0 -8
- package/dist/tool-schemas/index.d.ts.map +0 -1
- package/dist/tool-schemas/index.js +0 -9
- package/dist/tool-schemas/index.js.map +0 -1
- package/dist/tool-schemas/investigate.d.ts +0 -63
- package/dist/tool-schemas/investigate.d.ts.map +0 -1
- package/dist/tool-schemas/investigate.js +0 -12
- package/dist/tool-schemas/investigate.js.map +0 -1
- package/dist/tool-schemas/retry.d.ts +0 -58
- package/dist/tool-schemas/retry.d.ts.map +0 -1
- package/dist/tool-schemas/retry.js +0 -12
- package/dist/tool-schemas/retry.js.map +0 -1
- package/dist/tool-schemas/review.d.ts +0 -65
- package/dist/tool-schemas/review.d.ts.map +0 -1
- package/dist/tool-schemas/review.js +0 -16
- package/dist/tool-schemas/review.js.map +0 -1
- package/dist/tool-schemas/shared-output.d.ts +0 -60
- package/dist/tool-schemas/shared-output.d.ts.map +0 -1
- package/dist/tool-schemas/shared-output.js +0 -31
- package/dist/tool-schemas/shared-output.js.map +0 -1
- package/dist/tool-schemas/verify.d.ts +0 -60
- package/dist/tool-schemas/verify.d.ts.map +0 -1
- package/dist/tool-schemas/verify.js +0 -16
- package/dist/tool-schemas/verify.js.map +0 -1
- package/dist/tools/call-cache.d.ts.map +0 -1
- package/dist/tools/call-cache.js.map +0 -1
- package/dist/tools/claude-adapter.d.ts +0 -4
- package/dist/tools/claude-adapter.d.ts.map +0 -1
- package/dist/tools/claude-adapter.js +0 -63
- package/dist/tools/claude-adapter.js.map +0 -1
- package/dist/tools/definitions.d.ts +0 -26
- package/dist/tools/definitions.d.ts.map +0 -1
- package/dist/tools/definitions.js +0 -221
- package/dist/tools/definitions.js.map +0 -1
- package/dist/tools/openai-adapter.d.ts +0 -13
- package/dist/tools/openai-adapter.d.ts.map +0 -1
- package/dist/tools/openai-adapter.js +0 -100
- package/dist/tools/openai-adapter.js.map +0 -1
- package/dist/tools/scratchpad.d.ts +0 -28
- package/dist/tools/scratchpad.d.ts.map +0 -1
- package/dist/tools/scratchpad.js +0 -49
- package/dist/tools/scratchpad.js.map +0 -1
- package/dist/tools/tracker.d.ts +0 -47
- package/dist/tools/tracker.d.ts.map +0 -1
- package/dist/tools/tracker.js +0 -71
- package/dist/tools/tracker.js.map +0 -1
- /package/dist/{file-artifact-check.d.ts → bounded-execution/file-artifact-check.d.ts} +0 -0
- /package/dist/{file-artifact-check.js → bounded-execution/file-artifact-check.js} +0 -0
- /package/dist/{routing → config}/canonical-model-identity.d.ts +0 -0
- /package/dist/{routing → config}/canonical-model-identity.js +0 -0
- /package/dist/{routing → escalation}/types.d.ts +0 -0
- /package/dist/{diagnostics → escalation}/types.js +0 -0
- /package/dist/{telemetry → events}/clamp.d.ts +0 -0
- /package/dist/{telemetry → events}/clamp.js +0 -0
- /package/dist/{telemetry → events}/concern-classifier.js +0 -0
- /package/dist/{telemetry → events}/consent-rules.d.ts +0 -0
- /package/dist/{telemetry → events}/consent-rules.js +0 -0
- /package/dist/{diagnostics → events}/http-server-log.js +0 -0
- /package/dist/{diagnostics → events}/jsonl-writer.d.ts +0 -0
- /package/dist/{diagnostics → events}/jsonl-writer.js +0 -0
- /package/dist/{observability → events}/local-log-sink.js +0 -0
- /package/dist/{diagnostics → events}/request-spill.d.ts +0 -0
- /package/dist/{diagnostics → events}/request-spill.js +0 -0
- /package/dist/{diagnostics → events}/verbose-line.d.ts +0 -0
- /package/dist/{auto-commit.js → lifecycle/auto-commit.js} +0 -0
- /package/dist/{run-tasks → lifecycle}/fallback-report.d.ts +0 -0
- /package/dist/{run-tasks → lifecycle}/fallback-report.js +0 -0
- /package/dist/{run-tasks → lifecycle}/metadata-repair.d.ts +0 -0
- /package/dist/{run-tasks → lifecycle}/plan-extraction.d.ts +0 -0
- /package/dist/{run-tasks → lifecycle}/plan-extraction.js +0 -0
- /package/dist/{run-tasks → lifecycle}/stage-idle-tracker.d.ts +0 -0
- /package/dist/{run-tasks → lifecycle}/stage-idle-tracker.js +0 -0
- /package/dist/{run-tasks → lifecycle}/task-completion-summary.d.ts +0 -0
- /package/dist/{runners → providers}/base/research-tools.d.ts +0 -0
- /package/dist/{runners → providers}/base/research-tools.js +0 -0
- /package/dist/{runners → providers}/base/time-check.d.ts +0 -0
- /package/dist/{runners → providers}/base/time-check.js +0 -0
- /package/dist/{executors → providers/base}/types.js +0 -0
- /package/dist/{tools → providers}/call-cache.d.ts +0 -0
- /package/dist/{tools → providers}/call-cache.js +0 -0
- /package/dist/{runners → providers}/injection-type.d.ts +0 -0
- /package/dist/{runners → providers}/injection-type.js +0 -0
- /package/dist/{runners → providers}/openai-usage-interceptor.d.ts +0 -0
- /package/dist/{runners → providers}/prevention.d.ts +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// Skill discovery — locates packaged SKILL.md files on disk and reads them.
|
|
2
|
+
// Extracted from cli/install-skill.ts as part of Ch 7 Task 39.
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import os from 'node:os';
|
|
5
|
+
import path from 'node:path';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
7
|
+
export const SUPPORTED_SKILLS = [
|
|
8
|
+
'multi-model-agent',
|
|
9
|
+
'mma-delegate',
|
|
10
|
+
'mma-audit',
|
|
11
|
+
'mma-review',
|
|
12
|
+
'mma-verify',
|
|
13
|
+
'mma-debug',
|
|
14
|
+
'mma-execute-plan',
|
|
15
|
+
'mma-retry',
|
|
16
|
+
'mma-context-blocks',
|
|
17
|
+
'mma-investigate',
|
|
18
|
+
'mma-explore',
|
|
19
|
+
];
|
|
20
|
+
/** Thrown when a skill's SKILL.md cannot be read from the bundled skills directory. */
|
|
21
|
+
export class SkillNotFoundError extends Error {
|
|
22
|
+
code = 'skill_not_found';
|
|
23
|
+
constructor(skillName, checkedPath) {
|
|
24
|
+
super(`Skill '${skillName}' not found. ` +
|
|
25
|
+
`Checked: ${checkedPath}. ` +
|
|
26
|
+
`Available skills: ${SUPPORTED_SKILLS.join(', ')}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
// Discover.ts lives in `packages/core/src/tool-surface/` (or its dist mirror).
|
|
30
|
+
// Skills are bundled by the server package at `packages/server/src/skills/`
|
|
31
|
+
// (and copied to `packages/server/dist/skills/` at build time). Probe both
|
|
32
|
+
// candidates so dev (running .ts) and prod (running .js) resolve to a real
|
|
33
|
+
// skills directory without environment-specific configuration.
|
|
34
|
+
function locateSkillsRoot() {
|
|
35
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
36
|
+
const candidates = [
|
|
37
|
+
path.resolve(here, '..', '..', '..', 'server', 'src', 'skills'),
|
|
38
|
+
path.resolve(here, '..', '..', '..', 'server', 'dist', 'skills'),
|
|
39
|
+
// Fallback to old location semantics for any caller that doesn't go
|
|
40
|
+
// through the server package.
|
|
41
|
+
path.resolve(here, '..', 'skills'),
|
|
42
|
+
];
|
|
43
|
+
for (const c of candidates) {
|
|
44
|
+
if (fs.existsSync(c))
|
|
45
|
+
return c;
|
|
46
|
+
}
|
|
47
|
+
return candidates[0];
|
|
48
|
+
}
|
|
49
|
+
const DEFAULT_SKILLS_ROOT = locateSkillsRoot();
|
|
50
|
+
/**
|
|
51
|
+
* Return the absolute path to the skills root directory. Production: the
|
|
52
|
+
* bundled `packages/server/src/skills/` (or its dist mirror). Tests pass
|
|
53
|
+
* a fixture path explicitly.
|
|
54
|
+
*/
|
|
55
|
+
export function getSkillsRoot(skillsRoot) {
|
|
56
|
+
return skillsRoot ?? DEFAULT_SKILLS_ROOT;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Read the content of a skill's SKILL.md file. Returns null if the file
|
|
60
|
+
* does not exist; propagates other I/O errors so callers can distinguish
|
|
61
|
+
* "skill not found" from "can't access skill".
|
|
62
|
+
*/
|
|
63
|
+
export function readSkillContent(skillName, skillsRoot) {
|
|
64
|
+
const skillFile = path.join(getSkillsRoot(skillsRoot), skillName, 'SKILL.md');
|
|
65
|
+
try {
|
|
66
|
+
return fs.readFileSync(skillFile, 'utf-8');
|
|
67
|
+
}
|
|
68
|
+
catch (err) {
|
|
69
|
+
if (err.code === 'ENOENT')
|
|
70
|
+
return null;
|
|
71
|
+
throw err;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Return the per-client install directories where skills are written as
|
|
76
|
+
* subdirectories. Only includes clients that use the per-skill directory
|
|
77
|
+
* model (claude-code and codex). Gemini and Cursor bundle skills into a
|
|
78
|
+
* single file/extension and are not included.
|
|
79
|
+
*/
|
|
80
|
+
export function discoverPerClientInstallDirs(homeDir) {
|
|
81
|
+
const h = homeDir ?? os.homedir();
|
|
82
|
+
return {
|
|
83
|
+
'claude-code': path.join(h, '.claude', 'skills'),
|
|
84
|
+
'codex': path.join(h, '.codex', 'skills'),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=discover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discover.js","sourceRoot":"","sources":["../../src/tool-surface/discover.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,+DAA+D;AAC/D,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,m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AACH,MAAM,UAAU,aAAa,CAAC,UAAmB;IAC/C,OAAO,UAAU,IAAI,mBAAmB,CAAC;AAC3C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAiB,EAAE,UAAmB;IACrE,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9E,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAK,GAA6B,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAClE,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,4BAA4B,CAAC,OAAgB;IAC3D,MAAM,CAAC,GAAG,OAAO,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IAClC,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC;QAChD,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC;KAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline `@include _shared/<path>` directives in `content`.
|
|
3
|
+
*
|
|
4
|
+
* Each line matching `@include _shared/<path>` (space after `@include`) is
|
|
5
|
+
* replaced with the full content of `<skillsRoot>/_shared/<path>`.
|
|
6
|
+
*
|
|
7
|
+
* Security constraints:
|
|
8
|
+
* - Only paths beginning with `_shared/` are accepted.
|
|
9
|
+
* - The resolved path must stay within `<skillsRoot>/_shared/`.
|
|
10
|
+
* Path traversal attempts are rejected with a warning and the directive
|
|
11
|
+
* line is dropped.
|
|
12
|
+
*
|
|
13
|
+
* If a shared file is missing (ENOENT):
|
|
14
|
+
* - A warning is written to stderr.
|
|
15
|
+
* - The include line is removed from the output (not preserved).
|
|
16
|
+
* - Processing continues for remaining directives.
|
|
17
|
+
*
|
|
18
|
+
* Other I/O errors (permission denied, EISDIR, etc.) are re-thrown so the
|
|
19
|
+
* caller can distinguish them from a simple missing-file case.
|
|
20
|
+
*
|
|
21
|
+
* @param skillContext Used in warning messages to identify the skill context.
|
|
22
|
+
* @param content Raw skill content (may contain @include directives).
|
|
23
|
+
* @param skillsRoot Root directory containing `_shared/` sub-directory.
|
|
24
|
+
* @returns The content with directives inlined.
|
|
25
|
+
*/
|
|
26
|
+
export declare function inlineIncludes(skillContext: string, content: string, skillsRoot: string): string;
|
|
27
|
+
//# sourceMappingURL=include-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-utils.d.ts","sourceRoot":"","sources":["../../src/tool-surface/include-utils.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,cAAc,CAC5B,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,GACjB,MAAM,CA6DR"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared include-inlining utilities for skill writers.
|
|
3
|
+
*
|
|
4
|
+
* Provides a common implementation for `@include _shared/<path>` directive
|
|
5
|
+
* processing, used by all skill writers (Claude Code, Cursor, etc.).
|
|
6
|
+
*
|
|
7
|
+
* @module
|
|
8
|
+
*/
|
|
9
|
+
import fs from 'node:fs';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
/**
|
|
12
|
+
* Regex matching a line that starts with `@include ` (exact space after
|
|
13
|
+
* `@include`) followed by a relative path.
|
|
14
|
+
*/
|
|
15
|
+
const INCLUDE_RE = /^@include\s+(.+)$/;
|
|
16
|
+
/**
|
|
17
|
+
* Inline `@include _shared/<path>` directives in `content`.
|
|
18
|
+
*
|
|
19
|
+
* Each line matching `@include _shared/<path>` (space after `@include`) is
|
|
20
|
+
* replaced with the full content of `<skillsRoot>/_shared/<path>`.
|
|
21
|
+
*
|
|
22
|
+
* Security constraints:
|
|
23
|
+
* - Only paths beginning with `_shared/` are accepted.
|
|
24
|
+
* - The resolved path must stay within `<skillsRoot>/_shared/`.
|
|
25
|
+
* Path traversal attempts are rejected with a warning and the directive
|
|
26
|
+
* line is dropped.
|
|
27
|
+
*
|
|
28
|
+
* If a shared file is missing (ENOENT):
|
|
29
|
+
* - A warning is written to stderr.
|
|
30
|
+
* - The include line is removed from the output (not preserved).
|
|
31
|
+
* - Processing continues for remaining directives.
|
|
32
|
+
*
|
|
33
|
+
* Other I/O errors (permission denied, EISDIR, etc.) are re-thrown so the
|
|
34
|
+
* caller can distinguish them from a simple missing-file case.
|
|
35
|
+
*
|
|
36
|
+
* @param skillContext Used in warning messages to identify the skill context.
|
|
37
|
+
* @param content Raw skill content (may contain @include directives).
|
|
38
|
+
* @param skillsRoot Root directory containing `_shared/` sub-directory.
|
|
39
|
+
* @returns The content with directives inlined.
|
|
40
|
+
*/
|
|
41
|
+
export function inlineIncludes(skillContext, content, skillsRoot) {
|
|
42
|
+
const lines = content.split('\n');
|
|
43
|
+
const result = [];
|
|
44
|
+
for (const line of lines) {
|
|
45
|
+
const match = INCLUDE_RE.exec(line);
|
|
46
|
+
if (!match) {
|
|
47
|
+
result.push(line);
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
const relativePath = match[1] ?? '';
|
|
51
|
+
// Security: only accept paths beginning with `_shared/`
|
|
52
|
+
if (!relativePath.startsWith('_shared/')) {
|
|
53
|
+
process.stderr.write(`Warning: ${skillContext}: @include path must start with ` +
|
|
54
|
+
`"_shared/": ${relativePath}\n`);
|
|
55
|
+
// Directive line is dropped — do not push anything.
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
// Security: reject path traversal attempts
|
|
59
|
+
const resolvedPath = path.resolve(skillsRoot, relativePath);
|
|
60
|
+
const sharedDir = path.resolve(skillsRoot, '_shared');
|
|
61
|
+
if (!resolvedPath.startsWith(sharedDir + path.sep) &&
|
|
62
|
+
resolvedPath !== sharedDir) {
|
|
63
|
+
process.stderr.write(`Warning: ${skillContext}: @include path rejected ` +
|
|
64
|
+
`(path traversal): ${relativePath}\n`);
|
|
65
|
+
// Directive line is dropped.
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
const sharedFilePath = path.join(skillsRoot, relativePath);
|
|
69
|
+
try {
|
|
70
|
+
const sharedContent = fs.readFileSync(sharedFilePath, 'utf-8');
|
|
71
|
+
result.push(sharedContent);
|
|
72
|
+
}
|
|
73
|
+
catch (err) {
|
|
74
|
+
const nodeErr = err;
|
|
75
|
+
if (nodeErr.code === 'ENOENT') {
|
|
76
|
+
// Missing shared file — warn and drop the directive line.
|
|
77
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
78
|
+
process.stderr.write(`Warning: ${skillContext}: shared file not found: ` +
|
|
79
|
+
`${sharedFilePath} (referenced by @include ${relativePath}) — ${detail}\n`);
|
|
80
|
+
// Line is dropped — do not push anything.
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
// Permission errors, EISDIR, etc. — re-throw so the caller notices.
|
|
84
|
+
throw err;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return result.join('\n');
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=include-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"include-utils.js","sourceRoot":"","sources":["../../src/tool-surface/include-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B;;;GAGG;AACH,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,c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OAAO,CAAC,CAAC;YAC/D,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC7B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,OAAO,GAAG,GAA4B,CAAC;YAC7C,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC9B,0DAA0D;gBAC1D,MAAM,MAAM,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBAChE,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,YAAY,YAAY,2BAA2B;oBACnD,GAAG,cAAc,4BAA4B,YAAY,OAAO,MAAM,IAAI,CAC3E,CAAC;gBACF,0CAA0C;YAC5C,CAAC;iBAAM,CAAC;gBACN,oEAAoE;gBACpE,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tool-surface/index.ts"],"names":[],"mappings":"AAEA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// tool-surface/index.ts — public surface barrel; per architecture.md:262-275.
|
|
2
|
+
export * from './tool-surface-registry.js';
|
|
3
|
+
export * from './register-all-tools.js';
|
|
4
|
+
export * from './skill-installer.js';
|
|
5
|
+
export * from './skill-manifest-sync.js';
|
|
6
|
+
export * from './openapi-generator.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tool-surface/index.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Union of all supported AI client targets. */
|
|
3
|
+
export type Client = 'claude-code' | 'gemini' | 'codex' | 'cursor';
|
|
4
|
+
/** All known client values — used for --all-targets and target validation. */
|
|
5
|
+
export declare const ALL_CLIENTS: readonly Client[];
|
|
6
|
+
/**
|
|
7
|
+
* Detect which AI client directories exist in the home directory.
|
|
8
|
+
* Checks for evidence of each known client:
|
|
9
|
+
* - claude-code: ~/.claude/ directory present (installs skills under ~/.claude/skills/)
|
|
10
|
+
* - gemini: ~/.gemini/extensions/ directory present
|
|
11
|
+
* - codex: ~/.codex/ directory present (installs skills under ~/.codex/skills/)
|
|
12
|
+
* - cursor: ~/.cursor/rules/ directory present
|
|
13
|
+
*
|
|
14
|
+
* The claude-code check deliberately accepts ~/.claude/ as sufficient signal
|
|
15
|
+
* even when ~/.claude/skills/ does not yet exist (fresh install with no skills).
|
|
16
|
+
*/
|
|
17
|
+
export declare function detectClients(homeDir: string): Client[];
|
|
18
|
+
declare const manifestEntrySchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
skillVersion: z.ZodString;
|
|
21
|
+
installedAt: z.ZodNumber;
|
|
22
|
+
targets: z.ZodArray<z.ZodEnum<{
|
|
23
|
+
codex: "codex";
|
|
24
|
+
gemini: "gemini";
|
|
25
|
+
"claude-code": "claude-code";
|
|
26
|
+
cursor: "cursor";
|
|
27
|
+
}>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
declare const installManifestSchema: z.ZodObject<{
|
|
30
|
+
version: z.ZodLiteral<2>;
|
|
31
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
skillVersion: z.ZodString;
|
|
34
|
+
installedAt: z.ZodNumber;
|
|
35
|
+
targets: z.ZodArray<z.ZodEnum<{
|
|
36
|
+
codex: "codex";
|
|
37
|
+
gemini: "gemini";
|
|
38
|
+
"claude-code": "claude-code";
|
|
39
|
+
cursor: "cursor";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type InstallManifest = z.infer<typeof installManifestSchema>;
|
|
44
|
+
export type ManifestEntry = z.infer<typeof manifestEntrySchema>;
|
|
45
|
+
/** Thrown when the manifest declares a version newer than this mmagent supports. */
|
|
46
|
+
export declare class FutureManifestError extends Error {
|
|
47
|
+
constructor(version: number);
|
|
48
|
+
}
|
|
49
|
+
/** Thrown when the manifest file exists but cannot be parsed as valid JSON. */
|
|
50
|
+
export declare class ManifestParseError extends Error {
|
|
51
|
+
constructor(manifestPath: string, cause: string);
|
|
52
|
+
}
|
|
53
|
+
/** Thrown when the manifest JSON parses but fails Zod structural validation. */
|
|
54
|
+
export declare class ManifestSchemaValidationError extends Error {
|
|
55
|
+
constructor(manifestPath: string, issues: z.ZodError);
|
|
56
|
+
}
|
|
57
|
+
/** The directory where the manifest file lives. */
|
|
58
|
+
export declare function manifestDir(homeDir?: string): string;
|
|
59
|
+
/** Full path to the manifest file. */
|
|
60
|
+
export declare function manifestPath(homeDir?: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Return all manifest entries, newest-first.
|
|
63
|
+
*/
|
|
64
|
+
export declare function listEntries(homeDir?: string): ManifestEntry[];
|
|
65
|
+
/**
|
|
66
|
+
* Find the entry for `skillName`, or undefined if not installed.
|
|
67
|
+
*/
|
|
68
|
+
export declare function getEntry(skillName: string, homeDir?: string): ManifestEntry | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Append (or update) the entry for `skillName`.
|
|
71
|
+
*
|
|
72
|
+
* - New entry: creates with de-duplicated `newTargets`.
|
|
73
|
+
* - Existing entry: merges `newTargets` into existing targets (no duplicates),
|
|
74
|
+
* refreshes `version` and `installedAt`.
|
|
75
|
+
*
|
|
76
|
+
* In both paths the stored `targets` array is a fresh copy — caller mutations
|
|
77
|
+
* after the call do not affect the in-memory object or persisted manifest.
|
|
78
|
+
*
|
|
79
|
+
* Returns the resulting entry.
|
|
80
|
+
*/
|
|
81
|
+
export declare function appendEntry(skillName: string, skillVersion: string, newTargets: Client[], homeDir?: string): ManifestEntry;
|
|
82
|
+
/**
|
|
83
|
+
* Remove `targets` from the entry for `skillName`.
|
|
84
|
+
* If `targets` is omitted or empty, removes the entire entry.
|
|
85
|
+
* Returns the removed targets (or all targets for a full removal),
|
|
86
|
+
* or an empty array if the skill wasn't in the manifest.
|
|
87
|
+
*/
|
|
88
|
+
export declare function removeEntry(skillName: string, targets?: Client[], homeDir?: string): Client[];
|
|
89
|
+
/**
|
|
90
|
+
* Returns true when `skillName` is recorded in the manifest with at least one target.
|
|
91
|
+
*/
|
|
92
|
+
export declare function isInstalled(skillName: string, homeDir?: string): boolean;
|
|
93
|
+
export {};
|
|
94
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/tool-surface/manifest.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gDAAgD;AAChD,MAAM,MAAM,MAAM,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEnE,8EAA8E;AAC9E,eAAO,MAAM,WAAW,EAAE,SAAS,MAAM,EAAiD,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAOvD;AAUD,QAAA,MAAM,mBAAmB;;;;;;;;;;iBAKvB,CAAC;AAEH,QAAA,MAAM,qBAAqB;;;;;;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EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAGxE"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Install manifest management.
|
|
3
|
+
*
|
|
4
|
+
* The manifest lives at `<homeDir>/.multi-model/install-manifest.json` and records
|
|
5
|
+
* every skill ever installed so `install-skill --uninstall` can reverse
|
|
6
|
+
* the operation without leaving orphaned files.
|
|
7
|
+
*
|
|
8
|
+
* All functions accept an optional `homeDir` parameter for testability.
|
|
9
|
+
* When omitted, `os.homedir()` is used as the default.
|
|
10
|
+
*/
|
|
11
|
+
import fs from 'node:fs';
|
|
12
|
+
import path from 'node:path';
|
|
13
|
+
import os from 'node:os';
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
/** All known client values — used for --all-targets and target validation. */
|
|
16
|
+
export const ALL_CLIENTS = ['claude-code', 'gemini', 'codex', 'cursor'];
|
|
17
|
+
/**
|
|
18
|
+
* Detect which AI client directories exist in the home directory.
|
|
19
|
+
* Checks for evidence of each known client:
|
|
20
|
+
* - claude-code: ~/.claude/ directory present (installs skills under ~/.claude/skills/)
|
|
21
|
+
* - gemini: ~/.gemini/extensions/ directory present
|
|
22
|
+
* - codex: ~/.codex/ directory present (installs skills under ~/.codex/skills/)
|
|
23
|
+
* - cursor: ~/.cursor/rules/ directory present
|
|
24
|
+
*
|
|
25
|
+
* The claude-code check deliberately accepts ~/.claude/ as sufficient signal
|
|
26
|
+
* even when ~/.claude/skills/ does not yet exist (fresh install with no skills).
|
|
27
|
+
*/
|
|
28
|
+
export function detectClients(homeDir) {
|
|
29
|
+
const detected = [];
|
|
30
|
+
if (fs.existsSync(path.join(homeDir, '.claude')))
|
|
31
|
+
detected.push('claude-code');
|
|
32
|
+
if (fs.existsSync(path.join(homeDir, '.gemini', 'extensions')))
|
|
33
|
+
detected.push('gemini');
|
|
34
|
+
if (fs.existsSync(path.join(homeDir, '.codex')))
|
|
35
|
+
detected.push('codex');
|
|
36
|
+
if (fs.existsSync(path.join(homeDir, '.cursor', 'rules')))
|
|
37
|
+
detected.push('cursor');
|
|
38
|
+
return detected;
|
|
39
|
+
}
|
|
40
|
+
const MANIFEST_NAME = 'install-manifest.json';
|
|
41
|
+
// ─── Zod schema ──────────────────────────────────────────────────────────────
|
|
42
|
+
/** Zod schema for a single client target value. */
|
|
43
|
+
const clientSchema = z.enum(['claude-code', 'gemini', 'codex', 'cursor']);
|
|
44
|
+
const manifestEntrySchema = z.object({
|
|
45
|
+
name: z.string().min(1),
|
|
46
|
+
skillVersion: z.string().min(1),
|
|
47
|
+
installedAt: z.number().int().nonnegative(),
|
|
48
|
+
targets: z.array(clientSchema),
|
|
49
|
+
});
|
|
50
|
+
const installManifestSchema = z.object({
|
|
51
|
+
version: z.literal(2),
|
|
52
|
+
entries: z.array(manifestEntrySchema),
|
|
53
|
+
});
|
|
54
|
+
/** Thrown when the manifest declares a version newer than this mmagent supports. */
|
|
55
|
+
export class FutureManifestError extends Error {
|
|
56
|
+
constructor(version) {
|
|
57
|
+
super(`install-manifest.json was written by a newer mmagent (version ${version}); upgrade mmagent or remove the file to continue`);
|
|
58
|
+
this.name = 'FutureManifestError';
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/** Thrown when the manifest file exists but cannot be parsed as valid JSON. */
|
|
62
|
+
export class ManifestParseError extends Error {
|
|
63
|
+
constructor(manifestPath, cause) {
|
|
64
|
+
super(`Manifest file is corrupt (${manifestPath}): ${cause}`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/** Thrown when the manifest JSON parses but fails Zod structural validation. */
|
|
68
|
+
export class ManifestSchemaValidationError extends Error {
|
|
69
|
+
constructor(manifestPath, issues) {
|
|
70
|
+
super(`Manifest file has invalid structure (${manifestPath}): ${issues.message}`);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// ─── Path helpers ────────────────────────────────────────────────────────────
|
|
74
|
+
/** The directory where the manifest file lives. */
|
|
75
|
+
export function manifestDir(homeDir) {
|
|
76
|
+
return path.join(homeDir ?? os.homedir(), '.multi-model');
|
|
77
|
+
}
|
|
78
|
+
/** Full path to the manifest file. */
|
|
79
|
+
export function manifestPath(homeDir) {
|
|
80
|
+
return path.join(manifestDir(homeDir), MANIFEST_NAME);
|
|
81
|
+
}
|
|
82
|
+
// ─── Low-level I/O ───────────────────────────────────────────────────────────
|
|
83
|
+
function backupCorrupted(p) {
|
|
84
|
+
const backup = `${p}.bak-${Date.now()}`;
|
|
85
|
+
try {
|
|
86
|
+
fs.renameSync(p, backup);
|
|
87
|
+
}
|
|
88
|
+
catch { /* ignore — best effort */ }
|
|
89
|
+
return backup;
|
|
90
|
+
}
|
|
91
|
+
function readManifest(homeDir) {
|
|
92
|
+
const p = manifestPath(homeDir);
|
|
93
|
+
if (!fs.existsSync(p))
|
|
94
|
+
return emptyManifest();
|
|
95
|
+
let raw;
|
|
96
|
+
try {
|
|
97
|
+
raw = fs.readFileSync(p, 'utf-8');
|
|
98
|
+
}
|
|
99
|
+
catch {
|
|
100
|
+
return emptyManifest();
|
|
101
|
+
}
|
|
102
|
+
let parsed;
|
|
103
|
+
try {
|
|
104
|
+
parsed = JSON.parse(raw);
|
|
105
|
+
}
|
|
106
|
+
catch {
|
|
107
|
+
const backup = backupCorrupted(p);
|
|
108
|
+
process.stderr.write(`[mmagent] manifest corrupt; rebuilt empty v2 (previous copy at ${backup})\n`);
|
|
109
|
+
const empty = emptyManifest();
|
|
110
|
+
writeManifest(empty, homeDir);
|
|
111
|
+
return empty;
|
|
112
|
+
}
|
|
113
|
+
const parsedVersion = parsed !== null && typeof parsed === 'object' && 'version' in parsed
|
|
114
|
+
? parsed.version
|
|
115
|
+
: undefined;
|
|
116
|
+
if (typeof parsedVersion === 'number' && parsedVersion > 2) {
|
|
117
|
+
throw new FutureManifestError(parsedVersion);
|
|
118
|
+
}
|
|
119
|
+
// v2 — validate strictly
|
|
120
|
+
if (parsedVersion === 2) {
|
|
121
|
+
const result = installManifestSchema.safeParse(parsed);
|
|
122
|
+
if (!result.success) {
|
|
123
|
+
throw new ManifestSchemaValidationError(p, result.error);
|
|
124
|
+
}
|
|
125
|
+
return result.data;
|
|
126
|
+
}
|
|
127
|
+
// Unrecognized shape (or pre-v2 manifest from an older mmagent) — back up and rebuild empty.
|
|
128
|
+
const backup = backupCorrupted(p);
|
|
129
|
+
process.stderr.write(`[mmagent] manifest unrecognized; rebuilt empty v2 (previous copy at ${backup})\n`);
|
|
130
|
+
const empty = emptyManifest();
|
|
131
|
+
writeManifest(empty, homeDir);
|
|
132
|
+
return empty;
|
|
133
|
+
}
|
|
134
|
+
function writeManifest(manifest, homeDir) {
|
|
135
|
+
fs.mkdirSync(manifestDir(homeDir), { recursive: true, mode: 0o700 });
|
|
136
|
+
fs.writeFileSync(manifestPath(homeDir), JSON.stringify(manifest, null, 2) + '\n', {
|
|
137
|
+
encoding: 'utf-8',
|
|
138
|
+
mode: 0o600,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function emptyManifest() {
|
|
142
|
+
return { version: 2, entries: [] };
|
|
143
|
+
}
|
|
144
|
+
// ─── Public API ─────────────────────────────────────────────────────────────
|
|
145
|
+
/**
|
|
146
|
+
* Return all manifest entries, newest-first.
|
|
147
|
+
*/
|
|
148
|
+
export function listEntries(homeDir) {
|
|
149
|
+
return readManifest(homeDir).entries;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Find the entry for `skillName`, or undefined if not installed.
|
|
153
|
+
*/
|
|
154
|
+
export function getEntry(skillName, homeDir) {
|
|
155
|
+
return readManifest(homeDir).entries.find((e) => e.name === skillName);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Append (or update) the entry for `skillName`.
|
|
159
|
+
*
|
|
160
|
+
* - New entry: creates with de-duplicated `newTargets`.
|
|
161
|
+
* - Existing entry: merges `newTargets` into existing targets (no duplicates),
|
|
162
|
+
* refreshes `version` and `installedAt`.
|
|
163
|
+
*
|
|
164
|
+
* In both paths the stored `targets` array is a fresh copy — caller mutations
|
|
165
|
+
* after the call do not affect the in-memory object or persisted manifest.
|
|
166
|
+
*
|
|
167
|
+
* Returns the resulting entry.
|
|
168
|
+
*/
|
|
169
|
+
export function appendEntry(skillName, skillVersion, newTargets, homeDir) {
|
|
170
|
+
const manifest = readManifest(homeDir);
|
|
171
|
+
// De-duplicate incoming targets once, preserving order of first occurrence.
|
|
172
|
+
const seen = new Set();
|
|
173
|
+
const dedupedNewTargets = newTargets.filter((t) => {
|
|
174
|
+
if (seen.has(t))
|
|
175
|
+
return false;
|
|
176
|
+
seen.add(t);
|
|
177
|
+
return true;
|
|
178
|
+
});
|
|
179
|
+
const existing = manifest.entries.find((e) => e.name === skillName);
|
|
180
|
+
if (existing) {
|
|
181
|
+
for (const t of dedupedNewTargets) {
|
|
182
|
+
if (!existing.targets.includes(t))
|
|
183
|
+
existing.targets.push(t);
|
|
184
|
+
}
|
|
185
|
+
existing.skillVersion = skillVersion;
|
|
186
|
+
existing.installedAt = Date.now();
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
// Clone the array so the caller cannot mutate the stored entry.
|
|
190
|
+
manifest.entries.push({
|
|
191
|
+
name: skillName,
|
|
192
|
+
skillVersion,
|
|
193
|
+
installedAt: Date.now(),
|
|
194
|
+
targets: [...dedupedNewTargets],
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
writeManifest(manifest, homeDir);
|
|
198
|
+
return existing ?? manifest.entries[manifest.entries.length - 1];
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Remove `targets` from the entry for `skillName`.
|
|
202
|
+
* If `targets` is omitted or empty, removes the entire entry.
|
|
203
|
+
* Returns the removed targets (or all targets for a full removal),
|
|
204
|
+
* or an empty array if the skill wasn't in the manifest.
|
|
205
|
+
*/
|
|
206
|
+
export function removeEntry(skillName, targets = [], homeDir) {
|
|
207
|
+
const manifest = readManifest(homeDir);
|
|
208
|
+
const idx = manifest.entries.findIndex((e) => e.name === skillName);
|
|
209
|
+
if (idx === -1)
|
|
210
|
+
return [];
|
|
211
|
+
const entry = manifest.entries[idx];
|
|
212
|
+
if (targets.length === 0) {
|
|
213
|
+
// Full removal
|
|
214
|
+
manifest.entries.splice(idx, 1);
|
|
215
|
+
writeManifest(manifest, homeDir);
|
|
216
|
+
return [...entry.targets];
|
|
217
|
+
}
|
|
218
|
+
// Partial removal: only remove specified targets
|
|
219
|
+
const removed = entry.targets.filter((t) => targets.includes(t));
|
|
220
|
+
entry.targets = entry.targets.filter((t) => !removed.includes(t));
|
|
221
|
+
if (entry.targets.length === 0) {
|
|
222
|
+
manifest.entries.splice(idx, 1);
|
|
223
|
+
}
|
|
224
|
+
writeManifest(manifest, homeDir);
|
|
225
|
+
return removed;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Returns true when `skillName` is recorded in the manifest with at least one target.
|
|
229
|
+
*/
|
|
230
|
+
export function isInstalled(skillName, homeDir) {
|
|
231
|
+
const e = getEntry(skillName, homeDir);
|
|
232
|
+
return e !== undefined && e.targets.length > 0;
|
|
233
|
+
}
|
|
234
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/tool-surface/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,8EAA8E;AAC9E,MAAM,CAAC,MAAM,WAAW,GAAsB,CAAC,aAAa,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;AAE3F;;;;;;;;;;GAUG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe;IAC3C,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,IAAI,EAAE,CAAC,UAAU,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O,CAAC,CAAC;IACjC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,SAAiB,EAAE,OAAgB;IAC7D,MAAM,CAAC,GAAG,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Shared `cwd` query parameter (required by all tool endpoints). */
|
|
2
|
+
declare const cwdQueryParam: {
|
|
3
|
+
name: string;
|
|
4
|
+
in: "query";
|
|
5
|
+
required: boolean;
|
|
6
|
+
description: string;
|
|
7
|
+
schema: {
|
|
8
|
+
type: "string";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function buildOpenApiDoc(): Record<string, unknown>;
|
|
12
|
+
/** Utility: serialize the OpenAPI doc with sorted keys for golden snapshots. */
|
|
13
|
+
export declare function serializeOpenApiDoc(doc: Record<string, unknown>): string;
|
|
14
|
+
export { cwdQueryParam };
|
|
15
|
+
//# sourceMappingURL=openapi-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi-generator.d.ts","sourceRoot":"","sources":["../../src/tool-surface/openapi-generator.ts"],"names":[],"mappings":"AAmFA,qEAAqE;AACrE,QAAA,MAAM,aAAa;;;;;;;;CAMlB,CAAC;AAyDF,wBAAgB,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuIzD;AAED,gFAAgF;AAChF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAExE;AAGD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|