@makerkit/prd 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +78 -0
- package/.turbo/turbo-test.log +19 -0
- package/.turbo/turbo-typecheck.log +6 -0
- package/README.md +7 -1
- package/dist/README.md +71 -0
- package/dist/attachment-paths-BAhRGiib.js +112 -0
- package/dist/attachment-paths-C-SWgoSx.mjs +77 -0
- package/dist/index.d.ts +81 -0
- package/{index.js → dist/index.js} +155 -562
- package/{index.mjs → dist/index.mjs} +87 -497
- package/{mcp.d.ts → dist/mcp.d.ts} +2 -4
- package/{mcp.js → dist/mcp.js} +24 -24
- package/{mcp.mjs → dist/mcp.mjs} +24 -24
- package/{node.d.ts → dist/node.d.ts} +4 -4
- package/{node.js → dist/node.js} +28 -4
- package/{node.mjs → dist/node.mjs} +30 -6
- package/dist/operations.d.ts +141 -0
- package/dist/operations.js +22 -0
- package/dist/operations.mjs +1 -0
- package/dist/package.json +54 -0
- package/dist/prd-operations-BvFxo9bg.mjs +459 -0
- package/dist/prd-operations-CcahfbOy.js +584 -0
- package/dist/prd.service-CTwKZV-3.d.ts +114 -0
- package/{prompts-oI_6dxvx.js → dist/prompts-1qhax_dj.js} +113 -164
- package/{prompts-CPlFVutB.mjs → dist/prompts-BlsYD0gf.mjs} +96 -129
- package/{prd.service-CV0-aQHk.d.ts → dist/schema-BwTnt0B9.d.ts} +424 -336
- package/package.json +26 -2
- package/src/__tests__/agent-workflow.test.ts +417 -0
- package/src/__tests__/attachments.test.ts +505 -0
- package/src/__tests__/node.test.ts +199 -0
- package/src/__tests__/plan-check.test.ts +390 -0
- package/src/__tests__/planning.test.ts +1137 -0
- package/src/__tests__/prd-operations.test.ts +571 -0
- package/src/__tests__/prd.service.test.ts +652 -0
- package/src/__tests__/prd.tool.test.ts +282 -0
- package/src/__tests__/templates.test.ts +145 -0
- package/src/applicability.ts +73 -0
- package/src/attachment-paths.ts +83 -0
- package/src/attachments.ts +166 -0
- package/src/edge-cases.ts +61 -0
- package/src/index.ts +33 -0
- package/src/markdown.ts +297 -0
- package/src/mcp/index.ts +875 -0
- package/src/mcp/tool-response.ts +85 -0
- package/src/node.ts +184 -0
- package/src/open-questions.ts +98 -0
- package/src/plan-check.ts +385 -0
- package/src/planning-operations.ts +524 -0
- package/src/prd-operations.ts +769 -0
- package/src/prd.service.ts +1165 -0
- package/src/prompts.ts +161 -0
- package/src/safe-file-name.ts +42 -0
- package/src/schema.ts +1090 -0
- package/src/templates.ts +173 -0
- package/src/testing/fake-mcp-server.ts +81 -0
- package/src/types.ts +381 -0
- package/tsconfig.json +23 -0
- package/tsconfig.lib.json +8 -0
- package/tsconfig.spec.json +7 -0
- package/tsdown.config.mts +12 -0
- package/vitest.config.mts +8 -0
- package/index.d.ts +0 -233
- /package/{LICENSE → dist/LICENSE} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod/v3";
|
|
2
|
-
//#region src/types.d.ts
|
|
3
2
|
interface CustomPhase {
|
|
4
3
|
id: string;
|
|
5
4
|
name: string;
|
|
@@ -71,6 +70,8 @@ interface UserStory {
|
|
|
71
70
|
estimatedComplexity: StoryComplexity;
|
|
72
71
|
dependencies: string[];
|
|
73
72
|
notes?: string;
|
|
73
|
+
/** Worker that claimed the active story through update_story_status. */
|
|
74
|
+
workerId?: string;
|
|
74
75
|
completedAt?: string;
|
|
75
76
|
verification?: StoryVerification;
|
|
76
77
|
log?: StoryLogEntry[];
|
|
@@ -191,6 +192,13 @@ interface StoryTraceabilityMap {
|
|
|
191
192
|
acceptanceCriteriaIds: string[];
|
|
192
193
|
successMetricIds: string[];
|
|
193
194
|
}
|
|
195
|
+
interface PrdRoadmap {
|
|
196
|
+
order?: number;
|
|
197
|
+
criticality?: 'critical' | 'high' | 'medium' | 'low';
|
|
198
|
+
plan?: string;
|
|
199
|
+
group?: string;
|
|
200
|
+
section?: string;
|
|
201
|
+
}
|
|
194
202
|
/**
|
|
195
203
|
* Text fields may use Markdown. Longer text (the overview, problem, solution
|
|
196
204
|
* description, story notes, decision rationale) may use any block Markdown;
|
|
@@ -199,6 +207,7 @@ interface StoryTraceabilityMap {
|
|
|
199
207
|
* and links. Raw HTML is not rendered.
|
|
200
208
|
*/
|
|
201
209
|
interface StructuredPRD {
|
|
210
|
+
roadmap?: PrdRoadmap;
|
|
202
211
|
introduction: {
|
|
203
212
|
title: string;
|
|
204
213
|
overview: string;
|
|
@@ -314,8 +323,6 @@ interface StructuredPRD {
|
|
|
314
323
|
blocked: number;
|
|
315
324
|
};
|
|
316
325
|
}
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region src/schema.d.ts
|
|
319
326
|
declare const StoryStatusSchema: z.ZodEnum<["not_started", "research", "in_progress", "review", "completed", "blocked"]>;
|
|
320
327
|
declare const StoryPrioritySchema: z.ZodEnum<["P0", "P1", "P2", "P3"]>;
|
|
321
328
|
declare const StoryComplexitySchema: z.ZodEnum<["XS", "S", "M", "L", "XL"]>;
|
|
@@ -329,19 +336,58 @@ declare const CriterionProofSchema: z.ZodObject<{
|
|
|
329
336
|
rubric: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
330
337
|
}, "strip", z.ZodTypeAny, {
|
|
331
338
|
criterion: string;
|
|
332
|
-
kind: "
|
|
339
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
333
340
|
seam?: string | undefined;
|
|
334
341
|
reason?: string | undefined;
|
|
335
342
|
fallback?: string | undefined;
|
|
336
343
|
rubric?: string[] | undefined;
|
|
337
344
|
}, {
|
|
338
345
|
criterion: string;
|
|
339
|
-
kind: "
|
|
346
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
340
347
|
seam?: string | undefined;
|
|
341
348
|
reason?: string | undefined;
|
|
342
349
|
fallback?: string | undefined;
|
|
343
350
|
rubric?: string[] | undefined;
|
|
344
351
|
}>;
|
|
352
|
+
declare const PrdCriticalitySchema: z.ZodEnum<["critical", "high", "medium", "low"]>;
|
|
353
|
+
declare const PrdRoadmapSchema: z.ZodObject<{
|
|
354
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
criticality: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
356
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
357
|
+
group: z.ZodOptional<z.ZodString>;
|
|
358
|
+
section: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
order?: number | undefined;
|
|
361
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
362
|
+
plan?: string | undefined;
|
|
363
|
+
group?: string | undefined;
|
|
364
|
+
section?: string | undefined;
|
|
365
|
+
}, {
|
|
366
|
+
order?: number | undefined;
|
|
367
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
368
|
+
plan?: string | undefined;
|
|
369
|
+
group?: string | undefined;
|
|
370
|
+
section?: string | undefined;
|
|
371
|
+
}>;
|
|
372
|
+
declare const PrdRoadmapUpdateSchema: z.ZodObject<{
|
|
373
|
+
order: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
374
|
+
criticality: z.ZodNullable<z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>>;
|
|
375
|
+
plan: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
376
|
+
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
377
|
+
section: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
378
|
+
}, "strict", z.ZodTypeAny, {
|
|
379
|
+
order?: number | null | undefined;
|
|
380
|
+
criticality?: "critical" | "high" | "low" | "medium" | null | undefined;
|
|
381
|
+
plan?: string | null | undefined;
|
|
382
|
+
group?: string | null | undefined;
|
|
383
|
+
section?: string | null | undefined;
|
|
384
|
+
}, {
|
|
385
|
+
order?: number | null | undefined;
|
|
386
|
+
criticality?: "critical" | "high" | "low" | "medium" | null | undefined;
|
|
387
|
+
plan?: string | null | undefined;
|
|
388
|
+
group?: string | null | undefined;
|
|
389
|
+
section?: string | null | undefined;
|
|
390
|
+
}>;
|
|
345
391
|
declare const PrdSummarySchema: z.ZodObject<{
|
|
346
392
|
filename: z.ZodString;
|
|
347
393
|
title: z.ZodString;
|
|
@@ -350,6 +396,25 @@ declare const PrdSummarySchema: z.ZodObject<{
|
|
|
350
396
|
total_stories: z.ZodNumber;
|
|
351
397
|
completed_stories: z.ZodNumber;
|
|
352
398
|
blocked_stories: z.ZodNumber;
|
|
399
|
+
roadmap: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
401
|
+
criticality: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
402
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
403
|
+
group: z.ZodOptional<z.ZodString>;
|
|
404
|
+
section: z.ZodOptional<z.ZodString>;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
order?: number | undefined;
|
|
407
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
408
|
+
plan?: string | undefined;
|
|
409
|
+
group?: string | undefined;
|
|
410
|
+
section?: string | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
order?: number | undefined;
|
|
413
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
414
|
+
plan?: string | undefined;
|
|
415
|
+
group?: string | undefined;
|
|
416
|
+
section?: string | undefined;
|
|
417
|
+
}>>;
|
|
353
418
|
}, "strip", z.ZodTypeAny, {
|
|
354
419
|
filename: string;
|
|
355
420
|
title: string;
|
|
@@ -358,6 +423,13 @@ declare const PrdSummarySchema: z.ZodObject<{
|
|
|
358
423
|
total_stories: number;
|
|
359
424
|
completed_stories: number;
|
|
360
425
|
blocked_stories: number;
|
|
426
|
+
roadmap?: {
|
|
427
|
+
order?: number | undefined;
|
|
428
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
429
|
+
plan?: string | undefined;
|
|
430
|
+
group?: string | undefined;
|
|
431
|
+
section?: string | undefined;
|
|
432
|
+
} | undefined;
|
|
361
433
|
}, {
|
|
362
434
|
filename: string;
|
|
363
435
|
title: string;
|
|
@@ -366,6 +438,13 @@ declare const PrdSummarySchema: z.ZodObject<{
|
|
|
366
438
|
total_stories: number;
|
|
367
439
|
completed_stories: number;
|
|
368
440
|
blocked_stories: number;
|
|
441
|
+
roadmap?: {
|
|
442
|
+
order?: number | undefined;
|
|
443
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
444
|
+
plan?: string | undefined;
|
|
445
|
+
group?: string | undefined;
|
|
446
|
+
section?: string | undefined;
|
|
447
|
+
} | undefined;
|
|
369
448
|
}>;
|
|
370
449
|
declare const ListPrdsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
371
450
|
declare const ListPrdsOutputSchema: z.ZodObject<{
|
|
@@ -377,6 +456,25 @@ declare const ListPrdsOutputSchema: z.ZodObject<{
|
|
|
377
456
|
total_stories: z.ZodNumber;
|
|
378
457
|
completed_stories: z.ZodNumber;
|
|
379
458
|
blocked_stories: z.ZodNumber;
|
|
459
|
+
roadmap: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
461
|
+
criticality: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
462
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
463
|
+
group: z.ZodOptional<z.ZodString>;
|
|
464
|
+
section: z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
|
+
order?: number | undefined;
|
|
467
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
468
|
+
plan?: string | undefined;
|
|
469
|
+
group?: string | undefined;
|
|
470
|
+
section?: string | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
order?: number | undefined;
|
|
473
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
474
|
+
plan?: string | undefined;
|
|
475
|
+
group?: string | undefined;
|
|
476
|
+
section?: string | undefined;
|
|
477
|
+
}>>;
|
|
380
478
|
}, "strip", z.ZodTypeAny, {
|
|
381
479
|
filename: string;
|
|
382
480
|
title: string;
|
|
@@ -385,6 +483,13 @@ declare const ListPrdsOutputSchema: z.ZodObject<{
|
|
|
385
483
|
total_stories: number;
|
|
386
484
|
completed_stories: number;
|
|
387
485
|
blocked_stories: number;
|
|
486
|
+
roadmap?: {
|
|
487
|
+
order?: number | undefined;
|
|
488
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
489
|
+
plan?: string | undefined;
|
|
490
|
+
group?: string | undefined;
|
|
491
|
+
section?: string | undefined;
|
|
492
|
+
} | undefined;
|
|
388
493
|
}, {
|
|
389
494
|
filename: string;
|
|
390
495
|
title: string;
|
|
@@ -393,6 +498,13 @@ declare const ListPrdsOutputSchema: z.ZodObject<{
|
|
|
393
498
|
total_stories: number;
|
|
394
499
|
completed_stories: number;
|
|
395
500
|
blocked_stories: number;
|
|
501
|
+
roadmap?: {
|
|
502
|
+
order?: number | undefined;
|
|
503
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
504
|
+
plan?: string | undefined;
|
|
505
|
+
group?: string | undefined;
|
|
506
|
+
section?: string | undefined;
|
|
507
|
+
} | undefined;
|
|
396
508
|
}>, "many">;
|
|
397
509
|
total: z.ZodNumber;
|
|
398
510
|
prds_dir: z.ZodString;
|
|
@@ -407,6 +519,13 @@ declare const ListPrdsOutputSchema: z.ZodObject<{
|
|
|
407
519
|
total_stories: number;
|
|
408
520
|
completed_stories: number;
|
|
409
521
|
blocked_stories: number;
|
|
522
|
+
roadmap?: {
|
|
523
|
+
order?: number | undefined;
|
|
524
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
525
|
+
plan?: string | undefined;
|
|
526
|
+
group?: string | undefined;
|
|
527
|
+
section?: string | undefined;
|
|
528
|
+
} | undefined;
|
|
410
529
|
}[];
|
|
411
530
|
total: number;
|
|
412
531
|
prds_dir: string;
|
|
@@ -420,6 +539,13 @@ declare const ListPrdsOutputSchema: z.ZodObject<{
|
|
|
420
539
|
total_stories: number;
|
|
421
540
|
completed_stories: number;
|
|
422
541
|
blocked_stories: number;
|
|
542
|
+
roadmap?: {
|
|
543
|
+
order?: number | undefined;
|
|
544
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
545
|
+
plan?: string | undefined;
|
|
546
|
+
group?: string | undefined;
|
|
547
|
+
section?: string | undefined;
|
|
548
|
+
} | undefined;
|
|
423
549
|
}[];
|
|
424
550
|
total: number;
|
|
425
551
|
prds_dir: string;
|
|
@@ -438,12 +564,12 @@ declare const GetPrdOutputSchema: z.ZodObject<{
|
|
|
438
564
|
/** Full normalised PRD document. */
|
|
439
565
|
prd: z.ZodType<StructuredPRD, z.ZodTypeDef, StructuredPRD>;
|
|
440
566
|
}, "strip", z.ZodTypeAny, {
|
|
441
|
-
path: string;
|
|
442
567
|
filename: string;
|
|
568
|
+
path: string;
|
|
443
569
|
prd: StructuredPRD;
|
|
444
570
|
}, {
|
|
445
|
-
path: string;
|
|
446
571
|
filename: string;
|
|
572
|
+
path: string;
|
|
447
573
|
prd: StructuredPRD;
|
|
448
574
|
}>;
|
|
449
575
|
declare const CreatePrdInputSchema: z.ZodObject<{
|
|
@@ -459,6 +585,25 @@ declare const CreatePrdInputSchema: z.ZodObject<{
|
|
|
459
585
|
outOfScope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
460
586
|
assumptions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
461
587
|
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
588
|
+
roadmap: z.ZodOptional<z.ZodObject<{
|
|
589
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
590
|
+
criticality: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
591
|
+
plan: z.ZodOptional<z.ZodString>;
|
|
592
|
+
group: z.ZodOptional<z.ZodString>;
|
|
593
|
+
section: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, "strict", z.ZodTypeAny, {
|
|
595
|
+
order?: number | undefined;
|
|
596
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
597
|
+
plan?: string | undefined;
|
|
598
|
+
group?: string | undefined;
|
|
599
|
+
section?: string | undefined;
|
|
600
|
+
}, {
|
|
601
|
+
order?: number | undefined;
|
|
602
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
603
|
+
plan?: string | undefined;
|
|
604
|
+
group?: string | undefined;
|
|
605
|
+
section?: string | undefined;
|
|
606
|
+
}>>;
|
|
462
607
|
template: z.ZodOptional<z.ZodEnum<["saas-feature", "internal-tool", "integration", "mvp"]>>;
|
|
463
608
|
}, "strip", z.ZodTypeAny, {
|
|
464
609
|
title: string;
|
|
@@ -473,7 +618,14 @@ declare const CreatePrdInputSchema: z.ZodObject<{
|
|
|
473
618
|
outOfScope?: string[] | undefined;
|
|
474
619
|
assumptions?: string[] | undefined;
|
|
475
620
|
openQuestions?: string[] | undefined;
|
|
476
|
-
|
|
621
|
+
roadmap?: {
|
|
622
|
+
order?: number | undefined;
|
|
623
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
624
|
+
plan?: string | undefined;
|
|
625
|
+
group?: string | undefined;
|
|
626
|
+
section?: string | undefined;
|
|
627
|
+
} | undefined;
|
|
628
|
+
template?: "integration" | "internal-tool" | "mvp" | "saas-feature" | undefined;
|
|
477
629
|
}, {
|
|
478
630
|
title: string;
|
|
479
631
|
overview: string;
|
|
@@ -487,20 +639,27 @@ declare const CreatePrdInputSchema: z.ZodObject<{
|
|
|
487
639
|
outOfScope?: string[] | undefined;
|
|
488
640
|
assumptions?: string[] | undefined;
|
|
489
641
|
openQuestions?: string[] | undefined;
|
|
490
|
-
|
|
642
|
+
roadmap?: {
|
|
643
|
+
order?: number | undefined;
|
|
644
|
+
criticality?: "critical" | "high" | "low" | "medium" | undefined;
|
|
645
|
+
plan?: string | undefined;
|
|
646
|
+
group?: string | undefined;
|
|
647
|
+
section?: string | undefined;
|
|
648
|
+
} | undefined;
|
|
649
|
+
template?: "integration" | "internal-tool" | "mvp" | "saas-feature" | undefined;
|
|
491
650
|
}>;
|
|
492
651
|
declare const CreatePrdOutputSchema: z.ZodObject<{
|
|
493
652
|
status: z.ZodLiteral<"success">;
|
|
494
653
|
filename: z.ZodString;
|
|
495
654
|
path: z.ZodString;
|
|
496
655
|
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
path: string;
|
|
498
656
|
status: "success";
|
|
499
657
|
filename: string;
|
|
500
|
-
}, {
|
|
501
658
|
path: string;
|
|
659
|
+
}, {
|
|
502
660
|
status: "success";
|
|
503
661
|
filename: string;
|
|
662
|
+
path: string;
|
|
504
663
|
}>;
|
|
505
664
|
declare const DeletePrdInputSchema: z.ZodObject<{
|
|
506
665
|
filename: z.ZodString;
|
|
@@ -543,14 +702,14 @@ declare const AddUserStoryInputSchema: z.ZodObject<{
|
|
|
543
702
|
rubric: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
544
703
|
}, "strip", z.ZodTypeAny, {
|
|
545
704
|
criterion: string;
|
|
546
|
-
kind: "
|
|
705
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
547
706
|
seam?: string | undefined;
|
|
548
707
|
reason?: string | undefined;
|
|
549
708
|
fallback?: string | undefined;
|
|
550
709
|
rubric?: string[] | undefined;
|
|
551
710
|
}, {
|
|
552
711
|
criterion: string;
|
|
553
|
-
kind: "
|
|
712
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
554
713
|
seam?: string | undefined;
|
|
555
714
|
reason?: string | undefined;
|
|
556
715
|
fallback?: string | undefined;
|
|
@@ -569,11 +728,11 @@ declare const AddUserStoryInputSchema: z.ZodObject<{
|
|
|
569
728
|
acceptanceCriteria: string[];
|
|
570
729
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
571
730
|
title?: string | undefined;
|
|
572
|
-
estimatedComplexity?: "
|
|
731
|
+
estimatedComplexity?: "L" | "M" | "S" | "XL" | "XS" | undefined;
|
|
573
732
|
testSeams?: string[] | undefined;
|
|
574
733
|
proofs?: {
|
|
575
734
|
criterion: string;
|
|
576
|
-
kind: "
|
|
735
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
577
736
|
seam?: string | undefined;
|
|
578
737
|
reason?: string | undefined;
|
|
579
738
|
fallback?: string | undefined;
|
|
@@ -590,13 +749,13 @@ declare const AddUserStoryInputSchema: z.ZodObject<{
|
|
|
590
749
|
action: string;
|
|
591
750
|
benefit: string;
|
|
592
751
|
acceptanceCriteria: string[];
|
|
593
|
-
title?: string | undefined;
|
|
594
752
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
595
|
-
|
|
753
|
+
title?: string | undefined;
|
|
754
|
+
estimatedComplexity?: "L" | "M" | "S" | "XL" | "XS" | undefined;
|
|
596
755
|
testSeams?: string[] | undefined;
|
|
597
756
|
proofs?: {
|
|
598
757
|
criterion: string;
|
|
599
|
-
kind: "
|
|
758
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
600
759
|
seam?: string | undefined;
|
|
601
760
|
reason?: string | undefined;
|
|
602
761
|
fallback?: string | undefined;
|
|
@@ -614,34 +773,37 @@ declare const AddUserStoryOutputSchema: z.ZodObject<{
|
|
|
614
773
|
complexity: z.ZodEnum<["XS", "S", "M", "L", "XL"]>;
|
|
615
774
|
total_stories: z.ZodNumber;
|
|
616
775
|
}, "strip", z.ZodTypeAny, {
|
|
776
|
+
story_id: string;
|
|
617
777
|
title: string;
|
|
778
|
+
complexity: "L" | "M" | "S" | "XL" | "XS";
|
|
618
779
|
total_stories: number;
|
|
619
|
-
story_id: string;
|
|
620
|
-
complexity: "XS" | "S" | "M" | "L" | "XL";
|
|
621
780
|
}, {
|
|
781
|
+
story_id: string;
|
|
622
782
|
title: string;
|
|
783
|
+
complexity: "L" | "M" | "S" | "XL" | "XS";
|
|
623
784
|
total_stories: number;
|
|
624
|
-
story_id: string;
|
|
625
|
-
complexity: "XS" | "S" | "M" | "L" | "XL";
|
|
626
785
|
}>;
|
|
627
786
|
declare const UpdateStoryStatusInputSchema: z.ZodObject<{
|
|
628
787
|
filename: z.ZodString;
|
|
629
788
|
storyId: z.ZodString;
|
|
630
789
|
status: z.ZodEnum<["not_started", "research", "in_progress", "review", "completed", "blocked"]>;
|
|
790
|
+
workerId: z.ZodOptional<z.ZodString>;
|
|
631
791
|
notes: z.ZodOptional<z.ZodString>;
|
|
632
792
|
recordDeviations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
633
793
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
634
794
|
}, "strip", z.ZodTypeAny, {
|
|
635
|
-
status: "not_started" | "research" | "in_progress" | "review" | "completed" | "blocked";
|
|
636
795
|
filename: string;
|
|
637
796
|
storyId: string;
|
|
797
|
+
status: "blocked" | "completed" | "in_progress" | "not_started" | "research" | "review";
|
|
798
|
+
workerId?: string | undefined;
|
|
638
799
|
notes?: string | undefined;
|
|
639
800
|
recordDeviations?: string[] | undefined;
|
|
640
801
|
expectedRevision?: number | undefined;
|
|
641
802
|
}, {
|
|
642
|
-
status: "not_started" | "research" | "in_progress" | "review" | "completed" | "blocked";
|
|
643
803
|
filename: string;
|
|
644
804
|
storyId: string;
|
|
805
|
+
status: "blocked" | "completed" | "in_progress" | "not_started" | "research" | "review";
|
|
806
|
+
workerId?: string | undefined;
|
|
645
807
|
notes?: string | undefined;
|
|
646
808
|
recordDeviations?: string[] | undefined;
|
|
647
809
|
expectedRevision?: number | undefined;
|
|
@@ -681,10 +843,10 @@ declare const UpdateStoryStatusOutputSchema: z.ZodObject<{
|
|
|
681
843
|
/** Ids of the decisions recorded from the story's deviations. */
|
|
682
844
|
recorded_decisions: z.ZodArray<z.ZodString, "many">;
|
|
683
845
|
}, "strip", z.ZodTypeAny, {
|
|
684
|
-
|
|
846
|
+
story_id: string;
|
|
685
847
|
title: string;
|
|
848
|
+
status: "blocked" | "completed" | "in_progress" | "not_started" | "research" | "review";
|
|
686
849
|
progress: number;
|
|
687
|
-
story_id: string;
|
|
688
850
|
verification: {
|
|
689
851
|
verified_at: string;
|
|
690
852
|
checks: string[];
|
|
@@ -692,10 +854,10 @@ declare const UpdateStoryStatusOutputSchema: z.ZodObject<{
|
|
|
692
854
|
} | null;
|
|
693
855
|
recorded_decisions: string[];
|
|
694
856
|
}, {
|
|
695
|
-
|
|
857
|
+
story_id: string;
|
|
696
858
|
title: string;
|
|
859
|
+
status: "blocked" | "completed" | "in_progress" | "not_started" | "research" | "review";
|
|
697
860
|
progress: number;
|
|
698
|
-
story_id: string;
|
|
699
861
|
verification: {
|
|
700
862
|
verified_at: string;
|
|
701
863
|
checks: string[];
|
|
@@ -727,14 +889,14 @@ declare const UpdateUserStoryInputSchema: z.ZodObject<{
|
|
|
727
889
|
rubric: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
728
890
|
}, "strip", z.ZodTypeAny, {
|
|
729
891
|
criterion: string;
|
|
730
|
-
kind: "
|
|
892
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
731
893
|
seam?: string | undefined;
|
|
732
894
|
reason?: string | undefined;
|
|
733
895
|
fallback?: string | undefined;
|
|
734
896
|
rubric?: string[] | undefined;
|
|
735
897
|
}, {
|
|
736
898
|
criterion: string;
|
|
737
|
-
kind: "
|
|
899
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
738
900
|
seam?: string | undefined;
|
|
739
901
|
reason?: string | undefined;
|
|
740
902
|
fallback?: string | undefined;
|
|
@@ -752,26 +914,26 @@ declare const UpdateUserStoryInputSchema: z.ZodObject<{
|
|
|
752
914
|
userType?: string | undefined;
|
|
753
915
|
action?: string | undefined;
|
|
754
916
|
benefit?: string | undefined;
|
|
917
|
+
businessValue?: string | undefined;
|
|
755
918
|
acceptanceCriteria?: string[] | undefined;
|
|
756
919
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
757
|
-
estimatedComplexity?: "
|
|
920
|
+
estimatedComplexity?: "L" | "M" | "S" | "XL" | "XS" | undefined;
|
|
921
|
+
dependencies?: string[] | undefined;
|
|
922
|
+
notes?: string | undefined;
|
|
758
923
|
testSeams?: string[] | undefined;
|
|
759
924
|
proofs?: {
|
|
760
925
|
criterion: string;
|
|
761
|
-
kind: "
|
|
926
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
762
927
|
seam?: string | undefined;
|
|
763
928
|
reason?: string | undefined;
|
|
764
929
|
fallback?: string | undefined;
|
|
765
930
|
rubric?: string[] | undefined;
|
|
766
931
|
}[] | undefined;
|
|
767
|
-
dependencies?: string[] | undefined;
|
|
768
|
-
phaseId?: string | null | undefined;
|
|
769
932
|
attachmentIds?: string[] | undefined;
|
|
770
933
|
designNotes?: string[] | undefined;
|
|
771
934
|
securityNotes?: string[] | undefined;
|
|
772
|
-
|
|
935
|
+
phaseId?: string | null | undefined;
|
|
773
936
|
expectedRevision?: number | undefined;
|
|
774
|
-
businessValue?: string | undefined;
|
|
775
937
|
}, {
|
|
776
938
|
filename: string;
|
|
777
939
|
storyId: string;
|
|
@@ -779,26 +941,26 @@ declare const UpdateUserStoryInputSchema: z.ZodObject<{
|
|
|
779
941
|
userType?: string | undefined;
|
|
780
942
|
action?: string | undefined;
|
|
781
943
|
benefit?: string | undefined;
|
|
944
|
+
businessValue?: string | undefined;
|
|
782
945
|
acceptanceCriteria?: string[] | undefined;
|
|
783
946
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
784
|
-
estimatedComplexity?: "
|
|
947
|
+
estimatedComplexity?: "L" | "M" | "S" | "XL" | "XS" | undefined;
|
|
948
|
+
dependencies?: string[] | undefined;
|
|
949
|
+
notes?: string | undefined;
|
|
785
950
|
testSeams?: string[] | undefined;
|
|
786
951
|
proofs?: {
|
|
787
952
|
criterion: string;
|
|
788
|
-
kind: "
|
|
953
|
+
kind: "e2e" | "integration" | "judge" | "manual" | "post-deploy" | "unit";
|
|
789
954
|
seam?: string | undefined;
|
|
790
955
|
reason?: string | undefined;
|
|
791
956
|
fallback?: string | undefined;
|
|
792
957
|
rubric?: string[] | undefined;
|
|
793
958
|
}[] | undefined;
|
|
794
|
-
dependencies?: string[] | undefined;
|
|
795
|
-
phaseId?: string | null | undefined;
|
|
796
959
|
attachmentIds?: string[] | undefined;
|
|
797
960
|
designNotes?: string[] | undefined;
|
|
798
961
|
securityNotes?: string[] | undefined;
|
|
799
|
-
|
|
962
|
+
phaseId?: string | null | undefined;
|
|
800
963
|
expectedRevision?: number | undefined;
|
|
801
|
-
businessValue?: string | undefined;
|
|
802
964
|
}>;
|
|
803
965
|
declare const UpdateUserStoryOutputSchema: z.ZodObject<{
|
|
804
966
|
story_id: z.ZodString;
|
|
@@ -806,13 +968,13 @@ declare const UpdateUserStoryOutputSchema: z.ZodObject<{
|
|
|
806
968
|
updated_fields: z.ZodArray<z.ZodString, "many">;
|
|
807
969
|
story: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
808
970
|
}, "strip", z.ZodTypeAny, {
|
|
809
|
-
title: string;
|
|
810
971
|
story_id: string;
|
|
972
|
+
title: string;
|
|
811
973
|
updated_fields: string[];
|
|
812
974
|
story: Record<string, unknown>;
|
|
813
975
|
}, {
|
|
814
|
-
title: string;
|
|
815
976
|
story_id: string;
|
|
977
|
+
title: string;
|
|
816
978
|
updated_fields: string[];
|
|
817
979
|
story: Record<string, unknown>;
|
|
818
980
|
}>;
|
|
@@ -835,17 +997,17 @@ declare const DeleteUserStoryOutputSchema: z.ZodObject<{
|
|
|
835
997
|
dependency_references_removed: z.ZodArray<z.ZodString, "many">;
|
|
836
998
|
phases_updated: z.ZodArray<z.ZodString, "many">;
|
|
837
999
|
}, "strip", z.ZodTypeAny, {
|
|
1000
|
+
story_id: string;
|
|
838
1001
|
title: string;
|
|
839
|
-
progress: number;
|
|
840
1002
|
total_stories: number;
|
|
841
|
-
|
|
1003
|
+
progress: number;
|
|
842
1004
|
dependency_references_removed: string[];
|
|
843
1005
|
phases_updated: string[];
|
|
844
1006
|
}, {
|
|
1007
|
+
story_id: string;
|
|
845
1008
|
title: string;
|
|
846
|
-
progress: number;
|
|
847
1009
|
total_stories: number;
|
|
848
|
-
|
|
1010
|
+
progress: number;
|
|
849
1011
|
dependency_references_removed: string[];
|
|
850
1012
|
phases_updated: string[];
|
|
851
1013
|
}>;
|
|
@@ -873,17 +1035,17 @@ declare const CustomPhaseSchema: z.ZodObject<{
|
|
|
873
1035
|
order: z.ZodNumber;
|
|
874
1036
|
user_story_ids: z.ZodArray<z.ZodString, "many">;
|
|
875
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1038
|
+
id: string;
|
|
876
1039
|
name: string;
|
|
877
1040
|
description: string;
|
|
878
1041
|
color: string;
|
|
879
|
-
id: string;
|
|
880
1042
|
order: number;
|
|
881
1043
|
user_story_ids: string[];
|
|
882
1044
|
}, {
|
|
1045
|
+
id: string;
|
|
883
1046
|
name: string;
|
|
884
1047
|
description: string;
|
|
885
1048
|
color: string;
|
|
886
|
-
id: string;
|
|
887
1049
|
order: number;
|
|
888
1050
|
user_story_ids: string[];
|
|
889
1051
|
}>;
|
|
@@ -896,37 +1058,37 @@ declare const CreateCustomPhaseOutputSchema: z.ZodObject<{
|
|
|
896
1058
|
order: z.ZodNumber;
|
|
897
1059
|
user_story_ids: z.ZodArray<z.ZodString, "many">;
|
|
898
1060
|
}, "strip", z.ZodTypeAny, {
|
|
1061
|
+
id: string;
|
|
899
1062
|
name: string;
|
|
900
1063
|
description: string;
|
|
901
1064
|
color: string;
|
|
902
|
-
id: string;
|
|
903
1065
|
order: number;
|
|
904
1066
|
user_story_ids: string[];
|
|
905
1067
|
}, {
|
|
1068
|
+
id: string;
|
|
906
1069
|
name: string;
|
|
907
1070
|
description: string;
|
|
908
1071
|
color: string;
|
|
909
|
-
id: string;
|
|
910
1072
|
order: number;
|
|
911
1073
|
user_story_ids: string[];
|
|
912
1074
|
}>;
|
|
913
1075
|
total_phases: z.ZodNumber;
|
|
914
1076
|
}, "strip", z.ZodTypeAny, {
|
|
915
1077
|
phase: {
|
|
1078
|
+
id: string;
|
|
916
1079
|
name: string;
|
|
917
1080
|
description: string;
|
|
918
1081
|
color: string;
|
|
919
|
-
id: string;
|
|
920
1082
|
order: number;
|
|
921
1083
|
user_story_ids: string[];
|
|
922
1084
|
};
|
|
923
1085
|
total_phases: number;
|
|
924
1086
|
}, {
|
|
925
1087
|
phase: {
|
|
1088
|
+
id: string;
|
|
926
1089
|
name: string;
|
|
927
1090
|
description: string;
|
|
928
1091
|
color: string;
|
|
929
|
-
id: string;
|
|
930
1092
|
order: number;
|
|
931
1093
|
user_story_ids: string[];
|
|
932
1094
|
};
|
|
@@ -939,8 +1101,8 @@ declare const AssignStoryToPhaseInputSchema: z.ZodObject<{
|
|
|
939
1101
|
phaseId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
940
1102
|
}, "strip", z.ZodTypeAny, {
|
|
941
1103
|
filename: string;
|
|
942
|
-
phaseId: string | null;
|
|
943
1104
|
storyId: string;
|
|
1105
|
+
phaseId: string | null;
|
|
944
1106
|
}, {
|
|
945
1107
|
filename: string;
|
|
946
1108
|
storyId: string;
|
|
@@ -973,11 +1135,11 @@ declare const ExportPrdMarkdownOutputSchema: z.ZodObject<{
|
|
|
973
1135
|
markdown_file: z.ZodString;
|
|
974
1136
|
path: z.ZodString;
|
|
975
1137
|
}, "strip", z.ZodTypeAny, {
|
|
976
|
-
path: string;
|
|
977
1138
|
markdown_file: string;
|
|
978
|
-
}, {
|
|
979
1139
|
path: string;
|
|
1140
|
+
}, {
|
|
980
1141
|
markdown_file: string;
|
|
1142
|
+
path: string;
|
|
981
1143
|
}>;
|
|
982
1144
|
declare const GetImplementationPromptsInputSchema: z.ZodObject<{
|
|
983
1145
|
filename: z.ZodString;
|
|
@@ -990,11 +1152,11 @@ declare const GetImplementationPromptsOutputSchema: z.ZodObject<{
|
|
|
990
1152
|
prompts: z.ZodArray<z.ZodString, "many">;
|
|
991
1153
|
total: z.ZodNumber;
|
|
992
1154
|
}, "strip", z.ZodTypeAny, {
|
|
993
|
-
total: number;
|
|
994
1155
|
prompts: string[];
|
|
995
|
-
}, {
|
|
996
1156
|
total: number;
|
|
1157
|
+
}, {
|
|
997
1158
|
prompts: string[];
|
|
1159
|
+
total: number;
|
|
998
1160
|
}>;
|
|
999
1161
|
declare const GetImprovementSuggestionsInputSchema: z.ZodObject<{
|
|
1000
1162
|
filename: z.ZodString;
|
|
@@ -1007,11 +1169,11 @@ declare const GetImprovementSuggestionsOutputSchema: z.ZodObject<{
|
|
|
1007
1169
|
suggestions: z.ZodArray<z.ZodString, "many">;
|
|
1008
1170
|
total: z.ZodNumber;
|
|
1009
1171
|
}, "strip", z.ZodTypeAny, {
|
|
1010
|
-
total: number;
|
|
1011
1172
|
suggestions: string[];
|
|
1012
|
-
}, {
|
|
1013
1173
|
total: number;
|
|
1174
|
+
}, {
|
|
1014
1175
|
suggestions: string[];
|
|
1176
|
+
total: number;
|
|
1015
1177
|
}>;
|
|
1016
1178
|
declare const GetProjectStatusInputSchema: z.ZodObject<{
|
|
1017
1179
|
filename: z.ZodString;
|
|
@@ -1029,13 +1191,13 @@ declare const GetProjectStatusOutputSchema: z.ZodObject<{
|
|
|
1029
1191
|
title: z.ZodString;
|
|
1030
1192
|
notes: z.ZodNullable<z.ZodString>;
|
|
1031
1193
|
}, "strip", z.ZodTypeAny, {
|
|
1194
|
+
id: string;
|
|
1032
1195
|
title: string;
|
|
1033
1196
|
notes: string | null;
|
|
1034
|
-
id: string;
|
|
1035
1197
|
}, {
|
|
1198
|
+
id: string;
|
|
1036
1199
|
title: string;
|
|
1037
1200
|
notes: string | null;
|
|
1038
|
-
id: string;
|
|
1039
1201
|
}>, "many">;
|
|
1040
1202
|
open_questions: z.ZodArray<z.ZodString, "many">;
|
|
1041
1203
|
high_risks: z.ZodArray<z.ZodObject<{
|
|
@@ -1044,13 +1206,13 @@ declare const GetProjectStatusOutputSchema: z.ZodObject<{
|
|
|
1044
1206
|
mitigation: z.ZodString;
|
|
1045
1207
|
owner: z.ZodString;
|
|
1046
1208
|
}, "strip", z.ZodTypeAny, {
|
|
1047
|
-
description: string;
|
|
1048
1209
|
id: string;
|
|
1210
|
+
description: string;
|
|
1049
1211
|
mitigation: string;
|
|
1050
1212
|
owner: string;
|
|
1051
1213
|
}, {
|
|
1052
|
-
description: string;
|
|
1053
1214
|
id: string;
|
|
1215
|
+
description: string;
|
|
1054
1216
|
mitigation: string;
|
|
1055
1217
|
owner: string;
|
|
1056
1218
|
}>, "many">;
|
|
@@ -1059,14 +1221,14 @@ declare const GetProjectStatusOutputSchema: z.ZodObject<{
|
|
|
1059
1221
|
summary: string;
|
|
1060
1222
|
next_steps: string[];
|
|
1061
1223
|
blockers: {
|
|
1224
|
+
id: string;
|
|
1062
1225
|
title: string;
|
|
1063
1226
|
notes: string | null;
|
|
1064
|
-
id: string;
|
|
1065
1227
|
}[];
|
|
1066
1228
|
open_questions: string[];
|
|
1067
1229
|
high_risks: {
|
|
1068
|
-
description: string;
|
|
1069
1230
|
id: string;
|
|
1231
|
+
description: string;
|
|
1070
1232
|
mitigation: string;
|
|
1071
1233
|
owner: string;
|
|
1072
1234
|
}[];
|
|
@@ -1075,14 +1237,14 @@ declare const GetProjectStatusOutputSchema: z.ZodObject<{
|
|
|
1075
1237
|
summary: string;
|
|
1076
1238
|
next_steps: string[];
|
|
1077
1239
|
blockers: {
|
|
1240
|
+
id: string;
|
|
1078
1241
|
title: string;
|
|
1079
1242
|
notes: string | null;
|
|
1080
|
-
id: string;
|
|
1081
1243
|
}[];
|
|
1082
1244
|
open_questions: string[];
|
|
1083
1245
|
high_risks: {
|
|
1084
|
-
description: string;
|
|
1085
1246
|
id: string;
|
|
1247
|
+
description: string;
|
|
1086
1248
|
mitigation: string;
|
|
1087
1249
|
owner: string;
|
|
1088
1250
|
}[];
|
|
@@ -1120,30 +1282,30 @@ declare const GetNextStoryOutputSchema: z.ZodObject<{
|
|
|
1120
1282
|
title: z.ZodString;
|
|
1121
1283
|
waiting_on: z.ZodArray<z.ZodString, "many">;
|
|
1122
1284
|
}, "strip", z.ZodTypeAny, {
|
|
1123
|
-
title: string;
|
|
1124
1285
|
id: string;
|
|
1286
|
+
title: string;
|
|
1125
1287
|
waiting_on: string[];
|
|
1126
1288
|
}, {
|
|
1127
|
-
title: string;
|
|
1128
1289
|
id: string;
|
|
1290
|
+
title: string;
|
|
1129
1291
|
waiting_on: string[];
|
|
1130
1292
|
}>, "many">;
|
|
1131
1293
|
}, "strip", z.ZodTypeAny, {
|
|
1132
|
-
in_progress: string[];
|
|
1133
1294
|
story: UserStory | null;
|
|
1134
1295
|
ready_count: number;
|
|
1296
|
+
in_progress: string[];
|
|
1135
1297
|
waiting: {
|
|
1136
|
-
title: string;
|
|
1137
1298
|
id: string;
|
|
1299
|
+
title: string;
|
|
1138
1300
|
waiting_on: string[];
|
|
1139
1301
|
}[];
|
|
1140
1302
|
}, {
|
|
1141
|
-
in_progress: string[];
|
|
1142
1303
|
story: UserStory | null;
|
|
1143
1304
|
ready_count: number;
|
|
1305
|
+
in_progress: string[];
|
|
1144
1306
|
waiting: {
|
|
1145
|
-
title: string;
|
|
1146
1307
|
id: string;
|
|
1308
|
+
title: string;
|
|
1147
1309
|
waiting_on: string[];
|
|
1148
1310
|
}[];
|
|
1149
1311
|
}>;
|
|
@@ -1165,14 +1327,14 @@ declare const StoryAttachmentSchema: z.ZodObject<{
|
|
|
1165
1327
|
url: z.ZodOptional<z.ZodString>;
|
|
1166
1328
|
note: z.ZodOptional<z.ZodString>;
|
|
1167
1329
|
}, "strip", z.ZodTypeAny, {
|
|
1168
|
-
title: string;
|
|
1169
1330
|
id: string;
|
|
1331
|
+
title: string;
|
|
1170
1332
|
path?: string | undefined;
|
|
1171
1333
|
url?: string | undefined;
|
|
1172
1334
|
note?: string | undefined;
|
|
1173
1335
|
}, {
|
|
1174
|
-
title: string;
|
|
1175
1336
|
id: string;
|
|
1337
|
+
title: string;
|
|
1176
1338
|
path?: string | undefined;
|
|
1177
1339
|
url?: string | undefined;
|
|
1178
1340
|
note?: string | undefined;
|
|
@@ -1192,14 +1354,14 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1192
1354
|
url: z.ZodOptional<z.ZodString>;
|
|
1193
1355
|
note: z.ZodOptional<z.ZodString>;
|
|
1194
1356
|
}, "strip", z.ZodTypeAny, {
|
|
1195
|
-
title: string;
|
|
1196
1357
|
id: string;
|
|
1358
|
+
title: string;
|
|
1197
1359
|
path?: string | undefined;
|
|
1198
1360
|
url?: string | undefined;
|
|
1199
1361
|
note?: string | undefined;
|
|
1200
1362
|
}, {
|
|
1201
|
-
title: string;
|
|
1202
1363
|
id: string;
|
|
1364
|
+
title: string;
|
|
1203
1365
|
path?: string | undefined;
|
|
1204
1366
|
url?: string | undefined;
|
|
1205
1367
|
note?: string | undefined;
|
|
@@ -1211,8 +1373,8 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1211
1373
|
out_of_scope: string[];
|
|
1212
1374
|
global_acceptance_criteria: string[];
|
|
1213
1375
|
attachments: {
|
|
1214
|
-
title: string;
|
|
1215
1376
|
id: string;
|
|
1377
|
+
title: string;
|
|
1216
1378
|
path?: string | undefined;
|
|
1217
1379
|
url?: string | undefined;
|
|
1218
1380
|
note?: string | undefined;
|
|
@@ -1224,8 +1386,8 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1224
1386
|
out_of_scope: string[];
|
|
1225
1387
|
global_acceptance_criteria: string[];
|
|
1226
1388
|
attachments: {
|
|
1227
|
-
title: string;
|
|
1228
1389
|
id: string;
|
|
1390
|
+
title: string;
|
|
1229
1391
|
path?: string | undefined;
|
|
1230
1392
|
url?: string | undefined;
|
|
1231
1393
|
note?: string | undefined;
|
|
@@ -1240,14 +1402,14 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1240
1402
|
url: z.ZodOptional<z.ZodString>;
|
|
1241
1403
|
note: z.ZodOptional<z.ZodString>;
|
|
1242
1404
|
}, "strip", z.ZodTypeAny, {
|
|
1243
|
-
title: string;
|
|
1244
1405
|
id: string;
|
|
1406
|
+
title: string;
|
|
1245
1407
|
path?: string | undefined;
|
|
1246
1408
|
url?: string | undefined;
|
|
1247
1409
|
note?: string | undefined;
|
|
1248
1410
|
}, {
|
|
1249
|
-
title: string;
|
|
1250
1411
|
id: string;
|
|
1412
|
+
title: string;
|
|
1251
1413
|
path?: string | undefined;
|
|
1252
1414
|
url?: string | undefined;
|
|
1253
1415
|
note?: string | undefined;
|
|
@@ -1256,11 +1418,11 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1256
1418
|
id: z.ZodString;
|
|
1257
1419
|
name: z.ZodString;
|
|
1258
1420
|
}, "strip", z.ZodTypeAny, {
|
|
1259
|
-
name: string;
|
|
1260
1421
|
id: string;
|
|
1261
|
-
}, {
|
|
1262
1422
|
name: string;
|
|
1423
|
+
}, {
|
|
1263
1424
|
id: string;
|
|
1425
|
+
name: string;
|
|
1264
1426
|
}>>;
|
|
1265
1427
|
/**
|
|
1266
1428
|
* Edge cases for this story (linked to it, or to the whole PRD). Decided
|
|
@@ -1273,16 +1435,16 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1273
1435
|
status: z.ZodEnum<["open", "decided"]>;
|
|
1274
1436
|
storyIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1275
1437
|
}, "strip", z.ZodTypeAny, {
|
|
1276
|
-
status: "open" | "decided";
|
|
1277
1438
|
id: string;
|
|
1278
1439
|
case: string;
|
|
1279
1440
|
expectedBehavior: string;
|
|
1441
|
+
status: "decided" | "open";
|
|
1280
1442
|
storyIds?: string[] | undefined;
|
|
1281
1443
|
}, {
|
|
1282
|
-
status: "open" | "decided";
|
|
1283
1444
|
id: string;
|
|
1284
1445
|
case: string;
|
|
1285
1446
|
expectedBehavior: string;
|
|
1447
|
+
status: "decided" | "open";
|
|
1286
1448
|
storyIds?: string[] | undefined;
|
|
1287
1449
|
}>, "many">;
|
|
1288
1450
|
/** Open questions that block this story: ask, do not guess. */
|
|
@@ -1296,37 +1458,41 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1296
1458
|
}, "strip", z.ZodTypeAny, {
|
|
1297
1459
|
id: string;
|
|
1298
1460
|
question: string;
|
|
1299
|
-
options?: string[] | undefined;
|
|
1300
|
-
storyIds?: string[] | undefined;
|
|
1301
1461
|
why?: string | undefined;
|
|
1462
|
+
options?: string[] | undefined;
|
|
1302
1463
|
recommended?: string | undefined;
|
|
1464
|
+
storyIds?: string[] | undefined;
|
|
1303
1465
|
}, {
|
|
1304
1466
|
id: string;
|
|
1305
1467
|
question: string;
|
|
1306
|
-
options?: string[] | undefined;
|
|
1307
|
-
storyIds?: string[] | undefined;
|
|
1308
1468
|
why?: string | undefined;
|
|
1469
|
+
options?: string[] | undefined;
|
|
1309
1470
|
recommended?: string | undefined;
|
|
1471
|
+
storyIds?: string[] | undefined;
|
|
1310
1472
|
}>, "many">;
|
|
1311
1473
|
/** Who can do what, sensitive data and standing security rules. Binding. */
|
|
1312
1474
|
security: z.ZodObject<{
|
|
1313
1475
|
permissions: z.ZodArray<z.ZodString, "many">;
|
|
1314
1476
|
compliance: z.ZodArray<z.ZodString, "many">;
|
|
1315
1477
|
considerations: z.ZodArray<z.ZodString, "many">;
|
|
1478
|
+
story_notes: z.ZodArray<z.ZodString, "many">;
|
|
1316
1479
|
}, "strip", z.ZodTypeAny, {
|
|
1317
1480
|
permissions: string[];
|
|
1318
1481
|
compliance: string[];
|
|
1319
1482
|
considerations: string[];
|
|
1483
|
+
story_notes: string[];
|
|
1320
1484
|
}, {
|
|
1321
1485
|
permissions: string[];
|
|
1322
1486
|
compliance: string[];
|
|
1323
1487
|
considerations: string[];
|
|
1488
|
+
story_notes: string[];
|
|
1324
1489
|
}>;
|
|
1325
1490
|
/** Parts of the PRD that do not apply, with the reason: do not invent them. */
|
|
1326
1491
|
not_applicable: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1327
1492
|
/** Standing design rules and accepted design decisions. */
|
|
1328
1493
|
design: z.ZodObject<{
|
|
1329
1494
|
guidance: z.ZodArray<z.ZodString, "many">;
|
|
1495
|
+
story_notes: z.ZodArray<z.ZodString, "many">;
|
|
1330
1496
|
decisions: z.ZodArray<z.ZodObject<{
|
|
1331
1497
|
id: z.ZodString;
|
|
1332
1498
|
decision: z.ZodString;
|
|
@@ -1342,6 +1508,7 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1342
1508
|
}>, "many">;
|
|
1343
1509
|
}, "strip", z.ZodTypeAny, {
|
|
1344
1510
|
guidance: string[];
|
|
1511
|
+
story_notes: string[];
|
|
1345
1512
|
decisions: {
|
|
1346
1513
|
id: string;
|
|
1347
1514
|
decision: string;
|
|
@@ -1349,6 +1516,7 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1349
1516
|
}[];
|
|
1350
1517
|
}, {
|
|
1351
1518
|
guidance: string[];
|
|
1519
|
+
story_notes: string[];
|
|
1352
1520
|
decisions: {
|
|
1353
1521
|
id: string;
|
|
1354
1522
|
decision: string;
|
|
@@ -1376,9 +1544,9 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1376
1544
|
deviations?: string[] | undefined;
|
|
1377
1545
|
}>, "many">;
|
|
1378
1546
|
}, "strip", z.ZodTypeAny, {
|
|
1379
|
-
status: string | null;
|
|
1380
|
-
title: string | null;
|
|
1381
1547
|
id: string;
|
|
1548
|
+
title: string | null;
|
|
1549
|
+
status: string | null;
|
|
1382
1550
|
log: {
|
|
1383
1551
|
at: string;
|
|
1384
1552
|
whatsNew: string[];
|
|
@@ -1386,9 +1554,9 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1386
1554
|
deviations?: string[] | undefined;
|
|
1387
1555
|
}[];
|
|
1388
1556
|
}, {
|
|
1389
|
-
status: string | null;
|
|
1390
|
-
title: string | null;
|
|
1391
1557
|
id: string;
|
|
1558
|
+
title: string | null;
|
|
1559
|
+
status: string | null;
|
|
1392
1560
|
log: {
|
|
1393
1561
|
at: string;
|
|
1394
1562
|
whatsNew: string[];
|
|
@@ -1416,8 +1584,8 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1416
1584
|
deviations?: string[] | undefined;
|
|
1417
1585
|
}>, "many">;
|
|
1418
1586
|
}, "strip", z.ZodTypeAny, {
|
|
1419
|
-
title: string;
|
|
1420
1587
|
id: string;
|
|
1588
|
+
title: string;
|
|
1421
1589
|
log: {
|
|
1422
1590
|
at: string;
|
|
1423
1591
|
whatsNew: string[];
|
|
@@ -1425,8 +1593,8 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1425
1593
|
deviations?: string[] | undefined;
|
|
1426
1594
|
}[];
|
|
1427
1595
|
}, {
|
|
1428
|
-
title: string;
|
|
1429
1596
|
id: string;
|
|
1597
|
+
title: string;
|
|
1430
1598
|
log: {
|
|
1431
1599
|
at: string;
|
|
1432
1600
|
whatsNew: string[];
|
|
@@ -1442,68 +1610,70 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1442
1610
|
out_of_scope: string[];
|
|
1443
1611
|
global_acceptance_criteria: string[];
|
|
1444
1612
|
attachments: {
|
|
1445
|
-
title: string;
|
|
1446
1613
|
id: string;
|
|
1614
|
+
title: string;
|
|
1447
1615
|
path?: string | undefined;
|
|
1448
1616
|
url?: string | undefined;
|
|
1449
1617
|
note?: string | undefined;
|
|
1450
1618
|
}[];
|
|
1451
1619
|
};
|
|
1452
|
-
dependencies: {
|
|
1453
|
-
status: string | null;
|
|
1454
|
-
title: string | null;
|
|
1455
|
-
id: string;
|
|
1456
|
-
log: {
|
|
1457
|
-
at: string;
|
|
1458
|
-
whatsNew: string[];
|
|
1459
|
-
technicalNotes: string[];
|
|
1460
|
-
deviations?: string[] | undefined;
|
|
1461
|
-
}[];
|
|
1462
|
-
}[];
|
|
1463
1620
|
story: UserStory;
|
|
1464
|
-
phase: {
|
|
1465
|
-
name: string;
|
|
1466
|
-
id: string;
|
|
1467
|
-
} | null;
|
|
1468
|
-
open_questions: {
|
|
1469
|
-
id: string;
|
|
1470
|
-
question: string;
|
|
1471
|
-
options?: string[] | undefined;
|
|
1472
|
-
storyIds?: string[] | undefined;
|
|
1473
|
-
why?: string | undefined;
|
|
1474
|
-
recommended?: string | undefined;
|
|
1475
|
-
}[];
|
|
1476
1621
|
attachments: {
|
|
1477
|
-
title: string;
|
|
1478
1622
|
id: string;
|
|
1623
|
+
title: string;
|
|
1479
1624
|
path?: string | undefined;
|
|
1480
1625
|
url?: string | undefined;
|
|
1481
1626
|
note?: string | undefined;
|
|
1482
1627
|
}[];
|
|
1628
|
+
phase: {
|
|
1629
|
+
id: string;
|
|
1630
|
+
name: string;
|
|
1631
|
+
} | null;
|
|
1483
1632
|
edge_cases: {
|
|
1484
|
-
status: "open" | "decided";
|
|
1485
1633
|
id: string;
|
|
1486
1634
|
case: string;
|
|
1487
1635
|
expectedBehavior: string;
|
|
1636
|
+
status: "decided" | "open";
|
|
1637
|
+
storyIds?: string[] | undefined;
|
|
1638
|
+
}[];
|
|
1639
|
+
open_questions: {
|
|
1640
|
+
id: string;
|
|
1641
|
+
question: string;
|
|
1642
|
+
why?: string | undefined;
|
|
1643
|
+
options?: string[] | undefined;
|
|
1644
|
+
recommended?: string | undefined;
|
|
1488
1645
|
storyIds?: string[] | undefined;
|
|
1489
1646
|
}[];
|
|
1490
1647
|
security: {
|
|
1491
1648
|
permissions: string[];
|
|
1492
1649
|
compliance: string[];
|
|
1493
1650
|
considerations: string[];
|
|
1651
|
+
story_notes: string[];
|
|
1494
1652
|
};
|
|
1495
1653
|
not_applicable: Record<string, string>;
|
|
1496
1654
|
design: {
|
|
1497
1655
|
guidance: string[];
|
|
1656
|
+
story_notes: string[];
|
|
1498
1657
|
decisions: {
|
|
1499
1658
|
id: string;
|
|
1500
1659
|
decision: string;
|
|
1501
1660
|
rationale: string;
|
|
1502
1661
|
}[];
|
|
1503
1662
|
};
|
|
1663
|
+
dependencies: {
|
|
1664
|
+
id: string;
|
|
1665
|
+
title: string | null;
|
|
1666
|
+
status: string | null;
|
|
1667
|
+
log: {
|
|
1668
|
+
at: string;
|
|
1669
|
+
whatsNew: string[];
|
|
1670
|
+
technicalNotes: string[];
|
|
1671
|
+
deviations?: string[] | undefined;
|
|
1672
|
+
}[];
|
|
1673
|
+
}[];
|
|
1504
1674
|
previous_story: {
|
|
1505
|
-
title: string;
|
|
1506
1675
|
id: string;
|
|
1676
|
+
title: string;
|
|
1507
1677
|
log: {
|
|
1508
1678
|
at: string;
|
|
1509
1679
|
whatsNew: string[];
|
|
@@ -1519,68 +1689,70 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1519
1689
|
out_of_scope: string[];
|
|
1520
1690
|
global_acceptance_criteria: string[];
|
|
1521
1691
|
attachments: {
|
|
1522
|
-
title: string;
|
|
1523
1692
|
id: string;
|
|
1693
|
+
title: string;
|
|
1524
1694
|
path?: string | undefined;
|
|
1525
1695
|
url?: string | undefined;
|
|
1526
1696
|
note?: string | undefined;
|
|
1527
1697
|
}[];
|
|
1528
1698
|
};
|
|
1529
|
-
dependencies: {
|
|
1530
|
-
status: string | null;
|
|
1531
|
-
title: string | null;
|
|
1532
|
-
id: string;
|
|
1533
|
-
log: {
|
|
1534
|
-
at: string;
|
|
1535
|
-
whatsNew: string[];
|
|
1536
|
-
technicalNotes: string[];
|
|
1537
|
-
deviations?: string[] | undefined;
|
|
1538
|
-
}[];
|
|
1539
|
-
}[];
|
|
1540
1699
|
story: UserStory;
|
|
1541
|
-
phase: {
|
|
1542
|
-
name: string;
|
|
1543
|
-
id: string;
|
|
1544
|
-
} | null;
|
|
1545
|
-
open_questions: {
|
|
1546
|
-
id: string;
|
|
1547
|
-
question: string;
|
|
1548
|
-
options?: string[] | undefined;
|
|
1549
|
-
storyIds?: string[] | undefined;
|
|
1550
|
-
why?: string | undefined;
|
|
1551
|
-
recommended?: string | undefined;
|
|
1552
|
-
}[];
|
|
1553
1700
|
attachments: {
|
|
1554
|
-
title: string;
|
|
1555
1701
|
id: string;
|
|
1702
|
+
title: string;
|
|
1556
1703
|
path?: string | undefined;
|
|
1557
1704
|
url?: string | undefined;
|
|
1558
1705
|
note?: string | undefined;
|
|
1559
1706
|
}[];
|
|
1707
|
+
phase: {
|
|
1708
|
+
id: string;
|
|
1709
|
+
name: string;
|
|
1710
|
+
} | null;
|
|
1560
1711
|
edge_cases: {
|
|
1561
|
-
status: "open" | "decided";
|
|
1562
1712
|
id: string;
|
|
1563
1713
|
case: string;
|
|
1564
1714
|
expectedBehavior: string;
|
|
1715
|
+
status: "decided" | "open";
|
|
1716
|
+
storyIds?: string[] | undefined;
|
|
1717
|
+
}[];
|
|
1718
|
+
open_questions: {
|
|
1719
|
+
id: string;
|
|
1720
|
+
question: string;
|
|
1721
|
+
why?: string | undefined;
|
|
1722
|
+
options?: string[] | undefined;
|
|
1723
|
+
recommended?: string | undefined;
|
|
1565
1724
|
storyIds?: string[] | undefined;
|
|
1566
1725
|
}[];
|
|
1567
1726
|
security: {
|
|
1568
1727
|
permissions: string[];
|
|
1569
1728
|
compliance: string[];
|
|
1570
1729
|
considerations: string[];
|
|
1730
|
+
story_notes: string[];
|
|
1571
1731
|
};
|
|
1572
1732
|
not_applicable: Record<string, string>;
|
|
1573
1733
|
design: {
|
|
1574
1734
|
guidance: string[];
|
|
1735
|
+
story_notes: string[];
|
|
1575
1736
|
decisions: {
|
|
1576
1737
|
id: string;
|
|
1577
1738
|
decision: string;
|
|
1578
1739
|
rationale: string;
|
|
1579
1740
|
}[];
|
|
1580
1741
|
};
|
|
1742
|
+
dependencies: {
|
|
1743
|
+
id: string;
|
|
1744
|
+
title: string | null;
|
|
1745
|
+
status: string | null;
|
|
1746
|
+
log: {
|
|
1747
|
+
at: string;
|
|
1748
|
+
whatsNew: string[];
|
|
1749
|
+
technicalNotes: string[];
|
|
1750
|
+
deviations?: string[] | undefined;
|
|
1751
|
+
}[];
|
|
1752
|
+
}[];
|
|
1581
1753
|
previous_story: {
|
|
1582
|
-
title: string;
|
|
1583
1754
|
id: string;
|
|
1755
|
+
title: string;
|
|
1584
1756
|
log: {
|
|
1585
1757
|
at: string;
|
|
1586
1758
|
whatsNew: string[];
|
|
@@ -1592,18 +1764,21 @@ declare const GetStoryOutputSchema: z.ZodObject<{
|
|
|
1592
1764
|
declare const AddStoryLogInputSchema: z.ZodObject<{
|
|
1593
1765
|
filename: z.ZodString;
|
|
1594
1766
|
storyId: z.ZodString;
|
|
1767
|
+
workerId: z.ZodOptional<z.ZodString>;
|
|
1595
1768
|
whatsNew: z.ZodArray<z.ZodString, "many">;
|
|
1596
1769
|
technicalNotes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1597
1770
|
deviations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1598
1771
|
}, "strip", z.ZodTypeAny, {
|
|
1599
1772
|
filename: string;
|
|
1600
1773
|
storyId: string;
|
|
1774
|
+
workerId?: string | undefined;
|
|
1601
1775
|
whatsNew: string[];
|
|
1602
1776
|
technicalNotes: string[];
|
|
1603
1777
|
deviations?: string[] | undefined;
|
|
1604
1778
|
}, {
|
|
1605
1779
|
filename: string;
|
|
1606
1780
|
storyId: string;
|
|
1781
|
+
workerId?: string | undefined;
|
|
1607
1782
|
whatsNew: string[];
|
|
1608
1783
|
technicalNotes?: string[] | undefined;
|
|
1609
1784
|
deviations?: string[] | undefined;
|
|
@@ -1612,17 +1787,36 @@ declare const AddStoryLogOutputSchema: z.ZodObject<{
|
|
|
1612
1787
|
story_id: z.ZodString;
|
|
1613
1788
|
entries: z.ZodNumber;
|
|
1614
1789
|
}, "strip", z.ZodTypeAny, {
|
|
1615
|
-
entries: number;
|
|
1616
1790
|
story_id: string;
|
|
1617
|
-
}, {
|
|
1618
1791
|
entries: number;
|
|
1792
|
+
}, {
|
|
1619
1793
|
story_id: string;
|
|
1794
|
+
entries: number;
|
|
1620
1795
|
}>;
|
|
1621
1796
|
/**
|
|
1622
1797
|
* Accepted `value` for each `update_prd_section` section. Object sections are
|
|
1623
1798
|
* merged (only the keys supplied change); list sections are replaced.
|
|
1624
1799
|
*/
|
|
1625
1800
|
declare const PrdSectionValueSchemas: {
|
|
1801
|
+
readonly roadmap: z.ZodObject<{
|
|
1802
|
+
order: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1803
|
+
criticality: z.ZodNullable<z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>>;
|
|
1804
|
+
plan: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1805
|
+
group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1806
|
+
section: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1807
|
+
}, "strict", z.ZodTypeAny, {
|
|
1808
|
+
order?: number | null | undefined;
|
|
1809
|
+
criticality?: "critical" | "high" | "low" | "medium" | null | undefined;
|
|
1810
|
+
plan?: string | null | undefined;
|
|
1811
|
+
group?: string | null | undefined;
|
|
1812
|
+
section?: string | null | undefined;
|
|
1813
|
+
}, {
|
|
1814
|
+
order?: number | null | undefined;
|
|
1815
|
+
criticality?: "critical" | "high" | "low" | "medium" | null | undefined;
|
|
1816
|
+
plan?: string | null | undefined;
|
|
1817
|
+
group?: string | null | undefined;
|
|
1818
|
+
section?: string | null | undefined;
|
|
1819
|
+
}>;
|
|
1626
1820
|
readonly introduction: z.ZodObject<{
|
|
1627
1821
|
title: z.ZodOptional<z.ZodString>;
|
|
1628
1822
|
overview: z.ZodOptional<z.ZodString>;
|
|
@@ -1638,26 +1832,26 @@ declare const PrdSectionValueSchemas: {
|
|
|
1638
1832
|
marketOpportunity: z.ZodOptional<z.ZodString>;
|
|
1639
1833
|
targetUsers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1640
1834
|
}, "strict", z.ZodTypeAny, {
|
|
1835
|
+
problem?: string | undefined;
|
|
1641
1836
|
marketOpportunity?: string | undefined;
|
|
1642
1837
|
targetUsers?: string[] | undefined;
|
|
1643
|
-
problem?: string | undefined;
|
|
1644
1838
|
}, {
|
|
1839
|
+
problem?: string | undefined;
|
|
1645
1840
|
marketOpportunity?: string | undefined;
|
|
1646
1841
|
targetUsers?: string[] | undefined;
|
|
1647
|
-
problem?: string | undefined;
|
|
1648
1842
|
}>;
|
|
1649
1843
|
readonly solutionOverview: z.ZodObject<{
|
|
1650
1844
|
description: z.ZodOptional<z.ZodString>;
|
|
1651
1845
|
keyFeatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1652
1846
|
successMetrics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1653
1847
|
}, "strict", z.ZodTypeAny, {
|
|
1848
|
+
description?: string | undefined;
|
|
1654
1849
|
keyFeatures?: string[] | undefined;
|
|
1655
1850
|
successMetrics?: string[] | undefined;
|
|
1656
|
-
description?: string | undefined;
|
|
1657
1851
|
}, {
|
|
1852
|
+
description?: string | undefined;
|
|
1658
1853
|
keyFeatures?: string[] | undefined;
|
|
1659
1854
|
successMetrics?: string[] | undefined;
|
|
1660
|
-
description?: string | undefined;
|
|
1661
1855
|
}>;
|
|
1662
1856
|
readonly nonGoals: z.ZodArray<z.ZodString, "many">;
|
|
1663
1857
|
readonly outOfScope: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1670,19 +1864,19 @@ declare const PrdSectionValueSchemas: {
|
|
|
1670
1864
|
recommended: z.ZodOptional<z.ZodString>;
|
|
1671
1865
|
storyIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1672
1866
|
}, "strip", z.ZodTypeAny, {
|
|
1673
|
-
question: string;
|
|
1674
|
-
options?: string[] | undefined;
|
|
1675
1867
|
id?: string | undefined;
|
|
1676
|
-
|
|
1868
|
+
question: string;
|
|
1677
1869
|
why?: string | undefined;
|
|
1870
|
+
options?: string[] | undefined;
|
|
1678
1871
|
recommended?: string | undefined;
|
|
1872
|
+
storyIds?: string[] | undefined;
|
|
1679
1873
|
}, {
|
|
1680
|
-
question: string;
|
|
1681
|
-
options?: string[] | undefined;
|
|
1682
1874
|
id?: string | undefined;
|
|
1683
|
-
|
|
1875
|
+
question: string;
|
|
1684
1876
|
why?: string | undefined;
|
|
1877
|
+
options?: string[] | undefined;
|
|
1685
1878
|
recommended?: string | undefined;
|
|
1879
|
+
storyIds?: string[] | undefined;
|
|
1686
1880
|
}>]>, "many">;
|
|
1687
1881
|
readonly technicalRequirements: z.ZodObject<{
|
|
1688
1882
|
constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1703,14 +1897,14 @@ declare const PrdSectionValueSchemas: {
|
|
|
1703
1897
|
permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1704
1898
|
integrationBoundaries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1705
1899
|
}, "strict", z.ZodTypeAny, {
|
|
1706
|
-
permissions?: string[] | undefined;
|
|
1707
1900
|
apis?: string[] | undefined;
|
|
1708
1901
|
dataModels?: string[] | undefined;
|
|
1902
|
+
permissions?: string[] | undefined;
|
|
1709
1903
|
integrationBoundaries?: string[] | undefined;
|
|
1710
1904
|
}, {
|
|
1711
|
-
permissions?: string[] | undefined;
|
|
1712
1905
|
apis?: string[] | undefined;
|
|
1713
1906
|
dataModels?: string[] | undefined;
|
|
1907
|
+
permissions?: string[] | undefined;
|
|
1714
1908
|
integrationBoundaries?: string[] | undefined;
|
|
1715
1909
|
}>;
|
|
1716
1910
|
readonly acceptanceCriteria: z.ZodObject<{
|
|
@@ -1781,17 +1975,17 @@ declare const PrdSectionValueSchemas: {
|
|
|
1781
1975
|
owner: z.ZodString;
|
|
1782
1976
|
severity: z.ZodEnum<["low", "medium", "high"]>;
|
|
1783
1977
|
}, "strip", z.ZodTypeAny, {
|
|
1978
|
+
id?: string | undefined;
|
|
1784
1979
|
description: string;
|
|
1785
1980
|
mitigation: string;
|
|
1786
1981
|
owner: string;
|
|
1787
|
-
severity: "
|
|
1788
|
-
id?: string | undefined;
|
|
1982
|
+
severity: "high" | "low" | "medium";
|
|
1789
1983
|
}, {
|
|
1984
|
+
id?: string | undefined;
|
|
1790
1985
|
description: string;
|
|
1791
1986
|
mitigation: string;
|
|
1792
1987
|
owner: string;
|
|
1793
|
-
severity: "
|
|
1794
|
-
id?: string | undefined;
|
|
1988
|
+
severity: "high" | "low" | "medium";
|
|
1795
1989
|
}>, "many">;
|
|
1796
1990
|
readonly dependencies: z.ZodArray<z.ZodObject<{
|
|
1797
1991
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1800,16 +1994,16 @@ declare const PrdSectionValueSchemas: {
|
|
|
1800
1994
|
blocking: z.ZodBoolean;
|
|
1801
1995
|
owner: z.ZodOptional<z.ZodString>;
|
|
1802
1996
|
}, "strip", z.ZodTypeAny, {
|
|
1997
|
+
id?: string | undefined;
|
|
1803
1998
|
name: string;
|
|
1804
1999
|
description: string;
|
|
1805
2000
|
blocking: boolean;
|
|
1806
|
-
id?: string | undefined;
|
|
1807
2001
|
owner?: string | undefined;
|
|
1808
2002
|
}, {
|
|
2003
|
+
id?: string | undefined;
|
|
1809
2004
|
name: string;
|
|
1810
2005
|
description: string;
|
|
1811
2006
|
blocking: boolean;
|
|
1812
|
-
id?: string | undefined;
|
|
1813
2007
|
owner?: string | undefined;
|
|
1814
2008
|
}>, "many">;
|
|
1815
2009
|
readonly edgeCases: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
@@ -1819,28 +2013,28 @@ declare const PrdSectionValueSchemas: {
|
|
|
1819
2013
|
status: z.ZodDefault<z.ZodEnum<["open", "decided"]>>;
|
|
1820
2014
|
storyIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1821
2015
|
}, "strip", z.ZodTypeAny, {
|
|
1822
|
-
|
|
2016
|
+
id?: string | undefined;
|
|
1823
2017
|
case: string;
|
|
1824
2018
|
expectedBehavior: string;
|
|
1825
|
-
|
|
2019
|
+
status: "decided" | "open";
|
|
1826
2020
|
storyIds?: string[] | undefined;
|
|
1827
2021
|
}, {
|
|
1828
|
-
case: string;
|
|
1829
|
-
status?: "open" | "decided" | undefined;
|
|
1830
2022
|
id?: string | undefined;
|
|
2023
|
+
case: string;
|
|
1831
2024
|
expectedBehavior?: string | undefined;
|
|
2025
|
+
status?: "decided" | "open" | undefined;
|
|
1832
2026
|
storyIds?: string[] | undefined;
|
|
1833
2027
|
}>, {
|
|
1834
|
-
|
|
2028
|
+
id?: string | undefined;
|
|
1835
2029
|
case: string;
|
|
1836
2030
|
expectedBehavior: string;
|
|
1837
|
-
|
|
2031
|
+
status: "decided" | "open";
|
|
1838
2032
|
storyIds?: string[] | undefined;
|
|
1839
2033
|
}, {
|
|
1840
|
-
case: string;
|
|
1841
|
-
status?: "open" | "decided" | undefined;
|
|
1842
2034
|
id?: string | undefined;
|
|
2035
|
+
case: string;
|
|
1843
2036
|
expectedBehavior?: string | undefined;
|
|
2037
|
+
status?: "decided" | "open" | undefined;
|
|
1844
2038
|
storyIds?: string[] | undefined;
|
|
1845
2039
|
}>, "many">;
|
|
1846
2040
|
readonly designGuidance: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1849,19 +2043,19 @@ declare const PrdSectionValueSchemas: {
|
|
|
1849
2043
|
type PrdSection = keyof typeof PrdSectionValueSchemas;
|
|
1850
2044
|
declare const UpdatePrdSectionInputSchema: z.ZodObject<{
|
|
1851
2045
|
filename: z.ZodString;
|
|
1852
|
-
section: z.ZodEnum<["
|
|
2046
|
+
section: z.ZodEnum<["acceptanceCriteria" | "assumptions" | "constraints" | "dependencies" | "designGuidance" | "edgeCases" | "introduction" | "measurementPlan" | "nonGoals" | "openQuestions" | "outOfScope" | "problemStatement" | "risks" | "roadmap" | "rolloutPlan" | "securityConsiderations" | "solutionOverview" | "technicalContracts" | "technicalRequirements", ...("acceptanceCriteria" | "assumptions" | "constraints" | "dependencies" | "designGuidance" | "edgeCases" | "introduction" | "measurementPlan" | "nonGoals" | "openQuestions" | "outOfScope" | "problemStatement" | "risks" | "roadmap" | "rolloutPlan" | "securityConsiderations" | "solutionOverview" | "technicalContracts" | "technicalRequirements")[]]>;
|
|
1853
2047
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
1854
2048
|
value: z.ZodUnknown;
|
|
1855
2049
|
}, "strip", z.ZodTypeAny, {
|
|
1856
2050
|
filename: string;
|
|
1857
|
-
section: "
|
|
1858
|
-
value?: unknown;
|
|
2051
|
+
section: "acceptanceCriteria" | "assumptions" | "constraints" | "dependencies" | "designGuidance" | "edgeCases" | "introduction" | "measurementPlan" | "nonGoals" | "openQuestions" | "outOfScope" | "problemStatement" | "risks" | "roadmap" | "rolloutPlan" | "securityConsiderations" | "solutionOverview" | "technicalContracts" | "technicalRequirements";
|
|
1859
2052
|
expectedRevision?: number | undefined;
|
|
2053
|
+
value?: unknown;
|
|
1860
2054
|
}, {
|
|
1861
2055
|
filename: string;
|
|
1862
|
-
section: "
|
|
1863
|
-
value?: unknown;
|
|
2056
|
+
section: "acceptanceCriteria" | "assumptions" | "constraints" | "dependencies" | "designGuidance" | "edgeCases" | "introduction" | "measurementPlan" | "nonGoals" | "openQuestions" | "outOfScope" | "problemStatement" | "risks" | "roadmap" | "rolloutPlan" | "securityConsiderations" | "solutionOverview" | "technicalContracts" | "technicalRequirements";
|
|
1864
2057
|
expectedRevision?: number | undefined;
|
|
2058
|
+
value?: unknown;
|
|
1865
2059
|
}>;
|
|
1866
2060
|
declare const UpdatePrdSectionOutputSchema: z.ZodObject<{
|
|
1867
2061
|
section: z.ZodString;
|
|
@@ -1882,29 +2076,29 @@ declare const MarkNotApplicableInputSchema: z.ZodObject<{
|
|
|
1882
2076
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
1883
2077
|
}, "strip", z.ZodTypeAny, {
|
|
1884
2078
|
filename: string;
|
|
1885
|
-
topic: "
|
|
2079
|
+
topic: "dataModel" | "design" | "edgeCases" | "glossary" | "measurement" | "outsideServices" | "qualityBar" | "risks" | "rollout" | "security";
|
|
1886
2080
|
notApplicable: boolean;
|
|
1887
2081
|
reason?: string | undefined;
|
|
1888
2082
|
expectedRevision?: number | undefined;
|
|
1889
2083
|
}, {
|
|
1890
2084
|
filename: string;
|
|
1891
|
-
topic: "
|
|
2085
|
+
topic: "dataModel" | "design" | "edgeCases" | "glossary" | "measurement" | "outsideServices" | "qualityBar" | "risks" | "rollout" | "security";
|
|
2086
|
+
notApplicable?: boolean | undefined;
|
|
1892
2087
|
reason?: string | undefined;
|
|
1893
2088
|
expectedRevision?: number | undefined;
|
|
1894
|
-
notApplicable?: boolean | undefined;
|
|
1895
2089
|
}>;
|
|
1896
2090
|
declare const MarkNotApplicableOutputSchema: z.ZodObject<{
|
|
1897
2091
|
topic: z.ZodEnum<["dataModel", "outsideServices", "security", "design", "qualityBar", "edgeCases", "rollout", "measurement", "glossary", "risks"]>;
|
|
1898
2092
|
not_applicable: z.ZodBoolean;
|
|
1899
2093
|
reason: z.ZodNullable<z.ZodString>;
|
|
1900
2094
|
}, "strip", z.ZodTypeAny, {
|
|
1901
|
-
|
|
2095
|
+
topic: "dataModel" | "design" | "edgeCases" | "glossary" | "measurement" | "outsideServices" | "qualityBar" | "risks" | "rollout" | "security";
|
|
1902
2096
|
not_applicable: boolean;
|
|
1903
|
-
topic: "security" | "design" | "risks" | "edgeCases" | "dataModel" | "outsideServices" | "qualityBar" | "rollout" | "measurement" | "glossary";
|
|
1904
|
-
}, {
|
|
1905
2097
|
reason: string | null;
|
|
2098
|
+
}, {
|
|
2099
|
+
topic: "dataModel" | "design" | "edgeCases" | "glossary" | "measurement" | "outsideServices" | "qualityBar" | "risks" | "rollout" | "security";
|
|
1906
2100
|
not_applicable: boolean;
|
|
1907
|
-
|
|
2101
|
+
reason: string | null;
|
|
1908
2102
|
}>;
|
|
1909
2103
|
declare const AddDecisionInputSchema: z.ZodObject<{
|
|
1910
2104
|
filename: z.ZodString;
|
|
@@ -1915,20 +2109,20 @@ declare const AddDecisionInputSchema: z.ZodObject<{
|
|
|
1915
2109
|
status: z.ZodDefault<z.ZodEnum<["proposed", "accepted"]>>;
|
|
1916
2110
|
supersedes: z.ZodOptional<z.ZodString>;
|
|
1917
2111
|
}, "strip", z.ZodTypeAny, {
|
|
1918
|
-
status: "proposed" | "accepted";
|
|
1919
2112
|
filename: string;
|
|
1920
2113
|
decision: string;
|
|
1921
2114
|
rationale: string;
|
|
1922
2115
|
owner?: string | undefined;
|
|
1923
2116
|
topic?: string | undefined;
|
|
2117
|
+
status: "accepted" | "proposed";
|
|
1924
2118
|
supersedes?: string | undefined;
|
|
1925
2119
|
}, {
|
|
1926
2120
|
filename: string;
|
|
1927
2121
|
decision: string;
|
|
1928
2122
|
rationale: string;
|
|
1929
|
-
status?: "proposed" | "accepted" | undefined;
|
|
1930
2123
|
owner?: string | undefined;
|
|
1931
2124
|
topic?: string | undefined;
|
|
2125
|
+
status?: "accepted" | "proposed" | undefined;
|
|
1932
2126
|
supersedes?: string | undefined;
|
|
1933
2127
|
}>;
|
|
1934
2128
|
declare const AddDecisionOutputSchema: z.ZodObject<{
|
|
@@ -1956,18 +2150,18 @@ declare const AddAttachmentInputSchema: z.ZodObject<{
|
|
|
1956
2150
|
filename: string;
|
|
1957
2151
|
title: string;
|
|
1958
2152
|
path?: string | undefined;
|
|
1959
|
-
expectedRevision?: number | undefined;
|
|
1960
2153
|
url?: string | undefined;
|
|
1961
2154
|
note?: string | undefined;
|
|
1962
2155
|
storyIds?: string[] | undefined;
|
|
2156
|
+
expectedRevision?: number | undefined;
|
|
1963
2157
|
}, {
|
|
1964
2158
|
filename: string;
|
|
1965
2159
|
title: string;
|
|
1966
2160
|
path?: string | undefined;
|
|
1967
|
-
expectedRevision?: number | undefined;
|
|
1968
2161
|
url?: string | undefined;
|
|
1969
2162
|
note?: string | undefined;
|
|
1970
2163
|
storyIds?: string[] | undefined;
|
|
2164
|
+
expectedRevision?: number | undefined;
|
|
1971
2165
|
}>;
|
|
1972
2166
|
declare const AddAttachmentOutputSchema: z.ZodObject<{
|
|
1973
2167
|
attachment_id: z.ZodString;
|
|
@@ -1976,13 +2170,13 @@ declare const AddAttachmentOutputSchema: z.ZodObject<{
|
|
|
1976
2170
|
stories_updated: z.ZodArray<z.ZodString, "many">;
|
|
1977
2171
|
total_attachments: z.ZodNumber;
|
|
1978
2172
|
}, "strip", z.ZodTypeAny, {
|
|
1979
|
-
path: string | null;
|
|
1980
2173
|
attachment_id: string;
|
|
2174
|
+
path: string | null;
|
|
1981
2175
|
stories_updated: string[];
|
|
1982
2176
|
total_attachments: number;
|
|
1983
2177
|
}, {
|
|
1984
|
-
path: string | null;
|
|
1985
2178
|
attachment_id: string;
|
|
2179
|
+
path: string | null;
|
|
1986
2180
|
stories_updated: string[];
|
|
1987
2181
|
total_attachments: number;
|
|
1988
2182
|
}>;
|
|
@@ -2010,16 +2204,16 @@ declare const UpdateAttachmentInputSchema: z.ZodObject<{
|
|
|
2010
2204
|
filename: string;
|
|
2011
2205
|
attachmentId: string;
|
|
2012
2206
|
title?: string | undefined;
|
|
2013
|
-
expectedRevision?: number | undefined;
|
|
2014
2207
|
note?: string | undefined;
|
|
2015
2208
|
storyIds?: string[] | undefined;
|
|
2209
|
+
expectedRevision?: number | undefined;
|
|
2016
2210
|
}, {
|
|
2017
2211
|
filename: string;
|
|
2018
2212
|
attachmentId: string;
|
|
2019
2213
|
title?: string | undefined;
|
|
2020
|
-
expectedRevision?: number | undefined;
|
|
2021
2214
|
note?: string | undefined;
|
|
2022
2215
|
storyIds?: string[] | undefined;
|
|
2216
|
+
expectedRevision?: number | undefined;
|
|
2023
2217
|
}>;
|
|
2024
2218
|
declare const UpdateAttachmentOutputSchema: z.ZodObject<{
|
|
2025
2219
|
attachment_id: z.ZodString;
|
|
@@ -2053,32 +2247,32 @@ declare const ResolveOpenQuestionInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2053
2247
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
2054
2248
|
}, "strip", z.ZodTypeAny, {
|
|
2055
2249
|
filename: string;
|
|
2250
|
+
questionId?: string | undefined;
|
|
2251
|
+
question?: string | undefined;
|
|
2056
2252
|
answer: string;
|
|
2057
2253
|
recordDecision: boolean;
|
|
2058
2254
|
expectedRevision?: number | undefined;
|
|
2059
|
-
question?: string | undefined;
|
|
2060
|
-
questionId?: string | undefined;
|
|
2061
2255
|
}, {
|
|
2062
2256
|
filename: string;
|
|
2063
|
-
answer: string;
|
|
2064
|
-
expectedRevision?: number | undefined;
|
|
2065
|
-
question?: string | undefined;
|
|
2066
2257
|
questionId?: string | undefined;
|
|
2258
|
+
question?: string | undefined;
|
|
2259
|
+
answer: string;
|
|
2067
2260
|
recordDecision?: boolean | undefined;
|
|
2261
|
+
expectedRevision?: number | undefined;
|
|
2068
2262
|
}>, {
|
|
2069
2263
|
filename: string;
|
|
2264
|
+
questionId?: string | undefined;
|
|
2265
|
+
question?: string | undefined;
|
|
2070
2266
|
answer: string;
|
|
2071
2267
|
recordDecision: boolean;
|
|
2072
2268
|
expectedRevision?: number | undefined;
|
|
2073
|
-
question?: string | undefined;
|
|
2074
|
-
questionId?: string | undefined;
|
|
2075
2269
|
}, {
|
|
2076
2270
|
filename: string;
|
|
2077
|
-
answer: string;
|
|
2078
|
-
expectedRevision?: number | undefined;
|
|
2079
|
-
question?: string | undefined;
|
|
2080
2271
|
questionId?: string | undefined;
|
|
2272
|
+
question?: string | undefined;
|
|
2273
|
+
answer: string;
|
|
2081
2274
|
recordDecision?: boolean | undefined;
|
|
2275
|
+
expectedRevision?: number | undefined;
|
|
2082
2276
|
}>;
|
|
2083
2277
|
declare const DecideEdgeCaseInputSchema: z.ZodObject<{
|
|
2084
2278
|
filename: z.ZodString;
|
|
@@ -2087,13 +2281,13 @@ declare const DecideEdgeCaseInputSchema: z.ZodObject<{
|
|
|
2087
2281
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
2088
2282
|
}, "strip", z.ZodTypeAny, {
|
|
2089
2283
|
filename: string;
|
|
2090
|
-
expectedBehavior: string;
|
|
2091
2284
|
edgeCaseId: string;
|
|
2285
|
+
expectedBehavior: string;
|
|
2092
2286
|
expectedRevision?: number | undefined;
|
|
2093
2287
|
}, {
|
|
2094
2288
|
filename: string;
|
|
2095
|
-
expectedBehavior: string;
|
|
2096
2289
|
edgeCaseId: string;
|
|
2290
|
+
expectedBehavior: string;
|
|
2097
2291
|
expectedRevision?: number | undefined;
|
|
2098
2292
|
}>;
|
|
2099
2293
|
declare const DecideEdgeCaseOutputSchema: z.ZodObject<{
|
|
@@ -2110,11 +2304,11 @@ declare const ResolveOpenQuestionOutputSchema: z.ZodObject<{
|
|
|
2110
2304
|
remaining_questions: z.ZodNumber;
|
|
2111
2305
|
decision_id: z.ZodNullable<z.ZodString>;
|
|
2112
2306
|
}, "strip", z.ZodTypeAny, {
|
|
2113
|
-
decision_id: string | null;
|
|
2114
2307
|
remaining_questions: number;
|
|
2115
|
-
}, {
|
|
2116
2308
|
decision_id: string | null;
|
|
2309
|
+
}, {
|
|
2117
2310
|
remaining_questions: number;
|
|
2311
|
+
decision_id: string | null;
|
|
2118
2312
|
}>;
|
|
2119
2313
|
declare const AddGlossaryTermInputSchema: z.ZodObject<{
|
|
2120
2314
|
filename: z.ZodString;
|
|
@@ -2191,27 +2385,27 @@ declare const PhasesOutputSchema: z.ZodObject<{
|
|
|
2191
2385
|
order: z.ZodNumber;
|
|
2192
2386
|
user_story_ids: z.ZodArray<z.ZodString, "many">;
|
|
2193
2387
|
}, "strip", z.ZodTypeAny, {
|
|
2194
|
-
name: string;
|
|
2195
2388
|
id: string;
|
|
2389
|
+
name: string;
|
|
2196
2390
|
order: number;
|
|
2197
2391
|
user_story_ids: string[];
|
|
2198
2392
|
}, {
|
|
2199
|
-
name: string;
|
|
2200
2393
|
id: string;
|
|
2394
|
+
name: string;
|
|
2201
2395
|
order: number;
|
|
2202
2396
|
user_story_ids: string[];
|
|
2203
2397
|
}>, "many">;
|
|
2204
2398
|
}, "strip", z.ZodTypeAny, {
|
|
2205
2399
|
phases: {
|
|
2206
|
-
name: string;
|
|
2207
2400
|
id: string;
|
|
2401
|
+
name: string;
|
|
2208
2402
|
order: number;
|
|
2209
2403
|
user_story_ids: string[];
|
|
2210
2404
|
}[];
|
|
2211
2405
|
}, {
|
|
2212
2406
|
phases: {
|
|
2213
|
-
name: string;
|
|
2214
2407
|
id: string;
|
|
2408
|
+
name: string;
|
|
2215
2409
|
order: number;
|
|
2216
2410
|
user_story_ids: string[];
|
|
2217
2411
|
}[];
|
|
@@ -2233,34 +2427,34 @@ declare const CheckPlanOutputSchema: z.ZodObject<{
|
|
|
2233
2427
|
severity: z.ZodEnum<["required", "recommended"]>;
|
|
2234
2428
|
storyIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2235
2429
|
}, "strip", z.ZodTypeAny, {
|
|
2236
|
-
message: string;
|
|
2237
2430
|
id: string;
|
|
2238
|
-
severity: "recommended" | "required";
|
|
2239
2431
|
section: string;
|
|
2432
|
+
message: string;
|
|
2433
|
+
severity: "recommended" | "required";
|
|
2240
2434
|
storyIds?: string[] | undefined;
|
|
2241
2435
|
}, {
|
|
2242
|
-
message: string;
|
|
2243
2436
|
id: string;
|
|
2244
|
-
severity: "recommended" | "required";
|
|
2245
2437
|
section: string;
|
|
2438
|
+
message: string;
|
|
2439
|
+
severity: "recommended" | "required";
|
|
2246
2440
|
storyIds?: string[] | undefined;
|
|
2247
2441
|
}>, "many">;
|
|
2248
2442
|
}, "strip", z.ZodTypeAny, {
|
|
2249
2443
|
ready_to_build: boolean;
|
|
2250
2444
|
items: {
|
|
2251
|
-
message: string;
|
|
2252
2445
|
id: string;
|
|
2253
|
-
severity: "recommended" | "required";
|
|
2254
2446
|
section: string;
|
|
2447
|
+
message: string;
|
|
2448
|
+
severity: "recommended" | "required";
|
|
2255
2449
|
storyIds?: string[] | undefined;
|
|
2256
2450
|
}[];
|
|
2257
2451
|
}, {
|
|
2258
2452
|
ready_to_build: boolean;
|
|
2259
2453
|
items: {
|
|
2260
|
-
message: string;
|
|
2261
2454
|
id: string;
|
|
2262
|
-
severity: "recommended" | "required";
|
|
2263
2455
|
section: string;
|
|
2456
|
+
message: string;
|
|
2457
|
+
severity: "recommended" | "required";
|
|
2264
2458
|
storyIds?: string[] | undefined;
|
|
2265
2459
|
}[];
|
|
2266
2460
|
}>;
|
|
@@ -2274,31 +2468,31 @@ declare const ListTemplatesOutputSchema: z.ZodObject<{
|
|
|
2274
2468
|
when_to_use: z.ZodString;
|
|
2275
2469
|
interview_focus: z.ZodArray<z.ZodString, "many">;
|
|
2276
2470
|
}, "strip", z.ZodTypeAny, {
|
|
2471
|
+
id: string;
|
|
2277
2472
|
name: string;
|
|
2278
2473
|
description: string;
|
|
2279
|
-
id: string;
|
|
2280
2474
|
when_to_use: string;
|
|
2281
2475
|
interview_focus: string[];
|
|
2282
2476
|
}, {
|
|
2477
|
+
id: string;
|
|
2283
2478
|
name: string;
|
|
2284
2479
|
description: string;
|
|
2285
|
-
id: string;
|
|
2286
2480
|
when_to_use: string;
|
|
2287
2481
|
interview_focus: string[];
|
|
2288
2482
|
}>, "many">;
|
|
2289
2483
|
}, "strip", z.ZodTypeAny, {
|
|
2290
2484
|
templates: {
|
|
2485
|
+
id: string;
|
|
2291
2486
|
name: string;
|
|
2292
2487
|
description: string;
|
|
2293
|
-
id: string;
|
|
2294
2488
|
when_to_use: string;
|
|
2295
2489
|
interview_focus: string[];
|
|
2296
2490
|
}[];
|
|
2297
2491
|
}, {
|
|
2298
2492
|
templates: {
|
|
2493
|
+
id: string;
|
|
2299
2494
|
name: string;
|
|
2300
2495
|
description: string;
|
|
2301
|
-
id: string;
|
|
2302
2496
|
when_to_use: string;
|
|
2303
2497
|
interview_focus: string[];
|
|
2304
2498
|
}[];
|
|
@@ -2357,110 +2551,4 @@ type UpdatePhaseInput = z.infer<typeof UpdatePhaseInputSchema>;
|
|
|
2357
2551
|
type DeletePhaseInput = z.infer<typeof DeletePhaseInputSchema>;
|
|
2358
2552
|
type ReorderPhasesInput = z.infer<typeof ReorderPhasesInputSchema>;
|
|
2359
2553
|
type PhasesOutput = z.infer<typeof PhasesOutputSchema>;
|
|
2360
|
-
|
|
2361
|
-
//#region src/prd.service.d.ts
|
|
2362
|
-
interface PrdVerificationDiagnostic {
|
|
2363
|
-
file: string;
|
|
2364
|
-
line: number | null;
|
|
2365
|
-
message: string;
|
|
2366
|
-
severity: string;
|
|
2367
|
-
}
|
|
2368
|
-
interface PrdVerificationResult {
|
|
2369
|
-
passed: boolean;
|
|
2370
|
-
/** Scripts that ran, e.g. ['typecheck', 'lint']. */
|
|
2371
|
-
checks: string[];
|
|
2372
|
-
errors: number;
|
|
2373
|
-
warnings: number;
|
|
2374
|
-
diagnostics: PrdVerificationDiagnostic[];
|
|
2375
|
-
/** Human-readable reasons for checks that failed without diagnostics. */
|
|
2376
|
-
messages: string[];
|
|
2377
|
-
}
|
|
2378
|
-
interface PrdDeps {
|
|
2379
|
-
rootPath: string;
|
|
2380
|
-
readdir(path: string): Promise<string[]>;
|
|
2381
|
-
readFile(path: string): Promise<string>;
|
|
2382
|
-
writeFile(path: string, content: string): Promise<void>;
|
|
2383
|
-
/** Must not throw when the directory already exists. */
|
|
2384
|
-
mkdir(path: string): Promise<void>;
|
|
2385
|
-
unlink(path: string): Promise<void>;
|
|
2386
|
-
fileExists(path: string): Promise<boolean>;
|
|
2387
|
-
now(): Date;
|
|
2388
|
-
/**
|
|
2389
|
-
* Runs the project's checks before a story may be marked completed. When
|
|
2390
|
-
* the result is not passing the status change is rejected, so "completed"
|
|
2391
|
-
* always means "the code verifies", not "the agent believes it is done".
|
|
2392
|
-
*/
|
|
2393
|
-
verifyCompletion(): Promise<PrdVerificationResult>;
|
|
2394
|
-
}
|
|
2395
|
-
/**
|
|
2396
|
-
* A write was based on an older revision of the PRD than the one on disk:
|
|
2397
|
-
* someone else (an agent, Loop, another editor) changed it in between. Read
|
|
2398
|
-
* the PRD again and retry; never overwrite.
|
|
2399
|
-
*/
|
|
2400
|
-
declare class PrdRevisionConflictError extends Error {
|
|
2401
|
-
readonly filename: string;
|
|
2402
|
-
readonly expectedRevision: number;
|
|
2403
|
-
readonly currentRevision: number;
|
|
2404
|
-
readonly code = "PRD_REVISION_CONFLICT";
|
|
2405
|
-
constructor(filename: string, expectedRevision: number, currentRevision: number);
|
|
2406
|
-
}
|
|
2407
|
-
declare function createPrdService(deps: PrdDeps): PrdService;
|
|
2408
|
-
declare class PrdService {
|
|
2409
|
-
private readonly deps;
|
|
2410
|
-
constructor(deps: PrdDeps);
|
|
2411
|
-
get prdsDir(): string;
|
|
2412
|
-
list(): Promise<ListPrdsOutput>;
|
|
2413
|
-
get(input: GetPrdInput): Promise<GetPrdOutput>;
|
|
2414
|
-
create(input: CreatePrdInput): Promise<CreatePrdOutput>;
|
|
2415
|
-
delete(input: DeletePrdInput): Promise<DeletePrdOutput>;
|
|
2416
|
-
addUserStory(input: AddUserStoryInput): Promise<AddUserStoryOutput>;
|
|
2417
|
-
updateUserStory(input: UpdateUserStoryInput): Promise<UpdateUserStoryOutput>;
|
|
2418
|
-
deleteUserStory(input: DeleteUserStoryInput): Promise<DeleteUserStoryOutput>;
|
|
2419
|
-
createCustomPhase(input: CreateCustomPhaseInput): Promise<CreateCustomPhaseOutput>;
|
|
2420
|
-
assignStoryToPhase(input: AssignStoryToPhaseInput): Promise<AssignStoryToPhaseOutput>;
|
|
2421
|
-
updateStoryStatus(input: UpdateStoryStatusInput): Promise<UpdateStoryStatusOutput>;
|
|
2422
|
-
exportMarkdown(input: ExportPrdMarkdownInput): Promise<ExportPrdMarkdownOutput>;
|
|
2423
|
-
getImplementationPrompts(filename: string): Promise<GetImplementationPromptsOutput>;
|
|
2424
|
-
getImprovementSuggestions(filename: string): Promise<GetImprovementSuggestionsOutput>;
|
|
2425
|
-
listTemplates(): ListTemplatesOutput;
|
|
2426
|
-
checkPlan(filename: string): Promise<CheckPlanOutput>;
|
|
2427
|
-
getProjectStatus(filename: string): Promise<GetProjectStatusOutput>;
|
|
2428
|
-
updatePrdSection(input: UpdatePrdSectionInput): Promise<UpdatePrdSectionOutput>;
|
|
2429
|
-
/** Mark a part of the PRD (not) applicable, e.g. no rollout for an internal tool. */
|
|
2430
|
-
markNotApplicable(input: MarkNotApplicableInput): Promise<MarkNotApplicableOutput>;
|
|
2431
|
-
addDecision(input: AddDecisionInput): Promise<AddDecisionOutput>;
|
|
2432
|
-
resolveOpenQuestion(input: ResolveOpenQuestionInput): Promise<ResolveOpenQuestionOutput>;
|
|
2433
|
-
decideEdgeCase(input: DecideEdgeCaseInput): Promise<DecideEdgeCaseOutput>;
|
|
2434
|
-
addGlossaryTerm(input: AddGlossaryTermInput): Promise<AddGlossaryTermOutput>;
|
|
2435
|
-
updatePhase(input: UpdatePhaseInput): Promise<PhasesOutput>;
|
|
2436
|
-
deletePhase(input: DeletePhaseInput): Promise<PhasesOutput>;
|
|
2437
|
-
reorderPhases(input: ReorderPhasesInput): Promise<PhasesOutput>;
|
|
2438
|
-
getNextStory(filename: string): Promise<GetNextStoryOutput>;
|
|
2439
|
-
getStory(input: GetStoryInput): Promise<GetStoryOutput>;
|
|
2440
|
-
addStoryLog(input: AddStoryLogInput): Promise<AddStoryLogOutput>;
|
|
2441
|
-
/** Files must already be in the PRD's folder, `.prds/<prd name>/`. */
|
|
2442
|
-
addAttachment(input: AddAttachmentInput): Promise<AddAttachmentOutput>;
|
|
2443
|
-
/** Changes an attachment's title, note or the stories that use it. */
|
|
2444
|
-
updateAttachment(input: UpdateAttachmentInput): Promise<UpdateAttachmentOutput>;
|
|
2445
|
-
/** Removes the attachment from the PRD and its stories; the file stays. */
|
|
2446
|
-
removeAttachment(input: RemoveAttachmentInput): Promise<RemoveAttachmentOutput>;
|
|
2447
|
-
/** Load → transform → save for operations that only touch the PRD. */
|
|
2448
|
-
/**
|
|
2449
|
-
* Load, change and save a PRD. With `expectedRevision` (the revision the
|
|
2450
|
-
* caller's change is based on, e.g. what a person saw before editing), the
|
|
2451
|
-
* change is rejected when the PRD has moved on since.
|
|
2452
|
-
*/
|
|
2453
|
-
private mutate;
|
|
2454
|
-
/**
|
|
2455
|
-
* Load and normalise a PRD. The file name is validated here, at the
|
|
2456
|
-
* filesystem boundary, so every caller (including the dev tool) is covered.
|
|
2457
|
-
*/
|
|
2458
|
-
load(filename: string): Promise<StructuredPRD>;
|
|
2459
|
-
private save;
|
|
2460
|
-
private listFilenames;
|
|
2461
|
-
private safeName;
|
|
2462
|
-
private today;
|
|
2463
|
-
}
|
|
2464
|
-
declare function normalizePrd(input: unknown, today: string): StructuredPRD;
|
|
2465
|
-
//#endregion
|
|
2466
|
-
export { DeletePrdOutput as $, ResolveOpenQuestionInput as $t, AssignStoryToPhaseOutput as A, CriterionProof as An, ListPrdsOutput as At, CreatePrdInputSchema as B, StoryComplexity as Bn, PhasesOutput as Bt, AddStoryLogOutputSchema as C, UpdateStoryStatusOutputSchema as Cn, GetProjectStatusOutput as Ct, AddUserStoryOutputSchema as D, UpdateUserStoryOutputSchema as Dn, GetStoryOutput as Dt, AddUserStoryOutput as E, UpdateUserStoryOutput as En, GetStoryInputSchema as Et, CreateCustomPhaseInput as F, GlossaryTerm as Fn, MarkNotApplicableInput as Ft, DecideEdgeCaseInput as G, StoryVerification as Gn, PrdSummarySchema as Gt, CreatePrdOutputSchema as H, StoryPriority as Hn, PrdSection as Ht, CreateCustomPhaseInputSchema as I, NotApplicableTopic as In, MarkNotApplicableInputSchema as It, DecideEdgeCaseOutputSchema as J, RemoveAttachmentInputSchema as Jt, DecideEdgeCaseInputSchema as K, StructuredPRD as Kn, ProofKindSchema as Kt, CreateCustomPhaseOutput as L, OpenQuestion as Ln, MarkNotApplicableOutput as Lt, CheckPlanInputSchema as M, CustomPhase as Mn, ListTemplatesInputSchema as Mt, CheckPlanOutput as N, DecisionLogEntry as Nn, ListTemplatesOutput as Nt, AssignStoryToPhaseInput as O, AgentTaskPacket as On, GetStoryOutputSchema as Ot, CheckPlanOutputSchema as P, EdgeCase as Pn, ListTemplatesOutputSchema as Pt, DeletePrdInputSchema as Q, ReorderPhasesInputSchema as Qt, CreateCustomPhaseOutputSchema as R, ProofKind as Rn, MarkNotApplicableOutputSchema as Rt, AddStoryLogOutput as S, UpdateStoryStatusOutput as Sn, GetProjectStatusInputSchema as St, AddUserStoryInputSchema as T, UpdateUserStoryInputSchema as Tn, GetStoryInput as Tt, CriterionProofSchema as U, StoryStatus as Un, PrdSectionValueSchemas as Ut, CreatePrdOutput as V, StoryLogEntry as Vn, PhasesOutputSchema as Vt, CustomPhaseSchema as W, StoryTraceabilityMap as Wn, PrdSummary as Wt, DeletePhaseInputSchema as X, RemoveAttachmentOutputSchema as Xt, DeletePhaseInput as Y, RemoveAttachmentOutput as Yt, DeletePrdInput as Z, ReorderPhasesInput as Zt, AddGlossaryTermInputSchema as _, UpdatePrdSectionInputSchema as _n, GetNextStoryOutputSchema as _t, PrdVerificationResult as a, StoryComplexitySchema as an, ExportPrdMarkdownInput as at, AddStoryLogInput as b, UpdateStoryStatusInput as bn, GetPrdOutput as bt, AddAttachmentInput as c, StoryStatusSchema as cn, ExportPrdMarkdownOutputSchema as ct, AddAttachmentOutputSchema as d, UpdateAttachmentInputSchema as dn, GetImplementationPromptsOutputSchema as dt, ResolveOpenQuestionInputSchema as en, DeletePrdOutputSchema as et, AddDecisionInput as f, UpdateAttachmentOutput as fn, GetImprovementSuggestionsInputSchema as ft, AddGlossaryTermInput as g, UpdatePrdSectionInput as gn, GetNextStoryOutput as gt, AddDecisionOutputSchema as h, UpdatePhaseInputSchema as hn, GetNextStoryInputSchema as ht, PrdVerificationDiagnostic as i, StoryAttachmentSchema as in, DeleteUserStoryOutputSchema as it, AssignStoryToPhaseOutputSchema as j, CrossDependency as jn, ListPrdsOutputSchema as jt, AssignStoryToPhaseInputSchema as k, Attachment as kn, ListPrdsInputSchema as kt, AddAttachmentInputSchema as l, StoryVerificationSchema as ln, GetImplementationPromptsInputSchema as lt, AddDecisionOutput as m, UpdatePhaseInput as mn, GetImprovementSuggestionsOutputSchema as mt, PrdRevisionConflictError as n, ResolveOpenQuestionOutputSchema as nn, DeleteUserStoryInputSchema as nt, createPrdService as o, StoryLogEntrySchema as on, ExportPrdMarkdownInputSchema as ot, AddDecisionInputSchema as p, UpdateAttachmentOutputSchema as pn, GetImprovementSuggestionsOutput as pt, DecideEdgeCaseOutput as q, UserStory as qn, RemoveAttachmentInput as qt, PrdService as r, StoryAttachment as rn, DeleteUserStoryOutput as rt, normalizePrd as s, StoryPrioritySchema as sn, ExportPrdMarkdownOutput as st, PrdDeps as t, ResolveOpenQuestionOutput as tn, DeleteUserStoryInput as tt, AddAttachmentOutput as u, UpdateAttachmentInput as un, GetImplementationPromptsOutput as ut, AddGlossaryTermOutput as v, UpdatePrdSectionOutput as vn, GetPrdInput as vt, AddUserStoryInput as w, UpdateUserStoryInput as wn, GetProjectStatusOutputSchema as wt, AddStoryLogInputSchema as x, UpdateStoryStatusInputSchema as xn, GetPrdOutputSchema as xt, AddGlossaryTermOutputSchema as y, UpdatePrdSectionOutputSchema as yn, GetPrdInputSchema as yt, CreatePrdInput as z, RiskItem as zn, NotApplicableTopicSchema as zt };
|
|
2554
|
+
export { ExportPrdMarkdownInputSchema as $, StoryAttachment as $t, CreateCustomPhaseOutput as A, EdgeCase as An, MarkNotApplicableOutput as At, DecideEdgeCaseOutput as B, StoryStatus as Bn, PrdSummary as Bt, AssignStoryToPhaseOutput as C, UpdateUserStoryOutputSchema as Cn, ListPrdsOutput as Ct, CheckPlanOutputSchema as D, CrossDependency as Dn, ListTemplatesOutputSchema as Dt, CheckPlanOutput as E, CriterionProof as En, ListTemplatesOutput as Et, CreatePrdOutputSchema as F, ProofKind as Fn, PrdCriticalitySchema as Ft, DeletePrdInputSchema as G, RemoveAttachmentOutput as Gt, DeletePhaseInput as H, StoryVerification as Hn, ProofKindSchema as Ht, CriterionProofSchema as I, RiskItem as In, PrdRoadmapSchema as It, DeleteUserStoryInput as J, ReorderPhasesInputSchema as Jt, DeletePrdOutput as K, RemoveAttachmentOutputSchema as Kt, CustomPhaseSchema as L, StoryComplexity as Ln, PrdRoadmapUpdateSchema as Lt, CreatePrdInput as M, NotApplicableTopic as Mn, NotApplicableTopicSchema as Mt, CreatePrdInputSchema as N, OpenQuestion as Nn, PhasesOutput as Nt, CreateCustomPhaseInput as O, CustomPhase as On, MarkNotApplicableInput as Ot, CreatePrdOutput as P, PrdRoadmap as Pn, PhasesOutputSchema as Pt, ExportPrdMarkdownInput as Q, ResolveOpenQuestionOutputSchema as Qt, DecideEdgeCaseInput as R, StoryLogEntry as Rn, PrdSection as Rt, AssignStoryToPhaseInputSchema as S, UpdateUserStoryOutput as Sn, ListPrdsInputSchema as St, CheckPlanInputSchema as T, Attachment as Tn, ListTemplatesInputSchema as Tt, DeletePhaseInputSchema as U, StructuredPRD as Un, RemoveAttachmentInput as Ut, DecideEdgeCaseOutputSchema as V, StoryTraceabilityMap as Vn, PrdSummarySchema as Vt, DeletePrdInput as W, UserStory as Wn, RemoveAttachmentInputSchema as Wt, DeleteUserStoryOutput as X, ResolveOpenQuestionInputSchema as Xt, DeleteUserStoryInputSchema as Y, ResolveOpenQuestionInput as Yt, DeleteUserStoryOutputSchema as Z, ResolveOpenQuestionOutput as Zt, AddUserStoryInput as _, UpdateStoryStatusInputSchema as _n, GetProjectStatusOutputSchema as _t, AddDecisionInput as a, StoryVerificationSchema as an, GetImprovementSuggestionsInputSchema as at, AddUserStoryOutputSchema as b, UpdateUserStoryInput as bn, GetStoryOutput as bt, AddDecisionOutputSchema as c, UpdateAttachmentOutput as cn, GetNextStoryInputSchema as ct, AddGlossaryTermOutput as d, UpdatePhaseInputSchema as dn, GetPrdInput as dt, StoryAttachmentSchema as en, ExportPrdMarkdownOutput as et, AddGlossaryTermOutputSchema as f, UpdatePrdSectionInput as fn, GetPrdInputSchema as ft, AddStoryLogOutputSchema as g, UpdateStoryStatusInput as gn, GetProjectStatusOutput as gt, AddStoryLogOutput as h, UpdatePrdSectionOutputSchema as hn, GetProjectStatusInputSchema as ht, AddAttachmentOutputSchema as i, StoryStatusSchema as in, GetImplementationPromptsOutputSchema as it, CreateCustomPhaseOutputSchema as j, GlossaryTerm as jn, MarkNotApplicableOutputSchema as jt, CreateCustomPhaseInputSchema as k, DecisionLogEntry as kn, MarkNotApplicableInputSchema as kt, AddGlossaryTermInput as l, UpdateAttachmentOutputSchema as ln, GetNextStoryOutput as lt, AddStoryLogInputSchema as m, UpdatePrdSectionOutput as mn, GetPrdOutputSchema as mt, AddAttachmentInputSchema as n, StoryLogEntrySchema as nn, GetImplementationPromptsInputSchema as nt, AddDecisionInputSchema as o, UpdateAttachmentInput as on, GetImprovementSuggestionsOutput as ot, AddStoryLogInput as p, UpdatePrdSectionInputSchema as pn, GetPrdOutput as pt, DeletePrdOutputSchema as q, ReorderPhasesInput as qt, AddAttachmentOutput as r, StoryPrioritySchema as rn, GetImplementationPromptsOutput as rt, AddDecisionOutput as s, UpdateAttachmentInputSchema as sn, GetImprovementSuggestionsOutputSchema as st, AddAttachmentInput as t, StoryComplexitySchema as tn, ExportPrdMarkdownOutputSchema as tt, AddGlossaryTermInputSchema as u, UpdatePhaseInput as un, GetNextStoryOutputSchema as ut, AddUserStoryInputSchema as v, UpdateStoryStatusOutput as vn, GetStoryInput as vt, AssignStoryToPhaseOutputSchema as w, AgentTaskPacket as wn, ListPrdsOutputSchema as wt, AssignStoryToPhaseInput as x, UpdateUserStoryInputSchema as xn, GetStoryOutputSchema as xt, AddUserStoryOutput as y, UpdateStoryStatusOutputSchema as yn, GetStoryInputSchema as yt, DecideEdgeCaseInputSchema as z, StoryPriority as zn, PrdSectionValueSchemas as zt };
|