@neat.is/types 0.9.3-dev.20260823 → 0.9.3

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 CHANGED
@@ -90,6 +90,7 @@ __export(index_exports, {
90
90
  NodeType: () => NodeType,
91
91
  NodeTypeSchema: () => NodeTypeSchema,
92
92
  ObservedDependenciesResultSchema: () => ObservedDependenciesResultSchema,
93
+ ObservedSymbolMismatchDivergenceSchema: () => ObservedSymbolMismatchDivergenceSchema,
93
94
  OwnershipRuleSchema: () => OwnershipRuleSchema,
94
95
  PROV_RANK: () => PROV_RANK,
95
96
  PoliciesCheckBodySchema: () => PoliciesCheckBodySchema,
@@ -124,6 +125,7 @@ __export(index_exports, {
124
125
  StaleEventsResponseSchema: () => StaleEventsResponseSchema,
125
126
  StructuralRuleSchema: () => StructuralRuleSchema,
126
127
  SymbolKindSchema: () => SymbolKindSchema,
128
+ SymbolMismatchKindSchema: () => SymbolMismatchKindSchema,
127
129
  SymbolNodeSchema: () => SymbolNodeSchema,
128
130
  SymbolSpanSchema: () => SymbolSpanSchema,
129
131
  TransitiveDependenciesResultSchema: () => TransitiveDependenciesResultSchema,
@@ -1395,12 +1397,35 @@ var CompatViolationDivergenceSchema = import_zod8.z.object({
1395
1397
  rule: CompatRuleRefSchema,
1396
1398
  observed: GraphEdgeSchema
1397
1399
  });
1400
+ var SymbolMismatchKindSchema = import_zod8.z.enum([
1401
+ "missing-attribute",
1402
+ "missing-field",
1403
+ "missing-property",
1404
+ "missing-column",
1405
+ "undefined-method"
1406
+ ]);
1407
+ var ObservedSymbolMismatchDivergenceSchema = import_zod8.z.object({
1408
+ type: import_zod8.z.literal("observed-symbol-mismatch"),
1409
+ ...commonFields,
1410
+ mismatchKind: SymbolMismatchKindSchema,
1411
+ symbol: import_zod8.z.string().optional(),
1412
+ location: import_zod8.z.string().optional(),
1413
+ provenance: ProvenanceSchema,
1414
+ // The OBSERVED incident this fuses — its id and the raw error text — so a
1415
+ // consumer can trace the finding back to the recorded failure.
1416
+ incidentId: import_zod8.z.string().optional(),
1417
+ errorMessage: import_zod8.z.string(),
1418
+ // How many recorded incidents share this (node, member, mismatch) — the
1419
+ // failure has usually fired more than once.
1420
+ incidentCount: import_zod8.z.number().int().positive().optional()
1421
+ });
1398
1422
  var DivergenceSchema = import_zod8.z.discriminatedUnion("type", [
1399
1423
  MissingObservedDivergenceSchema,
1400
1424
  MissingExtractedDivergenceSchema,
1401
1425
  VersionMismatchDivergenceSchema,
1402
1426
  HostMismatchDivergenceSchema,
1403
- CompatViolationDivergenceSchema
1427
+ CompatViolationDivergenceSchema,
1428
+ ObservedSymbolMismatchDivergenceSchema
1404
1429
  ]);
1405
1430
  var DivergenceResultSchema = import_zod8.z.object({
1406
1431
  divergences: import_zod8.z.array(DivergenceSchema),
@@ -1414,7 +1439,8 @@ var DivergenceTypeSchema = import_zod8.z.enum([
1414
1439
  "missing-extracted",
1415
1440
  "version-mismatch",
1416
1441
  "host-mismatch",
1417
- "compat-violation"
1442
+ "compat-violation",
1443
+ "observed-symbol-mismatch"
1418
1444
  ]);
1419
1445
 
1420
1446
  // src/mcp-tools.ts
@@ -1690,6 +1716,7 @@ function passesExtractedFloor(confidence) {
1690
1716
  NodeType,
1691
1717
  NodeTypeSchema,
1692
1718
  ObservedDependenciesResultSchema,
1719
+ ObservedSymbolMismatchDivergenceSchema,
1693
1720
  OwnershipRuleSchema,
1694
1721
  PROV_RANK,
1695
1722
  PoliciesCheckBodySchema,
@@ -1724,6 +1751,7 @@ function passesExtractedFloor(confidence) {
1724
1751
  StaleEventsResponseSchema,
1725
1752
  StructuralRuleSchema,
1726
1753
  SymbolKindSchema,
1754
+ SymbolMismatchKindSchema,
1727
1755
  SymbolNodeSchema,
1728
1756
  SymbolSpanSchema,
1729
1757
  TransitiveDependenciesResultSchema,