@remnic/core 10.0.49 → 10.0.51

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 (415) hide show
  1. package/dist/access-admin-ops-surface.js +49 -48
  2. package/dist/access-authorization-probe.js +50 -49
  3. package/dist/access-boundary.d.ts +6 -1
  4. package/dist/access-boundary.d.ts.map +1 -1
  5. package/dist/access-boundary.js +49 -48
  6. package/dist/access-cli.js +120 -119
  7. package/dist/access-cli.js.map +1 -1
  8. package/dist/access-errors.d.ts.map +1 -1
  9. package/dist/access-errors.js +1 -1
  10. package/dist/access-extraction-force-flush.js +49 -48
  11. package/dist/access-http-briefing.d.ts +2 -0
  12. package/dist/access-http-briefing.d.ts.map +1 -1
  13. package/dist/access-http-briefing.js +50 -49
  14. package/dist/access-http-query.js +51 -50
  15. package/dist/access-http.d.ts.map +1 -1
  16. package/dist/access-http.js +70 -69
  17. package/dist/access-identity-continuity-surface.js +49 -48
  18. package/dist/access-lcm-surface.js +49 -48
  19. package/dist/access-mcp.js +60 -59
  20. package/dist/access-memory-search-fanout.js +2 -2
  21. package/dist/access-namespace-preflight.js +49 -48
  22. package/dist/access-observe-write-category.d.ts +1 -1
  23. package/dist/access-observe-write-category.d.ts.map +1 -1
  24. package/dist/access-observe-write-category.js +10 -10
  25. package/dist/access-observe-write-surface.d.ts.map +1 -1
  26. package/dist/access-observe-write-surface.js +49 -48
  27. package/dist/access-offline-manifest.js +6 -6
  28. package/dist/access-operations-batch.js +50 -49
  29. package/dist/access-operations.js +57 -56
  30. package/dist/access-recall-concurrency.js +49 -48
  31. package/dist/access-recall-diagnostics.js +2 -2
  32. package/dist/access-recall-response.js +49 -48
  33. package/dist/access-recall-surface.js +49 -48
  34. package/dist/access-schema.d.ts +245 -773
  35. package/dist/access-schema.d.ts.map +1 -1
  36. package/dist/access-schema.js +6 -6
  37. package/dist/access-service.d.ts +5 -0
  38. package/dist/access-service.d.ts.map +1 -1
  39. package/dist/access-service.js +49 -48
  40. package/dist/access-surface-catalog.js +51 -50
  41. package/dist/access-surface-catalog.js.map +1 -1
  42. package/dist/access-token-capabilities.js +2 -2
  43. package/dist/active-recall.js +16 -16
  44. package/dist/{auto-sync-BNCBMU6H.js → auto-sync-UQQ6YJSB.js} +3 -3
  45. package/dist/briefing-deadline.d.ts +7 -0
  46. package/dist/briefing-deadline.d.ts.map +1 -0
  47. package/dist/briefing-deadline.js +13 -0
  48. package/dist/briefing-window.d.ts +12 -4
  49. package/dist/briefing-window.d.ts.map +1 -1
  50. package/dist/briefing-window.js +3 -1
  51. package/dist/briefing.d.ts +2 -0
  52. package/dist/briefing.d.ts.map +1 -1
  53. package/dist/briefing.js +12 -11
  54. package/dist/buffer.js +3 -3
  55. package/dist/calibration.js +2 -2
  56. package/dist/{capsule-merge-RNQUP2VL.js → capsule-merge-D4BTIJGK.js} +3 -3
  57. package/dist/causal-consolidation.js +11 -11
  58. package/dist/{chunk-ESDOQEJM.js → chunk-2AKIVSHP.js} +2 -2
  59. package/dist/{chunk-BWF3KNSQ.js → chunk-2EXF6IIB.js} +2 -2
  60. package/dist/{chunk-AGCEJDG2.js → chunk-2ONKXEC7.js} +3 -3
  61. package/dist/{chunk-3NYIXVCT.js → chunk-2S6JADBB.js} +2 -2
  62. package/dist/chunk-2S6JADBB.js.map +1 -0
  63. package/dist/{chunk-ZSEFGDCI.js → chunk-2TGIKMMZ.js} +2 -2
  64. package/dist/{chunk-MCS4LIXP.js → chunk-43TUWQNR.js} +2 -2
  65. package/dist/{chunk-Q6PYCPHO.js → chunk-44EUCSG4.js} +2 -2
  66. package/dist/{chunk-2J6BIOVN.js → chunk-4FM35YIA.js} +3 -3
  67. package/dist/{chunk-2NLCDNGA.js → chunk-564YP3DW.js} +2 -2
  68. package/dist/{chunk-YY6PWFUC.js → chunk-6ZAU7LAR.js} +3 -3
  69. package/dist/{chunk-HCPVL6SF.js → chunk-72CBJ5VP.js} +3 -3
  70. package/dist/{chunk-AF4UIHON.js → chunk-74AY3S7U.js} +9 -9
  71. package/dist/{chunk-N6EM7ESC.js → chunk-75BK4XGV.js} +27 -19
  72. package/dist/chunk-75BK4XGV.js.map +1 -0
  73. package/dist/{chunk-5IDQVE4U.js → chunk-A3UFV4K3.js} +6 -6
  74. package/dist/{chunk-LWRIGKFM.js → chunk-A5L5KGDI.js} +19 -1
  75. package/dist/chunk-A5L5KGDI.js.map +1 -0
  76. package/dist/{chunk-RZDDNH63.js → chunk-A6JDT6QF.js} +27 -15
  77. package/dist/chunk-A6JDT6QF.js.map +1 -0
  78. package/dist/{chunk-XFND63OB.js → chunk-AHGOOZUC.js} +2 -2
  79. package/dist/{chunk-A7AISUJI.js → chunk-AJG2TAMR.js} +2 -2
  80. package/dist/{chunk-2BY56HE6.js → chunk-AZLD4CKG.js} +36 -36
  81. package/dist/{chunk-E47UQBYW.js → chunk-B35EQQ7L.js} +3 -3
  82. package/dist/{chunk-E6UNM67F.js → chunk-B6SPPYGJ.js} +2 -2
  83. package/dist/{chunk-CMOYD5CA.js → chunk-CCL2OXFO.js} +2 -2
  84. package/dist/{chunk-SVJ5JVZO.js → chunk-CK6GCGMX.js} +4 -4
  85. package/dist/{chunk-QZK6HG4J.js → chunk-DF6ZF2BN.js} +3 -3
  86. package/dist/{chunk-CPBYKOTC.js → chunk-DJFULNXK.js} +4 -4
  87. package/dist/{chunk-VGRBKEBH.js → chunk-DQOGZZJA.js} +3 -3
  88. package/dist/{chunk-YB3WN6XA.js → chunk-EC2KVA27.js} +12 -12
  89. package/dist/{chunk-FRXS6SC7.js → chunk-EKUI7I2X.js} +20 -4
  90. package/dist/chunk-EKUI7I2X.js.map +1 -0
  91. package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
  92. package/dist/{chunk-WIBWONL4.js → chunk-EZS6QJNC.js} +2 -2
  93. package/dist/{chunk-C7WDWD35.js → chunk-FNNGWN3O.js} +5 -5
  94. package/dist/{chunk-PBWJVRKE.js → chunk-FT75AQ74.js} +3 -3
  95. package/dist/{chunk-VY6BD5KB.js → chunk-G6A3SGCE.js} +14 -12
  96. package/dist/chunk-G6A3SGCE.js.map +1 -0
  97. package/dist/{chunk-O4CA53UY.js → chunk-GBGU5OZP.js} +111 -104
  98. package/dist/chunk-GBGU5OZP.js.map +1 -0
  99. package/dist/{chunk-WJCAAVZX.js → chunk-GE3ZX6YK.js} +2 -2
  100. package/dist/{chunk-3PVKV3XL.js → chunk-HCIRR3BA.js} +3 -3
  101. package/dist/{chunk-BJTFLP3J.js → chunk-HEF4BRMT.js} +3 -3
  102. package/dist/{chunk-BMG3SAXA.js → chunk-HQUYENKK.js} +9 -12
  103. package/dist/chunk-HQUYENKK.js.map +1 -0
  104. package/dist/{chunk-6UDLN4IA.js → chunk-I6ORDT54.js} +2 -2
  105. package/dist/{chunk-N5PISU26.js → chunk-IN6U2BS5.js} +2 -2
  106. package/dist/{chunk-3INLTKTW.js → chunk-IUQXRRJB.js} +4 -4
  107. package/dist/{chunk-6W3QH3QW.js → chunk-JIJAWTRK.js} +388 -292
  108. package/dist/chunk-JIJAWTRK.js.map +1 -0
  109. package/dist/{chunk-4KS4IHKH.js → chunk-JX3E4XCW.js} +2 -2
  110. package/dist/{chunk-SW3WHVKN.js → chunk-KAJYSO3U.js} +2 -2
  111. package/dist/{chunk-D76AHITY.js → chunk-KETS5A62.js} +2 -2
  112. package/dist/{chunk-LCHFINL4.js → chunk-KIWO4327.js} +2 -2
  113. package/dist/{chunk-FC3ZFEXF.js → chunk-KJ3MDX4V.js} +2 -2
  114. package/dist/{chunk-7LCGFUMB.js → chunk-KQAFEZQX.js} +4 -4
  115. package/dist/{chunk-6TIVVOVU.js → chunk-L3EFYRYK.js} +9 -9
  116. package/dist/{chunk-3MUKQQ7A.js → chunk-LGEH473S.js} +24 -29
  117. package/dist/chunk-LGEH473S.js.map +1 -0
  118. package/dist/{chunk-X52SXKVC.js → chunk-LMB47UM6.js} +2 -2
  119. package/dist/{chunk-A3WXV7YU.js → chunk-LWMLBVGB.js} +2 -2
  120. package/dist/{chunk-KMTMMBEB.js → chunk-MC7PXJDP.js} +7 -7
  121. package/dist/{chunk-NMOEOQV4.js → chunk-MUNYUSBU.js} +2 -2
  122. package/dist/{chunk-VKUMKVEU.js → chunk-OCRLJJOV.js} +5 -5
  123. package/dist/{chunk-XSJL62LE.js → chunk-ON77FQXH.js} +2 -2
  124. package/dist/{chunk-C3HRYVGD.js → chunk-POJRFSJM.js} +3 -3
  125. package/dist/{chunk-LKRXGOQW.js → chunk-QA3Y2O6H.js} +2 -2
  126. package/dist/{chunk-23ZLN5X6.js → chunk-QT5MGENX.js} +14 -6
  127. package/dist/chunk-QT5MGENX.js.map +1 -0
  128. package/dist/{chunk-QFTNWDJ6.js → chunk-RA7YRL6H.js} +2 -2
  129. package/dist/{chunk-WQFHHJWK.js → chunk-RJDYDF5K.js} +4 -4
  130. package/dist/{chunk-E3DL3CAL.js → chunk-ROAKLYOL.js} +2 -2
  131. package/dist/{chunk-YFXRLRKP.js → chunk-S4OZKPBS.js} +7 -11
  132. package/dist/{chunk-YFXRLRKP.js.map → chunk-S4OZKPBS.js.map} +1 -1
  133. package/dist/{chunk-NWIT3U2N.js → chunk-S5CQI2KF.js} +2 -2
  134. package/dist/{chunk-P6P35FY4.js → chunk-SDESKFKT.js} +2 -2
  135. package/dist/{chunk-OD7ZXCUF.js → chunk-SFRBUBUZ.js} +10 -10
  136. package/dist/{chunk-7XFQSQYS.js → chunk-SHNM7RIT.js} +5 -4
  137. package/dist/chunk-SHNM7RIT.js.map +1 -0
  138. package/dist/{chunk-NH37SP6V.js → chunk-SJD334AG.js} +81 -78
  139. package/dist/chunk-SJD334AG.js.map +1 -0
  140. package/dist/{chunk-O7GNSHFF.js → chunk-SPTPBKZX.js} +2 -2
  141. package/dist/{chunk-HI53EK3Y.js → chunk-TC55M5PO.js} +2 -2
  142. package/dist/{chunk-SA6P2KS3.js → chunk-TEH5MDX5.js} +33 -17
  143. package/dist/chunk-TEH5MDX5.js.map +1 -0
  144. package/dist/{chunk-FOKTW6GY.js → chunk-UCLJTGP3.js} +2 -2
  145. package/dist/{chunk-FYZXZUGU.js → chunk-UQBOPCDK.js} +2 -2
  146. package/dist/{chunk-SUKPM6DV.js → chunk-UWMZT2TY.js} +47 -4
  147. package/dist/chunk-UWMZT2TY.js.map +1 -0
  148. package/dist/{chunk-754XN6LX.js → chunk-V27FK6D6.js} +2 -2
  149. package/dist/{chunk-DM6SOROF.js → chunk-V6Z4NAJZ.js} +2 -2
  150. package/dist/{chunk-5FNZ3G6X.js → chunk-VKQI47DJ.js} +4 -4
  151. package/dist/{chunk-NUK5XU3P.js → chunk-VUMWVYMR.js} +28 -13
  152. package/dist/chunk-VUMWVYMR.js.map +1 -0
  153. package/dist/{chunk-MPJDQC4G.js → chunk-WJCXUE2J.js} +2 -2
  154. package/dist/{chunk-VCBS5GRQ.js → chunk-WY66J4PI.js} +2 -2
  155. package/dist/chunk-X2KO4FK5.js +40 -0
  156. package/dist/chunk-X2KO4FK5.js.map +1 -0
  157. package/dist/{chunk-OOOX5C4X.js → chunk-XL2EE5W3.js} +4 -4
  158. package/dist/{chunk-V4GPFCJ7.js → chunk-XWJUFER3.js} +3 -3
  159. package/dist/{chunk-CZVNOTLR.js → chunk-XXR4A33N.js} +2 -2
  160. package/dist/{chunk-CRJX4OMN.js → chunk-Y3T5KQCR.js} +2 -2
  161. package/dist/{chunk-KNCR7APE.js → chunk-Y77FXULH.js} +8 -8
  162. package/dist/{chunk-2AV2U2SZ.js → chunk-YDIOMDBW.js} +2 -2
  163. package/dist/{chunk-IG747LRN.js → chunk-YO2JEX2Z.js} +2 -2
  164. package/dist/{chunk-HDT3DMUF.js → chunk-ZKK3VMWU.js} +2 -2
  165. package/dist/cli.js +92 -91
  166. package/dist/coding/export-okf-codegraph.js +9 -9
  167. package/dist/compounding/engine.js +11 -11
  168. package/dist/config.js +16 -16
  169. package/dist/connectors/codex-materialize-runner.js +10 -10
  170. package/dist/connectors/index.js +14 -14
  171. package/dist/consolidation-provenance-check.js +4 -4
  172. package/dist/consolidation-undo.js +2 -2
  173. package/dist/convergence-refresh.js +12 -12
  174. package/dist/corpus-watermark.js +14 -14
  175. package/dist/correction/passive-correction-notifications.d.ts +1 -1
  176. package/dist/correction/passive-correction-notifications.d.ts.map +1 -1
  177. package/dist/dashboard-runtime.js +2 -2
  178. package/dist/deep-recall-config.js +2 -2
  179. package/dist/deep-recall-http-glue.js +9 -9
  180. package/dist/{entity-canonical-id-migration-2YOLMOFC.js → entity-canonical-id-migration-F3JVG6K6.js} +3 -3
  181. package/dist/entity-canonical-id-migration-F3JVG6K6.js.map +1 -0
  182. package/dist/entity-retrieval.js +11 -11
  183. package/dist/explicit-capture.js +2 -2
  184. package/dist/external-wiki-access.js +50 -49
  185. package/dist/extraction-span-wire.d.ts.map +1 -1
  186. package/dist/extraction-span-wire.js +1 -1
  187. package/dist/extraction.js +22 -22
  188. package/dist/{first-start-migration-QVD22WWS.js → first-start-migration-A6PHIBUQ.js} +4 -4
  189. package/dist/harmonic-retrieval.js +10 -10
  190. package/dist/index.d.ts +1 -0
  191. package/dist/index.d.ts.map +1 -1
  192. package/dist/index.js +143 -135
  193. package/dist/lcm/engine.js +2 -2
  194. package/dist/lcm/index.js +5 -5
  195. package/dist/local-llm.js +2 -2
  196. package/dist/location/index.js +16 -16
  197. package/dist/location/tagging.d.ts +7 -5
  198. package/dist/location/tagging.d.ts.map +1 -1
  199. package/dist/maintenance/memory-governance.js +10 -10
  200. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -10
  201. package/dist/maintenance/rebuild-memory-projection-runner.js +12 -12
  202. package/dist/maintenance/rebuild-memory-projection.js +11 -11
  203. package/dist/memory-browse-http-glue.js +2 -2
  204. package/dist/memory-browse-operations.js +50 -49
  205. package/dist/namespaces/migrate.js +11 -11
  206. package/dist/namespaces/storage.js +10 -10
  207. package/dist/offline-sync-file-io.d.ts +15 -0
  208. package/dist/offline-sync-file-io.d.ts.map +1 -1
  209. package/dist/offline-sync-file-io.js +9 -1
  210. package/dist/offline-sync-impression-drain.js +2 -2
  211. package/dist/offline-sync-snapshot-stream.js +4 -4
  212. package/dist/offline-sync-upload-staging.js +2 -2
  213. package/dist/offline-sync.d.ts.map +1 -1
  214. package/dist/offline-sync.js +3 -3
  215. package/dist/operator-doctor-corpus.js +17 -17
  216. package/dist/operator-doctor-replica.js +4 -4
  217. package/dist/operator-toolkit.js +29 -29
  218. package/dist/orchestration/maintenance.js +25 -25
  219. package/dist/orchestrator.d.ts +1 -0
  220. package/dist/orchestrator.d.ts.map +1 -1
  221. package/dist/orchestrator.js +122 -121
  222. package/dist/page-versioning.js +2 -2
  223. package/dist/recall-navigation-http-glue.js +2 -2
  224. package/dist/recall-navigation-operations.js +50 -49
  225. package/dist/recall-navigation.js +49 -48
  226. package/dist/relay/mission.d.ts +731 -3403
  227. package/dist/relay/mission.d.ts.map +1 -1
  228. package/dist/replica-divergence.js +3 -3
  229. package/dist/resume-bundles.js +17 -17
  230. package/dist/schemas.d.ts +346 -1771
  231. package/dist/schemas.d.ts.map +1 -1
  232. package/dist/semantic-consolidation.js +15 -15
  233. package/dist/semantic-rule-promotion.js +10 -10
  234. package/dist/semantic-rule-verifier.js +10 -10
  235. package/dist/shared-context/manager.d.ts +13 -33
  236. package/dist/shared-context/manager.d.ts.map +1 -1
  237. package/dist/source-agent-qualifier.js +18 -18
  238. package/dist/standup/build.js +11 -11
  239. package/dist/storage/entity-canonical-id-migration-adapter.d.ts +1 -0
  240. package/dist/storage/entity-canonical-id-migration-adapter.d.ts.map +1 -1
  241. package/dist/storage/entity-canonical-id-migration.d.ts +7 -0
  242. package/dist/storage/entity-canonical-id-migration.d.ts.map +1 -1
  243. package/dist/storage/entity-canonical-id-references.d.ts +2 -0
  244. package/dist/storage/entity-canonical-id-references.d.ts.map +1 -1
  245. package/dist/storage/entity-migration-completion-cache.d.ts +46 -0
  246. package/dist/storage/entity-migration-completion-cache.d.ts.map +1 -0
  247. package/dist/storage/entity-store.d.ts +1 -8
  248. package/dist/storage/entity-store.d.ts.map +1 -1
  249. package/dist/storage/memory-read-store.d.ts +3 -2
  250. package/dist/storage/memory-read-store.d.ts.map +1 -1
  251. package/dist/storage/windowed-memory-read.d.ts +6 -0
  252. package/dist/storage/windowed-memory-read.d.ts.map +1 -1
  253. package/dist/storage.d.ts +2 -0
  254. package/dist/storage.d.ts.map +1 -1
  255. package/dist/storage.js +9 -9
  256. package/dist/summarizer.js +3 -3
  257. package/dist/support-passport/access-operations.d.ts +51 -51
  258. package/dist/support-passport/contracts.d.ts +85 -126
  259. package/dist/support-passport/contracts.d.ts.map +1 -1
  260. package/dist/support-passport/generated-batch.d.ts +3 -17
  261. package/dist/support-passport/generated-batch.d.ts.map +1 -1
  262. package/dist/support-passport/grant-contracts.d.ts +75 -381
  263. package/dist/support-passport/grant-contracts.d.ts.map +1 -1
  264. package/dist/support-passport/index.js +52 -51
  265. package/dist/support-passport/model-audit.d.ts +17 -82
  266. package/dist/support-passport/model-audit.d.ts.map +1 -1
  267. package/dist/support-passport/model-bridge.d.ts +12 -51
  268. package/dist/support-passport/model-bridge.d.ts.map +1 -1
  269. package/dist/support-passport/model-contracts.d.ts +53 -192
  270. package/dist/support-passport/model-contracts.d.ts.map +1 -1
  271. package/dist/tokens.js +3 -3
  272. package/dist/transfer/capsule-export.js +2 -2
  273. package/dist/transfer/capsule-import.js +4 -4
  274. package/dist/transfer/export-okf.js +10 -10
  275. package/dist/transfer/types.d.ts +32 -737
  276. package/dist/transfer/types.d.ts.map +1 -1
  277. package/dist/verified-recall.js +10 -10
  278. package/dist/who-knows-cli.js +12 -12
  279. package/dist/who-knows.js +11 -11
  280. package/package.json +3 -4
  281. package/src/access-boundary.test.ts +14 -0
  282. package/src/access-boundary.ts +48 -42
  283. package/src/access-category-alias.test.ts +9 -7
  284. package/src/access-errors.test.ts +21 -9
  285. package/src/access-errors.ts +45 -31
  286. package/src/access-http-briefing.ts +4 -0
  287. package/src/access-http.test.ts +41 -12
  288. package/src/access-http.ts +6 -0
  289. package/src/access-observe-write-category.ts +1 -1
  290. package/src/access-observe-write-surface.ts +24 -19
  291. package/src/access-operations-batch.ts +18 -2
  292. package/src/access-schema.ts +13 -17
  293. package/src/access-service.ts +5 -0
  294. package/src/briefing-abort.test.ts +173 -0
  295. package/src/briefing-deadline.test.ts +84 -0
  296. package/src/briefing-deadline.ts +33 -0
  297. package/src/briefing-window-abort.test.ts +47 -0
  298. package/src/briefing-window.ts +33 -4
  299. package/src/briefing.ts +23 -16
  300. package/src/correction/passive-correction-notifications-abort.test.ts +42 -0
  301. package/src/correction/passive-correction-notifications.ts +4 -0
  302. package/src/entity-lazy-compatibility.test.ts +229 -0
  303. package/src/entity-migration-completion-notification.test.ts +148 -0
  304. package/src/extraction-scope-source-agent.test.ts +6 -6
  305. package/src/extraction-span-wire.test.ts +28 -0
  306. package/src/extraction-span-wire.ts +34 -6
  307. package/src/index.ts +1 -1
  308. package/src/location/tagging.ts +14 -12
  309. package/src/offline-sync-file-io.ts +61 -2
  310. package/src/offline-sync.test.ts +313 -20
  311. package/src/offline-sync.ts +43 -21
  312. package/src/orchestrator-init.test.ts +49 -1
  313. package/src/orchestrator.ts +9 -8
  314. package/src/storage/entity-canonical-id-migration-adapter.ts +16 -1
  315. package/src/storage/entity-canonical-id-migration.ts +19 -10
  316. package/src/storage/entity-canonical-id-references.ts +24 -0
  317. package/src/storage/entity-migration-completion-cache.nofollow.test.ts +223 -0
  318. package/src/storage/entity-migration-completion-cache.ts +153 -0
  319. package/src/storage/entity-store.ts +58 -86
  320. package/src/storage/memory-read-store.ts +9 -3
  321. package/src/storage/windowed-memory-read.ts +8 -0
  322. package/src/storage-startup-nonblocking-migration.test.ts +183 -0
  323. package/src/storage.ts +7 -2
  324. package/src/testing/subjects/entity-migration-completion-cache.test.ts +90 -0
  325. package/dist/chunk-23ZLN5X6.js.map +0 -1
  326. package/dist/chunk-3MUKQQ7A.js.map +0 -1
  327. package/dist/chunk-3NYIXVCT.js.map +0 -1
  328. package/dist/chunk-6W3QH3QW.js.map +0 -1
  329. package/dist/chunk-7XFQSQYS.js.map +0 -1
  330. package/dist/chunk-BMG3SAXA.js.map +0 -1
  331. package/dist/chunk-FRXS6SC7.js.map +0 -1
  332. package/dist/chunk-LWRIGKFM.js.map +0 -1
  333. package/dist/chunk-N6EM7ESC.js.map +0 -1
  334. package/dist/chunk-NH37SP6V.js.map +0 -1
  335. package/dist/chunk-NUK5XU3P.js.map +0 -1
  336. package/dist/chunk-O4CA53UY.js.map +0 -1
  337. package/dist/chunk-RZDDNH63.js.map +0 -1
  338. package/dist/chunk-SA6P2KS3.js.map +0 -1
  339. package/dist/chunk-SUKPM6DV.js.map +0 -1
  340. package/dist/chunk-VY6BD5KB.js.map +0 -1
  341. /package/dist/{auto-sync-BNCBMU6H.js.map → auto-sync-UQQ6YJSB.js.map} +0 -0
  342. /package/dist/{entity-canonical-id-migration-2YOLMOFC.js.map → briefing-deadline.js.map} +0 -0
  343. /package/dist/{capsule-merge-RNQUP2VL.js.map → capsule-merge-D4BTIJGK.js.map} +0 -0
  344. /package/dist/{chunk-ESDOQEJM.js.map → chunk-2AKIVSHP.js.map} +0 -0
  345. /package/dist/{chunk-BWF3KNSQ.js.map → chunk-2EXF6IIB.js.map} +0 -0
  346. /package/dist/{chunk-AGCEJDG2.js.map → chunk-2ONKXEC7.js.map} +0 -0
  347. /package/dist/{chunk-ZSEFGDCI.js.map → chunk-2TGIKMMZ.js.map} +0 -0
  348. /package/dist/{chunk-MCS4LIXP.js.map → chunk-43TUWQNR.js.map} +0 -0
  349. /package/dist/{chunk-Q6PYCPHO.js.map → chunk-44EUCSG4.js.map} +0 -0
  350. /package/dist/{chunk-2J6BIOVN.js.map → chunk-4FM35YIA.js.map} +0 -0
  351. /package/dist/{chunk-2NLCDNGA.js.map → chunk-564YP3DW.js.map} +0 -0
  352. /package/dist/{chunk-YY6PWFUC.js.map → chunk-6ZAU7LAR.js.map} +0 -0
  353. /package/dist/{chunk-HCPVL6SF.js.map → chunk-72CBJ5VP.js.map} +0 -0
  354. /package/dist/{chunk-AF4UIHON.js.map → chunk-74AY3S7U.js.map} +0 -0
  355. /package/dist/{chunk-5IDQVE4U.js.map → chunk-A3UFV4K3.js.map} +0 -0
  356. /package/dist/{chunk-XFND63OB.js.map → chunk-AHGOOZUC.js.map} +0 -0
  357. /package/dist/{chunk-A7AISUJI.js.map → chunk-AJG2TAMR.js.map} +0 -0
  358. /package/dist/{chunk-2BY56HE6.js.map → chunk-AZLD4CKG.js.map} +0 -0
  359. /package/dist/{chunk-E47UQBYW.js.map → chunk-B35EQQ7L.js.map} +0 -0
  360. /package/dist/{chunk-E6UNM67F.js.map → chunk-B6SPPYGJ.js.map} +0 -0
  361. /package/dist/{chunk-CMOYD5CA.js.map → chunk-CCL2OXFO.js.map} +0 -0
  362. /package/dist/{chunk-SVJ5JVZO.js.map → chunk-CK6GCGMX.js.map} +0 -0
  363. /package/dist/{chunk-QZK6HG4J.js.map → chunk-DF6ZF2BN.js.map} +0 -0
  364. /package/dist/{chunk-CPBYKOTC.js.map → chunk-DJFULNXK.js.map} +0 -0
  365. /package/dist/{chunk-VGRBKEBH.js.map → chunk-DQOGZZJA.js.map} +0 -0
  366. /package/dist/{chunk-YB3WN6XA.js.map → chunk-EC2KVA27.js.map} +0 -0
  367. /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
  368. /package/dist/{chunk-WIBWONL4.js.map → chunk-EZS6QJNC.js.map} +0 -0
  369. /package/dist/{chunk-C7WDWD35.js.map → chunk-FNNGWN3O.js.map} +0 -0
  370. /package/dist/{chunk-PBWJVRKE.js.map → chunk-FT75AQ74.js.map} +0 -0
  371. /package/dist/{chunk-WJCAAVZX.js.map → chunk-GE3ZX6YK.js.map} +0 -0
  372. /package/dist/{chunk-3PVKV3XL.js.map → chunk-HCIRR3BA.js.map} +0 -0
  373. /package/dist/{chunk-BJTFLP3J.js.map → chunk-HEF4BRMT.js.map} +0 -0
  374. /package/dist/{chunk-6UDLN4IA.js.map → chunk-I6ORDT54.js.map} +0 -0
  375. /package/dist/{chunk-N5PISU26.js.map → chunk-IN6U2BS5.js.map} +0 -0
  376. /package/dist/{chunk-3INLTKTW.js.map → chunk-IUQXRRJB.js.map} +0 -0
  377. /package/dist/{chunk-4KS4IHKH.js.map → chunk-JX3E4XCW.js.map} +0 -0
  378. /package/dist/{chunk-SW3WHVKN.js.map → chunk-KAJYSO3U.js.map} +0 -0
  379. /package/dist/{chunk-D76AHITY.js.map → chunk-KETS5A62.js.map} +0 -0
  380. /package/dist/{chunk-LCHFINL4.js.map → chunk-KIWO4327.js.map} +0 -0
  381. /package/dist/{chunk-FC3ZFEXF.js.map → chunk-KJ3MDX4V.js.map} +0 -0
  382. /package/dist/{chunk-7LCGFUMB.js.map → chunk-KQAFEZQX.js.map} +0 -0
  383. /package/dist/{chunk-6TIVVOVU.js.map → chunk-L3EFYRYK.js.map} +0 -0
  384. /package/dist/{chunk-X52SXKVC.js.map → chunk-LMB47UM6.js.map} +0 -0
  385. /package/dist/{chunk-A3WXV7YU.js.map → chunk-LWMLBVGB.js.map} +0 -0
  386. /package/dist/{chunk-KMTMMBEB.js.map → chunk-MC7PXJDP.js.map} +0 -0
  387. /package/dist/{chunk-NMOEOQV4.js.map → chunk-MUNYUSBU.js.map} +0 -0
  388. /package/dist/{chunk-VKUMKVEU.js.map → chunk-OCRLJJOV.js.map} +0 -0
  389. /package/dist/{chunk-XSJL62LE.js.map → chunk-ON77FQXH.js.map} +0 -0
  390. /package/dist/{chunk-C3HRYVGD.js.map → chunk-POJRFSJM.js.map} +0 -0
  391. /package/dist/{chunk-LKRXGOQW.js.map → chunk-QA3Y2O6H.js.map} +0 -0
  392. /package/dist/{chunk-QFTNWDJ6.js.map → chunk-RA7YRL6H.js.map} +0 -0
  393. /package/dist/{chunk-WQFHHJWK.js.map → chunk-RJDYDF5K.js.map} +0 -0
  394. /package/dist/{chunk-E3DL3CAL.js.map → chunk-ROAKLYOL.js.map} +0 -0
  395. /package/dist/{chunk-NWIT3U2N.js.map → chunk-S5CQI2KF.js.map} +0 -0
  396. /package/dist/{chunk-P6P35FY4.js.map → chunk-SDESKFKT.js.map} +0 -0
  397. /package/dist/{chunk-OD7ZXCUF.js.map → chunk-SFRBUBUZ.js.map} +0 -0
  398. /package/dist/{chunk-O7GNSHFF.js.map → chunk-SPTPBKZX.js.map} +0 -0
  399. /package/dist/{chunk-HI53EK3Y.js.map → chunk-TC55M5PO.js.map} +0 -0
  400. /package/dist/{chunk-FOKTW6GY.js.map → chunk-UCLJTGP3.js.map} +0 -0
  401. /package/dist/{chunk-FYZXZUGU.js.map → chunk-UQBOPCDK.js.map} +0 -0
  402. /package/dist/{chunk-754XN6LX.js.map → chunk-V27FK6D6.js.map} +0 -0
  403. /package/dist/{chunk-DM6SOROF.js.map → chunk-V6Z4NAJZ.js.map} +0 -0
  404. /package/dist/{chunk-5FNZ3G6X.js.map → chunk-VKQI47DJ.js.map} +0 -0
  405. /package/dist/{chunk-MPJDQC4G.js.map → chunk-WJCXUE2J.js.map} +0 -0
  406. /package/dist/{chunk-VCBS5GRQ.js.map → chunk-WY66J4PI.js.map} +0 -0
  407. /package/dist/{chunk-OOOX5C4X.js.map → chunk-XL2EE5W3.js.map} +0 -0
  408. /package/dist/{chunk-V4GPFCJ7.js.map → chunk-XWJUFER3.js.map} +0 -0
  409. /package/dist/{chunk-CZVNOTLR.js.map → chunk-XXR4A33N.js.map} +0 -0
  410. /package/dist/{chunk-CRJX4OMN.js.map → chunk-Y3T5KQCR.js.map} +0 -0
  411. /package/dist/{chunk-KNCR7APE.js.map → chunk-Y77FXULH.js.map} +0 -0
  412. /package/dist/{chunk-2AV2U2SZ.js.map → chunk-YDIOMDBW.js.map} +0 -0
  413. /package/dist/{chunk-IG747LRN.js.map → chunk-YO2JEX2Z.js.map} +0 -0
  414. /package/dist/{chunk-HDT3DMUF.js.map → chunk-ZKK3VMWU.js.map} +0 -0
  415. /package/dist/{first-start-migration-QVD22WWS.js.map → first-start-migration-A6PHIBUQ.js.map} +0 -0
@@ -7,34 +7,34 @@ import {
7
7
  import {
8
8
  openclawReplayNormalizer
9
9
  } from "./chunk-H4CKS5B2.js";
10
+ import {
11
+ exportSqlite
12
+ } from "./chunk-BV2TIZ4F.js";
10
13
  import {
11
14
  importMarkdownBundle
12
15
  } from "./chunk-HDDRVXX4.js";
13
16
  import {
14
17
  importSqlite
15
18
  } 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-BWF3KNSQ.js";
26
- import {
27
- exportSqlite
28
- } from "./chunk-BV2TIZ4F.js";
29
19
  import {
30
20
  detectImportFormat
31
21
  } from "./chunk-OZKVVUJB.js";
32
22
  import {
33
23
  importJsonBundle
34
24
  } from "./chunk-2DL3OFLD.js";
25
+ import {
26
+ backupMemoryDir
27
+ } from "./chunk-2NLLXCJG.js";
28
+ import {
29
+ exportJsonBundle
30
+ } from "./chunk-UP6MOYCB.js";
35
31
  import {
36
32
  exportMarkdownBundle
37
33
  } from "./chunk-765K3SAT.js";
34
+ import {
35
+ exportOkfBundle,
36
+ parseIncludeStatus
37
+ } from "./chunk-2EXF6IIB.js";
38
38
  import {
39
39
  RoutingRulesStore
40
40
  } from "./chunk-TBUEE7XF.js";
@@ -58,13 +58,16 @@ import {
58
58
  } from "./chunk-EDR6CVWZ.js";
59
59
  import {
60
60
  rebuildMemoryLifecycleLedger
61
- } from "./chunk-WIBWONL4.js";
61
+ } from "./chunk-EZS6QJNC.js";
62
62
  import {
63
63
  rebuildObservations
64
64
  } from "./chunk-WHCD4Z3D.js";
65
65
  import {
66
66
  archiveObservations
67
67
  } from "./chunk-7IGMKQWK.js";
68
+ import {
69
+ runCompatChecks
70
+ } from "./chunk-2524MOWK.js";
68
71
  import {
69
72
  getBulkImportSource,
70
73
  listBulkImportSources,
@@ -74,12 +77,9 @@ import {
74
77
  import {
75
78
  lintOkfDir
76
79
  } from "./chunk-I7TR2OCU.js";
77
- import {
78
- runCompatChecks
79
- } from "./chunk-2524MOWK.js";
80
80
  import {
81
81
  searchVerifiedEpisodes
82
- } from "./chunk-E3DL3CAL.js";
82
+ } from "./chunk-ROAKLYOL.js";
83
83
  import {
84
84
  getUtilityLearningStatus,
85
85
  learnUtilityPromotionWeights
@@ -93,15 +93,15 @@ import {
93
93
  } from "./chunk-R7WYAXPO.js";
94
94
  import {
95
95
  promoteSemanticRuleFromMemory
96
- } from "./chunk-NMOEOQV4.js";
96
+ } from "./chunk-MUNYUSBU.js";
97
97
  import {
98
98
  searchVerifiedSemanticRules
99
- } from "./chunk-O7GNSHFF.js";
99
+ } from "./chunk-SPTPBKZX.js";
100
100
  import {
101
101
  buildResumeBundleFromState,
102
102
  getResumeBundleStatus,
103
103
  recordResumeBundle
104
- } from "./chunk-XSJL62LE.js";
104
+ } from "./chunk-ON77FQXH.js";
105
105
  import {
106
106
  getWorkProductLedgerStatus,
107
107
  recordWorkProductLedgerEntry,
@@ -134,7 +134,7 @@ import {
134
134
  runOperatorInventory,
135
135
  runOperatorRepair,
136
136
  runOperatorSetup
137
- } from "./chunk-6TIVVOVU.js";
137
+ } from "./chunk-L3EFYRYK.js";
138
138
  import {
139
139
  analyzeSessionIntegrity,
140
140
  applySessionRepair,
@@ -171,12 +171,12 @@ import {
171
171
  } from "./chunk-JKMIGCK6.js";
172
172
  import {
173
173
  GraphDashboardServer
174
- } from "./chunk-YNDLCWXS.js";
174
+ } from "./chunk-EZ25VE3G.js";
175
175
  import {
176
176
  rebuildMemoryProjection,
177
177
  repairMemoryProjection,
178
178
  verifyMemoryProjection
179
- } from "./chunk-VGRBKEBH.js";
179
+ } from "./chunk-DQOGZZJA.js";
180
180
  import {
181
181
  buildConnectorRowsFromDefinitions,
182
182
  parseConnectorsListOptions,
@@ -197,7 +197,7 @@ import {
197
197
  } from "./chunk-6TBIWIAG.js";
198
198
  import {
199
199
  parseConfig
200
- } from "./chunk-KNCR7APE.js";
200
+ } from "./chunk-Y77FXULH.js";
201
201
  import {
202
202
  applyManagedRegion,
203
203
  expandVaultTemplateTokens,
@@ -210,7 +210,7 @@ import {
210
210
  import {
211
211
  EngramAccessHttpServer,
212
212
  MeetingsInputError
213
- } from "./chunk-N6EM7ESC.js";
213
+ } from "./chunk-75BK4XGV.js";
214
214
  import {
215
215
  WearablesInputError
216
216
  } from "./chunk-V7IZKJI3.js";
@@ -220,10 +220,10 @@ import {
220
220
  loadChatSession,
221
221
  processChatMessage,
222
222
  sessionBelongsToPrincipal
223
- } from "./chunk-OD7ZXCUF.js";
223
+ } from "./chunk-SFRBUBUZ.js";
224
224
  import {
225
225
  EngramAccessService
226
- } from "./chunk-O4CA53UY.js";
226
+ } from "./chunk-GBGU5OZP.js";
227
227
  import {
228
228
  WorkStorage
229
229
  } from "./chunk-MPC7TYTZ.js";
@@ -243,7 +243,7 @@ import {
243
243
  } from "./chunk-WUL6LDJ4.js";
244
244
  import {
245
245
  readAggregateExtractionWatermark
246
- } from "./chunk-PBWJVRKE.js";
246
+ } from "./chunk-FT75AQ74.js";
247
247
  import {
248
248
  getObjectiveStateStoreStatus
249
249
  } from "./chunk-4RNBLLZR.js";
@@ -252,7 +252,7 @@ import {
252
252
  } from "./chunk-5DVOBBTV.js";
253
253
  import {
254
254
  searchHarmonicRetrieval
255
- } from "./chunk-VCBS5GRQ.js";
255
+ } from "./chunk-WY66J4PI.js";
256
256
  import {
257
257
  getCueAnchorStoreStatus
258
258
  } from "./chunk-LXATZLSC.js";
@@ -261,12 +261,12 @@ import {
261
261
  readMemoryGovernanceRunArtifact,
262
262
  restoreMemoryGovernanceRun,
263
263
  runMemoryGovernance
264
- } from "./chunk-YY6PWFUC.js";
264
+ } from "./chunk-6ZAU7LAR.js";
265
265
  import {
266
266
  listNamespaces,
267
267
  runNamespaceMigration,
268
268
  verifyNamespaces
269
- } from "./chunk-QFTNWDJ6.js";
269
+ } from "./chunk-RA7YRL6H.js";
270
270
  import {
271
271
  resolveNamespaceChildRoot
272
272
  } from "./chunk-3UXOZBHV.js";
@@ -283,7 +283,7 @@ import {
283
283
  } from "./chunk-AWD36R4D.js";
284
284
  import {
285
285
  parseDeepRecallMaxSteps
286
- } from "./chunk-A7AISUJI.js";
286
+ } from "./chunk-AJG2TAMR.js";
287
287
  import {
288
288
  SKILL_FILE_NAME,
289
289
  SKILL_IMPORT_SOURCE,
@@ -303,7 +303,7 @@ import {
303
303
  } from "./chunk-NRGQ5HJO.js";
304
304
  import {
305
305
  meetingIdDate
306
- } from "./chunk-6W3QH3QW.js";
306
+ } from "./chunk-JIJAWTRK.js";
307
307
  import {
308
308
  isValidTranscriptDate
309
309
  } from "./chunk-UHVXE24Y.js";
@@ -6710,7 +6710,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
6710
6710
  );
6711
6711
  }
6712
6712
  }
6713
- const { mergeCapsule } = await import("./capsule-merge-RNQUP2VL.js");
6713
+ const { mergeCapsule } = await import("./capsule-merge-D4BTIJGK.js");
6714
6714
  const result = await mergeCapsule({
6715
6715
  sourceArchive,
6716
6716
  targetRoot: memoryDir,
@@ -10140,4 +10140,4 @@ export {
10140
10140
  listMemoryMarkdownFilePaths,
10141
10141
  registerCli
10142
10142
  };
10143
- //# sourceMappingURL=chunk-2BY56HE6.js.map
10143
+ //# sourceMappingURL=chunk-AZLD4CKG.js.map
@@ -8,11 +8,11 @@ import {
8
8
  } from "./chunk-WR5POHQ3.js";
9
9
  import {
10
10
  resolveDefaultNamespaceRoot
11
- } from "./chunk-XFND63OB.js";
11
+ } from "./chunk-AHGOOZUC.js";
12
12
  import {
13
13
  StorageManager,
14
14
  readRawMemoryDocument
15
- } from "./chunk-6W3QH3QW.js";
15
+ } from "./chunk-JIJAWTRK.js";
16
16
  import {
17
17
  parseContinuityImprovementLoops
18
18
  } from "./chunk-LDXUBPMO.js";
@@ -1869,4 +1869,4 @@ export {
1869
1869
  defaultTierMigrationCycleBudget,
1870
1870
  CompoundingEngine
1871
1871
  };
1872
- //# sourceMappingURL=chunk-E47UQBYW.js.map
1872
+ //# sourceMappingURL=chunk-B35EQQ7L.js.map
@@ -8,7 +8,7 @@ import {
8
8
  capabilityAllowsNamespace,
9
9
  isCapabilityRestricted,
10
10
  isValidNamespaceValue
11
- } from "./chunk-IG747LRN.js";
11
+ } from "./chunk-YO2JEX2Z.js";
12
12
 
13
13
  // src/replica-divergence.ts
14
14
  var DEFAULT_MAX_CONCURRENT_PEER_FETCHES = 4;
@@ -429,4 +429,4 @@ export {
429
429
  gateReportByCensus,
430
430
  ReplicaDivergenceMonitor
431
431
  };
432
- //# sourceMappingURL=chunk-E6UNM67F.js.map
432
+ //# sourceMappingURL=chunk-B6SPPYGJ.js.map
@@ -2,7 +2,7 @@ import {
2
2
  OFFLINE_SYNC_SNAPSHOT_FORMAT,
3
3
  filterOfflineSyncDeletionRevisions,
4
4
  iterateOfflineSyncSnapshotFileRecords
5
- } from "./chunk-SA6P2KS3.js";
5
+ } from "./chunk-TEH5MDX5.js";
6
6
  import {
7
7
  computeOmittedEmbeddingGenerationPaths,
8
8
  embeddingGenerationMembership
@@ -61,4 +61,4 @@ async function buildEmbeddingAwareSnapshotStream(options) {
61
61
  export {
62
62
  buildEmbeddingAwareSnapshotStream
63
63
  };
64
- //# sourceMappingURL=chunk-CMOYD5CA.js.map
64
+ //# sourceMappingURL=chunk-CCL2OXFO.js.map
@@ -3,7 +3,7 @@ import {
3
3
  headerConnector,
4
4
  renderExtractionConversation,
5
5
  resolveSourceConnector
6
- } from "./chunk-3INLTKTW.js";
6
+ } from "./chunk-IUQXRRJB.js";
7
7
  import {
8
8
  normalizeReasoningTrace
9
9
  } from "./chunk-54V4BZWP.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  extractionProviderJsonSchema,
15
15
  extractionProviderResponseFormat
16
- } from "./chunk-23ZLN5X6.js";
16
+ } from "./chunk-QT5MGENX.js";
17
17
  import {
18
18
  ConsolidationResultSchema,
19
19
  DaySummaryResultSchema,
@@ -85,7 +85,7 @@ import {
85
85
  } from "./chunk-5MA7ZLPD.js";
86
86
  import {
87
87
  LocalLlmClient
88
- } from "./chunk-AF4UIHON.js";
88
+ } from "./chunk-74AY3S7U.js";
89
89
  import {
90
90
  normalizeProcedureSteps
91
91
  } from "./chunk-QDW3E4RD.js";
@@ -2441,4 +2441,4 @@ export {
2441
2441
  shouldEnableLocalExtractionThinking,
2442
2442
  ExtractionEngine
2443
2443
  };
2444
- //# sourceMappingURL=chunk-SVJ5JVZO.js.map
2444
+ //# sourceMappingURL=chunk-CK6GCGMX.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  parseFrontmatter
3
- } from "./chunk-6W3QH3QW.js";
3
+ } from "./chunk-JIJAWTRK.js";
4
4
  import {
5
5
  activityDigestPath,
6
6
  isValidActivityDate
7
7
  } from "./chunk-353C5UNV.js";
8
8
  import {
9
9
  EngramAccessInputError
10
- } from "./chunk-3MUKQQ7A.js";
10
+ } from "./chunk-LGEH473S.js";
11
11
 
12
12
  // src/standup/build.ts
13
13
  import { readdirSync, readFileSync } from "fs";
@@ -199,4 +199,4 @@ export {
199
199
  buildStandup,
200
200
  standupHelp
201
201
  };
202
- //# sourceMappingURL=chunk-QZK6HG4J.js.map
202
+ //# sourceMappingURL=chunk-DF6ZF2BN.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  parseDeepRecallMaxSteps
3
- } from "./chunk-A7AISUJI.js";
3
+ } from "./chunk-AJG2TAMR.js";
4
4
  import {
5
5
  deepRecallRequestSchema
6
- } from "./chunk-BMG3SAXA.js";
6
+ } from "./chunk-HQUYENKK.js";
7
7
  import {
8
8
  EngramAccessInputError
9
- } from "./chunk-3MUKQQ7A.js";
9
+ } from "./chunk-LGEH473S.js";
10
10
 
11
11
  // src/deep-recall-http-glue.ts
12
12
  async function respondDeepRecall(req, res, respondJson, readJsonBody, service, scopeFor, abortSignal) {
@@ -40,4 +40,4 @@ async function respondDeepRecall(req, res, respondJson, readJsonBody, service, s
40
40
  export {
41
41
  respondDeepRecall
42
42
  };
43
- //# sourceMappingURL=chunk-CPBYKOTC.js.map
43
+ //# sourceMappingURL=chunk-DJFULNXK.js.map
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  listMemoryGovernanceRuns,
9
9
  readMemoryGovernanceRunArtifact
10
- } from "./chunk-YY6PWFUC.js";
10
+ } from "./chunk-6ZAU7LAR.js";
11
11
  import {
12
12
  StorageManager
13
- } from "./chunk-6W3QH3QW.js";
13
+ } from "./chunk-JIJAWTRK.js";
14
14
  import {
15
15
  normalizeProjectionPreview,
16
16
  normalizeProjectionTags
@@ -1156,4 +1156,4 @@ export {
1156
1156
  verifyMemoryProjection,
1157
1157
  repairMemoryProjection
1158
1158
  };
1159
- //# sourceMappingURL=chunk-VGRBKEBH.js.map
1159
+ //# sourceMappingURL=chunk-DQOGZZJA.js.map
@@ -1,9 +1,3 @@
1
- import {
2
- PROJECTION_REBUILD_RUNNER_FLAG
3
- } from "./chunk-A3WXV7YU.js";
4
- import {
5
- startLocationAutoSync
6
- } from "./chunk-SW3WHVKN.js";
7
1
  import {
8
2
  ensureContradictionScanCron,
9
3
  ensureDaySummaryCron,
@@ -13,22 +7,28 @@ import {
13
7
  ensureProceduralMiningCron,
14
8
  graphEdgeDecayCadenceToCronExpr
15
9
  } from "./chunk-666A3MOW.js";
10
+ import {
11
+ PROJECTION_REBUILD_RUNNER_FLAG
12
+ } from "./chunk-LWMLBVGB.js";
13
+ import {
14
+ startLocationAutoSync
15
+ } from "./chunk-KAJYSO3U.js";
16
16
  import {
17
17
  CompoundingEngine,
18
18
  isIsoWeekId,
19
19
  msUntilNextIsoWeek,
20
20
  previousIsoWeekId
21
- } from "./chunk-E47UQBYW.js";
21
+ } from "./chunk-B35EQQ7L.js";
22
22
  import {
23
23
  rebuildMemoryLifecycleLedger
24
- } from "./chunk-WIBWONL4.js";
24
+ } from "./chunk-EZS6QJNC.js";
25
25
  import {
26
26
  planNamespaceMaintenance,
27
27
  runNamespaceMaintenanceBatchPlan
28
- } from "./chunk-HCPVL6SF.js";
28
+ } from "./chunk-72CBJ5VP.js";
29
29
  import {
30
30
  rebuildMemoryProjection
31
- } from "./chunk-VGRBKEBH.js";
31
+ } from "./chunk-DQOGZZJA.js";
32
32
  import {
33
33
  DEFAULT_TIMELINE_CATEGORIES,
34
34
  TIMELINE_RESERVED_IDLE,
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-EWMRFW3F.js";
46
46
  import {
47
47
  LocalLlmClient
48
- } from "./chunk-AF4UIHON.js";
48
+ } from "./chunk-74AY3S7U.js";
49
49
  import {
50
50
  FallbackLlmClient
51
51
  } from "./chunk-AVVCPA7U.js";
@@ -2793,4 +2793,4 @@ export {
2793
2793
  ActivitySyncScheduler,
2794
2794
  MaintenanceScheduler
2795
2795
  };
2796
- //# sourceMappingURL=chunk-YB3WN6XA.js.map
2796
+ //# sourceMappingURL=chunk-EC2KVA27.js.map
@@ -76,6 +76,9 @@ async function safeReadMemories(storage, window, options = {}) {
76
76
  resultCount = memories.length;
77
77
  return memories;
78
78
  } catch (err) {
79
+ if (isAbortError(err) && options.signal?.aborted) {
80
+ throw err;
81
+ }
79
82
  if (err instanceof BriefingReadTimedOut) {
80
83
  outcome = "timeout";
81
84
  bestEffortLog(
@@ -99,7 +102,9 @@ async function safeReadMemories(storage, window, options = {}) {
99
102
  }
100
103
  async function readBriefingMemories(storage, window, mode, options) {
101
104
  if (mode === "windowed") {
102
- const result = await storage.readMemoriesWindow({ updatedAfter: window.from });
105
+ const readOptions = { updatedAfter: window.from };
106
+ if (options.signal) readOptions.abortSignal = options.signal;
107
+ const result = await storage.readMemoriesWindow(readOptions);
103
108
  return result.memories;
104
109
  }
105
110
  const isCancellable = storage.supportsAbortSignal === true || storage.supportsCancellation === true || storage.cancellable === true || storage.readAllMemories?.supportsAbortSignal === true;
@@ -113,8 +118,9 @@ async function readBriefingMemories(storage, window, mode, options) {
113
118
  deadlineFired = true;
114
119
  controller.abort();
115
120
  }, deadlineMs);
121
+ const signal = options.signal ? AbortSignal.any([options.signal, controller.signal]) : controller.signal;
116
122
  try {
117
- const memories = await storage.readAllMemories({ abortSignal: controller.signal });
123
+ const memories = await storage.readAllMemories({ abortSignal: signal });
118
124
  if (deadlineFired) {
119
125
  throw new BriefingReadTimedOut(deadlineMs);
120
126
  }
@@ -126,9 +132,19 @@ async function readBriefingMemories(storage, window, mode, options) {
126
132
  clearTimeout(timer);
127
133
  }
128
134
  }
135
+ async function safeReadEntities(storage, signal) {
136
+ try {
137
+ return await storage.readAllEntityFiles({ abortSignal: signal });
138
+ } catch (err) {
139
+ if (isAbortError(err) && signal.aborted) throw err;
140
+ log.warn(`briefing: readAllEntityFiles failed: ${err}`);
141
+ return [];
142
+ }
143
+ }
129
144
 
130
145
  export {
131
146
  BRIEFING_FULL_READ_FALLBACK_MS,
132
- safeReadMemories
147
+ safeReadMemories,
148
+ safeReadEntities
133
149
  };
134
- //# sourceMappingURL=chunk-FRXS6SC7.js.map
150
+ //# sourceMappingURL=chunk-EKUI7I2X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/briefing-window.ts"],"sourcesContent":["import { log } from \"./logger.js\";\nimport type { EntityFile, MemoryFile } from \"./types.js\";\nimport { isAbortError } from \"./abort-error.js\";\nimport type { CorpusReadOptions } from \"./corpus-read-cancellation.js\";\nimport type { ParsedBriefingWindow } from \"./briefing.js\";\nimport type { WindowedMemoryReadOptions } from \"./storage/windowed-memory-read.js\";\n\ntype BriefingMemoryReader = {\n readMemoriesWindow?: (options: WindowedMemoryReadOptions) => Promise<{ memories: MemoryFile[] }>;\n readAllMemories: ((options?: CorpusReadOptions) => Promise<MemoryFile[]>) & {\n supportsAbortSignal?: boolean;\n };\n supportsAbortSignal?: boolean;\n supportsCancellation?: boolean;\n cancellable?: boolean;\n};\n\n/**\n * Deadline for the legacy full-read fallback (issue #2779). Storage doubles\n * that predate `readMemoriesWindow()` can only answer with a full-corpus\n * `readAllMemories()`, which is unbounded work; on a large corpus that read\n * alone can outlast the 60s MCP client timeout. Arm an AbortController with\n * this budget (well under 60s, leaving room for entity reads and follow-ups)\n * and fail open with an empty read. The deadline reaches the read as an\n * abort signal (the #2307 corpus-read contract), so the scan stops at its\n * next boundary instead of being abandoned to run on in the background.\n */\nexport const BRIEFING_FULL_READ_FALLBACK_MS = 30_000;\n\n/** Options for {@link safeReadMemories}. */\nexport interface SafeReadMemoriesOptions {\n /** Test seam overriding {@link BRIEFING_FULL_READ_FALLBACK_MS}. */\n fallbackDeadlineMs?: number;\n /**\n * Caller cancellation. The signal reaches the storage read so it stops at\n * its next boundary, and a cancelled read is rethrown rather than degraded\n * into an empty corpus (issue #3139).\n */\n signal?: AbortSignal;\n}\n\ntype BriefingReadMode = \"windowed\" | \"full-read-fallback\";\ntype BriefingReadOutcome = \"success\" | \"timeout\" | \"error\";\n\n/** Internal marker: the fallback deadline fired and the read was aborted. */\nclass BriefingReadTimedOut extends Error {\n constructor(readonly deadlineMs: number) {\n super(\"briefing full-read fallback timed out\");\n this.name = \"BriefingReadTimedOut\";\n }\n}\n\n/** Internal marker: the adapter's readAllMemories predates the signal contract. */\nclass LegacyReadUnsupported extends Error {\n constructor() {\n super(\"readAllMemories does not accept an abort signal\");\n this.name = \"LegacyReadUnsupported\";\n }\n}\n\nconst SAFE_ERROR_CLASSES: Record<string, true> = {\n Error: true,\n TypeError: true,\n RangeError: true,\n ReferenceError: true,\n SyntaxError: true,\n URIError: true,\n EvalError: true,\n AggregateError: true,\n AbortError: true,\n TimeoutError: true,\n SystemError: true,\n BriefingReadTimedOut: true,\n LegacyReadUnsupported: true,\n StorageError: true,\n EngramAccessInputError: true,\n};\n\n/**\n * Sanitize adapter-controlled Error.name before structured discriminator logs\n * (issue #2827). Allow-lists known system/remnic error names and maps any\n * unrecognized or backend-controlled names to a safe bounded class (\"CustomError\").\n */\nfunction errorClass(err: unknown): string {\n if (err instanceof Error) {\n const name = err.name;\n if (typeof name === \"string\" && SAFE_ERROR_CLASSES[name] === true) {\n return name;\n }\n return \"CustomError\";\n }\n return typeof err === \"string\"\n ? \"string\"\n : typeof err === \"object\" && err !== null\n ? \"object\"\n : typeof err;\n}\n\nfunction bestEffortLog(level: \"info\" | \"warn\", message: string): void {\n try {\n log[level](message);\n } catch {\n // Diagnostics must never turn a successful or fail-open briefing read into\n // a request failure when a host logger transport is unavailable.\n }\n}\n\n/**\n * One structured, content-free discriminator per briefing memory read\n * (issue #2779): `mode`, `durationMs`, `count` when known, `outcome`, and on\n * failure a safe error class — never error messages or memory content.\n */\nfunction logBriefingMemoryRead(\n mode: BriefingReadMode,\n outcome: BriefingReadOutcome,\n durationMs: number,\n resultCount: number | undefined,\n errClass: string | undefined,\n): void {\n const fields = [\n `mode=${mode}`,\n `durationMs=${durationMs}`,\n ...(resultCount === undefined ? [] : [`count=${resultCount}`]),\n `outcome=${outcome}`,\n ...(errClass === undefined ? [] : [`err=${errClass}`]),\n ];\n bestEffortLog(\"info\", `briefing: memory read ${fields.join(\" \")}`);\n}\n\n/** Read only the memories needed by a briefing, with compatibility fallback. */\nexport async function safeReadMemories(\n storage: BriefingMemoryReader,\n window: ParsedBriefingWindow,\n options: SafeReadMemoriesOptions = {},\n): Promise<MemoryFile[]> {\n const startedAt = Date.now();\n const mode: BriefingReadMode =\n typeof storage.readMemoriesWindow === \"function\" ? \"windowed\" : \"full-read-fallback\";\n let outcome: BriefingReadOutcome = \"error\";\n let resultCount: number | undefined;\n let errClass: string | undefined;\n try {\n const memories = await readBriefingMemories(storage, window, mode, options);\n outcome = \"success\";\n resultCount = memories.length;\n return memories;\n } catch (err) {\n if (isAbortError(err) && options.signal?.aborted) {\n // Caller cancellation is not a read failure: rethrow it so the briefing\n // rejects instead of degrading into an empty corpus (issue #3139). The\n // own fallback deadline is reported as BriefingReadTimedOut below.\n throw err;\n }\n if (err instanceof BriefingReadTimedOut) {\n outcome = \"timeout\";\n bestEffortLog(\n \"warn\",\n `briefing: memory read mode=full-read-fallback timed out after ${err.deadlineMs}ms — ` +\n `returning no memories (storage adapter lacks readMemoriesWindow; upgrade it to ` +\n `windowed or signal-aware reads)`,\n );\n } else if (err instanceof LegacyReadUnsupported) {\n errClass = errorClass(err);\n bestEffortLog(\n \"warn\",\n `briefing: memory read mode=full-read-fallback refused: readAllMemories() takes no abort ` +\n `signal, so its scan could not be stopped at the deadline — returning no memories ` +\n `(upgrade the storage adapter to readMemoriesWindow or a signal-aware readAllMemories)`,\n );\n } else {\n errClass = errorClass(err);\n bestEffortLog(\"warn\", `briefing: read memories failed (${errClass}) — returning no memories`);\n }\n return [];\n } finally {\n logBriefingMemoryRead(mode, outcome, Date.now() - startedAt, resultCount, errClass);\n }\n}\n\nasync function readBriefingMemories(\n storage: BriefingMemoryReader,\n window: ParsedBriefingWindow,\n mode: BriefingReadMode,\n options: SafeReadMemoriesOptions,\n): Promise<MemoryFile[]> {\n // A briefing only needs memories inside its lookback window. Avoid parsing\n // the full corpus on cache misses; keep the full-read fallback for custom\n // StorageManager-compatible callers that predate readMemoriesWindow().\n if (mode === \"windowed\") {\n const readOptions: WindowedMemoryReadOptions = { updatedAfter: window.from };\n if (options.signal) readOptions.abortSignal = options.signal;\n const result = await storage.readMemoriesWindow!(readOptions);\n return result.memories;\n }\n // Refuse legacy adapters that do not explicitly declare cancellation support (#2827).\n // Require affirmative cancellation support (`true` on one explicit marker) before fallback.\n // Do not rely on Function.length, which is zero for default/rest/bound functions.\n const isCancellable =\n storage.supportsAbortSignal === true ||\n storage.supportsCancellation === true ||\n storage.cancellable === true ||\n storage.readAllMemories?.supportsAbortSignal === true;\n if (!isCancellable) {\n throw new LegacyReadUnsupported();\n }\n const deadlineMs = options.fallbackDeadlineMs ?? BRIEFING_FULL_READ_FALLBACK_MS;\n const controller = new AbortController();\n let deadlineFired = false;\n const timer = setTimeout(() => {\n deadlineFired = true;\n controller.abort();\n }, deadlineMs);\n const signal = options.signal ? AbortSignal.any([options.signal, controller.signal]) : controller.signal;\n try {\n // Direct await, no Promise.race: the signal IS the deadline. A\n // signal-aware read settles on abort (AbortError at its next scan\n // boundary, #2307), so nothing is left scanning in the background once\n // this function returns.\n const memories = await storage.readAllMemories({ abortSignal: signal });\n if (deadlineFired) {\n // A double that resolves partial rows instead of rejecting on abort\n // must not have them served as a complete corpus.\n throw new BriefingReadTimedOut(deadlineMs);\n }\n return memories;\n } catch (err) {\n if (isAbortError(err) && deadlineFired) throw new BriefingReadTimedOut(deadlineMs);\n throw err;\n } finally {\n clearTimeout(timer);\n }\n}\n\nexport async function safeReadEntities(\n storage: { readAllEntityFiles(options?: CorpusReadOptions): Promise<EntityFile[]> },\n signal: AbortSignal,\n): Promise<EntityFile[]> {\n try {\n return await storage.readAllEntityFiles({ abortSignal: signal });\n } catch (err) {\n if (isAbortError(err) && signal.aborted) throw err;\n log.warn(`briefing: readAllEntityFiles failed: ${err}`);\n return [];\n }\n}\n"],"mappings":"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","names":[]}
@@ -1,9 +1,9 @@
1
- import {
2
- diffGraphSnapshots
3
- } from "./chunk-AUDJPF4N.js";
4
1
  import {
5
2
  graphSnapshotFromMemoryDir
6
3
  } from "./chunk-44442YCH.js";
4
+ import {
5
+ diffGraphSnapshots
6
+ } from "./chunk-AUDJPF4N.js";
7
7
 
8
8
  // src/dashboard-runtime.ts
9
9
  import { createHash, timingSafeEqual } from "crypto";
@@ -370,4 +370,4 @@ var GraphDashboardServer = class {
370
370
  export {
371
371
  GraphDashboardServer
372
372
  };
373
- //# sourceMappingURL=chunk-YNDLCWXS.js.map
373
+ //# sourceMappingURL=chunk-EZ25VE3G.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KJTKLXTH.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-6W3QH3QW.js";
6
+ } from "./chunk-JIJAWTRK.js";
7
7
  import {
8
8
  assertInjectedStorageRooted
9
9
  } from "./chunk-QIMGULGN.js";
@@ -260,4 +260,4 @@ export {
260
260
  backupExistingLedger,
261
261
  rebuildMemoryLifecycleLedger
262
262
  };
263
- //# sourceMappingURL=chunk-WIBWONL4.js.map
263
+ //# sourceMappingURL=chunk-EZS6QJNC.js.map
@@ -1,3 +1,6 @@
1
+ import {
2
+ applyCarriedMemorySnippets
3
+ } from "./chunk-SP4DB6SX.js";
1
4
  import {
2
5
  entityMentionCacheGeneration,
3
6
  entityMentionIdentity,
@@ -23,9 +26,6 @@ import {
23
26
  detectEntityQueryMode,
24
27
  isStructuralEntityFollowUpQuery
25
28
  } from "./chunk-MKYRCCSN.js";
26
- import {
27
- applyCarriedMemorySnippets
28
- } from "./chunk-SP4DB6SX.js";
29
29
  import {
30
30
  collectNativeKnowledgeChunks
31
31
  } from "./chunk-2DQ2XREU.js";
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-NVKO5YKP.js";
35
35
  import {
36
36
  compareEntityTimestamps
37
- } from "./chunk-6W3QH3QW.js";
37
+ } from "./chunk-JIJAWTRK.js";
38
38
  import {
39
39
  normalizeEntityText,
40
40
  resolveRequestedEntitySectionKeys
@@ -927,4 +927,4 @@ export {
927
927
  entityIndexVersion,
928
928
  entityRecentTranscriptLookbackHours
929
929
  };
930
- //# sourceMappingURL=chunk-C7WDWD35.js.map
930
+ //# sourceMappingURL=chunk-FNNGWN3O.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveCorpusNamespaceRoots
3
- } from "./chunk-2J6BIOVN.js";
3
+ } from "./chunk-4FM35YIA.js";
4
4
  import {
5
5
  capabilityAllowsNamespace
6
- } from "./chunk-IG747LRN.js";
6
+ } from "./chunk-YO2JEX2Z.js";
7
7
  import {
8
8
  normalizeNamespaceIdentity
9
9
  } from "./chunk-VUFL7X3H.js";
@@ -200,4 +200,4 @@ async function readAggregateExtractionWatermark(options) {
200
200
  export {
201
201
  readAggregateExtractionWatermark
202
202
  };
203
- //# sourceMappingURL=chunk-PBWJVRKE.js.map
203
+ //# sourceMappingURL=chunk-FT75AQ74.js.map
@@ -7,7 +7,7 @@ import {
7
7
  ENTITY_CANONICAL_ID_RECONCILE_MARKER,
8
8
  assertSafeEntityId,
9
9
  withEntityCanonicalMutationLock
10
- } from "./chunk-LWRIGKFM.js";
10
+ } from "./chunk-A5L5KGDI.js";
11
11
  import {
12
12
  computeSupersessionKey,
13
13
  normalizeSupersessionKey
@@ -57,7 +57,8 @@ var ENTITY_MAPPING_RESCAN_MAX_PASSES = 3;
57
57
  var EntityCanonicalIdMigrationStateSchema = z.object({
58
58
  version: z.literal(ENTITY_CANONICAL_ID_MIGRATION_VERSION),
59
59
  complete: z.boolean(),
60
- mappings: z.record(z.string().min(1)),
60
+ mappings: z.record(z.string(), z.string().min(1)),
61
+ completionFingerprint: z.string().optional(),
61
62
  /**
62
63
  * Pairs the migration refused to resolve, PARKED rather than dropped.
63
64
  * Deleting the record would strand the collision: once an operator removes
@@ -65,7 +66,7 @@ var EntityCanonicalIdMigrationStateSchema = z.object({
65
66
  * still naming the legacy id would never be rewritten. Optional so a journal
66
67
  * written by an older build still parses.
67
68
  */
68
- blocked: z.record(z.string().min(1)).optional()
69
+ blocked: z.record(z.string(), z.string().min(1)).optional()
69
70
  });
70
71
  async function fingerprintPath(filePath) {
71
72
  let fileStat;
@@ -692,14 +693,11 @@ async function migrateLegacyEntityCanonicalIds(deps) {
692
693
  if (!isErrnoCode(error, "ENOENT")) throw error;
693
694
  }
694
695
  }
695
- let state = await readState(deps);
696
- if (!state) {
697
- state = {
698
- version: ENTITY_CANONICAL_ID_MIGRATION_VERSION,
699
- complete: false,
700
- mappings: {}
701
- };
702
- }
696
+ let state = await readState(deps) ?? {
697
+ version: ENTITY_CANONICAL_ID_MIGRATION_VERSION,
698
+ complete: false,
699
+ mappings: {}
700
+ };
703
701
  const blocked = /* @__PURE__ */ new Map();
704
702
  const scanNotes = { junk: /* @__PURE__ */ new Set(), malformed: /* @__PURE__ */ new Set() };
705
703
  const staleParked = /* @__PURE__ */ new Map();
@@ -732,6 +730,10 @@ async function migrateLegacyEntityCanonicalIds(deps) {
732
730
  }
733
731
  const completionFingerprint = await deps.readMigrationFingerprint?.();
734
732
  if (await fileExists(reconcileMarkerPath)) return void 0;
733
+ if (completionFingerprint !== void 0 && state.completionFingerprint !== completionFingerprint) {
734
+ state = { ...state, complete: true, completionFingerprint };
735
+ await publishState(deps, state);
736
+ }
735
737
  return completionFingerprint;
736
738
  };
737
739
  const pruneBlocked = async () => {
@@ -889,4 +891,4 @@ export {
889
891
  readSafeEntityEntries,
890
892
  migrateLegacyEntityCanonicalIds
891
893
  };
892
- //# sourceMappingURL=chunk-VY6BD5KB.js.map
894
+ //# sourceMappingURL=chunk-G6A3SGCE.js.map