@noy-db/hub 0.3.0-pre.6 → 0.3.0-pre.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter/index.d.ts +1 -1
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/{api-OQ65LUSK.js → api-Z66JMGOU.js} +6 -6
- package/dist/as/index.d.ts +3 -3
- package/dist/as/index.js +5 -5
- package/dist/at/index.d.ts +1 -1
- package/dist/attestation/index.d.ts +2 -2
- package/dist/attestation/index.js +12 -12
- package/dist/{backup-Y3RMFGVX.js → backup-7PX6NDKT.js} +6 -6
- package/dist/blobs/index.d.ts +3 -3
- package/dist/blobs/index.js +5 -5
- package/dist/bundle/index.d.ts +4 -4
- package/dist/bundle/index.js +14 -14
- package/dist/{bundle-BPOSpGZG.d.ts → bundle-BN_VSq5L.d.ts} +1 -1
- package/dist/cargo/index.d.ts +3 -3
- package/dist/cargo/index.js +13 -13
- package/dist/{chunk-QQQE6QUO.js → chunk-2L7PPF2C.js} +7 -7
- package/dist/{chunk-C6A2DPRE.js → chunk-3CHNKEFI.js} +3 -3
- package/dist/{chunk-D6ADQ4QL.js → chunk-5K7KZMXG.js} +125 -67
- package/dist/chunk-5K7KZMXG.js.map +1 -0
- package/dist/{chunk-MT4YWJRW.js → chunk-62TTFKU4.js} +4 -4
- package/dist/{chunk-S2IDC6MO.js → chunk-7AERMJP6.js} +2 -2
- package/dist/{chunk-BYS45GOJ.js → chunk-7F2P2NHX.js} +3 -3
- package/dist/{chunk-ML5UP7YN.js → chunk-7L6EH6S7.js} +4 -4
- package/dist/{chunk-ZHK3F5RB.js → chunk-AG2PLGQ2.js} +4 -4
- package/dist/{chunk-ZRJBLWKQ.js → chunk-AZPGB4OD.js} +3 -3
- package/dist/{chunk-C57J6AWN.js → chunk-CND5WQLO.js} +3 -3
- package/dist/{chunk-CYWF3JJE.js → chunk-CP3GUIAN.js} +8 -8
- package/dist/{chunk-RIZQZKU6.js → chunk-DJ4TNF4N.js} +3 -3
- package/dist/{chunk-C2ZKWL37.js → chunk-DKGZIX6S.js} +2 -2
- package/dist/{chunk-7A7LTSJR.js → chunk-E3LURVGQ.js} +3 -3
- package/dist/{chunk-TWJVOYU2.js → chunk-G5CFMITA.js} +2 -2
- package/dist/{chunk-WAL4MRBK.js → chunk-GMZFHDSG.js} +3 -3
- package/dist/{chunk-YXGIPYH4.js → chunk-H3MPSYCH.js} +164 -51
- package/dist/chunk-H3MPSYCH.js.map +1 -0
- package/dist/{chunk-VWGCJUTV.js → chunk-H7WQMGXH.js} +2 -2
- package/dist/{chunk-NL4HVTNO.js → chunk-HBVEGUON.js} +2 -2
- package/dist/{chunk-LN22XH4B.js → chunk-HCK2DFEK.js} +1 -1
- package/dist/chunk-HCK2DFEK.js.map +1 -0
- package/dist/chunk-HGQ6UNHE.js +45 -0
- package/dist/chunk-HGQ6UNHE.js.map +1 -0
- package/dist/{chunk-IVIGZTFH.js → chunk-HV3VNAYI.js} +4 -4
- package/dist/{chunk-PLQCXH75.js → chunk-I6Q7YECW.js} +2 -2
- package/dist/{chunk-4I4UNXHM.js → chunk-IEKK2XI4.js} +3 -3
- package/dist/{chunk-73C4RPMX.js → chunk-J54DC5IC.js} +3 -3
- package/dist/{chunk-XDWNF4BS.js → chunk-J5YDMJHG.js} +7 -7
- package/dist/{chunk-7AGLCOYE.js → chunk-JIW3Q5JN.js} +6 -5
- package/dist/chunk-JIW3Q5JN.js.map +1 -0
- package/dist/{chunk-WAW4VFS7.js → chunk-JT4A6OAJ.js} +3 -3
- package/dist/{chunk-RXUFMTD5.js → chunk-K6WHZBCO.js} +2 -2
- package/dist/{chunk-T45LAT2Y.js → chunk-NO53W6O5.js} +2 -2
- package/dist/{chunk-DBBP35OP.js → chunk-OFYY5Q4R.js} +2 -2
- package/dist/{chunk-3IMGBWP7.js → chunk-PE25C4QL.js} +5 -5
- package/dist/{chunk-S55MJQUQ.js → chunk-QAVFI23O.js} +4 -4
- package/dist/{chunk-OLVIGEHQ.js → chunk-QYNBPDGO.js} +2 -2
- package/dist/{chunk-65FW3ALF.js → chunk-RHB7BOEO.js} +3 -3
- package/dist/{chunk-GGFT2XFF.js → chunk-RUWEHFRB.js} +3 -3
- package/dist/{chunk-I7GTYPWF.js → chunk-T4NQMPBN.js} +2 -2
- package/dist/{chunk-RLP65PI3.js → chunk-U5IJHUHZ.js} +2 -2
- package/dist/{chunk-GEK6UGOJ.js → chunk-UJJJPKJO.js} +2 -2
- package/dist/{chunk-E7MAS736.js → chunk-VFG5YXWM.js} +2 -2
- package/dist/{chunk-SXLMLECV.js → chunk-VMRXI3IF.js} +3 -3
- package/dist/{chunk-3UUXDQPM.js → chunk-VUHXLL32.js} +2 -2
- package/dist/{chunk-WQAT24C2.js → chunk-WFBZRXS5.js} +5 -5
- package/dist/{chunk-UZZFV3O3.js → chunk-WGH3YV6Y.js} +5 -5
- package/dist/{chunk-HJZ3CTZ2.js → chunk-WJEMUO32.js} +2 -2
- package/dist/{chunk-YFF2RP3X.js → chunk-WRLPV6SI.js} +2 -2
- package/dist/{chunk-TSAT3E7Y.js → chunk-YSJG4L4A.js} +2 -2
- package/dist/{chunk-OCVO2V63.js → chunk-YSU2E4GZ.js} +3 -3
- package/dist/classified/index.d.ts +3 -3
- package/dist/classified/index.js +1 -1
- package/dist/{collection-facade-5V3JS7SD.js → collection-facade-JP6N7USE.js} +9 -9
- package/dist/{config-drift-SWZNEH5H.js → config-drift-LRKCC3VZ.js} +3 -3
- package/dist/consent/index.d.ts +2 -2
- package/dist/consent/index.js +4 -4
- package/dist/crdt/index.d.ts +2 -2
- package/dist/{dead-filter-MGWMNRO2.js → dead-filter-NZORV45S.js} +2 -2
- package/dist/{delegation-AUY42TGU.js → delegation-FDOXXHNG.js} +5 -5
- package/dist/derivations/index.d.ts +3 -3
- package/dist/derivations/index.js +3 -3
- package/dist/{derive-FWSEWWI7.js → derive-JR2C5JFG.js} +4 -4
- package/dist/{dev-unlock-DxecHstJ.d.ts → dev-unlock-CsOqX7O2.d.ts} +1 -1
- package/dist/{enclave-UYZGSE2C.js → enclave-7X5BUAMS.js} +11 -5
- package/dist/{executor-XWPD5PIM.js → executor-6LHOV7MN.js} +4 -4
- package/dist/{export-accessible-M54OI6FO.js → export-accessible-7XLSZBGJ.js} +7 -7
- package/dist/{extract-partition-MIHAL6PP.js → extract-partition-RM6EROS5.js} +10 -10
- package/dist/{fanout-sidecar-SSEW7BQB.js → fanout-sidecar-BDKLP5GG.js} +4 -4
- package/dist/forget/index.js +4 -4
- package/dist/guards/index.d.ts +3 -3
- package/dist/{hash-umqwdLhO.d.ts → hash-BPzm02Za.d.ts} +1 -1
- package/dist/history/index.d.ts +3 -3
- package/dist/history/index.js +6 -6
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +7 -7
- package/dist/in/index.d.ts +1 -1
- package/dist/{index-B-LKCpm6.d.ts → index-BJ3L-XcV.d.ts} +67 -1
- package/dist/{index-zdEVWlkZ.d.ts → index-CLucFLeN.d.ts} +2 -2
- package/dist/index.d.ts +13 -13
- package/dist/index.js +44 -44
- package/dist/indexing/index.d.ts +2 -2
- package/dist/{issue-PHWTGH2G.js → issue-FJE2IHUI.js} +6 -6
- package/dist/kernel/index.d.ts +2 -2
- package/dist/kernel/index.js +3 -3
- package/dist/lazy/index.d.ts +2 -2
- package/dist/{ledger-IWWY7IIC.js → ledger-EMDHRJJN.js} +6 -6
- package/dist/liberate-HFIPHJGR.js +24 -0
- package/dist/{link-set-HJOC7GB7.js → link-set-62Y36TOG.js} +5 -5
- package/dist/materialized-views/index.d.ts +3 -3
- package/dist/materialized-views/index.js +4 -4
- package/dist/{mime-magic-C_O9KsAk.d.ts → mime-magic-BlE9fzn2.d.ts} +1 -1
- package/dist/{noydb-Y5L74IDJ.js → noydb-4ZASGII5.js} +23 -23
- package/dist/on/index.d.ts +1 -1
- package/dist/on/index.js +4 -4
- package/dist/overlay-views/index.d.ts +3 -3
- package/dist/periods/index.d.ts +2 -2
- package/dist/periods/index.js +7 -7
- package/dist/pod/index.d.ts +2 -2
- package/dist/pod/index.js +5 -5
- package/dist/{policy-3ZKSGSRK.js → policy-SXPLTQS4.js} +4 -4
- package/dist/portability/index.d.ts +2 -2
- package/dist/portability/index.js +6 -6
- package/dist/{post-register-BIXGCZ2M.js → post-register-DCJ2SRVG.js} +4 -4
- package/dist/{public-envelope-6UBQ4IUY.js → public-envelope-CBRIJORQ.js} +3 -3
- package/dist/query/index.d.ts +1 -1
- package/dist/{register-OVONZ2MJ.js → register-5NRE7HBZ.js} +6 -6
- package/dist/{registry-D5J7SVJ2.js → registry-5QLETK3Q.js} +4 -4
- package/dist/{registry-AIEYUOSG.js → registry-DYTNLOJC.js} +4 -4
- package/dist/{request-withdrawal-IHF64VIT.js → request-withdrawal-5APB7RKN.js} +9 -9
- package/dist/{reveal-B77Q2BJW.js → reveal-R5N7JKA5.js} +3 -3
- package/dist/{revoke-BPPOUZPE.js → revoke-VELFCK7S.js} +6 -6
- package/dist/satellites/index.d.ts +1 -1
- package/dist/sealed-record/index.d.ts +2 -2
- package/dist/sealed-record/index.js +6 -6
- package/dist/session/index.d.ts +3 -3
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.d.ts +2 -2
- package/dist/{signer-MNQEL27B.js → signer-IVU3B6DP.js} +5 -5
- package/dist/snapshots/index.d.ts +2 -2
- package/dist/snapshots/index.js +5 -5
- package/dist/{stale-COBBJORL.js → stale-DP66HFT3.js} +2 -2
- package/dist/{storage-DVKYH7UU.js → storage-RH5VBLLL.js} +5 -5
- package/dist/{store-coordination-provider-JJCEMTAE.js → store-coordination-provider-F5N5ASDF.js} +3 -3
- package/dist/sync/index.d.ts +1 -1
- package/dist/sync/index.js +4 -4
- package/dist/team/index.d.ts +2 -2
- package/dist/team/index.js +9 -9
- package/dist/tiers/index.d.ts +1 -1
- package/dist/tiers/index.js +4 -4
- package/dist/to/index.d.ts +1 -1
- package/dist/{transition-guard-CzqWwVGP.d.ts → transition-guard-BzsAQEd-.d.ts} +1 -1
- package/dist/tx/index.d.ts +2 -2
- package/dist/{validators-Bdiv0ucK.d.ts → validators-DGmYFP51.d.ts} +1 -1
- package/dist/{vault-diff-BbZngJUP.d.ts → vault-diff-DmBBatkx.d.ts} +1 -1
- package/dist/{walk-CVNXFUEF.js → walk-3SB25HF2.js} +5 -5
- package/dist/with/index.d.ts +2 -2
- package/dist/with/index.js +6 -6
- package/dist/{with-materialized-view-BmKXygt2.d.ts → with-materialized-view-DPEVoGoB.d.ts} +1 -1
- package/dist/{with-overlayed-view-Bnwe7E75.d.ts → with-overlayed-view-DGpKFSv1.d.ts} +1 -1
- package/dist/{with-rollup-JXTxc9cu.d.ts → with-rollup-B2RwnTq0.d.ts} +1 -1
- package/dist/{withdraw-accessible-5ALN3ZGM.js → withdraw-accessible-LN4AOJDD.js} +8 -8
- package/package.json +3 -3
- package/dist/chunk-7AGLCOYE.js.map +0 -1
- package/dist/chunk-D6ADQ4QL.js.map +0 -1
- package/dist/chunk-LN22XH4B.js.map +0 -1
- package/dist/chunk-QKVILR7N.js +0 -25
- package/dist/chunk-QKVILR7N.js.map +0 -1
- package/dist/chunk-YXGIPYH4.js.map +0 -1
- package/dist/liberate-QDTNV7SM.js +0 -24
- /package/dist/{api-OQ65LUSK.js.map → api-Z66JMGOU.js.map} +0 -0
- /package/dist/{backup-Y3RMFGVX.js.map → backup-7PX6NDKT.js.map} +0 -0
- /package/dist/{chunk-QQQE6QUO.js.map → chunk-2L7PPF2C.js.map} +0 -0
- /package/dist/{chunk-C6A2DPRE.js.map → chunk-3CHNKEFI.js.map} +0 -0
- /package/dist/{chunk-MT4YWJRW.js.map → chunk-62TTFKU4.js.map} +0 -0
- /package/dist/{chunk-S2IDC6MO.js.map → chunk-7AERMJP6.js.map} +0 -0
- /package/dist/{chunk-BYS45GOJ.js.map → chunk-7F2P2NHX.js.map} +0 -0
- /package/dist/{chunk-ML5UP7YN.js.map → chunk-7L6EH6S7.js.map} +0 -0
- /package/dist/{chunk-ZHK3F5RB.js.map → chunk-AG2PLGQ2.js.map} +0 -0
- /package/dist/{chunk-ZRJBLWKQ.js.map → chunk-AZPGB4OD.js.map} +0 -0
- /package/dist/{chunk-C57J6AWN.js.map → chunk-CND5WQLO.js.map} +0 -0
- /package/dist/{chunk-CYWF3JJE.js.map → chunk-CP3GUIAN.js.map} +0 -0
- /package/dist/{chunk-RIZQZKU6.js.map → chunk-DJ4TNF4N.js.map} +0 -0
- /package/dist/{chunk-C2ZKWL37.js.map → chunk-DKGZIX6S.js.map} +0 -0
- /package/dist/{chunk-7A7LTSJR.js.map → chunk-E3LURVGQ.js.map} +0 -0
- /package/dist/{chunk-TWJVOYU2.js.map → chunk-G5CFMITA.js.map} +0 -0
- /package/dist/{chunk-WAL4MRBK.js.map → chunk-GMZFHDSG.js.map} +0 -0
- /package/dist/{chunk-VWGCJUTV.js.map → chunk-H7WQMGXH.js.map} +0 -0
- /package/dist/{chunk-NL4HVTNO.js.map → chunk-HBVEGUON.js.map} +0 -0
- /package/dist/{chunk-IVIGZTFH.js.map → chunk-HV3VNAYI.js.map} +0 -0
- /package/dist/{chunk-PLQCXH75.js.map → chunk-I6Q7YECW.js.map} +0 -0
- /package/dist/{chunk-4I4UNXHM.js.map → chunk-IEKK2XI4.js.map} +0 -0
- /package/dist/{chunk-73C4RPMX.js.map → chunk-J54DC5IC.js.map} +0 -0
- /package/dist/{chunk-XDWNF4BS.js.map → chunk-J5YDMJHG.js.map} +0 -0
- /package/dist/{chunk-WAW4VFS7.js.map → chunk-JT4A6OAJ.js.map} +0 -0
- /package/dist/{chunk-RXUFMTD5.js.map → chunk-K6WHZBCO.js.map} +0 -0
- /package/dist/{chunk-T45LAT2Y.js.map → chunk-NO53W6O5.js.map} +0 -0
- /package/dist/{chunk-DBBP35OP.js.map → chunk-OFYY5Q4R.js.map} +0 -0
- /package/dist/{chunk-3IMGBWP7.js.map → chunk-PE25C4QL.js.map} +0 -0
- /package/dist/{chunk-S55MJQUQ.js.map → chunk-QAVFI23O.js.map} +0 -0
- /package/dist/{chunk-OLVIGEHQ.js.map → chunk-QYNBPDGO.js.map} +0 -0
- /package/dist/{chunk-65FW3ALF.js.map → chunk-RHB7BOEO.js.map} +0 -0
- /package/dist/{chunk-GGFT2XFF.js.map → chunk-RUWEHFRB.js.map} +0 -0
- /package/dist/{chunk-I7GTYPWF.js.map → chunk-T4NQMPBN.js.map} +0 -0
- /package/dist/{chunk-RLP65PI3.js.map → chunk-U5IJHUHZ.js.map} +0 -0
- /package/dist/{chunk-GEK6UGOJ.js.map → chunk-UJJJPKJO.js.map} +0 -0
- /package/dist/{chunk-E7MAS736.js.map → chunk-VFG5YXWM.js.map} +0 -0
- /package/dist/{chunk-SXLMLECV.js.map → chunk-VMRXI3IF.js.map} +0 -0
- /package/dist/{chunk-3UUXDQPM.js.map → chunk-VUHXLL32.js.map} +0 -0
- /package/dist/{chunk-WQAT24C2.js.map → chunk-WFBZRXS5.js.map} +0 -0
- /package/dist/{chunk-UZZFV3O3.js.map → chunk-WGH3YV6Y.js.map} +0 -0
- /package/dist/{chunk-HJZ3CTZ2.js.map → chunk-WJEMUO32.js.map} +0 -0
- /package/dist/{chunk-YFF2RP3X.js.map → chunk-WRLPV6SI.js.map} +0 -0
- /package/dist/{chunk-TSAT3E7Y.js.map → chunk-YSJG4L4A.js.map} +0 -0
- /package/dist/{chunk-OCVO2V63.js.map → chunk-YSU2E4GZ.js.map} +0 -0
- /package/dist/{collection-facade-5V3JS7SD.js.map → collection-facade-JP6N7USE.js.map} +0 -0
- /package/dist/{config-drift-SWZNEH5H.js.map → config-drift-LRKCC3VZ.js.map} +0 -0
- /package/dist/{dead-filter-MGWMNRO2.js.map → dead-filter-NZORV45S.js.map} +0 -0
- /package/dist/{delegation-AUY42TGU.js.map → delegation-FDOXXHNG.js.map} +0 -0
- /package/dist/{derive-FWSEWWI7.js.map → derive-JR2C5JFG.js.map} +0 -0
- /package/dist/{enclave-UYZGSE2C.js.map → enclave-7X5BUAMS.js.map} +0 -0
- /package/dist/{executor-XWPD5PIM.js.map → executor-6LHOV7MN.js.map} +0 -0
- /package/dist/{export-accessible-M54OI6FO.js.map → export-accessible-7XLSZBGJ.js.map} +0 -0
- /package/dist/{extract-partition-MIHAL6PP.js.map → extract-partition-RM6EROS5.js.map} +0 -0
- /package/dist/{fanout-sidecar-SSEW7BQB.js.map → fanout-sidecar-BDKLP5GG.js.map} +0 -0
- /package/dist/{issue-PHWTGH2G.js.map → issue-FJE2IHUI.js.map} +0 -0
- /package/dist/{ledger-IWWY7IIC.js.map → ledger-EMDHRJJN.js.map} +0 -0
- /package/dist/{liberate-QDTNV7SM.js.map → liberate-HFIPHJGR.js.map} +0 -0
- /package/dist/{link-set-HJOC7GB7.js.map → link-set-62Y36TOG.js.map} +0 -0
- /package/dist/{noydb-Y5L74IDJ.js.map → noydb-4ZASGII5.js.map} +0 -0
- /package/dist/{policy-3ZKSGSRK.js.map → policy-SXPLTQS4.js.map} +0 -0
- /package/dist/{post-register-BIXGCZ2M.js.map → post-register-DCJ2SRVG.js.map} +0 -0
- /package/dist/{public-envelope-6UBQ4IUY.js.map → public-envelope-CBRIJORQ.js.map} +0 -0
- /package/dist/{register-OVONZ2MJ.js.map → register-5NRE7HBZ.js.map} +0 -0
- /package/dist/{registry-AIEYUOSG.js.map → registry-5QLETK3Q.js.map} +0 -0
- /package/dist/{registry-D5J7SVJ2.js.map → registry-DYTNLOJC.js.map} +0 -0
- /package/dist/{request-withdrawal-IHF64VIT.js.map → request-withdrawal-5APB7RKN.js.map} +0 -0
- /package/dist/{reveal-B77Q2BJW.js.map → reveal-R5N7JKA5.js.map} +0 -0
- /package/dist/{revoke-BPPOUZPE.js.map → revoke-VELFCK7S.js.map} +0 -0
- /package/dist/{signer-MNQEL27B.js.map → signer-IVU3B6DP.js.map} +0 -0
- /package/dist/{stale-COBBJORL.js.map → stale-DP66HFT3.js.map} +0 -0
- /package/dist/{storage-DVKYH7UU.js.map → storage-RH5VBLLL.js.map} +0 -0
- /package/dist/{store-coordination-provider-JJCEMTAE.js.map → store-coordination-provider-F5N5ASDF.js.map} +0 -0
- /package/dist/{walk-CVNXFUEF.js.map → walk-3SB25HF2.js.map} +0 -0
- /package/dist/{withdraw-accessible-5ALN3ZGM.js.map → withdraw-accessible-LN4AOJDD.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadVaultPolicy
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NO53W6O5.js";
|
|
4
4
|
import {
|
|
5
5
|
jsonSchemaToFields
|
|
6
6
|
} from "./chunk-TQ3REHVF.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
SEQUENCE_COLLECTION,
|
|
10
10
|
compileSequenceFormat,
|
|
11
11
|
resolveSequenceKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IEKK2XI4.js";
|
|
13
13
|
import {
|
|
14
14
|
LinkIntegrityError,
|
|
15
15
|
isLinkCollectionName,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
} from "./chunk-5JQMX2EH.js";
|
|
23
23
|
import {
|
|
24
24
|
loadFence
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WRLPV6SI.js";
|
|
26
26
|
import {
|
|
27
27
|
InvertedIndex,
|
|
28
28
|
MemoryIndexStore,
|
|
29
29
|
NO_SEARCH,
|
|
30
30
|
VectorSet,
|
|
31
31
|
buildPersistedIndexCallbacks
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CP3GUIAN.js";
|
|
33
33
|
import {
|
|
34
34
|
derivePersistedSchema,
|
|
35
35
|
isZod4Schema
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
CustodyApi,
|
|
43
43
|
NO_CARGO,
|
|
44
44
|
NO_CUSTODY
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-RUWEHFRB.js";
|
|
46
46
|
import {
|
|
47
47
|
ServiceBus,
|
|
48
48
|
WriteHookRegistry,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
assertCanImport,
|
|
51
51
|
canExport,
|
|
52
52
|
canImport
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HBVEGUON.js";
|
|
54
54
|
import {
|
|
55
55
|
NO_ATTESTATION
|
|
56
56
|
} from "./chunk-LFGJG4XZ.js";
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
NO_TIERS,
|
|
64
64
|
classifySealedShred
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-E3LURVGQ.js";
|
|
66
66
|
import {
|
|
67
67
|
NO_PORTABILITY
|
|
68
68
|
} from "./chunk-II6DLDZM.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./chunk-EU7HDMT3.js";
|
|
72
72
|
import {
|
|
73
73
|
PERIODS_COLLECTION
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-YSU2E4GZ.js";
|
|
75
75
|
import {
|
|
76
76
|
TxContext,
|
|
77
77
|
revertExecuted
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
EXPORT_AUDIT_COLLECTION,
|
|
84
84
|
createExportBlobsHandle,
|
|
85
85
|
runCompaction
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-I6Q7YECW.js";
|
|
87
87
|
import {
|
|
88
88
|
LazyQuery,
|
|
89
89
|
decodeIdxId,
|
|
@@ -97,11 +97,11 @@ import {
|
|
|
97
97
|
import {
|
|
98
98
|
resolveManagedSecret,
|
|
99
99
|
saveSealedPassphrase
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-H7WQMGXH.js";
|
|
101
101
|
import {
|
|
102
102
|
isDictCollectionName,
|
|
103
103
|
isStaticDictDescriptor
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-WFBZRXS5.js";
|
|
105
105
|
import {
|
|
106
106
|
NO_TEAM,
|
|
107
107
|
enrollAuthenticator,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
rotatePassphrase,
|
|
113
113
|
updateAuthenticator,
|
|
114
114
|
writeMagicLinkGrant
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-WGH3YV6Y.js";
|
|
116
116
|
import {
|
|
117
117
|
hasRecoveryEnrolled,
|
|
118
118
|
hasStrongRecoveryEnrolled,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
mintShamirRecoveryEntry,
|
|
123
123
|
savePaperRecoveryEntries,
|
|
124
124
|
saveShamirRecoveryEntries
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-VUHXLL32.js";
|
|
126
126
|
import {
|
|
127
127
|
INDEXED_STORE_POLICY
|
|
128
128
|
} from "./chunk-VQNJ7UZL.js";
|
|
@@ -138,17 +138,17 @@ import {
|
|
|
138
138
|
listUsers,
|
|
139
139
|
loadKeyring,
|
|
140
140
|
updateKeyringIdentity
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-GMZFHDSG.js";
|
|
142
142
|
import {
|
|
143
143
|
persistDirectoryConfig,
|
|
144
144
|
readDirectoryConfig
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-3CHNKEFI.js";
|
|
146
146
|
import {
|
|
147
147
|
generateULID
|
|
148
148
|
} from "./chunk-ZJADGNYF.js";
|
|
149
149
|
import {
|
|
150
150
|
sha256Hex
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-G5CFMITA.js";
|
|
152
152
|
import {
|
|
153
153
|
NO_FORGET,
|
|
154
154
|
addSubjectRef,
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
readDottedPath,
|
|
158
158
|
rebuildSubjectIndex,
|
|
159
159
|
removeSubjectRef
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-VMRXI3IF.js";
|
|
161
161
|
import {
|
|
162
162
|
NO_SEALED_RECORD
|
|
163
163
|
} from "./chunk-XW5LZYV4.js";
|
|
@@ -170,14 +170,16 @@ import {
|
|
|
170
170
|
queryByDet,
|
|
171
171
|
resolveStableCek,
|
|
172
172
|
validateSchemaInput
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-JIW3Q5JN.js";
|
|
174
174
|
import {
|
|
175
|
+
buildDeleteMarker,
|
|
175
176
|
buildTombstone,
|
|
177
|
+
isDeleteMarker,
|
|
176
178
|
isTombstone
|
|
177
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-HGQ6UNHE.js";
|
|
178
180
|
import {
|
|
179
181
|
NOYDB_FORMAT_VERSION
|
|
180
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-HCK2DFEK.js";
|
|
181
183
|
import {
|
|
182
184
|
encrypt
|
|
183
185
|
} from "./chunk-5HZULLHE.js";
|
|
@@ -240,7 +242,7 @@ import {
|
|
|
240
242
|
|
|
241
243
|
// src/port/by/default-provider.ts
|
|
242
244
|
async function createDefaultCoordinationProvider(store) {
|
|
243
|
-
const { StoreCoordinationProvider } = await import("./store-coordination-provider-
|
|
245
|
+
const { StoreCoordinationProvider } = await import("./store-coordination-provider-F5N5ASDF.js");
|
|
244
246
|
return new StoreCoordinationProvider(store);
|
|
245
247
|
}
|
|
246
248
|
|
|
@@ -2373,7 +2375,7 @@ var Collection = class {
|
|
|
2373
2375
|
}
|
|
2374
2376
|
}
|
|
2375
2377
|
if (this.materializedViewSource !== void 0) {
|
|
2376
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
2378
|
+
const { resolveStaleMVOnRead } = await import("./stale-DP66HFT3.js");
|
|
2377
2379
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name);
|
|
2378
2380
|
}
|
|
2379
2381
|
let record;
|
|
@@ -2384,7 +2386,7 @@ var Collection = class {
|
|
|
2384
2386
|
} else {
|
|
2385
2387
|
const envelope = await this.adapter.get(this.vault, this.name, id);
|
|
2386
2388
|
if (!envelope) return null;
|
|
2387
|
-
if (isTombstone(envelope, this.storeCiphertext)) return null;
|
|
2389
|
+
if (isTombstone(envelope, this.storeCiphertext) || isDeleteMarker(envelope)) return null;
|
|
2388
2390
|
record = await this.codec.decryptRecord(envelope, { id, sealedAsHandles: true });
|
|
2389
2391
|
if (record === null) return null;
|
|
2390
2392
|
this.lru.set(id, { record, version: envelope._v }, estimateRecordBytes(record));
|
|
@@ -2834,14 +2836,15 @@ var Collection = class {
|
|
|
2834
2836
|
return;
|
|
2835
2837
|
}
|
|
2836
2838
|
let existing;
|
|
2839
|
+
let priorRaw = null;
|
|
2837
2840
|
if (this.lazy && this.lru) {
|
|
2838
2841
|
existing = this.lru.get(id);
|
|
2839
2842
|
if (!existing) {
|
|
2840
|
-
|
|
2841
|
-
if (
|
|
2842
|
-
const previousRecord = await this.codec.decryptRecord(
|
|
2843
|
+
priorRaw = await this.adapter.get(this.vault, this.name, id);
|
|
2844
|
+
if (priorRaw) {
|
|
2845
|
+
const previousRecord = await this.codec.decryptRecord(priorRaw);
|
|
2843
2846
|
if (previousRecord !== null) {
|
|
2844
|
-
existing = { record: previousRecord, version:
|
|
2847
|
+
existing = { record: previousRecord, version: priorRaw._v };
|
|
2845
2848
|
}
|
|
2846
2849
|
}
|
|
2847
2850
|
}
|
|
@@ -2849,7 +2852,11 @@ var Collection = class {
|
|
|
2849
2852
|
await this.ensureHydrated();
|
|
2850
2853
|
existing = await this.resolvePriorValues(id);
|
|
2851
2854
|
}
|
|
2852
|
-
|
|
2855
|
+
let version = existing ? existing.version + 1 : 1;
|
|
2856
|
+
if (!existing && this.onDirty) {
|
|
2857
|
+
if (priorRaw === null) priorRaw = await this.adapter.get(this.vault, this.name, id);
|
|
2858
|
+
if (priorRaw && isDeleteMarker(priorRaw)) version = priorRaw._v + 1;
|
|
2859
|
+
}
|
|
2853
2860
|
this.uniqueConstraints?.check(id, record);
|
|
2854
2861
|
const cek = this.perRecordCek ? await this.resolveRecordCek(id) : void 0;
|
|
2855
2862
|
const vdigCtx = this.vdigFields !== null ? { id, prev: await this.adapter.get(this.vault, this.name, id) } : void 0;
|
|
@@ -2936,7 +2943,7 @@ var Collection = class {
|
|
|
2936
2943
|
if (mode === "eager") {
|
|
2937
2944
|
if (executor === null) {
|
|
2938
2945
|
;
|
|
2939
|
-
({ MaterializedViewExecutor: executor } = await import("./executor-
|
|
2946
|
+
({ MaterializedViewExecutor: executor } = await import("./executor-6LHOV7MN.js"));
|
|
2940
2947
|
}
|
|
2941
2948
|
await executor.refresh(reg, {
|
|
2942
2949
|
getCollection: (name) => this.materializedViewSource.getCollection(name),
|
|
@@ -2945,7 +2952,7 @@ var Collection = class {
|
|
|
2945
2952
|
});
|
|
2946
2953
|
} else if (mode === "lazy") {
|
|
2947
2954
|
if (staleHelpers === null) {
|
|
2948
|
-
staleHelpers = await import("./stale-
|
|
2955
|
+
staleHelpers = await import("./stale-DP66HFT3.js");
|
|
2949
2956
|
}
|
|
2950
2957
|
staleHelpers.markMVStale(registry, reg.spec.name);
|
|
2951
2958
|
}
|
|
@@ -2975,7 +2982,7 @@ var Collection = class {
|
|
|
2975
2982
|
if (this.sensitiveFields.size > 0) {
|
|
2976
2983
|
const cached = this.lru.get(id);
|
|
2977
2984
|
const env = await this.adapter.get(this.vault, this.name, id);
|
|
2978
|
-
if (!env || isTombstone(env, this.storeCiphertext)) return null;
|
|
2985
|
+
if (!env || isTombstone(env, this.storeCiphertext) || isDeleteMarker(env)) return null;
|
|
2979
2986
|
raw = await this.codec.decryptRecord(env, { id });
|
|
2980
2987
|
if (raw === null) return null;
|
|
2981
2988
|
if (!cached) {
|
|
@@ -2986,7 +2993,7 @@ var Collection = class {
|
|
|
2986
2993
|
if (cached) raw = cached.record;
|
|
2987
2994
|
else {
|
|
2988
2995
|
const env = await this.adapter.get(this.vault, this.name, id);
|
|
2989
|
-
if (!env || isTombstone(env, this.storeCiphertext)) return null;
|
|
2996
|
+
if (!env || isTombstone(env, this.storeCiphertext) || isDeleteMarker(env)) return null;
|
|
2990
2997
|
raw = await this.codec.decryptRecord(env, { id });
|
|
2991
2998
|
if (raw === null) return null;
|
|
2992
2999
|
this.lru.set(id, { record: raw, version: env._v }, estimateRecordBytes(raw));
|
|
@@ -3149,7 +3156,7 @@ var Collection = class {
|
|
|
3149
3156
|
const outputCollection = this.derivationSource.getCollection(outSpec.collection);
|
|
3150
3157
|
const txCtx = this.derivationSource.getActiveTxContext();
|
|
3151
3158
|
if (out.kind === "array") {
|
|
3152
|
-
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-
|
|
3159
|
+
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-BDKLP5GG.js");
|
|
3153
3160
|
const prior = await loadFanoutSidecar(this.adapter, this.vault, spec.source, run.runId, key, this.getDEK, this.storeCiphertext);
|
|
3154
3161
|
const prevKeys = new Set(prior?.keys ?? []);
|
|
3155
3162
|
const newKeysList = out.entries.map((e) => e.key);
|
|
@@ -3269,7 +3276,7 @@ var Collection = class {
|
|
|
3269
3276
|
let count = 0;
|
|
3270
3277
|
for (const id of ids) {
|
|
3271
3278
|
const env = await this.adapter.get(this.vault, this.name, id);
|
|
3272
|
-
if (!env || isTombstone(env, this.storeCiphertext)) continue;
|
|
3279
|
+
if (!env || isTombstone(env, this.storeCiphertext) || isDeleteMarker(env)) continue;
|
|
3273
3280
|
const decoded = await this.codec.decryptRecord(env, { skipValidation: true, id });
|
|
3274
3281
|
if (decoded === null) continue;
|
|
3275
3282
|
const record = decoded;
|
|
@@ -3398,7 +3405,15 @@ var Collection = class {
|
|
|
3398
3405
|
}
|
|
3399
3406
|
const previousEnvelope = await this.adapter.get(this.vault, this.name, id);
|
|
3400
3407
|
const previousPayloadHash = await this.historyStrategy.envelopePayloadHash(previousEnvelope);
|
|
3401
|
-
|
|
3408
|
+
let markerVersion;
|
|
3409
|
+
if (this.onDirty) {
|
|
3410
|
+
const live = previousEnvelope;
|
|
3411
|
+
if (!live || isTombstone(live, this.storeCiphertext) || isDeleteMarker(live)) return;
|
|
3412
|
+
markerVersion = live._v + 1;
|
|
3413
|
+
await this.adapter.put(this.vault, this.name, id, buildDeleteMarker(markerVersion, this.keyring.userId));
|
|
3414
|
+
} else {
|
|
3415
|
+
await this.adapter.delete(this.vault, this.name, id);
|
|
3416
|
+
}
|
|
3402
3417
|
if (this.ledger) {
|
|
3403
3418
|
await this.ledger.append({
|
|
3404
3419
|
op: "delete",
|
|
@@ -3421,7 +3436,7 @@ var Collection = class {
|
|
|
3421
3436
|
this.uniqueConstraints?.remove(id, existing.record);
|
|
3422
3437
|
}
|
|
3423
3438
|
}
|
|
3424
|
-
await this.onDirty?.(this.name, id, "
|
|
3439
|
+
await this.onDirty?.(this.name, id, "put", markerVersion ?? (existing?.version ?? 0) + 1);
|
|
3425
3440
|
this.emitter.emit("change", {
|
|
3426
3441
|
vault: this.vault,
|
|
3427
3442
|
collection: this.name,
|
|
@@ -3473,11 +3488,12 @@ var Collection = class {
|
|
|
3473
3488
|
}
|
|
3474
3489
|
async _writeTombstone(id, actor) {
|
|
3475
3490
|
const live = await this.adapter.get(this.vault, this.name, id);
|
|
3476
|
-
if (!live || isTombstone(live, this.storeCiphertext)) return null;
|
|
3491
|
+
if (!live || isTombstone(live, this.storeCiphertext) || isDeleteMarker(live)) return null;
|
|
3477
3492
|
await this.adapter.put(this.vault, this.name, id, buildTombstone(live._v, actor));
|
|
3478
3493
|
this.cache.delete(id);
|
|
3479
3494
|
this.lru?.remove(id);
|
|
3480
3495
|
this.cekCache?.remove(id);
|
|
3496
|
+
await this.onDirty?.(this.name, id, "put", live._v);
|
|
3481
3497
|
return { previousVersion: live._v };
|
|
3482
3498
|
}
|
|
3483
3499
|
/**
|
|
@@ -3502,7 +3518,7 @@ var Collection = class {
|
|
|
3502
3518
|
for (const [outputKey, outSpec] of Object.entries(spec.outputs)) {
|
|
3503
3519
|
if (outSpec.shape !== "array") continue;
|
|
3504
3520
|
if (helpers === null) {
|
|
3505
|
-
helpers = await import("./fanout-sidecar-
|
|
3521
|
+
helpers = await import("./fanout-sidecar-BDKLP5GG.js");
|
|
3506
3522
|
}
|
|
3507
3523
|
const sidecar = await helpers.loadFanoutSidecar(this.adapter, this.vault, spec.source, id, outputKey, this.getDEK, this.storeCiphertext);
|
|
3508
3524
|
if (!sidecar) continue;
|
|
@@ -3536,7 +3552,7 @@ var Collection = class {
|
|
|
3536
3552
|
if (mode === "eager") {
|
|
3537
3553
|
if (executor === null) {
|
|
3538
3554
|
;
|
|
3539
|
-
({ MaterializedViewExecutor: executor } = await import("./executor-
|
|
3555
|
+
({ MaterializedViewExecutor: executor } = await import("./executor-6LHOV7MN.js"));
|
|
3540
3556
|
}
|
|
3541
3557
|
await executor.refresh(reg, {
|
|
3542
3558
|
getCollection: (name) => this.materializedViewSource.getCollection(name),
|
|
@@ -3545,7 +3561,7 @@ var Collection = class {
|
|
|
3545
3561
|
});
|
|
3546
3562
|
} else if (mode === "lazy") {
|
|
3547
3563
|
if (staleHelpers === null) {
|
|
3548
|
-
staleHelpers = await import("./stale-
|
|
3564
|
+
staleHelpers = await import("./stale-DP66HFT3.js");
|
|
3549
3565
|
}
|
|
3550
3566
|
staleHelpers.markMVStale(registry, reg.spec.name);
|
|
3551
3567
|
}
|
|
@@ -3568,7 +3584,7 @@ var Collection = class {
|
|
|
3568
3584
|
);
|
|
3569
3585
|
}
|
|
3570
3586
|
if (this.materializedViewSource !== void 0) {
|
|
3571
|
-
const { resolveStaleMVOnRead } = await import("./stale-
|
|
3587
|
+
const { resolveStaleMVOnRead } = await import("./stale-DP66HFT3.js");
|
|
3572
3588
|
await resolveStaleMVOnRead(this.materializedViewSource, this.name);
|
|
3573
3589
|
}
|
|
3574
3590
|
await this.ensureHydrated();
|
|
@@ -4261,7 +4277,7 @@ var Collection = class {
|
|
|
4261
4277
|
const ids = await this.adapter.list(this.vault, this.name);
|
|
4262
4278
|
for (const id of ids) {
|
|
4263
4279
|
const envelope = await this.adapter.get(this.vault, this.name, id);
|
|
4264
|
-
if (envelope && !isTombstone(envelope, this.storeCiphertext)) {
|
|
4280
|
+
if (envelope && !isTombstone(envelope, this.storeCiphertext) && !isDeleteMarker(envelope)) {
|
|
4265
4281
|
const record = await this.codec.decryptRecord(envelope, { id, sealedAsHandles: true });
|
|
4266
4282
|
if (record === null) continue;
|
|
4267
4283
|
this.cache.set(id, { record, version: envelope._v });
|
|
@@ -4274,7 +4290,7 @@ var Collection = class {
|
|
|
4274
4290
|
/** Hydrate from a pre-loaded snapshot (used by Vault). */
|
|
4275
4291
|
async hydrateFromSnapshot(records) {
|
|
4276
4292
|
for (const [id, envelope] of Object.entries(records)) {
|
|
4277
|
-
if (isTombstone(envelope, this.storeCiphertext)) continue;
|
|
4293
|
+
if (isTombstone(envelope, this.storeCiphertext) || isDeleteMarker(envelope)) continue;
|
|
4278
4294
|
const record = await this.codec.decryptRecord(envelope, { id, sealedAsHandles: true });
|
|
4279
4295
|
if (record === null) continue;
|
|
4280
4296
|
this.cache.set(id, { record, version: envelope._v });
|
|
@@ -4722,14 +4738,14 @@ var Collection = class {
|
|
|
4722
4738
|
/** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
|
|
4723
4739
|
async _ensureClassifiedMarker() {
|
|
4724
4740
|
if (this._markerPersisted || this.vdigFields === null) return;
|
|
4725
|
-
const { persistClassifiedMarkerForFields } = await import("./config-drift-
|
|
4741
|
+
const { persistClassifiedMarkerForFields } = await import("./config-drift-LRKCC3VZ.js");
|
|
4726
4742
|
await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
|
|
4727
4743
|
this._markerPersisted = true;
|
|
4728
4744
|
}
|
|
4729
4745
|
/** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
|
|
4730
4746
|
async _classifiedMarkerDigestOnly() {
|
|
4731
4747
|
if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
|
|
4732
|
-
const { readClassifiedMarkerDigestOnly } = await import("./config-drift-
|
|
4748
|
+
const { readClassifiedMarkerDigestOnly } = await import("./config-drift-LRKCC3VZ.js");
|
|
4733
4749
|
this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
|
|
4734
4750
|
return this._markerDigestOnlyCache;
|
|
4735
4751
|
}
|
|
@@ -5776,7 +5792,7 @@ var VaultLinks = class {
|
|
|
5776
5792
|
// src/with-shape/links/lazy-handle.ts
|
|
5777
5793
|
function makeLazyLinkSetHandle(d) {
|
|
5778
5794
|
let engine = null;
|
|
5779
|
-
const load = () => engine ??= import("./link-set-
|
|
5795
|
+
const load = () => engine ??= import("./link-set-62Y36TOG.js").then(
|
|
5780
5796
|
({ LinkSet }) => new LinkSet(d.adapter, d.vault, d.name, d.spec, d.encrypted, d.getDEK, d.actor, d.emitter, d.endpointExists)
|
|
5781
5797
|
);
|
|
5782
5798
|
return {
|
|
@@ -5900,7 +5916,7 @@ function declareSatellite(ctx, collectionName, options, existingRegistry) {
|
|
|
5900
5916
|
ctx.forEachSyncEngine((e) => e.remirrorPairResolvers([spec.base, spec.satellite]));
|
|
5901
5917
|
const registry = reg;
|
|
5902
5918
|
const baseSchema = ctx.getBaseSchema(spec.base);
|
|
5903
|
-
void import("./post-register-
|
|
5919
|
+
void import("./post-register-DCJ2SRVG.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
|
|
5904
5920
|
});
|
|
5905
5921
|
return reg;
|
|
5906
5922
|
}
|
|
@@ -6921,7 +6937,7 @@ var Vault = class {
|
|
|
6921
6937
|
const strategies = options.schemaUpdate ?? [];
|
|
6922
6938
|
const work = (async () => {
|
|
6923
6939
|
const dek = await this.getDEK(collectionName);
|
|
6924
|
-
const { persistSchemaIfNeeded } = await import("./register-
|
|
6940
|
+
const { persistSchemaIfNeeded } = await import("./register-5NRE7HBZ.js");
|
|
6925
6941
|
const result = await persistSchemaIfNeeded({
|
|
6926
6942
|
store: this.adapter,
|
|
6927
6943
|
vault: this.name,
|
|
@@ -7100,7 +7116,7 @@ var Vault = class {
|
|
|
7100
7116
|
const work = (async () => {
|
|
7101
7117
|
try {
|
|
7102
7118
|
const dek = await this.getDEK(collectionName);
|
|
7103
|
-
await (await import("./register-
|
|
7119
|
+
await (await import("./register-5NRE7HBZ.js")).persistSchemaIfNeeded({
|
|
7104
7120
|
store: this.adapter,
|
|
7105
7121
|
vault: this.name,
|
|
7106
7122
|
collectionName,
|
|
@@ -7175,6 +7191,45 @@ var Vault = class {
|
|
|
7175
7191
|
if (!coll) return;
|
|
7176
7192
|
await coll._applyRemoteChange(docId, action);
|
|
7177
7193
|
}
|
|
7194
|
+
/** @internal #598: refresh cache entries a sync-applied write rewrote underneath us. No-op if not loaded this session. */
|
|
7195
|
+
async _invalidateSyncApplied(collection, id) {
|
|
7196
|
+
const coll = this.collectionCache.get(collection);
|
|
7197
|
+
if (!coll) return;
|
|
7198
|
+
coll._invalidateCekCacheEntry(id);
|
|
7199
|
+
await coll._invalidateCacheEntry(id);
|
|
7200
|
+
}
|
|
7201
|
+
/**
|
|
7202
|
+
* @internal #589 → #604. Physically remove delete markers with `_ts` strictly
|
|
7203
|
+
* older than `before` (ISO timestamp), across `collections` (or all data
|
|
7204
|
+
* collections). Returns the count removed.
|
|
7205
|
+
*
|
|
7206
|
+
* SAFETY: purging a marker RE-OPENS the #589 resurrection window for any peer
|
|
7207
|
+
* offline since before the cutoff — never-GC is safe precisely because the marker
|
|
7208
|
+
* is always present to win convergence. This is an operator-asserted safe-point
|
|
7209
|
+
* ONLY; #604's period-close lifecycle is what earns that assertion. Do not call
|
|
7210
|
+
* it on live/unsettled data.
|
|
7211
|
+
*
|
|
7212
|
+
* Emits no ledger/event yet — #604's period-close, the only intended caller, owns
|
|
7213
|
+
* the audit record.
|
|
7214
|
+
*
|
|
7215
|
+
* Purges the local adapter only; the operator must purge every sync target too, or
|
|
7216
|
+
* the next pull re-imports the markers (benign — they still read deleted — but no
|
|
7217
|
+
* space is reclaimed). #604 owns cross-target purge.
|
|
7218
|
+
*/
|
|
7219
|
+
async _purgeDeleteMarkers(before, collections) {
|
|
7220
|
+
const snapshot = await this.adapter.loadAll(this.name);
|
|
7221
|
+
let removed = 0;
|
|
7222
|
+
for (const [coll, records] of Object.entries(snapshot)) {
|
|
7223
|
+
if (collections && !collections.includes(coll)) continue;
|
|
7224
|
+
for (const [id, env] of Object.entries(records)) {
|
|
7225
|
+
if (isDeleteMarker(env) && env._ts < before) {
|
|
7226
|
+
await this.adapter.delete(this.name, coll, id);
|
|
7227
|
+
removed++;
|
|
7228
|
+
}
|
|
7229
|
+
}
|
|
7230
|
+
}
|
|
7231
|
+
return removed;
|
|
7232
|
+
}
|
|
7178
7233
|
/**
|
|
7179
7234
|
* For a detected conflict: capture this tab's clobbered record,
|
|
7180
7235
|
* read the common ancestor from history, converge the cache to the store's
|
|
@@ -8214,7 +8269,7 @@ var Vault = class {
|
|
|
8214
8269
|
async _initDerivations(handles) {
|
|
8215
8270
|
if (handles.length === 0) return;
|
|
8216
8271
|
const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
|
|
8217
|
-
import("./registry-
|
|
8272
|
+
import("./registry-5QLETK3Q.js"),
|
|
8218
8273
|
import("./read-only-facade-5ADRJVTM.js")
|
|
8219
8274
|
]);
|
|
8220
8275
|
const registry = new DerivationRegistry();
|
|
@@ -8245,7 +8300,7 @@ var Vault = class {
|
|
|
8245
8300
|
*/
|
|
8246
8301
|
async _initMaterializedViews(handles) {
|
|
8247
8302
|
if (handles.length === 0) return;
|
|
8248
|
-
const { MaterializedViewRegistry } = await import("./registry-
|
|
8303
|
+
const { MaterializedViewRegistry } = await import("./registry-DYTNLOJC.js");
|
|
8249
8304
|
const registry = new MaterializedViewRegistry();
|
|
8250
8305
|
this.materializedViewRegistry = registry;
|
|
8251
8306
|
const db = this;
|
|
@@ -8316,13 +8371,13 @@ var Vault = class {
|
|
|
8316
8371
|
if (!reg) {
|
|
8317
8372
|
throw new Error(`refreshView: no MV registered with name "${name}"`);
|
|
8318
8373
|
}
|
|
8319
|
-
const { MaterializedViewExecutor } = await import("./executor-
|
|
8374
|
+
const { MaterializedViewExecutor } = await import("./executor-6LHOV7MN.js");
|
|
8320
8375
|
const result = await MaterializedViewExecutor.refresh(reg, {
|
|
8321
8376
|
getCollection: (n) => this.collection(n),
|
|
8322
8377
|
getActiveTxContext: () => this.noydb._activeTxContextOrNull,
|
|
8323
8378
|
getQueryContext: () => this
|
|
8324
8379
|
});
|
|
8325
|
-
const { clearMVStale } = await import("./stale-
|
|
8380
|
+
const { clearMVStale } = await import("./stale-DP66HFT3.js");
|
|
8326
8381
|
clearMVStale(registry, name);
|
|
8327
8382
|
return result;
|
|
8328
8383
|
}
|
|
@@ -8363,7 +8418,7 @@ var Vault = class {
|
|
|
8363
8418
|
if (!outSpec) continue;
|
|
8364
8419
|
const outputColl = this.collection(outSpec.collection);
|
|
8365
8420
|
if (out.kind === "array") {
|
|
8366
|
-
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-
|
|
8421
|
+
const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-BDKLP5GG.js");
|
|
8367
8422
|
const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key, this.getDEK, this.encrypted);
|
|
8368
8423
|
const prevKeys = new Set(prior?.keys ?? []);
|
|
8369
8424
|
const newKeysList = out.entries.map((e) => e.key);
|
|
@@ -8585,7 +8640,7 @@ var Vault = class {
|
|
|
8585
8640
|
* collection.
|
|
8586
8641
|
*/
|
|
8587
8642
|
async delegate(opts) {
|
|
8588
|
-
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
8643
|
+
const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-FDOXXHNG.js");
|
|
8589
8644
|
if (!this.keyring.kek) {
|
|
8590
8645
|
throw new ValidationError(
|
|
8591
8646
|
"issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (passphrase) first."
|
|
@@ -8607,7 +8662,7 @@ var Vault = class {
|
|
|
8607
8662
|
* if the id does not exist.
|
|
8608
8663
|
*/
|
|
8609
8664
|
async revokeDelegation(id) {
|
|
8610
|
-
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-
|
|
8665
|
+
const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-FDOXXHNG.js");
|
|
8611
8666
|
await revokeDelegation(this.adapter, this.name, id);
|
|
8612
8667
|
void DELEGATIONS_COLLECTION;
|
|
8613
8668
|
}
|
|
@@ -8823,7 +8878,7 @@ var Vault = class {
|
|
|
8823
8878
|
* @see docs/superpowers/specs/2026-05-22-schema-dump-design.md
|
|
8824
8879
|
*/
|
|
8825
8880
|
async dumpSchema(opts = {}) {
|
|
8826
|
-
const { dumpVaultSchema } = await import("./walk-
|
|
8881
|
+
const { dumpVaultSchema } = await import("./walk-3SB25HF2.js");
|
|
8827
8882
|
return dumpVaultSchema(this, opts);
|
|
8828
8883
|
}
|
|
8829
8884
|
/**
|
|
@@ -8958,7 +9013,7 @@ var Vault = class {
|
|
|
8958
9013
|
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/public-envelope.md
|
|
8959
9014
|
*/
|
|
8960
9015
|
async getPublicEnvelope(opts = {}) {
|
|
8961
|
-
const { readPublicEnvelope } = await import("./public-envelope-
|
|
9016
|
+
const { readPublicEnvelope } = await import("./public-envelope-CBRIJORQ.js");
|
|
8962
9017
|
return readPublicEnvelope(this.adapter, this.name, opts);
|
|
8963
9018
|
}
|
|
8964
9019
|
/**
|
|
@@ -8973,7 +9028,7 @@ var Vault = class {
|
|
|
8973
9028
|
* both modes round-trip cleanly.
|
|
8974
9029
|
*/
|
|
8975
9030
|
async dump() {
|
|
8976
|
-
const { dumpVault } = await import("./backup-
|
|
9031
|
+
const { dumpVault } = await import("./backup-7PX6NDKT.js");
|
|
8977
9032
|
return dumpVault(this.backupContext());
|
|
8978
9033
|
}
|
|
8979
9034
|
/**
|
|
@@ -9025,7 +9080,7 @@ var Vault = class {
|
|
|
9025
9080
|
* — there's no chain to verify against.
|
|
9026
9081
|
*/
|
|
9027
9082
|
async load(backupJson) {
|
|
9028
|
-
const { loadVault } = await import("./backup-
|
|
9083
|
+
const { loadVault } = await import("./backup-7PX6NDKT.js");
|
|
9029
9084
|
return loadVault(this.backupContext(), backupJson);
|
|
9030
9085
|
}
|
|
9031
9086
|
/**
|
|
@@ -9057,7 +9112,7 @@ var Vault = class {
|
|
|
9057
9112
|
* way to detect tampering of an in-place vault.
|
|
9058
9113
|
*/
|
|
9059
9114
|
async verifyBackupIntegrity() {
|
|
9060
|
-
const { verifyBackupIntegrity } = await import("./backup-
|
|
9115
|
+
const { verifyBackupIntegrity } = await import("./backup-7PX6NDKT.js");
|
|
9061
9116
|
return verifyBackupIntegrity(this.backupContext());
|
|
9062
9117
|
}
|
|
9063
9118
|
/**
|
|
@@ -9275,7 +9330,7 @@ var Vault = class {
|
|
|
9275
9330
|
* is the live validator object, not a serialization of it).
|
|
9276
9331
|
*/
|
|
9277
9332
|
async exportJSON(opts = {}) {
|
|
9278
|
-
const { exportVaultJSON } = await import("./backup-
|
|
9333
|
+
const { exportVaultJSON } = await import("./backup-7PX6NDKT.js");
|
|
9279
9334
|
return exportVaultJSON(this.backupContext(), opts);
|
|
9280
9335
|
}
|
|
9281
9336
|
};
|
|
@@ -11365,6 +11420,9 @@ var Noydb = class {
|
|
|
11365
11420
|
return refreshed;
|
|
11366
11421
|
} : void 0
|
|
11367
11422
|
});
|
|
11423
|
+
this._forEachSyncEngine(name, (engine) => {
|
|
11424
|
+
engine.setCacheInvalidator((collection, id) => comp._invalidateSyncApplied(collection, id));
|
|
11425
|
+
});
|
|
11368
11426
|
await comp._initGuards(this.options.guardStrategies ?? []);
|
|
11369
11427
|
await comp._initDerivations(this.options.derivationStrategies ?? []);
|
|
11370
11428
|
await comp._initMaterializedViews(this.options.materializedViewStrategies ?? []);
|
|
@@ -12404,7 +12462,7 @@ var Noydb = class {
|
|
|
12404
12462
|
"setPublicEnvelope: the public-envelope feature is not enabled. Pass `publicEnvelope: true` (or a schema object) to `createNoydb`."
|
|
12405
12463
|
);
|
|
12406
12464
|
}
|
|
12407
|
-
const { loadPublicEnvelope, savePublicEnvelope, resolveSchema, validatePublicEnvelopeInput } = await import("./public-envelope-
|
|
12465
|
+
const { loadPublicEnvelope, savePublicEnvelope, resolveSchema, validatePublicEnvelopeInput } = await import("./public-envelope-CBRIJORQ.js");
|
|
12408
12466
|
const schema = resolveSchema(this.options.publicEnvelope);
|
|
12409
12467
|
validatePublicEnvelopeInput(input, schema);
|
|
12410
12468
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -12433,7 +12491,7 @@ var Noydb = class {
|
|
|
12433
12491
|
* regardless).
|
|
12434
12492
|
*/
|
|
12435
12493
|
async getPublicEnvelope(vault, opts = {}) {
|
|
12436
|
-
const { readPublicEnvelope } = await import("./public-envelope-
|
|
12494
|
+
const { readPublicEnvelope } = await import("./public-envelope-CBRIJORQ.js");
|
|
12437
12495
|
return readPublicEnvelope(this.options.store, vault, opts);
|
|
12438
12496
|
}
|
|
12439
12497
|
// ─── Auth introspection ─────────────────────────────────────────
|
|
@@ -12624,9 +12682,9 @@ async function createNoydb(options) {
|
|
|
12624
12682
|
throw new ValidationError("A secret (passphrase) or getKeyring callback is required when encryption is enabled");
|
|
12625
12683
|
}
|
|
12626
12684
|
if (!options.coordinationStrategy) options = { ...options, coordinationStrategy: await createDefaultCoordinationProvider(options.store) };
|
|
12627
|
-
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-
|
|
12685
|
+
if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-Z66JMGOU.js")).createUserApi };
|
|
12628
12686
|
if (!options.policyFactory) {
|
|
12629
|
-
const policyModule = await import("./policy-
|
|
12687
|
+
const policyModule = await import("./policy-SXPLTQS4.js");
|
|
12630
12688
|
options = { ...options, policyFactory: policyModule.createNoydbPolicy, policyCheckGateFn: policyModule.checkGate };
|
|
12631
12689
|
}
|
|
12632
12690
|
return new Noydb(options);
|
|
@@ -12661,4 +12719,4 @@ export {
|
|
|
12661
12719
|
Noydb,
|
|
12662
12720
|
createNoydb
|
|
12663
12721
|
};
|
|
12664
|
-
//# sourceMappingURL=chunk-
|
|
12722
|
+
//# sourceMappingURL=chunk-5K7KZMXG.js.map
|