@noy-db/hub 0.9.0-pre.0 → 0.9.0-pre.1

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 (460) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/api-6EFD43KN.js +18 -0
  3. package/dist/as/index.js +10 -10
  4. package/dist/at/index.js +8 -8
  5. package/dist/attestation/index.js +18 -18
  6. package/dist/{backup-7RKNZMQO.js → backup-RJBFQSHE.js} +92 -31
  7. package/dist/backup-RJBFQSHE.js.map +1 -0
  8. package/dist/blobs/index.js +12 -12
  9. package/dist/broker/index.js +13 -13
  10. package/dist/by/index.js +2 -2
  11. package/dist/capsule/contract.js +6 -6
  12. package/dist/capsule/enclave-aes/crypto.d.ts +18 -0
  13. package/dist/capsule/enclave-aes/index.d.ts +2 -2
  14. package/dist/capsule/enclave-aes/index.js +14 -8
  15. package/dist/capsule/enclave-aes/index.js.map +1 -1
  16. package/dist/capsule/index.d.ts +1 -1
  17. package/dist/{capsule-57BDK7LG.js → capsule-6LJAVQNM.js} +14 -8
  18. package/dist/cargo/index.js +35 -35
  19. package/dist/{chunk-72XBVN4J.js → chunk-25FXU6WS.js} +2 -2
  20. package/dist/chunk-25FXU6WS.js.map +1 -0
  21. package/dist/{chunk-PCYPXLEX.js → chunk-2DOCDOPL.js} +6 -6
  22. package/dist/{chunk-RIZTZJX6.js → chunk-2LBS62AC.js} +2 -2
  23. package/dist/{chunk-EUD3HQM4.js → chunk-2ST3WA3C.js} +4 -4
  24. package/dist/{chunk-APFFJN5T.js → chunk-3G3GOGZZ.js} +31 -34
  25. package/dist/chunk-3G3GOGZZ.js.map +1 -0
  26. package/dist/{chunk-4UIP3QNW.js → chunk-3YBIVLTC.js} +2 -2
  27. package/dist/{chunk-UNSQZSZP.js → chunk-4CHM2TRS.js} +2 -2
  28. package/dist/{chunk-NYJBYVBG.js → chunk-4CUJLEOA.js} +4 -4
  29. package/dist/{chunk-YFFMPZPY.js → chunk-4TG2ITRW.js} +2 -2
  30. package/dist/{chunk-ZHQJAV6D.js → chunk-5HQFROZS.js} +2 -2
  31. package/dist/{chunk-6Y5E4SJU.js → chunk-5ZVE3N5C.js} +5 -5
  32. package/dist/{chunk-EMAWOGVH.js → chunk-654RE5YC.js} +3 -3
  33. package/dist/{chunk-DHU2AQ6T.js → chunk-66GD7XXU.js} +2 -2
  34. package/dist/{chunk-JZ4EDEIP.js → chunk-72FQ46VW.js} +3 -3
  35. package/dist/{chunk-7BMOS4JQ.js → chunk-7JPA3LIH.js} +11 -11
  36. package/dist/{chunk-QGFEBNHO.js → chunk-7K42TSCY.js} +4 -4
  37. package/dist/{chunk-OJU67C23.js → chunk-7Q6IU3R7.js} +4 -4
  38. package/dist/{chunk-JBMMWYOH.js → chunk-7UHLO4ZN.js} +35 -2
  39. package/dist/chunk-7UHLO4ZN.js.map +1 -0
  40. package/dist/{chunk-GRS2HIV6.js → chunk-ADCXTW7L.js} +2 -2
  41. package/dist/{chunk-BJH77UY2.js → chunk-AGGPT4UE.js} +2 -2
  42. package/dist/{chunk-TZYTMZZY.js → chunk-AKIEBFIJ.js} +10 -10
  43. package/dist/{chunk-DL6BZKP3.js → chunk-B3B6HV5S.js} +2 -2
  44. package/dist/{chunk-5XONHAFD.js → chunk-B6EWMGFX.js} +2 -2
  45. package/dist/{chunk-TFWFPZRU.js → chunk-B7Y2BRQA.js} +11 -11
  46. package/dist/{chunk-TFWFPZRU.js.map → chunk-B7Y2BRQA.js.map} +1 -1
  47. package/dist/{chunk-MRJDLXI3.js → chunk-BFJE2GPP.js} +8 -8
  48. package/dist/{chunk-G46JSSVX.js → chunk-BJRKXNFP.js} +7 -7
  49. package/dist/{chunk-RNACRT5H.js → chunk-BPQ5CRJF.js} +2 -2
  50. package/dist/{chunk-BYHCKX73.js → chunk-BVRJYMFZ.js} +3 -3
  51. package/dist/{chunk-GETUTTZU.js → chunk-C4XV3PSJ.js} +4 -4
  52. package/dist/{chunk-XXNWU5QZ.js → chunk-DFC4WTJW.js} +2 -2
  53. package/dist/{chunk-YQFBH5ZJ.js → chunk-DMIEKD24.js} +3 -3
  54. package/dist/{chunk-2ZFD2UJC.js → chunk-DQAXA2GK.js} +9 -9
  55. package/dist/{chunk-ZVSKSUGI.js → chunk-DWCFGF2K.js} +5 -5
  56. package/dist/{chunk-5HNW4ZTA.js → chunk-E2C6FFSI.js} +6 -6
  57. package/dist/{chunk-2A56DSRI.js → chunk-EQ6C2ZPT.js} +17 -51
  58. package/dist/chunk-EQ6C2ZPT.js.map +1 -0
  59. package/dist/{chunk-G66YXUTY.js → chunk-EZOFTI4K.js} +3 -3
  60. package/dist/{chunk-6QLCS7ET.js → chunk-FMINS2B6.js} +2 -2
  61. package/dist/{chunk-6WS35E6X.js → chunk-FPF5HRBE.js} +2 -2
  62. package/dist/{chunk-7CT6SX4M.js → chunk-FZVCZEVI.js} +3 -3
  63. package/dist/{chunk-BUE7R3B5.js → chunk-GIQJGXV7.js} +2 -2
  64. package/dist/{chunk-GOJQ5DZA.js → chunk-GYZICGRU.js} +4 -4
  65. package/dist/chunk-GYZICGRU.js.map +1 -0
  66. package/dist/{chunk-C53ER7AG.js → chunk-H334G6KU.js} +2 -2
  67. package/dist/{chunk-GCUMOKTN.js → chunk-HE7EAHGS.js} +3 -3
  68. package/dist/{chunk-BU2ABHFW.js → chunk-HKB4HZDU.js} +4 -4
  69. package/dist/{chunk-5UUJE4FP.js → chunk-ICF3TIGY.js} +2 -2
  70. package/dist/{chunk-H3YM66EI.js → chunk-IF2M43G4.js} +2 -2
  71. package/dist/{chunk-VSUQI5Q6.js → chunk-IKPQ2GGB.js} +15 -1
  72. package/dist/chunk-IKPQ2GGB.js.map +1 -0
  73. package/dist/{chunk-Z3ZXVB2Y.js → chunk-IKS2CPAG.js} +12 -12
  74. package/dist/chunk-IKS2CPAG.js.map +1 -0
  75. package/dist/{chunk-IVMFIKNA.js → chunk-IMIQAGR7.js} +6 -6
  76. package/dist/{chunk-226V6XXJ.js → chunk-IQAJ4OR6.js} +6 -6
  77. package/dist/{chunk-ZMVSKYTJ.js → chunk-IUD7WU67.js} +10 -10
  78. package/dist/{chunk-OK57EATL.js → chunk-IVLRPRXM.js} +2 -2
  79. package/dist/{chunk-K673OO6B.js → chunk-JAQHWHUN.js} +4 -4
  80. package/dist/{chunk-MQ7YWBQ5.js → chunk-K4JSTGXT.js} +2 -2
  81. package/dist/{chunk-55P6OBB7.js → chunk-KN4LUMH6.js} +2 -2
  82. package/dist/{chunk-NZULV7LK.js → chunk-KZA3DITX.js} +4 -4
  83. package/dist/{chunk-ECGXA4LT.js → chunk-L2VM64HK.js} +2 -2
  84. package/dist/chunk-L4UL4IAR.js +55 -0
  85. package/dist/chunk-L4UL4IAR.js.map +1 -0
  86. package/dist/{chunk-XITHENBI.js → chunk-LUCQY3OM.js} +7 -7
  87. package/dist/{chunk-XITHENBI.js.map → chunk-LUCQY3OM.js.map} +1 -1
  88. package/dist/{chunk-LGGIFKJP.js → chunk-MAQBYBUX.js} +4 -4
  89. package/dist/{chunk-ABU6A4Z5.js → chunk-MBPZMZVB.js} +2 -2
  90. package/dist/{chunk-WFWFXDNS.js → chunk-MCNNZBG7.js} +2 -2
  91. package/dist/{chunk-NIXRB5BP.js → chunk-MLVPMDOZ.js} +2 -2
  92. package/dist/{chunk-BVF3SXD7.js → chunk-MMCN7TLK.js} +5 -5
  93. package/dist/{chunk-FSQNGPHH.js → chunk-MRCR7ZMC.js} +612 -175
  94. package/dist/chunk-MRCR7ZMC.js.map +1 -0
  95. package/dist/{chunk-PTJY5R3O.js → chunk-NCTN2FW4.js} +2 -2
  96. package/dist/{chunk-UOZOWN73.js → chunk-ND6S2DKC.js} +2 -2
  97. package/dist/{chunk-XKBTJGFP.js → chunk-NTVKHQ3L.js} +2 -2
  98. package/dist/{chunk-UHFGK6YA.js → chunk-NXQEOC3X.js} +3 -3
  99. package/dist/{chunk-UAKY6E4N.js → chunk-O2VQ3K36.js} +2 -2
  100. package/dist/{chunk-JSWKVZCR.js → chunk-OGKMRIIJ.js} +2 -2
  101. package/dist/{chunk-L2F3CFCH.js → chunk-ONZ3B5EW.js} +4 -4
  102. package/dist/{chunk-AJFPAHMW.js → chunk-OOPSMQX5.js} +3 -3
  103. package/dist/{chunk-QDHHHI5Q.js → chunk-OYEBSWLE.js} +5 -5
  104. package/dist/{chunk-ZWF3EWZA.js → chunk-P6FATPXQ.js} +2 -2
  105. package/dist/{chunk-QSHATAXJ.js → chunk-PLTIJDQN.js} +2 -2
  106. package/dist/{chunk-V55JASXO.js → chunk-PR7ILCIH.js} +3 -3
  107. package/dist/{chunk-X2RP4TO5.js → chunk-QE3TLZ6Z.js} +7 -7
  108. package/dist/{chunk-QXJXG7DN.js → chunk-QFW4MYGN.js} +5 -5
  109. package/dist/{chunk-2WJKJZSO.js → chunk-QHG7GQKM.js} +2 -2
  110. package/dist/{chunk-FZXRLNJO.js → chunk-QT5ITL25.js} +3 -3
  111. package/dist/{chunk-SNM7LSYG.js → chunk-R2ZULFXU.js} +4 -4
  112. package/dist/{chunk-SPPOUJLN.js → chunk-RRTQAQ3N.js} +2 -2
  113. package/dist/{chunk-JA25QG5M.js → chunk-RUE6TCES.js} +622 -119
  114. package/dist/chunk-RUE6TCES.js.map +1 -0
  115. package/dist/{chunk-L5A3KR7R.js → chunk-SALY3LIJ.js} +3 -3
  116. package/dist/{chunk-SFCD6OU7.js → chunk-SBAR5JQ6.js} +2 -2
  117. package/dist/{chunk-WHOKGHJ3.js → chunk-SCH2F7R2.js} +7 -7
  118. package/dist/{chunk-JPSL5GIZ.js → chunk-SOOAW6HK.js} +3 -3
  119. package/dist/{chunk-TMIJAR2X.js → chunk-T4VTRKCY.js} +3 -3
  120. package/dist/{chunk-5LMCVBMY.js → chunk-T5EXREMW.js} +5 -5
  121. package/dist/{chunk-YKGJ44Z7.js → chunk-TDJVQTXD.js} +3 -3
  122. package/dist/{chunk-PUBI455O.js → chunk-THQ3BHLM.js} +2 -2
  123. package/dist/{chunk-BMHQHH7Q.js → chunk-TLIFNRU5.js} +2 -2
  124. package/dist/{chunk-PGC35KXE.js → chunk-TRHUNPXP.js} +2 -2
  125. package/dist/{chunk-SWXLZ4HX.js → chunk-UL6MTRMJ.js} +8 -8
  126. package/dist/{delegation-ONLM4JFI.js → chunk-UNL6YGL5.js} +59 -16
  127. package/dist/chunk-UNL6YGL5.js.map +1 -0
  128. package/dist/{chunk-J4KAPKBJ.js → chunk-UORWAG7K.js} +2 -2
  129. package/dist/{chunk-45VHWE4C.js → chunk-V7AKGAXY.js} +271 -69
  130. package/dist/chunk-V7AKGAXY.js.map +1 -0
  131. package/dist/{chunk-XXQ5XIYY.js → chunk-VLQ6KT7F.js} +2 -2
  132. package/dist/{chunk-PT2YCQVK.js → chunk-VP37VUKQ.js} +4 -4
  133. package/dist/{chunk-QGSNJD3B.js → chunk-WBUHHMLN.js} +2 -2
  134. package/dist/{chunk-4J3MNVVX.js → chunk-WRLWEYHY.js} +7 -1
  135. package/dist/{chunk-4J3MNVVX.js.map → chunk-WRLWEYHY.js.map} +1 -1
  136. package/dist/{chunk-PFCTSXHU.js → chunk-X6Z2SIRF.js} +2 -2
  137. package/dist/{chunk-XA34THLF.js → chunk-XLKWF3L4.js} +4 -4
  138. package/dist/{chunk-K7RW7FI4.js → chunk-XPNJH7GN.js} +5 -5
  139. package/dist/{chunk-RDOEOPOI.js → chunk-XPW7T2GN.js} +5 -5
  140. package/dist/{chunk-2ELOCEXE.js → chunk-XX4R7TUB.js} +1 -1
  141. package/dist/chunk-XX4R7TUB.js.map +1 -0
  142. package/dist/{chunk-EA4VDI5D.js → chunk-Y55XHMQB.js} +4 -4
  143. package/dist/{chunk-CB4467G3.js → chunk-YH4OUOSI.js} +33 -7
  144. package/dist/chunk-YH4OUOSI.js.map +1 -0
  145. package/dist/{chunk-BNFNQNEP.js → chunk-YJGKOSQD.js} +2 -2
  146. package/dist/{chunk-3V6LZHUO.js → chunk-Z3STG43F.js} +2 -2
  147. package/dist/{chunk-ZBUAX4EF.js → chunk-ZD7WFMV2.js} +2 -2
  148. package/dist/{chunk-OM3SEDI4.js → chunk-ZF6JECDT.js} +4 -4
  149. package/dist/{chunk-3Y5JLSXS.js → chunk-ZF7KNSLU.js} +2 -2
  150. package/dist/{chunk-B65CC6Z6.js → chunk-ZGKODRGB.js} +2 -2
  151. package/dist/{chunk-D4V5JJAK.js → chunk-ZNEKQFGF.js} +4 -4
  152. package/dist/{chunk-D5A3GCZ4.js → chunk-ZUTUNVFD.js} +3 -3
  153. package/dist/{chunk-G5EDYVSE.js → chunk-ZWMOHANW.js} +5 -5
  154. package/dist/{chunk-CAD7N6HQ.js → chunk-ZZZ4VCY2.js} +10 -10
  155. package/dist/chunk-ZZZ4VCY2.js.map +1 -0
  156. package/dist/classified/index.js +5 -5
  157. package/dist/{classified-marker-KHDOYIJB.js → classified-marker-WKP33U2R.js} +3 -3
  158. package/dist/collection-facade-COSGZKLC.js +41 -0
  159. package/dist/{computed-XMFTHAXV.js → computed-WN6V53ZV.js} +3 -3
  160. package/dist/consent/index.js +8 -8
  161. package/dist/cover/index.js +8 -8
  162. package/dist/custody/index.js +12 -12
  163. package/dist/{dead-filter-CXV5NS67.js → dead-filter-43WL3Y5H.js} +10 -10
  164. package/dist/debug/index.js +7 -7
  165. package/dist/delegation-5UWT4JGT.js +26 -0
  166. package/dist/derivations/index.js +22 -22
  167. package/dist/derive-IL5JNLEE.js +20 -0
  168. package/dist/directory/index.js +9 -9
  169. package/dist/{dispatch-2MQFMEGY.js → dispatch-LOQQD5JK.js} +19 -19
  170. package/dist/{dispatch-OFDA4WQV.js → dispatch-SHKTG57L.js} +5 -5
  171. package/dist/executor-6PQ7WAGV.js +35 -0
  172. package/dist/executor-6ZPQA6HS.js +8 -0
  173. package/dist/executor-OXRA64TY.js +8 -0
  174. package/dist/export-accessible-XG3FKJWW.js +22 -0
  175. package/dist/extract-partition-33747NY5.js +35 -0
  176. package/dist/{fanout-sidecar-BO67PCPO.js → fanout-sidecar-NEB6IYV7.js} +8 -8
  177. package/dist/find-VW543G3J.js +10 -0
  178. package/dist/forget/index.js +8 -8
  179. package/dist/guards/index.js +4 -4
  180. package/dist/history/index.js +15 -13
  181. package/dist/history/index.js.map +1 -1
  182. package/dist/i18n/index.js +13 -13
  183. package/dist/index.d.ts +3 -2
  184. package/dist/index.js +111 -107
  185. package/dist/index.js.map +1 -1
  186. package/dist/indexing/index.js +5 -5
  187. package/dist/introspection/index.js +10 -10
  188. package/dist/issue-4ZPSY44M.js +19 -0
  189. package/dist/kernel/collection.d.ts +85 -6
  190. package/dist/kernel/constants.d.ts +7 -0
  191. package/dist/kernel/errors.d.ts +9 -0
  192. package/dist/kernel/merge-authority.d.ts +5 -1
  193. package/dist/kernel/noydb.d.ts +116 -21
  194. package/dist/kernel/rejection-seal.d.ts +13 -0
  195. package/dist/kernel/sync-wiring.d.ts +55 -0
  196. package/dist/kernel/types.d.ts +370 -8
  197. package/dist/kernel/vault.d.ts +39 -5
  198. package/dist/{ledger-MSJGWKGW.js → ledger-MZ25UFT2.js} +10 -10
  199. package/dist/liberate-OJIP2ZFX.js +25 -0
  200. package/dist/{link-set-QXXSPPHL.js → link-set-4FRRAVTH.js} +10 -10
  201. package/dist/{managed-secret-VSK7ANQI.js → managed-secret-SQWO2EUR.js} +9 -9
  202. package/dist/materialized-views/index.js +25 -25
  203. package/dist/{migrate-cek-GEBFYBDC.js → migrate-cek-JWEM4RP6.js} +2 -2
  204. package/dist/money/index.js +5 -5
  205. package/dist/noydb-U62OVKXB.js +100 -0
  206. package/dist/on/index.js +12 -12
  207. package/dist/overlay-views/index.js +4 -4
  208. package/dist/periods/index.js +11 -11
  209. package/dist/pod/index.js +66 -64
  210. package/dist/{pod-handle-YE7CT66T.js → pod-handle-R6Y4MILX.js} +8 -8
  211. package/dist/policy/index.js +9 -9
  212. package/dist/port/with/admission-authority.d.ts +34 -0
  213. package/dist/port/with/broker-strategy.d.ts +10 -0
  214. package/dist/port/with/rejection-courier.d.ts +37 -0
  215. package/dist/port/with/restore-host.d.ts +33 -0
  216. package/dist/port/with/service-bus.d.ts +18 -0
  217. package/dist/port/with/team-strategy.d.ts +2 -2
  218. package/dist/port/with/write-hooks.d.ts +2 -0
  219. package/dist/portability/index.js +8 -8
  220. package/dist/{post-register-QC5TEAW3.js → post-register-GRVQHBOH.js} +6 -6
  221. package/dist/query/all/index.js +15 -15
  222. package/dist/query/index.js +7 -7
  223. package/dist/query/live/index.js +7 -7
  224. package/dist/query/reduce/index.js +10 -10
  225. package/dist/query/relate/index.js +9 -9
  226. package/dist/reduce/index.js +8 -8
  227. package/dist/register-YJ5YLQ36.js +30 -0
  228. package/dist/registry-ICOHBQFD.js +8 -0
  229. package/dist/registry-MJ7MWCSW.js +35 -0
  230. package/dist/registry-MVEKKGWL.js +23 -0
  231. package/dist/registry-XP744FAP.js +8 -0
  232. package/dist/request-withdrawal-LSU4G6W3.js +28 -0
  233. package/dist/restore-to-DVBHAQAA.js +66 -0
  234. package/dist/restore-to-DVBHAQAA.js.map +1 -0
  235. package/dist/{reveal-YQTRNQFH.js → reveal-AIHOIK2N.js} +7 -7
  236. package/dist/revoke-QUT7WWG3.js +24 -0
  237. package/dist/satellites/index.js +1 -1
  238. package/dist/schema-update/index.js +2 -2
  239. package/dist/sealed-record/index.js +11 -11
  240. package/dist/search/index.js +4 -4
  241. package/dist/{seed-JMQTRKRE.js → seed-GFLA4FCK.js} +33 -18
  242. package/dist/seed-GFLA4FCK.js.map +1 -0
  243. package/dist/sequence/index.js +8 -8
  244. package/dist/session/index.js +8 -8
  245. package/dist/shadow/index.js +2 -2
  246. package/dist/signer-NYR4I3FO.js +23 -0
  247. package/dist/snapshots/index.js +9 -9
  248. package/dist/{stale-SKV33PBU.js → stale-PIJPAL5T.js} +9 -9
  249. package/dist/storage-VH6SPXHC.js +21 -0
  250. package/dist/{store-coordination-provider-Z6HKPOGM.js → store-coordination-provider-2KSHCOPU.js} +9 -9
  251. package/dist/sync/index.js +16 -16
  252. package/dist/sync/index.js.map +1 -1
  253. package/dist/team/index.js +15 -15
  254. package/dist/tiers/index.js +10 -10
  255. package/dist/to/index.js +2 -2
  256. package/dist/transactions/index.js +3 -3
  257. package/dist/util/index.js +1 -1
  258. package/dist/vault-head/index.js +7 -7
  259. package/dist/{verify-KWQIWLGH.js → verify-PCFS4PNS.js} +7 -7
  260. package/dist/walk-OZCN6LJS.js +20 -0
  261. package/dist/with-audit/guards/types.d.ts +2 -0
  262. package/dist/with-audit/tiers/index.d.ts +5 -5
  263. package/dist/with-commit/history/history.d.ts +16 -0
  264. package/dist/with-commit/history/restore-to.d.ts +40 -0
  265. package/dist/with-party/broker/seed.d.ts +4 -0
  266. package/dist/with-party/custody/strategy.d.ts +2 -2
  267. package/dist/with-party/team/delegation.d.ts +41 -11
  268. package/dist/with-party/team/index.d.ts +2 -0
  269. package/dist/with-party/team/keyring.d.ts +132 -3
  270. package/dist/with-party/team/noydb-facade.d.ts +14 -2
  271. package/dist/with-party/team/roster-tag.d.ts +1 -1
  272. package/dist/with-pod/backup.d.ts +9 -17
  273. package/dist/with-sync/active.d.ts +28 -1
  274. package/dist/with-sync/engine.d.ts +59 -2
  275. package/dist/with-sync/index.d.ts +1 -0
  276. package/dist/with-sync/reserved-mirror.d.ts +27 -4
  277. package/dist/with-sync/strategy.d.ts +2 -0
  278. package/dist/withdraw-accessible-MTFP7OIB.js +25 -0
  279. package/dist/withdraw-accessible-MTFP7OIB.js.map +1 -0
  280. package/package.json +3 -3
  281. package/dist/api-MSJXVYQG.js +0 -18
  282. package/dist/backup-7RKNZMQO.js.map +0 -1
  283. package/dist/chunk-2A56DSRI.js.map +0 -1
  284. package/dist/chunk-2ELOCEXE.js.map +0 -1
  285. package/dist/chunk-45VHWE4C.js.map +0 -1
  286. package/dist/chunk-72XBVN4J.js.map +0 -1
  287. package/dist/chunk-APFFJN5T.js.map +0 -1
  288. package/dist/chunk-CAD7N6HQ.js.map +0 -1
  289. package/dist/chunk-CB4467G3.js.map +0 -1
  290. package/dist/chunk-FSQNGPHH.js.map +0 -1
  291. package/dist/chunk-GOJQ5DZA.js.map +0 -1
  292. package/dist/chunk-JA25QG5M.js.map +0 -1
  293. package/dist/chunk-JBMMWYOH.js.map +0 -1
  294. package/dist/chunk-VSUQI5Q6.js.map +0 -1
  295. package/dist/chunk-Z3ZXVB2Y.js.map +0 -1
  296. package/dist/collection-facade-LZIF7GWD.js +0 -41
  297. package/dist/delegation-ONLM4JFI.js.map +0 -1
  298. package/dist/derive-3YSIS36W.js +0 -20
  299. package/dist/executor-E6YDJ7YA.js +0 -8
  300. package/dist/executor-NJX3YQQ4.js +0 -35
  301. package/dist/executor-WWM3DD4P.js +0 -8
  302. package/dist/export-accessible-RLHU5G4W.js +0 -22
  303. package/dist/extract-partition-QII2EDCS.js +0 -35
  304. package/dist/find-6M7GYDUZ.js +0 -10
  305. package/dist/issue-LPEEEMPP.js +0 -19
  306. package/dist/liberate-LEKDYKTC.js +0 -25
  307. package/dist/noydb-F2AUF6KL.js +0 -98
  308. package/dist/register-SN72QALV.js +0 -30
  309. package/dist/registry-253FF7C6.js +0 -35
  310. package/dist/registry-3AZWQTDT.js +0 -23
  311. package/dist/registry-7UEBTHWG.js +0 -8
  312. package/dist/registry-IVJ67NFQ.js +0 -8
  313. package/dist/request-withdrawal-UKVJZKX2.js +0 -28
  314. package/dist/revoke-G2KXJQA5.js +0 -24
  315. package/dist/seed-JMQTRKRE.js.map +0 -1
  316. package/dist/signer-IUIYR3CX.js +0 -23
  317. package/dist/storage-NPBYP2SM.js +0 -21
  318. package/dist/walk-F4OLXI5H.js +0 -20
  319. package/dist/withdraw-accessible-ZKPLZ66E.js +0 -25
  320. /package/dist/{api-MSJXVYQG.js.map → api-6EFD43KN.js.map} +0 -0
  321. /package/dist/{capsule-57BDK7LG.js.map → capsule-6LJAVQNM.js.map} +0 -0
  322. /package/dist/{chunk-PCYPXLEX.js.map → chunk-2DOCDOPL.js.map} +0 -0
  323. /package/dist/{chunk-RIZTZJX6.js.map → chunk-2LBS62AC.js.map} +0 -0
  324. /package/dist/{chunk-EUD3HQM4.js.map → chunk-2ST3WA3C.js.map} +0 -0
  325. /package/dist/{chunk-4UIP3QNW.js.map → chunk-3YBIVLTC.js.map} +0 -0
  326. /package/dist/{chunk-UNSQZSZP.js.map → chunk-4CHM2TRS.js.map} +0 -0
  327. /package/dist/{chunk-NYJBYVBG.js.map → chunk-4CUJLEOA.js.map} +0 -0
  328. /package/dist/{chunk-YFFMPZPY.js.map → chunk-4TG2ITRW.js.map} +0 -0
  329. /package/dist/{chunk-ZHQJAV6D.js.map → chunk-5HQFROZS.js.map} +0 -0
  330. /package/dist/{chunk-6Y5E4SJU.js.map → chunk-5ZVE3N5C.js.map} +0 -0
  331. /package/dist/{chunk-EMAWOGVH.js.map → chunk-654RE5YC.js.map} +0 -0
  332. /package/dist/{chunk-DHU2AQ6T.js.map → chunk-66GD7XXU.js.map} +0 -0
  333. /package/dist/{chunk-JZ4EDEIP.js.map → chunk-72FQ46VW.js.map} +0 -0
  334. /package/dist/{chunk-7BMOS4JQ.js.map → chunk-7JPA3LIH.js.map} +0 -0
  335. /package/dist/{chunk-QGFEBNHO.js.map → chunk-7K42TSCY.js.map} +0 -0
  336. /package/dist/{chunk-OJU67C23.js.map → chunk-7Q6IU3R7.js.map} +0 -0
  337. /package/dist/{chunk-GRS2HIV6.js.map → chunk-ADCXTW7L.js.map} +0 -0
  338. /package/dist/{chunk-BJH77UY2.js.map → chunk-AGGPT4UE.js.map} +0 -0
  339. /package/dist/{chunk-TZYTMZZY.js.map → chunk-AKIEBFIJ.js.map} +0 -0
  340. /package/dist/{chunk-DL6BZKP3.js.map → chunk-B3B6HV5S.js.map} +0 -0
  341. /package/dist/{chunk-5XONHAFD.js.map → chunk-B6EWMGFX.js.map} +0 -0
  342. /package/dist/{chunk-MRJDLXI3.js.map → chunk-BFJE2GPP.js.map} +0 -0
  343. /package/dist/{chunk-G46JSSVX.js.map → chunk-BJRKXNFP.js.map} +0 -0
  344. /package/dist/{chunk-RNACRT5H.js.map → chunk-BPQ5CRJF.js.map} +0 -0
  345. /package/dist/{chunk-BYHCKX73.js.map → chunk-BVRJYMFZ.js.map} +0 -0
  346. /package/dist/{chunk-GETUTTZU.js.map → chunk-C4XV3PSJ.js.map} +0 -0
  347. /package/dist/{chunk-XXNWU5QZ.js.map → chunk-DFC4WTJW.js.map} +0 -0
  348. /package/dist/{chunk-YQFBH5ZJ.js.map → chunk-DMIEKD24.js.map} +0 -0
  349. /package/dist/{chunk-2ZFD2UJC.js.map → chunk-DQAXA2GK.js.map} +0 -0
  350. /package/dist/{chunk-ZVSKSUGI.js.map → chunk-DWCFGF2K.js.map} +0 -0
  351. /package/dist/{chunk-5HNW4ZTA.js.map → chunk-E2C6FFSI.js.map} +0 -0
  352. /package/dist/{chunk-G66YXUTY.js.map → chunk-EZOFTI4K.js.map} +0 -0
  353. /package/dist/{chunk-6QLCS7ET.js.map → chunk-FMINS2B6.js.map} +0 -0
  354. /package/dist/{chunk-6WS35E6X.js.map → chunk-FPF5HRBE.js.map} +0 -0
  355. /package/dist/{chunk-7CT6SX4M.js.map → chunk-FZVCZEVI.js.map} +0 -0
  356. /package/dist/{chunk-BUE7R3B5.js.map → chunk-GIQJGXV7.js.map} +0 -0
  357. /package/dist/{chunk-C53ER7AG.js.map → chunk-H334G6KU.js.map} +0 -0
  358. /package/dist/{chunk-GCUMOKTN.js.map → chunk-HE7EAHGS.js.map} +0 -0
  359. /package/dist/{chunk-BU2ABHFW.js.map → chunk-HKB4HZDU.js.map} +0 -0
  360. /package/dist/{chunk-5UUJE4FP.js.map → chunk-ICF3TIGY.js.map} +0 -0
  361. /package/dist/{chunk-H3YM66EI.js.map → chunk-IF2M43G4.js.map} +0 -0
  362. /package/dist/{chunk-IVMFIKNA.js.map → chunk-IMIQAGR7.js.map} +0 -0
  363. /package/dist/{chunk-226V6XXJ.js.map → chunk-IQAJ4OR6.js.map} +0 -0
  364. /package/dist/{chunk-ZMVSKYTJ.js.map → chunk-IUD7WU67.js.map} +0 -0
  365. /package/dist/{chunk-OK57EATL.js.map → chunk-IVLRPRXM.js.map} +0 -0
  366. /package/dist/{chunk-K673OO6B.js.map → chunk-JAQHWHUN.js.map} +0 -0
  367. /package/dist/{chunk-MQ7YWBQ5.js.map → chunk-K4JSTGXT.js.map} +0 -0
  368. /package/dist/{chunk-55P6OBB7.js.map → chunk-KN4LUMH6.js.map} +0 -0
  369. /package/dist/{chunk-NZULV7LK.js.map → chunk-KZA3DITX.js.map} +0 -0
  370. /package/dist/{chunk-ECGXA4LT.js.map → chunk-L2VM64HK.js.map} +0 -0
  371. /package/dist/{chunk-LGGIFKJP.js.map → chunk-MAQBYBUX.js.map} +0 -0
  372. /package/dist/{chunk-ABU6A4Z5.js.map → chunk-MBPZMZVB.js.map} +0 -0
  373. /package/dist/{chunk-WFWFXDNS.js.map → chunk-MCNNZBG7.js.map} +0 -0
  374. /package/dist/{chunk-NIXRB5BP.js.map → chunk-MLVPMDOZ.js.map} +0 -0
  375. /package/dist/{chunk-BVF3SXD7.js.map → chunk-MMCN7TLK.js.map} +0 -0
  376. /package/dist/{chunk-PTJY5R3O.js.map → chunk-NCTN2FW4.js.map} +0 -0
  377. /package/dist/{chunk-UOZOWN73.js.map → chunk-ND6S2DKC.js.map} +0 -0
  378. /package/dist/{chunk-XKBTJGFP.js.map → chunk-NTVKHQ3L.js.map} +0 -0
  379. /package/dist/{chunk-UHFGK6YA.js.map → chunk-NXQEOC3X.js.map} +0 -0
  380. /package/dist/{chunk-UAKY6E4N.js.map → chunk-O2VQ3K36.js.map} +0 -0
  381. /package/dist/{chunk-JSWKVZCR.js.map → chunk-OGKMRIIJ.js.map} +0 -0
  382. /package/dist/{chunk-L2F3CFCH.js.map → chunk-ONZ3B5EW.js.map} +0 -0
  383. /package/dist/{chunk-AJFPAHMW.js.map → chunk-OOPSMQX5.js.map} +0 -0
  384. /package/dist/{chunk-QDHHHI5Q.js.map → chunk-OYEBSWLE.js.map} +0 -0
  385. /package/dist/{chunk-ZWF3EWZA.js.map → chunk-P6FATPXQ.js.map} +0 -0
  386. /package/dist/{chunk-QSHATAXJ.js.map → chunk-PLTIJDQN.js.map} +0 -0
  387. /package/dist/{chunk-V55JASXO.js.map → chunk-PR7ILCIH.js.map} +0 -0
  388. /package/dist/{chunk-X2RP4TO5.js.map → chunk-QE3TLZ6Z.js.map} +0 -0
  389. /package/dist/{chunk-QXJXG7DN.js.map → chunk-QFW4MYGN.js.map} +0 -0
  390. /package/dist/{chunk-2WJKJZSO.js.map → chunk-QHG7GQKM.js.map} +0 -0
  391. /package/dist/{chunk-FZXRLNJO.js.map → chunk-QT5ITL25.js.map} +0 -0
  392. /package/dist/{chunk-SNM7LSYG.js.map → chunk-R2ZULFXU.js.map} +0 -0
  393. /package/dist/{chunk-SPPOUJLN.js.map → chunk-RRTQAQ3N.js.map} +0 -0
  394. /package/dist/{chunk-L5A3KR7R.js.map → chunk-SALY3LIJ.js.map} +0 -0
  395. /package/dist/{chunk-SFCD6OU7.js.map → chunk-SBAR5JQ6.js.map} +0 -0
  396. /package/dist/{chunk-WHOKGHJ3.js.map → chunk-SCH2F7R2.js.map} +0 -0
  397. /package/dist/{chunk-JPSL5GIZ.js.map → chunk-SOOAW6HK.js.map} +0 -0
  398. /package/dist/{chunk-TMIJAR2X.js.map → chunk-T4VTRKCY.js.map} +0 -0
  399. /package/dist/{chunk-5LMCVBMY.js.map → chunk-T5EXREMW.js.map} +0 -0
  400. /package/dist/{chunk-YKGJ44Z7.js.map → chunk-TDJVQTXD.js.map} +0 -0
  401. /package/dist/{chunk-PUBI455O.js.map → chunk-THQ3BHLM.js.map} +0 -0
  402. /package/dist/{chunk-BMHQHH7Q.js.map → chunk-TLIFNRU5.js.map} +0 -0
  403. /package/dist/{chunk-PGC35KXE.js.map → chunk-TRHUNPXP.js.map} +0 -0
  404. /package/dist/{chunk-SWXLZ4HX.js.map → chunk-UL6MTRMJ.js.map} +0 -0
  405. /package/dist/{chunk-J4KAPKBJ.js.map → chunk-UORWAG7K.js.map} +0 -0
  406. /package/dist/{chunk-XXQ5XIYY.js.map → chunk-VLQ6KT7F.js.map} +0 -0
  407. /package/dist/{chunk-PT2YCQVK.js.map → chunk-VP37VUKQ.js.map} +0 -0
  408. /package/dist/{chunk-QGSNJD3B.js.map → chunk-WBUHHMLN.js.map} +0 -0
  409. /package/dist/{chunk-PFCTSXHU.js.map → chunk-X6Z2SIRF.js.map} +0 -0
  410. /package/dist/{chunk-XA34THLF.js.map → chunk-XLKWF3L4.js.map} +0 -0
  411. /package/dist/{chunk-K7RW7FI4.js.map → chunk-XPNJH7GN.js.map} +0 -0
  412. /package/dist/{chunk-RDOEOPOI.js.map → chunk-XPW7T2GN.js.map} +0 -0
  413. /package/dist/{chunk-EA4VDI5D.js.map → chunk-Y55XHMQB.js.map} +0 -0
  414. /package/dist/{chunk-BNFNQNEP.js.map → chunk-YJGKOSQD.js.map} +0 -0
  415. /package/dist/{chunk-3V6LZHUO.js.map → chunk-Z3STG43F.js.map} +0 -0
  416. /package/dist/{chunk-ZBUAX4EF.js.map → chunk-ZD7WFMV2.js.map} +0 -0
  417. /package/dist/{chunk-OM3SEDI4.js.map → chunk-ZF6JECDT.js.map} +0 -0
  418. /package/dist/{chunk-3Y5JLSXS.js.map → chunk-ZF7KNSLU.js.map} +0 -0
  419. /package/dist/{chunk-B65CC6Z6.js.map → chunk-ZGKODRGB.js.map} +0 -0
  420. /package/dist/{chunk-D4V5JJAK.js.map → chunk-ZNEKQFGF.js.map} +0 -0
  421. /package/dist/{chunk-D5A3GCZ4.js.map → chunk-ZUTUNVFD.js.map} +0 -0
  422. /package/dist/{chunk-G5EDYVSE.js.map → chunk-ZWMOHANW.js.map} +0 -0
  423. /package/dist/{classified-marker-KHDOYIJB.js.map → classified-marker-WKP33U2R.js.map} +0 -0
  424. /package/dist/{collection-facade-LZIF7GWD.js.map → collection-facade-COSGZKLC.js.map} +0 -0
  425. /package/dist/{computed-XMFTHAXV.js.map → computed-WN6V53ZV.js.map} +0 -0
  426. /package/dist/{dead-filter-CXV5NS67.js.map → dead-filter-43WL3Y5H.js.map} +0 -0
  427. /package/dist/{derive-3YSIS36W.js.map → delegation-5UWT4JGT.js.map} +0 -0
  428. /package/dist/{executor-E6YDJ7YA.js.map → derive-IL5JNLEE.js.map} +0 -0
  429. /package/dist/{dispatch-2MQFMEGY.js.map → dispatch-LOQQD5JK.js.map} +0 -0
  430. /package/dist/{dispatch-OFDA4WQV.js.map → dispatch-SHKTG57L.js.map} +0 -0
  431. /package/dist/{executor-NJX3YQQ4.js.map → executor-6PQ7WAGV.js.map} +0 -0
  432. /package/dist/{executor-WWM3DD4P.js.map → executor-6ZPQA6HS.js.map} +0 -0
  433. /package/dist/{export-accessible-RLHU5G4W.js.map → executor-OXRA64TY.js.map} +0 -0
  434. /package/dist/{extract-partition-QII2EDCS.js.map → export-accessible-XG3FKJWW.js.map} +0 -0
  435. /package/dist/{find-6M7GYDUZ.js.map → extract-partition-33747NY5.js.map} +0 -0
  436. /package/dist/{fanout-sidecar-BO67PCPO.js.map → fanout-sidecar-NEB6IYV7.js.map} +0 -0
  437. /package/dist/{issue-LPEEEMPP.js.map → find-VW543G3J.js.map} +0 -0
  438. /package/dist/{ledger-MSJGWKGW.js.map → issue-4ZPSY44M.js.map} +0 -0
  439. /package/dist/{liberate-LEKDYKTC.js.map → ledger-MZ25UFT2.js.map} +0 -0
  440. /package/dist/{link-set-QXXSPPHL.js.map → liberate-OJIP2ZFX.js.map} +0 -0
  441. /package/dist/{managed-secret-VSK7ANQI.js.map → link-set-4FRRAVTH.js.map} +0 -0
  442. /package/dist/{noydb-F2AUF6KL.js.map → managed-secret-SQWO2EUR.js.map} +0 -0
  443. /package/dist/{migrate-cek-GEBFYBDC.js.map → migrate-cek-JWEM4RP6.js.map} +0 -0
  444. /package/dist/{register-SN72QALV.js.map → noydb-U62OVKXB.js.map} +0 -0
  445. /package/dist/{pod-handle-YE7CT66T.js.map → pod-handle-R6Y4MILX.js.map} +0 -0
  446. /package/dist/{post-register-QC5TEAW3.js.map → post-register-GRVQHBOH.js.map} +0 -0
  447. /package/dist/{registry-253FF7C6.js.map → register-YJ5YLQ36.js.map} +0 -0
  448. /package/dist/{registry-3AZWQTDT.js.map → registry-ICOHBQFD.js.map} +0 -0
  449. /package/dist/{registry-7UEBTHWG.js.map → registry-MJ7MWCSW.js.map} +0 -0
  450. /package/dist/{registry-IVJ67NFQ.js.map → registry-MVEKKGWL.js.map} +0 -0
  451. /package/dist/{request-withdrawal-UKVJZKX2.js.map → registry-XP744FAP.js.map} +0 -0
  452. /package/dist/{revoke-G2KXJQA5.js.map → request-withdrawal-LSU4G6W3.js.map} +0 -0
  453. /package/dist/{reveal-YQTRNQFH.js.map → reveal-AIHOIK2N.js.map} +0 -0
  454. /package/dist/{signer-IUIYR3CX.js.map → revoke-QUT7WWG3.js.map} +0 -0
  455. /package/dist/{stale-SKV33PBU.js.map → signer-NYR4I3FO.js.map} +0 -0
  456. /package/dist/{storage-NPBYP2SM.js.map → stale-PIJPAL5T.js.map} +0 -0
  457. /package/dist/{walk-F4OLXI5H.js.map → storage-VH6SPXHC.js.map} +0 -0
  458. /package/dist/{store-coordination-provider-Z6HKPOGM.js.map → store-coordination-provider-2KSHCOPU.js.map} +0 -0
  459. /package/dist/{verify-KWQIWLGH.js.map → verify-PCFS4PNS.js.map} +0 -0
  460. /package/dist/{withdraw-accessible-ZKPLZ66E.js.map → walk-OZCN6LJS.js.map} +0 -0
@@ -6,10 +6,10 @@ import {
6
6
  } from "./chunk-VYYM3MEN.js";
7
7
  import {
8
8
  derivePersistedSchema
9
- } from "./chunk-J4KAPKBJ.js";
9
+ } from "./chunk-UORWAG7K.js";
10
10
  import {
11
11
  loadPersistedSchema
12
- } from "./chunk-H3YM66EI.js";
12
+ } from "./chunk-IF2M43G4.js";
13
13
 
14
14
  // src/with-shape/introspection/walk.ts
15
15
  var INTERNAL_PREFIX = "_";
@@ -268,4 +268,4 @@ function summariseAggregateOp(value) {
268
268
  export {
269
269
  dumpVaultSchema
270
270
  };
271
- //# sourceMappingURL=chunk-EMAWOGVH.js.map
271
+ //# sourceMappingURL=chunk-654RE5YC.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CollectionNotHydratedError
3
- } from "./chunk-VSUQI5Q6.js";
3
+ } from "./chunk-IKPQ2GGB.js";
4
4
 
5
5
  // src/kernel/query/hydration.ts
6
6
  var INSPECT = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
@@ -50,4 +50,4 @@ function gateTerminal(gate, terminal, compute) {
50
50
  export {
51
51
  gateTerminal
52
52
  };
53
- //# sourceMappingURL=chunk-DHU2AQ6T.js.map
53
+ //# sourceMappingURL=chunk-66GD7XXU.js.map
@@ -2,10 +2,10 @@ import {
2
2
  CURRENT_COST_BYTE,
3
3
  iterationsForCostByte,
4
4
  mintAt
5
- } from "./chunk-ABU6A4Z5.js";
5
+ } from "./chunk-MBPZMZVB.js";
6
6
  import {
7
7
  normalizeForVerify
8
- } from "./chunk-PUBI455O.js";
8
+ } from "./chunk-THQ3BHLM.js";
9
9
 
10
10
  // src/capsule/enclave-aes/classify/find.ts
11
11
  async function computeBidxTarget(candidate, normalize, dek, collection, field, costByte) {
@@ -19,4 +19,4 @@ async function computeBidxTarget(candidate, normalize, dek, collection, field, c
19
19
  export {
20
20
  computeBidxTarget
21
21
  };
22
- //# sourceMappingURL=chunk-JZ4EDEIP.js.map
22
+ //# sourceMappingURL=chunk-72FQ46VW.js.map
@@ -4,27 +4,27 @@ import {
4
4
  resolveLegOwner,
5
5
  ungatedMvContext,
6
6
  wrapDbWithPredicates
7
- } from "./chunk-D4V5JJAK.js";
7
+ } from "./chunk-ZNEKQFGF.js";
8
8
  import {
9
9
  canonicalizeMoneyFieldsAsDecimal,
10
10
  decodeMoneyFields,
11
11
  exactMath
12
- } from "./chunk-OJU67C23.js";
12
+ } from "./chunk-7Q6IU3R7.js";
13
13
  import {
14
14
  applyWindow
15
- } from "./chunk-LGGIFKJP.js";
15
+ } from "./chunk-MAQBYBUX.js";
16
16
  import {
17
17
  groupAndReduce
18
- } from "./chunk-WHOKGHJ3.js";
18
+ } from "./chunk-SCH2F7R2.js";
19
19
  import {
20
20
  putDerivedOutput
21
- } from "./chunk-CAD7N6HQ.js";
21
+ } from "./chunk-ZZZ4VCY2.js";
22
22
  import {
23
23
  canonicalGroupKey
24
24
  } from "./chunk-XZHEOSQ2.js";
25
25
  import {
26
26
  bindDistinctReducers
27
- } from "./chunk-BJH77UY2.js";
27
+ } from "./chunk-AGGPT4UE.js";
28
28
  import {
29
29
  groupKeyName,
30
30
  isDateTruncKey,
@@ -32,19 +32,19 @@ import {
32
32
  } from "./chunk-XBKH4FOC.js";
33
33
  import {
34
34
  DEFAULT_JOIN_MAX_ROWS
35
- } from "./chunk-PT2YCQVK.js";
35
+ } from "./chunk-VP37VUKQ.js";
36
36
  import {
37
37
  applyI18nLocale
38
- } from "./chunk-V55JASXO.js";
38
+ } from "./chunk-PR7ILCIH.js";
39
39
  import {
40
40
  viaBinder
41
- } from "./chunk-PTJY5R3O.js";
41
+ } from "./chunk-NCTN2FW4.js";
42
42
  import {
43
43
  JoinTooLargeError,
44
44
  LocaleNotSpecifiedError,
45
45
  MaterializedViewConfigError,
46
46
  MaterializedViewTooLargeError
47
- } from "./chunk-VSUQI5Q6.js";
47
+ } from "./chunk-IKPQ2GGB.js";
48
48
 
49
49
  // src/with-formula/materialized-views/window-stage.ts
50
50
  function isWindowFn(v) {
@@ -449,4 +449,4 @@ async function listOutputIds(outputColl) {
449
449
  export {
450
450
  MaterializedViewExecutor
451
451
  };
452
- //# sourceMappingURL=chunk-7BMOS4JQ.js.map
452
+ //# sourceMappingURL=chunk-7JPA3LIH.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  splitAroundJoins
3
- } from "./chunk-ZVSKSUGI.js";
3
+ } from "./chunk-DWCFGF2K.js";
4
4
  import {
5
5
  evaluateClause,
6
6
  hasFnClause,
7
7
  normalizeMatches,
8
8
  normalizeSubqueryOperand
9
- } from "./chunk-BUE7R3B5.js";
9
+ } from "./chunk-GIQJGXV7.js";
10
10
  import {
11
11
  FieldNotQueryableError,
12
12
  QueryExtensionMissingError
13
- } from "./chunk-VSUQI5Q6.js";
13
+ } from "./chunk-IKPQ2GGB.js";
14
14
 
15
15
  // src/kernel/query/scan-builder.ts
16
16
  var DEFAULT_SCAN_PAGE_SIZE = 100;
@@ -190,4 +190,4 @@ for (const [method, subpath] of SCAN_EXTENSION_METHODS) {
190
190
  export {
191
191
  ScanBuilder
192
192
  };
193
- //# sourceMappingURL=chunk-QGFEBNHO.js.map
193
+ //# sourceMappingURL=chunk-7K42TSCY.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  readPath
3
- } from "./chunk-BUE7R3B5.js";
3
+ } from "./chunk-GIQJGXV7.js";
4
4
  import {
5
5
  installViaBinder
6
- } from "./chunk-PTJY5R3O.js";
6
+ } from "./chunk-NCTN2FW4.js";
7
7
  import {
8
8
  NoydbError,
9
9
  ValidationError
10
- } from "./chunk-VSUQI5Q6.js";
10
+ } from "./chunk-IKPQ2GGB.js";
11
11
 
12
12
  // src/via/money/iso4217.ts
13
13
  var MINOR_UNITS = {
@@ -1130,4 +1130,4 @@ export {
1130
1130
  decodeMoneyFields,
1131
1131
  exactMath
1132
1132
  };
1133
- //# sourceMappingURL=chunk-OJU67C23.js.map
1133
+ //# sourceMappingURL=chunk-7Q6IU3R7.js.map
@@ -1,3 +1,10 @@
1
+ import {
2
+ buildRecordAad,
3
+ buildRecordEnvelope,
4
+ encrypt,
5
+ openEnvelopeJson
6
+ } from "./chunk-WRLWEYHY.js";
7
+
1
8
  // src/kernel/sync-policy.ts
2
9
  var INDEXED_STORE_POLICY = {
3
10
  push: { mode: "on-change", minIntervalMs: 0, onUnload: true },
@@ -306,10 +313,36 @@ var NO_SYNC = {
306
313
  }
307
314
  };
308
315
 
316
+ // src/kernel/rejection-seal.ts
317
+ var REJECTIONS_COLLECTION = "_sync_rejections";
318
+ var rejectionKey = (collection, id) => `${collection}::${id}`;
319
+ async function sealRejection(collection, id, rejection, dek, version) {
320
+ const key = rejectionKey(collection, id);
321
+ const identity = { collection: REJECTIONS_COLLECTION, id: key, by: rejection.by, version };
322
+ const { iv, data } = await encrypt(JSON.stringify(rejection), dek, buildRecordAad(identity));
323
+ return buildRecordEnvelope(identity, { ts: rejection.at, iv, data });
324
+ }
325
+ async function openRejection(collection, id, envelope, dek) {
326
+ try {
327
+ const plaintext = await openEnvelopeJson(
328
+ { collection: REJECTIONS_COLLECTION, id: rejectionKey(collection, id) },
329
+ envelope,
330
+ dek
331
+ );
332
+ return JSON.parse(plaintext);
333
+ } catch {
334
+ return null;
335
+ }
336
+ }
337
+
309
338
  export {
310
339
  INDEXED_STORE_POLICY,
311
340
  POD_STORE_POLICY,
312
341
  SyncScheduler,
313
- NO_SYNC
342
+ NO_SYNC,
343
+ REJECTIONS_COLLECTION,
344
+ rejectionKey,
345
+ sealRejection,
346
+ openRejection
314
347
  };
315
- //# sourceMappingURL=chunk-JBMMWYOH.js.map
348
+ //# sourceMappingURL=chunk-7UHLO4ZN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/kernel/sync-policy.ts","../src/with-sync/strategy.ts","../src/kernel/rejection-seal.ts"],"sourcesContent":["/**\n * Sync scheduling policy.\n *\n * ## What it controls\n *\n * A {@link SyncPolicy} has two halves:\n * - **push** ({@link PushPolicy}) — when dirty local writes are sent to the remote.\n * - **pull** ({@link PullPolicy}) — when the remote is polled for new data.\n *\n * ## Choosing a policy\n *\n * The right policy depends on the backend's operational characteristics:\n *\n * | Backend type | Recommended policy |\n * |---|---|\n * | Per-record (DynamoDB, S3, IDB) | {@link INDEXED_STORE_POLICY} — `on-change` push, `manual` pull |\n * | Bundle (Drive, WebDAV, Git) | {@link POD_STORE_POLICY} — `debounce` push, `interval` pull |\n *\n * Consumers can override via `createNoydb({ syncPolicy: { ... } })`:\n *\n * ```ts\n * const db = await createNoydb({\n * store: toFile({ dir: './data' }),\n * syncPolicy: {\n * push: { mode: 'debounce', debounceMs: 5_000 },\n * pull: { mode: 'on-focus' },\n * },\n * })\n * ```\n *\n * ## Scheduler lifecycle\n *\n * {@link SyncScheduler} owns all timers, debounce logic, and browser lifecycle\n * hooks (`visibilitychange`, `pagehide`, `beforeExit`). Call `scheduler.start()`\n * after opening a vault and `scheduler.stop()` when closing it. The scheduler\n * delegates actual push/pull work to {@link SyncSchedulerCallbacks} provided\n * by the {@link SyncEngine}.\n *\n * @module\n */\n\n// ─── Policy types ───────────────────────────────────────────────────────\n\n/**\n * When push operations are triggered automatically.\n *\n * - `'manual'` — only on explicit `sync.push()` calls.\n * - `'on-change'` — immediately after every local write (respecting `minIntervalMs`).\n * - `'debounce'` — after `debounceMs` of inactivity following a write.\n * - `'interval'` — on a fixed timer regardless of writes.\n */\nexport type PushMode = 'manual' | 'on-change' | 'debounce' | 'interval'\n\n/**\n * When pull operations are triggered automatically.\n *\n * - `'manual'` — only on explicit `sync.pull()` calls.\n * - `'interval'` — on a fixed `intervalMs` timer.\n * - `'on-focus'` — when the browser tab regains visibility.\n * - `'phased'` — pull the collections named in `sequence`, in order, one at a\n * time, then settle into steady state. For thin clients that need their\n * navigation-critical collections before bulk history.\n */\nexport type PullMode = 'manual' | 'interval' | 'on-focus' | 'phased'\n\n/**\n * Push half of a sync policy. Controls the trigger mode and timing guards\n * for outbound sync operations.\n */\nexport interface PushPolicy {\n /** Push trigger mode. */\n readonly mode: PushMode\n /** Debounce delay in ms. Only used when `mode: 'debounce'`. Default: 30_000. */\n readonly debounceMs?: number\n /** Interval in ms between automatic pushes. Used by `'interval'` and as floor for `'debounce'`. */\n readonly intervalMs?: number\n /**\n * Hard floor between pushes regardless of mode. Prevents burst writes\n * from hammering the remote. Default: 0 (no floor).\n */\n readonly minIntervalMs?: number\n /**\n * Force a push on page unload (`pagehide` / `visibilitychange → hidden`)\n * in browsers, `beforeExit` in Node. Default: true for non-manual modes.\n */\n readonly onUnload?: boolean\n}\n\n/**\n * Pull half of a sync policy. Controls when and how often inbound sync\n * operations are triggered.\n */\nexport interface PullPolicy {\n /** Pull trigger mode. */\n readonly mode: PullMode\n /**\n * Interval in ms between automatic pulls. Used by `'interval'` mode. Default: 60_000.\n * Under `'phased'` it is the steady-state cadence adopted *after* the sequence\n * completes; omit it to go idle instead.\n */\n readonly intervalMs?: number\n /**\n * Collection names to pull in order, one at a time. Required when\n * `mode: 'phased'` and rejected otherwise. Entries must be non-empty and\n * unique — without period narrowing a repeated collection can only be a\n * mistake, so it is rejected rather than silently merged.\n *\n * Period-scoped phases (`collection@period`) are deferred to `partitions`;\n * use `db.pull(vault, { periods })` explicitly meanwhile.\n */\n readonly sequence?: readonly string[]\n}\n\n/**\n * Combined push + pull sync scheduling policy for a vault.\n *\n * Pass via `createNoydb({ syncPolicy })` to override the default policy\n * derived from the active store type. Pre-built defaults are available\n * as `INDEXED_STORE_POLICY` and `POD_STORE_POLICY`.\n */\nexport interface SyncPolicy {\n readonly push: PushPolicy\n readonly pull: PullPolicy\n}\n\n// ─── Default policies by store category ─────────────────────────────────\n\n/** Default for per-record stores (DynamoDB, S3, file, IDB). */\nexport const INDEXED_STORE_POLICY: SyncPolicy = {\n push: { mode: 'on-change', minIntervalMs: 0, onUnload: true },\n pull: { mode: 'manual' },\n}\n\n/** Default for bundle stores (Drive, WebDAV, Git). */\nexport const POD_STORE_POLICY: SyncPolicy = {\n push: { mode: 'debounce', debounceMs: 30_000, minIntervalMs: 120_000, onUnload: true },\n pull: { mode: 'interval', intervalMs: 60_000 },\n}\n\n\n// ─── Sync scheduler ─────────────────────────────────────────────────────\n\n/**\n * Current operational state of the `SyncScheduler`.\n *\n * - `'idle'` — no pending or active sync operations.\n * - `'pending'` — local writes are queued, waiting for debounce/interval to fire.\n * - `'pushing'` — push in progress.\n * - `'pulling'` — pull in progress.\n * - `'error'` — last sync operation failed; `lastError` holds the cause.\n */\nexport type SyncSchedulerState = 'idle' | 'pending' | 'pushing' | 'pulling' | 'error'\n\n/**\n * How much of a collection a caller may rely on, under a `'phased'` pull.\n *\n * - `'cold'` — not pulled yet, or its phase did not complete cleanly. A miss\n * from `get()` proves nothing.\n * - `'pulling'` — its phase is in flight. Never terminal: a phase always ends\n * in `'live'` or back in `'cold'`, because a stuck `'pulling'` would leave a\n * permanent skeleton in the UI.\n * - `'live'` — its phase completed cleanly, so a miss is a real absence.\n */\nexport type ReadinessState = 'cold' | 'pulling' | 'live'\n\n/**\n * What a scheduler-initiated pull achieved, as reported by the callback.\n *\n * `'incomplete'` covers both a pull that reported errors (`PullResult.errors`\n * accumulates without throwing) and one that was skipped — e.g. role-gated on a\n * backup target. Either way nothing may be claimed about completeness.\n */\nexport type PullPhaseOutcome = 'complete' | 'incomplete'\n\n/**\n * Snapshot of the sync scheduler's state, returned by `SyncScheduler.status`.\n * Safe to expose in a reactive UI status indicator.\n */\nexport interface SyncSchedulerStatus {\n readonly state: SyncSchedulerState\n readonly lastPushAt: string | null\n readonly lastPullAt: string | null\n readonly lastError: Error | null\n readonly pendingWrites: number\n /**\n * Per-collection readiness. Empty unless `pull.mode === 'phased'`.\n *\n * A collection the sequence never names is **absent** from the map, and\n * `undefined` means *\"no claim made\"* — never a reason to gate a UI.\n */\n readonly readiness: ReadonlyMap<string, ReadinessState>\n /** 1-based position in the sequence, or `null` outside a phased run. */\n readonly phase: { readonly index: number; readonly total: number } | null\n}\n\n/**\n * Callbacks injected into `SyncScheduler` by the SyncEngine.\n *\n * The scheduler owns timers and lifecycle hooks; it delegates actual push/pull\n * work to these callbacks to stay decoupled from the sync implementation.\n */\nexport interface SyncSchedulerCallbacks {\n push(): Promise<void>\n /**\n * @param collections - Narrow the pull to these collections. Passed by a\n * `'phased'` sequence, one collection per phase; omitted for a whole-vault pull.\n * @returns Whether the pull may be treated as complete. Returning `void` reads\n * as `'complete'`, so callers with nothing to report need not opt in.\n */\n pull(collections?: readonly string[]): Promise<PullPhaseOutcome | void>\n getDirtyCount(): number\n}\n\n/**\n * Reject a policy that cannot mean anything, at construction rather than on\n * the first tick. Module-private: `SyncScheduler` is the choke point every\n * policy that can actually schedule must pass through — primary and per-target\n * alike — so validating here needs no new public surface and costs the kernel\n * floor nothing.\n */\nfunction validatePullPolicy(pull: PullPolicy): void {\n if (pull.mode !== 'phased') {\n if (pull.sequence !== undefined) {\n throw new Error(\n `syncPolicy.pull.sequence is only meaningful with mode: 'phased' (got '${pull.mode}'). ` +\n `Set mode: 'phased' to run the sequence, or drop the field.`,\n )\n }\n return\n }\n\n const { sequence } = pull\n if (!sequence || sequence.length === 0) {\n throw new Error(\n `syncPolicy.pull.mode: 'phased' requires a non-empty 'sequence' of collection names.`,\n )\n }\n for (const name of sequence) {\n if (typeof name !== 'string' || name.length === 0) {\n throw new Error(\n `syncPolicy.pull.sequence entries must be non-empty collection names (got ${JSON.stringify(name)}).`,\n )\n }\n }\n const duplicate = sequence.find((name, i) => sequence.indexOf(name) !== i)\n if (duplicate !== undefined) {\n throw new Error(\n `syncPolicy.pull.sequence lists \"${duplicate}\" more than once. ` +\n `Each collection is pulled whole, so a repeat does no additional work.`,\n )\n }\n}\n\n/**\n * Manages sync timing according to a `SyncPolicy`.\n *\n * The scheduler owns all timers and lifecycle hooks. It delegates actual\n * push/pull work to callbacks provided by the SyncEngine.\n */\nexport class SyncScheduler {\n private readonly policy: SyncPolicy\n private readonly callbacks: SyncSchedulerCallbacks\n\n private _state: SyncSchedulerState = 'idle'\n private _lastPushAt: string | null = null\n private _lastPullAt: string | null = null\n private _lastError: Error | null = null\n private _lastPushTime = 0 // monotonic ms for minIntervalMs enforcement\n\n // Phased-pull progress. Empty for every other mode, so non-adopters carry\n // an empty Map and a null — no per-read cost, nothing to interpret.\n private readonly _readiness = new Map<string, ReadinessState>()\n private _phase: { readonly index: number; readonly total: number } | null = null\n\n // Timers\n private debounceTimer: ReturnType<typeof setTimeout> | null = null\n private pushIntervalTimer: ReturnType<typeof setInterval> | null = null\n private pullIntervalTimer: ReturnType<typeof setInterval> | null = null\n\n // Bound handlers for cleanup\n private readonly boundOnVisibilityChange: (() => void) | null = null\n private readonly boundOnBeforeExit: (() => void) | null = null\n private readonly boundOnPageHide: (() => void) | null = null\n\n private started = false\n\n constructor(policy: SyncPolicy, callbacks: SyncSchedulerCallbacks) {\n validatePullPolicy(policy.pull)\n this.policy = policy\n this.callbacks = callbacks\n\n // Pre-bind handlers\n if (this.shouldRegisterUnload()) {\n this.boundOnVisibilityChange = this.handleVisibilityChange.bind(this)\n this.boundOnPageHide = this.handlePageHide.bind(this)\n this.boundOnBeforeExit = this.handleBeforeExit.bind(this)\n }\n }\n\n /** Current scheduler status snapshot. */\n get status(): SyncSchedulerStatus {\n return {\n state: this._state,\n lastPushAt: this._lastPushAt,\n lastPullAt: this._lastPullAt,\n lastError: this._lastError,\n pendingWrites: this.callbacks.getDirtyCount(),\n // Copied, not aliased — a status snapshot must not mutate under its reader.\n readiness: new Map(this._readiness),\n phase: this._phase,\n }\n }\n\n /** Start the scheduler — registers timers, event listeners. */\n start(): void {\n if (this.started) return\n this.started = true\n\n // Push: interval mode\n if (this.policy.push.mode === 'interval' && this.policy.push.intervalMs) {\n this.pushIntervalTimer = setInterval(() => {\n void this.executePush()\n }, this.policy.push.intervalMs)\n }\n\n // Pull: interval mode\n if (this.policy.pull.mode === 'interval') {\n this.startPullInterval()\n }\n\n // Pull: phased mode — walk the sequence in order, then settle into steady\n // state. Unawaited by design: start() is synchronous and the caller\n // (vault open) must not block on a bootstrap pull.\n if (this.policy.pull.mode === 'phased') {\n const sequence = this.policy.pull.sequence ?? []\n // Every named collection is 'cold' from the moment we start, so a reader\n // that races the first phase sees \"not ready\", never a missing entry.\n for (const collection of sequence) this._readiness.set(collection, 'cold')\n void this.runSequence(sequence)\n }\n\n // Pull: on-focus mode\n if (this.policy.pull.mode === 'on-focus' && typeof document !== 'undefined') {\n document.addEventListener('visibilitychange', this.handleFocusPull)\n }\n\n // Unload hooks\n if (this.shouldRegisterUnload()) {\n if (typeof document !== 'undefined' && this.boundOnVisibilityChange) {\n document.addEventListener('visibilitychange', this.boundOnVisibilityChange)\n }\n if (typeof globalThis.addEventListener === 'function' && this.boundOnPageHide) {\n globalThis.addEventListener('pagehide', this.boundOnPageHide)\n }\n if (typeof process !== 'undefined' && this.boundOnBeforeExit) {\n process.on('beforeExit', this.boundOnBeforeExit)\n }\n }\n }\n\n /** Stop the scheduler — clears timers, removes event listeners. */\n stop(): void {\n if (!this.started) return\n this.started = false\n\n // A sequence cut mid-phase must not leave that collection 'pulling' —\n // a reader would show a skeleton that never resolves.\n for (const [collection, state] of this._readiness) {\n if (state === 'pulling') this._readiness.set(collection, 'cold')\n }\n this._phase = null\n\n if (this.debounceTimer) {\n clearTimeout(this.debounceTimer)\n this.debounceTimer = null\n }\n if (this.pushIntervalTimer) {\n clearInterval(this.pushIntervalTimer)\n this.pushIntervalTimer = null\n }\n if (this.pullIntervalTimer) {\n clearInterval(this.pullIntervalTimer)\n this.pullIntervalTimer = null\n }\n\n // Focus pull\n if (this.policy.pull.mode === 'on-focus' && typeof document !== 'undefined') {\n document.removeEventListener('visibilitychange', this.handleFocusPull)\n }\n\n // Unload hooks\n if (typeof document !== 'undefined' && this.boundOnVisibilityChange) {\n document.removeEventListener('visibilitychange', this.boundOnVisibilityChange)\n }\n if (typeof globalThis.removeEventListener === 'function' && this.boundOnPageHide) {\n globalThis.removeEventListener('pagehide', this.boundOnPageHide)\n }\n if (typeof process !== 'undefined' && this.boundOnBeforeExit) {\n process.removeListener('beforeExit', this.boundOnBeforeExit)\n }\n }\n\n /**\n * Notify the scheduler that a local write occurred.\n * For `on-change` mode: triggers immediate push (respecting minIntervalMs).\n * For `debounce` mode: resets the debounce timer.\n * For `manual` / `interval`: no-op.\n */\n notifyChange(): void {\n if (!this.started) return\n\n if (this.policy.push.mode === 'on-change') {\n void this.executePush()\n } else if (this.policy.push.mode === 'debounce') {\n this.resetDebounce()\n }\n }\n\n /** Force an immediate push, bypassing the scheduler. */\n async forcePush(): Promise<void> {\n await this.executePush()\n }\n\n /** Force an immediate pull, bypassing the scheduler. */\n async forcePull(): Promise<void> {\n await this.executePull()\n }\n\n // ─── Internal ─────────────────────────────────────────────────────\n\n /**\n * Arm the steady-state pull timer, if the policy specifies a cadence.\n * Shared by `'interval'` mode and by `'phased'` once its sequence drains.\n */\n private startPullInterval(): void {\n if (this.pullIntervalTimer || !this.policy.pull.intervalMs) return\n this.pullIntervalTimer = setInterval(() => {\n void this.executePull()\n }, this.policy.pull.intervalMs)\n }\n\n /**\n * Pull each collection in turn, then hand over to steady state.\n *\n * Strictly sequential — running phases concurrently would defeat the\n * prioritisation that is the entire point of a sequence. Each phase is an\n * ordinary scoped pull, so a phase that reports errors does not abort the\n * ones behind it; `executePull` records the failure and the walk continues.\n * `started` is re-checked between phases so `stop()` cuts a sequence short\n * instead of letting it run on against a closed vault.\n */\n private async runSequence(sequence: readonly string[]): Promise<void> {\n for (const [i, collection] of sequence.entries()) {\n if (!this.started) return\n this._readiness.set(collection, 'pulling')\n this._phase = { index: i + 1, total: sequence.length }\n\n const outcome = await this.executePull([collection])\n\n // 'live' only on a clean phase. Anything else — reported errors, a\n // role-gated skip, a throw — goes back to 'cold', because 'live' is a\n // promise that a miss from get() is a real absence.\n this._readiness.set(collection, outcome === 'complete' ? 'live' : 'cold')\n }\n this._phase = null\n if (this.started) this.startPullInterval()\n }\n\n private async executePush(): Promise<void> {\n if (this._state === 'pushing') return // already in progress\n\n // minIntervalMs enforcement\n const minInterval = this.policy.push.minIntervalMs ?? 0\n if (minInterval > 0) {\n const elapsed = Date.now() - this._lastPushTime\n if (elapsed < minInterval) {\n // Schedule for later if debounce mode\n if (this.policy.push.mode === 'debounce') {\n this.scheduleDebounce(minInterval - elapsed)\n }\n return\n }\n }\n\n // Nothing to push\n if (this.callbacks.getDirtyCount() === 0) {\n this._state = 'idle'\n return\n }\n\n this._state = 'pushing'\n try {\n await this.callbacks.push()\n this._lastPushAt = new Date().toISOString()\n this._lastPushTime = Date.now()\n this._lastError = null\n this._state = this.callbacks.getDirtyCount() > 0 ? 'pending' : 'idle'\n } catch (err) {\n this._lastError = err instanceof Error ? err : new Error(String(err))\n this._state = 'error'\n }\n }\n\n private async executePull(collections?: readonly string[]): Promise<PullPhaseOutcome> {\n if (this._state === 'pulling') return 'incomplete'\n\n const previousState = this._state\n this._state = 'pulling'\n try {\n const outcome = await this.callbacks.pull(collections)\n this._lastPullAt = new Date().toISOString()\n this._lastError = null\n this._state = previousState === 'pending' ? 'pending' : 'idle'\n return outcome ?? 'complete'\n } catch (err) {\n this._lastError = err instanceof Error ? err : new Error(String(err))\n this._state = 'error'\n return 'incomplete'\n }\n }\n\n private resetDebounce(): void {\n if (this.debounceTimer) clearTimeout(this.debounceTimer)\n const ms = this.policy.push.debounceMs ?? 30_000\n this._state = 'pending'\n this.scheduleDebounce(ms)\n }\n\n private scheduleDebounce(ms: number): void {\n if (this.debounceTimer) clearTimeout(this.debounceTimer)\n this.debounceTimer = setTimeout(() => {\n this.debounceTimer = null\n void this.executePush()\n }, ms)\n }\n\n private shouldRegisterUnload(): boolean {\n const onUnload = this.policy.push.onUnload\n if (onUnload !== undefined) return onUnload\n return this.policy.push.mode !== 'manual'\n }\n\n // ─── Event handlers ───────────────────────────────────────────────\n\n private handleVisibilityChange(): void {\n if (typeof document !== 'undefined' && document.visibilityState === 'hidden') {\n this.fireUnloadPush()\n }\n }\n\n private handlePageHide(): void {\n this.fireUnloadPush()\n }\n\n private handleBeforeExit(): void {\n this.fireUnloadPush()\n }\n\n private handleFocusPull = (): void => {\n if (typeof document !== 'undefined' && document.visibilityState === 'visible') {\n void this.executePull()\n }\n }\n\n private fireUnloadPush(): void {\n if (this.callbacks.getDirtyCount() === 0) return\n // Best-effort synchronous-ish push on unload\n void this.callbacks.push().catch(() => {})\n }\n}\n","/**\n * Strategy seam for the optional sync engine + presence service.\n * Core imports `SyncStrategy` type-only + `NO_SYNC` stub; the real\n * `SyncEngine`, `SyncTransaction`, and `PresenceHandle` constructors\n * are only reachable via `withSync()` in `./sync-active.ts`.\n *\n * Solo apps that never configure `sync` and never call\n * `collection.presence()` ship none of the ~856 LOC behind this seam\n * (`sync.ts` + `sync-transaction.ts` + `presence.ts`).\n *\n * Note: `keyring.ts` (~746 LOC) stays in core because it's required\n * for any multi-user vault — even single-owner vaults use a keyring\n * to wrap the DEK. The team package's grant/revoke/magic-link/\n * delegation modules tree-shake naturally via direct named imports.\n *\n * Behavior under NO_SYNC:\n *\n * - **buildSyncEngine** — throws. Only fires when `createNoydb({ sync })`\n * passes a remote target.\n * - **buildSyncTransaction** — throws. Only fires when `db.transaction(vault)`\n * is called on a vault with sync configured.\n * - **buildPresence** — throws. Only fires when user code calls\n * `collection.presence()`.\n *\n * @internal\n */\n\nimport type {\n NoydbStore,\n ConflictStrategy,\n SyncTargetRole,\n} from '../kernel/types.js'\nimport type { MergeAuthority } from '../port/with/merge-authority.js'\nimport type { NoydbEventEmitter } from '../kernel/events.js'\nimport type { SyncPolicy } from '../kernel/sync-policy.js'\nimport type { SyncEngine } from './engine.js'\nimport type { SyncTransaction } from './transaction.js'\nimport type { PresenceHandle, PresenceHandleOpts } from './presence.js'\nimport type { Vault } from '../kernel/vault.js'\n\n/**\n * Options accepted by `SyncStrategy.buildSyncEngine`. Mirrors the\n * `SyncEngine` constructor verbatim — kept here so core code never\n * imports the sync module at runtime.\n *\n * @internal\n */\nexport interface BuildSyncEngineOptions {\n local: NoydbStore\n remote: NoydbStore\n vault: string\n strategy: ConflictStrategy\n emitter: NoydbEventEmitter\n syncPolicy?: SyncPolicy\n role?: SyncTargetRole\n label?: string\n /** #1042 — the merge's verify/re-stamp capability, bound to the keys by the caller. */\n mergeAuthority?: MergeAuthority\n /** core#107 — this device is the vault's arbiter: its admission refusals replicate. */\n arbiter?: boolean\n}\n\n/**\n * @internal\n */\nexport interface SyncStrategy {\n buildSyncEngine(opts: BuildSyncEngineOptions): SyncEngine\n /**\n * core#75 — open-path roster bootstrap: an EMPTY local store is not a new\n * vault when a `sync-peer` already carries the roster. Runs inside keyring\n * resolution, BEFORE any engine exists; the un-opted-in stub is a no-op\n * (no sync ⇒ no target to bootstrap from).\n */\n bootstrapKeyrings(local: NoydbStore, peer: NoydbStore | undefined, vault: string): Promise<void>\n buildSyncTransaction(vault: Vault, engine: SyncEngine): SyncTransaction\n buildPresence<P>(opts: PresenceHandleOpts): PresenceHandle<P>\n}\n\nfunction notEnabled(op: string): Error {\n return new Error(\n `${op} requires the sync strategy. Import ` +\n '`{ withSync }` from \"@noy-db/hub/sync\" and pass it to ' +\n '`createNoydb({ syncStrategy: withSync() })`.',\n )\n}\n\n/**\n * No-sync stub. Every constructor throws with an actionable pointer\n * — there is no useful \"off\" mode for sync engine / presence /\n * sync-transaction; if the consumer reached one of these surfaces,\n * they intended to use it.\n *\n * @internal\n */\nexport const NO_SYNC: SyncStrategy = {\n buildSyncEngine() { throw notEnabled('SyncEngine') },\n async bootstrapKeyrings() { /* no sync ⇒ nothing to bootstrap from */ },\n buildSyncTransaction() { throw notEnabled('SyncTransaction') },\n buildPresence() { throw notEnabled('collection.presence()') },\n}\n","/**\n * core#107 — sealing and opening a replicated admission refusal.\n *\n * Lives outside `vault.ts` for the reason the kernel-surface ceiling exists:\n * the vault owns the KEY LOOKUP and stays a thin caller, the crypto lives\n * here. Shape follows `team/delegation.ts`'s token seal exactly — an AAD-bound\n * record envelope under a DEK the recipient already holds.\n *\n * The DEK is the refused record's OWN collection DEK; `port/with/rejection-courier.ts`\n * carries why, and why core#107's proposed `_sync` DEK does not exist.\n */\nimport { buildRecordAad, buildRecordEnvelope, encrypt, openEnvelopeJson } from '../capsule/index.js'\nimport type { EnclaveKey } from '../capsule/index.js'\nimport type { EncryptedEnvelope, SyncRejection } from './types.js'\n\n/** core#107 — where replicated refusals live. Reserved, declared in `reserved-mirror.ts`. */\nexport const REJECTIONS_COLLECTION = '_sync_rejections'\n\n/** `<collection>::<id>` — one live refusal per record, newer `_v` supersedes. */\nexport const rejectionKey = (collection: string, id: string): string => `${collection}::${id}`\n\nexport async function sealRejection(\n collection: string,\n id: string,\n rejection: SyncRejection,\n dek: EnclaveKey,\n version: number,\n): Promise<EncryptedEnvelope> {\n const key = rejectionKey(collection, id)\n const identity = { collection: REJECTIONS_COLLECTION, id: key, by: rejection.by, version }\n const { iv, data } = await encrypt(JSON.stringify(rejection), dek, buildRecordAad(identity))\n return buildRecordEnvelope(identity, { ts: rejection.at, iv, data })\n}\n\n/**\n * `null` when this device cannot open it. Never throws: a member who does not\n * hold the collection's DEK receives the envelope like everybody else (the\n * mirror is DEK-free and copies it unconditionally) and must skip it quietly.\n */\nexport async function openRejection(\n collection: string,\n id: string,\n envelope: EncryptedEnvelope,\n dek: EnclaveKey,\n): Promise<SyncRejection | null> {\n try {\n // `openEnvelopeJson` returns the decrypted STRING; the parse is ours.\n const plaintext = await openEnvelopeJson(\n { collection: REJECTIONS_COLLECTION, id: rejectionKey(collection, id) }, envelope, dek,\n )\n return JSON.parse(plaintext) as SyncRejection\n } catch {\n return null\n }\n}\n"],"mappings":";;;;;;;;AAgIO,IAAM,uBAAmC;AAAA,EAC9C,MAAM,EAAE,MAAM,aAAa,eAAe,GAAG,UAAU,KAAK;AAAA,EAC5D,MAAM,EAAE,MAAM,SAAS;AACzB;AAGO,IAAM,mBAA+B;AAAA,EAC1C,MAAM,EAAE,MAAM,YAAY,YAAY,KAAQ,eAAe,MAAS,UAAU,KAAK;AAAA,EACrF,MAAM,EAAE,MAAM,YAAY,YAAY,IAAO;AAC/C;AAmFA,SAAS,mBAAmB,MAAwB;AAClD,MAAI,KAAK,SAAS,UAAU;AAC1B,QAAI,KAAK,aAAa,QAAW;AAC/B,YAAM,IAAI;AAAA,QACR,yEAAyE,KAAK,IAAI;AAAA,MAEpF;AAAA,IACF;AACA;AAAA,EACF;AAEA,QAAM,EAAE,SAAS,IAAI;AACrB,MAAI,CAAC,YAAY,SAAS,WAAW,GAAG;AACtC,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,aAAW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
2
2
  SealedRecordNotEnabledError
3
- } from "./chunk-VSUQI5Q6.js";
3
+ } from "./chunk-IKPQ2GGB.js";
4
4
 
5
5
  // src/with-audit/sealed-record/strategy.ts
6
6
  var NO_SEALED_RECORD = {
@@ -18,4 +18,4 @@ var NO_SEALED_RECORD = {
18
18
  export {
19
19
  NO_SEALED_RECORD
20
20
  };
21
- //# sourceMappingURL=chunk-GRS2HIV6.js.map
21
+ //# sourceMappingURL=chunk-ADCXTW7L.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SUZKW6UR.js";
4
4
  import {
5
5
  readPath
6
- } from "./chunk-BUE7R3B5.js";
6
+ } from "./chunk-GIQJGXV7.js";
7
7
 
8
8
  // src/with-lookup/reduce/reducers.ts
9
9
  function count(opts) {
@@ -453,4 +453,4 @@ export {
453
453
  moneyPercentile,
454
454
  reducerBuilder
455
455
  };
456
- //# sourceMappingURL=chunk-BJH77UY2.js.map
456
+ //# sourceMappingURL=chunk-AGGPT4UE.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getAtPath
3
- } from "./chunk-V55JASXO.js";
3
+ } from "./chunk-PR7ILCIH.js";
4
4
  import {
5
5
  SearchNotEnabledError
6
- } from "./chunk-VSUQI5Q6.js";
6
+ } from "./chunk-IKPQ2GGB.js";
7
7
 
8
8
  // src/with-lookup/search/tokenize.ts
9
9
  var WORD = /[\p{L}\p{N}]+/gu;
@@ -421,31 +421,31 @@ function buildBlobFieldEntries(filenamesByField) {
421
421
  function withSearch() {
422
422
  return {
423
423
  async search(ctx, field, query, opts) {
424
- const { search } = await import("./collection-facade-LZIF7GWD.js");
424
+ const { search } = await import("./collection-facade-COSGZKLC.js");
425
425
  return search(ctx, field, query, opts);
426
426
  },
427
427
  async retrieve(ctx, query, opts) {
428
- const { retrieve } = await import("./collection-facade-LZIF7GWD.js");
428
+ const { retrieve } = await import("./collection-facade-COSGZKLC.js");
429
429
  return retrieve(ctx, query, opts);
430
430
  },
431
431
  async similarTo(ctx, vector, opts) {
432
- const { similarTo } = await import("./collection-facade-LZIF7GWD.js");
432
+ const { similarTo } = await import("./collection-facade-COSGZKLC.js");
433
433
  return similarTo(ctx, vector, opts);
434
434
  },
435
435
  async warmIndex(ctx) {
436
- const { warmIndex } = await import("./collection-facade-LZIF7GWD.js");
436
+ const { warmIndex } = await import("./collection-facade-COSGZKLC.js");
437
437
  return warmIndex(ctx);
438
438
  },
439
439
  async flushIndex(ctx) {
440
- const { flushIndex } = await import("./collection-facade-LZIF7GWD.js");
440
+ const { flushIndex } = await import("./collection-facade-COSGZKLC.js");
441
441
  return flushIndex(ctx);
442
442
  },
443
443
  async embedOnWrite(ctx, id, record, version) {
444
- const { embedOnWrite } = await import("./collection-facade-LZIF7GWD.js");
444
+ const { embedOnWrite } = await import("./collection-facade-COSGZKLC.js");
445
445
  return embedOnWrite(ctx, id, record, version);
446
446
  },
447
447
  async rebuildEmbeddings(ctx) {
448
- const { rebuildEmbeddings } = await import("./collection-facade-LZIF7GWD.js");
448
+ const { rebuildEmbeddings } = await import("./collection-facade-COSGZKLC.js");
449
449
  return rebuildEmbeddings(ctx);
450
450
  }
451
451
  };
@@ -492,4 +492,4 @@ export {
492
492
  buildBlobFieldEntries,
493
493
  withSearch
494
494
  };
495
- //# sourceMappingURL=chunk-TZYTMZZY.js.map
495
+ //# sourceMappingURL=chunk-AKIEBFIJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildRecordEnvelope
3
- } from "./chunk-4J3MNVVX.js";
3
+ } from "./chunk-WRLWEYHY.js";
4
4
 
5
5
  // src/with-party/policy/storage.ts
6
6
  var META_COLLECTION = "_meta";
@@ -36,4 +36,4 @@ export {
36
36
  loadVaultPolicy,
37
37
  saveVaultPolicy
38
38
  };
39
- //# sourceMappingURL=chunk-DL6BZKP3.js.map
39
+ //# sourceMappingURL=chunk-B3B6HV5S.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  signBytes,
3
3
  verifyBytes
4
- } from "./chunk-4J3MNVVX.js";
4
+ } from "./chunk-WRLWEYHY.js";
5
5
 
6
6
  // src/with-audit/attestation/scheme.ts
7
7
  var ENCLAVE_SCHEME = { sign: signBytes, verify: verifyBytes };
@@ -9,4 +9,4 @@ var ENCLAVE_SCHEME = { sign: signBytes, verify: verifyBytes };
9
9
  export {
10
10
  ENCLAVE_SCHEME
11
11
  };
12
- //# sourceMappingURL=chunk-5XONHAFD.js.map
12
+ //# sourceMappingURL=chunk-B6EWMGFX.js.map
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  walkClosure
3
- } from "./chunk-SWXLZ4HX.js";
3
+ } from "./chunk-UL6MTRMJ.js";
4
4
  import {
5
5
  resolveManagedSecret
6
- } from "./chunk-XKBTJGFP.js";
6
+ } from "./chunk-NTVKHQ3L.js";
7
7
  import {
8
8
  parseExtractedPartitionBody,
9
9
  readPod,
10
10
  readPodHeader
11
- } from "./chunk-RDOEOPOI.js";
11
+ } from "./chunk-XPW7T2GN.js";
12
12
  import {
13
13
  createOwnerKeyring,
14
14
  mintRosterTag,
15
15
  requireRosterKey,
16
16
  stampAuthority
17
- } from "./chunk-45VHWE4C.js";
17
+ } from "./chunk-V7AKGAXY.js";
18
18
  import {
19
19
  LedgerStore
20
- } from "./chunk-L2F3CFCH.js";
20
+ } from "./chunk-ONZ3B5EW.js";
21
21
  import {
22
22
  LEDGER_COLLECTION
23
23
  } from "./chunk-I7FD46FF.js";
@@ -30,18 +30,18 @@ import {
30
30
  importTransferKey,
31
31
  openEnvelopeJson,
32
32
  wrapKey
33
- } from "./chunk-4J3MNVVX.js";
33
+ } from "./chunk-WRLWEYHY.js";
34
34
  import {
35
35
  AdoptionStateError,
36
36
  TransferSealError,
37
37
  ValidationError
38
- } from "./chunk-VSUQI5Q6.js";
38
+ } from "./chunk-IKPQ2GGB.js";
39
39
 
40
40
  // src/with-cargo/active.ts
41
41
  function withCargo() {
42
42
  return {
43
43
  async extractPartition(vault, opts) {
44
- const { extractPartitionCore } = await import("./extract-partition-QII2EDCS.js");
44
+ const { extractPartitionCore } = await import("./extract-partition-33747NY5.js");
45
45
  return extractPartitionCore(vault, opts);
46
46
  }
47
47
  };
@@ -221,7 +221,7 @@ async function createOwnerOnAdoptedPartition(store, vaultName, opts) {
221
221
  const withEpoch = stampAuthority(merged, keyringFile.roster_epoch);
222
222
  const rosterKey = requireRosterKey(unlocked, "adoptPartition");
223
223
  const mergedFile = { ...withEpoch, roster_tag: await mintRosterTag(withEpoch, rosterKey) };
224
- await store.put(vaultName, "_keyring", userId, { ...env, _data: JSON.stringify(mergedFile) });
224
+ await store.put(vaultName, "_keyring", userId, { ...env, _v: env._v + 1, _data: JSON.stringify(mergedFile) }, env._v);
225
225
  }
226
226
  const ledgerDek = partitionDeks.get(LEDGER_COLLECTION);
227
227
  if (ledgerDek) {
@@ -243,7 +243,7 @@ async function createOwnerOnAdoptedPartition(store, vaultName, opts) {
243
243
  }
244
244
  }
245
245
  if (isManaged(opts)) {
246
- const { createNoydb } = await import("./noydb-F2AUF6KL.js");
246
+ const { createNoydb } = await import("./noydb-U62OVKXB.js");
247
247
  const db = await createNoydb({
248
248
  store,
249
249
  user: userId,
@@ -298,4 +298,4 @@ export {
298
298
  withCargo,
299
299
  describeExtraction
300
300
  };
301
- //# sourceMappingURL=chunk-TFWFPZRU.js.map
301
+ //# sourceMappingURL=chunk-B7Y2BRQA.js.map