@isaacriehm/cairn-core 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/align-undo/undo.js +2 -2
- package/dist/align-undo/undo.js.map +1 -1
- package/dist/attention/bulk-accept.js +104 -55
- package/dist/attention/bulk-accept.js.map +1 -1
- package/dist/attention/dedup.js +23 -10
- package/dist/attention/dedup.js.map +1 -1
- package/dist/attention/restore.js +2 -2
- package/dist/attention/restore.js.map +1 -1
- package/dist/attention/scoring.js +1 -1
- package/dist/attention/scoring.js.map +1 -1
- package/dist/attention/serve/api.d.ts +1 -0
- package/dist/attention/serve/api.js +130 -77
- package/dist/attention/serve/api.js.map +1 -1
- package/dist/attention/serve/index.d.ts +1 -0
- package/dist/attention/serve/index.js +21 -7
- package/dist/attention/serve/index.js.map +1 -1
- package/dist/attention/source-strip.js +41 -46
- package/dist/attention/source-strip.js.map +1 -1
- package/dist/claude/cache.d.ts +10 -19
- package/dist/claude/cache.js +0 -0
- package/dist/claude/cache.js.map +1 -1
- package/dist/claude/runner.d.ts +4 -6
- package/dist/claude/runner.js +242 -203
- package/dist/claude/runner.js.map +1 -1
- package/dist/claude/types.d.ts +5 -5
- package/dist/context/handoff-builder.d.ts +28 -4
- package/dist/context/handoff-builder.js +75 -157
- package/dist/context/handoff-builder.js.map +1 -1
- package/dist/context/spec-delta.js +61 -9
- package/dist/context/spec-delta.js.map +1 -1
- package/dist/context/task-summary.js +5 -1
- package/dist/context/task-summary.js.map +1 -1
- package/dist/decision-capture/id.js +1 -1
- package/dist/decision-capture/id.js.map +1 -1
- package/dist/doctor/index.d.ts +9 -11
- package/dist/doctor/index.js +118 -175
- package/dist/doctor/index.js.map +1 -1
- package/dist/drain/drain.d.ts +1 -1
- package/dist/drain/drain.js +16 -16
- package/dist/drain/drain.js.map +1 -1
- package/dist/drain/index.d.ts +1 -1
- package/dist/drain/index.js +1 -1
- package/dist/events/reader.d.ts +9 -10
- package/dist/events/reader.js +46 -57
- package/dist/events/reader.js.map +1 -1
- package/dist/events/writer.js +1 -1
- package/dist/events/writer.js.map +1 -1
- package/dist/fix-align/index.d.ts +1 -1
- package/dist/fix-align/index.js +1 -1
- package/dist/fix-align/run.d.ts +1 -1
- package/dist/fix-align/run.js +4 -3
- package/dist/fix-align/run.js.map +1 -1
- package/dist/fix-align/sentinel.d.ts +1 -2
- package/dist/fix-align/sentinel.js +3 -4
- package/dist/fix-align/sentinel.js.map +1 -1
- package/dist/gc/apply.js +1 -1
- package/dist/gc/apply.js.map +1 -1
- package/dist/gc/attested-commits.d.ts +19 -0
- package/dist/gc/attested-commits.js +48 -0
- package/dist/gc/attested-commits.js.map +1 -0
- package/dist/gc/canary.d.ts +11 -21
- package/dist/gc/canary.js +18 -24
- package/dist/gc/canary.js.map +1 -1
- package/dist/gc/citation-integrity.d.ts +11 -14
- package/dist/gc/citation-integrity.js +124 -125
- package/dist/gc/citation-integrity.js.map +1 -1
- package/dist/gc/classify.d.ts +1 -1
- package/dist/gc/classify.js +2 -2
- package/dist/gc/classify.js.map +1 -1
- package/dist/gc/completion-integrity.d.ts +6 -7
- package/dist/gc/completion-integrity.js +45 -53
- package/dist/gc/completion-integrity.js.map +1 -1
- package/dist/gc/doc-gardening.js +1 -9
- package/dist/gc/doc-gardening.js.map +1 -1
- package/dist/gc/frontmatter.js +2 -2
- package/dist/gc/frontmatter.js.map +1 -1
- package/dist/gc/index.d.ts +7 -6
- package/dist/gc/index.js +3 -2
- package/dist/gc/index.js.map +1 -1
- package/dist/gc/quality-update.d.ts +6 -10
- package/dist/gc/quality-update.js +12 -15
- package/dist/gc/quality-update.js.map +1 -1
- package/dist/gc/scope-coverage.js +1 -1
- package/dist/gc/scope-coverage.js.map +1 -1
- package/dist/gc/stub-hits.d.ts +7 -25
- package/dist/gc/stub-hits.js +14 -40
- package/dist/gc/stub-hits.js.map +1 -1
- package/dist/gc/sweep.js +15 -6
- package/dist/gc/sweep.js.map +1 -1
- package/dist/gc/types.d.ts +5 -5
- package/dist/gc/types.js +2 -2
- package/dist/gc/walk-source.js +8 -28
- package/dist/gc/walk-source.js.map +1 -1
- package/dist/hooks/defer.d.ts +9 -20
- package/dist/hooks/defer.js +10 -27
- package/dist/hooks/defer.js.map +1 -1
- package/dist/hooks/post-tool-use/allowlist-reader.d.ts +2 -1
- package/dist/hooks/post-tool-use/allowlist-reader.js +49 -34
- package/dist/hooks/post-tool-use/allowlist-reader.js.map +1 -1
- package/dist/hooks/post-tool-use/index.d.ts +3 -4
- package/dist/hooks/post-tool-use/index.js +3 -3
- package/dist/hooks/post-tool-use/index.js.map +1 -1
- package/dist/hooks/post-tool-use/legend-builder.d.ts +11 -2
- package/dist/hooks/post-tool-use/legend-builder.js +27 -2
- package/dist/hooks/post-tool-use/legend-builder.js.map +1 -1
- package/dist/hooks/post-tool-use/post-write.d.ts +8 -0
- package/dist/hooks/post-tool-use/post-write.js +112 -0
- package/dist/hooks/post-tool-use/post-write.js.map +1 -0
- package/dist/hooks/post-tool-use/read-enricher.d.ts +10 -5
- package/dist/hooks/post-tool-use/read-enricher.js +114 -149
- package/dist/hooks/post-tool-use/read-enricher.js.map +1 -1
- package/dist/hooks/post-tool-use/sot-align.d.ts +12 -0
- package/dist/hooks/post-tool-use/sot-align.js +73 -49
- package/dist/hooks/post-tool-use/sot-align.js.map +1 -1
- package/dist/hooks/post-tool-use/write-guardian.d.ts +40 -8
- package/dist/hooks/post-tool-use/write-guardian.js +202 -254
- package/dist/hooks/post-tool-use/write-guardian.js.map +1 -1
- package/dist/hooks/pre-commit/sot-align-precommit.js +2 -2
- package/dist/hooks/pre-commit/sot-align-precommit.js.map +1 -1
- package/dist/hooks/runners/index.d.ts +2 -2
- package/dist/hooks/runners/index.js +1 -1
- package/dist/hooks/runners/index.js.map +1 -1
- package/dist/hooks/runners/payload.d.ts +34 -19
- package/dist/hooks/runners/payload.js +47 -44
- package/dist/hooks/runners/payload.js.map +1 -1
- package/dist/hooks/runners/session-end.js +12 -11
- package/dist/hooks/runners/session-end.js.map +1 -1
- package/dist/hooks/runners/session-start.d.ts +4 -2
- package/dist/hooks/runners/session-start.js +88 -261
- package/dist/hooks/runners/session-start.js.map +1 -1
- package/dist/hooks/runners/stop.js +27 -8
- package/dist/hooks/runners/stop.js.map +1 -1
- package/dist/hooks/runners/user-prompt-submit.js +7 -1
- package/dist/hooks/runners/user-prompt-submit.js.map +1 -1
- package/dist/hooks/sot-align-common.d.ts +1 -2
- package/dist/hooks/sot-align-common.js +2 -2
- package/dist/hooks/sot-align-common.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/init/baseline-audit.d.ts +14 -58
- package/dist/init/baseline-audit.js +92 -320
- package/dist/init/baseline-audit.js.map +1 -1
- package/dist/init/brand-derive.d.ts +11 -15
- package/dist/init/brand-derive.js +21 -46
- package/dist/init/brand-derive.js.map +1 -1
- package/dist/init/brand-setup.d.ts +1 -1
- package/dist/init/brand-setup.js +1 -1
- package/dist/init/detect.d.ts +25 -6
- package/dist/init/detect.js +107 -136
- package/dist/init/detect.js.map +1 -1
- package/dist/init/index.d.ts +4 -4
- package/dist/init/index.js +2 -2
- package/dist/init/index.js.map +1 -1
- package/dist/init/ingest-docs.d.ts +83 -23
- package/dist/init/ingest-docs.js +648 -136
- package/dist/init/ingest-docs.js.map +1 -1
- package/dist/init/init.d.ts +29 -20
- package/dist/init/init.js +132 -290
- package/dist/init/init.js.map +1 -1
- package/dist/init/mapper-merge.js +1 -1
- package/dist/init/mapper-merge.js.map +1 -1
- package/dist/init/mapper-parallel.d.ts +1 -1
- package/dist/init/mapper-parallel.js +10 -1
- package/dist/init/mapper-parallel.js.map +1 -1
- package/dist/init/mapper.js +1 -1
- package/dist/init/mapper.js.map +1 -1
- package/dist/init/multi-dev/install.d.ts +5 -5
- package/dist/init/multi-dev/install.js +4 -4
- package/dist/init/overlay.js +1 -0
- package/dist/init/overlay.js.map +1 -1
- package/dist/init/phases/1-detect.js +1 -1
- package/dist/init/phases/1-detect.js.map +1 -1
- package/dist/init/phases/{7c-rules-merge.d.ts → 10-rules-merge.d.ts} +2 -2
- package/dist/init/phases/{7c-rules-merge.js → 10-rules-merge.js} +6 -12
- package/dist/init/phases/10-rules-merge.js.map +1 -0
- package/dist/init/phases/11-baseline.d.ts +7 -0
- package/dist/init/phases/{8-baseline.js → 11-baseline.js} +5 -9
- package/dist/init/phases/11-baseline.js.map +1 -0
- package/dist/init/phases/12-strip.d.ts +10 -0
- package/dist/init/phases/{10-strip.js → 12-strip.js} +10 -14
- package/dist/init/phases/12-strip.js.map +1 -0
- package/dist/init/phases/{12-multidev.d.ts → 13-multidev.d.ts} +2 -2
- package/dist/init/phases/{12-multidev.js → 13-multidev.js} +4 -4
- package/dist/init/phases/{12-multidev.js.map → 13-multidev.js.map} +1 -1
- package/dist/init/phases/3-mapper.d.ts +1 -1
- package/dist/init/phases/3-mapper.js +2 -2
- package/dist/init/phases/3-mapper.js.map +1 -1
- package/dist/init/phases/{3b-seed.d.ts → 4-seed.d.ts} +2 -2
- package/dist/init/phases/{3b-seed.js → 4-seed.js} +7 -7
- package/dist/init/phases/4-seed.js.map +1 -0
- package/dist/init/phases/{4-pilot.d.ts → 5-pilot.d.ts} +2 -2
- package/dist/init/phases/{4-pilot.js → 5-pilot.js} +9 -9
- package/dist/init/phases/{4-pilot.js.map → 5-pilot.js.map} +1 -1
- package/dist/init/phases/{5-brand.d.ts → 6-brand.d.ts} +2 -7
- package/dist/init/phases/{5-brand.js → 6-brand.js} +6 -14
- package/dist/init/phases/6-brand.js.map +1 -0
- package/dist/init/phases/{5b-topic-index.d.ts → 7-topic-index.d.ts} +2 -11
- package/dist/init/phases/{5b-topic-index.js → 7-topic-index.js} +9 -18
- package/dist/init/phases/7-topic-index.js.map +1 -0
- package/dist/init/phases/8-docs-ingest.d.ts +10 -0
- package/dist/init/phases/{6-docs-ingest.js → 8-docs-ingest.js} +12 -14
- package/dist/init/phases/8-docs-ingest.js.map +1 -0
- package/dist/init/phases/9-source-comments.d.ts +6 -0
- package/dist/init/phases/{7b-source-comments.js → 9-source-comments.js} +7 -26
- package/dist/init/phases/9-source-comments.js.map +1 -0
- package/dist/init/phases/index.d.ts +12 -12
- package/dist/init/phases/index.js +11 -11
- package/dist/init/phases/index.js.map +1 -1
- package/dist/init/phases/{parallel-678.d.ts → parallel-8910.d.ts} +7 -8
- package/dist/init/phases/{parallel-678.js → parallel-8910.js} +34 -46
- package/dist/init/phases/parallel-8910.js.map +1 -0
- package/dist/init/phases/source-comments-output-io.d.ts +3 -3
- package/dist/init/phases/source-comments-output-io.js +3 -3
- package/dist/init/phases/types.d.ts +1 -1
- package/dist/init/phases/types.js +10 -10
- package/dist/init/phases/types.js.map +1 -1
- package/dist/init/rules-merge/discover.d.ts +2 -2
- package/dist/init/rules-merge/discover.js +28 -43
- package/dist/init/rules-merge/discover.js.map +1 -1
- package/dist/init/rules-merge/ingest.d.ts +6 -6
- package/dist/init/rules-merge/ingest.js +9 -10
- package/dist/init/rules-merge/ingest.js.map +1 -1
- package/dist/init/rules-merge/keep-markers.d.ts +1 -1
- package/dist/init/rules-merge/keep-markers.js +1 -1
- package/dist/init/rules-merge/regenerate.d.ts +3 -3
- package/dist/init/rules-merge/regenerate.js +3 -3
- package/dist/init/seed.js +17 -24
- package/dist/init/seed.js.map +1 -1
- package/dist/init/sot-emit.d.ts +48 -8
- package/dist/init/sot-emit.js +88 -10
- package/dist/init/sot-emit.js.map +1 -1
- package/dist/init/source-comments/classify.d.ts +2 -2
- package/dist/init/source-comments/classify.js +9 -1
- package/dist/init/source-comments/classify.js.map +1 -1
- package/dist/init/source-comments/index.d.ts +1 -1
- package/dist/init/source-comments/index.js.map +1 -1
- package/dist/init/source-comments/ingest.d.ts +2 -2
- package/dist/init/source-comments/ingest.js +110 -12
- package/dist/init/source-comments/ingest.js.map +1 -1
- package/dist/init/source-comments/strip-replace.js +3 -2
- package/dist/init/source-comments/strip-replace.js.map +1 -1
- package/dist/init/source-comments/walker.d.ts +3 -26
- package/dist/init/source-comments/walker.js +18 -30
- package/dist/init/source-comments/walker.js.map +1 -1
- package/dist/init/topic-index/index.d.ts +15 -1
- package/dist/init/topic-index/index.js +84 -5
- package/dist/init/topic-index/index.js.map +1 -1
- package/dist/init/topic-index/judge.d.ts +5 -9
- package/dist/init/topic-index/judge.js +25 -17
- package/dist/init/topic-index/judge.js.map +1 -1
- package/dist/init/topic-index/resolve.d.ts +23 -3
- package/dist/init/topic-index/resolve.js +102 -16
- package/dist/init/topic-index/resolve.js.map +1 -1
- package/dist/init/topic-index/walk.d.ts +36 -4
- package/dist/init/topic-index/walk.js +78 -12
- package/dist/init/topic-index/walk.js.map +1 -1
- package/dist/lock.js +4 -1
- package/dist/lock.js.map +1 -1
- package/dist/logger.js +3 -0
- package/dist/logger.js.map +1 -1
- package/dist/mcp/history/summarizer.js +6 -1
- package/dist/mcp/history/summarizer.js.map +1 -1
- package/dist/mcp/history/walker.js +1 -1
- package/dist/mcp/history/walker.js.map +1 -1
- package/dist/mcp/path-allowlist.js +1 -1
- package/dist/mcp/path-allowlist.js.map +1 -1
- package/dist/mcp/schemas.d.ts +47 -21
- package/dist/mcp/schemas.js +38 -9
- package/dist/mcp/schemas.js.map +1 -1
- package/dist/mcp/server.js +10 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/archive.js +1 -1
- package/dist/mcp/tools/archive.js.map +1 -1
- package/dist/mcp/tools/attention-wait.js +12 -2
- package/dist/mcp/tools/attention-wait.js.map +1 -1
- package/dist/mcp/tools/bulk-accept-attention.js +29 -30
- package/dist/mcp/tools/bulk-accept-attention.js.map +1 -1
- package/dist/mcp/tools/canonical-for-topic.js +37 -15
- package/dist/mcp/tools/canonical-for-topic.js.map +1 -1
- package/dist/mcp/tools/decision-get.js +2 -2
- package/dist/mcp/tools/decision-get.js.map +1 -1
- package/dist/mcp/tools/decisions-for-symbol.js +2 -2
- package/dist/mcp/tools/decisions-for-symbol.js.map +1 -1
- package/dist/mcp/tools/get-full.js +1 -1
- package/dist/mcp/tools/get-full.js.map +1 -1
- package/dist/mcp/tools/ground-get.js +1 -1
- package/dist/mcp/tools/ground-get.js.map +1 -1
- package/dist/mcp/tools/in-scope.d.ts +8 -0
- package/dist/mcp/tools/in-scope.js +125 -0
- package/dist/mcp/tools/in-scope.js.map +1 -0
- package/dist/mcp/tools/index.js +11 -6
- package/dist/mcp/tools/index.js.map +1 -1
- package/dist/mcp/tools/init-phases.d.ts +3 -2
- package/dist/mcp/tools/init-phases.js +125 -124
- package/dist/mcp/tools/init-phases.js.map +1 -1
- package/dist/mcp/tools/invariant-get.js +2 -2
- package/dist/mcp/tools/invariant-get.js.map +1 -1
- package/dist/mcp/tools/record-decision.d.ts +4 -3
- package/dist/mcp/tools/record-decision.js +111 -36
- package/dist/mcp/tools/record-decision.js.map +1 -1
- package/dist/mcp/tools/reject-candidate.d.ts +24 -0
- package/dist/mcp/tools/reject-candidate.js +71 -0
- package/dist/mcp/tools/reject-candidate.js.map +1 -0
- package/dist/mcp/tools/resolve-attention.d.ts +5 -18
- package/dist/mcp/tools/resolve-attention.js +58 -158
- package/dist/mcp/tools/resolve-attention.js.map +1 -1
- package/dist/mcp/tools/search-candidates.d.ts +20 -0
- package/dist/mcp/tools/search-candidates.js +93 -0
- package/dist/mcp/tools/search-candidates.js.map +1 -0
- package/dist/mcp/tools/search.js +5 -4
- package/dist/mcp/tools/search.js.map +1 -1
- package/dist/mcp/tools/supersedes-chain.js +2 -2
- package/dist/mcp/tools/supersedes-chain.js.map +1 -1
- package/dist/mcp/tools/task-create.d.ts +1 -0
- package/dist/mcp/tools/task-create.js +2 -0
- package/dist/mcp/tools/task-create.js.map +1 -1
- package/dist/mcp/tools/timeline.js +1 -1
- package/dist/mcp/tools/timeline.js.map +1 -1
- package/dist/mcp/tools/types.d.ts +1 -0
- package/dist/mcp/tools/types.js +9 -1
- package/dist/mcp/tools/types.js.map +1 -1
- package/dist/sensors/attestation.d.ts +1 -1
- package/dist/sensors/attestation.js +2 -2
- package/dist/sensors/attestation.js.map +1 -1
- package/dist/sensors/catalog.d.ts +26 -28
- package/dist/sensors/catalog.js +79 -81
- package/dist/sensors/catalog.js.map +1 -1
- package/dist/sensors/decisions.d.ts +1 -1
- package/dist/sensors/decisions.js +15 -14
- package/dist/sensors/decisions.js.map +1 -1
- package/dist/sensors/diff.js +46 -22
- package/dist/sensors/diff.js.map +1 -1
- package/dist/sensors/runner.d.ts +2 -2
- package/dist/sensors/runner.js +3 -3
- package/dist/sensors/shell.d.ts +4 -0
- package/dist/sensors/shell.js +16 -0
- package/dist/sensors/shell.js.map +1 -0
- package/dist/sensors/structural.d.ts +3 -2
- package/dist/sensors/structural.js +3 -11
- package/dist/sensors/structural.js.map +1 -1
- package/dist/sensors/stub-catalog.d.ts +2 -1
- package/dist/sensors/stub-catalog.js +2 -9
- package/dist/sensors/stub-catalog.js.map +1 -1
- package/dist/sensors/types.d.ts +3 -4
- package/dist/sensors/types.js +1 -2
- package/dist/sensors/types.js.map +1 -1
- package/dist/session-start/build.js +1 -1
- package/dist/session-start/build.js.map +1 -1
- package/dist/status-line/event-queue.js +1 -1
- package/dist/status-line/index.d.ts +1 -1
- package/package.json +3 -2
- package/templates/.cairn/config/sensors.yaml +8 -8
- package/templates/attention-ui/app.js +101 -39
- package/dist/fs.d.ts +0 -5
- package/dist/fs.js +0 -11
- package/dist/fs.js.map +0 -1
- package/dist/ground/alignment-pending.d.ts +0 -28
- package/dist/ground/alignment-pending.js +0 -83
- package/dist/ground/alignment-pending.js.map +0 -1
- package/dist/ground/anchor-map.d.ts +0 -14
- package/dist/ground/anchor-map.js +0 -56
- package/dist/ground/anchor-map.js.map +0 -1
- package/dist/ground/drift.d.ts +0 -8
- package/dist/ground/drift.js +0 -23
- package/dist/ground/drift.js.map +0 -1
- package/dist/ground/frontmatter.d.ts +0 -32
- package/dist/ground/frontmatter.js +0 -77
- package/dist/ground/frontmatter.js.map +0 -1
- package/dist/ground/glob.d.ts +0 -10
- package/dist/ground/glob.js +0 -46
- package/dist/ground/glob.js.map +0 -1
- package/dist/ground/index.d.ts +0 -23
- package/dist/ground/index.js +0 -17
- package/dist/ground/index.js.map +0 -1
- package/dist/ground/ledgers.d.ts +0 -14
- package/dist/ground/ledgers.js +0 -105
- package/dist/ground/ledgers.js.map +0 -1
- package/dist/ground/manifest.d.ts +0 -10
- package/dist/ground/manifest.js +0 -84
- package/dist/ground/manifest.js.map +0 -1
- package/dist/ground/paths.d.ts +0 -41
- package/dist/ground/paths.js +0 -103
- package/dist/ground/paths.js.map +0 -1
- package/dist/ground/quality-grades.d.ts +0 -11
- package/dist/ground/quality-grades.js +0 -100
- package/dist/ground/quality-grades.js.map +0 -1
- package/dist/ground/schemas.d.ts +0 -502
- package/dist/ground/schemas.js +0 -318
- package/dist/ground/schemas.js.map +0 -1
- package/dist/ground/scope-index.d.ts +0 -96
- package/dist/ground/scope-index.js +0 -290
- package/dist/ground/scope-index.js.map +0 -1
- package/dist/ground/slug.d.ts +0 -60
- package/dist/ground/slug.js +0 -103
- package/dist/ground/slug.js.map +0 -1
- package/dist/ground/sot-bindings.d.ts +0 -14
- package/dist/ground/sot-bindings.js +0 -79
- package/dist/ground/sot-bindings.js.map +0 -1
- package/dist/ground/sot-cache.d.ts +0 -18
- package/dist/ground/sot-cache.js +0 -62
- package/dist/ground/sot-cache.js.map +0 -1
- package/dist/ground/topic-index.d.ts +0 -27
- package/dist/ground/topic-index.js +0 -82
- package/dist/ground/topic-index.js.map +0 -1
- package/dist/ground/walk.d.ts +0 -7
- package/dist/ground/walk.js +0 -53
- package/dist/ground/walk.js.map +0 -1
- package/dist/hooks/post-tool-use/ledger-cache.d.ts +0 -40
- package/dist/hooks/post-tool-use/ledger-cache.js +0 -290
- package/dist/hooks/post-tool-use/ledger-cache.js.map +0 -1
- package/dist/init/phases/10-strip.d.ts +0 -11
- package/dist/init/phases/10-strip.js.map +0 -1
- package/dist/init/phases/3b-seed.js.map +0 -1
- package/dist/init/phases/5-brand.js.map +0 -1
- package/dist/init/phases/5b-topic-index.js.map +0 -1
- package/dist/init/phases/6-docs-ingest.d.ts +0 -10
- package/dist/init/phases/6-docs-ingest.js.map +0 -1
- package/dist/init/phases/7b-source-comments.d.ts +0 -15
- package/dist/init/phases/7b-source-comments.js.map +0 -1
- package/dist/init/phases/7c-rules-merge.js.map +0 -1
- package/dist/init/phases/8-baseline.d.ts +0 -10
- package/dist/init/phases/8-baseline.js.map +0 -1
- package/dist/init/phases/parallel-678.js.map +0 -1
- package/dist/mcp/tools/decisions-in-scope.d.ts +0 -7
- package/dist/mcp/tools/decisions-in-scope.js +0 -66
- package/dist/mcp/tools/decisions-in-scope.js.map +0 -1
- package/dist/mcp/tools/invariants-in-scope.d.ts +0 -7
- package/dist/mcp/tools/invariants-in-scope.js +0 -81
- package/dist/mcp/tools/invariants-in-scope.js.map +0 -1
package/dist/ground/schemas.d.ts
DELETED
|
@@ -1,502 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const Audience: z.ZodEnum<{
|
|
3
|
-
"ai-only": "ai-only";
|
|
4
|
-
dual: "dual";
|
|
5
|
-
"human-only": "human-only";
|
|
6
|
-
}>;
|
|
7
|
-
export type Audience = z.infer<typeof Audience>;
|
|
8
|
-
export declare const ProvenanceFrontmatter: z.ZodObject<{
|
|
9
|
-
type: z.ZodOptional<z.ZodString>;
|
|
10
|
-
status: z.ZodOptional<z.ZodString>;
|
|
11
|
-
audience: z.ZodOptional<z.ZodEnum<{
|
|
12
|
-
"ai-only": "ai-only";
|
|
13
|
-
dual: "dual";
|
|
14
|
-
"human-only": "human-only";
|
|
15
|
-
}>>;
|
|
16
|
-
generated: z.ZodOptional<z.ZodString>;
|
|
17
|
-
"verified-at": z.ZodOptional<z.ZodString>;
|
|
18
|
-
"source-commits": z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
-
supersedes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.core.$loose>;
|
|
21
|
-
export type ProvenanceFrontmatter = z.infer<typeof ProvenanceFrontmatter>;
|
|
22
|
-
export declare const ManifestEntry: z.ZodObject<{
|
|
23
|
-
path: z.ZodString;
|
|
24
|
-
sha256: z.ZodString;
|
|
25
|
-
classification: z.ZodString;
|
|
26
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
27
|
-
verified_at: z.ZodOptional<z.ZodString>;
|
|
28
|
-
generator: z.ZodOptional<z.ZodString>;
|
|
29
|
-
source: z.ZodOptional<z.ZodString>;
|
|
30
|
-
related_invariants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
-
}, z.core.$strip>;
|
|
32
|
-
export type ManifestEntry = z.infer<typeof ManifestEntry>;
|
|
33
|
-
export declare const Manifest: z.ZodObject<{
|
|
34
|
-
version: z.ZodLiteral<1>;
|
|
35
|
-
generated: z.ZodString;
|
|
36
|
-
generator: z.ZodOptional<z.ZodString>;
|
|
37
|
-
files: z.ZodArray<z.ZodObject<{
|
|
38
|
-
path: z.ZodString;
|
|
39
|
-
sha256: z.ZodString;
|
|
40
|
-
classification: z.ZodString;
|
|
41
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
42
|
-
verified_at: z.ZodOptional<z.ZodString>;
|
|
43
|
-
generator: z.ZodOptional<z.ZodString>;
|
|
44
|
-
source: z.ZodOptional<z.ZodString>;
|
|
45
|
-
related_invariants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
|
-
}, z.core.$strip>>;
|
|
47
|
-
}, z.core.$strip>;
|
|
48
|
-
export type Manifest = z.infer<typeof Manifest>;
|
|
49
|
-
export declare const DecisionAssertion: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50
|
-
id: z.ZodString;
|
|
51
|
-
kind: z.ZodLiteral<"schema_must_contain">;
|
|
52
|
-
table: z.ZodString;
|
|
53
|
-
column: z.ZodString;
|
|
54
|
-
column_type: z.ZodOptional<z.ZodString>;
|
|
55
|
-
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
id: z.ZodString;
|
|
58
|
-
kind: z.ZodLiteral<"text_must_match">;
|
|
59
|
-
pattern: z.ZodString;
|
|
60
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
61
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
-
id: z.ZodString;
|
|
63
|
-
kind: z.ZodLiteral<"text_must_not_match">;
|
|
64
|
-
pattern: z.ZodString;
|
|
65
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
kind: z.ZodLiteral<"index_must_exist">;
|
|
69
|
-
table: z.ZodString;
|
|
70
|
-
columns: z.ZodArray<z.ZodString>;
|
|
71
|
-
where: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
id: z.ZodString;
|
|
74
|
-
kind: z.ZodLiteral<"ast_pattern">;
|
|
75
|
-
language: z.ZodString;
|
|
76
|
-
pattern: z.ZodString;
|
|
77
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
78
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
-
id: z.ZodString;
|
|
80
|
-
kind: z.ZodLiteral<"file_must_not_be_modified">;
|
|
81
|
-
path: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
id: z.ZodString;
|
|
84
|
-
kind: z.ZodLiteral<"query_must_filter_by">;
|
|
85
|
-
orm: z.ZodString;
|
|
86
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
87
|
-
table: z.ZodString;
|
|
88
|
-
columns: z.ZodArray<z.ZodString>;
|
|
89
|
-
operator: z.ZodEnum<{
|
|
90
|
-
in: "in";
|
|
91
|
-
eq: "eq";
|
|
92
|
-
between: "between";
|
|
93
|
-
is_not_null: "is_not_null";
|
|
94
|
-
}>;
|
|
95
|
-
require_combination: z.ZodEnum<{
|
|
96
|
-
and: "and";
|
|
97
|
-
or: "or";
|
|
98
|
-
}>;
|
|
99
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
-
id: z.ZodString;
|
|
101
|
-
kind: z.ZodLiteral<"route_must_have_guard">;
|
|
102
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
103
|
-
guard: z.ZodString;
|
|
104
|
-
require_on: z.ZodArray<z.ZodString>;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
id: z.ZodString;
|
|
107
|
-
kind: z.ZodLiteral<"event_must_emit">;
|
|
108
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
109
|
-
after_method: z.ZodString;
|
|
110
|
-
event_key: z.ZodString;
|
|
111
|
-
payload_must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
-
id: z.ZodString;
|
|
114
|
-
kind: z.ZodLiteral<"service_method_must_call">;
|
|
115
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
116
|
-
in_method: z.ZodString;
|
|
117
|
-
must_call: z.ZodString;
|
|
118
|
-
before_returning: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
-
id: z.ZodString;
|
|
121
|
-
kind: z.ZodLiteral<"human_review_hint">;
|
|
122
|
-
description: z.ZodString;
|
|
123
|
-
}, z.core.$strip>], "kind">;
|
|
124
|
-
export type DecisionAssertion = z.infer<typeof DecisionAssertion>;
|
|
125
|
-
/**
|
|
126
|
-
* sot_kind = where the canonical prose lives for this DEC.
|
|
127
|
-
* "ledger" — body in this DEC file is canonical (source-comment essay,
|
|
128
|
-
* operator-recorded). Lens renders body verbatim.
|
|
129
|
-
* "path" — sot_path points at the canonical location (doc paragraph,
|
|
130
|
-
* CLAUDE.md section). Lens renders live content from there.
|
|
131
|
-
*/
|
|
132
|
-
export declare const SotKind: z.ZodEnum<{
|
|
133
|
-
path: "path";
|
|
134
|
-
ledger: "ledger";
|
|
135
|
-
}>;
|
|
136
|
-
export type SotKind = z.infer<typeof SotKind>;
|
|
137
|
-
export declare const DecisionFrontmatter: z.ZodObject<{
|
|
138
|
-
id: z.ZodString;
|
|
139
|
-
title: z.ZodString;
|
|
140
|
-
type: z.ZodOptional<z.ZodLiteral<"adr">>;
|
|
141
|
-
status: z.ZodString;
|
|
142
|
-
audience: z.ZodOptional<z.ZodEnum<{
|
|
143
|
-
"ai-only": "ai-only";
|
|
144
|
-
dual: "dual";
|
|
145
|
-
"human-only": "human-only";
|
|
146
|
-
}>>;
|
|
147
|
-
generated: z.ZodOptional<z.ZodString>;
|
|
148
|
-
"verified-at": z.ZodOptional<z.ZodString>;
|
|
149
|
-
"source-commits": z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
150
|
-
decided_at: z.ZodOptional<z.ZodString>;
|
|
151
|
-
decided_by: z.ZodOptional<z.ZodString>;
|
|
152
|
-
scope_globs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
-
supersedes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
-
superseded_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
-
assertions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
156
|
-
id: z.ZodString;
|
|
157
|
-
kind: z.ZodLiteral<"schema_must_contain">;
|
|
158
|
-
table: z.ZodString;
|
|
159
|
-
column: z.ZodString;
|
|
160
|
-
column_type: z.ZodOptional<z.ZodString>;
|
|
161
|
-
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
163
|
-
id: z.ZodString;
|
|
164
|
-
kind: z.ZodLiteral<"text_must_match">;
|
|
165
|
-
pattern: z.ZodString;
|
|
166
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
167
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
168
|
-
id: z.ZodString;
|
|
169
|
-
kind: z.ZodLiteral<"text_must_not_match">;
|
|
170
|
-
pattern: z.ZodString;
|
|
171
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
172
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
-
id: z.ZodString;
|
|
174
|
-
kind: z.ZodLiteral<"index_must_exist">;
|
|
175
|
-
table: z.ZodString;
|
|
176
|
-
columns: z.ZodArray<z.ZodString>;
|
|
177
|
-
where: z.ZodOptional<z.ZodString>;
|
|
178
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
-
id: z.ZodString;
|
|
180
|
-
kind: z.ZodLiteral<"ast_pattern">;
|
|
181
|
-
language: z.ZodString;
|
|
182
|
-
pattern: z.ZodString;
|
|
183
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
184
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
-
id: z.ZodString;
|
|
186
|
-
kind: z.ZodLiteral<"file_must_not_be_modified">;
|
|
187
|
-
path: z.ZodString;
|
|
188
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
189
|
-
id: z.ZodString;
|
|
190
|
-
kind: z.ZodLiteral<"query_must_filter_by">;
|
|
191
|
-
orm: z.ZodString;
|
|
192
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
193
|
-
table: z.ZodString;
|
|
194
|
-
columns: z.ZodArray<z.ZodString>;
|
|
195
|
-
operator: z.ZodEnum<{
|
|
196
|
-
in: "in";
|
|
197
|
-
eq: "eq";
|
|
198
|
-
between: "between";
|
|
199
|
-
is_not_null: "is_not_null";
|
|
200
|
-
}>;
|
|
201
|
-
require_combination: z.ZodEnum<{
|
|
202
|
-
and: "and";
|
|
203
|
-
or: "or";
|
|
204
|
-
}>;
|
|
205
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
-
id: z.ZodString;
|
|
207
|
-
kind: z.ZodLiteral<"route_must_have_guard">;
|
|
208
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
209
|
-
guard: z.ZodString;
|
|
210
|
-
require_on: z.ZodArray<z.ZodString>;
|
|
211
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
212
|
-
id: z.ZodString;
|
|
213
|
-
kind: z.ZodLiteral<"event_must_emit">;
|
|
214
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
215
|
-
after_method: z.ZodString;
|
|
216
|
-
event_key: z.ZodString;
|
|
217
|
-
payload_must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
218
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
219
|
-
id: z.ZodString;
|
|
220
|
-
kind: z.ZodLiteral<"service_method_must_call">;
|
|
221
|
-
in_globs: z.ZodArray<z.ZodString>;
|
|
222
|
-
in_method: z.ZodString;
|
|
223
|
-
must_call: z.ZodString;
|
|
224
|
-
before_returning: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
-
id: z.ZodString;
|
|
227
|
-
kind: z.ZodLiteral<"human_review_hint">;
|
|
228
|
-
description: z.ZodString;
|
|
229
|
-
}, z.core.$strip>], "kind">>>;
|
|
230
|
-
human_review_hint: z.ZodOptional<z.ZodString>;
|
|
231
|
-
related_invariants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
|
-
sot_kind: z.ZodEnum<{
|
|
233
|
-
path: "path";
|
|
234
|
-
ledger: "ledger";
|
|
235
|
-
}>;
|
|
236
|
-
sot_path: z.ZodString;
|
|
237
|
-
sot_content_hash: z.ZodString;
|
|
238
|
-
related: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
-
derived_from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
-
}, z.core.$loose>;
|
|
241
|
-
export type DecisionFrontmatter = z.infer<typeof DecisionFrontmatter>;
|
|
242
|
-
export declare const InvariantFrontmatter: z.ZodObject<{
|
|
243
|
-
id: z.ZodString;
|
|
244
|
-
title: z.ZodString;
|
|
245
|
-
type: z.ZodOptional<z.ZodLiteral<"invariant">>;
|
|
246
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
247
|
-
superseded: "superseded";
|
|
248
|
-
archived: "archived";
|
|
249
|
-
active: "active";
|
|
250
|
-
}>>;
|
|
251
|
-
audience: z.ZodOptional<z.ZodEnum<{
|
|
252
|
-
"ai-only": "ai-only";
|
|
253
|
-
dual: "dual";
|
|
254
|
-
"human-only": "human-only";
|
|
255
|
-
}>>;
|
|
256
|
-
generated: z.ZodOptional<z.ZodString>;
|
|
257
|
-
"verified-at": z.ZodOptional<z.ZodString>;
|
|
258
|
-
source_run: z.ZodOptional<z.ZodString>;
|
|
259
|
-
source_decision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
-
introduced_for_bug: z.ZodOptional<z.ZodString>;
|
|
261
|
-
sensor: z.ZodOptional<z.ZodString>;
|
|
262
|
-
e2e: z.ZodOptional<z.ZodString>;
|
|
263
|
-
naming_convention: z.ZodOptional<z.ZodString>;
|
|
264
|
-
superseded_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
265
|
-
sot_kind: z.ZodEnum<{
|
|
266
|
-
path: "path";
|
|
267
|
-
ledger: "ledger";
|
|
268
|
-
}>;
|
|
269
|
-
sot_path: z.ZodString;
|
|
270
|
-
sot_content_hash: z.ZodString;
|
|
271
|
-
related: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
272
|
-
derived_from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
|
-
}, z.core.$loose>;
|
|
274
|
-
export type InvariantFrontmatter = z.infer<typeof InvariantFrontmatter>;
|
|
275
|
-
export declare const DecisionLedgerEntry: z.ZodObject<{
|
|
276
|
-
id: z.ZodString;
|
|
277
|
-
title: z.ZodString;
|
|
278
|
-
status: z.ZodString;
|
|
279
|
-
scope_globs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
280
|
-
supersedes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
|
-
superseded_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
-
}, z.core.$strip>;
|
|
283
|
-
export type DecisionLedgerEntry = z.infer<typeof DecisionLedgerEntry>;
|
|
284
|
-
export declare const InvariantLedgerEntry: z.ZodObject<{
|
|
285
|
-
id: z.ZodString;
|
|
286
|
-
title: z.ZodString;
|
|
287
|
-
status: z.ZodString;
|
|
288
|
-
source_decision: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
-
superseded_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
-
}, z.core.$strip>;
|
|
291
|
-
export type InvariantLedgerEntry = z.infer<typeof InvariantLedgerEntry>;
|
|
292
|
-
export declare const QualityGrade: z.ZodObject<{
|
|
293
|
-
module: z.ZodString;
|
|
294
|
-
score: z.ZodNumber;
|
|
295
|
-
pass_rate: z.ZodNumber;
|
|
296
|
-
drift_count: z.ZodNumber;
|
|
297
|
-
last_updated: z.ZodString;
|
|
298
|
-
recent_run_count: z.ZodNumber;
|
|
299
|
-
}, z.core.$strip>;
|
|
300
|
-
export type QualityGrade = z.infer<typeof QualityGrade>;
|
|
301
|
-
export declare const QualityGrades: z.ZodObject<{
|
|
302
|
-
version: z.ZodLiteral<1>;
|
|
303
|
-
generated: z.ZodString;
|
|
304
|
-
modules: z.ZodArray<z.ZodObject<{
|
|
305
|
-
module: z.ZodString;
|
|
306
|
-
score: z.ZodNumber;
|
|
307
|
-
pass_rate: z.ZodNumber;
|
|
308
|
-
drift_count: z.ZodNumber;
|
|
309
|
-
last_updated: z.ZodString;
|
|
310
|
-
recent_run_count: z.ZodNumber;
|
|
311
|
-
}, z.core.$strip>>;
|
|
312
|
-
}, z.core.$strip>;
|
|
313
|
-
export type QualityGrades = z.infer<typeof QualityGrades>;
|
|
314
|
-
/**
|
|
315
|
-
* Topic-index entry — one row per content-fingerprint slug across all
|
|
316
|
-
* scanned sources. `sot_source` is the canonical source path picked by
|
|
317
|
-
* priority order (docs/* > CLAUDE.md > AGENTS.md > source comments).
|
|
318
|
-
* `candidates` lists every place the same prose appears (one becomes the
|
|
319
|
-
* SoT, the rest become §DEC-<id> cites).
|
|
320
|
-
*/
|
|
321
|
-
export declare const TopicIndexEntry: z.ZodObject<{
|
|
322
|
-
slug: z.ZodString;
|
|
323
|
-
dec_id: z.ZodOptional<z.ZodString>;
|
|
324
|
-
sot_source: z.ZodString;
|
|
325
|
-
candidates: z.ZodArray<z.ZodObject<{
|
|
326
|
-
file: z.ZodString;
|
|
327
|
-
kind: z.ZodEnum<{
|
|
328
|
-
doc: "doc";
|
|
329
|
-
claudemd: "claudemd";
|
|
330
|
-
agentsmd: "agentsmd";
|
|
331
|
-
rule: "rule";
|
|
332
|
-
"source-comment": "source-comment";
|
|
333
|
-
}>;
|
|
334
|
-
anchor: z.ZodOptional<z.ZodString>;
|
|
335
|
-
line_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
336
|
-
}, z.core.$strip>>;
|
|
337
|
-
created_at: z.ZodString;
|
|
338
|
-
}, z.core.$strip>;
|
|
339
|
-
export type TopicIndexEntry = z.infer<typeof TopicIndexEntry>;
|
|
340
|
-
export declare const TopicIndex: z.ZodObject<{
|
|
341
|
-
version: z.ZodLiteral<1>;
|
|
342
|
-
generated: z.ZodString;
|
|
343
|
-
topics: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
344
|
-
slug: z.ZodString;
|
|
345
|
-
dec_id: z.ZodOptional<z.ZodString>;
|
|
346
|
-
sot_source: z.ZodString;
|
|
347
|
-
candidates: z.ZodArray<z.ZodObject<{
|
|
348
|
-
file: z.ZodString;
|
|
349
|
-
kind: z.ZodEnum<{
|
|
350
|
-
doc: "doc";
|
|
351
|
-
claudemd: "claudemd";
|
|
352
|
-
agentsmd: "agentsmd";
|
|
353
|
-
rule: "rule";
|
|
354
|
-
"source-comment": "source-comment";
|
|
355
|
-
}>;
|
|
356
|
-
anchor: z.ZodOptional<z.ZodString>;
|
|
357
|
-
line_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
358
|
-
}, z.core.$strip>>;
|
|
359
|
-
created_at: z.ZodString;
|
|
360
|
-
}, z.core.$strip>>;
|
|
361
|
-
}, z.core.$strip>;
|
|
362
|
-
export type TopicIndex = z.infer<typeof TopicIndex>;
|
|
363
|
-
/**
|
|
364
|
-
* SoT bindings — bidirectional map between DEC ids and their canonical
|
|
365
|
-
* source paths. Forward index is one-to-one. Reverse index is one-to-many
|
|
366
|
-
* because supersedes chains keep the same sot_path across multiple DEC
|
|
367
|
-
* ids.
|
|
368
|
-
*/
|
|
369
|
-
export declare const SotBindings: z.ZodObject<{
|
|
370
|
-
version: z.ZodLiteral<1>;
|
|
371
|
-
generated: z.ZodString;
|
|
372
|
-
forward: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
373
|
-
reverse: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
374
|
-
}, z.core.$strip>;
|
|
375
|
-
export type SotBindings = z.infer<typeof SotBindings>;
|
|
376
|
-
/**
|
|
377
|
-
* Sot-cache — tokenized DEC body shingles for Jaccard pre-filter in the
|
|
378
|
-
* Layer A alignment hook. Mtime-keyed so the cache rebuilds incrementally
|
|
379
|
-
* on PostToolUse Write events.
|
|
380
|
-
*/
|
|
381
|
-
export declare const SotCacheEntry: z.ZodObject<{
|
|
382
|
-
dec_id: z.ZodString;
|
|
383
|
-
sot_path: z.ZodString;
|
|
384
|
-
body_hash: z.ZodString;
|
|
385
|
-
tokens: z.ZodArray<z.ZodString>;
|
|
386
|
-
shingles: z.ZodArray<z.ZodString>;
|
|
387
|
-
mtime_ms: z.ZodNumber;
|
|
388
|
-
}, z.core.$strip>;
|
|
389
|
-
export type SotCacheEntry = z.infer<typeof SotCacheEntry>;
|
|
390
|
-
export declare const SotCache: z.ZodObject<{
|
|
391
|
-
version: z.ZodLiteral<1>;
|
|
392
|
-
generated: z.ZodString;
|
|
393
|
-
entries: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
394
|
-
dec_id: z.ZodString;
|
|
395
|
-
sot_path: z.ZodString;
|
|
396
|
-
body_hash: z.ZodString;
|
|
397
|
-
tokens: z.ZodArray<z.ZodString>;
|
|
398
|
-
shingles: z.ZodArray<z.ZodString>;
|
|
399
|
-
mtime_ms: z.ZodNumber;
|
|
400
|
-
}, z.core.$strip>>;
|
|
401
|
-
}, z.core.$strip>;
|
|
402
|
-
export type SotCache = z.infer<typeof SotCache>;
|
|
403
|
-
/**
|
|
404
|
-
* Anchor-map — external map from topic slug to its current location in
|
|
405
|
-
* source. Allows operator's docs to stay pristine (no `<!-- cairn-anchor -->`
|
|
406
|
-
* injected) while drift detection reconciles via content_hash.
|
|
407
|
-
*/
|
|
408
|
-
export declare const AnchorMapEntry: z.ZodObject<{
|
|
409
|
-
file: z.ZodString;
|
|
410
|
-
current_anchor: z.ZodOptional<z.ZodString>;
|
|
411
|
-
content_hash: z.ZodString;
|
|
412
|
-
line_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
413
|
-
kind: z.ZodEnum<{
|
|
414
|
-
doc: "doc";
|
|
415
|
-
claudemd: "claudemd";
|
|
416
|
-
agentsmd: "agentsmd";
|
|
417
|
-
rule: "rule";
|
|
418
|
-
"source-comment": "source-comment";
|
|
419
|
-
}>;
|
|
420
|
-
}, z.core.$strip>;
|
|
421
|
-
export type AnchorMapEntry = z.infer<typeof AnchorMapEntry>;
|
|
422
|
-
export declare const AnchorMap: z.ZodObject<{
|
|
423
|
-
version: z.ZodLiteral<1>;
|
|
424
|
-
generated: z.ZodString;
|
|
425
|
-
anchors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
426
|
-
file: z.ZodString;
|
|
427
|
-
current_anchor: z.ZodOptional<z.ZodString>;
|
|
428
|
-
content_hash: z.ZodString;
|
|
429
|
-
line_range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
430
|
-
kind: z.ZodEnum<{
|
|
431
|
-
doc: "doc";
|
|
432
|
-
claudemd: "claudemd";
|
|
433
|
-
agentsmd: "agentsmd";
|
|
434
|
-
rule: "rule";
|
|
435
|
-
"source-comment": "source-comment";
|
|
436
|
-
}>;
|
|
437
|
-
}, z.core.$strip>>;
|
|
438
|
-
}, z.core.$strip>;
|
|
439
|
-
export type AnchorMap = z.infer<typeof AnchorMap>;
|
|
440
|
-
export declare const DriftEvent: z.ZodObject<{
|
|
441
|
-
ts: z.ZodString;
|
|
442
|
-
kind: z.ZodEnum<{
|
|
443
|
-
frontmatter_stale: "frontmatter_stale";
|
|
444
|
-
generator_drift: "generator_drift";
|
|
445
|
-
broken_link: "broken_link";
|
|
446
|
-
orphan_path: "orphan_path";
|
|
447
|
-
manifest_hash_changed: "manifest_hash_changed";
|
|
448
|
-
"doc-drift": "doc-drift";
|
|
449
|
-
"paragraph-deleted": "paragraph-deleted";
|
|
450
|
-
"pre-commit-drift": "pre-commit-drift";
|
|
451
|
-
}>;
|
|
452
|
-
path: z.ZodString;
|
|
453
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
454
|
-
severity: z.ZodDefault<z.ZodEnum<{
|
|
455
|
-
soft: "soft";
|
|
456
|
-
hard: "hard";
|
|
457
|
-
}>>;
|
|
458
|
-
dec_id: z.ZodOptional<z.ZodString>;
|
|
459
|
-
}, z.core.$strip>;
|
|
460
|
-
export type DriftEvent = z.infer<typeof DriftEvent>;
|
|
461
|
-
/**
|
|
462
|
-
* Layer B pre-commit-drift log entry written by the git pre-commit
|
|
463
|
-
* hook (`cairn hook pre-commit-align`). Layer C SessionStart drain
|
|
464
|
-
* consumes this file, re-checks each entry against the (possibly
|
|
465
|
-
* changed) source location, and runs the Haiku judge for ambiguous
|
|
466
|
-
* candidates.
|
|
467
|
-
*
|
|
468
|
-
* Path: `.cairn/staleness/pre-commit-deferred.jsonl`.
|
|
469
|
-
*
|
|
470
|
-
* `tier: tier1` — deterministic match passed (Jaccard ≥ 0.85, shingle
|
|
471
|
-
* ≥ 0.6, length ratio 0.5–2.0). Layer C can auto-cite without Haiku
|
|
472
|
-
* if the block survives.
|
|
473
|
-
*
|
|
474
|
-
* `tier: tier2-3` — Jaccard pre-filter survivors only; Tier 1 didn't
|
|
475
|
-
* fire. Layer C invokes Haiku dedup judge.
|
|
476
|
-
*/
|
|
477
|
-
export declare const PreCommitDriftCandidate: z.ZodObject<{
|
|
478
|
-
id: z.ZodString;
|
|
479
|
-
similarity: z.ZodNumber;
|
|
480
|
-
body_hash: z.ZodString;
|
|
481
|
-
sot_path: z.ZodString;
|
|
482
|
-
}, z.core.$strip>;
|
|
483
|
-
export type PreCommitDriftCandidate = z.infer<typeof PreCommitDriftCandidate>;
|
|
484
|
-
export declare const PreCommitDriftLogEntry: z.ZodObject<{
|
|
485
|
-
ts: z.ZodString;
|
|
486
|
-
file: z.ZodString;
|
|
487
|
-
block_start_line: z.ZodNumber;
|
|
488
|
-
block_end_line: z.ZodNumber;
|
|
489
|
-
block_content_hash: z.ZodString;
|
|
490
|
-
block_prose: z.ZodString;
|
|
491
|
-
tier: z.ZodEnum<{
|
|
492
|
-
tier1: "tier1";
|
|
493
|
-
"tier2-3": "tier2-3";
|
|
494
|
-
}>;
|
|
495
|
-
candidates: z.ZodArray<z.ZodObject<{
|
|
496
|
-
id: z.ZodString;
|
|
497
|
-
similarity: z.ZodNumber;
|
|
498
|
-
body_hash: z.ZodString;
|
|
499
|
-
sot_path: z.ZodString;
|
|
500
|
-
}, z.core.$strip>>;
|
|
501
|
-
}, z.core.$strip>;
|
|
502
|
-
export type PreCommitDriftLogEntry = z.infer<typeof PreCommitDriftLogEntry>;
|