@neat.is/types 0.10.6-dev.20261010 → 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.js CHANGED
@@ -285,6 +285,10 @@ var ServiceNodeSchema = z3.object({
285
285
  // frontend's icon key at the service-rollup level (ADR-133,
286
286
  // docs/contracts/static-extraction.md).
287
287
  platform: z3.string().optional(),
288
+ // The platform's own name for this service where its config declares one:
289
+ // the Vercel project name from `.vercel/project.json`, the Supabase
290
+ // `project_id` (ADR-138). Optional growth (ADR-031); absent elsewhere.
291
+ platformName: z3.string().optional(),
288
292
  discoveredVia: DiscoveredViaSchema.optional(),
289
293
  version: z3.string().optional(),
290
294
  dbConnectionTarget: z3.string().optional(),
@@ -516,8 +520,15 @@ var WebSocketChannelNodeSchema = z3.object({
516
520
  var SymbolKindSchema = z3.enum(["function", "method", "constructor", "class"]);
517
521
  var SymbolSpanSchema = z3.object({
518
522
  startLine: z3.number().int().nonnegative(),
519
- endLine: z3.number().int().nonnegative()
520
- });
523
+ endLine: z3.number().int().nonnegative(),
524
+ // Optional for runtime-only symbols and graphs produced by older daemons.
525
+ // Zero-based UTF-8 byte offsets in the exact source file, end exclusive.
526
+ startByte: z3.number().int().nonnegative().optional(),
527
+ endByte: z3.number().int().nonnegative().optional()
528
+ }).refine(
529
+ ({ startByte, endByte }) => startByte === void 0 && endByte === void 0 || startByte !== void 0 && endByte !== void 0 && endByte > startByte,
530
+ { message: "symbol byte offsets must be a nonempty pair" }
531
+ );
521
532
  var SymbolNodeSchema = z3.object({
522
533
  id: z3.string(),
523
534
  type: z3.literal(NodeType.SymbolNode),
@@ -950,6 +961,23 @@ var IncidentGradeSchema = z6.object({
950
961
  urgency: z6.object({ value: z6.number().min(0).max(1).nullable(), reason: z6.string().optional() }),
951
962
  priorsVersion: z6.string()
952
963
  });
964
+ var IncidentDeployContextSchema = z6.object({
965
+ // The deploy fault classification (k8s.fault): crash-loop / image-pull /
966
+ // scaled-to-zero / no-ready-replicas.
967
+ fault: z6.string().optional(),
968
+ // The container's waiting reason (CrashLoopBackOff / ImagePullBackOff / …).
969
+ waitingReason: z6.string().optional(),
970
+ image: z6.string().optional(),
971
+ restartCount: z6.number().int().nonnegative().optional(),
972
+ terminatedReason: z6.string().optional(),
973
+ exitCode: z6.number().int().optional(),
974
+ // Redacted, bounded descriptors (ADR-237): a secret-keyed value is masked whole,
975
+ // a valueFrom is a reference descriptor, never a raw secret.
976
+ containerEnv: z6.array(z6.string()).optional(),
977
+ containerArgs: z6.array(z6.string()).optional(),
978
+ // The last-terminated (or current, ADR-239) stdout tail — the boot traceback.
979
+ processLog: z6.string().optional()
980
+ });
953
981
  var IncidentCardSchema = z6.object({
954
982
  kind: z6.literal("incident"),
955
983
  id: z6.string(),
@@ -971,6 +999,9 @@ var IncidentCardSchema = z6.object({
971
999
  blastRadius: IncidentBlastRadiusSchema.optional(),
972
1000
  policies: z6.array(IncidentPolicySchema).optional(),
973
1001
  divergence: z6.array(IncidentDivergenceSchema).optional(),
1002
+ // The OBSERVED deploy/process/config context for a pre-span failure (ADR-240),
1003
+ // present only when the incident carries it (a k8s deploy fault).
1004
+ deployContext: IncidentDeployContextSchema.optional(),
974
1005
  // The rendered one-line sentence — a human/loose-LLM read over the structured
975
1006
  // body, never the wire format.
976
1007
  headline: z6.string(),
@@ -1671,9 +1702,16 @@ var SearchResponseSchema = z10.object({
1671
1702
  provider: z10.string(),
1672
1703
  matches: z10.array(SearchMatchSchema)
1673
1704
  });
1705
+ var Repository = z10.string().regex(/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/);
1706
+ var SourceBaselineSchema = z10.discriminatedUnion("status", [
1707
+ z10.object({ status: z10.literal("ready"), repository: Repository, sha: z10.string().regex(/^[0-9a-f]{40}$/) }),
1708
+ z10.object({ status: z10.literal("syncing"), repository: Repository }),
1709
+ z10.object({ status: z10.literal("unavailable"), repository: Repository })
1710
+ ]);
1674
1711
  var SerializedGraphSchema = z10.object({
1675
1712
  nodes: z10.array(GraphNodeSchema),
1676
- edges: z10.array(GraphEdgeSchema)
1713
+ edges: z10.array(GraphEdgeSchema),
1714
+ sourceBaselines: z10.array(SourceBaselineSchema).optional()
1677
1715
  });
1678
1716
  var GraphDiffResultSchema = z10.object({
1679
1717
  base: z10.object({ exportedAt: z10.string().optional() }),
@@ -1853,6 +1891,7 @@ export {
1853
1891
  IncidentBlastRadiusSchema,
1854
1892
  IncidentCardSchema,
1855
1893
  IncidentChainHopSchema,
1894
+ IncidentDeployContextSchema,
1856
1895
  IncidentDivergenceSchema,
1857
1896
  IncidentEventPayloadSchema,
1858
1897
  IncidentGradeBandSchema,
@@ -1910,6 +1949,7 @@ export {
1910
1949
  ServerActionNodeSchema,
1911
1950
  ServiceNodeSchema,
1912
1951
  SingleProjectResponseSchema,
1952
+ SourceBaselineSchema,
1913
1953
  SpanAttributesSchema,
1914
1954
  StaleEventSchema,
1915
1955
  StaleEventsResponseSchema,