@neat.is/types 0.9.7-dev.20260827 → 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.js CHANGED
@@ -1258,13 +1258,40 @@ var ObservedSymbolMismatchDivergenceSchema = z8.object({
1258
1258
  // failure has usually fired more than once.
1259
1259
  incidentCount: z8.number().int().positive().optional()
1260
1260
  });
1261
+ var ObservedFailureKindSchema = z8.enum([
1262
+ "error-rate",
1263
+ "connection-refused",
1264
+ "deadline-exceeded",
1265
+ "timeout",
1266
+ "unavailable",
1267
+ "server-error"
1268
+ ]);
1269
+ var ObservedFailingDivergenceSchema = z8.object({
1270
+ type: z8.literal("observed-failing"),
1271
+ ...commonFields,
1272
+ failureKind: ObservedFailureKindSchema,
1273
+ provenance: ProvenanceSchema,
1274
+ // Edge locus (the observed dependency edge whose calls predominantly fail).
1275
+ edgeType: EdgeTypeSchema.optional(),
1276
+ observed: GraphEdgeSchema.optional(),
1277
+ spanCount: z8.number().int().nonnegative().optional(),
1278
+ errorCount: z8.number().int().nonnegative().optional(),
1279
+ errorRate: z8.number().min(0).max(1).optional(),
1280
+ // Incident locus (the declared external call whose incident shows a failure).
1281
+ location: z8.string().optional(),
1282
+ incidentId: z8.string().optional(),
1283
+ errorMessage: z8.string().optional(),
1284
+ incidentCount: z8.number().int().positive().optional(),
1285
+ httpStatusCode: z8.number().int().optional()
1286
+ });
1261
1287
  var DivergenceSchema = z8.discriminatedUnion("type", [
1262
1288
  MissingObservedDivergenceSchema,
1263
1289
  MissingExtractedDivergenceSchema,
1264
1290
  VersionMismatchDivergenceSchema,
1265
1291
  HostMismatchDivergenceSchema,
1266
1292
  CompatViolationDivergenceSchema,
1267
- ObservedSymbolMismatchDivergenceSchema
1293
+ ObservedSymbolMismatchDivergenceSchema,
1294
+ ObservedFailingDivergenceSchema
1268
1295
  ]);
1269
1296
  var DivergenceResultSchema = z8.object({
1270
1297
  divergences: z8.array(DivergenceSchema),
@@ -1279,7 +1306,8 @@ var DivergenceTypeSchema = z8.enum([
1279
1306
  "version-mismatch",
1280
1307
  "host-mismatch",
1281
1308
  "compat-violation",
1282
- "observed-symbol-mismatch"
1309
+ "observed-symbol-mismatch",
1310
+ "observed-failing"
1283
1311
  ]);
1284
1312
 
1285
1313
  // src/mcp-tools.ts
@@ -1555,6 +1583,8 @@ export {
1555
1583
  NodeType,
1556
1584
  NodeTypeSchema,
1557
1585
  ObservedDependenciesResultSchema,
1586
+ ObservedFailingDivergenceSchema,
1587
+ ObservedFailureKindSchema,
1558
1588
  ObservedSymbolMismatchDivergenceSchema,
1559
1589
  OwnershipRuleSchema,
1560
1590
  PROV_RANK,