@nicia-ai/typegraph 0.48.0 → 0.49.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/postgres/index.cjs +3 -3
- package/dist/backend/postgres/index.js +2 -2
- package/dist/backend/postgres/pglite-store.cjs +4 -4
- 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 +3 -3
- package/dist/backend/postgres/pglite.cjs +4 -4
- package/dist/backend/postgres/pglite.js +3 -3
- package/dist/backend/sqlite/index.cjs +3 -3
- package/dist/backend/sqlite/index.js +2 -2
- package/dist/backend/sqlite/libsql.cjs +4 -4
- package/dist/backend/sqlite/libsql.js +2 -2
- package/dist/backend/sqlite/local-store.cjs +5 -5
- 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 +4 -4
- package/dist/backend/sqlite/local.cjs +5 -5
- package/dist/backend/sqlite/local.js +3 -3
- package/dist/{chunk-TKZXMWQF.cjs → chunk-2O4PCIZ6.cjs} +4 -4
- package/dist/{chunk-TKZXMWQF.cjs.map → chunk-2O4PCIZ6.cjs.map} +1 -1
- package/dist/{chunk-OTUPEF2W.cjs → chunk-3G5W2U2L.cjs} +30 -4
- package/dist/chunk-3G5W2U2L.cjs.map +1 -0
- package/dist/{chunk-WCCATHMB.cjs → chunk-3QNZ5SAJ.cjs} +3 -3
- package/dist/chunk-3QNZ5SAJ.cjs.map +1 -0
- package/dist/{chunk-OD4SSY2U.js → chunk-7LZJNLA5.js} +3 -3
- package/dist/{chunk-OD4SSY2U.js.map → chunk-7LZJNLA5.js.map} +1 -1
- package/dist/{chunk-7XUYFFR4.cjs → chunk-7UOLHNWC.cjs} +5 -5
- package/dist/{chunk-7XUYFFR4.cjs.map → chunk-7UOLHNWC.cjs.map} +1 -1
- package/dist/{chunk-2SYZXD54.js → chunk-D4QLTJSM.js} +3 -3
- package/dist/{chunk-2SYZXD54.js.map → chunk-D4QLTJSM.js.map} +1 -1
- package/dist/{chunk-CT3ZKTOF.js → chunk-JPD2CTC3.js} +3 -3
- package/dist/{chunk-CT3ZKTOF.js.map → chunk-JPD2CTC3.js.map} +1 -1
- package/dist/{chunk-AX6JGVTZ.js → chunk-LTXQOEIC.js} +30 -5
- package/dist/chunk-LTXQOEIC.js.map +1 -0
- package/dist/{chunk-PFBRJBUL.cjs → chunk-UGHQV7MP.cjs} +55 -55
- package/dist/{chunk-PFBRJBUL.cjs.map → chunk-UGHQV7MP.cjs.map} +1 -1
- package/dist/{chunk-4WMMBDS5.js → chunk-WIC7DRXW.js} +3 -3
- package/dist/{chunk-4WMMBDS5.js.map → chunk-WIC7DRXW.js.map} +1 -1
- package/dist/{chunk-2HIYYMWY.cjs → chunk-YYUHLYM2.cjs} +54 -54
- package/dist/{chunk-2HIYYMWY.cjs.map → chunk-YYUHLYM2.cjs.map} +1 -1
- package/dist/{chunk-ACGSAMD3.js → chunk-Z2JCLZFJ.js} +3 -3
- package/dist/chunk-Z2JCLZFJ.js.map +1 -0
- package/dist/graph-merge/index.cjs +28 -5
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +7 -4
- package/dist/graph-merge/index.d.ts +7 -4
- package/dist/graph-merge/index.js +24 -1
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/ingestion-import-target-XPxZYw89.d.cts +17 -0
- package/dist/ingestion-import-target-dNeL7iAv.d.ts +17 -0
- package/dist/interchange/index.cjs +25 -25
- package/dist/interchange/index.d.cts +9 -6
- package/dist/interchange/index.d.ts +9 -6
- package/dist/interchange/index.js +2 -2
- package/dist/profiler/index.d.cts +1 -1
- package/dist/profiler/index.d.ts +1 -1
- package/dist/provenance/index.d.cts +1 -1
- package/dist/provenance/index.d.ts +1 -1
- package/dist/{store-UzrGvZOo.d.ts → store-DRrFCx5x.d.ts} +9 -1
- package/dist/{store-JUVvtmR4.d.cts → store-bphCSo7z.d.cts} +9 -1
- package/package.json +2 -3
- package/dist/chunk-ACGSAMD3.js.map +0 -1
- package/dist/chunk-AX6JGVTZ.js.map +0 -1
- package/dist/chunk-OTUPEF2W.cjs.map +0 -1
- package/dist/chunk-WCCATHMB.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkUGHQV7MP_cjs = require('../../chunk-UGHQV7MP.cjs');
|
|
4
|
+
require('../../chunk-3QNZ5SAJ.cjs');
|
|
5
5
|
require('../../chunk-ROR5ZR6A.cjs');
|
|
6
6
|
require('../../chunk-CICO5GXD.cjs');
|
|
7
7
|
require('../../chunk-FA2AFWLP.cjs');
|
|
@@ -24,7 +24,7 @@ require('../../chunk-N66HCGCY.cjs');
|
|
|
24
24
|
|
|
25
25
|
Object.defineProperty(exports, "createPostgresBackend", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkUGHQV7MP_cjs.createPostgresBackend; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "createPostgresTables", {
|
|
30
30
|
enumerable: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createPostgresBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createPostgresBackend } from '../../chunk-7LZJNLA5.js';
|
|
2
|
+
import '../../chunk-Z2JCLZFJ.js';
|
|
3
3
|
import '../../chunk-JONXFAPO.js';
|
|
4
4
|
import '../../chunk-OVI7IXYX.js';
|
|
5
5
|
import '../../chunk-YIURNGXI.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunk2O4PCIZ6_cjs = require('../../chunk-2O4PCIZ6.cjs');
|
|
4
|
+
require('../../chunk-UGHQV7MP.cjs');
|
|
5
|
+
require('../../chunk-3QNZ5SAJ.cjs');
|
|
6
6
|
var chunkSR725PWF_cjs = require('../../chunk-SR725PWF.cjs');
|
|
7
7
|
require('../../chunk-ROR5ZR6A.cjs');
|
|
8
8
|
require('../../chunk-CICO5GXD.cjs');
|
|
@@ -48,7 +48,7 @@ function withoutSchemaOverride(schemaManagement) {
|
|
|
48
48
|
}
|
|
49
49
|
async function createLocalPgliteStore(graph, options = {}) {
|
|
50
50
|
const tables = options.store?.schema === void 0 ? void 0 : chunkHDL2ARHX_cjs.createPostgresTables(options.store.schema.tables);
|
|
51
|
-
const { backend } = await
|
|
51
|
+
const { backend } = await chunk2O4PCIZ6_cjs.createLocalPgliteBackend({
|
|
52
52
|
...options.dataDir === void 0 ? {} : { dataDir: options.dataDir },
|
|
53
53
|
...options.vector === false ? { vector: false } : {},
|
|
54
54
|
...tables === void 0 ? {} : { tables }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d8 as GraphDef } from '../../types-BqFZTQmV.cjs';
|
|
2
2
|
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-CYaff3n3.cjs';
|
|
4
|
-
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-
|
|
5
|
-
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-
|
|
4
|
+
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-bphCSo7z.cjs';
|
|
5
|
+
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-bphCSo7z.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../../materialize-indexes-DTtAnvfY.cjs';
|
|
8
8
|
import '../../temporal-5GqpYCk2.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d8 as GraphDef } from '../../types-BqFZTQmV.js';
|
|
2
2
|
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.js';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-D9eRT_ns.js';
|
|
4
|
-
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-
|
|
5
|
-
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-
|
|
4
|
+
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-DRrFCx5x.js';
|
|
5
|
+
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-DRrFCx5x.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../../materialize-indexes-DJ3ykH59.js';
|
|
8
8
|
import '../../temporal-CbnLzTmM.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createLocalPgliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
import { createLocalPgliteBackend } from '../../chunk-JPD2CTC3.js';
|
|
2
|
+
import '../../chunk-7LZJNLA5.js';
|
|
3
|
+
import '../../chunk-Z2JCLZFJ.js';
|
|
4
4
|
import { createStoreWithSchema } from '../../chunk-BRRP76WO.js';
|
|
5
5
|
import '../../chunk-JONXFAPO.js';
|
|
6
6
|
import '../../chunk-OVI7IXYX.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunk2O4PCIZ6_cjs = require('../../chunk-2O4PCIZ6.cjs');
|
|
4
|
+
require('../../chunk-UGHQV7MP.cjs');
|
|
5
|
+
require('../../chunk-3QNZ5SAJ.cjs');
|
|
6
6
|
require('../../chunk-ROR5ZR6A.cjs');
|
|
7
7
|
require('../../chunk-CICO5GXD.cjs');
|
|
8
8
|
require('../../chunk-FA2AFWLP.cjs');
|
|
@@ -25,7 +25,7 @@ require('../../chunk-N66HCGCY.cjs');
|
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "createLocalPgliteBackend", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk2O4PCIZ6_cjs.createLocalPgliteBackend; }
|
|
29
29
|
});
|
|
30
30
|
//# sourceMappingURL=pglite.cjs.map
|
|
31
31
|
//# sourceMappingURL=pglite.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createLocalPgliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { createLocalPgliteBackend } from '../../chunk-JPD2CTC3.js';
|
|
2
|
+
import '../../chunk-7LZJNLA5.js';
|
|
3
|
+
import '../../chunk-Z2JCLZFJ.js';
|
|
4
4
|
import '../../chunk-JONXFAPO.js';
|
|
5
5
|
import '../../chunk-OVI7IXYX.js';
|
|
6
6
|
import '../../chunk-YIURNGXI.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkYYUHLYM2_cjs = require('../../chunk-YYUHLYM2.cjs');
|
|
4
|
+
require('../../chunk-3QNZ5SAJ.cjs');
|
|
5
5
|
require('../../chunk-FA2AFWLP.cjs');
|
|
6
6
|
var chunkHDL2ARHX_cjs = require('../../chunk-HDL2ARHX.cjs');
|
|
7
7
|
require('../../chunk-WODMN3Q2.cjs');
|
|
@@ -22,7 +22,7 @@ require('../../chunk-N66HCGCY.cjs');
|
|
|
22
22
|
|
|
23
23
|
Object.defineProperty(exports, "createSqliteBackend", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkYYUHLYM2_cjs.createSqliteBackend; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "createSqliteTables", {
|
|
28
28
|
enumerable: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createSqliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { createSqliteBackend } from '../../chunk-D4QLTJSM.js';
|
|
2
|
+
import '../../chunk-Z2JCLZFJ.js';
|
|
3
3
|
import '../../chunk-YIURNGXI.js';
|
|
4
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-6SWPJEYN.js';
|
|
5
5
|
import '../../chunk-OMZ37BM2.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkYYUHLYM2_cjs = require('../../chunk-YYUHLYM2.cjs');
|
|
4
|
+
require('../../chunk-3QNZ5SAJ.cjs');
|
|
5
5
|
var chunkDO7SAMEK_cjs = require('../../chunk-DO7SAMEK.cjs');
|
|
6
6
|
require('../../chunk-CICO5GXD.cjs');
|
|
7
7
|
require('../../chunk-FA2AFWLP.cjs');
|
|
@@ -26,10 +26,10 @@ async function createLibsqlBackend(client, options = {}) {
|
|
|
26
26
|
const db = libsql.drizzle(client);
|
|
27
27
|
const ddlStatements = chunkHDL2ARHX_cjs.generateSqliteDDL(tables2);
|
|
28
28
|
await client.executeMultiple(ddlStatements.join(";\n"));
|
|
29
|
-
const backend =
|
|
29
|
+
const backend = chunkYYUHLYM2_cjs.createSqliteBackend(db, {
|
|
30
30
|
executionProfile: {
|
|
31
31
|
isSync: false,
|
|
32
|
-
transactionMode:
|
|
32
|
+
transactionMode: chunkYYUHLYM2_cjs.isLocalLibsqlClient(client) ? "sql" : "drizzle"
|
|
33
33
|
},
|
|
34
34
|
tables: tables2,
|
|
35
35
|
// libSQL ships native vector search in core — no extension to load —
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createSqliteBackend, isLocalLibsqlClient } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
import { createSqliteBackend, isLocalLibsqlClient } from '../../chunk-D4QLTJSM.js';
|
|
2
|
+
import '../../chunk-Z2JCLZFJ.js';
|
|
3
3
|
import { libsqlVectorStrategy } from '../../chunk-QTD6HX4O.js';
|
|
4
4
|
import '../../chunk-OVI7IXYX.js';
|
|
5
5
|
import '../../chunk-YIURNGXI.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunk7UOLHNWC_cjs = require('../../chunk-7UOLHNWC.cjs');
|
|
4
|
+
require('../../chunk-YYUHLYM2.cjs');
|
|
5
|
+
require('../../chunk-3QNZ5SAJ.cjs');
|
|
6
6
|
var chunkSR725PWF_cjs = require('../../chunk-SR725PWF.cjs');
|
|
7
7
|
require('../../chunk-OORXGFL5.cjs');
|
|
8
8
|
require('../../chunk-CICO5GXD.cjs');
|
|
@@ -48,7 +48,7 @@ function withoutSchemaOverride(schemaManagement) {
|
|
|
48
48
|
}
|
|
49
49
|
async function createLocalSqliteStore(graph, options = {}) {
|
|
50
50
|
const tables = options.store?.schema === void 0 ? void 0 : chunkHDL2ARHX_cjs.createSqliteTables(options.store.schema.tables);
|
|
51
|
-
const { backend } =
|
|
51
|
+
const { backend } = chunk7UOLHNWC_cjs.createLocalSqliteBackend({
|
|
52
52
|
...options.path === void 0 ? {} : { path: options.path },
|
|
53
53
|
...options.pragmas === void 0 ? {} : { pragmas: options.pragmas },
|
|
54
54
|
...options.capabilities === void 0 ? {} : { capabilities: options.capabilities },
|
|
@@ -70,7 +70,7 @@ async function createLocalSqliteStore(graph, options = {}) {
|
|
|
70
70
|
|
|
71
71
|
Object.defineProperty(exports, "DEFAULT_LOCAL_SQLITE_PRAGMAS", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk7UOLHNWC_cjs.DEFAULT_LOCAL_SQLITE_PRAGMAS; }
|
|
74
74
|
});
|
|
75
75
|
exports.createLocalSqliteStore = createLocalSqliteStore;
|
|
76
76
|
//# sourceMappingURL=local-store.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as BackendCapabilities, d8 as GraphDef } from '../../types-BqFZTQmV.cjs';
|
|
2
2
|
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.cjs';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-CYaff3n3.cjs';
|
|
4
|
-
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-
|
|
5
|
-
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-
|
|
4
|
+
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-bphCSo7z.cjs';
|
|
5
|
+
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-bphCSo7z.cjs';
|
|
6
6
|
import { L as LocalSqlitePragmaOptions } from '../../local-options-CZ1BnIoF.cjs';
|
|
7
7
|
export { D as DEFAULT_LOCAL_SQLITE_PRAGMAS, a as LocalSqliteJournalMode, b as LocalSqliteSynchronousMode } from '../../local-options-CZ1BnIoF.cjs';
|
|
8
8
|
import 'zod';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as BackendCapabilities, d8 as GraphDef } from '../../types-BqFZTQmV.js';
|
|
2
2
|
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult, aR as GraphIdentityConfig } from '../../types-BqFZTQmV.js';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-D9eRT_ns.js';
|
|
4
|
-
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-
|
|
5
|
-
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-
|
|
4
|
+
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-DRrFCx5x.js';
|
|
5
|
+
export { I as IdentityAssertion, d as IdentityAssertionId, e as IdentityAssertionResult, f as IdentityFacade, g as IdentityNode, h as IdentityNodeRefInput, i as IdentityPair, j as IdentityReadFacade, k as IdentityRelation, l as IdentityWriteSummary } from '../../store-DRrFCx5x.js';
|
|
6
6
|
import { L as LocalSqlitePragmaOptions } from '../../local-options-CZ1BnIoF.js';
|
|
7
7
|
export { D as DEFAULT_LOCAL_SQLITE_PRAGMAS, a as LocalSqliteJournalMode, b as LocalSqliteSynchronousMode } from '../../local-options-CZ1BnIoF.js';
|
|
8
8
|
import 'zod';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createLocalSqliteBackend } from '../../chunk-
|
|
2
|
-
export { DEFAULT_LOCAL_SQLITE_PRAGMAS } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
import { createLocalSqliteBackend } from '../../chunk-WIC7DRXW.js';
|
|
2
|
+
export { DEFAULT_LOCAL_SQLITE_PRAGMAS } from '../../chunk-WIC7DRXW.js';
|
|
3
|
+
import '../../chunk-D4QLTJSM.js';
|
|
4
|
+
import '../../chunk-Z2JCLZFJ.js';
|
|
5
5
|
import { createStoreWithSchema } from '../../chunk-BRRP76WO.js';
|
|
6
6
|
import '../../chunk-7SQSZN2J.js';
|
|
7
7
|
import '../../chunk-OVI7IXYX.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunk7UOLHNWC_cjs = require('../../chunk-7UOLHNWC.cjs');
|
|
4
|
+
require('../../chunk-YYUHLYM2.cjs');
|
|
5
|
+
require('../../chunk-3QNZ5SAJ.cjs');
|
|
6
6
|
require('../../chunk-OORXGFL5.cjs');
|
|
7
7
|
require('../../chunk-CICO5GXD.cjs');
|
|
8
8
|
require('../../chunk-FA2AFWLP.cjs');
|
|
@@ -25,11 +25,11 @@ require('../../chunk-N66HCGCY.cjs');
|
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "DEFAULT_LOCAL_SQLITE_PRAGMAS", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk7UOLHNWC_cjs.DEFAULT_LOCAL_SQLITE_PRAGMAS; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "createLocalSqliteBackend", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk7UOLHNWC_cjs.createLocalSqliteBackend; }
|
|
33
33
|
});
|
|
34
34
|
//# sourceMappingURL=local.cjs.map
|
|
35
35
|
//# sourceMappingURL=local.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DEFAULT_LOCAL_SQLITE_PRAGMAS, createLocalSqliteBackend } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { DEFAULT_LOCAL_SQLITE_PRAGMAS, createLocalSqliteBackend } from '../../chunk-WIC7DRXW.js';
|
|
2
|
+
import '../../chunk-D4QLTJSM.js';
|
|
3
|
+
import '../../chunk-Z2JCLZFJ.js';
|
|
4
4
|
import '../../chunk-7SQSZN2J.js';
|
|
5
5
|
import '../../chunk-OVI7IXYX.js';
|
|
6
6
|
import '../../chunk-YIURNGXI.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUGHQV7MP_cjs = require('./chunk-UGHQV7MP.cjs');
|
|
4
4
|
var chunkHDL2ARHX_cjs = require('./chunk-HDL2ARHX.cjs');
|
|
5
5
|
var chunkSIT26LAZ_cjs = require('./chunk-SIT26LAZ.cjs');
|
|
6
6
|
var chunk5PRKMB24_cjs = require('./chunk-5PRKMB24.cjs');
|
|
@@ -32,7 +32,7 @@ async function createLocalPgliteBackend(options = {}) {
|
|
|
32
32
|
const migrationSql = vectorEnabled ? chunkHDL2ARHX_cjs.generatePostgresMigrationSQL(tables2) : chunkHDL2ARHX_cjs.generatePostgresDDL(tables2).join("\n\n");
|
|
33
33
|
await client.exec(migrationSql);
|
|
34
34
|
const db = pglite$1.drizzle(client);
|
|
35
|
-
const backend =
|
|
35
|
+
const backend = chunkUGHQV7MP_cjs.createPostgresBackend(db, {
|
|
36
36
|
tables: tables2,
|
|
37
37
|
...vectorEnabled ? {} : { vector: false }
|
|
38
38
|
});
|
|
@@ -46,5 +46,5 @@ async function createLocalPgliteBackend(options = {}) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
exports.createLocalPgliteBackend = createLocalPgliteBackend;
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-2O4PCIZ6.cjs.map
|
|
50
|
+
//# sourceMappingURL=chunk-2O4PCIZ6.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/backend/postgres/pglite.ts"],"names":["ConfigurationError","tables","PGlite","generatePostgresMigrationSQL","generatePostgresDDL","drizzle","createPostgresBackend","wrapWithManagedClose","closeAfterFailure"],"mappings":";;;;;;;;;;AAqIA,eAAe,4BAAA,GAAmD;AAChE,EAAA,IAAI;AACF,IAAA,MAAM,OAAA,GAAU,MAAM,OAAO,+BAA+B,CAAA;AAC5D,IAAA,OAAO,OAAA,CAAQ,MAAA;AAAA,EACjB,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAIA,oCAAA;AAAA,MACR,2PAAA;AAAA,MAIA,EAAE,OAAA,EAAS,QAAA,EAAU,UAAA,EAAY,+BAAA,EAAgC;AAAA,MACjE,EAAE,OAAO,KAAA;AAAM,KACjB;AAAA,EACF;AACF;AAoBA,eAAsB,wBAAA,CACpB,OAAA,GAAqC,EAAC,EACH;AACnC,EAAA,MAAMC,OAAAA,GAAS,QAAQ,MAAA,IAAUA,wBAAA;AAMjC,EAAA,MAAM,eAAA,GACJ,QAAQ,MAAA,KAAW,KAAA,GACjB,SACC,OAAA,CAAQ,MAAA,IAAW,MAAM,4BAAA,EAA6B;AAC3D,EAAA,MAAM,gBAAgB,eAAA,KAAoB,MAAA;AAO1C,EAAA,MAAM,MAAA,GAAS,MAAMC,aAAA,CAAO,MAAA,CAAO;AAAA,IACjC,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,eAAA,KAAoB,MAAA,GACtB,EAAC,GACD,EAAE,UAAA,EAAY,EAAE,MAAA,EAAQ,eAAA,EAAgB;AAAE,GAC7C,CAAA;AAED,EAAA,IAAI;AAGF,IAAA,MAAM,YAAA,GACJ,gBACEC,8CAAA,CAA6BF,OAAM,IACnCG,qCAAA,CAAoBH,OAAM,CAAA,CAAE,IAAA,CAAK,MAAM,CAAA;AAC3C,IAAA,MAAM,MAAA,CAAO,KAAK,YAAY,CAAA;AAE9B,IAAA,MAAM,EAAA,GAAKI,iBAAQ,MAAM,CAAA;AACzB,IAAA,MAAM,OAAA,GAAUC,wCAAsB,EAAA,EAAI;AAAA,MACxC,MAAA,EAAAL,OAAAA;AAAA,MACA,GAAI,aAAA,GAAgB,EAAC,GAAI,EAAE,QAAQ,KAAA;AAAM,KAC1C,CAAA;AACD,IAAA,MAAM,cAAA,GAAiBM,sCAAA,CAAqB,OAAA,EAAS,YAAY;AAC/D,MAAA,MAAM,OAAO,KAAA,EAAM;AAAA,IACrB,CAAC,CAAA;AAED,IAAA,OAAO,EAAE,OAAA,EAAS,cAAA,EAAgB,EAAA,EAAI,MAAA,EAAO;AAAA,EAC/C,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,QAAQ,KAAK,CAAA;AAAA,EACxC;AACF","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/backend/postgres/pglite.ts"],"names":["ConfigurationError","tables","PGlite","generatePostgresMigrationSQL","generatePostgresDDL","drizzle","createPostgresBackend","wrapWithManagedClose","closeAfterFailure"],"mappings":";;;;;;;;;;AAqIA,eAAe,4BAAA,GAAmD;AAChE,EAAA,IAAI;AACF,IAAA,MAAM,OAAA,GAAU,MAAM,OAAO,+BAA+B,CAAA;AAC5D,IAAA,OAAO,OAAA,CAAQ,MAAA;AAAA,EACjB,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAIA,oCAAA;AAAA,MACR,2PAAA;AAAA,MAIA,EAAE,OAAA,EAAS,QAAA,EAAU,UAAA,EAAY,+BAAA,EAAgC;AAAA,MACjE,EAAE,OAAO,KAAA;AAAM,KACjB;AAAA,EACF;AACF;AAoBA,eAAsB,wBAAA,CACpB,OAAA,GAAqC,EAAC,EACH;AACnC,EAAA,MAAMC,OAAAA,GAAS,QAAQ,MAAA,IAAUA,wBAAA;AAMjC,EAAA,MAAM,eAAA,GACJ,QAAQ,MAAA,KAAW,KAAA,GACjB,SACC,OAAA,CAAQ,MAAA,IAAW,MAAM,4BAAA,EAA6B;AAC3D,EAAA,MAAM,gBAAgB,eAAA,KAAoB,MAAA;AAO1C,EAAA,MAAM,MAAA,GAAS,MAAMC,aAAA,CAAO,MAAA,CAAO;AAAA,IACjC,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,eAAA,KAAoB,MAAA,GACtB,EAAC,GACD,EAAE,UAAA,EAAY,EAAE,MAAA,EAAQ,eAAA,EAAgB;AAAE,GAC7C,CAAA;AAED,EAAA,IAAI;AAGF,IAAA,MAAM,YAAA,GACJ,gBACEC,8CAAA,CAA6BF,OAAM,IACnCG,qCAAA,CAAoBH,OAAM,CAAA,CAAE,IAAA,CAAK,MAAM,CAAA;AAC3C,IAAA,MAAM,MAAA,CAAO,KAAK,YAAY,CAAA;AAE9B,IAAA,MAAM,EAAA,GAAKI,iBAAQ,MAAM,CAAA;AACzB,IAAA,MAAM,OAAA,GAAUC,wCAAsB,EAAA,EAAI;AAAA,MACxC,MAAA,EAAAL,OAAAA;AAAA,MACA,GAAI,aAAA,GAAgB,EAAC,GAAI,EAAE,QAAQ,KAAA;AAAM,KAC1C,CAAA;AACD,IAAA,MAAM,cAAA,GAAiBM,sCAAA,CAAqB,OAAA,EAAS,YAAY;AAC/D,MAAA,MAAM,OAAO,KAAA,EAAM;AAAA,IACrB,CAAC,CAAA;AAED,IAAA,OAAO,EAAE,OAAA,EAAS,cAAA,EAAgB,EAAA,EAAI,MAAA,EAAO;AAAA,EAC/C,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,QAAQ,KAAK,CAAA;AAAA,EACxC;AACF","file":"chunk-2O4PCIZ6.cjs","sourcesContent":["/**\n * Local PGlite backend — Postgres-in-WASM, running in-process.\n *\n * [PGlite](https://pglite.dev/) is a full Postgres compiled to WebAssembly\n * that runs inside the Node/Bun/Deno/browser process with no server and no\n * native addon. This is the batteries-included Postgres analog of\n * `createLocalSqliteBackend`: it constructs a PGlite instance, loads the\n * pgvector extension, runs the schema DDL, and returns a ready\n * `{ backend, db }` pair whose `close()` disposes the engine.\n *\n * `@electric-sql/pglite` is an optional peer dependency. Vector support\n * additionally needs `@electric-sql/pglite-pgvector` (PGlite ≥ 0.5 ships\n * pgvector as a separate package). Install what you need:\n *\n * ```bash\n * pnpm add @electric-sql/pglite @electric-sql/pglite-pgvector\n * ```\n *\n * @example In-memory database (default, vector enabled)\n * ```typescript\n * import { createLocalPgliteBackend } from \"@nicia-ai/typegraph/adapters/drizzle/postgres/pglite\";\n *\n * const { backend } = await createLocalPgliteBackend();\n * const store = createStore(graph, backend);\n * ```\n *\n * @example Persistent on-disk database\n * ```typescript\n * const { backend, db } = await createLocalPgliteBackend({ dataDir: \"./pgdata\" });\n * ```\n *\n * @example No vector support (skip the pgvector extension)\n * ```typescript\n * const { backend } = await createLocalPgliteBackend({ vector: false });\n * ```\n *\n * PGlite is single-connection and serial: there is no pooling, so concurrent\n * `store.transaction()` calls queue rather than run in parallel.\n */\nimport { type Extension, PGlite } from \"@electric-sql/pglite\";\nimport { drizzle, type PgliteDatabase } from \"drizzle-orm/pglite\";\n\nimport { ConfigurationError } from \"../../errors\";\nimport { wrapWithManagedClose } from \"../derive-backend\";\nexport type { GraphIdentityConfig } from \"../../core/define-graph\";\nimport {\n generatePostgresDDL,\n generatePostgresMigrationSQL,\n} from \"../drizzle/ddl\";\nimport { type AnyPgTransaction } from \"../drizzle/execution\";\nexport type { AnyPgDatabase, AnyPgTransaction } from \"../drizzle/execution\";\nimport {\n createPostgresBackend,\n type PostgresTables,\n tables as defaultTables,\n} from \"../drizzle/postgres\";\nimport { type AdapterBackend, closeAfterFailure } from \"../types\";\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 local PGlite backend.\n */\nexport type LocalPgliteBackendOptions = Readonly<{\n /**\n * PGlite data directory. Omit for an in-memory database (the default).\n * Accepts any PGlite data-dir spec: a filesystem path (`\"./pgdata\"`),\n * `\"memory://\"`, or a browser/runtime-specific scheme such as\n * `\"idb://my-db\"`.\n */\n dataDir?: string;\n\n /**\n * Custom table definitions. Defaults to standard TypeGraph table names.\n */\n tables?: PostgresTables;\n\n /**\n * Controls the pgvector stack:\n *\n * - **omitted (default)** — load pgvector from `@electric-sql/pglite-pgvector`\n * and run `CREATE EXTENSION vector`, so embedding fields work out of the\n * box. Throws a {@link ConfigurationError} if the package isn't installed.\n * - **`false`** — skip the extension entirely; the backend advertises no\n * vector capability (mirroring a SQLite connection without sqlite-vec).\n * Use when a graph carries no embeddings, or to avoid the extension dep.\n * - **a PGlite `Extension`** — bring your own pgvector build or custom\n * extension packaging. Decouples this helper from a specific pgvector\n * package version.\n */\n vector?: false | Extension;\n}>;\n\n/**\n * Result of creating a local PGlite backend.\n */\nexport type LocalPgliteBackendResult = Readonly<{\n /**\n * The GraphBackend instance for use with createStore. Its `close()`\n * disposes the underlying PGlite engine.\n */\n backend: AdapterBackend<AnyPgTransaction>;\n\n /**\n * The underlying Drizzle database instance. Useful for direct SQL access.\n */\n db: PgliteDatabase;\n\n /**\n * The raw PGlite instance, for engine-specific operations such as\n * `dumpDataDir()` / `clone()` not surfaced through Drizzle.\n */\n client: PGlite;\n}>;\n\n// ============================================================\n// Vector extension loading\n// ============================================================\n\n/**\n * Dynamically loads the default pgvector extension from\n * `@electric-sql/pglite-pgvector`. Kept as a runtime import so the package\n * stays an optional peer dependency — callers using `vector: false` or\n * supplying their own extension never need it installed.\n */\nasync function loadDefaultPgvectorExtension(): Promise<Extension> {\n try {\n const module_ = await import(\"@electric-sql/pglite-pgvector\");\n return module_.vector;\n } catch (error) {\n throw new ConfigurationError(\n \"createLocalPgliteBackend needs the pgvector extension but \" +\n \"`@electric-sql/pglite-pgvector` could not be loaded. Install it \" +\n \"(`pnpm add @electric-sql/pglite-pgvector`), pass your own `vector` \" +\n \"extension, or set `vector: false` to disable vector support.\",\n { backend: \"pglite\", dependency: \"@electric-sql/pglite-pgvector\" },\n { cause: error },\n );\n }\n}\n\n// ============================================================\n// Factory Function\n// ============================================================\n\n/**\n * Creates a TypeGraph backend backed by an in-process PGlite database.\n *\n * Constructs the PGlite engine (loading pgvector unless disabled), executes\n * the schema DDL, and wires the standard Postgres backend. The returned\n * backend owns the engine: call `backend.close()` to dispose it.\n *\n * For production Postgres, or a PGlite instance you construct yourself,\n * use `createPostgresBackend` directly with your own Drizzle database — the\n * execution fast path detects PGlite and routes it correctly.\n *\n * @param options - Configuration options\n * @returns Backend, Drizzle database, and raw PGlite client\n */\nexport async function createLocalPgliteBackend(\n options: LocalPgliteBackendOptions = {},\n): Promise<LocalPgliteBackendResult> {\n const tables = options.tables ?? defaultTables;\n\n // pgvector lives in the WASM instance, so the extension must be passed at\n // construction — `CREATE EXTENSION vector` alone can't pull it in. An\n // explicitly supplied extension wins; `false` disables; otherwise load the\n // default package.\n const vectorExtension =\n options.vector === false ?\n undefined\n : (options.vector ?? (await loadDefaultPgvectorExtension()));\n const vectorEnabled = vectorExtension !== undefined;\n\n // Construct via the single options-object form (passing `dataDir` as a\n // field), not the positional `create(dataDir, options)` overload: with a\n // leading `undefined` dataDir, that overload silently drops `extensions`\n // (\"extension vector is not available\"). The options form loads them for\n // both the in-memory and on-disk cases.\n const client = await PGlite.create({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(vectorExtension === undefined ?\n {}\n : { extensions: { vector: vectorExtension } }),\n });\n\n try {\n // `exec` runs a multi-statement batch (DDL + the pgvector `CREATE\n // EXTENSION` when enabled) in one round trip.\n const migrationSql =\n vectorEnabled ?\n generatePostgresMigrationSQL(tables)\n : generatePostgresDDL(tables).join(\"\\n\\n\");\n await client.exec(migrationSql);\n\n const db = drizzle(client);\n const backend = createPostgresBackend(db, {\n tables,\n ...(vectorEnabled ? {} : { vector: false }),\n });\n const managedBackend = wrapWithManagedClose(backend, async () => {\n await client.close();\n });\n\n return { backend: managedBackend, db, client };\n } catch (error) {\n return closeAfterFailure(client, error);\n }\n}\n"]}
|
|
@@ -240,6 +240,29 @@ var ExportStreamOptionsSchema = ExportOptionsSchema.extend({
|
|
|
240
240
|
batchSize: zod.z.number().int().positive().default(1e3)
|
|
241
241
|
});
|
|
242
242
|
|
|
243
|
+
// src/interchange/ingestion-import-target.ts
|
|
244
|
+
var INGESTION_IMPORT_TARGETS = /* @__PURE__ */ new WeakMap();
|
|
245
|
+
function registerIngestionImportTarget(handle, store) {
|
|
246
|
+
INGESTION_IMPORT_TARGETS.set(handle, store);
|
|
247
|
+
}
|
|
248
|
+
function resolveIngestionImportTarget(target) {
|
|
249
|
+
const registeredStore = INGESTION_IMPORT_TARGETS.get(target);
|
|
250
|
+
if (registeredStore !== void 0) return registeredStore;
|
|
251
|
+
try {
|
|
252
|
+
chunk3KOY4FH3_cjs.storeBackend(target);
|
|
253
|
+
return target;
|
|
254
|
+
} catch (error) {
|
|
255
|
+
throw new chunkMRDBBHIZ_cjs.ConfigurationError(
|
|
256
|
+
"Interchange import received an unrecognized ingestion target",
|
|
257
|
+
{ target: "unregistered-ingestion-target" },
|
|
258
|
+
{
|
|
259
|
+
cause: error,
|
|
260
|
+
suggestion: "Pass a Store or the exact handle returned by ingestionBranch() from this TypeGraph installation."
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
243
266
|
// src/interchange/stream-source.ts
|
|
244
267
|
var EXPORT_STREAM_BACKENDS = /* @__PURE__ */ new WeakMap();
|
|
245
268
|
function markExportStreamBackend(stream, backend) {
|
|
@@ -251,7 +274,8 @@ function exportStreamBackend(stream) {
|
|
|
251
274
|
}
|
|
252
275
|
|
|
253
276
|
// src/interchange/import.ts
|
|
254
|
-
async function importGraph(
|
|
277
|
+
async function importGraph(target, data, rawOptions) {
|
|
278
|
+
const store = resolveIngestionImportTarget(target);
|
|
255
279
|
const options = ImportOptionsSchema.parse(rawOptions);
|
|
256
280
|
return withImportStreamLease(
|
|
257
281
|
store,
|
|
@@ -349,7 +373,8 @@ async function importGraphData(store, data, options) {
|
|
|
349
373
|
errors
|
|
350
374
|
};
|
|
351
375
|
}
|
|
352
|
-
async function importGraphStream(
|
|
376
|
+
async function importGraphStream(target, chunks, rawOptions) {
|
|
377
|
+
const store = resolveIngestionImportTarget(target);
|
|
353
378
|
const options = ImportOptionsSchema.parse(rawOptions);
|
|
354
379
|
const sourceBackend = exportStreamBackend(chunks);
|
|
355
380
|
const targetBackend = chunk3KOY4FH3_cjs.storeBackend(store);
|
|
@@ -2147,7 +2172,8 @@ exports.exportGraphStream = exportGraphStream;
|
|
|
2147
2172
|
exports.exportStreamBackend = exportStreamBackend;
|
|
2148
2173
|
exports.importGraph = importGraph;
|
|
2149
2174
|
exports.importGraphStream = importGraphStream;
|
|
2175
|
+
exports.registerIngestionImportTarget = registerIngestionImportTarget;
|
|
2150
2176
|
exports.serializedStreamRefusal = serializedStreamRefusal;
|
|
2151
2177
|
exports.withImportStreamLease = withImportStreamLease;
|
|
2152
|
-
//# sourceMappingURL=chunk-
|
|
2153
|
-
//# sourceMappingURL=chunk-
|
|
2178
|
+
//# sourceMappingURL=chunk-3G5W2U2L.cjs.map
|
|
2179
|
+
//# sourceMappingURL=chunk-3G5W2U2L.cjs.map
|