@nxuss/lemma 1.18.0 → 1.18.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 (334) 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 +534 -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 +416 -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 +663 -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 +626 -6388
  63. package/dist/cjs/mcp/tools.js.map +1 -1
  64. package/dist/cjs/mcp/utils.d.ts +33 -0
  65. package/dist/cjs/mcp/utils.d.ts.map +1 -1
  66. package/dist/cjs/mcp/utils.js +96 -0
  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/esm/api/dashboardRoutes.d.ts +3 -3
  74. package/dist/esm/api/dashboardRoutes.js +1 -1
  75. package/dist/esm/api/server.d.ts +4 -4
  76. package/dist/esm/api/server.js +3 -3
  77. package/dist/esm/autopilot/AutopilotWatcher.js +3 -3
  78. package/dist/esm/autopilot/Notifier.d.ts +1 -1
  79. package/dist/esm/cli/lemma-proxy.js +15 -15
  80. package/dist/esm/cli/stack.d.ts +4 -4
  81. package/dist/esm/cli/stack.js +5 -5
  82. package/dist/esm/cloud/KeyManager.d.ts +1 -1
  83. package/dist/esm/cloud/KeyManager.js +1 -1
  84. package/dist/esm/cloud/TenantCache.d.ts +1 -1
  85. package/dist/esm/cloud/identity/ApiKey.d.ts +1 -1
  86. package/dist/esm/cloud/identity/TenantResolver.d.ts +1 -1
  87. package/dist/esm/cloud/identity/TenantResolver.js +1 -1
  88. package/dist/esm/cloud/identity/authenticateV2.d.ts +3 -3
  89. package/dist/esm/cloud/identity/authenticateV2.js +3 -3
  90. package/dist/esm/cloud/identity/identityStore.d.ts +2 -2
  91. package/dist/esm/cloud/identity/index.d.ts +6 -6
  92. package/dist/esm/cloud/identity/index.js +6 -6
  93. package/dist/esm/cloud/index.d.ts +3 -3
  94. package/dist/esm/cloud/index.js +3 -3
  95. package/dist/esm/cloud/metering/UsageLedger.d.ts +1 -1
  96. package/dist/esm/cloud/metering/index.d.ts +2 -2
  97. package/dist/esm/cloud/metering/index.js +2 -2
  98. package/dist/esm/cloud/scrub/StatelessScrubber.d.ts +1 -1
  99. package/dist/esm/cloud/scrub/index.d.ts +1 -1
  100. package/dist/esm/cloud/scrub/index.js +1 -1
  101. package/dist/esm/cloud/server.d.ts +3 -3
  102. package/dist/esm/cloud/server.js +5 -5
  103. package/dist/esm/cloud/store/FileBrainStore.d.ts +1 -1
  104. package/dist/esm/cloud/store/FileBrainStore.js +1 -1
  105. package/dist/esm/cloud/store/PostgresBrainStore.d.ts +1 -1
  106. package/dist/esm/cloud/store/PostgresBrainStore.js +2 -2
  107. package/dist/esm/cloud/store/index.d.ts +2 -2
  108. package/dist/esm/cloud/store/index.js +2 -2
  109. package/dist/esm/cloud/v2/app.d.ts +1 -1
  110. package/dist/esm/cloud/v2/app.js +3 -3
  111. package/dist/esm/cloud/v2/routes/index.d.ts +5 -5
  112. package/dist/esm/cloud/v2/routes/index.js +7 -7
  113. package/dist/esm/cloud/v2/routes/memories.d.ts +4 -4
  114. package/dist/esm/cloud/v2/routes/memories.js +2 -2
  115. package/dist/esm/cloud/v2/routes/recall.d.ts +1 -1
  116. package/dist/esm/cloud/v2/routes/recall.js +1 -1
  117. package/dist/esm/cloud/v2/routes/scrub.d.ts +2 -2
  118. package/dist/esm/cloud/v2/routes/scrub.js +2 -2
  119. package/dist/esm/cloud/v2/routes/usage.d.ts +1 -1
  120. package/dist/esm/cloud/v2/routes/verify.d.ts +1 -1
  121. package/dist/esm/cloud/v2/routes/verify.js +1 -1
  122. package/dist/esm/cloud/v2/server.js +4 -4
  123. package/dist/esm/config/index.d.ts +1 -1
  124. package/dist/esm/config/index.js +1 -1
  125. package/dist/esm/consensus/index.d.ts +2 -2
  126. package/dist/esm/consensus/index.js +2 -2
  127. package/dist/esm/contracts/api-v2.types.d.ts +1 -1
  128. package/dist/esm/contracts/index.d.ts +4 -4
  129. package/dist/esm/contracts/index.js +4 -4
  130. package/dist/esm/core/AgentRegistry.d.ts +1 -1
  131. package/dist/esm/core/AgentRegistry.js +1 -1
  132. package/dist/esm/core/DashboardBroadcaster.d.ts +3 -3
  133. package/dist/esm/core/DashboardBroadcaster.js +2 -2
  134. package/dist/esm/core/DashboardWebSocketServer.d.ts +1 -1
  135. package/dist/esm/core/DashboardWebSocketServer.js +1 -1
  136. package/dist/esm/core/GhostAlchemist.js +1 -1
  137. package/dist/esm/core/GhostListener.js +2 -2
  138. package/dist/esm/core/OrchestrationEngine.d.ts +3 -3
  139. package/dist/esm/core/OrchestrationEngine.js +2 -2
  140. package/dist/esm/core/SubconsciousEngine.d.ts +1 -1
  141. package/dist/esm/core/SubconsciousEngine.js +2 -2
  142. package/dist/esm/core/WebSocketServer.d.ts +2 -2
  143. package/dist/esm/core/WebSocketServer.js +1 -1
  144. package/dist/esm/core/index.d.ts +6 -6
  145. package/dist/esm/core/index.js +6 -6
  146. package/dist/esm/core/router.d.ts +3 -3
  147. package/dist/esm/core/router.js +1 -1
  148. package/dist/esm/db/database.js +1 -1
  149. package/dist/esm/embed.d.ts +2 -2
  150. package/dist/esm/embed.js +2 -2
  151. package/dist/esm/examples/basic-usage.js +1 -1
  152. package/dist/esm/index.d.ts +14 -14
  153. package/dist/esm/index.js +14 -14
  154. package/dist/esm/infra/analyzers/DriftDetector.d.ts +1 -1
  155. package/dist/esm/infra/analyzers/InfraAnalyzer.d.ts +1 -1
  156. package/dist/esm/infra/analyzers/MonolithAnalyzer.d.ts +1 -1
  157. package/dist/esm/infra/analyzers/index.d.ts +3 -3
  158. package/dist/esm/infra/analyzers/index.js +3 -3
  159. package/dist/esm/infra/cli.js +2 -2
  160. package/dist/esm/infra/config.d.ts +1 -1
  161. package/dist/esm/infra/index.d.ts +5 -5
  162. package/dist/esm/infra/index.js +5 -5
  163. package/dist/esm/infra/mcp-tools.js +5 -5
  164. package/dist/esm/infra/providers/InfraProvider.d.ts +1 -1
  165. package/dist/esm/infra/providers/JenkinsProvider.d.ts +2 -2
  166. package/dist/esm/infra/providers/OKDProvider.d.ts +2 -2
  167. package/dist/esm/infra/providers/TerraformProvider.d.ts +2 -2
  168. package/dist/esm/infra/providers/index.d.ts +5 -5
  169. package/dist/esm/infra/providers/index.js +3 -3
  170. package/dist/esm/mcp/cognitiveMap.d.ts +27 -0
  171. package/dist/esm/mcp/cognitiveMap.d.ts.map +1 -0
  172. package/dist/esm/mcp/cognitiveMap.js +40 -0
  173. package/dist/esm/mcp/cognitiveMap.js.map +1 -0
  174. package/dist/esm/mcp/index.js +5 -5
  175. package/dist/esm/mcp/prompts.js +1 -1
  176. package/dist/esm/mcp/resources.js +2 -2
  177. package/dist/esm/mcp/tasks.js +1 -1
  178. package/dist/esm/mcp/tool-profiles.js +1 -1
  179. package/dist/esm/mcp/toolTypes.d.ts +39 -0
  180. package/dist/esm/mcp/toolTypes.d.ts.map +1 -0
  181. package/dist/esm/mcp/toolTypes.js +7 -0
  182. package/dist/esm/mcp/toolTypes.js.map +1 -0
  183. package/dist/esm/mcp/tools/analysis.d.ts +11 -0
  184. package/dist/esm/mcp/tools/analysis.d.ts.map +1 -0
  185. package/dist/esm/mcp/tools/analysis.js +894 -0
  186. package/dist/esm/mcp/tools/analysis.js.map +1 -0
  187. package/dist/esm/mcp/tools/codenav.d.ts +9 -0
  188. package/dist/esm/mcp/tools/codenav.d.ts.map +1 -0
  189. package/dist/esm/mcp/tools/codenav.js +485 -0
  190. package/dist/esm/mcp/tools/codenav.js.map +1 -0
  191. package/dist/esm/mcp/tools/context-tools.d.ts +20 -0
  192. package/dist/esm/mcp/tools/context-tools.d.ts.map +1 -0
  193. package/dist/esm/mcp/tools/context-tools.js +494 -0
  194. package/dist/esm/mcp/tools/context-tools.js.map +1 -0
  195. package/dist/esm/mcp/tools/depgraph.d.ts +8 -0
  196. package/dist/esm/mcp/tools/depgraph.d.ts.map +1 -0
  197. package/dist/esm/mcp/tools/depgraph.js +315 -0
  198. package/dist/esm/mcp/tools/depgraph.js.map +1 -0
  199. package/dist/esm/mcp/tools/dev-utils.d.ts +11 -0
  200. package/dist/esm/mcp/tools/dev-utils.d.ts.map +1 -0
  201. package/dist/esm/mcp/tools/dev-utils.js +516 -0
  202. package/dist/esm/mcp/tools/dev-utils.js.map +1 -0
  203. package/dist/esm/mcp/tools/devtools.d.ts +9 -0
  204. package/dist/esm/mcp/tools/devtools.d.ts.map +1 -0
  205. package/dist/esm/mcp/tools/devtools.js +406 -0
  206. package/dist/esm/mcp/tools/devtools.js.map +1 -0
  207. package/dist/esm/mcp/tools/memory.d.ts +10 -0
  208. package/dist/esm/mcp/tools/memory.d.ts.map +1 -0
  209. package/dist/esm/mcp/tools/memory.js +533 -0
  210. package/dist/esm/mcp/tools/memory.js.map +1 -0
  211. package/dist/esm/mcp/tools/misc.d.ts +10 -0
  212. package/dist/esm/mcp/tools/misc.d.ts.map +1 -0
  213. package/dist/esm/mcp/tools/misc.js +417 -0
  214. package/dist/esm/mcp/tools/misc.js.map +1 -0
  215. package/dist/esm/mcp/tools/refactor.d.ts +8 -0
  216. package/dist/esm/mcp/tools/refactor.d.ts.map +1 -0
  217. package/dist/esm/mcp/tools/refactor.js +296 -0
  218. package/dist/esm/mcp/tools/refactor.js.map +1 -0
  219. package/dist/esm/mcp/tools/review.d.ts +10 -0
  220. package/dist/esm/mcp/tools/review.d.ts.map +1 -0
  221. package/dist/esm/mcp/tools/review.js +277 -0
  222. package/dist/esm/mcp/tools/review.js.map +1 -0
  223. package/dist/esm/mcp/tools/squeeze-cache.d.ts +14 -0
  224. package/dist/esm/mcp/tools/squeeze-cache.d.ts.map +1 -0
  225. package/dist/esm/mcp/tools/squeeze-cache.js +380 -0
  226. package/dist/esm/mcp/tools/squeeze-cache.js.map +1 -0
  227. package/dist/esm/mcp/tools/text-ops.d.ts +14 -0
  228. package/dist/esm/mcp/tools/text-ops.d.ts.map +1 -0
  229. package/dist/esm/mcp/tools/text-ops.js +152 -0
  230. package/dist/esm/mcp/tools/text-ops.js.map +1 -0
  231. package/dist/esm/mcp/tools/workspace.d.ts +10 -0
  232. package/dist/esm/mcp/tools/workspace.d.ts.map +1 -0
  233. package/dist/esm/mcp/tools/workspace.js +657 -0
  234. package/dist/esm/mcp/tools/workspace.js.map +1 -0
  235. package/dist/esm/mcp/tools.d.ts +1 -1
  236. package/dist/esm/mcp/tools.d.ts.map +1 -1
  237. package/dist/esm/mcp/tools.js +642 -6404
  238. package/dist/esm/mcp/tools.js.map +1 -1
  239. package/dist/esm/mcp/utils.d.ts +33 -0
  240. package/dist/esm/mcp/utils.d.ts.map +1 -1
  241. package/dist/esm/mcp/utils.js +92 -0
  242. package/dist/esm/mcp/utils.js.map +1 -1
  243. package/dist/esm/mcp/workspaceShared.d.ts +19 -0
  244. package/dist/esm/mcp/workspaceShared.d.ts.map +1 -0
  245. package/dist/esm/mcp/workspaceShared.js +93 -0
  246. package/dist/esm/mcp/workspaceShared.js.map +1 -0
  247. package/dist/esm/observability/IdeContextSync.d.ts +1 -1
  248. package/dist/esm/observability/IdeContextSync.js +5 -5
  249. package/dist/esm/package.json +3 -0
  250. package/dist/esm/pr-review/PRReviewEngine.d.ts +1 -1
  251. package/dist/esm/pr-review/PRReviewEngine.js +4 -4
  252. package/dist/esm/pr-review/ReviewStore.d.ts +1 -1
  253. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.d.ts +2 -2
  254. package/dist/esm/pr-review/adapters/AzureDevOpsAdapter.js +1 -1
  255. package/dist/esm/pr-review/adapters/GitHubAdapter.d.ts +2 -2
  256. package/dist/esm/pr-review/adapters/GitHubAdapter.js +1 -1
  257. package/dist/esm/pr-review/adapters/GitLabAdapter.d.ts +2 -2
  258. package/dist/esm/pr-review/adapters/GitLabAdapter.js +1 -1
  259. package/dist/esm/pr-review/adapters/GitPlatformAdapter.d.ts +1 -1
  260. package/dist/esm/pr-review/adapters/index.d.ts +4 -4
  261. package/dist/esm/pr-review/adapters/index.js +3 -3
  262. package/dist/esm/pr-review/analyzers/QualityGrader.d.ts +1 -1
  263. package/dist/esm/pr-review/analyzers/RegressionDetector.d.ts +1 -1
  264. package/dist/esm/pr-review/analyzers/SecurityScanner.d.ts +1 -1
  265. package/dist/esm/pr-review/analyzers/StaticAnalyzer.d.ts +1 -1
  266. package/dist/esm/pr-review/analyzers/index.d.ts +8 -8
  267. package/dist/esm/pr-review/analyzers/index.js +4 -4
  268. package/dist/esm/pr-review/bridge/BrainBridge.d.ts +1 -1
  269. package/dist/esm/pr-review/bridge/BrainBridge.js +1 -1
  270. package/dist/esm/pr-review/bridge/index.d.ts +1 -1
  271. package/dist/esm/pr-review/bridge/index.js +1 -1
  272. package/dist/esm/pr-review/index.d.ts +4 -4
  273. package/dist/esm/pr-review/index.js +2 -2
  274. package/dist/esm/pr-review/reviewRunner.d.ts +2 -2
  275. package/dist/esm/pr-review/reviewRunner.js +6 -6
  276. package/dist/esm/pr-review/webhook/WebhookServer.js +1 -1
  277. package/dist/esm/pr-review/webhook/index.d.ts +1 -1
  278. package/dist/esm/pr-review/webhook/index.js +1 -1
  279. package/dist/esm/protocol/flows.d.ts +1 -1
  280. package/dist/esm/protocol/flows.js +1 -1
  281. package/dist/esm/protocol/index.d.ts +4 -4
  282. package/dist/esm/protocol/index.js +4 -4
  283. package/dist/esm/protocol/utils.d.ts +1 -1
  284. package/dist/esm/protocol/utils.js +2 -2
  285. package/dist/esm/protocol/validators.d.ts +1 -1
  286. package/dist/esm/protocol/validators.js +1 -1
  287. package/dist/esm/proxy/ContextInjector.d.ts +1 -1
  288. package/dist/esm/proxy/Gatekeeper.d.ts +1 -1
  289. package/dist/esm/security/SecurityMiddleware.d.ts +1 -1
  290. package/dist/esm/security/SecurityMiddleware.js +3 -3
  291. package/dist/esm/security/index.d.ts +4 -4
  292. package/dist/esm/security/index.js +4 -4
  293. package/dist/esm/speculative/SpeculativeCache.d.ts +2 -2
  294. package/dist/esm/speculative/SpeculativeEngine.d.ts +2 -2
  295. package/dist/esm/speculative/SpeculativeEngine.js +3 -3
  296. package/dist/esm/speculative/WorkerPool.d.ts +1 -1
  297. package/dist/esm/speculative/index.d.ts +4 -4
  298. package/dist/esm/speculative/index.js +4 -4
  299. package/dist/esm/subconscious/GitIngest.d.ts +1 -1
  300. package/dist/esm/subconscious/GitIngest.js +1 -1
  301. package/dist/esm/subconscious/SemanticCache.d.ts +2 -2
  302. package/dist/esm/subconscious/SemanticCache.js +2 -2
  303. package/dist/esm/subconscious/SubconsciousEngine.d.ts +1 -1
  304. package/dist/esm/subconscious/SubconsciousEngine.js +3 -3
  305. package/dist/esm/subconscious/TheBrainV2.d.ts +1 -1
  306. package/dist/esm/subconscious/TheBrainV2.js +2 -2
  307. package/dist/esm/subconscious/freshness/LocalFsResolver.d.ts +1 -1
  308. package/dist/esm/subconscious/freshness/LocalFsResolver.js +1 -1
  309. package/dist/esm/subconscious/freshness/SuppliedEvidenceResolver.d.ts +1 -1
  310. package/dist/esm/subconscious/freshness/index.d.ts +2 -2
  311. package/dist/esm/subconscious/freshness/index.js +2 -2
  312. package/dist/esm/subconscious/index.d.ts +4 -4
  313. package/dist/esm/subconscious/index.js +4 -4
  314. package/dist/esm/utils/AffectedTests.js +1 -1
  315. package/dist/esm/utils/AutoContextBundle.d.ts +1 -1
  316. package/dist/esm/utils/AutoContextBundle.js +4 -4
  317. package/dist/esm/utils/BulkFileDigest.js +2 -2
  318. package/dist/esm/utils/ClipboardWatcher.js +2 -2
  319. package/dist/esm/utils/ContextCollapser.js +1 -1
  320. package/dist/esm/utils/ConversationCheckpoint.js +1 -1
  321. package/dist/esm/utils/ExecutiveReport.js +1 -1
  322. package/dist/esm/utils/OutputLedger.js +2 -2
  323. package/dist/esm/utils/ReadWorkspaceCache.js +1 -1
  324. package/dist/esm/utils/SpeculativeWarmer.d.ts +1 -1
  325. package/dist/esm/utils/SpeculativeWarmer.js +2 -2
  326. package/dist/esm/utils/StateHashCache.js +1 -1
  327. package/dist/esm/utils/StructuralSearch.d.ts +1 -1
  328. package/dist/esm/utils/SurgicalASTInsert.js +1 -1
  329. package/dist/esm/utils/SymbolSurgicalContext.js +1 -1
  330. package/dist/esm/utils/TestAutofixInterceptor.js +1 -1
  331. package/dist/esm/utils/WorkspaceSearch.js +0 -0
  332. package/dist/esm/utils/logger.js +1 -1
  333. package/dist/esm/utils/reportSavings.js +1 -1
  334. package/package.json +1 -1
@@ -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) {
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import fs from 'fs';
9
9
  import path from 'path';
10
- import { savingsLedger } from './SavingsLedger';
10
+ import { savingsLedger } from './SavingsLedger.js';
11
11
  /**
12
12
  * Calculates metrics and writes a highly structured Markdown corporate report.
13
13
  */
@@ -17,8 +17,8 @@
17
17
  * costs the user a correct answer.
18
18
  */
19
19
  import crypto from "crypto";
20
- import { shouldEmitDelta } from "./OutputDelta";
21
- import { getSharedEntry, setSharedEntry } from "./SharedLedgerStore";
20
+ import { shouldEmitDelta } from "./OutputDelta.js";
21
+ import { getSharedEntry, setSharedEntry } from "./SharedLedgerStore.js";
22
22
  const entries = new Map();
23
23
  /** Mirrors the read cache's bound: this exists to save tokens, not to grow forever. */
24
24
  const MAX_LEDGER_CHARS = 2000000;
@@ -1,5 +1,5 @@
1
1
  import crypto from "crypto";
2
- import { getSharedEntry, setSharedEntry } from "./SharedLedgerStore";
2
+ import { getSharedEntry, setSharedEntry } from "./SharedLedgerStore.js";
3
3
  // Session-scoped (lives for the MCP server process lifetime, which is normally the
4
4
  // whole conversation). Tracks the content hash we last actually sent back to the
5
5
  // model for a given (filePath, view) pair, so a second identical read doesn't
@@ -9,7 +9,7 @@
9
9
  * every failure is swallowed — a warming run that throws or runs slow must never be visible
10
10
  * to whoever is waiting on the actual tool call.
11
11
  */
12
- import { AstSymbol } from "./AstSymbolCache";
12
+ import { AstSymbol } from "./AstSymbolCache.js";
13
13
  /**
14
14
  * `extractSymbolsWithTsCompiler` lives in `mcp/tools.ts`, which already imports this module —
15
15
  * importing it back here would be circular. The dispatcher registers it once at startup instead.
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import fs from "fs";
13
13
  import path from "path";
14
- import { buildDepGraphMap, bfsDepGraph } from "./DepGraph";
15
- import { getOrExtractSymbols, hasFreshEntry } from "./AstSymbolCache";
14
+ import { buildDepGraphMap, bfsDepGraph } from "./DepGraph.js";
15
+ import { getOrExtractSymbols, hasFreshEntry } from "./AstSymbolCache.js";
16
16
  /** How many neighbor files a single warm pass will touch — bounded so this stays cheap. */
17
17
  const MAX_NEIGHBORS = 8;
18
18
  const MAX_DEPTH = 1;
@@ -14,7 +14,7 @@
14
14
  import fs from 'fs';
15
15
  import path from 'path';
16
16
  import crypto from 'crypto';
17
- import { LocalFsResolver } from '../subconscious/freshness/LocalFsResolver';
17
+ import { LocalFsResolver } from '../subconscious/freshness/LocalFsResolver.js';
18
18
  const CACHE_FILE = '.lemma/state-hash-cache.json';
19
19
  function getCachePath(projectRoot) {
20
20
  return path.join(projectRoot, CACHE_FILE);
@@ -1,4 +1,4 @@
1
- import type { SearchMatch } from "./WorkspaceSearch";
1
+ import type { SearchMatch } from "./WorkspaceSearch.js";
2
2
  export interface DeclaredSymbol {
3
3
  kind: "function" | "class" | "method" | "interface" | "type" | "enum" | "arrow";
4
4
  name: string;
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import fs from 'fs';
11
11
  import * as ts from 'typescript';
12
- import { safeResolvePath } from '../mcp/utils';
12
+ import { safeResolvePath } from '../mcp/utils.js';
13
13
  /**
14
14
  * Finds a class or interface node by name.
15
15
  */
@@ -10,7 +10,7 @@
10
10
  import fs from 'fs';
11
11
  import path from 'path';
12
12
  import * as ts from 'typescript';
13
- import { safeResolvePath } from '../mcp/utils';
13
+ import { safeResolvePath } from '../mcp/utils.js';
14
14
  /**
15
15
  * Traverses AST to find the node defining the specified symbol name.
16
16
  */
@@ -1,5 +1,5 @@
1
1
  import { execSync } from 'child_process';
2
- import { getBrain, deriveProjectId } from '../subconscious/TheBrainV2';
2
+ import { getBrain, deriveProjectId } from '../subconscious/TheBrainV2.js';
3
3
  function extractFailures(output) {
4
4
  const failures = [];
5
5
  // Jest/Vitest failure pattern
Binary file
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
- import { config } from '../config';
3
+ import { config } from '../config/index.js';
4
4
  /**
5
5
  * Log levels
6
6
  */
@@ -8,7 +8,7 @@ import fs from 'fs';
8
8
  import path from 'path';
9
9
  import os from 'os';
10
10
  import http from 'http';
11
- import { recordRoiSaved, recordRoiSpent } from './RoiLedger';
11
+ import { recordRoiSaved, recordRoiSpent } from './RoiLedger.js';
12
12
  function getProxyPort() {
13
13
  try {
14
14
  const portFile = path.join(os.homedir(), '.lemma-cache/proxy.port');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxuss/lemma",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "Intelligent AI Gateway for IDEs & Agents — Semantic cache, Privacy Firewall, Infrastructure Command Center, and Autonomous Cost-Optimization.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",