@remnic/core 1.0.0

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 (551) hide show
  1. package/dist/abstraction-nodes.d.ts +52 -0
  2. package/dist/abstraction-nodes.js +15 -0
  3. package/dist/abstraction-nodes.js.map +1 -0
  4. package/dist/access-cli.d.ts +5 -0
  5. package/dist/access-cli.js +308 -0
  6. package/dist/access-cli.js.map +1 -0
  7. package/dist/access-http.d.ts +158 -0
  8. package/dist/access-http.js +32 -0
  9. package/dist/access-http.js.map +1 -0
  10. package/dist/access-idempotency.d.ts +31 -0
  11. package/dist/access-idempotency.js +11 -0
  12. package/dist/access-idempotency.js.map +1 -0
  13. package/dist/access-mcp.d.ts +76 -0
  14. package/dist/access-mcp.js +8 -0
  15. package/dist/access-mcp.js.map +1 -0
  16. package/dist/access-schema.d.ts +266 -0
  17. package/dist/access-schema.js +29 -0
  18. package/dist/access-schema.js.map +1 -0
  19. package/dist/access-service.d.ts +614 -0
  20. package/dist/access-service.js +32 -0
  21. package/dist/access-service.js.map +1 -0
  22. package/dist/behavior-learner.d.ts +16 -0
  23. package/dist/behavior-learner.js +124 -0
  24. package/dist/behavior-learner.js.map +1 -0
  25. package/dist/behavior-signals.d.ts +15 -0
  26. package/dist/behavior-signals.js +11 -0
  27. package/dist/behavior-signals.js.map +1 -0
  28. package/dist/bootstrap.d.ts +46 -0
  29. package/dist/bootstrap.js +9 -0
  30. package/dist/bootstrap.js.map +1 -0
  31. package/dist/boxes.d.ts +93 -0
  32. package/dist/boxes.js +14 -0
  33. package/dist/boxes.js.map +1 -0
  34. package/dist/buffer.d.ts +22 -0
  35. package/dist/buffer.js +9 -0
  36. package/dist/buffer.js.map +1 -0
  37. package/dist/calibration.d.ts +81 -0
  38. package/dist/calibration.js +239 -0
  39. package/dist/calibration.js.map +1 -0
  40. package/dist/causal-behavior.d.ts +79 -0
  41. package/dist/causal-behavior.js +190 -0
  42. package/dist/causal-behavior.js.map +1 -0
  43. package/dist/causal-chain.d.ts +61 -0
  44. package/dist/causal-chain.js +24 -0
  45. package/dist/causal-chain.js.map +1 -0
  46. package/dist/causal-consolidation.d.ts +71 -0
  47. package/dist/causal-consolidation.js +211 -0
  48. package/dist/causal-consolidation.js.map +1 -0
  49. package/dist/causal-retrieval.d.ts +44 -0
  50. package/dist/causal-retrieval.js +184 -0
  51. package/dist/causal-retrieval.js.map +1 -0
  52. package/dist/causal-trajectory-graph.d.ts +13 -0
  53. package/dist/causal-trajectory-graph.js +59 -0
  54. package/dist/causal-trajectory-graph.js.map +1 -0
  55. package/dist/causal-trajectory.d.ts +68 -0
  56. package/dist/causal-trajectory.js +18 -0
  57. package/dist/causal-trajectory.js.map +1 -0
  58. package/dist/chunk-2CJCWDMR.js +87 -0
  59. package/dist/chunk-2CJCWDMR.js.map +1 -0
  60. package/dist/chunk-2NMMFZ5T.js +216 -0
  61. package/dist/chunk-2NMMFZ5T.js.map +1 -0
  62. package/dist/chunk-2PO5ZRKV.js +103 -0
  63. package/dist/chunk-2PO5ZRKV.js.map +1 -0
  64. package/dist/chunk-3QKK7QOS.js +154 -0
  65. package/dist/chunk-3QKK7QOS.js.map +1 -0
  66. package/dist/chunk-3SLRNYNG.js +26 -0
  67. package/dist/chunk-3SLRNYNG.js.map +1 -0
  68. package/dist/chunk-4A24LIM2.js +68 -0
  69. package/dist/chunk-4A24LIM2.js.map +1 -0
  70. package/dist/chunk-6HZ6AO2P.js +164 -0
  71. package/dist/chunk-6HZ6AO2P.js.map +1 -0
  72. package/dist/chunk-763GUIOU.js +302 -0
  73. package/dist/chunk-763GUIOU.js.map +1 -0
  74. package/dist/chunk-AAI7JARD.js +173 -0
  75. package/dist/chunk-AAI7JARD.js.map +1 -0
  76. package/dist/chunk-B7LOFDVE.js +112 -0
  77. package/dist/chunk-B7LOFDVE.js.map +1 -0
  78. package/dist/chunk-BDFZXRSO.js +318 -0
  79. package/dist/chunk-BDFZXRSO.js.map +1 -0
  80. package/dist/chunk-BOUYNNYD.js +707 -0
  81. package/dist/chunk-BOUYNNYD.js.map +1 -0
  82. package/dist/chunk-BRK4ODMI.js +60 -0
  83. package/dist/chunk-BRK4ODMI.js.map +1 -0
  84. package/dist/chunk-C6QPK5GG.js +111 -0
  85. package/dist/chunk-C6QPK5GG.js.map +1 -0
  86. package/dist/chunk-C7VW7C3F.js +117 -0
  87. package/dist/chunk-C7VW7C3F.js.map +1 -0
  88. package/dist/chunk-CDW777AI.js +621 -0
  89. package/dist/chunk-CDW777AI.js.map +1 -0
  90. package/dist/chunk-CULXMQJH.js +185 -0
  91. package/dist/chunk-CULXMQJH.js.map +1 -0
  92. package/dist/chunk-CXWFUJR2.js +1203 -0
  93. package/dist/chunk-CXWFUJR2.js.map +1 -0
  94. package/dist/chunk-DGXUHMOV.js +61 -0
  95. package/dist/chunk-DGXUHMOV.js.map +1 -0
  96. package/dist/chunk-DM2T26WE.js +61 -0
  97. package/dist/chunk-DM2T26WE.js.map +1 -0
  98. package/dist/chunk-DORBM6OB.js +81 -0
  99. package/dist/chunk-DORBM6OB.js.map +1 -0
  100. package/dist/chunk-DT5TVLJE.js +32 -0
  101. package/dist/chunk-DT5TVLJE.js.map +1 -0
  102. package/dist/chunk-EEQLFRUM.js +89 -0
  103. package/dist/chunk-EEQLFRUM.js.map +1 -0
  104. package/dist/chunk-EQINRHYR.js +672 -0
  105. package/dist/chunk-EQINRHYR.js.map +1 -0
  106. package/dist/chunk-ESSMF2FR.js +146 -0
  107. package/dist/chunk-ESSMF2FR.js.map +1 -0
  108. package/dist/chunk-ETOW6ACV.js +158 -0
  109. package/dist/chunk-ETOW6ACV.js.map +1 -0
  110. package/dist/chunk-FYIYMQ5N.js +221 -0
  111. package/dist/chunk-FYIYMQ5N.js.map +1 -0
  112. package/dist/chunk-G3AG3KZN.js +78 -0
  113. package/dist/chunk-G3AG3KZN.js.map +1 -0
  114. package/dist/chunk-GJR6D6KC.js +61 -0
  115. package/dist/chunk-GJR6D6KC.js.map +1 -0
  116. package/dist/chunk-GPGBSNKM.js +380 -0
  117. package/dist/chunk-GPGBSNKM.js.map +1 -0
  118. package/dist/chunk-H63EDPFJ.js +57 -0
  119. package/dist/chunk-H63EDPFJ.js.map +1 -0
  120. package/dist/chunk-HG2NKWR2.js +185 -0
  121. package/dist/chunk-HG2NKWR2.js.map +1 -0
  122. package/dist/chunk-HL4DB7TO.js +13 -0
  123. package/dist/chunk-HL4DB7TO.js.map +1 -0
  124. package/dist/chunk-HLBYLYRD.js +346 -0
  125. package/dist/chunk-HLBYLYRD.js.map +1 -0
  126. package/dist/chunk-HLXVTBF3.js +109 -0
  127. package/dist/chunk-HLXVTBF3.js.map +1 -0
  128. package/dist/chunk-IFFFR3MR.js +68 -0
  129. package/dist/chunk-IFFFR3MR.js.map +1 -0
  130. package/dist/chunk-ISY75RLM.js +1027 -0
  131. package/dist/chunk-ISY75RLM.js.map +1 -0
  132. package/dist/chunk-IZME7KW2.js +1886 -0
  133. package/dist/chunk-IZME7KW2.js.map +1 -0
  134. package/dist/chunk-J3BT33K7.js +720 -0
  135. package/dist/chunk-J3BT33K7.js.map +1 -0
  136. package/dist/chunk-J47FNDR7.js +113 -0
  137. package/dist/chunk-J47FNDR7.js.map +1 -0
  138. package/dist/chunk-JWPLJLDU.js +63 -0
  139. package/dist/chunk-JWPLJLDU.js.map +1 -0
  140. package/dist/chunk-K6WK37A6.js +865 -0
  141. package/dist/chunk-K6WK37A6.js.map +1 -0
  142. package/dist/chunk-KL4CP4SB.js +130 -0
  143. package/dist/chunk-KL4CP4SB.js.map +1 -0
  144. package/dist/chunk-KT4NEUNF.js +315 -0
  145. package/dist/chunk-KT4NEUNF.js.map +1 -0
  146. package/dist/chunk-KWBU5S5U.js +42 -0
  147. package/dist/chunk-KWBU5S5U.js.map +1 -0
  148. package/dist/chunk-L5RPWGFK.js +59 -0
  149. package/dist/chunk-L5RPWGFK.js.map +1 -0
  150. package/dist/chunk-L7WO3MZ4.js +128 -0
  151. package/dist/chunk-L7WO3MZ4.js.map +1 -0
  152. package/dist/chunk-LIRZNNUP.js +74 -0
  153. package/dist/chunk-LIRZNNUP.js.map +1 -0
  154. package/dist/chunk-LK6SGL53.js +22 -0
  155. package/dist/chunk-LK6SGL53.js.map +1 -0
  156. package/dist/chunk-LOBRX7VD.js +200 -0
  157. package/dist/chunk-LOBRX7VD.js.map +1 -0
  158. package/dist/chunk-LPSF4OQH.js +47 -0
  159. package/dist/chunk-LPSF4OQH.js.map +1 -0
  160. package/dist/chunk-LU3GQNDQ.js +152 -0
  161. package/dist/chunk-LU3GQNDQ.js.map +1 -0
  162. package/dist/chunk-M5KEYE5E.js +350 -0
  163. package/dist/chunk-M5KEYE5E.js.map +1 -0
  164. package/dist/chunk-M62O4P4T.js +41 -0
  165. package/dist/chunk-M62O4P4T.js.map +1 -0
  166. package/dist/chunk-MARWOCVP.js +48 -0
  167. package/dist/chunk-MARWOCVP.js.map +1 -0
  168. package/dist/chunk-MDDAA2AO.js +925 -0
  169. package/dist/chunk-MDDAA2AO.js.map +1 -0
  170. package/dist/chunk-MWGVGUIS.js +198 -0
  171. package/dist/chunk-MWGVGUIS.js.map +1 -0
  172. package/dist/chunk-N5AKDXAI.js +74 -0
  173. package/dist/chunk-N5AKDXAI.js.map +1 -0
  174. package/dist/chunk-NGAVDO7E.js +115 -0
  175. package/dist/chunk-NGAVDO7E.js.map +1 -0
  176. package/dist/chunk-NTTLPF7F.js +283 -0
  177. package/dist/chunk-NTTLPF7F.js.map +1 -0
  178. package/dist/chunk-ONRU4L2N.js +240 -0
  179. package/dist/chunk-ONRU4L2N.js.map +1 -0
  180. package/dist/chunk-ORZMT74A.js +209 -0
  181. package/dist/chunk-ORZMT74A.js.map +1 -0
  182. package/dist/chunk-OTAVQCSF.js +268 -0
  183. package/dist/chunk-OTAVQCSF.js.map +1 -0
  184. package/dist/chunk-PGK3VUHN.js +160 -0
  185. package/dist/chunk-PGK3VUHN.js.map +1 -0
  186. package/dist/chunk-Q6FETXJA.js +1362 -0
  187. package/dist/chunk-Q6FETXJA.js.map +1 -0
  188. package/dist/chunk-QANCTXQF.js +271 -0
  189. package/dist/chunk-QANCTXQF.js.map +1 -0
  190. package/dist/chunk-QCCCQT3O.js +189 -0
  191. package/dist/chunk-QCCCQT3O.js.map +1 -0
  192. package/dist/chunk-QDOSNLB4.js +1048 -0
  193. package/dist/chunk-QDOSNLB4.js.map +1 -0
  194. package/dist/chunk-QFQVZOGA.js +2168 -0
  195. package/dist/chunk-QFQVZOGA.js.map +1 -0
  196. package/dist/chunk-QPKFPHOO.js +178 -0
  197. package/dist/chunk-QPKFPHOO.js.map +1 -0
  198. package/dist/chunk-QSVPYQPG.js +268 -0
  199. package/dist/chunk-QSVPYQPG.js.map +1 -0
  200. package/dist/chunk-QWUUMMIK.js +3045 -0
  201. package/dist/chunk-QWUUMMIK.js.map +1 -0
  202. package/dist/chunk-QY2BHY5O.js +2378 -0
  203. package/dist/chunk-QY2BHY5O.js.map +1 -0
  204. package/dist/chunk-SCHEKPYH.js +349 -0
  205. package/dist/chunk-SCHEKPYH.js.map +1 -0
  206. package/dist/chunk-SCU65EZI.js +15 -0
  207. package/dist/chunk-SCU65EZI.js.map +1 -0
  208. package/dist/chunk-T4WRIV2C.js +170 -0
  209. package/dist/chunk-T4WRIV2C.js.map +1 -0
  210. package/dist/chunk-TKO4HZCK.js +1852 -0
  211. package/dist/chunk-TKO4HZCK.js.map +1 -0
  212. package/dist/chunk-TP4FZJIZ.js +93 -0
  213. package/dist/chunk-TP4FZJIZ.js.map +1 -0
  214. package/dist/chunk-TPB3I2AC.js +403 -0
  215. package/dist/chunk-TPB3I2AC.js.map +1 -0
  216. package/dist/chunk-TVVVQQAK.js +1431 -0
  217. package/dist/chunk-TVVVQQAK.js.map +1 -0
  218. package/dist/chunk-U4PV25RD.js +14 -0
  219. package/dist/chunk-U4PV25RD.js.map +1 -0
  220. package/dist/chunk-UCYSTFZR.js +284 -0
  221. package/dist/chunk-UCYSTFZR.js.map +1 -0
  222. package/dist/chunk-UHGBNIOS.js +205 -0
  223. package/dist/chunk-UHGBNIOS.js.map +1 -0
  224. package/dist/chunk-UIYZ5T3I.js +108 -0
  225. package/dist/chunk-UIYZ5T3I.js.map +1 -0
  226. package/dist/chunk-UV2FO7J4.js +747 -0
  227. package/dist/chunk-UV2FO7J4.js.map +1 -0
  228. package/dist/chunk-UZB5KHKX.js +63 -0
  229. package/dist/chunk-UZB5KHKX.js.map +1 -0
  230. package/dist/chunk-V3RXWQIE.js +626 -0
  231. package/dist/chunk-V3RXWQIE.js.map +1 -0
  232. package/dist/chunk-V4YC4LUK.js +444 -0
  233. package/dist/chunk-V4YC4LUK.js.map +1 -0
  234. package/dist/chunk-VEWZZM3H.js +133 -0
  235. package/dist/chunk-VEWZZM3H.js.map +1 -0
  236. package/dist/chunk-WWIQTB2Y.js +98 -0
  237. package/dist/chunk-WWIQTB2Y.js.map +1 -0
  238. package/dist/chunk-X7XN6YU4.js +24 -0
  239. package/dist/chunk-X7XN6YU4.js.map +1 -0
  240. package/dist/chunk-XKECPATV.js +202 -0
  241. package/dist/chunk-XKECPATV.js.map +1 -0
  242. package/dist/chunk-XYIK4LF6.js +75 -0
  243. package/dist/chunk-XYIK4LF6.js.map +1 -0
  244. package/dist/chunk-Y27UJK6V.js +39 -0
  245. package/dist/chunk-Y27UJK6V.js.map +1 -0
  246. package/dist/chunk-Y4Z4I6WK.js +9 -0
  247. package/dist/chunk-Y4Z4I6WK.js.map +1 -0
  248. package/dist/chunk-YAPUAHAY.js +10761 -0
  249. package/dist/chunk-YAPUAHAY.js.map +1 -0
  250. package/dist/chunk-YAZNBMNF.js +92 -0
  251. package/dist/chunk-YAZNBMNF.js.map +1 -0
  252. package/dist/chunk-YCN4BVDK.js +66 -0
  253. package/dist/chunk-YCN4BVDK.js.map +1 -0
  254. package/dist/chunk-YNCQ7E4M.js +388 -0
  255. package/dist/chunk-YNCQ7E4M.js.map +1 -0
  256. package/dist/chunk-YNI4S5WT.js +143 -0
  257. package/dist/chunk-YNI4S5WT.js.map +1 -0
  258. package/dist/chunk-YRMVARQP.js +406 -0
  259. package/dist/chunk-YRMVARQP.js.map +1 -0
  260. package/dist/chunk-Z5AAYHUC.js +79 -0
  261. package/dist/chunk-Z5AAYHUC.js.map +1 -0
  262. package/dist/chunk-Z5LAYHGJ.js +15 -0
  263. package/dist/chunk-Z5LAYHGJ.js.map +1 -0
  264. package/dist/chunk-ZJLY4QSU.js +823 -0
  265. package/dist/chunk-ZJLY4QSU.js.map +1 -0
  266. package/dist/chunk-ZKYI7UVO.js +276 -0
  267. package/dist/chunk-ZKYI7UVO.js.map +1 -0
  268. package/dist/chunk-ZPKBYX2F.js +297 -0
  269. package/dist/chunk-ZPKBYX2F.js.map +1 -0
  270. package/dist/chunking.d.ts +48 -0
  271. package/dist/chunking.js +11 -0
  272. package/dist/chunking.js.map +1 -0
  273. package/dist/cli.d.ts +1162 -0
  274. package/dist/cli.js +7187 -0
  275. package/dist/cli.js.map +1 -0
  276. package/dist/commitment-ledger.d.ts +83 -0
  277. package/dist/commitment-ledger.js +19 -0
  278. package/dist/commitment-ledger.js.map +1 -0
  279. package/dist/compression-optimizer.d.ts +37 -0
  280. package/dist/compression-optimizer.js +13 -0
  281. package/dist/compression-optimizer.js.map +1 -0
  282. package/dist/config.d.ts +6 -0
  283. package/dist/config.js +12 -0
  284. package/dist/config.js.map +1 -0
  285. package/dist/cue-anchors.d.ts +50 -0
  286. package/dist/cue-anchors.js +15 -0
  287. package/dist/cue-anchors.js.map +1 -0
  288. package/dist/dashboard-runtime.d.ts +46 -0
  289. package/dist/dashboard-runtime.js +10 -0
  290. package/dist/dashboard-runtime.js.map +1 -0
  291. package/dist/day-summary.d.ts +6 -0
  292. package/dist/day-summary.js +10 -0
  293. package/dist/day-summary.js.map +1 -0
  294. package/dist/delinearize.d.ts +34 -0
  295. package/dist/delinearize.js +11 -0
  296. package/dist/delinearize.js.map +1 -0
  297. package/dist/embedding-fallback.d.ts +22 -0
  298. package/dist/embedding-fallback.js +8 -0
  299. package/dist/embedding-fallback.js.map +1 -0
  300. package/dist/engine-P26JFSVY.js +19 -0
  301. package/dist/engine-P26JFSVY.js.map +1 -0
  302. package/dist/entity-retrieval.d.ts +23 -0
  303. package/dist/entity-retrieval.js +24 -0
  304. package/dist/entity-retrieval.js.map +1 -0
  305. package/dist/evals.d.ts +282 -0
  306. package/dist/evals.js +32 -0
  307. package/dist/evals.js.map +1 -0
  308. package/dist/explicit-capture.d.ts +60 -0
  309. package/dist/explicit-capture.js +23 -0
  310. package/dist/explicit-capture.js.map +1 -0
  311. package/dist/extraction.d.ts +141 -0
  312. package/dist/extraction.js +22 -0
  313. package/dist/extraction.js.map +1 -0
  314. package/dist/fallback-llm.d.ts +95 -0
  315. package/dist/fallback-llm.js +12 -0
  316. package/dist/fallback-llm.js.map +1 -0
  317. package/dist/graph-dashboard-diff.d.ts +12 -0
  318. package/dist/graph-dashboard-diff.js +8 -0
  319. package/dist/graph-dashboard-diff.js.map +1 -0
  320. package/dist/graph-dashboard-key.d.ts +5 -0
  321. package/dist/graph-dashboard-key.js +7 -0
  322. package/dist/graph-dashboard-key.js.map +1 -0
  323. package/dist/graph-dashboard-parser.d.ts +20 -0
  324. package/dist/graph-dashboard-parser.js +8 -0
  325. package/dist/graph-dashboard-parser.js.map +1 -0
  326. package/dist/graph.d.ts +157 -0
  327. package/dist/graph.js +27 -0
  328. package/dist/graph.js.map +1 -0
  329. package/dist/harmonic-retrieval.d.ts +27 -0
  330. package/dist/harmonic-retrieval.js +12 -0
  331. package/dist/harmonic-retrieval.js.map +1 -0
  332. package/dist/himem.d.ts +23 -0
  333. package/dist/himem.js +7 -0
  334. package/dist/himem.js.map +1 -0
  335. package/dist/hygiene.d.ts +24 -0
  336. package/dist/hygiene.js +9 -0
  337. package/dist/hygiene.js.map +1 -0
  338. package/dist/identity-continuity.d.ts +17 -0
  339. package/dist/identity-continuity.js +19 -0
  340. package/dist/identity-continuity.js.map +1 -0
  341. package/dist/importance.d.ts +25 -0
  342. package/dist/importance.js +11 -0
  343. package/dist/importance.js.map +1 -0
  344. package/dist/index.d.ts +923 -0
  345. package/dist/index.js +2512 -0
  346. package/dist/index.js.map +1 -0
  347. package/dist/intent.d.ts +8 -0
  348. package/dist/intent.js +13 -0
  349. package/dist/intent.js.map +1 -0
  350. package/dist/json-extract.d.ts +14 -0
  351. package/dist/json-extract.js +9 -0
  352. package/dist/json-extract.js.map +1 -0
  353. package/dist/json-store.d.ts +5 -0
  354. package/dist/json-store.js +11 -0
  355. package/dist/json-store.js.map +1 -0
  356. package/dist/legacy-hook-compat.d.ts +3 -0
  357. package/dist/legacy-hook-compat.js +35 -0
  358. package/dist/legacy-hook-compat.js.map +1 -0
  359. package/dist/lifecycle.d.ts +52 -0
  360. package/dist/lifecycle.js +21 -0
  361. package/dist/lifecycle.js.map +1 -0
  362. package/dist/local-llm.d.ts +154 -0
  363. package/dist/local-llm.js +10 -0
  364. package/dist/local-llm.js.map +1 -0
  365. package/dist/logger.d.ts +15 -0
  366. package/dist/logger.js +9 -0
  367. package/dist/logger.js.map +1 -0
  368. package/dist/memory-action-policy.d.ts +13 -0
  369. package/dist/memory-action-policy.js +7 -0
  370. package/dist/memory-action-policy.js.map +1 -0
  371. package/dist/memory-cache.d.ts +35 -0
  372. package/dist/memory-cache.js +37 -0
  373. package/dist/memory-cache.js.map +1 -0
  374. package/dist/memory-lifecycle-ledger-utils.d.ts +13 -0
  375. package/dist/memory-lifecycle-ledger-utils.js +23 -0
  376. package/dist/memory-lifecycle-ledger-utils.js.map +1 -0
  377. package/dist/memory-projection-format.d.ts +4 -0
  378. package/dist/memory-projection-format.js +9 -0
  379. package/dist/memory-projection-format.js.map +1 -0
  380. package/dist/memory-projection-store-NxMkbocT.d.ts +221 -0
  381. package/dist/memory-projection-store.d.ts +3 -0
  382. package/dist/memory-projection-store.js +31 -0
  383. package/dist/memory-projection-store.js.map +1 -0
  384. package/dist/model-registry.d.ts +60 -0
  385. package/dist/model-registry.js +8 -0
  386. package/dist/model-registry.js.map +1 -0
  387. package/dist/native-knowledge.d.ts +94 -0
  388. package/dist/native-knowledge.js +26 -0
  389. package/dist/native-knowledge.js.map +1 -0
  390. package/dist/negative.d.ts +26 -0
  391. package/dist/negative.js +8 -0
  392. package/dist/negative.js.map +1 -0
  393. package/dist/objective-state-writers.d.ts +22 -0
  394. package/dist/objective-state-writers.js +313 -0
  395. package/dist/objective-state-writers.js.map +1 -0
  396. package/dist/objective-state.d.ts +75 -0
  397. package/dist/objective-state.js +17 -0
  398. package/dist/objective-state.js.map +1 -0
  399. package/dist/openai-chat-compat.d.ts +13 -0
  400. package/dist/openai-chat-compat.js +11 -0
  401. package/dist/openai-chat-compat.js.map +1 -0
  402. package/dist/operator-toolkit.d.ts +304 -0
  403. package/dist/operator-toolkit.js +41 -0
  404. package/dist/operator-toolkit.js.map +1 -0
  405. package/dist/opik-exporter.d.ts +72 -0
  406. package/dist/opik-exporter.js +361 -0
  407. package/dist/opik-exporter.js.map +1 -0
  408. package/dist/orchestrator-zTa-Qo-1.d.ts +1104 -0
  409. package/dist/orchestrator.d.ts +21 -0
  410. package/dist/orchestrator.js +145 -0
  411. package/dist/orchestrator.js.map +1 -0
  412. package/dist/policy-runtime.d.ts +37 -0
  413. package/dist/policy-runtime.js +13 -0
  414. package/dist/policy-runtime.js.map +1 -0
  415. package/dist/port-C1GZFv8h.d.ts +41 -0
  416. package/dist/profiling.d.ts +80 -0
  417. package/dist/profiling.js +10 -0
  418. package/dist/profiling.js.map +1 -0
  419. package/dist/qmd-recall-cache.d.ts +29 -0
  420. package/dist/qmd-recall-cache.js +13 -0
  421. package/dist/qmd-recall-cache.js.map +1 -0
  422. package/dist/qmd.d.ts +105 -0
  423. package/dist/qmd.js +13 -0
  424. package/dist/qmd.js.map +1 -0
  425. package/dist/recall-qos.d.ts +33 -0
  426. package/dist/recall-qos.js +10 -0
  427. package/dist/recall-qos.js.map +1 -0
  428. package/dist/recall-query-policy.d.ts +20 -0
  429. package/dist/recall-query-policy.js +11 -0
  430. package/dist/recall-query-policy.js.map +1 -0
  431. package/dist/recall-state.d.ts +113 -0
  432. package/dist/recall-state.js +12 -0
  433. package/dist/recall-state.js.map +1 -0
  434. package/dist/recall-tokenization.d.ts +4 -0
  435. package/dist/recall-tokenization.js +9 -0
  436. package/dist/recall-tokenization.js.map +1 -0
  437. package/dist/reconstruct.d.ts +16 -0
  438. package/dist/reconstruct.js +7 -0
  439. package/dist/reconstruct.js.map +1 -0
  440. package/dist/release-changelog.d.ts +7 -0
  441. package/dist/release-changelog.js +30 -0
  442. package/dist/release-changelog.js.map +1 -0
  443. package/dist/relevance.d.ts +18 -0
  444. package/dist/relevance.js +8 -0
  445. package/dist/relevance.js.map +1 -0
  446. package/dist/rerank.d.ts +57 -0
  447. package/dist/rerank.js +11 -0
  448. package/dist/rerank.js.map +1 -0
  449. package/dist/resolve-provider-secret.d.ts +16 -0
  450. package/dist/resolve-provider-secret.js +11 -0
  451. package/dist/resolve-provider-secret.js.map +1 -0
  452. package/dist/resume-bundles.d.ts +66 -0
  453. package/dist/resume-bundles.js +27 -0
  454. package/dist/resume-bundles.js.map +1 -0
  455. package/dist/retrieval-agents.d.ts +129 -0
  456. package/dist/retrieval-agents.js +23 -0
  457. package/dist/retrieval-agents.js.map +1 -0
  458. package/dist/retrieval.d.ts +19 -0
  459. package/dist/retrieval.js +10 -0
  460. package/dist/retrieval.js.map +1 -0
  461. package/dist/sanitize.d.ts +9 -0
  462. package/dist/sanitize.js +9 -0
  463. package/dist/sanitize.js.map +1 -0
  464. package/dist/schemas.d.ts +688 -0
  465. package/dist/schemas.js +51 -0
  466. package/dist/schemas.js.map +1 -0
  467. package/dist/sdk-compat.d.ts +21 -0
  468. package/dist/sdk-compat.js +28 -0
  469. package/dist/sdk-compat.js.map +1 -0
  470. package/dist/semantic-consolidation.d.ts +42 -0
  471. package/dist/semantic-consolidation.js +12 -0
  472. package/dist/semantic-consolidation.js.map +1 -0
  473. package/dist/semantic-rule-promotion.d.ts +28 -0
  474. package/dist/semantic-rule-promotion.js +17 -0
  475. package/dist/semantic-rule-promotion.js.map +1 -0
  476. package/dist/semantic-rule-verifier.d.ts +19 -0
  477. package/dist/semantic-rule-verifier.js +18 -0
  478. package/dist/semantic-rule-verifier.js.map +1 -0
  479. package/dist/session-integrity.d.ts +67 -0
  480. package/dist/session-integrity.js +11 -0
  481. package/dist/session-integrity.js.map +1 -0
  482. package/dist/session-observer-bands.d.ts +6 -0
  483. package/dist/session-observer-bands.js +9 -0
  484. package/dist/session-observer-bands.js.map +1 -0
  485. package/dist/session-observer-state.d.ts +40 -0
  486. package/dist/session-observer-state.js +11 -0
  487. package/dist/session-observer-state.js.map +1 -0
  488. package/dist/signal.d.ts +6 -0
  489. package/dist/signal.js +9 -0
  490. package/dist/signal.js.map +1 -0
  491. package/dist/storage.d.ts +453 -0
  492. package/dist/storage.js +24 -0
  493. package/dist/storage.js.map +1 -0
  494. package/dist/store-contract.d.ts +10 -0
  495. package/dist/store-contract.js +21 -0
  496. package/dist/store-contract.js.map +1 -0
  497. package/dist/summarizer.d.ts +35 -0
  498. package/dist/summarizer.js +17 -0
  499. package/dist/summarizer.js.map +1 -0
  500. package/dist/summary-snapshot.d.ts +8 -0
  501. package/dist/summary-snapshot.js +13 -0
  502. package/dist/summary-snapshot.js.map +1 -0
  503. package/dist/temporal-index.d.ts +139 -0
  504. package/dist/temporal-index.js +29 -0
  505. package/dist/temporal-index.js.map +1 -0
  506. package/dist/threading.d.ts +62 -0
  507. package/dist/threading.js +8 -0
  508. package/dist/threading.js.map +1 -0
  509. package/dist/tier-migration.d.ts +44 -0
  510. package/dist/tier-migration.js +7 -0
  511. package/dist/tier-migration.js.map +1 -0
  512. package/dist/tier-routing.d.ts +21 -0
  513. package/dist/tier-routing.js +10 -0
  514. package/dist/tier-routing.js.map +1 -0
  515. package/dist/tmt.d.ts +79 -0
  516. package/dist/tmt.js +29 -0
  517. package/dist/tmt.js.map +1 -0
  518. package/dist/tokens.d.ts +24 -0
  519. package/dist/tokens.js +21 -0
  520. package/dist/tokens.js.map +1 -0
  521. package/dist/topics.d.ts +29 -0
  522. package/dist/topics.js +9 -0
  523. package/dist/topics.js.map +1 -0
  524. package/dist/transcript.d.ts +171 -0
  525. package/dist/transcript.js +9 -0
  526. package/dist/transcript.js.map +1 -0
  527. package/dist/trust-zones.d.ts +170 -0
  528. package/dist/trust-zones.js +32 -0
  529. package/dist/trust-zones.js.map +1 -0
  530. package/dist/types.d.ts +1243 -0
  531. package/dist/types.js +9 -0
  532. package/dist/types.js.map +1 -0
  533. package/dist/utility-learner.d.ts +59 -0
  534. package/dist/utility-learner.js +17 -0
  535. package/dist/utility-learner.js.map +1 -0
  536. package/dist/utility-runtime.d.ts +21 -0
  537. package/dist/utility-runtime.js +16 -0
  538. package/dist/utility-runtime.js.map +1 -0
  539. package/dist/utility-telemetry.d.ts +68 -0
  540. package/dist/utility-telemetry.js +17 -0
  541. package/dist/utility-telemetry.js.map +1 -0
  542. package/dist/verified-recall.d.ts +17 -0
  543. package/dist/verified-recall.js +19 -0
  544. package/dist/verified-recall.js.map +1 -0
  545. package/dist/version-utils.d.ts +4 -0
  546. package/dist/version-utils.js +7 -0
  547. package/dist/version-utils.js.map +1 -0
  548. package/dist/work-product-ledger.d.ts +65 -0
  549. package/dist/work-product-ledger.js +18 -0
  550. package/dist/work-product-ledger.js.map +1 -0
  551. package/package.json +58 -0
@@ -0,0 +1,923 @@
1
+ export { parseConfig } from './config.js';
2
+ export { O as Orchestrator, d as defaultWorkspaceDir, s as sanitizeSessionKeyForFilename } from './orchestrator-zTa-Qo-1.js';
3
+ export { StorageManager } from './storage.js';
4
+ export { ExtractionEngine } from './extraction.js';
5
+ export { QmdClient } from './qmd.js';
6
+ import { S as SearchBackend, a as SearchQueryOptions, b as SearchExecutionOptions, c as SearchResult } from './port-C1GZFv8h.js';
7
+ import { PluginConfig } from './types.js';
8
+ export { ContinuityImprovementLoop, MemoryActionEligibilityContext, MemoryActionEligibilitySource, MemoryActionType, MemoryCategory, MemoryFile } from './types.js';
9
+ export { buildEntityRecallSection } from './entity-retrieval.js';
10
+ export { TrustZoneName, TrustZoneRecord, TrustZoneRecordKind, TrustZoneSourceClass, isTrustZoneName } from './trust-zones.js';
11
+ export { EngramAccessInputError, EngramAccessService } from './access-service.js';
12
+ export { EngramAccessHttpServer } from './access-http.js';
13
+ export { EngramMcpServer } from './access-mcp.js';
14
+ export { MemoryStoreRequest, ObserveRequest, RecallRequest, SchemaName, SchemaValidationError, SuggestionSubmitRequest, formatZodError, memoryStoreRequestSchema, observeRequestSchema, recallRequestSchema, suggestionSubmitRequestSchema, validateRequest } from './access-schema.js';
15
+ export { loadDaySummaryPrompt } from './day-summary.js';
16
+ export { BootstrapEngine } from './bootstrap.js';
17
+ export { initLogger, log } from './logger.js';
18
+ export { TokenEntry, TokenStore, generateToken, getAllValidTokens, getAllValidTokensCached, listTokens, loadTokenStore, resolveConnectorFromToken, revokeToken, saveTokenStore } from './tokens.js';
19
+ import './buffer.js';
20
+ import './memory-projection-store-NxMkbocT.js';
21
+ import 'better-sqlite3';
22
+ import './transcript.js';
23
+ import './session-integrity.js';
24
+ import './summarizer.js';
25
+ import './model-registry.js';
26
+ import './local-llm.js';
27
+ import './relevance.js';
28
+ import './negative.js';
29
+ import './recall-state.js';
30
+ import './session-observer-state.js';
31
+ import './embedding-fallback.js';
32
+ import './semantic-consolidation.js';
33
+ import 'zod';
34
+ import './policy-runtime.js';
35
+ import './profiling.js';
36
+ import './schemas.js';
37
+ import './explicit-capture.js';
38
+ import 'node:http';
39
+ import 'node:stream';
40
+
41
+ interface MigrationResult {
42
+ status: "fresh-install" | "already-migrated" | "migrated";
43
+ copied: string[];
44
+ tokensRegenerated: number;
45
+ servicesReinstalled: string[];
46
+ rollbackCommand: string;
47
+ }
48
+ interface MigrationOptions {
49
+ connectorConfigPaths?: string[];
50
+ cwd?: string;
51
+ execCommand?: (command: string, args: string[]) => void;
52
+ homeDir?: string;
53
+ logger?: (message: string) => void;
54
+ platform?: NodeJS.Platform;
55
+ quiet?: boolean;
56
+ }
57
+ interface RollbackResult {
58
+ removed: string[];
59
+ restored: string[];
60
+ }
61
+ declare function rollbackFromEngramMigration(options?: MigrationOptions): Promise<RollbackResult>;
62
+ declare function migrateFromEngram(options?: MigrationOptions): Promise<MigrationResult>;
63
+
64
+ /**
65
+ * Standalone embedding helper for search backend adapters.
66
+ *
67
+ * NOTE: This intentionally duplicates provider resolution from EmbeddingFallback.
68
+ * EmbeddingFallback is tightly integrated with the plugin lifecycle (telemetry,
69
+ * rate-limit backoff, provider rotation). This class is a lightweight standalone
70
+ * utility used by LanceDB/Orama backends which operate outside plugin context.
71
+ * Merging them would break the port/adapter separation between search and plugin layers.
72
+ */
73
+ declare class EmbedHelper {
74
+ private readonly config;
75
+ private provider;
76
+ constructor(config: PluginConfig);
77
+ /**
78
+ * Whether an embedding provider is available.
79
+ * Resolves the provider on first call.
80
+ */
81
+ isAvailable(): boolean;
82
+ /**
83
+ * Embed a single text string. Returns null if no provider is available.
84
+ */
85
+ embed(text: string): Promise<number[] | null>;
86
+ /**
87
+ * Embed a batch of texts. Returns an array parallel to input; entries are null on failure.
88
+ */
89
+ embedBatch(texts: string[], batchSize?: number): Promise<(number[] | null)[]>;
90
+ private getProvider;
91
+ private resolveProvider;
92
+ private callEmbed;
93
+ }
94
+
95
+ interface LanceDbBackendOptions {
96
+ dbPath: string;
97
+ collection: string;
98
+ embedHelper: EmbedHelper;
99
+ memoryDir: string;
100
+ embeddingDimension: number;
101
+ }
102
+ /**
103
+ * LanceDB search backend — embedded hybrid FTS+vector with RRF reranking.
104
+ *
105
+ * Uses @lancedb/lancedb for native Arrow-backed storage.
106
+ * One table per collection. Supports full-text, vector, and hybrid search.
107
+ */
108
+ declare class LanceDbBackend implements SearchBackend {
109
+ private readonly dbPath;
110
+ private readonly collection;
111
+ private readonly embedHelper;
112
+ private readonly memoryDir;
113
+ private readonly embeddingDimension;
114
+ private available;
115
+ private db;
116
+ private lanceModule;
117
+ constructor(opts: LanceDbBackendOptions);
118
+ probe(): Promise<boolean>;
119
+ isAvailable(): boolean;
120
+ debugStatus(): string;
121
+ search(query: string, _collection?: string, maxResults?: number, _options?: SearchQueryOptions, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
122
+ searchGlobal(query: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
123
+ bm25Search(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
124
+ vectorSearch(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
125
+ hybridSearch(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
126
+ update(): Promise<void>;
127
+ updateCollection(collection: string): Promise<void>;
128
+ embed(): Promise<void>;
129
+ embedCollection(collection: string): Promise<void>;
130
+ ensureCollection(_memoryDir: string): Promise<"present" | "missing" | "unknown" | "skipped">;
131
+ private table;
132
+ private get lanceIndex();
133
+ private ensureDb;
134
+ private ensureTableForCollection;
135
+ private ensureTable;
136
+ private searchTable;
137
+ private mapRows;
138
+ }
139
+
140
+ interface OramaBackendOptions {
141
+ dbPath: string;
142
+ collection: string;
143
+ embedHelper: EmbedHelper;
144
+ memoryDir: string;
145
+ embeddingDimension: number;
146
+ }
147
+ /**
148
+ * Orama search backend — embedded hybrid FTS+vector, pure JS.
149
+ *
150
+ * Uses @orama/orama for full-text search with optional vector support.
151
+ * Persists data to JSON files via @orama/plugin-data-persistence.
152
+ */
153
+ declare class OramaBackend implements SearchBackend {
154
+ private readonly dbPath;
155
+ private readonly collection;
156
+ private readonly embedHelper;
157
+ private readonly memoryDir;
158
+ private readonly embeddingDimension;
159
+ private available;
160
+ private db;
161
+ private oramaModule;
162
+ private persistModule;
163
+ constructor(opts: OramaBackendOptions);
164
+ probe(): Promise<boolean>;
165
+ isAvailable(): boolean;
166
+ debugStatus(): string;
167
+ search(query: string, _collection?: string, maxResults?: number, _options?: SearchQueryOptions, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
168
+ searchGlobal(query: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
169
+ bm25Search(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
170
+ vectorSearch(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
171
+ hybridSearch(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
172
+ update(): Promise<void>;
173
+ updateCollection(collection: string): Promise<void>;
174
+ embed(): Promise<void>;
175
+ embedCollection(collection: string): Promise<void>;
176
+ ensureCollection(_memoryDir: string): Promise<"present" | "missing" | "unknown" | "skipped">;
177
+ private ensureModules;
178
+ private ensureDb;
179
+ private ensureDbForCollection;
180
+ private persistDbForCollection;
181
+ private dbFilePath;
182
+ private listDbFiles;
183
+ private loadDbFromFile;
184
+ private searchDb;
185
+ }
186
+
187
+ interface MeilisearchBackendOptions {
188
+ host: string;
189
+ apiKey?: string;
190
+ collection: string;
191
+ timeoutMs?: number;
192
+ autoIndex?: boolean;
193
+ memoryDir?: string;
194
+ }
195
+ /**
196
+ * Meilisearch search backend — server-based SDK client.
197
+ *
198
+ * Requires a running Meilisearch instance. Uses the official `meilisearch` SDK.
199
+ * When `autoIndex` is true, update() pushes docs from the local memory directory.
200
+ */
201
+ declare class MeilisearchBackend implements SearchBackend {
202
+ private readonly host;
203
+ private readonly apiKey?;
204
+ private readonly collection;
205
+ private readonly timeoutMs;
206
+ private readonly autoIndex;
207
+ private readonly memoryDir?;
208
+ private available;
209
+ private client;
210
+ private meiliModule;
211
+ constructor(opts: MeilisearchBackendOptions);
212
+ probe(): Promise<boolean>;
213
+ isAvailable(): boolean;
214
+ debugStatus(): string;
215
+ search(query: string, collection?: string, maxResults?: number, _options?: SearchQueryOptions, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
216
+ searchGlobal(query: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
217
+ bm25Search(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
218
+ vectorSearch(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
219
+ hybridSearch(query: string, collection?: string, maxResults?: number, _execution?: SearchExecutionOptions): Promise<SearchResult[]>;
220
+ update(): Promise<void>;
221
+ updateCollection(collection: string): Promise<void>;
222
+ embed(): Promise<void>;
223
+ embedCollection(collection: string): Promise<void>;
224
+ ensureCollection(_memoryDir: string): Promise<"present" | "missing" | "unknown" | "skipped">;
225
+ private ensureClient;
226
+ private doSearch;
227
+ private mapHits;
228
+ }
229
+
230
+ /**
231
+ * @remnic/core — Workspace Tree Projection
232
+ *
233
+ * Generates a human-readable `.engram/context-tree/` from canonical memory.
234
+ * Each node is a `.md` file with rich metadata, * (provenance, trust, confidence, source anchors).
235
+ * Manual edits are preserved in fenced blocks.
236
+ */
237
+ interface TreeNode {
238
+ /** Relative path from context-tree root, e.g. "entities/claude.md" */
239
+ path: string;
240
+ /** Category from canonical memory */
241
+ category: string;
242
+ /** Human-readable title */
243
+ title: string;
244
+ /** File content (rendered markdown) */
245
+ content: string;
246
+ /** Source memory IDs that contributed to this node */
247
+ sourceAnchors: string[];
248
+ /** Confidence (0-1) */
249
+ confidence: number;
250
+ /** Trust zone classification */
251
+ confidenceTier: string;
252
+ /** When this node was generated */
253
+ generatedAt: string;
254
+ /** Provenance chain */
255
+ provenance: ProvenanceEntry[];
256
+ }
257
+ interface ProvenanceEntry {
258
+ memoryId: string;
259
+ source: string;
260
+ extracted: string;
261
+ }
262
+ interface GenerateOptions {
263
+ /** Memory root directory (e.g. ~/.openclaw/workspace/memory/local) */
264
+ memoryDir: string;
265
+ /** Output directory (e.g. .engram/context-tree) */
266
+ outputDir: string;
267
+ /** Categories to include (default: all) */
268
+ categories?: string[];
269
+ /** Whether to include entity graph */
270
+ includeEntities?: boolean;
271
+ /** Whether to include orphaned questions */
272
+ includeQuestions?: boolean;
273
+ /** Max nodes per category (default: unlimited) */
274
+ maxPerCategory?: number;
275
+ /** Whether to watch for changes and regenerate incrementally */
276
+ watch?: boolean;
277
+ }
278
+ interface GenerateResult {
279
+ nodesGenerated: number;
280
+ nodesSkipped: number;
281
+ categories: Record<string, number>;
282
+ durationMs: number;
283
+ outputDir: string;
284
+ }
285
+ /**
286
+ * Generate a context tree from canonical memory.
287
+ *
288
+ * Reads memory `.md` files from the source directory, * and projects them into a clean, * human-readable tree structure at `outputDir`.
289
+ */
290
+ declare function generateContextTree(options: GenerateOptions): Promise<GenerateResult>;
291
+
292
+ /**
293
+ * @remnic/core — Onboarding
294
+ *
295
+ * Detects project language, shape, and documentation to produce
296
+ * an onboarding plan for memory ingestion.
297
+ */
298
+ interface OnboardOptions {
299
+ /** Directory to scan (defaults to cwd) */
300
+ directory: string;
301
+ /** Max depth to walk (default: 6) */
302
+ maxDepth?: number;
303
+ /** Directories to skip */
304
+ excludeDirs?: string[];
305
+ }
306
+ interface LanguageInfo {
307
+ /** Language name (e.g. "TypeScript", "Python") */
308
+ language: string;
309
+ /** Confidence in detection (0-1) */
310
+ confidence: number;
311
+ /** Evidence (e.g. ["package.json", "tsconfig.json", "*.ts files"]) */
312
+ evidence: string[];
313
+ }
314
+ interface DocFile {
315
+ /** Absolute path */
316
+ path: string;
317
+ /** Relative path from project root */
318
+ relativePath: string;
319
+ /** Estimated type */
320
+ kind: "readme" | "changelog" | "contributing" | "license" | "config" | "docs" | "other";
321
+ /** File size in bytes */
322
+ size: number;
323
+ }
324
+ type ProjectShape = "app" | "library" | "monorepo" | "workspace" | "script" | "unknown";
325
+ interface OnboardResult {
326
+ /** Project root */
327
+ directory: string;
328
+ /** Detected languages (sorted by confidence) */
329
+ languages: LanguageInfo[];
330
+ /** Detected project shape */
331
+ shape: ProjectShape;
332
+ /** Shape evidence */
333
+ shapeEvidence: string[];
334
+ /** Discovered documentation files */
335
+ docs: DocFile[];
336
+ /** Total files scanned */
337
+ totalFiles: number;
338
+ /** Duration in ms */
339
+ durationMs: number;
340
+ /** Suggested ingestion plan */
341
+ plan: IngestionPlan;
342
+ }
343
+ interface IngestionPlan {
344
+ /** Priority files to ingest first */
345
+ priorityFiles: DocFile[];
346
+ /** Estimated total files to ingest */
347
+ estimatedFiles: number;
348
+ /** Recommended categories */
349
+ categories: string[];
350
+ /** Suggested memory namespace */
351
+ suggestedNamespace: string;
352
+ }
353
+ declare function onboard(options: OnboardOptions): OnboardResult;
354
+
355
+ /**
356
+ * @remnic/core — Curation
357
+ *
358
+ * Deliberate ingestion of files into memory with provenance tracking.
359
+ * Supports statement-level extraction, dedup, and contradiction checks.
360
+ */
361
+ interface CurateOptions {
362
+ /** File or directory path to curate */
363
+ targetPath: string;
364
+ /** Memory root directory for writing */
365
+ memoryDir: string;
366
+ /** Source label (e.g. "manual", "docs", "onboarding") */
367
+ source?: string;
368
+ /** Category override (default: auto-detect) */
369
+ category?: string;
370
+ /** Confidence to assign (default: 0.9 for curated items) */
371
+ confidence?: number;
372
+ /** Entity reference to attach */
373
+ entityRef?: string;
374
+ /** Tags to add */
375
+ tags?: string[];
376
+ /** Whether to perform dedup check against existing memories */
377
+ checkDuplicates?: boolean;
378
+ /** Whether to detect contradictions */
379
+ checkContradictions?: boolean;
380
+ /** Whether to write files (default: true). False = dry run */
381
+ write?: boolean;
382
+ }
383
+ interface CuratedStatement {
384
+ /** Unique ID for this statement */
385
+ id: string;
386
+ /** The extracted statement text */
387
+ content: string;
388
+ /** Category */
389
+ category: string;
390
+ /** Confidence */
391
+ confidence: number;
392
+ /** Provenance info */
393
+ provenance: StatementProvenance;
394
+ /** Hash of content for dedup */
395
+ contentHash: string;
396
+ /** Tags */
397
+ tags: string[];
398
+ /** Entity reference */
399
+ entityRef?: string;
400
+ }
401
+ interface StatementProvenance {
402
+ /** Source file path */
403
+ sourcePath: string;
404
+ /** Relative path from project root */
405
+ relativePath: string;
406
+ /** Source label */
407
+ source: string;
408
+ /** Line number if extractable (0 = unknown) */
409
+ lineNumber: number;
410
+ /** Timestamp of ingestion */
411
+ ingestedAt: string;
412
+ /** Hash of the source file for diff tracking */
413
+ sourceFileHash: string;
414
+ }
415
+ interface CurateResult {
416
+ /** Statements extracted */
417
+ statements: CuratedStatement[];
418
+ /** Files processed */
419
+ filesProcessed: number;
420
+ /** Files skipped (empty, binary, etc.) */
421
+ filesSkipped: number;
422
+ /** Duplicate statements found (if checkDuplicates) */
423
+ duplicates: DuplicateResult[];
424
+ /** Contradictions found (if checkContradictions) */
425
+ contradictions: ContradictionResult$1[];
426
+ /** Memory files written */
427
+ written: string[];
428
+ /** Duration in ms */
429
+ durationMs: number;
430
+ }
431
+ interface DuplicateResult {
432
+ /** New statement */
433
+ newStatement: CuratedStatement;
434
+ /** Existing memory ID that matches */
435
+ existingId: string;
436
+ /** Similarity score (0-1) */
437
+ similarity: number;
438
+ /** Recommended action */
439
+ action: "skip" | "merge" | "keep";
440
+ }
441
+ interface ContradictionResult$1 {
442
+ /** New statement */
443
+ newStatement: CuratedStatement;
444
+ /** Conflicting memory ID */
445
+ conflictingId: string;
446
+ /** The conflicting content */
447
+ conflictingContent: string;
448
+ /** Severity */
449
+ severity: "high" | "medium" | "low";
450
+ }
451
+ declare function curate(options: CurateOptions): Promise<CurateResult>;
452
+
453
+ /**
454
+ * @remnic/core — Dedup & Contradiction Detection
455
+ *
456
+ * Statement-level deduplication and contradiction detection
457
+ * against existing memories. Can be used standalone or via curation.
458
+ */
459
+ interface MemoryEntry {
460
+ /** Memory ID */
461
+ id: string;
462
+ /** Content text */
463
+ content: string;
464
+ /** Category */
465
+ category: string;
466
+ /** File path (if known) */
467
+ filePath?: string;
468
+ }
469
+ interface DedupOptions {
470
+ /** Memory root directory */
471
+ memoryDir: string;
472
+ /** Categories to scan (default: all) */
473
+ categories?: string[];
474
+ /** Similarity threshold for fuzzy matching (0-1, default: 0.85) */
475
+ threshold?: number;
476
+ /** Max memories to load (default: 10000) */
477
+ maxLoad?: number;
478
+ }
479
+ interface DedupResult {
480
+ /** Total memories scanned */
481
+ scanned: number;
482
+ /** Duplicate pairs found */
483
+ duplicates: DuplicatePair[];
484
+ /** Duration in ms */
485
+ durationMs: number;
486
+ }
487
+ interface DuplicatePair {
488
+ /** First memory */
489
+ left: MemoryEntry;
490
+ /** Second memory */
491
+ right: MemoryEntry;
492
+ /** Similarity score */
493
+ similarity: number;
494
+ /** Recommended action */
495
+ action: "merge" | "keep_left" | "keep_right";
496
+ }
497
+ interface ContradictionOptions {
498
+ /** Memory root directory */
499
+ memoryDir: string;
500
+ /** Categories to scan (default: all) */
501
+ categories?: string[];
502
+ /** Max memories to load (default: 10000) */
503
+ maxLoad?: number;
504
+ }
505
+ interface ContradictionResult {
506
+ /** Total memories scanned */
507
+ scanned: number;
508
+ /** Contradictions found */
509
+ contradictions: ContradictionPair[];
510
+ /** Duration in ms */
511
+ durationMs: number;
512
+ }
513
+ interface ContradictionPair {
514
+ /** First statement */
515
+ left: MemoryEntry;
516
+ /** Contradicting statement */
517
+ right: MemoryEntry;
518
+ /** Severity */
519
+ severity: "high" | "medium" | "low";
520
+ /** Reason */
521
+ reason: string;
522
+ }
523
+ declare function findDuplicates(options: DedupOptions): DedupResult;
524
+ declare function findContradictions(options: ContradictionOptions): ContradictionResult;
525
+
526
+ /**
527
+ * @remnic/core — Review Inbox
528
+ *
529
+ * Manages low-confidence memories and suggestions pending review.
530
+ * Integrates with the existing review-queue system.
531
+ */
532
+ interface ReviewItem {
533
+ /** Memory ID */
534
+ id: string;
535
+ /** Content text */
536
+ content: string;
537
+ /** Category */
538
+ category: string;
539
+ /** Confidence score (0-1) */
540
+ confidence: number;
541
+ /** Confidence tier */
542
+ confidenceTier: string;
543
+ /** Source */
544
+ source: string;
545
+ /** File path if available */
546
+ filePath?: string;
547
+ /** Created date */
548
+ created: string;
549
+ /** Reason it's in review */
550
+ reviewReason: "low_confidence" | "suggestion" | "contradiction" | "duplicate";
551
+ /** Additional context */
552
+ context?: string;
553
+ }
554
+ type ReviewAction = "approve" | "dismiss" | "flag";
555
+ interface ReviewResult {
556
+ /** Item acted upon */
557
+ itemId: string;
558
+ /** Action taken */
559
+ action: ReviewAction;
560
+ /** Updated file path (if modified) */
561
+ updatedPath?: string;
562
+ /** Status message */
563
+ message: string;
564
+ }
565
+ interface ReviewListResult {
566
+ /** Items pending review */
567
+ items: ReviewItem[];
568
+ /** Total count */
569
+ total: number;
570
+ /** Duration in ms */
571
+ durationMs: number;
572
+ }
573
+ interface ReviewOptions {
574
+ /** Memory root directory */
575
+ memoryDir: string;
576
+ /** Filter by reason */
577
+ reason?: ReviewItem["reviewReason"];
578
+ /** Max items to return (default: 50) */
579
+ limit?: number;
580
+ /** Include items with confidence below this threshold (default: 0.7) */
581
+ confidenceThreshold?: number;
582
+ }
583
+ /**
584
+ * List items pending review.
585
+ */
586
+ declare function listReviewItems(options: ReviewOptions): ReviewListResult;
587
+ /**
588
+ * Perform a review action on an item.
589
+ */
590
+ declare function performReview(memoryDir: string, itemId: string, action: ReviewAction): ReviewResult;
591
+
592
+ /**
593
+ * @remnic/core — Diff-Aware Sync
594
+ *
595
+ * Watches source files for changes and triggers re-ingestion
596
+ * only for changed content. Uses file hashing to detect changes.
597
+ */
598
+ interface SyncOptions {
599
+ /** Source directory to watch */
600
+ sourceDir: string;
601
+ /** Memory root directory */
602
+ memoryDir: string;
603
+ /** State file path (stores hashes). Default: memoryDir/.sync-state.json */
604
+ stateFile?: string;
605
+ /** File extensions to watch (default: .md, .txt, .mdx) */
606
+ extensions?: string[];
607
+ /** Directories to exclude */
608
+ excludeDirs?: string[];
609
+ /** Whether to actually write changes (default: true) */
610
+ dryRun?: boolean;
611
+ }
612
+ interface SyncResult {
613
+ /** Files scanned */
614
+ scanned: number;
615
+ /** Files changed since last sync */
616
+ changed: FileChange[];
617
+ /** Files unchanged */
618
+ unchanged: number;
619
+ /** Files deleted since last sync */
620
+ deleted: string[];
621
+ /** Files newly added */
622
+ added: string[];
623
+ /** Duration in ms */
624
+ durationMs: number;
625
+ /** State file path */
626
+ stateFile: string;
627
+ }
628
+ interface FileChange {
629
+ /** Absolute file path */
630
+ filePath: string;
631
+ /** Relative path from source root */
632
+ relativePath: string;
633
+ /** Change type */
634
+ type: "added" | "modified" | "deleted";
635
+ /** Current content hash */
636
+ currentHash: string;
637
+ /** Previous content hash (if modified) */
638
+ previousHash?: string;
639
+ /** File size in bytes */
640
+ size: number;
641
+ }
642
+ interface SyncState {
643
+ /** Map of relative path → content hash */
644
+ fileHashes: Record<string, string>;
645
+ /** Last sync timestamp */
646
+ lastSyncAt: string;
647
+ /** Version of state format */
648
+ version: number;
649
+ }
650
+ declare function syncChanges(options: SyncOptions): SyncResult;
651
+ /**
652
+ * Watch for changes and call callback on file changes.
653
+ * Returns a stop function.
654
+ */
655
+ declare function watchForChanges(options: SyncOptions, onChange: (changes: FileChange[]) => void): {
656
+ stop: () => void;
657
+ };
658
+
659
+ /**
660
+ * @remnic/core — Connector Manager
661
+ *
662
+ * Metadata-driven registry for host adapters (Codex CLI, Claude Code, Cursor, etc.).
663
+ * Manages connector lifecycle: install, remove, configure, health.
664
+ */
665
+ interface ConnectorManifest {
666
+ /** Unique connector ID (e.g. "claude-code", "codex-cli") */
667
+ id: string;
668
+ /** Human-readable name */
669
+ name: string;
670
+ /** Version */
671
+ version: string;
672
+ /** Description */
673
+ description: string;
674
+ /** Capabilities */
675
+ capabilities: ConnectorCapability;
676
+ /** Required config fields */
677
+ configSchema?: Record<string, string>;
678
+ /** Whether currently installed */
679
+ installed?: boolean;
680
+ /** Homepage URL */
681
+ homepage?: string;
682
+ /** Author */
683
+ author?: string;
684
+ /** Repository URL */
685
+ repository?: string;
686
+ /** Tags */
687
+ tags?: string[];
688
+ }
689
+ interface ConnectorCapability {
690
+ /** Can observe conversations */
691
+ observe: boolean;
692
+ /** Can recall/query memories */
693
+ recall: boolean;
694
+ /** Can store memories */
695
+ store: boolean;
696
+ /** Can search */
697
+ search: boolean;
698
+ /** Can manage entities */
699
+ entities: boolean;
700
+ /** Supports real-time sync */
701
+ realtimeSync: boolean;
702
+ /** Supports batch operations */
703
+ batch: boolean;
704
+ /** Max memory budget in chars */
705
+ maxBudgetChars?: number;
706
+ /** Connection type */
707
+ connectionType: "mcp" | "http" | "cli" | "sdk" | "embedded";
708
+ }
709
+ interface ConnectorInstance {
710
+ /** Connector ID */
711
+ connectorId: string;
712
+ /** Resolved config */
713
+ config: Record<string, unknown>;
714
+ /** Status */
715
+ status: "installed" | "running" | "error" | "disabled";
716
+ /** Installed at timestamp */
717
+ installedAt?: string;
718
+ /** Error message if erro */
719
+ error?: string;
720
+ }
721
+ interface ConnectorRegistry {
722
+ /** Known connectors */
723
+ connectors: ConnectorManifest[];
724
+ /** Registry file path */
725
+ registryPath: string;
726
+ }
727
+ interface InstallOptions {
728
+ /** Connector ID to install */
729
+ connectorId: string;
730
+ /** Config values */
731
+ config?: Record<string, unknown>;
732
+ /** Memory directory */
733
+ memoryDir?: string;
734
+ /** Whether to force reinstall */
735
+ force?: boolean;
736
+ }
737
+ interface InstallResult {
738
+ /** Connector ID */
739
+ connectorId: string;
740
+ /** Status */
741
+ status: "installed" | "already_installed" | "config_required" | "error";
742
+ /** Config path */
743
+ configPath?: string;
744
+ /** Message */
745
+ message: string;
746
+ }
747
+ interface RemoveResult {
748
+ /** Connector ID */
749
+ connectorId: string;
750
+ /** Removed config path */
751
+ configPath: string;
752
+ /** Message */
753
+ message: string;
754
+ }
755
+ interface DoctorResult {
756
+ /** Connector ID */
757
+ connectorId: string;
758
+ /** Checks */
759
+ checks: DoctorCheck[];
760
+ /** All healthy */
761
+ healthy: boolean;
762
+ }
763
+ interface DoctorCheck {
764
+ /** Check name */
765
+ name: string;
766
+ /** Passed */
767
+ ok: boolean;
768
+ /** Detail */
769
+ detail: string;
770
+ }
771
+ declare function loadRegistry(): ConnectorRegistry;
772
+ declare function saveRegistry(registry: ConnectorRegistry): void;
773
+ declare function listConnectors(): {
774
+ installed: ConnectorInstance[];
775
+ available: ConnectorManifest[];
776
+ };
777
+ declare function installConnector(options: InstallOptions): InstallResult;
778
+ declare function removeConnector(connectorId: string): RemoveResult;
779
+ declare function doctorConnector(connectorId: string): Promise<DoctorResult>;
780
+
781
+ /**
782
+ * @remnic/core — Spaces + Collaboration
783
+ *
784
+ * First-class memory spaces (personal, project, team) with merge/conflict
785
+ * flows, promotion workflow, and audit trail.
786
+ *
787
+ * Each space is an isolated memory directory. Spaces can share memories
788
+ * through push/pull and promotion workflows.
789
+ */
790
+ type SpaceKind = "personal" | "project" | "team";
791
+ interface Space {
792
+ /** Unique space ID */
793
+ id: string;
794
+ /** Human-readable name */
795
+ name: string;
796
+ /** Space type */
797
+ kind: SpaceKind;
798
+ /** Description */
799
+ description?: string;
800
+ /** Memory directory path (absolute) */
801
+ memoryDir: string;
802
+ /** Created at */
803
+ createdAt: string;
804
+ /** Updated at */
805
+ updatedAt: string;
806
+ /** Owner */
807
+ owner?: string;
808
+ /** Members (for team spaces) */
809
+ members?: string[];
810
+ /** Parent space (for promotion) */
811
+ parentSpaceId?: string;
812
+ }
813
+ interface SpaceManifest {
814
+ /** Current active space ID */
815
+ activeSpaceId: string;
816
+ /** All spaces */
817
+ spaces: Space[];
818
+ /** Manifest version */
819
+ version: number;
820
+ /** Last updated */
821
+ updatedAt?: string;
822
+ }
823
+ interface SpaceSwitchResult {
824
+ previousSpaceId: string;
825
+ currentSpaceId: string;
826
+ message: string;
827
+ }
828
+ interface SpacePushResult {
829
+ sourceSpaceId: string;
830
+ targetSpaceId: string;
831
+ memoriesPushed: number;
832
+ conflicts: ConflictEntry[];
833
+ durationMs: number;
834
+ }
835
+ interface SpacePullResult {
836
+ sourceSpaceId: string;
837
+ targetSpaceId: string;
838
+ memoriesPulled: number;
839
+ conflicts: ConflictEntry[];
840
+ durationMs: number;
841
+ }
842
+ interface SpaceShareResult {
843
+ spaceId: string;
844
+ sharedWith: string[];
845
+ message: string;
846
+ }
847
+ interface SpacePromoteResult {
848
+ sourceSpaceId: string;
849
+ targetSpaceId: string;
850
+ memoriesPromoted: number;
851
+ conflicts: ConflictEntry[];
852
+ durationMs: number;
853
+ }
854
+ interface ConflictEntry {
855
+ /** Memory ID */
856
+ memoryId: string;
857
+ /** Source file path */
858
+ sourcePath: string;
859
+ /** Target file path */
860
+ targetPath: string;
861
+ /** Conflict type */
862
+ conflictType: "content_mismatch" | "metadata_mismatch" | "both";
863
+ /** Source content hash */
864
+ sourceHash: string;
865
+ /** Target content hash */
866
+ targetHash: string;
867
+ }
868
+ interface MergeResult {
869
+ merged: number;
870
+ conflicts: ConflictEntry[];
871
+ skipped: number;
872
+ durationMs: number;
873
+ }
874
+ interface AuditEntry {
875
+ id: string;
876
+ timestamp: string;
877
+ action: string;
878
+ sourceSpaceId: string;
879
+ targetSpaceId?: string;
880
+ actor?: string;
881
+ details: string;
882
+ memoryIds?: string[];
883
+ }
884
+ declare function getSpacesDir(baseDir?: string): string;
885
+ declare function getManifestPath(baseDir?: string): string;
886
+ declare function loadManifest(baseDir?: string, memoryDirOverride?: string): SpaceManifest;
887
+ declare function saveManifest(manifest: SpaceManifest, baseDir?: string): void;
888
+ declare function listSpaces(baseDir?: string): Space[];
889
+ declare function getActiveSpace(baseDir?: string): Space;
890
+ declare function createSpace(options: {
891
+ name: string;
892
+ kind: SpaceKind;
893
+ description?: string;
894
+ memoryDir?: string;
895
+ parentSpaceId?: string;
896
+ baseDir?: string;
897
+ }): Space;
898
+ declare function deleteSpace(spaceId: string, baseDir?: string): void;
899
+ declare function switchSpace(spaceId: string, baseDir?: string): SpaceSwitchResult;
900
+ declare function pushToSpace(sourceSpaceId: string, targetSpaceId: string, options?: {
901
+ memoryIds?: string[];
902
+ force?: boolean;
903
+ baseDir?: string;
904
+ }): SpacePushResult;
905
+ declare function pullFromSpace(sourceSpaceId: string, targetSpaceId: string, options?: {
906
+ memoryIds?: string[];
907
+ force?: boolean;
908
+ baseDir?: string;
909
+ }): SpacePullResult;
910
+ declare function shareSpace(spaceId: string, members: string[], baseDir?: string): SpaceShareResult;
911
+ declare function promoteSpace(sourceSpaceId: string, targetSpaceId: string, options?: {
912
+ memoryIds?: string[];
913
+ force?: boolean;
914
+ forceOverwrite?: boolean;
915
+ baseDir?: string;
916
+ }): SpacePromoteResult;
917
+ declare function mergeSpaces(sourceSpaceId: string, targetSpaceId: string, options?: {
918
+ force?: boolean;
919
+ baseDir?: string;
920
+ }): MergeResult;
921
+ declare function getAuditLog(baseDir?: string): AuditEntry[];
922
+
923
+ export { type AuditEntry, type ConflictEntry, type ConnectorCapability, type ConnectorInstance, type ConnectorManifest, type ConnectorRegistry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, type DedupOptions, type DedupResult, type DocFile, type DoctorCheck, type DoctorResult, type DuplicatePair, type FileChange, type GenerateOptions, type GenerateResult, type IngestionPlan, type InstallOptions, type InstallResult, LanceDbBackend, type LanguageInfo, MeilisearchBackend, type MemoryEntry, type MergeResult, type MigrationOptions, type MigrationResult, type OnboardOptions, type OnboardResult, OramaBackend, PluginConfig, type ProjectShape, type ProvenanceEntry, type RemoveResult, type ReviewAction, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type RollbackResult, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, type StatementProvenance, type SyncOptions, type SyncResult, type SyncState, type TreeNode, createSpace, curate, deleteSpace, doctorConnector, findContradictions, findDuplicates, generateContextTree, getActiveSpace, getAuditLog, getManifestPath, getSpacesDir, installConnector, listConnectors, listReviewItems, listSpaces, loadManifest, loadRegistry, mergeSpaces, migrateFromEngram, onboard, performReview, promoteSpace, pullFromSpace, pushToSpace, removeConnector, rollbackFromEngramMigration, saveManifest, saveRegistry, shareSpace, switchSpace, syncChanges, watchForChanges };