@slowcook-ai/cli 0.13.0 → 0.14.0-alpha.2

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 (53) hide show
  1. package/dist/cli.js +9 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/brew/prompts.d.ts +3 -290
  4. package/dist/commands/brew/prompts.d.ts.map +1 -1
  5. package/dist/commands/brew/prompts.js +3 -462
  6. package/dist/commands/brew/prompts.js.map +1 -1
  7. package/dist/commands/extract/index.d.ts +2 -0
  8. package/dist/commands/extract/index.d.ts.map +1 -0
  9. package/dist/commands/extract/index.js +90 -0
  10. package/dist/commands/extract/index.js.map +1 -0
  11. package/dist/commands/init/templates.d.ts.map +1 -1
  12. package/dist/commands/init/templates.js +4 -0
  13. package/dist/commands/init/templates.js.map +1 -1
  14. package/dist/commands/investigate/prompts.d.ts +7 -87
  15. package/dist/commands/investigate/prompts.d.ts.map +1 -1
  16. package/dist/commands/investigate/prompts.js +7 -234
  17. package/dist/commands/investigate/prompts.js.map +1 -1
  18. package/dist/commands/map/emit-tokens.d.ts +53 -0
  19. package/dist/commands/map/emit-tokens.d.ts.map +1 -0
  20. package/dist/commands/map/emit-tokens.js +316 -0
  21. package/dist/commands/map/emit-tokens.js.map +1 -0
  22. package/dist/commands/map/index.d.ts +17 -0
  23. package/dist/commands/map/index.d.ts.map +1 -1
  24. package/dist/commands/map/index.js +72 -5
  25. package/dist/commands/map/index.js.map +1 -1
  26. package/dist/commands/refine/agent.d.ts.map +1 -1
  27. package/dist/commands/refine/agent.js +21 -0
  28. package/dist/commands/refine/agent.js.map +1 -1
  29. package/dist/commands/refine/context.d.ts +11 -0
  30. package/dist/commands/refine/context.d.ts.map +1 -1
  31. package/dist/commands/refine/context.js +45 -0
  32. package/dist/commands/refine/context.js.map +1 -1
  33. package/dist/commands/refine/mock-fixtures.d.ts +39 -0
  34. package/dist/commands/refine/mock-fixtures.d.ts.map +1 -0
  35. package/dist/commands/refine/mock-fixtures.js +86 -0
  36. package/dist/commands/refine/mock-fixtures.js.map +1 -0
  37. package/dist/commands/refine/prompts.d.ts +10 -21
  38. package/dist/commands/refine/prompts.d.ts.map +1 -1
  39. package/dist/commands/refine/prompts.js +10 -376
  40. package/dist/commands/refine/prompts.js.map +1 -1
  41. package/dist/commands/refine/spec-yaml.d.ts +306 -128
  42. package/dist/commands/refine/spec-yaml.d.ts.map +1 -1
  43. package/dist/commands/refine/spec-yaml.js +33 -0
  44. package/dist/commands/refine/spec-yaml.js.map +1 -1
  45. package/dist/commands/sift/prompts.d.ts +3 -111
  46. package/dist/commands/sift/prompts.d.ts.map +1 -1
  47. package/dist/commands/sift/prompts.js +3 -190
  48. package/dist/commands/sift/prompts.js.map +1 -1
  49. package/dist/commands/testgen/prompts.d.ts +3 -13
  50. package/dist/commands/testgen/prompts.d.ts.map +1 -1
  51. package/dist/commands/testgen/prompts.js +3 -384
  52. package/dist/commands/testgen/prompts.js.map +1 -1
  53. package/package.json +5 -5
@@ -42,22 +42,22 @@ export declare const SpecProposalsSchema: z.ZodObject<{
42
42
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
43
43
  proposed_by: string;
44
44
  rationale?: string | undefined;
45
+ approved_by?: string | undefined;
46
+ approved_at?: string | undefined;
45
47
  viewport_coverage?: string[] | undefined;
46
48
  components_to_reuse?: string[] | undefined;
47
49
  tokens_to_reuse?: string[] | undefined;
48
50
  tokens_to_add?: string[] | undefined;
49
- approved_by?: string | undefined;
50
- approved_at?: string | undefined;
51
51
  }, {
52
52
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
53
53
  proposed_by: string;
54
54
  rationale?: string | undefined;
55
+ approved_by?: string | undefined;
56
+ approved_at?: string | undefined;
55
57
  viewport_coverage?: string[] | undefined;
56
58
  components_to_reuse?: string[] | undefined;
57
59
  tokens_to_reuse?: string[] | undefined;
58
60
  tokens_to_add?: string[] | undefined;
59
- approved_by?: string | undefined;
60
- approved_at?: string | undefined;
61
61
  }>>;
62
62
  routes: z.ZodOptional<z.ZodObject<{
63
63
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -132,16 +132,16 @@ export declare const SpecProposalsSchema: z.ZodObject<{
132
132
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
133
133
  proposed_by: string;
134
134
  rationale?: string | undefined;
135
- budgets?: Record<string, number> | undefined;
136
135
  approved_by?: string | undefined;
137
136
  approved_at?: string | undefined;
137
+ budgets?: Record<string, number> | undefined;
138
138
  }, {
139
139
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
140
140
  proposed_by: string;
141
141
  rationale?: string | undefined;
142
- budgets?: Record<string, number> | undefined;
143
142
  approved_by?: string | undefined;
144
143
  approved_at?: string | undefined;
144
+ budgets?: Record<string, number> | undefined;
145
145
  }>>;
146
146
  observability: z.ZodOptional<z.ZodObject<{
147
147
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -155,34 +155,34 @@ export declare const SpecProposalsSchema: z.ZodObject<{
155
155
  name: z.ZodString;
156
156
  type: z.ZodString;
157
157
  }, "strip", z.ZodTypeAny, {
158
- type: string;
159
158
  name: string;
160
- }, {
161
159
  type: string;
160
+ }, {
162
161
  name: string;
162
+ type: string;
163
163
  }>, "many">>;
164
164
  }, "strip", z.ZodTypeAny, {
165
165
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
166
166
  proposed_by: string;
167
167
  rationale?: string | undefined;
168
+ approved_by?: string | undefined;
169
+ approved_at?: string | undefined;
168
170
  log_events?: string[] | undefined;
169
171
  metrics?: {
170
- type: string;
171
172
  name: string;
173
+ type: string;
172
174
  }[] | undefined;
173
- approved_by?: string | undefined;
174
- approved_at?: string | undefined;
175
175
  }, {
176
176
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
177
177
  proposed_by: string;
178
178
  rationale?: string | undefined;
179
+ approved_by?: string | undefined;
180
+ approved_at?: string | undefined;
179
181
  log_events?: string[] | undefined;
180
182
  metrics?: {
181
- type: string;
182
183
  name: string;
184
+ type: string;
183
185
  }[] | undefined;
184
- approved_by?: string | undefined;
185
- approved_at?: string | undefined;
186
186
  }>>;
187
187
  infra: z.ZodOptional<z.ZodObject<{
188
188
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -198,20 +198,20 @@ export declare const SpecProposalsSchema: z.ZodObject<{
198
198
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
199
199
  proposed_by: string;
200
200
  rationale?: string | undefined;
201
+ approved_by?: string | undefined;
202
+ approved_at?: string | undefined;
201
203
  runtime?: string | undefined;
202
204
  deploy_target?: string | undefined;
203
205
  notes?: string | undefined;
204
- approved_by?: string | undefined;
205
- approved_at?: string | undefined;
206
206
  }, {
207
207
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
208
208
  proposed_by: string;
209
209
  rationale?: string | undefined;
210
+ approved_by?: string | undefined;
211
+ approved_at?: string | undefined;
210
212
  runtime?: string | undefined;
211
213
  deploy_target?: string | undefined;
212
214
  notes?: string | undefined;
213
- approved_by?: string | undefined;
214
- approved_at?: string | undefined;
215
215
  }>>;
216
216
  api_shape: z.ZodOptional<z.ZodObject<{
217
217
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -240,26 +240,85 @@ export declare const SpecProposalsSchema: z.ZodObject<{
240
240
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
241
241
  proposed_by: string;
242
242
  rationale?: string | undefined;
243
+ approved_by?: string | undefined;
244
+ approved_at?: string | undefined;
243
245
  endpoints?: {
244
246
  path: string;
245
247
  method: string;
246
248
  request_schema?: unknown;
247
249
  responses?: Record<string, unknown> | undefined;
248
250
  }[] | undefined;
249
- approved_by?: string | undefined;
250
- approved_at?: string | undefined;
251
251
  }, {
252
252
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
253
253
  proposed_by: string;
254
254
  rationale?: string | undefined;
255
+ approved_by?: string | undefined;
256
+ approved_at?: string | undefined;
255
257
  endpoints?: {
256
258
  path: string;
257
259
  method: string;
258
260
  request_schema?: unknown;
259
261
  responses?: Record<string, unknown> | undefined;
260
262
  }[] | undefined;
263
+ }>>;
264
+ /**
265
+ * 0.14.0-α.1 (mockup-first refinement, data-layer seam) — fixtures
266
+ * the agent has hand-authored to make a mockup behaviorally complete.
267
+ * Keyed by domain (a single-word slug derived from the story's primary
268
+ * resource: `notifications`, `bookmarks`, `feed`). Each domain's
269
+ * `seed` is an arbitrary record of named arrays/values that the
270
+ * generated `<domain>.mock.ts` will export verbatim.
271
+ *
272
+ * Example:
273
+ * fixtures:
274
+ * status: pending
275
+ * proposed_by: refine-agent
276
+ * by_domain:
277
+ * notifications:
278
+ * seed:
279
+ * list:
280
+ * - { id: "n-1", actor_handle: "@alice", read_at: null }
281
+ * - { id: "n-2", actor_handle: "@bob", read_at: "2026-04-25T12:00:00Z" }
282
+ * unread_count: 1
283
+ *
284
+ * Refine writes `src/lib/data/notifications.mock.ts` exporting
285
+ * `seed.list` and `seed.unread_count` as JSON-equivalent constants.
286
+ * The page/component imports from `@/lib/data/notifications`; an
287
+ * env flag `MOCK_STORY_N=1` routes the import to the mock module.
288
+ * Brew (later) writes the real `notifications.ts` and removes the flag.
289
+ */
290
+ fixtures: z.ZodOptional<z.ZodObject<{
291
+ status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
292
+ proposed_by: z.ZodString;
293
+ approved_by: z.ZodOptional<z.ZodString>;
294
+ approved_at: z.ZodOptional<z.ZodString>;
295
+ rationale: z.ZodOptional<z.ZodString>;
296
+ } & {
297
+ by_domain: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
298
+ seed: z.ZodRecord<z.ZodString, z.ZodUnknown>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ seed: Record<string, unknown>;
301
+ }, {
302
+ seed: Record<string, unknown>;
303
+ }>>>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
306
+ proposed_by: string;
307
+ rationale?: string | undefined;
261
308
  approved_by?: string | undefined;
262
309
  approved_at?: string | undefined;
310
+ by_domain?: Record<string, {
311
+ seed: Record<string, unknown>;
312
+ }> | undefined;
313
+ }, {
314
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
315
+ proposed_by: string;
316
+ rationale?: string | undefined;
317
+ approved_by?: string | undefined;
318
+ approved_at?: string | undefined;
319
+ by_domain?: Record<string, {
320
+ seed: Record<string, unknown>;
321
+ }> | undefined;
263
322
  }>>;
264
323
  }, "strip", z.ZodTypeAny, {
265
324
  routes?: {
@@ -293,55 +352,65 @@ export declare const SpecProposalsSchema: z.ZodObject<{
293
352
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
294
353
  proposed_by: string;
295
354
  rationale?: string | undefined;
355
+ approved_by?: string | undefined;
356
+ approved_at?: string | undefined;
296
357
  viewport_coverage?: string[] | undefined;
297
358
  components_to_reuse?: string[] | undefined;
298
359
  tokens_to_reuse?: string[] | undefined;
299
360
  tokens_to_add?: string[] | undefined;
300
- approved_by?: string | undefined;
301
- approved_at?: string | undefined;
302
361
  } | undefined;
303
362
  perf_budget?: {
304
363
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
305
364
  proposed_by: string;
306
365
  rationale?: string | undefined;
307
- budgets?: Record<string, number> | undefined;
308
366
  approved_by?: string | undefined;
309
367
  approved_at?: string | undefined;
368
+ budgets?: Record<string, number> | undefined;
310
369
  } | undefined;
311
370
  observability?: {
312
371
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
313
372
  proposed_by: string;
314
373
  rationale?: string | undefined;
374
+ approved_by?: string | undefined;
375
+ approved_at?: string | undefined;
315
376
  log_events?: string[] | undefined;
316
377
  metrics?: {
317
- type: string;
318
378
  name: string;
379
+ type: string;
319
380
  }[] | undefined;
320
- approved_by?: string | undefined;
321
- approved_at?: string | undefined;
322
381
  } | undefined;
323
382
  infra?: {
324
383
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
325
384
  proposed_by: string;
326
385
  rationale?: string | undefined;
386
+ approved_by?: string | undefined;
387
+ approved_at?: string | undefined;
327
388
  runtime?: string | undefined;
328
389
  deploy_target?: string | undefined;
329
390
  notes?: string | undefined;
330
- approved_by?: string | undefined;
331
- approved_at?: string | undefined;
332
391
  } | undefined;
333
392
  api_shape?: {
334
393
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
335
394
  proposed_by: string;
336
395
  rationale?: string | undefined;
396
+ approved_by?: string | undefined;
397
+ approved_at?: string | undefined;
337
398
  endpoints?: {
338
399
  path: string;
339
400
  method: string;
340
401
  request_schema?: unknown;
341
402
  responses?: Record<string, unknown> | undefined;
342
403
  }[] | undefined;
404
+ } | undefined;
405
+ fixtures?: {
406
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
407
+ proposed_by: string;
408
+ rationale?: string | undefined;
343
409
  approved_by?: string | undefined;
344
410
  approved_at?: string | undefined;
411
+ by_domain?: Record<string, {
412
+ seed: Record<string, unknown>;
413
+ }> | undefined;
345
414
  } | undefined;
346
415
  }, {
347
416
  routes?: {
@@ -375,55 +444,65 @@ export declare const SpecProposalsSchema: z.ZodObject<{
375
444
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
376
445
  proposed_by: string;
377
446
  rationale?: string | undefined;
447
+ approved_by?: string | undefined;
448
+ approved_at?: string | undefined;
378
449
  viewport_coverage?: string[] | undefined;
379
450
  components_to_reuse?: string[] | undefined;
380
451
  tokens_to_reuse?: string[] | undefined;
381
452
  tokens_to_add?: string[] | undefined;
382
- approved_by?: string | undefined;
383
- approved_at?: string | undefined;
384
453
  } | undefined;
385
454
  perf_budget?: {
386
455
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
387
456
  proposed_by: string;
388
457
  rationale?: string | undefined;
389
- budgets?: Record<string, number> | undefined;
390
458
  approved_by?: string | undefined;
391
459
  approved_at?: string | undefined;
460
+ budgets?: Record<string, number> | undefined;
392
461
  } | undefined;
393
462
  observability?: {
394
463
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
395
464
  proposed_by: string;
396
465
  rationale?: string | undefined;
466
+ approved_by?: string | undefined;
467
+ approved_at?: string | undefined;
397
468
  log_events?: string[] | undefined;
398
469
  metrics?: {
399
- type: string;
400
470
  name: string;
471
+ type: string;
401
472
  }[] | undefined;
402
- approved_by?: string | undefined;
403
- approved_at?: string | undefined;
404
473
  } | undefined;
405
474
  infra?: {
406
475
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
407
476
  proposed_by: string;
408
477
  rationale?: string | undefined;
478
+ approved_by?: string | undefined;
479
+ approved_at?: string | undefined;
409
480
  runtime?: string | undefined;
410
481
  deploy_target?: string | undefined;
411
482
  notes?: string | undefined;
412
- approved_by?: string | undefined;
413
- approved_at?: string | undefined;
414
483
  } | undefined;
415
484
  api_shape?: {
416
485
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
417
486
  proposed_by: string;
418
487
  rationale?: string | undefined;
488
+ approved_by?: string | undefined;
489
+ approved_at?: string | undefined;
419
490
  endpoints?: {
420
491
  path: string;
421
492
  method: string;
422
493
  request_schema?: unknown;
423
494
  responses?: Record<string, unknown> | undefined;
424
495
  }[] | undefined;
496
+ } | undefined;
497
+ fixtures?: {
498
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
499
+ proposed_by: string;
500
+ rationale?: string | undefined;
425
501
  approved_by?: string | undefined;
426
502
  approved_at?: string | undefined;
503
+ by_domain?: Record<string, {
504
+ seed: Record<string, unknown>;
505
+ }> | undefined;
427
506
  } | undefined;
428
507
  }>;
429
508
  export declare function readIndex(repoRoot: string): SpecIndex;
@@ -457,44 +536,44 @@ export declare const schemas: {
457
536
  supersedes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
458
537
  superseded_by: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
459
538
  }, "strip", z.ZodTypeAny, {
460
- status: "superseded" | "active" | "draft";
539
+ status: "draft" | "active" | "superseded";
461
540
  title: string;
462
- supersedes?: string[] | undefined;
463
- superseded_by?: string | null | undefined;
464
541
  source_issue?: string | undefined;
465
542
  tags?: string[] | undefined;
466
543
  summary?: string | undefined;
467
- }, {
468
- status: "superseded" | "active" | "draft";
469
- title: string;
470
544
  supersedes?: string[] | undefined;
471
545
  superseded_by?: string | null | undefined;
546
+ }, {
547
+ status: "draft" | "active" | "superseded";
548
+ title: string;
472
549
  source_issue?: string | undefined;
473
550
  tags?: string[] | undefined;
474
551
  summary?: string | undefined;
552
+ supersedes?: string[] | undefined;
553
+ superseded_by?: string | null | undefined;
475
554
  }>>;
476
555
  }, "strip", z.ZodTypeAny, {
477
556
  schema_version: 1;
478
557
  stories: Record<string, {
479
- status: "superseded" | "active" | "draft";
558
+ status: "draft" | "active" | "superseded";
480
559
  title: string;
481
- supersedes?: string[] | undefined;
482
- superseded_by?: string | null | undefined;
483
560
  source_issue?: string | undefined;
484
561
  tags?: string[] | undefined;
485
562
  summary?: string | undefined;
563
+ supersedes?: string[] | undefined;
564
+ superseded_by?: string | null | undefined;
486
565
  }>;
487
566
  $schema?: string | undefined;
488
567
  }, {
489
568
  schema_version: 1;
490
569
  stories: Record<string, {
491
- status: "superseded" | "active" | "draft";
570
+ status: "draft" | "active" | "superseded";
492
571
  title: string;
493
- supersedes?: string[] | undefined;
494
- superseded_by?: string | null | undefined;
495
572
  source_issue?: string | undefined;
496
573
  tags?: string[] | undefined;
497
574
  summary?: string | undefined;
575
+ supersedes?: string[] | undefined;
576
+ superseded_by?: string | null | undefined;
498
577
  }>;
499
578
  $schema?: string | undefined;
500
579
  }>;
@@ -532,11 +611,11 @@ export declare const schemas: {
532
611
  note: z.ZodOptional<z.ZodString>;
533
612
  }, "strip", z.ZodTypeAny, {
534
613
  id: string;
535
- relationship: "overlap" | "related" | "superseded";
614
+ relationship: "superseded" | "overlap" | "related";
536
615
  note?: string | undefined;
537
616
  }, {
538
617
  id: string;
539
- relationship: "overlap" | "related" | "superseded";
618
+ relationship: "superseded" | "overlap" | "related";
540
619
  note?: string | undefined;
541
620
  }>, "many">>;
542
621
  proposals: z.ZodOptional<z.ZodObject<{
@@ -578,22 +657,22 @@ export declare const schemas: {
578
657
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
579
658
  proposed_by: string;
580
659
  rationale?: string | undefined;
660
+ approved_by?: string | undefined;
661
+ approved_at?: string | undefined;
581
662
  viewport_coverage?: string[] | undefined;
582
663
  components_to_reuse?: string[] | undefined;
583
664
  tokens_to_reuse?: string[] | undefined;
584
665
  tokens_to_add?: string[] | undefined;
585
- approved_by?: string | undefined;
586
- approved_at?: string | undefined;
587
666
  }, {
588
667
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
589
668
  proposed_by: string;
590
669
  rationale?: string | undefined;
670
+ approved_by?: string | undefined;
671
+ approved_at?: string | undefined;
591
672
  viewport_coverage?: string[] | undefined;
592
673
  components_to_reuse?: string[] | undefined;
593
674
  tokens_to_reuse?: string[] | undefined;
594
675
  tokens_to_add?: string[] | undefined;
595
- approved_by?: string | undefined;
596
- approved_at?: string | undefined;
597
676
  }>>;
598
677
  routes: z.ZodOptional<z.ZodObject<{
599
678
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -668,16 +747,16 @@ export declare const schemas: {
668
747
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
669
748
  proposed_by: string;
670
749
  rationale?: string | undefined;
671
- budgets?: Record<string, number> | undefined;
672
750
  approved_by?: string | undefined;
673
751
  approved_at?: string | undefined;
752
+ budgets?: Record<string, number> | undefined;
674
753
  }, {
675
754
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
676
755
  proposed_by: string;
677
756
  rationale?: string | undefined;
678
- budgets?: Record<string, number> | undefined;
679
757
  approved_by?: string | undefined;
680
758
  approved_at?: string | undefined;
759
+ budgets?: Record<string, number> | undefined;
681
760
  }>>;
682
761
  observability: z.ZodOptional<z.ZodObject<{
683
762
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -691,34 +770,34 @@ export declare const schemas: {
691
770
  name: z.ZodString;
692
771
  type: z.ZodString;
693
772
  }, "strip", z.ZodTypeAny, {
694
- type: string;
695
773
  name: string;
696
- }, {
697
774
  type: string;
775
+ }, {
698
776
  name: string;
777
+ type: string;
699
778
  }>, "many">>;
700
779
  }, "strip", z.ZodTypeAny, {
701
780
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
702
781
  proposed_by: string;
703
782
  rationale?: string | undefined;
783
+ approved_by?: string | undefined;
784
+ approved_at?: string | undefined;
704
785
  log_events?: string[] | undefined;
705
786
  metrics?: {
706
- type: string;
707
787
  name: string;
788
+ type: string;
708
789
  }[] | undefined;
709
- approved_by?: string | undefined;
710
- approved_at?: string | undefined;
711
790
  }, {
712
791
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
713
792
  proposed_by: string;
714
793
  rationale?: string | undefined;
794
+ approved_by?: string | undefined;
795
+ approved_at?: string | undefined;
715
796
  log_events?: string[] | undefined;
716
797
  metrics?: {
717
- type: string;
718
798
  name: string;
799
+ type: string;
719
800
  }[] | undefined;
720
- approved_by?: string | undefined;
721
- approved_at?: string | undefined;
722
801
  }>>;
723
802
  infra: z.ZodOptional<z.ZodObject<{
724
803
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -734,20 +813,20 @@ export declare const schemas: {
734
813
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
735
814
  proposed_by: string;
736
815
  rationale?: string | undefined;
816
+ approved_by?: string | undefined;
817
+ approved_at?: string | undefined;
737
818
  runtime?: string | undefined;
738
819
  deploy_target?: string | undefined;
739
820
  notes?: string | undefined;
740
- approved_by?: string | undefined;
741
- approved_at?: string | undefined;
742
821
  }, {
743
822
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
744
823
  proposed_by: string;
745
824
  rationale?: string | undefined;
825
+ approved_by?: string | undefined;
826
+ approved_at?: string | undefined;
746
827
  runtime?: string | undefined;
747
828
  deploy_target?: string | undefined;
748
829
  notes?: string | undefined;
749
- approved_by?: string | undefined;
750
- approved_at?: string | undefined;
751
830
  }>>;
752
831
  api_shape: z.ZodOptional<z.ZodObject<{
753
832
  status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
@@ -776,26 +855,85 @@ export declare const schemas: {
776
855
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
777
856
  proposed_by: string;
778
857
  rationale?: string | undefined;
858
+ approved_by?: string | undefined;
859
+ approved_at?: string | undefined;
779
860
  endpoints?: {
780
861
  path: string;
781
862
  method: string;
782
863
  request_schema?: unknown;
783
864
  responses?: Record<string, unknown> | undefined;
784
865
  }[] | undefined;
785
- approved_by?: string | undefined;
786
- approved_at?: string | undefined;
787
866
  }, {
788
867
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
789
868
  proposed_by: string;
790
869
  rationale?: string | undefined;
870
+ approved_by?: string | undefined;
871
+ approved_at?: string | undefined;
791
872
  endpoints?: {
792
873
  path: string;
793
874
  method: string;
794
875
  request_schema?: unknown;
795
876
  responses?: Record<string, unknown> | undefined;
796
877
  }[] | undefined;
878
+ }>>;
879
+ /**
880
+ * 0.14.0-α.1 (mockup-first refinement, data-layer seam) — fixtures
881
+ * the agent has hand-authored to make a mockup behaviorally complete.
882
+ * Keyed by domain (a single-word slug derived from the story's primary
883
+ * resource: `notifications`, `bookmarks`, `feed`). Each domain's
884
+ * `seed` is an arbitrary record of named arrays/values that the
885
+ * generated `<domain>.mock.ts` will export verbatim.
886
+ *
887
+ * Example:
888
+ * fixtures:
889
+ * status: pending
890
+ * proposed_by: refine-agent
891
+ * by_domain:
892
+ * notifications:
893
+ * seed:
894
+ * list:
895
+ * - { id: "n-1", actor_handle: "@alice", read_at: null }
896
+ * - { id: "n-2", actor_handle: "@bob", read_at: "2026-04-25T12:00:00Z" }
897
+ * unread_count: 1
898
+ *
899
+ * Refine writes `src/lib/data/notifications.mock.ts` exporting
900
+ * `seed.list` and `seed.unread_count` as JSON-equivalent constants.
901
+ * The page/component imports from `@/lib/data/notifications`; an
902
+ * env flag `MOCK_STORY_N=1` routes the import to the mock module.
903
+ * Brew (later) writes the real `notifications.ts` and removes the flag.
904
+ */
905
+ fixtures: z.ZodOptional<z.ZodObject<{
906
+ status: z.ZodEnum<["pending", "approved", "rejected", "deferred", "blocked_on_clarification"]>;
907
+ proposed_by: z.ZodString;
908
+ approved_by: z.ZodOptional<z.ZodString>;
909
+ approved_at: z.ZodOptional<z.ZodString>;
910
+ rationale: z.ZodOptional<z.ZodString>;
911
+ } & {
912
+ by_domain: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
913
+ seed: z.ZodRecord<z.ZodString, z.ZodUnknown>;
914
+ }, "strip", z.ZodTypeAny, {
915
+ seed: Record<string, unknown>;
916
+ }, {
917
+ seed: Record<string, unknown>;
918
+ }>>>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
921
+ proposed_by: string;
922
+ rationale?: string | undefined;
923
+ approved_by?: string | undefined;
924
+ approved_at?: string | undefined;
925
+ by_domain?: Record<string, {
926
+ seed: Record<string, unknown>;
927
+ }> | undefined;
928
+ }, {
929
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
930
+ proposed_by: string;
931
+ rationale?: string | undefined;
797
932
  approved_by?: string | undefined;
798
933
  approved_at?: string | undefined;
934
+ by_domain?: Record<string, {
935
+ seed: Record<string, unknown>;
936
+ }> | undefined;
799
937
  }>>;
800
938
  }, "strip", z.ZodTypeAny, {
801
939
  routes?: {
@@ -829,55 +967,65 @@ export declare const schemas: {
829
967
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
830
968
  proposed_by: string;
831
969
  rationale?: string | undefined;
970
+ approved_by?: string | undefined;
971
+ approved_at?: string | undefined;
832
972
  viewport_coverage?: string[] | undefined;
833
973
  components_to_reuse?: string[] | undefined;
834
974
  tokens_to_reuse?: string[] | undefined;
835
975
  tokens_to_add?: string[] | undefined;
836
- approved_by?: string | undefined;
837
- approved_at?: string | undefined;
838
976
  } | undefined;
839
977
  perf_budget?: {
840
978
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
841
979
  proposed_by: string;
842
980
  rationale?: string | undefined;
843
- budgets?: Record<string, number> | undefined;
844
981
  approved_by?: string | undefined;
845
982
  approved_at?: string | undefined;
983
+ budgets?: Record<string, number> | undefined;
846
984
  } | undefined;
847
985
  observability?: {
848
986
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
849
987
  proposed_by: string;
850
988
  rationale?: string | undefined;
989
+ approved_by?: string | undefined;
990
+ approved_at?: string | undefined;
851
991
  log_events?: string[] | undefined;
852
992
  metrics?: {
853
- type: string;
854
993
  name: string;
994
+ type: string;
855
995
  }[] | undefined;
856
- approved_by?: string | undefined;
857
- approved_at?: string | undefined;
858
996
  } | undefined;
859
997
  infra?: {
860
998
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
861
999
  proposed_by: string;
862
1000
  rationale?: string | undefined;
1001
+ approved_by?: string | undefined;
1002
+ approved_at?: string | undefined;
863
1003
  runtime?: string | undefined;
864
1004
  deploy_target?: string | undefined;
865
1005
  notes?: string | undefined;
866
- approved_by?: string | undefined;
867
- approved_at?: string | undefined;
868
1006
  } | undefined;
869
1007
  api_shape?: {
870
1008
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
871
1009
  proposed_by: string;
872
1010
  rationale?: string | undefined;
1011
+ approved_by?: string | undefined;
1012
+ approved_at?: string | undefined;
873
1013
  endpoints?: {
874
1014
  path: string;
875
1015
  method: string;
876
1016
  request_schema?: unknown;
877
1017
  responses?: Record<string, unknown> | undefined;
878
1018
  }[] | undefined;
1019
+ } | undefined;
1020
+ fixtures?: {
1021
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1022
+ proposed_by: string;
1023
+ rationale?: string | undefined;
879
1024
  approved_by?: string | undefined;
880
1025
  approved_at?: string | undefined;
1026
+ by_domain?: Record<string, {
1027
+ seed: Record<string, unknown>;
1028
+ }> | undefined;
881
1029
  } | undefined;
882
1030
  }, {
883
1031
  routes?: {
@@ -911,64 +1059,74 @@ export declare const schemas: {
911
1059
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
912
1060
  proposed_by: string;
913
1061
  rationale?: string | undefined;
1062
+ approved_by?: string | undefined;
1063
+ approved_at?: string | undefined;
914
1064
  viewport_coverage?: string[] | undefined;
915
1065
  components_to_reuse?: string[] | undefined;
916
1066
  tokens_to_reuse?: string[] | undefined;
917
1067
  tokens_to_add?: string[] | undefined;
918
- approved_by?: string | undefined;
919
- approved_at?: string | undefined;
920
1068
  } | undefined;
921
1069
  perf_budget?: {
922
1070
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
923
1071
  proposed_by: string;
924
1072
  rationale?: string | undefined;
925
- budgets?: Record<string, number> | undefined;
926
1073
  approved_by?: string | undefined;
927
1074
  approved_at?: string | undefined;
1075
+ budgets?: Record<string, number> | undefined;
928
1076
  } | undefined;
929
1077
  observability?: {
930
1078
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
931
1079
  proposed_by: string;
932
1080
  rationale?: string | undefined;
1081
+ approved_by?: string | undefined;
1082
+ approved_at?: string | undefined;
933
1083
  log_events?: string[] | undefined;
934
1084
  metrics?: {
935
- type: string;
936
1085
  name: string;
1086
+ type: string;
937
1087
  }[] | undefined;
938
- approved_by?: string | undefined;
939
- approved_at?: string | undefined;
940
1088
  } | undefined;
941
1089
  infra?: {
942
1090
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
943
1091
  proposed_by: string;
944
1092
  rationale?: string | undefined;
1093
+ approved_by?: string | undefined;
1094
+ approved_at?: string | undefined;
945
1095
  runtime?: string | undefined;
946
1096
  deploy_target?: string | undefined;
947
1097
  notes?: string | undefined;
948
- approved_by?: string | undefined;
949
- approved_at?: string | undefined;
950
1098
  } | undefined;
951
1099
  api_shape?: {
952
1100
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
953
1101
  proposed_by: string;
954
1102
  rationale?: string | undefined;
1103
+ approved_by?: string | undefined;
1104
+ approved_at?: string | undefined;
955
1105
  endpoints?: {
956
1106
  path: string;
957
1107
  method: string;
958
1108
  request_schema?: unknown;
959
1109
  responses?: Record<string, unknown> | undefined;
960
1110
  }[] | undefined;
1111
+ } | undefined;
1112
+ fixtures?: {
1113
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1114
+ proposed_by: string;
1115
+ rationale?: string | undefined;
961
1116
  approved_by?: string | undefined;
962
1117
  approved_at?: string | undefined;
1118
+ by_domain?: Record<string, {
1119
+ seed: Record<string, unknown>;
1120
+ }> | undefined;
963
1121
  } | undefined;
964
1122
  }>>;
965
1123
  }, "strip", z.ZodTypeAny, {
966
- status: "superseded" | "active" | "draft";
967
- story_id: string;
1124
+ status: "draft" | "active" | "superseded";
968
1125
  title: string;
969
- created_at: string;
970
1126
  supersedes: string[];
971
1127
  superseded_by: string | null;
1128
+ story_id: string;
1129
+ created_at: string;
972
1130
  actors: {
973
1131
  name: string;
974
1132
  notes?: string | undefined;
@@ -977,12 +1135,18 @@ export declare const schemas: {
977
1135
  invariants: string[];
978
1136
  acceptance_scenarios: string[];
979
1137
  non_goals: string[];
1138
+ source_issue?: string | undefined;
1139
+ $schema?: string | undefined;
980
1140
  token_budget_usd?: number | undefined;
981
1141
  estimate?: "small" | "medium" | "large" | undefined;
982
- source_issue?: string | undefined;
983
1142
  refined_by?: string | undefined;
984
1143
  api_contract?: unknown[] | undefined;
985
1144
  ui_behavior?: Record<string, string> | undefined;
1145
+ related_specs?: {
1146
+ id: string;
1147
+ relationship: "superseded" | "overlap" | "related";
1148
+ note?: string | undefined;
1149
+ }[] | undefined;
986
1150
  proposals?: {
987
1151
  routes?: {
988
1152
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
@@ -1015,70 +1179,74 @@ export declare const schemas: {
1015
1179
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1016
1180
  proposed_by: string;
1017
1181
  rationale?: string | undefined;
1182
+ approved_by?: string | undefined;
1183
+ approved_at?: string | undefined;
1018
1184
  viewport_coverage?: string[] | undefined;
1019
1185
  components_to_reuse?: string[] | undefined;
1020
1186
  tokens_to_reuse?: string[] | undefined;
1021
1187
  tokens_to_add?: string[] | undefined;
1022
- approved_by?: string | undefined;
1023
- approved_at?: string | undefined;
1024
1188
  } | undefined;
1025
1189
  perf_budget?: {
1026
1190
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1027
1191
  proposed_by: string;
1028
1192
  rationale?: string | undefined;
1029
- budgets?: Record<string, number> | undefined;
1030
1193
  approved_by?: string | undefined;
1031
1194
  approved_at?: string | undefined;
1195
+ budgets?: Record<string, number> | undefined;
1032
1196
  } | undefined;
1033
1197
  observability?: {
1034
1198
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1035
1199
  proposed_by: string;
1036
1200
  rationale?: string | undefined;
1201
+ approved_by?: string | undefined;
1202
+ approved_at?: string | undefined;
1037
1203
  log_events?: string[] | undefined;
1038
1204
  metrics?: {
1039
- type: string;
1040
1205
  name: string;
1206
+ type: string;
1041
1207
  }[] | undefined;
1042
- approved_by?: string | undefined;
1043
- approved_at?: string | undefined;
1044
1208
  } | undefined;
1045
1209
  infra?: {
1046
1210
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1047
1211
  proposed_by: string;
1048
1212
  rationale?: string | undefined;
1213
+ approved_by?: string | undefined;
1214
+ approved_at?: string | undefined;
1049
1215
  runtime?: string | undefined;
1050
1216
  deploy_target?: string | undefined;
1051
1217
  notes?: string | undefined;
1052
- approved_by?: string | undefined;
1053
- approved_at?: string | undefined;
1054
1218
  } | undefined;
1055
1219
  api_shape?: {
1056
1220
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1057
1221
  proposed_by: string;
1058
1222
  rationale?: string | undefined;
1223
+ approved_by?: string | undefined;
1224
+ approved_at?: string | undefined;
1059
1225
  endpoints?: {
1060
1226
  path: string;
1061
1227
  method: string;
1062
1228
  request_schema?: unknown;
1063
1229
  responses?: Record<string, unknown> | undefined;
1064
1230
  }[] | undefined;
1231
+ } | undefined;
1232
+ fixtures?: {
1233
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1234
+ proposed_by: string;
1235
+ rationale?: string | undefined;
1065
1236
  approved_by?: string | undefined;
1066
1237
  approved_at?: string | undefined;
1238
+ by_domain?: Record<string, {
1239
+ seed: Record<string, unknown>;
1240
+ }> | undefined;
1067
1241
  } | undefined;
1068
1242
  } | undefined;
1069
- related_specs?: {
1070
- id: string;
1071
- relationship: "overlap" | "related" | "superseded";
1072
- note?: string | undefined;
1073
- }[] | undefined;
1074
- $schema?: string | undefined;
1075
1243
  }, {
1076
- status: "superseded" | "active" | "draft";
1077
- story_id: string;
1244
+ status: "draft" | "active" | "superseded";
1078
1245
  title: string;
1079
- created_at: string;
1080
1246
  supersedes: string[];
1081
1247
  superseded_by: string | null;
1248
+ story_id: string;
1249
+ created_at: string;
1082
1250
  actors: {
1083
1251
  name: string;
1084
1252
  notes?: string | undefined;
@@ -1087,12 +1255,18 @@ export declare const schemas: {
1087
1255
  invariants: string[];
1088
1256
  acceptance_scenarios: string[];
1089
1257
  non_goals: string[];
1258
+ source_issue?: string | undefined;
1259
+ $schema?: string | undefined;
1090
1260
  token_budget_usd?: number | undefined;
1091
1261
  estimate?: "small" | "medium" | "large" | undefined;
1092
- source_issue?: string | undefined;
1093
1262
  refined_by?: string | undefined;
1094
1263
  api_contract?: unknown[] | undefined;
1095
1264
  ui_behavior?: Record<string, string> | undefined;
1265
+ related_specs?: {
1266
+ id: string;
1267
+ relationship: "superseded" | "overlap" | "related";
1268
+ note?: string | undefined;
1269
+ }[] | undefined;
1096
1270
  proposals?: {
1097
1271
  routes?: {
1098
1272
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
@@ -1125,63 +1299,67 @@ export declare const schemas: {
1125
1299
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1126
1300
  proposed_by: string;
1127
1301
  rationale?: string | undefined;
1302
+ approved_by?: string | undefined;
1303
+ approved_at?: string | undefined;
1128
1304
  viewport_coverage?: string[] | undefined;
1129
1305
  components_to_reuse?: string[] | undefined;
1130
1306
  tokens_to_reuse?: string[] | undefined;
1131
1307
  tokens_to_add?: string[] | undefined;
1132
- approved_by?: string | undefined;
1133
- approved_at?: string | undefined;
1134
1308
  } | undefined;
1135
1309
  perf_budget?: {
1136
1310
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1137
1311
  proposed_by: string;
1138
1312
  rationale?: string | undefined;
1139
- budgets?: Record<string, number> | undefined;
1140
1313
  approved_by?: string | undefined;
1141
1314
  approved_at?: string | undefined;
1315
+ budgets?: Record<string, number> | undefined;
1142
1316
  } | undefined;
1143
1317
  observability?: {
1144
1318
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1145
1319
  proposed_by: string;
1146
1320
  rationale?: string | undefined;
1321
+ approved_by?: string | undefined;
1322
+ approved_at?: string | undefined;
1147
1323
  log_events?: string[] | undefined;
1148
1324
  metrics?: {
1149
- type: string;
1150
1325
  name: string;
1326
+ type: string;
1151
1327
  }[] | undefined;
1152
- approved_by?: string | undefined;
1153
- approved_at?: string | undefined;
1154
1328
  } | undefined;
1155
1329
  infra?: {
1156
1330
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1157
1331
  proposed_by: string;
1158
1332
  rationale?: string | undefined;
1333
+ approved_by?: string | undefined;
1334
+ approved_at?: string | undefined;
1159
1335
  runtime?: string | undefined;
1160
1336
  deploy_target?: string | undefined;
1161
1337
  notes?: string | undefined;
1162
- approved_by?: string | undefined;
1163
- approved_at?: string | undefined;
1164
1338
  } | undefined;
1165
1339
  api_shape?: {
1166
1340
  status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1167
1341
  proposed_by: string;
1168
1342
  rationale?: string | undefined;
1343
+ approved_by?: string | undefined;
1344
+ approved_at?: string | undefined;
1169
1345
  endpoints?: {
1170
1346
  path: string;
1171
1347
  method: string;
1172
1348
  request_schema?: unknown;
1173
1349
  responses?: Record<string, unknown> | undefined;
1174
1350
  }[] | undefined;
1351
+ } | undefined;
1352
+ fixtures?: {
1353
+ status: "pending" | "approved" | "rejected" | "deferred" | "blocked_on_clarification";
1354
+ proposed_by: string;
1355
+ rationale?: string | undefined;
1175
1356
  approved_by?: string | undefined;
1176
1357
  approved_at?: string | undefined;
1358
+ by_domain?: Record<string, {
1359
+ seed: Record<string, unknown>;
1360
+ }> | undefined;
1177
1361
  } | undefined;
1178
1362
  } | undefined;
1179
- related_specs?: {
1180
- id: string;
1181
- relationship: "overlap" | "related" | "superseded";
1182
- note?: string | undefined;
1183
- }[] | undefined;
1184
- $schema?: string | undefined;
1185
1363
  }>;
1186
1364
  SpecIndexEntry: z.ZodObject<{
1187
1365
  title: z.ZodString;
@@ -1192,21 +1370,21 @@ export declare const schemas: {
1192
1370
  supersedes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1193
1371
  superseded_by: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1194
1372
  }, "strip", z.ZodTypeAny, {
1195
- status: "superseded" | "active" | "draft";
1373
+ status: "draft" | "active" | "superseded";
1196
1374
  title: string;
1197
- supersedes?: string[] | undefined;
1198
- superseded_by?: string | null | undefined;
1199
1375
  source_issue?: string | undefined;
1200
1376
  tags?: string[] | undefined;
1201
1377
  summary?: string | undefined;
1202
- }, {
1203
- status: "superseded" | "active" | "draft";
1204
- title: string;
1205
1378
  supersedes?: string[] | undefined;
1206
1379
  superseded_by?: string | null | undefined;
1380
+ }, {
1381
+ status: "draft" | "active" | "superseded";
1382
+ title: string;
1207
1383
  source_issue?: string | undefined;
1208
1384
  tags?: string[] | undefined;
1209
1385
  summary?: string | undefined;
1386
+ supersedes?: string[] | undefined;
1387
+ superseded_by?: string | null | undefined;
1210
1388
  }>;
1211
1389
  };
1212
1390
  /** Minimal helper for the agent to build a SpecIndexEntry from a Spec. */