@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.
Files changed (319) hide show
  1. package/CHANGELOG.md +298 -0
  2. package/EMBEDDINGS.md +355 -0
  3. package/LICENSE +21 -0
  4. package/README.md +415 -2
  5. package/bin/bb +13 -0
  6. package/dist/analysis-exclusions-7ZJDXOVZ.js +35 -0
  7. package/dist/brain-index-health-Q5APTJQL.js +17 -0
  8. package/dist/brain-relationship-enrichment-MYR2AM4F.js +558 -0
  9. package/dist/brain.sql-EIM4WS4D.js +29 -0
  10. package/dist/chunk-22V37YTK.js +1758 -0
  11. package/dist/chunk-2BSKD7O3.js +40 -0
  12. package/dist/chunk-2DE27DVC.js +1314 -0
  13. package/dist/chunk-2RRBMNBQ.js +322 -0
  14. package/dist/chunk-2WXYNLBA.js +29 -0
  15. package/dist/chunk-3CTFIJJB.js +17 -0
  16. package/dist/chunk-3ZTOHHSW.js +2104 -0
  17. package/dist/chunk-4H22TLOT.js +543 -0
  18. package/dist/chunk-5BVAH26D.js +340 -0
  19. package/dist/chunk-62DHLYW6.js +3427 -0
  20. package/dist/chunk-7AN7U5IZ.js +371 -0
  21. package/dist/chunk-7DRPNVIN.js +782 -0
  22. package/dist/chunk-7MBYT777.js +174 -0
  23. package/dist/chunk-AHDWGM7Q.js +236 -0
  24. package/dist/chunk-B5GEAAYF.js +818 -0
  25. package/dist/chunk-BEIZZ73B.js +1479 -0
  26. package/dist/chunk-BQ3OVQ3P.js +125 -0
  27. package/dist/chunk-D2Q4Y47A.js +53 -0
  28. package/dist/chunk-DIYAGQJL.js +34 -0
  29. package/dist/chunk-DWKXZ6IF.js +336 -0
  30. package/dist/chunk-DYM4FQEE.js +90 -0
  31. package/dist/chunk-ENW4BTBA.js +930 -0
  32. package/dist/chunk-EWMWK7WN.js +75 -0
  33. package/dist/chunk-EY5ZZUUA.js +626 -0
  34. package/dist/chunk-GBI7V7KY.js +69 -0
  35. package/dist/chunk-GEFFO6O2.js +152 -0
  36. package/dist/chunk-HJEWO5EV.js +247 -0
  37. package/dist/chunk-HQSPJDHI.js +613 -0
  38. package/dist/chunk-KAET47ZL.js +125 -0
  39. package/dist/chunk-KCDECRJY.js +440 -0
  40. package/dist/chunk-L5TDYKYK.js +76 -0
  41. package/dist/chunk-MLKGABMK.js +9 -0
  42. package/dist/chunk-NO3U3FJQ.js +201 -0
  43. package/dist/chunk-OWISBAOF.js +61 -0
  44. package/dist/chunk-QKTRECYS.js +1119 -0
  45. package/dist/chunk-QLK6ED4Q.js +235 -0
  46. package/dist/chunk-R2GW4F6R.js +19 -0
  47. package/dist/chunk-RCMTFSEF.js +87 -0
  48. package/dist/chunk-RM3PY6TG.js +376 -0
  49. package/dist/chunk-ROMM6KMC.js +433 -0
  50. package/dist/chunk-SGGCSHAX.js +12050 -0
  51. package/dist/chunk-SK6YVHFZ.js +211 -0
  52. package/dist/chunk-SM7RFQRO.js +214 -0
  53. package/dist/chunk-UGR4QIGS.js +67 -0
  54. package/dist/chunk-UQNQZXHY.js +711 -0
  55. package/dist/chunk-UUNHHX4M.js +13 -0
  56. package/dist/chunk-VL52PL2T.js +71 -0
  57. package/dist/chunk-WIG36E67.js +196 -0
  58. package/dist/chunk-XHK3WWGB.js +7436 -0
  59. package/dist/chunk-XTQM2IP3.js +2863 -0
  60. package/dist/chunk-ZE2LG76D.js +1296 -0
  61. package/dist/chunk-ZETTGPAW.js +6950 -0
  62. package/dist/cli/index.js +37 -0
  63. package/dist/config-HZAAYDP3.js +10 -0
  64. package/dist/content-search-7XIP555Q.js +593 -0
  65. package/dist/database-76RP44JG.js +9 -0
  66. package/dist/doctor-ANGETYMN.js +395 -0
  67. package/dist/edit-engine-CG72LDZD.js +51 -0
  68. package/dist/engine-BKEOGN7N.js +11 -0
  69. package/dist/engine-VIW6NSKO.js +18 -0
  70. package/dist/fingerprint-OBLIMZLP.js +33 -0
  71. package/dist/framework-intelligence-3LORTPOX.js +860 -0
  72. package/dist/freshness-3K6VU5OT.js +174 -0
  73. package/dist/graph-engine-HBSQNPTB.js +21 -0
  74. package/dist/graph_request-Q6NKB6N2.js +350 -0
  75. package/dist/impact_request-LYP672WE.js +68 -0
  76. package/dist/index-space-IUUN5WYV.js +15 -0
  77. package/dist/index-status-7OVGYSGW.js +34 -0
  78. package/dist/index.js +159 -0
  79. package/dist/instance-FO6QZRLH.js +19 -0
  80. package/dist/language-detection-DFCAU5DZ.js +11 -0
  81. package/dist/lsp/server.js +4301 -0
  82. package/dist/mcp/server.js +132 -0
  83. package/dist/onboard-DIQZV2NW.js +161 -0
  84. package/dist/override-companion-pass-XR7MHTP7.js +117 -0
  85. package/dist/parallel-indexer-FK2XKZXY.js +88 -0
  86. package/dist/pool-worker.js +1153 -0
  87. package/dist/project-health-6XPENVAA.js +94 -0
  88. package/dist/project-index-5SDPHITE.js +57 -0
  89. package/dist/project-registry-ZJ3DVUGO.js +355 -0
  90. package/dist/real-bash-analyzer-EJAU5LW5.js +2201 -0
  91. package/dist/real-c-analyzer-HBD3FNNH.js +5942 -0
  92. package/dist/real-clean-analyzer-4EEZLPV5.js +3470 -0
  93. package/dist/real-clojure-analyzer-Q55EBOO2.js +2818 -0
  94. package/dist/real-cpp-analyzer-IVVOD25R.js +4101 -0
  95. package/dist/real-csharp-analyzer-ZBNLNJZJ.js +3298 -0
  96. package/dist/real-css-analyzer-6XRQLUN7.js +15 -0
  97. package/dist/real-dart-analyzer-OLR72EFW.js +3944 -0
  98. package/dist/real-elixir-analyzer-MQWGAH2I.js +2192 -0
  99. package/dist/real-erlang-analyzer-7BVPQEHO.js +1731 -0
  100. package/dist/real-fsharp-analyzer-C2UPFNOA.js +2390 -0
  101. package/dist/real-go-analyzer-UKGI43YS.js +4126 -0
  102. package/dist/real-graphql-analyzer-VE2EEFII.js +1442 -0
  103. package/dist/real-groovy-analyzer-W26VACFW.js +2285 -0
  104. package/dist/real-haskell-analyzer-5CVVAJRX.js +2533 -0
  105. package/dist/real-hcl-analyzer-5ZT4U43N.js +725 -0
  106. package/dist/real-html-analyzer-JWNX3C6I.js +1759 -0
  107. package/dist/real-java-analyzer-GU42VBGQ.js +4677 -0
  108. package/dist/real-javascript-analyzer-QA4QOJ6W.js +14 -0
  109. package/dist/real-json-analyzer-MPA6PRXL.js +1640 -0
  110. package/dist/real-julia-analyzer-22CWYQMN.js +2085 -0
  111. package/dist/real-kotlin-analyzer-QDZJLXXU.js +3956 -0
  112. package/dist/real-lua-analyzer-G7NHLYKS.js +1957 -0
  113. package/dist/real-makefile-analyzer-OCY3GT5N.js +920 -0
  114. package/dist/real-markdown-analyzer-TEJK2JXJ.js +1215 -0
  115. package/dist/real-matlab-analyzer-Q5SWLN7Z.js +480 -0
  116. package/dist/real-nim-analyzer-YLXSK563.js +3603 -0
  117. package/dist/real-objective-c-analyzer-D23ACC2R.js +1518 -0
  118. package/dist/real-perl-analyzer-WWTRHYDT.js +1865 -0
  119. package/dist/real-php-analyzer-JNKJHTCL.js +9368 -0
  120. package/dist/real-powershell-analyzer-XRSNQERV.js +2915 -0
  121. package/dist/real-protobuf-analyzer-3OKUCZ7T.js +867 -0
  122. package/dist/real-python-analyzer-VXAFWI72.js +4880 -0
  123. package/dist/real-r-analyzer-ZGAIDVI4.js +2596 -0
  124. package/dist/real-ruby-analyzer-X2KTLVBH.js +2429 -0
  125. package/dist/real-rust-analyzer-OFFHPL2A.js +3359 -0
  126. package/dist/real-scala-analyzer-TSTW27J6.js +3293 -0
  127. package/dist/real-scss-analyzer-AVWYPSOQ.js +1515 -0
  128. package/dist/real-solidity-analyzer-UCI2KWUB.js +2608 -0
  129. package/dist/real-sql-analyzer-F77ZMQXR.js +3840 -0
  130. package/dist/real-svelte-analyzer-SF7NRUO5.js +2532 -0
  131. package/dist/real-swift-analyzer-MN5QT3QN.js +2311 -0
  132. package/dist/real-toml-analyzer-66L7BDCQ.js +929 -0
  133. package/dist/real-typescript-analyzer-6KEMVDWQ.js +14 -0
  134. package/dist/real-vb-analyzer-VICVPOP7.js +3145 -0
  135. package/dist/real-vba-analyzer-HXLTTHKM.js +466 -0
  136. package/dist/real-vue-analyzer-QXR56CFV.js +2680 -0
  137. package/dist/real-xml-analyzer-YL465ZJW.js +2405 -0
  138. package/dist/real-yaml-analyzer-SUBCBNSI.js +3528 -0
  139. package/dist/real-zig-analyzer-HIQLZMGY.js +2430 -0
  140. package/dist/regex-search-NJKHMZNO.js +239 -0
  141. package/dist/rules-ACHPB7QU.js +152 -0
  142. package/dist/scoped-path-MJYWJZQX.js +11 -0
  143. package/dist/setup-show-NT5ZHYNE.js +15 -0
  144. package/dist/setup-wizard-G5YYR5T6.js +24 -0
  145. package/dist/symbol-search-GZJIM2J2.js +16 -0
  146. package/dist/taint-KXUHHPIE.js +202 -0
  147. package/dist/taint-analyzer-N7YLZU3N.js +163 -0
  148. package/dist/tool-handlers-OJDC35DI.js +72 -0
  149. package/dist/tool-registry-BPEJNSZG.js +17 -0
  150. package/dist/tool-validation-Q57YMMBX.js +32 -0
  151. package/dist/type-inference-QMT2RMLV.js +13 -0
  152. package/dist/vector-binary-LMY4QGAN.js +19 -0
  153. package/dist/version-ABP2TUL2.js +9 -0
  154. package/dist/wasm-NMWO3WXY.js +16 -0
  155. package/docs/EMBEDDINGS.md +132 -0
  156. package/docs/README.md +178 -0
  157. package/docs/data/m10-baseline.json +602 -0
  158. package/docs/data/m10-benchmark-baseline.json +57 -0
  159. package/docs/data/m10-benchmark-last-run.json +127 -0
  160. package/docs/data/m10-final-audit.json +215 -0
  161. package/docs/data/m12-final-audit.json +138 -0
  162. package/docs/data/m12-surface-matrix.json +50 -0
  163. package/docs/data/public-tools.json +1902 -0
  164. package/docs/indexing/DEAD-ASSETS.md +88 -0
  165. package/docs/indexing/INDEXER-REVIEW.md +634 -0
  166. package/docs/indexing/PERFORMANCE-FINDINGS.md +106 -0
  167. package/docs/indexing/README.md +427 -0
  168. package/docs/indexing/discovery-matrix.md +41 -0
  169. package/docs/indexing/embeddings.md +325 -0
  170. package/docs/indexing/environment-variables.md +77 -0
  171. package/docs/indexing/performance.md +323 -0
  172. package/docs/indexing/resume.md +345 -0
  173. package/docs/indexing/troubleshooting.md +391 -0
  174. package/docs/man/bb.1 +190 -0
  175. package/docs/tools/bb_analyze.md +147 -0
  176. package/docs/tools/bb_annotate.md +110 -0
  177. package/docs/tools/bb_annotations.md +106 -0
  178. package/docs/tools/bb_ask.md +101 -0
  179. package/docs/tools/bb_cross_language.md +103 -0
  180. package/docs/tools/bb_doc.md +169 -0
  181. package/docs/tools/bb_edit.md +185 -0
  182. package/docs/tools/bb_graph.md +169 -0
  183. package/docs/tools/bb_health.md +156 -0
  184. package/docs/tools/bb_impact.md +117 -0
  185. package/docs/tools/bb_index.md +108 -0
  186. package/docs/tools/bb_migrate.md +135 -0
  187. package/docs/tools/bb_patterns.md +140 -0
  188. package/docs/tools/bb_search.md +150 -0
  189. package/docs/tools/bb_security.md +100 -0
  190. package/docs/tools/bb_visualize.md +184 -0
  191. package/grammars/README.md +57 -0
  192. package/grammars/THIRD-PARTY-NOTICES.md +50 -0
  193. package/grammars/tree-sitter-c/LICENSE +21 -0
  194. package/grammars/tree-sitter-clojure/LICENSE.md +21 -0
  195. package/grammars/tree-sitter-cpp/LICENSE +21 -0
  196. package/grammars/tree-sitter-csharp/LICENSE +21 -0
  197. package/grammars/tree-sitter-css/LICENSE +21 -0
  198. package/grammars/tree-sitter-css/README.md +21 -0
  199. package/grammars/tree-sitter-dart/LICENSE +20 -0
  200. package/grammars/tree-sitter-dart-upstream/LICENSE +20 -0
  201. package/grammars/tree-sitter-dart-upstream/README.md +18 -0
  202. package/grammars/tree-sitter-elixir/LICENSE +176 -0
  203. package/grammars/tree-sitter-elixir/README.md +11 -0
  204. package/grammars/tree-sitter-fsharp/LICENSE +21 -0
  205. package/grammars/tree-sitter-fsharp/README.md +45 -0
  206. package/grammars/tree-sitter-graphql/LICENSE +21 -0
  207. package/grammars/tree-sitter-graphql/README.md +106 -0
  208. package/grammars/tree-sitter-groovy/LICENSE +21 -0
  209. package/grammars/tree-sitter-groovy/README.md +4 -0
  210. package/grammars/tree-sitter-haskell/LICENSE +21 -0
  211. package/grammars/tree-sitter-haskell/README.md +394 -0
  212. package/grammars/tree-sitter-hcl/CHANGELOG.md +102 -0
  213. package/grammars/tree-sitter-hcl/LICENSE +201 -0
  214. package/grammars/tree-sitter-hcl/README.md +39 -0
  215. package/grammars/tree-sitter-html/LICENSE +21 -0
  216. package/grammars/tree-sitter-html/README.md +21 -0
  217. package/grammars/tree-sitter-julia/LICENSE +21 -0
  218. package/grammars/tree-sitter-julia/README.md +24 -0
  219. package/grammars/tree-sitter-kotlin/LICENSE +9 -0
  220. package/grammars/tree-sitter-lua/LICENSE.md +21 -0
  221. package/grammars/tree-sitter-lua/README.md +29 -0
  222. package/grammars/tree-sitter-make/LICENSE +21 -0
  223. package/grammars/tree-sitter-matlab/LICENSE +19 -0
  224. package/grammars/tree-sitter-matlab/README.md +99 -0
  225. package/grammars/tree-sitter-nim/LICENSE +373 -0
  226. package/grammars/tree-sitter-nim/README.md +46 -0
  227. package/grammars/tree-sitter-objc/LICENSE +21 -0
  228. package/grammars/tree-sitter-objc/README.md +20 -0
  229. package/grammars/tree-sitter-perl/LICENSE +7 -0
  230. package/grammars/tree-sitter-perl/README.md +100 -0
  231. package/grammars/tree-sitter-powershell/LICENSE +21 -0
  232. package/grammars/tree-sitter-powershell/README.md +7 -0
  233. package/grammars/tree-sitter-proto/LICENSE +21 -0
  234. package/grammars/tree-sitter-proto/README.md +105 -0
  235. package/grammars/tree-sitter-r/LICENSE +9 -0
  236. package/grammars/tree-sitter-r/README.md +66 -0
  237. package/grammars/tree-sitter-ruby/LICENSE +22 -0
  238. package/grammars/tree-sitter-scss/LICENSE +21 -0
  239. package/grammars/tree-sitter-scss/README.md +17 -0
  240. package/grammars/tree-sitter-solidity/LICENSE +7 -0
  241. package/grammars/tree-sitter-sql/LICENSE +21 -0
  242. package/grammars/tree-sitter-typescript/LICENSE +21 -0
  243. package/grammars/tree-sitter-vba/LICENSE +21 -0
  244. package/grammars/tree-sitter-vba/README.md +738 -0
  245. package/grammars/tree-sitter-vbnet/LICENSE +21 -0
  246. package/grammars/tree-sitter-vbnet/README.md +322 -0
  247. package/grammars/tree-sitter-xml/LICENSE +19 -0
  248. package/grammars/tree-sitter-yaml/LICENSE +20 -0
  249. package/grammars/tree-sitter-yaml/README.md +21 -0
  250. package/package.json +184 -4
  251. package/wasm/dart.wasm +0 -0
  252. package/wasm/tree-sitter-bash.wasm +0 -0
  253. package/wasm/tree-sitter-c.wasm +0 -0
  254. package/wasm/tree-sitter-c_sharp.wasm +0 -0
  255. package/wasm/tree-sitter-clean.wasm +0 -0
  256. package/wasm/tree-sitter-clojure.wasm +0 -0
  257. package/wasm/tree-sitter-core_schema.wasm +0 -0
  258. package/wasm/tree-sitter-cpp.wasm +0 -0
  259. package/wasm/tree-sitter-css.wasm +0 -0
  260. package/wasm/tree-sitter-dart.wasm +0 -0
  261. package/wasm/tree-sitter-elisp.wasm +0 -0
  262. package/wasm/tree-sitter-elixir.wasm +0 -0
  263. package/wasm/tree-sitter-elm.wasm +0 -0
  264. package/wasm/tree-sitter-embedded_template.wasm +0 -0
  265. package/wasm/tree-sitter-erlang.wasm +0 -0
  266. package/wasm/tree-sitter-fsharp.wasm +0 -0
  267. package/wasm/tree-sitter-fsharp_signature.wasm +0 -0
  268. package/wasm/tree-sitter-go.wasm +0 -0
  269. package/wasm/tree-sitter-graphql.wasm +0 -0
  270. package/wasm/tree-sitter-groovy.wasm +0 -0
  271. package/wasm/tree-sitter-haskell.wasm +0 -0
  272. package/wasm/tree-sitter-hcl.wasm +0 -0
  273. package/wasm/tree-sitter-html.wasm +0 -0
  274. package/wasm/tree-sitter-java.wasm +0 -0
  275. package/wasm/tree-sitter-javascript.wasm +0 -0
  276. package/wasm/tree-sitter-json.wasm +0 -0
  277. package/wasm/tree-sitter-json_schema.wasm +0 -0
  278. package/wasm/tree-sitter-julia.wasm +0 -0
  279. package/wasm/tree-sitter-kotlin.wasm +0 -0
  280. package/wasm/tree-sitter-lua.wasm +0 -0
  281. package/wasm/tree-sitter-make.wasm +0 -0
  282. package/wasm/tree-sitter-markdown.wasm +0 -0
  283. package/wasm/tree-sitter-markdown_inline.wasm +0 -0
  284. package/wasm/tree-sitter-matlab.wasm +0 -0
  285. package/wasm/tree-sitter-nim.wasm +0 -0
  286. package/wasm/tree-sitter-objc.wasm +0 -0
  287. package/wasm/tree-sitter-ocaml.wasm +0 -0
  288. package/wasm/tree-sitter-perl.wasm +0 -0
  289. package/wasm/tree-sitter-php.wasm +0 -0
  290. package/wasm/tree-sitter-php_only.wasm +0 -0
  291. package/wasm/tree-sitter-powershell.wasm +0 -0
  292. package/wasm/tree-sitter-protobuf.wasm +0 -0
  293. package/wasm/tree-sitter-python.wasm +0 -0
  294. package/wasm/tree-sitter-ql.wasm +0 -0
  295. package/wasm/tree-sitter-r.wasm +0 -0
  296. package/wasm/tree-sitter-rescript.wasm +0 -0
  297. package/wasm/tree-sitter-ruby.wasm +0 -0
  298. package/wasm/tree-sitter-rust.wasm +0 -0
  299. package/wasm/tree-sitter-scala.wasm +0 -0
  300. package/wasm/tree-sitter-scss.wasm +0 -0
  301. package/wasm/tree-sitter-solidity.wasm +0 -0
  302. package/wasm/tree-sitter-sql.wasm +0 -0
  303. package/wasm/tree-sitter-svelte.wasm +0 -0
  304. package/wasm/tree-sitter-swift.wasm +0 -0
  305. package/wasm/tree-sitter-systemrdl.wasm +0 -0
  306. package/wasm/tree-sitter-terraform.wasm +0 -0
  307. package/wasm/tree-sitter-tlaplus.wasm +0 -0
  308. package/wasm/tree-sitter-toml.wasm +0 -0
  309. package/wasm/tree-sitter-tsx.wasm +0 -0
  310. package/wasm/tree-sitter-typescript.wasm +0 -0
  311. package/wasm/tree-sitter-vba.wasm +0 -0
  312. package/wasm/tree-sitter-vbnet.wasm +0 -0
  313. package/wasm/tree-sitter-vue.wasm +0 -0
  314. package/wasm/tree-sitter-xml.wasm +0 -0
  315. package/wasm/tree-sitter-yaml.wasm +0 -0
  316. package/wasm/tree-sitter-zig.wasm +0 -0
  317. package/wasm/tree-sitter.wasm +0 -0
  318. package/wasm/tsx.wasm +0 -0
  319. package/wasm/typescript.wasm +0 -0
@@ -0,0 +1,602 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "milestone": "M10",
4
+ "issue": 116,
5
+ "packageVersion": "0.1.0",
6
+ "runtimeMcp": {
7
+ "toolNames": [
8
+ "bb_search",
9
+ "bb_ask",
10
+ "bb_health",
11
+ "bb_patterns",
12
+ "bb_security",
13
+ "bb_visualize",
14
+ "bb_migrate",
15
+ "bb_analyze",
16
+ "bb_doc",
17
+ "bb_edit",
18
+ "bb_index",
19
+ "bb_graph",
20
+ "bb_impact",
21
+ "bb_cross_language",
22
+ "bb_annotate",
23
+ "bb_annotations"
24
+ ],
25
+ "descriptors": {
26
+ "bb_search": {
27
+ "mutability": "read",
28
+ "requiresIndex": true,
29
+ "modes": [
30
+ "symbols",
31
+ "content",
32
+ "symbol",
33
+ "file"
34
+ ],
35
+ "required": [],
36
+ "properties": [
37
+ "mode",
38
+ "query",
39
+ "symbolName",
40
+ "filePath",
41
+ "limit",
42
+ "language",
43
+ "symbolKind",
44
+ "includeContent",
45
+ "exact",
46
+ "caseSensitive",
47
+ "regex",
48
+ "offset",
49
+ "refresh"
50
+ ],
51
+ "defaults": {
52
+ "mode": "symbols",
53
+ "limit": 15,
54
+ "includeContent": false,
55
+ "exact": false,
56
+ "caseSensitive": false,
57
+ "regex": false,
58
+ "offset": 0
59
+ }
60
+ },
61
+ "bb_ask": {
62
+ "mutability": "read",
63
+ "requiresIndex": true,
64
+ "modes": [
65
+ "answer"
66
+ ],
67
+ "required": [
68
+ "query"
69
+ ],
70
+ "properties": [
71
+ "query",
72
+ "limit"
73
+ ],
74
+ "defaults": {
75
+ "limit": 5
76
+ }
77
+ },
78
+ "bb_health": {
79
+ "mutability": "read",
80
+ "requiresIndex": false,
81
+ "modes": [
82
+ "status",
83
+ "refresh"
84
+ ],
85
+ "required": [],
86
+ "properties": [
87
+ "verbose",
88
+ "history",
89
+ "limit",
90
+ "refresh",
91
+ "force",
92
+ "wait",
93
+ "freshness",
94
+ "sampleSize",
95
+ "integrity",
96
+ "includeAnalysisRuns",
97
+ "paths",
98
+ "checkUnindexed"
99
+ ],
100
+ "defaults": {
101
+ "verbose": false,
102
+ "history": false,
103
+ "limit": 20,
104
+ "refresh": false,
105
+ "force": false,
106
+ "wait": true,
107
+ "freshness": "sampled",
108
+ "sampleSize": 200,
109
+ "integrity": false,
110
+ "includeAnalysisRuns": false
111
+ }
112
+ },
113
+ "bb_patterns": {
114
+ "mutability": "read",
115
+ "requiresIndex": true,
116
+ "modes": [
117
+ "orphaned",
118
+ "all"
119
+ ],
120
+ "required": [],
121
+ "properties": [
122
+ "scope",
123
+ "limit",
124
+ "includeOrphaned",
125
+ "includeFramework",
126
+ "includeAntiPatterns",
127
+ "confidenceThreshold",
128
+ "history",
129
+ "recordRun"
130
+ ],
131
+ "defaults": {
132
+ "scope": "all",
133
+ "limit": 20,
134
+ "includeOrphaned": true,
135
+ "includeFramework": true,
136
+ "includeAntiPatterns": true,
137
+ "confidenceThreshold": 0,
138
+ "history": false,
139
+ "recordRun": false
140
+ }
141
+ },
142
+ "bb_security": {
143
+ "mutability": "read",
144
+ "requiresIndex": true,
145
+ "modes": [
146
+ "findings"
147
+ ],
148
+ "required": [],
149
+ "properties": [
150
+ "history",
151
+ "recordRun",
152
+ "limit"
153
+ ],
154
+ "defaults": {
155
+ "history": false,
156
+ "recordRun": false,
157
+ "limit": 20
158
+ }
159
+ },
160
+ "bb_visualize": {
161
+ "mutability": "read",
162
+ "requiresIndex": true,
163
+ "modes": [
164
+ "project",
165
+ "file",
166
+ "module",
167
+ "symbol",
168
+ "feature"
169
+ ],
170
+ "required": [],
171
+ "properties": [
172
+ "scope",
173
+ "target",
174
+ "maxNodes",
175
+ "maxLinks",
176
+ "offset",
177
+ "relationshipTypes",
178
+ "symbolKinds",
179
+ "languages",
180
+ "excludePatterns",
181
+ "includeTests",
182
+ "view",
183
+ "layout",
184
+ "format"
185
+ ],
186
+ "defaults": {
187
+ "scope": "project",
188
+ "maxNodes": 200,
189
+ "maxLinks": 5000,
190
+ "offset": 0,
191
+ "format": "text"
192
+ }
193
+ },
194
+ "bb_migrate": {
195
+ "mutability": "read",
196
+ "requiresIndex": true,
197
+ "modes": [
198
+ "plan"
199
+ ],
200
+ "required": [
201
+ "targetLanguage"
202
+ ],
203
+ "properties": [
204
+ "symbolName",
205
+ "symbolNames",
206
+ "paths",
207
+ "symbolIds",
208
+ "targetLanguage",
209
+ "format"
210
+ ],
211
+ "defaults": {
212
+ "format": "text"
213
+ }
214
+ },
215
+ "bb_analyze": {
216
+ "mutability": "read",
217
+ "requiresIndex": true,
218
+ "modes": [
219
+ "callers",
220
+ "callees",
221
+ "trace",
222
+ "dependencies",
223
+ "stats",
224
+ "complexity",
225
+ "impact",
226
+ "test_mapping",
227
+ "test_gaps",
228
+ "test_impact",
229
+ "test_quality"
230
+ ],
231
+ "required": [
232
+ "mode"
233
+ ],
234
+ "properties": [
235
+ "mode",
236
+ "target",
237
+ "filePath",
238
+ "limit"
239
+ ],
240
+ "defaults": {
241
+ "limit": "25 edges per direction (callers/callees/trace); 20 files (dependencies); 50 entries (test_mapping/test_gaps); 50 files (test_quality)",
242
+ "target": "required for callers, callees, trace, impact, test_impact; optional file path or directory prefix for complexity",
243
+ "filePath": "optional path prefix (or an exact file) for dependencies, test_mapping, test_gaps, test_quality"
244
+ }
245
+ },
246
+ "bb_doc": {
247
+ "mutability": "read",
248
+ "requiresIndex": true,
249
+ "modes": [
250
+ "symbol",
251
+ "file",
252
+ "module",
253
+ "feature",
254
+ "api",
255
+ "project",
256
+ "coverage"
257
+ ],
258
+ "required": [
259
+ "mode"
260
+ ],
261
+ "properties": [
262
+ "mode",
263
+ "target",
264
+ "format",
265
+ "audience",
266
+ "detail",
267
+ "includeExamples",
268
+ "includeDiagrams",
269
+ "includeTests",
270
+ "limit",
271
+ "maxTokens",
272
+ "refresh"
273
+ ],
274
+ "defaults": {
275
+ "format": "markdown",
276
+ "audience": "developer",
277
+ "detail": "standard",
278
+ "includeExamples": false,
279
+ "includeDiagrams": false,
280
+ "includeTests": false,
281
+ "limit": 20,
282
+ "maxTokens": 8000
283
+ }
284
+ },
285
+ "bb_edit": {
286
+ "mutability": "write",
287
+ "requiresIndex": true,
288
+ "modes": [
289
+ "write",
290
+ "update",
291
+ "insert",
292
+ "delete",
293
+ "refactor",
294
+ "batch"
295
+ ],
296
+ "required": [
297
+ "mode"
298
+ ],
299
+ "properties": [
300
+ "mode",
301
+ "dryRun",
302
+ "filePath",
303
+ "symbolName",
304
+ "lineStart",
305
+ "content",
306
+ "newContent",
307
+ "targetSymbolName",
308
+ "position",
309
+ "newName",
310
+ "force",
311
+ "format",
312
+ "overwrite",
313
+ "edits",
314
+ "files"
315
+ ],
316
+ "defaults": {
317
+ "dryRun": false,
318
+ "format": true,
319
+ "force": false
320
+ }
321
+ },
322
+ "bb_index": {
323
+ "mutability": "write",
324
+ "requiresIndex": false,
325
+ "modes": [
326
+ "auto",
327
+ "file",
328
+ "dir",
329
+ "post"
330
+ ],
331
+ "required": [
332
+ "path"
333
+ ],
334
+ "properties": [
335
+ "path",
336
+ "mode"
337
+ ],
338
+ "defaults": {
339
+ "mode": "auto"
340
+ }
341
+ },
342
+ "bb_graph": {
343
+ "mutability": "read",
344
+ "requiresIndex": true,
345
+ "modes": [
346
+ "graph"
347
+ ],
348
+ "required": [
349
+ "symbol"
350
+ ],
351
+ "properties": [
352
+ "symbol",
353
+ "maxDepth",
354
+ "direction",
355
+ "relationshipTypes",
356
+ "includeCrossLanguage",
357
+ "timeBudgetMs",
358
+ "maxEdges",
359
+ "edgeLimit"
360
+ ],
361
+ "defaults": {
362
+ "maxDepth": 5,
363
+ "direction": "both"
364
+ }
365
+ },
366
+ "bb_impact": {
367
+ "mutability": "read",
368
+ "requiresIndex": true,
369
+ "modes": [
370
+ "impact"
371
+ ],
372
+ "required": [
373
+ "symbol"
374
+ ],
375
+ "properties": [
376
+ "symbol",
377
+ "relationshipTypes",
378
+ "file",
379
+ "refresh"
380
+ ],
381
+ "defaults": {}
382
+ },
383
+ "bb_cross_language": {
384
+ "mutability": "read",
385
+ "requiresIndex": true,
386
+ "modes": [
387
+ "cross-language"
388
+ ],
389
+ "required": [
390
+ "symbol"
391
+ ],
392
+ "properties": [
393
+ "symbol",
394
+ "limit"
395
+ ],
396
+ "defaults": {
397
+ "limit": 200
398
+ }
399
+ },
400
+ "bb_annotate": {
401
+ "mutability": "write",
402
+ "requiresIndex": false,
403
+ "modes": [
404
+ "annotate"
405
+ ],
406
+ "required": [
407
+ "symbol",
408
+ "body"
409
+ ],
410
+ "properties": [
411
+ "symbol",
412
+ "body",
413
+ "path",
414
+ "toolIdentity"
415
+ ],
416
+ "defaults": {}
417
+ },
418
+ "bb_annotations": {
419
+ "mutability": "read",
420
+ "requiresIndex": false,
421
+ "modes": [
422
+ "annotate"
423
+ ],
424
+ "required": [],
425
+ "properties": [
426
+ "symbol",
427
+ "path",
428
+ "limit",
429
+ "includeNameLevel"
430
+ ],
431
+ "defaults": {
432
+ "limit": 50
433
+ }
434
+ }
435
+ },
436
+ "postBaselineRepairs": {
437
+ "bb_index": "added M22 (8b71297) — was missing from this frozen baseline until repaired under M35.E1",
438
+ "bb_visualize.modes": "scope-only since M13.44 (859c0b0) — baseline had stale pre-M13.44 modes until repaired under M35.E1",
439
+ "aliases": "bb_reindex alias removed under M35.E1 (zero references, zero-alias policy)",
440
+ "M50.A5 re-freeze (#768)": "re-froze toolNames/descriptors/commands from the live registry so verify-contract-diff + verify-m10-baseline compare against the real surface (M28 graph/impact/cross-language/annotate tools and the M43 bb_search `refresh` option were missing)",
441
+ "M71 audit re-freeze": "re-cut every descriptor's properties/defaults/modes from the live registry. Growth since the M50.A5 cut: bb_health paths+checkUnindexed (788647abc, M64), bb_visualize symbolKinds/excludePatterns/includeTests+view+layout (M48/M13.44/codemap+class+regions), bb_migrate paths+symbolIds (16d789d78), bb_doc refresh, bb_impact refresh+relationshipTypes, bb_graph relationshipTypes/edgeLimit/maxEdges/timeBudgetMs (7aec61416)/direction/includeCrossLanguage plus the `direction` default, bb_cross_language limit plus its default, bb_annotations includeNameLevel+path (fb2c4b715), bb_patterns' confidenceThreshold default 0.6 -> 0, and bb_edit's overwrite/edits/files plus the `batch` mode (M13.E13/M71.D9). The CLI `search` contract is a human decision and stays hand-maintained: `[query]` is optional now (--symbol-name/--file-path may stand in) and the action refuses a search that supplies neither, so its frozen `required` is empty and that refusal is asserted behaviorally in script/m40/verify-a7-cli-parity.ts."
442
+ }
443
+ },
444
+ "cli": {
445
+ "commands": [
446
+ "help",
447
+ "tool",
448
+ "index",
449
+ "setup",
450
+ "show",
451
+ "doctor",
452
+ "upgrade",
453
+ "stats",
454
+ "status",
455
+ "projects",
456
+ "search",
457
+ "health",
458
+ "onboard",
459
+ "mcp",
460
+ "version",
461
+ "--version"
462
+ ],
463
+ "contracts": {
464
+ "index": {
465
+ "required": [
466
+ "dir"
467
+ ],
468
+ "options": [
469
+ "force"
470
+ ]
471
+ },
472
+ "search": {
473
+ "required": [],
474
+ "requiredNote": "`[query]` is OPTIONAL since the M43/M71 read path: `--symbol-name` and `--file-path` may stand in for it (the help's own `bb search --mode symbol --symbol-name handleRequest` example passes no positional at all, and with a required argument it exited 1). The action refuses a search that supplies none of the three, so the guarantee is preserved as BEHAVIOR — asserted by script/m40/verify-a7-cli-parity.ts — rather than by commander's required-argument check.",
475
+ "options": [
476
+ "dir",
477
+ "limit",
478
+ "language"
479
+ ]
480
+ },
481
+ "health": {
482
+ "required": [],
483
+ "options": [
484
+ "dir",
485
+ "refresh",
486
+ "force",
487
+ "no-wait",
488
+ "complete",
489
+ "integrity",
490
+ "sample-size"
491
+ ]
492
+ },
493
+ "mcp": {
494
+ "required": [],
495
+ "options": [
496
+ "dir"
497
+ ]
498
+ },
499
+ "tool": {
500
+ "required": [
501
+ "name"
502
+ ],
503
+ "options": [
504
+ "dir",
505
+ "args"
506
+ ]
507
+ },
508
+ "--version": {
509
+ "required": [],
510
+ "options": []
511
+ }
512
+ }
513
+ },
514
+ "libraryExports": [
515
+ "BrainDatabase",
516
+ "BrainSchema",
517
+ "ProjectSchema",
518
+ "ProjectID",
519
+ "CoreStorage",
520
+ "ASTEngine",
521
+ "indexProjectParallel",
522
+ "BrainTools",
523
+ "SemanticEngine",
524
+ "checkFileFreshness",
525
+ "checkResultsFreshness",
526
+ "hashFileContent",
527
+ "getProjectId",
528
+ "BACKBENCHER_BRAIN_VERSION",
529
+ "TOOL_DESCRIPTORS",
530
+ "serializeToolMetadata",
531
+ "toMcpToolList",
532
+ "validateToolDescriptors",
533
+ "ToolDescriptor",
534
+ "ToolDocumentation",
535
+ "ToolInputSchema"
536
+ ],
537
+ "legacyInventory": {
538
+ "sentinelCommands": [
539
+ "status",
540
+ "patrol",
541
+ "report",
542
+ "verify",
543
+ "hotspots",
544
+ "traps",
545
+ "trap_summary",
546
+ "validate_api",
547
+ "coverage_summary",
548
+ "coverage_gaps",
549
+ "taint_scan",
550
+ "auth_gate_scan",
551
+ "pii_report",
552
+ "cve_report"
553
+ ],
554
+ "sentinelSymbols": [
555
+ "sentinel",
556
+ "sentinelStatus",
557
+ "sentinelPatrol",
558
+ "sentinelReport",
559
+ "sentinelVerify",
560
+ "sentinelHotspots",
561
+ "sentinelTraps",
562
+ "sentinelTrapSummary",
563
+ "sentinelValidateApi",
564
+ "sentinelCoverageSummary",
565
+ "sentinelCoverageGaps",
566
+ "sentinelTaintScan",
567
+ "sentinelAuthGateScan",
568
+ "sentinelPiiReport",
569
+ "sentinelCveReport"
570
+ ],
571
+ "legacyFacades": [
572
+ "TestIntelligenceBrainTools",
573
+ "revolutionaryArchitectureIntelligence",
574
+ "BrainTools.quickAnswer",
575
+ "PatternBrainTools.detectPatterns",
576
+ "CrossLanguageSecurityAnalysis",
577
+ "CrossLanguageMigrationAssistant"
578
+ ],
579
+ "obsoletePersistenceMarkers": [
580
+ "sentinel_runs",
581
+ "sentinel_findings",
582
+ "FROM symbols",
583
+ "FROM files",
584
+ "symbol_relationships"
585
+ ],
586
+ "claimsToReview": [
587
+ "WORLD’S FIRST",
588
+ "revolutionary",
589
+ "No other tool in the world"
590
+ ]
591
+ },
592
+ "verification": {
593
+ "requiredCommands": [
594
+ "npm run typecheck",
595
+ "npm run build",
596
+ "npm run docs:verify",
597
+ "npm run verify"
598
+ ],
599
+ "fixture": "script/fixtures/contract-fixture.ts",
600
+ "requiredVerifier": "script/verify-m10-baseline.ts"
601
+ }
602
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "milestone": "M10",
4
+ "issue": 114,
5
+ "packageVersion": "0.1.0",
6
+ "declaredAt": "2026-08-10",
7
+ "budgetBasis": {
8
+ "fixtureHint": "contract-fixture (~6 source files, 1 test)",
9
+ "hardwareClass": "commodity development machine",
10
+ "runtime": "bun 1.3+",
11
+ "embeddingModelCompatibility": "compare same model name only"
12
+ },
13
+ "verificationExpectations": {
14
+ "tools": 10,
15
+ "verify-chain-stages": 36,
16
+ "equivalenceUnderParity": true
17
+ },
18
+ "perfBudgetsMs": {
19
+ "bb_search_symbol": 400,
20
+ "bb_ask_stat": 300,
21
+ "bb_ask_semantic": 2500,
22
+ "bb_search_content": 500,
23
+ "bb_analyze_graph": 400,
24
+ "bb_patterns_orphaned": 600,
25
+ "bb_patterns_all": 1500,
26
+ "bb_security_taint": 1200,
27
+ "bb_health_status": 800,
28
+ "bb_health_refresh": 60000,
29
+ "bb_visualize_project": 1000,
30
+ "bb_migrate_plan": 2000,
31
+ "bb_doc_symbol": 2500,
32
+ "bb_edit_write": 300,
33
+ "index_cold": 8000,
34
+ "index_warm_reindex": 1500
35
+ },
36
+ "correctnessExpectations": {
37
+ "tools.exactly": 10,
38
+ "tools.modeMatrix": "b10-baseline.json runtimeMcp.descriptors",
39
+ "library.exportsInclude": [
40
+ "BrainDatabase", "BrainSchema", "ProjectSchema", "ProjectID", "CoreStorage",
41
+ "ASTEngine", "indexProjectParallel", "BrainTools", "SemanticEngine",
42
+ "checkFileFreshness", "checkResultsFreshness", "hashFileContent", "getProjectId",
43
+ "BACKBENCHER_BRAIN_VERSION", "TOOL_DESCRIPTORS", "serializeToolMetadata",
44
+ "toMcpToolList", "validateToolDescriptors", "ToolDescriptor",
45
+ "ToolDocumentation", "ToolInputSchema"
46
+ ],
47
+ "semantic.classification": "semantic_candidate",
48
+ "orphans.classification": "static_finding",
49
+ "security.classification": "static_finding",
50
+ "testIntel.classification": "inferred",
51
+ "testIntel.runtimeCoveragePolicy": "available-false",
52
+ "patterns.findingMinFields": [
53
+ "rule", "engine", "severity", "confidence", "location", "linesOfCode",
54
+ "description", "remediation", "evidence", "limitations"
55
+ ]
56
+ }
57
+ }