@nicia-ai/typegraph 0.43.0 → 0.44.0
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 +50 -50
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +11 -11
- package/dist/backend/postgres/index.cjs +26 -26
- package/dist/backend/postgres/index.d.cts +6 -5
- package/dist/backend/postgres/index.d.ts +6 -5
- package/dist/backend/postgres/index.js +13 -13
- package/dist/backend/postgres/pglite-store.cjs +33 -33
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +7 -7
- package/dist/backend/postgres/pglite-store.d.ts +7 -7
- package/dist/backend/postgres/pglite-store.js +29 -29
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +15 -15
- package/dist/backend/postgres/pglite.d.cts +3 -2
- package/dist/backend/postgres/pglite.d.ts +3 -2
- package/dist/backend/postgres/pglite.js +14 -14
- package/dist/backend/sqlite/index.cjs +23 -23
- package/dist/backend/sqlite/index.d.cts +7 -6
- package/dist/backend/sqlite/index.d.ts +7 -6
- package/dist/backend/sqlite/index.js +11 -11
- package/dist/backend/sqlite/libsql.cjs +17 -17
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -2
- package/dist/backend/sqlite/libsql.d.ts +3 -2
- package/dist/backend/sqlite/libsql.js +13 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +34 -34
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +8 -7
- package/dist/backend/sqlite/local-store.d.ts +8 -7
- package/dist/backend/sqlite/local-store.js +30 -30
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +16 -16
- package/dist/backend/sqlite/local.d.cts +3 -2
- package/dist/backend/sqlite/local.d.ts +3 -2
- package/dist/backend/sqlite/local.js +14 -14
- package/dist/{chunk-3RPQDGUE.cjs → chunk-2BIG7U6E.cjs} +5 -5
- package/dist/{chunk-3RPQDGUE.cjs.map → chunk-2BIG7U6E.cjs.map} +1 -1
- package/dist/{chunk-2OOY4OYT.js → chunk-2L54C2C2.js} +4 -4
- package/dist/{chunk-2OOY4OYT.js.map → chunk-2L54C2C2.js.map} +1 -1
- package/dist/{chunk-V2GZBPY2.cjs → chunk-2VLBGQBY.cjs} +310 -61
- package/dist/chunk-2VLBGQBY.cjs.map +1 -0
- package/dist/{chunk-RXOAXO3R.js → chunk-2WDD2NO3.js} +3 -3
- package/dist/{chunk-RXOAXO3R.js.map → chunk-2WDD2NO3.js.map} +1 -1
- package/dist/{chunk-2HKIID5K.js → chunk-2Y4IFKW7.js} +5 -5
- package/dist/{chunk-2HKIID5K.js.map → chunk-2Y4IFKW7.js.map} +1 -1
- package/dist/{chunk-ECU53PMN.cjs → chunk-3PRKZW6D.cjs} +5 -5
- package/dist/chunk-3PRKZW6D.cjs.map +1 -0
- package/dist/{chunk-2G6ZEGYO.js → chunk-46GDII45.js} +4 -4
- package/dist/{chunk-2G6ZEGYO.js.map → chunk-46GDII45.js.map} +1 -1
- package/dist/{chunk-OYJSYDIH.js → chunk-4MB3AQAQ.js} +13 -3
- package/dist/chunk-4MB3AQAQ.js.map +1 -0
- package/dist/chunk-4SZ6XPTG.cjs +12 -0
- package/dist/{chunk-VGMNGWBR.cjs.map → chunk-4SZ6XPTG.cjs.map} +1 -1
- package/dist/{chunk-FY4VY5EV.cjs → chunk-5MUSU4ZP.cjs} +20 -20
- package/dist/chunk-5MUSU4ZP.cjs.map +1 -0
- package/dist/{chunk-ZIRC2U6G.js → chunk-63KCKSSH.js} +78 -16
- package/dist/chunk-63KCKSSH.js.map +1 -0
- package/dist/{chunk-7Y6BV3TK.cjs → chunk-66UVLHQA.cjs} +100 -100
- package/dist/{chunk-7Y6BV3TK.cjs.map → chunk-66UVLHQA.cjs.map} +1 -1
- package/dist/{chunk-M4GYQF2H.js → chunk-6DCB664D.js} +7 -4
- package/dist/chunk-6DCB664D.js.map +1 -0
- package/dist/{chunk-OMQ2NBOR.cjs → chunk-6JZUSDY2.cjs} +27 -27
- package/dist/{chunk-OMQ2NBOR.cjs.map → chunk-6JZUSDY2.cjs.map} +1 -1
- package/dist/{chunk-Z3WIL6S3.js → chunk-7G32LIQM.js} +5 -5
- package/dist/{chunk-Z3WIL6S3.js.map → chunk-7G32LIQM.js.map} +1 -1
- package/dist/{chunk-KDRF3NR2.cjs → chunk-7V2FGGI2.cjs} +250 -198
- package/dist/chunk-7V2FGGI2.cjs.map +1 -0
- package/dist/{chunk-I73ATSAH.cjs → chunk-A2I2XO52.cjs} +4 -4
- package/dist/{chunk-I73ATSAH.cjs.map → chunk-A2I2XO52.cjs.map} +1 -1
- package/dist/{chunk-O2GZM7UK.cjs → chunk-A4PBRX4C.cjs} +7 -7
- package/dist/{chunk-O2GZM7UK.cjs.map → chunk-A4PBRX4C.cjs.map} +1 -1
- package/dist/{chunk-64LERBFM.cjs → chunk-ALFUGRYB.cjs} +75 -65
- package/dist/chunk-ALFUGRYB.cjs.map +1 -0
- package/dist/{chunk-NXIZL7ZZ.js → chunk-ATLN63JA.js} +6 -6
- package/dist/chunk-ATLN63JA.js.map +1 -0
- package/dist/{chunk-CUPJL6TS.js → chunk-B75XRV3O.js} +3 -3
- package/dist/{chunk-CUPJL6TS.js.map → chunk-B75XRV3O.js.map} +1 -1
- package/dist/{chunk-JNXZQBN3.js → chunk-BCP7LLOY.js} +687 -456
- package/dist/chunk-BCP7LLOY.js.map +1 -0
- package/dist/{chunk-RAWG2FEU.js → chunk-BEFM74L2.js} +264 -18
- package/dist/chunk-BEFM74L2.js.map +1 -0
- package/dist/{chunk-LQLVJWUH.js → chunk-BNUFUFAU.js} +7 -7
- package/dist/chunk-BNUFUFAU.js.map +1 -0
- package/dist/{chunk-KTBTSHU6.cjs → chunk-C4F7VJ5D.cjs} +13 -3
- package/dist/chunk-C4F7VJ5D.cjs.map +1 -0
- package/dist/{chunk-CVK4T34X.cjs → chunk-CPEL3YIR.cjs} +22 -22
- package/dist/{chunk-CVK4T34X.cjs.map → chunk-CPEL3YIR.cjs.map} +1 -1
- package/dist/{chunk-O3USVVWS.js → chunk-DK2S42XB.js} +3 -3
- package/dist/{chunk-O3USVVWS.js.map → chunk-DK2S42XB.js.map} +1 -1
- package/dist/{chunk-DMZEVJGL.cjs → chunk-EE7N5XXQ.cjs} +13 -13
- package/dist/{chunk-DMZEVJGL.cjs.map → chunk-EE7N5XXQ.cjs.map} +1 -1
- package/dist/{chunk-ZGOUVMVS.js → chunk-EFELJVLA.js} +5 -5
- package/dist/{chunk-ZGOUVMVS.js.map → chunk-EFELJVLA.js.map} +1 -1
- package/dist/chunk-EPTSMFH7.cjs +12 -0
- package/dist/{chunk-U3YRCZ5L.cjs.map → chunk-EPTSMFH7.cjs.map} +1 -1
- package/dist/{chunk-FSCJOTHF.cjs → chunk-EQ7JKLZO.cjs} +10 -10
- package/dist/{chunk-FSCJOTHF.cjs.map → chunk-EQ7JKLZO.cjs.map} +1 -1
- package/dist/{chunk-5Q3P6OIC.cjs → chunk-FGO5JFVJ.cjs} +12 -12
- package/dist/chunk-FGO5JFVJ.cjs.map +1 -0
- package/dist/{chunk-VC26BUNP.js → chunk-FMGEZBAQ.js} +5 -5
- package/dist/{chunk-VC26BUNP.js.map → chunk-FMGEZBAQ.js.map} +1 -1
- package/dist/{chunk-UZLEQFTV.js → chunk-FMMIX6N4.js} +4 -4
- package/dist/chunk-FMMIX6N4.js.map +1 -0
- package/dist/{chunk-5C75HQYQ.js → chunk-FRHHDHKH.js} +5 -5
- package/dist/{chunk-5C75HQYQ.js.map → chunk-FRHHDHKH.js.map} +1 -1
- package/dist/{chunk-CTWZPYJW.js → chunk-FSXTPBRN.js} +63 -12
- package/dist/chunk-FSXTPBRN.js.map +1 -0
- package/dist/{chunk-TRC646QQ.cjs → chunk-GFRGG2US.cjs} +7 -7
- package/dist/{chunk-TRC646QQ.cjs.map → chunk-GFRGG2US.cjs.map} +1 -1
- package/dist/{chunk-UJRWOV5B.js → chunk-GWEDD3DH.js} +5 -5
- package/dist/{chunk-UJRWOV5B.js.map → chunk-GWEDD3DH.js.map} +1 -1
- package/dist/{chunk-AQR6BHB3.cjs → chunk-HJH3RMXG.cjs} +10 -10
- package/dist/{chunk-AQR6BHB3.cjs.map → chunk-HJH3RMXG.cjs.map} +1 -1
- package/dist/{chunk-F7TDKSVB.cjs → chunk-HOHAJ2NR.cjs} +4 -4
- package/dist/{chunk-F7TDKSVB.cjs.map → chunk-HOHAJ2NR.cjs.map} +1 -1
- package/dist/{chunk-YPVQYM3L.js → chunk-HOIFFY4M.js} +100 -20
- package/dist/chunk-HOIFFY4M.js.map +1 -0
- package/dist/{chunk-LDCWO5B6.js → chunk-IIMQJYAM.js} +3 -3
- package/dist/{chunk-LDCWO5B6.js.map → chunk-IIMQJYAM.js.map} +1 -1
- package/dist/{chunk-OM6RIOA5.cjs → chunk-IIT5K7SK.cjs} +13 -13
- package/dist/{chunk-OM6RIOA5.cjs.map → chunk-IIT5K7SK.cjs.map} +1 -1
- package/dist/{chunk-EQOQOT55.js → chunk-IJTLXNGJ.js} +5 -5
- package/dist/{chunk-EQOQOT55.js.map → chunk-IJTLXNGJ.js.map} +1 -1
- package/dist/{chunk-4XRP2N6B.js → chunk-JRP3VGHS.js} +3 -3
- package/dist/{chunk-4XRP2N6B.js.map → chunk-JRP3VGHS.js.map} +1 -1
- package/dist/{chunk-42XYPKZU.js → chunk-K3BUWSFR.js} +41 -3
- package/dist/chunk-K3BUWSFR.js.map +1 -0
- package/dist/{chunk-GT7NEXSU.js → chunk-KCO5EFJU.js} +3 -3
- package/dist/{chunk-GT7NEXSU.js.map → chunk-KCO5EFJU.js.map} +1 -1
- package/dist/{chunk-ARN3ZODS.cjs → chunk-KKYELPZ2.cjs} +6 -6
- package/dist/{chunk-ARN3ZODS.cjs.map → chunk-KKYELPZ2.cjs.map} +1 -1
- package/dist/{chunk-33PAKPED.cjs → chunk-MCHP7RHZ.cjs} +41 -41
- package/dist/{chunk-33PAKPED.cjs.map → chunk-MCHP7RHZ.cjs.map} +1 -1
- package/dist/{chunk-CDYRPI5U.js → chunk-MIJKEVV7.js} +4 -4
- package/dist/{chunk-CDYRPI5U.js.map → chunk-MIJKEVV7.js.map} +1 -1
- package/dist/{chunk-BLBG2VZ5.cjs → chunk-NCX65HBY.cjs} +137 -108
- package/dist/chunk-NCX65HBY.cjs.map +1 -0
- package/dist/{chunk-6TJ6PKPS.cjs → chunk-NN3QSOVS.cjs} +27 -27
- package/dist/{chunk-6TJ6PKPS.cjs.map → chunk-NN3QSOVS.cjs.map} +1 -1
- package/dist/{chunk-F2KVJ6FF.cjs → chunk-OSZPLZIV.cjs} +179 -117
- package/dist/chunk-OSZPLZIV.cjs.map +1 -0
- package/dist/{chunk-UTTW2Q3M.cjs → chunk-OVUUTCPJ.cjs} +171 -133
- package/dist/chunk-OVUUTCPJ.cjs.map +1 -0
- package/dist/{chunk-FMPZPOUD.js → chunk-PAW2XUZN.js} +3 -3
- package/dist/{chunk-FMPZPOUD.js.map → chunk-PAW2XUZN.js.map} +1 -1
- package/dist/{chunk-5ZPRE4CV.cjs → chunk-PDGEXGS6.cjs} +204 -124
- package/dist/chunk-PDGEXGS6.cjs.map +1 -0
- package/dist/{chunk-CVNGKTHO.js → chunk-PHXITZE4.js} +4 -4
- package/dist/{chunk-CVNGKTHO.js.map → chunk-PHXITZE4.js.map} +1 -1
- package/dist/{chunk-ZPCKPLMX.cjs → chunk-QB6VMOJ2.cjs} +8 -8
- package/dist/{chunk-ZPCKPLMX.cjs.map → chunk-QB6VMOJ2.cjs.map} +1 -1
- package/dist/{chunk-5AERZSHC.cjs → chunk-QGKILWGZ.cjs} +4 -4
- package/dist/{chunk-5AERZSHC.cjs.map → chunk-QGKILWGZ.cjs.map} +1 -1
- package/dist/{chunk-ZOHCFYXE.js → chunk-QT6V3YRH.js} +3 -3
- package/dist/{chunk-ZOHCFYXE.js.map → chunk-QT6V3YRH.js.map} +1 -1
- package/dist/{chunk-XDMPDUKL.cjs → chunk-QYWINYEA.cjs} +9 -9
- package/dist/{chunk-XDMPDUKL.cjs.map → chunk-QYWINYEA.cjs.map} +1 -1
- package/dist/{chunk-3V6D5DEC.js → chunk-S4KQ5LV4.js} +3 -3
- package/dist/{chunk-3V6D5DEC.js.map → chunk-S4KQ5LV4.js.map} +1 -1
- package/dist/{chunk-L5AUCL5P.js → chunk-SBPC5IP3.js} +40 -12
- package/dist/chunk-SBPC5IP3.js.map +1 -0
- package/dist/{chunk-HHBKGPEI.js → chunk-SQRD2CYF.js} +264 -21
- package/dist/chunk-SQRD2CYF.js.map +1 -0
- package/dist/{chunk-O7XVCLXW.cjs → chunk-ST3LPB2V.cjs} +324 -77
- package/dist/chunk-ST3LPB2V.cjs.map +1 -0
- package/dist/{chunk-FFQGI67R.cjs → chunk-STQ3BSED.cjs} +44 -44
- package/dist/{chunk-FFQGI67R.cjs.map → chunk-STQ3BSED.cjs.map} +1 -1
- package/dist/{chunk-JOYPNY33.js → chunk-TCRIQMBU.js} +9 -9
- package/dist/{chunk-JOYPNY33.js.map → chunk-TCRIQMBU.js.map} +1 -1
- package/dist/{chunk-ZP2KPDNN.js → chunk-TFMVL4QH.js} +3 -3
- package/dist/{chunk-ZP2KPDNN.js.map → chunk-TFMVL4QH.js.map} +1 -1
- package/dist/{chunk-4WYFRACU.js → chunk-TVLKA4AY.js} +3 -3
- package/dist/{chunk-4WYFRACU.js.map → chunk-TVLKA4AY.js.map} +1 -1
- package/dist/{chunk-X2XOQZT3.cjs → chunk-U5W4LKZV.cjs} +13 -9
- package/dist/chunk-U5W4LKZV.cjs.map +1 -0
- package/dist/{chunk-L2BYRYHC.js → chunk-VITTKBWF.js} +43 -33
- package/dist/chunk-VITTKBWF.js.map +1 -0
- package/dist/{chunk-AO2WPYFZ.cjs → chunk-WBUFJ7BS.cjs} +4 -4
- package/dist/{chunk-AO2WPYFZ.cjs.map → chunk-WBUFJ7BS.cjs.map} +1 -1
- package/dist/{chunk-CI5NPLXX.js → chunk-XMYJY7NI.js} +3 -3
- package/dist/{chunk-CI5NPLXX.js.map → chunk-XMYJY7NI.js.map} +1 -1
- package/dist/{chunk-NDQLPKBX.cjs → chunk-XR4YZFKW.cjs} +1740 -1509
- package/dist/chunk-XR4YZFKW.cjs.map +1 -0
- package/dist/{chunk-5GV4JQNA.cjs → chunk-YNULOIR5.cjs} +43 -43
- package/dist/{chunk-5GV4JQNA.cjs.map → chunk-YNULOIR5.cjs.map} +1 -1
- package/dist/{chunk-ZBV4LQD2.cjs → chunk-ZTAJL4DT.cjs} +4 -4
- package/dist/{chunk-ZBV4LQD2.cjs.map → chunk-ZTAJL4DT.cjs.map} +1 -1
- package/dist/core/index.cjs +28 -28
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +8 -8
- package/dist/{ddl-Bc4Dl8fu.d.ts → ddl-D5369kOY.d.ts} +3 -3
- package/dist/{ddl-3unqC-kg.d.cts → ddl-eWg7hx6R.d.cts} +3 -3
- package/dist/{define-graph-Byslw2OO.d.cts → define-graph-DVF-oN1i.d.cts} +1 -1
- package/dist/{define-graph-DBFnc7u_.d.ts → define-graph-SvYXOl78.d.ts} +1 -1
- 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 +5 -5
- package/dist/graph-merge/index.cjs +104 -104
- package/dist/graph-merge/index.d.cts +9 -8
- package/dist/graph-merge/index.d.ts +9 -8
- package/dist/graph-merge/index.js +24 -24
- package/dist/{index-DHXw7QAl.d.cts → index-By89Sezh.d.ts} +37 -7
- package/dist/{index-DQzVJBHa.d.ts → index-DcQ3Sxs-.d.cts} +37 -7
- package/dist/index.cjs +210 -202
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- 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 +49 -41
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +11 -11
- package/dist/interchange/index.d.ts +11 -11
- package/dist/interchange/index.js +23 -15
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-Dl0-er1G.d.ts → manager-B0KjKE93.d.ts} +44 -6
- package/dist/{manager-U9_zopqr.d.cts → manager-Cn0NFIhN.d.cts} +44 -6
- package/dist/{materialize-indexes-BM3u0aXE.d.ts → materialize-indexes-BD4V3svD.d.ts} +1 -1
- package/dist/{materialize-indexes-DzMCetZe.d.cts → materialize-indexes-DVRhd5h4.d.cts} +1 -1
- package/dist/{postgres-DpJqtbSX.d.cts → postgres-DaEWvN4x.d.cts} +1 -1
- package/dist/{postgres-C5-WMKFA.d.ts → postgres-u0a0HN2D.d.ts} +1 -1
- package/dist/profiler/index.d.cts +10 -9
- package/dist/profiler/index.d.ts +10 -9
- package/dist/provenance/index.cjs +38 -38
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +8 -8
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +41 -41
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +14 -14
- package/dist/{searchable-B4mUXZT6.d.cts → searchable-BT7j9_IK.d.cts} +2 -2
- package/dist/{searchable-C7jmPNLT.d.ts → searchable-CnYEancP.d.ts} +2 -2
- package/dist/{sqlite-Ch5tSYQY.d.ts → sqlite-BrMoSsI7.d.cts} +1 -1
- package/dist/{sqlite-Da7jiYu9.d.cts → sqlite-CHhZUyO5.d.ts} +1 -1
- package/dist/{store-view-DdwBNjZQ.d.ts → store-view-Bvdku0Ht.d.ts} +181 -34
- package/dist/{store-view-D1F6KqsE.d.cts → store-view-w-md0nQ4.d.cts} +181 -34
- package/dist/{temporal-BtrTYTiB.d.ts → temporal--x9T8K4S.d.ts} +1 -1
- package/dist/{temporal-CMpigMCW.d.cts → temporal-BCORwUau.d.cts} +1 -1
- package/dist/{types-G4sVM-76.d.cts → types-6-WJmSD4.d.cts} +1 -1
- package/dist/{types-D2rU5Taq.d.ts → types-COODtTJU.d.ts} +1 -1
- package/dist/{types-Dh-EgT-w.d.cts → types-Cjvkj0jA.d.cts} +351 -12
- package/dist/{types-Dh-EgT-w.d.ts → types-Cjvkj0jA.d.ts} +351 -12
- package/dist/{where-B8Y21kig.d.ts → where-5xVawAwL.d.ts} +1 -1
- package/dist/{where-DbZ9XDOI.d.cts → where-CUQmCR6d.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-42XYPKZU.js.map +0 -1
- package/dist/chunk-5Q3P6OIC.cjs.map +0 -1
- package/dist/chunk-5ZPRE4CV.cjs.map +0 -1
- package/dist/chunk-64LERBFM.cjs.map +0 -1
- package/dist/chunk-BLBG2VZ5.cjs.map +0 -1
- package/dist/chunk-CTWZPYJW.js.map +0 -1
- package/dist/chunk-ECU53PMN.cjs.map +0 -1
- package/dist/chunk-F2KVJ6FF.cjs.map +0 -1
- package/dist/chunk-FY4VY5EV.cjs.map +0 -1
- package/dist/chunk-HHBKGPEI.js.map +0 -1
- package/dist/chunk-JNXZQBN3.js.map +0 -1
- package/dist/chunk-KDRF3NR2.cjs.map +0 -1
- package/dist/chunk-KTBTSHU6.cjs.map +0 -1
- package/dist/chunk-L2BYRYHC.js.map +0 -1
- package/dist/chunk-L5AUCL5P.js.map +0 -1
- package/dist/chunk-LQLVJWUH.js.map +0 -1
- package/dist/chunk-M4GYQF2H.js.map +0 -1
- package/dist/chunk-NDQLPKBX.cjs.map +0 -1
- package/dist/chunk-NXIZL7ZZ.js.map +0 -1
- package/dist/chunk-O7XVCLXW.cjs.map +0 -1
- package/dist/chunk-OYJSYDIH.js.map +0 -1
- package/dist/chunk-RAWG2FEU.js.map +0 -1
- package/dist/chunk-U3YRCZ5L.cjs +0 -12
- package/dist/chunk-UTTW2Q3M.cjs.map +0 -1
- package/dist/chunk-UZLEQFTV.js.map +0 -1
- package/dist/chunk-V2GZBPY2.cjs.map +0 -1
- package/dist/chunk-VGMNGWBR.cjs +0 -12
- package/dist/chunk-X2XOQZT3.cjs.map +0 -1
- package/dist/chunk-YPVQYM3L.js.map +0 -1
- package/dist/chunk-ZIRC2U6G.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { G as GraphDef } from './define-graph-
|
|
3
|
-
import { S as SchemaDiff } from './materialize-indexes-
|
|
1
|
+
import { b as NodeType, c as AnyEdgeType, w as SchemaVersionRow, x as GraphBackend, y as SerializedSchema } from './types-Cjvkj0jA.cjs';
|
|
2
|
+
import { G as GraphDef } from './define-graph-DVF-oN1i.cjs';
|
|
3
|
+
import { S as SchemaDiff } from './materialize-indexes-DVRhd5h4.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* KindRegistry holds precomputed closures for ontological reasoning.
|
|
@@ -342,6 +342,28 @@ declare function assertSchemaCurrent<G extends GraphDef>(backend: GraphBackend,
|
|
|
342
342
|
* @returns The created schema version row
|
|
343
343
|
*/
|
|
344
344
|
declare function initializeSchema<G extends GraphDef>(backend: GraphBackend, graph: G): Promise<SchemaVersionRow>;
|
|
345
|
+
type MigrateSchemaOptions = Readonly<{
|
|
346
|
+
/**
|
|
347
|
+
* Commit even when a dropped kind still holds rows.
|
|
348
|
+
*
|
|
349
|
+
* **This does not preserve those rows.** They are immediately unreachable —
|
|
350
|
+
* nothing references the kind any more — and they are not safe from
|
|
351
|
+
* deletion either: `materializeRemovals` re-derives removals by walking
|
|
352
|
+
* schema-version history, so the next reconcile finds the dropped kind and
|
|
353
|
+
* hard-deletes its rows, including soft-deleted ones. The flag buys a
|
|
354
|
+
* committed schema, not retained data.
|
|
355
|
+
*
|
|
356
|
+
* If you need the rows, copy them out **before** committing. If you want
|
|
357
|
+
* them removed, prefer `Store.removeKinds()`, which queues the cleanup
|
|
358
|
+
* explicitly instead of relying on history reconciliation.
|
|
359
|
+
*
|
|
360
|
+
* Dropping an *empty* kind needs no flag — it strands nothing, and it is
|
|
361
|
+
* the last step of the documented three-deploy kind-removal flow.
|
|
362
|
+
*
|
|
363
|
+
* @defaultValue false
|
|
364
|
+
*/
|
|
365
|
+
discardDroppedKindRows?: boolean;
|
|
366
|
+
}>;
|
|
345
367
|
/**
|
|
346
368
|
* Migrates the schema to match the current graph definition.
|
|
347
369
|
*
|
|
@@ -352,12 +374,21 @@ declare function initializeSchema<G extends GraphDef>(backend: GraphBackend, gra
|
|
|
352
374
|
* active version since `currentVersion` was read, this throws
|
|
353
375
|
* `StaleVersionError`; the caller should refetch and retry.
|
|
354
376
|
*
|
|
377
|
+
* Folds the persisted graph extension into `graph` first, like every other
|
|
378
|
+
* commit path — kinds committed at runtime by `Store.evolve()` live in
|
|
379
|
+
* `schema_doc.extension`, so committing the caller's graph verbatim would
|
|
380
|
+
* erase them while leaving their rows behind. Property-level breaking
|
|
381
|
+
* changes (the documented "force the contract deploy" use) are unaffected.
|
|
382
|
+
*
|
|
355
383
|
* @param backend - The database backend
|
|
356
384
|
* @param graph - The current graph definition
|
|
357
385
|
* @param currentVersion - The current active schema version
|
|
386
|
+
* @param options - See {@link MigrateSchemaOptions}
|
|
358
387
|
* @returns The new version number
|
|
388
|
+
* @throws MigrationError with `reason: "kind-removal"` when the commit would
|
|
389
|
+
* drop a kind that still holds rows and `discardDroppedKindRows` is not set.
|
|
359
390
|
*/
|
|
360
|
-
declare function migrateSchema<G extends GraphDef>(backend: GraphBackend, graph: G, currentVersion: number): Promise<number>;
|
|
391
|
+
declare function migrateSchema<G extends GraphDef>(backend: GraphBackend, graph: G, currentVersion: number, options?: MigrateSchemaOptions): Promise<number>;
|
|
361
392
|
/**
|
|
362
393
|
* Rolls back the active schema to a previous version.
|
|
363
394
|
*
|
|
@@ -377,7 +408,11 @@ declare function migrateSchema<G extends GraphDef>(backend: GraphBackend, graph:
|
|
|
377
408
|
*/
|
|
378
409
|
declare function rollbackSchema(backend: GraphBackend, graphId: string, targetVersion: number): Promise<void>;
|
|
379
410
|
/**
|
|
380
|
-
* Gets the current active schema for a graph
|
|
411
|
+
* Gets the current active schema for a graph — the committed document itself,
|
|
412
|
+
* with the `nodes` / `edges` / `ontology` maps the database actually holds.
|
|
413
|
+
*
|
|
414
|
+
* This is the answer to "what kinds does this database already have?". Use
|
|
415
|
+
* {@link getCommittedSchemaVersion} when only the version number is needed.
|
|
381
416
|
*
|
|
382
417
|
* @param backend - The database backend
|
|
383
418
|
* @param graphId - The graph ID
|
|
@@ -435,6 +470,9 @@ declare function requiresMigration<G extends GraphDef>(backend: GraphBackend, gr
|
|
|
435
470
|
* further; it is a backward-compatible follow-up, not required for the
|
|
436
471
|
* round-trip win above.
|
|
437
472
|
*
|
|
473
|
+
* Returns only the version; for the document it names, see
|
|
474
|
+
* {@link getActiveSchema}.
|
|
475
|
+
*
|
|
438
476
|
* @param backend - The database backend
|
|
439
477
|
* @param graphId - The graph ID
|
|
440
478
|
* @returns The active committed version, or `undefined` if the schema has not
|
|
@@ -442,4 +480,4 @@ declare function requiresMigration<G extends GraphDef>(backend: GraphBackend, gr
|
|
|
442
480
|
*/
|
|
443
481
|
declare function getCommittedSchemaVersion(backend: GraphBackend, graphId: string): Promise<number | undefined>;
|
|
444
482
|
|
|
445
|
-
export { KindRegistry as K, type
|
|
483
|
+
export { KindRegistry as K, type MigrateSchemaOptions as M, type SchemaManagerOptions as S, type MigrationHookContext as a, type SchemaValidationResult as b, applyDeprecatedKinds as c, assertSchemaCurrent as d, ensureSchema as e, getCommittedSchemaVersion as f, getActiveSchema as g, getSchemaChanges as h, initializeSchema as i, isSchemaInitialized as j, loadAndMergeGraphExtensionDocument as k, loadActiveSchemaWithBootstrap as l, migrateSchema as m, rollbackSchema as n, parseSerializedSchema as p, requiresMigration as r };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as SerializedNodeDef, H as SerializedEdgeDef, L as IndexEntity, I as IndexDeclaration, y as SerializedSchema } from './types-Cjvkj0jA.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema migration utilities.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z as SerializedNodeDef, H as SerializedEdgeDef, L as IndexEntity, I as IndexDeclaration, y as SerializedSchema } from './types-Cjvkj0jA.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema migration utilities.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { Q as QueryAst } from '../types-Cjvkj0jA.cjs';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../types-Cjvkj0jA.cjs';
|
|
3
|
+
import { G as GraphDef } from '../define-graph-DVF-oN1i.cjs';
|
|
4
|
+
import { a as Store } from '../store-view-w-md0nQ4.cjs';
|
|
5
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-6-WJmSD4.cjs';
|
|
6
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-6-WJmSD4.cjs';
|
|
6
7
|
import 'zod';
|
|
7
|
-
import '../temporal-
|
|
8
|
-
import '../manager-
|
|
9
|
-
import '../materialize-indexes-
|
|
10
|
-
import '../searchable-
|
|
8
|
+
import '../temporal-BCORwUau.cjs';
|
|
9
|
+
import '../manager-Cn0NFIhN.cjs';
|
|
10
|
+
import '../materialize-indexes-DVRhd5h4.cjs';
|
|
11
|
+
import '../searchable-BT7j9_IK.cjs';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* A Store with profiling capabilities.
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { Q as QueryAst } from '../types-Cjvkj0jA.js';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../types-Cjvkj0jA.js';
|
|
3
|
+
import { G as GraphDef } from '../define-graph-SvYXOl78.js';
|
|
4
|
+
import { a as Store } from '../store-view-Bvdku0Ht.js';
|
|
5
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-COODtTJU.js';
|
|
6
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-COODtTJU.js';
|
|
6
7
|
import 'zod';
|
|
7
|
-
import '../temporal
|
|
8
|
-
import '../manager-
|
|
9
|
-
import '../materialize-indexes-
|
|
10
|
-
import '../searchable-
|
|
8
|
+
import '../temporal--x9T8K4S.js';
|
|
9
|
+
import '../manager-B0KjKE93.js';
|
|
10
|
+
import '../materialize-indexes-BD4V3svD.js';
|
|
11
|
+
import '../searchable-CnYEancP.js';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* A Store with profiling capabilities.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7V2FGGI2_cjs = require('../chunk-7V2FGGI2.cjs');
|
|
4
4
|
require('../chunk-ZDH3DX3C.cjs');
|
|
5
|
-
require('../chunk-
|
|
6
|
-
var
|
|
7
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-CPEL3YIR.cjs');
|
|
6
|
+
var chunk3PRKZW6D_cjs = require('../chunk-3PRKZW6D.cjs');
|
|
7
|
+
require('../chunk-EQ7JKLZO.cjs');
|
|
8
8
|
var chunkTRF4EBJT_cjs = require('../chunk-TRF4EBJT.cjs');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
var
|
|
9
|
+
require('../chunk-WBUFJ7BS.cjs');
|
|
10
|
+
var chunkZTAJL4DT_cjs = require('../chunk-ZTAJL4DT.cjs');
|
|
11
11
|
require('../chunk-NAUA4PW5.cjs');
|
|
12
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-U5W4LKZV.cjs');
|
|
13
13
|
require('../chunk-SJDMVITW.cjs');
|
|
14
14
|
require('../chunk-764JHTLT.cjs');
|
|
15
15
|
require('../chunk-HAHNRASW.cjs');
|
|
16
16
|
var chunkDI74SMXS_cjs = require('../chunk-DI74SMXS.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkC4F7VJ5D_cjs = require('../chunk-C4F7VJ5D.cjs');
|
|
18
18
|
require('../chunk-TDXIBCGY.cjs');
|
|
19
19
|
|
|
20
20
|
// src/provenance/index.ts
|
|
@@ -35,7 +35,7 @@ function edgeToKey(edge) {
|
|
|
35
35
|
function keyToRef(key) {
|
|
36
36
|
const separatorIndex = key.indexOf(KEY_SEPARATOR);
|
|
37
37
|
if (separatorIndex === -1) {
|
|
38
|
-
throw new
|
|
38
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
39
39
|
"Invalid provenance identity key.",
|
|
40
40
|
{ key },
|
|
41
41
|
{
|
|
@@ -51,9 +51,9 @@ function sortedReferences(keys) {
|
|
|
51
51
|
return [...keys].toSorted((left, right) => chunkTRF4EBJT_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
|
|
52
52
|
}
|
|
53
53
|
function parseNodeProps(row) {
|
|
54
|
-
const parsed =
|
|
54
|
+
const parsed = chunk3PRKZW6D_cjs.rowPropsToObject(row.props);
|
|
55
55
|
if (!chunkDI74SMXS_cjs.isPlainObject(parsed)) {
|
|
56
|
-
throw new
|
|
56
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
57
57
|
`Node ${row.kind}/${row.id} props are not an object.`,
|
|
58
58
|
{ kind: row.kind, id: row.id }
|
|
59
59
|
);
|
|
@@ -65,7 +65,7 @@ function sourceRetractedState(row, retractedField) {
|
|
|
65
65
|
const value = props[retractedField];
|
|
66
66
|
if (value === void 0) return "available";
|
|
67
67
|
if (typeof value !== "boolean") {
|
|
68
|
-
throw new
|
|
68
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
69
69
|
`Provenance source field "${retractedField}" must contain a boolean value.`,
|
|
70
70
|
{ kind: row.kind, id: row.id, field: retractedField },
|
|
71
71
|
{
|
|
@@ -83,26 +83,26 @@ function normalizeConfig(graph, config) {
|
|
|
83
83
|
const derivesKind = config.derives.kind;
|
|
84
84
|
const retractedField = config.source.retractedField ?? DEFAULT_RETRACTED_FIELD;
|
|
85
85
|
if (sourceKinds.length === 0) {
|
|
86
|
-
throw new
|
|
86
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
87
87
|
"Provenance retraction requires at least one source kind.",
|
|
88
88
|
{ role: "source" }
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
if (factKinds.length === 0) {
|
|
92
|
-
throw new
|
|
92
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
93
93
|
"Provenance retraction requires at least one fact kind.",
|
|
94
94
|
{ role: "fact" }
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
97
|
const duplicateSourceKinds = duplicateValues(sourceKinds);
|
|
98
98
|
if (duplicateSourceKinds.length > 0) {
|
|
99
|
-
throw new
|
|
99
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError("Provenance source kinds must be unique.", {
|
|
100
100
|
duplicateSourceKinds
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
const duplicateFactKinds = duplicateValues(factKinds);
|
|
104
104
|
if (duplicateFactKinds.length > 0) {
|
|
105
|
-
throw new
|
|
105
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
|
|
106
106
|
duplicateFactKinds
|
|
107
107
|
});
|
|
108
108
|
}
|
|
@@ -120,7 +120,7 @@ function normalizeConfig(graph, config) {
|
|
|
120
120
|
if (factKinds.some(
|
|
121
121
|
(kind) => sourceKinds.includes(kind) || kind === justificationKind
|
|
122
122
|
)) {
|
|
123
|
-
throw new
|
|
123
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
124
124
|
"Provenance fact kinds must be distinct from source and justification kinds.",
|
|
125
125
|
{ sourceKinds, justificationKind, factKinds }
|
|
126
126
|
);
|
|
@@ -162,7 +162,7 @@ function duplicateValues(values) {
|
|
|
162
162
|
}
|
|
163
163
|
function assertKind(records, kind, role, noun, graphId) {
|
|
164
164
|
if (Object.hasOwn(records, kind)) return;
|
|
165
|
-
throw new
|
|
165
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
166
166
|
`Provenance ${role} kind "${kind}" is not a ${noun} kind in this graph.`,
|
|
167
167
|
{ role, kind, graphId }
|
|
168
168
|
);
|
|
@@ -171,7 +171,7 @@ function assertSourceField(graph, sourceKind, retractedField) {
|
|
|
171
171
|
const registration = graph.nodes[sourceKind];
|
|
172
172
|
if (registration === void 0) return;
|
|
173
173
|
if (Object.hasOwn(registration.type.schema.shape, retractedField)) return;
|
|
174
|
-
throw new
|
|
174
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
175
175
|
`Provenance source kind "${sourceKind}" must include field "${retractedField}".`,
|
|
176
176
|
{ sourceKind, retractedField },
|
|
177
177
|
{
|
|
@@ -186,14 +186,14 @@ function assertEdgeEndpoints(graph, edgeKind, expected) {
|
|
|
186
186
|
const toKinds = new Set(registration.to.map((node) => node.kind));
|
|
187
187
|
for (const kind of expected.fromKinds) {
|
|
188
188
|
if (fromKinds.has(kind)) continue;
|
|
189
|
-
throw new
|
|
189
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
190
190
|
`Provenance ${expected.role} edge "${edgeKind}" cannot start at "${kind}".`,
|
|
191
191
|
{ edgeKind, role: expected.role, expectedFrom: kind }
|
|
192
192
|
);
|
|
193
193
|
}
|
|
194
194
|
for (const kind of expected.toKinds) {
|
|
195
195
|
if (toKinds.has(kind)) continue;
|
|
196
|
-
throw new
|
|
196
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
197
197
|
`Provenance ${expected.role} edge "${edgeKind}" cannot end at "${kind}".`,
|
|
198
198
|
{ edgeKind, role: expected.role, expectedTo: kind }
|
|
199
199
|
);
|
|
@@ -299,7 +299,7 @@ function buildSupportEdges(config, rows) {
|
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
301
|
async function loadSupportGraph(backend, graphId, config) {
|
|
302
|
-
const asOf =
|
|
302
|
+
const asOf = chunkZTAJL4DT_cjs.nowIso();
|
|
303
303
|
const roles = await readRoles(backend, graphId, config, asOf);
|
|
304
304
|
const supportEdges = buildSupportEdges(config, roles);
|
|
305
305
|
const sourceRowsByKind = await Promise.all(
|
|
@@ -430,21 +430,21 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
|
|
|
430
430
|
snapshot,
|
|
431
431
|
affected,
|
|
432
432
|
(key) => !snapshot.supportedFactKeys.has(key),
|
|
433
|
-
|
|
433
|
+
chunk3PRKZW6D_cjs.isLiveNodeRow,
|
|
434
434
|
(row) => closeFactCurrency(backend, store, runHooks, row, lock)
|
|
435
435
|
);
|
|
436
436
|
await forEachAffectedFact(
|
|
437
437
|
snapshot,
|
|
438
438
|
affected,
|
|
439
439
|
(key) => snapshot.supportedFactKeys.has(key),
|
|
440
|
-
|
|
440
|
+
chunk3PRKZW6D_cjs.isTombstonedNodeRow,
|
|
441
441
|
(row) => reopenFactCurrency(backend, store, runHooks, row, lock)
|
|
442
442
|
);
|
|
443
443
|
}
|
|
444
444
|
function getFactRegistration(store, row) {
|
|
445
445
|
const registration = store.graph.nodes[row.kind];
|
|
446
446
|
if (registration !== void 0) return registration;
|
|
447
|
-
throw new
|
|
447
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
448
448
|
`Provenance fact kind "${row.kind}" is not a node kind in this graph.`,
|
|
449
449
|
{ kind: row.kind, graphId: store.graphId }
|
|
450
450
|
);
|
|
@@ -452,8 +452,8 @@ function getFactRegistration(store, row) {
|
|
|
452
452
|
async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
453
453
|
await runHooks("delete", row.kind, row.id, async () => {
|
|
454
454
|
const registration = getFactRegistration(store, row);
|
|
455
|
-
await
|
|
456
|
-
|
|
455
|
+
await chunk7V2FGGI2_cjs.applyNodeSoftDelete(
|
|
456
|
+
chunk7V2FGGI2_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
457
457
|
{
|
|
458
458
|
existing: row,
|
|
459
459
|
schema: registration.type.schema,
|
|
@@ -468,8 +468,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
468
468
|
async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
469
469
|
await runHooks("update", row.kind, row.id, async () => {
|
|
470
470
|
const registration = getFactRegistration(store, row);
|
|
471
|
-
await
|
|
472
|
-
|
|
471
|
+
await chunk7V2FGGI2_cjs.applyNodeResurrect(
|
|
472
|
+
chunk7V2FGGI2_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
473
473
|
{
|
|
474
474
|
existing: row,
|
|
475
475
|
schema: registration.type.schema,
|
|
@@ -482,7 +482,7 @@ async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
482
482
|
function getTransactionNodeCollection(tx, kind) {
|
|
483
483
|
const collection = tx.getNodeCollection(kind);
|
|
484
484
|
if (collection !== void 0) return collection;
|
|
485
|
-
throw new
|
|
485
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
486
486
|
`Provenance source kind "${kind}" is not available on this transaction.`,
|
|
487
487
|
{ kind }
|
|
488
488
|
);
|
|
@@ -495,14 +495,14 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
495
495
|
const uniqueSources = uniqueNodeReferences(sources);
|
|
496
496
|
for (const source of uniqueSources) {
|
|
497
497
|
if (config.sourceKinds.includes(source.kind)) continue;
|
|
498
|
-
throw new
|
|
498
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
499
499
|
`Provenance retraction source must be one of: ${config.sourceKinds.join(", ")}.`,
|
|
500
500
|
{ expectedKinds: config.sourceKinds, actualKind: source.kind }
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
503
|
return store.transaction(async (tx) => {
|
|
504
|
-
const backend =
|
|
505
|
-
const lock = await
|
|
504
|
+
const backend = chunk7V2FGGI2_cjs.transactionBackend(tx);
|
|
505
|
+
const lock = await chunk7V2FGGI2_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
506
506
|
const rows = await Promise.all(
|
|
507
507
|
uniqueSources.map(
|
|
508
508
|
(source) => backend.getNode(store.graphId, source.kind, source.id)
|
|
@@ -511,7 +511,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
511
511
|
const sourceRows = uniqueSources.map((source, index) => {
|
|
512
512
|
const sourceRow = rows[index];
|
|
513
513
|
if (sourceRow === void 0 || sourceRow.deleted_at !== void 0) {
|
|
514
|
-
throw new
|
|
514
|
+
throw new chunkC4F7VJ5D_cjs.NodeNotFoundError(source.kind, source.id);
|
|
515
515
|
}
|
|
516
516
|
return { source, row: sourceRow };
|
|
517
517
|
});
|
|
@@ -538,7 +538,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
538
538
|
await synchronizeFactCurrency(
|
|
539
539
|
backend,
|
|
540
540
|
store,
|
|
541
|
-
|
|
541
|
+
chunk7V2FGGI2_cjs.transactionNodeOperationHookRunner(tx),
|
|
542
542
|
after,
|
|
543
543
|
affected,
|
|
544
544
|
lock
|
|
@@ -564,8 +564,8 @@ function createRetractionCapability(store, config) {
|
|
|
564
564
|
unRetractMany: (sources) => transition(sources, false),
|
|
565
565
|
async holding() {
|
|
566
566
|
return store.transaction(async (tx) => {
|
|
567
|
-
const backend =
|
|
568
|
-
await
|
|
567
|
+
const backend = chunk7V2FGGI2_cjs.transactionBackend(tx);
|
|
568
|
+
await chunk7V2FGGI2_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
569
569
|
const snapshot = await computeSupport(
|
|
570
570
|
backend,
|
|
571
571
|
store.graphId,
|
|
@@ -580,7 +580,7 @@ function createRetractionCapability(store, config) {
|
|
|
580
580
|
}
|
|
581
581
|
function assertRetractionHistoryEnabled(store) {
|
|
582
582
|
if (!store.historyEnabled) {
|
|
583
|
-
throw new
|
|
583
|
+
throw new chunkC4F7VJ5D_cjs.ConfigurationError(
|
|
584
584
|
"createRetractionCapability requires a store created with { history: true }.",
|
|
585
585
|
{ graphId: store.graphId },
|
|
586
586
|
{
|