@codeledger/cli 0.8.7 → 0.8.9
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/ambient-activation.d.ts +30 -0
- package/dist/ambient-activation.d.ts.map +1 -0
- package/dist/ambient-activation.js +449 -0
- package/dist/ambient-activation.js.map +1 -0
- package/dist/command-activation.d.ts +3 -0
- package/dist/command-activation.d.ts.map +1 -0
- package/dist/command-activation.js +2 -0
- package/dist/command-activation.js.map +1 -0
- package/dist/commands/about.d.ts +2 -0
- package/dist/commands/about.d.ts.map +1 -0
- package/dist/commands/about.js +18 -0
- package/dist/commands/about.js.map +1 -0
- package/dist/commands/apply-policy.d.ts.map +1 -1
- package/dist/commands/apply-policy.js +14 -0
- package/dist/commands/apply-policy.js.map +1 -1
- package/dist/commands/audit-export.d.ts.map +1 -1
- package/dist/commands/audit-export.js +3 -1
- package/dist/commands/audit-export.js.map +1 -1
- package/dist/commands/audit.d.ts +1 -1
- package/dist/commands/audit.js +153 -2
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/auto-refresh.d.ts +7 -0
- package/dist/commands/auto-refresh.d.ts.map +1 -1
- package/dist/commands/auto-refresh.js +30 -10
- package/dist/commands/auto-refresh.js.map +1 -1
- package/dist/commands/broker.d.ts.map +1 -1
- package/dist/commands/broker.js +24 -14
- package/dist/commands/broker.js.map +1 -1
- package/dist/commands/bundle.d.ts.map +1 -1
- package/dist/commands/bundle.js +30 -1
- package/dist/commands/bundle.js.map +1 -1
- package/dist/commands/ci.d.ts.map +1 -1
- package/dist/commands/ci.js +34 -2
- package/dist/commands/ci.js.map +1 -1
- package/dist/commands/complete-check.d.ts.map +1 -1
- package/dist/commands/complete-check.js +23 -0
- package/dist/commands/complete-check.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +26 -3
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/coordination.d.ts +6 -0
- package/dist/commands/coordination.d.ts.map +1 -0
- package/dist/commands/coordination.js +177 -0
- package/dist/commands/coordination.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +7 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/insight-seed.d.ts +2 -0
- package/dist/commands/insight-seed.d.ts.map +1 -0
- package/dist/commands/insight-seed.js +59 -0
- package/dist/commands/insight-seed.js.map +1 -0
- package/dist/commands/insight-smoke-test.d.ts +2 -0
- package/dist/commands/insight-smoke-test.d.ts.map +1 -0
- package/dist/commands/insight-smoke-test.js +44 -0
- package/dist/commands/insight-smoke-test.js.map +1 -0
- package/dist/commands/insight.d.ts +2 -0
- package/dist/commands/insight.d.ts.map +1 -0
- package/dist/commands/insight.js +182 -0
- package/dist/commands/insight.js.map +1 -0
- package/dist/commands/intent.js +2 -2
- package/dist/commands/intent.js.map +1 -1
- package/dist/commands/ledger.js +10 -2
- package/dist/commands/ledger.js.map +1 -1
- package/dist/commands/license.d.ts.map +1 -1
- package/dist/commands/license.js +5 -5
- package/dist/commands/license.js.map +1 -1
- package/dist/commands/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +168 -0
- package/dist/commands/memory.js.map +1 -1
- package/dist/commands/provenance.d.ts.map +1 -1
- package/dist/commands/provenance.js +20 -4
- package/dist/commands/provenance.js.map +1 -1
- package/dist/commands/scan.d.ts +1 -1
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +268 -31
- package/dist/commands/scan.js.map +1 -1
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +238 -66
- package/dist/commands/serve.js.map +1 -1
- package/dist/commands/session-cleanup.d.ts.map +1 -1
- package/dist/commands/session-cleanup.js +2 -0
- package/dist/commands/session-cleanup.js.map +1 -1
- package/dist/commands/team-ledger.d.ts.map +1 -1
- package/dist/commands/team-ledger.js +4 -1
- package/dist/commands/team-ledger.js.map +1 -1
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +32 -0
- package/dist/commands/verify.js.map +1 -1
- package/dist/coordination/index.d.ts +69 -0
- package/dist/coordination/index.d.ts.map +1 -0
- package/dist/coordination/index.js +1093 -0
- package/dist/coordination/index.js.map +1 -0
- package/dist/health/dashboard.d.ts.map +1 -1
- package/dist/health/dashboard.js +3 -1
- package/dist/health/dashboard.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +164 -19
- package/dist/index.js.map +1 -1
- package/dist/insight/telemetry.d.ts +14 -0
- package/dist/insight/telemetry.d.ts.map +1 -0
- package/dist/insight/telemetry.js +87 -0
- package/dist/insight/telemetry.js.map +1 -0
- package/dist/intake/candidate-paths/CandidatePathDetector.d.ts +5 -0
- package/dist/intake/candidate-paths/CandidatePathDetector.d.ts.map +1 -0
- package/dist/intake/candidate-paths/CandidatePathDetector.js +173 -0
- package/dist/intake/candidate-paths/CandidatePathDetector.js.map +1 -0
- package/dist/intake/candidate-paths/anchorRadiusExpansion.d.ts +4 -0
- package/dist/intake/candidate-paths/anchorRadiusExpansion.d.ts.map +1 -0
- package/dist/intake/candidate-paths/anchorRadiusExpansion.js +66 -0
- package/dist/intake/candidate-paths/anchorRadiusExpansion.js.map +1 -0
- package/dist/intake/candidate-paths/applyNegativeFiltering.d.ts +4 -0
- package/dist/intake/candidate-paths/applyNegativeFiltering.d.ts.map +1 -0
- package/dist/intake/candidate-paths/applyNegativeFiltering.js +24 -0
- package/dist/intake/candidate-paths/applyNegativeFiltering.js.map +1 -0
- package/dist/intake/candidate-paths/coCommitAnalyzer.d.ts +3 -0
- package/dist/intake/candidate-paths/coCommitAnalyzer.d.ts.map +1 -0
- package/dist/intake/candidate-paths/coCommitAnalyzer.js +27 -0
- package/dist/intake/candidate-paths/coCommitAnalyzer.js.map +1 -0
- package/dist/intake/candidate-paths/computeConfidence.d.ts +3 -0
- package/dist/intake/candidate-paths/computeConfidence.d.ts.map +1 -0
- package/dist/intake/candidate-paths/computeConfidence.js +14 -0
- package/dist/intake/candidate-paths/computeConfidence.js.map +1 -0
- package/dist/intake/candidate-paths/consolidateCandidates.d.ts +5 -0
- package/dist/intake/candidate-paths/consolidateCandidates.d.ts.map +1 -0
- package/dist/intake/candidate-paths/consolidateCandidates.js +61 -0
- package/dist/intake/candidate-paths/consolidateCandidates.js.map +1 -0
- package/dist/intake/candidate-paths/hierarchicalMatching.d.ts +7 -0
- package/dist/intake/candidate-paths/hierarchicalMatching.d.ts.map +1 -0
- package/dist/intake/candidate-paths/hierarchicalMatching.js +46 -0
- package/dist/intake/candidate-paths/hierarchicalMatching.js.map +1 -0
- package/dist/intake/candidate-paths/integration.d.ts +7 -0
- package/dist/intake/candidate-paths/integration.d.ts.map +1 -0
- package/dist/intake/candidate-paths/integration.js +63 -0
- package/dist/intake/candidate-paths/integration.js.map +1 -0
- package/dist/intake/candidate-paths/pathDetectionOverrides.d.ts +3 -0
- package/dist/intake/candidate-paths/pathDetectionOverrides.d.ts.map +1 -0
- package/dist/intake/candidate-paths/pathDetectionOverrides.js +134 -0
- package/dist/intake/candidate-paths/pathDetectionOverrides.js.map +1 -0
- package/dist/intake/candidate-paths/repoIndexAdapter.d.ts +4 -0
- package/dist/intake/candidate-paths/repoIndexAdapter.d.ts.map +1 -0
- package/dist/intake/candidate-paths/repoIndexAdapter.js +99 -0
- package/dist/intake/candidate-paths/repoIndexAdapter.js.map +1 -0
- package/dist/intake/candidate-paths/resolveExplicitTargets.d.ts +8 -0
- package/dist/intake/candidate-paths/resolveExplicitTargets.d.ts.map +1 -0
- package/dist/intake/candidate-paths/resolveExplicitTargets.js +65 -0
- package/dist/intake/candidate-paths/resolveExplicitTargets.js.map +1 -0
- package/dist/intake/candidate-paths/rules.d.ts +13 -0
- package/dist/intake/candidate-paths/rules.d.ts.map +1 -0
- package/dist/intake/candidate-paths/rules.js +64 -0
- package/dist/intake/candidate-paths/rules.js.map +1 -0
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.d.ts +10 -0
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.d.ts.map +1 -0
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.js +73 -0
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.js.map +1 -0
- package/dist/intake/candidate-paths/shapeEstimator.d.ts +3 -0
- package/dist/intake/candidate-paths/shapeEstimator.d.ts.map +1 -0
- package/dist/intake/candidate-paths/shapeEstimator.js +17 -0
- package/dist/intake/candidate-paths/shapeEstimator.js.map +1 -0
- package/dist/intake/candidate-paths/types.d.ts +148 -0
- package/dist/intake/candidate-paths/types.d.ts.map +1 -0
- package/dist/intake/candidate-paths/types.js +2 -0
- package/dist/intake/candidate-paths/types.js.map +1 -0
- package/dist/intake/task-classifier/TaskClassifier.d.ts +5 -0
- package/dist/intake/task-classifier/TaskClassifier.d.ts.map +1 -0
- package/dist/intake/task-classifier/TaskClassifier.js +96 -0
- package/dist/intake/task-classifier/TaskClassifier.js.map +1 -0
- package/dist/intake/task-classifier/applyOverrides.d.ts +3 -0
- package/dist/intake/task-classifier/applyOverrides.d.ts.map +1 -0
- package/dist/intake/task-classifier/applyOverrides.js +55 -0
- package/dist/intake/task-classifier/applyOverrides.js.map +1 -0
- package/dist/intake/task-classifier/computeConfidence.d.ts +3 -0
- package/dist/intake/task-classifier/computeConfidence.d.ts.map +1 -0
- package/dist/intake/task-classifier/computeConfidence.js +13 -0
- package/dist/intake/task-classifier/computeConfidence.js.map +1 -0
- package/dist/intake/task-classifier/deriveRiskAndComplexity.d.ts +4 -0
- package/dist/intake/task-classifier/deriveRiskAndComplexity.d.ts.map +1 -0
- package/dist/intake/task-classifier/deriveRiskAndComplexity.js +24 -0
- package/dist/intake/task-classifier/deriveRiskAndComplexity.js.map +1 -0
- package/dist/intake/task-classifier/deriveTags.d.ts +3 -0
- package/dist/intake/task-classifier/deriveTags.d.ts.map +1 -0
- package/dist/intake/task-classifier/deriveTags.js +43 -0
- package/dist/intake/task-classifier/deriveTags.js.map +1 -0
- package/dist/intake/task-classifier/index.d.ts +6 -0
- package/dist/intake/task-classifier/index.d.ts.map +1 -0
- package/dist/intake/task-classifier/index.js +6 -0
- package/dist/intake/task-classifier/index.js.map +1 -0
- package/dist/intake/task-classifier/mergeScores.d.ts +4 -0
- package/dist/intake/task-classifier/mergeScores.d.ts.map +1 -0
- package/dist/intake/task-classifier/mergeScores.js +68 -0
- package/dist/intake/task-classifier/mergeScores.js.map +1 -0
- package/dist/intake/task-classifier/pathMatching.d.ts +3 -0
- package/dist/intake/task-classifier/pathMatching.d.ts.map +1 -0
- package/dist/intake/task-classifier/pathMatching.js +33 -0
- package/dist/intake/task-classifier/pathMatching.js.map +1 -0
- package/dist/intake/task-classifier/rules.d.ts +28 -0
- package/dist/intake/task-classifier/rules.d.ts.map +1 -0
- package/dist/intake/task-classifier/rules.js +138 -0
- package/dist/intake/task-classifier/rules.js.map +1 -0
- package/dist/intake/task-classifier/scoreKeywords.d.ts +5 -0
- package/dist/intake/task-classifier/scoreKeywords.d.ts.map +1 -0
- package/dist/intake/task-classifier/scoreKeywords.js +41 -0
- package/dist/intake/task-classifier/scoreKeywords.js.map +1 -0
- package/dist/intake/task-classifier/scoreMetadata.d.ts +3 -0
- package/dist/intake/task-classifier/scoreMetadata.d.ts.map +1 -0
- package/dist/intake/task-classifier/scoreMetadata.js +29 -0
- package/dist/intake/task-classifier/scoreMetadata.js.map +1 -0
- package/dist/intake/task-classifier/scorePaths.d.ts +3 -0
- package/dist/intake/task-classifier/scorePaths.d.ts.map +1 -0
- package/dist/intake/task-classifier/scorePaths.js +38 -0
- package/dist/intake/task-classifier/scorePaths.js.map +1 -0
- package/dist/intake/task-classifier/types.d.ts +51 -0
- package/dist/intake/task-classifier/types.d.ts.map +1 -0
- package/dist/intake/task-classifier/types.js +2 -0
- package/dist/intake/task-classifier/types.js.map +1 -0
- package/dist/memory/TaskClassifier.d.ts +6 -0
- package/dist/memory/TaskClassifier.d.ts.map +1 -0
- package/dist/memory/TaskClassifier.js +344 -0
- package/dist/memory/TaskClassifier.js.map +1 -0
- package/dist/memory/context-injection.d.ts +12 -0
- package/dist/memory/context-injection.d.ts.map +1 -0
- package/dist/memory/context-injection.js +548 -0
- package/dist/memory/context-injection.js.map +1 -0
- package/dist/memory/index.d.ts +2 -0
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +2 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/policy-artifacts.d.ts +31 -0
- package/dist/memory/policy-artifacts.d.ts.map +1 -0
- package/dist/memory/policy-artifacts.js +614 -0
- package/dist/memory/policy-artifacts.js.map +1 -0
- package/dist/memory/preamble.d.ts.map +1 -1
- package/dist/memory/preamble.js +10 -0
- package/dist/memory/preamble.js.map +1 -1
- package/dist/memory/taskClassifierOverrides.d.ts +3 -0
- package/dist/memory/taskClassifierOverrides.d.ts.map +1 -0
- package/dist/memory/taskClassifierOverrides.js +153 -0
- package/dist/memory/taskClassifierOverrides.js.map +1 -0
- package/dist/memory/taskClassifierRules.d.ts +15 -0
- package/dist/memory/taskClassifierRules.d.ts.map +1 -0
- package/dist/memory/taskClassifierRules.js +277 -0
- package/dist/memory/taskClassifierRules.js.map +1 -0
- package/dist/memory/taskClassifierTypes.d.ts +40 -0
- package/dist/memory/taskClassifierTypes.d.ts.map +1 -0
- package/dist/memory/taskClassifierTypes.js +2 -0
- package/dist/memory/taskClassifierTypes.js.map +1 -0
- package/dist/onboarding.js +5 -5
- package/dist/onboarding.js.map +1 -1
- package/dist/protected-runtime/core.d.ts +7 -0
- package/dist/protected-runtime/core.d.ts.map +1 -0
- package/dist/protected-runtime/core.js +24 -0
- package/dist/protected-runtime/core.js.map +1 -0
- package/dist/protected-runtime/module-loader.d.ts +9 -0
- package/dist/protected-runtime/module-loader.d.ts.map +1 -0
- package/dist/protected-runtime/module-loader.js +68 -0
- package/dist/protected-runtime/module-loader.js.map +1 -0
- package/dist/protected-shell.d.ts +2 -0
- package/dist/protected-shell.d.ts.map +1 -0
- package/dist/protected-shell.js +50 -0
- package/dist/protected-shell.js.map +1 -0
- package/dist/risk-detection/heuristics.js +1 -1
- package/dist/risk-detection/heuristics.js.map +1 -1
- package/dist/security/export-sanitizer.d.ts +76 -0
- package/dist/security/export-sanitizer.d.ts.map +1 -0
- package/dist/security/export-sanitizer.js +176 -0
- package/dist/security/export-sanitizer.js.map +1 -0
- package/dist/security/path-summary.d.ts +4 -0
- package/dist/security/path-summary.d.ts.map +1 -0
- package/dist/security/path-summary.js +94 -0
- package/dist/security/path-summary.js.map +1 -0
- package/dist/templates/config.d.ts.map +1 -1
- package/dist/templates/config.js +59 -0
- package/dist/templates/config.js.map +1 -1
- package/package.json +17 -13
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ import { runCi } from './commands/ci.js';
|
|
|
48
48
|
import { runClaims } from './commands/claims.js';
|
|
49
49
|
import { runCommitMsg } from './commands/commit-msg.js';
|
|
50
50
|
import { runCompleteCheck } from './commands/complete-check.js';
|
|
51
|
+
import { runClaim, runCoordination, runLeases, runPreflightEdit, runRelease } from './commands/coordination.js';
|
|
51
52
|
import { runConflicts } from './commands/conflicts.js';
|
|
52
53
|
import { runContext } from './commands/context.js';
|
|
53
54
|
import { runContextHandoff } from './commands/context-handoff.js';
|
|
@@ -90,6 +91,9 @@ import { runPreflightCommand } from './commands/preflight.js';
|
|
|
90
91
|
import { runRuns } from './commands/runs.js';
|
|
91
92
|
import { runDaemonCli } from './commands/daemon.js';
|
|
92
93
|
import { runApplyPolicy } from './commands/apply-policy.js';
|
|
94
|
+
import { runAbout } from './commands/about.js';
|
|
95
|
+
import { runInsight } from './commands/insight.js';
|
|
96
|
+
import { ensureAmbientActivation } from './ambient-activation.js';
|
|
93
97
|
import { CLI_VERSION } from './version.js';
|
|
94
98
|
import { maybeShowOnboarding } from './onboarding.js';
|
|
95
99
|
const args = process.argv.slice(2);
|
|
@@ -112,18 +116,34 @@ export function parseArgs(argv) {
|
|
|
112
116
|
}
|
|
113
117
|
return result;
|
|
114
118
|
}
|
|
119
|
+
function extractPositionals(argv) {
|
|
120
|
+
const positional = [];
|
|
121
|
+
for (let index = 0; index < argv.length; index += 1) {
|
|
122
|
+
const arg = argv[index];
|
|
123
|
+
if (!arg.startsWith('--')) {
|
|
124
|
+
positional.push(arg);
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
const next = argv[index + 1];
|
|
128
|
+
if (next !== undefined && !next.startsWith('--')) {
|
|
129
|
+
index += 1;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return positional;
|
|
133
|
+
}
|
|
115
134
|
// Known flags per command for unknown flag warnings (Fix 2.3)
|
|
116
135
|
const KNOWN_FLAGS = {
|
|
117
|
-
|
|
136
|
+
scan: new Set(['full-policy', 'help']),
|
|
137
|
+
context: new Set(['bundle', 'from', 'to', 'output', 'json', 'explain', 'task', 'expansion-level', 'force', 'agent', 'surface', 'verbosity', 'expand', 'strict', 'help', 'session']),
|
|
118
138
|
ledger: new Set(['intent', 'limit', 'max']),
|
|
119
139
|
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']),
|
|
120
|
-
bundle: new Set(['task', 'json', 'scope', 'near-misses', 'blast-radius', 'explain', 'expand', 'layer-order', 'budget', 'max-files']),
|
|
140
|
+
bundle: new Set(['task', 'json', 'scope', 'near-misses', 'blast-radius', 'explain', 'expand', 'layer-order', 'budget', 'max-files', 'session']),
|
|
121
141
|
refine: new Set(['learned', 'drop', 'add-keywords', 'budget', 'max-files', 'session']),
|
|
122
142
|
'session-summary': new Set(['session', 'quiet', 'final']),
|
|
123
143
|
'session-progress': new Set(['session', 'quiet']),
|
|
124
144
|
checkpoint: new Set(['session', 'quiet', 'id']),
|
|
125
145
|
intent: new Set(['objective', 'deliverable', 'scope-in', 'scope-out', 'constraint', 'accept', 'risk', 'paths', 'session', 'as-baseline', 'task', 'json']),
|
|
126
|
-
manifest: new Set(['task', 'out', 'artifacts-dir']),
|
|
146
|
+
manifest: new Set(['task', 'out', 'artifacts-dir', 'session']),
|
|
127
147
|
'sign-manifest': new Set(['in', 'out']),
|
|
128
148
|
policy: new Set(['print', 'policy-root', 'scope', 'file', 'base', 'target', 'files', 'json', 'help']),
|
|
129
149
|
'apply-policy': new Set(['help']),
|
|
@@ -132,15 +152,18 @@ const KNOWN_FLAGS = {
|
|
|
132
152
|
codex: new Set(['task', 'mode', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'agent-bin', 'dry-run', 'session']),
|
|
133
153
|
claude: new Set(['task', 'mode', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'agent-bin', 'dry-run', 'session']),
|
|
134
154
|
'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']),
|
|
135
|
-
preflight: new Set(['task', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain']),
|
|
155
|
+
preflight: new Set(['task', 'stale-after', 'budget', 'max-files', 'scope', 'near-misses', 'blast-radius', 'expand', 'layer-order', 'explain', 'session']),
|
|
136
156
|
runs: new Set(['limit']),
|
|
137
|
-
verify: new Set(['task', 'policy-root', 'artifacts-dir', 'coverage-attestation', 'explain', 'json', 'debug-review', 'invariant', 'update-baseline', 'show-triaged', 'baseline-path']),
|
|
157
|
+
verify: new Set(['task', 'policy-root', 'artifacts-dir', 'coverage-attestation', 'explain', 'json', 'debug-review', 'invariant', 'update-baseline', 'show-triaged', 'baseline-path', 'session']),
|
|
138
158
|
init: new Set(['force']),
|
|
139
|
-
memory: new Set(['task', 'terms', 'anchors', 'force']),
|
|
159
|
+
memory: new Set(['task', 'terms', 'anchors', 'paths', 'force', 'json', 'id', 'dry-run', 'session']),
|
|
140
160
|
broker: new Set(['task', 'target', 'finding', 'json', 'list', 'scope', 'session', 'limit']),
|
|
141
|
-
guardrails: new Set(['task', 'json']),
|
|
142
|
-
lessons: new Set(['task', 'files', 'concepts', 'id', 'json', 'title', 'summary', 'category', 'severity', 'trigger-files', 'trigger-task', 'trigger-content', 'rationale']),
|
|
161
|
+
guardrails: new Set(['task', 'json', 'session']),
|
|
162
|
+
lessons: new Set(['task', 'files', 'concepts', 'id', 'json', 'title', 'summary', 'category', 'severity', 'trigger-files', 'trigger-task', 'trigger-content', 'rationale', 'session']),
|
|
143
163
|
'release-check': new Set(['strict', 'json', 'why']),
|
|
164
|
+
discover: new Set(['task', 'json', 'session']),
|
|
165
|
+
'discover-check': new Set(['task', 'json', 'strict', 'session']),
|
|
166
|
+
'discover-gate': new Set(['task', 'json', 'session']),
|
|
144
167
|
'review-coverage': new Set(['session']),
|
|
145
168
|
'review-gate': new Set(['session']),
|
|
146
169
|
'progress-check': new Set(['session']),
|
|
@@ -151,14 +174,24 @@ const KNOWN_FLAGS = {
|
|
|
151
174
|
harvest: new Set(['apply', 'preview', 'json', 'verify-integrity']),
|
|
152
175
|
'context-handoff': new Set(['target', 'json', 'verify-integrity']),
|
|
153
176
|
'complete-check': new Set(['task', 'summary', 'task-type', 'claims-json', 'claim', 'evidence', 'omit', 'json', 'explain', 'session']),
|
|
154
|
-
'audit': new Set(['task', 'summary', 'task-type', 'profile', 'spec', 'json', 'explain']),
|
|
177
|
+
'audit': new Set(['task', 'summary', 'task-type', 'profile', 'spec', 'json', 'explain', 'session']),
|
|
178
|
+
'pre-pr': new Set(['json', 'task', 'skip-docs', 'skip-tests', 'session']),
|
|
179
|
+
claim: new Set(['task', 'actor', 'mode', 'ttl', 'json', 'force', 'session']),
|
|
180
|
+
leases: new Set(['active', 'stale', 'json']),
|
|
181
|
+
'preflight-edit': new Set(['json', 'strict', 'session', 'path']),
|
|
182
|
+
release: new Set(['session', 'claim', 'all', 'json']),
|
|
183
|
+
coordination: new Set(['json']),
|
|
155
184
|
snapshot: new Set(['json', 'verify-integrity']),
|
|
156
185
|
'time-travel': new Set(['to', 'json', 'verify-integrity']),
|
|
157
186
|
'reality-check': new Set(['json', 'verify-integrity']),
|
|
158
187
|
'compare-current': new Set(['session', 'scenario-out', 'run', 'guided', 'agentCmd', 'agentCmdWith', 'agentCmdWithout', 'repeats', 'force', 'useWorktree', 'keepWorktree', 'worktreeRoot', 'injection', 'guided-timeout', 'force-inline']),
|
|
159
188
|
daemon: new Set(['port', 'background', 'hot-days', 'snapshot-limit', 'snapshot-interval']),
|
|
160
|
-
|
|
161
|
-
|
|
189
|
+
serve: new Set(['port', 'host']),
|
|
190
|
+
insight: new Set(['port', 'host', 'no-open', 'scenario', 'days', 'seed', 'start-date', 'reset', 'background']),
|
|
191
|
+
provenance: new Set(['task', 'json', 'raw']),
|
|
192
|
+
'audit-export': new Set(['format', 'output', 'table', 'raw']),
|
|
193
|
+
ci: new Set(['task', 'json', 'mode', 'base', 'comment-file', 'github-output', 'session']),
|
|
194
|
+
replay: new Set(['task', 'json', 'session']),
|
|
162
195
|
};
|
|
163
196
|
function warnUnknownFlags(command, flags) {
|
|
164
197
|
const known = KNOWN_FLAGS[command];
|
|
@@ -169,6 +202,10 @@ function warnUnknownFlags(command, flags) {
|
|
|
169
202
|
continue; // internal subcommand routing
|
|
170
203
|
if (key === '_arg')
|
|
171
204
|
continue; // internal positional argument
|
|
205
|
+
if (key === '_paths')
|
|
206
|
+
continue; // internal positional path capture
|
|
207
|
+
if (key.startsWith('_ambient_'))
|
|
208
|
+
continue; // internal ambient activation metadata
|
|
172
209
|
if (!known.has(key)) {
|
|
173
210
|
// Check for close matches (common typos: plural/singular)
|
|
174
211
|
let hint = '';
|
|
@@ -184,6 +221,7 @@ async function main() {
|
|
|
184
221
|
// Show onboarding on first run or explicit help (never blocks)
|
|
185
222
|
const topFlags = parseArgs(args.slice(1));
|
|
186
223
|
maybeShowOnboarding({ command, cwd: process.cwd(), flags: topFlags });
|
|
224
|
+
const ambientActivation = await ensureAmbientActivation(process.cwd(), command, args.slice(1));
|
|
187
225
|
switch (command) {
|
|
188
226
|
case 'init': {
|
|
189
227
|
const initFlags = parseArgs(args.slice(1));
|
|
@@ -191,17 +229,22 @@ async function main() {
|
|
|
191
229
|
await runInit(process.cwd(), initFlags);
|
|
192
230
|
break;
|
|
193
231
|
}
|
|
194
|
-
case 'scan':
|
|
195
|
-
|
|
232
|
+
case 'scan': {
|
|
233
|
+
const scanFlags = parseArgs(args.slice(1));
|
|
234
|
+
warnUnknownFlags('scan', scanFlags);
|
|
235
|
+
await runScan(process.cwd(), scanFlags);
|
|
196
236
|
break;
|
|
237
|
+
}
|
|
197
238
|
case 'bundle': {
|
|
198
239
|
const flags = parseArgs(args.slice(1));
|
|
240
|
+
applyAmbientActivationFlags(flags, ambientActivation);
|
|
199
241
|
warnUnknownFlags('bundle', flags);
|
|
200
242
|
await runBundle(process.cwd(), flags);
|
|
201
243
|
break;
|
|
202
244
|
}
|
|
203
245
|
case 'task': {
|
|
204
246
|
const taskFlags = parseArgs(args.slice(1));
|
|
247
|
+
applyAmbientActivationFlags(taskFlags, ambientActivation);
|
|
205
248
|
if (!taskFlags['task']) {
|
|
206
249
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
207
250
|
if (positional.length > 0) {
|
|
@@ -214,6 +257,7 @@ async function main() {
|
|
|
214
257
|
}
|
|
215
258
|
case 'codex': {
|
|
216
259
|
const codexFlags = parseArgs(args.slice(1));
|
|
260
|
+
applyAmbientActivationFlags(codexFlags, ambientActivation);
|
|
217
261
|
if (!codexFlags['task']) {
|
|
218
262
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
219
263
|
if (positional.length > 0) {
|
|
@@ -226,6 +270,7 @@ async function main() {
|
|
|
226
270
|
}
|
|
227
271
|
case 'claude': {
|
|
228
272
|
const claudeFlags = parseArgs(args.slice(1));
|
|
273
|
+
applyAmbientActivationFlags(claudeFlags, ambientActivation);
|
|
229
274
|
if (!claudeFlags['task']) {
|
|
230
275
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
231
276
|
if (positional.length > 0) {
|
|
@@ -238,6 +283,7 @@ async function main() {
|
|
|
238
283
|
}
|
|
239
284
|
case 'preflight': {
|
|
240
285
|
const preflightFlags = parseArgs(args.slice(1));
|
|
286
|
+
applyAmbientActivationFlags(preflightFlags, ambientActivation);
|
|
241
287
|
if (!preflightFlags['task']) {
|
|
242
288
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
243
289
|
if (positional.length > 0) {
|
|
@@ -256,6 +302,7 @@ async function main() {
|
|
|
256
302
|
}
|
|
257
303
|
case 'activate': {
|
|
258
304
|
const activateFlags = parseArgs(args.slice(1));
|
|
305
|
+
applyAmbientActivationFlags(activateFlags, ambientActivation);
|
|
259
306
|
warnUnknownFlags('activate', activateFlags);
|
|
260
307
|
await runActivate(process.cwd(), activateFlags);
|
|
261
308
|
break;
|
|
@@ -387,6 +434,7 @@ async function main() {
|
|
|
387
434
|
}
|
|
388
435
|
case 'manifest': {
|
|
389
436
|
const manifestFlags = parseArgs(args.slice(1));
|
|
437
|
+
applyAmbientActivationFlags(manifestFlags, ambientActivation);
|
|
390
438
|
warnUnknownFlags('manifest', manifestFlags);
|
|
391
439
|
await runManifest(process.cwd(), manifestFlags);
|
|
392
440
|
break;
|
|
@@ -399,6 +447,7 @@ async function main() {
|
|
|
399
447
|
}
|
|
400
448
|
case 'verify': {
|
|
401
449
|
const verifyFlags = parseArgs(args.slice(1));
|
|
450
|
+
applyAmbientActivationFlags(verifyFlags, ambientActivation);
|
|
402
451
|
warnUnknownFlags('verify', verifyFlags);
|
|
403
452
|
await runVerify(process.cwd(), verifyFlags);
|
|
404
453
|
break;
|
|
@@ -477,6 +526,7 @@ async function main() {
|
|
|
477
526
|
}
|
|
478
527
|
case 'memory': {
|
|
479
528
|
const memoryFlags = parseArgs(args.slice(2));
|
|
529
|
+
applyAmbientActivationFlags(memoryFlags, ambientActivation);
|
|
480
530
|
memoryFlags['_sub'] = args[1] ?? 'help';
|
|
481
531
|
warnUnknownFlags('memory', memoryFlags);
|
|
482
532
|
await runMemory(process.cwd(), memoryFlags);
|
|
@@ -484,6 +534,7 @@ async function main() {
|
|
|
484
534
|
}
|
|
485
535
|
case 'broker': {
|
|
486
536
|
const brokerFlags = parseArgs(args.slice(2));
|
|
537
|
+
applyAmbientActivationFlags(brokerFlags, ambientActivation);
|
|
487
538
|
brokerFlags['_sub'] = args[1] ?? 'help';
|
|
488
539
|
warnUnknownFlags('broker', brokerFlags);
|
|
489
540
|
await runBroker(process.cwd(), brokerFlags);
|
|
@@ -491,6 +542,7 @@ async function main() {
|
|
|
491
542
|
}
|
|
492
543
|
case 'guardrails': {
|
|
493
544
|
const guardrailsFlags = parseArgs(args.slice(2));
|
|
545
|
+
applyAmbientActivationFlags(guardrailsFlags, ambientActivation);
|
|
494
546
|
guardrailsFlags['_sub'] = args[1] ?? 'help';
|
|
495
547
|
warnUnknownFlags('guardrails', guardrailsFlags);
|
|
496
548
|
await runGuardrailsCmd(process.cwd(), guardrailsFlags);
|
|
@@ -498,6 +550,7 @@ async function main() {
|
|
|
498
550
|
}
|
|
499
551
|
case 'lessons': {
|
|
500
552
|
const lessonsFlags = parseArgs(args.slice(2));
|
|
553
|
+
applyAmbientActivationFlags(lessonsFlags, ambientActivation);
|
|
501
554
|
lessonsFlags['_sub'] = args[1] ?? 'help';
|
|
502
555
|
warnUnknownFlags('lessons', lessonsFlags);
|
|
503
556
|
await runLessons(process.cwd(), lessonsFlags);
|
|
@@ -511,12 +564,14 @@ async function main() {
|
|
|
511
564
|
}
|
|
512
565
|
case 'context': {
|
|
513
566
|
const ctxFlags = parseArgs(args.slice(2));
|
|
567
|
+
applyAmbientActivationFlags(ctxFlags, ambientActivation);
|
|
514
568
|
ctxFlags['_sub'] = args[1] ?? 'help';
|
|
515
569
|
// For `context --task "..."` (no subcommand), treat as 'task' subcommand
|
|
516
570
|
if (args[1] && args[1].startsWith('--')) {
|
|
517
571
|
ctxFlags['_sub'] = 'task';
|
|
518
572
|
const reparsed = parseArgs(args.slice(1));
|
|
519
573
|
Object.assign(ctxFlags, reparsed);
|
|
574
|
+
applyAmbientActivationFlags(ctxFlags, ambientActivation);
|
|
520
575
|
}
|
|
521
576
|
warnUnknownFlags('context', ctxFlags);
|
|
522
577
|
await runContext(process.cwd(), ctxFlags);
|
|
@@ -529,16 +584,55 @@ async function main() {
|
|
|
529
584
|
}
|
|
530
585
|
case 'complete-check': {
|
|
531
586
|
const ccFlags = parseArgs(args.slice(1));
|
|
587
|
+
applyAmbientActivationFlags(ccFlags, ambientActivation);
|
|
532
588
|
warnUnknownFlags('complete-check', ccFlags);
|
|
533
589
|
await runCompleteCheck(process.cwd(), ccFlags, args.slice(1));
|
|
534
590
|
break;
|
|
535
591
|
}
|
|
536
592
|
case 'audit': {
|
|
537
593
|
const auditFlags = parseArgs(args.slice(1));
|
|
594
|
+
applyAmbientActivationFlags(auditFlags, ambientActivation);
|
|
538
595
|
warnUnknownFlags('audit', auditFlags);
|
|
539
596
|
await runAudit(process.cwd(), auditFlags, args.slice(1));
|
|
540
597
|
break;
|
|
541
598
|
}
|
|
599
|
+
case 'claim': {
|
|
600
|
+
const claimFlags = parseArgs(args.slice(1));
|
|
601
|
+
const claimPaths = extractPositionals(args.slice(1));
|
|
602
|
+
if (claimPaths.length > 0) {
|
|
603
|
+
claimFlags['_paths'] = claimPaths.join('\n');
|
|
604
|
+
}
|
|
605
|
+
warnUnknownFlags('claim', claimFlags);
|
|
606
|
+
await runClaim(process.cwd(), claimFlags);
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
|
+
case 'leases': {
|
|
610
|
+
const leasesFlags = parseArgs(args.slice(1));
|
|
611
|
+
warnUnknownFlags('leases', leasesFlags);
|
|
612
|
+
await runLeases(process.cwd(), leasesFlags);
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
case 'preflight-edit': {
|
|
616
|
+
const peFlags = parseArgs(args.slice(1));
|
|
617
|
+
const firstPositional = extractPositionals(args.slice(1))[0];
|
|
618
|
+
if (firstPositional)
|
|
619
|
+
peFlags['_arg'] = firstPositional;
|
|
620
|
+
warnUnknownFlags('preflight-edit', peFlags);
|
|
621
|
+
await runPreflightEdit(process.cwd(), peFlags);
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
case 'release': {
|
|
625
|
+
const releaseFlags = parseArgs(args.slice(1));
|
|
626
|
+
warnUnknownFlags('release', releaseFlags);
|
|
627
|
+
await runRelease(process.cwd(), releaseFlags);
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
case 'coordination': {
|
|
631
|
+
const coordinationFlags = parseArgs(args.slice(1));
|
|
632
|
+
warnUnknownFlags('coordination', coordinationFlags);
|
|
633
|
+
await runCoordination(process.cwd(), coordinationFlags);
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
542
636
|
case 'dashboard': {
|
|
543
637
|
const dashFlags = parseArgs(args.slice(1));
|
|
544
638
|
await runDashboard(process.cwd(), dashFlags);
|
|
@@ -546,16 +640,22 @@ async function main() {
|
|
|
546
640
|
}
|
|
547
641
|
case 'discover': {
|
|
548
642
|
const discoverFlags = parseArgs(args.slice(1));
|
|
643
|
+
applyAmbientActivationFlags(discoverFlags, ambientActivation);
|
|
644
|
+
warnUnknownFlags('discover', discoverFlags);
|
|
549
645
|
await runDiscover(process.cwd(), discoverFlags);
|
|
550
646
|
break;
|
|
551
647
|
}
|
|
552
648
|
case 'discover-check': {
|
|
553
649
|
const dcFlags = parseArgs(args.slice(1));
|
|
650
|
+
applyAmbientActivationFlags(dcFlags, ambientActivation);
|
|
651
|
+
warnUnknownFlags('discover-check', dcFlags);
|
|
554
652
|
await runDiscoverCheck(process.cwd(), dcFlags);
|
|
555
653
|
break;
|
|
556
654
|
}
|
|
557
655
|
case 'discover-gate': {
|
|
558
656
|
const dgFlags = parseArgs(args.slice(1));
|
|
657
|
+
applyAmbientActivationFlags(dgFlags, ambientActivation);
|
|
658
|
+
warnUnknownFlags('discover-gate', dgFlags);
|
|
559
659
|
await runDiscoverGate(process.cwd(), dgFlags);
|
|
560
660
|
break;
|
|
561
661
|
}
|
|
@@ -585,6 +685,13 @@ async function main() {
|
|
|
585
685
|
await runServe(process.cwd(), serveFlags);
|
|
586
686
|
break;
|
|
587
687
|
}
|
|
688
|
+
case 'insight': {
|
|
689
|
+
const insightFlags = parseArgs(args.slice(2));
|
|
690
|
+
insightFlags['_sub'] = args[1] ?? 'serve';
|
|
691
|
+
warnUnknownFlags('insight', insightFlags);
|
|
692
|
+
await runInsight(process.cwd(), insightFlags);
|
|
693
|
+
break;
|
|
694
|
+
}
|
|
588
695
|
case 'audit-export': {
|
|
589
696
|
if (!requireTier(process.cwd(), 'enterprise', 'audit-export'))
|
|
590
697
|
break;
|
|
@@ -604,6 +711,7 @@ async function main() {
|
|
|
604
711
|
}
|
|
605
712
|
case 'pre-pr': {
|
|
606
713
|
const prePrFlags = parseArgs(args.slice(1));
|
|
714
|
+
applyAmbientActivationFlags(prePrFlags, ambientActivation);
|
|
607
715
|
warnUnknownFlags('pre-pr', prePrFlags);
|
|
608
716
|
await runPrePRCmd(process.cwd(), prePrFlags);
|
|
609
717
|
break;
|
|
@@ -663,7 +771,9 @@ async function main() {
|
|
|
663
771
|
}
|
|
664
772
|
case 'ci': {
|
|
665
773
|
const ciFlags = parseArgs(args.slice(2));
|
|
774
|
+
applyAmbientActivationFlags(ciFlags, ambientActivation);
|
|
666
775
|
ciFlags['_sub'] = args[1] ?? 'check';
|
|
776
|
+
warnUnknownFlags('ci', ciFlags);
|
|
667
777
|
await runCi(process.cwd(), ciFlags);
|
|
668
778
|
break;
|
|
669
779
|
}
|
|
@@ -695,6 +805,8 @@ async function main() {
|
|
|
695
805
|
}
|
|
696
806
|
case 'replay': {
|
|
697
807
|
const replayFlags = parseArgs(args.slice(1));
|
|
808
|
+
applyAmbientActivationFlags(replayFlags, ambientActivation);
|
|
809
|
+
warnUnknownFlags('replay', replayFlags);
|
|
698
810
|
await runReplay(process.cwd(), replayFlags);
|
|
699
811
|
break;
|
|
700
812
|
}
|
|
@@ -778,6 +890,9 @@ async function main() {
|
|
|
778
890
|
case '-v':
|
|
779
891
|
console.log(`codeledger v${CLI_VERSION}`);
|
|
780
892
|
break;
|
|
893
|
+
case 'about':
|
|
894
|
+
await runAbout();
|
|
895
|
+
break;
|
|
781
896
|
case 'help':
|
|
782
897
|
case '--help':
|
|
783
898
|
case '-h':
|
|
@@ -790,6 +905,16 @@ async function main() {
|
|
|
790
905
|
process.exit(1);
|
|
791
906
|
}
|
|
792
907
|
}
|
|
908
|
+
function applyAmbientActivationFlags(flags, ambient) {
|
|
909
|
+
flags['_ambient_activation_action'] = ambient.action;
|
|
910
|
+
flags['_ambient_activation_reason'] = ambient.reason;
|
|
911
|
+
if (ambient.effectiveTask)
|
|
912
|
+
flags['_ambient_effective_task'] = ambient.effectiveTask;
|
|
913
|
+
flags['_ambient_task_source'] = ambient.taskSource;
|
|
914
|
+
flags['_ambient_dedupe_state'] = ambient.dedupeState;
|
|
915
|
+
if (ambient.session)
|
|
916
|
+
flags['_ambient_session'] = ambient.session;
|
|
917
|
+
}
|
|
793
918
|
function printHelp() {
|
|
794
919
|
console.log(`
|
|
795
920
|
CodeLedger Blackbox v${CLI_VERSION} — Deterministic, Bounded Context Selection for AI Coding Agents
|
|
@@ -797,13 +922,14 @@ CodeLedger Blackbox v${CLI_VERSION} — Deterministic, Bounded Context Selection
|
|
|
797
922
|
Usage: codeledger <command> [options]
|
|
798
923
|
|
|
799
924
|
Commands:
|
|
925
|
+
about Learn how CodeLedger extends into the broader ContextECF platform
|
|
800
926
|
init [--force] Initialize .codeledger/ in the current repo
|
|
801
|
-
scan
|
|
927
|
+
scan [--full-policy] Build the repo index, summarize repo risk, and write the recommended policy
|
|
802
928
|
bundle --task "..." Generate a deterministic context bundle [--json] [--scope "..."]
|
|
803
929
|
[--near-misses] [--blast-radius] [--explain]
|
|
804
930
|
[--expand] [--layer-order]
|
|
805
931
|
task --task "..." Ambient task runtime: scan-if-stale + bundle + preflight + agent
|
|
806
|
-
[--agent codex|claude|cursor|windsurf|antigravity|generic]
|
|
932
|
+
[--agent codex|claude|cursor|windsurf|antigravity|generic|copilot]
|
|
807
933
|
[--mode observe|warn|block] [--agent-bin <cmd>] [--dry-run]
|
|
808
934
|
[--session <id>] writes session-aware active bundles and registry state
|
|
809
935
|
windsurf prepares artifacts only; it does not launch the app
|
|
@@ -811,7 +937,7 @@ Commands:
|
|
|
811
937
|
claude --task "..." Shorthand for: codeledger task --agent claude
|
|
812
938
|
preflight "..." Scan-if-stale + bundle + preflight summary (no agent launch)
|
|
813
939
|
runs Show recent ambient runtime runs [--limit N]
|
|
814
|
-
activate [--task ".."]
|
|
940
|
+
activate [--task ".."] Explicit/manual activation fallback: scan-if-stale + bundle + write active-bundle.md
|
|
815
941
|
[--scope "p1,p2"] [--branch-aware] [--continue]
|
|
816
942
|
[--near-misses] [--blast-radius] [--expand] [--layer-order]
|
|
817
943
|
[--explain] [--mode edit|review] [--coverage-threshold 0.90]
|
|
@@ -839,6 +965,17 @@ Commands:
|
|
|
839
965
|
[--session <id>] [--id <checkpoint-id>]
|
|
840
966
|
shared-summary Cross-session summary (all active agents, overlaps, hotspots)
|
|
841
967
|
[--all] (include stopped sessions)
|
|
968
|
+
claim <paths...> Claim files or directories before editing
|
|
969
|
+
[--task "..."] [--actor <id>] [--mode exclusive|shared]
|
|
970
|
+
[--ttl <seconds>] [--force] [--json]
|
|
971
|
+
leases Show active or stale coordination leases
|
|
972
|
+
[--active] [--stale] [--json]
|
|
973
|
+
preflight-edit <path> Check whether an edit path is safe before you change it
|
|
974
|
+
[--strict] [--json]
|
|
975
|
+
release Release coordination leases
|
|
976
|
+
[--session <id> | --claim <id> | --all] [--json]
|
|
977
|
+
coordination Coordination summary for active sessions, overlaps, and surfaces
|
|
978
|
+
[--json]
|
|
842
979
|
manifest --task "..." Generate deterministic context manifest (evidence payload)
|
|
843
980
|
[--out <path>] [--artifacts-dir <dir>]
|
|
844
981
|
sign-manifest Sign a manifest with HMAC-SHA256 (tamper evidence)
|
|
@@ -862,7 +999,11 @@ Commands:
|
|
|
862
999
|
GitHub workflows post/update a PR comment with the result
|
|
863
1000
|
ci pr-check PR/CI bounded-scope check with JSON and PR comment output
|
|
864
1001
|
[--json] [--mode observe|warn|block] [--base <branch>]
|
|
1002
|
+
insight serve Start the manager-facing Insight dashboard and API
|
|
1003
|
+
[--port 7600] [--host 127.0.0.1] [--no-open]
|
|
865
1004
|
[--comment-file <path>] [--github-output <path>]
|
|
1005
|
+
insight seed Seed a synthetic Insight scenario
|
|
1006
|
+
--scenario <id> [--days N] [--seed N] [--start-date YYYY-MM-DD] [--reset]
|
|
866
1007
|
intent [init|show|set|ack|check]
|
|
867
1008
|
Intent governance (deterministic drift detection) + ISC
|
|
868
1009
|
init: --objective "..." [--constraint "..."] [--scope-in "..."]
|
|
@@ -948,13 +1089,16 @@ Architecture Intervention:
|
|
|
948
1089
|
Aggregates signals from drift, review intelligence,
|
|
949
1090
|
discovery, layer-d, and policy into actionable fixes.
|
|
950
1091
|
|
|
951
|
-
Compliance / Audit:
|
|
1092
|
+
Compliance / Audit:
|
|
952
1093
|
audit-export Export ledger data to JSON, CSV, or JSON Lines (SIEM)
|
|
953
1094
|
[--format json|csv|jsonl] (default: json)
|
|
954
1095
|
[--output <path>] Write to file instead of stdout
|
|
955
1096
|
[--table runs|events|bundles|coverage] Single table only
|
|
1097
|
+
Default output is sanitized; add [--raw] for privileged raw export
|
|
1098
|
+
provenance Trace or export provenance data
|
|
1099
|
+
JSON output is sanitized by default; add [--raw] for privileged local access
|
|
956
1100
|
|
|
957
|
-
API Server:
|
|
1101
|
+
API Server:
|
|
958
1102
|
serve Start lightweight HTTP API server
|
|
959
1103
|
[--port 7400] (default: 7400)
|
|
960
1104
|
Endpoints: /health, /verify, /bundle, /drift, /outcome,
|
|
@@ -987,10 +1131,11 @@ Cowork (Knowledge Mode):
|
|
|
987
1131
|
[--workspace .]
|
|
988
1132
|
|
|
989
1133
|
Memory:
|
|
990
|
-
memory [init|recent|validation|ontology|structure|evidence|preamble]
|
|
1134
|
+
memory [init|recent|validation|ontology|structure|evidence|preamble|status|explain|compact|prune|inject]
|
|
991
1135
|
Inspect and manage the CodeLedger memory system
|
|
992
1136
|
init: [--force] Seed default ledgers (evidence gates + ontology)
|
|
993
1137
|
preamble: [--task "..."] [--terms "a,b"] [--anchors "x,y"]
|
|
1138
|
+
inject: --task "..." [--paths "a,b"] [--json]
|
|
994
1139
|
|
|
995
1140
|
Lessons:
|
|
996
1141
|
lessons [list|relevant|verify|deprecate]
|