@noy-db/hub 0.3.0-pre.5 → 0.3.0-pre.7

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 (364) hide show
  1. package/dist/adapter/index.d.ts +1 -1
  2. package/dist/adapter/index.js +1 -1
  3. package/dist/aggregate/index.d.ts +2 -2
  4. package/dist/aggregate/index.js +4 -4
  5. package/dist/api-Z66JMGOU.js +20 -0
  6. package/dist/as/index.d.ts +3 -3
  7. package/dist/as/index.js +11 -11
  8. package/dist/at/index.d.ts +1 -1
  9. package/dist/attestation/index.d.ts +2 -2
  10. package/dist/attestation/index.js +18 -18
  11. package/dist/{backup-OPONO6Q5.js → backup-7PX6NDKT.js} +11 -11
  12. package/dist/blobs/index.d.ts +3 -3
  13. package/dist/blobs/index.js +10 -10
  14. package/dist/bundle/index.d.ts +4 -4
  15. package/dist/bundle/index.js +20 -20
  16. package/dist/{bundle-Bs13EZtX.d.ts → bundle-BN_VSq5L.d.ts} +1 -1
  17. package/dist/by/index.js +2 -2
  18. package/dist/cargo/index.d.ts +3 -3
  19. package/dist/cargo/index.js +22 -22
  20. package/dist/{chunk-BMQOH7MM.js → chunk-26FSVNBL.js} +2 -2
  21. package/dist/{chunk-6UOSONVI.js → chunk-2L7PPF2C.js} +9 -9
  22. package/dist/{chunk-TB5RNNJ4.js → chunk-3CHNKEFI.js} +5 -5
  23. package/dist/{chunk-AF5ZRTZ4.js → chunk-47C4CI7R.js} +2 -2
  24. package/dist/{chunk-ULIHDPKL.js → chunk-55LSDABW.js} +2 -2
  25. package/dist/{chunk-P5WXDYMD.js → chunk-5GQE5IDB.js} +4 -4
  26. package/dist/{chunk-TLJOJBZD.js → chunk-5HZULLHE.js} +2 -2
  27. package/dist/chunk-5JQMX2EH.js +50 -0
  28. package/dist/chunk-5JQMX2EH.js.map +1 -0
  29. package/dist/{chunk-IEUIUSBO.js → chunk-5K7KZMXG.js} +654 -101
  30. package/dist/chunk-5K7KZMXG.js.map +1 -0
  31. package/dist/{chunk-PGFY7IRW.js → chunk-5UOPIPZC.js} +3 -3
  32. package/dist/{chunk-GQOT6QJR.js → chunk-62TTFKU4.js} +6 -6
  33. package/dist/{chunk-ZKF6HH7V.js → chunk-6P5AJ2ZS.js} +2 -2
  34. package/dist/{chunk-QNTEDPWP.js → chunk-6PALJTC2.js} +3 -3
  35. package/dist/{chunk-GBTUANXF.js → chunk-6Z435B6N.js} +5 -5
  36. package/dist/{chunk-SAJJWVNQ.js → chunk-7AERMJP6.js} +38 -6
  37. package/dist/chunk-7AERMJP6.js.map +1 -0
  38. package/dist/{chunk-XYYW64LB.js → chunk-7CZ6YXMO.js} +2 -2
  39. package/dist/{chunk-TL7QR5T6.js → chunk-7F2P2NHX.js} +4 -4
  40. package/dist/{chunk-RDHAGBEB.js → chunk-7KTL4RHZ.js} +3 -3
  41. package/dist/{chunk-ZKYMKF2S.js → chunk-7L6EH6S7.js} +6 -6
  42. package/dist/{chunk-NQVZB3S7.js → chunk-AG2PLGQ2.js} +6 -6
  43. package/dist/{chunk-G4MGYGSS.js → chunk-AZPGB4OD.js} +6 -6
  44. package/dist/{chunk-4K3MQ5S3.js → chunk-BASCPHNM.js} +2 -2
  45. package/dist/{chunk-BKGIWGCX.js → chunk-C4NOLA5X.js} +2 -2
  46. package/dist/{chunk-SW56GSYC.js → chunk-CHK5VVMI.js} +2 -2
  47. package/dist/{chunk-EWR7HL3K.js → chunk-CND5WQLO.js} +30 -5
  48. package/dist/{chunk-EWR7HL3K.js.map → chunk-CND5WQLO.js.map} +1 -1
  49. package/dist/{chunk-A4DWPOP3.js → chunk-CP3GUIAN.js} +10 -10
  50. package/dist/{chunk-TYGW5TOR.js → chunk-DJ4TNF4N.js} +5 -5
  51. package/dist/{chunk-P2LDXRGP.js → chunk-DKGZIX6S.js} +2 -2
  52. package/dist/{chunk-VMJ5URU7.js → chunk-E3LURVGQ.js} +6 -6
  53. package/dist/{chunk-3Y4QLJ6K.js → chunk-EU7HDMT3.js} +2 -2
  54. package/dist/{chunk-T65UZXR6.js → chunk-FCOZ7DEC.js} +3 -3
  55. package/dist/{chunk-M66NAZA4.js → chunk-G5CFMITA.js} +3 -3
  56. package/dist/{chunk-ZT4GWVTX.js → chunk-GMZFHDSG.js} +5 -5
  57. package/dist/chunk-GYGLAVCX.js +19 -0
  58. package/dist/chunk-GYGLAVCX.js.map +1 -0
  59. package/dist/{chunk-OFBFAVLI.js → chunk-H3MPSYCH.js} +215 -56
  60. package/dist/chunk-H3MPSYCH.js.map +1 -0
  61. package/dist/{chunk-VWGCJUTV.js → chunk-H7WQMGXH.js} +2 -2
  62. package/dist/{chunk-7SY3PTED.js → chunk-HBVEGUON.js} +3 -3
  63. package/dist/{chunk-LN22XH4B.js → chunk-HCK2DFEK.js} +1 -1
  64. package/dist/chunk-HCK2DFEK.js.map +1 -0
  65. package/dist/chunk-HGQ6UNHE.js +45 -0
  66. package/dist/chunk-HGQ6UNHE.js.map +1 -0
  67. package/dist/{chunk-GXGK22QU.js → chunk-HU55NPHZ.js} +2 -2
  68. package/dist/{chunk-XJR3COJO.js → chunk-HV3VNAYI.js} +5 -5
  69. package/dist/{chunk-U24XHXNK.js → chunk-I6JJ6VJS.js} +2 -2
  70. package/dist/{chunk-5MRE3C4Q.js → chunk-I6Q7YECW.js} +3 -3
  71. package/dist/{chunk-P27Z66EB.js → chunk-IEKK2XI4.js} +5 -5
  72. package/dist/{chunk-N5YVZHCB.js → chunk-II6DLDZM.js} +2 -2
  73. package/dist/{chunk-Z3FZC5GV.js → chunk-J54DC5IC.js} +5 -5
  74. package/dist/{chunk-OJU3CPFA.js → chunk-J5YDMJHG.js} +9 -9
  75. package/dist/{chunk-OVO2RZAE.js → chunk-JIW3Q5JN.js} +14 -13
  76. package/dist/chunk-JIW3Q5JN.js.map +1 -0
  77. package/dist/{chunk-H5XRIJX3.js → chunk-JT4A6OAJ.js} +5 -5
  78. package/dist/{chunk-S2WKOCTU.js → chunk-K6WHZBCO.js} +2 -2
  79. package/dist/{chunk-Z7KI4WHR.js → chunk-LFGJG4XZ.js} +2 -2
  80. package/dist/{chunk-ZROMNP7Q.js → chunk-MOQ5M46U.js} +2 -2
  81. package/dist/{chunk-T45LAT2Y.js → chunk-NO53W6O5.js} +2 -2
  82. package/dist/{chunk-H7RYPVMJ.js → chunk-OFYY5Q4R.js} +2 -2
  83. package/dist/{chunk-U23JUUPX.js → chunk-OJ64XMPJ.js} +10 -2
  84. package/dist/{chunk-U23JUUPX.js.map → chunk-OJ64XMPJ.js.map} +1 -1
  85. package/dist/{chunk-HMXLN43G.js → chunk-OWGAXPRE.js} +2 -2
  86. package/dist/{chunk-T2EGAXPM.js → chunk-PAJCRV7O.js} +2 -2
  87. package/dist/{chunk-ZBDK7T6X.js → chunk-PE25C4QL.js} +7 -7
  88. package/dist/{chunk-RTS23VIJ.js → chunk-PYIUDUGS.js} +2 -2
  89. package/dist/{chunk-Z5PIUYNB.js → chunk-QAVFI23O.js} +6 -6
  90. package/dist/{chunk-VFRNWE5P.js → chunk-QYNBPDGO.js} +6 -6
  91. package/dist/{chunk-6HNKCKFZ.js → chunk-RHB7BOEO.js} +5 -5
  92. package/dist/{chunk-6RXPSMKR.js → chunk-RNYDHIQL.js} +3 -3
  93. package/dist/{chunk-PI5CG2OV.js → chunk-RUWEHFRB.js} +4 -4
  94. package/dist/{chunk-3QRQOBS7.js → chunk-T4NQMPBN.js} +3 -3
  95. package/dist/{chunk-VPCMJ5Z4.js → chunk-U5IJHUHZ.js} +5 -5
  96. package/dist/{chunk-43ISXURO.js → chunk-U7LV2DUN.js} +2 -2
  97. package/dist/{chunk-FH52CDEW.js → chunk-UB3XHGFG.js} +5 -5
  98. package/dist/{chunk-HBKDR7R3.js → chunk-UJJJPKJO.js} +3 -3
  99. package/dist/{chunk-TCIUO62Z.js → chunk-UWZ7O4NR.js} +2 -2
  100. package/dist/{chunk-P3NGV5RV.js → chunk-V76PHWLE.js} +2 -2
  101. package/dist/{chunk-A5DYVMDR.js → chunk-VFG5YXWM.js} +3 -3
  102. package/dist/{chunk-UOEWDCUX.js → chunk-VFQOE76I.js} +2 -2
  103. package/dist/{chunk-VRPBEOWU.js → chunk-VIWOGJ2O.js} +2 -2
  104. package/dist/{chunk-5EWYUR5P.js → chunk-VK6OC22R.js} +2 -2
  105. package/dist/{chunk-O2DB4C3M.js → chunk-VMRXI3IF.js} +4 -4
  106. package/dist/{chunk-LPRPVCNY.js → chunk-VUHXLL32.js} +3 -3
  107. package/dist/{chunk-44UTIDE2.js → chunk-WFBZRXS5.js} +7 -7
  108. package/dist/{chunk-LEA7WJEZ.js → chunk-WGH3YV6Y.js} +8 -8
  109. package/dist/{chunk-HY6ZGGEC.js → chunk-WJEMUO32.js} +2 -2
  110. package/dist/{chunk-YFF2RP3X.js → chunk-WRLPV6SI.js} +2 -2
  111. package/dist/{chunk-G7RDYYTE.js → chunk-XW5LZYV4.js} +2 -2
  112. package/dist/{chunk-OPTFANOX.js → chunk-YSJG4L4A.js} +3 -3
  113. package/dist/{chunk-GZZL5R73.js → chunk-YSU2E4GZ.js} +4 -4
  114. package/dist/{chunk-LIP6JWYK.js → chunk-YTCCC6NG.js} +3 -3
  115. package/dist/classified/index.d.ts +3 -3
  116. package/dist/classified/index.js +3 -3
  117. package/dist/collection-facade-JP6N7USE.js +39 -0
  118. package/dist/{computed-BMMEFRFJ.js → computed-6FOFXQPE.js} +3 -3
  119. package/dist/{config-drift-3UIJVI5G.js → config-drift-LRKCC3VZ.js} +3 -3
  120. package/dist/consent/index.d.ts +2 -2
  121. package/dist/consent/index.js +9 -9
  122. package/dist/crdt/index.d.ts +2 -2
  123. package/dist/dead-filter-NZORV45S.js +28 -0
  124. package/dist/dead-filter-NZORV45S.js.map +1 -0
  125. package/dist/delegation-FDOXXHNG.js +25 -0
  126. package/dist/derivations/index.d.ts +3 -3
  127. package/dist/derivations/index.js +11 -11
  128. package/dist/derive-JR2C5JFG.js +21 -0
  129. package/dist/{dev-unlock-Cqd5Xv5J.d.ts → dev-unlock-CsOqX7O2.d.ts} +1 -1
  130. package/dist/{enclave-YN6223OG.js → enclave-7X5BUAMS.js} +16 -10
  131. package/dist/executor-6LHOV7MN.js +21 -0
  132. package/dist/executor-EUPYHCLU.js +9 -0
  133. package/dist/executor-KZ4B3PRT.js +9 -0
  134. package/dist/export-accessible-7XLSZBGJ.js +23 -0
  135. package/dist/extract-partition-RM6EROS5.js +36 -0
  136. package/dist/{fanout-sidecar-WS22Q5WH.js → fanout-sidecar-BDKLP5GG.js} +9 -9
  137. package/dist/find-OH4BEULF.js +11 -0
  138. package/dist/forget/index.js +9 -9
  139. package/dist/guards/index.d.ts +3 -3
  140. package/dist/guards/index.js +6 -6
  141. package/dist/{hash-D8Q5MJLA.d.ts → hash-BPzm02Za.d.ts} +1 -1
  142. package/dist/history/index.d.ts +3 -3
  143. package/dist/history/index.js +11 -11
  144. package/dist/i18n/index.d.ts +2 -2
  145. package/dist/i18n/index.js +13 -13
  146. package/dist/in/index.d.ts +1 -1
  147. package/dist/{index-D4GQe1Rx.d.ts → index-BJ3L-XcV.d.ts} +169 -4
  148. package/dist/{index-DRxk8q_7.d.ts → index-CLucFLeN.d.ts} +2 -2
  149. package/dist/index.d.ts +13 -13
  150. package/dist/index.js +118 -116
  151. package/dist/index.js.map +1 -1
  152. package/dist/indexing/index.d.ts +2 -2
  153. package/dist/indexing/index.js +4 -4
  154. package/dist/issue-FJE2IHUI.js +19 -0
  155. package/dist/kernel/index.d.ts +2 -2
  156. package/dist/kernel/index.js +12 -12
  157. package/dist/lazy/index.d.ts +2 -2
  158. package/dist/{ledger-KZWBKAG5.js → ledger-EMDHRJJN.js} +11 -11
  159. package/dist/liberate-HFIPHJGR.js +24 -0
  160. package/dist/{link-set-UQEIYQAM.js → link-set-62Y36TOG.js} +11 -11
  161. package/dist/materialized-views/index.d.ts +3 -3
  162. package/dist/materialized-views/index.js +15 -15
  163. package/dist/{mime-magic-DmwT7OzZ.d.ts → mime-magic-BlE9fzn2.d.ts} +1 -1
  164. package/dist/noydb-4ZASGII5.js +62 -0
  165. package/dist/on/index.d.ts +1 -1
  166. package/dist/on/index.js +9 -9
  167. package/dist/overlay-views/index.d.ts +3 -3
  168. package/dist/overlay-views/index.js +4 -4
  169. package/dist/periods/index.d.ts +2 -2
  170. package/dist/periods/index.js +12 -12
  171. package/dist/pod/index.d.ts +2 -2
  172. package/dist/pod/index.js +11 -11
  173. package/dist/{policy-YIKUH4AD.js → policy-SXPLTQS4.js} +5 -5
  174. package/dist/portability/index.d.ts +2 -2
  175. package/dist/portability/index.js +8 -8
  176. package/dist/post-register-DCJ2SRVG.js +55 -0
  177. package/dist/post-register-DCJ2SRVG.js.map +1 -0
  178. package/dist/{public-envelope-MRN5YYZZ.js → public-envelope-CBRIJORQ.js} +4 -4
  179. package/dist/query/index.d.ts +1 -1
  180. package/dist/query/index.js +6 -6
  181. package/dist/register-5NRE7HBZ.js +23 -0
  182. package/dist/registry-5QLETK3Q.js +17 -0
  183. package/dist/registry-DYTNLOJC.js +19 -0
  184. package/dist/registry-HSNQ4NBP.js +9 -0
  185. package/dist/request-withdrawal-5APB7RKN.js +31 -0
  186. package/dist/{reveal-TBLTFWQ2.js → reveal-R5N7JKA5.js} +6 -6
  187. package/dist/revoke-VELFCK7S.js +24 -0
  188. package/dist/satellites/index.d.ts +5 -0
  189. package/dist/satellites/index.js +8 -0
  190. package/dist/sealed-record/index.d.ts +2 -2
  191. package/dist/sealed-record/index.js +12 -12
  192. package/dist/session/index.d.ts +3 -3
  193. package/dist/session/index.js +9 -9
  194. package/dist/shadow/index.d.ts +2 -2
  195. package/dist/shadow/index.js +2 -2
  196. package/dist/signer-IVU3B6DP.js +25 -0
  197. package/dist/snapshots/index.d.ts +2 -2
  198. package/dist/snapshots/index.js +10 -10
  199. package/dist/{stale-7Q62KVI3.js → stale-DP66HFT3.js} +2 -2
  200. package/dist/storage-RH5VBLLL.js +23 -0
  201. package/dist/storage-RH5VBLLL.js.map +1 -0
  202. package/dist/{store-coordination-provider-JJCEMTAE.js → store-coordination-provider-F5N5ASDF.js} +3 -3
  203. package/dist/sync/index.d.ts +1 -1
  204. package/dist/sync/index.js +9 -9
  205. package/dist/team/index.d.ts +2 -2
  206. package/dist/team/index.js +15 -15
  207. package/dist/tiers/index.d.ts +1 -1
  208. package/dist/tiers/index.js +10 -10
  209. package/dist/to/index.d.ts +1 -1
  210. package/dist/to/index.js +1 -1
  211. package/dist/{transition-guard-C4hvR-Ac.d.ts → transition-guard-BzsAQEd-.d.ts} +1 -1
  212. package/dist/tx/index.d.ts +2 -2
  213. package/dist/tx/index.js +3 -3
  214. package/dist/util/index.js +1 -1
  215. package/dist/{validators-Ctgkj5qd.d.ts → validators-DGmYFP51.d.ts} +1 -1
  216. package/dist/{vault-diff-B1Ir6EGs.d.ts → vault-diff-DmBBatkx.d.ts} +1 -1
  217. package/dist/{verify-YB5LQHNA.js → verify-CAYGXYNO.js} +5 -5
  218. package/dist/{walk-T65TZDN2.js → walk-3SB25HF2.js} +11 -11
  219. package/dist/with/index.d.ts +2 -2
  220. package/dist/with/index.js +11 -11
  221. package/dist/{with-materialized-view-Bp65kKdQ.d.ts → with-materialized-view-DPEVoGoB.d.ts} +1 -1
  222. package/dist/{with-overlayed-view-BRhdQNrK.d.ts → with-overlayed-view-DGpKFSv1.d.ts} +1 -1
  223. package/dist/{with-rollup-bQRPc3y1.d.ts → with-rollup-B2RwnTq0.d.ts} +1 -1
  224. package/dist/withdraw-accessible-LN4AOJDD.js +28 -0
  225. package/dist/withdraw-accessible-LN4AOJDD.js.map +1 -0
  226. package/package.json +7 -3
  227. package/dist/api-JOXUNSKP.js +0 -20
  228. package/dist/chunk-IEUIUSBO.js.map +0 -1
  229. package/dist/chunk-LN22XH4B.js.map +0 -1
  230. package/dist/chunk-OFBFAVLI.js.map +0 -1
  231. package/dist/chunk-OVO2RZAE.js.map +0 -1
  232. package/dist/chunk-QKVILR7N.js +0 -25
  233. package/dist/chunk-QKVILR7N.js.map +0 -1
  234. package/dist/chunk-SAJJWVNQ.js.map +0 -1
  235. package/dist/collection-facade-THH4ASGX.js +0 -39
  236. package/dist/delegation-BQNIEHZE.js +0 -25
  237. package/dist/executor-CBTNU5VZ.js +0 -9
  238. package/dist/executor-DJHNSTIR.js +0 -9
  239. package/dist/executor-FGISLQIN.js +0 -21
  240. package/dist/export-accessible-P7SLRLK3.js +0 -23
  241. package/dist/extract-partition-6JGY3KYR.js +0 -36
  242. package/dist/find-RNBG7LBY.js +0 -11
  243. package/dist/issue-W5QG53B5.js +0 -19
  244. package/dist/liberate-AQ7OWBZZ.js +0 -24
  245. package/dist/noydb-WQZNAECY.js +0 -60
  246. package/dist/register-V5AQTXNI.js +0 -21
  247. package/dist/registry-IMNMHWTM.js +0 -17
  248. package/dist/registry-K6VUQXKV.js +0 -19
  249. package/dist/registry-ZVO3T4M5.js +0 -9
  250. package/dist/request-withdrawal-EHALV66Y.js +0 -31
  251. package/dist/revoke-MHAUAESM.js +0 -24
  252. package/dist/signer-PQ74YXRY.js +0 -25
  253. package/dist/storage-3FKGLQMC.js +0 -23
  254. package/dist/withdraw-accessible-JMX2TCPX.js +0 -28
  255. /package/dist/{api-JOXUNSKP.js.map → api-Z66JMGOU.js.map} +0 -0
  256. /package/dist/{backup-OPONO6Q5.js.map → backup-7PX6NDKT.js.map} +0 -0
  257. /package/dist/{chunk-BMQOH7MM.js.map → chunk-26FSVNBL.js.map} +0 -0
  258. /package/dist/{chunk-6UOSONVI.js.map → chunk-2L7PPF2C.js.map} +0 -0
  259. /package/dist/{chunk-TB5RNNJ4.js.map → chunk-3CHNKEFI.js.map} +0 -0
  260. /package/dist/{chunk-AF5ZRTZ4.js.map → chunk-47C4CI7R.js.map} +0 -0
  261. /package/dist/{chunk-ULIHDPKL.js.map → chunk-55LSDABW.js.map} +0 -0
  262. /package/dist/{chunk-P5WXDYMD.js.map → chunk-5GQE5IDB.js.map} +0 -0
  263. /package/dist/{chunk-TLJOJBZD.js.map → chunk-5HZULLHE.js.map} +0 -0
  264. /package/dist/{chunk-PGFY7IRW.js.map → chunk-5UOPIPZC.js.map} +0 -0
  265. /package/dist/{chunk-GQOT6QJR.js.map → chunk-62TTFKU4.js.map} +0 -0
  266. /package/dist/{chunk-ZKF6HH7V.js.map → chunk-6P5AJ2ZS.js.map} +0 -0
  267. /package/dist/{chunk-QNTEDPWP.js.map → chunk-6PALJTC2.js.map} +0 -0
  268. /package/dist/{chunk-GBTUANXF.js.map → chunk-6Z435B6N.js.map} +0 -0
  269. /package/dist/{chunk-XYYW64LB.js.map → chunk-7CZ6YXMO.js.map} +0 -0
  270. /package/dist/{chunk-TL7QR5T6.js.map → chunk-7F2P2NHX.js.map} +0 -0
  271. /package/dist/{chunk-RDHAGBEB.js.map → chunk-7KTL4RHZ.js.map} +0 -0
  272. /package/dist/{chunk-ZKYMKF2S.js.map → chunk-7L6EH6S7.js.map} +0 -0
  273. /package/dist/{chunk-NQVZB3S7.js.map → chunk-AG2PLGQ2.js.map} +0 -0
  274. /package/dist/{chunk-G4MGYGSS.js.map → chunk-AZPGB4OD.js.map} +0 -0
  275. /package/dist/{chunk-4K3MQ5S3.js.map → chunk-BASCPHNM.js.map} +0 -0
  276. /package/dist/{chunk-BKGIWGCX.js.map → chunk-C4NOLA5X.js.map} +0 -0
  277. /package/dist/{chunk-SW56GSYC.js.map → chunk-CHK5VVMI.js.map} +0 -0
  278. /package/dist/{chunk-A4DWPOP3.js.map → chunk-CP3GUIAN.js.map} +0 -0
  279. /package/dist/{chunk-TYGW5TOR.js.map → chunk-DJ4TNF4N.js.map} +0 -0
  280. /package/dist/{chunk-P2LDXRGP.js.map → chunk-DKGZIX6S.js.map} +0 -0
  281. /package/dist/{chunk-VMJ5URU7.js.map → chunk-E3LURVGQ.js.map} +0 -0
  282. /package/dist/{chunk-3Y4QLJ6K.js.map → chunk-EU7HDMT3.js.map} +0 -0
  283. /package/dist/{chunk-T65UZXR6.js.map → chunk-FCOZ7DEC.js.map} +0 -0
  284. /package/dist/{chunk-M66NAZA4.js.map → chunk-G5CFMITA.js.map} +0 -0
  285. /package/dist/{chunk-ZT4GWVTX.js.map → chunk-GMZFHDSG.js.map} +0 -0
  286. /package/dist/{chunk-VWGCJUTV.js.map → chunk-H7WQMGXH.js.map} +0 -0
  287. /package/dist/{chunk-7SY3PTED.js.map → chunk-HBVEGUON.js.map} +0 -0
  288. /package/dist/{chunk-GXGK22QU.js.map → chunk-HU55NPHZ.js.map} +0 -0
  289. /package/dist/{chunk-XJR3COJO.js.map → chunk-HV3VNAYI.js.map} +0 -0
  290. /package/dist/{chunk-U24XHXNK.js.map → chunk-I6JJ6VJS.js.map} +0 -0
  291. /package/dist/{chunk-5MRE3C4Q.js.map → chunk-I6Q7YECW.js.map} +0 -0
  292. /package/dist/{chunk-P27Z66EB.js.map → chunk-IEKK2XI4.js.map} +0 -0
  293. /package/dist/{chunk-N5YVZHCB.js.map → chunk-II6DLDZM.js.map} +0 -0
  294. /package/dist/{chunk-Z3FZC5GV.js.map → chunk-J54DC5IC.js.map} +0 -0
  295. /package/dist/{chunk-OJU3CPFA.js.map → chunk-J5YDMJHG.js.map} +0 -0
  296. /package/dist/{chunk-H5XRIJX3.js.map → chunk-JT4A6OAJ.js.map} +0 -0
  297. /package/dist/{chunk-S2WKOCTU.js.map → chunk-K6WHZBCO.js.map} +0 -0
  298. /package/dist/{chunk-Z7KI4WHR.js.map → chunk-LFGJG4XZ.js.map} +0 -0
  299. /package/dist/{chunk-ZROMNP7Q.js.map → chunk-MOQ5M46U.js.map} +0 -0
  300. /package/dist/{chunk-T45LAT2Y.js.map → chunk-NO53W6O5.js.map} +0 -0
  301. /package/dist/{chunk-H7RYPVMJ.js.map → chunk-OFYY5Q4R.js.map} +0 -0
  302. /package/dist/{chunk-HMXLN43G.js.map → chunk-OWGAXPRE.js.map} +0 -0
  303. /package/dist/{chunk-T2EGAXPM.js.map → chunk-PAJCRV7O.js.map} +0 -0
  304. /package/dist/{chunk-ZBDK7T6X.js.map → chunk-PE25C4QL.js.map} +0 -0
  305. /package/dist/{chunk-RTS23VIJ.js.map → chunk-PYIUDUGS.js.map} +0 -0
  306. /package/dist/{chunk-Z5PIUYNB.js.map → chunk-QAVFI23O.js.map} +0 -0
  307. /package/dist/{chunk-VFRNWE5P.js.map → chunk-QYNBPDGO.js.map} +0 -0
  308. /package/dist/{chunk-6HNKCKFZ.js.map → chunk-RHB7BOEO.js.map} +0 -0
  309. /package/dist/{chunk-6RXPSMKR.js.map → chunk-RNYDHIQL.js.map} +0 -0
  310. /package/dist/{chunk-PI5CG2OV.js.map → chunk-RUWEHFRB.js.map} +0 -0
  311. /package/dist/{chunk-3QRQOBS7.js.map → chunk-T4NQMPBN.js.map} +0 -0
  312. /package/dist/{chunk-VPCMJ5Z4.js.map → chunk-U5IJHUHZ.js.map} +0 -0
  313. /package/dist/{chunk-43ISXURO.js.map → chunk-U7LV2DUN.js.map} +0 -0
  314. /package/dist/{chunk-FH52CDEW.js.map → chunk-UB3XHGFG.js.map} +0 -0
  315. /package/dist/{chunk-HBKDR7R3.js.map → chunk-UJJJPKJO.js.map} +0 -0
  316. /package/dist/{chunk-TCIUO62Z.js.map → chunk-UWZ7O4NR.js.map} +0 -0
  317. /package/dist/{chunk-P3NGV5RV.js.map → chunk-V76PHWLE.js.map} +0 -0
  318. /package/dist/{chunk-A5DYVMDR.js.map → chunk-VFG5YXWM.js.map} +0 -0
  319. /package/dist/{chunk-UOEWDCUX.js.map → chunk-VFQOE76I.js.map} +0 -0
  320. /package/dist/{chunk-VRPBEOWU.js.map → chunk-VIWOGJ2O.js.map} +0 -0
  321. /package/dist/{chunk-5EWYUR5P.js.map → chunk-VK6OC22R.js.map} +0 -0
  322. /package/dist/{chunk-O2DB4C3M.js.map → chunk-VMRXI3IF.js.map} +0 -0
  323. /package/dist/{chunk-LPRPVCNY.js.map → chunk-VUHXLL32.js.map} +0 -0
  324. /package/dist/{chunk-44UTIDE2.js.map → chunk-WFBZRXS5.js.map} +0 -0
  325. /package/dist/{chunk-LEA7WJEZ.js.map → chunk-WGH3YV6Y.js.map} +0 -0
  326. /package/dist/{chunk-HY6ZGGEC.js.map → chunk-WJEMUO32.js.map} +0 -0
  327. /package/dist/{chunk-YFF2RP3X.js.map → chunk-WRLPV6SI.js.map} +0 -0
  328. /package/dist/{chunk-G7RDYYTE.js.map → chunk-XW5LZYV4.js.map} +0 -0
  329. /package/dist/{chunk-OPTFANOX.js.map → chunk-YSJG4L4A.js.map} +0 -0
  330. /package/dist/{chunk-GZZL5R73.js.map → chunk-YSU2E4GZ.js.map} +0 -0
  331. /package/dist/{chunk-LIP6JWYK.js.map → chunk-YTCCC6NG.js.map} +0 -0
  332. /package/dist/{collection-facade-THH4ASGX.js.map → collection-facade-JP6N7USE.js.map} +0 -0
  333. /package/dist/{computed-BMMEFRFJ.js.map → computed-6FOFXQPE.js.map} +0 -0
  334. /package/dist/{config-drift-3UIJVI5G.js.map → config-drift-LRKCC3VZ.js.map} +0 -0
  335. /package/dist/{delegation-BQNIEHZE.js.map → delegation-FDOXXHNG.js.map} +0 -0
  336. /package/dist/{enclave-YN6223OG.js.map → derive-JR2C5JFG.js.map} +0 -0
  337. /package/dist/{executor-CBTNU5VZ.js.map → enclave-7X5BUAMS.js.map} +0 -0
  338. /package/dist/{executor-DJHNSTIR.js.map → executor-6LHOV7MN.js.map} +0 -0
  339. /package/dist/{executor-FGISLQIN.js.map → executor-EUPYHCLU.js.map} +0 -0
  340. /package/dist/{export-accessible-P7SLRLK3.js.map → executor-KZ4B3PRT.js.map} +0 -0
  341. /package/dist/{extract-partition-6JGY3KYR.js.map → export-accessible-7XLSZBGJ.js.map} +0 -0
  342. /package/dist/{find-RNBG7LBY.js.map → extract-partition-RM6EROS5.js.map} +0 -0
  343. /package/dist/{fanout-sidecar-WS22Q5WH.js.map → fanout-sidecar-BDKLP5GG.js.map} +0 -0
  344. /package/dist/{issue-W5QG53B5.js.map → find-OH4BEULF.js.map} +0 -0
  345. /package/dist/{ledger-KZWBKAG5.js.map → issue-FJE2IHUI.js.map} +0 -0
  346. /package/dist/{liberate-AQ7OWBZZ.js.map → ledger-EMDHRJJN.js.map} +0 -0
  347. /package/dist/{link-set-UQEIYQAM.js.map → liberate-HFIPHJGR.js.map} +0 -0
  348. /package/dist/{noydb-WQZNAECY.js.map → link-set-62Y36TOG.js.map} +0 -0
  349. /package/dist/{policy-YIKUH4AD.js.map → noydb-4ZASGII5.js.map} +0 -0
  350. /package/dist/{public-envelope-MRN5YYZZ.js.map → policy-SXPLTQS4.js.map} +0 -0
  351. /package/dist/{register-V5AQTXNI.js.map → public-envelope-CBRIJORQ.js.map} +0 -0
  352. /package/dist/{registry-IMNMHWTM.js.map → register-5NRE7HBZ.js.map} +0 -0
  353. /package/dist/{registry-K6VUQXKV.js.map → registry-5QLETK3Q.js.map} +0 -0
  354. /package/dist/{registry-ZVO3T4M5.js.map → registry-DYTNLOJC.js.map} +0 -0
  355. /package/dist/{request-withdrawal-EHALV66Y.js.map → registry-HSNQ4NBP.js.map} +0 -0
  356. /package/dist/{revoke-MHAUAESM.js.map → request-withdrawal-5APB7RKN.js.map} +0 -0
  357. /package/dist/{reveal-TBLTFWQ2.js.map → reveal-R5N7JKA5.js.map} +0 -0
  358. /package/dist/{signer-PQ74YXRY.js.map → revoke-VELFCK7S.js.map} +0 -0
  359. /package/dist/{stale-7Q62KVI3.js.map → satellites/index.js.map} +0 -0
  360. /package/dist/{storage-3FKGLQMC.js.map → signer-IVU3B6DP.js.map} +0 -0
  361. /package/dist/{withdraw-accessible-JMX2TCPX.js.map → stale-DP66HFT3.js.map} +0 -0
  362. /package/dist/{store-coordination-provider-JJCEMTAE.js.map → store-coordination-provider-F5N5ASDF.js.map} +0 -0
  363. /package/dist/{verify-YB5LQHNA.js.map → verify-CAYGXYNO.js.map} +0 -0
  364. /package/dist/{walk-T65TZDN2.js.map → walk-3SB25HF2.js.map} +0 -0
@@ -2,10 +2,10 @@ import {
2
2
  base64ToBuffer,
3
3
  decryptBytesWithAAD,
4
4
  encryptBytesWithAAD
5
- } from "./chunk-TLJOJBZD.js";
5
+ } from "./chunk-5HZULLHE.js";
6
6
  import {
7
7
  TamperedError
8
- } from "./chunk-U23JUUPX.js";
8
+ } from "./chunk-OJ64XMPJ.js";
9
9
 
10
10
  // src/kernel/enclave/classify/compare.ts
11
11
  var subtle = globalThis.crypto.subtle;
@@ -92,4 +92,4 @@ export {
92
92
  openVdigPayload,
93
93
  evaluateKofN
94
94
  };
95
- //# sourceMappingURL=chunk-PGFY7IRW.js.map
95
+ //# sourceMappingURL=chunk-5UOPIPZC.js.map
@@ -7,20 +7,20 @@ import {
7
7
  hashEntry,
8
8
  paddedIndex,
9
9
  sha256Hex
10
- } from "./chunk-M66NAZA4.js";
10
+ } from "./chunk-G5CFMITA.js";
11
11
  import {
12
12
  openEnvelopeJson
13
- } from "./chunk-OVO2RZAE.js";
13
+ } from "./chunk-JIW3Q5JN.js";
14
14
  import {
15
15
  NOYDB_FORMAT_VERSION
16
- } from "./chunk-LN22XH4B.js";
16
+ } from "./chunk-HCK2DFEK.js";
17
17
  import {
18
18
  encrypt
19
- } from "./chunk-TLJOJBZD.js";
19
+ } from "./chunk-5HZULLHE.js";
20
20
  import {
21
21
  ConflictError,
22
22
  LedgerContentionError
23
- } from "./chunk-U23JUUPX.js";
23
+ } from "./chunk-OJ64XMPJ.js";
24
24
 
25
25
  // src/with-commit/history/ledger/patch.ts
26
26
  function computePatch(prev, next) {
@@ -683,4 +683,4 @@ export {
683
683
  applyPatch,
684
684
  LedgerStore
685
685
  };
686
- //# sourceMappingURL=chunk-GQOT6QJR.js.map
686
+ //# sourceMappingURL=chunk-62TTFKU4.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NoydbError
3
- } from "./chunk-U23JUUPX.js";
3
+ } from "./chunk-OJ64XMPJ.js";
4
4
 
5
5
  // src/kernel/money-runtime.ts
6
6
  var engine = null;
@@ -117,4 +117,4 @@ export {
117
117
  evaluateClause,
118
118
  hasFnClause
119
119
  };
120
- //# sourceMappingURL=chunk-ZKF6HH7V.js.map
120
+ //# sourceMappingURL=chunk-6P5AJ2ZS.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  evaluateClause,
3
3
  readPath
4
- } from "./chunk-ZKF6HH7V.js";
4
+ } from "./chunk-6P5AJ2ZS.js";
5
5
  import {
6
6
  IndexRequiredError
7
- } from "./chunk-U23JUUPX.js";
7
+ } from "./chunk-OJ64XMPJ.js";
8
8
 
9
9
  // src/with-lookup/indexing/persisted-indexes.ts
10
10
  var IDX_PREFIX = "_idx/";
@@ -427,4 +427,4 @@ export {
427
427
  PersistedCollectionIndex,
428
428
  LazyQuery
429
429
  };
430
- //# sourceMappingURL=chunk-QNTEDPWP.js.map
430
+ //# sourceMappingURL=chunk-6PALJTC2.js.map
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  reducerBuilder
3
- } from "./chunk-P5WXDYMD.js";
3
+ } from "./chunk-5GQE5IDB.js";
4
4
  import {
5
5
  evaluateClause,
6
6
  hasFnClause,
7
7
  moneyRuntime,
8
8
  readPath
9
- } from "./chunk-ZKF6HH7V.js";
9
+ } from "./chunk-6P5AJ2ZS.js";
10
10
  import {
11
11
  applyI18nLocale
12
- } from "./chunk-4K3MQ5S3.js";
12
+ } from "./chunk-BASCPHNM.js";
13
13
  import {
14
14
  CrossJoinSourceUnknownError,
15
15
  CrossJoinTooLargeError,
16
16
  DanglingReferenceError,
17
17
  JoinTooLargeError
18
- } from "./chunk-U23JUUPX.js";
18
+ } from "./chunk-OJ64XMPJ.js";
19
19
 
20
20
  // src/kernel/query/join.ts
21
21
  var DEFAULT_JOIN_MAX_ROWS = 5e4;
@@ -1653,4 +1653,4 @@ export {
1653
1653
  executePlan,
1654
1654
  ScanBuilder
1655
1655
  };
1656
- //# sourceMappingURL=chunk-GBTUANXF.js.map
1656
+ //# sourceMappingURL=chunk-6Z435B6N.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  canonicalize,
3
3
  derivePersistedSchema
4
- } from "./chunk-ULIHDPKL.js";
4
+ } from "./chunk-55LSDABW.js";
5
5
  import {
6
6
  loadPersistedSchemaEntry,
7
7
  savePersistedSchema
8
- } from "./chunk-TL7QR5T6.js";
8
+ } from "./chunk-7F2P2NHX.js";
9
9
  import {
10
10
  ConflictError
11
- } from "./chunk-U23JUUPX.js";
11
+ } from "./chunk-OJ64XMPJ.js";
12
12
 
13
13
  // src/with-shape/schema-update/delta.ts
14
14
  function computeSchemaDelta(stored, fresh, collection) {
@@ -74,7 +74,9 @@ async function persistSchemaIfNeeded(opts) {
74
74
  if (decision.action !== "allow") {
75
75
  return { written: false, skipped: false, envelope: stored ?? fresh, decision };
76
76
  }
77
- const toSave = stored?.classified !== void 0 ? { ...fresh, classified: stored.classified } : fresh;
77
+ let toSave = fresh;
78
+ if (stored?.classified !== void 0) toSave = { ...toSave, classified: stored.classified };
79
+ if (stored?.satellite !== void 0) toSave = { ...toSave, satellite: stored.satellite };
78
80
  try {
79
81
  await savePersistedSchema(opts.store, opts.vault, opts.collectionName, opts.dek, toSave, version);
80
82
  return { written: true, skipped: false, envelope: toSave, decision };
@@ -110,6 +112,35 @@ async function persistClassifiedMarker(opts) {
110
112
  }
111
113
  }
112
114
  }
115
+ async function persistSatelliteMarker(opts) {
116
+ for (let attempt = 0; ; attempt++) {
117
+ const { version, payload: stored } = await loadPersistedSchemaEntry(
118
+ opts.store,
119
+ opts.vault,
120
+ opts.collectionName,
121
+ opts.dek
122
+ );
123
+ if (stored?.satellite !== void 0 && satelliteMarkersEqual(stored.satellite, opts.marker)) return;
124
+ const payload = stored !== void 0 ? { ...stored, satellite: opts.marker } : {
125
+ _noydb_schema: 1,
126
+ kind: "Unknown",
127
+ jsonSchema: null,
128
+ hash: null,
129
+ derivedAt: (/* @__PURE__ */ new Date()).toISOString(),
130
+ satellite: opts.marker
131
+ };
132
+ try {
133
+ await savePersistedSchema(opts.store, opts.vault, opts.collectionName, opts.dek, payload, version);
134
+ return;
135
+ } catch (err) {
136
+ if (err instanceof ConflictError && attempt < MAX_SCHEMA_CAS_RETRIES) continue;
137
+ throw err;
138
+ }
139
+ }
140
+ }
141
+ function satelliteMarkersEqual(a, b) {
142
+ return a.base === b.base && a.fieldsHash === b.fieldsHash && (a.joined ?? null) === (b.joined ?? null);
143
+ }
113
144
  function markersEqual(a, b) {
114
145
  return sameSet(a.digestOnly, b.digestOnly) && sameSet(a.equatable, b.equatable);
115
146
  }
@@ -130,6 +161,7 @@ function isEquivalent(a, b) {
130
161
 
131
162
  export {
132
163
  persistSchemaIfNeeded,
133
- persistClassifiedMarker
164
+ persistClassifiedMarker,
165
+ persistSatelliteMarker
134
166
  };
135
- //# sourceMappingURL=chunk-SAJJWVNQ.js.map
167
+ //# sourceMappingURL=chunk-7AERMJP6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/with-shape/schema-update/delta.ts","../src/with-shape/schema-update/dispatch.ts","../src/with-shape/persisted-schemas/register.ts"],"sourcesContent":["/**\n * Classify the difference between two derived JSON Schemas.\n *\n * v1 ruleset — top-level object properties + required-ness:\n * - additive ⇔ only new OPTIONAL properties (no removals, no changed\n * properties, no new required field, no required-ness flip)\n * - non-additive ⇔ any removal, any shape/type change, any required-ness\n * flip, or a new REQUIRED property\n * Deeper rules (nested objects, union widening, type narrowing) are\n * deferred. Callers only invoke this with two object schemas.\n */\nimport { canonicalize } from '../persisted-schemas/canonicalize.js'\nimport type { SchemaDelta, FieldChange } from './types.js'\n\ninterface ObjectSchema {\n readonly properties?: Record<string, unknown>\n readonly required?: readonly string[]\n}\n\nexport function computeSchemaDelta(\n stored: object,\n fresh: object,\n collection: string,\n): SchemaDelta {\n const a = stored as ObjectSchema\n const b = fresh as ObjectSchema\n const aProps = a.properties ?? {}\n const bProps = b.properties ?? {}\n const aReq = new Set(a.required ?? [])\n const bReq = new Set(b.required ?? [])\n\n const aKeys = Object.keys(aProps)\n const bKeys = Object.keys(bProps)\n\n const added = bKeys.filter(k => !(k in aProps))\n const removed = aKeys.filter(k => !(k in bProps))\n\n const changed: FieldChange[] = []\n for (const k of bKeys) {\n if (!(k in aProps)) continue\n const shapeChanged = canonicalize(aProps[k]) !== canonicalize(bProps[k])\n const requiredChanged = aReq.has(k) !== bReq.has(k)\n if (shapeChanged || requiredChanged) {\n changed.push({ field: k, requiredChanged, shapeChanged })\n }\n }\n\n let kind: SchemaDelta['kind']\n if (added.length === 0 && removed.length === 0 && changed.length === 0) {\n kind = 'none'\n } else if (\n removed.length === 0 &&\n changed.length === 0 &&\n added.every(k => !bReq.has(k))\n ) {\n kind = 'additive'\n } else {\n kind = 'non-additive'\n }\n\n return { collection, kind, added, removed, changed }\n}\n","/** Ordered strategy evaluation: first non-`allow` decision wins. */\nimport type { SchemaDelta, SchemaUpdateStrategy, UpdateContext, UpdateDecision } from './types.js'\n\nexport async function evaluateStrategies(\n delta: SchemaDelta,\n strategies: readonly SchemaUpdateStrategy[],\n ctx: UpdateContext,\n): Promise<UpdateDecision> {\n for (const strategy of strategies) {\n const decision = await strategy.onSchemaDelta(delta, ctx)\n if (decision.action !== 'allow') return decision\n }\n return { action: 'allow' }\n}\n","/**\n * Orchestrate the derive → hash → skip-or-write cycle for a collection's\n * persisted JSON Schema. Called by the Vault at collection-registration\n * time when the developer opts in via `collection({ persistJsonSchema:\n * true })`.\n *\n * Skip semantics:\n *\n * - Zod validators: skip when the new hash equals the stored hash.\n * - Non-Zod (stub envelopes have hash=null): skip when the stored\n * envelope's `kind` matches the freshly-detected kind (since there's\n * no body to compare yet — a kind change is the only signal).\n *\n * @module\n */\n\nimport { derivePersistedSchema } from './derive.js'\nimport { loadPersistedSchemaEntry, savePersistedSchema } from './storage.js'\nimport { computeSchemaDelta } from '../schema-update/delta.js'\nimport { evaluateStrategies } from '../schema-update/dispatch.js'\nimport { ConflictError } from '../../kernel/errors.js'\nimport type { SchemaUpdateStrategy, UpdateDecision } from '../schema-update/types.js'\nimport type { NoydbStore, ClassifiedMarker } from '../../kernel/types.js'\nimport type { PersistedSchemaEnvelope } from './types.js'\nimport type { PairingMarker } from '../satellites/types.js'\nimport type { EnclaveKey } from '../../kernel/enclave/index.js'\n\n/**\n * Max optimistic-CAS retries for the shared `_schemas/<collection>` record\n * (#583). Only two writers ever contend (the JSON-Schema writer and the\n * classified-marker writer), so one retry suffices; the headroom covers a\n * pathological re-order. Exhausting it rethrows the {@link ConflictError}\n * rather than silently losing a write.\n */\nconst MAX_SCHEMA_CAS_RETRIES = 5\n\nexport interface PersistSchemaResult {\n /** True when a fresh envelope was written to storage. */\n readonly written: boolean\n /** True when an existing envelope matched and the write was skipped. */\n readonly skipped: boolean\n /** The envelope that was either written or matched. */\n readonly envelope: PersistedSchemaEnvelope\n /** The update-strategy decision, present when strategies ran. */\n readonly decision?: UpdateDecision\n}\n\nexport async function persistSchemaIfNeeded(opts: {\n readonly store: NoydbStore\n readonly vault: string\n readonly collectionName: string\n readonly validator: unknown\n readonly dek: EnclaveKey\n readonly strategies?: readonly SchemaUpdateStrategy[]\n}): Promise<PersistSchemaResult> {\n const fresh = await derivePersistedSchema(opts.validator)\n\n // The `_schemas/<collection>` record is shared with the classified-marker\n // writer, so a plain load→save loses whichever writer put first (#583). Read\n // the version at load time and CAS on it; on conflict re-read (picking up the\n // other writer's field), re-evaluate, and retry.\n for (let attempt = 0; ; attempt++) {\n const { version, payload: stored } = await loadPersistedSchemaEntry(\n opts.store, opts.vault, opts.collectionName, opts.dek,\n )\n\n if (stored && isEquivalent(stored, fresh)) {\n return { written: false, skipped: true, envelope: stored, decision: { action: 'allow' } }\n }\n\n // Changed (or first registration). Run update strategies only when we\n // have a comparable JSON-Schema baseline and strategies were registered.\n let decision: UpdateDecision = { action: 'allow' }\n const strategies = opts.strategies ?? []\n if (\n stored &&\n strategies.length > 0 &&\n stored.kind === fresh.kind &&\n isPlainObject(stored.jsonSchema) &&\n isPlainObject(fresh.jsonSchema)\n ) {\n const delta = computeSchemaDelta(stored.jsonSchema, fresh.jsonSchema, opts.collectionName)\n decision = await evaluateStrategies(delta, strategies, { collection: opts.collectionName })\n }\n\n if (decision.action !== 'allow') {\n // reject (or cutover): do NOT overwrite the baseline — the\n // old schema stays the source of truth until the change is resolved.\n return { written: false, skipped: false, envelope: stored ?? fresh, decision }\n }\n\n // Preserve a previously-persisted classified marker (C-A / R10) and\n // satellite pairing marker (R-S9) — the schema derivation knows nothing\n // about them, so a naive overwrite here would drop the config-drift\n // guards' cross-session signals.\n let toSave: PersistedSchemaEnvelope = fresh\n if (stored?.classified !== undefined) toSave = { ...toSave, classified: stored.classified }\n if (stored?.satellite !== undefined) toSave = { ...toSave, satellite: stored.satellite }\n try {\n await savePersistedSchema(opts.store, opts.vault, opts.collectionName, opts.dek, toSave, version)\n return { written: true, skipped: false, envelope: toSave, decision }\n } catch (err) {\n if (err instanceof ConflictError && attempt < MAX_SCHEMA_CAS_RETRIES) continue\n throw err\n }\n }\n}\n\n/**\n * Persist (or refresh) the C-A / R10 classified marker into the collection's\n * `_schemas/<collection>` record, preserving any existing derived JSON-Schema\n * body. Idempotent — a no-op when an equivalent marker is already stored.\n * Independent of `persistJsonSchema`: called on the first classified write so a\n * later naive handle can detect the drift cross-session.\n */\nexport async function persistClassifiedMarker(opts: {\n readonly store: NoydbStore\n readonly vault: string\n readonly collectionName: string\n readonly dek: EnclaveKey\n readonly marker: ClassifiedMarker\n}): Promise<void> {\n // Shares the `_schemas/<collection>` record with the JSON-Schema writer;\n // CAS on the loaded version so a concurrent schema (re)registration can't\n // silently drop the marker (and vice-versa) — see #583.\n for (let attempt = 0; ; attempt++) {\n const { version, payload: stored } = await loadPersistedSchemaEntry(\n opts.store, opts.vault, opts.collectionName, opts.dek,\n )\n if (stored?.classified !== undefined && markersEqual(stored.classified, opts.marker)) return\n const payload: PersistedSchemaEnvelope =\n stored !== undefined\n ? { ...stored, classified: opts.marker }\n : {\n _noydb_schema: 1,\n kind: 'Unknown',\n jsonSchema: null,\n hash: null,\n derivedAt: new Date().toISOString(),\n classified: opts.marker,\n }\n try {\n await savePersistedSchema(opts.store, opts.vault, opts.collectionName, opts.dek, payload, version)\n return\n } catch (err) {\n if (err instanceof ConflictError && attempt < MAX_SCHEMA_CAS_RETRIES) continue\n throw err\n }\n }\n}\n\n/**\n * Persist (or refresh) the R-S9 satellite pairing marker into the collection's\n * `_schemas/<collection>` record, preserving any existing derived JSON-Schema\n * body. Idempotent — a no-op when an equivalent marker is already stored.\n * Independent of `persistJsonSchema`: called on satellite declaration so a\n * later divergent re-declaration can be detected cross-session.\n */\nexport async function persistSatelliteMarker(opts: {\n readonly store: NoydbStore\n readonly vault: string\n readonly collectionName: string\n readonly dek: EnclaveKey\n readonly marker: PairingMarker\n}): Promise<void> {\n // Shares the `_schemas/<collection>` record with the JSON-Schema writer;\n // CAS on the loaded version so a concurrent schema (re)registration can't\n // silently drop the marker (and vice-versa) — see #583.\n for (let attempt = 0; ; attempt++) {\n const { version, payload: stored } = await loadPersistedSchemaEntry(\n opts.store, opts.vault, opts.collectionName, opts.dek,\n )\n if (stored?.satellite !== undefined && satelliteMarkersEqual(stored.satellite, opts.marker)) return\n const payload: PersistedSchemaEnvelope =\n stored !== undefined\n ? { ...stored, satellite: opts.marker }\n : {\n _noydb_schema: 1,\n kind: 'Unknown',\n jsonSchema: null,\n hash: null,\n derivedAt: new Date().toISOString(),\n satellite: opts.marker,\n }\n try {\n await savePersistedSchema(opts.store, opts.vault, opts.collectionName, opts.dek, payload, version)\n return\n } catch (err) {\n if (err instanceof ConflictError && attempt < MAX_SCHEMA_CAS_RETRIES) continue\n throw err\n }\n }\n}\n\nfunction satelliteMarkersEqual(a: PairingMarker, b: PairingMarker): boolean {\n return a.base === b.base && a.fieldsHash === b.fieldsHash && (a.joined ?? null) === (b.joined ?? null)\n}\n\nfunction markersEqual(a: ClassifiedMarker, b: ClassifiedMarker): boolean {\n return sameSet(a.digestOnly, b.digestOnly) && sameSet(a.equatable, b.equatable)\n}\n\nfunction sameSet(a: readonly string[], b: readonly string[]): boolean {\n if (a.length !== b.length) return false\n const s = new Set(a)\n return b.every((x) => s.has(x))\n}\n\nfunction isPlainObject(v: unknown): v is object {\n return typeof v === 'object' && v !== null && !Array.isArray(v)\n}\n\nfunction isEquivalent(a: PersistedSchemaEnvelope, b: PersistedSchemaEnvelope): boolean {\n if (a.kind !== b.kind) return false\n // Zod path: real hashes — compare directly.\n if (a.hash && b.hash) return a.hash === b.hash\n // Stub path: both have hash=null. Kind equality is the only signal we have.\n if (a.hash === null && b.hash === null) return true\n // Mixed (one has a hash, the other doesn't) — treat as changed.\n return false\n}\n"],"mappings":"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","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DerivationCapExceededError,
3
3
  DerivationOutputShapeError
4
- } from "./chunk-U23JUUPX.js";
4
+ } from "./chunk-OJ64XMPJ.js";
5
5
 
6
6
  // src/with-formula/derivations/executor.ts
7
7
  var DerivationExecutor = {
@@ -121,4 +121,4 @@ var DerivationExecutor = {
121
121
  export {
122
122
  DerivationExecutor
123
123
  };
124
- //# sourceMappingURL=chunk-XYYW64LB.js.map
124
+ //# sourceMappingURL=chunk-7CZ6YXMO.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  openEnvelopeJson
3
- } from "./chunk-OVO2RZAE.js";
3
+ } from "./chunk-JIW3Q5JN.js";
4
4
  import {
5
5
  NOYDB_FORMAT_VERSION
6
- } from "./chunk-LN22XH4B.js";
6
+ } from "./chunk-HCK2DFEK.js";
7
7
  import {
8
8
  encrypt
9
- } from "./chunk-TLJOJBZD.js";
9
+ } from "./chunk-5HZULLHE.js";
10
10
 
11
11
  // src/with-shape/persisted-schemas/storage.ts
12
12
  var SCHEMAS_COLLECTION = "_schemas";
@@ -46,4 +46,4 @@ export {
46
46
  loadPersistedSchema,
47
47
  savePersistedSchema
48
48
  };
49
- //# sourceMappingURL=chunk-TL7QR5T6.js.map
49
+ //# sourceMappingURL=chunk-7F2P2NHX.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  sha256Hex
3
- } from "./chunk-TLJOJBZD.js";
3
+ } from "./chunk-5HZULLHE.js";
4
4
  import {
5
5
  DerivationCycleError
6
- } from "./chunk-U23JUUPX.js";
6
+ } from "./chunk-OJ64XMPJ.js";
7
7
 
8
8
  // src/with-formula/derivations/strategy-hash.ts
9
9
  async function computeStrategyHash(source, outputKeys, derive, sources) {
@@ -117,4 +117,4 @@ var DerivationRegistry = class {
117
117
  export {
118
118
  DerivationRegistry
119
119
  };
120
- //# sourceMappingURL=chunk-RDHAGBEB.js.map
120
+ //# sourceMappingURL=chunk-7KTL4RHZ.js.map
@@ -2,20 +2,20 @@ import {
2
2
  ATTESTATIONS_COLLECTION,
3
3
  REVOKED_RECORD_ID,
4
4
  loadOrCreateSigner
5
- } from "./chunk-H5XRIJX3.js";
5
+ } from "./chunk-JT4A6OAJ.js";
6
6
  import {
7
7
  openEnvelopeJson
8
- } from "./chunk-OVO2RZAE.js";
8
+ } from "./chunk-JIW3Q5JN.js";
9
9
  import {
10
10
  NOYDB_FORMAT_VERSION
11
- } from "./chunk-LN22XH4B.js";
11
+ } from "./chunk-HCK2DFEK.js";
12
12
  import {
13
13
  encrypt
14
- } from "./chunk-TLJOJBZD.js";
14
+ } from "./chunk-5HZULLHE.js";
15
15
  import {
16
16
  AttestationError,
17
17
  ConflictError
18
- } from "./chunk-U23JUUPX.js";
18
+ } from "./chunk-OJ64XMPJ.js";
19
19
 
20
20
  // src/with-audit/attestation/revoke.ts
21
21
  import { signRevocationList } from "@noy-db/attestation";
@@ -82,4 +82,4 @@ export {
82
82
  getRevokedDocIdsCore,
83
83
  publishRevocationListCore
84
84
  };
85
- //# sourceMappingURL=chunk-ZKYMKF2S.js.map
85
+ //# sourceMappingURL=chunk-7L6EH6S7.js.map
@@ -4,19 +4,19 @@ import {
4
4
  grant,
5
5
  revoke,
6
6
  rotateKeys
7
- } from "./chunk-ZT4GWVTX.js";
7
+ } from "./chunk-GMZFHDSG.js";
8
8
  import {
9
9
  openEnvelopeJson
10
- } from "./chunk-OVO2RZAE.js";
10
+ } from "./chunk-JIW3Q5JN.js";
11
11
  import {
12
12
  NOYDB_FORMAT_VERSION
13
- } from "./chunk-LN22XH4B.js";
13
+ } from "./chunk-HCK2DFEK.js";
14
14
  import {
15
15
  encrypt
16
- } from "./chunk-TLJOJBZD.js";
16
+ } from "./chunk-5HZULLHE.js";
17
17
  import {
18
18
  PermissionDeniedError
19
- } from "./chunk-U23JUUPX.js";
19
+ } from "./chunk-OJ64XMPJ.js";
20
20
 
21
21
  // src/with-party/team/active.ts
22
22
  function withTeam() {
@@ -96,4 +96,4 @@ export {
96
96
  listCredentials,
97
97
  credentialStatus
98
98
  };
99
- //# sourceMappingURL=chunk-NQVZB3S7.js.map
99
+ //# sourceMappingURL=chunk-AG2PLGQ2.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  linkCollectionName,
3
3
  linkRowKey
4
- } from "./chunk-P3NGV5RV.js";
4
+ } from "./chunk-V76PHWLE.js";
5
5
  import {
6
6
  openEnvelopeJson
7
- } from "./chunk-OVO2RZAE.js";
7
+ } from "./chunk-JIW3Q5JN.js";
8
8
  import {
9
9
  NOYDB_FORMAT_VERSION
10
- } from "./chunk-LN22XH4B.js";
10
+ } from "./chunk-HCK2DFEK.js";
11
11
  import {
12
12
  encrypt
13
- } from "./chunk-TLJOJBZD.js";
13
+ } from "./chunk-5HZULLHE.js";
14
14
  import {
15
15
  NoydbError
16
- } from "./chunk-U23JUUPX.js";
16
+ } from "./chunk-OJ64XMPJ.js";
17
17
 
18
18
  // src/with-shape/links/link-set.ts
19
19
  var LinkSet = class {
@@ -127,4 +127,4 @@ export {
127
127
  LinkSet,
128
128
  LinkEndpointError
129
129
  };
130
- //# sourceMappingURL=chunk-G4MGYGSS.js.map
130
+ //# sourceMappingURL=chunk-AZPGB4OD.js.map
@@ -2,7 +2,7 @@ import {
2
2
  LocaleNotSpecifiedError,
3
3
  MissingTranslationError,
4
4
  ScriptViolationError
5
- } from "./chunk-U23JUUPX.js";
5
+ } from "./chunk-OJ64XMPJ.js";
6
6
 
7
7
  // src/with-shape/i18n/policy.ts
8
8
  function resolvePolicy(onMissing, layer) {
@@ -377,4 +377,4 @@ export {
377
377
  applyI18nLocale,
378
378
  stripI18nFilled
379
379
  };
380
- //# sourceMappingURL=chunk-4K3MQ5S3.js.map
380
+ //# sourceMappingURL=chunk-BASCPHNM.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readPath
3
- } from "./chunk-ZKF6HH7V.js";
3
+ } from "./chunk-6P5AJ2ZS.js";
4
4
 
5
5
  // src/with-lookup/indexing/eager-indexes.ts
6
6
  var CollectionIndexes = class {
@@ -129,4 +129,4 @@ function removeFromIndex(idx, id, record) {
129
129
  export {
130
130
  CollectionIndexes
131
131
  };
132
- //# sourceMappingURL=chunk-BKGIWGCX.js.map
132
+ //# sourceMappingURL=chunk-C4NOLA5X.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ConflictError,
3
3
  PodVersionConflictError
4
- } from "./chunk-U23JUUPX.js";
4
+ } from "./chunk-OJ64XMPJ.js";
5
5
 
6
6
  // src/with-pod/pod-store.ts
7
7
  var BUNDLE_STORE_VERSION = 1;
@@ -152,4 +152,4 @@ export {
152
152
  wrapBundleStore,
153
153
  createBundleStore
154
154
  };
155
- //# sourceMappingURL=chunk-SW56GSYC.js.map
155
+ //# sourceMappingURL=chunk-CHK5VVMI.js.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  pickLocale
3
- } from "./chunk-3QRQOBS7.js";
3
+ } from "./chunk-T4NQMPBN.js";
4
4
  import {
5
5
  sha256Hex
6
- } from "./chunk-TLJOJBZD.js";
6
+ } from "./chunk-5HZULLHE.js";
7
7
  import {
8
8
  BundleIntegrityError,
9
9
  BundleSealMismatchError,
10
10
  ValidationError
11
- } from "./chunk-U23JUUPX.js";
11
+ } from "./chunk-OJ64XMPJ.js";
12
12
 
13
13
  // src/with-pod/format.ts
14
14
  var NOYDB_BUNDLE_MAGIC = new Uint8Array([78, 68, 66, 49]);
@@ -608,6 +608,30 @@ function applySliceFilters(dumpJson, opts) {
608
608
  }
609
609
  return JSON.stringify(backup);
610
610
  }
611
+ async function applySatelliteLivenessFilter(vault, dumpJson) {
612
+ const backup = JSON.parse(dumpJson);
613
+ if (!backup.collections || typeof backup.collections !== "object") return dumpJson;
614
+ if (typeof vault._introspectState !== "function") return dumpJson;
615
+ const { adapter, name, getDEK } = vault._introspectState();
616
+ const { liveBaseIdSetsForBundle } = await import("./dead-filter-NZORV45S.js");
617
+ const satLive = await liveBaseIdSetsForBundle(adapter, name, Object.keys(backup.collections), getDEK);
618
+ if (satLive.size === 0) return dumpJson;
619
+ const next = {};
620
+ for (const [collName, records] of Object.entries(backup.collections)) {
621
+ const live = satLive.get(collName);
622
+ if (!live) {
623
+ next[collName] = records;
624
+ continue;
625
+ }
626
+ const kept = {};
627
+ for (const [id, env] of Object.entries(records)) {
628
+ if (live.has(id)) kept[id] = env;
629
+ }
630
+ next[collName] = kept;
631
+ }
632
+ backup.collections = next;
633
+ return JSON.stringify(backup);
634
+ }
611
635
  async function applyPlaintextFilters(vault, dumpJson, opts) {
612
636
  if (opts.where === void 0 && opts.tierAtMost === void 0) {
613
637
  return dumpJson;
@@ -674,7 +698,8 @@ async function writePod(vault, opts = {}) {
674
698
  const autoUnlockMode = validateAutoUnlockOptions(opts, normalizedAutoUnlock);
675
699
  const handle = await vault.getBundleHandle();
676
700
  const dumpJson = await vault.dump();
677
- const rekeyed = await applyRecipientRewrap(vault, dumpJson, opts);
701
+ const satelliteFiltered = await applySatelliteLivenessFilter(vault, dumpJson);
702
+ const rekeyed = await applyRecipientRewrap(vault, satelliteFiltered, opts);
678
703
  const plainFiltered = await applyPlaintextFilters(vault, rekeyed, opts);
679
704
  const filtered = applySliceFilters(plainFiltered, opts);
680
705
  const bodyJsonStr = normalizedAutoUnlock === null ? filtered : JSON.stringify(await buildAutoUnlockWrapper(filtered, normalizedAutoUnlock));
@@ -795,4 +820,4 @@ export {
795
820
  readPod,
796
821
  readNoydbBundle
797
822
  };
798
- //# sourceMappingURL=chunk-EWR7HL3K.js.map
823
+ //# sourceMappingURL=chunk-CND5WQLO.js.map