@remnic/core 9.65.0 → 9.65.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (589) hide show
  1. package/dist/access-admin-ops-surface.d.ts +11 -11
  2. package/dist/access-admin-ops-surface.js +45 -43
  3. package/dist/access-authorization-probe.d.ts +12 -13
  4. package/dist/access-authorization-probe.js +46 -44
  5. package/dist/access-boundary.d.ts +12 -156
  6. package/dist/access-boundary.js +45 -43
  7. package/dist/access-cli.js +120 -116
  8. package/dist/access-cli.js.map +1 -1
  9. package/dist/access-coding-context-resolution.d.ts +1 -1
  10. package/dist/access-extraction-force-flush.d.ts +11 -11
  11. package/dist/access-extraction-force-flush.js +45 -43
  12. package/dist/access-health-types.d.ts +1 -1
  13. package/dist/access-http-lcm-compaction.d.ts +11 -11
  14. package/dist/access-http-lifecycle-flush.d.ts +12 -13
  15. package/dist/access-http-offline-stream.d.ts +11 -11
  16. package/dist/access-http-query.d.ts +2 -2
  17. package/dist/access-http-query.js +47 -45
  18. package/dist/access-http.d.ts +12 -12
  19. package/dist/access-http.js +65 -63
  20. package/dist/access-identity-continuity-surface.d.ts +9 -9
  21. package/dist/access-identity-continuity-surface.js +45 -43
  22. package/dist/access-lcm-surface.d.ts +11 -11
  23. package/dist/access-lcm-surface.js +45 -43
  24. package/dist/access-mcp-admin-tools.js +1 -1
  25. package/dist/access-mcp-output-schemas.js +1 -1
  26. package/dist/access-mcp.d.ts +11 -11
  27. package/dist/access-mcp.js +58 -54
  28. package/dist/access-memory-search-fanout.d.ts +2 -2
  29. package/dist/{access-namespace-preflight-AqlR0w02.d.ts → access-namespace-preflight-Dhvcl-T0.d.ts} +1 -1
  30. package/dist/access-namespace-preflight.d.ts +3 -3
  31. package/dist/access-namespace-preflight.js +45 -43
  32. package/dist/access-observe-write-surface.d.ts +11 -11
  33. package/dist/access-observe-write-surface.js +45 -43
  34. package/dist/access-offline-manifest.d.ts +9 -9
  35. package/dist/access-offline-manifest.js +5 -5
  36. package/dist/access-operations-batch.js +49 -47
  37. package/dist/access-operations.d.ts +18 -19
  38. package/dist/access-operations.js +52 -50
  39. package/dist/access-recall-concurrency.d.ts +11 -11
  40. package/dist/access-recall-concurrency.js +45 -43
  41. package/dist/access-recall-response.d.ts +11 -11
  42. package/dist/access-recall-response.js +45 -43
  43. package/dist/access-recall-surface.d.ts +11 -11
  44. package/dist/access-recall-surface.js +45 -43
  45. package/dist/access-schema.d.ts +118 -118
  46. package/dist/access-schema.js +3 -3
  47. package/dist/{access-service-BHmtl9BA.d.ts → access-service-Bke1alZO.d.ts} +484 -80
  48. package/dist/access-service-helpers.d.ts +11 -11
  49. package/dist/access-service.d.ts +11 -11
  50. package/dist/access-service.js +45 -43
  51. package/dist/access-surface-catalog.d.ts +12 -13
  52. package/dist/access-surface-catalog.js +49 -45
  53. package/dist/access-surface-catalog.js.map +1 -1
  54. package/dist/access-wearables-meetings-surface.d.ts +3 -3
  55. package/dist/action-confidence.d.ts +1 -1
  56. package/dist/active-memory-bridge.d.ts +1 -1
  57. package/dist/active-recall.d.ts +1 -1
  58. package/dist/active-recall.js +6 -1
  59. package/dist/active-recall.js.map +1 -1
  60. package/dist/adapters/index.js +4 -4
  61. package/dist/adapters/registry.js +2 -2
  62. package/dist/ambient-provenance.d.ts +1 -1
  63. package/dist/artifact-search.d.ts +1 -1
  64. package/dist/{auto-sync-5L7EUZ27.js → auto-sync-H64ZCNIR.js} +13 -5
  65. package/dist/{auto-sync-5L7EUZ27.js.map → auto-sync-H64ZCNIR.js.map} +1 -1
  66. package/dist/behavior-learner.d.ts +1 -1
  67. package/dist/behavior-signals.d.ts +1 -1
  68. package/dist/bootstrap.d.ts +9 -9
  69. package/dist/briefing-window.d.ts +2 -2
  70. package/dist/briefing.d.ts +2 -2
  71. package/dist/briefing.js +19 -17
  72. package/dist/buffer-surprise-report.d.ts +1 -1
  73. package/dist/buffer-turn-helpers.d.ts +1 -1
  74. package/dist/buffer.d.ts +2 -2
  75. package/dist/buffer.js +4 -4
  76. package/dist/bulk-import/index.d.ts +3 -3
  77. package/dist/calibration.d.ts +1 -1
  78. package/dist/calibration.js +1 -1
  79. package/dist/capabilities.d.ts +1 -1
  80. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
  81. package/dist/{catalog-gBoyN-IW.d.ts → catalog-DV6qnbr7.d.ts} +1 -1
  82. package/dist/causal-behavior.d.ts +1 -1
  83. package/dist/causal-behavior.js +2 -2
  84. package/dist/causal-chain.js +2 -2
  85. package/dist/causal-consolidation.d.ts +1 -1
  86. package/dist/causal-consolidation.js +22 -20
  87. package/dist/causal-consolidation.js.map +1 -1
  88. package/dist/causal-retrieval.js +2 -2
  89. package/dist/causal-trajectory-graph.d.ts +1 -1
  90. package/dist/causal-trajectory-graph.js +2 -2
  91. package/dist/causal-trajectory.js +1 -1
  92. package/dist/{chunk-A6LBDIFS.js → chunk-2E36UXVW.js} +2 -2
  93. package/dist/{chunk-RRJUMSFX.js → chunk-2XDWWPTN.js} +3 -3
  94. package/dist/{chunk-QCNB4BRE.js → chunk-2YI72KM3.js} +3 -3
  95. package/dist/{chunk-3YTTAGPB.js → chunk-3DVBKTSO.js} +2 -2
  96. package/dist/{chunk-IFK3PVM7.js → chunk-3I7ASZN3.js} +2 -2
  97. package/dist/chunk-3WU7XOFN.js +102 -0
  98. package/dist/chunk-3WU7XOFN.js.map +1 -0
  99. package/dist/{chunk-EIR5VLIH.js → chunk-4K7IW3F7.js} +2 -2
  100. package/dist/chunk-4K7IW3F7.js.map +1 -0
  101. package/dist/{chunk-HBKFYXBA.js → chunk-4KYOLI6M.js} +15 -15
  102. package/dist/chunk-573TEZCD.js +88 -0
  103. package/dist/chunk-573TEZCD.js.map +1 -0
  104. package/dist/{chunk-RNKNL5GQ.js → chunk-5NM4OH4P.js} +3 -3
  105. package/dist/{chunk-CESQ4CMC.js → chunk-5YQ63T4B.js} +2 -2
  106. package/dist/{chunk-PMVPCZJZ.js → chunk-6433HV72.js} +2 -2
  107. package/dist/{chunk-4NZHHGVL.js → chunk-7BDZTALN.js} +4 -1
  108. package/dist/chunk-7BDZTALN.js.map +1 -0
  109. package/dist/{chunk-NS5ETDYD.js → chunk-7BEPVIH3.js} +3 -3
  110. package/dist/{chunk-JG22O53B.js → chunk-7CBKAQIG.js} +2 -1
  111. package/dist/chunk-7CBKAQIG.js.map +1 -0
  112. package/dist/{chunk-SHQFYZTD.js → chunk-7YQ4IYS2.js} +2 -2
  113. package/dist/chunk-AAXJNINV.js +55 -0
  114. package/dist/chunk-AAXJNINV.js.map +1 -0
  115. package/dist/{chunk-YMOPYG3K.js → chunk-BIJAWZYW.js} +6 -6
  116. package/dist/{chunk-YQ3CBLL4.js → chunk-BWLRUMOG.js} +78 -8
  117. package/dist/chunk-BWLRUMOG.js.map +1 -0
  118. package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
  119. package/dist/{chunk-VYEPACWY.js → chunk-C24UZSFW.js} +2 -2
  120. package/dist/{chunk-ZPN7W3OP.js → chunk-CDUUDBWJ.js} +3 -3
  121. package/dist/{chunk-K7JMKLKV.js → chunk-CT56C22C.js} +4 -4
  122. package/dist/{chunk-KWIGDKM2.js → chunk-D2YNNDML.js} +2 -2
  123. package/dist/{chunk-ZFBZ4QTS.js → chunk-DJZWNKFO.js} +10 -10
  124. package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
  125. package/dist/{chunk-VNIETTMR.js → chunk-DZUJ46DO.js} +2 -2
  126. package/dist/{chunk-T6QMNVMO.js → chunk-EILZG5VC.js} +2 -2
  127. package/dist/{chunk-652S5A5D.js → chunk-EUYWQ7TS.js} +2 -2
  128. package/dist/{chunk-YIZRTHHF.js → chunk-GDFVPUJ5.js} +2 -2
  129. package/dist/{chunk-ML3U4KPR.js → chunk-GIC6BASP.js} +2 -2
  130. package/dist/{chunk-7PWWGYGO.js → chunk-GNCCUR6K.js} +2 -2
  131. package/dist/{chunk-Y5UT73VZ.js → chunk-IID2CMUU.js} +2 -2
  132. package/dist/{chunk-MB6GLPRY.js → chunk-IVKIODHO.js} +4 -4
  133. package/dist/{chunk-ZAI5R6DW.js → chunk-J275IYMG.js} +26 -17
  134. package/dist/chunk-J275IYMG.js.map +1 -0
  135. package/dist/{chunk-UYCIS6V5.js → chunk-JCWY73FK.js} +2 -2
  136. package/dist/{chunk-URS5GSM7.js → chunk-JXN77SGO.js} +1 -1
  137. package/dist/chunk-JXN77SGO.js.map +1 -0
  138. package/dist/{chunk-WHA6ISFX.js → chunk-JYYBA7TF.js} +2 -2
  139. package/dist/{chunk-T42L3S6A.js → chunk-LBWQ65SX.js} +4 -4
  140. package/dist/{chunk-MSTNSVXI.js → chunk-LDBFXD4F.js} +2 -1
  141. package/dist/chunk-LDBFXD4F.js.map +1 -0
  142. package/dist/{chunk-JXMXTV6C.js → chunk-LGO6A7GJ.js} +56 -56
  143. package/dist/{chunk-XBRGJJK7.js → chunk-LUNJ3WFO.js} +10 -8
  144. package/dist/chunk-LUNJ3WFO.js.map +1 -0
  145. package/dist/{chunk-H6B6GPVH.js → chunk-LZH5FR2W.js} +2 -2
  146. package/dist/{chunk-5HERQ5FX.js → chunk-M4AHBM72.js} +10 -10
  147. package/dist/{chunk-GOGHZVY3.js → chunk-MN4KB2A4.js} +3 -3
  148. package/dist/{chunk-OQIRBGUU.js → chunk-N37X5RU7.js} +2 -2
  149. package/dist/{chunk-E6EQTCOQ.js → chunk-NKKD4ZAU.js} +2 -2
  150. package/dist/{chunk-VANZKHTN.js → chunk-NNBZS3DY.js} +2 -2
  151. package/dist/{chunk-IWUN4RZL.js → chunk-NTWN6HB2.js} +5 -5
  152. package/dist/{chunk-2PSX5BJU.js → chunk-NZPFCP5A.js} +2 -2
  153. package/dist/{chunk-U56TGYVS.js → chunk-OCZIYAE5.js} +4 -4
  154. package/dist/{chunk-I2HTKOOP.js → chunk-ODZG724P.js} +2 -2
  155. package/dist/{chunk-LTBKKSCX.js → chunk-OLBZ2WGG.js} +2 -2
  156. package/dist/{chunk-GQ5OJVTM.js → chunk-OTHZWLUD.js} +2 -2
  157. package/dist/{chunk-PD66CVSD.js → chunk-OUKBMQ2O.js} +2 -2
  158. package/dist/{chunk-4E6IJCLC.js → chunk-PE255F4T.js} +2 -2
  159. package/dist/{chunk-GPFZFCRN.js → chunk-PP7R754B.js} +1 -1
  160. package/dist/{chunk-PHX3ET3C.js → chunk-QOS5LBZN.js} +2 -2
  161. package/dist/{chunk-G72IPMR7.js → chunk-R4OCGPSH.js} +2 -2
  162. package/dist/{chunk-VUP47UJI.js → chunk-R7JAM2XF.js} +3 -3
  163. package/dist/{chunk-LCU5R6TQ.js → chunk-RAIUTAZZ.js} +22 -3
  164. package/dist/chunk-RAIUTAZZ.js.map +1 -0
  165. package/dist/chunk-RIAM7DND.js +167 -0
  166. package/dist/chunk-RIAM7DND.js.map +1 -0
  167. package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
  168. package/dist/{chunk-P4CQCL27.js → chunk-S2DPMJXH.js} +2 -2
  169. package/dist/{chunk-YHSNAGN3.js → chunk-SB7D4BT7.js} +548 -126
  170. package/dist/chunk-SB7D4BT7.js.map +1 -0
  171. package/dist/{chunk-VRYEXPRX.js → chunk-SBDCZ2AX.js} +1 -1
  172. package/dist/chunk-SBDCZ2AX.js.map +1 -0
  173. package/dist/{chunk-OXL5QKTV.js → chunk-SIHSCCUQ.js} +1 -1
  174. package/dist/{chunk-KLPVXLQJ.js → chunk-SPUJNJJC.js} +2 -2
  175. package/dist/{chunk-CCP6LXQJ.js → chunk-SQI57UCJ.js} +2 -2
  176. package/dist/{chunk-UIYYS2YI.js → chunk-SVSRPG6M.js} +2 -2
  177. package/dist/{chunk-56BSXSHC.js → chunk-TBOJ76ER.js} +14 -1
  178. package/dist/{chunk-56BSXSHC.js.map → chunk-TBOJ76ER.js.map} +1 -1
  179. package/dist/{chunk-RQYV6M2T.js → chunk-TF77C7SV.js} +14 -7
  180. package/dist/chunk-TF77C7SV.js.map +1 -0
  181. package/dist/{chunk-RNORDDD6.js → chunk-THG4GYIE.js} +2 -2
  182. package/dist/{chunk-CUIAHZPZ.js → chunk-TR7DGXGI.js} +2 -2
  183. package/dist/{chunk-GEULB2VI.js → chunk-TZNQUNKL.js} +7 -1
  184. package/dist/chunk-TZNQUNKL.js.map +1 -0
  185. package/dist/{chunk-PDKBKBC2.js → chunk-UIN2BWDD.js} +2 -2
  186. package/dist/{chunk-4GD7YV4Y.js → chunk-UXO5IMBK.js} +3 -3
  187. package/dist/{chunk-UPIKAT5A.js → chunk-V3MXUL3D.js} +173 -77
  188. package/dist/chunk-V3MXUL3D.js.map +1 -0
  189. package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
  190. package/dist/{chunk-MUJ4QFUQ.js → chunk-W4BMEGQA.js} +4 -4
  191. package/dist/{chunk-5HK3CJAR.js → chunk-W675UJCZ.js} +2 -2
  192. package/dist/{chunk-MDVBCPOS.js → chunk-XCTXS7VY.js} +2 -2
  193. package/dist/{chunk-NTERJOFA.js → chunk-XRYZRW54.js} +2 -2
  194. package/dist/{chunk-LA2MSK23.js → chunk-Y7DK7HHJ.js} +2 -2
  195. package/dist/{chunk-34BMUGRA.js → chunk-YB42WZCY.js} +2 -2
  196. package/dist/{chunk-LWVG6U7L.js → chunk-YHCBJULX.js} +2 -2
  197. package/dist/{chunk-HDD4RRIX.js → chunk-YLDXWCZP.js} +21 -6
  198. package/dist/chunk-YLDXWCZP.js.map +1 -0
  199. package/dist/{chunk-VYISFWVX.js → chunk-YQNNHLCG.js} +2 -2
  200. package/dist/{chunk-FFPBTNLC.js → chunk-Z7PBQPJ4.js} +2 -2
  201. package/dist/{chunk-MXJU4GCA.js → chunk-ZO6AXLEH.js} +2 -2
  202. package/dist/{chunk-JNSLW2O4.js → chunk-ZQHI2BZB.js} +2 -2
  203. package/dist/{chunk-A4VJKT2H.js → chunk-ZWXJBFZU.js} +11 -11
  204. package/dist/chunk-ZWXJBFZU.js.map +1 -0
  205. package/dist/{cli-BpwTNHTm.d.ts → cli-cShQ13XG.d.ts} +5 -5
  206. package/dist/cli.d.ts +13 -13
  207. package/dist/cli.js +89 -86
  208. package/dist/coding/pre-action-gate.d.ts +1 -1
  209. package/dist/coding/pre-action-gate.js +2 -2
  210. package/dist/compounding/engine.d.ts +2 -2
  211. package/dist/compounding/engine.js +20 -18
  212. package/dist/compounding/preference-consolidator.d.ts +1 -1
  213. package/dist/compression-optimizer.d.ts +1 -1
  214. package/dist/config.d.ts +1 -1
  215. package/dist/config.js +6 -1
  216. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  217. package/dist/connectors/codex-materialize-runner.js +19 -17
  218. package/dist/connectors/codex-materialize.d.ts +1 -1
  219. package/dist/connectors/index.d.ts +1 -1
  220. package/dist/connectors/index.js +19 -17
  221. package/dist/consolidation-provenance-check.d.ts +2 -2
  222. package/dist/consolidation-undo.d.ts +2 -2
  223. package/dist/contradiction/index.d.ts +2 -2
  224. package/dist/contradiction/index.js +10 -2
  225. package/dist/converge-config.d.ts +1 -1
  226. package/dist/convergence-refresh.d.ts +2 -2
  227. package/dist/convergence-refresh.js +21 -19
  228. package/dist/conversation-index/backend.d.ts +1 -1
  229. package/dist/conversation-index/chunker.d.ts +1 -1
  230. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  231. package/dist/conversation-index/indexer.d.ts +1 -1
  232. package/dist/conversation-index/search.d.ts +1 -1
  233. package/dist/corpus-watermark.d.ts +1 -1
  234. package/dist/corpus-watermark.js +21 -19
  235. package/dist/cross-lingual-recall.d.ts +70 -0
  236. package/dist/cross-lingual-recall.js +14 -0
  237. package/dist/day-summary.d.ts +1 -1
  238. package/dist/delinearize.d.ts +1 -1
  239. package/dist/dependency-propagation-config.d.ts +1 -1
  240. package/dist/{dependency-propagation-delivery-QYJ1-c2M.d.ts → dependency-propagation-delivery-CsGg-VwS.d.ts} +1 -1
  241. package/dist/direct-answer-wiring.d.ts +1 -1
  242. package/dist/direct-answer.d.ts +1 -1
  243. package/dist/embedding-fallback.d.ts +1 -1
  244. package/dist/enrichment/index.d.ts +1 -1
  245. package/dist/entity-origin-fields.d.ts +1 -1
  246. package/dist/entity-retrieval.d.ts +2 -2
  247. package/dist/entity-retrieval.js +19 -17
  248. package/dist/entity-schema.d.ts +1 -1
  249. package/dist/episodic-context.d.ts +1 -1
  250. package/dist/explicit-capture.d.ts +9 -9
  251. package/dist/explicit-capture.js +7 -6
  252. package/dist/external-wiki-access.d.ts +12 -13
  253. package/dist/external-wiki-access.js +46 -44
  254. package/dist/external-wiki-collection-registration.d.ts +1 -1
  255. package/dist/external-wiki-collection.d.ts +1 -1
  256. package/dist/external-wiki-mcp-tools.d.ts +11 -11
  257. package/dist/extraction-error-classification.d.ts +1 -1
  258. package/dist/extraction-faithfulness.d.ts +1 -1
  259. package/dist/extraction-judge-telemetry.d.ts +1 -1
  260. package/dist/extraction-judge-training.d.ts +1 -1
  261. package/dist/extraction-judge.d.ts +1 -1
  262. package/dist/extraction-judge.js +2 -2
  263. package/dist/extraction-liveness.d.ts +1 -1
  264. package/dist/extraction-normalization.d.ts +1 -1
  265. package/dist/extraction-normalization.js +2 -2
  266. package/dist/extraction-prompt.d.ts +2 -2
  267. package/dist/extraction-prompt.js +1 -1
  268. package/dist/extraction-source-grounding-rules.d.ts +1 -1
  269. package/dist/extraction-source-grounding.d.ts +1 -1
  270. package/dist/extraction.d.ts +1 -1
  271. package/dist/extraction.js +27 -25
  272. package/dist/fallback-llm.d.ts +1 -1
  273. package/dist/graph-dashboard-diff.d.ts +1 -1
  274. package/dist/graph-dashboard-key.d.ts +1 -1
  275. package/dist/graph-dashboard-parser.d.ts +1 -1
  276. package/dist/{graph-edge-decay-A4SDFMMS.js → graph-edge-decay-FXGELBFA.js} +4 -4
  277. package/dist/graph-edge-reinforcement.d.ts +1 -1
  278. package/dist/graph-path-reconstruction.d.ts +1 -1
  279. package/dist/graph-path-scoring.d.ts +1 -1
  280. package/dist/graph-snapshot.d.ts +1 -1
  281. package/dist/graph-snapshot.js +3 -3
  282. package/dist/graph.d.ts +1 -1
  283. package/dist/graph.js +3 -3
  284. package/dist/harmonic-retrieval.js +1 -1
  285. package/dist/importance.d.ts +1 -1
  286. package/dist/importers/index.d.ts +1 -1
  287. package/dist/in-flight-reads.d.ts +1 -1
  288. package/dist/index.d.ts +718 -701
  289. package/dist/index.js +188 -139
  290. package/dist/intent.d.ts +1 -1
  291. package/dist/lcm/engine.d.ts +1 -1
  292. package/dist/lcm/engine.js +4 -4
  293. package/dist/lcm/index.d.ts +1 -1
  294. package/dist/lcm/index.js +10 -10
  295. package/dist/lcm/tools.d.ts +1 -1
  296. package/dist/lifecycle.d.ts +1 -1
  297. package/dist/live-connectors-runner.d.ts +1 -1
  298. package/dist/local-llm.d.ts +1 -1
  299. package/dist/local-llm.js +2 -2
  300. package/dist/local-model-endpoint.d.ts +1 -1
  301. package/dist/maintenance/memory-governance.d.ts +1 -1
  302. package/dist/maintenance/memory-governance.js +19 -17
  303. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
  304. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +19 -17
  305. package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
  306. package/dist/maintenance/rebuild-memory-projection.js +20 -18
  307. package/dist/{maintenance-BjEr3WKG.d.ts → maintenance-jhMpeGne.d.ts} +3 -3
  308. package/dist/mcp-memory-inspector-app.d.ts +11 -11
  309. package/dist/mcp-read-only-tools.js +1 -1
  310. package/dist/memory-action-policy.d.ts +1 -1
  311. package/dist/memory-cache.d.ts +1 -1
  312. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  313. package/dist/memory-projection-store.d.ts +1 -1
  314. package/dist/memory-provenance.d.ts +1 -1
  315. package/dist/memory-snapshot.d.ts +1 -1
  316. package/dist/memory-subject-cli.d.ts +177 -0
  317. package/dist/memory-subject-cli.js +16 -0
  318. package/dist/memory-subject-cli.js.map +1 -0
  319. package/dist/memory-subject.d.ts +128 -0
  320. package/dist/memory-subject.js +44 -0
  321. package/dist/memory-subject.js.map +1 -0
  322. package/dist/memory-worth-outcomes.d.ts +5 -4
  323. package/dist/memory-worth-outcomes.js +1 -1
  324. package/dist/models-json.d.ts +1 -1
  325. package/dist/namespaces/migrate.d.ts +3 -3
  326. package/dist/namespaces/migrate.js +20 -18
  327. package/dist/namespaces/principal.d.ts +1 -1
  328. package/dist/namespaces/search.d.ts +1 -1
  329. package/dist/namespaces/search.js +9 -9
  330. package/dist/namespaces/storage.d.ts +3 -3
  331. package/dist/namespaces/storage.js +19 -17
  332. package/dist/native-knowledge.d.ts +1 -1
  333. package/dist/offline-sync-impression-drain.d.ts +1 -1
  334. package/dist/operator-doctor-corpus.d.ts +1 -1
  335. package/dist/operator-doctor-corpus.js +22 -20
  336. package/dist/operator-doctor-replica.d.ts +1 -1
  337. package/dist/operator-toolkit.d.ts +3 -3
  338. package/dist/operator-toolkit.js +31 -28
  339. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  340. package/dist/orchestration/maintenance.d.ts +4 -4
  341. package/dist/orchestration/maintenance.js +25 -23
  342. package/dist/{orchestrator-CC4USYcD.d.ts → orchestrator-DyGUC7re.d.ts} +8 -8
  343. package/dist/orchestrator.d.ts +9 -9
  344. package/dist/orchestrator.js +120 -116
  345. package/dist/patterns-cli.d.ts +1 -1
  346. package/dist/{pipeline-DWgAgvJN.d.ts → pipeline-C25Oxtp1.d.ts} +1 -1
  347. package/dist/policy-runtime.d.ts +1 -1
  348. package/dist/proactive-contention.d.ts +1 -1
  349. package/dist/provenance.d.ts +1 -1
  350. package/dist/{public-http-CkQC8VpD.d.ts → public-http-CMe7NQzj.d.ts} +1 -1
  351. package/dist/{qmd-BJGhj4ta.d.ts → qmd-DkDVCbgF.d.ts} +1 -1
  352. package/dist/qmd-preflight.d.ts +2 -2
  353. package/dist/qmd-recall-cache.d.ts +1 -1
  354. package/dist/qmd.d.ts +2 -2
  355. package/dist/qmd.js +2 -2
  356. package/dist/recall-concurrency-config.d.ts +1 -1
  357. package/dist/recall-disclosure-escalation.d.ts +1 -1
  358. package/dist/recall-explain-renderer.d.ts +1 -1
  359. package/dist/recall-explain-renderer.js +3 -3
  360. package/dist/recall-memory-map.d.ts +1 -1
  361. package/dist/recall-planner-llm.d.ts +1 -1
  362. package/dist/recall-state.d.ts +1 -1
  363. package/dist/recall-tag-filter.d.ts +1 -1
  364. package/dist/recall-timings.d.ts +1 -1
  365. package/dist/recall-xray-cli.d.ts +1 -1
  366. package/dist/recall-xray-cli.js +4 -4
  367. package/dist/recall-xray-renderer.d.ts +1 -1
  368. package/dist/recall-xray-renderer.js +3 -3
  369. package/dist/recall-xray.d.ts +1 -1
  370. package/dist/recall-xray.js +2 -2
  371. package/dist/reconcile/cursor.d.ts +1 -1
  372. package/dist/reconcile/manifest.d.ts +1 -1
  373. package/dist/reconcile/manifest.js +3 -3
  374. package/dist/reconcile/plan.d.ts +1 -1
  375. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  376. package/dist/replay/normalizers/claude.d.ts +1 -1
  377. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  378. package/dist/replay/normalizers/shared.d.ts +1 -1
  379. package/dist/replay/runner.d.ts +1 -1
  380. package/dist/replay/types.d.ts +1 -1
  381. package/dist/replica-divergence.d.ts +1 -1
  382. package/dist/replica-peers-config.d.ts +1 -1
  383. package/dist/{resolution-DKMBPXHI.js → resolution-MFY72STR.js} +11 -3
  384. package/dist/resolution-MFY72STR.js.map +1 -0
  385. package/dist/resolve-auth-token.d.ts +1 -1
  386. package/dist/resume-bundles.js +7 -2
  387. package/dist/retrieval-agents.d.ts +2 -2
  388. package/dist/retrieval-tiers.d.ts +1 -1
  389. package/dist/routing/engine.d.ts +1 -1
  390. package/dist/routing/store.d.ts +1 -1
  391. package/dist/salvage-envelope.d.ts +1 -1
  392. package/dist/salvage-envelope.js +10 -2
  393. package/dist/schemas.d.ts +122 -108
  394. package/dist/schemas.js +1 -1
  395. package/dist/{scope-profiles-C4PdBYKc.d.ts → scope-profiles-B9xMoFO-.d.ts} +1 -1
  396. package/dist/search/embed-helper.d.ts +1 -1
  397. package/dist/search/factory.d.ts +1 -1
  398. package/dist/search/factory.js +8 -8
  399. package/dist/search/index.d.ts +1 -1
  400. package/dist/search/index.js +14 -14
  401. package/dist/search/lancedb-backend.d.ts +1 -1
  402. package/dist/search/lancedb-backend.js +2 -2
  403. package/dist/search/meilisearch-backend.d.ts +1 -1
  404. package/dist/search/meilisearch-backend.js +2 -2
  405. package/dist/search/noop-backend.d.ts +1 -1
  406. package/dist/search/orama-backend.d.ts +1 -1
  407. package/dist/search/orama-backend.js +2 -2
  408. package/dist/search/port.d.ts +2 -2
  409. package/dist/search/port.js +1 -1
  410. package/dist/search/remote-backend.d.ts +1 -1
  411. package/dist/search/remote-backend.js +2 -2
  412. package/dist/{semantic-consolidation-5-HOmIhL.d.ts → semantic-consolidation-C4uykW84.d.ts} +1 -1
  413. package/dist/semantic-consolidation.d.ts +2 -2
  414. package/dist/semantic-consolidation.js +20 -18
  415. package/dist/semantic-rule-promotion.js +19 -17
  416. package/dist/semantic-rule-verifier.d.ts +1 -1
  417. package/dist/semantic-rule-verifier.js +19 -17
  418. package/dist/{service-8pDy6w8u.d.ts → service-DCZDZNcV.d.ts} +2 -2
  419. package/dist/session-observer-bands.d.ts +1 -1
  420. package/dist/session-observer-state.d.ts +1 -1
  421. package/dist/shared-context/manager.d.ts +11 -11
  422. package/dist/signal.d.ts +1 -1
  423. package/dist/source-agent-qualifier.d.ts +1 -1
  424. package/dist/source-agent-qualifier.js +21 -19
  425. package/dist/{storage-VpDzURiA.d.ts → storage-CcKmEjL8.d.ts} +3 -2
  426. package/dist/storage.d.ts +2 -2
  427. package/dist/storage.js +21 -19
  428. package/dist/subject-config.d.ts +38 -0
  429. package/dist/subject-config.js +20 -0
  430. package/dist/subject-config.js.map +1 -0
  431. package/dist/summarizer.d.ts +1 -1
  432. package/dist/summarizer.js +3 -3
  433. package/dist/summary-snapshot.d.ts +1 -1
  434. package/dist/support-passport/index.d.ts +14 -14
  435. package/dist/support-passport/index.js +48 -46
  436. package/dist/temporal-supersession.d.ts +2 -2
  437. package/dist/temporal-timeline-recall.d.ts +1 -1
  438. package/dist/temporal-validity.d.ts +1 -1
  439. package/dist/threading.d.ts +1 -1
  440. package/dist/tier-migration.d.ts +2 -2
  441. package/dist/tier-routing.d.ts +1 -1
  442. package/dist/topics.d.ts +1 -1
  443. package/dist/transcript.d.ts +1 -1
  444. package/dist/transfer/backup.js +2 -2
  445. package/dist/transfer/capsule-export.js +2 -2
  446. package/dist/transfer/capsule-import.js +2 -2
  447. package/dist/transfer/types.d.ts +66 -66
  448. package/dist/trust-score-stage.d.ts +1 -1
  449. package/dist/trust-score.d.ts +1 -1
  450. package/dist/{types-D9gKdB79.d.ts → types-Pi0lfaEt.d.ts} +40 -29
  451. package/dist/types.d.ts +1 -1
  452. package/dist/types.js +1 -1
  453. package/dist/utility-runtime.d.ts +1 -1
  454. package/dist/verified-recall.js +19 -17
  455. package/dist/who-knows-cli.d.ts +11 -11
  456. package/dist/who-knows-cli.js +20 -18
  457. package/dist/who-knows.d.ts +11 -11
  458. package/dist/who-knows.js +19 -17
  459. package/dist/write-envelope.d.ts +5 -2
  460. package/dist/write-envelope.js +10 -1
  461. package/package.json +2 -2
  462. package/scripts/build-with-heap.mjs +1 -1
  463. package/src/access-boundary.ts +2 -0
  464. package/src/access-mcp-admin-tools.ts +14 -0
  465. package/src/access-mcp-output-schemas.ts +6 -0
  466. package/src/access-mcp.ts +6 -6
  467. package/src/access-operations-batch.ts +8 -0
  468. package/src/access-service.ts +85 -0
  469. package/src/access-surface-catalog.ts +2 -0
  470. package/src/config.ts +10 -17
  471. package/src/cross-lingual-recall.test.ts +47 -0
  472. package/src/cross-lingual-recall.ts +186 -0
  473. package/src/extraction-prompt.ts +1 -0
  474. package/src/extraction.ts +4 -1
  475. package/src/index.ts +5 -6
  476. package/src/mcp-read-only-tools.ts +1 -0
  477. package/src/memory-subject-cli.ts +135 -0
  478. package/src/memory-subject.test.ts +48 -0
  479. package/src/memory-subject.ts +314 -0
  480. package/src/memory-worth-outcomes.test.ts +6 -2
  481. package/src/memory-worth-outcomes.ts +11 -7
  482. package/src/operator-toolkit.ts +1 -1
  483. package/src/orchestration/extraction-persist.ts +48 -48
  484. package/src/orchestration/recall-internal-deps.ts +2 -0
  485. package/src/orchestration/recall-internal.ts +41 -38
  486. package/src/orchestration/recall-search-pipeline.ts +16 -0
  487. package/src/procedural/library-maintenance.test.ts +582 -0
  488. package/src/procedural/library-maintenance.ts +546 -0
  489. package/src/procedural/maintenance-config.ts +78 -0
  490. package/src/procedural/procedure-recall.ts +29 -1
  491. package/src/procedural/procedure-stats.ts +20 -0
  492. package/src/schemas.ts +7 -0
  493. package/src/search/port.ts +2 -1
  494. package/src/spaces/index.ts +38 -2
  495. package/src/storage.ts +11 -3
  496. package/src/subject-config.ts +80 -0
  497. package/src/types.ts +28 -29
  498. package/src/write-envelope.test.ts +14 -0
  499. package/src/write-envelope.ts +24 -3
  500. package/dist/chunk-4NZHHGVL.js.map +0 -1
  501. package/dist/chunk-A4VJKT2H.js.map +0 -1
  502. package/dist/chunk-EIR5VLIH.js.map +0 -1
  503. package/dist/chunk-GEULB2VI.js.map +0 -1
  504. package/dist/chunk-HDD4RRIX.js.map +0 -1
  505. package/dist/chunk-JG22O53B.js.map +0 -1
  506. package/dist/chunk-LCU5R6TQ.js.map +0 -1
  507. package/dist/chunk-MSTNSVXI.js.map +0 -1
  508. package/dist/chunk-RQYV6M2T.js.map +0 -1
  509. package/dist/chunk-UPIKAT5A.js.map +0 -1
  510. package/dist/chunk-URS5GSM7.js.map +0 -1
  511. package/dist/chunk-VRYEXPRX.js.map +0 -1
  512. package/dist/chunk-XBRGJJK7.js.map +0 -1
  513. package/dist/chunk-YHSNAGN3.js.map +0 -1
  514. package/dist/chunk-YQ3CBLL4.js.map +0 -1
  515. package/dist/chunk-ZAI5R6DW.js.map +0 -1
  516. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
  517. /package/dist/{chunk-A6LBDIFS.js.map → chunk-2E36UXVW.js.map} +0 -0
  518. /package/dist/{chunk-RRJUMSFX.js.map → chunk-2XDWWPTN.js.map} +0 -0
  519. /package/dist/{chunk-QCNB4BRE.js.map → chunk-2YI72KM3.js.map} +0 -0
  520. /package/dist/{chunk-3YTTAGPB.js.map → chunk-3DVBKTSO.js.map} +0 -0
  521. /package/dist/{chunk-IFK3PVM7.js.map → chunk-3I7ASZN3.js.map} +0 -0
  522. /package/dist/{chunk-HBKFYXBA.js.map → chunk-4KYOLI6M.js.map} +0 -0
  523. /package/dist/{chunk-RNKNL5GQ.js.map → chunk-5NM4OH4P.js.map} +0 -0
  524. /package/dist/{chunk-CESQ4CMC.js.map → chunk-5YQ63T4B.js.map} +0 -0
  525. /package/dist/{chunk-PMVPCZJZ.js.map → chunk-6433HV72.js.map} +0 -0
  526. /package/dist/{chunk-NS5ETDYD.js.map → chunk-7BEPVIH3.js.map} +0 -0
  527. /package/dist/{chunk-SHQFYZTD.js.map → chunk-7YQ4IYS2.js.map} +0 -0
  528. /package/dist/{chunk-YMOPYG3K.js.map → chunk-BIJAWZYW.js.map} +0 -0
  529. /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
  530. /package/dist/{chunk-VYEPACWY.js.map → chunk-C24UZSFW.js.map} +0 -0
  531. /package/dist/{chunk-ZPN7W3OP.js.map → chunk-CDUUDBWJ.js.map} +0 -0
  532. /package/dist/{chunk-K7JMKLKV.js.map → chunk-CT56C22C.js.map} +0 -0
  533. /package/dist/{chunk-KWIGDKM2.js.map → chunk-D2YNNDML.js.map} +0 -0
  534. /package/dist/{chunk-ZFBZ4QTS.js.map → chunk-DJZWNKFO.js.map} +0 -0
  535. /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
  536. /package/dist/{chunk-VNIETTMR.js.map → chunk-DZUJ46DO.js.map} +0 -0
  537. /package/dist/{chunk-T6QMNVMO.js.map → chunk-EILZG5VC.js.map} +0 -0
  538. /package/dist/{chunk-652S5A5D.js.map → chunk-EUYWQ7TS.js.map} +0 -0
  539. /package/dist/{chunk-YIZRTHHF.js.map → chunk-GDFVPUJ5.js.map} +0 -0
  540. /package/dist/{chunk-ML3U4KPR.js.map → chunk-GIC6BASP.js.map} +0 -0
  541. /package/dist/{chunk-7PWWGYGO.js.map → chunk-GNCCUR6K.js.map} +0 -0
  542. /package/dist/{chunk-Y5UT73VZ.js.map → chunk-IID2CMUU.js.map} +0 -0
  543. /package/dist/{chunk-MB6GLPRY.js.map → chunk-IVKIODHO.js.map} +0 -0
  544. /package/dist/{chunk-UYCIS6V5.js.map → chunk-JCWY73FK.js.map} +0 -0
  545. /package/dist/{chunk-WHA6ISFX.js.map → chunk-JYYBA7TF.js.map} +0 -0
  546. /package/dist/{chunk-T42L3S6A.js.map → chunk-LBWQ65SX.js.map} +0 -0
  547. /package/dist/{chunk-JXMXTV6C.js.map → chunk-LGO6A7GJ.js.map} +0 -0
  548. /package/dist/{chunk-H6B6GPVH.js.map → chunk-LZH5FR2W.js.map} +0 -0
  549. /package/dist/{chunk-5HERQ5FX.js.map → chunk-M4AHBM72.js.map} +0 -0
  550. /package/dist/{chunk-GOGHZVY3.js.map → chunk-MN4KB2A4.js.map} +0 -0
  551. /package/dist/{chunk-OQIRBGUU.js.map → chunk-N37X5RU7.js.map} +0 -0
  552. /package/dist/{chunk-E6EQTCOQ.js.map → chunk-NKKD4ZAU.js.map} +0 -0
  553. /package/dist/{chunk-VANZKHTN.js.map → chunk-NNBZS3DY.js.map} +0 -0
  554. /package/dist/{chunk-IWUN4RZL.js.map → chunk-NTWN6HB2.js.map} +0 -0
  555. /package/dist/{chunk-2PSX5BJU.js.map → chunk-NZPFCP5A.js.map} +0 -0
  556. /package/dist/{chunk-U56TGYVS.js.map → chunk-OCZIYAE5.js.map} +0 -0
  557. /package/dist/{chunk-I2HTKOOP.js.map → chunk-ODZG724P.js.map} +0 -0
  558. /package/dist/{chunk-LTBKKSCX.js.map → chunk-OLBZ2WGG.js.map} +0 -0
  559. /package/dist/{chunk-GQ5OJVTM.js.map → chunk-OTHZWLUD.js.map} +0 -0
  560. /package/dist/{chunk-PD66CVSD.js.map → chunk-OUKBMQ2O.js.map} +0 -0
  561. /package/dist/{chunk-4E6IJCLC.js.map → chunk-PE255F4T.js.map} +0 -0
  562. /package/dist/{chunk-GPFZFCRN.js.map → chunk-PP7R754B.js.map} +0 -0
  563. /package/dist/{chunk-PHX3ET3C.js.map → chunk-QOS5LBZN.js.map} +0 -0
  564. /package/dist/{chunk-G72IPMR7.js.map → chunk-R4OCGPSH.js.map} +0 -0
  565. /package/dist/{chunk-VUP47UJI.js.map → chunk-R7JAM2XF.js.map} +0 -0
  566. /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
  567. /package/dist/{chunk-P4CQCL27.js.map → chunk-S2DPMJXH.js.map} +0 -0
  568. /package/dist/{chunk-OXL5QKTV.js.map → chunk-SIHSCCUQ.js.map} +0 -0
  569. /package/dist/{chunk-KLPVXLQJ.js.map → chunk-SPUJNJJC.js.map} +0 -0
  570. /package/dist/{chunk-CCP6LXQJ.js.map → chunk-SQI57UCJ.js.map} +0 -0
  571. /package/dist/{chunk-UIYYS2YI.js.map → chunk-SVSRPG6M.js.map} +0 -0
  572. /package/dist/{chunk-RNORDDD6.js.map → chunk-THG4GYIE.js.map} +0 -0
  573. /package/dist/{chunk-CUIAHZPZ.js.map → chunk-TR7DGXGI.js.map} +0 -0
  574. /package/dist/{chunk-PDKBKBC2.js.map → chunk-UIN2BWDD.js.map} +0 -0
  575. /package/dist/{chunk-4GD7YV4Y.js.map → chunk-UXO5IMBK.js.map} +0 -0
  576. /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
  577. /package/dist/{chunk-MUJ4QFUQ.js.map → chunk-W4BMEGQA.js.map} +0 -0
  578. /package/dist/{chunk-5HK3CJAR.js.map → chunk-W675UJCZ.js.map} +0 -0
  579. /package/dist/{chunk-MDVBCPOS.js.map → chunk-XCTXS7VY.js.map} +0 -0
  580. /package/dist/{chunk-NTERJOFA.js.map → chunk-XRYZRW54.js.map} +0 -0
  581. /package/dist/{chunk-LA2MSK23.js.map → chunk-Y7DK7HHJ.js.map} +0 -0
  582. /package/dist/{chunk-34BMUGRA.js.map → chunk-YB42WZCY.js.map} +0 -0
  583. /package/dist/{chunk-LWVG6U7L.js.map → chunk-YHCBJULX.js.map} +0 -0
  584. /package/dist/{chunk-VYISFWVX.js.map → chunk-YQNNHLCG.js.map} +0 -0
  585. /package/dist/{chunk-FFPBTNLC.js.map → chunk-Z7PBQPJ4.js.map} +0 -0
  586. /package/dist/{chunk-MXJU4GCA.js.map → chunk-ZO6AXLEH.js.map} +0 -0
  587. /package/dist/{chunk-JNSLW2O4.js.map → chunk-ZQHI2BZB.js.map} +0 -0
  588. /package/dist/{graph-edge-decay-A4SDFMMS.js.map → cross-lingual-recall.js.map} +0 -0
  589. /package/dist/{resolution-DKMBPXHI.js.map → graph-edge-decay-FXGELBFA.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  composeMemoryEnvelope
3
- } from "./chunk-LCU5R6TQ.js";
3
+ } from "./chunk-RAIUTAZZ.js";
4
4
  import {
5
5
  log
6
6
  } from "./chunk-3WCASNQZ.js";
@@ -17,4 +17,4 @@ function composeSalvagedEnvelope(label, input, ctx) {
17
17
  export {
18
18
  composeSalvagedEnvelope
19
19
  };
20
- //# sourceMappingURL=chunk-UYCIS6V5.js.map
20
+ //# sourceMappingURL=chunk-JCWY73FK.js.map
@@ -16,4 +16,4 @@ export {
16
16
  reportSearchDegradation,
17
17
  resolveEnsureCollectionArgs
18
18
  };
19
- //# sourceMappingURL=chunk-URS5GSM7.js.map
19
+ //# sourceMappingURL=chunk-JXN77SGO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/search/port.ts"],"sourcesContent":["import type { QmdSearchResult } from \"../types.js\";\n\n/** Alias so consumers don't need to reference \"Qmd\" in a backend-agnostic context. */\nexport type SearchResult = QmdSearchResult;\n\nexport interface SearchQueryOptions {\n intent?: string;\n explain?: boolean;\n candidateLimit?: number;\n rerank?: boolean;\n chunkStrategy?: \"auto\" | \"regex\";\n structuredSearches?: Array<{ type: \"lex\" | \"vec\" | \"hyde\"; query: string }>;\n}\n\n/**\n * A search that returned empty (or partial) results because the backend was\n * unavailable, still loading, or timed out — cases that are otherwise\n * indistinguishable from a genuine \"no matches\" (issue #1536, CLAUDE.md\n * rule 34).\n */\nexport interface SearchDegradation {\n backend: \"qmd\" | \"remote\" | \"meilisearch\" | \"orama\" | \"lancedb\";\n code:\n | \"backend_unavailable\"\n | \"backend_error\"\n | \"daemon_timeout\"\n | \"daemon_loading\"\n | \"subprocess_error\"\n | \"deadline_exceeded\"\n | \"remote_error\"\n | \"vector_tier_unavailable\";\n detail?: string;\n}\n\nexport interface SearchExecutionOptions {\n signal?: AbortSignal;\n /**\n * Observer invoked when the backend degrades during this call (#1536).\n * Callers that need to distinguish empty-because-degraded from\n * empty-because-no-matches (recall x-ray, fallback decisions) pass a\n * collector here. Observer failures are swallowed by the notifier —\n * observability must never break search.\n */\n onDegradation?: (degradation: SearchDegradation) => void;\n}\n\nexport function reportSearchDegradation(\n execution: SearchExecutionOptions | undefined,\n degradation: SearchDegradation\n): void {\n try {\n execution?.onDegradation?.(degradation);\n } catch {\n // Observability must never break search.\n }\n}\n\nexport function resolveEnsureCollectionArgs(\n collectionOrExecution?: string | SearchExecutionOptions,\n execution?: SearchExecutionOptions\n): { collection?: string; execution?: SearchExecutionOptions } {\n if (typeof collectionOrExecution === \"string\") {\n return { collection: collectionOrExecution, execution };\n }\n return { collection: undefined, execution: collectionOrExecution ?? execution };\n}\n\n/**\n * Optional status report for search backends that track embedding backlog.\n * Backends without embedding pipelines return null from status().\n */\nexport interface SearchBackendStatus {\n pendingEmbeddings: number | null;\n oldestPendingAgeMs: number | null;\n totalFiles: number | null;\n embeddedFiles: number | null;\n}\n\n/**\n * Abstract search backend interface.\n *\n * Implementations:\n * - QmdClient (default, local hybrid BM25+vector+reranking)\n * - OramaBackend (embedded, pure JS, hybrid FTS+vector)\n * - LanceDbBackend (embedded, native Arrow bindings, RRF reranking)\n * - MeilisearchBackend (server-based SDK, hybrid search)\n * - RemoteSearchBackend (HTTP REST adapter)\n * - NoopSearchBackend (graceful degradation)\n *\n * See docs/writing-a-search-backend.md for the implementation guide.\n */\nexport interface SearchBackend {\n // ── Lifecycle ──\n probe(): Promise<boolean>;\n /**\n * Optional non-mutating availability probe for health/readiness checks.\n * Implementations must avoid auto-upgrades, collection creation, daemon\n * startup, or any other runtime-modifying side effects.\n */\n checkAvailability?(execution?: SearchExecutionOptions): Promise<boolean>;\n isAvailable(): boolean;\n debugStatus(): string;\n /** Optional embedding backlog status for health surfaces. */\n status?(): Promise<SearchBackendStatus>;\n\n // ── Search ──\n search(\n query: string,\n collection?: string,\n maxResults?: number,\n options?: SearchQueryOptions,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n searchGlobal(query: string, maxResults?: number, execution?: SearchExecutionOptions): Promise<SearchResult[]>;\n bm25Search(\n query: string,\n collection?: string,\n maxResults?: number,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n vectorSearch(\n query: string,\n collection?: string,\n maxResults?: number,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n hybridSearch(\n query: string,\n collection?: string,\n maxResults?: number,\n execution?: SearchExecutionOptions\n ): Promise<SearchResult[]>;\n\n // ── Maintenance ──\n update(execution?: SearchExecutionOptions): Promise<void>;\n /**\n * Wall-clock ms of the most recent SUCCESSFUL index refresh, or null when the\n * backend has never run one. Ordinary update() is fail-open: it returns\n * silently (without throwing or advancing this timestamp) when the backend is\n * unavailable or the call is suppressed by a min-interval / failure backoff.\n * Callers that must know whether update() actually indexed — so they can\n * invalidate dependent caches only on a real refresh — snapshot this before\n * the call and treat the backend as refreshed iff the value advanced. Optional\n * because not every backend tracks it; absent means \"assume refreshed\".\n */\n readonly lastUpdateRanAtMs?: number | null;\n /**\n * Optional strict refresh used by callers that must know whether the backend\n * was actually refreshed before writing success markers. Ordinary update\n * calls remain fail-open for migration/maintenance resilience.\n */\n updateStrict?(execution?: SearchExecutionOptions): Promise<void>;\n updateCollection(collection: string, execution?: SearchExecutionOptions): Promise<void>;\n updateCollectionFromDir?(collection: string, memoryDir: string, execution?: SearchExecutionOptions): Promise<void>;\n /**\n * True when update() refreshes every indexed collection, not just this\n * backend's configured collection. Namespace routers use this to avoid\n * repeating the same expensive global update once per namespace.\n */\n updatesAllCollections?(): boolean;\n /**\n * Optional strict refresh used by callers that must know whether a collection\n * was actually refreshed before writing success markers. Ordinary update\n * calls remain fail-open for migration/maintenance resilience.\n */\n updateCollectionStrict?(collection: string, execution?: SearchExecutionOptions): Promise<void>;\n embed(): Promise<void>;\n /**\n * Optional strict embed used by callers that must know vectors were actually\n * refreshed before writing success markers.\n */\n embedStrict?(): Promise<void>;\n embedCollection(collection: string): Promise<void>;\n /**\n * Optional strict collection embed used by callers that must know vectors were\n * actually refreshed before writing success markers.\n */\n embedCollectionStrict?(collection: string): Promise<void>;\n\n // ── Collection management ──\n /**\n * True only when the backend can bind, isolate, search, and delete collections\n * outside Remnic's primary memory roots.\n */\n supportsAdditionalCollections?(): boolean;\n /**\n * Prevent a collection from participating in unscoped/global searches.\n * Dedicated corpora must call this immediately after collection creation.\n */\n excludeCollectionFromGlobalSearch?(collection: string, execution?: SearchExecutionOptions): Promise<void>;\n /** Remove a non-primary collection and its backend-owned index state. */\n deleteCollection?(collection: string, execution?: SearchExecutionOptions): Promise<boolean>;\n /** Canonical source root currently bound to a named collection. */\n collectionRoot?(collection: string, execution?: SearchExecutionOptions): Promise<string | null>;\n /** Collection-scoped status for observability surfaces. */\n collectionStatus?(collection: string): Promise<Pick<SearchBackendStatus, \"totalFiles\">>;\n /**\n * Optional non-mutating collection probe. Backends that can distinguish a\n * missing collection from a transient probe failure should implement this so\n * callers can avoid auto-creating collections in unsafe layouts.\n */\n checkCollection?(\n collectionOrExecution?: string | SearchExecutionOptions,\n execution?: SearchExecutionOptions\n ): Promise<\"present\" | \"missing\" | \"unknown\" | \"skipped\">;\n ensureCollection(\n memoryDir: string,\n execution?: SearchExecutionOptions\n ): Promise<\"present\" | \"missing\" | \"unknown\" | \"skipped\">;\n ensureCollection(\n memoryDir: string,\n collection?: string,\n execution?: SearchExecutionOptions\n ): Promise<\"present\" | \"missing\" | \"unknown\" | \"skipped\">;\n}\n"],"mappings":";AA8CO,SAAS,wBACd,WACA,aACM;AACN,MAAI;AACF,eAAW,gBAAgB,WAAW;AAAA,EACxC,QAAQ;AAAA,EAER;AACF;AAEO,SAAS,4BACd,uBACA,WAC6D;AAC7D,MAAI,OAAO,0BAA0B,UAAU;AAC7C,WAAO,EAAE,YAAY,uBAAuB,UAAU;AAAA,EACxD;AACA,SAAO,EAAE,YAAY,QAAW,WAAW,yBAAyB,UAAU;AAChF;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-ZAI5R6DW.js";
3
+ } from "./chunk-J275IYMG.js";
4
4
  import {
5
5
  bumpMemoryCorpusVersionForDir
6
6
  } from "./chunk-XCB6QDL6.js";
@@ -765,4 +765,4 @@ export {
765
765
  listMemoryGovernanceRuns,
766
766
  readMemoryGovernanceRunArtifact
767
767
  };
768
- //# sourceMappingURL=chunk-WHA6ISFX.js.map
768
+ //# sourceMappingURL=chunk-JYYBA7TF.js.map
@@ -10,6 +10,9 @@ import {
10
10
  import {
11
11
  inferMemoryStatus
12
12
  } from "./chunk-7RJUVTVF.js";
13
+ import {
14
+ storedContentIdentityCandidates
15
+ } from "./chunk-JDSVLVCG.js";
13
16
  import {
14
17
  ContentHashIndex
15
18
  } from "./chunk-JOEJG4SD.js";
@@ -17,9 +20,6 @@ import {
17
20
  computeLegacyContentHash,
18
21
  normalizeLegacyContent
19
22
  } from "./chunk-5FVVY2EB.js";
20
- import {
21
- storedContentIdentityCandidates
22
- } from "./chunk-JDSVLVCG.js";
23
23
  import {
24
24
  RECALL_FALLBACK_DIRS
25
25
  } from "./chunk-VS2IYZRU.js";
@@ -293,4 +293,4 @@ export {
293
293
  buildReconcileManifest,
294
294
  collapseActiveFactDuplicates
295
295
  };
296
- //# sourceMappingURL=chunk-T42L3S6A.js.map
296
+ //# sourceMappingURL=chunk-LBWQ65SX.js.map
@@ -5,6 +5,7 @@ var MCP_READ_ONLY_TOOL_SUFFIXES = {
5
5
  recall_tier_explain: true,
6
6
  recall_xray: true,
7
7
  who_knows: true,
8
+ promotion_candidates: true,
8
9
  briefing: true,
9
10
  wearables_status: true,
10
11
  transcript_day: true,
@@ -58,4 +59,4 @@ var MCP_READ_ONLY_TOOL_SUFFIXES = {
58
59
  export {
59
60
  MCP_READ_ONLY_TOOL_SUFFIXES
60
61
  };
61
- //# sourceMappingURL=chunk-MSTNSVXI.js.map
62
+ //# sourceMappingURL=chunk-LDBFXD4F.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/mcp-read-only-tools.ts"],"sourcesContent":["/**\n * Conservative allowlist of canonical MCP tool suffixes that are\n * unambiguously read-only. Tools in this set are tagged with\n * `annotations: { readOnlyHint: true }` so ChatGPT (and other MCP\n * clients that honor the hint) can skip per-call confirmation.\n *\n * The list is suffix-based so it covers both the `remnic.*` and\n * `engram.*` naming forms. Anything not on it stays unannotated:\n * uncertainty is resolved as \"might mutate\".\n *\n * Excluded by construction: anything that writes, runs a pipeline,\n * flushes, applies, records, imports, or destructively deletes.\n */\nexport const MCP_READ_ONLY_TOOL_SUFFIXES: Readonly<Record<string, true>> = {\n recall: true,\n recall_explain: true,\n recall_tier_explain: true,\n recall_xray: true,\n who_knows: true,\n promotion_candidates: true,\n briefing: true,\n wearables_status: true,\n transcript_day: true,\n transcript_search: true,\n transcript_memories: true,\n meetings_list: true,\n meetings_get: true,\n action_confidence: true,\n capsule_list: true,\n procedural_stats: true,\n memory_get: true,\n memory_timeline: true,\n entity_get: true,\n review_queue_list: true,\n lcm_search: true,\n continuity_incident_list: true,\n identity_anchor_get: true,\n memory_identity: true,\n memory_search: true,\n external_wiki_search: true,\n memory_profile: true,\n memory_entities_list: true,\n memory_questions: true,\n memory_last_recall: true,\n memory_intent_debug: true,\n memory_qmd_debug: true,\n memory_graph_explain: true,\n graph_snapshot: true,\n review_list: true,\n profiling_report: true,\n peer_list: true,\n peer_get: true,\n peer_profile_get: true,\n console_state: true,\n dreams_status: true,\n codegraph_list_projects: true,\n codegraph_index_status: true,\n codegraph_search_graph: true,\n codegraph_trace_path: true,\n codegraph_detect_changes: true,\n codegraph_query_graph: true,\n codegraph_get_schema: true,\n codegraph_get_snippet: true,\n codegraph_get_architecture: true,\n codegraph_search_code: true,\n support_passport_memory_preview: true,\n support_passport_cards_list: true,\n support_passport_grants_list: true,\n};\n"],"mappings":";AAaO,IAAM,8BAA8D;AAAA,EACzE,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,aAAa;AAAA,EACb,WAAW;AAAA,EACX,sBAAsB;AAAA,EACtB,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,mBAAmB;AAAA,EACnB,qBAAqB;AAAA,EACrB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,mBAAmB;AAAA,EACnB,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,0BAA0B;AAAA,EAC1B,qBAAqB;AAAA,EACrB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,sBAAsB;AAAA,EACtB,gBAAgB;AAAA,EAChB,sBAAsB;AAAA,EACtB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,sBAAsB;AAAA,EACtB,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,WAAW;AAAA,EACX,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,eAAe;AAAA,EACf,yBAAyB;AAAA,EACzB,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,sBAAsB;AAAA,EACtB,0BAA0B;AAAA,EAC1B,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,4BAA4B;AAAA,EAC5B,uBAAuB;AAAA,EACvB,iCAAiC;AAAA,EACjC,6BAA6B;AAAA,EAC7B,8BAA8B;AAChC;","names":[]}
@@ -1,6 +1,3 @@
1
- import {
2
- openclawReplayNormalizer
3
- } from "./chunk-H4CKS5B2.js";
4
1
  import {
5
2
  chatgptReplayNormalizer
6
3
  } from "./chunk-MMACM5G2.js";
@@ -8,14 +5,20 @@ import {
8
5
  claudeReplayNormalizer
9
6
  } from "./chunk-54BGIBCR.js";
10
7
  import {
11
- exportSqlite
12
- } from "./chunk-BV2TIZ4F.js";
8
+ openclawReplayNormalizer
9
+ } from "./chunk-H4CKS5B2.js";
13
10
  import {
14
11
  importMarkdownBundle
15
12
  } from "./chunk-HDDRVXX4.js";
16
13
  import {
17
14
  importSqlite
18
15
  } from "./chunk-PYHOAXTI.js";
16
+ import {
17
+ exportJsonBundle
18
+ } from "./chunk-UP6MOYCB.js";
19
+ import {
20
+ exportSqlite
21
+ } from "./chunk-BV2TIZ4F.js";
19
22
  import {
20
23
  detectImportFormat
21
24
  } from "./chunk-OZKVVUJB.js";
@@ -24,13 +27,16 @@ import {
24
27
  } from "./chunk-2DL3OFLD.js";
25
28
  import {
26
29
  backupMemoryDir
27
- } from "./chunk-2NLLXCJG.js";
30
+ } from "./chunk-BXLOS5AJ.js";
28
31
  import {
29
32
  exportMarkdownBundle
30
33
  } from "./chunk-765K3SAT.js";
31
34
  import {
32
- exportJsonBundle
33
- } from "./chunk-UP6MOYCB.js";
35
+ RoutingRulesStore
36
+ } from "./chunk-TBUEE7XF.js";
37
+ import {
38
+ WebDavServer
39
+ } from "./chunk-PYIFUBRK.js";
34
40
  import {
35
41
  buildReplayNormalizerRegistry,
36
42
  clampBatchSize,
@@ -41,35 +47,29 @@ import {
41
47
  normalizeReplaySessionKey
42
48
  } from "./chunk-AJVLDJU6.js";
43
49
  import {
44
- RoutingRulesStore
45
- } from "./chunk-TBUEE7XF.js";
50
+ rebuildObservations
51
+ } from "./chunk-DQTCGVFK.js";
46
52
  import {
47
53
  TailscaleHelper
48
54
  } from "./chunk-EEC4PCG5.js";
49
- import {
50
- WebDavServer
51
- } from "./chunk-PYIFUBRK.js";
52
55
  import {
53
56
  migrateObservations
54
57
  } from "./chunk-IIFFC3RL.js";
55
58
  import {
56
59
  rebuildMemoryLifecycleLedger
57
- } from "./chunk-YIZRTHHF.js";
58
- import {
59
- rebuildObservations
60
- } from "./chunk-DQTCGVFK.js";
60
+ } from "./chunk-GDFVPUJ5.js";
61
61
  import {
62
62
  archiveObservations
63
63
  } from "./chunk-YLBE6PLR.js";
64
+ import {
65
+ runCompatChecks
66
+ } from "./chunk-CDKHKZL5.js";
64
67
  import {
65
68
  getBulkImportSource,
66
69
  listBulkImportSources,
67
70
  registerBulkImportSource,
68
71
  runBulkImportPipeline
69
72
  } from "./chunk-HSSERO3E.js";
70
- import {
71
- runCompatChecks
72
- } from "./chunk-CDKHKZL5.js";
73
73
  import {
74
74
  getUtilityLearningStatus,
75
75
  learnUtilityPromotionWeights
@@ -80,21 +80,21 @@ import {
80
80
  } from "./chunk-6FC3IZ26.js";
81
81
  import {
82
82
  searchVerifiedEpisodes
83
- } from "./chunk-A6LBDIFS.js";
83
+ } from "./chunk-2E36UXVW.js";
84
84
  import {
85
85
  ThreadingManager
86
86
  } from "./chunk-OJP3N7UK.js";
87
87
  import {
88
88
  promoteSemanticRuleFromMemory
89
- } from "./chunk-4GD7YV4Y.js";
89
+ } from "./chunk-UXO5IMBK.js";
90
90
  import {
91
91
  searchVerifiedSemanticRules
92
- } from "./chunk-MXJU4GCA.js";
92
+ } from "./chunk-ZO6AXLEH.js";
93
93
  import {
94
94
  buildResumeBundleFromState,
95
95
  getResumeBundleStatus,
96
96
  recordResumeBundle
97
- } from "./chunk-7PWWGYGO.js";
97
+ } from "./chunk-GNCCUR6K.js";
98
98
  import {
99
99
  getWorkProductLedgerStatus,
100
100
  recordWorkProductLedgerEntry,
@@ -105,7 +105,16 @@ import {
105
105
  } from "./chunk-AM4T6CHX.js";
106
106
  import {
107
107
  parseXrayCliOptions
108
- } from "./chunk-VUP47UJI.js";
108
+ } from "./chunk-R7JAM2XF.js";
109
+ import {
110
+ collectPatternMemories,
111
+ explainPatternMemory,
112
+ parsePatternsExplainOptions,
113
+ parsePatternsListOptions,
114
+ parseStrictCliDate,
115
+ renderPatternExplain,
116
+ renderPatternsList
117
+ } from "./chunk-3T74IZB3.js";
109
118
  import {
110
119
  readRuntimePolicySnapshot,
111
120
  sanitizeRuntimePolicyValues
@@ -118,21 +127,12 @@ import {
118
127
  runOperatorInventory,
119
128
  runOperatorRepair,
120
129
  runOperatorSetup
121
- } from "./chunk-A4VJKT2H.js";
130
+ } from "./chunk-ZWXJBFZU.js";
122
131
  import {
123
132
  analyzeSessionIntegrity,
124
133
  applySessionRepair,
125
134
  planSessionRepair
126
135
  } from "./chunk-KFY3SGN7.js";
127
- import {
128
- collectPatternMemories,
129
- explainPatternMemory,
130
- parsePatternsExplainOptions,
131
- parsePatternsListOptions,
132
- parseStrictCliDate,
133
- renderPatternExplain,
134
- renderPatternsList
135
- } from "./chunk-3T74IZB3.js";
136
136
  import {
137
137
  GITHUB_CONNECTOR_ID,
138
138
  GMAIL_CONNECTOR_ID,
@@ -150,12 +150,12 @@ import {
150
150
  import {
151
151
  listConnectorStates
152
152
  } from "./chunk-6GUG4YNM.js";
153
+ import {
154
+ searchHarmonicRetrieval
155
+ } from "./chunk-SIHSCCUQ.js";
153
156
  import {
154
157
  rescoreMemoryImportance
155
158
  } from "./chunk-UOBPK2OS.js";
156
- import {
157
- searchHarmonicRetrieval
158
- } from "./chunk-OXL5QKTV.js";
159
159
  import {
160
160
  createEvalBaselineSnapshot,
161
161
  getEvalHarnessStatus,
@@ -175,7 +175,7 @@ import {
175
175
  rebuildMemoryProjection,
176
176
  repairMemoryProjection,
177
177
  verifyMemoryProjection
178
- } from "./chunk-RNKNL5GQ.js";
178
+ } from "./chunk-5NM4OH4P.js";
179
179
  import {
180
180
  buildConnectorRowsFromDefinitions,
181
181
  parseConnectorsListOptions,
@@ -196,11 +196,11 @@ import {
196
196
  } from "./chunk-6TBIWIAG.js";
197
197
  import {
198
198
  parseConfig
199
- } from "./chunk-YQ3CBLL4.js";
199
+ } from "./chunk-BWLRUMOG.js";
200
200
  import {
201
201
  EngramAccessHttpServer,
202
202
  MeetingsInputError
203
- } from "./chunk-HBKFYXBA.js";
203
+ } from "./chunk-4KYOLI6M.js";
204
204
  import {
205
205
  WearablesInputError
206
206
  } from "./chunk-V7IZKJI3.js";
@@ -210,13 +210,13 @@ import {
210
210
  loadChatSession,
211
211
  processChatMessage,
212
212
  sessionBelongsToPrincipal
213
- } from "./chunk-RQYV6M2T.js";
213
+ } from "./chunk-TF77C7SV.js";
214
214
  import {
215
215
  getAbstractionNodeStoreStatus
216
216
  } from "./chunk-DJUKBGAD.js";
217
217
  import {
218
218
  EngramAccessService
219
- } from "./chunk-YHSNAGN3.js";
219
+ } from "./chunk-SB7D4BT7.js";
220
220
  import {
221
221
  WorkStorage
222
222
  } from "./chunk-GDB4J2H3.js";
@@ -233,10 +233,10 @@ import {
233
233
  parseRecallExplainFormat,
234
234
  renderRecallExplain,
235
235
  renderXray
236
- } from "./chunk-SHQFYZTD.js";
236
+ } from "./chunk-7YQ4IYS2.js";
237
237
  import {
238
238
  readAggregateExtractionWatermark
239
- } from "./chunk-4E6IJCLC.js";
239
+ } from "./chunk-PE255F4T.js";
240
240
  import {
241
241
  getObjectiveStateStoreStatus
242
242
  } from "./chunk-HTP6XRUI.js";
@@ -245,33 +245,33 @@ import {
245
245
  readMemoryGovernanceRunArtifact,
246
246
  restoreMemoryGovernanceRun,
247
247
  runMemoryGovernance
248
- } from "./chunk-WHA6ISFX.js";
248
+ } from "./chunk-JYYBA7TF.js";
249
249
  import {
250
250
  listNamespaces,
251
251
  runNamespaceMigration,
252
252
  verifyNamespaces
253
- } from "./chunk-RRJUMSFX.js";
253
+ } from "./chunk-2XDWWPTN.js";
254
254
  import {
255
255
  analyzeGraphHealth
256
- } from "./chunk-YMOPYG3K.js";
256
+ } from "./chunk-BIJAWZYW.js";
257
257
  import {
258
258
  resolveNamespaceChildRoot
259
- } from "./chunk-PHX3ET3C.js";
259
+ } from "./chunk-QOS5LBZN.js";
260
260
  import {
261
261
  getCausalTrajectoryStoreStatus
262
- } from "./chunk-GPFZFCRN.js";
262
+ } from "./chunk-PP7R754B.js";
263
263
  import {
264
264
  OKF_RESERVED_BASENAMES,
265
265
  meetingIdDate,
266
266
  okfTypeForCategory
267
- } from "./chunk-ZAI5R6DW.js";
267
+ } from "./chunk-J275IYMG.js";
268
268
  import {
269
269
  isValidTranscriptDate
270
270
  } from "./chunk-UHVXE24Y.js";
271
271
  import {
272
272
  RECALL_DISCLOSURE_LEVELS,
273
273
  isRecallDisclosure
274
- } from "./chunk-VRYEXPRX.js";
274
+ } from "./chunk-SBDCZ2AX.js";
275
275
  import {
276
276
  bumpMemoryCorpusVersionForDir
277
277
  } from "./chunk-XCB6QDL6.js";
@@ -5139,7 +5139,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5139
5139
  }
5140
5140
  }
5141
5141
  if (sourceArchive.endsWith(".enc")) {
5142
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
5142
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-YO5QJ6L3.js");
5143
5143
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
5144
5144
  if (encDetected) {
5145
5145
  throw new Error(
@@ -5302,7 +5302,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5302
5302
  const { parseExportBundle } = await import("./transfer/types.js");
5303
5303
  let decryptedBuf;
5304
5304
  try {
5305
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
5305
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-YO5QJ6L3.js");
5306
5306
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
5307
5307
  } catch (decErr) {
5308
5308
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -7788,7 +7788,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
7788
7788
  console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
7789
7789
  process.exit(1);
7790
7790
  }
7791
- const { isValidResolutionVerb, executeResolution } = await import("./resolution-DKMBPXHI.js");
7791
+ const { isValidResolutionVerb, executeResolution } = await import("./resolution-MFY72STR.js");
7792
7792
  if (!isValidResolutionVerb(verb)) {
7793
7793
  console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
7794
7794
  process.exit(1);
@@ -8553,4 +8553,4 @@ export {
8553
8553
  listMemoryMarkdownFilePaths,
8554
8554
  registerCli
8555
8555
  };
8556
- //# sourceMappingURL=chunk-JXMXTV6C.js.map
8556
+ //# sourceMappingURL=chunk-LGO6A7GJ.js.map
@@ -6,7 +6,7 @@ import {
6
6
  headerConnector,
7
7
  renderExtractionConversation,
8
8
  resolveSourceConnector
9
- } from "./chunk-UIYYS2YI.js";
9
+ } from "./chunk-SVSRPG6M.js";
10
10
  import {
11
11
  ConsolidationResultSchema,
12
12
  DaySummaryResultSchema,
@@ -15,7 +15,7 @@ import {
15
15
  ProactiveExtractionResultSchema,
16
16
  ProactiveQuestionsResultSchema,
17
17
  buildProfileConsolidationResultSchema
18
- } from "./chunk-4NZHHGVL.js";
18
+ } from "./chunk-7BDZTALN.js";
19
19
  import {
20
20
  normalizeReasoningTrace
21
21
  } from "./chunk-54V4BZWP.js";
@@ -31,7 +31,7 @@ import {
31
31
  extractionCueAnchors,
32
32
  extractionText,
33
33
  isPlainRecord
34
- } from "./chunk-G72IPMR7.js";
34
+ } from "./chunk-R4OCGPSH.js";
35
35
  import {
36
36
  attachExtractionProvenance
37
37
  } from "./chunk-HMKPFW7R.js";
@@ -57,7 +57,7 @@ import {
57
57
  buildExtractionInstructions,
58
58
  buildProfileConsolidationSystemPrompt,
59
59
  eventTimePromptInstruction
60
- } from "./chunk-JG22O53B.js";
60
+ } from "./chunk-7CBKAQIG.js";
61
61
  import {
62
62
  AMBIENT_CAPTURE_PROMPT_SECTION_COMPACT,
63
63
  clampAmbientCaptureConfidence
@@ -70,13 +70,13 @@ import {
70
70
  } from "./chunk-NLE6TSLG.js";
71
71
  import {
72
72
  LocalLlmClient
73
- } from "./chunk-MB6GLPRY.js";
73
+ } from "./chunk-IVKIODHO.js";
74
74
  import {
75
75
  normalizeProcedureSteps
76
76
  } from "./chunk-QDW3E4RD.js";
77
77
  import {
78
78
  isMemoryCategory
79
- } from "./chunk-LCU5R6TQ.js";
79
+ } from "./chunk-RAIUTAZZ.js";
80
80
  import {
81
81
  FallbackLlmClient,
82
82
  fallbackLlmRuntimeContextFromConfig,
@@ -328,6 +328,7 @@ var ExtractionEngine = class {
328
328
  cueAnchors: extractionCueAnchors(f.cueAnchors),
329
329
  promptedByQuestion: extractionText(f.promptedByQuestion),
330
330
  scope: f.scope === "global" || f.scope === "project" ? f.scope : void 0,
331
+ subject: f.subject === "user" || f.subject === "agent" ? f.subject : void 0,
331
332
  structuredAttributes: extractionAttributes(f.structuredAttributes),
332
333
  procedureSteps,
333
334
  reasoningTrace,
@@ -1188,7 +1189,8 @@ Rules:
1188
1189
  ${CUE_ANCHOR_PROMPT_INSTRUCTION}
1189
1190
  - Include at most five durable relationships.${this.config.provenance?.enabled ? `
1190
1191
  - Each fact must include a quote copied verbatim from one contiguous conversation span.` : ""}${lifecycleCaps.extractionScopeClassification ? `
1191
- - Set each fact scope to "global" for cross-project knowledge or "project" for codebase-specific knowledge. Tool, command, or CLI-flag instructions tied to one agent are "project" (the same tool name can mean different things across agents); when keeping one, begin the fact with a leading "In <agent>," clause naming that agent.` : ""}${ambientCapture ? AMBIENT_CAPTURE_PROMPT_SECTION_COMPACT : ""}
1192
+ - Set each fact scope to "global" for cross-project knowledge or "project" for codebase-specific knowledge. Tool, command, or CLI-flag instructions tied to one agent are "project" (the same tool name can mean different things across agents); when keeping one, begin the fact with a leading "In <agent>," clause naming that agent.` : ""}${this.config.subjectClassification?.enabled === true ? `
1193
+ - Set each fact subject to "user" when it models the person (preferences, relationships, biography, moments, commitments about their life) or "agent" when it is reusable operating knowledge (procedures, principles, tool-usage lessons, debugging strategies, environment facts with no personal content).` : ""}${ambientCapture ? AMBIENT_CAPTURE_PROMPT_SECTION_COMPACT : ""}
1192
1194
  ${eventTimePromptInstruction(this.config)}
1193
1195
  Return only valid JSON matching this shape. Placeholder text describes field shape only and is never source evidence:
1194
1196
  ${EXTRACTION_RESPONSE_SHAPE}
@@ -2365,4 +2367,4 @@ export {
2365
2367
  shouldEnableLocalExtractionThinking,
2366
2368
  ExtractionEngine
2367
2369
  };
2368
- //# sourceMappingURL=chunk-XBRGJJK7.js.map
2370
+ //# sourceMappingURL=chunk-LUNJ3WFO.js.map