@nicia-ai/typegraph 0.29.0 → 0.30.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 (142) hide show
  1. package/dist/backend/postgres/index.cjs +19 -19
  2. package/dist/backend/postgres/index.d.cts +5 -5
  3. package/dist/backend/postgres/index.d.ts +5 -5
  4. package/dist/backend/postgres/index.js +9 -9
  5. package/dist/backend/postgres/pglite.cjs +14 -14
  6. package/dist/backend/postgres/pglite.d.cts +2 -2
  7. package/dist/backend/postgres/pglite.d.ts +2 -2
  8. package/dist/backend/postgres/pglite.js +9 -9
  9. package/dist/backend/sqlite/index.cjs +17 -17
  10. package/dist/backend/sqlite/index.d.cts +11 -6
  11. package/dist/backend/sqlite/index.d.ts +11 -6
  12. package/dist/backend/sqlite/index.js +8 -8
  13. package/dist/backend/sqlite/libsql.cjs +13 -13
  14. package/dist/backend/sqlite/libsql.d.cts +2 -2
  15. package/dist/backend/sqlite/libsql.d.ts +2 -2
  16. package/dist/backend/sqlite/libsql.js +9 -9
  17. package/dist/backend/sqlite/local.cjs +16 -15
  18. package/dist/backend/sqlite/local.cjs.map +1 -1
  19. package/dist/backend/sqlite/local.d.cts +8 -2
  20. package/dist/backend/sqlite/local.d.ts +8 -2
  21. package/dist/backend/sqlite/local.js +11 -10
  22. package/dist/backend/sqlite/local.js.map +1 -1
  23. package/dist/{chunk-UP4QAJND.cjs → chunk-26HWIIVS.cjs} +65 -65
  24. package/dist/{chunk-UP4QAJND.cjs.map → chunk-26HWIIVS.cjs.map} +1 -1
  25. package/dist/{chunk-GPUNAJFH.js → chunk-2QA5EHEN.js} +3 -3
  26. package/dist/{chunk-GPUNAJFH.js.map → chunk-2QA5EHEN.js.map} +1 -1
  27. package/dist/{chunk-CUZGBWFT.js → chunk-3IRMLJEK.js} +3 -3
  28. package/dist/{chunk-CUZGBWFT.js.map → chunk-3IRMLJEK.js.map} +1 -1
  29. package/dist/{chunk-MRMD7S7E.js → chunk-3JLRHQ67.js} +7 -7
  30. package/dist/{chunk-MRMD7S7E.js.map → chunk-3JLRHQ67.js.map} +1 -1
  31. package/dist/{chunk-UPBXUOW7.cjs → chunk-4BXHVEFB.cjs} +15 -15
  32. package/dist/{chunk-UPBXUOW7.cjs.map → chunk-4BXHVEFB.cjs.map} +1 -1
  33. package/dist/{chunk-RU5BBUU2.cjs → chunk-4LBO6KIF.cjs} +70 -67
  34. package/dist/chunk-4LBO6KIF.cjs.map +1 -0
  35. package/dist/{chunk-HKN622O4.js → chunk-633N7DSE.js} +9 -5
  36. package/dist/chunk-633N7DSE.js.map +1 -0
  37. package/dist/{chunk-R2LA6MKR.cjs → chunk-7JGLPAFV.cjs} +8 -8
  38. package/dist/{chunk-R2LA6MKR.cjs.map → chunk-7JGLPAFV.cjs.map} +1 -1
  39. package/dist/{chunk-7KLVFWXR.js → chunk-AI3RNREM.js} +30 -4
  40. package/dist/chunk-AI3RNREM.js.map +1 -0
  41. package/dist/{chunk-SFNUHFON.js → chunk-ENDUY2CD.js} +4 -4
  42. package/dist/{chunk-SFNUHFON.js.map → chunk-ENDUY2CD.js.map} +1 -1
  43. package/dist/{chunk-7V335GHG.cjs → chunk-FLRCVI2G.cjs} +12 -2
  44. package/dist/chunk-FLRCVI2G.cjs.map +1 -0
  45. package/dist/{chunk-IE2TPFBT.js → chunk-FVIGJTS7.js} +3 -3
  46. package/dist/{chunk-IE2TPFBT.js.map → chunk-FVIGJTS7.js.map} +1 -1
  47. package/dist/{chunk-Q5ASTPM4.cjs → chunk-FWBVPATK.cjs} +19 -19
  48. package/dist/{chunk-Q5ASTPM4.cjs.map → chunk-FWBVPATK.cjs.map} +1 -1
  49. package/dist/{chunk-KGAJ5HFO.cjs → chunk-IE6GN7L3.cjs} +17 -17
  50. package/dist/{chunk-KGAJ5HFO.cjs.map → chunk-IE6GN7L3.cjs.map} +1 -1
  51. package/dist/{chunk-A4H6QMV4.js → chunk-IUIJJYPI.js} +14 -11
  52. package/dist/chunk-IUIJJYPI.js.map +1 -0
  53. package/dist/{chunk-BMDF2S7S.js → chunk-IX7RE7CG.js} +3 -3
  54. package/dist/{chunk-BMDF2S7S.js.map → chunk-IX7RE7CG.js.map} +1 -1
  55. package/dist/{chunk-G6P3OVDY.cjs → chunk-JIEJCTDS.cjs} +18 -2
  56. package/dist/chunk-JIEJCTDS.cjs.map +1 -0
  57. package/dist/{chunk-XTQHSOIC.cjs → chunk-K4N35E7B.cjs} +86 -86
  58. package/dist/{chunk-XTQHSOIC.cjs.map → chunk-K4N35E7B.cjs.map} +1 -1
  59. package/dist/{chunk-NZ5PMBTG.js → chunk-K5P5OZXS.js} +12 -3
  60. package/dist/chunk-K5P5OZXS.js.map +1 -0
  61. package/dist/{chunk-Y52UNT66.js → chunk-K5VREXMZ.js} +7 -7
  62. package/dist/{chunk-Y52UNT66.js.map → chunk-K5VREXMZ.js.map} +1 -1
  63. package/dist/chunk-LUHU4T2F.cjs +12 -0
  64. package/dist/{chunk-Q3ZZLU3O.cjs.map → chunk-LUHU4T2F.cjs.map} +1 -1
  65. package/dist/{chunk-Z36W5WUM.js → chunk-MAQJYNJR.js} +3 -3
  66. package/dist/{chunk-Z36W5WUM.js.map → chunk-MAQJYNJR.js.map} +1 -1
  67. package/dist/{chunk-N3VVQDMA.js → chunk-MXE2U3EX.js} +3 -3
  68. package/dist/{chunk-N3VVQDMA.js.map → chunk-MXE2U3EX.js.map} +1 -1
  69. package/dist/{chunk-3DTLDGIM.js → chunk-N2OEOGBB.js} +6 -6
  70. package/dist/{chunk-3DTLDGIM.js.map → chunk-N2OEOGBB.js.map} +1 -1
  71. package/dist/{chunk-OGUH56BB.js → chunk-R4JOBEJU.js} +4 -4
  72. package/dist/{chunk-OGUH56BB.js.map → chunk-R4JOBEJU.js.map} +1 -1
  73. package/dist/{chunk-HM6XMR3E.cjs → chunk-SGPXKJ4A.cjs} +18 -18
  74. package/dist/{chunk-HM6XMR3E.cjs.map → chunk-SGPXKJ4A.cjs.map} +1 -1
  75. package/dist/{chunk-MB363HT5.js → chunk-TQOYM4LN.js} +18 -3
  76. package/dist/chunk-TQOYM4LN.js.map +1 -0
  77. package/dist/{chunk-C2RWFIYP.cjs → chunk-UESTHN47.cjs} +34 -6
  78. package/dist/chunk-UESTHN47.cjs.map +1 -0
  79. package/dist/{chunk-4K6IHUW6.cjs → chunk-VFX3LC76.cjs} +14 -14
  80. package/dist/{chunk-4K6IHUW6.cjs.map → chunk-VFX3LC76.cjs.map} +1 -1
  81. package/dist/{chunk-F2Q76CQ4.cjs → chunk-WEMZM7J7.cjs} +11 -7
  82. package/dist/chunk-WEMZM7J7.cjs.map +1 -0
  83. package/dist/{chunk-ZYQEXGYC.cjs → chunk-WFCECD6Q.cjs} +84 -84
  84. package/dist/{chunk-ZYQEXGYC.cjs.map → chunk-WFCECD6Q.cjs.map} +1 -1
  85. package/dist/{chunk-VGU26WIU.cjs → chunk-YQGLVWB2.cjs} +4 -4
  86. package/dist/{chunk-VGU26WIU.cjs.map → chunk-YQGLVWB2.cjs.map} +1 -1
  87. package/dist/{ddl-D3o-RmsV.d.cts → ddl-BSFlbGQF.d.cts} +3 -3
  88. package/dist/{ddl-BwH00BB6.d.ts → ddl-EdkIiFVU.d.ts} +3 -3
  89. package/dist/graph-extension/index.cjs +19 -19
  90. package/dist/graph-extension/index.d.cts +1 -1
  91. package/dist/graph-extension/index.d.ts +1 -1
  92. package/dist/graph-extension/index.js +4 -4
  93. package/dist/{index-CapHwi1a.d.ts → index-DzeIiMO3.d.ts} +9 -1
  94. package/dist/{index-jPPexxM5.d.cts → index-Ln_KHTGA.d.cts} +9 -1
  95. package/dist/index.cjs +780 -515
  96. package/dist/index.cjs.map +1 -1
  97. package/dist/index.d.cts +8 -8
  98. package/dist/index.d.ts +8 -8
  99. package/dist/index.js +314 -53
  100. package/dist/index.js.map +1 -1
  101. package/dist/indexes/index.cjs +18 -18
  102. package/dist/indexes/index.d.cts +4 -4
  103. package/dist/indexes/index.d.ts +4 -4
  104. package/dist/indexes/index.js +4 -4
  105. package/dist/interchange/index.cjs +7 -7
  106. package/dist/interchange/index.d.cts +3 -3
  107. package/dist/interchange/index.d.ts +3 -3
  108. package/dist/interchange/index.js +2 -2
  109. package/dist/{manager-BUugwCYz.d.ts → manager-BbdyNhkv.d.ts} +1 -1
  110. package/dist/{manager-DpIpn1HQ.d.cts → manager-wTDgjoXG.d.cts} +1 -1
  111. package/dist/{postgres-CQL9UIn2.d.cts → postgres-CK2ByP1q.d.cts} +1 -1
  112. package/dist/{postgres-CcRLaxz0.d.ts → postgres-ymXYC6Rr.d.ts} +1 -1
  113. package/dist/profiler/index.cjs +9 -9
  114. package/dist/profiler/index.d.cts +5 -5
  115. package/dist/profiler/index.d.ts +5 -5
  116. package/dist/profiler/index.js +2 -2
  117. package/dist/schema/index.cjs +31 -31
  118. package/dist/schema/index.d.cts +5 -5
  119. package/dist/schema/index.d.ts +5 -5
  120. package/dist/schema/index.js +8 -8
  121. package/dist/{sqlite-Rj3xu4It.d.cts → sqlite-DxH1lrwD.d.cts} +1 -1
  122. package/dist/{sqlite-CZDFUfHS.d.ts → sqlite-R8YGOqVQ.d.ts} +1 -1
  123. package/dist/{store-B43FpOVX.d.cts → store--z1Tmk7U.d.cts} +43 -3
  124. package/dist/{store-De0Y33wP.d.ts → store-CNKM334w.d.ts} +43 -3
  125. package/dist/{types-CmAT-Z47.d.ts → types-BBiDqJCU.d.ts} +2 -0
  126. package/dist/{types-B5GSeE3t.d.ts → types-CMvxx2kd.d.ts} +1 -1
  127. package/dist/{types-Bwlp_yvu.d.cts → types-D5B6Be5c.d.cts} +1 -1
  128. package/dist/{types-DXCSyxac.d.cts → types-dL-clxO3.d.cts} +2 -0
  129. package/dist/{where-CP4qGIHd.d.ts → where-CAo6wsBZ.d.ts} +1 -1
  130. package/dist/{where-2dsyYt3d.d.cts → where-bJjuOCeV.d.cts} +1 -1
  131. package/package.json +1 -1
  132. package/dist/chunk-7KLVFWXR.js.map +0 -1
  133. package/dist/chunk-7V335GHG.cjs.map +0 -1
  134. package/dist/chunk-A4H6QMV4.js.map +0 -1
  135. package/dist/chunk-C2RWFIYP.cjs.map +0 -1
  136. package/dist/chunk-F2Q76CQ4.cjs.map +0 -1
  137. package/dist/chunk-G6P3OVDY.cjs.map +0 -1
  138. package/dist/chunk-HKN622O4.js.map +0 -1
  139. package/dist/chunk-MB363HT5.js.map +0 -1
  140. package/dist/chunk-NZ5PMBTG.js.map +0 -1
  141. package/dist/chunk-Q3ZZLU3O.cjs +0 -12
  142. package/dist/chunk-RU5BBUU2.cjs.map +0 -1
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunkR2LA6MKR_cjs = require('./chunk-R2LA6MKR.cjs');
4
- var chunkHM6XMR3E_cjs = require('./chunk-HM6XMR3E.cjs');
3
+ var chunk7JGLPAFV_cjs = require('./chunk-7JGLPAFV.cjs');
4
+ var chunkSGPXKJ4A_cjs = require('./chunk-SGPXKJ4A.cjs');
5
5
  var chunkRP7YITHX_cjs = require('./chunk-RP7YITHX.cjs');
6
- var chunkUPBXUOW7_cjs = require('./chunk-UPBXUOW7.cjs');
7
- var chunkVGU26WIU_cjs = require('./chunk-VGU26WIU.cjs');
6
+ var chunk4BXHVEFB_cjs = require('./chunk-4BXHVEFB.cjs');
7
+ var chunkYQGLVWB2_cjs = require('./chunk-YQGLVWB2.cjs');
8
8
  var chunkZFWNO3GE_cjs = require('./chunk-ZFWNO3GE.cjs');
9
- var chunkG6P3OVDY_cjs = require('./chunk-G6P3OVDY.cjs');
9
+ var chunkJIEJCTDS_cjs = require('./chunk-JIEJCTDS.cjs');
10
10
  var zod = require('zod');
11
11
 
12
12
  // src/core/node.ts
13
13
  function validateSchemaKeys(schema, name) {
14
- chunkHM6XMR3E_cjs.assertSchemaKeysAreFree(
14
+ chunkSGPXKJ4A_cjs.assertSchemaKeysAreFree(
15
15
  "Node",
16
16
  name,
17
17
  Object.keys(schema.shape),
18
- chunkHM6XMR3E_cjs.RESERVED_NODE_KEYS
18
+ chunkSGPXKJ4A_cjs.RESERVED_NODE_KEYS
19
19
  );
20
20
  }
21
21
  function defineNode(name, options) {
22
22
  validateSchemaKeys(options.schema, name);
23
23
  if (options.annotations !== void 0) {
24
- chunkHM6XMR3E_cjs.assertJsonValue(options.annotations, "annotations", `Node "${name}"`);
24
+ chunkSGPXKJ4A_cjs.assertJsonValue(options.annotations, "annotations", `Node "${name}"`);
25
25
  }
26
26
  return Object.freeze({
27
- [chunkR2LA6MKR_cjs.NODE_TYPE_BRAND]: true,
27
+ [chunk7JGLPAFV_cjs.NODE_TYPE_BRAND]: true,
28
28
  kind: name,
29
29
  schema: options.schema,
30
30
  description: options.description,
@@ -33,21 +33,21 @@ function defineNode(name, options) {
33
33
  }
34
34
  var EMPTY_SCHEMA = zod.z.object({});
35
35
  function validateSchemaKeys2(schema, name) {
36
- chunkHM6XMR3E_cjs.assertSchemaKeysAreFree(
36
+ chunkSGPXKJ4A_cjs.assertSchemaKeysAreFree(
37
37
  "Edge",
38
38
  name,
39
39
  Object.keys(schema.shape),
40
- chunkHM6XMR3E_cjs.RESERVED_EDGE_KEYS
40
+ chunkSGPXKJ4A_cjs.RESERVED_EDGE_KEYS
41
41
  );
42
42
  }
43
43
  function defineEdge(name, options) {
44
44
  const schema = options?.schema ?? EMPTY_SCHEMA;
45
45
  validateSchemaKeys2(schema, name);
46
46
  if (options?.annotations !== void 0) {
47
- chunkHM6XMR3E_cjs.assertJsonValue(options.annotations, "annotations", `Edge "${name}"`);
47
+ chunkSGPXKJ4A_cjs.assertJsonValue(options.annotations, "annotations", `Edge "${name}"`);
48
48
  }
49
49
  return Object.freeze({
50
- [chunkR2LA6MKR_cjs.EDGE_TYPE_BRAND]: true,
50
+ [chunk7JGLPAFV_cjs.EDGE_TYPE_BRAND]: true,
51
51
  kind: name,
52
52
  schema,
53
53
  description: options?.description,
@@ -84,7 +84,7 @@ function createMetaEdge(name, properties) {
84
84
  }
85
85
  });
86
86
  }
87
- var subClassOfMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_SUB_CLASS_OF, {
87
+ var subClassOfMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_SUB_CLASS_OF, {
88
88
  transitive: true,
89
89
  inference: "subsumption",
90
90
  description: "Type inheritance (Podcast subClassOf Media)"
@@ -96,9 +96,9 @@ function subClassOf(child, parent) {
96
96
  to: parent
97
97
  };
98
98
  }
99
- var broaderMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_BROADER, {
99
+ var broaderMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_BROADER, {
100
100
  transitive: true,
101
- inverse: chunkHM6XMR3E_cjs.META_EDGE_NARROWER,
101
+ inverse: chunkSGPXKJ4A_cjs.META_EDGE_NARROWER,
102
102
  inference: "hierarchy",
103
103
  description: "Broader concept (ML broader AI)"
104
104
  });
@@ -109,9 +109,9 @@ function broader(narrowerConcept, broaderConcept) {
109
109
  to: broaderConcept
110
110
  };
111
111
  }
112
- var narrowerMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_NARROWER, {
112
+ var narrowerMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_NARROWER, {
113
113
  transitive: true,
114
- inverse: chunkHM6XMR3E_cjs.META_EDGE_BROADER,
114
+ inverse: chunkSGPXKJ4A_cjs.META_EDGE_BROADER,
115
115
  inference: "hierarchy",
116
116
  description: "Narrower concept (AI narrower ML)"
117
117
  });
@@ -122,7 +122,7 @@ function narrower(broaderConcept, narrowerConcept) {
122
122
  to: narrowerConcept
123
123
  };
124
124
  }
125
- var relatedToMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_RELATED_TO, {
125
+ var relatedToMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_RELATED_TO, {
126
126
  symmetric: true,
127
127
  inference: "association",
128
128
  description: "Non-hierarchical association"
@@ -134,7 +134,7 @@ function relatedTo(conceptA, conceptB) {
134
134
  to: conceptB
135
135
  };
136
136
  }
137
- var equivalentToMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_EQUIVALENT_TO, {
137
+ var equivalentToMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_EQUIVALENT_TO, {
138
138
  symmetric: true,
139
139
  transitive: true,
140
140
  inference: "substitution",
@@ -147,7 +147,7 @@ function equivalentTo(kindA, kindBOrIri) {
147
147
  to: kindBOrIri
148
148
  };
149
149
  }
150
- var sameAsMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_SAME_AS, {
150
+ var sameAsMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_SAME_AS, {
151
151
  symmetric: true,
152
152
  transitive: true,
153
153
  inference: "substitution",
@@ -160,7 +160,7 @@ function sameAs(kindA, kindBOrIri) {
160
160
  to: kindBOrIri
161
161
  };
162
162
  }
163
- var differentFromMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_DIFFERENT_FROM, {
163
+ var differentFromMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_DIFFERENT_FROM, {
164
164
  symmetric: true,
165
165
  inference: "constraint",
166
166
  description: "Explicitly different individuals"
@@ -172,7 +172,7 @@ function differentFrom(kindA, kindB) {
172
172
  to: kindB
173
173
  };
174
174
  }
175
- var disjointWithMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_DISJOINT_WITH, {
175
+ var disjointWithMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_DISJOINT_WITH, {
176
176
  symmetric: true,
177
177
  inference: "constraint",
178
178
  description: "Mutually exclusive types"
@@ -184,9 +184,9 @@ function disjointWith(kindA, kindB) {
184
184
  to: kindB
185
185
  };
186
186
  }
187
- var partOfMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_PART_OF, {
187
+ var partOfMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_PART_OF, {
188
188
  transitive: true,
189
- inverse: chunkHM6XMR3E_cjs.META_EDGE_HAS_PART,
189
+ inverse: chunkSGPXKJ4A_cjs.META_EDGE_HAS_PART,
190
190
  inference: "composition",
191
191
  description: "X is part of Y"
192
192
  });
@@ -197,9 +197,9 @@ function partOf(part, whole) {
197
197
  to: whole
198
198
  };
199
199
  }
200
- var hasPartMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_HAS_PART, {
200
+ var hasPartMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_HAS_PART, {
201
201
  transitive: true,
202
- inverse: chunkHM6XMR3E_cjs.META_EDGE_PART_OF,
202
+ inverse: chunkSGPXKJ4A_cjs.META_EDGE_PART_OF,
203
203
  inference: "composition",
204
204
  description: "Y has part X"
205
205
  });
@@ -210,12 +210,12 @@ function hasPart(whole, part) {
210
210
  to: part
211
211
  };
212
212
  }
213
- var inverseOfMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_INVERSE_OF, {
213
+ var inverseOfMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_INVERSE_OF, {
214
214
  symmetric: true,
215
215
  inference: "none",
216
216
  description: "Edge A is inverse of edge B"
217
217
  });
218
- var impliesMetaEdge = createMetaEdge(chunkHM6XMR3E_cjs.META_EDGE_IMPLIES, {
218
+ var impliesMetaEdge = createMetaEdge(chunkSGPXKJ4A_cjs.META_EDGE_IMPLIES, {
219
219
  transitive: true,
220
220
  inference: "none",
221
221
  description: "Edge A implies edge B exists"
@@ -804,7 +804,7 @@ var KindRegistry = class {
804
804
  * Checks if child is a subclass of parent (directly or transitively).
805
805
  */
806
806
  isSubClassOf(child, parent) {
807
- return chunkHM6XMR3E_cjs.isReachable(this.subClassAncestors, child, parent);
807
+ return chunkSGPXKJ4A_cjs.isReachable(this.subClassAncestors, child, parent);
808
808
  }
809
809
  /**
810
810
  * Expands a kind to include all its subclasses.
@@ -831,13 +831,13 @@ var KindRegistry = class {
831
831
  * Checks if narrowerConcept is narrower than broaderConcept.
832
832
  */
833
833
  isNarrowerThan(narrowerConcept, broaderConcept) {
834
- return chunkHM6XMR3E_cjs.isReachable(this.broaderClosure, narrowerConcept, broaderConcept);
834
+ return chunkSGPXKJ4A_cjs.isReachable(this.broaderClosure, narrowerConcept, broaderConcept);
835
835
  }
836
836
  /**
837
837
  * Checks if broaderConcept is broader than narrowerConcept.
838
838
  */
839
839
  isBroaderThan(broaderConcept, narrowerConcept) {
840
- return chunkHM6XMR3E_cjs.isReachable(this.narrowerClosure, broaderConcept, narrowerConcept);
840
+ return chunkSGPXKJ4A_cjs.isReachable(this.narrowerClosure, broaderConcept, narrowerConcept);
841
841
  }
842
842
  /**
843
843
  * Expands to include all narrower concepts.
@@ -901,7 +901,7 @@ var KindRegistry = class {
901
901
  * Checks if part is part of whole (directly or transitively).
902
902
  */
903
903
  isPartOf(part, whole) {
904
- return chunkHM6XMR3E_cjs.isReachable(this.partOfClosure, part, whole);
904
+ return chunkSGPXKJ4A_cjs.isReachable(this.partOfClosure, part, whole);
905
905
  }
906
906
  /**
907
907
  * Gets all wholes that contain this part.
@@ -1012,57 +1012,57 @@ function computeClosuresFromOntology(ontology) {
1012
1012
  const fromName = getKindName(relation.from);
1013
1013
  const toName = getKindName(relation.to);
1014
1014
  switch (relation.metaEdge.name) {
1015
- case chunkHM6XMR3E_cjs.META_EDGE_SUB_CLASS_OF: {
1015
+ case chunkSGPXKJ4A_cjs.META_EDGE_SUB_CLASS_OF: {
1016
1016
  subClassRelations.push([fromName, toName]);
1017
1017
  break;
1018
1018
  }
1019
- case chunkHM6XMR3E_cjs.META_EDGE_BROADER: {
1019
+ case chunkSGPXKJ4A_cjs.META_EDGE_BROADER: {
1020
1020
  broaderRelations.push([fromName, toName]);
1021
1021
  break;
1022
1022
  }
1023
- case chunkHM6XMR3E_cjs.META_EDGE_NARROWER: {
1023
+ case chunkSGPXKJ4A_cjs.META_EDGE_NARROWER: {
1024
1024
  broaderRelations.push([toName, fromName]);
1025
1025
  break;
1026
1026
  }
1027
- case chunkHM6XMR3E_cjs.META_EDGE_EQUIVALENT_TO:
1028
- case chunkHM6XMR3E_cjs.META_EDGE_SAME_AS: {
1027
+ case chunkSGPXKJ4A_cjs.META_EDGE_EQUIVALENT_TO:
1028
+ case chunkSGPXKJ4A_cjs.META_EDGE_SAME_AS: {
1029
1029
  equivalentRelations.push([fromName, toName]);
1030
1030
  break;
1031
1031
  }
1032
- case chunkHM6XMR3E_cjs.META_EDGE_DISJOINT_WITH: {
1032
+ case chunkSGPXKJ4A_cjs.META_EDGE_DISJOINT_WITH: {
1033
1033
  disjointRelations.push([fromName, toName]);
1034
1034
  break;
1035
1035
  }
1036
- case chunkHM6XMR3E_cjs.META_EDGE_PART_OF: {
1036
+ case chunkSGPXKJ4A_cjs.META_EDGE_PART_OF: {
1037
1037
  partOfRelations.push([fromName, toName]);
1038
1038
  break;
1039
1039
  }
1040
- case chunkHM6XMR3E_cjs.META_EDGE_HAS_PART: {
1040
+ case chunkSGPXKJ4A_cjs.META_EDGE_HAS_PART: {
1041
1041
  partOfRelations.push([toName, fromName]);
1042
1042
  break;
1043
1043
  }
1044
- case chunkHM6XMR3E_cjs.META_EDGE_INVERSE_OF: {
1044
+ case chunkSGPXKJ4A_cjs.META_EDGE_INVERSE_OF: {
1045
1045
  inverseOfRelations.push([fromName, toName]);
1046
1046
  break;
1047
1047
  }
1048
- case chunkHM6XMR3E_cjs.META_EDGE_IMPLIES: {
1048
+ case chunkSGPXKJ4A_cjs.META_EDGE_IMPLIES: {
1049
1049
  impliesRelations.push([fromName, toName]);
1050
1050
  break;
1051
1051
  }
1052
1052
  }
1053
1053
  }
1054
- const subClassAncestors = chunkHM6XMR3E_cjs.computeTransitiveClosure(subClassRelations);
1055
- const subClassDescendants = chunkHM6XMR3E_cjs.invertClosure(subClassAncestors);
1056
- const broaderClosure = chunkHM6XMR3E_cjs.computeTransitiveClosure(broaderRelations);
1057
- const narrowerClosure = chunkHM6XMR3E_cjs.invertClosure(broaderClosure);
1054
+ const subClassAncestors = chunkSGPXKJ4A_cjs.computeTransitiveClosure(subClassRelations);
1055
+ const subClassDescendants = chunkSGPXKJ4A_cjs.invertClosure(subClassAncestors);
1056
+ const broaderClosure = chunkSGPXKJ4A_cjs.computeTransitiveClosure(broaderRelations);
1057
+ const narrowerClosure = chunkSGPXKJ4A_cjs.invertClosure(broaderClosure);
1058
1058
  const equivalenceSets = computeEquivalenceSets(equivalentRelations);
1059
1059
  const iriToKind = computeIriMapping(equivalentRelations);
1060
1060
  const disjointPairs = computeDisjointPairs(disjointRelations);
1061
- const partOfClosure = chunkHM6XMR3E_cjs.computeTransitiveClosure(partOfRelations);
1062
- const hasPartClosure = chunkHM6XMR3E_cjs.invertClosure(partOfClosure);
1061
+ const partOfClosure = chunkSGPXKJ4A_cjs.computeTransitiveClosure(partOfRelations);
1062
+ const hasPartClosure = chunkSGPXKJ4A_cjs.invertClosure(partOfClosure);
1063
1063
  const edgeInverses = computeEdgeInverses(inverseOfRelations);
1064
- const edgeImplicationsClosure = chunkHM6XMR3E_cjs.computeTransitiveClosure(impliesRelations);
1065
- const edgeImplyingClosure = chunkHM6XMR3E_cjs.invertClosure(edgeImplicationsClosure);
1064
+ const edgeImplicationsClosure = chunkSGPXKJ4A_cjs.computeTransitiveClosure(impliesRelations);
1065
+ const edgeImplyingClosure = chunkSGPXKJ4A_cjs.invertClosure(edgeImplicationsClosure);
1066
1066
  return {
1067
1067
  subClassAncestors,
1068
1068
  subClassDescendants,
@@ -1166,7 +1166,7 @@ function serializeSchema(graph, version) {
1166
1166
  return {
1167
1167
  graphId: graph.id,
1168
1168
  version,
1169
- generatedAt: chunkR2LA6MKR_cjs.nowIso(),
1169
+ generatedAt: chunk7JGLPAFV_cjs.nowIso(),
1170
1170
  nodes,
1171
1171
  edges,
1172
1172
  ontology,
@@ -1197,7 +1197,7 @@ function serializeDeprecatedKinds(set) {
1197
1197
  function canonicalExtension(document) {
1198
1198
  if (document === void 0) return void 0;
1199
1199
  if (document.version === void 0) return document;
1200
- if (document.version !== chunkHM6XMR3E_cjs.LEGACY_GRAPH_EXTENSION_VERSION) return document;
1200
+ if (document.version !== chunkSGPXKJ4A_cjs.LEGACY_GRAPH_EXTENSION_VERSION) return document;
1201
1201
  const { version: _omit, ...rest } = document;
1202
1202
  return rest;
1203
1203
  }
@@ -1271,7 +1271,7 @@ function serializeEdgeIndexDeclaration(declaration) {
1271
1271
  }
1272
1272
  function serializeNodes(graph) {
1273
1273
  const result = {};
1274
- for (const kindName of chunkR2LA6MKR_cjs.getNodeKinds(graph)) {
1274
+ for (const kindName of chunk7JGLPAFV_cjs.getNodeKinds(graph)) {
1275
1275
  const registration = graph.nodes[kindName];
1276
1276
  if (registration === void 0) continue;
1277
1277
  result[kindName] = serializeNodeDef(registration);
@@ -1339,7 +1339,7 @@ function deserializeWherePredicate(serialized) {
1339
1339
  }
1340
1340
  function serializeEdges(graph) {
1341
1341
  const result = {};
1342
- for (const kindName of chunkR2LA6MKR_cjs.getEdgeKinds(graph)) {
1342
+ for (const kindName of chunk7JGLPAFV_cjs.getEdgeKinds(graph)) {
1343
1343
  const registration = graph.edges[kindName];
1344
1344
  if (registration === void 0) continue;
1345
1345
  result[kindName] = serializeEdgeDef(registration);
@@ -1488,7 +1488,7 @@ async function computeSchemaHash(schema) {
1488
1488
  ...schema.deprecatedKinds === void 0 ? {} : { deprecatedKinds: schema.deprecatedKinds }
1489
1489
  };
1490
1490
  const json = JSON.stringify(hashable, chunkRP7YITHX_cjs.sortedReplacer);
1491
- return chunkUPBXUOW7_cjs.sha256Hex(json);
1491
+ return chunk4BXHVEFB_cjs.sha256Hex(json);
1492
1492
  }
1493
1493
  var COMPILE_NODE_CACHE = /* @__PURE__ */ new Map();
1494
1494
  var COMPILE_EDGE_SCHEMA_CACHE = /* @__PURE__ */ new WeakMap();
@@ -1536,7 +1536,7 @@ function compileNode(kindName, document) {
1536
1536
  const schema = buildObjectSchema(document.properties);
1537
1537
  const type = defineNode(
1538
1538
  kindName,
1539
- chunkHM6XMR3E_cjs.compactUndefined({
1539
+ chunkSGPXKJ4A_cjs.compactUndefined({
1540
1540
  schema,
1541
1541
  description: document.description,
1542
1542
  annotations: document.annotations
@@ -1560,7 +1560,7 @@ function compileEdge(kindName, document, nodeTypeByName) {
1560
1560
  (name) => nodeTypeByName.get(name) ?? name
1561
1561
  );
1562
1562
  return Object.freeze(
1563
- chunkHM6XMR3E_cjs.compactUndefined({
1563
+ chunkSGPXKJ4A_cjs.compactUndefined({
1564
1564
  kindName,
1565
1565
  schema,
1566
1566
  description: document.description,
@@ -1604,7 +1604,7 @@ function compileProperty(property) {
1604
1604
  }
1605
1605
  function compileStringProperty(property) {
1606
1606
  if (property.searchable !== void 0) {
1607
- return applyStringRefinements(chunkVGU26WIU_cjs.searchable(property.searchable), property);
1607
+ return applyStringRefinements(chunkYQGLVWB2_cjs.searchable(property.searchable), property);
1608
1608
  }
1609
1609
  if (property.format === void 0) {
1610
1610
  return applyStringRefinements(zod.z.string(), property);
@@ -1694,7 +1694,7 @@ function makeWherePredicate(field, op) {
1694
1694
  };
1695
1695
  }
1696
1696
  var META_EDGE_BY_NAME = Object.fromEntries(
1697
- chunkHM6XMR3E_cjs.ALL_META_EDGE_NAMES.map((name) => [name, core[`${name}MetaEdge`]])
1697
+ chunkSGPXKJ4A_cjs.ALL_META_EDGE_NAMES.map((name) => [name, core[`${name}MetaEdge`]])
1698
1698
  );
1699
1699
  function compileOntologyRelation(relation, nodeTypeByName) {
1700
1700
  const metaEdge = META_EDGE_BY_NAME[relation.metaEdge];
@@ -1733,7 +1733,7 @@ function mergeGraphExtension(graph, document) {
1733
1733
  if (graph.extension !== void 0 && chunkRP7YITHX_cjs.canonicalEqual(unionDocument, existingDocument)) {
1734
1734
  return graph;
1735
1735
  }
1736
- const validatedUnion = chunkHM6XMR3E_cjs.unwrap(chunkHM6XMR3E_cjs.validateGraphExtension(unionDocument));
1736
+ const validatedUnion = chunkSGPXKJ4A_cjs.unwrap(chunkSGPXKJ4A_cjs.validateGraphExtension(unionDocument));
1737
1737
  const compiled = compileGraphExtension(validatedUnion);
1738
1738
  const { nodes: runtimeNodeNames, edges: runtimeEdgeNames } = extensionKindNames(existingDocument);
1739
1739
  const nodeKinds = /* @__PURE__ */ new Map();
@@ -1785,7 +1785,7 @@ function mergeGraphExtension(graph, document) {
1785
1785
  });
1786
1786
  const type = defineEdge(
1787
1787
  edge.kindName,
1788
- chunkHM6XMR3E_cjs.compactUndefined({
1788
+ chunkSGPXKJ4A_cjs.compactUndefined({
1789
1789
  schema: edge.schema,
1790
1790
  description: edge.description,
1791
1791
  annotations: edge.annotations,
@@ -1835,7 +1835,7 @@ function deriveGraphExtensionVectorIndexes(compiledNodes) {
1835
1835
  ...compiled.unique.length === 0 ? {} : { unique: [...compiled.unique] }
1836
1836
  };
1837
1837
  }
1838
- return chunkR2LA6MKR_cjs.autoDeriveVectorIndexes(registrations).map(
1838
+ return chunk7JGLPAFV_cjs.autoDeriveVectorIndexes(registrations).map(
1839
1839
  (index) => Object.freeze({ ...index, origin: "runtime" })
1840
1840
  );
1841
1841
  }
@@ -1853,7 +1853,7 @@ function mergeIndexesWithGraphExtension(existing, runtimeIndexes, graphId) {
1853
1853
  const runtimeRelational = runtimeIndexes.filter(
1854
1854
  (index) => index.entity !== "vector"
1855
1855
  );
1856
- const vectorMerged = chunkR2LA6MKR_cjs.mergeVectorIndexes(compileTimeIndexes, runtimeVectors);
1856
+ const vectorMerged = chunk7JGLPAFV_cjs.mergeVectorIndexes(compileTimeIndexes, runtimeVectors);
1857
1857
  const merged = [...vectorMerged, ...runtimeRelational];
1858
1858
  assertUniqueIndexNames(merged, graphId);
1859
1859
  return merged;
@@ -1865,7 +1865,7 @@ function assertUniqueIndexNames(indexes, graphId) {
1865
1865
  seen.add(index.name);
1866
1866
  continue;
1867
1867
  }
1868
- throw new chunkG6P3OVDY_cjs.ConfigurationError(
1868
+ throw new chunkJIEJCTDS_cjs.ConfigurationError(
1869
1869
  `Duplicate index name "${index.name}" after merging graph extension into graph "${graphId}". Index names must be unique within a graph.`,
1870
1870
  { graphId, indexName: index.name, code: "DUPLICATE_INDEX_NAME" },
1871
1871
  {
@@ -1881,12 +1881,12 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
1881
1881
  if (document.entity === "node") {
1882
1882
  const node = nodeKinds.get(document.kind);
1883
1883
  if (node === void 0) {
1884
- throw new chunkG6P3OVDY_cjs.KindNotFoundError(document.kind, "node", {
1884
+ throw new chunkJIEJCTDS_cjs.KindNotFoundError(document.kind, "node", {
1885
1885
  graphId,
1886
1886
  suggestion: "Declare the kind under `nodes` in this graph extension, or remove the index from `indexes`."
1887
1887
  });
1888
1888
  }
1889
- const declaration2 = chunkUPBXUOW7_cjs.defineNodeIndex(
1889
+ const declaration2 = chunk4BXHVEFB_cjs.defineNodeIndex(
1890
1890
  node,
1891
1891
  toNodeIndexConfig(document)
1892
1892
  );
@@ -1895,12 +1895,12 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
1895
1895
  }
1896
1896
  const edgeRegistration = mergedEdges[document.kind];
1897
1897
  if (edgeRegistration === void 0) {
1898
- throw new chunkG6P3OVDY_cjs.KindNotFoundError(document.kind, "edge", {
1898
+ throw new chunkJIEJCTDS_cjs.KindNotFoundError(document.kind, "edge", {
1899
1899
  graphId,
1900
1900
  suggestion: "Declare the edge under `edges` in this graph extension, or remove the index from `indexes`."
1901
1901
  });
1902
1902
  }
1903
- const declaration = chunkUPBXUOW7_cjs.defineEdgeIndex(
1903
+ const declaration = chunk4BXHVEFB_cjs.defineEdgeIndex(
1904
1904
  edgeRegistration.type,
1905
1905
  toEdgeIndexConfig(document)
1906
1906
  );
@@ -1912,7 +1912,7 @@ function buildWhereCallback(where) {
1912
1912
  return (props) => {
1913
1913
  const builder = props[where.field];
1914
1914
  if (builder === void 0) {
1915
- throw new chunkG6P3OVDY_cjs.ConfigurationError(
1915
+ throw new chunkJIEJCTDS_cjs.ConfigurationError(
1916
1916
  `Graph-extension index \`where\` references unknown field "${where.field}".`,
1917
1917
  { field: where.field, code: "EXTENSION_INDEX_WHERE_UNKNOWN_FIELD" }
1918
1918
  );
@@ -1921,7 +1921,7 @@ function buildWhereCallback(where) {
1921
1921
  };
1922
1922
  }
1923
1923
  function toNodeIndexConfig(document) {
1924
- return chunkHM6XMR3E_cjs.compactUndefined({
1924
+ return chunkSGPXKJ4A_cjs.compactUndefined({
1925
1925
  fields: document.fields,
1926
1926
  coveringFields: document.coveringFields,
1927
1927
  unique: document.unique,
@@ -1931,7 +1931,7 @@ function toNodeIndexConfig(document) {
1931
1931
  });
1932
1932
  }
1933
1933
  function toEdgeIndexConfig(document) {
1934
- return chunkHM6XMR3E_cjs.compactUndefined({
1934
+ return chunkSGPXKJ4A_cjs.compactUndefined({
1935
1935
  fields: document.fields,
1936
1936
  coveringFields: document.coveringFields,
1937
1937
  unique: document.unique,
@@ -1987,14 +1987,14 @@ function isEmptyExtension(extension) {
1987
1987
  }
1988
1988
  function assertNoCollision(kindName, entity, collides, graphId) {
1989
1989
  if (!collides) return;
1990
- throw new chunkHM6XMR3E_cjs.KindCollisionError(kindName, entity, graphId);
1990
+ throw new chunkSGPXKJ4A_cjs.KindCollisionError(kindName, entity, graphId);
1991
1991
  }
1992
1992
  function resolveEndpoints(entries, nodeKinds, context) {
1993
1993
  return entries.map((entry) => {
1994
1994
  if (typeof entry !== "string") return entry;
1995
1995
  const resolved = nodeKinds.get(entry);
1996
1996
  if (resolved === void 0) {
1997
- throw new chunkHM6XMR3E_cjs.GraphExtensionUnresolvedEndpointError(
1997
+ throw new chunkSGPXKJ4A_cjs.GraphExtensionUnresolvedEndpointError(
1998
1998
  context.edgeKind,
1999
1999
  context.side,
2000
2000
  entry,
@@ -2339,7 +2339,7 @@ function parseSerializedSchema(json) {
2339
2339
  try {
2340
2340
  parsed = JSON.parse(json);
2341
2341
  } catch {
2342
- throw new chunkG6P3OVDY_cjs.DatabaseOperationError(
2342
+ throw new chunkJIEJCTDS_cjs.DatabaseOperationError(
2343
2343
  "Stored schema document is not valid JSON",
2344
2344
  { operation: "select", entity: "schema" }
2345
2345
  );
@@ -2347,12 +2347,12 @@ function parseSerializedSchema(json) {
2347
2347
  const result = serializedSchemaZod.safeParse(parsed);
2348
2348
  if (!result.success) {
2349
2349
  const issues = result.error.issues.map((issue) => `${issue.path.join(".")}: ${issue.message}`).join("; ");
2350
- throw new chunkG6P3OVDY_cjs.DatabaseOperationError(
2350
+ throw new chunkJIEJCTDS_cjs.DatabaseOperationError(
2351
2351
  `Stored schema document is malformed: ${issues}`,
2352
2352
  { operation: "select", entity: "schema" }
2353
2353
  );
2354
2354
  }
2355
- const validated = chunkHM6XMR3E_cjs.freezeDeep(result.data);
2355
+ const validated = chunkSGPXKJ4A_cjs.freezeDeep(result.data);
2356
2356
  if (PARSE_CACHE.size >= PARSE_CACHE_LIMIT) {
2357
2357
  const oldest = PARSE_CACHE.keys().next().value;
2358
2358
  if (oldest !== void 0) PARSE_CACHE.delete(oldest);
@@ -2458,7 +2458,7 @@ async function ensureSchema(backend, graph, options) {
2458
2458
  }
2459
2459
  const actions = getMigrationActions(diff);
2460
2460
  if (throwOnBreaking) {
2461
- throw new chunkG6P3OVDY_cjs.MigrationError(
2461
+ throw new chunkJIEJCTDS_cjs.MigrationError(
2462
2462
  `Schema migration required: ${diff.summary}. ${actions.length} migration action(s) needed. Use getSchemaChanges() to review, then migrateSchema() to apply.`,
2463
2463
  {
2464
2464
  graphId: graph.id,
@@ -2494,7 +2494,7 @@ async function loadAndVerifyGraph(backend, graph) {
2494
2494
  function schemaBehindError(graphId, fromVersion, diff) {
2495
2495
  const actions = getMigrationActions(diff);
2496
2496
  const qualifier = isBackwardsCompatible(diff) ? "safe auto-migration" : "breaking change";
2497
- return new chunkG6P3OVDY_cjs.MigrationError(
2497
+ return new chunkJIEJCTDS_cjs.MigrationError(
2498
2498
  `Schema verification failed for graph "${graphId}": ${diff.summary} (${qualifier}). ${actions.length} migration action(s) needed. The least-privilege runtime cannot migrate \u2014 run createStoreWithSchema(graph, adminBackend) under a privileged role (after any generated migration SQL, if you manage DDL externally) before attaching with createStore() / createVerifiedStore().`,
2499
2499
  {
2500
2500
  graphId,
@@ -2523,7 +2523,7 @@ async function readActiveSchemaPure(backend, graphId) {
2523
2523
  return activeRow;
2524
2524
  }
2525
2525
  function schemaNotInitializedError(graphId, cause) {
2526
- return new chunkG6P3OVDY_cjs.ConfigurationError(
2526
+ return new chunkJIEJCTDS_cjs.ConfigurationError(
2527
2527
  `Cannot verify graph "${graphId}": no schema has been initialized. Run createStoreWithSchema(graph, adminBackend) once under a privileged role (which commits the schema_versions row and materializes contribution markers) before attaching with createStore() / createVerifiedStore(). Generated migration SQL creates the tables but does not initialize the schema row.`,
2528
2528
  { graphId },
2529
2529
  {
@@ -2566,7 +2566,7 @@ async function commitNewSchemaVersion(backend, graph, currentVersion) {
2566
2566
  async function rollbackSchema(backend, graphId, targetVersion) {
2567
2567
  const activeRow = await backend.getActiveSchema(graphId);
2568
2568
  if (activeRow === void 0) {
2569
- throw new chunkG6P3OVDY_cjs.MigrationError(
2569
+ throw new chunkJIEJCTDS_cjs.MigrationError(
2570
2570
  `Cannot rollback graph "${graphId}": no active schema version exists.`,
2571
2571
  { graphId, fromVersion: 0, toVersion: targetVersion }
2572
2572
  );
@@ -2615,7 +2615,7 @@ function validateProps(schema, props, context) {
2615
2615
  }
2616
2616
  const issues = zodIssuesToValidationIssues(result.error);
2617
2617
  const location = buildLocationString(context);
2618
- throw new chunkG6P3OVDY_cjs.ValidationError(
2618
+ throw new chunkJIEJCTDS_cjs.ValidationError(
2619
2619
  `Invalid ${context.entityType} props for ${location}: ${result.error.message}`,
2620
2620
  {
2621
2621
  entityType: context.entityType,
@@ -2642,7 +2642,7 @@ function validateEdgeProps(schema, props, context) {
2642
2642
  function wrapZodError(error, context) {
2643
2643
  const issues = zodIssuesToValidationIssues(error);
2644
2644
  const location = buildLocationString(context);
2645
- return new chunkG6P3OVDY_cjs.ValidationError(
2645
+ return new chunkJIEJCTDS_cjs.ValidationError(
2646
2646
  `Validation failed for ${context.entityType} ${location}: ${error.message}`,
2647
2647
  {
2648
2648
  entityType: context.entityType,
@@ -2655,7 +2655,7 @@ function wrapZodError(error, context) {
2655
2655
  );
2656
2656
  }
2657
2657
  function createValidationError(message, issues, context) {
2658
- return new chunkG6P3OVDY_cjs.ValidationError(message, {
2658
+ return new chunkJIEJCTDS_cjs.ValidationError(message, {
2659
2659
  ...context?.entityType !== void 0 && {
2660
2660
  entityType: context.entityType
2661
2661
  },
@@ -2717,5 +2717,5 @@ exports.validateEdgeProps = validateEdgeProps;
2717
2717
  exports.validateNodeProps = validateNodeProps;
2718
2718
  exports.validateProps = validateProps;
2719
2719
  exports.wrapZodError = wrapZodError;
2720
- //# sourceMappingURL=chunk-XTQHSOIC.cjs.map
2721
- //# sourceMappingURL=chunk-XTQHSOIC.cjs.map
2720
+ //# sourceMappingURL=chunk-K4N35E7B.cjs.map
2721
+ //# sourceMappingURL=chunk-K4N35E7B.cjs.map