@openspecui/core 12.0.0 → 13.0.1

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 (61) hide show
  1. package/dist/{active-root-config-Ba57tJrq.d.mts → active-root-config-wpH_ZblJ.d.mts} +17 -17
  2. package/dist/active-root-config.d.mts +5 -5
  3. package/dist/app-daemon-control.d.mts +8 -8
  4. package/dist/{cli-projection-CvtX601c.d.mts → cli-projection-0tdEPnTe.d.mts} +17 -17
  5. package/dist/cli-projection.d.mts +5 -5
  6. package/dist/{command-result-DbXO8ZgG.mjs → command-result-DfCY18TD.mjs} +31 -3
  7. package/dist/{dashboard-summary-transport-edeWQPi7.d.mts → dashboard-summary-transport-uE7nCxmD.d.mts} +5573 -5367
  8. package/dist/dashboard-summary-transport.d.mts +19 -19
  9. package/dist/{document-translation-CGMD0RLA.d.mts → document-translation-DzF7Og-j.d.mts} +102 -102
  10. package/dist/document-translation.d.mts +1 -1
  11. package/dist/{hosted-app-CHqdo5vd.mjs → hosted-app-DWYFMLkw.mjs} +1 -1
  12. package/dist/hosted-app.d.mts +19 -19
  13. package/dist/hosted-app.mjs +3 -3
  14. package/dist/{hosted-contract-Qe5AmkiE.mjs → hosted-contract-SsTBQklx.mjs} +1 -1
  15. package/dist/hosted-contract.d.mts +19 -19
  16. package/dist/hosted-contract.mjs +2 -2
  17. package/dist/{index-D9qYKNqh.d.mts → index-DPsUTX4C.d.mts} +262 -106
  18. package/dist/index.d.mts +20 -20
  19. package/dist/index.mjs +63 -41
  20. package/dist/{local-download-profiles-DaFozMhH.d.mts → local-download-profiles-CsKGe_qF.d.mts} +1 -1
  21. package/dist/local-download-profiles.d.mts +2 -2
  22. package/dist/{notifications-Dkoh_xrs.d.mts → notifications-B8Ael_hq.d.mts} +8 -8
  23. package/dist/notifications.d.mts +2 -2
  24. package/dist/{openspec-compat-CpMO8-dz.mjs → openspec-compat-CNMMuTot.mjs} +15 -14
  25. package/dist/openspec-compat.d.mts +4 -4
  26. package/dist/openspec-compat.mjs +2 -2
  27. package/dist/{openspec-projection-46QLZ6b8.d.mts → openspec-projection-xOnjhQ7v.d.mts} +1 -1
  28. package/dist/openspec-projection.d.mts +2 -2
  29. package/dist/{opsx-entity-Btqm5OhC.d.mts → opsx-entity-DsigFL5Z.d.mts} +2 -2
  30. package/dist/opsx-entity.d.mts +7 -7
  31. package/dist/{opsx-schema-detail-C4VyWZ8B.d.mts → opsx-schema-detail-IlY4T5vO.d.mts} +2 -2
  32. package/dist/opsx-schema-detail.d.mts +8 -8
  33. package/dist/{opsx-types-hVFHL9Cb.d.mts → opsx-types-r1oKVWgZ.d.mts} +302 -280
  34. package/dist/{planning-cli-projection-BUU26bEw.mjs → planning-cli-projection-C4eG7-Yr.mjs} +27 -5
  35. package/dist/planning-cli-projection.d.mts +20 -20
  36. package/dist/planning-cli-projection.mjs +5 -5
  37. package/dist/{schemas-Ce7B_SNx.d.mts → schemas-pfpqDlAd.d.mts} +208 -208
  38. package/dist/{sounds-DzDkqTIX.d.mts → sounds-B0GiWqBN.d.mts} +4 -4
  39. package/dist/sounds.d.mts +1 -1
  40. package/dist/{spec-catalog-DshONoJ9.mjs → spec-catalog-B8TIBzwP.mjs} +1 -1
  41. package/dist/spec-catalog.d.mts +19 -19
  42. package/dist/spec-catalog.mjs +2 -2
  43. package/dist/{store-content-projection-DV31znWA.mjs → store-content-projection-CLNY-hNu.mjs} +5 -1
  44. package/dist/{store-content-projection-BnNYyb0x.d.mts → store-content-projection-DMHTVCFM.d.mts} +126 -0
  45. package/dist/store-content-projection.d.mts +1 -1
  46. package/dist/store-content-projection.mjs +1 -1
  47. package/dist/{store-mutation-protocol-DHjp76v0.d.mts → store-mutation-protocol-DXeWtAvN.d.mts} +24 -24
  48. package/dist/store-mutation-protocol.d.mts +1 -1
  49. package/dist/{store-types-vKTsXtfb.d.mts → store-types-BghVB9Qj.d.mts} +1 -1
  50. package/dist/store-types.d.mts +5 -5
  51. package/dist/{task-progress-Bvid_Ws8.mjs → task-progress-moL-QUhJ.mjs} +29 -4
  52. package/dist/task-progress.d.mts +6 -6
  53. package/dist/task-progress.mjs +1 -1
  54. package/dist/{terminal-audio-C6kc0fbX.d.mts → terminal-audio-BpfUW_eB.d.mts} +1 -1
  55. package/dist/terminal-audio.d.mts +2 -2
  56. package/dist/terminal-control.d.mts +2 -2
  57. package/dist/{terminal-invocation-zNp8J57-.d.mts → terminal-invocation-CYibC-WC.d.mts} +68 -68
  58. package/dist/terminal-invocation.d.mts +1 -1
  59. package/dist/{translator-DZO_bY1X.d.mts → translator-BdTMcSWN.d.mts} +253 -253
  60. package/dist/translator.d.mts +1 -1
  61. package/package.json +2 -1
@@ -1,5 +1,5 @@
1
- import { Ct as CliJsonValue } from "./index-D9qYKNqh.mjs";
2
- import { n as ChangeFile, v as Task } from "./schemas-Ce7B_SNx.mjs";
1
+ import { Tt as CliJsonValue } from "./index-DPsUTX4C.mjs";
2
+ import { n as ChangeFile, v as Task } from "./schemas-pfpqDlAd.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/task-progress.d.ts
@@ -406,14 +406,14 @@ declare const ArtifactStatusSchema: z.ZodObject<{
406
406
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
407
407
  relativePath: z.ZodOptional<z.ZodString>;
408
408
  }, "strip", z.ZodTypeAny, {
409
- status: "done" | "skipped" | "ready" | "blocked";
409
+ status: "ready" | "done" | "skipped" | "blocked";
410
410
  id: string;
411
411
  outputPath: string;
412
412
  requires: string[];
413
413
  missingDeps?: string[] | undefined;
414
414
  relativePath?: string | undefined;
415
415
  }, {
416
- status: "done" | "skipped" | "ready" | "blocked";
416
+ status: "ready" | "done" | "skipped" | "blocked";
417
417
  id: string;
418
418
  outputPath: string;
419
419
  requires: string[];
@@ -435,14 +435,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
435
435
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
436
  relativePath: z.ZodOptional<z.ZodString>;
437
437
  }, "strip", z.ZodTypeAny, {
438
- status: "done" | "skipped" | "ready" | "blocked";
438
+ status: "ready" | "done" | "skipped" | "blocked";
439
439
  id: string;
440
440
  outputPath: string;
441
441
  requires: string[];
442
442
  missingDeps?: string[] | undefined;
443
443
  relativePath?: string | undefined;
444
444
  }, {
445
- status: "done" | "skipped" | "ready" | "blocked";
445
+ status: "ready" | "done" | "skipped" | "blocked";
446
446
  id: string;
447
447
  outputPath: string;
448
448
  requires: string[];
@@ -692,6 +692,32 @@ declare const ChangeStatusSchema: z.ZodObject<{
692
692
  } & {
693
693
  [k: string]: unknown;
694
694
  };
695
+ evidence: {
696
+ success: boolean;
697
+ stdout: string;
698
+ stderr: string;
699
+ exitCode: number | null;
700
+ payload: CliJsonValue;
701
+ diagnostics: z.objectOutputType<{
702
+ severity: z.ZodEnum<["error", "warning", "info"]>;
703
+ code: z.ZodString;
704
+ message: z.ZodString;
705
+ target: z.ZodOptional<z.ZodString>;
706
+ fix: z.ZodOptional<z.ZodString>;
707
+ }, z.ZodTypeAny, "passthrough">[];
708
+ command: "status";
709
+ selector: {
710
+ store?: string | undefined;
711
+ };
712
+ contractError?: string | undefined;
713
+ root?: z.objectOutputType<{
714
+ path: z.ZodString;
715
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
716
+ store_id: z.ZodOptional<z.ZodString>;
717
+ }, z.ZodTypeAny, "passthrough"> | undefined;
718
+ } & {
719
+ [k: string]: unknown;
720
+ };
695
721
  planningHome: {
696
722
  kind: "repo";
697
723
  root: string;
@@ -720,13 +746,22 @@ declare const ChangeStatusSchema: z.ZodObject<{
720
746
  } & {
721
747
  [k: string]: unknown;
722
748
  };
749
+ }, {
750
+ kind: "cli";
751
+ root: {
752
+ path: string;
753
+ source: "store" | "declared" | "nearest" | "global_default" | "implicit";
754
+ store_id?: string | undefined;
755
+ } & {
756
+ [k: string]: unknown;
757
+ };
723
758
  evidence: {
724
759
  success: boolean;
725
760
  stdout: string;
726
761
  stderr: string;
727
762
  exitCode: number | null;
728
763
  payload: CliJsonValue;
729
- diagnostics: z.objectOutputType<{
764
+ diagnostics: z.objectInputType<{
730
765
  severity: z.ZodEnum<["error", "warning", "info"]>;
731
766
  code: z.ZodString;
732
767
  message: z.ZodString;
@@ -738,7 +773,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
738
773
  store?: string | undefined;
739
774
  };
740
775
  contractError?: string | undefined;
741
- root?: z.objectOutputType<{
776
+ root?: z.objectInputType<{
742
777
  path: z.ZodString;
743
778
  source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
744
779
  store_id: z.ZodOptional<z.ZodString>;
@@ -746,15 +781,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
746
781
  } & {
747
782
  [k: string]: unknown;
748
783
  };
749
- }, {
750
- kind: "cli";
751
- root: {
752
- path: string;
753
- source: "store" | "declared" | "nearest" | "global_default" | "implicit";
754
- store_id?: string | undefined;
755
- } & {
756
- [k: string]: unknown;
757
- };
758
784
  planningHome: {
759
785
  kind: "repo";
760
786
  root: string;
@@ -783,32 +809,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
783
809
  } & {
784
810
  [k: string]: unknown;
785
811
  };
786
- evidence: {
787
- success: boolean;
788
- stdout: string;
789
- stderr: string;
790
- exitCode: number | null;
791
- payload: CliJsonValue;
792
- diagnostics: z.objectInputType<{
793
- severity: z.ZodEnum<["error", "warning", "info"]>;
794
- code: z.ZodString;
795
- message: z.ZodString;
796
- target: z.ZodOptional<z.ZodString>;
797
- fix: z.ZodOptional<z.ZodString>;
798
- }, z.ZodTypeAny, "passthrough">[];
799
- command: "status";
800
- selector: {
801
- store?: string | undefined;
802
- };
803
- contractError?: string | undefined;
804
- root?: z.objectInputType<{
805
- path: z.ZodString;
806
- source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
807
- store_id: z.ZodOptional<z.ZodString>;
808
- }, z.ZodTypeAny, "passthrough"> | undefined;
809
- } & {
810
- [k: string]: unknown;
811
- };
812
812
  }>, z.ZodObject<{
813
813
  kind: z.ZodLiteral<"static">;
814
814
  }, "strip", z.ZodTypeAny, {
@@ -822,7 +822,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
822
822
  isPlanningComplete: boolean;
823
823
  applyRequires: string[];
824
824
  artifacts: {
825
- status: "done" | "skipped" | "ready" | "blocked";
825
+ status: "ready" | "done" | "skipped" | "blocked";
826
826
  id: string;
827
827
  outputPath: string;
828
828
  requires: string[];
@@ -838,6 +838,32 @@ declare const ChangeStatusSchema: z.ZodObject<{
838
838
  } & {
839
839
  [k: string]: unknown;
840
840
  };
841
+ evidence: {
842
+ success: boolean;
843
+ stdout: string;
844
+ stderr: string;
845
+ exitCode: number | null;
846
+ payload: CliJsonValue;
847
+ diagnostics: z.objectOutputType<{
848
+ severity: z.ZodEnum<["error", "warning", "info"]>;
849
+ code: z.ZodString;
850
+ message: z.ZodString;
851
+ target: z.ZodOptional<z.ZodString>;
852
+ fix: z.ZodOptional<z.ZodString>;
853
+ }, z.ZodTypeAny, "passthrough">[];
854
+ command: "status";
855
+ selector: {
856
+ store?: string | undefined;
857
+ };
858
+ contractError?: string | undefined;
859
+ root?: z.objectOutputType<{
860
+ path: z.ZodString;
861
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
862
+ store_id: z.ZodOptional<z.ZodString>;
863
+ }, z.ZodTypeAny, "passthrough"> | undefined;
864
+ } & {
865
+ [k: string]: unknown;
866
+ };
841
867
  planningHome: {
842
868
  kind: "repo";
843
869
  root: string;
@@ -866,32 +892,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
866
892
  } & {
867
893
  [k: string]: unknown;
868
894
  };
869
- evidence: {
870
- success: boolean;
871
- stdout: string;
872
- stderr: string;
873
- exitCode: number | null;
874
- payload: CliJsonValue;
875
- diagnostics: z.objectOutputType<{
876
- severity: z.ZodEnum<["error", "warning", "info"]>;
877
- code: z.ZodString;
878
- message: z.ZodString;
879
- target: z.ZodOptional<z.ZodString>;
880
- fix: z.ZodOptional<z.ZodString>;
881
- }, z.ZodTypeAny, "passthrough">[];
882
- command: "status";
883
- selector: {
884
- store?: string | undefined;
885
- };
886
- contractError?: string | undefined;
887
- root?: z.objectOutputType<{
888
- path: z.ZodString;
889
- source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
890
- store_id: z.ZodOptional<z.ZodString>;
891
- }, z.ZodTypeAny, "passthrough"> | undefined;
892
- } & {
893
- [k: string]: unknown;
894
- };
895
895
  } | {
896
896
  kind: "static";
897
897
  };
@@ -901,7 +901,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
901
901
  isPlanningComplete: boolean;
902
902
  applyRequires: string[];
903
903
  artifacts: {
904
- status: "done" | "skipped" | "ready" | "blocked";
904
+ status: "ready" | "done" | "skipped" | "blocked";
905
905
  id: string;
906
906
  outputPath: string;
907
907
  requires: string[];
@@ -917,6 +917,32 @@ declare const ChangeStatusSchema: z.ZodObject<{
917
917
  } & {
918
918
  [k: string]: unknown;
919
919
  };
920
+ evidence: {
921
+ success: boolean;
922
+ stdout: string;
923
+ stderr: string;
924
+ exitCode: number | null;
925
+ payload: CliJsonValue;
926
+ diagnostics: z.objectInputType<{
927
+ severity: z.ZodEnum<["error", "warning", "info"]>;
928
+ code: z.ZodString;
929
+ message: z.ZodString;
930
+ target: z.ZodOptional<z.ZodString>;
931
+ fix: z.ZodOptional<z.ZodString>;
932
+ }, z.ZodTypeAny, "passthrough">[];
933
+ command: "status";
934
+ selector: {
935
+ store?: string | undefined;
936
+ };
937
+ contractError?: string | undefined;
938
+ root?: z.objectInputType<{
939
+ path: z.ZodString;
940
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
941
+ store_id: z.ZodOptional<z.ZodString>;
942
+ }, z.ZodTypeAny, "passthrough"> | undefined;
943
+ } & {
944
+ [k: string]: unknown;
945
+ };
920
946
  planningHome: {
921
947
  kind: "repo";
922
948
  root: string;
@@ -945,32 +971,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
945
971
  } & {
946
972
  [k: string]: unknown;
947
973
  };
948
- evidence: {
949
- success: boolean;
950
- stdout: string;
951
- stderr: string;
952
- exitCode: number | null;
953
- payload: CliJsonValue;
954
- diagnostics: z.objectInputType<{
955
- severity: z.ZodEnum<["error", "warning", "info"]>;
956
- code: z.ZodString;
957
- message: z.ZodString;
958
- target: z.ZodOptional<z.ZodString>;
959
- fix: z.ZodOptional<z.ZodString>;
960
- }, z.ZodTypeAny, "passthrough">[];
961
- command: "status";
962
- selector: {
963
- store?: string | undefined;
964
- };
965
- contractError?: string | undefined;
966
- root?: z.objectInputType<{
967
- path: z.ZodString;
968
- source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
969
- store_id: z.ZodOptional<z.ZodString>;
970
- }, z.ZodTypeAny, "passthrough"> | undefined;
971
- } & {
972
- [k: string]: unknown;
973
- };
974
974
  } | {
975
975
  kind: "static";
976
976
  };
@@ -985,14 +985,14 @@ declare const DependencyInfoSchema: z.ZodObject<{
985
985
  }, "strip", z.ZodTypeAny, {
986
986
  path: string;
987
987
  id: string;
988
- done: boolean;
989
988
  description: string;
989
+ done: boolean;
990
990
  skipped?: boolean | undefined;
991
991
  }, {
992
992
  path: string;
993
993
  id: string;
994
- done: boolean;
995
994
  description: string;
995
+ done: boolean;
996
996
  skipped?: boolean | undefined;
997
997
  }>;
998
998
  type DependencyInfo = z.infer<typeof DependencyInfoSchema>;
@@ -1002,12 +1002,12 @@ declare const ApplyTaskSchema: z.ZodObject<{
1002
1002
  done: z.ZodBoolean;
1003
1003
  }, "strip", z.ZodTypeAny, {
1004
1004
  id: string;
1005
- done: boolean;
1006
1005
  description: string;
1006
+ done: boolean;
1007
1007
  }, {
1008
1008
  id: string;
1009
- done: boolean;
1010
1009
  description: string;
1010
+ done: boolean;
1011
1011
  }>;
1012
1012
  type ApplyTask = z.infer<typeof ApplyTaskSchema>;
1013
1013
  declare const ApplyInstructionsContextFilesSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
@@ -1023,15 +1023,17 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1023
1023
  done: z.ZodBoolean;
1024
1024
  }, "strip", z.ZodTypeAny, {
1025
1025
  id: string;
1026
- done: boolean;
1027
1026
  description: string;
1027
+ done: boolean;
1028
1028
  }, {
1029
1029
  id: string;
1030
- done: boolean;
1031
1030
  description: string;
1031
+ done: boolean;
1032
1032
  }>, "many">;
1033
1033
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1034
1034
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
+ missingPrerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1036
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
1037
  instruction: z.ZodString;
1036
1038
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1037
1039
  store_id: z.ZodString;
@@ -1311,91 +1313,95 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1311
1313
  remaining: z.ZodNumber;
1312
1314
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
1313
1315
  }, "strip", z.ZodTypeAny, {
1316
+ completed: number;
1314
1317
  total: number;
1315
1318
  remaining: number;
1316
- completed: number;
1317
- phase: "no-tasks" | "complete" | "in-progress";
1319
+ phase: "no-tasks" | "in-progress" | "complete";
1318
1320
  }, {
1321
+ completed: number;
1319
1322
  total: number;
1320
1323
  remaining: number;
1321
- completed: number;
1322
- phase: "no-tasks" | "complete" | "in-progress";
1324
+ phase: "no-tasks" | "in-progress" | "complete";
1323
1325
  }>;
1324
1326
  }, "strip", z.ZodTypeAny, {
1325
- kind: "tracked-task-mismatch";
1326
1327
  message: string;
1328
+ kind: "tracked-task-mismatch";
1327
1329
  apply: {
1328
1330
  complete: number;
1329
1331
  total: number;
1330
1332
  remaining: number;
1331
1333
  };
1332
1334
  tracked: {
1335
+ completed: number;
1333
1336
  total: number;
1334
1337
  remaining: number;
1335
- completed: number;
1336
- phase: "no-tasks" | "complete" | "in-progress";
1338
+ phase: "no-tasks" | "in-progress" | "complete";
1337
1339
  };
1338
1340
  }, {
1339
- kind: "tracked-task-mismatch";
1340
1341
  message: string;
1342
+ kind: "tracked-task-mismatch";
1341
1343
  apply: {
1342
1344
  complete: number;
1343
1345
  total: number;
1344
1346
  remaining: number;
1345
1347
  };
1346
1348
  tracked: {
1349
+ completed: number;
1347
1350
  total: number;
1348
1351
  remaining: number;
1349
- completed: number;
1350
- phase: "no-tasks" | "complete" | "in-progress";
1352
+ phase: "no-tasks" | "in-progress" | "complete";
1351
1353
  };
1352
1354
  }>>;
1353
1355
  }, "strip", z.ZodTypeAny, {
1354
- source: "openspec-instructions-apply";
1355
- complete: number;
1356
1356
  state: "ready" | "blocked" | "all_done";
1357
+ complete: number;
1357
1358
  total: number;
1358
1359
  remaining: number;
1360
+ source: "openspec-instructions-apply";
1359
1361
  divergence: {
1360
- kind: "tracked-task-mismatch";
1361
1362
  message: string;
1363
+ kind: "tracked-task-mismatch";
1362
1364
  apply: {
1363
1365
  complete: number;
1364
1366
  total: number;
1365
1367
  remaining: number;
1366
1368
  };
1367
1369
  tracked: {
1370
+ completed: number;
1368
1371
  total: number;
1369
1372
  remaining: number;
1370
- completed: number;
1371
- phase: "no-tasks" | "complete" | "in-progress";
1373
+ phase: "no-tasks" | "in-progress" | "complete";
1372
1374
  };
1373
1375
  } | null;
1374
1376
  }, {
1375
- source: "openspec-instructions-apply";
1376
- complete: number;
1377
1377
  state: "ready" | "blocked" | "all_done";
1378
+ complete: number;
1378
1379
  total: number;
1379
1380
  remaining: number;
1381
+ source: "openspec-instructions-apply";
1380
1382
  divergence: {
1381
- kind: "tracked-task-mismatch";
1382
1383
  message: string;
1384
+ kind: "tracked-task-mismatch";
1383
1385
  apply: {
1384
1386
  complete: number;
1385
1387
  total: number;
1386
1388
  remaining: number;
1387
1389
  };
1388
1390
  tracked: {
1391
+ completed: number;
1389
1392
  total: number;
1390
1393
  remaining: number;
1391
- completed: number;
1392
- phase: "no-tasks" | "complete" | "in-progress";
1394
+ phase: "no-tasks" | "in-progress" | "complete";
1393
1395
  };
1394
1396
  } | null;
1395
1397
  }>;
1396
1398
  }, "strip", z.ZodTypeAny, {
1397
- changeName: string;
1398
- schemaName: string;
1399
+ state: "ready" | "blocked" | "all_done";
1400
+ tasks: {
1401
+ id: string;
1402
+ description: string;
1403
+ done: boolean;
1404
+ }[];
1399
1405
  evidence: {
1400
1406
  success: boolean;
1401
1407
  stdout: string;
@@ -1422,38 +1428,33 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1422
1428
  } & {
1423
1429
  [k: string]: unknown;
1424
1430
  };
1431
+ changeName: string;
1432
+ schemaName: string;
1425
1433
  changeDir: string;
1426
1434
  instruction: string;
1427
1435
  contextFiles: Record<string, string[]>;
1428
- tasks: {
1429
- id: string;
1430
- done: boolean;
1431
- description: string;
1432
- }[];
1433
- state: "ready" | "blocked" | "all_done";
1434
1436
  applyInstructionProgress: {
1435
- source: "openspec-instructions-apply";
1436
- complete: number;
1437
1437
  state: "ready" | "blocked" | "all_done";
1438
+ complete: number;
1438
1439
  total: number;
1439
1440
  remaining: number;
1441
+ source: "openspec-instructions-apply";
1440
1442
  divergence: {
1441
- kind: "tracked-task-mismatch";
1442
1443
  message: string;
1444
+ kind: "tracked-task-mismatch";
1443
1445
  apply: {
1444
1446
  complete: number;
1445
1447
  total: number;
1446
1448
  remaining: number;
1447
1449
  };
1448
1450
  tracked: {
1451
+ completed: number;
1449
1452
  total: number;
1450
1453
  remaining: number;
1451
- completed: number;
1452
- phase: "no-tasks" | "complete" | "in-progress";
1454
+ phase: "no-tasks" | "in-progress" | "complete";
1453
1455
  };
1454
1456
  } | null;
1455
1457
  };
1456
- context?: string | undefined;
1457
1458
  references?: z.objectOutputType<{
1458
1459
  store_id: z.ZodString;
1459
1460
  root: z.ZodOptional<z.ZodString>;
@@ -1489,11 +1490,18 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1489
1490
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1490
1491
  fetch: z.ZodOptional<z.ZodString>;
1491
1492
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1493
+ context?: string | undefined;
1494
+ warnings?: string[] | undefined;
1492
1495
  missingArtifacts?: string[] | undefined;
1496
+ missingPrerequisites?: string[] | undefined;
1493
1497
  operationGuidance?: string[] | undefined;
1494
1498
  }, {
1495
- changeName: string;
1496
- schemaName: string;
1499
+ state: "ready" | "blocked" | "all_done";
1500
+ tasks: {
1501
+ id: string;
1502
+ description: string;
1503
+ done: boolean;
1504
+ }[];
1497
1505
  evidence: {
1498
1506
  success: boolean;
1499
1507
  stdout: string;
@@ -1520,38 +1528,33 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1520
1528
  } & {
1521
1529
  [k: string]: unknown;
1522
1530
  };
1531
+ changeName: string;
1532
+ schemaName: string;
1523
1533
  changeDir: string;
1524
1534
  instruction: string;
1525
1535
  contextFiles: Record<string, string | string[]>;
1526
- tasks: {
1527
- id: string;
1528
- done: boolean;
1529
- description: string;
1530
- }[];
1531
- state: "ready" | "blocked" | "all_done";
1532
1536
  applyInstructionProgress: {
1533
- source: "openspec-instructions-apply";
1534
- complete: number;
1535
1537
  state: "ready" | "blocked" | "all_done";
1538
+ complete: number;
1536
1539
  total: number;
1537
1540
  remaining: number;
1541
+ source: "openspec-instructions-apply";
1538
1542
  divergence: {
1539
- kind: "tracked-task-mismatch";
1540
1543
  message: string;
1544
+ kind: "tracked-task-mismatch";
1541
1545
  apply: {
1542
1546
  complete: number;
1543
1547
  total: number;
1544
1548
  remaining: number;
1545
1549
  };
1546
1550
  tracked: {
1551
+ completed: number;
1547
1552
  total: number;
1548
1553
  remaining: number;
1549
- completed: number;
1550
- phase: "no-tasks" | "complete" | "in-progress";
1554
+ phase: "no-tasks" | "in-progress" | "complete";
1551
1555
  };
1552
1556
  } | null;
1553
1557
  };
1554
- context?: string | undefined;
1555
1558
  references?: z.objectInputType<{
1556
1559
  store_id: z.ZodString;
1557
1560
  root: z.ZodOptional<z.ZodString>;
@@ -1587,7 +1590,10 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1587
1590
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1588
1591
  fetch: z.ZodOptional<z.ZodString>;
1589
1592
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1593
+ context?: string | undefined;
1594
+ warnings?: string[] | undefined;
1590
1595
  missingArtifacts?: string[] | undefined;
1596
+ missingPrerequisites?: string[] | undefined;
1591
1597
  operationGuidance?: string[] | undefined;
1592
1598
  }>;
1593
1599
  declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
@@ -1614,15 +1620,17 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1614
1620
  done: z.ZodBoolean;
1615
1621
  }, "strip", z.ZodTypeAny, {
1616
1622
  id: string;
1617
- done: boolean;
1618
1623
  description: string;
1624
+ done: boolean;
1619
1625
  }, {
1620
1626
  id: string;
1621
- done: boolean;
1622
1627
  description: string;
1628
+ done: boolean;
1623
1629
  }>, "many">;
1624
1630
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1625
1631
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1632
+ missingPrerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1633
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1626
1634
  instruction: z.ZodString;
1627
1635
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1628
1636
  store_id: z.ZodString;
@@ -1875,8 +1883,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1875
1883
  command: z.ZodLiteral<"instructions apply">;
1876
1884
  }, z.ZodTypeAny, "passthrough">>;
1877
1885
  }, "strip", z.ZodTypeAny, {
1878
- changeName: string;
1879
- schemaName: string;
1886
+ state: "ready" | "blocked" | "all_done";
1887
+ tasks: {
1888
+ id: string;
1889
+ description: string;
1890
+ done: boolean;
1891
+ }[];
1880
1892
  evidence: {
1881
1893
  success: boolean;
1882
1894
  stdout: string;
@@ -1903,21 +1915,16 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1903
1915
  } & {
1904
1916
  [k: string]: unknown;
1905
1917
  };
1906
- changeDir: string;
1907
- instruction: string;
1908
- contextFiles: Record<string, string[]>;
1909
- tasks: {
1910
- id: string;
1911
- done: boolean;
1912
- description: string;
1913
- }[];
1914
- state: "ready" | "blocked" | "all_done";
1915
1918
  progress: {
1916
1919
  complete: number;
1917
1920
  total: number;
1918
1921
  remaining: number;
1919
1922
  };
1920
- context?: string | undefined;
1923
+ changeName: string;
1924
+ schemaName: string;
1925
+ changeDir: string;
1926
+ instruction: string;
1927
+ contextFiles: Record<string, string[]>;
1921
1928
  references?: z.objectOutputType<{
1922
1929
  store_id: z.ZodString;
1923
1930
  root: z.ZodOptional<z.ZodString>;
@@ -1953,11 +1960,18 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1953
1960
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1954
1961
  fetch: z.ZodOptional<z.ZodString>;
1955
1962
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1963
+ context?: string | undefined;
1964
+ warnings?: string[] | undefined;
1956
1965
  missingArtifacts?: string[] | undefined;
1966
+ missingPrerequisites?: string[] | undefined;
1957
1967
  operationGuidance?: string[] | undefined;
1958
1968
  }, {
1959
- changeName: string;
1960
- schemaName: string;
1969
+ state: "ready" | "blocked" | "all_done";
1970
+ tasks: {
1971
+ id: string;
1972
+ description: string;
1973
+ done: boolean;
1974
+ }[];
1961
1975
  evidence: {
1962
1976
  success: boolean;
1963
1977
  stdout: string;
@@ -1984,21 +1998,16 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1984
1998
  } & {
1985
1999
  [k: string]: unknown;
1986
2000
  };
1987
- changeDir: string;
1988
- instruction: string;
1989
- contextFiles: Record<string, string | string[]>;
1990
- tasks: {
1991
- id: string;
1992
- done: boolean;
1993
- description: string;
1994
- }[];
1995
- state: "ready" | "blocked" | "all_done";
1996
2001
  progress: {
1997
2002
  complete: number;
1998
2003
  total: number;
1999
2004
  remaining: number;
2000
2005
  };
2001
- context?: string | undefined;
2006
+ changeName: string;
2007
+ schemaName: string;
2008
+ changeDir: string;
2009
+ instruction: string;
2010
+ contextFiles: Record<string, string | string[]>;
2002
2011
  references?: z.objectInputType<{
2003
2012
  store_id: z.ZodString;
2004
2013
  root: z.ZodOptional<z.ZodString>;
@@ -2034,12 +2043,19 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2034
2043
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2035
2044
  fetch: z.ZodOptional<z.ZodString>;
2036
2045
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2046
+ context?: string | undefined;
2047
+ warnings?: string[] | undefined;
2037
2048
  missingArtifacts?: string[] | undefined;
2049
+ missingPrerequisites?: string[] | undefined;
2038
2050
  operationGuidance?: string[] | undefined;
2039
2051
  }>, {
2040
2052
  applyInstructionProgress: ApplyInstructionProgress;
2041
- changeName: string;
2042
- schemaName: string;
2053
+ state: "ready" | "blocked" | "all_done";
2054
+ tasks: {
2055
+ id: string;
2056
+ description: string;
2057
+ done: boolean;
2058
+ }[];
2043
2059
  evidence: {
2044
2060
  success: boolean;
2045
2061
  stdout: string;
@@ -2066,16 +2082,11 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2066
2082
  } & {
2067
2083
  [k: string]: unknown;
2068
2084
  };
2085
+ changeName: string;
2086
+ schemaName: string;
2069
2087
  changeDir: string;
2070
2088
  instruction: string;
2071
2089
  contextFiles: Record<string, string[]>;
2072
- tasks: {
2073
- id: string;
2074
- done: boolean;
2075
- description: string;
2076
- }[];
2077
- state: "ready" | "blocked" | "all_done";
2078
- context?: string | undefined;
2079
2090
  references?: z.objectOutputType<{
2080
2091
  store_id: z.ZodString;
2081
2092
  root: z.ZodOptional<z.ZodString>;
@@ -2111,11 +2122,18 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2111
2122
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2112
2123
  fetch: z.ZodOptional<z.ZodString>;
2113
2124
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2125
+ context?: string | undefined;
2126
+ warnings?: string[] | undefined;
2114
2127
  missingArtifacts?: string[] | undefined;
2128
+ missingPrerequisites?: string[] | undefined;
2115
2129
  operationGuidance?: string[] | undefined;
2116
2130
  }, {
2117
- changeName: string;
2118
- schemaName: string;
2131
+ state: "ready" | "blocked" | "all_done";
2132
+ tasks: {
2133
+ id: string;
2134
+ description: string;
2135
+ done: boolean;
2136
+ }[];
2119
2137
  evidence: {
2120
2138
  success: boolean;
2121
2139
  stdout: string;
@@ -2142,21 +2160,16 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2142
2160
  } & {
2143
2161
  [k: string]: unknown;
2144
2162
  };
2145
- changeDir: string;
2146
- instruction: string;
2147
- contextFiles: Record<string, string | string[]>;
2148
- tasks: {
2149
- id: string;
2150
- done: boolean;
2151
- description: string;
2152
- }[];
2153
- state: "ready" | "blocked" | "all_done";
2154
2163
  progress: {
2155
2164
  complete: number;
2156
2165
  total: number;
2157
2166
  remaining: number;
2158
2167
  };
2159
- context?: string | undefined;
2168
+ changeName: string;
2169
+ schemaName: string;
2170
+ changeDir: string;
2171
+ instruction: string;
2172
+ contextFiles: Record<string, string | string[]>;
2160
2173
  references?: z.objectInputType<{
2161
2174
  store_id: z.ZodString;
2162
2175
  root: z.ZodOptional<z.ZodString>;
@@ -2192,7 +2205,10 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2192
2205
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2193
2206
  fetch: z.ZodOptional<z.ZodString>;
2194
2207
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2208
+ context?: string | undefined;
2209
+ warnings?: string[] | undefined;
2195
2210
  missingArtifacts?: string[] | undefined;
2211
+ missingPrerequisites?: string[] | undefined;
2196
2212
  operationGuidance?: string[] | undefined;
2197
2213
  }>, z.ZodObject<{
2198
2214
  changeName: z.ZodString;
@@ -2205,15 +2221,17 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2205
2221
  done: z.ZodBoolean;
2206
2222
  }, "strip", z.ZodTypeAny, {
2207
2223
  id: string;
2208
- done: boolean;
2209
2224
  description: string;
2225
+ done: boolean;
2210
2226
  }, {
2211
2227
  id: string;
2212
- done: boolean;
2213
2228
  description: string;
2229
+ done: boolean;
2214
2230
  }>, "many">;
2215
2231
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
2216
2232
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2233
+ missingPrerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2234
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2217
2235
  instruction: z.ZodString;
2218
2236
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2219
2237
  store_id: z.ZodString;
@@ -2493,91 +2511,95 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2493
2511
  remaining: z.ZodNumber;
2494
2512
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
2495
2513
  }, "strip", z.ZodTypeAny, {
2514
+ completed: number;
2496
2515
  total: number;
2497
2516
  remaining: number;
2498
- completed: number;
2499
- phase: "no-tasks" | "complete" | "in-progress";
2517
+ phase: "no-tasks" | "in-progress" | "complete";
2500
2518
  }, {
2519
+ completed: number;
2501
2520
  total: number;
2502
2521
  remaining: number;
2503
- completed: number;
2504
- phase: "no-tasks" | "complete" | "in-progress";
2522
+ phase: "no-tasks" | "in-progress" | "complete";
2505
2523
  }>;
2506
2524
  }, "strip", z.ZodTypeAny, {
2507
- kind: "tracked-task-mismatch";
2508
2525
  message: string;
2526
+ kind: "tracked-task-mismatch";
2509
2527
  apply: {
2510
2528
  complete: number;
2511
2529
  total: number;
2512
2530
  remaining: number;
2513
2531
  };
2514
2532
  tracked: {
2533
+ completed: number;
2515
2534
  total: number;
2516
2535
  remaining: number;
2517
- completed: number;
2518
- phase: "no-tasks" | "complete" | "in-progress";
2536
+ phase: "no-tasks" | "in-progress" | "complete";
2519
2537
  };
2520
2538
  }, {
2521
- kind: "tracked-task-mismatch";
2522
2539
  message: string;
2540
+ kind: "tracked-task-mismatch";
2523
2541
  apply: {
2524
2542
  complete: number;
2525
2543
  total: number;
2526
2544
  remaining: number;
2527
2545
  };
2528
2546
  tracked: {
2547
+ completed: number;
2529
2548
  total: number;
2530
2549
  remaining: number;
2531
- completed: number;
2532
- phase: "no-tasks" | "complete" | "in-progress";
2550
+ phase: "no-tasks" | "in-progress" | "complete";
2533
2551
  };
2534
2552
  }>>;
2535
2553
  }, "strip", z.ZodTypeAny, {
2536
- source: "openspec-instructions-apply";
2537
- complete: number;
2538
2554
  state: "ready" | "blocked" | "all_done";
2555
+ complete: number;
2539
2556
  total: number;
2540
2557
  remaining: number;
2558
+ source: "openspec-instructions-apply";
2541
2559
  divergence: {
2542
- kind: "tracked-task-mismatch";
2543
2560
  message: string;
2561
+ kind: "tracked-task-mismatch";
2544
2562
  apply: {
2545
2563
  complete: number;
2546
2564
  total: number;
2547
2565
  remaining: number;
2548
2566
  };
2549
2567
  tracked: {
2568
+ completed: number;
2550
2569
  total: number;
2551
2570
  remaining: number;
2552
- completed: number;
2553
- phase: "no-tasks" | "complete" | "in-progress";
2571
+ phase: "no-tasks" | "in-progress" | "complete";
2554
2572
  };
2555
2573
  } | null;
2556
2574
  }, {
2557
- source: "openspec-instructions-apply";
2558
- complete: number;
2559
2575
  state: "ready" | "blocked" | "all_done";
2576
+ complete: number;
2560
2577
  total: number;
2561
2578
  remaining: number;
2579
+ source: "openspec-instructions-apply";
2562
2580
  divergence: {
2563
- kind: "tracked-task-mismatch";
2564
2581
  message: string;
2582
+ kind: "tracked-task-mismatch";
2565
2583
  apply: {
2566
2584
  complete: number;
2567
2585
  total: number;
2568
2586
  remaining: number;
2569
2587
  };
2570
2588
  tracked: {
2589
+ completed: number;
2571
2590
  total: number;
2572
2591
  remaining: number;
2573
- completed: number;
2574
- phase: "no-tasks" | "complete" | "in-progress";
2592
+ phase: "no-tasks" | "in-progress" | "complete";
2575
2593
  };
2576
2594
  } | null;
2577
2595
  }>;
2578
2596
  }, "strip", z.ZodTypeAny, {
2579
- changeName: string;
2580
- schemaName: string;
2597
+ state: "ready" | "blocked" | "all_done";
2598
+ tasks: {
2599
+ id: string;
2600
+ description: string;
2601
+ done: boolean;
2602
+ }[];
2581
2603
  evidence: {
2582
2604
  success: boolean;
2583
2605
  stdout: string;
@@ -2604,38 +2626,33 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2604
2626
  } & {
2605
2627
  [k: string]: unknown;
2606
2628
  };
2629
+ changeName: string;
2630
+ schemaName: string;
2607
2631
  changeDir: string;
2608
2632
  instruction: string;
2609
2633
  contextFiles: Record<string, string[]>;
2610
- tasks: {
2611
- id: string;
2612
- done: boolean;
2613
- description: string;
2614
- }[];
2615
- state: "ready" | "blocked" | "all_done";
2616
2634
  applyInstructionProgress: {
2617
- source: "openspec-instructions-apply";
2618
- complete: number;
2619
2635
  state: "ready" | "blocked" | "all_done";
2636
+ complete: number;
2620
2637
  total: number;
2621
2638
  remaining: number;
2639
+ source: "openspec-instructions-apply";
2622
2640
  divergence: {
2623
- kind: "tracked-task-mismatch";
2624
2641
  message: string;
2642
+ kind: "tracked-task-mismatch";
2625
2643
  apply: {
2626
2644
  complete: number;
2627
2645
  total: number;
2628
2646
  remaining: number;
2629
2647
  };
2630
2648
  tracked: {
2649
+ completed: number;
2631
2650
  total: number;
2632
2651
  remaining: number;
2633
- completed: number;
2634
- phase: "no-tasks" | "complete" | "in-progress";
2652
+ phase: "no-tasks" | "in-progress" | "complete";
2635
2653
  };
2636
2654
  } | null;
2637
2655
  };
2638
- context?: string | undefined;
2639
2656
  references?: z.objectOutputType<{
2640
2657
  store_id: z.ZodString;
2641
2658
  root: z.ZodOptional<z.ZodString>;
@@ -2671,11 +2688,18 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2671
2688
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2672
2689
  fetch: z.ZodOptional<z.ZodString>;
2673
2690
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2691
+ context?: string | undefined;
2692
+ warnings?: string[] | undefined;
2674
2693
  missingArtifacts?: string[] | undefined;
2694
+ missingPrerequisites?: string[] | undefined;
2675
2695
  operationGuidance?: string[] | undefined;
2676
2696
  }, {
2677
- changeName: string;
2678
- schemaName: string;
2697
+ state: "ready" | "blocked" | "all_done";
2698
+ tasks: {
2699
+ id: string;
2700
+ description: string;
2701
+ done: boolean;
2702
+ }[];
2679
2703
  evidence: {
2680
2704
  success: boolean;
2681
2705
  stdout: string;
@@ -2702,38 +2726,33 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2702
2726
  } & {
2703
2727
  [k: string]: unknown;
2704
2728
  };
2729
+ changeName: string;
2730
+ schemaName: string;
2705
2731
  changeDir: string;
2706
2732
  instruction: string;
2707
2733
  contextFiles: Record<string, string | string[]>;
2708
- tasks: {
2709
- id: string;
2710
- done: boolean;
2711
- description: string;
2712
- }[];
2713
- state: "ready" | "blocked" | "all_done";
2714
2734
  applyInstructionProgress: {
2715
- source: "openspec-instructions-apply";
2716
- complete: number;
2717
2735
  state: "ready" | "blocked" | "all_done";
2736
+ complete: number;
2718
2737
  total: number;
2719
2738
  remaining: number;
2739
+ source: "openspec-instructions-apply";
2720
2740
  divergence: {
2721
- kind: "tracked-task-mismatch";
2722
2741
  message: string;
2742
+ kind: "tracked-task-mismatch";
2723
2743
  apply: {
2724
2744
  complete: number;
2725
2745
  total: number;
2726
2746
  remaining: number;
2727
2747
  };
2728
2748
  tracked: {
2749
+ completed: number;
2729
2750
  total: number;
2730
2751
  remaining: number;
2731
- completed: number;
2732
- phase: "no-tasks" | "complete" | "in-progress";
2752
+ phase: "no-tasks" | "in-progress" | "complete";
2733
2753
  };
2734
2754
  } | null;
2735
2755
  };
2736
- context?: string | undefined;
2737
2756
  references?: z.objectInputType<{
2738
2757
  store_id: z.ZodString;
2739
2758
  root: z.ZodOptional<z.ZodString>;
@@ -2769,7 +2788,10 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2769
2788
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2770
2789
  fetch: z.ZodOptional<z.ZodString>;
2771
2790
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2791
+ context?: string | undefined;
2792
+ warnings?: string[] | undefined;
2772
2793
  missingArtifacts?: string[] | undefined;
2794
+ missingPrerequisites?: string[] | undefined;
2773
2795
  operationGuidance?: string[] | undefined;
2774
2796
  }>>;
2775
2797
  type ApplyInstructions = z.infer<typeof ApplyInstructionsSchema>;
@@ -2923,7 +2945,6 @@ declare const ArchiveInstructionsSchema: z.ZodObject<{
2923
2945
  command: z.ZodLiteral<"instructions archive">;
2924
2946
  }, z.ZodTypeAny, "passthrough">>;
2925
2947
  }, "strip", z.ZodTypeAny, {
2926
- changeName: string;
2927
2948
  evidence: {
2928
2949
  success: boolean;
2929
2950
  stdout: string;
@@ -2950,10 +2971,10 @@ declare const ArchiveInstructionsSchema: z.ZodObject<{
2950
2971
  } & {
2951
2972
  [k: string]: unknown;
2952
2973
  };
2974
+ changeName: string;
2953
2975
  context?: string | undefined;
2954
2976
  operationGuidance?: string[] | undefined;
2955
2977
  }, {
2956
- changeName: string;
2957
2978
  evidence: {
2958
2979
  success: boolean;
2959
2980
  stdout: string;
@@ -2980,6 +3001,7 @@ declare const ArchiveInstructionsSchema: z.ZodObject<{
2980
3001
  } & {
2981
3002
  [k: string]: unknown;
2982
3003
  };
3004
+ changeName: string;
2983
3005
  context?: string | undefined;
2984
3006
  operationGuidance?: string[] | undefined;
2985
3007
  }>;
@@ -3004,14 +3026,14 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3004
3026
  }, "strip", z.ZodTypeAny, {
3005
3027
  path: string;
3006
3028
  id: string;
3007
- done: boolean;
3008
3029
  description: string;
3030
+ done: boolean;
3009
3031
  skipped?: boolean | undefined;
3010
3032
  }, {
3011
3033
  path: string;
3012
3034
  id: string;
3013
- done: boolean;
3014
3035
  description: string;
3036
+ done: boolean;
3015
3037
  skipped?: boolean | undefined;
3016
3038
  }>, "many">;
3017
3039
  unlocks: z.ZodArray<z.ZodString, "many">;
@@ -3264,8 +3286,7 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3264
3286
  command: z.ZodLiteral<"instructions">;
3265
3287
  }, z.ZodTypeAny, "passthrough">>;
3266
3288
  }, "strip", z.ZodTypeAny, {
3267
- changeName: string;
3268
- schemaName: string;
3289
+ artifactId: string;
3269
3290
  outputPath: string;
3270
3291
  evidence: {
3271
3292
  success: boolean;
@@ -3293,21 +3314,19 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3293
3314
  } & {
3294
3315
  [k: string]: unknown;
3295
3316
  };
3296
- artifactId: string;
3297
- changeDir: string;
3298
3317
  description: string;
3318
+ changeName: string;
3319
+ schemaName: string;
3320
+ changeDir: string;
3299
3321
  template: string;
3300
3322
  dependencies: {
3301
3323
  path: string;
3302
3324
  id: string;
3303
- done: boolean;
3304
3325
  description: string;
3326
+ done: boolean;
3305
3327
  skipped?: boolean | undefined;
3306
3328
  }[];
3307
3329
  unlocks: string[];
3308
- instruction?: string | null | undefined;
3309
- context?: string | null | undefined;
3310
- rules?: string[] | null | undefined;
3311
3330
  references?: z.objectOutputType<{
3312
3331
  store_id: z.ZodString;
3313
3332
  root: z.ZodOptional<z.ZodString>;
@@ -3343,9 +3362,11 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3343
3362
  }, z.ZodTypeAny, "passthrough">>, "many">>;
3344
3363
  fetch: z.ZodOptional<z.ZodString>;
3345
3364
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3365
+ context?: string | null | undefined;
3366
+ instruction?: string | null | undefined;
3367
+ rules?: string[] | null | undefined;
3346
3368
  }, {
3347
- changeName: string;
3348
- schemaName: string;
3369
+ artifactId: string;
3349
3370
  outputPath: string;
3350
3371
  evidence: {
3351
3372
  success: boolean;
@@ -3373,21 +3394,19 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3373
3394
  } & {
3374
3395
  [k: string]: unknown;
3375
3396
  };
3376
- artifactId: string;
3377
- changeDir: string;
3378
3397
  description: string;
3398
+ changeName: string;
3399
+ schemaName: string;
3400
+ changeDir: string;
3379
3401
  template: string;
3380
3402
  dependencies: {
3381
3403
  path: string;
3382
3404
  id: string;
3383
- done: boolean;
3384
3405
  description: string;
3406
+ done: boolean;
3385
3407
  skipped?: boolean | undefined;
3386
3408
  }[];
3387
3409
  unlocks: string[];
3388
- instruction?: string | null | undefined;
3389
- context?: string | null | undefined;
3390
- rules?: string[] | null | undefined;
3391
3410
  references?: z.objectInputType<{
3392
3411
  store_id: z.ZodString;
3393
3412
  root: z.ZodOptional<z.ZodString>;
@@ -3423,6 +3442,9 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3423
3442
  }, z.ZodTypeAny, "passthrough">>, "many">>;
3424
3443
  fetch: z.ZodOptional<z.ZodString>;
3425
3444
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3445
+ context?: string | null | undefined;
3446
+ instruction?: string | null | undefined;
3447
+ rules?: string[] | null | undefined;
3426
3448
  }>;
3427
3449
  type ArtifactInstructions = z.infer<typeof ArtifactInstructionsSchema>;
3428
3450
  /** CLI-owned Schema list item projected by OPSX. */
@@ -3583,6 +3605,7 @@ declare const SchemaDetailSchema: z.ZodObject<{
3583
3605
  applyTracks: z.ZodOptional<z.ZodString>;
3584
3606
  applyInstruction: z.ZodOptional<z.ZodString>;
3585
3607
  }, "strip", z.ZodTypeAny, {
3608
+ name: string;
3586
3609
  applyRequires: string[];
3587
3610
  artifacts: {
3588
3611
  id: string;
@@ -3592,12 +3615,12 @@ declare const SchemaDetailSchema: z.ZodObject<{
3592
3615
  instruction?: string | undefined;
3593
3616
  template?: string | undefined;
3594
3617
  }[];
3595
- name: string;
3596
- description?: string | undefined;
3597
3618
  version?: string | number | undefined;
3619
+ description?: string | undefined;
3598
3620
  applyTracks?: string | undefined;
3599
3621
  applyInstruction?: string | undefined;
3600
3622
  }, {
3623
+ name: string;
3601
3624
  applyRequires: string[];
3602
3625
  artifacts: {
3603
3626
  id: string;
@@ -3607,9 +3630,8 @@ declare const SchemaDetailSchema: z.ZodObject<{
3607
3630
  instruction?: string | undefined;
3608
3631
  template?: string | undefined;
3609
3632
  }[];
3610
- name: string;
3611
- description?: string | undefined;
3612
3633
  version?: string | number | undefined;
3634
+ description?: string | undefined;
3613
3635
  applyTracks?: string | undefined;
3614
3636
  applyInstruction?: string | undefined;
3615
3637
  }>;
@@ -3662,6 +3684,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3662
3684
  applyTracks: z.ZodOptional<z.ZodString>;
3663
3685
  applyInstruction: z.ZodOptional<z.ZodString>;
3664
3686
  }, "strip", z.ZodTypeAny, {
3687
+ name: string;
3665
3688
  applyRequires: string[];
3666
3689
  artifacts: {
3667
3690
  id: string;
@@ -3671,12 +3694,12 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3671
3694
  instruction?: string | undefined;
3672
3695
  template?: string | undefined;
3673
3696
  }[];
3674
- name: string;
3675
- description?: string | undefined;
3676
3697
  version?: string | number | undefined;
3698
+ description?: string | undefined;
3677
3699
  applyTracks?: string | undefined;
3678
3700
  applyInstruction?: string | undefined;
3679
3701
  }, {
3702
+ name: string;
3680
3703
  applyRequires: string[];
3681
3704
  artifacts: {
3682
3705
  id: string;
@@ -3686,9 +3709,8 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3686
3709
  instruction?: string | undefined;
3687
3710
  template?: string | undefined;
3688
3711
  }[];
3689
- name: string;
3690
- description?: string | undefined;
3691
3712
  version?: string | number | undefined;
3713
+ description?: string | undefined;
3692
3714
  applyTracks?: string | undefined;
3693
3715
  applyInstruction?: string | undefined;
3694
3716
  }>>>;
@@ -3767,6 +3789,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3767
3789
  source: z.ZodEnum<["project", "user", "package"]>;
3768
3790
  }, z.ZodTypeAny, "passthrough">[];
3769
3791
  schemaDetails: Record<string, {
3792
+ name: string;
3770
3793
  applyRequires: string[];
3771
3794
  artifacts: {
3772
3795
  id: string;
@@ -3776,9 +3799,8 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3776
3799
  instruction?: string | undefined;
3777
3800
  template?: string | undefined;
3778
3801
  }[];
3779
- name: string;
3780
- description?: string | undefined;
3781
3802
  version?: string | number | undefined;
3803
+ description?: string | undefined;
3782
3804
  applyTracks?: string | undefined;
3783
3805
  applyInstruction?: string | undefined;
3784
3806
  } | null>;
@@ -3813,6 +3835,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3813
3835
  source: z.ZodEnum<["project", "user", "package"]>;
3814
3836
  }, z.ZodTypeAny, "passthrough">[];
3815
3837
  schemaDetails: Record<string, {
3838
+ name: string;
3816
3839
  applyRequires: string[];
3817
3840
  artifacts: {
3818
3841
  id: string;
@@ -3822,9 +3845,8 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3822
3845
  instruction?: string | undefined;
3823
3846
  template?: string | undefined;
3824
3847
  }[];
3825
- name: string;
3826
- description?: string | undefined;
3827
3848
  version?: string | number | undefined;
3849
+ description?: string | undefined;
3828
3850
  applyTracks?: string | undefined;
3829
3851
  applyInstruction?: string | undefined;
3830
3852
  } | null>;