@openspecui/core 4.1.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-CIPGsZD8.d.mts → document-translation-D50BnvVh.d.mts} +100 -100
  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-B30HrSO2.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-HYH-lklF.d.mts → notifications-CgJlLgLO.d.mts} +34 -8
  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 +22 -14
  42. package/dist/{openspec-projection-B8s-KWQ7.mjs → openspec-projection-DCgToo0Q.mjs} +2 -2
  43. package/dist/{openspec-projection-BphzrwYP.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-CFUCqev8.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-DXKXqMQa.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-CNKCVc7m.d.mts → schemas-DS-JqAJ2.d.mts} +498 -52
  64. package/dist/{sounds-J6z7o4mt.d.mts → sounds-qhRgCy0F.d.mts} +5 -5
  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-BeUXlQgj.d.mts → terminal-audio-tXDm_EDe.d.mts} +2 -2
  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-ClVh0HeM.d.mts → terminal-invocation-BOvxThym.d.mts} +203 -84
  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-D6t_LEVN.d.mts → translator-NKv1wo3o.d.mts} +208 -208
  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-2rgsQHsB.d.mts +0 -402
  100. package/dist/task-progress-BHn4bCoD.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"]>;
@@ -252,9 +252,7 @@ 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
257
  id: string;
260
258
  text: string;
@@ -271,15 +269,15 @@ 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
282
  id: string;
285
283
  text: 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;
@@ -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
  /**
@@ -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,12 +1332,40 @@ declare const ChangeSchema: z.ZodObject<{
966
1332
  format?: "openspec-change" | undefined;
967
1333
  }>>;
968
1334
  }, "strip", z.ZodTypeAny, {
1335
+ name: string;
969
1336
  id: string;
970
- progress: {
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
+ }[];
971
1348
  completed: number;
972
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
+ };
973
1368
  };
974
- name: string;
975
1369
  why: string;
976
1370
  whatChanges: string;
977
1371
  deltas: {
@@ -1015,28 +1409,68 @@ 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
  }, {
1440
+ name: string;
1034
1441
  id: string;
1035
- progress: {
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
+ }[];
1036
1453
  completed: number;
1037
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
+ };
1038
1473
  };
1039
- name: string;
1040
1474
  why: string;
1041
1475
  whatChanges: string;
1042
1476
  deltas: {
@@ -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 };