@remnic/core 9.7.8 → 9.7.10

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 (406) hide show
  1. package/dist/access-admin-ops-surface.d.ts +6 -6
  2. package/dist/access-admin-ops-surface.js +32 -30
  3. package/dist/access-audit.js +2 -2
  4. package/dist/access-boundary.d.ts +6 -6
  5. package/dist/access-boundary.js +33 -31
  6. package/dist/access-cli.js +92 -90
  7. package/dist/access-cli.js.map +1 -1
  8. package/dist/access-http.d.ts +6 -6
  9. package/dist/access-http.js +40 -38
  10. package/dist/access-identity-continuity-surface.d.ts +5 -5
  11. package/dist/access-identity-continuity-surface.js +32 -30
  12. package/dist/access-lcm-surface.d.ts +6 -6
  13. package/dist/access-lcm-surface.js +32 -30
  14. package/dist/access-mcp.d.ts +6 -6
  15. package/dist/access-mcp.js +37 -35
  16. package/dist/access-observe-write-surface.d.ts +6 -6
  17. package/dist/access-observe-write-surface.js +32 -30
  18. package/dist/access-operations-batch.js +35 -33
  19. package/dist/access-operations.d.ts +9 -9
  20. package/dist/access-operations.js +36 -34
  21. package/dist/access-recall-surface.d.ts +6 -6
  22. package/dist/access-recall-surface.js +32 -30
  23. package/dist/access-schema.d.ts +64 -64
  24. package/dist/{access-service-CxDZXTKt.d.ts → access-service-DSuzikHQ.d.ts} +4 -4
  25. package/dist/access-service.d.ts +6 -6
  26. package/dist/access-service.js +32 -30
  27. package/dist/access-surface-catalog.d.ts +6 -6
  28. package/dist/action-confidence.d.ts +1 -1
  29. package/dist/active-memory-bridge.d.ts +1 -1
  30. package/dist/active-recall.d.ts +1 -1
  31. package/dist/active-recall.js +1 -1
  32. package/dist/adapters/index.js +4 -4
  33. package/dist/adapters/registry.js +2 -2
  34. package/dist/{auto-sync-676N6N6Y.js → auto-sync-AAMTVZMK.js} +5 -5
  35. package/dist/behavior-learner.d.ts +1 -1
  36. package/dist/behavior-signals.d.ts +1 -1
  37. package/dist/bootstrap.d.ts +5 -5
  38. package/dist/briefing.d.ts +2 -2
  39. package/dist/briefing.js +15 -13
  40. package/dist/buffer-surprise-report.d.ts +1 -1
  41. package/dist/buffer.d.ts +2 -2
  42. package/dist/bulk-import/index.d.ts +3 -3
  43. package/dist/calibration.d.ts +1 -1
  44. package/dist/calibration.js +2 -2
  45. package/dist/capabilities.d.ts +1 -1
  46. package/dist/{capsule-merge-GK5E647P.js → capsule-merge-Z2HUO6IK.js} +10 -2
  47. package/dist/capsule-merge-Z2HUO6IK.js.map +1 -0
  48. package/dist/{catalog-DzU9HowE.d.ts → catalog-BNwjACa5.d.ts} +1 -1
  49. package/dist/causal-behavior.d.ts +1 -1
  50. package/dist/causal-consolidation.d.ts +1 -1
  51. package/dist/causal-consolidation.js +16 -14
  52. package/dist/causal-consolidation.js.map +1 -1
  53. package/dist/causal-trajectory-graph.d.ts +1 -1
  54. package/dist/{chunk-HHAA35A3.js → chunk-2VN4JAX7.js} +548 -161
  55. package/dist/chunk-2VN4JAX7.js.map +1 -0
  56. package/dist/{chunk-CNWC274T.js → chunk-3OQ4IZJN.js} +28 -28
  57. package/dist/{chunk-JO5AT6QT.js → chunk-3ZVFLMFQ.js} +1 -1
  58. package/dist/chunk-3ZVFLMFQ.js.map +1 -0
  59. package/dist/{chunk-7XH7VJN4.js → chunk-5S7Z5SHA.js} +2 -2
  60. package/dist/{chunk-WKE4VXSZ.js → chunk-673NPXE3.js} +2 -2
  61. package/dist/{chunk-Q6JPMCPO.js → chunk-7CKS4AXY.js} +63 -58
  62. package/dist/chunk-7CKS4AXY.js.map +1 -0
  63. package/dist/{chunk-UHGHTOR5.js → chunk-7EX4YOKH.js} +7 -7
  64. package/dist/{chunk-TVVEYCNW.js → chunk-7K5Q6COX.js} +4 -4
  65. package/dist/{chunk-EJCVMPIM.js → chunk-7LMEY5KZ.js} +15 -1
  66. package/dist/chunk-7LMEY5KZ.js.map +1 -0
  67. package/dist/{chunk-3F4N4WDH.js → chunk-AHLPZ2SF.js} +2 -2
  68. package/dist/{chunk-6C35R7P4.js → chunk-DJCKXI4M.js} +2 -2
  69. package/dist/{chunk-AD2KK5MT.js → chunk-DLWYAN6A.js} +9 -3
  70. package/dist/chunk-DLWYAN6A.js.map +1 -0
  71. package/dist/{chunk-TVRPRFUB.js → chunk-EQF5763Z.js} +9 -7
  72. package/dist/chunk-EQF5763Z.js.map +1 -0
  73. package/dist/{chunk-FYKIEOG6.js → chunk-FNJX2O6G.js} +3 -3
  74. package/dist/{chunk-DQPPRXFO.js → chunk-HQ7QZJM5.js} +2 -2
  75. package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
  76. package/dist/{chunk-KIPLG7S7.js → chunk-JKLJ6A7W.js} +2 -2
  77. package/dist/{chunk-O3BZ6PFY.js → chunk-JZM5QUTE.js} +2 -2
  78. package/dist/{chunk-KTOH7EJE.js → chunk-KXLRMM35.js} +312 -48
  79. package/dist/chunk-KXLRMM35.js.map +1 -0
  80. package/dist/{chunk-ZUFJ7ZTR.js → chunk-L4H6MQ7I.js} +6 -2
  81. package/dist/chunk-L4H6MQ7I.js.map +1 -0
  82. package/dist/{chunk-SYNYI4ZM.js → chunk-L5HJQC36.js} +2 -2
  83. package/dist/{chunk-VXMWDXIJ.js → chunk-LC7OODWZ.js} +2 -2
  84. package/dist/{chunk-ZW6OKHVX.js → chunk-LQKITFGB.js} +2 -2
  85. package/dist/{chunk-TZJVTH3F.js → chunk-MXRMNKSY.js} +14 -14
  86. package/dist/{chunk-GL3SMLMZ.js → chunk-N3LWQJ6Y.js} +150 -119
  87. package/dist/chunk-N3LWQJ6Y.js.map +1 -0
  88. package/dist/{chunk-M5QKGHCR.js → chunk-OC35KQIN.js} +6 -2
  89. package/dist/chunk-OC35KQIN.js.map +1 -0
  90. package/dist/chunk-OKUEZOGW.js +27 -0
  91. package/dist/chunk-OKUEZOGW.js.map +1 -0
  92. package/dist/{chunk-PKGWJFNR.js → chunk-OVMS3DCB.js} +2 -2
  93. package/dist/chunk-PDJTHRAW.js +36 -0
  94. package/dist/chunk-PDJTHRAW.js.map +1 -0
  95. package/dist/{chunk-LRGSLV7M.js → chunk-PYHOAXTI.js} +4 -4
  96. package/dist/{chunk-NMMKRVUF.js → chunk-QVALQE4P.js} +6 -6
  97. package/dist/{chunk-FXGC5UUH.js → chunk-RT7IP3D3.js} +2 -2
  98. package/dist/{chunk-AH3M6F4X.js → chunk-SBFDL2EQ.js} +2 -2
  99. package/dist/{chunk-UYZUJ4EB.js → chunk-SECMZACR.js} +2 -2
  100. package/dist/{chunk-HXDKC3BI.js → chunk-TGBJ2OMK.js} +2 -2
  101. package/dist/{chunk-DE6ENYLG.js → chunk-TXLGHDHS.js} +2 -2
  102. package/dist/{chunk-74MJH7I3.js → chunk-U4KHQTJ6.js} +12 -3
  103. package/dist/chunk-U4KHQTJ6.js.map +1 -0
  104. package/dist/{chunk-CRFTLUWT.js → chunk-UTDA43TB.js} +2 -2
  105. package/dist/{chunk-GKCCHHZK.js → chunk-UXKMMNJD.js} +4 -4
  106. package/dist/{chunk-57INMZ6F.js → chunk-UZRIKUFS.js} +2 -2
  107. package/dist/{chunk-2FSHROYK.js → chunk-V53GJUSL.js} +8 -8
  108. package/dist/{chunk-LKT755LP.js → chunk-VA4WSW54.js} +2 -2
  109. package/dist/{chunk-ZHKD4EZM.js → chunk-VCEH5UYS.js} +3 -3
  110. package/dist/{chunk-CHVU4RE5.js → chunk-VDLMAJXS.js} +3 -3
  111. package/dist/{chunk-XFTPUXCE.js → chunk-VRAD2FGO.js} +10 -10
  112. package/dist/{chunk-VF4XKTX3.js → chunk-VZ5OJE4X.js} +10 -2
  113. package/dist/chunk-VZ5OJE4X.js.map +1 -0
  114. package/dist/{chunk-UVIQHSS7.js → chunk-WUDBMLC6.js} +9 -3
  115. package/dist/chunk-WUDBMLC6.js.map +1 -0
  116. package/dist/{chunk-AWJ2FHCF.js → chunk-X47LWMKA.js} +49 -21
  117. package/dist/chunk-X47LWMKA.js.map +1 -0
  118. package/dist/{chunk-VMGMY2AI.js → chunk-XF4KOVDK.js} +8 -8
  119. package/dist/{chunk-VMGMY2AI.js.map → chunk-XF4KOVDK.js.map} +1 -1
  120. package/dist/{chunk-T7VNN3ZM.js → chunk-XVLEGMJI.js} +2 -2
  121. package/dist/{chunk-R2SJDIPO.js → chunk-YLTG6BO4.js} +9 -7
  122. package/dist/chunk-YLTG6BO4.js.map +1 -0
  123. package/dist/{chunk-QDCJNRKK.js → chunk-YXOAQAH2.js} +3 -3
  124. package/dist/{cli-BqyGVyOe.d.ts → cli-DACyuK8-.d.ts} +5 -5
  125. package/dist/cli.d.ts +8 -8
  126. package/dist/cli.js +66 -64
  127. package/dist/compounding/engine.d.ts +2 -2
  128. package/dist/compounding/engine.js +15 -13
  129. package/dist/compounding/preference-consolidator.d.ts +1 -1
  130. package/dist/compression-optimizer.d.ts +1 -1
  131. package/dist/config.d.ts +1 -1
  132. package/dist/config.js +1 -1
  133. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  134. package/dist/connectors/codex-materialize-runner.js +15 -13
  135. package/dist/connectors/codex-materialize.d.ts +1 -1
  136. package/dist/connectors/index.d.ts +1 -1
  137. package/dist/connectors/index.js +15 -13
  138. package/dist/consolidation-provenance-check.d.ts +2 -2
  139. package/dist/consolidation-provenance-check.js +6 -2
  140. package/dist/consolidation-undo.d.ts +2 -2
  141. package/dist/consolidation-undo.js +8 -1
  142. package/dist/consolidation-undo.js.map +1 -1
  143. package/dist/contradiction/index.d.ts +2 -2
  144. package/dist/conversation-index/backend.d.ts +1 -1
  145. package/dist/conversation-index/chunker.d.ts +1 -1
  146. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  147. package/dist/conversation-index/indexer.d.ts +1 -1
  148. package/dist/conversation-index/search.d.ts +1 -1
  149. package/dist/day-summary.d.ts +1 -1
  150. package/dist/delinearize.d.ts +1 -1
  151. package/dist/direct-answer-wiring.d.ts +1 -1
  152. package/dist/direct-answer.d.ts +1 -1
  153. package/dist/embedding-fallback.d.ts +1 -1
  154. package/dist/enrichment/index.d.ts +1 -1
  155. package/dist/entity-retrieval.d.ts +2 -2
  156. package/dist/entity-retrieval.js +15 -13
  157. package/dist/entity-schema.d.ts +1 -1
  158. package/dist/explicit-capture.d.ts +5 -5
  159. package/dist/extraction-faithfulness.d.ts +1 -1
  160. package/dist/extraction-faithfulness.js +3 -3
  161. package/dist/extraction-judge-telemetry.d.ts +1 -1
  162. package/dist/extraction-judge-training.d.ts +1 -1
  163. package/dist/extraction-judge.d.ts +1 -1
  164. package/dist/extraction-judge.js +3 -3
  165. package/dist/extraction.d.ts +1 -1
  166. package/dist/extraction.js +3 -3
  167. package/dist/fallback-llm.d.ts +1 -1
  168. package/dist/fallback-llm.js +2 -2
  169. package/dist/{forget-KHF7A44H.js → forget-CQCLB5LB.js} +2 -2
  170. package/dist/graph-dashboard-diff.d.ts +1 -1
  171. package/dist/graph-dashboard-key.d.ts +1 -1
  172. package/dist/graph-dashboard-parser.d.ts +1 -1
  173. package/dist/graph-edge-reinforcement.d.ts +1 -1
  174. package/dist/graph-snapshot.d.ts +1 -1
  175. package/dist/graph.d.ts +1 -1
  176. package/dist/identity-continuity.d.ts +1 -1
  177. package/dist/importance.d.ts +1 -1
  178. package/dist/importers/index.d.ts +1 -1
  179. package/dist/in-flight-reads.d.ts +19 -0
  180. package/dist/in-flight-reads.js +16 -0
  181. package/dist/in-flight-reads.js.map +1 -0
  182. package/dist/index.d.ts +13 -13
  183. package/dist/index.js +116 -114
  184. package/dist/intent.d.ts +1 -1
  185. package/dist/lcm/engine.d.ts +1 -1
  186. package/dist/lcm/engine.js +4 -4
  187. package/dist/lcm/index.d.ts +1 -1
  188. package/dist/lcm/index.js +13 -13
  189. package/dist/lcm/tools.d.ts +1 -1
  190. package/dist/lifecycle.d.ts +1 -1
  191. package/dist/live-connectors-runner.d.ts +1 -1
  192. package/dist/local-llm.d.ts +1 -1
  193. package/dist/local-model-endpoint.d.ts +1 -1
  194. package/dist/maintenance/memory-governance.d.ts +1 -1
  195. package/dist/maintenance/memory-governance.js +15 -13
  196. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +15 -13
  197. package/dist/maintenance/rebuild-memory-projection.js +16 -14
  198. package/dist/mcp-memory-inspector-app.d.ts +6 -6
  199. package/dist/memory-action-policy.d.ts +1 -1
  200. package/dist/memory-cache.d.ts +24 -13
  201. package/dist/memory-cache.js +3 -1
  202. package/dist/memory-corpus-version.d.ts +19 -0
  203. package/dist/memory-corpus-version.js +13 -0
  204. package/dist/memory-corpus-version.js.map +1 -0
  205. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  206. package/dist/memory-projection-store.d.ts +1 -1
  207. package/dist/memory-provenance.d.ts +1 -1
  208. package/dist/memory-worth-outcomes.d.ts +2 -2
  209. package/dist/models-json.d.ts +1 -1
  210. package/dist/namespaces/migrate.d.ts +3 -3
  211. package/dist/namespaces/migrate.js +22 -20
  212. package/dist/namespaces/principal.d.ts +1 -1
  213. package/dist/namespaces/search.d.ts +1 -1
  214. package/dist/namespaces/search.js +7 -7
  215. package/dist/namespaces/storage.d.ts +3 -3
  216. package/dist/namespaces/storage.js +15 -13
  217. package/dist/native-knowledge.d.ts +1 -1
  218. package/dist/operator-toolkit.d.ts +2 -2
  219. package/dist/operator-toolkit.js +27 -25
  220. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  221. package/dist/orchestration/maintenance.d.ts +2 -2
  222. package/dist/orchestration/maintenance.js +17 -15
  223. package/dist/{orchestrator-37Cx7yyw.d.ts → orchestrator-D83AvrPf.d.ts} +4 -4
  224. package/dist/orchestrator.d.ts +5 -5
  225. package/dist/orchestrator.js +92 -90
  226. package/dist/page-versioning.js +5 -1
  227. package/dist/patterns-cli.d.ts +1 -1
  228. package/dist/{pipeline-C6onljHc.d.ts → pipeline-BSqGpYl1.d.ts} +1 -1
  229. package/dist/policy-runtime.d.ts +1 -1
  230. package/dist/provenance.d.ts +1 -1
  231. package/dist/{qmd-J08G7MEm.d.ts → qmd-CutnpRVe.d.ts} +1 -1
  232. package/dist/qmd-preflight.d.ts +2 -2
  233. package/dist/qmd-recall-cache.d.ts +1 -1
  234. package/dist/qmd.d.ts +2 -2
  235. package/dist/qmd.js +2 -2
  236. package/dist/recall-disclosure-escalation.d.ts +1 -1
  237. package/dist/recall-explain-renderer.d.ts +1 -1
  238. package/dist/recall-explain-renderer.js +3 -3
  239. package/dist/recall-planner-llm.d.ts +1 -1
  240. package/dist/recall-planner-llm.js +2 -2
  241. package/dist/recall-state.d.ts +1 -1
  242. package/dist/recall-tag-filter.d.ts +1 -1
  243. package/dist/recall-timings.d.ts +1 -1
  244. package/dist/recall-xray-cli.d.ts +1 -1
  245. package/dist/recall-xray-cli.js +4 -4
  246. package/dist/recall-xray-renderer.d.ts +1 -1
  247. package/dist/recall-xray-renderer.js +3 -3
  248. package/dist/recall-xray.d.ts +1 -1
  249. package/dist/recall-xray.js +2 -2
  250. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  251. package/dist/replay/normalizers/claude.d.ts +1 -1
  252. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  253. package/dist/replay/normalizers/shared.d.ts +1 -1
  254. package/dist/replay/runner.d.ts +1 -1
  255. package/dist/replay/types.d.ts +1 -1
  256. package/dist/resolve-auth-token.d.ts +1 -1
  257. package/dist/resume-bundles.js +2 -2
  258. package/dist/retrieval-agents.d.ts +2 -2
  259. package/dist/retrieval-agents.js +2 -2
  260. package/dist/retrieval-tiers.d.ts +1 -1
  261. package/dist/routing/engine.d.ts +1 -1
  262. package/dist/routing/store.d.ts +1 -1
  263. package/dist/schemas.d.ts +52 -52
  264. package/dist/search/embed-helper.d.ts +1 -1
  265. package/dist/search/factory.d.ts +1 -1
  266. package/dist/search/factory.js +6 -6
  267. package/dist/search/index.d.ts +1 -1
  268. package/dist/search/index.js +12 -12
  269. package/dist/search/lancedb-backend.d.ts +1 -1
  270. package/dist/search/meilisearch-backend.d.ts +1 -1
  271. package/dist/search/noop-backend.d.ts +1 -1
  272. package/dist/search/orama-backend.d.ts +1 -1
  273. package/dist/search/port.d.ts +1 -1
  274. package/dist/search/remote-backend.d.ts +1 -1
  275. package/dist/{semantic-consolidation-BFtoVosl.d.ts → semantic-consolidation-btIVRC4l.d.ts} +1 -1
  276. package/dist/semantic-consolidation.d.ts +2 -2
  277. package/dist/semantic-consolidation.js +16 -14
  278. package/dist/semantic-rule-promotion.js +15 -13
  279. package/dist/semantic-rule-verifier.d.ts +5 -1
  280. package/dist/semantic-rule-verifier.js +15 -13
  281. package/dist/session-observer-bands.d.ts +1 -1
  282. package/dist/session-observer-state.d.ts +1 -1
  283. package/dist/shared-context/manager.d.ts +9 -9
  284. package/dist/signal.d.ts +1 -1
  285. package/dist/{storage-CXjwBr69.d.ts → storage-BVv_Mqa0.d.ts} +133 -3
  286. package/dist/storage.d.ts +2 -2
  287. package/dist/storage.js +14 -12
  288. package/dist/summarizer.d.ts +1 -1
  289. package/dist/summarizer.js +3 -3
  290. package/dist/summary-snapshot.d.ts +1 -1
  291. package/dist/temporal-index-compat.d.ts +1 -0
  292. package/dist/temporal-index-compat.js +16 -0
  293. package/dist/temporal-index-compat.js.map +1 -0
  294. package/dist/temporal-index.d.ts +58 -7
  295. package/dist/temporal-index.js +23 -3
  296. package/dist/temporal-supersession.d.ts +2 -2
  297. package/dist/temporal-timeline-recall.d.ts +1 -1
  298. package/dist/temporal-validity.d.ts +1 -1
  299. package/dist/threading.d.ts +1 -1
  300. package/dist/tier-migration.d.ts +2 -2
  301. package/dist/tier-routing.d.ts +1 -1
  302. package/dist/topics.d.ts +1 -1
  303. package/dist/transcript.d.ts +1 -1
  304. package/dist/transfer/capsule-import.js +6 -2
  305. package/dist/transfer/import-sqlite.js +2 -2
  306. package/dist/transfer/types.d.ts +66 -66
  307. package/dist/trust-score-stage.d.ts +1 -1
  308. package/dist/trust-score.d.ts +1 -1
  309. package/dist/{types-DpxqC8dI.d.ts → types-Cmkz7csa.d.ts} +27 -0
  310. package/dist/types.d.ts +1 -1
  311. package/dist/types.js +1 -1
  312. package/dist/utility-runtime.d.ts +1 -1
  313. package/dist/verified-recall.d.ts +4 -0
  314. package/dist/verified-recall.js +15 -13
  315. package/package.json +12 -2
  316. package/src/binary-lifecycle/pipeline.ts +22 -0
  317. package/src/cli.ts +8 -0
  318. package/src/compounding/engine.ts +9 -1
  319. package/src/config.ts +14 -0
  320. package/src/consolidation-undo.ts +8 -0
  321. package/src/curation/index.ts +9 -0
  322. package/src/in-flight-reads.ts +63 -0
  323. package/src/maintenance/memory-governance.ts +6 -0
  324. package/src/memory-cache-hot.test.ts +131 -0
  325. package/src/memory-cache.ts +146 -22
  326. package/src/memory-corpus-version.ts +45 -0
  327. package/src/namespaces/storage.ts +20 -1
  328. package/src/operator-toolkit.ts +7 -1
  329. package/src/orchestration/consolidation-run.ts +5 -5
  330. package/src/orchestration/contradiction-linking-coordinator.ts +2 -2
  331. package/src/orchestration/lifecycle-policy-coordinator.ts +2 -2
  332. package/src/orchestration/persistence-index.ts +6 -6
  333. package/src/orchestration/recall-internal.ts +6 -3
  334. package/src/orchestration/recall-search-pipeline.ts +36 -21
  335. package/src/orchestration/semantic-consolidation-coordinator.ts +2 -2
  336. package/src/orchestrator.ts +25 -5
  337. package/src/page-versioning.ts +14 -1
  338. package/src/provenance-frontmatter.test.ts +6 -0
  339. package/src/review/index.ts +16 -8
  340. package/src/semantic-rule-promotion.ts +9 -1
  341. package/src/semantic-rule-verifier.ts +19 -6
  342. package/src/spaces/index.ts +10 -0
  343. package/src/storage/memory-read-store.ts +9 -2
  344. package/src/storage-contract/cache-coherence.test.ts +242 -0
  345. package/src/storage-contract/namespace-routing.test.ts +26 -1
  346. package/src/storage.ts +513 -31
  347. package/src/temporal-index-compat.ts +311 -0
  348. package/src/temporal-index.test.ts +273 -22
  349. package/src/temporal-index.ts +427 -178
  350. package/src/transfer/capsule-cache-coherence.test.ts +107 -0
  351. package/src/transfer/capsule-import.ts +8 -0
  352. package/src/transfer/capsule-merge.ts +7 -0
  353. package/src/types.ts +27 -0
  354. package/src/verified-recall.ts +20 -6
  355. package/dist/capsule-merge-GK5E647P.js.map +0 -1
  356. package/dist/chunk-74MJH7I3.js.map +0 -1
  357. package/dist/chunk-AD2KK5MT.js.map +0 -1
  358. package/dist/chunk-AWJ2FHCF.js.map +0 -1
  359. package/dist/chunk-EJCVMPIM.js.map +0 -1
  360. package/dist/chunk-GL3SMLMZ.js.map +0 -1
  361. package/dist/chunk-HHAA35A3.js.map +0 -1
  362. package/dist/chunk-JO5AT6QT.js.map +0 -1
  363. package/dist/chunk-KTOH7EJE.js.map +0 -1
  364. package/dist/chunk-M5QKGHCR.js.map +0 -1
  365. package/dist/chunk-Q6JPMCPO.js.map +0 -1
  366. package/dist/chunk-R2SJDIPO.js.map +0 -1
  367. package/dist/chunk-TVRPRFUB.js.map +0 -1
  368. package/dist/chunk-UVIQHSS7.js.map +0 -1
  369. package/dist/chunk-VF4XKTX3.js.map +0 -1
  370. package/dist/chunk-ZUFJ7ZTR.js.map +0 -1
  371. /package/dist/{auto-sync-676N6N6Y.js.map → auto-sync-AAMTVZMK.js.map} +0 -0
  372. /package/dist/{chunk-CNWC274T.js.map → chunk-3OQ4IZJN.js.map} +0 -0
  373. /package/dist/{chunk-7XH7VJN4.js.map → chunk-5S7Z5SHA.js.map} +0 -0
  374. /package/dist/{chunk-WKE4VXSZ.js.map → chunk-673NPXE3.js.map} +0 -0
  375. /package/dist/{chunk-UHGHTOR5.js.map → chunk-7EX4YOKH.js.map} +0 -0
  376. /package/dist/{chunk-TVVEYCNW.js.map → chunk-7K5Q6COX.js.map} +0 -0
  377. /package/dist/{chunk-3F4N4WDH.js.map → chunk-AHLPZ2SF.js.map} +0 -0
  378. /package/dist/{chunk-6C35R7P4.js.map → chunk-DJCKXI4M.js.map} +0 -0
  379. /package/dist/{chunk-FYKIEOG6.js.map → chunk-FNJX2O6G.js.map} +0 -0
  380. /package/dist/{chunk-DQPPRXFO.js.map → chunk-HQ7QZJM5.js.map} +0 -0
  381. /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
  382. /package/dist/{chunk-KIPLG7S7.js.map → chunk-JKLJ6A7W.js.map} +0 -0
  383. /package/dist/{chunk-O3BZ6PFY.js.map → chunk-JZM5QUTE.js.map} +0 -0
  384. /package/dist/{chunk-SYNYI4ZM.js.map → chunk-L5HJQC36.js.map} +0 -0
  385. /package/dist/{chunk-VXMWDXIJ.js.map → chunk-LC7OODWZ.js.map} +0 -0
  386. /package/dist/{chunk-ZW6OKHVX.js.map → chunk-LQKITFGB.js.map} +0 -0
  387. /package/dist/{chunk-TZJVTH3F.js.map → chunk-MXRMNKSY.js.map} +0 -0
  388. /package/dist/{chunk-PKGWJFNR.js.map → chunk-OVMS3DCB.js.map} +0 -0
  389. /package/dist/{chunk-LRGSLV7M.js.map → chunk-PYHOAXTI.js.map} +0 -0
  390. /package/dist/{chunk-NMMKRVUF.js.map → chunk-QVALQE4P.js.map} +0 -0
  391. /package/dist/{chunk-FXGC5UUH.js.map → chunk-RT7IP3D3.js.map} +0 -0
  392. /package/dist/{chunk-AH3M6F4X.js.map → chunk-SBFDL2EQ.js.map} +0 -0
  393. /package/dist/{chunk-UYZUJ4EB.js.map → chunk-SECMZACR.js.map} +0 -0
  394. /package/dist/{chunk-HXDKC3BI.js.map → chunk-TGBJ2OMK.js.map} +0 -0
  395. /package/dist/{chunk-DE6ENYLG.js.map → chunk-TXLGHDHS.js.map} +0 -0
  396. /package/dist/{chunk-CRFTLUWT.js.map → chunk-UTDA43TB.js.map} +0 -0
  397. /package/dist/{chunk-GKCCHHZK.js.map → chunk-UXKMMNJD.js.map} +0 -0
  398. /package/dist/{chunk-57INMZ6F.js.map → chunk-UZRIKUFS.js.map} +0 -0
  399. /package/dist/{chunk-2FSHROYK.js.map → chunk-V53GJUSL.js.map} +0 -0
  400. /package/dist/{chunk-LKT755LP.js.map → chunk-VA4WSW54.js.map} +0 -0
  401. /package/dist/{chunk-ZHKD4EZM.js.map → chunk-VCEH5UYS.js.map} +0 -0
  402. /package/dist/{chunk-CHVU4RE5.js.map → chunk-VDLMAJXS.js.map} +0 -0
  403. /package/dist/{chunk-XFTPUXCE.js.map → chunk-VRAD2FGO.js.map} +0 -0
  404. /package/dist/{chunk-T7VNN3ZM.js.map → chunk-XVLEGMJI.js.map} +0 -0
  405. /package/dist/{chunk-QDCJNRKK.js.map → chunk-YXOAQAH2.js.map} +0 -0
  406. /package/dist/{forget-KHF7A44H.js.map → forget-CQCLB5LB.js.map} +0 -0
@@ -4,13 +4,13 @@ import {
4
4
  loadSyncState,
5
5
  syncWearableSource,
6
6
  wearableSourceLabel
7
- } from "./chunk-VXMWDXIJ.js";
7
+ } from "./chunk-LC7OODWZ.js";
8
8
  import {
9
9
  CompressionGuidelineCoordinator
10
10
  } from "./chunk-TRWPCR6P.js";
11
11
  import {
12
12
  MaintenanceScheduler
13
- } from "./chunk-UYZUJ4EB.js";
13
+ } from "./chunk-SECMZACR.js";
14
14
  import {
15
15
  runPeerProfileReasoner
16
16
  } from "./chunk-I74SUMNI.js";
@@ -19,25 +19,36 @@ import {
19
19
  } from "./chunk-7HYPN2GC.js";
20
20
  import {
21
21
  LcmEngine
22
- } from "./chunk-XFTPUXCE.js";
22
+ } from "./chunk-VRAD2FGO.js";
23
+ import {
24
+ chunkTranscriptEntries
25
+ } from "./chunk-TECVW3JP.js";
23
26
  import {
24
27
  cleanupConversationChunks
25
28
  } from "./chunk-RP7YXA67.js";
26
29
  import {
27
30
  CompoundingEngine,
28
31
  defaultTierMigrationCycleBudget
29
- } from "./chunk-AD2KK5MT.js";
32
+ } from "./chunk-DLWYAN6A.js";
30
33
  import {
31
34
  SharedContextManager
32
35
  } from "./chunk-5CJVLG3H.js";
33
36
  import {
34
- chunkTranscriptEntries
35
- } from "./chunk-TECVW3JP.js";
37
+ applyTrustScoreStage,
38
+ buildTrustSignalsForRerank,
39
+ projectTrustForXray
40
+ } from "./chunk-BCDKBDSY.js";
41
+ import {
42
+ renderEpistemicHedge
43
+ } from "./chunk-YN2UN7N3.js";
36
44
  import {
37
45
  applyUtilityPromotionRuntimePolicy,
38
46
  applyUtilityRankingRuntimeDelta,
39
47
  loadUtilityRuntimeValues
40
48
  } from "./chunk-LXOM6IQU.js";
49
+ import {
50
+ CODEX_THREAD_KEY_PREFIX
51
+ } from "./chunk-4EX5WZ4M.js";
41
52
  import {
42
53
  TierMigrationExecutor
43
54
  } from "./chunk-VOUOLGIP.js";
@@ -51,13 +62,8 @@ import {
51
62
  extractTopics
52
63
  } from "./chunk-UHGBNIOS.js";
53
64
  import {
54
- applyTrustScoreStage,
55
- buildTrustSignalsForRerank,
56
- projectTrustForXray
57
- } from "./chunk-BCDKBDSY.js";
58
- import {
59
- renderEpistemicHedge
60
- } from "./chunk-YN2UN7N3.js";
65
+ HourlySummarizer
66
+ } from "./chunk-JKLJ6A7W.js";
61
67
  import {
62
68
  buildTargetedFactRecallSection,
63
69
  shouldRecallTargetedFactEvidence
@@ -65,63 +71,58 @@ import {
65
71
  import {
66
72
  buildTemporalTimelineRecallSection
67
73
  } from "./chunk-I6WYQSX4.js";
68
- import {
69
- CODEX_THREAD_KEY_PREFIX
70
- } from "./chunk-4EX5WZ4M.js";
71
- import {
72
- HourlySummarizer
73
- } from "./chunk-KIPLG7S7.js";
74
74
  import {
75
75
  SessionObserverState
76
76
  } from "./chunk-FDPZVY6D.js";
77
- import {
78
- applyRuntimeRetrievalPolicy
79
- } from "./chunk-5IZL4DCV.js";
80
- import {
81
- RelevanceStore
82
- } from "./chunk-2IZAGAJR.js";
83
- import {
84
- RerankCache,
85
- rerankLocalOrNoop
86
- } from "./chunk-E3VODCC3.js";
87
- import {
88
- buildResponseGuidanceRecallSection,
89
- shouldRecallResponseGuidance
90
- } from "./chunk-6TCXIRP5.js";
91
77
  import {
92
78
  mergeWithAgentResults,
93
79
  runDirectAgent,
94
80
  runTemporalAgent,
95
81
  shouldRunAgent
96
- } from "./chunk-DE6ENYLG.js";
82
+ } from "./chunk-TXLGHDHS.js";
97
83
  import {
98
- clearIndexes,
99
- deindexMemory,
84
+ clearIndexesAsync,
85
+ deindexMemoryAsync,
100
86
  extractTagsFromPrompt,
101
- indexMemoriesBatch,
102
- indexesExist,
87
+ indexMemoriesBatchAsync,
88
+ indexesExistAsync,
103
89
  isTemporalQuery,
104
90
  queryByDateRangeAsync,
105
91
  queryByTagsAsync,
106
92
  queryTemporalTimelineAsync,
93
+ readIndexSnapshotAsync,
107
94
  recencyWindowFromPrompt,
108
95
  resolvePromptTagPrefilterAsync
109
- } from "./chunk-HHAA35A3.js";
96
+ } from "./chunk-2VN4JAX7.js";
97
+ import {
98
+ applyRuntimeRetrievalPolicy
99
+ } from "./chunk-5IZL4DCV.js";
110
100
  import {
111
101
  findUnresolvedEntityRefs
112
102
  } from "./chunk-X7XN6YU4.js";
113
103
  import {
114
- reorderRecallResultsWithMmr
115
- } from "./chunk-YDBIWGNI.js";
104
+ RelevanceStore
105
+ } from "./chunk-2IZAGAJR.js";
116
106
  import {
117
- createRecallSectionMetricRecorder
118
- } from "./chunk-JZHHREBL.js";
107
+ RerankCache,
108
+ rerankLocalOrNoop
109
+ } from "./chunk-E3VODCC3.js";
110
+ import {
111
+ buildResponseGuidanceRecallSection,
112
+ shouldRecallResponseGuidance
113
+ } from "./chunk-6TCXIRP5.js";
119
114
  import {
120
115
  LastRecallStore,
121
116
  RecallHandleHistoryStore,
122
117
  TierMigrationStatusStore,
123
118
  clampGraphRecallExpandedEntries
124
119
  } from "./chunk-E5BK6CGV.js";
120
+ import {
121
+ reorderRecallResultsWithMmr
122
+ } from "./chunk-YDBIWGNI.js";
123
+ import {
124
+ createRecallSectionMetricRecorder
125
+ } from "./chunk-JZHHREBL.js";
125
126
  import {
126
127
  applyReasoningTraceBoost
127
128
  } from "./chunk-ZZTOURJI.js";
@@ -157,14 +158,14 @@ import {
157
158
  getVerdictKind,
158
159
  judgeFactDurability,
159
160
  validateProcedureExtraction
160
- } from "./chunk-SYNYI4ZM.js";
161
+ } from "./chunk-L5HJQC36.js";
161
162
  import {
162
163
  contentMatchesRedactionRules,
163
164
  loadRedactionRules
164
165
  } from "./chunk-LTHVM4XN.js";
165
166
  import {
166
167
  ExtractionEngine
167
- } from "./chunk-FXGC5UUH.js";
168
+ } from "./chunk-RT7IP3D3.js";
168
169
  import {
169
170
  parseMemoryActionEligibilityContext
170
171
  } from "./chunk-5GSUBCZM.js";
@@ -202,44 +203,44 @@ import {
202
203
  buildEntityRecallSection,
203
204
  entityRecentTranscriptLookbackHours,
204
205
  readRecentEntityTranscriptEntries
205
- } from "./chunk-HXDKC3BI.js";
206
- import {
207
- normalizeReplaySessionKey
208
- } from "./chunk-AJVLDJU6.js";
206
+ } from "./chunk-TGBJ2OMK.js";
209
207
  import {
210
208
  RoutingRulesStore
211
209
  } from "./chunk-KQPJLK3X.js";
210
+ import {
211
+ normalizeReplaySessionKey
212
+ } from "./chunk-AJVLDJU6.js";
212
213
  import {
213
214
  compareVerifiedEpisodeResults,
214
215
  searchVerifiedEpisodes
215
- } from "./chunk-R2SJDIPO.js";
216
+ } from "./chunk-YLTG6BO4.js";
216
217
  import {
217
218
  ThreadingManager
218
219
  } from "./chunk-DBRYEIGY.js";
219
220
  import {
220
221
  compareVerifiedSemanticRuleResults,
221
222
  searchVerifiedSemanticRules
222
- } from "./chunk-TVRPRFUB.js";
223
+ } from "./chunk-EQF5763Z.js";
223
224
  import {
224
225
  searchWorkProductLedgerEntries
225
226
  } from "./chunk-ZRWB5D4H.js";
226
227
  import {
227
228
  TranscriptManager
228
229
  } from "./chunk-5EZXHU36.js";
229
- import {
230
- PolicyRuntimeManager
231
- } from "./chunk-33JBK2XP.js";
232
230
  import {
233
231
  runNamespaceMaintenanceFanout,
234
232
  summarizeNamespaceMaintenanceHealth
235
- } from "./chunk-VMGMY2AI.js";
233
+ } from "./chunk-XF4KOVDK.js";
236
234
  import {
237
235
  NamespaceCatalog,
238
236
  planNamespaceMaintenance
239
- } from "./chunk-O3BZ6PFY.js";
237
+ } from "./chunk-JZM5QUTE.js";
240
238
  import {
241
239
  NamespaceStorageRouter
242
- } from "./chunk-74MJH7I3.js";
240
+ } from "./chunk-U4KHQTJ6.js";
241
+ import {
242
+ PolicyRuntimeManager
243
+ } from "./chunk-33JBK2XP.js";
243
244
  import {
244
245
  searchHarmonicRetrieval
245
246
  } from "./chunk-AV5ZEH4M.js";
@@ -274,7 +275,7 @@ import {
274
275
  materializeAfterSemanticConsolidation,
275
276
  parseConsolidationResponse,
276
277
  parseOperatorAwareConsolidationResponse
277
- } from "./chunk-ZW6OKHVX.js";
278
+ } from "./chunk-LQKITFGB.js";
278
279
  import {
279
280
  buildRecallQueryPolicy
280
281
  } from "./chunk-LBJBNWS2.js";
@@ -323,10 +324,10 @@ import {
323
324
  createCorrectionService,
324
325
  detectPassiveCorrections,
325
326
  qmdCollectionPathParts
326
- } from "./chunk-CNWC274T.js";
327
+ } from "./chunk-3OQ4IZJN.js";
327
328
  import {
328
329
  importCapsule
329
- } from "./chunk-M5QKGHCR.js";
330
+ } from "./chunk-OC35KQIN.js";
330
331
  import {
331
332
  isCodingGraphInstalled
332
333
  } from "./chunk-VQ7B2Q6M.js";
@@ -339,11 +340,7 @@ import {
339
340
  } from "./chunk-FF4KLI5W.js";
340
341
  import {
341
342
  buildXraySnapshot
342
- } from "./chunk-DQPPRXFO.js";
343
- import {
344
- objectiveStateStoreOverrideForNamespace,
345
- searchObjectiveStateSnapshots
346
- } from "./chunk-6HMYUWXR.js";
343
+ } from "./chunk-HQ7QZJM5.js";
347
344
  import {
348
345
  combineNamespaces,
349
346
  getConfiguredNamespaces,
@@ -354,11 +351,11 @@ import {
354
351
  } from "./chunk-7PND4PUC.js";
355
352
  import {
356
353
  NamespaceSearchRouter
357
- } from "./chunk-T7VNN3ZM.js";
354
+ } from "./chunk-XVLEGMJI.js";
358
355
  import {
359
356
  createConversationIndexRuntime,
360
357
  createSearchBackend
361
- } from "./chunk-2FSHROYK.js";
358
+ } from "./chunk-V53GJUSL.js";
362
359
  import {
363
360
  NoopSearchBackend
364
361
  } from "./chunk-CYEPCZN5.js";
@@ -372,7 +369,11 @@ import {
372
369
  } from "./chunk-R5VAVVHP.js";
373
370
  import {
374
371
  parseQmdExplain
375
- } from "./chunk-3F4N4WDH.js";
372
+ } from "./chunk-AHLPZ2SF.js";
373
+ import {
374
+ objectiveStateStoreOverrideForNamespace,
375
+ searchObjectiveStateSnapshots
376
+ } from "./chunk-6HMYUWXR.js";
376
377
  import {
377
378
  ProfilingCollector
378
379
  } from "./chunk-MTWKDOVO.js";
@@ -394,7 +395,7 @@ import {
394
395
  } from "./chunk-TBBDFYXW.js";
395
396
  import {
396
397
  buildChainFollowupGenerator
397
- } from "./chunk-CRFTLUWT.js";
398
+ } from "./chunk-UTDA43TB.js";
398
399
  import {
399
400
  ContentHashIndex,
400
401
  StorageManager,
@@ -409,7 +410,10 @@ import {
409
410
  reconstructFusionInputs,
410
411
  selfDeps,
411
412
  serializeFusionDay
412
- } from "./chunk-KTOH7EJE.js";
413
+ } from "./chunk-KXLRMM35.js";
414
+ import {
415
+ buildRetiredFactTombstoneInputs
416
+ } from "./chunk-L2B3EE7B.js";
413
417
  import {
414
418
  bodyIsEscaped,
415
419
  decodeTranscriptBody,
@@ -420,9 +424,6 @@ import {
420
424
  saveSpeakerRegistry,
421
425
  speakerRegistryKey
422
426
  } from "./chunk-B3ABVQ36.js";
423
- import {
424
- buildRetiredFactTombstoneInputs
425
- } from "./chunk-L2B3EE7B.js";
426
427
  import {
427
428
  assertPathInsideRoot
428
429
  } from "./chunk-VSMRDBFT.js";
@@ -446,12 +447,7 @@ import {
446
447
  } from "./chunk-SVOZFLIQ.js";
447
448
  import {
448
449
  confidenceTier
449
- } from "./chunk-JO5AT6QT.js";
450
- import {
451
- buildQmdRecallCacheKey,
452
- getCachedQmdRecall,
453
- setCachedQmdRecall
454
- } from "./chunk-42JKGUFJ.js";
450
+ } from "./chunk-3ZVFLMFQ.js";
455
451
  import {
456
452
  inferMemoryStatus,
457
453
  isActiveMemoryStatus
@@ -464,12 +460,20 @@ import {
464
460
  applyFaithfulnessVerdict,
465
461
  createFaithfulnessCounters,
466
462
  runFaithfulnessGateBatch
467
- } from "./chunk-LKT755LP.js";
463
+ } from "./chunk-VA4WSW54.js";
464
+ import {
465
+ bumpMemoryCorpusVersionForDir
466
+ } from "./chunk-OKUEZOGW.js";
467
+ import {
468
+ buildQmdRecallCacheKey,
469
+ getCachedQmdRecall,
470
+ setCachedQmdRecall
471
+ } from "./chunk-42JKGUFJ.js";
468
472
  import {
469
473
  FallbackLlmClient,
470
474
  fallbackLlmRuntimeContextFromConfig,
471
475
  gatewayTaskChainOptions
472
- } from "./chunk-GKCCHHZK.js";
476
+ } from "./chunk-UXKMMNJD.js";
473
477
  import {
474
478
  CAPSULE_ID_PATTERN
475
479
  } from "./chunk-WEHSQBFR.js";
@@ -1041,7 +1045,7 @@ var SemanticConsolidationCoordinator = class {
1041
1045
  try {
1042
1046
  await this.deps.embeddingFallback.removeFromIndex(m.frontmatter.id);
1043
1047
  if (resolveIndexingCapabilities(this.config).queryAwareIndexing && m.path && m.frontmatter?.created) {
1044
- deindexMemory(
1048
+ await deindexMemoryAsync(
1045
1049
  targetStorage.dir,
1046
1050
  m.path,
1047
1051
  m.frontmatter.created,
@@ -1313,7 +1317,7 @@ var LifecyclePolicyCoordinator = class {
1313
1317
  );
1314
1318
  await this.deps.embeddingFallback.removeFromIndex(memory.frontmatter.id);
1315
1319
  if (resolveIndexingCapabilities(this.config).queryAwareIndexing && memory.path && memory.frontmatter?.created) {
1316
- deindexMemory(
1320
+ await deindexMemoryAsync(
1317
1321
  this.config.memoryDir,
1318
1322
  memory.path,
1319
1323
  memory.frontmatter.created,
@@ -2685,7 +2689,7 @@ var ContradictionLinkingCoordinator = class {
2685
2689
  contradiction.reason
2686
2690
  );
2687
2691
  if (resolveIndexingCapabilities(config).queryAwareIndexing && contradiction.supersededPath) {
2688
- deindexMemory(
2692
+ await deindexMemoryAsync(
2689
2693
  config.memoryDir,
2690
2694
  contradiction.supersededPath,
2691
2695
  contradiction.supersededCreated,
@@ -4033,7 +4037,7 @@ var ConsolidationRunCoordinator = class {
4033
4037
  memoryItemMutated = true;
4034
4038
  await this.deps.embeddingFallback.removeFromIndex(item.existingId);
4035
4039
  if (toInvalidate?.path && toInvalidate.frontmatter?.created) {
4036
- deindexMemory(
4040
+ await deindexMemoryAsync(
4037
4041
  config.memoryDir,
4038
4042
  toInvalidate.path,
4039
4043
  toInvalidate.frontmatter.created,
@@ -4074,7 +4078,7 @@ var ConsolidationRunCoordinator = class {
4074
4078
  merged += 1;
4075
4079
  await this.deps.embeddingFallback.removeFromIndex(item.mergeWith);
4076
4080
  if (toMergeInvalidate?.path && toMergeInvalidate.frontmatter?.created) {
4077
- deindexMemory(
4081
+ await deindexMemoryAsync(
4078
4082
  config.memoryDir,
4079
4083
  toMergeInvalidate.path,
4080
4084
  toMergeInvalidate.frontmatter.created,
@@ -4126,7 +4130,7 @@ var ConsolidationRunCoordinator = class {
4126
4130
  log.info(`cleaned ${deletedCommitments.length} expired commitments`);
4127
4131
  if (resolveIndexingCapabilities(config).queryAwareIndexing) {
4128
4132
  for (const m of deletedCommitments) {
4129
- deindexMemory(
4133
+ await deindexMemoryAsync(
4130
4134
  config.memoryDir,
4131
4135
  m.path,
4132
4136
  m.frontmatter.created,
@@ -4159,7 +4163,7 @@ var ConsolidationRunCoordinator = class {
4159
4163
  log.info(`cleaned ${deletedTTL.length} TTL-expired memories`);
4160
4164
  if (resolveIndexingCapabilities(config).queryAwareIndexing) {
4161
4165
  for (const m of deletedTTL) {
4162
- deindexMemory(
4166
+ await deindexMemoryAsync(
4163
4167
  config.memoryDir,
4164
4168
  m.path,
4165
4169
  m.frontmatter.created,
@@ -7658,7 +7662,8 @@ ${rows.join("\n")}
7658
7662
  memoryDir,
7659
7663
  query: retrievalQuery,
7660
7664
  maxResults,
7661
- boxRecallDays: this.deps.config.boxRecallDays
7665
+ boxRecallDays: this.deps.config.boxRecallDays,
7666
+ hotMemoriesCacheEnabled: this.deps.config.hotMemoriesCacheEnabled
7662
7667
  }).catch((err) => {
7663
7668
  log.debug(`verified recall directory scan failed: ${err}`);
7664
7669
  return [];
@@ -7737,7 +7742,8 @@ ${rows.join("\n")}
7737
7742
  (memoryDir) => searchVerifiedSemanticRules({
7738
7743
  memoryDir,
7739
7744
  query: retrievalQuery,
7740
- maxResults
7745
+ maxResults,
7746
+ hotMemoriesCacheEnabled: this.deps.config.hotMemoriesCacheEnabled
7741
7747
  }).catch((err) => {
7742
7748
  log.debug(`verified rules directory scan failed: ${err}`);
7743
7749
  return [];
@@ -10697,16 +10703,19 @@ var RecallSearchPipelineCoordinator = class {
10697
10703
  };
10698
10704
  }
10699
10705
  const temporalFromDate = isTemporalQuery(prompt) ? recencyWindowFromPrompt(prompt, Date.now()) : null;
10700
- const [rawTemporal, tagSignals] = await Promise.all([
10701
- temporalFromDate ? queryByDateRangeAsync(this.deps.config.memoryDir, temporalFromDate) : Promise.resolve(null),
10702
- resolvePromptTagPrefilterAsync(this.deps.config.memoryDir, prompt).catch(
10703
- () => ({
10704
- matchedTags: extractTagsFromPrompt(prompt),
10705
- expandedTags: extractTagsFromPrompt(prompt),
10706
- paths: null
10707
- })
10708
- )
10709
- ]);
10706
+ const [rawTemporal, tagSignals] = await readIndexSnapshotAsync(
10707
+ this.deps.config.memoryDir,
10708
+ () => Promise.all([
10709
+ temporalFromDate ? queryByDateRangeAsync(this.deps.config.memoryDir, temporalFromDate) : Promise.resolve(null),
10710
+ resolvePromptTagPrefilterAsync(this.deps.config.memoryDir, prompt).catch(
10711
+ () => ({
10712
+ matchedTags: extractTagsFromPrompt(prompt),
10713
+ expandedTags: extractTagsFromPrompt(prompt),
10714
+ paths: null
10715
+ })
10716
+ )
10717
+ ])
10718
+ );
10710
10719
  const temporalCandidates = this.deps.scopeQueryAwarePaths(
10711
10720
  rawTemporal,
10712
10721
  recallNamespaces
@@ -11562,10 +11571,13 @@ var RecallSearchPipelineCoordinator = class {
11562
11571
  }
11563
11572
  promptTags = extractTagsFromPrompt(prompt);
11564
11573
  }
11565
- const [rawTemporal, rawTags] = await Promise.all([
11566
- temporalFromDate !== null ? queryByDateRangeAsync(this.deps.config.memoryDir, temporalFromDate) : Promise.resolve(null),
11567
- promptTags.length > 0 ? queryByTagsAsync(this.deps.config.memoryDir, promptTags) : Promise.resolve(null)
11568
- ]);
11574
+ const [rawTemporal, rawTags] = await readIndexSnapshotAsync(
11575
+ this.deps.config.memoryDir,
11576
+ () => Promise.all([
11577
+ temporalFromDate !== null ? queryByDateRangeAsync(this.deps.config.memoryDir, temporalFromDate) : Promise.resolve(null),
11578
+ promptTags.length > 0 ? queryByTagsAsync(this.deps.config.memoryDir, promptTags) : Promise.resolve(null)
11579
+ ])
11580
+ );
11569
11581
  const queryIntent = resolveConversationContextCapabilities(this.deps.config).intentRouting && prompt ? inferIntentFromText(prompt) : null;
11570
11582
  let temporalCandidates = null;
11571
11583
  let tagCandidates = null;
@@ -13228,7 +13240,7 @@ var OrchestratorInitCoordinator = class {
13228
13240
  if (signal.aborted) return;
13229
13241
  if (!this.deps.wearablesAutoSyncHandle && this.deps.config.wearables.enabled && this.deps.config.wearables.autoSyncEnabled && Object.values(this.deps.config.wearables.sources).some((source) => source.enabled)) {
13230
13242
  try {
13231
- const { startWearablesAutoSync } = await import("./auto-sync-676N6N6Y.js");
13243
+ const { startWearablesAutoSync } = await import("./auto-sync-AAMTVZMK.js");
13232
13244
  if (signal.aborted) return;
13233
13245
  this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
13234
13246
  {
@@ -13560,7 +13572,7 @@ var PersistenceIndexCoordinator = class {
13560
13572
  const caps = resolveCapabilities(this.deps.config);
13561
13573
  if (!resolveIndexingCapabilities(this.deps.config).queryAwareIndexing && !caps.parallelRetrieval && !resolveRecallEnhancementCapabilities(this.deps.config).eventOrderRecall)
13562
13574
  return;
13563
- const needsFullRebuild = !indexesExist(this.deps.config.memoryDir);
13575
+ const needsFullRebuild = !await indexesExistAsync(this.deps.config.memoryDir);
13564
13576
  if (!needsFullRebuild && persistedIds.length === 0) return;
13565
13577
  try {
13566
13578
  const allMemories = needsFullRebuild && resolveNamespaceCapabilities(this.deps.config).namespaces ? await this.deps.readAllMemoriesForNamespaces(
@@ -13592,15 +13604,15 @@ var PersistenceIndexCoordinator = class {
13592
13604
  }
13593
13605
  }
13594
13606
  if (needsFullRebuild) {
13595
- clearIndexes(this.deps.config.memoryDir);
13607
+ await clearIndexesAsync(this.deps.config.memoryDir);
13596
13608
  if (entries.length > 0) {
13597
- indexMemoriesBatch(this.deps.config.memoryDir, entries);
13609
+ await indexMemoriesBatchAsync(this.deps.config.memoryDir, entries);
13598
13610
  }
13599
13611
  log.info(
13600
13612
  `temporal-index: bootstrapped from ${entries.length} active memories`
13601
13613
  );
13602
13614
  } else if (entries.length > 0) {
13603
- indexMemoriesBatch(this.deps.config.memoryDir, entries);
13615
+ await indexMemoriesBatchAsync(this.deps.config.memoryDir, entries);
13604
13616
  }
13605
13617
  } catch (err) {
13606
13618
  log.debug(`temporal-index update failed (non-fatal): ${err}`);
@@ -16436,6 +16448,12 @@ var Orchestrator = class {
16436
16448
  }
16437
16449
  constructor(config) {
16438
16450
  this.config = config;
16451
+ const { hotMemoriesCacheEnabled } = config;
16452
+ StorageManager.setHotMemoriesCacheDefault(
16453
+ config.memoryDir,
16454
+ hotMemoriesCacheEnabled,
16455
+ config.hotMemoriesCacheTtlMs
16456
+ );
16439
16457
  this.profiler = new ProfilingCollector({
16440
16458
  enabled: resolvePipelineProcessingCapabilities(this.config).profiling,
16441
16459
  storageDir: config.profilingStorageDir || path15.join(config.memoryDir, "profiling"),
@@ -16561,7 +16579,14 @@ var Orchestrator = class {
16561
16579
  tierMigrationStatus: this.tierMigrationStatus,
16562
16580
  getUtilityRuntimeValues: () => this.utilityRuntimeValues,
16563
16581
  getCompounding: () => this.compounding,
16564
- createColdStorage: (parentDir) => new StorageManager(parentDir)
16582
+ createColdStorage: (parentDir) => {
16583
+ StorageManager.setHotMemoriesCacheDefault(
16584
+ parentDir,
16585
+ config.hotMemoriesCacheEnabled,
16586
+ config.hotMemoriesCacheTtlMs
16587
+ );
16588
+ return new StorageManager(parentDir, config.entitySchemas, config.hotMemoriesCacheEnabled);
16589
+ }
16565
16590
  });
16566
16591
  this.compressionGuidelineCoordinator = new CompressionGuidelineCoordinator({
16567
16592
  config,
@@ -18920,6 +18945,12 @@ function emptyManifest() {
18920
18945
  import fsp4 from "fs/promises";
18921
18946
  import path19 from "path";
18922
18947
  import crypto3 from "crypto";
18948
+ function isRecallCorpusMarkdown(mdPath, memoryDir) {
18949
+ const rel = path19.relative(memoryDir, mdPath);
18950
+ if (rel.startsWith("..") || path19.isAbsolute(rel)) return false;
18951
+ const top = rel.split(path19.sep)[0];
18952
+ return RECALL_FALLBACK_DIRS.includes(top);
18953
+ }
18923
18954
  async function hashFile2(filePath) {
18924
18955
  const content = await fsp4.readFile(filePath);
18925
18956
  return crypto3.createHash("sha256").update(content).digest("hex");
@@ -19113,6 +19144,9 @@ async function stageRedirect(memoryDir, assets, log2, dryRun, readMarkdownFile,
19113
19144
  for (const update of updates) {
19114
19145
  try {
19115
19146
  await writeMarkdownFile(update.mdPath, update.content);
19147
+ if (isRecallCorpusMarkdown(update.mdPath, memoryDir)) {
19148
+ bumpMemoryCorpusVersionForDir(memoryDir);
19149
+ }
19116
19150
  } catch (err) {
19117
19151
  writeFailCount++;
19118
19152
  const msg = `redirect write failed for ${update.mdPath}: ${err instanceof Error ? err.message : String(err)}`;
@@ -20359,6 +20393,7 @@ function writeStatement(stmt, memoryDir) {
20359
20393
  ${stmt.content}
20360
20394
  `;
20361
20395
  fs3.writeFileSync(filePath, body);
20396
+ bumpMemoryCorpusVersionForDir(memoryDir);
20362
20397
  return filePath;
20363
20398
  }
20364
20399
  function generateId() {
@@ -20779,14 +20814,9 @@ function listReviewItems(options) {
20779
20814
  };
20780
20815
  }
20781
20816
  function performReview(memoryDir, itemId, action, options = {}) {
20782
- switch (action) {
20783
- case "approve":
20784
- return approveItem(memoryDir, itemId, options);
20785
- case "dismiss":
20786
- return dismissItem(memoryDir, itemId, options);
20787
- case "flag":
20788
- return flagItem(memoryDir, itemId, options);
20789
- }
20817
+ const result = action === "approve" ? approveItem(memoryDir, itemId, options) : action === "dismiss" ? dismissItem(memoryDir, itemId, options) : flagItem(memoryDir, itemId, options);
20818
+ if (result.updatedPath !== void 0) bumpMemoryCorpusVersionForDir(memoryDir);
20819
+ return result;
20790
20820
  }
20791
20821
  function approveItem(memoryDir, itemId, options) {
20792
20822
  const rootReal = realMemoryRoot(memoryDir);
@@ -21885,6 +21915,7 @@ function copyMemories(sourceDir, targetDir, options) {
21885
21915
  }
21886
21916
  fs7.writeFileSync(targetPath, content);
21887
21917
  merged++;
21918
+ bumpMemoryCorpusVersionForDir(targetRoot);
21888
21919
  }
21889
21920
  return { merged, conflicts, skipped };
21890
21921
  }
@@ -23338,4 +23369,4 @@ export {
23338
23369
  blendGraphExpandedRecallScore,
23339
23370
  Orchestrator
23340
23371
  };
23341
- //# sourceMappingURL=chunk-GL3SMLMZ.js.map
23372
+ //# sourceMappingURL=chunk-N3LWQJ6Y.js.map