@openspecui/core 6.2.0 → 7.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 (121) hide show
  1. package/dist/active-root-config-BXb2HeOF.d.mts +668 -0
  2. package/dist/active-root-config-L5QaMb3A.mjs +333 -0
  3. package/dist/active-root-config.d.mts +6 -0
  4. package/dist/active-root-config.mjs +3 -0
  5. package/dist/app-daemon-control.d.mts +10 -10
  6. package/dist/{cli-projection-CvRCkCyI.d.mts → cli-projection-CBwRFPMi.d.mts} +13 -13
  7. package/dist/{cli-projection-BHfqvlpA.mjs → cli-projection-CKRwTvwf.mjs} +1 -1
  8. package/dist/cli-projection.d.mts +5 -5
  9. package/dist/cli-projection.mjs +2 -2
  10. package/dist/{common-BpgNUOOT.mjs → common-BRL_34xt.mjs} +2 -1
  11. package/dist/{dashboard-summary-transport-iutogi2N.d.mts → dashboard-summary-transport-BCaB0LKb.d.mts} +3979 -3187
  12. package/dist/{dashboard-summary-transport-BMtZ0q12.mjs → dashboard-summary-transport-ILCfZD_I.mjs} +2 -2
  13. package/dist/dashboard-summary-transport.d.mts +26 -25
  14. package/dist/dashboard-summary-transport.mjs +4 -4
  15. package/dist/{document-translation-CUkkxnYV.mjs → document-translation-B3xaP0dJ.mjs} +1 -1
  16. package/dist/{document-translation-DOcHp3o0.d.mts → document-translation-BNbM3fEj.d.mts} +2 -2
  17. package/dist/document-translation.d.mts +1 -1
  18. package/dist/document-translation.mjs +2 -2
  19. package/dist/{hosted-app-C3gBSvov.mjs → hosted-app-B_T_tTvO.mjs} +7 -2
  20. package/dist/hosted-app.d.mts +27 -26
  21. package/dist/hosted-app.mjs +7 -7
  22. package/dist/{hosted-contract-CaN2aw54.mjs → hosted-contract-BxUx6ksP.mjs} +5 -5
  23. package/dist/hosted-contract.d.mts +26 -25
  24. package/dist/hosted-contract.mjs +6 -6
  25. package/dist/{command-result-DPdfvbPT.d.mts → index-CF5niw80.d.mts} +8117 -7976
  26. package/dist/index.d.mts +27 -26
  27. package/dist/index.mjs +904 -332
  28. package/dist/{local-download-profiles-xAbDVjd6.d.mts → local-download-profiles-Bq0bQbTA.d.mts} +1 -1
  29. package/dist/local-download-profiles.d.mts +2 -2
  30. package/dist/local-download-profiles.mjs +1 -1
  31. package/dist/markdown-facts.d.mts +1 -1
  32. package/dist/markdown-facts.mjs +1 -1
  33. package/dist/{markdown-reading-w686Obnl.d.mts → markdown-reading--Sr6JAl5.d.mts} +1 -1
  34. package/dist/{markdown-reading-0L-mVBJp.mjs → markdown-reading-LtgFpB8E.mjs} +1 -1
  35. package/dist/markdown-reading.d.mts +2 -2
  36. package/dist/markdown-reading.mjs +2 -2
  37. package/dist/{notifications-BP_02fdj.d.mts → notifications-ClhEHZU3.d.mts} +11 -11
  38. package/dist/{notifications-E6_WBjQO.mjs → notifications-Cy74GVN7.mjs} +2 -2
  39. package/dist/notifications.d.mts +2 -2
  40. package/dist/notifications.mjs +3 -3
  41. package/dist/{openspec-annotations-DiHje5HD.mjs → openspec-annotations-BJ1BlVyo.mjs} +2 -2
  42. package/dist/{openspec-annotations-BXAqKLXc.d.mts → openspec-annotations-BylPW5rz.d.mts} +2 -2
  43. package/dist/openspec-annotations.d.mts +3 -3
  44. package/dist/openspec-annotations.mjs +3 -3
  45. package/dist/openspec-compat.d.mts +14 -14
  46. package/dist/openspec-compat.mjs +18 -32
  47. package/dist/{openspec-projection-DvJnsxLZ.mjs → openspec-projection-Cno7FlwE.mjs} +2 -2
  48. package/dist/{openspec-projection-CPKTjO43.d.mts → openspec-projection-EgTIZCfC.d.mts} +3 -3
  49. package/dist/openspec-projection.d.mts +5 -5
  50. package/dist/openspec-projection.mjs +4 -4
  51. package/dist/opsx-display-path.d.mts +1 -1
  52. package/dist/opsx-display-path.mjs +1 -1
  53. package/dist/{opsx-entity-BJz_BsKn.d.mts → opsx-entity-BNthD6Ks.d.mts} +2 -2
  54. package/dist/opsx-entity.d.mts +7 -7
  55. package/dist/opsx-entity.mjs +1 -1
  56. package/dist/{opsx-schema-detail-tkv6htQB.d.mts → opsx-schema-detail-B4li4BMU.d.mts} +2 -2
  57. package/dist/opsx-schema-detail.d.mts +8 -8
  58. package/dist/opsx-schema-detail.mjs +1 -1
  59. package/dist/{opsx-types-BNEqpP-B.d.mts → opsx-types-DP8JjGq0.d.mts} +544 -295
  60. package/dist/opsx-workflows.d.mts +1 -1
  61. package/dist/opsx-workflows.mjs +1 -1
  62. package/dist/{planning-cli-projection-DrkT18EI.mjs → planning-cli-projection-BreqsrYA.mjs} +51 -11
  63. package/dist/planning-cli-projection.d.mts +26 -25
  64. package/dist/planning-cli-projection.mjs +7 -7
  65. package/dist/{schemas-D4afES_m.d.mts → schemas-divIlNvA.d.mts} +128 -128
  66. package/dist/{sounds-CsPiQKxX.d.mts → sounds-qIKfPgxj.d.mts} +1 -1
  67. package/dist/sounds.d.mts +1 -1
  68. package/dist/sounds.mjs +1 -1
  69. package/dist/{spec-catalog-Dv2qolxy.mjs → spec-catalog-DEk_oHAx.mjs} +99 -18
  70. package/dist/spec-catalog.d.mts +27 -26
  71. package/dist/spec-catalog.mjs +5 -5
  72. package/dist/{store-content-projection-CiMcGZnG.mjs → store-content-projection-Bpdb7_d9.mjs} +1 -1
  73. package/dist/store-content-projection.d.mts +1 -1
  74. package/dist/store-content-projection.mjs +2 -2
  75. package/dist/{store-mutation-protocol-CLtYUSwC.mjs → store-mutation-protocol-CJGUWWI6.mjs} +1 -1
  76. package/dist/{store-mutation-protocol-Ckcv2-zs.d.mts → store-mutation-protocol-Cr4pWWbh.d.mts} +24 -24
  77. package/dist/store-mutation-protocol.d.mts +1 -1
  78. package/dist/store-mutation-protocol.mjs +2 -2
  79. package/dist/{store-types-DIws57FV.d.mts → store-types-DjWxHHvs.d.mts} +1 -1
  80. package/dist/store-types.d.mts +5 -5
  81. package/dist/store-types.mjs +1 -1
  82. package/dist/{task-progress-DpZak5xA.mjs → task-progress-Bvid_Ws8.mjs} +1 -1
  83. package/dist/task-progress.d.mts +6 -6
  84. package/dist/task-progress.mjs +2 -2
  85. package/dist/{terminal-audio-BXa1vpkF.d.mts → terminal-audio-CSUGxzx3.d.mts} +2 -2
  86. package/dist/{terminal-audio-punFQHXI.mjs → terminal-audio-DeubAfFC.mjs} +1 -1
  87. package/dist/terminal-audio.d.mts +2 -2
  88. package/dist/terminal-audio.mjs +2 -2
  89. package/dist/terminal-control.d.mts +2 -2
  90. package/dist/terminal-control.mjs +1 -1
  91. package/dist/{terminal-invocation-DFhNS_lc.d.mts → terminal-invocation-kFxUD_5T.d.mts} +96 -96
  92. package/dist/terminal-invocation.d.mts +1 -1
  93. package/dist/terminal-invocation.mjs +1 -1
  94. package/dist/terminal-theme.d.mts +1 -1
  95. package/dist/terminal-theme.mjs +1 -1
  96. package/dist/translation-language-pair.d.mts +1 -1
  97. package/dist/translation-language-pair.mjs +1 -1
  98. package/dist/{translator-B9j5lGVS.d.mts → translator-DgIIyl6v.d.mts} +141 -141
  99. package/dist/translator.d.mts +1 -1
  100. package/dist/translator.mjs +1 -1
  101. package/package.json +15 -5
  102. /package/dist/{local-download-profiles-DK4g6FRe.mjs → local-download-profiles-h9lUTXr-.mjs} +0 -0
  103. /package/dist/{markdown-facts-Dve6IAJP.mjs → markdown-facts-BIx47NNY.mjs} +0 -0
  104. /package/dist/{markdown-facts-C9yWB2I9.d.mts → markdown-facts-DLclHfpE.d.mts} +0 -0
  105. /package/dist/{opsx-display-path-eWJ4ve-O.d.mts → opsx-display-path-BD34M8QV.d.mts} +0 -0
  106. /package/dist/{opsx-display-path-DuPEvPV0.mjs → opsx-display-path-ocbNzMZj.mjs} +0 -0
  107. /package/dist/{opsx-entity-Br5S5N0o.mjs → opsx-entity-BnO3k48r.mjs} +0 -0
  108. /package/dist/{opsx-schema-detail-CckZIEVr.mjs → opsx-schema-detail-zk8ePaKK.mjs} +0 -0
  109. /package/dist/{opsx-workflows-Bhh_bI-e.d.mts → opsx-workflows-DX1r6e5j.d.mts} +0 -0
  110. /package/dist/{opsx-workflows-GPZSe1C_.mjs → opsx-workflows-byPfLlo8.mjs} +0 -0
  111. /package/dist/{schemas-BrS9qSB3.mjs → schemas-CMThmKx1.mjs} +0 -0
  112. /package/dist/{sounds-na4c8j0c.mjs → sounds-6prQvKXl.mjs} +0 -0
  113. /package/dist/{store-content-projection-BPDCma8v.d.mts → store-content-projection-R74MV_sD.d.mts} +0 -0
  114. /package/dist/{store-types-Cs40yohL.mjs → store-types-CvpEVNoE.mjs} +0 -0
  115. /package/dist/{terminal-control-BvoxwQ6m.mjs → terminal-control-c6oS-lFb.mjs} +0 -0
  116. /package/dist/{terminal-invocation-BexVY5E2.mjs → terminal-invocation-DIpoFYDo.mjs} +0 -0
  117. /package/dist/{terminal-theme-DIhzj5Si.mjs → terminal-theme-Byzxmnjm.mjs} +0 -0
  118. /package/dist/{terminal-theme-BzARb2Do.d.mts → terminal-theme-DX08Gci8.d.mts} +0 -0
  119. /package/dist/{translation-language-pair-DeAiww3_.d.mts → translation-language-pair-BR5uxGm-.d.mts} +0 -0
  120. /package/dist/{translation-language-pair-BV2cGjfv.mjs → translation-language-pair-DG9mOuFD.mjs} +0 -0
  121. /package/dist/{translator-DCCZeHt1.mjs → translator-CEGdRmKw.mjs} +0 -0
@@ -1,5 +1,5 @@
1
- import { n as CliJsonValue } from "./command-result-DPdfvbPT.mjs";
2
- import { n as ChangeFile, v as Task } from "./schemas-D4afES_m.mjs";
1
+ import { G as CliJsonValue } from "./index-CF5niw80.mjs";
2
+ import { n as ChangeFile, v as Task } from "./schemas-divIlNvA.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/task-progress.d.ts
@@ -109,7 +109,7 @@ declare function projectTaskProjectionsFromMarkdownFiles(files: readonly ChangeF
109
109
  declare function isGlobPattern(pattern: string): boolean;
110
110
  /** Raw process and parser evidence retained beside one live CLI projection. */
111
111
  declare const OpsxCliEvidenceSchema: z.ZodObject<{
112
- command: z.ZodEnum<["status", "instructions", "instructions apply"]>;
112
+ command: z.ZodEnum<["status", "instructions", "instructions apply", "instructions archive"]>;
113
113
  success: z.ZodBoolean;
114
114
  stdout: z.ZodString;
115
115
  stderr: z.ZodString;
@@ -144,19 +144,19 @@ declare const OpsxCliEvidenceSchema: z.ZodObject<{
144
144
  }>;
145
145
  root: z.ZodOptional<z.ZodObject<{
146
146
  path: z.ZodString;
147
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
147
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
148
148
  store_id: z.ZodOptional<z.ZodString>;
149
149
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
150
150
  path: z.ZodString;
151
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
151
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
152
152
  store_id: z.ZodOptional<z.ZodString>;
153
153
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
154
154
  path: z.ZodString;
155
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
155
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
156
156
  store_id: z.ZodOptional<z.ZodString>;
157
157
  }, z.ZodTypeAny, "passthrough">>>;
158
158
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
159
- command: z.ZodEnum<["status", "instructions", "instructions apply"]>;
159
+ command: z.ZodEnum<["status", "instructions", "instructions apply", "instructions archive"]>;
160
160
  success: z.ZodBoolean;
161
161
  stdout: z.ZodString;
162
162
  stderr: z.ZodString;
@@ -191,19 +191,19 @@ declare const OpsxCliEvidenceSchema: z.ZodObject<{
191
191
  }>;
192
192
  root: z.ZodOptional<z.ZodObject<{
193
193
  path: z.ZodString;
194
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
194
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
195
195
  store_id: z.ZodOptional<z.ZodString>;
196
196
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
197
197
  path: z.ZodString;
198
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
198
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
199
199
  store_id: z.ZodOptional<z.ZodString>;
200
200
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
201
201
  path: z.ZodString;
202
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
202
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
203
203
  store_id: z.ZodOptional<z.ZodString>;
204
204
  }, z.ZodTypeAny, "passthrough">>>;
205
205
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
206
- command: z.ZodEnum<["status", "instructions", "instructions apply"]>;
206
+ command: z.ZodEnum<["status", "instructions", "instructions apply", "instructions archive"]>;
207
207
  success: z.ZodBoolean;
208
208
  stdout: z.ZodString;
209
209
  stderr: z.ZodString;
@@ -238,15 +238,15 @@ declare const OpsxCliEvidenceSchema: z.ZodObject<{
238
238
  }>;
239
239
  root: z.ZodOptional<z.ZodObject<{
240
240
  path: z.ZodString;
241
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
241
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
242
242
  store_id: z.ZodOptional<z.ZodString>;
243
243
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
244
244
  path: z.ZodString;
245
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
245
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
246
246
  store_id: z.ZodOptional<z.ZodString>;
247
247
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
248
248
  path: z.ZodString;
249
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
249
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
250
250
  store_id: z.ZodOptional<z.ZodString>;
251
251
  }, z.ZodTypeAny, "passthrough">>>;
252
252
  }, z.ZodTypeAny, "passthrough">>;
@@ -287,15 +287,15 @@ declare const OpsxStatusEvidenceSchema: z.ZodObject<{
287
287
  }>;
288
288
  root: z.ZodOptional<z.ZodObject<{
289
289
  path: z.ZodString;
290
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
290
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
291
291
  store_id: z.ZodOptional<z.ZodString>;
292
292
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
293
293
  path: z.ZodString;
294
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
294
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
295
295
  store_id: z.ZodOptional<z.ZodString>;
296
296
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
297
297
  path: z.ZodString;
298
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
298
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
299
299
  store_id: z.ZodOptional<z.ZodString>;
300
300
  }, z.ZodTypeAny, "passthrough">>>;
301
301
  } & {
@@ -335,15 +335,15 @@ declare const OpsxStatusEvidenceSchema: z.ZodObject<{
335
335
  }>;
336
336
  root: z.ZodOptional<z.ZodObject<{
337
337
  path: z.ZodString;
338
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
338
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
339
339
  store_id: z.ZodOptional<z.ZodString>;
340
340
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
341
341
  path: z.ZodString;
342
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
342
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
343
343
  store_id: z.ZodOptional<z.ZodString>;
344
344
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
345
345
  path: z.ZodString;
346
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
346
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
347
347
  store_id: z.ZodOptional<z.ZodString>;
348
348
  }, z.ZodTypeAny, "passthrough">>>;
349
349
  } & {
@@ -383,15 +383,15 @@ declare const OpsxStatusEvidenceSchema: z.ZodObject<{
383
383
  }>;
384
384
  root: z.ZodOptional<z.ZodObject<{
385
385
  path: z.ZodString;
386
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
386
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
387
387
  store_id: z.ZodOptional<z.ZodString>;
388
388
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
389
389
  path: z.ZodString;
390
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
390
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
391
391
  store_id: z.ZodOptional<z.ZodString>;
392
392
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
393
393
  path: z.ZodString;
394
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
394
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
395
395
  store_id: z.ZodOptional<z.ZodString>;
396
396
  }, z.ZodTypeAny, "passthrough">>>;
397
397
  } & {
@@ -401,19 +401,22 @@ type OpsxStatusEvidence = z.infer<typeof OpsxStatusEvidenceSchema>;
401
401
  declare const ArtifactStatusSchema: z.ZodObject<{
402
402
  id: z.ZodString;
403
403
  outputPath: z.ZodString;
404
- status: z.ZodEnum<["done", "ready", "blocked"]>;
404
+ status: z.ZodEnum<["done", "skipped", "ready", "blocked"]>;
405
+ requires: z.ZodArray<z.ZodString, "many">;
405
406
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
406
407
  relativePath: z.ZodOptional<z.ZodString>;
407
408
  }, "strip", z.ZodTypeAny, {
408
- status: "done" | "ready" | "blocked";
409
+ status: "ready" | "done" | "skipped" | "blocked";
409
410
  id: string;
410
411
  outputPath: string;
412
+ requires: string[];
411
413
  missingDeps?: string[] | undefined;
412
414
  relativePath?: string | undefined;
413
415
  }, {
414
- status: "done" | "ready" | "blocked";
416
+ status: "ready" | "done" | "skipped" | "blocked";
415
417
  id: string;
416
418
  outputPath: string;
419
+ requires: string[];
417
420
  missingDeps?: string[] | undefined;
418
421
  relativePath?: string | undefined;
419
422
  }>;
@@ -426,19 +429,22 @@ declare const ChangeStatusSchema: z.ZodObject<{
426
429
  artifacts: z.ZodArray<z.ZodObject<{
427
430
  id: z.ZodString;
428
431
  outputPath: z.ZodString;
429
- status: z.ZodEnum<["done", "ready", "blocked"]>;
432
+ status: z.ZodEnum<["done", "skipped", "ready", "blocked"]>;
433
+ requires: z.ZodArray<z.ZodString, "many">;
430
434
  missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
431
435
  relativePath: z.ZodOptional<z.ZodString>;
432
436
  }, "strip", z.ZodTypeAny, {
433
- status: "done" | "ready" | "blocked";
437
+ status: "ready" | "done" | "skipped" | "blocked";
434
438
  id: string;
435
439
  outputPath: string;
440
+ requires: string[];
436
441
  missingDeps?: string[] | undefined;
437
442
  relativePath?: string | undefined;
438
443
  }, {
439
- status: "done" | "ready" | "blocked";
444
+ status: "ready" | "done" | "skipped" | "blocked";
440
445
  id: string;
441
446
  outputPath: string;
447
+ requires: string[];
442
448
  missingDeps?: string[] | undefined;
443
449
  relativePath?: string | undefined;
444
450
  }>, "many">;
@@ -520,15 +526,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
520
526
  }, z.ZodTypeAny, "passthrough">>;
521
527
  root: z.ZodObject<{
522
528
  path: z.ZodString;
523
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
529
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
524
530
  store_id: z.ZodOptional<z.ZodString>;
525
531
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
526
532
  path: z.ZodString;
527
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
533
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
528
534
  store_id: z.ZodOptional<z.ZodString>;
529
535
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
530
536
  path: z.ZodString;
531
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
537
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
532
538
  store_id: z.ZodOptional<z.ZodString>;
533
539
  }, z.ZodTypeAny, "passthrough">>;
534
540
  evidence: z.ZodObject<{
@@ -566,15 +572,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
566
572
  }>;
567
573
  root: z.ZodOptional<z.ZodObject<{
568
574
  path: z.ZodString;
569
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
575
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
570
576
  store_id: z.ZodOptional<z.ZodString>;
571
577
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
572
578
  path: z.ZodString;
573
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
579
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
574
580
  store_id: z.ZodOptional<z.ZodString>;
575
581
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
576
582
  path: z.ZodString;
577
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
583
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
578
584
  store_id: z.ZodOptional<z.ZodString>;
579
585
  }, z.ZodTypeAny, "passthrough">>>;
580
586
  } & {
@@ -614,15 +620,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
614
620
  }>;
615
621
  root: z.ZodOptional<z.ZodObject<{
616
622
  path: z.ZodString;
617
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
623
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
618
624
  store_id: z.ZodOptional<z.ZodString>;
619
625
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
620
626
  path: z.ZodString;
621
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
627
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
622
628
  store_id: z.ZodOptional<z.ZodString>;
623
629
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
624
630
  path: z.ZodString;
625
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
631
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
626
632
  store_id: z.ZodOptional<z.ZodString>;
627
633
  }, z.ZodTypeAny, "passthrough">>>;
628
634
  } & {
@@ -662,15 +668,15 @@ declare const ChangeStatusSchema: z.ZodObject<{
662
668
  }>;
663
669
  root: z.ZodOptional<z.ZodObject<{
664
670
  path: z.ZodString;
665
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
671
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
666
672
  store_id: z.ZodOptional<z.ZodString>;
667
673
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
668
674
  path: z.ZodString;
669
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
675
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
670
676
  store_id: z.ZodOptional<z.ZodString>;
671
677
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
672
678
  path: z.ZodString;
673
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
679
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
674
680
  store_id: z.ZodOptional<z.ZodString>;
675
681
  }, z.ZodTypeAny, "passthrough">>>;
676
682
  } & {
@@ -680,7 +686,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
680
686
  kind: "cli";
681
687
  root: {
682
688
  path: string;
683
- source: "store" | "declared" | "nearest" | "implicit";
689
+ source: "store" | "declared" | "nearest" | "global_default" | "implicit";
684
690
  store_id?: string | undefined;
685
691
  } & {
686
692
  [k: string]: unknown;
@@ -714,7 +720,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
714
720
  [k: string]: unknown;
715
721
  };
716
722
  evidence: {
717
- command: "status";
718
723
  success: boolean;
719
724
  stdout: string;
720
725
  stderr: string;
@@ -727,15 +732,16 @@ declare const ChangeStatusSchema: z.ZodObject<{
727
732
  target: z.ZodOptional<z.ZodString>;
728
733
  fix: z.ZodOptional<z.ZodString>;
729
734
  }, z.ZodTypeAny, "passthrough">[];
735
+ command: "status";
730
736
  selector: {
731
737
  store?: string | undefined;
732
738
  };
739
+ contractError?: string | undefined;
733
740
  root?: z.objectOutputType<{
734
741
  path: z.ZodString;
735
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
742
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
736
743
  store_id: z.ZodOptional<z.ZodString>;
737
744
  }, z.ZodTypeAny, "passthrough"> | undefined;
738
- contractError?: string | undefined;
739
745
  } & {
740
746
  [k: string]: unknown;
741
747
  };
@@ -743,7 +749,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
743
749
  kind: "cli";
744
750
  root: {
745
751
  path: string;
746
- source: "store" | "declared" | "nearest" | "implicit";
752
+ source: "store" | "declared" | "nearest" | "global_default" | "implicit";
747
753
  store_id?: string | undefined;
748
754
  } & {
749
755
  [k: string]: unknown;
@@ -777,7 +783,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
777
783
  [k: string]: unknown;
778
784
  };
779
785
  evidence: {
780
- command: "status";
781
786
  success: boolean;
782
787
  stdout: string;
783
788
  stderr: string;
@@ -790,15 +795,16 @@ declare const ChangeStatusSchema: z.ZodObject<{
790
795
  target: z.ZodOptional<z.ZodString>;
791
796
  fix: z.ZodOptional<z.ZodString>;
792
797
  }, z.ZodTypeAny, "passthrough">[];
798
+ command: "status";
793
799
  selector: {
794
800
  store?: string | undefined;
795
801
  };
802
+ contractError?: string | undefined;
796
803
  root?: z.objectInputType<{
797
804
  path: z.ZodString;
798
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
805
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
799
806
  store_id: z.ZodOptional<z.ZodString>;
800
807
  }, z.ZodTypeAny, "passthrough"> | undefined;
801
- contractError?: string | undefined;
802
808
  } & {
803
809
  [k: string]: unknown;
804
810
  };
@@ -815,9 +821,10 @@ declare const ChangeStatusSchema: z.ZodObject<{
815
821
  isComplete: boolean;
816
822
  applyRequires: string[];
817
823
  artifacts: {
818
- status: "done" | "ready" | "blocked";
824
+ status: "ready" | "done" | "skipped" | "blocked";
819
825
  id: string;
820
826
  outputPath: string;
827
+ requires: string[];
821
828
  missingDeps?: string[] | undefined;
822
829
  relativePath?: string | undefined;
823
830
  }[];
@@ -825,7 +832,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
825
832
  kind: "cli";
826
833
  root: {
827
834
  path: string;
828
- source: "store" | "declared" | "nearest" | "implicit";
835
+ source: "store" | "declared" | "nearest" | "global_default" | "implicit";
829
836
  store_id?: string | undefined;
830
837
  } & {
831
838
  [k: string]: unknown;
@@ -859,7 +866,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
859
866
  [k: string]: unknown;
860
867
  };
861
868
  evidence: {
862
- command: "status";
863
869
  success: boolean;
864
870
  stdout: string;
865
871
  stderr: string;
@@ -872,15 +878,16 @@ declare const ChangeStatusSchema: z.ZodObject<{
872
878
  target: z.ZodOptional<z.ZodString>;
873
879
  fix: z.ZodOptional<z.ZodString>;
874
880
  }, z.ZodTypeAny, "passthrough">[];
881
+ command: "status";
875
882
  selector: {
876
883
  store?: string | undefined;
877
884
  };
885
+ contractError?: string | undefined;
878
886
  root?: z.objectOutputType<{
879
887
  path: z.ZodString;
880
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
888
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
881
889
  store_id: z.ZodOptional<z.ZodString>;
882
890
  }, z.ZodTypeAny, "passthrough"> | undefined;
883
- contractError?: string | undefined;
884
891
  } & {
885
892
  [k: string]: unknown;
886
893
  };
@@ -893,9 +900,10 @@ declare const ChangeStatusSchema: z.ZodObject<{
893
900
  isComplete: boolean;
894
901
  applyRequires: string[];
895
902
  artifacts: {
896
- status: "done" | "ready" | "blocked";
903
+ status: "ready" | "done" | "skipped" | "blocked";
897
904
  id: string;
898
905
  outputPath: string;
906
+ requires: string[];
899
907
  missingDeps?: string[] | undefined;
900
908
  relativePath?: string | undefined;
901
909
  }[];
@@ -903,7 +911,7 @@ declare const ChangeStatusSchema: z.ZodObject<{
903
911
  kind: "cli";
904
912
  root: {
905
913
  path: string;
906
- source: "store" | "declared" | "nearest" | "implicit";
914
+ source: "store" | "declared" | "nearest" | "global_default" | "implicit";
907
915
  store_id?: string | undefined;
908
916
  } & {
909
917
  [k: string]: unknown;
@@ -937,7 +945,6 @@ declare const ChangeStatusSchema: z.ZodObject<{
937
945
  [k: string]: unknown;
938
946
  };
939
947
  evidence: {
940
- command: "status";
941
948
  success: boolean;
942
949
  stdout: string;
943
950
  stderr: string;
@@ -950,15 +957,16 @@ declare const ChangeStatusSchema: z.ZodObject<{
950
957
  target: z.ZodOptional<z.ZodString>;
951
958
  fix: z.ZodOptional<z.ZodString>;
952
959
  }, z.ZodTypeAny, "passthrough">[];
960
+ command: "status";
953
961
  selector: {
954
962
  store?: string | undefined;
955
963
  };
964
+ contractError?: string | undefined;
956
965
  root?: z.objectInputType<{
957
966
  path: z.ZodString;
958
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
967
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
959
968
  store_id: z.ZodOptional<z.ZodString>;
960
969
  }, z.ZodTypeAny, "passthrough"> | undefined;
961
- contractError?: string | undefined;
962
970
  } & {
963
971
  [k: string]: unknown;
964
972
  };
@@ -972,16 +980,19 @@ declare const DependencyInfoSchema: z.ZodObject<{
972
980
  done: z.ZodBoolean;
973
981
  path: z.ZodString;
974
982
  description: z.ZodString;
983
+ skipped: z.ZodOptional<z.ZodBoolean>;
975
984
  }, "strip", z.ZodTypeAny, {
976
985
  path: string;
977
986
  id: string;
978
- done: boolean;
979
987
  description: string;
988
+ done: boolean;
989
+ skipped?: boolean | undefined;
980
990
  }, {
981
991
  path: string;
982
992
  id: string;
983
- done: boolean;
984
993
  description: string;
994
+ done: boolean;
995
+ skipped?: boolean | undefined;
985
996
  }>;
986
997
  type DependencyInfo = z.infer<typeof DependencyInfoSchema>;
987
998
  declare const ApplyTaskSchema: z.ZodObject<{
@@ -990,12 +1001,12 @@ declare const ApplyTaskSchema: z.ZodObject<{
990
1001
  done: z.ZodBoolean;
991
1002
  }, "strip", z.ZodTypeAny, {
992
1003
  id: string;
993
- done: boolean;
994
1004
  description: string;
1005
+ done: boolean;
995
1006
  }, {
996
1007
  id: string;
997
- done: boolean;
998
1008
  description: string;
1009
+ done: boolean;
999
1010
  }>;
1000
1011
  type ApplyTask = z.infer<typeof ApplyTaskSchema>;
1001
1012
  declare const ApplyInstructionsContextFilesSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
@@ -1011,12 +1022,12 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1011
1022
  done: z.ZodBoolean;
1012
1023
  }, "strip", z.ZodTypeAny, {
1013
1024
  id: string;
1014
- done: boolean;
1015
1025
  description: string;
1026
+ done: boolean;
1016
1027
  }, {
1017
1028
  id: string;
1018
- done: boolean;
1019
1029
  description: string;
1030
+ done: boolean;
1020
1031
  }>, "many">;
1021
1032
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1022
1033
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1124,6 +1135,8 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1124
1135
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1125
1136
  fetch: z.ZodOptional<z.ZodString>;
1126
1137
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1138
+ context: z.ZodOptional<z.ZodString>;
1139
+ operationGuidance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1127
1140
  evidence: z.ZodObject<{
1128
1141
  success: z.ZodBoolean;
1129
1142
  stdout: z.ZodString;
@@ -1159,15 +1172,15 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1159
1172
  }>;
1160
1173
  root: z.ZodOptional<z.ZodObject<{
1161
1174
  path: z.ZodString;
1162
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1175
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1163
1176
  store_id: z.ZodOptional<z.ZodString>;
1164
1177
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1165
1178
  path: z.ZodString;
1166
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1179
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1167
1180
  store_id: z.ZodOptional<z.ZodString>;
1168
1181
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1169
1182
  path: z.ZodString;
1170
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1183
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1171
1184
  store_id: z.ZodOptional<z.ZodString>;
1172
1185
  }, z.ZodTypeAny, "passthrough">>>;
1173
1186
  } & {
@@ -1207,15 +1220,15 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1207
1220
  }>;
1208
1221
  root: z.ZodOptional<z.ZodObject<{
1209
1222
  path: z.ZodString;
1210
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1223
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1211
1224
  store_id: z.ZodOptional<z.ZodString>;
1212
1225
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1213
1226
  path: z.ZodString;
1214
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1227
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1215
1228
  store_id: z.ZodOptional<z.ZodString>;
1216
1229
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1217
1230
  path: z.ZodString;
1218
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1231
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1219
1232
  store_id: z.ZodOptional<z.ZodString>;
1220
1233
  }, z.ZodTypeAny, "passthrough">>>;
1221
1234
  } & {
@@ -1255,15 +1268,15 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1255
1268
  }>;
1256
1269
  root: z.ZodOptional<z.ZodObject<{
1257
1270
  path: z.ZodString;
1258
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1271
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1259
1272
  store_id: z.ZodOptional<z.ZodString>;
1260
1273
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1261
1274
  path: z.ZodString;
1262
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1275
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1263
1276
  store_id: z.ZodOptional<z.ZodString>;
1264
1277
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1265
1278
  path: z.ZodString;
1266
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1279
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1267
1280
  store_id: z.ZodOptional<z.ZodString>;
1268
1281
  }, z.ZodTypeAny, "passthrough">>>;
1269
1282
  } & {
@@ -1283,12 +1296,12 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1283
1296
  complete: z.ZodNumber;
1284
1297
  remaining: z.ZodNumber;
1285
1298
  }, "strip", z.ZodTypeAny, {
1286
- total: number;
1287
1299
  complete: number;
1300
+ total: number;
1288
1301
  remaining: number;
1289
1302
  }, {
1290
- total: number;
1291
1303
  complete: number;
1304
+ total: number;
1292
1305
  remaining: number;
1293
1306
  }>;
1294
1307
  tracked: z.ZodObject<{
@@ -1297,93 +1310,98 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1297
1310
  remaining: z.ZodNumber;
1298
1311
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
1299
1312
  }, "strip", z.ZodTypeAny, {
1313
+ completed: number;
1300
1314
  total: number;
1301
1315
  remaining: number;
1302
- completed: number;
1303
- phase: "complete" | "no-tasks" | "in-progress";
1316
+ phase: "no-tasks" | "in-progress" | "complete";
1304
1317
  }, {
1318
+ completed: number;
1305
1319
  total: number;
1306
1320
  remaining: number;
1307
- completed: number;
1308
- phase: "complete" | "no-tasks" | "in-progress";
1321
+ phase: "no-tasks" | "in-progress" | "complete";
1309
1322
  }>;
1310
1323
  }, "strip", z.ZodTypeAny, {
1311
- kind: "tracked-task-mismatch";
1312
1324
  message: string;
1325
+ kind: "tracked-task-mismatch";
1313
1326
  apply: {
1314
- total: number;
1315
1327
  complete: number;
1328
+ total: number;
1316
1329
  remaining: number;
1317
1330
  };
1318
1331
  tracked: {
1332
+ completed: number;
1319
1333
  total: number;
1320
1334
  remaining: number;
1321
- completed: number;
1322
- phase: "complete" | "no-tasks" | "in-progress";
1335
+ phase: "no-tasks" | "in-progress" | "complete";
1323
1336
  };
1324
1337
  }, {
1325
- kind: "tracked-task-mismatch";
1326
1338
  message: string;
1339
+ kind: "tracked-task-mismatch";
1327
1340
  apply: {
1328
- total: number;
1329
1341
  complete: number;
1342
+ total: number;
1330
1343
  remaining: number;
1331
1344
  };
1332
1345
  tracked: {
1346
+ completed: number;
1333
1347
  total: number;
1334
1348
  remaining: number;
1335
- completed: number;
1336
- phase: "complete" | "no-tasks" | "in-progress";
1349
+ phase: "no-tasks" | "in-progress" | "complete";
1337
1350
  };
1338
1351
  }>>;
1339
1352
  }, "strip", z.ZodTypeAny, {
1340
- source: "openspec-instructions-apply";
1341
1353
  state: "ready" | "blocked" | "all_done";
1342
- total: number;
1343
1354
  complete: number;
1355
+ total: number;
1344
1356
  remaining: number;
1357
+ source: "openspec-instructions-apply";
1345
1358
  divergence: {
1346
- kind: "tracked-task-mismatch";
1347
1359
  message: string;
1360
+ kind: "tracked-task-mismatch";
1348
1361
  apply: {
1349
- total: number;
1350
1362
  complete: number;
1363
+ total: number;
1351
1364
  remaining: number;
1352
1365
  };
1353
1366
  tracked: {
1367
+ completed: number;
1354
1368
  total: number;
1355
1369
  remaining: number;
1356
- completed: number;
1357
- phase: "complete" | "no-tasks" | "in-progress";
1370
+ phase: "no-tasks" | "in-progress" | "complete";
1358
1371
  };
1359
1372
  } | null;
1360
1373
  }, {
1361
- source: "openspec-instructions-apply";
1362
1374
  state: "ready" | "blocked" | "all_done";
1363
- total: number;
1364
1375
  complete: number;
1376
+ total: number;
1365
1377
  remaining: number;
1378
+ source: "openspec-instructions-apply";
1366
1379
  divergence: {
1367
- kind: "tracked-task-mismatch";
1368
1380
  message: string;
1381
+ kind: "tracked-task-mismatch";
1369
1382
  apply: {
1370
- total: number;
1371
1383
  complete: number;
1384
+ total: number;
1372
1385
  remaining: number;
1373
1386
  };
1374
1387
  tracked: {
1388
+ completed: number;
1375
1389
  total: number;
1376
1390
  remaining: number;
1377
- completed: number;
1378
- phase: "complete" | "no-tasks" | "in-progress";
1391
+ phase: "no-tasks" | "in-progress" | "complete";
1379
1392
  };
1380
1393
  } | null;
1381
1394
  }>;
1382
1395
  }, "strip", z.ZodTypeAny, {
1396
+ state: "ready" | "blocked" | "all_done";
1397
+ tasks: {
1398
+ id: string;
1399
+ description: string;
1400
+ done: boolean;
1401
+ }[];
1383
1402
  changeName: string;
1384
1403
  schemaName: string;
1385
1404
  evidence: {
1386
- command: "instructions apply";
1387
1405
  success: boolean;
1388
1406
  stdout: string;
1389
1407
  stderr: string;
@@ -1396,49 +1414,45 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1396
1414
  target: z.ZodOptional<z.ZodString>;
1397
1415
  fix: z.ZodOptional<z.ZodString>;
1398
1416
  }, z.ZodTypeAny, "passthrough">[];
1417
+ command: "instructions apply";
1399
1418
  selector: {
1400
1419
  store?: string | undefined;
1401
1420
  };
1421
+ contractError?: string | undefined;
1402
1422
  root?: z.objectOutputType<{
1403
1423
  path: z.ZodString;
1404
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1424
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1405
1425
  store_id: z.ZodOptional<z.ZodString>;
1406
1426
  }, z.ZodTypeAny, "passthrough"> | undefined;
1407
- contractError?: string | undefined;
1408
1427
  } & {
1409
1428
  [k: string]: unknown;
1410
1429
  };
1411
1430
  changeDir: string;
1412
1431
  instruction: string;
1413
1432
  contextFiles: Record<string, string[]>;
1414
- tasks: {
1415
- id: string;
1416
- done: boolean;
1417
- description: string;
1418
- }[];
1419
- state: "ready" | "blocked" | "all_done";
1420
1433
  applyInstructionProgress: {
1421
- source: "openspec-instructions-apply";
1422
1434
  state: "ready" | "blocked" | "all_done";
1423
- total: number;
1424
1435
  complete: number;
1436
+ total: number;
1425
1437
  remaining: number;
1438
+ source: "openspec-instructions-apply";
1426
1439
  divergence: {
1427
- kind: "tracked-task-mismatch";
1428
1440
  message: string;
1441
+ kind: "tracked-task-mismatch";
1429
1442
  apply: {
1430
- total: number;
1431
1443
  complete: number;
1444
+ total: number;
1432
1445
  remaining: number;
1433
1446
  };
1434
1447
  tracked: {
1448
+ completed: number;
1435
1449
  total: number;
1436
1450
  remaining: number;
1437
- completed: number;
1438
- phase: "complete" | "no-tasks" | "in-progress";
1451
+ phase: "no-tasks" | "in-progress" | "complete";
1439
1452
  };
1440
1453
  } | null;
1441
1454
  };
1455
+ context?: string | undefined;
1442
1456
  references?: z.objectOutputType<{
1443
1457
  store_id: z.ZodString;
1444
1458
  root: z.ZodOptional<z.ZodString>;
@@ -1475,11 +1489,17 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1475
1489
  fetch: z.ZodOptional<z.ZodString>;
1476
1490
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1477
1491
  missingArtifacts?: string[] | undefined;
1492
+ operationGuidance?: string[] | undefined;
1478
1493
  }, {
1494
+ state: "ready" | "blocked" | "all_done";
1495
+ tasks: {
1496
+ id: string;
1497
+ description: string;
1498
+ done: boolean;
1499
+ }[];
1479
1500
  changeName: string;
1480
1501
  schemaName: string;
1481
1502
  evidence: {
1482
- command: "instructions apply";
1483
1503
  success: boolean;
1484
1504
  stdout: string;
1485
1505
  stderr: string;
@@ -1492,49 +1512,45 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1492
1512
  target: z.ZodOptional<z.ZodString>;
1493
1513
  fix: z.ZodOptional<z.ZodString>;
1494
1514
  }, z.ZodTypeAny, "passthrough">[];
1515
+ command: "instructions apply";
1495
1516
  selector: {
1496
1517
  store?: string | undefined;
1497
1518
  };
1519
+ contractError?: string | undefined;
1498
1520
  root?: z.objectInputType<{
1499
1521
  path: z.ZodString;
1500
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1522
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1501
1523
  store_id: z.ZodOptional<z.ZodString>;
1502
1524
  }, z.ZodTypeAny, "passthrough"> | undefined;
1503
- contractError?: string | undefined;
1504
1525
  } & {
1505
1526
  [k: string]: unknown;
1506
1527
  };
1507
1528
  changeDir: string;
1508
1529
  instruction: string;
1509
1530
  contextFiles: Record<string, string | string[]>;
1510
- tasks: {
1511
- id: string;
1512
- done: boolean;
1513
- description: string;
1514
- }[];
1515
- state: "ready" | "blocked" | "all_done";
1516
1531
  applyInstructionProgress: {
1517
- source: "openspec-instructions-apply";
1518
1532
  state: "ready" | "blocked" | "all_done";
1519
- total: number;
1520
1533
  complete: number;
1534
+ total: number;
1521
1535
  remaining: number;
1536
+ source: "openspec-instructions-apply";
1522
1537
  divergence: {
1523
- kind: "tracked-task-mismatch";
1524
1538
  message: string;
1539
+ kind: "tracked-task-mismatch";
1525
1540
  apply: {
1526
- total: number;
1527
1541
  complete: number;
1542
+ total: number;
1528
1543
  remaining: number;
1529
1544
  };
1530
1545
  tracked: {
1546
+ completed: number;
1531
1547
  total: number;
1532
1548
  remaining: number;
1533
- completed: number;
1534
- phase: "complete" | "no-tasks" | "in-progress";
1549
+ phase: "no-tasks" | "in-progress" | "complete";
1535
1550
  };
1536
1551
  } | null;
1537
1552
  };
1553
+ context?: string | undefined;
1538
1554
  references?: z.objectInputType<{
1539
1555
  store_id: z.ZodString;
1540
1556
  root: z.ZodOptional<z.ZodString>;
@@ -1571,6 +1587,7 @@ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1571
1587
  fetch: z.ZodOptional<z.ZodString>;
1572
1588
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1573
1589
  missingArtifacts?: string[] | undefined;
1590
+ operationGuidance?: string[] | undefined;
1574
1591
  }>;
1575
1592
  declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1576
1593
  changeName: z.ZodString;
@@ -1582,12 +1599,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1582
1599
  complete: z.ZodNumber;
1583
1600
  remaining: z.ZodNumber;
1584
1601
  }, "strip", z.ZodTypeAny, {
1585
- total: number;
1586
1602
  complete: number;
1603
+ total: number;
1587
1604
  remaining: number;
1588
1605
  }, {
1589
- total: number;
1590
1606
  complete: number;
1607
+ total: number;
1591
1608
  remaining: number;
1592
1609
  }>;
1593
1610
  tasks: z.ZodArray<z.ZodObject<{
@@ -1596,12 +1613,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1596
1613
  done: z.ZodBoolean;
1597
1614
  }, "strip", z.ZodTypeAny, {
1598
1615
  id: string;
1599
- done: boolean;
1600
1616
  description: string;
1617
+ done: boolean;
1601
1618
  }, {
1602
1619
  id: string;
1603
- done: boolean;
1604
1620
  description: string;
1621
+ done: boolean;
1605
1622
  }>, "many">;
1606
1623
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1607
1624
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1709,6 +1726,8 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1709
1726
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1710
1727
  fetch: z.ZodOptional<z.ZodString>;
1711
1728
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1729
+ context: z.ZodOptional<z.ZodString>;
1730
+ operationGuidance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1712
1731
  evidence: z.ZodObject<{
1713
1732
  success: z.ZodBoolean;
1714
1733
  stdout: z.ZodString;
@@ -1744,15 +1763,15 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1744
1763
  }>;
1745
1764
  root: z.ZodOptional<z.ZodObject<{
1746
1765
  path: z.ZodString;
1747
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1766
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1748
1767
  store_id: z.ZodOptional<z.ZodString>;
1749
1768
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1750
1769
  path: z.ZodString;
1751
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1770
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1752
1771
  store_id: z.ZodOptional<z.ZodString>;
1753
1772
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1754
1773
  path: z.ZodString;
1755
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1774
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1756
1775
  store_id: z.ZodOptional<z.ZodString>;
1757
1776
  }, z.ZodTypeAny, "passthrough">>>;
1758
1777
  } & {
@@ -1792,15 +1811,15 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1792
1811
  }>;
1793
1812
  root: z.ZodOptional<z.ZodObject<{
1794
1813
  path: z.ZodString;
1795
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1814
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1796
1815
  store_id: z.ZodOptional<z.ZodString>;
1797
1816
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1798
1817
  path: z.ZodString;
1799
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1818
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1800
1819
  store_id: z.ZodOptional<z.ZodString>;
1801
1820
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1802
1821
  path: z.ZodString;
1803
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1822
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1804
1823
  store_id: z.ZodOptional<z.ZodString>;
1805
1824
  }, z.ZodTypeAny, "passthrough">>>;
1806
1825
  } & {
@@ -1840,25 +1859,35 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1840
1859
  }>;
1841
1860
  root: z.ZodOptional<z.ZodObject<{
1842
1861
  path: z.ZodString;
1843
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1862
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1844
1863
  store_id: z.ZodOptional<z.ZodString>;
1845
1864
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1846
1865
  path: z.ZodString;
1847
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1866
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1848
1867
  store_id: z.ZodOptional<z.ZodString>;
1849
1868
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1850
1869
  path: z.ZodString;
1851
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1870
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1852
1871
  store_id: z.ZodOptional<z.ZodString>;
1853
1872
  }, z.ZodTypeAny, "passthrough">>>;
1854
1873
  } & {
1855
1874
  command: z.ZodLiteral<"instructions apply">;
1856
1875
  }, z.ZodTypeAny, "passthrough">>;
1857
1876
  }, "strip", z.ZodTypeAny, {
1877
+ state: "ready" | "blocked" | "all_done";
1878
+ tasks: {
1879
+ id: string;
1880
+ description: string;
1881
+ done: boolean;
1882
+ }[];
1883
+ progress: {
1884
+ complete: number;
1885
+ total: number;
1886
+ remaining: number;
1887
+ };
1858
1888
  changeName: string;
1859
1889
  schemaName: string;
1860
1890
  evidence: {
1861
- command: "instructions apply";
1862
1891
  success: boolean;
1863
1892
  stdout: string;
1864
1893
  stderr: string;
@@ -1871,32 +1900,23 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1871
1900
  target: z.ZodOptional<z.ZodString>;
1872
1901
  fix: z.ZodOptional<z.ZodString>;
1873
1902
  }, z.ZodTypeAny, "passthrough">[];
1903
+ command: "instructions apply";
1874
1904
  selector: {
1875
1905
  store?: string | undefined;
1876
1906
  };
1907
+ contractError?: string | undefined;
1877
1908
  root?: z.objectOutputType<{
1878
1909
  path: z.ZodString;
1879
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1910
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1880
1911
  store_id: z.ZodOptional<z.ZodString>;
1881
1912
  }, z.ZodTypeAny, "passthrough"> | undefined;
1882
- contractError?: string | undefined;
1883
1913
  } & {
1884
1914
  [k: string]: unknown;
1885
1915
  };
1886
1916
  changeDir: string;
1887
1917
  instruction: string;
1888
1918
  contextFiles: Record<string, string[]>;
1889
- tasks: {
1890
- id: string;
1891
- done: boolean;
1892
- description: string;
1893
- }[];
1894
- state: "ready" | "blocked" | "all_done";
1895
- progress: {
1896
- total: number;
1897
- complete: number;
1898
- remaining: number;
1899
- };
1919
+ context?: string | undefined;
1900
1920
  references?: z.objectOutputType<{
1901
1921
  store_id: z.ZodString;
1902
1922
  root: z.ZodOptional<z.ZodString>;
@@ -1933,11 +1953,22 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1933
1953
  fetch: z.ZodOptional<z.ZodString>;
1934
1954
  }, z.ZodTypeAny, "passthrough">[] | undefined;
1935
1955
  missingArtifacts?: string[] | undefined;
1956
+ operationGuidance?: string[] | undefined;
1936
1957
  }, {
1958
+ state: "ready" | "blocked" | "all_done";
1959
+ tasks: {
1960
+ id: string;
1961
+ description: string;
1962
+ done: boolean;
1963
+ }[];
1964
+ progress: {
1965
+ complete: number;
1966
+ total: number;
1967
+ remaining: number;
1968
+ };
1937
1969
  changeName: string;
1938
1970
  schemaName: string;
1939
1971
  evidence: {
1940
- command: "instructions apply";
1941
1972
  success: boolean;
1942
1973
  stdout: string;
1943
1974
  stderr: string;
@@ -1950,32 +1981,23 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1950
1981
  target: z.ZodOptional<z.ZodString>;
1951
1982
  fix: z.ZodOptional<z.ZodString>;
1952
1983
  }, z.ZodTypeAny, "passthrough">[];
1984
+ command: "instructions apply";
1953
1985
  selector: {
1954
1986
  store?: string | undefined;
1955
1987
  };
1988
+ contractError?: string | undefined;
1956
1989
  root?: z.objectInputType<{
1957
1990
  path: z.ZodString;
1958
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1991
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
1959
1992
  store_id: z.ZodOptional<z.ZodString>;
1960
1993
  }, z.ZodTypeAny, "passthrough"> | undefined;
1961
- contractError?: string | undefined;
1962
1994
  } & {
1963
1995
  [k: string]: unknown;
1964
1996
  };
1965
1997
  changeDir: string;
1966
1998
  instruction: string;
1967
1999
  contextFiles: Record<string, string | string[]>;
1968
- tasks: {
1969
- id: string;
1970
- done: boolean;
1971
- description: string;
1972
- }[];
1973
- state: "ready" | "blocked" | "all_done";
1974
- progress: {
1975
- total: number;
1976
- complete: number;
1977
- remaining: number;
1978
- };
2000
+ context?: string | undefined;
1979
2001
  references?: z.objectInputType<{
1980
2002
  store_id: z.ZodString;
1981
2003
  root: z.ZodOptional<z.ZodString>;
@@ -2012,12 +2034,18 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2012
2034
  fetch: z.ZodOptional<z.ZodString>;
2013
2035
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2014
2036
  missingArtifacts?: string[] | undefined;
2037
+ operationGuidance?: string[] | undefined;
2015
2038
  }>, {
2016
2039
  applyInstructionProgress: ApplyInstructionProgress;
2040
+ state: "ready" | "blocked" | "all_done";
2041
+ tasks: {
2042
+ id: string;
2043
+ description: string;
2044
+ done: boolean;
2045
+ }[];
2017
2046
  changeName: string;
2018
2047
  schemaName: string;
2019
2048
  evidence: {
2020
- command: "instructions apply";
2021
2049
  success: boolean;
2022
2050
  stdout: string;
2023
2051
  stderr: string;
@@ -2030,27 +2058,23 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2030
2058
  target: z.ZodOptional<z.ZodString>;
2031
2059
  fix: z.ZodOptional<z.ZodString>;
2032
2060
  }, z.ZodTypeAny, "passthrough">[];
2061
+ command: "instructions apply";
2033
2062
  selector: {
2034
2063
  store?: string | undefined;
2035
2064
  };
2065
+ contractError?: string | undefined;
2036
2066
  root?: z.objectOutputType<{
2037
2067
  path: z.ZodString;
2038
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2068
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2039
2069
  store_id: z.ZodOptional<z.ZodString>;
2040
2070
  }, z.ZodTypeAny, "passthrough"> | undefined;
2041
- contractError?: string | undefined;
2042
2071
  } & {
2043
2072
  [k: string]: unknown;
2044
2073
  };
2045
2074
  changeDir: string;
2046
2075
  instruction: string;
2047
2076
  contextFiles: Record<string, string[]>;
2048
- tasks: {
2049
- id: string;
2050
- done: boolean;
2051
- description: string;
2052
- }[];
2053
- state: "ready" | "blocked" | "all_done";
2077
+ context?: string | undefined;
2054
2078
  references?: z.objectOutputType<{
2055
2079
  store_id: z.ZodString;
2056
2080
  root: z.ZodOptional<z.ZodString>;
@@ -2087,11 +2111,22 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2087
2111
  fetch: z.ZodOptional<z.ZodString>;
2088
2112
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2089
2113
  missingArtifacts?: string[] | undefined;
2114
+ operationGuidance?: string[] | undefined;
2090
2115
  }, {
2116
+ state: "ready" | "blocked" | "all_done";
2117
+ tasks: {
2118
+ id: string;
2119
+ description: string;
2120
+ done: boolean;
2121
+ }[];
2122
+ progress: {
2123
+ complete: number;
2124
+ total: number;
2125
+ remaining: number;
2126
+ };
2091
2127
  changeName: string;
2092
2128
  schemaName: string;
2093
2129
  evidence: {
2094
- command: "instructions apply";
2095
2130
  success: boolean;
2096
2131
  stdout: string;
2097
2132
  stderr: string;
@@ -2104,32 +2139,23 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2104
2139
  target: z.ZodOptional<z.ZodString>;
2105
2140
  fix: z.ZodOptional<z.ZodString>;
2106
2141
  }, z.ZodTypeAny, "passthrough">[];
2142
+ command: "instructions apply";
2107
2143
  selector: {
2108
2144
  store?: string | undefined;
2109
2145
  };
2146
+ contractError?: string | undefined;
2110
2147
  root?: z.objectInputType<{
2111
2148
  path: z.ZodString;
2112
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2149
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2113
2150
  store_id: z.ZodOptional<z.ZodString>;
2114
2151
  }, z.ZodTypeAny, "passthrough"> | undefined;
2115
- contractError?: string | undefined;
2116
2152
  } & {
2117
2153
  [k: string]: unknown;
2118
2154
  };
2119
2155
  changeDir: string;
2120
2156
  instruction: string;
2121
2157
  contextFiles: Record<string, string | string[]>;
2122
- tasks: {
2123
- id: string;
2124
- done: boolean;
2125
- description: string;
2126
- }[];
2127
- state: "ready" | "blocked" | "all_done";
2128
- progress: {
2129
- total: number;
2130
- complete: number;
2131
- remaining: number;
2132
- };
2158
+ context?: string | undefined;
2133
2159
  references?: z.objectInputType<{
2134
2160
  store_id: z.ZodString;
2135
2161
  root: z.ZodOptional<z.ZodString>;
@@ -2166,6 +2192,7 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2166
2192
  fetch: z.ZodOptional<z.ZodString>;
2167
2193
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2168
2194
  missingArtifacts?: string[] | undefined;
2195
+ operationGuidance?: string[] | undefined;
2169
2196
  }>, z.ZodObject<{
2170
2197
  changeName: z.ZodString;
2171
2198
  changeDir: z.ZodString;
@@ -2177,12 +2204,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2177
2204
  done: z.ZodBoolean;
2178
2205
  }, "strip", z.ZodTypeAny, {
2179
2206
  id: string;
2180
- done: boolean;
2181
2207
  description: string;
2208
+ done: boolean;
2182
2209
  }, {
2183
2210
  id: string;
2184
- done: boolean;
2185
2211
  description: string;
2212
+ done: boolean;
2186
2213
  }>, "many">;
2187
2214
  state: z.ZodEnum<["blocked", "all_done", "ready"]>;
2188
2215
  missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2290,6 +2317,8 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2290
2317
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2291
2318
  fetch: z.ZodOptional<z.ZodString>;
2292
2319
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2320
+ context: z.ZodOptional<z.ZodString>;
2321
+ operationGuidance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2293
2322
  evidence: z.ZodObject<{
2294
2323
  success: z.ZodBoolean;
2295
2324
  stdout: z.ZodString;
@@ -2325,15 +2354,15 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2325
2354
  }>;
2326
2355
  root: z.ZodOptional<z.ZodObject<{
2327
2356
  path: z.ZodString;
2328
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2357
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2329
2358
  store_id: z.ZodOptional<z.ZodString>;
2330
2359
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2331
2360
  path: z.ZodString;
2332
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2361
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2333
2362
  store_id: z.ZodOptional<z.ZodString>;
2334
2363
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2335
2364
  path: z.ZodString;
2336
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2365
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2337
2366
  store_id: z.ZodOptional<z.ZodString>;
2338
2367
  }, z.ZodTypeAny, "passthrough">>>;
2339
2368
  } & {
@@ -2373,15 +2402,15 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2373
2402
  }>;
2374
2403
  root: z.ZodOptional<z.ZodObject<{
2375
2404
  path: z.ZodString;
2376
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2405
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2377
2406
  store_id: z.ZodOptional<z.ZodString>;
2378
2407
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2379
2408
  path: z.ZodString;
2380
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2409
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2381
2410
  store_id: z.ZodOptional<z.ZodString>;
2382
2411
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2383
2412
  path: z.ZodString;
2384
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2413
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2385
2414
  store_id: z.ZodOptional<z.ZodString>;
2386
2415
  }, z.ZodTypeAny, "passthrough">>>;
2387
2416
  } & {
@@ -2421,15 +2450,15 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2421
2450
  }>;
2422
2451
  root: z.ZodOptional<z.ZodObject<{
2423
2452
  path: z.ZodString;
2424
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2453
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2425
2454
  store_id: z.ZodOptional<z.ZodString>;
2426
2455
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2427
2456
  path: z.ZodString;
2428
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2457
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2429
2458
  store_id: z.ZodOptional<z.ZodString>;
2430
2459
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2431
2460
  path: z.ZodString;
2432
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2461
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2433
2462
  store_id: z.ZodOptional<z.ZodString>;
2434
2463
  }, z.ZodTypeAny, "passthrough">>>;
2435
2464
  } & {
@@ -2449,12 +2478,12 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2449
2478
  complete: z.ZodNumber;
2450
2479
  remaining: z.ZodNumber;
2451
2480
  }, "strip", z.ZodTypeAny, {
2452
- total: number;
2453
2481
  complete: number;
2482
+ total: number;
2454
2483
  remaining: number;
2455
2484
  }, {
2456
- total: number;
2457
2485
  complete: number;
2486
+ total: number;
2458
2487
  remaining: number;
2459
2488
  }>;
2460
2489
  tracked: z.ZodObject<{
@@ -2463,93 +2492,98 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2463
2492
  remaining: z.ZodNumber;
2464
2493
  phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
2465
2494
  }, "strip", z.ZodTypeAny, {
2495
+ completed: number;
2466
2496
  total: number;
2467
2497
  remaining: number;
2468
- completed: number;
2469
- phase: "complete" | "no-tasks" | "in-progress";
2498
+ phase: "no-tasks" | "in-progress" | "complete";
2470
2499
  }, {
2500
+ completed: number;
2471
2501
  total: number;
2472
2502
  remaining: number;
2473
- completed: number;
2474
- phase: "complete" | "no-tasks" | "in-progress";
2503
+ phase: "no-tasks" | "in-progress" | "complete";
2475
2504
  }>;
2476
2505
  }, "strip", z.ZodTypeAny, {
2477
- kind: "tracked-task-mismatch";
2478
2506
  message: string;
2507
+ kind: "tracked-task-mismatch";
2479
2508
  apply: {
2480
- total: number;
2481
2509
  complete: number;
2510
+ total: number;
2482
2511
  remaining: number;
2483
2512
  };
2484
2513
  tracked: {
2514
+ completed: number;
2485
2515
  total: number;
2486
2516
  remaining: number;
2487
- completed: number;
2488
- phase: "complete" | "no-tasks" | "in-progress";
2517
+ phase: "no-tasks" | "in-progress" | "complete";
2489
2518
  };
2490
2519
  }, {
2491
- kind: "tracked-task-mismatch";
2492
2520
  message: string;
2521
+ kind: "tracked-task-mismatch";
2493
2522
  apply: {
2494
- total: number;
2495
2523
  complete: number;
2524
+ total: number;
2496
2525
  remaining: number;
2497
2526
  };
2498
2527
  tracked: {
2528
+ completed: number;
2499
2529
  total: number;
2500
2530
  remaining: number;
2501
- completed: number;
2502
- phase: "complete" | "no-tasks" | "in-progress";
2531
+ phase: "no-tasks" | "in-progress" | "complete";
2503
2532
  };
2504
2533
  }>>;
2505
2534
  }, "strip", z.ZodTypeAny, {
2506
- source: "openspec-instructions-apply";
2507
2535
  state: "ready" | "blocked" | "all_done";
2508
- total: number;
2509
2536
  complete: number;
2537
+ total: number;
2510
2538
  remaining: number;
2539
+ source: "openspec-instructions-apply";
2511
2540
  divergence: {
2512
- kind: "tracked-task-mismatch";
2513
2541
  message: string;
2542
+ kind: "tracked-task-mismatch";
2514
2543
  apply: {
2515
- total: number;
2516
2544
  complete: number;
2545
+ total: number;
2517
2546
  remaining: number;
2518
2547
  };
2519
2548
  tracked: {
2549
+ completed: number;
2520
2550
  total: number;
2521
2551
  remaining: number;
2522
- completed: number;
2523
- phase: "complete" | "no-tasks" | "in-progress";
2552
+ phase: "no-tasks" | "in-progress" | "complete";
2524
2553
  };
2525
2554
  } | null;
2526
2555
  }, {
2527
- source: "openspec-instructions-apply";
2528
2556
  state: "ready" | "blocked" | "all_done";
2529
- total: number;
2530
2557
  complete: number;
2558
+ total: number;
2531
2559
  remaining: number;
2560
+ source: "openspec-instructions-apply";
2532
2561
  divergence: {
2533
- kind: "tracked-task-mismatch";
2534
2562
  message: string;
2563
+ kind: "tracked-task-mismatch";
2535
2564
  apply: {
2536
- total: number;
2537
2565
  complete: number;
2566
+ total: number;
2538
2567
  remaining: number;
2539
2568
  };
2540
2569
  tracked: {
2570
+ completed: number;
2541
2571
  total: number;
2542
2572
  remaining: number;
2543
- completed: number;
2544
- phase: "complete" | "no-tasks" | "in-progress";
2573
+ phase: "no-tasks" | "in-progress" | "complete";
2545
2574
  };
2546
2575
  } | null;
2547
2576
  }>;
2548
2577
  }, "strip", z.ZodTypeAny, {
2578
+ state: "ready" | "blocked" | "all_done";
2579
+ tasks: {
2580
+ id: string;
2581
+ description: string;
2582
+ done: boolean;
2583
+ }[];
2549
2584
  changeName: string;
2550
2585
  schemaName: string;
2551
2586
  evidence: {
2552
- command: "instructions apply";
2553
2587
  success: boolean;
2554
2588
  stdout: string;
2555
2589
  stderr: string;
@@ -2562,49 +2596,45 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2562
2596
  target: z.ZodOptional<z.ZodString>;
2563
2597
  fix: z.ZodOptional<z.ZodString>;
2564
2598
  }, z.ZodTypeAny, "passthrough">[];
2599
+ command: "instructions apply";
2565
2600
  selector: {
2566
2601
  store?: string | undefined;
2567
2602
  };
2603
+ contractError?: string | undefined;
2568
2604
  root?: z.objectOutputType<{
2569
2605
  path: z.ZodString;
2570
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2606
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2571
2607
  store_id: z.ZodOptional<z.ZodString>;
2572
2608
  }, z.ZodTypeAny, "passthrough"> | undefined;
2573
- contractError?: string | undefined;
2574
2609
  } & {
2575
2610
  [k: string]: unknown;
2576
2611
  };
2577
2612
  changeDir: string;
2578
2613
  instruction: string;
2579
2614
  contextFiles: Record<string, string[]>;
2580
- tasks: {
2581
- id: string;
2582
- done: boolean;
2583
- description: string;
2584
- }[];
2585
- state: "ready" | "blocked" | "all_done";
2586
2615
  applyInstructionProgress: {
2587
- source: "openspec-instructions-apply";
2588
2616
  state: "ready" | "blocked" | "all_done";
2589
- total: number;
2590
2617
  complete: number;
2618
+ total: number;
2591
2619
  remaining: number;
2620
+ source: "openspec-instructions-apply";
2592
2621
  divergence: {
2593
- kind: "tracked-task-mismatch";
2594
2622
  message: string;
2623
+ kind: "tracked-task-mismatch";
2595
2624
  apply: {
2596
- total: number;
2597
2625
  complete: number;
2626
+ total: number;
2598
2627
  remaining: number;
2599
2628
  };
2600
2629
  tracked: {
2630
+ completed: number;
2601
2631
  total: number;
2602
2632
  remaining: number;
2603
- completed: number;
2604
- phase: "complete" | "no-tasks" | "in-progress";
2633
+ phase: "no-tasks" | "in-progress" | "complete";
2605
2634
  };
2606
2635
  } | null;
2607
2636
  };
2637
+ context?: string | undefined;
2608
2638
  references?: z.objectOutputType<{
2609
2639
  store_id: z.ZodString;
2610
2640
  root: z.ZodOptional<z.ZodString>;
@@ -2641,11 +2671,17 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2641
2671
  fetch: z.ZodOptional<z.ZodString>;
2642
2672
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2643
2673
  missingArtifacts?: string[] | undefined;
2674
+ operationGuidance?: string[] | undefined;
2644
2675
  }, {
2676
+ state: "ready" | "blocked" | "all_done";
2677
+ tasks: {
2678
+ id: string;
2679
+ description: string;
2680
+ done: boolean;
2681
+ }[];
2645
2682
  changeName: string;
2646
2683
  schemaName: string;
2647
2684
  evidence: {
2648
- command: "instructions apply";
2649
2685
  success: boolean;
2650
2686
  stdout: string;
2651
2687
  stderr: string;
@@ -2658,49 +2694,45 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2658
2694
  target: z.ZodOptional<z.ZodString>;
2659
2695
  fix: z.ZodOptional<z.ZodString>;
2660
2696
  }, z.ZodTypeAny, "passthrough">[];
2697
+ command: "instructions apply";
2661
2698
  selector: {
2662
2699
  store?: string | undefined;
2663
2700
  };
2701
+ contractError?: string | undefined;
2664
2702
  root?: z.objectInputType<{
2665
2703
  path: z.ZodString;
2666
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2704
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2667
2705
  store_id: z.ZodOptional<z.ZodString>;
2668
2706
  }, z.ZodTypeAny, "passthrough"> | undefined;
2669
- contractError?: string | undefined;
2670
2707
  } & {
2671
2708
  [k: string]: unknown;
2672
2709
  };
2673
2710
  changeDir: string;
2674
2711
  instruction: string;
2675
2712
  contextFiles: Record<string, string | string[]>;
2676
- tasks: {
2677
- id: string;
2678
- done: boolean;
2679
- description: string;
2680
- }[];
2681
- state: "ready" | "blocked" | "all_done";
2682
2713
  applyInstructionProgress: {
2683
- source: "openspec-instructions-apply";
2684
2714
  state: "ready" | "blocked" | "all_done";
2685
- total: number;
2686
2715
  complete: number;
2716
+ total: number;
2687
2717
  remaining: number;
2718
+ source: "openspec-instructions-apply";
2688
2719
  divergence: {
2689
- kind: "tracked-task-mismatch";
2690
2720
  message: string;
2721
+ kind: "tracked-task-mismatch";
2691
2722
  apply: {
2692
- total: number;
2693
2723
  complete: number;
2724
+ total: number;
2694
2725
  remaining: number;
2695
2726
  };
2696
2727
  tracked: {
2728
+ completed: number;
2697
2729
  total: number;
2698
2730
  remaining: number;
2699
- completed: number;
2700
- phase: "complete" | "no-tasks" | "in-progress";
2731
+ phase: "no-tasks" | "in-progress" | "complete";
2701
2732
  };
2702
2733
  } | null;
2703
2734
  };
2735
+ context?: string | undefined;
2704
2736
  references?: z.objectInputType<{
2705
2737
  store_id: z.ZodString;
2706
2738
  root: z.ZodOptional<z.ZodString>;
@@ -2737,8 +2769,220 @@ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
2737
2769
  fetch: z.ZodOptional<z.ZodString>;
2738
2770
  }, z.ZodTypeAny, "passthrough">[] | undefined;
2739
2771
  missingArtifacts?: string[] | undefined;
2772
+ operationGuidance?: string[] | undefined;
2740
2773
  }>>;
2741
2774
  type ApplyInstructions = z.infer<typeof ApplyInstructionsSchema>;
2775
+ declare const ArchiveInstructionsSchema: z.ZodObject<{
2776
+ changeName: z.ZodString;
2777
+ context: z.ZodOptional<z.ZodString>;
2778
+ operationGuidance: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2779
+ evidence: z.ZodObject<{
2780
+ success: z.ZodBoolean;
2781
+ stdout: z.ZodString;
2782
+ stderr: z.ZodString;
2783
+ exitCode: z.ZodNullable<z.ZodNumber>;
2784
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2785
+ diagnostics: z.ZodArray<z.ZodObject<{
2786
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2787
+ code: z.ZodString;
2788
+ message: z.ZodString;
2789
+ target: z.ZodOptional<z.ZodString>;
2790
+ fix: z.ZodOptional<z.ZodString>;
2791
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2792
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2793
+ code: z.ZodString;
2794
+ message: z.ZodString;
2795
+ target: z.ZodOptional<z.ZodString>;
2796
+ fix: z.ZodOptional<z.ZodString>;
2797
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2798
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2799
+ code: z.ZodString;
2800
+ message: z.ZodString;
2801
+ target: z.ZodOptional<z.ZodString>;
2802
+ fix: z.ZodOptional<z.ZodString>;
2803
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2804
+ contractError: z.ZodOptional<z.ZodString>;
2805
+ selector: z.ZodObject<{
2806
+ store: z.ZodOptional<z.ZodString>;
2807
+ }, "strict", z.ZodTypeAny, {
2808
+ store?: string | undefined;
2809
+ }, {
2810
+ store?: string | undefined;
2811
+ }>;
2812
+ root: z.ZodOptional<z.ZodObject<{
2813
+ path: z.ZodString;
2814
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2815
+ store_id: z.ZodOptional<z.ZodString>;
2816
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2817
+ path: z.ZodString;
2818
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2819
+ store_id: z.ZodOptional<z.ZodString>;
2820
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2821
+ path: z.ZodString;
2822
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2823
+ store_id: z.ZodOptional<z.ZodString>;
2824
+ }, z.ZodTypeAny, "passthrough">>>;
2825
+ } & {
2826
+ command: z.ZodLiteral<"instructions archive">;
2827
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2828
+ success: z.ZodBoolean;
2829
+ stdout: z.ZodString;
2830
+ stderr: z.ZodString;
2831
+ exitCode: z.ZodNullable<z.ZodNumber>;
2832
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2833
+ diagnostics: z.ZodArray<z.ZodObject<{
2834
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2835
+ code: z.ZodString;
2836
+ message: z.ZodString;
2837
+ target: z.ZodOptional<z.ZodString>;
2838
+ fix: z.ZodOptional<z.ZodString>;
2839
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2840
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2841
+ code: z.ZodString;
2842
+ message: z.ZodString;
2843
+ target: z.ZodOptional<z.ZodString>;
2844
+ fix: z.ZodOptional<z.ZodString>;
2845
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2846
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2847
+ code: z.ZodString;
2848
+ message: z.ZodString;
2849
+ target: z.ZodOptional<z.ZodString>;
2850
+ fix: z.ZodOptional<z.ZodString>;
2851
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2852
+ contractError: z.ZodOptional<z.ZodString>;
2853
+ selector: z.ZodObject<{
2854
+ store: z.ZodOptional<z.ZodString>;
2855
+ }, "strict", z.ZodTypeAny, {
2856
+ store?: string | undefined;
2857
+ }, {
2858
+ store?: string | undefined;
2859
+ }>;
2860
+ root: z.ZodOptional<z.ZodObject<{
2861
+ path: z.ZodString;
2862
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2863
+ store_id: z.ZodOptional<z.ZodString>;
2864
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2865
+ path: z.ZodString;
2866
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2867
+ store_id: z.ZodOptional<z.ZodString>;
2868
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2869
+ path: z.ZodString;
2870
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2871
+ store_id: z.ZodOptional<z.ZodString>;
2872
+ }, z.ZodTypeAny, "passthrough">>>;
2873
+ } & {
2874
+ command: z.ZodLiteral<"instructions archive">;
2875
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2876
+ success: z.ZodBoolean;
2877
+ stdout: z.ZodString;
2878
+ stderr: z.ZodString;
2879
+ exitCode: z.ZodNullable<z.ZodNumber>;
2880
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2881
+ diagnostics: z.ZodArray<z.ZodObject<{
2882
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2883
+ code: z.ZodString;
2884
+ message: z.ZodString;
2885
+ target: z.ZodOptional<z.ZodString>;
2886
+ fix: z.ZodOptional<z.ZodString>;
2887
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2888
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2889
+ code: z.ZodString;
2890
+ message: z.ZodString;
2891
+ target: z.ZodOptional<z.ZodString>;
2892
+ fix: z.ZodOptional<z.ZodString>;
2893
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2894
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2895
+ code: z.ZodString;
2896
+ message: z.ZodString;
2897
+ target: z.ZodOptional<z.ZodString>;
2898
+ fix: z.ZodOptional<z.ZodString>;
2899
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2900
+ contractError: z.ZodOptional<z.ZodString>;
2901
+ selector: z.ZodObject<{
2902
+ store: z.ZodOptional<z.ZodString>;
2903
+ }, "strict", z.ZodTypeAny, {
2904
+ store?: string | undefined;
2905
+ }, {
2906
+ store?: string | undefined;
2907
+ }>;
2908
+ root: z.ZodOptional<z.ZodObject<{
2909
+ path: z.ZodString;
2910
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2911
+ store_id: z.ZodOptional<z.ZodString>;
2912
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2913
+ path: z.ZodString;
2914
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2915
+ store_id: z.ZodOptional<z.ZodString>;
2916
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2917
+ path: z.ZodString;
2918
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2919
+ store_id: z.ZodOptional<z.ZodString>;
2920
+ }, z.ZodTypeAny, "passthrough">>>;
2921
+ } & {
2922
+ command: z.ZodLiteral<"instructions archive">;
2923
+ }, z.ZodTypeAny, "passthrough">>;
2924
+ }, "strip", z.ZodTypeAny, {
2925
+ changeName: string;
2926
+ evidence: {
2927
+ success: boolean;
2928
+ stdout: string;
2929
+ stderr: string;
2930
+ exitCode: number | null;
2931
+ payload: CliJsonValue;
2932
+ diagnostics: z.objectOutputType<{
2933
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2934
+ code: z.ZodString;
2935
+ message: z.ZodString;
2936
+ target: z.ZodOptional<z.ZodString>;
2937
+ fix: z.ZodOptional<z.ZodString>;
2938
+ }, z.ZodTypeAny, "passthrough">[];
2939
+ command: "instructions archive";
2940
+ selector: {
2941
+ store?: string | undefined;
2942
+ };
2943
+ contractError?: string | undefined;
2944
+ root?: z.objectOutputType<{
2945
+ path: z.ZodString;
2946
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2947
+ store_id: z.ZodOptional<z.ZodString>;
2948
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2949
+ } & {
2950
+ [k: string]: unknown;
2951
+ };
2952
+ context?: string | undefined;
2953
+ operationGuidance?: string[] | undefined;
2954
+ }, {
2955
+ changeName: string;
2956
+ evidence: {
2957
+ success: boolean;
2958
+ stdout: string;
2959
+ stderr: string;
2960
+ exitCode: number | null;
2961
+ payload: CliJsonValue;
2962
+ diagnostics: z.objectInputType<{
2963
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2964
+ code: z.ZodString;
2965
+ message: z.ZodString;
2966
+ target: z.ZodOptional<z.ZodString>;
2967
+ fix: z.ZodOptional<z.ZodString>;
2968
+ }, z.ZodTypeAny, "passthrough">[];
2969
+ command: "instructions archive";
2970
+ selector: {
2971
+ store?: string | undefined;
2972
+ };
2973
+ contractError?: string | undefined;
2974
+ root?: z.objectInputType<{
2975
+ path: z.ZodString;
2976
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2977
+ store_id: z.ZodOptional<z.ZodString>;
2978
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2979
+ } & {
2980
+ [k: string]: unknown;
2981
+ };
2982
+ context?: string | undefined;
2983
+ operationGuidance?: string[] | undefined;
2984
+ }>;
2985
+ type ArchiveInstructions = z.infer<typeof ArchiveInstructionsSchema>;
2742
2986
  declare const ArtifactInstructionsSchema: z.ZodObject<{
2743
2987
  changeName: z.ZodString;
2744
2988
  artifactId: z.ZodString;
@@ -2755,16 +2999,19 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2755
2999
  done: z.ZodBoolean;
2756
3000
  path: z.ZodString;
2757
3001
  description: z.ZodString;
3002
+ skipped: z.ZodOptional<z.ZodBoolean>;
2758
3003
  }, "strip", z.ZodTypeAny, {
2759
3004
  path: string;
2760
3005
  id: string;
2761
- done: boolean;
2762
3006
  description: string;
3007
+ done: boolean;
3008
+ skipped?: boolean | undefined;
2763
3009
  }, {
2764
3010
  path: string;
2765
3011
  id: string;
2766
- done: boolean;
2767
3012
  description: string;
3013
+ done: boolean;
3014
+ skipped?: boolean | undefined;
2768
3015
  }>, "many">;
2769
3016
  unlocks: z.ZodArray<z.ZodString, "many">;
2770
3017
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2905,15 +3152,15 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2905
3152
  }>;
2906
3153
  root: z.ZodOptional<z.ZodObject<{
2907
3154
  path: z.ZodString;
2908
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3155
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2909
3156
  store_id: z.ZodOptional<z.ZodString>;
2910
3157
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2911
3158
  path: z.ZodString;
2912
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3159
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2913
3160
  store_id: z.ZodOptional<z.ZodString>;
2914
3161
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2915
3162
  path: z.ZodString;
2916
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3163
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2917
3164
  store_id: z.ZodOptional<z.ZodString>;
2918
3165
  }, z.ZodTypeAny, "passthrough">>>;
2919
3166
  } & {
@@ -2953,15 +3200,15 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
2953
3200
  }>;
2954
3201
  root: z.ZodOptional<z.ZodObject<{
2955
3202
  path: z.ZodString;
2956
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3203
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2957
3204
  store_id: z.ZodOptional<z.ZodString>;
2958
3205
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2959
3206
  path: z.ZodString;
2960
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3207
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2961
3208
  store_id: z.ZodOptional<z.ZodString>;
2962
3209
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2963
3210
  path: z.ZodString;
2964
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3211
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
2965
3212
  store_id: z.ZodOptional<z.ZodString>;
2966
3213
  }, z.ZodTypeAny, "passthrough">>>;
2967
3214
  } & {
@@ -3001,26 +3248,27 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3001
3248
  }>;
3002
3249
  root: z.ZodOptional<z.ZodObject<{
3003
3250
  path: z.ZodString;
3004
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3251
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
3005
3252
  store_id: z.ZodOptional<z.ZodString>;
3006
3253
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3007
3254
  path: z.ZodString;
3008
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3255
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
3009
3256
  store_id: z.ZodOptional<z.ZodString>;
3010
3257
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3011
3258
  path: z.ZodString;
3012
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3259
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
3013
3260
  store_id: z.ZodOptional<z.ZodString>;
3014
3261
  }, z.ZodTypeAny, "passthrough">>>;
3015
3262
  } & {
3016
3263
  command: z.ZodLiteral<"instructions">;
3017
3264
  }, z.ZodTypeAny, "passthrough">>;
3018
3265
  }, "strip", z.ZodTypeAny, {
3266
+ artifactId: string;
3267
+ outputPath: string;
3268
+ description: string;
3019
3269
  changeName: string;
3020
3270
  schemaName: string;
3021
- outputPath: string;
3022
3271
  evidence: {
3023
- command: "instructions";
3024
3272
  success: boolean;
3025
3273
  stdout: string;
3026
3274
  stderr: string;
@@ -3033,31 +3281,31 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3033
3281
  target: z.ZodOptional<z.ZodString>;
3034
3282
  fix: z.ZodOptional<z.ZodString>;
3035
3283
  }, z.ZodTypeAny, "passthrough">[];
3284
+ command: "instructions";
3036
3285
  selector: {
3037
3286
  store?: string | undefined;
3038
3287
  };
3288
+ contractError?: string | undefined;
3039
3289
  root?: z.objectOutputType<{
3040
3290
  path: z.ZodString;
3041
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3291
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
3042
3292
  store_id: z.ZodOptional<z.ZodString>;
3043
3293
  }, z.ZodTypeAny, "passthrough"> | undefined;
3044
- contractError?: string | undefined;
3045
3294
  } & {
3046
3295
  [k: string]: unknown;
3047
3296
  };
3048
- artifactId: string;
3049
3297
  changeDir: string;
3050
- description: string;
3051
3298
  template: string;
3052
3299
  dependencies: {
3053
3300
  path: string;
3054
3301
  id: string;
3055
- done: boolean;
3056
3302
  description: string;
3303
+ done: boolean;
3304
+ skipped?: boolean | undefined;
3057
3305
  }[];
3058
3306
  unlocks: string[];
3059
- instruction?: string | null | undefined;
3060
3307
  context?: string | null | undefined;
3308
+ instruction?: string | null | undefined;
3061
3309
  rules?: string[] | null | undefined;
3062
3310
  references?: z.objectOutputType<{
3063
3311
  store_id: z.ZodString;
@@ -3095,11 +3343,12 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3095
3343
  fetch: z.ZodOptional<z.ZodString>;
3096
3344
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3097
3345
  }, {
3346
+ artifactId: string;
3347
+ outputPath: string;
3348
+ description: string;
3098
3349
  changeName: string;
3099
3350
  schemaName: string;
3100
- outputPath: string;
3101
3351
  evidence: {
3102
- command: "instructions";
3103
3352
  success: boolean;
3104
3353
  stdout: string;
3105
3354
  stderr: string;
@@ -3112,31 +3361,31 @@ declare const ArtifactInstructionsSchema: z.ZodObject<{
3112
3361
  target: z.ZodOptional<z.ZodString>;
3113
3362
  fix: z.ZodOptional<z.ZodString>;
3114
3363
  }, z.ZodTypeAny, "passthrough">[];
3364
+ command: "instructions";
3115
3365
  selector: {
3116
3366
  store?: string | undefined;
3117
3367
  };
3368
+ contractError?: string | undefined;
3118
3369
  root?: z.objectInputType<{
3119
3370
  path: z.ZodString;
3120
- source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3371
+ source: z.ZodEnum<["store", "declared", "nearest", "global_default", "implicit"]>;
3121
3372
  store_id: z.ZodOptional<z.ZodString>;
3122
3373
  }, z.ZodTypeAny, "passthrough"> | undefined;
3123
- contractError?: string | undefined;
3124
3374
  } & {
3125
3375
  [k: string]: unknown;
3126
3376
  };
3127
- artifactId: string;
3128
3377
  changeDir: string;
3129
- description: string;
3130
3378
  template: string;
3131
3379
  dependencies: {
3132
3380
  path: string;
3133
3381
  id: string;
3134
- done: boolean;
3135
3382
  description: string;
3383
+ done: boolean;
3384
+ skipped?: boolean | undefined;
3136
3385
  }[];
3137
3386
  unlocks: string[];
3138
- instruction?: string | null | undefined;
3139
3387
  context?: string | null | undefined;
3388
+ instruction?: string | null | undefined;
3140
3389
  rules?: string[] | null | undefined;
3141
3390
  references?: z.objectInputType<{
3142
3391
  store_id: z.ZodString;
@@ -3333,6 +3582,7 @@ declare const SchemaDetailSchema: z.ZodObject<{
3333
3582
  applyTracks: z.ZodOptional<z.ZodString>;
3334
3583
  applyInstruction: z.ZodOptional<z.ZodString>;
3335
3584
  }, "strip", z.ZodTypeAny, {
3585
+ name: string;
3336
3586
  applyRequires: string[];
3337
3587
  artifacts: {
3338
3588
  id: string;
@@ -3342,12 +3592,12 @@ declare const SchemaDetailSchema: z.ZodObject<{
3342
3592
  instruction?: string | undefined;
3343
3593
  template?: string | undefined;
3344
3594
  }[];
3345
- name: string;
3346
3595
  description?: string | undefined;
3347
3596
  version?: string | number | undefined;
3348
3597
  applyTracks?: string | undefined;
3349
3598
  applyInstruction?: string | undefined;
3350
3599
  }, {
3600
+ name: string;
3351
3601
  applyRequires: string[];
3352
3602
  artifacts: {
3353
3603
  id: string;
@@ -3357,7 +3607,6 @@ declare const SchemaDetailSchema: z.ZodObject<{
3357
3607
  instruction?: string | undefined;
3358
3608
  template?: string | undefined;
3359
3609
  }[];
3360
- name: string;
3361
3610
  description?: string | undefined;
3362
3611
  version?: string | number | undefined;
3363
3612
  applyTracks?: string | undefined;
@@ -3412,6 +3661,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3412
3661
  applyTracks: z.ZodOptional<z.ZodString>;
3413
3662
  applyInstruction: z.ZodOptional<z.ZodString>;
3414
3663
  }, "strip", z.ZodTypeAny, {
3664
+ name: string;
3415
3665
  applyRequires: string[];
3416
3666
  artifacts: {
3417
3667
  id: string;
@@ -3421,12 +3671,12 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3421
3671
  instruction?: string | undefined;
3422
3672
  template?: string | undefined;
3423
3673
  }[];
3424
- name: string;
3425
3674
  description?: string | undefined;
3426
3675
  version?: string | number | undefined;
3427
3676
  applyTracks?: string | undefined;
3428
3677
  applyInstruction?: string | undefined;
3429
3678
  }, {
3679
+ name: string;
3430
3680
  applyRequires: string[];
3431
3681
  artifacts: {
3432
3682
  id: string;
@@ -3436,7 +3686,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3436
3686
  instruction?: string | undefined;
3437
3687
  template?: string | undefined;
3438
3688
  }[];
3439
- name: string;
3440
3689
  description?: string | undefined;
3441
3690
  version?: string | number | undefined;
3442
3691
  applyTracks?: string | undefined;
@@ -3517,6 +3766,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3517
3766
  source: z.ZodEnum<["project", "user", "package"]>;
3518
3767
  }, z.ZodTypeAny, "passthrough">[];
3519
3768
  schemaDetails: Record<string, {
3769
+ name: string;
3520
3770
  applyRequires: string[];
3521
3771
  artifacts: {
3522
3772
  id: string;
@@ -3526,7 +3776,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3526
3776
  instruction?: string | undefined;
3527
3777
  template?: string | undefined;
3528
3778
  }[];
3529
- name: string;
3530
3779
  description?: string | undefined;
3531
3780
  version?: string | number | undefined;
3532
3781
  applyTracks?: string | undefined;
@@ -3563,6 +3812,7 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3563
3812
  source: z.ZodEnum<["project", "user", "package"]>;
3564
3813
  }, z.ZodTypeAny, "passthrough">[];
3565
3814
  schemaDetails: Record<string, {
3815
+ name: string;
3566
3816
  applyRequires: string[];
3567
3817
  artifacts: {
3568
3818
  id: string;
@@ -3572,7 +3822,6 @@ declare const OpsxConfigBundleSchema: z.ZodObject<{
3572
3822
  instruction?: string | undefined;
3573
3823
  template?: string | undefined;
3574
3824
  }[];
3575
- name: string;
3576
3825
  description?: string | undefined;
3577
3826
  version?: string | number | undefined;
3578
3827
  applyTracks?: string | undefined;
@@ -3639,4 +3888,4 @@ declare const TemplateContentMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3639
3888
  }>>;
3640
3889
  type TemplateContentMap = z.infer<typeof TemplateContentMapSchema>;
3641
3890
  //#endregion
3642
- export { projectTaskProjectionsFromMarkdownFiles as $, TemplateContentMapSchema as A, TaskProjectionOptions as B, SchemaDetail as C, SchemaResolution as D, SchemaInfoSchema as E, ApplyInstructionDivergence as F, TrackedTaskProgress as G, TrackedTask as H, ApplyInstructionProgress as I, createDocumentChecklistSummary as J, TrackedTaskSource as K, ApplyInstructionState as L, TemplatesMap as M, TemplatesSchema as N, SchemaResolutionSchema as O, isGlobPattern as P, parseMarkdownTasks as Q, DocumentChecklistGroup as R, SchemaArtifactSchema as S, SchemaInfo as T, TrackedTaskLocation as U, TaskProjections as V, TrackedTaskPhase as W, deriveTrackedTaskPhase as X, createTrackedTaskProgress as Y, isMarkdownTaskSourcePath as Z, OpsxConfigBundle as _, ApplyTask as a, OpsxStatusEvidenceSchema as b, ArtifactInstructionsSchema as c, ChangeStatus as d, toggleMarkdownTask as et, ChangeStatusSchema as f, OpsxCliEvidenceSchema as g, OpsxCliEvidence as h, ApplyInstructionsSchema as i, TemplateContentSchema as j, TemplateContentMap as k, ArtifactStatus as l, DependencyInfoSchema as m, ApplyInstructionsContextFilesSchema as n, ApplyTaskSchema as o, DependencyInfo as p, createApplyInstructionProgress as q, ApplyInstructionsProjectionSchema as r, ArtifactInstructions as s, ApplyInstructions as t, ArtifactStatusSchema as u, OpsxConfigBundleSchema as v, SchemaDetailSchema as w, SchemaArtifact as x, OpsxStatusEvidence as y, DocumentChecklistSummary as z };
3891
+ export { isMarkdownTaskSourcePath as $, SchemaResolutionSchema as A, DocumentChecklistGroup as B, SchemaArtifact as C, SchemaInfo as D, SchemaDetailSchema as E, TemplatesSchema as F, TrackedTaskLocation as G, TaskProjectionOptions as H, isGlobPattern as I, TrackedTaskSource as J, TrackedTaskPhase as K, ApplyInstructionDivergence as L, TemplateContentMapSchema as M, TemplateContentSchema as N, SchemaInfoSchema as O, TemplatesMap as P, deriveTrackedTaskPhase as Q, ApplyInstructionProgress as R, OpsxStatusEvidenceSchema as S, SchemaDetail as T, TaskProjections as U, DocumentChecklistSummary as V, TrackedTask as W, createDocumentChecklistSummary as X, createApplyInstructionProgress as Y, createTrackedTaskProgress as Z, OpsxCliEvidence as _, ApplyTask as a, OpsxConfigBundleSchema as b, ArchiveInstructionsSchema as c, ArtifactStatus as d, parseMarkdownTasks as et, ArtifactStatusSchema as f, DependencyInfoSchema as g, DependencyInfo as h, ApplyInstructionsSchema as i, TemplateContentMap as j, SchemaResolution as k, ArtifactInstructions as l, ChangeStatusSchema as m, ApplyInstructionsContextFilesSchema as n, toggleMarkdownTask as nt, ApplyTaskSchema as o, ChangeStatus as p, TrackedTaskProgress as q, ApplyInstructionsProjectionSchema as r, ArchiveInstructions as s, ApplyInstructions as t, projectTaskProjectionsFromMarkdownFiles as tt, ArtifactInstructionsSchema as u, OpsxCliEvidenceSchema as v, SchemaArtifactSchema as w, OpsxStatusEvidence as x, OpsxConfigBundle as y, ApplyInstructionState as z };