@manehorizons/cadence-types 1.1.1 → 1.5.0
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/anomaly.d.ts +43 -24
- package/dist/anomaly.d.ts.map +1 -1
- package/dist/anomaly.js +1 -1
- package/dist/anomaly.js.map +1 -1
- package/dist/config.d.ts +128 -508
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/events.d.ts +19 -19
- package/dist/events.d.ts.map +1 -1
- package/dist/handoff.d.ts +144 -0
- package/dist/handoff.d.ts.map +1 -0
- package/dist/handoff.js +32 -0
- package/dist/handoff.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +447 -1543
- package/dist/intelligence.d.ts.map +1 -1
- package/dist/plan.d.ts +43 -133
- package/dist/plan.d.ts.map +1 -1
- package/dist/profile.d.ts +36 -11
- package/dist/profile.d.ts.map +1 -1
- package/dist/spec.d.ts +8 -47
- package/dist/spec.d.ts.map +1 -1
- package/dist/state.d.ts +53 -202
- package/dist/state.d.ts.map +1 -1
- package/dist/summary.d.ts +44 -227
- package/dist/summary.d.ts.map +1 -1
- package/package.json +4 -3
package/dist/intelligence.d.ts
CHANGED
|
@@ -1,156 +1,141 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const RecommendationSourceZ: z.ZodEnum<
|
|
2
|
+
export declare const RecommendationSourceZ: z.ZodEnum<{
|
|
3
|
+
manual: "manual";
|
|
4
|
+
"code-analysis": "code-analysis";
|
|
5
|
+
impact: "impact";
|
|
6
|
+
cadence: "cadence";
|
|
7
|
+
session: "session";
|
|
8
|
+
}>;
|
|
3
9
|
export type RecommendationSource = z.infer<typeof RecommendationSourceZ>;
|
|
4
|
-
export declare const RecommendationStatusZ: z.ZodEnum<
|
|
10
|
+
export declare const RecommendationStatusZ: z.ZodEnum<{
|
|
11
|
+
candidate: "candidate";
|
|
12
|
+
accepted: "accepted";
|
|
13
|
+
deferred: "deferred";
|
|
14
|
+
rejected: "rejected";
|
|
15
|
+
converted: "converted";
|
|
16
|
+
}>;
|
|
5
17
|
export type RecommendationStatus = z.infer<typeof RecommendationStatusZ>;
|
|
6
|
-
export declare const RecommendationReadinessZ: z.ZodEnum<
|
|
18
|
+
export declare const RecommendationReadinessZ: z.ZodEnum<{
|
|
19
|
+
"raw-idea": "raw-idea";
|
|
20
|
+
"needs-evidence": "needs-evidence";
|
|
21
|
+
"needs-decision": "needs-decision";
|
|
22
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
23
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
24
|
+
blocked: "blocked";
|
|
25
|
+
}>;
|
|
7
26
|
export type RecommendationReadiness = z.infer<typeof RecommendationReadinessZ>;
|
|
8
|
-
export declare const RecommendationPriorityZ: z.ZodEnum<
|
|
27
|
+
export declare const RecommendationPriorityZ: z.ZodEnum<{
|
|
28
|
+
low: "low";
|
|
29
|
+
medium: "medium";
|
|
30
|
+
high: "high";
|
|
31
|
+
critical: "critical";
|
|
32
|
+
}>;
|
|
9
33
|
export type RecommendationPriority = z.infer<typeof RecommendationPriorityZ>;
|
|
10
|
-
export declare const RecommendationDecayStateZ: z.ZodEnum<
|
|
34
|
+
export declare const RecommendationDecayStateZ: z.ZodEnum<{
|
|
35
|
+
fresh: "fresh";
|
|
36
|
+
aging: "aging";
|
|
37
|
+
stale: "stale";
|
|
38
|
+
superseded: "superseded";
|
|
39
|
+
contradicted: "contradicted";
|
|
40
|
+
"needs-revalidation": "needs-revalidation";
|
|
41
|
+
}>;
|
|
11
42
|
export type RecommendationDecayState = z.infer<typeof RecommendationDecayStateZ>;
|
|
12
43
|
export declare const RecommendationZ: z.ZodObject<{
|
|
13
44
|
id: z.ZodString;
|
|
14
45
|
title: z.ZodString;
|
|
15
46
|
summary: z.ZodString;
|
|
16
|
-
source: z.ZodEnum<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
47
|
+
source: z.ZodEnum<{
|
|
48
|
+
manual: "manual";
|
|
49
|
+
"code-analysis": "code-analysis";
|
|
50
|
+
impact: "impact";
|
|
51
|
+
cadence: "cadence";
|
|
52
|
+
session: "session";
|
|
53
|
+
}>;
|
|
54
|
+
status: z.ZodEnum<{
|
|
55
|
+
candidate: "candidate";
|
|
56
|
+
accepted: "accepted";
|
|
57
|
+
deferred: "deferred";
|
|
58
|
+
rejected: "rejected";
|
|
59
|
+
converted: "converted";
|
|
60
|
+
}>;
|
|
61
|
+
readiness: z.ZodEnum<{
|
|
62
|
+
"raw-idea": "raw-idea";
|
|
63
|
+
"needs-evidence": "needs-evidence";
|
|
64
|
+
"needs-decision": "needs-decision";
|
|
65
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
66
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
67
|
+
blocked: "blocked";
|
|
68
|
+
}>;
|
|
69
|
+
priority: z.ZodEnum<{
|
|
70
|
+
low: "low";
|
|
71
|
+
medium: "medium";
|
|
72
|
+
high: "high";
|
|
73
|
+
critical: "critical";
|
|
74
|
+
}>;
|
|
20
75
|
leverageScore: z.ZodNumber;
|
|
21
76
|
riskScore: z.ZodNumber;
|
|
22
77
|
confidence: z.ZodNumber;
|
|
23
|
-
decayState: z.ZodEnum<
|
|
24
|
-
|
|
25
|
-
|
|
78
|
+
decayState: z.ZodEnum<{
|
|
79
|
+
fresh: "fresh";
|
|
80
|
+
aging: "aging";
|
|
81
|
+
stale: "stale";
|
|
82
|
+
superseded: "superseded";
|
|
83
|
+
contradicted: "contradicted";
|
|
84
|
+
"needs-revalidation": "needs-revalidation";
|
|
85
|
+
}>;
|
|
86
|
+
affectedAreas: z.ZodArray<z.ZodString>;
|
|
87
|
+
affectedFiles: z.ZodArray<z.ZodString>;
|
|
26
88
|
suggestedMilestoneId: z.ZodOptional<z.ZodString>;
|
|
27
89
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
28
|
-
evidenceIds: z.ZodArray<z.ZodString
|
|
29
|
-
assumptionIds: z.ZodArray<z.ZodString
|
|
30
|
-
decisionIds: z.ZodArray<z.ZodString
|
|
90
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
91
|
+
assumptionIds: z.ZodArray<z.ZodString>;
|
|
92
|
+
decisionIds: z.ZodArray<z.ZodString>;
|
|
31
93
|
convertedToPhaseId: z.ZodOptional<z.ZodString>;
|
|
32
94
|
createdAt: z.ZodString;
|
|
33
95
|
updatedAt: z.ZodString;
|
|
34
|
-
},
|
|
35
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
36
|
-
id: string;
|
|
37
|
-
title: string;
|
|
38
|
-
createdAt: string;
|
|
39
|
-
summary: string;
|
|
40
|
-
source: "manual" | "session" | "code-analysis" | "impact" | "cadence";
|
|
41
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
42
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
43
|
-
leverageScore: number;
|
|
44
|
-
riskScore: number;
|
|
45
|
-
confidence: number;
|
|
46
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
47
|
-
affectedAreas: string[];
|
|
48
|
-
affectedFiles: string[];
|
|
49
|
-
evidenceIds: string[];
|
|
50
|
-
assumptionIds: string[];
|
|
51
|
-
decisionIds: string[];
|
|
52
|
-
updatedAt: string;
|
|
53
|
-
suggestedMilestoneId?: string | undefined;
|
|
54
|
-
suggestedBackendAction?: string | undefined;
|
|
55
|
-
convertedToPhaseId?: string | undefined;
|
|
56
|
-
}, {
|
|
57
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
58
|
-
id: string;
|
|
59
|
-
title: string;
|
|
60
|
-
createdAt: string;
|
|
61
|
-
summary: string;
|
|
62
|
-
source: "manual" | "session" | "code-analysis" | "impact" | "cadence";
|
|
63
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
64
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
65
|
-
leverageScore: number;
|
|
66
|
-
riskScore: number;
|
|
67
|
-
confidence: number;
|
|
68
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
69
|
-
affectedAreas: string[];
|
|
70
|
-
affectedFiles: string[];
|
|
71
|
-
evidenceIds: string[];
|
|
72
|
-
assumptionIds: string[];
|
|
73
|
-
decisionIds: string[];
|
|
74
|
-
updatedAt: string;
|
|
75
|
-
suggestedMilestoneId?: string | undefined;
|
|
76
|
-
suggestedBackendAction?: string | undefined;
|
|
77
|
-
convertedToPhaseId?: string | undefined;
|
|
78
|
-
}>;
|
|
96
|
+
}, z.core.$strip>;
|
|
79
97
|
export type Recommendation = z.infer<typeof RecommendationZ>;
|
|
80
98
|
export declare const EvidenceZ: z.ZodObject<{
|
|
81
99
|
id: z.ZodString;
|
|
82
100
|
recommendationId: z.ZodString;
|
|
83
|
-
kind: z.ZodEnum<
|
|
101
|
+
kind: z.ZodEnum<{
|
|
102
|
+
file: "file";
|
|
103
|
+
command: "command";
|
|
104
|
+
"cadence-artifact": "cadence-artifact";
|
|
105
|
+
note: "note";
|
|
106
|
+
}>;
|
|
84
107
|
summary: z.ZodString;
|
|
85
108
|
path: z.ZodOptional<z.ZodString>;
|
|
86
109
|
command: z.ZodOptional<z.ZodString>;
|
|
87
110
|
createdAt: z.ZodString;
|
|
88
|
-
},
|
|
89
|
-
id: string;
|
|
90
|
-
createdAt: string;
|
|
91
|
-
summary: string;
|
|
92
|
-
recommendationId: string;
|
|
93
|
-
kind: "file" | "note" | "command" | "cadence-artifact";
|
|
94
|
-
path?: string | undefined;
|
|
95
|
-
command?: string | undefined;
|
|
96
|
-
}, {
|
|
97
|
-
id: string;
|
|
98
|
-
createdAt: string;
|
|
99
|
-
summary: string;
|
|
100
|
-
recommendationId: string;
|
|
101
|
-
kind: "file" | "note" | "command" | "cadence-artifact";
|
|
102
|
-
path?: string | undefined;
|
|
103
|
-
command?: string | undefined;
|
|
104
|
-
}>;
|
|
111
|
+
}, z.core.$strip>;
|
|
105
112
|
export type Evidence = z.infer<typeof EvidenceZ>;
|
|
106
113
|
export declare const AssumptionZ: z.ZodObject<{
|
|
107
114
|
id: z.ZodString;
|
|
108
115
|
recommendationId: z.ZodString;
|
|
109
116
|
text: z.ZodString;
|
|
110
|
-
status: z.ZodEnum<
|
|
117
|
+
status: z.ZodEnum<{
|
|
118
|
+
rejected: "rejected";
|
|
119
|
+
open: "open";
|
|
120
|
+
validated: "validated";
|
|
121
|
+
}>;
|
|
111
122
|
createdAt: z.ZodString;
|
|
112
|
-
},
|
|
113
|
-
status: "rejected" | "open" | "validated";
|
|
114
|
-
id: string;
|
|
115
|
-
createdAt: string;
|
|
116
|
-
recommendationId: string;
|
|
117
|
-
text: string;
|
|
118
|
-
}, {
|
|
119
|
-
status: "rejected" | "open" | "validated";
|
|
120
|
-
id: string;
|
|
121
|
-
createdAt: string;
|
|
122
|
-
recommendationId: string;
|
|
123
|
-
text: string;
|
|
124
|
-
}>;
|
|
123
|
+
}, z.core.$strip>;
|
|
125
124
|
export type Assumption = z.infer<typeof AssumptionZ>;
|
|
126
125
|
export declare const IntelligenceDecisionZ: z.ZodObject<{
|
|
127
126
|
id: z.ZodString;
|
|
128
127
|
recommendationId: z.ZodOptional<z.ZodString>;
|
|
129
128
|
title: z.ZodString;
|
|
130
129
|
rationale: z.ZodString;
|
|
131
|
-
status: z.ZodDefault<z.ZodEnum<
|
|
130
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
131
|
+
superseded: "superseded";
|
|
132
|
+
active: "active";
|
|
133
|
+
rescinded: "rescinded";
|
|
134
|
+
}>>;
|
|
132
135
|
decidedAt: z.ZodString;
|
|
133
136
|
supersededBy: z.ZodOptional<z.ZodString>;
|
|
134
|
-
supersedes: z.ZodDefault<z.ZodArray<z.ZodString
|
|
135
|
-
},
|
|
136
|
-
status: "superseded" | "active" | "rescinded";
|
|
137
|
-
id: string;
|
|
138
|
-
title: string;
|
|
139
|
-
rationale: string;
|
|
140
|
-
decidedAt: string;
|
|
141
|
-
supersedes: string[];
|
|
142
|
-
recommendationId?: string | undefined;
|
|
143
|
-
supersededBy?: string | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
id: string;
|
|
146
|
-
title: string;
|
|
147
|
-
rationale: string;
|
|
148
|
-
decidedAt: string;
|
|
149
|
-
status?: "superseded" | "active" | "rescinded" | undefined;
|
|
150
|
-
recommendationId?: string | undefined;
|
|
151
|
-
supersededBy?: string | undefined;
|
|
152
|
-
supersedes?: string[] | undefined;
|
|
153
|
-
}>;
|
|
137
|
+
supersedes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
154
139
|
export type IntelligenceDecision = z.infer<typeof IntelligenceDecisionZ>;
|
|
155
140
|
export declare const RecommendationLedgerZ: z.ZodObject<{
|
|
156
141
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -158,171 +143,75 @@ export declare const RecommendationLedgerZ: z.ZodObject<{
|
|
|
158
143
|
id: z.ZodString;
|
|
159
144
|
title: z.ZodString;
|
|
160
145
|
summary: z.ZodString;
|
|
161
|
-
source: z.ZodEnum<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
146
|
+
source: z.ZodEnum<{
|
|
147
|
+
manual: "manual";
|
|
148
|
+
"code-analysis": "code-analysis";
|
|
149
|
+
impact: "impact";
|
|
150
|
+
cadence: "cadence";
|
|
151
|
+
session: "session";
|
|
152
|
+
}>;
|
|
153
|
+
status: z.ZodEnum<{
|
|
154
|
+
candidate: "candidate";
|
|
155
|
+
accepted: "accepted";
|
|
156
|
+
deferred: "deferred";
|
|
157
|
+
rejected: "rejected";
|
|
158
|
+
converted: "converted";
|
|
159
|
+
}>;
|
|
160
|
+
readiness: z.ZodEnum<{
|
|
161
|
+
"raw-idea": "raw-idea";
|
|
162
|
+
"needs-evidence": "needs-evidence";
|
|
163
|
+
"needs-decision": "needs-decision";
|
|
164
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
165
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
166
|
+
blocked: "blocked";
|
|
167
|
+
}>;
|
|
168
|
+
priority: z.ZodEnum<{
|
|
169
|
+
low: "low";
|
|
170
|
+
medium: "medium";
|
|
171
|
+
high: "high";
|
|
172
|
+
critical: "critical";
|
|
173
|
+
}>;
|
|
165
174
|
leverageScore: z.ZodNumber;
|
|
166
175
|
riskScore: z.ZodNumber;
|
|
167
176
|
confidence: z.ZodNumber;
|
|
168
|
-
decayState: z.ZodEnum<
|
|
169
|
-
|
|
170
|
-
|
|
177
|
+
decayState: z.ZodEnum<{
|
|
178
|
+
fresh: "fresh";
|
|
179
|
+
aging: "aging";
|
|
180
|
+
stale: "stale";
|
|
181
|
+
superseded: "superseded";
|
|
182
|
+
contradicted: "contradicted";
|
|
183
|
+
"needs-revalidation": "needs-revalidation";
|
|
184
|
+
}>;
|
|
185
|
+
affectedAreas: z.ZodArray<z.ZodString>;
|
|
186
|
+
affectedFiles: z.ZodArray<z.ZodString>;
|
|
171
187
|
suggestedMilestoneId: z.ZodOptional<z.ZodString>;
|
|
172
188
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
173
|
-
evidenceIds: z.ZodArray<z.ZodString
|
|
174
|
-
assumptionIds: z.ZodArray<z.ZodString
|
|
175
|
-
decisionIds: z.ZodArray<z.ZodString
|
|
189
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
190
|
+
assumptionIds: z.ZodArray<z.ZodString>;
|
|
191
|
+
decisionIds: z.ZodArray<z.ZodString>;
|
|
176
192
|
convertedToPhaseId: z.ZodOptional<z.ZodString>;
|
|
177
193
|
createdAt: z.ZodString;
|
|
178
194
|
updatedAt: z.ZodString;
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
id: string;
|
|
182
|
-
title: string;
|
|
183
|
-
createdAt: string;
|
|
184
|
-
summary: string;
|
|
185
|
-
source: "manual" | "session" | "code-analysis" | "impact" | "cadence";
|
|
186
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
187
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
188
|
-
leverageScore: number;
|
|
189
|
-
riskScore: number;
|
|
190
|
-
confidence: number;
|
|
191
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
192
|
-
affectedAreas: string[];
|
|
193
|
-
affectedFiles: string[];
|
|
194
|
-
evidenceIds: string[];
|
|
195
|
-
assumptionIds: string[];
|
|
196
|
-
decisionIds: string[];
|
|
197
|
-
updatedAt: string;
|
|
198
|
-
suggestedMilestoneId?: string | undefined;
|
|
199
|
-
suggestedBackendAction?: string | undefined;
|
|
200
|
-
convertedToPhaseId?: string | undefined;
|
|
201
|
-
}, {
|
|
202
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
203
|
-
id: string;
|
|
204
|
-
title: string;
|
|
205
|
-
createdAt: string;
|
|
206
|
-
summary: string;
|
|
207
|
-
source: "manual" | "session" | "code-analysis" | "impact" | "cadence";
|
|
208
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
209
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
210
|
-
leverageScore: number;
|
|
211
|
-
riskScore: number;
|
|
212
|
-
confidence: number;
|
|
213
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
214
|
-
affectedAreas: string[];
|
|
215
|
-
affectedFiles: string[];
|
|
216
|
-
evidenceIds: string[];
|
|
217
|
-
assumptionIds: string[];
|
|
218
|
-
decisionIds: string[];
|
|
219
|
-
updatedAt: string;
|
|
220
|
-
suggestedMilestoneId?: string | undefined;
|
|
221
|
-
suggestedBackendAction?: string | undefined;
|
|
222
|
-
convertedToPhaseId?: string | undefined;
|
|
223
|
-
}>, "many">;
|
|
224
|
-
}, "strip", z.ZodTypeAny, {
|
|
225
|
-
schemaVersion: 1;
|
|
226
|
-
recommendations: {
|
|
227
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
228
|
-
id: string;
|
|
229
|
-
title: string;
|
|
230
|
-
createdAt: string;
|
|
231
|
-
summary: string;
|
|
232
|
-
source: "manual" | "session" | "code-analysis" | "impact" | "cadence";
|
|
233
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
234
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
235
|
-
leverageScore: number;
|
|
236
|
-
riskScore: number;
|
|
237
|
-
confidence: number;
|
|
238
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
239
|
-
affectedAreas: string[];
|
|
240
|
-
affectedFiles: string[];
|
|
241
|
-
evidenceIds: string[];
|
|
242
|
-
assumptionIds: string[];
|
|
243
|
-
decisionIds: string[];
|
|
244
|
-
updatedAt: string;
|
|
245
|
-
suggestedMilestoneId?: string | undefined;
|
|
246
|
-
suggestedBackendAction?: string | undefined;
|
|
247
|
-
convertedToPhaseId?: string | undefined;
|
|
248
|
-
}[];
|
|
249
|
-
}, {
|
|
250
|
-
schemaVersion: 1;
|
|
251
|
-
recommendations: {
|
|
252
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
253
|
-
id: string;
|
|
254
|
-
title: string;
|
|
255
|
-
createdAt: string;
|
|
256
|
-
summary: string;
|
|
257
|
-
source: "manual" | "session" | "code-analysis" | "impact" | "cadence";
|
|
258
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
259
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
260
|
-
leverageScore: number;
|
|
261
|
-
riskScore: number;
|
|
262
|
-
confidence: number;
|
|
263
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
264
|
-
affectedAreas: string[];
|
|
265
|
-
affectedFiles: string[];
|
|
266
|
-
evidenceIds: string[];
|
|
267
|
-
assumptionIds: string[];
|
|
268
|
-
decisionIds: string[];
|
|
269
|
-
updatedAt: string;
|
|
270
|
-
suggestedMilestoneId?: string | undefined;
|
|
271
|
-
suggestedBackendAction?: string | undefined;
|
|
272
|
-
convertedToPhaseId?: string | undefined;
|
|
273
|
-
}[];
|
|
274
|
-
}>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
}, z.core.$strip>;
|
|
275
197
|
export type RecommendationLedger = z.infer<typeof RecommendationLedgerZ>;
|
|
276
198
|
export declare const EvidenceLedgerZ: z.ZodObject<{
|
|
277
199
|
schemaVersion: z.ZodLiteral<1>;
|
|
278
200
|
evidence: z.ZodArray<z.ZodObject<{
|
|
279
201
|
id: z.ZodString;
|
|
280
202
|
recommendationId: z.ZodString;
|
|
281
|
-
kind: z.ZodEnum<
|
|
203
|
+
kind: z.ZodEnum<{
|
|
204
|
+
file: "file";
|
|
205
|
+
command: "command";
|
|
206
|
+
"cadence-artifact": "cadence-artifact";
|
|
207
|
+
note: "note";
|
|
208
|
+
}>;
|
|
282
209
|
summary: z.ZodString;
|
|
283
210
|
path: z.ZodOptional<z.ZodString>;
|
|
284
211
|
command: z.ZodOptional<z.ZodString>;
|
|
285
212
|
createdAt: z.ZodString;
|
|
286
|
-
},
|
|
287
|
-
|
|
288
|
-
createdAt: string;
|
|
289
|
-
summary: string;
|
|
290
|
-
recommendationId: string;
|
|
291
|
-
kind: "file" | "note" | "command" | "cadence-artifact";
|
|
292
|
-
path?: string | undefined;
|
|
293
|
-
command?: string | undefined;
|
|
294
|
-
}, {
|
|
295
|
-
id: string;
|
|
296
|
-
createdAt: string;
|
|
297
|
-
summary: string;
|
|
298
|
-
recommendationId: string;
|
|
299
|
-
kind: "file" | "note" | "command" | "cadence-artifact";
|
|
300
|
-
path?: string | undefined;
|
|
301
|
-
command?: string | undefined;
|
|
302
|
-
}>, "many">;
|
|
303
|
-
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
schemaVersion: 1;
|
|
305
|
-
evidence: {
|
|
306
|
-
id: string;
|
|
307
|
-
createdAt: string;
|
|
308
|
-
summary: string;
|
|
309
|
-
recommendationId: string;
|
|
310
|
-
kind: "file" | "note" | "command" | "cadence-artifact";
|
|
311
|
-
path?: string | undefined;
|
|
312
|
-
command?: string | undefined;
|
|
313
|
-
}[];
|
|
314
|
-
}, {
|
|
315
|
-
schemaVersion: 1;
|
|
316
|
-
evidence: {
|
|
317
|
-
id: string;
|
|
318
|
-
createdAt: string;
|
|
319
|
-
summary: string;
|
|
320
|
-
recommendationId: string;
|
|
321
|
-
kind: "file" | "note" | "command" | "cadence-artifact";
|
|
322
|
-
path?: string | undefined;
|
|
323
|
-
command?: string | undefined;
|
|
324
|
-
}[];
|
|
325
|
-
}>;
|
|
213
|
+
}, z.core.$strip>>;
|
|
214
|
+
}, z.core.$strip>;
|
|
326
215
|
export type EvidenceLedger = z.infer<typeof EvidenceLedgerZ>;
|
|
327
216
|
export declare const AssumptionLedgerZ: z.ZodObject<{
|
|
328
217
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -330,40 +219,14 @@ export declare const AssumptionLedgerZ: z.ZodObject<{
|
|
|
330
219
|
id: z.ZodString;
|
|
331
220
|
recommendationId: z.ZodString;
|
|
332
221
|
text: z.ZodString;
|
|
333
|
-
status: z.ZodEnum<
|
|
222
|
+
status: z.ZodEnum<{
|
|
223
|
+
rejected: "rejected";
|
|
224
|
+
open: "open";
|
|
225
|
+
validated: "validated";
|
|
226
|
+
}>;
|
|
334
227
|
createdAt: z.ZodString;
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
id: string;
|
|
338
|
-
createdAt: string;
|
|
339
|
-
recommendationId: string;
|
|
340
|
-
text: string;
|
|
341
|
-
}, {
|
|
342
|
-
status: "rejected" | "open" | "validated";
|
|
343
|
-
id: string;
|
|
344
|
-
createdAt: string;
|
|
345
|
-
recommendationId: string;
|
|
346
|
-
text: string;
|
|
347
|
-
}>, "many">;
|
|
348
|
-
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
schemaVersion: 1;
|
|
350
|
-
assumptions: {
|
|
351
|
-
status: "rejected" | "open" | "validated";
|
|
352
|
-
id: string;
|
|
353
|
-
createdAt: string;
|
|
354
|
-
recommendationId: string;
|
|
355
|
-
text: string;
|
|
356
|
-
}[];
|
|
357
|
-
}, {
|
|
358
|
-
schemaVersion: 1;
|
|
359
|
-
assumptions: {
|
|
360
|
-
status: "rejected" | "open" | "validated";
|
|
361
|
-
id: string;
|
|
362
|
-
createdAt: string;
|
|
363
|
-
recommendationId: string;
|
|
364
|
-
text: string;
|
|
365
|
-
}[];
|
|
366
|
-
}>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
367
230
|
export type AssumptionLedger = z.infer<typeof AssumptionLedgerZ>;
|
|
368
231
|
export declare const IntelligenceDecisionLedgerZ: z.ZodObject<{
|
|
369
232
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -372,54 +235,16 @@ export declare const IntelligenceDecisionLedgerZ: z.ZodObject<{
|
|
|
372
235
|
recommendationId: z.ZodOptional<z.ZodString>;
|
|
373
236
|
title: z.ZodString;
|
|
374
237
|
rationale: z.ZodString;
|
|
375
|
-
status: z.ZodDefault<z.ZodEnum<
|
|
238
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
239
|
+
superseded: "superseded";
|
|
240
|
+
active: "active";
|
|
241
|
+
rescinded: "rescinded";
|
|
242
|
+
}>>;
|
|
376
243
|
decidedAt: z.ZodString;
|
|
377
244
|
supersededBy: z.ZodOptional<z.ZodString>;
|
|
378
|
-
supersedes: z.ZodDefault<z.ZodArray<z.ZodString
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
id: string;
|
|
382
|
-
title: string;
|
|
383
|
-
rationale: string;
|
|
384
|
-
decidedAt: string;
|
|
385
|
-
supersedes: string[];
|
|
386
|
-
recommendationId?: string | undefined;
|
|
387
|
-
supersededBy?: string | undefined;
|
|
388
|
-
}, {
|
|
389
|
-
id: string;
|
|
390
|
-
title: string;
|
|
391
|
-
rationale: string;
|
|
392
|
-
decidedAt: string;
|
|
393
|
-
status?: "superseded" | "active" | "rescinded" | undefined;
|
|
394
|
-
recommendationId?: string | undefined;
|
|
395
|
-
supersededBy?: string | undefined;
|
|
396
|
-
supersedes?: string[] | undefined;
|
|
397
|
-
}>, "many">;
|
|
398
|
-
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
schemaVersion: 1;
|
|
400
|
-
decisions: {
|
|
401
|
-
status: "superseded" | "active" | "rescinded";
|
|
402
|
-
id: string;
|
|
403
|
-
title: string;
|
|
404
|
-
rationale: string;
|
|
405
|
-
decidedAt: string;
|
|
406
|
-
supersedes: string[];
|
|
407
|
-
recommendationId?: string | undefined;
|
|
408
|
-
supersededBy?: string | undefined;
|
|
409
|
-
}[];
|
|
410
|
-
}, {
|
|
411
|
-
schemaVersion: 1;
|
|
412
|
-
decisions: {
|
|
413
|
-
id: string;
|
|
414
|
-
title: string;
|
|
415
|
-
rationale: string;
|
|
416
|
-
decidedAt: string;
|
|
417
|
-
status?: "superseded" | "active" | "rescinded" | undefined;
|
|
418
|
-
recommendationId?: string | undefined;
|
|
419
|
-
supersededBy?: string | undefined;
|
|
420
|
-
supersedes?: string[] | undefined;
|
|
421
|
-
}[];
|
|
422
|
-
}>;
|
|
245
|
+
supersedes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
}, z.core.$strip>;
|
|
423
248
|
export type IntelligenceDecisionLedger = z.infer<typeof IntelligenceDecisionLedgerZ>;
|
|
424
249
|
export declare function emptyRecommendationLedger(): RecommendationLedger;
|
|
425
250
|
export declare function emptyEvidenceLedger(): EvidenceLedger;
|
|
@@ -432,22 +257,8 @@ export declare const RepoScanZ: z.ZodObject<{
|
|
|
432
257
|
dirty: z.ZodOptional<z.ZodBoolean>;
|
|
433
258
|
ahead: z.ZodOptional<z.ZodNumber>;
|
|
434
259
|
behind: z.ZodOptional<z.ZodNumber>;
|
|
435
|
-
recentCommits: z.ZodOptional<z.ZodArray<z.ZodString
|
|
436
|
-
},
|
|
437
|
-
available: boolean;
|
|
438
|
-
dirty?: boolean | undefined;
|
|
439
|
-
branch?: string | undefined;
|
|
440
|
-
ahead?: number | undefined;
|
|
441
|
-
behind?: number | undefined;
|
|
442
|
-
recentCommits?: string[] | undefined;
|
|
443
|
-
}, {
|
|
444
|
-
available: boolean;
|
|
445
|
-
dirty?: boolean | undefined;
|
|
446
|
-
branch?: string | undefined;
|
|
447
|
-
ahead?: number | undefined;
|
|
448
|
-
behind?: number | undefined;
|
|
449
|
-
recentCommits?: string[] | undefined;
|
|
450
|
-
}>;
|
|
260
|
+
recentCommits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
261
|
+
}, z.core.$strip>;
|
|
451
262
|
pkg: z.ZodObject<{
|
|
452
263
|
name: z.ZodOptional<z.ZodString>;
|
|
453
264
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -457,143 +268,23 @@ export declare const RepoScanZ: z.ZodObject<{
|
|
|
457
268
|
build: z.ZodOptional<z.ZodBoolean>;
|
|
458
269
|
lint: z.ZodOptional<z.ZodBoolean>;
|
|
459
270
|
typecheck: z.ZodOptional<z.ZodBoolean>;
|
|
460
|
-
},
|
|
461
|
-
|
|
462
|
-
build?: boolean | undefined;
|
|
463
|
-
lint?: boolean | undefined;
|
|
464
|
-
typecheck?: boolean | undefined;
|
|
465
|
-
}, {
|
|
466
|
-
test?: boolean | undefined;
|
|
467
|
-
build?: boolean | undefined;
|
|
468
|
-
lint?: boolean | undefined;
|
|
469
|
-
typecheck?: boolean | undefined;
|
|
470
|
-
}>;
|
|
471
|
-
}, "strip", z.ZodTypeAny, {
|
|
472
|
-
scripts: {
|
|
473
|
-
test?: boolean | undefined;
|
|
474
|
-
build?: boolean | undefined;
|
|
475
|
-
lint?: boolean | undefined;
|
|
476
|
-
typecheck?: boolean | undefined;
|
|
477
|
-
};
|
|
478
|
-
name?: string | undefined;
|
|
479
|
-
version?: string | undefined;
|
|
480
|
-
workspaces?: boolean | undefined;
|
|
481
|
-
}, {
|
|
482
|
-
scripts: {
|
|
483
|
-
test?: boolean | undefined;
|
|
484
|
-
build?: boolean | undefined;
|
|
485
|
-
lint?: boolean | undefined;
|
|
486
|
-
typecheck?: boolean | undefined;
|
|
487
|
-
};
|
|
488
|
-
name?: string | undefined;
|
|
489
|
-
version?: string | undefined;
|
|
490
|
-
workspaces?: boolean | undefined;
|
|
491
|
-
}>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
}, z.core.$strip>;
|
|
492
273
|
docs: z.ZodObject<{
|
|
493
274
|
readme: z.ZodBoolean;
|
|
494
275
|
design: z.ZodBoolean;
|
|
495
276
|
roadmap: z.ZodBoolean;
|
|
496
277
|
changelog: z.ZodBoolean;
|
|
497
278
|
docsDir: z.ZodBoolean;
|
|
498
|
-
},
|
|
499
|
-
readme: boolean;
|
|
500
|
-
design: boolean;
|
|
501
|
-
roadmap: boolean;
|
|
502
|
-
changelog: boolean;
|
|
503
|
-
docsDir: boolean;
|
|
504
|
-
}, {
|
|
505
|
-
readme: boolean;
|
|
506
|
-
design: boolean;
|
|
507
|
-
roadmap: boolean;
|
|
508
|
-
changelog: boolean;
|
|
509
|
-
docsDir: boolean;
|
|
510
|
-
}>;
|
|
279
|
+
}, z.core.$strip>;
|
|
511
280
|
surfaces: z.ZodObject<{
|
|
512
281
|
turbo: z.ZodBoolean;
|
|
513
|
-
},
|
|
514
|
-
turbo: boolean;
|
|
515
|
-
}, {
|
|
516
|
-
turbo: boolean;
|
|
517
|
-
}>;
|
|
282
|
+
}, z.core.$strip>;
|
|
518
283
|
phases: z.ZodObject<{
|
|
519
284
|
count: z.ZodNumber;
|
|
520
285
|
latestId: z.ZodOptional<z.ZodString>;
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
latestId?: string | undefined;
|
|
524
|
-
}, {
|
|
525
|
-
count: number;
|
|
526
|
-
latestId?: string | undefined;
|
|
527
|
-
}>;
|
|
528
|
-
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
git: {
|
|
530
|
-
available: boolean;
|
|
531
|
-
dirty?: boolean | undefined;
|
|
532
|
-
branch?: string | undefined;
|
|
533
|
-
ahead?: number | undefined;
|
|
534
|
-
behind?: number | undefined;
|
|
535
|
-
recentCommits?: string[] | undefined;
|
|
536
|
-
};
|
|
537
|
-
pkg: {
|
|
538
|
-
scripts: {
|
|
539
|
-
test?: boolean | undefined;
|
|
540
|
-
build?: boolean | undefined;
|
|
541
|
-
lint?: boolean | undefined;
|
|
542
|
-
typecheck?: boolean | undefined;
|
|
543
|
-
};
|
|
544
|
-
name?: string | undefined;
|
|
545
|
-
version?: string | undefined;
|
|
546
|
-
workspaces?: boolean | undefined;
|
|
547
|
-
};
|
|
548
|
-
docs: {
|
|
549
|
-
readme: boolean;
|
|
550
|
-
design: boolean;
|
|
551
|
-
roadmap: boolean;
|
|
552
|
-
changelog: boolean;
|
|
553
|
-
docsDir: boolean;
|
|
554
|
-
};
|
|
555
|
-
surfaces: {
|
|
556
|
-
turbo: boolean;
|
|
557
|
-
};
|
|
558
|
-
phases: {
|
|
559
|
-
count: number;
|
|
560
|
-
latestId?: string | undefined;
|
|
561
|
-
};
|
|
562
|
-
}, {
|
|
563
|
-
git: {
|
|
564
|
-
available: boolean;
|
|
565
|
-
dirty?: boolean | undefined;
|
|
566
|
-
branch?: string | undefined;
|
|
567
|
-
ahead?: number | undefined;
|
|
568
|
-
behind?: number | undefined;
|
|
569
|
-
recentCommits?: string[] | undefined;
|
|
570
|
-
};
|
|
571
|
-
pkg: {
|
|
572
|
-
scripts: {
|
|
573
|
-
test?: boolean | undefined;
|
|
574
|
-
build?: boolean | undefined;
|
|
575
|
-
lint?: boolean | undefined;
|
|
576
|
-
typecheck?: boolean | undefined;
|
|
577
|
-
};
|
|
578
|
-
name?: string | undefined;
|
|
579
|
-
version?: string | undefined;
|
|
580
|
-
workspaces?: boolean | undefined;
|
|
581
|
-
};
|
|
582
|
-
docs: {
|
|
583
|
-
readme: boolean;
|
|
584
|
-
design: boolean;
|
|
585
|
-
roadmap: boolean;
|
|
586
|
-
changelog: boolean;
|
|
587
|
-
docsDir: boolean;
|
|
588
|
-
};
|
|
589
|
-
surfaces: {
|
|
590
|
-
turbo: boolean;
|
|
591
|
-
};
|
|
592
|
-
phases: {
|
|
593
|
-
count: number;
|
|
594
|
-
latestId?: string | undefined;
|
|
595
|
-
};
|
|
596
|
-
}>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
}, z.core.$strip>;
|
|
597
288
|
export type RepoScan = z.infer<typeof RepoScanZ>;
|
|
598
289
|
export declare const BackendStatusZ: z.ZodObject<{
|
|
599
290
|
present: z.ZodBoolean;
|
|
@@ -604,78 +295,37 @@ export declare const BackendStatusZ: z.ZodObject<{
|
|
|
604
295
|
activeSpec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
296
|
profile: z.ZodOptional<z.ZodString>;
|
|
606
297
|
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
607
|
-
legalActions: z.ZodArray<z.ZodString
|
|
298
|
+
legalActions: z.ZodArray<z.ZodString>;
|
|
608
299
|
artifacts: z.ZodOptional<z.ZodObject<{
|
|
609
300
|
phaseCount: z.ZodNumber;
|
|
610
301
|
roadmap: z.ZodBoolean;
|
|
611
302
|
state: z.ZodBoolean;
|
|
612
303
|
milestones: z.ZodBoolean;
|
|
613
|
-
},
|
|
614
|
-
roadmap: boolean;
|
|
615
|
-
phaseCount: number;
|
|
616
|
-
state: boolean;
|
|
617
|
-
milestones: boolean;
|
|
618
|
-
}, {
|
|
619
|
-
roadmap: boolean;
|
|
620
|
-
phaseCount: number;
|
|
621
|
-
state: boolean;
|
|
622
|
-
milestones: boolean;
|
|
623
|
-
}>>;
|
|
304
|
+
}, z.core.$strip>>;
|
|
624
305
|
stateError: z.ZodOptional<z.ZodString>;
|
|
625
|
-
},
|
|
626
|
-
kind: "cadence" | null;
|
|
627
|
-
present: boolean;
|
|
628
|
-
legalActions: string[];
|
|
629
|
-
profile?: string | undefined;
|
|
630
|
-
tier?: string | null | undefined;
|
|
631
|
-
activePhase?: string | null | undefined;
|
|
632
|
-
activeDraft?: string | null | undefined;
|
|
633
|
-
activeSpec?: string | null | undefined;
|
|
634
|
-
loopPosition?: string | undefined;
|
|
635
|
-
artifacts?: {
|
|
636
|
-
roadmap: boolean;
|
|
637
|
-
phaseCount: number;
|
|
638
|
-
state: boolean;
|
|
639
|
-
milestones: boolean;
|
|
640
|
-
} | undefined;
|
|
641
|
-
stateError?: string | undefined;
|
|
642
|
-
}, {
|
|
643
|
-
kind: "cadence" | null;
|
|
644
|
-
present: boolean;
|
|
645
|
-
legalActions: string[];
|
|
646
|
-
profile?: string | undefined;
|
|
647
|
-
tier?: string | null | undefined;
|
|
648
|
-
activePhase?: string | null | undefined;
|
|
649
|
-
activeDraft?: string | null | undefined;
|
|
650
|
-
activeSpec?: string | null | undefined;
|
|
651
|
-
loopPosition?: string | undefined;
|
|
652
|
-
artifacts?: {
|
|
653
|
-
roadmap: boolean;
|
|
654
|
-
phaseCount: number;
|
|
655
|
-
state: boolean;
|
|
656
|
-
milestones: boolean;
|
|
657
|
-
} | undefined;
|
|
658
|
-
stateError?: string | undefined;
|
|
659
|
-
}>;
|
|
306
|
+
}, z.core.$strip>;
|
|
660
307
|
export type BackendStatus = z.infer<typeof BackendStatusZ>;
|
|
661
|
-
export declare const InspectionFlagCodeZ: z.ZodEnum<
|
|
308
|
+
export declare const InspectionFlagCodeZ: z.ZodEnum<{
|
|
309
|
+
"git-dirty-or-diverged": "git-dirty-or-diverged";
|
|
310
|
+
"loop-state-inconsistent": "loop-state-inconsistent";
|
|
311
|
+
"ledger-decay": "ledger-decay";
|
|
312
|
+
"docs-missing": "docs-missing";
|
|
313
|
+
}>;
|
|
662
314
|
export type InspectionFlagCode = z.infer<typeof InspectionFlagCodeZ>;
|
|
663
315
|
export declare const InspectionFlagZ: z.ZodObject<{
|
|
664
|
-
code: z.ZodEnum<
|
|
665
|
-
|
|
316
|
+
code: z.ZodEnum<{
|
|
317
|
+
"git-dirty-or-diverged": "git-dirty-or-diverged";
|
|
318
|
+
"loop-state-inconsistent": "loop-state-inconsistent";
|
|
319
|
+
"ledger-decay": "ledger-decay";
|
|
320
|
+
"docs-missing": "docs-missing";
|
|
321
|
+
}>;
|
|
322
|
+
severity: z.ZodEnum<{
|
|
323
|
+
info: "info";
|
|
324
|
+
warn: "warn";
|
|
325
|
+
}>;
|
|
666
326
|
message: z.ZodString;
|
|
667
327
|
evidence: z.ZodOptional<z.ZodString>;
|
|
668
|
-
},
|
|
669
|
-
code: "git-dirty-or-diverged" | "loop-state-inconsistent" | "ledger-decay" | "docs-missing";
|
|
670
|
-
message: string;
|
|
671
|
-
severity: "info" | "warn";
|
|
672
|
-
evidence?: string | undefined;
|
|
673
|
-
}, {
|
|
674
|
-
code: "git-dirty-or-diverged" | "loop-state-inconsistent" | "ledger-decay" | "docs-missing";
|
|
675
|
-
message: string;
|
|
676
|
-
severity: "info" | "warn";
|
|
677
|
-
evidence?: string | undefined;
|
|
678
|
-
}>;
|
|
328
|
+
}, z.core.$strip>;
|
|
679
329
|
export type InspectionFlag = z.infer<typeof InspectionFlagZ>;
|
|
680
330
|
export declare const InspectionZ: z.ZodObject<{
|
|
681
331
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -687,22 +337,8 @@ export declare const InspectionZ: z.ZodObject<{
|
|
|
687
337
|
dirty: z.ZodOptional<z.ZodBoolean>;
|
|
688
338
|
ahead: z.ZodOptional<z.ZodNumber>;
|
|
689
339
|
behind: z.ZodOptional<z.ZodNumber>;
|
|
690
|
-
recentCommits: z.ZodOptional<z.ZodArray<z.ZodString
|
|
691
|
-
},
|
|
692
|
-
available: boolean;
|
|
693
|
-
dirty?: boolean | undefined;
|
|
694
|
-
branch?: string | undefined;
|
|
695
|
-
ahead?: number | undefined;
|
|
696
|
-
behind?: number | undefined;
|
|
697
|
-
recentCommits?: string[] | undefined;
|
|
698
|
-
}, {
|
|
699
|
-
available: boolean;
|
|
700
|
-
dirty?: boolean | undefined;
|
|
701
|
-
branch?: string | undefined;
|
|
702
|
-
ahead?: number | undefined;
|
|
703
|
-
behind?: number | undefined;
|
|
704
|
-
recentCommits?: string[] | undefined;
|
|
705
|
-
}>;
|
|
340
|
+
recentCommits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
341
|
+
}, z.core.$strip>;
|
|
706
342
|
pkg: z.ZodObject<{
|
|
707
343
|
name: z.ZodOptional<z.ZodString>;
|
|
708
344
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -712,143 +348,23 @@ export declare const InspectionZ: z.ZodObject<{
|
|
|
712
348
|
build: z.ZodOptional<z.ZodBoolean>;
|
|
713
349
|
lint: z.ZodOptional<z.ZodBoolean>;
|
|
714
350
|
typecheck: z.ZodOptional<z.ZodBoolean>;
|
|
715
|
-
},
|
|
716
|
-
|
|
717
|
-
build?: boolean | undefined;
|
|
718
|
-
lint?: boolean | undefined;
|
|
719
|
-
typecheck?: boolean | undefined;
|
|
720
|
-
}, {
|
|
721
|
-
test?: boolean | undefined;
|
|
722
|
-
build?: boolean | undefined;
|
|
723
|
-
lint?: boolean | undefined;
|
|
724
|
-
typecheck?: boolean | undefined;
|
|
725
|
-
}>;
|
|
726
|
-
}, "strip", z.ZodTypeAny, {
|
|
727
|
-
scripts: {
|
|
728
|
-
test?: boolean | undefined;
|
|
729
|
-
build?: boolean | undefined;
|
|
730
|
-
lint?: boolean | undefined;
|
|
731
|
-
typecheck?: boolean | undefined;
|
|
732
|
-
};
|
|
733
|
-
name?: string | undefined;
|
|
734
|
-
version?: string | undefined;
|
|
735
|
-
workspaces?: boolean | undefined;
|
|
736
|
-
}, {
|
|
737
|
-
scripts: {
|
|
738
|
-
test?: boolean | undefined;
|
|
739
|
-
build?: boolean | undefined;
|
|
740
|
-
lint?: boolean | undefined;
|
|
741
|
-
typecheck?: boolean | undefined;
|
|
742
|
-
};
|
|
743
|
-
name?: string | undefined;
|
|
744
|
-
version?: string | undefined;
|
|
745
|
-
workspaces?: boolean | undefined;
|
|
746
|
-
}>;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
}, z.core.$strip>;
|
|
747
353
|
docs: z.ZodObject<{
|
|
748
354
|
readme: z.ZodBoolean;
|
|
749
355
|
design: z.ZodBoolean;
|
|
750
356
|
roadmap: z.ZodBoolean;
|
|
751
357
|
changelog: z.ZodBoolean;
|
|
752
358
|
docsDir: z.ZodBoolean;
|
|
753
|
-
},
|
|
754
|
-
readme: boolean;
|
|
755
|
-
design: boolean;
|
|
756
|
-
roadmap: boolean;
|
|
757
|
-
changelog: boolean;
|
|
758
|
-
docsDir: boolean;
|
|
759
|
-
}, {
|
|
760
|
-
readme: boolean;
|
|
761
|
-
design: boolean;
|
|
762
|
-
roadmap: boolean;
|
|
763
|
-
changelog: boolean;
|
|
764
|
-
docsDir: boolean;
|
|
765
|
-
}>;
|
|
359
|
+
}, z.core.$strip>;
|
|
766
360
|
surfaces: z.ZodObject<{
|
|
767
361
|
turbo: z.ZodBoolean;
|
|
768
|
-
},
|
|
769
|
-
turbo: boolean;
|
|
770
|
-
}, {
|
|
771
|
-
turbo: boolean;
|
|
772
|
-
}>;
|
|
362
|
+
}, z.core.$strip>;
|
|
773
363
|
phases: z.ZodObject<{
|
|
774
364
|
count: z.ZodNumber;
|
|
775
365
|
latestId: z.ZodOptional<z.ZodString>;
|
|
776
|
-
},
|
|
777
|
-
|
|
778
|
-
latestId?: string | undefined;
|
|
779
|
-
}, {
|
|
780
|
-
count: number;
|
|
781
|
-
latestId?: string | undefined;
|
|
782
|
-
}>;
|
|
783
|
-
}, "strip", z.ZodTypeAny, {
|
|
784
|
-
git: {
|
|
785
|
-
available: boolean;
|
|
786
|
-
dirty?: boolean | undefined;
|
|
787
|
-
branch?: string | undefined;
|
|
788
|
-
ahead?: number | undefined;
|
|
789
|
-
behind?: number | undefined;
|
|
790
|
-
recentCommits?: string[] | undefined;
|
|
791
|
-
};
|
|
792
|
-
pkg: {
|
|
793
|
-
scripts: {
|
|
794
|
-
test?: boolean | undefined;
|
|
795
|
-
build?: boolean | undefined;
|
|
796
|
-
lint?: boolean | undefined;
|
|
797
|
-
typecheck?: boolean | undefined;
|
|
798
|
-
};
|
|
799
|
-
name?: string | undefined;
|
|
800
|
-
version?: string | undefined;
|
|
801
|
-
workspaces?: boolean | undefined;
|
|
802
|
-
};
|
|
803
|
-
docs: {
|
|
804
|
-
readme: boolean;
|
|
805
|
-
design: boolean;
|
|
806
|
-
roadmap: boolean;
|
|
807
|
-
changelog: boolean;
|
|
808
|
-
docsDir: boolean;
|
|
809
|
-
};
|
|
810
|
-
surfaces: {
|
|
811
|
-
turbo: boolean;
|
|
812
|
-
};
|
|
813
|
-
phases: {
|
|
814
|
-
count: number;
|
|
815
|
-
latestId?: string | undefined;
|
|
816
|
-
};
|
|
817
|
-
}, {
|
|
818
|
-
git: {
|
|
819
|
-
available: boolean;
|
|
820
|
-
dirty?: boolean | undefined;
|
|
821
|
-
branch?: string | undefined;
|
|
822
|
-
ahead?: number | undefined;
|
|
823
|
-
behind?: number | undefined;
|
|
824
|
-
recentCommits?: string[] | undefined;
|
|
825
|
-
};
|
|
826
|
-
pkg: {
|
|
827
|
-
scripts: {
|
|
828
|
-
test?: boolean | undefined;
|
|
829
|
-
build?: boolean | undefined;
|
|
830
|
-
lint?: boolean | undefined;
|
|
831
|
-
typecheck?: boolean | undefined;
|
|
832
|
-
};
|
|
833
|
-
name?: string | undefined;
|
|
834
|
-
version?: string | undefined;
|
|
835
|
-
workspaces?: boolean | undefined;
|
|
836
|
-
};
|
|
837
|
-
docs: {
|
|
838
|
-
readme: boolean;
|
|
839
|
-
design: boolean;
|
|
840
|
-
roadmap: boolean;
|
|
841
|
-
changelog: boolean;
|
|
842
|
-
docsDir: boolean;
|
|
843
|
-
};
|
|
844
|
-
surfaces: {
|
|
845
|
-
turbo: boolean;
|
|
846
|
-
};
|
|
847
|
-
phases: {
|
|
848
|
-
count: number;
|
|
849
|
-
latestId?: string | undefined;
|
|
850
|
-
};
|
|
851
|
-
}>;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
}, z.core.$strip>;
|
|
852
368
|
backend: z.ZodObject<{
|
|
853
369
|
present: z.ZodBoolean;
|
|
854
370
|
kind: z.ZodNullable<z.ZodLiteral<"cadence">>;
|
|
@@ -858,298 +374,92 @@ export declare const InspectionZ: z.ZodObject<{
|
|
|
858
374
|
activeSpec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
859
375
|
profile: z.ZodOptional<z.ZodString>;
|
|
860
376
|
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
861
|
-
legalActions: z.ZodArray<z.ZodString
|
|
377
|
+
legalActions: z.ZodArray<z.ZodString>;
|
|
862
378
|
artifacts: z.ZodOptional<z.ZodObject<{
|
|
863
379
|
phaseCount: z.ZodNumber;
|
|
864
380
|
roadmap: z.ZodBoolean;
|
|
865
381
|
state: z.ZodBoolean;
|
|
866
382
|
milestones: z.ZodBoolean;
|
|
867
|
-
},
|
|
868
|
-
roadmap: boolean;
|
|
869
|
-
phaseCount: number;
|
|
870
|
-
state: boolean;
|
|
871
|
-
milestones: boolean;
|
|
872
|
-
}, {
|
|
873
|
-
roadmap: boolean;
|
|
874
|
-
phaseCount: number;
|
|
875
|
-
state: boolean;
|
|
876
|
-
milestones: boolean;
|
|
877
|
-
}>>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
878
384
|
stateError: z.ZodOptional<z.ZodString>;
|
|
879
|
-
},
|
|
880
|
-
kind: "cadence" | null;
|
|
881
|
-
present: boolean;
|
|
882
|
-
legalActions: string[];
|
|
883
|
-
profile?: string | undefined;
|
|
884
|
-
tier?: string | null | undefined;
|
|
885
|
-
activePhase?: string | null | undefined;
|
|
886
|
-
activeDraft?: string | null | undefined;
|
|
887
|
-
activeSpec?: string | null | undefined;
|
|
888
|
-
loopPosition?: string | undefined;
|
|
889
|
-
artifacts?: {
|
|
890
|
-
roadmap: boolean;
|
|
891
|
-
phaseCount: number;
|
|
892
|
-
state: boolean;
|
|
893
|
-
milestones: boolean;
|
|
894
|
-
} | undefined;
|
|
895
|
-
stateError?: string | undefined;
|
|
896
|
-
}, {
|
|
897
|
-
kind: "cadence" | null;
|
|
898
|
-
present: boolean;
|
|
899
|
-
legalActions: string[];
|
|
900
|
-
profile?: string | undefined;
|
|
901
|
-
tier?: string | null | undefined;
|
|
902
|
-
activePhase?: string | null | undefined;
|
|
903
|
-
activeDraft?: string | null | undefined;
|
|
904
|
-
activeSpec?: string | null | undefined;
|
|
905
|
-
loopPosition?: string | undefined;
|
|
906
|
-
artifacts?: {
|
|
907
|
-
roadmap: boolean;
|
|
908
|
-
phaseCount: number;
|
|
909
|
-
state: boolean;
|
|
910
|
-
milestones: boolean;
|
|
911
|
-
} | undefined;
|
|
912
|
-
stateError?: string | undefined;
|
|
913
|
-
}>;
|
|
385
|
+
}, z.core.$strip>;
|
|
914
386
|
ledger: z.ZodObject<{
|
|
915
387
|
recommendations: z.ZodNumber;
|
|
916
388
|
byDecay: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
917
389
|
evidence: z.ZodNumber;
|
|
918
|
-
},
|
|
919
|
-
recommendations: number;
|
|
920
|
-
evidence: number;
|
|
921
|
-
byDecay: Record<string, number>;
|
|
922
|
-
}, {
|
|
923
|
-
recommendations: number;
|
|
924
|
-
evidence: number;
|
|
925
|
-
byDecay: Record<string, number>;
|
|
926
|
-
}>;
|
|
390
|
+
}, z.core.$strip>;
|
|
927
391
|
flags: z.ZodArray<z.ZodObject<{
|
|
928
|
-
code: z.ZodEnum<
|
|
929
|
-
|
|
392
|
+
code: z.ZodEnum<{
|
|
393
|
+
"git-dirty-or-diverged": "git-dirty-or-diverged";
|
|
394
|
+
"loop-state-inconsistent": "loop-state-inconsistent";
|
|
395
|
+
"ledger-decay": "ledger-decay";
|
|
396
|
+
"docs-missing": "docs-missing";
|
|
397
|
+
}>;
|
|
398
|
+
severity: z.ZodEnum<{
|
|
399
|
+
info: "info";
|
|
400
|
+
warn: "warn";
|
|
401
|
+
}>;
|
|
930
402
|
message: z.ZodString;
|
|
931
403
|
evidence: z.ZodOptional<z.ZodString>;
|
|
932
|
-
},
|
|
933
|
-
|
|
934
|
-
message: string;
|
|
935
|
-
severity: "info" | "warn";
|
|
936
|
-
evidence?: string | undefined;
|
|
937
|
-
}, {
|
|
938
|
-
code: "git-dirty-or-diverged" | "loop-state-inconsistent" | "ledger-decay" | "docs-missing";
|
|
939
|
-
message: string;
|
|
940
|
-
severity: "info" | "warn";
|
|
941
|
-
evidence?: string | undefined;
|
|
942
|
-
}>, "many">;
|
|
943
|
-
}, "strip", z.ZodTypeAny, {
|
|
944
|
-
schemaVersion: 1;
|
|
945
|
-
generatedAt: string;
|
|
946
|
-
repo: {
|
|
947
|
-
git: {
|
|
948
|
-
available: boolean;
|
|
949
|
-
dirty?: boolean | undefined;
|
|
950
|
-
branch?: string | undefined;
|
|
951
|
-
ahead?: number | undefined;
|
|
952
|
-
behind?: number | undefined;
|
|
953
|
-
recentCommits?: string[] | undefined;
|
|
954
|
-
};
|
|
955
|
-
pkg: {
|
|
956
|
-
scripts: {
|
|
957
|
-
test?: boolean | undefined;
|
|
958
|
-
build?: boolean | undefined;
|
|
959
|
-
lint?: boolean | undefined;
|
|
960
|
-
typecheck?: boolean | undefined;
|
|
961
|
-
};
|
|
962
|
-
name?: string | undefined;
|
|
963
|
-
version?: string | undefined;
|
|
964
|
-
workspaces?: boolean | undefined;
|
|
965
|
-
};
|
|
966
|
-
docs: {
|
|
967
|
-
readme: boolean;
|
|
968
|
-
design: boolean;
|
|
969
|
-
roadmap: boolean;
|
|
970
|
-
changelog: boolean;
|
|
971
|
-
docsDir: boolean;
|
|
972
|
-
};
|
|
973
|
-
surfaces: {
|
|
974
|
-
turbo: boolean;
|
|
975
|
-
};
|
|
976
|
-
phases: {
|
|
977
|
-
count: number;
|
|
978
|
-
latestId?: string | undefined;
|
|
979
|
-
};
|
|
980
|
-
};
|
|
981
|
-
backend: {
|
|
982
|
-
kind: "cadence" | null;
|
|
983
|
-
present: boolean;
|
|
984
|
-
legalActions: string[];
|
|
985
|
-
profile?: string | undefined;
|
|
986
|
-
tier?: string | null | undefined;
|
|
987
|
-
activePhase?: string | null | undefined;
|
|
988
|
-
activeDraft?: string | null | undefined;
|
|
989
|
-
activeSpec?: string | null | undefined;
|
|
990
|
-
loopPosition?: string | undefined;
|
|
991
|
-
artifacts?: {
|
|
992
|
-
roadmap: boolean;
|
|
993
|
-
phaseCount: number;
|
|
994
|
-
state: boolean;
|
|
995
|
-
milestones: boolean;
|
|
996
|
-
} | undefined;
|
|
997
|
-
stateError?: string | undefined;
|
|
998
|
-
};
|
|
999
|
-
ledger: {
|
|
1000
|
-
recommendations: number;
|
|
1001
|
-
evidence: number;
|
|
1002
|
-
byDecay: Record<string, number>;
|
|
1003
|
-
};
|
|
1004
|
-
flags: {
|
|
1005
|
-
code: "git-dirty-or-diverged" | "loop-state-inconsistent" | "ledger-decay" | "docs-missing";
|
|
1006
|
-
message: string;
|
|
1007
|
-
severity: "info" | "warn";
|
|
1008
|
-
evidence?: string | undefined;
|
|
1009
|
-
}[];
|
|
1010
|
-
}, {
|
|
1011
|
-
schemaVersion: 1;
|
|
1012
|
-
generatedAt: string;
|
|
1013
|
-
repo: {
|
|
1014
|
-
git: {
|
|
1015
|
-
available: boolean;
|
|
1016
|
-
dirty?: boolean | undefined;
|
|
1017
|
-
branch?: string | undefined;
|
|
1018
|
-
ahead?: number | undefined;
|
|
1019
|
-
behind?: number | undefined;
|
|
1020
|
-
recentCommits?: string[] | undefined;
|
|
1021
|
-
};
|
|
1022
|
-
pkg: {
|
|
1023
|
-
scripts: {
|
|
1024
|
-
test?: boolean | undefined;
|
|
1025
|
-
build?: boolean | undefined;
|
|
1026
|
-
lint?: boolean | undefined;
|
|
1027
|
-
typecheck?: boolean | undefined;
|
|
1028
|
-
};
|
|
1029
|
-
name?: string | undefined;
|
|
1030
|
-
version?: string | undefined;
|
|
1031
|
-
workspaces?: boolean | undefined;
|
|
1032
|
-
};
|
|
1033
|
-
docs: {
|
|
1034
|
-
readme: boolean;
|
|
1035
|
-
design: boolean;
|
|
1036
|
-
roadmap: boolean;
|
|
1037
|
-
changelog: boolean;
|
|
1038
|
-
docsDir: boolean;
|
|
1039
|
-
};
|
|
1040
|
-
surfaces: {
|
|
1041
|
-
turbo: boolean;
|
|
1042
|
-
};
|
|
1043
|
-
phases: {
|
|
1044
|
-
count: number;
|
|
1045
|
-
latestId?: string | undefined;
|
|
1046
|
-
};
|
|
1047
|
-
};
|
|
1048
|
-
backend: {
|
|
1049
|
-
kind: "cadence" | null;
|
|
1050
|
-
present: boolean;
|
|
1051
|
-
legalActions: string[];
|
|
1052
|
-
profile?: string | undefined;
|
|
1053
|
-
tier?: string | null | undefined;
|
|
1054
|
-
activePhase?: string | null | undefined;
|
|
1055
|
-
activeDraft?: string | null | undefined;
|
|
1056
|
-
activeSpec?: string | null | undefined;
|
|
1057
|
-
loopPosition?: string | undefined;
|
|
1058
|
-
artifacts?: {
|
|
1059
|
-
roadmap: boolean;
|
|
1060
|
-
phaseCount: number;
|
|
1061
|
-
state: boolean;
|
|
1062
|
-
milestones: boolean;
|
|
1063
|
-
} | undefined;
|
|
1064
|
-
stateError?: string | undefined;
|
|
1065
|
-
};
|
|
1066
|
-
ledger: {
|
|
1067
|
-
recommendations: number;
|
|
1068
|
-
evidence: number;
|
|
1069
|
-
byDecay: Record<string, number>;
|
|
1070
|
-
};
|
|
1071
|
-
flags: {
|
|
1072
|
-
code: "git-dirty-or-diverged" | "loop-state-inconsistent" | "ledger-decay" | "docs-missing";
|
|
1073
|
-
message: string;
|
|
1074
|
-
severity: "info" | "warn";
|
|
1075
|
-
evidence?: string | undefined;
|
|
1076
|
-
}[];
|
|
1077
|
-
}>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
}, z.core.$strip>;
|
|
1078
406
|
export type Inspection = z.infer<typeof InspectionZ>;
|
|
1079
407
|
export declare const ScoreTermZ: z.ZodObject<{
|
|
1080
408
|
label: z.ZodString;
|
|
1081
409
|
value: z.ZodNumber;
|
|
1082
|
-
},
|
|
1083
|
-
value: number;
|
|
1084
|
-
label: string;
|
|
1085
|
-
}, {
|
|
1086
|
-
value: number;
|
|
1087
|
-
label: string;
|
|
1088
|
-
}>;
|
|
410
|
+
}, z.core.$strip>;
|
|
1089
411
|
export type ScoreTerm = z.infer<typeof ScoreTermZ>;
|
|
1090
412
|
export declare const RecommendationRankZ: z.ZodObject<{
|
|
1091
413
|
id: z.ZodString;
|
|
1092
414
|
title: z.ZodString;
|
|
1093
415
|
raw: z.ZodNumber;
|
|
1094
416
|
score: z.ZodNumber;
|
|
1095
|
-
status: z.ZodEnum<
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
417
|
+
status: z.ZodEnum<{
|
|
418
|
+
candidate: "candidate";
|
|
419
|
+
accepted: "accepted";
|
|
420
|
+
deferred: "deferred";
|
|
421
|
+
rejected: "rejected";
|
|
422
|
+
converted: "converted";
|
|
423
|
+
}>;
|
|
424
|
+
readiness: z.ZodEnum<{
|
|
425
|
+
"raw-idea": "raw-idea";
|
|
426
|
+
"needs-evidence": "needs-evidence";
|
|
427
|
+
"needs-decision": "needs-decision";
|
|
428
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
429
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
430
|
+
blocked: "blocked";
|
|
431
|
+
}>;
|
|
432
|
+
priority: z.ZodEnum<{
|
|
433
|
+
low: "low";
|
|
434
|
+
medium: "medium";
|
|
435
|
+
high: "high";
|
|
436
|
+
critical: "critical";
|
|
437
|
+
}>;
|
|
438
|
+
decayState: z.ZodEnum<{
|
|
439
|
+
fresh: "fresh";
|
|
440
|
+
aging: "aging";
|
|
441
|
+
stale: "stale";
|
|
442
|
+
superseded: "superseded";
|
|
443
|
+
contradicted: "contradicted";
|
|
444
|
+
"needs-revalidation": "needs-revalidation";
|
|
445
|
+
}>;
|
|
1099
446
|
terms: z.ZodArray<z.ZodObject<{
|
|
1100
447
|
label: z.ZodString;
|
|
1101
448
|
value: z.ZodNumber;
|
|
1102
|
-
},
|
|
1103
|
-
value: number;
|
|
1104
|
-
label: string;
|
|
1105
|
-
}, {
|
|
1106
|
-
value: number;
|
|
1107
|
-
label: string;
|
|
1108
|
-
}>, "many">;
|
|
449
|
+
}, z.core.$strip>>;
|
|
1109
450
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
1110
|
-
},
|
|
1111
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1112
|
-
raw: number;
|
|
1113
|
-
id: string;
|
|
1114
|
-
title: string;
|
|
1115
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1116
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1117
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1118
|
-
score: number;
|
|
1119
|
-
terms: {
|
|
1120
|
-
value: number;
|
|
1121
|
-
label: string;
|
|
1122
|
-
}[];
|
|
1123
|
-
suggestedBackendAction?: string | undefined;
|
|
1124
|
-
}, {
|
|
1125
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1126
|
-
raw: number;
|
|
1127
|
-
id: string;
|
|
1128
|
-
title: string;
|
|
1129
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1130
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1131
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1132
|
-
score: number;
|
|
1133
|
-
terms: {
|
|
1134
|
-
value: number;
|
|
1135
|
-
label: string;
|
|
1136
|
-
}[];
|
|
1137
|
-
suggestedBackendAction?: string | undefined;
|
|
1138
|
-
}>;
|
|
451
|
+
}, z.core.$strip>;
|
|
1139
452
|
export type RecommendationRank = z.infer<typeof RecommendationRankZ>;
|
|
1140
453
|
export declare const RecommendationAdvisoryZ: z.ZodObject<{
|
|
1141
|
-
kind: z.ZodEnum<
|
|
454
|
+
kind: z.ZodEnum<{
|
|
455
|
+
"finish-loop": "finish-loop";
|
|
456
|
+
"top-recommendation": "top-recommendation";
|
|
457
|
+
"spec-new": "spec-new";
|
|
458
|
+
empty: "empty";
|
|
459
|
+
}>;
|
|
1142
460
|
primary: z.ZodString;
|
|
1143
461
|
secondary: z.ZodOptional<z.ZodString>;
|
|
1144
|
-
},
|
|
1145
|
-
kind: "finish-loop" | "top-recommendation" | "spec-new" | "empty";
|
|
1146
|
-
primary: string;
|
|
1147
|
-
secondary?: string | undefined;
|
|
1148
|
-
}, {
|
|
1149
|
-
kind: "finish-loop" | "top-recommendation" | "spec-new" | "empty";
|
|
1150
|
-
primary: string;
|
|
1151
|
-
secondary?: string | undefined;
|
|
1152
|
-
}>;
|
|
462
|
+
}, z.core.$strip>;
|
|
1153
463
|
export type RecommendationAdvisory = z.infer<typeof RecommendationAdvisoryZ>;
|
|
1154
464
|
export declare const RecommendationReportZ: z.ZodObject<{
|
|
1155
465
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -1159,290 +469,132 @@ export declare const RecommendationReportZ: z.ZodObject<{
|
|
|
1159
469
|
title: z.ZodString;
|
|
1160
470
|
raw: z.ZodNumber;
|
|
1161
471
|
score: z.ZodNumber;
|
|
1162
|
-
status: z.ZodEnum<
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
472
|
+
status: z.ZodEnum<{
|
|
473
|
+
candidate: "candidate";
|
|
474
|
+
accepted: "accepted";
|
|
475
|
+
deferred: "deferred";
|
|
476
|
+
rejected: "rejected";
|
|
477
|
+
converted: "converted";
|
|
478
|
+
}>;
|
|
479
|
+
readiness: z.ZodEnum<{
|
|
480
|
+
"raw-idea": "raw-idea";
|
|
481
|
+
"needs-evidence": "needs-evidence";
|
|
482
|
+
"needs-decision": "needs-decision";
|
|
483
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
484
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
485
|
+
blocked: "blocked";
|
|
486
|
+
}>;
|
|
487
|
+
priority: z.ZodEnum<{
|
|
488
|
+
low: "low";
|
|
489
|
+
medium: "medium";
|
|
490
|
+
high: "high";
|
|
491
|
+
critical: "critical";
|
|
492
|
+
}>;
|
|
493
|
+
decayState: z.ZodEnum<{
|
|
494
|
+
fresh: "fresh";
|
|
495
|
+
aging: "aging";
|
|
496
|
+
stale: "stale";
|
|
497
|
+
superseded: "superseded";
|
|
498
|
+
contradicted: "contradicted";
|
|
499
|
+
"needs-revalidation": "needs-revalidation";
|
|
500
|
+
}>;
|
|
1166
501
|
terms: z.ZodArray<z.ZodObject<{
|
|
1167
502
|
label: z.ZodString;
|
|
1168
503
|
value: z.ZodNumber;
|
|
1169
|
-
},
|
|
1170
|
-
value: number;
|
|
1171
|
-
label: string;
|
|
1172
|
-
}, {
|
|
1173
|
-
value: number;
|
|
1174
|
-
label: string;
|
|
1175
|
-
}>, "many">;
|
|
504
|
+
}, z.core.$strip>>;
|
|
1176
505
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
1177
|
-
},
|
|
1178
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1179
|
-
raw: number;
|
|
1180
|
-
id: string;
|
|
1181
|
-
title: string;
|
|
1182
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1183
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1184
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1185
|
-
score: number;
|
|
1186
|
-
terms: {
|
|
1187
|
-
value: number;
|
|
1188
|
-
label: string;
|
|
1189
|
-
}[];
|
|
1190
|
-
suggestedBackendAction?: string | undefined;
|
|
1191
|
-
}, {
|
|
1192
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1193
|
-
raw: number;
|
|
1194
|
-
id: string;
|
|
1195
|
-
title: string;
|
|
1196
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1197
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1198
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1199
|
-
score: number;
|
|
1200
|
-
terms: {
|
|
1201
|
-
value: number;
|
|
1202
|
-
label: string;
|
|
1203
|
-
}[];
|
|
1204
|
-
suggestedBackendAction?: string | undefined;
|
|
1205
|
-
}>, "many">;
|
|
506
|
+
}, z.core.$strip>>;
|
|
1206
507
|
parked: z.ZodArray<z.ZodObject<{
|
|
1207
508
|
id: z.ZodString;
|
|
1208
509
|
title: z.ZodString;
|
|
1209
|
-
status: z.ZodEnum<
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
510
|
+
status: z.ZodEnum<{
|
|
511
|
+
candidate: "candidate";
|
|
512
|
+
accepted: "accepted";
|
|
513
|
+
deferred: "deferred";
|
|
514
|
+
rejected: "rejected";
|
|
515
|
+
converted: "converted";
|
|
516
|
+
}>;
|
|
517
|
+
readiness: z.ZodEnum<{
|
|
518
|
+
"raw-idea": "raw-idea";
|
|
519
|
+
"needs-evidence": "needs-evidence";
|
|
520
|
+
"needs-decision": "needs-decision";
|
|
521
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
522
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
523
|
+
blocked: "blocked";
|
|
524
|
+
}>;
|
|
525
|
+
}, z.core.$strip>>;
|
|
1222
526
|
needsAttention: z.ZodArray<z.ZodObject<{
|
|
1223
527
|
id: z.ZodString;
|
|
1224
528
|
title: z.ZodString;
|
|
1225
|
-
decayState: z.ZodEnum<
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}>, "many">;
|
|
529
|
+
decayState: z.ZodEnum<{
|
|
530
|
+
fresh: "fresh";
|
|
531
|
+
aging: "aging";
|
|
532
|
+
stale: "stale";
|
|
533
|
+
superseded: "superseded";
|
|
534
|
+
contradicted: "contradicted";
|
|
535
|
+
"needs-revalidation": "needs-revalidation";
|
|
536
|
+
}>;
|
|
537
|
+
}, z.core.$strip>>;
|
|
1235
538
|
advisory: z.ZodObject<{
|
|
1236
|
-
kind: z.ZodEnum<
|
|
539
|
+
kind: z.ZodEnum<{
|
|
540
|
+
"finish-loop": "finish-loop";
|
|
541
|
+
"top-recommendation": "top-recommendation";
|
|
542
|
+
"spec-new": "spec-new";
|
|
543
|
+
empty: "empty";
|
|
544
|
+
}>;
|
|
1237
545
|
primary: z.ZodString;
|
|
1238
546
|
secondary: z.ZodOptional<z.ZodString>;
|
|
1239
|
-
},
|
|
1240
|
-
kind: "finish-loop" | "top-recommendation" | "spec-new" | "empty";
|
|
1241
|
-
primary: string;
|
|
1242
|
-
secondary?: string | undefined;
|
|
1243
|
-
}, {
|
|
1244
|
-
kind: "finish-loop" | "top-recommendation" | "spec-new" | "empty";
|
|
1245
|
-
primary: string;
|
|
1246
|
-
secondary?: string | undefined;
|
|
1247
|
-
}>;
|
|
547
|
+
}, z.core.$strip>;
|
|
1248
548
|
totals: z.ZodObject<{
|
|
1249
549
|
total: z.ZodNumber;
|
|
1250
550
|
ranked: z.ZodNumber;
|
|
1251
551
|
parked: z.ZodNumber;
|
|
1252
552
|
needsAttention: z.ZodNumber;
|
|
1253
553
|
excluded: z.ZodNumber;
|
|
1254
|
-
},
|
|
1255
|
-
|
|
1256
|
-
parked: number;
|
|
1257
|
-
needsAttention: number;
|
|
1258
|
-
total: number;
|
|
1259
|
-
excluded: number;
|
|
1260
|
-
}, {
|
|
1261
|
-
ranked: number;
|
|
1262
|
-
parked: number;
|
|
1263
|
-
needsAttention: number;
|
|
1264
|
-
total: number;
|
|
1265
|
-
excluded: number;
|
|
1266
|
-
}>;
|
|
1267
|
-
}, "strip", z.ZodTypeAny, {
|
|
1268
|
-
schemaVersion: 1;
|
|
1269
|
-
generatedAt: string;
|
|
1270
|
-
ranked: {
|
|
1271
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1272
|
-
raw: number;
|
|
1273
|
-
id: string;
|
|
1274
|
-
title: string;
|
|
1275
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1276
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1277
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1278
|
-
score: number;
|
|
1279
|
-
terms: {
|
|
1280
|
-
value: number;
|
|
1281
|
-
label: string;
|
|
1282
|
-
}[];
|
|
1283
|
-
suggestedBackendAction?: string | undefined;
|
|
1284
|
-
}[];
|
|
1285
|
-
parked: {
|
|
1286
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1287
|
-
id: string;
|
|
1288
|
-
title: string;
|
|
1289
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1290
|
-
}[];
|
|
1291
|
-
needsAttention: {
|
|
1292
|
-
id: string;
|
|
1293
|
-
title: string;
|
|
1294
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1295
|
-
}[];
|
|
1296
|
-
advisory: {
|
|
1297
|
-
kind: "finish-loop" | "top-recommendation" | "spec-new" | "empty";
|
|
1298
|
-
primary: string;
|
|
1299
|
-
secondary?: string | undefined;
|
|
1300
|
-
};
|
|
1301
|
-
totals: {
|
|
1302
|
-
ranked: number;
|
|
1303
|
-
parked: number;
|
|
1304
|
-
needsAttention: number;
|
|
1305
|
-
total: number;
|
|
1306
|
-
excluded: number;
|
|
1307
|
-
};
|
|
1308
|
-
}, {
|
|
1309
|
-
schemaVersion: 1;
|
|
1310
|
-
generatedAt: string;
|
|
1311
|
-
ranked: {
|
|
1312
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1313
|
-
raw: number;
|
|
1314
|
-
id: string;
|
|
1315
|
-
title: string;
|
|
1316
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1317
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1318
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1319
|
-
score: number;
|
|
1320
|
-
terms: {
|
|
1321
|
-
value: number;
|
|
1322
|
-
label: string;
|
|
1323
|
-
}[];
|
|
1324
|
-
suggestedBackendAction?: string | undefined;
|
|
1325
|
-
}[];
|
|
1326
|
-
parked: {
|
|
1327
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1328
|
-
id: string;
|
|
1329
|
-
title: string;
|
|
1330
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1331
|
-
}[];
|
|
1332
|
-
needsAttention: {
|
|
1333
|
-
id: string;
|
|
1334
|
-
title: string;
|
|
1335
|
-
decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
|
|
1336
|
-
}[];
|
|
1337
|
-
advisory: {
|
|
1338
|
-
kind: "finish-loop" | "top-recommendation" | "spec-new" | "empty";
|
|
1339
|
-
primary: string;
|
|
1340
|
-
secondary?: string | undefined;
|
|
1341
|
-
};
|
|
1342
|
-
totals: {
|
|
1343
|
-
ranked: number;
|
|
1344
|
-
parked: number;
|
|
1345
|
-
needsAttention: number;
|
|
1346
|
-
total: number;
|
|
1347
|
-
excluded: number;
|
|
1348
|
-
};
|
|
1349
|
-
}>;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
}, z.core.$strip>;
|
|
1350
556
|
export type RecommendationReport = z.infer<typeof RecommendationReportZ>;
|
|
1351
|
-
export declare const MilestoneStatusZ: z.ZodEnum<
|
|
557
|
+
export declare const MilestoneStatusZ: z.ZodEnum<{
|
|
558
|
+
accepted: "accepted";
|
|
559
|
+
deferred: "deferred";
|
|
560
|
+
proposed: "proposed";
|
|
561
|
+
exported: "exported";
|
|
562
|
+
closed: "closed";
|
|
563
|
+
}>;
|
|
1352
564
|
export type MilestoneStatus = z.infer<typeof MilestoneStatusZ>;
|
|
1353
565
|
export declare const MilestonePreMortemZ: z.ZodObject<{
|
|
1354
|
-
likelyFailureModes: z.ZodArray<z.ZodString
|
|
1355
|
-
hiddenDependencies: z.ZodArray<z.ZodString
|
|
1356
|
-
driftRisks: z.ZodArray<z.ZodString
|
|
1357
|
-
outOfScope: z.ZodArray<z.ZodString
|
|
1358
|
-
},
|
|
1359
|
-
likelyFailureModes: string[];
|
|
1360
|
-
hiddenDependencies: string[];
|
|
1361
|
-
driftRisks: string[];
|
|
1362
|
-
outOfScope: string[];
|
|
1363
|
-
}, {
|
|
1364
|
-
likelyFailureModes: string[];
|
|
1365
|
-
hiddenDependencies: string[];
|
|
1366
|
-
driftRisks: string[];
|
|
1367
|
-
outOfScope: string[];
|
|
1368
|
-
}>;
|
|
566
|
+
likelyFailureModes: z.ZodArray<z.ZodString>;
|
|
567
|
+
hiddenDependencies: z.ZodArray<z.ZodString>;
|
|
568
|
+
driftRisks: z.ZodArray<z.ZodString>;
|
|
569
|
+
outOfScope: z.ZodArray<z.ZodString>;
|
|
570
|
+
}, z.core.$strip>;
|
|
1369
571
|
export type MilestonePreMortem = z.infer<typeof MilestonePreMortemZ>;
|
|
1370
572
|
export declare const IntelligenceMilestoneZ: z.ZodObject<{
|
|
1371
573
|
id: z.ZodString;
|
|
1372
574
|
name: z.ZodString;
|
|
1373
575
|
objective: z.ZodString;
|
|
1374
|
-
status: z.ZodEnum<
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
outOfScope: z.ZodArray<z.ZodString, "many">;
|
|
1381
|
-
}, "strip", z.ZodTypeAny, {
|
|
1382
|
-
likelyFailureModes: string[];
|
|
1383
|
-
hiddenDependencies: string[];
|
|
1384
|
-
driftRisks: string[];
|
|
1385
|
-
outOfScope: string[];
|
|
1386
|
-
}, {
|
|
1387
|
-
likelyFailureModes: string[];
|
|
1388
|
-
hiddenDependencies: string[];
|
|
1389
|
-
driftRisks: string[];
|
|
1390
|
-
outOfScope: string[];
|
|
576
|
+
status: z.ZodEnum<{
|
|
577
|
+
accepted: "accepted";
|
|
578
|
+
deferred: "deferred";
|
|
579
|
+
proposed: "proposed";
|
|
580
|
+
exported: "exported";
|
|
581
|
+
closed: "closed";
|
|
1391
582
|
}>;
|
|
583
|
+
recommendationIds: z.ZodArray<z.ZodString>;
|
|
584
|
+
preMortem: z.ZodObject<{
|
|
585
|
+
likelyFailureModes: z.ZodArray<z.ZodString>;
|
|
586
|
+
hiddenDependencies: z.ZodArray<z.ZodString>;
|
|
587
|
+
driftRisks: z.ZodArray<z.ZodString>;
|
|
588
|
+
outOfScope: z.ZodArray<z.ZodString>;
|
|
589
|
+
}, z.core.$strip>;
|
|
1392
590
|
exportTargets: z.ZodArray<z.ZodObject<{
|
|
1393
591
|
backend: z.ZodLiteral<"cadence">;
|
|
1394
592
|
artifactPath: z.ZodString;
|
|
1395
593
|
exportedAt: z.ZodString;
|
|
1396
|
-
},
|
|
1397
|
-
backend: "cadence";
|
|
1398
|
-
artifactPath: string;
|
|
1399
|
-
exportedAt: string;
|
|
1400
|
-
}, {
|
|
1401
|
-
backend: "cadence";
|
|
1402
|
-
artifactPath: string;
|
|
1403
|
-
exportedAt: string;
|
|
1404
|
-
}>, "many">;
|
|
594
|
+
}, z.core.$strip>>;
|
|
1405
595
|
createdAt: z.ZodString;
|
|
1406
596
|
updatedAt: z.ZodString;
|
|
1407
|
-
},
|
|
1408
|
-
status: "deferred" | "accepted" | "proposed" | "exported" | "closed";
|
|
1409
|
-
id: string;
|
|
1410
|
-
createdAt: string;
|
|
1411
|
-
name: string;
|
|
1412
|
-
objective: string;
|
|
1413
|
-
updatedAt: string;
|
|
1414
|
-
recommendationIds: string[];
|
|
1415
|
-
preMortem: {
|
|
1416
|
-
likelyFailureModes: string[];
|
|
1417
|
-
hiddenDependencies: string[];
|
|
1418
|
-
driftRisks: string[];
|
|
1419
|
-
outOfScope: string[];
|
|
1420
|
-
};
|
|
1421
|
-
exportTargets: {
|
|
1422
|
-
backend: "cadence";
|
|
1423
|
-
artifactPath: string;
|
|
1424
|
-
exportedAt: string;
|
|
1425
|
-
}[];
|
|
1426
|
-
}, {
|
|
1427
|
-
status: "deferred" | "accepted" | "proposed" | "exported" | "closed";
|
|
1428
|
-
id: string;
|
|
1429
|
-
createdAt: string;
|
|
1430
|
-
name: string;
|
|
1431
|
-
objective: string;
|
|
1432
|
-
updatedAt: string;
|
|
1433
|
-
recommendationIds: string[];
|
|
1434
|
-
preMortem: {
|
|
1435
|
-
likelyFailureModes: string[];
|
|
1436
|
-
hiddenDependencies: string[];
|
|
1437
|
-
driftRisks: string[];
|
|
1438
|
-
outOfScope: string[];
|
|
1439
|
-
};
|
|
1440
|
-
exportTargets: {
|
|
1441
|
-
backend: "cadence";
|
|
1442
|
-
artifactPath: string;
|
|
1443
|
-
exportedAt: string;
|
|
1444
|
-
}[];
|
|
1445
|
-
}>;
|
|
597
|
+
}, z.core.$strip>;
|
|
1446
598
|
export type IntelligenceMilestone = z.infer<typeof IntelligenceMilestoneZ>;
|
|
1447
599
|
export declare const MilestoneLedgerZ: z.ZodObject<{
|
|
1448
600
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -1450,156 +602,74 @@ export declare const MilestoneLedgerZ: z.ZodObject<{
|
|
|
1450
602
|
id: z.ZodString;
|
|
1451
603
|
name: z.ZodString;
|
|
1452
604
|
objective: z.ZodString;
|
|
1453
|
-
status: z.ZodEnum<
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
outOfScope: z.ZodArray<z.ZodString, "many">;
|
|
1460
|
-
}, "strip", z.ZodTypeAny, {
|
|
1461
|
-
likelyFailureModes: string[];
|
|
1462
|
-
hiddenDependencies: string[];
|
|
1463
|
-
driftRisks: string[];
|
|
1464
|
-
outOfScope: string[];
|
|
1465
|
-
}, {
|
|
1466
|
-
likelyFailureModes: string[];
|
|
1467
|
-
hiddenDependencies: string[];
|
|
1468
|
-
driftRisks: string[];
|
|
1469
|
-
outOfScope: string[];
|
|
605
|
+
status: z.ZodEnum<{
|
|
606
|
+
accepted: "accepted";
|
|
607
|
+
deferred: "deferred";
|
|
608
|
+
proposed: "proposed";
|
|
609
|
+
exported: "exported";
|
|
610
|
+
closed: "closed";
|
|
1470
611
|
}>;
|
|
612
|
+
recommendationIds: z.ZodArray<z.ZodString>;
|
|
613
|
+
preMortem: z.ZodObject<{
|
|
614
|
+
likelyFailureModes: z.ZodArray<z.ZodString>;
|
|
615
|
+
hiddenDependencies: z.ZodArray<z.ZodString>;
|
|
616
|
+
driftRisks: z.ZodArray<z.ZodString>;
|
|
617
|
+
outOfScope: z.ZodArray<z.ZodString>;
|
|
618
|
+
}, z.core.$strip>;
|
|
1471
619
|
exportTargets: z.ZodArray<z.ZodObject<{
|
|
1472
620
|
backend: z.ZodLiteral<"cadence">;
|
|
1473
621
|
artifactPath: z.ZodString;
|
|
1474
622
|
exportedAt: z.ZodString;
|
|
1475
|
-
},
|
|
1476
|
-
backend: "cadence";
|
|
1477
|
-
artifactPath: string;
|
|
1478
|
-
exportedAt: string;
|
|
1479
|
-
}, {
|
|
1480
|
-
backend: "cadence";
|
|
1481
|
-
artifactPath: string;
|
|
1482
|
-
exportedAt: string;
|
|
1483
|
-
}>, "many">;
|
|
623
|
+
}, z.core.$strip>>;
|
|
1484
624
|
createdAt: z.ZodString;
|
|
1485
625
|
updatedAt: z.ZodString;
|
|
1486
|
-
},
|
|
1487
|
-
|
|
1488
|
-
id: string;
|
|
1489
|
-
createdAt: string;
|
|
1490
|
-
name: string;
|
|
1491
|
-
objective: string;
|
|
1492
|
-
updatedAt: string;
|
|
1493
|
-
recommendationIds: string[];
|
|
1494
|
-
preMortem: {
|
|
1495
|
-
likelyFailureModes: string[];
|
|
1496
|
-
hiddenDependencies: string[];
|
|
1497
|
-
driftRisks: string[];
|
|
1498
|
-
outOfScope: string[];
|
|
1499
|
-
};
|
|
1500
|
-
exportTargets: {
|
|
1501
|
-
backend: "cadence";
|
|
1502
|
-
artifactPath: string;
|
|
1503
|
-
exportedAt: string;
|
|
1504
|
-
}[];
|
|
1505
|
-
}, {
|
|
1506
|
-
status: "deferred" | "accepted" | "proposed" | "exported" | "closed";
|
|
1507
|
-
id: string;
|
|
1508
|
-
createdAt: string;
|
|
1509
|
-
name: string;
|
|
1510
|
-
objective: string;
|
|
1511
|
-
updatedAt: string;
|
|
1512
|
-
recommendationIds: string[];
|
|
1513
|
-
preMortem: {
|
|
1514
|
-
likelyFailureModes: string[];
|
|
1515
|
-
hiddenDependencies: string[];
|
|
1516
|
-
driftRisks: string[];
|
|
1517
|
-
outOfScope: string[];
|
|
1518
|
-
};
|
|
1519
|
-
exportTargets: {
|
|
1520
|
-
backend: "cadence";
|
|
1521
|
-
artifactPath: string;
|
|
1522
|
-
exportedAt: string;
|
|
1523
|
-
}[];
|
|
1524
|
-
}>, "many">;
|
|
1525
|
-
}, "strip", z.ZodTypeAny, {
|
|
1526
|
-
schemaVersion: 1;
|
|
1527
|
-
milestones: {
|
|
1528
|
-
status: "deferred" | "accepted" | "proposed" | "exported" | "closed";
|
|
1529
|
-
id: string;
|
|
1530
|
-
createdAt: string;
|
|
1531
|
-
name: string;
|
|
1532
|
-
objective: string;
|
|
1533
|
-
updatedAt: string;
|
|
1534
|
-
recommendationIds: string[];
|
|
1535
|
-
preMortem: {
|
|
1536
|
-
likelyFailureModes: string[];
|
|
1537
|
-
hiddenDependencies: string[];
|
|
1538
|
-
driftRisks: string[];
|
|
1539
|
-
outOfScope: string[];
|
|
1540
|
-
};
|
|
1541
|
-
exportTargets: {
|
|
1542
|
-
backend: "cadence";
|
|
1543
|
-
artifactPath: string;
|
|
1544
|
-
exportedAt: string;
|
|
1545
|
-
}[];
|
|
1546
|
-
}[];
|
|
1547
|
-
}, {
|
|
1548
|
-
schemaVersion: 1;
|
|
1549
|
-
milestones: {
|
|
1550
|
-
status: "deferred" | "accepted" | "proposed" | "exported" | "closed";
|
|
1551
|
-
id: string;
|
|
1552
|
-
createdAt: string;
|
|
1553
|
-
name: string;
|
|
1554
|
-
objective: string;
|
|
1555
|
-
updatedAt: string;
|
|
1556
|
-
recommendationIds: string[];
|
|
1557
|
-
preMortem: {
|
|
1558
|
-
likelyFailureModes: string[];
|
|
1559
|
-
hiddenDependencies: string[];
|
|
1560
|
-
driftRisks: string[];
|
|
1561
|
-
outOfScope: string[];
|
|
1562
|
-
};
|
|
1563
|
-
exportTargets: {
|
|
1564
|
-
backend: "cadence";
|
|
1565
|
-
artifactPath: string;
|
|
1566
|
-
exportedAt: string;
|
|
1567
|
-
}[];
|
|
1568
|
-
}[];
|
|
1569
|
-
}>;
|
|
626
|
+
}, z.core.$strip>>;
|
|
627
|
+
}, z.core.$strip>;
|
|
1570
628
|
export type MilestoneLedger = z.infer<typeof MilestoneLedgerZ>;
|
|
1571
629
|
export declare function emptyMilestoneLedger(): MilestoneLedger;
|
|
1572
|
-
export declare const ContextScopeZ: z.ZodEnum<
|
|
630
|
+
export declare const ContextScopeZ: z.ZodEnum<{
|
|
631
|
+
phase: "phase";
|
|
632
|
+
handoff: "handoff";
|
|
633
|
+
review: "review";
|
|
634
|
+
agent: "agent";
|
|
635
|
+
}>;
|
|
1573
636
|
export type ContextScope = z.infer<typeof ContextScopeZ>;
|
|
1574
637
|
export declare const ContextRecZ: z.ZodObject<{
|
|
1575
638
|
id: z.ZodString;
|
|
1576
639
|
title: z.ZodString;
|
|
1577
640
|
score: z.ZodNumber;
|
|
1578
|
-
status: z.ZodEnum<
|
|
1579
|
-
|
|
1580
|
-
|
|
641
|
+
status: z.ZodEnum<{
|
|
642
|
+
candidate: "candidate";
|
|
643
|
+
accepted: "accepted";
|
|
644
|
+
deferred: "deferred";
|
|
645
|
+
rejected: "rejected";
|
|
646
|
+
converted: "converted";
|
|
647
|
+
}>;
|
|
648
|
+
readiness: z.ZodEnum<{
|
|
649
|
+
"raw-idea": "raw-idea";
|
|
650
|
+
"needs-evidence": "needs-evidence";
|
|
651
|
+
"needs-decision": "needs-decision";
|
|
652
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
653
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
654
|
+
blocked: "blocked";
|
|
655
|
+
}>;
|
|
656
|
+
priority: z.ZodEnum<{
|
|
657
|
+
low: "low";
|
|
658
|
+
medium: "medium";
|
|
659
|
+
high: "high";
|
|
660
|
+
critical: "critical";
|
|
661
|
+
}>;
|
|
1581
662
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
1582
|
-
},
|
|
1583
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1584
|
-
id: string;
|
|
1585
|
-
title: string;
|
|
1586
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1587
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1588
|
-
score: number;
|
|
1589
|
-
suggestedBackendAction?: string | undefined;
|
|
1590
|
-
}, {
|
|
1591
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1592
|
-
id: string;
|
|
1593
|
-
title: string;
|
|
1594
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1595
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1596
|
-
score: number;
|
|
1597
|
-
suggestedBackendAction?: string | undefined;
|
|
1598
|
-
}>;
|
|
663
|
+
}, z.core.$strip>;
|
|
1599
664
|
export type ContextRec = z.infer<typeof ContextRecZ>;
|
|
1600
665
|
export declare const ContextPacketZ: z.ZodObject<{
|
|
1601
666
|
schemaVersion: z.ZodLiteral<1>;
|
|
1602
|
-
scope: z.ZodEnum<
|
|
667
|
+
scope: z.ZodEnum<{
|
|
668
|
+
phase: "phase";
|
|
669
|
+
handoff: "handoff";
|
|
670
|
+
review: "review";
|
|
671
|
+
agent: "agent";
|
|
672
|
+
}>;
|
|
1603
673
|
generatedAt: z.ZodString;
|
|
1604
674
|
loop: z.ZodObject<{
|
|
1605
675
|
present: z.ZodBoolean;
|
|
@@ -1610,252 +680,86 @@ export declare const ContextPacketZ: z.ZodObject<{
|
|
|
1610
680
|
tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1611
681
|
nextAction: z.ZodOptional<z.ZodString>;
|
|
1612
682
|
stateError: z.ZodOptional<z.ZodString>;
|
|
1613
|
-
},
|
|
1614
|
-
present: boolean;
|
|
1615
|
-
tier?: string | null | undefined;
|
|
1616
|
-
activePhase?: string | null | undefined;
|
|
1617
|
-
activeDraft?: string | null | undefined;
|
|
1618
|
-
activeSpec?: string | null | undefined;
|
|
1619
|
-
loopPosition?: string | undefined;
|
|
1620
|
-
stateError?: string | undefined;
|
|
1621
|
-
nextAction?: string | undefined;
|
|
1622
|
-
}, {
|
|
1623
|
-
present: boolean;
|
|
1624
|
-
tier?: string | null | undefined;
|
|
1625
|
-
activePhase?: string | null | undefined;
|
|
1626
|
-
activeDraft?: string | null | undefined;
|
|
1627
|
-
activeSpec?: string | null | undefined;
|
|
1628
|
-
loopPosition?: string | undefined;
|
|
1629
|
-
stateError?: string | undefined;
|
|
1630
|
-
nextAction?: string | undefined;
|
|
1631
|
-
}>;
|
|
683
|
+
}, z.core.$strip>;
|
|
1632
684
|
recommendations: z.ZodArray<z.ZodObject<{
|
|
1633
685
|
id: z.ZodString;
|
|
1634
686
|
title: z.ZodString;
|
|
1635
687
|
score: z.ZodNumber;
|
|
1636
|
-
status: z.ZodEnum<
|
|
1637
|
-
|
|
1638
|
-
|
|
688
|
+
status: z.ZodEnum<{
|
|
689
|
+
candidate: "candidate";
|
|
690
|
+
accepted: "accepted";
|
|
691
|
+
deferred: "deferred";
|
|
692
|
+
rejected: "rejected";
|
|
693
|
+
converted: "converted";
|
|
694
|
+
}>;
|
|
695
|
+
readiness: z.ZodEnum<{
|
|
696
|
+
"raw-idea": "raw-idea";
|
|
697
|
+
"needs-evidence": "needs-evidence";
|
|
698
|
+
"needs-decision": "needs-decision";
|
|
699
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
700
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
701
|
+
blocked: "blocked";
|
|
702
|
+
}>;
|
|
703
|
+
priority: z.ZodEnum<{
|
|
704
|
+
low: "low";
|
|
705
|
+
medium: "medium";
|
|
706
|
+
high: "high";
|
|
707
|
+
critical: "critical";
|
|
708
|
+
}>;
|
|
1639
709
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
1640
|
-
},
|
|
1641
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1642
|
-
id: string;
|
|
1643
|
-
title: string;
|
|
1644
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1645
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1646
|
-
score: number;
|
|
1647
|
-
suggestedBackendAction?: string | undefined;
|
|
1648
|
-
}, {
|
|
1649
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1650
|
-
id: string;
|
|
1651
|
-
title: string;
|
|
1652
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1653
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1654
|
-
score: number;
|
|
1655
|
-
suggestedBackendAction?: string | undefined;
|
|
1656
|
-
}>, "many">;
|
|
710
|
+
}, z.core.$strip>>;
|
|
1657
711
|
assumptions: z.ZodArray<z.ZodObject<{
|
|
1658
712
|
id: z.ZodString;
|
|
1659
713
|
recommendationId: z.ZodString;
|
|
1660
714
|
text: z.ZodString;
|
|
1661
715
|
status: z.ZodLiteral<"open">;
|
|
1662
|
-
},
|
|
1663
|
-
status: "open";
|
|
1664
|
-
id: string;
|
|
1665
|
-
recommendationId: string;
|
|
1666
|
-
text: string;
|
|
1667
|
-
}, {
|
|
1668
|
-
status: "open";
|
|
1669
|
-
id: string;
|
|
1670
|
-
recommendationId: string;
|
|
1671
|
-
text: string;
|
|
1672
|
-
}>, "many">;
|
|
716
|
+
}, z.core.$strip>>;
|
|
1673
717
|
decisions: z.ZodArray<z.ZodObject<{
|
|
1674
718
|
id: z.ZodString;
|
|
1675
719
|
title: z.ZodString;
|
|
1676
720
|
rationale: z.ZodString;
|
|
1677
721
|
recommendationId: z.ZodOptional<z.ZodString>;
|
|
1678
722
|
status: z.ZodLiteral<"active">;
|
|
1679
|
-
},
|
|
1680
|
-
status: "active";
|
|
1681
|
-
id: string;
|
|
1682
|
-
title: string;
|
|
1683
|
-
rationale: string;
|
|
1684
|
-
recommendationId?: string | undefined;
|
|
1685
|
-
}, {
|
|
1686
|
-
status: "active";
|
|
1687
|
-
id: string;
|
|
1688
|
-
title: string;
|
|
1689
|
-
rationale: string;
|
|
1690
|
-
recommendationId?: string | undefined;
|
|
1691
|
-
}>, "many">;
|
|
723
|
+
}, z.core.$strip>>;
|
|
1692
724
|
files: z.ZodArray<z.ZodObject<{
|
|
1693
725
|
path: z.ZodString;
|
|
1694
726
|
why: z.ZodString;
|
|
1695
|
-
},
|
|
1696
|
-
path: string;
|
|
1697
|
-
why: string;
|
|
1698
|
-
}, {
|
|
1699
|
-
path: string;
|
|
1700
|
-
why: string;
|
|
1701
|
-
}>, "many">;
|
|
727
|
+
}, z.core.$strip>>;
|
|
1702
728
|
needsAttention: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1703
729
|
id: z.ZodString;
|
|
1704
730
|
title: z.ZodString;
|
|
1705
731
|
score: z.ZodNumber;
|
|
1706
|
-
status: z.ZodEnum<
|
|
1707
|
-
|
|
1708
|
-
|
|
732
|
+
status: z.ZodEnum<{
|
|
733
|
+
candidate: "candidate";
|
|
734
|
+
accepted: "accepted";
|
|
735
|
+
deferred: "deferred";
|
|
736
|
+
rejected: "rejected";
|
|
737
|
+
converted: "converted";
|
|
738
|
+
}>;
|
|
739
|
+
readiness: z.ZodEnum<{
|
|
740
|
+
"raw-idea": "raw-idea";
|
|
741
|
+
"needs-evidence": "needs-evidence";
|
|
742
|
+
"needs-decision": "needs-decision";
|
|
743
|
+
"ready-for-milestone": "ready-for-milestone";
|
|
744
|
+
"ready-for-cadence-spec": "ready-for-cadence-spec";
|
|
745
|
+
blocked: "blocked";
|
|
746
|
+
}>;
|
|
747
|
+
priority: z.ZodEnum<{
|
|
748
|
+
low: "low";
|
|
749
|
+
medium: "medium";
|
|
750
|
+
high: "high";
|
|
751
|
+
critical: "critical";
|
|
752
|
+
}>;
|
|
1709
753
|
suggestedBackendAction: z.ZodOptional<z.ZodString>;
|
|
1710
|
-
},
|
|
1711
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1712
|
-
id: string;
|
|
1713
|
-
title: string;
|
|
1714
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1715
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1716
|
-
score: number;
|
|
1717
|
-
suggestedBackendAction?: string | undefined;
|
|
1718
|
-
}, {
|
|
1719
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1720
|
-
id: string;
|
|
1721
|
-
title: string;
|
|
1722
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1723
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1724
|
-
score: number;
|
|
1725
|
-
suggestedBackendAction?: string | undefined;
|
|
1726
|
-
}>, "many">>;
|
|
754
|
+
}, z.core.$strip>>>;
|
|
1727
755
|
totals: z.ZodObject<{
|
|
1728
756
|
recommendations: z.ZodNumber;
|
|
1729
757
|
assumptions: z.ZodNumber;
|
|
1730
758
|
decisions: z.ZodNumber;
|
|
1731
759
|
files: z.ZodNumber;
|
|
1732
760
|
recommendationsOmitted: z.ZodNumber;
|
|
1733
|
-
},
|
|
1734
|
-
|
|
1735
|
-
files: number;
|
|
1736
|
-
recommendations: number;
|
|
1737
|
-
assumptions: number;
|
|
1738
|
-
recommendationsOmitted: number;
|
|
1739
|
-
}, {
|
|
1740
|
-
decisions: number;
|
|
1741
|
-
files: number;
|
|
1742
|
-
recommendations: number;
|
|
1743
|
-
assumptions: number;
|
|
1744
|
-
recommendationsOmitted: number;
|
|
1745
|
-
}>;
|
|
1746
|
-
}, "strip", z.ZodTypeAny, {
|
|
1747
|
-
schemaVersion: 1;
|
|
1748
|
-
decisions: {
|
|
1749
|
-
status: "active";
|
|
1750
|
-
id: string;
|
|
1751
|
-
title: string;
|
|
1752
|
-
rationale: string;
|
|
1753
|
-
recommendationId?: string | undefined;
|
|
1754
|
-
}[];
|
|
1755
|
-
files: {
|
|
1756
|
-
path: string;
|
|
1757
|
-
why: string;
|
|
1758
|
-
}[];
|
|
1759
|
-
recommendations: {
|
|
1760
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1761
|
-
id: string;
|
|
1762
|
-
title: string;
|
|
1763
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1764
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1765
|
-
score: number;
|
|
1766
|
-
suggestedBackendAction?: string | undefined;
|
|
1767
|
-
}[];
|
|
1768
|
-
assumptions: {
|
|
1769
|
-
status: "open";
|
|
1770
|
-
id: string;
|
|
1771
|
-
recommendationId: string;
|
|
1772
|
-
text: string;
|
|
1773
|
-
}[];
|
|
1774
|
-
generatedAt: string;
|
|
1775
|
-
totals: {
|
|
1776
|
-
decisions: number;
|
|
1777
|
-
files: number;
|
|
1778
|
-
recommendations: number;
|
|
1779
|
-
assumptions: number;
|
|
1780
|
-
recommendationsOmitted: number;
|
|
1781
|
-
};
|
|
1782
|
-
scope: "phase" | "handoff" | "review" | "agent";
|
|
1783
|
-
loop: {
|
|
1784
|
-
present: boolean;
|
|
1785
|
-
tier?: string | null | undefined;
|
|
1786
|
-
activePhase?: string | null | undefined;
|
|
1787
|
-
activeDraft?: string | null | undefined;
|
|
1788
|
-
activeSpec?: string | null | undefined;
|
|
1789
|
-
loopPosition?: string | undefined;
|
|
1790
|
-
stateError?: string | undefined;
|
|
1791
|
-
nextAction?: string | undefined;
|
|
1792
|
-
};
|
|
1793
|
-
needsAttention?: {
|
|
1794
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1795
|
-
id: string;
|
|
1796
|
-
title: string;
|
|
1797
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1798
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1799
|
-
score: number;
|
|
1800
|
-
suggestedBackendAction?: string | undefined;
|
|
1801
|
-
}[] | undefined;
|
|
1802
|
-
}, {
|
|
1803
|
-
schemaVersion: 1;
|
|
1804
|
-
decisions: {
|
|
1805
|
-
status: "active";
|
|
1806
|
-
id: string;
|
|
1807
|
-
title: string;
|
|
1808
|
-
rationale: string;
|
|
1809
|
-
recommendationId?: string | undefined;
|
|
1810
|
-
}[];
|
|
1811
|
-
files: {
|
|
1812
|
-
path: string;
|
|
1813
|
-
why: string;
|
|
1814
|
-
}[];
|
|
1815
|
-
recommendations: {
|
|
1816
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1817
|
-
id: string;
|
|
1818
|
-
title: string;
|
|
1819
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1820
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1821
|
-
score: number;
|
|
1822
|
-
suggestedBackendAction?: string | undefined;
|
|
1823
|
-
}[];
|
|
1824
|
-
assumptions: {
|
|
1825
|
-
status: "open";
|
|
1826
|
-
id: string;
|
|
1827
|
-
recommendationId: string;
|
|
1828
|
-
text: string;
|
|
1829
|
-
}[];
|
|
1830
|
-
generatedAt: string;
|
|
1831
|
-
totals: {
|
|
1832
|
-
decisions: number;
|
|
1833
|
-
files: number;
|
|
1834
|
-
recommendations: number;
|
|
1835
|
-
assumptions: number;
|
|
1836
|
-
recommendationsOmitted: number;
|
|
1837
|
-
};
|
|
1838
|
-
scope: "phase" | "handoff" | "review" | "agent";
|
|
1839
|
-
loop: {
|
|
1840
|
-
present: boolean;
|
|
1841
|
-
tier?: string | null | undefined;
|
|
1842
|
-
activePhase?: string | null | undefined;
|
|
1843
|
-
activeDraft?: string | null | undefined;
|
|
1844
|
-
activeSpec?: string | null | undefined;
|
|
1845
|
-
loopPosition?: string | undefined;
|
|
1846
|
-
stateError?: string | undefined;
|
|
1847
|
-
nextAction?: string | undefined;
|
|
1848
|
-
};
|
|
1849
|
-
needsAttention?: {
|
|
1850
|
-
status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
|
|
1851
|
-
id: string;
|
|
1852
|
-
title: string;
|
|
1853
|
-
readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
|
|
1854
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
1855
|
-
score: number;
|
|
1856
|
-
suggestedBackendAction?: string | undefined;
|
|
1857
|
-
}[] | undefined;
|
|
1858
|
-
}>;
|
|
761
|
+
}, z.core.$strip>;
|
|
762
|
+
}, z.core.$strip>;
|
|
1859
763
|
export type ContextPacket = z.infer<typeof ContextPacketZ>;
|
|
1860
764
|
export type DecisionAncestor = {
|
|
1861
765
|
decision: IntelligenceDecision;
|