@noy-db/hub 0.10.0-pre.1 → 0.10.0-pre.2

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 (482) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/dist/api-QSEKT4KS.js +15 -0
  3. package/dist/as/index.js +19 -12
  4. package/dist/as/index.js.map +1 -1
  5. package/dist/at/index.js +6 -9
  6. package/dist/attestation/index.js +16 -19
  7. package/dist/attestation/index.js.map +1 -1
  8. package/dist/{backup-6EKBNC67.js → backup-BHKVK5SD.js} +9 -12
  9. package/dist/{backup-6EKBNC67.js.map → backup-BHKVK5SD.js.map} +1 -1
  10. package/dist/blobs/index.js +10 -13
  11. package/dist/blobs/index.js.map +1 -1
  12. package/dist/broker/index.js +11 -14
  13. package/dist/broker/index.js.map +1 -1
  14. package/dist/by/index.js +2 -2
  15. package/dist/capsule/contract.d.ts +176 -16
  16. package/dist/capsule/contract.js +35 -30
  17. package/dist/capsule/enclave-aes/bound.d.ts +11 -1
  18. package/dist/capsule/enclave-aes/classify/digest.d.ts +4 -2
  19. package/dist/capsule/enclave-aes/index.d.ts +9 -0
  20. package/dist/capsule/enclave-aes/index.js +643 -78
  21. package/dist/capsule/enclave-aes/index.js.map +1 -1
  22. package/dist/capsule/enclave-aes/primitives.d.ts +2 -2
  23. package/dist/capsule/index.d.ts +1 -1
  24. package/dist/capsule/plumbing/classify-reveal.d.ts +29 -0
  25. package/dist/capsule/plumbing/classify-verify.d.ts +53 -0
  26. package/dist/capsule/plumbing/index.d.ts +17 -0
  27. package/dist/{capsule-QJJFUUSH.js → capsule-YAITMH77.js} +16 -9
  28. package/dist/cargo/index.js +34 -36
  29. package/dist/{chunk-J57OMNJ4.js → chunk-23A4SBRR.js} +3 -4
  30. package/dist/{chunk-J57OMNJ4.js.map → chunk-23A4SBRR.js.map} +1 -1
  31. package/dist/{chunk-E3CUGBGW.js → chunk-24AGG4PP.js} +3 -3
  32. package/dist/{chunk-M2VLXPRU.js → chunk-24IJZA4M.js} +14 -8
  33. package/dist/chunk-24IJZA4M.js.map +1 -0
  34. package/dist/{chunk-BCJAUHSG.js → chunk-2NVQ5SEA.js} +15 -5
  35. package/dist/chunk-2NVQ5SEA.js.map +1 -0
  36. package/dist/{chunk-MRVQKRXI.js → chunk-2SIREKBR.js} +2 -2
  37. package/dist/{chunk-CE443VXM.js → chunk-37FOG6AE.js} +14 -7
  38. package/dist/chunk-37FOG6AE.js.map +1 -0
  39. package/dist/{chunk-ZZZVNHN2.js → chunk-3M2KK7O7.js} +3 -3
  40. package/dist/{chunk-P6FATPXQ.js → chunk-3ZCVY3T6.js} +2 -2
  41. package/dist/{chunk-I7NDTNHK.js → chunk-4CGWLHPQ.js} +6 -6
  42. package/dist/{chunk-PVQIME6P.js → chunk-56Z4NOC6.js} +3 -3
  43. package/dist/{chunk-XBG6YJPK.js → chunk-5AVIUJP4.js} +11 -9
  44. package/dist/{chunk-XBG6YJPK.js.map → chunk-5AVIUJP4.js.map} +1 -1
  45. package/dist/{chunk-HQFTE3DX.js → chunk-5BGHAVBN.js} +2 -2
  46. package/dist/{chunk-QHG7GQKM.js → chunk-5JNEDW7I.js} +2 -2
  47. package/dist/{chunk-NC6CF37L.js → chunk-5OWJSDTO.js} +4 -4
  48. package/dist/{chunk-NC6CF37L.js.map → chunk-5OWJSDTO.js.map} +1 -1
  49. package/dist/{chunk-YAYDDYRU.js → chunk-5Y4MO7UQ.js} +4 -4
  50. package/dist/{chunk-TLIFNRU5.js → chunk-63LZLRWG.js} +2 -2
  51. package/dist/{chunk-BUFFPAR2.js → chunk-74W56QPY.js} +4 -4
  52. package/dist/{chunk-VPG2UJYR.js → chunk-7KNYLHVX.js} +3 -3
  53. package/dist/chunk-7KNYLHVX.js.map +1 -0
  54. package/dist/{chunk-LFUID7OW.js → chunk-7VJ2SIEI.js} +42 -22
  55. package/dist/chunk-7VJ2SIEI.js.map +1 -0
  56. package/dist/{chunk-U2N7DH4S.js → chunk-AHA7UALU.js} +4 -4
  57. package/dist/{chunk-NB2DYYZL.js → chunk-AIHBYQHF.js} +254 -118
  58. package/dist/chunk-AIHBYQHF.js.map +1 -0
  59. package/dist/{chunk-RNQ7V4LH.js → chunk-ANYX2M6P.js} +3 -3
  60. package/dist/{chunk-VFGLMRO2.js → chunk-ATKYMRBC.js} +4 -4
  61. package/dist/{chunk-7UHLO4ZN.js → chunk-B2HU55QD.js} +2 -2
  62. package/dist/{chunk-RKOXA5GZ.js → chunk-BEKMLYQ4.js} +4 -4
  63. package/dist/{chunk-AYUMAPOS.js → chunk-BPFXD4EX.js} +23 -3
  64. package/dist/chunk-BPFXD4EX.js.map +1 -0
  65. package/dist/{chunk-R4PDYYK5.js → chunk-C2NXAR3D.js} +5 -5
  66. package/dist/{chunk-XBOGGTUJ.js → chunk-CJBWJO5P.js} +6 -6
  67. package/dist/{chunk-XBOGGTUJ.js.map → chunk-CJBWJO5P.js.map} +1 -1
  68. package/dist/{chunk-44CU4N7N.js → chunk-CQLMRCKX.js} +2 -2
  69. package/dist/{chunk-VUBRHJ4H.js → chunk-CR5UPYIJ.js} +1 -1
  70. package/dist/chunk-CR5UPYIJ.js.map +1 -0
  71. package/dist/{chunk-4XXRPSPS.js → chunk-DS2JXSUA.js} +6 -6
  72. package/dist/{chunk-X6Z2SIRF.js → chunk-E2JIE4S3.js} +2 -2
  73. package/dist/{chunk-EQ6C2ZPT.js → chunk-E7Y4J4GL.js} +2 -2
  74. package/dist/{chunk-ZMDSBTFT.js → chunk-ECDM6YRX.js} +2 -2
  75. package/dist/{chunk-WRLWEYHY.js → chunk-EFINFZIF.js} +11 -1
  76. package/dist/chunk-EFINFZIF.js.map +1 -0
  77. package/dist/{chunk-JM72WDAY.js → chunk-EM56MHN5.js} +6 -6
  78. package/dist/{chunk-YWJMM2WY.js → chunk-EQXOJH6O.js} +4 -4
  79. package/dist/{chunk-ME6LY5UG.js → chunk-ET3U2C3A.js} +2 -2
  80. package/dist/{chunk-G2KLVCKO.js → chunk-EU4G7PQH.js} +2 -2
  81. package/dist/{chunk-WJXLTO43.js → chunk-EUCUYK5E.js} +10 -10
  82. package/dist/{chunk-EPMX3SCC.js → chunk-EWSIJDWO.js} +4 -4
  83. package/dist/{chunk-KFYUQMF5.js → chunk-F2FD4LSB.js} +2 -2
  84. package/dist/{chunk-L4UL4IAR.js → chunk-F7ENMZYJ.js} +2 -2
  85. package/dist/{chunk-5OG7YQX5.js → chunk-FIIVYQOW.js} +5 -5
  86. package/dist/{chunk-4RF7DVH2.js → chunk-FPK2LPLR.js} +8 -8
  87. package/dist/chunk-FPK2LPLR.js.map +1 -0
  88. package/dist/{chunk-2EF2Z4UN.js → chunk-FQEUJGBV.js} +2 -2
  89. package/dist/{chunk-UORWAG7K.js → chunk-FY4FFNKK.js} +2 -2
  90. package/dist/{chunk-WA4ZPMKP.js → chunk-GDCYZGPB.js} +2 -2
  91. package/dist/{chunk-3HDBDUX2.js → chunk-H6Q7GKLI.js} +2 -2
  92. package/dist/{chunk-654RE5YC.js → chunk-HDAPQF6Q.js} +3 -3
  93. package/dist/{chunk-B5PWQMZN.js → chunk-HRLMUZLI.js} +5 -5
  94. package/dist/{chunk-QWC2PRUR.js → chunk-HRNQYGLQ.js} +2 -2
  95. package/dist/{chunk-YIVAKBCW.js → chunk-I4S7IZSS.js} +321 -235
  96. package/dist/chunk-I4S7IZSS.js.map +1 -0
  97. package/dist/{chunk-7DWAYY45.js → chunk-IN4XZJYD.js} +4 -3
  98. package/dist/{chunk-7DWAYY45.js.map → chunk-IN4XZJYD.js.map} +1 -1
  99. package/dist/{chunk-JGYCKX56.js → chunk-ISIXU45J.js} +1 -1
  100. package/dist/{chunk-JGYCKX56.js.map → chunk-ISIXU45J.js.map} +1 -1
  101. package/dist/{chunk-7PFOKQOJ.js → chunk-J4L4AS2W.js} +2 -2
  102. package/dist/{chunk-PZZWAHEJ.js → chunk-JPSOFWJR.js} +2 -2
  103. package/dist/{chunk-B24ODIKE.js → chunk-JRCO67NG.js} +2 -2
  104. package/dist/{chunk-PNEBCVXP.js → chunk-JW3I3NNZ.js} +2 -2
  105. package/dist/{chunk-MXNYMFHE.js → chunk-JZMPSQBH.js} +4 -4
  106. package/dist/{chunk-IIQMNZXT.js → chunk-K5TVSOPQ.js} +5 -5
  107. package/dist/{chunk-ZPXCQNXJ.js → chunk-K75SL74I.js} +2 -2
  108. package/dist/{chunk-TA5VTIC4.js → chunk-KA4AAUST.js} +2 -2
  109. package/dist/chunk-KHSBMLQE.js +161 -0
  110. package/dist/chunk-KHSBMLQE.js.map +1 -0
  111. package/dist/{chunk-JWLVBYP4.js → chunk-KUGUML7H.js} +3 -3
  112. package/dist/{chunk-GWYZEPBY.js → chunk-L4J5NC2Q.js} +2 -2
  113. package/dist/{chunk-PIF3TNU2.js → chunk-LIX4QPMM.js} +2 -2
  114. package/dist/{chunk-LCY6ANV2.js → chunk-LWQFGR34.js} +3 -3
  115. package/dist/{chunk-HQPS27BT.js → chunk-MMSSHMHW.js} +2 -2
  116. package/dist/{chunk-T5EXREMW.js → chunk-N25Z6PR4.js} +6 -5
  117. package/dist/chunk-N25Z6PR4.js.map +1 -0
  118. package/dist/{chunk-ND6S2DKC.js → chunk-N5S2BCW3.js} +2 -2
  119. package/dist/{chunk-63INIVE4.js → chunk-NIZH2TYZ.js} +2 -2
  120. package/dist/{chunk-WQHEEYQA.js → chunk-NLDBQHDV.js} +2 -2
  121. package/dist/{chunk-SKSHWV3E.js → chunk-NQQ4MOPC.js} +4 -4
  122. package/dist/{chunk-B6EWMGFX.js → chunk-NUBI6PYH.js} +2 -2
  123. package/dist/{chunk-VWUSOPBF.js → chunk-NYEXUZDW.js} +4 -4
  124. package/dist/{chunk-GU6QXHPZ.js → chunk-OIBFIWVJ.js} +4 -4
  125. package/dist/chunk-OIBFIWVJ.js.map +1 -0
  126. package/dist/{chunk-PIEX7WSG.js → chunk-OOLF5FU2.js} +2 -2
  127. package/dist/{chunk-HOK5KGBO.js → chunk-OQA7UF2Q.js} +3 -3
  128. package/dist/{chunk-JMMG7UWR.js → chunk-ORJPICJI.js} +2 -2
  129. package/dist/{chunk-IF2M43G4.js → chunk-PBRD75JF.js} +2 -2
  130. package/dist/{chunk-X7Q2XL5U.js → chunk-PDCBL23X.js} +39 -17
  131. package/dist/chunk-PDCBL23X.js.map +1 -0
  132. package/dist/{chunk-PR2R57YF.js → chunk-PR36DD2X.js} +7 -7
  133. package/dist/{chunk-LFCX2JAV.js → chunk-PV4HIC4E.js} +2 -2
  134. package/dist/{chunk-SKF3DF7M.js → chunk-PZNK4HTV.js} +3 -3
  135. package/dist/{chunk-5F3KYRG6.js → chunk-QBLPLNPE.js} +3 -3
  136. package/dist/{chunk-4ZRNXWF6.js → chunk-QZXUISRF.js} +5 -5
  137. package/dist/{chunk-7Q72NTBE.js → chunk-RBXYO7MD.js} +5 -5
  138. package/dist/{chunk-S2BQV6HM.js → chunk-RIACRFWA.js} +4 -4
  139. package/dist/{chunk-DO33YCSZ.js → chunk-RL6RNDJQ.js} +8 -8
  140. package/dist/{chunk-2SPWVX6W.js → chunk-SJ2P7UXD.js} +7 -7
  141. package/dist/{chunk-26FMWFAW.js → chunk-SWXS4LV3.js} +11 -11
  142. package/dist/{chunk-J3ECXFU7.js → chunk-TOTCZFRF.js} +2 -2
  143. package/dist/{chunk-AN4GUUQM.js → chunk-TT4D52EK.js} +6 -6
  144. package/dist/{chunk-KOJHCSGS.js → chunk-U7CMJY5P.js} +10 -10
  145. package/dist/{chunk-DDR6SCG7.js → chunk-UNKTZDA2.js} +11 -11
  146. package/dist/{chunk-DDR6SCG7.js.map → chunk-UNKTZDA2.js.map} +1 -1
  147. package/dist/{chunk-WVML7HUZ.js → chunk-UXH4AKH3.js} +95 -151
  148. package/dist/chunk-UXH4AKH3.js.map +1 -0
  149. package/dist/{chunk-MKQHIYUY.js → chunk-UZVHSYIF.js} +2 -2
  150. package/dist/{chunk-FDGE56FS.js → chunk-VHKAW5OI.js} +29 -5
  151. package/dist/chunk-VHKAW5OI.js.map +1 -0
  152. package/dist/{chunk-OCSKQUNE.js → chunk-VKZ3TDET.js} +3 -3
  153. package/dist/{chunk-ESDYDGPH.js → chunk-VLZPUG5A.js} +4 -4
  154. package/dist/{chunk-PCYIDPFM.js → chunk-VSN5FLMI.js} +2 -2
  155. package/dist/{chunk-S4QDN4IQ.js → chunk-VYBBE7RN.js} +5 -5
  156. package/dist/{chunk-XBFJRCRW.js → chunk-WHK4JVKF.js} +8 -8
  157. package/dist/{chunk-CZEWEOOV.js → chunk-X4LDBALX.js} +2 -2
  158. package/dist/{chunk-YWEPWJRG.js → chunk-X67E7NIJ.js} +3 -3
  159. package/dist/{chunk-RRI3JBD6.js → chunk-XMARKBUC.js} +3 -3
  160. package/dist/{chunk-B3B6HV5S.js → chunk-XMBBTETD.js} +2 -2
  161. package/dist/{chunk-GQ4MF3CM.js → chunk-XMBTAN5E.js} +28 -14
  162. package/dist/chunk-XMBTAN5E.js.map +1 -0
  163. package/dist/{chunk-GEICXZCQ.js → chunk-XROQP6IQ.js} +4 -4
  164. package/dist/chunk-XWWDZKLS.js +196 -0
  165. package/dist/chunk-XWWDZKLS.js.map +1 -0
  166. package/dist/{chunk-VX72USUQ.js → chunk-Y2RYUWSQ.js} +10 -10
  167. package/dist/{chunk-6I5RRBPP.js → chunk-YCTSQV7K.js} +5 -5
  168. package/dist/{chunk-7WV6R7RG.js → chunk-YF7P2DG7.js} +2 -2
  169. package/dist/{chunk-ZZLIFVZG.js → chunk-ZG7DBIVX.js} +2 -2
  170. package/dist/{chunk-Y6WJJRVV.js → chunk-ZGJ775X7.js} +2 -2
  171. package/dist/{chunk-PQGCWTTI.js → chunk-ZQQLOEWN.js} +3 -3
  172. package/dist/classified/index.js +5 -5
  173. package/dist/{classified-marker-LY7KQFPH.js → classified-marker-HKMRC7SC.js} +3 -3
  174. package/dist/{reveal-LK3GX4L6.js → classify-reveal-YSJKJEIR.js} +7 -12
  175. package/dist/classify-reveal-YSJKJEIR.js.map +1 -0
  176. package/dist/{verify-FT5COLP2.js → classify-verify-ZCTKYQ43.js} +31 -41
  177. package/dist/classify-verify-ZCTKYQ43.js.map +1 -0
  178. package/dist/collection-facade-PPKNUR2J.js +38 -0
  179. package/dist/{computed-XG7LFB7A.js → computed-UCYVPMZA.js} +3 -3
  180. package/dist/consent/index.js +6 -9
  181. package/dist/consent/index.js.map +1 -1
  182. package/dist/cover/index.js +6 -9
  183. package/dist/custody/index.js +11 -13
  184. package/dist/{dead-filter-F4EKHDQY.js → dead-filter-YOBWRG4O.js} +8 -11
  185. package/dist/{dead-filter-F4EKHDQY.js.map → dead-filter-YOBWRG4O.js.map} +1 -1
  186. package/dist/debug/index.js +5 -8
  187. package/dist/debug/index.js.map +1 -1
  188. package/dist/delegation-SNALWRMO.js +24 -0
  189. package/dist/derivations/index.js +20 -23
  190. package/dist/derive-4GNU4E4I.js +17 -0
  191. package/dist/directory/index.js +7 -10
  192. package/dist/{dispatch-YNHZLB72.js → dispatch-QW32QBLW.js} +17 -20
  193. package/dist/{dispatch-YNHZLB72.js.map → dispatch-QW32QBLW.js.map} +1 -1
  194. package/dist/{dispatch-URNW4Q2T.js → dispatch-V5WLDTVX.js} +5 -5
  195. package/dist/executor-7QN22OKI.js +8 -0
  196. package/dist/executor-BJZJNVBB.js +8 -0
  197. package/dist/executor-JEAAEJUM.js +32 -0
  198. package/dist/export-accessible-TVO2KQPG.js +20 -0
  199. package/dist/extract-partition-43CLDRN4.js +33 -0
  200. package/dist/{fanout-sidecar-6CSMTIVB.js → fanout-sidecar-DDONAFJT.js} +6 -9
  201. package/dist/{fanout-sidecar-6CSMTIVB.js.map → fanout-sidecar-DDONAFJT.js.map} +1 -1
  202. package/dist/forget/index.js +6 -9
  203. package/dist/forget/index.js.map +1 -1
  204. package/dist/guards/index.js +4 -4
  205. package/dist/history/index.js +11 -14
  206. package/dist/history/index.js.map +1 -1
  207. package/dist/i18n/index.js +11 -14
  208. package/dist/i18n/index.js.map +1 -1
  209. package/dist/index.d.ts +2 -2
  210. package/dist/index.js +122 -123
  211. package/dist/index.js.map +1 -1
  212. package/dist/indexing/index.js +5 -5
  213. package/dist/introspection/index.js +8 -11
  214. package/dist/issue-EIHEDAXM.js +16 -0
  215. package/dist/kernel/capsule-requirements.d.ts +84 -0
  216. package/dist/kernel/errors.d.ts +15 -0
  217. package/dist/kernel/export-scope.d.ts +28 -1
  218. package/dist/kernel/store-segment-guard.d.ts +29 -0
  219. package/dist/kernel/types.d.ts +164 -8
  220. package/dist/kernel/validation.d.ts +32 -0
  221. package/dist/kernel/vault.d.ts +3 -3
  222. package/dist/{ledger-FV6NFTOR.js → ledger-BMVUFQ3R.js} +8 -11
  223. package/dist/liberate-7KHXCLNJ.js +23 -0
  224. package/dist/link-set-PC2EJRKL.js +26 -0
  225. package/dist/{managed-secret-PBJZHPQO.js → managed-secret-RPRVEYZA.js} +7 -10
  226. package/dist/materialized-views/index.js +23 -26
  227. package/dist/{migrate-cek-J634S4NU.js → migrate-cek-DTSCWGEF.js} +2 -2
  228. package/dist/money/index.js +5 -5
  229. package/dist/noydb-AYDNOXAX.js +98 -0
  230. package/dist/on/index.js +11 -13
  231. package/dist/overlay-views/index.js +4 -4
  232. package/dist/periods/index.js +9 -12
  233. package/dist/pod/index.js +65 -67
  234. package/dist/{pod-handle-IOEYUDCA.js → pod-handle-KBPQRN6Q.js} +6 -9
  235. package/dist/{pod-handle-IOEYUDCA.js.map → pod-handle-KBPQRN6Q.js.map} +1 -1
  236. package/dist/policy/index.js +7 -10
  237. package/dist/port/at/index.d.ts +1 -0
  238. package/dist/port/with/collection-registries.d.ts +37 -0
  239. package/dist/portability/index.js +8 -8
  240. package/dist/{post-register-L42VXYFB.js → post-register-RITSNASO.js} +6 -6
  241. package/dist/query/all/index.js +15 -15
  242. package/dist/query/index.js +7 -7
  243. package/dist/query/live/index.js +7 -7
  244. package/dist/query/reduce/index.js +10 -10
  245. package/dist/query/relate/index.js +9 -9
  246. package/dist/reduce/index.js +8 -8
  247. package/dist/register-BB34SK7E.js +27 -0
  248. package/dist/registry-65L6V5TO.js +20 -0
  249. package/dist/registry-HU62GPWA.js +32 -0
  250. package/dist/registry-SMNK6UM4.js +8 -0
  251. package/dist/registry-X5VPBKCO.js +8 -0
  252. package/dist/request-withdrawal-4SKAH46W.js +26 -0
  253. package/dist/{restore-to-ZQ2MXOFO.js → restore-to-VQHT67OH.js} +7 -10
  254. package/dist/{restore-to-ZQ2MXOFO.js.map → restore-to-VQHT67OH.js.map} +1 -1
  255. package/dist/revoke-IF5PX2JY.js +21 -0
  256. package/dist/satellites/index.js +1 -1
  257. package/dist/schema-update/index.js +2 -2
  258. package/dist/sealed-record/index.js +9 -12
  259. package/dist/sealed-record/index.js.map +1 -1
  260. package/dist/search/index.js +4 -4
  261. package/dist/{seed-XHQQF6LJ.js → seed-F2OSDZJR.js} +11 -13
  262. package/dist/{seed-XHQQF6LJ.js.map → seed-F2OSDZJR.js.map} +1 -1
  263. package/dist/sequence/index.js +6 -9
  264. package/dist/session/index.js +6 -9
  265. package/dist/session/index.js.map +1 -1
  266. package/dist/shadow/index.js +2 -2
  267. package/dist/signer-5P7IZC2K.js +20 -0
  268. package/dist/snapshots/index.js +8 -10
  269. package/dist/snapshots/index.js.map +1 -1
  270. package/dist/{stale-XY2QUSGU.js → stale-PUCZH5GJ.js} +7 -10
  271. package/dist/storage-5EGY5OYE.js +18 -0
  272. package/dist/store/index.js +1 -1
  273. package/dist/{store-coordination-provider-F7YG22D3.js → store-coordination-provider-SEQM7SHJ.js} +7 -10
  274. package/dist/{store-coordination-provider-F7YG22D3.js.map → store-coordination-provider-SEQM7SHJ.js.map} +1 -1
  275. package/dist/sync/index.js +13 -15
  276. package/dist/sync/index.js.map +1 -1
  277. package/dist/team/index.js +14 -16
  278. package/dist/tiers/index.js +8 -11
  279. package/dist/to/index.js +2 -2
  280. package/dist/transactions/index.js +3 -3
  281. package/dist/util/index.js +1 -1
  282. package/dist/vault-diff-H7LT5ZBJ.js +8 -0
  283. package/dist/vault-head/index.js +5 -8
  284. package/dist/vault-head/index.js.map +1 -1
  285. package/dist/walk-Z4N7PCZ2.js +17 -0
  286. package/dist/with-audit/portability/export-accessible.d.ts +3 -1
  287. package/dist/with-cargo/vault-diff.d.ts +28 -0
  288. package/dist/with-commit/sequence/index.d.ts +22 -0
  289. package/dist/with-party/team/keyring.d.ts +77 -0
  290. package/dist/with-party/team/managed-secret.d.ts +40 -3
  291. package/dist/with-shape/manifest/storage.d.ts +2 -2
  292. package/dist/with-shape/manifest/writer.d.ts +2 -2
  293. package/dist/with-store/store-middleware.d.ts +18 -5
  294. package/dist/withdraw-accessible-CRCIQSTL.js +23 -0
  295. package/package.json +3 -3
  296. package/dist/api-ARU35MCC.js +0 -18
  297. package/dist/capsule/enclave-aes/classify/reveal.d.ts +0 -10
  298. package/dist/capsule/enclave-aes/classify/verify.d.ts +0 -36
  299. package/dist/chunk-4RF7DVH2.js.map +0 -1
  300. package/dist/chunk-6B4X447I.js +0 -40
  301. package/dist/chunk-6B4X447I.js.map +0 -1
  302. package/dist/chunk-6Y3UJT5H.js +0 -157
  303. package/dist/chunk-6Y3UJT5H.js.map +0 -1
  304. package/dist/chunk-AYUMAPOS.js.map +0 -1
  305. package/dist/chunk-BCJAUHSG.js.map +0 -1
  306. package/dist/chunk-CE443VXM.js.map +0 -1
  307. package/dist/chunk-FDGE56FS.js.map +0 -1
  308. package/dist/chunk-GLSRKIU3.js +0 -591
  309. package/dist/chunk-GLSRKIU3.js.map +0 -1
  310. package/dist/chunk-GQ4MF3CM.js.map +0 -1
  311. package/dist/chunk-GU6QXHPZ.js.map +0 -1
  312. package/dist/chunk-LFUID7OW.js.map +0 -1
  313. package/dist/chunk-M2VLXPRU.js.map +0 -1
  314. package/dist/chunk-NB2DYYZL.js.map +0 -1
  315. package/dist/chunk-NH2UOV3B.js +0 -18
  316. package/dist/chunk-NH2UOV3B.js.map +0 -1
  317. package/dist/chunk-OJAFKGI7.js +0 -27
  318. package/dist/chunk-OJAFKGI7.js.map +0 -1
  319. package/dist/chunk-PVBKEBJU.js +0 -22
  320. package/dist/chunk-PVBKEBJU.js.map +0 -1
  321. package/dist/chunk-RQLCOSEJ.js +0 -78
  322. package/dist/chunk-RQLCOSEJ.js.map +0 -1
  323. package/dist/chunk-T5EXREMW.js.map +0 -1
  324. package/dist/chunk-VPG2UJYR.js.map +0 -1
  325. package/dist/chunk-VUBRHJ4H.js.map +0 -1
  326. package/dist/chunk-WRLWEYHY.js.map +0 -1
  327. package/dist/chunk-WVML7HUZ.js.map +0 -1
  328. package/dist/chunk-X7Q2XL5U.js.map +0 -1
  329. package/dist/chunk-YIVAKBCW.js.map +0 -1
  330. package/dist/collection-facade-SETOHJ3R.js +0 -41
  331. package/dist/delegation-JIQCMKW6.js +0 -26
  332. package/dist/derive-45KCFFOS.js +0 -20
  333. package/dist/executor-BVVZ5UHG.js +0 -8
  334. package/dist/executor-R25UN3FA.js +0 -8
  335. package/dist/executor-SIYBLT3P.js +0 -35
  336. package/dist/export-accessible-P672FZEJ.js +0 -22
  337. package/dist/extract-partition-DQ3FVL6H.js +0 -35
  338. package/dist/find-HHF2HBAC.js +0 -10
  339. package/dist/issue-NPLQHB3S.js +0 -19
  340. package/dist/liberate-A7WASOCG.js +0 -25
  341. package/dist/link-set-UMRSGMQ5.js +0 -29
  342. package/dist/noydb-V23UJKHT.js +0 -100
  343. package/dist/register-2VINJWYJ.js +0 -30
  344. package/dist/registry-3VLHDUID.js +0 -8
  345. package/dist/registry-6HVHDR3P.js +0 -35
  346. package/dist/registry-V4FQUMYP.js +0 -23
  347. package/dist/registry-Z2E6ZCPM.js +0 -8
  348. package/dist/request-withdrawal-PSIHKQP4.js +0 -28
  349. package/dist/reveal-LK3GX4L6.js.map +0 -1
  350. package/dist/revoke-2NYMID63.js +0 -24
  351. package/dist/signer-CP6XZLE3.js +0 -23
  352. package/dist/storage-QTM6JYQF.js +0 -21
  353. package/dist/vault-diff-C6WUJFNP.js +0 -8
  354. package/dist/verify-FT5COLP2.js.map +0 -1
  355. package/dist/walk-52FW6EKP.js +0 -20
  356. package/dist/withdraw-accessible-IVMKJGEN.js +0 -25
  357. package/dist/withdraw-accessible-IVMKJGEN.js.map +0 -1
  358. /package/dist/{api-ARU35MCC.js.map → api-QSEKT4KS.js.map} +0 -0
  359. /package/dist/{capsule-QJJFUUSH.js.map → capsule-YAITMH77.js.map} +0 -0
  360. /package/dist/{chunk-E3CUGBGW.js.map → chunk-24AGG4PP.js.map} +0 -0
  361. /package/dist/{chunk-MRVQKRXI.js.map → chunk-2SIREKBR.js.map} +0 -0
  362. /package/dist/{chunk-ZZZVNHN2.js.map → chunk-3M2KK7O7.js.map} +0 -0
  363. /package/dist/{chunk-P6FATPXQ.js.map → chunk-3ZCVY3T6.js.map} +0 -0
  364. /package/dist/{chunk-I7NDTNHK.js.map → chunk-4CGWLHPQ.js.map} +0 -0
  365. /package/dist/{chunk-PVQIME6P.js.map → chunk-56Z4NOC6.js.map} +0 -0
  366. /package/dist/{chunk-HQFTE3DX.js.map → chunk-5BGHAVBN.js.map} +0 -0
  367. /package/dist/{chunk-QHG7GQKM.js.map → chunk-5JNEDW7I.js.map} +0 -0
  368. /package/dist/{chunk-YAYDDYRU.js.map → chunk-5Y4MO7UQ.js.map} +0 -0
  369. /package/dist/{chunk-TLIFNRU5.js.map → chunk-63LZLRWG.js.map} +0 -0
  370. /package/dist/{chunk-BUFFPAR2.js.map → chunk-74W56QPY.js.map} +0 -0
  371. /package/dist/{chunk-U2N7DH4S.js.map → chunk-AHA7UALU.js.map} +0 -0
  372. /package/dist/{chunk-RNQ7V4LH.js.map → chunk-ANYX2M6P.js.map} +0 -0
  373. /package/dist/{chunk-VFGLMRO2.js.map → chunk-ATKYMRBC.js.map} +0 -0
  374. /package/dist/{chunk-7UHLO4ZN.js.map → chunk-B2HU55QD.js.map} +0 -0
  375. /package/dist/{chunk-RKOXA5GZ.js.map → chunk-BEKMLYQ4.js.map} +0 -0
  376. /package/dist/{chunk-R4PDYYK5.js.map → chunk-C2NXAR3D.js.map} +0 -0
  377. /package/dist/{chunk-44CU4N7N.js.map → chunk-CQLMRCKX.js.map} +0 -0
  378. /package/dist/{chunk-4XXRPSPS.js.map → chunk-DS2JXSUA.js.map} +0 -0
  379. /package/dist/{chunk-X6Z2SIRF.js.map → chunk-E2JIE4S3.js.map} +0 -0
  380. /package/dist/{chunk-EQ6C2ZPT.js.map → chunk-E7Y4J4GL.js.map} +0 -0
  381. /package/dist/{chunk-ZMDSBTFT.js.map → chunk-ECDM6YRX.js.map} +0 -0
  382. /package/dist/{chunk-JM72WDAY.js.map → chunk-EM56MHN5.js.map} +0 -0
  383. /package/dist/{chunk-YWJMM2WY.js.map → chunk-EQXOJH6O.js.map} +0 -0
  384. /package/dist/{chunk-ME6LY5UG.js.map → chunk-ET3U2C3A.js.map} +0 -0
  385. /package/dist/{chunk-G2KLVCKO.js.map → chunk-EU4G7PQH.js.map} +0 -0
  386. /package/dist/{chunk-WJXLTO43.js.map → chunk-EUCUYK5E.js.map} +0 -0
  387. /package/dist/{chunk-EPMX3SCC.js.map → chunk-EWSIJDWO.js.map} +0 -0
  388. /package/dist/{chunk-KFYUQMF5.js.map → chunk-F2FD4LSB.js.map} +0 -0
  389. /package/dist/{chunk-L4UL4IAR.js.map → chunk-F7ENMZYJ.js.map} +0 -0
  390. /package/dist/{chunk-5OG7YQX5.js.map → chunk-FIIVYQOW.js.map} +0 -0
  391. /package/dist/{chunk-2EF2Z4UN.js.map → chunk-FQEUJGBV.js.map} +0 -0
  392. /package/dist/{chunk-UORWAG7K.js.map → chunk-FY4FFNKK.js.map} +0 -0
  393. /package/dist/{chunk-WA4ZPMKP.js.map → chunk-GDCYZGPB.js.map} +0 -0
  394. /package/dist/{chunk-3HDBDUX2.js.map → chunk-H6Q7GKLI.js.map} +0 -0
  395. /package/dist/{chunk-654RE5YC.js.map → chunk-HDAPQF6Q.js.map} +0 -0
  396. /package/dist/{chunk-B5PWQMZN.js.map → chunk-HRLMUZLI.js.map} +0 -0
  397. /package/dist/{chunk-QWC2PRUR.js.map → chunk-HRNQYGLQ.js.map} +0 -0
  398. /package/dist/{chunk-7PFOKQOJ.js.map → chunk-J4L4AS2W.js.map} +0 -0
  399. /package/dist/{chunk-PZZWAHEJ.js.map → chunk-JPSOFWJR.js.map} +0 -0
  400. /package/dist/{chunk-B24ODIKE.js.map → chunk-JRCO67NG.js.map} +0 -0
  401. /package/dist/{chunk-PNEBCVXP.js.map → chunk-JW3I3NNZ.js.map} +0 -0
  402. /package/dist/{chunk-MXNYMFHE.js.map → chunk-JZMPSQBH.js.map} +0 -0
  403. /package/dist/{chunk-IIQMNZXT.js.map → chunk-K5TVSOPQ.js.map} +0 -0
  404. /package/dist/{chunk-ZPXCQNXJ.js.map → chunk-K75SL74I.js.map} +0 -0
  405. /package/dist/{chunk-TA5VTIC4.js.map → chunk-KA4AAUST.js.map} +0 -0
  406. /package/dist/{chunk-JWLVBYP4.js.map → chunk-KUGUML7H.js.map} +0 -0
  407. /package/dist/{chunk-GWYZEPBY.js.map → chunk-L4J5NC2Q.js.map} +0 -0
  408. /package/dist/{chunk-PIF3TNU2.js.map → chunk-LIX4QPMM.js.map} +0 -0
  409. /package/dist/{chunk-LCY6ANV2.js.map → chunk-LWQFGR34.js.map} +0 -0
  410. /package/dist/{chunk-HQPS27BT.js.map → chunk-MMSSHMHW.js.map} +0 -0
  411. /package/dist/{chunk-ND6S2DKC.js.map → chunk-N5S2BCW3.js.map} +0 -0
  412. /package/dist/{chunk-63INIVE4.js.map → chunk-NIZH2TYZ.js.map} +0 -0
  413. /package/dist/{chunk-WQHEEYQA.js.map → chunk-NLDBQHDV.js.map} +0 -0
  414. /package/dist/{chunk-SKSHWV3E.js.map → chunk-NQQ4MOPC.js.map} +0 -0
  415. /package/dist/{chunk-B6EWMGFX.js.map → chunk-NUBI6PYH.js.map} +0 -0
  416. /package/dist/{chunk-VWUSOPBF.js.map → chunk-NYEXUZDW.js.map} +0 -0
  417. /package/dist/{chunk-PIEX7WSG.js.map → chunk-OOLF5FU2.js.map} +0 -0
  418. /package/dist/{chunk-HOK5KGBO.js.map → chunk-OQA7UF2Q.js.map} +0 -0
  419. /package/dist/{chunk-JMMG7UWR.js.map → chunk-ORJPICJI.js.map} +0 -0
  420. /package/dist/{chunk-IF2M43G4.js.map → chunk-PBRD75JF.js.map} +0 -0
  421. /package/dist/{chunk-PR2R57YF.js.map → chunk-PR36DD2X.js.map} +0 -0
  422. /package/dist/{chunk-LFCX2JAV.js.map → chunk-PV4HIC4E.js.map} +0 -0
  423. /package/dist/{chunk-SKF3DF7M.js.map → chunk-PZNK4HTV.js.map} +0 -0
  424. /package/dist/{chunk-5F3KYRG6.js.map → chunk-QBLPLNPE.js.map} +0 -0
  425. /package/dist/{chunk-4ZRNXWF6.js.map → chunk-QZXUISRF.js.map} +0 -0
  426. /package/dist/{chunk-7Q72NTBE.js.map → chunk-RBXYO7MD.js.map} +0 -0
  427. /package/dist/{chunk-S2BQV6HM.js.map → chunk-RIACRFWA.js.map} +0 -0
  428. /package/dist/{chunk-DO33YCSZ.js.map → chunk-RL6RNDJQ.js.map} +0 -0
  429. /package/dist/{chunk-2SPWVX6W.js.map → chunk-SJ2P7UXD.js.map} +0 -0
  430. /package/dist/{chunk-26FMWFAW.js.map → chunk-SWXS4LV3.js.map} +0 -0
  431. /package/dist/{chunk-J3ECXFU7.js.map → chunk-TOTCZFRF.js.map} +0 -0
  432. /package/dist/{chunk-AN4GUUQM.js.map → chunk-TT4D52EK.js.map} +0 -0
  433. /package/dist/{chunk-KOJHCSGS.js.map → chunk-U7CMJY5P.js.map} +0 -0
  434. /package/dist/{chunk-MKQHIYUY.js.map → chunk-UZVHSYIF.js.map} +0 -0
  435. /package/dist/{chunk-OCSKQUNE.js.map → chunk-VKZ3TDET.js.map} +0 -0
  436. /package/dist/{chunk-ESDYDGPH.js.map → chunk-VLZPUG5A.js.map} +0 -0
  437. /package/dist/{chunk-PCYIDPFM.js.map → chunk-VSN5FLMI.js.map} +0 -0
  438. /package/dist/{chunk-S4QDN4IQ.js.map → chunk-VYBBE7RN.js.map} +0 -0
  439. /package/dist/{chunk-XBFJRCRW.js.map → chunk-WHK4JVKF.js.map} +0 -0
  440. /package/dist/{chunk-CZEWEOOV.js.map → chunk-X4LDBALX.js.map} +0 -0
  441. /package/dist/{chunk-YWEPWJRG.js.map → chunk-X67E7NIJ.js.map} +0 -0
  442. /package/dist/{chunk-RRI3JBD6.js.map → chunk-XMARKBUC.js.map} +0 -0
  443. /package/dist/{chunk-B3B6HV5S.js.map → chunk-XMBBTETD.js.map} +0 -0
  444. /package/dist/{chunk-GEICXZCQ.js.map → chunk-XROQP6IQ.js.map} +0 -0
  445. /package/dist/{chunk-VX72USUQ.js.map → chunk-Y2RYUWSQ.js.map} +0 -0
  446. /package/dist/{chunk-6I5RRBPP.js.map → chunk-YCTSQV7K.js.map} +0 -0
  447. /package/dist/{chunk-7WV6R7RG.js.map → chunk-YF7P2DG7.js.map} +0 -0
  448. /package/dist/{chunk-ZZLIFVZG.js.map → chunk-ZG7DBIVX.js.map} +0 -0
  449. /package/dist/{chunk-Y6WJJRVV.js.map → chunk-ZGJ775X7.js.map} +0 -0
  450. /package/dist/{chunk-PQGCWTTI.js.map → chunk-ZQQLOEWN.js.map} +0 -0
  451. /package/dist/{classified-marker-LY7KQFPH.js.map → classified-marker-HKMRC7SC.js.map} +0 -0
  452. /package/dist/{collection-facade-SETOHJ3R.js.map → collection-facade-PPKNUR2J.js.map} +0 -0
  453. /package/dist/{computed-XG7LFB7A.js.map → computed-UCYVPMZA.js.map} +0 -0
  454. /package/dist/{delegation-JIQCMKW6.js.map → delegation-SNALWRMO.js.map} +0 -0
  455. /package/dist/{derive-45KCFFOS.js.map → derive-4GNU4E4I.js.map} +0 -0
  456. /package/dist/{dispatch-URNW4Q2T.js.map → dispatch-V5WLDTVX.js.map} +0 -0
  457. /package/dist/{executor-BVVZ5UHG.js.map → executor-7QN22OKI.js.map} +0 -0
  458. /package/dist/{executor-R25UN3FA.js.map → executor-BJZJNVBB.js.map} +0 -0
  459. /package/dist/{executor-SIYBLT3P.js.map → executor-JEAAEJUM.js.map} +0 -0
  460. /package/dist/{export-accessible-P672FZEJ.js.map → export-accessible-TVO2KQPG.js.map} +0 -0
  461. /package/dist/{extract-partition-DQ3FVL6H.js.map → extract-partition-43CLDRN4.js.map} +0 -0
  462. /package/dist/{find-HHF2HBAC.js.map → issue-EIHEDAXM.js.map} +0 -0
  463. /package/dist/{issue-NPLQHB3S.js.map → ledger-BMVUFQ3R.js.map} +0 -0
  464. /package/dist/{ledger-FV6NFTOR.js.map → liberate-7KHXCLNJ.js.map} +0 -0
  465. /package/dist/{liberate-A7WASOCG.js.map → link-set-PC2EJRKL.js.map} +0 -0
  466. /package/dist/{link-set-UMRSGMQ5.js.map → managed-secret-RPRVEYZA.js.map} +0 -0
  467. /package/dist/{migrate-cek-J634S4NU.js.map → migrate-cek-DTSCWGEF.js.map} +0 -0
  468. /package/dist/{managed-secret-PBJZHPQO.js.map → noydb-AYDNOXAX.js.map} +0 -0
  469. /package/dist/{post-register-L42VXYFB.js.map → post-register-RITSNASO.js.map} +0 -0
  470. /package/dist/{noydb-V23UJKHT.js.map → register-BB34SK7E.js.map} +0 -0
  471. /package/dist/{register-2VINJWYJ.js.map → registry-65L6V5TO.js.map} +0 -0
  472. /package/dist/{registry-3VLHDUID.js.map → registry-HU62GPWA.js.map} +0 -0
  473. /package/dist/{registry-6HVHDR3P.js.map → registry-SMNK6UM4.js.map} +0 -0
  474. /package/dist/{registry-V4FQUMYP.js.map → registry-X5VPBKCO.js.map} +0 -0
  475. /package/dist/{registry-Z2E6ZCPM.js.map → request-withdrawal-4SKAH46W.js.map} +0 -0
  476. /package/dist/{request-withdrawal-PSIHKQP4.js.map → revoke-IF5PX2JY.js.map} +0 -0
  477. /package/dist/{revoke-2NYMID63.js.map → signer-5P7IZC2K.js.map} +0 -0
  478. /package/dist/{signer-CP6XZLE3.js.map → stale-PUCZH5GJ.js.map} +0 -0
  479. /package/dist/{stale-XY2QUSGU.js.map → storage-5EGY5OYE.js.map} +0 -0
  480. /package/dist/{storage-QTM6JYQF.js.map → vault-diff-H7LT5ZBJ.js.map} +0 -0
  481. /package/dist/{vault-diff-C6WUJFNP.js.map → walk-Z4N7PCZ2.js.map} +0 -0
  482. /package/dist/{walk-52FW6EKP.js.map → withdraw-accessible-CRCIQSTL.js.map} +0 -0
@@ -8,17 +8,22 @@ async function diffVault(vault, candidate, options = {}) {
8
8
  const filter = options.collections ? new Set(options.collections) : null;
9
9
  const compareFn = options.compareFn ?? ((a, b) => diff(a, b).length === 0);
10
10
  const live = /* @__PURE__ */ new Map();
11
+ const skipped = [];
12
+ const byHubId = isVaultCandidate(candidate);
11
13
  for await (const chunk of vault.exportStream({ granularity: "collection" })) {
12
14
  if (filter && !filter.has(chunk.collection)) continue;
13
15
  const collection = live.get(chunk.collection) ?? /* @__PURE__ */ new Map();
14
- for (const record of chunk.records) {
15
- const id = readIdField(record, idKey);
16
- if (!id) continue;
16
+ chunk.records.forEach((record, i) => {
17
+ const id = byHubId ? chunk.ids?.[i] ?? "" : readIdField(record, idKey);
18
+ if (!id) {
19
+ skipped.push({ collection: chunk.collection, side: "vault", index: i });
20
+ return;
21
+ }
17
22
  collection.set(id, record);
18
- }
23
+ });
19
24
  live.set(chunk.collection, collection);
20
25
  }
21
- const cand = await normaliseCandidate(candidate, idKey, filter);
26
+ const cand = await normaliseCandidate(candidate, idKey, filter, byHubId, skipped);
22
27
  const added = [];
23
28
  const modified = [];
24
29
  const deleted = [];
@@ -60,30 +65,38 @@ async function diffVault(vault, candidate, options = {}) {
60
65
  add: added.length,
61
66
  modify: modified.length,
62
67
  delete: deleted.length,
63
- total: added.length + modified.length + deleted.length
68
+ total: added.length + modified.length + deleted.length,
69
+ skipped: skipped.length
64
70
  };
65
71
  return {
66
72
  added,
67
73
  modified,
68
74
  deleted,
69
75
  unchanged,
76
+ skipped,
70
77
  summary,
71
78
  format(opts) {
72
79
  return formatDiff(opts?.detail ?? "full", { added, modified, deleted, summary });
73
80
  }
74
81
  };
75
82
  }
76
- async function normaliseCandidate(candidate, idKey, filter) {
83
+ function isVaultCandidate(candidate) {
84
+ return typeof candidate === "object" && candidate !== null && "exportStream" in candidate && typeof candidate.exportStream === "function";
85
+ }
86
+ async function normaliseCandidate(candidate, idKey, filter, byHubId, skipped) {
77
87
  const out = /* @__PURE__ */ new Map();
78
- if (typeof candidate === "object" && candidate !== null && "exportStream" in candidate && typeof candidate.exportStream === "function") {
88
+ if (byHubId) {
79
89
  for await (const chunk of candidate.exportStream({ granularity: "collection" })) {
80
90
  if (filter && !filter.has(chunk.collection)) continue;
81
91
  const collection = out.get(chunk.collection) ?? /* @__PURE__ */ new Map();
82
- for (const record of chunk.records) {
83
- const id = readIdField(record, idKey);
84
- if (!id) continue;
92
+ chunk.records.forEach((record, i) => {
93
+ const id = chunk.ids?.[i] ?? "";
94
+ if (!id) {
95
+ skipped.push({ collection: chunk.collection, side: "candidate", index: i });
96
+ return;
97
+ }
85
98
  collection.set(id, record);
86
- }
99
+ });
87
100
  out.set(chunk.collection, collection);
88
101
  }
89
102
  return out;
@@ -97,11 +110,11 @@ async function normaliseCandidate(candidate, idKey, filter) {
97
110
  `diffVault: candidate string is not valid JSON (${err.message})`
98
111
  );
99
112
  }
100
- return collectionsFromObject(parsed, idKey, filter);
113
+ return collectionsFromObject(parsed, idKey, filter, skipped);
101
114
  }
102
- return collectionsFromObject(candidate, idKey, filter);
115
+ return collectionsFromObject(candidate, idKey, filter, skipped);
103
116
  }
104
- function collectionsFromObject(raw, idKey, filter) {
117
+ function collectionsFromObject(raw, idKey, filter, skipped) {
105
118
  const out = /* @__PURE__ */ new Map();
106
119
  if (raw === null || typeof raw !== "object") {
107
120
  throw new Error("diffVault: candidate must be a Vault, an object, or a JSON string");
@@ -111,12 +124,18 @@ function collectionsFromObject(raw, idKey, filter) {
111
124
  if (filter && !filter.has(key)) continue;
112
125
  if (!Array.isArray(value)) continue;
113
126
  const collection = /* @__PURE__ */ new Map();
114
- for (const record of value) {
115
- if (record === null || typeof record !== "object") continue;
127
+ value.forEach((record, i) => {
128
+ if (record === null || typeof record !== "object") {
129
+ skipped.push({ collection: key, side: "candidate", index: i });
130
+ return;
131
+ }
116
132
  const id = readIdField(record, idKey);
117
- if (!id) continue;
133
+ if (!id) {
134
+ skipped.push({ collection: key, side: "candidate", index: i });
135
+ return;
136
+ }
118
137
  collection.set(id, record);
119
- }
138
+ });
120
139
  out.set(key, collection);
121
140
  }
122
141
  return out;
@@ -137,9 +156,10 @@ function readIdField(record, idKey) {
137
156
  return "";
138
157
  }
139
158
  function formatDiff(detail, b) {
140
- const head = `${b.summary.add} added \xB7 ${b.summary.modify} modified \xB7 ${b.summary.delete} deleted`;
159
+ const skipNote = b.summary.skipped > 0 ? ` \xB7 ${b.summary.skipped} SKIPPED (unkeyable)` : "";
160
+ const head = `${b.summary.add} added \xB7 ${b.summary.modify} modified \xB7 ${b.summary.delete} deleted${skipNote}`;
141
161
  if (detail === "count") return head;
142
- if (b.summary.total === 0) return head + "\n(no changes)";
162
+ if (b.summary.total === 0) return head + (b.summary.skipped > 0 ? "" : "\n(no changes)");
143
163
  if (detail === "one-line") return head;
144
164
  const rows = [head, ""];
145
165
  for (const e of b.added) rows.push(`${e.collection}/${e.id} added`);
@@ -160,4 +180,4 @@ function shortJSON(value) {
160
180
  export {
161
181
  diffVault
162
182
  };
163
- //# sourceMappingURL=chunk-LFUID7OW.js.map
183
+ //# sourceMappingURL=chunk-7VJ2SIEI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/with-cargo/vault-diff.ts"],"sourcesContent":["/**\n * Vault-level diff orchestrator.\n *\n * Compares a live `Vault`'s plaintext state against a candidate state\n * (another vault, a plain `{ collection: records[] }` map, or a vault\n * dump JSON) and returns a structured `VaultDiff` plan listing the\n * records that would be added, modified, or deleted to bring the live\n * vault into the candidate's shape.\n *\n * Builds on two existing record-level helpers:\n *\n * 1. `diff(a, b)` from `./history/diff.ts` — emits dot-pathed\n * `DiffEntry[]` with `type: 'added' | 'removed' | 'changed'` for\n * each changed field of two records. Used here for the\n * `fieldDiffs` of every `modified` entry, and (with empty result)\n * as the default deep-equal check.\n *\n * 2. `Vault.exportStream()` from `./vault.ts` — the canonical\n * decrypt-and-stream-records iterator. Used to walk both sides\n * when the candidate is itself a `Vault`. ACL-scoped: collections\n * the caller can't read silently drop out, the same way every\n * other plaintext-emitting export pipeline filters them.\n *\n * The new orchestration is the **vault-level** enumeration: bucket\n * each record id into added (only in candidate), deleted (only in\n * vault), or modified (in both with field changes); leave the\n * field-level granularity to the existing `diff()`.\n *\n * Use cases:\n *\n * - Import preview (`@noy-db/as-*` `fromString` returns a plan\n * whose body is a `VaultDiff`).\n * - Backup verification (\"does this `.noydb` bundle from yesterday\n * match the current vault?\").\n * - Two-vault reconciliation (\"what's different between Office A\n * and Office B before we sync?\").\n * - Test assertions (golden-file testing with one-liner\n * `expect(plan.summary).toEqual(...)`).\n *\n * @module\n */\n\nimport type { Vault } from '../kernel/vault.js'\nimport { diff as fieldDiff, type DiffEntry as FieldDiffEntry } from '../with-commit/history/diff.js'\n\n// ─── Public types ──────────────────────────────────────────────────────\n\n/** Per-record entry shape — added and deleted records carry only the record value. */\nexport interface VaultDiffEntry<T = unknown> {\n readonly collection: string\n readonly id: string\n readonly record: T\n /**\n * Unencrypted envelope metadata for the RECEIVER-side record.\n * Populated only when `diffVault` is called with `{includeMetadata: true}`.\n * Default: `undefined` (zero extra reads, no behavior change).\n *\n * Populated for `modified` (the CURRENT receiver state, before the candidate\n * is applied) and `deleted` (the receiver envelope of the record being\n * removed). `added` entries have no receiver envelope at diff time, so their\n * `metadata` is always absent.\n */\n readonly metadata?: {\n readonly version: number\n readonly timestamp: string\n readonly by?: string\n readonly source?: string\n readonly sourceTs?: string\n }\n}\n\n/** Modified records carry both halves of the diff plus the field-level breakdown. */\nexport interface VaultDiffModifiedEntry<T = unknown> extends VaultDiffEntry<T> {\n /** The record as it stands in the live vault. */\n readonly before: T\n /** Top-level keys whose values differ between `before` and `record`. */\n readonly fieldsChanged: readonly string[]\n /**\n * Field-level diff entries from `diff(before, record)`. Reuses the\n * existing per-record diff helper so consumers can render git-style\n * `path: from → to` rows without re-walking the records.\n */\n readonly fieldDiffs: readonly FieldDiffEntry[]\n}\n\nexport interface VaultDiff<T = unknown> {\n readonly added: readonly VaultDiffEntry<T>[]\n readonly modified: readonly VaultDiffModifiedEntry<T>[]\n readonly deleted: readonly VaultDiffEntry<T>[]\n /** Only populated when `options.includeUnchanged: true`. */\n readonly unchanged: readonly VaultDiffEntry<T>[] | undefined\n readonly summary: {\n readonly add: number\n readonly modify: number\n readonly delete: number\n readonly total: number\n /** family#151 — `skipped.length`, so a caller reading only the summary sees it. */\n readonly skipped: number\n }\n /**\n * Records this diff could not key, and therefore says nothing about\n * (family#151). Empty for a vault-to-vault diff. ⚠️ A non-empty value means\n * the diff is INCOMPLETE — an importer walking only the buckets will not\n * write these rows, which used to happen silently.\n */\n readonly skipped: readonly VaultDiffSkipped[]\n /**\n * Format the diff as a human-readable string.\n *\n * - `'count'` — one line, just the numbers (`12 added · 3 modified · 0 deleted`)\n * - `'one-line'` — count plus a single overview line\n * - `'full'` — count + one row per added/modified/deleted record (default)\n */\n format(opts?: { detail?: 'count' | 'one-line' | 'full' }): string\n}\n\nexport interface DiffOptions {\n /** Restrict the diff to a subset of collections. */\n readonly collections?: readonly string[]\n /** Field on each record that carries its id. Defaults to `'id'`. */\n readonly idKey?: string\n /** Override the default deep-equal check for \"modified vs unchanged\". */\n readonly compareFn?: (a: unknown, b: unknown) => boolean\n /** If true, include unchanged records in the diff (off by default to save memory). */\n readonly includeUnchanged?: boolean\n /**\n * When `true`, each entry in `added`, `modified`, and `deleted` will carry a\n * `metadata` field with the RECEIVER-side envelope metadata\n * (`version`, `timestamp`, `by?`, `source?`, `sourceTs?`).\n *\n * Off by default — no extra adapter reads, no behavior change for existing callers.\n */\n readonly includeMetadata?: boolean\n}\n\n/**\n * Candidate state to diff the vault against:\n *\n * - A `Vault` instance — both sides are walked via `exportStream()`.\n * - A `Record<collection, records[]>` map — same shape `as-json.toObject()`\n * produces. Useful for diffing parsed file content against the live vault.\n * - A `VaultDump` (output of `vault.dump()`) — a JSON string carrying the\n * full vault state. Parsed and reduced to the map shape above.\n */\n/**\n * A record neither side could key, and therefore one this diff does NOT report\n * on (family#151).\n *\n * ⛔ IT EXISTS BECAUSE THE SKIP WAS SILENT. A record with no `idKey` field was\n * dropped from the map on both sides, so it appeared in no bucket — and\n * `@noy-db/hub/as`'s `plan().apply()` walks only `added`/`modified`/`deleted`.\n * An import therefore did not write it, with no error and no count. A diff that\n * omits a record is reporting a difference it did not find.\n *\n * ⚠️ Only reachable on the object/string candidate path. A vault-to-vault diff\n * keys both sides by the hub id, which every record has.\n */\nexport interface VaultDiffSkipped {\n readonly collection: string\n readonly side: 'vault' | 'candidate'\n /** Position within that side's record list for the collection. */\n readonly index: number\n}\n\nexport type DiffCandidate<T = unknown> =\n | Vault\n | Record<string, readonly T[]>\n | string\n\n// ─── Implementation ────────────────────────────────────────────────────\n\n/**\n * Compute the diff between a live vault and a candidate state.\n *\n * Ungated shared import/merge infrastructure: the `as-*` exporters call this\n * internally from their `fromString`/import merge logic, so it is always\n * available (not behind `withCargo()`). Only `extractPartition` is a gated\n * cargo capability.\n *\n * Returns a fully buffered `VaultDiff` — no streaming. Memory cost is\n * O(n + m) in the row count of vault + candidate. For documented\n * 1K-50K-record vaults this is fine; a streaming variant lands as a\n * follow-up if a > 100K-record consumer arrives.\n */\nexport async function diffVault<T = unknown>(\n vault: Vault,\n candidate: DiffCandidate<T>,\n options: DiffOptions = {},\n): Promise<VaultDiff<T>> {\n const idKey = options.idKey ?? 'id'\n const filter = options.collections ? new Set(options.collections) : null\n const compareFn =\n options.compareFn ?? ((a: unknown, b: unknown) => fieldDiff(a, b).length === 0)\n\n // Side A — walk the live vault via exportStream(). Each chunk arrives\n // already decrypted and ACL-scoped, so collections the caller can't\n // read silently drop out. exportStream's records are typed `unknown[]`\n // — diffVault is the type-erasure boundary; the caller asserts the\n // record shape via the function's `<T>` generic.\n const live = new Map<string, Map<string, T>>()\n const skipped: VaultDiffSkipped[] = []\n // ⭐ family#151 — key by the HUB ID when the candidate can supply one too.\n // A record need not carry an `id` field: hub's id is the store key, not a\n // property of the plaintext. Keying both sides on a FIELD meant every id-less\n // record was dropped from BOTH maps by the `continue` below — so it landed in\n // no bucket, and `as`'s `apply()` walks only the buckets. An import silently\n // did not write it: no error, no count, nothing.\n //\n // ⛔ ONLY WHEN BOTH SIDES CAN. A `Record<collection, records[]>` or a\n // `dump()` string carries no hub ids at all, so keying the live side by hub\n // id against a field-keyed candidate would mismatch EVERY record and report\n // the whole vault added-and-deleted. That asymmetry is the real blocker for\n // round-tripping an id-less record through `/as`, and it is a format question\n // (`exportVaultJSON` emits `records: [...]`, dropping the id), not one\n // `diffVault` can answer. Reported, not papered over.\n const byHubId = isVaultCandidate(candidate)\n for await (const chunk of vault.exportStream({ granularity: 'collection' })) {\n if (filter && !filter.has(chunk.collection)) continue\n const collection = live.get(chunk.collection) ?? new Map<string, T>()\n chunk.records.forEach((record, i) => {\n const id = byHubId ? (chunk.ids?.[i] ?? '') : readIdField(record, idKey)\n if (!id) {\n skipped.push({ collection: chunk.collection, side: 'vault', index: i })\n return\n }\n collection.set(id, record as T)\n })\n live.set(chunk.collection, collection)\n }\n\n // Side B — normalise the candidate into the same shape.\n const cand = await normaliseCandidate<T>(candidate, idKey, filter, byHubId, skipped)\n\n // Walk every (collection, id) on either side and bucket.\n const added: VaultDiffEntry<T>[] = []\n const modified: VaultDiffModifiedEntry<T>[] = []\n const deleted: VaultDiffEntry<T>[] = []\n const unchanged: VaultDiffEntry<T>[] | undefined = options.includeUnchanged ? [] : undefined\n\n const collectionNames = new Set([...live.keys(), ...cand.keys()])\n for (const collection of [...collectionNames].sort()) {\n const liveColl = live.get(collection) ?? new Map<string, T>()\n const candColl = cand.get(collection) ?? new Map<string, T>()\n const allIds = new Set([...liveColl.keys(), ...candColl.keys()])\n\n for (const id of [...allIds].sort()) {\n const before = liveColl.get(id)\n const after = candColl.get(id)\n\n if (before === undefined && after !== undefined) {\n // added: record only in candidate — no receiver envelope\n added.push({ collection, id, record: after })\n } else if (before !== undefined && after === undefined) {\n // deleted: record only in receiver — attach metadata if requested\n const metadata = options.includeMetadata\n ? (await vault.collection(collection).getMetadata(id)) ?? undefined\n : undefined\n deleted.push({ collection, id, record: before, ...(metadata !== undefined ? { metadata } : {}) })\n } else if (before !== undefined && after !== undefined) {\n if (compareFn(before, after)) {\n unchanged?.push({ collection, id, record: after })\n } else {\n // modified: record in both — attach receiver-side metadata if requested\n const metadata = options.includeMetadata\n ? (await vault.collection(collection).getMetadata(id)) ?? undefined\n : undefined\n const fieldDiffs = fieldDiff(before, after)\n const fieldsChanged = uniqueTopLevelKeys(fieldDiffs)\n modified.push({\n collection,\n id,\n record: after,\n before,\n fieldsChanged,\n fieldDiffs,\n ...(metadata !== undefined ? { metadata } : {}),\n })\n }\n }\n }\n }\n\n const summary = {\n add: added.length,\n modify: modified.length,\n delete: deleted.length,\n total: added.length + modified.length + deleted.length,\n skipped: skipped.length,\n }\n\n return {\n added,\n modified,\n deleted,\n unchanged,\n skipped,\n summary,\n format(opts) {\n return formatDiff(opts?.detail ?? 'full', { added, modified, deleted, summary })\n },\n }\n}\n\n// ─── Internals ─────────────────────────────────────────────────────────\n\n/**\n * Is the candidate a live `Vault`? Duck-typed via `exportStream` — matching\n * vault.ts's structural shape without an `instanceof` that would import the\n * class and risk a circular dep.\n *\n * ⚠️ Hoisted out of `normaliseCandidate` by family#151 because the ANSWER\n * decides how the LIVE side is keyed, which is computed before the candidate is\n * normalised. The two sides must agree or every record mismatches.\n */\nfunction isVaultCandidate(candidate: unknown): boolean {\n return typeof candidate === 'object'\n && candidate !== null\n && 'exportStream' in candidate\n && typeof (candidate as Vault).exportStream === 'function'\n}\n\nasync function normaliseCandidate<T>(\n candidate: DiffCandidate<T>,\n idKey: string,\n filter: Set<string> | null,\n byHubId: boolean,\n skipped: VaultDiffSkipped[],\n): Promise<Map<string, Map<string, T>>> {\n const out = new Map<string, Map<string, T>>()\n\n if (byHubId) {\n for await (const chunk of (candidate as Vault).exportStream({ granularity: 'collection' })) {\n if (filter && !filter.has(chunk.collection)) continue\n const collection = out.get(chunk.collection) ?? new Map<string, T>()\n chunk.records.forEach((record, i) => {\n const id = chunk.ids?.[i] ?? ''\n if (!id) {\n skipped.push({ collection: chunk.collection, side: 'candidate', index: i })\n return\n }\n collection.set(id, record as T)\n })\n out.set(chunk.collection, collection)\n }\n return out\n }\n\n // String — assume a vault.dump() JSON string. Parse and reduce to the map shape.\n if (typeof candidate === 'string') {\n let parsed: unknown\n try {\n parsed = JSON.parse(candidate)\n } catch (err) {\n throw new Error(\n `diffVault: candidate string is not valid JSON (${(err as Error).message})`,\n )\n }\n return collectionsFromObject<T>(parsed, idKey, filter, skipped)\n }\n\n // Plain object — `Record<collection, records[]>` (same shape as-json.toObject() returns).\n return collectionsFromObject<T>(candidate, idKey, filter, skipped)\n}\n\nfunction collectionsFromObject<T>(\n raw: unknown,\n idKey: string,\n filter: Set<string> | null,\n skipped: VaultDiffSkipped[],\n): Map<string, Map<string, T>> {\n const out = new Map<string, Map<string, T>>()\n if (raw === null || typeof raw !== 'object') {\n throw new Error('diffVault: candidate must be a Vault, an object, or a JSON string')\n }\n // A vault dump JSON has a top-level shape like { _compartment, _keyring, <coll>: <records[]> }.\n // We accept both: keys starting with `_` are skipped (they're metadata), the rest are collections.\n for (const [key, value] of Object.entries(raw)) {\n if (key.startsWith('_')) continue\n if (filter && !filter.has(key)) continue\n if (!Array.isArray(value)) continue\n const collection = new Map<string, T>()\n ;(value as readonly T[]).forEach((record, i) => {\n // family#151 — RECORDED, not dropped. A candidate row with no `idKey`\n // field lands in no bucket, and `as`'s `apply()` walks only the buckets,\n // so the row was silently never imported. This path cannot key by hub id\n // (a plain object carries none), so the honest fix is to make the skip\n // observable instead of pretending the row did not exist.\n if (record === null || typeof record !== 'object') {\n skipped.push({ collection: key, side: 'candidate', index: i })\n return\n }\n const id = readIdField(record, idKey)\n if (!id) {\n skipped.push({ collection: key, side: 'candidate', index: i })\n return\n }\n collection.set(id, record)\n })\n out.set(key, collection)\n }\n return out\n}\n\nfunction uniqueTopLevelKeys(diffs: readonly FieldDiffEntry[]): readonly string[] {\n const keys = new Set<string>()\n for (const d of diffs) {\n // path is dot-separated; the top-level key is everything before the\n // first `.` or `[`. (`a.b.c` → `a`, `tags[0]` → `tags`, `(root)` → `(root)`).\n const m = /^[^.[]+/.exec(d.path)\n if (m) keys.add(m[0])\n }\n return [...keys]\n}\n\n/**\n * Pull the id field off a record without going through `String(obj)`,\n * which would emit `[object Object]` for nested objects and silently\n * collapse rows that share the same parent. Only string and number ids\n * are accepted; anything else returns the empty string and the record\n * is skipped at the call site.\n */\nfunction readIdField(record: unknown, idKey: string): string {\n if (record === null || typeof record !== 'object') return ''\n const v = (record as Record<string, unknown>)[idKey]\n if (typeof v === 'string') return v\n if (typeof v === 'number' && Number.isFinite(v)) return String(v)\n return ''\n}\n\ninterface FormatBuckets<T> {\n readonly added: readonly VaultDiffEntry<T>[]\n readonly modified: readonly VaultDiffModifiedEntry<T>[]\n readonly deleted: readonly VaultDiffEntry<T>[]\n readonly summary: VaultDiff<T>['summary']\n}\n\nfunction formatDiff<T>(\n detail: 'count' | 'one-line' | 'full',\n b: FormatBuckets<T>,\n): string {\n // family#151 — a skip is in EVERY detail level, including 'count'. The whole\n // defect was that these rows were invisible, and `format()` is what a human\n // reads before approving an import; \"0 added\" with rows quietly unimportable\n // is the sentence this is meant to stop being printable.\n const skipNote = b.summary.skipped > 0 ? ` · ${b.summary.skipped} SKIPPED (unkeyable)` : ''\n const head = `${b.summary.add} added · ${b.summary.modify} modified · ${b.summary.delete} deleted${skipNote}`\n if (detail === 'count') return head\n if (b.summary.total === 0) return head + (b.summary.skipped > 0 ? '' : '\\n(no changes)')\n if (detail === 'one-line') return head\n\n const rows: string[] = [head, '']\n for (const e of b.added) rows.push(`${e.collection}/${e.id}\\tadded`)\n for (const e of b.modified) {\n const fields = e.fieldDiffs\n .map((f) => `${f.path}: ${shortJSON(f.from)} → ${shortJSON(f.to)}`)\n .join(', ')\n rows.push(`${e.collection}/${e.id}\\tmodified\\t${fields}`)\n }\n for (const e of b.deleted) rows.push(`${e.collection}/${e.id}\\tdeleted`)\n return rows.join('\\n')\n}\n\nfunction shortJSON(value: unknown): string {\n if (value === undefined) return 'undefined'\n const s = JSON.stringify(value)\n // JSON.stringify returns string for any JSON value except `undefined`\n // (handled above), `function`, and `symbol`. Fall back to a static\n // tag for those — never let an arbitrary object hit the default\n // stringifier (which the lint rule explicitly bans).\n if (typeof s !== 'string') return '<unrepresentable>'\n return s.length > 60 ? s.slice(0, 57) + '...' : s\n}\n"],"mappings":";;;;;AAwLA,eAAsB,UACpB,OACA,WACA,UAAuB,CAAC,GACD;AACvB,QAAM,QAAQ,QAAQ,SAAS;AAC/B,QAAM,SAAS,QAAQ,cAAc,IAAI,IAAI,QAAQ,WAAW,IAAI;AACpE,QAAM,YACJ,QAAQ,cAAc,CAAC,GAAY,MAAe,KAAU,GAAG,CAAC,EAAE,WAAW;AAO/E,QAAM,OAAO,oBAAI,IAA4B;AAC7C,QAAM,UAA8B,CAAC;AAerC,QAAM,UAAU,iBAAiB,SAAS;AAC1C,mBAAiB,SAAS,MAAM,aAAa,EAAE,aAAa,aAAa,CAAC,GAAG;AAC3E,QAAI,UAAU,CAAC,OAAO,IAAI,MAAM,UAAU,EAAG;AAC7C,UAAM,aAAa,KAAK,IAAI,MAAM,UAAU,KAAK,oBAAI,IAAe;AACpE,UAAM,QAAQ,QAAQ,CAAC,QAAQ,MAAM;AACnC,YAAM,KAAK,UAAW,MAAM,MAAM,CAAC,KAAK,KAAM,YAAY,QAAQ,KAAK;AACvE,UAAI,CAAC,IAAI;AACP,gBAAQ,KAAK,EAAE,YAAY,MAAM,YAAY,MAA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CAAC,WAAM,UAAU,EAAE,EAAE,CAAC,EAAE,EACjE,KAAK,IAAI;AACZ,SAAK,KAAK,GAAG,EAAE,UAAU,IAAI,EAAE,EAAE,aAAe,MAAM,EAAE;AAAA,EAC1D;AACA,aAAW,KAAK,EAAE,QAAS,MAAK,KAAK,GAAG,EAAE,UAAU,IAAI,EAAE,EAAE,UAAW;AACvE,SAAO,KAAK,KAAK,IAAI;AACvB;AAEA,SAAS,UAAU,OAAwB;AACzC,MAAI,UAAU,OAAW,QAAO;AAChC,QAAM,IAAI,KAAK,UAAU,KAAK;AAK9B,MAAI,OAAO,MAAM,SAAU,QAAO;AAClC,SAAO,EAAE,SAAS,KAAK,EAAE,MAAM,GAAG,EAAE,IAAI,QAAQ;AAClD;","names":[]}
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  envelopePayloadHash
3
- } from "./chunk-QHG7GQKM.js";
3
+ } from "./chunk-5JNEDW7I.js";
4
4
  import {
5
5
  NOYDB_FORMAT_VERSION
6
- } from "./chunk-VUBRHJ4H.js";
6
+ } from "./chunk-CR5UPYIJ.js";
7
7
  import {
8
8
  DictKeyMissingError,
9
9
  PermissionDeniedError
10
- } from "./chunk-JGYCKX56.js";
10
+ } from "./chunk-ISIXU45J.js";
11
11
 
12
12
  // src/via/lookup/handle.ts
13
13
  function isDeleteMarker(envelope) {
@@ -392,4 +392,4 @@ export {
392
392
  dictCollectionName,
393
393
  LookupHandle
394
394
  };
395
- //# sourceMappingURL=chunk-U2N7DH4S.js.map
395
+ //# sourceMappingURL=chunk-AHA7UALU.js.map