@manehorizons/cadence-types 1.1.1

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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -0
  3. package/dist/anomaly.d.ts +42 -0
  4. package/dist/anomaly.d.ts.map +1 -0
  5. package/dist/anomaly.js +42 -0
  6. package/dist/anomaly.js.map +1 -0
  7. package/dist/config.d.ts +825 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +234 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/events.d.ts +30 -0
  12. package/dist/events.d.ts.map +1 -0
  13. package/dist/events.js +20 -0
  14. package/dist/events.js.map +1 -0
  15. package/dist/host.d.ts +10 -0
  16. package/dist/host.d.ts.map +1 -0
  17. package/dist/host.js +2 -0
  18. package/dist/host.js.map +1 -0
  19. package/dist/index.d.ts +11 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +11 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/intelligence.d.ts +1876 -0
  24. package/dist/intelligence.d.ts.map +1 -0
  25. package/dist/intelligence.js +321 -0
  26. package/dist/intelligence.js.map +1 -0
  27. package/dist/plan.d.ts +168 -0
  28. package/dist/plan.d.ts.map +1 -0
  29. package/dist/plan.js +36 -0
  30. package/dist/plan.js.map +1 -0
  31. package/dist/profile.d.ts +23 -0
  32. package/dist/profile.d.ts.map +1 -0
  33. package/dist/profile.js +32 -0
  34. package/dist/profile.js.map +1 -0
  35. package/dist/spec.d.ts +67 -0
  36. package/dist/spec.d.ts.map +1 -0
  37. package/dist/spec.js +19 -0
  38. package/dist/spec.js.map +1 -0
  39. package/dist/state.d.ts +256 -0
  40. package/dist/state.d.ts.map +1 -0
  41. package/dist/state.js +81 -0
  42. package/dist/state.js.map +1 -0
  43. package/dist/summary.d.ts +283 -0
  44. package/dist/summary.d.ts.map +1 -0
  45. package/dist/summary.js +42 -0
  46. package/dist/summary.js.map +1 -0
  47. package/package.json +46 -0
@@ -0,0 +1,1876 @@
1
+ import { z } from 'zod';
2
+ export declare const RecommendationSourceZ: z.ZodEnum<["manual", "code-analysis", "impact", "cadence", "session"]>;
3
+ export type RecommendationSource = z.infer<typeof RecommendationSourceZ>;
4
+ export declare const RecommendationStatusZ: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
5
+ export type RecommendationStatus = z.infer<typeof RecommendationStatusZ>;
6
+ export declare const RecommendationReadinessZ: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
7
+ export type RecommendationReadiness = z.infer<typeof RecommendationReadinessZ>;
8
+ export declare const RecommendationPriorityZ: z.ZodEnum<["low", "medium", "high", "critical"]>;
9
+ export type RecommendationPriority = z.infer<typeof RecommendationPriorityZ>;
10
+ export declare const RecommendationDecayStateZ: z.ZodEnum<["fresh", "aging", "stale", "superseded", "contradicted", "needs-revalidation"]>;
11
+ export type RecommendationDecayState = z.infer<typeof RecommendationDecayStateZ>;
12
+ export declare const RecommendationZ: z.ZodObject<{
13
+ id: z.ZodString;
14
+ title: z.ZodString;
15
+ summary: z.ZodString;
16
+ source: z.ZodEnum<["manual", "code-analysis", "impact", "cadence", "session"]>;
17
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
18
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
19
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
20
+ leverageScore: z.ZodNumber;
21
+ riskScore: z.ZodNumber;
22
+ confidence: z.ZodNumber;
23
+ decayState: z.ZodEnum<["fresh", "aging", "stale", "superseded", "contradicted", "needs-revalidation"]>;
24
+ affectedAreas: z.ZodArray<z.ZodString, "many">;
25
+ affectedFiles: z.ZodArray<z.ZodString, "many">;
26
+ suggestedMilestoneId: z.ZodOptional<z.ZodString>;
27
+ suggestedBackendAction: z.ZodOptional<z.ZodString>;
28
+ evidenceIds: z.ZodArray<z.ZodString, "many">;
29
+ assumptionIds: z.ZodArray<z.ZodString, "many">;
30
+ decisionIds: z.ZodArray<z.ZodString, "many">;
31
+ convertedToPhaseId: z.ZodOptional<z.ZodString>;
32
+ createdAt: z.ZodString;
33
+ updatedAt: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
79
+ export type Recommendation = z.infer<typeof RecommendationZ>;
80
+ export declare const EvidenceZ: z.ZodObject<{
81
+ id: z.ZodString;
82
+ recommendationId: z.ZodString;
83
+ kind: z.ZodEnum<["file", "command", "cadence-artifact", "note"]>;
84
+ summary: z.ZodString;
85
+ path: z.ZodOptional<z.ZodString>;
86
+ command: z.ZodOptional<z.ZodString>;
87
+ createdAt: z.ZodString;
88
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
105
+ export type Evidence = z.infer<typeof EvidenceZ>;
106
+ export declare const AssumptionZ: z.ZodObject<{
107
+ id: z.ZodString;
108
+ recommendationId: z.ZodString;
109
+ text: z.ZodString;
110
+ status: z.ZodEnum<["open", "validated", "rejected"]>;
111
+ createdAt: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
125
+ export type Assumption = z.infer<typeof AssumptionZ>;
126
+ export declare const IntelligenceDecisionZ: z.ZodObject<{
127
+ id: z.ZodString;
128
+ recommendationId: z.ZodOptional<z.ZodString>;
129
+ title: z.ZodString;
130
+ rationale: z.ZodString;
131
+ status: z.ZodDefault<z.ZodEnum<["active", "superseded", "rescinded"]>>;
132
+ decidedAt: z.ZodString;
133
+ supersededBy: z.ZodOptional<z.ZodString>;
134
+ supersedes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
135
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
154
+ export type IntelligenceDecision = z.infer<typeof IntelligenceDecisionZ>;
155
+ export declare const RecommendationLedgerZ: z.ZodObject<{
156
+ schemaVersion: z.ZodLiteral<1>;
157
+ recommendations: z.ZodArray<z.ZodObject<{
158
+ id: z.ZodString;
159
+ title: z.ZodString;
160
+ summary: z.ZodString;
161
+ source: z.ZodEnum<["manual", "code-analysis", "impact", "cadence", "session"]>;
162
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
163
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
164
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
165
+ leverageScore: z.ZodNumber;
166
+ riskScore: z.ZodNumber;
167
+ confidence: z.ZodNumber;
168
+ decayState: z.ZodEnum<["fresh", "aging", "stale", "superseded", "contradicted", "needs-revalidation"]>;
169
+ affectedAreas: z.ZodArray<z.ZodString, "many">;
170
+ affectedFiles: z.ZodArray<z.ZodString, "many">;
171
+ suggestedMilestoneId: z.ZodOptional<z.ZodString>;
172
+ suggestedBackendAction: z.ZodOptional<z.ZodString>;
173
+ evidenceIds: z.ZodArray<z.ZodString, "many">;
174
+ assumptionIds: z.ZodArray<z.ZodString, "many">;
175
+ decisionIds: z.ZodArray<z.ZodString, "many">;
176
+ convertedToPhaseId: z.ZodOptional<z.ZodString>;
177
+ createdAt: z.ZodString;
178
+ updatedAt: z.ZodString;
179
+ }, "strip", z.ZodTypeAny, {
180
+ status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
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
+ }>;
275
+ export type RecommendationLedger = z.infer<typeof RecommendationLedgerZ>;
276
+ export declare const EvidenceLedgerZ: z.ZodObject<{
277
+ schemaVersion: z.ZodLiteral<1>;
278
+ evidence: z.ZodArray<z.ZodObject<{
279
+ id: z.ZodString;
280
+ recommendationId: z.ZodString;
281
+ kind: z.ZodEnum<["file", "command", "cadence-artifact", "note"]>;
282
+ summary: z.ZodString;
283
+ path: z.ZodOptional<z.ZodString>;
284
+ command: z.ZodOptional<z.ZodString>;
285
+ createdAt: z.ZodString;
286
+ }, "strip", z.ZodTypeAny, {
287
+ id: string;
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
+ }>;
326
+ export type EvidenceLedger = z.infer<typeof EvidenceLedgerZ>;
327
+ export declare const AssumptionLedgerZ: z.ZodObject<{
328
+ schemaVersion: z.ZodLiteral<1>;
329
+ assumptions: z.ZodArray<z.ZodObject<{
330
+ id: z.ZodString;
331
+ recommendationId: z.ZodString;
332
+ text: z.ZodString;
333
+ status: z.ZodEnum<["open", "validated", "rejected"]>;
334
+ createdAt: z.ZodString;
335
+ }, "strip", z.ZodTypeAny, {
336
+ status: "rejected" | "open" | "validated";
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
+ }>;
367
+ export type AssumptionLedger = z.infer<typeof AssumptionLedgerZ>;
368
+ export declare const IntelligenceDecisionLedgerZ: z.ZodObject<{
369
+ schemaVersion: z.ZodLiteral<1>;
370
+ decisions: z.ZodArray<z.ZodObject<{
371
+ id: z.ZodString;
372
+ recommendationId: z.ZodOptional<z.ZodString>;
373
+ title: z.ZodString;
374
+ rationale: z.ZodString;
375
+ status: z.ZodDefault<z.ZodEnum<["active", "superseded", "rescinded"]>>;
376
+ decidedAt: z.ZodString;
377
+ supersededBy: z.ZodOptional<z.ZodString>;
378
+ supersedes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ status: "superseded" | "active" | "rescinded";
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
+ }>;
423
+ export type IntelligenceDecisionLedger = z.infer<typeof IntelligenceDecisionLedgerZ>;
424
+ export declare function emptyRecommendationLedger(): RecommendationLedger;
425
+ export declare function emptyEvidenceLedger(): EvidenceLedger;
426
+ export declare function emptyAssumptionLedger(): AssumptionLedger;
427
+ export declare function emptyIntelligenceDecisionLedger(): IntelligenceDecisionLedger;
428
+ export declare const RepoScanZ: z.ZodObject<{
429
+ git: z.ZodObject<{
430
+ available: z.ZodBoolean;
431
+ branch: z.ZodOptional<z.ZodString>;
432
+ dirty: z.ZodOptional<z.ZodBoolean>;
433
+ ahead: z.ZodOptional<z.ZodNumber>;
434
+ behind: z.ZodOptional<z.ZodNumber>;
435
+ recentCommits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
451
+ pkg: z.ZodObject<{
452
+ name: z.ZodOptional<z.ZodString>;
453
+ version: z.ZodOptional<z.ZodString>;
454
+ workspaces: z.ZodOptional<z.ZodBoolean>;
455
+ scripts: z.ZodObject<{
456
+ test: z.ZodOptional<z.ZodBoolean>;
457
+ build: z.ZodOptional<z.ZodBoolean>;
458
+ lint: z.ZodOptional<z.ZodBoolean>;
459
+ typecheck: z.ZodOptional<z.ZodBoolean>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ test?: boolean | undefined;
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
+ }>;
492
+ docs: z.ZodObject<{
493
+ readme: z.ZodBoolean;
494
+ design: z.ZodBoolean;
495
+ roadmap: z.ZodBoolean;
496
+ changelog: z.ZodBoolean;
497
+ docsDir: z.ZodBoolean;
498
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
511
+ surfaces: z.ZodObject<{
512
+ turbo: z.ZodBoolean;
513
+ }, "strip", z.ZodTypeAny, {
514
+ turbo: boolean;
515
+ }, {
516
+ turbo: boolean;
517
+ }>;
518
+ phases: z.ZodObject<{
519
+ count: z.ZodNumber;
520
+ latestId: z.ZodOptional<z.ZodString>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ count: number;
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
+ }>;
597
+ export type RepoScan = z.infer<typeof RepoScanZ>;
598
+ export declare const BackendStatusZ: z.ZodObject<{
599
+ present: z.ZodBoolean;
600
+ kind: z.ZodNullable<z.ZodLiteral<"cadence">>;
601
+ loopPosition: z.ZodOptional<z.ZodString>;
602
+ activePhase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
+ activeDraft: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
+ activeSpec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
+ profile: z.ZodOptional<z.ZodString>;
606
+ tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
+ legalActions: z.ZodArray<z.ZodString, "many">;
608
+ artifacts: z.ZodOptional<z.ZodObject<{
609
+ phaseCount: z.ZodNumber;
610
+ roadmap: z.ZodBoolean;
611
+ state: z.ZodBoolean;
612
+ milestones: z.ZodBoolean;
613
+ }, "strip", z.ZodTypeAny, {
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
+ }>>;
624
+ stateError: z.ZodOptional<z.ZodString>;
625
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
660
+ export type BackendStatus = z.infer<typeof BackendStatusZ>;
661
+ export declare const InspectionFlagCodeZ: z.ZodEnum<["git-dirty-or-diverged", "loop-state-inconsistent", "ledger-decay", "docs-missing"]>;
662
+ export type InspectionFlagCode = z.infer<typeof InspectionFlagCodeZ>;
663
+ export declare const InspectionFlagZ: z.ZodObject<{
664
+ code: z.ZodEnum<["git-dirty-or-diverged", "loop-state-inconsistent", "ledger-decay", "docs-missing"]>;
665
+ severity: z.ZodEnum<["info", "warn"]>;
666
+ message: z.ZodString;
667
+ evidence: z.ZodOptional<z.ZodString>;
668
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
679
+ export type InspectionFlag = z.infer<typeof InspectionFlagZ>;
680
+ export declare const InspectionZ: z.ZodObject<{
681
+ schemaVersion: z.ZodLiteral<1>;
682
+ generatedAt: z.ZodString;
683
+ repo: z.ZodObject<{
684
+ git: z.ZodObject<{
685
+ available: z.ZodBoolean;
686
+ branch: z.ZodOptional<z.ZodString>;
687
+ dirty: z.ZodOptional<z.ZodBoolean>;
688
+ ahead: z.ZodOptional<z.ZodNumber>;
689
+ behind: z.ZodOptional<z.ZodNumber>;
690
+ recentCommits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
691
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
706
+ pkg: z.ZodObject<{
707
+ name: z.ZodOptional<z.ZodString>;
708
+ version: z.ZodOptional<z.ZodString>;
709
+ workspaces: z.ZodOptional<z.ZodBoolean>;
710
+ scripts: z.ZodObject<{
711
+ test: z.ZodOptional<z.ZodBoolean>;
712
+ build: z.ZodOptional<z.ZodBoolean>;
713
+ lint: z.ZodOptional<z.ZodBoolean>;
714
+ typecheck: z.ZodOptional<z.ZodBoolean>;
715
+ }, "strip", z.ZodTypeAny, {
716
+ test?: boolean | undefined;
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
+ }>;
747
+ docs: z.ZodObject<{
748
+ readme: z.ZodBoolean;
749
+ design: z.ZodBoolean;
750
+ roadmap: z.ZodBoolean;
751
+ changelog: z.ZodBoolean;
752
+ docsDir: z.ZodBoolean;
753
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
766
+ surfaces: z.ZodObject<{
767
+ turbo: z.ZodBoolean;
768
+ }, "strip", z.ZodTypeAny, {
769
+ turbo: boolean;
770
+ }, {
771
+ turbo: boolean;
772
+ }>;
773
+ phases: z.ZodObject<{
774
+ count: z.ZodNumber;
775
+ latestId: z.ZodOptional<z.ZodString>;
776
+ }, "strip", z.ZodTypeAny, {
777
+ count: number;
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
+ }>;
852
+ backend: z.ZodObject<{
853
+ present: z.ZodBoolean;
854
+ kind: z.ZodNullable<z.ZodLiteral<"cadence">>;
855
+ loopPosition: z.ZodOptional<z.ZodString>;
856
+ activePhase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
+ activeDraft: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
+ activeSpec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
859
+ profile: z.ZodOptional<z.ZodString>;
860
+ tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
861
+ legalActions: z.ZodArray<z.ZodString, "many">;
862
+ artifacts: z.ZodOptional<z.ZodObject<{
863
+ phaseCount: z.ZodNumber;
864
+ roadmap: z.ZodBoolean;
865
+ state: z.ZodBoolean;
866
+ milestones: z.ZodBoolean;
867
+ }, "strip", z.ZodTypeAny, {
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
+ }>>;
878
+ stateError: z.ZodOptional<z.ZodString>;
879
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
914
+ ledger: z.ZodObject<{
915
+ recommendations: z.ZodNumber;
916
+ byDecay: z.ZodRecord<z.ZodString, z.ZodNumber>;
917
+ evidence: z.ZodNumber;
918
+ }, "strip", z.ZodTypeAny, {
919
+ recommendations: number;
920
+ evidence: number;
921
+ byDecay: Record<string, number>;
922
+ }, {
923
+ recommendations: number;
924
+ evidence: number;
925
+ byDecay: Record<string, number>;
926
+ }>;
927
+ flags: z.ZodArray<z.ZodObject<{
928
+ code: z.ZodEnum<["git-dirty-or-diverged", "loop-state-inconsistent", "ledger-decay", "docs-missing"]>;
929
+ severity: z.ZodEnum<["info", "warn"]>;
930
+ message: z.ZodString;
931
+ evidence: z.ZodOptional<z.ZodString>;
932
+ }, "strip", z.ZodTypeAny, {
933
+ code: "git-dirty-or-diverged" | "loop-state-inconsistent" | "ledger-decay" | "docs-missing";
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
+ }>;
1078
+ export type Inspection = z.infer<typeof InspectionZ>;
1079
+ export declare const ScoreTermZ: z.ZodObject<{
1080
+ label: z.ZodString;
1081
+ value: z.ZodNumber;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ value: number;
1084
+ label: string;
1085
+ }, {
1086
+ value: number;
1087
+ label: string;
1088
+ }>;
1089
+ export type ScoreTerm = z.infer<typeof ScoreTermZ>;
1090
+ export declare const RecommendationRankZ: z.ZodObject<{
1091
+ id: z.ZodString;
1092
+ title: z.ZodString;
1093
+ raw: z.ZodNumber;
1094
+ score: z.ZodNumber;
1095
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
1096
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
1097
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
1098
+ decayState: z.ZodEnum<["fresh", "aging", "stale", "superseded", "contradicted", "needs-revalidation"]>;
1099
+ terms: z.ZodArray<z.ZodObject<{
1100
+ label: z.ZodString;
1101
+ value: z.ZodNumber;
1102
+ }, "strip", z.ZodTypeAny, {
1103
+ value: number;
1104
+ label: string;
1105
+ }, {
1106
+ value: number;
1107
+ label: string;
1108
+ }>, "many">;
1109
+ suggestedBackendAction: z.ZodOptional<z.ZodString>;
1110
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
1139
+ export type RecommendationRank = z.infer<typeof RecommendationRankZ>;
1140
+ export declare const RecommendationAdvisoryZ: z.ZodObject<{
1141
+ kind: z.ZodEnum<["finish-loop", "top-recommendation", "spec-new", "empty"]>;
1142
+ primary: z.ZodString;
1143
+ secondary: z.ZodOptional<z.ZodString>;
1144
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
1153
+ export type RecommendationAdvisory = z.infer<typeof RecommendationAdvisoryZ>;
1154
+ export declare const RecommendationReportZ: z.ZodObject<{
1155
+ schemaVersion: z.ZodLiteral<1>;
1156
+ generatedAt: z.ZodString;
1157
+ ranked: z.ZodArray<z.ZodObject<{
1158
+ id: z.ZodString;
1159
+ title: z.ZodString;
1160
+ raw: z.ZodNumber;
1161
+ score: z.ZodNumber;
1162
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
1163
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
1164
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
1165
+ decayState: z.ZodEnum<["fresh", "aging", "stale", "superseded", "contradicted", "needs-revalidation"]>;
1166
+ terms: z.ZodArray<z.ZodObject<{
1167
+ label: z.ZodString;
1168
+ value: z.ZodNumber;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ value: number;
1171
+ label: string;
1172
+ }, {
1173
+ value: number;
1174
+ label: string;
1175
+ }>, "many">;
1176
+ suggestedBackendAction: z.ZodOptional<z.ZodString>;
1177
+ }, "strip", z.ZodTypeAny, {
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">;
1206
+ parked: z.ZodArray<z.ZodObject<{
1207
+ id: z.ZodString;
1208
+ title: z.ZodString;
1209
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
1210
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
1213
+ id: string;
1214
+ title: string;
1215
+ readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
1216
+ }, {
1217
+ status: "deferred" | "candidate" | "accepted" | "rejected" | "converted";
1218
+ id: string;
1219
+ title: string;
1220
+ readiness: "raw-idea" | "needs-evidence" | "needs-decision" | "ready-for-milestone" | "ready-for-cadence-spec" | "blocked";
1221
+ }>, "many">;
1222
+ needsAttention: z.ZodArray<z.ZodObject<{
1223
+ id: z.ZodString;
1224
+ title: z.ZodString;
1225
+ decayState: z.ZodEnum<["fresh", "aging", "stale", "superseded", "contradicted", "needs-revalidation"]>;
1226
+ }, "strip", z.ZodTypeAny, {
1227
+ id: string;
1228
+ title: string;
1229
+ decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
1230
+ }, {
1231
+ id: string;
1232
+ title: string;
1233
+ decayState: "fresh" | "aging" | "stale" | "superseded" | "contradicted" | "needs-revalidation";
1234
+ }>, "many">;
1235
+ advisory: z.ZodObject<{
1236
+ kind: z.ZodEnum<["finish-loop", "top-recommendation", "spec-new", "empty"]>;
1237
+ primary: z.ZodString;
1238
+ secondary: z.ZodOptional<z.ZodString>;
1239
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
1248
+ totals: z.ZodObject<{
1249
+ total: z.ZodNumber;
1250
+ ranked: z.ZodNumber;
1251
+ parked: z.ZodNumber;
1252
+ needsAttention: z.ZodNumber;
1253
+ excluded: z.ZodNumber;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ ranked: number;
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
+ }>;
1350
+ export type RecommendationReport = z.infer<typeof RecommendationReportZ>;
1351
+ export declare const MilestoneStatusZ: z.ZodEnum<["proposed", "accepted", "exported", "deferred", "closed"]>;
1352
+ export type MilestoneStatus = z.infer<typeof MilestoneStatusZ>;
1353
+ export declare const MilestonePreMortemZ: z.ZodObject<{
1354
+ likelyFailureModes: z.ZodArray<z.ZodString, "many">;
1355
+ hiddenDependencies: z.ZodArray<z.ZodString, "many">;
1356
+ driftRisks: z.ZodArray<z.ZodString, "many">;
1357
+ outOfScope: z.ZodArray<z.ZodString, "many">;
1358
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
1369
+ export type MilestonePreMortem = z.infer<typeof MilestonePreMortemZ>;
1370
+ export declare const IntelligenceMilestoneZ: z.ZodObject<{
1371
+ id: z.ZodString;
1372
+ name: z.ZodString;
1373
+ objective: z.ZodString;
1374
+ status: z.ZodEnum<["proposed", "accepted", "exported", "deferred", "closed"]>;
1375
+ recommendationIds: z.ZodArray<z.ZodString, "many">;
1376
+ preMortem: z.ZodObject<{
1377
+ likelyFailureModes: z.ZodArray<z.ZodString, "many">;
1378
+ hiddenDependencies: z.ZodArray<z.ZodString, "many">;
1379
+ driftRisks: z.ZodArray<z.ZodString, "many">;
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[];
1391
+ }>;
1392
+ exportTargets: z.ZodArray<z.ZodObject<{
1393
+ backend: z.ZodLiteral<"cadence">;
1394
+ artifactPath: z.ZodString;
1395
+ exportedAt: z.ZodString;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ backend: "cadence";
1398
+ artifactPath: string;
1399
+ exportedAt: string;
1400
+ }, {
1401
+ backend: "cadence";
1402
+ artifactPath: string;
1403
+ exportedAt: string;
1404
+ }>, "many">;
1405
+ createdAt: z.ZodString;
1406
+ updatedAt: z.ZodString;
1407
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
1446
+ export type IntelligenceMilestone = z.infer<typeof IntelligenceMilestoneZ>;
1447
+ export declare const MilestoneLedgerZ: z.ZodObject<{
1448
+ schemaVersion: z.ZodLiteral<1>;
1449
+ milestones: z.ZodArray<z.ZodObject<{
1450
+ id: z.ZodString;
1451
+ name: z.ZodString;
1452
+ objective: z.ZodString;
1453
+ status: z.ZodEnum<["proposed", "accepted", "exported", "deferred", "closed"]>;
1454
+ recommendationIds: z.ZodArray<z.ZodString, "many">;
1455
+ preMortem: z.ZodObject<{
1456
+ likelyFailureModes: z.ZodArray<z.ZodString, "many">;
1457
+ hiddenDependencies: z.ZodArray<z.ZodString, "many">;
1458
+ driftRisks: z.ZodArray<z.ZodString, "many">;
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[];
1470
+ }>;
1471
+ exportTargets: z.ZodArray<z.ZodObject<{
1472
+ backend: z.ZodLiteral<"cadence">;
1473
+ artifactPath: z.ZodString;
1474
+ exportedAt: z.ZodString;
1475
+ }, "strip", z.ZodTypeAny, {
1476
+ backend: "cadence";
1477
+ artifactPath: string;
1478
+ exportedAt: string;
1479
+ }, {
1480
+ backend: "cadence";
1481
+ artifactPath: string;
1482
+ exportedAt: string;
1483
+ }>, "many">;
1484
+ createdAt: z.ZodString;
1485
+ updatedAt: z.ZodString;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ status: "deferred" | "accepted" | "proposed" | "exported" | "closed";
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
+ }>;
1570
+ export type MilestoneLedger = z.infer<typeof MilestoneLedgerZ>;
1571
+ export declare function emptyMilestoneLedger(): MilestoneLedger;
1572
+ export declare const ContextScopeZ: z.ZodEnum<["phase", "handoff", "review", "agent"]>;
1573
+ export type ContextScope = z.infer<typeof ContextScopeZ>;
1574
+ export declare const ContextRecZ: z.ZodObject<{
1575
+ id: z.ZodString;
1576
+ title: z.ZodString;
1577
+ score: z.ZodNumber;
1578
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
1579
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
1580
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
1581
+ suggestedBackendAction: z.ZodOptional<z.ZodString>;
1582
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
1599
+ export type ContextRec = z.infer<typeof ContextRecZ>;
1600
+ export declare const ContextPacketZ: z.ZodObject<{
1601
+ schemaVersion: z.ZodLiteral<1>;
1602
+ scope: z.ZodEnum<["phase", "handoff", "review", "agent"]>;
1603
+ generatedAt: z.ZodString;
1604
+ loop: z.ZodObject<{
1605
+ present: z.ZodBoolean;
1606
+ loopPosition: z.ZodOptional<z.ZodString>;
1607
+ activePhase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1608
+ activeDraft: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1609
+ activeSpec: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1610
+ tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1611
+ nextAction: z.ZodOptional<z.ZodString>;
1612
+ stateError: z.ZodOptional<z.ZodString>;
1613
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
1632
+ recommendations: z.ZodArray<z.ZodObject<{
1633
+ id: z.ZodString;
1634
+ title: z.ZodString;
1635
+ score: z.ZodNumber;
1636
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
1637
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
1638
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
1639
+ suggestedBackendAction: z.ZodOptional<z.ZodString>;
1640
+ }, "strip", z.ZodTypeAny, {
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">;
1657
+ assumptions: z.ZodArray<z.ZodObject<{
1658
+ id: z.ZodString;
1659
+ recommendationId: z.ZodString;
1660
+ text: z.ZodString;
1661
+ status: z.ZodLiteral<"open">;
1662
+ }, "strip", z.ZodTypeAny, {
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">;
1673
+ decisions: z.ZodArray<z.ZodObject<{
1674
+ id: z.ZodString;
1675
+ title: z.ZodString;
1676
+ rationale: z.ZodString;
1677
+ recommendationId: z.ZodOptional<z.ZodString>;
1678
+ status: z.ZodLiteral<"active">;
1679
+ }, "strip", z.ZodTypeAny, {
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">;
1692
+ files: z.ZodArray<z.ZodObject<{
1693
+ path: z.ZodString;
1694
+ why: z.ZodString;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ path: string;
1697
+ why: string;
1698
+ }, {
1699
+ path: string;
1700
+ why: string;
1701
+ }>, "many">;
1702
+ needsAttention: z.ZodOptional<z.ZodArray<z.ZodObject<{
1703
+ id: z.ZodString;
1704
+ title: z.ZodString;
1705
+ score: z.ZodNumber;
1706
+ status: z.ZodEnum<["candidate", "accepted", "deferred", "rejected", "converted"]>;
1707
+ readiness: z.ZodEnum<["raw-idea", "needs-evidence", "needs-decision", "ready-for-milestone", "ready-for-cadence-spec", "blocked"]>;
1708
+ priority: z.ZodEnum<["low", "medium", "high", "critical"]>;
1709
+ suggestedBackendAction: z.ZodOptional<z.ZodString>;
1710
+ }, "strip", z.ZodTypeAny, {
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">>;
1727
+ totals: z.ZodObject<{
1728
+ recommendations: z.ZodNumber;
1729
+ assumptions: z.ZodNumber;
1730
+ decisions: z.ZodNumber;
1731
+ files: z.ZodNumber;
1732
+ recommendationsOmitted: z.ZodNumber;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ decisions: number;
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
+ }>;
1859
+ export type ContextPacket = z.infer<typeof ContextPacketZ>;
1860
+ export type DecisionAncestor = {
1861
+ decision: IntelligenceDecision;
1862
+ ancestors: DecisionAncestor[];
1863
+ cycle?: true;
1864
+ };
1865
+ export type DecisionDescendant = {
1866
+ decision: IntelligenceDecision;
1867
+ cycle?: true;
1868
+ } | {
1869
+ missingId: string;
1870
+ };
1871
+ export type DecisionGraph = {
1872
+ decision: IntelligenceDecision;
1873
+ ancestors: DecisionAncestor[];
1874
+ descendants: DecisionDescendant[];
1875
+ };
1876
+ //# sourceMappingURL=intelligence.d.ts.map