@codeledger/cli 0.7.2 → 0.7.5
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/dist/arch-policy/resolve.d.ts +11 -0
- package/dist/arch-policy/resolve.d.ts.map +1 -0
- package/dist/arch-policy/resolve.js +195 -0
- package/dist/arch-policy/resolve.js.map +1 -0
- package/dist/arch-policy/simulate.d.ts +9 -0
- package/dist/arch-policy/simulate.d.ts.map +1 -0
- package/dist/arch-policy/simulate.js +175 -0
- package/dist/arch-policy/simulate.js.map +1 -0
- package/dist/commands/activate.d.ts.map +1 -1
- package/dist/commands/activate.js +119 -0
- package/dist/commands/activate.js.map +1 -1
- package/dist/commands/arch-policy.d.ts +8 -0
- package/dist/commands/arch-policy.d.ts.map +1 -0
- package/dist/commands/arch-policy.js +349 -0
- package/dist/commands/arch-policy.js.map +1 -0
- package/dist/commands/broker.d.ts +15 -0
- package/dist/commands/broker.d.ts.map +1 -0
- package/dist/commands/broker.js +283 -0
- package/dist/commands/broker.js.map +1 -0
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/claims.d.ts +14 -0
- package/dist/commands/claims.d.ts.map +1 -0
- package/dist/commands/claims.js +93 -0
- package/dist/commands/claims.js.map +1 -0
- package/dist/commands/complete-check.d.ts +23 -0
- package/dist/commands/complete-check.d.ts.map +1 -0
- package/dist/commands/complete-check.js +198 -0
- package/dist/commands/complete-check.js.map +1 -0
- package/dist/commands/conflicts.d.ts +12 -0
- package/dist/commands/conflicts.d.ts.map +1 -0
- package/dist/commands/conflicts.js +55 -0
- package/dist/commands/conflicts.js.map +1 -0
- package/dist/commands/dashboard.d.ts +12 -0
- package/dist/commands/dashboard.d.ts.map +1 -0
- package/dist/commands/dashboard.js +111 -0
- package/dist/commands/dashboard.js.map +1 -0
- package/dist/commands/discover-check.d.ts +19 -0
- package/dist/commands/discover-check.d.ts.map +1 -0
- package/dist/commands/discover-check.js +256 -0
- package/dist/commands/discover-check.js.map +1 -0
- package/dist/commands/discover-gate.d.ts +20 -0
- package/dist/commands/discover-gate.d.ts.map +1 -0
- package/dist/commands/discover-gate.js +131 -0
- package/dist/commands/discover-gate.js.map +1 -0
- package/dist/commands/discover.d.ts +14 -0
- package/dist/commands/discover.d.ts.map +1 -0
- package/dist/commands/discover.js +120 -0
- package/dist/commands/discover.js.map +1 -0
- package/dist/commands/guardrails.d.ts +11 -0
- package/dist/commands/guardrails.d.ts.map +1 -0
- package/dist/commands/guardrails.js +112 -0
- package/dist/commands/guardrails.js.map +1 -0
- package/dist/commands/health.d.ts +8 -0
- package/dist/commands/health.d.ts.map +1 -0
- package/dist/commands/health.js +101 -0
- package/dist/commands/health.js.map +1 -0
- package/dist/commands/init.d.ts +10 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +21 -44
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/intervene.d.ts +11 -0
- package/dist/commands/intervene.d.ts.map +1 -0
- package/dist/commands/intervene.js +94 -0
- package/dist/commands/intervene.js.map +1 -0
- package/dist/commands/interventions.d.ts +8 -0
- package/dist/commands/interventions.d.ts.map +1 -0
- package/dist/commands/interventions.js +69 -0
- package/dist/commands/interventions.js.map +1 -0
- package/dist/commands/lessons.d.ts +14 -0
- package/dist/commands/lessons.d.ts.map +1 -0
- package/dist/commands/lessons.js +196 -0
- package/dist/commands/lessons.js.map +1 -0
- package/dist/commands/memory.d.ts +16 -0
- package/dist/commands/memory.d.ts.map +1 -0
- package/dist/commands/memory.js +315 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/policy-author.d.ts +48 -0
- package/dist/commands/policy-author.d.ts.map +1 -0
- package/dist/commands/policy-author.js +396 -0
- package/dist/commands/policy-author.js.map +1 -0
- package/dist/commands/pr-check.d.ts +18 -0
- package/dist/commands/pr-check.d.ts.map +1 -0
- package/dist/commands/pr-check.js +299 -0
- package/dist/commands/pr-check.js.map +1 -0
- package/dist/commands/pre-pr.d.ts +14 -0
- package/dist/commands/pre-pr.d.ts.map +1 -0
- package/dist/commands/pre-pr.js +57 -0
- package/dist/commands/pre-pr.js.map +1 -0
- package/dist/commands/pulse.d.ts +12 -0
- package/dist/commands/pulse.d.ts.map +1 -0
- package/dist/commands/pulse.js +61 -0
- package/dist/commands/pulse.js.map +1 -0
- package/dist/commands/refine.js.map +1 -1
- package/dist/commands/release-check.d.ts +14 -0
- package/dist/commands/release-check.d.ts.map +1 -0
- package/dist/commands/release-check.js +44 -0
- package/dist/commands/release-check.js.map +1 -0
- package/dist/commands/replay.js.map +1 -1
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/serve.d.ts +7 -0
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +305 -2
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/upgrade.d.ts +1 -1
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +5 -1
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +129 -1
- package/dist/commands/verify.js.map +1 -1
- package/dist/completion-integrity/claims.d.ts +21 -0
- package/dist/completion-integrity/claims.d.ts.map +1 -0
- package/dist/completion-integrity/claims.js +85 -0
- package/dist/completion-integrity/claims.js.map +1 -0
- package/dist/completion-integrity/confidence.d.ts +30 -0
- package/dist/completion-integrity/confidence.d.ts.map +1 -0
- package/dist/completion-integrity/confidence.js +86 -0
- package/dist/completion-integrity/confidence.js.map +1 -0
- package/dist/completion-integrity/ghost-detector.d.ts +37 -0
- package/dist/completion-integrity/ghost-detector.d.ts.map +1 -0
- package/dist/completion-integrity/ghost-detector.js +93 -0
- package/dist/completion-integrity/ghost-detector.js.map +1 -0
- package/dist/completion-integrity/history.d.ts +19 -0
- package/dist/completion-integrity/history.d.ts.map +1 -0
- package/dist/completion-integrity/history.js +44 -0
- package/dist/completion-integrity/history.js.map +1 -0
- package/dist/completion-integrity/index.d.ts +25 -0
- package/dist/completion-integrity/index.d.ts.map +1 -0
- package/dist/completion-integrity/index.js +243 -0
- package/dist/completion-integrity/index.js.map +1 -0
- package/dist/completion-integrity/neighborhood.d.ts +21 -0
- package/dist/completion-integrity/neighborhood.d.ts.map +1 -0
- package/dist/completion-integrity/neighborhood.js +274 -0
- package/dist/completion-integrity/neighborhood.js.map +1 -0
- package/dist/completion-integrity/output.d.ts +11 -0
- package/dist/completion-integrity/output.d.ts.map +1 -0
- package/dist/completion-integrity/output.js +215 -0
- package/dist/completion-integrity/output.js.map +1 -0
- package/dist/completion-integrity/self-audit.d.ts +28 -0
- package/dist/completion-integrity/self-audit.d.ts.map +1 -0
- package/dist/completion-integrity/self-audit.js +194 -0
- package/dist/completion-integrity/self-audit.js.map +1 -0
- package/dist/completion-integrity/semantic-drift.d.ts +22 -0
- package/dist/completion-integrity/semantic-drift.d.ts.map +1 -0
- package/dist/completion-integrity/semantic-drift.js +138 -0
- package/dist/completion-integrity/semantic-drift.js.map +1 -0
- package/dist/completion-integrity/state-machine.d.ts +36 -0
- package/dist/completion-integrity/state-machine.d.ts.map +1 -0
- package/dist/completion-integrity/state-machine.js +138 -0
- package/dist/completion-integrity/state-machine.js.map +1 -0
- package/dist/completion-integrity/types.d.ts +65 -0
- package/dist/completion-integrity/types.d.ts.map +1 -0
- package/dist/completion-integrity/types.js +4 -0
- package/dist/completion-integrity/types.js.map +1 -0
- package/dist/discovery/blast-radius.d.ts +15 -0
- package/dist/discovery/blast-radius.d.ts.map +1 -0
- package/dist/discovery/blast-radius.js +160 -0
- package/dist/discovery/blast-radius.js.map +1 -0
- package/dist/discovery/cache.d.ts +38 -0
- package/dist/discovery/cache.d.ts.map +1 -0
- package/dist/discovery/cache.js +87 -0
- package/dist/discovery/cache.js.map +1 -0
- package/dist/discovery/diff-compliance.d.ts +19 -0
- package/dist/discovery/diff-compliance.d.ts.map +1 -0
- package/dist/discovery/diff-compliance.js +96 -0
- package/dist/discovery/diff-compliance.js.map +1 -0
- package/dist/discovery/duplicate-detection.d.ts +29 -0
- package/dist/discovery/duplicate-detection.d.ts.map +1 -0
- package/dist/discovery/duplicate-detection.js +133 -0
- package/dist/discovery/duplicate-detection.js.map +1 -0
- package/dist/discovery/gap-analysis.d.ts +16 -0
- package/dist/discovery/gap-analysis.d.ts.map +1 -0
- package/dist/discovery/gap-analysis.js +199 -0
- package/dist/discovery/gap-analysis.js.map +1 -0
- package/dist/discovery/index.d.ts +18 -0
- package/dist/discovery/index.d.ts.map +1 -0
- package/dist/discovery/index.js +565 -0
- package/dist/discovery/index.js.map +1 -0
- package/dist/discovery/override.d.ts +19 -0
- package/dist/discovery/override.d.ts.map +1 -0
- package/dist/discovery/override.js +113 -0
- package/dist/discovery/override.js.map +1 -0
- package/dist/discovery/scoring.d.ts +35 -0
- package/dist/discovery/scoring.d.ts.map +1 -0
- package/dist/discovery/scoring.js +194 -0
- package/dist/discovery/scoring.js.map +1 -0
- package/dist/discovery/source-of-truth.d.ts +17 -0
- package/dist/discovery/source-of-truth.d.ts.map +1 -0
- package/dist/discovery/source-of-truth.js +182 -0
- package/dist/discovery/source-of-truth.js.map +1 -0
- package/dist/discovery/symbol-growth.d.ts +20 -0
- package/dist/discovery/symbol-growth.d.ts.map +1 -0
- package/dist/discovery/symbol-growth.js +111 -0
- package/dist/discovery/symbol-growth.js.map +1 -0
- package/dist/guardrails/adversarial-trigger.d.ts +15 -0
- package/dist/guardrails/adversarial-trigger.d.ts.map +1 -0
- package/dist/guardrails/adversarial-trigger.js +86 -0
- package/dist/guardrails/adversarial-trigger.js.map +1 -0
- package/dist/guardrails/export-collision.d.ts +11 -0
- package/dist/guardrails/export-collision.d.ts.map +1 -0
- package/dist/guardrails/export-collision.js +141 -0
- package/dist/guardrails/export-collision.js.map +1 -0
- package/dist/guardrails/index.d.ts +24 -0
- package/dist/guardrails/index.d.ts.map +1 -0
- package/dist/guardrails/index.js +24 -0
- package/dist/guardrails/index.js.map +1 -0
- package/dist/guardrails/release-tag.d.ts +10 -0
- package/dist/guardrails/release-tag.d.ts.map +1 -0
- package/dist/guardrails/release-tag.js +99 -0
- package/dist/guardrails/release-tag.js.map +1 -0
- package/dist/guardrails/rename-integrity.d.ts +13 -0
- package/dist/guardrails/rename-integrity.d.ts.map +1 -0
- package/dist/guardrails/rename-integrity.js +111 -0
- package/dist/guardrails/rename-integrity.js.map +1 -0
- package/dist/guardrails/runner.d.ts +10 -0
- package/dist/guardrails/runner.d.ts.map +1 -0
- package/dist/guardrails/runner.js +36 -0
- package/dist/guardrails/runner.js.map +1 -0
- package/dist/guardrails/stale-artifact.d.ts +11 -0
- package/dist/guardrails/stale-artifact.d.ts.map +1 -0
- package/dist/guardrails/stale-artifact.js +69 -0
- package/dist/guardrails/stale-artifact.js.map +1 -0
- package/dist/guardrails/unused-parameter.d.ts +11 -0
- package/dist/guardrails/unused-parameter.d.ts.map +1 -0
- package/dist/guardrails/unused-parameter.js +105 -0
- package/dist/guardrails/unused-parameter.js.map +1 -0
- package/dist/guardrails/workspace-validation.d.ts +12 -0
- package/dist/guardrails/workspace-validation.d.ts.map +1 -0
- package/dist/guardrails/workspace-validation.js +92 -0
- package/dist/guardrails/workspace-validation.js.map +1 -0
- package/dist/health/advisor.d.ts +18 -0
- package/dist/health/advisor.d.ts.map +1 -0
- package/dist/health/advisor.js +174 -0
- package/dist/health/advisor.js.map +1 -0
- package/dist/health/dashboard.d.ts +96 -0
- package/dist/health/dashboard.d.ts.map +1 -0
- package/dist/health/dashboard.js +468 -0
- package/dist/health/dashboard.js.map +1 -0
- package/dist/hooks/discovery-enforcement.d.ts +9 -0
- package/dist/hooks/discovery-enforcement.d.ts.map +1 -0
- package/dist/hooks/discovery-enforcement.js +137 -0
- package/dist/hooks/discovery-enforcement.js.map +1 -0
- package/dist/hooks/discovery-hook.d.ts +22 -0
- package/dist/hooks/discovery-hook.d.ts.map +1 -0
- package/dist/hooks/discovery-hook.js +199 -0
- package/dist/hooks/discovery-hook.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +293 -155
- package/dist/index.js.map +1 -1
- package/dist/insight/emit.d.ts +19 -0
- package/dist/insight/emit.d.ts.map +1 -0
- package/dist/insight/emit.js +105 -0
- package/dist/insight/emit.js.map +1 -0
- package/dist/insight/engine-bridge.d.ts +7 -0
- package/dist/insight/engine-bridge.d.ts.map +1 -0
- package/dist/insight/engine-bridge.js +6 -0
- package/dist/insight/engine-bridge.js.map +1 -0
- package/dist/insight/index.d.ts +3 -0
- package/dist/insight/index.d.ts.map +1 -0
- package/dist/insight/index.js +2 -0
- package/dist/insight/index.js.map +1 -0
- package/dist/intervention/drift-velocity.d.ts +19 -0
- package/dist/intervention/drift-velocity.d.ts.map +1 -0
- package/dist/intervention/drift-velocity.js +107 -0
- package/dist/intervention/drift-velocity.js.map +1 -0
- package/dist/intervention/engine.d.ts +43 -0
- package/dist/intervention/engine.d.ts.map +1 -0
- package/dist/intervention/engine.js +356 -0
- package/dist/intervention/engine.js.map +1 -0
- package/dist/intervention/templates.d.ts +23 -0
- package/dist/intervention/templates.d.ts.map +1 -0
- package/dist/intervention/templates.js +167 -0
- package/dist/intervention/templates.js.map +1 -0
- package/dist/memory/evidence-gates.d.ts +32 -0
- package/dist/memory/evidence-gates.d.ts.map +1 -0
- package/dist/memory/evidence-gates.js +168 -0
- package/dist/memory/evidence-gates.js.map +1 -0
- package/dist/memory/index.d.ts +9 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +9 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/lessons.d.ts +88 -0
- package/dist/memory/lessons.d.ts.map +1 -0
- package/dist/memory/lessons.js +370 -0
- package/dist/memory/lessons.js.map +1 -0
- package/dist/memory/ontology.d.ts +34 -0
- package/dist/memory/ontology.d.ts.map +1 -0
- package/dist/memory/ontology.js +125 -0
- package/dist/memory/ontology.js.map +1 -0
- package/dist/memory/preamble.d.ts +35 -0
- package/dist/memory/preamble.d.ts.map +1 -0
- package/dist/memory/preamble.js +104 -0
- package/dist/memory/preamble.js.map +1 -0
- package/dist/memory/recent-truth.d.ts +21 -0
- package/dist/memory/recent-truth.d.ts.map +1 -0
- package/dist/memory/recent-truth.js +78 -0
- package/dist/memory/recent-truth.js.map +1 -0
- package/dist/memory/storage.d.ts +25 -0
- package/dist/memory/storage.d.ts.map +1 -0
- package/dist/memory/storage.js +182 -0
- package/dist/memory/storage.js.map +1 -0
- package/dist/memory/structural-trust.d.ts +36 -0
- package/dist/memory/structural-trust.d.ts.map +1 -0
- package/dist/memory/structural-trust.js +77 -0
- package/dist/memory/structural-trust.js.map +1 -0
- package/dist/memory/validation-ledger.d.ts +28 -0
- package/dist/memory/validation-ledger.d.ts.map +1 -0
- package/dist/memory/validation-ledger.js +90 -0
- package/dist/memory/validation-ledger.js.map +1 -0
- package/dist/onboarding.d.ts +36 -0
- package/dist/onboarding.d.ts.map +1 -0
- package/dist/onboarding.js +107 -0
- package/dist/onboarding.js.map +1 -0
- package/dist/policy/realtime.d.ts +17 -0
- package/dist/policy/realtime.d.ts.map +1 -0
- package/dist/policy/realtime.js +108 -0
- package/dist/policy/realtime.js.map +1 -0
- package/dist/policy/schema.d.ts.map +1 -1
- package/dist/policy/schema.js +137 -0
- package/dist/policy/schema.js.map +1 -1
- package/dist/pre-pr/checks.d.ts +18 -0
- package/dist/pre-pr/checks.d.ts.map +1 -0
- package/dist/pre-pr/checks.js +440 -0
- package/dist/pre-pr/checks.js.map +1 -0
- package/dist/pre-pr/orchestrator.d.ts +30 -0
- package/dist/pre-pr/orchestrator.d.ts.map +1 -0
- package/dist/pre-pr/orchestrator.js +104 -0
- package/dist/pre-pr/orchestrator.js.map +1 -0
- package/dist/release-check/engine.d.ts +30 -0
- package/dist/release-check/engine.d.ts.map +1 -0
- package/dist/release-check/engine.js +722 -0
- package/dist/release-check/engine.js.map +1 -0
- package/dist/release-check/index.d.ts +16 -0
- package/dist/release-check/index.d.ts.map +1 -0
- package/dist/release-check/index.js +16 -0
- package/dist/release-check/index.js.map +1 -0
- package/dist/release-check/output.d.ts +7 -0
- package/dist/release-check/output.d.ts.map +1 -0
- package/dist/release-check/output.js +123 -0
- package/dist/release-check/output.js.map +1 -0
- package/dist/session-registry.d.ts +1 -1
- package/dist/session-registry.d.ts.map +1 -1
- package/dist/session-registry.js +2 -0
- package/dist/session-registry.js.map +1 -1
- package/dist/templates/claude-md.js +1 -1
- package/dist/templates/claude-md.js.map +1 -1
- package/dist/verify/insertion-point-lock.d.ts +12 -0
- package/dist/verify/insertion-point-lock.d.ts.map +1 -0
- package/dist/verify/insertion-point-lock.js +208 -0
- package/dist/verify/insertion-point-lock.js.map +1 -0
- package/dist/verify/symbol-growth.d.ts +13 -0
- package/dist/verify/symbol-growth.d.ts.map +1 -0
- package/dist/verify/symbol-growth.js +143 -0
- package/dist/verify/symbol-growth.js.map +1 -0
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -31,30 +31,50 @@ import { runReviewGate } from './commands/review-gate.js';
|
|
|
31
31
|
import { runProgressCheck } from './commands/progress-check.js';
|
|
32
32
|
import { runVendor } from './commands/vendor.js';
|
|
33
33
|
import { runDetectSecrets } from './commands/detect-secrets.js';
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
34
|
+
import { runMemory } from './commands/memory.js';
|
|
35
|
+
import { runBroker } from './commands/broker.js';
|
|
36
|
+
import { runGuardrails as runGuardrailsCmd } from './commands/guardrails.js';
|
|
37
|
+
import { runLessons } from './commands/lessons.js';
|
|
38
|
+
import { runReleaseCheckCmd } from './commands/release-check.js';
|
|
36
39
|
import { runStats } from './commands/stats.js';
|
|
40
|
+
import { requireTier, runLicense } from './commands/license.js';
|
|
41
|
+
import { runArchPolicy } from './commands/arch-policy.js';
|
|
42
|
+
import { runAuditExport } from './commands/audit-export.js';
|
|
43
|
+
import { runCi } from './commands/ci.js';
|
|
44
|
+
import { runClaims } from './commands/claims.js';
|
|
45
|
+
import { runCommitMsg } from './commands/commit-msg.js';
|
|
46
|
+
import { runCompleteCheck } from './commands/complete-check.js';
|
|
47
|
+
import { runConflicts } from './commands/conflicts.js';
|
|
48
|
+
import { runContext } from './commands/context.js';
|
|
49
|
+
import { runDashboard } from './commands/dashboard.js';
|
|
50
|
+
import { runDiscover } from './commands/discover.js';
|
|
51
|
+
import { runDiscoverCheck } from './commands/discover-check.js';
|
|
52
|
+
import { runDiscoverGate } from './commands/discover-gate.js';
|
|
53
|
+
import { runEnable } from './commands/enable.js';
|
|
54
|
+
import { runFeatures } from './commands/features.js';
|
|
37
55
|
import { runFix } from './commands/fix.js';
|
|
38
|
-
import { runLearn } from './commands/learn.js';
|
|
39
56
|
import { runGraph } from './commands/graph.js';
|
|
57
|
+
import { runHealth } from './commands/health.js';
|
|
58
|
+
import { runIntervene } from './commands/intervene.js';
|
|
59
|
+
import { runInterventions } from './commands/interventions.js';
|
|
60
|
+
import { runLearn } from './commands/learn.js';
|
|
61
|
+
import { runLedger } from './commands/ledger.js';
|
|
62
|
+
import { runOrchestrate } from './commands/orchestrate.js';
|
|
40
63
|
import { runPack } from './commands/pack.js';
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
64
|
+
import { runPolicyInit } from './commands/policy-author.js';
|
|
65
|
+
import { runPolicySimulate } from './commands/policy-simulate.js';
|
|
66
|
+
import { runPrePRCmd } from './commands/pre-pr.js';
|
|
67
|
+
import { runPRCheck } from './commands/pr-check.js';
|
|
44
68
|
import { runPRSummary } from './commands/pr-summary.js';
|
|
45
|
-
import { runTeamLedger } from './commands/team-ledger.js';
|
|
46
|
-
import { runTeamMetrics } from './commands/team-metrics.js';
|
|
47
69
|
import { runProvenance } from './commands/provenance.js';
|
|
48
|
-
import {
|
|
49
|
-
import { runOrchestrate } from './commands/orchestrate.js';
|
|
50
|
-
import { runFeatures } from './commands/features.js';
|
|
70
|
+
import { runPulse } from './commands/pulse.js';
|
|
51
71
|
import { runReplay } from './commands/replay.js';
|
|
52
|
-
import {
|
|
72
|
+
import { runServe } from './commands/serve.js';
|
|
73
|
+
import { runTeamLedger } from './commands/team-ledger.js';
|
|
74
|
+
import { runTeamMetrics } from './commands/team-metrics.js';
|
|
53
75
|
import { runUpgrade } from './commands/upgrade.js';
|
|
54
|
-
import { runLicense } from './commands/license.js';
|
|
55
|
-
import { runEnable } from './commands/enable.js';
|
|
56
|
-
import { requireTier } from './commands/license.js';
|
|
57
76
|
import { CLI_VERSION } from './version.js';
|
|
77
|
+
import { maybeShowOnboarding } from './onboarding.js';
|
|
58
78
|
const args = process.argv.slice(2);
|
|
59
79
|
const command = args[0];
|
|
60
80
|
export function parseArgs(argv) {
|
|
@@ -88,34 +108,23 @@ const KNOWN_FLAGS = {
|
|
|
88
108
|
intent: new Set(['objective', 'deliverable', 'scope-in', 'scope-out', 'constraint', 'accept', 'risk', 'paths', 'session', 'as-baseline', 'task', 'json']),
|
|
89
109
|
manifest: new Set(['task', 'out', 'artifacts-dir']),
|
|
90
110
|
'sign-manifest': new Set(['in', 'out']),
|
|
91
|
-
policy: new Set(['print', 'policy-root']),
|
|
111
|
+
policy: new Set(['print', 'policy-root', 'scope', 'file', 'base', 'target', 'files']),
|
|
92
112
|
'setup-ci': new Set(['mode', 'output', 'provider', 'print']),
|
|
93
113
|
verify: new Set(['task', 'policy-root', 'artifacts-dir', 'coverage-attestation', 'explain', 'json', 'debug-review', 'invariant', 'update-baseline', 'show-triaged', 'baseline-path']),
|
|
94
114
|
init: new Set(['force']),
|
|
115
|
+
memory: new Set(['task', 'terms', 'anchors', 'force']),
|
|
116
|
+
broker: new Set(['task', 'target', 'finding', 'json', 'list', 'scope']),
|
|
117
|
+
guardrails: new Set(['task', 'json']),
|
|
118
|
+
lessons: new Set(['task', 'files', 'concepts', 'id', 'json', 'title', 'summary', 'category', 'severity', 'trigger-files', 'trigger-task', 'trigger-content', 'rationale']),
|
|
119
|
+
'release-check': new Set(['strict', 'json', 'why']),
|
|
95
120
|
'review-coverage': new Set(['session']),
|
|
96
121
|
'review-gate': new Set(['session']),
|
|
97
122
|
'progress-check': new Set(['session']),
|
|
98
123
|
'vendor': new Set(['target']),
|
|
99
124
|
'detect-secrets': new Set(['json', 'sarif', 'severity', 'bundle', 'paths-from-bundle', 'baseline', 'update-baseline', 'entropy']),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
graph: new Set(['json', 'save']),
|
|
103
|
-
pack: new Set(['name', 'pack']),
|
|
125
|
+
'complete-check': new Set(['task', 'summary', 'task-type', 'json', 'explain']),
|
|
126
|
+
'pre-pr': new Set(['json', 'task', 'skip-docs', 'skip-tests']),
|
|
104
127
|
serve: new Set(['port']),
|
|
105
|
-
'audit-export': new Set(['format', 'output', 'table']),
|
|
106
|
-
'commit-msg': new Set(['ticket', 'notes', 'json', 'apply', 'signature', 'format', 'install-hook', 'force', 'issue', 'intent-file']),
|
|
107
|
-
'pr-summary': new Set(['base', 'issue', 'intent-file', 'format', 'write', 'title-only', 'body-only']),
|
|
108
|
-
'team-ledger': new Set(['actor', 'limit']),
|
|
109
|
-
'team-metrics': new Set(['json']),
|
|
110
|
-
'provenance': new Set(['task', 'json']),
|
|
111
|
-
'policy-simulate': new Set(['scope', 'json']),
|
|
112
|
-
'orchestrate': new Set(['file', 'agent', 'agents']),
|
|
113
|
-
'features': new Set(['json']),
|
|
114
|
-
'replay': new Set(['task', 'json']),
|
|
115
|
-
'upgrade': new Set([]),
|
|
116
|
-
'license': new Set(['yes', 'y', 'key']),
|
|
117
|
-
'enable': new Set([]),
|
|
118
|
-
'ci': new Set(['json', 'mode', 'task']),
|
|
119
128
|
};
|
|
120
129
|
function warnUnknownFlags(command, flags) {
|
|
121
130
|
const known = KNOWN_FLAGS[command];
|
|
@@ -138,6 +147,9 @@ function warnUnknownFlags(command, flags) {
|
|
|
138
147
|
}
|
|
139
148
|
}
|
|
140
149
|
async function main() {
|
|
150
|
+
// Show onboarding on first run or explicit help (never blocks)
|
|
151
|
+
const topFlags = parseArgs(args.slice(1));
|
|
152
|
+
maybeShowOnboarding({ command, cwd: process.cwd(), flags: topFlags });
|
|
141
153
|
switch (command) {
|
|
142
154
|
case 'init': {
|
|
143
155
|
const initFlags = parseArgs(args.slice(1));
|
|
@@ -338,111 +350,169 @@ async function main() {
|
|
|
338
350
|
await runDetectSecrets(process.cwd(), detectSecretsFlags);
|
|
339
351
|
break;
|
|
340
352
|
}
|
|
353
|
+
case 'memory': {
|
|
354
|
+
const memoryFlags = parseArgs(args.slice(2));
|
|
355
|
+
memoryFlags['_sub'] = args[1] ?? 'help';
|
|
356
|
+
warnUnknownFlags('memory', memoryFlags);
|
|
357
|
+
await runMemory(process.cwd(), memoryFlags);
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
case 'broker': {
|
|
361
|
+
const brokerFlags = parseArgs(args.slice(2));
|
|
362
|
+
brokerFlags['_sub'] = args[1] ?? 'help';
|
|
363
|
+
warnUnknownFlags('broker', brokerFlags);
|
|
364
|
+
await runBroker(process.cwd(), brokerFlags);
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
case 'guardrails': {
|
|
368
|
+
const guardrailsFlags = parseArgs(args.slice(2));
|
|
369
|
+
guardrailsFlags['_sub'] = args[1] ?? 'help';
|
|
370
|
+
warnUnknownFlags('guardrails', guardrailsFlags);
|
|
371
|
+
await runGuardrailsCmd(process.cwd(), guardrailsFlags);
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
case 'lessons': {
|
|
375
|
+
const lessonsFlags = parseArgs(args.slice(2));
|
|
376
|
+
lessonsFlags['_sub'] = args[1] ?? 'help';
|
|
377
|
+
warnUnknownFlags('lessons', lessonsFlags);
|
|
378
|
+
await runLessons(process.cwd(), lessonsFlags);
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
case 'release-check': {
|
|
382
|
+
const rcFlags = parseArgs(args.slice(1));
|
|
383
|
+
warnUnknownFlags('release-check', rcFlags);
|
|
384
|
+
await runReleaseCheckCmd(process.cwd(), rcFlags);
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
341
387
|
case 'context': {
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
warnUnknownFlags('context', contextFlags);
|
|
346
|
-
await runContext(process.cwd(), contextFlags);
|
|
388
|
+
const ctxFlags = parseArgs(args.slice(2));
|
|
389
|
+
ctxFlags['_sub'] = args[1] ?? 'help';
|
|
390
|
+
await runContext(process.cwd(), ctxFlags);
|
|
347
391
|
break;
|
|
348
392
|
}
|
|
349
393
|
case 'ledger': {
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
warnUnknownFlags('ledger', parseArgs(ledgerArgs));
|
|
353
|
-
await runLedger(ledgerSub, ledgerArgs, process.cwd());
|
|
394
|
+
const ledgerSub = args[1];
|
|
395
|
+
await runLedger(ledgerSub, args.slice(2), process.cwd());
|
|
354
396
|
break;
|
|
355
397
|
}
|
|
356
|
-
case '
|
|
357
|
-
const
|
|
358
|
-
warnUnknownFlags('
|
|
359
|
-
await
|
|
398
|
+
case 'complete-check': {
|
|
399
|
+
const ccFlags = parseArgs(args.slice(1));
|
|
400
|
+
warnUnknownFlags('complete-check', ccFlags);
|
|
401
|
+
await runCompleteCheck(process.cwd(), ccFlags, args.slice(1));
|
|
360
402
|
break;
|
|
361
403
|
}
|
|
362
|
-
case '
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
await runLearn(process.cwd(), learnFlags);
|
|
404
|
+
case 'dashboard': {
|
|
405
|
+
const dashFlags = parseArgs(args.slice(1));
|
|
406
|
+
await runDashboard(process.cwd(), dashFlags);
|
|
366
407
|
break;
|
|
367
408
|
}
|
|
368
|
-
case '
|
|
369
|
-
const
|
|
370
|
-
|
|
371
|
-
await runGraph(process.cwd(), graphFlags);
|
|
409
|
+
case 'discover': {
|
|
410
|
+
const discoverFlags = parseArgs(args.slice(1));
|
|
411
|
+
await runDiscover(process.cwd(), discoverFlags);
|
|
372
412
|
break;
|
|
373
413
|
}
|
|
374
|
-
case '
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
414
|
+
case 'discover-check': {
|
|
415
|
+
const dcFlags = parseArgs(args.slice(1));
|
|
416
|
+
await runDiscoverCheck(process.cwd(), dcFlags);
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
case 'discover-gate': {
|
|
420
|
+
const dgFlags = parseArgs(args.slice(1));
|
|
421
|
+
await runDiscoverGate(process.cwd(), dgFlags);
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
case 'health': {
|
|
425
|
+
const healthFlags = parseArgs(args.slice(1));
|
|
426
|
+
await runHealth(process.cwd(), healthFlags);
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
case 'intervene': {
|
|
430
|
+
const interveneFlags = parseArgs(args.slice(1));
|
|
431
|
+
await runIntervene(process.cwd(), interveneFlags);
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
case 'interventions': {
|
|
435
|
+
const intFlags = parseArgs(args.slice(1));
|
|
436
|
+
await runInterventions(process.cwd(), intFlags);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
case 'arch-policy': {
|
|
440
|
+
const apFlags = parseArgs(args.slice(2));
|
|
441
|
+
apFlags['_sub'] = args[1] ?? 'list';
|
|
442
|
+
await runArchPolicy(process.cwd(), apFlags);
|
|
379
443
|
break;
|
|
380
444
|
}
|
|
381
445
|
case 'serve': {
|
|
382
446
|
const serveFlags = parseArgs(args.slice(1));
|
|
383
|
-
warnUnknownFlags('serve', serveFlags);
|
|
384
447
|
await runServe(process.cwd(), serveFlags);
|
|
385
448
|
break;
|
|
386
449
|
}
|
|
387
450
|
case 'audit-export': {
|
|
388
451
|
if (!requireTier(process.cwd(), 'enterprise', 'audit-export'))
|
|
389
452
|
break;
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
await runAuditExport(process.cwd(), auditFlags);
|
|
453
|
+
const aeFlags = parseArgs(args.slice(1));
|
|
454
|
+
await runAuditExport(process.cwd(), aeFlags);
|
|
393
455
|
break;
|
|
394
456
|
}
|
|
395
457
|
case 'commit-msg': {
|
|
396
|
-
const
|
|
397
|
-
|
|
398
|
-
await runCommitMsg(process.cwd(), commitMsgFlags);
|
|
458
|
+
const cmFlags = parseArgs(args.slice(1));
|
|
459
|
+
await runCommitMsg(process.cwd(), cmFlags);
|
|
399
460
|
break;
|
|
400
461
|
}
|
|
401
462
|
case 'pr-summary': {
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
|
|
463
|
+
const prFlags = parseArgs(args.slice(1));
|
|
464
|
+
await runPRSummary(process.cwd(), prFlags);
|
|
465
|
+
break;
|
|
466
|
+
}
|
|
467
|
+
case 'pre-pr': {
|
|
468
|
+
const prePrFlags = parseArgs(args.slice(1));
|
|
469
|
+
warnUnknownFlags('pre-pr', prePrFlags);
|
|
470
|
+
await runPrePRCmd(process.cwd(), prePrFlags);
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
case 'pr-check': {
|
|
474
|
+
const prCheckFlags = parseArgs(args.slice(1));
|
|
475
|
+
await runPRCheck(process.cwd(), prCheckFlags);
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
case 'conflicts': {
|
|
479
|
+
const confFlags = parseArgs(args.slice(1));
|
|
480
|
+
await runConflicts(process.cwd(), confFlags);
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
case 'claims': {
|
|
484
|
+
const claimsFlags = parseArgs(args.slice(2));
|
|
485
|
+
claimsFlags['_sub'] = args[1] ?? 'list';
|
|
486
|
+
await runClaims(process.cwd(), claimsFlags);
|
|
487
|
+
break;
|
|
488
|
+
}
|
|
489
|
+
case 'pulse': {
|
|
490
|
+
const pulseFlags = parseArgs(args.slice(2));
|
|
491
|
+
pulseFlags['_sub'] = args[1] ?? 'status';
|
|
492
|
+
await runPulse(process.cwd(), pulseFlags);
|
|
405
493
|
break;
|
|
406
494
|
}
|
|
407
495
|
case 'team-ledger': {
|
|
408
496
|
if (!requireTier(process.cwd(), 'team', 'team-ledger'))
|
|
409
497
|
break;
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
await runTeamLedger(process.cwd(), teamLedgerFlags);
|
|
498
|
+
const tlFlags = parseArgs(args.slice(2));
|
|
499
|
+
tlFlags['_sub'] = args[1] ?? 'status';
|
|
500
|
+
await runTeamLedger(process.cwd(), tlFlags);
|
|
414
501
|
break;
|
|
415
502
|
}
|
|
416
503
|
case 'team-metrics': {
|
|
417
504
|
if (!requireTier(process.cwd(), 'team', 'team-metrics'))
|
|
418
505
|
break;
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
await runTeamMetrics(process.cwd(), teamMetricsFlags);
|
|
506
|
+
const tmFlags = parseArgs(args.slice(1));
|
|
507
|
+
await runTeamMetrics(process.cwd(), tmFlags);
|
|
422
508
|
break;
|
|
423
509
|
}
|
|
424
510
|
case 'provenance': {
|
|
425
511
|
if (!requireTier(process.cwd(), 'enterprise', 'provenance'))
|
|
426
512
|
break;
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
await runProvenance(process.cwd(), provenanceFlags);
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
case 'policy': {
|
|
434
|
-
// Check if subcommand is 'simulate'
|
|
435
|
-
if (args[1] === 'simulate') {
|
|
436
|
-
if (!requireTier(process.cwd(), 'enterprise', 'policy simulate'))
|
|
437
|
-
break;
|
|
438
|
-
const simFlags = parseArgs(args.slice(2));
|
|
439
|
-
warnUnknownFlags('policy-simulate', simFlags);
|
|
440
|
-
await runPolicySimulate(process.cwd(), simFlags);
|
|
441
|
-
break;
|
|
442
|
-
}
|
|
443
|
-
const policyFlags = parseArgs(args.slice(1));
|
|
444
|
-
warnUnknownFlags('policy', policyFlags);
|
|
445
|
-
await runPolicy(process.cwd(), policyFlags);
|
|
513
|
+
const provFlags = parseArgs(args.slice(2));
|
|
514
|
+
provFlags['_sub'] = args[1] ?? 'export';
|
|
515
|
+
await runProvenance(process.cwd(), provFlags);
|
|
446
516
|
break;
|
|
447
517
|
}
|
|
448
518
|
case 'orchestrate': {
|
|
@@ -450,53 +520,82 @@ async function main() {
|
|
|
450
520
|
break;
|
|
451
521
|
const orchFlags = parseArgs(args.slice(2));
|
|
452
522
|
orchFlags['_sub'] = args[1] ?? 'status';
|
|
453
|
-
warnUnknownFlags('orchestrate', orchFlags);
|
|
454
523
|
await runOrchestrate(process.cwd(), orchFlags);
|
|
455
524
|
break;
|
|
456
525
|
}
|
|
457
526
|
case 'ci': {
|
|
458
527
|
const ciFlags = parseArgs(args.slice(2));
|
|
459
528
|
ciFlags['_sub'] = args[1] ?? 'check';
|
|
460
|
-
warnUnknownFlags('ci', ciFlags);
|
|
461
529
|
await runCi(process.cwd(), ciFlags);
|
|
462
530
|
break;
|
|
463
531
|
}
|
|
464
|
-
case '
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
await runUpgrade(process.cwd(), upgradeFlags);
|
|
532
|
+
case 'fix': {
|
|
533
|
+
const fixFlags = parseArgs(args.slice(1));
|
|
534
|
+
await runFix(process.cwd(), fixFlags);
|
|
468
535
|
break;
|
|
469
536
|
}
|
|
470
|
-
case '
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
// Capture positional key: `license activate CL-PRO-XXXX-XXXX-XXXX`
|
|
474
|
-
if (licenseFlags['_sub'] === 'activate' && args[2] && !args[2].startsWith('--')) {
|
|
475
|
-
licenseFlags['_arg'] = args[2];
|
|
476
|
-
}
|
|
477
|
-
warnUnknownFlags('license', licenseFlags);
|
|
478
|
-
await runLicense(process.cwd(), licenseFlags);
|
|
537
|
+
case 'learn': {
|
|
538
|
+
const learnFlags = parseArgs(args.slice(1));
|
|
539
|
+
await runLearn(process.cwd(), learnFlags);
|
|
479
540
|
break;
|
|
480
541
|
}
|
|
481
|
-
case '
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
542
|
+
case 'graph': {
|
|
543
|
+
const graphFlags = parseArgs(args.slice(1));
|
|
544
|
+
await runGraph(process.cwd(), graphFlags);
|
|
545
|
+
break;
|
|
546
|
+
}
|
|
547
|
+
case 'pack': {
|
|
548
|
+
const packFlags = parseArgs(args.slice(2));
|
|
549
|
+
packFlags['_sub'] = args[1] ?? 'list';
|
|
550
|
+
await runPack(process.cwd(), packFlags);
|
|
486
551
|
break;
|
|
487
552
|
}
|
|
488
553
|
case 'features': {
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
await runFeatures(process.cwd(), featuresFlags);
|
|
554
|
+
const featFlags = parseArgs(args.slice(1));
|
|
555
|
+
await runFeatures(process.cwd(), featFlags);
|
|
492
556
|
break;
|
|
493
557
|
}
|
|
494
558
|
case 'replay': {
|
|
495
559
|
const replayFlags = parseArgs(args.slice(1));
|
|
496
|
-
warnUnknownFlags('replay', replayFlags);
|
|
497
560
|
await runReplay(process.cwd(), replayFlags);
|
|
498
561
|
break;
|
|
499
562
|
}
|
|
563
|
+
case 'upgrade':
|
|
564
|
+
await runUpgrade(process.cwd(), {});
|
|
565
|
+
break;
|
|
566
|
+
case 'license': {
|
|
567
|
+
const licFlags = parseArgs(args.slice(2));
|
|
568
|
+
licFlags['_sub'] = args[1] ?? 'status';
|
|
569
|
+
// Capture positional arg: `license activate <key>`
|
|
570
|
+
if (args[2] && !args[2].startsWith('--')) {
|
|
571
|
+
licFlags['_arg'] = args[2];
|
|
572
|
+
}
|
|
573
|
+
await runLicense(process.cwd(), licFlags);
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
case 'enable': {
|
|
577
|
+
const enFlags = parseArgs(args.slice(2));
|
|
578
|
+
enFlags['_sub'] = args[1] ?? '';
|
|
579
|
+
await runEnable(process.cwd(), enFlags);
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
case 'policy': {
|
|
583
|
+
const hasPolicySub = args[1] !== undefined && !args[1].startsWith('-');
|
|
584
|
+
const polFlags = parseArgs(args.slice(hasPolicySub ? 2 : 1));
|
|
585
|
+
polFlags['_sub'] = hasPolicySub ? args[1] : 'help';
|
|
586
|
+
if (polFlags['_sub'] === 'init') {
|
|
587
|
+
await runPolicyInit(process.cwd(), polFlags);
|
|
588
|
+
}
|
|
589
|
+
else if (polFlags['_sub'] === 'simulate') {
|
|
590
|
+
if (!requireTier(process.cwd(), 'enterprise', 'policy simulate'))
|
|
591
|
+
break;
|
|
592
|
+
await runPolicySimulate(process.cwd(), polFlags);
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
await runPolicy(process.cwd(), polFlags);
|
|
596
|
+
}
|
|
597
|
+
break;
|
|
598
|
+
}
|
|
500
599
|
case 'version':
|
|
501
600
|
case '--version':
|
|
502
601
|
case '-v':
|
|
@@ -555,6 +654,14 @@ Commands:
|
|
|
555
654
|
--in <manifest.json> --out <signed.json>
|
|
556
655
|
policy --print Show resolved policy for current repo
|
|
557
656
|
[--policy-root <dir>]
|
|
657
|
+
policy init Scaffold a new policy file with sensible defaults
|
|
658
|
+
[--scope global|repo|zone] (default: repo)
|
|
659
|
+
policy validate Validate a policy file against the schema
|
|
660
|
+
[--file <path>]
|
|
661
|
+
policy diff Show differences between two policy files
|
|
662
|
+
--base <file> --target <file>
|
|
663
|
+
policy merge Merge policy files using strictest-wins resolution
|
|
664
|
+
--files <file1,file2,...>
|
|
558
665
|
verify --task "..." CI enforcement: evaluate policy, emit artifacts, return exit code
|
|
559
666
|
[--policy-root <dir>] [--artifacts-dir <dir>]
|
|
560
667
|
[--explain] [--json] [--debug-review] [--invariant <name>]
|
|
@@ -584,6 +691,23 @@ Context Orchestration (DCOL v2):
|
|
|
584
691
|
inspect: Show recent entries [--intent <sig>] [--limit N]
|
|
585
692
|
prune: Trim ledger to N most recent entries [--max N] (default 2000)
|
|
586
693
|
|
|
694
|
+
Pre-PR Guardrails:
|
|
695
|
+
pre-pr Master guardrail system — 10-check integrity stack
|
|
696
|
+
[--json] [--task "..."]
|
|
697
|
+
[--skip-docs "reason"] [--skip-tests "reason"]
|
|
698
|
+
Checks: completion, type contracts, cross-package drift,
|
|
699
|
+
staleness, wiring, build/test, neighborhood, release,
|
|
700
|
+
review complexity, adversarial self-test
|
|
701
|
+
|
|
702
|
+
Completion Integrity:
|
|
703
|
+
complete-check Enforcement-grade Completion Integrity Check (CIC v2)
|
|
704
|
+
--task "..." [--summary "..."] [--json] [--explain]
|
|
705
|
+
[--claim "desc::file1,file2"] (repeatable)
|
|
706
|
+
[--evidence "type::content"] (repeatable)
|
|
707
|
+
[--omit "scope::reason"] (repeatable)
|
|
708
|
+
[--task-type release_pipeline|wizard_ux|ci_change|feature|bugfix|refactor|docs]
|
|
709
|
+
Exit 0 = verified. Exit 1 = incomplete.
|
|
710
|
+
|
|
587
711
|
Security:
|
|
588
712
|
detect-secrets Scan repo for hardcoded secrets and credentials
|
|
589
713
|
[--json] [--sarif] [--severity high|medium|low]
|
|
@@ -594,6 +718,14 @@ Security:
|
|
|
594
718
|
Mid-Session:
|
|
595
719
|
progress-check Lightweight mid-session bundle coverage check
|
|
596
720
|
[--session <id>]
|
|
721
|
+
dashboard Architecture Health Dashboard (composite scores + trends)
|
|
722
|
+
[--json] [--history] [--record]
|
|
723
|
+
|
|
724
|
+
Architecture Intervention:
|
|
725
|
+
interventions Show prioritized architecture interventions
|
|
726
|
+
[--json] [--top N] [--category <cat>] [--agent-template]
|
|
727
|
+
Aggregates signals from drift, review intelligence,
|
|
728
|
+
discovery, layer-d, and policy into actionable fixes.
|
|
597
729
|
|
|
598
730
|
Compliance / Audit:
|
|
599
731
|
audit-export Export ledger data to JSON, CSV, or JSON Lines (SIEM)
|
|
@@ -626,37 +758,49 @@ Cowork (Knowledge Mode):
|
|
|
626
758
|
cowork-stop Finalize session + print summary
|
|
627
759
|
[--workspace .]
|
|
628
760
|
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
inspect: Show recent team entries [--limit N]
|
|
635
|
-
team-metrics Team Context Quality Score (composite KPI)
|
|
636
|
-
[--json]
|
|
637
|
-
policy simulate Simulate policy impact against historical data
|
|
638
|
-
[--scope team|org] [--json]
|
|
761
|
+
Memory:
|
|
762
|
+
memory [init|recent|validation|ontology|structure|evidence|preamble]
|
|
763
|
+
Inspect and manage the CodeLedger memory system
|
|
764
|
+
init: [--force] Seed default ledgers (evidence gates + ontology)
|
|
765
|
+
preamble: [--task "..."] [--terms "a,b"] [--anchors "x,y"]
|
|
639
766
|
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
release: --agent <id> [--file <path>]
|
|
650
|
-
partition: --agents <id1,id2,...>
|
|
767
|
+
Lessons:
|
|
768
|
+
lessons [list|relevant|verify|deprecate]
|
|
769
|
+
Self-learning engineering immune system
|
|
770
|
+
list: [--json] Show all active lessons
|
|
771
|
+
relevant: --task "..." [--json] Lessons relevant to a task
|
|
772
|
+
--files "f1,f2" Lessons relevant to files
|
|
773
|
+
--concepts "a,b" Lessons matching concepts
|
|
774
|
+
verify: --id <id> Approve a lesson (human governance)
|
|
775
|
+
deprecate: --id <id> Deprecate a lesson
|
|
651
776
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
777
|
+
Guardrails:
|
|
778
|
+
guardrails [status|explain]
|
|
779
|
+
Engineering safeguards derived from session lessons
|
|
780
|
+
status: [--task "..."] [--json] Show guardrail results
|
|
781
|
+
explain: [--task "..."] [--json] Detailed guard explanations
|
|
782
|
+
Guards run automatically during complete-check.
|
|
783
|
+
Failed guards block promotion past "verified" state.
|
|
784
|
+
|
|
785
|
+
Release Authority:
|
|
786
|
+
release-check Determine if a release is shippable
|
|
787
|
+
[--strict] Block CI on conditional findings
|
|
788
|
+
[--json] Machine-readable output
|
|
789
|
+
[--why] Top 3 actions to reach next state
|
|
790
|
+
Checks: git integrity, workspace alignment, test integrity,
|
|
791
|
+
binary parity, CLI wiring, docs alignment, open loops.
|
|
792
|
+
States: not_ready → ready_conditional → ready → ready_hardened
|
|
793
|
+
Exit 0 = ready. Exit 1 = not_ready or blocked.
|
|
794
|
+
|
|
795
|
+
Context Broker:
|
|
796
|
+
broker [resolve|validation|neighborhood|evidence|completion|preamble]
|
|
797
|
+
Structured, decision-grade context for agents
|
|
798
|
+
resolve: --task "..." [--json]
|
|
799
|
+
validation: --target "..." [--list] [--json]
|
|
800
|
+
neighborhood: --target "..." [--json]
|
|
801
|
+
evidence: --finding "..." [--target "..."] [--json]
|
|
802
|
+
completion: [--task "..."] [--json]
|
|
803
|
+
preamble: --task "..." [--json]
|
|
660
804
|
|
|
661
805
|
Upgrade & Licensing:
|
|
662
806
|
upgrade See what Pro unlocks + payment link
|
|
@@ -665,12 +809,6 @@ Upgrade & Licensing:
|
|
|
665
809
|
license deactivate Remove active license (return to free mode) [--yes]
|
|
666
810
|
enable [team|enterprise] Enable a capability tier after Pro activation
|
|
667
811
|
|
|
668
|
-
Discovery & Debugging:
|
|
669
|
-
features Show current mode, unlocked features, and upgrade hints
|
|
670
|
-
[--json]
|
|
671
|
-
replay Reconstruct a context bundle for audit/debugging
|
|
672
|
-
--task "<task>" [--json]
|
|
673
|
-
|
|
674
812
|
Options:
|
|
675
813
|
--version, -v Show version number
|
|
676
814
|
--help, -h Show this help message
|