@neat.is/types 0.7.3 → 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.js CHANGED
@@ -31,7 +31,17 @@ var EdgeType = {
31
31
  // fuzzy-matched. A parent that resolves to nothing (external package,
32
32
  // re-export chain, an interface, which is not a SymbolNode) emits no edge.
33
33
  INHERITS: "INHERITS",
34
- IMPLEMENTS: "IMPLEMENTS"
34
+ IMPLEMENTS: "IMPLEMENTS",
35
+ // Static foreign-key reference between two table InfraNodes (ADR-161).
36
+ // `infra:sql-table:<child> ──REFERENCES──▶ infra:sql-table:<parent>` records
37
+ // that the child table declares a foreign key into the parent — the data-axis
38
+ // sibling of INHERITS/IMPLEMENTS. Both endpoints resolve to the DATABASE table
39
+ // name via `infraId('sql-table', name)` — the same node the column/table
40
+ // extractors and OTLP already target — reproduced verbatim per ORM, so the FK
41
+ // edge lands on the fused table node rather than a code-model twin. EXTRACTED,
42
+ // minted only when the parent resolves to a real declared table without
43
+ // guessing; a computed/unresolved reference emits no edge.
44
+ REFERENCES: "REFERENCES"
35
45
  };
36
46
  var NodeType = {
37
47
  ServiceNode: "ServiceNode",
@@ -130,7 +140,8 @@ var EdgeTypeSchema = z2.enum([
130
140
  EdgeType.CONTAINS,
131
141
  EdgeType.IMPORTS,
132
142
  EdgeType.INHERITS,
133
- EdgeType.IMPLEMENTS
143
+ EdgeType.IMPLEMENTS,
144
+ EdgeType.REFERENCES
134
145
  ]);
135
146
  var EdgeEvidenceSchema = z2.object({
136
147
  file: z2.string(),