@quolu/lattice 0.1.0 → 0.12.2

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 (370) hide show
  1. package/README.md +87 -4
  2. package/bin/lattice-bridge.mjs +87 -0
  3. package/bin/lattice-dashboard.mjs +70 -0
  4. package/bin/lattice-mcp.mjs +9 -9
  5. package/bin/lattice.mjs +61 -8
  6. package/docs/bridge-setup.md +87 -0
  7. package/docs/schemas/lattice.plan_create_input.v1.schema.json +56 -0
  8. package/docs/schemas/lattice.plan_create_input.v2.schema.json +72 -0
  9. package/docs/schemas/lattice.plan_create_input.v3.schema.json +81 -0
  10. package/package.json +19 -7
  11. package/sensor/dist/bin/command-supervision.d.ts +1 -1
  12. package/sensor/dist/bin/command-supervision.js +4 -4
  13. package/sensor/dist/bin/command-supervision.js.map +1 -1
  14. package/sensor/dist/bin/fatal-handler.js +2 -2
  15. package/sensor/dist/bin/fatal-handler.js.map +1 -1
  16. package/sensor/dist/bin/{codegraph.js → lattice-sensor.js} +207 -328
  17. package/sensor/dist/bin/node-version-check.d.ts +7 -5
  18. package/sensor/dist/bin/node-version-check.d.ts.map +1 -1
  19. package/sensor/dist/bin/node-version-check.js +19 -14
  20. package/sensor/dist/bin/node-version-check.js.map +1 -1
  21. package/sensor/dist/context/index.d.ts +1 -1
  22. package/sensor/dist/context/index.js +6 -6
  23. package/sensor/dist/context/index.js.map +1 -1
  24. package/sensor/dist/db/index.d.ts +5 -5
  25. package/sensor/dist/db/index.d.ts.map +1 -1
  26. package/sensor/dist/db/index.js +7 -7
  27. package/sensor/dist/db/index.js.map +1 -1
  28. package/sensor/dist/db/migrations.js +1 -1
  29. package/sensor/dist/db/migrations.js.map +1 -1
  30. package/sensor/dist/db/queries.d.ts +1 -1
  31. package/sensor/dist/db/queries.js +5 -5
  32. package/sensor/dist/db/queries.js.map +1 -1
  33. package/sensor/dist/db/schema.sql +2 -2
  34. package/sensor/dist/db/sqlite-adapter.d.ts +2 -2
  35. package/sensor/dist/db/sqlite-adapter.js +3 -3
  36. package/sensor/dist/db/sqlite-adapter.js.map +1 -1
  37. package/sensor/dist/db/wal-valve.d.ts +1 -1
  38. package/sensor/dist/db/wal-valve.d.ts.map +1 -1
  39. package/sensor/dist/db/wal-valve.js +2 -2
  40. package/sensor/dist/db/wal-valve.js.map +1 -1
  41. package/sensor/dist/directory.d.ts +27 -63
  42. package/sensor/dist/directory.d.ts.map +1 -1
  43. package/sensor/dist/directory.js +78 -134
  44. package/sensor/dist/directory.js.map +1 -1
  45. package/sensor/dist/errors.d.ts +15 -15
  46. package/sensor/dist/errors.d.ts.map +1 -1
  47. package/sensor/dist/errors.js +21 -21
  48. package/sensor/dist/errors.js.map +1 -1
  49. package/sensor/dist/extraction/dynamic-import.d.ts +1 -1
  50. package/sensor/dist/extraction/dynamic-import.js +1 -1
  51. package/sensor/dist/extraction/extraction-version.d.ts +1 -1
  52. package/sensor/dist/extraction/extraction-version.js +1 -1
  53. package/sensor/dist/extraction/generated-detection.d.ts +1 -1
  54. package/sensor/dist/extraction/generated-detection.js +1 -1
  55. package/sensor/dist/extraction/grammars.d.ts +3 -3
  56. package/sensor/dist/extraction/grammars.js +5 -5
  57. package/sensor/dist/extraction/grammars.js.map +1 -1
  58. package/sensor/dist/extraction/index.d.ts +6 -6
  59. package/sensor/dist/extraction/index.js +50 -50
  60. package/sensor/dist/extraction/index.js.map +1 -1
  61. package/sensor/dist/extraction/kernel/decode.d.ts +1 -1
  62. package/sensor/dist/extraction/kernel/decode.js +1 -1
  63. package/sensor/dist/extraction/kernel/index.d.ts +3 -3
  64. package/sensor/dist/extraction/kernel/index.js +6 -6
  65. package/sensor/dist/extraction/kernel/index.js.map +1 -1
  66. package/sensor/dist/extraction/kernel/layout.d.ts +1 -1
  67. package/sensor/dist/extraction/kernel/layout.js +1 -1
  68. package/sensor/dist/extraction/kernel/loader.d.ts +6 -6
  69. package/sensor/dist/extraction/kernel/loader.js +13 -13
  70. package/sensor/dist/extraction/kernel/loader.js.map +1 -1
  71. package/sensor/dist/extraction/languages/cfquery.d.ts +1 -1
  72. package/sensor/dist/extraction/languages/cfquery.js +1 -1
  73. package/sensor/dist/extraction/languages/lua.d.ts +11 -0
  74. package/sensor/dist/extraction/languages/lua.d.ts.map +1 -1
  75. package/sensor/dist/extraction/languages/lua.js +1 -0
  76. package/sensor/dist/extraction/languages/lua.js.map +1 -1
  77. package/sensor/dist/extraction/parse-pool.d.ts +5 -5
  78. package/sensor/dist/extraction/parse-pool.d.ts.map +1 -1
  79. package/sensor/dist/extraction/parse-pool.js +4 -4
  80. package/sensor/dist/extraction/parse-worker.js +1 -1
  81. package/sensor/dist/extraction/parse-worker.js.map +1 -1
  82. package/sensor/dist/extraction/store-writer.d.ts +1 -1
  83. package/sensor/dist/extraction/store-writer.js +1 -1
  84. package/sensor/dist/extraction/svelte-extractor.d.ts +1 -1
  85. package/sensor/dist/extraction/svelte-extractor.js +1 -1
  86. package/sensor/dist/extraction/tree-sitter-helpers.js +1 -1
  87. package/sensor/dist/extraction/tree-sitter.d.ts +2 -2
  88. package/sensor/dist/extraction/tree-sitter.d.ts.map +1 -1
  89. package/sensor/dist/extraction/tree-sitter.js +71 -4
  90. package/sensor/dist/extraction/tree-sitter.js.map +1 -1
  91. package/sensor/dist/extraction/wasm-runtime-flags.d.ts +2 -2
  92. package/sensor/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
  93. package/sensor/dist/extraction/wasm-runtime-flags.js +5 -5
  94. package/sensor/dist/extraction/wasm-runtime-flags.js.map +1 -1
  95. package/sensor/dist/index.d.ts +36 -36
  96. package/sensor/dist/index.d.ts.map +1 -1
  97. package/sensor/dist/index.js +71 -71
  98. package/sensor/dist/index.js.map +1 -1
  99. package/sensor/dist/mcp/daemon-manager.js +1 -1
  100. package/sensor/dist/mcp/daemon-paths.d.ts +3 -3
  101. package/sensor/dist/mcp/daemon-paths.js +7 -7
  102. package/sensor/dist/mcp/daemon-paths.js.map +1 -1
  103. package/sensor/dist/mcp/daemon-registry.d.ts +2 -2
  104. package/sensor/dist/mcp/daemon-registry.js +5 -5
  105. package/sensor/dist/mcp/daemon.d.ts +7 -7
  106. package/sensor/dist/mcp/daemon.d.ts.map +1 -1
  107. package/sensor/dist/mcp/daemon.js +21 -21
  108. package/sensor/dist/mcp/daemon.js.map +1 -1
  109. package/sensor/dist/mcp/dynamic-boundaries.js +1 -1
  110. package/sensor/dist/mcp/engine.d.ts +9 -9
  111. package/sensor/dist/mcp/engine.d.ts.map +1 -1
  112. package/sensor/dist/mcp/engine.js +44 -44
  113. package/sensor/dist/mcp/engine.js.map +1 -1
  114. package/sensor/dist/mcp/index.d.ts +14 -14
  115. package/sensor/dist/mcp/index.d.ts.map +1 -1
  116. package/sensor/dist/mcp/index.js +41 -41
  117. package/sensor/dist/mcp/index.js.map +1 -1
  118. package/sensor/dist/mcp/liveness-watchdog.js +7 -7
  119. package/sensor/dist/mcp/liveness-watchdog.js.map +1 -1
  120. package/sensor/dist/mcp/ppid-watchdog.d.ts +3 -3
  121. package/sensor/dist/mcp/ppid-watchdog.js +2 -2
  122. package/sensor/dist/mcp/proxy.d.ts.map +1 -1
  123. package/sensor/dist/mcp/proxy.js +37 -37
  124. package/sensor/dist/mcp/proxy.js.map +1 -1
  125. package/sensor/dist/mcp/query-pool.d.ts +3 -3
  126. package/sensor/dist/mcp/query-pool.js +7 -7
  127. package/sensor/dist/mcp/query-pool.js.map +1 -1
  128. package/sensor/dist/mcp/query-worker.d.ts +2 -2
  129. package/sensor/dist/mcp/query-worker.js +7 -7
  130. package/sensor/dist/mcp/query-worker.js.map +1 -1
  131. package/sensor/dist/mcp/server-instructions.d.ts +10 -12
  132. package/sensor/dist/mcp/server-instructions.d.ts.map +1 -1
  133. package/sensor/dist/mcp/server-instructions.js +39 -37
  134. package/sensor/dist/mcp/server-instructions.js.map +1 -1
  135. package/sensor/dist/mcp/session.d.ts +2 -2
  136. package/sensor/dist/mcp/session.js +18 -18
  137. package/sensor/dist/mcp/session.js.map +1 -1
  138. package/sensor/dist/mcp/startup-handshake.d.ts +3 -3
  139. package/sensor/dist/mcp/startup-handshake.d.ts.map +1 -1
  140. package/sensor/dist/mcp/startup-handshake.js +3 -3
  141. package/sensor/dist/mcp/startup-handshake.js.map +1 -1
  142. package/sensor/dist/mcp/tools.d.ts +53 -53
  143. package/sensor/dist/mcp/tools.d.ts.map +1 -1
  144. package/sensor/dist/mcp/tools.js +180 -216
  145. package/sensor/dist/mcp/tools.js.map +1 -1
  146. package/sensor/dist/mcp/transport.d.ts +1 -1
  147. package/sensor/dist/mcp/transport.js +6 -6
  148. package/sensor/dist/mcp/transport.js.map +1 -1
  149. package/sensor/dist/mcp/version.d.ts +2 -2
  150. package/sensor/dist/mcp/version.d.ts.map +1 -1
  151. package/sensor/dist/mcp/version.js +3 -3
  152. package/sensor/dist/mcp/version.js.map +1 -1
  153. package/sensor/dist/project-config.d.ts +6 -6
  154. package/sensor/dist/project-config.d.ts.map +1 -1
  155. package/sensor/dist/project-config.js +10 -10
  156. package/sensor/dist/project-config.js.map +1 -1
  157. package/sensor/dist/resolution/callback-synthesizer.js +4 -4
  158. package/sensor/dist/resolution/callback-synthesizer.js.map +1 -1
  159. package/sensor/dist/resolution/frameworks/drupal.d.ts +3 -3
  160. package/sensor/dist/resolution/frameworks/drupal.js +3 -3
  161. package/sensor/dist/resolution/frameworks/fabric.js +1 -1
  162. package/sensor/dist/resolution/frameworks/fabric.js.map +1 -1
  163. package/sensor/dist/resolution/frameworks/java.js +1 -1
  164. package/sensor/dist/resolution/frameworks/java.js.map +1 -1
  165. package/sensor/dist/resolution/frameworks/svelte.js +1 -1
  166. package/sensor/dist/resolution/frameworks/svelte.js.map +1 -1
  167. package/sensor/dist/resolution/goframe-synthesizer.d.ts +1 -1
  168. package/sensor/dist/resolution/goframe-synthesizer.js +1 -1
  169. package/sensor/dist/resolution/index.d.ts +1 -1
  170. package/sensor/dist/resolution/index.js +9 -9
  171. package/sensor/dist/resolution/index.js.map +1 -1
  172. package/sensor/dist/resolution/name-matcher.js +2 -2
  173. package/sensor/dist/resolution/name-matcher.js.map +1 -1
  174. package/sensor/dist/resolution/resolver-pool.d.ts +2 -2
  175. package/sensor/dist/resolution/resolver-pool.js +4 -4
  176. package/sensor/dist/resolution/resolver-pool.js.map +1 -1
  177. package/sensor/dist/resolution/resolver-worker.js +2 -2
  178. package/sensor/dist/resolution/resolver-worker.js.map +1 -1
  179. package/sensor/dist/resolution/workspace-packages.js +1 -1
  180. package/sensor/dist/resolution/workspace-packages.js.map +1 -1
  181. package/sensor/dist/search/identifier-segments.d.ts +1 -1
  182. package/sensor/dist/search/identifier-segments.js +1 -1
  183. package/sensor/dist/search/query-utils.d.ts +1 -0
  184. package/sensor/dist/search/query-utils.d.ts.map +1 -1
  185. package/sensor/dist/search/query-utils.js +10 -3
  186. package/sensor/dist/search/query-utils.js.map +1 -1
  187. package/sensor/dist/sync/git-hooks.d.ts +9 -9
  188. package/sensor/dist/sync/git-hooks.d.ts.map +1 -1
  189. package/sensor/dist/sync/git-hooks.js +15 -15
  190. package/sensor/dist/sync/git-hooks.js.map +1 -1
  191. package/sensor/dist/sync/watch-policy.d.ts +2 -2
  192. package/sensor/dist/sync/watch-policy.js +5 -5
  193. package/sensor/dist/sync/watch-policy.js.map +1 -1
  194. package/sensor/dist/sync/watcher.d.ts +2 -2
  195. package/sensor/dist/sync/watcher.d.ts.map +1 -1
  196. package/sensor/dist/sync/watcher.js +16 -16
  197. package/sensor/dist/sync/watcher.js.map +1 -1
  198. package/sensor/dist/sync/worktree.d.ts +5 -5
  199. package/sensor/dist/sync/worktree.d.ts.map +1 -1
  200. package/sensor/dist/sync/worktree.js +9 -9
  201. package/sensor/dist/sync/worktree.js.map +1 -1
  202. package/sensor/dist/telemetry/index.d.ts +8 -8
  203. package/sensor/dist/telemetry/index.d.ts.map +1 -1
  204. package/sensor/dist/telemetry/index.js +16 -16
  205. package/sensor/dist/telemetry/index.js.map +1 -1
  206. package/sensor/dist/types.d.ts +2 -2
  207. package/sensor/dist/types.js +1 -1
  208. package/sensor/dist/ui/color.d.ts +2 -2
  209. package/sensor/dist/ui/color.js +2 -2
  210. package/sensor/dist/ui/glyphs.d.ts +3 -3
  211. package/sensor/dist/ui/glyphs.js +7 -7
  212. package/sensor/dist/ui/glyphs.js.map +1 -1
  213. package/sensor/dist/utils.d.ts +4 -4
  214. package/sensor/dist/utils.js +8 -8
  215. package/sensor/dist/utils.js.map +1 -1
  216. package/sensor/package.json +8 -13
  217. package/src/artifact-contracts.mjs +2 -2
  218. package/src/boundary-compiler.mjs +28 -28
  219. package/src/boundary-observation-compiler-v2.mjs +10 -10
  220. package/src/bounded-seam.mjs +144 -0
  221. package/src/bridge-cli.mjs +227 -0
  222. package/src/bridge-config.mjs +346 -0
  223. package/src/bridge-daemon.mjs +328 -0
  224. package/src/bridge-launch-agent.mjs +311 -0
  225. package/src/bridge-server.mjs +309 -0
  226. package/src/cli-help.mjs +163 -0
  227. package/src/control-compiler.mjs +30 -30
  228. package/src/dag-chain.mjs +261 -0
  229. package/src/factory-diagnostics.mjs +8 -7
  230. package/src/hash-chain.mjs +76 -0
  231. package/src/node-version-guard.mjs +5 -4
  232. package/src/project-cli.mjs +392 -0
  233. package/src/project-identity.mjs +71 -0
  234. package/src/rc1-evidence-bundle.mjs +16 -16
  235. package/src/rc1-v4-campaign.mjs +15 -14
  236. package/src/rc1-v5-artifact-set.mjs +2 -2
  237. package/src/rc1-v5-campaign.mjs +15 -14
  238. package/src/rc1-v6-artifact-set.mjs +18 -18
  239. package/src/rc1-v6-campaign.mjs +16 -16
  240. package/src/rc1-v6-causal-binding.mjs +16 -14
  241. package/src/rc1-v6-measurement.mjs +20 -38
  242. package/src/rc2-artifact-set.mjs +45 -40
  243. package/src/rc2-campaign.mjs +48 -66
  244. package/src/rc2-delivery-policy-front-end.mjs +30 -30
  245. package/src/rc2-rc1-transfer-front-end.mjs +5 -5
  246. package/src/rc3-actual-dogfood.mjs +6 -6
  247. package/src/rc3-dogfood-scaffold.mjs +12 -7
  248. package/src/rc3-scripted-campaign.mjs +75 -21
  249. package/src/rc4-stage1-dogfood.mjs +24 -7
  250. package/src/runtime-cli.mjs +2424 -45
  251. package/src/runtime-contracts.mjs +7 -7
  252. package/src/runtime-control-store.mjs +547 -0
  253. package/src/runtime-controller-protocol.mjs +517 -0
  254. package/src/runtime-direct-os-observer.mjs +284 -0
  255. package/src/runtime-engine.mjs +2 -2
  256. package/src/runtime-errors.mjs +1 -1
  257. package/src/runtime-event-store.mjs +15 -43
  258. package/src/runtime-front-end.mjs +26 -26
  259. package/src/runtime-gate-store.mjs +477 -0
  260. package/src/runtime-hold-recompile.mjs +214 -23
  261. package/src/runtime-lifecycle-lock.mjs +290 -0
  262. package/src/runtime-managed-supervisor.mjs +1276 -0
  263. package/src/runtime-multi-epoch-store.mjs +761 -0
  264. package/src/runtime-projection.mjs +62 -0
  265. package/src/seam-transform.mjs +38 -38
  266. package/src/{codegraph-adapter.mjs → sensor-adapter.mjs} +7 -7
  267. package/src/sensor-cli.mjs +107 -0
  268. package/src/sensor-runtime.mjs +48 -0
  269. package/src/timestamp-contract.mjs +8 -0
  270. package/src/todo-chain.mjs +178 -0
  271. package/src/todo-cli.mjs +1032 -0
  272. package/src/todo-contracts.mjs +501 -0
  273. package/src/todo-dashboard-registry.mjs +318 -0
  274. package/src/todo-gantt-html.mjs +416 -0
  275. package/src/todo-gantt-layout.mjs +603 -0
  276. package/src/todo-gantt-live.mjs +269 -0
  277. package/src/todo-gantt-presentation.mjs +217 -0
  278. package/src/todo-gantt-svg.mjs +249 -0
  279. package/src/todo-markdown-renderer.mjs +260 -0
  280. package/src/todo-migration.mjs +260 -0
  281. package/src/todo-narrative-anchor.mjs +130 -0
  282. package/src/todo-revision.mjs +425 -0
  283. package/src/todo-status.mjs +340 -0
  284. package/src/todo-store.mjs +3451 -0
  285. package/src/treatment-compiler.mjs +28 -28
  286. package/src/treatment-runner.mjs +42 -44
  287. package/sensor/dist/bin/codegraph.d.ts +0 -26
  288. package/sensor/dist/bin/codegraph.d.ts.map +0 -1
  289. package/sensor/dist/bin/codegraph.js.map +0 -1
  290. package/sensor/dist/bin/uninstall.d.ts +0 -14
  291. package/sensor/dist/bin/uninstall.d.ts.map +0 -1
  292. package/sensor/dist/bin/uninstall.js +0 -36
  293. package/sensor/dist/bin/uninstall.js.map +0 -1
  294. package/sensor/dist/installer/beta-signup.d.ts +0 -54
  295. package/sensor/dist/installer/beta-signup.d.ts.map +0 -1
  296. package/sensor/dist/installer/beta-signup.js +0 -178
  297. package/sensor/dist/installer/beta-signup.js.map +0 -1
  298. package/sensor/dist/installer/config-writer.d.ts +0 -28
  299. package/sensor/dist/installer/config-writer.d.ts.map +0 -1
  300. package/sensor/dist/installer/config-writer.js +0 -91
  301. package/sensor/dist/installer/config-writer.js.map +0 -1
  302. package/sensor/dist/installer/index.d.ts +0 -142
  303. package/sensor/dist/installer/index.d.ts.map +0 -1
  304. package/sensor/dist/installer/index.js +0 -622
  305. package/sensor/dist/installer/index.js.map +0 -1
  306. package/sensor/dist/installer/instructions-template.d.ts +0 -41
  307. package/sensor/dist/installer/instructions-template.d.ts.map +0 -1
  308. package/sensor/dist/installer/instructions-template.js +0 -53
  309. package/sensor/dist/installer/instructions-template.js.map +0 -1
  310. package/sensor/dist/installer/targets/antigravity.d.ts +0 -57
  311. package/sensor/dist/installer/targets/antigravity.d.ts.map +0 -1
  312. package/sensor/dist/installer/targets/antigravity.js +0 -308
  313. package/sensor/dist/installer/targets/antigravity.js.map +0 -1
  314. package/sensor/dist/installer/targets/claude.d.ts +0 -62
  315. package/sensor/dist/installer/targets/claude.d.ts.map +0 -1
  316. package/sensor/dist/installer/targets/claude.js +0 -454
  317. package/sensor/dist/installer/targets/claude.js.map +0 -1
  318. package/sensor/dist/installer/targets/codex.d.ts +0 -18
  319. package/sensor/dist/installer/targets/codex.d.ts.map +0 -1
  320. package/sensor/dist/installer/targets/codex.js +0 -185
  321. package/sensor/dist/installer/targets/codex.js.map +0 -1
  322. package/sensor/dist/installer/targets/cursor.d.ts +0 -35
  323. package/sensor/dist/installer/targets/cursor.d.ts.map +0 -1
  324. package/sensor/dist/installer/targets/cursor.js +0 -254
  325. package/sensor/dist/installer/targets/cursor.js.map +0 -1
  326. package/sensor/dist/installer/targets/gemini.d.ts +0 -26
  327. package/sensor/dist/installer/targets/gemini.d.ts.map +0 -1
  328. package/sensor/dist/installer/targets/gemini.js +0 -165
  329. package/sensor/dist/installer/targets/gemini.js.map +0 -1
  330. package/sensor/dist/installer/targets/hermes.d.ts +0 -18
  331. package/sensor/dist/installer/targets/hermes.d.ts.map +0 -1
  332. package/sensor/dist/installer/targets/hermes.js +0 -359
  333. package/sensor/dist/installer/targets/hermes.js.map +0 -1
  334. package/sensor/dist/installer/targets/kiro.d.ts +0 -27
  335. package/sensor/dist/installer/targets/kiro.d.ts.map +0 -1
  336. package/sensor/dist/installer/targets/kiro.js +0 -178
  337. package/sensor/dist/installer/targets/kiro.js.map +0 -1
  338. package/sensor/dist/installer/targets/opencode.d.ts +0 -38
  339. package/sensor/dist/installer/targets/opencode.d.ts.map +0 -1
  340. package/sensor/dist/installer/targets/opencode.js +0 -288
  341. package/sensor/dist/installer/targets/opencode.js.map +0 -1
  342. package/sensor/dist/installer/targets/registry.d.ts +0 -35
  343. package/sensor/dist/installer/targets/registry.d.ts.map +0 -1
  344. package/sensor/dist/installer/targets/registry.js +0 -91
  345. package/sensor/dist/installer/targets/registry.js.map +0 -1
  346. package/sensor/dist/installer/targets/shared.d.ts +0 -101
  347. package/sensor/dist/installer/targets/shared.d.ts.map +0 -1
  348. package/sensor/dist/installer/targets/shared.js +0 -264
  349. package/sensor/dist/installer/targets/shared.js.map +0 -1
  350. package/sensor/dist/installer/targets/toml.d.ts +0 -52
  351. package/sensor/dist/installer/targets/toml.d.ts.map +0 -1
  352. package/sensor/dist/installer/targets/toml.js +0 -147
  353. package/sensor/dist/installer/targets/toml.js.map +0 -1
  354. package/sensor/dist/installer/targets/types.d.ts +0 -108
  355. package/sensor/dist/installer/targets/types.d.ts.map +0 -1
  356. package/sensor/dist/installer/targets/types.js +0 -16
  357. package/sensor/dist/installer/targets/types.js.map +0 -1
  358. package/sensor/dist/upgrade/index.d.ts +0 -171
  359. package/sensor/dist/upgrade/index.d.ts.map +0 -1
  360. package/sensor/dist/upgrade/index.js +0 -659
  361. package/sensor/dist/upgrade/index.js.map +0 -1
  362. package/sensor/dist/upgrade/remove-binary.d.ts +0 -87
  363. package/sensor/dist/upgrade/remove-binary.d.ts.map +0 -1
  364. package/sensor/dist/upgrade/remove-binary.js +0 -289
  365. package/sensor/dist/upgrade/remove-binary.js.map +0 -1
  366. package/sensor/dist/upgrade/update-check.d.ts +0 -92
  367. package/sensor/dist/upgrade/update-check.d.ts.map +0 -1
  368. package/sensor/dist/upgrade/update-check.js +0 -258
  369. package/sensor/dist/upgrade/update-check.js.map +0 -1
  370. package/src/bootstrap.mjs +0 -88
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * MCP Tool Definitions
3
3
  *
4
- * Defines the tools exposed by the CodeGraph MCP server.
4
+ * Defines the tools exposed by the LatticeSensor MCP server.
5
5
  */
6
- import type CodeGraph from '../index';
6
+ import type LatticeSensor from '../index';
7
7
  import type { QueryPool } from './query-pool';
8
8
  import type { PendingFile } from '../sync';
9
9
  /**
10
- * An expected, recoverable "codegraph can't serve this" condition — most
10
+ * An expected, recoverable "lattice sensor can't serve this" condition — most
11
11
  * importantly a project with no index. The dispatch catch converts these to
12
12
  * SUCCESS-shaped responses (guidance text, NO isError): an `isError: true`
13
13
  * early in a session teaches the agent the toolset is broken and it stops
14
- * calling codegraph entirely (observed repeatedly), which is exactly wrong
14
+ * calling lattice sensor entirely (observed repeatedly), which is exactly wrong
15
15
  * for conditions the agent can simply work around (use built-in tools for
16
16
  * that codebase / pass projectPath). isError is reserved for "stop trying"
17
17
  * cases: security refusals ({@link PathRefusalError}) and genuine
@@ -28,13 +28,13 @@ export declare class PathRefusalError extends Error {
28
28
  /**
29
29
  * ADR 0049 Decision 5②: a genuine malfunction opening the default project's
30
30
  * index — DB open failure, schema mismatch, integrity error, or lock
31
- * contention — as OPPOSED to the project simply having no `.codegraph/` at
31
+ * contention — as OPPOSED to the project simply having no `.lattice/sensor/` at
32
32
  * all (that stays {@link NotIndexedError}, the success-shaped guidance case).
33
33
  * This is fail-closed by design: it stays `isError: true` (via `execute`'s
34
34
  * catch, same as {@link PathRefusalError}) rather than the NotIndexedError
35
35
  * success-shaped guidance, because silently degrading to "no default
36
36
  * project" here would hide a broken index behind text that reads as "just
37
- * run `codegraph init`" — actively misleading for a project that WAS
37
+ * run `lattice sensor init . --json`" — actively misleading for a project that WAS
38
38
  * indexed and IS now broken.
39
39
  */
40
40
  export declare class IndexOpenError extends Error {
@@ -62,13 +62,13 @@ export declare class IndexOpenError extends Error {
62
62
  */
63
63
  export declare function normalizeQuerySpelling(query: string): string;
64
64
  /**
65
- * Calculate the recommended number of codegraph_explore calls based on project size.
65
+ * Calculate the recommended number of lattice_sensor_explore calls based on project size.
66
66
  * Larger codebases need more exploration calls to cover their surface area,
67
67
  * but smaller ones should use fewer to avoid unnecessary overhead.
68
68
  */
69
69
  export declare function getExploreBudget(fileCount: number): number;
70
70
  /**
71
- * Adaptive output budget for `codegraph_explore`, scaled to project size.
71
+ * Adaptive output budget for `lattice_sensor_explore`, scaled to project size.
72
72
  *
73
73
  * Smaller codebases get a tighter total cap, fewer default files, smaller
74
74
  * per-file cap, and tighter clustering — so a focused query on a 100-file
@@ -136,7 +136,7 @@ export declare function formatStaleFooter(stale: PendingFile[]): string;
136
136
  * `getPendingFiles()` is empty, so the per-file banner above can't fire even
137
137
  * though the index is now FROZEN and silently drifting stale. Leads with the
138
138
  * agent-actionable instruction (Read directly) and carries the reason, which
139
- * already names the operator remedy (`codegraph sync` / git hooks).
139
+ * already names the operator remedy (`lattice sensor sync . --json` / git hooks).
140
140
  */
141
141
  export declare function formatDegradedBanner(reason: string | null): string;
142
142
  /**
@@ -161,7 +161,7 @@ export interface ToolDefinition {
161
161
  * doesn't advertise `readOnlyHint: true` (issue #1018).
162
162
  *
163
163
  * The field is purely additive — a client that predates annotations ignores it
164
- * — so codegraph advertises these even though `initialize` still negotiates the
164
+ * — so lattice sensor advertises these even though `initialize` still negotiates the
165
165
  * 2024-11-05 protocol version.
166
166
  *
167
167
  * https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations
@@ -195,9 +195,9 @@ export interface ToolResult {
195
195
  isError?: boolean;
196
196
  }
197
197
  /**
198
- * All CodeGraph MCP tools
198
+ * All LatticeSensor MCP tools
199
199
  *
200
- * Designed for minimal context usage - use codegraph_explore as the primary tool
200
+ * Designed for minimal context usage - use lattice_sensor_explore as the primary tool
201
201
  * (one call usually answers the whole question), and only use other tools for
202
202
  * targeted follow-up queries.
203
203
  *
@@ -207,12 +207,12 @@ export declare const tools: ToolDefinition[];
207
207
  /**
208
208
  * Allowlist-filtered tool definitions WITHOUT an engine — the static surface the
209
209
  * proxy answers `tools/list` with before any project is open. Mirrors
210
- * `ToolHandler.getTools()` in the no-CodeGraph case (the dynamic per-repo budget
210
+ * `ToolHandler.getTools()` in the no-LatticeSensor case (the dynamic per-repo budget
211
211
  * note in a description only adds once `cg` is loaded; the schemas are static).
212
212
  */
213
213
  export declare function getStaticTools(): ToolDefinition[];
214
214
  /**
215
- * Tool handler that executes tools against a CodeGraph instance
215
+ * Tool handler that executes tools against a LatticeSensor instance
216
216
  *
217
217
  * Supports cross-project queries via the projectPath parameter.
218
218
  * Other projects are opened on-demand and cached for performance.
@@ -226,7 +226,7 @@ export declare class ToolHandler {
226
226
  private queryPool;
227
227
  private openFailure;
228
228
  private executionMode;
229
- constructor(cg: CodeGraph | null);
229
+ constructor(cg: LatticeSensor | null);
230
230
  /**
231
231
  * Engine-only: attach (or detach with null) the worker-thread query pool. The
232
232
  * shared daemon sets this once its default project is open; the workers each
@@ -235,24 +235,24 @@ export declare class ToolHandler {
235
235
  */
236
236
  setQueryPool(pool: QueryPool | null): void;
237
237
  /**
238
- * Update the default CodeGraph instance (e.g. after lazy initialization).
238
+ * Update the default LatticeSensor instance (e.g. after lazy initialization).
239
239
  * A successful open supersedes any previously recorded open failure.
240
240
  */
241
- setDefaultCodeGraph(cg: CodeGraph): void;
241
+ setDefaultLatticeSensor(cg: LatticeSensor): void;
242
242
  /**
243
243
  * ADR 0049 Decision 5②: record that the DEFAULT project's index failed to
244
- * open for a reason OTHER than "no .codegraph/ found" — the engine calls
245
- * this from its init catch block. `getCodeGraph()` throws it (fail closed)
244
+ * open for a reason OTHER than "no .lattice/sensor/ found" — the engine calls
245
+ * this from its init catch block. `getLatticeSensor()` throws it (fail closed)
246
246
  * instead of the NotIndexedError guidance the next time a tool call needs
247
247
  * the default project, so the failure surfaces as `isError: true` rather
248
- * than being silently absorbed into "just run codegraph init" prose.
248
+ * than being silently absorbed into "just run lattice sensor init . --json" prose.
249
249
  */
250
250
  setOpenFailure(err: Error | null): void;
251
251
  /**
252
252
  * ADR 0049 Decision 5④: record this session's execution mode
253
253
  * (`daemon`/`direct`) and the typed reason direct mode was chosen (or
254
254
  * `'daemon'` when routed through the shared daemon). Surfaced verbatim by
255
- * `codegraph_status`.
255
+ * `lattice_sensor_status`.
256
256
  */
257
257
  setExecutionMode(mode: 'daemon' | 'direct', reason: string): void;
258
258
  /** The execution mode last recorded via {@link setExecutionMode}. */
@@ -284,40 +284,40 @@ export declare class ToolHandler {
284
284
  */
285
285
  setDefaultProjectHint(searchedPath: string): void;
286
286
  /**
287
- * Whether a default CodeGraph instance is available
287
+ * Whether a default LatticeSensor instance is available
288
288
  */
289
- hasDefaultCodeGraph(): boolean;
289
+ hasDefaultLatticeSensor(): boolean;
290
290
  /**
291
- * Optional allowlist of exposed tools, parsed from the CODEGRAPH_MCP_TOOLS
291
+ * Optional allowlist of exposed tools, parsed from the LATTICE_SENSOR_MCP_TOOLS
292
292
  * env var (comma-separated short names, e.g. "trace,search,node,context").
293
- * Unset/empty → every tool is exposed. Lets an operator (or an A/B harness)
293
+ * Unset/empty → the contracted eight-tool surface. Lets an operator (or an A/B harness)
294
294
  * trim the tool surface without rebuilding the client config; the ablated
295
295
  * tool is then truly absent from ListTools rather than merely denied on call.
296
- * Matching is on the short form, so "node" and "codegraph_node" both work.
296
+ * Matching is on the short form, so "node" and "lattice_sensor_node" both work.
297
297
  */
298
298
  private toolAllowlist;
299
- /** Whether a tool name passes the CODEGRAPH_MCP_TOOLS allowlist (if any). */
299
+ /** Whether a tool name passes the LATTICE_SENSOR_MCP_TOOLS allowlist (if any). */
300
300
  private isToolAllowed;
301
301
  /**
302
302
  * Get tool definitions with dynamic descriptions based on project size.
303
- * The codegraph_explore tool description includes a budget recommendation
304
- * scaled to the number of indexed files. Honors the CODEGRAPH_MCP_TOOLS
303
+ * The lattice_sensor_explore tool description includes a budget recommendation
304
+ * scaled to the number of indexed files. Honors the LATTICE_SENSOR_MCP_TOOLS
305
305
  * allowlist so a trimmed surface is reflected in ListTools.
306
306
  */
307
307
  getTools(): ToolDefinition[];
308
308
  /**
309
- * Get CodeGraph instance for a project
309
+ * Get LatticeSensor instance for a project
310
310
  *
311
- * If projectPath is provided, opens that project's CodeGraph (cached).
312
- * Otherwise returns the default CodeGraph instance.
311
+ * If projectPath is provided, opens that project's LatticeSensor (cached).
312
+ * Otherwise returns the default LatticeSensor instance.
313
313
  *
314
- * Walks up parent directories to find the nearest .codegraph/ folder,
314
+ * Walks up parent directories to find the nearest .lattice/sensor/ folder,
315
315
  * similar to how git finds .git/ directories.
316
316
  */
317
- private getCodeGraph;
317
+ private getLatticeSensor;
318
318
  /**
319
- * Heal a long-lived connection whose `.codegraph/` was removed and recreated
320
- * at the same path (a worktree recreated, or `rm -rf .codegraph` + re-init)
319
+ * Heal a long-lived connection whose `.lattice/sensor/` was removed and recreated
320
+ * at the same path (a worktree recreated, or `rm -rf .lattice/sensor` + re-init)
321
321
  * before handing it to a tool. Otherwise the daemon keeps serving the
322
322
  * pre-removal snapshot from its now-unlinked file handle until restart — and
323
323
  * because the daemon registry is keyed by path, a same-path recreate routes
@@ -360,7 +360,7 @@ export declare class ToolHandler {
360
360
  * notice when the resolved index belongs to a different git working tree than
361
361
  * the caller's (issue #155). Without this, an agent in a nested worktree
362
362
  * silently trusts main-branch results. No-op on error results and when there
363
- * is no mismatch. `codegraph_status` is excluded — it embeds its own verbose
363
+ * is no mismatch. `lattice_sensor_status` is excluded — it embeds its own verbose
364
364
  * warning — so it stays out of this path.
365
365
  */
366
366
  private withWorktreeNotice;
@@ -398,13 +398,13 @@ export declare class ToolHandler {
398
398
  executeReadTool(toolName: string, args: Record<string, unknown>): Promise<ToolResult>;
399
399
  /**
400
400
  * Pure dispatch over the read tools — the switch, with no gate, no notices, no
401
- * allowlist/validation (the caller owns those). `codegraph_status` is handled
401
+ * allowlist/validation (the caller owns those). `lattice_sensor_status` is handled
402
402
  * on the main thread in {@link execute} and never reaches here. May throw
403
403
  * NotIndexed/PathRefusal, which {@link executeReadTool} classifies.
404
404
  */
405
405
  private dispatchTool;
406
406
  /**
407
- * Handle codegraph_search
407
+ * Handle lattice_sensor_search
408
408
  */
409
409
  private handleSearch;
410
410
  /**
@@ -418,15 +418,15 @@ export declare class ToolHandler {
418
418
  /** Section heading for one distinct definition in grouped output. */
419
419
  private definitionHeading;
420
420
  /**
421
- * Handle codegraph_callers
421
+ * Handle lattice_sensor_callers
422
422
  */
423
423
  private handleCallers;
424
424
  /**
425
- * Handle codegraph_callees
425
+ * Handle lattice_sensor_callees
426
426
  */
427
427
  private handleCallees;
428
428
  /**
429
- * Handle codegraph_impact
429
+ * Handle lattice_sensor_impact
430
430
  */
431
431
  private handleImpact;
432
432
  /**
@@ -437,7 +437,7 @@ export declare class ToolHandler {
437
437
  */
438
438
  private synthEdgeNote;
439
439
  /**
440
- * Flow-from-named-symbols: an agent's codegraph_explore query is a bag of
440
+ * Flow-from-named-symbols: an agent's lattice_sensor_explore query is a bag of
441
441
  * symbol names that usually spans the flow it's investigating (e.g.
442
442
  * "PmsProductController getList PmsProductService list PmsProductServiceImpl").
443
443
  * Surface the longest call chain AMONG those named symbols — scoped to what the
@@ -473,7 +473,7 @@ export declare class ToolHandler {
473
473
  * the concrete target is chosen at runtime from N implementations, so no single
474
474
  * static edge is "the answer" — the implementations ARE the continuations. We
475
475
  * announce the supertype, its TRUE implementer count, and a few concrete targets,
476
- * then steer to codegraph_explore. Graph-only, query-time, zero mutation; the
476
+ * then steer to lattice_sensor_explore. Graph-only, query-time, zero mutation; the
477
477
  * caller fires it ONLY for an UNCOVERED named token, so a connected flow is silent.
478
478
  *
479
479
  * Robust to FTS sampling bias: the same-name family is a capped FTS sample that
@@ -506,7 +506,7 @@ export declare class ToolHandler {
506
506
  * PageRank) from the query's matched SEED nodes over the call/reference graph.
507
507
  *
508
508
  * This is the ranking signal text search (FTS/bm25) CANNOT provide, and it's
509
- * codegraph's home turf: relevance by STRUCTURE, not words. A file whose
509
+ * lattice sensor's home turf: relevance by STRUCTURE, not words. A file whose
510
510
  * symbols are call-connected to the matched cluster accrues walk mass and
511
511
  * ranks high; a lone TEXT match — e.g. `LensSwitcher.swift` matched the word
512
512
  * "switch" from `switchOrganization`, but calls none of `setUser`/`fetchUser`
@@ -519,11 +519,11 @@ export declare class ToolHandler {
519
519
  */
520
520
  private computeGraphRelevance;
521
521
  /**
522
- * Handle codegraph_explore — deep exploration in a single call
522
+ * Handle lattice_sensor_explore — deep exploration in a single call
523
523
  *
524
524
  * Strategy: find relevant symbols via graph traversal, group by file,
525
525
  * then read contiguous file sections covering all symbols per file.
526
- * This replaces multiple codegraph_node + Read calls.
526
+ * This replaces multiple lattice_sensor_node + Read calls.
527
527
  *
528
528
  * Output size is adaptive to project file count via
529
529
  * `getExploreOutputBudget` — see #185 for why a fixed 35k cap was a
@@ -531,7 +531,7 @@ export declare class ToolHandler {
531
531
  */
532
532
  private handleExplore;
533
533
  /**
534
- * Handle codegraph_node
534
+ * Handle lattice_sensor_node
535
535
  */
536
536
  private handleNode;
537
537
  /**
@@ -552,20 +552,20 @@ export declare class ToolHandler {
552
552
  private renderNodeSection;
553
553
  /**
554
554
  * Build the "trail" for a symbol: its direct callees (what it calls) and
555
- * callers (what calls it), each with file:line — so codegraph_node doubles as
555
+ * callers (what calls it), each with file:line — so lattice_sensor_node doubles as
556
556
  * the structural Grep→Read→expand primitive: a spot PLUS where to go next.
557
- * Capped to stay cheap. Walk the graph by calling codegraph_node on a trail
557
+ * Capped to stay cheap. Walk the graph by calling lattice_sensor_node on a trail
558
558
  * entry; no Read needed for covered hops. Empty edges on a non-leaf often mean
559
559
  * dynamic dispatch the static graph couldn't resolve — that absence is itself
560
560
  * a signal (read that one hop) rather than a dead end.
561
561
  */
562
562
  private formatTrail;
563
563
  /**
564
- * Handle codegraph_status
564
+ * Handle lattice_sensor_status
565
565
  */
566
566
  private handleStatus;
567
567
  /**
568
- * Handle codegraph_files - get project file structure from the index
568
+ * Handle lattice_sensor_files - get project file structure from the index
569
569
  */
570
570
  private handleFiles;
571
571
  /**
@@ -608,7 +608,7 @@ export declare class ToolHandler {
608
608
  */
609
609
  private matchesSymbol;
610
610
  /**
611
- * Find ALL definitions matching a name, ranked, so codegraph_node can return
611
+ * Find ALL definitions matching a name, ranked, so lattice_sensor_node can return
612
612
  * every overload instead of guessing one (the wrong guess → a Read). Keepers
613
613
  * rank before generated stubs (.pb.go etc.); stable within a group preserves
614
614
  * FTS order. Returns [] when nothing matches; a qualified lookup that finds no
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/mcp/tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAgB9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAW3C;;;;;;;;;;GAUG;AACH,qBAAa,eAAgB,SAAQ,KAAK;CAAG;AAE7C;;;GAGG;AACH,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