@nicia-ai/typegraph 0.27.0 → 0.28.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/postgres/index.cjs +100 -58
- package/dist/backend/postgres/index.cjs.map +1 -1
- package/dist/backend/postgres/index.d.cts +4 -4
- package/dist/backend/postgres/index.d.ts +4 -4
- package/dist/backend/postgres/index.js +48 -6
- package/dist/backend/postgres/index.js.map +1 -1
- package/dist/backend/sqlite/index.cjs +14 -14
- package/dist/backend/sqlite/index.d.cts +5 -5
- package/dist/backend/sqlite/index.d.ts +5 -5
- package/dist/backend/sqlite/index.js +4 -4
- package/dist/backend/sqlite/libsql.cjs +7 -7
- package/dist/backend/sqlite/libsql.d.cts +2 -2
- package/dist/backend/sqlite/libsql.d.ts +2 -2
- package/dist/backend/sqlite/libsql.js +4 -4
- package/dist/backend/sqlite/local.cjs +8 -8
- package/dist/backend/sqlite/local.d.cts +2 -2
- package/dist/backend/sqlite/local.d.ts +2 -2
- package/dist/backend/sqlite/local.js +4 -4
- package/dist/{chunk-X53YKGHR.js → chunk-5MTOKWDA.js} +3 -3
- package/dist/{chunk-X53YKGHR.js.map → chunk-5MTOKWDA.js.map} +1 -1
- package/dist/chunk-FFHW2JEK.cjs +55 -0
- package/dist/chunk-FFHW2JEK.cjs.map +1 -0
- package/dist/{chunk-DN4RUDF3.cjs → chunk-LYRUNG6E.cjs} +2 -2
- package/dist/chunk-LYRUNG6E.cjs.map +1 -0
- package/dist/{chunk-RVT2N4RF.cjs → chunk-NMOE2ZEU.cjs} +46 -46
- package/dist/{chunk-RVT2N4RF.cjs.map → chunk-NMOE2ZEU.cjs.map} +1 -1
- package/dist/{chunk-TVUARC7S.cjs → chunk-NYQFPGYP.cjs} +52 -24
- package/dist/chunk-NYQFPGYP.cjs.map +1 -0
- package/dist/chunk-O57GYGYK.js +51 -0
- package/dist/chunk-O57GYGYK.js.map +1 -0
- package/dist/{chunk-ENXJLDRK.js → chunk-PCHTTG42.js} +2 -2
- package/dist/chunk-PCHTTG42.js.map +1 -0
- package/dist/{chunk-DDVA4QBA.js → chunk-PGU2XKMA.js} +4 -4
- package/dist/{chunk-DDVA4QBA.js.map → chunk-PGU2XKMA.js.map} +1 -1
- package/dist/{chunk-RF5EUQWS.js → chunk-TKM2WDT4.js} +51 -23
- package/dist/chunk-TKM2WDT4.js.map +1 -0
- package/dist/{chunk-ZGEMI7MJ.cjs → chunk-WZH2MKHW.cjs} +15 -15
- package/dist/{chunk-ZGEMI7MJ.cjs.map → chunk-WZH2MKHW.cjs.map} +1 -1
- package/dist/{ddl-9kw8UADK.d.ts → ddl-0Ooc2dpL.d.ts} +2 -2
- package/dist/{ddl-Cw82BPM4.d.cts → ddl-Dza3kDrI.d.cts} +2 -2
- package/dist/index.cjs +81 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +18 -6
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/interchange/index.d.cts +3 -3
- package/dist/interchange/index.d.ts +3 -3
- package/dist/{manager-CWa9cgwb.d.cts → manager-c1MGaVVR.d.cts} +1 -1
- package/dist/{manager-Cfcb2sJL.d.ts → manager-ehLTTNq0.d.ts} +1 -1
- package/dist/profiler/index.d.cts +5 -5
- package/dist/profiler/index.d.ts +5 -5
- package/dist/schema/index.cjs +26 -26
- package/dist/schema/index.d.cts +4 -4
- package/dist/schema/index.d.ts +4 -4
- package/dist/schema/index.js +3 -3
- package/dist/{sqlite-GKvcDPVn.d.ts → sqlite-BxZUPbyD.d.ts} +1 -1
- package/dist/{sqlite-BvSEbybu.d.cts → sqlite-mvpXjEeB.d.cts} +1 -1
- package/dist/{store-Ojf0NOKk.d.cts → store-D7YEMg2v.d.cts} +26 -2
- package/dist/{store-C57kdvAa.d.ts → store-Ufc1Eoey.d.ts} +26 -2
- package/dist/{types-Cars4JZ1.d.ts → types-B-sJJ4GQ.d.ts} +1 -1
- package/dist/{types-DZPBXZOK.d.cts → types-CMQymcwk.d.cts} +11 -0
- package/dist/{types-Dzkr0Eqi.d.ts → types-CQ7xXJMP.d.ts} +11 -0
- package/dist/{types-CF7nDH3q.d.cts → types-CmUA9sal.d.cts} +1 -1
- package/dist/{where-BmtjfWuS.d.cts → where-5zf15aFZ.d.cts} +1 -1
- package/dist/{where-kk1Zz2En.d.ts → where-CtrLu1Zf.d.ts} +1 -1
- package/package.json +8 -8
- package/dist/chunk-5H3BAMTB.js +0 -32
- package/dist/chunk-5H3BAMTB.js.map +0 -1
- package/dist/chunk-DN4RUDF3.cjs.map +0 -1
- package/dist/chunk-ENXJLDRK.js.map +0 -1
- package/dist/chunk-IUIWCFG3.cjs +0 -36
- package/dist/chunk-IUIWCFG3.cjs.map +0 -1
- package/dist/chunk-RF5EUQWS.js.map +0 -1
- package/dist/chunk-TVUARC7S.cjs.map +0 -1
package/dist/indexes/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as EdgeIndexDeclaration, p as SqlDialect, R as RelationalIndexDeclaration, d as NodeIndexDeclaration, I as IndexDeclaration } from '../types-
|
|
2
|
-
export { E as EdgeIndexConfig, q as EdgeIndexDirection, r as EdgeIndexWhereBuilder, s as IndexOrigin, t as IndexScope, e as IndexWhereExpression, u as IndexWhereFieldBuilder, v as IndexWhereInput, N as NodeIndexConfig, w as NodeIndexWhereBuilder, x as SystemColumnName, V as VectorIndexDeclaration, y as VectorIndexImplementation, z as VectorIndexMetric, C as VectorIndexParams } from '../types-
|
|
3
|
-
export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-
|
|
1
|
+
import { c as EdgeIndexDeclaration, p as SqlDialect, R as RelationalIndexDeclaration, d as NodeIndexDeclaration, I as IndexDeclaration } from '../types-CMQymcwk.cjs';
|
|
2
|
+
export { E as EdgeIndexConfig, q as EdgeIndexDirection, r as EdgeIndexWhereBuilder, s as IndexOrigin, t as IndexScope, e as IndexWhereExpression, u as IndexWhereFieldBuilder, v as IndexWhereInput, N as NodeIndexConfig, w as NodeIndexWhereBuilder, x as SystemColumnName, V as VectorIndexDeclaration, y as VectorIndexImplementation, z as VectorIndexMetric, C as VectorIndexParams } from '../types-CMQymcwk.cjs';
|
|
3
|
+
export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-5zf15aFZ.cjs';
|
|
4
4
|
import { SQLWrapper } from 'drizzle-orm';
|
|
5
5
|
import { IndexBuilder } from 'drizzle-orm/pg-core';
|
|
6
6
|
import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
|
|
7
|
-
import { D as DeclaredIndex } from '../types-
|
|
7
|
+
import { D as DeclaredIndex } from '../types-CmUA9sal.cjs';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '../extension-types-B78CZfA5.cjs';
|
|
10
10
|
|
package/dist/indexes/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as EdgeIndexDeclaration, p as SqlDialect, R as RelationalIndexDeclaration, d as NodeIndexDeclaration, I as IndexDeclaration } from '../types-
|
|
2
|
-
export { E as EdgeIndexConfig, q as EdgeIndexDirection, r as EdgeIndexWhereBuilder, s as IndexOrigin, t as IndexScope, e as IndexWhereExpression, u as IndexWhereFieldBuilder, v as IndexWhereInput, N as NodeIndexConfig, w as NodeIndexWhereBuilder, x as SystemColumnName, V as VectorIndexDeclaration, y as VectorIndexImplementation, z as VectorIndexMetric, C as VectorIndexParams } from '../types-
|
|
3
|
-
export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-
|
|
1
|
+
import { c as EdgeIndexDeclaration, p as SqlDialect, R as RelationalIndexDeclaration, d as NodeIndexDeclaration, I as IndexDeclaration } from '../types-CQ7xXJMP.js';
|
|
2
|
+
export { E as EdgeIndexConfig, q as EdgeIndexDirection, r as EdgeIndexWhereBuilder, s as IndexOrigin, t as IndexScope, e as IndexWhereExpression, u as IndexWhereFieldBuilder, v as IndexWhereInput, N as NodeIndexConfig, w as NodeIndexWhereBuilder, x as SystemColumnName, V as VectorIndexDeclaration, y as VectorIndexImplementation, z as VectorIndexMetric, C as VectorIndexParams } from '../types-CQ7xXJMP.js';
|
|
3
|
+
export { a as andWhere, d as defineEdgeIndex, b as defineNodeIndex, n as notWhere, o as orWhere } from '../where-CtrLu1Zf.js';
|
|
4
4
|
import { SQLWrapper } from 'drizzle-orm';
|
|
5
5
|
import { IndexBuilder } from 'drizzle-orm/pg-core';
|
|
6
6
|
import { IndexBuilder as IndexBuilder$1 } from 'drizzle-orm/sqlite-core';
|
|
7
|
-
import { D as DeclaredIndex } from '../types-
|
|
7
|
+
import { D as DeclaredIndex } from '../types-B-sJJ4GQ.js';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '../extension-types-B78CZfA5.js';
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../manager-
|
|
3
|
-
import { S as Store } from '../store-
|
|
2
|
+
import { G as GraphDef } from '../manager-c1MGaVVR.cjs';
|
|
3
|
+
import { S as Store } from '../store-D7YEMg2v.cjs';
|
|
4
4
|
import '../extension-types-B78CZfA5.cjs';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-CMQymcwk.cjs';
|
|
6
6
|
import 'drizzle-orm';
|
|
7
7
|
import 'drizzle-orm/pg-core';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { G as GraphDef } from '../manager-
|
|
3
|
-
import { S as Store } from '../store-
|
|
2
|
+
import { G as GraphDef } from '../manager-ehLTTNq0.js';
|
|
3
|
+
import { S as Store } from '../store-Ufc1Eoey.js';
|
|
4
4
|
import '../extension-types-B78CZfA5.js';
|
|
5
|
-
import '../types-
|
|
5
|
+
import '../types-CQ7xXJMP.js';
|
|
6
6
|
import 'drizzle-orm';
|
|
7
7
|
import 'drizzle-orm/pg-core';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-B78CZfA5.cjs';
|
|
2
|
-
import { O as OntologyRelation, I as IndexDeclaration, f as SerializedNodeDef, g as SerializedEdgeDef, k as SerializedSchema, D as SchemaVersionRow, G as GraphBackend } from './types-
|
|
2
|
+
import { O as OntologyRelation, I as IndexDeclaration, f as SerializedNodeDef, g as SerializedEdgeDef, k as SerializedSchema, D as SchemaVersionRow, G as GraphBackend } from './types-CMQymcwk.cjs';
|
|
3
3
|
|
|
4
4
|
/** Brand key for GraphDef */
|
|
5
5
|
declare const GRAPH_DEF_BRAND: "__graphDef";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as NodeRegistration, E as EdgeRegistration, D as DeleteBehavior, T as TemporalMode, G as GraphExtension, N as NodeType, A as AnyEdgeType, c as GraphDefaults, I as IndexEntity } from './extension-types-B78CZfA5.js';
|
|
2
|
-
import { O as OntologyRelation, I as IndexDeclaration, f as SerializedNodeDef, g as SerializedEdgeDef, k as SerializedSchema, D as SchemaVersionRow, G as GraphBackend } from './types-
|
|
2
|
+
import { O as OntologyRelation, I as IndexDeclaration, f as SerializedNodeDef, g as SerializedEdgeDef, k as SerializedSchema, D as SchemaVersionRow, G as GraphBackend } from './types-CQ7xXJMP.js';
|
|
3
3
|
|
|
4
4
|
/** Brand key for GraphDef */
|
|
5
5
|
declare const GRAPH_DEF_BRAND: "__graphDef";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GraphDef } from '../manager-
|
|
2
|
-
import { Q as QueryAst } from '../types-
|
|
3
|
-
import { S as Store } from '../store-
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
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-
|
|
1
|
+
import { G as GraphDef } from '../manager-c1MGaVVR.cjs';
|
|
2
|
+
import { Q as QueryAst } from '../types-CMQymcwk.cjs';
|
|
3
|
+
import { S as Store } from '../store-D7YEMg2v.cjs';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-CmUA9sal.cjs';
|
|
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-CmUA9sal.cjs';
|
|
6
6
|
import '../extension-types-B78CZfA5.cjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'drizzle-orm';
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as GraphDef } from '../manager-
|
|
2
|
-
import { Q as QueryAst } from '../types-
|
|
3
|
-
import { S as Store } from '../store-
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
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-
|
|
1
|
+
import { G as GraphDef } from '../manager-ehLTTNq0.js';
|
|
2
|
+
import { Q as QueryAst } from '../types-CQ7xXJMP.js';
|
|
3
|
+
import { S as Store } from '../store-Ufc1Eoey.js';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-B-sJJ4GQ.js';
|
|
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-B-sJJ4GQ.js';
|
|
6
6
|
import '../extension-types-B78CZfA5.js';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import 'drizzle-orm';
|
package/dist/schema/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWZH2MKHW_cjs = require('../chunk-WZH2MKHW.cjs');
|
|
4
4
|
require('../chunk-WFUN6DCM.cjs');
|
|
5
5
|
require('../chunk-PYJOBZR3.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-FFHW2JEK.cjs');
|
|
7
7
|
require('../chunk-CTHNVU6K.cjs');
|
|
8
8
|
require('../chunk-EK6RJ373.cjs');
|
|
9
9
|
require('../chunk-X3244EKP.cjs');
|
|
@@ -48,7 +48,7 @@ function buildRegistryFromClosures(schema) {
|
|
|
48
48
|
const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
|
|
49
49
|
const nodeKinds = /* @__PURE__ */ new Map();
|
|
50
50
|
const edgeKinds = /* @__PURE__ */ new Map();
|
|
51
|
-
return new
|
|
51
|
+
return new chunkWZH2MKHW_cjs.KindRegistry(nodeKinds, edgeKinds, {
|
|
52
52
|
subClassAncestors,
|
|
53
53
|
subClassDescendants,
|
|
54
54
|
broaderClosure,
|
|
@@ -76,95 +76,95 @@ function simpleRecordToMap(record) {
|
|
|
76
76
|
|
|
77
77
|
Object.defineProperty(exports, "applyDeprecatedKinds", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkWZH2MKHW_cjs.applyDeprecatedKinds; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "assertSchemaCurrent", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkWZH2MKHW_cjs.assertSchemaCurrent; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "computeSchemaDiff", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkWZH2MKHW_cjs.computeSchemaDiff; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "computeSchemaHash", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkWZH2MKHW_cjs.computeSchemaHash; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "createValidationError", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkWZH2MKHW_cjs.createValidationError; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "deserializeWherePredicate", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkWZH2MKHW_cjs.deserializeWherePredicate; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "ensureSchema", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkWZH2MKHW_cjs.ensureSchema; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "getActiveSchema", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkWZH2MKHW_cjs.getActiveSchema; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "getMigrationActions", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkWZH2MKHW_cjs.getMigrationActions; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "getSchemaChanges", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkWZH2MKHW_cjs.getSchemaChanges; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "initializeSchema", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkWZH2MKHW_cjs.initializeSchema; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "isBackwardsCompatible", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkWZH2MKHW_cjs.isBackwardsCompatible; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "isSchemaInitialized", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkWZH2MKHW_cjs.isSchemaInitialized; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "loadActiveSchemaWithBootstrap", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkWZH2MKHW_cjs.loadActiveSchemaWithBootstrap; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "loadAndMergeGraphExtensionDocument", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkWZH2MKHW_cjs.loadAndMergeGraphExtensionDocument; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "migrateSchema", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkWZH2MKHW_cjs.migrateSchema; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "parseSerializedSchema", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkWZH2MKHW_cjs.parseSerializedSchema; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "rollbackSchema", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkWZH2MKHW_cjs.rollbackSchema; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "serializeSchema", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkWZH2MKHW_cjs.serializeSchema; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "validateEdgeProps", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkWZH2MKHW_cjs.validateEdgeProps; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "validateNodeProps", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkWZH2MKHW_cjs.validateNodeProps; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "validateProps", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkWZH2MKHW_cjs.validateProps; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "wrapZodError", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkWZH2MKHW_cjs.wrapZodError; }
|
|
168
168
|
});
|
|
169
169
|
exports.deserializeSchema = deserializeSchema;
|
|
170
170
|
//# sourceMappingURL=index.cjs.map
|
package/dist/schema/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as KindRegistry, G as GraphDef } from '../manager-
|
|
2
|
-
export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as assertSchemaCurrent, g as computeSchemaDiff, h as ensureSchema, i as getActiveSchema, j as getMigrationActions, k as getSchemaChanges, l as initializeSchema, m as isBackwardsCompatible, n as isSchemaInitialized, o as loadActiveSchemaWithBootstrap, p as loadAndMergeGraphExtensionDocument, q as migrateSchema, r as parseSerializedSchema, s as rollbackSchema } from '../manager-
|
|
3
|
-
import { f as SerializedNodeDef, g as SerializedEdgeDef, h as SerializedMetaEdge, i as SerializedOntologyRelation, j as SerializedClosures, k as SerializedSchema, l as SchemaHash } from '../types-
|
|
4
|
-
export { m as JsonSchema, n as SerializedOntology, o as SerializedUniqueConstraint } from '../types-
|
|
1
|
+
import { K as KindRegistry, G as GraphDef } from '../manager-c1MGaVVR.cjs';
|
|
2
|
+
export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as assertSchemaCurrent, g as computeSchemaDiff, h as ensureSchema, i as getActiveSchema, j as getMigrationActions, k as getSchemaChanges, l as initializeSchema, m as isBackwardsCompatible, n as isSchemaInitialized, o as loadActiveSchemaWithBootstrap, p as loadAndMergeGraphExtensionDocument, q as migrateSchema, r as parseSerializedSchema, s as rollbackSchema } from '../manager-c1MGaVVR.cjs';
|
|
3
|
+
import { f as SerializedNodeDef, g as SerializedEdgeDef, h as SerializedMetaEdge, i as SerializedOntologyRelation, j as SerializedClosures, k as SerializedSchema, l as SchemaHash } from '../types-CMQymcwk.cjs';
|
|
4
|
+
export { m as JsonSchema, n as SerializedOntology, o as SerializedUniqueConstraint } from '../types-CMQymcwk.cjs';
|
|
5
5
|
import { a as NullCheckOp, K as KindEntity } from '../extension-types-B78CZfA5.cjs';
|
|
6
6
|
import { ZodType, ZodError } from 'zod';
|
|
7
7
|
import { V as ValidationIssue, a as ValidationError } from '../index-Bilw0pYm.cjs';
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as KindRegistry, G as GraphDef } from '../manager-
|
|
2
|
-
export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as assertSchemaCurrent, g as computeSchemaDiff, h as ensureSchema, i as getActiveSchema, j as getMigrationActions, k as getSchemaChanges, l as initializeSchema, m as isBackwardsCompatible, n as isSchemaInitialized, o as loadActiveSchemaWithBootstrap, p as loadAndMergeGraphExtensionDocument, q as migrateSchema, r as parseSerializedSchema, s as rollbackSchema } from '../manager-
|
|
3
|
-
import { f as SerializedNodeDef, g as SerializedEdgeDef, h as SerializedMetaEdge, i as SerializedOntologyRelation, j as SerializedClosures, k as SerializedSchema, l as SchemaHash } from '../types-
|
|
4
|
-
export { m as JsonSchema, n as SerializedOntology, o as SerializedUniqueConstraint } from '../types-
|
|
1
|
+
import { K as KindRegistry, G as GraphDef } from '../manager-ehLTTNq0.js';
|
|
2
|
+
export { C as ChangeSeverity, a as ChangeType, D as DeprecatedKindsChange, E as EdgeChange, b as ExtensionChange, I as IndexChange, M as MigrationHookContext, N as NodeChange, O as OntologyChange, S as SchemaDiff, c as SchemaManagerOptions, d as SchemaValidationResult, e as applyDeprecatedKinds, f as assertSchemaCurrent, g as computeSchemaDiff, h as ensureSchema, i as getActiveSchema, j as getMigrationActions, k as getSchemaChanges, l as initializeSchema, m as isBackwardsCompatible, n as isSchemaInitialized, o as loadActiveSchemaWithBootstrap, p as loadAndMergeGraphExtensionDocument, q as migrateSchema, r as parseSerializedSchema, s as rollbackSchema } from '../manager-ehLTTNq0.js';
|
|
3
|
+
import { f as SerializedNodeDef, g as SerializedEdgeDef, h as SerializedMetaEdge, i as SerializedOntologyRelation, j as SerializedClosures, k as SerializedSchema, l as SchemaHash } from '../types-CQ7xXJMP.js';
|
|
4
|
+
export { m as JsonSchema, n as SerializedOntology, o as SerializedUniqueConstraint } from '../types-CQ7xXJMP.js';
|
|
5
5
|
import { a as NullCheckOp, K as KindEntity } from '../extension-types-B78CZfA5.js';
|
|
6
6
|
import { ZodType, ZodError } from 'zod';
|
|
7
7
|
import { V as ValidationIssue, a as ValidationError } from '../index-CWdBFWbI.js';
|
package/dist/schema/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { KindRegistry } from '../chunk-
|
|
2
|
-
export { applyDeprecatedKinds, assertSchemaCurrent, computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-
|
|
1
|
+
import { KindRegistry } from '../chunk-5MTOKWDA.js';
|
|
2
|
+
export { applyDeprecatedKinds, assertSchemaCurrent, computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-5MTOKWDA.js';
|
|
3
3
|
import '../chunk-OYLF3IC7.js';
|
|
4
4
|
import '../chunk-TSGBRPNE.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-O57GYGYK.js';
|
|
6
6
|
import '../chunk-EJCDOA37.js';
|
|
7
7
|
import '../chunk-OOS2RKRH.js';
|
|
8
8
|
import '../chunk-WVQXAFP3.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { p as SqlDialect, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-
|
|
3
|
-
import { K as KindRegistry, G as GraphDef, u as EdgeKinds, x as NodeKinds, t as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-
|
|
2
|
+
import { p as SqlDialect, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-CMQymcwk.cjs';
|
|
3
|
+
import { K as KindRegistry, G as GraphDef, u as EdgeKinds, x as NodeKinds, t as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-c1MGaVVR.cjs';
|
|
4
4
|
import { A as AnyEdgeType, N as NodeType, T as TemporalMode, e as EdgeType, E as EdgeRegistration, h as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, k as EndpointExistence, d as KindAnnotations, o as UniquenessScope, g as Collation, G as GraphExtension } from './extension-types-B78CZfA5.cjs';
|
|
5
5
|
import { SQL } from 'drizzle-orm';
|
|
6
6
|
import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-BQfaAZKA.cjs';
|
|
@@ -2920,6 +2920,14 @@ type HybridVectorOptions = Readonly<{
|
|
|
2920
2920
|
k?: number;
|
|
2921
2921
|
/** Minimum similarity to include (units depend on metric). */
|
|
2922
2922
|
minScore?: number;
|
|
2923
|
+
/**
|
|
2924
|
+
* HNSW search frontier for this query (pgvector `hnsw.ef_search`).
|
|
2925
|
+
* The vector side over-fetches `k` (default `4 * limit`) candidates;
|
|
2926
|
+
* `efSearch` must be `>= k` for the index to surface that many
|
|
2927
|
+
* neighbors, and ~2–4× `k` is the high-recall target. Postgres HNSW
|
|
2928
|
+
* only — no-op elsewhere. See `VectorSearchOptions.efSearch`.
|
|
2929
|
+
*/
|
|
2930
|
+
efSearch?: number;
|
|
2923
2931
|
}>;
|
|
2924
2932
|
/**
|
|
2925
2933
|
* Options for the standalone `store.search.vector` path. Mirrors the
|
|
@@ -2937,6 +2945,22 @@ type VectorSearchOptions = Readonly<{
|
|
|
2937
2945
|
metric?: VectorMetric;
|
|
2938
2946
|
/** Minimum similarity to include (units depend on metric). */
|
|
2939
2947
|
minScore?: number;
|
|
2948
|
+
/**
|
|
2949
|
+
* HNSW search frontier for this query (pgvector `hnsw.ef_search`).
|
|
2950
|
+
* Sizes the dynamic candidate list the index scan maintains — higher
|
|
2951
|
+
* trades latency for recall. The floor for the index to surface
|
|
2952
|
+
* `limit` neighbors is `efSearch >= limit`; ~2–4× is the high-recall
|
|
2953
|
+
* target on million-scale corpora. Lets a latency-sensitive
|
|
2954
|
+
* interactive path and a recall-sensitive batch path share one
|
|
2955
|
+
* connection pool, tuning per query rather than per session.
|
|
2956
|
+
*
|
|
2957
|
+
* Postgres HNSW only: applied transaction-locally via `SET LOCAL`.
|
|
2958
|
+
* sqlite-vec has no equivalent frontier knob and ignores it; Postgres
|
|
2959
|
+
* backends without transactions (`drizzle-orm/neon-http`) ignore it
|
|
2960
|
+
* with a one-time warning. Must be a positive integer; pgvector caps
|
|
2961
|
+
* it at 1000.
|
|
2962
|
+
*/
|
|
2963
|
+
efSearch?: number;
|
|
2940
2964
|
}>;
|
|
2941
2965
|
type HybridFulltextOptions = Readonly<{
|
|
2942
2966
|
query: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { p as SqlDialect, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-
|
|
3
|
-
import { K as KindRegistry, G as GraphDef, u as EdgeKinds, x as NodeKinds, t as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-
|
|
2
|
+
import { p as SqlDialect, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-CQ7xXJMP.js';
|
|
3
|
+
import { K as KindRegistry, G as GraphDef, u as EdgeKinds, x as NodeKinds, t as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-ehLTTNq0.js';
|
|
4
4
|
import { A as AnyEdgeType, N as NodeType, T as TemporalMode, e as EdgeType, E as EdgeRegistration, h as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, k as EndpointExistence, d as KindAnnotations, o as UniquenessScope, g as Collation, G as GraphExtension } from './extension-types-B78CZfA5.js';
|
|
5
5
|
import { SQL } from 'drizzle-orm';
|
|
6
6
|
import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-DFavFQah.js';
|
|
@@ -2920,6 +2920,14 @@ type HybridVectorOptions = Readonly<{
|
|
|
2920
2920
|
k?: number;
|
|
2921
2921
|
/** Minimum similarity to include (units depend on metric). */
|
|
2922
2922
|
minScore?: number;
|
|
2923
|
+
/**
|
|
2924
|
+
* HNSW search frontier for this query (pgvector `hnsw.ef_search`).
|
|
2925
|
+
* The vector side over-fetches `k` (default `4 * limit`) candidates;
|
|
2926
|
+
* `efSearch` must be `>= k` for the index to surface that many
|
|
2927
|
+
* neighbors, and ~2–4× `k` is the high-recall target. Postgres HNSW
|
|
2928
|
+
* only — no-op elsewhere. See `VectorSearchOptions.efSearch`.
|
|
2929
|
+
*/
|
|
2930
|
+
efSearch?: number;
|
|
2923
2931
|
}>;
|
|
2924
2932
|
/**
|
|
2925
2933
|
* Options for the standalone `store.search.vector` path. Mirrors the
|
|
@@ -2937,6 +2945,22 @@ type VectorSearchOptions = Readonly<{
|
|
|
2937
2945
|
metric?: VectorMetric;
|
|
2938
2946
|
/** Minimum similarity to include (units depend on metric). */
|
|
2939
2947
|
minScore?: number;
|
|
2948
|
+
/**
|
|
2949
|
+
* HNSW search frontier for this query (pgvector `hnsw.ef_search`).
|
|
2950
|
+
* Sizes the dynamic candidate list the index scan maintains — higher
|
|
2951
|
+
* trades latency for recall. The floor for the index to surface
|
|
2952
|
+
* `limit` neighbors is `efSearch >= limit`; ~2–4× is the high-recall
|
|
2953
|
+
* target on million-scale corpora. Lets a latency-sensitive
|
|
2954
|
+
* interactive path and a recall-sensitive batch path share one
|
|
2955
|
+
* connection pool, tuning per query rather than per session.
|
|
2956
|
+
*
|
|
2957
|
+
* Postgres HNSW only: applied transaction-locally via `SET LOCAL`.
|
|
2958
|
+
* sqlite-vec has no equivalent frontier knob and ignores it; Postgres
|
|
2959
|
+
* backends without transactions (`drizzle-orm/neon-http`) ignore it
|
|
2960
|
+
* with a one-time warning. Must be a positive integer; pgvector caps
|
|
2961
|
+
* it at 1000.
|
|
2962
|
+
*/
|
|
2963
|
+
efSearch?: number;
|
|
2940
2964
|
}>;
|
|
2941
2965
|
type HybridFulltextOptions = Readonly<{
|
|
2942
2966
|
query: string;
|
|
@@ -814,6 +814,17 @@ type VectorSearchParams = Readonly<{
|
|
|
814
814
|
metric: VectorMetric;
|
|
815
815
|
limit: number;
|
|
816
816
|
minScore?: number;
|
|
817
|
+
/**
|
|
818
|
+
* HNSW search frontier for this query (pgvector `hnsw.ef_search`).
|
|
819
|
+
* Sizes the dynamic candidate list the index scan maintains: higher
|
|
820
|
+
* trades latency for recall. The floor for the over-fetch to fill its
|
|
821
|
+
* candidate set is `efSearch >= limit`; ~2–4× is the high-recall
|
|
822
|
+
* target. Applied transaction-locally (`SET LOCAL`) on the Postgres
|
|
823
|
+
* HNSW path only. No-op on backends without an HNSW frontier knob
|
|
824
|
+
* (sqlite-vec) and ignored — with a one-time warning — on Postgres
|
|
825
|
+
* backends without transactions (e.g. `drizzle-orm/neon-http`).
|
|
826
|
+
*/
|
|
827
|
+
efSearch?: number;
|
|
817
828
|
}>;
|
|
818
829
|
/**
|
|
819
830
|
* Result from a vector similarity search.
|
|
@@ -814,6 +814,17 @@ type VectorSearchParams = Readonly<{
|
|
|
814
814
|
metric: VectorMetric;
|
|
815
815
|
limit: number;
|
|
816
816
|
minScore?: number;
|
|
817
|
+
/**
|
|
818
|
+
* HNSW search frontier for this query (pgvector `hnsw.ef_search`).
|
|
819
|
+
* Sizes the dynamic candidate list the index scan maintains: higher
|
|
820
|
+
* trades latency for recall. The floor for the over-fetch to fill its
|
|
821
|
+
* candidate set is `efSearch >= limit`; ~2–4× is the high-recall
|
|
822
|
+
* target. Applied transaction-locally (`SET LOCAL`) on the Postgres
|
|
823
|
+
* HNSW path only. No-op on backends without an HNSW frontier knob
|
|
824
|
+
* (sqlite-vec) and ignored — with a one-time warning — on Postgres
|
|
825
|
+
* backends without transactions (e.g. `drizzle-orm/neon-http`).
|
|
826
|
+
*/
|
|
827
|
+
efSearch?: number;
|
|
817
828
|
}>;
|
|
818
829
|
/**
|
|
819
830
|
* Result from a vector similarity search.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AnyEdgeType, N as NodeType } from './extension-types-B78CZfA5.cjs';
|
|
2
|
-
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-
|
|
2
|
+
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-CMQymcwk.cjs';
|
|
3
3
|
|
|
4
4
|
declare function defineNodeIndex<N extends NodeType>(node: N, config: NodeIndexConfig<N>): NodeIndexDeclaration;
|
|
5
5
|
declare function defineEdgeIndex<E extends AnyEdgeType>(edge: E, config: EdgeIndexConfig<E>): EdgeIndexDeclaration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AnyEdgeType, N as NodeType } from './extension-types-B78CZfA5.js';
|
|
2
|
-
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-
|
|
2
|
+
import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-CQ7xXJMP.js';
|
|
3
3
|
|
|
4
4
|
declare function defineNodeIndex<N extends NodeType>(node: N, config: NodeIndexConfig<N>): NodeIndexDeclaration;
|
|
5
5
|
declare function defineEdgeIndex<E extends AnyEdgeType>(edge: E, config: EdgeIndexConfig<E>): EdgeIndexDeclaration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nicia-ai/typegraph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"nanoid": "^5.1.11"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
|
-
"@cloudflare/vitest-pool-workers": "^0.16.
|
|
124
|
+
"@cloudflare/vitest-pool-workers": "^0.16.7",
|
|
125
125
|
"@libsql/client": "^0.17.3",
|
|
126
126
|
"@neondatabase/serverless": "^1.1.0",
|
|
127
127
|
"@stryker-mutator/core": "^9.6.1",
|
|
@@ -129,18 +129,18 @@
|
|
|
129
129
|
"@types/better-sqlite3": "^7.6.13",
|
|
130
130
|
"@types/node": "^24.12.0",
|
|
131
131
|
"@types/pg": "^8.20.0",
|
|
132
|
-
"@vitest/coverage-v8": "^4.1.
|
|
133
|
-
"better-sqlite3": "^12.
|
|
132
|
+
"@vitest/coverage-v8": "^4.1.7",
|
|
133
|
+
"better-sqlite3": "^12.10.0",
|
|
134
134
|
"drizzle-orm": "^0.45.2",
|
|
135
|
-
"eslint": "^10.
|
|
136
|
-
"fast-check": "^4.
|
|
137
|
-
"pg": "^8.
|
|
135
|
+
"eslint": "^10.4.0",
|
|
136
|
+
"fast-check": "^4.8.0",
|
|
137
|
+
"pg": "^8.21.0",
|
|
138
138
|
"postgres": "^3.4.9",
|
|
139
139
|
"sqlite-vec": "^0.1.9",
|
|
140
140
|
"tsd": "^0.33.0",
|
|
141
141
|
"tsup": "^8.5.1",
|
|
142
142
|
"typescript": "^5.9.3",
|
|
143
|
-
"vitest": "^4.1.
|
|
143
|
+
"vitest": "^4.1.7",
|
|
144
144
|
"zod": "^4.4.3",
|
|
145
145
|
"@typegraph/eslint-config": "0.1.0"
|
|
146
146
|
},
|
package/dist/chunk-5H3BAMTB.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// src/schema/canonical.ts
|
|
2
|
-
function sortedReplacer(_key, value) {
|
|
3
|
-
if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
4
|
-
const sorted = {};
|
|
5
|
-
for (const key of Object.keys(value).toSorted()) {
|
|
6
|
-
sorted[key] = value[key];
|
|
7
|
-
}
|
|
8
|
-
return sorted;
|
|
9
|
-
}
|
|
10
|
-
return value;
|
|
11
|
-
}
|
|
12
|
-
function canonicalEqual(a, b) {
|
|
13
|
-
return JSON.stringify(a, sortedReplacer) === JSON.stringify(b, sortedReplacer);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// src/utils/sql-errors.ts
|
|
17
|
-
var MISSING_TABLE_PATTERNS = [
|
|
18
|
-
"no such table",
|
|
19
|
-
// SQLite
|
|
20
|
-
"does not exist",
|
|
21
|
-
// PostgreSQL ("relation ... does not exist")
|
|
22
|
-
"SQLITE_ERROR"
|
|
23
|
-
// D1 / Durable Objects error code
|
|
24
|
-
];
|
|
25
|
-
function isMissingTableError(error) {
|
|
26
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
27
|
-
return MISSING_TABLE_PATTERNS.some((pattern) => message.includes(pattern));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { canonicalEqual, isMissingTableError, sortedReplacer };
|
|
31
|
-
//# sourceMappingURL=chunk-5H3BAMTB.js.map
|
|
32
|
-
//# sourceMappingURL=chunk-5H3BAMTB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/schema/canonical.ts","../src/utils/sql-errors.ts"],"names":[],"mappings":";AAiBO,SAAS,cAAA,CAAe,MAAc,KAAA,EAAyB;AACpE,EAAA,IAAI,KAAA,KAAU,QAAQ,OAAO,KAAA,KAAU,YAAY,CAAC,KAAA,CAAM,OAAA,CAAQ,KAAK,CAAA,EAAG;AACxE,IAAA,MAAM,SAAkC,EAAC;AACzC,IAAA,KAAA,MAAW,OAAO,MAAA,CAAO,IAAA,CAAK,KAAK,CAAA,CAAE,UAAS,EAAG;AAC/C,MAAA,MAAA,CAAO,GAAG,CAAA,GAAK,KAAA,CAAkC,GAAG,CAAA;AAAA,IACtD;AACA,IAAA,OAAO,MAAA;AAAA,EACT;AACA,EAAA,OAAO,KAAA;AACT;AAaO,SAAS,cAAA,CAAe,GAAY,CAAA,EAAqB;AAC9D,EAAA,OACE,IAAA,CAAK,UAAU,CAAA,EAAG,cAAc,MAAM,IAAA,CAAK,SAAA,CAAU,GAAG,cAAc,CAAA;AAE1E;;;ACjCA,IAAM,sBAAA,GAAyB;AAAA,EAC7B,eAAA;AAAA;AAAA,EACA,gBAAA;AAAA;AAAA,EACA;AAAA;AACF,CAAA;AAEO,SAAS,oBAAoB,KAAA,EAAyB;AAC3D,EAAA,MAAM,UAAU,KAAA,YAAiB,KAAA,GAAQ,KAAA,CAAM,OAAA,GAAU,OAAO,KAAK,CAAA;AACrE,EAAA,OAAO,uBAAuB,IAAA,CAAK,CAAC,YAAY,OAAA,CAAQ,QAAA,CAAS,OAAO,CAAC,CAAA;AAC3E","file":"chunk-5H3BAMTB.js","sourcesContent":["/**\n * Canonical-form helpers for deterministic schema serialization.\n *\n * Used by both content-hashing (`computeSchemaHash`) and structural diffing\n * (`computeSchemaDiff`) to ensure that semantically-equivalent objects with\n * differently-ordered keys produce identical canonical strings.\n */\n\n/**\n * `JSON.stringify` replacer that sorts object keys recursively.\n *\n * Apply via `JSON.stringify(value, sortedReplacer)` to obtain output in\n * which sibling keys at every depth appear in lexicographic order.\n *\n * Arrays are passed through unchanged — array order is semantically\n * meaningful and must not be normalized.\n */\nexport function sortedReplacer(_key: string, value: unknown): unknown {\n if (value !== null && typeof value === \"object\" && !Array.isArray(value)) {\n const sorted: Record<string, unknown> = {};\n for (const key of Object.keys(value).toSorted()) {\n sorted[key] = (value as Record<string, unknown>)[key];\n }\n return sorted;\n }\n return value;\n}\n\n/**\n * Compare two values for canonical-form equality.\n *\n * Returns `true` when both values produce identical JSON under `sortedReplacer`\n * — i.e., they have the same JSON structure regardless of object key order.\n * Used by diff machinery to detect semantic changes in JSON-shaped fields.\n *\n * Note: callers must handle `undefined` themselves — `JSON.stringify(undefined)`\n * returns `undefined`, so two `undefined` inputs would compare equal here, which\n * may or may not be the desired semantics depending on context.\n */\nexport function canonicalEqual(a: unknown, b: unknown): boolean {\n return (\n JSON.stringify(a, sortedReplacer) === JSON.stringify(b, sortedReplacer)\n );\n}\n","/**\n * Cross-dialect detection of \"this relation does not exist yet\" errors.\n *\n * Shared so the schema bootstrap (`loadActiveSchemaWithBootstrap`) and\n * the durable contribution-materialization gate (#135) agree on what a\n * missing-table failure looks like, and — critically — so neither one\n * swallows a genuine system fault (connection/permission/driver error)\n * as a benign \"not bootstrapped yet\".\n */\n\nconst MISSING_TABLE_PATTERNS = [\n \"no such table\", // SQLite\n \"does not exist\", // PostgreSQL (\"relation ... does not exist\")\n \"SQLITE_ERROR\", // D1 / Durable Objects error code\n] as const;\n\nexport function isMissingTableError(error: unknown): boolean {\n const message = error instanceof Error ? error.message : String(error);\n return MISSING_TABLE_PATTERNS.some((pattern) => message.includes(pattern));\n}\n"]}
|