@openspecui/core 5.0.0 → 6.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/cli-projection-DxnVGm2B.d.mts +789 -0
  2. package/dist/cli-projection-vO3-FJg5.mjs +161 -0
  3. package/dist/cli-projection.d.mts +6 -0
  4. package/dist/cli-projection.mjs +4 -0
  5. package/dist/command-result-fkH3Ekdz.d.mts +8477 -0
  6. package/dist/common-D8YUK9dA.mjs +57 -0
  7. package/dist/dashboard-summary-transport-CQ4is5_e.d.mts +66227 -0
  8. package/dist/dashboard-summary-transport-D2VBAIxg.mjs +175 -0
  9. package/dist/dashboard-summary-transport.d.mts +25 -0
  10. package/dist/dashboard-summary-transport.mjs +6 -0
  11. package/dist/{document-translation-D4YK18I3.mjs → document-translation-CeJFGMoy.mjs} +1 -1
  12. package/dist/{document-translation-7R8cf8_B.d.mts → document-translation-D50BnvVh.d.mts} +2 -2
  13. package/dist/document-translation.d.mts +1 -1
  14. package/dist/document-translation.mjs +2 -2
  15. package/dist/{hosted-app-CzMRiEgY.mjs → hosted-app-BPU4OR41.mjs} +31 -9
  16. package/dist/hosted-app.d.mts +25 -2
  17. package/dist/hosted-app.mjs +7 -2
  18. package/dist/hosted-contract-CcRnb51e.mjs +234 -0
  19. package/dist/hosted-contract.d.mts +25 -0
  20. package/dist/hosted-contract.mjs +7 -0
  21. package/dist/index.d.mts +25 -2686
  22. package/dist/index.mjs +2114 -1098
  23. package/dist/{local-download-profiles-caa4PECd.d.mts → local-download-profiles-BL_rtlVM.d.mts} +1 -1
  24. package/dist/local-download-profiles.d.mts +2 -2
  25. package/dist/local-download-profiles.mjs +1 -1
  26. package/dist/markdown-facts.d.mts +1 -1
  27. package/dist/markdown-facts.mjs +1 -1
  28. package/dist/{markdown-reading-CgXuXp6s.d.mts → markdown-reading-LUdqfbxH.d.mts} +1 -1
  29. package/dist/{markdown-reading-DdcB7run.mjs → markdown-reading-mG4OAbDO.mjs} +1 -1
  30. package/dist/markdown-reading.d.mts +2 -2
  31. package/dist/markdown-reading.mjs +2 -2
  32. package/dist/{notifications-AKAcmeKT.mjs → notifications-C2bxAzX_.mjs} +13 -2
  33. package/dist/{notifications-DZeOl4HV.d.mts → notifications-CgJlLgLO.d.mts} +51 -25
  34. package/dist/notifications.d.mts +2 -2
  35. package/dist/notifications.mjs +3 -3
  36. package/dist/{openspec-annotations-CeXd0JIZ.d.mts → openspec-annotations-C58Aoi-V.d.mts} +2 -2
  37. package/dist/{openspec-annotations-D_6Pz7k4.mjs → openspec-annotations-DCfqBMal.mjs} +2 -2
  38. package/dist/openspec-annotations.d.mts +3 -3
  39. package/dist/openspec-annotations.mjs +3 -3
  40. package/dist/openspec-compat.d.mts +18 -11
  41. package/dist/openspec-compat.mjs +20 -13
  42. package/dist/{openspec-projection-B8s-KWQ7.mjs → openspec-projection-DCgToo0Q.mjs} +2 -2
  43. package/dist/{openspec-projection-B0ch1rZw.d.mts → openspec-projection-RohNZI4p.d.mts} +3 -3
  44. package/dist/openspec-projection.d.mts +5 -5
  45. package/dist/openspec-projection.mjs +4 -4
  46. package/dist/opsx-display-path.d.mts +1 -1
  47. package/dist/opsx-display-path.mjs +1 -1
  48. package/dist/{opsx-entity-DZyl-uhQ.d.mts → opsx-entity-D7kDQsze.d.mts} +2 -2
  49. package/dist/opsx-entity.d.mts +7 -3
  50. package/dist/opsx-entity.mjs +1 -1
  51. package/dist/{opsx-schema-detail-CS0tWa9v.d.mts → opsx-schema-detail-BxDXEwDY.d.mts} +2 -2
  52. package/dist/opsx-schema-detail.d.mts +8 -4
  53. package/dist/opsx-schema-detail.mjs +1 -1
  54. package/dist/opsx-types-BJ8AjhrS.d.mts +3642 -0
  55. package/dist/opsx-workflows-BvnJqjfL.d.mts +36 -0
  56. package/dist/opsx-workflows-Ccc6U7IR.mjs +89 -0
  57. package/dist/opsx-workflows.d.mts +2 -0
  58. package/dist/opsx-workflows.mjs +3 -0
  59. package/dist/planning-cli-projection-DIRxeq2H.mjs +421 -0
  60. package/dist/planning-cli-projection.d.mts +25 -0
  61. package/dist/planning-cli-projection.mjs +9 -0
  62. package/dist/schemas-BFroDdOC.mjs +287 -0
  63. package/dist/{schemas-D01aQnV4.d.mts → schemas-DS-JqAJ2.d.mts} +524 -78
  64. package/dist/{sounds-kgDn4x8v.d.mts → sounds-qhRgCy0F.d.mts} +12 -12
  65. package/dist/sounds.d.mts +1 -1
  66. package/dist/sounds.mjs +1 -1
  67. package/dist/spec-catalog-ZGuiZ4CE.mjs +901 -0
  68. package/dist/spec-catalog.d.mts +25 -0
  69. package/dist/spec-catalog.mjs +6 -0
  70. package/dist/store-mutation-protocol-5tfs-RmD.d.mts +727 -0
  71. package/dist/store-mutation-protocol-CSwD-xPO.mjs +63 -0
  72. package/dist/store-mutation-protocol.d.mts +2 -0
  73. package/dist/store-mutation-protocol.mjs +4 -0
  74. package/dist/{store-types-Cu41QSww.mjs → store-types-DlX1REBg.mjs} +39 -18
  75. package/dist/{store-types-BiE-Ey--.d.mts → store-types-b554wAQJ.d.mts} +22 -12
  76. package/dist/store-types.d.mts +6 -2
  77. package/dist/store-types.mjs +2 -2
  78. package/dist/task-progress-B_IWVXjA.mjs +216 -0
  79. package/dist/task-progress.d.mts +7 -4
  80. package/dist/task-progress.mjs +3 -3
  81. package/dist/{terminal-audio-TBoU2jSK.mjs → terminal-audio-d6KItUeJ.mjs} +1 -1
  82. package/dist/{terminal-audio-CsuGTNV-.d.mts → terminal-audio-tXDm_EDe.d.mts} +1 -1
  83. package/dist/terminal-audio.d.mts +2 -2
  84. package/dist/terminal-audio.mjs +2 -2
  85. package/dist/terminal-control.d.mts +2 -2
  86. package/dist/terminal-control.mjs +1 -1
  87. package/dist/{terminal-invocation-BlFwKpIc.d.mts → terminal-invocation-BOvxThym.d.mts} +239 -120
  88. package/dist/terminal-invocation.d.mts +1 -1
  89. package/dist/terminal-invocation.mjs +1 -1
  90. package/dist/terminal-theme.d.mts +1 -1
  91. package/dist/terminal-theme.mjs +1 -1
  92. package/dist/translation-language-pair.d.mts +1 -1
  93. package/dist/translation-language-pair.mjs +1 -1
  94. package/dist/{translator-BErXgQxx.d.mts → translator-NKv1wo3o.d.mts} +86 -86
  95. package/dist/translator.d.mts +1 -1
  96. package/dist/translator.mjs +1 -1
  97. package/package.json +55 -7
  98. package/dist/hosted-app-DHs94gIR.d.mts +0 -43
  99. package/dist/opsx-types-Dnb06uff.d.mts +0 -402
  100. package/dist/task-progress-C1TGMbIR.d.mts +0 -24
  101. package/dist/task-progress-DhHYHnTv.mjs +0 -70
  102. /package/dist/{local-download-profiles-kpNEcdF_.mjs → local-download-profiles-odzOdf96.mjs} +0 -0
  103. /package/dist/{markdown-facts-BBCTe_qq.mjs → markdown-facts-BUqLvFRf.mjs} +0 -0
  104. /package/dist/{markdown-facts-Dk7FKaaT.d.mts → markdown-facts-CCw3QdbM.d.mts} +0 -0
  105. /package/dist/{opsx-display-path-CUCOrHcM.mjs → opsx-display-path-D13XV20v.mjs} +0 -0
  106. /package/dist/{opsx-display-path-cIMKa1aw.d.mts → opsx-display-path-RXS5JTbV.d.mts} +0 -0
  107. /package/dist/{opsx-entity-c7m5CbgU.mjs → opsx-entity-Cn_Zu1J3.mjs} +0 -0
  108. /package/dist/{opsx-schema-detail-BH82X6aU.mjs → opsx-schema-detail-Beis4Ba2.mjs} +0 -0
  109. /package/dist/{sounds-CB3ubSnj.mjs → sounds-NXwveBqq.mjs} +0 -0
  110. /package/dist/{terminal-control-VpTuh17B.mjs → terminal-control-BSAlOTs8.mjs} +0 -0
  111. /package/dist/{terminal-invocation-C2MCNBhK.mjs → terminal-invocation-0p-j2eSP.mjs} +0 -0
  112. /package/dist/{terminal-theme-cevliJw2.mjs → terminal-theme-B8iRttTR.mjs} +0 -0
  113. /package/dist/{terminal-theme-hvQjTsNh.d.mts → terminal-theme-m3MSGJ7U.d.mts} +0 -0
  114. /package/dist/{translation-language-pair-DZ_WNp_M.mjs → translation-language-pair-Bbhk-LAC.mjs} +0 -0
  115. /package/dist/{translation-language-pair-DmaOfHqD.d.mts → translation-language-pair-C18GPATW.d.mts} +0 -0
  116. /package/dist/{translator-DbUT1Ayn.mjs → translator-Cjtv4tya.mjs} +0 -0
@@ -21,17 +21,17 @@ declare const ChangeFileSchema: z.ZodObject<{
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  path: string;
23
23
  type: "file" | "directory";
24
+ content?: string | undefined;
24
25
  mime?: string | undefined;
25
26
  size?: number | undefined;
26
- content?: string | undefined;
27
- previewKind?: "html" | "text" | "markdown" | "image" | "audio" | "video" | "pdf" | "none" | undefined;
27
+ previewKind?: "text" | "none" | "html" | "markdown" | "image" | "audio" | "video" | "pdf" | undefined;
28
28
  }, {
29
29
  path: string;
30
30
  type: "file" | "directory";
31
+ content?: string | undefined;
31
32
  mime?: string | undefined;
32
33
  size?: number | undefined;
33
- content?: string | undefined;
34
- previewKind?: "html" | "text" | "markdown" | "image" | "audio" | "video" | "pdf" | "none" | undefined;
34
+ previewKind?: "text" | "none" | "html" | "markdown" | "image" | "audio" | "video" | "pdf" | undefined;
35
35
  }>;
36
36
  type ChangeFile = z.infer<typeof ChangeFileSchema>;
37
37
  declare const ScenarioStepKeywordSchema: z.ZodEnum<["GIVEN", "WHEN", "THEN", "AND", "BUT"]>;
@@ -110,9 +110,9 @@ declare const RequirementSchema: z.ZodObject<{
110
110
  }[] | undefined;
111
111
  }>, "many">;
112
112
  }, "strip", z.ZodTypeAny, {
113
- title: string;
114
113
  id: string;
115
114
  text: string;
115
+ title: string;
116
116
  bodyMarkdown: string;
117
117
  scenarios: {
118
118
  title: string;
@@ -125,9 +125,9 @@ declare const RequirementSchema: z.ZodObject<{
125
125
  }[] | undefined;
126
126
  }[];
127
127
  }, {
128
- title: string;
129
128
  id: string;
130
129
  text: string;
130
+ title: string;
131
131
  bodyMarkdown: string;
132
132
  scenarios: {
133
133
  title: string;
@@ -207,9 +207,9 @@ declare const SpecSchema: z.ZodObject<{
207
207
  }[] | undefined;
208
208
  }>, "many">;
209
209
  }, "strip", z.ZodTypeAny, {
210
- title: string;
211
210
  id: string;
212
211
  text: string;
212
+ title: string;
213
213
  bodyMarkdown: string;
214
214
  scenarios: {
215
215
  title: string;
@@ -222,9 +222,9 @@ declare const SpecSchema: z.ZodObject<{
222
222
  }[] | undefined;
223
223
  }[];
224
224
  }, {
225
- title: string;
226
225
  id: string;
227
226
  text: string;
227
+ title: string;
228
228
  bodyMarkdown: string;
229
229
  scenarios: {
230
230
  title: string;
@@ -252,13 +252,11 @@ declare const SpecSchema: z.ZodObject<{
252
252
  sourcePath?: string | undefined;
253
253
  }>>;
254
254
  }, "strip", z.ZodTypeAny, {
255
- id: string;
256
255
  name: string;
257
- overview: string;
258
256
  requirements: {
259
- title: string;
260
257
  id: string;
261
258
  text: string;
259
+ title: string;
262
260
  bodyMarkdown: string;
263
261
  scenarios: {
264
262
  title: string;
@@ -271,19 +269,19 @@ declare const SpecSchema: z.ZodObject<{
271
269
  }[] | undefined;
272
270
  }[];
273
271
  }[];
272
+ id: string;
273
+ overview: string;
274
274
  metadata?: {
275
275
  version: string;
276
276
  format: "openspec";
277
277
  sourcePath?: string | undefined;
278
278
  } | undefined;
279
279
  }, {
280
- id: string;
281
280
  name: string;
282
- overview: string;
283
281
  requirements: {
284
- title: string;
285
282
  id: string;
286
283
  text: string;
284
+ title: string;
287
285
  bodyMarkdown: string;
288
286
  scenarios: {
289
287
  title: string;
@@ -296,6 +294,8 @@ declare const SpecSchema: z.ZodObject<{
296
294
  }[] | undefined;
297
295
  }[];
298
296
  }[];
297
+ id: string;
298
+ overview: string;
299
299
  metadata?: {
300
300
  version?: string | undefined;
301
301
  format?: "openspec" | undefined;
@@ -370,9 +370,9 @@ declare const DeltaSchema: z.ZodObject<{
370
370
  }[] | undefined;
371
371
  }>, "many">;
372
372
  }, "strip", z.ZodTypeAny, {
373
- title: string;
374
373
  id: string;
375
374
  text: string;
375
+ title: string;
376
376
  bodyMarkdown: string;
377
377
  scenarios: {
378
378
  title: string;
@@ -385,9 +385,9 @@ declare const DeltaSchema: z.ZodObject<{
385
385
  }[] | undefined;
386
386
  }[];
387
387
  }, {
388
- title: string;
389
388
  id: string;
390
389
  text: string;
390
+ title: string;
391
391
  bodyMarkdown: string;
392
392
  scenarios: {
393
393
  title: string;
@@ -455,9 +455,9 @@ declare const DeltaSchema: z.ZodObject<{
455
455
  }[] | undefined;
456
456
  }>, "many">;
457
457
  }, "strip", z.ZodTypeAny, {
458
- title: string;
459
458
  id: string;
460
459
  text: string;
460
+ title: string;
461
461
  bodyMarkdown: string;
462
462
  scenarios: {
463
463
  title: string;
@@ -470,9 +470,9 @@ declare const DeltaSchema: z.ZodObject<{
470
470
  }[] | undefined;
471
471
  }[];
472
472
  }, {
473
- title: string;
474
473
  id: string;
475
474
  text: string;
475
+ title: string;
476
476
  bodyMarkdown: string;
477
477
  scenarios: {
478
478
  title: string;
@@ -501,9 +501,9 @@ declare const DeltaSchema: z.ZodObject<{
501
501
  spec: string;
502
502
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
503
503
  requirements?: {
504
- title: string;
505
504
  id: string;
506
505
  text: string;
506
+ title: string;
507
507
  bodyMarkdown: string;
508
508
  scenarios: {
509
509
  title: string;
@@ -517,9 +517,9 @@ declare const DeltaSchema: z.ZodObject<{
517
517
  }[];
518
518
  }[] | undefined;
519
519
  requirement?: {
520
- title: string;
521
520
  id: string;
522
521
  text: string;
522
+ title: string;
523
523
  bodyMarkdown: string;
524
524
  scenarios: {
525
525
  title: string;
@@ -541,9 +541,9 @@ declare const DeltaSchema: z.ZodObject<{
541
541
  spec: string;
542
542
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
543
543
  requirements?: {
544
- title: string;
545
544
  id: string;
546
545
  text: string;
546
+ title: string;
547
547
  bodyMarkdown: string;
548
548
  scenarios: {
549
549
  title: string;
@@ -557,9 +557,9 @@ declare const DeltaSchema: z.ZodObject<{
557
557
  }[];
558
558
  }[] | undefined;
559
559
  requirement?: {
560
- title: string;
561
560
  id: string;
562
561
  text: string;
562
+ title: string;
563
563
  bodyMarkdown: string;
564
564
  scenarios: {
565
565
  title: string;
@@ -604,6 +604,159 @@ declare const TaskSchema: z.ZodObject<{
604
604
  section?: string | undefined;
605
605
  }>;
606
606
  type Task = z.infer<typeof TaskSchema>;
607
+ declare const TrackedTaskProgressSchema: z.ZodObject<{
608
+ tasks: z.ZodArray<z.ZodObject<{
609
+ /** Unique identifier (e.g., "task-1") */
610
+ id: z.ZodString;
611
+ /** Task description text */
612
+ text: z.ZodString;
613
+ /** Whether the task is completed */
614
+ completed: z.ZodBoolean;
615
+ /** Optional section heading the task belongs to */
616
+ section: z.ZodOptional<z.ZodString>;
617
+ } & {
618
+ location: z.ZodObject<{
619
+ filePath: z.ZodString;
620
+ taskIndex: z.ZodNumber;
621
+ }, "strip", z.ZodTypeAny, {
622
+ filePath: string;
623
+ taskIndex: number;
624
+ }, {
625
+ filePath: string;
626
+ taskIndex: number;
627
+ }>;
628
+ }, "strip", z.ZodTypeAny, {
629
+ id: string;
630
+ text: string;
631
+ completed: boolean;
632
+ location: {
633
+ filePath: string;
634
+ taskIndex: number;
635
+ };
636
+ section?: string | undefined;
637
+ }, {
638
+ id: string;
639
+ text: string;
640
+ completed: boolean;
641
+ location: {
642
+ filePath: string;
643
+ taskIndex: number;
644
+ };
645
+ section?: string | undefined;
646
+ }>, "many">;
647
+ total: z.ZodNumber;
648
+ completed: z.ZodNumber;
649
+ remaining: z.ZodNumber;
650
+ phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
651
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
652
+ kind: z.ZodLiteral<"artifact">;
653
+ artifactId: z.ZodString;
654
+ outputPath: z.ZodString;
655
+ filePaths: z.ZodArray<z.ZodString, "many">;
656
+ }, "strip", z.ZodTypeAny, {
657
+ kind: "artifact";
658
+ artifactId: string;
659
+ outputPath: string;
660
+ filePaths: string[];
661
+ }, {
662
+ kind: "artifact";
663
+ artifactId: string;
664
+ outputPath: string;
665
+ filePaths: string[];
666
+ }>, z.ZodObject<{
667
+ kind: z.ZodLiteral<"top-level-fallback">;
668
+ artifactId: z.ZodNull;
669
+ outputPath: z.ZodLiteral<"tasks.md">;
670
+ filePaths: z.ZodTuple<[z.ZodLiteral<"tasks.md">], null>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ kind: "top-level-fallback";
673
+ artifactId: null;
674
+ outputPath: "tasks.md";
675
+ filePaths: ["tasks.md"];
676
+ }, {
677
+ kind: "top-level-fallback";
678
+ artifactId: null;
679
+ outputPath: "tasks.md";
680
+ filePaths: ["tasks.md"];
681
+ }>, z.ZodObject<{
682
+ kind: z.ZodLiteral<"none">;
683
+ artifactId: z.ZodNull;
684
+ outputPath: z.ZodNull;
685
+ filePaths: z.ZodTuple<[], null>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ kind: "none";
688
+ artifactId: null;
689
+ outputPath: null;
690
+ filePaths: [];
691
+ }, {
692
+ kind: "none";
693
+ artifactId: null;
694
+ outputPath: null;
695
+ filePaths: [];
696
+ }>]>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ tasks: {
699
+ id: string;
700
+ text: string;
701
+ completed: boolean;
702
+ location: {
703
+ filePath: string;
704
+ taskIndex: number;
705
+ };
706
+ section?: string | undefined;
707
+ }[];
708
+ completed: number;
709
+ total: number;
710
+ remaining: number;
711
+ phase: "no-tasks" | "in-progress" | "complete";
712
+ source: {
713
+ kind: "artifact";
714
+ artifactId: string;
715
+ outputPath: string;
716
+ filePaths: string[];
717
+ } | {
718
+ kind: "top-level-fallback";
719
+ artifactId: null;
720
+ outputPath: "tasks.md";
721
+ filePaths: ["tasks.md"];
722
+ } | {
723
+ kind: "none";
724
+ artifactId: null;
725
+ outputPath: null;
726
+ filePaths: [];
727
+ };
728
+ }, {
729
+ tasks: {
730
+ id: string;
731
+ text: string;
732
+ completed: boolean;
733
+ location: {
734
+ filePath: string;
735
+ taskIndex: number;
736
+ };
737
+ section?: string | undefined;
738
+ }[];
739
+ completed: number;
740
+ total: number;
741
+ remaining: number;
742
+ phase: "no-tasks" | "in-progress" | "complete";
743
+ source: {
744
+ kind: "artifact";
745
+ artifactId: string;
746
+ outputPath: string;
747
+ filePaths: string[];
748
+ } | {
749
+ kind: "top-level-fallback";
750
+ artifactId: null;
751
+ outputPath: "tasks.md";
752
+ filePaths: ["tasks.md"];
753
+ } | {
754
+ kind: "none";
755
+ artifactId: null;
756
+ outputPath: null;
757
+ filePaths: [];
758
+ };
759
+ }>;
607
760
  /**
608
761
  * A delta spec file from changes/{id}/specs/{specId}/spec.md
609
762
  * Contains the proposed changes to a spec
@@ -614,11 +767,11 @@ declare const DeltaSpecSchema: z.ZodObject<{
614
767
  /** Raw markdown content of the delta spec */
615
768
  content: z.ZodString;
616
769
  }, "strip", z.ZodTypeAny, {
617
- content: string;
618
770
  specId: string;
619
- }, {
620
771
  content: string;
772
+ }, {
621
773
  specId: string;
774
+ content: string;
622
775
  }>;
623
776
  type DeltaSpec = z.infer<typeof DeltaSpecSchema>;
624
777
  /**
@@ -700,9 +853,9 @@ declare const ChangeSchema: z.ZodObject<{
700
853
  }[] | undefined;
701
854
  }>, "many">;
702
855
  }, "strip", z.ZodTypeAny, {
703
- title: string;
704
856
  id: string;
705
857
  text: string;
858
+ title: string;
706
859
  bodyMarkdown: string;
707
860
  scenarios: {
708
861
  title: string;
@@ -715,9 +868,9 @@ declare const ChangeSchema: z.ZodObject<{
715
868
  }[] | undefined;
716
869
  }[];
717
870
  }, {
718
- title: string;
719
871
  id: string;
720
872
  text: string;
873
+ title: string;
721
874
  bodyMarkdown: string;
722
875
  scenarios: {
723
876
  title: string;
@@ -785,9 +938,9 @@ declare const ChangeSchema: z.ZodObject<{
785
938
  }[] | undefined;
786
939
  }>, "many">;
787
940
  }, "strip", z.ZodTypeAny, {
788
- title: string;
789
941
  id: string;
790
942
  text: string;
943
+ title: string;
791
944
  bodyMarkdown: string;
792
945
  scenarios: {
793
946
  title: string;
@@ -800,9 +953,9 @@ declare const ChangeSchema: z.ZodObject<{
800
953
  }[] | undefined;
801
954
  }[];
802
955
  }, {
803
- title: string;
804
956
  id: string;
805
957
  text: string;
958
+ title: string;
806
959
  bodyMarkdown: string;
807
960
  scenarios: {
808
961
  title: string;
@@ -831,9 +984,9 @@ declare const ChangeSchema: z.ZodObject<{
831
984
  spec: string;
832
985
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
833
986
  requirements?: {
834
- title: string;
835
987
  id: string;
836
988
  text: string;
989
+ title: string;
837
990
  bodyMarkdown: string;
838
991
  scenarios: {
839
992
  title: string;
@@ -847,9 +1000,9 @@ declare const ChangeSchema: z.ZodObject<{
847
1000
  }[];
848
1001
  }[] | undefined;
849
1002
  requirement?: {
850
- title: string;
851
1003
  id: string;
852
1004
  text: string;
1005
+ title: string;
853
1006
  bodyMarkdown: string;
854
1007
  scenarios: {
855
1008
  title: string;
@@ -871,9 +1024,9 @@ declare const ChangeSchema: z.ZodObject<{
871
1024
  spec: string;
872
1025
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
873
1026
  requirements?: {
874
- title: string;
875
1027
  id: string;
876
1028
  text: string;
1029
+ title: string;
877
1030
  bodyMarkdown: string;
878
1031
  scenarios: {
879
1032
  title: string;
@@ -887,9 +1040,9 @@ declare const ChangeSchema: z.ZodObject<{
887
1040
  }[];
888
1041
  }[] | undefined;
889
1042
  requirement?: {
890
- title: string;
891
1043
  id: string;
892
1044
  text: string;
1045
+ title: string;
893
1046
  bodyMarkdown: string;
894
1047
  scenarios: {
895
1048
  title: string;
@@ -907,37 +1060,250 @@ declare const ChangeSchema: z.ZodObject<{
907
1060
  to: string;
908
1061
  } | undefined;
909
1062
  }>, "many">;
910
- /** Trackable tasks from tasks.md */
911
- tasks: z.ZodArray<z.ZodObject<{
912
- /** Unique identifier (e.g., "task-1") */
913
- id: z.ZodString;
914
- /** Task description text */
915
- text: z.ZodString;
916
- /** Whether the task is completed */
917
- completed: z.ZodBoolean;
918
- /** Optional section heading the task belongs to */
919
- section: z.ZodOptional<z.ZodString>;
1063
+ /** Formal tasks selected through the OpenSpec tracked artifact contract. */
1064
+ trackedTaskProgress: z.ZodObject<{
1065
+ tasks: z.ZodArray<z.ZodObject<{
1066
+ /** Unique identifier (e.g., "task-1") */
1067
+ id: z.ZodString;
1068
+ /** Task description text */
1069
+ text: z.ZodString;
1070
+ /** Whether the task is completed */
1071
+ completed: z.ZodBoolean;
1072
+ /** Optional section heading the task belongs to */
1073
+ section: z.ZodOptional<z.ZodString>;
1074
+ } & {
1075
+ location: z.ZodObject<{
1076
+ filePath: z.ZodString;
1077
+ taskIndex: z.ZodNumber;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ filePath: string;
1080
+ taskIndex: number;
1081
+ }, {
1082
+ filePath: string;
1083
+ taskIndex: number;
1084
+ }>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ id: string;
1087
+ text: string;
1088
+ completed: boolean;
1089
+ location: {
1090
+ filePath: string;
1091
+ taskIndex: number;
1092
+ };
1093
+ section?: string | undefined;
1094
+ }, {
1095
+ id: string;
1096
+ text: string;
1097
+ completed: boolean;
1098
+ location: {
1099
+ filePath: string;
1100
+ taskIndex: number;
1101
+ };
1102
+ section?: string | undefined;
1103
+ }>, "many">;
1104
+ total: z.ZodNumber;
1105
+ completed: z.ZodNumber;
1106
+ remaining: z.ZodNumber;
1107
+ phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
1108
+ source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1109
+ kind: z.ZodLiteral<"artifact">;
1110
+ artifactId: z.ZodString;
1111
+ outputPath: z.ZodString;
1112
+ filePaths: z.ZodArray<z.ZodString, "many">;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ kind: "artifact";
1115
+ artifactId: string;
1116
+ outputPath: string;
1117
+ filePaths: string[];
1118
+ }, {
1119
+ kind: "artifact";
1120
+ artifactId: string;
1121
+ outputPath: string;
1122
+ filePaths: string[];
1123
+ }>, z.ZodObject<{
1124
+ kind: z.ZodLiteral<"top-level-fallback">;
1125
+ artifactId: z.ZodNull;
1126
+ outputPath: z.ZodLiteral<"tasks.md">;
1127
+ filePaths: z.ZodTuple<[z.ZodLiteral<"tasks.md">], null>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ kind: "top-level-fallback";
1130
+ artifactId: null;
1131
+ outputPath: "tasks.md";
1132
+ filePaths: ["tasks.md"];
1133
+ }, {
1134
+ kind: "top-level-fallback";
1135
+ artifactId: null;
1136
+ outputPath: "tasks.md";
1137
+ filePaths: ["tasks.md"];
1138
+ }>, z.ZodObject<{
1139
+ kind: z.ZodLiteral<"none">;
1140
+ artifactId: z.ZodNull;
1141
+ outputPath: z.ZodNull;
1142
+ filePaths: z.ZodTuple<[], null>;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ kind: "none";
1145
+ artifactId: null;
1146
+ outputPath: null;
1147
+ filePaths: [];
1148
+ }, {
1149
+ kind: "none";
1150
+ artifactId: null;
1151
+ outputPath: null;
1152
+ filePaths: [];
1153
+ }>]>;
920
1154
  }, "strip", z.ZodTypeAny, {
921
- id: string;
922
- text: string;
923
- completed: boolean;
924
- section?: string | undefined;
1155
+ tasks: {
1156
+ id: string;
1157
+ text: string;
1158
+ completed: boolean;
1159
+ location: {
1160
+ filePath: string;
1161
+ taskIndex: number;
1162
+ };
1163
+ section?: string | undefined;
1164
+ }[];
1165
+ completed: number;
1166
+ total: number;
1167
+ remaining: number;
1168
+ phase: "no-tasks" | "in-progress" | "complete";
1169
+ source: {
1170
+ kind: "artifact";
1171
+ artifactId: string;
1172
+ outputPath: string;
1173
+ filePaths: string[];
1174
+ } | {
1175
+ kind: "top-level-fallback";
1176
+ artifactId: null;
1177
+ outputPath: "tasks.md";
1178
+ filePaths: ["tasks.md"];
1179
+ } | {
1180
+ kind: "none";
1181
+ artifactId: null;
1182
+ outputPath: null;
1183
+ filePaths: [];
1184
+ };
925
1185
  }, {
926
- id: string;
927
- text: string;
928
- completed: boolean;
929
- section?: string | undefined;
930
- }>, "many">;
931
- /** Task completion progress */
932
- progress: z.ZodObject<{
1186
+ tasks: {
1187
+ id: string;
1188
+ text: string;
1189
+ completed: boolean;
1190
+ location: {
1191
+ filePath: string;
1192
+ taskIndex: number;
1193
+ };
1194
+ section?: string | undefined;
1195
+ }[];
1196
+ completed: number;
1197
+ total: number;
1198
+ remaining: number;
1199
+ phase: "no-tasks" | "in-progress" | "complete";
1200
+ source: {
1201
+ kind: "artifact";
1202
+ artifactId: string;
1203
+ outputPath: string;
1204
+ filePaths: string[];
1205
+ } | {
1206
+ kind: "top-level-fallback";
1207
+ artifactId: null;
1208
+ outputPath: "tasks.md";
1209
+ filePaths: ["tasks.md"];
1210
+ } | {
1211
+ kind: "none";
1212
+ artifactId: null;
1213
+ outputPath: null;
1214
+ filePaths: [];
1215
+ };
1216
+ }>;
1217
+ /** Secondary checkbox analytics across schema Markdown documents. */
1218
+ documentChecklistSummary: z.ZodObject<{
1219
+ groups: z.ZodArray<z.ZodObject<{
1220
+ artifactIds: z.ZodArray<z.ZodString, "many">;
1221
+ filePath: z.ZodString;
1222
+ tasks: z.ZodArray<z.ZodObject<{
1223
+ /** Unique identifier (e.g., "task-1") */
1224
+ id: z.ZodString;
1225
+ /** Task description text */
1226
+ text: z.ZodString;
1227
+ /** Whether the task is completed */
1228
+ completed: z.ZodBoolean;
1229
+ /** Optional section heading the task belongs to */
1230
+ section: z.ZodOptional<z.ZodString>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ id: string;
1233
+ text: string;
1234
+ completed: boolean;
1235
+ section?: string | undefined;
1236
+ }, {
1237
+ id: string;
1238
+ text: string;
1239
+ completed: boolean;
1240
+ section?: string | undefined;
1241
+ }>, "many">;
1242
+ total: z.ZodNumber;
1243
+ completed: z.ZodNumber;
1244
+ remaining: z.ZodNumber;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ tasks: {
1247
+ id: string;
1248
+ text: string;
1249
+ completed: boolean;
1250
+ section?: string | undefined;
1251
+ }[];
1252
+ completed: number;
1253
+ filePath: string;
1254
+ total: number;
1255
+ remaining: number;
1256
+ artifactIds: string[];
1257
+ }, {
1258
+ tasks: {
1259
+ id: string;
1260
+ text: string;
1261
+ completed: boolean;
1262
+ section?: string | undefined;
1263
+ }[];
1264
+ completed: number;
1265
+ filePath: string;
1266
+ total: number;
1267
+ remaining: number;
1268
+ artifactIds: string[];
1269
+ }>, "many">;
933
1270
  total: z.ZodNumber;
934
1271
  completed: z.ZodNumber;
1272
+ remaining: z.ZodNumber;
935
1273
  }, "strip", z.ZodTypeAny, {
936
1274
  completed: number;
937
1275
  total: number;
1276
+ remaining: number;
1277
+ groups: {
1278
+ tasks: {
1279
+ id: string;
1280
+ text: string;
1281
+ completed: boolean;
1282
+ section?: string | undefined;
1283
+ }[];
1284
+ completed: number;
1285
+ filePath: string;
1286
+ total: number;
1287
+ remaining: number;
1288
+ artifactIds: string[];
1289
+ }[];
938
1290
  }, {
939
1291
  completed: number;
940
1292
  total: number;
1293
+ remaining: number;
1294
+ groups: {
1295
+ tasks: {
1296
+ id: string;
1297
+ text: string;
1298
+ completed: boolean;
1299
+ section?: string | undefined;
1300
+ }[];
1301
+ completed: number;
1302
+ filePath: string;
1303
+ total: number;
1304
+ remaining: number;
1305
+ artifactIds: string[];
1306
+ }[];
941
1307
  }>;
942
1308
  /** Optional design.md content */
943
1309
  design: z.ZodOptional<z.ZodString>;
@@ -948,11 +1314,11 @@ declare const ChangeSchema: z.ZodObject<{
948
1314
  /** Raw markdown content of the delta spec */
949
1315
  content: z.ZodString;
950
1316
  }, "strip", z.ZodTypeAny, {
951
- content: string;
952
1317
  specId: string;
953
- }, {
954
1318
  content: string;
1319
+ }, {
955
1320
  specId: string;
1321
+ content: string;
956
1322
  }>, "many">>;
957
1323
  /** Optional metadata */
958
1324
  metadata: z.ZodOptional<z.ZodObject<{
@@ -966,11 +1332,39 @@ declare const ChangeSchema: z.ZodObject<{
966
1332
  format?: "openspec-change" | undefined;
967
1333
  }>>;
968
1334
  }, "strip", z.ZodTypeAny, {
969
- id: string;
970
1335
  name: string;
971
- progress: {
1336
+ id: string;
1337
+ trackedTaskProgress: {
1338
+ tasks: {
1339
+ id: string;
1340
+ text: string;
1341
+ completed: boolean;
1342
+ location: {
1343
+ filePath: string;
1344
+ taskIndex: number;
1345
+ };
1346
+ section?: string | undefined;
1347
+ }[];
972
1348
  completed: number;
973
1349
  total: number;
1350
+ remaining: number;
1351
+ phase: "no-tasks" | "in-progress" | "complete";
1352
+ source: {
1353
+ kind: "artifact";
1354
+ artifactId: string;
1355
+ outputPath: string;
1356
+ filePaths: string[];
1357
+ } | {
1358
+ kind: "top-level-fallback";
1359
+ artifactId: null;
1360
+ outputPath: "tasks.md";
1361
+ filePaths: ["tasks.md"];
1362
+ } | {
1363
+ kind: "none";
1364
+ artifactId: null;
1365
+ outputPath: null;
1366
+ filePaths: [];
1367
+ };
974
1368
  };
975
1369
  why: string;
976
1370
  whatChanges: string;
@@ -979,9 +1373,9 @@ declare const ChangeSchema: z.ZodObject<{
979
1373
  spec: string;
980
1374
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
981
1375
  requirements?: {
982
- title: string;
983
1376
  id: string;
984
1377
  text: string;
1378
+ title: string;
985
1379
  bodyMarkdown: string;
986
1380
  scenarios: {
987
1381
  title: string;
@@ -995,9 +1389,9 @@ declare const ChangeSchema: z.ZodObject<{
995
1389
  }[];
996
1390
  }[] | undefined;
997
1391
  requirement?: {
998
- title: string;
999
1392
  id: string;
1000
1393
  text: string;
1394
+ title: string;
1001
1395
  bodyMarkdown: string;
1002
1396
  scenarios: {
1003
1397
  title: string;
@@ -1015,27 +1409,67 @@ declare const ChangeSchema: z.ZodObject<{
1015
1409
  to: string;
1016
1410
  } | undefined;
1017
1411
  }[];
1018
- tasks: {
1019
- id: string;
1020
- text: string;
1021
- completed: boolean;
1022
- section?: string | undefined;
1023
- }[];
1412
+ documentChecklistSummary: {
1413
+ completed: number;
1414
+ total: number;
1415
+ remaining: number;
1416
+ groups: {
1417
+ tasks: {
1418
+ id: string;
1419
+ text: string;
1420
+ completed: boolean;
1421
+ section?: string | undefined;
1422
+ }[];
1423
+ completed: number;
1424
+ filePath: string;
1425
+ total: number;
1426
+ remaining: number;
1427
+ artifactIds: string[];
1428
+ }[];
1429
+ };
1024
1430
  metadata?: {
1025
1431
  version: string;
1026
1432
  format: "openspec-change";
1027
1433
  } | undefined;
1028
1434
  design?: string | undefined;
1029
1435
  deltaSpecs?: {
1030
- content: string;
1031
1436
  specId: string;
1437
+ content: string;
1032
1438
  }[] | undefined;
1033
1439
  }, {
1034
- id: string;
1035
1440
  name: string;
1036
- progress: {
1441
+ id: string;
1442
+ trackedTaskProgress: {
1443
+ tasks: {
1444
+ id: string;
1445
+ text: string;
1446
+ completed: boolean;
1447
+ location: {
1448
+ filePath: string;
1449
+ taskIndex: number;
1450
+ };
1451
+ section?: string | undefined;
1452
+ }[];
1037
1453
  completed: number;
1038
1454
  total: number;
1455
+ remaining: number;
1456
+ phase: "no-tasks" | "in-progress" | "complete";
1457
+ source: {
1458
+ kind: "artifact";
1459
+ artifactId: string;
1460
+ outputPath: string;
1461
+ filePaths: string[];
1462
+ } | {
1463
+ kind: "top-level-fallback";
1464
+ artifactId: null;
1465
+ outputPath: "tasks.md";
1466
+ filePaths: ["tasks.md"];
1467
+ } | {
1468
+ kind: "none";
1469
+ artifactId: null;
1470
+ outputPath: null;
1471
+ filePaths: [];
1472
+ };
1039
1473
  };
1040
1474
  why: string;
1041
1475
  whatChanges: string;
@@ -1044,9 +1478,9 @@ declare const ChangeSchema: z.ZodObject<{
1044
1478
  spec: string;
1045
1479
  operation: "ADDED" | "MODIFIED" | "REMOVED" | "RENAMED";
1046
1480
  requirements?: {
1047
- title: string;
1048
1481
  id: string;
1049
1482
  text: string;
1483
+ title: string;
1050
1484
  bodyMarkdown: string;
1051
1485
  scenarios: {
1052
1486
  title: string;
@@ -1060,9 +1494,9 @@ declare const ChangeSchema: z.ZodObject<{
1060
1494
  }[];
1061
1495
  }[] | undefined;
1062
1496
  requirement?: {
1063
- title: string;
1064
1497
  id: string;
1065
1498
  text: string;
1499
+ title: string;
1066
1500
  bodyMarkdown: string;
1067
1501
  scenarios: {
1068
1502
  title: string;
@@ -1080,22 +1514,34 @@ declare const ChangeSchema: z.ZodObject<{
1080
1514
  to: string;
1081
1515
  } | undefined;
1082
1516
  }[];
1083
- tasks: {
1084
- id: string;
1085
- text: string;
1086
- completed: boolean;
1087
- section?: string | undefined;
1088
- }[];
1517
+ documentChecklistSummary: {
1518
+ completed: number;
1519
+ total: number;
1520
+ remaining: number;
1521
+ groups: {
1522
+ tasks: {
1523
+ id: string;
1524
+ text: string;
1525
+ completed: boolean;
1526
+ section?: string | undefined;
1527
+ }[];
1528
+ completed: number;
1529
+ filePath: string;
1530
+ total: number;
1531
+ remaining: number;
1532
+ artifactIds: string[];
1533
+ }[];
1534
+ };
1089
1535
  metadata?: {
1090
1536
  version?: string | undefined;
1091
1537
  format?: "openspec-change" | undefined;
1092
1538
  } | undefined;
1093
1539
  design?: string | undefined;
1094
1540
  deltaSpecs?: {
1095
- content: string;
1096
1541
  specId: string;
1542
+ content: string;
1097
1543
  }[] | undefined;
1098
1544
  }>;
1099
1545
  type Change = z.infer<typeof ChangeSchema>;
1100
1546
  //#endregion
1101
- export { SpecSchema as _, Delta as a, DeltaSchema as c, Requirement as d, RequirementSchema as f, Spec as g, ScenarioStepSchema as h, ChangeSchema as i, DeltaSpec as l, ScenarioStepKeywordSchema as m, ChangeFile as n, DeltaOperation as o, ScenarioStep as p, ChangeFileSchema as r, DeltaOperationType as s, Change as t, DeltaSpecSchema as u, Task as v, TaskSchema as y };
1547
+ export { SpecSchema as _, Delta as a, TrackedTaskProgressSchema as b, DeltaSchema as c, Requirement as d, RequirementSchema as f, Spec as g, ScenarioStepSchema as h, ChangeSchema as i, DeltaSpec as l, ScenarioStepKeywordSchema as m, ChangeFile as n, DeltaOperation as o, ScenarioStep as p, ChangeFileSchema as r, DeltaOperationType as s, Change as t, DeltaSpecSchema as u, Task as v, TaskSchema as y };