@nicia-ai/typegraph 0.46.0 → 0.46.1
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/index.cjs +5 -5
- package/dist/backend/index.js +2 -2
- package/dist/backend/postgres/pglite-store.cjs +8 -8
- 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 +7 -7
- package/dist/backend/sqlite/local-store.cjs +8 -8
- 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 +7 -7
- package/dist/{chunk-CNV4TXJG.js → chunk-2Z2Z3ZD6.js} +3 -3
- package/dist/{chunk-CNV4TXJG.js.map → chunk-2Z2Z3ZD6.js.map} +1 -1
- package/dist/{chunk-N3257XE6.cjs → chunk-65E3XWGF.cjs} +21 -21
- package/dist/{chunk-N3257XE6.cjs.map → chunk-65E3XWGF.cjs.map} +1 -1
- package/dist/{chunk-ONU3HIED.cjs → chunk-CMWHLBVN.cjs} +29 -29
- package/dist/{chunk-ONU3HIED.cjs.map → chunk-CMWHLBVN.cjs.map} +1 -1
- package/dist/{chunk-XNLIZYRZ.cjs → chunk-DTVWX77L.cjs} +56 -56
- package/dist/{chunk-XNLIZYRZ.cjs.map → chunk-DTVWX77L.cjs.map} +1 -1
- package/dist/{chunk-JIVMTW7W.js → chunk-GF3KXUTW.js} +4 -4
- package/dist/{chunk-JIVMTW7W.js.map → chunk-GF3KXUTW.js.map} +1 -1
- package/dist/{chunk-QWX5YA3K.js → chunk-L65OU2U3.js} +11 -9
- package/dist/chunk-L65OU2U3.js.map +1 -0
- package/dist/{chunk-QLRESYPU.js → chunk-LGHCOKTT.js} +5 -5
- package/dist/{chunk-QLRESYPU.js.map → chunk-LGHCOKTT.js.map} +1 -1
- package/dist/{chunk-WEVQJ5LH.js → chunk-M3WP7RQZ.js} +2 -2
- package/dist/chunk-M3WP7RQZ.js.map +1 -0
- package/dist/{chunk-Q7Q4WSLJ.cjs → chunk-MCLYU6BN.cjs} +6 -2
- package/dist/chunk-MCLYU6BN.cjs.map +1 -0
- package/dist/{chunk-RJS7DECT.js → chunk-MZLPX2R7.js} +3 -3
- package/dist/{chunk-RJS7DECT.js.map → chunk-MZLPX2R7.js.map} +1 -1
- package/dist/{chunk-NQ6BRJBE.js → chunk-NLI2AVEF.js} +3 -3
- package/dist/{chunk-NQ6BRJBE.js.map → chunk-NLI2AVEF.js.map} +1 -1
- package/dist/{chunk-XMQSEJCF.cjs → chunk-PF6F5NLJ.cjs} +20 -20
- package/dist/{chunk-XMQSEJCF.cjs.map → chunk-PF6F5NLJ.cjs.map} +1 -1
- package/dist/{chunk-XDF2UPEQ.cjs → chunk-PNTCATDE.cjs} +431 -421
- package/dist/chunk-PNTCATDE.cjs.map +1 -0
- package/dist/{chunk-7GT72YHH.cjs → chunk-PT7RIRIZ.cjs} +66 -64
- package/dist/chunk-PT7RIRIZ.cjs.map +1 -0
- package/dist/{chunk-TTAITEPJ.cjs → chunk-Q3G6A4I3.cjs} +2 -2
- package/dist/chunk-Q3G6A4I3.cjs.map +1 -0
- package/dist/{chunk-7Z5OR7KO.js → chunk-S6PW7VV5.js} +19 -9
- package/dist/chunk-S6PW7VV5.js.map +1 -0
- package/dist/{chunk-XQSCL77R.cjs → chunk-VLT6PEWR.cjs} +4 -4
- package/dist/{chunk-XQSCL77R.cjs.map → chunk-VLT6PEWR.cjs.map} +1 -1
- package/dist/{chunk-OH5E5KIO.js → chunk-WQZLUGVR.js} +6 -6
- package/dist/{chunk-OH5E5KIO.js.map → chunk-WQZLUGVR.js.map} +1 -1
- package/dist/{chunk-DLNROMQ7.js → chunk-XL7SLCXS.js} +6 -3
- package/dist/chunk-XL7SLCXS.js.map +1 -0
- package/dist/{chunk-XNSI2FJO.cjs → chunk-YBQOHKHN.cjs} +8 -8
- package/dist/{chunk-XNSI2FJO.cjs.map → chunk-YBQOHKHN.cjs.map} +1 -1
- package/dist/core/index.cjs +5 -5
- package/dist/core/index.js +1 -1
- package/dist/graph-merge/index.cjs +149 -149
- package/dist/graph-merge/index.d.cts +1 -1
- package/dist/graph-merge/index.d.ts +1 -1
- package/dist/graph-merge/index.js +8 -8
- package/dist/index.cjs +79 -79
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/interchange/index.cjs +34 -34
- package/dist/interchange/index.d.cts +1 -1
- package/dist/interchange/index.d.ts +1 -1
- package/dist/interchange/index.js +7 -7
- package/dist/profiler/index.d.cts +1 -1
- package/dist/profiler/index.d.ts +1 -1
- package/dist/provenance/index.cjs +16 -16
- package/dist/provenance/index.d.cts +1 -1
- package/dist/provenance/index.d.ts +1 -1
- package/dist/provenance/index.js +3 -3
- package/dist/schema/index.cjs +32 -32
- package/dist/schema/index.js +5 -5
- package/dist/{store-RwTJx8LX.d.cts → store-B0h6x7wo.d.cts} +12 -3
- package/dist/{store-DawaWWjJ.d.ts → store-ClQ-MZQS.d.ts} +12 -3
- package/package.json +3 -3
- package/dist/chunk-7GT72YHH.cjs.map +0 -1
- package/dist/chunk-7Z5OR7KO.js.map +0 -1
- package/dist/chunk-DLNROMQ7.js.map +0 -1
- package/dist/chunk-Q7Q4WSLJ.cjs.map +0 -1
- package/dist/chunk-QWX5YA3K.js.map +0 -1
- package/dist/chunk-TTAITEPJ.cjs.map +0 -1
- package/dist/chunk-WEVQJ5LH.js.map +0 -1
- package/dist/chunk-XDF2UPEQ.cjs.map +0 -1
package/dist/backend/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYBQOHKHN_cjs = require('../chunk-YBQOHKHN.cjs');
|
|
4
4
|
require('../chunk-RMQLSPA2.cjs');
|
|
5
5
|
require('../chunk-U5SON7R2.cjs');
|
|
6
6
|
require('../chunk-NFCVHQ5P.cjs');
|
|
7
7
|
var chunkXBYVV3MP_cjs = require('../chunk-XBYVV3MP.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-MCLYU6BN.cjs');
|
|
9
9
|
require('../chunk-XCAGZAKP.cjs');
|
|
10
10
|
require('../chunk-NAUA4PW5.cjs');
|
|
11
11
|
var chunk4UGOKMI5_cjs = require('../chunk-4UGOKMI5.cjs');
|
|
@@ -19,15 +19,15 @@ require('../chunk-N66HCGCY.cjs');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "deleteLegacyRecordedAnchorMap", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYBQOHKHN_cjs.deleteLegacyRecordedAnchorMap; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "migrateLegacyRecordedTime", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYBQOHKHN_cjs.migrateLegacyRecordedTime; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "migrateRecordedAnchor", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkYBQOHKHN_cjs.migrateRecordedAnchor; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "D1_MAX_BIND_PARAMETERS", {
|
|
33
33
|
enumerable: true,
|
package/dist/backend/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor } from '../chunk-
|
|
1
|
+
export { deleteLegacyRecordedAnchorMap, migrateLegacyRecordedTime, migrateRecordedAnchor } from '../chunk-MZLPX2R7.js';
|
|
2
2
|
import '../chunk-5UVRGXD3.js';
|
|
3
3
|
import '../chunk-UV3SN74I.js';
|
|
4
4
|
import '../chunk-MSY7FSX4.js';
|
|
5
5
|
export { D1_MAX_BIND_PARAMETERS, DURABLE_OBJECT_MAX_BIND_PARAMETERS, MODERN_SQLITE_MAX_BIND_PARAMETERS, POSTGRES_CAPABILITIES, POSTGRES_MAX_BIND_PARAMETERS, SQLITE_CAPABILITIES, SQLITE_MAX_BIND_PARAMETERS, isLiveNodeRow, isTombstonedNodeRow, normalizeGraphAnalyticsCapabilities, rowPropsToJsonText, rowPropsToObject } from '../chunk-AKLS3BYZ.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-XL7SLCXS.js';
|
|
7
7
|
import '../chunk-CBTIUB76.js';
|
|
8
8
|
import '../chunk-2EBMPJBO.js';
|
|
9
9
|
export { ALL_FULLTEXT_MODES, BASE_CONTRIBUTION_OWNER, FULLTEXT_CONTRIBUTION_NAME, VECTOR_CONTRIBUTION_PREFIX, assertFiniteEmbedding, assertVectorMinScore, assertVectorSearchLimit, buildFulltextCapabilities, buildVectorCapabilities, fts5Strategy, quoteIdentifier, shortHash, tsvectorStrategy, vectorMinScoreCondition, vectorPhysicalName, vectorScoreExpression } from '../chunk-YDFDBE6D.js';
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
var chunkM4BDU5RX_cjs = require('../../chunk-M4BDU5RX.cjs');
|
|
4
4
|
require('../../chunk-TQR4KBY2.cjs');
|
|
5
5
|
require('../../chunk-MUK4BU7K.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkPNTCATDE_cjs = require('../../chunk-PNTCATDE.cjs');
|
|
7
7
|
require('../../chunk-MXJDTH5B.cjs');
|
|
8
8
|
require('../../chunk-A4OC4DVN.cjs');
|
|
9
9
|
require('../../chunk-YAAM3M2S.cjs');
|
|
10
10
|
var chunkRMQLSPA2_cjs = require('../../chunk-RMQLSPA2.cjs');
|
|
11
11
|
require('../../chunk-U5SON7R2.cjs');
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-PT7RIRIZ.cjs');
|
|
13
|
+
require('../../chunk-Q3G6A4I3.cjs');
|
|
14
|
+
require('../../chunk-65E3XWGF.cjs');
|
|
15
15
|
require('../../chunk-NK5Q7UNE.cjs');
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
16
|
+
require('../../chunk-DTVWX77L.cjs');
|
|
17
|
+
require('../../chunk-PF6F5NLJ.cjs');
|
|
18
18
|
require('../../chunk-PWLJ77UV.cjs');
|
|
19
19
|
require('../../chunk-BSFJMMV3.cjs');
|
|
20
20
|
require('../../chunk-NFCVHQ5P.cjs');
|
|
21
21
|
var chunkXBYVV3MP_cjs = require('../../chunk-XBYVV3MP.cjs');
|
|
22
22
|
require('../../chunk-CXBHOOIQ.cjs');
|
|
23
23
|
require('../../chunk-E4WNQBEF.cjs');
|
|
24
|
-
require('../../chunk-
|
|
24
|
+
require('../../chunk-MCLYU6BN.cjs');
|
|
25
25
|
require('../../chunk-62ZP23AW.cjs');
|
|
26
26
|
require('../../chunk-XCAGZAKP.cjs');
|
|
27
27
|
require('../../chunk-U63GDNRC.cjs');
|
|
@@ -53,7 +53,7 @@ async function createLocalPgliteStore(graph, options = {}) {
|
|
|
53
53
|
...tables === void 0 ? {} : { tables }
|
|
54
54
|
});
|
|
55
55
|
try {
|
|
56
|
-
const [store] = await
|
|
56
|
+
const [store] = await chunkPNTCATDE_cjs.createStoreWithSchema(graph, backend, {
|
|
57
57
|
...options.store,
|
|
58
58
|
// The type already excludes `schema` here; the runtime strip guards
|
|
59
59
|
// untyped callers, so the provisioned schema (or the default tables)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as GraphDef } from '../../types-HkveCCx0.cjs';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.cjs';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-HGk6E_HW.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-B0h6x7wo.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-B0h6x7wo.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../../materialize-indexes-6A7dWGtb.cjs';
|
|
8
8
|
import '../../temporal-Bn-Fi8FJ.cjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as GraphDef } from '../../types-HkveCCx0.js';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.js';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-CfZAimti.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-ClQ-MZQS.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-ClQ-MZQS.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../../materialize-indexes-BMJP6Tms.js';
|
|
8
8
|
import '../../temporal-BtM4UALv.js';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { createLocalPgliteBackend } from '../../chunk-YBFHZUXX.js';
|
|
2
2
|
import '../../chunk-5763DULU.js';
|
|
3
3
|
import '../../chunk-7VQXLT5O.js';
|
|
4
|
-
import { createStoreWithSchema } from '../../chunk-
|
|
4
|
+
import { createStoreWithSchema } from '../../chunk-S6PW7VV5.js';
|
|
5
5
|
import '../../chunk-VGTJPTIC.js';
|
|
6
6
|
import '../../chunk-YWGVVALJ.js';
|
|
7
7
|
import '../../chunk-NMWDXFPH.js';
|
|
8
8
|
import { createPostgresTables } from '../../chunk-5UVRGXD3.js';
|
|
9
9
|
import '../../chunk-UV3SN74I.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-L65OU2U3.js';
|
|
11
|
+
import '../../chunk-M3WP7RQZ.js';
|
|
12
|
+
import '../../chunk-LGHCOKTT.js';
|
|
13
13
|
import '../../chunk-JXA2ZP2Q.js';
|
|
14
|
-
import '../../chunk-
|
|
15
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-GF3KXUTW.js';
|
|
15
|
+
import '../../chunk-NLI2AVEF.js';
|
|
16
16
|
import '../../chunk-JBQQ7THH.js';
|
|
17
17
|
import '../../chunk-JZUR7ZWE.js';
|
|
18
18
|
import '../../chunk-MSY7FSX4.js';
|
|
19
19
|
import { closeAfterFailure } from '../../chunk-AKLS3BYZ.js';
|
|
20
20
|
import '../../chunk-775A4ZMN.js';
|
|
21
21
|
import '../../chunk-WDGA7IYB.js';
|
|
22
|
-
import '../../chunk-
|
|
22
|
+
import '../../chunk-XL7SLCXS.js';
|
|
23
23
|
import '../../chunk-DCQVHAYQ.js';
|
|
24
24
|
import '../../chunk-CBTIUB76.js';
|
|
25
25
|
import '../../chunk-I5MOXA4H.js';
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
var chunk3DHZCOT7_cjs = require('../../chunk-3DHZCOT7.cjs');
|
|
4
4
|
require('../../chunk-YVWGEQJE.cjs');
|
|
5
5
|
require('../../chunk-MUK4BU7K.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkPNTCATDE_cjs = require('../../chunk-PNTCATDE.cjs');
|
|
7
7
|
require('../../chunk-PNN7RHVR.cjs');
|
|
8
8
|
require('../../chunk-A4OC4DVN.cjs');
|
|
9
9
|
require('../../chunk-YAAM3M2S.cjs');
|
|
10
10
|
var chunkRMQLSPA2_cjs = require('../../chunk-RMQLSPA2.cjs');
|
|
11
11
|
require('../../chunk-U5SON7R2.cjs');
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-PT7RIRIZ.cjs');
|
|
13
|
+
require('../../chunk-Q3G6A4I3.cjs');
|
|
14
|
+
require('../../chunk-65E3XWGF.cjs');
|
|
15
15
|
require('../../chunk-NK5Q7UNE.cjs');
|
|
16
|
-
require('../../chunk-
|
|
17
|
-
require('../../chunk-
|
|
16
|
+
require('../../chunk-DTVWX77L.cjs');
|
|
17
|
+
require('../../chunk-PF6F5NLJ.cjs');
|
|
18
18
|
require('../../chunk-PWLJ77UV.cjs');
|
|
19
19
|
require('../../chunk-BSFJMMV3.cjs');
|
|
20
20
|
require('../../chunk-NFCVHQ5P.cjs');
|
|
21
21
|
var chunkXBYVV3MP_cjs = require('../../chunk-XBYVV3MP.cjs');
|
|
22
22
|
require('../../chunk-CXBHOOIQ.cjs');
|
|
23
23
|
require('../../chunk-E4WNQBEF.cjs');
|
|
24
|
-
require('../../chunk-
|
|
24
|
+
require('../../chunk-MCLYU6BN.cjs');
|
|
25
25
|
require('../../chunk-62ZP23AW.cjs');
|
|
26
26
|
require('../../chunk-XCAGZAKP.cjs');
|
|
27
27
|
require('../../chunk-U63GDNRC.cjs');
|
|
@@ -54,7 +54,7 @@ async function createLocalSqliteStore(graph, options = {}) {
|
|
|
54
54
|
...tables === void 0 ? {} : { tables }
|
|
55
55
|
});
|
|
56
56
|
try {
|
|
57
|
-
const [store] = await
|
|
57
|
+
const [store] = await chunkPNTCATDE_cjs.createStoreWithSchema(graph, backend, {
|
|
58
58
|
...options.store,
|
|
59
59
|
// The type already excludes `schema` here; the runtime strip guards
|
|
60
60
|
// untyped callers, so the provisioned schema (or the default tables)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { B as BackendCapabilities, d as GraphDef } from '../../types-HkveCCx0.cjs';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.cjs';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-HGk6E_HW.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-B0h6x7wo.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-B0h6x7wo.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 { B as BackendCapabilities, d as GraphDef } from '../../types-HkveCCx0.js';
|
|
2
2
|
export { C as ContributionDiagnostic, a as ContributionDiagnosticState, b as ContributionRepairEntry, c as ContributionRepairResult, G as GraphIdentityConfig } from '../../types-HkveCCx0.js';
|
|
3
3
|
import { S as SchemaManagerOptions } from '../../manager-CfZAimti.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-ClQ-MZQS.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-ClQ-MZQS.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';
|
|
@@ -2,25 +2,25 @@ import { createLocalSqliteBackend } from '../../chunk-HFHTMECK.js';
|
|
|
2
2
|
export { DEFAULT_LOCAL_SQLITE_PRAGMAS } from '../../chunk-HFHTMECK.js';
|
|
3
3
|
import '../../chunk-C23WSN5E.js';
|
|
4
4
|
import '../../chunk-7VQXLT5O.js';
|
|
5
|
-
import { createStoreWithSchema } from '../../chunk-
|
|
5
|
+
import { createStoreWithSchema } from '../../chunk-S6PW7VV5.js';
|
|
6
6
|
import '../../chunk-BKCUOV7A.js';
|
|
7
7
|
import '../../chunk-YWGVVALJ.js';
|
|
8
8
|
import '../../chunk-NMWDXFPH.js';
|
|
9
9
|
import { createSqliteTables } from '../../chunk-5UVRGXD3.js';
|
|
10
10
|
import '../../chunk-UV3SN74I.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
13
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-L65OU2U3.js';
|
|
12
|
+
import '../../chunk-M3WP7RQZ.js';
|
|
13
|
+
import '../../chunk-LGHCOKTT.js';
|
|
14
14
|
import '../../chunk-JXA2ZP2Q.js';
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-GF3KXUTW.js';
|
|
16
|
+
import '../../chunk-NLI2AVEF.js';
|
|
17
17
|
import '../../chunk-JBQQ7THH.js';
|
|
18
18
|
import '../../chunk-JZUR7ZWE.js';
|
|
19
19
|
import '../../chunk-MSY7FSX4.js';
|
|
20
20
|
import { closeAfterFailure } from '../../chunk-AKLS3BYZ.js';
|
|
21
21
|
import '../../chunk-775A4ZMN.js';
|
|
22
22
|
import '../../chunk-WDGA7IYB.js';
|
|
23
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-XL7SLCXS.js';
|
|
24
24
|
import '../../chunk-DCQVHAYQ.js';
|
|
25
25
|
import '../../chunk-CBTIUB76.js';
|
|
26
26
|
import '../../chunk-I5MOXA4H.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildValidatedKindRegistry } from './chunk-
|
|
1
|
+
import { buildValidatedKindRegistry } from './chunk-LGHCOKTT.js';
|
|
2
2
|
import { hasOwnKey } from './chunk-DYATYRY4.js';
|
|
3
3
|
|
|
4
4
|
// src/schema/deserializer.ts
|
|
@@ -54,5 +54,5 @@ function buildEdgeEndpointKinds(edges) {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export { deserializeSchema };
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
58
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-2Z2Z3ZD6.js.map
|
|
58
|
+
//# sourceMappingURL=chunk-2Z2Z3ZD6.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/deserializer.ts"],"names":[],"mappings":";;;;AAqFO,SAAS,kBACd,MAAA,EACoB;AACpB,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,KAAK,CAAA;AAC1C,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,KAAK,CAAA;AAC1C,EAAA,MAAM,aAAA,GAAgB,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,SAAS,SAAS,CAAA;AAE3D,EAAA,OAAO;AAAA,IACL,SAAS,MAAA,CAAO,OAAA;AAAA,IAChB,SAAS,MAAA,CAAO,OAAA;AAAA,IAChB,aAAa,MAAA,CAAO,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMpB,OAAA,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EAAU,MAAA,CAAO,QAAA;AAAS,GACtE,CAAA;AACH;AASA,SAAS,uBACP,KAAA,EACwC;AACxC,EAAA,MAAM,MAAA,uBAAa,GAAA,EAA+B;AAClD,EAAA,KAAA,MAAW,CAAC,IAAA,EAAM,GAAG,KAAK,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAA,EAAG;AAC/C,IAAA,MAAA,CAAO,GAAA,CAAI,MAAM,EAAE,IAAA,EAAM,IAAI,SAAA,EAAW,EAAA,EAAI,GAAA,CAAI,OAAA,EAAS,CAAA;AAAA,EAC3D;AACA,EAAA,OAAO,MAAA;AACT","file":"chunk-2Z2Z3ZD6.js","sourcesContent":["/**\n * Schema deserializer for loading stored schemas.\n *\n * Reconstructs runtime objects from SerializedSchema.\n * Note: Zod schemas cannot be fully reconstructed from JSON Schema,\n * so this provides access to the serialized data for introspection.\n */\nimport { type AnyEdgeType, type NodeType } from \"../core/types\";\nimport { type NamedOntologyRelation } from \"../ontology/validation\";\nimport { buildValidatedKindRegistry } from \"../registry/build-validated\";\nimport type { KindRegistry } from \"../registry/kind-registry\";\nimport { type EdgeEndpointKinds } from \"../registry/validate-implies\";\nimport { hasOwnKey } from \"../utils/object\";\nimport {\n type SerializedClosures,\n type SerializedEdgeDef,\n type SerializedMetaEdge,\n type SerializedNodeDef,\n type SerializedOntologyRelation,\n type SerializedSchema,\n} from \"./types\";\n\n// ============================================================\n// Deserialized Schema\n// ============================================================\n\n/**\n * A deserialized schema provides read-only access to schema metadata.\n *\n * Note: Unlike the original GraphDef, this does not include Zod schemas\n * since those cannot be reconstructed from JSON Schema. Use this for\n * introspection and metadata access only.\n */\nexport type DeserializedSchema = Readonly<{\n graphId: string;\n version: number;\n generatedAt: string;\n\n /** Get node definition by name */\n getNode: (name: string) => SerializedNodeDef | undefined;\n\n /** Get all node names */\n getNodeNames: () => readonly string[];\n\n /** Get edge definition by name */\n getEdge: (name: string) => SerializedEdgeDef | undefined;\n\n /** Get all edge names */\n getEdgeNames: () => readonly string[];\n\n /** Get meta-edge definition by name */\n getMetaEdge: (name: string) => SerializedMetaEdge | undefined;\n\n /** Get all meta-edge names */\n getMetaEdgeNames: () => readonly string[];\n\n /** Get all ontology relations */\n getRelations: () => readonly SerializedOntologyRelation[];\n\n /** Get precomputed closures */\n getClosures: () => SerializedClosures;\n\n /** Get graph defaults */\n getDefaults: () => SerializedSchema[\"defaults\"];\n\n /** Get the durable TypeGraph Identity Profile configuration. */\n getIdentity: () => SerializedSchema[\"identity\"];\n\n /** Get the raw serialized schema */\n getRaw: () => SerializedSchema;\n\n /** Build a validated KindRegistry by recomputing closures from relations */\n buildRegistry: () => KindRegistry;\n}>;\n\n// ============================================================\n// Deserialization\n// ============================================================\n\n/**\n * Deserializes a SerializedSchema into a DeserializedSchema.\n *\n * @param schema - The serialized schema to deserialize\n * @returns A deserialized schema with accessor methods\n */\nexport function deserializeSchema(\n schema: SerializedSchema,\n): DeserializedSchema {\n const nodeNames = Object.keys(schema.nodes);\n const edgeNames = Object.keys(schema.edges);\n const metaEdgeNames = Object.keys(schema.ontology.metaEdges);\n\n return {\n graphId: schema.graphId,\n version: schema.version,\n generatedAt: schema.generatedAt,\n\n // Own-key reads, for the same reason {@link buildEdgeEndpointKinds} below\n // uses a `Map`: `schema` is parsed out of a stored JSON document and the\n // caller supplies the name, so a raw read hands back an `Object.prototype`\n // member typed as a definition for any name no kind is registered under.\n getNode: (name) =>\n hasOwnKey(schema.nodes, name) ? schema.nodes[name] : undefined,\n getNodeNames: () => nodeNames,\n\n getEdge: (name) =>\n hasOwnKey(schema.edges, name) ? schema.edges[name] : undefined,\n getEdgeNames: () => edgeNames,\n\n getMetaEdge: (name) =>\n hasOwnKey(schema.ontology.metaEdges, name) ?\n schema.ontology.metaEdges[name]\n : undefined,\n getMetaEdgeNames: () => metaEdgeNames,\n\n getRelations: () => schema.ontology.relations,\n getClosures: () => schema.ontology.closures,\n\n getDefaults: () => schema.defaults,\n getIdentity: () => schema.identity,\n getRaw: () => schema,\n\n buildRegistry: () => buildRegistryFromRelations(schema),\n };\n}\n\n// ============================================================\n// Registry Building\n// ============================================================\n\n/**\n * Builds a KindRegistry from serialized relations.\n *\n * Persisted closures are a legacy inspection artifact. Relations are validated\n * and closures are recomputed so old schemas gain current hardening rules.\n */\nfunction buildRegistryFromRelations(schema: SerializedSchema): KindRegistry {\n // Build empty node/edge kind maps (we don't have the actual Zod schemas)\n const nodeKinds = new Map<string, NodeType>();\n const edgeKinds = new Map<string, AnyEdgeType>();\n return buildValidatedKindRegistry({\n nodeKinds,\n edgeKinds,\n ontology: schema.ontology.relations.map(\n (relation): NamedOntologyRelation => ({\n metaEdge: relation.metaEdge,\n from: relation.from,\n to: relation.to,\n }),\n ),\n edgeEndpoints: buildEdgeEndpointKinds(schema.edges),\n ...(schema.identity === undefined ? {} : { identity: schema.identity }),\n });\n}\n\n/**\n * Maps each edge kind's serialized definition to its domain/range kind\n * names, for `validateImpliesEndpointCompatibility`. A `Map` (rather than\n * the plain `schema.edges` object) so a lookup for an edge kind literally\n * named \"toString\" or another `Object.prototype` member can't resolve to\n * an inherited member instead of `undefined`.\n */\nfunction buildEdgeEndpointKinds(\n edges: Record<string, SerializedEdgeDef>,\n): ReadonlyMap<string, EdgeEndpointKinds> {\n const result = new Map<string, EdgeEndpointKinds>();\n for (const [kind, def] of Object.entries(edges)) {\n result.set(kind, { from: def.fromKinds, to: def.toKinds });\n }\n return result;\n}\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkNK5Q7UNE_cjs = require('./chunk-NK5Q7UNE.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkDTVWX77L_cjs = require('./chunk-DTVWX77L.cjs');
|
|
5
|
+
var chunkPF6F5NLJ_cjs = require('./chunk-PF6F5NLJ.cjs');
|
|
6
6
|
var chunkPWLJ77UV_cjs = require('./chunk-PWLJ77UV.cjs');
|
|
7
7
|
var chunkBSFJMMV3_cjs = require('./chunk-BSFJMMV3.cjs');
|
|
8
8
|
var chunkNFCVHQ5P_cjs = require('./chunk-NFCVHQ5P.cjs');
|
|
9
9
|
var chunkCXBHOOIQ_cjs = require('./chunk-CXBHOOIQ.cjs');
|
|
10
10
|
var chunkE4WNQBEF_cjs = require('./chunk-E4WNQBEF.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkMCLYU6BN_cjs = require('./chunk-MCLYU6BN.cjs');
|
|
12
12
|
var chunkU63GDNRC_cjs = require('./chunk-U63GDNRC.cjs');
|
|
13
13
|
var chunkZY4GXIVN_cjs = require('./chunk-ZY4GXIVN.cjs');
|
|
14
14
|
var chunkVCRRKBLN_cjs = require('./chunk-VCRRKBLN.cjs');
|
|
@@ -350,7 +350,7 @@ function canonicalKey(value) {
|
|
|
350
350
|
}
|
|
351
351
|
function sortedByCanonicalForm(items) {
|
|
352
352
|
return items.toSorted(
|
|
353
|
-
(left, right) =>
|
|
353
|
+
(left, right) => chunkPF6F5NLJ_cjs.compareStrings(canonicalKey(left), canonicalKey(right))
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
356
|
function orderNormalizedSchema(value) {
|
|
@@ -932,7 +932,7 @@ function serializeSchema(graph, version) {
|
|
|
932
932
|
return {
|
|
933
933
|
graphId: graph.id,
|
|
934
934
|
version,
|
|
935
|
-
generatedAt:
|
|
935
|
+
generatedAt: chunkMCLYU6BN_cjs.nowIso(),
|
|
936
936
|
nodes,
|
|
937
937
|
edges,
|
|
938
938
|
ontology,
|
|
@@ -2012,7 +2012,7 @@ async function ensureIdentitySchemaStorage(backend, schema, options) {
|
|
|
2012
2012
|
const separationMissing = missingTables.includes(
|
|
2013
2013
|
IDENTITY_SEPARATION_RELATION
|
|
2014
2014
|
);
|
|
2015
|
-
const rebuildRequired = await
|
|
2015
|
+
const rebuildRequired = await chunkDTVWX77L_cjs.separationRebuildRequired(
|
|
2016
2016
|
backend,
|
|
2017
2017
|
schema,
|
|
2018
2018
|
options.graphId,
|
|
@@ -2141,7 +2141,7 @@ async function identityKindCascadeNeeded(backend, schema, graphId, droppedNodeKi
|
|
|
2141
2141
|
provisionMissing: false
|
|
2142
2142
|
});
|
|
2143
2143
|
if (missingTables.length > 0) return false;
|
|
2144
|
-
return
|
|
2144
|
+
return chunkDTVWX77L_cjs.hasAssertionsTouchingKinds(backend, schema, graphId, droppedNodeKinds);
|
|
2145
2145
|
}
|
|
2146
2146
|
function assertIdentityStoragePresent(graphId, missingTables) {
|
|
2147
2147
|
if (missingTables.length === 0) return;
|
|
@@ -2164,13 +2164,13 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2164
2164
|
ctx.graphId,
|
|
2165
2165
|
options.provisionDerivedRelations ?? []
|
|
2166
2166
|
);
|
|
2167
|
-
await
|
|
2168
|
-
await
|
|
2167
|
+
await chunkPF6F5NLJ_cjs.lockRecordedGraphWrite(target, ctx.graphId);
|
|
2168
|
+
await chunkDTVWX77L_cjs.lockIdentityGraph(target, ctx.graphId);
|
|
2169
2169
|
if (options.enablement) {
|
|
2170
|
-
await
|
|
2171
|
-
await
|
|
2170
|
+
await chunkDTVWX77L_cjs.lockIdentityEnablementNodes(target, ctx.schema);
|
|
2171
|
+
await chunkPF6F5NLJ_cjs.withRecordedIdentityMutationTarget(
|
|
2172
2172
|
target,
|
|
2173
|
-
(rawTarget, touch) =>
|
|
2173
|
+
(rawTarget, touch) => chunkDTVWX77L_cjs.purgeAssertionsWithUnregisteredKinds(
|
|
2174
2174
|
rawTarget,
|
|
2175
2175
|
ctx.schema,
|
|
2176
2176
|
ctx.graphId,
|
|
@@ -2181,9 +2181,9 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2181
2181
|
}
|
|
2182
2182
|
const droppedNodeKinds = options.droppedNodeKinds ?? [];
|
|
2183
2183
|
if (droppedNodeKinds.length > 0) {
|
|
2184
|
-
await
|
|
2184
|
+
await chunkPF6F5NLJ_cjs.withRecordedIdentityMutationTarget(
|
|
2185
2185
|
target,
|
|
2186
|
-
(rawTarget, touch) =>
|
|
2186
|
+
(rawTarget, touch) => chunkDTVWX77L_cjs.deleteAssertionsTouchingKinds(
|
|
2187
2187
|
rawTarget,
|
|
2188
2188
|
ctx.schema,
|
|
2189
2189
|
ctx.graphId,
|
|
@@ -2192,7 +2192,7 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2192
2192
|
)
|
|
2193
2193
|
);
|
|
2194
2194
|
}
|
|
2195
|
-
await
|
|
2195
|
+
await chunkDTVWX77L_cjs.rebuildIdentityClosureForContext({ ...ctx, backend: target });
|
|
2196
2196
|
};
|
|
2197
2197
|
}
|
|
2198
2198
|
async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
|
|
@@ -2206,11 +2206,11 @@ async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
|
|
|
2206
2206
|
}
|
|
2207
2207
|
function identityKindCascadePreflight(ctx, droppedNodeKinds) {
|
|
2208
2208
|
return async (target) => {
|
|
2209
|
-
await
|
|
2210
|
-
await
|
|
2211
|
-
await
|
|
2209
|
+
await chunkPF6F5NLJ_cjs.lockRecordedGraphWrite(target, ctx.graphId);
|
|
2210
|
+
await chunkDTVWX77L_cjs.lockIdentityGraph(target, ctx.graphId);
|
|
2211
|
+
await chunkPF6F5NLJ_cjs.withRecordedIdentityMutationTarget(
|
|
2212
2212
|
target,
|
|
2213
|
-
(rawTarget, touch) =>
|
|
2213
|
+
(rawTarget, touch) => chunkDTVWX77L_cjs.deleteAssertionsTouchingKinds(
|
|
2214
2214
|
rawTarget,
|
|
2215
2215
|
ctx.schema,
|
|
2216
2216
|
ctx.graphId,
|
|
@@ -3298,5 +3298,5 @@ exports.serializeSchema = serializeSchema;
|
|
|
3298
3298
|
exports.serializeSchemaProperties = serializeSchemaProperties;
|
|
3299
3299
|
exports.stripGraphExtension = stripGraphExtension;
|
|
3300
3300
|
exports.subClassOf = subClassOf;
|
|
3301
|
-
//# sourceMappingURL=chunk-
|
|
3302
|
-
//# sourceMappingURL=chunk-
|
|
3301
|
+
//# sourceMappingURL=chunk-65E3XWGF.cjs.map
|
|
3302
|
+
//# sourceMappingURL=chunk-65E3XWGF.cjs.map
|