@remnic/core 1.0.2 → 1.1.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 (385) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/abort-error.d.ts +32 -0
  4. package/dist/abort-error.js +11 -0
  5. package/dist/access-cli.d.ts +13 -3
  6. package/dist/access-cli.js +96 -80
  7. package/dist/access-cli.js.map +1 -1
  8. package/dist/access-http.d.ts +12 -4
  9. package/dist/access-http.js +25 -18
  10. package/dist/access-mcp.d.ts +32 -4
  11. package/dist/access-mcp.js +16 -1
  12. package/dist/access-schema.d.ts +28 -28
  13. package/dist/access-schema.js +1 -1
  14. package/dist/access-service-HmO1Trrx.d.ts +732 -0
  15. package/dist/access-service.d.ts +15 -601
  16. package/dist/access-service.js +21 -15
  17. package/dist/active-memory-bridge.d.ts +66 -0
  18. package/dist/active-memory-bridge.js +11 -0
  19. package/dist/active-memory-bridge.js.map +1 -0
  20. package/dist/active-recall.d.ts +96 -0
  21. package/dist/active-recall.js +308 -0
  22. package/dist/active-recall.js.map +1 -0
  23. package/dist/behavior-learner.js +1 -1
  24. package/dist/bootstrap.d.ts +6 -3
  25. package/dist/bootstrap.js +2 -2
  26. package/dist/boxes.js +2 -2
  27. package/dist/briefing.d.ts +169 -0
  28. package/dist/briefing.js +52 -0
  29. package/dist/briefing.js.map +1 -0
  30. package/dist/buffer.d.ts +19 -5
  31. package/dist/buffer.js +2 -2
  32. package/dist/calibration.js +6 -6
  33. package/dist/causal-behavior.js +5 -5
  34. package/dist/causal-chain.js +3 -3
  35. package/dist/causal-consolidation.d.ts +22 -2
  36. package/dist/causal-consolidation.js +36 -9
  37. package/dist/causal-consolidation.js.map +1 -1
  38. package/dist/causal-retrieval.js +6 -6
  39. package/dist/causal-trajectory-graph.js +1 -1
  40. package/dist/causal-trajectory.d.ts +14 -1
  41. package/dist/causal-trajectory.js +5 -1
  42. package/dist/{chunk-KWBU5S5U.js → chunk-2ODBA7MQ.js} +9 -3
  43. package/dist/chunk-2ODBA7MQ.js.map +1 -0
  44. package/dist/{chunk-ZJLY4QSU.js → chunk-37UIFYWO.js} +130 -6
  45. package/dist/chunk-37UIFYWO.js.map +1 -0
  46. package/dist/chunk-3PG3H5TD.js +7 -0
  47. package/dist/chunk-3PG3H5TD.js.map +1 -0
  48. package/dist/{chunk-NTTLPF7F.js → chunk-3QFQGRHO.js} +5 -5
  49. package/dist/{chunk-QDOSNLB4.js → chunk-3QHL5ABG.js} +17 -15
  50. package/dist/chunk-3QHL5ABG.js.map +1 -0
  51. package/dist/{chunk-6UJQNRIO.js → chunk-3SV6CQHO.js} +92 -33
  52. package/dist/chunk-3SV6CQHO.js.map +1 -0
  53. package/dist/{chunk-U4PV25RD.js → chunk-3WHVNEN7.js} +1 -1
  54. package/dist/chunk-3WHVNEN7.js.map +1 -0
  55. package/dist/{chunk-XUHI52HK.js → chunk-44ICJRF3.js} +98 -10
  56. package/dist/chunk-44ICJRF3.js.map +1 -0
  57. package/dist/{chunk-HG2NKWR2.js → chunk-47UU5PU2.js} +49 -10
  58. package/dist/chunk-47UU5PU2.js.map +1 -0
  59. package/dist/chunk-4DJQYKMN.js +187 -0
  60. package/dist/chunk-4DJQYKMN.js.map +1 -0
  61. package/dist/chunk-4KAN3GZ3.js +225 -0
  62. package/dist/chunk-4KAN3GZ3.js.map +1 -0
  63. package/dist/chunk-4LACOVZX.js +813 -0
  64. package/dist/chunk-4LACOVZX.js.map +1 -0
  65. package/dist/{chunk-ORZMT74A.js → chunk-4NRAJUDS.js} +11 -1
  66. package/dist/chunk-4NRAJUDS.js.map +1 -0
  67. package/dist/{chunk-B7LOFDVE.js → chunk-4WMCPJWX.js} +8 -3
  68. package/dist/chunk-4WMCPJWX.js.map +1 -0
  69. package/dist/{chunk-G3AG3KZN.js → chunk-5IZL4DCV.js} +2 -2
  70. package/dist/{chunk-BRK4ODMI.js → chunk-5NPGSAVB.js} +2 -2
  71. package/dist/{chunk-QANCTXQF.js → chunk-6LX5ORAS.js} +3 -3
  72. package/dist/chunk-6MKAMLQL.js +16 -0
  73. package/dist/chunk-6MKAMLQL.js.map +1 -0
  74. package/dist/{chunk-ESSMF2FR.js → chunk-6PFRXT4K.js} +15 -6
  75. package/dist/chunk-6PFRXT4K.js.map +1 -0
  76. package/dist/{chunk-UIYZ5T3I.js → chunk-6UJ47TVX.js} +8 -8
  77. package/dist/chunk-6ZH4TU6I.js +245 -0
  78. package/dist/chunk-6ZH4TU6I.js.map +1 -0
  79. package/dist/{chunk-L5RPWGFK.js → chunk-7DHTMOND.js} +2 -2
  80. package/dist/{chunk-L7WO3MZ4.js → chunk-7ECD5ATE.js} +2 -2
  81. package/dist/{chunk-Q6FETXJA.js → chunk-7SEAZFFB.js} +2 -2
  82. package/dist/{chunk-V4YC4LUK.js → chunk-7WQ6SLIE.js} +175 -63
  83. package/dist/chunk-7WQ6SLIE.js.map +1 -0
  84. package/dist/chunk-ALXMCZEU.js +332 -0
  85. package/dist/chunk-ALXMCZEU.js.map +1 -0
  86. package/dist/{chunk-TVVVQQAK.js → chunk-BLKTA7MM.js} +58 -24
  87. package/dist/chunk-BLKTA7MM.js.map +1 -0
  88. package/dist/{chunk-SCHEKPYH.js → chunk-C2EFFULQ.js} +1 -1
  89. package/dist/{chunk-GJR6D6KC.js → chunk-D654IBA6.js} +2 -2
  90. package/dist/{chunk-OTFNI3OO.js → chunk-DEPL3635.js} +1828 -401
  91. package/dist/chunk-DEPL3635.js.map +1 -0
  92. package/dist/{chunk-UYSKNO6E.js → chunk-DHHP2Z4X.js} +15 -4
  93. package/dist/chunk-DHHP2Z4X.js.map +1 -0
  94. package/dist/{chunk-UV2FO7J4.js → chunk-E6K4NIEU.js} +2 -2
  95. package/dist/{chunk-T4WRIV2C.js → chunk-EABGC2TL.js} +2 -2
  96. package/dist/chunk-EJI5XIBB.js +232 -0
  97. package/dist/chunk-EJI5XIBB.js.map +1 -0
  98. package/dist/{chunk-ONRU4L2N.js → chunk-FEMOX5AD.js} +2 -2
  99. package/dist/{chunk-IFFFR3MR.js → chunk-FSFEQI74.js} +3 -3
  100. package/dist/chunk-G4SK7DSQ.js +121 -0
  101. package/dist/chunk-G4SK7DSQ.js.map +1 -0
  102. package/dist/{chunk-WWIQTB2Y.js → chunk-GGD5W7TB.js} +9 -2
  103. package/dist/chunk-GGD5W7TB.js.map +1 -0
  104. package/dist/{chunk-QWUUMMIK.js → chunk-GV6NLQ4X.js} +1355 -80
  105. package/dist/chunk-GV6NLQ4X.js.map +1 -0
  106. package/dist/{chunk-2PO5ZRKV.js → chunk-GZCUW5IC.js} +16 -3
  107. package/dist/chunk-GZCUW5IC.js.map +1 -0
  108. package/dist/{chunk-AAI7JARD.js → chunk-HMDCOMYU.js} +8 -11
  109. package/dist/chunk-HMDCOMYU.js.map +1 -0
  110. package/dist/chunk-IQT3XTKW.js +121 -0
  111. package/dist/chunk-IQT3XTKW.js.map +1 -0
  112. package/dist/{chunk-J3BT33K7.js → chunk-ITRLGI2T.js} +5 -5
  113. package/dist/{chunk-BDFZXRSO.js → chunk-J4IYOZZ5.js} +15 -2
  114. package/dist/chunk-J4IYOZZ5.js.map +1 -0
  115. package/dist/{chunk-J47FNDR7.js → chunk-JIU55F3X.js} +7 -7
  116. package/dist/{chunk-MDDAA2AO.js → chunk-JL2PU6AI.js} +17 -6
  117. package/dist/chunk-JL2PU6AI.js.map +1 -0
  118. package/dist/{chunk-ZKYI7UVO.js → chunk-JR4ZC3G4.js} +2 -2
  119. package/dist/{chunk-UCYSTFZR.js → chunk-JRNQ3RNA.js} +2 -2
  120. package/dist/{chunk-GPGBSNKM.js → chunk-K4FLSOR5.js} +2 -2
  121. package/dist/chunk-KVE7R4CG.js +320 -0
  122. package/dist/chunk-KVE7R4CG.js.map +1 -0
  123. package/dist/chunk-LAYN4LDC.js +267 -0
  124. package/dist/chunk-LAYN4LDC.js.map +1 -0
  125. package/dist/{chunk-ISY75RLM.js → chunk-MBJHSA7F.js} +344 -7
  126. package/dist/chunk-MBJHSA7F.js.map +1 -0
  127. package/dist/{chunk-PGK3VUHN.js → chunk-MTLYEMJB.js} +3 -2
  128. package/dist/chunk-MTLYEMJB.js.map +1 -0
  129. package/dist/{chunk-QY2BHY5O.js → chunk-MVTHXUBX.js} +297 -34
  130. package/dist/chunk-MVTHXUBX.js.map +1 -0
  131. package/dist/{chunk-LP47L3ZX.js → chunk-N42IWANG.js} +5 -5
  132. package/dist/{chunk-YNI4S5WT.js → chunk-N53K2EXC.js} +2 -2
  133. package/dist/{chunk-763GUIOU.js → chunk-NBNN5GOB.js} +2 -2
  134. package/dist/{chunk-CXWFUJR2.js → chunk-NQEVYWX6.js} +195 -5
  135. package/dist/chunk-NQEVYWX6.js.map +1 -0
  136. package/dist/{chunk-KL4CP4SB.js → chunk-O5ETUNBT.js} +17 -5
  137. package/dist/chunk-O5ETUNBT.js.map +1 -0
  138. package/dist/{chunk-OOSWAUYB.js → chunk-ODWDQNRE.js} +2 -2
  139. package/dist/chunk-OIT5QGG4.js +80 -0
  140. package/dist/chunk-OIT5QGG4.js.map +1 -0
  141. package/dist/{chunk-HLBYLYRD.js → chunk-PAORGQRI.js} +70 -13
  142. package/dist/chunk-PAORGQRI.js.map +1 -0
  143. package/dist/chunk-PVGDJXVK.js +21 -0
  144. package/dist/chunk-PVGDJXVK.js.map +1 -0
  145. package/dist/{chunk-OTAVQCSF.js → chunk-PYXS46O7.js} +2 -2
  146. package/dist/chunk-QDW3E4RD.js +108 -0
  147. package/dist/chunk-QDW3E4RD.js.map +1 -0
  148. package/dist/{chunk-YNCQ7E4M.js → chunk-QDYXG4CS.js} +4 -3
  149. package/dist/chunk-QDYXG4CS.js.map +1 -0
  150. package/dist/{chunk-HLXVTBF3.js → chunk-QNJMBKFK.js} +3 -2
  151. package/dist/chunk-QNJMBKFK.js.map +1 -0
  152. package/dist/{chunk-4A24LIM2.js → chunk-S75M5ZRK.js} +2 -2
  153. package/dist/chunk-SYUK3VLY.js +789 -0
  154. package/dist/chunk-SYUK3VLY.js.map +1 -0
  155. package/dist/{chunk-QCCCQT3O.js → chunk-TBBDFYXW.js} +2 -2
  156. package/dist/chunk-TBBDFYXW.js.map +1 -0
  157. package/dist/chunk-U66YHYC7.js +31 -0
  158. package/dist/chunk-U66YHYC7.js.map +1 -0
  159. package/dist/{chunk-MWGVGUIS.js → chunk-UEYA6UC7.js} +36 -4
  160. package/dist/chunk-UEYA6UC7.js.map +1 -0
  161. package/dist/{chunk-M5KEYE5E.js → chunk-URB2WSKZ.js} +2 -2
  162. package/dist/chunk-UVJFDP7P.js +202 -0
  163. package/dist/chunk-UVJFDP7P.js.map +1 -0
  164. package/dist/chunk-W6SL7OFG.js +180 -0
  165. package/dist/chunk-W6SL7OFG.js.map +1 -0
  166. package/dist/chunk-WBSAYXVI.js +7945 -0
  167. package/dist/chunk-WBSAYXVI.js.map +1 -0
  168. package/dist/{chunk-M5ZBBBJI.js → chunk-XZ2TIKGC.js} +39 -9
  169. package/dist/chunk-XZ2TIKGC.js.map +1 -0
  170. package/dist/chunk-Y4FHOFJ2.js +140 -0
  171. package/dist/chunk-Y4FHOFJ2.js.map +1 -0
  172. package/dist/chunk-YDBIWGNI.js +298 -0
  173. package/dist/chunk-YDBIWGNI.js.map +1 -0
  174. package/dist/chunk-YNB73F22.js +137 -0
  175. package/dist/chunk-YNB73F22.js.map +1 -0
  176. package/dist/{chunk-IZME7KW2.js → chunk-ZVBB3T7V.js} +31 -12
  177. package/dist/chunk-ZVBB3T7V.js.map +1 -0
  178. package/dist/chunking.js +1 -1
  179. package/dist/citations.d.ts +67 -0
  180. package/dist/citations.js +13 -0
  181. package/dist/citations.js.map +1 -0
  182. package/dist/cli-BneVIEvh.d.ts +1240 -0
  183. package/dist/cli.d.ts +32 -1147
  184. package/dist/cli.js +150 -7092
  185. package/dist/cli.js.map +1 -1
  186. package/dist/codex-materialize-CQlLTzke.d.ts +139 -0
  187. package/dist/codex-thread-key.d.ts +3 -0
  188. package/dist/codex-thread-key.js +7 -0
  189. package/dist/codex-thread-key.js.map +1 -0
  190. package/dist/config.js +3 -2
  191. package/dist/connectors/codex/instructions.md +160 -0
  192. package/dist/connectors/codex/resources/namespace-cheatsheet.md +48 -0
  193. package/dist/contradiction-review-WIUBAR52.js +21 -0
  194. package/dist/contradiction-review-WIUBAR52.js.map +1 -0
  195. package/dist/contradiction-scan-GR33PONM.js +376 -0
  196. package/dist/contradiction-scan-GR33PONM.js.map +1 -0
  197. package/dist/day-summary.d.ts +7 -2
  198. package/dist/day-summary.js +5 -2
  199. package/dist/direct-answer-wiring.d.ts +77 -0
  200. package/dist/direct-answer-wiring.js +75 -0
  201. package/dist/direct-answer-wiring.js.map +1 -0
  202. package/dist/direct-answer.d.ts +106 -0
  203. package/dist/direct-answer.js +10 -0
  204. package/dist/direct-answer.js.map +1 -0
  205. package/dist/embedding-fallback.d.ts +96 -2
  206. package/dist/embedding-fallback.js +6 -4
  207. package/dist/{engine-2A6J4XEX.js → engine-5TIQBYZR.js} +10 -7
  208. package/dist/engine-5TIQBYZR.js.map +1 -0
  209. package/dist/entity-retrieval.d.ts +3 -2
  210. package/dist/entity-retrieval.js +10 -7
  211. package/dist/entity-schema.d.ts +11 -0
  212. package/dist/entity-schema.js +19 -0
  213. package/dist/entity-schema.js.map +1 -0
  214. package/dist/explicit-capture.d.ts +6 -3
  215. package/dist/explicit-capture.js +2 -2
  216. package/dist/extraction-judge.d.ts +66 -0
  217. package/dist/extraction-judge.js +18 -0
  218. package/dist/extraction-judge.js.map +1 -0
  219. package/dist/extraction.d.ts +1 -0
  220. package/dist/extraction.js +12 -10
  221. package/dist/fallback-llm.d.ts +11 -2
  222. package/dist/fallback-llm.js +4 -4
  223. package/dist/graph.js +1 -1
  224. package/dist/harmonic-retrieval.js +2 -1
  225. package/dist/importance.d.ts +11 -1
  226. package/dist/importance.js +3 -1
  227. package/dist/index.d.ts +1027 -9
  228. package/dist/index.js +3303 -349
  229. package/dist/index.js.map +1 -1
  230. package/dist/intent.d.ts +2 -1
  231. package/dist/intent.js +3 -1
  232. package/dist/lifecycle.js +1 -1
  233. package/dist/local-llm.d.ts +10 -3
  234. package/dist/local-llm.js +2 -2
  235. package/dist/logger.d.ts +1 -1
  236. package/dist/logger.js +1 -1
  237. package/dist/memory-cache.d.ts +2 -2
  238. package/dist/memory-cache.js +1 -1
  239. package/dist/{memory-projection-store-NxMkbocT.d.ts → memory-projection-store-DeSXPh1j.d.ts} +1 -1
  240. package/dist/memory-projection-store.d.ts +1 -1
  241. package/dist/model-registry.js +2 -2
  242. package/dist/models-json.js +2 -2
  243. package/dist/native-knowledge.js +2 -2
  244. package/dist/negative.js +2 -2
  245. package/dist/operator-toolkit.js +20 -15
  246. package/dist/{orchestrator-zTa-Qo-1.d.ts → orchestrator-DRYA6_lW.d.ts} +273 -9
  247. package/dist/orchestrator.d.ts +6 -3
  248. package/dist/orchestrator.js +76 -63
  249. package/dist/page-versioning.d.ts +77 -0
  250. package/dist/page-versioning.js +15 -0
  251. package/dist/page-versioning.js.map +1 -0
  252. package/dist/plugin-id.d.ts +37 -0
  253. package/dist/plugin-id.js +11 -0
  254. package/dist/plugin-id.js.map +1 -0
  255. package/dist/policy-runtime.js +2 -2
  256. package/dist/profiling.js +2 -2
  257. package/dist/qmd.d.ts +5 -2
  258. package/dist/qmd.js +4 -3
  259. package/dist/recall-audit.d.ts +20 -0
  260. package/dist/recall-audit.js +50 -0
  261. package/dist/recall-audit.js.map +1 -0
  262. package/dist/recall-mmr.d.ts +152 -0
  263. package/dist/recall-mmr.js +17 -0
  264. package/dist/recall-mmr.js.map +1 -0
  265. package/dist/recall-qos.js +2 -2
  266. package/dist/recall-state.d.ts +28 -1
  267. package/dist/recall-state.js +2 -2
  268. package/dist/relevance.js +2 -2
  269. package/dist/resolution-QBTDHTG7.js +100 -0
  270. package/dist/resolution-QBTDHTG7.js.map +1 -0
  271. package/dist/resolve-provider-secret.d.ts +24 -1
  272. package/dist/resolve-provider-secret.js +4 -2
  273. package/dist/resume-bundles.js +6 -5
  274. package/dist/retrieval-agents.js +2 -2
  275. package/dist/retrieval.js +2 -2
  276. package/dist/schemas.d.ts +412 -54
  277. package/dist/schemas.js +3 -1
  278. package/dist/sdk-compat.d.ts +2 -0
  279. package/dist/sdk-compat.js +6 -3
  280. package/dist/sdk-compat.js.map +1 -1
  281. package/dist/semantic-chunking.d.ts +87 -0
  282. package/dist/semantic-chunking.js +20 -0
  283. package/dist/semantic-chunking.js.map +1 -0
  284. package/dist/semantic-consolidation-DrvSYRdB.d.ts +119 -0
  285. package/dist/semantic-consolidation.d.ts +4 -42
  286. package/dist/semantic-consolidation.js +23 -2
  287. package/dist/semantic-rule-promotion.js +9 -6
  288. package/dist/semantic-rule-verifier.js +10 -7
  289. package/dist/session-observer-state.js +2 -2
  290. package/dist/session-toggles.d.ts +22 -0
  291. package/dist/session-toggles.js +116 -0
  292. package/dist/session-toggles.js.map +1 -0
  293. package/dist/skills-registry.d.ts +47 -0
  294. package/dist/skills-registry.js +48 -0
  295. package/dist/skills-registry.js.map +1 -0
  296. package/dist/source-attribution.d.ts +169 -0
  297. package/dist/source-attribution.js +27 -0
  298. package/dist/source-attribution.js.map +1 -0
  299. package/dist/storage.d.ts +171 -10
  300. package/dist/storage.js +16 -5
  301. package/dist/summarizer.js +7 -7
  302. package/dist/temporal-supersession.d.ts +127 -0
  303. package/dist/temporal-supersession.js +20 -0
  304. package/dist/temporal-supersession.js.map +1 -0
  305. package/dist/threading.js +2 -2
  306. package/dist/tier-migration.d.ts +2 -1
  307. package/dist/tier-routing.js +2 -2
  308. package/dist/tokens.d.ts +21 -1
  309. package/dist/tokens.js +5 -1
  310. package/dist/transcript.js +2 -2
  311. package/dist/types-DJhqDJUV.d.ts +50 -0
  312. package/dist/types.d.ts +529 -3
  313. package/dist/types.js +1 -1
  314. package/dist/utility-learner.js +2 -2
  315. package/dist/utility-runtime.js +3 -3
  316. package/dist/verified-recall.js +11 -8
  317. package/dist/whitespace.d.ts +4 -0
  318. package/dist/whitespace.js +9 -0
  319. package/dist/whitespace.js.map +1 -0
  320. package/package.json +14 -8
  321. package/dist/chunk-2CJCWDMR.js +0 -87
  322. package/dist/chunk-2CJCWDMR.js.map +0 -1
  323. package/dist/chunk-2PO5ZRKV.js.map +0 -1
  324. package/dist/chunk-6UJQNRIO.js.map +0 -1
  325. package/dist/chunk-AAI7JARD.js.map +0 -1
  326. package/dist/chunk-B7LOFDVE.js.map +0 -1
  327. package/dist/chunk-BDFZXRSO.js.map +0 -1
  328. package/dist/chunk-CXWFUJR2.js.map +0 -1
  329. package/dist/chunk-DORBM6OB.js +0 -81
  330. package/dist/chunk-DORBM6OB.js.map +0 -1
  331. package/dist/chunk-ESSMF2FR.js.map +0 -1
  332. package/dist/chunk-HG2NKWR2.js.map +0 -1
  333. package/dist/chunk-HLBYLYRD.js.map +0 -1
  334. package/dist/chunk-HLXVTBF3.js.map +0 -1
  335. package/dist/chunk-ISY75RLM.js.map +0 -1
  336. package/dist/chunk-IZME7KW2.js.map +0 -1
  337. package/dist/chunk-KL4CP4SB.js.map +0 -1
  338. package/dist/chunk-KWBU5S5U.js.map +0 -1
  339. package/dist/chunk-M5ZBBBJI.js.map +0 -1
  340. package/dist/chunk-MDDAA2AO.js.map +0 -1
  341. package/dist/chunk-MWGVGUIS.js.map +0 -1
  342. package/dist/chunk-ORZMT74A.js.map +0 -1
  343. package/dist/chunk-OTFNI3OO.js.map +0 -1
  344. package/dist/chunk-PGK3VUHN.js.map +0 -1
  345. package/dist/chunk-QCCCQT3O.js.map +0 -1
  346. package/dist/chunk-QDOSNLB4.js.map +0 -1
  347. package/dist/chunk-QPKFPHOO.js +0 -178
  348. package/dist/chunk-QPKFPHOO.js.map +0 -1
  349. package/dist/chunk-QWUUMMIK.js.map +0 -1
  350. package/dist/chunk-QY2BHY5O.js.map +0 -1
  351. package/dist/chunk-TVVVQQAK.js.map +0 -1
  352. package/dist/chunk-U4PV25RD.js.map +0 -1
  353. package/dist/chunk-UYSKNO6E.js.map +0 -1
  354. package/dist/chunk-V4YC4LUK.js.map +0 -1
  355. package/dist/chunk-WWIQTB2Y.js.map +0 -1
  356. package/dist/chunk-XUHI52HK.js.map +0 -1
  357. package/dist/chunk-YNCQ7E4M.js.map +0 -1
  358. package/dist/chunk-ZJLY4QSU.js.map +0 -1
  359. /package/dist/{engine-2A6J4XEX.js.map → abort-error.js.map} +0 -0
  360. /package/dist/{chunk-NTTLPF7F.js.map → chunk-3QFQGRHO.js.map} +0 -0
  361. /package/dist/{chunk-G3AG3KZN.js.map → chunk-5IZL4DCV.js.map} +0 -0
  362. /package/dist/{chunk-BRK4ODMI.js.map → chunk-5NPGSAVB.js.map} +0 -0
  363. /package/dist/{chunk-QANCTXQF.js.map → chunk-6LX5ORAS.js.map} +0 -0
  364. /package/dist/{chunk-UIYZ5T3I.js.map → chunk-6UJ47TVX.js.map} +0 -0
  365. /package/dist/{chunk-L5RPWGFK.js.map → chunk-7DHTMOND.js.map} +0 -0
  366. /package/dist/{chunk-L7WO3MZ4.js.map → chunk-7ECD5ATE.js.map} +0 -0
  367. /package/dist/{chunk-Q6FETXJA.js.map → chunk-7SEAZFFB.js.map} +0 -0
  368. /package/dist/{chunk-SCHEKPYH.js.map → chunk-C2EFFULQ.js.map} +0 -0
  369. /package/dist/{chunk-GJR6D6KC.js.map → chunk-D654IBA6.js.map} +0 -0
  370. /package/dist/{chunk-UV2FO7J4.js.map → chunk-E6K4NIEU.js.map} +0 -0
  371. /package/dist/{chunk-T4WRIV2C.js.map → chunk-EABGC2TL.js.map} +0 -0
  372. /package/dist/{chunk-ONRU4L2N.js.map → chunk-FEMOX5AD.js.map} +0 -0
  373. /package/dist/{chunk-IFFFR3MR.js.map → chunk-FSFEQI74.js.map} +0 -0
  374. /package/dist/{chunk-J3BT33K7.js.map → chunk-ITRLGI2T.js.map} +0 -0
  375. /package/dist/{chunk-J47FNDR7.js.map → chunk-JIU55F3X.js.map} +0 -0
  376. /package/dist/{chunk-ZKYI7UVO.js.map → chunk-JR4ZC3G4.js.map} +0 -0
  377. /package/dist/{chunk-UCYSTFZR.js.map → chunk-JRNQ3RNA.js.map} +0 -0
  378. /package/dist/{chunk-GPGBSNKM.js.map → chunk-K4FLSOR5.js.map} +0 -0
  379. /package/dist/{chunk-LP47L3ZX.js.map → chunk-N42IWANG.js.map} +0 -0
  380. /package/dist/{chunk-YNI4S5WT.js.map → chunk-N53K2EXC.js.map} +0 -0
  381. /package/dist/{chunk-763GUIOU.js.map → chunk-NBNN5GOB.js.map} +0 -0
  382. /package/dist/{chunk-OOSWAUYB.js.map → chunk-ODWDQNRE.js.map} +0 -0
  383. /package/dist/{chunk-OTAVQCSF.js.map → chunk-PYXS46O7.js.map} +0 -0
  384. /package/dist/{chunk-4A24LIM2.js.map → chunk-S75M5ZRK.js.map} +0 -0
  385. /package/dist/{chunk-M5KEYE5E.js.map → chunk-URB2WSKZ.js.map} +0 -0
package/dist/cli.d.ts CHANGED
@@ -1,30 +1,33 @@
1
- import { R as ReplaySource, a as ReplayWarning, b as ReplayTurn, O as Orchestrator, C as CompoundingPromotionReport } from './orchestrator-zTa-Qo-1.js';
2
- import { M as MemoryGovernanceRunResult, a as MemoryGovernanceSummary, b as MemoryGovernanceMetrics, c as MemoryGovernanceQualityScore, d as MemoryGovernanceReviewQueueEntry, e as MemoryGovernanceAppliedAction, f as MemoryGovernanceTransitionReport, g as MemoryGovernanceManifest, h as MemoryGovernanceRestoreManifest, R as RestoreMemoryGovernanceRunResult } from './memory-projection-store-NxMkbocT.js';
3
- import { MemoryStatus, MemoryFile, BehaviorSignalEvent, MemoryActionEvent, MemoryLifecycleEvent } from './types.js';
4
- import { Readable, Writable } from 'node:stream';
5
- import { DashboardStatus } from './dashboard-runtime.js';
6
- import { EngramAccessService } from './access-service.js';
7
- import { EvalBaselineDeltaReport, EvalBaselineSnapshot, EvalCiGateReport, EvalBenchmarkPackSummary, EvalHarnessStatus, EvalStoredBaselineCiGateReport } from './evals.js';
8
- import { GraphHealthReport } from './graph.js';
9
- import { CausalTrajectoryStoreStatus } from './causal-trajectory.js';
10
- import { AbstractionNodeStoreStatus } from './abstraction-nodes.js';
11
- import { CueAnchorStoreStatus } from './cue-anchors.js';
12
- import { HarmonicRetrievalResult } from './harmonic-retrieval.js';
13
- import { VerifiedEpisodeResult } from './verified-recall.js';
14
- import { VerifiedSemanticRuleResult } from './semantic-rule-verifier.js';
15
- import { CommitmentLedgerLifecycleResult, CommitmentLedgerEntry, CommitmentLedgerStatus } from './commitment-ledger.js';
16
- import { WorkProductLedgerSearchResult, WorkProductLedgerEntry, WorkProductLedgerStatus } from './work-product-ledger.js';
17
- import { UtilityTelemetryEvent, UtilityTelemetryStatus } from './utility-telemetry.js';
18
- import { UtilityLearningResult, UtilityLearningStatus } from './utility-learner.js';
19
- import { ResumeBundle, ResumeBundleStatus } from './resume-bundles.js';
20
- import { SemanticRulePromotionReport } from './semantic-rule-promotion.js';
21
- import { ObjectiveStateStoreStatus } from './objective-state.js';
22
- import { TrustZoneDemoSeedResult, TrustZoneName, TrustZonePromotionResult, TrustZoneStoreStatus } from './trust-zones.js';
23
- import { SessionIntegrityReport, SessionRepairPlan, SessionRepairApplyResult } from './session-integrity.js';
24
- import { TierMigrationStatusSnapshot, TierMigrationCycleSummary } from './recall-state.js';
25
- import { RuntimePolicyValues } from './policy-runtime.js';
1
+ import './orchestrator-DRYA6_lW.js';
2
+ export { A as AccessHttpServeCliCommandOptions, c as ArchiveObservationsCliCommandOptions, B as BulkImportCliCommandOptions, C as CompatCliCommandOptions, d as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, e as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, g as MemoryActionAuditCliNamespaceSummary, h as MemoryActionAuditCliReport, i as MemoryGovernanceCliCommandOptions, j as MemoryGovernanceReportCliCommandOptions, k as MemoryGovernanceRestoreCliCommandOptions, l as MemoryReviewDispositionCliCommandOptions, m as MemoryTimelineCliCommandOptions, n as MigrateCliOrchestrator, o as MigrateCliReport, q as MigrateObservationsCliCommandOptions, s as PolicyDiffCliReport, t as PolicyDiffEntry, u as PolicyRollbackCliReport, v as PolicyStatusCliReport, w as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, x as RebuildMemoryProjectionCliCommandOptions, y as RebuildObservationsCliCommandOptions, z as RepairMemoryProjectionCliCommandOptions, F as ReplayCliCommandOptions, H as ReplayCliOrchestrator, I as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, J as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, K as TailscaleSyncCliCommandOptions, L as TierMigrationCliOrchestrator, N as TrainingExportCliCommandOptions, V as VerifyMemoryProjectionCliCommandOptions, W as WebDavServeCliCommandOptions, O as WorkProjectCliCommandOptions, Q as WorkTaskCliCommandOptions, U as parseStrictCliDate, X as planAggressiveDuplicateDeletions, Y as planExactDuplicateDeletions, Z as registerCli, _ as resolveAccessPrincipalOverride, $ as resolveMemoryDirForNamespace, a0 as runAbstractionNodeStatusCliCommand, a1 as runAccessHttpServeCliCommand, a2 as runAccessHttpStatusCliCommand, a3 as runAccessHttpStopCliCommand, a4 as runAccessMcpServeCliCommand, a5 as runArchiveObservationsCliCommand, a6 as runBenchmarkBaselineReportCliCommand, a7 as runBenchmarkBaselineSnapshotCliCommand, a8 as runBenchmarkCiGateCliCommand, a9 as runBenchmarkImportCliCommand, aa as runBenchmarkStatusCliCommand, ab as runBenchmarkStoredBaselineCiGateCliCommand, ac as runBenchmarkValidateCliCommand, r as runBulkImportCliCommand, ad as runCausalTrajectoryStatusCliCommand, ae as runCommitmentLifecycleCliCommand, af as runCommitmentRecordCliCommand, ag as runCommitmentSetStateCliCommand, ah as runCommitmentStatusCliCommand, ai as runCompatCliCommand, aj as runCompoundingPromoteCliCommand, ak as runConversationIndexHealthCliCommand, al as runConversationIndexInspectCliCommand, am as runConversationIndexRebuildCliCommand, an as runCueAnchorStatusCliCommand, ao as runDashboardStartCliCommand, ap as runDashboardStatusCliCommand, aq as runDashboardStopCliCommand, ar as runGraphHealthCliCommand, as as runHarmonicSearchCliCommand, at as runMemoryActionAuditCliCommand, au as runMemoryGovernanceCliCommand, av as runMemoryGovernanceReportCliCommand, aw as runMemoryGovernanceRestoreCliCommand, ax as runMemoryReviewDispositionCliCommand, ay as runMemoryTimelineCliCommand, az as runMigrateNormalizeFrontmatterCliCommand, aA as runMigrateObservationsCliCommand, aB as runMigrateRechunkCliCommand, aC as runMigrateReextractCliCommand, aD as runMigrateRescoreImportanceCliCommand, aE as runObjectiveStateStatusCliCommand, aF as runPolicyDiffCliCommand, aG as runPolicyRollbackCliCommand, aH as runPolicyStatusCliCommand, aI as runRebuildMemoryLifecycleLedgerCliCommand, aJ as runRebuildMemoryProjectionCliCommand, aK as runRebuildObservationsCliCommand, aL as runRepairMemoryProjectionCliCommand, aM as runReplayCliCommand, aN as runResumeBundleBuildCliCommand, aO as runResumeBundleRecordCliCommand, aP as runResumeBundleStatusCliCommand, aQ as runRouteCliCommand, aR as runSemanticRulePromoteCliCommand, aS as runSemanticRuleVerifyCliCommand, aT as runSessionCheckCliCommand, aU as runSessionRepairCliCommand, aV as runTailscaleStatusCliCommand, aW as runTailscaleSyncCliCommand, aX as runTierMigrateCliCommand, aY as runTierStatusCliCommand, aZ as runTrainingExportCliCommand, a_ as runTrustZoneDemoSeedCliCommand, a$ as runTrustZonePromoteCliCommand, b0 as runTrustZoneStatusCliCommand, b1 as runUtilityLearningCliCommand, b2 as runUtilityLearningStatusCliCommand, b3 as runUtilityTelemetryRecordCliCommand, b4 as runUtilityTelemetryStatusCliCommand, b5 as runVerifiedRecallSearchCliCommand, b6 as runVerifyMemoryProjectionCliCommand, b7 as runWebDavServeCliCommand, b8 as runWebDavStopCliCommand, b9 as runWorkProductRecallSearchCliCommand, ba as runWorkProductRecordCliCommand, bb as runWorkProductStatusCliCommand, bc as runWorkProjectCliCommand, bd as runWorkTaskCliCommand } from './cli-BneVIEvh.js';
3
+ import './memory-projection-store-DeSXPh1j.js';
4
+ import './types.js';
5
+ import 'node:stream';
6
+ import './dashboard-runtime.js';
7
+ import './access-service-HmO1Trrx.js';
8
+ import './evals.js';
9
+ import './graph.js';
10
+ import './causal-trajectory.js';
11
+ import './abstraction-nodes.js';
12
+ import './cue-anchors.js';
13
+ import './harmonic-retrieval.js';
14
+ import './verified-recall.js';
15
+ import './semantic-rule-verifier.js';
16
+ import './commitment-ledger.js';
17
+ import './work-product-ledger.js';
18
+ import './utility-telemetry.js';
19
+ import './utility-learner.js';
20
+ import './resume-bundles.js';
21
+ import './semantic-rule-promotion.js';
22
+ import './objective-state.js';
23
+ import './trust-zones.js';
24
+ import './session-integrity.js';
25
+ import './recall-state.js';
26
+ import './policy-runtime.js';
26
27
  import './buffer.js';
27
28
  import './storage.js';
29
+ import './page-versioning.js';
30
+ import 'better-sqlite3';
28
31
  import './port-C1GZFv8h.js';
29
32
  import './transcript.js';
30
33
  import './summarizer.js';
@@ -34,1129 +37,11 @@ import './relevance.js';
34
37
  import './negative.js';
35
38
  import './session-observer-state.js';
36
39
  import './embedding-fallback.js';
37
- import './semantic-consolidation.js';
40
+ import './semantic-consolidation-DrvSYRdB.js';
41
+ import './codex-materialize-CQlLTzke.js';
42
+ import './logger.js';
38
43
  import 'zod';
39
44
  import './profiling.js';
40
- import 'better-sqlite3';
41
45
  import './explicit-capture.js';
46
+ import './fallback-llm.js';
42
47
  import './boxes.js';
43
-
44
- interface MigrateObservationsResult {
45
- dryRun: boolean;
46
- scannedFiles: number;
47
- parsedRows: number;
48
- malformedLines: number;
49
- migratedRows: number;
50
- outputPath: string;
51
- backupPath?: string;
52
- sourceRelativePaths: string[];
53
- }
54
-
55
- interface RebuildMemoryProjectionResult {
56
- dryRun: boolean;
57
- scannedMemories: number;
58
- currentRows: number;
59
- timelineRows: number;
60
- entityMentionRows: number;
61
- nativeKnowledgeRows: number;
62
- reviewQueueRows: number;
63
- outputPath: string;
64
- backupPath?: string;
65
- usedLifecycleLedger: boolean;
66
- scope: {
67
- updatedAfter: string | null;
68
- updatedBefore: string | null;
69
- };
70
- }
71
- interface VerifyMemoryProjectionResult {
72
- outputPath: string;
73
- projectionExists: boolean;
74
- ok: boolean;
75
- expectedCurrentRows: number;
76
- actualCurrentRows: number;
77
- expectedTimelineRows: number;
78
- actualTimelineRows: number;
79
- expectedEntityMentionRows: number;
80
- actualEntityMentionRows: number;
81
- expectedNativeKnowledgeRows: number;
82
- actualNativeKnowledgeRows: number;
83
- expectedReviewQueueRows: number;
84
- actualReviewQueueRows: number;
85
- missingCurrentMemoryIds: string[];
86
- extraCurrentMemoryIds: string[];
87
- mismatchedCurrentMemoryIds: string[];
88
- missingTimelineEventIds: string[];
89
- extraTimelineEventIds: string[];
90
- missingEntityMentionKeys: string[];
91
- extraEntityMentionKeys: string[];
92
- mismatchedEntityMentionKeys: string[];
93
- missingNativeKnowledgeChunkIds: string[];
94
- extraNativeKnowledgeChunkIds: string[];
95
- mismatchedNativeKnowledgeChunkIds: string[];
96
- missingReviewQueueEntryIds: string[];
97
- extraReviewQueueEntryIds: string[];
98
- mismatchedReviewQueueEntryIds: string[];
99
- usedLifecycleLedger: boolean;
100
- scope: {
101
- updatedAfter: string | null;
102
- updatedBefore: string | null;
103
- };
104
- }
105
- interface RepairMemoryProjectionResult {
106
- dryRun: boolean;
107
- repaired: boolean;
108
- verify: VerifyMemoryProjectionResult;
109
- rebuild?: RebuildMemoryProjectionResult;
110
- }
111
-
112
- interface RebuildMemoryLifecycleLedgerResult {
113
- dryRun: boolean;
114
- scannedMemories: number;
115
- rebuiltRows: number;
116
- outputPath: string;
117
- backupPath?: string;
118
- }
119
-
120
- interface RebuildObservationsResult {
121
- dryRun: boolean;
122
- scannedFiles: number;
123
- parsedTurns: number;
124
- malformedLines: number;
125
- rebuiltRows: number;
126
- outputPath: string;
127
- backupPath?: string;
128
- }
129
-
130
- interface ArchiveObservationsResult {
131
- dryRun: boolean;
132
- retentionDays: number;
133
- scannedFiles: number;
134
- archivedFiles: number;
135
- archivedBytes: number;
136
- archiveRoot: string;
137
- archivedRelativePaths: string[];
138
- }
139
-
140
- interface ReplayRunSummary {
141
- source: ReplaySource;
142
- parsedTurns: number;
143
- validTurns: number;
144
- invalidTurns: number;
145
- filteredByDate: number;
146
- skippedByOffset: number;
147
- processedTurns: number;
148
- batchCount: number;
149
- dryRun: boolean;
150
- nextOffset: number;
151
- firstTimestamp?: string;
152
- lastTimestamp?: string;
153
- warnings: ReplayWarning[];
154
- }
155
-
156
- type WorkTaskStatus = "todo" | "in_progress" | "blocked" | "done" | "cancelled";
157
- type WorkTaskPriority = "low" | "medium" | "high";
158
- type WorkProjectStatus = "active" | "on_hold" | "completed" | "archived";
159
-
160
- type RoutePatternType = "regex" | "keyword";
161
-
162
- interface TailscaleSyncOptions {
163
- sourceDir: string;
164
- destination: string;
165
- delete?: boolean;
166
- dryRun?: boolean;
167
- extraArgs?: string[];
168
- }
169
-
170
- type CompatLevel = "ok" | "warn" | "error";
171
- interface CompatCheckResult {
172
- id: string;
173
- title: string;
174
- level: CompatLevel;
175
- message: string;
176
- remediation?: string;
177
- metadata?: Record<string, unknown>;
178
- }
179
- interface CompatSummary {
180
- ok: number;
181
- warn: number;
182
- error: number;
183
- }
184
- interface CompatReport {
185
- generatedAt: string;
186
- checks: CompatCheckResult[];
187
- summary: CompatSummary;
188
- }
189
- interface CompatRunner {
190
- commandExists(command: string): Promise<boolean>;
191
- }
192
-
193
- interface CliApi {
194
- registerCli(handler: (opts: {
195
- program: CliProgram;
196
- }) => void, options: {
197
- commands: string[];
198
- }): void;
199
- }
200
- interface CliProgram {
201
- command(name: string): CliCommand;
202
- }
203
- interface CliCommand {
204
- description(desc: string): CliCommand;
205
- option(flags: string, desc: string, defaultValue?: string): CliCommand;
206
- requiredOption(flags: string, desc: string, defaultValue?: string): CliCommand;
207
- argument(name: string, desc: string): CliCommand;
208
- action(fn: (...args: unknown[]) => Promise<void> | void): CliCommand;
209
- command(name: string): CliCommand;
210
- }
211
- interface EngramMcpServerLike {
212
- runStdio(input: Readable, output: Writable): Promise<void>;
213
- }
214
- interface DedupeCandidate {
215
- path: string;
216
- content: string;
217
- frontmatter: {
218
- id?: string;
219
- confidence?: number;
220
- updated?: string;
221
- created?: string;
222
- };
223
- }
224
- interface ExactDedupePlan {
225
- groups: number;
226
- duplicates: number;
227
- keepPaths: string[];
228
- deletePaths: string[];
229
- }
230
- declare function planExactDuplicateDeletions(memories: DedupeCandidate[]): ExactDedupePlan;
231
- declare function planAggressiveDuplicateDeletions(memories: DedupeCandidate[]): ExactDedupePlan;
232
- interface ReplayCliCommandOptions {
233
- source: ReplaySource;
234
- inputPath: string;
235
- from?: string;
236
- to?: string;
237
- dryRun?: boolean;
238
- startOffset?: number;
239
- maxTurns?: number;
240
- batchSize?: number;
241
- defaultSessionKey?: string;
242
- strict?: boolean;
243
- runConsolidation?: boolean;
244
- extractionIdleTimeoutMs?: number;
245
- }
246
- interface ReplayCliOrchestrator {
247
- ingestReplayBatch(turns: ReplayTurn[], options?: {
248
- deadlineMs?: number;
249
- }): Promise<void>;
250
- waitForConsolidationIdle(timeoutMs?: number): Promise<boolean>;
251
- runConsolidationNow(): Promise<{
252
- memoriesProcessed: number;
253
- merged: number;
254
- invalidated: number;
255
- }>;
256
- }
257
- interface ArchiveObservationsCliCommandOptions {
258
- memoryDir: string;
259
- retentionDays?: number;
260
- write?: boolean;
261
- now?: Date;
262
- }
263
- interface RebuildObservationsCliCommandOptions {
264
- memoryDir: string;
265
- write?: boolean;
266
- now?: Date;
267
- }
268
- interface RebuildMemoryLifecycleLedgerCliCommandOptions {
269
- memoryDir: string;
270
- write?: boolean;
271
- now?: Date;
272
- }
273
- interface RebuildMemoryProjectionCliCommandOptions {
274
- memoryDir: string;
275
- defaultNamespace?: string;
276
- write?: boolean;
277
- now?: Date;
278
- updatedAfter?: string;
279
- updatedBefore?: string;
280
- }
281
- interface VerifyMemoryProjectionCliCommandOptions {
282
- memoryDir: string;
283
- defaultNamespace?: string;
284
- updatedAfter?: string;
285
- updatedBefore?: string;
286
- }
287
- interface RepairMemoryProjectionCliCommandOptions {
288
- memoryDir: string;
289
- defaultNamespace?: string;
290
- write?: boolean;
291
- now?: Date;
292
- updatedAfter?: string;
293
- updatedBefore?: string;
294
- }
295
- interface MemoryTimelineCliCommandOptions {
296
- memoryDir: string;
297
- memoryId: string;
298
- limit?: number;
299
- }
300
- interface MemoryGovernanceCliCommandOptions {
301
- memoryDir: string;
302
- mode: "shadow" | "apply";
303
- now?: Date;
304
- maxMemories?: number;
305
- batchSize?: number;
306
- recentDays?: number;
307
- }
308
- interface MemoryGovernanceReportCliCommandOptions {
309
- memoryDir: string;
310
- runId?: string;
311
- }
312
- interface MemoryGovernanceRestoreCliCommandOptions {
313
- memoryDir: string;
314
- runId: string;
315
- now?: Date;
316
- }
317
- interface MemoryReviewDispositionCliCommandOptions {
318
- memoryDir: string;
319
- memoryId: string;
320
- status: Extract<MemoryStatus, "active" | "pending_review" | "rejected" | "quarantined">;
321
- reasonCode?: string;
322
- now?: Date;
323
- }
324
- interface MigrateObservationsCliCommandOptions {
325
- memoryDir: string;
326
- write?: boolean;
327
- now?: Date;
328
- }
329
- interface WorkTaskPatchInput {
330
- title?: string;
331
- description?: string;
332
- status?: WorkTaskStatus;
333
- priority?: WorkTaskPriority;
334
- owner?: string | null;
335
- assignee?: string | null;
336
- projectId?: string | null;
337
- tags?: string[];
338
- dueAt?: string | null;
339
- }
340
- interface WorkProjectPatchInput {
341
- name?: string;
342
- description?: string;
343
- status?: WorkProjectStatus;
344
- owner?: string | null;
345
- tags?: string[];
346
- }
347
- interface WorkTaskCliCommandOptions {
348
- memoryDir: string;
349
- action: "create" | "get" | "list" | "update" | "transition" | "delete" | "link";
350
- id?: string;
351
- title?: string;
352
- description?: string;
353
- status?: WorkTaskStatus;
354
- priority?: WorkTaskPriority;
355
- owner?: string;
356
- assignee?: string;
357
- projectId?: string;
358
- tags?: string[];
359
- dueAt?: string;
360
- patch?: WorkTaskPatchInput;
361
- }
362
- interface WorkProjectCliCommandOptions {
363
- memoryDir: string;
364
- action: "create" | "get" | "list" | "update" | "delete";
365
- id?: string;
366
- name?: string;
367
- description?: string;
368
- status?: WorkProjectStatus;
369
- owner?: string;
370
- tags?: string[];
371
- patch?: WorkProjectPatchInput;
372
- }
373
- interface RouteCliCommandOptions {
374
- memoryDir: string;
375
- stateFile?: string;
376
- action: "list" | "add" | "remove" | "test";
377
- pattern?: string;
378
- patternType?: RoutePatternType;
379
- priority?: number;
380
- targetRaw?: string;
381
- text?: string;
382
- id?: string;
383
- }
384
- interface TailscaleHelperLike {
385
- status(): Promise<{
386
- available: boolean;
387
- running: boolean;
388
- backendState?: string;
389
- version?: string;
390
- selfHostname?: string;
391
- selfIp?: string;
392
- }>;
393
- syncDirectory(options: TailscaleSyncOptions): Promise<void>;
394
- }
395
- interface ConversationIndexHealthCliOrchestrator {
396
- getConversationIndexHealth(): Promise<{
397
- enabled: boolean;
398
- backend: "qmd" | "faiss";
399
- status: "ok" | "degraded" | "disabled";
400
- chunkDocCount: number;
401
- lastUpdateAt: string | null;
402
- qmdAvailable?: boolean;
403
- faiss?: {
404
- ok: boolean;
405
- status: "ok" | "degraded" | "error";
406
- indexPath: string;
407
- message?: string;
408
- manifest?: {
409
- version: number;
410
- modelId: string;
411
- normalizedModelId: string;
412
- dimension: number;
413
- chunkCount: number;
414
- updatedAt: string;
415
- lastSuccessfulRebuildAt: string;
416
- };
417
- };
418
- }>;
419
- inspectConversationIndex(): Promise<{
420
- enabled: boolean;
421
- backend: "qmd" | "faiss";
422
- status: "ok" | "degraded" | "disabled";
423
- available: boolean;
424
- indexPath: string;
425
- supportsIncrementalUpdate: boolean;
426
- message?: string;
427
- chunkDocCount: number;
428
- lastUpdateAt: string | null;
429
- metadata: {
430
- chunkCount: number | null;
431
- qmdAvailable?: boolean;
432
- debugStatus?: string;
433
- hasIndex?: boolean;
434
- hasMetadata?: boolean;
435
- hasManifest?: boolean;
436
- manifest?: {
437
- version: number;
438
- modelId: string;
439
- normalizedModelId: string;
440
- dimension: number;
441
- chunkCount: number;
442
- updatedAt: string;
443
- lastSuccessfulRebuildAt: string;
444
- };
445
- };
446
- }>;
447
- rebuildConversationIndex(sessionKey?: string, hours?: number, opts?: {
448
- embed?: boolean;
449
- }): Promise<{
450
- chunks: number;
451
- skipped: boolean;
452
- reason?: string;
453
- embedded?: boolean;
454
- rebuilt?: boolean;
455
- }>;
456
- }
457
- interface GraphHealthCliCommandOptions {
458
- memoryDir: string;
459
- entityGraphEnabled?: boolean;
460
- timeGraphEnabled?: boolean;
461
- causalGraphEnabled?: boolean;
462
- includeRepairGuidance?: boolean;
463
- }
464
- interface SessionIntegrityCliCommandOptions {
465
- memoryDir: string;
466
- }
467
- interface SessionRepairCliCommandOptions {
468
- memoryDir: string;
469
- apply?: boolean;
470
- dryRun?: boolean;
471
- allowSessionFileRepair?: boolean;
472
- sessionFilesDir?: string;
473
- }
474
- interface TierMigrationCliOrchestrator {
475
- getTierMigrationStatus(): Promise<TierMigrationStatusSnapshot>;
476
- runTierMigrationNow(options?: {
477
- dryRun?: boolean;
478
- limit?: number;
479
- }): Promise<TierMigrationCycleSummary>;
480
- }
481
- interface MemoryActionAuditCliCommandOptions {
482
- namespace?: string;
483
- limit?: number;
484
- }
485
- interface MemoryActionAuditCliNamespaceSummary {
486
- namespace: string;
487
- eventCount: number;
488
- actions: Record<string, number>;
489
- outcomes: Record<string, number>;
490
- policyDecisions: Record<string, number>;
491
- }
492
- interface MemoryActionAuditCliReport {
493
- generatedAt: string;
494
- limit: number;
495
- namespaces: MemoryActionAuditCliNamespaceSummary[];
496
- totals: {
497
- eventCount: number;
498
- actions: Record<string, number>;
499
- outcomes: Record<string, number>;
500
- policyDecisions: Record<string, number>;
501
- };
502
- }
503
- interface MemoryActionAuditCliOrchestrator {
504
- config: {
505
- defaultNamespace: string;
506
- sharedNamespace: string;
507
- namespacesEnabled: boolean;
508
- namespacePolicies: Array<{
509
- name: string;
510
- }>;
511
- };
512
- getStorage(namespace?: string): Promise<{
513
- readMemoryActionEvents(limit?: number): Promise<MemoryActionEvent[]>;
514
- }>;
515
- }
516
- interface TailscaleStatusCliCommandOptions {
517
- helper?: TailscaleHelperLike;
518
- timeoutMs?: number;
519
- }
520
- interface TailscaleSyncCliCommandOptions extends TailscaleSyncOptions {
521
- helper?: TailscaleHelperLike;
522
- }
523
- interface WebDavServerLike {
524
- start(): Promise<{
525
- running: boolean;
526
- host: string;
527
- port: number;
528
- rootCount: number;
529
- }>;
530
- stop(): Promise<void>;
531
- status(): {
532
- running: boolean;
533
- host: string;
534
- port: number;
535
- rootCount: number;
536
- };
537
- }
538
- interface WebDavServeCliCommandOptions {
539
- enabled?: boolean;
540
- host?: string;
541
- port?: number;
542
- allowlistDirs: string[];
543
- authUsername?: string;
544
- authPassword?: string;
545
- createServer?: (options: {
546
- enabled?: boolean;
547
- host?: string;
548
- port: number;
549
- allowlistDirs: string[];
550
- auth?: {
551
- username: string;
552
- password: string;
553
- };
554
- }) => Promise<WebDavServerLike>;
555
- }
556
- interface CompatCliCommandOptions {
557
- repoRoot?: string;
558
- strict?: boolean;
559
- runner?: CompatRunner;
560
- now?: Date;
561
- }
562
- interface DashboardServerLike {
563
- start(): Promise<DashboardStatus>;
564
- stop(): Promise<void>;
565
- status(): DashboardStatus;
566
- }
567
- interface AccessHttpServerLike {
568
- start(): Promise<{
569
- running: boolean;
570
- host: string;
571
- port: number;
572
- maxBodyBytes: number;
573
- }>;
574
- stop(): Promise<void>;
575
- status(): {
576
- running: boolean;
577
- host: string;
578
- port: number;
579
- maxBodyBytes: number;
580
- };
581
- }
582
- interface DashboardStartCliCommandOptions {
583
- memoryDir: string;
584
- host?: string;
585
- port?: number;
586
- publicDir?: string;
587
- createServer?: (options: {
588
- memoryDir: string;
589
- host?: string;
590
- port?: number;
591
- publicDir?: string;
592
- }) => DashboardServerLike;
593
- }
594
- interface AccessHttpServeCliCommandOptions {
595
- service: EngramAccessService;
596
- enabled?: boolean;
597
- host?: string;
598
- port?: number;
599
- authToken?: string;
600
- principal?: string;
601
- maxBodyBytes?: number;
602
- trustPrincipalHeader?: boolean;
603
- createServer?: (options: {
604
- service: EngramAccessService;
605
- host?: string;
606
- port?: number;
607
- authToken?: string;
608
- principal?: string;
609
- maxBodyBytes?: number;
610
- trustPrincipalHeader?: boolean;
611
- }) => AccessHttpServerLike;
612
- }
613
- declare function resolveAccessPrincipalOverride(explicitPrincipal: unknown, configuredPrincipal?: string): string | undefined;
614
- declare function runArchiveObservationsCliCommand(options: ArchiveObservationsCliCommandOptions): Promise<ArchiveObservationsResult>;
615
- declare function runRebuildObservationsCliCommand(options: RebuildObservationsCliCommandOptions): Promise<RebuildObservationsResult>;
616
- declare function runRebuildMemoryLifecycleLedgerCliCommand(options: RebuildMemoryLifecycleLedgerCliCommandOptions): Promise<RebuildMemoryLifecycleLedgerResult>;
617
- declare function runRebuildMemoryProjectionCliCommand(options: RebuildMemoryProjectionCliCommandOptions): Promise<RebuildMemoryProjectionResult>;
618
- declare function runVerifyMemoryProjectionCliCommand(options: VerifyMemoryProjectionCliCommandOptions): Promise<VerifyMemoryProjectionResult>;
619
- declare function runRepairMemoryProjectionCliCommand(options: RepairMemoryProjectionCliCommandOptions): Promise<RepairMemoryProjectionResult>;
620
- declare function runMemoryTimelineCliCommand(options: MemoryTimelineCliCommandOptions): Promise<MemoryLifecycleEvent[]>;
621
- declare function runMemoryGovernanceCliCommand(options: MemoryGovernanceCliCommandOptions): Promise<MemoryGovernanceRunResult>;
622
- declare function runMemoryGovernanceReportCliCommand(options: MemoryGovernanceReportCliCommandOptions): Promise<{
623
- summary: MemoryGovernanceSummary;
624
- metrics: MemoryGovernanceMetrics;
625
- qualityScore: MemoryGovernanceQualityScore;
626
- keptMemoryIds: string[];
627
- reviewQueue: MemoryGovernanceReviewQueueEntry[];
628
- appliedActions: MemoryGovernanceAppliedAction[];
629
- transitionReport: MemoryGovernanceTransitionReport;
630
- report: string;
631
- manifest: MemoryGovernanceManifest;
632
- restore?: MemoryGovernanceRestoreManifest;
633
- }>;
634
- declare function runMemoryGovernanceRestoreCliCommand(options: MemoryGovernanceRestoreCliCommandOptions): Promise<RestoreMemoryGovernanceRunResult>;
635
- declare function runMemoryReviewDispositionCliCommand(options: MemoryReviewDispositionCliCommandOptions): Promise<{
636
- memoryId: string;
637
- status: "active" | "pending_review" | "rejected" | "quarantined";
638
- reasonCode: string | undefined;
639
- }>;
640
- declare function runMigrateObservationsCliCommand(options: MigrateObservationsCliCommandOptions): Promise<MigrateObservationsResult>;
641
- declare function runConversationIndexHealthCliCommand(orchestrator: ConversationIndexHealthCliOrchestrator): Promise<{
642
- enabled: boolean;
643
- backend: "qmd" | "faiss";
644
- status: "ok" | "degraded" | "disabled";
645
- chunkDocCount: number;
646
- lastUpdateAt: string | null;
647
- qmdAvailable?: boolean;
648
- faiss?: {
649
- ok: boolean;
650
- status: "ok" | "degraded" | "error";
651
- indexPath: string;
652
- message?: string;
653
- manifest?: {
654
- version: number;
655
- modelId: string;
656
- normalizedModelId: string;
657
- dimension: number;
658
- chunkCount: number;
659
- updatedAt: string;
660
- lastSuccessfulRebuildAt: string;
661
- };
662
- };
663
- }>;
664
- declare function runConversationIndexInspectCliCommand(orchestrator: ConversationIndexHealthCliOrchestrator): Promise<{
665
- enabled: boolean;
666
- backend: "qmd" | "faiss";
667
- status: "ok" | "degraded" | "disabled";
668
- available: boolean;
669
- indexPath: string;
670
- supportsIncrementalUpdate: boolean;
671
- message?: string;
672
- chunkDocCount: number;
673
- lastUpdateAt: string | null;
674
- metadata: {
675
- chunkCount: number | null;
676
- qmdAvailable?: boolean;
677
- debugStatus?: string;
678
- hasIndex?: boolean;
679
- hasMetadata?: boolean;
680
- hasManifest?: boolean;
681
- manifest?: {
682
- version: number;
683
- modelId: string;
684
- normalizedModelId: string;
685
- dimension: number;
686
- chunkCount: number;
687
- updatedAt: string;
688
- lastSuccessfulRebuildAt: string;
689
- };
690
- };
691
- }>;
692
- declare function runConversationIndexRebuildCliCommand(orchestrator: ConversationIndexHealthCliOrchestrator, options: {
693
- sessionKey?: string;
694
- hours?: number;
695
- embed?: boolean;
696
- }): Promise<{
697
- chunks: number;
698
- skipped: boolean;
699
- reason?: string;
700
- embedded?: boolean;
701
- rebuilt?: boolean;
702
- }>;
703
- declare function runGraphHealthCliCommand(options: GraphHealthCliCommandOptions): Promise<GraphHealthReport>;
704
- declare function runBenchmarkStatusCliCommand(options: {
705
- memoryDir: string;
706
- evalStoreDir?: string;
707
- evalHarnessEnabled: boolean;
708
- evalShadowModeEnabled: boolean;
709
- benchmarkBaselineSnapshotsEnabled: boolean;
710
- memoryRedTeamBenchEnabled: boolean;
711
- }): Promise<EvalHarnessStatus>;
712
- declare function runBenchmarkBaselineSnapshotCliCommand(options: {
713
- memoryDir: string;
714
- evalStoreDir?: string;
715
- benchmarkBaselineSnapshotsEnabled: boolean;
716
- snapshotId: string;
717
- createdAt?: string;
718
- notes?: string;
719
- gitRef?: string;
720
- }): Promise<{
721
- targetPath: string;
722
- snapshot: EvalBaselineSnapshot;
723
- }>;
724
- declare function runBenchmarkValidateCliCommand(options: {
725
- path: string;
726
- memoryRedTeamBenchEnabled: boolean;
727
- }): Promise<EvalBenchmarkPackSummary>;
728
- declare function runBenchmarkImportCliCommand(options: {
729
- path: string;
730
- memoryDir: string;
731
- evalStoreDir?: string;
732
- force?: boolean;
733
- memoryRedTeamBenchEnabled: boolean;
734
- }): Promise<EvalBenchmarkPackSummary & {
735
- targetDir: string;
736
- overwritten: boolean;
737
- }>;
738
- declare function runBenchmarkCiGateCliCommand(options: {
739
- baseEvalStoreDir: string;
740
- candidateEvalStoreDir: string;
741
- }): Promise<EvalCiGateReport>;
742
- declare function runBenchmarkStoredBaselineCiGateCliCommand(options: {
743
- baseEvalStoreDir: string;
744
- candidateEvalStoreDir: string;
745
- snapshotId: string;
746
- }): Promise<EvalStoredBaselineCiGateReport>;
747
- declare function runBenchmarkBaselineReportCliCommand(options: {
748
- memoryDir: string;
749
- evalStoreDir?: string;
750
- benchmarkDeltaReporterEnabled: boolean;
751
- snapshotId: string;
752
- }): Promise<EvalBaselineDeltaReport>;
753
- declare function runObjectiveStateStatusCliCommand(options: {
754
- memoryDir: string;
755
- objectiveStateStoreDir?: string;
756
- objectiveStateMemoryEnabled: boolean;
757
- objectiveStateSnapshotWritesEnabled: boolean;
758
- }): Promise<ObjectiveStateStoreStatus>;
759
- declare function runCausalTrajectoryStatusCliCommand(options: {
760
- memoryDir: string;
761
- causalTrajectoryStoreDir?: string;
762
- causalTrajectoryMemoryEnabled: boolean;
763
- }): Promise<CausalTrajectoryStoreStatus>;
764
- declare function runTrustZoneStatusCliCommand(options: {
765
- memoryDir: string;
766
- trustZoneStoreDir?: string;
767
- trustZonesEnabled: boolean;
768
- quarantinePromotionEnabled: boolean;
769
- memoryPoisoningDefenseEnabled: boolean;
770
- }): Promise<TrustZoneStoreStatus>;
771
- declare function runAbstractionNodeStatusCliCommand(options: {
772
- memoryDir: string;
773
- abstractionNodeStoreDir?: string;
774
- harmonicRetrievalEnabled: boolean;
775
- abstractionAnchorsEnabled: boolean;
776
- }): Promise<AbstractionNodeStoreStatus>;
777
- declare function runCueAnchorStatusCliCommand(options: {
778
- memoryDir: string;
779
- abstractionNodeStoreDir?: string;
780
- harmonicRetrievalEnabled: boolean;
781
- abstractionAnchorsEnabled: boolean;
782
- }): Promise<CueAnchorStoreStatus>;
783
- declare function runHarmonicSearchCliCommand(options: {
784
- memoryDir: string;
785
- abstractionNodeStoreDir?: string;
786
- harmonicRetrievalEnabled: boolean;
787
- abstractionAnchorsEnabled: boolean;
788
- query: string;
789
- maxResults?: number;
790
- sessionKey?: string;
791
- }): Promise<HarmonicRetrievalResult[]>;
792
- declare function runVerifiedRecallSearchCliCommand(options: {
793
- memoryDir: string;
794
- verifiedRecallEnabled: boolean;
795
- query: string;
796
- maxResults?: number;
797
- boxRecallDays?: number;
798
- }): Promise<VerifiedEpisodeResult[]>;
799
- declare function runSemanticRulePromoteCliCommand(options: {
800
- memoryDir: string;
801
- semanticRulePromotionEnabled: boolean;
802
- sourceMemoryId: string;
803
- dryRun?: boolean;
804
- }): Promise<SemanticRulePromotionReport>;
805
- declare function runCompoundingPromoteCliCommand(options: {
806
- memoryDir: string;
807
- compoundingEnabled: boolean;
808
- compoundingSemanticEnabled: boolean;
809
- weekId: string;
810
- candidateId: string;
811
- dryRun?: boolean;
812
- }): Promise<CompoundingPromotionReport>;
813
- declare function runSemanticRuleVerifyCliCommand(options: {
814
- memoryDir: string;
815
- semanticRuleVerificationEnabled: boolean;
816
- query: string;
817
- maxResults?: number;
818
- }): Promise<VerifiedSemanticRuleResult[]>;
819
- declare function runWorkProductStatusCliCommand(options: {
820
- memoryDir: string;
821
- workProductLedgerDir?: string;
822
- creationMemoryEnabled: boolean;
823
- }): Promise<WorkProductLedgerStatus>;
824
- declare function runUtilityTelemetryStatusCliCommand(options: {
825
- memoryDir: string;
826
- memoryUtilityLearningEnabled: boolean;
827
- promotionByOutcomeEnabled: boolean;
828
- }): Promise<UtilityTelemetryStatus>;
829
- declare function runUtilityTelemetryRecordCliCommand(options: {
830
- memoryDir: string;
831
- memoryUtilityLearningEnabled: boolean;
832
- event: UtilityTelemetryEvent;
833
- }): Promise<string | null>;
834
- declare function runUtilityLearningStatusCliCommand(options: {
835
- memoryDir: string;
836
- memoryUtilityLearningEnabled: boolean;
837
- promotionByOutcomeEnabled: boolean;
838
- }): Promise<UtilityLearningStatus>;
839
- declare function runUtilityLearningCliCommand(options: {
840
- memoryDir: string;
841
- memoryUtilityLearningEnabled: boolean;
842
- learningWindowDays?: number;
843
- minEventCount?: number;
844
- maxWeightMagnitude?: number;
845
- }): Promise<UtilityLearningResult>;
846
- declare function runWorkProductRecordCliCommand(options: {
847
- memoryDir: string;
848
- workProductLedgerDir?: string;
849
- creationMemoryEnabled: boolean;
850
- entry: WorkProductLedgerEntry;
851
- }): Promise<string | null>;
852
- declare function runWorkProductRecallSearchCliCommand(options: {
853
- memoryDir: string;
854
- workProductLedgerDir?: string;
855
- creationMemoryEnabled: boolean;
856
- workProductRecallEnabled: boolean;
857
- query: string;
858
- maxResults?: number;
859
- sessionKey?: string;
860
- }): Promise<WorkProductLedgerSearchResult[]>;
861
- declare function runResumeBundleStatusCliCommand(options: {
862
- memoryDir: string;
863
- resumeBundleDir?: string;
864
- creationMemoryEnabled: boolean;
865
- resumeBundlesEnabled: boolean;
866
- }): Promise<ResumeBundleStatus>;
867
- declare function runResumeBundleRecordCliCommand(options: {
868
- memoryDir: string;
869
- resumeBundleDir?: string;
870
- creationMemoryEnabled: boolean;
871
- resumeBundlesEnabled: boolean;
872
- bundle: ResumeBundle;
873
- }): Promise<string | null>;
874
- declare function runResumeBundleBuildCliCommand(options: {
875
- memoryDir: string;
876
- resumeBundleDir?: string;
877
- objectiveStateStoreDir?: string;
878
- workProductLedgerDir?: string;
879
- commitmentLedgerDir?: string;
880
- creationMemoryEnabled: boolean;
881
- resumeBundlesEnabled: boolean;
882
- transcriptEnabled: boolean;
883
- objectiveStateMemoryEnabled: boolean;
884
- commitmentLedgerEnabled: boolean;
885
- bundleId: string;
886
- recordedAt: string;
887
- sessionKey: string;
888
- scope: string;
889
- }): Promise<{
890
- bundle: ResumeBundle;
891
- filePath: string;
892
- } | null>;
893
- declare function runCommitmentStatusCliCommand(options: {
894
- memoryDir: string;
895
- commitmentLedgerDir?: string;
896
- creationMemoryEnabled: boolean;
897
- commitmentLedgerEnabled: boolean;
898
- commitmentLifecycleEnabled?: boolean;
899
- commitmentStaleDays?: number;
900
- commitmentDecayDays?: number;
901
- now?: string;
902
- }): Promise<CommitmentLedgerStatus>;
903
- declare function runCommitmentRecordCliCommand(options: {
904
- memoryDir: string;
905
- commitmentLedgerDir?: string;
906
- creationMemoryEnabled: boolean;
907
- commitmentLedgerEnabled: boolean;
908
- entry: CommitmentLedgerEntry;
909
- }): Promise<string | null>;
910
- declare function runCommitmentSetStateCliCommand(options: {
911
- memoryDir: string;
912
- commitmentLedgerDir?: string;
913
- creationMemoryEnabled: boolean;
914
- commitmentLedgerEnabled: boolean;
915
- commitmentLifecycleEnabled: boolean;
916
- entryId: string;
917
- nextState: CommitmentLedgerEntry["state"];
918
- changedAt: string;
919
- }): Promise<CommitmentLedgerEntry | null>;
920
- declare function runCommitmentLifecycleCliCommand(options: {
921
- memoryDir: string;
922
- commitmentLedgerDir?: string;
923
- creationMemoryEnabled: boolean;
924
- commitmentLedgerEnabled: boolean;
925
- commitmentLifecycleEnabled: boolean;
926
- commitmentDecayDays: number;
927
- now?: string;
928
- }): Promise<CommitmentLedgerLifecycleResult | null>;
929
- declare function runTrustZonePromoteCliCommand(options: {
930
- memoryDir: string;
931
- trustZoneStoreDir?: string;
932
- trustZonesEnabled: boolean;
933
- quarantinePromotionEnabled: boolean;
934
- memoryPoisoningDefenseEnabled: boolean;
935
- sourceRecordId: string;
936
- targetZone: TrustZoneName;
937
- promotionReason: string;
938
- recordedAt?: string;
939
- summary?: string;
940
- dryRun?: boolean;
941
- }): Promise<TrustZonePromotionResult & {
942
- dryRun: boolean;
943
- }>;
944
- declare function runTrustZoneDemoSeedCliCommand(options: {
945
- memoryDir: string;
946
- trustZoneStoreDir?: string;
947
- trustZonesEnabled: boolean;
948
- scenario?: string;
949
- recordedAt?: string;
950
- dryRun?: boolean;
951
- }): Promise<TrustZoneDemoSeedResult>;
952
- declare function runSessionCheckCliCommand(options: SessionIntegrityCliCommandOptions): Promise<SessionIntegrityReport>;
953
- declare function runSessionRepairCliCommand(options: SessionRepairCliCommandOptions): Promise<{
954
- report: SessionIntegrityReport;
955
- plan: SessionRepairPlan;
956
- applyResult: SessionRepairApplyResult;
957
- }>;
958
- declare function runTierStatusCliCommand(orchestrator: TierMigrationCliOrchestrator): Promise<TierMigrationStatusSnapshot>;
959
- declare function runTierMigrateCliCommand(orchestrator: TierMigrationCliOrchestrator, options?: {
960
- dryRun?: boolean;
961
- limit?: number;
962
- }): Promise<TierMigrationCycleSummary>;
963
- type MigrateMemoryStorage = {
964
- readAllMemories(): Promise<MemoryFile[]>;
965
- readArchivedMemories(): Promise<MemoryFile[]>;
966
- writeMemoryFrontmatter(memory: MemoryFile, patch: Partial<MemoryFile["frontmatter"]>): Promise<boolean>;
967
- getChunksForParent(parentId: string): Promise<MemoryFile[]>;
968
- updateMemory(id: string, newContent: string): Promise<boolean>;
969
- updateMemoryFrontmatter(id: string, patch: Partial<MemoryFile["frontmatter"]>): Promise<boolean>;
970
- writeChunk(parentId: string, chunkIndex: number, chunkTotal: number, category: MemoryFile["frontmatter"]["category"], content: string, options?: {
971
- confidence?: number;
972
- tags?: string[];
973
- entityRef?: string;
974
- source?: string;
975
- importance?: MemoryFile["frontmatter"]["importance"];
976
- intentGoal?: string;
977
- intentActionType?: string;
978
- intentEntityTypes?: string[];
979
- memoryKind?: MemoryFile["frontmatter"]["memoryKind"];
980
- }): Promise<string>;
981
- invalidateMemory(id: string): Promise<boolean>;
982
- appendReextractJobs(events: Array<{
983
- memoryId: string;
984
- model: string;
985
- requestedAt: string;
986
- source: "cli-migrate";
987
- }>): Promise<number>;
988
- };
989
- interface MigrateCliOrchestrator {
990
- config: {
991
- defaultNamespace: string;
992
- };
993
- getStorage(namespace?: string): Promise<MigrateMemoryStorage>;
994
- }
995
- interface MigrateCliReport {
996
- action: "normalize-frontmatter" | "rescore-importance" | "rechunk" | "reextract";
997
- dryRun: boolean;
998
- scanned: number;
999
- changed: number;
1000
- queued: number;
1001
- limit: number;
1002
- model?: string;
1003
- }
1004
- declare function runMigrateNormalizeFrontmatterCliCommand(orchestrator: MigrateCliOrchestrator, options?: {
1005
- write?: boolean;
1006
- limit?: number;
1007
- }): Promise<MigrateCliReport>;
1008
- declare function runMigrateRescoreImportanceCliCommand(orchestrator: MigrateCliOrchestrator, options?: {
1009
- write?: boolean;
1010
- limit?: number;
1011
- }): Promise<MigrateCliReport>;
1012
- declare function runMigrateRechunkCliCommand(orchestrator: MigrateCliOrchestrator, options?: {
1013
- write?: boolean;
1014
- limit?: number;
1015
- }): Promise<MigrateCliReport>;
1016
- declare function runMigrateReextractCliCommand(orchestrator: MigrateCliOrchestrator, options: {
1017
- model: string;
1018
- write?: boolean;
1019
- limit?: number;
1020
- }): Promise<MigrateCliReport>;
1021
- interface RuntimePolicySnapshotPayload {
1022
- version: number;
1023
- updatedAt: string;
1024
- values: RuntimePolicyValues;
1025
- sourceAdjustmentCount: number;
1026
- }
1027
- interface PolicySignalContribution {
1028
- signalType: string;
1029
- direction: string;
1030
- count: number;
1031
- lastSeenAt: string;
1032
- }
1033
- interface PolicyStatusCliReport {
1034
- generatedAt: string;
1035
- autoTuneEnabled: boolean;
1036
- current: (RuntimePolicySnapshotPayload & {
1037
- policyVersion: string;
1038
- }) | null;
1039
- previous: (RuntimePolicySnapshotPayload & {
1040
- policyVersion: string;
1041
- }) | null;
1042
- topContributingSignals: PolicySignalContribution[];
1043
- }
1044
- interface PolicyDiffEntry {
1045
- parameter: string;
1046
- previousValue: number | null;
1047
- nextValue: number | null;
1048
- delta: number;
1049
- evidenceCount: number;
1050
- }
1051
- interface PolicyDiffCliReport {
1052
- generatedAt: string;
1053
- since: string;
1054
- sinceIso: string;
1055
- currentPolicyVersion: string | null;
1056
- previousPolicyVersion: string | null;
1057
- deltas: PolicyDiffEntry[];
1058
- topContributingSignals: PolicySignalContribution[];
1059
- }
1060
- interface PolicyRollbackCliReport {
1061
- generatedAt: string;
1062
- rolledBack: boolean;
1063
- current: (RuntimePolicySnapshotPayload & {
1064
- policyVersion: string;
1065
- }) | null;
1066
- }
1067
- interface PolicyTuningCliOrchestrator {
1068
- config: {
1069
- memoryDir: string;
1070
- defaultNamespace: string;
1071
- sharedNamespace: string;
1072
- namespacesEnabled: boolean;
1073
- behaviorLoopAutoTuneEnabled: boolean;
1074
- behaviorLoopLearningWindowDays: number;
1075
- lifecycleArchiveDecayThreshold: number;
1076
- recencyWeight: number;
1077
- lifecyclePromoteHeatThreshold: number;
1078
- lifecycleStaleDecayThreshold: number;
1079
- cronRecallInstructionHeavyTokenCap: number;
1080
- namespacePolicies: Array<{
1081
- name: string;
1082
- }>;
1083
- };
1084
- getStorage(namespace?: string): Promise<{
1085
- readBehaviorSignals(limit?: number): Promise<BehaviorSignalEvent[]>;
1086
- }>;
1087
- rollbackBehaviorRuntimePolicy(): Promise<boolean>;
1088
- }
1089
- declare function runPolicyStatusCliCommand(orchestrator: PolicyTuningCliOrchestrator): Promise<PolicyStatusCliReport>;
1090
- declare function runPolicyDiffCliCommand(orchestrator: PolicyTuningCliOrchestrator, options?: {
1091
- since?: string;
1092
- }): Promise<PolicyDiffCliReport>;
1093
- declare function runPolicyRollbackCliCommand(orchestrator: PolicyTuningCliOrchestrator): Promise<PolicyRollbackCliReport>;
1094
- declare function runMemoryActionAuditCliCommand(orchestrator: MemoryActionAuditCliOrchestrator, options?: MemoryActionAuditCliCommandOptions): Promise<MemoryActionAuditCliReport>;
1095
- declare function runTailscaleStatusCliCommand(options?: TailscaleStatusCliCommandOptions): Promise<{
1096
- available: boolean;
1097
- running: boolean;
1098
- backendState?: string;
1099
- version?: string;
1100
- selfHostname?: string;
1101
- selfIp?: string;
1102
- }>;
1103
- declare function runTailscaleSyncCliCommand(options: TailscaleSyncCliCommandOptions): Promise<{
1104
- ok: true;
1105
- }>;
1106
- declare function runWebDavServeCliCommand(options: WebDavServeCliCommandOptions): Promise<{
1107
- running: boolean;
1108
- host: string;
1109
- port: number;
1110
- rootCount: number;
1111
- }>;
1112
- declare function runWebDavStopCliCommand(): Promise<{
1113
- stopped: boolean;
1114
- }>;
1115
- declare function runDashboardStartCliCommand(options: DashboardStartCliCommandOptions): Promise<DashboardStatus>;
1116
- declare function runDashboardStopCliCommand(): Promise<{
1117
- stopped: boolean;
1118
- }>;
1119
- declare function runDashboardStatusCliCommand(): Promise<{
1120
- running: false;
1121
- } | DashboardStatus>;
1122
- declare function runAccessHttpServeCliCommand(options: AccessHttpServeCliCommandOptions): Promise<{
1123
- running: boolean;
1124
- host: string;
1125
- port: number;
1126
- maxBodyBytes: number;
1127
- }>;
1128
- declare function runAccessHttpStopCliCommand(): Promise<{
1129
- stopped: boolean;
1130
- }>;
1131
- declare function runAccessHttpStatusCliCommand(): Promise<{
1132
- running: false;
1133
- } | {
1134
- running: boolean;
1135
- host: string;
1136
- port: number;
1137
- maxBodyBytes: number;
1138
- }>;
1139
- declare function runAccessMcpServeCliCommand(service: EngramAccessService, options?: {
1140
- principal?: string;
1141
- createServer?: (service: EngramAccessService, options: {
1142
- principal?: string;
1143
- }) => EngramMcpServerLike;
1144
- stdin?: Readable;
1145
- stdout?: Writable;
1146
- }): Promise<{
1147
- ok: true;
1148
- }>;
1149
- declare function runCompatCliCommand(options?: CompatCliCommandOptions): Promise<{
1150
- report: CompatReport;
1151
- exitCode: number;
1152
- }>;
1153
- declare function runRouteCliCommand(options: RouteCliCommandOptions): Promise<unknown>;
1154
- declare function runWorkTaskCliCommand(options: WorkTaskCliCommandOptions): Promise<unknown>;
1155
- declare function runWorkProjectCliCommand(options: WorkProjectCliCommandOptions): Promise<unknown>;
1156
- declare function runReplayCliCommand(orchestrator: ReplayCliOrchestrator, options: ReplayCliCommandOptions): Promise<ReplayRunSummary>;
1157
- declare function resolveMemoryDirForNamespace(orchestrator: Orchestrator, namespace?: string, options?: {
1158
- rejectUnsupportedOverride?: boolean;
1159
- }): Promise<string>;
1160
- declare function registerCli(api: CliApi, orchestrator: Orchestrator): void;
1161
-
1162
- export { type AccessHttpServeCliCommandOptions, type ArchiveObservationsCliCommandOptions, type CompatCliCommandOptions, type ConversationIndexHealthCliOrchestrator, type DashboardStartCliCommandOptions, type DedupeCandidate, type ExactDedupePlan, type GraphHealthCliCommandOptions, type MemoryActionAuditCliCommandOptions, type MemoryActionAuditCliNamespaceSummary, type MemoryActionAuditCliReport, type MemoryGovernanceCliCommandOptions, type MemoryGovernanceReportCliCommandOptions, type MemoryGovernanceRestoreCliCommandOptions, type MemoryReviewDispositionCliCommandOptions, type MemoryTimelineCliCommandOptions, type MigrateCliOrchestrator, type MigrateCliReport, type MigrateObservationsCliCommandOptions, type PolicyDiffCliReport, type PolicyDiffEntry, type PolicyRollbackCliReport, type PolicyStatusCliReport, type PolicyTuningCliOrchestrator, type RebuildMemoryLifecycleLedgerCliCommandOptions, type RebuildMemoryProjectionCliCommandOptions, type RebuildObservationsCliCommandOptions, type RepairMemoryProjectionCliCommandOptions, type ReplayCliCommandOptions, type ReplayCliOrchestrator, type RouteCliCommandOptions, type SessionIntegrityCliCommandOptions, type SessionRepairCliCommandOptions, type TailscaleStatusCliCommandOptions, type TailscaleSyncCliCommandOptions, type TierMigrationCliOrchestrator, type VerifyMemoryProjectionCliCommandOptions, type WebDavServeCliCommandOptions, type WorkProjectCliCommandOptions, type WorkTaskCliCommandOptions, planAggressiveDuplicateDeletions, planExactDuplicateDeletions, registerCli, resolveAccessPrincipalOverride, resolveMemoryDirForNamespace, runAbstractionNodeStatusCliCommand, runAccessHttpServeCliCommand, runAccessHttpStatusCliCommand, runAccessHttpStopCliCommand, runAccessMcpServeCliCommand, runArchiveObservationsCliCommand, runBenchmarkBaselineReportCliCommand, runBenchmarkBaselineSnapshotCliCommand, runBenchmarkCiGateCliCommand, runBenchmarkImportCliCommand, runBenchmarkStatusCliCommand, runBenchmarkStoredBaselineCiGateCliCommand, runBenchmarkValidateCliCommand, runCausalTrajectoryStatusCliCommand, runCommitmentLifecycleCliCommand, runCommitmentRecordCliCommand, runCommitmentSetStateCliCommand, runCommitmentStatusCliCommand, runCompatCliCommand, runCompoundingPromoteCliCommand, runConversationIndexHealthCliCommand, runConversationIndexInspectCliCommand, runConversationIndexRebuildCliCommand, runCueAnchorStatusCliCommand, runDashboardStartCliCommand, runDashboardStatusCliCommand, runDashboardStopCliCommand, runGraphHealthCliCommand, runHarmonicSearchCliCommand, runMemoryActionAuditCliCommand, runMemoryGovernanceCliCommand, runMemoryGovernanceReportCliCommand, runMemoryGovernanceRestoreCliCommand, runMemoryReviewDispositionCliCommand, runMemoryTimelineCliCommand, runMigrateNormalizeFrontmatterCliCommand, runMigrateObservationsCliCommand, runMigrateRechunkCliCommand, runMigrateReextractCliCommand, runMigrateRescoreImportanceCliCommand, runObjectiveStateStatusCliCommand, runPolicyDiffCliCommand, runPolicyRollbackCliCommand, runPolicyStatusCliCommand, runRebuildMemoryLifecycleLedgerCliCommand, runRebuildMemoryProjectionCliCommand, runRebuildObservationsCliCommand, runRepairMemoryProjectionCliCommand, runReplayCliCommand, runResumeBundleBuildCliCommand, runResumeBundleRecordCliCommand, runResumeBundleStatusCliCommand, runRouteCliCommand, runSemanticRulePromoteCliCommand, runSemanticRuleVerifyCliCommand, runSessionCheckCliCommand, runSessionRepairCliCommand, runTailscaleStatusCliCommand, runTailscaleSyncCliCommand, runTierMigrateCliCommand, runTierStatusCliCommand, runTrustZoneDemoSeedCliCommand, runTrustZonePromoteCliCommand, runTrustZoneStatusCliCommand, runUtilityLearningCliCommand, runUtilityLearningStatusCliCommand, runUtilityTelemetryRecordCliCommand, runUtilityTelemetryStatusCliCommand, runVerifiedRecallSearchCliCommand, runVerifyMemoryProjectionCliCommand, runWebDavServeCliCommand, runWebDavStopCliCommand, runWorkProductRecallSearchCliCommand, runWorkProductRecordCliCommand, runWorkProductStatusCliCommand, runWorkProjectCliCommand, runWorkTaskCliCommand };