@neat.is/types 0.9.12 → 0.9.13

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
@@ -277,6 +277,16 @@ var ServiceNodeSchema = z3.object({
277
277
  // absent on a non-k8s service. See docs/contracts/schema.md.
278
278
  declaredImage: z3.string().optional(),
279
279
  declaredReplicas: z3.number().optional(),
280
+ // Observed k8s deploy state, stamped by the k8s observed reader
281
+ // (`connectors/kubernetes/`) from live cluster state: the container image the
282
+ // running pods actually report and the count of ready replicas. Compared on
283
+ // this same `service:<name>` node against `declaredImage`/`declaredReplicas`
284
+ // (above) to surface a `deploy-mismatch` divergence — the stuck rollout where
285
+ // the manifest declares a new image but the old pods still serve it, so no
286
+ // incident fires (the service is up) yet declared ≠ running. Optional growth
287
+ // (ADR-031, ADR-225), absent on a non-k8s service.
288
+ observedImage: z3.string().optional(),
289
+ observedReadyReplicas: z3.number().optional(),
280
290
  repoPath: z3.string().optional(),
281
291
  owner: z3.string().optional(),
282
292
  dependencies: z3.record(z3.string(), z3.string()).optional(),
@@ -622,6 +632,7 @@ var NodeContextSchema = z5.object({
622
632
  var NodeClassificationSchema = z5.enum([
623
633
  "primary-failure",
624
634
  "symptom-only",
635
+ "unreachable",
625
636
  "unrelated"
626
637
  ]);
627
638
  var RootCauseCandidateSchema = z5.object({
@@ -1413,6 +1424,16 @@ var ObservedFailingDivergenceSchema = z9.object({
1413
1424
  incidentCount: z9.number().int().positive().optional(),
1414
1425
  httpStatusCode: z9.number().int().optional()
1415
1426
  });
1427
+ var DeployMismatchKindSchema = z9.enum(["image", "replicas"]);
1428
+ var DeployMismatchDivergenceSchema = z9.object({
1429
+ type: z9.literal("deploy-mismatch"),
1430
+ ...commonFields,
1431
+ kind: DeployMismatchKindSchema,
1432
+ declaredImage: z9.string().optional(),
1433
+ observedImage: z9.string().optional(),
1434
+ declaredReplicas: z9.number().optional(),
1435
+ observedReplicas: z9.number().optional()
1436
+ });
1416
1437
  var DivergenceSchema = z9.discriminatedUnion("type", [
1417
1438
  MissingObservedDivergenceSchema,
1418
1439
  MissingExtractedDivergenceSchema,
@@ -1420,7 +1441,8 @@ var DivergenceSchema = z9.discriminatedUnion("type", [
1420
1441
  HostMismatchDivergenceSchema,
1421
1442
  CompatViolationDivergenceSchema,
1422
1443
  ObservedSymbolMismatchDivergenceSchema,
1423
- ObservedFailingDivergenceSchema
1444
+ ObservedFailingDivergenceSchema,
1445
+ DeployMismatchDivergenceSchema
1424
1446
  ]);
1425
1447
  var DivergenceResultSchema = z9.object({
1426
1448
  divergences: z9.array(DivergenceSchema),
@@ -1436,7 +1458,8 @@ var DivergenceTypeSchema = z9.enum([
1436
1458
  "host-mismatch",
1437
1459
  "compat-violation",
1438
1460
  "observed-symbol-mismatch",
1439
- "observed-failing"
1461
+ "observed-failing",
1462
+ "deploy-mismatch"
1440
1463
  ]);
1441
1464
 
1442
1465
  // src/mcp-tools.ts
@@ -1674,6 +1697,8 @@ export {
1674
1697
  DEFAULT_EXTRACTED_PRECISION_FLOOR,
1675
1698
  DaemonHealthResponseSchema,
1676
1699
  DatabaseNodeSchema,
1700
+ DeployMismatchDivergenceSchema,
1701
+ DeployMismatchKindSchema,
1677
1702
  DiscoveredViaSchema,
1678
1703
  DivergenceResultSchema,
1679
1704
  DivergenceSchema,