@neat.is/types 0.10.6 → 0.10.7-dev.20261011

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
@@ -82,6 +82,7 @@ __export(index_exports, {
82
82
  IncidentBlastRadiusSchema: () => IncidentBlastRadiusSchema,
83
83
  IncidentCardSchema: () => IncidentCardSchema,
84
84
  IncidentChainHopSchema: () => IncidentChainHopSchema,
85
+ IncidentDeployContextSchema: () => IncidentDeployContextSchema,
85
86
  IncidentDivergenceSchema: () => IncidentDivergenceSchema,
86
87
  IncidentEventPayloadSchema: () => IncidentEventPayloadSchema,
87
88
  IncidentGradeBandSchema: () => IncidentGradeBandSchema,
@@ -477,6 +478,10 @@ var ServiceNodeSchema = import_zod3.z.object({
477
478
  // frontend's icon key at the service-rollup level (ADR-133,
478
479
  // docs/contracts/static-extraction.md).
479
480
  platform: import_zod3.z.string().optional(),
481
+ // The platform's own name for this service where its config declares one:
482
+ // the Vercel project name from `.vercel/project.json`, the Supabase
483
+ // `project_id` (ADR-138). Optional growth (ADR-031); absent elsewhere.
484
+ platformName: import_zod3.z.string().optional(),
480
485
  discoveredVia: DiscoveredViaSchema.optional(),
481
486
  version: import_zod3.z.string().optional(),
482
487
  dbConnectionTarget: import_zod3.z.string().optional(),
@@ -1149,6 +1154,23 @@ var IncidentGradeSchema = import_zod6.z.object({
1149
1154
  urgency: import_zod6.z.object({ value: import_zod6.z.number().min(0).max(1).nullable(), reason: import_zod6.z.string().optional() }),
1150
1155
  priorsVersion: import_zod6.z.string()
1151
1156
  });
1157
+ var IncidentDeployContextSchema = import_zod6.z.object({
1158
+ // The deploy fault classification (k8s.fault): crash-loop / image-pull /
1159
+ // scaled-to-zero / no-ready-replicas.
1160
+ fault: import_zod6.z.string().optional(),
1161
+ // The container's waiting reason (CrashLoopBackOff / ImagePullBackOff / …).
1162
+ waitingReason: import_zod6.z.string().optional(),
1163
+ image: import_zod6.z.string().optional(),
1164
+ restartCount: import_zod6.z.number().int().nonnegative().optional(),
1165
+ terminatedReason: import_zod6.z.string().optional(),
1166
+ exitCode: import_zod6.z.number().int().optional(),
1167
+ // Redacted, bounded descriptors (ADR-237): a secret-keyed value is masked whole,
1168
+ // a valueFrom is a reference descriptor, never a raw secret.
1169
+ containerEnv: import_zod6.z.array(import_zod6.z.string()).optional(),
1170
+ containerArgs: import_zod6.z.array(import_zod6.z.string()).optional(),
1171
+ // The last-terminated (or current, ADR-239) stdout tail — the boot traceback.
1172
+ processLog: import_zod6.z.string().optional()
1173
+ });
1152
1174
  var IncidentCardSchema = import_zod6.z.object({
1153
1175
  kind: import_zod6.z.literal("incident"),
1154
1176
  id: import_zod6.z.string(),
@@ -1170,6 +1192,9 @@ var IncidentCardSchema = import_zod6.z.object({
1170
1192
  blastRadius: IncidentBlastRadiusSchema.optional(),
1171
1193
  policies: import_zod6.z.array(IncidentPolicySchema).optional(),
1172
1194
  divergence: import_zod6.z.array(IncidentDivergenceSchema).optional(),
1195
+ // The OBSERVED deploy/process/config context for a pre-span failure (ADR-240),
1196
+ // present only when the incident carries it (a k8s deploy fault).
1197
+ deployContext: IncidentDeployContextSchema.optional(),
1173
1198
  // The rendered one-line sentence — a human/loose-LLM read over the structured
1174
1199
  // body, never the wire format.
1175
1200
  headline: import_zod6.z.string(),
@@ -2060,6 +2085,7 @@ var PrVerdictBodySchema = import_zod11.z.object({
2060
2085
  IncidentBlastRadiusSchema,
2061
2086
  IncidentCardSchema,
2062
2087
  IncidentChainHopSchema,
2088
+ IncidentDeployContextSchema,
2063
2089
  IncidentDivergenceSchema,
2064
2090
  IncidentEventPayloadSchema,
2065
2091
  IncidentGradeBandSchema,