@nicia-ai/typegraph 0.7.0 → 0.9.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.
Files changed (51) hide show
  1. package/dist/backend/postgres/index.cjs +26 -26
  2. package/dist/backend/postgres/index.js +2 -2
  3. package/dist/backend/sqlite/index.cjs +12 -12
  4. package/dist/backend/sqlite/index.d.cts +15 -3
  5. package/dist/backend/sqlite/index.d.ts +15 -3
  6. package/dist/backend/sqlite/index.js +2 -2
  7. package/dist/backend/sqlite/local.cjs +5 -6
  8. package/dist/backend/sqlite/local.cjs.map +1 -1
  9. package/dist/backend/sqlite/local.js +2 -3
  10. package/dist/backend/sqlite/local.js.map +1 -1
  11. package/dist/{chunk-PDQBCQ34.cjs → chunk-7VITUTRA.cjs} +6 -6
  12. package/dist/{chunk-PDQBCQ34.cjs.map → chunk-7VITUTRA.cjs.map} +1 -1
  13. package/dist/{chunk-K5O7TOJO.cjs → chunk-FXZOTO6F.cjs} +56 -48
  14. package/dist/chunk-FXZOTO6F.cjs.map +1 -0
  15. package/dist/{chunk-JUZWF5NX.js → chunk-IRFD3MEU.js} +12 -12
  16. package/dist/chunk-IRFD3MEU.js.map +1 -0
  17. package/dist/{chunk-2DKSQNPW.js → chunk-KP2HKVXU.js} +45 -37
  18. package/dist/chunk-KP2HKVXU.js.map +1 -0
  19. package/dist/{chunk-23NGZHUN.cjs → chunk-MGEVSTDX.cjs} +2 -13
  20. package/dist/chunk-MGEVSTDX.cjs.map +1 -0
  21. package/dist/{chunk-BELXZTVK.cjs → chunk-NI2GV74U.cjs} +12 -12
  22. package/dist/chunk-NI2GV74U.cjs.map +1 -0
  23. package/dist/{chunk-SH237DWD.js → chunk-PYV4ADC6.js} +3 -3
  24. package/dist/{chunk-SH237DWD.js.map → chunk-PYV4ADC6.js.map} +1 -1
  25. package/dist/{chunk-JPO7W262.js → chunk-X3OXNIMH.js} +3 -13
  26. package/dist/chunk-X3OXNIMH.js.map +1 -0
  27. package/dist/index.cjs +61 -61
  28. package/dist/index.d.cts +4 -4
  29. package/dist/index.d.ts +4 -4
  30. package/dist/index.js +4 -4
  31. package/dist/interchange/index.cjs +6 -6
  32. package/dist/interchange/index.d.cts +2 -2
  33. package/dist/interchange/index.d.ts +2 -2
  34. package/dist/interchange/index.js +1 -1
  35. package/dist/{manager-Ba2CXGMG.d.ts → manager-BCLhWysp.d.ts} +8 -6
  36. package/dist/{manager-Cu3JQN0H.d.cts → manager-DGSnJa1v.d.cts} +8 -6
  37. package/dist/profiler/index.d.cts +2 -2
  38. package/dist/profiler/index.d.ts +2 -2
  39. package/dist/schema/index.cjs +21 -21
  40. package/dist/schema/index.d.cts +2 -2
  41. package/dist/schema/index.d.ts +2 -2
  42. package/dist/schema/index.js +3 -3
  43. package/dist/{store-CL-QMus7.d.cts → store-DgzIgrmn.d.cts} +1 -1
  44. package/dist/{store-DJpuUOSL.d.ts → store-wqOO3GSy.d.ts} +1 -1
  45. package/package.json +1 -1
  46. package/dist/chunk-23NGZHUN.cjs.map +0 -1
  47. package/dist/chunk-2DKSQNPW.js.map +0 -1
  48. package/dist/chunk-BELXZTVK.cjs.map +0 -1
  49. package/dist/chunk-JPO7W262.js.map +0 -1
  50. package/dist/chunk-JUZWF5NX.js.map +0 -1
  51. package/dist/chunk-K5O7TOJO.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
- import { G as GraphDef } from '../manager-Cu3JQN0H.cjs';
1
+ import { G as GraphDef } from '../manager-DGSnJa1v.cjs';
2
2
  import { Q as QueryAst } from '../ast-Bh2NDeaK.cjs';
3
- import { J as Store } from '../store-CL-QMus7.cjs';
3
+ import { J as Store } from '../store-DgzIgrmn.cjs';
4
4
  import { P as ProfilerOptions, a as ProfileReport } from '../types-CVtGFpB9.cjs';
5
5
  export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CVtGFpB9.cjs';
6
6
  import '../types-DMzKq0d5.cjs';
@@ -1,6 +1,6 @@
1
- import { G as GraphDef } from '../manager-Ba2CXGMG.js';
1
+ import { G as GraphDef } from '../manager-BCLhWysp.js';
2
2
  import { Q as QueryAst } from '../ast-COMyNeMn.js';
3
- import { J as Store } from '../store-DJpuUOSL.js';
3
+ import { J as Store } from '../store-wqOO3GSy.js';
4
4
  import { P as ProfilerOptions, a as ProfileReport } from '../types-COPePE8_.js';
5
5
  export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-COPePE8_.js';
6
6
  import '../types-DMzKq0d5.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkPDQBCQ34_cjs = require('../chunk-PDQBCQ34.cjs');
4
- require('../chunk-BELXZTVK.cjs');
3
+ var chunk7VITUTRA_cjs = require('../chunk-7VITUTRA.cjs');
4
+ require('../chunk-NI2GV74U.cjs');
5
5
  require('../chunk-44SXEVF4.cjs');
6
6
 
7
7
  // src/schema/deserializer.ts
@@ -42,7 +42,7 @@ function buildRegistryFromClosures(schema) {
42
42
  const edgeImplyingClosure = recordToMap(closures.edgeImplyingClosure);
43
43
  const nodeKinds = /* @__PURE__ */ new Map();
44
44
  const edgeKinds = /* @__PURE__ */ new Map();
45
- return new chunkPDQBCQ34_cjs.KindRegistry(nodeKinds, edgeKinds, {
45
+ return new chunk7VITUTRA_cjs.KindRegistry(nodeKinds, edgeKinds, {
46
46
  subClassAncestors,
47
47
  subClassDescendants,
48
48
  broaderClosure,
@@ -70,75 +70,75 @@ function simpleRecordToMap(record) {
70
70
 
71
71
  Object.defineProperty(exports, "computeSchemaDiff", {
72
72
  enumerable: true,
73
- get: function () { return chunkPDQBCQ34_cjs.computeSchemaDiff; }
73
+ get: function () { return chunk7VITUTRA_cjs.computeSchemaDiff; }
74
74
  });
75
75
  Object.defineProperty(exports, "computeSchemaHash", {
76
76
  enumerable: true,
77
- get: function () { return chunkPDQBCQ34_cjs.computeSchemaHash; }
77
+ get: function () { return chunk7VITUTRA_cjs.computeSchemaHash; }
78
78
  });
79
79
  Object.defineProperty(exports, "createValidationError", {
80
80
  enumerable: true,
81
- get: function () { return chunkPDQBCQ34_cjs.createValidationError; }
81
+ get: function () { return chunk7VITUTRA_cjs.createValidationError; }
82
82
  });
83
83
  Object.defineProperty(exports, "deserializeWherePredicate", {
84
84
  enumerable: true,
85
- get: function () { return chunkPDQBCQ34_cjs.deserializeWherePredicate; }
85
+ get: function () { return chunk7VITUTRA_cjs.deserializeWherePredicate; }
86
86
  });
87
87
  Object.defineProperty(exports, "ensureSchema", {
88
88
  enumerable: true,
89
- get: function () { return chunkPDQBCQ34_cjs.ensureSchema; }
89
+ get: function () { return chunk7VITUTRA_cjs.ensureSchema; }
90
90
  });
91
91
  Object.defineProperty(exports, "getActiveSchema", {
92
92
  enumerable: true,
93
- get: function () { return chunkPDQBCQ34_cjs.getActiveSchema; }
93
+ get: function () { return chunk7VITUTRA_cjs.getActiveSchema; }
94
94
  });
95
95
  Object.defineProperty(exports, "getMigrationActions", {
96
96
  enumerable: true,
97
- get: function () { return chunkPDQBCQ34_cjs.getMigrationActions; }
97
+ get: function () { return chunk7VITUTRA_cjs.getMigrationActions; }
98
98
  });
99
99
  Object.defineProperty(exports, "getSchemaChanges", {
100
100
  enumerable: true,
101
- get: function () { return chunkPDQBCQ34_cjs.getSchemaChanges; }
101
+ get: function () { return chunk7VITUTRA_cjs.getSchemaChanges; }
102
102
  });
103
103
  Object.defineProperty(exports, "initializeSchema", {
104
104
  enumerable: true,
105
- get: function () { return chunkPDQBCQ34_cjs.initializeSchema; }
105
+ get: function () { return chunk7VITUTRA_cjs.initializeSchema; }
106
106
  });
107
107
  Object.defineProperty(exports, "isBackwardsCompatible", {
108
108
  enumerable: true,
109
- get: function () { return chunkPDQBCQ34_cjs.isBackwardsCompatible; }
109
+ get: function () { return chunk7VITUTRA_cjs.isBackwardsCompatible; }
110
110
  });
111
111
  Object.defineProperty(exports, "isSchemaInitialized", {
112
112
  enumerable: true,
113
- get: function () { return chunkPDQBCQ34_cjs.isSchemaInitialized; }
113
+ get: function () { return chunk7VITUTRA_cjs.isSchemaInitialized; }
114
114
  });
115
115
  Object.defineProperty(exports, "migrateSchema", {
116
116
  enumerable: true,
117
- get: function () { return chunkPDQBCQ34_cjs.migrateSchema; }
117
+ get: function () { return chunk7VITUTRA_cjs.migrateSchema; }
118
118
  });
119
119
  Object.defineProperty(exports, "rollbackSchema", {
120
120
  enumerable: true,
121
- get: function () { return chunkPDQBCQ34_cjs.rollbackSchema; }
121
+ get: function () { return chunk7VITUTRA_cjs.rollbackSchema; }
122
122
  });
123
123
  Object.defineProperty(exports, "serializeSchema", {
124
124
  enumerable: true,
125
- get: function () { return chunkPDQBCQ34_cjs.serializeSchema; }
125
+ get: function () { return chunk7VITUTRA_cjs.serializeSchema; }
126
126
  });
127
127
  Object.defineProperty(exports, "validateEdgeProps", {
128
128
  enumerable: true,
129
- get: function () { return chunkPDQBCQ34_cjs.validateEdgeProps; }
129
+ get: function () { return chunk7VITUTRA_cjs.validateEdgeProps; }
130
130
  });
131
131
  Object.defineProperty(exports, "validateNodeProps", {
132
132
  enumerable: true,
133
- get: function () { return chunkPDQBCQ34_cjs.validateNodeProps; }
133
+ get: function () { return chunk7VITUTRA_cjs.validateNodeProps; }
134
134
  });
135
135
  Object.defineProperty(exports, "validateProps", {
136
136
  enumerable: true,
137
- get: function () { return chunkPDQBCQ34_cjs.validateProps; }
137
+ get: function () { return chunk7VITUTRA_cjs.validateProps; }
138
138
  });
139
139
  Object.defineProperty(exports, "wrapZodError", {
140
140
  enumerable: true,
141
- get: function () { return chunkPDQBCQ34_cjs.wrapZodError; }
141
+ get: function () { return chunk7VITUTRA_cjs.wrapZodError; }
142
142
  });
143
143
  exports.deserializeSchema = deserializeSchema;
144
144
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { K as KindRegistry, G as GraphDef } from '../manager-Cu3JQN0H.cjs';
2
- export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-Cu3JQN0H.cjs';
1
+ import { K as KindRegistry, G as GraphDef } from '../manager-DGSnJa1v.cjs';
2
+ export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-DGSnJa1v.cjs';
3
3
  import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-GLkwvQvS.cjs';
4
4
  export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-GLkwvQvS.cjs';
5
5
  import { ZodType, ZodError } from 'zod';
@@ -1,5 +1,5 @@
1
- import { K as KindRegistry, G as GraphDef } from '../manager-Ba2CXGMG.js';
2
- export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-Ba2CXGMG.js';
1
+ import { K as KindRegistry, G as GraphDef } from '../manager-BCLhWysp.js';
2
+ export { C as ChangeSeverity, h as ChangeType, j as EdgeChange, M as MigrationHookContext, k as NodeChange, O as OntologyChange, l as SchemaDiff, S as SchemaManagerOptions, f as SchemaValidationResult, m as computeSchemaDiff, n as ensureSchema, o as getActiveSchema, p as getMigrationActions, q as getSchemaChanges, r as initializeSchema, s as isBackwardsCompatible, t as isSchemaInitialized, u as migrateSchema, v as rollbackSchema } from '../manager-BCLhWysp.js';
3
3
  import { d as SerializedNodeDef, e as SerializedEdgeDef, f as SerializedMetaEdge, g as SerializedOntologyRelation, h as SerializedClosures, j as SerializedSchema, k as SchemaHash } from '../types-1YJKodRv.js';
4
4
  export { J as JsonSchema, l as SerializedOntology, m as SerializedUniqueConstraint } from '../types-1YJKodRv.js';
5
5
  import { ZodType, ZodError } from 'zod';
@@ -1,6 +1,6 @@
1
- import { KindRegistry } from '../chunk-SH237DWD.js';
2
- export { computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, migrateSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-SH237DWD.js';
3
- import '../chunk-JUZWF5NX.js';
1
+ import { KindRegistry } from '../chunk-PYV4ADC6.js';
2
+ export { computeSchemaDiff, computeSchemaHash, createValidationError, deserializeWherePredicate, ensureSchema, getActiveSchema, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, migrateSchema, rollbackSchema, serializeSchema, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-PYV4ADC6.js';
3
+ import '../chunk-IRFD3MEU.js';
4
4
  import '../chunk-SJ2QMDXY.js';
5
5
 
6
6
  // src/schema/deserializer.ts
@@ -1,5 +1,5 @@
1
1
  import { S as SqlSchema, G as GraphBackend } from './types-GLkwvQvS.cjs';
2
- import { K as KindRegistry, G as GraphDef, S as SchemaManagerOptions, f as SchemaValidationResult } from './manager-Cu3JQN0H.cjs';
2
+ import { K as KindRegistry, G as GraphDef, S as SchemaManagerOptions, f as SchemaValidationResult } from './manager-DGSnJa1v.cjs';
3
3
  import { S as SqlDialect, N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType, d as EdgeRegistration, i as NodeRegistration, b as EdgeId, g as NodeId } from './types-DMzKq0d5.cjs';
4
4
  import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef, c as JsonPointerInput, T as TraversalExpansion, l as Traversal, N as NodePredicate, m as ProjectedField, O as OrderSpec, G as GroupBySpec, o as RecursiveCyclePolicy, q as TraversalDirection, A as AggregateExpr, r as SelectiveField, s as ComposableQuery, t as SetOperationType, u as SetOperation, S as SortDirection } from './ast-Bh2NDeaK.cjs';
5
5
  import { SQL } from 'drizzle-orm';
@@ -1,5 +1,5 @@
1
1
  import { S as SqlSchema, G as GraphBackend } from './types-1YJKodRv.js';
2
- import { K as KindRegistry, G as GraphDef, S as SchemaManagerOptions, f as SchemaValidationResult } from './manager-Ba2CXGMG.js';
2
+ import { K as KindRegistry, G as GraphDef, S as SchemaManagerOptions, f as SchemaValidationResult } from './manager-BCLhWysp.js';
3
3
  import { S as SqlDialect, N as NodeType, A as AnyEdgeType, T as TemporalMode, E as EdgeType, d as EdgeRegistration, i as NodeRegistration, b as EdgeId, g as NodeId } from './types-DMzKq0d5.js';
4
4
  import { V as ValueType, i as PredicateExpression, k as VectorMetricType, Q as QueryAst, J as JsonPointer, F as FieldRef, P as ParameterRef, c as JsonPointerInput, T as TraversalExpansion, l as Traversal, N as NodePredicate, m as ProjectedField, O as OrderSpec, G as GroupBySpec, o as RecursiveCyclePolicy, q as TraversalDirection, A as AggregateExpr, r as SelectiveField, s as ComposableQuery, t as SetOperationType, u as SetOperation, S as SortDirection } from './ast-COMyNeMn.js';
5
5
  import { SQL } from 'drizzle-orm';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",