@nxuss/lemma 1.18.0 → 1.18.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 (356) hide show
  1. package/dist/cjs/mcp/cognitiveMap.d.ts +27 -0
  2. package/dist/cjs/mcp/cognitiveMap.d.ts.map +1 -0
  3. package/dist/cjs/mcp/cognitiveMap.js +47 -0
  4. package/dist/cjs/mcp/cognitiveMap.js.map +1 -0
  5. package/dist/cjs/mcp/toolTypes.d.ts +39 -0
  6. package/dist/cjs/mcp/toolTypes.d.ts.map +1 -0
  7. package/dist/cjs/mcp/toolTypes.js +8 -0
  8. package/dist/cjs/mcp/toolTypes.js.map +1 -0
  9. package/dist/cjs/mcp/tools/analysis.d.ts +11 -0
  10. package/dist/cjs/mcp/tools/analysis.d.ts.map +1 -0
  11. package/dist/cjs/mcp/tools/analysis.js +933 -0
  12. package/dist/cjs/mcp/tools/analysis.js.map +1 -0
  13. package/dist/cjs/mcp/tools/codenav.d.ts +9 -0
  14. package/dist/cjs/mcp/tools/codenav.d.ts.map +1 -0
  15. package/dist/cjs/mcp/tools/codenav.js +524 -0
  16. package/dist/cjs/mcp/tools/codenav.js.map +1 -0
  17. package/dist/cjs/mcp/tools/context-tools.d.ts +20 -0
  18. package/dist/cjs/mcp/tools/context-tools.d.ts.map +1 -0
  19. package/dist/cjs/mcp/tools/context-tools.js +543 -0
  20. package/dist/cjs/mcp/tools/context-tools.js.map +1 -0
  21. package/dist/cjs/mcp/tools/depgraph.d.ts +8 -0
  22. package/dist/cjs/mcp/tools/depgraph.d.ts.map +1 -0
  23. package/dist/cjs/mcp/tools/depgraph.js +321 -0
  24. package/dist/cjs/mcp/tools/depgraph.js.map +1 -0
  25. package/dist/cjs/mcp/tools/dev-utils.d.ts +11 -0
  26. package/dist/cjs/mcp/tools/dev-utils.d.ts.map +1 -0
  27. package/dist/cjs/mcp/tools/dev-utils.js +519 -0
  28. package/dist/cjs/mcp/tools/dev-utils.js.map +1 -0
  29. package/dist/cjs/mcp/tools/devtools.d.ts +9 -0
  30. package/dist/cjs/mcp/tools/devtools.d.ts.map +1 -0
  31. package/dist/cjs/mcp/tools/devtools.js +445 -0
  32. package/dist/cjs/mcp/tools/devtools.js.map +1 -0
  33. package/dist/cjs/mcp/tools/memory.d.ts +10 -0
  34. package/dist/cjs/mcp/tools/memory.d.ts.map +1 -0
  35. package/dist/cjs/mcp/tools/memory.js +539 -0
  36. package/dist/cjs/mcp/tools/memory.js.map +1 -0
  37. package/dist/cjs/mcp/tools/misc.d.ts +10 -0
  38. package/dist/cjs/mcp/tools/misc.d.ts.map +1 -0
  39. package/dist/cjs/mcp/tools/misc.js +423 -0
  40. package/dist/cjs/mcp/tools/misc.js.map +1 -0
  41. package/dist/cjs/mcp/tools/refactor.d.ts +8 -0
  42. package/dist/cjs/mcp/tools/refactor.d.ts.map +1 -0
  43. package/dist/cjs/mcp/tools/refactor.js +335 -0
  44. package/dist/cjs/mcp/tools/refactor.js.map +1 -0
  45. package/dist/cjs/mcp/tools/review.d.ts +10 -0
  46. package/dist/cjs/mcp/tools/review.d.ts.map +1 -0
  47. package/dist/cjs/mcp/tools/review.js +283 -0
  48. package/dist/cjs/mcp/tools/review.js.map +1 -0
  49. package/dist/cjs/mcp/tools/squeeze-cache.d.ts +14 -0
  50. package/dist/cjs/mcp/tools/squeeze-cache.d.ts.map +1 -0
  51. package/dist/cjs/mcp/tools/squeeze-cache.js +418 -0
  52. package/dist/cjs/mcp/tools/squeeze-cache.js.map +1 -0
  53. package/dist/cjs/mcp/tools/text-ops.d.ts +14 -0
  54. package/dist/cjs/mcp/tools/text-ops.d.ts.map +1 -0
  55. package/dist/cjs/mcp/tools/text-ops.js +155 -0
  56. package/dist/cjs/mcp/tools/text-ops.js.map +1 -0
  57. package/dist/cjs/mcp/tools/workspace.d.ts +10 -0
  58. package/dist/cjs/mcp/tools/workspace.d.ts.map +1 -0
  59. package/dist/cjs/mcp/tools/workspace.js +675 -0
  60. package/dist/cjs/mcp/tools/workspace.js.map +1 -0
  61. package/dist/cjs/mcp/tools.d.ts.map +1 -1
  62. package/dist/cjs/mcp/tools.js +636 -6388
  63. package/dist/cjs/mcp/tools.js.map +1 -1
  64. package/dist/cjs/mcp/utils.d.ts +55 -2
  65. package/dist/cjs/mcp/utils.d.ts.map +1 -1
  66. package/dist/cjs/mcp/utils.js +194 -10
  67. package/dist/cjs/mcp/utils.js.map +1 -1
  68. package/dist/cjs/mcp/workspaceShared.d.ts +19 -0
  69. package/dist/cjs/mcp/workspaceShared.d.ts.map +1 -0
  70. package/dist/cjs/mcp/workspaceShared.js +101 -0
  71. package/dist/cjs/mcp/workspaceShared.js.map +1 -0
  72. package/dist/cjs/package.json +3 -0
  73. package/dist/cjs/utils/ExecAuditLog.d.ts +27 -0
  74. package/dist/cjs/utils/ExecAuditLog.d.ts.map +1 -0
  75. package/dist/cjs/utils/ExecAuditLog.js +53 -0
  76. package/dist/cjs/utils/ExecAuditLog.js.map +1 -0
  77. package/dist/esm/api/dashboardRoutes.d.ts +3 -3
  78. package/dist/esm/api/dashboardRoutes.js +1 -1
  79. package/dist/esm/api/server.d.ts +4 -4
  80. package/dist/esm/api/server.js +3 -3
  81. package/dist/esm/autopilot/AutopilotWatcher.js +3 -3
  82. package/dist/esm/autopilot/Notifier.d.ts +1 -1
  83. package/dist/esm/cli/lemma-proxy.js +15 -15
  84. package/dist/esm/cli/stack.d.ts +4 -4
  85. package/dist/esm/cli/stack.js +5 -5
  86. package/dist/esm/cloud/KeyManager.d.ts +1 -1
  87. package/dist/esm/cloud/KeyManager.js +1 -1
  88. package/dist/esm/cloud/TenantCache.d.ts +1 -1
  89. package/dist/esm/cloud/identity/ApiKey.d.ts +1 -1
  90. package/dist/esm/cloud/identity/TenantResolver.d.ts +1 -1
  91. package/dist/esm/cloud/identity/TenantResolver.js +1 -1
  92. package/dist/esm/cloud/identity/authenticateV2.d.ts +3 -3
  93. package/dist/esm/cloud/identity/authenticateV2.js +3 -3
  94. package/dist/esm/cloud/identity/identityStore.d.ts +2 -2
  95. package/dist/esm/cloud/identity/index.d.ts +6 -6
  96. package/dist/esm/cloud/identity/index.js +6 -6
  97. package/dist/esm/cloud/index.d.ts +3 -3
  98. package/dist/esm/cloud/index.js +3 -3
  99. package/dist/esm/cloud/metering/UsageLedger.d.ts +1 -1
  100. package/dist/esm/cloud/metering/index.d.ts +2 -2
  101. package/dist/esm/cloud/metering/index.js +2 -2
  102. package/dist/esm/cloud/scrub/StatelessScrubber.d.ts +1 -1
  103. package/dist/esm/cloud/scrub/index.d.ts +1 -1
  104. package/dist/esm/cloud/scrub/index.js +1 -1
  105. package/dist/esm/cloud/server.d.ts +3 -3
  106. package/dist/esm/cloud/server.js +5 -5
  107. package/dist/esm/cloud/store/FileBrainStore.d.ts +1 -1
  108. package/dist/esm/cloud/store/FileBrainStore.js +1 -1
  109. package/dist/esm/cloud/store/PostgresBrainStore.d.ts +1 -1
  110. package/dist/esm/cloud/store/PostgresBrainStore.js +2 -2
  111. package/dist/esm/cloud/store/index.d.ts +2 -2
  112. package/dist/esm/cloud/store/index.js +2 -2
  113. package/dist/esm/cloud/v2/app.d.ts +1 -1
  114. package/dist/esm/cloud/v2/app.js +3 -3
  115. package/dist/esm/cloud/v2/routes/index.d.ts +5 -5
  116. package/dist/esm/cloud/v2/routes/index.js +7 -7
  117. package/dist/esm/cloud/v2/routes/memories.d.ts +4 -4
  118. package/dist/esm/cloud/v2/routes/memories.js +2 -2
  119. package/dist/esm/cloud/v2/routes/recall.d.ts +1 -1
  120. package/dist/esm/cloud/v2/routes/recall.js +1 -1
  121. package/dist/esm/cloud/v2/routes/scrub.d.ts +2 -2
  122. package/dist/esm/cloud/v2/routes/scrub.js +2 -2
  123. package/dist/esm/cloud/v2/routes/usage.d.ts +1 -1
  124. package/dist/esm/cloud/v2/routes/verify.d.ts +1 -1
  125. package/dist/esm/cloud/v2/routes/verify.js +1 -1
  126. package/dist/esm/cloud/v2/server.js +4 -4
  127. package/dist/esm/config/index.d.ts +1 -1
  128. package/dist/esm/config/index.js +1 -1
  129. package/dist/esm/consensus/index.d.ts +2 -2
  130. package/dist/esm/consensus/index.js +2 -2
  131. package/dist/esm/contracts/api-v2.types.d.ts +1 -1
  132. package/dist/esm/contracts/index.d.ts +4 -4
  133. package/dist/esm/contracts/index.js +4 -4
  134. package/dist/esm/core/AgentRegistry.d.ts +1 -1
  135. package/dist/esm/core/AgentRegistry.js +1 -1
  136. package/dist/esm/core/DashboardBroadcaster.d.ts +3 -3
  137. package/dist/esm/core/DashboardBroadcaster.js +2 -2
  138. package/dist/esm/core/DashboardWebSocketServer.d.ts +1 -1
  139. package/dist/esm/core/DashboardWebSocketServer.js +1 -1
  140. package/dist/esm/core/GhostAlchemist.js +1 -1
  141. package/dist/esm/core/GhostListener.js +2 -2
  142. package/dist/esm/core/OrchestrationEngine.d.ts +3 -3
  143. package/dist/esm/core/OrchestrationEngine.js +2 -2
  144. package/dist/esm/core/SubconsciousEngine.d.ts +1 -1
  145. package/dist/esm/core/SubconsciousEngine.js +2 -2
  146. package/dist/esm/core/WebSocketServer.d.ts +2 -2
  147. package/dist/esm/core/WebSocketServer.js +1 -1
  148. package/dist/esm/core/index.d.ts +6 -6
  149. package/dist/esm/core/index.js +6 -6
  150. package/dist/esm/core/router.d.ts +3 -3
  151. package/dist/esm/core/router.js +1 -1
  152. package/dist/esm/db/database.js +1 -1
  153. package/dist/esm/embed.d.ts +2 -2
  154. package/dist/esm/embed.js +2 -2
  155. package/dist/esm/examples/basic-usage.js +1 -1
  156. package/dist/esm/index.d.ts +14 -14
  157. package/dist/esm/index.js +14 -14
  158. package/dist/esm/infra/analyzers/DriftDetector.d.ts +1 -1
  159. package/dist/esm/infra/analyzers/InfraAnalyzer.d.ts +1 -1
  160. package/dist/esm/infra/analyzers/MonolithAnalyzer.d.ts +1 -1
  161. package/dist/esm/infra/analyzers/index.d.ts +3 -3
  162. package/dist/esm/infra/analyzers/index.js +3 -3
  163. package/dist/esm/infra/cli.js +2 -2
  164. package/dist/esm/infra/config.d.ts +1 -1
  165. package/dist/esm/infra/index.d.ts +5 -5
  166. package/dist/esm/infra/index.js +5 -5
  167. package/dist/esm/infra/mcp-tools.js +5 -5
  168. package/dist/esm/infra/providers/InfraProvider.d.ts +1 -1
  169. package/dist/esm/infra/providers/JenkinsProvider.d.ts +2 -2
  170. package/dist/esm/infra/providers/OKDProvider.d.ts +2 -2
  171. package/dist/esm/infra/providers/TerraformProvider.d.ts +2 -2
  172. package/dist/esm/infra/providers/index.d.ts +5 -5
  173. package/dist/esm/infra/providers/index.js +3 -3
  174. package/dist/esm/mcp/cognitiveMap.d.ts +27 -0
  175. package/dist/esm/mcp/cognitiveMap.d.ts.map +1 -0
  176. package/dist/esm/mcp/cognitiveMap.js +40 -0
  177. package/dist/esm/mcp/cognitiveMap.js.map +1 -0
  178. package/dist/esm/mcp/index.js +5 -5
  179. package/dist/esm/mcp/prompts.js +1 -1
  180. package/dist/esm/mcp/resources.js +2 -2
  181. package/dist/esm/mcp/tasks.js +1 -1
  182. package/dist/esm/mcp/tool-profiles.js +1 -1
  183. package/dist/esm/mcp/toolTypes.d.ts +39 -0
  184. package/dist/esm/mcp/toolTypes.d.ts.map +1 -0
  185. package/dist/esm/mcp/toolTypes.js +7 -0
  186. package/dist/esm/mcp/toolTypes.js.map +1 -0
  187. package/dist/esm/mcp/tools/analysis.d.ts +11 -0
  188. package/dist/esm/mcp/tools/analysis.d.ts.map +1 -0
  189. package/dist/esm/mcp/tools/analysis.js +894 -0
  190. package/dist/esm/mcp/tools/analysis.js.map +1 -0
  191. package/dist/esm/mcp/tools/codenav.d.ts +9 -0
  192. package/dist/esm/mcp/tools/codenav.d.ts.map +1 -0
  193. package/dist/esm/mcp/tools/codenav.js +485 -0
  194. package/dist/esm/mcp/tools/codenav.js.map +1 -0
  195. package/dist/esm/mcp/tools/context-tools.d.ts +20 -0
  196. package/dist/esm/mcp/tools/context-tools.d.ts.map +1 -0
  197. package/dist/esm/mcp/tools/context-tools.js +503 -0
  198. package/dist/esm/mcp/tools/context-tools.js.map +1 -0
  199. package/dist/esm/mcp/tools/depgraph.d.ts +8 -0
  200. package/dist/esm/mcp/tools/depgraph.d.ts.map +1 -0
  201. package/dist/esm/mcp/tools/depgraph.js +315 -0
  202. package/dist/esm/mcp/tools/depgraph.js.map +1 -0
  203. package/dist/esm/mcp/tools/dev-utils.d.ts +11 -0
  204. package/dist/esm/mcp/tools/dev-utils.d.ts.map +1 -0
  205. package/dist/esm/mcp/tools/dev-utils.js +516 -0
  206. package/dist/esm/mcp/tools/dev-utils.js.map +1 -0
  207. package/dist/esm/mcp/tools/devtools.d.ts +9 -0
  208. package/dist/esm/mcp/tools/devtools.d.ts.map +1 -0
  209. package/dist/esm/mcp/tools/devtools.js +406 -0
  210. package/dist/esm/mcp/tools/devtools.js.map +1 -0
  211. package/dist/esm/mcp/tools/memory.d.ts +10 -0
  212. package/dist/esm/mcp/tools/memory.d.ts.map +1 -0
  213. package/dist/esm/mcp/tools/memory.js +533 -0
  214. package/dist/esm/mcp/tools/memory.js.map +1 -0
  215. package/dist/esm/mcp/tools/misc.d.ts +10 -0
  216. package/dist/esm/mcp/tools/misc.d.ts.map +1 -0
  217. package/dist/esm/mcp/tools/misc.js +417 -0
  218. package/dist/esm/mcp/tools/misc.js.map +1 -0
  219. package/dist/esm/mcp/tools/refactor.d.ts +8 -0
  220. package/dist/esm/mcp/tools/refactor.d.ts.map +1 -0
  221. package/dist/esm/mcp/tools/refactor.js +296 -0
  222. package/dist/esm/mcp/tools/refactor.js.map +1 -0
  223. package/dist/esm/mcp/tools/review.d.ts +10 -0
  224. package/dist/esm/mcp/tools/review.d.ts.map +1 -0
  225. package/dist/esm/mcp/tools/review.js +277 -0
  226. package/dist/esm/mcp/tools/review.js.map +1 -0
  227. package/dist/esm/mcp/tools/squeeze-cache.d.ts +14 -0
  228. package/dist/esm/mcp/tools/squeeze-cache.d.ts.map +1 -0
  229. package/dist/esm/mcp/tools/squeeze-cache.js +382 -0
  230. package/dist/esm/mcp/tools/squeeze-cache.js.map +1 -0
  231. package/dist/esm/mcp/tools/text-ops.d.ts +14 -0
  232. package/dist/esm/mcp/tools/text-ops.d.ts.map +1 -0
  233. package/dist/esm/mcp/tools/text-ops.js +152 -0
  234. package/dist/esm/mcp/tools/text-ops.js.map +1 -0
  235. package/dist/esm/mcp/tools/workspace.d.ts +10 -0
  236. package/dist/esm/mcp/tools/workspace.d.ts.map +1 -0
  237. package/dist/esm/mcp/tools/workspace.js +669 -0
  238. package/dist/esm/mcp/tools/workspace.js.map +1 -0
  239. package/dist/esm/mcp/tools.d.ts +1 -1
  240. package/dist/esm/mcp/tools.d.ts.map +1 -1
  241. package/dist/esm/mcp/tools.js +652 -6404
  242. package/dist/esm/mcp/tools.js.map +1 -1
  243. package/dist/esm/mcp/utils.d.ts +55 -2
  244. package/dist/esm/mcp/utils.d.ts.map +1 -1
  245. package/dist/esm/mcp/utils.js +189 -10
  246. package/dist/esm/mcp/utils.js.map +1 -1
  247. package/dist/esm/mcp/workspaceShared.d.ts +19 -0
  248. package/dist/esm/mcp/workspaceShared.d.ts.map +1 -0
  249. package/dist/esm/mcp/workspaceShared.js +93 -0
  250. package/dist/esm/mcp/workspaceShared.js.map +1 -0
  251. package/dist/esm/observability/IdeContextSync.d.ts +1 -1
  252. package/dist/esm/observability/IdeContextSync.js +5 -5
  253. package/dist/esm/package.json +3 -0
  254. package/dist/esm/pr-review/PRReviewEngine.d.ts +1 -1
  255. package/dist/esm/pr-review/PRReviewEngine.js +4 -4
  256. package/dist/esm/pr-review/ReviewStore.d.ts +1 -1
  257. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.d.ts +2 -2
  258. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.js +1 -1
  259. package/dist/esm/pr-review/adapters/GitHubAdapter.d.ts +2 -2
  260. package/dist/esm/pr-review/adapters/GitHubAdapter.js +1 -1
  261. package/dist/esm/pr-review/adapters/GitLabAdapter.d.ts +2 -2
  262. package/dist/esm/pr-review/adapters/GitLabAdapter.js +1 -1
  263. package/dist/esm/pr-review/adapters/GitPlatformAdapter.d.ts +1 -1
  264. package/dist/esm/pr-review/adapters/index.d.ts +4 -4
  265. package/dist/esm/pr-review/adapters/index.js +3 -3
  266. package/dist/esm/pr-review/analyzers/QualityGrader.d.ts +1 -1
  267. package/dist/esm/pr-review/analyzers/RegressionDetector.d.ts +1 -1
  268. package/dist/esm/pr-review/analyzers/SecurityScanner.d.ts +1 -1
  269. package/dist/esm/pr-review/analyzers/StaticAnalyzer.d.ts +1 -1
  270. package/dist/esm/pr-review/analyzers/index.d.ts +8 -8
  271. package/dist/esm/pr-review/analyzers/index.js +4 -4
  272. package/dist/esm/pr-review/bridge/BrainBridge.d.ts +1 -1
  273. package/dist/esm/pr-review/bridge/BrainBridge.js +1 -1
  274. package/dist/esm/pr-review/bridge/index.d.ts +1 -1
  275. package/dist/esm/pr-review/bridge/index.js +1 -1
  276. package/dist/esm/pr-review/index.d.ts +4 -4
  277. package/dist/esm/pr-review/index.js +2 -2
  278. package/dist/esm/pr-review/reviewRunner.d.ts +2 -2
  279. package/dist/esm/pr-review/reviewRunner.js +6 -6
  280. package/dist/esm/pr-review/webhook/WebhookServer.js +1 -1
  281. package/dist/esm/pr-review/webhook/index.d.ts +1 -1
  282. package/dist/esm/pr-review/webhook/index.js +1 -1
  283. package/dist/esm/protocol/flows.d.ts +1 -1
  284. package/dist/esm/protocol/flows.js +1 -1
  285. package/dist/esm/protocol/index.d.ts +4 -4
  286. package/dist/esm/protocol/index.js +4 -4
  287. package/dist/esm/protocol/utils.d.ts +1 -1
  288. package/dist/esm/protocol/utils.js +2 -2
  289. package/dist/esm/protocol/validators.d.ts +1 -1
  290. package/dist/esm/protocol/validators.js +1 -1
  291. package/dist/esm/proxy/ContextInjector.d.ts +1 -1
  292. package/dist/esm/proxy/Gatekeeper.d.ts +1 -1
  293. package/dist/esm/security/SecurityMiddleware.d.ts +1 -1
  294. package/dist/esm/security/SecurityMiddleware.js +3 -3
  295. package/dist/esm/security/index.d.ts +4 -4
  296. package/dist/esm/security/index.js +4 -4
  297. package/dist/esm/speculative/SpeculativeCache.d.ts +2 -2
  298. package/dist/esm/speculative/SpeculativeEngine.d.ts +2 -2
  299. package/dist/esm/speculative/SpeculativeEngine.js +3 -3
  300. package/dist/esm/speculative/WorkerPool.d.ts +1 -1
  301. package/dist/esm/speculative/index.d.ts +4 -4
  302. package/dist/esm/speculative/index.js +4 -4
  303. package/dist/esm/subconscious/GitIngest.d.ts +1 -1
  304. package/dist/esm/subconscious/GitIngest.js +1 -1
  305. package/dist/esm/subconscious/SemanticCache.d.ts +2 -2
  306. package/dist/esm/subconscious/SemanticCache.js +2 -2
  307. package/dist/esm/subconscious/SubconsciousEngine.d.ts +1 -1
  308. package/dist/esm/subconscious/SubconsciousEngine.js +3 -3
  309. package/dist/esm/subconscious/TheBrainV2.d.ts +1 -1
  310. package/dist/esm/subconscious/TheBrainV2.js +2 -2
  311. package/dist/esm/subconscious/freshness/LocalFsResolver.d.ts +1 -1
  312. package/dist/esm/subconscious/freshness/LocalFsResolver.js +1 -1
  313. package/dist/esm/subconscious/freshness/SuppliedEvidenceResolver.d.ts +1 -1
  314. package/dist/esm/subconscious/freshness/index.d.ts +2 -2
  315. package/dist/esm/subconscious/freshness/index.js +2 -2
  316. package/dist/esm/subconscious/index.d.ts +4 -4
  317. package/dist/esm/subconscious/index.js +4 -4
  318. package/dist/esm/utils/AffectedTests.js +1 -1
  319. package/dist/esm/utils/AutoContextBundle.d.ts +1 -1
  320. package/dist/esm/utils/AutoContextBundle.js +4 -4
  321. package/dist/esm/utils/BulkFileDigest.js +2 -2
  322. package/dist/esm/utils/ClipboardWatcher.js +2 -2
  323. package/dist/esm/utils/ContextCollapser.js +1 -1
  324. package/dist/esm/utils/ConversationCheckpoint.js +1 -1
  325. package/dist/esm/utils/ExecAuditLog.d.ts +27 -0
  326. package/dist/esm/utils/ExecAuditLog.d.ts.map +1 -0
  327. package/dist/esm/utils/ExecAuditLog.js +45 -0
  328. package/dist/esm/utils/ExecAuditLog.js.map +1 -0
  329. package/dist/esm/utils/ExecutiveReport.js +1 -1
  330. package/dist/esm/utils/OutputLedger.js +2 -2
  331. package/dist/esm/utils/ReadWorkspaceCache.js +1 -1
  332. package/dist/esm/utils/SpeculativeWarmer.d.ts +1 -1
  333. package/dist/esm/utils/SpeculativeWarmer.js +2 -2
  334. package/dist/esm/utils/StateHashCache.js +1 -1
  335. package/dist/esm/utils/StructuralSearch.d.ts +1 -1
  336. package/dist/esm/utils/SurgicalASTInsert.js +1 -1
  337. package/dist/esm/utils/SymbolSurgicalContext.js +1 -1
  338. package/dist/esm/utils/TestAutofixInterceptor.js +1 -1
  339. package/dist/esm/utils/WorkspaceSearch.js +0 -0
  340. package/dist/esm/utils/logger.js +1 -1
  341. package/dist/esm/utils/reportSavings.js +1 -1
  342. package/package.json +3 -1
  343. package/sdks/crewai/dist/crewai/src/index.d.ts +131 -0
  344. package/sdks/crewai/dist/crewai/src/index.js +325 -0
  345. package/sdks/crewai/dist/crewai/src/memory.d.ts +36 -0
  346. package/sdks/crewai/dist/crewai/src/memory.js +61 -0
  347. package/sdks/crewai/dist/ts/src/client.d.ts +39 -0
  348. package/sdks/crewai/dist/ts/src/client.js +124 -0
  349. package/sdks/crewai/dist/ts/src/errors.d.ts +19 -0
  350. package/sdks/crewai/dist/ts/src/errors.js +18 -0
  351. package/sdks/crewai/dist/ts/src/evidence.d.ts +30 -0
  352. package/sdks/crewai/dist/ts/src/evidence.js +175 -0
  353. package/sdks/crewai/dist/ts/src/index.d.ts +4 -0
  354. package/sdks/crewai/dist/ts/src/index.js +27 -0
  355. package/sdks/crewai/dist/ts/src/types.d.ts +112 -0
  356. package/sdks/crewai/dist/ts/src/types.js +11 -0
@@ -1,4 +1,4 @@
1
- import { Finding, DiffFile } from "../types";
1
+ import { Finding, DiffFile } from "../types.js";
2
2
  export interface SecurityAnalysisResult {
3
3
  findings: Finding[];
4
4
  score: number;
@@ -1,4 +1,4 @@
1
- import { Finding, DiffFile } from "../types";
1
+ import { Finding, DiffFile } from "../types.js";
2
2
  export interface StaticAnalysisResult {
3
3
  findings: Finding[];
4
4
  score: number;
@@ -1,9 +1,9 @@
1
- export { analyzeStatic } from "./StaticAnalyzer";
2
- export type { StaticAnalysisResult } from "./StaticAnalyzer";
3
- export { analyzeQuality } from "./QualityGrader";
4
- export type { QualityAnalysisResult } from "./QualityGrader";
5
- export { analyzeSecurity } from "./SecurityScanner";
6
- export type { SecurityAnalysisResult } from "./SecurityScanner";
7
- export { analyzeRegression } from "./RegressionDetector";
8
- export type { RegressionAnalysisResult } from "./RegressionDetector";
1
+ export { analyzeStatic } from "./StaticAnalyzer.js";
2
+ export type { StaticAnalysisResult } from "./StaticAnalyzer.js";
3
+ export { analyzeQuality } from "./QualityGrader.js";
4
+ export type { QualityAnalysisResult } from "./QualityGrader.js";
5
+ export { analyzeSecurity } from "./SecurityScanner.js";
6
+ export type { SecurityAnalysisResult } from "./SecurityScanner.js";
7
+ export { analyzeRegression } from "./RegressionDetector.js";
8
+ export type { RegressionAnalysisResult } from "./RegressionDetector.js";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export { analyzeStatic } from "./StaticAnalyzer";
2
- export { analyzeQuality } from "./QualityGrader";
3
- export { analyzeSecurity } from "./SecurityScanner";
4
- export { analyzeRegression } from "./RegressionDetector";
1
+ export { analyzeStatic } from "./StaticAnalyzer.js";
2
+ export { analyzeQuality } from "./QualityGrader.js";
3
+ export { analyzeSecurity } from "./SecurityScanner.js";
4
+ export { analyzeRegression } from "./RegressionDetector.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { Finding } from "../types";
1
+ import { Finding } from "../types.js";
2
2
  interface BrainMemory {
3
3
  prompt: string;
4
4
  response: string;
@@ -1,4 +1,4 @@
1
- import { getBrain, deriveProjectId } from "../../subconscious/TheBrainV2";
1
+ import { getBrain, deriveProjectId } from "../../subconscious/TheBrainV2.js";
2
2
  /**
3
3
  * Talks to TheBrainV2 directly instead of the proxy's /api/search and /api/memory/store
4
4
  * routes. Those routes are backed by ChromaDB + a local Ollama embeddings server on :11434 —
@@ -1,2 +1,2 @@
1
- export { BrainBridge } from "./BrainBridge";
1
+ export { BrainBridge } from "./BrainBridge.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { BrainBridge } from "./BrainBridge";
1
+ export { BrainBridge } from "./BrainBridge.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- export { runAnalysis, parseDiff } from "./PRReviewEngine";
2
- export type { AnalyzeResult } from "./types";
3
- export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers";
4
- export type { StaticAnalysisResult, QualityAnalysisResult, SecurityAnalysisResult, RegressionAnalysisResult, } from "./analyzers";
1
+ export { runAnalysis, parseDiff } from "./PRReviewEngine.js";
2
+ export type { AnalyzeResult } from "./types.js";
3
+ export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers/index.js";
4
+ export type { StaticAnalysisResult, QualityAnalysisResult, SecurityAnalysisResult, RegressionAnalysisResult, } from "./analyzers/index.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { runAnalysis, parseDiff } from "./PRReviewEngine";
2
- export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers";
1
+ export { runAnalysis, parseDiff } from "./PRReviewEngine.js";
2
+ export { analyzeStatic, analyzeQuality, analyzeSecurity, analyzeRegression, } from "./analyzers/index.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import type { GitPlatformAdapter } from "./adapters/GitPlatformAdapter";
2
- import type { Platform, PRMetadata } from "./types";
1
+ import type { GitPlatformAdapter } from "./adapters/GitPlatformAdapter.js";
2
+ import type { Platform, PRMetadata } from "./types.js";
3
3
  export declare function getAdapter(platform: string, token: string): GitPlatformAdapter;
4
4
  export declare function getTokenForPlatform(platform: string): string;
5
5
  export interface PRReviewOptions {
@@ -1,9 +1,9 @@
1
- import { runAnalysis } from "./PRReviewEngine";
2
- import { ReviewStore } from "./ReviewStore";
3
- import { BrainBridge } from "./bridge/BrainBridge";
4
- import { GitHubAdapter } from "./adapters/GitHubAdapter";
5
- import { AzureDevOpsAdapter } from "./adapters/AzureDevOpsAdapter";
6
- import { GitLabAdapter } from "./adapters/GitLabAdapter";
1
+ import { runAnalysis } from "./PRReviewEngine.js";
2
+ import { ReviewStore } from "./ReviewStore.js";
3
+ import { BrainBridge } from "./bridge/BrainBridge.js";
4
+ import { GitHubAdapter } from "./adapters/GitHubAdapter.js";
5
+ import { AzureDevOpsAdapter } from "./adapters/AzureDevOpsAdapter.js";
6
+ import { GitLabAdapter } from "./adapters/GitLabAdapter.js";
7
7
  const brainBridge = new BrainBridge();
8
8
  export function getAdapter(platform, token) {
9
9
  switch (platform) {
@@ -1,6 +1,6 @@
1
1
  import { Router } from "express";
2
2
  import crypto from "crypto";
3
- import { runPRReview } from "../reviewRunner";
3
+ import { runPRReview } from "../reviewRunner.js";
4
4
  function verifyGitHubSignature(payload, signature, secret) {
5
5
  const sig = `sha256=${crypto.createHmac("sha256", secret).update(payload).digest("hex")}`;
6
6
  if (signature.length !== sig.length)
@@ -1,2 +1,2 @@
1
- export { createWebhookRouter } from "./WebhookServer";
1
+ export { createWebhookRouter } from "./WebhookServer.js";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { createWebhookRouter } from "./WebhookServer";
1
+ export { createWebhookRouter } from "./WebhookServer.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Protocol flow definitions and state machine logic
5
5
  */
6
- import { MessageType, TaskStatus, AgentId, TaskId } from './types';
6
+ import { MessageType, TaskStatus, AgentId, TaskId } from './types.js';
7
7
  /**
8
8
  * Protocol flow states
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Protocol flow definitions and state machine logic
5
5
  */
6
- import { MessageType, TaskStatus } from './types';
6
+ import { MessageType, TaskStatus } from './types.js';
7
7
  /**
8
8
  * Protocol flow states
9
9
  */
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * Main entry point for the protocol implementation
5
5
  */
6
- export * from './types';
7
- export * from './validators';
8
- export * from './flows';
9
- export * from './utils';
6
+ export * from './types.js';
7
+ export * from './validators.js';
8
+ export * from './flows.js';
9
+ export * from './utils.js';
10
10
  export declare const IAP_VERSION = "1.0.0";
11
11
  export declare const IAP_NAME = "Inter-Agent Protocol";
12
12
  /**
@@ -4,13 +4,13 @@
4
4
  * Main entry point for the protocol implementation
5
5
  */
6
6
  // Export all types
7
- export * from './types';
7
+ export * from './types.js';
8
8
  // Export validators
9
- export * from './validators';
9
+ export * from './validators.js';
10
10
  // Export flows
11
- export * from './flows';
11
+ export * from './flows.js';
12
12
  // Export utilities
13
- export * from './utils';
13
+ export * from './utils.js';
14
14
  // Version information
15
15
  export const IAP_VERSION = '1.0.0';
16
16
  export const IAP_NAME = 'Inter-Agent Protocol';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Utility functions for message creation and handling
5
5
  */
6
- import { IAPMessage, MessageType, AgentId, TaskId, MessageId, AgentHandshake, TaskProposal, TaskBid, ContextTransfer, ErrorMessage, CapabilityDiscovery, TaskAssignment, TaskResult, Heartbeat, DisconnectMessage } from './types';
6
+ import { IAPMessage, MessageType, AgentId, TaskId, MessageId, AgentHandshake, TaskProposal, TaskBid, ContextTransfer, ErrorMessage, CapabilityDiscovery, TaskAssignment, TaskResult, Heartbeat, DisconnectMessage } from './types.js';
7
7
  /**
8
8
  * Generates a unique message ID
9
9
  */
@@ -5,8 +5,8 @@
5
5
  */
6
6
  import { v4 as uuidv4 } from 'uuid';
7
7
  import { gzipSync, gunzipSync } from 'zlib';
8
- import { MessageType } from './types';
9
- import { PROTOCOL_VERSION } from './validators';
8
+ import { MessageType } from './types.js';
9
+ import { PROTOCOL_VERSION } from './validators.js';
10
10
  /**
11
11
  * Generates a unique message ID
12
12
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Message validators for ensuring protocol compliance
5
5
  */
6
- import { IAPMessage, ErrorMessage } from './types';
6
+ import { IAPMessage, ErrorMessage } from './types.js';
7
7
  /**
8
8
  * Validation result
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Message validators for ensuring protocol compliance
5
5
  */
6
- import { MessageType, CapabilityType } from './types';
6
+ import { MessageType, CapabilityType } from './types.js';
7
7
  /**
8
8
  * Protocol version supported by this implementation
9
9
  */
@@ -1,4 +1,4 @@
1
- import type { RegisteredProject } from "./ProjectRegistry";
1
+ import type { RegisteredProject } from "./ProjectRegistry.js";
2
2
  export type InjectionLevel = "none" | "minimal" | "deep";
3
3
  export interface InjectionSession {
4
4
  alreadyInjected: boolean;
@@ -9,7 +9,7 @@
9
9
  * Emits 'mode-changed' when the effective tier switches.
10
10
  */
11
11
  import { EventEmitter } from 'events';
12
- import { KeyManager } from './KeyManager';
12
+ import { KeyManager } from './KeyManager.js';
13
13
  export type CacheMode = 'standard' | 'pro';
14
14
  export interface GatekeeperStatus {
15
15
  mode: CacheMode;
@@ -1,4 +1,4 @@
1
- import { ApiKey } from './AuthManager';
1
+ import { ApiKey } from './AuthManager.js';
2
2
  /**
3
3
  * Security Middleware
4
4
  * Integrates all security features into a single middleware
@@ -1,6 +1,6 @@
1
- import { AuthManager } from './AuthManager';
2
- import { RateLimiter } from './RateLimiter';
3
- import { MessageSanitizer } from './MessageSanitizer';
1
+ import { AuthManager } from './AuthManager.js';
2
+ import { RateLimiter } from './RateLimiter.js';
3
+ import { MessageSanitizer } from './MessageSanitizer.js';
4
4
  export class SecurityMiddleware {
5
5
  constructor(config) {
6
6
  this.config = config;
@@ -2,10 +2,10 @@
2
2
  * Security Module
3
3
  * Exports all security-related components
4
4
  */
5
- export { AuthManager, ApiKey, AuthConfig } from './AuthManager';
6
- export { RateLimiter, RateLimitConfig } from './RateLimiter';
7
- export { MessageSanitizer, SanitizationResult } from './MessageSanitizer';
8
- export { SecurityMiddleware, SecurityConfig, SecurityCheckResult } from './SecurityMiddleware';
5
+ export { AuthManager, ApiKey, AuthConfig } from './AuthManager.js';
6
+ export { RateLimiter, RateLimitConfig } from './RateLimiter.js';
7
+ export { MessageSanitizer, SanitizationResult } from './MessageSanitizer.js';
8
+ export { SecurityMiddleware, SecurityConfig, SecurityCheckResult } from './SecurityMiddleware.js';
9
9
  /**
10
10
  * Default security configuration
11
11
  */
@@ -2,10 +2,10 @@
2
2
  * Security Module
3
3
  * Exports all security-related components
4
4
  */
5
- export { AuthManager } from './AuthManager';
6
- export { RateLimiter } from './RateLimiter';
7
- export { MessageSanitizer } from './MessageSanitizer';
8
- export { SecurityMiddleware } from './SecurityMiddleware';
5
+ export { AuthManager } from './AuthManager.js';
6
+ export { RateLimiter } from './RateLimiter.js';
7
+ export { MessageSanitizer } from './MessageSanitizer.js';
8
+ export { SecurityMiddleware } from './SecurityMiddleware.js';
9
9
  /**
10
10
  * Default security configuration
11
11
  */
@@ -11,8 +11,8 @@
11
11
  * - Automatic cleanup
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { Prediction } from './PredictionEngine';
15
- import { WorkerResult } from './WorkerPool';
14
+ import { Prediction } from './PredictionEngine.js';
15
+ import { WorkerResult } from './WorkerPool.js';
16
16
  export interface CacheEntry {
17
17
  id: string;
18
18
  prediction: Prediction;
@@ -11,8 +11,8 @@
11
11
  * - Graceful fallback to standard routing
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { Prediction } from './PredictionEngine';
15
- import { CacheEntry } from './SpeculativeCache';
14
+ import { Prediction } from './PredictionEngine.js';
15
+ import { CacheEntry } from './SpeculativeCache.js';
16
16
  export interface SpeculativeEngineConfig {
17
17
  enabled?: boolean;
18
18
  predictionEngine?: any;
@@ -11,9 +11,9 @@
11
11
  * - Graceful fallback to standard routing
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { PredictionEngine } from './PredictionEngine';
15
- import { WorkerPool } from './WorkerPool';
16
- import { SpeculativeCache } from './SpeculativeCache';
14
+ import { PredictionEngine } from './PredictionEngine.js';
15
+ import { WorkerPool } from './WorkerPool.js';
16
+ import { SpeculativeCache } from './SpeculativeCache.js';
17
17
  export class SpeculativeEngine extends EventEmitter {
18
18
  constructor(config = {}) {
19
19
  super();
@@ -11,7 +11,7 @@
11
11
  * - Graceful shutdown
12
12
  */
13
13
  import { EventEmitter } from 'events';
14
- import { Prediction } from './PredictionEngine';
14
+ import { Prediction } from './PredictionEngine.js';
15
15
  export interface WorkerTask {
16
16
  id: string;
17
17
  prediction: Prediction;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Exports all speculative execution components for Phase 3.
5
5
  */
6
- export { PredictionEngine, PredictionRequest, Prediction, PredictionEngineConfig, PredictionMetrics } from './PredictionEngine';
7
- export { WorkerPool, WorkerTask, WorkerResult, WorkerPoolConfig, WorkerPoolMetrics } from './WorkerPool';
8
- export { SpeculativeCache, CacheEntry, SpeculativeCacheConfig, SpeculativeCacheMetrics } from './SpeculativeCache';
9
- export { SpeculativeEngine, SpeculativeEngineConfig, SpeculativeResult, SpeculativeMetrics } from './SpeculativeEngine';
6
+ export { PredictionEngine, PredictionRequest, Prediction, PredictionEngineConfig, PredictionMetrics } from './PredictionEngine.js';
7
+ export { WorkerPool, WorkerTask, WorkerResult, WorkerPoolConfig, WorkerPoolMetrics } from './WorkerPool.js';
8
+ export { SpeculativeCache, CacheEntry, SpeculativeCacheConfig, SpeculativeCacheMetrics } from './SpeculativeCache.js';
9
+ export { SpeculativeEngine, SpeculativeEngineConfig, SpeculativeResult, SpeculativeMetrics } from './SpeculativeEngine.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Exports all speculative execution components for Phase 3.
5
5
  */
6
- export { PredictionEngine } from './PredictionEngine';
7
- export { WorkerPool } from './WorkerPool';
8
- export { SpeculativeCache } from './SpeculativeCache';
9
- export { SpeculativeEngine } from './SpeculativeEngine';
6
+ export { PredictionEngine } from './PredictionEngine.js';
7
+ export { WorkerPool } from './WorkerPool.js';
8
+ export { SpeculativeCache } from './SpeculativeCache.js';
9
+ export { SpeculativeEngine } from './SpeculativeEngine.js';
10
10
  //# sourceMappingURL=index.js.map
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Both are deterministic, git/fs-only, and safe to run on every commit or on demand.
9
9
  */
10
- import { TheBrainV2 } from './TheBrainV2';
10
+ import { TheBrainV2 } from './TheBrainV2.js';
11
11
  export interface CommitIngestResult {
12
12
  ingested: number;
13
13
  skipped: number;
@@ -10,7 +10,7 @@
10
10
  import fs from 'fs';
11
11
  import path from 'path';
12
12
  import { execFileSync } from 'child_process';
13
- import { deriveProjectId, getBrain } from './TheBrainV2';
13
+ import { deriveProjectId, getBrain } from './TheBrainV2.js';
14
14
  const MARKER_DIR = '.lemma/session';
15
15
  const COMMIT_MARKER_FILE = 'brain-commit-marker';
16
16
  const CHANGELOG_MARKER_FILE = 'brain-changelog-marker';
@@ -1,5 +1,5 @@
1
- import { VectorStore } from './VectorStore';
2
- import { EmbeddingService } from './EmbeddingService';
1
+ import { VectorStore } from './VectorStore.js';
2
+ import { EmbeddingService } from './EmbeddingService.js';
3
3
  /**
4
4
  * Result of a cache lookup operation.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { EmbeddingService } from './EmbeddingService';
2
- import { createLogger } from '../utils/logger';
1
+ import { EmbeddingService } from './EmbeddingService.js';
2
+ import { createLogger } from '../utils/logger.js';
3
3
  const logger = createLogger('SemanticCache');
4
4
  /**
5
5
  * SemanticCache implements the "short-circuit" logic for semantic caching.
@@ -1,4 +1,4 @@
1
- import { CacheResult } from './SemanticCache';
1
+ import { CacheResult } from './SemanticCache.js';
2
2
  import { EventEmitter } from 'events';
3
3
  /**
4
4
  * Configuration options for SubconsciousEngine.
@@ -1,6 +1,6 @@
1
- import { VectorStore } from './VectorStore';
2
- import { EmbeddingService } from './EmbeddingService';
3
- import { SemanticCache } from './SemanticCache';
1
+ import { VectorStore } from './VectorStore.js';
2
+ import { EmbeddingService } from './EmbeddingService.js';
3
+ import { SemanticCache } from './SemanticCache.js';
4
4
  import { EventEmitter } from 'events';
5
5
  /**
6
6
  * SubconsciousEngine is the main orchestrator for semantic caching.
@@ -9,7 +9,7 @@
9
9
  * Compatible with: Claude CLI, Codex, OpenCode, Cursor, Windsurf, Kiro,
10
10
  * Cline, VS Code Copilot — any MCP client.
11
11
  */
12
- import type { Evidence, EvidenceResolver } from '../contracts/evidence';
12
+ import type { Evidence, EvidenceResolver } from '../contracts/evidence.js';
13
13
  export interface BrainEntry {
14
14
  id: string;
15
15
  query: string;
@@ -14,8 +14,8 @@ import path from 'path';
14
14
  import os from 'os';
15
15
  import crypto from 'crypto';
16
16
  import { execSync } from 'child_process';
17
- import { LocalFsResolver } from './freshness/LocalFsResolver';
18
- import { EmbeddingSidecar, embeddingsEnabled, semanticRerank } from './BrainEmbeddings';
17
+ import { LocalFsResolver } from './freshness/LocalFsResolver.js';
18
+ import { EmbeddingSidecar, embeddingsEnabled, semanticRerank } from './BrainEmbeddings.js';
19
19
  /**
20
20
  * Default resolver for the local MCP path. Behaviour is byte-for-byte identical to
21
21
  * the pre-refactor inline `fs.readFileSync` hashing — it never returns `null`, so
@@ -1,4 +1,4 @@
1
- import type { EvidenceResolver } from '../../contracts/evidence';
1
+ import type { EvidenceResolver } from '../../contracts/evidence.js';
2
2
  export declare class LocalFsResolver implements EvidenceResolver {
3
3
  readonly lane = "A";
4
4
  private rootDir;
@@ -16,7 +16,7 @@
16
16
  import fs from 'fs';
17
17
  import path from 'path';
18
18
  import crypto from 'crypto';
19
- import { getSymbolSurgicalContext, normalizeForFreshness } from '../../utils/SymbolSurgicalContext';
19
+ import { getSymbolSurgicalContext, normalizeForFreshness } from '../../utils/SymbolSurgicalContext.js';
20
20
  export class LocalFsResolver {
21
21
  constructor(rootDir = process.cwd()) {
22
22
  this.lane = 'A';
@@ -8,7 +8,7 @@
8
8
  * hash (from `store(..., {evidence})`) and the current evidence share the same
9
9
  * path convention, so no root/resolution happens here.
10
10
  */
11
- import type { Evidence, EvidenceResolver } from '../../contracts/evidence';
11
+ import type { Evidence, EvidenceResolver } from '../../contracts/evidence.js';
12
12
  export declare class SuppliedEvidenceResolver implements EvidenceResolver {
13
13
  readonly lane = "A";
14
14
  private currentEvidence;
@@ -5,6 +5,6 @@
5
5
  * Real implementation lands in Lane A. Until then, constructing or invoking a
6
6
  * resolver here is a non-starter, by design.
7
7
  */
8
- export * from './LocalFsResolver';
9
- export * from './SuppliedEvidenceResolver';
8
+ export * from './LocalFsResolver.js';
9
+ export * from './SuppliedEvidenceResolver.js';
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -5,6 +5,6 @@
5
5
  * Real implementation lands in Lane A. Until then, constructing or invoking a
6
6
  * resolver here is a non-starter, by design.
7
7
  */
8
- export * from './LocalFsResolver';
9
- export * from './SuppliedEvidenceResolver';
8
+ export * from './LocalFsResolver.js';
9
+ export * from './SuppliedEvidenceResolver.js';
10
10
  //# sourceMappingURL=index.js.map
@@ -5,8 +5,8 @@
5
5
  * Provides "short-circuit" logic to return cached results for similar tasks,
6
6
  * reducing latency from seconds to milliseconds.
7
7
  */
8
- export { VectorStore } from './VectorStore';
9
- export { EmbeddingService } from './EmbeddingService';
10
- export { SemanticCache, CacheResult } from './SemanticCache';
11
- export { SubconsciousEngine, SubconsciousConfig, Task, TaskResult, EngineMetrics, } from './SubconsciousEngine';
8
+ export { VectorStore } from './VectorStore.js';
9
+ export { EmbeddingService } from './EmbeddingService.js';
10
+ export { SemanticCache, CacheResult } from './SemanticCache.js';
11
+ export { SubconsciousEngine, SubconsciousConfig, Task, TaskResult, EngineMetrics, } from './SubconsciousEngine.js';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -5,8 +5,8 @@
5
5
  * Provides "short-circuit" logic to return cached results for similar tasks,
6
6
  * reducing latency from seconds to milliseconds.
7
7
  */
8
- export { VectorStore } from './VectorStore';
9
- export { EmbeddingService } from './EmbeddingService';
10
- export { SemanticCache } from './SemanticCache';
11
- export { SubconsciousEngine, } from './SubconsciousEngine';
8
+ export { VectorStore } from './VectorStore.js';
9
+ export { EmbeddingService } from './EmbeddingService.js';
10
+ export { SemanticCache } from './SemanticCache.js';
11
+ export { SubconsciousEngine, } from './SubconsciousEngine.js';
12
12
  //# sourceMappingURL=index.js.map
@@ -21,7 +21,7 @@
21
21
  import fs from "fs";
22
22
  import path from "path";
23
23
  import { execFileSync } from "child_process";
24
- import { buildDepGraphMap } from "./DepGraph";
24
+ import { buildDepGraphMap } from "./DepGraph.js";
25
25
  /** A file is a test if its name says so, or if it lives in a conventional test directory. */
26
26
  const TEST_FILE_RE = /(\.|_)(test|spec)\.[tj]sx?$/;
27
27
  const TEST_DIR_RE = /(^|\/)(__tests__|tests?|spec)(\/|$)/;
@@ -1,4 +1,4 @@
1
- import { ImportEntry } from './ImportTreeContext';
1
+ import { ImportEntry } from './ImportTreeContext.js';
2
2
  export interface TelepathicHint {
3
3
  query: string;
4
4
  response: string;
@@ -1,9 +1,9 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
- import { computeFingerprint } from './FileFingerprint';
4
- import { squeezeCode } from './ContextSqueezer';
5
- import { buildImportTree } from './ImportTreeContext';
6
- import { getBrain, deriveProjectId } from '../subconscious/TheBrainV2';
3
+ import { computeFingerprint } from './FileFingerprint.js';
4
+ import { squeezeCode } from './ContextSqueezer.js';
5
+ import { buildImportTree } from './ImportTreeContext.js';
6
+ import { getBrain, deriveProjectId } from '../subconscious/TheBrainV2.js';
7
7
  import * as ts from 'typescript';
8
8
  function estimateTokens(text) {
9
9
  return Math.ceil(text.length / 4);
@@ -1,7 +1,7 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
- import { computeFingerprint } from './FileFingerprint';
4
- import { squeezeCode } from './ContextSqueezer';
3
+ import { computeFingerprint } from './FileFingerprint.js';
4
+ import { squeezeCode } from './ContextSqueezer.js';
5
5
  function estimateTokens(text) {
6
6
  return Math.ceil(text.length / 4);
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { execSync, spawn } from 'child_process';
2
- import { squeezeCode } from './ContextSqueezer';
3
- import { savingsLedger } from './SavingsLedger';
2
+ import { squeezeCode } from './ContextSqueezer.js';
3
+ import { savingsLedger } from './SavingsLedger.js';
4
4
  /**
5
5
  * Reads text content from the macOS system clipboard using native pbpaste
6
6
  */
@@ -5,7 +5,7 @@
5
5
  * Algorithm: Query-Focused TF-IDF Centroid sentence extraction + Jaccard dedup.
6
6
  * Latency: <15ms for 100k characters.
7
7
  */
8
- import { tokenize } from '../subconscious/TheBrainV2';
8
+ import { tokenize } from '../subconscious/TheBrainV2.js';
9
9
  /**
10
10
  * Split text into logical blocks (sentences or log chunks).
11
11
  */
@@ -1,7 +1,7 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { execFileSync } from 'child_process';
4
- import { getBrain, deriveProjectId } from '../subconscious/TheBrainV2';
4
+ import { getBrain, deriveProjectId } from '../subconscious/TheBrainV2.js';
5
5
  const CHECKPOINT_DIR = '.lemma/session';
6
6
  const MAX_CHECKPOINTS = 10;
7
7
  function getDir(projectRoot) {