@openspecui/core 13.0.1 → 14.0.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 (49) hide show
  1. package/dist/{active-root-config-wpH_ZblJ.d.mts → active-root-config-EIowq49O.d.mts} +15 -15
  2. package/dist/active-root-config.d.mts +4 -4
  3. package/dist/app-daemon-control.d.mts +59 -59
  4. package/dist/{cli-projection-0tdEPnTe.d.mts → cli-projection-e0TxFXmU.d.mts} +1 -1
  5. package/dist/cli-projection.d.mts +4 -4
  6. package/dist/{command-result-DfCY18TD.mjs → command-result-BBsaUYw2.mjs} +88 -8
  7. package/dist/{dashboard-summary-transport-uE7nCxmD.d.mts → dashboard-summary-transport-B7L2JSs-.d.mts} +3127 -2936
  8. package/dist/dashboard-summary-transport.d.mts +17 -17
  9. package/dist/hosted-app.d.mts +17 -17
  10. package/dist/hosted-contract.d.mts +17 -17
  11. package/dist/{index-DPsUTX4C.d.mts → index-D8GM018H.d.mts} +1331 -64
  12. package/dist/index.d.mts +17 -17
  13. package/dist/index.mjs +174 -43
  14. package/dist/{local-download-profiles-CsKGe_qF.d.mts → local-download-profiles-DWHZXsY_.d.mts} +1 -1
  15. package/dist/local-download-profiles.d.mts +2 -2
  16. package/dist/{notifications-B8Ael_hq.d.mts → notifications-BPz-EXzD.d.mts} +7 -7
  17. package/dist/notifications.d.mts +2 -2
  18. package/dist/{openspec-compat-CNMMuTot.mjs → openspec-compat-B1OCT-hK.mjs} +14 -13
  19. package/dist/openspec-compat.d.mts +3 -3
  20. package/dist/openspec-compat.mjs +2 -2
  21. package/dist/{openspec-projection-xOnjhQ7v.d.mts → openspec-projection-Bh3BECEE.d.mts} +1 -1
  22. package/dist/openspec-projection.d.mts +2 -2
  23. package/dist/{opsx-entity-DsigFL5Z.d.mts → opsx-entity-Q_C0zjFo.d.mts} +2 -2
  24. package/dist/opsx-entity.d.mts +6 -6
  25. package/dist/{opsx-schema-detail-IlY4T5vO.d.mts → opsx-schema-detail-DhoLJ6GN.d.mts} +2 -2
  26. package/dist/opsx-schema-detail.d.mts +7 -7
  27. package/dist/{opsx-types-r1oKVWgZ.d.mts → opsx-types-FvNmqVVh.d.mts} +345 -198
  28. package/dist/{planning-cli-projection-C4eG7-Yr.mjs → planning-cli-projection-DJ9Llzan.mjs} +62 -7
  29. package/dist/planning-cli-projection.d.mts +17 -17
  30. package/dist/planning-cli-projection.mjs +3 -3
  31. package/dist/{schemas-pfpqDlAd.d.mts → schemas-DqfpM3ZI.d.mts} +2 -2
  32. package/dist/{sounds-B0GiWqBN.d.mts → sounds-DbXwtc44.d.mts} +5 -5
  33. package/dist/sounds.d.mts +1 -1
  34. package/dist/{spec-catalog-B8TIBzwP.mjs → spec-catalog-Ce-UQqxo.mjs} +14 -1
  35. package/dist/spec-catalog.d.mts +17 -17
  36. package/dist/spec-catalog.mjs +2 -2
  37. package/dist/{store-mutation-protocol-DXeWtAvN.d.mts → store-mutation-protocol-C9xgZkNh.d.mts} +24 -24
  38. package/dist/store-mutation-protocol.d.mts +1 -1
  39. package/dist/{store-types-BghVB9Qj.d.mts → store-types-WFLdYbRL.d.mts} +1 -1
  40. package/dist/store-types.d.mts +4 -4
  41. package/dist/task-progress.d.mts +5 -5
  42. package/dist/{terminal-audio-BpfUW_eB.d.mts → terminal-audio-Bg8XXd3h.d.mts} +2 -2
  43. package/dist/terminal-audio.d.mts +2 -2
  44. package/dist/terminal-control.d.mts +2 -2
  45. package/dist/{terminal-invocation-CYibC-WC.d.mts → terminal-invocation-CLNVHNYw.d.mts} +22 -22
  46. package/dist/terminal-invocation.d.mts +1 -1
  47. package/dist/{translator-BdTMcSWN.d.mts → translator-BW01wfHG.d.mts} +58 -58
  48. package/dist/translator.d.mts +1 -1
  49. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
- import { Tt as CliJsonValue } from "./index-DPsUTX4C.mjs";
2
- import { n as ChangeFile, v as Task } from "./schemas-pfpqDlAd.mjs";
1
+ import { Tt as CliJsonValue } from "./index-D8GM018H.mjs";
2
+ import { n as ChangeFile, v as Task } from "./schemas-DqfpM3ZI.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/task-progress.d.ts
@@ -449,6 +449,14 @@ declare const ChangeStatusSchema: z.ZodObject<{
449
449
  missingDeps?: string[] | undefined;
450
450
  relativePath?: string | undefined;
451
451
  }>, "many">;
452
+ /**
453
+ * OpenSpec 1.14 top-level advisory warnings (unrecognized `.openspec.yaml` keys).
454
+ * Verbatim CLI evidence, absent when the CLI omitted it — never a synthesized empty
455
+ * array and never a gate on planning facts or actions. The Kernel's
456
+ * `projectWorkflowStatus` rebuild copies this member explicitly because the
457
+ * decode-side `.passthrough()` retention does not survive the object rebuild.
458
+ */
459
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
452
460
  provenance: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
453
461
  kind: z.ZodLiteral<"cli">;
454
462
  planningHome: z.ZodObject<{
@@ -692,32 +700,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
692
700
  } & {
693
701
  [k: string]: unknown;
694
702
  };
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
- };
721
703
  planningHome: {
722
704
  kind: "repo";
723
705
  root: string;
@@ -746,22 +728,13 @@ declare const ChangeStatusSchema: z.ZodObject<{
746
728
  } & {
747
729
  [k: string]: unknown;
748
730
  };
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
731
  evidence: {
759
732
  success: boolean;
760
733
  stdout: string;
761
734
  stderr: string;
762
735
  exitCode: number | null;
763
736
  payload: CliJsonValue;
764
- diagnostics: z.objectInputType<{
737
+ diagnostics: z.objectOutputType<{
765
738
  severity: z.ZodEnum<["error", "warning", "info"]>;
766
739
  code: z.ZodString;
767
740
  message: z.ZodString;
@@ -773,7 +746,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
773
746
  store?: string | undefined;
774
747
  };
775
748
  contractError?: string | undefined;
776
- root?: z.objectInputType<{
749
+ root?: z.objectOutputType<{
777
750
  path: z.ZodString;
778
751
  source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
779
752
  store_id: z.ZodOptional<z.ZodString>;
@@ -781,6 +754,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
781
754
  } & {
782
755
  [k: string]: unknown;
783
756
  };
757
+ }, {
758
+ kind: "cli";
759
+ root: {
760
+ path: string;
761
+ source: "store" | "declared" | "nearest" | "global_default" | "implicit";
762
+ store_id?: string | undefined;
763
+ } & {
764
+ [k: string]: unknown;
765
+ };
784
766
  planningHome: {
785
767
  kind: "repo";
786
768
  root: string;
@@ -809,6 +791,32 @@ declare const ChangeStatusSchema: z.ZodObject<{
809
791
  } & {
810
792
  [k: string]: unknown;
811
793
  };
794
+ evidence: {
795
+ success: boolean;
796
+ stdout: string;
797
+ stderr: string;
798
+ exitCode: number | null;
799
+ payload: CliJsonValue;
800
+ diagnostics: z.objectInputType<{
801
+ severity: z.ZodEnum<["error", "warning", "info"]>;
802
+ code: z.ZodString;
803
+ message: z.ZodString;
804
+ target: z.ZodOptional<z.ZodString>;
805
+ fix: z.ZodOptional<z.ZodString>;
806
+ }, z.ZodTypeAny, "passthrough">[];
807
+ command: "status";
808
+ selector: {
809
+ store?: string | undefined;
810
+ };
811
+ contractError?: string | undefined;
812
+ root?: z.objectInputType<{
813
+ path: z.ZodString;
814
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
815
+ store_id: z.ZodOptional<z.ZodString>;
816
+ }, z.ZodTypeAny, "passthrough"> | undefined;
817
+ } & {
818
+ [k: string]: unknown;
819
+ };
812
820
  }>, z.ZodObject<{
813
821
  kind: z.ZodLiteral<"static">;
814
822
  }, "strip", z.ZodTypeAny, {
@@ -838,32 +846,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
838
846
  } & {
839
847
  [k: string]: unknown;
840
848
  };
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
- };
867
849
  planningHome: {
868
850
  kind: "repo";
869
851
  root: string;
@@ -892,9 +874,36 @@ declare const ChangeStatusSchema: z.ZodObject<{
892
874
  } & {
893
875
  [k: string]: unknown;
894
876
  };
877
+ evidence: {
878
+ success: boolean;
879
+ stdout: string;
880
+ stderr: string;
881
+ exitCode: number | null;
882
+ payload: CliJsonValue;
883
+ diagnostics: z.objectOutputType<{
884
+ severity: z.ZodEnum<["error", "warning", "info"]>;
885
+ code: z.ZodString;
886
+ message: z.ZodString;
887
+ target: z.ZodOptional<z.ZodString>;
888
+ fix: z.ZodOptional<z.ZodString>;
889
+ }, z.ZodTypeAny, "passthrough">[];
890
+ command: "status";
891
+ selector: {
892
+ store?: string | undefined;
893
+ };
894
+ contractError?: string | undefined;
895
+ root?: z.objectOutputType<{
896
+ path: z.ZodString;
897
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
898
+ store_id: z.ZodOptional<z.ZodString>;
899
+ }, z.ZodTypeAny, "passthrough"> | undefined;
900
+ } & {
901
+ [k: string]: unknown;
902
+ };
895
903
  } | {
896
904
  kind: "static";
897
905
  };
906
+ warnings?: string[] | undefined;
898
907
  }, {
899
908
  changeName: string;
900
909
  schemaName: string;
@@ -917,32 +926,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
917
926
  } & {
918
927
  [k: string]: unknown;
919
928
  };
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
- };
946
929
  planningHome: {
947
930
  kind: "repo";
948
931
  root: string;
@@ -971,9 +954,36 @@ declare const ChangeStatusSchema: z.ZodObject<{
971
954
  } & {
972
955
  [k: string]: unknown;
973
956
  };
957
+ evidence: {
958
+ success: boolean;
959
+ stdout: string;
960
+ stderr: string;
961
+ exitCode: number | null;
962
+ payload: CliJsonValue;
963
+ diagnostics: z.objectInputType<{
964
+ severity: z.ZodEnum<["error", "warning", "info"]>;
965
+ code: z.ZodString;
966
+ message: z.ZodString;
967
+ target: z.ZodOptional<z.ZodString>;
968
+ fix: z.ZodOptional<z.ZodString>;
969
+ }, z.ZodTypeAny, "passthrough">[];
970
+ command: "status";
971
+ selector: {
972
+ store?: string | undefined;
973
+ };
974
+ contractError?: string | undefined;
975
+ root?: z.objectInputType<{
976
+ path: z.ZodString;
977
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
978
+ store_id: z.ZodOptional<z.ZodString>;
979
+ }, z.ZodTypeAny, "passthrough"> | undefined;
980
+ } & {
981
+ [k: string]: unknown;
982
+ };
974
983
  } | {
975
984
  kind: "static";
976
985
  };
986
+ warnings?: string[] | undefined;
977
987
  }>;
978
988
  type ChangeStatus = z.infer<typeof ChangeStatusSchema>;
979
989
  declare const DependencyInfoSchema: z.ZodObject<{
@@ -985,14 +995,14 @@ declare const DependencyInfoSchema: z.ZodObject<{
985
995
  }, "strip", z.ZodTypeAny, {
986
996
  path: string;
987
997
  id: string;
988
- description: string;
989
998
  done: boolean;
999
+ description: string;
990
1000
  skipped?: boolean | undefined;
991
1001
  }, {
992
1002
  path: string;
993
1003
  id: string;
994
- description: string;
995
1004
  done: boolean;
1005
+ description: string;
996
1006
  skipped?: boolean | undefined;
997
1007
  }>;
998
1008
  type DependencyInfo = z.infer<typeof DependencyInfoSchema>;
@@ -1000,14 +1010,26 @@ declare const ApplyTaskSchema: z.ZodObject<{
1000
1010
  id: z.ZodString;
1001
1011
  description: z.ZodString;
1002
1012
  done: z.ZodBoolean;
1013
+ /**
1014
+ * OpenSpec 1.14 LocatedTask source locations: the absolute `sourcePath` of the file
1015
+ * the checkbox lives in plus its 1-based `line`. Optional because older payloads may
1016
+ * lack them; verbatim CLI evidence, never re-derived or second-guessed, and never an
1017
+ * input to `createApplyInstructionProgress`.
1018
+ */
1019
+ sourcePath: z.ZodOptional<z.ZodString>;
1020
+ line: z.ZodOptional<z.ZodNumber>;
1003
1021
  }, "strip", z.ZodTypeAny, {
1004
1022
  id: string;
1005
- description: string;
1006
1023
  done: boolean;
1024
+ description: string;
1025
+ sourcePath?: string | undefined;
1026
+ line?: number | undefined;
1007
1027
  }, {
1008
1028
  id: string;
1009
- description: string;
1010
1029
  done: boolean;
1030
+ description: string;
1031
+ sourcePath?: string | undefined;
1032
+ line?: number | undefined;
1011
1033
  }>;
1012
1034
  type ApplyTask = z.infer<typeof ApplyTaskSchema>;
1013
1035
  declare const ApplyInstructionsContextFilesSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
@@ -1021,19 +1043,42 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1021
1043
  id: z.ZodString;
1022
1044
  description: z.ZodString;
1023
1045
  done: z.ZodBoolean;
1046
+ /**
1047
+ * OpenSpec 1.14 LocatedTask source locations: the absolute `sourcePath` of the file
1048
+ * the checkbox lives in plus its 1-based `line`. Optional because older payloads may
1049
+ * lack them; verbatim CLI evidence, never re-derived or second-guessed, and never an
1050
+ * input to `createApplyInstructionProgress`.
1051
+ */
1052
+ sourcePath: z.ZodOptional<z.ZodString>;
1053
+ line: z.ZodOptional<z.ZodNumber>;
1024
1054
  }, "strip", z.ZodTypeAny, {
1025
1055
  id: string;
1026
- description: string;
1027
1056
  done: boolean;
1057
+ description: string;
1058
+ sourcePath?: string | undefined;
1059
+ line?: number | undefined;
1028
1060
  }, {
1029
1061
  id: string;
1030
- description: string;
1031
1062
  done: boolean;
1063
+ description: string;
1064
+ sourcePath?: string | undefined;
1065
+ line?: number | undefined;
1032
1066
  }>, "many">;
1033
1067
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1034
1068
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
1069
  missingPrerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1036
1070
  warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1071
+ taskTrackingConfigured: z.ZodOptional<z.ZodBoolean>;
1072
+ unavailableTrackingFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
1073
+ path: z.ZodString;
1074
+ reason: z.ZodString;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ path: string;
1077
+ reason: string;
1078
+ }, {
1079
+ path: string;
1080
+ reason: string;
1081
+ }>, "many">>;
1037
1082
  instruction: z.ZodString;
1038
1083
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1039
1084
  store_id: z.ZodString;
@@ -1324,13 +1369,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1324
1369
  phase: "no-tasks" | "in-progress" | "complete";
1325
1370
  }>;
1326
1371
  }, "strip", z.ZodTypeAny, {
1327
- message: string;
1328
- kind: "tracked-task-mismatch";
1329
1372
  apply: {
1330
1373
  complete: number;
1331
1374
  total: number;
1332
1375
  remaining: number;
1333
1376
  };
1377
+ message: string;
1378
+ kind: "tracked-task-mismatch";
1334
1379
  tracked: {
1335
1380
  completed: number;
1336
1381
  total: number;
@@ -1338,13 +1383,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1338
1383
  phase: "no-tasks" | "in-progress" | "complete";
1339
1384
  };
1340
1385
  }, {
1341
- message: string;
1342
- kind: "tracked-task-mismatch";
1343
1386
  apply: {
1344
1387
  complete: number;
1345
1388
  total: number;
1346
1389
  remaining: number;
1347
1390
  };
1391
+ message: string;
1392
+ kind: "tracked-task-mismatch";
1348
1393
  tracked: {
1349
1394
  completed: number;
1350
1395
  total: number;
@@ -1359,13 +1404,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1359
1404
  remaining: number;
1360
1405
  source: "openspec-instructions-apply";
1361
1406
  divergence: {
1362
- message: string;
1363
- kind: "tracked-task-mismatch";
1364
1407
  apply: {
1365
1408
  complete: number;
1366
1409
  total: number;
1367
1410
  remaining: number;
1368
1411
  };
1412
+ message: string;
1413
+ kind: "tracked-task-mismatch";
1369
1414
  tracked: {
1370
1415
  completed: number;
1371
1416
  total: number;
@@ -1380,13 +1425,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1380
1425
  remaining: number;
1381
1426
  source: "openspec-instructions-apply";
1382
1427
  divergence: {
1383
- message: string;
1384
- kind: "tracked-task-mismatch";
1385
1428
  apply: {
1386
1429
  complete: number;
1387
1430
  total: number;
1388
1431
  remaining: number;
1389
1432
  };
1433
+ message: string;
1434
+ kind: "tracked-task-mismatch";
1390
1435
  tracked: {
1391
1436
  completed: number;
1392
1437
  total: number;
@@ -1399,9 +1444,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1399
1444
  state: "ready" | "blocked" | "all_done";
1400
1445
  tasks: {
1401
1446
  id: string;
1402
- description: string;
1403
1447
  done: boolean;
1448
+ description: string;
1449
+ sourcePath?: string | undefined;
1450
+ line?: number | undefined;
1404
1451
  }[];
1452
+ changeName: string;
1453
+ schemaName: string;
1405
1454
  evidence: {
1406
1455
  success: boolean;
1407
1456
  stdout: string;
@@ -1428,8 +1477,6 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1428
1477
  } & {
1429
1478
  [k: string]: unknown;
1430
1479
  };
1431
- changeName: string;
1432
- schemaName: string;
1433
1480
  changeDir: string;
1434
1481
  instruction: string;
1435
1482
  contextFiles: Record<string, string[]>;
@@ -1440,13 +1487,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1440
1487
  remaining: number;
1441
1488
  source: "openspec-instructions-apply";
1442
1489
  divergence: {
1443
- message: string;
1444
- kind: "tracked-task-mismatch";
1445
1490
  apply: {
1446
1491
  complete: number;
1447
1492
  total: number;
1448
1493
  remaining: number;
1449
1494
  };
1495
+ message: string;
1496
+ kind: "tracked-task-mismatch";
1450
1497
  tracked: {
1451
1498
  completed: number;
1452
1499
  total: number;
@@ -1455,6 +1502,8 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1455
1502
  };
1456
1503
  } | null;
1457
1504
  };
1505
+ warnings?: string[] | undefined;
1506
+ context?: string | undefined;
1458
1507
  references?: z.objectOutputType<{
1459
1508
  store_id: z.ZodString;
1460
1509
  root: z.ZodOptional<z.ZodString>;
@@ -1490,18 +1539,25 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1490
1539
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1491
1540
  fetch: z.ZodOptional<z.ZodString>;
1492
1541
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1493
- context?: string | undefined;
1494
- warnings?: string[] | undefined;
1495
1542
  missingArtifacts?: string[] | undefined;
1496
1543
  missingPrerequisites?: string[] | undefined;
1544
+ taskTrackingConfigured?: boolean | undefined;
1545
+ unavailableTrackingFiles?: {
1546
+ path: string;
1547
+ reason: string;
1548
+ }[] | undefined;
1497
1549
  operationGuidance?: string[] | undefined;
1498
1550
  }, {
1499
1551
  state: "ready" | "blocked" | "all_done";
1500
1552
  tasks: {
1501
1553
  id: string;
1502
- description: string;
1503
1554
  done: boolean;
1555
+ description: string;
1556
+ sourcePath?: string | undefined;
1557
+ line?: number | undefined;
1504
1558
  }[];
1559
+ changeName: string;
1560
+ schemaName: string;
1505
1561
  evidence: {
1506
1562
  success: boolean;
1507
1563
  stdout: string;
@@ -1528,8 +1584,6 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1528
1584
  } & {
1529
1585
  [k: string]: unknown;
1530
1586
  };
1531
- changeName: string;
1532
- schemaName: string;
1533
1587
  changeDir: string;
1534
1588
  instruction: string;
1535
1589
  contextFiles: Record<string, string | string[]>;
@@ -1540,13 +1594,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1540
1594
  remaining: number;
1541
1595
  source: "openspec-instructions-apply";
1542
1596
  divergence: {
1543
- message: string;
1544
- kind: "tracked-task-mismatch";
1545
1597
  apply: {
1546
1598
  complete: number;
1547
1599
  total: number;
1548
1600
  remaining: number;
1549
1601
  };
1602
+ message: string;
1603
+ kind: "tracked-task-mismatch";
1550
1604
  tracked: {
1551
1605
  completed: number;
1552
1606
  total: number;
@@ -1555,6 +1609,8 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1555
1609
  };
1556
1610
  } | null;
1557
1611
  };
1612
+ warnings?: string[] | undefined;
1613
+ context?: string | undefined;
1558
1614
  references?: z.objectInputType<{
1559
1615
  store_id: z.ZodString;
1560
1616
  root: z.ZodOptional<z.ZodString>;
@@ -1590,10 +1646,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1590
1646
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1591
1647
  fetch: z.ZodOptional<z.ZodString>;
1592
1648
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1593
- context?: string | undefined;
1594
- warnings?: string[] | undefined;
1595
1649
  missingArtifacts?: string[] | undefined;
1596
1650
  missingPrerequisites?: string[] | undefined;
1651
+ taskTrackingConfigured?: boolean | undefined;
1652
+ unavailableTrackingFiles?: {
1653
+ path: string;
1654
+ reason: string;
1655
+ }[] | undefined;
1597
1656
  operationGuidance?: string[] | undefined;
1598
1657
  }>;
1599
1658
  declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
@@ -1618,19 +1677,42 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1618
1677
  id: z.ZodString;
1619
1678
  description: z.ZodString;
1620
1679
  done: z.ZodBoolean;
1680
+ /**
1681
+ * OpenSpec 1.14 LocatedTask source locations: the absolute `sourcePath` of the file
1682
+ * the checkbox lives in plus its 1-based `line`. Optional because older payloads may
1683
+ * lack them; verbatim CLI evidence, never re-derived or second-guessed, and never an
1684
+ * input to `createApplyInstructionProgress`.
1685
+ */
1686
+ sourcePath: z.ZodOptional<z.ZodString>;
1687
+ line: z.ZodOptional<z.ZodNumber>;
1621
1688
  }, "strip", z.ZodTypeAny, {
1622
1689
  id: string;
1623
- description: string;
1624
1690
  done: boolean;
1691
+ description: string;
1692
+ sourcePath?: string | undefined;
1693
+ line?: number | undefined;
1625
1694
  }, {
1626
1695
  id: string;
1627
- description: string;
1628
1696
  done: boolean;
1697
+ description: string;
1698
+ sourcePath?: string | undefined;
1699
+ line?: number | undefined;
1629
1700
  }>, "many">;
1630
1701
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1631
1702
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1632
1703
  missingPrerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1633
1704
  warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1705
+ taskTrackingConfigured: z.ZodOptional<z.ZodBoolean>;
1706
+ unavailableTrackingFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
1707
+ path: z.ZodString;
1708
+ reason: z.ZodString;
1709
+ }, "strip", z.ZodTypeAny, {
1710
+ path: string;
1711
+ reason: string;
1712
+ }, {
1713
+ path: string;
1714
+ reason: string;
1715
+ }>, "many">>;
1634
1716
  instruction: z.ZodString;
1635
1717
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1636
1718
  store_id: z.ZodString;
@@ -1886,9 +1968,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1886
1968
  state: "ready" | "blocked" | "all_done";
1887
1969
  tasks: {
1888
1970
  id: string;
1889
- description: string;
1890
1971
  done: boolean;
1972
+ description: string;
1973
+ sourcePath?: string | undefined;
1974
+ line?: number | undefined;
1891
1975
  }[];
1976
+ changeName: string;
1977
+ schemaName: string;
1892
1978
  evidence: {
1893
1979
  success: boolean;
1894
1980
  stdout: string;
@@ -1915,16 +2001,16 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1915
2001
  } & {
1916
2002
  [k: string]: unknown;
1917
2003
  };
2004
+ changeDir: string;
2005
+ instruction: string;
2006
+ contextFiles: Record<string, string[]>;
1918
2007
  progress: {
1919
2008
  complete: number;
1920
2009
  total: number;
1921
2010
  remaining: number;
1922
2011
  };
1923
- changeName: string;
1924
- schemaName: string;
1925
- changeDir: string;
1926
- instruction: string;
1927
- contextFiles: Record<string, string[]>;
2012
+ warnings?: string[] | undefined;
2013
+ context?: string | undefined;
1928
2014
  references?: z.objectOutputType<{
1929
2015
  store_id: z.ZodString;
1930
2016
  root: z.ZodOptional<z.ZodString>;
@@ -1960,18 +2046,25 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1960
2046
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1961
2047
  fetch: z.ZodOptional<z.ZodString>;
1962
2048
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1963
- context?: string | undefined;
1964
- warnings?: string[] | undefined;
1965
2049
  missingArtifacts?: string[] | undefined;
1966
2050
  missingPrerequisites?: string[] | undefined;
2051
+ taskTrackingConfigured?: boolean | undefined;
2052
+ unavailableTrackingFiles?: {
2053
+ path: string;
2054
+ reason: string;
2055
+ }[] | undefined;
1967
2056
  operationGuidance?: string[] | undefined;
1968
2057
  }, {
1969
2058
  state: "ready" | "blocked" | "all_done";
1970
2059
  tasks: {
1971
2060
  id: string;
1972
- description: string;
1973
2061
  done: boolean;
2062
+ description: string;
2063
+ sourcePath?: string | undefined;
2064
+ line?: number | undefined;
1974
2065
  }[];
2066
+ changeName: string;
2067
+ schemaName: string;
1975
2068
  evidence: {
1976
2069
  success: boolean;
1977
2070
  stdout: string;
@@ -1998,16 +2091,16 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1998
2091
  } & {
1999
2092
  [k: string]: unknown;
2000
2093
  };
2094
+ changeDir: string;
2095
+ instruction: string;
2096
+ contextFiles: Record<string, string | string[]>;
2001
2097
  progress: {
2002
2098
  complete: number;
2003
2099
  total: number;
2004
2100
  remaining: number;
2005
2101
  };
2006
- changeName: string;
2007
- schemaName: string;
2008
- changeDir: string;
2009
- instruction: string;
2010
- contextFiles: Record<string, string | string[]>;
2102
+ warnings?: string[] | undefined;
2103
+ context?: string | undefined;
2011
2104
  references?: z.objectInputType<{
2012
2105
  store_id: z.ZodString;
2013
2106
  root: z.ZodOptional<z.ZodString>;
@@ -2043,19 +2136,26 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2043
2136
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2044
2137
  fetch: z.ZodOptional<z.ZodString>;
2045
2138
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2046
- context?: string | undefined;
2047
- warnings?: string[] | undefined;
2048
2139
  missingArtifacts?: string[] | undefined;
2049
2140
  missingPrerequisites?: string[] | undefined;
2141
+ taskTrackingConfigured?: boolean | undefined;
2142
+ unavailableTrackingFiles?: {
2143
+ path: string;
2144
+ reason: string;
2145
+ }[] | undefined;
2050
2146
  operationGuidance?: string[] | undefined;
2051
2147
  }>, {
2052
2148
  applyInstructionProgress: ApplyInstructionProgress;
2053
2149
  state: "ready" | "blocked" | "all_done";
2054
2150
  tasks: {
2055
2151
  id: string;
2056
- description: string;
2057
2152
  done: boolean;
2153
+ description: string;
2154
+ sourcePath?: string | undefined;
2155
+ line?: number | undefined;
2058
2156
  }[];
2157
+ changeName: string;
2158
+ schemaName: string;
2059
2159
  evidence: {
2060
2160
  success: boolean;
2061
2161
  stdout: string;
@@ -2082,11 +2182,11 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2082
2182
  } & {
2083
2183
  [k: string]: unknown;
2084
2184
  };
2085
- changeName: string;
2086
- schemaName: string;
2087
2185
  changeDir: string;
2088
2186
  instruction: string;
2089
2187
  contextFiles: Record<string, string[]>;
2188
+ warnings?: string[] | undefined;
2189
+ context?: string | undefined;
2090
2190
  references?: z.objectOutputType<{
2091
2191
  store_id: z.ZodString;
2092
2192
  root: z.ZodOptional<z.ZodString>;
@@ -2122,18 +2222,25 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2122
2222
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2123
2223
  fetch: z.ZodOptional<z.ZodString>;
2124
2224
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2125
- context?: string | undefined;
2126
- warnings?: string[] | undefined;
2127
2225
  missingArtifacts?: string[] | undefined;
2128
2226
  missingPrerequisites?: string[] | undefined;
2227
+ taskTrackingConfigured?: boolean | undefined;
2228
+ unavailableTrackingFiles?: {
2229
+ path: string;
2230
+ reason: string;
2231
+ }[] | undefined;
2129
2232
  operationGuidance?: string[] | undefined;
2130
2233
  }, {
2131
2234
  state: "ready" | "blocked" | "all_done";
2132
2235
  tasks: {
2133
2236
  id: string;
2134
- description: string;
2135
2237
  done: boolean;
2238
+ description: string;
2239
+ sourcePath?: string | undefined;
2240
+ line?: number | undefined;
2136
2241
  }[];
2242
+ changeName: string;
2243
+ schemaName: string;
2137
2244
  evidence: {
2138
2245
  success: boolean;
2139
2246
  stdout: string;
@@ -2160,16 +2267,16 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2160
2267
  } & {
2161
2268
  [k: string]: unknown;
2162
2269
  };
2270
+ changeDir: string;
2271
+ instruction: string;
2272
+ contextFiles: Record<string, string | string[]>;
2163
2273
  progress: {
2164
2274
  complete: number;
2165
2275
  total: number;
2166
2276
  remaining: number;
2167
2277
  };
2168
- changeName: string;
2169
- schemaName: string;
2170
- changeDir: string;
2171
- instruction: string;
2172
- contextFiles: Record<string, string | string[]>;
2278
+ warnings?: string[] | undefined;
2279
+ context?: string | undefined;
2173
2280
  references?: z.objectInputType<{
2174
2281
  store_id: z.ZodString;
2175
2282
  root: z.ZodOptional<z.ZodString>;
@@ -2205,10 +2312,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2205
2312
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2206
2313
  fetch: z.ZodOptional<z.ZodString>;
2207
2314
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2208
- context?: string | undefined;
2209
- warnings?: string[] | undefined;
2210
2315
  missingArtifacts?: string[] | undefined;
2211
2316
  missingPrerequisites?: string[] | undefined;
2317
+ taskTrackingConfigured?: boolean | undefined;
2318
+ unavailableTrackingFiles?: {
2319
+ path: string;
2320
+ reason: string;
2321
+ }[] | undefined;
2212
2322
  operationGuidance?: string[] | undefined;
2213
2323
  }>, z.ZodObject<{
2214
2324
  changeName: z.ZodString;
@@ -2219,19 +2329,42 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2219
2329
  id: z.ZodString;
2220
2330
  description: z.ZodString;
2221
2331
  done: z.ZodBoolean;
2332
+ /**
2333
+ * OpenSpec 1.14 LocatedTask source locations: the absolute `sourcePath` of the file
2334
+ * the checkbox lives in plus its 1-based `line`. Optional because older payloads may
2335
+ * lack them; verbatim CLI evidence, never re-derived or second-guessed, and never an
2336
+ * input to `createApplyInstructionProgress`.
2337
+ */
2338
+ sourcePath: z.ZodOptional<z.ZodString>;
2339
+ line: z.ZodOptional<z.ZodNumber>;
2222
2340
  }, "strip", z.ZodTypeAny, {
2223
2341
  id: string;
2224
- description: string;
2225
2342
  done: boolean;
2343
+ description: string;
2344
+ sourcePath?: string | undefined;
2345
+ line?: number | undefined;
2226
2346
  }, {
2227
2347
  id: string;
2228
- description: string;
2229
2348
  done: boolean;
2349
+ description: string;
2350
+ sourcePath?: string | undefined;
2351
+ line?: number | undefined;
2230
2352
  }>, "many">;
2231
2353
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
2232
2354
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2233
2355
  missingPrerequisites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2234
2356
  warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2357
+ taskTrackingConfigured: z.ZodOptional<z.ZodBoolean>;
2358
+ unavailableTrackingFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
2359
+ path: z.ZodString;
2360
+ reason: z.ZodString;
2361
+ }, "strip", z.ZodTypeAny, {
2362
+ path: string;
2363
+ reason: string;
2364
+ }, {
2365
+ path: string;
2366
+ reason: string;
2367
+ }>, "many">>;
2235
2368
  instruction: z.ZodString;
2236
2369
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2237
2370
  store_id: z.ZodString;
@@ -2522,13 +2655,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2522
2655
  phase: "no-tasks" | "in-progress" | "complete";
2523
2656
  }>;
2524
2657
  }, "strip", z.ZodTypeAny, {
2525
- message: string;
2526
- kind: "tracked-task-mismatch";
2527
2658
  apply: {
2528
2659
  complete: number;
2529
2660
  total: number;
2530
2661
  remaining: number;
2531
2662
  };
2663
+ message: string;
2664
+ kind: "tracked-task-mismatch";
2532
2665
  tracked: {
2533
2666
  completed: number;
2534
2667
  total: number;
@@ -2536,13 +2669,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2536
2669
  phase: "no-tasks" | "in-progress" | "complete";
2537
2670
  };
2538
2671
  }, {
2539
- message: string;
2540
- kind: "tracked-task-mismatch";
2541
2672
  apply: {
2542
2673
  complete: number;
2543
2674
  total: number;
2544
2675
  remaining: number;
2545
2676
  };
2677
+ message: string;
2678
+ kind: "tracked-task-mismatch";
2546
2679
  tracked: {
2547
2680
  completed: number;
2548
2681
  total: number;
@@ -2557,13 +2690,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2557
2690
  remaining: number;
2558
2691
  source: "openspec-instructions-apply";
2559
2692
  divergence: {
2560
- message: string;
2561
- kind: "tracked-task-mismatch";
2562
2693
  apply: {
2563
2694
  complete: number;
2564
2695
  total: number;
2565
2696
  remaining: number;
2566
2697
  };
2698
+ message: string;
2699
+ kind: "tracked-task-mismatch";
2567
2700
  tracked: {
2568
2701
  completed: number;
2569
2702
  total: number;
@@ -2578,13 +2711,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2578
2711
  remaining: number;
2579
2712
  source: "openspec-instructions-apply";
2580
2713
  divergence: {
2581
- message: string;
2582
- kind: "tracked-task-mismatch";
2583
2714
  apply: {
2584
2715
  complete: number;
2585
2716
  total: number;
2586
2717
  remaining: number;
2587
2718
  };
2719
+ message: string;
2720
+ kind: "tracked-task-mismatch";
2588
2721
  tracked: {
2589
2722
  completed: number;
2590
2723
  total: number;
@@ -2597,9 +2730,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2597
2730
  state: "ready" | "blocked" | "all_done";
2598
2731
  tasks: {
2599
2732
  id: string;
2600
- description: string;
2601
2733
  done: boolean;
2734
+ description: string;
2735
+ sourcePath?: string | undefined;
2736
+ line?: number | undefined;
2602
2737
  }[];
2738
+ changeName: string;
2739
+ schemaName: string;
2603
2740
  evidence: {
2604
2741
  success: boolean;
2605
2742
  stdout: string;
@@ -2626,8 +2763,6 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2626
2763
  } & {
2627
2764
  [k: string]: unknown;
2628
2765
  };
2629
- changeName: string;
2630
- schemaName: string;
2631
2766
  changeDir: string;
2632
2767
  instruction: string;
2633
2768
  contextFiles: Record<string, string[]>;
@@ -2638,13 +2773,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2638
2773
  remaining: number;
2639
2774
  source: "openspec-instructions-apply";
2640
2775
  divergence: {
2641
- message: string;
2642
- kind: "tracked-task-mismatch";
2643
2776
  apply: {
2644
2777
  complete: number;
2645
2778
  total: number;
2646
2779
  remaining: number;
2647
2780
  };
2781
+ message: string;
2782
+ kind: "tracked-task-mismatch";
2648
2783
  tracked: {
2649
2784
  completed: number;
2650
2785
  total: number;
@@ -2653,6 +2788,8 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2653
2788
  };
2654
2789
  } | null;
2655
2790
  };
2791
+ warnings?: string[] | undefined;
2792
+ context?: string | undefined;
2656
2793
  references?: z.objectOutputType<{
2657
2794
  store_id: z.ZodString;
2658
2795
  root: z.ZodOptional<z.ZodString>;
@@ -2688,18 +2825,25 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2688
2825
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2689
2826
  fetch: z.ZodOptional<z.ZodString>;
2690
2827
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2691
- context?: string | undefined;
2692
- warnings?: string[] | undefined;
2693
2828
  missingArtifacts?: string[] | undefined;
2694
2829
  missingPrerequisites?: string[] | undefined;
2830
+ taskTrackingConfigured?: boolean | undefined;
2831
+ unavailableTrackingFiles?: {
2832
+ path: string;
2833
+ reason: string;
2834
+ }[] | undefined;
2695
2835
  operationGuidance?: string[] | undefined;
2696
2836
  }, {
2697
2837
  state: "ready" | "blocked" | "all_done";
2698
2838
  tasks: {
2699
2839
  id: string;
2700
- description: string;
2701
2840
  done: boolean;
2841
+ description: string;
2842
+ sourcePath?: string | undefined;
2843
+ line?: number | undefined;
2702
2844
  }[];
2845
+ changeName: string;
2846
+ schemaName: string;
2703
2847
  evidence: {
2704
2848
  success: boolean;
2705
2849
  stdout: string;
@@ -2726,8 +2870,6 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2726
2870
  } & {
2727
2871
  [k: string]: unknown;
2728
2872
  };
2729
- changeName: string;
2730
- schemaName: string;
2731
2873
  changeDir: string;
2732
2874
  instruction: string;
2733
2875
  contextFiles: Record<string, string | string[]>;
@@ -2738,13 +2880,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2738
2880
  remaining: number;
2739
2881
  source: "openspec-instructions-apply";
2740
2882
  divergence: {
2741
- message: string;
2742
- kind: "tracked-task-mismatch";
2743
2883
  apply: {
2744
2884
  complete: number;
2745
2885
  total: number;
2746
2886
  remaining: number;
2747
2887
  };
2888
+ message: string;
2889
+ kind: "tracked-task-mismatch";
2748
2890
  tracked: {
2749
2891
  completed: number;
2750
2892
  total: number;
@@ -2753,6 +2895,8 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2753
2895
  };
2754
2896
  } | null;
2755
2897
  };
2898
+ warnings?: string[] | undefined;
2899
+ context?: string | undefined;
2756
2900
  references?: z.objectInputType<{
2757
2901
  store_id: z.ZodString;
2758
2902
  root: z.ZodOptional<z.ZodString>;
@@ -2788,10 +2932,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2788
2932
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2789
2933
  fetch: z.ZodOptional<z.ZodString>;
2790
2934
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2791
- context?: string | undefined;
2792
- warnings?: string[] | undefined;
2793
2935
  missingArtifacts?: string[] | undefined;
2794
2936
  missingPrerequisites?: string[] | undefined;
2937
+ taskTrackingConfigured?: boolean | undefined;
2938
+ unavailableTrackingFiles?: {
2939
+ path: string;
2940
+ reason: string;
2941
+ }[] | undefined;
2795
2942
  operationGuidance?: string[] | undefined;
2796
2943
  }>>;
2797
2944
  type ApplyInstructions = z.infer<typeof ApplyInstructionsSchema>;
@@ -2945,6 +3092,7 @@ declare const ArchiveInstructionsSchema: z.ZodObject<{
2945
3092
  command: z.ZodLiteral<"instructions archive">;
2946
3093
  }, z.ZodTypeAny, "passthrough">>;
2947
3094
  }, "strip", z.ZodTypeAny, {
3095
+ changeName: string;
2948
3096
  evidence: {
2949
3097
  success: boolean;
2950
3098
  stdout: string;
@@ -2971,10 +3119,10 @@ declare const ArchiveInstructionsSchema: z.ZodObject<{
2971
3119
  } & {
2972
3120
  [k: string]: unknown;
2973
3121
  };
2974
- changeName: string;
2975
3122
  context?: string | undefined;
2976
3123
  operationGuidance?: string[] | undefined;
2977
3124
  }, {
3125
+ changeName: string;
2978
3126
  evidence: {
2979
3127
  success: boolean;
2980
3128
  stdout: string;
@@ -3001,7 +3149,6 @@ declare const ArchiveInstructionsSchema: z.ZodObject<{
3001
3149
  } & {
3002
3150
  [k: string]: unknown;
3003
3151
  };
3004
- changeName: string;
3005
3152
  context?: string | undefined;
3006
3153
  operationGuidance?: string[] | undefined;
3007
3154
  }>;
@@ -3026,14 +3173,14 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3026
3173
  }, "strip", z.ZodTypeAny, {
3027
3174
  path: string;
3028
3175
  id: string;
3029
- description: string;
3030
3176
  done: boolean;
3177
+ description: string;
3031
3178
  skipped?: boolean | undefined;
3032
3179
  }, {
3033
3180
  path: string;
3034
3181
  id: string;
3035
- description: string;
3036
3182
  done: boolean;
3183
+ description: string;
3037
3184
  skipped?: boolean | undefined;
3038
3185
  }>, "many">;
3039
3186
  unlocks: z.ZodArray<z.ZodString, "many">;
@@ -3288,6 +3435,8 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3288
3435
  }, "strip", z.ZodTypeAny, {
3289
3436
  artifactId: string;
3290
3437
  outputPath: string;
3438
+ changeName: string;
3439
+ schemaName: string;
3291
3440
  evidence: {
3292
3441
  success: boolean;
3293
3442
  stdout: string;
@@ -3314,19 +3463,20 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3314
3463
  } & {
3315
3464
  [k: string]: unknown;
3316
3465
  };
3317
- description: string;
3318
- changeName: string;
3319
- schemaName: string;
3320
3466
  changeDir: string;
3467
+ description: string;
3321
3468
  template: string;
3322
3469
  dependencies: {
3323
3470
  path: string;
3324
3471
  id: string;
3325
- description: string;
3326
3472
  done: boolean;
3473
+ description: string;
3327
3474
  skipped?: boolean | undefined;
3328
3475
  }[];
3329
3476
  unlocks: string[];
3477
+ instruction?: string | null | undefined;
3478
+ context?: string | null | undefined;
3479
+ rules?: string[] | null | undefined;
3330
3480
  references?: z.objectOutputType<{
3331
3481
  store_id: z.ZodString;
3332
3482
  root: z.ZodOptional<z.ZodString>;
@@ -3362,12 +3512,11 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3362
3512
  }, z.ZodTypeAny, "passthrough">>, "many">>;
3363
3513
  fetch: z.ZodOptional<z.ZodString>;
3364
3514
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3365
- context?: string | null | undefined;
3366
- instruction?: string | null | undefined;
3367
- rules?: string[] | null | undefined;
3368
3515
  }, {
3369
3516
  artifactId: string;
3370
3517
  outputPath: string;
3518
+ changeName: string;
3519
+ schemaName: string;
3371
3520
  evidence: {
3372
3521
  success: boolean;
3373
3522
  stdout: string;
@@ -3394,19 +3543,20 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3394
3543
  } & {
3395
3544
  [k: string]: unknown;
3396
3545
  };
3397
- description: string;
3398
- changeName: string;
3399
- schemaName: string;
3400
3546
  changeDir: string;
3547
+ description: string;
3401
3548
  template: string;
3402
3549
  dependencies: {
3403
3550
  path: string;
3404
3551
  id: string;
3405
- description: string;
3406
3552
  done: boolean;
3553
+ description: string;
3407
3554
  skipped?: boolean | undefined;
3408
3555
  }[];
3409
3556
  unlocks: string[];
3557
+ instruction?: string | null | undefined;
3558
+ context?: string | null | undefined;
3559
+ rules?: string[] | null | undefined;
3410
3560
  references?: z.objectInputType<{
3411
3561
  store_id: z.ZodString;
3412
3562
  root: z.ZodOptional<z.ZodString>;
@@ -3442,9 +3592,6 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3442
3592
  }, z.ZodTypeAny, "passthrough">>, "many">>;
3443
3593
  fetch: z.ZodOptional<z.ZodString>;
3444
3594
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3445
- context?: string | null | undefined;
3446
- instruction?: string | null | undefined;
3447
- rules?: string[] | null | undefined;
3448
3595
  }>;
3449
3596
  type ArtifactInstructions = z.infer<typeof ArtifactInstructionsSchema>;
3450
3597
  /** CLI-owned Schema list item projected by OPSX. */
@@ -3615,8 +3762,8 @@ declare const SchemaDetailSchema: z.ZodObject<{
3615
3762
  instruction?: string | undefined;
3616
3763
  template?: string | undefined;
3617
3764
  }[];
3618
- version?: string | number | undefined;
3619
3765
  description?: string | undefined;
3766
+ version?: string | number | undefined;
3620
3767
  applyTracks?: string | undefined;
3621
3768
  applyInstruction?: string | undefined;
3622
3769
  }, {
@@ -3630,8 +3777,8 @@ declare const SchemaDetailSchema: z.ZodObject<{
3630
3777
  instruction?: string | undefined;
3631
3778
  template?: string | undefined;
3632
3779
  }[];
3633
- version?: string | number | undefined;
3634
3780
  description?: string | undefined;
3781
+ version?: string | number | undefined;
3635
3782
  applyTracks?: string | undefined;
3636
3783
  applyInstruction?: string | undefined;
3637
3784
  }>;
@@ -3694,8 +3841,8 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3694
3841
  instruction?: string | undefined;
3695
3842
  template?: string | undefined;
3696
3843
  }[];
3697
- version?: string | number | undefined;
3698
3844
  description?: string | undefined;
3845
+ version?: string | number | undefined;
3699
3846
  applyTracks?: string | undefined;
3700
3847
  applyInstruction?: string | undefined;
3701
3848
  }, {
@@ -3709,8 +3856,8 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3709
3856
  instruction?: string | undefined;
3710
3857
  template?: string | undefined;
3711
3858
  }[];
3712
- version?: string | number | undefined;
3713
3859
  description?: string | undefined;
3860
+ version?: string | number | undefined;
3714
3861
  applyTracks?: string | undefined;
3715
3862
  applyInstruction?: string | undefined;
3716
3863
  }>>>;
@@ -3799,8 +3946,8 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3799
3946
  instruction?: string | undefined;
3800
3947
  template?: string | undefined;
3801
3948
  }[];
3802
- version?: string | number | undefined;
3803
3949
  description?: string | undefined;
3950
+ version?: string | number | undefined;
3804
3951
  applyTracks?: string | undefined;
3805
3952
  applyInstruction?: string | undefined;
3806
3953
  } | null>;
@@ -3845,8 +3992,8 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3845
3992
  instruction?: string | undefined;
3846
3993
  template?: string | undefined;
3847
3994
  }[];
3848
- version?: string | number | undefined;
3849
3995
  description?: string | undefined;
3996
+ version?: string | number | undefined;
3850
3997
  applyTracks?: string | undefined;
3851
3998
  applyInstruction?: string | undefined;
3852
3999
  } | null>;