@openspecui/core 6.0.1 → 6.2.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 (120) hide show
  1. package/dist/app-daemon-control.d.mts +362 -0
  2. package/dist/app-daemon-control.mjs +81 -0
  3. package/dist/{cli-projection-vO3-FJg5.mjs → cli-projection-BHfqvlpA.mjs} +1 -1
  4. package/dist/{cli-projection-w3LzenG5.d.mts → cli-projection-CvRCkCyI.d.mts} +9 -9
  5. package/dist/cli-projection.d.mts +5 -5
  6. package/dist/cli-projection.mjs +2 -2
  7. package/dist/{command-result-CjnZNtGL.d.mts → command-result-DPdfvbPT.d.mts} +101 -90
  8. package/dist/{dashboard-summary-transport-CYBuU4iT.mjs → dashboard-summary-transport-BMtZ0q12.mjs} +2 -2
  9. package/dist/{dashboard-summary-transport-DAFz2ZQe.d.mts → dashboard-summary-transport-iutogi2N.d.mts} +4924 -3475
  10. package/dist/dashboard-summary-transport.d.mts +25 -24
  11. package/dist/dashboard-summary-transport.mjs +4 -4
  12. package/dist/{document-translation-CeJFGMoy.mjs → document-translation-CUkkxnYV.mjs} +1 -1
  13. package/dist/{document-translation-DyEj4JKj.d.mts → document-translation-DOcHp3o0.d.mts} +102 -102
  14. package/dist/document-translation.d.mts +1 -1
  15. package/dist/document-translation.mjs +2 -2
  16. package/dist/{hosted-app-Y7yqlPBG.mjs → hosted-app-C3gBSvov.mjs} +3 -2
  17. package/dist/hosted-app.d.mts +26 -25
  18. package/dist/hosted-app.mjs +8 -7
  19. package/dist/{hosted-contract-BuhF_tuQ.mjs → hosted-contract-CaN2aw54.mjs} +31 -7
  20. package/dist/hosted-contract.d.mts +26 -25
  21. package/dist/hosted-contract.mjs +7 -6
  22. package/dist/index.d.mts +26 -25
  23. package/dist/index.mjs +968 -105
  24. package/dist/{local-download-profiles-BokmRLew.d.mts → local-download-profiles-xAbDVjd6.d.mts} +1 -1
  25. package/dist/local-download-profiles.d.mts +2 -2
  26. package/dist/local-download-profiles.mjs +1 -1
  27. package/dist/markdown-facts.d.mts +1 -1
  28. package/dist/markdown-facts.mjs +1 -1
  29. package/dist/{markdown-reading-mG4OAbDO.mjs → markdown-reading-0L-mVBJp.mjs} +1 -1
  30. package/dist/{markdown-reading-LUdqfbxH.d.mts → markdown-reading-w686Obnl.d.mts} +1 -1
  31. package/dist/markdown-reading.d.mts +2 -2
  32. package/dist/markdown-reading.mjs +2 -2
  33. package/dist/{notifications-CgJlLgLO.d.mts → notifications-BP_02fdj.d.mts} +4 -4
  34. package/dist/{notifications-C2bxAzX_.mjs → notifications-E6_WBjQO.mjs} +2 -2
  35. package/dist/notifications.d.mts +2 -2
  36. package/dist/notifications.mjs +3 -3
  37. package/dist/{openspec-annotations-C58Aoi-V.d.mts → openspec-annotations-BXAqKLXc.d.mts} +2 -2
  38. package/dist/{openspec-annotations-DCfqBMal.mjs → openspec-annotations-DiHje5HD.mjs} +2 -2
  39. package/dist/openspec-annotations.d.mts +3 -3
  40. package/dist/openspec-annotations.mjs +3 -3
  41. package/dist/openspec-compat.d.mts +12 -10
  42. package/dist/openspec-compat.mjs +19 -23
  43. package/dist/{openspec-projection-DnB0EalA.d.mts → openspec-projection-CPKTjO43.d.mts} +3 -3
  44. package/dist/{openspec-projection-DCgToo0Q.mjs → openspec-projection-DvJnsxLZ.mjs} +2 -2
  45. package/dist/openspec-projection.d.mts +5 -5
  46. package/dist/openspec-projection.mjs +4 -4
  47. package/dist/opsx-display-path.d.mts +1 -1
  48. package/dist/opsx-display-path.mjs +1 -1
  49. package/dist/{opsx-entity-CQGXOj_a.d.mts → opsx-entity-BJz_BsKn.d.mts} +2 -2
  50. package/dist/opsx-entity.d.mts +7 -7
  51. package/dist/opsx-entity.mjs +1 -1
  52. package/dist/{opsx-schema-detail-DTWBhlbh.d.mts → opsx-schema-detail-tkv6htQB.d.mts} +2 -2
  53. package/dist/opsx-schema-detail.d.mts +8 -8
  54. package/dist/opsx-schema-detail.mjs +1 -1
  55. package/dist/{opsx-types-BKGpvDDe.d.mts → opsx-types-BNEqpP-B.d.mts} +213 -213
  56. package/dist/opsx-workflows.d.mts +1 -1
  57. package/dist/opsx-workflows.mjs +1 -1
  58. package/dist/{planning-cli-projection-DIRxeq2H.mjs → planning-cli-projection-DrkT18EI.mjs} +4 -4
  59. package/dist/planning-cli-projection.d.mts +25 -24
  60. package/dist/planning-cli-projection.mjs +7 -7
  61. package/dist/{schemas-C-BZiH0m.d.mts → schemas-D4afES_m.d.mts} +130 -130
  62. package/dist/{sounds-qhRgCy0F.d.mts → sounds-CsPiQKxX.d.mts} +4 -4
  63. package/dist/sounds.d.mts +1 -1
  64. package/dist/sounds.mjs +1 -1
  65. package/dist/{spec-catalog-ZGuiZ4CE.mjs → spec-catalog-Dv2qolxy.mjs} +3 -3
  66. package/dist/spec-catalog.d.mts +25 -24
  67. package/dist/spec-catalog.mjs +4 -4
  68. package/dist/store-content-projection-BPDCma8v.d.mts +463 -0
  69. package/dist/store-content-projection-CiMcGZnG.mjs +82 -0
  70. package/dist/store-content-projection.d.mts +2 -0
  71. package/dist/store-content-projection.mjs +4 -0
  72. package/dist/{store-mutation-protocol-CSwD-xPO.mjs → store-mutation-protocol-CLtYUSwC.mjs} +1 -1
  73. package/dist/{store-mutation-protocol-3TzQ6ete.d.mts → store-mutation-protocol-Ckcv2-zs.d.mts} +48 -48
  74. package/dist/store-mutation-protocol.d.mts +1 -1
  75. package/dist/store-mutation-protocol.mjs +2 -2
  76. package/dist/{store-types-QeY5nWlF.d.mts → store-types-DIws57FV.d.mts} +1 -1
  77. package/dist/store-types.d.mts +5 -5
  78. package/dist/store-types.mjs +1 -1
  79. package/dist/{task-progress-B_IWVXjA.mjs → task-progress-DpZak5xA.mjs} +1 -1
  80. package/dist/task-progress.d.mts +6 -6
  81. package/dist/task-progress.mjs +2 -2
  82. package/dist/{terminal-audio-tXDm_EDe.d.mts → terminal-audio-BXa1vpkF.d.mts} +1 -1
  83. package/dist/{terminal-audio-d6KItUeJ.mjs → terminal-audio-punFQHXI.mjs} +1 -1
  84. package/dist/terminal-audio.d.mts +2 -2
  85. package/dist/terminal-audio.mjs +2 -2
  86. package/dist/terminal-control.d.mts +2 -2
  87. package/dist/terminal-control.mjs +1 -1
  88. package/dist/{terminal-invocation-rKDNnsUS.d.mts → terminal-invocation-DFhNS_lc.d.mts} +94 -94
  89. package/dist/terminal-invocation.d.mts +1 -1
  90. package/dist/terminal-invocation.mjs +1 -1
  91. package/dist/terminal-theme.d.mts +1 -1
  92. package/dist/terminal-theme.mjs +1 -1
  93. package/dist/translation-language-pair.d.mts +1 -1
  94. package/dist/translation-language-pair.mjs +1 -1
  95. package/dist/{translator-BEiXnLjR.d.mts → translator-B9j5lGVS.d.mts} +154 -154
  96. package/dist/translator.d.mts +1 -1
  97. package/dist/translator.mjs +1 -1
  98. package/dist/workspace-directory-catalog.d.mts +172 -0
  99. package/dist/workspace-directory-catalog.mjs +111 -0
  100. package/package.json +28 -5
  101. /package/dist/{common-D8YUK9dA.mjs → common-BpgNUOOT.mjs} +0 -0
  102. /package/dist/{local-download-profiles-odzOdf96.mjs → local-download-profiles-DK4g6FRe.mjs} +0 -0
  103. /package/dist/{markdown-facts-CCw3QdbM.d.mts → markdown-facts-C9yWB2I9.d.mts} +0 -0
  104. /package/dist/{markdown-facts-BUqLvFRf.mjs → markdown-facts-Dve6IAJP.mjs} +0 -0
  105. /package/dist/{opsx-display-path-D13XV20v.mjs → opsx-display-path-DuPEvPV0.mjs} +0 -0
  106. /package/dist/{opsx-display-path-RXS5JTbV.d.mts → opsx-display-path-eWJ4ve-O.d.mts} +0 -0
  107. /package/dist/{opsx-entity-Cn_Zu1J3.mjs → opsx-entity-Br5S5N0o.mjs} +0 -0
  108. /package/dist/{opsx-schema-detail-Beis4Ba2.mjs → opsx-schema-detail-CckZIEVr.mjs} +0 -0
  109. /package/dist/{opsx-workflows-BvnJqjfL.d.mts → opsx-workflows-Bhh_bI-e.d.mts} +0 -0
  110. /package/dist/{opsx-workflows-Ccc6U7IR.mjs → opsx-workflows-GPZSe1C_.mjs} +0 -0
  111. /package/dist/{schemas-BFroDdOC.mjs → schemas-BrS9qSB3.mjs} +0 -0
  112. /package/dist/{sounds-NXwveBqq.mjs → sounds-na4c8j0c.mjs} +0 -0
  113. /package/dist/{store-types-DlX1REBg.mjs → store-types-Cs40yohL.mjs} +0 -0
  114. /package/dist/{terminal-control-BSAlOTs8.mjs → terminal-control-BvoxwQ6m.mjs} +0 -0
  115. /package/dist/{terminal-invocation-0p-j2eSP.mjs → terminal-invocation-BexVY5E2.mjs} +0 -0
  116. /package/dist/{terminal-theme-m3MSGJ7U.d.mts → terminal-theme-BzARb2Do.d.mts} +0 -0
  117. /package/dist/{terminal-theme-B8iRttTR.mjs → terminal-theme-DIhzj5Si.mjs} +0 -0
  118. /package/dist/{translation-language-pair-Bbhk-LAC.mjs → translation-language-pair-BV2cGjfv.mjs} +0 -0
  119. /package/dist/{translation-language-pair-C18GPATW.d.mts → translation-language-pair-DeAiww3_.d.mts} +0 -0
  120. /package/dist/{translator-Cjtv4tya.mjs → translator-DCCZeHt1.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { n as CliJsonValue } from "./command-result-CjnZNtGL.mjs";
2
- import { n as ChangeFile, v as Task } from "./schemas-C-BZiH0m.mjs";
1
+ import { n as CliJsonValue } from "./command-result-DPdfvbPT.mjs";
2
+ import { n as ChangeFile, v as Task } from "./schemas-D4afES_m.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/task-progress.d.ts
@@ -405,13 +405,13 @@ declare const ArtifactStatusSchema: z.ZodObject<{
405
405
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
406
406
  relativePath: z.ZodOptional<z.ZodString>;
407
407
  }, "strip", z.ZodTypeAny, {
408
- status: "ready" | "done" | "blocked";
408
+ status: "done" | "ready" | "blocked";
409
409
  id: string;
410
410
  outputPath: string;
411
411
  missingDeps?: string[] | undefined;
412
412
  relativePath?: string | undefined;
413
413
  }, {
414
- status: "ready" | "done" | "blocked";
414
+ status: "done" | "ready" | "blocked";
415
415
  id: string;
416
416
  outputPath: string;
417
417
  missingDeps?: string[] | undefined;
@@ -430,13 +430,13 @@ declare const ChangeStatusSchema: z.ZodObject<{
430
430
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
431
431
  relativePath: z.ZodOptional<z.ZodString>;
432
432
  }, "strip", z.ZodTypeAny, {
433
- status: "ready" | "done" | "blocked";
433
+ status: "done" | "ready" | "blocked";
434
434
  id: string;
435
435
  outputPath: string;
436
436
  missingDeps?: string[] | undefined;
437
437
  relativePath?: string | undefined;
438
438
  }, {
439
- status: "ready" | "done" | "blocked";
439
+ status: "done" | "ready" | "blocked";
440
440
  id: string;
441
441
  outputPath: string;
442
442
  missingDeps?: string[] | undefined;
@@ -677,6 +677,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
677
677
  command: z.ZodLiteral<"status">;
678
678
  }, z.ZodTypeAny, "passthrough">>;
679
679
  }, "strip", z.ZodTypeAny, {
680
+ kind: "cli";
680
681
  root: {
681
682
  path: string;
682
683
  source: "store" | "declared" | "nearest" | "implicit";
@@ -684,10 +685,9 @@ declare const ChangeStatusSchema: z.ZodObject<{
684
685
  } & {
685
686
  [k: string]: unknown;
686
687
  };
687
- kind: "cli";
688
688
  planningHome: {
689
- root: string;
690
689
  kind: "repo";
690
+ root: string;
691
691
  changesDir: string;
692
692
  defaultSchema: string;
693
693
  } & {
@@ -714,6 +714,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
714
714
  [k: string]: unknown;
715
715
  };
716
716
  evidence: {
717
+ command: "status";
717
718
  success: boolean;
718
719
  stdout: string;
719
720
  stderr: string;
@@ -726,20 +727,20 @@ declare const ChangeStatusSchema: z.ZodObject<{
726
727
  target: z.ZodOptional<z.ZodString>;
727
728
  fix: z.ZodOptional<z.ZodString>;
728
729
  }, z.ZodTypeAny, "passthrough">[];
729
- command: "status";
730
730
  selector: {
731
731
  store?: string | undefined;
732
732
  };
733
- contractError?: string | undefined;
734
733
  root?: z.objectOutputType<{
735
734
  path: z.ZodString;
736
735
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
737
736
  store_id: z.ZodOptional<z.ZodString>;
738
737
  }, z.ZodTypeAny, "passthrough"> | undefined;
738
+ contractError?: string | undefined;
739
739
  } & {
740
740
  [k: string]: unknown;
741
741
  };
742
742
  }, {
743
+ kind: "cli";
743
744
  root: {
744
745
  path: string;
745
746
  source: "store" | "declared" | "nearest" | "implicit";
@@ -747,10 +748,9 @@ declare const ChangeStatusSchema: z.ZodObject<{
747
748
  } & {
748
749
  [k: string]: unknown;
749
750
  };
750
- kind: "cli";
751
751
  planningHome: {
752
- root: string;
753
752
  kind: "repo";
753
+ root: string;
754
754
  changesDir: string;
755
755
  defaultSchema: string;
756
756
  } & {
@@ -777,6 +777,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
777
777
  [k: string]: unknown;
778
778
  };
779
779
  evidence: {
780
+ command: "status";
780
781
  success: boolean;
781
782
  stdout: string;
782
783
  stderr: string;
@@ -789,16 +790,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
789
790
  target: z.ZodOptional<z.ZodString>;
790
791
  fix: z.ZodOptional<z.ZodString>;
791
792
  }, z.ZodTypeAny, "passthrough">[];
792
- command: "status";
793
793
  selector: {
794
794
  store?: string | undefined;
795
795
  };
796
- contractError?: string | undefined;
797
796
  root?: z.objectInputType<{
798
797
  path: z.ZodString;
799
798
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
800
799
  store_id: z.ZodOptional<z.ZodString>;
801
800
  }, z.ZodTypeAny, "passthrough"> | undefined;
801
+ contractError?: string | undefined;
802
802
  } & {
803
803
  [k: string]: unknown;
804
804
  };
@@ -815,13 +815,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
815
815
  isComplete: boolean;
816
816
  applyRequires: string[];
817
817
  artifacts: {
818
- status: "ready" | "done" | "blocked";
818
+ status: "done" | "ready" | "blocked";
819
819
  id: string;
820
820
  outputPath: string;
821
821
  missingDeps?: string[] | undefined;
822
822
  relativePath?: string | undefined;
823
823
  }[];
824
824
  provenance: {
825
+ kind: "cli";
825
826
  root: {
826
827
  path: string;
827
828
  source: "store" | "declared" | "nearest" | "implicit";
@@ -829,10 +830,9 @@ declare const ChangeStatusSchema: z.ZodObject<{
829
830
  } & {
830
831
  [k: string]: unknown;
831
832
  };
832
- kind: "cli";
833
833
  planningHome: {
834
- root: string;
835
834
  kind: "repo";
835
+ root: string;
836
836
  changesDir: string;
837
837
  defaultSchema: string;
838
838
  } & {
@@ -859,6 +859,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
859
859
  [k: string]: unknown;
860
860
  };
861
861
  evidence: {
862
+ command: "status";
862
863
  success: boolean;
863
864
  stdout: string;
864
865
  stderr: string;
@@ -871,16 +872,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
871
872
  target: z.ZodOptional<z.ZodString>;
872
873
  fix: z.ZodOptional<z.ZodString>;
873
874
  }, z.ZodTypeAny, "passthrough">[];
874
- command: "status";
875
875
  selector: {
876
876
  store?: string | undefined;
877
877
  };
878
- contractError?: string | undefined;
879
878
  root?: z.objectOutputType<{
880
879
  path: z.ZodString;
881
880
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
882
881
  store_id: z.ZodOptional<z.ZodString>;
883
882
  }, z.ZodTypeAny, "passthrough"> | undefined;
883
+ contractError?: string | undefined;
884
884
  } & {
885
885
  [k: string]: unknown;
886
886
  };
@@ -893,13 +893,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
893
893
  isComplete: boolean;
894
894
  applyRequires: string[];
895
895
  artifacts: {
896
- status: "ready" | "done" | "blocked";
896
+ status: "done" | "ready" | "blocked";
897
897
  id: string;
898
898
  outputPath: string;
899
899
  missingDeps?: string[] | undefined;
900
900
  relativePath?: string | undefined;
901
901
  }[];
902
902
  provenance: {
903
+ kind: "cli";
903
904
  root: {
904
905
  path: string;
905
906
  source: "store" | "declared" | "nearest" | "implicit";
@@ -907,10 +908,9 @@ declare const ChangeStatusSchema: z.ZodObject<{
907
908
  } & {
908
909
  [k: string]: unknown;
909
910
  };
910
- kind: "cli";
911
911
  planningHome: {
912
- root: string;
913
912
  kind: "repo";
913
+ root: string;
914
914
  changesDir: string;
915
915
  defaultSchema: string;
916
916
  } & {
@@ -937,6 +937,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
937
937
  [k: string]: unknown;
938
938
  };
939
939
  evidence: {
940
+ command: "status";
940
941
  success: boolean;
941
942
  stdout: string;
942
943
  stderr: string;
@@ -949,16 +950,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
949
950
  target: z.ZodOptional<z.ZodString>;
950
951
  fix: z.ZodOptional<z.ZodString>;
951
952
  }, z.ZodTypeAny, "passthrough">[];
952
- command: "status";
953
953
  selector: {
954
954
  store?: string | undefined;
955
955
  };
956
- contractError?: string | undefined;
957
956
  root?: z.objectInputType<{
958
957
  path: z.ZodString;
959
958
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
960
959
  store_id: z.ZodOptional<z.ZodString>;
961
960
  }, z.ZodTypeAny, "passthrough"> | undefined;
961
+ contractError?: string | undefined;
962
962
  } & {
963
963
  [k: string]: unknown;
964
964
  };
@@ -975,13 +975,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
975
975
  }, "strip", z.ZodTypeAny, {
976
976
  path: string;
977
977
  id: string;
978
- description: string;
979
978
  done: boolean;
979
+ description: string;
980
980
  }, {
981
981
  path: string;
982
982
  id: string;
983
- description: string;
984
983
  done: boolean;
984
+ description: string;
985
985
  }>;
986
986
  type DependencyInfo = z.infer<typeof DependencyInfoSchema>;
987
987
  declare const ApplyTaskSchema: z.ZodObject<{
@@ -990,12 +990,12 @@ declare const ApplyTaskSchema: z.ZodObject<{
990
990
  done: z.ZodBoolean;
991
991
  }, "strip", z.ZodTypeAny, {
992
992
  id: string;
993
- description: string;
994
993
  done: boolean;
994
+ description: string;
995
995
  }, {
996
996
  id: string;
997
- description: string;
998
997
  done: boolean;
998
+ description: string;
999
999
  }>;
1000
1000
  type ApplyTask = z.infer<typeof ApplyTaskSchema>;
1001
1001
  declare const ApplyInstructionsContextFilesSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
@@ -1011,12 +1011,12 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1011
1011
  done: z.ZodBoolean;
1012
1012
  }, "strip", z.ZodTypeAny, {
1013
1013
  id: string;
1014
- description: string;
1015
1014
  done: boolean;
1015
+ description: string;
1016
1016
  }, {
1017
1017
  id: string;
1018
- description: string;
1019
1018
  done: boolean;
1019
+ description: string;
1020
1020
  }>, "many">;
1021
1021
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1022
1022
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1283,12 +1283,12 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1283
1283
  complete: z.ZodNumber;
1284
1284
  remaining: z.ZodNumber;
1285
1285
  }, "strip", z.ZodTypeAny, {
1286
- complete: number;
1287
1286
  total: number;
1287
+ complete: number;
1288
1288
  remaining: number;
1289
1289
  }, {
1290
- complete: number;
1291
1290
  total: number;
1291
+ complete: number;
1292
1292
  remaining: number;
1293
1293
  }>;
1294
1294
  tracked: z.ZodObject<{
@@ -1297,98 +1297,93 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1297
1297
  remaining: z.ZodNumber;
1298
1298
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
1299
1299
  }, "strip", z.ZodTypeAny, {
1300
- completed: number;
1301
1300
  total: number;
1302
1301
  remaining: number;
1303
- phase: "no-tasks" | "in-progress" | "complete";
1304
- }, {
1305
1302
  completed: number;
1303
+ phase: "complete" | "no-tasks" | "in-progress";
1304
+ }, {
1306
1305
  total: number;
1307
1306
  remaining: number;
1308
- phase: "no-tasks" | "in-progress" | "complete";
1307
+ completed: number;
1308
+ phase: "complete" | "no-tasks" | "in-progress";
1309
1309
  }>;
1310
1310
  }, "strip", z.ZodTypeAny, {
1311
- message: string;
1312
1311
  kind: "tracked-task-mismatch";
1312
+ message: string;
1313
1313
  apply: {
1314
- complete: number;
1315
1314
  total: number;
1315
+ complete: number;
1316
1316
  remaining: number;
1317
1317
  };
1318
1318
  tracked: {
1319
- completed: number;
1320
1319
  total: number;
1321
1320
  remaining: number;
1322
- phase: "no-tasks" | "in-progress" | "complete";
1321
+ completed: number;
1322
+ phase: "complete" | "no-tasks" | "in-progress";
1323
1323
  };
1324
1324
  }, {
1325
- message: string;
1326
1325
  kind: "tracked-task-mismatch";
1326
+ message: string;
1327
1327
  apply: {
1328
- complete: number;
1329
1328
  total: number;
1329
+ complete: number;
1330
1330
  remaining: number;
1331
1331
  };
1332
1332
  tracked: {
1333
- completed: number;
1334
1333
  total: number;
1335
1334
  remaining: number;
1336
- phase: "no-tasks" | "in-progress" | "complete";
1335
+ completed: number;
1336
+ phase: "complete" | "no-tasks" | "in-progress";
1337
1337
  };
1338
1338
  }>>;
1339
1339
  }, "strip", z.ZodTypeAny, {
1340
+ source: "openspec-instructions-apply";
1340
1341
  state: "ready" | "blocked" | "all_done";
1341
- complete: number;
1342
1342
  total: number;
1343
+ complete: number;
1343
1344
  remaining: number;
1344
- source: "openspec-instructions-apply";
1345
1345
  divergence: {
1346
- message: string;
1347
1346
  kind: "tracked-task-mismatch";
1347
+ message: string;
1348
1348
  apply: {
1349
- complete: number;
1350
1349
  total: number;
1350
+ complete: number;
1351
1351
  remaining: number;
1352
1352
  };
1353
1353
  tracked: {
1354
- completed: number;
1355
1354
  total: number;
1356
1355
  remaining: number;
1357
- phase: "no-tasks" | "in-progress" | "complete";
1356
+ completed: number;
1357
+ phase: "complete" | "no-tasks" | "in-progress";
1358
1358
  };
1359
1359
  } | null;
1360
1360
  }, {
1361
+ source: "openspec-instructions-apply";
1361
1362
  state: "ready" | "blocked" | "all_done";
1362
- complete: number;
1363
1363
  total: number;
1364
+ complete: number;
1364
1365
  remaining: number;
1365
- source: "openspec-instructions-apply";
1366
1366
  divergence: {
1367
- message: string;
1368
1367
  kind: "tracked-task-mismatch";
1368
+ message: string;
1369
1369
  apply: {
1370
- complete: number;
1371
1370
  total: number;
1371
+ complete: number;
1372
1372
  remaining: number;
1373
1373
  };
1374
1374
  tracked: {
1375
- completed: number;
1376
1375
  total: number;
1377
1376
  remaining: number;
1378
- phase: "no-tasks" | "in-progress" | "complete";
1377
+ completed: number;
1378
+ phase: "complete" | "no-tasks" | "in-progress";
1379
1379
  };
1380
1380
  } | null;
1381
1381
  }>;
1382
1382
  }, "strip", z.ZodTypeAny, {
1383
- state: "ready" | "blocked" | "all_done";
1384
- tasks: {
1385
- id: string;
1386
- description: string;
1387
- done: boolean;
1388
- }[];
1389
1383
  changeName: string;
1390
1384
  schemaName: string;
1391
1385
  evidence: {
1386
+ command: "instructions apply";
1392
1387
  success: boolean;
1393
1388
  stdout: string;
1394
1389
  stderr: string;
@@ -1401,41 +1396,46 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1401
1396
  target: z.ZodOptional<z.ZodString>;
1402
1397
  fix: z.ZodOptional<z.ZodString>;
1403
1398
  }, z.ZodTypeAny, "passthrough">[];
1404
- command: "instructions apply";
1405
1399
  selector: {
1406
1400
  store?: string | undefined;
1407
1401
  };
1408
- contractError?: string | undefined;
1409
1402
  root?: z.objectOutputType<{
1410
1403
  path: z.ZodString;
1411
1404
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1412
1405
  store_id: z.ZodOptional<z.ZodString>;
1413
1406
  }, z.ZodTypeAny, "passthrough"> | undefined;
1407
+ contractError?: string | undefined;
1414
1408
  } & {
1415
1409
  [k: string]: unknown;
1416
1410
  };
1417
1411
  changeDir: string;
1418
1412
  instruction: string;
1419
1413
  contextFiles: Record<string, string[]>;
1414
+ tasks: {
1415
+ id: string;
1416
+ done: boolean;
1417
+ description: string;
1418
+ }[];
1419
+ state: "ready" | "blocked" | "all_done";
1420
1420
  applyInstructionProgress: {
1421
+ source: "openspec-instructions-apply";
1421
1422
  state: "ready" | "blocked" | "all_done";
1422
- complete: number;
1423
1423
  total: number;
1424
+ complete: number;
1424
1425
  remaining: number;
1425
- source: "openspec-instructions-apply";
1426
1426
  divergence: {
1427
- message: string;
1428
1427
  kind: "tracked-task-mismatch";
1428
+ message: string;
1429
1429
  apply: {
1430
- complete: number;
1431
1430
  total: number;
1431
+ complete: number;
1432
1432
  remaining: number;
1433
1433
  };
1434
1434
  tracked: {
1435
- completed: number;
1436
1435
  total: number;
1437
1436
  remaining: number;
1438
- phase: "no-tasks" | "in-progress" | "complete";
1437
+ completed: number;
1438
+ phase: "complete" | "no-tasks" | "in-progress";
1439
1439
  };
1440
1440
  } | null;
1441
1441
  };
@@ -1476,15 +1476,10 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1476
1476
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1477
1477
  missingArtifacts?: string[] | undefined;
1478
1478
  }, {
1479
- state: "ready" | "blocked" | "all_done";
1480
- tasks: {
1481
- id: string;
1482
- description: string;
1483
- done: boolean;
1484
- }[];
1485
1479
  changeName: string;
1486
1480
  schemaName: string;
1487
1481
  evidence: {
1482
+ command: "instructions apply";
1488
1483
  success: boolean;
1489
1484
  stdout: string;
1490
1485
  stderr: string;
@@ -1497,41 +1492,46 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1497
1492
  target: z.ZodOptional<z.ZodString>;
1498
1493
  fix: z.ZodOptional<z.ZodString>;
1499
1494
  }, z.ZodTypeAny, "passthrough">[];
1500
- command: "instructions apply";
1501
1495
  selector: {
1502
1496
  store?: string | undefined;
1503
1497
  };
1504
- contractError?: string | undefined;
1505
1498
  root?: z.objectInputType<{
1506
1499
  path: z.ZodString;
1507
1500
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1508
1501
  store_id: z.ZodOptional<z.ZodString>;
1509
1502
  }, z.ZodTypeAny, "passthrough"> | undefined;
1503
+ contractError?: string | undefined;
1510
1504
  } & {
1511
1505
  [k: string]: unknown;
1512
1506
  };
1513
1507
  changeDir: string;
1514
1508
  instruction: string;
1515
1509
  contextFiles: Record<string, string | string[]>;
1510
+ tasks: {
1511
+ id: string;
1512
+ done: boolean;
1513
+ description: string;
1514
+ }[];
1515
+ state: "ready" | "blocked" | "all_done";
1516
1516
  applyInstructionProgress: {
1517
+ source: "openspec-instructions-apply";
1517
1518
  state: "ready" | "blocked" | "all_done";
1518
- complete: number;
1519
1519
  total: number;
1520
+ complete: number;
1520
1521
  remaining: number;
1521
- source: "openspec-instructions-apply";
1522
1522
  divergence: {
1523
- message: string;
1524
1523
  kind: "tracked-task-mismatch";
1524
+ message: string;
1525
1525
  apply: {
1526
- complete: number;
1527
1526
  total: number;
1527
+ complete: number;
1528
1528
  remaining: number;
1529
1529
  };
1530
1530
  tracked: {
1531
- completed: number;
1532
1531
  total: number;
1533
1532
  remaining: number;
1534
- phase: "no-tasks" | "in-progress" | "complete";
1533
+ completed: number;
1534
+ phase: "complete" | "no-tasks" | "in-progress";
1535
1535
  };
1536
1536
  } | null;
1537
1537
  };
@@ -1582,12 +1582,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1582
1582
  complete: z.ZodNumber;
1583
1583
  remaining: z.ZodNumber;
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
- complete: number;
1586
1585
  total: number;
1586
+ complete: number;
1587
1587
  remaining: number;
1588
1588
  }, {
1589
- complete: number;
1590
1589
  total: number;
1590
+ complete: number;
1591
1591
  remaining: number;
1592
1592
  }>;
1593
1593
  tasks: z.ZodArray<z.ZodObject<{
@@ -1596,12 +1596,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1596
1596
  done: z.ZodBoolean;
1597
1597
  }, "strip", z.ZodTypeAny, {
1598
1598
  id: string;
1599
- description: string;
1600
1599
  done: boolean;
1600
+ description: string;
1601
1601
  }, {
1602
1602
  id: string;
1603
- description: string;
1604
1603
  done: boolean;
1604
+ description: string;
1605
1605
  }>, "many">;
1606
1606
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1607
1607
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1855,20 +1855,10 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1855
1855
  command: z.ZodLiteral<"instructions apply">;
1856
1856
  }, z.ZodTypeAny, "passthrough">>;
1857
1857
  }, "strip", z.ZodTypeAny, {
1858
- state: "ready" | "blocked" | "all_done";
1859
- tasks: {
1860
- id: string;
1861
- description: string;
1862
- done: boolean;
1863
- }[];
1864
- progress: {
1865
- complete: number;
1866
- total: number;
1867
- remaining: number;
1868
- };
1869
1858
  changeName: string;
1870
1859
  schemaName: string;
1871
1860
  evidence: {
1861
+ command: "instructions apply";
1872
1862
  success: boolean;
1873
1863
  stdout: string;
1874
1864
  stderr: string;
@@ -1881,22 +1871,32 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1881
1871
  target: z.ZodOptional<z.ZodString>;
1882
1872
  fix: z.ZodOptional<z.ZodString>;
1883
1873
  }, z.ZodTypeAny, "passthrough">[];
1884
- command: "instructions apply";
1885
1874
  selector: {
1886
1875
  store?: string | undefined;
1887
1876
  };
1888
- contractError?: string | undefined;
1889
1877
  root?: z.objectOutputType<{
1890
1878
  path: z.ZodString;
1891
1879
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1892
1880
  store_id: z.ZodOptional<z.ZodString>;
1893
1881
  }, z.ZodTypeAny, "passthrough"> | undefined;
1882
+ contractError?: string | undefined;
1894
1883
  } & {
1895
1884
  [k: string]: unknown;
1896
1885
  };
1897
1886
  changeDir: string;
1898
1887
  instruction: string;
1899
1888
  contextFiles: Record<string, string[]>;
1889
+ tasks: {
1890
+ id: string;
1891
+ done: boolean;
1892
+ description: string;
1893
+ }[];
1894
+ state: "ready" | "blocked" | "all_done";
1895
+ progress: {
1896
+ total: number;
1897
+ complete: number;
1898
+ remaining: number;
1899
+ };
1900
1900
  references?: z.objectOutputType<{
1901
1901
  store_id: z.ZodString;
1902
1902
  root: z.ZodOptional<z.ZodString>;
@@ -1934,20 +1934,10 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1934
1934
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1935
1935
  missingArtifacts?: string[] | undefined;
1936
1936
  }, {
1937
- state: "ready" | "blocked" | "all_done";
1938
- tasks: {
1939
- id: string;
1940
- description: string;
1941
- done: boolean;
1942
- }[];
1943
- progress: {
1944
- complete: number;
1945
- total: number;
1946
- remaining: number;
1947
- };
1948
1937
  changeName: string;
1949
1938
  schemaName: string;
1950
1939
  evidence: {
1940
+ command: "instructions apply";
1951
1941
  success: boolean;
1952
1942
  stdout: string;
1953
1943
  stderr: string;
@@ -1960,22 +1950,32 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1960
1950
  target: z.ZodOptional<z.ZodString>;
1961
1951
  fix: z.ZodOptional<z.ZodString>;
1962
1952
  }, z.ZodTypeAny, "passthrough">[];
1963
- command: "instructions apply";
1964
1953
  selector: {
1965
1954
  store?: string | undefined;
1966
1955
  };
1967
- contractError?: string | undefined;
1968
1956
  root?: z.objectInputType<{
1969
1957
  path: z.ZodString;
1970
1958
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1971
1959
  store_id: z.ZodOptional<z.ZodString>;
1972
1960
  }, z.ZodTypeAny, "passthrough"> | undefined;
1961
+ contractError?: string | undefined;
1973
1962
  } & {
1974
1963
  [k: string]: unknown;
1975
1964
  };
1976
1965
  changeDir: string;
1977
1966
  instruction: string;
1978
1967
  contextFiles: Record<string, string | string[]>;
1968
+ tasks: {
1969
+ id: string;
1970
+ done: boolean;
1971
+ description: string;
1972
+ }[];
1973
+ state: "ready" | "blocked" | "all_done";
1974
+ progress: {
1975
+ total: number;
1976
+ complete: number;
1977
+ remaining: number;
1978
+ };
1979
1979
  references?: z.objectInputType<{
1980
1980
  store_id: z.ZodString;
1981
1981
  root: z.ZodOptional<z.ZodString>;
@@ -2014,15 +2014,10 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2014
2014
  missingArtifacts?: string[] | undefined;
2015
2015
  }>, {
2016
2016
  applyInstructionProgress: ApplyInstructionProgress;
2017
- state: "ready" | "blocked" | "all_done";
2018
- tasks: {
2019
- id: string;
2020
- description: string;
2021
- done: boolean;
2022
- }[];
2023
2017
  changeName: string;
2024
2018
  schemaName: string;
2025
2019
  evidence: {
2020
+ command: "instructions apply";
2026
2021
  success: boolean;
2027
2022
  stdout: string;
2028
2023
  stderr: string;
@@ -2035,22 +2030,27 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2035
2030
  target: z.ZodOptional<z.ZodString>;
2036
2031
  fix: z.ZodOptional<z.ZodString>;
2037
2032
  }, z.ZodTypeAny, "passthrough">[];
2038
- command: "instructions apply";
2039
2033
  selector: {
2040
2034
  store?: string | undefined;
2041
2035
  };
2042
- contractError?: string | undefined;
2043
2036
  root?: z.objectOutputType<{
2044
2037
  path: z.ZodString;
2045
2038
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2046
2039
  store_id: z.ZodOptional<z.ZodString>;
2047
2040
  }, z.ZodTypeAny, "passthrough"> | undefined;
2041
+ contractError?: string | undefined;
2048
2042
  } & {
2049
2043
  [k: string]: unknown;
2050
2044
  };
2051
2045
  changeDir: string;
2052
2046
  instruction: string;
2053
2047
  contextFiles: Record<string, string[]>;
2048
+ tasks: {
2049
+ id: string;
2050
+ done: boolean;
2051
+ description: string;
2052
+ }[];
2053
+ state: "ready" | "blocked" | "all_done";
2054
2054
  references?: z.objectOutputType<{
2055
2055
  store_id: z.ZodString;
2056
2056
  root: z.ZodOptional<z.ZodString>;
@@ -2088,20 +2088,10 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2088
2088
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2089
2089
  missingArtifacts?: string[] | undefined;
2090
2090
  }, {
2091
- state: "ready" | "blocked" | "all_done";
2092
- tasks: {
2093
- id: string;
2094
- description: string;
2095
- done: boolean;
2096
- }[];
2097
- progress: {
2098
- complete: number;
2099
- total: number;
2100
- remaining: number;
2101
- };
2102
2091
  changeName: string;
2103
2092
  schemaName: string;
2104
2093
  evidence: {
2094
+ command: "instructions apply";
2105
2095
  success: boolean;
2106
2096
  stdout: string;
2107
2097
  stderr: string;
@@ -2114,22 +2104,32 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2114
2104
  target: z.ZodOptional<z.ZodString>;
2115
2105
  fix: z.ZodOptional<z.ZodString>;
2116
2106
  }, z.ZodTypeAny, "passthrough">[];
2117
- command: "instructions apply";
2118
2107
  selector: {
2119
2108
  store?: string | undefined;
2120
2109
  };
2121
- contractError?: string | undefined;
2122
2110
  root?: z.objectInputType<{
2123
2111
  path: z.ZodString;
2124
2112
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2125
2113
  store_id: z.ZodOptional<z.ZodString>;
2126
2114
  }, z.ZodTypeAny, "passthrough"> | undefined;
2115
+ contractError?: string | undefined;
2127
2116
  } & {
2128
2117
  [k: string]: unknown;
2129
2118
  };
2130
2119
  changeDir: string;
2131
2120
  instruction: string;
2132
2121
  contextFiles: Record<string, string | string[]>;
2122
+ tasks: {
2123
+ id: string;
2124
+ done: boolean;
2125
+ description: string;
2126
+ }[];
2127
+ state: "ready" | "blocked" | "all_done";
2128
+ progress: {
2129
+ total: number;
2130
+ complete: number;
2131
+ remaining: number;
2132
+ };
2133
2133
  references?: z.objectInputType<{
2134
2134
  store_id: z.ZodString;
2135
2135
  root: z.ZodOptional<z.ZodString>;
@@ -2177,12 +2177,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2177
2177
  done: z.ZodBoolean;
2178
2178
  }, "strip", z.ZodTypeAny, {
2179
2179
  id: string;
2180
- description: string;
2181
2180
  done: boolean;
2181
+ description: string;
2182
2182
  }, {
2183
2183
  id: string;
2184
- description: string;
2185
2184
  done: boolean;
2185
+ description: string;
2186
2186
  }>, "many">;
2187
2187
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
2188
2188
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2449,12 +2449,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2449
2449
  complete: z.ZodNumber;
2450
2450
  remaining: z.ZodNumber;
2451
2451
  }, "strip", z.ZodTypeAny, {
2452
- complete: number;
2453
2452
  total: number;
2453
+ complete: number;
2454
2454
  remaining: number;
2455
2455
  }, {
2456
- complete: number;
2457
2456
  total: number;
2457
+ complete: number;
2458
2458
  remaining: number;
2459
2459
  }>;
2460
2460
  tracked: z.ZodObject<{
@@ -2463,98 +2463,93 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2463
2463
  remaining: z.ZodNumber;
2464
2464
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
2465
2465
  }, "strip", z.ZodTypeAny, {
2466
- completed: number;
2467
2466
  total: number;
2468
2467
  remaining: number;
2469
- phase: "no-tasks" | "in-progress" | "complete";
2470
- }, {
2471
2468
  completed: number;
2469
+ phase: "complete" | "no-tasks" | "in-progress";
2470
+ }, {
2472
2471
  total: number;
2473
2472
  remaining: number;
2474
- phase: "no-tasks" | "in-progress" | "complete";
2473
+ completed: number;
2474
+ phase: "complete" | "no-tasks" | "in-progress";
2475
2475
  }>;
2476
2476
  }, "strip", z.ZodTypeAny, {
2477
- message: string;
2478
2477
  kind: "tracked-task-mismatch";
2478
+ message: string;
2479
2479
  apply: {
2480
- complete: number;
2481
2480
  total: number;
2481
+ complete: number;
2482
2482
  remaining: number;
2483
2483
  };
2484
2484
  tracked: {
2485
- completed: number;
2486
2485
  total: number;
2487
2486
  remaining: number;
2488
- phase: "no-tasks" | "in-progress" | "complete";
2487
+ completed: number;
2488
+ phase: "complete" | "no-tasks" | "in-progress";
2489
2489
  };
2490
2490
  }, {
2491
- message: string;
2492
2491
  kind: "tracked-task-mismatch";
2492
+ message: string;
2493
2493
  apply: {
2494
- complete: number;
2495
2494
  total: number;
2495
+ complete: number;
2496
2496
  remaining: number;
2497
2497
  };
2498
2498
  tracked: {
2499
- completed: number;
2500
2499
  total: number;
2501
2500
  remaining: number;
2502
- phase: "no-tasks" | "in-progress" | "complete";
2501
+ completed: number;
2502
+ phase: "complete" | "no-tasks" | "in-progress";
2503
2503
  };
2504
2504
  }>>;
2505
2505
  }, "strip", z.ZodTypeAny, {
2506
+ source: "openspec-instructions-apply";
2506
2507
  state: "ready" | "blocked" | "all_done";
2507
- complete: number;
2508
2508
  total: number;
2509
+ complete: number;
2509
2510
  remaining: number;
2510
- source: "openspec-instructions-apply";
2511
2511
  divergence: {
2512
- message: string;
2513
2512
  kind: "tracked-task-mismatch";
2513
+ message: string;
2514
2514
  apply: {
2515
- complete: number;
2516
2515
  total: number;
2516
+ complete: number;
2517
2517
  remaining: number;
2518
2518
  };
2519
2519
  tracked: {
2520
- completed: number;
2521
2520
  total: number;
2522
2521
  remaining: number;
2523
- phase: "no-tasks" | "in-progress" | "complete";
2522
+ completed: number;
2523
+ phase: "complete" | "no-tasks" | "in-progress";
2524
2524
  };
2525
2525
  } | null;
2526
2526
  }, {
2527
+ source: "openspec-instructions-apply";
2527
2528
  state: "ready" | "blocked" | "all_done";
2528
- complete: number;
2529
2529
  total: number;
2530
+ complete: number;
2530
2531
  remaining: number;
2531
- source: "openspec-instructions-apply";
2532
2532
  divergence: {
2533
- message: string;
2534
2533
  kind: "tracked-task-mismatch";
2534
+ message: string;
2535
2535
  apply: {
2536
- complete: number;
2537
2536
  total: number;
2537
+ complete: number;
2538
2538
  remaining: number;
2539
2539
  };
2540
2540
  tracked: {
2541
- completed: number;
2542
2541
  total: number;
2543
2542
  remaining: number;
2544
- phase: "no-tasks" | "in-progress" | "complete";
2543
+ completed: number;
2544
+ phase: "complete" | "no-tasks" | "in-progress";
2545
2545
  };
2546
2546
  } | null;
2547
2547
  }>;
2548
2548
  }, "strip", z.ZodTypeAny, {
2549
- state: "ready" | "blocked" | "all_done";
2550
- tasks: {
2551
- id: string;
2552
- description: string;
2553
- done: boolean;
2554
- }[];
2555
2549
  changeName: string;
2556
2550
  schemaName: string;
2557
2551
  evidence: {
2552
+ command: "instructions apply";
2558
2553
  success: boolean;
2559
2554
  stdout: string;
2560
2555
  stderr: string;
@@ -2567,41 +2562,46 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2567
2562
  target: z.ZodOptional<z.ZodString>;
2568
2563
  fix: z.ZodOptional<z.ZodString>;
2569
2564
  }, z.ZodTypeAny, "passthrough">[];
2570
- command: "instructions apply";
2571
2565
  selector: {
2572
2566
  store?: string | undefined;
2573
2567
  };
2574
- contractError?: string | undefined;
2575
2568
  root?: z.objectOutputType<{
2576
2569
  path: z.ZodString;
2577
2570
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2578
2571
  store_id: z.ZodOptional<z.ZodString>;
2579
2572
  }, z.ZodTypeAny, "passthrough"> | undefined;
2573
+ contractError?: string | undefined;
2580
2574
  } & {
2581
2575
  [k: string]: unknown;
2582
2576
  };
2583
2577
  changeDir: string;
2584
2578
  instruction: string;
2585
2579
  contextFiles: Record<string, string[]>;
2580
+ tasks: {
2581
+ id: string;
2582
+ done: boolean;
2583
+ description: string;
2584
+ }[];
2585
+ state: "ready" | "blocked" | "all_done";
2586
2586
  applyInstructionProgress: {
2587
+ source: "openspec-instructions-apply";
2587
2588
  state: "ready" | "blocked" | "all_done";
2588
- complete: number;
2589
2589
  total: number;
2590
+ complete: number;
2590
2591
  remaining: number;
2591
- source: "openspec-instructions-apply";
2592
2592
  divergence: {
2593
- message: string;
2594
2593
  kind: "tracked-task-mismatch";
2594
+ message: string;
2595
2595
  apply: {
2596
- complete: number;
2597
2596
  total: number;
2597
+ complete: number;
2598
2598
  remaining: number;
2599
2599
  };
2600
2600
  tracked: {
2601
- completed: number;
2602
2601
  total: number;
2603
2602
  remaining: number;
2604
- phase: "no-tasks" | "in-progress" | "complete";
2603
+ completed: number;
2604
+ phase: "complete" | "no-tasks" | "in-progress";
2605
2605
  };
2606
2606
  } | null;
2607
2607
  };
@@ -2642,15 +2642,10 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2642
2642
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2643
2643
  missingArtifacts?: string[] | undefined;
2644
2644
  }, {
2645
- state: "ready" | "blocked" | "all_done";
2646
- tasks: {
2647
- id: string;
2648
- description: string;
2649
- done: boolean;
2650
- }[];
2651
2645
  changeName: string;
2652
2646
  schemaName: string;
2653
2647
  evidence: {
2648
+ command: "instructions apply";
2654
2649
  success: boolean;
2655
2650
  stdout: string;
2656
2651
  stderr: string;
@@ -2663,41 +2658,46 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2663
2658
  target: z.ZodOptional<z.ZodString>;
2664
2659
  fix: z.ZodOptional<z.ZodString>;
2665
2660
  }, z.ZodTypeAny, "passthrough">[];
2666
- command: "instructions apply";
2667
2661
  selector: {
2668
2662
  store?: string | undefined;
2669
2663
  };
2670
- contractError?: string | undefined;
2671
2664
  root?: z.objectInputType<{
2672
2665
  path: z.ZodString;
2673
2666
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2674
2667
  store_id: z.ZodOptional<z.ZodString>;
2675
2668
  }, z.ZodTypeAny, "passthrough"> | undefined;
2669
+ contractError?: string | undefined;
2676
2670
  } & {
2677
2671
  [k: string]: unknown;
2678
2672
  };
2679
2673
  changeDir: string;
2680
2674
  instruction: string;
2681
2675
  contextFiles: Record<string, string | string[]>;
2676
+ tasks: {
2677
+ id: string;
2678
+ done: boolean;
2679
+ description: string;
2680
+ }[];
2681
+ state: "ready" | "blocked" | "all_done";
2682
2682
  applyInstructionProgress: {
2683
+ source: "openspec-instructions-apply";
2683
2684
  state: "ready" | "blocked" | "all_done";
2684
- complete: number;
2685
2685
  total: number;
2686
+ complete: number;
2686
2687
  remaining: number;
2687
- source: "openspec-instructions-apply";
2688
2688
  divergence: {
2689
- message: string;
2690
2689
  kind: "tracked-task-mismatch";
2690
+ message: string;
2691
2691
  apply: {
2692
- complete: number;
2693
2692
  total: number;
2693
+ complete: number;
2694
2694
  remaining: number;
2695
2695
  };
2696
2696
  tracked: {
2697
- completed: number;
2698
2697
  total: number;
2699
2698
  remaining: number;
2700
- phase: "no-tasks" | "in-progress" | "complete";
2699
+ completed: number;
2700
+ phase: "complete" | "no-tasks" | "in-progress";
2701
2701
  };
2702
2702
  } | null;
2703
2703
  };
@@ -2758,13 +2758,13 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2758
2758
  }, "strip", z.ZodTypeAny, {
2759
2759
  path: string;
2760
2760
  id: string;
2761
- description: string;
2762
2761
  done: boolean;
2762
+ description: string;
2763
2763
  }, {
2764
2764
  path: string;
2765
2765
  id: string;
2766
- description: string;
2767
2766
  done: boolean;
2767
+ description: string;
2768
2768
  }>, "many">;
2769
2769
  unlocks: z.ZodArray<z.ZodString, "many">;
2770
2770
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3016,12 +3016,11 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3016
3016
  command: z.ZodLiteral<"instructions">;
3017
3017
  }, z.ZodTypeAny, "passthrough">>;
3018
3018
  }, "strip", z.ZodTypeAny, {
3019
- artifactId: string;
3020
- outputPath: string;
3021
- description: string;
3022
3019
  changeName: string;
3023
3020
  schemaName: string;
3021
+ outputPath: string;
3024
3022
  evidence: {
3023
+ command: "instructions";
3025
3024
  success: boolean;
3026
3025
  stdout: string;
3027
3026
  stderr: string;
@@ -3034,30 +3033,31 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3034
3033
  target: z.ZodOptional<z.ZodString>;
3035
3034
  fix: z.ZodOptional<z.ZodString>;
3036
3035
  }, z.ZodTypeAny, "passthrough">[];
3037
- command: "instructions";
3038
3036
  selector: {
3039
3037
  store?: string | undefined;
3040
3038
  };
3041
- contractError?: string | undefined;
3042
3039
  root?: z.objectOutputType<{
3043
3040
  path: z.ZodString;
3044
3041
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3045
3042
  store_id: z.ZodOptional<z.ZodString>;
3046
3043
  }, z.ZodTypeAny, "passthrough"> | undefined;
3044
+ contractError?: string | undefined;
3047
3045
  } & {
3048
3046
  [k: string]: unknown;
3049
3047
  };
3048
+ artifactId: string;
3050
3049
  changeDir: string;
3050
+ description: string;
3051
3051
  template: string;
3052
3052
  dependencies: {
3053
3053
  path: string;
3054
3054
  id: string;
3055
- description: string;
3056
3055
  done: boolean;
3056
+ description: string;
3057
3057
  }[];
3058
3058
  unlocks: string[];
3059
- context?: string | null | undefined;
3060
3059
  instruction?: string | null | undefined;
3060
+ context?: string | null | undefined;
3061
3061
  rules?: string[] | null | undefined;
3062
3062
  references?: z.objectOutputType<{
3063
3063
  store_id: z.ZodString;
@@ -3095,12 +3095,11 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3095
3095
  fetch: z.ZodOptional<z.ZodString>;
3096
3096
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3097
3097
  }, {
3098
- artifactId: string;
3099
- outputPath: string;
3100
- description: string;
3101
3098
  changeName: string;
3102
3099
  schemaName: string;
3100
+ outputPath: string;
3103
3101
  evidence: {
3102
+ command: "instructions";
3104
3103
  success: boolean;
3105
3104
  stdout: string;
3106
3105
  stderr: string;
@@ -3113,30 +3112,31 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3113
3112
  target: z.ZodOptional<z.ZodString>;
3114
3113
  fix: z.ZodOptional<z.ZodString>;
3115
3114
  }, z.ZodTypeAny, "passthrough">[];
3116
- command: "instructions";
3117
3115
  selector: {
3118
3116
  store?: string | undefined;
3119
3117
  };
3120
- contractError?: string | undefined;
3121
3118
  root?: z.objectInputType<{
3122
3119
  path: z.ZodString;
3123
3120
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3124
3121
  store_id: z.ZodOptional<z.ZodString>;
3125
3122
  }, z.ZodTypeAny, "passthrough"> | undefined;
3123
+ contractError?: string | undefined;
3126
3124
  } & {
3127
3125
  [k: string]: unknown;
3128
3126
  };
3127
+ artifactId: string;
3129
3128
  changeDir: string;
3129
+ description: string;
3130
3130
  template: string;
3131
3131
  dependencies: {
3132
3132
  path: string;
3133
3133
  id: string;
3134
- description: string;
3135
3134
  done: boolean;
3135
+ description: string;
3136
3136
  }[];
3137
3137
  unlocks: string[];
3138
- context?: string | null | undefined;
3139
3138
  instruction?: string | null | undefined;
3139
+ context?: string | null | undefined;
3140
3140
  rules?: string[] | null | undefined;
3141
3141
  references?: z.objectInputType<{
3142
3142
  store_id: z.ZodString;
@@ -3333,7 +3333,6 @@ declare const SchemaDetailSchema: z.ZodObject<{
3333
3333
  applyTracks: z.ZodOptional<z.ZodString>;
3334
3334
  applyInstruction: z.ZodOptional<z.ZodString>;
3335
3335
  }, "strip", z.ZodTypeAny, {
3336
- name: string;
3337
3336
  applyRequires: string[];
3338
3337
  artifacts: {
3339
3338
  id: string;
@@ -3343,12 +3342,12 @@ declare const SchemaDetailSchema: z.ZodObject<{
3343
3342
  instruction?: string | undefined;
3344
3343
  template?: string | undefined;
3345
3344
  }[];
3345
+ name: string;
3346
3346
  description?: string | undefined;
3347
3347
  version?: string | number | undefined;
3348
3348
  applyTracks?: string | undefined;
3349
3349
  applyInstruction?: string | undefined;
3350
3350
  }, {
3351
- name: string;
3352
3351
  applyRequires: string[];
3353
3352
  artifacts: {
3354
3353
  id: string;
@@ -3358,6 +3357,7 @@ declare const SchemaDetailSchema: z.ZodObject<{
3358
3357
  instruction?: string | undefined;
3359
3358
  template?: string | undefined;
3360
3359
  }[];
3360
+ name: string;
3361
3361
  description?: string | undefined;
3362
3362
  version?: string | number | undefined;
3363
3363
  applyTracks?: string | undefined;
@@ -3412,7 +3412,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3412
3412
  applyTracks: z.ZodOptional<z.ZodString>;
3413
3413
  applyInstruction: z.ZodOptional<z.ZodString>;
3414
3414
  }, "strip", z.ZodTypeAny, {
3415
- name: string;
3416
3415
  applyRequires: string[];
3417
3416
  artifacts: {
3418
3417
  id: string;
@@ -3422,12 +3421,12 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3422
3421
  instruction?: string | undefined;
3423
3422
  template?: string | undefined;
3424
3423
  }[];
3424
+ name: string;
3425
3425
  description?: string | undefined;
3426
3426
  version?: string | number | undefined;
3427
3427
  applyTracks?: string | undefined;
3428
3428
  applyInstruction?: string | undefined;
3429
3429
  }, {
3430
- name: string;
3431
3430
  applyRequires: string[];
3432
3431
  artifacts: {
3433
3432
  id: string;
@@ -3437,6 +3436,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3437
3436
  instruction?: string | undefined;
3438
3437
  template?: string | undefined;
3439
3438
  }[];
3439
+ name: string;
3440
3440
  description?: string | undefined;
3441
3441
  version?: string | number | undefined;
3442
3442
  applyTracks?: string | undefined;
@@ -3517,7 +3517,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3517
3517
  source: z.ZodEnum<["project", "user", "package"]>;
3518
3518
  }, z.ZodTypeAny, "passthrough">[];
3519
3519
  schemaDetails: Record<string, {
3520
- name: string;
3521
3520
  applyRequires: string[];
3522
3521
  artifacts: {
3523
3522
  id: string;
@@ -3527,6 +3526,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3527
3526
  instruction?: string | undefined;
3528
3527
  template?: string | undefined;
3529
3528
  }[];
3529
+ name: string;
3530
3530
  description?: string | undefined;
3531
3531
  version?: string | number | undefined;
3532
3532
  applyTracks?: string | undefined;
@@ -3563,7 +3563,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3563
3563
  source: z.ZodEnum<["project", "user", "package"]>;
3564
3564
  }, z.ZodTypeAny, "passthrough">[];
3565
3565
  schemaDetails: Record<string, {
3566
- name: string;
3567
3566
  applyRequires: string[];
3568
3567
  artifacts: {
3569
3568
  id: string;
@@ -3573,6 +3572,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3573
3572
  instruction?: string | undefined;
3574
3573
  template?: string | undefined;
3575
3574
  }[];
3575
+ name: string;
3576
3576
  description?: string | undefined;
3577
3577
  version?: string | number | undefined;
3578
3578
  applyTracks?: string | undefined;