@codeledger/cli 0.8.8 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +2 -9
- package/dist/command-activation.d.ts.map +1 -1
- package/dist/command-activation.js +1 -104
- package/dist/command-activation.js.map +1 -1
- 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 +162 -30
- 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,7 +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';
|
|
93
|
-
import {
|
|
94
|
+
import { runAbout } from './commands/about.js';
|
|
95
|
+
import { runInsight } from './commands/insight.js';
|
|
96
|
+
import { ensureAmbientActivation } from './ambient-activation.js';
|
|
94
97
|
import { CLI_VERSION } from './version.js';
|
|
95
98
|
import { maybeShowOnboarding } from './onboarding.js';
|
|
96
99
|
const args = process.argv.slice(2);
|
|
@@ -113,18 +116,34 @@ export function parseArgs(argv) {
|
|
|
113
116
|
}
|
|
114
117
|
return result;
|
|
115
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
|
+
}
|
|
116
134
|
// Known flags per command for unknown flag warnings (Fix 2.3)
|
|
117
135
|
const KNOWN_FLAGS = {
|
|
136
|
+
scan: new Set(['full-policy', 'help']),
|
|
118
137
|
context: new Set(['bundle', 'from', 'to', 'output', 'json', 'explain', 'task', 'expansion-level', 'force', 'agent', 'surface', 'verbosity', 'expand', 'strict', 'help', 'session']),
|
|
119
138
|
ledger: new Set(['intent', 'limit', 'max']),
|
|
120
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']),
|
|
121
|
-
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']),
|
|
122
141
|
refine: new Set(['learned', 'drop', 'add-keywords', 'budget', 'max-files', 'session']),
|
|
123
142
|
'session-summary': new Set(['session', 'quiet', 'final']),
|
|
124
143
|
'session-progress': new Set(['session', 'quiet']),
|
|
125
144
|
checkpoint: new Set(['session', 'quiet', 'id']),
|
|
126
145
|
intent: new Set(['objective', 'deliverable', 'scope-in', 'scope-out', 'constraint', 'accept', 'risk', 'paths', 'session', 'as-baseline', 'task', 'json']),
|
|
127
|
-
manifest: new Set(['task', 'out', 'artifacts-dir']),
|
|
146
|
+
manifest: new Set(['task', 'out', 'artifacts-dir', 'session']),
|
|
128
147
|
'sign-manifest': new Set(['in', 'out']),
|
|
129
148
|
policy: new Set(['print', 'policy-root', 'scope', 'file', 'base', 'target', 'files', 'json', 'help']),
|
|
130
149
|
'apply-policy': new Set(['help']),
|
|
@@ -133,15 +152,18 @@ const KNOWN_FLAGS = {
|
|
|
133
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']),
|
|
134
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']),
|
|
135
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']),
|
|
136
|
-
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']),
|
|
137
156
|
runs: new Set(['limit']),
|
|
138
|
-
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']),
|
|
139
158
|
init: new Set(['force']),
|
|
140
|
-
memory: new Set(['task', 'terms', 'anchors', 'force']),
|
|
159
|
+
memory: new Set(['task', 'terms', 'anchors', 'paths', 'force', 'json', 'id', 'dry-run', 'session']),
|
|
141
160
|
broker: new Set(['task', 'target', 'finding', 'json', 'list', 'scope', 'session', 'limit']),
|
|
142
|
-
guardrails: new Set(['task', 'json']),
|
|
143
|
-
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']),
|
|
144
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']),
|
|
145
167
|
'review-coverage': new Set(['session']),
|
|
146
168
|
'review-gate': new Set(['session']),
|
|
147
169
|
'progress-check': new Set(['session']),
|
|
@@ -152,14 +174,24 @@ const KNOWN_FLAGS = {
|
|
|
152
174
|
harvest: new Set(['apply', 'preview', 'json', 'verify-integrity']),
|
|
153
175
|
'context-handoff': new Set(['target', 'json', 'verify-integrity']),
|
|
154
176
|
'complete-check': new Set(['task', 'summary', 'task-type', 'claims-json', 'claim', 'evidence', 'omit', 'json', 'explain', 'session']),
|
|
155
|
-
'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']),
|
|
156
184
|
snapshot: new Set(['json', 'verify-integrity']),
|
|
157
185
|
'time-travel': new Set(['to', 'json', 'verify-integrity']),
|
|
158
186
|
'reality-check': new Set(['json', 'verify-integrity']),
|
|
159
187
|
'compare-current': new Set(['session', 'scenario-out', 'run', 'guided', 'agentCmd', 'agentCmdWith', 'agentCmdWithout', 'repeats', 'force', 'useWorktree', 'keepWorktree', 'worktreeRoot', 'injection', 'guided-timeout', 'force-inline']),
|
|
160
188
|
daemon: new Set(['port', 'background', 'hot-days', 'snapshot-limit', 'snapshot-interval']),
|
|
161
|
-
|
|
162
|
-
|
|
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']),
|
|
163
195
|
};
|
|
164
196
|
function warnUnknownFlags(command, flags) {
|
|
165
197
|
const known = KNOWN_FLAGS[command];
|
|
@@ -170,6 +202,10 @@ function warnUnknownFlags(command, flags) {
|
|
|
170
202
|
continue; // internal subcommand routing
|
|
171
203
|
if (key === '_arg')
|
|
172
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
|
|
173
209
|
if (!known.has(key)) {
|
|
174
210
|
// Check for close matches (common typos: plural/singular)
|
|
175
211
|
let hint = '';
|
|
@@ -185,7 +221,7 @@ async function main() {
|
|
|
185
221
|
// Show onboarding on first run or explicit help (never blocks)
|
|
186
222
|
const topFlags = parseArgs(args.slice(1));
|
|
187
223
|
maybeShowOnboarding({ command, cwd: process.cwd(), flags: topFlags });
|
|
188
|
-
await
|
|
224
|
+
const ambientActivation = await ensureAmbientActivation(process.cwd(), command, args.slice(1));
|
|
189
225
|
switch (command) {
|
|
190
226
|
case 'init': {
|
|
191
227
|
const initFlags = parseArgs(args.slice(1));
|
|
@@ -193,17 +229,22 @@ async function main() {
|
|
|
193
229
|
await runInit(process.cwd(), initFlags);
|
|
194
230
|
break;
|
|
195
231
|
}
|
|
196
|
-
case 'scan':
|
|
197
|
-
|
|
232
|
+
case 'scan': {
|
|
233
|
+
const scanFlags = parseArgs(args.slice(1));
|
|
234
|
+
warnUnknownFlags('scan', scanFlags);
|
|
235
|
+
await runScan(process.cwd(), scanFlags);
|
|
198
236
|
break;
|
|
237
|
+
}
|
|
199
238
|
case 'bundle': {
|
|
200
239
|
const flags = parseArgs(args.slice(1));
|
|
240
|
+
applyAmbientActivationFlags(flags, ambientActivation);
|
|
201
241
|
warnUnknownFlags('bundle', flags);
|
|
202
242
|
await runBundle(process.cwd(), flags);
|
|
203
243
|
break;
|
|
204
244
|
}
|
|
205
245
|
case 'task': {
|
|
206
246
|
const taskFlags = parseArgs(args.slice(1));
|
|
247
|
+
applyAmbientActivationFlags(taskFlags, ambientActivation);
|
|
207
248
|
if (!taskFlags['task']) {
|
|
208
249
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
209
250
|
if (positional.length > 0) {
|
|
@@ -216,6 +257,7 @@ async function main() {
|
|
|
216
257
|
}
|
|
217
258
|
case 'codex': {
|
|
218
259
|
const codexFlags = parseArgs(args.slice(1));
|
|
260
|
+
applyAmbientActivationFlags(codexFlags, ambientActivation);
|
|
219
261
|
if (!codexFlags['task']) {
|
|
220
262
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
221
263
|
if (positional.length > 0) {
|
|
@@ -228,6 +270,7 @@ async function main() {
|
|
|
228
270
|
}
|
|
229
271
|
case 'claude': {
|
|
230
272
|
const claudeFlags = parseArgs(args.slice(1));
|
|
273
|
+
applyAmbientActivationFlags(claudeFlags, ambientActivation);
|
|
231
274
|
if (!claudeFlags['task']) {
|
|
232
275
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
233
276
|
if (positional.length > 0) {
|
|
@@ -240,6 +283,7 @@ async function main() {
|
|
|
240
283
|
}
|
|
241
284
|
case 'preflight': {
|
|
242
285
|
const preflightFlags = parseArgs(args.slice(1));
|
|
286
|
+
applyAmbientActivationFlags(preflightFlags, ambientActivation);
|
|
243
287
|
if (!preflightFlags['task']) {
|
|
244
288
|
const positional = args.slice(1).filter((arg) => !arg.startsWith('--'));
|
|
245
289
|
if (positional.length > 0) {
|
|
@@ -258,6 +302,7 @@ async function main() {
|
|
|
258
302
|
}
|
|
259
303
|
case 'activate': {
|
|
260
304
|
const activateFlags = parseArgs(args.slice(1));
|
|
305
|
+
applyAmbientActivationFlags(activateFlags, ambientActivation);
|
|
261
306
|
warnUnknownFlags('activate', activateFlags);
|
|
262
307
|
await runActivate(process.cwd(), activateFlags);
|
|
263
308
|
break;
|
|
@@ -389,6 +434,7 @@ async function main() {
|
|
|
389
434
|
}
|
|
390
435
|
case 'manifest': {
|
|
391
436
|
const manifestFlags = parseArgs(args.slice(1));
|
|
437
|
+
applyAmbientActivationFlags(manifestFlags, ambientActivation);
|
|
392
438
|
warnUnknownFlags('manifest', manifestFlags);
|
|
393
439
|
await runManifest(process.cwd(), manifestFlags);
|
|
394
440
|
break;
|
|
@@ -401,6 +447,7 @@ async function main() {
|
|
|
401
447
|
}
|
|
402
448
|
case 'verify': {
|
|
403
449
|
const verifyFlags = parseArgs(args.slice(1));
|
|
450
|
+
applyAmbientActivationFlags(verifyFlags, ambientActivation);
|
|
404
451
|
warnUnknownFlags('verify', verifyFlags);
|
|
405
452
|
await runVerify(process.cwd(), verifyFlags);
|
|
406
453
|
break;
|
|
@@ -479,6 +526,7 @@ async function main() {
|
|
|
479
526
|
}
|
|
480
527
|
case 'memory': {
|
|
481
528
|
const memoryFlags = parseArgs(args.slice(2));
|
|
529
|
+
applyAmbientActivationFlags(memoryFlags, ambientActivation);
|
|
482
530
|
memoryFlags['_sub'] = args[1] ?? 'help';
|
|
483
531
|
warnUnknownFlags('memory', memoryFlags);
|
|
484
532
|
await runMemory(process.cwd(), memoryFlags);
|
|
@@ -486,6 +534,7 @@ async function main() {
|
|
|
486
534
|
}
|
|
487
535
|
case 'broker': {
|
|
488
536
|
const brokerFlags = parseArgs(args.slice(2));
|
|
537
|
+
applyAmbientActivationFlags(brokerFlags, ambientActivation);
|
|
489
538
|
brokerFlags['_sub'] = args[1] ?? 'help';
|
|
490
539
|
warnUnknownFlags('broker', brokerFlags);
|
|
491
540
|
await runBroker(process.cwd(), brokerFlags);
|
|
@@ -493,6 +542,7 @@ async function main() {
|
|
|
493
542
|
}
|
|
494
543
|
case 'guardrails': {
|
|
495
544
|
const guardrailsFlags = parseArgs(args.slice(2));
|
|
545
|
+
applyAmbientActivationFlags(guardrailsFlags, ambientActivation);
|
|
496
546
|
guardrailsFlags['_sub'] = args[1] ?? 'help';
|
|
497
547
|
warnUnknownFlags('guardrails', guardrailsFlags);
|
|
498
548
|
await runGuardrailsCmd(process.cwd(), guardrailsFlags);
|
|
@@ -500,6 +550,7 @@ async function main() {
|
|
|
500
550
|
}
|
|
501
551
|
case 'lessons': {
|
|
502
552
|
const lessonsFlags = parseArgs(args.slice(2));
|
|
553
|
+
applyAmbientActivationFlags(lessonsFlags, ambientActivation);
|
|
503
554
|
lessonsFlags['_sub'] = args[1] ?? 'help';
|
|
504
555
|
warnUnknownFlags('lessons', lessonsFlags);
|
|
505
556
|
await runLessons(process.cwd(), lessonsFlags);
|
|
@@ -513,12 +564,14 @@ async function main() {
|
|
|
513
564
|
}
|
|
514
565
|
case 'context': {
|
|
515
566
|
const ctxFlags = parseArgs(args.slice(2));
|
|
567
|
+
applyAmbientActivationFlags(ctxFlags, ambientActivation);
|
|
516
568
|
ctxFlags['_sub'] = args[1] ?? 'help';
|
|
517
569
|
// For `context --task "..."` (no subcommand), treat as 'task' subcommand
|
|
518
570
|
if (args[1] && args[1].startsWith('--')) {
|
|
519
571
|
ctxFlags['_sub'] = 'task';
|
|
520
572
|
const reparsed = parseArgs(args.slice(1));
|
|
521
573
|
Object.assign(ctxFlags, reparsed);
|
|
574
|
+
applyAmbientActivationFlags(ctxFlags, ambientActivation);
|
|
522
575
|
}
|
|
523
576
|
warnUnknownFlags('context', ctxFlags);
|
|
524
577
|
await runContext(process.cwd(), ctxFlags);
|
|
@@ -531,16 +584,55 @@ async function main() {
|
|
|
531
584
|
}
|
|
532
585
|
case 'complete-check': {
|
|
533
586
|
const ccFlags = parseArgs(args.slice(1));
|
|
587
|
+
applyAmbientActivationFlags(ccFlags, ambientActivation);
|
|
534
588
|
warnUnknownFlags('complete-check', ccFlags);
|
|
535
589
|
await runCompleteCheck(process.cwd(), ccFlags, args.slice(1));
|
|
536
590
|
break;
|
|
537
591
|
}
|
|
538
592
|
case 'audit': {
|
|
539
593
|
const auditFlags = parseArgs(args.slice(1));
|
|
594
|
+
applyAmbientActivationFlags(auditFlags, ambientActivation);
|
|
540
595
|
warnUnknownFlags('audit', auditFlags);
|
|
541
596
|
await runAudit(process.cwd(), auditFlags, args.slice(1));
|
|
542
597
|
break;
|
|
543
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
|
+
}
|
|
544
636
|
case 'dashboard': {
|
|
545
637
|
const dashFlags = parseArgs(args.slice(1));
|
|
546
638
|
await runDashboard(process.cwd(), dashFlags);
|
|
@@ -548,16 +640,22 @@ async function main() {
|
|
|
548
640
|
}
|
|
549
641
|
case 'discover': {
|
|
550
642
|
const discoverFlags = parseArgs(args.slice(1));
|
|
643
|
+
applyAmbientActivationFlags(discoverFlags, ambientActivation);
|
|
644
|
+
warnUnknownFlags('discover', discoverFlags);
|
|
551
645
|
await runDiscover(process.cwd(), discoverFlags);
|
|
552
646
|
break;
|
|
553
647
|
}
|
|
554
648
|
case 'discover-check': {
|
|
555
649
|
const dcFlags = parseArgs(args.slice(1));
|
|
650
|
+
applyAmbientActivationFlags(dcFlags, ambientActivation);
|
|
651
|
+
warnUnknownFlags('discover-check', dcFlags);
|
|
556
652
|
await runDiscoverCheck(process.cwd(), dcFlags);
|
|
557
653
|
break;
|
|
558
654
|
}
|
|
559
655
|
case 'discover-gate': {
|
|
560
656
|
const dgFlags = parseArgs(args.slice(1));
|
|
657
|
+
applyAmbientActivationFlags(dgFlags, ambientActivation);
|
|
658
|
+
warnUnknownFlags('discover-gate', dgFlags);
|
|
561
659
|
await runDiscoverGate(process.cwd(), dgFlags);
|
|
562
660
|
break;
|
|
563
661
|
}
|
|
@@ -587,6 +685,13 @@ async function main() {
|
|
|
587
685
|
await runServe(process.cwd(), serveFlags);
|
|
588
686
|
break;
|
|
589
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
|
+
}
|
|
590
695
|
case 'audit-export': {
|
|
591
696
|
if (!requireTier(process.cwd(), 'enterprise', 'audit-export'))
|
|
592
697
|
break;
|
|
@@ -606,6 +711,7 @@ async function main() {
|
|
|
606
711
|
}
|
|
607
712
|
case 'pre-pr': {
|
|
608
713
|
const prePrFlags = parseArgs(args.slice(1));
|
|
714
|
+
applyAmbientActivationFlags(prePrFlags, ambientActivation);
|
|
609
715
|
warnUnknownFlags('pre-pr', prePrFlags);
|
|
610
716
|
await runPrePRCmd(process.cwd(), prePrFlags);
|
|
611
717
|
break;
|
|
@@ -665,7 +771,9 @@ async function main() {
|
|
|
665
771
|
}
|
|
666
772
|
case 'ci': {
|
|
667
773
|
const ciFlags = parseArgs(args.slice(2));
|
|
774
|
+
applyAmbientActivationFlags(ciFlags, ambientActivation);
|
|
668
775
|
ciFlags['_sub'] = args[1] ?? 'check';
|
|
776
|
+
warnUnknownFlags('ci', ciFlags);
|
|
669
777
|
await runCi(process.cwd(), ciFlags);
|
|
670
778
|
break;
|
|
671
779
|
}
|
|
@@ -697,6 +805,8 @@ async function main() {
|
|
|
697
805
|
}
|
|
698
806
|
case 'replay': {
|
|
699
807
|
const replayFlags = parseArgs(args.slice(1));
|
|
808
|
+
applyAmbientActivationFlags(replayFlags, ambientActivation);
|
|
809
|
+
warnUnknownFlags('replay', replayFlags);
|
|
700
810
|
await runReplay(process.cwd(), replayFlags);
|
|
701
811
|
break;
|
|
702
812
|
}
|
|
@@ -780,6 +890,9 @@ async function main() {
|
|
|
780
890
|
case '-v':
|
|
781
891
|
console.log(`codeledger v${CLI_VERSION}`);
|
|
782
892
|
break;
|
|
893
|
+
case 'about':
|
|
894
|
+
await runAbout();
|
|
895
|
+
break;
|
|
783
896
|
case 'help':
|
|
784
897
|
case '--help':
|
|
785
898
|
case '-h':
|
|
@@ -792,16 +905,15 @@ async function main() {
|
|
|
792
905
|
process.exit(1);
|
|
793
906
|
}
|
|
794
907
|
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
});
|
|
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;
|
|
805
917
|
}
|
|
806
918
|
function printHelp() {
|
|
807
919
|
console.log(`
|
|
@@ -810,13 +922,14 @@ CodeLedger Blackbox v${CLI_VERSION} — Deterministic, Bounded Context Selection
|
|
|
810
922
|
Usage: codeledger <command> [options]
|
|
811
923
|
|
|
812
924
|
Commands:
|
|
925
|
+
about Learn how CodeLedger extends into the broader ContextECF platform
|
|
813
926
|
init [--force] Initialize .codeledger/ in the current repo
|
|
814
|
-
scan
|
|
927
|
+
scan [--full-policy] Build the repo index, summarize repo risk, and write the recommended policy
|
|
815
928
|
bundle --task "..." Generate a deterministic context bundle [--json] [--scope "..."]
|
|
816
929
|
[--near-misses] [--blast-radius] [--explain]
|
|
817
930
|
[--expand] [--layer-order]
|
|
818
931
|
task --task "..." Ambient task runtime: scan-if-stale + bundle + preflight + agent
|
|
819
|
-
[--agent codex|claude|cursor|windsurf|antigravity|generic]
|
|
932
|
+
[--agent codex|claude|cursor|windsurf|antigravity|generic|copilot]
|
|
820
933
|
[--mode observe|warn|block] [--agent-bin <cmd>] [--dry-run]
|
|
821
934
|
[--session <id>] writes session-aware active bundles and registry state
|
|
822
935
|
windsurf prepares artifacts only; it does not launch the app
|
|
@@ -824,7 +937,7 @@ Commands:
|
|
|
824
937
|
claude --task "..." Shorthand for: codeledger task --agent claude
|
|
825
938
|
preflight "..." Scan-if-stale + bundle + preflight summary (no agent launch)
|
|
826
939
|
runs Show recent ambient runtime runs [--limit N]
|
|
827
|
-
activate [--task ".."]
|
|
940
|
+
activate [--task ".."] Explicit/manual activation fallback: scan-if-stale + bundle + write active-bundle.md
|
|
828
941
|
[--scope "p1,p2"] [--branch-aware] [--continue]
|
|
829
942
|
[--near-misses] [--blast-radius] [--expand] [--layer-order]
|
|
830
943
|
[--explain] [--mode edit|review] [--coverage-threshold 0.90]
|
|
@@ -852,6 +965,17 @@ Commands:
|
|
|
852
965
|
[--session <id>] [--id <checkpoint-id>]
|
|
853
966
|
shared-summary Cross-session summary (all active agents, overlaps, hotspots)
|
|
854
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]
|
|
855
979
|
manifest --task "..." Generate deterministic context manifest (evidence payload)
|
|
856
980
|
[--out <path>] [--artifacts-dir <dir>]
|
|
857
981
|
sign-manifest Sign a manifest with HMAC-SHA256 (tamper evidence)
|
|
@@ -875,7 +999,11 @@ Commands:
|
|
|
875
999
|
GitHub workflows post/update a PR comment with the result
|
|
876
1000
|
ci pr-check PR/CI bounded-scope check with JSON and PR comment output
|
|
877
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]
|
|
878
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]
|
|
879
1007
|
intent [init|show|set|ack|check]
|
|
880
1008
|
Intent governance (deterministic drift detection) + ISC
|
|
881
1009
|
init: --objective "..." [--constraint "..."] [--scope-in "..."]
|
|
@@ -961,13 +1089,16 @@ Architecture Intervention:
|
|
|
961
1089
|
Aggregates signals from drift, review intelligence,
|
|
962
1090
|
discovery, layer-d, and policy into actionable fixes.
|
|
963
1091
|
|
|
964
|
-
Compliance / Audit:
|
|
1092
|
+
Compliance / Audit:
|
|
965
1093
|
audit-export Export ledger data to JSON, CSV, or JSON Lines (SIEM)
|
|
966
1094
|
[--format json|csv|jsonl] (default: json)
|
|
967
1095
|
[--output <path>] Write to file instead of stdout
|
|
968
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
|
|
969
1100
|
|
|
970
|
-
API Server:
|
|
1101
|
+
API Server:
|
|
971
1102
|
serve Start lightweight HTTP API server
|
|
972
1103
|
[--port 7400] (default: 7400)
|
|
973
1104
|
Endpoints: /health, /verify, /bundle, /drift, /outcome,
|
|
@@ -1000,10 +1131,11 @@ Cowork (Knowledge Mode):
|
|
|
1000
1131
|
[--workspace .]
|
|
1001
1132
|
|
|
1002
1133
|
Memory:
|
|
1003
|
-
memory [init|recent|validation|ontology|structure|evidence|preamble]
|
|
1134
|
+
memory [init|recent|validation|ontology|structure|evidence|preamble|status|explain|compact|prune|inject]
|
|
1004
1135
|
Inspect and manage the CodeLedger memory system
|
|
1005
1136
|
init: [--force] Seed default ledgers (evidence gates + ontology)
|
|
1006
1137
|
preamble: [--task "..."] [--terms "a,b"] [--anchors "x,y"]
|
|
1138
|
+
inject: --task "..." [--paths "a,b"] [--json]
|
|
1007
1139
|
|
|
1008
1140
|
Lessons:
|
|
1009
1141
|
lessons [list|relevant|verify|deprecate]
|