@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.cjs +45 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +492 -50
- package/dist/index.d.ts +492 -50
- package/dist/index.js +43 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,
|
|
@@ -139,6 +140,7 @@ __export(index_exports, {
|
|
|
139
140
|
ServerActionNodeSchema: () => ServerActionNodeSchema,
|
|
140
141
|
ServiceNodeSchema: () => ServiceNodeSchema,
|
|
141
142
|
SingleProjectResponseSchema: () => SingleProjectResponseSchema,
|
|
143
|
+
SourceBaselineSchema: () => SourceBaselineSchema,
|
|
142
144
|
SpanAttributesSchema: () => SpanAttributesSchema,
|
|
143
145
|
StaleEventSchema: () => StaleEventSchema,
|
|
144
146
|
StaleEventsResponseSchema: () => StaleEventsResponseSchema,
|
|
@@ -476,6 +478,10 @@ var ServiceNodeSchema = import_zod3.z.object({
|
|
|
476
478
|
// frontend's icon key at the service-rollup level (ADR-133,
|
|
477
479
|
// docs/contracts/static-extraction.md).
|
|
478
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(),
|
|
479
485
|
discoveredVia: DiscoveredViaSchema.optional(),
|
|
480
486
|
version: import_zod3.z.string().optional(),
|
|
481
487
|
dbConnectionTarget: import_zod3.z.string().optional(),
|
|
@@ -707,8 +713,15 @@ var WebSocketChannelNodeSchema = import_zod3.z.object({
|
|
|
707
713
|
var SymbolKindSchema = import_zod3.z.enum(["function", "method", "constructor", "class"]);
|
|
708
714
|
var SymbolSpanSchema = import_zod3.z.object({
|
|
709
715
|
startLine: import_zod3.z.number().int().nonnegative(),
|
|
710
|
-
endLine: import_zod3.z.number().int().nonnegative()
|
|
711
|
-
|
|
716
|
+
endLine: import_zod3.z.number().int().nonnegative(),
|
|
717
|
+
// Optional for runtime-only symbols and graphs produced by older daemons.
|
|
718
|
+
// Zero-based UTF-8 byte offsets in the exact source file, end exclusive.
|
|
719
|
+
startByte: import_zod3.z.number().int().nonnegative().optional(),
|
|
720
|
+
endByte: import_zod3.z.number().int().nonnegative().optional()
|
|
721
|
+
}).refine(
|
|
722
|
+
({ startByte, endByte }) => startByte === void 0 && endByte === void 0 || startByte !== void 0 && endByte !== void 0 && endByte > startByte,
|
|
723
|
+
{ message: "symbol byte offsets must be a nonempty pair" }
|
|
724
|
+
);
|
|
712
725
|
var SymbolNodeSchema = import_zod3.z.object({
|
|
713
726
|
id: import_zod3.z.string(),
|
|
714
727
|
type: import_zod3.z.literal(NodeType.SymbolNode),
|
|
@@ -1141,6 +1154,23 @@ var IncidentGradeSchema = import_zod6.z.object({
|
|
|
1141
1154
|
urgency: import_zod6.z.object({ value: import_zod6.z.number().min(0).max(1).nullable(), reason: import_zod6.z.string().optional() }),
|
|
1142
1155
|
priorsVersion: import_zod6.z.string()
|
|
1143
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
|
+
});
|
|
1144
1174
|
var IncidentCardSchema = import_zod6.z.object({
|
|
1145
1175
|
kind: import_zod6.z.literal("incident"),
|
|
1146
1176
|
id: import_zod6.z.string(),
|
|
@@ -1162,6 +1192,9 @@ var IncidentCardSchema = import_zod6.z.object({
|
|
|
1162
1192
|
blastRadius: IncidentBlastRadiusSchema.optional(),
|
|
1163
1193
|
policies: import_zod6.z.array(IncidentPolicySchema).optional(),
|
|
1164
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(),
|
|
1165
1198
|
// The rendered one-line sentence — a human/loose-LLM read over the structured
|
|
1166
1199
|
// body, never the wire format.
|
|
1167
1200
|
headline: import_zod6.z.string(),
|
|
@@ -1862,9 +1895,16 @@ var SearchResponseSchema = import_zod10.z.object({
|
|
|
1862
1895
|
provider: import_zod10.z.string(),
|
|
1863
1896
|
matches: import_zod10.z.array(SearchMatchSchema)
|
|
1864
1897
|
});
|
|
1898
|
+
var Repository = import_zod10.z.string().regex(/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/);
|
|
1899
|
+
var SourceBaselineSchema = import_zod10.z.discriminatedUnion("status", [
|
|
1900
|
+
import_zod10.z.object({ status: import_zod10.z.literal("ready"), repository: Repository, sha: import_zod10.z.string().regex(/^[0-9a-f]{40}$/) }),
|
|
1901
|
+
import_zod10.z.object({ status: import_zod10.z.literal("syncing"), repository: Repository }),
|
|
1902
|
+
import_zod10.z.object({ status: import_zod10.z.literal("unavailable"), repository: Repository })
|
|
1903
|
+
]);
|
|
1865
1904
|
var SerializedGraphSchema = import_zod10.z.object({
|
|
1866
1905
|
nodes: import_zod10.z.array(GraphNodeSchema),
|
|
1867
|
-
edges: import_zod10.z.array(GraphEdgeSchema)
|
|
1906
|
+
edges: import_zod10.z.array(GraphEdgeSchema),
|
|
1907
|
+
sourceBaselines: import_zod10.z.array(SourceBaselineSchema).optional()
|
|
1868
1908
|
});
|
|
1869
1909
|
var GraphDiffResultSchema = import_zod10.z.object({
|
|
1870
1910
|
base: import_zod10.z.object({ exportedAt: import_zod10.z.string().optional() }),
|
|
@@ -2045,6 +2085,7 @@ var PrVerdictBodySchema = import_zod11.z.object({
|
|
|
2045
2085
|
IncidentBlastRadiusSchema,
|
|
2046
2086
|
IncidentCardSchema,
|
|
2047
2087
|
IncidentChainHopSchema,
|
|
2088
|
+
IncidentDeployContextSchema,
|
|
2048
2089
|
IncidentDivergenceSchema,
|
|
2049
2090
|
IncidentEventPayloadSchema,
|
|
2050
2091
|
IncidentGradeBandSchema,
|
|
@@ -2102,6 +2143,7 @@ var PrVerdictBodySchema = import_zod11.z.object({
|
|
|
2102
2143
|
ServerActionNodeSchema,
|
|
2103
2144
|
ServiceNodeSchema,
|
|
2104
2145
|
SingleProjectResponseSchema,
|
|
2146
|
+
SourceBaselineSchema,
|
|
2105
2147
|
SpanAttributesSchema,
|
|
2106
2148
|
StaleEventSchema,
|
|
2107
2149
|
StaleEventsResponseSchema,
|