@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
@@ -9,49 +9,13 @@ export declare const ExportManifestV1Schema: z.ZodObject<{
9
9
  path: z.ZodString;
10
10
  sha256: z.ZodString;
11
11
  bytes: z.ZodNumber;
12
- }, "strip", z.ZodTypeAny, {
13
- path: string;
14
- sha256: string;
15
- bytes: number;
16
- }, {
17
- path: string;
18
- sha256: string;
19
- bytes: number;
20
- }>, "many">;
21
- }, "strip", z.ZodTypeAny, {
22
- schemaVersion: 1;
23
- files: {
24
- path: string;
25
- sha256: string;
26
- bytes: number;
27
- }[];
28
- createdAt: string;
29
- format: "openclaw-engram-export";
30
- pluginVersion: string;
31
- includesTranscripts: boolean;
32
- }, {
33
- schemaVersion: 1;
34
- files: {
35
- path: string;
36
- sha256: string;
37
- bytes: number;
38
- }[];
39
- createdAt: string;
40
- format: "openclaw-engram-export";
41
- pluginVersion: string;
42
- includesTranscripts: boolean;
43
- }>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$strip>;
44
14
  export type ExportManifestV1 = z.infer<typeof ExportManifestV1Schema>;
45
15
  export declare const ExportMemoryRecordV1Schema: z.ZodObject<{
46
16
  path: z.ZodString;
47
17
  content: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- content: string;
50
- path: string;
51
- }, {
52
- content: string;
53
- path: string;
54
- }>;
18
+ }, z.core.$strip>;
55
19
  export type ExportMemoryRecordV1 = z.infer<typeof ExportMemoryRecordV1Schema>;
56
20
  export declare const ExportBundleV1Schema: z.ZodObject<{
57
21
  manifest: z.ZodObject<{
@@ -64,83 +28,13 @@ export declare const ExportBundleV1Schema: z.ZodObject<{
64
28
  path: z.ZodString;
65
29
  sha256: z.ZodString;
66
30
  bytes: z.ZodNumber;
67
- }, "strip", z.ZodTypeAny, {
68
- path: string;
69
- sha256: string;
70
- bytes: number;
71
- }, {
72
- path: string;
73
- sha256: string;
74
- bytes: number;
75
- }>, "many">;
76
- }, "strip", z.ZodTypeAny, {
77
- schemaVersion: 1;
78
- files: {
79
- path: string;
80
- sha256: string;
81
- bytes: number;
82
- }[];
83
- createdAt: string;
84
- format: "openclaw-engram-export";
85
- pluginVersion: string;
86
- includesTranscripts: boolean;
87
- }, {
88
- schemaVersion: 1;
89
- files: {
90
- path: string;
91
- sha256: string;
92
- bytes: number;
93
- }[];
94
- createdAt: string;
95
- format: "openclaw-engram-export";
96
- pluginVersion: string;
97
- includesTranscripts: boolean;
98
- }>;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>;
99
33
  records: z.ZodArray<z.ZodObject<{
100
34
  path: z.ZodString;
101
35
  content: z.ZodString;
102
- }, "strip", z.ZodTypeAny, {
103
- content: string;
104
- path: string;
105
- }, {
106
- content: string;
107
- path: string;
108
- }>, "many">;
109
- }, "strip", z.ZodTypeAny, {
110
- records: {
111
- content: string;
112
- path: string;
113
- }[];
114
- manifest: {
115
- schemaVersion: 1;
116
- files: {
117
- path: string;
118
- sha256: string;
119
- bytes: number;
120
- }[];
121
- createdAt: string;
122
- format: "openclaw-engram-export";
123
- pluginVersion: string;
124
- includesTranscripts: boolean;
125
- };
126
- }, {
127
- records: {
128
- content: string;
129
- path: string;
130
- }[];
131
- manifest: {
132
- schemaVersion: 1;
133
- files: {
134
- path: string;
135
- sha256: string;
136
- bytes: number;
137
- }[];
138
- createdAt: string;
139
- format: "openclaw-engram-export";
140
- pluginVersion: string;
141
- includesTranscripts: boolean;
142
- };
143
- }>;
36
+ }, z.core.$strip>>;
37
+ }, z.core.$strip>;
144
38
  export type ExportBundleV1 = z.infer<typeof ExportBundleV1Schema>;
145
39
  /**
146
40
  * Allowed pattern for a user-chosen capsule id.
@@ -155,43 +49,16 @@ export type ExportBundleV1 = z.infer<typeof ExportBundleV1Schema>;
155
49
  */
156
50
  export declare const CAPSULE_ID_PATTERN: RegExp;
157
51
  export declare const CapsuleRetrievalPolicySchema: z.ZodObject<{
158
- /**
159
- * Per-tier weight overrides applied during recall when the capsule is the
160
- * active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
161
- * are non-negative finite multipliers. The set of valid keys is left open
162
- * for now so future tiers do not break older manifests.
163
- */
164
52
  tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
165
- /**
166
- * Whether the direct-answer fast path is allowed when this capsule is
167
- * active. Operators may disable it for capsules whose contents should
168
- * always flow through the full retrieval pipeline.
169
- */
170
53
  directAnswerEnabled: z.ZodBoolean;
171
- }, "strip", z.ZodTypeAny, {
172
- tierWeights: Record<string, number>;
173
- directAnswerEnabled: boolean;
174
- }, {
175
- tierWeights: Record<string, number>;
176
- directAnswerEnabled: boolean;
177
- }>;
54
+ }, z.core.$strip>;
178
55
  export type CapsuleRetrievalPolicy = z.infer<typeof CapsuleRetrievalPolicySchema>;
179
56
  export declare const CapsuleIncludesSchema: z.ZodObject<{
180
57
  taxonomy: z.ZodBoolean;
181
58
  identityAnchors: z.ZodBoolean;
182
59
  peerProfiles: z.ZodBoolean;
183
60
  procedural: z.ZodBoolean;
184
- }, "strip", z.ZodTypeAny, {
185
- procedural: boolean;
186
- taxonomy: boolean;
187
- identityAnchors: boolean;
188
- peerProfiles: boolean;
189
- }, {
190
- procedural: boolean;
191
- taxonomy: boolean;
192
- identityAnchors: boolean;
193
- peerProfiles: boolean;
194
- }>;
61
+ }, z.core.$strip>;
195
62
  export type CapsuleIncludes = z.infer<typeof CapsuleIncludesSchema>;
196
63
  /**
197
64
  * Structured linkage to the capsule that was forked to produce this one.
@@ -207,153 +74,31 @@ export type CapsuleIncludes = z.infer<typeof CapsuleIncludesSchema>;
207
74
  export declare const CapsuleParentSchema: z.ZodObject<{
208
75
  capsuleId: z.ZodString;
209
76
  version: z.ZodString;
210
- /**
211
- * Posix-relative path prefix under the fork's memory root where the parent
212
- * capsule's records were placed. Typically `forks/<parent-capsule-id>`.
213
- * Must be a non-empty string with no leading slash.
214
- */
215
- forkRoot: z.ZodEffects<z.ZodString, string, string>;
216
- }, "strip", z.ZodTypeAny, {
217
- version: string;
218
- capsuleId: string;
219
- forkRoot: string;
220
- }, {
221
- version: string;
222
- capsuleId: string;
223
- forkRoot: string;
224
- }>;
77
+ forkRoot: z.ZodString;
78
+ }, z.core.$strip>;
225
79
  export type CapsuleParent = z.infer<typeof CapsuleParentSchema>;
226
80
  export declare const CapsuleBlockSchema: z.ZodObject<{
227
81
  id: z.ZodString;
228
82
  version: z.ZodString;
229
- /**
230
- * Taxonomy schema version the capsule was authored against. Free-form for
231
- * now; later PRs may tighten this to a known taxonomy registry.
232
- */
233
83
  schemaVersion: z.ZodString;
234
- /**
235
- * Optional reference to the parent capsule this one was forked or derived
236
- * from. `null` (not `undefined`) is the explicit "no parent" sentinel so
237
- * that round-trips through JSON do not silently drop the field.
238
- *
239
- * @deprecated Prefer {@link parent} (structured). This field is preserved
240
- * for backward compatibility with V2 manifests written before PR 4/6.
241
- */
242
84
  parentCapsule: z.ZodNullable<z.ZodString>;
243
- /**
244
- * Structured fork-lineage pointer added in PR 4/6. When present, this
245
- * capsule is a fork of the described parent. `null` is the explicit
246
- * "not a fork" sentinel — round-trips through JSON cleanly without
247
- * silently dropping the field.
248
- *
249
- * Defaults to `null` so that V2 manifests written before PR 4/6 (which
250
- * omit this field) still parse without error. This preserves backward
251
- * compatibility with the existing `makeV2Manifest()` test fixtures and
252
- * any in-the-wild V2 archives produced by PR 2/6 and PR 3/6.
253
- *
254
- * Invariant: when `parent` is non-null, `parentCapsule` SHOULD equal
255
- * `parent.capsuleId` for backward compatibility with readers that only
256
- * understand the legacy field. `forkCapsule()` sets both.
257
- */
258
85
  parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
259
86
  capsuleId: z.ZodString;
260
87
  version: z.ZodString;
261
- /**
262
- * Posix-relative path prefix under the fork's memory root where the parent
263
- * capsule's records were placed. Typically `forks/<parent-capsule-id>`.
264
- * Must be a non-empty string with no leading slash.
265
- */
266
- forkRoot: z.ZodEffects<z.ZodString, string, string>;
267
- }, "strip", z.ZodTypeAny, {
268
- version: string;
269
- capsuleId: string;
270
- forkRoot: string;
271
- }, {
272
- version: string;
273
- capsuleId: string;
274
- forkRoot: string;
275
- }>>>;
88
+ forkRoot: z.ZodString;
89
+ }, z.core.$strip>>>;
276
90
  description: z.ZodString;
277
91
  retrievalPolicy: z.ZodObject<{
278
- /**
279
- * Per-tier weight overrides applied during recall when the capsule is the
280
- * active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
281
- * are non-negative finite multipliers. The set of valid keys is left open
282
- * for now so future tiers do not break older manifests.
283
- */
284
92
  tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
285
- /**
286
- * Whether the direct-answer fast path is allowed when this capsule is
287
- * active. Operators may disable it for capsules whose contents should
288
- * always flow through the full retrieval pipeline.
289
- */
290
93
  directAnswerEnabled: z.ZodBoolean;
291
- }, "strip", z.ZodTypeAny, {
292
- tierWeights: Record<string, number>;
293
- directAnswerEnabled: boolean;
294
- }, {
295
- tierWeights: Record<string, number>;
296
- directAnswerEnabled: boolean;
297
- }>;
94
+ }, z.core.$strip>;
298
95
  includes: z.ZodObject<{
299
96
  taxonomy: z.ZodBoolean;
300
97
  identityAnchors: z.ZodBoolean;
301
98
  peerProfiles: z.ZodBoolean;
302
99
  procedural: z.ZodBoolean;
303
- }, "strip", z.ZodTypeAny, {
304
- procedural: boolean;
305
- taxonomy: boolean;
306
- identityAnchors: boolean;
307
- peerProfiles: boolean;
308
- }, {
309
- procedural: boolean;
310
- taxonomy: boolean;
311
- identityAnchors: boolean;
312
- peerProfiles: boolean;
313
- }>;
314
- }, "strip", z.ZodTypeAny, {
315
- includes: {
316
- procedural: boolean;
317
- taxonomy: boolean;
318
- identityAnchors: boolean;
319
- peerProfiles: boolean;
320
- };
321
- schemaVersion: string;
322
- id: string;
323
- description: string;
324
- version: string;
325
- parentCapsule: string | null;
326
- parent: {
327
- version: string;
328
- capsuleId: string;
329
- forkRoot: string;
330
- } | null;
331
- retrievalPolicy: {
332
- tierWeights: Record<string, number>;
333
- directAnswerEnabled: boolean;
334
- };
335
- }, {
336
- includes: {
337
- procedural: boolean;
338
- taxonomy: boolean;
339
- identityAnchors: boolean;
340
- peerProfiles: boolean;
341
- };
342
- schemaVersion: string;
343
- id: string;
344
- description: string;
345
- version: string;
346
- parentCapsule: string | null;
347
- retrievalPolicy: {
348
- tierWeights: Record<string, number>;
349
- directAnswerEnabled: boolean;
350
- };
351
- parent?: {
352
- version: string;
353
- capsuleId: string;
354
- forkRoot: string;
355
- } | null | undefined;
356
- }>;
100
+ }, z.core.$strip>;
101
+ }, z.core.$strip>;
357
102
  export type CapsuleBlock = z.infer<typeof CapsuleBlockSchema>;
358
103
  export declare const ExportManifestV2Schema: z.ZodObject<{
359
104
  format: z.ZodLiteral<"openclaw-engram-export">;
@@ -365,213 +110,30 @@ export declare const ExportManifestV2Schema: z.ZodObject<{
365
110
  path: z.ZodString;
366
111
  sha256: z.ZodString;
367
112
  bytes: z.ZodNumber;
368
- }, "strip", z.ZodTypeAny, {
369
- path: string;
370
- sha256: string;
371
- bytes: number;
372
- }, {
373
- path: string;
374
- sha256: string;
375
- bytes: number;
376
- }>, "many">;
113
+ }, z.core.$strip>>;
377
114
  capsule: z.ZodObject<{
378
115
  id: z.ZodString;
379
116
  version: z.ZodString;
380
- /**
381
- * Taxonomy schema version the capsule was authored against. Free-form for
382
- * now; later PRs may tighten this to a known taxonomy registry.
383
- */
384
117
  schemaVersion: z.ZodString;
385
- /**
386
- * Optional reference to the parent capsule this one was forked or derived
387
- * from. `null` (not `undefined`) is the explicit "no parent" sentinel so
388
- * that round-trips through JSON do not silently drop the field.
389
- *
390
- * @deprecated Prefer {@link parent} (structured). This field is preserved
391
- * for backward compatibility with V2 manifests written before PR 4/6.
392
- */
393
118
  parentCapsule: z.ZodNullable<z.ZodString>;
394
- /**
395
- * Structured fork-lineage pointer added in PR 4/6. When present, this
396
- * capsule is a fork of the described parent. `null` is the explicit
397
- * "not a fork" sentinel — round-trips through JSON cleanly without
398
- * silently dropping the field.
399
- *
400
- * Defaults to `null` so that V2 manifests written before PR 4/6 (which
401
- * omit this field) still parse without error. This preserves backward
402
- * compatibility with the existing `makeV2Manifest()` test fixtures and
403
- * any in-the-wild V2 archives produced by PR 2/6 and PR 3/6.
404
- *
405
- * Invariant: when `parent` is non-null, `parentCapsule` SHOULD equal
406
- * `parent.capsuleId` for backward compatibility with readers that only
407
- * understand the legacy field. `forkCapsule()` sets both.
408
- */
409
119
  parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
410
120
  capsuleId: z.ZodString;
411
121
  version: z.ZodString;
412
- /**
413
- * Posix-relative path prefix under the fork's memory root where the parent
414
- * capsule's records were placed. Typically `forks/<parent-capsule-id>`.
415
- * Must be a non-empty string with no leading slash.
416
- */
417
- forkRoot: z.ZodEffects<z.ZodString, string, string>;
418
- }, "strip", z.ZodTypeAny, {
419
- version: string;
420
- capsuleId: string;
421
- forkRoot: string;
422
- }, {
423
- version: string;
424
- capsuleId: string;
425
- forkRoot: string;
426
- }>>>;
122
+ forkRoot: z.ZodString;
123
+ }, z.core.$strip>>>;
427
124
  description: z.ZodString;
428
125
  retrievalPolicy: z.ZodObject<{
429
- /**
430
- * Per-tier weight overrides applied during recall when the capsule is the
431
- * active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
432
- * are non-negative finite multipliers. The set of valid keys is left open
433
- * for now so future tiers do not break older manifests.
434
- */
435
126
  tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
436
- /**
437
- * Whether the direct-answer fast path is allowed when this capsule is
438
- * active. Operators may disable it for capsules whose contents should
439
- * always flow through the full retrieval pipeline.
440
- */
441
127
  directAnswerEnabled: z.ZodBoolean;
442
- }, "strip", z.ZodTypeAny, {
443
- tierWeights: Record<string, number>;
444
- directAnswerEnabled: boolean;
445
- }, {
446
- tierWeights: Record<string, number>;
447
- directAnswerEnabled: boolean;
448
- }>;
128
+ }, z.core.$strip>;
449
129
  includes: z.ZodObject<{
450
130
  taxonomy: z.ZodBoolean;
451
131
  identityAnchors: z.ZodBoolean;
452
132
  peerProfiles: z.ZodBoolean;
453
133
  procedural: z.ZodBoolean;
454
- }, "strip", z.ZodTypeAny, {
455
- procedural: boolean;
456
- taxonomy: boolean;
457
- identityAnchors: boolean;
458
- peerProfiles: boolean;
459
- }, {
460
- procedural: boolean;
461
- taxonomy: boolean;
462
- identityAnchors: boolean;
463
- peerProfiles: boolean;
464
- }>;
465
- }, "strip", z.ZodTypeAny, {
466
- includes: {
467
- procedural: boolean;
468
- taxonomy: boolean;
469
- identityAnchors: boolean;
470
- peerProfiles: boolean;
471
- };
472
- schemaVersion: string;
473
- id: string;
474
- description: string;
475
- version: string;
476
- parentCapsule: string | null;
477
- parent: {
478
- version: string;
479
- capsuleId: string;
480
- forkRoot: string;
481
- } | null;
482
- retrievalPolicy: {
483
- tierWeights: Record<string, number>;
484
- directAnswerEnabled: boolean;
485
- };
486
- }, {
487
- includes: {
488
- procedural: boolean;
489
- taxonomy: boolean;
490
- identityAnchors: boolean;
491
- peerProfiles: boolean;
492
- };
493
- schemaVersion: string;
494
- id: string;
495
- description: string;
496
- version: string;
497
- parentCapsule: string | null;
498
- retrievalPolicy: {
499
- tierWeights: Record<string, number>;
500
- directAnswerEnabled: boolean;
501
- };
502
- parent?: {
503
- version: string;
504
- capsuleId: string;
505
- forkRoot: string;
506
- } | null | undefined;
507
- }>;
508
- }, "strip", z.ZodTypeAny, {
509
- schemaVersion: 2;
510
- files: {
511
- path: string;
512
- sha256: string;
513
- bytes: number;
514
- }[];
515
- createdAt: string;
516
- format: "openclaw-engram-export";
517
- pluginVersion: string;
518
- includesTranscripts: boolean;
519
- capsule: {
520
- includes: {
521
- procedural: boolean;
522
- taxonomy: boolean;
523
- identityAnchors: boolean;
524
- peerProfiles: boolean;
525
- };
526
- schemaVersion: string;
527
- id: string;
528
- description: string;
529
- version: string;
530
- parentCapsule: string | null;
531
- parent: {
532
- version: string;
533
- capsuleId: string;
534
- forkRoot: string;
535
- } | null;
536
- retrievalPolicy: {
537
- tierWeights: Record<string, number>;
538
- directAnswerEnabled: boolean;
539
- };
540
- };
541
- }, {
542
- schemaVersion: 2;
543
- files: {
544
- path: string;
545
- sha256: string;
546
- bytes: number;
547
- }[];
548
- createdAt: string;
549
- format: "openclaw-engram-export";
550
- pluginVersion: string;
551
- includesTranscripts: boolean;
552
- capsule: {
553
- includes: {
554
- procedural: boolean;
555
- taxonomy: boolean;
556
- identityAnchors: boolean;
557
- peerProfiles: boolean;
558
- };
559
- schemaVersion: string;
560
- id: string;
561
- description: string;
562
- version: string;
563
- parentCapsule: string | null;
564
- retrievalPolicy: {
565
- tierWeights: Record<string, number>;
566
- directAnswerEnabled: boolean;
567
- };
568
- parent?: {
569
- version: string;
570
- capsuleId: string;
571
- forkRoot: string;
572
- } | null | undefined;
573
- };
574
- }>;
134
+ }, z.core.$strip>;
135
+ }, z.core.$strip>;
136
+ }, z.core.$strip>;
575
137
  export type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
576
138
  export declare const ExportBundleV2Schema: z.ZodObject<{
577
139
  manifest: z.ZodObject<{
@@ -584,302 +146,35 @@ export declare const ExportBundleV2Schema: z.ZodObject<{
584
146
  path: z.ZodString;
585
147
  sha256: z.ZodString;
586
148
  bytes: z.ZodNumber;
587
- }, "strip", z.ZodTypeAny, {
588
- path: string;
589
- sha256: string;
590
- bytes: number;
591
- }, {
592
- path: string;
593
- sha256: string;
594
- bytes: number;
595
- }>, "many">;
149
+ }, z.core.$strip>>;
596
150
  capsule: z.ZodObject<{
597
151
  id: z.ZodString;
598
152
  version: z.ZodString;
599
- /**
600
- * Taxonomy schema version the capsule was authored against. Free-form for
601
- * now; later PRs may tighten this to a known taxonomy registry.
602
- */
603
153
  schemaVersion: z.ZodString;
604
- /**
605
- * Optional reference to the parent capsule this one was forked or derived
606
- * from. `null` (not `undefined`) is the explicit "no parent" sentinel so
607
- * that round-trips through JSON do not silently drop the field.
608
- *
609
- * @deprecated Prefer {@link parent} (structured). This field is preserved
610
- * for backward compatibility with V2 manifests written before PR 4/6.
611
- */
612
154
  parentCapsule: z.ZodNullable<z.ZodString>;
613
- /**
614
- * Structured fork-lineage pointer added in PR 4/6. When present, this
615
- * capsule is a fork of the described parent. `null` is the explicit
616
- * "not a fork" sentinel — round-trips through JSON cleanly without
617
- * silently dropping the field.
618
- *
619
- * Defaults to `null` so that V2 manifests written before PR 4/6 (which
620
- * omit this field) still parse without error. This preserves backward
621
- * compatibility with the existing `makeV2Manifest()` test fixtures and
622
- * any in-the-wild V2 archives produced by PR 2/6 and PR 3/6.
623
- *
624
- * Invariant: when `parent` is non-null, `parentCapsule` SHOULD equal
625
- * `parent.capsuleId` for backward compatibility with readers that only
626
- * understand the legacy field. `forkCapsule()` sets both.
627
- */
628
155
  parent: z.ZodDefault<z.ZodNullable<z.ZodObject<{
629
156
  capsuleId: z.ZodString;
630
157
  version: z.ZodString;
631
- /**
632
- * Posix-relative path prefix under the fork's memory root where the parent
633
- * capsule's records were placed. Typically `forks/<parent-capsule-id>`.
634
- * Must be a non-empty string with no leading slash.
635
- */
636
- forkRoot: z.ZodEffects<z.ZodString, string, string>;
637
- }, "strip", z.ZodTypeAny, {
638
- version: string;
639
- capsuleId: string;
640
- forkRoot: string;
641
- }, {
642
- version: string;
643
- capsuleId: string;
644
- forkRoot: string;
645
- }>>>;
158
+ forkRoot: z.ZodString;
159
+ }, z.core.$strip>>>;
646
160
  description: z.ZodString;
647
161
  retrievalPolicy: z.ZodObject<{
648
- /**
649
- * Per-tier weight overrides applied during recall when the capsule is the
650
- * active scope. Keys are tier names (e.g. `bm25`, `vector`, `graph`); values
651
- * are non-negative finite multipliers. The set of valid keys is left open
652
- * for now so future tiers do not break older manifests.
653
- */
654
162
  tierWeights: z.ZodRecord<z.ZodString, z.ZodNumber>;
655
- /**
656
- * Whether the direct-answer fast path is allowed when this capsule is
657
- * active. Operators may disable it for capsules whose contents should
658
- * always flow through the full retrieval pipeline.
659
- */
660
163
  directAnswerEnabled: z.ZodBoolean;
661
- }, "strip", z.ZodTypeAny, {
662
- tierWeights: Record<string, number>;
663
- directAnswerEnabled: boolean;
664
- }, {
665
- tierWeights: Record<string, number>;
666
- directAnswerEnabled: boolean;
667
- }>;
164
+ }, z.core.$strip>;
668
165
  includes: z.ZodObject<{
669
166
  taxonomy: z.ZodBoolean;
670
167
  identityAnchors: z.ZodBoolean;
671
168
  peerProfiles: z.ZodBoolean;
672
169
  procedural: z.ZodBoolean;
673
- }, "strip", z.ZodTypeAny, {
674
- procedural: boolean;
675
- taxonomy: boolean;
676
- identityAnchors: boolean;
677
- peerProfiles: boolean;
678
- }, {
679
- procedural: boolean;
680
- taxonomy: boolean;
681
- identityAnchors: boolean;
682
- peerProfiles: boolean;
683
- }>;
684
- }, "strip", z.ZodTypeAny, {
685
- includes: {
686
- procedural: boolean;
687
- taxonomy: boolean;
688
- identityAnchors: boolean;
689
- peerProfiles: boolean;
690
- };
691
- schemaVersion: string;
692
- id: string;
693
- description: string;
694
- version: string;
695
- parentCapsule: string | null;
696
- parent: {
697
- version: string;
698
- capsuleId: string;
699
- forkRoot: string;
700
- } | null;
701
- retrievalPolicy: {
702
- tierWeights: Record<string, number>;
703
- directAnswerEnabled: boolean;
704
- };
705
- }, {
706
- includes: {
707
- procedural: boolean;
708
- taxonomy: boolean;
709
- identityAnchors: boolean;
710
- peerProfiles: boolean;
711
- };
712
- schemaVersion: string;
713
- id: string;
714
- description: string;
715
- version: string;
716
- parentCapsule: string | null;
717
- retrievalPolicy: {
718
- tierWeights: Record<string, number>;
719
- directAnswerEnabled: boolean;
720
- };
721
- parent?: {
722
- version: string;
723
- capsuleId: string;
724
- forkRoot: string;
725
- } | null | undefined;
726
- }>;
727
- }, "strip", z.ZodTypeAny, {
728
- schemaVersion: 2;
729
- files: {
730
- path: string;
731
- sha256: string;
732
- bytes: number;
733
- }[];
734
- createdAt: string;
735
- format: "openclaw-engram-export";
736
- pluginVersion: string;
737
- includesTranscripts: boolean;
738
- capsule: {
739
- includes: {
740
- procedural: boolean;
741
- taxonomy: boolean;
742
- identityAnchors: boolean;
743
- peerProfiles: boolean;
744
- };
745
- schemaVersion: string;
746
- id: string;
747
- description: string;
748
- version: string;
749
- parentCapsule: string | null;
750
- parent: {
751
- version: string;
752
- capsuleId: string;
753
- forkRoot: string;
754
- } | null;
755
- retrievalPolicy: {
756
- tierWeights: Record<string, number>;
757
- directAnswerEnabled: boolean;
758
- };
759
- };
760
- }, {
761
- schemaVersion: 2;
762
- files: {
763
- path: string;
764
- sha256: string;
765
- bytes: number;
766
- }[];
767
- createdAt: string;
768
- format: "openclaw-engram-export";
769
- pluginVersion: string;
770
- includesTranscripts: boolean;
771
- capsule: {
772
- includes: {
773
- procedural: boolean;
774
- taxonomy: boolean;
775
- identityAnchors: boolean;
776
- peerProfiles: boolean;
777
- };
778
- schemaVersion: string;
779
- id: string;
780
- description: string;
781
- version: string;
782
- parentCapsule: string | null;
783
- retrievalPolicy: {
784
- tierWeights: Record<string, number>;
785
- directAnswerEnabled: boolean;
786
- };
787
- parent?: {
788
- version: string;
789
- capsuleId: string;
790
- forkRoot: string;
791
- } | null | undefined;
792
- };
793
- }>;
170
+ }, z.core.$strip>;
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>;
794
173
  records: z.ZodArray<z.ZodObject<{
795
174
  path: z.ZodString;
796
175
  content: z.ZodString;
797
- }, "strip", z.ZodTypeAny, {
798
- content: string;
799
- path: string;
800
- }, {
801
- content: string;
802
- path: string;
803
- }>, "many">;
804
- }, "strip", z.ZodTypeAny, {
805
- records: {
806
- content: string;
807
- path: string;
808
- }[];
809
- manifest: {
810
- schemaVersion: 2;
811
- files: {
812
- path: string;
813
- sha256: string;
814
- bytes: number;
815
- }[];
816
- createdAt: string;
817
- format: "openclaw-engram-export";
818
- pluginVersion: string;
819
- includesTranscripts: boolean;
820
- capsule: {
821
- includes: {
822
- procedural: boolean;
823
- taxonomy: boolean;
824
- identityAnchors: boolean;
825
- peerProfiles: boolean;
826
- };
827
- schemaVersion: string;
828
- id: string;
829
- description: string;
830
- version: string;
831
- parentCapsule: string | null;
832
- parent: {
833
- version: string;
834
- capsuleId: string;
835
- forkRoot: string;
836
- } | null;
837
- retrievalPolicy: {
838
- tierWeights: Record<string, number>;
839
- directAnswerEnabled: boolean;
840
- };
841
- };
842
- };
843
- }, {
844
- records: {
845
- content: string;
846
- path: string;
847
- }[];
848
- manifest: {
849
- schemaVersion: 2;
850
- files: {
851
- path: string;
852
- sha256: string;
853
- bytes: number;
854
- }[];
855
- createdAt: string;
856
- format: "openclaw-engram-export";
857
- pluginVersion: string;
858
- includesTranscripts: boolean;
859
- capsule: {
860
- includes: {
861
- procedural: boolean;
862
- taxonomy: boolean;
863
- identityAnchors: boolean;
864
- peerProfiles: boolean;
865
- };
866
- schemaVersion: string;
867
- id: string;
868
- description: string;
869
- version: string;
870
- parentCapsule: string | null;
871
- retrievalPolicy: {
872
- tierWeights: Record<string, number>;
873
- directAnswerEnabled: boolean;
874
- };
875
- parent?: {
876
- version: string;
877
- capsuleId: string;
878
- forkRoot: string;
879
- } | null | undefined;
880
- };
881
- };
882
- }>;
176
+ }, z.core.$strip>>;
177
+ }, z.core.$strip>;
883
178
  export type ExportBundleV2 = z.infer<typeof ExportBundleV2Schema>;
884
179
  export type AnyExportManifest = ExportManifestV1 | ExportManifestV2;
885
180
  export type AnyExportBundle = ExportBundleV1 | ExportBundleV2;