@nicia-ai/typegraph 0.44.0 → 0.46.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 +11 -11
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +7 -7
- package/dist/backend/index.cjs +53 -54
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +13 -14
- package/dist/backend/postgres/index.cjs +29 -30
- package/dist/backend/postgres/index.d.cts +7 -7
- package/dist/backend/postgres/index.d.ts +7 -7
- package/dist/backend/postgres/index.js +16 -17
- package/dist/backend/postgres/pglite-store.cjs +48 -43
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +15 -9
- package/dist/backend/postgres/pglite-store.d.ts +15 -9
- package/dist/backend/postgres/pglite-store.js +44 -39
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +18 -19
- package/dist/backend/postgres/pglite.d.cts +4 -4
- package/dist/backend/postgres/pglite.d.ts +4 -4
- package/dist/backend/postgres/pglite.js +17 -18
- package/dist/backend/sqlite/index.cjs +26 -27
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +14 -15
- package/dist/backend/sqlite/libsql.cjs +21 -22
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +15 -8
- package/dist/backend/sqlite/libsql.d.ts +15 -8
- package/dist/backend/sqlite/libsql.js +17 -18
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +49 -44
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- package/dist/backend/sqlite/local-store.d.cts +15 -10
- package/dist/backend/sqlite/local-store.d.ts +15 -10
- package/dist/backend/sqlite/local-store.js +45 -40
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +19 -20
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +17 -18
- package/dist/{chunk-XMYJY7NI.js → chunk-2LG2XB2M.js} +3 -3
- package/dist/{chunk-XMYJY7NI.js.map → chunk-2LG2XB2M.js.map} +1 -1
- package/dist/{chunk-QGKILWGZ.cjs → chunk-2NA5DYLO.cjs} +4 -4
- package/dist/{chunk-QGKILWGZ.cjs.map → chunk-2NA5DYLO.cjs.map} +1 -1
- package/dist/{chunk-5MUSU4ZP.cjs → chunk-3DHZCOT7.cjs} +20 -20
- package/dist/chunk-3DHZCOT7.cjs.map +1 -0
- package/dist/{chunk-OVUUTCPJ.cjs → chunk-4UGOKMI5.cjs} +268 -150
- package/dist/chunk-4UGOKMI5.cjs.map +1 -0
- package/dist/{chunk-FRHHDHKH.js → chunk-5262ZMTR.js} +26 -5
- package/dist/chunk-5262ZMTR.js.map +1 -0
- package/dist/{chunk-HOIFFY4M.js → chunk-5763DULU.js} +248 -76
- package/dist/chunk-5763DULU.js.map +1 -0
- package/dist/{chunk-7G32LIQM.js → chunk-5UVRGXD3.js} +277 -7
- package/dist/chunk-5UVRGXD3.js.map +1 -0
- package/dist/{chunk-IIT5K7SK.cjs → chunk-62ZP23AW.cjs} +15 -15
- package/dist/{chunk-IIT5K7SK.cjs.map → chunk-62ZP23AW.cjs.map} +1 -1
- package/dist/{chunk-S4KQ5LV4.js → chunk-775A4ZMN.js} +40 -6
- package/dist/chunk-775A4ZMN.js.map +1 -0
- package/dist/{chunk-QYWINYEA.cjs → chunk-7BQXPCGN.cjs} +830 -170
- package/dist/chunk-7BQXPCGN.cjs.map +1 -0
- package/dist/{chunk-FJMPR3OH.cjs → chunk-7EO3TCQB.cjs} +33 -7
- package/dist/chunk-7EO3TCQB.cjs.map +1 -0
- package/dist/chunk-7GT72YHH.cjs +1979 -0
- package/dist/chunk-7GT72YHH.cjs.map +1 -0
- package/dist/{chunk-SQRD2CYF.js → chunk-7VQXLT5O.js} +717 -76
- package/dist/chunk-7VQXLT5O.js.map +1 -0
- package/dist/{chunk-BCP7LLOY.js → chunk-7Z5OR7KO.js} +2706 -625
- package/dist/chunk-7Z5OR7KO.js.map +1 -0
- package/dist/chunk-A4OC4DVN.cjs +12 -0
- package/dist/{chunk-4SZ6XPTG.cjs.map → chunk-A4OC4DVN.cjs.map} +1 -1
- package/dist/{chunk-TDXIBCGY.cjs → chunk-A7J2YDDI.cjs} +5 -3
- package/dist/chunk-A7J2YDDI.cjs.map +1 -0
- package/dist/{chunk-FMMIX6N4.js → chunk-AKLS3BYZ.js} +56 -5
- package/dist/chunk-AKLS3BYZ.js.map +1 -0
- package/dist/{chunk-D7PG5D5K.js → chunk-AMKPPFUO.js} +32 -6
- package/dist/chunk-AMKPPFUO.js.map +1 -0
- package/dist/{chunk-PAW2XUZN.js → chunk-ASTI57H3.js} +3 -3
- package/dist/{chunk-PAW2XUZN.js.map → chunk-ASTI57H3.js.map} +1 -1
- package/dist/{chunk-FMGEZBAQ.js → chunk-BKCUOV7A.js} +27 -5
- package/dist/chunk-BKCUOV7A.js.map +1 -0
- package/dist/chunk-BSFJMMV3.cjs +268 -0
- package/dist/chunk-BSFJMMV3.cjs.map +1 -0
- package/dist/{chunk-63KCKSSH.js → chunk-C23WSN5E.js} +209 -24
- package/dist/chunk-C23WSN5E.js.map +1 -0
- package/dist/{chunk-JRP3VGHS.js → chunk-CBTIUB76.js} +3 -3
- package/dist/{chunk-JRP3VGHS.js.map → chunk-CBTIUB76.js.map} +1 -1
- package/dist/chunk-CNV4TXJG.js +58 -0
- package/dist/chunk-CNV4TXJG.js.map +1 -0
- package/dist/{chunk-QB6VMOJ2.cjs → chunk-CXBHOOIQ.cjs} +45 -10
- package/dist/chunk-CXBHOOIQ.cjs.map +1 -0
- package/dist/{chunk-46GDII45.js → chunk-DCQVHAYQ.js} +5 -5
- package/dist/{chunk-46GDII45.js.map → chunk-DCQVHAYQ.js.map} +1 -1
- package/dist/chunk-DLNROMQ7.js +306 -0
- package/dist/chunk-DLNROMQ7.js.map +1 -0
- package/dist/chunk-DYATYRY4.js +47 -0
- package/dist/chunk-DYATYRY4.js.map +1 -0
- package/dist/chunk-E4WNQBEF.cjs +217 -0
- package/dist/chunk-E4WNQBEF.cjs.map +1 -0
- package/dist/{chunk-G6Q5UM7U.js → chunk-FWJKWH6U.js} +5 -3
- package/dist/chunk-FWJKWH6U.js.map +1 -0
- package/dist/{chunk-BNUFUFAU.js → chunk-HFHTMECK.js} +7 -7
- package/dist/chunk-HFHTMECK.js.map +1 -0
- package/dist/{chunk-TFMVL4QH.js → chunk-I5MOXA4H.js} +20 -14
- package/dist/chunk-I5MOXA4H.js.map +1 -0
- package/dist/{chunk-4MB3AQAQ.js → chunk-J3WZ3FA2.js} +77 -3
- package/dist/chunk-J3WZ3FA2.js.map +1 -0
- package/dist/{chunk-UR7W5YQK.js → chunk-JBQQ7THH.js} +5 -3
- package/dist/chunk-JBQQ7THH.js.map +1 -0
- package/dist/chunk-JIVMTW7W.js +3393 -0
- package/dist/chunk-JIVMTW7W.js.map +1 -0
- package/dist/{chunk-2Y4IFKW7.js → chunk-JXA2ZP2Q.js} +6 -17
- package/dist/chunk-JXA2ZP2Q.js.map +1 -0
- package/dist/{chunk-GYA4JRP5.js → chunk-JXXDZTMN.js} +2 -2
- package/dist/chunk-JXXDZTMN.js.map +1 -0
- package/dist/chunk-JZUR7ZWE.js +254 -0
- package/dist/chunk-JZUR7ZWE.js.map +1 -0
- package/dist/chunk-K5ELX2GT.js +248 -0
- package/dist/chunk-K5ELX2GT.js.map +1 -0
- package/dist/chunk-LBJKZXDE.cjs +257 -0
- package/dist/chunk-LBJKZXDE.cjs.map +1 -0
- package/dist/{chunk-FGO5JFVJ.cjs → chunk-M4BDU5RX.cjs} +12 -12
- package/dist/{chunk-FGO5JFVJ.cjs.map → chunk-M4BDU5RX.cjs.map} +1 -1
- package/dist/{chunk-MIJKEVV7.js → chunk-MSY7FSX4.js} +37 -4
- package/dist/chunk-MSY7FSX4.js.map +1 -0
- package/dist/{chunk-ST3LPB2V.cjs → chunk-MUK4BU7K.cjs} +788 -146
- package/dist/chunk-MUK4BU7K.cjs.map +1 -0
- package/dist/{chunk-MCHP7RHZ.cjs → chunk-MXJDTH5B.cjs} +64 -41
- package/dist/chunk-MXJDTH5B.cjs.map +1 -0
- package/dist/{chunk-2VLBGQBY.cjs → chunk-N3257XE6.cjs} +724 -577
- package/dist/chunk-N3257XE6.cjs.map +1 -0
- package/dist/chunk-N66HCGCY.cjs +57 -0
- package/dist/chunk-N66HCGCY.cjs.map +1 -0
- package/dist/{chunk-CPEL3YIR.cjs → chunk-NFCVHQ5P.cjs} +55 -22
- package/dist/chunk-NFCVHQ5P.cjs.map +1 -0
- package/dist/{chunk-C4F7VJ5D.cjs → chunk-NI72YOJB.cjs} +84 -2
- package/dist/chunk-NI72YOJB.cjs.map +1 -0
- package/dist/{chunk-EE7N5XXQ.cjs → chunk-NK5Q7UNE.cjs} +10 -21
- package/dist/chunk-NK5Q7UNE.cjs.map +1 -0
- package/dist/{chunk-PHXITZE4.js → chunk-NMWDXFPH.js} +4 -4
- package/dist/{chunk-PHXITZE4.js.map → chunk-NMWDXFPH.js.map} +1 -1
- package/dist/{chunk-FSXTPBRN.js → chunk-NQ6BRJBE.js} +416 -850
- package/dist/chunk-NQ6BRJBE.js.map +1 -0
- package/dist/chunk-OH5E5KIO.js +2057 -0
- package/dist/chunk-OH5E5KIO.js.map +1 -0
- package/dist/chunk-ONU3HIED.cjs +2082 -0
- package/dist/chunk-ONU3HIED.cjs.map +1 -0
- package/dist/{chunk-STQ3BSED.cjs → chunk-PNN7RHVR.cjs} +66 -44
- package/dist/chunk-PNN7RHVR.cjs.map +1 -0
- package/dist/{chunk-6DCB664D.js → chunk-PQBQG7IM.js} +3 -3
- package/dist/{chunk-6DCB664D.js.map → chunk-PQBQG7IM.js.map} +1 -1
- package/dist/{chunk-ACSVZPK7.cjs → chunk-PWLJ77UV.cjs} +5 -3
- package/dist/chunk-PWLJ77UV.cjs.map +1 -0
- package/dist/chunk-Q7Q4WSLJ.cjs +328 -0
- package/dist/chunk-Q7Q4WSLJ.cjs.map +1 -0
- package/dist/{chunk-BEFM74L2.js → chunk-QLRESYPU.js} +637 -493
- package/dist/chunk-QLRESYPU.js.map +1 -0
- package/dist/{chunk-SBPC5IP3.js → chunk-QWX5YA3K.js} +784 -202
- package/dist/chunk-QWX5YA3K.js.map +1 -0
- package/dist/{chunk-TCRIQMBU.js → chunk-RJS7DECT.js} +8 -9
- package/dist/chunk-RJS7DECT.js.map +1 -0
- package/dist/{chunk-6JZUSDY2.cjs → chunk-RMQLSPA2.cjs} +297 -27
- package/dist/chunk-RMQLSPA2.cjs.map +1 -0
- package/dist/{chunk-SJDMVITW.cjs → chunk-RT5ZY4XA.cjs} +6 -5
- package/dist/chunk-RT5ZY4XA.cjs.map +1 -0
- package/dist/{chunk-IJTLXNGJ.js → chunk-T4XNKYXB.js} +780 -127
- package/dist/chunk-T4XNKYXB.js.map +1 -0
- package/dist/{chunk-PDGEXGS6.cjs → chunk-TQR4KBY2.cjs} +354 -182
- package/dist/chunk-TQR4KBY2.cjs.map +1 -0
- package/dist/chunk-TTAITEPJ.cjs +755 -0
- package/dist/chunk-TTAITEPJ.cjs.map +1 -0
- package/dist/{chunk-NN3QSOVS.cjs → chunk-U5SON7R2.cjs} +27 -27
- package/dist/{chunk-NN3QSOVS.cjs.map → chunk-U5SON7R2.cjs.map} +1 -1
- package/dist/{chunk-A2I2XO52.cjs → chunk-U63GDNRC.cjs} +32 -26
- package/dist/chunk-U63GDNRC.cjs.map +1 -0
- package/dist/{chunk-YNULOIR5.cjs → chunk-UDISNXDL.cjs} +64 -43
- package/dist/chunk-UDISNXDL.cjs.map +1 -0
- package/dist/{chunk-GWEDD3DH.js → chunk-UV3SN74I.js} +5 -5
- package/dist/{chunk-GWEDD3DH.js.map → chunk-UV3SN74I.js.map} +1 -1
- package/dist/{chunk-U5W4LKZV.cjs → chunk-VCRRKBLN.cjs} +9 -9
- package/dist/{chunk-U5W4LKZV.cjs.map → chunk-VCRRKBLN.cjs.map} +1 -1
- package/dist/{chunk-EFELJVLA.js → chunk-VGTJPTIC.js} +28 -5
- package/dist/chunk-VGTJPTIC.js.map +1 -0
- package/dist/chunk-VQH4VAWD.cjs +12 -0
- package/dist/{chunk-EPTSMFH7.cjs.map → chunk-VQH4VAWD.cjs.map} +1 -1
- package/dist/{chunk-SNXVDZAJ.js → chunk-W6OG3HDG.js} +5 -4
- package/dist/chunk-W6OG3HDG.js.map +1 -0
- package/dist/chunk-WDGA7IYB.js +207 -0
- package/dist/chunk-WDGA7IYB.js.map +1 -0
- package/dist/chunk-WEVQJ5LH.js +736 -0
- package/dist/chunk-WEVQJ5LH.js.map +1 -0
- package/dist/{chunk-3PRKZW6D.cjs → chunk-XBYVV3MP.cjs} +60 -5
- package/dist/chunk-XBYVV3MP.cjs.map +1 -0
- package/dist/{chunk-GFRGG2US.cjs → chunk-XCAGZAKP.cjs} +7 -7
- package/dist/{chunk-GFRGG2US.cjs.map → chunk-XCAGZAKP.cjs.map} +1 -1
- package/dist/{chunk-XR4YZFKW.cjs → chunk-XDF2UPEQ.cjs} +3864 -1783
- package/dist/chunk-XDF2UPEQ.cjs.map +1 -0
- package/dist/{chunk-7V2FGGI2.cjs → chunk-XMQSEJCF.cjs} +632 -1080
- package/dist/chunk-XMQSEJCF.cjs.map +1 -0
- package/dist/chunk-XNLIZYRZ.cjs +3432 -0
- package/dist/chunk-XNLIZYRZ.cjs.map +1 -0
- package/dist/{chunk-66UVLHQA.cjs → chunk-XNSI2FJO.cjs} +99 -100
- package/dist/chunk-XNSI2FJO.cjs.map +1 -0
- package/dist/chunk-XQSCL77R.cjs +60 -0
- package/dist/chunk-XQSCL77R.cjs.map +1 -0
- package/dist/{chunk-SVJ5GEXW.cjs → chunk-XUO3KQFO.cjs} +2 -2
- package/dist/chunk-XUO3KQFO.cjs.map +1 -0
- package/dist/{chunk-HJH3RMXG.cjs → chunk-YAAM3M2S.cjs} +10 -10
- package/dist/{chunk-HJH3RMXG.cjs.map → chunk-YAAM3M2S.cjs.map} +1 -1
- package/dist/{chunk-ATLN63JA.js → chunk-YBFHZUXX.js} +6 -6
- package/dist/{chunk-ATLN63JA.js.map → chunk-YBFHZUXX.js.map} +1 -1
- package/dist/{chunk-K3BUWSFR.js → chunk-YDFDBE6D.js} +119 -6
- package/dist/chunk-YDFDBE6D.js.map +1 -0
- package/dist/{chunk-OSZPLZIV.cjs → chunk-YVWGEQJE.cjs} +318 -132
- package/dist/chunk-YVWGEQJE.cjs.map +1 -0
- package/dist/{chunk-QT6V3YRH.js → chunk-YWGVVALJ.js} +3 -3
- package/dist/{chunk-QT6V3YRH.js.map → chunk-YWGVVALJ.js.map} +1 -1
- package/dist/core/index.cjs +40 -41
- package/dist/core/index.d.cts +4 -5
- package/dist/core/index.d.ts +4 -5
- package/dist/core/index.js +8 -9
- package/dist/{ddl-eWg7hx6R.d.cts → ddl-BJcOp4WZ.d.cts} +3 -3
- package/dist/{ddl-D5369kOY.d.ts → ddl-BXfGHbPN.d.ts} +3 -3
- package/dist/graph-extension/index.cjs +26 -23
- package/dist/graph-extension/index.d.cts +16 -6
- package/dist/graph-extension/index.d.ts +16 -6
- package/dist/graph-extension/index.js +7 -8
- package/dist/graph-merge/index.cjs +2459 -655
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +170 -33
- package/dist/graph-merge/index.d.ts +170 -33
- package/dist/graph-merge/index.js +2269 -468
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-By89Sezh.d.ts → index-BSHvKfok.d.ts} +221 -10
- package/dist/{index-DcQ3Sxs-.d.cts → index-DxaYCv8Y.d.cts} +221 -10
- package/dist/index.cjs +330 -269
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +590 -576
- package/dist/index.d.ts +590 -576
- package/dist/index.js +73 -50
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +17 -17
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +10 -10
- package/dist/interchange/index.cjs +165 -50
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +261 -16
- package/dist/interchange/index.d.ts +261 -16
- package/dist/interchange/index.js +128 -24
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-B0KjKE93.d.ts → manager-CfZAimti.d.ts} +36 -5
- package/dist/{manager-Cn0NFIhN.d.cts → manager-HGk6E_HW.d.cts} +36 -5
- package/dist/{materialize-indexes-BD4V3svD.d.ts → materialize-indexes-6A7dWGtb.d.cts} +10 -2
- package/dist/{materialize-indexes-DVRhd5h4.d.cts → materialize-indexes-BMJP6Tms.d.ts} +10 -2
- package/dist/{postgres-DaEWvN4x.d.cts → postgres-DFYWENdR.d.cts} +1961 -439
- package/dist/{postgres-u0a0HN2D.d.ts → postgres-e7a9TdvR.d.ts} +1961 -439
- package/dist/profiler/index.cjs +15 -15
- package/dist/profiler/index.d.cts +9 -10
- package/dist/profiler/index.d.ts +9 -10
- package/dist/profiler/index.js +4 -4
- package/dist/provenance/index.cjs +46 -48
- 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 +12 -14
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +50 -49
- package/dist/schema/index.d.cts +9 -16
- package/dist/schema/index.d.ts +9 -16
- package/dist/schema/index.js +23 -22
- package/dist/{searchable-CnYEancP.d.ts → searchable-9OQoPuRs.d.ts} +1 -2
- package/dist/{searchable-BT7j9_IK.d.cts → searchable-CIje5XYD.d.cts} +1 -2
- package/dist/{sqlite-BrMoSsI7.d.cts → sqlite-DerU5tc7.d.ts} +2029 -347
- package/dist/{sqlite-CHhZUyO5.d.ts → sqlite-DitnISa9.d.cts} +2029 -347
- package/dist/{store-view-Bvdku0Ht.d.ts → store-DawaWWjJ.d.ts} +3145 -2556
- package/dist/{store-view-w-md0nQ4.d.cts → store-RwTJx8LX.d.cts} +3145 -2556
- package/dist/{temporal-BCORwUau.d.cts → temporal-Bn-Fi8FJ.d.cts} +1 -1
- package/dist/{temporal--x9T8K4S.d.ts → temporal-BtM4UALv.d.ts} +1 -1
- package/dist/{types-6-WJmSD4.d.cts → types-CoIx8HX5.d.cts} +1 -1
- package/dist/{types-Cjvkj0jA.d.ts → types-HkveCCx0.d.cts} +866 -21
- package/dist/{types-Cjvkj0jA.d.cts → types-HkveCCx0.d.ts} +866 -21
- package/dist/{types-COODtTJU.d.ts → types-KFfk-8Ah.d.ts} +1 -1
- package/dist/{where-CUQmCR6d.d.cts → where--fk7_0kv.d.cts} +1 -1
- package/dist/{where-5xVawAwL.d.ts → where-ws5hf-Ov.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-2BIG7U6E.cjs +0 -83
- package/dist/chunk-2BIG7U6E.cjs.map +0 -1
- package/dist/chunk-2L54C2C2.js +0 -144
- package/dist/chunk-2L54C2C2.js.map +0 -1
- package/dist/chunk-2VLBGQBY.cjs.map +0 -1
- package/dist/chunk-2WDD2NO3.js +0 -59
- package/dist/chunk-2WDD2NO3.js.map +0 -1
- package/dist/chunk-2Y4IFKW7.js.map +0 -1
- package/dist/chunk-35S6P5ZU.js +0 -27
- package/dist/chunk-35S6P5ZU.js.map +0 -1
- package/dist/chunk-3PRKZW6D.cjs.map +0 -1
- package/dist/chunk-4MB3AQAQ.js.map +0 -1
- package/dist/chunk-4SZ6XPTG.cjs +0 -12
- package/dist/chunk-5MUSU4ZP.cjs.map +0 -1
- package/dist/chunk-63KCKSSH.js.map +0 -1
- package/dist/chunk-66UVLHQA.cjs.map +0 -1
- package/dist/chunk-6JZUSDY2.cjs.map +0 -1
- package/dist/chunk-764JHTLT.cjs +0 -15
- package/dist/chunk-764JHTLT.cjs.map +0 -1
- package/dist/chunk-7G32LIQM.js.map +0 -1
- package/dist/chunk-7V2FGGI2.cjs.map +0 -1
- package/dist/chunk-A2I2XO52.cjs.map +0 -1
- package/dist/chunk-A4PBRX4C.cjs +0 -100
- package/dist/chunk-A4PBRX4C.cjs.map +0 -1
- package/dist/chunk-ACSVZPK7.cjs.map +0 -1
- package/dist/chunk-ALFUGRYB.cjs +0 -1282
- package/dist/chunk-ALFUGRYB.cjs.map +0 -1
- package/dist/chunk-B75XRV3O.js +0 -125
- package/dist/chunk-B75XRV3O.js.map +0 -1
- package/dist/chunk-BCP7LLOY.js.map +0 -1
- package/dist/chunk-BEFM74L2.js.map +0 -1
- package/dist/chunk-BNUFUFAU.js.map +0 -1
- package/dist/chunk-C4F7VJ5D.cjs.map +0 -1
- package/dist/chunk-CPEL3YIR.cjs.map +0 -1
- package/dist/chunk-D7PG5D5K.js.map +0 -1
- package/dist/chunk-DI74SMXS.cjs +0 -29
- package/dist/chunk-DI74SMXS.cjs.map +0 -1
- package/dist/chunk-DK2S42XB.js +0 -77
- package/dist/chunk-DK2S42XB.js.map +0 -1
- package/dist/chunk-DRACN6XG.js +0 -27
- package/dist/chunk-DRACN6XG.js.map +0 -1
- package/dist/chunk-EE7N5XXQ.cjs.map +0 -1
- package/dist/chunk-EFELJVLA.js.map +0 -1
- package/dist/chunk-EPTSMFH7.cjs +0 -12
- package/dist/chunk-EQ7JKLZO.cjs +0 -157
- package/dist/chunk-EQ7JKLZO.cjs.map +0 -1
- package/dist/chunk-FJMPR3OH.cjs.map +0 -1
- package/dist/chunk-FMGEZBAQ.js.map +0 -1
- package/dist/chunk-FMMIX6N4.js.map +0 -1
- package/dist/chunk-FRHHDHKH.js.map +0 -1
- package/dist/chunk-FSXTPBRN.js.map +0 -1
- package/dist/chunk-G6Q5UM7U.js.map +0 -1
- package/dist/chunk-GYA4JRP5.js.map +0 -1
- package/dist/chunk-HOHAJ2NR.cjs +0 -61
- package/dist/chunk-HOHAJ2NR.cjs.map +0 -1
- package/dist/chunk-HOIFFY4M.js.map +0 -1
- package/dist/chunk-IIMQJYAM.js +0 -81
- package/dist/chunk-IIMQJYAM.js.map +0 -1
- package/dist/chunk-IJTLXNGJ.js.map +0 -1
- package/dist/chunk-ITE4IXAK.js +0 -25
- package/dist/chunk-ITE4IXAK.js.map +0 -1
- package/dist/chunk-K3BUWSFR.js.map +0 -1
- package/dist/chunk-KCO5EFJU.js +0 -79
- package/dist/chunk-KCO5EFJU.js.map +0 -1
- package/dist/chunk-KKYELPZ2.cjs +0 -83
- package/dist/chunk-KKYELPZ2.cjs.map +0 -1
- package/dist/chunk-MCHP7RHZ.cjs.map +0 -1
- package/dist/chunk-MIJKEVV7.js.map +0 -1
- package/dist/chunk-NCX65HBY.cjs +0 -1396
- package/dist/chunk-NCX65HBY.cjs.map +0 -1
- package/dist/chunk-OSZPLZIV.cjs.map +0 -1
- package/dist/chunk-OVUUTCPJ.cjs.map +0 -1
- package/dist/chunk-PDGEXGS6.cjs.map +0 -1
- package/dist/chunk-QB6VMOJ2.cjs.map +0 -1
- package/dist/chunk-QMQLUA66.js +0 -12
- package/dist/chunk-QMQLUA66.js.map +0 -1
- package/dist/chunk-QYWINYEA.cjs.map +0 -1
- package/dist/chunk-S4KQ5LV4.js.map +0 -1
- package/dist/chunk-SBPC5IP3.js.map +0 -1
- package/dist/chunk-SJDMVITW.cjs.map +0 -1
- package/dist/chunk-SNXVDZAJ.js.map +0 -1
- package/dist/chunk-SQRD2CYF.js.map +0 -1
- package/dist/chunk-ST3LPB2V.cjs.map +0 -1
- package/dist/chunk-STQ3BSED.cjs.map +0 -1
- package/dist/chunk-SVJ5GEXW.cjs.map +0 -1
- package/dist/chunk-TCRIQMBU.js.map +0 -1
- package/dist/chunk-TDXIBCGY.cjs.map +0 -1
- package/dist/chunk-TFMVL4QH.js.map +0 -1
- package/dist/chunk-TRF4EBJT.cjs +0 -30
- package/dist/chunk-TRF4EBJT.cjs.map +0 -1
- package/dist/chunk-TVLKA4AY.js +0 -94
- package/dist/chunk-TVLKA4AY.js.map +0 -1
- package/dist/chunk-UR7W5YQK.js.map +0 -1
- package/dist/chunk-VITTKBWF.js +0 -1263
- package/dist/chunk-VITTKBWF.js.map +0 -1
- package/dist/chunk-WBUFJ7BS.cjs +0 -131
- package/dist/chunk-WBUFJ7BS.cjs.map +0 -1
- package/dist/chunk-XR4YZFKW.cjs.map +0 -1
- package/dist/chunk-YNULOIR5.cjs.map +0 -1
- package/dist/chunk-ZDH3DX3C.cjs +0 -30
- package/dist/chunk-ZDH3DX3C.cjs.map +0 -1
- package/dist/chunk-ZTAJL4DT.cjs +0 -85
- package/dist/chunk-ZTAJL4DT.cjs.map +0 -1
- package/dist/define-graph-DVF-oN1i.d.cts +0 -173
- package/dist/define-graph-SvYXOl78.d.ts +0 -173
package/dist/profiler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var chunk764JHTLT_cjs = require('../chunk-764JHTLT.cjs');
|
|
3
|
+
var chunk7EO3TCQB_cjs = require('../chunk-7EO3TCQB.cjs');
|
|
4
|
+
var chunkRT5ZY4XA_cjs = require('../chunk-RT5ZY4XA.cjs');
|
|
6
5
|
require('../chunk-HAHNRASW.cjs');
|
|
7
|
-
var
|
|
6
|
+
var chunkA7J2YDDI_cjs = require('../chunk-A7J2YDDI.cjs');
|
|
7
|
+
var chunkN66HCGCY_cjs = require('../chunk-N66HCGCY.cjs');
|
|
8
8
|
|
|
9
9
|
// src/profiler/ast-extractor.ts
|
|
10
10
|
function extractPropertyAccesses(ast) {
|
|
@@ -179,7 +179,7 @@ function extractFromSelectiveField(field, ast) {
|
|
|
179
179
|
kindNames: resolved.kindNames,
|
|
180
180
|
target: {
|
|
181
181
|
__type: "prop",
|
|
182
|
-
pointer:
|
|
182
|
+
pointer: chunkA7J2YDDI_cjs.jsonPointer(field.field.split("."))
|
|
183
183
|
},
|
|
184
184
|
context: "select"
|
|
185
185
|
};
|
|
@@ -219,10 +219,10 @@ function extractTargetFromFieldRef(ref) {
|
|
|
219
219
|
return { __type: "prop", pointer: ref.jsonPointer };
|
|
220
220
|
}
|
|
221
221
|
if (ref.path.length > 1 && ref.path[0] === "props") {
|
|
222
|
-
return { __type: "prop", pointer:
|
|
222
|
+
return { __type: "prop", pointer: chunkA7J2YDDI_cjs.jsonPointer(ref.path.slice(1)) };
|
|
223
223
|
}
|
|
224
224
|
if (ref.path.length === 1) {
|
|
225
|
-
return { __type: "system", field:
|
|
225
|
+
return { __type: "system", field: chunkN66HCGCY_cjs.requireDefined(ref.path[0]) };
|
|
226
226
|
}
|
|
227
227
|
return void 0;
|
|
228
228
|
}
|
|
@@ -260,7 +260,7 @@ function keyToPath(key) {
|
|
|
260
260
|
target: { __type: "system", field: systemField }
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
const pointer =
|
|
263
|
+
const pointer = chunkA7J2YDDI_cjs.normalizeJsonPointer(
|
|
264
264
|
targetPart
|
|
265
265
|
);
|
|
266
266
|
return {
|
|
@@ -520,7 +520,7 @@ var QueryProfiler = class {
|
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
522
|
this.#attached = true;
|
|
523
|
-
this.#schemaIntrospector =
|
|
523
|
+
this.#schemaIntrospector = chunk7EO3TCQB_cjs.createSchemaIntrospector(
|
|
524
524
|
buildNodeSchemaMap(store.graph),
|
|
525
525
|
buildEdgeSchemaMap(store.graph)
|
|
526
526
|
);
|
|
@@ -631,7 +631,7 @@ function resolveAccessPaths(access, schemaIntrospector) {
|
|
|
631
631
|
return [
|
|
632
632
|
{
|
|
633
633
|
entityType: access.entityType,
|
|
634
|
-
kind:
|
|
634
|
+
kind: chunkN66HCGCY_cjs.requireDefined(kinds[0]),
|
|
635
635
|
target: access.target
|
|
636
636
|
}
|
|
637
637
|
];
|
|
@@ -640,7 +640,7 @@ function resolveAccessPaths(access, schemaIntrospector) {
|
|
|
640
640
|
return [
|
|
641
641
|
{
|
|
642
642
|
entityType: access.entityType,
|
|
643
|
-
kind:
|
|
643
|
+
kind: chunkN66HCGCY_cjs.requireDefined(kinds[0]),
|
|
644
644
|
target: access.target
|
|
645
645
|
}
|
|
646
646
|
];
|
|
@@ -654,7 +654,7 @@ function resolveAccessPaths(access, schemaIntrospector) {
|
|
|
654
654
|
pointer
|
|
655
655
|
)
|
|
656
656
|
);
|
|
657
|
-
const kindsToUse = matchingKinds.length > 0 ? matchingKinds : [
|
|
657
|
+
const kindsToUse = matchingKinds.length > 0 ? matchingKinds : [chunkN66HCGCY_cjs.requireDefined(kinds[0])];
|
|
658
658
|
return kindsToUse.map((kindName) => ({
|
|
659
659
|
entityType: access.entityType,
|
|
660
660
|
kind: kindName,
|
|
@@ -681,7 +681,7 @@ function getNodeEnv() {
|
|
|
681
681
|
return process.env["NODE_ENV"];
|
|
682
682
|
}
|
|
683
683
|
function hasPointerInSchema(schemaIntrospector, entityType, kindName, pointer) {
|
|
684
|
-
const segments =
|
|
684
|
+
const segments = chunkA7J2YDDI_cjs.parseJsonPointer(pointer);
|
|
685
685
|
const [first, ...rest] = segments;
|
|
686
686
|
if (!first) {
|
|
687
687
|
return false;
|
|
@@ -694,9 +694,9 @@ function hasPointerInSchema(schemaIntrospector, entityType, kindName, pointer) {
|
|
|
694
694
|
return true;
|
|
695
695
|
}
|
|
696
696
|
try {
|
|
697
|
-
const resolved =
|
|
697
|
+
const resolved = chunkRT5ZY4XA_cjs.resolveFieldTypeInfoAtJsonPointer(
|
|
698
698
|
rootInfo,
|
|
699
|
-
|
|
699
|
+
chunkA7J2YDDI_cjs.jsonPointer(rest)
|
|
700
700
|
);
|
|
701
701
|
return resolved !== void 0;
|
|
702
702
|
} catch (error) {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Q as QueryAst } from '../types-
|
|
2
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../types-
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
|
|
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';
|
|
1
|
+
import { d as GraphDef, Q as QueryAst } from '../types-HkveCCx0.cjs';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.cjs';
|
|
3
|
+
import { a as Store } from '../store-RwTJx8LX.cjs';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-CoIx8HX5.cjs';
|
|
5
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CoIx8HX5.cjs';
|
|
7
6
|
import 'zod';
|
|
8
|
-
import '../temporal-
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
7
|
+
import '../temporal-Bn-Fi8FJ.cjs';
|
|
8
|
+
import '../searchable-CIje5XYD.cjs';
|
|
9
|
+
import '../manager-HGk6E_HW.cjs';
|
|
10
|
+
import '../materialize-indexes-6A7dWGtb.cjs';
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* A Store with profiling capabilities.
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Q as QueryAst } from '../types-
|
|
2
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../types-
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
|
|
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';
|
|
1
|
+
import { d as GraphDef, Q as QueryAst } from '../types-HkveCCx0.js';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-HkveCCx0.js';
|
|
3
|
+
import { a as Store } from '../store-DawaWWjJ.js';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-KFfk-8Ah.js';
|
|
5
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-KFfk-8Ah.js';
|
|
7
6
|
import 'zod';
|
|
8
|
-
import '../temporal
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
7
|
+
import '../temporal-BtM4UALv.js';
|
|
8
|
+
import '../searchable-9OQoPuRs.js';
|
|
9
|
+
import '../manager-CfZAimti.js';
|
|
10
|
+
import '../materialize-indexes-BMJP6Tms.js';
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* A Store with profiling capabilities.
|
package/dist/profiler/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createSchemaIntrospector } from '../chunk-
|
|
2
|
-
import { resolveFieldTypeInfoAtJsonPointer } from '../chunk-
|
|
3
|
-
import { requireDefined } from '../chunk-QMQLUA66.js';
|
|
1
|
+
import { createSchemaIntrospector } from '../chunk-AMKPPFUO.js';
|
|
2
|
+
import { resolveFieldTypeInfoAtJsonPointer } from '../chunk-W6OG3HDG.js';
|
|
4
3
|
import '../chunk-PC2UBAUB.js';
|
|
5
|
-
import { parseJsonPointer, jsonPointer, normalizeJsonPointer } from '../chunk-
|
|
4
|
+
import { parseJsonPointer, jsonPointer, normalizeJsonPointer } from '../chunk-FWJKWH6U.js';
|
|
5
|
+
import { requireDefined } from '../chunk-DYATYRY4.js';
|
|
6
6
|
|
|
7
7
|
// src/profiler/ast-extractor.ts
|
|
8
8
|
function extractPropertyAccesses(ast) {
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
var chunkZTAJL4DT_cjs = require('../chunk-ZTAJL4DT.cjs');
|
|
3
|
+
var chunkTTAITEPJ_cjs = require('../chunk-TTAITEPJ.cjs');
|
|
4
|
+
var chunkXMQSEJCF_cjs = require('../chunk-XMQSEJCF.cjs');
|
|
5
|
+
require('../chunk-BSFJMMV3.cjs');
|
|
6
|
+
require('../chunk-NFCVHQ5P.cjs');
|
|
7
|
+
var chunkXBYVV3MP_cjs = require('../chunk-XBYVV3MP.cjs');
|
|
8
|
+
require('../chunk-E4WNQBEF.cjs');
|
|
9
|
+
var chunkQ7Q4WSLJ_cjs = require('../chunk-Q7Q4WSLJ.cjs');
|
|
11
10
|
require('../chunk-NAUA4PW5.cjs');
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-764JHTLT.cjs');
|
|
11
|
+
require('../chunk-VCRRKBLN.cjs');
|
|
12
|
+
require('../chunk-RT5ZY4XA.cjs');
|
|
15
13
|
require('../chunk-HAHNRASW.cjs');
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
require('../chunk-
|
|
14
|
+
var chunkNI72YOJB_cjs = require('../chunk-NI72YOJB.cjs');
|
|
15
|
+
require('../chunk-A7J2YDDI.cjs');
|
|
16
|
+
var chunkN66HCGCY_cjs = require('../chunk-N66HCGCY.cjs');
|
|
19
17
|
|
|
20
18
|
// src/provenance/index.ts
|
|
21
19
|
var DEFAULT_RETRACTED_FIELD = "retracted";
|
|
@@ -35,7 +33,7 @@ function edgeToKey(edge) {
|
|
|
35
33
|
function keyToRef(key) {
|
|
36
34
|
const separatorIndex = key.indexOf(KEY_SEPARATOR);
|
|
37
35
|
if (separatorIndex === -1) {
|
|
38
|
-
throw new
|
|
36
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
39
37
|
"Invalid provenance identity key.",
|
|
40
38
|
{ key },
|
|
41
39
|
{
|
|
@@ -48,12 +46,12 @@ function keyToRef(key) {
|
|
|
48
46
|
return { kind, id };
|
|
49
47
|
}
|
|
50
48
|
function sortedReferences(keys) {
|
|
51
|
-
return [...keys].toSorted((left, right) =>
|
|
49
|
+
return [...keys].toSorted((left, right) => chunkXMQSEJCF_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
|
|
52
50
|
}
|
|
53
51
|
function parseNodeProps(row) {
|
|
54
|
-
const parsed =
|
|
55
|
-
if (!
|
|
56
|
-
throw new
|
|
52
|
+
const parsed = chunkXBYVV3MP_cjs.rowPropsToObject(row.props);
|
|
53
|
+
if (!chunkN66HCGCY_cjs.isPlainObject(parsed)) {
|
|
54
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
57
55
|
`Node ${row.kind}/${row.id} props are not an object.`,
|
|
58
56
|
{ kind: row.kind, id: row.id }
|
|
59
57
|
);
|
|
@@ -65,7 +63,7 @@ function sourceRetractedState(row, retractedField) {
|
|
|
65
63
|
const value = props[retractedField];
|
|
66
64
|
if (value === void 0) return "available";
|
|
67
65
|
if (typeof value !== "boolean") {
|
|
68
|
-
throw new
|
|
66
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
69
67
|
`Provenance source field "${retractedField}" must contain a boolean value.`,
|
|
70
68
|
{ kind: row.kind, id: row.id, field: retractedField },
|
|
71
69
|
{
|
|
@@ -83,26 +81,26 @@ function normalizeConfig(graph, config) {
|
|
|
83
81
|
const derivesKind = config.derives.kind;
|
|
84
82
|
const retractedField = config.source.retractedField ?? DEFAULT_RETRACTED_FIELD;
|
|
85
83
|
if (sourceKinds.length === 0) {
|
|
86
|
-
throw new
|
|
84
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
87
85
|
"Provenance retraction requires at least one source kind.",
|
|
88
86
|
{ role: "source" }
|
|
89
87
|
);
|
|
90
88
|
}
|
|
91
89
|
if (factKinds.length === 0) {
|
|
92
|
-
throw new
|
|
90
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
93
91
|
"Provenance retraction requires at least one fact kind.",
|
|
94
92
|
{ role: "fact" }
|
|
95
93
|
);
|
|
96
94
|
}
|
|
97
95
|
const duplicateSourceKinds = duplicateValues(sourceKinds);
|
|
98
96
|
if (duplicateSourceKinds.length > 0) {
|
|
99
|
-
throw new
|
|
97
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError("Provenance source kinds must be unique.", {
|
|
100
98
|
duplicateSourceKinds
|
|
101
99
|
});
|
|
102
100
|
}
|
|
103
101
|
const duplicateFactKinds = duplicateValues(factKinds);
|
|
104
102
|
if (duplicateFactKinds.length > 0) {
|
|
105
|
-
throw new
|
|
103
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError("Provenance fact kinds must be unique.", {
|
|
106
104
|
duplicateFactKinds
|
|
107
105
|
});
|
|
108
106
|
}
|
|
@@ -120,7 +118,7 @@ function normalizeConfig(graph, config) {
|
|
|
120
118
|
if (factKinds.some(
|
|
121
119
|
(kind) => sourceKinds.includes(kind) || kind === justificationKind
|
|
122
120
|
)) {
|
|
123
|
-
throw new
|
|
121
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
124
122
|
"Provenance fact kinds must be distinct from source and justification kinds.",
|
|
125
123
|
{ sourceKinds, justificationKind, factKinds }
|
|
126
124
|
);
|
|
@@ -158,11 +156,11 @@ function duplicateValues(values) {
|
|
|
158
156
|
}
|
|
159
157
|
seen.add(value);
|
|
160
158
|
}
|
|
161
|
-
return [...duplicates].toSorted((left, right) =>
|
|
159
|
+
return [...duplicates].toSorted((left, right) => chunkXMQSEJCF_cjs.compareStrings(left, right));
|
|
162
160
|
}
|
|
163
161
|
function assertKind(records, kind, role, noun, graphId) {
|
|
164
162
|
if (Object.hasOwn(records, kind)) return;
|
|
165
|
-
throw new
|
|
163
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
166
164
|
`Provenance ${role} kind "${kind}" is not a ${noun} kind in this graph.`,
|
|
167
165
|
{ role, kind, graphId }
|
|
168
166
|
);
|
|
@@ -171,7 +169,7 @@ function assertSourceField(graph, sourceKind, retractedField) {
|
|
|
171
169
|
const registration = graph.nodes[sourceKind];
|
|
172
170
|
if (registration === void 0) return;
|
|
173
171
|
if (Object.hasOwn(registration.type.schema.shape, retractedField)) return;
|
|
174
|
-
throw new
|
|
172
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
175
173
|
`Provenance source kind "${sourceKind}" must include field "${retractedField}".`,
|
|
176
174
|
{ sourceKind, retractedField },
|
|
177
175
|
{
|
|
@@ -186,14 +184,14 @@ function assertEdgeEndpoints(graph, edgeKind, expected) {
|
|
|
186
184
|
const toKinds = new Set(registration.to.map((node) => node.kind));
|
|
187
185
|
for (const kind of expected.fromKinds) {
|
|
188
186
|
if (fromKinds.has(kind)) continue;
|
|
189
|
-
throw new
|
|
187
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
190
188
|
`Provenance ${expected.role} edge "${edgeKind}" cannot start at "${kind}".`,
|
|
191
189
|
{ edgeKind, role: expected.role, expectedFrom: kind }
|
|
192
190
|
);
|
|
193
191
|
}
|
|
194
192
|
for (const kind of expected.toKinds) {
|
|
195
193
|
if (toKinds.has(kind)) continue;
|
|
196
|
-
throw new
|
|
194
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
197
195
|
`Provenance ${expected.role} edge "${edgeKind}" cannot end at "${kind}".`,
|
|
198
196
|
{ edgeKind, role: expected.role, expectedTo: kind }
|
|
199
197
|
);
|
|
@@ -299,7 +297,7 @@ function buildSupportEdges(config, rows) {
|
|
|
299
297
|
};
|
|
300
298
|
}
|
|
301
299
|
async function loadSupportGraph(backend, graphId, config) {
|
|
302
|
-
const asOf =
|
|
300
|
+
const asOf = chunkQ7Q4WSLJ_cjs.nowIso();
|
|
303
301
|
const roles = await readRoles(backend, graphId, config, asOf);
|
|
304
302
|
const supportEdges = buildSupportEdges(config, roles);
|
|
305
303
|
const sourceRowsByKind = await Promise.all(
|
|
@@ -407,7 +405,7 @@ function buildReport(before, after, affected) {
|
|
|
407
405
|
const unaffected = sortedReferences(
|
|
408
406
|
believedBefore.filter((key) => !affected.has(key))
|
|
409
407
|
);
|
|
410
|
-
const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) =>
|
|
408
|
+
const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) => chunkXMQSEJCF_cjs.compareStrings(left, right)).map((key) => ({
|
|
411
409
|
fact: keyToRef(key),
|
|
412
410
|
via: sortedReferences(
|
|
413
411
|
after.firingJustificationKeysByFact.get(key) ?? []
|
|
@@ -430,21 +428,21 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
|
|
|
430
428
|
snapshot,
|
|
431
429
|
affected,
|
|
432
430
|
(key) => !snapshot.supportedFactKeys.has(key),
|
|
433
|
-
|
|
431
|
+
chunkXBYVV3MP_cjs.isLiveNodeRow,
|
|
434
432
|
(row) => closeFactCurrency(backend, store, runHooks, row, lock)
|
|
435
433
|
);
|
|
436
434
|
await forEachAffectedFact(
|
|
437
435
|
snapshot,
|
|
438
436
|
affected,
|
|
439
437
|
(key) => snapshot.supportedFactKeys.has(key),
|
|
440
|
-
|
|
438
|
+
chunkXBYVV3MP_cjs.isTombstonedNodeRow,
|
|
441
439
|
(row) => reopenFactCurrency(backend, store, runHooks, row, lock)
|
|
442
440
|
);
|
|
443
441
|
}
|
|
444
442
|
function getFactRegistration(store, row) {
|
|
445
443
|
const registration = store.graph.nodes[row.kind];
|
|
446
444
|
if (registration !== void 0) return registration;
|
|
447
|
-
throw new
|
|
445
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
448
446
|
`Provenance fact kind "${row.kind}" is not a node kind in this graph.`,
|
|
449
447
|
{ kind: row.kind, graphId: store.graphId }
|
|
450
448
|
);
|
|
@@ -452,8 +450,8 @@ function getFactRegistration(store, row) {
|
|
|
452
450
|
async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
453
451
|
await runHooks("delete", row.kind, row.id, async () => {
|
|
454
452
|
const registration = getFactRegistration(store, row);
|
|
455
|
-
await
|
|
456
|
-
|
|
453
|
+
await chunkTTAITEPJ_cjs.applyNodeSoftDelete(
|
|
454
|
+
chunkTTAITEPJ_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
457
455
|
{
|
|
458
456
|
existing: row,
|
|
459
457
|
schema: registration.type.schema,
|
|
@@ -468,8 +466,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
468
466
|
async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
469
467
|
await runHooks("update", row.kind, row.id, async () => {
|
|
470
468
|
const registration = getFactRegistration(store, row);
|
|
471
|
-
await
|
|
472
|
-
|
|
469
|
+
await chunkTTAITEPJ_cjs.applyNodeResurrect(
|
|
470
|
+
chunkTTAITEPJ_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
473
471
|
{
|
|
474
472
|
existing: row,
|
|
475
473
|
schema: registration.type.schema,
|
|
@@ -482,7 +480,7 @@ async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
482
480
|
function getTransactionNodeCollection(tx, kind) {
|
|
483
481
|
const collection = tx.getNodeCollection(kind);
|
|
484
482
|
if (collection !== void 0) return collection;
|
|
485
|
-
throw new
|
|
483
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
486
484
|
`Provenance source kind "${kind}" is not available on this transaction.`,
|
|
487
485
|
{ kind }
|
|
488
486
|
);
|
|
@@ -495,14 +493,14 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
495
493
|
const uniqueSources = uniqueNodeReferences(sources);
|
|
496
494
|
for (const source of uniqueSources) {
|
|
497
495
|
if (config.sourceKinds.includes(source.kind)) continue;
|
|
498
|
-
throw new
|
|
496
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
499
497
|
`Provenance retraction source must be one of: ${config.sourceKinds.join(", ")}.`,
|
|
500
498
|
{ expectedKinds: config.sourceKinds, actualKind: source.kind }
|
|
501
499
|
);
|
|
502
500
|
}
|
|
503
501
|
return store.transaction(async (tx) => {
|
|
504
|
-
const backend =
|
|
505
|
-
const lock = await
|
|
502
|
+
const backend = chunkTTAITEPJ_cjs.transactionBackend(tx);
|
|
503
|
+
const lock = await chunkXMQSEJCF_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
506
504
|
const rows = await Promise.all(
|
|
507
505
|
uniqueSources.map(
|
|
508
506
|
(source) => backend.getNode(store.graphId, source.kind, source.id)
|
|
@@ -511,7 +509,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
511
509
|
const sourceRows = uniqueSources.map((source, index) => {
|
|
512
510
|
const sourceRow = rows[index];
|
|
513
511
|
if (sourceRow === void 0 || sourceRow.deleted_at !== void 0) {
|
|
514
|
-
throw new
|
|
512
|
+
throw new chunkNI72YOJB_cjs.NodeNotFoundError(source.kind, source.id);
|
|
515
513
|
}
|
|
516
514
|
return { source, row: sourceRow };
|
|
517
515
|
});
|
|
@@ -538,7 +536,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
538
536
|
await synchronizeFactCurrency(
|
|
539
537
|
backend,
|
|
540
538
|
store,
|
|
541
|
-
|
|
539
|
+
chunkTTAITEPJ_cjs.transactionNodeOperationHookRunner(tx),
|
|
542
540
|
after,
|
|
543
541
|
affected,
|
|
544
542
|
lock
|
|
@@ -564,8 +562,8 @@ function createRetractionCapability(store, config) {
|
|
|
564
562
|
unRetractMany: (sources) => transition(sources, false),
|
|
565
563
|
async holding() {
|
|
566
564
|
return store.transaction(async (tx) => {
|
|
567
|
-
const backend =
|
|
568
|
-
await
|
|
565
|
+
const backend = chunkTTAITEPJ_cjs.transactionBackend(tx);
|
|
566
|
+
await chunkXMQSEJCF_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
569
567
|
const snapshot = await computeSupport(
|
|
570
568
|
backend,
|
|
571
569
|
store.graphId,
|
|
@@ -580,7 +578,7 @@ function createRetractionCapability(store, config) {
|
|
|
580
578
|
}
|
|
581
579
|
function assertRetractionHistoryEnabled(store) {
|
|
582
580
|
if (!store.historyEnabled) {
|
|
583
|
-
throw new
|
|
581
|
+
throw new chunkNI72YOJB_cjs.ConfigurationError(
|
|
584
582
|
"createRetractionCapability requires a store created with { history: true }.",
|
|
585
583
|
{ graphId: store.graphId },
|
|
586
584
|
{
|