@neat.is/types 0.9.6 → 0.9.7

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,8 @@ __export(index_exports, {
90
90
  NodeType: () => NodeType,
91
91
  NodeTypeSchema: () => NodeTypeSchema,
92
92
  ObservedDependenciesResultSchema: () => ObservedDependenciesResultSchema,
93
+ ObservedFailingDivergenceSchema: () => ObservedFailingDivergenceSchema,
94
+ ObservedFailureKindSchema: () => ObservedFailureKindSchema,
93
95
  ObservedSymbolMismatchDivergenceSchema: () => ObservedSymbolMismatchDivergenceSchema,
94
96
  OwnershipRuleSchema: () => OwnershipRuleSchema,
95
97
  PROV_RANK: () => PROV_RANK,
@@ -1428,13 +1430,40 @@ var ObservedSymbolMismatchDivergenceSchema = import_zod8.z.object({
1428
1430
  // failure has usually fired more than once.
1429
1431
  incidentCount: import_zod8.z.number().int().positive().optional()
1430
1432
  });
1433
+ var ObservedFailureKindSchema = import_zod8.z.enum([
1434
+ "error-rate",
1435
+ "connection-refused",
1436
+ "deadline-exceeded",
1437
+ "timeout",
1438
+ "unavailable",
1439
+ "server-error"
1440
+ ]);
1441
+ var ObservedFailingDivergenceSchema = import_zod8.z.object({
1442
+ type: import_zod8.z.literal("observed-failing"),
1443
+ ...commonFields,
1444
+ failureKind: ObservedFailureKindSchema,
1445
+ provenance: ProvenanceSchema,
1446
+ // Edge locus (the observed dependency edge whose calls predominantly fail).
1447
+ edgeType: EdgeTypeSchema.optional(),
1448
+ observed: GraphEdgeSchema.optional(),
1449
+ spanCount: import_zod8.z.number().int().nonnegative().optional(),
1450
+ errorCount: import_zod8.z.number().int().nonnegative().optional(),
1451
+ errorRate: import_zod8.z.number().min(0).max(1).optional(),
1452
+ // Incident locus (the declared external call whose incident shows a failure).
1453
+ location: import_zod8.z.string().optional(),
1454
+ incidentId: import_zod8.z.string().optional(),
1455
+ errorMessage: import_zod8.z.string().optional(),
1456
+ incidentCount: import_zod8.z.number().int().positive().optional(),
1457
+ httpStatusCode: import_zod8.z.number().int().optional()
1458
+ });
1431
1459
  var DivergenceSchema = import_zod8.z.discriminatedUnion("type", [
1432
1460
  MissingObservedDivergenceSchema,
1433
1461
  MissingExtractedDivergenceSchema,
1434
1462
  VersionMismatchDivergenceSchema,
1435
1463
  HostMismatchDivergenceSchema,
1436
1464
  CompatViolationDivergenceSchema,
1437
- ObservedSymbolMismatchDivergenceSchema
1465
+ ObservedSymbolMismatchDivergenceSchema,
1466
+ ObservedFailingDivergenceSchema
1438
1467
  ]);
1439
1468
  var DivergenceResultSchema = import_zod8.z.object({
1440
1469
  divergences: import_zod8.z.array(DivergenceSchema),
@@ -1449,7 +1478,8 @@ var DivergenceTypeSchema = import_zod8.z.enum([
1449
1478
  "version-mismatch",
1450
1479
  "host-mismatch",
1451
1480
  "compat-violation",
1452
- "observed-symbol-mismatch"
1481
+ "observed-symbol-mismatch",
1482
+ "observed-failing"
1453
1483
  ]);
1454
1484
 
1455
1485
  // src/mcp-tools.ts
@@ -1726,6 +1756,8 @@ function passesExtractedFloor(confidence) {
1726
1756
  NodeType,
1727
1757
  NodeTypeSchema,
1728
1758
  ObservedDependenciesResultSchema,
1759
+ ObservedFailingDivergenceSchema,
1760
+ ObservedFailureKindSchema,
1729
1761
  ObservedSymbolMismatchDivergenceSchema,
1730
1762
  OwnershipRuleSchema,
1731
1763
  PROV_RANK,