@backbencher/brain 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +298 -0
- package/EMBEDDINGS.md +355 -0
- package/LICENSE +21 -0
- package/README.md +415 -2
- package/bin/bb +13 -0
- package/dist/analysis-exclusions-7ZJDXOVZ.js +35 -0
- package/dist/brain-index-health-Q5APTJQL.js +17 -0
- package/dist/brain-relationship-enrichment-MYR2AM4F.js +558 -0
- package/dist/brain.sql-EIM4WS4D.js +29 -0
- package/dist/chunk-22V37YTK.js +1758 -0
- package/dist/chunk-2BSKD7O3.js +40 -0
- package/dist/chunk-2DE27DVC.js +1314 -0
- package/dist/chunk-2RRBMNBQ.js +322 -0
- package/dist/chunk-2WXYNLBA.js +29 -0
- package/dist/chunk-3CTFIJJB.js +17 -0
- package/dist/chunk-3ZTOHHSW.js +2104 -0
- package/dist/chunk-4H22TLOT.js +543 -0
- package/dist/chunk-5BVAH26D.js +340 -0
- package/dist/chunk-62DHLYW6.js +3427 -0
- package/dist/chunk-7AN7U5IZ.js +371 -0
- package/dist/chunk-7DRPNVIN.js +782 -0
- package/dist/chunk-7MBYT777.js +174 -0
- package/dist/chunk-AHDWGM7Q.js +236 -0
- package/dist/chunk-B5GEAAYF.js +818 -0
- package/dist/chunk-BEIZZ73B.js +1479 -0
- package/dist/chunk-BQ3OVQ3P.js +125 -0
- package/dist/chunk-D2Q4Y47A.js +53 -0
- package/dist/chunk-DIYAGQJL.js +34 -0
- package/dist/chunk-DWKXZ6IF.js +336 -0
- package/dist/chunk-DYM4FQEE.js +90 -0
- package/dist/chunk-ENW4BTBA.js +930 -0
- package/dist/chunk-EWMWK7WN.js +75 -0
- package/dist/chunk-EY5ZZUUA.js +626 -0
- package/dist/chunk-GBI7V7KY.js +69 -0
- package/dist/chunk-GEFFO6O2.js +152 -0
- package/dist/chunk-HJEWO5EV.js +247 -0
- package/dist/chunk-HQSPJDHI.js +613 -0
- package/dist/chunk-KAET47ZL.js +125 -0
- package/dist/chunk-KCDECRJY.js +440 -0
- package/dist/chunk-L5TDYKYK.js +76 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-NO3U3FJQ.js +201 -0
- package/dist/chunk-OWISBAOF.js +61 -0
- package/dist/chunk-QKTRECYS.js +1119 -0
- package/dist/chunk-QLK6ED4Q.js +235 -0
- package/dist/chunk-R2GW4F6R.js +19 -0
- package/dist/chunk-RCMTFSEF.js +87 -0
- package/dist/chunk-RM3PY6TG.js +376 -0
- package/dist/chunk-ROMM6KMC.js +433 -0
- package/dist/chunk-SGGCSHAX.js +12050 -0
- package/dist/chunk-SK6YVHFZ.js +211 -0
- package/dist/chunk-SM7RFQRO.js +214 -0
- package/dist/chunk-UGR4QIGS.js +67 -0
- package/dist/chunk-UQNQZXHY.js +711 -0
- package/dist/chunk-UUNHHX4M.js +13 -0
- package/dist/chunk-VL52PL2T.js +71 -0
- package/dist/chunk-WIG36E67.js +196 -0
- package/dist/chunk-XHK3WWGB.js +7436 -0
- package/dist/chunk-XTQM2IP3.js +2863 -0
- package/dist/chunk-ZE2LG76D.js +1296 -0
- package/dist/chunk-ZETTGPAW.js +6950 -0
- package/dist/cli/index.js +37 -0
- package/dist/config-HZAAYDP3.js +10 -0
- package/dist/content-search-7XIP555Q.js +593 -0
- package/dist/database-76RP44JG.js +9 -0
- package/dist/doctor-ANGETYMN.js +395 -0
- package/dist/edit-engine-CG72LDZD.js +51 -0
- package/dist/engine-BKEOGN7N.js +11 -0
- package/dist/engine-VIW6NSKO.js +18 -0
- package/dist/fingerprint-OBLIMZLP.js +33 -0
- package/dist/framework-intelligence-3LORTPOX.js +860 -0
- package/dist/freshness-3K6VU5OT.js +174 -0
- package/dist/graph-engine-HBSQNPTB.js +21 -0
- package/dist/graph_request-Q6NKB6N2.js +350 -0
- package/dist/impact_request-LYP672WE.js +68 -0
- package/dist/index-space-IUUN5WYV.js +15 -0
- package/dist/index-status-7OVGYSGW.js +34 -0
- package/dist/index.js +159 -0
- package/dist/instance-FO6QZRLH.js +19 -0
- package/dist/language-detection-DFCAU5DZ.js +11 -0
- package/dist/lsp/server.js +4301 -0
- package/dist/mcp/server.js +132 -0
- package/dist/onboard-DIQZV2NW.js +161 -0
- package/dist/override-companion-pass-XR7MHTP7.js +117 -0
- package/dist/parallel-indexer-FK2XKZXY.js +88 -0
- package/dist/pool-worker.js +1153 -0
- package/dist/project-health-6XPENVAA.js +94 -0
- package/dist/project-index-5SDPHITE.js +57 -0
- package/dist/project-registry-ZJ3DVUGO.js +355 -0
- package/dist/real-bash-analyzer-EJAU5LW5.js +2201 -0
- package/dist/real-c-analyzer-HBD3FNNH.js +5942 -0
- package/dist/real-clean-analyzer-4EEZLPV5.js +3470 -0
- package/dist/real-clojure-analyzer-Q55EBOO2.js +2818 -0
- package/dist/real-cpp-analyzer-IVVOD25R.js +4101 -0
- package/dist/real-csharp-analyzer-ZBNLNJZJ.js +3298 -0
- package/dist/real-css-analyzer-6XRQLUN7.js +15 -0
- package/dist/real-dart-analyzer-OLR72EFW.js +3944 -0
- package/dist/real-elixir-analyzer-MQWGAH2I.js +2192 -0
- package/dist/real-erlang-analyzer-7BVPQEHO.js +1731 -0
- package/dist/real-fsharp-analyzer-C2UPFNOA.js +2390 -0
- package/dist/real-go-analyzer-UKGI43YS.js +4126 -0
- package/dist/real-graphql-analyzer-VE2EEFII.js +1442 -0
- package/dist/real-groovy-analyzer-W26VACFW.js +2285 -0
- package/dist/real-haskell-analyzer-5CVVAJRX.js +2533 -0
- package/dist/real-hcl-analyzer-5ZT4U43N.js +725 -0
- package/dist/real-html-analyzer-JWNX3C6I.js +1759 -0
- package/dist/real-java-analyzer-GU42VBGQ.js +4677 -0
- package/dist/real-javascript-analyzer-QA4QOJ6W.js +14 -0
- package/dist/real-json-analyzer-MPA6PRXL.js +1640 -0
- package/dist/real-julia-analyzer-22CWYQMN.js +2085 -0
- package/dist/real-kotlin-analyzer-QDZJLXXU.js +3956 -0
- package/dist/real-lua-analyzer-G7NHLYKS.js +1957 -0
- package/dist/real-makefile-analyzer-OCY3GT5N.js +920 -0
- package/dist/real-markdown-analyzer-TEJK2JXJ.js +1215 -0
- package/dist/real-matlab-analyzer-Q5SWLN7Z.js +480 -0
- package/dist/real-nim-analyzer-YLXSK563.js +3603 -0
- package/dist/real-objective-c-analyzer-D23ACC2R.js +1518 -0
- package/dist/real-perl-analyzer-WWTRHYDT.js +1865 -0
- package/dist/real-php-analyzer-JNKJHTCL.js +9368 -0
- package/dist/real-powershell-analyzer-XRSNQERV.js +2915 -0
- package/dist/real-protobuf-analyzer-3OKUCZ7T.js +867 -0
- package/dist/real-python-analyzer-VXAFWI72.js +4880 -0
- package/dist/real-r-analyzer-ZGAIDVI4.js +2596 -0
- package/dist/real-ruby-analyzer-X2KTLVBH.js +2429 -0
- package/dist/real-rust-analyzer-OFFHPL2A.js +3359 -0
- package/dist/real-scala-analyzer-TSTW27J6.js +3293 -0
- package/dist/real-scss-analyzer-AVWYPSOQ.js +1515 -0
- package/dist/real-solidity-analyzer-UCI2KWUB.js +2608 -0
- package/dist/real-sql-analyzer-F77ZMQXR.js +3840 -0
- package/dist/real-svelte-analyzer-SF7NRUO5.js +2532 -0
- package/dist/real-swift-analyzer-MN5QT3QN.js +2311 -0
- package/dist/real-toml-analyzer-66L7BDCQ.js +929 -0
- package/dist/real-typescript-analyzer-6KEMVDWQ.js +14 -0
- package/dist/real-vb-analyzer-VICVPOP7.js +3145 -0
- package/dist/real-vba-analyzer-HXLTTHKM.js +466 -0
- package/dist/real-vue-analyzer-QXR56CFV.js +2680 -0
- package/dist/real-xml-analyzer-YL465ZJW.js +2405 -0
- package/dist/real-yaml-analyzer-SUBCBNSI.js +3528 -0
- package/dist/real-zig-analyzer-HIQLZMGY.js +2430 -0
- package/dist/regex-search-NJKHMZNO.js +239 -0
- package/dist/rules-ACHPB7QU.js +152 -0
- package/dist/scoped-path-MJYWJZQX.js +11 -0
- package/dist/setup-show-NT5ZHYNE.js +15 -0
- package/dist/setup-wizard-G5YYR5T6.js +24 -0
- package/dist/symbol-search-GZJIM2J2.js +16 -0
- package/dist/taint-KXUHHPIE.js +202 -0
- package/dist/taint-analyzer-N7YLZU3N.js +163 -0
- package/dist/tool-handlers-OJDC35DI.js +72 -0
- package/dist/tool-registry-BPEJNSZG.js +17 -0
- package/dist/tool-validation-Q57YMMBX.js +32 -0
- package/dist/type-inference-QMT2RMLV.js +13 -0
- package/dist/vector-binary-LMY4QGAN.js +19 -0
- package/dist/version-ABP2TUL2.js +9 -0
- package/dist/wasm-NMWO3WXY.js +16 -0
- package/docs/EMBEDDINGS.md +132 -0
- package/docs/README.md +178 -0
- package/docs/data/m10-baseline.json +602 -0
- package/docs/data/m10-benchmark-baseline.json +57 -0
- package/docs/data/m10-benchmark-last-run.json +127 -0
- package/docs/data/m10-final-audit.json +215 -0
- package/docs/data/m12-final-audit.json +138 -0
- package/docs/data/m12-surface-matrix.json +50 -0
- package/docs/data/public-tools.json +1902 -0
- package/docs/indexing/DEAD-ASSETS.md +88 -0
- package/docs/indexing/INDEXER-REVIEW.md +634 -0
- package/docs/indexing/PERFORMANCE-FINDINGS.md +106 -0
- package/docs/indexing/README.md +427 -0
- package/docs/indexing/discovery-matrix.md +41 -0
- package/docs/indexing/embeddings.md +325 -0
- package/docs/indexing/environment-variables.md +77 -0
- package/docs/indexing/performance.md +323 -0
- package/docs/indexing/resume.md +345 -0
- package/docs/indexing/troubleshooting.md +391 -0
- package/docs/man/bb.1 +190 -0
- package/docs/tools/bb_analyze.md +147 -0
- package/docs/tools/bb_annotate.md +110 -0
- package/docs/tools/bb_annotations.md +106 -0
- package/docs/tools/bb_ask.md +101 -0
- package/docs/tools/bb_cross_language.md +103 -0
- package/docs/tools/bb_doc.md +169 -0
- package/docs/tools/bb_edit.md +185 -0
- package/docs/tools/bb_graph.md +169 -0
- package/docs/tools/bb_health.md +156 -0
- package/docs/tools/bb_impact.md +117 -0
- package/docs/tools/bb_index.md +108 -0
- package/docs/tools/bb_migrate.md +135 -0
- package/docs/tools/bb_patterns.md +140 -0
- package/docs/tools/bb_search.md +150 -0
- package/docs/tools/bb_security.md +100 -0
- package/docs/tools/bb_visualize.md +184 -0
- package/grammars/README.md +57 -0
- package/grammars/THIRD-PARTY-NOTICES.md +50 -0
- package/grammars/tree-sitter-c/LICENSE +21 -0
- package/grammars/tree-sitter-clojure/LICENSE.md +21 -0
- package/grammars/tree-sitter-cpp/LICENSE +21 -0
- package/grammars/tree-sitter-csharp/LICENSE +21 -0
- package/grammars/tree-sitter-css/LICENSE +21 -0
- package/grammars/tree-sitter-css/README.md +21 -0
- package/grammars/tree-sitter-dart/LICENSE +20 -0
- package/grammars/tree-sitter-dart-upstream/LICENSE +20 -0
- package/grammars/tree-sitter-dart-upstream/README.md +18 -0
- package/grammars/tree-sitter-elixir/LICENSE +176 -0
- package/grammars/tree-sitter-elixir/README.md +11 -0
- package/grammars/tree-sitter-fsharp/LICENSE +21 -0
- package/grammars/tree-sitter-fsharp/README.md +45 -0
- package/grammars/tree-sitter-graphql/LICENSE +21 -0
- package/grammars/tree-sitter-graphql/README.md +106 -0
- package/grammars/tree-sitter-groovy/LICENSE +21 -0
- package/grammars/tree-sitter-groovy/README.md +4 -0
- package/grammars/tree-sitter-haskell/LICENSE +21 -0
- package/grammars/tree-sitter-haskell/README.md +394 -0
- package/grammars/tree-sitter-hcl/CHANGELOG.md +102 -0
- package/grammars/tree-sitter-hcl/LICENSE +201 -0
- package/grammars/tree-sitter-hcl/README.md +39 -0
- package/grammars/tree-sitter-html/LICENSE +21 -0
- package/grammars/tree-sitter-html/README.md +21 -0
- package/grammars/tree-sitter-julia/LICENSE +21 -0
- package/grammars/tree-sitter-julia/README.md +24 -0
- package/grammars/tree-sitter-kotlin/LICENSE +9 -0
- package/grammars/tree-sitter-lua/LICENSE.md +21 -0
- package/grammars/tree-sitter-lua/README.md +29 -0
- package/grammars/tree-sitter-make/LICENSE +21 -0
- package/grammars/tree-sitter-matlab/LICENSE +19 -0
- package/grammars/tree-sitter-matlab/README.md +99 -0
- package/grammars/tree-sitter-nim/LICENSE +373 -0
- package/grammars/tree-sitter-nim/README.md +46 -0
- package/grammars/tree-sitter-objc/LICENSE +21 -0
- package/grammars/tree-sitter-objc/README.md +20 -0
- package/grammars/tree-sitter-perl/LICENSE +7 -0
- package/grammars/tree-sitter-perl/README.md +100 -0
- package/grammars/tree-sitter-powershell/LICENSE +21 -0
- package/grammars/tree-sitter-powershell/README.md +7 -0
- package/grammars/tree-sitter-proto/LICENSE +21 -0
- package/grammars/tree-sitter-proto/README.md +105 -0
- package/grammars/tree-sitter-r/LICENSE +9 -0
- package/grammars/tree-sitter-r/README.md +66 -0
- package/grammars/tree-sitter-ruby/LICENSE +22 -0
- package/grammars/tree-sitter-scss/LICENSE +21 -0
- package/grammars/tree-sitter-scss/README.md +17 -0
- package/grammars/tree-sitter-solidity/LICENSE +7 -0
- package/grammars/tree-sitter-sql/LICENSE +21 -0
- package/grammars/tree-sitter-typescript/LICENSE +21 -0
- package/grammars/tree-sitter-vba/LICENSE +21 -0
- package/grammars/tree-sitter-vba/README.md +738 -0
- package/grammars/tree-sitter-vbnet/LICENSE +21 -0
- package/grammars/tree-sitter-vbnet/README.md +322 -0
- package/grammars/tree-sitter-xml/LICENSE +19 -0
- package/grammars/tree-sitter-yaml/LICENSE +20 -0
- package/grammars/tree-sitter-yaml/README.md +21 -0
- package/package.json +184 -4
- package/wasm/dart.wasm +0 -0
- package/wasm/tree-sitter-bash.wasm +0 -0
- package/wasm/tree-sitter-c.wasm +0 -0
- package/wasm/tree-sitter-c_sharp.wasm +0 -0
- package/wasm/tree-sitter-clean.wasm +0 -0
- package/wasm/tree-sitter-clojure.wasm +0 -0
- package/wasm/tree-sitter-core_schema.wasm +0 -0
- package/wasm/tree-sitter-cpp.wasm +0 -0
- package/wasm/tree-sitter-css.wasm +0 -0
- package/wasm/tree-sitter-dart.wasm +0 -0
- package/wasm/tree-sitter-elisp.wasm +0 -0
- package/wasm/tree-sitter-elixir.wasm +0 -0
- package/wasm/tree-sitter-elm.wasm +0 -0
- package/wasm/tree-sitter-embedded_template.wasm +0 -0
- package/wasm/tree-sitter-erlang.wasm +0 -0
- package/wasm/tree-sitter-fsharp.wasm +0 -0
- package/wasm/tree-sitter-fsharp_signature.wasm +0 -0
- package/wasm/tree-sitter-go.wasm +0 -0
- package/wasm/tree-sitter-graphql.wasm +0 -0
- package/wasm/tree-sitter-groovy.wasm +0 -0
- package/wasm/tree-sitter-haskell.wasm +0 -0
- package/wasm/tree-sitter-hcl.wasm +0 -0
- package/wasm/tree-sitter-html.wasm +0 -0
- package/wasm/tree-sitter-java.wasm +0 -0
- package/wasm/tree-sitter-javascript.wasm +0 -0
- package/wasm/tree-sitter-json.wasm +0 -0
- package/wasm/tree-sitter-json_schema.wasm +0 -0
- package/wasm/tree-sitter-julia.wasm +0 -0
- package/wasm/tree-sitter-kotlin.wasm +0 -0
- package/wasm/tree-sitter-lua.wasm +0 -0
- package/wasm/tree-sitter-make.wasm +0 -0
- package/wasm/tree-sitter-markdown.wasm +0 -0
- package/wasm/tree-sitter-markdown_inline.wasm +0 -0
- package/wasm/tree-sitter-matlab.wasm +0 -0
- package/wasm/tree-sitter-nim.wasm +0 -0
- package/wasm/tree-sitter-objc.wasm +0 -0
- package/wasm/tree-sitter-ocaml.wasm +0 -0
- package/wasm/tree-sitter-perl.wasm +0 -0
- package/wasm/tree-sitter-php.wasm +0 -0
- package/wasm/tree-sitter-php_only.wasm +0 -0
- package/wasm/tree-sitter-powershell.wasm +0 -0
- package/wasm/tree-sitter-protobuf.wasm +0 -0
- package/wasm/tree-sitter-python.wasm +0 -0
- package/wasm/tree-sitter-ql.wasm +0 -0
- package/wasm/tree-sitter-r.wasm +0 -0
- package/wasm/tree-sitter-rescript.wasm +0 -0
- package/wasm/tree-sitter-ruby.wasm +0 -0
- package/wasm/tree-sitter-rust.wasm +0 -0
- package/wasm/tree-sitter-scala.wasm +0 -0
- package/wasm/tree-sitter-scss.wasm +0 -0
- package/wasm/tree-sitter-solidity.wasm +0 -0
- package/wasm/tree-sitter-sql.wasm +0 -0
- package/wasm/tree-sitter-svelte.wasm +0 -0
- package/wasm/tree-sitter-swift.wasm +0 -0
- package/wasm/tree-sitter-systemrdl.wasm +0 -0
- package/wasm/tree-sitter-terraform.wasm +0 -0
- package/wasm/tree-sitter-tlaplus.wasm +0 -0
- package/wasm/tree-sitter-toml.wasm +0 -0
- package/wasm/tree-sitter-tsx.wasm +0 -0
- package/wasm/tree-sitter-typescript.wasm +0 -0
- package/wasm/tree-sitter-vba.wasm +0 -0
- package/wasm/tree-sitter-vbnet.wasm +0 -0
- package/wasm/tree-sitter-vue.wasm +0 -0
- package/wasm/tree-sitter-xml.wasm +0 -0
- package/wasm/tree-sitter-yaml.wasm +0 -0
- package/wasm/tree-sitter-zig.wasm +0 -0
- package/wasm/tree-sitter.wasm +0 -0
- package/wasm/tsx.wasm +0 -0
- package/wasm/typescript.wasm +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// src/lsp/identity.ts
|
|
2
|
+
var IDENTITY_TRAVERSABLE_TYPES = [
|
|
3
|
+
"function",
|
|
4
|
+
"method",
|
|
5
|
+
"class",
|
|
6
|
+
"interface",
|
|
7
|
+
"trait",
|
|
8
|
+
"struct",
|
|
9
|
+
"enum",
|
|
10
|
+
"macro"
|
|
11
|
+
];
|
|
12
|
+
function memberFileMatches(hint, stored) {
|
|
13
|
+
const h = hint.replace(/\\/g, "/");
|
|
14
|
+
const s = stored.replace(/\\/g, "/");
|
|
15
|
+
if (h === s) return true;
|
|
16
|
+
return h.endsWith("/" + s);
|
|
17
|
+
}
|
|
18
|
+
function resolveMemberIdentity(db, projectId, symbolName, fileHint) {
|
|
19
|
+
try {
|
|
20
|
+
const TRAVERSABLE = IDENTITY_TRAVERSABLE_TYPES;
|
|
21
|
+
const memberRows = db.prepare(
|
|
22
|
+
`SELECT s.id, s.name, s.symbol_type AS symbolType, s.owner_symbol_id AS ownerId,
|
|
23
|
+
COALESCE(f.relative_path, f.path, '') AS file
|
|
24
|
+
FROM brain_symbol s LEFT JOIN brain_file f ON f.id = s.file_id
|
|
25
|
+
WHERE s.project_id = ? AND s.name = ?`
|
|
26
|
+
).all(projectId, symbolName);
|
|
27
|
+
let member = memberRows[0];
|
|
28
|
+
if (memberRows.length > 1) {
|
|
29
|
+
if (!fileHint) return null;
|
|
30
|
+
const narrowed = memberRows.filter((r) => memberFileMatches(fileHint, r.file));
|
|
31
|
+
if (narrowed.length !== 1) return null;
|
|
32
|
+
member = narrowed[0];
|
|
33
|
+
}
|
|
34
|
+
if (!member) return null;
|
|
35
|
+
if (TRAVERSABLE.includes(member.symbolType)) return null;
|
|
36
|
+
const inbound = db.prepare(
|
|
37
|
+
`SELECT COUNT(*) AS c FROM brain_relationship
|
|
38
|
+
WHERE project_id = ? AND target_symbol_id = ?
|
|
39
|
+
AND relationship_type IN ('calls','instantiates','extends','implements')`
|
|
40
|
+
).get(projectId, member.id);
|
|
41
|
+
if (typeof inbound?.c === "number" && inbound.c > 0) return null;
|
|
42
|
+
if (!member.ownerId) return null;
|
|
43
|
+
const ownerRows = db.prepare(
|
|
44
|
+
`SELECT s.id, s.name, s.symbol_type AS symbolType,
|
|
45
|
+
COALESCE(f.relative_path, f.path, '') AS file
|
|
46
|
+
FROM brain_symbol s LEFT JOIN brain_file f ON f.id = s.file_id
|
|
47
|
+
WHERE s.project_id = ? AND s.id = ?`
|
|
48
|
+
).all(projectId, member.ownerId);
|
|
49
|
+
if (ownerRows.length !== 1) return null;
|
|
50
|
+
const owner = ownerRows[0];
|
|
51
|
+
if (!TRAVERSABLE.includes(owner.symbolType)) return null;
|
|
52
|
+
return { id: owner.id, name: owner.name, file: owner.file };
|
|
53
|
+
} catch {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function memberResolutionRecord(requestedName, ownerName, fileHint) {
|
|
58
|
+
return {
|
|
59
|
+
through: "owning-declaration",
|
|
60
|
+
memberName: requestedName,
|
|
61
|
+
ownerName,
|
|
62
|
+
...fileHint ? { memberFile: fileHint } : {}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
IDENTITY_TRAVERSABLE_TYPES,
|
|
68
|
+
memberFileMatches,
|
|
69
|
+
resolveMemberIdentity,
|
|
70
|
+
memberResolutionRecord
|
|
71
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// package.json
|
|
2
|
+
var package_default = {
|
|
3
|
+
name: "@backbencher/brain",
|
|
4
|
+
version: "0.1.1",
|
|
5
|
+
description: "Universal code intelligence: index any project with 50 language analyzers, query via CLI or any MCP host (Claude Code, Cursor, VS Code).",
|
|
6
|
+
type: "module",
|
|
7
|
+
author: "Muhammad Ishaq Khan <ishaq2321@users.noreply.github.com>",
|
|
8
|
+
homepage: "https://backbencher.cc",
|
|
9
|
+
repository: {
|
|
10
|
+
type: "git",
|
|
11
|
+
url: "git+https://github.com/backbencher-hq/backbencher-brain.git"
|
|
12
|
+
},
|
|
13
|
+
bugs: {
|
|
14
|
+
url: "https://github.com/backbencher-hq/backbencher-brain/issues"
|
|
15
|
+
},
|
|
16
|
+
main: "./dist/index.js",
|
|
17
|
+
types: "./dist/index.d.ts",
|
|
18
|
+
bin: {
|
|
19
|
+
bb: "./bin/bb"
|
|
20
|
+
},
|
|
21
|
+
man: [
|
|
22
|
+
"./docs/man/bb.1"
|
|
23
|
+
],
|
|
24
|
+
files: [
|
|
25
|
+
"dist/",
|
|
26
|
+
"wasm/",
|
|
27
|
+
"bin/",
|
|
28
|
+
"docs/data/",
|
|
29
|
+
"docs/tools/",
|
|
30
|
+
"docs/man/",
|
|
31
|
+
"docs/indexing/",
|
|
32
|
+
"README.md",
|
|
33
|
+
"EMBEDDINGS.md",
|
|
34
|
+
"CHANGELOG.md",
|
|
35
|
+
"grammars/README.md",
|
|
36
|
+
"grammars/THIRD-PARTY-NOTICES.md",
|
|
37
|
+
"grammars/*/LICENSE*"
|
|
38
|
+
],
|
|
39
|
+
exports: {
|
|
40
|
+
".": "./dist/index.js",
|
|
41
|
+
"./*": "./dist/*.js"
|
|
42
|
+
},
|
|
43
|
+
engines: {
|
|
44
|
+
node: ">=18.0.0"
|
|
45
|
+
},
|
|
46
|
+
scripts: {
|
|
47
|
+
build: "tsup",
|
|
48
|
+
typecheck: "tsc --noEmit",
|
|
49
|
+
"typecheck:scripts": "tsc --noEmit -p tsconfig.scripts.json",
|
|
50
|
+
"verify:suite": "tsx script/m62/verify-suite.mts",
|
|
51
|
+
test: "npx tsx script/verify-engine.ts && npx tsx script/verify-schema.ts && npx tsx script/verify-tool-registry.ts && npx tsx script/verify-public-surface.ts && npx tsx script/verify-skills-if-present.ts && npx tsx script/verify-grammar-licenses.ts",
|
|
52
|
+
"verify:fast": "npx tsx script/m30/verify-governance.ts && npx tsx script/m30/verify-setup.ts && npx tsx script/m30/verify-first-run-hook.ts && npx tsx script/m30/verify-key-validation.ts && npx tsx script/m30/verify-rate-limit.ts && npx tsx script/m30/verify-honesty-docs.ts && npx tsx script/m32/verify-governance.ts && npx tsx script/m32/verify-smoke.ts && npx tsx script/m32/verify-setup-show.ts && npx tsx script/m32/verify-doctor.ts && npx tsx script/m32/verify-doctor-fix.ts && npx tsx script/m32/verify-honesty-docs.ts && npx tsx script/m33/verify-governance.ts && npx tsx script/m33/verify-version.ts && npx tsx script/m33/verify-unknown-command.ts && npx tsx script/m33/verify-man-page.ts && npx tsx script/m33/verify-help-parity.ts && npx tsx script/m33/verify-honesty-docs.ts && npx tsx script/m34/verify-governance.ts && npx tsx script/m34/verify-install-smoke.ts && npx tsx script/m34/verify-script-gate.ts && npx tsx script/m29/verify-wave-protocol.ts && npx tsx script/m29/verify-precision-ledger.ts && npx tsx script/m56/verify-governance.ts && npx tsx script/m15/verify-security-regressions.ts && npx tsx script/m15/verify-security-precision.ts && npx tsx script/verify-security.ts && npx tsx script/m20/verify-security-flow-boundary.ts && npx tsx script/m20/verify-security-adversarial.ts && npx tsx script/m20/verify-security-history.ts && npx tsx script/m15/verify-security-deep.ts",
|
|
53
|
+
prepublishOnly: "npm run build",
|
|
54
|
+
prepack: "npm run typecheck 1>&2 && npm run build 1>&2",
|
|
55
|
+
"docs:generate": "bun run script/verify-tool-docs.ts --write",
|
|
56
|
+
"verify:viz-browser": "bun run script/m13/verify-visualize-browser.ts",
|
|
57
|
+
"docs:verify": "bun run script/verify-tool-docs.ts && bun run script/verify-integration-docs.ts && bun run script/verify-doc-tool-surface.ts && bun run script/m31/verify-governance.ts && bun run script/m31/verify-gate-selftest.ts && bun run script/m31/tool-mode-corpus.ts --check && bun run script/m31/verify-tool-docs-deep.ts && bun run script/m31/verify-bb-docs-truth.ts && bun run script/m31/verify-tools-overview.ts && bun run script/m31/verify-closure.ts && bun run script/m31/wave2/verify-governance.ts",
|
|
58
|
+
verify: 'npm run build && bun run audit:parse-integrity-selftest && bun run audit:parse-integrity && bun run audit:grammar && bun run audit:grammar-consistency && bun run audit:grammar-pins && bun run audit:parse-success-selftest && bun run audit:parse-success && bun run audit:attr-line-base && bun run audit:include-names && bun run audit:name-surface && bun run audit:evidence && bun run audit:fixtures && bun run audit:fixture-provenance && bun run audit:mutations && bun run audit:script-typecheck && bun run audit:differential && bun run audit:pipeline && bun run audit:consistency && bun run audit:cluster && bun run audit:cluster-systems && bun run audit:completeness && bun run audit:analyzer-docs && bun run audit:fleet && bun run audit:carrier-census && bun run audit:toml-census && bun run audit:svelte-census && bun run audit:js-census && bun run script/verify-quality-gate.ts && bun run script/verify-m10-governance.ts && bun run script/verify-m10-baseline.ts && bun run script/verify-evidence-governance.ts && bun run script/verify-intelligence-consolidation.ts && bun run script/verify-analysis-governance.ts && bun run script/verify-m10-benchmarks.ts && bun run script/verify-deletion-safety.ts && bun run script/verify-contract-diff.ts && bun run script/m13/verify-contract-authority.ts && bun run script/m13/verify-evidence.ts && bun run script/m13/verify-safety-primitives.ts && bun run script/m13/verify-edit-boundary.ts && bun run script/m13/verify-edit-rename.ts && bun run script/m13/verify-edit-mask.ts && bun run script/m13/verify-edit-body.ts && bun run script/m13/verify-edit-freshness.ts && bun run script/m13/verify-edit-atomicity.ts && bun run script/m13/verify-edit-unit.ts && bun run script/m13/verify-edit-integration.ts && bun run script/m13/verify-edit-e2e.ts && bun run script/m13/verify-edit-corpus.ts && bun run script/m13/verify-edit-honesty.ts && bun run script/m13/verify-edit-batch.ts && bun run script/m13/verify-edit-docs.ts && bun run script/m13/verify-search-e2e.ts && bun run script/m13/verify-search-corpus.ts && bun run script/m13/verify-search-honesty.ts && bun run script/m13/verify-search-docs.ts && bun run script/m13/verify-ask-contract.ts && bun run script/m13/verify-ask-provenance.ts && bun run script/m13/verify-ask-adversarial.ts && bun run script/m13/verify-ask-integration.ts && bun run script/m13/verify-ask-e2e-corpus.ts && bun run script/m13/verify-ask-docs.ts && bun run script/m13/verify-ask-honesty.ts && bun run script/m13/verify-health-mutability.ts && bun run script/m13/verify-health-verbose.ts && bun run script/m13/verify-health-integrity.ts && bun run script/m13/verify-health-refresh.ts && bun run script/m13/verify-health-e2e-corpus.ts && bun run script/m13/verify-health-docs.ts && bun run script/m13/verify-patterns-contract.ts && bun run script/m13/verify-patterns-rules.ts && bun run script/m13/verify-patterns-orphans.ts && bun run script/m13/verify-patterns-e2e-corpus.ts && bun run script/m13/verify-patterns-docs.ts && bun run script/m13/verify-security-contract.ts && bun run script/m13/verify-security-handler.ts && bun run script/m13/verify-security-adversarial.ts && bun run script/m13/verify-security-docs.ts && bun run script/m13/verify-visualize-contract.ts && bun run script/m13/verify-visualize-fidelity.ts && bun run script/m13/verify-visualize-e2e-corpus.ts && bun run script/m13/verify-visualize-docs.ts && bun run script/m13/verify-visualize-options.ts && bun run script/m13/verify-visualize-target-literals.ts && bun run script/m13/verify-visualize-views.ts && bun run script/m13/verify-visualize-owner-fold.ts && bun run script/m13/verify-visualize-honesty.ts && bun run script/m13/verify-migrate-accuracy.ts && bun run script/m13/verify-migrate-e2e-corpus.ts && bun run script/m13/verify-migrate-docs.ts && bun run script/m13/verify-analyze-modes.ts && bun run script/m13/verify-analyze-handler.ts && bun run script/m13/verify-analyze-e2e-corpus.ts && bun run script/m13/verify-analyze-docs.ts && bun run script/m13/verify-doc-facts.ts && bun run script/m13/verify-doc-modes.ts && bun run script/m13/verify-doc-e2e-corpus.ts && bun run script/m13/verify-doc-docs.ts && bun run script/verify-m10-final-audit.ts && bun run script/verify-m11-corpus.ts && bun run script/verify-m11-differential-harness.ts && bun run script/verify-m11-parser-matrix.ts && bun run script/verify-m11-lifecycle.ts && bun run script/m14/verify-ruling-tables-registered.ts && bun run audit:population && bun run script/m12/verify-regex-census.ts && bun run script/verify-m12-final-audit.ts && bun run script/verify-core.ts && bun run script/verify-engine.ts && bun run script/verify-index.ts && bun run script/verify-embed.ts && bun run script/verify-freshness.ts && bun run script/verify-schema.ts && bun run script/verify-tool-registry.ts && bun run script/verify-public-surface.ts && bun run script/verify-tool-docs.ts && bun run script/verify-tool-page-claims.ts && bun run script/verify-integration-docs.ts && bun run script/verify-integration-runtime.ts && bun run script/verify-module-boundaries.ts && bun run script/verify-search-modes.ts && bun run script/verify-semantic.ts && bun run script/verify-graph.ts && bun run script/verify-analyze.ts && bun run script/verify-patterns.ts && bun run script/verify-security.ts && bun run script/verify-tool-history.ts && bun run script/verify-test-intel.ts && bun run script/verify-test-quality.ts && bun run script/verify-analysis-history.ts && bun run script/verify-edit.ts && bun run script/verify-health.ts && bun run script/verify-doc-design.ts && bun run script/verify-doc.ts && bun run script/verify-visualize-migrate.ts && bun run script/verify-cli-surface.ts && bun run script/verify-mcp.ts && bun run script/verify-contracts.ts && bun run script/verify-mcp-e2e.ts && bun run script/m12/verify-m12-surface.ts && bun run script/m15/verify-contracts.ts && bun run script/m15/verify-registry-handlers.ts && bun run script/m15/verify-safety-primitives.ts && bun run script/m15/verify-edit-classification.ts && bun run script/m15/verify-edit-regex.ts && bun run script/m15/verify-edit-mask.ts && bun run script/m15/verify-edit-crossfile.ts && bun run script/m15/verify-edit-e2e-docs.ts && bun run script/m15/verify-search-complete.ts && bun run script/m15/verify-ask-deep.ts && bun run script/m15/verify-health-deep.ts && bun run script/m15/verify-patterns-deep.ts && bun run script/m15/verify-security-deep.ts && bun run script/m15/verify-doc-deep.ts && bun run script/m15/verify-analyze-deep.ts && bun run script/m15/verify-visualize-migrate-deep.ts && bun run script/m15/verify-matrix-coverage-closure.ts && bun run script/m16/verify-edit-real-repo.ts && bun run script/m16/verify-ask-stats.ts && bun run script/m16/verify-tool-runs.ts && bun run script/m16/verify-docs-truth.ts && bun run script/m16/verify-embedding-lifecycle.ts && bun run script/m16/verify-closure-gate.ts && bun run script/m17/verify-closure-gate.ts && bun run script/m17/verify-mutation.ts && bun run script/m18/verify-closure-gate.ts && bun run script/m18/verify-mutation.ts && bun run script/m19/verify-scale-bench.ts && bun run script/m19/verify-giant-aspnetcore.ts && bun run script/m19/verify-giant-intellij.ts && bun run script/m19/rebuild-content-search-index.ts "${BB_INTELLIJ_ROOT:-$HOME/intellij-community}" && bun run script/m19/verify-retrieval-scale.ts && bun run script/m19/verify-fallback-scale.ts && bun run script/m19/verify-bench-docs.ts && bun run script/m19/verify-closure-gate.ts && bun run script/m19/verify-mutation.ts && bun run script/m20/verify-governance.ts && bun run script/m20/verify-corpus-registry.ts && bun run script/m20/verify-migration-methodology.ts && bun run script/m20/verify-migration-mappings.ts && bun run script/m20/verify-migration-order.ts && bun run script/m20/verify-patterns-parameter-scan.ts && bun run script/m20/verify-patterns-orphan-semantics.ts && bun run script/m20/verify-patterns-pagination-history.ts && bun run script/m20/verify-security-flow-boundary.ts && bun run script/m20/verify-security-adversarial.ts && bun run script/m20/verify-security-history.ts && bun run script/m20/verify-doc-modes.ts && bun run script/m20/verify-doc-citations.ts && bun run script/m20/verify-doc-examples-diagrams.ts && bun run script/m20/verify-cross-tool-parity.ts && bun run script/m20/verify-real-repo-ledger.ts && bun run audit:doc-truth-emissions-selftest && bun run audit:doc-truth-emissions && bun run audit:hygiene-selftest && bun run audit:hygiene && bun run audit:census && bun run audit:fixture-coverage-selftest && bun run audit:fixture-coverage && bun run audit:probes && bun run audit:evidence-harness && bun run audit:honesty && bun run script/m35/verify-governance.ts && bun run script/m35/verify-gate-selftest.ts && bun run script/m35/verify-freshness-core.ts && bun run script/m35/verify-envelope-contract.ts && npm run docs:verify && bun run script/m35/verify-s1-read-paths.ts && bun run script/m35/verify-s2-derived.ts && bun run script/m35/verify-s3-graph-migrate.ts && bun run script/m35/staleness-corpus.ts --check && bun run script/m35/verify-docs-staleness.ts && bun run script/m35/verify-closure.ts && bun run script/m30/verify-governance.ts && bun run script/m30/verify-setup.ts && bun run script/m30/verify-first-run-hook.ts && bun run script/m30/verify-key-validation.ts && bun run script/m30/verify-rate-limit.ts && bun run script/m30/verify-honesty-docs.ts && bun run script/m30/verify-closure.ts && bun run script/m32/verify-governance.ts && bun run script/m32/verify-smoke.ts && bun run script/m32/verify-setup-show.ts && bun run script/m32/verify-doctor.ts && bun run script/m32/verify-doctor-fix.ts && bun run script/m32/verify-honesty-docs.ts && bun run script/m32/verify-closure.ts && bun run script/m33/verify-governance.ts && bun run script/m33/verify-version.ts && bun run script/m33/verify-unknown-command.ts && bun run script/m33/verify-man-page.ts && bun run script/m33/verify-help-parity.ts && bun run script/m33/verify-honesty-docs.ts && bun run script/m33/verify-closure.ts && bun run script/m34/verify-governance.ts && bun run script/m34/verify-install-smoke.ts && bun run script/m34/verify-script-gate.ts && bun run script/m34/verify-closure.ts && bun run script/m36/verify-governance.ts && bun run script/m36/verify-ci-repair.ts && bun run script/m36/verify-verify-fast.ts && bun run script/m36/verify-closure.ts && bun run script/m40/verify-governance.ts && bun run script/m40/verify-gate-selftest.ts && bun run script/m40/verify-a1-post-entry.ts && bun run script/m40/verify-a2-bounded-post.ts && bun run script/m40/verify-a3-write-parity.ts && bun run script/m40/lifecycle-corpus.ts --gate && bun run script/m40/verify-a5-flag-semantics.ts && bun run script/m40/verify-a6-health-refresh.ts && bun run script/m40/verify-import-resolution.ts && bun run script/m65/verify-refresh-resolution.ts && bun run script/m65/verify-graph-blindspots.ts && bun run script/m65/verify-edge-kind-scoping.ts && bun run script/m40/verify-a7-cli-parity.ts && bun run script/m40/verify-a8-config.ts && bun run script/m40/verify-a9-purge.ts && bun run script/m40/verify-closure.ts && bun run script/m43/verify-governance.ts && bun run script/m43/verify-gate-selftest.ts && bun run script/m43/verify-p1-index-lock.ts && bun run script/m43/verify-a1-mcp-auto-refresh.ts && bun run script/m43/verify-a2-cli-auto-refresh.ts && bun run script/m43/verify-a3-flag-semantics.ts && bun run script/m43/verify-a4-corpus.ts && bun run script/m43/verify-arbiter-typecheck.ts && bun run script/m43/verify-closure.ts && bun run script/m24/verify-governance.ts && bun run script/m25/verify-governance.ts && bun run script/m26/verify-governance.ts && bun run script/m24/verify-positions.ts && bun run script/m24/verify-freshness.ts && bun run script/m24/verify-server.ts && bun run script/m24/verify-hover.ts && bun run script/m24/verify-navigation.ts && bun run script/m24/verify-symbols.ts && bun run script/m24/verify-call-hierarchy.ts && bun run script/m24/verify-harness.ts && bun run script/m24/verify-docs.ts && bun run script/m24/verify-closure.ts && bun run script/m29/verify-governance.ts && bun run script/m42/verify-governance.ts && bun run script/m44/verify-governance.ts && bun run script/m29/verify-wave-protocol.ts && bun run script/m29/verify-precision-ledger.ts && bun run script/m29/verify-precision-improvements.ts && npx tsx script/m41/generate-site-truth.ts --check && npx tsx script/m41/verify-truth-pipeline.ts && npx tsx script/m41/verify-site-truth.ts && npx tsx script/m41/verify-seo.ts && npx tsx script/m41/verify-governance.ts && npx tsx script/m41/verify-seo-onboarding.ts && bun run script/m48/verify-governance.ts && bun run script/m48/verify-p1-impact-unity.ts && bun run script/m48/verify-p2-honesty-fields.ts && bun run script/m48/verify-p3-agreement.ts && bun run script/m48/verify-p4-param-matrix.ts && bun run script/m48/verify-c1-corpus.ts && bun run script/m48/verify-c2-edge-mutations.ts && bun run script/m48/verify-d1-doc-truth.ts && bun run script/m48/verify-w1-website-tools.ts && bun run script/m48/verify-h1-ghosts.ts && bun run script/m48/l1-hub-smoke.ts && bun run script/m48/verify-l1-hub-guard.ts && bun run script/m48/verify-closure.ts && bun run script/m49/verify-governance.ts && bun run script/m49/verify-r1-intake.ts && bun run script/m49/verify-r2-regex.ts && bun run script/m49/verify-clj-core-list.ts && bun run script/m49/verify-closure.ts && bun run script/m49/verify-evidence-lineage.ts && bun run script/m49/verify-script-integrity.ts && bun run script/m49/verify-census-lineage.ts && bun run script/m49/verify-evidence-identity.ts && bun run script/m49/verify-family-parity.ts && bun run script/m49/verify-sweep-state-freeze.ts && npx tsx script/m60/payload-matrix.ts && npx tsx script/m60/verify-family-closure-truth.ts && bun run script/m60/verify-910-c-includes.ts && bun run script/m60/verify-standing-rules.ts && bun run script/m59/verify-language-surface.ts && bun run script/m50/verify-governance.ts && bun run script/m50/verify-gate-selftest.ts && bun run script/m50/verify-planner-stats.ts && bun run script/m50/verify-a2-param-aliases.ts && bun run script/m50/verify-vector-blobs.ts && bun run script/m50/verify-a2-bounded-work.ts && bun run script/m50/verify-a2-test-sources.ts && bun run script/m50/verify-a3-guidance-truth.ts && bun run script/m50/verify-a4-adoption.ts && bun run script/m50/verify-a5-verify-chain.ts && bun run script/m50/verify-closure.ts && bun run script/m57/verify-governance.ts && bun run script/m57/verify-gate-selftest.ts && bun run script/m57/verify-t1-classifier.ts && bun run script/m57/verify-t2-consumers.ts && bun run script/m57/verify-t3-scope-all.ts && bun run script/m57/verify-t4-corpus-identity.ts && bun run script/m57/verify-t5-predicate-unity.ts && bun run script/m57/verify-closure.ts && bun run script/m44/verify-hub-list.ts && npx tsx script/m41/verify-design.ts && npx tsx script/m41/verify-site-truth.ts --label T3 && npx tsx script/m45/verify-site-embed.ts && npx tsx script/m45/verify-governance.ts && npx tsx script/m45/verify-capture-harness.ts && npx tsx script/m45/verify-d1.ts && npx tsx script/m56/verify-governance.ts && npx tsx script/m56/verify-tools-truth.ts && npx tsx script/m56/verify-editors-page.ts && npx tsx script/m55/verify-governance.ts && npx tsx script/m55/verify-tiers.ts && npx tsx script/m55/verify-live-surface.ts && npx tsx script/m56/verify-languages-surface.ts && npx tsx script/m56/verify-docs-completeness.ts && npx tsx script/m56/verify-support-page.ts && npx tsx script/m56/verify-ia.ts && npx tsx script/m56/verify-design.ts && npx tsx script/m56/verify-closure.ts && npx tsx script/m41/verify-closure.ts && npx tsx script/m61/verify-seal-audit.ts && npx tsx script/m61/verify-sealing.ts && npx tsx script/m61/verify-lock.ts && npx tsx script/m61/verify-reproducibility.ts && npx tsx script/m61/verify-lint.ts && npx tsx script/m61/verify-claims.ts && npx tsx script/m61/verify-extinction.ts && npx tsx script/m61/verify-governance.ts && npx tsx script/m61/verify-closure.ts && npx tsx script/m62/verify-address.ts && npx tsx script/m62/verify-consumers.ts && npx tsx script/m62/verify-arrival.ts && npx tsx script/m62/verify-docs.ts && npx tsx script/m62/verify-governance.ts && npx tsx script/m62/verify-closure.ts && npx tsx script/m24/verify-callsite-agreement.ts && npx tsx script/m24/verify-position-arithmetic.ts && npx tsx script/m24/verify-hover-docs.ts && npx tsx script/m24/verify-usage-scope.ts && npx tsx script/m26/verify-external-arm-plan.ts && npx tsx script/m26/verify-hub-group-order.ts && npx tsx script/m28/measure-surface-divergence.ts && npx tsx script/m28/verify-surface-parity.ts && npx tsx script/m28/verify-index-portability.ts && npx tsx script/m28/verify-project-registry-honesty.ts && npx tsx script/m28/verify-schema-repair.ts && bun run script/m28/verify-mcp-stdout.ts && npx tsx script/m55/verify-evidence-tree-clean.ts && npx tsx script/m55/verify-hover-coverage.ts && npx tsx script/m55/verify-hover-coverage-redteam.ts && npx tsx script/m55/verify-type-inference.ts && npx tsx script/m55/measure-address-agreement.ts && npx tsx script/m61/verify-orphan-gates.ts && npx tsx script/m61/verify-ledger-truth.ts',
|
|
59
|
+
"audit:grammar": "bun run script/m14/audit-analyzer-grammar.ts --prove-java",
|
|
60
|
+
"audit:grammar-consistency": "bun run script/m60/verify-grammar-consistency.ts",
|
|
61
|
+
"audit:grammar-consistency:selftest": "bun run script/m60/selftest-grammar-consistency.ts",
|
|
62
|
+
"audit:grammar-pins": "bun run script/m14/verify-grammar-pins.ts",
|
|
63
|
+
"grammar:survey:build": "bun run script/m60/build-grammar-survey.ts",
|
|
64
|
+
"grammar:survey:refresh": "bun run script/m60/build-grammar-survey.ts --refresh",
|
|
65
|
+
"grammar:stragglers:measure": "bun run script/m60/measure-runtime-stragglers.ts",
|
|
66
|
+
"audit:grammar-preflight": "bun run script/m60/verify-runtime-migration-preflight.ts",
|
|
67
|
+
"audit:grammar-rebuilds": "bun run script/m60/verify-local-rebuilds.ts",
|
|
68
|
+
"audit:grammar-scripts": "bun run script/m60/verify-script-typecheck.ts",
|
|
69
|
+
"audit:attr-line-base": "bun run script/m14/verify-attr-line-base-920.ts",
|
|
70
|
+
"audit:include-names": "bun run script/m14/verify-include-names-924.ts",
|
|
71
|
+
"audit:name-surface": "bun run script/m14/verify-name-surface-924.ts",
|
|
72
|
+
"audit:evidence": "bun run script/m14/evidence-harness.ts validate",
|
|
73
|
+
"audit:fixtures": "bun run script/m14/run-fixtures.ts",
|
|
74
|
+
"audit:fixture-provenance": "bun run script/m14/verify-fixture-provenance.ts",
|
|
75
|
+
"audit:mutations": "bun run script/m14/mutate-analyzer.ts",
|
|
76
|
+
"audit:script-typecheck": "bun run script/m14/verify-script-typecheck-baseline.ts",
|
|
77
|
+
"audit:seal-audit": "npx tsx script/m61/verify-seal-audit.ts",
|
|
78
|
+
"audit:imports": "bun run script/m14/verify-js-imports-corpus.ts",
|
|
79
|
+
"audit:differential": "bun run script/m14/verify-differential-evidence.ts && bun run script/m14/differential.ts && bun run audit:freshness",
|
|
80
|
+
"audit:freshness": "bun run script/m12/verify-differential-freshness.ts --allow-unpinned",
|
|
81
|
+
"audit:honesty": "bun run script/m14/verify-honesty.ts",
|
|
82
|
+
"audit:pipeline": "npx tsx script/m14/verify-pipeline-e2e.ts",
|
|
83
|
+
"audit:consistency": "npx tsx script/m14/verify-cross-language-consistency.ts",
|
|
84
|
+
"audit:cluster": "npx tsx script/m14/verify-web-cluster-e2e.ts",
|
|
85
|
+
"audit:cluster-systems": "npx tsx script/m14/verify-systems-cluster-e2e.ts",
|
|
86
|
+
"audit:completeness": "bun run script/m14/completeness-inventory.ts",
|
|
87
|
+
"audit:analyzer-docs": "npx tsx script/m14/verify-analyzer-docs.ts",
|
|
88
|
+
"audit:fleet": "bun run script/m14/verify-fleet.ts",
|
|
89
|
+
"verify:m27": "npx tsx script/m27/verify-governance.ts && npx tsx script/m27/verify-nvim.ts && npx tsx script/m27/verify-zed.ts && npx tsx script/m27/verify-helix.ts && npx tsx script/m27/verify-lsp4ij.ts && npx tsx script/m27/verify-matrix.ts && npx tsx script/m27/verify-closure.ts",
|
|
90
|
+
"verify:m28": "npx tsx script/m28/verify-governance.ts && npx tsx script/m28/verify-annotation-store.ts && npx tsx script/m28/verify-annotation-ui.ts && npx tsx script/m28/verify-union.ts && npx tsx script/m28/verify-mcp-surface.ts && npx tsx script/m28/verify-mcp-tools.ts && bun run script/m28/verify-mcp-stdout.ts && npx tsx script/m28/verify-closure.ts",
|
|
91
|
+
"verify:m55": "npx tsx script/m55/verify-governance.ts && npx tsx script/m55/verify-identity.ts && npx tsx script/m55/verify-signatures.ts && npx tsx script/m55/verify-relations.ts && npx tsx script/m55/verify-call-hierarchy.ts && npx tsx script/m55/verify-panel-placement.ts && npx tsx script/m55/verify-action-args.ts && npx tsx script/m55/verify-status-panel.ts && npx tsx script/m55/verify-tiers.ts && npx tsx script/m55/verify-live-surface.ts && npx tsx script/m55/verify-closure.ts",
|
|
92
|
+
"verify:m25-surface": "npx tsx script/m25/verify-auto-index.ts",
|
|
93
|
+
"verify:m26-surface": "npx tsx script/m26/verify-cross-language-hover.ts && npx tsx script/m26/verify-impact-mode.ts",
|
|
94
|
+
"verify:m42-surface": "npx tsx script/m42/verify-highlight.ts && npx tsx script/m42/verify-hover-actions.ts",
|
|
95
|
+
"verify:m44-surface": "npx tsx script/m44/verify-impact-resolution.ts && npx tsx script/m44/verify-usages-groups.ts",
|
|
96
|
+
"verify:lane-closures": "npx tsx script/m25/verify-closure.ts && npx tsx script/m26/verify-closure.ts && npx tsx script/m29/verify-closure.ts && npx tsx script/m42/verify-closure.ts && npx tsx script/m45/verify-closure.ts && npx tsx script/m53/verify-closure.ts",
|
|
97
|
+
"verify:gate-wiring": "npx tsx script/m61/verify-orphan-gates.ts",
|
|
98
|
+
"verify:regex-policy": "npx tsx script/tools/verify-regex-policy.ts",
|
|
99
|
+
"verify:m40": "bun run script/m40/verify-governance.ts && bun run script/m40/verify-gate-selftest.ts && bun run script/m40/verify-a1-post-entry.ts && bun run script/m40/verify-a2-bounded-post.ts && bun run script/m40/verify-a3-write-parity.ts && bun run script/m40/lifecycle-corpus.ts --gate && bun run script/m40/verify-a5-flag-semantics.ts && bun run script/m40/verify-a6-health-refresh.ts && bun run script/m40/verify-import-resolution.ts && bun run script/m40/verify-a7-cli-parity.ts && bun run script/m40/verify-a8-config.ts && bun run script/m40/verify-a9-purge.ts && bun run script/m40/verify-closure.ts",
|
|
100
|
+
"verify:m44-closure": "npx tsx script/m44/verify-closure.ts",
|
|
101
|
+
"verify:m51": "npx tsx script/m51/verify-a1-owner-integrity.ts && npx tsx script/m51/verify-a2-health-split.ts && npx tsx script/m51/verify-closure.ts",
|
|
102
|
+
"verify:m52": "npx tsx script/m52/verify-v1-parity-latency.ts && npx tsx script/m52/verify-closure.ts",
|
|
103
|
+
"verify:m54": "bun run script/m54/verify-p1-fk.ts && npx tsx script/m54/verify-p2-stdio.ts && bun run script/m54/verify-737-738.ts && npx tsx script/m54/verify-737-738.ts && npx tsx script/m54/verify-closure.ts",
|
|
104
|
+
"verify:m50": "npx tsx script/m50/verify-governance.ts && npx tsx script/m50/verify-gate-selftest.ts && npx tsx script/m50/verify-planner-stats.ts && npx tsx script/m50/verify-a2-param-aliases.ts && npx tsx script/m50/verify-vector-blobs.ts && npx tsx script/m50/verify-a2-bounded-work.ts && npx tsx script/m50/verify-a2-test-sources.ts && npx tsx script/m50/verify-a3-guidance-truth.ts && npx tsx script/m50/verify-a4-adoption.ts && npx tsx script/m50/verify-a5-verify-chain.ts && npx tsx script/m50/verify-closure.ts",
|
|
105
|
+
"audit:hygiene": "bun run script/m14/verify-analyzer-hygiene.ts",
|
|
106
|
+
"audit:toml-census": "bun run script/m14/verify-toml-census.ts",
|
|
107
|
+
"audit:svelte-census": "bun run script/m14/verify-svelte-census.ts",
|
|
108
|
+
"audit:js-census": "bun run script/m14/verify-js-census.ts",
|
|
109
|
+
"audit:perl-wave": "bun run script/m14/verify-perl-wave.ts",
|
|
110
|
+
"audit:carrier-census": "bun run script/m14/verify-carrier-census.ts",
|
|
111
|
+
"audit:census": "bun run script/m14/verify-corpus-census.ts",
|
|
112
|
+
"audit:probes": "bun run script/m14/verify-probe-battery.ts",
|
|
113
|
+
"verify:clj-core-selftest": "bun run script/m49/verify-clj-core-list.ts --selftest",
|
|
114
|
+
"audit:parse-success": "bun run script/m14/verify-parse-success.ts",
|
|
115
|
+
"audit:parse-success-selftest": "bun run script/m14/verify-parse-success.ts --selftest",
|
|
116
|
+
"audit:parse-integrity": "bun run script/m14/verify-parse-integrity.ts",
|
|
117
|
+
"audit:parse-integrity-selftest": "bun run script/m14/verify-parse-integrity.ts --selftest",
|
|
118
|
+
"audit:fixture-coverage": "bun run script/m14/verify-fixture-coverage.ts",
|
|
119
|
+
"audit:fixture-coverage-selftest": "bun run script/m14/verify-fixture-coverage.ts --selftest",
|
|
120
|
+
"audit:hygiene-selftest": "bun run script/m14/verify-analyzer-hygiene.ts --selftest",
|
|
121
|
+
"audit:ruling-tables": "bun run script/m14/verify-ruling-tables-registered.ts",
|
|
122
|
+
"audit:population": "npx tsx script/m14/population-gate.ts",
|
|
123
|
+
"audit:population-selftest": "npx tsx script/m14/population-gate.ts --selftest",
|
|
124
|
+
"audit:doc-truth-emissions": "bun run script/m14/verify-doc-truth-emissions.ts",
|
|
125
|
+
"audit:doc-truth-emissions-selftest": "bun run script/m14/verify-doc-truth-emissions.ts --selftest",
|
|
126
|
+
"audit:evidence-harness": "bun run script/m14/emit-f2-evidence.ts",
|
|
127
|
+
"verify:m57": "npx tsx script/m57/verify-governance.ts && npx tsx script/m57/verify-gate-selftest.ts && bun run script/m57/verify-t1-classifier.ts && bun run script/m57/verify-t2-consumers.ts && bun run script/m57/verify-t3-scope-all.ts && bun run script/m57/verify-t4-corpus-identity.ts && bun run script/m57/verify-t5-predicate-unity.ts && bun run script/m57/verify-closure.ts",
|
|
128
|
+
"verify:m60-sql-resync": "bun run script/m60/verify-sql-resync.ts",
|
|
129
|
+
"verify:m60-sql-perf": "bun run script/m60/sql-perf-gate.ts",
|
|
130
|
+
"verify:m63": "npx tsx script/m63/verify-cl1-cross-language.ts",
|
|
131
|
+
"verify:m63-wiring": "npx tsx script/m63/verify-cl1-wiring.ts",
|
|
132
|
+
"verify:patterns": "bun run script/verify-patterns.ts && bun run script/m13/verify-patterns-orphans.ts && bun run script/m13/verify-patterns-rules.ts && bun run script/m13/verify-patterns-contract.ts && bun run script/m20/verify-patterns-parameter-scan.ts && bun run script/m20/verify-patterns-pagination-history.ts && bun run script/m57/verify-t3-scope-all.ts && bun run script/m64/verify-patterns-evidence-gate.ts && bun run script/m64/verify-gate-selftest.ts && bun run script/m65/verify-rules-budget-and-gates.ts && bun run script/m65/verify-rules-gate-selftest.ts && bun run script/m69/verify-patterns-page-class-representation.ts",
|
|
133
|
+
"verify:security": "npx tsx script/m15/verify-security-regressions.ts && npx tsx script/m15/verify-security-precision.ts && npx tsx script/m15/verify-security-deep.ts && npx tsx script/verify-security.ts && npx tsx script/m20/verify-security-flow-boundary.ts && npx tsx script/m20/verify-security-adversarial.ts && npx tsx script/m20/verify-security-history.ts",
|
|
134
|
+
"parse:check": "bun run script/m14/parse-check.ts",
|
|
135
|
+
"verify:health-deep": "bun run script/m64/verify-sample-coverage.ts && bun run script/m64/verify-refresh-integrity.ts && bun run script/m64/verify-coverage-and-partial.ts && bun run script/m64/verify-freshness-reasons.ts && bun run script/m64/verify-actionability.ts && bun run script/m64/verify-unindexed.ts && bun run script/m64/verify-paths.ts && bun run script/m64/verify-embed-scan.ts && bun run script/m64/verify-wire.ts && bun run script/m64/verify-health-deep.ts && bun run script/m64/verify-evidence.ts",
|
|
136
|
+
"verify:tools": "bun run script/verify-tools.ts",
|
|
137
|
+
"verify:language-matrix": "bun run script/verify-language-tool-matrix.ts",
|
|
138
|
+
"verify:doc-surface": "bun run script/verify-doc-tool-surface.ts"
|
|
139
|
+
},
|
|
140
|
+
dependencies: {
|
|
141
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
142
|
+
"better-sqlite3": "^11.0.0",
|
|
143
|
+
commander: "^12.0.0",
|
|
144
|
+
"drizzle-orm": "^0.45.2",
|
|
145
|
+
ignore: "^5.3.0",
|
|
146
|
+
"tree-sitter-typescript": "^0.23.2",
|
|
147
|
+
"web-tree-sitter": "0.25.9"
|
|
148
|
+
},
|
|
149
|
+
devDependencies: {
|
|
150
|
+
"@types/better-sqlite3": "^7.6.0",
|
|
151
|
+
"@types/bun": "^1.3.14",
|
|
152
|
+
"@types/mime-types": "^3.0.1",
|
|
153
|
+
"@types/node": "^22.0.0",
|
|
154
|
+
glob: "^13.0.6",
|
|
155
|
+
"smol-toml": "^1.8.0",
|
|
156
|
+
tsup: "^8.5.1",
|
|
157
|
+
tsx: "^4.23.13",
|
|
158
|
+
typescript: "^5.5.0"
|
|
159
|
+
},
|
|
160
|
+
keywords: [
|
|
161
|
+
"mcp",
|
|
162
|
+
"mcp-server",
|
|
163
|
+
"code-intelligence",
|
|
164
|
+
"code-search",
|
|
165
|
+
"static-analysis",
|
|
166
|
+
"ast",
|
|
167
|
+
"tree-sitter",
|
|
168
|
+
"semantic-search",
|
|
169
|
+
"code-graph",
|
|
170
|
+
"lsp",
|
|
171
|
+
"cross-language",
|
|
172
|
+
"developer-tools",
|
|
173
|
+
"local-first",
|
|
174
|
+
"backbencher"
|
|
175
|
+
],
|
|
176
|
+
license: "MIT",
|
|
177
|
+
publishConfig: {
|
|
178
|
+
access: "public"
|
|
179
|
+
},
|
|
180
|
+
imports: {
|
|
181
|
+
"#db": {
|
|
182
|
+
bun: "./src/storage/db.bun.ts",
|
|
183
|
+
node: "./src/storage/db.node.ts",
|
|
184
|
+
default: "./src/storage/db.node.ts"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
// src/version.ts
|
|
190
|
+
var BACKBENCHER_BRAIN_VERSION = package_default.version;
|
|
191
|
+
var PKG_NAME = package_default.name;
|
|
192
|
+
|
|
193
|
+
export {
|
|
194
|
+
BACKBENCHER_BRAIN_VERSION,
|
|
195
|
+
PKG_NAME
|
|
196
|
+
};
|