@codeledger/cli 0.10.2 → 0.10.6
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 +61 -0
- package/README.md +97 -0
- package/bin/codeledger.js +66 -0
- package/package.json +32 -46
- package/scripts/postinstall.js +285 -0
- package/bin/codeledger-open.cjs +0 -89
- package/bin/codeledger-standalone.cjs +0 -3182
- package/dist/ambient-activation.d.ts +0 -30
- package/dist/ambient-activation.d.ts.map +0 -1
- package/dist/ambient-activation.js +0 -449
- package/dist/ambient-activation.js.map +0 -1
- package/dist/arch-policy/resolve.d.ts +0 -11
- package/dist/arch-policy/resolve.d.ts.map +0 -1
- package/dist/arch-policy/resolve.js +0 -195
- package/dist/arch-policy/resolve.js.map +0 -1
- package/dist/arch-policy/simulate.d.ts +0 -9
- package/dist/arch-policy/simulate.d.ts.map +0 -1
- package/dist/arch-policy/simulate.js +0 -175
- package/dist/arch-policy/simulate.js.map +0 -1
- package/dist/architecture-graph/dependency-scanner.d.ts +0 -16
- package/dist/architecture-graph/dependency-scanner.d.ts.map +0 -1
- package/dist/architecture-graph/dependency-scanner.js +0 -96
- package/dist/architecture-graph/dependency-scanner.js.map +0 -1
- package/dist/architecture-graph/graph-builder.d.ts +0 -70
- package/dist/architecture-graph/graph-builder.d.ts.map +0 -1
- package/dist/architecture-graph/graph-builder.js +0 -231
- package/dist/architecture-graph/graph-builder.js.map +0 -1
- package/dist/architecture-graph/index.d.ts +0 -4
- package/dist/architecture-graph/index.d.ts.map +0 -1
- package/dist/architecture-graph/index.js +0 -7
- package/dist/architecture-graph/index.js.map +0 -1
- package/dist/architecture-graph/service-scanner.d.ts +0 -22
- package/dist/architecture-graph/service-scanner.d.ts.map +0 -1
- package/dist/architecture-graph/service-scanner.js +0 -181
- package/dist/architecture-graph/service-scanner.js.map +0 -1
- package/dist/artifacts/summary.d.ts +0 -6
- package/dist/artifacts/summary.d.ts.map +0 -1
- package/dist/artifacts/summary.js +0 -49
- package/dist/artifacts/summary.js.map +0 -1
- package/dist/command-activation.d.ts +0 -3
- package/dist/command-activation.d.ts.map +0 -1
- package/dist/command-activation.js +0 -2
- package/dist/command-activation.js.map +0 -1
- package/dist/commands/about.d.ts +0 -2
- package/dist/commands/about.d.ts.map +0 -1
- package/dist/commands/about.js +0 -18
- package/dist/commands/about.js.map +0 -1
- package/dist/commands/activate.d.ts +0 -18
- package/dist/commands/activate.d.ts.map +0 -1
- package/dist/commands/activate.js +0 -1110
- package/dist/commands/activate.js.map +0 -1
- package/dist/commands/apply-policy.d.ts +0 -7
- package/dist/commands/apply-policy.d.ts.map +0 -1
- package/dist/commands/apply-policy.js +0 -62
- package/dist/commands/apply-policy.js.map +0 -1
- package/dist/commands/arch-policy.d.ts +0 -8
- package/dist/commands/arch-policy.d.ts.map +0 -1
- package/dist/commands/arch-policy.js +0 -349
- package/dist/commands/arch-policy.js.map +0 -1
- package/dist/commands/audit-export.d.ts +0 -8
- package/dist/commands/audit-export.d.ts.map +0 -1
- package/dist/commands/audit-export.js +0 -192
- package/dist/commands/audit-export.js.map +0 -1
- package/dist/commands/audit.d.ts +0 -24
- package/dist/commands/audit.d.ts.map +0 -1
- package/dist/commands/audit.js +0 -1138
- package/dist/commands/audit.js.map +0 -1
- package/dist/commands/auto-refresh.d.ts +0 -17
- package/dist/commands/auto-refresh.d.ts.map +0 -1
- package/dist/commands/auto-refresh.js +0 -152
- package/dist/commands/auto-refresh.js.map +0 -1
- package/dist/commands/broker.d.ts +0 -22
- package/dist/commands/broker.d.ts.map +0 -1
- package/dist/commands/broker.js +0 -487
- package/dist/commands/broker.js.map +0 -1
- package/dist/commands/bundle.d.ts +0 -2
- package/dist/commands/bundle.d.ts.map +0 -1
- package/dist/commands/bundle.js +0 -230
- package/dist/commands/bundle.js.map +0 -1
- package/dist/commands/capsule-change.d.ts +0 -7
- package/dist/commands/capsule-change.d.ts.map +0 -1
- package/dist/commands/capsule-change.js +0 -177
- package/dist/commands/capsule-change.js.map +0 -1
- package/dist/commands/checkpoint.d.ts +0 -26
- package/dist/commands/checkpoint.d.ts.map +0 -1
- package/dist/commands/checkpoint.js +0 -382
- package/dist/commands/checkpoint.js.map +0 -1
- package/dist/commands/ci.d.ts +0 -16
- package/dist/commands/ci.d.ts.map +0 -1
- package/dist/commands/ci.js +0 -287
- package/dist/commands/ci.js.map +0 -1
- package/dist/commands/claims.d.ts +0 -14
- package/dist/commands/claims.d.ts.map +0 -1
- package/dist/commands/claims.js +0 -93
- package/dist/commands/claims.js.map +0 -1
- package/dist/commands/claude.d.ts +0 -2
- package/dist/commands/claude.d.ts.map +0 -1
- package/dist/commands/claude.js +0 -5
- package/dist/commands/claude.js.map +0 -1
- package/dist/commands/clean.d.ts +0 -2
- package/dist/commands/clean.d.ts.map +0 -1
- package/dist/commands/clean.js +0 -28
- package/dist/commands/clean.js.map +0 -1
- package/dist/commands/coach.d.ts +0 -11
- package/dist/commands/coach.d.ts.map +0 -1
- package/dist/commands/coach.js +0 -169
- package/dist/commands/coach.js.map +0 -1
- package/dist/commands/codex.d.ts +0 -2
- package/dist/commands/codex.d.ts.map +0 -1
- package/dist/commands/codex.js +0 -5
- package/dist/commands/codex.js.map +0 -1
- package/dist/commands/commit-msg.d.ts +0 -58
- package/dist/commands/commit-msg.d.ts.map +0 -1
- package/dist/commands/commit-msg.js +0 -461
- package/dist/commands/commit-msg.js.map +0 -1
- package/dist/commands/compare-current.d.ts +0 -2
- package/dist/commands/compare-current.d.ts.map +0 -1
- package/dist/commands/compare-current.js +0 -186
- package/dist/commands/compare-current.js.map +0 -1
- package/dist/commands/compare.d.ts +0 -2
- package/dist/commands/compare.d.ts.map +0 -1
- package/dist/commands/compare.js +0 -253
- package/dist/commands/compare.js.map +0 -1
- package/dist/commands/complete-check.d.ts +0 -24
- package/dist/commands/complete-check.d.ts.map +0 -1
- package/dist/commands/complete-check.js +0 -287
- package/dist/commands/complete-check.js.map +0 -1
- package/dist/commands/conflicts.d.ts +0 -12
- package/dist/commands/conflicts.d.ts.map +0 -1
- package/dist/commands/conflicts.js +0 -55
- package/dist/commands/conflicts.js.map +0 -1
- package/dist/commands/context-handoff.d.ts +0 -2
- package/dist/commands/context-handoff.d.ts.map +0 -1
- package/dist/commands/context-handoff.js +0 -58
- package/dist/commands/context-handoff.js.map +0 -1
- package/dist/commands/context.d.ts +0 -22
- package/dist/commands/context.d.ts.map +0 -1
- package/dist/commands/context.js +0 -836
- package/dist/commands/context.js.map +0 -1
- package/dist/commands/coordination.d.ts +0 -6
- package/dist/commands/coordination.d.ts.map +0 -1
- package/dist/commands/coordination.js +0 -177
- package/dist/commands/coordination.js.map +0 -1
- package/dist/commands/cowork-refresh.d.ts +0 -8
- package/dist/commands/cowork-refresh.d.ts.map +0 -1
- package/dist/commands/cowork-refresh.js +0 -50
- package/dist/commands/cowork-refresh.js.map +0 -1
- package/dist/commands/cowork-snapshot.d.ts +0 -8
- package/dist/commands/cowork-snapshot.d.ts.map +0 -1
- package/dist/commands/cowork-snapshot.js +0 -34
- package/dist/commands/cowork-snapshot.js.map +0 -1
- package/dist/commands/cowork-start.d.ts +0 -8
- package/dist/commands/cowork-start.d.ts.map +0 -1
- package/dist/commands/cowork-start.js +0 -71
- package/dist/commands/cowork-start.js.map +0 -1
- package/dist/commands/cowork-stop.d.ts +0 -7
- package/dist/commands/cowork-stop.d.ts.map +0 -1
- package/dist/commands/cowork-stop.js +0 -43
- package/dist/commands/cowork-stop.js.map +0 -1
- package/dist/commands/daemon.d.ts +0 -2
- package/dist/commands/daemon.d.ts.map +0 -1
- package/dist/commands/daemon.js +0 -5
- package/dist/commands/daemon.js.map +0 -1
- package/dist/commands/dashboard.d.ts +0 -18
- package/dist/commands/dashboard.d.ts.map +0 -1
- package/dist/commands/dashboard.js +0 -481
- package/dist/commands/dashboard.js.map +0 -1
- package/dist/commands/detect-secrets.d.ts +0 -19
- package/dist/commands/detect-secrets.d.ts.map +0 -1
- package/dist/commands/detect-secrets.js +0 -210
- package/dist/commands/detect-secrets.js.map +0 -1
- package/dist/commands/discover-check.d.ts +0 -19
- package/dist/commands/discover-check.d.ts.map +0 -1
- package/dist/commands/discover-check.js +0 -256
- package/dist/commands/discover-check.js.map +0 -1
- package/dist/commands/discover-gate.d.ts +0 -20
- package/dist/commands/discover-gate.d.ts.map +0 -1
- package/dist/commands/discover-gate.js +0 -131
- package/dist/commands/discover-gate.js.map +0 -1
- package/dist/commands/discover.d.ts +0 -14
- package/dist/commands/discover.d.ts.map +0 -1
- package/dist/commands/discover.js +0 -132
- package/dist/commands/discover.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -9
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -277
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/drift.d.ts +0 -2
- package/dist/commands/drift.d.ts.map +0 -1
- package/dist/commands/drift.js +0 -171
- package/dist/commands/drift.js.map +0 -1
- package/dist/commands/ecl.d.ts +0 -11
- package/dist/commands/ecl.d.ts.map +0 -1
- package/dist/commands/ecl.js +0 -109
- package/dist/commands/ecl.js.map +0 -1
- package/dist/commands/enable.d.ts +0 -7
- package/dist/commands/enable.d.ts.map +0 -1
- package/dist/commands/enable.js +0 -75
- package/dist/commands/enable.js.map +0 -1
- package/dist/commands/evidence.d.ts +0 -2
- package/dist/commands/evidence.d.ts.map +0 -1
- package/dist/commands/evidence.js +0 -53
- package/dist/commands/evidence.js.map +0 -1
- package/dist/commands/features.d.ts +0 -2
- package/dist/commands/features.d.ts.map +0 -1
- package/dist/commands/features.js +0 -185
- package/dist/commands/features.js.map +0 -1
- package/dist/commands/fix.d.ts +0 -7
- package/dist/commands/fix.d.ts.map +0 -1
- package/dist/commands/fix.js +0 -107
- package/dist/commands/fix.js.map +0 -1
- package/dist/commands/fleet.d.ts +0 -17
- package/dist/commands/fleet.d.ts.map +0 -1
- package/dist/commands/fleet.js +0 -682
- package/dist/commands/fleet.js.map +0 -1
- package/dist/commands/graph.d.ts +0 -18
- package/dist/commands/graph.d.ts.map +0 -1
- package/dist/commands/graph.js +0 -370
- package/dist/commands/graph.js.map +0 -1
- package/dist/commands/guardrails.d.ts +0 -11
- package/dist/commands/guardrails.d.ts.map +0 -1
- package/dist/commands/guardrails.js +0 -112
- package/dist/commands/guardrails.js.map +0 -1
- package/dist/commands/harvest.d.ts +0 -2
- package/dist/commands/harvest.d.ts.map +0 -1
- package/dist/commands/harvest.js +0 -136
- package/dist/commands/harvest.js.map +0 -1
- package/dist/commands/health.d.ts +0 -8
- package/dist/commands/health.d.ts.map +0 -1
- package/dist/commands/health.js +0 -101
- package/dist/commands/health.js.map +0 -1
- package/dist/commands/hotspots.d.ts +0 -2
- package/dist/commands/hotspots.d.ts.map +0 -1
- package/dist/commands/hotspots.js +0 -20
- package/dist/commands/hotspots.js.map +0 -1
- package/dist/commands/init.d.ts +0 -12
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -423
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/insight-seed.d.ts +0 -2
- package/dist/commands/insight-seed.d.ts.map +0 -1
- package/dist/commands/insight-seed.js +0 -59
- package/dist/commands/insight-seed.js.map +0 -1
- package/dist/commands/insight-smoke-test.d.ts +0 -2
- package/dist/commands/insight-smoke-test.d.ts.map +0 -1
- package/dist/commands/insight-smoke-test.js +0 -44
- package/dist/commands/insight-smoke-test.js.map +0 -1
- package/dist/commands/insight.d.ts +0 -2
- package/dist/commands/insight.d.ts.map +0 -1
- package/dist/commands/insight.js +0 -183
- package/dist/commands/insight.js.map +0 -1
- package/dist/commands/intent.d.ts +0 -39
- package/dist/commands/intent.d.ts.map +0 -1
- package/dist/commands/intent.js +0 -539
- package/dist/commands/intent.js.map +0 -1
- package/dist/commands/intervene.d.ts +0 -11
- package/dist/commands/intervene.d.ts.map +0 -1
- package/dist/commands/intervene.js +0 -94
- package/dist/commands/intervene.js.map +0 -1
- package/dist/commands/interventions.d.ts +0 -8
- package/dist/commands/interventions.d.ts.map +0 -1
- package/dist/commands/interventions.js +0 -69
- package/dist/commands/interventions.js.map +0 -1
- package/dist/commands/learn.d.ts +0 -8
- package/dist/commands/learn.d.ts.map +0 -1
- package/dist/commands/learn.js +0 -33
- package/dist/commands/learn.js.map +0 -1
- package/dist/commands/ledger.d.ts +0 -15
- package/dist/commands/ledger.d.ts.map +0 -1
- package/dist/commands/ledger.js +0 -137
- package/dist/commands/ledger.js.map +0 -1
- package/dist/commands/lessons.d.ts +0 -14
- package/dist/commands/lessons.d.ts.map +0 -1
- package/dist/commands/lessons.js +0 -196
- package/dist/commands/lessons.js.map +0 -1
- package/dist/commands/license-utils.d.ts +0 -36
- package/dist/commands/license-utils.d.ts.map +0 -1
- package/dist/commands/license-utils.js +0 -74
- package/dist/commands/license-utils.js.map +0 -1
- package/dist/commands/license.d.ts +0 -50
- package/dist/commands/license.d.ts.map +0 -1
- package/dist/commands/license.js +0 -281
- package/dist/commands/license.js.map +0 -1
- package/dist/commands/manifest.d.ts +0 -8
- package/dist/commands/manifest.d.ts.map +0 -1
- package/dist/commands/manifest.js +0 -144
- package/dist/commands/manifest.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -14
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -70
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/memory.d.ts +0 -16
- package/dist/commands/memory.d.ts.map +0 -1
- package/dist/commands/memory.js +0 -621
- package/dist/commands/memory.js.map +0 -1
- package/dist/commands/merge-check.d.ts +0 -15
- package/dist/commands/merge-check.d.ts.map +0 -1
- package/dist/commands/merge-check.js +0 -164
- package/dist/commands/merge-check.js.map +0 -1
- package/dist/commands/open-init.d.ts +0 -13
- package/dist/commands/open-init.d.ts.map +0 -1
- package/dist/commands/open-init.js +0 -115
- package/dist/commands/open-init.js.map +0 -1
- package/dist/commands/open-license.d.ts +0 -11
- package/dist/commands/open-license.d.ts.map +0 -1
- package/dist/commands/open-license.js +0 -98
- package/dist/commands/open-license.js.map +0 -1
- package/dist/commands/orchestrate.d.ts +0 -12
- package/dist/commands/orchestrate.d.ts.map +0 -1
- package/dist/commands/orchestrate.js +0 -119
- package/dist/commands/orchestrate.js.map +0 -1
- package/dist/commands/outcome.d.ts +0 -2
- package/dist/commands/outcome.d.ts.map +0 -1
- package/dist/commands/outcome.js +0 -121
- package/dist/commands/outcome.js.map +0 -1
- package/dist/commands/pack.d.ts +0 -12
- package/dist/commands/pack.d.ts.map +0 -1
- package/dist/commands/pack.js +0 -75
- package/dist/commands/pack.js.map +0 -1
- package/dist/commands/policy-author.d.ts +0 -48
- package/dist/commands/policy-author.d.ts.map +0 -1
- package/dist/commands/policy-author.js +0 -396
- package/dist/commands/policy-author.js.map +0 -1
- package/dist/commands/policy-simulate.d.ts +0 -9
- package/dist/commands/policy-simulate.d.ts.map +0 -1
- package/dist/commands/policy-simulate.js +0 -46
- package/dist/commands/policy-simulate.js.map +0 -1
- package/dist/commands/policy.d.ts +0 -9
- package/dist/commands/policy.d.ts.map +0 -1
- package/dist/commands/policy.js +0 -121
- package/dist/commands/policy.js.map +0 -1
- package/dist/commands/post-merge-outcome.d.ts +0 -2
- package/dist/commands/post-merge-outcome.d.ts.map +0 -1
- package/dist/commands/post-merge-outcome.js +0 -32
- package/dist/commands/post-merge-outcome.js.map +0 -1
- package/dist/commands/pr-check.d.ts +0 -18
- package/dist/commands/pr-check.d.ts.map +0 -1
- package/dist/commands/pr-check.js +0 -299
- package/dist/commands/pr-check.js.map +0 -1
- package/dist/commands/pr-comment.d.ts +0 -2
- package/dist/commands/pr-comment.d.ts.map +0 -1
- package/dist/commands/pr-comment.js +0 -96
- package/dist/commands/pr-comment.js.map +0 -1
- package/dist/commands/pr-summary.d.ts +0 -59
- package/dist/commands/pr-summary.d.ts.map +0 -1
- package/dist/commands/pr-summary.js +0 -524
- package/dist/commands/pr-summary.js.map +0 -1
- package/dist/commands/pre-pr.d.ts +0 -14
- package/dist/commands/pre-pr.d.ts.map +0 -1
- package/dist/commands/pre-pr.js +0 -57
- package/dist/commands/pre-pr.js.map +0 -1
- package/dist/commands/preflight.d.ts +0 -2
- package/dist/commands/preflight.d.ts.map +0 -1
- package/dist/commands/preflight.js +0 -48
- package/dist/commands/preflight.js.map +0 -1
- package/dist/commands/progress-check.d.ts +0 -14
- package/dist/commands/progress-check.d.ts.map +0 -1
- package/dist/commands/progress-check.js +0 -153
- package/dist/commands/progress-check.js.map +0 -1
- package/dist/commands/provenance.d.ts +0 -10
- package/dist/commands/provenance.d.ts.map +0 -1
- package/dist/commands/provenance.js +0 -103
- package/dist/commands/provenance.js.map +0 -1
- package/dist/commands/pulse.d.ts +0 -12
- package/dist/commands/pulse.d.ts.map +0 -1
- package/dist/commands/pulse.js +0 -61
- package/dist/commands/pulse.js.map +0 -1
- package/dist/commands/reality-check.d.ts +0 -4
- package/dist/commands/reality-check.d.ts.map +0 -1
- package/dist/commands/reality-check.js +0 -133
- package/dist/commands/reality-check.js.map +0 -1
- package/dist/commands/refine.d.ts +0 -17
- package/dist/commands/refine.d.ts.map +0 -1
- package/dist/commands/refine.js +0 -250
- package/dist/commands/refine.js.map +0 -1
- package/dist/commands/release-check.d.ts +0 -14
- package/dist/commands/release-check.d.ts.map +0 -1
- package/dist/commands/release-check.js +0 -44
- package/dist/commands/release-check.js.map +0 -1
- package/dist/commands/release-decision.d.ts +0 -2
- package/dist/commands/release-decision.d.ts.map +0 -1
- package/dist/commands/release-decision.js +0 -26
- package/dist/commands/release-decision.js.map +0 -1
- package/dist/commands/release-history.d.ts +0 -2
- package/dist/commands/release-history.d.ts.map +0 -1
- package/dist/commands/release-history.js +0 -34
- package/dist/commands/release-history.js.map +0 -1
- package/dist/commands/release-insights.d.ts +0 -2
- package/dist/commands/release-insights.d.ts.map +0 -1
- package/dist/commands/release-insights.js +0 -34
- package/dist/commands/release-insights.js.map +0 -1
- package/dist/commands/release-truth.d.ts +0 -2
- package/dist/commands/release-truth.d.ts.map +0 -1
- package/dist/commands/release-truth.js +0 -15
- package/dist/commands/release-truth.js.map +0 -1
- package/dist/commands/replay.d.ts +0 -2
- package/dist/commands/replay.d.ts.map +0 -1
- package/dist/commands/replay.js +0 -181
- package/dist/commands/replay.js.map +0 -1
- package/dist/commands/review-coverage.d.ts +0 -12
- package/dist/commands/review-coverage.d.ts.map +0 -1
- package/dist/commands/review-coverage.js +0 -142
- package/dist/commands/review-coverage.js.map +0 -1
- package/dist/commands/review-gate.d.ts +0 -12
- package/dist/commands/review-gate.d.ts.map +0 -1
- package/dist/commands/review-gate.js +0 -130
- package/dist/commands/review-gate.js.map +0 -1
- package/dist/commands/run.d.ts +0 -2
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -84
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/runs.d.ts +0 -2
- package/dist/commands/runs.d.ts.map +0 -1
- package/dist/commands/runs.js +0 -61
- package/dist/commands/runs.js.map +0 -1
- package/dist/commands/scan.d.ts +0 -2
- package/dist/commands/scan.d.ts.map +0 -1
- package/dist/commands/scan.js +0 -349
- package/dist/commands/scan.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -32
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -904
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/session-cleanup.d.ts +0 -11
- package/dist/commands/session-cleanup.d.ts.map +0 -1
- package/dist/commands/session-cleanup.js +0 -85
- package/dist/commands/session-cleanup.js.map +0 -1
- package/dist/commands/session-init.d.ts +0 -10
- package/dist/commands/session-init.d.ts.map +0 -1
- package/dist/commands/session-init.js +0 -46
- package/dist/commands/session-init.js.map +0 -1
- package/dist/commands/session-progress.d.ts +0 -12
- package/dist/commands/session-progress.d.ts.map +0 -1
- package/dist/commands/session-progress.js +0 -287
- package/dist/commands/session-progress.js.map +0 -1
- package/dist/commands/session-summary.d.ts +0 -14
- package/dist/commands/session-summary.d.ts.map +0 -1
- package/dist/commands/session-summary.js +0 -1413
- package/dist/commands/session-summary.js.map +0 -1
- package/dist/commands/sessions.d.ts +0 -9
- package/dist/commands/sessions.d.ts.map +0 -1
- package/dist/commands/sessions.js +0 -60
- package/dist/commands/sessions.js.map +0 -1
- package/dist/commands/setup-ci.d.ts +0 -27
- package/dist/commands/setup-ci.d.ts.map +0 -1
- package/dist/commands/setup-ci.js +0 -487
- package/dist/commands/setup-ci.js.map +0 -1
- package/dist/commands/share.d.ts +0 -9
- package/dist/commands/share.d.ts.map +0 -1
- package/dist/commands/share.js +0 -275
- package/dist/commands/share.js.map +0 -1
- package/dist/commands/shared-summary.d.ts +0 -15
- package/dist/commands/shared-summary.d.ts.map +0 -1
- package/dist/commands/shared-summary.js +0 -194
- package/dist/commands/shared-summary.js.map +0 -1
- package/dist/commands/sign-manifest.d.ts +0 -8
- package/dist/commands/sign-manifest.d.ts.map +0 -1
- package/dist/commands/sign-manifest.js +0 -58
- package/dist/commands/sign-manifest.js.map +0 -1
- package/dist/commands/snapshot.d.ts +0 -4
- package/dist/commands/snapshot.d.ts.map +0 -1
- package/dist/commands/snapshot.js +0 -79
- package/dist/commands/snapshot.js.map +0 -1
- package/dist/commands/stats.d.ts +0 -8
- package/dist/commands/stats.d.ts.map +0 -1
- package/dist/commands/stats.js +0 -164
- package/dist/commands/stats.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -9
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -157
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/task.d.ts +0 -2
- package/dist/commands/task.d.ts.map +0 -1
- package/dist/commands/task.js +0 -315
- package/dist/commands/task.js.map +0 -1
- package/dist/commands/team-ledger.d.ts +0 -11
- package/dist/commands/team-ledger.d.ts.map +0 -1
- package/dist/commands/team-ledger.js +0 -77
- package/dist/commands/team-ledger.js.map +0 -1
- package/dist/commands/team-metrics.d.ts +0 -8
- package/dist/commands/team-metrics.d.ts.map +0 -1
- package/dist/commands/team-metrics.js +0 -57
- package/dist/commands/team-metrics.js.map +0 -1
- package/dist/commands/test-summary.d.ts +0 -2
- package/dist/commands/test-summary.d.ts.map +0 -1
- package/dist/commands/test-summary.js +0 -53
- package/dist/commands/test-summary.js.map +0 -1
- package/dist/commands/time-travel.d.ts +0 -2
- package/dist/commands/time-travel.d.ts.map +0 -1
- package/dist/commands/time-travel.js +0 -89
- package/dist/commands/time-travel.js.map +0 -1
- package/dist/commands/truth-utils.d.ts +0 -14
- package/dist/commands/truth-utils.d.ts.map +0 -1
- package/dist/commands/truth-utils.js +0 -70
- package/dist/commands/truth-utils.js.map +0 -1
- package/dist/commands/upgrade.d.ts +0 -2
- package/dist/commands/upgrade.d.ts.map +0 -1
- package/dist/commands/upgrade.js +0 -17
- package/dist/commands/upgrade.js.map +0 -1
- package/dist/commands/vendor.d.ts +0 -20
- package/dist/commands/vendor.d.ts.map +0 -1
- package/dist/commands/vendor.js +0 -205
- package/dist/commands/vendor.js.map +0 -1
- package/dist/commands/verify.d.ts +0 -36
- package/dist/commands/verify.d.ts.map +0 -1
- package/dist/commands/verify.js +0 -761
- package/dist/commands/verify.js.map +0 -1
- package/dist/completion-integrity/claims.d.ts +0 -21
- package/dist/completion-integrity/claims.d.ts.map +0 -1
- package/dist/completion-integrity/claims.js +0 -99
- package/dist/completion-integrity/claims.js.map +0 -1
- package/dist/completion-integrity/confidence.d.ts +0 -30
- package/dist/completion-integrity/confidence.d.ts.map +0 -1
- package/dist/completion-integrity/confidence.js +0 -86
- package/dist/completion-integrity/confidence.js.map +0 -1
- package/dist/completion-integrity/ghost-detector.d.ts +0 -37
- package/dist/completion-integrity/ghost-detector.d.ts.map +0 -1
- package/dist/completion-integrity/ghost-detector.js +0 -93
- package/dist/completion-integrity/ghost-detector.js.map +0 -1
- package/dist/completion-integrity/history.d.ts +0 -19
- package/dist/completion-integrity/history.d.ts.map +0 -1
- package/dist/completion-integrity/history.js +0 -44
- package/dist/completion-integrity/history.js.map +0 -1
- package/dist/completion-integrity/index.d.ts +0 -25
- package/dist/completion-integrity/index.d.ts.map +0 -1
- package/dist/completion-integrity/index.js +0 -251
- package/dist/completion-integrity/index.js.map +0 -1
- package/dist/completion-integrity/neighborhood.d.ts +0 -21
- package/dist/completion-integrity/neighborhood.d.ts.map +0 -1
- package/dist/completion-integrity/neighborhood.js +0 -274
- package/dist/completion-integrity/neighborhood.js.map +0 -1
- package/dist/completion-integrity/notary.d.ts +0 -3
- package/dist/completion-integrity/notary.d.ts.map +0 -1
- package/dist/completion-integrity/notary.js +0 -124
- package/dist/completion-integrity/notary.js.map +0 -1
- package/dist/completion-integrity/output.d.ts +0 -11
- package/dist/completion-integrity/output.d.ts.map +0 -1
- package/dist/completion-integrity/output.js +0 -228
- package/dist/completion-integrity/output.js.map +0 -1
- package/dist/completion-integrity/self-audit.d.ts +0 -28
- package/dist/completion-integrity/self-audit.d.ts.map +0 -1
- package/dist/completion-integrity/self-audit.js +0 -194
- package/dist/completion-integrity/self-audit.js.map +0 -1
- package/dist/completion-integrity/semantic-drift.d.ts +0 -22
- package/dist/completion-integrity/semantic-drift.d.ts.map +0 -1
- package/dist/completion-integrity/semantic-drift.js +0 -138
- package/dist/completion-integrity/semantic-drift.js.map +0 -1
- package/dist/completion-integrity/state-machine.d.ts +0 -36
- package/dist/completion-integrity/state-machine.d.ts.map +0 -1
- package/dist/completion-integrity/state-machine.js +0 -138
- package/dist/completion-integrity/state-machine.js.map +0 -1
- package/dist/completion-integrity/types.d.ts +0 -69
- package/dist/completion-integrity/types.d.ts.map +0 -1
- package/dist/completion-integrity/types.js +0 -4
- package/dist/completion-integrity/types.js.map +0 -1
- package/dist/context-engine/contract.d.ts +0 -12
- package/dist/context-engine/contract.d.ts.map +0 -1
- package/dist/context-engine/contract.js +0 -227
- package/dist/context-engine/contract.js.map +0 -1
- package/dist/context-engine/delta.d.ts +0 -10
- package/dist/context-engine/delta.d.ts.map +0 -1
- package/dist/context-engine/delta.js +0 -78
- package/dist/context-engine/delta.js.map +0 -1
- package/dist/context-engine/index.d.ts +0 -6
- package/dist/context-engine/index.d.ts.map +0 -1
- package/dist/context-engine/index.js +0 -5
- package/dist/context-engine/index.js.map +0 -1
- package/dist/context-engine/policy-evaluator.d.ts +0 -32
- package/dist/context-engine/policy-evaluator.d.ts.map +0 -1
- package/dist/context-engine/policy-evaluator.js +0 -69
- package/dist/context-engine/policy-evaluator.js.map +0 -1
- package/dist/context-engine/renderer.d.ts +0 -9
- package/dist/context-engine/renderer.d.ts.map +0 -1
- package/dist/context-engine/renderer.js +0 -28
- package/dist/context-engine/renderer.js.map +0 -1
- package/dist/context-engine/renderers/claude.d.ts +0 -3
- package/dist/context-engine/renderers/claude.d.ts.map +0 -1
- package/dist/context-engine/renderers/claude.js +0 -223
- package/dist/context-engine/renderers/claude.js.map +0 -1
- package/dist/context-engine/renderers/cursor.d.ts +0 -3
- package/dist/context-engine/renderers/cursor.d.ts.map +0 -1
- package/dist/context-engine/renderers/cursor.js +0 -158
- package/dist/context-engine/renderers/cursor.js.map +0 -1
- package/dist/context-engine/renderers/generic.d.ts +0 -3
- package/dist/context-engine/renderers/generic.d.ts.map +0 -1
- package/dist/context-engine/renderers/generic.js +0 -180
- package/dist/context-engine/renderers/generic.js.map +0 -1
- package/dist/coordination/index.d.ts +0 -69
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js +0 -1110
- package/dist/coordination/index.js.map +0 -1
- package/dist/discovery/blast-radius.d.ts +0 -15
- package/dist/discovery/blast-radius.d.ts.map +0 -1
- package/dist/discovery/blast-radius.js +0 -160
- package/dist/discovery/blast-radius.js.map +0 -1
- package/dist/discovery/cache.d.ts +0 -38
- package/dist/discovery/cache.d.ts.map +0 -1
- package/dist/discovery/cache.js +0 -87
- package/dist/discovery/cache.js.map +0 -1
- package/dist/discovery/diff-compliance.d.ts +0 -19
- package/dist/discovery/diff-compliance.d.ts.map +0 -1
- package/dist/discovery/diff-compliance.js +0 -96
- package/dist/discovery/diff-compliance.js.map +0 -1
- package/dist/discovery/duplicate-detection.d.ts +0 -29
- package/dist/discovery/duplicate-detection.d.ts.map +0 -1
- package/dist/discovery/duplicate-detection.js +0 -133
- package/dist/discovery/duplicate-detection.js.map +0 -1
- package/dist/discovery/gap-analysis.d.ts +0 -16
- package/dist/discovery/gap-analysis.d.ts.map +0 -1
- package/dist/discovery/gap-analysis.js +0 -199
- package/dist/discovery/gap-analysis.js.map +0 -1
- package/dist/discovery/index.d.ts +0 -18
- package/dist/discovery/index.d.ts.map +0 -1
- package/dist/discovery/index.js +0 -565
- package/dist/discovery/index.js.map +0 -1
- package/dist/discovery/override.d.ts +0 -19
- package/dist/discovery/override.d.ts.map +0 -1
- package/dist/discovery/override.js +0 -113
- package/dist/discovery/override.js.map +0 -1
- package/dist/discovery/scoring.d.ts +0 -35
- package/dist/discovery/scoring.d.ts.map +0 -1
- package/dist/discovery/scoring.js +0 -194
- package/dist/discovery/scoring.js.map +0 -1
- package/dist/discovery/source-of-truth.d.ts +0 -17
- package/dist/discovery/source-of-truth.d.ts.map +0 -1
- package/dist/discovery/source-of-truth.js +0 -182
- package/dist/discovery/source-of-truth.js.map +0 -1
- package/dist/discovery/symbol-growth.d.ts +0 -20
- package/dist/discovery/symbol-growth.d.ts.map +0 -1
- package/dist/discovery/symbol-growth.js +0 -111
- package/dist/discovery/symbol-growth.js.map +0 -1
- package/dist/ecl/git-sync.d.ts +0 -53
- package/dist/ecl/git-sync.d.ts.map +0 -1
- package/dist/ecl/git-sync.js +0 -182
- package/dist/ecl/git-sync.js.map +0 -1
- package/dist/ecl/lifecycle.d.ts +0 -107
- package/dist/ecl/lifecycle.d.ts.map +0 -1
- package/dist/ecl/lifecycle.js +0 -264
- package/dist/ecl/lifecycle.js.map +0 -1
- package/dist/ecl/persistence.d.ts +0 -108
- package/dist/ecl/persistence.d.ts.map +0 -1
- package/dist/ecl/persistence.js +0 -362
- package/dist/ecl/persistence.js.map +0 -1
- package/dist/ecl/sync.d.ts +0 -43
- package/dist/ecl/sync.d.ts.map +0 -1
- package/dist/ecl/sync.js +0 -155
- package/dist/ecl/sync.js.map +0 -1
- package/dist/feedback/index.d.ts +0 -35
- package/dist/feedback/index.d.ts.map +0 -1
- package/dist/feedback/index.js +0 -81
- package/dist/feedback/index.js.map +0 -1
- package/dist/guardrails/adversarial-trigger.d.ts +0 -15
- package/dist/guardrails/adversarial-trigger.d.ts.map +0 -1
- package/dist/guardrails/adversarial-trigger.js +0 -86
- package/dist/guardrails/adversarial-trigger.js.map +0 -1
- package/dist/guardrails/export-collision.d.ts +0 -11
- package/dist/guardrails/export-collision.d.ts.map +0 -1
- package/dist/guardrails/export-collision.js +0 -141
- package/dist/guardrails/export-collision.js.map +0 -1
- package/dist/guardrails/index.d.ts +0 -24
- package/dist/guardrails/index.d.ts.map +0 -1
- package/dist/guardrails/index.js +0 -24
- package/dist/guardrails/index.js.map +0 -1
- package/dist/guardrails/release-tag.d.ts +0 -10
- package/dist/guardrails/release-tag.d.ts.map +0 -1
- package/dist/guardrails/release-tag.js +0 -99
- package/dist/guardrails/release-tag.js.map +0 -1
- package/dist/guardrails/rename-integrity.d.ts +0 -13
- package/dist/guardrails/rename-integrity.d.ts.map +0 -1
- package/dist/guardrails/rename-integrity.js +0 -111
- package/dist/guardrails/rename-integrity.js.map +0 -1
- package/dist/guardrails/runner.d.ts +0 -10
- package/dist/guardrails/runner.d.ts.map +0 -1
- package/dist/guardrails/runner.js +0 -36
- package/dist/guardrails/runner.js.map +0 -1
- package/dist/guardrails/stale-artifact.d.ts +0 -11
- package/dist/guardrails/stale-artifact.d.ts.map +0 -1
- package/dist/guardrails/stale-artifact.js +0 -69
- package/dist/guardrails/stale-artifact.js.map +0 -1
- package/dist/guardrails/unused-parameter.d.ts +0 -11
- package/dist/guardrails/unused-parameter.d.ts.map +0 -1
- package/dist/guardrails/unused-parameter.js +0 -105
- package/dist/guardrails/unused-parameter.js.map +0 -1
- package/dist/guardrails/workspace-validation.d.ts +0 -12
- package/dist/guardrails/workspace-validation.d.ts.map +0 -1
- package/dist/guardrails/workspace-validation.js +0 -92
- package/dist/guardrails/workspace-validation.js.map +0 -1
- package/dist/health/advisor.d.ts +0 -18
- package/dist/health/advisor.d.ts.map +0 -1
- package/dist/health/advisor.js +0 -174
- package/dist/health/advisor.js.map +0 -1
- package/dist/health/dashboard.d.ts +0 -96
- package/dist/health/dashboard.d.ts.map +0 -1
- package/dist/health/dashboard.js +0 -470
- package/dist/health/dashboard.js.map +0 -1
- package/dist/hooks/discovery-enforcement.d.ts +0 -9
- package/dist/hooks/discovery-enforcement.d.ts.map +0 -1
- package/dist/hooks/discovery-enforcement.js +0 -137
- package/dist/hooks/discovery-enforcement.js.map +0 -1
- package/dist/hooks/discovery-hook.d.ts +0 -22
- package/dist/hooks/discovery-hook.d.ts.map +0 -1
- package/dist/hooks/discovery-hook.js +0 -199
- package/dist/hooks/discovery-hook.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1499
- package/dist/index.js.map +0 -1
- package/dist/insight/emit.d.ts +0 -19
- package/dist/insight/emit.d.ts.map +0 -1
- package/dist/insight/emit.js +0 -107
- package/dist/insight/emit.js.map +0 -1
- package/dist/insight/engine-bridge.d.ts +0 -7
- package/dist/insight/engine-bridge.d.ts.map +0 -1
- package/dist/insight/engine-bridge.js +0 -6
- package/dist/insight/engine-bridge.js.map +0 -1
- package/dist/insight/index.d.ts +0 -3
- package/dist/insight/index.d.ts.map +0 -1
- package/dist/insight/index.js +0 -2
- package/dist/insight/index.js.map +0 -1
- package/dist/insight/telemetry.d.ts +0 -14
- package/dist/insight/telemetry.d.ts.map +0 -1
- package/dist/insight/telemetry.js +0 -87
- package/dist/insight/telemetry.js.map +0 -1
- package/dist/intake/candidate-paths/CandidatePathDetector.d.ts +0 -5
- package/dist/intake/candidate-paths/CandidatePathDetector.d.ts.map +0 -1
- package/dist/intake/candidate-paths/CandidatePathDetector.js +0 -173
- package/dist/intake/candidate-paths/CandidatePathDetector.js.map +0 -1
- package/dist/intake/candidate-paths/anchorRadiusExpansion.d.ts +0 -4
- package/dist/intake/candidate-paths/anchorRadiusExpansion.d.ts.map +0 -1
- package/dist/intake/candidate-paths/anchorRadiusExpansion.js +0 -66
- package/dist/intake/candidate-paths/anchorRadiusExpansion.js.map +0 -1
- package/dist/intake/candidate-paths/applyNegativeFiltering.d.ts +0 -4
- package/dist/intake/candidate-paths/applyNegativeFiltering.d.ts.map +0 -1
- package/dist/intake/candidate-paths/applyNegativeFiltering.js +0 -24
- package/dist/intake/candidate-paths/applyNegativeFiltering.js.map +0 -1
- package/dist/intake/candidate-paths/coCommitAnalyzer.d.ts +0 -3
- package/dist/intake/candidate-paths/coCommitAnalyzer.d.ts.map +0 -1
- package/dist/intake/candidate-paths/coCommitAnalyzer.js +0 -27
- package/dist/intake/candidate-paths/coCommitAnalyzer.js.map +0 -1
- package/dist/intake/candidate-paths/computeConfidence.d.ts +0 -3
- package/dist/intake/candidate-paths/computeConfidence.d.ts.map +0 -1
- package/dist/intake/candidate-paths/computeConfidence.js +0 -14
- package/dist/intake/candidate-paths/computeConfidence.js.map +0 -1
- package/dist/intake/candidate-paths/consolidateCandidates.d.ts +0 -5
- package/dist/intake/candidate-paths/consolidateCandidates.d.ts.map +0 -1
- package/dist/intake/candidate-paths/consolidateCandidates.js +0 -61
- package/dist/intake/candidate-paths/consolidateCandidates.js.map +0 -1
- package/dist/intake/candidate-paths/hierarchicalMatching.d.ts +0 -7
- package/dist/intake/candidate-paths/hierarchicalMatching.d.ts.map +0 -1
- package/dist/intake/candidate-paths/hierarchicalMatching.js +0 -46
- package/dist/intake/candidate-paths/hierarchicalMatching.js.map +0 -1
- package/dist/intake/candidate-paths/integration.d.ts +0 -7
- package/dist/intake/candidate-paths/integration.d.ts.map +0 -1
- package/dist/intake/candidate-paths/integration.js +0 -63
- package/dist/intake/candidate-paths/integration.js.map +0 -1
- package/dist/intake/candidate-paths/pathDetectionOverrides.d.ts +0 -3
- package/dist/intake/candidate-paths/pathDetectionOverrides.d.ts.map +0 -1
- package/dist/intake/candidate-paths/pathDetectionOverrides.js +0 -134
- package/dist/intake/candidate-paths/pathDetectionOverrides.js.map +0 -1
- package/dist/intake/candidate-paths/repoIndexAdapter.d.ts +0 -4
- package/dist/intake/candidate-paths/repoIndexAdapter.d.ts.map +0 -1
- package/dist/intake/candidate-paths/repoIndexAdapter.js +0 -99
- package/dist/intake/candidate-paths/repoIndexAdapter.js.map +0 -1
- package/dist/intake/candidate-paths/resolveExplicitTargets.d.ts +0 -8
- package/dist/intake/candidate-paths/resolveExplicitTargets.d.ts.map +0 -1
- package/dist/intake/candidate-paths/resolveExplicitTargets.js +0 -65
- package/dist/intake/candidate-paths/resolveExplicitTargets.js.map +0 -1
- package/dist/intake/candidate-paths/rules.d.ts +0 -13
- package/dist/intake/candidate-paths/rules.d.ts.map +0 -1
- package/dist/intake/candidate-paths/rules.js +0 -64
- package/dist/intake/candidate-paths/rules.js.map +0 -1
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.d.ts +0 -10
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.d.ts.map +0 -1
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.js +0 -73
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.js.map +0 -1
- package/dist/intake/candidate-paths/shapeEstimator.d.ts +0 -3
- package/dist/intake/candidate-paths/shapeEstimator.d.ts.map +0 -1
- package/dist/intake/candidate-paths/shapeEstimator.js +0 -17
- package/dist/intake/candidate-paths/shapeEstimator.js.map +0 -1
- package/dist/intake/candidate-paths/types.d.ts +0 -148
- package/dist/intake/candidate-paths/types.d.ts.map +0 -1
- package/dist/intake/candidate-paths/types.js +0 -2
- package/dist/intake/candidate-paths/types.js.map +0 -1
- package/dist/intake/task-classifier/TaskClassifier.d.ts +0 -5
- package/dist/intake/task-classifier/TaskClassifier.d.ts.map +0 -1
- package/dist/intake/task-classifier/TaskClassifier.js +0 -96
- package/dist/intake/task-classifier/TaskClassifier.js.map +0 -1
- package/dist/intake/task-classifier/applyOverrides.d.ts +0 -3
- package/dist/intake/task-classifier/applyOverrides.d.ts.map +0 -1
- package/dist/intake/task-classifier/applyOverrides.js +0 -55
- package/dist/intake/task-classifier/applyOverrides.js.map +0 -1
- package/dist/intake/task-classifier/computeConfidence.d.ts +0 -3
- package/dist/intake/task-classifier/computeConfidence.d.ts.map +0 -1
- package/dist/intake/task-classifier/computeConfidence.js +0 -13
- package/dist/intake/task-classifier/computeConfidence.js.map +0 -1
- package/dist/intake/task-classifier/deriveRiskAndComplexity.d.ts +0 -4
- package/dist/intake/task-classifier/deriveRiskAndComplexity.d.ts.map +0 -1
- package/dist/intake/task-classifier/deriveRiskAndComplexity.js +0 -24
- package/dist/intake/task-classifier/deriveRiskAndComplexity.js.map +0 -1
- package/dist/intake/task-classifier/deriveTags.d.ts +0 -3
- package/dist/intake/task-classifier/deriveTags.d.ts.map +0 -1
- package/dist/intake/task-classifier/deriveTags.js +0 -43
- package/dist/intake/task-classifier/deriveTags.js.map +0 -1
- package/dist/intake/task-classifier/index.d.ts +0 -6
- package/dist/intake/task-classifier/index.d.ts.map +0 -1
- package/dist/intake/task-classifier/index.js +0 -6
- package/dist/intake/task-classifier/index.js.map +0 -1
- package/dist/intake/task-classifier/mergeScores.d.ts +0 -4
- package/dist/intake/task-classifier/mergeScores.d.ts.map +0 -1
- package/dist/intake/task-classifier/mergeScores.js +0 -68
- package/dist/intake/task-classifier/mergeScores.js.map +0 -1
- package/dist/intake/task-classifier/pathMatching.d.ts +0 -3
- package/dist/intake/task-classifier/pathMatching.d.ts.map +0 -1
- package/dist/intake/task-classifier/pathMatching.js +0 -33
- package/dist/intake/task-classifier/pathMatching.js.map +0 -1
- package/dist/intake/task-classifier/rules.d.ts +0 -28
- package/dist/intake/task-classifier/rules.d.ts.map +0 -1
- package/dist/intake/task-classifier/rules.js +0 -138
- package/dist/intake/task-classifier/rules.js.map +0 -1
- package/dist/intake/task-classifier/scoreKeywords.d.ts +0 -5
- package/dist/intake/task-classifier/scoreKeywords.d.ts.map +0 -1
- package/dist/intake/task-classifier/scoreKeywords.js +0 -41
- package/dist/intake/task-classifier/scoreKeywords.js.map +0 -1
- package/dist/intake/task-classifier/scoreMetadata.d.ts +0 -3
- package/dist/intake/task-classifier/scoreMetadata.d.ts.map +0 -1
- package/dist/intake/task-classifier/scoreMetadata.js +0 -29
- package/dist/intake/task-classifier/scoreMetadata.js.map +0 -1
- package/dist/intake/task-classifier/scorePaths.d.ts +0 -3
- package/dist/intake/task-classifier/scorePaths.d.ts.map +0 -1
- package/dist/intake/task-classifier/scorePaths.js +0 -38
- package/dist/intake/task-classifier/scorePaths.js.map +0 -1
- package/dist/intake/task-classifier/types.d.ts +0 -51
- package/dist/intake/task-classifier/types.d.ts.map +0 -1
- package/dist/intake/task-classifier/types.js +0 -2
- package/dist/intake/task-classifier/types.js.map +0 -1
- package/dist/integrations/github-actions.d.ts +0 -17
- package/dist/integrations/github-actions.d.ts.map +0 -1
- package/dist/integrations/github-actions.js +0 -77
- package/dist/integrations/github-actions.js.map +0 -1
- package/dist/intent/extractor.d.ts +0 -15
- package/dist/intent/extractor.d.ts.map +0 -1
- package/dist/intent/extractor.js +0 -149
- package/dist/intent/extractor.js.map +0 -1
- package/dist/intent/fetcher.d.ts +0 -33
- package/dist/intent/fetcher.d.ts.map +0 -1
- package/dist/intent/fetcher.js +0 -364
- package/dist/intent/fetcher.js.map +0 -1
- package/dist/intent/loader.d.ts +0 -26
- package/dist/intent/loader.d.ts.map +0 -1
- package/dist/intent/loader.js +0 -80
- package/dist/intent/loader.js.map +0 -1
- package/dist/intent/types.d.ts +0 -33
- package/dist/intent/types.d.ts.map +0 -1
- package/dist/intent/types.js +0 -9
- package/dist/intent/types.js.map +0 -1
- package/dist/intervention/drift-velocity.d.ts +0 -19
- package/dist/intervention/drift-velocity.d.ts.map +0 -1
- package/dist/intervention/drift-velocity.js +0 -107
- package/dist/intervention/drift-velocity.js.map +0 -1
- package/dist/intervention/engine.d.ts +0 -43
- package/dist/intervention/engine.d.ts.map +0 -1
- package/dist/intervention/engine.js +0 -356
- package/dist/intervention/engine.js.map +0 -1
- package/dist/intervention/templates.d.ts +0 -23
- package/dist/intervention/templates.d.ts.map +0 -1
- package/dist/intervention/templates.js +0 -167
- package/dist/intervention/templates.js.map +0 -1
- package/dist/manifest/build.d.ts +0 -19
- package/dist/manifest/build.d.ts.map +0 -1
- package/dist/manifest/build.js +0 -82
- package/dist/manifest/build.js.map +0 -1
- package/dist/manifest/schema.d.ts +0 -2
- package/dist/manifest/schema.d.ts.map +0 -1
- package/dist/manifest/schema.js +0 -2
- package/dist/manifest/schema.js.map +0 -1
- package/dist/manifest/write.d.ts +0 -13
- package/dist/manifest/write.d.ts.map +0 -1
- package/dist/manifest/write.js +0 -69
- package/dist/manifest/write.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -20
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -271
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/skill-template.d.ts +0 -10
- package/dist/mcp/skill-template.d.ts.map +0 -1
- package/dist/mcp/skill-template.js +0 -75
- package/dist/mcp/skill-template.js.map +0 -1
- package/dist/memory/TaskClassifier.d.ts +0 -6
- package/dist/memory/TaskClassifier.d.ts.map +0 -1
- package/dist/memory/TaskClassifier.js +0 -344
- package/dist/memory/TaskClassifier.js.map +0 -1
- package/dist/memory/context-injection.d.ts +0 -12
- package/dist/memory/context-injection.d.ts.map +0 -1
- package/dist/memory/context-injection.js +0 -550
- package/dist/memory/context-injection.js.map +0 -1
- package/dist/memory/evidence-gates.d.ts +0 -32
- package/dist/memory/evidence-gates.d.ts.map +0 -1
- package/dist/memory/evidence-gates.js +0 -168
- package/dist/memory/evidence-gates.js.map +0 -1
- package/dist/memory/golden-patterns.d.ts +0 -68
- package/dist/memory/golden-patterns.d.ts.map +0 -1
- package/dist/memory/golden-patterns.js +0 -260
- package/dist/memory/golden-patterns.js.map +0 -1
- package/dist/memory/index.d.ts +0 -11
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js +0 -11
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/lessons.d.ts +0 -88
- package/dist/memory/lessons.d.ts.map +0 -1
- package/dist/memory/lessons.js +0 -370
- package/dist/memory/lessons.js.map +0 -1
- package/dist/memory/ontology.d.ts +0 -34
- package/dist/memory/ontology.d.ts.map +0 -1
- package/dist/memory/ontology.js +0 -125
- package/dist/memory/ontology.js.map +0 -1
- package/dist/memory/policy-artifacts.d.ts +0 -31
- package/dist/memory/policy-artifacts.d.ts.map +0 -1
- package/dist/memory/policy-artifacts.js +0 -618
- package/dist/memory/policy-artifacts.js.map +0 -1
- package/dist/memory/preamble.d.ts +0 -35
- package/dist/memory/preamble.d.ts.map +0 -1
- package/dist/memory/preamble.js +0 -114
- package/dist/memory/preamble.js.map +0 -1
- package/dist/memory/recent-truth.d.ts +0 -21
- package/dist/memory/recent-truth.d.ts.map +0 -1
- package/dist/memory/recent-truth.js +0 -78
- package/dist/memory/recent-truth.js.map +0 -1
- package/dist/memory/storage.d.ts +0 -28
- package/dist/memory/storage.d.ts.map +0 -1
- package/dist/memory/storage.js +0 -204
- package/dist/memory/storage.js.map +0 -1
- package/dist/memory/structural-trust.d.ts +0 -36
- package/dist/memory/structural-trust.d.ts.map +0 -1
- package/dist/memory/structural-trust.js +0 -77
- package/dist/memory/structural-trust.js.map +0 -1
- package/dist/memory/taskClassifierOverrides.d.ts +0 -3
- package/dist/memory/taskClassifierOverrides.d.ts.map +0 -1
- package/dist/memory/taskClassifierOverrides.js +0 -153
- package/dist/memory/taskClassifierOverrides.js.map +0 -1
- package/dist/memory/taskClassifierRules.d.ts +0 -15
- package/dist/memory/taskClassifierRules.d.ts.map +0 -1
- package/dist/memory/taskClassifierRules.js +0 -277
- package/dist/memory/taskClassifierRules.js.map +0 -1
- package/dist/memory/taskClassifierTypes.d.ts +0 -40
- package/dist/memory/taskClassifierTypes.d.ts.map +0 -1
- package/dist/memory/taskClassifierTypes.js +0 -2
- package/dist/memory/taskClassifierTypes.js.map +0 -1
- package/dist/memory/validation-ledger.d.ts +0 -28
- package/dist/memory/validation-ledger.d.ts.map +0 -1
- package/dist/memory/validation-ledger.js +0 -90
- package/dist/memory/validation-ledger.js.map +0 -1
- package/dist/merge-check/hallucination-guard.d.ts +0 -49
- package/dist/merge-check/hallucination-guard.d.ts.map +0 -1
- package/dist/merge-check/hallucination-guard.js +0 -228
- package/dist/merge-check/hallucination-guard.js.map +0 -1
- package/dist/merge-check/intent-registry.d.ts +0 -42
- package/dist/merge-check/intent-registry.d.ts.map +0 -1
- package/dist/merge-check/intent-registry.js +0 -154
- package/dist/merge-check/intent-registry.js.map +0 -1
- package/dist/merge-check/sentinel.d.ts +0 -60
- package/dist/merge-check/sentinel.d.ts.map +0 -1
- package/dist/merge-check/sentinel.js +0 -399
- package/dist/merge-check/sentinel.js.map +0 -1
- package/dist/narrative/contextNarrative.d.ts +0 -22
- package/dist/narrative/contextNarrative.d.ts.map +0 -1
- package/dist/narrative/contextNarrative.js +0 -259
- package/dist/narrative/contextNarrative.js.map +0 -1
- package/dist/onboarding.d.ts +0 -37
- package/dist/onboarding.d.ts.map +0 -1
- package/dist/onboarding.js +0 -112
- package/dist/onboarding.js.map +0 -1
- package/dist/open-shell.d.ts +0 -14
- package/dist/open-shell.d.ts.map +0 -1
- package/dist/open-shell.js +0 -191
- package/dist/open-shell.js.map +0 -1
- package/dist/policy/load.d.ts +0 -21
- package/dist/policy/load.d.ts.map +0 -1
- package/dist/policy/load.js +0 -63
- package/dist/policy/load.js.map +0 -1
- package/dist/policy/realtime.d.ts +0 -17
- package/dist/policy/realtime.d.ts.map +0 -1
- package/dist/policy/realtime.js +0 -108
- package/dist/policy/realtime.js.map +0 -1
- package/dist/policy/resolve.d.ts +0 -18
- package/dist/policy/resolve.d.ts.map +0 -1
- package/dist/policy/resolve.js +0 -86
- package/dist/policy/resolve.js.map +0 -1
- package/dist/policy/schema.d.ts +0 -22
- package/dist/policy/schema.d.ts.map +0 -1
- package/dist/policy/schema.js +0 -220
- package/dist/policy/schema.js.map +0 -1
- package/dist/pr-comment/renderer.d.ts +0 -3
- package/dist/pr-comment/renderer.d.ts.map +0 -1
- package/dist/pr-comment/renderer.js +0 -32
- package/dist/pr-comment/renderer.js.map +0 -1
- package/dist/pr-comment/templates.d.ts +0 -4
- package/dist/pr-comment/templates.d.ts.map +0 -1
- package/dist/pr-comment/templates.js +0 -9
- package/dist/pr-comment/templates.js.map +0 -1
- package/dist/pr-comment/types.d.ts +0 -13
- package/dist/pr-comment/types.d.ts.map +0 -1
- package/dist/pr-comment/types.js +0 -2
- package/dist/pr-comment/types.js.map +0 -1
- package/dist/pre-pr/checks.d.ts +0 -18
- package/dist/pre-pr/checks.d.ts.map +0 -1
- package/dist/pre-pr/checks.js +0 -440
- package/dist/pre-pr/checks.js.map +0 -1
- package/dist/pre-pr/orchestrator.d.ts +0 -30
- package/dist/pre-pr/orchestrator.d.ts.map +0 -1
- package/dist/pre-pr/orchestrator.js +0 -104
- package/dist/pre-pr/orchestrator.js.map +0 -1
- package/dist/project-config.d.ts +0 -38
- package/dist/project-config.d.ts.map +0 -1
- package/dist/project-config.js +0 -206
- package/dist/project-config.js.map +0 -1
- package/dist/prompt-coach/admission.d.ts +0 -31
- package/dist/prompt-coach/admission.d.ts.map +0 -1
- package/dist/prompt-coach/admission.js +0 -105
- package/dist/prompt-coach/admission.js.map +0 -1
- package/dist/prompt-coach/feedback.d.ts +0 -49
- package/dist/prompt-coach/feedback.d.ts.map +0 -1
- package/dist/prompt-coach/feedback.js +0 -177
- package/dist/prompt-coach/feedback.js.map +0 -1
- package/dist/prompt-coach/format.d.ts +0 -56
- package/dist/prompt-coach/format.d.ts.map +0 -1
- package/dist/prompt-coach/format.js +0 -190
- package/dist/prompt-coach/format.js.map +0 -1
- package/dist/prompt-coach/index.d.ts +0 -13
- package/dist/prompt-coach/index.d.ts.map +0 -1
- package/dist/prompt-coach/index.js +0 -13
- package/dist/prompt-coach/index.js.map +0 -1
- package/dist/prompt-coach/interactive.d.ts +0 -28
- package/dist/prompt-coach/interactive.d.ts.map +0 -1
- package/dist/prompt-coach/interactive.js +0 -118
- package/dist/prompt-coach/interactive.js.map +0 -1
- package/dist/prompt-coach/policy.d.ts +0 -67
- package/dist/prompt-coach/policy.d.ts.map +0 -1
- package/dist/prompt-coach/policy.js +0 -502
- package/dist/prompt-coach/policy.js.map +0 -1
- package/dist/prompt-coach/summary.d.ts +0 -56
- package/dist/prompt-coach/summary.d.ts.map +0 -1
- package/dist/prompt-coach/summary.js +0 -304
- package/dist/prompt-coach/summary.js.map +0 -1
- package/dist/protected-runtime/core.d.ts +0 -7
- package/dist/protected-runtime/core.d.ts.map +0 -1
- package/dist/protected-runtime/core.js +0 -24
- package/dist/protected-runtime/core.js.map +0 -1
- package/dist/protected-runtime/module-loader.d.ts +0 -9
- package/dist/protected-runtime/module-loader.d.ts.map +0 -1
- package/dist/protected-runtime/module-loader.js +0 -54
- package/dist/protected-runtime/module-loader.js.map +0 -1
- package/dist/protected-shell.d.ts +0 -2
- package/dist/protected-shell.d.ts.map +0 -1
- package/dist/protected-shell.js +0 -41
- package/dist/protected-shell.js.map +0 -1
- package/dist/release-check/engine.d.ts +0 -30
- package/dist/release-check/engine.d.ts.map +0 -1
- package/dist/release-check/engine.js +0 -726
- package/dist/release-check/engine.js.map +0 -1
- package/dist/release-check/index.d.ts +0 -16
- package/dist/release-check/index.d.ts.map +0 -1
- package/dist/release-check/index.js +0 -16
- package/dist/release-check/index.js.map +0 -1
- package/dist/release-check/output.d.ts +0 -7
- package/dist/release-check/output.d.ts.map +0 -1
- package/dist/release-check/output.js +0 -123
- package/dist/release-check/output.js.map +0 -1
- package/dist/release-truth.d.ts +0 -20
- package/dist/release-truth.d.ts.map +0 -1
- package/dist/release-truth.js +0 -114
- package/dist/release-truth.js.map +0 -1
- package/dist/review-intelligence/baseline.d.ts +0 -58
- package/dist/review-intelligence/baseline.d.ts.map +0 -1
- package/dist/review-intelligence/baseline.js +0 -99
- package/dist/review-intelligence/baseline.js.map +0 -1
- package/dist/review-intelligence/companion-check.d.ts +0 -28
- package/dist/review-intelligence/companion-check.d.ts.map +0 -1
- package/dist/review-intelligence/companion-check.js +0 -71
- package/dist/review-intelligence/companion-check.js.map +0 -1
- package/dist/review-intelligence/detectors/architecture-graph.d.ts +0 -18
- package/dist/review-intelligence/detectors/architecture-graph.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/architecture-graph.js +0 -73
- package/dist/review-intelligence/detectors/architecture-graph.js.map +0 -1
- package/dist/review-intelligence/detectors/cjs-named-import.d.ts +0 -13
- package/dist/review-intelligence/detectors/cjs-named-import.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/cjs-named-import.js +0 -134
- package/dist/review-intelligence/detectors/cjs-named-import.js.map +0 -1
- package/dist/review-intelligence/detectors/exact-count-assertion.d.ts +0 -17
- package/dist/review-intelligence/detectors/exact-count-assertion.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/exact-count-assertion.js +0 -93
- package/dist/review-intelligence/detectors/exact-count-assertion.js.map +0 -1
- package/dist/review-intelligence/detectors/exports-map-missing.d.ts +0 -14
- package/dist/review-intelligence/detectors/exports-map-missing.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/exports-map-missing.js +0 -131
- package/dist/review-intelligence/detectors/exports-map-missing.js.map +0 -1
- package/dist/review-intelligence/detectors/fixture-keyword-drift.d.ts +0 -12
- package/dist/review-intelligence/detectors/fixture-keyword-drift.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/fixture-keyword-drift.js +0 -82
- package/dist/review-intelligence/detectors/fixture-keyword-drift.js.map +0 -1
- package/dist/review-intelligence/detectors/optional-infra-crash.d.ts +0 -12
- package/dist/review-intelligence/detectors/optional-infra-crash.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/optional-infra-crash.js +0 -97
- package/dist/review-intelligence/detectors/optional-infra-crash.js.map +0 -1
- package/dist/review-intelligence/detectors/outbound-io.d.ts +0 -14
- package/dist/review-intelligence/detectors/outbound-io.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/outbound-io.js +0 -122
- package/dist/review-intelligence/detectors/outbound-io.js.map +0 -1
- package/dist/review-intelligence/detectors/pack-rules.d.ts +0 -16
- package/dist/review-intelligence/detectors/pack-rules.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/pack-rules.js +0 -107
- package/dist/review-intelligence/detectors/pack-rules.js.map +0 -1
- package/dist/review-intelligence/detectors/platform-helpers.d.ts +0 -15
- package/dist/review-intelligence/detectors/platform-helpers.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/platform-helpers.js +0 -171
- package/dist/review-intelligence/detectors/platform-helpers.js.map +0 -1
- package/dist/review-intelligence/detectors/runtime-validation.d.ts +0 -10
- package/dist/review-intelligence/detectors/runtime-validation.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/runtime-validation.js +0 -109
- package/dist/review-intelligence/detectors/runtime-validation.js.map +0 -1
- package/dist/review-intelligence/detectors/undeclared-dependency.d.ts +0 -11
- package/dist/review-intelligence/detectors/undeclared-dependency.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/undeclared-dependency.js +0 -100
- package/dist/review-intelligence/detectors/undeclared-dependency.js.map +0 -1
- package/dist/review-intelligence/engine/ast-parser.d.ts +0 -90
- package/dist/review-intelligence/engine/ast-parser.d.ts.map +0 -1
- package/dist/review-intelligence/engine/ast-parser.js +0 -266
- package/dist/review-intelligence/engine/ast-parser.js.map +0 -1
- package/dist/review-intelligence/engine/dataflow.d.ts +0 -34
- package/dist/review-intelligence/engine/dataflow.d.ts.map +0 -1
- package/dist/review-intelligence/engine/dataflow.js +0 -115
- package/dist/review-intelligence/engine/dataflow.js.map +0 -1
- package/dist/review-intelligence/engine/index.d.ts +0 -7
- package/dist/review-intelligence/engine/index.d.ts.map +0 -1
- package/dist/review-intelligence/engine/index.js +0 -7
- package/dist/review-intelligence/engine/index.js.map +0 -1
- package/dist/review-intelligence/engine/symbol-resolver.d.ts +0 -34
- package/dist/review-intelligence/engine/symbol-resolver.d.ts.map +0 -1
- package/dist/review-intelligence/engine/symbol-resolver.js +0 -106
- package/dist/review-intelligence/engine/symbol-resolver.js.map +0 -1
- package/dist/review-intelligence/fingerprint.d.ts +0 -15
- package/dist/review-intelligence/fingerprint.d.ts.map +0 -1
- package/dist/review-intelligence/fingerprint.js +0 -29
- package/dist/review-intelligence/fingerprint.js.map +0 -1
- package/dist/review-intelligence/fixes/index.d.ts +0 -54
- package/dist/review-intelligence/fixes/index.d.ts.map +0 -1
- package/dist/review-intelligence/fixes/index.js +0 -346
- package/dist/review-intelligence/fixes/index.js.map +0 -1
- package/dist/review-intelligence/index.d.ts +0 -24
- package/dist/review-intelligence/index.d.ts.map +0 -1
- package/dist/review-intelligence/index.js +0 -155
- package/dist/review-intelligence/index.js.map +0 -1
- package/dist/review-intelligence/invariants.d.ts +0 -25
- package/dist/review-intelligence/invariants.d.ts.map +0 -1
- package/dist/review-intelligence/invariants.js +0 -73
- package/dist/review-intelligence/invariants.js.map +0 -1
- package/dist/review-intelligence/learning/index.d.ts +0 -39
- package/dist/review-intelligence/learning/index.d.ts.map +0 -1
- package/dist/review-intelligence/learning/index.js +0 -265
- package/dist/review-intelligence/learning/index.js.map +0 -1
- package/dist/review-intelligence/output.d.ts +0 -31
- package/dist/review-intelligence/output.d.ts.map +0 -1
- package/dist/review-intelligence/output.js +0 -224
- package/dist/review-intelligence/output.js.map +0 -1
- package/dist/review-intelligence/packs/index.d.ts +0 -69
- package/dist/review-intelligence/packs/index.d.ts.map +0 -1
- package/dist/review-intelligence/packs/index.js +0 -168
- package/dist/review-intelligence/packs/index.js.map +0 -1
- package/dist/review-intelligence/repair-guidance.d.ts +0 -11
- package/dist/review-intelligence/repair-guidance.d.ts.map +0 -1
- package/dist/review-intelligence/repair-guidance.js +0 -137
- package/dist/review-intelligence/repair-guidance.js.map +0 -1
- package/dist/review-intelligence/severity.d.ts +0 -10
- package/dist/review-intelligence/severity.d.ts.map +0 -1
- package/dist/review-intelligence/severity.js +0 -36
- package/dist/review-intelligence/severity.js.map +0 -1
- package/dist/review-intelligence/standards-discovery.d.ts +0 -12
- package/dist/review-intelligence/standards-discovery.d.ts.map +0 -1
- package/dist/review-intelligence/standards-discovery.js +0 -221
- package/dist/review-intelligence/standards-discovery.js.map +0 -1
- package/dist/review-intelligence/suppressions.d.ts +0 -53
- package/dist/review-intelligence/suppressions.d.ts.map +0 -1
- package/dist/review-intelligence/suppressions.js +0 -86
- package/dist/review-intelligence/suppressions.js.map +0 -1
- package/dist/review-intelligence/triggers.d.ts +0 -15
- package/dist/review-intelligence/triggers.d.ts.map +0 -1
- package/dist/review-intelligence/triggers.js +0 -104
- package/dist/review-intelligence/triggers.js.map +0 -1
- package/dist/review-intelligence/types.d.ts +0 -186
- package/dist/review-intelligence/types.d.ts.map +0 -1
- package/dist/review-intelligence/types.js +0 -11
- package/dist/review-intelligence/types.js.map +0 -1
- package/dist/risk-detection/heuristics.d.ts +0 -13
- package/dist/risk-detection/heuristics.d.ts.map +0 -1
- package/dist/risk-detection/heuristics.js +0 -348
- package/dist/risk-detection/heuristics.js.map +0 -1
- package/dist/risk-detection/index.d.ts +0 -20
- package/dist/risk-detection/index.d.ts.map +0 -1
- package/dist/risk-detection/index.js +0 -128
- package/dist/risk-detection/index.js.map +0 -1
- package/dist/security/export-sanitizer.d.ts +0 -76
- package/dist/security/export-sanitizer.d.ts.map +0 -1
- package/dist/security/export-sanitizer.js +0 -176
- package/dist/security/export-sanitizer.js.map +0 -1
- package/dist/security/path-summary.d.ts +0 -4
- package/dist/security/path-summary.d.ts.map +0 -1
- package/dist/security/path-summary.js +0 -94
- package/dist/security/path-summary.js.map +0 -1
- package/dist/session-id.d.ts +0 -22
- package/dist/session-id.d.ts.map +0 -1
- package/dist/session-id.js +0 -49
- package/dist/session-id.js.map +0 -1
- package/dist/session-paths.d.ts +0 -35
- package/dist/session-paths.d.ts.map +0 -1
- package/dist/session-paths.js +0 -68
- package/dist/session-paths.js.map +0 -1
- package/dist/session-registry.d.ts +0 -19
- package/dist/session-registry.d.ts.map +0 -1
- package/dist/session-registry.js +0 -182
- package/dist/session-registry.js.map +0 -1
- package/dist/session-timeline.d.ts +0 -13
- package/dist/session-timeline.d.ts.map +0 -1
- package/dist/session-timeline.js +0 -134
- package/dist/session-timeline.js.map +0 -1
- package/dist/signing/canonicalize.d.ts +0 -17
- package/dist/signing/canonicalize.d.ts.map +0 -1
- package/dist/signing/canonicalize.js +0 -50
- package/dist/signing/canonicalize.js.map +0 -1
- package/dist/signing/hmac.d.ts +0 -8
- package/dist/signing/hmac.d.ts.map +0 -1
- package/dist/signing/hmac.js +0 -16
- package/dist/signing/hmac.js.map +0 -1
- package/dist/signing/signer.d.ts +0 -16
- package/dist/signing/signer.d.ts.map +0 -1
- package/dist/signing/signer.js +0 -2
- package/dist/signing/signer.js.map +0 -1
- package/dist/templates/claude-md.d.ts +0 -12
- package/dist/templates/claude-md.d.ts.map +0 -1
- package/dist/templates/claude-md.js +0 -113
- package/dist/templates/claude-md.js.map +0 -1
- package/dist/templates/config.d.ts +0 -3
- package/dist/templates/config.d.ts.map +0 -1
- package/dist/templates/config.js +0 -154
- package/dist/templates/config.js.map +0 -1
- package/dist/templates/harness-pack.d.ts +0 -3
- package/dist/templates/harness-pack.d.ts.map +0 -1
- package/dist/templates/harness-pack.js +0 -26
- package/dist/templates/harness-pack.js.map +0 -1
- package/dist/templates/hooks.d.ts +0 -36
- package/dist/templates/hooks.d.ts.map +0 -1
- package/dist/templates/hooks.js +0 -278
- package/dist/templates/hooks.js.map +0 -1
- package/dist/templates/runtime-resolution.d.ts +0 -4
- package/dist/templates/runtime-resolution.d.ts.map +0 -1
- package/dist/templates/runtime-resolution.js +0 -76
- package/dist/templates/runtime-resolution.js.map +0 -1
- package/dist/templates/scenarios.d.ts +0 -3
- package/dist/templates/scenarios.d.ts.map +0 -1
- package/dist/templates/scenarios.js +0 -335
- package/dist/templates/scenarios.js.map +0 -1
- package/dist/utils/two-loop.d.ts +0 -36
- package/dist/utils/two-loop.d.ts.map +0 -1
- package/dist/utils/two-loop.js +0 -75
- package/dist/utils/two-loop.js.map +0 -1
- package/dist/utils/upgrade-nudge.d.ts +0 -18
- package/dist/utils/upgrade-nudge.d.ts.map +0 -1
- package/dist/utils/upgrade-nudge.js +0 -57
- package/dist/utils/upgrade-nudge.js.map +0 -1
- package/dist/verify/evaluate.d.ts +0 -10
- package/dist/verify/evaluate.d.ts.map +0 -1
- package/dist/verify/evaluate.js +0 -117
- package/dist/verify/evaluate.js.map +0 -1
- package/dist/verify/insertion-point-lock.d.ts +0 -12
- package/dist/verify/insertion-point-lock.d.ts.map +0 -1
- package/dist/verify/insertion-point-lock.js +0 -208
- package/dist/verify/insertion-point-lock.js.map +0 -1
- package/dist/verify/policy-snapshot.d.ts +0 -7
- package/dist/verify/policy-snapshot.d.ts.map +0 -1
- package/dist/verify/policy-snapshot.js +0 -36
- package/dist/verify/policy-snapshot.js.map +0 -1
- package/dist/verify/report.d.ts +0 -11
- package/dist/verify/report.d.ts.map +0 -1
- package/dist/verify/report.js +0 -64
- package/dist/verify/report.js.map +0 -1
- package/dist/verify/symbol-growth.d.ts +0 -13
- package/dist/verify/symbol-growth.d.ts.map +0 -1
- package/dist/verify/symbol-growth.js +0 -143
- package/dist/verify/symbol-growth.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -11
- package/dist/version.js.map +0 -1
package/dist/index.js
DELETED
|
@@ -1,1499 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { runInit } from './commands/init.js';
|
|
3
|
-
import { runScan } from './commands/scan.js';
|
|
4
|
-
import { runBundle } from './commands/bundle.js';
|
|
5
|
-
import { runActivate } from './commands/activate.js';
|
|
6
|
-
import { runRun } from './commands/run.js';
|
|
7
|
-
import { runCompare } from './commands/compare.js';
|
|
8
|
-
import { runCompareCurrent } from './commands/compare-current.js';
|
|
9
|
-
import { runSessionSummary } from './commands/session-summary.js';
|
|
10
|
-
import { runSessionProgress } from './commands/session-progress.js';
|
|
11
|
-
import { runSessionInit } from './commands/session-init.js';
|
|
12
|
-
import { runSessionCleanup } from './commands/session-cleanup.js';
|
|
13
|
-
import { runSessions } from './commands/sessions.js';
|
|
14
|
-
import { runClean } from './commands/clean.js';
|
|
15
|
-
import { runShare } from './commands/share.js';
|
|
16
|
-
import { runRefine } from './commands/refine.js';
|
|
17
|
-
import { runCoworkStart } from './commands/cowork-start.js';
|
|
18
|
-
import { runCoworkRefresh } from './commands/cowork-refresh.js';
|
|
19
|
-
import { runCoworkSnapshot } from './commands/cowork-snapshot.js';
|
|
20
|
-
import { runCoworkStop } from './commands/cowork-stop.js';
|
|
21
|
-
import { runDoctor } from './commands/doctor.js';
|
|
22
|
-
import { runCheckpoint } from './commands/checkpoint.js';
|
|
23
|
-
import { runSharedSummary } from './commands/shared-summary.js';
|
|
24
|
-
import { runIntent } from './commands/intent.js';
|
|
25
|
-
import { runManifest } from './commands/manifest.js';
|
|
26
|
-
import { runSignManifest } from './commands/sign-manifest.js';
|
|
27
|
-
import { runPolicy } from './commands/policy.js';
|
|
28
|
-
import { runVerify } from './commands/verify.js';
|
|
29
|
-
import { runSetupCi } from './commands/setup-ci.js';
|
|
30
|
-
import { runReviewCoverage } from './commands/review-coverage.js';
|
|
31
|
-
import { runReviewGate } from './commands/review-gate.js';
|
|
32
|
-
import { runProgressCheck } from './commands/progress-check.js';
|
|
33
|
-
import { runVendor } from './commands/vendor.js';
|
|
34
|
-
import { runDetectSecrets } from './commands/detect-secrets.js';
|
|
35
|
-
import { runDrift } from './commands/drift.js';
|
|
36
|
-
import { runHarvest } from './commands/harvest.js';
|
|
37
|
-
import { runMemory } from './commands/memory.js';
|
|
38
|
-
import { runBroker } from './commands/broker.js';
|
|
39
|
-
import { runGuardrails as runGuardrailsCmd } from './commands/guardrails.js';
|
|
40
|
-
import { runLessons } from './commands/lessons.js';
|
|
41
|
-
import { runReleaseCheckCmd } from './commands/release-check.js';
|
|
42
|
-
import { runStats } from './commands/stats.js';
|
|
43
|
-
import { requireTier, runLicense } from './commands/license.js';
|
|
44
|
-
import { runArchPolicy } from './commands/arch-policy.js';
|
|
45
|
-
import { runAuditExport } from './commands/audit-export.js';
|
|
46
|
-
import { runAudit } from './commands/audit.js';
|
|
47
|
-
import { runCi } from './commands/ci.js';
|
|
48
|
-
import { runClaims } from './commands/claims.js';
|
|
49
|
-
import { runCommitMsg } from './commands/commit-msg.js';
|
|
50
|
-
import { runCompleteCheck } from './commands/complete-check.js';
|
|
51
|
-
import { runClaim, runCoordination, runLeases, runPreflightEdit, runRelease } from './commands/coordination.js';
|
|
52
|
-
import { runConflicts } from './commands/conflicts.js';
|
|
53
|
-
import { runContext } from './commands/context.js';
|
|
54
|
-
import { runContextHandoff } from './commands/context-handoff.js';
|
|
55
|
-
import { runDashboard } from './commands/dashboard.js';
|
|
56
|
-
import { runDiscover } from './commands/discover.js';
|
|
57
|
-
import { runDiscoverCheck } from './commands/discover-check.js';
|
|
58
|
-
import { runDiscoverGate } from './commands/discover-gate.js';
|
|
59
|
-
import { runEnable } from './commands/enable.js';
|
|
60
|
-
import { runFeatures } from './commands/features.js';
|
|
61
|
-
import { runFix } from './commands/fix.js';
|
|
62
|
-
import { runGraph } from './commands/graph.js';
|
|
63
|
-
import { runCapsuleChange } from './commands/capsule-change.js';
|
|
64
|
-
import { runCoachCommand } from './commands/coach.js';
|
|
65
|
-
import { runEcl } from './commands/ecl.js';
|
|
66
|
-
import { runFleet } from './commands/fleet.js';
|
|
67
|
-
import { runHealth } from './commands/health.js';
|
|
68
|
-
import { runIntervene } from './commands/intervene.js';
|
|
69
|
-
import { runInterventions } from './commands/interventions.js';
|
|
70
|
-
import { runLearn } from './commands/learn.js';
|
|
71
|
-
import { runLedger } from './commands/ledger.js';
|
|
72
|
-
import { runOrchestrate } from './commands/orchestrate.js';
|
|
73
|
-
import { runPack } from './commands/pack.js';
|
|
74
|
-
import { runPolicyInit, runPolicyValidate, runPolicyDiff, runPolicyMerge } from './commands/policy-author.js';
|
|
75
|
-
import { runPolicySimulate } from './commands/policy-simulate.js';
|
|
76
|
-
import { runPrePRCmd } from './commands/pre-pr.js';
|
|
77
|
-
import { runPRCheck } from './commands/pr-check.js';
|
|
78
|
-
import { runPRSummary } from './commands/pr-summary.js';
|
|
79
|
-
import { runPRComment } from './commands/pr-comment.js';
|
|
80
|
-
import { runReleaseHistory } from './commands/release-history.js';
|
|
81
|
-
import { runReleaseTruth } from './commands/release-truth.js';
|
|
82
|
-
import { runHotspots } from './commands/hotspots.js';
|
|
83
|
-
import { runReleaseDecision } from './commands/release-decision.js';
|
|
84
|
-
import { runPostMergeOutcome } from './commands/post-merge-outcome.js';
|
|
85
|
-
import { runReleaseInsights } from './commands/release-insights.js';
|
|
86
|
-
import { runProvenance } from './commands/provenance.js';
|
|
87
|
-
import { runPulse } from './commands/pulse.js';
|
|
88
|
-
import { runOutcome } from './commands/outcome.js';
|
|
89
|
-
import { runRealityCheck } from './commands/reality-check.js';
|
|
90
|
-
import { runReplay } from './commands/replay.js';
|
|
91
|
-
import { runServe } from './commands/serve.js';
|
|
92
|
-
import { runTeamLedger } from './commands/team-ledger.js';
|
|
93
|
-
import { runTeamMetrics } from './commands/team-metrics.js';
|
|
94
|
-
import { runUpgrade } from './commands/upgrade.js';
|
|
95
|
-
import { runTask } from './commands/task.js';
|
|
96
|
-
import { runSnapshot } from './commands/snapshot.js';
|
|
97
|
-
import { runTimeTravel } from './commands/time-travel.js';
|
|
98
|
-
import { runCodex } from './commands/codex.js';
|
|
99
|
-
import { runClaude } from './commands/claude.js';
|
|
100
|
-
import { runAutoRefresh } from './commands/auto-refresh.js';
|
|
101
|
-
import { runPreflightCommand } from './commands/preflight.js';
|
|
102
|
-
import { runRuns } from './commands/runs.js';
|
|
103
|
-
import { runDaemonCli } from './commands/daemon.js';
|
|
104
|
-
import { runApplyPolicy } from './commands/apply-policy.js';
|
|
105
|
-
import { runAbout } from './commands/about.js';
|
|
106
|
-
import { runSync } from './commands/sync.js';
|
|
107
|
-
import { runMcp } from './commands/mcp.js';
|
|
108
|
-
import { runMergeCheck } from './commands/merge-check.js';
|
|
109
|
-
import { runInsight } from './commands/insight.js';
|
|
110
|
-
import { runTestSummary } from './commands/test-summary.js';
|
|
111
|
-
import { runEvidence } from './commands/evidence.js';
|
|
112
|
-
import { ensureAmbientActivation } from './ambient-activation.js';
|
|
113
|
-
import { CLI_VERSION } from './version.js';
|
|
114
|
-
import { maybeShowOnboarding } from './onboarding.js';
|
|
115
|
-
const args = process.argv.slice(2);
|
|
116
|
-
const command = args[0];
|
|
117
|
-
export function parseArgs(argv) {
|
|
118
|
-
const result = {};
|
|
119
|
-
for (let i = 0; i < argv.length; i++) {
|
|
120
|
-
const arg = argv[i];
|
|
121
|
-
if (arg.startsWith('--')) {
|
|
122
|
-
const key = arg.slice(2);
|
|
123
|
-
const next = argv[i + 1];
|
|
124
|
-
if (next !== undefined && !next.startsWith('--')) {
|
|
125
|
-
result[key] = next;
|
|
126
|
-
i++;
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
result[key] = 'true';
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return result;
|
|
134
|
-
}
|
|
135
|
-
function extractPositionals(argv) {
|
|
136
|
-
const positional = [];
|
|
137
|
-
for (let index = 0; index < argv.length; index += 1) {
|
|
138
|
-
const arg = argv[index];
|
|
139
|
-
if (!arg.startsWith('--')) {
|
|
140
|
-
positional.push(arg);
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
const next = argv[index + 1];
|
|
144
|
-
if (next !== undefined && !next.startsWith('--')) {
|
|
145
|
-
index += 1;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return positional;
|
|
149
|
-
}
|
|
150
|
-
// Known flags per command for unknown flag warnings (Fix 2.3)
|
|
151
|
-
const KNOWN_FLAGS = {
|
|
152
|
-
scan: new Set(['full-policy', 'help']),
|
|
153
|
-
context: new Set(['bundle', 'from', 'to', 'output', 'json', 'explain', 'task', 'expansion-level', 'force', 'agent', 'surface', 'verbosity', 'expand', 'strict', 'help', 'session']),
|
|
154
|
-
ledger: new Set(['intent', 'limit', 'max']),
|
|
155
|
-
activate: new Set(['task', 'scope', 'branch-aware', 'continue', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'budget', 'max-files', 'session', 'quiet', 'stale-after', 'mode', 'coverage-threshold', 'refine', 'no-refine', 'strict']),
|
|
156
|
-
bundle: new Set(['task', 'json', 'scope', 'near-misses', 'blast-radius', 'explain', 'expand', 'layer-order', 'budget', 'max-files']),
|
|
157
|
-
refine: new Set(['learned', 'drop', 'add-keywords', 'budget', 'max-files', 'session']),
|
|
158
|
-
'session-summary': new Set(['session', 'quiet', 'final']),
|
|
159
|
-
'session-progress': new Set(['session', 'quiet']),
|
|
160
|
-
checkpoint: new Set(['session', 'quiet', 'id']),
|
|
161
|
-
intent: new Set(['objective', 'deliverable', 'scope-in', 'scope-out', 'constraint', 'accept', 'risk', 'paths', 'session', 'as-baseline', 'task', 'json']),
|
|
162
|
-
manifest: new Set(['task', 'out', 'artifacts-dir', 'session']),
|
|
163
|
-
'sign-manifest': new Set(['in', 'out']),
|
|
164
|
-
policy: new Set(['print', 'policy-root', 'scope', 'file', 'base', 'target', 'files', 'json', 'help']),
|
|
165
|
-
'apply-policy': new Set(['help']),
|
|
166
|
-
'setup-ci': new Set(['mode', 'output', 'provider', 'print']),
|
|
167
|
-
task: new Set(['task', 'agent', 'mode', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'agent-bin', 'dry-run', 'session']),
|
|
168
|
-
codex: new Set(['task', 'mode', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'agent-bin', 'dry-run', 'session']),
|
|
169
|
-
claude: new Set(['task', 'mode', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'agent-bin', 'dry-run', 'session']),
|
|
170
|
-
'auto-refresh': new Set(['prompt', 'session', 'quiet', 'stale-after', 'scope', 'branch-aware', 'continue', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'budget', 'max-files', 'mode', 'coverage-threshold']),
|
|
171
|
-
preflight: new Set(['task', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'session']),
|
|
172
|
-
runs: new Set(['limit']),
|
|
173
|
-
verify: new Set(['task', 'policy-root', 'artifacts-dir', 'coverage-attestation', 'explain', 'json', 'debug-review', 'invariant', 'update-baseline', 'show-triaged', 'baseline-path', 'session']),
|
|
174
|
-
init: new Set(['force']),
|
|
175
|
-
memory: new Set(['task', 'terms', 'anchors', 'force', 'from', 'dry-run', 'json', 'paths', 'id']),
|
|
176
|
-
broker: new Set(['task', 'target', 'finding', 'json', 'list', 'scope']),
|
|
177
|
-
graph: new Set(['json', 'save', 'target', 'task']),
|
|
178
|
-
capsule: new Set(['target', 'task', 'json']),
|
|
179
|
-
coach: new Set(['intent', 'json', 'help']),
|
|
180
|
-
ecl: new Set(['seed', 'from', 'json', 'help']),
|
|
181
|
-
fleet: new Set(['manifest', 'from', 'from-github', 'out', 'json', 'help', 'team-a', 'team-b', 'a', 'b', 'top', 'window']),
|
|
182
|
-
'validate-change': new Set(['target', 'task', 'json']),
|
|
183
|
-
guardrails: new Set(['task', 'json']),
|
|
184
|
-
lessons: new Set(['task', 'files', 'concepts', 'id', 'json', 'title', 'summary', 'category', 'severity', 'trigger-files', 'trigger-task', 'trigger-content', 'rationale']),
|
|
185
|
-
'release-check': new Set(['strict', 'json', 'why']),
|
|
186
|
-
discover: new Set(['task', 'json', 'session']),
|
|
187
|
-
'discover-check': new Set(['task', 'json', 'strict', 'session']),
|
|
188
|
-
'discover-gate': new Set(['task', 'json', 'session']),
|
|
189
|
-
'review-coverage': new Set(['session']),
|
|
190
|
-
'review-gate': new Set(['session']),
|
|
191
|
-
'progress-check': new Set(['session']),
|
|
192
|
-
'vendor': new Set(['target']),
|
|
193
|
-
'detect-secrets': new Set(['json', 'sarif', 'severity', 'bundle', 'paths-from-bundle', 'baseline', 'update-baseline', 'entropy']),
|
|
194
|
-
drift: new Set(['observe', 'history', 'json', 'since', 'severity', 'verify-integrity']),
|
|
195
|
-
outcome: new Set(['pattern', 'json', 'verify-integrity']),
|
|
196
|
-
harvest: new Set(['apply', 'preview', 'json', 'verify-integrity']),
|
|
197
|
-
'context-handoff': new Set(['target', 'json', 'verify-integrity']),
|
|
198
|
-
'complete-check': new Set(['task', 'summary', 'task-type', 'claims-json', 'claim', 'evidence', 'omit', 'json', 'explain', 'session']),
|
|
199
|
-
'audit': new Set([
|
|
200
|
-
'task',
|
|
201
|
-
'summary',
|
|
202
|
-
'task-type',
|
|
203
|
-
'profile',
|
|
204
|
-
'spec',
|
|
205
|
-
'claim',
|
|
206
|
-
'evidence',
|
|
207
|
-
'omit',
|
|
208
|
-
'json',
|
|
209
|
-
'explain',
|
|
210
|
-
'session',
|
|
211
|
-
'run-tests',
|
|
212
|
-
'test-cmd',
|
|
213
|
-
]),
|
|
214
|
-
'pre-pr': new Set(['json', 'task', 'skip-docs', 'skip-tests', 'session']),
|
|
215
|
-
'pr-comment': new Set(['preview', 'verify', 'evidence', 'out', 'cta']),
|
|
216
|
-
'release-history': new Set(['json']),
|
|
217
|
-
'release-truth': new Set(['commit', 'json']),
|
|
218
|
-
hotspots: new Set(['json']),
|
|
219
|
-
'release-decision': new Set(['decision', 'commit', 'source', 'verify-status', 'json']),
|
|
220
|
-
'post-merge-outcome': new Set(['result', 'commit', 'window', 'notes', 'json']),
|
|
221
|
-
'release-insights': new Set(['json', 'window']),
|
|
222
|
-
claim: new Set(['task', 'actor', 'mode', 'ttl', 'json', 'force', 'session']),
|
|
223
|
-
leases: new Set(['active', 'stale', 'json']),
|
|
224
|
-
'preflight-edit': new Set(['json', 'strict', 'session', 'path']),
|
|
225
|
-
release: new Set(['session', 'claim', 'all', 'json']),
|
|
226
|
-
coordination: new Set(['json']),
|
|
227
|
-
snapshot: new Set(['json', 'verify-integrity']),
|
|
228
|
-
'time-travel': new Set(['to', 'json', 'verify-integrity']),
|
|
229
|
-
'reality-check': new Set(['json', 'verify-integrity']),
|
|
230
|
-
'compare-current': new Set(['session', 'scenario-out', 'run', 'guided', 'agentCmd', 'agentCmdWith', 'agentCmdWithout', 'repeats', 'force', 'useWorktree', 'keepWorktree', 'worktreeRoot', 'injection', 'guided-timeout', 'force-inline']),
|
|
231
|
-
daemon: new Set(['port', 'background', 'hot-days', 'snapshot-limit', 'snapshot-interval']),
|
|
232
|
-
serve: new Set(['port', 'host']),
|
|
233
|
-
insight: new Set(['port', 'host', 'no-open', 'scenario', 'days', 'seed', 'start-date', 'reset', 'background']),
|
|
234
|
-
'test-summary': new Set(['run', 'json']),
|
|
235
|
-
evidence: new Set(['json']),
|
|
236
|
-
provenance: new Set(['task', 'json', 'raw']),
|
|
237
|
-
'audit-export': new Set(['format', 'output', 'table', 'raw']),
|
|
238
|
-
sync: new Set(['mode', 'github']),
|
|
239
|
-
mcp: new Set([]),
|
|
240
|
-
'merge-check': new Set(['save-baseline', 'verify', 'self-check', 'json']),
|
|
241
|
-
ci: new Set(['task', 'json', 'mode', 'base', 'comment-file', 'github-output', 'session']),
|
|
242
|
-
replay: new Set(['task', 'json', 'session']),
|
|
243
|
-
};
|
|
244
|
-
function warnUnknownFlags(command, flags) {
|
|
245
|
-
const known = KNOWN_FLAGS[command];
|
|
246
|
-
if (!known)
|
|
247
|
-
return;
|
|
248
|
-
for (const key of Object.keys(flags)) {
|
|
249
|
-
if (key === '_sub')
|
|
250
|
-
continue; // internal subcommand routing
|
|
251
|
-
if (key === '_arg')
|
|
252
|
-
continue; // internal positional argument
|
|
253
|
-
if (key === '_paths')
|
|
254
|
-
continue; // internal positional path capture
|
|
255
|
-
if (key.startsWith('_ambient_'))
|
|
256
|
-
continue; // internal ambient activation metadata
|
|
257
|
-
if (!known.has(key)) {
|
|
258
|
-
// Check for close matches (common typos: plural/singular)
|
|
259
|
-
let hint = '';
|
|
260
|
-
const singular = key.endsWith('s') ? key.slice(0, -1) : key + 's';
|
|
261
|
-
if (known.has(singular)) {
|
|
262
|
-
hint = ` Did you mean "--${singular}"?`;
|
|
263
|
-
}
|
|
264
|
-
console.error(`Warning: Unknown flag "--${key}" ignored.${hint}`);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
async function main() {
|
|
269
|
-
// Show onboarding on first run or explicit help (never blocks)
|
|
270
|
-
const topFlags = parseArgs(args.slice(1));
|
|
271
|
-
maybeShowOnboarding({ command, cwd: process.cwd(), flags: topFlags });
|
|
272
|
-
// Global --help short-circuit: if any command is invoked with --help or -h,
|
|
273
|
-
// print the top-level help banner and exit 0 instead of executing the command.
|
|
274
|
-
// Commands that implement their own help dispatch (e.g. `context --help`,
|
|
275
|
-
// `policy review --help`) already opt in via their own subcommand routing
|
|
276
|
-
// BEFORE this check runs — they live inside the case bodies below and are
|
|
277
|
-
// reached only when the user passes the subcommand explicitly.
|
|
278
|
-
const HELP_OPT_OUT = new Set([
|
|
279
|
-
'help', '--help', '-h', 'version', '--version', '-v',
|
|
280
|
-
// Commands that already implement their own --help handling:
|
|
281
|
-
'about', 'apply-policy', 'broker', 'coach', 'context', 'ecl', 'fleet',
|
|
282
|
-
'guardrails', 'lessons', 'license', 'memory', 'policy', 'scan', 'serve',
|
|
283
|
-
]);
|
|
284
|
-
if (command !== undefined &&
|
|
285
|
-
!HELP_OPT_OUT.has(command) &&
|
|
286
|
-
args.slice(1).some((a) => a === '--help' || a === '-h')) {
|
|
287
|
-
printHelp();
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
const ambientActivation = await ensureAmbientActivation(process.cwd(), command, args.slice(1));
|
|
291
|
-
switch (command) {
|
|
292
|
-
case 'init': {
|
|
293
|
-
const initFlags = parseArgs(args.slice(1));
|
|
294
|
-
warnUnknownFlags('init', initFlags);
|
|
295
|
-
await runInit(process.cwd(), initFlags);
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
case 'scan': {
|
|
299
|
-
const scanFlags = parseArgs(args.slice(1));
|
|
300
|
-
warnUnknownFlags('scan', scanFlags);
|
|
301
|
-
await runScan(process.cwd(), scanFlags);
|
|
302
|
-
break;
|
|
303
|
-
}
|
|
304
|
-
case 'bundle': {
|
|
305
|
-
const flags = parseArgs(args.slice(1));
|
|
306
|
-
applyAmbientActivationFlags(flags, ambientActivation);
|
|
307
|
-
warnUnknownFlags('bundle', flags);
|
|
308
|
-
await runBundle(process.cwd(), flags);
|
|
309
|
-
break;
|
|
310
|
-
}
|
|
311
|
-
case 'task': {
|
|
312
|
-
const taskFlags = parseArgs(args.slice(1));
|
|
313
|
-
applyAmbientActivationFlags(taskFlags, ambientActivation);
|
|
314
|
-
if (!taskFlags['task']) {
|
|
315
|
-
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
316
|
-
if (positional.length > 0) {
|
|
317
|
-
taskFlags['_arg'] = positional.join(' ');
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
warnUnknownFlags('task', taskFlags);
|
|
321
|
-
await runTask(process.cwd(), taskFlags);
|
|
322
|
-
break;
|
|
323
|
-
}
|
|
324
|
-
case 'codex': {
|
|
325
|
-
const codexFlags = parseArgs(args.slice(1));
|
|
326
|
-
applyAmbientActivationFlags(codexFlags, ambientActivation);
|
|
327
|
-
if (!codexFlags['task']) {
|
|
328
|
-
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
329
|
-
if (positional.length > 0) {
|
|
330
|
-
codexFlags['_arg'] = positional.join(' ');
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
warnUnknownFlags('codex', codexFlags);
|
|
334
|
-
await runCodex(process.cwd(), codexFlags);
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
case 'claude': {
|
|
338
|
-
const claudeFlags = parseArgs(args.slice(1));
|
|
339
|
-
applyAmbientActivationFlags(claudeFlags, ambientActivation);
|
|
340
|
-
if (!claudeFlags['task']) {
|
|
341
|
-
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
342
|
-
if (positional.length > 0) {
|
|
343
|
-
claudeFlags['_arg'] = positional.join(' ');
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
warnUnknownFlags('claude', claudeFlags);
|
|
347
|
-
await runClaude(process.cwd(), claudeFlags);
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
case 'preflight': {
|
|
351
|
-
const preflightFlags = parseArgs(args.slice(1));
|
|
352
|
-
applyAmbientActivationFlags(preflightFlags, ambientActivation);
|
|
353
|
-
if (!preflightFlags['task']) {
|
|
354
|
-
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
355
|
-
if (positional.length > 0) {
|
|
356
|
-
preflightFlags['_arg'] = positional.join(' ');
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
warnUnknownFlags('preflight', preflightFlags);
|
|
360
|
-
await runPreflightCommand(process.cwd(), preflightFlags);
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
case 'runs': {
|
|
364
|
-
const runsFlags = parseArgs(args.slice(1));
|
|
365
|
-
warnUnknownFlags('runs', runsFlags);
|
|
366
|
-
await runRuns(process.cwd(), runsFlags);
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
case 'activate': {
|
|
370
|
-
const activateFlags = parseArgs(args.slice(1));
|
|
371
|
-
applyAmbientActivationFlags(activateFlags, ambientActivation);
|
|
372
|
-
warnUnknownFlags('activate', activateFlags);
|
|
373
|
-
await runActivate(process.cwd(), activateFlags);
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
case 'auto-refresh': {
|
|
377
|
-
const autoRefreshFlags = parseArgs(args.slice(1));
|
|
378
|
-
warnUnknownFlags('auto-refresh', autoRefreshFlags);
|
|
379
|
-
await runAutoRefresh(process.cwd(), autoRefreshFlags);
|
|
380
|
-
break;
|
|
381
|
-
}
|
|
382
|
-
case 'run': {
|
|
383
|
-
const runFlags = parseArgs(args.slice(1));
|
|
384
|
-
await runRun(process.cwd(), runFlags);
|
|
385
|
-
break;
|
|
386
|
-
}
|
|
387
|
-
case 'compare': {
|
|
388
|
-
const compareFlags = parseArgs(args.slice(1));
|
|
389
|
-
await runCompare(process.cwd(), compareFlags);
|
|
390
|
-
break;
|
|
391
|
-
}
|
|
392
|
-
case 'compare-current': {
|
|
393
|
-
const compareCurrentFlags = parseArgs(args.slice(1));
|
|
394
|
-
warnUnknownFlags('compare-current', compareCurrentFlags);
|
|
395
|
-
await runCompareCurrent(process.cwd(), compareCurrentFlags);
|
|
396
|
-
break;
|
|
397
|
-
}
|
|
398
|
-
case 'daemon': {
|
|
399
|
-
const daemonFlags = parseArgs(args.slice(2));
|
|
400
|
-
daemonFlags['_sub'] = args[1] ?? 'status';
|
|
401
|
-
warnUnknownFlags('daemon', daemonFlags);
|
|
402
|
-
await runDaemonCli(process.cwd(), daemonFlags);
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
case 'session-summary': {
|
|
406
|
-
const summaryFlags = parseArgs(args.slice(1));
|
|
407
|
-
warnUnknownFlags('session-summary', summaryFlags);
|
|
408
|
-
await runSessionSummary(process.cwd(), summaryFlags);
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
case 'session-progress': {
|
|
412
|
-
const progressFlags = parseArgs(args.slice(1));
|
|
413
|
-
warnUnknownFlags('session-progress', progressFlags);
|
|
414
|
-
await runSessionProgress(process.cwd(), progressFlags);
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
case 'session-init': {
|
|
418
|
-
const sessionInitFlags = parseArgs(args.slice(1));
|
|
419
|
-
await runSessionInit(process.cwd(), sessionInitFlags);
|
|
420
|
-
break;
|
|
421
|
-
}
|
|
422
|
-
case 'session-cleanup': {
|
|
423
|
-
const sessionCleanupFlags = parseArgs(args.slice(1));
|
|
424
|
-
await runSessionCleanup(process.cwd(), sessionCleanupFlags);
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
case 'sessions': {
|
|
428
|
-
const sessionsFlags = parseArgs(args.slice(1));
|
|
429
|
-
await runSessions(process.cwd(), sessionsFlags);
|
|
430
|
-
break;
|
|
431
|
-
}
|
|
432
|
-
case 'refine': {
|
|
433
|
-
const refineFlags = parseArgs(args.slice(1));
|
|
434
|
-
warnUnknownFlags('refine', refineFlags);
|
|
435
|
-
await runRefine(process.cwd(), refineFlags);
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
case 'clean':
|
|
439
|
-
await runClean(process.cwd());
|
|
440
|
-
break;
|
|
441
|
-
case 'share': {
|
|
442
|
-
const shareFlags = parseArgs(args.slice(1));
|
|
443
|
-
await runShare(process.cwd(), shareFlags);
|
|
444
|
-
break;
|
|
445
|
-
}
|
|
446
|
-
case 'stats': {
|
|
447
|
-
const statsFlags = parseArgs(args.slice(1));
|
|
448
|
-
await runStats(process.cwd(), statsFlags);
|
|
449
|
-
break;
|
|
450
|
-
}
|
|
451
|
-
case 'cowork-start': {
|
|
452
|
-
if (!requireTier(process.cwd(), 'team', 'cowork-start'))
|
|
453
|
-
break;
|
|
454
|
-
const coworkStartFlags = parseArgs(args.slice(1));
|
|
455
|
-
await runCoworkStart(process.cwd(), coworkStartFlags);
|
|
456
|
-
break;
|
|
457
|
-
}
|
|
458
|
-
case 'cowork-refresh': {
|
|
459
|
-
if (!requireTier(process.cwd(), 'team', 'cowork-refresh'))
|
|
460
|
-
break;
|
|
461
|
-
const coworkRefreshFlags = parseArgs(args.slice(1));
|
|
462
|
-
await runCoworkRefresh(process.cwd(), coworkRefreshFlags);
|
|
463
|
-
break;
|
|
464
|
-
}
|
|
465
|
-
case 'cowork-snapshot': {
|
|
466
|
-
if (!requireTier(process.cwd(), 'team', 'cowork-snapshot'))
|
|
467
|
-
break;
|
|
468
|
-
const coworkSnapshotFlags = parseArgs(args.slice(1));
|
|
469
|
-
await runCoworkSnapshot(process.cwd(), coworkSnapshotFlags);
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
case 'cowork-stop': {
|
|
473
|
-
if (!requireTier(process.cwd(), 'team', 'cowork-stop'))
|
|
474
|
-
break;
|
|
475
|
-
const coworkStopFlags = parseArgs(args.slice(1));
|
|
476
|
-
await runCoworkStop(process.cwd(), coworkStopFlags);
|
|
477
|
-
break;
|
|
478
|
-
}
|
|
479
|
-
case 'doctor':
|
|
480
|
-
await runDoctor(process.cwd());
|
|
481
|
-
break;
|
|
482
|
-
case 'checkpoint': {
|
|
483
|
-
const checkpointFlags = parseArgs(args.slice(2));
|
|
484
|
-
// First positional arg after 'checkpoint' is the subcommand
|
|
485
|
-
checkpointFlags['_sub'] = args[1] ?? 'create';
|
|
486
|
-
// Capture positional checkpoint ID: `checkpoint restore cp-abc123`
|
|
487
|
-
if (args[2] && !args[2].startsWith('--')) {
|
|
488
|
-
checkpointFlags['id'] = args[2];
|
|
489
|
-
}
|
|
490
|
-
warnUnknownFlags('checkpoint', checkpointFlags);
|
|
491
|
-
await runCheckpoint(process.cwd(), checkpointFlags);
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
case 'shared-summary': {
|
|
495
|
-
if (!requireTier(process.cwd(), 'team', 'shared-summary'))
|
|
496
|
-
break;
|
|
497
|
-
const sharedSummaryFlags = parseArgs(args.slice(1));
|
|
498
|
-
await runSharedSummary(process.cwd(), sharedSummaryFlags);
|
|
499
|
-
break;
|
|
500
|
-
}
|
|
501
|
-
case 'manifest': {
|
|
502
|
-
const manifestFlags = parseArgs(args.slice(1));
|
|
503
|
-
applyAmbientActivationFlags(manifestFlags, ambientActivation);
|
|
504
|
-
warnUnknownFlags('manifest', manifestFlags);
|
|
505
|
-
await runManifest(process.cwd(), manifestFlags);
|
|
506
|
-
break;
|
|
507
|
-
}
|
|
508
|
-
case 'sign-manifest': {
|
|
509
|
-
const signFlags = parseArgs(args.slice(1));
|
|
510
|
-
warnUnknownFlags('sign-manifest', signFlags);
|
|
511
|
-
await runSignManifest(process.cwd(), signFlags);
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
case 'verify': {
|
|
515
|
-
const verifyFlags = parseArgs(args.slice(1));
|
|
516
|
-
applyAmbientActivationFlags(verifyFlags, ambientActivation);
|
|
517
|
-
warnUnknownFlags('verify', verifyFlags);
|
|
518
|
-
await runVerify(process.cwd(), verifyFlags);
|
|
519
|
-
break;
|
|
520
|
-
}
|
|
521
|
-
case 'setup-ci': {
|
|
522
|
-
const setupCiFlags = parseArgs(args.slice(1));
|
|
523
|
-
warnUnknownFlags('setup-ci', setupCiFlags);
|
|
524
|
-
await runSetupCi(process.cwd(), setupCiFlags);
|
|
525
|
-
break;
|
|
526
|
-
}
|
|
527
|
-
case 'intent': {
|
|
528
|
-
const intentFlags = parseArgs(args.slice(2));
|
|
529
|
-
// First positional arg after 'intent' is the subcommand
|
|
530
|
-
intentFlags['_sub'] = args[1] ?? 'show';
|
|
531
|
-
// For `intent check "<task>"`, second positional is the task string
|
|
532
|
-
if (intentFlags['_sub'] === 'check' && !intentFlags['task']) {
|
|
533
|
-
// args[2] is the first arg after the subcommand; may be the task
|
|
534
|
-
const secondPositional = args[2];
|
|
535
|
-
if (secondPositional && !secondPositional.startsWith('--')) {
|
|
536
|
-
intentFlags['_arg'] = secondPositional;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
warnUnknownFlags('intent', intentFlags);
|
|
540
|
-
await runIntent(process.cwd(), intentFlags);
|
|
541
|
-
break;
|
|
542
|
-
}
|
|
543
|
-
case 'review-coverage': {
|
|
544
|
-
const rcFlags = parseArgs(args.slice(1));
|
|
545
|
-
warnUnknownFlags('review-coverage', rcFlags);
|
|
546
|
-
await runReviewCoverage(process.cwd(), rcFlags);
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
case 'review-gate': {
|
|
550
|
-
const rgFlags = parseArgs(args.slice(1));
|
|
551
|
-
warnUnknownFlags('review-gate', rgFlags);
|
|
552
|
-
await runReviewGate(process.cwd(), rgFlags);
|
|
553
|
-
break;
|
|
554
|
-
}
|
|
555
|
-
case 'progress-check': {
|
|
556
|
-
const pcFlags = parseArgs(args.slice(1));
|
|
557
|
-
warnUnknownFlags('progress-check', pcFlags);
|
|
558
|
-
await runProgressCheck(process.cwd(), pcFlags);
|
|
559
|
-
break;
|
|
560
|
-
}
|
|
561
|
-
case 'vendor': {
|
|
562
|
-
const vendorFlags = parseArgs(args.slice(1));
|
|
563
|
-
warnUnknownFlags('vendor', vendorFlags);
|
|
564
|
-
await runVendor(process.cwd(), vendorFlags);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
case 'detect-secrets': {
|
|
568
|
-
if (!requireTier(process.cwd(), 'team', 'detect-secrets'))
|
|
569
|
-
break;
|
|
570
|
-
const detectSecretsFlags = parseArgs(args.slice(1));
|
|
571
|
-
warnUnknownFlags('detect-secrets', detectSecretsFlags);
|
|
572
|
-
await runDetectSecrets(process.cwd(), detectSecretsFlags);
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
case 'drift': {
|
|
576
|
-
const driftFlags = parseArgs(args.slice(1));
|
|
577
|
-
warnUnknownFlags('drift', driftFlags);
|
|
578
|
-
await runDrift(process.cwd(), driftFlags);
|
|
579
|
-
break;
|
|
580
|
-
}
|
|
581
|
-
case 'harvest': {
|
|
582
|
-
const harvestFlags = parseArgs(args.slice(1));
|
|
583
|
-
warnUnknownFlags('harvest', harvestFlags);
|
|
584
|
-
await runHarvest(process.cwd(), harvestFlags);
|
|
585
|
-
break;
|
|
586
|
-
}
|
|
587
|
-
case 'outcome': {
|
|
588
|
-
const outcomeFlags = parseArgs(args.slice(1));
|
|
589
|
-
warnUnknownFlags('outcome', outcomeFlags);
|
|
590
|
-
await runOutcome(process.cwd(), outcomeFlags);
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
case 'memory': {
|
|
594
|
-
const memoryFlags = parseArgs(args.slice(2));
|
|
595
|
-
applyAmbientActivationFlags(memoryFlags, ambientActivation);
|
|
596
|
-
memoryFlags['_sub'] = args[1] ?? 'help';
|
|
597
|
-
warnUnknownFlags('memory', memoryFlags);
|
|
598
|
-
await runMemory(process.cwd(), memoryFlags);
|
|
599
|
-
break;
|
|
600
|
-
}
|
|
601
|
-
case 'broker': {
|
|
602
|
-
const brokerFlags = parseArgs(args.slice(2));
|
|
603
|
-
applyAmbientActivationFlags(brokerFlags, ambientActivation);
|
|
604
|
-
brokerFlags['_sub'] = args[1] ?? 'help';
|
|
605
|
-
warnUnknownFlags('broker', brokerFlags);
|
|
606
|
-
await runBroker(process.cwd(), brokerFlags);
|
|
607
|
-
break;
|
|
608
|
-
}
|
|
609
|
-
case 'guardrails': {
|
|
610
|
-
const guardrailsFlags = parseArgs(args.slice(2));
|
|
611
|
-
applyAmbientActivationFlags(guardrailsFlags, ambientActivation);
|
|
612
|
-
guardrailsFlags['_sub'] = args[1] ?? 'help';
|
|
613
|
-
warnUnknownFlags('guardrails', guardrailsFlags);
|
|
614
|
-
await runGuardrailsCmd(process.cwd(), guardrailsFlags);
|
|
615
|
-
break;
|
|
616
|
-
}
|
|
617
|
-
case 'lessons': {
|
|
618
|
-
const lessonsFlags = parseArgs(args.slice(2));
|
|
619
|
-
applyAmbientActivationFlags(lessonsFlags, ambientActivation);
|
|
620
|
-
lessonsFlags['_sub'] = args[1] ?? 'help';
|
|
621
|
-
warnUnknownFlags('lessons', lessonsFlags);
|
|
622
|
-
await runLessons(process.cwd(), lessonsFlags);
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
case 'release-check': {
|
|
626
|
-
const rcFlags = parseArgs(args.slice(1));
|
|
627
|
-
warnUnknownFlags('release-check', rcFlags);
|
|
628
|
-
await runReleaseCheckCmd(process.cwd(), rcFlags);
|
|
629
|
-
break;
|
|
630
|
-
}
|
|
631
|
-
case 'context': {
|
|
632
|
-
const ctxFlags = parseArgs(args.slice(2));
|
|
633
|
-
applyAmbientActivationFlags(ctxFlags, ambientActivation);
|
|
634
|
-
ctxFlags['_sub'] = args[1] ?? 'help';
|
|
635
|
-
// For `context --task "..."` (no subcommand), treat as 'task' subcommand
|
|
636
|
-
if (args[1] && args[1].startsWith('--')) {
|
|
637
|
-
ctxFlags['_sub'] = 'task';
|
|
638
|
-
const reparsed = parseArgs(args.slice(1));
|
|
639
|
-
Object.assign(ctxFlags, reparsed);
|
|
640
|
-
applyAmbientActivationFlags(ctxFlags, ambientActivation);
|
|
641
|
-
}
|
|
642
|
-
warnUnknownFlags('context', ctxFlags);
|
|
643
|
-
await runContext(process.cwd(), ctxFlags);
|
|
644
|
-
break;
|
|
645
|
-
}
|
|
646
|
-
case 'ledger': {
|
|
647
|
-
const ledgerSub = args[1];
|
|
648
|
-
await runLedger(ledgerSub, args.slice(2), process.cwd());
|
|
649
|
-
break;
|
|
650
|
-
}
|
|
651
|
-
case 'complete-check': {
|
|
652
|
-
const ccFlags = parseArgs(args.slice(1));
|
|
653
|
-
applyAmbientActivationFlags(ccFlags, ambientActivation);
|
|
654
|
-
warnUnknownFlags('complete-check', ccFlags);
|
|
655
|
-
await runCompleteCheck(process.cwd(), ccFlags, args.slice(1));
|
|
656
|
-
break;
|
|
657
|
-
}
|
|
658
|
-
case 'audit': {
|
|
659
|
-
const auditFlags = parseArgs(args.slice(1));
|
|
660
|
-
applyAmbientActivationFlags(auditFlags, ambientActivation);
|
|
661
|
-
warnUnknownFlags('audit', auditFlags);
|
|
662
|
-
await runAudit(process.cwd(), auditFlags, args.slice(1));
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
665
|
-
case 'claim': {
|
|
666
|
-
const claimFlags = parseArgs(args.slice(1));
|
|
667
|
-
const claimPaths = extractPositionals(args.slice(1));
|
|
668
|
-
if (claimPaths.length > 0) {
|
|
669
|
-
claimFlags['_paths'] = claimPaths.join('\n');
|
|
670
|
-
}
|
|
671
|
-
warnUnknownFlags('claim', claimFlags);
|
|
672
|
-
await runClaim(process.cwd(), claimFlags);
|
|
673
|
-
break;
|
|
674
|
-
}
|
|
675
|
-
case 'leases': {
|
|
676
|
-
const leasesFlags = parseArgs(args.slice(1));
|
|
677
|
-
warnUnknownFlags('leases', leasesFlags);
|
|
678
|
-
await runLeases(process.cwd(), leasesFlags);
|
|
679
|
-
break;
|
|
680
|
-
}
|
|
681
|
-
case 'preflight-edit': {
|
|
682
|
-
const peFlags = parseArgs(args.slice(1));
|
|
683
|
-
const firstPositional = extractPositionals(args.slice(1))[0];
|
|
684
|
-
if (firstPositional)
|
|
685
|
-
peFlags['_arg'] = firstPositional;
|
|
686
|
-
warnUnknownFlags('preflight-edit', peFlags);
|
|
687
|
-
await runPreflightEdit(process.cwd(), peFlags);
|
|
688
|
-
break;
|
|
689
|
-
}
|
|
690
|
-
case 'release': {
|
|
691
|
-
const releaseFlags = parseArgs(args.slice(1));
|
|
692
|
-
warnUnknownFlags('release', releaseFlags);
|
|
693
|
-
await runRelease(process.cwd(), releaseFlags);
|
|
694
|
-
break;
|
|
695
|
-
}
|
|
696
|
-
case 'coordination': {
|
|
697
|
-
const coordinationFlags = parseArgs(args.slice(1));
|
|
698
|
-
warnUnknownFlags('coordination', coordinationFlags);
|
|
699
|
-
await runCoordination(process.cwd(), coordinationFlags);
|
|
700
|
-
break;
|
|
701
|
-
}
|
|
702
|
-
case 'dashboard': {
|
|
703
|
-
const dashFlags = parseArgs(args.slice(1));
|
|
704
|
-
const dashPositionals = extractPositionals(args.slice(1));
|
|
705
|
-
if (dashPositionals.length > 0)
|
|
706
|
-
dashFlags['_sub'] = dashPositionals[0];
|
|
707
|
-
await runDashboard(process.cwd(), dashFlags);
|
|
708
|
-
break;
|
|
709
|
-
}
|
|
710
|
-
case 'discover': {
|
|
711
|
-
const discoverFlags = parseArgs(args.slice(1));
|
|
712
|
-
applyAmbientActivationFlags(discoverFlags, ambientActivation);
|
|
713
|
-
warnUnknownFlags('discover', discoverFlags);
|
|
714
|
-
await runDiscover(process.cwd(), discoverFlags);
|
|
715
|
-
break;
|
|
716
|
-
}
|
|
717
|
-
case 'discover-check': {
|
|
718
|
-
const dcFlags = parseArgs(args.slice(1));
|
|
719
|
-
applyAmbientActivationFlags(dcFlags, ambientActivation);
|
|
720
|
-
warnUnknownFlags('discover-check', dcFlags);
|
|
721
|
-
await runDiscoverCheck(process.cwd(), dcFlags);
|
|
722
|
-
break;
|
|
723
|
-
}
|
|
724
|
-
case 'discover-gate': {
|
|
725
|
-
const dgFlags = parseArgs(args.slice(1));
|
|
726
|
-
applyAmbientActivationFlags(dgFlags, ambientActivation);
|
|
727
|
-
warnUnknownFlags('discover-gate', dgFlags);
|
|
728
|
-
await runDiscoverGate(process.cwd(), dgFlags);
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
|
-
case 'health': {
|
|
732
|
-
const healthFlags = parseArgs(args.slice(1));
|
|
733
|
-
await runHealth(process.cwd(), healthFlags);
|
|
734
|
-
break;
|
|
735
|
-
}
|
|
736
|
-
case 'intervene': {
|
|
737
|
-
const interveneFlags = parseArgs(args.slice(1));
|
|
738
|
-
await runIntervene(process.cwd(), interveneFlags);
|
|
739
|
-
break;
|
|
740
|
-
}
|
|
741
|
-
case 'interventions': {
|
|
742
|
-
const intFlags = parseArgs(args.slice(1));
|
|
743
|
-
await runInterventions(process.cwd(), intFlags);
|
|
744
|
-
break;
|
|
745
|
-
}
|
|
746
|
-
case 'arch-policy': {
|
|
747
|
-
const apFlags = parseArgs(args.slice(2));
|
|
748
|
-
apFlags['_sub'] = args[1] ?? 'list';
|
|
749
|
-
await runArchPolicy(process.cwd(), apFlags);
|
|
750
|
-
break;
|
|
751
|
-
}
|
|
752
|
-
case 'serve': {
|
|
753
|
-
const serveFlags = parseArgs(args.slice(1));
|
|
754
|
-
await runServe(process.cwd(), serveFlags);
|
|
755
|
-
break;
|
|
756
|
-
}
|
|
757
|
-
case 'insight': {
|
|
758
|
-
const insightFlags = parseArgs(args.slice(2));
|
|
759
|
-
insightFlags['_sub'] = args[1] ?? 'serve';
|
|
760
|
-
warnUnknownFlags('insight', insightFlags);
|
|
761
|
-
await runInsight(process.cwd(), insightFlags);
|
|
762
|
-
break;
|
|
763
|
-
}
|
|
764
|
-
case 'test-summary': {
|
|
765
|
-
const tsFlags = parseArgs(args.slice(1));
|
|
766
|
-
warnUnknownFlags('test-summary', tsFlags);
|
|
767
|
-
await runTestSummary(process.cwd(), tsFlags);
|
|
768
|
-
break;
|
|
769
|
-
}
|
|
770
|
-
case 'evidence': {
|
|
771
|
-
const evFlags = parseArgs(args.slice(1));
|
|
772
|
-
warnUnknownFlags('evidence', evFlags);
|
|
773
|
-
await runEvidence(process.cwd(), evFlags);
|
|
774
|
-
break;
|
|
775
|
-
}
|
|
776
|
-
case 'audit-export': {
|
|
777
|
-
if (!requireTier(process.cwd(), 'enterprise', 'audit-export'))
|
|
778
|
-
break;
|
|
779
|
-
const aeFlags = parseArgs(args.slice(1));
|
|
780
|
-
await runAuditExport(process.cwd(), aeFlags);
|
|
781
|
-
break;
|
|
782
|
-
}
|
|
783
|
-
case 'commit-msg': {
|
|
784
|
-
const cmFlags = parseArgs(args.slice(1));
|
|
785
|
-
await runCommitMsg(process.cwd(), cmFlags);
|
|
786
|
-
break;
|
|
787
|
-
}
|
|
788
|
-
case 'pr-summary': {
|
|
789
|
-
const prFlags = parseArgs(args.slice(1));
|
|
790
|
-
await runPRSummary(process.cwd(), prFlags);
|
|
791
|
-
break;
|
|
792
|
-
}
|
|
793
|
-
case 'pr-comment': {
|
|
794
|
-
const prCommentFlags = parseArgs(args.slice(1));
|
|
795
|
-
warnUnknownFlags('pr-comment', prCommentFlags);
|
|
796
|
-
await runPRComment(process.cwd(), prCommentFlags);
|
|
797
|
-
break;
|
|
798
|
-
}
|
|
799
|
-
case 'release-history': {
|
|
800
|
-
const releaseHistoryFlags = parseArgs(args.slice(1));
|
|
801
|
-
warnUnknownFlags('release-history', releaseHistoryFlags);
|
|
802
|
-
await runReleaseHistory(process.cwd(), releaseHistoryFlags);
|
|
803
|
-
break;
|
|
804
|
-
}
|
|
805
|
-
case 'release-truth': {
|
|
806
|
-
const releaseTruthFlags = parseArgs(args.slice(1));
|
|
807
|
-
warnUnknownFlags('release-truth', releaseTruthFlags);
|
|
808
|
-
await runReleaseTruth(process.cwd(), releaseTruthFlags);
|
|
809
|
-
break;
|
|
810
|
-
}
|
|
811
|
-
case 'hotspots': {
|
|
812
|
-
const hotspotFlags = parseArgs(args.slice(1));
|
|
813
|
-
warnUnknownFlags('hotspots', hotspotFlags);
|
|
814
|
-
await runHotspots(process.cwd(), hotspotFlags);
|
|
815
|
-
break;
|
|
816
|
-
}
|
|
817
|
-
case 'release-decision': {
|
|
818
|
-
const releaseDecisionFlags = parseArgs(args.slice(1));
|
|
819
|
-
warnUnknownFlags('release-decision', releaseDecisionFlags);
|
|
820
|
-
await runReleaseDecision(process.cwd(), releaseDecisionFlags);
|
|
821
|
-
break;
|
|
822
|
-
}
|
|
823
|
-
case 'post-merge-outcome': {
|
|
824
|
-
const outcomeFlags = parseArgs(args.slice(1));
|
|
825
|
-
warnUnknownFlags('post-merge-outcome', outcomeFlags);
|
|
826
|
-
await runPostMergeOutcome(process.cwd(), outcomeFlags);
|
|
827
|
-
break;
|
|
828
|
-
}
|
|
829
|
-
case 'release-insights': {
|
|
830
|
-
const releaseInsightFlags = parseArgs(args.slice(1));
|
|
831
|
-
warnUnknownFlags('release-insights', releaseInsightFlags);
|
|
832
|
-
await runReleaseInsights(process.cwd(), releaseInsightFlags);
|
|
833
|
-
break;
|
|
834
|
-
}
|
|
835
|
-
case 'pre-pr': {
|
|
836
|
-
const prePrFlags = parseArgs(args.slice(1));
|
|
837
|
-
applyAmbientActivationFlags(prePrFlags, ambientActivation);
|
|
838
|
-
warnUnknownFlags('pre-pr', prePrFlags);
|
|
839
|
-
await runPrePRCmd(process.cwd(), prePrFlags);
|
|
840
|
-
break;
|
|
841
|
-
}
|
|
842
|
-
case 'pr-check': {
|
|
843
|
-
const prCheckFlags = parseArgs(args.slice(1));
|
|
844
|
-
await runPRCheck(process.cwd(), prCheckFlags);
|
|
845
|
-
break;
|
|
846
|
-
}
|
|
847
|
-
case 'conflicts': {
|
|
848
|
-
const confFlags = parseArgs(args.slice(1));
|
|
849
|
-
await runConflicts(process.cwd(), confFlags);
|
|
850
|
-
break;
|
|
851
|
-
}
|
|
852
|
-
case 'claims': {
|
|
853
|
-
const claimsFlags = parseArgs(args.slice(2));
|
|
854
|
-
claimsFlags['_sub'] = args[1] ?? 'list';
|
|
855
|
-
await runClaims(process.cwd(), claimsFlags);
|
|
856
|
-
break;
|
|
857
|
-
}
|
|
858
|
-
case 'pulse': {
|
|
859
|
-
const pulseFlags = parseArgs(args.slice(2));
|
|
860
|
-
pulseFlags['_sub'] = args[1] ?? 'status';
|
|
861
|
-
await runPulse(process.cwd(), pulseFlags);
|
|
862
|
-
break;
|
|
863
|
-
}
|
|
864
|
-
case 'team-ledger': {
|
|
865
|
-
if (!requireTier(process.cwd(), 'team', 'team-ledger'))
|
|
866
|
-
break;
|
|
867
|
-
const tlFlags = parseArgs(args.slice(2));
|
|
868
|
-
tlFlags['_sub'] = args[1] ?? 'status';
|
|
869
|
-
await runTeamLedger(process.cwd(), tlFlags);
|
|
870
|
-
break;
|
|
871
|
-
}
|
|
872
|
-
case 'team-metrics': {
|
|
873
|
-
if (!requireTier(process.cwd(), 'team', 'team-metrics'))
|
|
874
|
-
break;
|
|
875
|
-
const tmFlags = parseArgs(args.slice(1));
|
|
876
|
-
await runTeamMetrics(process.cwd(), tmFlags);
|
|
877
|
-
break;
|
|
878
|
-
}
|
|
879
|
-
case 'provenance': {
|
|
880
|
-
if (!requireTier(process.cwd(), 'enterprise', 'provenance'))
|
|
881
|
-
break;
|
|
882
|
-
const provFlags = parseArgs(args.slice(2));
|
|
883
|
-
provFlags['_sub'] = args[1] ?? 'export';
|
|
884
|
-
await runProvenance(process.cwd(), provFlags);
|
|
885
|
-
break;
|
|
886
|
-
}
|
|
887
|
-
case 'orchestrate': {
|
|
888
|
-
if (!requireTier(process.cwd(), 'enterprise', 'orchestrate'))
|
|
889
|
-
break;
|
|
890
|
-
const orchFlags = parseArgs(args.slice(2));
|
|
891
|
-
orchFlags['_sub'] = args[1] ?? 'status';
|
|
892
|
-
await runOrchestrate(process.cwd(), orchFlags);
|
|
893
|
-
break;
|
|
894
|
-
}
|
|
895
|
-
case 'ci': {
|
|
896
|
-
const ciFlags = parseArgs(args.slice(2));
|
|
897
|
-
applyAmbientActivationFlags(ciFlags, ambientActivation);
|
|
898
|
-
ciFlags['_sub'] = args[1] ?? 'check';
|
|
899
|
-
warnUnknownFlags('ci', ciFlags);
|
|
900
|
-
await runCi(process.cwd(), ciFlags);
|
|
901
|
-
break;
|
|
902
|
-
}
|
|
903
|
-
case 'fix': {
|
|
904
|
-
const fixFlags = parseArgs(args.slice(1));
|
|
905
|
-
await runFix(process.cwd(), fixFlags);
|
|
906
|
-
break;
|
|
907
|
-
}
|
|
908
|
-
case 'fix-suggestions': {
|
|
909
|
-
const fixFlags = parseArgs(args.slice(1));
|
|
910
|
-
await runFix(process.cwd(), fixFlags);
|
|
911
|
-
break;
|
|
912
|
-
}
|
|
913
|
-
case 'learn': {
|
|
914
|
-
const learnFlags = parseArgs(args.slice(1));
|
|
915
|
-
await runLearn(process.cwd(), learnFlags);
|
|
916
|
-
break;
|
|
917
|
-
}
|
|
918
|
-
case 'graph': {
|
|
919
|
-
const graphSub = args[1];
|
|
920
|
-
// If first arg is a known subcommand, use subcommand routing
|
|
921
|
-
const graphSubcommands = new Set(['index', 'status', 'impact', 'history']);
|
|
922
|
-
if (graphSub && graphSubcommands.has(graphSub)) {
|
|
923
|
-
const graphFlags = parseArgs(args.slice(2));
|
|
924
|
-
graphFlags['_sub'] = graphSub;
|
|
925
|
-
// Capture positional arg for impact/history (e.g., graph impact <file>)
|
|
926
|
-
if ((graphSub === 'impact' || graphSub === 'history') && args[2] && !args[2].startsWith('--')) {
|
|
927
|
-
graphFlags['_arg'] = args[2];
|
|
928
|
-
}
|
|
929
|
-
warnUnknownFlags('graph', graphFlags);
|
|
930
|
-
await runGraph(process.cwd(), graphFlags);
|
|
931
|
-
}
|
|
932
|
-
else {
|
|
933
|
-
// Legacy: codeledger graph [--json] [--save]
|
|
934
|
-
const graphFlags = parseArgs(args.slice(1));
|
|
935
|
-
await runGraph(process.cwd(), graphFlags);
|
|
936
|
-
}
|
|
937
|
-
break;
|
|
938
|
-
}
|
|
939
|
-
case 'capsule': {
|
|
940
|
-
const capsuleSub = args[1] ?? 'help';
|
|
941
|
-
const capsuleFlags = parseArgs(args.slice(2));
|
|
942
|
-
capsuleFlags['_sub'] = capsuleSub;
|
|
943
|
-
if (capsuleSub === 'change') {
|
|
944
|
-
await runCapsuleChange(process.cwd(), capsuleFlags);
|
|
945
|
-
}
|
|
946
|
-
else {
|
|
947
|
-
console.log('Usage: codeledger capsule change --target <file> --task "..." [--json]');
|
|
948
|
-
}
|
|
949
|
-
break;
|
|
950
|
-
}
|
|
951
|
-
case 'validate-change': {
|
|
952
|
-
const vcFlags = parseArgs(args.slice(1));
|
|
953
|
-
// validate-change is a shortcut for capsule change with validation focus
|
|
954
|
-
await runCapsuleChange(process.cwd(), vcFlags);
|
|
955
|
-
break;
|
|
956
|
-
}
|
|
957
|
-
case 'coach': {
|
|
958
|
-
const coachFlags = parseArgs(args.slice(1));
|
|
959
|
-
warnUnknownFlags('coach', coachFlags);
|
|
960
|
-
await runCoachCommand(process.cwd(), coachFlags);
|
|
961
|
-
break;
|
|
962
|
-
}
|
|
963
|
-
case 'ecl': {
|
|
964
|
-
const eclSub = args[1] && !args[1].startsWith('-') ? args[1] : 'help';
|
|
965
|
-
const eclFlags = parseArgs(args.slice(eclSub === 'help' ? 1 : 2));
|
|
966
|
-
eclFlags['_sub'] = eclSub;
|
|
967
|
-
warnUnknownFlags('ecl', eclFlags);
|
|
968
|
-
await runEcl(process.cwd(), eclFlags);
|
|
969
|
-
break;
|
|
970
|
-
}
|
|
971
|
-
case 'fleet': {
|
|
972
|
-
const fleetSub = args[1] && !args[1].startsWith('-') ? args[1] : 'help';
|
|
973
|
-
const fleetFlags = parseArgs(args.slice(fleetSub === 'help' ? 1 : 2));
|
|
974
|
-
fleetFlags['_sub'] = fleetSub;
|
|
975
|
-
// Help and --help bypass the tier gate so prospective customers can
|
|
976
|
-
// read the feature description without an Enterprise license.
|
|
977
|
-
const isHelpRequest = fleetSub === 'help' ||
|
|
978
|
-
fleetFlags['help'] === 'true' ||
|
|
979
|
-
args.slice(1).some((a) => a === '--help' || a === '-h');
|
|
980
|
-
if (!isHelpRequest) {
|
|
981
|
-
if (!requireTier(process.cwd(), 'enterprise', 'fleet'))
|
|
982
|
-
break;
|
|
983
|
-
}
|
|
984
|
-
warnUnknownFlags('fleet', fleetFlags);
|
|
985
|
-
await runFleet(process.cwd(), fleetFlags);
|
|
986
|
-
break;
|
|
987
|
-
}
|
|
988
|
-
case 'pack': {
|
|
989
|
-
const packFlags = parseArgs(args.slice(2));
|
|
990
|
-
packFlags['_sub'] = args[1] ?? 'list';
|
|
991
|
-
await runPack(process.cwd(), packFlags);
|
|
992
|
-
break;
|
|
993
|
-
}
|
|
994
|
-
case 'features': {
|
|
995
|
-
const featFlags = parseArgs(args.slice(1));
|
|
996
|
-
await runFeatures(process.cwd(), featFlags);
|
|
997
|
-
break;
|
|
998
|
-
}
|
|
999
|
-
case 'replay': {
|
|
1000
|
-
const replayFlags = parseArgs(args.slice(1));
|
|
1001
|
-
applyAmbientActivationFlags(replayFlags, ambientActivation);
|
|
1002
|
-
warnUnknownFlags('replay', replayFlags);
|
|
1003
|
-
await runReplay(process.cwd(), replayFlags);
|
|
1004
|
-
break;
|
|
1005
|
-
}
|
|
1006
|
-
case 'snapshot': {
|
|
1007
|
-
const snapshotFlags = parseArgs(args.slice(1));
|
|
1008
|
-
warnUnknownFlags('snapshot', snapshotFlags);
|
|
1009
|
-
await runSnapshot(process.cwd(), snapshotFlags);
|
|
1010
|
-
break;
|
|
1011
|
-
}
|
|
1012
|
-
case 'time-travel': {
|
|
1013
|
-
const timeTravelFlags = parseArgs(args.slice(1));
|
|
1014
|
-
warnUnknownFlags('time-travel', timeTravelFlags);
|
|
1015
|
-
await runTimeTravel(process.cwd(), timeTravelFlags);
|
|
1016
|
-
break;
|
|
1017
|
-
}
|
|
1018
|
-
case 'reality-check': {
|
|
1019
|
-
const realityCheckFlags = parseArgs(args.slice(1));
|
|
1020
|
-
warnUnknownFlags('reality-check', realityCheckFlags);
|
|
1021
|
-
await runRealityCheck(process.cwd(), realityCheckFlags);
|
|
1022
|
-
break;
|
|
1023
|
-
}
|
|
1024
|
-
case 'context-handoff': {
|
|
1025
|
-
const handoffFlags = parseArgs(args.slice(1));
|
|
1026
|
-
warnUnknownFlags('context-handoff', handoffFlags);
|
|
1027
|
-
await runContextHandoff(process.cwd(), handoffFlags);
|
|
1028
|
-
break;
|
|
1029
|
-
}
|
|
1030
|
-
case 'upgrade':
|
|
1031
|
-
await runUpgrade(process.cwd(), {});
|
|
1032
|
-
break;
|
|
1033
|
-
case 'license': {
|
|
1034
|
-
const licFlags = parseArgs(args.slice(2));
|
|
1035
|
-
licFlags['_sub'] = args[1] ?? 'status';
|
|
1036
|
-
// Capture positional arg: `license activate <key>`
|
|
1037
|
-
if (args[2] && !args[2].startsWith('--')) {
|
|
1038
|
-
licFlags['_arg'] = args[2];
|
|
1039
|
-
}
|
|
1040
|
-
await runLicense(process.cwd(), licFlags);
|
|
1041
|
-
break;
|
|
1042
|
-
}
|
|
1043
|
-
case 'enable': {
|
|
1044
|
-
const enFlags = parseArgs(args.slice(2));
|
|
1045
|
-
enFlags['_sub'] = args[1] ?? '';
|
|
1046
|
-
await runEnable(process.cwd(), enFlags);
|
|
1047
|
-
break;
|
|
1048
|
-
}
|
|
1049
|
-
case 'apply-policy': {
|
|
1050
|
-
const apFlags = parseArgs(args.slice(1));
|
|
1051
|
-
warnUnknownFlags('apply-policy', apFlags);
|
|
1052
|
-
await runApplyPolicy(process.cwd(), apFlags);
|
|
1053
|
-
break;
|
|
1054
|
-
}
|
|
1055
|
-
case 'policy': {
|
|
1056
|
-
const hasPolicySub = args[1] !== undefined && !args[1].startsWith('-');
|
|
1057
|
-
const polFlags = parseArgs(args.slice(hasPolicySub ? 2 : 1));
|
|
1058
|
-
if (hasPolicySub) {
|
|
1059
|
-
polFlags['_sub'] = args[1];
|
|
1060
|
-
}
|
|
1061
|
-
else if (polFlags['help'] === 'true') {
|
|
1062
|
-
polFlags['_sub'] = 'help';
|
|
1063
|
-
}
|
|
1064
|
-
if (polFlags['_sub'] === 'init') {
|
|
1065
|
-
await runPolicyInit(process.cwd(), polFlags);
|
|
1066
|
-
}
|
|
1067
|
-
else if (polFlags['_sub'] === 'validate') {
|
|
1068
|
-
await runPolicyValidate(process.cwd(), polFlags);
|
|
1069
|
-
}
|
|
1070
|
-
else if (polFlags['_sub'] === 'diff') {
|
|
1071
|
-
await runPolicyDiff(process.cwd(), polFlags);
|
|
1072
|
-
}
|
|
1073
|
-
else if (polFlags['_sub'] === 'merge') {
|
|
1074
|
-
await runPolicyMerge(process.cwd(), polFlags);
|
|
1075
|
-
}
|
|
1076
|
-
else if (polFlags['_sub'] === 'simulate') {
|
|
1077
|
-
if (!requireTier(process.cwd(), 'enterprise', 'policy simulate'))
|
|
1078
|
-
break;
|
|
1079
|
-
await runPolicySimulate(process.cwd(), polFlags);
|
|
1080
|
-
}
|
|
1081
|
-
else if (polFlags['_sub'] === 'review') {
|
|
1082
|
-
warnUnknownFlags('policy', polFlags);
|
|
1083
|
-
await runPolicy(process.cwd(), polFlags);
|
|
1084
|
-
}
|
|
1085
|
-
else {
|
|
1086
|
-
await runPolicy(process.cwd(), polFlags);
|
|
1087
|
-
}
|
|
1088
|
-
break;
|
|
1089
|
-
}
|
|
1090
|
-
case 'version':
|
|
1091
|
-
case '--version':
|
|
1092
|
-
case '-v':
|
|
1093
|
-
console.log(`codeledger v${CLI_VERSION}`);
|
|
1094
|
-
break;
|
|
1095
|
-
case 'merge-check': {
|
|
1096
|
-
const mcFlags = parseArgs(args.slice(1));
|
|
1097
|
-
warnUnknownFlags('merge-check', mcFlags);
|
|
1098
|
-
await runMergeCheck(process.cwd(), mcFlags);
|
|
1099
|
-
break;
|
|
1100
|
-
}
|
|
1101
|
-
case 'mcp': {
|
|
1102
|
-
const mcpFlags = parseArgs(args.slice(1));
|
|
1103
|
-
const mcpPositionals = extractPositionals(args.slice(1));
|
|
1104
|
-
if (mcpPositionals.length > 0)
|
|
1105
|
-
mcpFlags['_sub'] = mcpPositionals[0];
|
|
1106
|
-
warnUnknownFlags('mcp', mcpFlags);
|
|
1107
|
-
await runMcp(process.cwd(), mcpFlags);
|
|
1108
|
-
break;
|
|
1109
|
-
}
|
|
1110
|
-
case 'sync': {
|
|
1111
|
-
const syncFlags = parseArgs(args.slice(1));
|
|
1112
|
-
const syncPositionals = extractPositionals(args.slice(1));
|
|
1113
|
-
if (syncPositionals.length > 0)
|
|
1114
|
-
syncFlags['_sub'] = syncPositionals[0];
|
|
1115
|
-
await runSync(process.cwd(), syncFlags);
|
|
1116
|
-
break;
|
|
1117
|
-
}
|
|
1118
|
-
case 'about':
|
|
1119
|
-
await runAbout();
|
|
1120
|
-
break;
|
|
1121
|
-
case 'help':
|
|
1122
|
-
case '--help':
|
|
1123
|
-
case '-h':
|
|
1124
|
-
case undefined:
|
|
1125
|
-
printHelp();
|
|
1126
|
-
break;
|
|
1127
|
-
default:
|
|
1128
|
-
console.error(`❌ Unknown command: ${command}`);
|
|
1129
|
-
printHelp();
|
|
1130
|
-
process.exit(1);
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
function applyAmbientActivationFlags(flags, ambient) {
|
|
1134
|
-
flags['_ambient_activation_action'] = ambient.action;
|
|
1135
|
-
flags['_ambient_activation_reason'] = ambient.reason;
|
|
1136
|
-
if (ambient.effectiveTask)
|
|
1137
|
-
flags['_ambient_effective_task'] = ambient.effectiveTask;
|
|
1138
|
-
flags['_ambient_task_source'] = ambient.taskSource;
|
|
1139
|
-
flags['_ambient_dedupe_state'] = ambient.dedupeState;
|
|
1140
|
-
if (ambient.session)
|
|
1141
|
-
flags['_ambient_session'] = ambient.session;
|
|
1142
|
-
}
|
|
1143
|
-
function printHelp() {
|
|
1144
|
-
console.log(`
|
|
1145
|
-
CodeLedger Blackbox v${CLI_VERSION} — Deterministic, Bounded Context Selection for AI Coding Agents
|
|
1146
|
-
|
|
1147
|
-
Usage: codeledger <command> [options]
|
|
1148
|
-
|
|
1149
|
-
Commands:
|
|
1150
|
-
about Learn how CodeLedger extends into the broader ContextECF platform
|
|
1151
|
-
init [--force] Initialize .codeledger/ in the current repo
|
|
1152
|
-
scan [--full-policy] Build the repo index, summarize repo risk, and write the recommended policy
|
|
1153
|
-
bundle --task "..." Generate a deterministic context bundle [--json] [--scope "..."]
|
|
1154
|
-
[--near-misses] [--blast-radius] [--explain]
|
|
1155
|
-
[--expand] [--layer-order]
|
|
1156
|
-
task --task "..." Ambient task runtime: scan-if-stale + bundle + preflight + agent
|
|
1157
|
-
[--agent codex|claude|cursor|windsurf|antigravity|generic|copilot]
|
|
1158
|
-
[--mode observe|warn|block] [--agent-bin <cmd>] [--dry-run]
|
|
1159
|
-
[--session <id>] writes session-aware active bundles and registry state
|
|
1160
|
-
windsurf prepares artifacts only; it does not launch the app
|
|
1161
|
-
codex --task "..." Shorthand for: codeledger task --agent codex
|
|
1162
|
-
claude --task "..." Shorthand for: codeledger task --agent claude
|
|
1163
|
-
preflight "..." Scan-if-stale + bundle + preflight summary (no agent launch)
|
|
1164
|
-
runs Show recent ambient runtime runs [--limit N]
|
|
1165
|
-
activate [--task ".."] Explicit/manual activation fallback: scan-if-stale + bundle + write active-bundle.md
|
|
1166
|
-
[--scope "p1,p2"] [--branch-aware] [--continue]
|
|
1167
|
-
[--near-misses] [--blast-radius] [--expand] [--layer-order]
|
|
1168
|
-
[--explain] [--mode edit|review] [--coverage-threshold 0.90]
|
|
1169
|
-
[--strict] fail fast on insufficient_context (no auto-expansion fallback)
|
|
1170
|
-
Without --task: scan-only (warms index, no bundle)
|
|
1171
|
-
refine --learned "..." Re-score bundle mid-session with new context
|
|
1172
|
-
[--drop "f1,f2"] [--add-keywords "k1,k2"]
|
|
1173
|
-
run --scenario <p> Run a single benchmark scenario
|
|
1174
|
-
compare --scenario A/B comparison: with vs without CodeLedger context
|
|
1175
|
-
compare-current Scaffold a compare scenario from the latest task/session
|
|
1176
|
-
[--run] [--guided] [--agentCmd <cmd>] [--session <id>]
|
|
1177
|
-
daemon [start|status|stop]
|
|
1178
|
-
Local background warmer for scan freshness and likely bundles
|
|
1179
|
-
[--background] [--port 42637]
|
|
1180
|
-
session-progress Write progress snapshot to .codeledger/session-progress.md
|
|
1181
|
-
session-summary Show session-end value recap (bundle recall, token savings)
|
|
1182
|
-
[--final] Show per-task breakdown for multi-task sessions
|
|
1183
|
-
session-init Initialize a new session (returns session ID)
|
|
1184
|
-
session-cleanup Clean up a session's state files and registry entry
|
|
1185
|
-
sessions List active sessions and file overlaps
|
|
1186
|
-
share [--format ..] Generate shareable result snippet (twitter|linkedin|markdown)
|
|
1187
|
-
clean Remove orphaned worktrees from previous crashed runs
|
|
1188
|
-
doctor Integration health check (config, hooks, index, ledger)
|
|
1189
|
-
checkpoint [create|restore|list]
|
|
1190
|
-
Save/restore incremental session checkpoints
|
|
1191
|
-
[--session <id>] [--id <checkpoint-id>]
|
|
1192
|
-
shared-summary Cross-session summary (all active agents, overlaps, hotspots)
|
|
1193
|
-
[--all] (include stopped sessions)
|
|
1194
|
-
claim <paths...> Claim files or directories before editing
|
|
1195
|
-
[--task "..."] [--actor <id>] [--mode exclusive|shared]
|
|
1196
|
-
[--ttl <seconds>] [--force] [--json]
|
|
1197
|
-
leases Show active or stale coordination leases
|
|
1198
|
-
[--active] [--stale] [--json]
|
|
1199
|
-
preflight-edit <path> Check whether an edit path is safe before you change it
|
|
1200
|
-
[--strict] [--json]
|
|
1201
|
-
release Release coordination leases
|
|
1202
|
-
[--session <id> | --claim <id> | --all] [--json]
|
|
1203
|
-
coordination Coordination summary for active sessions, overlaps, and surfaces
|
|
1204
|
-
[--json]
|
|
1205
|
-
manifest --task "..." Generate deterministic context manifest (evidence payload)
|
|
1206
|
-
[--out <path>] [--artifacts-dir <dir>]
|
|
1207
|
-
sign-manifest Sign a manifest with HMAC-SHA256 (tamper evidence)
|
|
1208
|
-
--in <manifest.json> --out <signed.json>
|
|
1209
|
-
policy --print Show resolved policy for current repo
|
|
1210
|
-
[--policy-root <dir>]
|
|
1211
|
-
policy init Scaffold a new policy file with sensible defaults
|
|
1212
|
-
[--scope global|repo|zone] (default: repo)
|
|
1213
|
-
policy validate Validate a policy file against the schema
|
|
1214
|
-
[--file <path>]
|
|
1215
|
-
policy diff Show differences between two policy files
|
|
1216
|
-
--base <file> --target <file>
|
|
1217
|
-
policy merge Merge policy files using strictest-wins resolution
|
|
1218
|
-
--files <file1,file2,...>
|
|
1219
|
-
verify --task "..." CI enforcement: evaluate policy, emit artifacts, return exit code
|
|
1220
|
-
[--policy-root <dir>] [--artifacts-dir <dir>]
|
|
1221
|
-
[--explain] [--json] [--debug-review] [--invariant <name>]
|
|
1222
|
-
setup-ci Generate CI workflow + policy with PR comment integration
|
|
1223
|
-
[--provider github|gitlab|circleci|azure] (default: github)
|
|
1224
|
-
[--mode observe|warn|block] [--output <dir>] [--print]
|
|
1225
|
-
GitHub workflows post/update a PR comment with the result
|
|
1226
|
-
ci pr-check PR/CI bounded-scope check with JSON and PR comment output
|
|
1227
|
-
pr-comment Render deterministic PR narrative comment from verify/evidence JSON
|
|
1228
|
-
release-history Show release truth aggregates and recent verify history
|
|
1229
|
-
release-truth Show raw release truth events [--commit <sha>] [--json]
|
|
1230
|
-
hotspots Show deterministic historical hotspots [--json]
|
|
1231
|
-
release-decision Record release decision memory
|
|
1232
|
-
post-merge-outcome Record post-merge result memory
|
|
1233
|
-
release-insights Narrative + aggregate release truth insights
|
|
1234
|
-
[--json] [--mode observe|warn|block] [--base <branch>]
|
|
1235
|
-
insight serve Start the manager-facing Insight dashboard and API
|
|
1236
|
-
[--port 7600] [--host 127.0.0.1] [--no-open]
|
|
1237
|
-
[--comment-file <path>] [--github-output <path>]
|
|
1238
|
-
insight seed Seed a synthetic Insight scenario
|
|
1239
|
-
--scenario <id> [--days N] [--seed N] [--start-date YYYY-MM-DD] [--reset]
|
|
1240
|
-
test-summary Generate/read machine-truth test summary artifact
|
|
1241
|
-
[--run] [--json]
|
|
1242
|
-
evidence Show CI/local evidence artifact availability
|
|
1243
|
-
[--json]
|
|
1244
|
-
intent [init|show|set|ack|check]
|
|
1245
|
-
Intent governance (deterministic drift detection) + ISC
|
|
1246
|
-
init: --objective "..." [--constraint "..."] [--scope-in "..."]
|
|
1247
|
-
set: --objective|--constraint|--scope-in|--scope-out "..."
|
|
1248
|
-
ack: [--as-baseline] acknowledge intent drift
|
|
1249
|
-
check: "<task>" — Intent Sufficiency Check; exit 1 if INSUFFICIENT
|
|
1250
|
-
[--json]
|
|
1251
|
-
|
|
1252
|
-
Context Orchestration (DCOL v2):
|
|
1253
|
-
context [explain|diff|graph|validate]
|
|
1254
|
-
Inspect and validate the active context bundle
|
|
1255
|
-
explain: Why each file/symbol was selected [--bundle <path>] [--json]
|
|
1256
|
-
diff: Show context change across iterations [--from <id>] [--to <id>]
|
|
1257
|
-
graph: Output Mermaid dependency diagram [--output <path>]
|
|
1258
|
-
validate: CCS-certified context validation [--json] [--task "..."] [--expansion-level N] [--force]
|
|
1259
|
-
|
|
1260
|
-
ledger [status|inspect|prune]
|
|
1261
|
-
Manage the local context ledger (.codeledger/ecl.jsonl; legacy ecl-lite auto-read)
|
|
1262
|
-
status: Overall health: entry count, success rate, failure hotspots
|
|
1263
|
-
inspect: Show recent entries [--intent <sig>] [--limit N]
|
|
1264
|
-
prune: Trim ledger to N most recent entries [--max N] (default 2000)
|
|
1265
|
-
|
|
1266
|
-
Pre-PR Guardrails:
|
|
1267
|
-
pre-pr Master guardrail system — 10-check integrity stack
|
|
1268
|
-
[--json] [--task "..."]
|
|
1269
|
-
[--skip-docs "reason"] [--skip-tests "reason"]
|
|
1270
|
-
Checks: completion, type contracts, cross-package drift,
|
|
1271
|
-
staleness, wiring, build/test, neighborhood, release,
|
|
1272
|
-
review complexity, adversarial self-test
|
|
1273
|
-
|
|
1274
|
-
Completion Integrity:
|
|
1275
|
-
complete-check Enforcement-grade Completion Integrity Check (CIC v2)
|
|
1276
|
-
--task "..." [--summary "..."] [--json] [--explain]
|
|
1277
|
-
[--claims-json <json-or-path>]
|
|
1278
|
-
[--claim "desc::file1,file2"] (repeatable)
|
|
1279
|
-
[--evidence "type::content"] (repeatable)
|
|
1280
|
-
[--omit "scope::reason"] (repeatable)
|
|
1281
|
-
[--task-type release_pipeline|wizard_ux|ci_change|feature|bugfix|refactor|docs]
|
|
1282
|
-
Exit 0 = verified. Exit 1 = incomplete.
|
|
1283
|
-
audit Adversarial audit: prove work happened or expose gaps
|
|
1284
|
-
--task "..." [--summary "..."]
|
|
1285
|
-
[--profile context-policy|release|cli-flow]
|
|
1286
|
-
[--spec <audit-spec.json>]
|
|
1287
|
-
[--json] [--explain]
|
|
1288
|
-
Findings first: claims vs diff, audits, blockers,
|
|
1289
|
-
missing artifacts, required documentation updates,
|
|
1290
|
-
plus optional section verdicts / overall readiness.
|
|
1291
|
-
Exit 0 = no material findings. Exit 1 = findings detected.
|
|
1292
|
-
|
|
1293
|
-
Security:
|
|
1294
|
-
detect-secrets Scan repo for hardcoded secrets and credentials
|
|
1295
|
-
[--json] [--sarif] [--severity high|medium|low]
|
|
1296
|
-
[--bundle <path>] [--paths-from-bundle]
|
|
1297
|
-
[--baseline <path>] [--update-baseline]
|
|
1298
|
-
[--entropy]
|
|
1299
|
-
drift Reality drift projection from daemon event history
|
|
1300
|
-
[--observe|--history] [--since <ref|ISO time>]
|
|
1301
|
-
[--severity low|medium|high|critical] [--json]
|
|
1302
|
-
[--verify-integrity]
|
|
1303
|
-
outcome Outcome memory projection from ECL + learning signals
|
|
1304
|
-
[--pattern <intent-substring>] [--json]
|
|
1305
|
-
[--verify-integrity]
|
|
1306
|
-
harvest Context assetization into the existing lessons ledger
|
|
1307
|
-
[--preview|--apply] [--json] [--verify-integrity]
|
|
1308
|
-
snapshot Persist a daemon snapshot and report its descriptor
|
|
1309
|
-
[--json] [--verify-integrity]
|
|
1310
|
-
time-travel Reconstruct daemon state from a snapshot and replay
|
|
1311
|
-
[--to <snapshot-id>] [--json] [--verify-integrity]
|
|
1312
|
-
reality-check Reconcile drift, outcomes, completion, and release state
|
|
1313
|
-
[--json] [--verify-integrity]
|
|
1314
|
-
context-handoff Agent-agnostic handoff from the latest bundle
|
|
1315
|
-
--target <agent> [--json] [--verify-integrity]
|
|
1316
|
-
|
|
1317
|
-
Mid-Session:
|
|
1318
|
-
progress-check Lightweight mid-session bundle coverage check
|
|
1319
|
-
[--session <id>]
|
|
1320
|
-
dashboard Architecture Health Dashboard (composite scores + trends)
|
|
1321
|
-
[--json] [--history] [--record]
|
|
1322
|
-
dashboard build Generate static Engineering Dashboard from local ECL
|
|
1323
|
-
Self-contained HTML at .codeledger/insight/index.html
|
|
1324
|
-
dashboard open Open the dashboard in your default browser
|
|
1325
|
-
dashboard serve Start a local dashboard server (live data)
|
|
1326
|
-
dashboard path Print the dashboard file path
|
|
1327
|
-
merge-check Semantic merge verification — prevents silent breaks
|
|
1328
|
-
[--save-baseline] [--verify] [--self-check] [--json]
|
|
1329
|
-
mcp start Launch MCP server for AI agent integration (Claude/Cursor/Windsurf)
|
|
1330
|
-
mcp status Show MCP readiness and connection instructions
|
|
1331
|
-
sync status Show sync configuration and staging state
|
|
1332
|
-
sync push Stage artifacts for sync preview (no remote push)
|
|
1333
|
-
sync init Initialize sync (--mode individual|team|enterprise)
|
|
1334
|
-
|
|
1335
|
-
Architecture Intervention:
|
|
1336
|
-
interventions Show prioritized architecture interventions
|
|
1337
|
-
[--json] [--top N] [--category <cat>] [--agent-template]
|
|
1338
|
-
Aggregates signals from drift, review intelligence,
|
|
1339
|
-
discovery, layer-d, and policy into actionable fixes.
|
|
1340
|
-
|
|
1341
|
-
Cross-Layer Coach:
|
|
1342
|
-
coach --intent "..." Cross-layer guided implementation plan that fuses
|
|
1343
|
-
the graph snapshot, local ECL, and remote ECL into
|
|
1344
|
-
deterministic advice. Every advice item cites
|
|
1345
|
-
verifiable evidence. [--json]
|
|
1346
|
-
ecl sync Manage Tier 3 institutional / remote ECL
|
|
1347
|
-
--seed Write a deterministic seed fixture
|
|
1348
|
-
--from <dir> Copy outcomes.jsonl/lessons.jsonl from a path
|
|
1349
|
-
Schema lives at .codeledger/ecl/remote/
|
|
1350
|
-
ecl status Show remote ECL manifest + record counts [--json]
|
|
1351
|
-
graph index Build the symbol-level graph snapshot (TS compiler API)
|
|
1352
|
-
Writes .codeledger/graph/snapshot_<sha>.json + HEAD
|
|
1353
|
-
pointer; auto-prunes to the 10 most recent snapshots.
|
|
1354
|
-
graph architecture Explicit alias for the legacy package-level graph view.
|
|
1355
|
-
memory seed-patterns Extract Golden Patterns from ECL-Lite history + lessons
|
|
1356
|
-
[--from ecl|lessons|all] [--dry-run] [--json]
|
|
1357
|
-
Filters successful, high-confidence ECL entries into
|
|
1358
|
-
"Institutional North Star" patterns the Prompt Coach
|
|
1359
|
-
surfaces to new contributors via the matched-pattern
|
|
1360
|
-
cue ("Looks like X; typically we follow [pattern]").
|
|
1361
|
-
|
|
1362
|
-
Fleet (Enterprise tier):
|
|
1363
|
-
fleet sync Pull a fleet manifest into the local cache
|
|
1364
|
-
--from <path> Copy a local manifest
|
|
1365
|
-
--from-github <owner>/<repo> Fetch via gh api
|
|
1366
|
-
--from-github <owner>/<repo>:<path> Custom path in repo
|
|
1367
|
-
Recommended: <your-org>/.github/codeledger-fleet.json
|
|
1368
|
-
Cache: ~/.codeledger/fleet.cache.json
|
|
1369
|
-
fleet status Per-repo health line for the fleet
|
|
1370
|
-
[--manifest <path>] [--json]
|
|
1371
|
-
fleet aggregate Walk every repo, produce a FleetAggregateReport
|
|
1372
|
-
[--manifest <path>] [--out <path>] [--json]
|
|
1373
|
-
fleet compare Side-by-side comparison of two teams
|
|
1374
|
-
--team-a <name> --team-b <name> [--json]
|
|
1375
|
-
fleet hotspots Top failing files unioned across the entire fleet
|
|
1376
|
-
[--top N] [--json]
|
|
1377
|
-
fleet dashboard Render a static HTML fleet dashboard
|
|
1378
|
-
[--out <path>] default: .codeledger/fleet-dashboard.html
|
|
1379
|
-
fleet insights Release-truth fleet rollup over a time window
|
|
1380
|
-
[--window 24h|7d|30d] [--json]
|
|
1381
|
-
fleet alerts Deterministic risk-spike + concentration alerts
|
|
1382
|
-
[--json]
|
|
1383
|
-
Help (codeledger fleet help) is free; running the
|
|
1384
|
-
feature requires an Enterprise license.
|
|
1385
|
-
|
|
1386
|
-
Compliance / Audit:
|
|
1387
|
-
audit-export Export ledger data to JSON, CSV, or JSON Lines (SIEM)
|
|
1388
|
-
[--format json|csv|jsonl] (default: json)
|
|
1389
|
-
[--output <path>] Write to file instead of stdout
|
|
1390
|
-
[--table runs|events|bundles|coverage] Single table only
|
|
1391
|
-
Default output is sanitized; add [--raw] for privileged raw export
|
|
1392
|
-
provenance Trace or export provenance data
|
|
1393
|
-
JSON output is sanitized by default; add [--raw] for privileged local access
|
|
1394
|
-
|
|
1395
|
-
API Server:
|
|
1396
|
-
serve Start lightweight HTTP API server
|
|
1397
|
-
[--port 7400] (default: 7400)
|
|
1398
|
-
Endpoints: /health, /verify, /bundle, /drift, /outcome,
|
|
1399
|
-
/harvest, /context-handoff, /snapshot,
|
|
1400
|
-
/time-travel, /reality-check, /metrics,
|
|
1401
|
-
/provenance, /policy, /architecture-health/*,
|
|
1402
|
-
/broker/resolve, /broker/validation,
|
|
1403
|
-
/broker/neighborhood, /broker/evidence,
|
|
1404
|
-
/broker/completion, /broker/preamble,
|
|
1405
|
-
/broker/refresh, /broker/timeline, /broker/current
|
|
1406
|
-
|
|
1407
|
-
Cloud / Web:
|
|
1408
|
-
vendor Vendor standalone CLI into a repo for cloud environments
|
|
1409
|
-
[--target <dir>] (default: current directory)
|
|
1410
|
-
|
|
1411
|
-
Review Coverage (Sentinel):
|
|
1412
|
-
review-coverage Check current review coverage mid-session
|
|
1413
|
-
[--session <id>]
|
|
1414
|
-
review-gate Gatekeeper check (called by hook, not manually)
|
|
1415
|
-
[--session <id>]
|
|
1416
|
-
|
|
1417
|
-
Cowork (Knowledge Mode):
|
|
1418
|
-
cowork-start Scan workspace + generate context bundle for Cowork
|
|
1419
|
-
--intent "..." [--workspace .] [--max-files 20] [--max-tokens 12000]
|
|
1420
|
-
cowork-refresh Re-run selection with updated intent
|
|
1421
|
-
--intent "..." [--workspace .]
|
|
1422
|
-
cowork-snapshot Write progress snapshot for session continuity
|
|
1423
|
-
[--workspace .]
|
|
1424
|
-
cowork-stop Finalize session + print summary
|
|
1425
|
-
[--workspace .]
|
|
1426
|
-
|
|
1427
|
-
Memory:
|
|
1428
|
-
memory [init|recent|validation|ontology|structure|evidence|preamble|status|explain|compact|prune|inject]
|
|
1429
|
-
Inspect and manage the CodeLedger memory system
|
|
1430
|
-
init: [--force] Seed default ledgers (evidence gates + ontology)
|
|
1431
|
-
preamble: [--task "..."] [--terms "a,b"] [--anchors "x,y"]
|
|
1432
|
-
inject: --task "..." [--paths "a,b"] [--json]
|
|
1433
|
-
|
|
1434
|
-
Lessons:
|
|
1435
|
-
lessons [list|relevant|verify|deprecate]
|
|
1436
|
-
Self-learning engineering immune system
|
|
1437
|
-
list: [--json] Show all active lessons
|
|
1438
|
-
relevant: --task "..." [--json] Lessons relevant to a task
|
|
1439
|
-
--files "f1,f2" Lessons relevant to files
|
|
1440
|
-
--concepts "a,b" Lessons matching concepts
|
|
1441
|
-
verify: --id <id> Approve a lesson (human governance)
|
|
1442
|
-
deprecate: --id <id> Deprecate a lesson
|
|
1443
|
-
|
|
1444
|
-
Guardrails:
|
|
1445
|
-
guardrails [status|explain]
|
|
1446
|
-
Engineering safeguards derived from session lessons
|
|
1447
|
-
status: [--task "..."] [--json] Show guardrail results
|
|
1448
|
-
explain: [--task "..."] [--json] Detailed guard explanations
|
|
1449
|
-
Guards run automatically during complete-check.
|
|
1450
|
-
Failed guards block promotion past "verified" state.
|
|
1451
|
-
|
|
1452
|
-
Release Authority:
|
|
1453
|
-
release-check Determine if a release is shippable
|
|
1454
|
-
[--strict] Block CI on conditional findings
|
|
1455
|
-
[--json] Machine-readable output
|
|
1456
|
-
[--why] Top 3 actions to reach next state
|
|
1457
|
-
Checks: git integrity, workspace alignment, test integrity,
|
|
1458
|
-
binary parity, CLI wiring, docs alignment, open loops.
|
|
1459
|
-
States: not_ready → ready_conditional → ready → ready_hardened
|
|
1460
|
-
Exit 0 = ready. Exit 1 = not_ready or blocked.
|
|
1461
|
-
|
|
1462
|
-
Context Broker:
|
|
1463
|
-
broker [resolve|validation|neighborhood|evidence|completion|preamble|refresh|timeline|current]
|
|
1464
|
-
Structured, decision-grade context for agents
|
|
1465
|
-
resolve: --task "..." [--json]
|
|
1466
|
-
validation: --target "..." [--list] [--json]
|
|
1467
|
-
neighborhood: --target "..." [--json]
|
|
1468
|
-
evidence: --finding "..." [--target "..."] [--json]
|
|
1469
|
-
completion: [--task "..."] [--json]
|
|
1470
|
-
preamble: --task "..." [--json]
|
|
1471
|
-
refresh: --task "..." [--session "..."] [--json]
|
|
1472
|
-
timeline: [--limit N] [--json]
|
|
1473
|
-
current: [--limit N] [--json]
|
|
1474
|
-
|
|
1475
|
-
Upgrade & Licensing:
|
|
1476
|
-
upgrade See what Pro unlocks + payment link
|
|
1477
|
-
license activate <key> Activate a Pro license key locally
|
|
1478
|
-
license status Show current license state
|
|
1479
|
-
license deactivate Remove active license (return to free mode) [--yes]
|
|
1480
|
-
enable [team|enterprise] Enable a capability tier after Pro activation
|
|
1481
|
-
|
|
1482
|
-
Docs:
|
|
1483
|
-
Confidence scoring: docs/CONFIDENCE_SCORE.md
|
|
1484
|
-
Verify semantics: docs/VERIFY_SEMANTICS.md
|
|
1485
|
-
|
|
1486
|
-
Options:
|
|
1487
|
-
--version, -v Show version number
|
|
1488
|
-
--help, -h Show this help message
|
|
1489
|
-
|
|
1490
|
-
CodeLedger v${CLI_VERSION} — Deterministic Context Control Plane for AI Coding Agents
|
|
1491
|
-
Built by the team behind ContextECF (https://timetocontext.co)
|
|
1492
|
-
`);
|
|
1493
|
-
}
|
|
1494
|
-
main().catch((err) => {
|
|
1495
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
1496
|
-
console.error(`❌ Fatal error: ${msg}`);
|
|
1497
|
-
process.exit(1);
|
|
1498
|
-
});
|
|
1499
|
-
//# sourceMappingURL=index.js.map
|