@nicia-ai/typegraph 0.46.2 → 0.48.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/README.md +20 -1
- 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 +58 -49
- package/dist/backend/index.d.cts +37 -55
- package/dist/backend/index.d.ts +37 -55
- package/dist/backend/index.js +11 -10
- package/dist/backend/postgres/index.cjs +27 -26
- package/dist/backend/postgres/index.d.cts +21 -7
- package/dist/backend/postgres/index.d.ts +21 -7
- package/dist/backend/postgres/index.js +14 -13
- package/dist/backend/postgres/pglite-store.cjs +34 -33
- package/dist/backend/postgres/pglite-store.cjs.map +1 -1
- 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 +30 -29
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +16 -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 +15 -14
- package/dist/backend/sqlite/index.cjs +24 -23
- package/dist/backend/sqlite/index.d.cts +20 -7
- package/dist/backend/sqlite/index.d.ts +20 -7
- package/dist/backend/sqlite/index.js +12 -11
- package/dist/backend/sqlite/libsql.cjs +19 -18
- package/dist/backend/sqlite/libsql.cjs.map +1 -1
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +14 -13
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +35 -34
- package/dist/backend/sqlite/local-store.cjs.map +1 -1
- 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 +31 -30
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +17 -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 +15 -14
- package/dist/{chunk-TCT66A7N.cjs → chunk-26YKDNUD.cjs} +10 -10
- package/dist/{chunk-TCT66A7N.cjs.map → chunk-26YKDNUD.cjs.map} +1 -1
- package/dist/{chunk-E4OSGBCM.cjs → chunk-2HIYYMWY.cjs} +139 -136
- package/dist/chunk-2HIYYMWY.cjs.map +1 -0
- package/dist/chunk-2QGYQBS2.cjs +161 -0
- package/dist/chunk-2QGYQBS2.cjs.map +1 -0
- package/dist/{chunk-GWXXHOLU.js → chunk-2SYZXD54.js} +21 -18
- package/dist/chunk-2SYZXD54.js.map +1 -0
- package/dist/{chunk-KA4L2NZ3.js → chunk-2TYSSBU5.js} +14 -14
- package/dist/{chunk-KA4L2NZ3.js.map → chunk-2TYSSBU5.js.map} +1 -1
- package/dist/{chunk-QOJ2L2AD.js → chunk-3DMMGT6S.js} +3 -3
- package/dist/{chunk-QOJ2L2AD.js.map → chunk-3DMMGT6S.js.map} +1 -1
- package/dist/{chunk-F36KZDFX.cjs → chunk-3FPR224C.cjs} +91 -91
- package/dist/{chunk-F36KZDFX.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
- package/dist/{chunk-32UETY6S.cjs → chunk-3KOY4FH3.cjs} +207 -28
- package/dist/chunk-3KOY4FH3.cjs.map +1 -0
- package/dist/{chunk-QU7QLJA4.cjs → chunk-3U5ABFDW.cjs} +26 -26
- package/dist/{chunk-QU7QLJA4.cjs.map → chunk-3U5ABFDW.cjs.map} +1 -1
- package/dist/{chunk-RFDEYLIK.js → chunk-4WMMBDS5.js} +7 -7
- package/dist/chunk-4WMMBDS5.js.map +1 -0
- package/dist/{chunk-R7EWHKID.js → chunk-5K2BKEBD.js} +19 -145
- package/dist/chunk-5K2BKEBD.js.map +1 -0
- package/dist/chunk-5PRKMB24.cjs +124 -0
- package/dist/chunk-5PRKMB24.cjs.map +1 -0
- package/dist/chunk-6LN7FIVU.js +107 -0
- package/dist/chunk-6LN7FIVU.js.map +1 -0
- package/dist/{chunk-D6GCNNMK.cjs → chunk-6NGW27EO.cjs} +10 -10
- package/dist/{chunk-D6GCNNMK.cjs.map → chunk-6NGW27EO.cjs.map} +1 -1
- package/dist/{chunk-WHS2Y43J.js → chunk-6SWPJEYN.js} +5 -5
- package/dist/{chunk-WHS2Y43J.js.map → chunk-6SWPJEYN.js.map} +1 -1
- package/dist/{chunk-7TKNK32B.js → chunk-7SQSZN2J.js} +5 -5
- package/dist/{chunk-7TKNK32B.js.map → chunk-7SQSZN2J.js.map} +1 -1
- package/dist/{chunk-UTVQPZPN.cjs → chunk-7XUYFFR4.cjs} +20 -20
- package/dist/chunk-7XUYFFR4.cjs.map +1 -0
- package/dist/{chunk-KXSMF6PL.js → chunk-ACGSAMD3.js} +39 -34
- package/dist/chunk-ACGSAMD3.js.map +1 -0
- package/dist/{chunk-PYKF7UIL.cjs → chunk-AOSSQDVO.cjs} +13 -13
- package/dist/{chunk-PYKF7UIL.cjs.map → chunk-AOSSQDVO.cjs.map} +1 -1
- package/dist/{chunk-AT3MLMJV.js → chunk-AX6JGVTZ.js} +91 -20
- package/dist/chunk-AX6JGVTZ.js.map +1 -0
- package/dist/{chunk-WA64ZSCA.cjs → chunk-BFUOME67.cjs} +11 -11
- package/dist/{chunk-WA64ZSCA.cjs.map → chunk-BFUOME67.cjs.map} +1 -1
- package/dist/{chunk-YQ4JONWE.js → chunk-BRRP76WO.js} +401 -131
- package/dist/chunk-BRRP76WO.js.map +1 -0
- package/dist/{chunk-FCIZNUW5.js → chunk-CHAOFCHV.js} +3 -3
- package/dist/{chunk-FCIZNUW5.js.map → chunk-CHAOFCHV.js.map} +1 -1
- package/dist/chunk-CICO5GXD.cjs +12 -0
- package/dist/{chunk-73MWKDFK.cjs.map → chunk-CICO5GXD.cjs.map} +1 -1
- package/dist/{chunk-S3G5VLSW.js → chunk-CT3ZKTOF.js} +7 -6
- package/dist/chunk-CT3ZKTOF.js.map +1 -0
- package/dist/{chunk-SXWLLQ3D.js → chunk-D5R42W5D.js} +4 -4
- package/dist/{chunk-SXWLLQ3D.js.map → chunk-D5R42W5D.js.map} +1 -1
- package/dist/{chunk-BZZI7B43.cjs → chunk-DO7SAMEK.cjs} +47 -47
- package/dist/{chunk-BZZI7B43.cjs.map → chunk-DO7SAMEK.cjs.map} +1 -1
- package/dist/chunk-DZAICA5J.js +147 -0
- package/dist/chunk-DZAICA5J.js.map +1 -0
- package/dist/{chunk-2ZWM2RFH.cjs → chunk-EDN4Y4ZG.cjs} +9 -9
- package/dist/{chunk-2ZWM2RFH.cjs.map → chunk-EDN4Y4ZG.cjs.map} +1 -1
- package/dist/{chunk-A4R3H7RU.cjs → chunk-EZEEWCFJ.cjs} +264 -361
- package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
- package/dist/{chunk-BEB4OFZF.cjs → chunk-FA2AFWLP.cjs} +51 -59
- package/dist/chunk-FA2AFWLP.cjs.map +1 -0
- package/dist/{chunk-ZBVZ7HXD.cjs → chunk-FQPEMEWX.cjs} +12 -12
- package/dist/{chunk-ZBVZ7HXD.cjs.map → chunk-FQPEMEWX.cjs.map} +1 -1
- package/dist/{chunk-LNIWCQR4.js → chunk-GLHXM7C4.js} +3 -3
- package/dist/{chunk-LNIWCQR4.js.map → chunk-GLHXM7C4.js.map} +1 -1
- package/dist/{chunk-6BD6ZBKT.cjs → chunk-GYEG3ZLZ.cjs} +10 -10
- package/dist/{chunk-6BD6ZBKT.cjs.map → chunk-GYEG3ZLZ.cjs.map} +1 -1
- package/dist/{chunk-A7NMUYEL.cjs → chunk-HDL2ARHX.cjs} +27 -27
- package/dist/{chunk-A7NMUYEL.cjs.map → chunk-HDL2ARHX.cjs.map} +1 -1
- package/dist/{chunk-5ZJOB5YS.js → chunk-HEV35TGT.js} +4 -4
- package/dist/{chunk-5ZJOB5YS.js.map → chunk-HEV35TGT.js.map} +1 -1
- package/dist/{chunk-LHYSY6SE.js → chunk-I4GAZH5Z.js} +186 -9
- package/dist/chunk-I4GAZH5Z.js.map +1 -0
- package/dist/{chunk-BQM5P2NO.cjs → chunk-JB6T4GLL.cjs} +260 -223
- package/dist/chunk-JB6T4GLL.cjs.map +1 -0
- package/dist/{chunk-QPOQX2DI.cjs → chunk-JFRT7S3B.cjs} +1026 -369
- package/dist/chunk-JFRT7S3B.cjs.map +1 -0
- package/dist/{chunk-JCNTKRAK.js → chunk-JONXFAPO.js} +5 -5
- package/dist/{chunk-JCNTKRAK.js.map → chunk-JONXFAPO.js.map} +1 -1
- package/dist/{chunk-WEJHA7AD.js → chunk-KF6K7TGH.js} +109 -75
- package/dist/chunk-KF6K7TGH.js.map +1 -0
- package/dist/{chunk-EDJDDY6H.js → chunk-KKBDXCLQ.js} +4 -4
- package/dist/{chunk-EDJDDY6H.js.map → chunk-KKBDXCLQ.js.map} +1 -1
- package/dist/{chunk-ZHOAZD7Q.cjs → chunk-L3LQNR34.cjs} +161 -161
- package/dist/{chunk-ZHOAZD7Q.cjs.map → chunk-L3LQNR34.cjs.map} +1 -1
- package/dist/{chunk-AF3TWL5C.cjs → chunk-LRQKXRXO.cjs} +4 -4
- package/dist/{chunk-AF3TWL5C.cjs.map → chunk-LRQKXRXO.cjs.map} +1 -1
- package/dist/chunk-MKJ4KXL5.cjs +12 -0
- package/dist/{chunk-6LAXM4J2.cjs.map → chunk-MKJ4KXL5.cjs.map} +1 -1
- package/dist/{chunk-KCH7WQA5.cjs → chunk-MRDBBHIZ.cjs} +48 -2
- package/dist/chunk-MRDBBHIZ.cjs.map +1 -0
- package/dist/{chunk-FXNHZFZV.js → chunk-MYKHJI2J.js} +3 -3
- package/dist/{chunk-FXNHZFZV.js.map → chunk-MYKHJI2J.js.map} +1 -1
- package/dist/{chunk-Z43KWLZF.js → chunk-NACVVDWB.js} +213 -12
- package/dist/chunk-NACVVDWB.js.map +1 -0
- package/dist/{chunk-72WUT4GG.js → chunk-NVY5CJFP.js} +4 -4
- package/dist/{chunk-72WUT4GG.js.map → chunk-NVY5CJFP.js.map} +1 -1
- package/dist/{chunk-WYFB7BN3.js → chunk-OD4SSY2U.js} +166 -48
- package/dist/chunk-OD4SSY2U.js.map +1 -0
- package/dist/{chunk-ZIH42CRX.cjs → chunk-OI2GQ25X.cjs} +7 -7
- package/dist/{chunk-ZIH42CRX.cjs.map → chunk-OI2GQ25X.cjs.map} +1 -1
- package/dist/{chunk-AU3IJNNP.js → chunk-OMZ37BM2.js} +5 -5
- package/dist/{chunk-AU3IJNNP.js.map → chunk-OMZ37BM2.js.map} +1 -1
- package/dist/{chunk-C4DYN2SD.cjs → chunk-OORXGFL5.cjs} +48 -48
- package/dist/{chunk-C4DYN2SD.cjs.map → chunk-OORXGFL5.cjs.map} +1 -1
- package/dist/{chunk-HNYLMPQQ.cjs → chunk-OTUPEF2W.cjs} +149 -78
- package/dist/chunk-OTUPEF2W.cjs.map +1 -0
- package/dist/{chunk-BRN3RGD2.js → chunk-OVI7IXYX.js} +3 -3
- package/dist/{chunk-BRN3RGD2.js.map → chunk-OVI7IXYX.js.map} +1 -1
- package/dist/{chunk-WMKEGJG4.js → chunk-P6YLZTRE.js} +3 -3
- package/dist/{chunk-WMKEGJG4.js.map → chunk-P6YLZTRE.js.map} +1 -1
- package/dist/{chunk-C2ZP5YS6.cjs → chunk-PFBRJBUL.cjs} +278 -160
- package/dist/chunk-PFBRJBUL.cjs.map +1 -0
- package/dist/{chunk-EJSYWAEV.js → chunk-QTD6HX4O.js} +5 -5
- package/dist/{chunk-EJSYWAEV.js.map → chunk-QTD6HX4O.js.map} +1 -1
- package/dist/{chunk-JL5UEBWT.cjs → chunk-ROR5ZR6A.cjs} +45 -45
- package/dist/{chunk-JL5UEBWT.cjs.map → chunk-ROR5ZR6A.cjs.map} +1 -1
- package/dist/{chunk-EDHV4CBU.js → chunk-S5TERQVW.js} +37 -134
- package/dist/chunk-S5TERQVW.js.map +1 -0
- package/dist/{chunk-FSLTU57P.js → chunk-SDBBMD4N.js} +3 -3
- package/dist/{chunk-FSLTU57P.js.map → chunk-SDBBMD4N.js.map} +1 -1
- package/dist/{chunk-36LIJXWC.js → chunk-SHFBB23Q.js} +4 -4
- package/dist/{chunk-36LIJXWC.js.map → chunk-SHFBB23Q.js.map} +1 -1
- package/dist/chunk-SIT26LAZ.cjs +614 -0
- package/dist/chunk-SIT26LAZ.cjs.map +1 -0
- package/dist/{chunk-C6KE2HSQ.cjs → chunk-SR725PWF.cjs} +1662 -1392
- package/dist/chunk-SR725PWF.cjs.map +1 -0
- package/dist/{chunk-S7WIRFNS.cjs → chunk-TKZXMWQF.cjs} +13 -12
- package/dist/chunk-TKZXMWQF.cjs.map +1 -0
- package/dist/{chunk-5PDSCELM.cjs → chunk-TQHGE7UC.cjs} +29 -164
- package/dist/chunk-TQHGE7UC.cjs.map +1 -0
- package/dist/{chunk-XBHRKLZU.cjs → chunk-TUNPBZY3.cjs} +4 -4
- package/dist/{chunk-XBHRKLZU.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
- package/dist/{chunk-KOAI3KIV.cjs → chunk-TZEGUG6D.cjs} +4 -4
- package/dist/{chunk-KOAI3KIV.cjs.map → chunk-TZEGUG6D.cjs.map} +1 -1
- package/dist/chunk-UGHG7PGX.js +592 -0
- package/dist/chunk-UGHG7PGX.js.map +1 -0
- package/dist/{chunk-N3QTGPC7.cjs → chunk-UMGZDVOA.cjs} +303 -101
- package/dist/chunk-UMGZDVOA.cjs.map +1 -0
- package/dist/{chunk-RHDOAQCT.cjs → chunk-WCCATHMB.cjs} +140 -135
- package/dist/chunk-WCCATHMB.cjs.map +1 -0
- package/dist/{chunk-DYPRZ53S.cjs → chunk-WODMN3Q2.cjs} +27 -27
- package/dist/{chunk-DYPRZ53S.cjs.map → chunk-WODMN3Q2.cjs.map} +1 -1
- package/dist/{chunk-OZJCH7ZS.js → chunk-XVWOYKIK.js} +3 -3
- package/dist/{chunk-OZJCH7ZS.js.map → chunk-XVWOYKIK.js.map} +1 -1
- package/dist/{chunk-IHRDX7K6.js → chunk-YIURNGXI.js} +46 -56
- package/dist/chunk-YIURNGXI.js.map +1 -0
- package/dist/{chunk-GWUWRZXW.js → chunk-YVF2EM7B.js} +3 -3
- package/dist/{chunk-GWUWRZXW.js.map → chunk-YVF2EM7B.js.map} +1 -1
- package/dist/{chunk-EAMVXR5B.js → chunk-ZDKTPBGV.js} +4 -4
- package/dist/{chunk-EAMVXR5B.js.map → chunk-ZDKTPBGV.js.map} +1 -1
- package/dist/{chunk-A2LJG5GM.js → chunk-ZFMCDJGB.js} +803 -148
- package/dist/chunk-ZFMCDJGB.js.map +1 -0
- package/dist/{chunk-62ZXBMSD.js → chunk-ZLONH2UD.js} +46 -3
- package/dist/chunk-ZLONH2UD.js.map +1 -0
- package/dist/core/index.cjs +28 -27
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +8 -7
- package/dist/ddl-BL1NZLMY.d.cts +78 -0
- package/dist/ddl-D_oW-EVO.d.ts +78 -0
- 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 +3418 -706
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +550 -58
- package/dist/graph-merge/index.d.ts +550 -58
- package/dist/graph-merge/index.js +3191 -497
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-Deyu8IXL.d.ts → index-COs_z6nV.d.cts} +47 -3
- package/dist/{index-DrRS51Ld.d.cts → index-D7d1u2gr.d.ts} +47 -3
- package/dist/index.cjs +233 -216
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +35 -34
- package/dist/index.js.map +1 -1
- 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 +53 -52
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +17 -13
- package/dist/interchange/index.d.ts +17 -13
- package/dist/interchange/index.js +17 -16
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-ptr3JLRP.d.cts → manager-CYaff3n3.d.cts} +2 -2
- package/dist/{manager-DX983gJ0.d.ts → manager-D9eRT_ns.d.ts} +2 -2
- package/dist/{materialize-indexes-CpXoggWU.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
- package/dist/{materialize-indexes-BXz77YqO.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
- package/dist/{postgres-DwgEXSPI.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
- package/dist/{postgres-QdOMHTBz.d.ts → postgres-DMj39MEu.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +46 -46
- 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 +13 -13
- package/dist/provenance/index.js.map +1 -1
- package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
- package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
- package/dist/schema/index.cjs +45 -44
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +18 -17
- package/dist/{searchable-BOUuA83f.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
- package/dist/{searchable-BrUh0pdc.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
- package/dist/{sqlite-BfYcV61E.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
- package/dist/{sqlite-DK40XVR1.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
- package/dist/{store-FTqBpuJD.d.cts → store-JUVvtmR4.d.cts} +228 -92
- package/dist/{store-Bo1psfVZ.d.ts → store-UzrGvZOo.d.ts} +228 -92
- package/dist/{temporal-DPtn0HOu.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
- package/dist/{temporal-CXewwLTB.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
- package/dist/{types-Du78EvpN.d.ts → types-BqFZTQmV.d.cts} +60 -9
- package/dist/{types-Du78EvpN.d.cts → types-BqFZTQmV.d.ts} +60 -9
- package/dist/{types-CeT7xM4M.d.ts → types-Bx74kaTt.d.ts} +1 -1
- package/dist/{types-XR1nHERK.d.cts → types-CXAhpW-c.d.cts} +1 -1
- package/dist/{where-CJsp-YUf.d.cts → where-DI_Fqz-X.d.cts} +1 -1
- package/dist/{where-CMbFiWwp.d.ts → where-O-k2wgYm.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-32UETY6S.cjs.map +0 -1
- package/dist/chunk-5PDSCELM.cjs.map +0 -1
- package/dist/chunk-62ZXBMSD.js.map +0 -1
- package/dist/chunk-6LAXM4J2.cjs +0 -12
- package/dist/chunk-73MWKDFK.cjs +0 -12
- package/dist/chunk-A2LJG5GM.js.map +0 -1
- package/dist/chunk-A4R3H7RU.cjs.map +0 -1
- package/dist/chunk-ANKOXPCC.cjs +0 -267
- package/dist/chunk-ANKOXPCC.cjs.map +0 -1
- package/dist/chunk-AT3MLMJV.js.map +0 -1
- package/dist/chunk-BEB4OFZF.cjs.map +0 -1
- package/dist/chunk-BQM5P2NO.cjs.map +0 -1
- package/dist/chunk-C2ZP5YS6.cjs.map +0 -1
- package/dist/chunk-C6KE2HSQ.cjs.map +0 -1
- package/dist/chunk-DSAWGCMP.js +0 -254
- package/dist/chunk-DSAWGCMP.js.map +0 -1
- package/dist/chunk-E4OSGBCM.cjs.map +0 -1
- package/dist/chunk-EDHV4CBU.js.map +0 -1
- package/dist/chunk-FA6Z7B5L.js +0 -244
- package/dist/chunk-FA6Z7B5L.js.map +0 -1
- package/dist/chunk-GVAMRRZR.cjs +0 -268
- package/dist/chunk-GVAMRRZR.cjs.map +0 -1
- package/dist/chunk-GWXXHOLU.js.map +0 -1
- package/dist/chunk-HNYLMPQQ.cjs.map +0 -1
- package/dist/chunk-IHRDX7K6.js.map +0 -1
- package/dist/chunk-KCH7WQA5.cjs.map +0 -1
- package/dist/chunk-KXSMF6PL.js.map +0 -1
- package/dist/chunk-LHYSY6SE.js.map +0 -1
- package/dist/chunk-N3QTGPC7.cjs.map +0 -1
- package/dist/chunk-QPOQX2DI.cjs.map +0 -1
- package/dist/chunk-R7EWHKID.js.map +0 -1
- package/dist/chunk-RFDEYLIK.js.map +0 -1
- package/dist/chunk-RHDOAQCT.cjs.map +0 -1
- package/dist/chunk-S3G5VLSW.js.map +0 -1
- package/dist/chunk-S7WIRFNS.cjs.map +0 -1
- package/dist/chunk-UTVQPZPN.cjs.map +0 -1
- package/dist/chunk-WEJHA7AD.js.map +0 -1
- package/dist/chunk-WYFB7BN3.js.map +0 -1
- package/dist/chunk-YQ4JONWE.js.map +0 -1
- package/dist/chunk-Z43KWLZF.js.map +0 -1
- package/dist/ddl-mE07h_EM.d.cts +0 -38
- package/dist/ddl-opIn8DfX.d.ts +0 -38
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { contributionRebuildSupported, createPostgresOperationStrategy, createCachedTableExistence, createContributionMaterializer, gateFulltextMethods, lockPostgresTrustedImportTables, assertTrustedImportDatabaseEmpty, suspendPostgresSecondaryIndexes, createPostgresTrustedImportSession, restoreSecondaryIndexes, analyzeImportedTables, createCommonOperationBackend, vectorSlotFromParams, buildLiveNodeCandidates, mapVectorWriteError, mapHybridSearchRow, mapContributionMaterializationRow, POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS, buildContributionInsertValues, buildContributionOnConflictSet, tableExistsFromRow, assertAdoptedDialect, commitSchemaVersionIfKindsEmpty, buildKindRemovalInsertValues, POSTGRES_KIND_REMOVAL_TIMESTAMPS, buildKindRemovalOnConflictSet, mapKindRemovalRow, buildMaterializationInsertValues, POSTGRES_INDEX_MAT_TIMESTAMPS, buildMaterializationOnConflictSet, mapMaterializationRow, vectorSlotFromDropIndexParams, vectorSlotFromCreateIndexParams, assertActiveSchemaVersion, FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT, EMBEDDING_UPSERT_PARAM_COUNT, gateFulltext, getOrCreateLru } from './chunk-
|
|
2
|
-
import { pgvectorStrategy, assertPgvectorEfSearch } from './chunk-
|
|
3
|
-
import { createNodeRowMapper, POSTGRES_ROW_MAPPER_CONFIG, createEdgeRowMapper, createUniqueRowMapper, createSchemaVersionRowMapper, nowIso, coerceNumericScore } from './chunk-
|
|
4
|
-
import { tables, generatePostgresDDL, generatePgCreateTableSQL, createPostgresTables, postgresContributions } from './chunk-
|
|
5
|
-
import { toDrizzleSql, compileQueryWithDialect } from './chunk-
|
|
6
|
-
import { isPostgresConcurrentDdlRaceError, chunk, isMissingTableError, isInsufficientResourcesError } from './chunk-
|
|
7
|
-
import { POSTGRES_MAX_BIND_PARAMETERS, normalizeGraphAnalyticsCapabilities,
|
|
8
|
-
import { tsvectorStrategy, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, resolveEfSearchOverride, vectorSearchFrontierTuning } from './chunk-
|
|
9
|
-
import { sql, isSqlFragment, shouldForceCustomPlan, annIndexScanTypes } from './chunk-
|
|
10
|
-
import { ConfigurationError, StaleVersionError, CompilerInvariantError, TransactionClosedError } from './chunk-
|
|
1
|
+
import { contributionRebuildSupported, createPostgresOperationStrategy, createCachedTableExistence, createContributionMaterializer, gateFulltextMethods, lockPostgresTrustedImportTables, assertTrustedImportDatabaseEmpty, suspendPostgresSecondaryIndexes, createPostgresTrustedImportSession, restoreSecondaryIndexes, analyzeImportedTables, createCommonOperationBackend, vectorSlotFromParams, buildLiveNodeCandidates, mapVectorWriteError, mapHybridSearchRow, mapContributionMaterializationRow, POSTGRES_CONTRIBUTION_MAT_TIMESTAMPS, buildContributionInsertValues, buildContributionOnConflictSet, tableExistsFromRow, assertAdoptedDialect, commitSchemaVersionIfKindsEmpty, buildKindRemovalInsertValues, POSTGRES_KIND_REMOVAL_TIMESTAMPS, buildKindRemovalOnConflictSet, mapKindRemovalRow, buildMaterializationInsertValues, POSTGRES_INDEX_MAT_TIMESTAMPS, buildMaterializationOnConflictSet, mapMaterializationRow, vectorSlotFromDropIndexParams, vectorSlotFromCreateIndexParams, assertActiveSchemaVersion, FIND_EDGES_ENDPOINT_FIXED_PARAM_COUNT, EMBEDDING_UPSERT_PARAM_COUNT, gateFulltext, getOrCreateLru } from './chunk-ACGSAMD3.js';
|
|
2
|
+
import { pgvectorStrategy, assertPgvectorEfSearch } from './chunk-JONXFAPO.js';
|
|
3
|
+
import { createNodeRowMapper, POSTGRES_ROW_MAPPER_CONFIG, createEdgeRowMapper, createUniqueRowMapper, createSchemaVersionRowMapper, nowIso, coerceNumericScore } from './chunk-YIURNGXI.js';
|
|
4
|
+
import { tables, generatePostgresDDL, generatePgCreateTableSQL, createPostgresTables, postgresContributions } from './chunk-6SWPJEYN.js';
|
|
5
|
+
import { toDrizzleSql, compileQueryWithDialect } from './chunk-OMZ37BM2.js';
|
|
6
|
+
import { resolveDeclaredBackendResource, deriveBackend, auditBackendResource, isPostgresConcurrentDdlRaceError, chunk, isMissingTableError, isInsufficientResourcesError } from './chunk-UGHG7PGX.js';
|
|
7
|
+
import { POSTGRES_MAX_BIND_PARAMETERS, normalizeGraphAnalyticsCapabilities, INTERNAL_TEMPORARY_WRITES, POSTGRES_CAPABILITIES } from './chunk-6LN7FIVU.js';
|
|
8
|
+
import { tsvectorStrategy, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, resolveEfSearchOverride, vectorSearchFrontierTuning } from './chunk-ZDKTPBGV.js';
|
|
9
|
+
import { sql, isSqlFragment, shouldForceCustomPlan, annIndexScanTypes } from './chunk-3DMMGT6S.js';
|
|
10
|
+
import { ConfigurationError, StaleVersionError, CompilerInvariantError, TransactionClosedError } from './chunk-ZLONH2UD.js';
|
|
11
11
|
import { requireDefined } from './chunk-DYATYRY4.js';
|
|
12
12
|
import { getTableName, sql as sql$1, eq, and, isNull, inArray } from 'drizzle-orm';
|
|
13
13
|
import { PgTransaction } from 'drizzle-orm/pg-core';
|
|
@@ -350,6 +350,113 @@ var IDENTITY_TABLE_LOGICAL_NAMES = /* @__PURE__ */ new Set([
|
|
|
350
350
|
"identityClosure",
|
|
351
351
|
"identitySeparation"
|
|
352
352
|
]);
|
|
353
|
+
var TRIGRAM_EXTENSION_DDL_LOCK_KEY = "typegraph:pg-trgm-ddl";
|
|
354
|
+
var TRIGRAM_EXTENSION_DDL = "CREATE EXTENSION IF NOT EXISTS pg_trgm;";
|
|
355
|
+
function parallelWorkerResetSql(tableName) {
|
|
356
|
+
return `ALTER TABLE "${tableName.replaceAll('"', '""')}" RESET (parallel_workers);`;
|
|
357
|
+
}
|
|
358
|
+
function parallelWorkerResetError(tableName, resetError) {
|
|
359
|
+
return new Error(
|
|
360
|
+
`PostgreSQL did not restore the durable parallel_workers setting on vector table ${JSON.stringify(tableName)}. Run ${parallelWorkerResetSql(tableName)} before retrying index materialization.`,
|
|
361
|
+
{ cause: resetError }
|
|
362
|
+
);
|
|
363
|
+
}
|
|
364
|
+
function vectorSerialFallbackPreparationError(step, parallelBuildError, preparationError) {
|
|
365
|
+
const action = step === "drop-index" ? "drop the partial vector index" : "disable parallel workers for the serial retry";
|
|
366
|
+
return new AggregateError(
|
|
367
|
+
[preparationError],
|
|
368
|
+
`PostgreSQL could not ${action} after the parallel vector index build exhausted resources.`,
|
|
369
|
+
{ cause: parallelBuildError }
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
function reportParallelWorkerResetFailure(tableName, resetError) {
|
|
373
|
+
try {
|
|
374
|
+
if (typeof console === "undefined" || typeof console.error !== "function") {
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
const reported = console.error(
|
|
378
|
+
`[typegraph] The serial vector index rebuild failed and cleanup also failed. ${parallelWorkerResetError(tableName, resetError).message}`,
|
|
379
|
+
resetError
|
|
380
|
+
);
|
|
381
|
+
void Promise.resolve(reported).catch(() => {
|
|
382
|
+
});
|
|
383
|
+
} catch {
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
async function resetVectorParallelWorkers(execute, tableName) {
|
|
387
|
+
try {
|
|
388
|
+
await execute(
|
|
389
|
+
sql`ALTER TABLE ${sql.identifier(tableName)} RESET (parallel_workers)`
|
|
390
|
+
);
|
|
391
|
+
} catch (resetError) {
|
|
392
|
+
throw parallelWorkerResetError(tableName, resetError);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
async function runVectorIndexBuildWithSerialFallback(execute, tableName, indexStatement, dropStatement) {
|
|
396
|
+
await resetVectorParallelWorkers(execute, tableName);
|
|
397
|
+
try {
|
|
398
|
+
await execute(indexStatement);
|
|
399
|
+
} catch (error) {
|
|
400
|
+
if (!isInsufficientResourcesError(error)) throw error;
|
|
401
|
+
if (dropStatement !== void 0) {
|
|
402
|
+
try {
|
|
403
|
+
await execute(dropStatement);
|
|
404
|
+
} catch (dropError) {
|
|
405
|
+
throw vectorSerialFallbackPreparationError(
|
|
406
|
+
"drop-index",
|
|
407
|
+
error,
|
|
408
|
+
dropError
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
await runSerialVectorIndexBuild(
|
|
413
|
+
execute,
|
|
414
|
+
tableName,
|
|
415
|
+
indexStatement,
|
|
416
|
+
error
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
async function runPostgresVectorIndexBuild(vectorStrategy, execute, tableName, indexStatement, dropStatement) {
|
|
421
|
+
if (vectorStrategy !== pgvectorStrategy) {
|
|
422
|
+
await execute(indexStatement);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
await runVectorIndexBuildWithSerialFallback(
|
|
426
|
+
execute,
|
|
427
|
+
tableName,
|
|
428
|
+
indexStatement,
|
|
429
|
+
dropStatement
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
async function runSerialVectorIndexBuild(execute, tableName, indexStatement, parallelBuildError) {
|
|
433
|
+
const table = sql.identifier(tableName);
|
|
434
|
+
try {
|
|
435
|
+
await execute(sql`ALTER TABLE ${table} SET (parallel_workers = 0)`);
|
|
436
|
+
} catch (setError) {
|
|
437
|
+
if (parallelBuildError === void 0) throw setError;
|
|
438
|
+
throw vectorSerialFallbackPreparationError(
|
|
439
|
+
"disable-parallel-workers",
|
|
440
|
+
parallelBuildError,
|
|
441
|
+
setError
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
let buildFailure;
|
|
445
|
+
try {
|
|
446
|
+
await execute(indexStatement);
|
|
447
|
+
} catch (error) {
|
|
448
|
+
buildFailure = { error };
|
|
449
|
+
}
|
|
450
|
+
try {
|
|
451
|
+
await execute(sql`ALTER TABLE ${table} RESET (parallel_workers)`);
|
|
452
|
+
} catch (resetError) {
|
|
453
|
+
if (buildFailure === void 0) {
|
|
454
|
+
throw parallelWorkerResetError(tableName, resetError);
|
|
455
|
+
}
|
|
456
|
+
reportParallelWorkerResetFailure(tableName, resetError);
|
|
457
|
+
}
|
|
458
|
+
if (buildFailure !== void 0) throw buildFailure.error;
|
|
459
|
+
}
|
|
353
460
|
var toNodeRow = createNodeRowMapper(POSTGRES_ROW_MAPPER_CONFIG);
|
|
354
461
|
var toEdgeRow = createEdgeRowMapper(POSTGRES_ROW_MAPPER_CONFIG);
|
|
355
462
|
var toUniqueRow = createUniqueRowMapper(POSTGRES_ROW_MAPPER_CONFIG);
|
|
@@ -364,7 +471,10 @@ function buildPostgresCapabilities(fulltextStrategy, vectorStrategy) {
|
|
|
364
471
|
};
|
|
365
472
|
}
|
|
366
473
|
function createPostgresBackend(db, options = {}) {
|
|
367
|
-
const
|
|
474
|
+
const resourceAudit = resolveDeclaredBackendResource(
|
|
475
|
+
getSerializedPostgresClient(db),
|
|
476
|
+
options.serializedResource
|
|
477
|
+
);
|
|
368
478
|
const tables2 = options.tables ?? tables;
|
|
369
479
|
const fulltextStrategy = options.fulltext ?? tsvectorStrategy;
|
|
370
480
|
const vectorStrategy = options.vector === false ? void 0 : options.vector ?? pgvectorStrategy;
|
|
@@ -666,7 +776,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
666
776
|
{ capability: "trustedImport", dialect: "postgres" }
|
|
667
777
|
);
|
|
668
778
|
}
|
|
669
|
-
const trustedTx =
|
|
779
|
+
const trustedTx = deriveBackend(tx, {
|
|
670
780
|
executeRaw(sqlText, params) {
|
|
671
781
|
return executeCompiled({ params, sql: sqlText });
|
|
672
782
|
}
|
|
@@ -740,6 +850,18 @@ function createPostgresBackend(db, options = {}) {
|
|
|
740
850
|
`ALTER TABLE "${tableName}" ADD COLUMN IF NOT EXISTS "claim_token" text;`
|
|
741
851
|
);
|
|
742
852
|
},
|
|
853
|
+
async ensureTrigramExtension() {
|
|
854
|
+
if (!capabilities.transactions) {
|
|
855
|
+
await executeConcurrentCreateDdl(TRIGRAM_EXTENSION_DDL);
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
await db.transaction(async (tx) => {
|
|
859
|
+
await tx.execute(
|
|
860
|
+
sql$1`SELECT pg_advisory_xact_lock(hashtext(${TRIGRAM_EXTENSION_DDL_LOCK_KEY}), 0)`
|
|
861
|
+
);
|
|
862
|
+
await tx.execute(sql$1.raw(TRIGRAM_EXTENSION_DDL));
|
|
863
|
+
});
|
|
864
|
+
},
|
|
743
865
|
async claimIndexMaterialization(params) {
|
|
744
866
|
const t = tables2.indexMaterializations;
|
|
745
867
|
const rows = await db.execute(sql$1`
|
|
@@ -1000,9 +1122,7 @@ function createPostgresBackend(db, options = {}) {
|
|
|
1000
1122
|
async close() {
|
|
1001
1123
|
}
|
|
1002
1124
|
};
|
|
1003
|
-
|
|
1004
|
-
markSerializedTransactionResource(backend, serializedClient);
|
|
1005
|
-
}
|
|
1125
|
+
auditBackendResource(backend, resourceAudit);
|
|
1006
1126
|
return backend;
|
|
1007
1127
|
}
|
|
1008
1128
|
function getSerializedPostgresClient(db) {
|
|
@@ -1021,14 +1141,24 @@ function getSerializedPostgresClient(db) {
|
|
|
1021
1141
|
function isSingleConnectionPgPool(candidate) {
|
|
1022
1142
|
const options = candidate["options"];
|
|
1023
1143
|
if (typeof options !== "object" || options === null) return false;
|
|
1024
|
-
return
|
|
1144
|
+
return isSingleConnectionPgPoolCap(
|
|
1145
|
+
options["max"]
|
|
1146
|
+
);
|
|
1147
|
+
}
|
|
1148
|
+
function isSingleConnectionPgPoolCap(value) {
|
|
1149
|
+
return value === 1 || typeof value === "string" && Number(value) === 1;
|
|
1025
1150
|
}
|
|
1026
1151
|
function isSingleConnectionCallablePgClient(client) {
|
|
1027
1152
|
if (client === void 0 || client === null) return false;
|
|
1028
1153
|
const options = client["options"];
|
|
1029
1154
|
if (!isPostgresJsClient(client)) return false;
|
|
1030
1155
|
if (typeof options !== "object" || options === null) return false;
|
|
1031
|
-
return
|
|
1156
|
+
return isSingleConnectionPostgresJsCap(
|
|
1157
|
+
options["max"]
|
|
1158
|
+
);
|
|
1159
|
+
}
|
|
1160
|
+
function isSingleConnectionPostgresJsCap(value) {
|
|
1161
|
+
return value === 1 || typeof value === "string" && Number(value) === 1;
|
|
1032
1162
|
}
|
|
1033
1163
|
function isBarePgClient(candidate) {
|
|
1034
1164
|
if (candidate["options"] !== void 0 || candidate["totalCount"] !== void 0 || candidate["idleCount"] !== void 0 || candidate["waitingCount"] !== void 0) {
|
|
@@ -1173,7 +1303,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1173
1303
|
const batchConfig = computePostgresBatchChunkSizes(
|
|
1174
1304
|
capabilities.maxBindParameters ?? POSTGRES_MAX_BIND_PARAMETERS
|
|
1175
1305
|
);
|
|
1176
|
-
const
|
|
1306
|
+
const commonOperationMembers = createCommonOperationBackend({
|
|
1177
1307
|
batchConfig,
|
|
1178
1308
|
execution: {
|
|
1179
1309
|
execAll,
|
|
@@ -1374,7 +1504,7 @@ function createPostgresOperationBackend(options) {
|
|
|
1374
1504
|
return active?.version;
|
|
1375
1505
|
}
|
|
1376
1506
|
const operationBackend = {
|
|
1377
|
-
...
|
|
1507
|
+
...commonOperationMembers,
|
|
1378
1508
|
...executeRawMethod,
|
|
1379
1509
|
...vectorEmbeddingMethods,
|
|
1380
1510
|
/**
|
|
@@ -1431,7 +1561,9 @@ function createPostgresOperationBackend(options) {
|
|
|
1431
1561
|
);
|
|
1432
1562
|
return;
|
|
1433
1563
|
}
|
|
1434
|
-
const settled = await
|
|
1564
|
+
const settled = await commonOperationMembers.getActiveSchema(
|
|
1565
|
+
params.graphId
|
|
1566
|
+
);
|
|
1435
1567
|
throw new StaleVersionError({
|
|
1436
1568
|
graphId: params.graphId,
|
|
1437
1569
|
expected: params.expectedVersion,
|
|
@@ -1447,32 +1579,18 @@ function createPostgresOperationBackend(options) {
|
|
|
1447
1579
|
concurrent: params.concurrent === true
|
|
1448
1580
|
});
|
|
1449
1581
|
if (indexStatement !== void 0) {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
slot.fieldPath
|
|
1463
|
-
)
|
|
1464
|
-
);
|
|
1465
|
-
await execRun(
|
|
1466
|
-
sql`ALTER TABLE ${table} SET (parallel_workers = 0)`
|
|
1467
|
-
);
|
|
1468
|
-
try {
|
|
1469
|
-
await execRun(indexStatement);
|
|
1470
|
-
} finally {
|
|
1471
|
-
await execRun(
|
|
1472
|
-
sql`ALTER TABLE ${table} RESET (parallel_workers)`
|
|
1473
|
-
);
|
|
1474
|
-
}
|
|
1475
|
-
}
|
|
1582
|
+
const strategyTableName = vectorStrategy.tableName(
|
|
1583
|
+
slot.graphId,
|
|
1584
|
+
slot.nodeKind,
|
|
1585
|
+
slot.fieldPath
|
|
1586
|
+
);
|
|
1587
|
+
await runPostgresVectorIndexBuild(
|
|
1588
|
+
vectorStrategy,
|
|
1589
|
+
execRun,
|
|
1590
|
+
strategyTableName,
|
|
1591
|
+
indexStatement,
|
|
1592
|
+
vectorStrategy.buildDropIndex?.(slot)
|
|
1593
|
+
);
|
|
1476
1594
|
}
|
|
1477
1595
|
},
|
|
1478
1596
|
// === Fulltext Operations ===
|
|
@@ -1587,5 +1705,5 @@ function createTransactionBackend(options) {
|
|
|
1587
1705
|
}
|
|
1588
1706
|
|
|
1589
1707
|
export { createPostgresBackend };
|
|
1590
|
-
//# sourceMappingURL=chunk-
|
|
1591
|
-
//# sourceMappingURL=chunk-
|
|
1708
|
+
//# sourceMappingURL=chunk-OD4SSY2U.js.map
|
|
1709
|
+
//# sourceMappingURL=chunk-OD4SSY2U.js.map
|