@neat.is/types 0.10.6-dev.20261007 → 0.10.6-dev.20261008

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
@@ -57,6 +57,7 @@ __export(index_exports, {
57
57
  EMPTY_REGISTRY: () => EMPTY_REGISTRY,
58
58
  EXTRACTED_CONFIDENCE: () => EXTRACTED_CONFIDENCE,
59
59
  EdgeAnomalySchema: () => EdgeAnomalySchema,
60
+ EdgeErrorExemplarSchema: () => EdgeErrorExemplarSchema,
60
61
  EdgeEvidenceSchema: () => EdgeEvidenceSchema,
61
62
  EdgeSignalSchema: () => EdgeSignalSchema,
62
63
  EdgeType: () => EdgeType,
@@ -393,6 +394,12 @@ var EdgeAnomalySchema = import_zod2.z.union([
393
394
  import_zod2.z.object({ source: import_zod2.z.string(), rule: import_zod2.z.string() }),
394
395
  import_zod2.z.boolean()
395
396
  ]);
397
+ var EdgeErrorExemplarSchema = import_zod2.z.object({
398
+ exceptionType: import_zod2.z.string().optional(),
399
+ message: import_zod2.z.string().optional(),
400
+ at: import_zod2.z.string().optional(),
401
+ httpStatusCode: import_zod2.z.number().optional()
402
+ });
396
403
  var EdgeSignalSchema = import_zod2.z.object({
397
404
  spanCount: import_zod2.z.number().int().nonnegative(),
398
405
  errorCount: import_zod2.z.number().int().nonnegative(),
@@ -408,7 +415,12 @@ var EdgeSignalSchema = import_zod2.z.object({
408
415
  latencyHist: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.number().int().nonnegative()).optional(),
409
416
  // A pre-thresholded external alert riding on the edge (ADR-190). Optional and
410
417
  // empty until an alert source is wired.
411
- anomalous: EdgeAnomalySchema.optional()
418
+ anomalous: EdgeAnomalySchema.optional(),
419
+ // A bounded last-error exemplar (ADR-236) — the most recent failing
420
+ // observation's exception type/message/status, so the edge carries WHAT
421
+ // failed, not just how many times. Additive optional growth (ADR-031); absent
422
+ // on a clean edge, on a legacy edge, and on a connector edge with no detail.
423
+ lastError: EdgeErrorExemplarSchema.optional()
412
424
  });
413
425
  var GraphEdgeSchema = import_zod2.z.object({
414
426
  id: import_zod2.z.string(),
@@ -1629,6 +1641,10 @@ var ObservedFailingDivergenceSchema = import_zod9.z.object({
1629
1641
  spanCount: import_zod9.z.number().int().nonnegative().optional(),
1630
1642
  errorCount: import_zod9.z.number().int().nonnegative().optional(),
1631
1643
  errorRate: import_zod9.z.number().min(0).max(1).optional(),
1644
+ // The failing edge's bounded last-error exemplar (ADR-236) — WHAT failed,
1645
+ // alongside the error-rate evidence. Edge locus only; absent when the edge
1646
+ // carried no exception/status detail.
1647
+ lastError: EdgeErrorExemplarSchema.optional(),
1632
1648
  // Incident locus (the declared external call whose incident shows a failure).
1633
1649
  location: import_zod9.z.string().optional(),
1634
1650
  incidentId: import_zod9.z.string().optional(),
@@ -1956,6 +1972,7 @@ var PrVerdictBodySchema = import_zod11.z.object({
1956
1972
  EMPTY_REGISTRY,
1957
1973
  EXTRACTED_CONFIDENCE,
1958
1974
  EdgeAnomalySchema,
1975
+ EdgeErrorExemplarSchema,
1959
1976
  EdgeEvidenceSchema,
1960
1977
  EdgeSignalSchema,
1961
1978
  EdgeType,