@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.cjs CHANGED
@@ -48,6 +48,8 @@ __export(index_exports, {
48
48
  DEFAULT_EXTRACTED_PRECISION_FLOOR: () => DEFAULT_EXTRACTED_PRECISION_FLOOR,
49
49
  DaemonHealthResponseSchema: () => DaemonHealthResponseSchema,
50
50
  DatabaseNodeSchema: () => DatabaseNodeSchema,
51
+ DeployMismatchDivergenceSchema: () => DeployMismatchDivergenceSchema,
52
+ DeployMismatchKindSchema: () => DeployMismatchKindSchema,
51
53
  DiscoveredViaSchema: () => DiscoveredViaSchema,
52
54
  DivergenceResultSchema: () => DivergenceResultSchema,
53
55
  DivergenceSchema: () => DivergenceSchema,
@@ -459,6 +461,16 @@ var ServiceNodeSchema = import_zod3.z.object({
459
461
  // absent on a non-k8s service. See docs/contracts/schema.md.
460
462
  declaredImage: import_zod3.z.string().optional(),
461
463
  declaredReplicas: import_zod3.z.number().optional(),
464
+ // Observed k8s deploy state, stamped by the k8s observed reader
465
+ // (`connectors/kubernetes/`) from live cluster state: the container image the
466
+ // running pods actually report and the count of ready replicas. Compared on
467
+ // this same `service:<name>` node against `declaredImage`/`declaredReplicas`
468
+ // (above) to surface a `deploy-mismatch` divergence — the stuck rollout where
469
+ // the manifest declares a new image but the old pods still serve it, so no
470
+ // incident fires (the service is up) yet declared ≠ running. Optional growth
471
+ // (ADR-031, ADR-225), absent on a non-k8s service.
472
+ observedImage: import_zod3.z.string().optional(),
473
+ observedReadyReplicas: import_zod3.z.number().optional(),
462
474
  repoPath: import_zod3.z.string().optional(),
463
475
  owner: import_zod3.z.string().optional(),
464
476
  dependencies: import_zod3.z.record(import_zod3.z.string(), import_zod3.z.string()).optional(),
@@ -804,6 +816,7 @@ var NodeContextSchema = import_zod5.z.object({
804
816
  var NodeClassificationSchema = import_zod5.z.enum([
805
817
  "primary-failure",
806
818
  "symptom-only",
819
+ "unreachable",
807
820
  "unrelated"
808
821
  ]);
809
822
  var RootCauseCandidateSchema = import_zod5.z.object({
@@ -1595,6 +1608,16 @@ var ObservedFailingDivergenceSchema = import_zod9.z.object({
1595
1608
  incidentCount: import_zod9.z.number().int().positive().optional(),
1596
1609
  httpStatusCode: import_zod9.z.number().int().optional()
1597
1610
  });
1611
+ var DeployMismatchKindSchema = import_zod9.z.enum(["image", "replicas"]);
1612
+ var DeployMismatchDivergenceSchema = import_zod9.z.object({
1613
+ type: import_zod9.z.literal("deploy-mismatch"),
1614
+ ...commonFields,
1615
+ kind: DeployMismatchKindSchema,
1616
+ declaredImage: import_zod9.z.string().optional(),
1617
+ observedImage: import_zod9.z.string().optional(),
1618
+ declaredReplicas: import_zod9.z.number().optional(),
1619
+ observedReplicas: import_zod9.z.number().optional()
1620
+ });
1598
1621
  var DivergenceSchema = import_zod9.z.discriminatedUnion("type", [
1599
1622
  MissingObservedDivergenceSchema,
1600
1623
  MissingExtractedDivergenceSchema,
@@ -1602,7 +1625,8 @@ var DivergenceSchema = import_zod9.z.discriminatedUnion("type", [
1602
1625
  HostMismatchDivergenceSchema,
1603
1626
  CompatViolationDivergenceSchema,
1604
1627
  ObservedSymbolMismatchDivergenceSchema,
1605
- ObservedFailingDivergenceSchema
1628
+ ObservedFailingDivergenceSchema,
1629
+ DeployMismatchDivergenceSchema
1606
1630
  ]);
1607
1631
  var DivergenceResultSchema = import_zod9.z.object({
1608
1632
  divergences: import_zod9.z.array(DivergenceSchema),
@@ -1618,7 +1642,8 @@ var DivergenceTypeSchema = import_zod9.z.enum([
1618
1642
  "host-mismatch",
1619
1643
  "compat-violation",
1620
1644
  "observed-symbol-mismatch",
1621
- "observed-failing"
1645
+ "observed-failing",
1646
+ "deploy-mismatch"
1622
1647
  ]);
1623
1648
 
1624
1649
  // src/mcp-tools.ts
@@ -1857,6 +1882,8 @@ function passesExtractedFloor(confidence) {
1857
1882
  DEFAULT_EXTRACTED_PRECISION_FLOOR,
1858
1883
  DaemonHealthResponseSchema,
1859
1884
  DatabaseNodeSchema,
1885
+ DeployMismatchDivergenceSchema,
1886
+ DeployMismatchKindSchema,
1860
1887
  DiscoveredViaSchema,
1861
1888
  DivergenceResultSchema,
1862
1889
  DivergenceSchema,