codebaseiq 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +481 -0
- package/LICENSE +202 -0
- package/README.md +349 -0
- package/dist/augment-vue-worker.js +2 -0
- package/dist/call-graph-evidence-gNsxjCW8.d.ts +16 -0
- package/dist/change-analysis-types-CCtoCHbC.d.ts +9 -0
- package/dist/chunk-2Q2LW5JW.js +14 -0
- package/dist/chunk-2X7V4HS4.js +88 -0
- package/dist/chunk-34WBMAYK.js +2 -0
- package/dist/chunk-35NLDRZC.js +2 -0
- package/dist/chunk-362QOSFD.js +3 -0
- package/dist/chunk-3IER7Q6H.js +12 -0
- package/dist/chunk-3JSXXYTZ.js +345 -0
- package/dist/chunk-3LCDIREB.js +4 -0
- package/dist/chunk-476NR5B7.js +2 -0
- package/dist/chunk-4FC325IF.js +30 -0
- package/dist/chunk-4WKDMDEW.js +9 -0
- package/dist/chunk-4XTAUQFD.js +2 -0
- package/dist/chunk-5PUWMSDU.js +26 -0
- package/dist/chunk-5VKBFZZU.js +3 -0
- package/dist/chunk-6BQ3DSPK.js +2 -0
- package/dist/chunk-6CS3UQTN.js +3 -0
- package/dist/chunk-6MUIJMVL.js +6 -0
- package/dist/chunk-6NW7MU72.js +40 -0
- package/dist/chunk-6OAHRI2D.js +6 -0
- package/dist/chunk-6YTSKJJ3.js +2 -0
- package/dist/chunk-7FND7D7N.js +2 -0
- package/dist/chunk-7MGU3HPH.js +2 -0
- package/dist/chunk-7NVGT435.js +2 -0
- package/dist/chunk-7XAN6GKB.js +2 -0
- package/dist/chunk-AAQQPKCU.js +2 -0
- package/dist/chunk-ADTBPVUZ.js +21 -0
- package/dist/chunk-AKB7V7TV.js +2 -0
- package/dist/chunk-ANFVSJWQ.js +11 -0
- package/dist/chunk-B2OB55RR.js +3 -0
- package/dist/chunk-B3UYV66Z.js +4 -0
- package/dist/chunk-B75HZHUP.js +2 -0
- package/dist/chunk-BFFZDZQV.js +2 -0
- package/dist/chunk-BGBBVSH4.js +2 -0
- package/dist/chunk-BH5F2Q4O.js +2 -0
- package/dist/chunk-BJ6SQAEN.js +2 -0
- package/dist/chunk-BMYOV5GP.js +77 -0
- package/dist/chunk-BVAJLC5A.js +7 -0
- package/dist/chunk-C6SBF2WH.js +4 -0
- package/dist/chunk-C74PPYLA.js +3 -0
- package/dist/chunk-C7QOQX32.js +8 -0
- package/dist/chunk-CAUCPUOF.js +7 -0
- package/dist/chunk-CO5R3UNA.js +2 -0
- package/dist/chunk-CQP3THUZ.js +7 -0
- package/dist/chunk-CVYSU6BX.js +16 -0
- package/dist/chunk-CWONGW6P.js +3 -0
- package/dist/chunk-DDZ7VHWV.js +20 -0
- package/dist/chunk-DGXRDLV5.js +2 -0
- package/dist/chunk-DO6WQD2T.js +3 -0
- package/dist/chunk-DQMDCD24.js +2 -0
- package/dist/chunk-DR2LURYU.js +3 -0
- package/dist/chunk-DRENNWRG.js +2 -0
- package/dist/chunk-ECQBG7PW.js +564 -0
- package/dist/chunk-EF2R3WNQ.js +2 -0
- package/dist/chunk-ELNRLMC5.js +29 -0
- package/dist/chunk-EMNIHCRB.js +18 -0
- package/dist/chunk-ENCCHKM6.js +5 -0
- package/dist/chunk-EZNMUY67.js +5 -0
- package/dist/chunk-FAJQ7LWY.js +3 -0
- package/dist/chunk-FDGD5AB5.js +2 -0
- package/dist/chunk-FETNQCFO.js +117 -0
- package/dist/chunk-FM5BPL4V.js +60 -0
- package/dist/chunk-FQKZWM4L.js +49 -0
- package/dist/chunk-FW53T7EB.js +2 -0
- package/dist/chunk-G6XFR4ZL.js +4 -0
- package/dist/chunk-GCHRX4YW.js +4 -0
- package/dist/chunk-GTIYTDRE.js +562 -0
- package/dist/chunk-GTXSJDCO.js +2 -0
- package/dist/chunk-GW6Z3WGY.js +2 -0
- package/dist/chunk-H3LGFZVK.js +2 -0
- package/dist/chunk-HKQUXIFO.js +2 -0
- package/dist/chunk-HOA5YGOH.js +3 -0
- package/dist/chunk-HPJRBHVT.js +3 -0
- package/dist/chunk-HRWGYWRJ.js +49 -0
- package/dist/chunk-I2T2LLK2.js +4 -0
- package/dist/chunk-ICFDQHAM.js +3 -0
- package/dist/chunk-ID63777H.js +4 -0
- package/dist/chunk-IJ4HMYBE.js +3 -0
- package/dist/chunk-ILMHV3KM.js +2 -0
- package/dist/chunk-IOP6FWIM.js +2 -0
- package/dist/chunk-IRQOAM5G.js +2 -0
- package/dist/chunk-J77SU6VA.js +38 -0
- package/dist/chunk-JE3WZ6II.js +2 -0
- package/dist/chunk-JEJLSICM.js +4 -0
- package/dist/chunk-JOIRNPPY.js +2 -0
- package/dist/chunk-JSOYNVWH.js +3 -0
- package/dist/chunk-KMITESMT.js +2 -0
- package/dist/chunk-KUW32IRO.js +2 -0
- package/dist/chunk-KWVHSKHK.js +31 -0
- package/dist/chunk-L4NRUAGJ.js +18 -0
- package/dist/chunk-L57ZKWVG.js +6 -0
- package/dist/chunk-LTA3BRZX.js +2 -0
- package/dist/chunk-LU3BMVH2.js +10 -0
- package/dist/chunk-LZYFLFEH.js +2 -0
- package/dist/chunk-MOVBWNIP.js +16 -0
- package/dist/chunk-MVB3DAEY.js +3 -0
- package/dist/chunk-N3IQCBCF.js +29 -0
- package/dist/chunk-NAUD7LCA.js +2 -0
- package/dist/chunk-NCZUNH3E.js +109 -0
- package/dist/chunk-NE6IU5ZD.js +5 -0
- package/dist/chunk-NEDP5RFQ.js +60 -0
- package/dist/chunk-NMTSZXCL.js +2 -0
- package/dist/chunk-NNJ2KZZG.js +4 -0
- package/dist/chunk-NNO6A2PO.js +2 -0
- package/dist/chunk-NNOKTMZT.js +20 -0
- package/dist/chunk-O6QTXQPJ.js +13 -0
- package/dist/chunk-OANDYLJQ.js +2 -0
- package/dist/chunk-OFBE4NGP.js +2 -0
- package/dist/chunk-OGTFJ3XD.js +2 -0
- package/dist/chunk-OL6KJP3N.js +16 -0
- package/dist/chunk-OLF4MA5W.js +8 -0
- package/dist/chunk-OTOKVOJ3.js +2 -0
- package/dist/chunk-OVTS4DKB.js +2 -0
- package/dist/chunk-OZYRSMSH.js +3 -0
- package/dist/chunk-P5XHIJHI.js +2 -0
- package/dist/chunk-PBI2LFKH.js +2 -0
- package/dist/chunk-PIOMTC27.js +2 -0
- package/dist/chunk-PTAWHLVJ.js +6 -0
- package/dist/chunk-PX4RYAAK.js +2 -0
- package/dist/chunk-PYAB5SM6.js +7 -0
- package/dist/chunk-Q5ELPRKQ.js +2 -0
- package/dist/chunk-Q65CQ4XL.js +2 -0
- package/dist/chunk-Q72QSKXC.js +308 -0
- package/dist/chunk-QCN62RTF.js +3 -0
- package/dist/chunk-QDCCHMVZ.js +2 -0
- package/dist/chunk-QHRNXP3C.js +3 -0
- package/dist/chunk-QKPLA6IC.js +2 -0
- package/dist/chunk-QOKYJ33H.js +2 -0
- package/dist/chunk-QW7EP6WI.js +21 -0
- package/dist/chunk-R2NOK63J.js +4 -0
- package/dist/chunk-RBAS5ZHI.js +2 -0
- package/dist/chunk-RDBI2RXU.js +9 -0
- package/dist/chunk-RKEJ6VTF.js +73 -0
- package/dist/chunk-RR7SX44N.js +35 -0
- package/dist/chunk-RU65DDUP.js +215 -0
- package/dist/chunk-SELM5MER.js +2 -0
- package/dist/chunk-SGX43S2L.js +2 -0
- package/dist/chunk-SMRBZ6EC.js +2 -0
- package/dist/chunk-SNNWPCN7.js +4 -0
- package/dist/chunk-ST7V3SKN.js +2 -0
- package/dist/chunk-SWHMHUKF.js +2 -0
- package/dist/chunk-SYDJMPES.js +2 -0
- package/dist/chunk-SZD2KF7Q.js +2 -0
- package/dist/chunk-T3DGWPXM.js +3 -0
- package/dist/chunk-TFZB6XTM.js +239 -0
- package/dist/chunk-TIIC3ZE7.js +2 -0
- package/dist/chunk-TRRC4ZJ7.js +2 -0
- package/dist/chunk-TXXOEMZJ.js +2 -0
- package/dist/chunk-UBGWN7I4.js +2 -0
- package/dist/chunk-UCD3H3UZ.js +5 -0
- package/dist/chunk-UDS562V4.js +5 -0
- package/dist/chunk-UNBY47BC.js +3 -0
- package/dist/chunk-UP3BUZR5.js +74 -0
- package/dist/chunk-UXM43C7T.js +3 -0
- package/dist/chunk-UZGZB3VB.js +3 -0
- package/dist/chunk-VE5AVNMP.js +2 -0
- package/dist/chunk-VEXUL62T.js +2 -0
- package/dist/chunk-VFY6Y2H6.js +61 -0
- package/dist/chunk-VUIYB2V3.js +2 -0
- package/dist/chunk-VXYS3FZD.js +23 -0
- package/dist/chunk-WE5RZHZ7.js +5 -0
- package/dist/chunk-WMPRTGH2.js +2 -0
- package/dist/chunk-WOQBZPIF.js +2 -0
- package/dist/chunk-XLQ3GLWZ.js +2 -0
- package/dist/chunk-XME3HPXZ.js +2 -0
- package/dist/chunk-XMQ23E27.js +2 -0
- package/dist/chunk-XWUOUWYI.js +2 -0
- package/dist/chunk-XZEE23VG.js +5 -0
- package/dist/chunk-Y6KHROC3.js +7 -0
- package/dist/chunk-YESXMKX3.js +3 -0
- package/dist/chunk-YMGZZEW4.js +2 -0
- package/dist/chunk-YSNONTJ2.js +2 -0
- package/dist/chunk-YUKYB54I.js +1 -0
- package/dist/chunk-YVCIMIOC.js +12 -0
- package/dist/chunk-Z54RD7VL.js +3 -0
- package/dist/chunk-ZKX2FRS6.js +15 -0
- package/dist/chunk-ZMI2JSX2.js +2 -0
- package/dist/chunk-ZV3JV5G5.js +8 -0
- package/dist/chunk-ZZ3MWF33.js +4 -0
- package/dist/chunk-ZZXSWSN6.js +2 -0
- package/dist/cli-context-3SNLDYBM.js +3 -0
- package/dist/cli-context-T3B7W6GG.js +2 -0
- package/dist/cli-program-YNOXO72B.js +7 -0
- package/dist/cli.js +3 -0
- package/dist/code-DlqpBDd0.d.ts +121 -0
- package/dist/command-descriptors-6AOUKWW7.js +346 -0
- package/dist/command-descriptors-ZFKJSRUP.js +344 -0
- package/dist/command-panels-SZONPMLJ.js +3 -0
- package/dist/config-types-BNoC96J3.d.ts +560 -0
- package/dist/db-D7sauVFH.d.ts +95 -0
- package/dist/direct-navigation-DP4LVMRX.js +3 -0
- package/dist/direct-navigation-FLUS3BT6.js +2 -0
- package/dist/exploration-topology-BG4v30HZ.d.ts +256 -0
- package/dist/file-dep-graph-Bqg3t3Px.d.ts +4 -0
- package/dist/file-kind-BKCVMNUf.d.ts +10 -0
- package/dist/frontend-behavior-evidence-EfM4_9bc.d.ts +4 -0
- package/dist/git-history-ChNHbfZQ.d.ts +13 -0
- package/dist/graph-evidence-BIFqyisO.d.ts +131 -0
- package/dist/health-DJaZXg8I.d.ts +340 -0
- package/dist/index.d.ts +183 -0
- package/dist/index.js +2 -0
- package/dist/invocation-command-descriptors-QT2JMY5J.js +3 -0
- package/dist/invocation-command-descriptors-YN4QJEAX.js +2 -0
- package/dist/next-anchor-candidates-BwMczMvX.d.ts +90 -0
- package/dist/output-continuation-command-2V2SL4TD.js +2 -0
- package/dist/output-continuation-command-65J5IP3O.js +3 -0
- package/dist/postinstall.js +3 -0
- package/dist/project-reindex-5JOKXAXT.js +2 -0
- package/dist/project-reindex-UQBIKO4M.js +3 -0
- package/dist/queries/affected.d.ts +40 -0
- package/dist/queries/affected.js +2 -0
- package/dist/queries/anchors.d.ts +123 -0
- package/dist/queries/anchors.js +2 -0
- package/dist/queries/architecture.d.ts +166 -0
- package/dist/queries/architecture.js +2 -0
- package/dist/queries/bottlenecks.d.ts +68 -0
- package/dist/queries/bottlenecks.js +2 -0
- package/dist/queries/by-kind.d.ts +27 -0
- package/dist/queries/by-kind.js +2 -0
- package/dist/queries/call-graph.d.ts +52 -0
- package/dist/queries/call-graph.js +2 -0
- package/dist/queries/change-surface.d.ts +55 -0
- package/dist/queries/change-surface.js +2 -0
- package/dist/queries/cleanup-plan.d.ts +66 -0
- package/dist/queries/cleanup-plan.js +2 -0
- package/dist/queries/co-change.d.ts +90 -0
- package/dist/queries/co-change.js +2 -0
- package/dist/queries/code.d.ts +6 -0
- package/dist/queries/code.js +2 -0
- package/dist/queries/complexity-hotspots.d.ts +61 -0
- package/dist/queries/complexity-hotspots.js +2 -0
- package/dist/queries/complexity.d.ts +74 -0
- package/dist/queries/complexity.js +2 -0
- package/dist/queries/context.d.ts +146 -0
- package/dist/queries/context.js +2 -0
- package/dist/queries/convergence.d.ts +33 -0
- package/dist/queries/convergence.js +2 -0
- package/dist/queries/coupling.d.ts +32 -0
- package/dist/queries/coupling.js +2 -0
- package/dist/queries/cycles.d.ts +66 -0
- package/dist/queries/cycles.js +2 -0
- package/dist/queries/dataflow.d.ts +77 -0
- package/dist/queries/dataflow.js +2 -0
- package/dist/queries/dead.d.ts +58 -0
- package/dist/queries/dead.js +2 -0
- package/dist/queries/decorative-checkers.d.ts +34 -0
- package/dist/queries/decorative-checkers.js +2 -0
- package/dist/queries/deep-chains.d.ts +5 -0
- package/dist/queries/deep-chains.js +2 -0
- package/dist/queries/dependence-slice.d.ts +46 -0
- package/dist/queries/dependence-slice.js +2 -0
- package/dist/queries/dependency-depth.d.ts +49 -0
- package/dist/queries/dependency-depth.js +2 -0
- package/dist/queries/deps.d.ts +15 -0
- package/dist/queries/deps.js +2 -0
- package/dist/queries/diff-impact.d.ts +165 -0
- package/dist/queries/diff-impact.js +2 -0
- package/dist/queries/doc-drift.d.ts +115 -0
- package/dist/queries/doc-drift.js +2 -0
- package/dist/queries/drift.d.ts +79 -0
- package/dist/queries/drift.js +2 -0
- package/dist/queries/duplicate-bodies.d.ts +55 -0
- package/dist/queries/duplicate-bodies.js +2 -0
- package/dist/queries/entry-map.d.ts +121 -0
- package/dist/queries/entry-map.js +2 -0
- package/dist/queries/evidence.d.ts +70 -0
- package/dist/queries/evidence.js +2 -0
- package/dist/queries/extract-candidates.d.ts +52 -0
- package/dist/queries/extract-candidates.js +2 -0
- package/dist/queries/fan.d.ts +53 -0
- package/dist/queries/fan.js +2 -0
- package/dist/queries/files.d.ts +20 -0
- package/dist/queries/files.js +2 -0
- package/dist/queries/health.d.ts +8 -0
- package/dist/queries/health.js +2 -0
- package/dist/queries/hierarchy.d.ts +21 -0
- package/dist/queries/hierarchy.js +2 -0
- package/dist/queries/hotspots.d.ts +42 -0
- package/dist/queries/hotspots.js +2 -0
- package/dist/queries/imports.d.ts +34 -0
- package/dist/queries/imports.js +2 -0
- package/dist/queries/incomplete-migration.d.ts +90 -0
- package/dist/queries/incomplete-migration.js +2 -0
- package/dist/queries/index.d.ts +180 -0
- package/dist/queries/index.js +2 -0
- package/dist/queries/isolated.d.ts +24 -0
- package/dist/queries/isolated.js +2 -0
- package/dist/queries/locality-candidates.d.ts +51 -0
- package/dist/queries/locality-candidates.js +2 -0
- package/dist/queries/members.d.ts +21 -0
- package/dist/queries/members.js +2 -0
- package/dist/queries/methods.d.ts +43 -0
- package/dist/queries/methods.js +2 -0
- package/dist/queries/not-implemented.d.ts +33 -0
- package/dist/queries/not-implemented.js +2 -0
- package/dist/queries/outline.d.ts +22 -0
- package/dist/queries/outline.js +2 -0
- package/dist/queries/passthrough-candidates.d.ts +41 -0
- package/dist/queries/passthrough-candidates.js +2 -0
- package/dist/queries/plan-context.d.ts +33 -0
- package/dist/queries/plan-context.js +2 -0
- package/dist/queries/react-component-duplicates.d.ts +39 -0
- package/dist/queries/react-component-duplicates.js +2 -0
- package/dist/queries/react-hook-candidates.d.ts +44 -0
- package/dist/queries/react-hook-candidates.js +2 -0
- package/dist/queries/react-large-component-pressure.d.ts +34 -0
- package/dist/queries/react-large-component-pressure.js +2 -0
- package/dist/queries/recent-duplicates.d.ts +79 -0
- package/dist/queries/recent-duplicates.js +2 -0
- package/dist/queries/redundant-reexports.d.ts +37 -0
- package/dist/queries/redundant-reexports.js +2 -0
- package/dist/queries/reference-neighborhood.d.ts +4 -0
- package/dist/queries/reference-neighborhood.js +2 -0
- package/dist/queries/reference-reachability.d.ts +48 -0
- package/dist/queries/reference-reachability.js +2 -0
- package/dist/queries/refs.d.ts +13 -0
- package/dist/queries/refs.js +2 -0
- package/dist/queries/self-audit.d.ts +65 -0
- package/dist/queries/self-audit.js +2 -0
- package/dist/queries/similar-chains.d.ts +48 -0
- package/dist/queries/similar-chains.js +2 -0
- package/dist/queries/similar-files.d.ts +35 -0
- package/dist/queries/similar-files.js +2 -0
- package/dist/queries/similar-signatures.d.ts +46 -0
- package/dist/queries/similar-signatures.js +2 -0
- package/dist/queries/similar.d.ts +187 -0
- package/dist/queries/similar.js +2 -0
- package/dist/queries/slice.d.ts +4 -0
- package/dist/queries/slice.js +2 -0
- package/dist/queries/source-inspection.d.ts +209 -0
- package/dist/queries/source-inspection.js +2 -0
- package/dist/queries/source-search.d.ts +85 -0
- package/dist/queries/source-search.js +2 -0
- package/dist/queries/stale-abstractions.d.ts +72 -0
- package/dist/queries/stale-abstractions.js +2 -0
- package/dist/queries/stats.d.ts +15 -0
- package/dist/queries/stats.js +2 -0
- package/dist/queries/surface.d.ts +22 -0
- package/dist/queries/surface.js +2 -0
- package/dist/queries/symbols.d.ts +14 -0
- package/dist/queries/symbols.js +2 -0
- package/dist/queries/system-map.d.ts +449 -0
- package/dist/queries/system-map.js +2 -0
- package/dist/queries/system.d.ts +21 -0
- package/dist/queries/system.js +2 -0
- package/dist/queries/test-quality.d.ts +56 -0
- package/dist/queries/test-quality.js +2 -0
- package/dist/queries/trace.d.ts +68 -0
- package/dist/queries/trace.js +2 -0
- package/dist/queries/twin-ab.d.ts +66 -0
- package/dist/queries/twin-ab.js +2 -0
- package/dist/queries/twin-drift.d.ts +119 -0
- package/dist/queries/twin-drift.js +2 -0
- package/dist/queries/unused-imports.d.ts +4 -0
- package/dist/queries/unused-imports.js +2 -0
- package/dist/queries/unused-params.d.ts +38 -0
- package/dist/queries/unused-params.js +2 -0
- package/dist/queries/value-flow.d.ts +42 -0
- package/dist/queries/value-flow.js +2 -0
- package/dist/queries/vue-component-duplicates.d.ts +43 -0
- package/dist/queries/vue-component-duplicates.js +2 -0
- package/dist/queries/vue-composable-candidates.d.ts +44 -0
- package/dist/queries/vue-composable-candidates.js +2 -0
- package/dist/queries/vue-large-view-pressure.d.ts +41 -0
- package/dist/queries/vue-large-view-pressure.js +2 -0
- package/dist/queries/wrapper-candidates.d.ts +34 -0
- package/dist/queries/wrapper-candidates.js +2 -0
- package/dist/reindex-worker.js +3 -0
- package/dist/reindex.d.ts +254 -0
- package/dist/reindex.js +298 -0
- package/dist/repository-text-C0Q8VYdN.d.ts +19 -0
- package/dist/runtime.d.ts +555 -0
- package/dist/runtime.js +4 -0
- package/dist/rust-semantic-session-server.js +2 -0
- package/dist/rust-semantic-session-worker.js +2 -0
- package/dist/rust-semantic-worker.js +2 -0
- package/dist/scip-cli-B7N3haxa.d.ts +67 -0
- package/dist/source-snippet-_wrcgmZc.d.ts +15 -0
- package/dist/symbol-types-BIQwfoAx.d.ts +74 -0
- package/dist/typescript-mailbox-worker.js +2 -0
- package/dist/watch-server.js +8 -0
- package/docs/AGENT_GUIDE.md +148 -0
- package/docs/AI_FAILURE_MODES.md +43 -0
- package/docs/API.md +40 -0
- package/docs/API_EVOLUTION.md +77 -0
- package/docs/CLI_JSON_OUTPUT.md +389 -0
- package/docs/COMMAND_REFERENCE.md +294 -0
- package/docs/CONFIGURATION_WRITE_SAFETY.md +131 -0
- package/docs/DETECTOR_GUIDE.md +46 -0
- package/docs/DURABILITY.md +159 -0
- package/docs/INDEX_GENERATIONS.md +167 -0
- package/docs/LOCK_PROTOCOL.md +133 -0
- package/docs/MAILBOX_LIFECYCLE.md +224 -0
- package/docs/REGEX_POLICY.md +36 -0
- package/docs/REINDEX_METADATA_COMPATIBILITY.md +104 -0
- package/docs/RUST_DURABLE_SESSION_PROTOCOL.md +126 -0
- package/docs/SECURITY_MODEL.md +125 -0
- package/docs/TELEMETRY_RETENTION.md +84 -0
- package/docs/TIME_SEMANTICS.md +77 -0
- package/docs/WATCH_REFRESH_REQUESTS.md +123 -0
- package/docs/WINDOWS_SIDECAR_RELEASE.md +424 -0
- package/docs/accuracy-audit-checklist.md +304 -0
- package/docs/accuracy-hardening-goal.md +500 -0
- package/docs/analyzer-inventory.md +78 -0
- package/docs/analyzer-validation-protocol.md +84 -0
- package/docs/architecture-coherence-vision.md +254 -0
- package/docs/assets/codebaseiq-logo-dark.svg +21 -0
- package/docs/assets/codebaseiq-logo.svg +24 -0
- package/docs/locality-analyzer-design.md +193 -0
- package/docs/schemas/cli-json-envelope.schema.json +237 -0
- package/docs/schemas/cli-output-page.schema.json +104 -0
- package/docs/schemas/npm-release-state.schema.json +146 -0
- package/docs/schemas/observation-receipt.schema.json +164 -0
- package/docs/schemas/project-config.schema.json +318 -0
- package/docs/schemas/suppression-record.schema.json +79 -0
- package/docs/schemas/windows-sidecar-provenance.schema.json +137 -0
- package/package.json +482 -0
- package/scripts/build-codebaseiq-windows.mjs +197 -0
- package/scripts/codebaseiq-windows-provenance.mjs +364 -0
- package/scripts/evidence-product-contract.mjs +197 -0
- package/scripts/verify-codebaseiq-windows.mjs +29 -0
- package/skills/codebaseiq/SKILL.md +75 -0
- package/skills/codebaseiq/agents/openai.yaml +4 -0
- package/skills/codebaseiq-explore/SKILL.md +34 -0
- package/skills/codebaseiq-explore/agents/openai.yaml +4 -0
- package/skills/concrete-plan/SKILL.md +79 -0
- package/skills/concrete-plan/agents/openai.yaml +4 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ainsleyclark/codebaseiq/blob/main/docs/schemas/cli-json-envelope.schema.json",
|
|
4
|
+
"title": "codebaseiq CLI JSON envelope v1",
|
|
5
|
+
"description": "The public transport record emitted by codebaseiq commands that accept --json.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["kind", "schemaVersion", "producer", "command", "resultSchemaVersion", "args", "options", "result"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": { "const": "codebaseiq-result" },
|
|
10
|
+
"schemaVersion": { "const": 1 },
|
|
11
|
+
"producer": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["name", "version"],
|
|
14
|
+
"properties": {
|
|
15
|
+
"name": { "const": "codebaseiq" },
|
|
16
|
+
"version": { "type": "string", "minLength": 1 }
|
|
17
|
+
},
|
|
18
|
+
"additionalProperties": true
|
|
19
|
+
},
|
|
20
|
+
"command": { "type": "string", "minLength": 1 },
|
|
21
|
+
"operationRole": {
|
|
22
|
+
"enum": [
|
|
23
|
+
"repository-observation",
|
|
24
|
+
"repository-preview",
|
|
25
|
+
"mutation",
|
|
26
|
+
"composite",
|
|
27
|
+
"environment-observation",
|
|
28
|
+
"tool-information"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"resultSchemaVersion": { "type": "integer", "minimum": 1 },
|
|
32
|
+
"evidence": { "enum": ["graph-fact", "heuristic", "mixed"] },
|
|
33
|
+
"analysisBudget": {},
|
|
34
|
+
"args": { "type": "array" },
|
|
35
|
+
"options": { "type": "object", "additionalProperties": true },
|
|
36
|
+
"result": {},
|
|
37
|
+
"coverage": {},
|
|
38
|
+
"agentResult": {},
|
|
39
|
+
"evidenceContext": { "$ref": "#/$defs/evidenceContextV1" }
|
|
40
|
+
},
|
|
41
|
+
"$defs": {
|
|
42
|
+
"evidenceContextV1": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"required": ["schemaVersion", "receipt", "analysisManifest"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"schemaVersion": { "const": 1 },
|
|
47
|
+
"operationRole": {
|
|
48
|
+
"enum": [
|
|
49
|
+
"repository-observation",
|
|
50
|
+
"repository-preview",
|
|
51
|
+
"mutation",
|
|
52
|
+
"composite",
|
|
53
|
+
"environment-observation",
|
|
54
|
+
"tool-information"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"receipt": { "$ref": "./observation-receipt.schema.json" },
|
|
58
|
+
"analysisManifest": { "$ref": "#/$defs/analysisManifestV1" }
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": true
|
|
61
|
+
},
|
|
62
|
+
"analysisManifestV1": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"required": ["schemaVersion"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"schemaVersion": { "const": 1 },
|
|
67
|
+
"evidence": { "enum": ["graph-fact", "heuristic", "mixed"] },
|
|
68
|
+
"analysisBudget": {},
|
|
69
|
+
"coverage": {},
|
|
70
|
+
"claimQualification": { "$ref": "#/$defs/claimQualificationV1" }
|
|
71
|
+
},
|
|
72
|
+
"additionalProperties": true
|
|
73
|
+
},
|
|
74
|
+
"claimQualificationV1": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"required": ["schemaVersion", "origin", "coverage", "producerValidation", "stateAuthority", "repositoryPolicy"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"schemaVersion": { "const": 1 },
|
|
79
|
+
"origin": {
|
|
80
|
+
"enum": [
|
|
81
|
+
"compiler-graph",
|
|
82
|
+
"semantic-analysis",
|
|
83
|
+
"repository-source",
|
|
84
|
+
"change-history",
|
|
85
|
+
"runtime-measurement",
|
|
86
|
+
"heuristic",
|
|
87
|
+
"mixed",
|
|
88
|
+
"unknown"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"coverage": { "$ref": "#/$defs/claimCoverage" },
|
|
92
|
+
"producerValidation": { "$ref": "#/$defs/producerValidation" },
|
|
93
|
+
"stateAuthority": { "$ref": "#/$defs/stateAuthority" },
|
|
94
|
+
"repositoryPolicy": { "$ref": "#/$defs/repositoryPolicyAction" },
|
|
95
|
+
"families": {
|
|
96
|
+
"type": "array",
|
|
97
|
+
"items": { "$ref": "#/$defs/claimFamily" }
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": true
|
|
101
|
+
},
|
|
102
|
+
"claimCoverage": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"required": ["state", "returned", "totalKnown"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"state": { "enum": ["complete", "partial", "unknown"] },
|
|
107
|
+
"returned": { "type": "integer", "minimum": 0 },
|
|
108
|
+
"totalKnown": { "type": "boolean" },
|
|
109
|
+
"total": { "type": "integer", "minimum": 0 },
|
|
110
|
+
"omitted": { "type": "integer", "minimum": 0 }
|
|
111
|
+
},
|
|
112
|
+
"additionalProperties": true
|
|
113
|
+
},
|
|
114
|
+
"producerValidation": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"required": ["status"],
|
|
117
|
+
"properties": {
|
|
118
|
+
"status": { "enum": ["validated", "failed", "not-evaluated", "not-applicable"] },
|
|
119
|
+
"certification": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"required": ["id", "version", "corpus"],
|
|
122
|
+
"properties": {
|
|
123
|
+
"id": { "type": "string", "minLength": 1 },
|
|
124
|
+
"version": { "type": "integer", "minimum": 1 },
|
|
125
|
+
"corpus": { "type": "string", "minLength": 1 }
|
|
126
|
+
},
|
|
127
|
+
"additionalProperties": true
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"oneOf": [
|
|
131
|
+
{
|
|
132
|
+
"required": ["status", "certification"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"status": { "enum": ["validated", "failed"] }
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"required": ["status"],
|
|
139
|
+
"properties": {
|
|
140
|
+
"status": { "enum": ["not-evaluated", "not-applicable"] },
|
|
141
|
+
"certification": false
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"additionalProperties": true
|
|
146
|
+
},
|
|
147
|
+
"stateAuthority": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"required": ["policyVersion", "authority", "requiredRelationships", "reasons"],
|
|
150
|
+
"properties": {
|
|
151
|
+
"policyVersion": { "type": "integer", "minimum": 1 },
|
|
152
|
+
"authority": { "enum": ["completion", "advisory", "none"] },
|
|
153
|
+
"requiredRelationships": {
|
|
154
|
+
"type": "array",
|
|
155
|
+
"items": { "type": "string", "minLength": 1 }
|
|
156
|
+
},
|
|
157
|
+
"reasons": {
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": { "type": "string", "minLength": 1 }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"additionalProperties": true
|
|
163
|
+
},
|
|
164
|
+
"repositoryPolicyAction": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"required": ["policyId", "policyVersion", "permission", "reasons"],
|
|
167
|
+
"properties": {
|
|
168
|
+
"policyId": { "type": "string", "minLength": 1 },
|
|
169
|
+
"policyVersion": { "const": 1 },
|
|
170
|
+
"permission": {
|
|
171
|
+
"enum": ["observe", "advise", "require-adjudication", "block", "not-established"]
|
|
172
|
+
},
|
|
173
|
+
"reasons": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"items": { "type": "string", "minLength": 1 }
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"additionalProperties": true
|
|
179
|
+
},
|
|
180
|
+
"claimFamily": {
|
|
181
|
+
"type": "object",
|
|
182
|
+
"required": ["id", "selector", "origin"],
|
|
183
|
+
"properties": {
|
|
184
|
+
"id": { "type": "string", "minLength": 1 },
|
|
185
|
+
"selector": { "type": "string", "minLength": 1 },
|
|
186
|
+
"origin": {
|
|
187
|
+
"oneOf": [
|
|
188
|
+
{
|
|
189
|
+
"type": "object",
|
|
190
|
+
"required": ["kind", "origin"],
|
|
191
|
+
"properties": {
|
|
192
|
+
"kind": { "const": "fixed" },
|
|
193
|
+
"origin": {
|
|
194
|
+
"enum": [
|
|
195
|
+
"compiler-graph",
|
|
196
|
+
"semantic-analysis",
|
|
197
|
+
"repository-source",
|
|
198
|
+
"change-history",
|
|
199
|
+
"runtime-measurement",
|
|
200
|
+
"heuristic",
|
|
201
|
+
"unknown"
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"additionalProperties": true
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"type": "object",
|
|
209
|
+
"required": ["kind", "field", "values"],
|
|
210
|
+
"properties": {
|
|
211
|
+
"kind": { "const": "result-field" },
|
|
212
|
+
"field": { "type": "string", "minLength": 1 },
|
|
213
|
+
"values": {
|
|
214
|
+
"type": "object",
|
|
215
|
+
"additionalProperties": {
|
|
216
|
+
"enum": [
|
|
217
|
+
"compiler-graph",
|
|
218
|
+
"semantic-analysis",
|
|
219
|
+
"repository-source",
|
|
220
|
+
"change-history",
|
|
221
|
+
"runtime-measurement",
|
|
222
|
+
"heuristic",
|
|
223
|
+
"unknown"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"additionalProperties": true
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"additionalProperties": true
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": true
|
|
237
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ainsleyclark/codebaseiq/blob/main/docs/schemas/cli-output-page.schema.json",
|
|
4
|
+
"title": "codebaseiq CLI output page v1",
|
|
5
|
+
"description": "A bounded, resumable page of rendered codebaseiq output.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["kind", "schemaVersion", "producer", "command", "contentType", "page", "content"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"kind": {
|
|
10
|
+
"const": "codebaseiq-output-page"
|
|
11
|
+
},
|
|
12
|
+
"schemaVersion": {
|
|
13
|
+
"const": 1
|
|
14
|
+
},
|
|
15
|
+
"producer": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"required": ["name", "version"],
|
|
18
|
+
"properties": {
|
|
19
|
+
"name": {
|
|
20
|
+
"const": "codebaseiq"
|
|
21
|
+
},
|
|
22
|
+
"version": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
},
|
|
29
|
+
"command": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1
|
|
32
|
+
},
|
|
33
|
+
"contentType": {
|
|
34
|
+
"enum": ["text/plain", "application/json"]
|
|
35
|
+
},
|
|
36
|
+
"agentInstruction": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"minLength": 1,
|
|
39
|
+
"description": "A direct instruction for an AI agent consuming this page."
|
|
40
|
+
},
|
|
41
|
+
"page": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": [
|
|
44
|
+
"offset",
|
|
45
|
+
"returnedCharacters",
|
|
46
|
+
"totalCharacters",
|
|
47
|
+
"omittedCharacters",
|
|
48
|
+
"remainingCharacters",
|
|
49
|
+
"complete",
|
|
50
|
+
"outputHash"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"offset": {
|
|
54
|
+
"type": "integer",
|
|
55
|
+
"minimum": 0
|
|
56
|
+
},
|
|
57
|
+
"returnedCharacters": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"minimum": 0
|
|
60
|
+
},
|
|
61
|
+
"totalCharacters": {
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"minimum": 0
|
|
64
|
+
},
|
|
65
|
+
"omittedCharacters": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"minimum": 0
|
|
68
|
+
},
|
|
69
|
+
"remainingCharacters": {
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"minimum": 0
|
|
72
|
+
},
|
|
73
|
+
"complete": {
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
},
|
|
76
|
+
"outputHash": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
79
|
+
},
|
|
80
|
+
"continuation": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": ["cursor", "command"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"cursor": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"maxLength": 4096
|
|
88
|
+
},
|
|
89
|
+
"command": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"minLength": 1
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"additionalProperties": false
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
},
|
|
99
|
+
"content": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"additionalProperties": false
|
|
104
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/PlunderStruck/codebaseiq/blob/main/docs/schemas/npm-release-state.schema.json",
|
|
4
|
+
"title": "codebaseiq npm release state",
|
|
5
|
+
"description": "Durable local progress for one exact main-package and Windows-sidecar npm release.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"kind",
|
|
9
|
+
"schemaVersion",
|
|
10
|
+
"releaseId",
|
|
11
|
+
"source",
|
|
12
|
+
"packages",
|
|
13
|
+
"completedStages",
|
|
14
|
+
"createdAt",
|
|
15
|
+
"updatedAt",
|
|
16
|
+
"writer"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"kind": {
|
|
20
|
+
"const": "codebaseiq-npm-release-state"
|
|
21
|
+
},
|
|
22
|
+
"schemaVersion": {
|
|
23
|
+
"const": 1
|
|
24
|
+
},
|
|
25
|
+
"releaseId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
28
|
+
},
|
|
29
|
+
"source": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["gitRevision", "registry"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"gitRevision": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-f0-9]{40,64}$"
|
|
36
|
+
},
|
|
37
|
+
"registry": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"format": "uri",
|
|
40
|
+
"pattern": "^https://",
|
|
41
|
+
"allOf": [
|
|
42
|
+
{
|
|
43
|
+
"not": {
|
|
44
|
+
"pattern": "^https://[^/]*@"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"not": {
|
|
49
|
+
"pattern": "[?#]"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"additionalProperties": true
|
|
56
|
+
},
|
|
57
|
+
"packages": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["main", "sidecar"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"main": {
|
|
62
|
+
"$ref": "#/$defs/packageIdentity"
|
|
63
|
+
},
|
|
64
|
+
"sidecar": {
|
|
65
|
+
"$ref": "#/$defs/packageIdentity"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"additionalProperties": true
|
|
69
|
+
},
|
|
70
|
+
"completedStages": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"minItems": 1,
|
|
73
|
+
"uniqueItems": true,
|
|
74
|
+
"items": {
|
|
75
|
+
"enum": ["local-preflight-complete", "sidecar-registry-verified", "main-registry-verified"]
|
|
76
|
+
},
|
|
77
|
+
"oneOf": [
|
|
78
|
+
{
|
|
79
|
+
"const": ["local-preflight-complete"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"const": ["local-preflight-complete", "sidecar-registry-verified"]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"const": ["local-preflight-complete", "main-registry-verified"]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"const": ["local-preflight-complete", "sidecar-registry-verified", "main-registry-verified"]
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"createdAt": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"format": "date-time"
|
|
95
|
+
},
|
|
96
|
+
"updatedAt": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"format": "date-time"
|
|
99
|
+
},
|
|
100
|
+
"writer": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"required": ["name", "version"],
|
|
103
|
+
"properties": {
|
|
104
|
+
"name": {
|
|
105
|
+
"const": "codebaseiq"
|
|
106
|
+
},
|
|
107
|
+
"version": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"description": "The main-package version that produced this state; the executable reader requires it to equal packages.main.version."
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"additionalProperties": true
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"$defs": {
|
|
117
|
+
"packageIdentity": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": ["name", "version", "size", "shasum", "integrity"],
|
|
120
|
+
"properties": {
|
|
121
|
+
"name": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"minLength": 1
|
|
124
|
+
},
|
|
125
|
+
"version": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1
|
|
128
|
+
},
|
|
129
|
+
"size": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 0
|
|
132
|
+
},
|
|
133
|
+
"shasum": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
136
|
+
},
|
|
137
|
+
"integrity": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"pattern": "^sha512-[A-Za-z0-9+/]+={0,2}$"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"additionalProperties": true
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"additionalProperties": true
|
|
146
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://unpkg.com/codebaseiq/docs/schemas/observation-receipt.schema.json",
|
|
4
|
+
"title": "codebaseiq observation receipt",
|
|
5
|
+
"description": "Versioned facts naming the repository state sources one operation actually observed. Version 1 remains readable legacy provenance; version 2 keeps collaboration, workspace, content, index, source, and stability facts independent.",
|
|
6
|
+
"oneOf": [{ "$ref": "#/$defs/observationReceiptV1" }, { "$ref": "#/$defs/observationReceiptV2" }],
|
|
7
|
+
"$defs": {
|
|
8
|
+
"observationReceiptV1": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"required": ["schemaVersion", "authorityKind", "observedAt", "projectIdentity"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"schemaVersion": { "const": 1 },
|
|
13
|
+
"authorityKind": {
|
|
14
|
+
"enum": ["index-worktree", "index-only", "worktree-only", "process-local"]
|
|
15
|
+
},
|
|
16
|
+
"observedAt": { "type": "string", "format": "date-time" },
|
|
17
|
+
"projectIdentity": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
18
|
+
"index": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"required": ["generationIdentity", "source", "alignment"],
|
|
21
|
+
"properties": {
|
|
22
|
+
"generationIdentity": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
23
|
+
"source": { "enum": ["immutable", "legacy"] },
|
|
24
|
+
"alignment": { "enum": ["not-certified", "leased"] }
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": true
|
|
27
|
+
},
|
|
28
|
+
"worktree": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"required": ["identity", "clean"],
|
|
31
|
+
"properties": {
|
|
32
|
+
"identity": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
33
|
+
"clean": { "type": "boolean" },
|
|
34
|
+
"headCommit": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
35
|
+
"treeOid": { "type": "string", "minLength": 1, "maxLength": 256 }
|
|
36
|
+
},
|
|
37
|
+
"additionalProperties": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"additionalProperties": true
|
|
41
|
+
},
|
|
42
|
+
"observationReceiptV2": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"required": ["schemaVersion", "observedAt", "facts", "observedSources", "stabilityProofs"],
|
|
45
|
+
"properties": {
|
|
46
|
+
"schemaVersion": { "const": 2 },
|
|
47
|
+
"observedAt": { "type": "string", "format": "date-time" },
|
|
48
|
+
"facts": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"collaborationDomain": { "$ref": "#/$defs/observationIdentity" },
|
|
52
|
+
"repositoryLineage": { "$ref": "#/$defs/observationIdentity" },
|
|
53
|
+
"workspaceInstance": { "$ref": "#/$defs/observationIdentity" },
|
|
54
|
+
"wholeContent": { "$ref": "#/$defs/observationIdentity" },
|
|
55
|
+
"relevantInputs": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["subject", "identity"],
|
|
60
|
+
"properties": {
|
|
61
|
+
"subject": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
62
|
+
"identity": { "$ref": "#/$defs/observationIdentity" }
|
|
63
|
+
},
|
|
64
|
+
"additionalProperties": true
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"index": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"required": ["generation", "source"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"generation": { "$ref": "#/$defs/observationIdentity" },
|
|
72
|
+
"inputs": { "$ref": "#/$defs/observationIdentity" },
|
|
73
|
+
"source": { "enum": ["immutable", "legacy"] }
|
|
74
|
+
},
|
|
75
|
+
"additionalProperties": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"additionalProperties": true
|
|
79
|
+
},
|
|
80
|
+
"observedSources": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"minItems": 1,
|
|
83
|
+
"items": { "$ref": "#/$defs/observationSourceFact" }
|
|
84
|
+
},
|
|
85
|
+
"stabilityProofs": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": { "$ref": "#/$defs/observationStabilityProof" }
|
|
88
|
+
},
|
|
89
|
+
"diagnostics": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"clean": { "type": "boolean" },
|
|
93
|
+
"headCommit": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
94
|
+
"treeOid": { "type": "string", "minLength": 1, "maxLength": 256 }
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": true
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"additionalProperties": true
|
|
100
|
+
},
|
|
101
|
+
"observationIdentity": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"required": ["schemaVersion", "canonicalizationVersion", "hashAlgorithm", "projection", "digest"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"schemaVersion": { "const": 1 },
|
|
106
|
+
"canonicalizationVersion": { "const": 1 },
|
|
107
|
+
"hashAlgorithm": { "const": "sha256" },
|
|
108
|
+
"projection": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"required": ["name", "version"],
|
|
111
|
+
"properties": {
|
|
112
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
113
|
+
"version": { "type": "integer", "minimum": 1 }
|
|
114
|
+
},
|
|
115
|
+
"additionalProperties": true
|
|
116
|
+
},
|
|
117
|
+
"digest": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
118
|
+
},
|
|
119
|
+
"additionalProperties": true
|
|
120
|
+
},
|
|
121
|
+
"observationSourceFact": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"required": ["kind"],
|
|
124
|
+
"properties": {
|
|
125
|
+
"kind": {
|
|
126
|
+
"enum": ["index-generation", "repository-snapshot", "live-workspace", "process"]
|
|
127
|
+
},
|
|
128
|
+
"identity": { "$ref": "#/$defs/observationIdentity" }
|
|
129
|
+
},
|
|
130
|
+
"additionalProperties": true
|
|
131
|
+
},
|
|
132
|
+
"observationStabilityProof": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"required": ["source", "kind"],
|
|
135
|
+
"oneOf": [
|
|
136
|
+
{
|
|
137
|
+
"properties": {
|
|
138
|
+
"source": { "const": "index-generation" },
|
|
139
|
+
"kind": { "enum": ["immutable", "not-established", "invalidated"] }
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"properties": {
|
|
144
|
+
"source": { "const": "repository-snapshot" },
|
|
145
|
+
"kind": { "enum": ["fixed-snapshot", "not-established", "invalidated"] }
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"properties": {
|
|
150
|
+
"source": { "const": "live-workspace" },
|
|
151
|
+
"kind": { "enum": ["bracketed", "not-established", "invalidated"] }
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"properties": {
|
|
156
|
+
"source": { "const": "process" },
|
|
157
|
+
"kind": { "enum": ["not-established", "invalidated"] }
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": true
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|