@openspecui/core 6.0.0-beta.0 → 6.0.0-beta.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 (42) hide show
  1. package/dist/{cli-projection-DxnVGm2B.d.mts → cli-projection-CBvIiy5p.d.mts} +1 -1
  2. package/dist/cli-projection.d.mts +4 -4
  3. package/dist/{command-result-fkH3Ekdz.d.mts → command-result-CuWzPRAT.d.mts} +45 -45
  4. package/dist/dashboard-display.d.mts +22 -1
  5. package/dist/dashboard-display.mjs +42 -1
  6. package/dist/{dashboard-summary-transport-D2VBAIxg.mjs → dashboard-summary-transport-CYBuU4iT.mjs} +14 -0
  7. package/dist/{dashboard-summary-transport-CQ4is5_e.d.mts → dashboard-summary-transport-Dskh3E9-.d.mts} +5205 -4025
  8. package/dist/dashboard-summary-transport.d.mts +16 -16
  9. package/dist/dashboard-summary-transport.mjs +1 -1
  10. package/dist/hosted-app.d.mts +16 -16
  11. package/dist/hosted-contract.d.mts +16 -16
  12. package/dist/index.d.mts +16 -16
  13. package/dist/index.mjs +1 -1
  14. package/dist/{local-download-profiles-BL_rtlVM.d.mts → local-download-profiles-bYSSKmtx.d.mts} +1 -1
  15. package/dist/local-download-profiles.d.mts +2 -2
  16. package/dist/{notifications-CgJlLgLO.d.mts → notifications-Ak6LdCaL.d.mts} +17 -17
  17. package/dist/notifications.d.mts +2 -2
  18. package/dist/{openspec-projection-RohNZI4p.d.mts → openspec-projection-DU7RFRyA.d.mts} +1 -1
  19. package/dist/openspec-projection.d.mts +2 -2
  20. package/dist/{opsx-entity-D7kDQsze.d.mts → opsx-entity-6PnbYZZp.d.mts} +2 -2
  21. package/dist/opsx-entity.d.mts +6 -6
  22. package/dist/{opsx-schema-detail-BxDXEwDY.d.mts → opsx-schema-detail-CiqCYl2F.d.mts} +2 -2
  23. package/dist/opsx-schema-detail.d.mts +7 -7
  24. package/dist/{opsx-types-BJ8AjhrS.d.mts → opsx-types-Fs0tRnL2.d.mts} +301 -301
  25. package/dist/planning-cli-projection.d.mts +16 -16
  26. package/dist/{schemas-DS-JqAJ2.d.mts → schemas-D-6yi_I-.d.mts} +119 -119
  27. package/dist/{sounds-qhRgCy0F.d.mts → sounds-C24SzEHX.d.mts} +8 -8
  28. package/dist/sounds.d.mts +1 -1
  29. package/dist/spec-catalog.d.mts +16 -16
  30. package/dist/{store-mutation-protocol-5tfs-RmD.d.mts → store-mutation-protocol-3TzQ6ete.d.mts} +36 -36
  31. package/dist/store-mutation-protocol.d.mts +1 -1
  32. package/dist/{store-types-b554wAQJ.d.mts → store-types-CmDVyObq.d.mts} +1 -1
  33. package/dist/store-types.d.mts +4 -4
  34. package/dist/task-progress.d.mts +5 -5
  35. package/dist/{terminal-audio-tXDm_EDe.d.mts → terminal-audio-Rj1pLeSw.d.mts} +1 -1
  36. package/dist/terminal-audio.d.mts +2 -2
  37. package/dist/terminal-control.d.mts +2 -2
  38. package/dist/{terminal-invocation-BOvxThym.d.mts → terminal-invocation-G19ieMZy.d.mts} +67 -67
  39. package/dist/terminal-invocation.d.mts +1 -1
  40. package/dist/{translator-NKv1wo3o.d.mts → translator-CNmE1fAm.d.mts} +141 -141
  41. package/dist/translator.d.mts +1 -1
  42. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { n as CliJsonValue } from "./command-result-fkH3Ekdz.mjs";
2
- import { n as ChangeFile, v as Task } from "./schemas-DS-JqAJ2.mjs";
1
+ import { n as CliJsonValue } from "./command-result-CuWzPRAT.mjs";
2
+ import { n as ChangeFile, v as Task } from "./schemas-D-6yi_I-.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/task-progress.d.ts
@@ -685,32 +685,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
685
685
  } & {
686
686
  [k: string]: unknown;
687
687
  };
688
- evidence: {
689
- success: boolean;
690
- stdout: string;
691
- stderr: string;
692
- exitCode: number | null;
693
- payload: CliJsonValue;
694
- diagnostics: z.objectOutputType<{
695
- severity: z.ZodEnum<["error", "warning", "info"]>;
696
- code: z.ZodString;
697
- message: z.ZodString;
698
- target: z.ZodOptional<z.ZodString>;
699
- fix: z.ZodOptional<z.ZodString>;
700
- }, z.ZodTypeAny, "passthrough">[];
701
- command: "status";
702
- selector: {
703
- store?: string | undefined;
704
- };
705
- contractError?: string | undefined;
706
- root?: z.objectOutputType<{
707
- path: z.ZodString;
708
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
709
- store_id: z.ZodOptional<z.ZodString>;
710
- }, z.ZodTypeAny, "passthrough"> | undefined;
711
- } & {
712
- [k: string]: unknown;
713
- };
714
688
  planningHome: {
715
689
  kind: "repo";
716
690
  root: string;
@@ -739,38 +713,38 @@ declare const ChangeStatusSchema: z.ZodObject<{
739
713
  } & {
740
714
  [k: string]: unknown;
741
715
  };
742
- }, {
743
- kind: "cli";
744
- root: {
745
- path: string;
746
- source: "store" | "declared" | "nearest" | "implicit";
747
- store_id?: string | undefined;
748
- } & {
749
- [k: string]: unknown;
750
- };
751
716
  evidence: {
752
- success: boolean;
753
717
  stdout: string;
754
718
  stderr: string;
719
+ command: "status";
720
+ success: boolean;
755
721
  exitCode: number | null;
756
722
  payload: CliJsonValue;
757
- diagnostics: z.objectInputType<{
723
+ diagnostics: z.objectOutputType<{
758
724
  severity: z.ZodEnum<["error", "warning", "info"]>;
759
725
  code: z.ZodString;
760
726
  message: z.ZodString;
761
727
  target: z.ZodOptional<z.ZodString>;
762
728
  fix: z.ZodOptional<z.ZodString>;
763
729
  }, z.ZodTypeAny, "passthrough">[];
764
- command: "status";
765
730
  selector: {
766
731
  store?: string | undefined;
767
732
  };
768
- contractError?: string | undefined;
769
- root?: z.objectInputType<{
733
+ root?: z.objectOutputType<{
770
734
  path: z.ZodString;
771
735
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
772
736
  store_id: z.ZodOptional<z.ZodString>;
773
737
  }, z.ZodTypeAny, "passthrough"> | undefined;
738
+ contractError?: string | undefined;
739
+ } & {
740
+ [k: string]: unknown;
741
+ };
742
+ }, {
743
+ kind: "cli";
744
+ root: {
745
+ path: string;
746
+ source: "store" | "declared" | "nearest" | "implicit";
747
+ store_id?: string | undefined;
774
748
  } & {
775
749
  [k: string]: unknown;
776
750
  };
@@ -802,6 +776,32 @@ declare const ChangeStatusSchema: z.ZodObject<{
802
776
  } & {
803
777
  [k: string]: unknown;
804
778
  };
779
+ evidence: {
780
+ stdout: string;
781
+ stderr: string;
782
+ command: "status";
783
+ success: boolean;
784
+ exitCode: number | null;
785
+ payload: CliJsonValue;
786
+ diagnostics: z.objectInputType<{
787
+ severity: z.ZodEnum<["error", "warning", "info"]>;
788
+ code: z.ZodString;
789
+ message: z.ZodString;
790
+ target: z.ZodOptional<z.ZodString>;
791
+ fix: z.ZodOptional<z.ZodString>;
792
+ }, z.ZodTypeAny, "passthrough">[];
793
+ selector: {
794
+ store?: string | undefined;
795
+ };
796
+ root?: z.objectInputType<{
797
+ path: z.ZodString;
798
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
799
+ store_id: z.ZodOptional<z.ZodString>;
800
+ }, z.ZodTypeAny, "passthrough"> | undefined;
801
+ contractError?: string | undefined;
802
+ } & {
803
+ [k: string]: unknown;
804
+ };
805
805
  }>, z.ZodObject<{
806
806
  kind: z.ZodLiteral<"static">;
807
807
  }, "strip", z.ZodTypeAny, {
@@ -830,32 +830,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
830
830
  } & {
831
831
  [k: string]: unknown;
832
832
  };
833
- evidence: {
834
- success: boolean;
835
- stdout: string;
836
- stderr: string;
837
- exitCode: number | null;
838
- payload: CliJsonValue;
839
- diagnostics: z.objectOutputType<{
840
- severity: z.ZodEnum<["error", "warning", "info"]>;
841
- code: z.ZodString;
842
- message: z.ZodString;
843
- target: z.ZodOptional<z.ZodString>;
844
- fix: z.ZodOptional<z.ZodString>;
845
- }, z.ZodTypeAny, "passthrough">[];
846
- command: "status";
847
- selector: {
848
- store?: string | undefined;
849
- };
850
- contractError?: string | undefined;
851
- root?: z.objectOutputType<{
852
- path: z.ZodString;
853
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
854
- store_id: z.ZodOptional<z.ZodString>;
855
- }, z.ZodTypeAny, "passthrough"> | undefined;
856
- } & {
857
- [k: string]: unknown;
858
- };
859
833
  planningHome: {
860
834
  kind: "repo";
861
835
  root: string;
@@ -884,6 +858,32 @@ declare const ChangeStatusSchema: z.ZodObject<{
884
858
  } & {
885
859
  [k: string]: unknown;
886
860
  };
861
+ evidence: {
862
+ stdout: string;
863
+ stderr: string;
864
+ command: "status";
865
+ success: boolean;
866
+ exitCode: number | null;
867
+ payload: CliJsonValue;
868
+ diagnostics: z.objectOutputType<{
869
+ severity: z.ZodEnum<["error", "warning", "info"]>;
870
+ code: z.ZodString;
871
+ message: z.ZodString;
872
+ target: z.ZodOptional<z.ZodString>;
873
+ fix: z.ZodOptional<z.ZodString>;
874
+ }, z.ZodTypeAny, "passthrough">[];
875
+ selector: {
876
+ store?: string | undefined;
877
+ };
878
+ root?: z.objectOutputType<{
879
+ path: z.ZodString;
880
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
881
+ store_id: z.ZodOptional<z.ZodString>;
882
+ }, z.ZodTypeAny, "passthrough"> | undefined;
883
+ contractError?: string | undefined;
884
+ } & {
885
+ [k: string]: unknown;
886
+ };
887
887
  } | {
888
888
  kind: "static";
889
889
  };
@@ -908,32 +908,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
908
908
  } & {
909
909
  [k: string]: unknown;
910
910
  };
911
- evidence: {
912
- success: boolean;
913
- stdout: string;
914
- stderr: string;
915
- exitCode: number | null;
916
- payload: CliJsonValue;
917
- diagnostics: z.objectInputType<{
918
- severity: z.ZodEnum<["error", "warning", "info"]>;
919
- code: z.ZodString;
920
- message: z.ZodString;
921
- target: z.ZodOptional<z.ZodString>;
922
- fix: z.ZodOptional<z.ZodString>;
923
- }, z.ZodTypeAny, "passthrough">[];
924
- command: "status";
925
- selector: {
926
- store?: string | undefined;
927
- };
928
- contractError?: string | undefined;
929
- root?: z.objectInputType<{
930
- path: z.ZodString;
931
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
932
- store_id: z.ZodOptional<z.ZodString>;
933
- }, z.ZodTypeAny, "passthrough"> | undefined;
934
- } & {
935
- [k: string]: unknown;
936
- };
937
911
  planningHome: {
938
912
  kind: "repo";
939
913
  root: string;
@@ -962,6 +936,32 @@ declare const ChangeStatusSchema: z.ZodObject<{
962
936
  } & {
963
937
  [k: string]: unknown;
964
938
  };
939
+ evidence: {
940
+ stdout: string;
941
+ stderr: string;
942
+ command: "status";
943
+ success: boolean;
944
+ exitCode: number | null;
945
+ payload: CliJsonValue;
946
+ diagnostics: z.objectInputType<{
947
+ severity: z.ZodEnum<["error", "warning", "info"]>;
948
+ code: z.ZodString;
949
+ message: z.ZodString;
950
+ target: z.ZodOptional<z.ZodString>;
951
+ fix: z.ZodOptional<z.ZodString>;
952
+ }, z.ZodTypeAny, "passthrough">[];
953
+ selector: {
954
+ store?: string | undefined;
955
+ };
956
+ root?: z.objectInputType<{
957
+ path: z.ZodString;
958
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
959
+ store_id: z.ZodOptional<z.ZodString>;
960
+ }, z.ZodTypeAny, "passthrough"> | undefined;
961
+ contractError?: string | undefined;
962
+ } & {
963
+ [k: string]: unknown;
964
+ };
965
965
  } | {
966
966
  kind: "static";
967
967
  };
@@ -975,13 +975,13 @@ declare const DependencyInfoSchema: z.ZodObject<{
975
975
  }, "strip", z.ZodTypeAny, {
976
976
  path: string;
977
977
  id: string;
978
- done: boolean;
979
978
  description: string;
979
+ done: boolean;
980
980
  }, {
981
981
  path: string;
982
982
  id: string;
983
- done: boolean;
984
983
  description: string;
984
+ done: boolean;
985
985
  }>;
986
986
  type DependencyInfo = z.infer<typeof DependencyInfoSchema>;
987
987
  declare const ApplyTaskSchema: z.ZodObject<{
@@ -990,12 +990,12 @@ declare const ApplyTaskSchema: z.ZodObject<{
990
990
  done: z.ZodBoolean;
991
991
  }, "strip", z.ZodTypeAny, {
992
992
  id: string;
993
- done: boolean;
994
993
  description: string;
994
+ done: boolean;
995
995
  }, {
996
996
  id: string;
997
- done: boolean;
998
997
  description: string;
998
+ done: boolean;
999
999
  }>;
1000
1000
  type ApplyTask = z.infer<typeof ApplyTaskSchema>;
1001
1001
  declare const ApplyInstructionsContextFilesSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
@@ -1011,12 +1011,12 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1011
1011
  done: z.ZodBoolean;
1012
1012
  }, "strip", z.ZodTypeAny, {
1013
1013
  id: string;
1014
- done: boolean;
1015
1014
  description: string;
1015
+ done: boolean;
1016
1016
  }, {
1017
1017
  id: string;
1018
- done: boolean;
1019
1018
  description: string;
1019
+ done: boolean;
1020
1020
  }>, "many">;
1021
1021
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1022
1022
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1284,12 +1284,12 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1284
1284
  remaining: z.ZodNumber;
1285
1285
  }, "strip", z.ZodTypeAny, {
1286
1286
  total: number;
1287
- remaining: number;
1288
1287
  complete: number;
1288
+ remaining: number;
1289
1289
  }, {
1290
1290
  total: number;
1291
- remaining: number;
1292
1291
  complete: number;
1292
+ remaining: number;
1293
1293
  }>;
1294
1294
  tracked: z.ZodObject<{
1295
1295
  total: z.ZodNumber;
@@ -1297,99 +1297,97 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1297
1297
  remaining: z.ZodNumber;
1298
1298
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
1299
1299
  }, "strip", z.ZodTypeAny, {
1300
- completed: number;
1301
1300
  total: number;
1302
1301
  remaining: number;
1303
- phase: "no-tasks" | "in-progress" | "complete";
1304
- }, {
1305
1302
  completed: number;
1303
+ phase: "complete" | "no-tasks" | "in-progress";
1304
+ }, {
1306
1305
  total: number;
1307
1306
  remaining: number;
1308
- phase: "no-tasks" | "in-progress" | "complete";
1307
+ completed: number;
1308
+ phase: "complete" | "no-tasks" | "in-progress";
1309
1309
  }>;
1310
1310
  }, "strip", z.ZodTypeAny, {
1311
1311
  message: string;
1312
1312
  kind: "tracked-task-mismatch";
1313
1313
  apply: {
1314
1314
  total: number;
1315
- remaining: number;
1316
1315
  complete: number;
1316
+ remaining: number;
1317
1317
  };
1318
1318
  tracked: {
1319
- completed: number;
1320
1319
  total: number;
1321
1320
  remaining: number;
1322
- phase: "no-tasks" | "in-progress" | "complete";
1321
+ completed: number;
1322
+ phase: "complete" | "no-tasks" | "in-progress";
1323
1323
  };
1324
1324
  }, {
1325
1325
  message: string;
1326
1326
  kind: "tracked-task-mismatch";
1327
1327
  apply: {
1328
1328
  total: number;
1329
- remaining: number;
1330
1329
  complete: number;
1330
+ remaining: number;
1331
1331
  };
1332
1332
  tracked: {
1333
- completed: number;
1334
1333
  total: number;
1335
1334
  remaining: number;
1336
- phase: "no-tasks" | "in-progress" | "complete";
1335
+ completed: number;
1336
+ phase: "complete" | "no-tasks" | "in-progress";
1337
1337
  };
1338
1338
  }>>;
1339
1339
  }, "strip", z.ZodTypeAny, {
1340
+ source: "openspec-instructions-apply";
1340
1341
  state: "ready" | "blocked" | "all_done";
1341
1342
  total: number;
1342
- remaining: number;
1343
1343
  complete: number;
1344
- source: "openspec-instructions-apply";
1344
+ remaining: number;
1345
1345
  divergence: {
1346
1346
  message: string;
1347
1347
  kind: "tracked-task-mismatch";
1348
1348
  apply: {
1349
1349
  total: number;
1350
- remaining: number;
1351
1350
  complete: number;
1351
+ remaining: number;
1352
1352
  };
1353
1353
  tracked: {
1354
- completed: number;
1355
1354
  total: number;
1356
1355
  remaining: number;
1357
- phase: "no-tasks" | "in-progress" | "complete";
1356
+ completed: number;
1357
+ phase: "complete" | "no-tasks" | "in-progress";
1358
1358
  };
1359
1359
  } | null;
1360
1360
  }, {
1361
+ source: "openspec-instructions-apply";
1361
1362
  state: "ready" | "blocked" | "all_done";
1362
1363
  total: number;
1363
- remaining: number;
1364
1364
  complete: number;
1365
- source: "openspec-instructions-apply";
1365
+ remaining: number;
1366
1366
  divergence: {
1367
1367
  message: string;
1368
1368
  kind: "tracked-task-mismatch";
1369
1369
  apply: {
1370
1370
  total: number;
1371
- remaining: number;
1372
1371
  complete: number;
1372
+ remaining: number;
1373
1373
  };
1374
1374
  tracked: {
1375
- completed: number;
1376
1375
  total: number;
1377
1376
  remaining: number;
1378
- phase: "no-tasks" | "in-progress" | "complete";
1377
+ completed: number;
1378
+ phase: "complete" | "no-tasks" | "in-progress";
1379
1379
  };
1380
1380
  } | null;
1381
1381
  }>;
1382
1382
  }, "strip", z.ZodTypeAny, {
1383
1383
  state: "ready" | "blocked" | "all_done";
1384
- tasks: {
1385
- id: string;
1386
- done: boolean;
1387
- description: string;
1388
- }[];
1384
+ changeName: string;
1385
+ schemaName: string;
1389
1386
  evidence: {
1390
- success: boolean;
1391
1387
  stdout: string;
1392
1388
  stderr: string;
1389
+ command: "instructions apply";
1390
+ success: boolean;
1393
1391
  exitCode: number | null;
1394
1392
  payload: CliJsonValue;
1395
1393
  diagnostics: z.objectOutputType<{
@@ -1399,43 +1397,45 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1399
1397
  target: z.ZodOptional<z.ZodString>;
1400
1398
  fix: z.ZodOptional<z.ZodString>;
1401
1399
  }, z.ZodTypeAny, "passthrough">[];
1402
- command: "instructions apply";
1403
1400
  selector: {
1404
1401
  store?: string | undefined;
1405
1402
  };
1406
- contractError?: string | undefined;
1407
1403
  root?: z.objectOutputType<{
1408
1404
  path: z.ZodString;
1409
1405
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1410
1406
  store_id: z.ZodOptional<z.ZodString>;
1411
1407
  }, z.ZodTypeAny, "passthrough"> | undefined;
1408
+ contractError?: string | undefined;
1412
1409
  } & {
1413
1410
  [k: string]: unknown;
1414
1411
  };
1415
- changeName: string;
1416
- schemaName: string;
1417
1412
  changeDir: string;
1418
1413
  instruction: string;
1419
1414
  contextFiles: Record<string, string[]>;
1415
+ tasks: {
1416
+ id: string;
1417
+ description: string;
1418
+ done: boolean;
1419
+ }[];
1420
1420
  applyInstructionProgress: {
1421
+ source: "openspec-instructions-apply";
1421
1422
  state: "ready" | "blocked" | "all_done";
1422
1423
  total: number;
1423
- remaining: number;
1424
1424
  complete: number;
1425
- source: "openspec-instructions-apply";
1425
+ remaining: number;
1426
1426
  divergence: {
1427
1427
  message: string;
1428
1428
  kind: "tracked-task-mismatch";
1429
1429
  apply: {
1430
1430
  total: number;
1431
- remaining: number;
1432
1431
  complete: number;
1432
+ remaining: number;
1433
1433
  };
1434
1434
  tracked: {
1435
- completed: number;
1436
1435
  total: number;
1437
1436
  remaining: number;
1438
- phase: "no-tasks" | "in-progress" | "complete";
1437
+ completed: number;
1438
+ phase: "complete" | "no-tasks" | "in-progress";
1439
1439
  };
1440
1440
  } | null;
1441
1441
  };
@@ -1477,15 +1477,13 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1477
1477
  missingArtifacts?: string[] | undefined;
1478
1478
  }, {
1479
1479
  state: "ready" | "blocked" | "all_done";
1480
- tasks: {
1481
- id: string;
1482
- done: boolean;
1483
- description: string;
1484
- }[];
1480
+ changeName: string;
1481
+ schemaName: string;
1485
1482
  evidence: {
1486
- success: boolean;
1487
1483
  stdout: string;
1488
1484
  stderr: string;
1485
+ command: "instructions apply";
1486
+ success: boolean;
1489
1487
  exitCode: number | null;
1490
1488
  payload: CliJsonValue;
1491
1489
  diagnostics: z.objectInputType<{
@@ -1495,43 +1493,45 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1495
1493
  target: z.ZodOptional<z.ZodString>;
1496
1494
  fix: z.ZodOptional<z.ZodString>;
1497
1495
  }, z.ZodTypeAny, "passthrough">[];
1498
- command: "instructions apply";
1499
1496
  selector: {
1500
1497
  store?: string | undefined;
1501
1498
  };
1502
- contractError?: string | undefined;
1503
1499
  root?: z.objectInputType<{
1504
1500
  path: z.ZodString;
1505
1501
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1506
1502
  store_id: z.ZodOptional<z.ZodString>;
1507
1503
  }, z.ZodTypeAny, "passthrough"> | undefined;
1504
+ contractError?: string | undefined;
1508
1505
  } & {
1509
1506
  [k: string]: unknown;
1510
1507
  };
1511
- changeName: string;
1512
- schemaName: string;
1513
1508
  changeDir: string;
1514
1509
  instruction: string;
1515
1510
  contextFiles: Record<string, string | string[]>;
1511
+ tasks: {
1512
+ id: string;
1513
+ description: string;
1514
+ done: boolean;
1515
+ }[];
1516
1516
  applyInstructionProgress: {
1517
+ source: "openspec-instructions-apply";
1517
1518
  state: "ready" | "blocked" | "all_done";
1518
1519
  total: number;
1519
- remaining: number;
1520
1520
  complete: number;
1521
- source: "openspec-instructions-apply";
1521
+ remaining: number;
1522
1522
  divergence: {
1523
1523
  message: string;
1524
1524
  kind: "tracked-task-mismatch";
1525
1525
  apply: {
1526
1526
  total: number;
1527
- remaining: number;
1528
1527
  complete: number;
1528
+ remaining: number;
1529
1529
  };
1530
1530
  tracked: {
1531
- completed: number;
1532
1531
  total: number;
1533
1532
  remaining: number;
1534
- phase: "no-tasks" | "in-progress" | "complete";
1533
+ completed: number;
1534
+ phase: "complete" | "no-tasks" | "in-progress";
1535
1535
  };
1536
1536
  } | null;
1537
1537
  };
@@ -1583,12 +1583,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1583
1583
  remaining: z.ZodNumber;
1584
1584
  }, "strip", z.ZodTypeAny, {
1585
1585
  total: number;
1586
- remaining: number;
1587
1586
  complete: number;
1587
+ remaining: number;
1588
1588
  }, {
1589
1589
  total: number;
1590
- remaining: number;
1591
1590
  complete: number;
1591
+ remaining: number;
1592
1592
  }>;
1593
1593
  tasks: z.ZodArray<z.ZodObject<{
1594
1594
  id: z.ZodString;
@@ -1596,12 +1596,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1596
1596
  done: z.ZodBoolean;
1597
1597
  }, "strip", z.ZodTypeAny, {
1598
1598
  id: string;
1599
- done: boolean;
1600
1599
  description: string;
1600
+ done: boolean;
1601
1601
  }, {
1602
1602
  id: string;
1603
- done: boolean;
1604
1603
  description: string;
1604
+ done: boolean;
1605
1605
  }>, "many">;
1606
1606
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1607
1607
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1855,16 +1855,19 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1855
1855
  command: z.ZodLiteral<"instructions apply">;
1856
1856
  }, z.ZodTypeAny, "passthrough">>;
1857
1857
  }, "strip", z.ZodTypeAny, {
1858
+ progress: {
1859
+ total: number;
1860
+ complete: number;
1861
+ remaining: number;
1862
+ };
1858
1863
  state: "ready" | "blocked" | "all_done";
1859
- tasks: {
1860
- id: string;
1861
- done: boolean;
1862
- description: string;
1863
- }[];
1864
+ changeName: string;
1865
+ schemaName: string;
1864
1866
  evidence: {
1865
- success: boolean;
1866
1867
  stdout: string;
1867
1868
  stderr: string;
1869
+ command: "instructions apply";
1870
+ success: boolean;
1868
1871
  exitCode: number | null;
1869
1872
  payload: CliJsonValue;
1870
1873
  diagnostics: z.objectOutputType<{
@@ -1874,29 +1877,26 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1874
1877
  target: z.ZodOptional<z.ZodString>;
1875
1878
  fix: z.ZodOptional<z.ZodString>;
1876
1879
  }, z.ZodTypeAny, "passthrough">[];
1877
- command: "instructions apply";
1878
1880
  selector: {
1879
1881
  store?: string | undefined;
1880
1882
  };
1881
- contractError?: string | undefined;
1882
1883
  root?: z.objectOutputType<{
1883
1884
  path: z.ZodString;
1884
1885
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1885
1886
  store_id: z.ZodOptional<z.ZodString>;
1886
1887
  }, z.ZodTypeAny, "passthrough"> | undefined;
1888
+ contractError?: string | undefined;
1887
1889
  } & {
1888
1890
  [k: string]: unknown;
1889
1891
  };
1890
- changeName: string;
1891
- schemaName: string;
1892
1892
  changeDir: string;
1893
1893
  instruction: string;
1894
1894
  contextFiles: Record<string, string[]>;
1895
- progress: {
1896
- total: number;
1897
- remaining: number;
1898
- complete: number;
1899
- };
1895
+ tasks: {
1896
+ id: string;
1897
+ description: string;
1898
+ done: boolean;
1899
+ }[];
1900
1900
  references?: z.objectOutputType<{
1901
1901
  store_id: z.ZodString;
1902
1902
  root: z.ZodOptional<z.ZodString>;
@@ -1934,16 +1934,19 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1934
1934
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1935
1935
  missingArtifacts?: string[] | undefined;
1936
1936
  }, {
1937
+ progress: {
1938
+ total: number;
1939
+ complete: number;
1940
+ remaining: number;
1941
+ };
1937
1942
  state: "ready" | "blocked" | "all_done";
1938
- tasks: {
1939
- id: string;
1940
- done: boolean;
1941
- description: string;
1942
- }[];
1943
+ changeName: string;
1944
+ schemaName: string;
1943
1945
  evidence: {
1944
- success: boolean;
1945
1946
  stdout: string;
1946
1947
  stderr: string;
1948
+ command: "instructions apply";
1949
+ success: boolean;
1947
1950
  exitCode: number | null;
1948
1951
  payload: CliJsonValue;
1949
1952
  diagnostics: z.objectInputType<{
@@ -1953,29 +1956,26 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1953
1956
  target: z.ZodOptional<z.ZodString>;
1954
1957
  fix: z.ZodOptional<z.ZodString>;
1955
1958
  }, z.ZodTypeAny, "passthrough">[];
1956
- command: "instructions apply";
1957
1959
  selector: {
1958
1960
  store?: string | undefined;
1959
1961
  };
1960
- contractError?: string | undefined;
1961
1962
  root?: z.objectInputType<{
1962
1963
  path: z.ZodString;
1963
1964
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1964
1965
  store_id: z.ZodOptional<z.ZodString>;
1965
1966
  }, z.ZodTypeAny, "passthrough"> | undefined;
1967
+ contractError?: string | undefined;
1966
1968
  } & {
1967
1969
  [k: string]: unknown;
1968
1970
  };
1969
- changeName: string;
1970
- schemaName: string;
1971
1971
  changeDir: string;
1972
1972
  instruction: string;
1973
1973
  contextFiles: Record<string, string | string[]>;
1974
- progress: {
1975
- total: number;
1976
- remaining: number;
1977
- complete: number;
1978
- };
1974
+ tasks: {
1975
+ id: string;
1976
+ description: string;
1977
+ done: boolean;
1978
+ }[];
1979
1979
  references?: z.objectInputType<{
1980
1980
  store_id: z.ZodString;
1981
1981
  root: z.ZodOptional<z.ZodString>;
@@ -2015,15 +2015,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2015
2015
  }>, {
2016
2016
  applyInstructionProgress: ApplyInstructionProgress;
2017
2017
  state: "ready" | "blocked" | "all_done";
2018
- tasks: {
2019
- id: string;
2020
- done: boolean;
2021
- description: string;
2022
- }[];
2018
+ changeName: string;
2019
+ schemaName: string;
2023
2020
  evidence: {
2024
- success: boolean;
2025
2021
  stdout: string;
2026
2022
  stderr: string;
2023
+ command: "instructions apply";
2024
+ success: boolean;
2027
2025
  exitCode: number | null;
2028
2026
  payload: CliJsonValue;
2029
2027
  diagnostics: z.objectOutputType<{
@@ -2033,24 +2031,26 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2033
2031
  target: z.ZodOptional<z.ZodString>;
2034
2032
  fix: z.ZodOptional<z.ZodString>;
2035
2033
  }, z.ZodTypeAny, "passthrough">[];
2036
- command: "instructions apply";
2037
2034
  selector: {
2038
2035
  store?: string | undefined;
2039
2036
  };
2040
- contractError?: string | undefined;
2041
2037
  root?: z.objectOutputType<{
2042
2038
  path: z.ZodString;
2043
2039
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2044
2040
  store_id: z.ZodOptional<z.ZodString>;
2045
2041
  }, z.ZodTypeAny, "passthrough"> | undefined;
2042
+ contractError?: string | undefined;
2046
2043
  } & {
2047
2044
  [k: string]: unknown;
2048
2045
  };
2049
- changeName: string;
2050
- schemaName: string;
2051
2046
  changeDir: string;
2052
2047
  instruction: string;
2053
2048
  contextFiles: Record<string, string[]>;
2049
+ tasks: {
2050
+ id: string;
2051
+ description: string;
2052
+ done: boolean;
2053
+ }[];
2054
2054
  references?: z.objectOutputType<{
2055
2055
  store_id: z.ZodString;
2056
2056
  root: z.ZodOptional<z.ZodString>;
@@ -2088,16 +2088,19 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2088
2088
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2089
2089
  missingArtifacts?: string[] | undefined;
2090
2090
  }, {
2091
+ progress: {
2092
+ total: number;
2093
+ complete: number;
2094
+ remaining: number;
2095
+ };
2091
2096
  state: "ready" | "blocked" | "all_done";
2092
- tasks: {
2093
- id: string;
2094
- done: boolean;
2095
- description: string;
2096
- }[];
2097
+ changeName: string;
2098
+ schemaName: string;
2097
2099
  evidence: {
2098
- success: boolean;
2099
2100
  stdout: string;
2100
2101
  stderr: string;
2102
+ command: "instructions apply";
2103
+ success: boolean;
2101
2104
  exitCode: number | null;
2102
2105
  payload: CliJsonValue;
2103
2106
  diagnostics: z.objectInputType<{
@@ -2107,29 +2110,26 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2107
2110
  target: z.ZodOptional<z.ZodString>;
2108
2111
  fix: z.ZodOptional<z.ZodString>;
2109
2112
  }, z.ZodTypeAny, "passthrough">[];
2110
- command: "instructions apply";
2111
2113
  selector: {
2112
2114
  store?: string | undefined;
2113
2115
  };
2114
- contractError?: string | undefined;
2115
2116
  root?: z.objectInputType<{
2116
2117
  path: z.ZodString;
2117
2118
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2118
2119
  store_id: z.ZodOptional<z.ZodString>;
2119
2120
  }, z.ZodTypeAny, "passthrough"> | undefined;
2121
+ contractError?: string | undefined;
2120
2122
  } & {
2121
2123
  [k: string]: unknown;
2122
2124
  };
2123
- changeName: string;
2124
- schemaName: string;
2125
2125
  changeDir: string;
2126
2126
  instruction: string;
2127
2127
  contextFiles: Record<string, string | string[]>;
2128
- progress: {
2129
- total: number;
2130
- remaining: number;
2131
- complete: number;
2132
- };
2128
+ tasks: {
2129
+ id: string;
2130
+ description: string;
2131
+ done: boolean;
2132
+ }[];
2133
2133
  references?: z.objectInputType<{
2134
2134
  store_id: z.ZodString;
2135
2135
  root: z.ZodOptional<z.ZodString>;
@@ -2177,12 +2177,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2177
2177
  done: z.ZodBoolean;
2178
2178
  }, "strip", z.ZodTypeAny, {
2179
2179
  id: string;
2180
- done: boolean;
2181
2180
  description: string;
2181
+ done: boolean;
2182
2182
  }, {
2183
2183
  id: string;
2184
- done: boolean;
2185
2184
  description: string;
2185
+ done: boolean;
2186
2186
  }>, "many">;
2187
2187
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
2188
2188
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2450,12 +2450,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2450
2450
  remaining: z.ZodNumber;
2451
2451
  }, "strip", z.ZodTypeAny, {
2452
2452
  total: number;
2453
- remaining: number;
2454
2453
  complete: number;
2454
+ remaining: number;
2455
2455
  }, {
2456
2456
  total: number;
2457
- remaining: number;
2458
2457
  complete: number;
2458
+ remaining: number;
2459
2459
  }>;
2460
2460
  tracked: z.ZodObject<{
2461
2461
  total: z.ZodNumber;
@@ -2463,99 +2463,97 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2463
2463
  remaining: z.ZodNumber;
2464
2464
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
2465
2465
  }, "strip", z.ZodTypeAny, {
2466
- completed: number;
2467
2466
  total: number;
2468
2467
  remaining: number;
2469
- phase: "no-tasks" | "in-progress" | "complete";
2470
- }, {
2471
2468
  completed: number;
2469
+ phase: "complete" | "no-tasks" | "in-progress";
2470
+ }, {
2472
2471
  total: number;
2473
2472
  remaining: number;
2474
- phase: "no-tasks" | "in-progress" | "complete";
2473
+ completed: number;
2474
+ phase: "complete" | "no-tasks" | "in-progress";
2475
2475
  }>;
2476
2476
  }, "strip", z.ZodTypeAny, {
2477
2477
  message: string;
2478
2478
  kind: "tracked-task-mismatch";
2479
2479
  apply: {
2480
2480
  total: number;
2481
- remaining: number;
2482
2481
  complete: number;
2482
+ remaining: number;
2483
2483
  };
2484
2484
  tracked: {
2485
- completed: number;
2486
2485
  total: number;
2487
2486
  remaining: number;
2488
- phase: "no-tasks" | "in-progress" | "complete";
2487
+ completed: number;
2488
+ phase: "complete" | "no-tasks" | "in-progress";
2489
2489
  };
2490
2490
  }, {
2491
2491
  message: string;
2492
2492
  kind: "tracked-task-mismatch";
2493
2493
  apply: {
2494
2494
  total: number;
2495
- remaining: number;
2496
2495
  complete: number;
2496
+ remaining: number;
2497
2497
  };
2498
2498
  tracked: {
2499
- completed: number;
2500
2499
  total: number;
2501
2500
  remaining: number;
2502
- phase: "no-tasks" | "in-progress" | "complete";
2501
+ completed: number;
2502
+ phase: "complete" | "no-tasks" | "in-progress";
2503
2503
  };
2504
2504
  }>>;
2505
2505
  }, "strip", z.ZodTypeAny, {
2506
+ source: "openspec-instructions-apply";
2506
2507
  state: "ready" | "blocked" | "all_done";
2507
2508
  total: number;
2508
- remaining: number;
2509
2509
  complete: number;
2510
- source: "openspec-instructions-apply";
2510
+ remaining: number;
2511
2511
  divergence: {
2512
2512
  message: string;
2513
2513
  kind: "tracked-task-mismatch";
2514
2514
  apply: {
2515
2515
  total: number;
2516
- remaining: number;
2517
2516
  complete: number;
2517
+ remaining: number;
2518
2518
  };
2519
2519
  tracked: {
2520
- completed: number;
2521
2520
  total: number;
2522
2521
  remaining: number;
2523
- phase: "no-tasks" | "in-progress" | "complete";
2522
+ completed: number;
2523
+ phase: "complete" | "no-tasks" | "in-progress";
2524
2524
  };
2525
2525
  } | null;
2526
2526
  }, {
2527
+ source: "openspec-instructions-apply";
2527
2528
  state: "ready" | "blocked" | "all_done";
2528
2529
  total: number;
2529
- remaining: number;
2530
2530
  complete: number;
2531
- source: "openspec-instructions-apply";
2531
+ remaining: number;
2532
2532
  divergence: {
2533
2533
  message: string;
2534
2534
  kind: "tracked-task-mismatch";
2535
2535
  apply: {
2536
2536
  total: number;
2537
- remaining: number;
2538
2537
  complete: number;
2538
+ remaining: number;
2539
2539
  };
2540
2540
  tracked: {
2541
- completed: number;
2542
2541
  total: number;
2543
2542
  remaining: number;
2544
- phase: "no-tasks" | "in-progress" | "complete";
2543
+ completed: number;
2544
+ phase: "complete" | "no-tasks" | "in-progress";
2545
2545
  };
2546
2546
  } | null;
2547
2547
  }>;
2548
2548
  }, "strip", z.ZodTypeAny, {
2549
2549
  state: "ready" | "blocked" | "all_done";
2550
- tasks: {
2551
- id: string;
2552
- done: boolean;
2553
- description: string;
2554
- }[];
2550
+ changeName: string;
2551
+ schemaName: string;
2555
2552
  evidence: {
2556
- success: boolean;
2557
2553
  stdout: string;
2558
2554
  stderr: string;
2555
+ command: "instructions apply";
2556
+ success: boolean;
2559
2557
  exitCode: number | null;
2560
2558
  payload: CliJsonValue;
2561
2559
  diagnostics: z.objectOutputType<{
@@ -2565,43 +2563,45 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2565
2563
  target: z.ZodOptional<z.ZodString>;
2566
2564
  fix: z.ZodOptional<z.ZodString>;
2567
2565
  }, z.ZodTypeAny, "passthrough">[];
2568
- command: "instructions apply";
2569
2566
  selector: {
2570
2567
  store?: string | undefined;
2571
2568
  };
2572
- contractError?: string | undefined;
2573
2569
  root?: z.objectOutputType<{
2574
2570
  path: z.ZodString;
2575
2571
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2576
2572
  store_id: z.ZodOptional<z.ZodString>;
2577
2573
  }, z.ZodTypeAny, "passthrough"> | undefined;
2574
+ contractError?: string | undefined;
2578
2575
  } & {
2579
2576
  [k: string]: unknown;
2580
2577
  };
2581
- changeName: string;
2582
- schemaName: string;
2583
2578
  changeDir: string;
2584
2579
  instruction: string;
2585
2580
  contextFiles: Record<string, string[]>;
2581
+ tasks: {
2582
+ id: string;
2583
+ description: string;
2584
+ done: boolean;
2585
+ }[];
2586
2586
  applyInstructionProgress: {
2587
+ source: "openspec-instructions-apply";
2587
2588
  state: "ready" | "blocked" | "all_done";
2588
2589
  total: number;
2589
- remaining: number;
2590
2590
  complete: number;
2591
- source: "openspec-instructions-apply";
2591
+ remaining: number;
2592
2592
  divergence: {
2593
2593
  message: string;
2594
2594
  kind: "tracked-task-mismatch";
2595
2595
  apply: {
2596
2596
  total: number;
2597
- remaining: number;
2598
2597
  complete: number;
2598
+ remaining: number;
2599
2599
  };
2600
2600
  tracked: {
2601
- completed: number;
2602
2601
  total: number;
2603
2602
  remaining: number;
2604
- phase: "no-tasks" | "in-progress" | "complete";
2603
+ completed: number;
2604
+ phase: "complete" | "no-tasks" | "in-progress";
2605
2605
  };
2606
2606
  } | null;
2607
2607
  };
@@ -2643,15 +2643,13 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2643
2643
  missingArtifacts?: string[] | undefined;
2644
2644
  }, {
2645
2645
  state: "ready" | "blocked" | "all_done";
2646
- tasks: {
2647
- id: string;
2648
- done: boolean;
2649
- description: string;
2650
- }[];
2646
+ changeName: string;
2647
+ schemaName: string;
2651
2648
  evidence: {
2652
- success: boolean;
2653
2649
  stdout: string;
2654
2650
  stderr: string;
2651
+ command: "instructions apply";
2652
+ success: boolean;
2655
2653
  exitCode: number | null;
2656
2654
  payload: CliJsonValue;
2657
2655
  diagnostics: z.objectInputType<{
@@ -2661,43 +2659,45 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2661
2659
  target: z.ZodOptional<z.ZodString>;
2662
2660
  fix: z.ZodOptional<z.ZodString>;
2663
2661
  }, z.ZodTypeAny, "passthrough">[];
2664
- command: "instructions apply";
2665
2662
  selector: {
2666
2663
  store?: string | undefined;
2667
2664
  };
2668
- contractError?: string | undefined;
2669
2665
  root?: z.objectInputType<{
2670
2666
  path: z.ZodString;
2671
2667
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2672
2668
  store_id: z.ZodOptional<z.ZodString>;
2673
2669
  }, z.ZodTypeAny, "passthrough"> | undefined;
2670
+ contractError?: string | undefined;
2674
2671
  } & {
2675
2672
  [k: string]: unknown;
2676
2673
  };
2677
- changeName: string;
2678
- schemaName: string;
2679
2674
  changeDir: string;
2680
2675
  instruction: string;
2681
2676
  contextFiles: Record<string, string | string[]>;
2677
+ tasks: {
2678
+ id: string;
2679
+ description: string;
2680
+ done: boolean;
2681
+ }[];
2682
2682
  applyInstructionProgress: {
2683
+ source: "openspec-instructions-apply";
2683
2684
  state: "ready" | "blocked" | "all_done";
2684
2685
  total: number;
2685
- remaining: number;
2686
2686
  complete: number;
2687
- source: "openspec-instructions-apply";
2687
+ remaining: number;
2688
2688
  divergence: {
2689
2689
  message: string;
2690
2690
  kind: "tracked-task-mismatch";
2691
2691
  apply: {
2692
2692
  total: number;
2693
- remaining: number;
2694
2693
  complete: number;
2694
+ remaining: number;
2695
2695
  };
2696
2696
  tracked: {
2697
- completed: number;
2698
2697
  total: number;
2699
2698
  remaining: number;
2700
- phase: "no-tasks" | "in-progress" | "complete";
2699
+ completed: number;
2700
+ phase: "complete" | "no-tasks" | "in-progress";
2701
2701
  };
2702
2702
  } | null;
2703
2703
  };
@@ -2758,13 +2758,13 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2758
2758
  }, "strip", z.ZodTypeAny, {
2759
2759
  path: string;
2760
2760
  id: string;
2761
- done: boolean;
2762
2761
  description: string;
2762
+ done: boolean;
2763
2763
  }, {
2764
2764
  path: string;
2765
2765
  id: string;
2766
- done: boolean;
2767
2766
  description: string;
2767
+ done: boolean;
2768
2768
  }>, "many">;
2769
2769
  unlocks: z.ZodArray<z.ZodString, "many">;
2770
2770
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3016,12 +3016,15 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3016
3016
  command: z.ZodLiteral<"instructions">;
3017
3017
  }, z.ZodTypeAny, "passthrough">>;
3018
3018
  }, "strip", z.ZodTypeAny, {
3019
- artifactId: string;
3019
+ description: string;
3020
+ changeName: string;
3021
+ schemaName: string;
3020
3022
  outputPath: string;
3021
3023
  evidence: {
3022
- success: boolean;
3023
3024
  stdout: string;
3024
3025
  stderr: string;
3026
+ command: "instructions";
3027
+ success: boolean;
3025
3028
  exitCode: number | null;
3026
3029
  payload: CliJsonValue;
3027
3030
  diagnostics: z.objectOutputType<{
@@ -3031,31 +3034,31 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3031
3034
  target: z.ZodOptional<z.ZodString>;
3032
3035
  fix: z.ZodOptional<z.ZodString>;
3033
3036
  }, z.ZodTypeAny, "passthrough">[];
3034
- command: "instructions";
3035
3037
  selector: {
3036
3038
  store?: string | undefined;
3037
3039
  };
3038
- contractError?: string | undefined;
3039
3040
  root?: z.objectOutputType<{
3040
3041
  path: z.ZodString;
3041
3042
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3042
3043
  store_id: z.ZodOptional<z.ZodString>;
3043
3044
  }, z.ZodTypeAny, "passthrough"> | undefined;
3045
+ contractError?: string | undefined;
3044
3046
  } & {
3045
3047
  [k: string]: unknown;
3046
3048
  };
3047
- changeName: string;
3048
- schemaName: string;
3049
+ artifactId: string;
3049
3050
  changeDir: string;
3050
- description: string;
3051
3051
  template: string;
3052
3052
  dependencies: {
3053
3053
  path: string;
3054
3054
  id: string;
3055
- done: boolean;
3056
3055
  description: string;
3056
+ done: boolean;
3057
3057
  }[];
3058
3058
  unlocks: string[];
3059
+ context?: string | null | undefined;
3060
+ instruction?: string | null | undefined;
3061
+ rules?: string[] | null | undefined;
3059
3062
  references?: z.objectOutputType<{
3060
3063
  store_id: z.ZodString;
3061
3064
  root: z.ZodOptional<z.ZodString>;
@@ -3091,16 +3094,16 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3091
3094
  }, z.ZodTypeAny, "passthrough">>, "many">>;
3092
3095
  fetch: z.ZodOptional<z.ZodString>;
3093
3096
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3094
- context?: string | null | undefined;
3095
- instruction?: string | null | undefined;
3096
- rules?: string[] | null | undefined;
3097
3097
  }, {
3098
- artifactId: string;
3098
+ description: string;
3099
+ changeName: string;
3100
+ schemaName: string;
3099
3101
  outputPath: string;
3100
3102
  evidence: {
3101
- success: boolean;
3102
3103
  stdout: string;
3103
3104
  stderr: string;
3105
+ command: "instructions";
3106
+ success: boolean;
3104
3107
  exitCode: number | null;
3105
3108
  payload: CliJsonValue;
3106
3109
  diagnostics: z.objectInputType<{
@@ -3110,31 +3113,31 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3110
3113
  target: z.ZodOptional<z.ZodString>;
3111
3114
  fix: z.ZodOptional<z.ZodString>;
3112
3115
  }, z.ZodTypeAny, "passthrough">[];
3113
- command: "instructions";
3114
3116
  selector: {
3115
3117
  store?: string | undefined;
3116
3118
  };
3117
- contractError?: string | undefined;
3118
3119
  root?: z.objectInputType<{
3119
3120
  path: z.ZodString;
3120
3121
  source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3121
3122
  store_id: z.ZodOptional<z.ZodString>;
3122
3123
  }, z.ZodTypeAny, "passthrough"> | undefined;
3124
+ contractError?: string | undefined;
3123
3125
  } & {
3124
3126
  [k: string]: unknown;
3125
3127
  };
3126
- changeName: string;
3127
- schemaName: string;
3128
+ artifactId: string;
3128
3129
  changeDir: string;
3129
- description: string;
3130
3130
  template: string;
3131
3131
  dependencies: {
3132
3132
  path: string;
3133
3133
  id: string;
3134
- done: boolean;
3135
3134
  description: string;
3135
+ done: boolean;
3136
3136
  }[];
3137
3137
  unlocks: string[];
3138
+ context?: string | null | undefined;
3139
+ instruction?: string | null | undefined;
3140
+ rules?: string[] | null | undefined;
3138
3141
  references?: z.objectInputType<{
3139
3142
  store_id: z.ZodString;
3140
3143
  root: z.ZodOptional<z.ZodString>;
@@ -3170,9 +3173,6 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3170
3173
  }, z.ZodTypeAny, "passthrough">>, "many">>;
3171
3174
  fetch: z.ZodOptional<z.ZodString>;
3172
3175
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3173
- context?: string | null | undefined;
3174
- instruction?: string | null | undefined;
3175
- rules?: string[] | null | undefined;
3176
3176
  }>;
3177
3177
  type ArtifactInstructions = z.infer<typeof ArtifactInstructionsSchema>;
3178
3178
  /** CLI-owned Schema list item projected by OPSX. */
@@ -3333,7 +3333,6 @@ declare const SchemaDetailSchema: z.ZodObject<{
3333
3333
  applyTracks: z.ZodOptional<z.ZodString>;
3334
3334
  applyInstruction: z.ZodOptional<z.ZodString>;
3335
3335
  }, "strip", z.ZodTypeAny, {
3336
- name: string;
3337
3336
  applyRequires: string[];
3338
3337
  artifacts: {
3339
3338
  id: string;
@@ -3343,12 +3342,12 @@ declare const SchemaDetailSchema: z.ZodObject<{
3343
3342
  instruction?: string | undefined;
3344
3343
  template?: string | undefined;
3345
3344
  }[];
3346
- version?: string | number | undefined;
3345
+ name: string;
3347
3346
  description?: string | undefined;
3347
+ version?: string | number | undefined;
3348
3348
  applyTracks?: string | undefined;
3349
3349
  applyInstruction?: string | undefined;
3350
3350
  }, {
3351
- name: string;
3352
3351
  applyRequires: string[];
3353
3352
  artifacts: {
3354
3353
  id: string;
@@ -3358,8 +3357,9 @@ declare const SchemaDetailSchema: z.ZodObject<{
3358
3357
  instruction?: string | undefined;
3359
3358
  template?: string | undefined;
3360
3359
  }[];
3361
- version?: string | number | undefined;
3360
+ name: string;
3362
3361
  description?: string | undefined;
3362
+ version?: string | number | undefined;
3363
3363
  applyTracks?: string | undefined;
3364
3364
  applyInstruction?: string | undefined;
3365
3365
  }>;
@@ -3412,7 +3412,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3412
3412
  applyTracks: z.ZodOptional<z.ZodString>;
3413
3413
  applyInstruction: z.ZodOptional<z.ZodString>;
3414
3414
  }, "strip", z.ZodTypeAny, {
3415
- name: string;
3416
3415
  applyRequires: string[];
3417
3416
  artifacts: {
3418
3417
  id: string;
@@ -3422,12 +3421,12 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3422
3421
  instruction?: string | undefined;
3423
3422
  template?: string | undefined;
3424
3423
  }[];
3425
- version?: string | number | undefined;
3424
+ name: string;
3426
3425
  description?: string | undefined;
3426
+ version?: string | number | undefined;
3427
3427
  applyTracks?: string | undefined;
3428
3428
  applyInstruction?: string | undefined;
3429
3429
  }, {
3430
- name: string;
3431
3430
  applyRequires: string[];
3432
3431
  artifacts: {
3433
3432
  id: string;
@@ -3437,8 +3436,9 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3437
3436
  instruction?: string | undefined;
3438
3437
  template?: string | undefined;
3439
3438
  }[];
3440
- version?: string | number | undefined;
3439
+ name: string;
3441
3440
  description?: string | undefined;
3441
+ version?: string | number | undefined;
3442
3442
  applyTracks?: string | undefined;
3443
3443
  applyInstruction?: string | undefined;
3444
3444
  }>>>;
@@ -3517,7 +3517,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3517
3517
  source: z.ZodEnum<["project", "user", "package"]>;
3518
3518
  }, z.ZodTypeAny, "passthrough">[];
3519
3519
  schemaDetails: Record<string, {
3520
- name: string;
3521
3520
  applyRequires: string[];
3522
3521
  artifacts: {
3523
3522
  id: string;
@@ -3527,8 +3526,9 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3527
3526
  instruction?: string | undefined;
3528
3527
  template?: string | undefined;
3529
3528
  }[];
3530
- version?: string | number | undefined;
3529
+ name: string;
3531
3530
  description?: string | undefined;
3531
+ version?: string | number | undefined;
3532
3532
  applyTracks?: string | undefined;
3533
3533
  applyInstruction?: string | undefined;
3534
3534
  } | null>;
@@ -3563,7 +3563,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3563
3563
  source: z.ZodEnum<["project", "user", "package"]>;
3564
3564
  }, z.ZodTypeAny, "passthrough">[];
3565
3565
  schemaDetails: Record<string, {
3566
- name: string;
3567
3566
  applyRequires: string[];
3568
3567
  artifacts: {
3569
3568
  id: string;
@@ -3573,8 +3572,9 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3573
3572
  instruction?: string | undefined;
3574
3573
  template?: string | undefined;
3575
3574
  }[];
3576
- version?: string | number | undefined;
3575
+ name: string;
3577
3576
  description?: string | undefined;
3577
+ version?: string | number | undefined;
3578
3578
  applyTracks?: string | undefined;
3579
3579
  applyInstruction?: string | undefined;
3580
3580
  } | null>;