@nicia-ai/typegraph 0.55.0 → 0.56.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/CHANGELOG.md +14 -0
- package/dist/backend/index.cjs +86 -86
- package/dist/backend/index.js +7 -7
- package/dist/backend/postgres/index.cjs +22 -22
- package/dist/backend/postgres/index.js +8 -8
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +2 -2
- package/dist/backend/postgres/pglite-store.d.ts +2 -2
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/postgres/pglite.cjs +10 -10
- package/dist/backend/postgres/pglite.js +9 -9
- package/dist/backend/sqlite/index.cjs +21 -21
- package/dist/backend/sqlite/index.js +8 -8
- package/dist/backend/sqlite/libsql.cjs +12 -12
- package/dist/backend/sqlite/libsql.js +8 -8
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.d.cts +2 -2
- package/dist/backend/sqlite/local-store.d.ts +2 -2
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/backend/sqlite/local.cjs +10 -10
- package/dist/backend/sqlite/local.js +9 -9
- package/dist/{chunk-S5WG5AFG.cjs → chunk-2XUAUSMI.cjs} +12 -12
- package/dist/{chunk-S5WG5AFG.cjs.map → chunk-2XUAUSMI.cjs.map} +1 -1
- package/dist/{chunk-MTE255N3.cjs → chunk-36XLQHZA.cjs} +4 -4
- package/dist/{chunk-MTE255N3.cjs.map → chunk-36XLQHZA.cjs.map} +1 -1
- package/dist/{chunk-FWSGKOBN.js → chunk-6LTRZOUU.js} +6 -6
- package/dist/{chunk-FWSGKOBN.js.map → chunk-6LTRZOUU.js.map} +1 -1
- package/dist/{chunk-YVKPUSHS.js → chunk-75KH6Y2W.js} +16 -7
- package/dist/chunk-75KH6Y2W.js.map +1 -0
- package/dist/{chunk-MJXEO7YA.js → chunk-762VPGHN.js} +5 -5
- package/dist/{chunk-MJXEO7YA.js.map → chunk-762VPGHN.js.map} +1 -1
- package/dist/{chunk-GGDTMBNA.cjs → chunk-7CCVR2QF.cjs} +54 -54
- package/dist/{chunk-GGDTMBNA.cjs.map → chunk-7CCVR2QF.cjs.map} +1 -1
- package/dist/{chunk-7EOJO6QB.js → chunk-7MHENVRG.js} +3 -3
- package/dist/{chunk-7EOJO6QB.js.map → chunk-7MHENVRG.js.map} +1 -1
- package/dist/{chunk-7B3DSFX3.cjs → chunk-AUTRK6WM.cjs} +4 -4
- package/dist/{chunk-7B3DSFX3.cjs.map → chunk-AUTRK6WM.cjs.map} +1 -1
- package/dist/{chunk-SIQ4BFL5.js → chunk-AZP5CCHL.js} +4 -4
- package/dist/{chunk-SIQ4BFL5.js.map → chunk-AZP5CCHL.js.map} +1 -1
- package/dist/{chunk-WTW7RWAG.cjs → chunk-BYUIOM4L.cjs} +6 -6
- package/dist/{chunk-WTW7RWAG.cjs.map → chunk-BYUIOM4L.cjs.map} +1 -1
- package/dist/{chunk-74FNI3PT.js → chunk-C3TJU4KQ.js} +6 -6
- package/dist/chunk-C3TJU4KQ.js.map +1 -0
- package/dist/{chunk-7V2R4MH6.js → chunk-CEQOTZGB.js} +5 -5
- package/dist/{chunk-7V2R4MH6.js.map → chunk-CEQOTZGB.js.map} +1 -1
- package/dist/{chunk-TKFQLKH2.cjs → chunk-CYKHSH5O.cjs} +36 -36
- package/dist/{chunk-TKFQLKH2.cjs.map → chunk-CYKHSH5O.cjs.map} +1 -1
- package/dist/{chunk-D5TCKAQT.cjs → chunk-DGIA64DM.cjs} +4 -4
- package/dist/{chunk-D5TCKAQT.cjs.map → chunk-DGIA64DM.cjs.map} +1 -1
- package/dist/{chunk-FFR3YUY2.js → chunk-E4QYEWVH.js} +5 -5
- package/dist/{chunk-FFR3YUY2.js.map → chunk-E4QYEWVH.js.map} +1 -1
- package/dist/{chunk-467YITD4.cjs → chunk-ETU5IILQ.cjs} +13 -13
- package/dist/{chunk-467YITD4.cjs.map → chunk-ETU5IILQ.cjs.map} +1 -1
- package/dist/{chunk-HW3IX2RF.js → chunk-EWRLWI7W.js} +4 -4
- package/dist/{chunk-HW3IX2RF.js.map → chunk-EWRLWI7W.js.map} +1 -1
- package/dist/{chunk-KZ6OHFDV.js → chunk-F2S5JWCT.js} +3 -3
- package/dist/{chunk-KZ6OHFDV.js.map → chunk-F2S5JWCT.js.map} +1 -1
- package/dist/{chunk-45WPPI64.js → chunk-FMCPKMQI.js} +3 -3
- package/dist/{chunk-45WPPI64.js.map → chunk-FMCPKMQI.js.map} +1 -1
- package/dist/{chunk-QM6IQW7B.js → chunk-ILHVYKXJ.js} +7 -7
- package/dist/{chunk-QM6IQW7B.js.map → chunk-ILHVYKXJ.js.map} +1 -1
- package/dist/{chunk-ECYEWFEH.cjs → chunk-J34FSPSC.cjs} +16 -6
- package/dist/chunk-J34FSPSC.cjs.map +1 -0
- package/dist/{chunk-GFYCLCGU.cjs → chunk-KM3CLHDB.cjs} +9 -9
- package/dist/{chunk-GFYCLCGU.cjs.map → chunk-KM3CLHDB.cjs.map} +1 -1
- package/dist/{chunk-SLNH62T3.js → chunk-KQYUKOGX.js} +3 -3
- package/dist/{chunk-SLNH62T3.js.map → chunk-KQYUKOGX.js.map} +1 -1
- package/dist/{chunk-7I2PYI4U.cjs → chunk-KR3N6Y7O.cjs} +67 -67
- package/dist/{chunk-7I2PYI4U.cjs.map → chunk-KR3N6Y7O.cjs.map} +1 -1
- package/dist/{chunk-HZCOCNIX.cjs → chunk-L2REUAJB.cjs} +24 -24
- package/dist/{chunk-HZCOCNIX.cjs.map → chunk-L2REUAJB.cjs.map} +1 -1
- package/dist/{chunk-VU65FXEG.js → chunk-LFXBFPI2.js} +66 -29
- package/dist/chunk-LFXBFPI2.js.map +1 -0
- package/dist/{chunk-NXRSR6QG.js → chunk-MHM6OGZR.js} +9 -9
- package/dist/{chunk-NXRSR6QG.js.map → chunk-MHM6OGZR.js.map} +1 -1
- package/dist/{chunk-FCUSVSYX.js → chunk-MRGWM5LE.js} +10 -10
- package/dist/{chunk-FCUSVSYX.js.map → chunk-MRGWM5LE.js.map} +1 -1
- package/dist/{chunk-WXGMDROJ.js → chunk-QDNEXTON.js} +7 -7
- package/dist/{chunk-WXGMDROJ.js.map → chunk-QDNEXTON.js.map} +1 -1
- package/dist/{chunk-VYU5H4FO.js → chunk-RXA2D3UR.js} +3 -3
- package/dist/{chunk-VYU5H4FO.js.map → chunk-RXA2D3UR.js.map} +1 -1
- package/dist/{chunk-XODNY4QI.js → chunk-TIBSLFHR.js} +6 -6
- package/dist/{chunk-XODNY4QI.js.map → chunk-TIBSLFHR.js.map} +1 -1
- package/dist/{chunk-KZG7HQSN.cjs → chunk-UVMSWO6X.cjs} +173 -173
- package/dist/{chunk-KZG7HQSN.cjs.map → chunk-UVMSWO6X.cjs.map} +1 -1
- package/dist/{chunk-ORPT5EQW.cjs → chunk-UZ6CJUC5.cjs} +27 -27
- package/dist/chunk-UZ6CJUC5.cjs.map +1 -0
- package/dist/{chunk-GNF3PHEQ.cjs → chunk-VF2IMMZT.cjs} +17 -17
- package/dist/{chunk-GNF3PHEQ.cjs.map → chunk-VF2IMMZT.cjs.map} +1 -1
- package/dist/{chunk-PGZV3E3I.cjs → chunk-VXEHEPC4.cjs} +4 -4
- package/dist/{chunk-PGZV3E3I.cjs.map → chunk-VXEHEPC4.cjs.map} +1 -1
- package/dist/{chunk-OJ47LMOB.cjs → chunk-WIUHN6SZ.cjs} +669 -628
- package/dist/chunk-WIUHN6SZ.cjs.map +1 -0
- package/dist/{chunk-HNW5IDB3.js → chunk-WIZB5U6N.js} +7 -7
- package/dist/{chunk-HNW5IDB3.js.map → chunk-WIZB5U6N.js.map} +1 -1
- package/dist/{chunk-IDQZI6GL.js → chunk-XH75W3O5.js} +3 -3
- package/dist/{chunk-IDQZI6GL.js.map → chunk-XH75W3O5.js.map} +1 -1
- package/dist/{chunk-T7LSSV7J.cjs → chunk-XXEFDJHY.cjs} +45 -45
- package/dist/{chunk-T7LSSV7J.cjs.map → chunk-XXEFDJHY.cjs.map} +1 -1
- package/dist/{chunk-GORCU2GR.cjs → chunk-Z4NU4MYB.cjs} +123 -123
- package/dist/{chunk-GORCU2GR.cjs.map → chunk-Z4NU4MYB.cjs.map} +1 -1
- package/dist/{chunk-KFC3OUV4.cjs → chunk-ZHK3HEZ2.cjs} +130 -130
- package/dist/{chunk-KFC3OUV4.cjs.map → chunk-ZHK3HEZ2.cjs.map} +1 -1
- package/dist/{chunk-FYMYLZGX.cjs → chunk-ZXXGMQC3.cjs} +10 -10
- package/dist/{chunk-FYMYLZGX.cjs.map → chunk-ZXXGMQC3.cjs.map} +1 -1
- package/dist/graph-merge/index.cjs +577 -99
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +108 -4
- package/dist/graph-merge/index.d.ts +108 -4
- package/dist/graph-merge/index.js +495 -21
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{graph-templates-qraW63Ry.d.ts → graph-templates-BSA9VU_O.d.ts} +1 -1
- package/dist/{graph-templates--hp2U4kn.d.cts → graph-templates-Cg7DpEOF.d.cts} +1 -1
- package/dist/index.cjs +95 -95
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +16 -16
- package/dist/interchange/index.cjs +33 -33
- package/dist/interchange/index.d.cts +1 -1
- package/dist/interchange/index.d.ts +1 -1
- package/dist/interchange/index.js +10 -10
- package/dist/{local-store-impl-HXBO3VF4.js → local-store-impl-77DCLAAY.js} +18 -18
- package/dist/{local-store-impl-HXBO3VF4.js.map → local-store-impl-77DCLAAY.js.map} +1 -1
- package/dist/{local-store-impl-CUQKHHOZ.cjs → local-store-impl-NJCWM3KR.cjs} +22 -22
- package/dist/{local-store-impl-CUQKHHOZ.cjs.map → local-store-impl-NJCWM3KR.cjs.map} +1 -1
- package/dist/{pglite-store-impl-BD3AVOUH.js → pglite-store-impl-3VFSYLAJ.js} +18 -18
- package/dist/{pglite-store-impl-BD3AVOUH.js.map → pglite-store-impl-3VFSYLAJ.js.map} +1 -1
- package/dist/{pglite-store-impl-C3MQ72LT.cjs → pglite-store-impl-LHLJ3GBQ.cjs} +22 -22
- package/dist/{pglite-store-impl-C3MQ72LT.cjs.map → pglite-store-impl-LHLJ3GBQ.cjs.map} +1 -1
- package/dist/profiler/index.d.cts +1 -1
- package/dist/profiler/index.d.ts +1 -1
- package/dist/provenance/index.cjs +21 -21
- package/dist/provenance/index.d.cts +1 -1
- package/dist/provenance/index.d.ts +1 -1
- package/dist/provenance/index.js +5 -5
- package/dist/schema/index.cjs +36 -36
- package/dist/schema/index.d.cts +3 -3
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +6 -6
- package/dist/{store-stw2AEB4.d.ts → store-CQ3uzXla.d.ts} +58 -27
- package/dist/{store-DTEkUQ0k.d.cts → store-DbHAgVMH.d.cts} +58 -27
- package/package.json +1 -1
- package/dist/chunk-74FNI3PT.js.map +0 -1
- package/dist/chunk-ECYEWFEH.cjs.map +0 -1
- package/dist/chunk-OJ47LMOB.cjs.map +0 -1
- package/dist/chunk-ORPT5EQW.cjs.map +0 -1
- package/dist/chunk-VU65FXEG.js.map +0 -1
- package/dist/chunk-YVKPUSHS.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-
|
|
1
|
+
export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreAnalysisCursorStaleError, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-LFXBFPI2.js';
|
|
2
2
|
export { sqliteVecStrategy } from './chunk-TLXL2DJU.js';
|
|
3
3
|
export { libsqlVectorStrategy } from './chunk-5TXXCXD3.js';
|
|
4
4
|
export { pgvectorStrategy } from './chunk-OAGKRW22.js';
|
|
5
5
|
import './chunk-6XQGOJ4M.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor, repairInvertedValidityWindows } from './chunk-
|
|
8
|
-
import { LEGACY_EMBEDDINGS_TABLE_NAME } from './chunk-
|
|
6
|
+
import './chunk-EWRLWI7W.js';
|
|
7
|
+
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor, repairInvertedValidityWindows } from './chunk-CEQOTZGB.js';
|
|
8
|
+
import { LEGACY_EMBEDDINGS_TABLE_NAME } from './chunk-RXA2D3UR.js';
|
|
9
9
|
export { createExternalRef, externalRef, getExternalRefTable, isExternalRefSchema, metaEdge } from './chunk-L5E3Z4QK.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import { storeRuntime } from './chunk-
|
|
12
|
-
export { compareAndSetAbsent } from './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
export { instantiateGraph, instantiateGraphTemplate, registerGraphTemplate } from './chunk-
|
|
17
|
-
export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-
|
|
10
|
+
import './chunk-MRGWM5LE.js';
|
|
11
|
+
import { storeRuntime } from './chunk-C3TJU4KQ.js';
|
|
12
|
+
export { compareAndSetAbsent } from './chunk-C3TJU4KQ.js';
|
|
13
|
+
import './chunk-FMCPKMQI.js';
|
|
14
|
+
import './chunk-7MHENVRG.js';
|
|
15
|
+
import './chunk-KQYUKOGX.js';
|
|
16
|
+
export { instantiateGraph, instantiateGraphTemplate, registerGraphTemplate } from './chunk-F2S5JWCT.js';
|
|
17
|
+
export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-E4QYEWVH.js';
|
|
18
18
|
import './chunk-RFMSZ7CF.js';
|
|
19
19
|
export { defineEdge, defineNode, isMetaEdge } from './chunk-P5J256Q7.js';
|
|
20
|
-
import './chunk-
|
|
21
|
-
export { exists, fieldRef, generateId, inSubquery, isParameterRef, notExists, notInSubquery, param } from './chunk-
|
|
20
|
+
import './chunk-762VPGHN.js';
|
|
21
|
+
export { exists, fieldRef, generateId, inSubquery, isParameterRef, notExists, notInSubquery, param } from './chunk-AZP5CCHL.js';
|
|
22
22
|
import './chunk-JYY2EB5K.js';
|
|
23
23
|
import { isMissingTableError } from './chunk-U4SGJQKQ.js';
|
|
24
|
-
import './chunk-
|
|
25
|
-
export { DEFAULT_SQL_SCHEMA, createSqlSchema, recordedRelation, rowPropsToJsonText, rowPropsToObject, supportsInteractiveTransactions, supportsRootAtomicBatch } from './chunk-
|
|
24
|
+
import './chunk-XH75W3O5.js';
|
|
25
|
+
export { DEFAULT_SQL_SCHEMA, createSqlSchema, recordedRelation, rowPropsToJsonText, rowPropsToObject, supportsInteractiveTransactions, supportsRootAtomicBatch } from './chunk-75KH6Y2W.js';
|
|
26
26
|
export { defineGraph, getEdgeKinds, getNodeKinds, isGraphDef } from './chunk-4PNRH5BO.js';
|
|
27
27
|
export { asEdgeId, asNodeId, isEdgeTargetMap, isEdgeType, isEdgeTypeWithEndpoints, isNodeType } from './chunk-HFZWYHYC.js';
|
|
28
28
|
export { asRecordedInstant, compareRecordedInstants, recordedInstantRevision, recordedInstantWallTime } from './chunk-EMORF4PV.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
3
|
+
var chunkKR3N6Y7O_cjs = require('../chunk-KR3N6Y7O.cjs');
|
|
4
|
+
require('../chunk-UVMSWO6X.cjs');
|
|
5
|
+
require('../chunk-UZ6CJUC5.cjs');
|
|
6
|
+
require('../chunk-VXEHEPC4.cjs');
|
|
7
|
+
require('../chunk-36XLQHZA.cjs');
|
|
8
|
+
require('../chunk-DGIA64DM.cjs');
|
|
9
|
+
require('../chunk-XXEFDJHY.cjs');
|
|
10
|
+
require('../chunk-CYKHSH5O.cjs');
|
|
11
11
|
require('../chunk-6OWTUEUL.cjs');
|
|
12
12
|
require('../chunk-5X46XWNH.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-ZXXGMQC3.cjs');
|
|
14
|
+
require('../chunk-J34FSPSC.cjs');
|
|
15
15
|
require('../chunk-V32ES2Q2.cjs');
|
|
16
16
|
require('../chunk-OJHFXL7Y.cjs');
|
|
17
17
|
require('../chunk-F2HGOZJR.cjs');
|
|
@@ -33,95 +33,95 @@ require('../chunk-BXHAPCQG.cjs');
|
|
|
33
33
|
|
|
34
34
|
Object.defineProperty(exports, "ConflictStrategySchema", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkKR3N6Y7O_cjs.ConflictStrategySchema; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "ExportOptionsSchema", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkKR3N6Y7O_cjs.ExportOptionsSchema; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "ExportStreamOptionsSchema", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkKR3N6Y7O_cjs.ExportStreamOptionsSchema; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "FORMAT_VERSION", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkKR3N6Y7O_cjs.FORMAT_VERSION; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "GraphDataHeaderSchema", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkKR3N6Y7O_cjs.GraphDataHeaderSchema; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "GraphDataSchema", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkKR3N6Y7O_cjs.GraphDataSchema; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "GraphDataSourceSchema", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkKR3N6Y7O_cjs.GraphDataSourceSchema; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkKR3N6Y7O_cjs.GraphInterchangeChunkSchema; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "IdentityInterchangeModeSchema", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkKR3N6Y7O_cjs.IdentityInterchangeModeSchema; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "ImportErrorSchema", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkKR3N6Y7O_cjs.ImportErrorSchema; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "ImportOptionsSchema", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkKR3N6Y7O_cjs.ImportOptionsSchema; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "ImportResultSchema", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkKR3N6Y7O_cjs.ImportResultSchema; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "InterchangeEdgeSchema", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkKR3N6Y7O_cjs.InterchangeEdgeSchema; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "InterchangeIdentityAssertionSchema", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkKR3N6Y7O_cjs.InterchangeIdentityAssertionSchema; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "InterchangeIdentitySchema", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkKR3N6Y7O_cjs.InterchangeIdentitySchema; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "InterchangeNodeSchema", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkKR3N6Y7O_cjs.InterchangeNodeSchema; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkKR3N6Y7O_cjs.UnknownPropertyStrategySchema; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "exportGraph", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkKR3N6Y7O_cjs.exportGraph; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "exportGraphStream", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkKR3N6Y7O_cjs.exportGraphStream; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "importGraph", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkKR3N6Y7O_cjs.importGraph; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "importGraphStream", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkKR3N6Y7O_cjs.importGraphStream; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "trustedImportGraph", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkKR3N6Y7O_cjs.trustedImportGraph; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "trustedImportGraphStream", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkKR3N6Y7O_cjs.trustedImportGraphStream; }
|
|
125
125
|
});
|
|
126
126
|
//# sourceMappingURL=index.cjs.map
|
|
127
127
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as GraphDef } from '../types-vg7PwMjm.cjs';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-vg7PwMjm.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { b as Store } from '../store-
|
|
4
|
+
import { b as Store } from '../store-DbHAgVMH.cjs';
|
|
5
5
|
import { I as IngestionImportTarget } from '../ingestion-import-target-C6Z1ugDW.cjs';
|
|
6
6
|
import '../temporal-ljhXRasd.cjs';
|
|
7
7
|
import '../searchable-CpK80Wld.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as GraphDef } from '../types-vg7PwMjm.js';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-vg7PwMjm.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { b as Store } from '../store-
|
|
4
|
+
import { b as Store } from '../store-CQ3uzXla.js';
|
|
5
5
|
import { I as IngestionImportTarget } from '../ingestion-import-target-Dt7cC-Et.js';
|
|
6
6
|
import '../temporal-CFrB9A1u.js';
|
|
7
7
|
import '../searchable-CZjq8iIQ.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
1
|
+
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream } from '../chunk-MHM6OGZR.js';
|
|
2
|
+
import '../chunk-MRGWM5LE.js';
|
|
3
|
+
import '../chunk-C3TJU4KQ.js';
|
|
4
|
+
import '../chunk-FMCPKMQI.js';
|
|
5
|
+
import '../chunk-7MHENVRG.js';
|
|
6
|
+
import '../chunk-KQYUKOGX.js';
|
|
7
|
+
import '../chunk-762VPGHN.js';
|
|
8
|
+
import '../chunk-AZP5CCHL.js';
|
|
9
9
|
import '../chunk-JYY2EB5K.js';
|
|
10
10
|
import '../chunk-U4SGJQKQ.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-XH75W3O5.js';
|
|
12
|
+
import '../chunk-75KH6Y2W.js';
|
|
13
13
|
import '../chunk-4PNRH5BO.js';
|
|
14
14
|
import '../chunk-HFZWYHYC.js';
|
|
15
15
|
import '../chunk-EMORF4PV.js';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { createLocalSqliteBackend } from './chunk-
|
|
1
|
+
import { createLocalSqliteBackend } from './chunk-6LTRZOUU.js';
|
|
2
2
|
import './chunk-H4FY6OZK.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { createSqliteTables } from './chunk-
|
|
3
|
+
import './chunk-WIZB5U6N.js';
|
|
4
|
+
import { createSqliteTables } from './chunk-QDNEXTON.js';
|
|
5
5
|
import './chunk-KHGHOXY2.js';
|
|
6
|
-
import { createStoreWithSchema } from './chunk-
|
|
6
|
+
import { createStoreWithSchema } from './chunk-LFXBFPI2.js';
|
|
7
7
|
import './chunk-TLXL2DJU.js';
|
|
8
8
|
import './chunk-6XQGOJ4M.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
9
|
+
import './chunk-EWRLWI7W.js';
|
|
10
|
+
import './chunk-RXA2D3UR.js';
|
|
11
|
+
import './chunk-MRGWM5LE.js';
|
|
12
|
+
import './chunk-C3TJU4KQ.js';
|
|
13
|
+
import './chunk-FMCPKMQI.js';
|
|
14
|
+
import './chunk-7MHENVRG.js';
|
|
15
|
+
import './chunk-KQYUKOGX.js';
|
|
16
|
+
import './chunk-E4QYEWVH.js';
|
|
17
17
|
import './chunk-RFMSZ7CF.js';
|
|
18
18
|
import './chunk-P5J256Q7.js';
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
19
|
+
import './chunk-762VPGHN.js';
|
|
20
|
+
import './chunk-AZP5CCHL.js';
|
|
21
21
|
import './chunk-JYY2EB5K.js';
|
|
22
22
|
import './chunk-U4SGJQKQ.js';
|
|
23
|
-
import './chunk-
|
|
24
|
-
import { closeAfterFailure } from './chunk-
|
|
23
|
+
import './chunk-XH75W3O5.js';
|
|
24
|
+
import { closeAfterFailure } from './chunk-75KH6Y2W.js';
|
|
25
25
|
import './chunk-4PNRH5BO.js';
|
|
26
26
|
import './chunk-HFZWYHYC.js';
|
|
27
27
|
import './chunk-EMORF4PV.js';
|
|
@@ -75,5 +75,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export { createLocalSqliteStoreImpl };
|
|
78
|
-
//# sourceMappingURL=local-store-impl-
|
|
79
|
-
//# sourceMappingURL=local-store-impl-
|
|
78
|
+
//# sourceMappingURL=local-store-impl-77DCLAAY.js.map
|
|
79
|
+
//# sourceMappingURL=local-store-impl-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,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-77DCLAAY.js","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\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 { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVF2IMMZT_cjs = require('./chunk-VF2IMMZT.cjs');
|
|
4
4
|
require('./chunk-QCD5JKU4.cjs');
|
|
5
|
-
require('./chunk-
|
|
6
|
-
var
|
|
5
|
+
require('./chunk-Z4NU4MYB.cjs');
|
|
6
|
+
var chunk7CCVR2QF_cjs = require('./chunk-7CCVR2QF.cjs');
|
|
7
7
|
require('./chunk-IZKJF3ZP.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkWIUHN6SZ_cjs = require('./chunk-WIUHN6SZ.cjs');
|
|
9
9
|
require('./chunk-KJ4IMWPI.cjs');
|
|
10
10
|
require('./chunk-2QOLVZCH.cjs');
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-BYUIOM4L.cjs');
|
|
12
|
+
require('./chunk-AUTRK6WM.cjs');
|
|
13
|
+
require('./chunk-UVMSWO6X.cjs');
|
|
14
|
+
require('./chunk-UZ6CJUC5.cjs');
|
|
15
|
+
require('./chunk-VXEHEPC4.cjs');
|
|
16
|
+
require('./chunk-36XLQHZA.cjs');
|
|
17
|
+
require('./chunk-DGIA64DM.cjs');
|
|
18
|
+
require('./chunk-L2REUAJB.cjs');
|
|
19
19
|
require('./chunk-6YKISECL.cjs');
|
|
20
20
|
require('./chunk-OGZA7IS4.cjs');
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-XXEFDJHY.cjs');
|
|
22
|
+
require('./chunk-CYKHSH5O.cjs');
|
|
23
23
|
require('./chunk-6OWTUEUL.cjs');
|
|
24
24
|
require('./chunk-5X46XWNH.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
var
|
|
25
|
+
require('./chunk-ZXXGMQC3.cjs');
|
|
26
|
+
var chunkJ34FSPSC_cjs = require('./chunk-J34FSPSC.cjs');
|
|
27
27
|
require('./chunk-V32ES2Q2.cjs');
|
|
28
28
|
require('./chunk-OJHFXL7Y.cjs');
|
|
29
29
|
require('./chunk-F2HGOZJR.cjs');
|
|
@@ -55,15 +55,15 @@ function withoutSchemaOverride(schemaManagement) {
|
|
|
55
55
|
return rest;
|
|
56
56
|
}
|
|
57
57
|
async function createLocalSqliteStoreImpl(graph, options) {
|
|
58
|
-
const tables = options.store?.schema === void 0 ? void 0 :
|
|
59
|
-
const { backend } =
|
|
58
|
+
const tables = options.store?.schema === void 0 ? void 0 : chunk7CCVR2QF_cjs.createSqliteTables(options.store.schema.tables);
|
|
59
|
+
const { backend } = chunkVF2IMMZT_cjs.createLocalSqliteBackend({
|
|
60
60
|
...options.path === void 0 ? {} : { path: options.path },
|
|
61
61
|
...options.pragmas === void 0 ? {} : { pragmas: options.pragmas },
|
|
62
62
|
...options.capabilities === void 0 ? {} : { capabilities: options.capabilities },
|
|
63
63
|
...tables === void 0 ? {} : { tables }
|
|
64
64
|
});
|
|
65
65
|
try {
|
|
66
|
-
const [store] = await
|
|
66
|
+
const [store] = await chunkWIUHN6SZ_cjs.createStoreWithSchema(graph, backend, {
|
|
67
67
|
...options.store,
|
|
68
68
|
// The type already excludes `schema` here; the runtime strip guards
|
|
69
69
|
// untyped callers, so the provisioned schema (or the default tables)
|
|
@@ -72,10 +72,10 @@ async function createLocalSqliteStoreImpl(graph, options) {
|
|
|
72
72
|
});
|
|
73
73
|
return store;
|
|
74
74
|
} catch (error) {
|
|
75
|
-
return
|
|
75
|
+
return chunkJ34FSPSC_cjs.closeAfterFailure(backend, error);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
exports.createLocalSqliteStoreImpl = createLocalSqliteStoreImpl;
|
|
80
|
-
//# sourceMappingURL=local-store-impl-
|
|
81
|
-
//# sourceMappingURL=local-store-impl-
|
|
80
|
+
//# sourceMappingURL=local-store-impl-NJCWM3KR.cjs.map
|
|
81
|
+
//# sourceMappingURL=local-store-impl-NJCWM3KR.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,oCAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,0CAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,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;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-
|
|
1
|
+
{"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,oCAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,0CAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,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;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-NJCWM3KR.cjs","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\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 { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { createLocalPgliteBackend } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { createPostgresTables } from './chunk-
|
|
1
|
+
import { createLocalPgliteBackend } from './chunk-TIBSLFHR.js';
|
|
2
|
+
import './chunk-ILHVYKXJ.js';
|
|
3
|
+
import { createPostgresTables } from './chunk-QDNEXTON.js';
|
|
4
4
|
import './chunk-KHGHOXY2.js';
|
|
5
|
-
import { createStoreWithSchema } from './chunk-
|
|
5
|
+
import { createStoreWithSchema } from './chunk-LFXBFPI2.js';
|
|
6
6
|
import './chunk-OAGKRW22.js';
|
|
7
7
|
import './chunk-6XQGOJ4M.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
8
|
+
import './chunk-EWRLWI7W.js';
|
|
9
|
+
import './chunk-RXA2D3UR.js';
|
|
10
|
+
import './chunk-MRGWM5LE.js';
|
|
11
|
+
import './chunk-C3TJU4KQ.js';
|
|
12
|
+
import './chunk-FMCPKMQI.js';
|
|
13
|
+
import './chunk-7MHENVRG.js';
|
|
14
|
+
import './chunk-KQYUKOGX.js';
|
|
15
|
+
import './chunk-E4QYEWVH.js';
|
|
16
16
|
import './chunk-RFMSZ7CF.js';
|
|
17
17
|
import './chunk-P5J256Q7.js';
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
18
|
+
import './chunk-762VPGHN.js';
|
|
19
|
+
import './chunk-AZP5CCHL.js';
|
|
20
20
|
import './chunk-JYY2EB5K.js';
|
|
21
21
|
import './chunk-U4SGJQKQ.js';
|
|
22
|
-
import './chunk-
|
|
23
|
-
import { closeAfterFailure } from './chunk-
|
|
22
|
+
import './chunk-XH75W3O5.js';
|
|
23
|
+
import { closeAfterFailure } from './chunk-75KH6Y2W.js';
|
|
24
24
|
import './chunk-4PNRH5BO.js';
|
|
25
25
|
import './chunk-HFZWYHYC.js';
|
|
26
26
|
import './chunk-EMORF4PV.js';
|
|
@@ -73,5 +73,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export { createLocalPgliteStoreImpl };
|
|
76
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
77
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
76
|
+
//# sourceMappingURL=pglite-store-impl-3VFSYLAJ.js.map
|
|
77
|
+
//# sourceMappingURL=pglite-store-impl-3VFSYLAJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;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,EAA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A,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;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"pglite-store-impl-3VFSYLAJ.js","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\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 { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<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 // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
3
|
+
var chunk2XUAUSMI_cjs = require('./chunk-2XUAUSMI.cjs');
|
|
4
|
+
require('./chunk-ZHK3HEZ2.cjs');
|
|
5
|
+
var chunk7CCVR2QF_cjs = require('./chunk-7CCVR2QF.cjs');
|
|
6
6
|
require('./chunk-IZKJF3ZP.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkWIUHN6SZ_cjs = require('./chunk-WIUHN6SZ.cjs');
|
|
8
8
|
require('./chunk-WOD3VQQE.cjs');
|
|
9
9
|
require('./chunk-2QOLVZCH.cjs');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-BYUIOM4L.cjs');
|
|
11
|
+
require('./chunk-AUTRK6WM.cjs');
|
|
12
|
+
require('./chunk-UVMSWO6X.cjs');
|
|
13
|
+
require('./chunk-UZ6CJUC5.cjs');
|
|
14
|
+
require('./chunk-VXEHEPC4.cjs');
|
|
15
|
+
require('./chunk-36XLQHZA.cjs');
|
|
16
|
+
require('./chunk-DGIA64DM.cjs');
|
|
17
|
+
require('./chunk-L2REUAJB.cjs');
|
|
18
18
|
require('./chunk-6YKISECL.cjs');
|
|
19
19
|
require('./chunk-OGZA7IS4.cjs');
|
|
20
|
-
require('./chunk-
|
|
21
|
-
require('./chunk-
|
|
20
|
+
require('./chunk-XXEFDJHY.cjs');
|
|
21
|
+
require('./chunk-CYKHSH5O.cjs');
|
|
22
22
|
require('./chunk-6OWTUEUL.cjs');
|
|
23
23
|
require('./chunk-5X46XWNH.cjs');
|
|
24
|
-
require('./chunk-
|
|
25
|
-
var
|
|
24
|
+
require('./chunk-ZXXGMQC3.cjs');
|
|
25
|
+
var chunkJ34FSPSC_cjs = require('./chunk-J34FSPSC.cjs');
|
|
26
26
|
require('./chunk-V32ES2Q2.cjs');
|
|
27
27
|
require('./chunk-OJHFXL7Y.cjs');
|
|
28
28
|
require('./chunk-F2HGOZJR.cjs');
|
|
@@ -54,14 +54,14 @@ function withoutSchemaOverride(schemaManagement) {
|
|
|
54
54
|
return rest;
|
|
55
55
|
}
|
|
56
56
|
async function createLocalPgliteStoreImpl(graph, options) {
|
|
57
|
-
const tables = options.store?.schema === void 0 ? void 0 :
|
|
58
|
-
const { backend } = await
|
|
57
|
+
const tables = options.store?.schema === void 0 ? void 0 : chunk7CCVR2QF_cjs.createPostgresTables(options.store.schema.tables);
|
|
58
|
+
const { backend } = await chunk2XUAUSMI_cjs.createLocalPgliteBackend({
|
|
59
59
|
...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
|
|
60
60
|
...options.vector === false ? { vector: false } : {},
|
|
61
61
|
...tables === void 0 ? {} : { tables }
|
|
62
62
|
});
|
|
63
63
|
try {
|
|
64
|
-
const [store] = await
|
|
64
|
+
const [store] = await chunkWIUHN6SZ_cjs.createStoreWithSchema(graph, backend, {
|
|
65
65
|
...options.store,
|
|
66
66
|
// The type already excludes `schema` here; the runtime strip guards
|
|
67
67
|
// untyped callers, so the provisioned schema (or the default tables)
|
|
@@ -70,10 +70,10 @@ async function createLocalPgliteStoreImpl(graph, options) {
|
|
|
70
70
|
});
|
|
71
71
|
return store;
|
|
72
72
|
} catch (error) {
|
|
73
|
-
return
|
|
73
|
+
return chunkJ34FSPSC_cjs.closeAfterFailure(backend, error);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
|
|
78
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
79
|
-
//# sourceMappingURL=pglite-store-impl-
|
|
78
|
+
//# sourceMappingURL=pglite-store-impl-LHLJ3GBQ.cjs.map
|
|
79
|
+
//# sourceMappingURL=pglite-store-impl-LHLJ3GBQ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","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.cjs","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\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 { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalPgliteStoreOptions } from \"./pglite-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<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 // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as GraphDef, Q as QueryAst } from '../types-vg7PwMjm.cjs';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult } from '../types-vg7PwMjm.cjs';
|
|
3
|
-
import { b as Store } from '../store-
|
|
3
|
+
import { b as Store } from '../store-DbHAgVMH.cjs';
|
|
4
4
|
import { P as ProfilerOptions, a as ProfileReport } from '../types-8s8o5840.cjs';
|
|
5
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-8s8o5840.cjs';
|
|
6
6
|
import 'zod';
|