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
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# codebaseiq
|
|
2
|
+
|
|
3
|
+
codebaseiq is a compiler-backed repository-understanding system for coding
|
|
4
|
+
agents.
|
|
5
|
+
|
|
6
|
+
A repository-understanding system turns indexed code facts into accurate,
|
|
7
|
+
navigable abstractions of the systems in a codebase. Its essential service is
|
|
8
|
+
structure-preserving compression: an agent can see the relevant regions and
|
|
9
|
+
relationships before an edit, drill into several material regions together,
|
|
10
|
+
and keep exact source identities for its plan without reading every
|
|
11
|
+
implementation. codebaseiq differs from text search because it uses
|
|
12
|
+
compiler-produced SCIP indexes: two matching words count as the same symbol
|
|
13
|
+
only when the language tooling resolves them to the same definition. It also
|
|
14
|
+
reports coverage gaps, so omitted evidence is not mistaken for evidence that a
|
|
15
|
+
relationship does not exist.
|
|
16
|
+
|
|
17
|
+
The tool helps an agent answer four practical questions:
|
|
18
|
+
|
|
19
|
+
- What is this code connected to?
|
|
20
|
+
- Which systems participate in this behavior from entry to final effect?
|
|
21
|
+
- Who consumes it, and what could a change affect?
|
|
22
|
+
- Does the repository declare a structural rule for this dependency?
|
|
23
|
+
- Where do React, Vue, duplication, drift, complexity, or cleanup detectors
|
|
24
|
+
point to code worth inspecting?
|
|
25
|
+
|
|
26
|
+
The agent still owns the task, plan, implementation, tests, and final judgment.
|
|
27
|
+
codebaseiq does not create goals, act as an acceptance test, or decide that work
|
|
28
|
+
is complete.
|
|
29
|
+
|
|
30
|
+
## Install
|
|
31
|
+
|
|
32
|
+
codebaseiq requires Node.js 22 or newer. Node.js 24 LTS is recommended.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm install -g codebaseiq
|
|
36
|
+
cd your-repository
|
|
37
|
+
codebaseiq setup
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Setup detects supported languages, installs or checks their indexers, builds
|
|
41
|
+
the local index, installs the bundled skills, and writes concise agent guidance.
|
|
42
|
+
When the repository declares valid architecture rules, setup also installs one
|
|
43
|
+
checkout-local Stop hook that checks those rules after indexed source changes.
|
|
44
|
+
It does not install a completion gate, pre-commit gate, or CI enforcement.
|
|
45
|
+
|
|
46
|
+
Check a setup with:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
codebaseiq doctor
|
|
50
|
+
codebaseiq capabilities
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## The normal workflow
|
|
54
|
+
|
|
55
|
+
Use codebaseiq as the primary reading surface for indexed source. First name the
|
|
56
|
+
few material repository facts the answer depends on. Locate exact referents with
|
|
57
|
+
`search` for trustworthy text, `outline` for a known file, or `entrypoints` for
|
|
58
|
+
an external callable surface. Then select exact symbols or file/line constructs
|
|
59
|
+
and project only the relationship families and directions capable of establishing
|
|
60
|
+
those facts. codebaseiq resolves identity, typed edges, evidence strength, provider
|
|
61
|
+
support, and bounded coverage; it does not decide which facts matter to the task.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
codebaseiq search 'work_session_stream_events'
|
|
65
|
+
codebaseiq evidence \
|
|
66
|
+
--symbol 'appendWorkSessionStreamEvents' \
|
|
67
|
+
--edge execution \
|
|
68
|
+
--edge runtime \
|
|
69
|
+
--direction both \
|
|
70
|
+
--depth 2 \
|
|
71
|
+
--max-edges 32
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Treat the evidence inventory, facts, calibration, coverage, and recovery paths as
|
|
75
|
+
one contract. Missing output is not evidence of absence. If a material fact still
|
|
76
|
+
requires implementation behavior, batch its exact constructs into `inspect --view
|
|
77
|
+
behavior`. Use `code` only when exact syntax can change the decision. Do not reread
|
|
78
|
+
source already rendered by either command, and do not expand unrelated frontiers.
|
|
79
|
+
|
|
80
|
+
Before answering, audit the draft itself against the material claims. A fact
|
|
81
|
+
seen in evidence but left implicit in the answer is not recovered. Copy returned
|
|
82
|
+
file and line identities exactly rather than reconstructing citation paths.
|
|
83
|
+
|
|
84
|
+
A broad literal is counted exactly and returned with recoverable structural scopes.
|
|
85
|
+
Narrow only when a named material fact requires one of those scopes.
|
|
86
|
+
|
|
87
|
+
`code` accepts up to 24 exact symbols, ranges, or indexed file paths. A file
|
|
88
|
+
path returns its exported definitions—or its top-level definitions when the
|
|
89
|
+
language has no explicit export surface—plus the file-local definitions they
|
|
90
|
+
reference, then lists every omitted local definition as an exact range. This
|
|
91
|
+
keeps the default source surface small without hiding what remains available.
|
|
92
|
+
Use `--members all` only when the complete file matters. If a proposed packet
|
|
93
|
+
would exceed the active output budget, `code` emits no partial source and
|
|
94
|
+
prints exact complete-packet splits; narrow to the exact units still needed
|
|
95
|
+
before deciding whether every split remains necessary.
|
|
96
|
+
|
|
97
|
+
Start an unknown path with `search`; batch related text, symbol, and file-line
|
|
98
|
+
anchors with `inspect`; use `evidence` when one symbol and its real uses are the
|
|
99
|
+
center of the question. For tracked nonbinary repository content, keep
|
|
100
|
+
exploration on codebaseiq. Native tools are for applying edits, running checks,
|
|
101
|
+
binary content, or a specific unsupported gap that codebaseiq has explicitly
|
|
102
|
+
reported.
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
codebaseiq search work_session_stream_events
|
|
106
|
+
codebaseiq inspect --search sessionStreamEvents --search work_session_stream_events --view behavior
|
|
107
|
+
codebaseiq evidence appendWorkSessionStreamEvents --include definition,references,callers,callees
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
`inspect --view behavior` returns the cheapest faithful syntax-derived view of
|
|
111
|
+
each complete source unit. Compact units stay raw. Larger units become
|
|
112
|
+
hierarchical outlines only when that representation is materially smaller;
|
|
113
|
+
every source statement is represented, and unsupported or
|
|
114
|
+
compression-sensitive statements are copied verbatim. Coverage reports the
|
|
115
|
+
represented, copied, and omitted counts. Exact source can be requested for any
|
|
116
|
+
unit whose complete implementation matters. `inspect --symbol` includes definitions,
|
|
117
|
+
references, callers, callees, dependencies, and consumers by default.
|
|
118
|
+
|
|
119
|
+
Search, location, and relationship evidence is deduplicated into one ranked
|
|
120
|
+
packet. Exact locations and definitions rank first; later units must add new
|
|
121
|
+
file, role, scope, symbol, or behavior coverage. A default packet materializes
|
|
122
|
+
at most 12 matching lines per text selector, then applies a soft ceiling of 48
|
|
123
|
+
units or 60,000 displayed-evidence characters without clipping a returned
|
|
124
|
+
syntax unit. Its omission ledger groups everything withheld by scope and role,
|
|
125
|
+
reports what each group contains, and gives an exact command for drilling into
|
|
126
|
+
that group. Drill into several relevant groups together; use `--full` only when
|
|
127
|
+
all omitted evidence can change the decision. Large rendered output from other
|
|
128
|
+
commands can still use the universal byte-transport continuation printed by
|
|
129
|
+
every command.
|
|
130
|
+
|
|
131
|
+
Before a nonlocal change:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
codebaseiq context RetryPolicy
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
`context` returns a bounded evidence packet for a symbol, file, or module. It
|
|
138
|
+
combines definitions, references, calls, data flow, dependencies, consumers,
|
|
139
|
+
change risk, history, suppressions, and possible reuse sites. A bounded packet
|
|
140
|
+
is a deliberately limited result: it is useful for a decision but does not
|
|
141
|
+
claim to contain every possible relationship.
|
|
142
|
+
|
|
143
|
+
After a coherent edit:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
codebaseiq diff-impact
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
`diff-impact` maps changed symbols to downstream consumers. It is a change map,
|
|
150
|
+
not a pass/fail gate. The agent uses it with native tests and source inspection.
|
|
151
|
+
|
|
152
|
+
When structure matters:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
codebaseiq architecture
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
An architecture rule is repository policy that permits or forbids dependency
|
|
159
|
+
edges between named file groups. Its defining trait is that it states a team
|
|
160
|
+
constraint, not a detector guess. Rules live in `.codebaseiq.json` and can cover
|
|
161
|
+
closed dependency rows, cycles, unresolved boundaries, fan-out, boundary size,
|
|
162
|
+
and test placement.
|
|
163
|
+
|
|
164
|
+
When cleanup or drift matters:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
codebaseiq health --full
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
Health is a collection of repository analyses, not a correctness grade. It
|
|
171
|
+
reports graph facts and heuristic candidates separately. A heuristic candidate
|
|
172
|
+
is a source location selected by a pattern that may indicate a problem; the
|
|
173
|
+
agent must read the source before treating it as a defect.
|
|
174
|
+
|
|
175
|
+
## React and Vue
|
|
176
|
+
|
|
177
|
+
React and Vue analysis remains a first-class part of the product.
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
codebaseiq react-component-duplicates --full
|
|
181
|
+
codebaseiq react-hook-candidates --full
|
|
182
|
+
codebaseiq react-large-component-pressure --full
|
|
183
|
+
|
|
184
|
+
codebaseiq vue-component-duplicates --full
|
|
185
|
+
codebaseiq vue-composable-candidates --full
|
|
186
|
+
codebaseiq vue-large-view-pressure --full
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
These commands find repeated component structure, hook or composable behavior
|
|
190
|
+
that may deserve reuse, and files carrying unusually broad responsibility.
|
|
191
|
+
They tell an agent where to inspect and clean up. They do not order an automatic
|
|
192
|
+
refactor: intentional variation and real framework constraints must survive.
|
|
193
|
+
|
|
194
|
+
Vue repositories can add source facts when their indexer needs them:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
codebaseiq augment-vue
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Cleanup and drift commands
|
|
201
|
+
|
|
202
|
+
The health report is an overview. Focused commands expose the evidence behind
|
|
203
|
+
particular kinds of pressure:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
codebaseiq duplicate-bodies --full
|
|
207
|
+
codebaseiq twin-drift --full
|
|
208
|
+
codebaseiq recent-duplicates --full
|
|
209
|
+
codebaseiq incomplete-migration --full
|
|
210
|
+
codebaseiq doc-drift --full
|
|
211
|
+
codebaseiq unused-params --full
|
|
212
|
+
codebaseiq dead --full
|
|
213
|
+
codebaseiq isolated --full
|
|
214
|
+
codebaseiq cycles --full
|
|
215
|
+
codebaseiq co-change --full
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
`incomplete-migration` looks for a new helper used at some matching sites while
|
|
219
|
+
older inline forms remain. `twin-drift` looks for same-concept implementations
|
|
220
|
+
that have diverged. `co-change` uses Git history to find files that repeatedly
|
|
221
|
+
change together without a visible dependency edge. Each is evidence for
|
|
222
|
+
inspection, not proof that code must be rewritten.
|
|
223
|
+
|
|
224
|
+
For compiler-checked dead-code removal:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
codebaseiq cleanup-plan --verify
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Review its batches before applying them. Cleanup is complete only when the
|
|
231
|
+
retired path, unused wiring, and misleading residue are gone and native checks
|
|
232
|
+
still pass.
|
|
233
|
+
|
|
234
|
+
## Focused graph queries
|
|
235
|
+
|
|
236
|
+
Use the aggregate `context` command first for ordinary planning. Reach for a
|
|
237
|
+
focused query when one unresolved relationship can change the decision:
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
codebaseiq refs SomeSymbol --full
|
|
241
|
+
codebaseiq trace SomeSymbol
|
|
242
|
+
codebaseiq call-graph SomeSymbol
|
|
243
|
+
codebaseiq value-flow SomeSymbol
|
|
244
|
+
codebaseiq affected SomeSymbol --full
|
|
245
|
+
codebaseiq system src/payments
|
|
246
|
+
codebaseiq surface src/payments
|
|
247
|
+
codebaseiq deps src/payments/service.ts
|
|
248
|
+
codebaseiq rdeps src/payments/service.ts
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
Do not repeat an unchanged query after context compaction. Re-run when source,
|
|
252
|
+
the index generation, the command input, or the required coverage changed.
|
|
253
|
+
|
|
254
|
+
## Suppressions
|
|
255
|
+
|
|
256
|
+
A suppression is a versioned repository record that says one detector finding
|
|
257
|
+
is accepted or is not actionable for a stated reason. Its defining trait is
|
|
258
|
+
that it addresses one finding without weakening unrelated analysis.
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
codebaseiq suppress SQ123 \
|
|
262
|
+
--check twin-drift \
|
|
263
|
+
--file src/example.ts \
|
|
264
|
+
--reason-code intentional-variation \
|
|
265
|
+
--reason "The two implementations follow different external contracts."
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Commit relevant `.codebaseiq/suppressions/*.json` files with the code or policy
|
|
269
|
+
that justifies them. Suppressions are merge-friendly because each finding uses
|
|
270
|
+
its own file.
|
|
271
|
+
|
|
272
|
+
## Output and coverage
|
|
273
|
+
|
|
274
|
+
Human output is the default because it keeps hierarchy, whitespace, and source
|
|
275
|
+
line numbers readable. Programmatic consumers can use:
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
codebaseiq context RetryPolicy --json --result-only
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
Search output separates a complete occurrence ledger from source
|
|
282
|
+
materialization. Every exact matching path and line is listed with its owner;
|
|
283
|
+
the default expands only a representative source subset. Use the emitted
|
|
284
|
+
batched drilldowns for selected owners. `search --full` expands every source
|
|
285
|
+
window and is not needed to establish complete text-match coverage.
|
|
286
|
+
|
|
287
|
+
Cross-command evidence citations are off by default. With an explicit
|
|
288
|
+
`CODEBASEIQ_SESSION`, a complete source unit, a byte-identical exact subset of a
|
|
289
|
+
prior exact source read, or a graph unit/edge may be replaced by a visible
|
|
290
|
+
receipt from the same index generation. Preview coverage never suppresses an
|
|
291
|
+
exact unit. Changed bytes, changed graph content, a new generation, or
|
|
292
|
+
`--reemit` force full evidence.
|
|
293
|
+
|
|
294
|
+
If output prints `Continue exactly:`, run the emitted command unchanged until
|
|
295
|
+
transport is complete. Transport completion means every rendered character was
|
|
296
|
+
retrieved; it does not make bounded analysis exhaustive.
|
|
297
|
+
|
|
298
|
+
Use `--full` only when complete command coverage can change a decision. Always
|
|
299
|
+
read a command's coverage note before claiming that every caller, consumer, or
|
|
300
|
+
finding was considered.
|
|
301
|
+
|
|
302
|
+
## Configuration
|
|
303
|
+
|
|
304
|
+
Project policy lives in `.codebaseiq.json`. Common sections configure source
|
|
305
|
+
paths, generated or vendor exclusions, documentation snapshots, architecture
|
|
306
|
+
boundaries, declared coupling, coverage contracts, and watcher behavior.
|
|
307
|
+
|
|
308
|
+
Validate it with:
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
codebaseiq config-validate
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Keep configuration small. Add a rule only when an observed repository fact or
|
|
315
|
+
team policy requires it.
|
|
316
|
+
|
|
317
|
+
### Reducing background CPU load
|
|
318
|
+
|
|
319
|
+
Two environment variables shape how much CPU codebaseiq takes from foreground
|
|
320
|
+
work. Both are off by default and change scheduling only, never output.
|
|
321
|
+
|
|
322
|
+
- `CODEBASEIQ_PROCESS_PRIORITY=low` runs the CLI and everything it spawns
|
|
323
|
+
(language indexers, health-phase subprocesses, semantic helpers, the watch
|
|
324
|
+
server) at below-normal OS priority; `idle` yields even further. Work
|
|
325
|
+
finishes with the same results, it just stops competing with interactive
|
|
326
|
+
applications.
|
|
327
|
+
- `CODEBASEIQ_MAX_CONCURRENCY=<n>` is a hard ceiling on codebaseiq's adaptive
|
|
328
|
+
subprocess fan-out (health phases, diff-impact batches). It caps both the
|
|
329
|
+
adaptive defaults and explicit per-workload values such as
|
|
330
|
+
`CODEBASEIQ_HEALTH_CONCURRENCY`.
|
|
331
|
+
|
|
332
|
+
## Command reference
|
|
333
|
+
|
|
334
|
+
The generated syntax catalog is in
|
|
335
|
+
[`docs/COMMAND_REFERENCE.md`](docs/COMMAND_REFERENCE.md). The one bundled
|
|
336
|
+
`codebaseiq` skill teaches mapping, ordinary planning, architecture checks,
|
|
337
|
+
and focused use of the React, Vue, and general cleanup detectors.
|
|
338
|
+
|
|
339
|
+
## Development
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
npm install
|
|
343
|
+
npm run typecheck
|
|
344
|
+
npm test
|
|
345
|
+
npm run build
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
The React and Vue detector suites are part of the normal test surface and must
|
|
349
|
+
remain passing when the workflow or command surface changes.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{e as t}from"./chunk-VFY6Y2H6.js";import"./chunk-YUKYB54I.js";import"./chunk-3IER7Q6H.js";import"./chunk-FM5BPL4V.js";import"./chunk-WE5RZHZ7.js";import{writeFileSync as s}from"fs";import{workerData as o}from"worker_threads";var r=o;try{let e=t({projectRoot:r.projectRoot,dbPath:r.dbPath,tsconfig:r.tsconfig,vueFiles:r.vueFiles,tasks:r.tasks});s(r.resultPath,JSON.stringify({version:1,runId:r.runId,workerId:r.workerId,taskIds:r.taskIds,ok:!0,result:e}))}catch(e){s(r.resultPath,JSON.stringify({version:1,runId:r.runId,workerId:r.workerId,taskIds:r.taskIds,ok:!1,error:e instanceof Error?e.message:String(e)}))}
|
|
2
|
+
//# sourceMappingURL=augment-vue-worker.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type CalleeEvidenceSource = 'ast-callsite' | 'semantic-callee' | 'scip-chunk';
|
|
2
|
+
interface CalleeRow {
|
|
3
|
+
symbol: string;
|
|
4
|
+
file: string;
|
|
5
|
+
chunkId: number;
|
|
6
|
+
source: CalleeEvidenceSource;
|
|
7
|
+
/** Zero-based source line of the call expression when retained by the evidence source. */
|
|
8
|
+
callsiteLine?: number;
|
|
9
|
+
}
|
|
10
|
+
interface GraphRowsMapEvidence<T> {
|
|
11
|
+
rows: Map<number, T[]>;
|
|
12
|
+
incompleteSymbolIds: Set<number>;
|
|
13
|
+
unavailableSymbolIds: Set<number>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type { CalleeRow as C, GraphRowsMapEvidence as G, CalleeEvidenceSource as a };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type DocCitationKind = 'behavioral-claim' | 'configuration-example' | 'guide-reference' | 'intentional-record';
|
|
2
|
+
/** A contiguous changed line span within one file, as parsed from a diff. */
|
|
3
|
+
interface ChangedLineRange {
|
|
4
|
+
file: string;
|
|
5
|
+
startLine: number;
|
|
6
|
+
endLine: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type { ChangedLineRange as C, DocCitationKind as D };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{execFileSync as l,spawnSync as y}from"child_process";import{platform as E}from"os";import{resolve as b}from"path";import{createHash as m}from"crypto";import{existsSync as a,renameSync as u,rmSync as d,writeFileSync as f}from"fs";import{tmpdir as w}from"os";import{join as S}from"path";var c=`'use strict';
|
|
2
|
+
const NativeRegExp = globalThis.RegExp;
|
|
3
|
+
const escapeLoneSeparator = (args) =>
|
|
4
|
+
typeof args[0] === 'string' && args[0] === '\\\\' ? ['\\\\\\\\', ...args.slice(1)] : args;
|
|
5
|
+
globalThis.RegExp = new Proxy(NativeRegExp, {
|
|
6
|
+
construct(target, args) {
|
|
7
|
+
return Reflect.construct(target, escapeLoneSeparator(args));
|
|
8
|
+
},
|
|
9
|
+
apply(target, thisArg, args) {
|
|
10
|
+
return Reflect.apply(target, thisArg, escapeLoneSeparator(args));
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
`,x=/scip-python/i;function p(t,r=process.platform){return r!=="win32"||!x.test(t)?[]:["--require",h()]}function h(t=w()){let r=m("sha256").update(c).digest("hex").slice(0,16),e=S(t,`codebaseiq-indexer-compat-${r}.cjs`);if(a(e))return e;let n=`${e}.${process.pid}.tmp`;f(n,c);try{u(n,e)}catch{if(d(n,{force:!0}),!a(e))throw new Error(`could not materialize indexer compatibility preload at ${e}`)}return e}var g=E()==="win32";function k(t,r=y){try{return r(t,["--version"],{stdio:"ignore",timeout:1e4}).status===0}catch{return!1}}function D(t){let r=g?"where":"which";try{return l(r,[t],{stdio:"pipe",timeout:1e4,killSignal:"SIGKILL"}),!0}catch{return!1}}var R=/\.(?:c|m)?js$/i,I=/\.(?:exe|com)$/i;function $(t,r){return R.test(t)?{binary:process.execPath,args:[...p(t),t,...r]}:{binary:t,args:[...r]}}function A(t,r){return l(t,r,{stdio:["ignore","pipe","ignore"],windowsHide:!0,encoding:"utf8",timeout:1e4,killSignal:"SIGKILL"})}function B(t,r={}){let e=r.isWindows??g,n=r.lookup??A,i;try{i=n(e?"where":"which",[t])}catch{return null}let s=i.split(/\r?\n/).map(o=>o.trim()).filter(Boolean);if(!e){let o=s[0];return o?b(o):null}return s.find(o=>I.test(o))??null}export{k as a,D as b,$ as c,B as d};
|
|
14
|
+
//# sourceMappingURL=chunk-2Q2LW5JW.js.map
|