opencode-swarm 7.0.0-beta.1 → 7.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/LICENSE +21 -0
- package/README.md +1265 -40
- package/dist/__tests__/acknowledge-spec-drift.test.d.ts +1 -0
- package/dist/__tests__/cli-version.adversarial.test.d.ts +1 -0
- package/dist/__tests__/cli-version.test.d.ts +1 -0
- package/dist/__tests__/conflict-resolution.test.d.ts +1 -0
- package/dist/__tests__/convene-general-council.test.d.ts +10 -0
- package/dist/__tests__/critic_drift_verifier-whitelist.test.d.ts +1 -0
- package/dist/__tests__/critic_hallucination_verifier-whitelist.test.d.ts +1 -0
- package/dist/__tests__/disagreement-detector.test.d.ts +7 -0
- package/dist/__tests__/evidence-lock.adversarial.test.d.ts +8 -0
- package/dist/__tests__/evidence-lock.test.d.ts +6 -0
- package/dist/__tests__/gate-evidence.adversarial.test.d.ts +7 -0
- package/dist/__tests__/general-council-service.test.d.ts +7 -0
- package/dist/__tests__/lint-spec.test.d.ts +1 -0
- package/dist/__tests__/preflight-phase.test.d.ts +1 -0
- package/dist/__tests__/qa-gate-hardening.test.d.ts +12 -0
- package/dist/__tests__/req-coverage.test.d.ts +1 -0
- package/dist/__tests__/security-adversarial.test.d.ts +1 -0
- package/dist/__tests__/sounding-board-parser.test.d.ts +1 -0
- package/dist/__tests__/spec-hash.test.d.ts +1 -0
- package/dist/__tests__/spec-schema.test.d.ts +1 -0
- package/dist/__tests__/web-search-provider.test.d.ts +6 -0
- package/dist/__tests__/write-drift-evidence-requirement-coverage.test.d.ts +4 -0
- package/dist/adversarial-tests.test.d.ts +1 -0
- package/dist/agents/architect-permission.adversarial.test.d.ts +5 -0
- package/dist/agents/architect.commands-list.adversarial.test.d.ts +1 -0
- package/dist/agents/architect.commands-list.test.d.ts +1 -0
- package/dist/agents/architect.d.ts +57 -0
- package/dist/agents/architect.dark-matter.test.d.ts +1 -0
- package/dist/agents/architect.designer-gate.test.d.ts +1 -0
- package/dist/agents/coder.d.ts +2 -0
- package/dist/agents/council-member.d.ts +30 -0
- package/dist/agents/council-member.test.d.ts +8 -0
- package/dist/agents/council-moderator.d.ts +20 -0
- package/dist/agents/critic.d.ts +34 -0
- package/dist/agents/curator-agent.d.ts +14 -0
- package/dist/agents/designer.d.ts +2 -0
- package/dist/agents/docs.d.ts +2 -0
- package/dist/agents/explorer-consumer-contract.test.d.ts +1 -0
- package/dist/agents/explorer-role-boundary.test.d.ts +1 -0
- package/dist/agents/explorer.d.ts +5 -0
- package/dist/agents/index.d.ts +52 -0
- package/dist/agents/reviewer.d.ts +5 -0
- package/dist/agents/sme.d.ts +2 -0
- package/dist/agents/test-engineer.adversarial.test.d.ts +5 -0
- package/dist/agents/test-engineer.d.ts +2 -0
- package/dist/agents/test-engineer.security.test.d.ts +1 -0
- package/dist/background/circuit-breaker.d.ts +149 -0
- package/dist/background/event-bus.d.ts +60 -0
- package/dist/background/evidence-summary-integration.d.ts +73 -0
- package/dist/background/index.d.ts +22 -0
- package/dist/background/manager.d.ts +122 -0
- package/dist/background/plan-sync-worker.d.ts +122 -0
- package/dist/background/queue.d.ts +117 -0
- package/dist/background/status-artifact.d.ts +115 -0
- package/dist/background/trigger.d.ts +179 -0
- package/dist/background/trigger.vulnerability.test.d.ts +1 -0
- package/dist/background/worker.d.ts +92 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.js +31227 -11423
- package/dist/commands/acknowledge-spec-drift.d.ts +5 -0
- package/dist/commands/brainstorm.d.ts +13 -0
- package/dist/commands/brainstorm.test.d.ts +1 -0
- package/dist/commands/checkpoint.d.ts +5 -0
- package/dist/commands/close.d.ts +11 -0
- package/dist/commands/command-adapters.security.test.d.ts +14 -0
- package/dist/commands/commands.test.d.ts +1 -0
- package/dist/commands/config.d.ts +5 -0
- package/dist/commands/council.d.ts +17 -0
- package/dist/commands/council.test.d.ts +4 -0
- package/dist/commands/curate.test.d.ts +1 -0
- package/dist/commands/doctor.d.ts +17 -0
- package/dist/commands/full-auto-config-guard.test.d.ts +7 -0
- package/dist/commands/full-auto-discoverability.test.d.ts +8 -0
- package/dist/commands/full-auto-registration.test.d.ts +5 -0
- package/dist/commands/full-auto-sessionid.test.d.ts +5 -0
- package/dist/commands/full-auto.d.ts +10 -0
- package/dist/commands/full-auto.regression.test.d.ts +10 -0
- package/dist/commands/full-auto.test.d.ts +6 -0
- package/dist/commands/index.d.ts +50 -0
- package/dist/commands/index.help-text.test.d.ts +1 -0
- package/dist/commands/issue.d.ts +13 -0
- package/dist/{knowledge.d.ts → commands/knowledge.d.ts} +2 -0
- package/dist/commands/pr-review.d.ts +11 -0
- package/dist/commands/qa-gates.d.ts +15 -0
- package/dist/commands/qa-gates.test.d.ts +1 -0
- package/dist/commands/registry-documentation.test.d.ts +1 -0
- package/dist/commands/registry-type.test.d.ts +1 -0
- package/dist/commands/registry.d.ts +282 -0
- package/dist/commands/reset-session.d.ts +7 -0
- package/dist/commands/shortcut-routing.test.d.ts +11 -0
- package/dist/{sync-plan.d.ts → commands/sync-plan.d.ts} +3 -1
- package/dist/commands/turbo-registration.test.d.ts +5 -0
- package/dist/commands/turbo-sessionid.test.d.ts +5 -0
- package/dist/commands/turbo.regression.test.d.ts +11 -0
- package/dist/commands/turbo.test.d.ts +5 -0
- package/dist/config/agent-categories.d.ts +12 -0
- package/dist/config/cache-paths.d.ts +11 -0
- package/dist/config/constants.architect-whitelist.test.d.ts +1 -0
- package/dist/config/constants.d.ts +72 -0
- package/dist/config/evidence-schema.d.ts +1352 -0
- package/dist/config/index.d.ts +11 -0
- package/dist/{config.d.ts → config/loader.d.ts} +11 -6
- package/dist/config/plan-schema.d.ts +191 -0
- package/dist/config/schema.d.ts +1078 -0
- package/dist/config/spec-schema.d.ts +113 -0
- package/dist/context/role-filter.d.ts +27 -0
- package/dist/context/zone-classifier.d.ts +17 -0
- package/dist/council/__tests__/council-evidence-writer.adversarial.test.d.ts +6 -0
- package/dist/council/council-advisory.d.ts +46 -0
- package/dist/council/council-evidence-writer.d.ts +18 -0
- package/dist/council/council-service.d.ts +21 -0
- package/dist/council/criteria-store.d.ts +9 -0
- package/dist/council/disagreement-detector.d.ts +24 -0
- package/dist/council/general-council-advisory.d.ts +29 -0
- package/dist/council/general-council-service.d.ts +22 -0
- package/dist/council/general-council-types.d.ts +98 -0
- package/dist/council/types.d.ts +126 -0
- package/dist/council/web-search-provider.d.ts +35 -0
- package/dist/db/global-db.d.ts +22 -0
- package/dist/db/global-db.test.d.ts +7 -0
- package/dist/db/index.d.ts +13 -0
- package/dist/db/project-db.d.ts +40 -0
- package/dist/db/project-db.test.d.ts +4 -0
- package/dist/db/qa-gate-profile.d.ts +107 -0
- package/dist/db/qa-gate-profile.test.d.ts +4 -0
- package/dist/diff/__tests__/semantic-classifier.test.d.ts +1 -0
- package/dist/diff/__tests__/summary-generator.test.d.ts +1 -0
- package/dist/diff/ast-diff.d.ts +21 -0
- package/dist/diff/semantic-classifier.d.ts +59 -0
- package/dist/diff/summary-generator.d.ts +33 -0
- package/dist/environment/index.d.ts +3 -0
- package/dist/environment/profile.d.ts +50 -0
- package/dist/environment/prompt-renderer.d.ts +6 -0
- package/dist/evidence/index.d.ts +2 -0
- package/dist/evidence/lock.d.ts +36 -0
- package/dist/evidence/manager.d.ts +78 -0
- package/dist/gate-evidence.d.ts +69 -0
- package/dist/gate-evidence.test.d.ts +1 -0
- package/dist/git/branch.d.ts +70 -0
- package/dist/git/index.d.ts +22 -0
- package/dist/git/pr.d.ts +28 -0
- package/dist/graph/graph-builder.d.ts +39 -0
- package/dist/graph/graph-query.d.ts +42 -0
- package/dist/graph/graph-store.d.ts +27 -0
- package/dist/graph/import-extractor.d.ts +44 -0
- package/dist/graph/index.d.ts +16 -0
- package/dist/graph/symbol-extractor.d.ts +17 -0
- package/dist/graph/types.d.ts +84 -0
- package/dist/hooks/__tests__/semantic-diff-injection.test.d.ts +1 -0
- package/dist/hooks/adversarial-detector.d.ts +50 -0
- package/dist/hooks/agent-activity.d.ts +38 -0
- package/dist/hooks/co-change-suggester.d.ts +51 -0
- package/dist/hooks/compaction-customizer.d.ts +11 -0
- package/dist/hooks/conflict-resolution.d.ts +12 -0
- package/dist/hooks/context-budget.d.ts +34 -0
- package/dist/hooks/context-scoring.d.ts +70 -0
- package/dist/hooks/curator-drift-advisory.test.d.ts +1 -0
- package/dist/hooks/curator-drift.d.ts +30 -0
- package/dist/hooks/curator-llm-factory.d.ts +20 -0
- package/dist/hooks/curator-types.d.ts +103 -0
- package/dist/hooks/curator.d.ts +108 -0
- package/dist/hooks/dark-matter-detector.d.ts +38 -0
- package/dist/hooks/delegation-gate.d.ts +78 -0
- package/dist/hooks/delegation-gate.evidence.test.d.ts +4 -0
- package/dist/hooks/delegation-gate.getEvidenceTaskId.test.d.ts +20 -0
- package/dist/hooks/delegation-gate.plan-fallback-security.test.d.ts +13 -0
- package/dist/hooks/delegation-gate.plan-fallback.test.d.ts +5 -0
- package/dist/hooks/delegation-gate.seed-state.test.d.ts +1 -0
- package/dist/hooks/delegation-gate.turbo-evidence.test.d.ts +8 -0
- package/dist/hooks/delegation-gate.verify.test.d.ts +11 -0
- package/dist/hooks/delegation-ledger.d.ts +37 -0
- package/dist/hooks/delegation-ledger.test.d.ts +11 -0
- package/dist/hooks/delegation-sanitizer.d.ts +24 -0
- package/dist/hooks/delegation-tracker.d.ts +15 -0
- package/dist/hooks/diff-scope.d.ts +12 -0
- package/dist/hooks/diff-scope.test.d.ts +1 -0
- package/dist/hooks/extractors.d.ts +53 -0
- package/dist/hooks/full-auto-intercept.d.ts +77 -0
- package/dist/hooks/guardrails.d.ts +174 -0
- package/dist/hooks/hive-promoter.d.ts +40 -0
- package/dist/hooks/incremental-verify.d.ts +34 -0
- package/dist/hooks/incremental-verify.test.d.ts +1 -0
- package/dist/hooks/index.d.ts +20 -0
- package/dist/hooks/knowledge-curator.d.ts +27 -0
- package/dist/hooks/knowledge-injector.d.ts +20 -0
- package/dist/hooks/knowledge-migrator.d.ts +11 -0
- package/dist/hooks/knowledge-reader.d.ts +22 -0
- package/dist/hooks/knowledge-store.d.ts +30 -0
- package/dist/hooks/knowledge-types.d.ts +131 -0
- package/dist/hooks/knowledge-validator.d.ts +29 -0
- package/dist/hooks/loop-detector.d.ts +17 -0
- package/dist/hooks/loop-detector.test.d.ts +1 -0
- package/dist/hooks/message-priority.d.ts +105 -0
- package/dist/hooks/messages-transform.d.ts +13 -0
- package/dist/hooks/model-limits.d.ts +96 -0
- package/dist/hooks/normalize-tool-name.d.ts +25 -0
- package/dist/hooks/phase-monitor.d.ts +29 -0
- package/dist/hooks/pipeline-tracker.d.ts +41 -0
- package/dist/hooks/repo-graph-builder.d.ts +32 -0
- package/dist/hooks/repo-graph-injection.d.ts +45 -0
- package/dist/hooks/review-receipt.d.ts +189 -0
- package/dist/hooks/scope-guard-throw-behavior.test.d.ts +15 -0
- package/dist/hooks/scope-guard.adversarial.test.d.ts +1 -0
- package/dist/hooks/scope-guard.d.ts +43 -0
- package/dist/hooks/scope-guard.test.d.ts +14 -0
- package/dist/hooks/self-review.d.ts +14 -0
- package/dist/hooks/self-review.test.d.ts +14 -0
- package/dist/hooks/semantic-diff-injection.d.ts +24 -0
- package/dist/hooks/slop-detector.adversarial.test.d.ts +1 -0
- package/dist/hooks/slop-detector.d.ts +17 -0
- package/dist/hooks/slop-detector.test.d.ts +1 -0
- package/dist/hooks/spawn-helper.d.ts +5 -0
- package/dist/hooks/spawn-helper.test.d.ts +1 -0
- package/dist/hooks/steering-consumed.d.ts +30 -0
- package/dist/hooks/system-enhancer.d.ts +30 -0
- package/dist/hooks/tool-summarizer.d.ts +28 -0
- package/dist/hooks/trajectory-logger.d.ts +69 -0
- package/dist/hooks/utils.d.ts +20 -0
- package/dist/hooks/watchdog.integration.test.d.ts +9 -0
- package/dist/index.adversarial-bootstrap.test.d.ts +1 -0
- package/dist/index.bootstrap-adversarial.test.d.ts +1 -0
- package/dist/index.bootstrap-directory.test.d.ts +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.js +74704 -47714
- package/dist/knowledge/identity.d.ts +25 -0
- package/dist/knowledge/index.d.ts +2 -0
- package/dist/lang/detector.d.ts +20 -0
- package/dist/lang/framework-detector.d.ts +98 -0
- package/dist/lang/grammars/tree-sitter-dart.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-kotlin.wasm +0 -0
- package/dist/lang/grammars/tree-sitter-swift.wasm +0 -0
- package/dist/lang/grammars/tree-sitter.wasm +0 -0
- package/dist/lang/index.d.ts +4 -0
- package/dist/lang/profiles.d.ts +72 -0
- package/dist/lang/registry.d.ts +24 -0
- package/dist/lang/runtime.d.ts +35 -0
- package/dist/model-fallback.adversarial.test.d.ts +22 -0
- package/dist/model-fallback.test.d.ts +12 -0
- package/dist/mutation/__tests__/engine.adversarial.test.d.ts +1 -0
- package/dist/mutation/__tests__/engine.test.d.ts +1 -0
- package/dist/mutation/__tests__/equivalence.adversarial.test.d.ts +1 -0
- package/dist/mutation/__tests__/equivalence.test.d.ts +1 -0
- package/dist/mutation/__tests__/gate.adversarial.test.d.ts +1 -0
- package/dist/mutation/__tests__/gate.test.d.ts +1 -0
- package/dist/mutation/__tests__/generator.test.d.ts +1 -0
- package/dist/mutation/engine.d.ts +47 -0
- package/dist/mutation/equivalence.d.ts +35 -0
- package/dist/mutation/gate.d.ts +28 -0
- package/dist/mutation/generator.d.ts +16 -0
- package/dist/output/agent-writer.d.ts +27 -0
- package/dist/output/index.d.ts +1 -0
- package/dist/parallel/dependency-graph.d.ts +34 -0
- package/dist/parallel/dispatcher/index.d.ts +12 -0
- package/dist/parallel/dispatcher/noop-dispatcher.d.ts +18 -0
- package/dist/parallel/dispatcher/noop-dispatcher.test.d.ts +10 -0
- package/dist/parallel/dispatcher/parallel-dispatcher.d.ts +18 -0
- package/dist/parallel/dispatcher/types.d.ts +33 -0
- package/dist/parallel/file-locks.d.ts +40 -0
- package/dist/parallel/index.d.ts +5 -0
- package/dist/parallel/meta-indexer.d.ts +32 -0
- package/dist/parallel/review-router.d.ts +29 -0
- package/dist/plan/checkpoint.d.ts +25 -0
- package/dist/plan/checkpoint.test.d.ts +1 -0
- package/dist/plan/index.d.ts +1 -0
- package/dist/plan/ledger-integrity.test.d.ts +5 -0
- package/dist/plan/ledger-snapshot-adversarial.test.d.ts +1 -0
- package/dist/plan/ledger.d.ts +286 -0
- package/dist/plan/ledger.test.d.ts +1 -0
- package/dist/plan/manager.cas-backoff.test.d.ts +10 -0
- package/dist/plan/manager.d.ts +90 -0
- package/dist/plan/manager.ledger-aware.test.d.ts +1 -0
- package/dist/plan/manager.loadplan-validation-guard.test.d.ts +13 -0
- package/dist/plan/manager.update-task-status.test.d.ts +1 -0
- package/dist/plan/migration-revert.regression.test.d.ts +8 -0
- package/dist/prm/__tests__/course-correction.test.d.ts +1 -0
- package/dist/prm/__tests__/escalation-queue-drain.test.d.ts +1 -0
- package/dist/prm/__tests__/escalation.test.d.ts +1 -0
- package/dist/prm/__tests__/index.test.d.ts +1 -0
- package/dist/prm/__tests__/integration.test.d.ts +1 -0
- package/dist/prm/__tests__/pattern-detector.test.d.ts +5 -0
- package/dist/prm/__tests__/replay.test.d.ts +1 -0
- package/dist/prm/__tests__/trajectory-store.test.d.ts +7 -0
- package/dist/prm/course-correction.d.ts +20 -0
- package/dist/prm/escalation.d.ts +73 -0
- package/dist/prm/index.d.ts +58 -0
- package/dist/prm/pattern-detector.d.ts +71 -0
- package/dist/prm/replay.d.ts +44 -0
- package/dist/prm/trajectory-store.d.ts +66 -0
- package/dist/prm/types.d.ts +120 -0
- package/dist/quality/index.d.ts +1 -0
- package/dist/quality/metrics.d.ts +25 -0
- package/dist/sast/rules/c.d.ts +9 -0
- package/dist/sast/rules/csharp.d.ts +9 -0
- package/dist/sast/rules/go.d.ts +9 -0
- package/dist/sast/rules/index.d.ts +72 -0
- package/dist/sast/rules/java.d.ts +9 -0
- package/dist/sast/rules/javascript.d.ts +9 -0
- package/dist/sast/rules/php.d.ts +9 -0
- package/dist/sast/rules/python.d.ts +9 -0
- package/dist/sast/semgrep.d.ts +68 -0
- package/dist/sast/semgrep.test.d.ts +1 -0
- package/dist/sbom/cyclonedx.d.ts +101 -0
- package/dist/sbom/detectors/dart.d.ts +7 -0
- package/dist/sbom/detectors/dotnet.d.ts +7 -0
- package/dist/sbom/detectors/go.d.ts +7 -0
- package/dist/sbom/detectors/index.d.ts +53 -0
- package/dist/sbom/detectors/java.d.ts +7 -0
- package/dist/sbom/detectors/nodejs.d.ts +7 -0
- package/dist/sbom/detectors/python.d.ts +7 -0
- package/dist/sbom/detectors/rust.d.ts +7 -0
- package/dist/sbom/detectors/swift.d.ts +7 -0
- package/dist/scope/scope-persistence.d.ts +109 -0
- package/dist/scope/scope-persistence.test.d.ts +13 -0
- package/dist/services/compaction-service.d.ts +28 -0
- package/dist/services/compaction-service.test.d.ts +1 -0
- package/dist/services/config-doctor.d.ts +125 -0
- package/dist/services/config-doctor.security.test.d.ts +1 -0
- package/dist/services/config-doctor.test.d.ts +1 -0
- package/dist/services/context-budget-service.d.ts +101 -0
- package/dist/services/decision-drift-analyzer.d.ts +96 -0
- package/dist/services/diagnose-service.d.ts +41 -0
- package/dist/services/evidence-service.d.ts +65 -0
- package/dist/services/evidence-summary-service.d.ts +75 -0
- package/dist/services/export-service.d.ts +30 -0
- package/dist/services/handoff-service.d.ts +74 -0
- package/dist/services/history-service.d.ts +35 -0
- package/dist/services/index.d.ts +13 -0
- package/dist/services/plan-service.d.ts +25 -0
- package/dist/services/preflight-integration.d.ts +38 -0
- package/dist/services/preflight-service.d.ts +62 -0
- package/dist/services/run-memory.d.ts +66 -0
- package/dist/services/status-service.d.ts +35 -0
- package/dist/services/status-service.turbo-indicator.test.d.ts +5 -0
- package/dist/services/tool-doctor.d.ts +26 -0
- package/dist/services/tool-doctor.test.d.ts +1 -0
- package/dist/services/version-check.d.ts +28 -0
- package/dist/services/warning-buffer.d.ts +9 -0
- package/dist/session/snapshot-reader.d.ts +37 -0
- package/dist/session/snapshot-writer.d.ts +115 -0
- package/dist/skills/index.d.ts +30 -0
- package/dist/state/agent-run-context.d.ts +24 -0
- package/dist/state.agent-run-context.test.d.ts +10 -0
- package/dist/state.d.ts +501 -1
- package/dist/state.rehydrate.test.d.ts +1 -0
- package/dist/state.rehydration-adversarial.test.d.ts +1 -0
- package/dist/state.rehydration-integration.test.d.ts +1 -0
- package/dist/state.session-restart.test.d.ts +7 -0
- package/dist/summaries/index.d.ts +2 -0
- package/dist/summaries/manager.d.ts +29 -0
- package/dist/summaries/summarizer.d.ts +38 -0
- package/dist/telemetry.d.ts +59 -0
- package/dist/telemetry.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer-import-fix.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer-import-fix.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/analyzer.test.d.ts +1 -0
- package/dist/test-impact/__tests__/council-fixes.test.d.ts +1 -0
- package/dist/test-impact/__tests__/failure-classifier.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/failure-classifier.test.d.ts +1 -0
- package/dist/test-impact/__tests__/flaky-detector.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/flaky-detector.test.d.ts +1 -0
- package/dist/test-impact/__tests__/history-store.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/history-store.test.d.ts +1 -0
- package/dist/test-impact/__tests__/test-impact.adversarial.test.d.ts +1 -0
- package/dist/test-impact/__tests__/test-impact.test.d.ts +1 -0
- package/dist/test-impact/analyzer.d.ts +9 -0
- package/dist/test-impact/failure-classifier.d.ts +26 -0
- package/dist/test-impact/flaky-detector.d.ts +14 -0
- package/dist/test-impact/history-store.d.ts +15 -0
- package/dist/tools/__tests__/barrel-exports.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-ast-fallback.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-markdown-summary.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-semantic.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-summary.adversarial.test.d.ts +1 -0
- package/dist/tools/__tests__/diff-summary.test.d.ts +1 -0
- package/dist/tools/__tests__/mutation-test.adversarial.test.d.ts +1 -0
- package/dist/tools/__tests__/mutation-test.sourcefiles.test.d.ts +1 -0
- package/dist/tools/__tests__/mutation-test.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-history.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-impact.adversarial.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-impact.test.d.ts +1 -0
- package/dist/tools/__tests__/test-runner-source-files.test.d.ts +1 -0
- package/dist/tools/barrel-export-check-gate-status.test.d.ts +6 -0
- package/dist/tools/batch-symbols.d.ts +24 -0
- package/dist/tools/batch-symbols.test.d.ts +1 -0
- package/dist/tools/build-check.d.ts +50 -0
- package/dist/tools/check-gate-status.adversarial.test.d.ts +1 -0
- package/dist/tools/check-gate-status.d.ts +7 -0
- package/dist/tools/check-gate-status.gates.test.d.ts +1 -0
- package/dist/tools/check-gate-status.plugin-registration.test.d.ts +1 -0
- package/dist/tools/checkpoint.d.ts +2 -0
- package/dist/tools/co-change-analyzer.d.ts +45 -0
- package/dist/tools/completion-verify.d.ts +25 -0
- package/dist/tools/complexity-hotspots.d.ts +2 -0
- package/dist/tools/convene-council.d.ts +53 -0
- package/dist/tools/convene-general-council.d.ts +25 -0
- package/dist/{create-tool.d.ts → tools/create-tool.d.ts} +13 -1
- package/dist/tools/curator-analyze.d.ts +7 -0
- package/dist/tools/curator-analyze.test.d.ts +1 -0
- package/dist/tools/declare-council-criteria.d.ts +14 -0
- package/dist/tools/declare-scope.d.ts +50 -0
- package/dist/tools/diff-summary.d.ts +12 -0
- package/dist/tools/diff.d.ts +24 -0
- package/dist/tools/doc-scan.d.ts +38 -0
- package/dist/tools/domain-detector.d.ts +6 -0
- package/dist/tools/evidence-check.d.ts +8 -0
- package/dist/tools/file-extractor.d.ts +9 -0
- package/dist/tools/generate-mutants.d.ts +15 -0
- package/dist/tools/get-approved-plan.d.ts +55 -0
- package/dist/tools/get-qa-gate-profile.d.ts +27 -0
- package/dist/tools/gitingest.d.ts +18 -0
- package/dist/tools/imports.d.ts +5 -0
- package/dist/tools/index.d.ts +66 -0
- package/dist/tools/knowledge-add.d.ts +2 -0
- package/dist/tools/knowledge-query.d.ts +5 -0
- package/dist/tools/knowledge-recall.d.ts +2 -0
- package/dist/tools/knowledge-remove.d.ts +2 -0
- package/dist/tools/knowledge-tools.integration.test.d.ts +1 -0
- package/dist/tools/lint-spec.d.ts +2 -0
- package/dist/tools/lint.d.ts +63 -0
- package/dist/tools/mutation-test.d.ts +2 -0
- package/dist/tools/mutation-test.security.test.d.ts +1 -0
- package/dist/tools/phase-complete.d.ts +25 -0
- package/dist/tools/pkg-audit.d.ts +2 -0
- package/dist/tools/placeholder-scan.d.ts +28 -0
- package/dist/tools/plugin-registration-adversarial.test.d.ts +1 -0
- package/dist/tools/pre-check-batch.d.ts +89 -0
- package/dist/tools/quality-budget.d.ts +26 -0
- package/dist/tools/repo-graph.d.ts +226 -0
- package/dist/tools/repo-map.d.ts +2 -0
- package/dist/tools/req-coverage.d.ts +47 -0
- package/dist/tools/resolve-working-directory.d.ts +35 -0
- package/dist/tools/resolve-working-directory.test.d.ts +1 -0
- package/dist/tools/retrieve-summary.d.ts +2 -0
- package/dist/tools/sast-baseline.d.ts +126 -0
- package/dist/tools/sast-scan.d.ts +87 -0
- package/dist/tools/save-plan.d.ts +95 -0
- package/dist/tools/save-plan.subdirectory-rejection.test.d.ts +1 -0
- package/dist/tools/sbom-generate.d.ts +26 -0
- package/dist/tools/schema-drift.d.ts +2 -0
- package/dist/tools/search.adversarial.test.d.ts +1 -0
- package/dist/tools/search.d.ts +29 -0
- package/dist/tools/search.test.d.ts +1 -0
- package/dist/tools/secretscan.d.ts +35 -0
- package/dist/tools/set-qa-gates.d.ts +40 -0
- package/dist/tools/suggest-patch.adversarial.test.d.ts +1 -0
- package/dist/tools/suggest-patch.d.ts +37 -0
- package/dist/tools/suggest-patch.test.d.ts +1 -0
- package/dist/tools/symbols.d.ts +21 -0
- package/dist/tools/syntax-check.d.ts +37 -0
- package/dist/tools/test-impact.d.ts +2 -0
- package/dist/tools/test-runner.d.ts +86 -0
- package/dist/tools/test-runner.security-adversarial.test.d.ts +5 -0
- package/dist/tools/todo-extract.d.ts +2 -0
- package/dist/tools/tool-names.d.ts +10 -0
- package/dist/tools/update-task-status.adversarial.test.d.ts +13 -0
- package/dist/tools/update-task-status.d.ts +114 -0
- package/dist/tools/update-task-status.gates.test.d.ts +1 -0
- package/dist/tools/update-task-status.test.d.ts +1 -0
- package/dist/tools/update-task-status.turbo-bypass.test.d.ts +1 -0
- package/dist/tools/verify-six-tools-registration.test.d.ts +9 -0
- package/dist/tools/web-search.d.ts +13 -0
- package/dist/tools/write-drift-evidence.d.ts +31 -0
- package/dist/tools/write-hallucination-evidence.d.ts +30 -0
- package/dist/tools/write-mutation-evidence.d.ts +34 -0
- package/dist/tools/write-mutation-evidence.test.d.ts +1 -0
- package/dist/tools/write-retro.d.ts +55 -0
- package/dist/transient-retry.test.d.ts +10 -0
- package/dist/types/delegation.d.ts +24 -0
- package/dist/types/events.d.ts +125 -0
- package/dist/utils/errors.d.ts +33 -0
- package/dist/utils/gitignore-warning.d.ts +17 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/logger.d.ts +3 -0
- package/dist/utils/merge.d.ts +5 -0
- package/dist/utils/path-security.d.ts +36 -0
- package/dist/utils/regex.d.ts +30 -0
- package/dist/utils/spec-hash.d.ts +15 -0
- package/dist/utils/tool-output.d.ts +12 -0
- package/dist/validation/task-id.d.ts +43 -0
- package/package.json +21 -14
- package/dist/architect.d.ts +0 -7
- package/dist/checkpoint.d.ts +0 -7
- package/dist/co-change-analyzer.d.ts +0 -1
- package/dist/compat.d.ts +0 -12
- package/dist/config-doctor.d.ts +0 -1
- package/dist/detector.d.ts +0 -7
- package/dist/diagnose-service.d.ts +0 -1
- package/dist/doctor.d.ts +0 -5
- package/dist/evidence-schema.d.ts +0 -2
- package/dist/evidence-service.d.ts +0 -1
- package/dist/export-service.d.ts +0 -1
- package/dist/handoff-service.d.ts +0 -1
- package/dist/history-service.d.ts +0 -1
- package/dist/hive-promoter.d.ts +0 -2
- package/dist/knowledge-migrator.d.ts +0 -2
- package/dist/knowledge-store.d.ts +0 -1
- package/dist/knowledge-types.d.ts +0 -1
- package/dist/knowledge-validator.d.ts +0 -2
- package/dist/loader.d.ts +0 -1
- package/dist/manager.d.ts +0 -1
- package/dist/models.d.ts +0 -1
- package/dist/plan-service.d.ts +0 -1
- package/dist/preflight-service.d.ts +0 -1
- package/dist/profiles.d.ts +0 -7
- package/dist/register.d.ts +0 -36
- package/dist/schema.d.ts +0 -2
- package/dist/snapshot-writer.d.ts +0 -1
- package/dist/status-service.d.ts +0 -15
- package/dist/telemetry/src/events.d.ts +0 -308
- package/dist/telemetry/src/guards.d.ts +0 -14
- package/dist/telemetry/src/index.d.ts +0 -4
- package/dist/telemetry/src/version.d.ts +0 -1
- package/dist/utils.d.ts +0 -1
- package/dist/write-retro.d.ts +0 -1
- /package/dist/{discovery.d.ts → build/discovery.d.ts} +0 -0
- /package/dist/{agents.d.ts → commands/agents.d.ts} +0 -0
- /package/dist/{analyze.d.ts → commands/analyze.d.ts} +0 -0
- /package/dist/{archive.d.ts → commands/archive.d.ts} +0 -0
- /package/dist/{benchmark.d.ts → commands/benchmark.d.ts} +0 -0
- /package/dist/{clarify.d.ts → commands/clarify.d.ts} +0 -0
- /package/dist/{curate.d.ts → commands/curate.d.ts} +0 -0
- /package/dist/{dark-matter.d.ts → commands/dark-matter.d.ts} +0 -0
- /package/dist/{diagnose.d.ts → commands/diagnose.d.ts} +0 -0
- /package/dist/{evidence.d.ts → commands/evidence.d.ts} +0 -0
- /package/dist/{export.d.ts → commands/export.d.ts} +0 -0
- /package/dist/{handoff.d.ts → commands/handoff.d.ts} +0 -0
- /package/dist/{history.d.ts → commands/history.d.ts} +0 -0
- /package/dist/{plan.d.ts → commands/plan.d.ts} +0 -0
- /package/dist/{preflight.d.ts → commands/preflight.d.ts} +0 -0
- /package/dist/{promote.d.ts → commands/promote.d.ts} +0 -0
- /package/dist/{reset.d.ts → commands/reset.d.ts} +0 -0
- /package/dist/{retrieve.d.ts → commands/retrieve.d.ts} +0 -0
- /package/dist/{rollback.d.ts → commands/rollback.d.ts} +0 -0
- /package/dist/{simulate.d.ts → commands/simulate.d.ts} +0 -0
- /package/dist/{specify.d.ts → commands/specify.d.ts} +0 -0
- /package/dist/{status.d.ts → commands/status.d.ts} +0 -0
- /package/dist/{turbo.d.ts → commands/turbo.d.ts} +0 -0
- /package/dist/{write_retro.d.ts → commands/write-retro.d.ts} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle /swarm brainstorm command.
|
|
3
|
+
*
|
|
4
|
+
* Returns a trigger prompt instructing the architect to enter
|
|
5
|
+
* MODE: BRAINSTORM — the seven-phase planning workflow defined in the
|
|
6
|
+
* architect prompt: CONTEXT SCAN → DIALOGUE → APPROACHES → DESIGN SECTIONS
|
|
7
|
+
* → SPEC WRITE + SELF-REVIEW → QA GATE SELECTION → TRANSITION.
|
|
8
|
+
*
|
|
9
|
+
* Any arguments become the initial topic/problem statement for the
|
|
10
|
+
* architect to reason about. The topic is sanitized to prevent prompt
|
|
11
|
+
* injection of rival MODE: headers or newline-based control sequences.
|
|
12
|
+
*/
|
|
13
|
+
export declare function handleBrainstormCommand(_directory: string, args: string[]): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles /swarm close command - performs full terminal session finalization:
|
|
3
|
+
* 0. Guarantee: mark all incomplete phases/tasks as closed
|
|
4
|
+
* 1. Finalize: write retrospectives, produce terminal summary
|
|
5
|
+
* 2. Archive: create timestamped bundle of swarm artifacts
|
|
6
|
+
* 3. Clean: clear active-state files that confuse future swarms
|
|
7
|
+
* 4. Align: safe git alignment to main
|
|
8
|
+
*
|
|
9
|
+
* Must be idempotent - safe to run multiple times.
|
|
10
|
+
*/
|
|
11
|
+
export declare function handleCloseCommand(directory: string, args: string[]): Promise<string>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adversarial Security Tests for Command Adapters (Task 5.10)
|
|
3
|
+
*
|
|
4
|
+
* ATTACK VECTORS COVERED:
|
|
5
|
+
* 1. Path Traversal - attempts to escape .swarm directory via command args
|
|
6
|
+
* 2. Null Byte Injection - injecting null bytes to truncate paths/strings
|
|
7
|
+
* 3. Control Character Injection - injecting control chars (0x00-0x1F)
|
|
8
|
+
* 4. Command Injection - shell metacharacters in args
|
|
9
|
+
* 5. Argument Pollution - malformed, oversized, special character args
|
|
10
|
+
* 6. Flag Injection - malicious flag values and combinations
|
|
11
|
+
* 7. Unicode Attacks - unicode normalization/replacement attacks
|
|
12
|
+
* 8. Edge Cases - empty, extremely long, boundary values
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle /swarm council command.
|
|
3
|
+
*
|
|
4
|
+
* Triggers the architect to enter MODE: COUNCIL — the General Council Mode
|
|
5
|
+
* deliberation workflow (Pre-flight → Round 1 parallel search → Synthesis +
|
|
6
|
+
* Deliberation → Moderator Pass → Output).
|
|
7
|
+
*
|
|
8
|
+
* Flag parsing:
|
|
9
|
+
* --preset <name> → emits "[MODE: COUNCIL preset=<name>] <question>"
|
|
10
|
+
* --spec-review → emits "[MODE: COUNCIL spec_review] <question>"
|
|
11
|
+
* default → emits "[MODE: COUNCIL] <question>"
|
|
12
|
+
* no args → returns usage string (no throw)
|
|
13
|
+
*
|
|
14
|
+
* Sanitizes the question to prevent prompt injection of rival MODE: headers
|
|
15
|
+
* or control sequences (mirrors brainstorm.ts).
|
|
16
|
+
*/
|
|
17
|
+
export declare function handleCouncilCommand(_directory: string, args: string[]): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ConfigDoctorResult } from '../services/config-doctor';
|
|
2
|
+
/**
|
|
3
|
+
* Format tool doctor result as markdown for command output.
|
|
4
|
+
*
|
|
5
|
+
* Exported for unit testing of the BLOCKING footer enforcement path.
|
|
6
|
+
*/
|
|
7
|
+
export declare function formatToolDoctorMarkdown(result: ConfigDoctorResult): string;
|
|
8
|
+
/**
|
|
9
|
+
* Handle /swarm config doctor command.
|
|
10
|
+
* Maps to: config doctor service (runConfigDoctor)
|
|
11
|
+
*/
|
|
12
|
+
export declare function handleDoctorCommand(directory: string, args: string[]): Promise<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Handle /swarm doctor tools command.
|
|
15
|
+
* Maps to: tool doctor service (runToolDoctor)
|
|
16
|
+
*/
|
|
17
|
+
export declare function handleDoctorToolsCommand(directory: string, _args: string[]): Promise<string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for Full-Auto command discoverability fixes.
|
|
3
|
+
*
|
|
4
|
+
* Verifies that TUI shortcuts, error messages, and registry entries
|
|
5
|
+
* all use the dashed form (/swarm-full-auto) while maintaining backward
|
|
6
|
+
* compatibility with the spaced form (/swarm full-auto).
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles the /swarm full-auto command.
|
|
3
|
+
* Toggles Full-Auto Mode on or off for the active session.
|
|
4
|
+
*
|
|
5
|
+
* @param directory - Project directory (unused but kept for consistency with other commands)
|
|
6
|
+
* @param args - Optional argument: "on" | "off" | undefined (toggle behavior)
|
|
7
|
+
* @param sessionID - Session ID for accessing active session state
|
|
8
|
+
* @returns Feedback message about Full-Auto Mode state
|
|
9
|
+
*/
|
|
10
|
+
export declare function handleFullAutoCommand(_directory: string, args: string[], sessionID: string): Promise<string>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regression Tests for Full-Auto Mode Integration.
|
|
3
|
+
*
|
|
4
|
+
* Covers the integration surfaces unique to full-auto mode:
|
|
5
|
+
* 1. /swarm full-auto command toggle, on, off
|
|
6
|
+
* 2. hasActiveFullAuto() - session-scoped and global-fallback behavior
|
|
7
|
+
* 3. System-enhancer hook injects FULL-AUTO MODE ACTIVE banner (Path A and global)
|
|
8
|
+
* 4. Counter reset side-effects are visible after disable
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { AgentDefinition } from '../agents/index.js';
|
|
2
|
+
export { handleAcknowledgeSpecDriftCommand } from './acknowledge-spec-drift';
|
|
3
|
+
export { handleAgentsCommand } from './agents';
|
|
4
|
+
export { handleAnalyzeCommand } from './analyze';
|
|
5
|
+
export { handleArchiveCommand } from './archive';
|
|
6
|
+
export { handleBenchmarkCommand } from './benchmark';
|
|
7
|
+
export { handleBrainstormCommand } from './brainstorm';
|
|
8
|
+
export { handleCheckpointCommand } from './checkpoint';
|
|
9
|
+
export { handleClarifyCommand } from './clarify';
|
|
10
|
+
export { handleCloseCommand } from './close';
|
|
11
|
+
export { handleConfigCommand } from './config';
|
|
12
|
+
export { handleCouncilCommand } from './council';
|
|
13
|
+
export { handleCurateCommand } from './curate';
|
|
14
|
+
export { handleDarkMatterCommand } from './dark-matter';
|
|
15
|
+
export { handleDiagnoseCommand } from './diagnose';
|
|
16
|
+
export { handleDoctorCommand } from './doctor';
|
|
17
|
+
export { handleEvidenceCommand, handleEvidenceSummaryCommand, } from './evidence';
|
|
18
|
+
export { handleExportCommand } from './export';
|
|
19
|
+
export { handleFullAutoCommand } from './full-auto';
|
|
20
|
+
export { handleHandoffCommand } from './handoff';
|
|
21
|
+
export { handleHistoryCommand } from './history';
|
|
22
|
+
export { handleKnowledgeListCommand, handleKnowledgeMigrateCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, } from './knowledge';
|
|
23
|
+
export { handlePlanCommand } from './plan';
|
|
24
|
+
export { handlePreflightCommand } from './preflight';
|
|
25
|
+
export { handlePromoteCommand } from './promote';
|
|
26
|
+
export { handleQaGatesCommand } from './qa-gates';
|
|
27
|
+
export type { CommandContext, CommandEntry, RegisteredCommand, } from './registry.js';
|
|
28
|
+
export { COMMAND_REGISTRY, resolveCommand, VALID_COMMANDS, } from './registry.js';
|
|
29
|
+
export { handleResetCommand } from './reset';
|
|
30
|
+
export { handleResetSessionCommand } from './reset-session';
|
|
31
|
+
export { handleRetrieveCommand } from './retrieve';
|
|
32
|
+
export { handleRollbackCommand } from './rollback';
|
|
33
|
+
export { handleSimulateCommand } from './simulate';
|
|
34
|
+
export { handleSpecifyCommand } from './specify';
|
|
35
|
+
export { handleStatusCommand } from './status';
|
|
36
|
+
export { handleSyncPlanCommand } from './sync-plan';
|
|
37
|
+
export { handleTurboCommand } from './turbo';
|
|
38
|
+
export { handleWriteRetroCommand } from './write-retro';
|
|
39
|
+
export declare function buildHelpText(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a command.execute.before handler for /swarm commands.
|
|
42
|
+
* Uses factory pattern to close over directory and agents.
|
|
43
|
+
*/
|
|
44
|
+
export declare function createSwarmCommandHandler(directory: string, agents: Record<string, AgentDefinition>): (input: {
|
|
45
|
+
command: string;
|
|
46
|
+
sessionID: string;
|
|
47
|
+
arguments: string;
|
|
48
|
+
}, output: {
|
|
49
|
+
parts: unknown[];
|
|
50
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle /swarm issue command.
|
|
3
|
+
*
|
|
4
|
+
* Triggers the architect to enter MODE: ISSUE_INGEST — the swarm issue ingest workflow.
|
|
5
|
+
* Accepts issue URL in multiple formats and sanitizes inputs against injection.
|
|
6
|
+
*
|
|
7
|
+
* Flag parsing:
|
|
8
|
+
* --plan → appends plan=true to emitted signal
|
|
9
|
+
* --trace → appends trace=true to emitted signal (implies --plan)
|
|
10
|
+
* --no-repro → appends noRepro=true to emitted signal
|
|
11
|
+
* no args → returns usage string (no throw)
|
|
12
|
+
*/
|
|
13
|
+
export declare function handleIssueCommand(_directory: string, args: string[]): string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Handles /swarm knowledge quarantine <id> [reason] command.
|
|
3
3
|
* Moves a knowledge entry to quarantine with optional reason.
|
|
4
|
+
* Accepts a full ID or a unique prefix.
|
|
4
5
|
*/
|
|
5
6
|
export declare function handleKnowledgeQuarantineCommand(directory: string, args: string[]): Promise<string>;
|
|
6
7
|
/**
|
|
7
8
|
* Handles /swarm knowledge restore <id> command.
|
|
8
9
|
* Restores a quarantined knowledge entry.
|
|
10
|
+
* Accepts a full ID or a unique prefix.
|
|
9
11
|
*/
|
|
10
12
|
export declare function handleKnowledgeRestoreCommand(directory: string, args: string[]): Promise<string>;
|
|
11
13
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle /swarm pr-review command.
|
|
3
|
+
*
|
|
4
|
+
* Triggers the architect to enter MODE: PR_REVIEW — the swarm PR review workflow.
|
|
5
|
+
* Accepts PR URL in multiple formats and sanitizes inputs against injection.
|
|
6
|
+
*
|
|
7
|
+
* Flag parsing:
|
|
8
|
+
* --council → appends council=true to emitted signal
|
|
9
|
+
* no args → returns usage string (no throw)
|
|
10
|
+
*/
|
|
11
|
+
export declare function handlePrReviewCommand(_directory: string, args: string[]): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* /swarm qa-gates command.
|
|
3
|
+
*
|
|
4
|
+
* View, enable, or add session overrides for QA gates tied to the current
|
|
5
|
+
* plan's QA gate profile. Read-only display when called without arguments;
|
|
6
|
+
* ratchet-tighter enable/override when called with `enable <gate>...` or
|
|
7
|
+
* `override <gate>...`.
|
|
8
|
+
*
|
|
9
|
+
* /swarm qa-gates -> show profile + effective gates
|
|
10
|
+
* /swarm qa-gates enable <gate>... -> persist into profile (architect)
|
|
11
|
+
* /swarm qa-gates override <gate>... -> session-only override
|
|
12
|
+
*
|
|
13
|
+
* Refuses to persist into a locked profile.
|
|
14
|
+
*/
|
|
15
|
+
export declare function handleQaGatesCommand(directory: string, args: string[], sessionID: string): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import type { AgentDefinition } from '../agents/index.js';
|
|
2
|
+
export type CommandContext = {
|
|
3
|
+
directory: string;
|
|
4
|
+
args: string[];
|
|
5
|
+
sessionID: string;
|
|
6
|
+
agents: Record<string, AgentDefinition>;
|
|
7
|
+
};
|
|
8
|
+
export type CommandResult = Promise<string>;
|
|
9
|
+
export type CommandEntry = {
|
|
10
|
+
handler: (ctx: CommandContext) => CommandResult;
|
|
11
|
+
/** Human-readable description shown in /swarm help and CLI --help */
|
|
12
|
+
description: string;
|
|
13
|
+
/** If true, this command is only accessible as a sub-key of a parent command */
|
|
14
|
+
subcommandOf?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 2-3 line behavioral summary: what the command does step-by-step,
|
|
17
|
+
* side effects, and safety guarantees.
|
|
18
|
+
*/
|
|
19
|
+
details?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Documents flags and positional arguments. Format: flags comma-separated with
|
|
22
|
+
* double-dash prefix, positional args in angle brackets.
|
|
23
|
+
* Example: args: '--dry-run, --confirm, <phase-number>'
|
|
24
|
+
*/
|
|
25
|
+
args?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const COMMAND_REGISTRY: {
|
|
28
|
+
readonly 'acknowledge-spec-drift': {
|
|
29
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
30
|
+
readonly description: "Acknowledge that the spec has drifted from the plan and suppress further warnings";
|
|
31
|
+
readonly args: "";
|
|
32
|
+
};
|
|
33
|
+
readonly status: {
|
|
34
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
35
|
+
readonly description: "Show current swarm state";
|
|
36
|
+
};
|
|
37
|
+
readonly plan: {
|
|
38
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
39
|
+
readonly description: "Show plan (optionally filter by phase number)";
|
|
40
|
+
};
|
|
41
|
+
readonly agents: {
|
|
42
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
43
|
+
readonly description: "List registered agents";
|
|
44
|
+
};
|
|
45
|
+
readonly history: {
|
|
46
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
47
|
+
readonly description: "Show completed phases summary";
|
|
48
|
+
};
|
|
49
|
+
readonly config: {
|
|
50
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
51
|
+
readonly description: "Show current resolved configuration";
|
|
52
|
+
};
|
|
53
|
+
readonly 'config doctor': {
|
|
54
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
55
|
+
readonly description: "Run config doctor checks";
|
|
56
|
+
readonly subcommandOf: "config";
|
|
57
|
+
};
|
|
58
|
+
readonly 'config-doctor': {
|
|
59
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
60
|
+
readonly description: "Run config doctor checks";
|
|
61
|
+
readonly subcommandOf: "config";
|
|
62
|
+
};
|
|
63
|
+
readonly 'doctor tools': {
|
|
64
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
65
|
+
readonly description: "Run tool registration coherence check";
|
|
66
|
+
};
|
|
67
|
+
readonly diagnose: {
|
|
68
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
69
|
+
readonly description: "Run health check on swarm state";
|
|
70
|
+
};
|
|
71
|
+
readonly diagnosis: {
|
|
72
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
73
|
+
readonly description: "Run health check on swarm state";
|
|
74
|
+
};
|
|
75
|
+
readonly preflight: {
|
|
76
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
77
|
+
readonly description: "Run preflight automation checks";
|
|
78
|
+
};
|
|
79
|
+
readonly 'sync-plan': {
|
|
80
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
81
|
+
readonly description: "Ensure plan.json and plan.md are synced";
|
|
82
|
+
readonly args: "";
|
|
83
|
+
};
|
|
84
|
+
readonly benchmark: {
|
|
85
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
86
|
+
readonly description: "Show performance metrics [--cumulative] [--ci-gate]";
|
|
87
|
+
readonly args: "--cumulative, --ci-gate";
|
|
88
|
+
};
|
|
89
|
+
readonly export: {
|
|
90
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
91
|
+
readonly description: "Export plan and context as JSON";
|
|
92
|
+
readonly args: "";
|
|
93
|
+
readonly details: "Exports the current plan and context as JSON to stdout. Useful for piping to external tools or debugging swarm state.";
|
|
94
|
+
};
|
|
95
|
+
readonly evidence: {
|
|
96
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
97
|
+
readonly description: "Show evidence bundles [taskId]";
|
|
98
|
+
readonly args: "<taskId>";
|
|
99
|
+
readonly details: "Displays review results, test verdicts, and other evidence bundles for the given task ID (e.g., \"2.1\").";
|
|
100
|
+
};
|
|
101
|
+
readonly 'evidence summary': {
|
|
102
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
103
|
+
readonly description: "Generate evidence summary with completion ratio and blockers";
|
|
104
|
+
readonly subcommandOf: "evidence";
|
|
105
|
+
readonly args: "";
|
|
106
|
+
readonly details: "Generates a summary showing completion ratio across all tasks, lists blockers, and identifies missing evidence.";
|
|
107
|
+
};
|
|
108
|
+
readonly 'evidence-summary': {
|
|
109
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
110
|
+
readonly description: "Generate evidence summary with completion ratio and blockers";
|
|
111
|
+
readonly subcommandOf: "evidence";
|
|
112
|
+
readonly args: "";
|
|
113
|
+
readonly details: "Generates a summary showing completion ratio across all tasks, lists blockers, and identifies missing evidence.";
|
|
114
|
+
};
|
|
115
|
+
readonly archive: {
|
|
116
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
117
|
+
readonly description: "Archive old evidence bundles [--dry-run]";
|
|
118
|
+
readonly details: "Archives evidence bundles older than max_age_days (config, default 90) or beyond max_bundles cap (config, default 1000). --dry-run previews which bundles would be archived without deleting them. Applies two-tier retention: age-based first, then count-based on oldest remaining.";
|
|
119
|
+
readonly args: "--dry-run";
|
|
120
|
+
};
|
|
121
|
+
readonly curate: {
|
|
122
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
123
|
+
readonly description: "Run knowledge curation and hive promotion review";
|
|
124
|
+
readonly args: "";
|
|
125
|
+
};
|
|
126
|
+
readonly 'dark-matter': {
|
|
127
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
128
|
+
readonly description: "Detect hidden file couplings via co-change NPMI analysis";
|
|
129
|
+
readonly args: "--threshold <number>, --min-commits <number>";
|
|
130
|
+
};
|
|
131
|
+
readonly close: {
|
|
132
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
133
|
+
readonly description: "Use /swarm close to close the swarm project and archive evidence";
|
|
134
|
+
readonly details: "Idempotent 4-stage terminal finalization: (1) finalize writes retrospectives for in-progress phases, (2) archive creates timestamped bundle of swarm artifacts and evidence, (3) clean removes active-state files for a clean slate, (4) align performs safe git ff-only to main. Resets agent sessions and delegation chains. Reads .swarm/close-lessons.md for explicit lessons and runs curation.";
|
|
135
|
+
readonly args: "--prune-branches";
|
|
136
|
+
};
|
|
137
|
+
readonly simulate: {
|
|
138
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
139
|
+
readonly description: "Dry-run hidden coupling analysis with configurable thresholds";
|
|
140
|
+
readonly args: "--threshold <number>, --min-commits <number>";
|
|
141
|
+
};
|
|
142
|
+
readonly analyze: {
|
|
143
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
144
|
+
readonly description: "Analyze spec.md vs plan.md for requirement coverage gaps";
|
|
145
|
+
readonly args: "";
|
|
146
|
+
};
|
|
147
|
+
readonly clarify: {
|
|
148
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
149
|
+
readonly description: "Clarify and refine an existing feature specification";
|
|
150
|
+
readonly args: "[description-text]";
|
|
151
|
+
};
|
|
152
|
+
readonly specify: {
|
|
153
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
154
|
+
readonly description: "Generate or import a feature specification [description]";
|
|
155
|
+
readonly args: "[description-text]";
|
|
156
|
+
};
|
|
157
|
+
readonly brainstorm: {
|
|
158
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
159
|
+
readonly description: "Enter architect MODE: BRAINSTORM — structured seven-phase planning workflow [topic]";
|
|
160
|
+
readonly args: "[topic-text]";
|
|
161
|
+
readonly details: "Triggers the architect to run the brainstorm workflow: CONTEXT SCAN, single-question DIALOGUE, APPROACHES, DESIGN SECTIONS, SPEC WRITE + SELF-REVIEW, QA GATE SELECTION, TRANSITION. Use for new plans where requirements need to be drawn out before writing spec.md / plan.md.";
|
|
162
|
+
};
|
|
163
|
+
readonly council: {
|
|
164
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
165
|
+
readonly description: "Enter architect MODE: COUNCIL — multi-model deliberation [question] [--preset <name>] [--spec-review]";
|
|
166
|
+
readonly args: "<question> [--preset <name>] [--spec-review]";
|
|
167
|
+
readonly details: "Triggers the architect to convene a configurable General Council: each member independently web-searches, answers, and engages in one structured deliberation round on disagreements; an optional moderator pass synthesizes the final answer. --preset <name> selects a member group from council.general.presets. --spec-review switches to single-pass advisory mode for spec review. Requires council.general.enabled: true and a search API key in opencode-swarm.json.";
|
|
168
|
+
};
|
|
169
|
+
readonly 'pr-review': {
|
|
170
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
171
|
+
readonly description: "Launch deep PR review with multi-lane analysis [url] [--council]";
|
|
172
|
+
readonly args: "<pr-url|owner/repo#N|N> [--council]";
|
|
173
|
+
readonly details: "Launches a structured PR review: reconstructs PR intent via obligation extraction cascade, runs 6 parallel explorer lanes (correctness, security, dependencies, docs-intent-vs-actual, tests, performance-architecture), validates findings through independent reviewer confirmation, applies critic challenge to HIGH/CRITICAL findings, synthesizes structured report. --council variant fires adversarial multi-model review. Supports full GitHub URL, owner/repo#N shorthand, or bare PR number (resolves against origin remote).";
|
|
174
|
+
};
|
|
175
|
+
readonly issue: {
|
|
176
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
177
|
+
readonly description: "Ingest a GitHub issue into the swarm workflow [url] [--plan] [--trace] [--no-repro]";
|
|
178
|
+
readonly args: "<issue-url|owner/repo#N|N> [--plan] [--trace] [--no-repro]";
|
|
179
|
+
readonly details: "Triggers the architect to enter MODE: ISSUE_INGEST — ingests a GitHub issue, restructures it into a normalized intake note, localizes root cause through hypothesis-driven tracing, and outputs a resolution spec. --plan transitions to plan creation after spec generation. --trace runs the full fix-and-PR workflow (implies --plan). --no-repro skips the reproduction step. Supports full GitHub URL, owner/repo#N shorthand, or bare issue number (resolves against origin remote).";
|
|
180
|
+
};
|
|
181
|
+
readonly 'qa-gates': {
|
|
182
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
183
|
+
readonly description: "View or modify QA gate profile for the current plan [enable|override <gate>...]";
|
|
184
|
+
readonly args: "[show|enable|override] <gate>...";
|
|
185
|
+
readonly details: "show: display spec-level, session-override, and effective QA gates for the current plan. enable: persist gate(s) into the locked-once profile (architect; rejected after critic approval lock). override: session-only ratchet-tighter enable. Valid gates: reviewer, test_engineer, council_mode, sme_enabled, critic_pre_plan, hallucination_guard, sast_enabled, mutation_test, council_general_review, drift_check.";
|
|
186
|
+
};
|
|
187
|
+
readonly promote: {
|
|
188
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
189
|
+
readonly description: "Manually promote lesson to hive knowledge";
|
|
190
|
+
readonly details: "Promotes a lesson directly to hive knowledge (--category flag sets category) or references an existing swarm lesson by ID (--from-swarm). Validates lesson text before promotion. Either direct text or --from-swarm ID is required.";
|
|
191
|
+
readonly args: "--category <category>, --from-swarm <lesson-id>, <lesson-text>";
|
|
192
|
+
};
|
|
193
|
+
readonly reset: {
|
|
194
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
195
|
+
readonly description: "Clear swarm state files [--confirm]";
|
|
196
|
+
readonly details: "DELETES plan.md, context.md, and summaries/ directory from .swarm/. Stops background automation and clears in-memory queues. SAFETY: requires --confirm flag — without it, displays a warning and tips to export first.";
|
|
197
|
+
readonly args: "--confirm (required)";
|
|
198
|
+
};
|
|
199
|
+
readonly 'reset-session': {
|
|
200
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
201
|
+
readonly description: "Clear session state while preserving plan, evidence, and knowledge";
|
|
202
|
+
readonly details: "Deletes only .swarm/session/state.json and any other session files. Clears in-memory agent sessions and delegation chains. Preserves plan, evidence, and knowledge for cross-session continuity.";
|
|
203
|
+
readonly args: "";
|
|
204
|
+
};
|
|
205
|
+
readonly rollback: {
|
|
206
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
207
|
+
readonly description: "Restore swarm state to a checkpoint <phase>";
|
|
208
|
+
readonly details: "Restores .swarm/ state by directly overwriting files from a checkpoint directory (checkpoints/phase-<N>). Writes rollback event to events.jsonl. Without phase argument, lists available checkpoints. Partial failures are reported but processing continues.";
|
|
209
|
+
readonly args: "<phase-number>";
|
|
210
|
+
};
|
|
211
|
+
readonly retrieve: {
|
|
212
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
213
|
+
readonly description: "Retrieve full output from a summary <id>";
|
|
214
|
+
readonly args: "<summary-id>";
|
|
215
|
+
readonly details: "Loads the full tool output that was previously summarized (referenced by IDs like S1, S2). Use when you need the complete output instead of the truncated summary.";
|
|
216
|
+
};
|
|
217
|
+
readonly handoff: {
|
|
218
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
219
|
+
readonly description: "Prepare state for clean model switch (new session)";
|
|
220
|
+
readonly args: "";
|
|
221
|
+
readonly details: "Generates handoff.md with full session state snapshot, including plan progress, recent decisions, and agent delegation history. Prepended to the next session prompt for seamless model switches.";
|
|
222
|
+
};
|
|
223
|
+
readonly turbo: {
|
|
224
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
225
|
+
readonly description: "Toggle Turbo Mode for the active session [on|off]";
|
|
226
|
+
readonly args: "on, off";
|
|
227
|
+
readonly details: "Toggles Turbo Mode which skips non-critical QA gates for faster iteration. When enabled, the architect can proceed without waiting for all automated checks. Session-scoped — resets on new session. Use \"on\" or \"off\" to set explicitly, or toggle with no argument.";
|
|
228
|
+
};
|
|
229
|
+
readonly 'full-auto': {
|
|
230
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
231
|
+
readonly description: "Toggle Full-Auto Mode for the active session [on|off]";
|
|
232
|
+
readonly args: "on, off";
|
|
233
|
+
readonly details: "Toggles Full-Auto Mode which enables autonomous execution without confirmation prompts. When enabled, the architect proceeds through implementation steps automatically. Session-scoped — resets on new session. Use \"on\" or \"off\" to set explicitly, or toggle with no argument.";
|
|
234
|
+
};
|
|
235
|
+
readonly 'write-retro': {
|
|
236
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
237
|
+
readonly description: "Write a retrospective evidence bundle for a completed phase <json>";
|
|
238
|
+
readonly details: "Writes retrospective evidence bundle to .swarm/evidence/retro-{phase}/evidence.json. Required JSON: phase, summary, task_count, task_complexity, total_tool_calls, coder_revisions, reviewer_rejections, test_failures, security_findings, integration_issues. Optional: lessons_learned (max 5), top_rejection_reasons, task_id, metadata.";
|
|
239
|
+
readonly args: "<json: {phase, summary, task_count, task_complexity, ...}>";
|
|
240
|
+
};
|
|
241
|
+
readonly 'knowledge migrate': {
|
|
242
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
243
|
+
readonly description: "Migrate knowledge entries to the current format";
|
|
244
|
+
readonly subcommandOf: "knowledge";
|
|
245
|
+
readonly details: "One-time migration from .swarm/context.md SME cache to .swarm/knowledge.jsonl. Skips if sentinel file .swarm/.knowledge-migrated exists, if context.md is absent, or if context.md is empty. Reports entries migrated, dropped (validation/dedup), and total processed.";
|
|
246
|
+
readonly args: "<directory>";
|
|
247
|
+
};
|
|
248
|
+
readonly 'knowledge quarantine': {
|
|
249
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
250
|
+
readonly description: "Move a knowledge entry to quarantine <id> [reason]";
|
|
251
|
+
readonly subcommandOf: "knowledge";
|
|
252
|
+
readonly details: "Moves a knowledge entry to quarantine with optional reason string (defaults to \"Quarantined via /swarm knowledge quarantine command\"). Validates entry ID format (1-64 alphanumeric/hyphen/underscore). Quarantined entries are excluded from knowledge queries.";
|
|
253
|
+
readonly args: "<entry-id> [reason]";
|
|
254
|
+
};
|
|
255
|
+
readonly 'knowledge restore': {
|
|
256
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
257
|
+
readonly description: "Restore a quarantined knowledge entry <id>";
|
|
258
|
+
readonly subcommandOf: "knowledge";
|
|
259
|
+
readonly details: "Restores a quarantined knowledge entry back to the active knowledge store by ID. Validates entry ID format (1-64 alphanumeric/hyphen/underscore). Entry must currently be in quarantine state.";
|
|
260
|
+
readonly args: "<entry-id>";
|
|
261
|
+
};
|
|
262
|
+
readonly knowledge: {
|
|
263
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
264
|
+
readonly description: "List knowledge entries";
|
|
265
|
+
};
|
|
266
|
+
readonly checkpoint: {
|
|
267
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
268
|
+
readonly description: "Manage project checkpoints [save|restore|delete|list] <label>";
|
|
269
|
+
readonly details: "save: creates named snapshot of current .swarm/ state. restore: soft-resets to checkpoint by overwriting current .swarm/ files. delete: removes named checkpoint. list: shows all checkpoints with timestamps. All subcommands require a label except list.";
|
|
270
|
+
readonly args: "<save|restore|delete|list> <label>";
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
export type RegisteredCommand = keyof typeof COMMAND_REGISTRY;
|
|
274
|
+
export declare const VALID_COMMANDS: RegisteredCommand[];
|
|
275
|
+
/**
|
|
276
|
+
* Resolves compound commands like "evidence summary" and "config doctor".
|
|
277
|
+
* Tries a two-token compound key first, then falls back to a single-token key.
|
|
278
|
+
*/
|
|
279
|
+
export declare function resolveCommand(tokens: string[]): {
|
|
280
|
+
entry: CommandEntry;
|
|
281
|
+
remainingArgs: string[];
|
|
282
|
+
} | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handles the /swarm reset-session command.
|
|
3
|
+
* Deletes only the session state file (.swarm/session/state.json)
|
|
4
|
+
* and clears in-memory agent sessions. Preserves plan, evidence,
|
|
5
|
+
* and knowledge for continuity across sessions.
|
|
6
|
+
*/
|
|
7
|
+
export declare function handleResetSessionCommand(directory: string, _args: string[]): Promise<string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Regression tests for swarm-* shortcut command routing.
|
|
3
|
+
*
|
|
4
|
+
* When a user selects a shortcut command from the OpenCode command picker
|
|
5
|
+
* (e.g. swarm-config, swarm-status, swarm-turbo), OpenCode sets
|
|
6
|
+
* input.command to the registered key name ('swarm-config') rather than
|
|
7
|
+
* the generic 'swarm' key. Previously the handler returned early for any
|
|
8
|
+
* command that wasn't exactly 'swarm', so these shortcuts fell through to
|
|
9
|
+
* the LLM as plain text. This file verifies they are correctly routed.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* Maps to: plan service (loadPlan which triggers auto-heal/sync)
|
|
4
4
|
*
|
|
5
5
|
* This command ensures plan.json and plan.md are in sync.
|
|
6
|
-
*
|
|
6
|
+
* loadPlan() is safe here: the migration-aware ledger guard in loadPlan()
|
|
7
|
+
* now prevents false reverts caused by swarm identity changes, so the
|
|
8
|
+
* full auto-heal path (including legacy plan.md migration) is correct.
|
|
7
9
|
*/
|
|
8
10
|
export declare function handleSyncPlanCommand(directory: string, _args: string[]): Promise<string>;
|