@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
@@ -6,9 +6,9 @@
6
6
  import express from 'express';
7
7
  import cors from 'cors';
8
8
  import http from 'http';
9
- import { createDashboardRouter } from './dashboardRoutes';
10
- import { DashboardWebSocketServer } from '../core/DashboardWebSocketServer';
11
- import { createLogger } from '../utils/logger';
9
+ import { createDashboardRouter } from './dashboardRoutes.js';
10
+ import { DashboardWebSocketServer } from '../core/DashboardWebSocketServer.js';
11
+ import { createLogger } from '../utils/logger.js';
12
12
  const logger = createLogger('DashboardServer');
13
13
  export class DashboardAPIServer {
14
14
  constructor(config = {}) {
@@ -1,9 +1,9 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { exec } from 'child_process';
4
- import { performAutoHeal } from '../cli/lemma-proxy';
5
- import { savePatch, countPending } from './PatchStore';
6
- import { notifyPatch } from './Notifier';
4
+ import { performAutoHeal } from '../cli/lemma-proxy.js';
5
+ import { savePatch, countPending } from './PatchStore.js';
6
+ import { notifyPatch } from './Notifier.js';
7
7
  export class AutopilotWatcher {
8
8
  constructor(watchDir = 'src', nonInvasive = true) {
9
9
  this.isRunning = false;
@@ -1,4 +1,4 @@
1
- import type { Patch } from './PatchStore';
1
+ import type { Patch } from './PatchStore.js';
2
2
  export declare function sendNotification(title: string, subtitle: string, message: string): void;
3
3
  export declare function notifyPatch(patch: Patch): void;
4
4
  export declare function notifyClear(): void;
@@ -33,21 +33,21 @@ function ask(query) {
33
33
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
34
34
  return new Promise(resolve => rl.question(query, ans => { rl.close(); resolve(ans); }));
35
35
  }
36
- import ComplexityRouter from '../proxy/ComplexityRouter';
37
- import SemanticScrubber from '../security/SemanticScrubber';
38
- import CloudSyncClient from '../cloud/CloudSyncClient';
39
- import { runPRReview } from '../pr-review/reviewRunner';
40
- import { registerInfraCommands } from '../infra/cli';
41
- import { pruneHistoryMessages, squeezePrompt } from '../utils/ContextSqueezer';
42
- import { AgentMultiplexer } from '../proxy/AgentMultiplexer';
43
- import { SseRelay } from '../proxy/SseRelay';
44
- import { KeyManager } from '../proxy/KeyManager';
45
- import { Gatekeeper } from '../proxy/Gatekeeper';
46
- import { detectProjectName, isProjectMismatch } from '../utils/ProjectIdentity';
47
- import { ProjectRegistry } from '../proxy/ProjectRegistry';
48
- import { shouldInject, buildMinimalContext, buildDeepContext, sniffProjectFromMessages } from '../proxy/ContextInjector';
49
- import { savingsLedger } from '../utils/SavingsLedger';
50
- import { CACHE_DIR, PID_FILE, PORT_FILE, STATS_FILE, USAGE_FILE, LICENSE_FILE, CLIPBOARD_PID_FILE, FREE_TIER_LIMIT } from '../proxy/ProjectStore';
36
+ import ComplexityRouter from '../proxy/ComplexityRouter.js';
37
+ import SemanticScrubber from '../security/SemanticScrubber.js';
38
+ import CloudSyncClient from '../cloud/CloudSyncClient.js';
39
+ import { runPRReview } from '../pr-review/reviewRunner.js';
40
+ import { registerInfraCommands } from '../infra/cli.js';
41
+ import { pruneHistoryMessages, squeezePrompt } from '../utils/ContextSqueezer.js';
42
+ import { AgentMultiplexer } from '../proxy/AgentMultiplexer.js';
43
+ import { SseRelay } from '../proxy/SseRelay.js';
44
+ import { KeyManager } from '../proxy/KeyManager.js';
45
+ import { Gatekeeper } from '../proxy/Gatekeeper.js';
46
+ import { detectProjectName, isProjectMismatch } from '../utils/ProjectIdentity.js';
47
+ import { ProjectRegistry } from '../proxy/ProjectRegistry.js';
48
+ import { shouldInject, buildMinimalContext, buildDeepContext, sniffProjectFromMessages } from '../proxy/ContextInjector.js';
49
+ import { savingsLedger } from '../utils/SavingsLedger.js';
50
+ import { CACHE_DIR, PID_FILE, PORT_FILE, STATS_FILE, USAGE_FILE, LICENSE_FILE, CLIPBOARD_PID_FILE, FREE_TIER_LIMIT } from '../proxy/ProjectStore.js';
51
51
  const chroma = new ChromaClient({ host: 'localhost', port: 8000 });
52
52
  const dummyEmbeddingFunction = { generate: (texts) => Promise.resolve([]) };
53
53
  const complexityRouter = new ComplexityRouter();
@@ -1,7 +1,7 @@
1
- import { WebSocketServer } from '../core/WebSocketServer';
2
- import { OrchestrationEngine } from '../core/OrchestrationEngine';
3
- import { SubconsciousEngine } from '../core/SubconsciousEngine';
4
- import { DashboardAPIServer } from '../api/server';
1
+ import { WebSocketServer } from '../core/WebSocketServer.js';
2
+ import { OrchestrationEngine } from '../core/OrchestrationEngine.js';
3
+ import { SubconsciousEngine } from '../core/SubconsciousEngine.js';
4
+ import { DashboardAPIServer } from '../api/server.js';
5
5
  /**
6
6
  * Lemma Stack Orchestrator
7
7
  * Starts the Router, Subconscious Engine, and Dashboard API
@@ -1,8 +1,8 @@
1
- import { WebSocketServer } from '../core/WebSocketServer';
2
- import { OrchestrationEngine } from '../core/OrchestrationEngine';
3
- import { SubconsciousEngine } from '../core/SubconsciousEngine';
4
- import { DashboardBroadcaster } from '../core/DashboardBroadcaster';
5
- import { DashboardAPIServer } from '../api/server';
1
+ import { WebSocketServer } from '../core/WebSocketServer.js';
2
+ import { OrchestrationEngine } from '../core/OrchestrationEngine.js';
3
+ import { SubconsciousEngine } from '../core/SubconsciousEngine.js';
4
+ import { DashboardBroadcaster } from '../core/DashboardBroadcaster.js';
5
+ import { DashboardAPIServer } from '../api/server.js';
6
6
  /**
7
7
  * Lemma Stack Orchestrator
8
8
  * Starts the Router, Subconscious Engine, and Dashboard API
@@ -4,7 +4,7 @@
4
4
  * Handles key generation, validation, usage tracking, and plan enforcement.
5
5
  * Uses a JSON file as storage (swap for Redis/Postgres in production).
6
6
  */
7
- import { ApiKey } from './types';
7
+ import { ApiKey } from './types.js';
8
8
  export declare class KeyManager {
9
9
  private keys;
10
10
  private storePath;
@@ -7,7 +7,7 @@
7
7
  import crypto from 'crypto';
8
8
  import fs from 'fs';
9
9
  import path from 'path';
10
- import { PLAN_LIMITS } from './types';
10
+ import { PLAN_LIMITS } from './types.js';
11
11
  export class KeyManager {
12
12
  constructor(storePath = './data/keys.json') {
13
13
  this.keys = new Map();
@@ -4,7 +4,7 @@
4
4
  * Each tenant gets an isolated ChromaDB collection + usage stats.
5
5
  * Handles semantic search via Ollama embeddings.
6
6
  */
7
- import { TenantStats } from './types';
7
+ import { TenantStats } from './types.js';
8
8
  export declare class TenantCache {
9
9
  private tenantId;
10
10
  private chromaUrl;
@@ -1,4 +1,4 @@
1
- import type { IdentityStore, NewKeyInput } from './identityStore';
1
+ import type { IdentityStore, NewKeyInput } from './identityStore.js';
2
2
  export type KeyPrefix = 'lk_live_' | 'lk_test_';
3
3
  export declare const KEY_PREFIX_LIVE: KeyPrefix;
4
4
  export declare const KEY_PREFIX_TEST: KeyPrefix;
@@ -1,4 +1,4 @@
1
- import type { IdentityStore } from './identityStore';
1
+ import type { IdentityStore } from './identityStore.js';
2
2
  export interface Tenant {
3
3
  id: string;
4
4
  plan: 'free' | 'pro' | 'scale';
@@ -7,7 +7,7 @@
7
7
  * request hashes the presented token and hits the store, so a revoked key fails
8
8
  * on the very next request — there is no 24h (or any) positive cache.
9
9
  */
10
- import { isWellFormedKey, hashApiKey } from './ApiKey';
10
+ import { isWellFormedKey, hashApiKey } from './ApiKey.js';
11
11
  export class TenantResolver {
12
12
  constructor(store) {
13
13
  this.store = store;
@@ -13,9 +13,9 @@
13
13
  * `Retry-After` header and an actionable body.
14
14
  */
15
15
  import type { Request, RequestHandler } from 'express';
16
- import { PlanPolicy, RATE_LIMIT_WINDOW_MS } from './PlanPolicy';
17
- import type { RateLimiter } from './RateLimiter';
18
- import type { Tenant, TenantResolver } from './TenantResolver';
16
+ import { PlanPolicy, RATE_LIMIT_WINDOW_MS } from './PlanPolicy.js';
17
+ import type { RateLimiter } from './RateLimiter.js';
18
+ import type { Tenant, TenantResolver } from './TenantResolver.js';
19
19
  declare global {
20
20
  namespace Express {
21
21
  interface Request {
@@ -1,6 +1,6 @@
1
- import { LemmaApiError } from '../../contracts/errors';
2
- import { PlanPolicy, RATE_LIMIT_WINDOW_MS } from './PlanPolicy';
3
- import { rateLimitErrorBody } from './RateLimiter';
1
+ import { LemmaApiError } from '../../contracts/errors.js';
2
+ import { PlanPolicy, RATE_LIMIT_WINDOW_MS } from './PlanPolicy.js';
3
+ import { rateLimitErrorBody } from './RateLimiter.js';
4
4
  function parseBearer(header) {
5
5
  if (!header)
6
6
  return null;
@@ -9,8 +9,8 @@
9
9
  * `PostgresIdentityStore` is the production implementation over `pg`.
10
10
  */
11
11
  import type { Pool } from 'pg';
12
- import type { KeyPrefix } from './ApiKey';
13
- import type { PlanId } from './PlanPolicy';
12
+ import type { KeyPrefix } from './ApiKey.js';
13
+ import type { PlanId } from './PlanPolicy.js';
14
14
  export interface NewKeyInput {
15
15
  tenantId: string;
16
16
  name: string;
@@ -5,10 +5,10 @@
5
5
  * per-plan ceilings without Infinity, and per-tenant rate limiting with
6
6
  * Retry-After.
7
7
  */
8
- export * from './ApiKey';
9
- export * from './identityStore';
10
- export * from './PlanPolicy';
11
- export * from './RateLimiter';
12
- export * from './TenantResolver';
13
- export * from './authenticateV2';
8
+ export * from './ApiKey.js';
9
+ export * from './identityStore.js';
10
+ export * from './PlanPolicy.js';
11
+ export * from './RateLimiter.js';
12
+ export * from './TenantResolver.js';
13
+ export * from './authenticateV2.js';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -5,10 +5,10 @@
5
5
  * per-plan ceilings without Infinity, and per-tenant rate limiting with
6
6
  * Retry-After.
7
7
  */
8
- export * from './ApiKey';
9
- export * from './identityStore';
10
- export * from './PlanPolicy';
11
- export * from './RateLimiter';
12
- export * from './TenantResolver';
13
- export * from './authenticateV2';
8
+ export * from './ApiKey.js';
9
+ export * from './identityStore.js';
10
+ export * from './PlanPolicy.js';
11
+ export * from './RateLimiter.js';
12
+ export * from './TenantResolver.js';
13
+ export * from './authenticateV2.js';
14
14
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { KeyManager } from './KeyManager';
2
- export { TenantCache } from './TenantCache';
3
- export * from './types';
1
+ export { KeyManager } from './KeyManager.js';
2
+ export { TenantCache } from './TenantCache.js';
3
+ export * from './types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export { KeyManager } from './KeyManager';
2
- export { TenantCache } from './TenantCache';
3
- export * from './types';
1
+ export { KeyManager } from './KeyManager.js';
2
+ export { TenantCache } from './TenantCache.js';
3
+ export * from './types.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { UsageResponse } from '../../contracts/api-v2.types';
1
+ import type { UsageResponse } from '../../contracts/api-v2.types.js';
2
2
  /** Append-only backing store. Implementations must expose reads over the rows and
3
3
  * have no mutating surface beyond `append` (no update/delete). */
4
4
  export interface AppendOnlyStore {
@@ -7,6 +7,6 @@
7
7
  *
8
8
  * Ownership: Lane E.
9
9
  */
10
- export * from './UsageLedger';
11
- export * from './TokenCounter';
10
+ export * from './UsageLedger.js';
11
+ export * from './TokenCounter.js';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -7,6 +7,6 @@
7
7
  *
8
8
  * Ownership: Lane E.
9
9
  */
10
- export * from './UsageLedger';
11
- export * from './TokenCounter';
10
+ export * from './UsageLedger.js';
11
+ export * from './TokenCounter.js';
12
12
  //# sourceMappingURL=index.js.map
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * Ownership: Lane F.
25
25
  */
26
- import type { ScrubFinding } from "../../contracts/api-v2.types";
26
+ import type { ScrubFinding } from "../../contracts/api-v2.types.js";
27
27
  export type ScrubMode = "mask" | "detect";
28
28
  export declare class StatelessScrubber {
29
29
  readonly lane = "F";
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Lemma API v2 — stateless scrub (Lane F)
3
3
  */
4
- export * from "./StatelessScrubber";
4
+ export * from "./StatelessScrubber.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Lemma API v2 — stateless scrub (Lane F)
3
3
  */
4
- export * from "./StatelessScrubber";
4
+ export * from "./StatelessScrubber.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -8,9 +8,9 @@
8
8
  * Start: node dist/cloud/server.js
9
9
  * Or: npm run cloud:start
10
10
  */
11
- import { KeyManager } from './KeyManager';
12
- import { TenantCache } from './TenantCache';
13
- import { PostgresQuotaLimiter } from './PostgresQuotaLimiter';
11
+ import { KeyManager } from './KeyManager.js';
12
+ import { TenantCache } from './TenantCache.js';
13
+ import { PostgresQuotaLimiter } from './PostgresQuotaLimiter.js';
14
14
  declare const app: import("express-serve-static-core").Express;
15
15
  declare const keyManager: KeyManager;
16
16
  declare const tenantCaches: Map<string, TenantCache>;
@@ -10,12 +10,12 @@
10
10
  */
11
11
  import express from 'express';
12
12
  import crypto from 'crypto';
13
- import { KeyManager } from './KeyManager';
14
- import { TenantCache } from './TenantCache';
15
- import { PLAN_LIMITS } from './types';
16
- import { BurstRateLimiter } from './BurstRateLimiter';
13
+ import { KeyManager } from './KeyManager.js';
14
+ import { TenantCache } from './TenantCache.js';
15
+ import { PLAN_LIMITS } from './types.js';
16
+ import { BurstRateLimiter } from './BurstRateLimiter.js';
17
17
  import { Pool } from 'pg';
18
- import { PostgresQuotaLimiter } from './PostgresQuotaLimiter';
18
+ import { PostgresQuotaLimiter } from './PostgresQuotaLimiter.js';
19
19
  const app = express();
20
20
  // ─── Bind config ─────────────────────────────────────────────────────────────
21
21
  const BIND_HOST = process.env.LEMMA_BIND_HOST || '127.0.0.1';
@@ -1,4 +1,4 @@
1
- import { BrainStore, Candidate } from '../../contracts/store';
1
+ import { BrainStore, Candidate } from '../../contracts/store.js';
2
2
  export interface FileBrainStoreOptions {
3
3
  dir?: string;
4
4
  filename?: string;
@@ -18,7 +18,7 @@ import fs from 'fs';
18
18
  import os from 'os';
19
19
  import path from 'path';
20
20
  import crypto from 'crypto';
21
- import { tokenize, termFrequencies, bm25Score, jaccardSimilarity, } from '../../subconscious/TheBrainV2';
21
+ import { tokenize, termFrequencies, bm25Score, jaccardSimilarity, } from '../../subconscious/TheBrainV2.js';
22
22
  const DEFAULT_TENANT = 'default';
23
23
  function isRecord(v) {
24
24
  return typeof v === 'object' && v !== null && !Array.isArray(v);
@@ -17,7 +17,7 @@
17
17
  * corpus entero.
18
18
  */
19
19
  import { Pool } from 'pg';
20
- import { BrainStore, Candidate } from '../../contracts/store';
20
+ import { BrainStore, Candidate } from '../../contracts/store.js';
21
21
  export type EvidenceKind = 'file' | 'symbol' | 'symbol_normalized';
22
22
  export interface NormalizedMemory {
23
23
  id: string;
@@ -1,6 +1,6 @@
1
1
  import { createHash, randomBytes } from 'crypto';
2
- import { LemmaApiError } from '../../contracts/errors';
3
- import { tokenize, termFrequencies } from '../../subconscious/TheBrainV2';
2
+ import { LemmaApiError } from '../../contracts/errors.js';
3
+ import { tokenize, termFrequencies } from '../../subconscious/TheBrainV2.js';
4
4
  function isRecord(v) {
5
5
  return typeof v === 'object' && v !== null && !Array.isArray(v);
6
6
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Lemma API v2 — BrainStore implementations (Lane B stub)
3
3
  */
4
- export * from './PostgresBrainStore';
5
- export * from './FileBrainStore';
4
+ export * from './PostgresBrainStore.js';
5
+ export * from './FileBrainStore.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Lemma API v2 — BrainStore implementations (Lane B stub)
3
3
  */
4
- export * from './PostgresBrainStore';
5
- export * from './FileBrainStore';
4
+ export * from './PostgresBrainStore.js';
5
+ export * from './FileBrainStore.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -8,7 +8,7 @@
8
8
  * Ownership: Lane C.
9
9
  */
10
10
  import { type Express } from 'express';
11
- import { type MountDeps } from './routes';
11
+ import { type MountDeps } from './routes/index.js';
12
12
  export type AppDeps = MountDeps;
13
13
  export declare function createApp(deps: AppDeps): Express;
14
14
  export default createApp;
@@ -8,9 +8,9 @@
8
8
  * Ownership: Lane C.
9
9
  */
10
10
  import express from 'express';
11
- import { LemmaApiError } from '../../contracts/errors';
12
- import { mountRoutes } from './routes';
13
- import { MAX_BODY_BYTES } from './routes/memories';
11
+ import { LemmaApiError } from '../../contracts/errors.js';
12
+ import { mountRoutes } from './routes/index.js';
13
+ import { MAX_BODY_BYTES } from './routes/memories.js';
14
14
  /** Body-parser errors (malformed JSON, over the size cap) never carry a code we
15
15
  * can trust from Express — normalize them to the same envelope as every other
16
16
  * /v2 failure instead of leaking a raw parser message. */
@@ -13,11 +13,11 @@
13
13
  * Ownership: Lane C.
14
14
  */
15
15
  import type { Express } from 'express';
16
- import { type AuthenticateV2Deps } from '../../identity/authenticateV2';
17
- import { type MemoriesDeps } from './memories';
18
- import { type RecallDeps } from './recall';
19
- import { type VerifyDeps } from './verify';
20
- import { type UsageDeps } from './usage';
16
+ import { type AuthenticateV2Deps } from '../../identity/authenticateV2.js';
17
+ import { type MemoriesDeps } from './memories.js';
18
+ import { type RecallDeps } from './recall.js';
19
+ import { type VerifyDeps } from './verify.js';
20
+ import { type UsageDeps } from './usage.js';
21
21
  export type MountDeps = AuthenticateV2Deps & MemoriesDeps & RecallDeps & VerifyDeps & UsageDeps;
22
22
  export declare function mountRoutes(app: Express, deps: MountDeps): void;
23
23
  export default mountRoutes;
@@ -1,10 +1,10 @@
1
- import { authenticateV2 } from '../../identity/authenticateV2';
2
- import { createMemoryHandler, forgetMemoryHandler } from './memories';
3
- import { recallHandler } from './recall';
4
- import { verifyHandler } from './verify';
5
- import { usageHandler } from './usage';
6
- import { scrubRouter } from './scrub';
7
- import { LemmaApiError } from '../../../contracts/errors';
1
+ import { authenticateV2 } from '../../identity/authenticateV2.js';
2
+ import { createMemoryHandler, forgetMemoryHandler } from './memories.js';
3
+ import { recallHandler } from './recall.js';
4
+ import { verifyHandler } from './verify.js';
5
+ import { usageHandler } from './usage.js';
6
+ import { scrubRouter } from './scrub.js';
7
+ import { LemmaApiError } from '../../../contracts/errors.js';
8
8
  export function mountRoutes(app, deps) {
9
9
  // Public: no tenant, no auth (Lane F, stateless).
10
10
  const scrub = scrubRouter();
@@ -1,9 +1,9 @@
1
1
  import type { RequestHandler } from 'express';
2
2
  import { z, type ZodError } from 'zod';
3
- import { LemmaApiError } from '../../../contracts/errors';
4
- import type { CreateMemoryRequest, MemoryClaim, MemoryState } from '../../../contracts/api-v2.types';
5
- import type { Evidence } from '../../../contracts/evidence';
6
- import type { BrainStore } from '../../../contracts/store';
3
+ import { LemmaApiError } from '../../../contracts/errors.js';
4
+ import type { CreateMemoryRequest, MemoryClaim, MemoryState } from '../../../contracts/api-v2.types.js';
5
+ import type { Evidence } from '../../../contracts/evidence.js';
6
+ import type { BrainStore } from '../../../contracts/store.js';
7
7
  export declare const MAX_CLAIMS = 50;
8
8
  export declare const MAX_VERIFY_IDS = 200;
9
9
  export declare const MAX_BODY_BYTES = 1000000;
@@ -11,8 +11,8 @@
11
11
  */
12
12
  import crypto from 'crypto';
13
13
  import { z } from 'zod';
14
- import { LemmaApiError } from '../../../contracts/errors';
15
- import { SuppliedEvidenceResolver } from '../../../subconscious/freshness/SuppliedEvidenceResolver';
14
+ import { LemmaApiError } from '../../../contracts/errors.js';
15
+ import { SuppliedEvidenceResolver } from '../../../subconscious/freshness/SuppliedEvidenceResolver.js';
16
16
  // ─── Limits (plan §"LANE C" entregable 4) ─────────────────────────────────────
17
17
  export const MAX_CLAIMS = 50;
18
18
  export const MAX_VERIFY_IDS = 200;
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import type { RequestHandler } from 'express';
12
12
  import { z } from 'zod';
13
- import type { BrainStore } from '../../../contracts/store';
13
+ import type { BrainStore } from '../../../contracts/store.js';
14
14
  export declare const DEFAULT_RECALL_LIMIT = 10;
15
15
  export declare const MAX_RECALL_LIMIT = 100;
16
16
  export declare const RecallRequestSchema: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { computeMemoryState, EvidenceSchema, isStoredMemory, zodToApiError } from './memories';
2
+ import { computeMemoryState, EvidenceSchema, isStoredMemory, zodToApiError } from './memories.js';
3
3
  export const DEFAULT_RECALL_LIMIT = 10;
4
4
  export const MAX_RECALL_LIMIT = 100;
5
5
  export const RecallRequestSchema = z.object({
@@ -1,5 +1,5 @@
1
- import type { ScrubRequest, ScrubResponse } from "../../../contracts/api-v2.types";
2
- import { StatelessScrubber } from "../../scrub";
1
+ import type { ScrubRequest, ScrubResponse } from "../../../contracts/api-v2.types.js";
2
+ import { StatelessScrubber } from "../../scrub/index.js";
3
3
  export interface ScrubRouter {
4
4
  method: "POST";
5
5
  path: "/v2/scrub";
@@ -16,8 +16,8 @@
16
16
  *
17
17
  * Ownership: Lane F.
18
18
  */
19
- import { LemmaApiError } from "../../../contracts/errors";
20
- import { StatelessScrubber } from "../../scrub";
19
+ import { LemmaApiError } from "../../../contracts/errors.js";
20
+ import { StatelessScrubber } from "../../scrub/index.js";
21
21
  export function scrubRouter() {
22
22
  const scrubber = new StatelessScrubber();
23
23
  const handle = (body) => {
@@ -8,7 +8,7 @@
8
8
  * Ownership: Lane C.
9
9
  */
10
10
  import type { RequestHandler } from 'express';
11
- import type { UsageLedger } from '../../metering';
11
+ import type { UsageLedger } from '../../metering/index.js';
12
12
  export interface UsageDeps {
13
13
  usageLedger: Pick<UsageLedger, 'computeUsage'>;
14
14
  }
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import type { RequestHandler } from 'express';
17
17
  import { z } from 'zod';
18
- import type { BrainStore } from '../../../contracts/store';
18
+ import type { BrainStore } from '../../../contracts/store.js';
19
19
  export declare const VerifyRequestSchema: z.ZodObject<{
20
20
  ids: z.ZodArray<z.ZodString>;
21
21
  currentEvidence: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { computeMemoryState, EvidenceSchema, isStoredMemory, MAX_VERIFY_IDS, zodToApiError } from './memories';
2
+ import { computeMemoryState, EvidenceSchema, isStoredMemory, MAX_VERIFY_IDS, zodToApiError } from './memories.js';
3
3
  export const VerifyRequestSchema = z.object({
4
4
  ids: z.array(z.string().min(1)).min(1).max(MAX_VERIFY_IDS),
5
5
  currentEvidence: EvidenceSchema,
@@ -1,8 +1,8 @@
1
1
  import { Pool } from 'pg';
2
- import { createApp } from './app';
3
- import { FileBrainStore, PostgresBrainStore } from '../store';
4
- import { InMemoryIdentityStore, PostgresIdentityStore, InMemoryRateLimiter, PostgresRateLimiter, PlanPolicy, TenantResolver, } from '../identity';
5
- import { UsageLedger } from '../metering';
2
+ import { createApp } from './app.js';
3
+ import { FileBrainStore, PostgresBrainStore } from '../store/index.js';
4
+ import { InMemoryIdentityStore, PostgresIdentityStore, InMemoryRateLimiter, PostgresRateLimiter, PlanPolicy, TenantResolver, } from '../identity/index.js';
5
+ import { UsageLedger } from '../metering/index.js';
6
6
  function buildDeps(options) {
7
7
  const databaseUrl = options.databaseUrl ?? process.env.DATABASE_URL;
8
8
  const policy = new PlanPolicy();
@@ -1,4 +1,4 @@
1
- import { EnvironmentConfig } from '../types';
1
+ import { EnvironmentConfig } from '../types/index.js';
2
2
  /**
3
3
  * Application configuration loaded from environment variables
4
4
  */
@@ -1,5 +1,5 @@
1
1
  import dotenv from 'dotenv';
2
- import { ConfigurationError } from '../errors/LemmaError';
2
+ import { ConfigurationError } from '../errors/LemmaError.js';
3
3
  // Load environment variables
4
4
  dotenv.config();
5
5
  /**
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * Exports all consensus components for Phase 3.
5
5
  */
6
- export { ConsensusEngine, ConsensusRequest, ModelResponse, DebateRound, ConsensusResult, ConsensusEngineConfig, ConsensusMetrics, } from './ConsensusEngine';
7
- export { ModelPool, ModelConfig, ModelInfo, QueryResponse, ModelPoolConfig, } from './ModelPool';
6
+ export { ConsensusEngine, ConsensusRequest, ModelResponse, DebateRound, ConsensusResult, ConsensusEngineConfig, ConsensusMetrics, } from './ConsensusEngine.js';
7
+ export { ModelPool, ModelConfig, ModelInfo, QueryResponse, ModelPoolConfig, } from './ModelPool.js';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * Exports all consensus components for Phase 3.
5
5
  */
6
- export { ConsensusEngine, } from './ConsensusEngine';
7
- export { ModelPool, } from './ModelPool';
6
+ export { ConsensusEngine, } from './ConsensusEngine.js';
7
+ export { ModelPool, } from './ModelPool.js';
8
8
  //# sourceMappingURL=index.js.map
@@ -4,7 +4,7 @@
4
4
  * The contract for the six /v2 routes. Frozen here so lanes C..K can implement
5
5
  * against a stable shape and the TS SDK can generate identically-shaped clients.
6
6
  */
7
- import type { Evidence } from './evidence';
7
+ import type { Evidence } from './evidence.js';
8
8
  /**
9
9
  * Verifiability state of a memory or claim. This is the differentiator of the
10
10
  * product and the fail-closed invariant lives here (see plan §0):