@neat.is/types 0.9.2 → 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,
@@ -336,7 +338,18 @@ var EdgeEvidenceSchema = import_zod2.z.object({
336
338
  // client named, alongside the file:line it named them at. Absent on every
337
339
  // other edge — a config or infra edge has no HTTP method.
338
340
  method: import_zod2.z.string().optional(),
339
- pathTemplate: import_zod2.z.string().optional()
341
+ pathTemplate: import_zod2.z.string().optional(),
342
+ // How a datastore host was recovered (ADR-213). `config` when the host came
343
+ // from an env var / IConfiguration key / config file — the deployment's real
344
+ // target; `literal` when it was read from a hardcoded string literal in
345
+ // source. The divergence ranker reads this to tell a genuine declared store
346
+ // from a hardcoded fault-injection / flag-gated probe: a `literal` host
347
+ // production never observed, sitting beside a `config`-driven store of the
348
+ // same engine on the same service, is a dead alternate whose missing-observed
349
+ // is dampened rather than surfaced as a real gap. Present only on datastore
350
+ // CONNECTS_TO edges from a recogniser that distinguishes the two; absent on
351
+ // every other edge.
352
+ hostSource: import_zod2.z.enum(["literal", "config"]).optional()
340
353
  });
341
354
  var LatencyMsSchema = import_zod2.z.object({
342
355
  p50: import_zod2.z.number().nonnegative(),
@@ -1384,12 +1397,35 @@ var CompatViolationDivergenceSchema = import_zod8.z.object({
1384
1397
  rule: CompatRuleRefSchema,
1385
1398
  observed: GraphEdgeSchema
1386
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
+ });
1387
1422
  var DivergenceSchema = import_zod8.z.discriminatedUnion("type", [
1388
1423
  MissingObservedDivergenceSchema,
1389
1424
  MissingExtractedDivergenceSchema,
1390
1425
  VersionMismatchDivergenceSchema,
1391
1426
  HostMismatchDivergenceSchema,
1392
- CompatViolationDivergenceSchema
1427
+ CompatViolationDivergenceSchema,
1428
+ ObservedSymbolMismatchDivergenceSchema
1393
1429
  ]);
1394
1430
  var DivergenceResultSchema = import_zod8.z.object({
1395
1431
  divergences: import_zod8.z.array(DivergenceSchema),
@@ -1403,7 +1439,8 @@ var DivergenceTypeSchema = import_zod8.z.enum([
1403
1439
  "missing-extracted",
1404
1440
  "version-mismatch",
1405
1441
  "host-mismatch",
1406
- "compat-violation"
1442
+ "compat-violation",
1443
+ "observed-symbol-mismatch"
1407
1444
  ]);
1408
1445
 
1409
1446
  // src/mcp-tools.ts
@@ -1679,6 +1716,7 @@ function passesExtractedFloor(confidence) {
1679
1716
  NodeType,
1680
1717
  NodeTypeSchema,
1681
1718
  ObservedDependenciesResultSchema,
1719
+ ObservedSymbolMismatchDivergenceSchema,
1682
1720
  OwnershipRuleSchema,
1683
1721
  PROV_RANK,
1684
1722
  PoliciesCheckBodySchema,
@@ -1713,6 +1751,7 @@ function passesExtractedFloor(confidence) {
1713
1751
  StaleEventsResponseSchema,
1714
1752
  StructuralRuleSchema,
1715
1753
  SymbolKindSchema,
1754
+ SymbolMismatchKindSchema,
1716
1755
  SymbolNodeSchema,
1717
1756
  SymbolSpanSchema,
1718
1757
  TransitiveDependenciesResultSchema,