scip-query 0.23.0 → 0.26.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 +491 -2
- package/README.md +111 -122
- package/dist/augment-vue-worker.js +1 -1
- package/dist/by-kind-PRVFAGTQ.js +2 -0
- package/dist/call-graph-DVPAQV2F.js +2 -0
- package/dist/call-graph-evidence-CUtj8V2I.d.ts +19 -0
- package/dist/chunk-2FSBGL5P.js +2 -0
- package/dist/chunk-2HLAFUCY.js +2 -0
- package/dist/chunk-2IWUT6CJ.js +3 -0
- package/dist/chunk-2KNN7GTQ.js +2 -0
- package/dist/chunk-2LHXRE2B.js +8 -0
- package/dist/{chunk-EG2CPZMJ.js → chunk-2YXE77TJ.js} +2 -2
- package/dist/chunk-36SGVCGX.js +2 -0
- package/dist/chunk-3ABBFPTP.js +2 -0
- package/dist/chunk-3IVFU4FD.js +3 -0
- package/dist/chunk-3JIQS44J.js +7 -0
- package/dist/chunk-3ZRB6DNK.js +7 -0
- package/dist/{chunk-6YTSKJJ3.js → chunk-42EOW5VI.js} +1 -1
- package/dist/{chunk-6I6L7Z62.js → chunk-4BHGBMNO.js} +2 -2
- package/dist/chunk-4BP3UBDG.js +2 -0
- package/dist/chunk-4D6RO7G4.js +2 -0
- package/dist/chunk-4FEWQ6RH.js +2 -0
- package/dist/chunk-4IGEOBG7.js +2 -0
- package/dist/chunk-4QZXBUKC.js +2 -0
- package/dist/chunk-4WBDEVX2.js +4 -0
- package/dist/chunk-4WCUBZU3.js +8 -0
- package/dist/chunk-4WTUBQ36.js +40 -0
- package/dist/chunk-4XQ4O6IM.js +3 -0
- package/dist/chunk-55UQAMZO.js +4 -0
- package/dist/chunk-5D2LVK7O.js +125 -0
- package/dist/chunk-5IYJ56TT.js +2 -0
- package/dist/chunk-5PLMJC7Q.js +2 -0
- package/dist/chunk-5TNQJUR2.js +5 -0
- package/dist/chunk-62BDNPMI.js +2 -0
- package/dist/chunk-64DZ5TXR.js +7 -0
- package/dist/chunk-65245JCM.js +2 -0
- package/dist/chunk-6FFVZZL4.js +2 -0
- package/dist/chunk-6KO5JHAR.js +2 -0
- package/dist/chunk-6LRXOOSX.js +2 -0
- package/dist/chunk-6LSEIIF7.js +2 -0
- package/dist/chunk-6YMNWD3H.js +6 -0
- package/dist/chunk-72AD6ZRR.js +5 -0
- package/dist/chunk-73AAKPUC.js +4 -0
- package/dist/chunk-76CZ77DF.js +2 -0
- package/dist/chunk-7VPEEAAG.js +2 -0
- package/dist/chunk-7WTPQ4NX.js +14 -0
- package/dist/chunk-7Y5T6XDP.js +2 -0
- package/dist/chunk-A2IIGFMJ.js +5 -0
- package/dist/chunk-AB5KCTEV.js +2 -0
- package/dist/chunk-AC566WBP.js +6 -0
- package/dist/chunk-AGWFSTXC.js +3 -0
- package/dist/chunk-AOSIYPTA.js +2 -0
- package/dist/chunk-AUVEWPIF.js +2 -0
- package/dist/chunk-B56T42J3.js +25 -0
- package/dist/chunk-BIQEF5NE.js +2 -0
- package/dist/chunk-BL6XJKTA.js +3 -0
- package/dist/chunk-BMKOQJRI.js +2 -0
- package/dist/chunk-BOZ4EXBB.js +3 -0
- package/dist/chunk-BUTWYEPH.js +2 -0
- package/dist/chunk-BZB4QPIP.js +2 -0
- package/dist/{chunk-ILTDAWEF.js → chunk-CE357GEE.js} +4 -4
- package/dist/chunk-CFN45HFP.js +2 -0
- package/dist/chunk-CFYMZFXT.js +368 -0
- package/dist/chunk-CN5EH7O3.js +2 -0
- package/dist/chunk-D254DNNQ.js +4 -0
- package/dist/chunk-D3FDISIC.js +2 -0
- package/dist/chunk-D3NX5XIE.js +3 -0
- package/dist/chunk-DA7RPPDF.js +3 -0
- package/dist/chunk-DDMC3FON.js +3 -0
- package/dist/chunk-DIO3FUSG.js +2 -0
- package/dist/chunk-DJ2NNSUK.js +3 -0
- package/dist/chunk-DKYQIM3C.js +18 -0
- package/dist/{chunk-JTQVMR42.js → chunk-DOOEL2IV.js} +2 -2
- package/dist/chunk-DVFP6PZI.js +2 -0
- package/dist/chunk-E3FDPXZK.js +2 -0
- package/dist/chunk-E7YNJLCB.js +2 -0
- package/dist/chunk-EFGW5JPH.js +2 -0
- package/dist/chunk-EJVTR244.js +13 -0
- package/dist/chunk-EOV7RTRZ.js +2 -0
- package/dist/chunk-ETOIKRHO.js +2 -0
- package/dist/chunk-EYK3ZAO2.js +3 -0
- package/dist/chunk-F2V2LPET.js +52 -0
- package/dist/chunk-F4LUHJTF.js +2 -0
- package/dist/chunk-F4PUT6IT.js +2 -0
- package/dist/chunk-F56GCXXS.js +5 -0
- package/dist/chunk-FC2EVQRM.js +2 -0
- package/dist/chunk-FL7NBMHP.js +3 -0
- package/dist/chunk-FMRN2TRL.js +3 -0
- package/dist/chunk-FVULPZDF.js +20 -0
- package/dist/chunk-GCKCF5FL.js +43 -0
- package/dist/chunk-GH2PYF46.js +2 -0
- package/dist/chunk-GHJAGXIP.js +2 -0
- package/dist/{chunk-WIWY3CRX.js → chunk-GMVSHUKZ.js} +2 -2
- package/dist/chunk-GS6KDO4R.js +2 -0
- package/dist/chunk-GUUBXNN7.js +2 -0
- package/dist/chunk-GVWX5T43.js +80 -0
- package/dist/chunk-GZKFETP5.js +2 -0
- package/dist/chunk-H4EQHO6J.js +9 -0
- package/dist/chunk-H73WY2RM.js +2 -0
- package/dist/chunk-H75GSPRV.js +60 -0
- package/dist/chunk-HDR3AHSV.js +61 -0
- package/dist/chunk-HQBSL74Y.js +2 -0
- package/dist/chunk-HRRFKWPZ.js +2 -0
- package/dist/chunk-HXENDJC6.js +2 -0
- package/dist/chunk-IIBAZNSW.js +21 -0
- package/dist/chunk-INLMWEUU.js +12 -0
- package/dist/chunk-IWQPAF4F.js +2 -0
- package/dist/chunk-IZJ6YUKP.js +35 -0
- package/dist/chunk-J2TMAIN5.js +60 -0
- package/dist/chunk-J5FJMODQ.js +142 -0
- package/dist/chunk-J7HZPIO3.js +2 -0
- package/dist/chunk-JEVRKFRL.js +2 -0
- package/dist/chunk-JFXSGAEB.js +30 -0
- package/dist/chunk-JVRTHGFS.js +3 -0
- package/dist/chunk-JYWEX7RR.js +360 -0
- package/dist/chunk-K3YL22N6.js +2 -0
- package/dist/chunk-K4CN7GXK.js +12 -0
- package/dist/chunk-K5TBVXU4.js +30 -0
- package/dist/chunk-KDDIE2DP.js +9 -0
- package/dist/chunk-KHWRRPV4.js +2 -0
- package/dist/chunk-KI6NBKDY.js +14 -0
- package/dist/chunk-KU3QRSTH.js +2 -0
- package/dist/chunk-KZBJWZJB.js +2 -0
- package/dist/chunk-L7GFM3NP.js +3 -0
- package/dist/chunk-LMO6PK3V.js +35 -0
- package/dist/chunk-LN4YXJJU.js +2 -0
- package/dist/chunk-LOVIZBJ4.js +43 -0
- package/dist/chunk-LPCRK4A2.js +11 -0
- package/dist/chunk-MMHZKBFA.js +2 -0
- package/dist/{chunk-M2O5NY6W.js → chunk-MOQQBQRD.js} +2 -2
- package/dist/chunk-N2WN6I3L.js +2 -0
- package/dist/chunk-N3ORQT7L.js +2 -0
- package/dist/chunk-NAZ3RAIW.js +2 -0
- package/dist/chunk-NDUNO5JQ.js +2 -0
- package/dist/chunk-NEIWRNAZ.js +4 -0
- package/dist/chunk-NJJMVD65.js +2 -0
- package/dist/chunk-NLOQOBXI.js +20 -0
- package/dist/chunk-NOLZOVCU.js +2 -0
- package/dist/chunk-NOWINRRN.js +2 -0
- package/dist/chunk-NZAXKGRL.js +16 -0
- package/dist/chunk-O2C4UILI.js +2 -0
- package/dist/chunk-O3RHA6ZT.js +3 -0
- package/dist/chunk-O4UZSPPI.js +3 -0
- package/dist/chunk-OGFV2BUX.js +2 -0
- package/dist/chunk-OZCJXZK6.js +499 -0
- package/dist/chunk-P6ODM7BY.js +2 -0
- package/dist/{chunk-XBGWL66K.js → chunk-PAVGPRHJ.js} +2 -2
- package/dist/chunk-PH52RA7D.js +2 -0
- package/dist/chunk-PKN354TH.js +3 -0
- package/dist/chunk-PWOASWEG.js +11 -0
- package/dist/chunk-QIWXRW72.js +2 -0
- package/dist/chunk-QJRMOK5N.js +2 -0
- package/dist/{chunk-YXPUP5G2.js → chunk-QOIXNWQR.js} +2 -2
- package/dist/chunk-QXEUDXBT.js +3 -0
- package/dist/chunk-QYUVVBMR.js +6 -0
- package/dist/chunk-QZ7KQZRN.js +2 -0
- package/dist/chunk-R6LQBUDH.js +2 -0
- package/dist/chunk-RBS42E55.js +20 -0
- package/dist/chunk-RSJKPCFX.js +26 -0
- package/dist/chunk-S6CZA3MV.js +2 -0
- package/dist/chunk-STMVAHJP.js +2 -0
- package/dist/chunk-SYVPTTVW.js +2 -0
- package/dist/chunk-T3I6NHBH.js +2 -0
- package/dist/chunk-T6DK3ZP7.js +2 -0
- package/dist/chunk-TKD34PHN.js +4 -0
- package/dist/chunk-TNNQFH7W.js +2 -0
- package/dist/chunk-TNV7SSUF.js +2 -0
- package/dist/chunk-TO7ZR3EH.js +8 -0
- package/dist/chunk-TOU3CHK4.js +2 -0
- package/dist/chunk-TRBI4UKT.js +2 -0
- package/dist/chunk-TZCVNCAN.js +4 -0
- package/dist/chunk-U4LZA5LL.js +3 -0
- package/dist/chunk-U5RIG3JP.js +3 -0
- package/dist/chunk-UP5KXN2I.js +2 -0
- package/dist/chunk-UQFR3NDH.js +5 -0
- package/dist/chunk-UXYXF7GV.js +2 -0
- package/dist/chunk-VB3GOKOS.js +2 -0
- package/dist/chunk-VF5JZICY.js +2 -0
- package/dist/chunk-VTY3VK6E.js +2 -0
- package/dist/chunk-VX2O4RIS.js +2 -0
- package/dist/chunk-WKPV2TDZ.js +2 -0
- package/dist/chunk-WOFQ5DTB.js +2 -0
- package/dist/chunk-WS4C6TCK.js +2 -0
- package/dist/chunk-WXU3DGPU.js +2 -0
- package/dist/chunk-X6RMKHJQ.js +81 -0
- package/dist/{chunk-4ILJCCXV.js → chunk-XHMN6ZX7.js} +2 -2
- package/dist/chunk-XHTVFLWW.js +2 -0
- package/dist/chunk-XKIDJCIK.js +2 -0
- package/dist/chunk-XTYTYZPT.js +2 -0
- package/dist/chunk-Y2JHHTTA.js +2 -0
- package/dist/chunk-YGVRMGYN.js +4 -0
- package/dist/chunk-YNQCGEQE.js +2 -0
- package/dist/chunk-YOQVEXVE.js +14 -0
- package/dist/chunk-YRT2WLYY.js +2 -0
- package/dist/chunk-YTAP5Y2G.js +2 -0
- package/dist/chunk-YTYWI7VB.js +2 -0
- package/dist/chunk-YULZRALL.js +2 -0
- package/dist/chunk-Z33WQG4Q.js +2 -0
- package/dist/chunk-ZGTYGDMF.js +16 -0
- package/dist/chunk-ZHMRSZFD.js +43 -0
- package/dist/chunk-ZHSP366W.js +10 -0
- package/dist/chunk-ZIBYCYKK.js +7 -0
- package/dist/{chunk-GAS2LJMP.js → chunk-ZLADLUE6.js} +3 -3
- package/dist/chunk-ZO4YXUT6.js +4 -0
- package/dist/{chunk-HYO3NP5Q.js → chunk-ZR4HBC2H.js} +2 -2
- package/dist/cli-main.js +6 -6
- package/dist/cli.js +1 -1
- package/dist/{code-B17qEMbt.d.ts → code-BNyrCF3_.d.ts} +3 -2
- package/dist/code-IL5WH3NZ.js +2 -0
- package/dist/code-result-json-ANTBEDFP.js +4 -0
- package/dist/command-descriptors-HEEMDHTU.js +222 -0
- package/dist/deps-EOWFC6FD.js +2 -0
- package/dist/direct-navigation-Y5B6OSIQ.js +3 -0
- package/dist/{exploration-topology-BG4v30HZ.d.ts → exploration-topology-CSgEyAz-.d.ts} +3 -1
- package/dist/files-K4AI3JUM.js +2 -0
- package/dist/frontend-profile-roles-D7eCum8P.d.ts +10 -0
- package/dist/{health-CPp2Jf1Z.d.ts → health-BtfmNrfa.d.ts} +58 -74
- package/dist/hierarchy-6W5NDIFI.js +2 -0
- package/dist/imports-WH365QY4.js +2 -0
- package/dist/index.d.ts +13 -1
- package/dist/index.js +1 -1
- package/dist/members-K3PHMF5S.js +2 -0
- package/dist/methods-E7KVMBX4.js +2 -0
- package/dist/output-continuation-command-BJSY67SN.js +3 -0
- package/dist/output-pagination-UZJ5ACIX.js +24 -0
- package/dist/postinstall.js +1 -1
- package/dist/project-reindex-EP24WT4X.js +3 -0
- package/dist/queries/affected.js +1 -1
- package/dist/queries/architecture.d.ts +15 -4
- package/dist/queries/architecture.js +1 -1
- package/dist/queries/bottlenecks.js +1 -1
- package/dist/queries/by-kind.js +1 -1
- package/dist/queries/call-graph.d.ts +3 -1
- package/dist/queries/call-graph.js +1 -1
- package/dist/queries/change-surface.d.ts +1 -0
- package/dist/queries/change-surface.js +1 -1
- package/dist/queries/cleanup-plan.d.ts +3 -3
- package/dist/queries/cleanup-plan.js +1 -1
- package/dist/queries/co-change.d.ts +20 -2
- package/dist/queries/co-change.js +1 -1
- package/dist/queries/code.d.ts +1 -1
- package/dist/queries/code.js +1 -1
- package/dist/queries/complexity.d.ts +6 -3
- package/dist/queries/complexity.js +1 -1
- package/dist/queries/context.d.ts +1 -7
- package/dist/queries/context.js +1 -1
- package/dist/queries/coupling.js +1 -1
- package/dist/queries/cycles.js +1 -1
- package/dist/queries/dead.d.ts +2 -0
- package/dist/queries/dead.js +1 -1
- package/dist/queries/decorative-checkers.js +1 -1
- package/dist/queries/dependence-slice.d.ts +46 -22
- package/dist/queries/dependence-slice.js +1 -1
- package/dist/queries/dependency-depth.d.ts +1 -7
- package/dist/queries/dependency-depth.js +1 -1
- package/dist/queries/deps.js +1 -1
- package/dist/queries/diff-impact.d.ts +3 -1
- package/dist/queries/diff-impact.js +1 -1
- package/dist/queries/doc-drift.js +1 -1
- package/dist/queries/drift.d.ts +1 -1
- package/dist/queries/drift.js +1 -1
- package/dist/queries/duplicate-bodies.d.ts +29 -2
- package/dist/queries/duplicate-bodies.js +1 -1
- package/dist/queries/entry-map.d.ts +2 -4
- package/dist/queries/entry-map.js +1 -1
- package/dist/queries/evidence.d.ts +121 -61
- package/dist/queries/evidence.js +1 -1
- package/dist/queries/fan.js +1 -1
- package/dist/queries/files.js +1 -1
- package/dist/queries/health.d.ts +1 -1
- package/dist/queries/health.js +1 -1
- package/dist/queries/hierarchy.d.ts +2 -2
- package/dist/queries/hierarchy.js +1 -1
- package/dist/queries/hotspots.d.ts +1 -1
- package/dist/queries/hotspots.js +1 -1
- package/dist/queries/imports.d.ts +1 -0
- package/dist/queries/imports.js +1 -1
- package/dist/queries/incomplete-migration.d.ts +3 -3
- package/dist/queries/incomplete-migration.js +1 -1
- package/dist/queries/index.d.ts +17 -65
- package/dist/queries/index.js +1 -1
- package/dist/queries/locality-candidates.d.ts +4 -4
- package/dist/queries/locality-candidates.js +1 -1
- package/dist/queries/members.d.ts +2 -2
- package/dist/queries/members.js +1 -1
- package/dist/queries/methods.js +1 -1
- package/dist/queries/not-implemented.d.ts +2 -6
- package/dist/queries/not-implemented.js +1 -1
- package/dist/queries/outline.js +1 -1
- package/dist/queries/passthrough-candidates.d.ts +9 -1
- package/dist/queries/passthrough-candidates.js +1 -1
- package/dist/queries/react-component-duplicates.d.ts +19 -3
- package/dist/queries/react-component-duplicates.js +1 -1
- package/dist/queries/react-hook-candidates.d.ts +22 -3
- package/dist/queries/react-hook-candidates.js +1 -1
- package/dist/queries/react-large-component-pressure.d.ts +17 -3
- package/dist/queries/react-large-component-pressure.js +1 -1
- package/dist/queries/recent-duplicates.js +1 -1
- package/dist/queries/redundant-reexports.d.ts +4 -14
- package/dist/queries/redundant-reexports.js +1 -1
- package/dist/queries/refs.d.ts +4 -1
- package/dist/queries/refs.js +1 -1
- package/dist/queries/review.d.ts +188 -0
- package/dist/queries/review.js +2 -0
- package/dist/queries/similar-files.d.ts +7 -10
- package/dist/queries/similar-files.js +1 -1
- package/dist/queries/similar-signatures.js +1 -1
- package/dist/queries/similar.d.ts +19 -1
- package/dist/queries/similar.js +1 -1
- package/dist/queries/slice-cohesion.d.ts +205 -0
- package/dist/queries/slice-cohesion.js +2 -0
- package/dist/queries/source-inspection.d.ts +6 -202
- package/dist/queries/source-inspection.js +1 -1
- package/dist/queries/source-search.d.ts +2 -3
- package/dist/queries/source-search.js +1 -1
- package/dist/queries/stats.d.ts +1 -0
- package/dist/queries/stats.js +1 -1
- package/dist/queries/surface.js +1 -1
- package/dist/queries/symbols.js +1 -1
- package/dist/queries/system.d.ts +4 -2
- package/dist/queries/system.js +1 -1
- package/dist/queries/test-quality.d.ts +1 -1
- package/dist/queries/test-quality.js +1 -1
- package/dist/queries/twin-drift.d.ts +23 -7
- package/dist/queries/twin-drift.js +1 -1
- package/dist/queries/unused-imports.js +1 -1
- package/dist/queries/unused-params.d.ts +3 -15
- package/dist/queries/unused-params.js +1 -1
- package/dist/queries/vue-component-duplicates.js +1 -1
- package/dist/queries/vue-composable-candidates.js +1 -1
- package/dist/queries/vue-large-view-pressure.js +1 -1
- package/dist/query-service-fastpath.js +5 -5
- package/dist/query-service-server.js +4 -4
- package/dist/refs-CCBJG7WK.js +2 -0
- package/dist/refs-pagination-DRNLVU4S.js +2 -0
- package/dist/reindex-worker.js +79 -29
- package/dist/reindex.js +45 -45
- package/dist/repository-cache-worker.js +2 -0
- package/dist/runtime.d.ts +8 -8
- package/dist/runtime.js +3 -4
- package/dist/rust-semantic-session-server.js +1 -1
- package/dist/rust-semantic-session-worker.js +1 -1
- package/dist/rust-semantic-worker.js +1 -1
- package/dist/service-queries-2WAJI7R6.js +6 -0
- package/dist/source-inspection-91U9zdO3.d.ts +341 -0
- package/dist/{source-search-types-Dwz8KeuW.d.ts → source-search-types-DWGYNg8M.d.ts} +15 -2
- package/dist/stats-G7DIV6VU.js +2 -0
- package/dist/surface-IO55UALI.js +2 -0
- package/dist/system-ZBMSHJXU.js +2 -0
- package/dist/{queries/trace.d.ts → trace-BMjw3prn.d.ts} +1 -18
- package/dist/typescript-indexer.js +2 -0
- package/dist/typescript-mailbox-worker.js +1 -1
- package/dist/watch-server.js +3 -3
- package/docs/AGENT_GUIDE.md +19 -128
- package/docs/CLI_JSON_OUTPUT.md +21 -17
- package/docs/COMMAND_REFERENCE.md +34 -49
- package/docs/CURRENT_COMMANDS.md +123 -0
- package/docs/DETECTOR_EVIDENCE_CONTRACTS.md +0 -40
- package/docs/DETECTOR_GUIDE.md +55 -12
- package/docs/PRODUCT_VISION.md +135 -0
- package/docs/PROPERTY_TESTING.md +73 -0
- package/docs/REVIEW.md +76 -0
- package/docs/SKILLS.md +51 -0
- package/docs/WINDOWS_SIDECAR_RELEASE.md +12 -3
- package/docs/accuracy-audit-checklist.md +70 -13
- package/docs/analyzer-inventory.md +2 -2
- package/docs/locality-analyzer-design.md +9 -9
- package/package.json +18 -80
- package/scripts/evidence-product-contract.mjs +7 -3
- package/scripts/record-review-coverage.mjs +118 -0
- package/scripts/scip-windows-provenance.mjs +29 -19
- package/skills/scip-architecture-review/SKILL.md +57 -0
- package/skills/scip-architecture-review/agents/openai.yaml +4 -0
- package/skills/scip-architecture-review/references/design-checks.md +17 -0
- package/skills/scip-explore/SKILL.md +15 -59
- package/skills/scip-explore/agents/openai.yaml +3 -3
- package/skills/scip-explore/references/external-evidence.md +2 -2
- package/skills/scip-explore/references/information-model.md +26 -29
- package/skills/scip-explore/scripts/capture-evidence.mjs +68 -34
- package/skills/scip-integrity-audit/SKILL.md +53 -181
- package/skills/scip-integrity-audit/agents/openai.yaml +3 -3
- package/skills/scip-integrity-audit/references/integrity-probes.md +27 -0
- package/skills/scip-plan/SKILL.md +39 -65
- package/skills/scip-plan/agents/openai.yaml +2 -2
- package/skills/scip-query/SKILL.md +28 -81
- package/skills/scip-query/agents/openai.yaml +2 -2
- package/skills/scip-query/references/command-guide.md +169 -0
- package/skills/scip-setup/SKILL.md +4 -2
- package/skills/scip-setup/agents/openai.yaml +3 -3
- package/dist/by-kind-XI2CSWEY.js +0 -2
- package/dist/call-graph-UONR6JR5.js +0 -2
- package/dist/call-graph-evidence-lZa2dwQA.d.ts +0 -11
- package/dist/chunk-26CT72HM.js +0 -2
- package/dist/chunk-2E7CX53V.js +0 -2
- package/dist/chunk-2GRUZAQF.js +0 -43
- package/dist/chunk-2LDBDR6J.js +0 -29
- package/dist/chunk-2OOY75BW.js +0 -2
- package/dist/chunk-2R3V3PSD.js +0 -4
- package/dist/chunk-2WC2OEDO.js +0 -4
- package/dist/chunk-35NLDRZC.js +0 -2
- package/dist/chunk-3AF4TUFK.js +0 -3
- package/dist/chunk-3D3QG236.js +0 -2
- package/dist/chunk-3FHOF22C.js +0 -21
- package/dist/chunk-3JKSW6LJ.js +0 -2
- package/dist/chunk-3L2ZBPEX.js +0 -133
- package/dist/chunk-3PJABJSU.js +0 -2
- package/dist/chunk-3SVF22I5.js +0 -2
- package/dist/chunk-3WR4E3A3.js +0 -3
- package/dist/chunk-4FTZ4P5G.js +0 -2
- package/dist/chunk-4UX2F3JX.js +0 -2
- package/dist/chunk-4WNW27SX.js +0 -2
- package/dist/chunk-5ENOG4VP.js +0 -61
- package/dist/chunk-64BFSI5I.js +0 -2
- package/dist/chunk-66DVSJQG.js +0 -455
- package/dist/chunk-6HFCYNYE.js +0 -9
- package/dist/chunk-6PQNKL3G.js +0 -3
- package/dist/chunk-6V5CNXL6.js +0 -2
- package/dist/chunk-6VVV4WRR.js +0 -4
- package/dist/chunk-7BWFZPPZ.js +0 -2
- package/dist/chunk-7CYG22FH.js +0 -2
- package/dist/chunk-7F45LJKI.js +0 -2
- package/dist/chunk-7IWV2EG3.js +0 -3
- package/dist/chunk-7KCZELVM.js +0 -2
- package/dist/chunk-AFHTBORT.js +0 -2
- package/dist/chunk-AVRYW5OZ.js +0 -2
- package/dist/chunk-B3X6KU75.js +0 -2
- package/dist/chunk-B5D7QPBE.js +0 -4
- package/dist/chunk-BBCIS4DX.js +0 -16
- package/dist/chunk-BDUVI7TO.js +0 -3
- package/dist/chunk-BE7ZZTMC.js +0 -2
- package/dist/chunk-BHVUJOCQ.js +0 -3
- package/dist/chunk-BJT7LSPK.js +0 -3
- package/dist/chunk-BKVWUP7Y.js +0 -2
- package/dist/chunk-BQGB4HBD.js +0 -2
- package/dist/chunk-BRV7PIFF.js +0 -2
- package/dist/chunk-CEEZJXEF.js +0 -2
- package/dist/chunk-CIYLO6SI.js +0 -7
- package/dist/chunk-CJZXN4NU.js +0 -2
- package/dist/chunk-CNO7TOKL.js +0 -2
- package/dist/chunk-COF23M5F.js +0 -2
- package/dist/chunk-CWFP7GM5.js +0 -2
- package/dist/chunk-D2DHWI3D.js +0 -2
- package/dist/chunk-D4N5SQ2M.js +0 -4
- package/dist/chunk-DBRSYFXR.js +0 -2
- package/dist/chunk-DHUIOLDT.js +0 -2
- package/dist/chunk-DIRJWYBM.js +0 -6
- package/dist/chunk-DIUFNHRJ.js +0 -35
- package/dist/chunk-DRENNWRG.js +0 -2
- package/dist/chunk-DTZCKZEU.js +0 -4
- package/dist/chunk-DULC3QFP.js +0 -5
- package/dist/chunk-DYGHBZ2N.js +0 -16
- package/dist/chunk-E5R6AQ73.js +0 -40
- package/dist/chunk-E73UNJTF.js +0 -38
- package/dist/chunk-EKV5HX33.js +0 -2
- package/dist/chunk-EQHFIL6T.js +0 -3
- package/dist/chunk-ESIQ66Z7.js +0 -2
- package/dist/chunk-EVFUMY4R.js +0 -3
- package/dist/chunk-F7DY272B.js +0 -2
- package/dist/chunk-FBN2FGXG.js +0 -2
- package/dist/chunk-FDLOBR6P.js +0 -4
- package/dist/chunk-FESCRNVV.js +0 -5
- package/dist/chunk-FFRKR4EQ.js +0 -2
- package/dist/chunk-FGA2U4OR.js +0 -8
- package/dist/chunk-FIQRSHVM.js +0 -2
- package/dist/chunk-FPYLNQPT.js +0 -2
- package/dist/chunk-FRUSVINH.js +0 -2
- package/dist/chunk-GSP44ENC.js +0 -2
- package/dist/chunk-GUFSG5TX.js +0 -2
- package/dist/chunk-GYIZ4NXB.js +0 -2
- package/dist/chunk-GZIUDL6G.js +0 -2
- package/dist/chunk-H5EXS3HM.js +0 -2
- package/dist/chunk-HCXEQRFF.js +0 -18
- package/dist/chunk-HEHOQQKH.js +0 -2
- package/dist/chunk-HKGFPJ4T.js +0 -4
- package/dist/chunk-HLZTEXRA.js +0 -2
- package/dist/chunk-HOENASQM.js +0 -3
- package/dist/chunk-HVF5VBG6.js +0 -2
- package/dist/chunk-I55I7XXP.js +0 -2
- package/dist/chunk-IDFEUFKS.js +0 -2
- package/dist/chunk-IHGQTTVW.js +0 -2
- package/dist/chunk-IICPE7B2.js +0 -20
- package/dist/chunk-IL676XCC.js +0 -18
- package/dist/chunk-IW5XQG5G.js +0 -2
- package/dist/chunk-IZDPJ2QI.js +0 -2
- package/dist/chunk-J66VOFW6.js +0 -5
- package/dist/chunk-JFMEXGFE.js +0 -2
- package/dist/chunk-JGKUET5J.js +0 -3
- package/dist/chunk-JS4PGXMV.js +0 -3
- package/dist/chunk-JWTGMPIT.js +0 -80
- package/dist/chunk-JYR66JN5.js +0 -5
- package/dist/chunk-KFOYCQAJ.js +0 -9
- package/dist/chunk-KLFEXGQA.js +0 -2
- package/dist/chunk-KMVGRIO2.js +0 -2
- package/dist/chunk-KYSDI3GE.js +0 -5
- package/dist/chunk-L6PJPETJ.js +0 -29
- package/dist/chunk-LDVT66YM.js +0 -2
- package/dist/chunk-LEECKFCJ.js +0 -2
- package/dist/chunk-LMZ5PRUV.js +0 -2
- package/dist/chunk-LQRQN2XA.js +0 -2
- package/dist/chunk-LXABEJX3.js +0 -2
- package/dist/chunk-MNV5FSBW.js +0 -3
- package/dist/chunk-MPQ4OTBM.js +0 -2
- package/dist/chunk-MTDBHTSF.js +0 -2
- package/dist/chunk-MV3CDXPI.js +0 -38
- package/dist/chunk-MWN53KRN.js +0 -60
- package/dist/chunk-MXNGIEPU.js +0 -3
- package/dist/chunk-N2ZSIIGR.js +0 -117
- package/dist/chunk-N5B2NILC.js +0 -5
- package/dist/chunk-NJITK2GP.js +0 -2
- package/dist/chunk-NOGJXYFO.js +0 -2
- package/dist/chunk-NOYBFVJA.js +0 -554
- package/dist/chunk-NWQXSFFU.js +0 -3
- package/dist/chunk-ODDUPDP7.js +0 -13
- package/dist/chunk-OLIWTZI3.js +0 -3
- package/dist/chunk-OLNV6I6U.js +0 -2
- package/dist/chunk-OR2E3AGZ.js +0 -2
- package/dist/chunk-OSR2GEHQ.js +0 -2
- package/dist/chunk-OSSESPDX.js +0 -3
- package/dist/chunk-OWOOWNJ5.js +0 -7
- package/dist/chunk-P42EIXTA.js +0 -2
- package/dist/chunk-PJFGPYTU.js +0 -2
- package/dist/chunk-PP7KNN7L.js +0 -2
- package/dist/chunk-PU7T5QYQ.js +0 -2
- package/dist/chunk-PWWAJSKV.js +0 -74
- package/dist/chunk-PZL5T7SU.js +0 -73
- package/dist/chunk-QBE3YX64.js +0 -23
- package/dist/chunk-QGVTFRY2.js +0 -7
- package/dist/chunk-QOJONDS7.js +0 -2
- package/dist/chunk-QU5XRYB5.js +0 -4
- package/dist/chunk-QUU5OBVK.js +0 -11
- package/dist/chunk-RBLQNW26.js +0 -20
- package/dist/chunk-RTQ7NEKG.js +0 -81
- package/dist/chunk-SQXRS7BG.js +0 -4
- package/dist/chunk-SSK6LDPC.js +0 -2
- package/dist/chunk-SZHGTCPP.js +0 -7
- package/dist/chunk-T4N4P2K5.js +0 -16
- package/dist/chunk-TA3QKLLU.js +0 -2
- package/dist/chunk-TEBQMNVI.js +0 -43
- package/dist/chunk-TPFHAQ2G.js +0 -2
- package/dist/chunk-TQPCBMWT.js +0 -5
- package/dist/chunk-TQZV7KV4.js +0 -2
- package/dist/chunk-TRNAEQ6P.js +0 -3
- package/dist/chunk-TY7CRN3Z.js +0 -2
- package/dist/chunk-UHFYCMZO.js +0 -35
- package/dist/chunk-UICY4GTQ.js +0 -7
- package/dist/chunk-UVGEWT4Y.js +0 -26
- package/dist/chunk-UXW33INU.js +0 -29
- package/dist/chunk-VMPRET3I.js +0 -5
- package/dist/chunk-VNLGKHS6.js +0 -6
- package/dist/chunk-VQILFTEH.js +0 -2
- package/dist/chunk-VUPHCS7Y.js +0 -57
- package/dist/chunk-VVZSBTSU.js +0 -23
- package/dist/chunk-VZRNID6A.js +0 -2
- package/dist/chunk-W5OXRYGE.js +0 -7
- package/dist/chunk-W6STWDQI.js +0 -57
- package/dist/chunk-W7CXK74K.js +0 -2
- package/dist/chunk-WB3WYIRE.js +0 -4
- package/dist/chunk-WDNVY4E7.js +0 -20
- package/dist/chunk-WK46TNUM.js +0 -3
- package/dist/chunk-WNTFFKAX.js +0 -12
- package/dist/chunk-WOIKCX6A.js +0 -2
- package/dist/chunk-WUN6KBHV.js +0 -2
- package/dist/chunk-WYCTJDVR.js +0 -2
- package/dist/chunk-WYPL7GF7.js +0 -2
- package/dist/chunk-XDAUYDFT.js +0 -2
- package/dist/chunk-XDQMU3BT.js +0 -2
- package/dist/chunk-XFA4SSO3.js +0 -3
- package/dist/chunk-XGZEP6GR.js +0 -8
- package/dist/chunk-XPDPNWTQ.js +0 -368
- package/dist/chunk-XRYABF57.js +0 -8
- package/dist/chunk-YBGKCQIS.js +0 -2
- package/dist/chunk-YEN6CYC7.js +0 -16
- package/dist/chunk-YF5IB2LF.js +0 -2
- package/dist/chunk-YI2AWIHC.js +0 -3
- package/dist/chunk-YPWBKGFU.js +0 -2
- package/dist/chunk-YPWHBBIS.js +0 -2
- package/dist/chunk-YSH6U3L4.js +0 -3
- package/dist/chunk-YU5DZUZI.js +0 -10
- package/dist/chunk-YWO5DDRC.js +0 -16
- package/dist/chunk-Z4CDXYNQ.js +0 -2
- package/dist/chunk-ZF5KHH7C.js +0 -2
- package/dist/chunk-ZOHS7AQV.js +0 -21
- package/dist/chunk-ZTI4SBFV.js +0 -3
- package/dist/code-MI6F2TTU.js +0 -2
- package/dist/code-result-json-FXALY4HE.js +0 -2
- package/dist/command-descriptors-P34VABY5.js +0 -343
- package/dist/dataflow-4KEMJPC6.js +0 -2
- package/dist/dependence-slice-R7FPWD5M.js +0 -2
- package/dist/deps-7EMQUYUT.js +0 -2
- package/dist/direct-navigation-6YO234F2.js +0 -3
- package/dist/entry-map-KOOLR26E.js +0 -2
- package/dist/files-OPIPJIGZ.js +0 -2
- package/dist/graph-evidence-Bjyky2V4.d.ts +0 -126
- package/dist/hierarchy-QPD2CAER.js +0 -2
- package/dist/imports-M6HUXRXC.js +0 -2
- package/dist/members-I5MEFOCT.js +0 -2
- package/dist/methods-5JYGGHXA.js +0 -2
- package/dist/next-anchor-candidates-BwMczMvX.d.ts +0 -90
- package/dist/output-continuation-command-UPQAAKBP.js +0 -3
- package/dist/output-pagination-3OFL2MJV.js +0 -19
- package/dist/project-reindex-UKKQ5PLS.js +0 -3
- package/dist/queries/anchors.d.ts +0 -123
- package/dist/queries/anchors.js +0 -2
- package/dist/queries/complexity-hotspots.d.ts +0 -40
- package/dist/queries/complexity-hotspots.js +0 -2
- package/dist/queries/convergence.d.ts +0 -33
- package/dist/queries/convergence.js +0 -2
- package/dist/queries/dataflow.d.ts +0 -77
- package/dist/queries/dataflow.js +0 -2
- package/dist/queries/deep-chains.d.ts +0 -5
- package/dist/queries/deep-chains.js +0 -2
- package/dist/queries/extract-candidates.d.ts +0 -52
- package/dist/queries/extract-candidates.js +0 -2
- package/dist/queries/isolated.d.ts +0 -24
- package/dist/queries/isolated.js +0 -2
- package/dist/queries/plan-context.d.ts +0 -33
- package/dist/queries/plan-context.js +0 -2
- package/dist/queries/reference-neighborhood.d.ts +0 -4
- package/dist/queries/reference-neighborhood.js +0 -2
- package/dist/queries/reference-reachability.d.ts +0 -48
- package/dist/queries/reference-reachability.js +0 -2
- package/dist/queries/self-audit.d.ts +0 -63
- package/dist/queries/self-audit.js +0 -2
- package/dist/queries/similar-chains.d.ts +0 -48
- package/dist/queries/similar-chains.js +0 -2
- package/dist/queries/slice.d.ts +0 -4
- package/dist/queries/slice.js +0 -2
- package/dist/queries/stale-abstractions.d.ts +0 -72
- package/dist/queries/stale-abstractions.js +0 -2
- package/dist/queries/system-map.d.ts +0 -449
- package/dist/queries/system-map.js +0 -2
- package/dist/queries/trace.js +0 -2
- package/dist/queries/twin-ab.d.ts +0 -66
- package/dist/queries/twin-ab.js +0 -2
- package/dist/queries/value-flow.d.ts +0 -43
- package/dist/queries/value-flow.js +0 -2
- package/dist/queries/wrapper-candidates.d.ts +0 -34
- package/dist/queries/wrapper-candidates.js +0 -2
- package/dist/refs-PSU4JZZW.js +0 -2
- package/dist/refs-pagination-JG6CJMRC.js +0 -2
- package/dist/slice-HYRATV64.js +0 -2
- package/dist/source-snippet-_wrcgmZc.d.ts +0 -15
- package/dist/stats-OOJ74B32.js +0 -2
- package/dist/surface-VTGDYWF5.js +0 -2
- package/dist/symbol-resolution-WD5EU5JE.js +0 -2
- package/dist/system-LRQNFOR2.js +0 -2
- package/dist/trace-F4B6OLL4.js +0 -2
- package/dist/value-flow-VRPZY72V.js +0 -2
- package/skills/concrete-plan/SKILL.md +0 -8
- package/skills/concrete-plan/agents/openai.yaml +0 -4
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { S as ScipDatabase } from '../db-BwIVAYNB.js';
|
|
2
|
-
import 'better-sqlite3';
|
|
3
|
-
import '../config-types-B9B60MiR.js';
|
|
4
|
-
|
|
5
|
-
interface DataflowResult {
|
|
6
|
-
symbol: string;
|
|
7
|
-
shortName: string;
|
|
8
|
-
relativePath: string;
|
|
9
|
-
/** Where the symbol is defined (role=1) */
|
|
10
|
-
definitionSites: Array<{
|
|
11
|
-
file: string;
|
|
12
|
-
line: number;
|
|
13
|
-
}>;
|
|
14
|
-
/** Where the symbol is referenced (role!=1) */
|
|
15
|
-
usageSites: Array<{
|
|
16
|
-
file: string;
|
|
17
|
-
line: number;
|
|
18
|
-
enclosingSymbol: string;
|
|
19
|
-
enclosingShort: string;
|
|
20
|
-
}>;
|
|
21
|
-
/** Symbols that appear in the same function that defines this symbol (producers/inputs) */
|
|
22
|
-
producers: Array<{
|
|
23
|
-
symbol: string;
|
|
24
|
-
shortName: string;
|
|
25
|
-
file: string;
|
|
26
|
-
}>;
|
|
27
|
-
/** Symbols defined by functions that reference this symbol (consumers/outputs) */
|
|
28
|
-
consumers: Array<{
|
|
29
|
-
symbol: string;
|
|
30
|
-
shortName: string;
|
|
31
|
-
file: string;
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
interface ReferenceNeighborhoodResult {
|
|
35
|
-
symbol: string;
|
|
36
|
-
shortName: string;
|
|
37
|
-
relativePath: string;
|
|
38
|
-
definitionSites: Array<{
|
|
39
|
-
file: string;
|
|
40
|
-
line: number;
|
|
41
|
-
}>;
|
|
42
|
-
referenceSites: Array<{
|
|
43
|
-
file: string;
|
|
44
|
-
line: number;
|
|
45
|
-
enclosingSymbol: string;
|
|
46
|
-
enclosingShort: string;
|
|
47
|
-
}>;
|
|
48
|
-
outgoingCalls: Array<{
|
|
49
|
-
symbol: string;
|
|
50
|
-
shortName: string;
|
|
51
|
-
file: string;
|
|
52
|
-
}>;
|
|
53
|
-
incomingCalls: Array<{
|
|
54
|
-
symbol: string;
|
|
55
|
-
shortName: string;
|
|
56
|
-
file: string;
|
|
57
|
-
}>;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Compiler-identified definition/reference sites plus the static call
|
|
61
|
-
* neighborhood of one symbol. This projection deliberately makes no value-flow
|
|
62
|
-
* claim: an outgoing callee is not necessarily a producer and an incoming
|
|
63
|
-
* caller is not necessarily a consumer of a returned value.
|
|
64
|
-
*/
|
|
65
|
-
declare function referenceNeighborhood(db: ScipDatabase, symbolPattern: string, opts?: {
|
|
66
|
-
semantic?: boolean;
|
|
67
|
-
}): ReferenceNeighborhoodResult | null;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated This historical command returns a reference/call neighborhood,
|
|
70
|
-
* not value-level data flow. Use `referenceNeighborhood` for that projection
|
|
71
|
-
* and `valueFlow` for proved data-dependence edges.
|
|
72
|
-
*/
|
|
73
|
-
declare function dataflow(db: ScipDatabase, symbolPattern: string, opts?: {
|
|
74
|
-
semantic?: boolean;
|
|
75
|
-
}): DataflowResult | null;
|
|
76
|
-
|
|
77
|
-
export { type DataflowResult, type ReferenceNeighborhoodResult, dataflow, referenceNeighborhood };
|
package/dist/queries/dataflow.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-CWFP7GM5.js";import"../chunk-BOJ5SVE2.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{b as dataflow,a as referenceNeighborhood};
|
|
2
|
-
//# sourceMappingURL=dataflow.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-DBRSYFXR.js";import"../chunk-35NLDRZC.js";import"../chunk-TEBQMNVI.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{b as deepChains,a as dependencyDepth};
|
|
2
|
-
//# sourceMappingURL=deep-chains.js.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { S as ScipDatabase } from '../db-BwIVAYNB.js';
|
|
2
|
-
import 'better-sqlite3';
|
|
3
|
-
import '../config-types-B9B60MiR.js';
|
|
4
|
-
|
|
5
|
-
type ExtractCandidateKind = 'workflow-orchestration' | 'broad-helper-cluster' | 'cohesive-helper-cluster';
|
|
6
|
-
type ExtractCandidateActionTier = 'signal';
|
|
7
|
-
interface ExtractCandidate {
|
|
8
|
-
symbol: string;
|
|
9
|
-
shortName: string;
|
|
10
|
-
relativePath: string;
|
|
11
|
-
startLine: number;
|
|
12
|
-
endLine: number;
|
|
13
|
-
loc: number;
|
|
14
|
-
/** Total callees */
|
|
15
|
-
totalCallees: number;
|
|
16
|
-
/** Reviewer-facing shape of the extraction signal. */
|
|
17
|
-
extractionKind: ExtractCandidateKind;
|
|
18
|
-
/** Extraction candidates are contextual signals, not direct repair mandates. */
|
|
19
|
-
actionTier: ExtractCandidateActionTier;
|
|
20
|
-
evidenceReasons: string[];
|
|
21
|
-
recommendation: string;
|
|
22
|
-
/** Distinct clusters of callees (natural extraction seams) */
|
|
23
|
-
clusters: Array<{
|
|
24
|
-
callees: string[];
|
|
25
|
-
/** How isolated this cluster is from the rest (0-1, higher = more extractable) */
|
|
26
|
-
isolation: number;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Find functions with natural extraction seams.
|
|
31
|
-
*
|
|
32
|
-
* A large function that references two distinct groups of symbols —
|
|
33
|
-
* where group A's symbols are never co-referenced with group B's —
|
|
34
|
-
* has a natural extraction boundary. The isolated cluster can likely
|
|
35
|
-
* be pulled into its own function.
|
|
36
|
-
*
|
|
37
|
-
* We detect this by:
|
|
38
|
-
* 1. Finding all callees of a function
|
|
39
|
-
* 2. Building a co-occurrence graph (which callees appear in the same chunk)
|
|
40
|
-
* 3. Finding connected components — disconnected components = extraction seams
|
|
41
|
-
* 4. Scoring each cluster by how isolated it is from the rest
|
|
42
|
-
*/
|
|
43
|
-
declare function extractCandidates(db: ScipDatabase, opts?: {
|
|
44
|
-
scope?: string;
|
|
45
|
-
minLoc?: number;
|
|
46
|
-
minCallees?: number;
|
|
47
|
-
limit?: number;
|
|
48
|
-
scanLimit?: number;
|
|
49
|
-
semantic?: boolean;
|
|
50
|
-
}): ExtractCandidate[];
|
|
51
|
-
|
|
52
|
-
export { type ExtractCandidate, type ExtractCandidateActionTier, type ExtractCandidateKind, extractCandidates };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-3PJABJSU.js";import"../chunk-WUN6KBHV.js";import"../chunk-BOJ5SVE2.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as extractCandidates};
|
|
2
|
-
//# sourceMappingURL=extract-candidates.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { S as ScipDatabase } from '../db-BwIVAYNB.js';
|
|
2
|
-
import 'better-sqlite3';
|
|
3
|
-
import '../config-types-B9B60MiR.js';
|
|
4
|
-
|
|
5
|
-
interface IsolatedResult {
|
|
6
|
-
symbol: string;
|
|
7
|
-
shortName: string;
|
|
8
|
-
relativePath: string;
|
|
9
|
-
startLine: number;
|
|
10
|
-
endLine: number;
|
|
11
|
-
loc: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Find isolated callables: defined locally, referenced by nothing,
|
|
15
|
-
* and calling nothing else. These are truly disconnected leaves.
|
|
16
|
-
*/
|
|
17
|
-
declare function isolated(db: ScipDatabase, opts?: {
|
|
18
|
-
scope?: string;
|
|
19
|
-
minLoc?: number;
|
|
20
|
-
scanLimit?: number;
|
|
21
|
-
semantic?: boolean;
|
|
22
|
-
}): IsolatedResult[];
|
|
23
|
-
|
|
24
|
-
export { type IsolatedResult, isolated };
|
package/dist/queries/isolated.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-I55I7XXP.js";import"../chunk-CNO7TOKL.js";import"../chunk-BOJ5SVE2.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as isolated};
|
|
2
|
-
//# sourceMappingURL=isolated.js.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { RepositoryContextHistory, RepositoryContextOptions, RepositoryContextResult, repositoryContext } from './context.js';
|
|
2
|
-
import '../db-BwIVAYNB.js';
|
|
3
|
-
import 'better-sqlite3';
|
|
4
|
-
import '../config-types-B9B60MiR.js';
|
|
5
|
-
import '../git-history-ChNHbfZQ.js';
|
|
6
|
-
import './affected.js';
|
|
7
|
-
import './call-graph.js';
|
|
8
|
-
import './change-surface.js';
|
|
9
|
-
import './similar.js';
|
|
10
|
-
import './complexity.js';
|
|
11
|
-
import '../symbol-types-BIQwfoAx.js';
|
|
12
|
-
import './dataflow.js';
|
|
13
|
-
import './deps.js';
|
|
14
|
-
import './reference-reachability.js';
|
|
15
|
-
import './surface.js';
|
|
16
|
-
import './system.js';
|
|
17
|
-
import './symbols.js';
|
|
18
|
-
import './trace.js';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use `repositoryContext`. This compatibility name remains for
|
|
22
|
-
* one minor release so existing library consumers can migrate without a
|
|
23
|
-
* source break.
|
|
24
|
-
*/
|
|
25
|
-
declare const planContext: typeof repositoryContext;
|
|
26
|
-
/** @deprecated Use `RepositoryContextOptions`. */
|
|
27
|
-
type PlanContextOptions = RepositoryContextOptions;
|
|
28
|
-
/** @deprecated Use `RepositoryContextHistory`. */
|
|
29
|
-
type PlanContextHistory = RepositoryContextHistory;
|
|
30
|
-
/** @deprecated Use `RepositoryContextResult`. */
|
|
31
|
-
type PlanContextResult = RepositoryContextResult;
|
|
32
|
-
|
|
33
|
-
export { type PlanContextHistory, type PlanContextOptions, type PlanContextResult, planContext };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-AVRYW5OZ.js";import"../chunk-VNLGKHS6.js";import"../chunk-2LDBDR6J.js";import"../chunk-FDLOBR6P.js";import"../chunk-7BWFZPPZ.js";import"../chunk-D2DHWI3D.js";import"../chunk-2R3V3PSD.js";import"../chunk-EG2CPZMJ.js";import"../chunk-CWFP7GM5.js";import"../chunk-JGKUET5J.js";import"../chunk-ZF5KHH7C.js";import"../chunk-QUU5OBVK.js";import"../chunk-DHUIOLDT.js";import"../chunk-6HFCYNYE.js";import"../chunk-M2O5NY6W.js";import"../chunk-3SVF22I5.js";import"../chunk-BRV7PIFF.js";import"../chunk-T4N4P2K5.js";import"../chunk-TQPCBMWT.js";import"../chunk-KMVGRIO2.js";import"../chunk-YU5DZUZI.js";import"../chunk-6VVV4WRR.js";import"../chunk-BOJ5SVE2.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as planContext};
|
|
2
|
-
//# sourceMappingURL=plan-context.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-CWFP7GM5.js";import"../chunk-BOJ5SVE2.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{b as dataflow,a as referenceNeighborhood};
|
|
2
|
-
//# sourceMappingURL=reference-neighborhood.js.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { S as ScipDatabase } from '../db-BwIVAYNB.js';
|
|
2
|
-
import 'better-sqlite3';
|
|
3
|
-
import '../config-types-B9B60MiR.js';
|
|
4
|
-
|
|
5
|
-
interface SliceResult {
|
|
6
|
-
symbol: string;
|
|
7
|
-
shortName: string;
|
|
8
|
-
direction: 'backward' | 'forward';
|
|
9
|
-
/** Backward: symbols referenced in the same function as the target's definition (inputs) */
|
|
10
|
-
/** Forward: symbols defined by functions that reference the target (outputs) */
|
|
11
|
-
connectedSymbols: Array<{
|
|
12
|
-
symbol: string;
|
|
13
|
-
shortName: string;
|
|
14
|
-
file: string;
|
|
15
|
-
relationship: string;
|
|
16
|
-
}>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Historical reference/call reachability projection.
|
|
20
|
-
*
|
|
21
|
-
* Backward slice: "What feeds into this?" — transitive closure of callees.
|
|
22
|
-
* Depth 1 = direct callees, depth 2 = their callees, etc.
|
|
23
|
-
*
|
|
24
|
-
* Forward slice: "What does this feed into?" — at each site where the target
|
|
25
|
-
* is referenced, find the enclosing function, then find what that function
|
|
26
|
-
* exports/defines. These are the outputs/consumers.
|
|
27
|
-
*
|
|
28
|
-
* This is not a program slice: call reachability does not establish data or
|
|
29
|
-
* control dependence. It remains available under an honest name so existing
|
|
30
|
-
* callers can migrate without losing behavior.
|
|
31
|
-
*/
|
|
32
|
-
declare function referenceReachability(db: ScipDatabase, symbolPattern: string, opts?: {
|
|
33
|
-
direction?: 'backward' | 'forward';
|
|
34
|
-
maxDepth?: number;
|
|
35
|
-
semantic?: boolean;
|
|
36
|
-
}): SliceResult | null;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated The historical implementation traverses calls and reference
|
|
39
|
-
* owners, not a program-dependence graph. Use `referenceReachability` for that
|
|
40
|
-
* legacy projection and `dependenceSlice` for data/control slicing.
|
|
41
|
-
*/
|
|
42
|
-
declare function slice(db: ScipDatabase, symbolPattern: string, opts?: {
|
|
43
|
-
direction?: 'backward' | 'forward';
|
|
44
|
-
maxDepth?: number;
|
|
45
|
-
semantic?: boolean;
|
|
46
|
-
}): SliceResult | null;
|
|
47
|
-
|
|
48
|
-
export { type SliceResult, referenceReachability, slice };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-7BWFZPPZ.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as referenceReachability,b as slice};
|
|
2
|
-
//# sourceMappingURL=reference-reachability.js.map
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { S as ScipDatabase } from '../db-BwIVAYNB.js';
|
|
2
|
-
import 'better-sqlite3';
|
|
3
|
-
import '../config-types-B9B60MiR.js';
|
|
4
|
-
|
|
5
|
-
type AuditQuestion = 'references' | 'callees';
|
|
6
|
-
type AuditOracleKind = 'semantic' | 'source';
|
|
7
|
-
interface AuditDisagreement {
|
|
8
|
-
symbol: string;
|
|
9
|
-
question: AuditQuestion;
|
|
10
|
-
/** Files only the cheap evidence path reported (potential false positives). */
|
|
11
|
-
cheapOnly: string[];
|
|
12
|
-
/** Files only the compiler oracle reported (potential misses). */
|
|
13
|
-
oracleOnly: string[];
|
|
14
|
-
}
|
|
15
|
-
interface AuditQuestionScore {
|
|
16
|
-
question: AuditQuestion;
|
|
17
|
-
/** Symbols where both paths produced a comparable (non-empty) answer. */
|
|
18
|
-
comparedSymbols: number;
|
|
19
|
-
/**
|
|
20
|
-
* Null when the oracle is partial for this question (it confirms positives
|
|
21
|
-
* but doesn't enumerate all of them), so "cheap-only" answers are
|
|
22
|
-
* unverified rather than wrong and no precision claim is valid.
|
|
23
|
-
*/
|
|
24
|
-
precision: number | null;
|
|
25
|
-
recall: number;
|
|
26
|
-
/** Cheap-path answers the oracle could not confirm (only meaningful when precision is null). */
|
|
27
|
-
unverified: number;
|
|
28
|
-
/** Samples skipped because the oracle is partial and produced no comparable answer. */
|
|
29
|
-
skippedOraclePartial: number;
|
|
30
|
-
}
|
|
31
|
-
interface SelfAuditResult {
|
|
32
|
-
/** False when no semantic or source-backed oracle is available. */
|
|
33
|
-
available: boolean;
|
|
34
|
-
sampleSize: number;
|
|
35
|
-
/** Fraction of sampled symbols the oracle could answer at all. */
|
|
36
|
-
oracleCoverage: number;
|
|
37
|
-
/** Semantic means compiler-backed; source means language source-fact-backed. */
|
|
38
|
-
oracleKind?: AuditOracleKind;
|
|
39
|
-
scores: AuditQuestionScore[];
|
|
40
|
-
/** Largest divergences — the actionable debugging targets. */
|
|
41
|
-
topDisagreements: AuditDisagreement[];
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Accuracy oracle: score the cheap evidence paths (SCIP + source heuristics)
|
|
45
|
-
* against the embedded TypeScript compiler (ts-morph) on a deterministic
|
|
46
|
-
* sample of symbols.
|
|
47
|
-
*
|
|
48
|
-
* This measures *agreement with compiler semantics*, not absolute truth —
|
|
49
|
-
* the compiler misses dynamic dispatch too. Comparison is at file-set
|
|
50
|
-
* granularity ("which files reference/are called by this symbol") because
|
|
51
|
-
* symbol-identity schemes differ between providers while file attribution
|
|
52
|
-
* does not.
|
|
53
|
-
*
|
|
54
|
-
* The point: "make every command as accurate as possible" is only meaningful
|
|
55
|
-
* once accuracy is a number you can track. This is that number.
|
|
56
|
-
*/
|
|
57
|
-
declare function selfAudit(db: ScipDatabase, opts?: {
|
|
58
|
-
samples?: number;
|
|
59
|
-
scope?: string;
|
|
60
|
-
maxDisagreements?: number;
|
|
61
|
-
}): SelfAuditResult;
|
|
62
|
-
|
|
63
|
-
export { type AuditDisagreement, type AuditOracleKind, type AuditQuestion, type AuditQuestionScore, type SelfAuditResult, selfAudit };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-COF23M5F.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as selfAudit};
|
|
2
|
-
//# sourceMappingURL=self-audit.js.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { S as ScipDatabase } from '../db-BwIVAYNB.js';
|
|
2
|
-
import 'better-sqlite3';
|
|
3
|
-
import '../config-types-B9B60MiR.js';
|
|
4
|
-
|
|
5
|
-
interface SimilarChainResult {
|
|
6
|
-
chainA: string[];
|
|
7
|
-
chainB: string[];
|
|
8
|
-
/** Fraction of nodes shared (0-1) */
|
|
9
|
-
similarity: number;
|
|
10
|
-
/** Edit distance between the two chains */
|
|
11
|
-
editDistance: number;
|
|
12
|
-
/** Indices where the chains diverge — the consolidation targets */
|
|
13
|
-
divergencePoints: Array<{
|
|
14
|
-
index: number;
|
|
15
|
-
nodeA: string;
|
|
16
|
-
nodeB: string;
|
|
17
|
-
}>;
|
|
18
|
-
/** Shared prefix */
|
|
19
|
-
commonPrefix: string[];
|
|
20
|
-
/** Shared suffix */
|
|
21
|
-
commonSuffix: string[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Find end-to-end dependency flows that are structurally similar
|
|
25
|
-
* but diverge at a few points — indicating duplicated pipelines
|
|
26
|
-
* that could be consolidated.
|
|
27
|
-
*
|
|
28
|
-
* Uses infrastructure-filtered chain comparison:
|
|
29
|
-
*
|
|
30
|
-
* 1. Build all dependency chains via DFS
|
|
31
|
-
* 2. Compute node frequency across all chains
|
|
32
|
-
* 3. Filter out infrastructure nodes (appearing in >50% of chains)
|
|
33
|
-
* 4. Compare the filtered chains — what's left is the unique pipeline
|
|
34
|
-
* 5. Edit distance on filtered chains finds real structural duplicates
|
|
35
|
-
*
|
|
36
|
-
* Two chains that both pass through db.ts → types.ts is meaningless.
|
|
37
|
-
* Two chains that both pass through userValidation → userRepo → emailService
|
|
38
|
-
* after filtering is a strong consolidation signal.
|
|
39
|
-
*/
|
|
40
|
-
declare function similarChains(db: ScipDatabase, opts?: {
|
|
41
|
-
minSimilarity?: number;
|
|
42
|
-
limit?: number;
|
|
43
|
-
scope?: string;
|
|
44
|
-
minChainLength?: number;
|
|
45
|
-
maxChainLength?: number;
|
|
46
|
-
}): SimilarChainResult[];
|
|
47
|
-
|
|
48
|
-
export { type SimilarChainResult, similarChains };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-IDFEUFKS.js";import"../chunk-TEBQMNVI.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as similarChains};
|
|
2
|
-
//# sourceMappingURL=similar-chains.js.map
|
package/dist/queries/slice.d.ts
DELETED
package/dist/queries/slice.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-7BWFZPPZ.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as referenceReachability,b as slice};
|
|
2
|
-
//# sourceMappingURL=slice.js.map
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { S as ScipDatabase } from '../db-BwIVAYNB.js';
|
|
2
|
-
import 'better-sqlite3';
|
|
3
|
-
import '../config-types-B9B60MiR.js';
|
|
4
|
-
|
|
5
|
-
type StaleAbstractionActionTier = 'direct' | 'signal';
|
|
6
|
-
type StalenessKind = 'unused-abstraction' | 'misplaced-single-consumer-type' | 'single-consumer-abstraction' | 'one-to-one-class-encapsulation';
|
|
7
|
-
interface StaleAbstraction {
|
|
8
|
-
symbol: string;
|
|
9
|
-
shortName: string;
|
|
10
|
-
file: string;
|
|
11
|
-
startLine: number;
|
|
12
|
-
endLine: number;
|
|
13
|
-
loc: number;
|
|
14
|
-
/**
|
|
15
|
-
* Cross-file consumers NOT counting files that only re-export the symbol
|
|
16
|
-
* through a barrel (`export { X } from '...'`). Barrel files expand the
|
|
17
|
-
* public surface; they aren't real consumers.
|
|
18
|
-
*/
|
|
19
|
-
consumers: number;
|
|
20
|
-
/** Number of files whose only reference is a passthrough re-export. */
|
|
21
|
-
barrelConsumers: number;
|
|
22
|
-
/** What the definition is syntactically — detected from source at the definition line. */
|
|
23
|
-
kind: 'class' | 'interface' | 'type' | 'enum' | 'other';
|
|
24
|
-
/**
|
|
25
|
-
* Does the defining file itself reference the type outside its own declaration?
|
|
26
|
-
* `false` is the strongest stale signal — the type lives in a file that never
|
|
27
|
-
* uses it (misplaced types file), while another file is its only consumer.
|
|
28
|
-
*/
|
|
29
|
-
definerUsesType: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Ranked confidence in the "stale" verdict:
|
|
32
|
-
* 'high' — consumers === 0, OR consumers === 1 && !definerUsesType && kind !== 'class'.
|
|
33
|
-
* 'medium' — consumers <= 1 with one of the signals pointing weakly stale.
|
|
34
|
-
* 'low' — consumers === 1 but kind === 'class' (likely encapsulation, not over-abstraction).
|
|
35
|
-
*/
|
|
36
|
-
confidence: 'high' | 'medium' | 'low';
|
|
37
|
-
/** Short human-readable explanation of why this was flagged. */
|
|
38
|
-
reason: string;
|
|
39
|
-
/** Direct cleanup for unused abstractions; contextual signal for one-consumer ownership questions. */
|
|
40
|
-
actionTier: StaleAbstractionActionTier;
|
|
41
|
-
/** Reviewer-facing stale shape. */
|
|
42
|
-
stalenessKind: StalenessKind;
|
|
43
|
-
recommendation: string;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Find stale abstractions: type-level symbols (classes, interfaces, type
|
|
47
|
-
* aliases) that have 0 or 1 *real* cross-file consumers.
|
|
48
|
-
*
|
|
49
|
-
* "Real" means: after excluding barrel files whose only reference is a
|
|
50
|
-
* passthrough re-export (`export { X } from '...'`). A type re-exported
|
|
51
|
-
* through the public API surface isn't stale — consumers just reach it
|
|
52
|
-
* through the barrel.
|
|
53
|
-
*
|
|
54
|
-
* Findings are ranked by confidence:
|
|
55
|
-
* - high: 0 consumers (truly unused type), OR 1 consumer where the
|
|
56
|
-
* defining file never uses the type itself (misplaced type).
|
|
57
|
-
* - medium: 1 consumer, definer uses it, kind is interface/type/enum —
|
|
58
|
-
* single-use abstraction worth questioning.
|
|
59
|
-
* - low: 1 consumer but kind === 'class' — usually encapsulation
|
|
60
|
-
* (big class owned by its single consumer), not over-abstraction.
|
|
61
|
-
*/
|
|
62
|
-
declare function staleAbstractions(db: ScipDatabase, opts?: {
|
|
63
|
-
scope?: string;
|
|
64
|
-
minLoc?: number;
|
|
65
|
-
maxLoc?: number;
|
|
66
|
-
limit?: number;
|
|
67
|
-
includeLowConfidence?: boolean;
|
|
68
|
-
scanLimit?: number;
|
|
69
|
-
semantic?: boolean;
|
|
70
|
-
}): StaleAbstraction[];
|
|
71
|
-
|
|
72
|
-
export { type StaleAbstraction, type StaleAbstractionActionTier, type StalenessKind, staleAbstractions };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-HKGFPJ4T.js";import"../chunk-HLZTEXRA.js";import"../chunk-WUN6KBHV.js";import"../chunk-BOJ5SVE2.js";import"../chunk-CJZXN4NU.js";import"../chunk-BGBBVSH4.js";import"../chunk-W7CXK74K.js";import"../chunk-NWQXSFFU.js";import"../chunk-P5XHIJHI.js";import"../chunk-E73UNJTF.js";import"../chunk-WB3WYIRE.js";import"../chunk-DYGHBZ2N.js";import"../chunk-KK7GPALL.js";import"../chunk-OSSESPDX.js";import"../chunk-TRNAEQ6P.js";import"../chunk-XRYABF57.js";import"../chunk-NJITK2GP.js";import"../chunk-YUKYB54I.js";import"../chunk-DHEQMPLW.js";import"../chunk-TEBQMNVI.js";import"../chunk-MTDBHTSF.js";import"../chunk-N2ZSIIGR.js";import"../chunk-ODDUPDP7.js";import"../chunk-ZOHS7AQV.js";import"../chunk-FESCRNVV.js";import"../chunk-JWTGMPIT.js";import"../chunk-N5B2NILC.js";export{a as staleAbstractions};
|
|
2
|
-
//# sourceMappingURL=stale-abstractions.js.map
|