@codeledger/cli 0.10.5 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +61 -0
- package/README.md +108 -0
- package/bin/codeledger.js +66 -0
- package/package.json +35 -48
- package/scripts/postinstall.js +285 -0
- package/bin/codeledger-open.cjs +0 -89
- package/bin/codeledger-standalone.cjs +0 -3964
- package/dist/ambient-activation.d.ts +0 -30
- package/dist/ambient-activation.d.ts.map +0 -1
- package/dist/ambient-activation.js +0 -449
- package/dist/ambient-activation.js.map +0 -1
- package/dist/arch-policy/resolve.d.ts +0 -11
- package/dist/arch-policy/resolve.d.ts.map +0 -1
- package/dist/arch-policy/resolve.js +0 -195
- package/dist/arch-policy/resolve.js.map +0 -1
- package/dist/arch-policy/simulate.d.ts +0 -9
- package/dist/arch-policy/simulate.d.ts.map +0 -1
- package/dist/arch-policy/simulate.js +0 -175
- package/dist/arch-policy/simulate.js.map +0 -1
- package/dist/architecture-graph/dependency-scanner.d.ts +0 -16
- package/dist/architecture-graph/dependency-scanner.d.ts.map +0 -1
- package/dist/architecture-graph/dependency-scanner.js +0 -96
- package/dist/architecture-graph/dependency-scanner.js.map +0 -1
- package/dist/architecture-graph/graph-builder.d.ts +0 -70
- package/dist/architecture-graph/graph-builder.d.ts.map +0 -1
- package/dist/architecture-graph/graph-builder.js +0 -231
- package/dist/architecture-graph/graph-builder.js.map +0 -1
- package/dist/architecture-graph/index.d.ts +0 -4
- package/dist/architecture-graph/index.d.ts.map +0 -1
- package/dist/architecture-graph/index.js +0 -7
- package/dist/architecture-graph/index.js.map +0 -1
- package/dist/architecture-graph/service-scanner.d.ts +0 -22
- package/dist/architecture-graph/service-scanner.d.ts.map +0 -1
- package/dist/architecture-graph/service-scanner.js +0 -181
- package/dist/architecture-graph/service-scanner.js.map +0 -1
- package/dist/artifacts/summary.d.ts +0 -6
- package/dist/artifacts/summary.d.ts.map +0 -1
- package/dist/artifacts/summary.js +0 -49
- package/dist/artifacts/summary.js.map +0 -1
- package/dist/command-activation.d.ts +0 -3
- package/dist/command-activation.d.ts.map +0 -1
- package/dist/command-activation.js +0 -2
- package/dist/command-activation.js.map +0 -1
- package/dist/commands/about.d.ts +0 -2
- package/dist/commands/about.d.ts.map +0 -1
- package/dist/commands/about.js +0 -18
- package/dist/commands/about.js.map +0 -1
- package/dist/commands/activate.d.ts +0 -18
- package/dist/commands/activate.d.ts.map +0 -1
- package/dist/commands/activate.js +0 -1110
- package/dist/commands/activate.js.map +0 -1
- package/dist/commands/apply-policy.d.ts +0 -7
- package/dist/commands/apply-policy.d.ts.map +0 -1
- package/dist/commands/apply-policy.js +0 -62
- package/dist/commands/apply-policy.js.map +0 -1
- package/dist/commands/arch-policy.d.ts +0 -8
- package/dist/commands/arch-policy.d.ts.map +0 -1
- package/dist/commands/arch-policy.js +0 -349
- package/dist/commands/arch-policy.js.map +0 -1
- package/dist/commands/audit-export.d.ts +0 -8
- package/dist/commands/audit-export.d.ts.map +0 -1
- package/dist/commands/audit-export.js +0 -192
- package/dist/commands/audit-export.js.map +0 -1
- package/dist/commands/audit.d.ts +0 -24
- package/dist/commands/audit.d.ts.map +0 -1
- package/dist/commands/audit.js +0 -1138
- package/dist/commands/audit.js.map +0 -1
- package/dist/commands/auto-refresh.d.ts +0 -17
- package/dist/commands/auto-refresh.d.ts.map +0 -1
- package/dist/commands/auto-refresh.js +0 -152
- package/dist/commands/auto-refresh.js.map +0 -1
- package/dist/commands/broker.d.ts +0 -22
- package/dist/commands/broker.d.ts.map +0 -1
- package/dist/commands/broker.js +0 -487
- package/dist/commands/broker.js.map +0 -1
- package/dist/commands/bundle.d.ts +0 -2
- package/dist/commands/bundle.d.ts.map +0 -1
- package/dist/commands/bundle.js +0 -230
- package/dist/commands/bundle.js.map +0 -1
- package/dist/commands/capsule-change.d.ts +0 -7
- package/dist/commands/capsule-change.d.ts.map +0 -1
- package/dist/commands/capsule-change.js +0 -177
- package/dist/commands/capsule-change.js.map +0 -1
- package/dist/commands/checkpoint.d.ts +0 -26
- package/dist/commands/checkpoint.d.ts.map +0 -1
- package/dist/commands/checkpoint.js +0 -382
- package/dist/commands/checkpoint.js.map +0 -1
- package/dist/commands/ci.d.ts +0 -16
- package/dist/commands/ci.d.ts.map +0 -1
- package/dist/commands/ci.js +0 -287
- package/dist/commands/ci.js.map +0 -1
- package/dist/commands/claims.d.ts +0 -14
- package/dist/commands/claims.d.ts.map +0 -1
- package/dist/commands/claims.js +0 -93
- package/dist/commands/claims.js.map +0 -1
- package/dist/commands/claude.d.ts +0 -2
- package/dist/commands/claude.d.ts.map +0 -1
- package/dist/commands/claude.js +0 -5
- package/dist/commands/claude.js.map +0 -1
- package/dist/commands/clean.d.ts +0 -2
- package/dist/commands/clean.d.ts.map +0 -1
- package/dist/commands/clean.js +0 -28
- package/dist/commands/clean.js.map +0 -1
- package/dist/commands/coach.d.ts +0 -11
- package/dist/commands/coach.d.ts.map +0 -1
- package/dist/commands/coach.js +0 -169
- package/dist/commands/coach.js.map +0 -1
- package/dist/commands/codex.d.ts +0 -2
- package/dist/commands/codex.d.ts.map +0 -1
- package/dist/commands/codex.js +0 -5
- package/dist/commands/codex.js.map +0 -1
- package/dist/commands/commit-msg.d.ts +0 -58
- package/dist/commands/commit-msg.d.ts.map +0 -1
- package/dist/commands/commit-msg.js +0 -461
- package/dist/commands/commit-msg.js.map +0 -1
- package/dist/commands/compare-current.d.ts +0 -2
- package/dist/commands/compare-current.d.ts.map +0 -1
- package/dist/commands/compare-current.js +0 -186
- package/dist/commands/compare-current.js.map +0 -1
- package/dist/commands/compare.d.ts +0 -2
- package/dist/commands/compare.d.ts.map +0 -1
- package/dist/commands/compare.js +0 -253
- package/dist/commands/compare.js.map +0 -1
- package/dist/commands/complete-check.d.ts +0 -24
- package/dist/commands/complete-check.d.ts.map +0 -1
- package/dist/commands/complete-check.js +0 -287
- package/dist/commands/complete-check.js.map +0 -1
- package/dist/commands/conflicts.d.ts +0 -12
- package/dist/commands/conflicts.d.ts.map +0 -1
- package/dist/commands/conflicts.js +0 -55
- package/dist/commands/conflicts.js.map +0 -1
- package/dist/commands/context-handoff.d.ts +0 -2
- package/dist/commands/context-handoff.d.ts.map +0 -1
- package/dist/commands/context-handoff.js +0 -58
- package/dist/commands/context-handoff.js.map +0 -1
- package/dist/commands/context.d.ts +0 -22
- package/dist/commands/context.d.ts.map +0 -1
- package/dist/commands/context.js +0 -836
- package/dist/commands/context.js.map +0 -1
- package/dist/commands/coordination.d.ts +0 -6
- package/dist/commands/coordination.d.ts.map +0 -1
- package/dist/commands/coordination.js +0 -177
- package/dist/commands/coordination.js.map +0 -1
- package/dist/commands/cowork-refresh.d.ts +0 -8
- package/dist/commands/cowork-refresh.d.ts.map +0 -1
- package/dist/commands/cowork-refresh.js +0 -50
- package/dist/commands/cowork-refresh.js.map +0 -1
- package/dist/commands/cowork-snapshot.d.ts +0 -8
- package/dist/commands/cowork-snapshot.d.ts.map +0 -1
- package/dist/commands/cowork-snapshot.js +0 -34
- package/dist/commands/cowork-snapshot.js.map +0 -1
- package/dist/commands/cowork-start.d.ts +0 -8
- package/dist/commands/cowork-start.d.ts.map +0 -1
- package/dist/commands/cowork-start.js +0 -71
- package/dist/commands/cowork-start.js.map +0 -1
- package/dist/commands/cowork-stop.d.ts +0 -7
- package/dist/commands/cowork-stop.d.ts.map +0 -1
- package/dist/commands/cowork-stop.js +0 -43
- package/dist/commands/cowork-stop.js.map +0 -1
- package/dist/commands/daemon.d.ts +0 -2
- package/dist/commands/daemon.d.ts.map +0 -1
- package/dist/commands/daemon.js +0 -5
- package/dist/commands/daemon.js.map +0 -1
- package/dist/commands/dashboard.d.ts +0 -18
- package/dist/commands/dashboard.d.ts.map +0 -1
- package/dist/commands/dashboard.js +0 -481
- package/dist/commands/dashboard.js.map +0 -1
- package/dist/commands/detect-secrets.d.ts +0 -19
- package/dist/commands/detect-secrets.d.ts.map +0 -1
- package/dist/commands/detect-secrets.js +0 -210
- package/dist/commands/detect-secrets.js.map +0 -1
- package/dist/commands/discover-check.d.ts +0 -19
- package/dist/commands/discover-check.d.ts.map +0 -1
- package/dist/commands/discover-check.js +0 -256
- package/dist/commands/discover-check.js.map +0 -1
- package/dist/commands/discover-gate.d.ts +0 -20
- package/dist/commands/discover-gate.d.ts.map +0 -1
- package/dist/commands/discover-gate.js +0 -131
- package/dist/commands/discover-gate.js.map +0 -1
- package/dist/commands/discover.d.ts +0 -14
- package/dist/commands/discover.d.ts.map +0 -1
- package/dist/commands/discover.js +0 -132
- package/dist/commands/discover.js.map +0 -1
- package/dist/commands/doctor.d.ts +0 -9
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -277
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/drift.d.ts +0 -2
- package/dist/commands/drift.d.ts.map +0 -1
- package/dist/commands/drift.js +0 -171
- package/dist/commands/drift.js.map +0 -1
- package/dist/commands/ecl.d.ts +0 -11
- package/dist/commands/ecl.d.ts.map +0 -1
- package/dist/commands/ecl.js +0 -109
- package/dist/commands/ecl.js.map +0 -1
- package/dist/commands/enable.d.ts +0 -7
- package/dist/commands/enable.d.ts.map +0 -1
- package/dist/commands/enable.js +0 -75
- package/dist/commands/enable.js.map +0 -1
- package/dist/commands/evidence.d.ts +0 -2
- package/dist/commands/evidence.d.ts.map +0 -1
- package/dist/commands/evidence.js +0 -53
- package/dist/commands/evidence.js.map +0 -1
- package/dist/commands/features.d.ts +0 -2
- package/dist/commands/features.d.ts.map +0 -1
- package/dist/commands/features.js +0 -185
- package/dist/commands/features.js.map +0 -1
- package/dist/commands/fix.d.ts +0 -7
- package/dist/commands/fix.d.ts.map +0 -1
- package/dist/commands/fix.js +0 -107
- package/dist/commands/fix.js.map +0 -1
- package/dist/commands/fleet.d.ts +0 -17
- package/dist/commands/fleet.d.ts.map +0 -1
- package/dist/commands/fleet.js +0 -682
- package/dist/commands/fleet.js.map +0 -1
- package/dist/commands/graph.d.ts +0 -18
- package/dist/commands/graph.d.ts.map +0 -1
- package/dist/commands/graph.js +0 -370
- package/dist/commands/graph.js.map +0 -1
- package/dist/commands/guardrails.d.ts +0 -11
- package/dist/commands/guardrails.d.ts.map +0 -1
- package/dist/commands/guardrails.js +0 -112
- package/dist/commands/guardrails.js.map +0 -1
- package/dist/commands/harvest.d.ts +0 -2
- package/dist/commands/harvest.d.ts.map +0 -1
- package/dist/commands/harvest.js +0 -136
- package/dist/commands/harvest.js.map +0 -1
- package/dist/commands/health.d.ts +0 -8
- package/dist/commands/health.d.ts.map +0 -1
- package/dist/commands/health.js +0 -101
- package/dist/commands/health.js.map +0 -1
- package/dist/commands/hotspots.d.ts +0 -2
- package/dist/commands/hotspots.d.ts.map +0 -1
- package/dist/commands/hotspots.js +0 -20
- package/dist/commands/hotspots.js.map +0 -1
- package/dist/commands/init.d.ts +0 -12
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -423
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/insight-seed.d.ts +0 -2
- package/dist/commands/insight-seed.d.ts.map +0 -1
- package/dist/commands/insight-seed.js +0 -59
- package/dist/commands/insight-seed.js.map +0 -1
- package/dist/commands/insight-smoke-test.d.ts +0 -2
- package/dist/commands/insight-smoke-test.d.ts.map +0 -1
- package/dist/commands/insight-smoke-test.js +0 -44
- package/dist/commands/insight-smoke-test.js.map +0 -1
- package/dist/commands/insight.d.ts +0 -2
- package/dist/commands/insight.d.ts.map +0 -1
- package/dist/commands/insight.js +0 -183
- package/dist/commands/insight.js.map +0 -1
- package/dist/commands/intent.d.ts +0 -39
- package/dist/commands/intent.d.ts.map +0 -1
- package/dist/commands/intent.js +0 -539
- package/dist/commands/intent.js.map +0 -1
- package/dist/commands/intervene.d.ts +0 -11
- package/dist/commands/intervene.d.ts.map +0 -1
- package/dist/commands/intervene.js +0 -94
- package/dist/commands/intervene.js.map +0 -1
- package/dist/commands/interventions.d.ts +0 -8
- package/dist/commands/interventions.d.ts.map +0 -1
- package/dist/commands/interventions.js +0 -69
- package/dist/commands/interventions.js.map +0 -1
- package/dist/commands/learn.d.ts +0 -8
- package/dist/commands/learn.d.ts.map +0 -1
- package/dist/commands/learn.js +0 -33
- package/dist/commands/learn.js.map +0 -1
- package/dist/commands/ledger.d.ts +0 -15
- package/dist/commands/ledger.d.ts.map +0 -1
- package/dist/commands/ledger.js +0 -137
- package/dist/commands/ledger.js.map +0 -1
- package/dist/commands/lessons.d.ts +0 -14
- package/dist/commands/lessons.d.ts.map +0 -1
- package/dist/commands/lessons.js +0 -196
- package/dist/commands/lessons.js.map +0 -1
- package/dist/commands/license-utils.d.ts +0 -36
- package/dist/commands/license-utils.d.ts.map +0 -1
- package/dist/commands/license-utils.js +0 -74
- package/dist/commands/license-utils.js.map +0 -1
- package/dist/commands/license.d.ts +0 -50
- package/dist/commands/license.d.ts.map +0 -1
- package/dist/commands/license.js +0 -281
- package/dist/commands/license.js.map +0 -1
- package/dist/commands/manifest.d.ts +0 -8
- package/dist/commands/manifest.d.ts.map +0 -1
- package/dist/commands/manifest.js +0 -144
- package/dist/commands/manifest.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -14
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -70
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/memory.d.ts +0 -16
- package/dist/commands/memory.d.ts.map +0 -1
- package/dist/commands/memory.js +0 -621
- package/dist/commands/memory.js.map +0 -1
- package/dist/commands/merge-check.d.ts +0 -15
- package/dist/commands/merge-check.d.ts.map +0 -1
- package/dist/commands/merge-check.js +0 -164
- package/dist/commands/merge-check.js.map +0 -1
- package/dist/commands/open-init.d.ts +0 -13
- package/dist/commands/open-init.d.ts.map +0 -1
- package/dist/commands/open-init.js +0 -115
- package/dist/commands/open-init.js.map +0 -1
- package/dist/commands/open-license.d.ts +0 -11
- package/dist/commands/open-license.d.ts.map +0 -1
- package/dist/commands/open-license.js +0 -98
- package/dist/commands/open-license.js.map +0 -1
- package/dist/commands/orchestrate.d.ts +0 -12
- package/dist/commands/orchestrate.d.ts.map +0 -1
- package/dist/commands/orchestrate.js +0 -119
- package/dist/commands/orchestrate.js.map +0 -1
- package/dist/commands/outcome.d.ts +0 -2
- package/dist/commands/outcome.d.ts.map +0 -1
- package/dist/commands/outcome.js +0 -121
- package/dist/commands/outcome.js.map +0 -1
- package/dist/commands/pack.d.ts +0 -12
- package/dist/commands/pack.d.ts.map +0 -1
- package/dist/commands/pack.js +0 -75
- package/dist/commands/pack.js.map +0 -1
- package/dist/commands/policy-author.d.ts +0 -48
- package/dist/commands/policy-author.d.ts.map +0 -1
- package/dist/commands/policy-author.js +0 -396
- package/dist/commands/policy-author.js.map +0 -1
- package/dist/commands/policy-simulate.d.ts +0 -9
- package/dist/commands/policy-simulate.d.ts.map +0 -1
- package/dist/commands/policy-simulate.js +0 -46
- package/dist/commands/policy-simulate.js.map +0 -1
- package/dist/commands/policy.d.ts +0 -9
- package/dist/commands/policy.d.ts.map +0 -1
- package/dist/commands/policy.js +0 -121
- package/dist/commands/policy.js.map +0 -1
- package/dist/commands/post-merge-outcome.d.ts +0 -2
- package/dist/commands/post-merge-outcome.d.ts.map +0 -1
- package/dist/commands/post-merge-outcome.js +0 -32
- package/dist/commands/post-merge-outcome.js.map +0 -1
- package/dist/commands/pr-check.d.ts +0 -18
- package/dist/commands/pr-check.d.ts.map +0 -1
- package/dist/commands/pr-check.js +0 -299
- package/dist/commands/pr-check.js.map +0 -1
- package/dist/commands/pr-comment.d.ts +0 -2
- package/dist/commands/pr-comment.d.ts.map +0 -1
- package/dist/commands/pr-comment.js +0 -96
- package/dist/commands/pr-comment.js.map +0 -1
- package/dist/commands/pr-summary.d.ts +0 -59
- package/dist/commands/pr-summary.d.ts.map +0 -1
- package/dist/commands/pr-summary.js +0 -524
- package/dist/commands/pr-summary.js.map +0 -1
- package/dist/commands/pre-pr.d.ts +0 -14
- package/dist/commands/pre-pr.d.ts.map +0 -1
- package/dist/commands/pre-pr.js +0 -57
- package/dist/commands/pre-pr.js.map +0 -1
- package/dist/commands/preflight.d.ts +0 -2
- package/dist/commands/preflight.d.ts.map +0 -1
- package/dist/commands/preflight.js +0 -48
- package/dist/commands/preflight.js.map +0 -1
- package/dist/commands/progress-check.d.ts +0 -14
- package/dist/commands/progress-check.d.ts.map +0 -1
- package/dist/commands/progress-check.js +0 -153
- package/dist/commands/progress-check.js.map +0 -1
- package/dist/commands/provenance.d.ts +0 -10
- package/dist/commands/provenance.d.ts.map +0 -1
- package/dist/commands/provenance.js +0 -103
- package/dist/commands/provenance.js.map +0 -1
- package/dist/commands/pulse.d.ts +0 -12
- package/dist/commands/pulse.d.ts.map +0 -1
- package/dist/commands/pulse.js +0 -61
- package/dist/commands/pulse.js.map +0 -1
- package/dist/commands/reality-check.d.ts +0 -4
- package/dist/commands/reality-check.d.ts.map +0 -1
- package/dist/commands/reality-check.js +0 -133
- package/dist/commands/reality-check.js.map +0 -1
- package/dist/commands/refine.d.ts +0 -17
- package/dist/commands/refine.d.ts.map +0 -1
- package/dist/commands/refine.js +0 -250
- package/dist/commands/refine.js.map +0 -1
- package/dist/commands/release-check.d.ts +0 -14
- package/dist/commands/release-check.d.ts.map +0 -1
- package/dist/commands/release-check.js +0 -44
- package/dist/commands/release-check.js.map +0 -1
- package/dist/commands/release-decision.d.ts +0 -2
- package/dist/commands/release-decision.d.ts.map +0 -1
- package/dist/commands/release-decision.js +0 -26
- package/dist/commands/release-decision.js.map +0 -1
- package/dist/commands/release-history.d.ts +0 -2
- package/dist/commands/release-history.d.ts.map +0 -1
- package/dist/commands/release-history.js +0 -34
- package/dist/commands/release-history.js.map +0 -1
- package/dist/commands/release-insights.d.ts +0 -2
- package/dist/commands/release-insights.d.ts.map +0 -1
- package/dist/commands/release-insights.js +0 -34
- package/dist/commands/release-insights.js.map +0 -1
- package/dist/commands/release-truth.d.ts +0 -2
- package/dist/commands/release-truth.d.ts.map +0 -1
- package/dist/commands/release-truth.js +0 -15
- package/dist/commands/release-truth.js.map +0 -1
- package/dist/commands/replay.d.ts +0 -2
- package/dist/commands/replay.d.ts.map +0 -1
- package/dist/commands/replay.js +0 -181
- package/dist/commands/replay.js.map +0 -1
- package/dist/commands/review-coverage.d.ts +0 -12
- package/dist/commands/review-coverage.d.ts.map +0 -1
- package/dist/commands/review-coverage.js +0 -142
- package/dist/commands/review-coverage.js.map +0 -1
- package/dist/commands/review-gate.d.ts +0 -12
- package/dist/commands/review-gate.d.ts.map +0 -1
- package/dist/commands/review-gate.js +0 -130
- package/dist/commands/review-gate.js.map +0 -1
- package/dist/commands/run.d.ts +0 -2
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -84
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/runs.d.ts +0 -2
- package/dist/commands/runs.d.ts.map +0 -1
- package/dist/commands/runs.js +0 -61
- package/dist/commands/runs.js.map +0 -1
- package/dist/commands/scan.d.ts +0 -2
- package/dist/commands/scan.d.ts.map +0 -1
- package/dist/commands/scan.js +0 -349
- package/dist/commands/scan.js.map +0 -1
- package/dist/commands/serve.d.ts +0 -32
- package/dist/commands/serve.d.ts.map +0 -1
- package/dist/commands/serve.js +0 -904
- package/dist/commands/serve.js.map +0 -1
- package/dist/commands/session-cleanup.d.ts +0 -11
- package/dist/commands/session-cleanup.d.ts.map +0 -1
- package/dist/commands/session-cleanup.js +0 -85
- package/dist/commands/session-cleanup.js.map +0 -1
- package/dist/commands/session-init.d.ts +0 -10
- package/dist/commands/session-init.d.ts.map +0 -1
- package/dist/commands/session-init.js +0 -46
- package/dist/commands/session-init.js.map +0 -1
- package/dist/commands/session-progress.d.ts +0 -12
- package/dist/commands/session-progress.d.ts.map +0 -1
- package/dist/commands/session-progress.js +0 -287
- package/dist/commands/session-progress.js.map +0 -1
- package/dist/commands/session-summary.d.ts +0 -14
- package/dist/commands/session-summary.d.ts.map +0 -1
- package/dist/commands/session-summary.js +0 -1413
- package/dist/commands/session-summary.js.map +0 -1
- package/dist/commands/sessions.d.ts +0 -9
- package/dist/commands/sessions.d.ts.map +0 -1
- package/dist/commands/sessions.js +0 -60
- package/dist/commands/sessions.js.map +0 -1
- package/dist/commands/setup-ci.d.ts +0 -27
- package/dist/commands/setup-ci.d.ts.map +0 -1
- package/dist/commands/setup-ci.js +0 -487
- package/dist/commands/setup-ci.js.map +0 -1
- package/dist/commands/share.d.ts +0 -9
- package/dist/commands/share.d.ts.map +0 -1
- package/dist/commands/share.js +0 -275
- package/dist/commands/share.js.map +0 -1
- package/dist/commands/shared-summary.d.ts +0 -15
- package/dist/commands/shared-summary.d.ts.map +0 -1
- package/dist/commands/shared-summary.js +0 -194
- package/dist/commands/shared-summary.js.map +0 -1
- package/dist/commands/sign-manifest.d.ts +0 -8
- package/dist/commands/sign-manifest.d.ts.map +0 -1
- package/dist/commands/sign-manifest.js +0 -58
- package/dist/commands/sign-manifest.js.map +0 -1
- package/dist/commands/snapshot.d.ts +0 -4
- package/dist/commands/snapshot.d.ts.map +0 -1
- package/dist/commands/snapshot.js +0 -79
- package/dist/commands/snapshot.js.map +0 -1
- package/dist/commands/stats.d.ts +0 -8
- package/dist/commands/stats.d.ts.map +0 -1
- package/dist/commands/stats.js +0 -164
- package/dist/commands/stats.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -9
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -157
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/task.d.ts +0 -2
- package/dist/commands/task.d.ts.map +0 -1
- package/dist/commands/task.js +0 -315
- package/dist/commands/task.js.map +0 -1
- package/dist/commands/team-ledger.d.ts +0 -11
- package/dist/commands/team-ledger.d.ts.map +0 -1
- package/dist/commands/team-ledger.js +0 -77
- package/dist/commands/team-ledger.js.map +0 -1
- package/dist/commands/team-metrics.d.ts +0 -8
- package/dist/commands/team-metrics.d.ts.map +0 -1
- package/dist/commands/team-metrics.js +0 -57
- package/dist/commands/team-metrics.js.map +0 -1
- package/dist/commands/test-summary.d.ts +0 -2
- package/dist/commands/test-summary.d.ts.map +0 -1
- package/dist/commands/test-summary.js +0 -53
- package/dist/commands/test-summary.js.map +0 -1
- package/dist/commands/time-travel.d.ts +0 -2
- package/dist/commands/time-travel.d.ts.map +0 -1
- package/dist/commands/time-travel.js +0 -89
- package/dist/commands/time-travel.js.map +0 -1
- package/dist/commands/truth-utils.d.ts +0 -14
- package/dist/commands/truth-utils.d.ts.map +0 -1
- package/dist/commands/truth-utils.js +0 -70
- package/dist/commands/truth-utils.js.map +0 -1
- package/dist/commands/upgrade.d.ts +0 -2
- package/dist/commands/upgrade.d.ts.map +0 -1
- package/dist/commands/upgrade.js +0 -17
- package/dist/commands/upgrade.js.map +0 -1
- package/dist/commands/vendor.d.ts +0 -20
- package/dist/commands/vendor.d.ts.map +0 -1
- package/dist/commands/vendor.js +0 -205
- package/dist/commands/vendor.js.map +0 -1
- package/dist/commands/verify.d.ts +0 -36
- package/dist/commands/verify.d.ts.map +0 -1
- package/dist/commands/verify.js +0 -761
- package/dist/commands/verify.js.map +0 -1
- package/dist/completion-integrity/claims.d.ts +0 -21
- package/dist/completion-integrity/claims.d.ts.map +0 -1
- package/dist/completion-integrity/claims.js +0 -99
- package/dist/completion-integrity/claims.js.map +0 -1
- package/dist/completion-integrity/confidence.d.ts +0 -30
- package/dist/completion-integrity/confidence.d.ts.map +0 -1
- package/dist/completion-integrity/confidence.js +0 -86
- package/dist/completion-integrity/confidence.js.map +0 -1
- package/dist/completion-integrity/ghost-detector.d.ts +0 -37
- package/dist/completion-integrity/ghost-detector.d.ts.map +0 -1
- package/dist/completion-integrity/ghost-detector.js +0 -93
- package/dist/completion-integrity/ghost-detector.js.map +0 -1
- package/dist/completion-integrity/history.d.ts +0 -19
- package/dist/completion-integrity/history.d.ts.map +0 -1
- package/dist/completion-integrity/history.js +0 -44
- package/dist/completion-integrity/history.js.map +0 -1
- package/dist/completion-integrity/index.d.ts +0 -25
- package/dist/completion-integrity/index.d.ts.map +0 -1
- package/dist/completion-integrity/index.js +0 -251
- package/dist/completion-integrity/index.js.map +0 -1
- package/dist/completion-integrity/neighborhood.d.ts +0 -21
- package/dist/completion-integrity/neighborhood.d.ts.map +0 -1
- package/dist/completion-integrity/neighborhood.js +0 -274
- package/dist/completion-integrity/neighborhood.js.map +0 -1
- package/dist/completion-integrity/notary.d.ts +0 -3
- package/dist/completion-integrity/notary.d.ts.map +0 -1
- package/dist/completion-integrity/notary.js +0 -124
- package/dist/completion-integrity/notary.js.map +0 -1
- package/dist/completion-integrity/output.d.ts +0 -11
- package/dist/completion-integrity/output.d.ts.map +0 -1
- package/dist/completion-integrity/output.js +0 -228
- package/dist/completion-integrity/output.js.map +0 -1
- package/dist/completion-integrity/self-audit.d.ts +0 -28
- package/dist/completion-integrity/self-audit.d.ts.map +0 -1
- package/dist/completion-integrity/self-audit.js +0 -194
- package/dist/completion-integrity/self-audit.js.map +0 -1
- package/dist/completion-integrity/semantic-drift.d.ts +0 -22
- package/dist/completion-integrity/semantic-drift.d.ts.map +0 -1
- package/dist/completion-integrity/semantic-drift.js +0 -138
- package/dist/completion-integrity/semantic-drift.js.map +0 -1
- package/dist/completion-integrity/state-machine.d.ts +0 -36
- package/dist/completion-integrity/state-machine.d.ts.map +0 -1
- package/dist/completion-integrity/state-machine.js +0 -138
- package/dist/completion-integrity/state-machine.js.map +0 -1
- package/dist/completion-integrity/types.d.ts +0 -69
- package/dist/completion-integrity/types.d.ts.map +0 -1
- package/dist/completion-integrity/types.js +0 -4
- package/dist/completion-integrity/types.js.map +0 -1
- package/dist/context-engine/contract.d.ts +0 -12
- package/dist/context-engine/contract.d.ts.map +0 -1
- package/dist/context-engine/contract.js +0 -227
- package/dist/context-engine/contract.js.map +0 -1
- package/dist/context-engine/delta.d.ts +0 -10
- package/dist/context-engine/delta.d.ts.map +0 -1
- package/dist/context-engine/delta.js +0 -78
- package/dist/context-engine/delta.js.map +0 -1
- package/dist/context-engine/index.d.ts +0 -6
- package/dist/context-engine/index.d.ts.map +0 -1
- package/dist/context-engine/index.js +0 -5
- package/dist/context-engine/index.js.map +0 -1
- package/dist/context-engine/policy-evaluator.d.ts +0 -32
- package/dist/context-engine/policy-evaluator.d.ts.map +0 -1
- package/dist/context-engine/policy-evaluator.js +0 -69
- package/dist/context-engine/policy-evaluator.js.map +0 -1
- package/dist/context-engine/renderer.d.ts +0 -9
- package/dist/context-engine/renderer.d.ts.map +0 -1
- package/dist/context-engine/renderer.js +0 -28
- package/dist/context-engine/renderer.js.map +0 -1
- package/dist/context-engine/renderers/claude.d.ts +0 -3
- package/dist/context-engine/renderers/claude.d.ts.map +0 -1
- package/dist/context-engine/renderers/claude.js +0 -223
- package/dist/context-engine/renderers/claude.js.map +0 -1
- package/dist/context-engine/renderers/cursor.d.ts +0 -3
- package/dist/context-engine/renderers/cursor.d.ts.map +0 -1
- package/dist/context-engine/renderers/cursor.js +0 -158
- package/dist/context-engine/renderers/cursor.js.map +0 -1
- package/dist/context-engine/renderers/generic.d.ts +0 -3
- package/dist/context-engine/renderers/generic.d.ts.map +0 -1
- package/dist/context-engine/renderers/generic.js +0 -180
- package/dist/context-engine/renderers/generic.js.map +0 -1
- package/dist/coordination/index.d.ts +0 -69
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js +0 -1110
- package/dist/coordination/index.js.map +0 -1
- package/dist/discovery/blast-radius.d.ts +0 -15
- package/dist/discovery/blast-radius.d.ts.map +0 -1
- package/dist/discovery/blast-radius.js +0 -160
- package/dist/discovery/blast-radius.js.map +0 -1
- package/dist/discovery/cache.d.ts +0 -38
- package/dist/discovery/cache.d.ts.map +0 -1
- package/dist/discovery/cache.js +0 -87
- package/dist/discovery/cache.js.map +0 -1
- package/dist/discovery/diff-compliance.d.ts +0 -19
- package/dist/discovery/diff-compliance.d.ts.map +0 -1
- package/dist/discovery/diff-compliance.js +0 -96
- package/dist/discovery/diff-compliance.js.map +0 -1
- package/dist/discovery/duplicate-detection.d.ts +0 -29
- package/dist/discovery/duplicate-detection.d.ts.map +0 -1
- package/dist/discovery/duplicate-detection.js +0 -133
- package/dist/discovery/duplicate-detection.js.map +0 -1
- package/dist/discovery/gap-analysis.d.ts +0 -16
- package/dist/discovery/gap-analysis.d.ts.map +0 -1
- package/dist/discovery/gap-analysis.js +0 -199
- package/dist/discovery/gap-analysis.js.map +0 -1
- package/dist/discovery/index.d.ts +0 -18
- package/dist/discovery/index.d.ts.map +0 -1
- package/dist/discovery/index.js +0 -565
- package/dist/discovery/index.js.map +0 -1
- package/dist/discovery/override.d.ts +0 -19
- package/dist/discovery/override.d.ts.map +0 -1
- package/dist/discovery/override.js +0 -113
- package/dist/discovery/override.js.map +0 -1
- package/dist/discovery/scoring.d.ts +0 -35
- package/dist/discovery/scoring.d.ts.map +0 -1
- package/dist/discovery/scoring.js +0 -194
- package/dist/discovery/scoring.js.map +0 -1
- package/dist/discovery/source-of-truth.d.ts +0 -17
- package/dist/discovery/source-of-truth.d.ts.map +0 -1
- package/dist/discovery/source-of-truth.js +0 -182
- package/dist/discovery/source-of-truth.js.map +0 -1
- package/dist/discovery/symbol-growth.d.ts +0 -20
- package/dist/discovery/symbol-growth.d.ts.map +0 -1
- package/dist/discovery/symbol-growth.js +0 -111
- package/dist/discovery/symbol-growth.js.map +0 -1
- package/dist/ecl/git-sync.d.ts +0 -53
- package/dist/ecl/git-sync.d.ts.map +0 -1
- package/dist/ecl/git-sync.js +0 -182
- package/dist/ecl/git-sync.js.map +0 -1
- package/dist/ecl/lifecycle.d.ts +0 -107
- package/dist/ecl/lifecycle.d.ts.map +0 -1
- package/dist/ecl/lifecycle.js +0 -264
- package/dist/ecl/lifecycle.js.map +0 -1
- package/dist/ecl/persistence.d.ts +0 -108
- package/dist/ecl/persistence.d.ts.map +0 -1
- package/dist/ecl/persistence.js +0 -362
- package/dist/ecl/persistence.js.map +0 -1
- package/dist/ecl/sync.d.ts +0 -43
- package/dist/ecl/sync.d.ts.map +0 -1
- package/dist/ecl/sync.js +0 -155
- package/dist/ecl/sync.js.map +0 -1
- package/dist/feedback/index.d.ts +0 -35
- package/dist/feedback/index.d.ts.map +0 -1
- package/dist/feedback/index.js +0 -81
- package/dist/feedback/index.js.map +0 -1
- package/dist/guardrails/adversarial-trigger.d.ts +0 -15
- package/dist/guardrails/adversarial-trigger.d.ts.map +0 -1
- package/dist/guardrails/adversarial-trigger.js +0 -86
- package/dist/guardrails/adversarial-trigger.js.map +0 -1
- package/dist/guardrails/export-collision.d.ts +0 -11
- package/dist/guardrails/export-collision.d.ts.map +0 -1
- package/dist/guardrails/export-collision.js +0 -141
- package/dist/guardrails/export-collision.js.map +0 -1
- package/dist/guardrails/index.d.ts +0 -24
- package/dist/guardrails/index.d.ts.map +0 -1
- package/dist/guardrails/index.js +0 -24
- package/dist/guardrails/index.js.map +0 -1
- package/dist/guardrails/release-tag.d.ts +0 -10
- package/dist/guardrails/release-tag.d.ts.map +0 -1
- package/dist/guardrails/release-tag.js +0 -99
- package/dist/guardrails/release-tag.js.map +0 -1
- package/dist/guardrails/rename-integrity.d.ts +0 -13
- package/dist/guardrails/rename-integrity.d.ts.map +0 -1
- package/dist/guardrails/rename-integrity.js +0 -111
- package/dist/guardrails/rename-integrity.js.map +0 -1
- package/dist/guardrails/runner.d.ts +0 -10
- package/dist/guardrails/runner.d.ts.map +0 -1
- package/dist/guardrails/runner.js +0 -36
- package/dist/guardrails/runner.js.map +0 -1
- package/dist/guardrails/stale-artifact.d.ts +0 -11
- package/dist/guardrails/stale-artifact.d.ts.map +0 -1
- package/dist/guardrails/stale-artifact.js +0 -69
- package/dist/guardrails/stale-artifact.js.map +0 -1
- package/dist/guardrails/unused-parameter.d.ts +0 -11
- package/dist/guardrails/unused-parameter.d.ts.map +0 -1
- package/dist/guardrails/unused-parameter.js +0 -105
- package/dist/guardrails/unused-parameter.js.map +0 -1
- package/dist/guardrails/workspace-validation.d.ts +0 -12
- package/dist/guardrails/workspace-validation.d.ts.map +0 -1
- package/dist/guardrails/workspace-validation.js +0 -92
- package/dist/guardrails/workspace-validation.js.map +0 -1
- package/dist/health/advisor.d.ts +0 -18
- package/dist/health/advisor.d.ts.map +0 -1
- package/dist/health/advisor.js +0 -174
- package/dist/health/advisor.js.map +0 -1
- package/dist/health/dashboard.d.ts +0 -96
- package/dist/health/dashboard.d.ts.map +0 -1
- package/dist/health/dashboard.js +0 -470
- package/dist/health/dashboard.js.map +0 -1
- package/dist/hooks/discovery-enforcement.d.ts +0 -9
- package/dist/hooks/discovery-enforcement.d.ts.map +0 -1
- package/dist/hooks/discovery-enforcement.js +0 -137
- package/dist/hooks/discovery-enforcement.js.map +0 -1
- package/dist/hooks/discovery-hook.d.ts +0 -22
- package/dist/hooks/discovery-hook.d.ts.map +0 -1
- package/dist/hooks/discovery-hook.js +0 -199
- package/dist/hooks/discovery-hook.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1499
- package/dist/index.js.map +0 -1
- package/dist/insight/emit.d.ts +0 -19
- package/dist/insight/emit.d.ts.map +0 -1
- package/dist/insight/emit.js +0 -107
- package/dist/insight/emit.js.map +0 -1
- package/dist/insight/engine-bridge.d.ts +0 -7
- package/dist/insight/engine-bridge.d.ts.map +0 -1
- package/dist/insight/engine-bridge.js +0 -6
- package/dist/insight/engine-bridge.js.map +0 -1
- package/dist/insight/index.d.ts +0 -3
- package/dist/insight/index.d.ts.map +0 -1
- package/dist/insight/index.js +0 -2
- package/dist/insight/index.js.map +0 -1
- package/dist/insight/telemetry.d.ts +0 -14
- package/dist/insight/telemetry.d.ts.map +0 -1
- package/dist/insight/telemetry.js +0 -87
- package/dist/insight/telemetry.js.map +0 -1
- package/dist/intake/candidate-paths/CandidatePathDetector.d.ts +0 -5
- package/dist/intake/candidate-paths/CandidatePathDetector.d.ts.map +0 -1
- package/dist/intake/candidate-paths/CandidatePathDetector.js +0 -173
- package/dist/intake/candidate-paths/CandidatePathDetector.js.map +0 -1
- package/dist/intake/candidate-paths/anchorRadiusExpansion.d.ts +0 -4
- package/dist/intake/candidate-paths/anchorRadiusExpansion.d.ts.map +0 -1
- package/dist/intake/candidate-paths/anchorRadiusExpansion.js +0 -66
- package/dist/intake/candidate-paths/anchorRadiusExpansion.js.map +0 -1
- package/dist/intake/candidate-paths/applyNegativeFiltering.d.ts +0 -4
- package/dist/intake/candidate-paths/applyNegativeFiltering.d.ts.map +0 -1
- package/dist/intake/candidate-paths/applyNegativeFiltering.js +0 -24
- package/dist/intake/candidate-paths/applyNegativeFiltering.js.map +0 -1
- package/dist/intake/candidate-paths/coCommitAnalyzer.d.ts +0 -3
- package/dist/intake/candidate-paths/coCommitAnalyzer.d.ts.map +0 -1
- package/dist/intake/candidate-paths/coCommitAnalyzer.js +0 -27
- package/dist/intake/candidate-paths/coCommitAnalyzer.js.map +0 -1
- package/dist/intake/candidate-paths/computeConfidence.d.ts +0 -3
- package/dist/intake/candidate-paths/computeConfidence.d.ts.map +0 -1
- package/dist/intake/candidate-paths/computeConfidence.js +0 -14
- package/dist/intake/candidate-paths/computeConfidence.js.map +0 -1
- package/dist/intake/candidate-paths/consolidateCandidates.d.ts +0 -5
- package/dist/intake/candidate-paths/consolidateCandidates.d.ts.map +0 -1
- package/dist/intake/candidate-paths/consolidateCandidates.js +0 -61
- package/dist/intake/candidate-paths/consolidateCandidates.js.map +0 -1
- package/dist/intake/candidate-paths/hierarchicalMatching.d.ts +0 -7
- package/dist/intake/candidate-paths/hierarchicalMatching.d.ts.map +0 -1
- package/dist/intake/candidate-paths/hierarchicalMatching.js +0 -46
- package/dist/intake/candidate-paths/hierarchicalMatching.js.map +0 -1
- package/dist/intake/candidate-paths/integration.d.ts +0 -7
- package/dist/intake/candidate-paths/integration.d.ts.map +0 -1
- package/dist/intake/candidate-paths/integration.js +0 -63
- package/dist/intake/candidate-paths/integration.js.map +0 -1
- package/dist/intake/candidate-paths/pathDetectionOverrides.d.ts +0 -3
- package/dist/intake/candidate-paths/pathDetectionOverrides.d.ts.map +0 -1
- package/dist/intake/candidate-paths/pathDetectionOverrides.js +0 -134
- package/dist/intake/candidate-paths/pathDetectionOverrides.js.map +0 -1
- package/dist/intake/candidate-paths/repoIndexAdapter.d.ts +0 -4
- package/dist/intake/candidate-paths/repoIndexAdapter.d.ts.map +0 -1
- package/dist/intake/candidate-paths/repoIndexAdapter.js +0 -99
- package/dist/intake/candidate-paths/repoIndexAdapter.js.map +0 -1
- package/dist/intake/candidate-paths/resolveExplicitTargets.d.ts +0 -8
- package/dist/intake/candidate-paths/resolveExplicitTargets.d.ts.map +0 -1
- package/dist/intake/candidate-paths/resolveExplicitTargets.js +0 -65
- package/dist/intake/candidate-paths/resolveExplicitTargets.js.map +0 -1
- package/dist/intake/candidate-paths/rules.d.ts +0 -13
- package/dist/intake/candidate-paths/rules.d.ts.map +0 -1
- package/dist/intake/candidate-paths/rules.js +0 -64
- package/dist/intake/candidate-paths/rules.js.map +0 -1
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.d.ts +0 -10
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.d.ts.map +0 -1
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.js +0 -73
- package/dist/intake/candidate-paths/scoreIntentSurfaceMatches.js.map +0 -1
- package/dist/intake/candidate-paths/shapeEstimator.d.ts +0 -3
- package/dist/intake/candidate-paths/shapeEstimator.d.ts.map +0 -1
- package/dist/intake/candidate-paths/shapeEstimator.js +0 -17
- package/dist/intake/candidate-paths/shapeEstimator.js.map +0 -1
- package/dist/intake/candidate-paths/types.d.ts +0 -148
- package/dist/intake/candidate-paths/types.d.ts.map +0 -1
- package/dist/intake/candidate-paths/types.js +0 -2
- package/dist/intake/candidate-paths/types.js.map +0 -1
- package/dist/intake/task-classifier/TaskClassifier.d.ts +0 -5
- package/dist/intake/task-classifier/TaskClassifier.d.ts.map +0 -1
- package/dist/intake/task-classifier/TaskClassifier.js +0 -96
- package/dist/intake/task-classifier/TaskClassifier.js.map +0 -1
- package/dist/intake/task-classifier/applyOverrides.d.ts +0 -3
- package/dist/intake/task-classifier/applyOverrides.d.ts.map +0 -1
- package/dist/intake/task-classifier/applyOverrides.js +0 -55
- package/dist/intake/task-classifier/applyOverrides.js.map +0 -1
- package/dist/intake/task-classifier/computeConfidence.d.ts +0 -3
- package/dist/intake/task-classifier/computeConfidence.d.ts.map +0 -1
- package/dist/intake/task-classifier/computeConfidence.js +0 -13
- package/dist/intake/task-classifier/computeConfidence.js.map +0 -1
- package/dist/intake/task-classifier/deriveRiskAndComplexity.d.ts +0 -4
- package/dist/intake/task-classifier/deriveRiskAndComplexity.d.ts.map +0 -1
- package/dist/intake/task-classifier/deriveRiskAndComplexity.js +0 -24
- package/dist/intake/task-classifier/deriveRiskAndComplexity.js.map +0 -1
- package/dist/intake/task-classifier/deriveTags.d.ts +0 -3
- package/dist/intake/task-classifier/deriveTags.d.ts.map +0 -1
- package/dist/intake/task-classifier/deriveTags.js +0 -43
- package/dist/intake/task-classifier/deriveTags.js.map +0 -1
- package/dist/intake/task-classifier/index.d.ts +0 -6
- package/dist/intake/task-classifier/index.d.ts.map +0 -1
- package/dist/intake/task-classifier/index.js +0 -6
- package/dist/intake/task-classifier/index.js.map +0 -1
- package/dist/intake/task-classifier/mergeScores.d.ts +0 -4
- package/dist/intake/task-classifier/mergeScores.d.ts.map +0 -1
- package/dist/intake/task-classifier/mergeScores.js +0 -68
- package/dist/intake/task-classifier/mergeScores.js.map +0 -1
- package/dist/intake/task-classifier/pathMatching.d.ts +0 -3
- package/dist/intake/task-classifier/pathMatching.d.ts.map +0 -1
- package/dist/intake/task-classifier/pathMatching.js +0 -33
- package/dist/intake/task-classifier/pathMatching.js.map +0 -1
- package/dist/intake/task-classifier/rules.d.ts +0 -28
- package/dist/intake/task-classifier/rules.d.ts.map +0 -1
- package/dist/intake/task-classifier/rules.js +0 -138
- package/dist/intake/task-classifier/rules.js.map +0 -1
- package/dist/intake/task-classifier/scoreKeywords.d.ts +0 -5
- package/dist/intake/task-classifier/scoreKeywords.d.ts.map +0 -1
- package/dist/intake/task-classifier/scoreKeywords.js +0 -41
- package/dist/intake/task-classifier/scoreKeywords.js.map +0 -1
- package/dist/intake/task-classifier/scoreMetadata.d.ts +0 -3
- package/dist/intake/task-classifier/scoreMetadata.d.ts.map +0 -1
- package/dist/intake/task-classifier/scoreMetadata.js +0 -29
- package/dist/intake/task-classifier/scoreMetadata.js.map +0 -1
- package/dist/intake/task-classifier/scorePaths.d.ts +0 -3
- package/dist/intake/task-classifier/scorePaths.d.ts.map +0 -1
- package/dist/intake/task-classifier/scorePaths.js +0 -38
- package/dist/intake/task-classifier/scorePaths.js.map +0 -1
- package/dist/intake/task-classifier/types.d.ts +0 -51
- package/dist/intake/task-classifier/types.d.ts.map +0 -1
- package/dist/intake/task-classifier/types.js +0 -2
- package/dist/intake/task-classifier/types.js.map +0 -1
- package/dist/integrations/github-actions.d.ts +0 -17
- package/dist/integrations/github-actions.d.ts.map +0 -1
- package/dist/integrations/github-actions.js +0 -77
- package/dist/integrations/github-actions.js.map +0 -1
- package/dist/intent/extractor.d.ts +0 -15
- package/dist/intent/extractor.d.ts.map +0 -1
- package/dist/intent/extractor.js +0 -149
- package/dist/intent/extractor.js.map +0 -1
- package/dist/intent/fetcher.d.ts +0 -33
- package/dist/intent/fetcher.d.ts.map +0 -1
- package/dist/intent/fetcher.js +0 -364
- package/dist/intent/fetcher.js.map +0 -1
- package/dist/intent/loader.d.ts +0 -26
- package/dist/intent/loader.d.ts.map +0 -1
- package/dist/intent/loader.js +0 -80
- package/dist/intent/loader.js.map +0 -1
- package/dist/intent/types.d.ts +0 -33
- package/dist/intent/types.d.ts.map +0 -1
- package/dist/intent/types.js +0 -9
- package/dist/intent/types.js.map +0 -1
- package/dist/intervention/drift-velocity.d.ts +0 -19
- package/dist/intervention/drift-velocity.d.ts.map +0 -1
- package/dist/intervention/drift-velocity.js +0 -107
- package/dist/intervention/drift-velocity.js.map +0 -1
- package/dist/intervention/engine.d.ts +0 -43
- package/dist/intervention/engine.d.ts.map +0 -1
- package/dist/intervention/engine.js +0 -356
- package/dist/intervention/engine.js.map +0 -1
- package/dist/intervention/templates.d.ts +0 -23
- package/dist/intervention/templates.d.ts.map +0 -1
- package/dist/intervention/templates.js +0 -167
- package/dist/intervention/templates.js.map +0 -1
- package/dist/manifest/build.d.ts +0 -19
- package/dist/manifest/build.d.ts.map +0 -1
- package/dist/manifest/build.js +0 -82
- package/dist/manifest/build.js.map +0 -1
- package/dist/manifest/schema.d.ts +0 -2
- package/dist/manifest/schema.d.ts.map +0 -1
- package/dist/manifest/schema.js +0 -2
- package/dist/manifest/schema.js.map +0 -1
- package/dist/manifest/write.d.ts +0 -13
- package/dist/manifest/write.d.ts.map +0 -1
- package/dist/manifest/write.js +0 -69
- package/dist/manifest/write.js.map +0 -1
- package/dist/mcp/server.d.ts +0 -20
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js +0 -271
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/skill-template.d.ts +0 -10
- package/dist/mcp/skill-template.d.ts.map +0 -1
- package/dist/mcp/skill-template.js +0 -75
- package/dist/mcp/skill-template.js.map +0 -1
- package/dist/memory/TaskClassifier.d.ts +0 -6
- package/dist/memory/TaskClassifier.d.ts.map +0 -1
- package/dist/memory/TaskClassifier.js +0 -344
- package/dist/memory/TaskClassifier.js.map +0 -1
- package/dist/memory/context-injection.d.ts +0 -12
- package/dist/memory/context-injection.d.ts.map +0 -1
- package/dist/memory/context-injection.js +0 -550
- package/dist/memory/context-injection.js.map +0 -1
- package/dist/memory/evidence-gates.d.ts +0 -32
- package/dist/memory/evidence-gates.d.ts.map +0 -1
- package/dist/memory/evidence-gates.js +0 -168
- package/dist/memory/evidence-gates.js.map +0 -1
- package/dist/memory/golden-patterns.d.ts +0 -68
- package/dist/memory/golden-patterns.d.ts.map +0 -1
- package/dist/memory/golden-patterns.js +0 -260
- package/dist/memory/golden-patterns.js.map +0 -1
- package/dist/memory/index.d.ts +0 -11
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js +0 -11
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/lessons.d.ts +0 -88
- package/dist/memory/lessons.d.ts.map +0 -1
- package/dist/memory/lessons.js +0 -370
- package/dist/memory/lessons.js.map +0 -1
- package/dist/memory/ontology.d.ts +0 -34
- package/dist/memory/ontology.d.ts.map +0 -1
- package/dist/memory/ontology.js +0 -125
- package/dist/memory/ontology.js.map +0 -1
- package/dist/memory/policy-artifacts.d.ts +0 -31
- package/dist/memory/policy-artifacts.d.ts.map +0 -1
- package/dist/memory/policy-artifacts.js +0 -618
- package/dist/memory/policy-artifacts.js.map +0 -1
- package/dist/memory/preamble.d.ts +0 -35
- package/dist/memory/preamble.d.ts.map +0 -1
- package/dist/memory/preamble.js +0 -114
- package/dist/memory/preamble.js.map +0 -1
- package/dist/memory/recent-truth.d.ts +0 -21
- package/dist/memory/recent-truth.d.ts.map +0 -1
- package/dist/memory/recent-truth.js +0 -78
- package/dist/memory/recent-truth.js.map +0 -1
- package/dist/memory/storage.d.ts +0 -28
- package/dist/memory/storage.d.ts.map +0 -1
- package/dist/memory/storage.js +0 -204
- package/dist/memory/storage.js.map +0 -1
- package/dist/memory/structural-trust.d.ts +0 -36
- package/dist/memory/structural-trust.d.ts.map +0 -1
- package/dist/memory/structural-trust.js +0 -77
- package/dist/memory/structural-trust.js.map +0 -1
- package/dist/memory/taskClassifierOverrides.d.ts +0 -3
- package/dist/memory/taskClassifierOverrides.d.ts.map +0 -1
- package/dist/memory/taskClassifierOverrides.js +0 -153
- package/dist/memory/taskClassifierOverrides.js.map +0 -1
- package/dist/memory/taskClassifierRules.d.ts +0 -15
- package/dist/memory/taskClassifierRules.d.ts.map +0 -1
- package/dist/memory/taskClassifierRules.js +0 -277
- package/dist/memory/taskClassifierRules.js.map +0 -1
- package/dist/memory/taskClassifierTypes.d.ts +0 -40
- package/dist/memory/taskClassifierTypes.d.ts.map +0 -1
- package/dist/memory/taskClassifierTypes.js +0 -2
- package/dist/memory/taskClassifierTypes.js.map +0 -1
- package/dist/memory/validation-ledger.d.ts +0 -28
- package/dist/memory/validation-ledger.d.ts.map +0 -1
- package/dist/memory/validation-ledger.js +0 -90
- package/dist/memory/validation-ledger.js.map +0 -1
- package/dist/merge-check/hallucination-guard.d.ts +0 -49
- package/dist/merge-check/hallucination-guard.d.ts.map +0 -1
- package/dist/merge-check/hallucination-guard.js +0 -228
- package/dist/merge-check/hallucination-guard.js.map +0 -1
- package/dist/merge-check/intent-registry.d.ts +0 -42
- package/dist/merge-check/intent-registry.d.ts.map +0 -1
- package/dist/merge-check/intent-registry.js +0 -154
- package/dist/merge-check/intent-registry.js.map +0 -1
- package/dist/merge-check/sentinel.d.ts +0 -60
- package/dist/merge-check/sentinel.d.ts.map +0 -1
- package/dist/merge-check/sentinel.js +0 -399
- package/dist/merge-check/sentinel.js.map +0 -1
- package/dist/narrative/contextNarrative.d.ts +0 -22
- package/dist/narrative/contextNarrative.d.ts.map +0 -1
- package/dist/narrative/contextNarrative.js +0 -259
- package/dist/narrative/contextNarrative.js.map +0 -1
- package/dist/onboarding.d.ts +0 -37
- package/dist/onboarding.d.ts.map +0 -1
- package/dist/onboarding.js +0 -112
- package/dist/onboarding.js.map +0 -1
- package/dist/open-shell.d.ts +0 -14
- package/dist/open-shell.d.ts.map +0 -1
- package/dist/open-shell.js +0 -191
- package/dist/open-shell.js.map +0 -1
- package/dist/policy/load.d.ts +0 -21
- package/dist/policy/load.d.ts.map +0 -1
- package/dist/policy/load.js +0 -63
- package/dist/policy/load.js.map +0 -1
- package/dist/policy/realtime.d.ts +0 -17
- package/dist/policy/realtime.d.ts.map +0 -1
- package/dist/policy/realtime.js +0 -108
- package/dist/policy/realtime.js.map +0 -1
- package/dist/policy/resolve.d.ts +0 -18
- package/dist/policy/resolve.d.ts.map +0 -1
- package/dist/policy/resolve.js +0 -86
- package/dist/policy/resolve.js.map +0 -1
- package/dist/policy/schema.d.ts +0 -22
- package/dist/policy/schema.d.ts.map +0 -1
- package/dist/policy/schema.js +0 -220
- package/dist/policy/schema.js.map +0 -1
- package/dist/pr-comment/renderer.d.ts +0 -3
- package/dist/pr-comment/renderer.d.ts.map +0 -1
- package/dist/pr-comment/renderer.js +0 -32
- package/dist/pr-comment/renderer.js.map +0 -1
- package/dist/pr-comment/templates.d.ts +0 -4
- package/dist/pr-comment/templates.d.ts.map +0 -1
- package/dist/pr-comment/templates.js +0 -9
- package/dist/pr-comment/templates.js.map +0 -1
- package/dist/pr-comment/types.d.ts +0 -13
- package/dist/pr-comment/types.d.ts.map +0 -1
- package/dist/pr-comment/types.js +0 -2
- package/dist/pr-comment/types.js.map +0 -1
- package/dist/pre-pr/checks.d.ts +0 -18
- package/dist/pre-pr/checks.d.ts.map +0 -1
- package/dist/pre-pr/checks.js +0 -440
- package/dist/pre-pr/checks.js.map +0 -1
- package/dist/pre-pr/orchestrator.d.ts +0 -30
- package/dist/pre-pr/orchestrator.d.ts.map +0 -1
- package/dist/pre-pr/orchestrator.js +0 -104
- package/dist/pre-pr/orchestrator.js.map +0 -1
- package/dist/project-config.d.ts +0 -38
- package/dist/project-config.d.ts.map +0 -1
- package/dist/project-config.js +0 -206
- package/dist/project-config.js.map +0 -1
- package/dist/prompt-coach/admission.d.ts +0 -31
- package/dist/prompt-coach/admission.d.ts.map +0 -1
- package/dist/prompt-coach/admission.js +0 -105
- package/dist/prompt-coach/admission.js.map +0 -1
- package/dist/prompt-coach/feedback.d.ts +0 -49
- package/dist/prompt-coach/feedback.d.ts.map +0 -1
- package/dist/prompt-coach/feedback.js +0 -177
- package/dist/prompt-coach/feedback.js.map +0 -1
- package/dist/prompt-coach/format.d.ts +0 -56
- package/dist/prompt-coach/format.d.ts.map +0 -1
- package/dist/prompt-coach/format.js +0 -190
- package/dist/prompt-coach/format.js.map +0 -1
- package/dist/prompt-coach/index.d.ts +0 -13
- package/dist/prompt-coach/index.d.ts.map +0 -1
- package/dist/prompt-coach/index.js +0 -13
- package/dist/prompt-coach/index.js.map +0 -1
- package/dist/prompt-coach/interactive.d.ts +0 -28
- package/dist/prompt-coach/interactive.d.ts.map +0 -1
- package/dist/prompt-coach/interactive.js +0 -118
- package/dist/prompt-coach/interactive.js.map +0 -1
- package/dist/prompt-coach/policy.d.ts +0 -67
- package/dist/prompt-coach/policy.d.ts.map +0 -1
- package/dist/prompt-coach/policy.js +0 -502
- package/dist/prompt-coach/policy.js.map +0 -1
- package/dist/prompt-coach/summary.d.ts +0 -56
- package/dist/prompt-coach/summary.d.ts.map +0 -1
- package/dist/prompt-coach/summary.js +0 -304
- package/dist/prompt-coach/summary.js.map +0 -1
- package/dist/protected-runtime/core.d.ts +0 -7
- package/dist/protected-runtime/core.d.ts.map +0 -1
- package/dist/protected-runtime/core.js +0 -24
- package/dist/protected-runtime/core.js.map +0 -1
- package/dist/protected-runtime/module-loader.d.ts +0 -9
- package/dist/protected-runtime/module-loader.d.ts.map +0 -1
- package/dist/protected-runtime/module-loader.js +0 -54
- package/dist/protected-runtime/module-loader.js.map +0 -1
- package/dist/protected-shell.d.ts +0 -2
- package/dist/protected-shell.d.ts.map +0 -1
- package/dist/protected-shell.js +0 -41
- package/dist/protected-shell.js.map +0 -1
- package/dist/release-check/engine.d.ts +0 -30
- package/dist/release-check/engine.d.ts.map +0 -1
- package/dist/release-check/engine.js +0 -726
- package/dist/release-check/engine.js.map +0 -1
- package/dist/release-check/index.d.ts +0 -16
- package/dist/release-check/index.d.ts.map +0 -1
- package/dist/release-check/index.js +0 -16
- package/dist/release-check/index.js.map +0 -1
- package/dist/release-check/output.d.ts +0 -7
- package/dist/release-check/output.d.ts.map +0 -1
- package/dist/release-check/output.js +0 -123
- package/dist/release-check/output.js.map +0 -1
- package/dist/release-truth.d.ts +0 -20
- package/dist/release-truth.d.ts.map +0 -1
- package/dist/release-truth.js +0 -114
- package/dist/release-truth.js.map +0 -1
- package/dist/review-intelligence/baseline.d.ts +0 -58
- package/dist/review-intelligence/baseline.d.ts.map +0 -1
- package/dist/review-intelligence/baseline.js +0 -99
- package/dist/review-intelligence/baseline.js.map +0 -1
- package/dist/review-intelligence/companion-check.d.ts +0 -28
- package/dist/review-intelligence/companion-check.d.ts.map +0 -1
- package/dist/review-intelligence/companion-check.js +0 -71
- package/dist/review-intelligence/companion-check.js.map +0 -1
- package/dist/review-intelligence/detectors/architecture-graph.d.ts +0 -18
- package/dist/review-intelligence/detectors/architecture-graph.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/architecture-graph.js +0 -73
- package/dist/review-intelligence/detectors/architecture-graph.js.map +0 -1
- package/dist/review-intelligence/detectors/cjs-named-import.d.ts +0 -13
- package/dist/review-intelligence/detectors/cjs-named-import.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/cjs-named-import.js +0 -134
- package/dist/review-intelligence/detectors/cjs-named-import.js.map +0 -1
- package/dist/review-intelligence/detectors/exact-count-assertion.d.ts +0 -17
- package/dist/review-intelligence/detectors/exact-count-assertion.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/exact-count-assertion.js +0 -93
- package/dist/review-intelligence/detectors/exact-count-assertion.js.map +0 -1
- package/dist/review-intelligence/detectors/exports-map-missing.d.ts +0 -14
- package/dist/review-intelligence/detectors/exports-map-missing.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/exports-map-missing.js +0 -131
- package/dist/review-intelligence/detectors/exports-map-missing.js.map +0 -1
- package/dist/review-intelligence/detectors/fixture-keyword-drift.d.ts +0 -12
- package/dist/review-intelligence/detectors/fixture-keyword-drift.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/fixture-keyword-drift.js +0 -82
- package/dist/review-intelligence/detectors/fixture-keyword-drift.js.map +0 -1
- package/dist/review-intelligence/detectors/optional-infra-crash.d.ts +0 -12
- package/dist/review-intelligence/detectors/optional-infra-crash.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/optional-infra-crash.js +0 -97
- package/dist/review-intelligence/detectors/optional-infra-crash.js.map +0 -1
- package/dist/review-intelligence/detectors/outbound-io.d.ts +0 -14
- package/dist/review-intelligence/detectors/outbound-io.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/outbound-io.js +0 -122
- package/dist/review-intelligence/detectors/outbound-io.js.map +0 -1
- package/dist/review-intelligence/detectors/pack-rules.d.ts +0 -16
- package/dist/review-intelligence/detectors/pack-rules.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/pack-rules.js +0 -107
- package/dist/review-intelligence/detectors/pack-rules.js.map +0 -1
- package/dist/review-intelligence/detectors/platform-helpers.d.ts +0 -15
- package/dist/review-intelligence/detectors/platform-helpers.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/platform-helpers.js +0 -171
- package/dist/review-intelligence/detectors/platform-helpers.js.map +0 -1
- package/dist/review-intelligence/detectors/runtime-validation.d.ts +0 -10
- package/dist/review-intelligence/detectors/runtime-validation.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/runtime-validation.js +0 -109
- package/dist/review-intelligence/detectors/runtime-validation.js.map +0 -1
- package/dist/review-intelligence/detectors/undeclared-dependency.d.ts +0 -11
- package/dist/review-intelligence/detectors/undeclared-dependency.d.ts.map +0 -1
- package/dist/review-intelligence/detectors/undeclared-dependency.js +0 -100
- package/dist/review-intelligence/detectors/undeclared-dependency.js.map +0 -1
- package/dist/review-intelligence/engine/ast-parser.d.ts +0 -90
- package/dist/review-intelligence/engine/ast-parser.d.ts.map +0 -1
- package/dist/review-intelligence/engine/ast-parser.js +0 -266
- package/dist/review-intelligence/engine/ast-parser.js.map +0 -1
- package/dist/review-intelligence/engine/dataflow.d.ts +0 -34
- package/dist/review-intelligence/engine/dataflow.d.ts.map +0 -1
- package/dist/review-intelligence/engine/dataflow.js +0 -115
- package/dist/review-intelligence/engine/dataflow.js.map +0 -1
- package/dist/review-intelligence/engine/index.d.ts +0 -7
- package/dist/review-intelligence/engine/index.d.ts.map +0 -1
- package/dist/review-intelligence/engine/index.js +0 -7
- package/dist/review-intelligence/engine/index.js.map +0 -1
- package/dist/review-intelligence/engine/symbol-resolver.d.ts +0 -34
- package/dist/review-intelligence/engine/symbol-resolver.d.ts.map +0 -1
- package/dist/review-intelligence/engine/symbol-resolver.js +0 -106
- package/dist/review-intelligence/engine/symbol-resolver.js.map +0 -1
- package/dist/review-intelligence/fingerprint.d.ts +0 -15
- package/dist/review-intelligence/fingerprint.d.ts.map +0 -1
- package/dist/review-intelligence/fingerprint.js +0 -29
- package/dist/review-intelligence/fingerprint.js.map +0 -1
- package/dist/review-intelligence/fixes/index.d.ts +0 -54
- package/dist/review-intelligence/fixes/index.d.ts.map +0 -1
- package/dist/review-intelligence/fixes/index.js +0 -346
- package/dist/review-intelligence/fixes/index.js.map +0 -1
- package/dist/review-intelligence/index.d.ts +0 -24
- package/dist/review-intelligence/index.d.ts.map +0 -1
- package/dist/review-intelligence/index.js +0 -155
- package/dist/review-intelligence/index.js.map +0 -1
- package/dist/review-intelligence/invariants.d.ts +0 -25
- package/dist/review-intelligence/invariants.d.ts.map +0 -1
- package/dist/review-intelligence/invariants.js +0 -73
- package/dist/review-intelligence/invariants.js.map +0 -1
- package/dist/review-intelligence/learning/index.d.ts +0 -39
- package/dist/review-intelligence/learning/index.d.ts.map +0 -1
- package/dist/review-intelligence/learning/index.js +0 -265
- package/dist/review-intelligence/learning/index.js.map +0 -1
- package/dist/review-intelligence/output.d.ts +0 -31
- package/dist/review-intelligence/output.d.ts.map +0 -1
- package/dist/review-intelligence/output.js +0 -224
- package/dist/review-intelligence/output.js.map +0 -1
- package/dist/review-intelligence/packs/index.d.ts +0 -69
- package/dist/review-intelligence/packs/index.d.ts.map +0 -1
- package/dist/review-intelligence/packs/index.js +0 -168
- package/dist/review-intelligence/packs/index.js.map +0 -1
- package/dist/review-intelligence/repair-guidance.d.ts +0 -11
- package/dist/review-intelligence/repair-guidance.d.ts.map +0 -1
- package/dist/review-intelligence/repair-guidance.js +0 -137
- package/dist/review-intelligence/repair-guidance.js.map +0 -1
- package/dist/review-intelligence/severity.d.ts +0 -10
- package/dist/review-intelligence/severity.d.ts.map +0 -1
- package/dist/review-intelligence/severity.js +0 -36
- package/dist/review-intelligence/severity.js.map +0 -1
- package/dist/review-intelligence/standards-discovery.d.ts +0 -12
- package/dist/review-intelligence/standards-discovery.d.ts.map +0 -1
- package/dist/review-intelligence/standards-discovery.js +0 -221
- package/dist/review-intelligence/standards-discovery.js.map +0 -1
- package/dist/review-intelligence/suppressions.d.ts +0 -53
- package/dist/review-intelligence/suppressions.d.ts.map +0 -1
- package/dist/review-intelligence/suppressions.js +0 -86
- package/dist/review-intelligence/suppressions.js.map +0 -1
- package/dist/review-intelligence/triggers.d.ts +0 -15
- package/dist/review-intelligence/triggers.d.ts.map +0 -1
- package/dist/review-intelligence/triggers.js +0 -104
- package/dist/review-intelligence/triggers.js.map +0 -1
- package/dist/review-intelligence/types.d.ts +0 -186
- package/dist/review-intelligence/types.d.ts.map +0 -1
- package/dist/review-intelligence/types.js +0 -11
- package/dist/review-intelligence/types.js.map +0 -1
- package/dist/risk-detection/heuristics.d.ts +0 -13
- package/dist/risk-detection/heuristics.d.ts.map +0 -1
- package/dist/risk-detection/heuristics.js +0 -348
- package/dist/risk-detection/heuristics.js.map +0 -1
- package/dist/risk-detection/index.d.ts +0 -20
- package/dist/risk-detection/index.d.ts.map +0 -1
- package/dist/risk-detection/index.js +0 -128
- package/dist/risk-detection/index.js.map +0 -1
- package/dist/security/export-sanitizer.d.ts +0 -76
- package/dist/security/export-sanitizer.d.ts.map +0 -1
- package/dist/security/export-sanitizer.js +0 -176
- package/dist/security/export-sanitizer.js.map +0 -1
- package/dist/security/path-summary.d.ts +0 -4
- package/dist/security/path-summary.d.ts.map +0 -1
- package/dist/security/path-summary.js +0 -94
- package/dist/security/path-summary.js.map +0 -1
- package/dist/session-id.d.ts +0 -22
- package/dist/session-id.d.ts.map +0 -1
- package/dist/session-id.js +0 -49
- package/dist/session-id.js.map +0 -1
- package/dist/session-paths.d.ts +0 -35
- package/dist/session-paths.d.ts.map +0 -1
- package/dist/session-paths.js +0 -68
- package/dist/session-paths.js.map +0 -1
- package/dist/session-registry.d.ts +0 -19
- package/dist/session-registry.d.ts.map +0 -1
- package/dist/session-registry.js +0 -182
- package/dist/session-registry.js.map +0 -1
- package/dist/session-timeline.d.ts +0 -13
- package/dist/session-timeline.d.ts.map +0 -1
- package/dist/session-timeline.js +0 -134
- package/dist/session-timeline.js.map +0 -1
- package/dist/signing/canonicalize.d.ts +0 -17
- package/dist/signing/canonicalize.d.ts.map +0 -1
- package/dist/signing/canonicalize.js +0 -50
- package/dist/signing/canonicalize.js.map +0 -1
- package/dist/signing/hmac.d.ts +0 -8
- package/dist/signing/hmac.d.ts.map +0 -1
- package/dist/signing/hmac.js +0 -16
- package/dist/signing/hmac.js.map +0 -1
- package/dist/signing/signer.d.ts +0 -16
- package/dist/signing/signer.d.ts.map +0 -1
- package/dist/signing/signer.js +0 -2
- package/dist/signing/signer.js.map +0 -1
- package/dist/templates/claude-md.d.ts +0 -12
- package/dist/templates/claude-md.d.ts.map +0 -1
- package/dist/templates/claude-md.js +0 -113
- package/dist/templates/claude-md.js.map +0 -1
- package/dist/templates/config.d.ts +0 -3
- package/dist/templates/config.d.ts.map +0 -1
- package/dist/templates/config.js +0 -154
- package/dist/templates/config.js.map +0 -1
- package/dist/templates/harness-pack.d.ts +0 -3
- package/dist/templates/harness-pack.d.ts.map +0 -1
- package/dist/templates/harness-pack.js +0 -26
- package/dist/templates/harness-pack.js.map +0 -1
- package/dist/templates/hooks.d.ts +0 -36
- package/dist/templates/hooks.d.ts.map +0 -1
- package/dist/templates/hooks.js +0 -278
- package/dist/templates/hooks.js.map +0 -1
- package/dist/templates/runtime-resolution.d.ts +0 -4
- package/dist/templates/runtime-resolution.d.ts.map +0 -1
- package/dist/templates/runtime-resolution.js +0 -76
- package/dist/templates/runtime-resolution.js.map +0 -1
- package/dist/templates/scenarios.d.ts +0 -3
- package/dist/templates/scenarios.d.ts.map +0 -1
- package/dist/templates/scenarios.js +0 -335
- package/dist/templates/scenarios.js.map +0 -1
- package/dist/utils/two-loop.d.ts +0 -36
- package/dist/utils/two-loop.d.ts.map +0 -1
- package/dist/utils/two-loop.js +0 -75
- package/dist/utils/two-loop.js.map +0 -1
- package/dist/utils/upgrade-nudge.d.ts +0 -18
- package/dist/utils/upgrade-nudge.d.ts.map +0 -1
- package/dist/utils/upgrade-nudge.js +0 -57
- package/dist/utils/upgrade-nudge.js.map +0 -1
- package/dist/verify/evaluate.d.ts +0 -10
- package/dist/verify/evaluate.d.ts.map +0 -1
- package/dist/verify/evaluate.js +0 -117
- package/dist/verify/evaluate.js.map +0 -1
- package/dist/verify/insertion-point-lock.d.ts +0 -12
- package/dist/verify/insertion-point-lock.d.ts.map +0 -1
- package/dist/verify/insertion-point-lock.js +0 -208
- package/dist/verify/insertion-point-lock.js.map +0 -1
- package/dist/verify/policy-snapshot.d.ts +0 -7
- package/dist/verify/policy-snapshot.d.ts.map +0 -1
- package/dist/verify/policy-snapshot.js +0 -36
- package/dist/verify/policy-snapshot.js.map +0 -1
- package/dist/verify/report.d.ts +0 -11
- package/dist/verify/report.d.ts.map +0 -1
- package/dist/verify/report.js +0 -64
- package/dist/verify/report.js.map +0 -1
- package/dist/verify/symbol-growth.d.ts +0 -13
- package/dist/verify/symbol-growth.d.ts.map +0 -1
- package/dist/verify/symbol-growth.js +0 -143
- package/dist/verify/symbol-growth.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -11
- package/dist/version.js.map +0 -1
package/dist/commands/verify.js
DELETED
|
@@ -1,761 +0,0 @@
|
|
|
1
|
-
import { readFileSync, existsSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
import { execSync } from 'node:child_process';
|
|
4
|
-
import { buildBundleViaEngine } from '@codeledger/core-engine';
|
|
5
|
-
import { buildRepoIndex } from '@codeledger/repo';
|
|
6
|
-
import { intentHash as computeIntentHash, intentNorm as norm, intentNormArr as normArr, } from '@codeledger/selector';
|
|
7
|
-
import { buildManifest } from '../manifest/build.js';
|
|
8
|
-
import { writeManifest } from '../manifest/write.js';
|
|
9
|
-
import { resolvePolicy } from '../policy/resolve.js';
|
|
10
|
-
import { evaluatePolicy } from '../verify/evaluate.js';
|
|
11
|
-
import { buildVerifyReport } from '../verify/report.js';
|
|
12
|
-
import { writePolicySnapshot } from '../verify/policy-snapshot.js';
|
|
13
|
-
import { canonicalize } from '../signing/canonicalize.js';
|
|
14
|
-
import { createHmacSigner } from '../signing/hmac.js';
|
|
15
|
-
import { buildChecksSummary } from '../artifacts/summary.js';
|
|
16
|
-
import { isGitHubActions, emitAnnotations, writeStepSummary } from '../integrations/github-actions.js';
|
|
17
|
-
import { CLI_VERSION } from '../version.js';
|
|
18
|
-
import { getLatestDiscovery } from '../discovery/cache.js';
|
|
19
|
-
import { checkDiffCompliance } from '../discovery/diff-compliance.js';
|
|
20
|
-
import { analyzeSymbolGrowth as analyzeSymbolGrowthForDiscovery } from '../discovery/symbol-growth.js';
|
|
21
|
-
import { detectDuplicates } from '../discovery/duplicate-detection.js';
|
|
22
|
-
import { validateOverride } from '../discovery/override.js';
|
|
23
|
-
import { runReviewIntelligence, DEFAULT_REVIEW_INTELLIGENCE_POLICY, formatHumanOutput, formatJsonOutput, formatDebugOutput, formatVerifySummaryLine, createBaseline, saveBaseline, DEFAULT_BASELINE_PATH, } from '../review-intelligence/index.js';
|
|
24
|
-
import { validateInsertionPoints } from '../verify/insertion-point-lock.js';
|
|
25
|
-
import { analyzeSymbolGrowth as analyzeSymbolGrowthForVerify } from '../verify/symbol-growth.js';
|
|
26
|
-
import { defaultTeam, emitExecutionTelemetry, emitPolicyTelemetry } from '../insight/telemetry.js';
|
|
27
|
-
import { appendReleaseTruthEventSafe, classifyConfidence, gitBranch, gitSha, repoId, readReleaseTruthEvents, deriveHotspots } from '../release-truth.js';
|
|
28
|
-
/**
|
|
29
|
-
* `codeledger verify --task "..." [--policy-root <dir>] [--artifacts-dir <dir>]`
|
|
30
|
-
*
|
|
31
|
-
* CI enforcement bridge: build bundle → compute confidence/drift → resolve policy
|
|
32
|
-
* → evaluate violations → emit report + manifest + policy snapshot.
|
|
33
|
-
*
|
|
34
|
-
* Exit codes:
|
|
35
|
-
* 0 = pass (or observe/warn mode with violations)
|
|
36
|
-
* 1 = policy fail (block mode + violations)
|
|
37
|
-
* 2 = internal error
|
|
38
|
-
*/
|
|
39
|
-
export async function runVerify(cwd, flags) {
|
|
40
|
-
const returnResult = flags['_returnResult'] === 'true';
|
|
41
|
-
// When returning structured data, suppress all console output
|
|
42
|
-
const _origLog = returnResult ? console.log : null;
|
|
43
|
-
const _origErr = returnResult ? console.error : null;
|
|
44
|
-
const _origExit = returnResult ? process.exit : null;
|
|
45
|
-
if (returnResult) {
|
|
46
|
-
console.log = () => { };
|
|
47
|
-
console.error = () => { };
|
|
48
|
-
process.exit = ((code) => { throw new _ReturnExit(code ?? 0); });
|
|
49
|
-
}
|
|
50
|
-
const task = flags['task'];
|
|
51
|
-
if (!task) {
|
|
52
|
-
if (returnResult)
|
|
53
|
-
return { passed: true, violations: 0, report: null };
|
|
54
|
-
console.error('--task is required. Usage: codeledger verify --task "your task description" [--policy-root <dir>]');
|
|
55
|
-
process.exit(2);
|
|
56
|
-
}
|
|
57
|
-
// Validate git repo
|
|
58
|
-
if (!existsSync(join(cwd, '.git'))) {
|
|
59
|
-
console.error('Not a git repository. codeledger verify requires a git repo.');
|
|
60
|
-
process.exit(2);
|
|
61
|
-
}
|
|
62
|
-
// Load config
|
|
63
|
-
const configPath = join(cwd, '.codeledger', 'config.json');
|
|
64
|
-
if (!existsSync(configPath)) {
|
|
65
|
-
console.error('No .codeledger/config.json found. Run "codeledger init" first.');
|
|
66
|
-
process.exit(2);
|
|
67
|
-
}
|
|
68
|
-
let config;
|
|
69
|
-
try {
|
|
70
|
-
config = JSON.parse(readFileSync(configPath, 'utf-8'));
|
|
71
|
-
}
|
|
72
|
-
catch {
|
|
73
|
-
console.error('Failed to parse .codeledger/config.json. Check for syntax errors.');
|
|
74
|
-
process.exit(2);
|
|
75
|
-
}
|
|
76
|
-
// Resolve policy (may throw on malformed JSON → exit 2)
|
|
77
|
-
let policy;
|
|
78
|
-
try {
|
|
79
|
-
policy = resolvePolicy({
|
|
80
|
-
cwd,
|
|
81
|
-
policyRoot: flags['policy-root'],
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
catch (err) {
|
|
85
|
-
console.error(err.message);
|
|
86
|
-
process.exit(2);
|
|
87
|
-
}
|
|
88
|
-
// Ensure repo index
|
|
89
|
-
const indexPath = join(cwd, config.workspace.cache_dir, 'repo-index.json');
|
|
90
|
-
if (!existsSync(indexPath)) {
|
|
91
|
-
buildRepoIndex({
|
|
92
|
-
root: cwd,
|
|
93
|
-
repoConfig: config.repo,
|
|
94
|
-
outputPath: indexPath,
|
|
95
|
-
log: () => { },
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
let repoIndex;
|
|
99
|
-
try {
|
|
100
|
-
repoIndex = JSON.parse(readFileSync(indexPath, 'utf-8'));
|
|
101
|
-
}
|
|
102
|
-
catch {
|
|
103
|
-
console.error('Failed to parse repo index. Try running "codeledger scan" to rebuild it.');
|
|
104
|
-
process.exit(2);
|
|
105
|
-
}
|
|
106
|
-
// Build bundle using existing engine
|
|
107
|
-
let bundle;
|
|
108
|
-
try {
|
|
109
|
-
bundle = await buildBundleViaEngine({
|
|
110
|
-
taskText: task,
|
|
111
|
-
repoIndex,
|
|
112
|
-
selectorConfig: config.selector,
|
|
113
|
-
budget: config.selector.default_budget,
|
|
114
|
-
explain: false,
|
|
115
|
-
indexPath,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
catch (err) {
|
|
119
|
-
console.error(`Bundle engine error: ${err.message}`);
|
|
120
|
-
process.exit(2);
|
|
121
|
-
}
|
|
122
|
-
// Compute intent hash
|
|
123
|
-
const contract = {
|
|
124
|
-
version: 1,
|
|
125
|
-
objective: task,
|
|
126
|
-
deliverable: null,
|
|
127
|
-
scope_in: [],
|
|
128
|
-
scope_out: [],
|
|
129
|
-
constraints: [],
|
|
130
|
-
acceptance_criteria: [],
|
|
131
|
-
risk_flags: [],
|
|
132
|
-
repo_paths_in_scope: [],
|
|
133
|
-
timestamp: '',
|
|
134
|
-
};
|
|
135
|
-
const intentHashValue = computeIntentHash(contract);
|
|
136
|
-
const normalizedIntent = {
|
|
137
|
-
acceptance_criteria: normArr(contract.acceptance_criteria),
|
|
138
|
-
constraints: normArr(contract.constraints),
|
|
139
|
-
deliverable: contract.deliverable ? norm(contract.deliverable) : null,
|
|
140
|
-
objective: norm(contract.objective),
|
|
141
|
-
repo_paths_in_scope: normArr(contract.repo_paths_in_scope),
|
|
142
|
-
risk_flags: normArr(contract.risk_flags),
|
|
143
|
-
scope_in: normArr(contract.scope_in),
|
|
144
|
-
scope_out: normArr(contract.scope_out),
|
|
145
|
-
version: contract.version,
|
|
146
|
-
};
|
|
147
|
-
// Determine artifacts directory
|
|
148
|
-
const commitSha = getCommitSha(cwd);
|
|
149
|
-
const artifactsBase = flags['artifacts-dir'] ?? join(cwd, '.codeledger', 'artifacts');
|
|
150
|
-
const sha = commitSha ?? 'unknown';
|
|
151
|
-
const artifactsDir = join(artifactsBase, sha);
|
|
152
|
-
mkdirSync(artifactsDir, { recursive: true });
|
|
153
|
-
// Compute drift from previous manifest (if exists)
|
|
154
|
-
const driftScore = computeDriftFromBaseline(artifactsBase, intentHashValue);
|
|
155
|
-
// Build manifest (Phase 1 — unchanged, no policy fields)
|
|
156
|
-
const repoName = getRepoName(cwd);
|
|
157
|
-
const manifest = buildManifest({
|
|
158
|
-
bundle,
|
|
159
|
-
repoRoot: cwd,
|
|
160
|
-
repoName,
|
|
161
|
-
commitSha,
|
|
162
|
-
codeledgerVersion: CLI_VERSION,
|
|
163
|
-
intentNormalized: normalizedIntent,
|
|
164
|
-
intentHash: intentHashValue,
|
|
165
|
-
driftScore,
|
|
166
|
-
});
|
|
167
|
-
// Load optional coverage attestation
|
|
168
|
-
let coverageAttestation;
|
|
169
|
-
const coverageAttestationPath = flags['coverage-attestation'];
|
|
170
|
-
if (coverageAttestationPath && existsSync(coverageAttestationPath)) {
|
|
171
|
-
try {
|
|
172
|
-
coverageAttestation = JSON.parse(readFileSync(coverageAttestationPath, 'utf-8'));
|
|
173
|
-
}
|
|
174
|
-
catch {
|
|
175
|
-
console.error(`Warning: Failed to parse coverage attestation at ${coverageAttestationPath}`);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
// Evaluate policy violations
|
|
179
|
-
const violations = evaluatePolicy(manifest, policy, coverageAttestation);
|
|
180
|
-
// ─── Discovery Enforcement ───────────────────────────────────────────
|
|
181
|
-
// If a discovery artifact exists, check PR diff for compliance
|
|
182
|
-
const discoveryEntry = getLatestDiscovery(cwd);
|
|
183
|
-
if (discoveryEntry) {
|
|
184
|
-
const disc = discoveryEntry.result;
|
|
185
|
-
const changedFiles = getChangedFiles(cwd);
|
|
186
|
-
// Check for strong overlap without override
|
|
187
|
-
if (disc.verdict === 'NO_GO_ALREADY_EXISTS') {
|
|
188
|
-
const override = validateOverride(cwd, task);
|
|
189
|
-
if (!override?.valid) {
|
|
190
|
-
violations.push({
|
|
191
|
-
code: 'DISCOVERY_STRONG_OVERLAP',
|
|
192
|
-
message: `Discovery verdict NO_GO_ALREADY_EXISTS: ${disc.duplication_risk}`,
|
|
193
|
-
value: disc.matches[0]?.similarity ?? 0,
|
|
194
|
-
threshold: 0.70,
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
// Check diff against prohibited files
|
|
199
|
-
const newFiles = changedFiles.filter((f) => {
|
|
200
|
-
try {
|
|
201
|
-
execSync(`git show HEAD~1:"${f}" 2>/dev/null`, {
|
|
202
|
-
cwd, encoding: 'utf-8', timeout: 3000, stdio: ['pipe', 'pipe', 'pipe'],
|
|
203
|
-
});
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
|
-
catch {
|
|
207
|
-
return true;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
const diffResult = checkDiffCompliance(changedFiles, newFiles, disc);
|
|
211
|
-
const errorViolations = diffResult.violations.filter((dv) => dv.severity === 'error');
|
|
212
|
-
for (const dv of errorViolations) {
|
|
213
|
-
violations.push({
|
|
214
|
-
code: dv.type === 'prohibited_file' ? 'DISCOVERY_PROHIBITED_FILE' : 'DISCOVERY_INSERTION_VIOLATION',
|
|
215
|
-
message: dv.message,
|
|
216
|
-
path: dv.file,
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
// Check for content duplicates
|
|
220
|
-
const dupeResult = detectDuplicates(cwd, newFiles, disc);
|
|
221
|
-
for (const d of dupeResult.duplicates) {
|
|
222
|
-
violations.push({
|
|
223
|
-
code: 'DISCOVERY_DUPLICATE_DETECTED',
|
|
224
|
-
message: d.message,
|
|
225
|
-
path: d.new_file,
|
|
226
|
-
value: d.similarity,
|
|
227
|
-
threshold: 0.75,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
// Check for excessive symbol growth
|
|
231
|
-
const symbolResult = analyzeSymbolGrowthForDiscovery(cwd, changedFiles, disc);
|
|
232
|
-
if (symbolResult.status === 'fail') {
|
|
233
|
-
violations.push({
|
|
234
|
-
code: 'DISCOVERY_SYMBOL_GROWTH',
|
|
235
|
-
message: `${symbolResult.total_new_exports} new exports detected (${symbolResult.unrelated_count} unrelated to task)`,
|
|
236
|
-
value: symbolResult.total_new_exports,
|
|
237
|
-
threshold: 20,
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
// Build verify report
|
|
242
|
-
const report = buildVerifyReport({
|
|
243
|
-
manifest,
|
|
244
|
-
policy,
|
|
245
|
-
violations,
|
|
246
|
-
codeledgerVersion: CLI_VERSION,
|
|
247
|
-
});
|
|
248
|
-
// ─── Review Intelligence ──────────────────────────────────────────────
|
|
249
|
-
const riPolicyConfig = policy.review_intelligence;
|
|
250
|
-
const riEnabled = riPolicyConfig?.enabled !== false; // enabled by default
|
|
251
|
-
let riResultForOutput;
|
|
252
|
-
const riPolicy = riPolicyConfig
|
|
253
|
-
? {
|
|
254
|
-
enabled: riPolicyConfig.enabled,
|
|
255
|
-
severity_threshold: riPolicyConfig.severity_threshold,
|
|
256
|
-
invariants: riPolicyConfig.invariants,
|
|
257
|
-
}
|
|
258
|
-
: DEFAULT_REVIEW_INTELLIGENCE_POLICY;
|
|
259
|
-
const explain = flags['explain'] === 'true';
|
|
260
|
-
const jsonOutput = flags['json'] === 'true';
|
|
261
|
-
const debugReview = flags['debug-review'] === 'true';
|
|
262
|
-
const invariantFilter = flags['invariant'];
|
|
263
|
-
const updateBaselineFlag = flags['update-baseline'] === 'true';
|
|
264
|
-
const showTriaged = flags['show-triaged'] === 'true';
|
|
265
|
-
const baselinePath = flags['baseline-path'] || DEFAULT_BASELINE_PATH;
|
|
266
|
-
// Collect changed files once — used by RI, insertion-point lock, and symbol growth
|
|
267
|
-
const changedFiles = getChangedFiles(cwd);
|
|
268
|
-
if (riEnabled) {
|
|
269
|
-
// Analyze both bundle files AND changed files from git diff.
|
|
270
|
-
// This ensures RI catches violations in all PR-changed files, not
|
|
271
|
-
// just those that happen to be in the bundle.
|
|
272
|
-
const bundleFiles = bundle.files.map((f) => f.path);
|
|
273
|
-
const allFiles = [...new Set([...bundleFiles, ...changedFiles])];
|
|
274
|
-
try {
|
|
275
|
-
const riResult = runReviewIntelligence({
|
|
276
|
-
cwd,
|
|
277
|
-
files: allFiles,
|
|
278
|
-
policy: riPolicy,
|
|
279
|
-
explain,
|
|
280
|
-
debug: debugReview,
|
|
281
|
-
invariant: invariantFilter,
|
|
282
|
-
updateBaseline: updateBaselineFlag,
|
|
283
|
-
});
|
|
284
|
-
riResultForOutput = riResult;
|
|
285
|
-
// Attach to verify report
|
|
286
|
-
report.review_intelligence = {
|
|
287
|
-
status: riResult.status,
|
|
288
|
-
findings: riResult.findings,
|
|
289
|
-
summary: riResult.summary,
|
|
290
|
-
repo_standards: riResult.repo_standards,
|
|
291
|
-
duration_ms: riResult.duration_ms,
|
|
292
|
-
};
|
|
293
|
-
// Log baseline update if requested
|
|
294
|
-
if (updateBaselineFlag) {
|
|
295
|
-
console.log('Review Intelligence: baseline updated with current findings.');
|
|
296
|
-
}
|
|
297
|
-
// If RI has new P0/P1 findings and policy is block mode, factor into decision
|
|
298
|
-
if (policy.mode === 'block' &&
|
|
299
|
-
(riResult.summary.p0 > 0 || riResult.summary.p1 > 0)) {
|
|
300
|
-
report.decision.passed = false;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
catch (riErr) {
|
|
304
|
-
console.error(`Review Intelligence error: ${riErr.message}`);
|
|
305
|
-
}
|
|
306
|
-
// --update-baseline: snapshot all current findings (pre-filter) as accepted
|
|
307
|
-
if (updateBaselineFlag) {
|
|
308
|
-
// Re-run without baseline to get ALL findings for the baseline
|
|
309
|
-
const allResult = runReviewIntelligence({
|
|
310
|
-
cwd,
|
|
311
|
-
files: allFiles,
|
|
312
|
-
policy: riPolicy,
|
|
313
|
-
explain: false,
|
|
314
|
-
debug: false,
|
|
315
|
-
invariant: invariantFilter,
|
|
316
|
-
});
|
|
317
|
-
const newBaseline = createBaseline(allResult.findings);
|
|
318
|
-
saveBaseline(baselinePath, newBaseline);
|
|
319
|
-
if (!jsonOutput) {
|
|
320
|
-
console.log(`Baseline updated: ${newBaseline.entries.length} findings accepted → ${baselinePath}`);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
// ─── Insertion-Point Lock & Symbol Growth ────────────────────────────
|
|
325
|
-
// Try to load a discovery result from the artifacts directory
|
|
326
|
-
let discoveryResult = null;
|
|
327
|
-
const discoveryPath = join(cwd, '.codeledger', 'last-discovery.json');
|
|
328
|
-
if (existsSync(discoveryPath)) {
|
|
329
|
-
try {
|
|
330
|
-
discoveryResult = JSON.parse(readFileSync(discoveryPath, 'utf-8'));
|
|
331
|
-
}
|
|
332
|
-
catch {
|
|
333
|
-
// Ignore malformed discovery result
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
// Insertion-point lock validation
|
|
337
|
-
try {
|
|
338
|
-
const ipViolations = await validateInsertionPoints(changedFiles, discoveryResult, cwd);
|
|
339
|
-
if (ipViolations.length > 0) {
|
|
340
|
-
report.insertion_point_violations = ipViolations;
|
|
341
|
-
// P1 violations in block mode should fail
|
|
342
|
-
const hasP1 = ipViolations.some((v) => v.severity === 'P1');
|
|
343
|
-
if (policy.mode === 'block' && hasP1) {
|
|
344
|
-
report.decision.passed = false;
|
|
345
|
-
}
|
|
346
|
-
if (!jsonOutput) {
|
|
347
|
-
for (const v of ipViolations) {
|
|
348
|
-
const label = policy.mode === 'observe' ? 'Info' : 'Warning';
|
|
349
|
-
console.error(`${label}: [${v.violation_type}] ${v.reason}`);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
catch (ipErr) {
|
|
355
|
-
console.error(`Insertion-point lock error: ${ipErr.message}`);
|
|
356
|
-
}
|
|
357
|
-
// Symbol growth detection
|
|
358
|
-
const baseBranch = flags['base-branch'] ?? 'main';
|
|
359
|
-
try {
|
|
360
|
-
const symbolGrowth = await analyzeSymbolGrowthForVerify(baseBranch, cwd);
|
|
361
|
-
if (symbolGrowth.per_file.length > 0) {
|
|
362
|
-
report.symbol_growth = symbolGrowth;
|
|
363
|
-
// Scope creep or API surface explosions in block mode should fail
|
|
364
|
-
if (policy.mode === 'block' &&
|
|
365
|
-
(symbolGrowth.scope_creep_detected || symbolGrowth.api_surface_explosions.length > 0)) {
|
|
366
|
-
report.decision.passed = false;
|
|
367
|
-
}
|
|
368
|
-
if (!jsonOutput && symbolGrowth.scope_creep_detected) {
|
|
369
|
-
const label = policy.mode === 'observe' ? 'Info' : 'Warning';
|
|
370
|
-
console.error(`${label}: [scope_creep] Net symbol growth ${symbolGrowth.net_growth} exceeds threshold ${symbolGrowth.threshold}`);
|
|
371
|
-
}
|
|
372
|
-
if (!jsonOutput && symbolGrowth.api_surface_explosions.length > 0) {
|
|
373
|
-
const label = policy.mode === 'observe' ? 'Info' : 'Warning';
|
|
374
|
-
for (const file of symbolGrowth.api_surface_explosions) {
|
|
375
|
-
console.error(`${label}: [api_surface_explosion] File "${file}" gained >10 new exports`);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
catch (sgErr) {
|
|
381
|
-
console.error(`Symbol growth analysis error: ${sgErr.message}`);
|
|
382
|
-
}
|
|
383
|
-
// Write all artifacts
|
|
384
|
-
const manifestPath = join(artifactsDir, 'context-manifest.json');
|
|
385
|
-
writeManifest(manifest, manifestPath);
|
|
386
|
-
const reportPath = join(artifactsDir, 'verify-report.json');
|
|
387
|
-
writeFileSync(reportPath, JSON.stringify(report, null, 2) + '\n');
|
|
388
|
-
await emitPolicyTelemetry(cwd, {
|
|
389
|
-
team: defaultTeam(cwd),
|
|
390
|
-
command: 'verify',
|
|
391
|
-
sessionId: flags['session'],
|
|
392
|
-
policyMode: 'block',
|
|
393
|
-
passed: violations.length === 0,
|
|
394
|
-
violations: violations.length,
|
|
395
|
-
triggeredRules: [],
|
|
396
|
-
satisfiedRules: [],
|
|
397
|
-
violatedRules: violations.map((violation) => ({
|
|
398
|
-
rule: violation.code,
|
|
399
|
-
enforcement: policy.resolved_from,
|
|
400
|
-
missingFiles: [],
|
|
401
|
-
})),
|
|
402
|
-
evidence: [{ kind: 'artifact', ref: reportPath }],
|
|
403
|
-
});
|
|
404
|
-
await emitExecutionTelemetry(cwd, {
|
|
405
|
-
team: defaultTeam(cwd),
|
|
406
|
-
command: 'verify',
|
|
407
|
-
sessionId: flags['session'],
|
|
408
|
-
task,
|
|
409
|
-
commandName: 'verify',
|
|
410
|
-
status: violations.length === 0 ? 'success' : 'warn',
|
|
411
|
-
exitCode: 0,
|
|
412
|
-
violations: violations.length,
|
|
413
|
-
firstPass: violations.length === 0,
|
|
414
|
-
rework: violations.length > 0,
|
|
415
|
-
writeSafe: violations.length === 0,
|
|
416
|
-
rejected: false,
|
|
417
|
-
evidence: [{ kind: 'artifact', ref: reportPath }],
|
|
418
|
-
});
|
|
419
|
-
const snapshotPath = join(artifactsDir, 'policy-snapshot.json');
|
|
420
|
-
writePolicySnapshot(policy, snapshotPath);
|
|
421
|
-
// Optionally sign manifest if secret is present
|
|
422
|
-
const secret = process.env['CODELEDGER_SIGNING_SECRET'];
|
|
423
|
-
if (secret) {
|
|
424
|
-
const signedPath = join(artifactsDir, 'signed-context-manifest.json');
|
|
425
|
-
const canonical = canonicalize(manifest);
|
|
426
|
-
const signer = createHmacSigner(secret);
|
|
427
|
-
const signatureValue = await signer.sign(Buffer.from(canonical, 'utf-8'));
|
|
428
|
-
const signed = {
|
|
429
|
-
schema_version: 'mustang/signed-manifest/v1',
|
|
430
|
-
payload: manifest,
|
|
431
|
-
signature: {
|
|
432
|
-
alg: signer.alg,
|
|
433
|
-
value: signatureValue,
|
|
434
|
-
key_id: signer.keyId,
|
|
435
|
-
},
|
|
436
|
-
};
|
|
437
|
-
writeFileSync(signedPath, JSON.stringify(signed, null, 2) + '\n');
|
|
438
|
-
}
|
|
439
|
-
// Write checks-summary.txt (Phase 5)
|
|
440
|
-
const summaryText = buildChecksSummary(report);
|
|
441
|
-
writeFileSync(join(artifactsDir, 'checks-summary.txt'), summaryText);
|
|
442
|
-
// GitHub Actions annotations (Phase 5)
|
|
443
|
-
if (isGitHubActions()) {
|
|
444
|
-
if (violations.length > 0) {
|
|
445
|
-
emitAnnotations(report);
|
|
446
|
-
}
|
|
447
|
-
writeStepSummary(report, summaryText);
|
|
448
|
-
}
|
|
449
|
-
// Mode-specific output
|
|
450
|
-
if (policy.mode === 'warn' && violations.length > 0) {
|
|
451
|
-
for (const v of violations) {
|
|
452
|
-
console.error(`Warning: [${v.code}] ${v.message}`);
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
// Summary (3-layer verdict model)
|
|
456
|
-
const policyStatus = report.decision.passed ? 'PASS' : 'FAIL';
|
|
457
|
-
const riSummary = riResultForOutput?.summary ?? { p0: 0, p1: 0, p2: 0, p3: 0, total: 0 };
|
|
458
|
-
const advisoryStatus = (riSummary.p0 > 0 || riSummary.p1 > 0)
|
|
459
|
-
? 'ISSUES_PRESENT'
|
|
460
|
-
: 'CLEAN';
|
|
461
|
-
const blockingIssues = violations.map((v) => ({ code: v.code, message: v.message, path: v.path ?? null }));
|
|
462
|
-
const advisoryIssues = (riResultForOutput?.findings ?? []).map((f) => ({
|
|
463
|
-
rule_id: f.rule_id,
|
|
464
|
-
severity: f.severity,
|
|
465
|
-
file: f.file,
|
|
466
|
-
line: f.line,
|
|
467
|
-
title: f.title,
|
|
468
|
-
}));
|
|
469
|
-
const status = !report.decision.passed
|
|
470
|
-
? 'FAIL'
|
|
471
|
-
: advisoryStatus === 'ISSUES_PRESENT'
|
|
472
|
-
? 'WARN'
|
|
473
|
-
: 'PASS';
|
|
474
|
-
const historicalEvents = readReleaseTruthEvents(cwd);
|
|
475
|
-
const priorSimilarWarns = historicalEvents.filter((event) => event.event_type === 'VERIFY_RUN' && event['verify'] && event['verify']['status'] === 'WARN').length;
|
|
476
|
-
const priorWarnsWithIncident = historicalEvents.filter((event) => event.event_type === 'POST_MERGE_OUTCOME' && (event['result'] === 'INCIDENT' || event['result'] === 'TEST_REGRESSION')).length;
|
|
477
|
-
const historicalContext = {
|
|
478
|
-
hotspot_detected: deriveHotspots(historicalEvents).length > 0,
|
|
479
|
-
prior_similar_warns: priorSimilarWarns,
|
|
480
|
-
prior_warn_to_incident_rate: priorSimilarWarns > 0 ? priorWarnsWithIncident / priorSimilarWarns : 0,
|
|
481
|
-
};
|
|
482
|
-
appendReleaseTruthEventSafe(cwd, {
|
|
483
|
-
event_type: 'VERIFY_RUN',
|
|
484
|
-
timestamp: new Date().toISOString(),
|
|
485
|
-
repo_id: repoId(cwd),
|
|
486
|
-
branch: gitBranch(cwd),
|
|
487
|
-
commit_sha: gitSha(cwd),
|
|
488
|
-
task,
|
|
489
|
-
verify: {
|
|
490
|
-
status,
|
|
491
|
-
policy_status: policyStatus,
|
|
492
|
-
advisory_status: advisoryStatus,
|
|
493
|
-
p0: riSummary.p0,
|
|
494
|
-
p1: riSummary.p1,
|
|
495
|
-
p2: riSummary.p2,
|
|
496
|
-
},
|
|
497
|
-
confidence: {
|
|
498
|
-
score: manifest.confidence.overall,
|
|
499
|
-
classification: classifyConfidence(manifest.confidence.overall),
|
|
500
|
-
},
|
|
501
|
-
artifacts: {
|
|
502
|
-
verify_snapshot: join(artifactsDir, 'verify-report.json'),
|
|
503
|
-
test_summary: join(cwd, '.codeledger', 'artifacts', 'test-summary.json'),
|
|
504
|
-
redaction_proof: join(cwd, '.codeledger', 'evidence', 'redaction-proof.json'),
|
|
505
|
-
},
|
|
506
|
-
});
|
|
507
|
-
for (const [index, finding] of advisoryIssues.entries()) {
|
|
508
|
-
if (finding.severity !== 'P0' && finding.severity !== 'P1')
|
|
509
|
-
continue;
|
|
510
|
-
appendReleaseTruthEventSafe(cwd, {
|
|
511
|
-
event_type: 'VERIFY_FINDING',
|
|
512
|
-
timestamp: new Date().toISOString(),
|
|
513
|
-
repo_id: repoId(cwd),
|
|
514
|
-
commit_sha: gitSha(cwd),
|
|
515
|
-
finding_id: `vf_${String(index + 1).padStart(3, '0')}`,
|
|
516
|
-
severity: finding.severity,
|
|
517
|
-
category: 'review_intelligence',
|
|
518
|
-
title: finding.title,
|
|
519
|
-
file_paths: finding.file ? [finding.file] : [],
|
|
520
|
-
blocking: false,
|
|
521
|
-
advisory: true,
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
// Review Intelligence output (use riResultForOutput which preserves full types)
|
|
525
|
-
if (riEnabled && riResultForOutput) {
|
|
526
|
-
if (jsonOutput) {
|
|
527
|
-
// Pure JSON mode: include verify status in the JSON envelope
|
|
528
|
-
const envelope = {
|
|
529
|
-
status,
|
|
530
|
-
policy_status: policyStatus,
|
|
531
|
-
advisory_status: advisoryStatus,
|
|
532
|
-
blocking_issues: blockingIssues,
|
|
533
|
-
advisory_issues: advisoryIssues,
|
|
534
|
-
summary: {
|
|
535
|
-
p0: riSummary.p0,
|
|
536
|
-
p1: riSummary.p1,
|
|
537
|
-
p2: riSummary.p2,
|
|
538
|
-
},
|
|
539
|
-
verify: { mode: policy.mode, violations: violations.length },
|
|
540
|
-
review_intelligence: JSON.parse(formatJsonOutput(riResultForOutput)),
|
|
541
|
-
historical_context: historicalContext,
|
|
542
|
-
};
|
|
543
|
-
console.log(JSON.stringify(envelope, null, 2));
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
const icon = status === 'PASS' ? '✅' : status === 'WARN' ? '⚠️' : '❌';
|
|
547
|
-
console.log(`VERIFY RESULT: ${icon} ${status}`);
|
|
548
|
-
console.log('');
|
|
549
|
-
console.log(`Policy: ${policyStatus}`);
|
|
550
|
-
console.log(`Advisory: ${advisoryStatus === 'CLEAN' ? 'CLEAN' : 'P1/P0 issues detected'}`);
|
|
551
|
-
if (status === 'WARN') {
|
|
552
|
-
console.log('');
|
|
553
|
-
console.log('→ This change is safe to merge but has risks');
|
|
554
|
-
console.log('→ Run: codeledger fix-suggestions');
|
|
555
|
-
}
|
|
556
|
-
console.log('');
|
|
557
|
-
console.log('Historical context:');
|
|
558
|
-
console.log(`- Hotspot detected: ${historicalContext.hotspot_detected ? 'yes' : 'no'}`);
|
|
559
|
-
console.log(`- Prior similar WARN outcomes: ${historicalContext.prior_similar_warns}`);
|
|
560
|
-
console.log(`- Warn-to-incident correlation: ${historicalContext.prior_warn_to_incident_rate.toFixed(2)}`);
|
|
561
|
-
console.log('');
|
|
562
|
-
console.log(`Verify: ${status} (${policy.mode} mode, ${violations.length} violation(s))`);
|
|
563
|
-
console.log(`Historical context: hotspot=${historicalContext.hotspot_detected ? 'yes' : 'no'}, prior_warns=${historicalContext.prior_similar_warns}, warn_incident_rate=${historicalContext.prior_warn_to_incident_rate.toFixed(2)}`);
|
|
564
|
-
console.log(formatVerifySummaryLine(riResultForOutput));
|
|
565
|
-
if (riResultForOutput.summary.total > 0 ||
|
|
566
|
-
explain ||
|
|
567
|
-
debugReview ||
|
|
568
|
-
showTriaged) {
|
|
569
|
-
console.log(formatHumanOutput(riResultForOutput, {
|
|
570
|
-
explain,
|
|
571
|
-
severityThreshold: riPolicy.severity_threshold,
|
|
572
|
-
showTriaged,
|
|
573
|
-
}));
|
|
574
|
-
}
|
|
575
|
-
if (debugReview) {
|
|
576
|
-
console.log(formatDebugOutput(riResultForOutput, {
|
|
577
|
-
filesAnalyzed: bundle.files.length,
|
|
578
|
-
triggersFound: riResultForOutput.summary.total,
|
|
579
|
-
}));
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
else {
|
|
584
|
-
// No RI or RI disabled — always print verify status
|
|
585
|
-
console.log(`VERIFY RESULT: ${status === 'PASS' ? '✅' : status === 'WARN' ? '⚠️' : '❌'} ${status}`);
|
|
586
|
-
console.log(`Policy: ${policyStatus}`);
|
|
587
|
-
console.log(`Advisory: ${advisoryStatus}`);
|
|
588
|
-
console.log(`Verify: ${status} (${policy.mode} mode, ${violations.length} violation(s))`);
|
|
589
|
-
console.log(`Historical context: hotspot=${historicalContext.hotspot_detected ? 'yes' : 'no'}, prior_warns=${historicalContext.prior_similar_warns}, warn_incident_rate=${historicalContext.prior_warn_to_incident_rate.toFixed(2)}`);
|
|
590
|
-
}
|
|
591
|
-
if (!jsonOutput) {
|
|
592
|
-
console.log(`Artifacts: ${artifactsDir}`);
|
|
593
|
-
}
|
|
594
|
-
// Structured return path for CI API (no stdout, no process.exit)
|
|
595
|
-
if (returnResult) {
|
|
596
|
-
if (_origLog)
|
|
597
|
-
console.log = _origLog;
|
|
598
|
-
if (_origErr)
|
|
599
|
-
console.error = _origErr;
|
|
600
|
-
if (_origExit)
|
|
601
|
-
process.exit = _origExit;
|
|
602
|
-
return { passed: report.decision.passed, violations: violations.length, report };
|
|
603
|
-
}
|
|
604
|
-
// Exit code based on mode
|
|
605
|
-
if (!report.decision.passed) {
|
|
606
|
-
process.exit(1);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
class _ReturnExit extends Error {
|
|
610
|
-
code;
|
|
611
|
-
constructor(code) {
|
|
612
|
-
super(`exit ${code}`);
|
|
613
|
-
this.code = code;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
export async function computeVerifyResult(cwd, task, mode) {
|
|
617
|
-
// Call runVerify with _returnResult flag — pure structured return, no stdout/exit hijacking.
|
|
618
|
-
try {
|
|
619
|
-
const result = await runVerify(cwd, {
|
|
620
|
-
task,
|
|
621
|
-
json: 'true',
|
|
622
|
-
_from_ci: 'true',
|
|
623
|
-
_returnResult: 'true',
|
|
624
|
-
});
|
|
625
|
-
if (result && typeof result === 'object' && 'passed' in result) {
|
|
626
|
-
const passed = result.passed;
|
|
627
|
-
const violations = result.violations;
|
|
628
|
-
let status = passed ? 'PASS' : 'BLOCK';
|
|
629
|
-
if (mode === 'observe' && status === 'BLOCK')
|
|
630
|
-
status = 'WARN';
|
|
631
|
-
if (mode === 'warn' && status === 'BLOCK')
|
|
632
|
-
status = 'WARN';
|
|
633
|
-
return {
|
|
634
|
-
status, mode, violations,
|
|
635
|
-
summary: violations > 0 ? `${violations} violation(s).` : 'All checks passed.',
|
|
636
|
-
ccs: null, passed,
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
// runVerify returned void (shouldn't happen with _returnResult but defensive)
|
|
640
|
-
return { status: 'PASS', mode, violations: 0, summary: 'Passed.', ccs: null, passed: true };
|
|
641
|
-
}
|
|
642
|
-
catch (err) {
|
|
643
|
-
// _ReturnExit means verify hit process.exit — extract the exit code
|
|
644
|
-
if (err instanceof _ReturnExit) {
|
|
645
|
-
const passed = err.code === 0;
|
|
646
|
-
let status = passed ? 'PASS' : 'BLOCK';
|
|
647
|
-
if (mode === 'observe' && status === 'BLOCK')
|
|
648
|
-
status = 'WARN';
|
|
649
|
-
if (mode === 'warn' && status === 'BLOCK')
|
|
650
|
-
status = 'WARN';
|
|
651
|
-
return { status, mode, violations: 0, summary: passed ? 'Passed.' : 'Failed.', ccs: null, passed };
|
|
652
|
-
}
|
|
653
|
-
return {
|
|
654
|
-
status: 'PASS', mode, violations: 0,
|
|
655
|
-
summary: `Error: ${err.message}`,
|
|
656
|
-
ccs: null, passed: true,
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
function getRepoName(cwd) {
|
|
661
|
-
try {
|
|
662
|
-
const url = execSync('git remote get-url origin', {
|
|
663
|
-
cwd,
|
|
664
|
-
encoding: 'utf-8',
|
|
665
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
666
|
-
}).trim();
|
|
667
|
-
const parts = url.replace(/\.git$/, '').split('/');
|
|
668
|
-
return parts[parts.length - 1] ?? 'unknown';
|
|
669
|
-
}
|
|
670
|
-
catch {
|
|
671
|
-
const parts = cwd.replace(/\/$/, '').split('/');
|
|
672
|
-
return parts[parts.length - 1] ?? 'unknown';
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
function getCommitSha(cwd) {
|
|
676
|
-
try {
|
|
677
|
-
return execSync('git rev-parse HEAD', {
|
|
678
|
-
cwd,
|
|
679
|
-
encoding: 'utf-8',
|
|
680
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
681
|
-
}).trim();
|
|
682
|
-
}
|
|
683
|
-
catch {
|
|
684
|
-
return null;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
/**
|
|
688
|
-
* Get changed files from the git working tree.
|
|
689
|
-
* Tries: git diff HEAD (staged+unstaged), then git diff HEAD~1 HEAD (last commit),
|
|
690
|
-
* then falls back to empty list (bundle-only analysis).
|
|
691
|
-
*/
|
|
692
|
-
function getChangedFiles(cwd) {
|
|
693
|
-
const commands = [
|
|
694
|
-
'git diff --name-only HEAD 2>/dev/null',
|
|
695
|
-
'git diff --name-only HEAD~1 HEAD 2>/dev/null',
|
|
696
|
-
'git diff --name-only --cached 2>/dev/null',
|
|
697
|
-
];
|
|
698
|
-
for (const cmd of commands) {
|
|
699
|
-
try {
|
|
700
|
-
const output = execSync(cmd, {
|
|
701
|
-
cwd,
|
|
702
|
-
encoding: 'utf-8',
|
|
703
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
704
|
-
}).trim();
|
|
705
|
-
if (output.length > 0) {
|
|
706
|
-
return output.split('\n').filter((f) => f.length > 0);
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
catch {
|
|
710
|
-
// Try next command
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
return [];
|
|
714
|
-
}
|
|
715
|
-
/**
|
|
716
|
-
* Compute drift from the most recent baseline manifest in the artifacts directory.
|
|
717
|
-
* If no previous manifest exists, drift is 0.0 (first run).
|
|
718
|
-
*/
|
|
719
|
-
function computeDriftFromBaseline(artifactsBase, currentIntentHash) {
|
|
720
|
-
if (!existsSync(artifactsBase))
|
|
721
|
-
return 0.0;
|
|
722
|
-
// Walk artifact subdirectories to find the most recent context-manifest.json
|
|
723
|
-
// (by directory name, which is a commit sha)
|
|
724
|
-
try {
|
|
725
|
-
const { readdirSync, statSync } = require('node:fs');
|
|
726
|
-
const entries = readdirSync(artifactsBase);
|
|
727
|
-
let latestManifest = null;
|
|
728
|
-
let latestMtime = 0;
|
|
729
|
-
for (const entry of entries) {
|
|
730
|
-
const manifestPath = join(artifactsBase, entry, 'context-manifest.json');
|
|
731
|
-
if (existsSync(manifestPath)) {
|
|
732
|
-
const mtime = statSync(manifestPath).mtimeMs;
|
|
733
|
-
if (mtime > latestMtime) {
|
|
734
|
-
try {
|
|
735
|
-
const content = readFileSync(manifestPath, 'utf-8');
|
|
736
|
-
const parsed = JSON.parse(content);
|
|
737
|
-
if (parsed.intent?.intent_hash) {
|
|
738
|
-
latestManifest = parsed;
|
|
739
|
-
latestMtime = mtime;
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
catch {
|
|
743
|
-
// Skip malformed files
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
if (!latestManifest)
|
|
749
|
-
return 0.0;
|
|
750
|
-
if (latestManifest.intent.intent_hash === currentIntentHash)
|
|
751
|
-
return 0.0;
|
|
752
|
-
// Different intent hash — basic drift detection
|
|
753
|
-
// Full drift would require the original TaskContractV1; for CI we use a
|
|
754
|
-
// simple binary: same hash = 0, different hash = a moderate drift signal
|
|
755
|
-
return 0.3;
|
|
756
|
-
}
|
|
757
|
-
catch {
|
|
758
|
-
return 0.0;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
//# sourceMappingURL=verify.js.map
|