@neat.is/types 0.10.6-dev.20261008 → 0.10.6-dev.20261009
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 +54 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1100 -11
- package/dist/index.d.ts +1100 -11
- package/dist/index.js +50 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -84,6 +84,10 @@ __export(index_exports, {
|
|
|
84
84
|
IncidentChainHopSchema: () => IncidentChainHopSchema,
|
|
85
85
|
IncidentDivergenceSchema: () => IncidentDivergenceSchema,
|
|
86
86
|
IncidentEventPayloadSchema: () => IncidentEventPayloadSchema,
|
|
87
|
+
IncidentGradeBandSchema: () => IncidentGradeBandSchema,
|
|
88
|
+
IncidentGradeFactorSchema: () => IncidentGradeFactorSchema,
|
|
89
|
+
IncidentGradeGateSchema: () => IncidentGradeGateSchema,
|
|
90
|
+
IncidentGradeSchema: () => IncidentGradeSchema,
|
|
87
91
|
IncidentKindSchema: () => IncidentKindSchema,
|
|
88
92
|
IncidentLocusSchema: () => IncidentLocusSchema,
|
|
89
93
|
IncidentPolicySchema: () => IncidentPolicySchema,
|
|
@@ -1089,12 +1093,54 @@ var IncidentBlastRadiusSchema = import_zod6.z.object({
|
|
|
1089
1093
|
var IncidentPolicySchema = import_zod6.z.object({
|
|
1090
1094
|
policyName: import_zod6.z.string(),
|
|
1091
1095
|
severity: import_zod6.z.string(),
|
|
1092
|
-
message: import_zod6.z.string().optional()
|
|
1096
|
+
message: import_zod6.z.string().optional(),
|
|
1097
|
+
// What the policy does when violated, as the policy overlay already resolves it
|
|
1098
|
+
// (explicit onViolation, else the severity default, ADR-044). The grade's
|
|
1099
|
+
// policy gate reads it.
|
|
1100
|
+
onViolation: import_zod6.z.enum(["log", "alert", "block"]).optional()
|
|
1093
1101
|
});
|
|
1094
1102
|
var IncidentDivergenceSchema = import_zod6.z.object({
|
|
1095
1103
|
type: import_zod6.z.string(),
|
|
1096
1104
|
summary: import_zod6.z.string()
|
|
1097
1105
|
});
|
|
1106
|
+
var GradeEvidenceSchema = import_zod6.z.array(import_zod6.z.string());
|
|
1107
|
+
var IncidentGradeGateSchema = import_zod6.z.object({
|
|
1108
|
+
passed: import_zod6.z.boolean(),
|
|
1109
|
+
evidence: GradeEvidenceSchema
|
|
1110
|
+
});
|
|
1111
|
+
var IncidentGradeFactorSchema = import_zod6.z.object({
|
|
1112
|
+
value: import_zod6.z.number().min(0).max(1).nullable(),
|
|
1113
|
+
weight: import_zod6.z.number().positive(),
|
|
1114
|
+
// The card fields the value was computed from.
|
|
1115
|
+
evidence: GradeEvidenceSchema,
|
|
1116
|
+
// Why the value is null, or what it rests on when that isn't obvious.
|
|
1117
|
+
reason: import_zod6.z.string().optional()
|
|
1118
|
+
});
|
|
1119
|
+
var IncidentGradeBandSchema = import_zod6.z.enum(["full", "diagnose-only", "out"]);
|
|
1120
|
+
var IncidentGradeSchema = import_zod6.z.object({
|
|
1121
|
+
G: import_zod6.z.number().min(0).max(1),
|
|
1122
|
+
gamma: import_zod6.z.union([import_zod6.z.literal(0), import_zod6.z.literal(1)]),
|
|
1123
|
+
gates: import_zod6.z.object({
|
|
1124
|
+
policyNotBlock: IncidentGradeGateSchema,
|
|
1125
|
+
notSymptomOnly: IncidentGradeGateSchema,
|
|
1126
|
+
locusResolves: IncidentGradeGateSchema
|
|
1127
|
+
}),
|
|
1128
|
+
C: import_zod6.z.number().min(0).max(1),
|
|
1129
|
+
factors: import_zod6.z.object({
|
|
1130
|
+
evidence: IncidentGradeFactorSchema,
|
|
1131
|
+
locus: IncidentGradeFactorSchema,
|
|
1132
|
+
tests: IncidentGradeFactorSchema,
|
|
1133
|
+
reach: IncidentGradeFactorSchema,
|
|
1134
|
+
kind: IncidentGradeFactorSchema,
|
|
1135
|
+
chain: IncidentGradeFactorSchema,
|
|
1136
|
+
recur: IncidentGradeFactorSchema,
|
|
1137
|
+
div: IncidentGradeFactorSchema
|
|
1138
|
+
}),
|
|
1139
|
+
band: IncidentGradeBandSchema,
|
|
1140
|
+
// Orders incidents within a band; never raises or lowers a grade.
|
|
1141
|
+
urgency: import_zod6.z.object({ value: import_zod6.z.number().min(0).max(1).nullable(), reason: import_zod6.z.string().optional() }),
|
|
1142
|
+
priorsVersion: import_zod6.z.string()
|
|
1143
|
+
});
|
|
1098
1144
|
var IncidentCardSchema = import_zod6.z.object({
|
|
1099
1145
|
kind: import_zod6.z.literal("incident"),
|
|
1100
1146
|
id: import_zod6.z.string(),
|
|
@@ -1118,7 +1164,9 @@ var IncidentCardSchema = import_zod6.z.object({
|
|
|
1118
1164
|
divergence: import_zod6.z.array(IncidentDivergenceSchema).optional(),
|
|
1119
1165
|
// The rendered one-line sentence — a human/loose-LLM read over the structured
|
|
1120
1166
|
// body, never the wire format.
|
|
1121
|
-
headline: import_zod6.z.string()
|
|
1167
|
+
headline: import_zod6.z.string(),
|
|
1168
|
+
// Derived from the fields above (ADR-238). Optional so older cards still parse.
|
|
1169
|
+
grade: IncidentGradeSchema.optional()
|
|
1122
1170
|
});
|
|
1123
1171
|
var IncidentEventPayloadSchema = import_zod6.z.object({
|
|
1124
1172
|
incidentId: import_zod6.z.string(),
|
|
@@ -1999,6 +2047,10 @@ var PrVerdictBodySchema = import_zod11.z.object({
|
|
|
1999
2047
|
IncidentChainHopSchema,
|
|
2000
2048
|
IncidentDivergenceSchema,
|
|
2001
2049
|
IncidentEventPayloadSchema,
|
|
2050
|
+
IncidentGradeBandSchema,
|
|
2051
|
+
IncidentGradeFactorSchema,
|
|
2052
|
+
IncidentGradeGateSchema,
|
|
2053
|
+
IncidentGradeSchema,
|
|
2002
2054
|
IncidentKindSchema,
|
|
2003
2055
|
IncidentLocusSchema,
|
|
2004
2056
|
IncidentPolicySchema,
|