scip-query 0.19.4 → 0.19.6
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 +75 -1
- package/README.md +242 -49
- package/dist/augment-vue-worker.js +1 -1
- package/dist/{chunk-2YU7I3QO.js → chunk-24QNP7MN.js} +2 -2
- package/dist/{chunk-CNKAGUPL.js → chunk-26X7KCJR.js} +2 -2
- package/dist/{chunk-GPBBJ5Y4.js → chunk-273W2U4Y.js} +3 -3
- package/dist/{chunk-7GXM52MI.js → chunk-2CVXCGL4.js} +2 -2
- package/dist/{chunk-ABMYA4TN.js → chunk-2EZSOTSY.js} +2 -2
- package/dist/{chunk-HKEHS2AS.js → chunk-2GSQR6YA.js} +2 -2
- package/dist/{chunk-FECYOO5O.js → chunk-2OXVAGGT.js} +2 -2
- package/dist/chunk-2ZOCHAL2.js +8 -0
- package/dist/{chunk-QGXBRIM5.js → chunk-336DC5NJ.js} +2 -2
- package/dist/chunk-35SQLYCQ.js +2 -0
- package/dist/{chunk-VXQNNXJE.js → chunk-3OIKRYU5.js} +2 -2
- package/dist/{chunk-52ZYCAEO.js → chunk-47X75ZKH.js} +2 -2
- package/dist/{chunk-NPKYOIFM.js → chunk-4CGVLUDP.js} +2 -2
- package/dist/chunk-4RI4BJGT.js +8 -0
- package/dist/{chunk-P2PC2WGR.js → chunk-52HQTTPB.js} +2 -2
- package/dist/{chunk-YNRNA5LK.js → chunk-5OC3HWP5.js} +2 -2
- package/dist/{chunk-STOL2BTL.js → chunk-6XFC7PQ5.js} +2 -2
- package/dist/{chunk-J77UIT3I.js → chunk-6XHTISLI.js} +2 -2
- package/dist/chunk-6YTSKJJ3.js +2 -0
- package/dist/{chunk-BTEE5NZQ.js → chunk-7E3TH5ZN.js} +2 -2
- package/dist/{chunk-X6D5IC6I.js → chunk-7LABSJSR.js} +2 -2
- package/dist/chunk-7Q6VYYCH.js +2 -0
- package/dist/{chunk-FWUUZTIO.js → chunk-A43URCQ3.js} +2 -2
- package/dist/chunk-A63U2W3P.js +3 -0
- package/dist/{chunk-3MJ5YA4Y.js → chunk-ADFSIJP2.js} +2 -2
- package/dist/chunk-AOLE4DYM.js +6 -0
- package/dist/chunk-APMMR5Y2.js +2 -0
- package/dist/chunk-B5MHCHP3.js +107 -0
- package/dist/{chunk-4RSI5EMG.js → chunk-CSTYYXKC.js} +2 -2
- package/dist/{chunk-25LPM4DG.js → chunk-CYJM7CYF.js} +2 -2
- package/dist/{chunk-S44IULR6.js → chunk-DD5BOU5I.js} +2 -2
- package/dist/{chunk-YGAGTIDK.js → chunk-DGMCFMPG.js} +7 -7
- package/dist/{chunk-UOAV44HR.js → chunk-E2ZXPB7J.js} +2 -2
- package/dist/{chunk-IZKFSVBV.js → chunk-EVOC5I5I.js} +2 -2
- package/dist/{chunk-XTX6QHOF.js → chunk-F42A3AKG.js} +2 -2
- package/dist/{chunk-Q4IIEGXJ.js → chunk-FHCTEANE.js} +2 -2
- package/dist/{chunk-3SVWW4PN.js → chunk-FKGN4A4E.js} +2 -2
- package/dist/{chunk-IG7N5ZIK.js → chunk-FQTPPXNA.js} +2 -2
- package/dist/{chunk-F6O7AAC3.js → chunk-G4UQL4CP.js} +2 -2
- package/dist/chunk-GA64UPMI.js +6 -0
- package/dist/{chunk-ZXJYMGD3.js → chunk-GK3GRUJX.js} +2 -2
- package/dist/chunk-HEBAY673.js +2 -0
- package/dist/chunk-HELS7KFF.js +2 -0
- package/dist/{chunk-B5NLK2B3.js → chunk-IPDCSB6N.js} +2 -2
- package/dist/{chunk-M7MTH5NR.js → chunk-IYAOX36F.js} +2 -2
- package/dist/{chunk-YVVCVR2L.js → chunk-J7VT2CRB.js} +2 -2
- package/dist/{chunk-4333ETTV.js → chunk-JELJLXEE.js} +2 -2
- package/dist/{chunk-LBMJEAEW.js → chunk-JERWGHQT.js} +2 -2
- package/dist/chunk-JJJCO4QC.js +945 -0
- package/dist/{chunk-6E7UTQY7.js → chunk-JZNLMHWY.js} +2 -2
- package/dist/{chunk-R4FQGQ4X.js → chunk-K42M2KWT.js} +2 -2
- package/dist/{chunk-H7UKLTWJ.js → chunk-KLVJABXA.js} +2 -2
- package/dist/chunk-KP4KBDVF.js +3 -0
- package/dist/{chunk-RV2FQIX3.js → chunk-LMFVTUW2.js} +2 -2
- package/dist/chunk-LRTP3DKL.js +3 -0
- package/dist/{chunk-U6WNH5GC.js → chunk-MGBJHRFB.js} +2 -2
- package/dist/{chunk-QDV6RDCP.js → chunk-MLGTCX56.js} +2 -2
- package/dist/{chunk-54HA4ZXH.js → chunk-N3SE646F.js} +2 -2
- package/dist/{chunk-KP6XRY5Z.js → chunk-NBRUH7OE.js} +2 -2
- package/dist/{chunk-M7AIS73L.js → chunk-NN4ZIRPK.js} +2 -2
- package/dist/{chunk-I5RJM53C.js → chunk-NQLSSVOB.js} +2 -2
- package/dist/{chunk-4SALD7RU.js → chunk-OBKDTVZ3.js} +2 -2
- package/dist/{chunk-GBQ5NYPR.js → chunk-OHWZKLVA.js} +6 -6
- package/dist/{chunk-6NSFJYRC.js → chunk-OP3MTFJR.js} +2 -2
- package/dist/{chunk-EOOJGLDU.js → chunk-OQ2A4G2G.js} +2 -2
- package/dist/{chunk-DLWR3NUU.js → chunk-P6HBYNBE.js} +2 -2
- package/dist/{chunk-QVWS2VWZ.js → chunk-PC44K7RF.js} +2 -2
- package/dist/{chunk-A2EZV2UM.js → chunk-QBYYWGAT.js} +2 -2
- package/dist/{chunk-QRGV2F7L.js → chunk-QHKUY4FW.js} +2 -2
- package/dist/chunk-QHRL4LKM.js +2 -0
- package/dist/{chunk-I5AWSI2G.js → chunk-QQWOFXNW.js} +2 -2
- package/dist/{chunk-WQTAC523.js → chunk-RBFFD4V2.js} +2 -2
- package/dist/{chunk-SOAT6NLA.js → chunk-RJHCPSZ7.js} +2 -2
- package/dist/{chunk-VGRICIQI.js → chunk-RWRLUZ6U.js} +2 -2
- package/dist/{chunk-4T3LTWUS.js → chunk-S2GP3CU3.js} +2 -2
- package/dist/{chunk-HEXVUYFQ.js → chunk-SHKZ7OVJ.js} +2 -2
- package/dist/{chunk-NSS46APD.js → chunk-TFUU5MQQ.js} +2 -2
- package/dist/{chunk-IUFDSKGG.js → chunk-TYQ76QHQ.js} +2 -2
- package/dist/{chunk-NRCXJDHL.js → chunk-U5CNPPTZ.js} +2 -2
- package/dist/{chunk-MITTUCEH.js → chunk-UQK5CRUK.js} +2 -2
- package/dist/{chunk-XLTP42QA.js → chunk-UUJBLG6J.js} +2 -2
- package/dist/chunk-UXP636P5.js +144 -0
- package/dist/{chunk-64RFXJT5.js → chunk-VEVBIAOJ.js} +6 -6
- package/dist/chunk-VKRQDBW5.js +9 -0
- package/dist/{chunk-C7NIYIQ4.js → chunk-VOQFGC2W.js} +4 -4
- package/dist/{chunk-DZ74OMG6.js → chunk-VP542C25.js} +2 -2
- package/dist/{chunk-Q3AFUTGB.js → chunk-WMXRRBII.js} +2 -2
- package/dist/{chunk-ZGZUZ7XE.js → chunk-WXAAURU7.js} +2 -2
- package/dist/chunk-X3NLZHPA.js +20 -0
- package/dist/{chunk-WER3B7MI.js → chunk-XF3KLXN3.js} +2 -2
- package/dist/{chunk-NH5ALKPW.js → chunk-XVJ3V7LM.js} +2 -2
- package/dist/{chunk-4XTA5OMB.js → chunk-YGQN3XGZ.js} +2 -2
- package/dist/{chunk-CFMXJPHH.js → chunk-YHXBD52M.js} +2 -2
- package/dist/{chunk-7B3UPBVA.js → chunk-YLVE3SXZ.js} +2 -2
- package/dist/{chunk-YIJ7ZAA4.js → chunk-YTUD45PU.js} +2 -2
- package/dist/{chunk-VTKGCT3V.js → chunk-YWB2EBNB.js} +2 -2
- package/dist/{chunk-UKZBVX4U.js → chunk-Z2LHPIOM.js} +2 -2
- package/dist/chunk-Z5QQPJ3U.js +30 -0
- package/dist/{chunk-NZL2DBT7.js → chunk-ZLJLE6LK.js} +2 -2
- package/dist/{chunk-XYADIZHU.js → chunk-ZTTISZ7J.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/command-descriptors-SJDZ7QGR.js +617 -0
- package/dist/{config-types-D20KuvvZ.d.ts → config-types-BWQ5xPGI.d.ts} +4 -0
- package/dist/{db-G_II8yXU.d.ts → db-B0r1o7Vt.d.ts} +18 -1
- package/dist/direct-navigation-HTKOZEOM.js +3 -0
- package/dist/{health-oblXYgkF.d.ts → health-CFnlCiTz.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/postinstall.js +1 -1
- package/dist/queries/affected.d.ts +2 -2
- package/dist/queries/affected.js +1 -1
- package/dist/queries/architecture.d.ts +2 -2
- package/dist/queries/architecture.js +1 -1
- package/dist/queries/bottlenecks.d.ts +2 -2
- package/dist/queries/bottlenecks.js +1 -1
- package/dist/queries/by-kind.d.ts +2 -2
- package/dist/queries/by-kind.js +1 -1
- package/dist/queries/call-graph.d.ts +2 -2
- package/dist/queries/call-graph.js +1 -1
- package/dist/queries/change-surface.d.ts +2 -2
- package/dist/queries/change-surface.js +1 -1
- package/dist/queries/cleanup-plan.d.ts +2 -2
- package/dist/queries/cleanup-plan.js +1 -1
- package/dist/queries/co-change.d.ts +2 -2
- package/dist/queries/co-change.js +1 -1
- package/dist/queries/code.d.ts +2 -2
- package/dist/queries/code.js +1 -1
- package/dist/queries/complexity-hotspots.d.ts +2 -2
- package/dist/queries/complexity-hotspots.js +1 -1
- package/dist/queries/complexity.d.ts +2 -2
- package/dist/queries/complexity.js +1 -1
- package/dist/queries/convergence.d.ts +2 -2
- package/dist/queries/convergence.js +1 -1
- package/dist/queries/coupling.d.ts +2 -2
- package/dist/queries/coupling.js +1 -1
- package/dist/queries/cycles.d.ts +2 -2
- package/dist/queries/cycles.js +1 -1
- package/dist/queries/dataflow.d.ts +2 -2
- package/dist/queries/dataflow.js +1 -1
- package/dist/queries/dead.d.ts +2 -2
- package/dist/queries/dead.js +1 -1
- package/dist/queries/decorative-checkers.d.ts +3 -3
- package/dist/queries/decorative-checkers.js +1 -1
- package/dist/queries/deep-chains.d.ts +2 -2
- package/dist/queries/deep-chains.js +1 -1
- package/dist/queries/deps.d.ts +2 -2
- package/dist/queries/deps.js +1 -1
- package/dist/queries/diff-gate.d.ts +30 -2
- package/dist/queries/diff-gate.js +1 -1
- package/dist/queries/diff-impact.d.ts +2 -2
- package/dist/queries/diff-impact.js +1 -1
- package/dist/queries/doc-drift.d.ts +2 -2
- package/dist/queries/doc-drift.js +1 -1
- package/dist/queries/drift.d.ts +2 -2
- package/dist/queries/drift.js +1 -1
- package/dist/queries/duplicate-bodies.d.ts +2 -2
- package/dist/queries/duplicate-bodies.js +1 -1
- package/dist/queries/extract-candidates.d.ts +2 -2
- package/dist/queries/extract-candidates.js +1 -1
- package/dist/queries/fan.d.ts +2 -2
- package/dist/queries/fan.js +1 -1
- package/dist/queries/files.d.ts +2 -2
- package/dist/queries/health.d.ts +3 -3
- 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 +2 -2
- package/dist/queries/hotspots.js +1 -1
- package/dist/queries/imports.d.ts +2 -2
- package/dist/queries/imports.js +1 -1
- package/dist/queries/incomplete-migration.d.ts +2 -2
- package/dist/queries/incomplete-migration.js +1 -1
- package/dist/queries/index.d.ts +17 -3
- package/dist/queries/index.js +1 -1
- package/dist/queries/isolated.d.ts +2 -2
- package/dist/queries/isolated.js +1 -1
- package/dist/queries/locality-candidates.d.ts +2 -2
- 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.d.ts +2 -2
- package/dist/queries/methods.js +1 -1
- package/dist/queries/not-implemented.d.ts +3 -3
- package/dist/queries/not-implemented.js +1 -1
- package/dist/queries/outline.d.ts +2 -2
- package/dist/queries/outline.js +1 -1
- package/dist/queries/passthrough-candidates.d.ts +2 -2
- package/dist/queries/passthrough-candidates.js +1 -1
- package/dist/queries/plan-context.d.ts +2 -2
- package/dist/queries/plan-context.js +1 -1
- package/dist/queries/react-component-duplicates.d.ts +2 -2
- package/dist/queries/react-component-duplicates.js +1 -1
- package/dist/queries/react-hook-candidates.d.ts +2 -2
- package/dist/queries/react-hook-candidates.js +1 -1
- package/dist/queries/react-large-component-pressure.d.ts +2 -2
- package/dist/queries/react-large-component-pressure.js +1 -1
- package/dist/queries/recent-duplicates.d.ts +2 -2
- package/dist/queries/recent-duplicates.js +1 -1
- package/dist/queries/redundant-reexports.d.ts +2 -2
- package/dist/queries/redundant-reexports.js +1 -1
- package/dist/queries/refs.d.ts +2 -2
- package/dist/queries/refs.js +1 -1
- package/dist/queries/self-audit.d.ts +2 -2
- package/dist/queries/self-audit.js +1 -1
- package/dist/queries/similar-chains.d.ts +2 -2
- package/dist/queries/similar-chains.js +1 -1
- package/dist/queries/similar-files.d.ts +2 -2
- package/dist/queries/similar-files.js +1 -1
- package/dist/queries/similar-signatures.d.ts +2 -2
- package/dist/queries/similar-signatures.js +1 -1
- package/dist/queries/similar.d.ts +2 -2
- package/dist/queries/similar.js +1 -1
- package/dist/queries/slice.d.ts +2 -2
- package/dist/queries/slice.js +1 -1
- package/dist/queries/stale-abstractions.d.ts +2 -2
- package/dist/queries/stale-abstractions.js +1 -1
- package/dist/queries/stats.d.ts +2 -2
- package/dist/queries/stats.js +1 -1
- package/dist/queries/surface.d.ts +2 -2
- package/dist/queries/surface.js +1 -1
- package/dist/queries/symbols.d.ts +2 -2
- package/dist/queries/symbols.js +1 -1
- package/dist/queries/system.d.ts +2 -2
- package/dist/queries/system.js +1 -1
- package/dist/queries/test-quality.d.ts +2 -2
- package/dist/queries/test-quality.js +1 -1
- package/dist/queries/trace.d.ts +2 -2
- package/dist/queries/trace.js +1 -1
- package/dist/queries/twin-ab.d.ts +3 -3
- package/dist/queries/twin-ab.js +1 -1
- package/dist/queries/twin-drift.d.ts +2 -2
- package/dist/queries/twin-drift.js +1 -1
- package/dist/queries/unused-imports.d.ts +2 -2
- package/dist/queries/unused-imports.js +1 -1
- package/dist/queries/unused-params.d.ts +2 -2
- package/dist/queries/unused-params.js +1 -1
- package/dist/queries/vue-component-duplicates.d.ts +2 -2
- package/dist/queries/vue-component-duplicates.js +1 -1
- package/dist/queries/vue-composable-candidates.d.ts +2 -2
- package/dist/queries/vue-composable-candidates.js +1 -1
- package/dist/queries/vue-large-view-pressure.d.ts +2 -2
- package/dist/queries/vue-large-view-pressure.js +1 -1
- package/dist/queries/wrapper-candidates.d.ts +2 -2
- package/dist/queries/wrapper-candidates.js +1 -1
- package/dist/reindex-worker.js +23 -24
- package/dist/reindex.d.ts +10 -4
- package/dist/reindex.js +33 -38
- package/dist/runtime.d.ts +167 -11
- package/dist/runtime.js +3 -2
- 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/{scip-cli-kRpaexVJ.d.ts → scip-cli-DCvnlZCu.d.ts} +5 -1
- package/dist/watch-server.js +5 -5
- package/docs/AGENT_GUIDE.md +1 -1
- package/docs/AI_FAILURE_MODES.md +18 -18
- package/docs/API_EVOLUTION.md +71 -0
- package/docs/CLI_JSON_OUTPUT.md +83 -0
- package/docs/COMMAND_REFERENCE.md +10 -8
- package/docs/COMMITTED_RECORD_COMPATIBILITY.md +117 -0
- package/docs/CONFIGURATION_WRITE_SAFETY.md +130 -0
- package/docs/DETECTOR_GUIDE.md +47 -47
- package/docs/DURABILITY.md +103 -0
- package/docs/INDEX_GENERATIONS.md +121 -0
- package/docs/LOCK_PROTOCOL.md +133 -0
- package/docs/MAILBOX_LIFECYCLE.md +197 -0
- package/docs/REINDEX_METADATA_COMPATIBILITY.md +84 -0
- package/docs/RUST_DURABLE_SESSION_PROTOCOL.md +126 -0
- package/docs/TELEMETRY_RETENTION.md +72 -0
- package/docs/TIME_SEMANTICS.md +77 -0
- package/docs/WATCH_REFRESH_REQUESTS.md +110 -0
- package/docs/WINDOWS_SIDECAR_RELEASE.md +298 -0
- package/docs/analyzer-validation-ledger.md +24 -23
- package/docs/schemas/cli-json-envelope.schema.json +53 -0
- package/docs/schemas/npm-release-state.schema.json +146 -0
- package/docs/schemas/outcome-event-record.schema.json +39 -0
- package/docs/schemas/project-config.schema.json +247 -0
- package/docs/schemas/suppression-record.schema.json +31 -0
- package/docs/schemas/windows-sidecar-provenance.schema.json +137 -0
- package/package.json +15 -5
- package/scripts/build-scip-windows.mjs +180 -61
- package/scripts/scip-windows-provenance.mjs +364 -0
- package/scripts/verify-scip-windows.mjs +29 -0
- package/skills/_shared/SKILL.md +91 -242
- package/skills/_shared/agents/openai.yaml +1 -1
- package/skills/_shared/references/agent-contract-catalog.md +105 -0
- package/skills/_shared/references/command-catalog.md +118 -0
- package/skills/_shared/references/detector-precision-and-diffgate.md +59 -0
- package/skills/_shared/references/evidence-and-dead-code.md +25 -0
- package/skills/scip-audit/SKILL.md +76 -0
- package/skills/scip-audit/agents/openai.yaml +4 -0
- package/skills/scip-audit/references/claims.md +98 -0
- package/skills/scip-audit/references/cleanup.md +101 -0
- package/skills/scip-audit/references/directory.md +222 -0
- package/skills/scip-audit/references/frontend.md +130 -0
- package/skills/scip-audit/references/integrity.md +154 -0
- package/skills/scip-audit/references/maintainability.md +162 -0
- package/skills/scip-audit/references/twin-drift.md +104 -0
- package/skills/scip-diagnose/SKILL.md +52 -0
- package/skills/scip-diagnose/agents/openai.yaml +4 -0
- package/skills/scip-diagnose/references/debug.md +117 -0
- package/skills/{scip-probe-reachability/SKILL.md → scip-diagnose/references/probe-reachability.md} +12 -27
- package/skills/scip-diagnose/references/root-cause.md +145 -0
- package/skills/scip-diagnose/references/triage.md +119 -0
- package/skills/scip-explore/SKILL.md +53 -84
- package/skills/scip-explore/agents/openai.yaml +2 -2
- package/skills/scip-explore/references/diagrams.md +40 -0
- package/skills/scip-explore/references/language-playbook.md +49 -0
- package/skills/scip-improve/SKILL.md +56 -0
- package/skills/scip-improve/agents/openai.yaml +4 -0
- package/skills/scip-improve/references/cleanup-batches.md +53 -0
- package/skills/scip-improve/references/directory-moves.md +53 -0
- package/skills/scip-improve/references/doc-reconcile.md +30 -0
- package/skills/scip-improve/references/frontend-extraction.md +39 -0
- package/skills/scip-improve/references/maintainability-mechanism.md +43 -0
- package/skills/scip-improve/references/twin-drift.md +35 -0
- package/skills/scip-plan/SKILL.md +68 -0
- package/skills/scip-plan/agents/openai.yaml +4 -0
- package/skills/scip-plan/references/api-impact.md +19 -0
- package/skills/scip-plan/references/conductor.md +41 -0
- package/skills/scip-plan/references/high-assurance.md +43 -0
- package/skills/scip-plan/references/hyper-optimization.md +50 -0
- package/skills/scip-plan/references/tla-model.md +88 -0
- package/skills/scip-query/SKILL.md +52 -97
- package/skills/scip-query/agents/openai.yaml +2 -2
- package/skills/scip-setup/SKILL.md +65 -176
- package/skills/scip-setup/agents/openai.yaml +3 -3
- package/skills/scip-setup/references/bootstrap-workflow.md +120 -0
- package/skills/scip-setup/references/language-verification.md +61 -0
- package/skills/scip-setup/references/lifecycle-commands.md +119 -0
- package/skills/scip-setup/references/per-repo-triage.md +24 -0
- package/skills/scip-verify/SKILL.md +123 -70
- package/skills/scip-verify/agents/openai.yaml +2 -2
- package/skills/scip-verify/references/calibrate-detectors.md +170 -0
- package/dist/chunk-2CTX5CMX.js +0 -4
- package/dist/chunk-2Y373BDD.js +0 -2
- package/dist/chunk-C2QSK7E7.js +0 -2
- package/dist/chunk-D4U5Q3FT.js +0 -7
- package/dist/chunk-K2ERX4UT.js +0 -3
- package/dist/chunk-KHE7J5ZN.js +0 -3
- package/dist/chunk-L7SPDE73.js +0 -84
- package/dist/chunk-LHMNRHGV.js +0 -3
- package/dist/chunk-LM72NQ7T.js +0 -3
- package/dist/chunk-MSWVMDAH.js +0 -122
- package/dist/chunk-NH7WNNQC.js +0 -20
- package/dist/chunk-OMPZHGHO.js +0 -2
- package/dist/chunk-SVLTAG5O.js +0 -927
- package/dist/chunk-U7DSEKOM.js +0 -30
- package/dist/chunk-V27BEQJN.js +0 -7
- package/dist/chunk-VMNZB6WI.js +0 -4
- package/dist/chunk-XBN5VO53.js +0 -2
- package/dist/chunk-ZAIILQNP.js +0 -5
- package/dist/command-descriptors-MFU4BCJ7.js +0 -612
- package/dist/direct-navigation-MRMQFIRB.js +0 -3
- package/skills/scip-api-impact/SKILL.md +0 -139
- package/skills/scip-api-impact/agents/openai.yaml +0 -4
- package/skills/scip-calibrate/SKILL.md +0 -131
- package/skills/scip-calibrate/agents/openai.yaml +0 -4
- package/skills/scip-claim-audit/SKILL.md +0 -106
- package/skills/scip-claim-audit/agents/openai.yaml +0 -4
- package/skills/scip-cleanup-audit/SKILL.md +0 -126
- package/skills/scip-cleanup-audit/agents/openai.yaml +0 -4
- package/skills/scip-cleanup-improve/SKILL.md +0 -84
- package/skills/scip-cleanup-improve/agents/openai.yaml +0 -4
- package/skills/scip-concrete-plan/SKILL.md +0 -262
- package/skills/scip-concrete-plan/agents/openai.yaml +0 -4
- package/skills/scip-conductor/SKILL.md +0 -133
- package/skills/scip-conductor/agents/openai.yaml +0 -4
- package/skills/scip-debug/SKILL.md +0 -130
- package/skills/scip-debug/agents/openai.yaml +0 -4
- package/skills/scip-diagram/SKILL.md +0 -110
- package/skills/scip-diagram/agents/openai.yaml +0 -4
- package/skills/scip-directory-architecture/SKILL.md +0 -254
- package/skills/scip-directory-architecture/agents/openai.yaml +0 -4
- package/skills/scip-doc-reconcile/SKILL.md +0 -89
- package/skills/scip-doc-reconcile/agents/openai.yaml +0 -4
- package/skills/scip-hyper-optimization/SKILL.md +0 -156
- package/skills/scip-hyper-optimization/agents/openai.yaml +0 -4
- package/skills/scip-integrity-audit/SKILL.md +0 -152
- package/skills/scip-integrity-audit/agents/openai.yaml +0 -4
- package/skills/scip-language-playbook/SKILL.md +0 -106
- package/skills/scip-language-playbook/agents/openai.yaml +0 -4
- package/skills/scip-maintainability/SKILL.md +0 -158
- package/skills/scip-maintainability/agents/openai.yaml +0 -4
- package/skills/scip-probe-reachability/agents/openai.yaml +0 -4
- package/skills/scip-react-maintainability/SKILL.md +0 -101
- package/skills/scip-react-maintainability/agents/openai.yaml +0 -4
- package/skills/scip-root-cause/SKILL.md +0 -150
- package/skills/scip-root-cause/agents/openai.yaml +0 -4
- package/skills/scip-tla-model-system/SKILL.md +0 -148
- package/skills/scip-tla-model-system/agents/openai.yaml +0 -4
- package/skills/scip-triage-issue/SKILL.md +0 -126
- package/skills/scip-triage-issue/agents/openai.yaml +0 -4
- package/skills/scip-twin-drift/SKILL.md +0 -107
- package/skills/scip-twin-drift/agents/openai.yaml +0 -4
- package/skills/scip-vue-maintainability/SKILL.md +0 -107
- package/skills/scip-vue-maintainability/agents/openai.yaml +0 -4
|
@@ -1,88 +1,59 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: scip-query
|
|
3
|
-
description:
|
|
4
|
-
commands:
|
|
5
|
-
- template: "scip-query status --capabilities"
|
|
6
|
-
when: "Before routing: confirm the index is fresh."
|
|
7
|
-
- template: "scip-query plan-context <target>"
|
|
8
|
-
when: "Default loop: anchor a plan for the routed skill."
|
|
9
|
-
- template: "scip-query diff-gate --json"
|
|
10
|
-
when: "Default loop: the loop is complete only when this passes or is explained."
|
|
3
|
+
description: Use FIRST for codebase work that should rest on SCIP evidence. Routes understanding to scip-explore, prospective changes to scip-plan, failures to scip-diagnose, read-only problem finding to scip-audit, confirmed fixes to scip-improve, adoption or repair to scip-setup, and finished diffs to scip-verify.
|
|
11
4
|
---
|
|
12
5
|
|
|
13
|
-
#
|
|
6
|
+
# SCIP Query Router
|
|
14
7
|
|
|
15
|
-
|
|
8
|
+
## Purpose
|
|
16
9
|
|
|
17
|
-
|
|
10
|
+
Choose one owning workflow before acting. An owning workflow is the bundled
|
|
11
|
+
skill whose completion criterion matches the request: understanding, planning,
|
|
12
|
+
diagnosis, read-only auditing, implementation, setup, or verification. The
|
|
13
|
+
router does not perform that workflow itself.
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
| --- | --- | --- |
|
|
24
|
-
| `scip-query status --capabilities` | Show index status for this project | Before routing: confirm the index is fresh. |
|
|
25
|
-
| `scip-query plan-context <target>` | Pre-edit planning context for a symbol, file, or module | Default loop: anchor a plan for the routed skill. |
|
|
26
|
-
| `scip-query diff-gate --json` | Gate the current diff: architecture regressions plus echo, migration, coordination, doc-drift, unused-param, and new-dead candidates; exit 1 on blocking findings | Default loop: the loop is complete only when this passes or is explained. |
|
|
27
|
-
|
|
28
|
-
Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
|
|
29
|
-
<!-- END GENERATED SKILL COMMANDS -->
|
|
30
|
-
|
|
31
|
-
## Default Loop
|
|
32
|
-
|
|
33
|
-
For non-trivial code changes:
|
|
34
|
-
|
|
35
|
-
1. Invoke `scip-concrete-plan`; the plan starts from `scip-query plan-context <target>` and designs for testability.
|
|
36
|
-
2. Implement the plan in the smallest coherent slice.
|
|
37
|
-
3. Invoke `scip-verify`.
|
|
38
|
-
|
|
39
|
-
The loop is complete only when `scip-verify` passes or each remaining finding has a specific reason.
|
|
15
|
+
Load `../_shared/SKILL.md` only after the owning workflow's shortlist proves
|
|
16
|
+
insufficient. The shared reference contains the complete command vocabulary,
|
|
17
|
+
coverage rules, and evidence contract; loading it before a route is selected
|
|
18
|
+
adds choices without adding direction.
|
|
40
19
|
|
|
41
20
|
## Routes
|
|
42
21
|
|
|
43
|
-
|
|
|
22
|
+
| The request starts from… | Owning skill | Completion criterion |
|
|
44
23
|
| --- | --- | --- |
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
- Use `scip-cleanup-audit` for reports, ranking, confirmation, or recent AI-residue triage without edits.
|
|
79
|
-
- Use `scip-cleanup-improve` when the user asks to fix, improve, continue cleaning, or raise health autonomously.
|
|
80
|
-
- Use `scip-maintainability`, `scip-directory-architecture`, or `scip-hyper-optimization` only when the target is architecture, file ownership, or measured speed/cost rather than cleanup.
|
|
81
|
-
- Use `scip-twin-drift` for same-name/near-name consolidation questions (a specific concept copied and drifted); use `scip-cleanup-audit`/`scip-cleanup-improve` for general bloat, echoes, and duplication sweeps that are not centered on one drifted twin family.
|
|
82
|
-
|
|
83
|
-
## Setup
|
|
84
|
-
|
|
85
|
-
If a repository has not been bootstrapped, invoke `scip-setup`. Use `scip-query setup-agent` only to refresh agent guidance, `scip-query setup-hooks --json` only to repair project-local hooks, and `scip-query setup-ci` only when the user explicitly asks for CI setup.
|
|
24
|
+
| Existing code that must be understood, traced, or diagrammed | `scip-explore` | Entry points, flow, dependencies, consumers, and remaining uncertainty are evidenced. |
|
|
25
|
+
| A proposed feature, refactor, migration, API change, performance campaign, TLA+ model, or multi-phase program | `scip-plan` | Current flow, affected consumers, reuse decisions, ordered slices, validation, and risks are explicit. |
|
|
26
|
+
| A failure, regression, recurring bug family, raw issue, or parser/AST reachability question | `scip-diagnose` | The observed failure is connected to a cause, rivals are rejected, and the smallest fix packet is defined. |
|
|
27
|
+
| A question about whether problems exist, without permission to edit | `scip-audit` | The scoped items are classified and ranked with evidence; no code or docs are changed. |
|
|
28
|
+
| Confirmed cleanup, drift, maintainability, frontend, directory, twin, or documentation findings that should be fixed | `scip-improve` | One coherent finding slice is changed and passes its routed postchecks. |
|
|
29
|
+
| First adoption, broken setup, missing capabilities, skill installation, hooks, CI, or uninstall | `scip-setup` | The workspace is ready, or every unavailable capability has an explicit blocker. |
|
|
30
|
+
| A finished diff that must be challenged before commit or release | `scip-verify` | Workspace, impact, applicable postchecks, gate findings, and refutation attempts are all accounted for. |
|
|
31
|
+
|
|
32
|
+
## Disambiguation
|
|
33
|
+
|
|
34
|
+
- Existing behavior with no symptom routes to `scip-explore`; a contradiction
|
|
35
|
+
or failure routes to `scip-diagnose`.
|
|
36
|
+
- Finding and classifying problems without edits routes to `scip-audit`;
|
|
37
|
+
changing already-confirmed findings routes to `scip-improve`.
|
|
38
|
+
- Prospective work routes to `scip-plan`; a concrete finished diff routes to
|
|
39
|
+
`scip-verify`.
|
|
40
|
+
- Setup wins whenever the index or a required capability is missing, stale,
|
|
41
|
+
invalid, or not yet installed.
|
|
42
|
+
- A request may cross workflows in sequence. Keep one owner at a time:
|
|
43
|
+
diagnose before planning a fix, audit before improving, plan before a
|
|
44
|
+
non-trivial implementation, and verify after every implemented slice.
|
|
45
|
+
|
|
46
|
+
## Default non-trivial change loop
|
|
47
|
+
|
|
48
|
+
1. Invoke `scip-plan`, anchored by
|
|
49
|
+
`scip-query plan-context <target>`.
|
|
50
|
+
2. Implement the smallest coherent planned slice.
|
|
51
|
+
3. Invoke `scip-verify`; do not declare completion until it passes or every
|
|
52
|
+
remaining finding has a specific evidence-backed disposition.
|
|
53
|
+
|
|
54
|
+
Routing is complete only when exactly one owner is selected for the current
|
|
55
|
+
phase, or the request is small enough that no compiler-resolved relationship
|
|
56
|
+
claim is needed.
|
|
86
57
|
|
|
87
58
|
<!-- BEGIN GENERATED ROUTER COMMAND PREVIEW -->
|
|
88
59
|
## Command Preview
|
|
@@ -91,27 +62,11 @@ Top commands per routed skill, generated from each skill's own `commands:` front
|
|
|
91
62
|
|
|
92
63
|
| Skill | Top commands |
|
|
93
64
|
| --- | --- |
|
|
94
|
-
| `scip-
|
|
95
|
-
| `scip-
|
|
96
|
-
| `scip-
|
|
97
|
-
| `scip-
|
|
98
|
-
| `scip-
|
|
99
|
-
| `scip-
|
|
100
|
-
| `scip-
|
|
101
|
-
| `scip-diagram` | `scip-query system <module>`, `scip-query trace <symbol>`, `scip-query call-graph <symbol>` |
|
|
102
|
-
| `scip-directory-architecture` | `scip-query system <scope>`, `scip-query locality-candidates --json --full`, `scip-query similar-files --full --json` |
|
|
103
|
-
| `scip-doc-reconcile` | `scip-query doc-drift --json --full`, `scip-query doc-drift <doc>`, `scip-query outline <subject-file>` |
|
|
104
|
-
| `scip-explore` | `scip-query stats`, `scip-query system <module-or-scope>`, `scip-query trace <entry-symbol>` |
|
|
105
|
-
| `scip-hyper-optimization` | `scip-query bench --json`, `scip-query bench --json --cold-index --include-heavy --timeout-ms 600000`, `scip-query work-audit <profile> --json` |
|
|
106
|
-
| `scip-language-playbook` | `scip-query stats`, `scip-query files <feature-or-module-name>`, `scip-query outline <file>` |
|
|
107
|
-
| `scip-maintainability` | `scip-query stats`, `scip-query system <scope>`, `scip-query surface <scope>` |
|
|
108
|
-
| `scip-probe-reachability` | `scip-query outline <file> --signatures`, `scip-query code <symbol>`, `scip-query trace <symbol>` |
|
|
109
|
-
| `scip-react-maintainability` | `scip-query react-component-duplicates --scope <scope> --full --json`, `scip-query react-hook-candidates --scope <scope> --full --json`, `scip-query react-large-component-pressure --scope <scope> --full --json` |
|
|
110
|
-
| `scip-root-cause` | `scip-query trace <mechanism-symbol>`, `scip-query co-change <fix-site-file>`, `scip-query system <system-scope>` |
|
|
111
|
-
| `scip-setup` | `scip-query setup --json`, `scip-query doctor`, `scip-query status --json` |
|
|
112
|
-
| `scip-tla-model-system` | `scip-query tla scaffold <file>`, `scip-query tla verify <spec>`, `scip-query tla instrument <spec>` |
|
|
113
|
-
| `scip-triage-issue` | `scip-query files <issue-term>`, `scip-query trace <entry-or-error-symbol>`, `scip-query code <entry-or-error-symbol>` |
|
|
114
|
-
| `scip-twin-drift` | `scip-query twin-drift --json --full`, `scip-query duplicate-bodies --json --full`, `scip-query code <symbol>` |
|
|
115
|
-
| `scip-verify` | `scip-query doctor`, `scip-query status --capabilities`, `scip-query diff-impact --json` |
|
|
116
|
-
| `scip-vue-maintainability` | `scip-query augment-vue --project <path-to-tsconfig>`, `scip-query vue-component-duplicates --scope <scope> --full --json`, `scip-query vue-composable-candidates --scope <scope> --full --json` |
|
|
65
|
+
| `scip-audit` | `scip-query health --json`, `scip-query decorative-checkers --json --full`, `scip-query doc-drift --json --full` |
|
|
66
|
+
| `scip-diagnose` | `scip-query files <feature-or-error-term>`, `scip-query trace <candidate-symbol>`, `scip-query call-graph <entry-symbol>` |
|
|
67
|
+
| `scip-explore` | `scip-query system <module-or-scope>`, `scip-query trace <entry-symbol>`, `scip-query affected <symbol> --json` |
|
|
68
|
+
| `scip-improve` | `scip-query cleanup-plan --verify --json`, `scip-query cleanup-apply --verified --batch <n>`, `scip-query diff-gate --json --compact` |
|
|
69
|
+
| `scip-plan` | `scip-query plan-context <target>`, `scip-query refs <symbol>`, `scip-query affected <symbol> --json` |
|
|
70
|
+
| `scip-setup` | `scip-query setup --json`, `scip-query doctor`, `scip-query status --capabilities` |
|
|
71
|
+
| `scip-verify` | `scip-query doctor`, `scip-query diff-impact --json`, `scip-query diff-gate --json --compact` |
|
|
117
72
|
<!-- END GENERATED ROUTER COMMAND PREVIEW -->
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "SCIP Query Router"
|
|
3
|
-
short_description: "Route codebase
|
|
4
|
-
default_prompt: "Use $scip-query to
|
|
3
|
+
short_description: "Route a codebase task to the right SCIP skill"
|
|
4
|
+
default_prompt: "Use $scip-query first to pick the right SCIP-backed skill for this task before doing anything else."
|
|
@@ -1,206 +1,92 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: scip-setup
|
|
3
|
-
description:
|
|
3
|
+
description: Use to adopt, onboard, repair, or diagnose scip-query ITSELF in a repo — first index, config, capability and dependency checks, installing or uninstalling agent skills, agent guidance blocks, project hooks, CI wiring. Wins over scip-verify for first-time adoption; calibration comes afterward.
|
|
4
4
|
commands:
|
|
5
5
|
- template: "scip-query setup --json"
|
|
6
|
-
when: "
|
|
6
|
+
when: "Bootstrap or repair the complete repository setup."
|
|
7
7
|
- template: "scip-query doctor"
|
|
8
|
-
when: "
|
|
9
|
-
- template: "scip-query status --
|
|
10
|
-
when: "
|
|
11
|
-
- template: "scip-query capabilities --matrix"
|
|
12
|
-
when: "Resolve blockers: which evidence/verification capabilities are available."
|
|
13
|
-
- template: "scip-query config-validate --json"
|
|
14
|
-
when: "Resolve blockers: validate .scipquery.json."
|
|
15
|
-
- template: "scip-query init"
|
|
16
|
-
when: "Calibrate config: create .scipquery.json only when absent and needed."
|
|
8
|
+
when: "Diagnose configuration, index, dependency, or capability failures."
|
|
9
|
+
- template: "scip-query status --capabilities"
|
|
10
|
+
when: "Confirm freshness and the exact evidence capabilities available."
|
|
17
11
|
---
|
|
18
12
|
|
|
19
13
|
# scip-setup
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
## Purpose
|
|
22
16
|
|
|
23
|
-
|
|
17
|
+
Make a repository a reliable scip-query workspace: indexed, diagnosed,
|
|
18
|
+
documented for agents, and honest about unavailable capabilities. Covers
|
|
19
|
+
first-time adoption, repair after drift, capability/dependency diagnosis, and
|
|
20
|
+
the lifecycle commands that install, refresh, or remove scip-query's footprint
|
|
21
|
+
(skills, agent guidance, hooks, CI).
|
|
22
|
+
|
|
23
|
+
Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md). Use
|
|
24
24
|
|
|
25
25
|
<!-- BEGIN GENERATED SKILL COMMANDS -->
|
|
26
26
|
## Commands for this skill
|
|
27
27
|
|
|
28
|
-
| Command | Purpose | When |
|
|
29
|
-
| --- | --- | --- |
|
|
30
|
-
| `scip-query setup --json` | Bootstrap this project: enable automatic indexing, install agent skills, refresh the index, verify capabilities, and report health |
|
|
31
|
-
| `scip-query doctor` | Diagnose config, index freshness, dependency readiness, and project capabilities |
|
|
32
|
-
| `scip-query status --
|
|
33
|
-
| `scip-query capabilities --matrix` | Report which evidence and verification capabilities are available in this project | Resolve blockers: which evidence/verification capabilities are available. |
|
|
34
|
-
| `scip-query config-validate --json` | Validate .scipquery.json, including structured suppressions and declared coupling groups | Resolve blockers: validate .scipquery.json. |
|
|
35
|
-
| `scip-query init` | Create a .scipquery.json config file for this project | Calibrate config: create .scipquery.json only when absent and needed. |
|
|
28
|
+
| Command | Purpose | Returns | Coverage | When |
|
|
29
|
+
| --- | --- | --- | --- | --- |
|
|
30
|
+
| `scip-query setup --json` | Bootstrap this project: enable automatic indexing, install agent skills, refresh the index, verify capabilities, and report health | setup step outcomes, files, capabilities, smoke tests, and warnings | `complete` | Bootstrap or repair the complete repository setup. |
|
|
31
|
+
| `scip-query doctor` | Diagnose config, index freshness, dependency readiness, and project capabilities | config, freshness, dependency, and capability diagnostics | `complete` | Diagnose configuration, index, dependency, or capability failures. |
|
|
32
|
+
| `scip-query status --capabilities` | Show index status for this project | freshness, generation, language shards, watcher, and optional capabilities | `complete` | Confirm freshness and the exact evidence capabilities available. |
|
|
36
33
|
|
|
37
34
|
Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
|
|
38
35
|
<!-- END GENERATED SKILL COMMANDS -->
|
|
36
|
+
this skill's own command shortlist first; open the shared file only when it is
|
|
37
|
+
insufficient.
|
|
39
38
|
|
|
40
|
-
##
|
|
41
|
-
|
|
42
|
-
New repos surface standing findings that are intentional. Encode them once so
|
|
43
|
-
every later gate run is precise:
|
|
44
|
-
|
|
45
|
-
1. Sweep initial findings (`health --json`, `diff-gate --json`) and, for each accepted one, `suppress <id> --reason <why>` — reasons are required and audited.
|
|
46
|
-
2. Declare files that legitimately change together in `.scipquery.json` `declaredCouplings`.
|
|
47
|
-
3. List dated snapshot docs (benchmarks, validation ledgers, historical plans/reviews) in `docs.snapshotPaths` so doc checks skip them with a labeled exclusion instead of recurring findings.
|
|
48
|
-
4. Seed `coverageContracts` for every hand-maintained enumeration (policy maps, capability tables, registry lists) so enumeration rot fails the gate the day it happens.
|
|
49
|
-
5. Set a hygiene cadence: run `scip-twin-drift` and `scip-claim-audit` after large refactor campaigns or quarterly — the gate only sees diffs; these lenses see accumulated state.
|
|
50
|
-
|
|
51
|
-
This step is complete only when a clean working tree produces a finding-free `diff-gate` and every suppression carries a reason a reviewer would accept.
|
|
39
|
+
## Triage: which scenario applies
|
|
52
40
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
correctly configured. Availability comes from capabilities; lifecycle state
|
|
63
|
-
only says whether work currently keeps the helper awake.
|
|
41
|
+
| Situation | Go to |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| First time running scip-query in this repo, or repairing a broken setup | [Bootstrap workflow](references/bootstrap-workflow.md) — `setup` |
|
|
44
|
+
| `setup` reported a blocker, or index/capabilities look wrong | [Bootstrap workflow §3](references/bootstrap-workflow.md#3-resolve-blockers) — `doctor`, `status`, `capabilities`, `config-validate` |
|
|
45
|
+
| Confirming TypeScript/Vue or Rust semantic readiness specifically | [Language verification](references/language-verification.md) |
|
|
46
|
+
| Need to (re)install skills, agent guidance, hooks, or CI without a full bootstrap | [Lifecycle commands](references/lifecycle-commands.md) |
|
|
47
|
+
| Removing scip-query's footprint from a repo | [Lifecycle commands § uninstall](references/lifecycle-commands.md#uninstall) |
|
|
48
|
+
| New repo has standing findings that are intentional (naming conventions, snapshot docs, coupled files) | [Per-repo triage](references/per-repo-triage.md) |
|
|
49
|
+
| Setup is done and clean; user wants a cleanup report or autonomous cleanup | Hand off to `scip-audit` (report) or `scip-improve` (autonomous) |
|
|
64
50
|
|
|
65
|
-
##
|
|
51
|
+
## The core scenario
|
|
66
52
|
|
|
67
|
-
|
|
68
|
-
interactive checklist by default. For an agent or script, `scip-query setup
|
|
69
|
-
--json` runs the recommended non-interactive path and returns every result.
|
|
70
|
-
|
|
71
|
-
The command:
|
|
72
|
-
|
|
73
|
-
- detects supported project languages and lets a terminal user select them;
|
|
74
|
-
- installs or repairs supported language indexers when a safe installer exists;
|
|
75
|
-
- installs the Tree-sitter runtime and detected language grammars from the
|
|
76
|
-
versions pinned by the installed scip-query package;
|
|
77
|
-
- installs bundled agent skills and checkout-local Codex/Claude hooks unless
|
|
78
|
-
explicitly skipped;
|
|
79
|
-
- enables demand-started automatic incremental indexing unless the repository
|
|
80
|
-
has or selects an explicit opt-out;
|
|
81
|
-
- builds or reuses language/project shards and publishes one atomic SQLite
|
|
82
|
-
generation with recovery state;
|
|
83
|
-
- starts or reuses the clean-idle project service and verifies its lifecycle;
|
|
84
|
-
- checks TypeScript and Rust semantic readiness, compiler/checker readiness,
|
|
85
|
-
representative commands, and optional health output;
|
|
86
|
-
- reports repository, checkout, user-environment, and rebuildable runtime state
|
|
87
|
-
separately.
|
|
88
|
-
|
|
89
|
-
Do not manually install AST grammar packages before trying setup. If npm uses
|
|
90
|
-
script approval and native packages remain unavailable, report the pending
|
|
91
|
-
packages and ask the user to approve them; a package must not approve its own
|
|
92
|
-
install scripts.
|
|
93
|
-
|
|
94
|
-
## Workflow
|
|
95
|
-
|
|
96
|
-
### 1. Confirm the root
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
pwd
|
|
100
|
-
git rev-parse --show-toplevel
|
|
101
|
-
scip-query --version
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
This step is complete only when the repository root and runnable `scip-query` command are known, or the install/link blocker is reported.
|
|
105
|
-
|
|
106
|
-
### 2. Run setup
|
|
53
|
+
When a repository is new to scip-query, or its setup is suspect, run:
|
|
107
54
|
|
|
108
55
|
```bash
|
|
109
56
|
scip-query setup --json
|
|
110
57
|
```
|
|
111
58
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
- the detected Tree-sitter TypeScript/JavaScript parser is available for source
|
|
142
|
-
facts;
|
|
143
|
-
- ts-morph semantic readiness is available for TypeScript;
|
|
144
|
-
- the demand-started service is enabled and status exposes TypeScript semantic
|
|
145
|
-
and TypeScript index session counters.
|
|
146
|
-
|
|
147
|
-
For a real multi-project TypeScript monorepo, set
|
|
148
|
-
`indexer.typescript.projectMode: "workspace"`. This makes project/tsconfig
|
|
149
|
-
boundaries the sub-shards: a changed project and its project-reference,
|
|
150
|
-
workspace-package, or tsconfig-path dependents rebuild while unrelated project
|
|
151
|
-
shards are reused. Use `indexer.typescript.projects` only when automatic
|
|
152
|
-
discovery is too broad; a non-empty list is authoritative. Do not enable
|
|
153
|
-
workspace mode for a single-project repository merely to seek speed—the normal
|
|
154
|
-
incremental document producer and persistent ts-morph service already reuse
|
|
155
|
-
unchanged work.
|
|
156
|
-
|
|
157
|
-
#### Rust
|
|
158
|
-
|
|
159
|
-
Require these distinct facts:
|
|
160
|
-
|
|
161
|
-
- `rust-analyzer` is runnable and supports `rust-analyzer scip` for indexing;
|
|
162
|
-
- the Tree-sitter Rust grammar is available for source facts;
|
|
163
|
-
- Rust semantic readiness is available for compiler-backed references,
|
|
164
|
-
callees, signatures, and module/use evidence;
|
|
165
|
-
- status reports the durable Rust transport with worker fallback. `stopped` is
|
|
166
|
-
healthy when no semantic request currently needs the clean-idle helper.
|
|
167
|
-
|
|
168
|
-
If rust-analyzer is missing and rustup is available, setup can run `rustup
|
|
169
|
-
component add rust-analyzer`. `SCIP_RUST_SEMANTIC_DURABLE_SESSION=0` is an
|
|
170
|
-
explicit worker-only fallback, not the optimal default.
|
|
171
|
-
|
|
172
|
-
#### Other languages
|
|
173
|
-
|
|
174
|
-
Trust the capability matrix, not a language name. Setup may install supported
|
|
175
|
-
indexers automatically (for example Python or Go), may provide only source
|
|
176
|
-
facts through a detected Tree-sitter grammar, or may report a manual install
|
|
177
|
-
URL. A missing semantic provider must be reported as unsupported, never as a
|
|
178
|
-
clean semantic analysis.
|
|
179
|
-
|
|
180
|
-
Verification:
|
|
181
|
-
|
|
182
|
-
```bash
|
|
183
|
-
scip-query status --capabilities
|
|
184
|
-
scip-query reindex --json
|
|
185
|
-
scip-query watch --status --json
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
This step is complete only when every selected language has an explicit
|
|
189
|
-
indexing/source/semantic/checker verdict and the published generation is fresh.
|
|
190
|
-
|
|
191
|
-
### 5. Calibrate config only when needed
|
|
192
|
-
|
|
193
|
-
Run `scip-query init` only when `.scipquery.json` is absent and the project needs config. Add settings only for observed repo facts: explicit languages, indexer projects, entry roots, declared couplings, locality boundaries, or accepted suppressions.
|
|
194
|
-
|
|
195
|
-
For TypeScript monorepos, prefer `indexer.typescript.projectMode: "workspace"` when multiple project shards are real. Add `indexerConcurrency` only when measured cold-index timing or memory pressure justifies it. Keep `watch.enabled: true` for the designed demand-started lifecycle unless the user explicitly opts out.
|
|
196
|
-
|
|
197
|
-
This step is complete only when config validates and every setting has a reason.
|
|
198
|
-
|
|
199
|
-
### 6. Hand off cleanup
|
|
200
|
-
|
|
201
|
-
After setup, invoke `scip-cleanup-audit` when the user wants a report or `scip-cleanup-improve` when the user wants autonomous cleanup.
|
|
59
|
+
`setup` is the bootstrap orchestrator: it installs/repairs language indexers,
|
|
60
|
+
installs Tree-sitter grammars, installs bundled agent skills and hooks,
|
|
61
|
+
enables demand-started incremental indexing, builds SQLite shards, starts the
|
|
62
|
+
project service, checks semantic readiness, and reports repository/checkout/
|
|
63
|
+
environment/runtime state separately. Prefer this single command over
|
|
64
|
+
hand-running its internals. Full step-by-step handling — including what to do
|
|
65
|
+
when it reports `partial` or `blocked` — is in
|
|
66
|
+
[Bootstrap workflow](references/bootstrap-workflow.md).
|
|
67
|
+
|
|
68
|
+
Do not manually install AST grammar packages before trying `setup`. If npm's
|
|
69
|
+
script-approval gate blocks a native package, report the pending packages and
|
|
70
|
+
ask the user to approve them — a package must not approve its own install
|
|
71
|
+
scripts.
|
|
72
|
+
|
|
73
|
+
## Rules (apply across every scenario)
|
|
74
|
+
|
|
75
|
+
1. Prefer the single `setup` command over hand-running its internals.
|
|
76
|
+
2. Do not run `scip-query setup-ci` unless the user explicitly asks for CI
|
|
77
|
+
setup.
|
|
78
|
+
3. Treat unavailable capabilities as unproven, not clean. A missing semantic
|
|
79
|
+
provider is "unsupported," never "clean semantic analysis."
|
|
80
|
+
4. Keep `.scipquery.json` minimal and evidence-backed — add a setting only for
|
|
81
|
+
an observed repo fact, with a reason.
|
|
82
|
+
5. Let `setup` install detected AST parser packages and supported indexers; do
|
|
83
|
+
not make users reproduce package-manager commands unless `setup` reports a
|
|
84
|
+
blocker.
|
|
85
|
+
6. A demand-started service or Rust helper in `stopped` state can still be
|
|
86
|
+
correctly configured. Availability comes from capabilities; lifecycle state
|
|
87
|
+
only says whether current work keeps the helper awake.
|
|
202
88
|
|
|
203
|
-
Report
|
|
89
|
+
## Report template
|
|
204
90
|
|
|
205
91
|
```markdown
|
|
206
92
|
Setup: ready/partial/blocked
|
|
@@ -219,3 +105,6 @@ Runtime:
|
|
|
219
105
|
Next:
|
|
220
106
|
- cleanup audit/improve, CI setup, or external blocker
|
|
221
107
|
```
|
|
108
|
+
|
|
109
|
+
Fill this in as the closing report for any bootstrap or repair pass — it is
|
|
110
|
+
the fixed template regardless of which reference scenario you used.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
|
-
display_name: "
|
|
3
|
-
short_description: "Bootstrap or repair scip-query
|
|
4
|
-
default_prompt: "
|
|
2
|
+
display_name: "SCIP Setup"
|
|
3
|
+
short_description: "Bootstrap or repair scip-query in a repo"
|
|
4
|
+
default_prompt: "Use $scip-setup to adopt, repair or diagnose scip-query itself in this repository."
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Bootstrap workflow
|
|
2
|
+
|
|
3
|
+
Six ordered steps. Each has a completion condition — do not treat the step as
|
|
4
|
+
done until the condition is met.
|
|
5
|
+
|
|
6
|
+
## 1. Confirm the root
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pwd
|
|
10
|
+
git rev-parse --show-toplevel
|
|
11
|
+
scip-query --version
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Complete only when the repository root and a runnable `scip-query` command
|
|
15
|
+
are known, or the install/link blocker is reported.
|
|
16
|
+
|
|
17
|
+
## 2. Run setup
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
scip-query setup --json
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`scip-query setup` is the bootstrap orchestrator. In a terminal it opens an
|
|
24
|
+
interactive checklist by default. For an agent or script, `scip-query setup
|
|
25
|
+
--json` runs the recommended non-interactive path and returns every result —
|
|
26
|
+
JSON mode is intentionally non-interactive and suitable for agents. When a
|
|
27
|
+
human is operating the terminal, prefer plain `scip-query setup` (no `--json`)
|
|
28
|
+
so they can review the checklist with arrow keys and Space. Use `scip-query
|
|
29
|
+
setup --yes` to accept recommended defaults without prompting.
|
|
30
|
+
|
|
31
|
+
Use `scip-query setup --no-hooks --json` when project-local Codex or Claude
|
|
32
|
+
Code lifecycle hooks should not be written. Use `scip-query setup --git-hook
|
|
33
|
+
--json` only when the user wants the local pre-commit diff gate.
|
|
34
|
+
|
|
35
|
+
The command, in full:
|
|
36
|
+
|
|
37
|
+
- detects supported project languages and lets a terminal user select them;
|
|
38
|
+
- installs or repairs supported language indexers when a safe installer
|
|
39
|
+
exists;
|
|
40
|
+
- installs the Tree-sitter runtime and detected language grammars from the
|
|
41
|
+
versions pinned by the installed scip-query package;
|
|
42
|
+
- installs bundled agent skills and checkout-local Codex/Claude hooks unless
|
|
43
|
+
explicitly skipped;
|
|
44
|
+
- enables demand-started automatic incremental indexing unless the repository
|
|
45
|
+
has or selects an explicit opt-out;
|
|
46
|
+
- builds or reuses language/project shards and publishes one atomic SQLite
|
|
47
|
+
generation with recovery state;
|
|
48
|
+
- starts or reuses the clean-idle project service and verifies its lifecycle;
|
|
49
|
+
- checks TypeScript and Rust semantic readiness, compiler/checker readiness,
|
|
50
|
+
representative commands, and optional health output;
|
|
51
|
+
- reports repository, checkout, user-environment, and rebuildable runtime
|
|
52
|
+
state separately.
|
|
53
|
+
|
|
54
|
+
Complete only when `setup` reports `ready`, `partial`, or `blocked` and names
|
|
55
|
+
every written, skipped, or blocked artifact.
|
|
56
|
+
|
|
57
|
+
## 3. Resolve blockers
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
scip-query doctor
|
|
61
|
+
scip-query status --json
|
|
62
|
+
scip-query capabilities --matrix
|
|
63
|
+
scip-query config-validate --json
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
`doctor` is the human diagnostic surface for config, index freshness, and
|
|
67
|
+
dependency readiness. `status --json` is the machine surface for freshness
|
|
68
|
+
and config. `capabilities --matrix` reports which evidence/verification
|
|
69
|
+
capabilities are available. `config-validate --json` validates
|
|
70
|
+
`.scipquery.json`.
|
|
71
|
+
|
|
72
|
+
Fix missing indexers, stale indexes, invalid config, or unavailable
|
|
73
|
+
verification only when the fix is safe; otherwise record the exact external
|
|
74
|
+
action needed (e.g. "user must approve npm install scripts for
|
|
75
|
+
tree-sitter-rust").
|
|
76
|
+
|
|
77
|
+
Complete only when each blocker is fixed, reported unavailable with a reason,
|
|
78
|
+
or waiting on a named external action.
|
|
79
|
+
|
|
80
|
+
## 4. Verify the language-specific optimal path
|
|
81
|
+
|
|
82
|
+
See [Language verification](language-verification.md) for what to check per
|
|
83
|
+
language and how to interpret `stopped`/idle service states.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
scip-query status --capabilities
|
|
87
|
+
scip-query reindex --json
|
|
88
|
+
scip-query watch --status --json
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Complete only when every selected language has an explicit
|
|
92
|
+
indexing/source/semantic/checker verdict and the published generation is
|
|
93
|
+
fresh.
|
|
94
|
+
|
|
95
|
+
## 5. Calibrate config only when needed
|
|
96
|
+
|
|
97
|
+
Run `scip-query init` only when `.scipquery.json` is absent and the project
|
|
98
|
+
needs config — it creates the config file. Add settings only for observed
|
|
99
|
+
repo facts: explicit languages, indexer projects, entry roots, declared
|
|
100
|
+
couplings, locality boundaries, or accepted suppressions.
|
|
101
|
+
|
|
102
|
+
- For TypeScript monorepos, prefer `indexer.typescript.projectMode:
|
|
103
|
+
"workspace"` when multiple project shards are real (see
|
|
104
|
+
[Language verification](language-verification.md) for when this earns its
|
|
105
|
+
keep).
|
|
106
|
+
- Add `indexerConcurrency` only when measured cold-index timing or memory
|
|
107
|
+
pressure justifies it.
|
|
108
|
+
- Keep `watch.enabled: true` for the designed demand-started lifecycle unless
|
|
109
|
+
the user explicitly opts out.
|
|
110
|
+
|
|
111
|
+
Complete only when config validates and every setting has a stated reason.
|
|
112
|
+
|
|
113
|
+
## 6. Hand off
|
|
114
|
+
|
|
115
|
+
After setup, invoke `scip-audit` when the user wants a report, or
|
|
116
|
+
`scip-improve` when the user wants autonomous cleanup. If the repo is
|
|
117
|
+
new to scip-query, also route through [Per-repo triage](per-repo-triage.md)
|
|
118
|
+
so standing findings get encoded once rather than recurring on every gate run.
|
|
119
|
+
|
|
120
|
+
Close with the report template in the top-level `SKILL.md`.
|