@neat.is/types 0.7.4 → 0.7.5
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/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +186 -185
- package/dist/index.d.ts +186 -185
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -181,7 +181,17 @@ var EdgeType = {
|
|
|
181
181
|
// fuzzy-matched. A parent that resolves to nothing (external package,
|
|
182
182
|
// re-export chain, an interface, which is not a SymbolNode) emits no edge.
|
|
183
183
|
INHERITS: "INHERITS",
|
|
184
|
-
IMPLEMENTS: "IMPLEMENTS"
|
|
184
|
+
IMPLEMENTS: "IMPLEMENTS",
|
|
185
|
+
// Static foreign-key reference between two table InfraNodes (ADR-161).
|
|
186
|
+
// `infra:sql-table:<child> ──REFERENCES──▶ infra:sql-table:<parent>` records
|
|
187
|
+
// that the child table declares a foreign key into the parent — the data-axis
|
|
188
|
+
// sibling of INHERITS/IMPLEMENTS. Both endpoints resolve to the DATABASE table
|
|
189
|
+
// name via `infraId('sql-table', name)` — the same node the column/table
|
|
190
|
+
// extractors and OTLP already target — reproduced verbatim per ORM, so the FK
|
|
191
|
+
// edge lands on the fused table node rather than a code-model twin. EXTRACTED,
|
|
192
|
+
// minted only when the parent resolves to a real declared table without
|
|
193
|
+
// guessing; a computed/unresolved reference emits no edge.
|
|
194
|
+
REFERENCES: "REFERENCES"
|
|
185
195
|
};
|
|
186
196
|
var NodeType = {
|
|
187
197
|
ServiceNode: "ServiceNode",
|
|
@@ -280,7 +290,8 @@ var EdgeTypeSchema = import_zod2.z.enum([
|
|
|
280
290
|
EdgeType.CONTAINS,
|
|
281
291
|
EdgeType.IMPORTS,
|
|
282
292
|
EdgeType.INHERITS,
|
|
283
|
-
EdgeType.IMPLEMENTS
|
|
293
|
+
EdgeType.IMPLEMENTS,
|
|
294
|
+
EdgeType.REFERENCES
|
|
284
295
|
]);
|
|
285
296
|
var EdgeEvidenceSchema = import_zod2.z.object({
|
|
286
297
|
file: import_zod2.z.string(),
|