@remnic/core 9.65.7 → 9.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (713) hide show
  1. package/dist/access-admin-ops-surface.d.ts +15 -14
  2. package/dist/access-admin-ops-surface.js +65 -62
  3. package/dist/access-authorization-probe.d.ts +15 -14
  4. package/dist/access-authorization-probe.js +66 -63
  5. package/dist/access-boundary.d.ts +15 -14
  6. package/dist/access-boundary.js +65 -62
  7. package/dist/access-citation-namespace.js +3 -3
  8. package/dist/access-cli.js +182 -174
  9. package/dist/access-cli.js.map +1 -1
  10. package/dist/access-coding-context-resolution.d.ts +2 -2
  11. package/dist/access-coding-context-resolution.js +2 -2
  12. package/dist/access-extraction-force-flush.d.ts +15 -14
  13. package/dist/access-extraction-force-flush.js +65 -62
  14. package/dist/access-health-types.d.ts +2 -2
  15. package/dist/access-http-lcm-compaction.d.ts +15 -14
  16. package/dist/access-http-lifecycle-flush.d.ts +15 -14
  17. package/dist/access-http-offline-stream.d.ts +15 -14
  18. package/dist/access-http-query.d.ts +3 -3
  19. package/dist/access-http-query.js +67 -64
  20. package/dist/access-http.d.ts +16 -15
  21. package/dist/access-http.js +87 -84
  22. package/dist/access-identity-continuity-surface.d.ts +13 -12
  23. package/dist/access-identity-continuity-surface.js +65 -62
  24. package/dist/access-lcm-surface.d.ts +15 -14
  25. package/dist/access-lcm-surface.js +65 -62
  26. package/dist/access-mcp-output-schemas.js +1 -1
  27. package/dist/access-mcp.d.ts +15 -14
  28. package/dist/access-mcp.js +77 -74
  29. package/dist/access-memory-search-fanout.d.ts +3 -3
  30. package/dist/{access-namespace-preflight-8VYKmRX0.d.ts → access-namespace-preflight-CLWUoMyW.d.ts} +1 -1
  31. package/dist/access-namespace-preflight.d.ts +4 -4
  32. package/dist/access-namespace-preflight.js +65 -62
  33. package/dist/access-observe-write-surface.d.ts +15 -14
  34. package/dist/access-observe-write-surface.js +65 -62
  35. package/dist/access-offline-manifest.d.ts +13 -12
  36. package/dist/access-offline-manifest.js +16 -16
  37. package/dist/access-operations-batch.js +69 -66
  38. package/dist/access-operations.d.ts +16 -15
  39. package/dist/access-operations.js +74 -71
  40. package/dist/access-recall-concurrency.d.ts +15 -14
  41. package/dist/access-recall-concurrency.js +65 -62
  42. package/dist/access-recall-response.d.ts +15 -14
  43. package/dist/access-recall-response.js +65 -62
  44. package/dist/access-recall-surface.d.ts +15 -14
  45. package/dist/access-recall-surface.js +65 -62
  46. package/dist/access-schema.js +7 -7
  47. package/dist/{access-service-Crk__Git.d.ts → access-service-CEUE1Isj.d.ts} +14 -14
  48. package/dist/access-service-helpers.d.ts +15 -14
  49. package/dist/access-service.d.ts +15 -14
  50. package/dist/access-service.js +65 -62
  51. package/dist/access-surface-catalog.d.ts +15 -14
  52. package/dist/access-surface-catalog.js +69 -64
  53. package/dist/access-surface-catalog.js.map +1 -1
  54. package/dist/access-wearables-meetings-surface.d.ts +6 -4
  55. package/dist/action-confidence.d.ts +2 -2
  56. package/dist/active-context-config.d.ts +27 -0
  57. package/dist/active-context-config.js +14 -0
  58. package/dist/active-context-transform.d.ts +267 -0
  59. package/dist/active-context-transform.js +31 -0
  60. package/dist/active-memory-bridge.d.ts +2 -2
  61. package/dist/active-memory-bridge.js +2 -2
  62. package/dist/active-recall.d.ts +2 -2
  63. package/dist/active-recall.js +17 -16
  64. package/dist/active-recall.js.map +1 -1
  65. package/dist/adapters/index.js +7 -7
  66. package/dist/adapters/registry.js +3 -3
  67. package/dist/ambient-provenance.d.ts +2 -2
  68. package/dist/artifact-search.d.ts +2 -2
  69. package/dist/{auto-sync-XVMLL2RH.js → auto-sync-Q6Q2FVSC.js} +10 -10
  70. package/dist/behavior-learner.d.ts +2 -2
  71. package/dist/behavior-signals.d.ts +2 -2
  72. package/dist/bootstrap.d.ts +13 -12
  73. package/dist/briefing-window.d.ts +5 -3
  74. package/dist/briefing.d.ts +5 -3
  75. package/dist/briefing.js +33 -33
  76. package/dist/buffer-surprise-report.d.ts +2 -2
  77. package/dist/buffer-turn-helpers.d.ts +2 -2
  78. package/dist/buffer.d.ts +5 -3
  79. package/dist/buffer.js +24 -8
  80. package/dist/bulk-import/index.d.ts +4 -4
  81. package/dist/calibration.d.ts +2 -2
  82. package/dist/calibration.js +1 -1
  83. package/dist/capabilities.d.ts +2 -2
  84. package/dist/{capsule-merge-SGIVB3WA.js → capsule-merge-SEHERWWP.js} +4 -4
  85. package/dist/{catalog-DybwVNW3.d.ts → catalog-D1HgugTA.d.ts} +1 -1
  86. package/dist/causal-behavior.d.ts +4 -4
  87. package/dist/causal-consolidation.d.ts +2 -2
  88. package/dist/causal-consolidation.js +34 -34
  89. package/dist/causal-trajectory-graph.d.ts +2 -2
  90. package/dist/{chunk-CFGU52XJ.js → chunk-23CVL7HS.js} +2 -2
  91. package/dist/{chunk-PO7NXBG2.js → chunk-2GF27PGH.js} +5 -5
  92. package/dist/{chunk-6CPUQ5D6.js → chunk-2LBAFHOQ.js} +15 -15
  93. package/dist/{chunk-JBPKEARU.js → chunk-2QSZNTDO.js} +7 -7
  94. package/dist/{chunk-IP4ZNT4U.js → chunk-33MFRY25.js} +2 -2
  95. package/dist/{chunk-VFYRYFLL.js → chunk-3TSU662L.js} +3 -3
  96. package/dist/chunk-43HUVDTD.js +114 -0
  97. package/dist/chunk-43HUVDTD.js.map +1 -0
  98. package/dist/{chunk-VXVZ2GM3.js → chunk-4FHRZD5T.js} +2 -2
  99. package/dist/{chunk-FP7YTTVO.js → chunk-4OFKZAJG.js} +2 -1
  100. package/dist/chunk-4OFKZAJG.js.map +1 -0
  101. package/dist/{chunk-5VPQSRQO.js → chunk-4STAANV7.js} +3 -3
  102. package/dist/{chunk-46WM6JX2.js → chunk-4ZWCQJNM.js} +5 -5
  103. package/dist/{chunk-LLQCM2U2.js → chunk-56IV4J5W.js} +617 -167
  104. package/dist/chunk-56IV4J5W.js.map +1 -0
  105. package/dist/{chunk-52II7PB6.js → chunk-645WOU5I.js} +4 -4
  106. package/dist/{chunk-YKWFK7XA.js → chunk-6CEGSTBD.js} +7 -7
  107. package/dist/{chunk-I7EX6KSH.js → chunk-6QDXA26G.js} +264 -210
  108. package/dist/chunk-6QDXA26G.js.map +1 -0
  109. package/dist/{chunk-GEPACVWN.js → chunk-6RUHELWR.js} +3 -3
  110. package/dist/{chunk-ZAOHJDKH.js → chunk-72OIT7KS.js} +4 -4
  111. package/dist/{chunk-KQAFEZQX.js → chunk-7LCGFUMB.js} +4 -4
  112. package/dist/{chunk-7TCGNUVP.js → chunk-7UTDHQZ5.js} +3 -3
  113. package/dist/{chunk-5HK3CJAR.js → chunk-7XOG75AU.js} +3 -3
  114. package/dist/{chunk-7BDZTALN.js → chunk-AJTG3CP7.js} +12 -2
  115. package/dist/chunk-AJTG3CP7.js.map +1 -0
  116. package/dist/{chunk-2LWQSV6A.js → chunk-AL3UYZ5N.js} +3 -2
  117. package/dist/chunk-AL3UYZ5N.js.map +1 -0
  118. package/dist/chunk-B32WYRXX.js +77 -0
  119. package/dist/chunk-B32WYRXX.js.map +1 -0
  120. package/dist/{chunk-C24UZSFW.js → chunk-CEH2AFXG.js} +6 -6
  121. package/dist/{chunk-YOXVZJFM.js → chunk-CFVTRUR3.js} +2 -2
  122. package/dist/{chunk-ACOC27BB.js → chunk-CN4VKV3S.js} +2 -2
  123. package/dist/{chunk-PMVPCZJZ.js → chunk-CTCGHNWN.js} +6 -6
  124. package/dist/{chunk-EGBDFJ36.js → chunk-DD5JFCWM.js} +2 -2
  125. package/dist/{chunk-T42L3S6A.js → chunk-DDX6KIXF.js} +2 -2
  126. package/dist/{chunk-JIYDRBVZ.js → chunk-DJORULH3.js} +2 -2
  127. package/dist/{chunk-WTOZBZNN.js → chunk-DMEHOEC7.js} +6 -6
  128. package/dist/{chunk-OPPBTPUU.js → chunk-DUAJKRR2.js} +4 -4
  129. package/dist/{chunk-XDL5CYZN.js → chunk-EEOUMG3J.js} +2 -1
  130. package/dist/{chunk-XDL5CYZN.js.map → chunk-EEOUMG3J.js.map} +1 -1
  131. package/dist/{chunk-SVVIASVX.js → chunk-EFQCDJZ2.js} +7 -7
  132. package/dist/{chunk-Q57GOHLF.js → chunk-EGALNSZ4.js} +3 -3
  133. package/dist/{chunk-KCT36JAW.js → chunk-ESNFSSO4.js} +2 -2
  134. package/dist/{chunk-XQ3HXAQH.js → chunk-ET2CNMLD.js} +4 -4
  135. package/dist/{chunk-Z4U3UN56.js → chunk-EZSCW4EM.js} +6 -6
  136. package/dist/{chunk-F6QHHRWP.js → chunk-FESUGFIL.js} +3 -3
  137. package/dist/{chunk-S3K2CIK5.js → chunk-FKKGCGYL.js} +3 -3
  138. package/dist/{chunk-BWGCOLEL.js → chunk-FTTJRVB7.js} +2 -2
  139. package/dist/{chunk-JAQXUGLN.js → chunk-FYWLSFFS.js} +2 -2
  140. package/dist/{chunk-BJTHRFFC.js → chunk-GEJKYA7D.js} +77 -36
  141. package/dist/chunk-GEJKYA7D.js.map +1 -0
  142. package/dist/chunk-GSKINLAK.js +267 -0
  143. package/dist/chunk-GSKINLAK.js.map +1 -0
  144. package/dist/{chunk-OPGL46PX.js → chunk-GX6FTSYH.js} +2 -2
  145. package/dist/{chunk-A32YEQAM.js → chunk-H7VDIF2V.js} +2 -2
  146. package/dist/{chunk-PDDSFELN.js → chunk-HJXA6ZM7.js} +2 -2
  147. package/dist/{chunk-RGCF4XNH.js → chunk-HNPE66LB.js} +8 -8
  148. package/dist/{chunk-SEA6M7SS.js → chunk-I5VB44ZK.js} +2 -2
  149. package/dist/{chunk-SDEPLF7V.js → chunk-IBJ6U753.js} +2 -2
  150. package/dist/{chunk-EUYWQ7TS.js → chunk-IEZ6CGTW.js} +2 -2
  151. package/dist/{chunk-RQE4TITU.js → chunk-IHGMRDEE.js} +431 -1834
  152. package/dist/chunk-IHGMRDEE.js.map +1 -0
  153. package/dist/{chunk-3RI5Y7KU.js → chunk-IVIAHQBR.js} +2 -2
  154. package/dist/{chunk-7WR462EM.js → chunk-J3OND5QT.js} +4 -4
  155. package/dist/{chunk-UW5NPZJ2.js → chunk-JALOAKSZ.js} +59 -7
  156. package/dist/chunk-JALOAKSZ.js.map +1 -0
  157. package/dist/{chunk-T3JQTCCO.js → chunk-JI7U6AS3.js} +4 -4
  158. package/dist/{chunk-DVYRD4HY.js → chunk-JRRQ747T.js} +36 -7
  159. package/dist/chunk-JRRQ747T.js.map +1 -0
  160. package/dist/{chunk-I32NKXE2.js → chunk-JTWZKNUH.js} +5 -5
  161. package/dist/chunk-K66OY4EI.js +202 -0
  162. package/dist/chunk-K66OY4EI.js.map +1 -0
  163. package/dist/{chunk-XAB6STPO.js → chunk-KODXCHXJ.js} +17 -3
  164. package/dist/chunk-KODXCHXJ.js.map +1 -0
  165. package/dist/{chunk-ZPUIRTIZ.js → chunk-KOLJJN5G.js} +12 -75
  166. package/dist/chunk-KOLJJN5G.js.map +1 -0
  167. package/dist/{chunk-FMQ4MOQO.js → chunk-KXIXO76C.js} +32 -19
  168. package/dist/chunk-KXIXO76C.js.map +1 -0
  169. package/dist/{chunk-VKCAHCBI.js → chunk-L4X4PJYK.js} +2 -2
  170. package/dist/chunk-LB7WCZHY.js +553 -0
  171. package/dist/chunk-LB7WCZHY.js.map +1 -0
  172. package/dist/{chunk-W4BMEGQA.js → chunk-LUDBXTBJ.js} +8 -8
  173. package/dist/{chunk-I4343FIA.js → chunk-MAH64N55.js} +28 -10
  174. package/dist/chunk-MAH64N55.js.map +1 -0
  175. package/dist/{chunk-RIAM7DND.js → chunk-ME35HVDJ.js} +2 -2
  176. package/dist/{chunk-H63EDPFJ.js → chunk-MI2OTWV5.js} +15 -2
  177. package/dist/{chunk-H63EDPFJ.js.map → chunk-MI2OTWV5.js.map} +1 -1
  178. package/dist/{chunk-LBFFNDFM.js → chunk-MINHJ55X.js} +1 -1
  179. package/dist/chunk-MINHJ55X.js.map +1 -0
  180. package/dist/{chunk-NG3MBQV4.js → chunk-MJRGVXPQ.js} +2 -2
  181. package/dist/{chunk-773TRRGT.js → chunk-MJUCDM3C.js} +2 -2
  182. package/dist/{chunk-7F27PCSN.js → chunk-MN5NOOI7.js} +2 -2
  183. package/dist/{chunk-JCWY73FK.js → chunk-N4F7ZSSG.js} +2 -2
  184. package/dist/{chunk-TR7DGXGI.js → chunk-NACLNNFQ.js} +5 -5
  185. package/dist/{chunk-LC2BDILZ.js → chunk-NBP4EX5N.js} +2 -2
  186. package/dist/{chunk-ZVPVTPGI.js → chunk-NNZFPYYX.js} +4 -4
  187. package/dist/{chunk-MFOSZUIT.js → chunk-NPIBN2VL.js} +2 -2
  188. package/dist/{chunk-IY7UXD3J.js → chunk-O57GM3FR.js} +2 -2
  189. package/dist/{chunk-I2HTKOOP.js → chunk-O7ERGZDA.js} +5 -5
  190. package/dist/{chunk-GTSVEEP3.js → chunk-OAJMQKQR.js} +3 -3
  191. package/dist/{chunk-HSZMX3ZJ.js → chunk-ODW5GDFE.js} +2 -2
  192. package/dist/{chunk-D4QVPP3G.js → chunk-PEBH5DCK.js} +18 -11
  193. package/dist/chunk-PEBH5DCK.js.map +1 -0
  194. package/dist/{chunk-J2WC5LF4.js → chunk-QBC33MPY.js} +2 -1
  195. package/dist/{chunk-EOHKUWXW.js → chunk-QCRJMU5V.js} +2 -2
  196. package/dist/chunk-QJCWK2A7.js +1466 -0
  197. package/dist/chunk-QJCWK2A7.js.map +1 -0
  198. package/dist/{chunk-THG4GYIE.js → chunk-RDGKVH6T.js} +11 -7
  199. package/dist/{chunk-THG4GYIE.js.map → chunk-RDGKVH6T.js.map} +1 -1
  200. package/dist/{chunk-5DH6PG4B.js → chunk-RZ3IZIJG.js} +3 -3
  201. package/dist/{chunk-AAXJNINV.js → chunk-SN4JXNLL.js} +2 -2
  202. package/dist/chunk-TB2MJRI6.js +866 -0
  203. package/dist/chunk-TB2MJRI6.js.map +1 -0
  204. package/dist/{chunk-7PHI6GUI.js → chunk-TEZ2HTC7.js} +42 -2
  205. package/dist/chunk-TEZ2HTC7.js.map +1 -0
  206. package/dist/{chunk-SVSRPG6M.js → chunk-TNGH4ZYI.js} +2 -2
  207. package/dist/{chunk-HZNYJN77.js → chunk-TNXNECAN.js} +6 -6
  208. package/dist/{chunk-JOEJG4SD.js → chunk-TVW4C7PV.js} +5 -5
  209. package/dist/{chunk-UFKPQBXH.js → chunk-U62OK7BB.js} +2 -2
  210. package/dist/{chunk-R2MZCYA6.js → chunk-UNUMFURP.js} +3 -3
  211. package/dist/{chunk-AX7UXCHJ.js → chunk-UYA36DQ7.js} +2 -1
  212. package/dist/chunk-UYA36DQ7.js.map +1 -0
  213. package/dist/{chunk-AFR6AIM4.js → chunk-VCKWULAK.js} +112 -87
  214. package/dist/chunk-VCKWULAK.js.map +1 -0
  215. package/dist/chunk-VOSWUO3K.js +100 -0
  216. package/dist/chunk-VOSWUO3K.js.map +1 -0
  217. package/dist/{chunk-YRVAKONL.js → chunk-VQ4AMTGZ.js} +1 -1
  218. package/dist/{chunk-3BCULS4U.js → chunk-VQNRICAQ.js} +145 -507
  219. package/dist/chunk-VQNRICAQ.js.map +1 -0
  220. package/dist/{chunk-RAIUTAZZ.js → chunk-WKAXBXVA.js} +2 -2
  221. package/dist/{chunk-ZIJDI4CP.js → chunk-WKJFIMVN.js} +2 -2
  222. package/dist/{chunk-SXIMQLGV.js → chunk-WVGXCBOC.js} +2 -2
  223. package/dist/{chunk-7BEPVIH3.js → chunk-X5YYSAZX.js} +4 -4
  224. package/dist/{chunk-FZEEWOI2.js → chunk-XJJYSX6F.js} +2 -2
  225. package/dist/{chunk-F635GAL7.js → chunk-XKNHFDTT.js} +33 -13
  226. package/dist/chunk-XKNHFDTT.js.map +1 -0
  227. package/dist/{chunk-UG6VXIOK.js → chunk-XSTNGNJP.js} +2 -2
  228. package/dist/{chunk-YDPAE2RD.js → chunk-YFLLGRXO.js} +2 -2
  229. package/dist/{chunk-EZ25VE3G.js → chunk-YNDLCWXS.js} +4 -4
  230. package/dist/{chunk-ANJXPFRS.js → chunk-YXFCALVT.js} +14 -14
  231. package/dist/{chunk-Q4WONDMJ.js → chunk-YYGZJPOK.js} +2 -2
  232. package/dist/{chunk-5HERQ5FX.js → chunk-Z3YEGSR4.js} +10 -10
  233. package/dist/{chunk-YWSQD2IB.js → chunk-ZJPM7GZ3.js} +2 -2
  234. package/dist/{chunk-5S4LQOPE.js → chunk-ZW4VXELZ.js} +2 -2
  235. package/dist/{cli-B322UMvB.d.ts → cli-BEkm2MEf.d.ts} +5 -5
  236. package/dist/cli.d.ts +17 -16
  237. package/dist/cli.js +126 -120
  238. package/dist/coding/export-okf-codegraph.d.ts +56 -0
  239. package/dist/coding/export-okf-codegraph.js +526 -0
  240. package/dist/coding/export-okf-codegraph.js.map +1 -0
  241. package/dist/coding/pre-action-gate.d.ts +2 -2
  242. package/dist/compounding/engine.d.ts +5 -3
  243. package/dist/compounding/engine.js +34 -34
  244. package/dist/compounding/preference-consolidator.d.ts +4 -4
  245. package/dist/compression-optimizer.d.ts +2 -2
  246. package/dist/config-security.js +2 -2
  247. package/dist/config.d.ts +2 -2
  248. package/dist/config.js +17 -16
  249. package/dist/connectors/codex-materialize-runner.d.ts +2 -2
  250. package/dist/connectors/codex-materialize-runner.js +33 -33
  251. package/dist/connectors/codex-materialize.d.ts +2 -2
  252. package/dist/connectors/index.d.ts +2 -2
  253. package/dist/connectors/index.js +33 -33
  254. package/dist/consolidation-provenance-check.d.ts +5 -3
  255. package/dist/consolidation-provenance-check.js +5 -5
  256. package/dist/consolidation-undo.d.ts +5 -3
  257. package/dist/consolidation-undo.js +3 -3
  258. package/dist/context-summary.d.ts +43 -0
  259. package/dist/context-summary.js +14 -0
  260. package/dist/context-summary.js.map +1 -0
  261. package/dist/contradiction/index.d.ts +6 -4
  262. package/dist/contradiction/index.js +10 -10
  263. package/dist/{contradiction-scan-AKUWPX5N.js → contradiction-scan-NOYMFG66.js} +3 -3
  264. package/dist/contradiction-scan-NOYMFG66.js.map +1 -0
  265. package/dist/converge-config.d.ts +2 -2
  266. package/dist/convergence-refresh.d.ts +5 -3
  267. package/dist/convergence-refresh.js +36 -36
  268. package/dist/conversation-index/backend.d.ts +2 -2
  269. package/dist/conversation-index/chunker.d.ts +2 -2
  270. package/dist/conversation-index/faiss-adapter.d.ts +2 -2
  271. package/dist/conversation-index/indexer.d.ts +2 -2
  272. package/dist/conversation-index/search.d.ts +2 -2
  273. package/dist/corpus-watermark.d.ts +2 -2
  274. package/dist/corpus-watermark.js +35 -35
  275. package/dist/cross-lingual-recall.d.ts +2 -2
  276. package/dist/dashboard-runtime.js +2 -2
  277. package/dist/day-summary.d.ts +2 -2
  278. package/dist/delinearize.d.ts +2 -2
  279. package/dist/dependency-propagation-config.d.ts +2 -2
  280. package/dist/{dependency-propagation-delivery-BGcNairQ.d.ts → dependency-propagation-delivery-BCpeo14F.d.ts} +1 -1
  281. package/dist/direct-answer-wiring.d.ts +2 -2
  282. package/dist/direct-answer.d.ts +2 -2
  283. package/dist/embedding-fallback.d.ts +2 -2
  284. package/dist/enrichment/index.d.ts +2 -2
  285. package/dist/entity-origin-fields.d.ts +2 -2
  286. package/dist/entity-retrieval.d.ts +5 -3
  287. package/dist/entity-retrieval.js +34 -34
  288. package/dist/entity-schema.d.ts +2 -2
  289. package/dist/episodic-context.d.ts +2 -2
  290. package/dist/eval-trajectory-contracts.d.ts +2 -2
  291. package/dist/eval-trajectory-store.d.ts +2 -2
  292. package/dist/eval-trajectory.d.ts +2 -2
  293. package/dist/event-order-recall.js +3 -3
  294. package/dist/explicit-capture.d.ts +13 -12
  295. package/dist/explicit-capture.js +12 -12
  296. package/dist/external-wiki-access.d.ts +15 -14
  297. package/dist/external-wiki-access.js +66 -63
  298. package/dist/external-wiki-collection-registration.d.ts +2 -2
  299. package/dist/external-wiki-collection.d.ts +2 -2
  300. package/dist/external-wiki-mcp-tools.d.ts +15 -14
  301. package/dist/extraction-error-classification.d.ts +2 -2
  302. package/dist/extraction-faithfulness.d.ts +2 -2
  303. package/dist/extraction-faithfulness.js +2 -2
  304. package/dist/extraction-judge-telemetry.d.ts +2 -2
  305. package/dist/extraction-judge-training.d.ts +2 -2
  306. package/dist/extraction-judge.d.ts +2 -2
  307. package/dist/extraction-judge.js +2 -2
  308. package/dist/extraction-liveness.d.ts +2 -2
  309. package/dist/extraction-normalization.d.ts +2 -2
  310. package/dist/extraction-prompt.d.ts +2 -2
  311. package/dist/extraction-source-grounding-rules.d.ts +2 -2
  312. package/dist/extraction-source-grounding.d.ts +2 -2
  313. package/dist/extraction.d.ts +2 -2
  314. package/dist/extraction.js +47 -44
  315. package/dist/fallback-llm.d.ts +8 -2
  316. package/dist/fallback-llm.js +1 -1
  317. package/dist/{first-start-migration-4NETATFF.js → first-start-migration-KHIMCBIC.js} +3 -3
  318. package/dist/{forget-SZ2BXDGF.js → forget-2AE4MDK3.js} +3 -3
  319. package/dist/graph-dashboard-diff.d.ts +2 -2
  320. package/dist/graph-dashboard-key.d.ts +2 -2
  321. package/dist/graph-dashboard-parser.d.ts +2 -2
  322. package/dist/graph-edge-reinforcement.d.ts +2 -2
  323. package/dist/graph-path-reconstruction.d.ts +2 -2
  324. package/dist/graph-path-scoring.d.ts +2 -2
  325. package/dist/graph-snapshot.d.ts +2 -2
  326. package/dist/graph.d.ts +2 -2
  327. package/dist/harmonic-retrieval.js +1 -1
  328. package/dist/importance.d.ts +2 -2
  329. package/dist/importers/index.d.ts +2 -2
  330. package/dist/in-flight-reads.d.ts +2 -2
  331. package/dist/{index-By2QUAMh.d.ts → index-D_pyMUaP.d.ts} +2 -2
  332. package/dist/index.d.ts +261 -30
  333. package/dist/index.js +321 -257
  334. package/dist/intent.d.ts +2 -2
  335. package/dist/lcm/engine.d.ts +3 -3
  336. package/dist/lcm/engine.js +5 -4
  337. package/dist/lcm/index.d.ts +4 -3
  338. package/dist/lcm/index.js +12 -11
  339. package/dist/lcm/summarizer.d.ts +4 -6
  340. package/dist/lcm/summarizer.js +2 -1
  341. package/dist/lcm/tools.d.ts +4 -4
  342. package/dist/lifecycle.d.ts +2 -2
  343. package/dist/live-connectors-runner.d.ts +2 -2
  344. package/dist/local-llm.d.ts +2 -2
  345. package/dist/local-model-endpoint.d.ts +2 -2
  346. package/dist/location/index.d.ts +315 -6
  347. package/dist/location/index.js +151 -19
  348. package/dist/maintenance/memory-governance.d.ts +2 -2
  349. package/dist/maintenance/memory-governance.js +34 -34
  350. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +5 -3
  351. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +33 -33
  352. package/dist/maintenance/rebuild-memory-projection.d.ts +5 -3
  353. package/dist/maintenance/rebuild-memory-projection.js +35 -35
  354. package/dist/{maintenance-Dm2McrIx.d.ts → maintenance-DDUX9d6D.d.ts} +3 -3
  355. package/dist/mcp-memory-inspector-app.d.ts +15 -14
  356. package/dist/mcp-read-only-tools.js +1 -1
  357. package/dist/memory-action-policy.d.ts +18 -3
  358. package/dist/memory-action-policy.js +3 -1
  359. package/dist/memory-cache.d.ts +2 -2
  360. package/dist/memory-controller.d.ts +2 -2
  361. package/dist/memory-controller.js +2 -2
  362. package/dist/memory-lifecycle-ledger-utils.d.ts +2 -2
  363. package/dist/memory-projection-mutations.js +3 -3
  364. package/dist/memory-projection-store.d.ts +2 -2
  365. package/dist/memory-projection-store.js +1 -1
  366. package/dist/memory-provenance.d.ts +2 -2
  367. package/dist/memory-snapshot.d.ts +2 -2
  368. package/dist/memory-subject-cli.d.ts +15 -14
  369. package/dist/memory-subject.d.ts +15 -14
  370. package/dist/memory-subject.js +5 -5
  371. package/dist/memory-worth-outcomes.d.ts +5 -3
  372. package/dist/models-json.d.ts +2 -2
  373. package/dist/namespaces/migrate.d.ts +6 -4
  374. package/dist/namespaces/migrate.js +34 -34
  375. package/dist/namespaces/principal.d.ts +2 -2
  376. package/dist/namespaces/search.d.ts +2 -2
  377. package/dist/namespaces/search.js +8 -8
  378. package/dist/namespaces/storage.d.ts +6 -4
  379. package/dist/namespaces/storage.js +33 -33
  380. package/dist/native-knowledge.d.ts +2 -2
  381. package/dist/offline-sync-file-io.js +3 -3
  382. package/dist/offline-sync-impression-drain.d.ts +2 -2
  383. package/dist/offline-sync-impression-drain.js +9 -9
  384. package/dist/offline-sync.js +4 -4
  385. package/dist/operator-doctor-corpus.d.ts +2 -2
  386. package/dist/operator-doctor-corpus.js +36 -36
  387. package/dist/operator-doctor-replica.d.ts +2 -2
  388. package/dist/operator-toolkit.d.ts +6 -4
  389. package/dist/operator-toolkit.js +56 -55
  390. package/dist/orchestration/compression-guideline-coordinator.d.ts +5 -3
  391. package/dist/orchestration/maintenance.d.ts +7 -5
  392. package/dist/orchestration/maintenance.js +48 -47
  393. package/dist/{orchestrator-Co1DyfuP.d.ts → orchestrator-3F4jihCo.d.ts} +8 -8
  394. package/dist/orchestrator.d.ts +13 -12
  395. package/dist/orchestrator.js +182 -174
  396. package/dist/page-versioning.js +3 -3
  397. package/dist/patterns-cli.d.ts +2 -2
  398. package/dist/{pipeline-DotMnb6y.d.ts → pipeline-CB1dj6Uh.d.ts} +1 -1
  399. package/dist/policy-runtime.d.ts +2 -2
  400. package/dist/proactive-contention.d.ts +2 -2
  401. package/dist/provenance.d.ts +2 -2
  402. package/dist/{public-http-PJRtnSi-.d.ts → public-http-34-JIAGQ.d.ts} +1 -1
  403. package/dist/{purge-GB7PZHT2.js → purge-OP6BEDFY.js} +2 -2
  404. package/dist/{qmd-BP0n11fR.d.ts → qmd-edLLZXc5.d.ts} +1 -1
  405. package/dist/qmd-preflight.d.ts +3 -3
  406. package/dist/qmd-recall-cache.d.ts +2 -2
  407. package/dist/qmd.d.ts +3 -3
  408. package/dist/qmd.js +4 -4
  409. package/dist/recall-concurrency-config.d.ts +2 -2
  410. package/dist/recall-disclosure-escalation.d.ts +2 -2
  411. package/dist/recall-explain-renderer.d.ts +2 -2
  412. package/dist/recall-explain-renderer.js +3 -3
  413. package/dist/recall-memory-map.d.ts +2 -2
  414. package/dist/recall-planner-llm.d.ts +2 -2
  415. package/dist/recall-planner-llm.js +1 -1
  416. package/dist/recall-state.d.ts +2 -2
  417. package/dist/recall-tag-filter.d.ts +2 -2
  418. package/dist/recall-timings.d.ts +2 -2
  419. package/dist/recall-xray-cli.d.ts +2 -2
  420. package/dist/recall-xray-cli.js +4 -4
  421. package/dist/recall-xray-renderer.d.ts +2 -2
  422. package/dist/recall-xray-renderer.js +3 -3
  423. package/dist/recall-xray.d.ts +2 -2
  424. package/dist/recall-xray.js +2 -2
  425. package/dist/reconcile/cursor.d.ts +2 -2
  426. package/dist/reconcile/manifest.d.ts +2 -2
  427. package/dist/reconcile/manifest.js +5 -5
  428. package/dist/reconcile/plan.d.ts +2 -2
  429. package/dist/replay/normalizers/chatgpt.d.ts +2 -2
  430. package/dist/replay/normalizers/claude.d.ts +2 -2
  431. package/dist/replay/normalizers/openclaw.d.ts +2 -2
  432. package/dist/replay/normalizers/shared.d.ts +2 -2
  433. package/dist/replay/runner.d.ts +2 -2
  434. package/dist/replay/types.d.ts +2 -2
  435. package/dist/replica-divergence.d.ts +2 -2
  436. package/dist/replica-peers-config.d.ts +2 -2
  437. package/dist/{resolution-4552BNRV.js → resolution-4DLI3IOR.js} +11 -11
  438. package/dist/resolution-4DLI3IOR.js.map +1 -0
  439. package/dist/resolve-auth-token.d.ts +2 -2
  440. package/dist/resume-bundles.js +18 -17
  441. package/dist/retrieval-agents.d.ts +3 -3
  442. package/dist/retrieval-tiers.d.ts +2 -2
  443. package/dist/routing/engine.d.ts +2 -2
  444. package/dist/routing/store.d.ts +2 -2
  445. package/dist/salvage-envelope.d.ts +2 -2
  446. package/dist/salvage-envelope.js +7 -7
  447. package/dist/schemas.d.ts +572 -107
  448. package/dist/schemas.js +3 -1
  449. package/dist/{scope-profiles-6ChZKTy-.d.ts → scope-profiles-BF2lu81V.d.ts} +1 -1
  450. package/dist/search/document-scanner.js +1 -1
  451. package/dist/search/embed-helper.d.ts +2 -2
  452. package/dist/search/factory.d.ts +2 -2
  453. package/dist/search/factory.js +7 -7
  454. package/dist/search/index.d.ts +2 -2
  455. package/dist/search/index.js +13 -13
  456. package/dist/search/lancedb-backend.d.ts +2 -2
  457. package/dist/search/lancedb-backend.js +1 -1
  458. package/dist/search/meilisearch-backend.d.ts +2 -2
  459. package/dist/search/meilisearch-backend.js +1 -1
  460. package/dist/search/noop-backend.d.ts +2 -2
  461. package/dist/search/orama-backend.d.ts +2 -2
  462. package/dist/search/orama-backend.js +1 -1
  463. package/dist/search/port.d.ts +2 -2
  464. package/dist/search/remote-backend.d.ts +2 -2
  465. package/dist/secure-store/index.js +3 -3
  466. package/dist/{semantic-consolidation-DziYcW5J.d.ts → semantic-consolidation-5OuWXBRt.d.ts} +1 -1
  467. package/dist/semantic-consolidation.d.ts +3 -3
  468. package/dist/semantic-consolidation.js +37 -37
  469. package/dist/semantic-rule-promotion.js +33 -33
  470. package/dist/semantic-rule-verifier.d.ts +2 -2
  471. package/dist/semantic-rule-verifier.js +33 -33
  472. package/dist/{service-C7rIBuK_.d.ts → service-CrqEhLXD.d.ts} +2 -2
  473. package/dist/session-observer-bands.d.ts +2 -2
  474. package/dist/session-observer-state.d.ts +2 -2
  475. package/dist/shared-context/manager.d.ts +2 -2
  476. package/dist/signal.d.ts +2 -2
  477. package/dist/source-agent-qualifier.d.ts +2 -2
  478. package/dist/source-agent-qualifier.js +42 -39
  479. package/dist/standup/build.d.ts +16 -0
  480. package/dist/standup/build.js +17 -0
  481. package/dist/standup/build.js.map +1 -0
  482. package/dist/{storage-B1hEx8Xg.d.ts → storage-BQn-xnxm.d.ts} +4 -1
  483. package/dist/storage.d.ts +5 -3
  484. package/dist/storage.js +32 -32
  485. package/dist/subject-config.d.ts +2 -2
  486. package/dist/subject-config.js +6 -6
  487. package/dist/summarizer.d.ts +2 -2
  488. package/dist/summarizer.js +2 -2
  489. package/dist/summary-snapshot.d.ts +2 -2
  490. package/dist/support-passport/index.d.ts +20 -19
  491. package/dist/support-passport/index.js +68 -65
  492. package/dist/temporal-supersession.d.ts +3 -3
  493. package/dist/temporal-timeline-recall.d.ts +2 -2
  494. package/dist/temporal-validity.d.ts +2 -2
  495. package/dist/threading.d.ts +2 -2
  496. package/dist/tier-migration.d.ts +5 -3
  497. package/dist/tier-routing.d.ts +2 -2
  498. package/dist/tier-routing.js +2 -2
  499. package/dist/{tier-stats-4B5IJ3NE.js → tier-stats-2TOW3QNL.js} +3 -3
  500. package/dist/topics.d.ts +2 -2
  501. package/dist/transcript.d.ts +2 -2
  502. package/dist/transfer/capsule-export.js +2 -2
  503. package/dist/transfer/capsule-import.js +5 -5
  504. package/dist/transfer/export-okf.d.ts +39 -0
  505. package/dist/transfer/export-okf.js +112 -0
  506. package/dist/transfer/export-okf.js.map +1 -0
  507. package/dist/transfer/types.d.ts +12 -12
  508. package/dist/trust-score-stage.d.ts +2 -2
  509. package/dist/trust-score.d.ts +2 -2
  510. package/dist/{types-BHDNxGTT.d.ts → types-BRpcNjHZ.d.ts} +119 -3
  511. package/dist/types.d.ts +2 -2
  512. package/dist/types.js +1 -1
  513. package/dist/utility-runtime.d.ts +2 -2
  514. package/dist/verified-recall.js +33 -33
  515. package/dist/who-knows-cli.d.ts +15 -14
  516. package/dist/who-knows-cli.js +34 -34
  517. package/dist/who-knows.d.ts +15 -14
  518. package/dist/who-knows.js +33 -33
  519. package/dist/write-envelope.d.ts +2 -2
  520. package/dist/write-envelope.js +6 -6
  521. package/package.json +54 -3
  522. package/src/access-admin-ops-surface.ts +6 -1
  523. package/src/access-boundary.ts +1 -0
  524. package/src/access-http.ts +3 -1
  525. package/src/access-mcp-output-schemas.ts +1 -0
  526. package/src/access-mcp.ts +3 -3
  527. package/src/access-operations.ts +1 -0
  528. package/src/access-service-offline-file-content.test.ts +63 -0
  529. package/src/access-surface-catalog.ts +2 -0
  530. package/src/active-context-config.ts +98 -0
  531. package/src/active-context-transform.test.ts +533 -0
  532. package/src/active-context-transform.ts +981 -0
  533. package/src/activity/config.test.ts +1 -0
  534. package/src/activity/config.ts +21 -1
  535. package/src/activity/index.ts +1 -0
  536. package/src/activity/timeline/build.ts +279 -0
  537. package/src/activity/timeline/categories.ts +111 -0
  538. package/src/activity/timeline/classify.ts +110 -0
  539. package/src/activity/timeline/corrections.ts +145 -0
  540. package/src/activity/timeline/index.ts +6 -0
  541. package/src/activity/timeline/timeline.test.ts +277 -0
  542. package/src/activity/timeline/types.ts +106 -0
  543. package/src/activity/types.ts +6 -0
  544. package/src/cli/okf-commands.ts +45 -0
  545. package/src/cli.ts +2 -2
  546. package/src/coding/export-okf-codegraph.test.ts +381 -0
  547. package/src/coding/export-okf-codegraph.ts +565 -0
  548. package/src/config.test.ts +1 -0
  549. package/src/config.ts +3 -5
  550. package/src/context-summary.ts +182 -0
  551. package/src/extraction-prompt-safety.test.ts +14 -2
  552. package/src/extraction.ts +21 -1
  553. package/src/fallback-llm.test.ts +134 -0
  554. package/src/fallback-llm.ts +77 -5
  555. package/src/index.ts +4 -11
  556. package/src/lcm/summarizer.ts +14 -93
  557. package/src/location/access-operations.ts +17 -8
  558. package/src/location/backfill.ts +137 -0
  559. package/src/location/config.test.ts +3 -0
  560. package/src/location/config.ts +46 -2
  561. package/src/location/http-glue.ts +1 -1
  562. package/src/location/index.ts +3 -0
  563. package/src/location/intervals.ts +1 -0
  564. package/src/location/matching.test.ts +65 -0
  565. package/src/location/matching.ts +354 -0
  566. package/src/location/mcp-tools.ts +2 -1
  567. package/src/location/surfaces.test.ts +15 -2
  568. package/src/location/surfaces.ts +95 -18
  569. package/src/location/tagging.test.ts +119 -0
  570. package/src/location/tagging.ts +277 -0
  571. package/src/location/types.ts +23 -1
  572. package/src/mcp-read-only-tools.ts +1 -0
  573. package/src/memory-action-policy.ts +28 -0
  574. package/src/memory-projection-store.ts +3 -1
  575. package/src/okf/cli.ts +18 -5
  576. package/src/okf/config.ts +5 -0
  577. package/src/okf/index-files.test.ts +60 -0
  578. package/src/okf/index-files.ts +114 -0
  579. package/src/okf/render.ts +133 -0
  580. package/src/okf/type-mapping.test.ts +3 -0
  581. package/src/okf/type-mapping.ts +2 -0
  582. package/src/orchestration/extraction-run.ts +2 -1
  583. package/src/orchestration/generic-recall-paths.ts +4 -3
  584. package/src/schemas.ts +17 -1
  585. package/src/standup/access-operations.ts +14 -0
  586. package/src/standup/build.test.ts +34 -0
  587. package/src/standup/build.ts +115 -0
  588. package/src/standup/http-glue.ts +15 -0
  589. package/src/standup/mcp-tools.ts +16 -0
  590. package/src/storage/context-transform-ledger.ts +39 -0
  591. package/src/storage/secure-line-reader.ts +50 -1
  592. package/src/storage.ts +4 -1
  593. package/src/support-passport/card-projection.ts +1 -0
  594. package/src/support-passport/card-service-commit-forwarding.test.ts +1 -0
  595. package/src/support-passport/card-service.test.ts +75 -1
  596. package/src/support-passport/card-service.ts +6 -3
  597. package/src/support-passport/card-state.ts +5 -1
  598. package/src/support-passport/offline-sync-guard.ts +14 -1
  599. package/src/transfer/export-okf.test.ts +164 -0
  600. package/src/transfer/export-okf.ts +286 -0
  601. package/src/types.ts +2 -3
  602. package/dist/chunk-2LWQSV6A.js.map +0 -1
  603. package/dist/chunk-3BCULS4U.js.map +0 -1
  604. package/dist/chunk-7BDZTALN.js.map +0 -1
  605. package/dist/chunk-7PHI6GUI.js.map +0 -1
  606. package/dist/chunk-AFR6AIM4.js.map +0 -1
  607. package/dist/chunk-AX7UXCHJ.js.map +0 -1
  608. package/dist/chunk-BJTHRFFC.js.map +0 -1
  609. package/dist/chunk-D4QVPP3G.js.map +0 -1
  610. package/dist/chunk-DVYRD4HY.js.map +0 -1
  611. package/dist/chunk-F635GAL7.js.map +0 -1
  612. package/dist/chunk-FMQ4MOQO.js.map +0 -1
  613. package/dist/chunk-FP7YTTVO.js.map +0 -1
  614. package/dist/chunk-I4343FIA.js.map +0 -1
  615. package/dist/chunk-I7EX6KSH.js.map +0 -1
  616. package/dist/chunk-LBFFNDFM.js.map +0 -1
  617. package/dist/chunk-LLQCM2U2.js.map +0 -1
  618. package/dist/chunk-RQE4TITU.js.map +0 -1
  619. package/dist/chunk-UW5NPZJ2.js.map +0 -1
  620. package/dist/chunk-XAB6STPO.js.map +0 -1
  621. package/dist/chunk-ZPUIRTIZ.js.map +0 -1
  622. package/dist/types-CM86alG1.d.ts +0 -89
  623. /package/dist/{contradiction-scan-AKUWPX5N.js.map → active-context-config.js.map} +0 -0
  624. /package/dist/{resolution-4552BNRV.js.map → active-context-transform.js.map} +0 -0
  625. /package/dist/{auto-sync-XVMLL2RH.js.map → auto-sync-Q6Q2FVSC.js.map} +0 -0
  626. /package/dist/{capsule-merge-SGIVB3WA.js.map → capsule-merge-SEHERWWP.js.map} +0 -0
  627. /package/dist/{chunk-CFGU52XJ.js.map → chunk-23CVL7HS.js.map} +0 -0
  628. /package/dist/{chunk-PO7NXBG2.js.map → chunk-2GF27PGH.js.map} +0 -0
  629. /package/dist/{chunk-6CPUQ5D6.js.map → chunk-2LBAFHOQ.js.map} +0 -0
  630. /package/dist/{chunk-JBPKEARU.js.map → chunk-2QSZNTDO.js.map} +0 -0
  631. /package/dist/{chunk-IP4ZNT4U.js.map → chunk-33MFRY25.js.map} +0 -0
  632. /package/dist/{chunk-VFYRYFLL.js.map → chunk-3TSU662L.js.map} +0 -0
  633. /package/dist/{chunk-VXVZ2GM3.js.map → chunk-4FHRZD5T.js.map} +0 -0
  634. /package/dist/{chunk-5VPQSRQO.js.map → chunk-4STAANV7.js.map} +0 -0
  635. /package/dist/{chunk-46WM6JX2.js.map → chunk-4ZWCQJNM.js.map} +0 -0
  636. /package/dist/{chunk-52II7PB6.js.map → chunk-645WOU5I.js.map} +0 -0
  637. /package/dist/{chunk-YKWFK7XA.js.map → chunk-6CEGSTBD.js.map} +0 -0
  638. /package/dist/{chunk-GEPACVWN.js.map → chunk-6RUHELWR.js.map} +0 -0
  639. /package/dist/{chunk-ZAOHJDKH.js.map → chunk-72OIT7KS.js.map} +0 -0
  640. /package/dist/{chunk-KQAFEZQX.js.map → chunk-7LCGFUMB.js.map} +0 -0
  641. /package/dist/{chunk-7TCGNUVP.js.map → chunk-7UTDHQZ5.js.map} +0 -0
  642. /package/dist/{chunk-5HK3CJAR.js.map → chunk-7XOG75AU.js.map} +0 -0
  643. /package/dist/{chunk-C24UZSFW.js.map → chunk-CEH2AFXG.js.map} +0 -0
  644. /package/dist/{chunk-YOXVZJFM.js.map → chunk-CFVTRUR3.js.map} +0 -0
  645. /package/dist/{chunk-ACOC27BB.js.map → chunk-CN4VKV3S.js.map} +0 -0
  646. /package/dist/{chunk-PMVPCZJZ.js.map → chunk-CTCGHNWN.js.map} +0 -0
  647. /package/dist/{chunk-EGBDFJ36.js.map → chunk-DD5JFCWM.js.map} +0 -0
  648. /package/dist/{chunk-T42L3S6A.js.map → chunk-DDX6KIXF.js.map} +0 -0
  649. /package/dist/{chunk-JIYDRBVZ.js.map → chunk-DJORULH3.js.map} +0 -0
  650. /package/dist/{chunk-WTOZBZNN.js.map → chunk-DMEHOEC7.js.map} +0 -0
  651. /package/dist/{chunk-OPPBTPUU.js.map → chunk-DUAJKRR2.js.map} +0 -0
  652. /package/dist/{chunk-SVVIASVX.js.map → chunk-EFQCDJZ2.js.map} +0 -0
  653. /package/dist/{chunk-Q57GOHLF.js.map → chunk-EGALNSZ4.js.map} +0 -0
  654. /package/dist/{chunk-KCT36JAW.js.map → chunk-ESNFSSO4.js.map} +0 -0
  655. /package/dist/{chunk-XQ3HXAQH.js.map → chunk-ET2CNMLD.js.map} +0 -0
  656. /package/dist/{chunk-Z4U3UN56.js.map → chunk-EZSCW4EM.js.map} +0 -0
  657. /package/dist/{chunk-F6QHHRWP.js.map → chunk-FESUGFIL.js.map} +0 -0
  658. /package/dist/{chunk-S3K2CIK5.js.map → chunk-FKKGCGYL.js.map} +0 -0
  659. /package/dist/{chunk-BWGCOLEL.js.map → chunk-FTTJRVB7.js.map} +0 -0
  660. /package/dist/{chunk-JAQXUGLN.js.map → chunk-FYWLSFFS.js.map} +0 -0
  661. /package/dist/{chunk-OPGL46PX.js.map → chunk-GX6FTSYH.js.map} +0 -0
  662. /package/dist/{chunk-A32YEQAM.js.map → chunk-H7VDIF2V.js.map} +0 -0
  663. /package/dist/{chunk-PDDSFELN.js.map → chunk-HJXA6ZM7.js.map} +0 -0
  664. /package/dist/{chunk-RGCF4XNH.js.map → chunk-HNPE66LB.js.map} +0 -0
  665. /package/dist/{chunk-SEA6M7SS.js.map → chunk-I5VB44ZK.js.map} +0 -0
  666. /package/dist/{chunk-SDEPLF7V.js.map → chunk-IBJ6U753.js.map} +0 -0
  667. /package/dist/{chunk-EUYWQ7TS.js.map → chunk-IEZ6CGTW.js.map} +0 -0
  668. /package/dist/{chunk-3RI5Y7KU.js.map → chunk-IVIAHQBR.js.map} +0 -0
  669. /package/dist/{chunk-7WR462EM.js.map → chunk-J3OND5QT.js.map} +0 -0
  670. /package/dist/{chunk-T3JQTCCO.js.map → chunk-JI7U6AS3.js.map} +0 -0
  671. /package/dist/{chunk-I32NKXE2.js.map → chunk-JTWZKNUH.js.map} +0 -0
  672. /package/dist/{chunk-VKCAHCBI.js.map → chunk-L4X4PJYK.js.map} +0 -0
  673. /package/dist/{chunk-W4BMEGQA.js.map → chunk-LUDBXTBJ.js.map} +0 -0
  674. /package/dist/{chunk-RIAM7DND.js.map → chunk-ME35HVDJ.js.map} +0 -0
  675. /package/dist/{chunk-NG3MBQV4.js.map → chunk-MJRGVXPQ.js.map} +0 -0
  676. /package/dist/{chunk-773TRRGT.js.map → chunk-MJUCDM3C.js.map} +0 -0
  677. /package/dist/{chunk-7F27PCSN.js.map → chunk-MN5NOOI7.js.map} +0 -0
  678. /package/dist/{chunk-JCWY73FK.js.map → chunk-N4F7ZSSG.js.map} +0 -0
  679. /package/dist/{chunk-TR7DGXGI.js.map → chunk-NACLNNFQ.js.map} +0 -0
  680. /package/dist/{chunk-LC2BDILZ.js.map → chunk-NBP4EX5N.js.map} +0 -0
  681. /package/dist/{chunk-ZVPVTPGI.js.map → chunk-NNZFPYYX.js.map} +0 -0
  682. /package/dist/{chunk-MFOSZUIT.js.map → chunk-NPIBN2VL.js.map} +0 -0
  683. /package/dist/{chunk-IY7UXD3J.js.map → chunk-O57GM3FR.js.map} +0 -0
  684. /package/dist/{chunk-I2HTKOOP.js.map → chunk-O7ERGZDA.js.map} +0 -0
  685. /package/dist/{chunk-GTSVEEP3.js.map → chunk-OAJMQKQR.js.map} +0 -0
  686. /package/dist/{chunk-HSZMX3ZJ.js.map → chunk-ODW5GDFE.js.map} +0 -0
  687. /package/dist/{chunk-J2WC5LF4.js.map → chunk-QBC33MPY.js.map} +0 -0
  688. /package/dist/{chunk-EOHKUWXW.js.map → chunk-QCRJMU5V.js.map} +0 -0
  689. /package/dist/{chunk-5DH6PG4B.js.map → chunk-RZ3IZIJG.js.map} +0 -0
  690. /package/dist/{chunk-AAXJNINV.js.map → chunk-SN4JXNLL.js.map} +0 -0
  691. /package/dist/{chunk-SVSRPG6M.js.map → chunk-TNGH4ZYI.js.map} +0 -0
  692. /package/dist/{chunk-HZNYJN77.js.map → chunk-TNXNECAN.js.map} +0 -0
  693. /package/dist/{chunk-JOEJG4SD.js.map → chunk-TVW4C7PV.js.map} +0 -0
  694. /package/dist/{chunk-UFKPQBXH.js.map → chunk-U62OK7BB.js.map} +0 -0
  695. /package/dist/{chunk-R2MZCYA6.js.map → chunk-UNUMFURP.js.map} +0 -0
  696. /package/dist/{chunk-YRVAKONL.js.map → chunk-VQ4AMTGZ.js.map} +0 -0
  697. /package/dist/{chunk-RAIUTAZZ.js.map → chunk-WKAXBXVA.js.map} +0 -0
  698. /package/dist/{chunk-ZIJDI4CP.js.map → chunk-WKJFIMVN.js.map} +0 -0
  699. /package/dist/{chunk-SXIMQLGV.js.map → chunk-WVGXCBOC.js.map} +0 -0
  700. /package/dist/{chunk-7BEPVIH3.js.map → chunk-X5YYSAZX.js.map} +0 -0
  701. /package/dist/{chunk-FZEEWOI2.js.map → chunk-XJJYSX6F.js.map} +0 -0
  702. /package/dist/{chunk-UG6VXIOK.js.map → chunk-XSTNGNJP.js.map} +0 -0
  703. /package/dist/{chunk-YDPAE2RD.js.map → chunk-YFLLGRXO.js.map} +0 -0
  704. /package/dist/{chunk-EZ25VE3G.js.map → chunk-YNDLCWXS.js.map} +0 -0
  705. /package/dist/{chunk-ANJXPFRS.js.map → chunk-YXFCALVT.js.map} +0 -0
  706. /package/dist/{chunk-Q4WONDMJ.js.map → chunk-YYGZJPOK.js.map} +0 -0
  707. /package/dist/{chunk-5HERQ5FX.js.map → chunk-Z3YEGSR4.js.map} +0 -0
  708. /package/dist/{chunk-YWSQD2IB.js.map → chunk-ZJPM7GZ3.js.map} +0 -0
  709. /package/dist/{chunk-5S4LQOPE.js.map → chunk-ZW4VXELZ.js.map} +0 -0
  710. /package/dist/{first-start-migration-4NETATFF.js.map → first-start-migration-KHIMCBIC.js.map} +0 -0
  711. /package/dist/{forget-SZ2BXDGF.js.map → forget-2AE4MDK3.js.map} +0 -0
  712. /package/dist/{purge-GB7PZHT2.js.map → purge-OP6BEDFY.js.map} +0 -0
  713. /package/dist/{tier-stats-4B5IJ3NE.js.map → tier-stats-2TOW3QNL.js.map} +0 -0
@@ -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,29 +5,42 @@ 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
+ backupMemoryDir
18
+ } from "./chunk-2NLLXCJG.js";
19
+ import {
20
+ exportJsonBundle
21
+ } from "./chunk-UP6MOYCB.js";
22
+ import {
23
+ exportOkfBundle,
24
+ parseIncludeStatus
25
+ } from "./chunk-GSKINLAK.js";
26
+ import {
27
+ exportSqlite
28
+ } from "./chunk-BV2TIZ4F.js";
19
29
  import {
20
30
  detectImportFormat
21
31
  } from "./chunk-OZKVVUJB.js";
22
32
  import {
23
33
  importJsonBundle
24
34
  } from "./chunk-2DL3OFLD.js";
25
- import {
26
- backupMemoryDir
27
- } from "./chunk-2NLLXCJG.js";
28
35
  import {
29
36
  exportMarkdownBundle
30
37
  } from "./chunk-765K3SAT.js";
31
38
  import {
32
- exportJsonBundle
33
- } from "./chunk-UP6MOYCB.js";
39
+ RoutingRulesStore
40
+ } from "./chunk-TBUEE7XF.js";
41
+ import {
42
+ WebDavServer
43
+ } from "./chunk-PYIFUBRK.js";
34
44
  import {
35
45
  buildReplayNormalizerRegistry,
36
46
  clampBatchSize,
@@ -41,35 +51,32 @@ import {
41
51
  normalizeReplaySessionKey
42
52
  } from "./chunk-AJVLDJU6.js";
43
53
  import {
44
- RoutingRulesStore
45
- } from "./chunk-TBUEE7XF.js";
54
+ rebuildObservations
55
+ } from "./chunk-DQTCGVFK.js";
46
56
  import {
47
57
  TailscaleHelper
48
58
  } from "./chunk-EEC4PCG5.js";
49
- import {
50
- WebDavServer
51
- } from "./chunk-PYIFUBRK.js";
52
59
  import {
53
60
  migrateObservations
54
61
  } from "./chunk-IIFFC3RL.js";
55
62
  import {
56
63
  rebuildMemoryLifecycleLedger
57
- } from "./chunk-7WR462EM.js";
58
- import {
59
- rebuildObservations
60
- } from "./chunk-DQTCGVFK.js";
64
+ } from "./chunk-J3OND5QT.js";
61
65
  import {
62
66
  archiveObservations
63
67
  } from "./chunk-YLBE6PLR.js";
68
+ import {
69
+ lintOkfDir
70
+ } from "./chunk-K66OY4EI.js";
71
+ import {
72
+ runCompatChecks
73
+ } from "./chunk-CDKHKZL5.js";
64
74
  import {
65
75
  getBulkImportSource,
66
76
  listBulkImportSources,
67
77
  registerBulkImportSource,
68
78
  runBulkImportPipeline
69
79
  } from "./chunk-HSSERO3E.js";
70
- import {
71
- runCompatChecks
72
- } from "./chunk-CDKHKZL5.js";
73
80
  import {
74
81
  getUtilityLearningStatus,
75
82
  learnUtilityPromotionWeights
@@ -80,21 +87,21 @@ import {
80
87
  } from "./chunk-6FC3IZ26.js";
81
88
  import {
82
89
  searchVerifiedEpisodes
83
- } from "./chunk-YWSQD2IB.js";
90
+ } from "./chunk-ZJPM7GZ3.js";
84
91
  import {
85
92
  ThreadingManager
86
93
  } from "./chunk-OJP3N7UK.js";
87
94
  import {
88
95
  promoteSemanticRuleFromMemory
89
- } from "./chunk-5DH6PG4B.js";
96
+ } from "./chunk-RZ3IZIJG.js";
90
97
  import {
91
98
  searchVerifiedSemanticRules
92
- } from "./chunk-SEA6M7SS.js";
99
+ } from "./chunk-I5VB44ZK.js";
93
100
  import {
94
101
  buildResumeBundleFromState,
95
102
  getResumeBundleStatus,
96
103
  recordResumeBundle
97
- } from "./chunk-IY7UXD3J.js";
104
+ } from "./chunk-O57GM3FR.js";
98
105
  import {
99
106
  getWorkProductLedgerStatus,
100
107
  recordWorkProductLedgerEntry,
@@ -105,7 +112,11 @@ import {
105
112
  } from "./chunk-AM4T6CHX.js";
106
113
  import {
107
114
  parseXrayCliOptions
108
- } from "./chunk-R2MZCYA6.js";
115
+ } from "./chunk-UNUMFURP.js";
116
+ import {
117
+ readRuntimePolicySnapshot,
118
+ sanitizeRuntimePolicyValues
119
+ } from "./chunk-2LA3H54D.js";
109
120
  import {
110
121
  formatNamespaceMaintenanceHealthText,
111
122
  runBenchmarkRecall,
@@ -114,7 +125,7 @@ import {
114
125
  runOperatorInventory,
115
126
  runOperatorRepair,
116
127
  runOperatorSetup
117
- } from "./chunk-6CPUQ5D6.js";
128
+ } from "./chunk-2LBAFHOQ.js";
118
129
  import {
119
130
  analyzeSessionIntegrity,
120
131
  applySessionRepair,
@@ -129,10 +140,6 @@ import {
129
140
  renderPatternExplain,
130
141
  renderPatternsList
131
142
  } from "./chunk-3T74IZB3.js";
132
- import {
133
- readRuntimePolicySnapshot,
134
- sanitizeRuntimePolicyValues
135
- } from "./chunk-2LA3H54D.js";
136
143
  import {
137
144
  GITHUB_CONNECTOR_ID,
138
145
  GMAIL_CONNECTOR_ID,
@@ -155,7 +162,7 @@ import {
155
162
  } from "./chunk-UOBPK2OS.js";
156
163
  import {
157
164
  searchHarmonicRetrieval
158
- } from "./chunk-YRVAKONL.js";
165
+ } from "./chunk-VQ4AMTGZ.js";
159
166
  import {
160
167
  createEvalBaselineSnapshot,
161
168
  getEvalHarnessStatus,
@@ -170,12 +177,18 @@ import {
170
177
  } from "./chunk-ACPCA4NO.js";
171
178
  import {
172
179
  GraphDashboardServer
173
- } from "./chunk-EZ25VE3G.js";
180
+ } from "./chunk-YNDLCWXS.js";
174
181
  import {
175
182
  rebuildMemoryProjection,
176
183
  repairMemoryProjection,
177
184
  verifyMemoryProjection
178
- } from "./chunk-WTOZBZNN.js";
185
+ } from "./chunk-DMEHOEC7.js";
186
+ import {
187
+ applyCommitmentLedgerLifecycle,
188
+ getCommitmentLedgerStatus,
189
+ recordCommitmentLedgerEntry,
190
+ transitionCommitmentLedgerEntryState
191
+ } from "./chunk-NOB2T2FC.js";
179
192
  import {
180
193
  buildConnectorRowsFromDefinitions,
181
194
  parseConnectorsListOptions,
@@ -185,22 +198,16 @@ import {
185
198
  renderConnectorsRunResult,
186
199
  runConnectorPollOnce
187
200
  } from "./chunk-OKTXM5H4.js";
188
- import {
189
- applyCommitmentLedgerLifecycle,
190
- getCommitmentLedgerStatus,
191
- recordCommitmentLedgerEntry,
192
- transitionCommitmentLedgerEntryState
193
- } from "./chunk-NOB2T2FC.js";
194
201
  import {
195
202
  chunkContent
196
203
  } from "./chunk-6TBIWIAG.js";
197
204
  import {
198
205
  parseConfig
199
- } from "./chunk-D4QVPP3G.js";
206
+ } from "./chunk-PEBH5DCK.js";
200
207
  import {
201
208
  EngramAccessHttpServer,
202
209
  MeetingsInputError
203
- } from "./chunk-FMQ4MOQO.js";
210
+ } from "./chunk-KXIXO76C.js";
204
211
  import {
205
212
  WearablesInputError
206
213
  } from "./chunk-V7IZKJI3.js";
@@ -210,13 +217,13 @@ import {
210
217
  loadChatSession,
211
218
  processChatMessage,
212
219
  sessionBelongsToPrincipal
213
- } from "./chunk-I4343FIA.js";
220
+ } from "./chunk-MAH64N55.js";
214
221
  import {
215
222
  getAbstractionNodeStoreStatus
216
223
  } from "./chunk-DJUKBGAD.js";
217
224
  import {
218
225
  EngramAccessService
219
- } from "./chunk-RQE4TITU.js";
226
+ } from "./chunk-IHGMRDEE.js";
220
227
  import {
221
228
  WorkStorage
222
229
  } from "./chunk-GDB4J2H3.js";
@@ -233,51 +240,54 @@ import {
233
240
  parseRecallExplainFormat,
234
241
  renderRecallExplain,
235
242
  renderXray
236
- } from "./chunk-YOXVZJFM.js";
243
+ } from "./chunk-CFVTRUR3.js";
237
244
  import {
238
245
  readAggregateExtractionWatermark
239
- } from "./chunk-5S4LQOPE.js";
246
+ } from "./chunk-ZW4VXELZ.js";
240
247
  import {
241
248
  getObjectiveStateStoreStatus
242
249
  } from "./chunk-HTP6XRUI.js";
250
+ import {
251
+ listNamespaces,
252
+ runNamespaceMigration,
253
+ verifyNamespaces
254
+ } from "./chunk-4STAANV7.js";
243
255
  import {
244
256
  listMemoryGovernanceRuns,
245
257
  readMemoryGovernanceRunArtifact,
246
258
  restoreMemoryGovernanceRun,
247
259
  runMemoryGovernance
248
- } from "./chunk-SVVIASVX.js";
260
+ } from "./chunk-EFQCDJZ2.js";
249
261
  import {
250
- listNamespaces,
251
- runNamespaceMigration,
252
- verifyNamespaces
253
- } from "./chunk-5VPQSRQO.js";
262
+ resolveNamespaceChildRoot
263
+ } from "./chunk-6RUHELWR.js";
254
264
  import {
255
265
  analyzeGraphHealth
256
266
  } from "./chunk-YMOPYG3K.js";
257
- import {
258
- resolveNamespaceChildRoot
259
- } from "./chunk-GEPACVWN.js";
260
267
  import {
261
268
  OKF_RESERVED_BASENAMES,
262
269
  meetingIdDate,
263
270
  okfTypeForCategory
264
- } from "./chunk-BJTHRFFC.js";
271
+ } from "./chunk-GEJKYA7D.js";
265
272
  import {
266
273
  isValidTranscriptDate
267
274
  } from "./chunk-UHVXE24Y.js";
268
275
  import {
269
276
  RECALL_DISCLOSURE_LEVELS,
270
277
  isRecallDisclosure
271
- } from "./chunk-LBFFNDFM.js";
278
+ } from "./chunk-MINHJ55X.js";
272
279
  import {
273
- composeMemoryEnvelope
274
- } from "./chunk-RAIUTAZZ.js";
280
+ normalizeProjectionPreview
281
+ } from "./chunk-SCU65EZI.js";
275
282
  import {
276
283
  bumpMemoryCorpusVersionForDir
277
284
  } from "./chunk-XCB6QDL6.js";
278
285
  import {
279
286
  renderQmdBacklogStatus
280
287
  } from "./chunk-IUM3VSHI.js";
288
+ import {
289
+ composeMemoryEnvelope
290
+ } from "./chunk-WKAXBXVA.js";
281
291
  import {
282
292
  hostSecretRefResolver,
283
293
  loadHostSecretRefResolver,
@@ -313,20 +323,23 @@ import {
313
323
  renderActionConfidenceText
314
324
  } from "./chunk-Z2YFLXHU.js";
315
325
  import {
316
- STATE_FILE_MAX_DECRYPT_BYTES
317
- } from "./chunk-DVYRD4HY.js";
326
+ writeFileAtomically
327
+ } from "./chunk-AW4QUFQF.js";
318
328
  import {
319
- assertPathInsideRoot,
320
- pathIsInside
321
- } from "./chunk-GCASGYIO.js";
329
+ STATE_FILE_MAX_DECRYPT_BYTES
330
+ } from "./chunk-JRRQ747T.js";
322
331
  import {
323
332
  inferMemoryStatus,
324
333
  isArchivedMemoryPath,
325
334
  toMemoryPathRel
326
335
  } from "./chunk-7RJUVTVF.js";
336
+ import {
337
+ assertPathInsideRoot,
338
+ pathIsInside
339
+ } from "./chunk-GCASGYIO.js";
327
340
  import {
328
341
  isSupportPassportPrivateMemory
329
- } from "./chunk-XDL5CYZN.js";
342
+ } from "./chunk-EEOUMG3J.js";
330
343
  import {
331
344
  selectRouteRule,
332
345
  validateRouteTarget
@@ -355,10 +368,9 @@ import {
355
368
  resolveHomeDir
356
369
  } from "./chunk-JUC24CTX.js";
357
370
  import {
358
- MAGIC_BYTES,
359
371
  SECURE_STORE_ENVELOPE_OVERHEAD_BYTES,
360
372
  probeEncryptedRegularFileHeader
361
- } from "./chunk-XQ3HXAQH.js";
373
+ } from "./chunk-ET2CNMLD.js";
362
374
  import {
363
375
  RECALL_FALLBACK_DIRS
364
376
  } from "./chunk-VS2IYZRU.js";
@@ -367,7 +379,7 @@ import {
367
379
  } from "./chunk-3WCASNQZ.js";
368
380
 
369
381
  // src/cli.ts
370
- import path6 from "path";
382
+ import path7 from "path";
371
383
  import { access, lstat as lstat3, readFile as readFile2, readdir as readdir3, realpath as realpath3, unlink } from "fs/promises";
372
384
  import { createHash } from "crypto";
373
385
 
@@ -1165,99 +1177,12 @@ function registerMeetingsCommands(cmd, orchestrator) {
1165
1177
  });
1166
1178
  }
1167
1179
 
1168
- // src/okf/lint.ts
1169
- import fs from "fs";
1170
- import path from "path";
1171
- function isEncryptedBlob(raw) {
1172
- return raw.startsWith(MAGIC_BYTES.toString("ascii"));
1173
- }
1174
- function hasFrontmatter(raw) {
1175
- return raw.startsWith("---\n") || raw.startsWith("---\r\n");
1176
- }
1177
- function readType(raw) {
1178
- const close = raw.indexOf("\n---", 4);
1179
- if (close === -1) return void 0;
1180
- const block = raw.slice(4, close);
1181
- const match = /^type:[ \t]*(.*)$/m.exec(block);
1182
- if (!match) return void 0;
1183
- const value = match[1].trim().replace(/^["']|["']$/g, "");
1184
- return value;
1185
- }
1186
- function walkMarkdown(root, out) {
1187
- let entries;
1188
- try {
1189
- entries = fs.readdirSync(root, { withFileTypes: true });
1190
- } catch {
1191
- return;
1192
- }
1193
- for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
1194
- if (entry.name === "state" || entry.name === ".git") continue;
1195
- const full = path.join(root, entry.name);
1196
- let stat;
1197
- try {
1198
- stat = fs.lstatSync(full);
1199
- } catch {
1200
- continue;
1201
- }
1202
- if (stat.isSymbolicLink()) continue;
1203
- if (stat.isDirectory()) {
1204
- walkMarkdown(full, out);
1205
- continue;
1206
- }
1207
- if (stat.isFile() && entry.name.endsWith(".md")) out.push(full);
1208
- }
1209
- }
1210
- function lintOkfDir(memoryDir) {
1211
- const files = [];
1212
- walkMarkdown(memoryDir, files);
1213
- const findings = [];
1214
- for (const file of files) {
1215
- const rel = path.relative(memoryDir, file);
1216
- const base = path.basename(file);
1217
- if (OKF_RESERVED_BASENAMES[base] === true) {
1218
- findings.push({
1219
- file: rel,
1220
- code: "reserved_basename",
1221
- message: `${base} is reserved by OKF \xA76/\xA77`
1222
- });
1223
- continue;
1224
- }
1225
- let raw;
1226
- try {
1227
- raw = fs.readFileSync(file, "utf8");
1228
- } catch {
1229
- continue;
1230
- }
1231
- if (isEncryptedBlob(raw)) {
1232
- findings.push({
1233
- file: rel,
1234
- code: "skipped_encrypted",
1235
- message: "skipped (encrypted)"
1236
- });
1237
- continue;
1238
- }
1239
- if (!hasFrontmatter(raw)) {
1240
- findings.push({
1241
- file: rel,
1242
- code: "missing_frontmatter",
1243
- message: "missing YAML frontmatter"
1244
- });
1245
- continue;
1246
- }
1247
- const type = readType(raw);
1248
- if (type === void 0) {
1249
- findings.push({ file: rel, code: "missing_type", message: "missing type" });
1250
- } else if (type.length === 0) {
1251
- findings.push({ file: rel, code: "empty_type", message: "empty type" });
1252
- }
1253
- }
1254
- const actionable = findings.filter((f) => f.code !== "skipped_encrypted");
1255
- return { ok: actionable.length === 0, scanned: files.length, findings };
1256
- }
1180
+ // src/cli/okf-commands.ts
1181
+ import path3 from "path";
1257
1182
 
1258
1183
  // src/okf/sweep.ts
1259
- import fs2 from "fs";
1260
- import path2 from "path";
1184
+ import fs from "fs";
1185
+ import path from "path";
1261
1186
  function insertType(raw, type) {
1262
1187
  const crlf = raw.startsWith("---\r\n");
1263
1188
  if (!crlf && !raw.startsWith("---\n")) return null;
@@ -1295,37 +1220,137 @@ function runOkfConformanceSweep(memoryDir, options) {
1295
1220
  let written = 0;
1296
1221
  for (const finding of lint.findings) {
1297
1222
  if (finding.code !== "missing_type" && finding.code !== "empty_type") continue;
1298
- const file = path2.join(memoryDir, finding.file);
1299
- const raw = fs2.readFileSync(file, "utf8");
1223
+ const file = path.join(memoryDir, finding.file);
1224
+ const raw = fs.readFileSync(file, "utf8");
1300
1225
  const next = insertType(raw, "");
1301
1226
  if (next === null || next === raw) continue;
1302
- fs2.writeFileSync(file, next);
1227
+ fs.writeFileSync(file, next);
1303
1228
  written += 1;
1304
1229
  }
1305
1230
  return { scanned: lint.scanned, written };
1306
1231
  }
1307
1232
 
1233
+ // src/okf/index-files.ts
1234
+ import { readdirSync, readFileSync, statSync, unlinkSync } from "fs";
1235
+ import path2 from "path";
1236
+ var OKF_INDEX_MARKER = "<!-- remnic-okf-index -->";
1237
+ var INDEXED_ROOTS = ["entities", "facts", "corrections", "summaries"];
1238
+ async function runOkfIndexMaintenance(memoryDir, enabled) {
1239
+ const written = [];
1240
+ const removed = [];
1241
+ const dirs = collectIndexDirs(memoryDir);
1242
+ for (const dir of dirs) {
1243
+ const indexPath = path2.join(dir, "index.md");
1244
+ if (!enabled) {
1245
+ if (isGeneratedIndex(indexPath)) {
1246
+ unlinkSync(indexPath);
1247
+ removed.push(indexPath);
1248
+ }
1249
+ continue;
1250
+ }
1251
+ const next = renderIndex(dir);
1252
+ if (next === null) continue;
1253
+ if (isUnchangedGenerated(indexPath, next)) continue;
1254
+ await writeFileAtomically(indexPath, next);
1255
+ written.push(indexPath);
1256
+ }
1257
+ return { written, removed };
1258
+ }
1259
+ function collectIndexDirs(memoryDir) {
1260
+ const dirs = [memoryDir];
1261
+ for (const root of INDEXED_ROOTS) {
1262
+ const full = path2.join(memoryDir, root);
1263
+ if (!isDir(full)) continue;
1264
+ dirs.push(full);
1265
+ if (root === "facts") {
1266
+ for (const entry of safeList(full)) {
1267
+ const child = path2.join(full, entry);
1268
+ if (isDir(child) && /^\d{4}-\d{2}-\d{2}$/.test(entry)) dirs.push(child);
1269
+ }
1270
+ }
1271
+ }
1272
+ return dirs;
1273
+ }
1274
+ function renderIndex(dir) {
1275
+ const entries = safeList(dir).filter((name) => name.endsWith(".md") && OKF_RESERVED_BASENAMES[name] !== true).sort((a, b) => a.localeCompare(b));
1276
+ if (entries.length === 0) return null;
1277
+ const lines = [OKF_INDEX_MARKER, "", `# ${path2.basename(dir)}`, ""];
1278
+ for (const name of entries) {
1279
+ const preview = previewFile(path2.join(dir, name));
1280
+ lines.push(`* [${titleFrom(name, preview)}](${name}) - ${preview}`);
1281
+ }
1282
+ lines.push("");
1283
+ return lines.join("\n");
1284
+ }
1285
+ function previewFile(filePath) {
1286
+ try {
1287
+ return normalizeProjectionPreview(readFileSync(filePath, "utf8"), 120);
1288
+ } catch {
1289
+ return "";
1290
+ }
1291
+ }
1292
+ function titleFrom(name, preview) {
1293
+ return preview.split(" ").slice(0, 8).join(" ") || name.replace(/\.md$/, "");
1294
+ }
1295
+ function isGeneratedIndex(filePath) {
1296
+ try {
1297
+ return readFileSync(filePath, "utf8").includes(OKF_INDEX_MARKER);
1298
+ } catch {
1299
+ return false;
1300
+ }
1301
+ }
1302
+ function isUnchangedGenerated(filePath, next) {
1303
+ try {
1304
+ return readFileSync(filePath, "utf8") === next;
1305
+ } catch {
1306
+ return false;
1307
+ }
1308
+ }
1309
+ function isDir(dir) {
1310
+ try {
1311
+ return statSync(dir).isDirectory();
1312
+ } catch {
1313
+ return false;
1314
+ }
1315
+ }
1316
+ function safeList(dir) {
1317
+ try {
1318
+ return readdirSync(dir);
1319
+ } catch {
1320
+ return [];
1321
+ }
1322
+ }
1323
+
1308
1324
  // src/okf/cli.ts
1309
1325
  async function runOkfCliCommand(argv, io, ctx) {
1310
1326
  const [subcommand, ...rest] = argv;
1311
1327
  if (subcommand === "help" || subcommand === "--help" || subcommand === "-h") {
1312
- io.stdout.write(`usage: remnic okf <lint|sweep> [--json]
1328
+ io.stdout.write(`usage: remnic okf <lint|sweep|index> [--json]
1313
1329
  lint report OKF conformance findings (exit 1 when findings remain)
1314
1330
  sweep backfill missing type values (requires okf.sweepEnabled)
1331
+ index generate or remove index.md files (okf.indexFilesEnabled)
1315
1332
  `);
1316
1333
  return 0;
1317
1334
  }
1318
- if (subcommand !== "lint" && subcommand !== "sweep") {
1319
- io.stderr.write("okf: expected lint or sweep\n");
1335
+ if (subcommand !== "lint" && subcommand !== "sweep" && subcommand !== "index") {
1336
+ io.stderr.write("okf: expected lint, sweep, or index\n");
1320
1337
  return 1;
1321
1338
  }
1322
1339
  for (const token of rest) {
1323
1340
  if (token === "--json") continue;
1324
- io.stderr.write(`okf: unexpected argument '${token}' \u2014 usage: remnic okf <lint|sweep> [--json]
1341
+ io.stderr.write(`okf: unexpected argument '${token}' \u2014 usage: remnic okf <lint|sweep|index> [--json]
1325
1342
  `);
1326
1343
  return 1;
1327
1344
  }
1328
1345
  const json = rest.includes("--json");
1346
+ if (subcommand === "index") {
1347
+ const result2 = await runOkfIndexMaintenance(ctx.memoryDir, ctx.indexFilesEnabled);
1348
+ if (json) io.stdout.write(`${JSON.stringify(result2)}
1349
+ `);
1350
+ else io.stdout.write(`okf index: wrote ${result2.written.length}, removed ${result2.removed.length}
1351
+ `);
1352
+ return 0;
1353
+ }
1329
1354
  if (subcommand === "sweep") {
1330
1355
  const result2 = runOkfConformanceSweep(ctx.memoryDir, ctx);
1331
1356
  if (json) io.stdout.write(`${JSON.stringify(result2)}
@@ -1355,7 +1380,8 @@ function registerOkfCommands(cmd, orchestrator) {
1355
1380
  const code = await runOkfCliCommand(argv, { stdout: process.stdout, stderr: process.stderr }, {
1356
1381
  memoryDir: orchestrator.config.memoryDir,
1357
1382
  conformanceEnabled: orchestrator.config.okf.conformanceEnabled,
1358
- sweepEnabled: orchestrator.config.okf.sweepEnabled
1383
+ sweepEnabled: orchestrator.config.okf.sweepEnabled,
1384
+ indexFilesEnabled: orchestrator.config.okf.indexFilesEnabled
1359
1385
  });
1360
1386
  if (code !== 0) process.exitCode = code;
1361
1387
  };
@@ -1368,16 +1394,43 @@ function registerOkfCommands(cmd, orchestrator) {
1368
1394
  await forward(["sweep", ...options.json === true ? ["--json"] : []]);
1369
1395
  });
1370
1396
  }
1397
+ function registerExportOkfCommand(exportCmd, orchestrator) {
1398
+ exportCmd.command("okf").description("Export a portable OKF v0.1 knowledge bundle").requiredOption("--out <path>", "Output directory").option("--namespace <ns>", "Namespace to export").option("--include-status <status>", "Repeatable status allow-list (default: active)").option("--include-categories <categories>", "Comma-separated category allow-list").option("--exclude-tags <tags>", "Comma-separated tags to drop").option("--include-profile", "Include profile.md (default off)").option("--include-wearables", "Include wearable day transcripts (default off)").option("--log", "Write log.md from the lifecycle ledger").option("--force", "Replace a non-empty output directory").action(async (...args) => {
1399
+ const options = args[0] ?? {};
1400
+ const out = options.out ? String(options.out) : "";
1401
+ if (!out) throw new Error("Missing --out");
1402
+ const includeStatus = parseIncludeStatus(options.includeStatus);
1403
+ const namespace = options.namespace ? String(options.namespace) : "";
1404
+ const memoryDir = namespace ? path3.join(orchestrator.config.memoryDir, "namespaces", namespace) : orchestrator.config.memoryDir;
1405
+ const result = await exportOkfBundle({
1406
+ memoryDir,
1407
+ outDir: out,
1408
+ includeStatus,
1409
+ includeCategories: options.includeCategories ? String(options.includeCategories).split(",") : void 0,
1410
+ excludeTags: options.excludeTags ? String(options.excludeTags).split(",") : void 0,
1411
+ includeProfile: options.includeProfile === true,
1412
+ includeWearables: options.includeWearables === true,
1413
+ includeLog: options.log === true,
1414
+ force: options.force === true
1415
+ });
1416
+ if (result.plaintextWarning) {
1417
+ console.log("PLAINTEXT EXPORT: the OKF bundle is unencrypted.");
1418
+ }
1419
+ console.log(
1420
+ `OKF export: ${result.exported} concepts, ${result.excluded} excluded`
1421
+ );
1422
+ });
1423
+ }
1371
1424
 
1372
1425
  // src/procedural/skill-io.ts
1373
1426
  import { lstat, mkdir, readdir, readFile, realpath, writeFile } from "fs/promises";
1374
- import path3 from "path";
1427
+ import path4 from "path";
1375
1428
  async function exportSkillBundles(options) {
1376
- const outDir = path3.resolve(options.outDir);
1429
+ const outDir = path4.resolve(options.outDir);
1377
1430
  await mkdir(outDir, { recursive: true });
1378
1431
  const slugs = [];
1379
1432
  for (const bundle of options.bundles) {
1380
- const dir = path3.join(outDir, bundle.slug);
1433
+ const dir = path4.join(outDir, bundle.slug);
1381
1434
  if (!pathIsInside(outDir, dir)) {
1382
1435
  throw new Error(`skill export: refusing to write outside ${outDir} (slug ${bundle.slug})`);
1383
1436
  }
@@ -1390,7 +1443,7 @@ async function exportSkillBundles(options) {
1390
1443
  if (err.code !== "ENOENT") throw err;
1391
1444
  }
1392
1445
  await mkdir(dir, { recursive: true });
1393
- const skillPath = path3.join(dir, SKILL_FILE_NAME);
1446
+ const skillPath = path4.join(dir, SKILL_FILE_NAME);
1394
1447
  try {
1395
1448
  const existingSkill = await lstat(skillPath);
1396
1449
  if (existingSkill.isSymbolicLink()) {
@@ -1405,7 +1458,7 @@ async function exportSkillBundles(options) {
1405
1458
  return { outDir, slugs };
1406
1459
  }
1407
1460
  async function readSkillBundlesFromDir(dir) {
1408
- const root = path3.resolve(dir);
1461
+ const root = path4.resolve(dir);
1409
1462
  const rootStat = await lstat(root);
1410
1463
  if (rootStat.isSymbolicLink()) {
1411
1464
  throw new Error(`skill import: refusing to walk symlinked directory ${root}`);
@@ -1425,13 +1478,13 @@ async function readSkillBundlesFromDir(dir) {
1425
1478
  continue;
1426
1479
  }
1427
1480
  if (!entry.isDirectory()) continue;
1428
- const bundleDir = path3.join(root, entry.name);
1481
+ const bundleDir = path4.join(root, entry.name);
1429
1482
  const bundleReal = await realpath(bundleDir);
1430
1483
  if (!pathIsInside(rootReal, bundleReal)) {
1431
1484
  skipped.push({ entry: entry.name, reason: "resolves outside the import root" });
1432
1485
  continue;
1433
1486
  }
1434
- const skillPath = path3.join(bundleDir, SKILL_FILE_NAME);
1487
+ const skillPath = path4.join(bundleDir, SKILL_FILE_NAME);
1435
1488
  let skillStat;
1436
1489
  try {
1437
1490
  skillStat = await lstat(skillPath);
@@ -1968,10 +2021,10 @@ function registerCreationLedgerCommands(cmd, orchestrator) {
1968
2021
  }
1969
2022
 
1970
2023
  // src/maintenance/rebuild-memory-lifecycle-ledger-cli.ts
1971
- import path4 from "path";
2024
+ import path5 from "path";
1972
2025
  async function runRebuildMemoryLifecycleLedgerCliCommand(options) {
1973
2026
  const storage = options.storage;
1974
- const ledgerPath = path4.join(options.memoryDir, "state", "memory-lifecycle-ledger.jsonl");
2027
+ const ledgerPath = path5.join(options.memoryDir, "state", "memory-lifecycle-ledger.jsonl");
1975
2028
  const encrypted = await probeEncryptedRegularFileHeader(ledgerPath);
1976
2029
  if (encrypted && !(storage?.isSecureStoreUnlocked() ?? false)) {
1977
2030
  throw new Error(
@@ -2469,7 +2522,7 @@ assistant> ${result.reply}
2469
2522
  // src/training-export/converter.ts
2470
2523
  import { constants } from "fs";
2471
2524
  import { lstat as lstat2, open, readdir as readdir2, realpath as realpath2 } from "fs/promises";
2472
- import path5 from "path";
2525
+ import path6 from "path";
2473
2526
  function parseFrontmatter(raw) {
2474
2527
  const match = raw.match(/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/);
2475
2528
  if (!match) return null;
@@ -2509,7 +2562,7 @@ async function safeRealpath(p) {
2509
2562
  }
2510
2563
  }
2511
2564
  function isContainedPath(real, containmentRoot) {
2512
- return real === containmentRoot || real.startsWith(containmentRoot + path5.sep);
2565
+ return real === containmentRoot || real.startsWith(containmentRoot + path6.sep);
2513
2566
  }
2514
2567
  async function collectMarkdownFiles(dir, containmentRoot) {
2515
2568
  const files = [];
@@ -2529,7 +2582,7 @@ async function collectMarkdownFiles(dir, containmentRoot) {
2529
2582
  }
2530
2583
  const sorted = [...entries].sort((a, b) => a.name.localeCompare(b.name));
2531
2584
  for (const entry of sorted) {
2532
- const full = path5.join(d, entry.name);
2585
+ const full = path6.join(d, entry.name);
2533
2586
  if (entry.isSymbolicLink()) continue;
2534
2587
  if (entry.isDirectory()) {
2535
2588
  await walk(full);
@@ -2611,9 +2664,9 @@ async function convertMemoriesToRecords(options) {
2611
2664
  const { memoryDir } = options;
2612
2665
  const containmentRoot = await safeRealpath(memoryDir);
2613
2666
  if (!containmentRoot) return [];
2614
- const dirs = RECALL_FALLBACK_DIRS.map((dir) => path5.join(memoryDir, dir));
2667
+ const dirs = RECALL_FALLBACK_DIRS.map((dir) => path6.join(memoryDir, dir));
2615
2668
  if (options.includeEntities) {
2616
- dirs.push(path5.join(memoryDir, "entities"));
2669
+ dirs.push(path6.join(memoryDir, "entities"));
2617
2670
  }
2618
2671
  const allFiles = [];
2619
2672
  for (const dir of dirs) {
@@ -2876,14 +2929,14 @@ async function runTrainingExportCliCommand(opts) {
2876
2929
  `Unknown training-export format "${opts.format}". ${validList}`
2877
2930
  );
2878
2931
  }
2879
- const { statSync, existsSync } = await import("fs");
2932
+ const { statSync: statSync2, existsSync } = await import("fs");
2880
2933
  if (!existsSync(expandedMemoryDir)) {
2881
2934
  throw new Error(
2882
2935
  `--memory-dir "${opts.memoryDir}" does not exist. Provide the path to an existing memory directory.`
2883
2936
  );
2884
2937
  }
2885
2938
  try {
2886
- if (!statSync(expandedMemoryDir).isDirectory()) {
2939
+ if (!statSync2(expandedMemoryDir).isDirectory()) {
2887
2940
  throw new Error(
2888
2941
  `--memory-dir "${opts.memoryDir}" is not a directory. Provide the path to a memory directory, not a file.`
2889
2942
  );
@@ -3621,7 +3674,7 @@ function policyVersionForValues(values, config) {
3621
3674
  return createHash("sha256").update(JSON.stringify(normalized)).digest("hex").slice(0, 12);
3622
3675
  }
3623
3676
  async function readRuntimePolicySnapshot2(config, fileName) {
3624
- const filePath = path6.join(config.memoryDir, "state", fileName);
3677
+ const filePath = path7.join(config.memoryDir, "state", fileName);
3625
3678
  const snapshot = await readRuntimePolicySnapshot(filePath, {
3626
3679
  maxStaleDecayThreshold: config.lifecycleArchiveDecayThreshold
3627
3680
  });
@@ -4398,7 +4451,7 @@ async function exists(p) {
4398
4451
  }
4399
4452
  }
4400
4453
  function assertSafeNamespaceSegment(namespace) {
4401
- if (namespace.length === 0 || namespace === "." || namespace === ".." || namespace.includes("/") || namespace.includes("\\") || path6.isAbsolute(namespace) || path6.win32.isAbsolute(namespace)) {
4454
+ if (namespace.length === 0 || namespace === "." || namespace === ".." || namespace.includes("/") || namespace.includes("\\") || path7.isAbsolute(namespace) || path7.win32.isAbsolute(namespace)) {
4402
4455
  throw new Error(`invalid namespace: ${namespace}`);
4403
4456
  }
4404
4457
  }
@@ -4448,7 +4501,7 @@ async function walkMemoryMarkdownFiles(memoryDir, visit) {
4448
4501
  for (const entry of entries) {
4449
4502
  if (entry.isSymbolicLink()) continue;
4450
4503
  const entryName = typeof entry.name === "string" ? entry.name : entry.name.toString("utf-8");
4451
- const fullPath = path6.join(dir, entryName);
4504
+ const fullPath = path7.join(dir, entryName);
4452
4505
  try {
4453
4506
  assertPathInsideRoot(memoryRootReal, await realpath3(fullPath), fullPath);
4454
4507
  } catch (err) {
@@ -4463,7 +4516,7 @@ async function walkMemoryMarkdownFiles(memoryDir, visit) {
4463
4516
  await visit(fullPath);
4464
4517
  }
4465
4518
  };
4466
- for (const root of RECALL_FALLBACK_DIRS.map((dir) => path6.join(memoryDir, dir))) {
4519
+ for (const root of RECALL_FALLBACK_DIRS.map((dir) => path7.join(memoryDir, dir))) {
4467
4520
  await walk(root);
4468
4521
  }
4469
4522
  }
@@ -4791,7 +4844,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
4791
4844
  );
4792
4845
  tierCmd.command("list").description("Summarize tier distribution across all memories").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
4793
4846
  const options = args[0] ?? {};
4794
- const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-4B5IJ3NE.js");
4847
+ const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-2TOW3QNL.js");
4795
4848
  const summary = await summarizeTiers(orchestrator.storage);
4796
4849
  if (reportHasMachineReadableOutput(options)) {
4797
4850
  console.log(JSON.stringify(summary, null, 2));
@@ -4802,7 +4855,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
4802
4855
  tierCmd.command("explain").description("Explain the tier-transition decision for a single memory").argument("<id>", "Memory id to explain").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
4803
4856
  const idArg = typeof args[0] === "string" ? args[0] : "";
4804
4857
  const options = args[1] ?? {};
4805
- const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-4B5IJ3NE.js");
4858
+ const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-2TOW3QNL.js");
4806
4859
  try {
4807
4860
  const explain = await explainTierForMemory(
4808
4861
  orchestrator.storage,
@@ -4835,7 +4888,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
4835
4888
  const idArg = typeof args[0] === "string" ? args[0] : "";
4836
4889
  const options = args[1] ?? {};
4837
4890
  const reason = typeof options.reason === "string" && options.reason.trim().length > 0 ? options.reason.trim() : void 0;
4838
- const { forgetMemory } = await import("./forget-SZ2BXDGF.js");
4891
+ const { forgetMemory } = await import("./forget-2AE4MDK3.js");
4839
4892
  try {
4840
4893
  const result = await forgetMemory(orchestrator.storage, {
4841
4894
  id: idArg,
@@ -4928,7 +4981,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
4928
4981
  }
4929
4982
  const confirmed = confirmValue === "yes";
4930
4983
  const dryRun = hasDryRunFlag || !confirmed;
4931
- const { purgeMemories } = await import("./purge-GB7PZHT2.js");
4984
+ const { purgeMemories } = await import("./purge-OP6BEDFY.js");
4932
4985
  try {
4933
4986
  const result = await purgeMemories({
4934
4987
  storage: orchestrator.storage,
@@ -5073,7 +5126,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5073
5126
  if (plan.moved.length > 0) {
5074
5127
  console.log("\nEntries:");
5075
5128
  for (const move of plan.moved) {
5076
- console.log(`- ${path6.basename(move.from)}`);
5129
+ console.log(`- ${path7.basename(move.from)}`);
5077
5130
  }
5078
5131
  }
5079
5132
  if (dryRun) {
@@ -5198,6 +5251,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5198
5251
  }
5199
5252
  console.log("OK");
5200
5253
  });
5254
+ registerExportOkfCommand(exportCmd, orchestrator);
5201
5255
  const importCmd = cmd.command("import").description("Import Remnic memory from JSON bundle, Markdown bundle, or SQLite").option("--from <path>", "Import source path (dir or file)").option("--format <format>", "Import format: auto|json|md|sqlite", "auto").option("--conflict <mode>", "Conflict policy: skip|overwrite|dedupe", "skip").option("--dry-run", "Validate import without writing files").option("--namespace <ns>", "Namespace to import into (v3.0+, default: config defaultNamespace)", "").action(async (...args) => {
5202
5256
  const options = args[0] ?? {};
5203
5257
  const from = options.from ? String(options.from) : "";
@@ -5373,15 +5427,15 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5373
5427
  const capsulesDir = defaultCapsulesDir(memoryDir);
5374
5428
  const { stat: statMerge } = await import("fs/promises");
5375
5429
  let sourceArchive = expandTildePath(parsed.archive);
5376
- const looksLikePath = sourceArchive.startsWith("/") || sourceArchive.startsWith("./") || sourceArchive.startsWith("../") || sourceArchive.includes(path6.sep);
5430
+ const looksLikePath = sourceArchive.startsWith("/") || sourceArchive.startsWith("./") || sourceArchive.startsWith("../") || sourceArchive.includes(path7.sep);
5377
5431
  if (!looksLikePath) {
5378
- const cwdResolved = path6.resolve(sourceArchive);
5432
+ const cwdResolved = path7.resolve(sourceArchive);
5379
5433
  const cwdSt = await statMerge(cwdResolved).catch(() => null);
5380
5434
  if (cwdSt && cwdSt.isFile()) {
5381
5435
  sourceArchive = cwdResolved;
5382
5436
  } else {
5383
- const byId = path6.join(capsulesDir, `${sourceArchive}.capsule.json.gz`);
5384
- const byIdEnc = path6.join(capsulesDir, `${sourceArchive}.capsule.json.gz.enc`);
5437
+ const byId = path7.join(capsulesDir, `${sourceArchive}.capsule.json.gz`);
5438
+ const byIdEnc = path7.join(capsulesDir, `${sourceArchive}.capsule.json.gz.enc`);
5385
5439
  const stId = await statMerge(byId).catch(() => null);
5386
5440
  if (stId && stId.isFile()) {
5387
5441
  sourceArchive = byId;
@@ -5402,7 +5456,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5402
5456
  );
5403
5457
  }
5404
5458
  }
5405
- const { mergeCapsule } = await import("./capsule-merge-SGIVB3WA.js");
5459
+ const { mergeCapsule } = await import("./capsule-merge-SEHERWWP.js");
5406
5460
  const result = await mergeCapsule({
5407
5461
  sourceArchive,
5408
5462
  targetRoot: memoryDir,
@@ -5462,10 +5516,10 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5462
5516
  ).sort();
5463
5517
  const entries = [];
5464
5518
  for (const archiveName of archives) {
5465
- const archivePath = path6.join(capsulesDir, archiveName);
5519
+ const archivePath = path7.join(capsulesDir, archiveName);
5466
5520
  const id = archiveName.replace(/\.capsule\.json\.gz\.enc$/, "").replace(/\.capsule\.json\.gz$/, "");
5467
5521
  const manifestName = `${id}.manifest.json`;
5468
- const manifestPath = path6.join(capsulesDir, manifestName);
5522
+ const manifestPath = path7.join(capsulesDir, manifestName);
5469
5523
  let createdAt = null;
5470
5524
  let pluginVersion = null;
5471
5525
  let fileCount = null;
@@ -5520,15 +5574,15 @@ function registerCli(api, orchestrator, registerOptions = {}) {
5520
5574
  const parsed = parseCapsuleInspectOptions(archiveArg, opts);
5521
5575
  const { stat } = await import("fs/promises");
5522
5576
  let archivePath = expandTildePath(parsed.archive);
5523
- const looksLikePath = archivePath.startsWith("/") || archivePath.startsWith("./") || archivePath.startsWith("../") || archivePath.includes(path6.sep);
5577
+ const looksLikePath = archivePath.startsWith("/") || archivePath.startsWith("./") || archivePath.startsWith("../") || archivePath.includes(path7.sep);
5524
5578
  if (!looksLikePath) {
5525
- const cwdResolved = path6.resolve(archivePath);
5579
+ const cwdResolved = path7.resolve(archivePath);
5526
5580
  const cwdSt = await stat(cwdResolved).catch(() => null);
5527
5581
  if (cwdSt && cwdSt.isFile()) {
5528
5582
  archivePath = cwdResolved;
5529
5583
  } else {
5530
- const byId = path6.join(capsulesDir, `${archivePath}.capsule.json.gz`);
5531
- const byIdEnc = path6.join(capsulesDir, `${archivePath}.capsule.json.gz.enc`);
5584
+ const byId = path7.join(capsulesDir, `${archivePath}.capsule.json.gz`);
5585
+ const byIdEnc = path7.join(capsulesDir, `${archivePath}.capsule.json.gz.enc`);
5532
5586
  const st = await stat(byId).catch(() => null);
5533
5587
  if (st && st.isFile()) {
5534
5588
  archivePath = byId;
@@ -7519,7 +7573,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
7519
7573
  return;
7520
7574
  }
7521
7575
  const expandedTarget = expandTildePath(rawTarget);
7522
- const targetPath = path6.isAbsolute(expandedTarget) ? expandedTarget : path6.join(orchestrator.config.memoryDir, expandedTarget);
7576
+ const targetPath = path7.isAbsolute(expandedTarget) ? expandedTarget : path7.join(orchestrator.config.memoryDir, expandedTarget);
7523
7577
  const { runConsolidationUndo, formatConsolidationUndoResult } = await import("./consolidation-undo.js");
7524
7578
  const result = await runConsolidationUndo({
7525
7579
  storage: orchestrator.storage,
@@ -7557,7 +7611,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
7557
7611
  }
7558
7612
  });
7559
7613
  cmd.command("identity").description("Show agent identity reflections").action(async () => {
7560
- const workspaceDir = path6.join(resolveHomeDir(), ".openclaw", "workspace");
7614
+ const workspaceDir = path7.join(resolveHomeDir(), ".openclaw", "workspace");
7561
7615
  const identity = await orchestrator.storage.readIdentity(workspaceDir);
7562
7616
  if (!identity) {
7563
7617
  console.log("No identity file found.");
@@ -7780,8 +7834,8 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
7780
7834
  const options = args[0] ?? {};
7781
7835
  const threadId = options.thread;
7782
7836
  const top = parseInt(options.top ?? "10", 10);
7783
- const memoryDir = path6.join(resolveHomeDir(), ".openclaw", "workspace", "memory", "local");
7784
- const threading = new ThreadingManager(path6.join(memoryDir, "threads"));
7837
+ const memoryDir = path7.join(resolveHomeDir(), ".openclaw", "workspace", "memory", "local");
7838
+ const threading = new ThreadingManager(path7.join(memoryDir, "threads"));
7785
7839
  if (threadId) {
7786
7840
  const thread = await threading.loadThread(threadId);
7787
7841
  if (!thread) {
@@ -8043,7 +8097,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
8043
8097
  console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
8044
8098
  process.exit(1);
8045
8099
  }
8046
- const { isValidResolutionVerb, executeResolution } = await import("./resolution-4552BNRV.js");
8100
+ const { isValidResolutionVerb, executeResolution } = await import("./resolution-4DLI3IOR.js");
8047
8101
  if (!isValidResolutionVerb(verb)) {
8048
8102
  console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
8049
8103
  process.exit(1);
@@ -8075,7 +8129,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
8075
8129
  });
8076
8130
  reviewCmd.command("scan").description("Run an on-demand contradiction scan").option("--namespace <ns>", "Namespace to scan").action(async (...args) => {
8077
8131
  const options = args[0] ?? {};
8078
- const { runContradictionScan } = await import("./contradiction-scan-AKUWPX5N.js");
8132
+ const { runContradictionScan } = await import("./contradiction-scan-NOYMFG66.js");
8079
8133
  console.log("Running contradiction scan...");
8080
8134
  const result = await runContradictionScan({
8081
8135
  storage: orchestrator.storage,
@@ -8811,4 +8865,4 @@ export {
8811
8865
  listMemoryMarkdownFilePaths,
8812
8866
  registerCli
8813
8867
  };
8814
- //# sourceMappingURL=chunk-I7EX6KSH.js.map
8868
+ //# sourceMappingURL=chunk-6QDXA26G.js.map