@nicia-ai/typegraph 0.46.0 → 0.46.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.
- package/dist/backend/drizzle/indexes.cjs +9 -9
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +5 -5
- package/dist/backend/index.cjs +49 -49
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +10 -10
- package/dist/backend/postgres/index.cjs +26 -26
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +33 -33
- package/dist/backend/postgres/pglite-store.d.cts +8 -8
- package/dist/backend/postgres/pglite-store.d.ts +8 -8
- package/dist/backend/postgres/pglite-store.js +29 -29
- package/dist/backend/postgres/pglite.cjs +15 -15
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +18 -18
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/local-store.cjs +34 -34
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +30 -30
- package/dist/backend/sqlite/local.cjs +16 -16
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +14 -14
- package/dist/{chunk-VCRRKBLN.cjs → chunk-2ZWM2RFH.cjs} +9 -9
- package/dist/{chunk-VCRRKBLN.cjs.map → chunk-2ZWM2RFH.cjs.map} +1 -1
- package/dist/{chunk-TTAITEPJ.cjs → chunk-32UETY6S.cjs} +26 -26
- package/dist/chunk-32UETY6S.cjs.map +1 -0
- package/dist/{chunk-JXA2ZP2Q.js → chunk-36LIJXWC.js} +4 -4
- package/dist/{chunk-JXA2ZP2Q.js.map → chunk-36LIJXWC.js.map} +1 -1
- package/dist/{chunk-Q7Q4WSLJ.cjs → chunk-5PDSCELM.cjs} +18 -14
- package/dist/chunk-5PDSCELM.cjs.map +1 -0
- package/dist/{chunk-775A4ZMN.js → chunk-5ZJOB5YS.js} +4 -4
- package/dist/{chunk-775A4ZMN.js.map → chunk-5ZJOB5YS.js.map} +1 -1
- package/dist/{chunk-J3WZ3FA2.js → chunk-62ZXBMSD.js} +24 -3
- package/dist/chunk-62ZXBMSD.js.map +1 -0
- package/dist/{chunk-7BQXPCGN.cjs → chunk-6BD6ZBKT.cjs} +10 -10
- package/dist/{chunk-7BQXPCGN.cjs.map → chunk-6BD6ZBKT.cjs.map} +1 -1
- package/dist/chunk-6LAXM4J2.cjs +12 -0
- package/dist/{chunk-VQH4VAWD.cjs.map → chunk-6LAXM4J2.cjs.map} +1 -1
- package/dist/{chunk-MSY7FSX4.js → chunk-72WUT4GG.js} +4 -4
- package/dist/{chunk-MSY7FSX4.js.map → chunk-72WUT4GG.js.map} +1 -1
- package/dist/chunk-73MWKDFK.cjs +12 -0
- package/dist/{chunk-A4OC4DVN.cjs.map → chunk-73MWKDFK.cjs.map} +1 -1
- package/dist/{chunk-BKCUOV7A.js → chunk-7TKNK32B.js} +5 -5
- package/dist/{chunk-BKCUOV7A.js.map → chunk-7TKNK32B.js.map} +1 -1
- package/dist/{chunk-JIVMTW7W.js → chunk-A2LJG5GM.js} +9 -9
- package/dist/{chunk-JIVMTW7W.js.map → chunk-A2LJG5GM.js.map} +1 -1
- package/dist/{chunk-XMQSEJCF.cjs → chunk-A4R3H7RU.cjs} +237 -237
- package/dist/{chunk-XMQSEJCF.cjs.map → chunk-A4R3H7RU.cjs.map} +1 -1
- package/dist/{chunk-RMQLSPA2.cjs → chunk-A7NMUYEL.cjs} +27 -27
- package/dist/{chunk-RMQLSPA2.cjs.map → chunk-A7NMUYEL.cjs.map} +1 -1
- package/dist/{chunk-U63GDNRC.cjs → chunk-AF3TWL5C.cjs} +4 -4
- package/dist/{chunk-U63GDNRC.cjs.map → chunk-AF3TWL5C.cjs.map} +1 -1
- package/dist/{chunk-XBYVV3MP.cjs → chunk-ANKOXPCC.cjs} +4 -4
- package/dist/chunk-ANKOXPCC.cjs.map +1 -0
- package/dist/{chunk-OH5E5KIO.js → chunk-AT3MLMJV.js} +10 -10
- package/dist/{chunk-OH5E5KIO.js.map → chunk-AT3MLMJV.js.map} +1 -1
- package/dist/{chunk-UV3SN74I.js → chunk-AU3IJNNP.js} +5 -5
- package/dist/{chunk-UV3SN74I.js.map → chunk-AU3IJNNP.js.map} +1 -1
- package/dist/{chunk-YAAM3M2S.cjs → chunk-BEB4OFZF.cjs} +10 -10
- package/dist/{chunk-YAAM3M2S.cjs.map → chunk-BEB4OFZF.cjs.map} +1 -1
- package/dist/{chunk-7GT72YHH.cjs → chunk-BQM5P2NO.cjs} +169 -167
- package/dist/chunk-BQM5P2NO.cjs.map +1 -0
- package/dist/{chunk-YWGVVALJ.js → chunk-BRN3RGD2.js} +3 -3
- package/dist/{chunk-YWGVVALJ.js.map → chunk-BRN3RGD2.js.map} +1 -1
- package/dist/{chunk-UDISNXDL.cjs → chunk-BZZI7B43.cjs} +47 -47
- package/dist/{chunk-UDISNXDL.cjs.map → chunk-BZZI7B43.cjs.map} +1 -1
- package/dist/{chunk-TQR4KBY2.cjs → chunk-C2ZP5YS6.cjs} +135 -133
- package/dist/chunk-C2ZP5YS6.cjs.map +1 -0
- package/dist/{chunk-PNN7RHVR.cjs → chunk-C4DYN2SD.cjs} +48 -48
- package/dist/{chunk-PNN7RHVR.cjs.map → chunk-C4DYN2SD.cjs.map} +1 -1
- package/dist/{chunk-XDF2UPEQ.cjs → chunk-C6KE2HSQ.cjs} +1364 -1311
- package/dist/chunk-C6KE2HSQ.cjs.map +1 -0
- package/dist/{chunk-LBJKZXDE.cjs → chunk-D6GCNNMK.cjs} +10 -10
- package/dist/{chunk-LBJKZXDE.cjs.map → chunk-D6GCNNMK.cjs.map} +1 -1
- package/dist/{chunk-JZUR7ZWE.js → chunk-DSAWGCMP.js} +3 -3
- package/dist/{chunk-JZUR7ZWE.js.map → chunk-DSAWGCMP.js.map} +1 -1
- package/dist/{chunk-U5SON7R2.cjs → chunk-DYPRZ53S.cjs} +27 -27
- package/dist/{chunk-U5SON7R2.cjs.map → chunk-DYPRZ53S.cjs.map} +1 -1
- package/dist/{chunk-YVWGEQJE.cjs → chunk-E4OSGBCM.cjs} +139 -133
- package/dist/chunk-E4OSGBCM.cjs.map +1 -0
- package/dist/{chunk-YDFDBE6D.js → chunk-EAMVXR5B.js} +4 -4
- package/dist/{chunk-YDFDBE6D.js.map → chunk-EAMVXR5B.js.map} +1 -1
- package/dist/{chunk-NQ6BRJBE.js → chunk-EDHV4CBU.js} +8 -8
- package/dist/{chunk-NQ6BRJBE.js.map → chunk-EDHV4CBU.js.map} +1 -1
- package/dist/{chunk-DCQVHAYQ.js → chunk-EDJDDY6H.js} +4 -4
- package/dist/{chunk-DCQVHAYQ.js.map → chunk-EDJDDY6H.js.map} +1 -1
- package/dist/{chunk-5262ZMTR.js → chunk-EJSYWAEV.js} +5 -5
- package/dist/{chunk-5262ZMTR.js.map → chunk-EJSYWAEV.js.map} +1 -1
- package/dist/{chunk-N3257XE6.cjs → chunk-F36KZDFX.cjs} +91 -91
- package/dist/{chunk-N3257XE6.cjs.map → chunk-F36KZDFX.cjs.map} +1 -1
- package/dist/{chunk-AKLS3BYZ.js → chunk-FA6Z7B5L.js} +3 -3
- package/dist/chunk-FA6Z7B5L.js.map +1 -0
- package/dist/{chunk-ASTI57H3.js → chunk-FCIZNUW5.js} +3 -3
- package/dist/{chunk-ASTI57H3.js.map → chunk-FCIZNUW5.js.map} +1 -1
- package/dist/{chunk-CBTIUB76.js → chunk-FSLTU57P.js} +3 -3
- package/dist/{chunk-CBTIUB76.js.map → chunk-FSLTU57P.js.map} +1 -1
- package/dist/{chunk-2LG2XB2M.js → chunk-FXNHZFZV.js} +3 -3
- package/dist/{chunk-2LG2XB2M.js.map → chunk-FXNHZFZV.js.map} +1 -1
- package/dist/{chunk-BSFJMMV3.cjs → chunk-GVAMRRZR.cjs} +4 -4
- package/dist/{chunk-BSFJMMV3.cjs.map → chunk-GVAMRRZR.cjs.map} +1 -1
- package/dist/{chunk-CNV4TXJG.js → chunk-GWUWRZXW.js} +3 -3
- package/dist/{chunk-CNV4TXJG.js.map → chunk-GWUWRZXW.js.map} +1 -1
- package/dist/{chunk-C23WSN5E.js → chunk-GWXXHOLU.js} +20 -14
- package/dist/chunk-GWXXHOLU.js.map +1 -0
- package/dist/{chunk-ONU3HIED.cjs → chunk-HNYLMPQQ.cjs} +68 -68
- package/dist/{chunk-ONU3HIED.cjs.map → chunk-HNYLMPQQ.cjs.map} +1 -1
- package/dist/{chunk-NMWDXFPH.js → chunk-IHRDX7K6.js} +4 -4
- package/dist/{chunk-NMWDXFPH.js.map → chunk-IHRDX7K6.js.map} +1 -1
- package/dist/{chunk-VGTJPTIC.js → chunk-JCNTKRAK.js} +5 -5
- package/dist/{chunk-VGTJPTIC.js.map → chunk-JCNTKRAK.js.map} +1 -1
- package/dist/{chunk-MXJDTH5B.cjs → chunk-JL5UEBWT.cjs} +45 -45
- package/dist/{chunk-MXJDTH5B.cjs.map → chunk-JL5UEBWT.cjs.map} +1 -1
- package/dist/{chunk-QLRESYPU.js → chunk-KA4L2NZ3.js} +14 -14
- package/dist/{chunk-QLRESYPU.js.map → chunk-KA4L2NZ3.js.map} +1 -1
- package/dist/{chunk-NI72YOJB.cjs → chunk-KCH7WQA5.cjs} +24 -2
- package/dist/chunk-KCH7WQA5.cjs.map +1 -0
- package/dist/{chunk-2NA5DYLO.cjs → chunk-KOAI3KIV.cjs} +4 -4
- package/dist/{chunk-2NA5DYLO.cjs.map → chunk-KOAI3KIV.cjs.map} +1 -1
- package/dist/{chunk-7VQXLT5O.js → chunk-KXSMF6PL.js} +101 -25
- package/dist/chunk-KXSMF6PL.js.map +1 -0
- package/dist/{chunk-WEVQJ5LH.js → chunk-LHYSY6SE.js} +6 -6
- package/dist/chunk-LHYSY6SE.js.map +1 -0
- package/dist/{chunk-WDGA7IYB.js → chunk-LNIWCQR4.js} +3 -3
- package/dist/{chunk-WDGA7IYB.js.map → chunk-LNIWCQR4.js.map} +1 -1
- package/dist/{chunk-XNSI2FJO.cjs → chunk-N3QTGPC7.cjs} +99 -99
- package/dist/{chunk-XNSI2FJO.cjs.map → chunk-N3QTGPC7.cjs.map} +1 -1
- package/dist/{chunk-K5ELX2GT.js → chunk-OZJCH7ZS.js} +3 -3
- package/dist/{chunk-K5ELX2GT.js.map → chunk-OZJCH7ZS.js.map} +1 -1
- package/dist/{chunk-62ZP23AW.cjs → chunk-PYKF7UIL.cjs} +13 -13
- package/dist/{chunk-62ZP23AW.cjs.map → chunk-PYKF7UIL.cjs.map} +1 -1
- package/dist/{chunk-PQBQG7IM.js → chunk-QOJ2L2AD.js} +3 -3
- package/dist/{chunk-PQBQG7IM.js.map → chunk-QOJ2L2AD.js.map} +1 -1
- package/dist/{chunk-XNLIZYRZ.cjs → chunk-QPOQX2DI.cjs} +235 -235
- package/dist/{chunk-XNLIZYRZ.cjs.map → chunk-QPOQX2DI.cjs.map} +1 -1
- package/dist/{chunk-NFCVHQ5P.cjs → chunk-QU7QLJA4.cjs} +26 -26
- package/dist/{chunk-NFCVHQ5P.cjs.map → chunk-QU7QLJA4.cjs.map} +1 -1
- package/dist/{chunk-DLNROMQ7.js → chunk-R7EWHKID.js} +7 -4
- package/dist/chunk-R7EWHKID.js.map +1 -0
- package/dist/{chunk-HFHTMECK.js → chunk-RFDEYLIK.js} +7 -7
- package/dist/{chunk-HFHTMECK.js.map → chunk-RFDEYLIK.js.map} +1 -1
- package/dist/{chunk-MUK4BU7K.cjs → chunk-RHDOAQCT.cjs} +200 -124
- package/dist/chunk-RHDOAQCT.cjs.map +1 -0
- package/dist/{chunk-YBFHZUXX.js → chunk-S3G5VLSW.js} +6 -6
- package/dist/{chunk-YBFHZUXX.js.map → chunk-S3G5VLSW.js.map} +1 -1
- package/dist/{chunk-M4BDU5RX.cjs → chunk-S7WIRFNS.cjs} +12 -12
- package/dist/{chunk-M4BDU5RX.cjs.map → chunk-S7WIRFNS.cjs.map} +1 -1
- package/dist/{chunk-T4XNKYXB.js → chunk-SXWLLQ3D.js} +4 -4
- package/dist/{chunk-T4XNKYXB.js.map → chunk-SXWLLQ3D.js.map} +1 -1
- package/dist/{chunk-NK5Q7UNE.cjs → chunk-TCT66A7N.cjs} +10 -10
- package/dist/{chunk-NK5Q7UNE.cjs.map → chunk-TCT66A7N.cjs.map} +1 -1
- package/dist/{chunk-3DHZCOT7.cjs → chunk-UTVQPZPN.cjs} +20 -20
- package/dist/{chunk-3DHZCOT7.cjs.map → chunk-UTVQPZPN.cjs.map} +1 -1
- package/dist/{chunk-CXBHOOIQ.cjs → chunk-WA64ZSCA.cjs} +11 -11
- package/dist/{chunk-CXBHOOIQ.cjs.map → chunk-WA64ZSCA.cjs.map} +1 -1
- package/dist/{chunk-QWX5YA3K.js → chunk-WEJHA7AD.js} +18 -16
- package/dist/chunk-WEJHA7AD.js.map +1 -0
- package/dist/{chunk-5UVRGXD3.js → chunk-WHS2Y43J.js} +5 -5
- package/dist/{chunk-5UVRGXD3.js.map → chunk-WHS2Y43J.js.map} +1 -1
- package/dist/{chunk-I5MOXA4H.js → chunk-WMKEGJG4.js} +3 -3
- package/dist/{chunk-I5MOXA4H.js.map → chunk-WMKEGJG4.js.map} +1 -1
- package/dist/{chunk-5763DULU.js → chunk-WYFB7BN3.js} +16 -14
- package/dist/chunk-WYFB7BN3.js.map +1 -0
- package/dist/{chunk-XQSCL77R.cjs → chunk-XBHRKLZU.cjs} +4 -4
- package/dist/{chunk-XQSCL77R.cjs.map → chunk-XBHRKLZU.cjs.map} +1 -1
- package/dist/{chunk-7Z5OR7KO.js → chunk-YQ4JONWE.js} +102 -49
- package/dist/chunk-YQ4JONWE.js.map +1 -0
- package/dist/{chunk-RJS7DECT.js → chunk-Z43KWLZF.js} +8 -8
- package/dist/{chunk-RJS7DECT.js.map → chunk-Z43KWLZF.js.map} +1 -1
- package/dist/{chunk-E4WNQBEF.cjs → chunk-ZBVZ7HXD.cjs} +12 -12
- package/dist/{chunk-E4WNQBEF.cjs.map → chunk-ZBVZ7HXD.cjs.map} +1 -1
- package/dist/{chunk-4UGOKMI5.cjs → chunk-ZHOAZD7Q.cjs} +161 -161
- package/dist/{chunk-4UGOKMI5.cjs.map → chunk-ZHOAZD7Q.cjs.map} +1 -1
- package/dist/{chunk-XCAGZAKP.cjs → chunk-ZIH42CRX.cjs} +7 -7
- package/dist/{chunk-XCAGZAKP.cjs.map → chunk-ZIH42CRX.cjs.map} +1 -1
- package/dist/core/index.cjs +27 -27
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +7 -7
- package/dist/{ddl-BJcOp4WZ.d.cts → ddl-mE07h_EM.d.cts} +3 -3
- package/dist/{ddl-BXfGHbPN.d.ts → ddl-opIn8DfX.d.ts} +3 -3
- package/dist/graph-extension/index.cjs +20 -20
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +4 -4
- package/dist/graph-merge/index.cjs +248 -248
- package/dist/graph-merge/index.d.cts +8 -8
- package/dist/graph-merge/index.d.ts +8 -8
- package/dist/graph-merge/index.js +24 -24
- package/dist/{index-DxaYCv8Y.d.cts → index-Deyu8IXL.d.ts} +20 -3
- package/dist/{index-BSHvKfok.d.ts → index-DrRS51Ld.d.cts} +20 -3
- package/dist/index.cjs +219 -215
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +34 -34
- package/dist/indexes/index.cjs +13 -13
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +6 -6
- package/dist/interchange/index.cjs +52 -52
- package/dist/interchange/index.d.cts +7 -7
- package/dist/interchange/index.d.ts +7 -7
- package/dist/interchange/index.js +16 -16
- package/dist/{manager-CfZAimti.d.ts → manager-DX983gJ0.d.ts} +2 -2
- package/dist/{manager-HGk6E_HW.d.cts → manager-ptr3JLRP.d.cts} +2 -2
- package/dist/{materialize-indexes-6A7dWGtb.d.cts → materialize-indexes-BXz77YqO.d.cts} +1 -1
- package/dist/{materialize-indexes-BMJP6Tms.d.ts → materialize-indexes-CpXoggWU.d.ts} +1 -1
- package/dist/{postgres-DFYWENdR.d.cts → postgres-DwgEXSPI.d.cts} +1 -1
- package/dist/{postgres-e7a9TdvR.d.ts → postgres-QdOMHTBz.d.ts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +42 -42
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +9 -9
- package/dist/schema/index.cjs +44 -44
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +17 -17
- package/dist/{searchable-9OQoPuRs.d.ts → searchable-BOUuA83f.d.ts} +1 -1
- package/dist/{searchable-CIje5XYD.d.cts → searchable-BrUh0pdc.d.cts} +1 -1
- package/dist/{sqlite-DerU5tc7.d.ts → sqlite-BfYcV61E.d.cts} +1 -1
- package/dist/{sqlite-DitnISa9.d.cts → sqlite-DK40XVR1.d.ts} +1 -1
- package/dist/{store-DawaWWjJ.d.ts → store-Bo1psfVZ.d.ts} +27 -8
- package/dist/{store-RwTJx8LX.d.cts → store-FTqBpuJD.d.cts} +27 -8
- package/dist/{temporal-Bn-Fi8FJ.d.cts → temporal-CXewwLTB.d.cts} +1 -1
- package/dist/{temporal-BtM4UALv.d.ts → temporal-DPtn0HOu.d.ts} +1 -1
- package/dist/{types-KFfk-8Ah.d.ts → types-CeT7xM4M.d.ts} +1 -1
- package/dist/{types-HkveCCx0.d.cts → types-Du78EvpN.d.cts} +7 -6
- package/dist/{types-HkveCCx0.d.ts → types-Du78EvpN.d.ts} +7 -6
- package/dist/{types-CoIx8HX5.d.cts → types-XR1nHERK.d.cts} +1 -1
- package/dist/{where--fk7_0kv.d.cts → where-CJsp-YUf.d.cts} +1 -1
- package/dist/{where-ws5hf-Ov.d.ts → where-CMbFiWwp.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-5763DULU.js.map +0 -1
- package/dist/chunk-7GT72YHH.cjs.map +0 -1
- package/dist/chunk-7VQXLT5O.js.map +0 -1
- package/dist/chunk-7Z5OR7KO.js.map +0 -1
- package/dist/chunk-A4OC4DVN.cjs +0 -12
- package/dist/chunk-AKLS3BYZ.js.map +0 -1
- package/dist/chunk-C23WSN5E.js.map +0 -1
- package/dist/chunk-DLNROMQ7.js.map +0 -1
- package/dist/chunk-J3WZ3FA2.js.map +0 -1
- package/dist/chunk-MUK4BU7K.cjs.map +0 -1
- package/dist/chunk-NI72YOJB.cjs.map +0 -1
- package/dist/chunk-Q7Q4WSLJ.cjs.map +0 -1
- package/dist/chunk-QWX5YA3K.js.map +0 -1
- package/dist/chunk-TQR4KBY2.cjs.map +0 -1
- package/dist/chunk-TTAITEPJ.cjs.map +0 -1
- package/dist/chunk-VQH4VAWD.cjs +0 -12
- package/dist/chunk-WEVQJ5LH.js.map +0 -1
- package/dist/chunk-XBYVV3MP.cjs.map +0 -1
- package/dist/chunk-XDF2UPEQ.cjs.map +0 -1
- package/dist/chunk-YVWGEQJE.cjs.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
3
|
+
var chunkBQM5P2NO_cjs = require('./chunk-BQM5P2NO.cjs');
|
|
4
|
+
var chunk32UETY6S_cjs = require('./chunk-32UETY6S.cjs');
|
|
5
|
+
var chunkQPOQX2DI_cjs = require('./chunk-QPOQX2DI.cjs');
|
|
6
|
+
var chunkANKOXPCC_cjs = require('./chunk-ANKOXPCC.cjs');
|
|
7
|
+
var chunkWA64ZSCA_cjs = require('./chunk-WA64ZSCA.cjs');
|
|
8
|
+
var chunkZBVZ7HXD_cjs = require('./chunk-ZBVZ7HXD.cjs');
|
|
9
|
+
var chunk5PDSCELM_cjs = require('./chunk-5PDSCELM.cjs');
|
|
10
|
+
var chunkKCH7WQA5_cjs = require('./chunk-KCH7WQA5.cjs');
|
|
11
11
|
var chunkN66HCGCY_cjs = require('./chunk-N66HCGCY.cjs');
|
|
12
12
|
var zod = require('zod');
|
|
13
13
|
|
|
14
14
|
var FORMAT_VERSION = "2.0";
|
|
15
15
|
var AcceptedFormatVersionSchema = zod.z.enum(["1.0", "2.0"]);
|
|
16
|
-
var ValidityTimestampSchema = zod.z.iso.datetime().refine((value) =>
|
|
16
|
+
var ValidityTimestampSchema = zod.z.iso.datetime().refine((value) => chunk5PDSCELM_cjs.isCanonicalIsoDate(value), {
|
|
17
17
|
message: "Expected canonical UTC ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ); convert with new Date(value).toISOString()."
|
|
18
18
|
});
|
|
19
19
|
var InterchangeNodeSchema = zod.z.object({
|
|
@@ -239,8 +239,8 @@ async function importGraph(store, data, rawOptions) {
|
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
241
|
async function withImportStreamLease(store, run) {
|
|
242
|
-
const lease =
|
|
243
|
-
|
|
242
|
+
const lease = chunkANKOXPCC_cjs.acquireSerializedStreamLease(
|
|
243
|
+
chunk32UETY6S_cjs.storeBackend(store),
|
|
244
244
|
"import-stream"
|
|
245
245
|
);
|
|
246
246
|
if (!lease.acquired) {
|
|
@@ -263,13 +263,13 @@ async function importGraphData(store, data, options) {
|
|
|
263
263
|
const errors = [];
|
|
264
264
|
const graph = store.graph;
|
|
265
265
|
const graphId = store.graphId;
|
|
266
|
-
const backend =
|
|
267
|
-
const runtime =
|
|
266
|
+
const backend = chunk32UETY6S_cjs.storeBackend(store);
|
|
267
|
+
const runtime = chunk32UETY6S_cjs.storeRuntime(store);
|
|
268
268
|
const registry = store.registry;
|
|
269
269
|
const nodeSchemas = buildNodeSchemaMap(graph);
|
|
270
270
|
const edgeSchemas = buildEdgeSchemaMap(graph);
|
|
271
271
|
const importedNodeIds = /* @__PURE__ */ new Set();
|
|
272
|
-
await
|
|
272
|
+
await chunkQPOQX2DI_cjs.runInWriteTransaction(
|
|
273
273
|
{
|
|
274
274
|
graphId,
|
|
275
275
|
schemaVersion: store.introspect().schemaVersion,
|
|
@@ -332,8 +332,8 @@ async function importGraphData(store, data, options) {
|
|
|
332
332
|
async function importGraphStream(store, chunks, rawOptions) {
|
|
333
333
|
const options = ImportOptionsSchema.parse(rawOptions);
|
|
334
334
|
const sourceBackend = exportStreamBackend(chunks);
|
|
335
|
-
const targetBackend =
|
|
336
|
-
const contention = sourceBackend === void 0 ? void 0 :
|
|
335
|
+
const targetBackend = chunk32UETY6S_cjs.storeBackend(store);
|
|
336
|
+
const contention = sourceBackend === void 0 ? void 0 : chunkANKOXPCC_cjs.snapshotExportContention(sourceBackend, targetBackend);
|
|
337
337
|
if (contention !== void 0) {
|
|
338
338
|
throw serializedStreamRefusal({
|
|
339
339
|
graphId: store.graphId,
|
|
@@ -350,7 +350,7 @@ async function importGraphStream(store, chunks, rawOptions) {
|
|
|
350
350
|
try {
|
|
351
351
|
for await (const chunk of chunks) {
|
|
352
352
|
if (releaseImportLease === void 0) {
|
|
353
|
-
const lease =
|
|
353
|
+
const lease = chunkANKOXPCC_cjs.acquireSerializedStreamLease(
|
|
354
354
|
targetBackend,
|
|
355
355
|
"import-stream"
|
|
356
356
|
);
|
|
@@ -480,7 +480,7 @@ function serializedStreamRefusal(input) {
|
|
|
480
480
|
requested,
|
|
481
481
|
heldBy
|
|
482
482
|
);
|
|
483
|
-
return new
|
|
483
|
+
return new chunkKCH7WQA5_cjs.ConfigurationError(
|
|
484
484
|
message,
|
|
485
485
|
{ code, graphId, requested, heldBy },
|
|
486
486
|
{ suggestion }
|
|
@@ -515,7 +515,7 @@ function throwIfStreamChunkFailed(result, options) {
|
|
|
515
515
|
}
|
|
516
516
|
function assertIdentityImportSupported(store, hasIdentitySection) {
|
|
517
517
|
if (hasIdentitySection && store.graph.identity === void 0) {
|
|
518
|
-
throw new
|
|
518
|
+
throw new chunkKCH7WQA5_cjs.ConfigurationError(
|
|
519
519
|
"Cannot import identity assertions into an identity-disabled graph.",
|
|
520
520
|
{ code: "IDENTITY_IMPORT_REQUIRES_PROFILE", graphId: store.graphId }
|
|
521
521
|
);
|
|
@@ -525,7 +525,7 @@ function validateIdentitySection(identity) {
|
|
|
525
525
|
if (identity === void 0) return;
|
|
526
526
|
const parsed = InterchangeIdentitySchema.safeParse(identity);
|
|
527
527
|
if (parsed.success) return;
|
|
528
|
-
throw new
|
|
528
|
+
throw new chunkKCH7WQA5_cjs.ValidationError(
|
|
529
529
|
`Invalid identity interchange section: ${parsed.error.message}`,
|
|
530
530
|
{
|
|
531
531
|
issues: parsed.error.issues.map((issue) => ({
|
|
@@ -551,19 +551,19 @@ function identityImportError(assertion, graphId, message) {
|
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
function isIdConflictError(error) {
|
|
554
|
-
return error instanceof
|
|
554
|
+
return error instanceof chunkKCH7WQA5_cjs.ConfigurationError && error.details["code"] === IDENTITY_IMPORT_ID_CONFLICT_CODE;
|
|
555
555
|
}
|
|
556
556
|
function touchesRef(assertion, ref) {
|
|
557
557
|
return assertion.a.kind === ref.kind && assertion.a.id === ref.id || assertion.b.kind === ref.kind && assertion.b.id === ref.id;
|
|
558
558
|
}
|
|
559
559
|
function asIdentityImportError(assertions, graphId, error) {
|
|
560
560
|
const tagged = taggedAssertion(assertions, error);
|
|
561
|
-
if (error instanceof
|
|
561
|
+
if (error instanceof chunkKCH7WQA5_cjs.NodeNotFoundError) {
|
|
562
562
|
const ref = error.details;
|
|
563
563
|
const assertion = tagged ?? assertions.find((candidate) => touchesRef(candidate, ref));
|
|
564
564
|
return identityImportError(assertion, graphId, error.message);
|
|
565
565
|
}
|
|
566
|
-
if (error instanceof
|
|
566
|
+
if (error instanceof chunkKCH7WQA5_cjs.IdentityContradictionError) {
|
|
567
567
|
const { a, b } = error.details;
|
|
568
568
|
const assertion = tagged ?? assertions.find(
|
|
569
569
|
(candidate) => touchesRef(candidate, a) && touchesRef(candidate, b)
|
|
@@ -589,12 +589,12 @@ function asIdentityImportError(assertions, graphId, error) {
|
|
|
589
589
|
}
|
|
590
590
|
function taggedAssertion(assertions, error) {
|
|
591
591
|
if (typeof error !== "object" || error === null) return void 0;
|
|
592
|
-
const id = error[
|
|
592
|
+
const id = error[chunkQPOQX2DI_cjs.IDENTITY_IMPORT_FAILED_ASSERTION];
|
|
593
593
|
if (typeof id !== "string") return void 0;
|
|
594
594
|
return assertions.find((candidate) => candidate.id === id);
|
|
595
595
|
}
|
|
596
596
|
function isIdentityAssertionValidationError(error) {
|
|
597
|
-
return error instanceof
|
|
597
|
+
return error instanceof chunkKCH7WQA5_cjs.ValidationError && error.details.issues.length > 0 && error.details.issues.every(
|
|
598
598
|
(issue) => issue.path === "identity.assertions" && issue.assertionId !== void 0
|
|
599
599
|
);
|
|
600
600
|
}
|
|
@@ -620,7 +620,7 @@ function identityImportProgress(error) {
|
|
|
620
620
|
if (typeof error !== "object" || error === null) {
|
|
621
621
|
return { created: 0, skipped: 0 };
|
|
622
622
|
}
|
|
623
|
-
const progress = error[
|
|
623
|
+
const progress = error[chunkQPOQX2DI_cjs.IDENTITY_IMPORT_PROGRESS];
|
|
624
624
|
if (typeof progress !== "object" || progress === null || !("created" in progress) || typeof progress.created !== "number" || !("skipped" in progress) || typeof progress.skipped !== "number") {
|
|
625
625
|
return { created: 0, skipped: 0 };
|
|
626
626
|
}
|
|
@@ -629,7 +629,7 @@ function identityImportProgress(error) {
|
|
|
629
629
|
function validateStreamHeader(header) {
|
|
630
630
|
const parsed = GraphDataHeaderSchema.safeParse(header);
|
|
631
631
|
if (parsed.success) return;
|
|
632
|
-
throw new
|
|
632
|
+
throw new chunkKCH7WQA5_cjs.ValidationError(
|
|
633
633
|
`Invalid graph interchange stream header: ${parsed.error.message}`,
|
|
634
634
|
{
|
|
635
635
|
issues: parsed.error.issues.map((issue) => ({
|
|
@@ -689,7 +689,7 @@ async function refreshStatisticsAfterImport(store, options, result, surface) {
|
|
|
689
689
|
}
|
|
690
690
|
function buildNodeSchemaMap(graph) {
|
|
691
691
|
const map = /* @__PURE__ */ new Map();
|
|
692
|
-
for (const kindName of
|
|
692
|
+
for (const kindName of chunkWA64ZSCA_cjs.getNodeKinds(graph)) {
|
|
693
693
|
const registration = graph.nodes[kindName];
|
|
694
694
|
map.set(kindName, {
|
|
695
695
|
registration,
|
|
@@ -700,7 +700,7 @@ function buildNodeSchemaMap(graph) {
|
|
|
700
700
|
}
|
|
701
701
|
function buildEdgeSchemaMap(graph) {
|
|
702
702
|
const map = /* @__PURE__ */ new Map();
|
|
703
|
-
for (const kindName of
|
|
703
|
+
for (const kindName of chunkWA64ZSCA_cjs.getEdgeKinds(graph)) {
|
|
704
704
|
const registration = graph.edges[kindName];
|
|
705
705
|
map.set(kindName, {
|
|
706
706
|
registration,
|
|
@@ -822,8 +822,8 @@ async function processNodeSlice(backend, graphId, registry, batch, schemas, opti
|
|
|
822
822
|
registerAppliedNodeUpdate,
|
|
823
823
|
seedNodeRow,
|
|
824
824
|
seedUniqueRow
|
|
825
|
-
} =
|
|
826
|
-
await
|
|
825
|
+
} = chunkBQM5P2NO_cjs.createNodeBatchValidationBackend(graphId, registry, backend);
|
|
826
|
+
await chunkBQM5P2NO_cjs.primeBatchValidationCaches(
|
|
827
827
|
{ graphId, registry },
|
|
828
828
|
candidates.map((candidate) => candidate.draft),
|
|
829
829
|
backend,
|
|
@@ -844,7 +844,7 @@ async function processNodeSlice(backend, graphId, registry, batch, schemas, opti
|
|
|
844
844
|
case "skip": {
|
|
845
845
|
record(node, {
|
|
846
846
|
status: "skipped",
|
|
847
|
-
liveTarget:
|
|
847
|
+
liveTarget: chunkANKOXPCC_cjs.isLiveNodeRow(existing)
|
|
848
848
|
});
|
|
849
849
|
break;
|
|
850
850
|
}
|
|
@@ -856,7 +856,7 @@ async function processNodeSlice(backend, graphId, registry, batch, schemas, opti
|
|
|
856
856
|
break;
|
|
857
857
|
}
|
|
858
858
|
case "update": {
|
|
859
|
-
if (!
|
|
859
|
+
if (!chunkANKOXPCC_cjs.isLiveNodeRow(existing)) {
|
|
860
860
|
record(node, { status: "skipped", liveTarget: false });
|
|
861
861
|
break;
|
|
862
862
|
}
|
|
@@ -891,7 +891,7 @@ async function processNodeSlice(backend, graphId, registry, batch, schemas, opti
|
|
|
891
891
|
registerAppliedNodeUpdate(
|
|
892
892
|
node.kind,
|
|
893
893
|
node.id,
|
|
894
|
-
|
|
894
|
+
chunkANKOXPCC_cjs.rowPropsToObject(existing.props),
|
|
895
895
|
props,
|
|
896
896
|
uniqueConstraints
|
|
897
897
|
);
|
|
@@ -906,7 +906,7 @@ async function processNodeSlice(backend, graphId, registry, batch, schemas, opti
|
|
|
906
906
|
continue;
|
|
907
907
|
}
|
|
908
908
|
const uniquenessResult = await catchUniquenessError(
|
|
909
|
-
() =>
|
|
909
|
+
() => chunk32UETY6S_cjs.checkUniquenessConstraints(
|
|
910
910
|
{ graphId, registry, backend: validationBackend },
|
|
911
911
|
node.kind,
|
|
912
912
|
node.id,
|
|
@@ -933,7 +933,7 @@ async function processNodeSlice(backend, graphId, registry, batch, schemas, opti
|
|
|
933
933
|
} else {
|
|
934
934
|
await backend.insertNodesBatch(insertParamsList);
|
|
935
935
|
}
|
|
936
|
-
await
|
|
936
|
+
await chunk32UETY6S_cjs.applyNodeInsertSideEffectsBatch(
|
|
937
937
|
writeContext,
|
|
938
938
|
accepted.map((candidate) => ({
|
|
939
939
|
kind: candidate.node.kind,
|
|
@@ -978,7 +978,7 @@ async function catchUniquenessError(fn) {
|
|
|
978
978
|
try {
|
|
979
979
|
return { ok: true, value: await fn() };
|
|
980
980
|
} catch (error) {
|
|
981
|
-
if (error instanceof
|
|
981
|
+
if (error instanceof chunkKCH7WQA5_cjs.UniquenessError) {
|
|
982
982
|
return { ok: false, error: error.message };
|
|
983
983
|
}
|
|
984
984
|
throw error;
|
|
@@ -988,7 +988,7 @@ var NODE_UPDATE_TARGET_CHANGED_CODE = "INTERCHANGE_NODE_UPDATE_TARGET_CHANGED";
|
|
|
988
988
|
async function updateImportedNode(writeContext, backend, node, args) {
|
|
989
989
|
try {
|
|
990
990
|
const result = await catchUniquenessError(
|
|
991
|
-
() =>
|
|
991
|
+
() => chunk32UETY6S_cjs.applyNodeUpdate(
|
|
992
992
|
writeContext,
|
|
993
993
|
{
|
|
994
994
|
existing: args.existing,
|
|
@@ -1003,7 +1003,7 @@ async function updateImportedNode(writeContext, backend, node, args) {
|
|
|
1003
1003
|
);
|
|
1004
1004
|
return result.ok ? void 0 : result.error;
|
|
1005
1005
|
} catch (error) {
|
|
1006
|
-
if (!(error instanceof
|
|
1006
|
+
if (!(error instanceof chunkKCH7WQA5_cjs.DatabaseOperationError) || error.details.reason !== "no_row_returned") {
|
|
1007
1007
|
throw error;
|
|
1008
1008
|
}
|
|
1009
1009
|
return `${NODE_UPDATE_TARGET_CHANGED_CODE}: Node "${node.kind}:${node.id}" was not updated: no live node matching the id and the validity bound this import checked remained when the write ran, so the row changed or was removed after it was checked. Re-export the source and retry.`;
|
|
@@ -1039,7 +1039,7 @@ async function updateImportedEdge(backend, graphId, edge, props, windowFence) {
|
|
|
1039
1039
|
});
|
|
1040
1040
|
return void 0;
|
|
1041
1041
|
} catch (error) {
|
|
1042
|
-
if (!(error instanceof
|
|
1042
|
+
if (!(error instanceof chunkKCH7WQA5_cjs.DatabaseOperationError) || error.details.reason !== "no_row_returned") {
|
|
1043
1043
|
throw error;
|
|
1044
1044
|
}
|
|
1045
1045
|
return `${EDGE_IDENTITY_CONFLICT_CODE}: Edge "${edge.id}" of kind "${edge.kind}" from "${edge.from.kind}:${edge.from.id}" to "${edge.to.kind}:${edge.to.id}" was not updated: no live edge matching the identity and the validity bound this import checked remained when the write ran, so the row changed or was removed after it was checked. Re-export the source and retry.`;
|
|
@@ -1049,9 +1049,9 @@ function windowResultOf(assert) {
|
|
|
1049
1049
|
try {
|
|
1050
1050
|
return { ok: true, value: assert() };
|
|
1051
1051
|
} catch (error) {
|
|
1052
|
-
if (error instanceof
|
|
1052
|
+
if (error instanceof chunkKCH7WQA5_cjs.ValidationError) {
|
|
1053
1053
|
const coded = error.details.issues.find(
|
|
1054
|
-
(issue) => issue.code ===
|
|
1054
|
+
(issue) => issue.code === chunkKCH7WQA5_cjs.INVERTED_VALIDITY_WINDOW_CODE || issue.code === chunkKCH7WQA5_cjs.IMMUTABLE_VALIDITY_LOWER_BOUND_CODE
|
|
1055
1055
|
);
|
|
1056
1056
|
if (coded !== void 0) {
|
|
1057
1057
|
return { ok: false, error: `${coded.code}: ${error.message}` };
|
|
@@ -1069,12 +1069,12 @@ function windowErrorOf(assert) {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
function validateValidityWindow(entity) {
|
|
1071
1071
|
return windowErrorOf(() => {
|
|
1072
|
-
|
|
1072
|
+
chunk5PDSCELM_cjs.validateOptionalCanonicalIsoDate(
|
|
1073
1073
|
entity.validFrom ?? void 0,
|
|
1074
1074
|
"validFrom"
|
|
1075
1075
|
);
|
|
1076
|
-
|
|
1077
|
-
|
|
1076
|
+
chunk5PDSCELM_cjs.validateOptionalCanonicalIsoDate(entity.validTo, "validTo");
|
|
1077
|
+
chunk5PDSCELM_cjs.assertOrderedValidityWindow(
|
|
1078
1078
|
`${entity.kind} "${entity.id}"`,
|
|
1079
1079
|
entity.validFrom ?? void 0,
|
|
1080
1080
|
entity.validTo
|
|
@@ -1083,7 +1083,7 @@ function validateValidityWindow(entity) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
function validateUpdateValidityWindow(entity, storedValidFrom) {
|
|
1085
1085
|
const verdict = windowResultOf(
|
|
1086
|
-
() =>
|
|
1086
|
+
() => chunk5PDSCELM_cjs.assertWritableValidityWindow(
|
|
1087
1087
|
`${entity.kind} "${entity.id}"`,
|
|
1088
1088
|
entity.validFrom ?? void 0,
|
|
1089
1089
|
{
|
|
@@ -1122,7 +1122,7 @@ async function processNode(backend, graphId, registry, node, schemas, options, l
|
|
|
1122
1122
|
if (existing) {
|
|
1123
1123
|
switch (options.onConflict) {
|
|
1124
1124
|
case "skip": {
|
|
1125
|
-
return { status: "skipped", liveTarget:
|
|
1125
|
+
return { status: "skipped", liveTarget: chunkANKOXPCC_cjs.isLiveNodeRow(existing) };
|
|
1126
1126
|
}
|
|
1127
1127
|
case "error": {
|
|
1128
1128
|
return {
|
|
@@ -1131,7 +1131,7 @@ async function processNode(backend, graphId, registry, node, schemas, options, l
|
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
1133
|
case "update": {
|
|
1134
|
-
if (!
|
|
1134
|
+
if (!chunkANKOXPCC_cjs.isLiveNodeRow(existing)) {
|
|
1135
1135
|
return { status: "skipped", liveTarget: false };
|
|
1136
1136
|
}
|
|
1137
1137
|
const updateWindow = validateUpdateValidityWindow(
|
|
@@ -1161,7 +1161,7 @@ async function processNode(backend, graphId, registry, node, schemas, options, l
|
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
1163
|
const uniquenessResult = await catchUniquenessError(
|
|
1164
|
-
() =>
|
|
1164
|
+
() => chunk32UETY6S_cjs.checkUniquenessConstraints(
|
|
1165
1165
|
{ graphId, registry, backend },
|
|
1166
1166
|
node.kind,
|
|
1167
1167
|
node.id,
|
|
@@ -1180,7 +1180,7 @@ async function processNode(backend, graphId, registry, node, schemas, options, l
|
|
|
1180
1180
|
...node.validFrom !== void 0 && { validFrom: node.validFrom },
|
|
1181
1181
|
...node.validTo !== void 0 && { validTo: node.validTo }
|
|
1182
1182
|
});
|
|
1183
|
-
await
|
|
1183
|
+
await chunk32UETY6S_cjs.applyNodeInsertSideEffects(
|
|
1184
1184
|
writeContext,
|
|
1185
1185
|
{
|
|
1186
1186
|
kind: node.kind,
|
|
@@ -1266,7 +1266,7 @@ async function processEdgeSlice(backend, graphId, registry, batch, edgeSchemas,
|
|
|
1266
1266
|
});
|
|
1267
1267
|
continue;
|
|
1268
1268
|
}
|
|
1269
|
-
const endpointError =
|
|
1269
|
+
const endpointError = chunkZBVZ7HXD_cjs.validateEdgeEndpoints(
|
|
1270
1270
|
edge.kind,
|
|
1271
1271
|
edge.from.kind,
|
|
1272
1272
|
edge.to.kind,
|
|
@@ -1315,7 +1315,7 @@ async function processEdgeSlice(backend, graphId, registry, batch, edgeSchemas,
|
|
|
1315
1315
|
for (const [kind, ids] of idsByKind) {
|
|
1316
1316
|
const rows = await backend.getNodes(graphId, kind, [...ids]);
|
|
1317
1317
|
for (const row of rows) {
|
|
1318
|
-
if (
|
|
1318
|
+
if (chunkANKOXPCC_cjs.isLiveNodeRow(row)) {
|
|
1319
1319
|
liveEndpointKeys.add(makeNodeKey(kind, row.id));
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
@@ -1326,7 +1326,7 @@ async function processEdgeSlice(backend, graphId, registry, batch, edgeSchemas,
|
|
|
1326
1326
|
if (importedNodeIds.has(key)) return true;
|
|
1327
1327
|
if (checkedEndpointKeys.has(key)) return liveEndpointKeys.has(key);
|
|
1328
1328
|
const row = await backend.getNode(graphId, endpoint.kind, endpoint.id);
|
|
1329
|
-
return row !== void 0 &&
|
|
1329
|
+
return row !== void 0 && chunkANKOXPCC_cjs.isLiveNodeRow(row);
|
|
1330
1330
|
};
|
|
1331
1331
|
const existingById = /* @__PURE__ */ new Map();
|
|
1332
1332
|
if (candidates.length > 0 && backend.getEdges !== void 0) {
|
|
@@ -1468,7 +1468,7 @@ async function processEdge(backend, graphId, registry, edge, edgeSchemas, nodeSc
|
|
|
1468
1468
|
if (!nodeSchemas.has(edge.to.kind)) {
|
|
1469
1469
|
return { status: "error", error: `Unknown to node kind: ${edge.to.kind}` };
|
|
1470
1470
|
}
|
|
1471
|
-
const endpointError =
|
|
1471
|
+
const endpointError = chunkZBVZ7HXD_cjs.validateEdgeEndpoints(
|
|
1472
1472
|
edge.kind,
|
|
1473
1473
|
edge.from.kind,
|
|
1474
1474
|
edge.to.kind,
|
|
@@ -1487,7 +1487,7 @@ async function processEdge(backend, graphId, registry, edge, edgeSchemas, nodeSc
|
|
|
1487
1487
|
edge.from.kind,
|
|
1488
1488
|
edge.from.id
|
|
1489
1489
|
);
|
|
1490
|
-
if (fromExists === void 0 || !
|
|
1490
|
+
if (fromExists === void 0 || !chunkANKOXPCC_cjs.isLiveNodeRow(fromExists)) {
|
|
1491
1491
|
return {
|
|
1492
1492
|
status: "error",
|
|
1493
1493
|
error: `From node not found: ${edge.from.kind}:${edge.from.id}`
|
|
@@ -1496,7 +1496,7 @@ async function processEdge(backend, graphId, registry, edge, edgeSchemas, nodeSc
|
|
|
1496
1496
|
}
|
|
1497
1497
|
if (!importedNodeIds.has(toKey)) {
|
|
1498
1498
|
const toExists = await backend.getNode(graphId, edge.to.kind, edge.to.id);
|
|
1499
|
-
if (toExists === void 0 || !
|
|
1499
|
+
if (toExists === void 0 || !chunkANKOXPCC_cjs.isLiveNodeRow(toExists)) {
|
|
1500
1500
|
return {
|
|
1501
1501
|
status: "error",
|
|
1502
1502
|
error: `To node not found: ${edge.to.kind}:${edge.to.id}`
|
|
@@ -1633,7 +1633,7 @@ function formatZodError(error) {
|
|
|
1633
1633
|
}).join("; ");
|
|
1634
1634
|
}
|
|
1635
1635
|
function makeNodeKey(kind, id) {
|
|
1636
|
-
return
|
|
1636
|
+
return chunkQPOQX2DI_cjs.encodeTupleKey([kind, id]);
|
|
1637
1637
|
}
|
|
1638
1638
|
|
|
1639
1639
|
// src/interchange/export.ts
|
|
@@ -1676,7 +1676,7 @@ async function exportGraph(store, options) {
|
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
1678
|
function exportGraphStream(store, options) {
|
|
1679
|
-
const backend =
|
|
1679
|
+
const backend = chunk32UETY6S_cjs.storeBackend(store);
|
|
1680
1680
|
return markExportStreamBackend(
|
|
1681
1681
|
exportGraphStreamFromBackend(store, backend, options),
|
|
1682
1682
|
backend
|
|
@@ -1763,7 +1763,7 @@ function exportStreamCancelled(phase, graphId, signal, framed) {
|
|
|
1763
1763
|
const message = phase === "before-open" ? "The graph export stream was aborted through its AbortSignal before it opened: no snapshot transaction was started and no database connection claimed." : framed ? "The graph export stream was aborted through its AbortSignal: its repeatable-read snapshot has been rolled back and the connection it held released." : "The graph export stream was aborted through its AbortSignal: its remaining reads were abandoned. This backend does not support transactions, so the export held no snapshot and no connection \u2014 and the chunks already delivered were never guaranteed to agree with one another.";
|
|
1764
1764
|
const cause = signal?.reason;
|
|
1765
1765
|
const suggestion = phase === "before-open" ? "Start a new export; the aborted one claimed nothing." : framed ? "Start a new export; the aborted one released its snapshot transaction and the connection it held." : "Start a new export; nothing was held, but discard the chunks already delivered unless partial, mutually-inconsistent data is acceptable.";
|
|
1766
|
-
return new
|
|
1766
|
+
return new chunkKCH7WQA5_cjs.ExportStreamCancelledError(
|
|
1767
1767
|
message,
|
|
1768
1768
|
{ graphId },
|
|
1769
1769
|
{
|
|
@@ -1773,7 +1773,7 @@ function exportStreamCancelled(phase, graphId, signal, framed) {
|
|
|
1773
1773
|
);
|
|
1774
1774
|
}
|
|
1775
1775
|
function claimSnapshotExportLeaseOrRefuse(graphId, backend) {
|
|
1776
|
-
const lease =
|
|
1776
|
+
const lease = chunkANKOXPCC_cjs.acquireSerializedStreamLease(backend, "export-snapshot");
|
|
1777
1777
|
if (!lease.acquired) {
|
|
1778
1778
|
throw serializedStreamRefusal({
|
|
1779
1779
|
graphId,
|
|
@@ -1785,14 +1785,14 @@ function claimSnapshotExportLeaseOrRefuse(graphId, backend) {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
async function produceExportChunks(store, backend, options, emit) {
|
|
1787
1787
|
const graphId = store.graphId;
|
|
1788
|
-
const nodeKinds = options.nodeKinds ??
|
|
1789
|
-
const edgeKinds = options.edgeKinds ??
|
|
1788
|
+
const nodeKinds = options.nodeKinds ?? chunkWA64ZSCA_cjs.getNodeKinds(store.graph);
|
|
1789
|
+
const edgeKinds = options.edgeKinds ?? chunkWA64ZSCA_cjs.getEdgeKinds(store.graph);
|
|
1790
1790
|
const schemaVersion = await backend.getActiveSchema(graphId);
|
|
1791
1791
|
await emit({
|
|
1792
1792
|
type: "header",
|
|
1793
1793
|
header: {
|
|
1794
1794
|
formatVersion: FORMAT_VERSION,
|
|
1795
|
-
exportedAt:
|
|
1795
|
+
exportedAt: chunk5PDSCELM_cjs.nowIso(),
|
|
1796
1796
|
source: {
|
|
1797
1797
|
type: "typegraph-export",
|
|
1798
1798
|
graphId,
|
|
@@ -1829,7 +1829,7 @@ async function produceExportChunks(store, backend, options, emit) {
|
|
|
1829
1829
|
if (store.graph.identity === void 0) return;
|
|
1830
1830
|
let after;
|
|
1831
1831
|
for (; ; ) {
|
|
1832
|
-
const page = await
|
|
1832
|
+
const page = await chunk32UETY6S_cjs.storeRuntime(store).readIdentityAssertionPageAtTarget(
|
|
1833
1833
|
backend,
|
|
1834
1834
|
options.identityMode,
|
|
1835
1835
|
{
|
|
@@ -1978,7 +1978,7 @@ async function* exportNodeChunks(backend, graphId, kind, options) {
|
|
|
1978
1978
|
const node = {
|
|
1979
1979
|
kind: row.kind,
|
|
1980
1980
|
id: row.id,
|
|
1981
|
-
properties:
|
|
1981
|
+
properties: chunkANKOXPCC_cjs.rowPropsToObject(row.props)
|
|
1982
1982
|
};
|
|
1983
1983
|
if (options.includeTemporal) {
|
|
1984
1984
|
const validFrom = (
|
|
@@ -2028,7 +2028,7 @@ async function* exportEdgeChunks(backend, graphId, kind, options) {
|
|
|
2028
2028
|
kind: row.to_kind,
|
|
2029
2029
|
id: row.to_id
|
|
2030
2030
|
},
|
|
2031
|
-
properties:
|
|
2031
|
+
properties: chunkANKOXPCC_cjs.rowPropsToObject(row.props)
|
|
2032
2032
|
};
|
|
2033
2033
|
if (options.includeTemporal) {
|
|
2034
2034
|
const validFrom = (
|
|
@@ -2078,5 +2078,5 @@ exports.importGraph = importGraph;
|
|
|
2078
2078
|
exports.importGraphStream = importGraphStream;
|
|
2079
2079
|
exports.serializedStreamRefusal = serializedStreamRefusal;
|
|
2080
2080
|
exports.withImportStreamLease = withImportStreamLease;
|
|
2081
|
-
//# sourceMappingURL=chunk-
|
|
2082
|
-
//# sourceMappingURL=chunk-
|
|
2081
|
+
//# sourceMappingURL=chunk-HNYLMPQQ.cjs.map
|
|
2082
|
+
//# sourceMappingURL=chunk-HNYLMPQQ.cjs.map
|