@nicia-ai/typegraph 0.44.0 → 0.45.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 +7 -7
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +3 -3
- package/dist/backend/index.cjs +37 -37
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +6 -6
- package/dist/backend/postgres/index.cjs +23 -23
- package/dist/backend/postgres/index.d.cts +6 -6
- package/dist/backend/postgres/index.d.ts +6 -6
- package/dist/backend/postgres/index.js +10 -10
- package/dist/backend/postgres/pglite-store.cjs +24 -25
- 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 +20 -21
- package/dist/backend/postgres/pglite-store.js.map +1 -1
- package/dist/backend/postgres/pglite.cjs +12 -12
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +11 -11
- package/dist/backend/sqlite/index.cjs +21 -21
- package/dist/backend/sqlite/index.d.cts +6 -6
- package/dist/backend/sqlite/index.d.ts +6 -6
- package/dist/backend/sqlite/index.js +9 -9
- package/dist/backend/sqlite/libsql.cjs +14 -14
- 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 +10 -10
- package/dist/backend/sqlite/libsql.js.map +1 -1
- package/dist/backend/sqlite/local-store.cjs +25 -26
- 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 +21 -22
- package/dist/backend/sqlite/local-store.js.map +1 -1
- package/dist/backend/sqlite/local.cjs +13 -13
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +11 -11
- package/dist/{chunk-TVLKA4AY.js → chunk-42PYUGLS.js} +57 -3
- package/dist/chunk-42PYUGLS.js.map +1 -0
- package/dist/{chunk-IJTLXNGJ.js → chunk-4GUBTVPV.js} +3 -4
- package/dist/chunk-4GUBTVPV.js.map +1 -0
- package/dist/{chunk-63KCKSSH.js → chunk-4GUTQPVO.js} +33 -9
- package/dist/chunk-4GUTQPVO.js.map +1 -0
- package/dist/{chunk-FGO5JFVJ.cjs → chunk-4MEWSUVM.cjs} +10 -10
- package/dist/chunk-4MEWSUVM.cjs.map +1 -0
- package/dist/{chunk-FMGEZBAQ.js → chunk-4QIKLIGG.js} +15 -3
- package/dist/chunk-4QIKLIGG.js.map +1 -0
- package/dist/{chunk-FMMIX6N4.js → chunk-55ITBQJI.js} +2 -2
- package/dist/chunk-55ITBQJI.js.map +1 -0
- package/dist/{chunk-TCRIQMBU.js → chunk-5EKPX6QU.js} +4 -4
- package/dist/{chunk-TCRIQMBU.js.map → chunk-5EKPX6QU.js.map} +1 -1
- package/dist/{chunk-GFRGG2US.cjs → chunk-5GAONX5G.cjs} +7 -7
- package/dist/{chunk-GFRGG2US.cjs.map → chunk-5GAONX5G.cjs.map} +1 -1
- package/dist/{chunk-ALFUGRYB.cjs → chunk-6RYPD3NJ.cjs} +29 -29
- package/dist/{chunk-ALFUGRYB.cjs.map → chunk-6RYPD3NJ.cjs.map} +1 -1
- package/dist/{chunk-QGKILWGZ.cjs → chunk-7PF2L3H6.cjs} +4 -4
- package/dist/{chunk-QGKILWGZ.cjs.map → chunk-7PF2L3H6.cjs.map} +1 -1
- package/dist/chunk-B3F2D3SP.cjs +12 -0
- package/dist/{chunk-EPTSMFH7.cjs.map → chunk-B3F2D3SP.cjs.map} +1 -1
- package/dist/{chunk-7G32LIQM.js → chunk-BGYJW37L.js} +5 -5
- package/dist/{chunk-7G32LIQM.js.map → chunk-BGYJW37L.js.map} +1 -1
- package/dist/{chunk-EE7N5XXQ.cjs → chunk-BNS75YNF.cjs} +9 -10
- package/dist/chunk-BNS75YNF.cjs.map +1 -0
- package/dist/{chunk-VITTKBWF.js → chunk-CBKG6HEP.js} +5 -5
- package/dist/{chunk-VITTKBWF.js.map → chunk-CBKG6HEP.js.map} +1 -1
- package/dist/{chunk-A4PBRX4C.cjs → chunk-D54WH24V.cjs} +57 -2
- package/dist/chunk-D54WH24V.cjs.map +1 -0
- package/dist/{chunk-MCHP7RHZ.cjs → chunk-D56XG4EI.cjs} +26 -14
- package/dist/chunk-D56XG4EI.cjs.map +1 -0
- package/dist/{chunk-SQRD2CYF.js → chunk-DXEEHSGN.js} +293 -45
- package/dist/chunk-DXEEHSGN.js.map +1 -0
- package/dist/{chunk-GWEDD3DH.js → chunk-EFEOOCJ3.js} +4 -4
- package/dist/{chunk-GWEDD3DH.js.map → chunk-EFEOOCJ3.js.map} +1 -1
- package/dist/{chunk-3PRKZW6D.cjs → chunk-EKFUG4G7.cjs} +2 -2
- package/dist/chunk-EKFUG4G7.cjs.map +1 -0
- package/dist/{chunk-HJH3RMXG.cjs → chunk-F4NHQHEZ.cjs} +4 -4
- package/dist/{chunk-HJH3RMXG.cjs.map → chunk-F4NHQHEZ.cjs.map} +1 -1
- package/dist/{chunk-46GDII45.js → chunk-FL5UQRES.js} +3 -3
- package/dist/{chunk-46GDII45.js.map → chunk-FL5UQRES.js.map} +1 -1
- package/dist/{chunk-TFMVL4QH.js → chunk-FLEQ2HBK.js} +3 -3
- package/dist/{chunk-TFMVL4QH.js.map → chunk-FLEQ2HBK.js.map} +1 -1
- package/dist/{chunk-BEFM74L2.js → chunk-FQ7ZPOTZ.js} +6 -6
- package/dist/{chunk-BEFM74L2.js.map → chunk-FQ7ZPOTZ.js.map} +1 -1
- package/dist/{chunk-ST3LPB2V.cjs → chunk-H7VE3FL4.cjs} +318 -70
- package/dist/chunk-H7VE3FL4.cjs.map +1 -0
- package/dist/{chunk-BCP7LLOY.js → chunk-ID4WXTKL.js} +367 -41
- package/dist/{chunk-BCP7LLOY.js.map → chunk-ID4WXTKL.js.map} +1 -1
- package/dist/{chunk-EFELJVLA.js → chunk-ISLPNELU.js} +15 -3
- package/dist/chunk-ISLPNELU.js.map +1 -0
- package/dist/{chunk-A2I2XO52.cjs → chunk-IX64T5OL.cjs} +4 -4
- package/dist/{chunk-A2I2XO52.cjs.map → chunk-IX64T5OL.cjs.map} +1 -1
- package/dist/{chunk-QYWINYEA.cjs → chunk-J2ICGNHO.cjs} +5 -6
- package/dist/chunk-J2ICGNHO.cjs.map +1 -0
- package/dist/{chunk-7V2FGGI2.cjs → chunk-J7LXTUTP.cjs} +54 -12
- package/dist/chunk-J7LXTUTP.cjs.map +1 -0
- package/dist/{chunk-WBUFJ7BS.cjs → chunk-JQXSZHF2.cjs} +12 -2
- package/dist/chunk-JQXSZHF2.cjs.map +1 -0
- package/dist/{chunk-OVUUTCPJ.cjs → chunk-JXUTCSXX.cjs} +28 -2
- package/dist/chunk-JXUTCSXX.cjs.map +1 -0
- package/dist/{chunk-66UVLHQA.cjs → chunk-KMXWZLQX.cjs} +14 -14
- package/dist/{chunk-66UVLHQA.cjs.map → chunk-KMXWZLQX.cjs.map} +1 -1
- package/dist/{chunk-STQ3BSED.cjs → chunk-NAAMUYMS.cjs} +23 -11
- package/dist/chunk-NAAMUYMS.cjs.map +1 -0
- package/dist/{chunk-NN3QSOVS.cjs → chunk-OOA273IJ.cjs} +14 -14
- package/dist/{chunk-NN3QSOVS.cjs.map → chunk-OOA273IJ.cjs.map} +1 -1
- package/dist/{chunk-OSZPLZIV.cjs → chunk-P7GTYOLB.cjs} +130 -106
- package/dist/chunk-P7GTYOLB.cjs.map +1 -0
- package/dist/{chunk-K3BUWSFR.js → chunk-PVUI6KGR.js} +28 -2
- package/dist/chunk-PVUI6KGR.js.map +1 -0
- package/dist/{chunk-SBPC5IP3.js → chunk-Q6EDCUXV.js} +242 -10
- package/dist/chunk-Q6EDCUXV.js.map +1 -0
- package/dist/{chunk-2BIG7U6E.cjs → chunk-QC4MCOFV.cjs} +5 -5
- package/dist/{chunk-2BIG7U6E.cjs.map → chunk-QC4MCOFV.cjs.map} +1 -1
- package/dist/{chunk-JRP3VGHS.js → chunk-QLUXRWKL.js} +3 -3
- package/dist/{chunk-JRP3VGHS.js.map → chunk-QLUXRWKL.js.map} +1 -1
- package/dist/{chunk-IIT5K7SK.cjs → chunk-QR24DJDF.cjs} +6 -6
- package/dist/{chunk-IIT5K7SK.cjs.map → chunk-QR24DJDF.cjs.map} +1 -1
- package/dist/{chunk-HOIFFY4M.js → chunk-QRNYDV5Z.js} +48 -21
- package/dist/chunk-QRNYDV5Z.js.map +1 -0
- package/dist/{chunk-FRHHDHKH.js → chunk-RFRM3Q5K.js} +15 -3
- package/dist/chunk-RFRM3Q5K.js.map +1 -0
- package/dist/{chunk-ATLN63JA.js → chunk-RUQS6M7G.js} +5 -5
- package/dist/chunk-RUQS6M7G.js.map +1 -0
- package/dist/{chunk-XMYJY7NI.js → chunk-S3ZRKJHY.js} +3 -3
- package/dist/{chunk-XMYJY7NI.js.map → chunk-S3ZRKJHY.js.map} +1 -1
- package/dist/{chunk-FSXTPBRN.js → chunk-TKORQCG4.js} +49 -7
- package/dist/chunk-TKORQCG4.js.map +1 -0
- package/dist/{chunk-2Y4IFKW7.js → chunk-TKP5T34P.js} +3 -4
- package/dist/chunk-TKP5T34P.js.map +1 -0
- package/dist/{chunk-NCX65HBY.cjs → chunk-UCQ3BFSY.cjs} +301 -68
- package/dist/chunk-UCQ3BFSY.cjs.map +1 -0
- package/dist/{chunk-B75XRV3O.js → chunk-V34A6R5V.js} +12 -3
- package/dist/chunk-V34A6R5V.js.map +1 -0
- package/dist/{chunk-BNUFUFAU.js → chunk-VTN3C3CH.js} +6 -6
- package/dist/chunk-VTN3C3CH.js.map +1 -0
- package/dist/{chunk-5MUSU4ZP.cjs → chunk-VVQM4CZD.cjs} +12 -12
- package/dist/chunk-VVQM4CZD.cjs.map +1 -0
- package/dist/{chunk-IIMQJYAM.js → chunk-WDAVPX46.js} +3 -3
- package/dist/{chunk-IIMQJYAM.js.map → chunk-WDAVPX46.js.map} +1 -1
- package/dist/{chunk-YNULOIR5.cjs → chunk-WDBXJOU5.cjs} +28 -16
- package/dist/chunk-WDBXJOU5.cjs.map +1 -0
- package/dist/{chunk-PAW2XUZN.js → chunk-WUFASQUO.js} +3 -3
- package/dist/{chunk-PAW2XUZN.js.map → chunk-WUFASQUO.js.map} +1 -1
- package/dist/{chunk-PDGEXGS6.cjs → chunk-YDWLUT5V.cjs} +136 -109
- package/dist/chunk-YDWLUT5V.cjs.map +1 -0
- package/dist/{chunk-PHXITZE4.js → chunk-YMTXMPV6.js} +3 -3
- package/dist/{chunk-PHXITZE4.js.map → chunk-YMTXMPV6.js.map} +1 -1
- package/dist/{chunk-XR4YZFKW.cjs → chunk-YOALGKRE.cjs} +690 -364
- package/dist/chunk-YOALGKRE.cjs.map +1 -0
- package/dist/{chunk-6JZUSDY2.cjs → chunk-Z3WO6MND.cjs} +27 -27
- package/dist/{chunk-6JZUSDY2.cjs.map → chunk-Z3WO6MND.cjs.map} +1 -1
- package/dist/{chunk-2VLBGQBY.cjs → chunk-ZI6VQSZA.cjs} +37 -37
- package/dist/{chunk-2VLBGQBY.cjs.map → chunk-ZI6VQSZA.cjs.map} +1 -1
- package/dist/core/index.cjs +10 -11
- package/dist/core/index.d.cts +5 -5
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +3 -4
- package/dist/{ddl-eWg7hx6R.d.cts → ddl-BG4J805L.d.cts} +3 -3
- package/dist/{ddl-D5369kOY.d.ts → ddl-CgiS9QLj.d.ts} +3 -3
- package/dist/{define-graph-SvYXOl78.d.ts → define-graph-BGrJahvp.d.ts} +1 -1
- package/dist/{define-graph-DVF-oN1i.d.cts → define-graph-alREY2wj.d.cts} +1 -1
- package/dist/graph-extension/index.cjs +18 -19
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-extension/index.js +3 -4
- package/dist/graph-merge/index.cjs +89 -90
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +9 -9
- package/dist/graph-merge/index.d.ts +9 -9
- package/dist/graph-merge/index.js +16 -17
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-By89Sezh.d.ts → index-BBxZCUdu.d.ts} +2 -2
- package/dist/{index-DcQ3Sxs-.d.cts → index-C3y_98iN.d.cts} +2 -2
- package/dist/index.cjs +124 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +23 -24
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.cjs +11 -11
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +4 -4
- package/dist/interchange/index.cjs +27 -26
- package/dist/interchange/index.cjs.map +1 -1
- package/dist/interchange/index.d.cts +7 -7
- package/dist/interchange/index.d.ts +7 -7
- package/dist/interchange/index.js +8 -7
- package/dist/interchange/index.js.map +1 -1
- package/dist/{manager-Cn0NFIhN.d.cts → manager-KS7CGQQT.d.cts} +3 -3
- package/dist/{manager-B0KjKE93.d.ts → manager-YoLEfcc1.d.ts} +3 -3
- package/dist/{materialize-indexes-BD4V3svD.d.ts → materialize-indexes-Bhhyb1B3.d.ts} +1 -1
- package/dist/{materialize-indexes-DVRhd5h4.d.cts → materialize-indexes-OHRWypW6.d.cts} +1 -1
- package/dist/{postgres-DaEWvN4x.d.cts → postgres-DpkW3R5Y.d.cts} +1 -1
- package/dist/{postgres-u0a0HN2D.d.ts → postgres-DwqyIniy.d.ts} +1 -1
- package/dist/profiler/index.d.cts +10 -10
- package/dist/profiler/index.d.ts +10 -10
- package/dist/provenance/index.cjs +15 -15
- 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 +3 -3
- package/dist/provenance/index.js.map +1 -1
- package/dist/schema/index.cjs +30 -31
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +8 -9
- package/dist/{searchable-BT7j9_IK.d.cts → searchable-CIZL8Hyw.d.cts} +2 -2
- package/dist/{searchable-CnYEancP.d.ts → searchable-DLWEfC4a.d.ts} +2 -2
- package/dist/{sqlite-BrMoSsI7.d.cts → sqlite-DY0WODUK.d.cts} +1 -1
- package/dist/{sqlite-CHhZUyO5.d.ts → sqlite-L-VIRzqA.d.ts} +1 -1
- package/dist/{store-view-Bvdku0Ht.d.ts → store-view-66p92IPi.d.ts} +1887 -1811
- package/dist/{store-view-w-md0nQ4.d.cts → store-view-A85FFRnk.d.cts} +1887 -1811
- package/dist/{temporal-BCORwUau.d.cts → temporal-BNbjXqer.d.cts} +1 -1
- package/dist/{temporal--x9T8K4S.d.ts → temporal-Bob6Nfbp.d.ts} +1 -1
- package/dist/{types-Cjvkj0jA.d.ts → types-Ch9a0Dx6.d.cts} +141 -17
- package/dist/{types-Cjvkj0jA.d.cts → types-Ch9a0Dx6.d.ts} +141 -17
- package/dist/{types-COODtTJU.d.ts → types-ClCzT-dT.d.ts} +1 -1
- package/dist/{types-6-WJmSD4.d.cts → types-DeORZhxn.d.cts} +1 -1
- package/dist/{where-CUQmCR6d.d.cts → where-DPw52ksb.d.cts} +1 -1
- package/dist/{where-5xVawAwL.d.ts → where-kWUZPvEA.d.ts} +1 -1
- package/package.json +1 -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-3PRKZW6D.cjs.map +0 -1
- package/dist/chunk-5MUSU4ZP.cjs.map +0 -1
- package/dist/chunk-63KCKSSH.js.map +0 -1
- package/dist/chunk-7V2FGGI2.cjs.map +0 -1
- package/dist/chunk-A4PBRX4C.cjs.map +0 -1
- package/dist/chunk-ATLN63JA.js.map +0 -1
- package/dist/chunk-B75XRV3O.js.map +0 -1
- package/dist/chunk-BNUFUFAU.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-FGO5JFVJ.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-HOHAJ2NR.cjs +0 -61
- package/dist/chunk-HOHAJ2NR.cjs.map +0 -1
- package/dist/chunk-HOIFFY4M.js.map +0 -1
- package/dist/chunk-IJTLXNGJ.js.map +0 -1
- package/dist/chunk-K3BUWSFR.js.map +0 -1
- package/dist/chunk-MCHP7RHZ.cjs.map +0 -1
- 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-QYWINYEA.cjs.map +0 -1
- package/dist/chunk-SBPC5IP3.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-TVLKA4AY.js.map +0 -1
- package/dist/chunk-WBUFJ7BS.cjs.map +0 -1
- package/dist/chunk-XR4YZFKW.cjs.map +0 -1
- package/dist/chunk-YNULOIR5.cjs.map +0 -1
|
@@ -1,63 +1,62 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
7
|
-
require('../../chunk-
|
|
3
|
+
var chunk4MEWSUVM_cjs = require('../../chunk-4MEWSUVM.cjs');
|
|
4
|
+
require('../../chunk-YDWLUT5V.cjs');
|
|
5
|
+
require('../../chunk-H7VE3FL4.cjs');
|
|
6
|
+
var chunkYOALGKRE_cjs = require('../../chunk-YOALGKRE.cjs');
|
|
7
|
+
require('../../chunk-D56XG4EI.cjs');
|
|
8
8
|
require('../../chunk-4SZ6XPTG.cjs');
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
var
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-F4NHQHEZ.cjs');
|
|
10
|
+
var chunkZ3WO6MND_cjs = require('../../chunk-Z3WO6MND.cjs');
|
|
11
|
+
require('../../chunk-OOA273IJ.cjs');
|
|
12
|
+
require('../../chunk-UCQ3BFSY.cjs');
|
|
13
|
+
require('../../chunk-J7LXTUTP.cjs');
|
|
14
14
|
require('../../chunk-ZDH3DX3C.cjs');
|
|
15
15
|
require('../../chunk-CPEL3YIR.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkEKFUG4G7_cjs = require('../../chunk-EKFUG4G7.cjs');
|
|
17
17
|
require('../../chunk-EQ7JKLZO.cjs');
|
|
18
|
-
require('../../chunk-
|
|
18
|
+
require('../../chunk-ZI6VQSZA.cjs');
|
|
19
19
|
require('../../chunk-TRF4EBJT.cjs');
|
|
20
|
-
require('../../chunk-
|
|
20
|
+
require('../../chunk-BNS75YNF.cjs');
|
|
21
21
|
require('../../chunk-KKYELPZ2.cjs');
|
|
22
22
|
require('../../chunk-ACSVZPK7.cjs');
|
|
23
|
-
require('../../chunk-
|
|
23
|
+
require('../../chunk-JQXSZHF2.cjs');
|
|
24
24
|
require('../../chunk-QB6VMOJ2.cjs');
|
|
25
25
|
require('../../chunk-ZTAJL4DT.cjs');
|
|
26
|
-
require('../../chunk-
|
|
27
|
-
require('../../chunk-
|
|
28
|
-
require('../../chunk-
|
|
26
|
+
require('../../chunk-QR24DJDF.cjs');
|
|
27
|
+
require('../../chunk-5GAONX5G.cjs');
|
|
28
|
+
require('../../chunk-IX64T5OL.cjs');
|
|
29
29
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
30
30
|
require('../../chunk-NAUA4PW5.cjs');
|
|
31
|
-
require('../../chunk-
|
|
31
|
+
require('../../chunk-JXUTCSXX.cjs');
|
|
32
32
|
require('../../chunk-U5W4LKZV.cjs');
|
|
33
33
|
require('../../chunk-FJMPR3OH.cjs');
|
|
34
34
|
require('../../chunk-SJDMVITW.cjs');
|
|
35
35
|
require('../../chunk-764JHTLT.cjs');
|
|
36
36
|
require('../../chunk-HAHNRASW.cjs');
|
|
37
|
-
require('../../chunk-
|
|
37
|
+
require('../../chunk-J2ICGNHO.cjs');
|
|
38
38
|
require('../../chunk-SVJ5GEXW.cjs');
|
|
39
|
-
require('../../chunk-
|
|
39
|
+
require('../../chunk-D54WH24V.cjs');
|
|
40
40
|
require('../../chunk-DI74SMXS.cjs');
|
|
41
|
-
require('../../chunk-A4PBRX4C.cjs');
|
|
42
41
|
require('../../chunk-C4F7VJ5D.cjs');
|
|
43
42
|
require('../../chunk-TDXIBCGY.cjs');
|
|
44
43
|
|
|
45
44
|
// src/backend/postgres/pglite-store.ts
|
|
46
45
|
async function createLocalPgliteStore(graph, options = {}) {
|
|
47
|
-
const tables = options.store?.schema === void 0 ? void 0 :
|
|
48
|
-
const { backend } = await
|
|
46
|
+
const tables = options.store?.schema === void 0 ? void 0 : chunkZ3WO6MND_cjs.createPostgresTables(options.store.schema.tables);
|
|
47
|
+
const { backend } = await chunk4MEWSUVM_cjs.createLocalPgliteBackend({
|
|
49
48
|
...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
|
|
50
49
|
...options.vector === false ? { vector: false } : {},
|
|
51
50
|
...tables === void 0 ? {} : { tables }
|
|
52
51
|
});
|
|
53
52
|
try {
|
|
54
|
-
const [store] = await
|
|
53
|
+
const [store] = await chunkYOALGKRE_cjs.createStoreWithSchema(graph, backend, {
|
|
55
54
|
...options.store,
|
|
56
55
|
...options.schemaManagement
|
|
57
56
|
});
|
|
58
57
|
return store;
|
|
59
58
|
} catch (error) {
|
|
60
|
-
return
|
|
59
|
+
return chunkEKFUG4G7_cjs.closeAfterFailure(backend, error);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":["createPostgresTables","createLocalPgliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA,MACX,GAAG,OAAA,CAAQ;AAAA,KACZ,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store.cjs","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /** Schema initialization and migration policy. */\n schemaManagement?: SchemaManagerOptions;\n}>;\n\n/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions = {},\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n ...options.schemaManagement,\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { G as GraphDef } from '../../define-graph-
|
|
2
|
-
import { S as SchemaManagerOptions } from '../../manager-
|
|
3
|
-
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-view-
|
|
4
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../../types-
|
|
5
|
-
import '../../materialize-indexes-
|
|
6
|
-
import '../../temporal-
|
|
1
|
+
import { G as GraphDef } from '../../define-graph-alREY2wj.cjs';
|
|
2
|
+
import { S as SchemaManagerOptions } from '../../manager-KS7CGQQT.cjs';
|
|
3
|
+
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-view-A85FFRnk.cjs';
|
|
4
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.cjs';
|
|
5
|
+
import '../../materialize-indexes-OHRWypW6.cjs';
|
|
6
|
+
import '../../temporal-BNbjXqer.cjs';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../../searchable-
|
|
8
|
+
import '../../searchable-CIZL8Hyw.cjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Batteries-included local PostgreSQL Store backed by PGlite.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { G as GraphDef } from '../../define-graph-
|
|
2
|
-
import { S as SchemaManagerOptions } from '../../manager-
|
|
3
|
-
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-view-
|
|
4
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../../types-
|
|
5
|
-
import '../../materialize-indexes-
|
|
6
|
-
import '../../temporal
|
|
1
|
+
import { G as GraphDef } from '../../define-graph-BGrJahvp.js';
|
|
2
|
+
import { S as SchemaManagerOptions } from '../../manager-YoLEfcc1.js';
|
|
3
|
+
import { S as StoreOptions, U as UnboundLiveStoreOptions, a as Store, H as HistoryStoreOptions, b as HistoryStore, R as RecordedReadStoreOptions, c as RecordedReadStore, L as LiveStoreOptions } from '../../store-view-66p92IPi.js';
|
|
4
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.js';
|
|
5
|
+
import '../../materialize-indexes-Bhhyb1B3.js';
|
|
6
|
+
import '../../temporal-Bob6Nfbp.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../../searchable-
|
|
8
|
+
import '../../searchable-DLWEfC4a.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Batteries-included local PostgreSQL Store backed by PGlite.
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import { createLocalPgliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import { createStoreWithSchema } from '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
1
|
+
import { createLocalPgliteBackend } from '../../chunk-RUQS6M7G.js';
|
|
2
|
+
import '../../chunk-QRNYDV5Z.js';
|
|
3
|
+
import '../../chunk-DXEEHSGN.js';
|
|
4
|
+
import { createStoreWithSchema } from '../../chunk-ID4WXTKL.js';
|
|
5
|
+
import '../../chunk-ISLPNELU.js';
|
|
6
6
|
import '../../chunk-QT6V3YRH.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import { createPostgresTables } from '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-YMTXMPV6.js';
|
|
8
|
+
import { createPostgresTables } from '../../chunk-BGYJW37L.js';
|
|
9
|
+
import '../../chunk-EFEOOCJ3.js';
|
|
10
|
+
import '../../chunk-Q6EDCUXV.js';
|
|
11
|
+
import '../../chunk-TKORQCG4.js';
|
|
12
12
|
import '../../chunk-35S6P5ZU.js';
|
|
13
13
|
import '../../chunk-MIJKEVV7.js';
|
|
14
|
-
import { closeAfterFailure } from '../../chunk-
|
|
14
|
+
import { closeAfterFailure } from '../../chunk-55ITBQJI.js';
|
|
15
15
|
import '../../chunk-2L54C2C2.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-FQ7ZPOTZ.js';
|
|
17
17
|
import '../../chunk-DRACN6XG.js';
|
|
18
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-TKP5T34P.js';
|
|
19
19
|
import '../../chunk-DK2S42XB.js';
|
|
20
20
|
import '../../chunk-UR7W5YQK.js';
|
|
21
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-V34A6R5V.js';
|
|
22
22
|
import '../../chunk-S4KQ5LV4.js';
|
|
23
23
|
import '../../chunk-KCO5EFJU.js';
|
|
24
|
-
import '../../chunk-
|
|
25
|
-
import '../../chunk-
|
|
26
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-FL5UQRES.js';
|
|
25
|
+
import '../../chunk-QLUXRWKL.js';
|
|
26
|
+
import '../../chunk-FLEQ2HBK.js';
|
|
27
27
|
import '../../chunk-K34OPSJK.js';
|
|
28
28
|
import '../../chunk-2EBMPJBO.js';
|
|
29
|
-
import '../../chunk-
|
|
29
|
+
import '../../chunk-PVUI6KGR.js';
|
|
30
30
|
import '../../chunk-6DCB664D.js';
|
|
31
31
|
import '../../chunk-D7PG5D5K.js';
|
|
32
32
|
import '../../chunk-SNXVDZAJ.js';
|
|
33
33
|
import '../../chunk-QMQLUA66.js';
|
|
34
34
|
import '../../chunk-PC2UBAUB.js';
|
|
35
|
-
import '../../chunk-
|
|
35
|
+
import '../../chunk-4GUBTVPV.js';
|
|
36
36
|
import '../../chunk-GYA4JRP5.js';
|
|
37
|
-
import '../../chunk-
|
|
37
|
+
import '../../chunk-42PYUGLS.js';
|
|
38
38
|
import '../../chunk-ITE4IXAK.js';
|
|
39
|
-
import '../../chunk-TVLKA4AY.js';
|
|
40
39
|
import '../../chunk-4MB3AQAQ.js';
|
|
41
40
|
import '../../chunk-G6Q5UM7U.js';
|
|
42
41
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/backend/postgres/pglite-store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,eAAsB,sBAAA,CACpB,KAAA,EACA,OAAA,GAAmC,EAAC,EACwB;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAM,qBAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA,MACX,GAAG,OAAA,CAAQ;AAAA,KACZ,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store.js","sourcesContent":["/**\n * Batteries-included local PostgreSQL Store backed by PGlite.\n *\n * This entrypoint owns the connection and intentionally exposes the portable\n * TypeGraph Store surface rather than the adapter-native Drizzle handle.\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport {\n type HistoryStoreOptions,\n type LiveStoreOptions,\n type RecordedReadStoreOptions,\n type StoreOptions,\n type UnboundLiveStoreOptions,\n} from \"../../store/types\";\nimport { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\nexport type LocalPgliteStoreOptions<\n TStoreOptions extends StoreOptions = StoreOptions,\n> = Readonly<{\n /** PGlite data directory. Defaults to an in-memory database. */\n dataDir?: string;\n /** Whether to load pgvector. Defaults to true. */\n vector?: boolean;\n /** Store behavior, including hooks, history, and custom table names. */\n store?: TStoreOptions;\n /** Schema initialization and migration policy. */\n schemaManagement?: SchemaManagerOptions;\n}>;\n\n/** Creates, provisions, and returns a full typed local PGlite Store. */\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options?: LocalPgliteStoreOptions<UnboundLiveStoreOptions>,\n): Promise<Store<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<HistoryStoreOptions> &\n Readonly<{ store: HistoryStoreOptions }>,\n): Promise<HistoryStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<RecordedReadStoreOptions> &\n Readonly<{ store: RecordedReadStoreOptions }>,\n): Promise<RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions<LiveStoreOptions>,\n): Promise<Store<G> | RecordedReadStore<G>>;\nexport function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>>;\nexport async function createLocalPgliteStore<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions = {},\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n ...options.schemaManagement,\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
3
|
+
var chunk4MEWSUVM_cjs = require('../../chunk-4MEWSUVM.cjs');
|
|
4
|
+
require('../../chunk-YDWLUT5V.cjs');
|
|
5
|
+
require('../../chunk-H7VE3FL4.cjs');
|
|
6
|
+
require('../../chunk-D56XG4EI.cjs');
|
|
7
7
|
require('../../chunk-4SZ6XPTG.cjs');
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
8
|
+
require('../../chunk-F4NHQHEZ.cjs');
|
|
9
|
+
require('../../chunk-Z3WO6MND.cjs');
|
|
10
|
+
require('../../chunk-OOA273IJ.cjs');
|
|
11
11
|
require('../../chunk-ZDH3DX3C.cjs');
|
|
12
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-EKFUG4G7.cjs');
|
|
13
13
|
require('../../chunk-ACSVZPK7.cjs');
|
|
14
|
-
require('../../chunk-
|
|
15
|
-
require('../../chunk-
|
|
14
|
+
require('../../chunk-JQXSZHF2.cjs');
|
|
15
|
+
require('../../chunk-5GAONX5G.cjs');
|
|
16
16
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
17
17
|
require('../../chunk-NAUA4PW5.cjs');
|
|
18
|
-
require('../../chunk-
|
|
18
|
+
require('../../chunk-JXUTCSXX.cjs');
|
|
19
19
|
require('../../chunk-U5W4LKZV.cjs');
|
|
20
20
|
require('../../chunk-764JHTLT.cjs');
|
|
21
21
|
require('../../chunk-C4F7VJ5D.cjs');
|
|
@@ -25,7 +25,7 @@ require('../../chunk-TDXIBCGY.cjs');
|
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "createLocalPgliteBackend", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk4MEWSUVM_cjs.createLocalPgliteBackend; }
|
|
29
29
|
});
|
|
30
30
|
//# sourceMappingURL=pglite.cjs.map
|
|
31
31
|
//# sourceMappingURL=pglite.cjs.map
|
|
@@ -2,9 +2,9 @@ import { Extension, PGlite } from '@electric-sql/pglite';
|
|
|
2
2
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
3
|
import { a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.cjs';
|
|
4
4
|
export { A as AnyPgDatabase } from '../../postgres-execution-fKW0qRiN.cjs';
|
|
5
|
-
import { A as AdapterBackend } from '../../types-
|
|
6
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../../types-
|
|
7
|
-
import { P as PostgresTables } from '../../postgres-
|
|
5
|
+
import { A as AdapterBackend } from '../../types-Ch9a0Dx6.cjs';
|
|
6
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.cjs';
|
|
7
|
+
import { P as PostgresTables } from '../../postgres-DpkW3R5Y.cjs';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
9
|
import 'drizzle-orm/relations';
|
|
10
10
|
import 'zod';
|
|
@@ -2,9 +2,9 @@ import { Extension, PGlite } from '@electric-sql/pglite';
|
|
|
2
2
|
import { PgliteDatabase } from 'drizzle-orm/pglite';
|
|
3
3
|
import { a as AnyPgTransaction } from '../../postgres-execution-fKW0qRiN.js';
|
|
4
4
|
export { A as AnyPgDatabase } from '../../postgres-execution-fKW0qRiN.js';
|
|
5
|
-
import { A as AdapterBackend } from '../../types-
|
|
6
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../../types-
|
|
7
|
-
import { P as PostgresTables } from '../../postgres-
|
|
5
|
+
import { A as AdapterBackend } from '../../types-Ch9a0Dx6.js';
|
|
6
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.js';
|
|
7
|
+
import { P as PostgresTables } from '../../postgres-DwqyIniy.js';
|
|
8
8
|
import 'drizzle-orm/pg-core';
|
|
9
9
|
import 'drizzle-orm/relations';
|
|
10
10
|
import 'zod';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { createLocalPgliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { createLocalPgliteBackend } from '../../chunk-RUQS6M7G.js';
|
|
2
|
+
import '../../chunk-QRNYDV5Z.js';
|
|
3
|
+
import '../../chunk-DXEEHSGN.js';
|
|
4
|
+
import '../../chunk-ISLPNELU.js';
|
|
5
5
|
import '../../chunk-QT6V3YRH.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-YMTXMPV6.js';
|
|
7
|
+
import '../../chunk-BGYJW37L.js';
|
|
8
|
+
import '../../chunk-EFEOOCJ3.js';
|
|
9
9
|
import '../../chunk-35S6P5ZU.js';
|
|
10
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-55ITBQJI.js';
|
|
11
11
|
import '../../chunk-UR7W5YQK.js';
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-V34A6R5V.js';
|
|
13
|
+
import '../../chunk-QLUXRWKL.js';
|
|
14
14
|
import '../../chunk-K34OPSJK.js';
|
|
15
15
|
import '../../chunk-2EBMPJBO.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-PVUI6KGR.js';
|
|
17
17
|
import '../../chunk-6DCB664D.js';
|
|
18
18
|
import '../../chunk-QMQLUA66.js';
|
|
19
19
|
import '../../chunk-4MB3AQAQ.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
7
|
-
require('../../chunk-
|
|
3
|
+
var chunkP7GTYOLB_cjs = require('../../chunk-P7GTYOLB.cjs');
|
|
4
|
+
require('../../chunk-H7VE3FL4.cjs');
|
|
5
|
+
require('../../chunk-F4NHQHEZ.cjs');
|
|
6
|
+
var chunkZ3WO6MND_cjs = require('../../chunk-Z3WO6MND.cjs');
|
|
7
|
+
require('../../chunk-OOA273IJ.cjs');
|
|
8
8
|
require('../../chunk-ZDH3DX3C.cjs');
|
|
9
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-EKFUG4G7.cjs');
|
|
10
10
|
require('../../chunk-ACSVZPK7.cjs');
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-JQXSZHF2.cjs');
|
|
12
|
+
require('../../chunk-5GAONX5G.cjs');
|
|
13
13
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
14
14
|
require('../../chunk-NAUA4PW5.cjs');
|
|
15
|
-
require('../../chunk-
|
|
15
|
+
require('../../chunk-JXUTCSXX.cjs');
|
|
16
16
|
require('../../chunk-U5W4LKZV.cjs');
|
|
17
17
|
require('../../chunk-764JHTLT.cjs');
|
|
18
18
|
require('../../chunk-C4F7VJ5D.cjs');
|
|
@@ -22,51 +22,51 @@ require('../../chunk-TDXIBCGY.cjs');
|
|
|
22
22
|
|
|
23
23
|
Object.defineProperty(exports, "createSqliteBackend", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkP7GTYOLB_cjs.createSqliteBackend; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "createSqliteTables", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZ3WO6MND_cjs.createSqliteTables; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "edges", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkZ3WO6MND_cjs.edges2; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "generateSqliteDDL", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZ3WO6MND_cjs.generateSqliteDDL; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "generateSqliteMigrationSQL", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZ3WO6MND_cjs.generateSqliteMigrationSQL; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "nodes", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZ3WO6MND_cjs.nodes2; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "recordedClock", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkZ3WO6MND_cjs.recordedClock2; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "recordedEdges", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkZ3WO6MND_cjs.recordedEdges2; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "recordedNodes", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkZ3WO6MND_cjs.recordedNodes2; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "schemaVersions", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkZ3WO6MND_cjs.schemaVersions2; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "tables", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkZ3WO6MND_cjs.tables2; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "uniques", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkZ3WO6MND_cjs.uniques2; }
|
|
70
70
|
});
|
|
71
71
|
//# sourceMappingURL=index.cjs.map
|
|
72
72
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-
|
|
2
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../../types-
|
|
1
|
+
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-Ch9a0Dx6.cjs';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.cjs';
|
|
3
3
|
import { S as SqliteExecutionProfileHints, A as AnySqliteDatabase } from '../../sqlite-execution-DwbE2a9y.cjs';
|
|
4
4
|
export { a as SqliteTransactionMode } from '../../sqlite-execution-DwbE2a9y.cjs';
|
|
5
|
-
import { S as SqliteTables } from '../../sqlite-
|
|
6
|
-
export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-
|
|
7
|
-
export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-
|
|
5
|
+
import { S as SqliteTables } from '../../sqlite-DY0WODUK.cjs';
|
|
6
|
+
export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-DY0WODUK.cjs';
|
|
7
|
+
export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-BG4J805L.cjs';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
|
-
import '../../postgres-
|
|
10
|
+
import '../../postgres-DpkW3R5Y.cjs';
|
|
11
11
|
import 'drizzle-orm/pg-core';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-
|
|
2
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../../types-
|
|
1
|
+
import { F as FulltextStrategy, V as VectorStrategy, B as BackendCapabilities, A as AdapterBackend } from '../../types-Ch9a0Dx6.js';
|
|
2
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.js';
|
|
3
3
|
import { S as SqliteExecutionProfileHints, A as AnySqliteDatabase } from '../../sqlite-execution-DwbE2a9y.js';
|
|
4
4
|
export { a as SqliteTransactionMode } from '../../sqlite-execution-DwbE2a9y.js';
|
|
5
|
-
import { S as SqliteTables } from '../../sqlite-
|
|
6
|
-
export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-
|
|
7
|
-
export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-
|
|
5
|
+
import { S as SqliteTables } from '../../sqlite-L-VIRzqA.js';
|
|
6
|
+
export { C as CreateSqliteTablesOptions, a as SqliteTableNames, c as createSqliteTables, e as edges, n as nodes, r as recordedClock, b as recordedEdges, d as recordedNodes, s as schemaVersions, t as tables, u as uniques } from '../../sqlite-L-VIRzqA.js';
|
|
7
|
+
export { b as generateSqliteDDL, c as generateSqliteMigrationSQL } from '../../ddl-CgiS9QLj.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
|
-
import '../../postgres-
|
|
10
|
+
import '../../postgres-DwqyIniy.js';
|
|
11
11
|
import 'drizzle-orm/pg-core';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { createSqliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
export { createSqliteTables, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
1
|
+
export { createSqliteBackend } from '../../chunk-4GUTQPVO.js';
|
|
2
|
+
import '../../chunk-DXEEHSGN.js';
|
|
3
|
+
import '../../chunk-YMTXMPV6.js';
|
|
4
|
+
export { createSqliteTables, edges2 as edges, generateSqliteDDL, generateSqliteMigrationSQL, nodes2 as nodes, recordedClock2 as recordedClock, recordedEdges2 as recordedEdges, recordedNodes2 as recordedNodes, schemaVersions2 as schemaVersions, tables2 as tables, uniques2 as uniques } from '../../chunk-BGYJW37L.js';
|
|
5
|
+
import '../../chunk-EFEOOCJ3.js';
|
|
6
6
|
import '../../chunk-35S6P5ZU.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-55ITBQJI.js';
|
|
8
8
|
import '../../chunk-UR7W5YQK.js';
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-V34A6R5V.js';
|
|
10
|
+
import '../../chunk-QLUXRWKL.js';
|
|
11
11
|
import '../../chunk-K34OPSJK.js';
|
|
12
12
|
import '../../chunk-2EBMPJBO.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-PVUI6KGR.js';
|
|
14
14
|
import '../../chunk-6DCB664D.js';
|
|
15
15
|
import '../../chunk-QMQLUA66.js';
|
|
16
16
|
import '../../chunk-4MB3AQAQ.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
var
|
|
3
|
+
var chunkP7GTYOLB_cjs = require('../../chunk-P7GTYOLB.cjs');
|
|
4
|
+
require('../../chunk-H7VE3FL4.cjs');
|
|
5
|
+
var chunkWDBXJOU5_cjs = require('../../chunk-WDBXJOU5.cjs');
|
|
6
6
|
require('../../chunk-4SZ6XPTG.cjs');
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
var
|
|
9
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-F4NHQHEZ.cjs');
|
|
8
|
+
var chunkZ3WO6MND_cjs = require('../../chunk-Z3WO6MND.cjs');
|
|
9
|
+
require('../../chunk-OOA273IJ.cjs');
|
|
10
10
|
require('../../chunk-ZDH3DX3C.cjs');
|
|
11
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-EKFUG4G7.cjs');
|
|
12
12
|
require('../../chunk-ACSVZPK7.cjs');
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
13
|
+
require('../../chunk-JQXSZHF2.cjs');
|
|
14
|
+
require('../../chunk-5GAONX5G.cjs');
|
|
15
15
|
require('../../chunk-ZY4GXIVN.cjs');
|
|
16
16
|
require('../../chunk-NAUA4PW5.cjs');
|
|
17
|
-
require('../../chunk-
|
|
17
|
+
require('../../chunk-JXUTCSXX.cjs');
|
|
18
18
|
require('../../chunk-U5W4LKZV.cjs');
|
|
19
19
|
require('../../chunk-764JHTLT.cjs');
|
|
20
20
|
require('../../chunk-C4F7VJ5D.cjs');
|
|
@@ -22,11 +22,11 @@ require('../../chunk-TDXIBCGY.cjs');
|
|
|
22
22
|
var libsql = require('drizzle-orm/libsql');
|
|
23
23
|
|
|
24
24
|
async function createLibsqlBackend(client, options = {}) {
|
|
25
|
-
const tables2 = options.tables ??
|
|
25
|
+
const tables2 = options.tables ?? chunkZ3WO6MND_cjs.tables2;
|
|
26
26
|
const db = libsql.drizzle(client);
|
|
27
|
-
const ddlStatements =
|
|
27
|
+
const ddlStatements = chunkZ3WO6MND_cjs.generateSqliteDDL(tables2);
|
|
28
28
|
await client.executeMultiple(ddlStatements.join(";\n"));
|
|
29
|
-
const backend =
|
|
29
|
+
const backend = chunkP7GTYOLB_cjs.createSqliteBackend(db, {
|
|
30
30
|
executionProfile: {
|
|
31
31
|
isSync: false,
|
|
32
32
|
transactionMode: client.protocol === "file" ? "sql" : "drizzle"
|
|
@@ -34,7 +34,7 @@ async function createLibsqlBackend(client, options = {}) {
|
|
|
34
34
|
tables: tables2,
|
|
35
35
|
// libSQL ships native vector search in core — no extension to load —
|
|
36
36
|
// so the strategy is wired unconditionally.
|
|
37
|
-
vector:
|
|
37
|
+
vector: chunkWDBXJOU5_cjs.libsqlVectorStrategy
|
|
38
38
|
});
|
|
39
39
|
return { backend, db };
|
|
40
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/backend/sqlite/libsql.ts"],"names":["tables","drizzle","generateSqliteDDL","createSqliteBackend","libsqlVectorStrategy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/backend/sqlite/libsql.ts"],"names":["tables","drizzle","generateSqliteDDL","createSqliteBackend","libsqlVectorStrategy"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA8GA,eAAsB,mBAAA,CACpB,MAAA,EACA,OAAA,GAAgC,EAAC,EACH;AAC9B,EAAA,MAAMA,OAAAA,GAAS,QAAQ,MAAA,IAAUA,yBAAA;AACjC,EAAA,MAAM,EAAA,GAAKC,eAAQ,MAAM,CAAA;AAEzB,EAAA,MAAM,aAAA,GAAgBC,oCAAkBF,OAAM,CAAA;AAC9C,EAAA,MAAM,MAAA,CAAO,eAAA,CAAgB,aAAA,CAAc,IAAA,CAAK,KAAK,CAAC,CAAA;AAEtD,EAAA,MAAM,OAAA,GAAUG,sCAAoB,EAAA,EAAI;AAAA,IACtC,gBAAA,EAAkB;AAAA,MAChB,MAAA,EAAQ,KAAA;AAAA,MACR,eAAA,EAAiB,MAAA,CAAO,QAAA,KAAa,MAAA,GAAS,KAAA,GAAQ;AAAA,KACxD;AAAA,IACA,MAAA,EAAAH,OAAAA;AAAA;AAAA;AAAA,IAGA,MAAA,EAAQI;AAAA,GACT,CAAA;AAED,EAAA,OAAO,EAAE,SAAS,EAAA,EAAG;AACvB","file":"libsql.cjs","sourcesContent":["/**\n * libsql backend for TypeGraph.\n *\n * This module wraps `@libsql/client` with the correct execution profile\n * for use with TypeGraph. It is compatible with any `@libsql/client`\n * instance (local file, remote Turso, embedded replicas).\n *\n * @example In-memory database\n * ```typescript\n * import { createClient } from \"@libsql/client\";\n * import { createLibsqlBackend } from \"@nicia-ai/typegraph/adapters/drizzle/sqlite/libsql\";\n *\n * const client = createClient({ url: \"file::memory:\" });\n * const { backend } = await createLibsqlBackend(client);\n * const store = createStore(graph, backend);\n * ```\n *\n * @example Remote Turso database\n * ```typescript\n * import { createClient } from \"@libsql/client\";\n * import { createLibsqlBackend } from \"@nicia-ai/typegraph/adapters/drizzle/sqlite/libsql\";\n *\n * const client = createClient({ url: \"libsql://my-db.turso.io\", authToken: \"...\" });\n * const { backend } = await createLibsqlBackend(client);\n * const store = createStore(graph, backend);\n * ```\n */\nimport type { Client } from \"@libsql/client\";\nimport { drizzle, type LibSQLDatabase } from \"drizzle-orm/libsql\";\n\nimport { libsqlVectorStrategy } from \"../../query/dialect/vector/libsql-strategy\";\nimport { generateSqliteDDL } from \"../drizzle/ddl\";\nimport { type AnySqliteDatabase } from \"../drizzle/execution\";\nexport type { AnySqliteDatabase } from \"../drizzle/execution\";\nimport {\n createSqliteBackend,\n type SqliteTables,\n tables as defaultTables,\n} from \"../drizzle/sqlite\";\nimport type { AdapterBackend } from \"../types\";\n\nexport type {\n ContributionDiagnostic,\n ContributionDiagnosticState,\n ContributionRepairEntry,\n ContributionRepairResult,\n} from \"../types\";\n\n// ============================================================\n// Types\n// ============================================================\n\n/**\n * Options for creating a libsql backend.\n */\nexport type LibsqlBackendOptions = Readonly<{\n /**\n * Custom table definitions.\n * Defaults to standard TypeGraph table names.\n */\n tables?: SqliteTables;\n}>;\n\n/**\n * Result of creating a libsql backend.\n */\nexport type LibsqlBackendResult = Readonly<{\n /**\n * The GraphBackend instance for use with createStore.\n */\n backend: AdapterBackend<AnySqliteDatabase>;\n\n /**\n * The underlying Drizzle database instance.\n * Useful for direct SQL access or sharing the connection.\n */\n db: LibSQLDatabase;\n}>;\n\n// ============================================================\n// Factory Function\n// ============================================================\n\n/**\n * Creates a TypeGraph backend backed by `@libsql/client`.\n *\n * Handles DDL execution and configures the correct execution profile.\n * Local clients (`client.protocol === \"file\"`, covering `file:` paths and\n * `:memory:` databases) run transactions as raw BEGIN/COMMIT statements on\n * the client's single stable connection (`transactionMode: \"sql\"`):\n * `client.transaction()` permanently hands that connection to the\n * transaction and lazily opens a fresh one afterwards, which for an\n * in-memory database is a fresh, empty database. Remote clients (`http` /\n * `ws`) run each transaction on its own stream via Drizzle's\n * `db.transaction()` (`transactionMode: \"drizzle\"`). The caller retains\n * ownership of the client and is responsible for closing it.\n *\n * @param client - An `@libsql/client` Client instance\n * @param options - Configuration options\n * @returns Backend and Drizzle database instances\n *\n * @example\n * ```typescript\n * import { createClient } from \"@libsql/client\";\n * import { createLibsqlBackend } from \"@nicia-ai/typegraph/adapters/drizzle/sqlite/libsql\";\n *\n * const client = createClient({ url: \"file::memory:\" });\n * const { backend } = await createLibsqlBackend(client);\n * ```\n */\nexport async function createLibsqlBackend(\n client: Client,\n options: LibsqlBackendOptions = {},\n): Promise<LibsqlBackendResult> {\n const tables = options.tables ?? defaultTables;\n const db = drizzle(client);\n\n const ddlStatements = generateSqliteDDL(tables);\n await client.executeMultiple(ddlStatements.join(\";\\n\"));\n\n const backend = createSqliteBackend(db, {\n executionProfile: {\n isSync: false,\n transactionMode: client.protocol === \"file\" ? \"sql\" : \"drizzle\",\n },\n tables,\n // libSQL ships native vector search in core — no extension to load —\n // so the strategy is wired unconditionally.\n vector: libsqlVectorStrategy,\n });\n\n return { backend, db };\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Client } from '@libsql/client';
|
|
2
2
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
3
|
-
import { A as AdapterBackend } from '../../types-
|
|
4
|
-
export { C as ContributionDiagnostic, a as ContributionDiagnosticState } from '../../types-
|
|
3
|
+
import { A as AdapterBackend } from '../../types-Ch9a0Dx6.cjs';
|
|
4
|
+
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../../types-Ch9a0Dx6.cjs';
|
|
5
5
|
import { A as AnySqliteDatabase } from '../../sqlite-execution-DwbE2a9y.cjs';
|
|
6
|
-
import { S as SqliteTables } from '../../sqlite-
|
|
6
|
+
import { S as SqliteTables } from '../../sqlite-DY0WODUK.cjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
|