@openspecui/core 5.0.0 → 6.0.0-beta.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 (116) hide show
  1. package/dist/cli-projection-DxnVGm2B.d.mts +789 -0
  2. package/dist/cli-projection-vO3-FJg5.mjs +161 -0
  3. package/dist/cli-projection.d.mts +6 -0
  4. package/dist/cli-projection.mjs +4 -0
  5. package/dist/command-result-fkH3Ekdz.d.mts +8477 -0
  6. package/dist/common-D8YUK9dA.mjs +57 -0
  7. package/dist/dashboard-summary-transport-CQ4is5_e.d.mts +66227 -0
  8. package/dist/dashboard-summary-transport-D2VBAIxg.mjs +175 -0
  9. package/dist/dashboard-summary-transport.d.mts +25 -0
  10. package/dist/dashboard-summary-transport.mjs +6 -0
  11. package/dist/{document-translation-D4YK18I3.mjs → document-translation-CeJFGMoy.mjs} +1 -1
  12. package/dist/{document-translation-7R8cf8_B.d.mts → document-translation-D50BnvVh.d.mts} +2 -2
  13. package/dist/document-translation.d.mts +1 -1
  14. package/dist/document-translation.mjs +2 -2
  15. package/dist/{hosted-app-CzMRiEgY.mjs → hosted-app-BPU4OR41.mjs} +31 -9
  16. package/dist/hosted-app.d.mts +25 -2
  17. package/dist/hosted-app.mjs +7 -2
  18. package/dist/hosted-contract-CcRnb51e.mjs +234 -0
  19. package/dist/hosted-contract.d.mts +25 -0
  20. package/dist/hosted-contract.mjs +7 -0
  21. package/dist/index.d.mts +25 -2686
  22. package/dist/index.mjs +2114 -1098
  23. package/dist/{local-download-profiles-caa4PECd.d.mts → local-download-profiles-BL_rtlVM.d.mts} +1 -1
  24. package/dist/local-download-profiles.d.mts +2 -2
  25. package/dist/local-download-profiles.mjs +1 -1
  26. package/dist/markdown-facts.d.mts +1 -1
  27. package/dist/markdown-facts.mjs +1 -1
  28. package/dist/{markdown-reading-CgXuXp6s.d.mts → markdown-reading-LUdqfbxH.d.mts} +1 -1
  29. package/dist/{markdown-reading-DdcB7run.mjs → markdown-reading-mG4OAbDO.mjs} +1 -1
  30. package/dist/markdown-reading.d.mts +2 -2
  31. package/dist/markdown-reading.mjs +2 -2
  32. package/dist/{notifications-AKAcmeKT.mjs → notifications-C2bxAzX_.mjs} +13 -2
  33. package/dist/{notifications-DZeOl4HV.d.mts → notifications-CgJlLgLO.d.mts} +51 -25
  34. package/dist/notifications.d.mts +2 -2
  35. package/dist/notifications.mjs +3 -3
  36. package/dist/{openspec-annotations-CeXd0JIZ.d.mts → openspec-annotations-C58Aoi-V.d.mts} +2 -2
  37. package/dist/{openspec-annotations-D_6Pz7k4.mjs → openspec-annotations-DCfqBMal.mjs} +2 -2
  38. package/dist/openspec-annotations.d.mts +3 -3
  39. package/dist/openspec-annotations.mjs +3 -3
  40. package/dist/openspec-compat.d.mts +18 -11
  41. package/dist/openspec-compat.mjs +20 -13
  42. package/dist/{openspec-projection-B8s-KWQ7.mjs → openspec-projection-DCgToo0Q.mjs} +2 -2
  43. package/dist/{openspec-projection-B0ch1rZw.d.mts → openspec-projection-RohNZI4p.d.mts} +3 -3
  44. package/dist/openspec-projection.d.mts +5 -5
  45. package/dist/openspec-projection.mjs +4 -4
  46. package/dist/opsx-display-path.d.mts +1 -1
  47. package/dist/opsx-display-path.mjs +1 -1
  48. package/dist/{opsx-entity-DZyl-uhQ.d.mts → opsx-entity-D7kDQsze.d.mts} +2 -2
  49. package/dist/opsx-entity.d.mts +7 -3
  50. package/dist/opsx-entity.mjs +1 -1
  51. package/dist/{opsx-schema-detail-CS0tWa9v.d.mts → opsx-schema-detail-BxDXEwDY.d.mts} +2 -2
  52. package/dist/opsx-schema-detail.d.mts +8 -4
  53. package/dist/opsx-schema-detail.mjs +1 -1
  54. package/dist/opsx-types-BJ8AjhrS.d.mts +3642 -0
  55. package/dist/opsx-workflows-BvnJqjfL.d.mts +36 -0
  56. package/dist/opsx-workflows-Ccc6U7IR.mjs +89 -0
  57. package/dist/opsx-workflows.d.mts +2 -0
  58. package/dist/opsx-workflows.mjs +3 -0
  59. package/dist/planning-cli-projection-DIRxeq2H.mjs +421 -0
  60. package/dist/planning-cli-projection.d.mts +25 -0
  61. package/dist/planning-cli-projection.mjs +9 -0
  62. package/dist/schemas-BFroDdOC.mjs +287 -0
  63. package/dist/{schemas-D01aQnV4.d.mts → schemas-DS-JqAJ2.d.mts} +524 -78
  64. package/dist/{sounds-kgDn4x8v.d.mts → sounds-qhRgCy0F.d.mts} +12 -12
  65. package/dist/sounds.d.mts +1 -1
  66. package/dist/sounds.mjs +1 -1
  67. package/dist/spec-catalog-ZGuiZ4CE.mjs +901 -0
  68. package/dist/spec-catalog.d.mts +25 -0
  69. package/dist/spec-catalog.mjs +6 -0
  70. package/dist/store-mutation-protocol-5tfs-RmD.d.mts +727 -0
  71. package/dist/store-mutation-protocol-CSwD-xPO.mjs +63 -0
  72. package/dist/store-mutation-protocol.d.mts +2 -0
  73. package/dist/store-mutation-protocol.mjs +4 -0
  74. package/dist/{store-types-Cu41QSww.mjs → store-types-DlX1REBg.mjs} +39 -18
  75. package/dist/{store-types-BiE-Ey--.d.mts → store-types-b554wAQJ.d.mts} +22 -12
  76. package/dist/store-types.d.mts +6 -2
  77. package/dist/store-types.mjs +2 -2
  78. package/dist/task-progress-B_IWVXjA.mjs +216 -0
  79. package/dist/task-progress.d.mts +7 -4
  80. package/dist/task-progress.mjs +3 -3
  81. package/dist/{terminal-audio-TBoU2jSK.mjs → terminal-audio-d6KItUeJ.mjs} +1 -1
  82. package/dist/{terminal-audio-CsuGTNV-.d.mts → terminal-audio-tXDm_EDe.d.mts} +1 -1
  83. package/dist/terminal-audio.d.mts +2 -2
  84. package/dist/terminal-audio.mjs +2 -2
  85. package/dist/terminal-control.d.mts +2 -2
  86. package/dist/terminal-control.mjs +1 -1
  87. package/dist/{terminal-invocation-BlFwKpIc.d.mts → terminal-invocation-BOvxThym.d.mts} +239 -120
  88. package/dist/terminal-invocation.d.mts +1 -1
  89. package/dist/terminal-invocation.mjs +1 -1
  90. package/dist/terminal-theme.d.mts +1 -1
  91. package/dist/terminal-theme.mjs +1 -1
  92. package/dist/translation-language-pair.d.mts +1 -1
  93. package/dist/translation-language-pair.mjs +1 -1
  94. package/dist/{translator-BErXgQxx.d.mts → translator-NKv1wo3o.d.mts} +86 -86
  95. package/dist/translator.d.mts +1 -1
  96. package/dist/translator.mjs +1 -1
  97. package/package.json +55 -7
  98. package/dist/hosted-app-DHs94gIR.d.mts +0 -43
  99. package/dist/opsx-types-Dnb06uff.d.mts +0 -402
  100. package/dist/task-progress-C1TGMbIR.d.mts +0 -24
  101. package/dist/task-progress-DhHYHnTv.mjs +0 -70
  102. /package/dist/{local-download-profiles-kpNEcdF_.mjs → local-download-profiles-odzOdf96.mjs} +0 -0
  103. /package/dist/{markdown-facts-BBCTe_qq.mjs → markdown-facts-BUqLvFRf.mjs} +0 -0
  104. /package/dist/{markdown-facts-Dk7FKaaT.d.mts → markdown-facts-CCw3QdbM.d.mts} +0 -0
  105. /package/dist/{opsx-display-path-CUCOrHcM.mjs → opsx-display-path-D13XV20v.mjs} +0 -0
  106. /package/dist/{opsx-display-path-cIMKa1aw.d.mts → opsx-display-path-RXS5JTbV.d.mts} +0 -0
  107. /package/dist/{opsx-entity-c7m5CbgU.mjs → opsx-entity-Cn_Zu1J3.mjs} +0 -0
  108. /package/dist/{opsx-schema-detail-BH82X6aU.mjs → opsx-schema-detail-Beis4Ba2.mjs} +0 -0
  109. /package/dist/{sounds-CB3ubSnj.mjs → sounds-NXwveBqq.mjs} +0 -0
  110. /package/dist/{terminal-control-VpTuh17B.mjs → terminal-control-BSAlOTs8.mjs} +0 -0
  111. /package/dist/{terminal-invocation-C2MCNBhK.mjs → terminal-invocation-0p-j2eSP.mjs} +0 -0
  112. /package/dist/{terminal-theme-cevliJw2.mjs → terminal-theme-B8iRttTR.mjs} +0 -0
  113. /package/dist/{terminal-theme-hvQjTsNh.d.mts → terminal-theme-m3MSGJ7U.d.mts} +0 -0
  114. /package/dist/{translation-language-pair-DZ_WNp_M.mjs → translation-language-pair-Bbhk-LAC.mjs} +0 -0
  115. /package/dist/{translation-language-pair-DmaOfHqD.d.mts → translation-language-pair-C18GPATW.d.mts} +0 -0
  116. /package/dist/{translator-DbUT1Ayn.mjs → translator-Cjtv4tya.mjs} +0 -0
@@ -0,0 +1,3642 @@
1
+ import { n as CliJsonValue } from "./command-result-fkH3Ekdz.mjs";
2
+ import { n as ChangeFile, v as Task } from "./schemas-DS-JqAJ2.mjs";
3
+ import { z } from "zod";
4
+
5
+ //#region src/task-progress.d.ts
6
+ type TrackedTaskPhase = 'no-tasks' | 'in-progress' | 'complete';
7
+ /** Exact tracked Markdown checkbox location used for a guarded mutation. */
8
+ interface TrackedTaskLocation {
9
+ filePath: string;
10
+ taskIndex: number;
11
+ }
12
+ /** Formal tracked task with its physical source identity. */
13
+ interface TrackedTask extends Task {
14
+ location: TrackedTaskLocation;
15
+ }
16
+ type TrackedTaskSource = {
17
+ kind: 'artifact';
18
+ artifactId: string;
19
+ outputPath: string;
20
+ filePaths: string[];
21
+ } | {
22
+ kind: 'top-level-fallback';
23
+ artifactId: null;
24
+ outputPath: 'tasks.md';
25
+ filePaths: ['tasks.md'];
26
+ } | {
27
+ kind: 'none';
28
+ artifactId: null;
29
+ outputPath: null;
30
+ filePaths: [];
31
+ };
32
+ /** Formal workflow task truth resolved from the OpenSpec tracked artifact. */
33
+ interface TrackedTaskProgress {
34
+ tasks: TrackedTask[];
35
+ total: number;
36
+ completed: number;
37
+ remaining: number;
38
+ phase: TrackedTaskPhase;
39
+ source: TrackedTaskSource;
40
+ }
41
+ /** One physical schema document, counted once even when artifact globs overlap. */
42
+ interface DocumentChecklistGroup {
43
+ artifactIds: string[];
44
+ filePath: string;
45
+ tasks: Task[];
46
+ total: number;
47
+ completed: number;
48
+ remaining: number;
49
+ }
50
+ /** Secondary checklist analytics. This type intentionally has no workflow phase. */
51
+ interface DocumentChecklistSummary {
52
+ groups: DocumentChecklistGroup[];
53
+ total: number;
54
+ completed: number;
55
+ remaining: number;
56
+ }
57
+ type ApplyInstructionState = 'blocked' | 'all_done' | 'ready';
58
+ interface ApplyInstructionDivergence {
59
+ kind: 'tracked-task-mismatch';
60
+ message: string;
61
+ apply: {
62
+ total: number;
63
+ complete: number;
64
+ remaining: number;
65
+ };
66
+ tracked: {
67
+ total: number;
68
+ completed: number;
69
+ remaining: number;
70
+ phase: TrackedTaskPhase;
71
+ };
72
+ }
73
+ /** Raw OpenSpec Apply progress with explicit source and tracked-task comparison. */
74
+ interface ApplyInstructionProgress {
75
+ source: 'openspec-instructions-apply';
76
+ total: number;
77
+ complete: number;
78
+ remaining: number;
79
+ state: ApplyInstructionState;
80
+ divergence: ApplyInstructionDivergence | null;
81
+ }
82
+ interface TaskProjections {
83
+ trackedTaskProgress: TrackedTaskProgress;
84
+ documentChecklistSummary: DocumentChecklistSummary;
85
+ }
86
+ interface TaskProjectionOptions {
87
+ schemaDetail?: SchemaDetail | null;
88
+ hasSchemaMetadata?: boolean;
89
+ }
90
+ declare function isMarkdownTaskSourcePath(path: string): boolean;
91
+ declare function parseMarkdownTasks(content: string, options?: {
92
+ initialIndex?: number;
93
+ }): Task[];
94
+ declare function deriveTrackedTaskPhase(total: number, completed: number): TrackedTaskPhase;
95
+ declare function createTrackedTaskProgress(tasks: TrackedTask[], source?: TrackedTaskSource): TrackedTaskProgress;
96
+ declare function createDocumentChecklistSummary(groups: DocumentChecklistGroup[]): DocumentChecklistSummary;
97
+ declare function createApplyInstructionProgress(input: {
98
+ total: number;
99
+ complete: number;
100
+ remaining: number;
101
+ state: ApplyInstructionState;
102
+ }, trackedTaskProgress?: TrackedTaskProgress | null): ApplyInstructionProgress;
103
+ /** Toggle one checkbox by its 1-based index while preserving the surrounding Markdown. */
104
+ declare function toggleMarkdownTask(content: string, taskIndex: number, completed: boolean): string | null;
105
+ declare function projectTaskProjectionsFromMarkdownFiles(files: readonly ChangeFile[], options?: TaskProjectionOptions): TaskProjections;
106
+ //#endregion
107
+ //#region src/opsx-types.d.ts
108
+ /** Check if an outputPath contains glob pattern characters */
109
+ declare function isGlobPattern(pattern: string): boolean;
110
+ /** Raw process and parser evidence retained beside one live CLI projection. */
111
+ declare const OpsxCliEvidenceSchema: z.ZodObject<{
112
+ command: z.ZodEnum<["status", "instructions", "instructions apply"]>;
113
+ success: z.ZodBoolean;
114
+ stdout: z.ZodString;
115
+ stderr: z.ZodString;
116
+ exitCode: z.ZodNullable<z.ZodNumber>;
117
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
118
+ diagnostics: z.ZodArray<z.ZodObject<{
119
+ severity: z.ZodEnum<["error", "warning", "info"]>;
120
+ code: z.ZodString;
121
+ message: z.ZodString;
122
+ target: z.ZodOptional<z.ZodString>;
123
+ fix: z.ZodOptional<z.ZodString>;
124
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
125
+ severity: z.ZodEnum<["error", "warning", "info"]>;
126
+ code: z.ZodString;
127
+ message: z.ZodString;
128
+ target: z.ZodOptional<z.ZodString>;
129
+ fix: z.ZodOptional<z.ZodString>;
130
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
131
+ severity: z.ZodEnum<["error", "warning", "info"]>;
132
+ code: z.ZodString;
133
+ message: z.ZodString;
134
+ target: z.ZodOptional<z.ZodString>;
135
+ fix: z.ZodOptional<z.ZodString>;
136
+ }, z.ZodTypeAny, "passthrough">>, "many">;
137
+ contractError: z.ZodOptional<z.ZodString>;
138
+ selector: z.ZodObject<{
139
+ store: z.ZodOptional<z.ZodString>;
140
+ }, "strict", z.ZodTypeAny, {
141
+ store?: string | undefined;
142
+ }, {
143
+ store?: string | undefined;
144
+ }>;
145
+ root: z.ZodOptional<z.ZodObject<{
146
+ path: z.ZodString;
147
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
148
+ store_id: z.ZodOptional<z.ZodString>;
149
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
150
+ path: z.ZodString;
151
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
152
+ store_id: z.ZodOptional<z.ZodString>;
153
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
154
+ path: z.ZodString;
155
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
156
+ store_id: z.ZodOptional<z.ZodString>;
157
+ }, z.ZodTypeAny, "passthrough">>>;
158
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
159
+ command: z.ZodEnum<["status", "instructions", "instructions apply"]>;
160
+ success: z.ZodBoolean;
161
+ stdout: z.ZodString;
162
+ stderr: z.ZodString;
163
+ exitCode: z.ZodNullable<z.ZodNumber>;
164
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
165
+ diagnostics: z.ZodArray<z.ZodObject<{
166
+ severity: z.ZodEnum<["error", "warning", "info"]>;
167
+ code: z.ZodString;
168
+ message: z.ZodString;
169
+ target: z.ZodOptional<z.ZodString>;
170
+ fix: z.ZodOptional<z.ZodString>;
171
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
172
+ severity: z.ZodEnum<["error", "warning", "info"]>;
173
+ code: z.ZodString;
174
+ message: z.ZodString;
175
+ target: z.ZodOptional<z.ZodString>;
176
+ fix: z.ZodOptional<z.ZodString>;
177
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
178
+ severity: z.ZodEnum<["error", "warning", "info"]>;
179
+ code: z.ZodString;
180
+ message: z.ZodString;
181
+ target: z.ZodOptional<z.ZodString>;
182
+ fix: z.ZodOptional<z.ZodString>;
183
+ }, z.ZodTypeAny, "passthrough">>, "many">;
184
+ contractError: z.ZodOptional<z.ZodString>;
185
+ selector: z.ZodObject<{
186
+ store: z.ZodOptional<z.ZodString>;
187
+ }, "strict", z.ZodTypeAny, {
188
+ store?: string | undefined;
189
+ }, {
190
+ store?: string | undefined;
191
+ }>;
192
+ root: z.ZodOptional<z.ZodObject<{
193
+ path: z.ZodString;
194
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
195
+ store_id: z.ZodOptional<z.ZodString>;
196
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
197
+ path: z.ZodString;
198
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
199
+ store_id: z.ZodOptional<z.ZodString>;
200
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
201
+ path: z.ZodString;
202
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
203
+ store_id: z.ZodOptional<z.ZodString>;
204
+ }, z.ZodTypeAny, "passthrough">>>;
205
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
206
+ command: z.ZodEnum<["status", "instructions", "instructions apply"]>;
207
+ success: z.ZodBoolean;
208
+ stdout: z.ZodString;
209
+ stderr: z.ZodString;
210
+ exitCode: z.ZodNullable<z.ZodNumber>;
211
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
212
+ diagnostics: z.ZodArray<z.ZodObject<{
213
+ severity: z.ZodEnum<["error", "warning", "info"]>;
214
+ code: z.ZodString;
215
+ message: z.ZodString;
216
+ target: z.ZodOptional<z.ZodString>;
217
+ fix: z.ZodOptional<z.ZodString>;
218
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
219
+ severity: z.ZodEnum<["error", "warning", "info"]>;
220
+ code: z.ZodString;
221
+ message: z.ZodString;
222
+ target: z.ZodOptional<z.ZodString>;
223
+ fix: z.ZodOptional<z.ZodString>;
224
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
225
+ severity: z.ZodEnum<["error", "warning", "info"]>;
226
+ code: z.ZodString;
227
+ message: z.ZodString;
228
+ target: z.ZodOptional<z.ZodString>;
229
+ fix: z.ZodOptional<z.ZodString>;
230
+ }, z.ZodTypeAny, "passthrough">>, "many">;
231
+ contractError: z.ZodOptional<z.ZodString>;
232
+ selector: z.ZodObject<{
233
+ store: z.ZodOptional<z.ZodString>;
234
+ }, "strict", z.ZodTypeAny, {
235
+ store?: string | undefined;
236
+ }, {
237
+ store?: string | undefined;
238
+ }>;
239
+ root: z.ZodOptional<z.ZodObject<{
240
+ path: z.ZodString;
241
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
242
+ store_id: z.ZodOptional<z.ZodString>;
243
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
244
+ path: z.ZodString;
245
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
246
+ store_id: z.ZodOptional<z.ZodString>;
247
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
248
+ path: z.ZodString;
249
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
250
+ store_id: z.ZodOptional<z.ZodString>;
251
+ }, z.ZodTypeAny, "passthrough">>>;
252
+ }, z.ZodTypeAny, "passthrough">>;
253
+ type OpsxCliEvidence = z.infer<typeof OpsxCliEvidenceSchema>;
254
+ /** Status-specific evidence kept as a narrow public contract for consumers. */
255
+ declare const OpsxStatusEvidenceSchema: z.ZodObject<{
256
+ success: z.ZodBoolean;
257
+ stdout: z.ZodString;
258
+ stderr: z.ZodString;
259
+ exitCode: z.ZodNullable<z.ZodNumber>;
260
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
261
+ diagnostics: z.ZodArray<z.ZodObject<{
262
+ severity: z.ZodEnum<["error", "warning", "info"]>;
263
+ code: z.ZodString;
264
+ message: z.ZodString;
265
+ target: z.ZodOptional<z.ZodString>;
266
+ fix: z.ZodOptional<z.ZodString>;
267
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
268
+ severity: z.ZodEnum<["error", "warning", "info"]>;
269
+ code: z.ZodString;
270
+ message: z.ZodString;
271
+ target: z.ZodOptional<z.ZodString>;
272
+ fix: z.ZodOptional<z.ZodString>;
273
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
274
+ severity: z.ZodEnum<["error", "warning", "info"]>;
275
+ code: z.ZodString;
276
+ message: z.ZodString;
277
+ target: z.ZodOptional<z.ZodString>;
278
+ fix: z.ZodOptional<z.ZodString>;
279
+ }, z.ZodTypeAny, "passthrough">>, "many">;
280
+ contractError: z.ZodOptional<z.ZodString>;
281
+ selector: z.ZodObject<{
282
+ store: z.ZodOptional<z.ZodString>;
283
+ }, "strict", z.ZodTypeAny, {
284
+ store?: string | undefined;
285
+ }, {
286
+ store?: string | undefined;
287
+ }>;
288
+ root: z.ZodOptional<z.ZodObject<{
289
+ path: z.ZodString;
290
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
291
+ store_id: z.ZodOptional<z.ZodString>;
292
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
293
+ path: z.ZodString;
294
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
295
+ store_id: z.ZodOptional<z.ZodString>;
296
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
297
+ path: z.ZodString;
298
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
299
+ store_id: z.ZodOptional<z.ZodString>;
300
+ }, z.ZodTypeAny, "passthrough">>>;
301
+ } & {
302
+ command: z.ZodLiteral<"status">;
303
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
304
+ success: z.ZodBoolean;
305
+ stdout: z.ZodString;
306
+ stderr: z.ZodString;
307
+ exitCode: z.ZodNullable<z.ZodNumber>;
308
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
309
+ diagnostics: z.ZodArray<z.ZodObject<{
310
+ severity: z.ZodEnum<["error", "warning", "info"]>;
311
+ code: z.ZodString;
312
+ message: z.ZodString;
313
+ target: z.ZodOptional<z.ZodString>;
314
+ fix: z.ZodOptional<z.ZodString>;
315
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
316
+ severity: z.ZodEnum<["error", "warning", "info"]>;
317
+ code: z.ZodString;
318
+ message: z.ZodString;
319
+ target: z.ZodOptional<z.ZodString>;
320
+ fix: z.ZodOptional<z.ZodString>;
321
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
322
+ severity: z.ZodEnum<["error", "warning", "info"]>;
323
+ code: z.ZodString;
324
+ message: z.ZodString;
325
+ target: z.ZodOptional<z.ZodString>;
326
+ fix: z.ZodOptional<z.ZodString>;
327
+ }, z.ZodTypeAny, "passthrough">>, "many">;
328
+ contractError: z.ZodOptional<z.ZodString>;
329
+ selector: z.ZodObject<{
330
+ store: z.ZodOptional<z.ZodString>;
331
+ }, "strict", z.ZodTypeAny, {
332
+ store?: string | undefined;
333
+ }, {
334
+ store?: string | undefined;
335
+ }>;
336
+ root: z.ZodOptional<z.ZodObject<{
337
+ path: z.ZodString;
338
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
339
+ store_id: z.ZodOptional<z.ZodString>;
340
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
341
+ path: z.ZodString;
342
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
343
+ store_id: z.ZodOptional<z.ZodString>;
344
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
345
+ path: z.ZodString;
346
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
347
+ store_id: z.ZodOptional<z.ZodString>;
348
+ }, z.ZodTypeAny, "passthrough">>>;
349
+ } & {
350
+ command: z.ZodLiteral<"status">;
351
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
352
+ success: z.ZodBoolean;
353
+ stdout: z.ZodString;
354
+ stderr: z.ZodString;
355
+ exitCode: z.ZodNullable<z.ZodNumber>;
356
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
357
+ diagnostics: z.ZodArray<z.ZodObject<{
358
+ severity: z.ZodEnum<["error", "warning", "info"]>;
359
+ code: z.ZodString;
360
+ message: z.ZodString;
361
+ target: z.ZodOptional<z.ZodString>;
362
+ fix: z.ZodOptional<z.ZodString>;
363
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
364
+ severity: z.ZodEnum<["error", "warning", "info"]>;
365
+ code: z.ZodString;
366
+ message: z.ZodString;
367
+ target: z.ZodOptional<z.ZodString>;
368
+ fix: z.ZodOptional<z.ZodString>;
369
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
370
+ severity: z.ZodEnum<["error", "warning", "info"]>;
371
+ code: z.ZodString;
372
+ message: z.ZodString;
373
+ target: z.ZodOptional<z.ZodString>;
374
+ fix: z.ZodOptional<z.ZodString>;
375
+ }, z.ZodTypeAny, "passthrough">>, "many">;
376
+ contractError: z.ZodOptional<z.ZodString>;
377
+ selector: z.ZodObject<{
378
+ store: z.ZodOptional<z.ZodString>;
379
+ }, "strict", z.ZodTypeAny, {
380
+ store?: string | undefined;
381
+ }, {
382
+ store?: string | undefined;
383
+ }>;
384
+ root: z.ZodOptional<z.ZodObject<{
385
+ path: z.ZodString;
386
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
387
+ store_id: z.ZodOptional<z.ZodString>;
388
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
389
+ path: z.ZodString;
390
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
391
+ store_id: z.ZodOptional<z.ZodString>;
392
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
393
+ path: z.ZodString;
394
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
395
+ store_id: z.ZodOptional<z.ZodString>;
396
+ }, z.ZodTypeAny, "passthrough">>>;
397
+ } & {
398
+ command: z.ZodLiteral<"status">;
399
+ }, z.ZodTypeAny, "passthrough">>;
400
+ type OpsxStatusEvidence = z.infer<typeof OpsxStatusEvidenceSchema>;
401
+ declare const ArtifactStatusSchema: z.ZodObject<{
402
+ id: z.ZodString;
403
+ outputPath: z.ZodString;
404
+ status: z.ZodEnum<["done", "ready", "blocked"]>;
405
+ missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
406
+ relativePath: z.ZodOptional<z.ZodString>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ status: "ready" | "done" | "blocked";
409
+ id: string;
410
+ outputPath: string;
411
+ missingDeps?: string[] | undefined;
412
+ relativePath?: string | undefined;
413
+ }, {
414
+ status: "ready" | "done" | "blocked";
415
+ id: string;
416
+ outputPath: string;
417
+ missingDeps?: string[] | undefined;
418
+ relativePath?: string | undefined;
419
+ }>;
420
+ type ArtifactStatus = z.infer<typeof ArtifactStatusSchema>;
421
+ declare const ChangeStatusSchema: z.ZodObject<{
422
+ changeName: z.ZodString;
423
+ schemaName: z.ZodString;
424
+ isComplete: z.ZodBoolean;
425
+ applyRequires: z.ZodArray<z.ZodString, "many">;
426
+ artifacts: z.ZodArray<z.ZodObject<{
427
+ id: z.ZodString;
428
+ outputPath: z.ZodString;
429
+ status: z.ZodEnum<["done", "ready", "blocked"]>;
430
+ missingDeps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
431
+ relativePath: z.ZodOptional<z.ZodString>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ status: "ready" | "done" | "blocked";
434
+ id: string;
435
+ outputPath: string;
436
+ missingDeps?: string[] | undefined;
437
+ relativePath?: string | undefined;
438
+ }, {
439
+ status: "ready" | "done" | "blocked";
440
+ id: string;
441
+ outputPath: string;
442
+ missingDeps?: string[] | undefined;
443
+ relativePath?: string | undefined;
444
+ }>, "many">;
445
+ provenance: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
446
+ kind: z.ZodLiteral<"cli">;
447
+ planningHome: z.ZodObject<{
448
+ kind: z.ZodLiteral<"repo">;
449
+ root: z.ZodString;
450
+ changesDir: z.ZodString;
451
+ defaultSchema: z.ZodString;
452
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
453
+ kind: z.ZodLiteral<"repo">;
454
+ root: z.ZodString;
455
+ changesDir: z.ZodString;
456
+ defaultSchema: z.ZodString;
457
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
458
+ kind: z.ZodLiteral<"repo">;
459
+ root: z.ZodString;
460
+ changesDir: z.ZodString;
461
+ defaultSchema: z.ZodString;
462
+ }, z.ZodTypeAny, "passthrough">>;
463
+ changeRoot: z.ZodString;
464
+ artifactPaths: z.ZodRecord<z.ZodString, z.ZodObject<{
465
+ outputPath: z.ZodString;
466
+ resolvedOutputPath: z.ZodString;
467
+ existingOutputPaths: z.ZodArray<z.ZodString, "many">;
468
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
469
+ outputPath: z.ZodString;
470
+ resolvedOutputPath: z.ZodString;
471
+ existingOutputPaths: z.ZodArray<z.ZodString, "many">;
472
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
473
+ outputPath: z.ZodString;
474
+ resolvedOutputPath: z.ZodString;
475
+ existingOutputPaths: z.ZodArray<z.ZodString, "many">;
476
+ }, z.ZodTypeAny, "passthrough">>>;
477
+ nextSteps: z.ZodArray<z.ZodString, "many">;
478
+ actionContext: z.ZodObject<{
479
+ mode: z.ZodLiteral<"repo-local">;
480
+ sourceOfTruth: z.ZodLiteral<"repo">;
481
+ planningArtifacts: z.ZodArray<z.ZodString, "many">;
482
+ linkedContext: z.ZodArray<z.ZodObject<{
483
+ name: z.ZodString;
484
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
485
+ name: z.ZodString;
486
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
487
+ name: z.ZodString;
488
+ }, z.ZodTypeAny, "passthrough">>, "many">;
489
+ allowedEditRoots: z.ZodArray<z.ZodString, "many">;
490
+ requiresAffectedAreaSelection: z.ZodBoolean;
491
+ constraints: z.ZodArray<z.ZodString, "many">;
492
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
493
+ mode: z.ZodLiteral<"repo-local">;
494
+ sourceOfTruth: z.ZodLiteral<"repo">;
495
+ planningArtifacts: z.ZodArray<z.ZodString, "many">;
496
+ linkedContext: z.ZodArray<z.ZodObject<{
497
+ name: z.ZodString;
498
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
499
+ name: z.ZodString;
500
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
501
+ name: z.ZodString;
502
+ }, z.ZodTypeAny, "passthrough">>, "many">;
503
+ allowedEditRoots: z.ZodArray<z.ZodString, "many">;
504
+ requiresAffectedAreaSelection: z.ZodBoolean;
505
+ constraints: z.ZodArray<z.ZodString, "many">;
506
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
507
+ mode: z.ZodLiteral<"repo-local">;
508
+ sourceOfTruth: z.ZodLiteral<"repo">;
509
+ planningArtifacts: z.ZodArray<z.ZodString, "many">;
510
+ linkedContext: z.ZodArray<z.ZodObject<{
511
+ name: z.ZodString;
512
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
513
+ name: z.ZodString;
514
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
515
+ name: z.ZodString;
516
+ }, z.ZodTypeAny, "passthrough">>, "many">;
517
+ allowedEditRoots: z.ZodArray<z.ZodString, "many">;
518
+ requiresAffectedAreaSelection: z.ZodBoolean;
519
+ constraints: z.ZodArray<z.ZodString, "many">;
520
+ }, z.ZodTypeAny, "passthrough">>;
521
+ root: z.ZodObject<{
522
+ path: z.ZodString;
523
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
524
+ store_id: z.ZodOptional<z.ZodString>;
525
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
526
+ path: z.ZodString;
527
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
528
+ store_id: z.ZodOptional<z.ZodString>;
529
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
530
+ path: z.ZodString;
531
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
532
+ store_id: z.ZodOptional<z.ZodString>;
533
+ }, z.ZodTypeAny, "passthrough">>;
534
+ evidence: z.ZodObject<{
535
+ success: z.ZodBoolean;
536
+ stdout: z.ZodString;
537
+ stderr: z.ZodString;
538
+ exitCode: z.ZodNullable<z.ZodNumber>;
539
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
540
+ diagnostics: z.ZodArray<z.ZodObject<{
541
+ severity: z.ZodEnum<["error", "warning", "info"]>;
542
+ code: z.ZodString;
543
+ message: z.ZodString;
544
+ target: z.ZodOptional<z.ZodString>;
545
+ fix: z.ZodOptional<z.ZodString>;
546
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
547
+ severity: z.ZodEnum<["error", "warning", "info"]>;
548
+ code: z.ZodString;
549
+ message: z.ZodString;
550
+ target: z.ZodOptional<z.ZodString>;
551
+ fix: z.ZodOptional<z.ZodString>;
552
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
553
+ severity: z.ZodEnum<["error", "warning", "info"]>;
554
+ code: z.ZodString;
555
+ message: z.ZodString;
556
+ target: z.ZodOptional<z.ZodString>;
557
+ fix: z.ZodOptional<z.ZodString>;
558
+ }, z.ZodTypeAny, "passthrough">>, "many">;
559
+ contractError: z.ZodOptional<z.ZodString>;
560
+ selector: z.ZodObject<{
561
+ store: z.ZodOptional<z.ZodString>;
562
+ }, "strict", z.ZodTypeAny, {
563
+ store?: string | undefined;
564
+ }, {
565
+ store?: string | undefined;
566
+ }>;
567
+ root: z.ZodOptional<z.ZodObject<{
568
+ path: z.ZodString;
569
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
570
+ store_id: z.ZodOptional<z.ZodString>;
571
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
572
+ path: z.ZodString;
573
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
574
+ store_id: z.ZodOptional<z.ZodString>;
575
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
576
+ path: z.ZodString;
577
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
578
+ store_id: z.ZodOptional<z.ZodString>;
579
+ }, z.ZodTypeAny, "passthrough">>>;
580
+ } & {
581
+ command: z.ZodLiteral<"status">;
582
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
583
+ success: z.ZodBoolean;
584
+ stdout: z.ZodString;
585
+ stderr: z.ZodString;
586
+ exitCode: z.ZodNullable<z.ZodNumber>;
587
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
588
+ diagnostics: z.ZodArray<z.ZodObject<{
589
+ severity: z.ZodEnum<["error", "warning", "info"]>;
590
+ code: z.ZodString;
591
+ message: z.ZodString;
592
+ target: z.ZodOptional<z.ZodString>;
593
+ fix: z.ZodOptional<z.ZodString>;
594
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
595
+ severity: z.ZodEnum<["error", "warning", "info"]>;
596
+ code: z.ZodString;
597
+ message: z.ZodString;
598
+ target: z.ZodOptional<z.ZodString>;
599
+ fix: z.ZodOptional<z.ZodString>;
600
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
601
+ severity: z.ZodEnum<["error", "warning", "info"]>;
602
+ code: z.ZodString;
603
+ message: z.ZodString;
604
+ target: z.ZodOptional<z.ZodString>;
605
+ fix: z.ZodOptional<z.ZodString>;
606
+ }, z.ZodTypeAny, "passthrough">>, "many">;
607
+ contractError: z.ZodOptional<z.ZodString>;
608
+ selector: z.ZodObject<{
609
+ store: z.ZodOptional<z.ZodString>;
610
+ }, "strict", z.ZodTypeAny, {
611
+ store?: string | undefined;
612
+ }, {
613
+ store?: string | undefined;
614
+ }>;
615
+ root: z.ZodOptional<z.ZodObject<{
616
+ path: z.ZodString;
617
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
618
+ store_id: z.ZodOptional<z.ZodString>;
619
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
620
+ path: z.ZodString;
621
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
622
+ store_id: z.ZodOptional<z.ZodString>;
623
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
624
+ path: z.ZodString;
625
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
626
+ store_id: z.ZodOptional<z.ZodString>;
627
+ }, z.ZodTypeAny, "passthrough">>>;
628
+ } & {
629
+ command: z.ZodLiteral<"status">;
630
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
631
+ success: z.ZodBoolean;
632
+ stdout: z.ZodString;
633
+ stderr: z.ZodString;
634
+ exitCode: z.ZodNullable<z.ZodNumber>;
635
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
636
+ diagnostics: z.ZodArray<z.ZodObject<{
637
+ severity: z.ZodEnum<["error", "warning", "info"]>;
638
+ code: z.ZodString;
639
+ message: z.ZodString;
640
+ target: z.ZodOptional<z.ZodString>;
641
+ fix: z.ZodOptional<z.ZodString>;
642
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
643
+ severity: z.ZodEnum<["error", "warning", "info"]>;
644
+ code: z.ZodString;
645
+ message: z.ZodString;
646
+ target: z.ZodOptional<z.ZodString>;
647
+ fix: z.ZodOptional<z.ZodString>;
648
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
649
+ severity: z.ZodEnum<["error", "warning", "info"]>;
650
+ code: z.ZodString;
651
+ message: z.ZodString;
652
+ target: z.ZodOptional<z.ZodString>;
653
+ fix: z.ZodOptional<z.ZodString>;
654
+ }, z.ZodTypeAny, "passthrough">>, "many">;
655
+ contractError: z.ZodOptional<z.ZodString>;
656
+ selector: z.ZodObject<{
657
+ store: z.ZodOptional<z.ZodString>;
658
+ }, "strict", z.ZodTypeAny, {
659
+ store?: string | undefined;
660
+ }, {
661
+ store?: string | undefined;
662
+ }>;
663
+ root: z.ZodOptional<z.ZodObject<{
664
+ path: z.ZodString;
665
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
666
+ store_id: z.ZodOptional<z.ZodString>;
667
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
668
+ path: z.ZodString;
669
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
670
+ store_id: z.ZodOptional<z.ZodString>;
671
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
672
+ path: z.ZodString;
673
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
674
+ store_id: z.ZodOptional<z.ZodString>;
675
+ }, z.ZodTypeAny, "passthrough">>>;
676
+ } & {
677
+ command: z.ZodLiteral<"status">;
678
+ }, z.ZodTypeAny, "passthrough">>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ kind: "cli";
681
+ root: {
682
+ path: string;
683
+ source: "store" | "declared" | "nearest" | "implicit";
684
+ store_id?: string | undefined;
685
+ } & {
686
+ [k: string]: unknown;
687
+ };
688
+ evidence: {
689
+ success: boolean;
690
+ stdout: string;
691
+ stderr: string;
692
+ exitCode: number | null;
693
+ payload: CliJsonValue;
694
+ diagnostics: z.objectOutputType<{
695
+ severity: z.ZodEnum<["error", "warning", "info"]>;
696
+ code: z.ZodString;
697
+ message: z.ZodString;
698
+ target: z.ZodOptional<z.ZodString>;
699
+ fix: z.ZodOptional<z.ZodString>;
700
+ }, z.ZodTypeAny, "passthrough">[];
701
+ command: "status";
702
+ selector: {
703
+ store?: string | undefined;
704
+ };
705
+ contractError?: string | undefined;
706
+ root?: z.objectOutputType<{
707
+ path: z.ZodString;
708
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
709
+ store_id: z.ZodOptional<z.ZodString>;
710
+ }, z.ZodTypeAny, "passthrough"> | undefined;
711
+ } & {
712
+ [k: string]: unknown;
713
+ };
714
+ planningHome: {
715
+ kind: "repo";
716
+ root: string;
717
+ changesDir: string;
718
+ defaultSchema: string;
719
+ } & {
720
+ [k: string]: unknown;
721
+ };
722
+ changeRoot: string;
723
+ artifactPaths: Record<string, z.objectOutputType<{
724
+ outputPath: z.ZodString;
725
+ resolvedOutputPath: z.ZodString;
726
+ existingOutputPaths: z.ZodArray<z.ZodString, "many">;
727
+ }, z.ZodTypeAny, "passthrough">>;
728
+ nextSteps: string[];
729
+ actionContext: {
730
+ mode: "repo-local";
731
+ sourceOfTruth: "repo";
732
+ planningArtifacts: string[];
733
+ linkedContext: z.objectOutputType<{
734
+ name: z.ZodString;
735
+ }, z.ZodTypeAny, "passthrough">[];
736
+ allowedEditRoots: string[];
737
+ requiresAffectedAreaSelection: boolean;
738
+ constraints: string[];
739
+ } & {
740
+ [k: string]: unknown;
741
+ };
742
+ }, {
743
+ kind: "cli";
744
+ root: {
745
+ path: string;
746
+ source: "store" | "declared" | "nearest" | "implicit";
747
+ store_id?: string | undefined;
748
+ } & {
749
+ [k: string]: unknown;
750
+ };
751
+ evidence: {
752
+ success: boolean;
753
+ stdout: string;
754
+ stderr: string;
755
+ exitCode: number | null;
756
+ payload: CliJsonValue;
757
+ diagnostics: z.objectInputType<{
758
+ severity: z.ZodEnum<["error", "warning", "info"]>;
759
+ code: z.ZodString;
760
+ message: z.ZodString;
761
+ target: z.ZodOptional<z.ZodString>;
762
+ fix: z.ZodOptional<z.ZodString>;
763
+ }, z.ZodTypeAny, "passthrough">[];
764
+ command: "status";
765
+ selector: {
766
+ store?: string | undefined;
767
+ };
768
+ contractError?: string | undefined;
769
+ root?: z.objectInputType<{
770
+ path: z.ZodString;
771
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
772
+ store_id: z.ZodOptional<z.ZodString>;
773
+ }, z.ZodTypeAny, "passthrough"> | undefined;
774
+ } & {
775
+ [k: string]: unknown;
776
+ };
777
+ planningHome: {
778
+ kind: "repo";
779
+ root: string;
780
+ changesDir: string;
781
+ defaultSchema: string;
782
+ } & {
783
+ [k: string]: unknown;
784
+ };
785
+ changeRoot: string;
786
+ artifactPaths: Record<string, z.objectInputType<{
787
+ outputPath: z.ZodString;
788
+ resolvedOutputPath: z.ZodString;
789
+ existingOutputPaths: z.ZodArray<z.ZodString, "many">;
790
+ }, z.ZodTypeAny, "passthrough">>;
791
+ nextSteps: string[];
792
+ actionContext: {
793
+ mode: "repo-local";
794
+ sourceOfTruth: "repo";
795
+ planningArtifacts: string[];
796
+ linkedContext: z.objectInputType<{
797
+ name: z.ZodString;
798
+ }, z.ZodTypeAny, "passthrough">[];
799
+ allowedEditRoots: string[];
800
+ requiresAffectedAreaSelection: boolean;
801
+ constraints: string[];
802
+ } & {
803
+ [k: string]: unknown;
804
+ };
805
+ }>, z.ZodObject<{
806
+ kind: z.ZodLiteral<"static">;
807
+ }, "strip", z.ZodTypeAny, {
808
+ kind: "static";
809
+ }, {
810
+ kind: "static";
811
+ }>]>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ changeName: string;
814
+ schemaName: string;
815
+ isComplete: boolean;
816
+ applyRequires: string[];
817
+ artifacts: {
818
+ status: "ready" | "done" | "blocked";
819
+ id: string;
820
+ outputPath: string;
821
+ missingDeps?: string[] | undefined;
822
+ relativePath?: string | undefined;
823
+ }[];
824
+ provenance: {
825
+ kind: "cli";
826
+ root: {
827
+ path: string;
828
+ source: "store" | "declared" | "nearest" | "implicit";
829
+ store_id?: string | undefined;
830
+ } & {
831
+ [k: string]: unknown;
832
+ };
833
+ evidence: {
834
+ success: boolean;
835
+ stdout: string;
836
+ stderr: string;
837
+ exitCode: number | null;
838
+ payload: CliJsonValue;
839
+ diagnostics: z.objectOutputType<{
840
+ severity: z.ZodEnum<["error", "warning", "info"]>;
841
+ code: z.ZodString;
842
+ message: z.ZodString;
843
+ target: z.ZodOptional<z.ZodString>;
844
+ fix: z.ZodOptional<z.ZodString>;
845
+ }, z.ZodTypeAny, "passthrough">[];
846
+ command: "status";
847
+ selector: {
848
+ store?: string | undefined;
849
+ };
850
+ contractError?: string | undefined;
851
+ root?: z.objectOutputType<{
852
+ path: z.ZodString;
853
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
854
+ store_id: z.ZodOptional<z.ZodString>;
855
+ }, z.ZodTypeAny, "passthrough"> | undefined;
856
+ } & {
857
+ [k: string]: unknown;
858
+ };
859
+ planningHome: {
860
+ kind: "repo";
861
+ root: string;
862
+ changesDir: string;
863
+ defaultSchema: string;
864
+ } & {
865
+ [k: string]: unknown;
866
+ };
867
+ changeRoot: string;
868
+ artifactPaths: Record<string, z.objectOutputType<{
869
+ outputPath: z.ZodString;
870
+ resolvedOutputPath: z.ZodString;
871
+ existingOutputPaths: z.ZodArray<z.ZodString, "many">;
872
+ }, z.ZodTypeAny, "passthrough">>;
873
+ nextSteps: string[];
874
+ actionContext: {
875
+ mode: "repo-local";
876
+ sourceOfTruth: "repo";
877
+ planningArtifacts: string[];
878
+ linkedContext: z.objectOutputType<{
879
+ name: z.ZodString;
880
+ }, z.ZodTypeAny, "passthrough">[];
881
+ allowedEditRoots: string[];
882
+ requiresAffectedAreaSelection: boolean;
883
+ constraints: string[];
884
+ } & {
885
+ [k: string]: unknown;
886
+ };
887
+ } | {
888
+ kind: "static";
889
+ };
890
+ }, {
891
+ changeName: string;
892
+ schemaName: string;
893
+ isComplete: boolean;
894
+ applyRequires: string[];
895
+ artifacts: {
896
+ status: "ready" | "done" | "blocked";
897
+ id: string;
898
+ outputPath: string;
899
+ missingDeps?: string[] | undefined;
900
+ relativePath?: string | undefined;
901
+ }[];
902
+ provenance: {
903
+ kind: "cli";
904
+ root: {
905
+ path: string;
906
+ source: "store" | "declared" | "nearest" | "implicit";
907
+ store_id?: string | undefined;
908
+ } & {
909
+ [k: string]: unknown;
910
+ };
911
+ evidence: {
912
+ success: boolean;
913
+ stdout: string;
914
+ stderr: string;
915
+ exitCode: number | null;
916
+ payload: CliJsonValue;
917
+ diagnostics: z.objectInputType<{
918
+ severity: z.ZodEnum<["error", "warning", "info"]>;
919
+ code: z.ZodString;
920
+ message: z.ZodString;
921
+ target: z.ZodOptional<z.ZodString>;
922
+ fix: z.ZodOptional<z.ZodString>;
923
+ }, z.ZodTypeAny, "passthrough">[];
924
+ command: "status";
925
+ selector: {
926
+ store?: string | undefined;
927
+ };
928
+ contractError?: string | undefined;
929
+ root?: z.objectInputType<{
930
+ path: z.ZodString;
931
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
932
+ store_id: z.ZodOptional<z.ZodString>;
933
+ }, z.ZodTypeAny, "passthrough"> | undefined;
934
+ } & {
935
+ [k: string]: unknown;
936
+ };
937
+ planningHome: {
938
+ kind: "repo";
939
+ root: string;
940
+ changesDir: string;
941
+ defaultSchema: string;
942
+ } & {
943
+ [k: string]: unknown;
944
+ };
945
+ changeRoot: string;
946
+ artifactPaths: Record<string, z.objectInputType<{
947
+ outputPath: z.ZodString;
948
+ resolvedOutputPath: z.ZodString;
949
+ existingOutputPaths: z.ZodArray<z.ZodString, "many">;
950
+ }, z.ZodTypeAny, "passthrough">>;
951
+ nextSteps: string[];
952
+ actionContext: {
953
+ mode: "repo-local";
954
+ sourceOfTruth: "repo";
955
+ planningArtifacts: string[];
956
+ linkedContext: z.objectInputType<{
957
+ name: z.ZodString;
958
+ }, z.ZodTypeAny, "passthrough">[];
959
+ allowedEditRoots: string[];
960
+ requiresAffectedAreaSelection: boolean;
961
+ constraints: string[];
962
+ } & {
963
+ [k: string]: unknown;
964
+ };
965
+ } | {
966
+ kind: "static";
967
+ };
968
+ }>;
969
+ type ChangeStatus = z.infer<typeof ChangeStatusSchema>;
970
+ declare const DependencyInfoSchema: z.ZodObject<{
971
+ id: z.ZodString;
972
+ done: z.ZodBoolean;
973
+ path: z.ZodString;
974
+ description: z.ZodString;
975
+ }, "strip", z.ZodTypeAny, {
976
+ path: string;
977
+ id: string;
978
+ done: boolean;
979
+ description: string;
980
+ }, {
981
+ path: string;
982
+ id: string;
983
+ done: boolean;
984
+ description: string;
985
+ }>;
986
+ type DependencyInfo = z.infer<typeof DependencyInfoSchema>;
987
+ declare const ApplyTaskSchema: z.ZodObject<{
988
+ id: z.ZodString;
989
+ description: z.ZodString;
990
+ done: z.ZodBoolean;
991
+ }, "strip", z.ZodTypeAny, {
992
+ id: string;
993
+ done: boolean;
994
+ description: string;
995
+ }, {
996
+ id: string;
997
+ done: boolean;
998
+ description: string;
999
+ }>;
1000
+ type ApplyTask = z.infer<typeof ApplyTaskSchema>;
1001
+ declare const ApplyInstructionsContextFilesSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
1002
+ /** Runtime schema for the final transformed Apply projection returned to clients. */
1003
+ declare const ApplyInstructionsProjectionSchema: z.ZodObject<{
1004
+ changeName: z.ZodString;
1005
+ changeDir: z.ZodString;
1006
+ schemaName: z.ZodString;
1007
+ contextFiles: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
1008
+ tasks: z.ZodArray<z.ZodObject<{
1009
+ id: z.ZodString;
1010
+ description: z.ZodString;
1011
+ done: z.ZodBoolean;
1012
+ }, "strip", z.ZodTypeAny, {
1013
+ id: string;
1014
+ done: boolean;
1015
+ description: string;
1016
+ }, {
1017
+ id: string;
1018
+ done: boolean;
1019
+ description: string;
1020
+ }>, "many">;
1021
+ state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1022
+ missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1023
+ instruction: z.ZodString;
1024
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1025
+ store_id: z.ZodString;
1026
+ root: z.ZodOptional<z.ZodString>;
1027
+ status: z.ZodArray<z.ZodObject<{
1028
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1029
+ code: z.ZodString;
1030
+ message: z.ZodString;
1031
+ target: z.ZodOptional<z.ZodString>;
1032
+ fix: z.ZodOptional<z.ZodString>;
1033
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1034
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1035
+ code: z.ZodString;
1036
+ message: z.ZodString;
1037
+ target: z.ZodOptional<z.ZodString>;
1038
+ fix: z.ZodOptional<z.ZodString>;
1039
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1040
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1041
+ code: z.ZodString;
1042
+ message: z.ZodString;
1043
+ target: z.ZodOptional<z.ZodString>;
1044
+ fix: z.ZodOptional<z.ZodString>;
1045
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1046
+ } & {
1047
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
+ id: z.ZodString;
1049
+ summary: z.ZodString;
1050
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1051
+ id: z.ZodString;
1052
+ summary: z.ZodString;
1053
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1054
+ id: z.ZodString;
1055
+ summary: z.ZodString;
1056
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1057
+ fetch: z.ZodOptional<z.ZodString>;
1058
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1059
+ store_id: z.ZodString;
1060
+ root: z.ZodOptional<z.ZodString>;
1061
+ status: z.ZodArray<z.ZodObject<{
1062
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1063
+ code: z.ZodString;
1064
+ message: z.ZodString;
1065
+ target: z.ZodOptional<z.ZodString>;
1066
+ fix: z.ZodOptional<z.ZodString>;
1067
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1068
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1069
+ code: z.ZodString;
1070
+ message: z.ZodString;
1071
+ target: z.ZodOptional<z.ZodString>;
1072
+ fix: z.ZodOptional<z.ZodString>;
1073
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1074
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1075
+ code: z.ZodString;
1076
+ message: z.ZodString;
1077
+ target: z.ZodOptional<z.ZodString>;
1078
+ fix: z.ZodOptional<z.ZodString>;
1079
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1080
+ } & {
1081
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1082
+ id: z.ZodString;
1083
+ summary: z.ZodString;
1084
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1085
+ id: z.ZodString;
1086
+ summary: z.ZodString;
1087
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1088
+ id: z.ZodString;
1089
+ summary: z.ZodString;
1090
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1091
+ fetch: z.ZodOptional<z.ZodString>;
1092
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1093
+ store_id: z.ZodString;
1094
+ root: z.ZodOptional<z.ZodString>;
1095
+ status: z.ZodArray<z.ZodObject<{
1096
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1097
+ code: z.ZodString;
1098
+ message: z.ZodString;
1099
+ target: z.ZodOptional<z.ZodString>;
1100
+ fix: z.ZodOptional<z.ZodString>;
1101
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1102
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1103
+ code: z.ZodString;
1104
+ message: z.ZodString;
1105
+ target: z.ZodOptional<z.ZodString>;
1106
+ fix: z.ZodOptional<z.ZodString>;
1107
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1108
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1109
+ code: z.ZodString;
1110
+ message: z.ZodString;
1111
+ target: z.ZodOptional<z.ZodString>;
1112
+ fix: z.ZodOptional<z.ZodString>;
1113
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1114
+ } & {
1115
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ summary: z.ZodString;
1118
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1119
+ id: z.ZodString;
1120
+ summary: z.ZodString;
1121
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1122
+ id: z.ZodString;
1123
+ summary: z.ZodString;
1124
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1125
+ fetch: z.ZodOptional<z.ZodString>;
1126
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1127
+ evidence: z.ZodObject<{
1128
+ success: z.ZodBoolean;
1129
+ stdout: z.ZodString;
1130
+ stderr: z.ZodString;
1131
+ exitCode: z.ZodNullable<z.ZodNumber>;
1132
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
1133
+ diagnostics: z.ZodArray<z.ZodObject<{
1134
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1135
+ code: z.ZodString;
1136
+ message: z.ZodString;
1137
+ target: z.ZodOptional<z.ZodString>;
1138
+ fix: z.ZodOptional<z.ZodString>;
1139
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1140
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1141
+ code: z.ZodString;
1142
+ message: z.ZodString;
1143
+ target: z.ZodOptional<z.ZodString>;
1144
+ fix: z.ZodOptional<z.ZodString>;
1145
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1146
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1147
+ code: z.ZodString;
1148
+ message: z.ZodString;
1149
+ target: z.ZodOptional<z.ZodString>;
1150
+ fix: z.ZodOptional<z.ZodString>;
1151
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1152
+ contractError: z.ZodOptional<z.ZodString>;
1153
+ selector: z.ZodObject<{
1154
+ store: z.ZodOptional<z.ZodString>;
1155
+ }, "strict", z.ZodTypeAny, {
1156
+ store?: string | undefined;
1157
+ }, {
1158
+ store?: string | undefined;
1159
+ }>;
1160
+ root: z.ZodOptional<z.ZodObject<{
1161
+ path: z.ZodString;
1162
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1163
+ store_id: z.ZodOptional<z.ZodString>;
1164
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1165
+ path: z.ZodString;
1166
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1167
+ store_id: z.ZodOptional<z.ZodString>;
1168
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1169
+ path: z.ZodString;
1170
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1171
+ store_id: z.ZodOptional<z.ZodString>;
1172
+ }, z.ZodTypeAny, "passthrough">>>;
1173
+ } & {
1174
+ command: z.ZodLiteral<"instructions apply">;
1175
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1176
+ success: z.ZodBoolean;
1177
+ stdout: z.ZodString;
1178
+ stderr: z.ZodString;
1179
+ exitCode: z.ZodNullable<z.ZodNumber>;
1180
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
1181
+ diagnostics: z.ZodArray<z.ZodObject<{
1182
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1183
+ code: z.ZodString;
1184
+ message: z.ZodString;
1185
+ target: z.ZodOptional<z.ZodString>;
1186
+ fix: z.ZodOptional<z.ZodString>;
1187
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1188
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1189
+ code: z.ZodString;
1190
+ message: z.ZodString;
1191
+ target: z.ZodOptional<z.ZodString>;
1192
+ fix: z.ZodOptional<z.ZodString>;
1193
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1194
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1195
+ code: z.ZodString;
1196
+ message: z.ZodString;
1197
+ target: z.ZodOptional<z.ZodString>;
1198
+ fix: z.ZodOptional<z.ZodString>;
1199
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1200
+ contractError: z.ZodOptional<z.ZodString>;
1201
+ selector: z.ZodObject<{
1202
+ store: z.ZodOptional<z.ZodString>;
1203
+ }, "strict", z.ZodTypeAny, {
1204
+ store?: string | undefined;
1205
+ }, {
1206
+ store?: string | undefined;
1207
+ }>;
1208
+ root: z.ZodOptional<z.ZodObject<{
1209
+ path: z.ZodString;
1210
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1211
+ store_id: z.ZodOptional<z.ZodString>;
1212
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1213
+ path: z.ZodString;
1214
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1215
+ store_id: z.ZodOptional<z.ZodString>;
1216
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1217
+ path: z.ZodString;
1218
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1219
+ store_id: z.ZodOptional<z.ZodString>;
1220
+ }, z.ZodTypeAny, "passthrough">>>;
1221
+ } & {
1222
+ command: z.ZodLiteral<"instructions apply">;
1223
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1224
+ success: z.ZodBoolean;
1225
+ stdout: z.ZodString;
1226
+ stderr: z.ZodString;
1227
+ exitCode: z.ZodNullable<z.ZodNumber>;
1228
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
1229
+ diagnostics: z.ZodArray<z.ZodObject<{
1230
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1231
+ code: z.ZodString;
1232
+ message: z.ZodString;
1233
+ target: z.ZodOptional<z.ZodString>;
1234
+ fix: z.ZodOptional<z.ZodString>;
1235
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1236
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1237
+ code: z.ZodString;
1238
+ message: z.ZodString;
1239
+ target: z.ZodOptional<z.ZodString>;
1240
+ fix: z.ZodOptional<z.ZodString>;
1241
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1242
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1243
+ code: z.ZodString;
1244
+ message: z.ZodString;
1245
+ target: z.ZodOptional<z.ZodString>;
1246
+ fix: z.ZodOptional<z.ZodString>;
1247
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1248
+ contractError: z.ZodOptional<z.ZodString>;
1249
+ selector: z.ZodObject<{
1250
+ store: z.ZodOptional<z.ZodString>;
1251
+ }, "strict", z.ZodTypeAny, {
1252
+ store?: string | undefined;
1253
+ }, {
1254
+ store?: string | undefined;
1255
+ }>;
1256
+ root: z.ZodOptional<z.ZodObject<{
1257
+ path: z.ZodString;
1258
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1259
+ store_id: z.ZodOptional<z.ZodString>;
1260
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1261
+ path: z.ZodString;
1262
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1263
+ store_id: z.ZodOptional<z.ZodString>;
1264
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1265
+ path: z.ZodString;
1266
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1267
+ store_id: z.ZodOptional<z.ZodString>;
1268
+ }, z.ZodTypeAny, "passthrough">>>;
1269
+ } & {
1270
+ command: z.ZodLiteral<"instructions apply">;
1271
+ }, z.ZodTypeAny, "passthrough">>;
1272
+ applyInstructionProgress: z.ZodObject<{
1273
+ source: z.ZodLiteral<"openspec-instructions-apply">;
1274
+ total: z.ZodNumber;
1275
+ complete: z.ZodNumber;
1276
+ remaining: z.ZodNumber;
1277
+ state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1278
+ divergence: z.ZodNullable<z.ZodObject<{
1279
+ kind: z.ZodLiteral<"tracked-task-mismatch">;
1280
+ message: z.ZodString;
1281
+ apply: z.ZodObject<{
1282
+ total: z.ZodNumber;
1283
+ complete: z.ZodNumber;
1284
+ remaining: z.ZodNumber;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ total: number;
1287
+ remaining: number;
1288
+ complete: number;
1289
+ }, {
1290
+ total: number;
1291
+ remaining: number;
1292
+ complete: number;
1293
+ }>;
1294
+ tracked: z.ZodObject<{
1295
+ total: z.ZodNumber;
1296
+ completed: z.ZodNumber;
1297
+ remaining: z.ZodNumber;
1298
+ phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
1299
+ }, "strip", z.ZodTypeAny, {
1300
+ completed: number;
1301
+ total: number;
1302
+ remaining: number;
1303
+ phase: "no-tasks" | "in-progress" | "complete";
1304
+ }, {
1305
+ completed: number;
1306
+ total: number;
1307
+ remaining: number;
1308
+ phase: "no-tasks" | "in-progress" | "complete";
1309
+ }>;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ message: string;
1312
+ kind: "tracked-task-mismatch";
1313
+ apply: {
1314
+ total: number;
1315
+ remaining: number;
1316
+ complete: number;
1317
+ };
1318
+ tracked: {
1319
+ completed: number;
1320
+ total: number;
1321
+ remaining: number;
1322
+ phase: "no-tasks" | "in-progress" | "complete";
1323
+ };
1324
+ }, {
1325
+ message: string;
1326
+ kind: "tracked-task-mismatch";
1327
+ apply: {
1328
+ total: number;
1329
+ remaining: number;
1330
+ complete: number;
1331
+ };
1332
+ tracked: {
1333
+ completed: number;
1334
+ total: number;
1335
+ remaining: number;
1336
+ phase: "no-tasks" | "in-progress" | "complete";
1337
+ };
1338
+ }>>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ state: "ready" | "blocked" | "all_done";
1341
+ total: number;
1342
+ remaining: number;
1343
+ complete: number;
1344
+ source: "openspec-instructions-apply";
1345
+ divergence: {
1346
+ message: string;
1347
+ kind: "tracked-task-mismatch";
1348
+ apply: {
1349
+ total: number;
1350
+ remaining: number;
1351
+ complete: number;
1352
+ };
1353
+ tracked: {
1354
+ completed: number;
1355
+ total: number;
1356
+ remaining: number;
1357
+ phase: "no-tasks" | "in-progress" | "complete";
1358
+ };
1359
+ } | null;
1360
+ }, {
1361
+ state: "ready" | "blocked" | "all_done";
1362
+ total: number;
1363
+ remaining: number;
1364
+ complete: number;
1365
+ source: "openspec-instructions-apply";
1366
+ divergence: {
1367
+ message: string;
1368
+ kind: "tracked-task-mismatch";
1369
+ apply: {
1370
+ total: number;
1371
+ remaining: number;
1372
+ complete: number;
1373
+ };
1374
+ tracked: {
1375
+ completed: number;
1376
+ total: number;
1377
+ remaining: number;
1378
+ phase: "no-tasks" | "in-progress" | "complete";
1379
+ };
1380
+ } | null;
1381
+ }>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ state: "ready" | "blocked" | "all_done";
1384
+ tasks: {
1385
+ id: string;
1386
+ done: boolean;
1387
+ description: string;
1388
+ }[];
1389
+ evidence: {
1390
+ success: boolean;
1391
+ stdout: string;
1392
+ stderr: string;
1393
+ exitCode: number | null;
1394
+ payload: CliJsonValue;
1395
+ diagnostics: z.objectOutputType<{
1396
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1397
+ code: z.ZodString;
1398
+ message: z.ZodString;
1399
+ target: z.ZodOptional<z.ZodString>;
1400
+ fix: z.ZodOptional<z.ZodString>;
1401
+ }, z.ZodTypeAny, "passthrough">[];
1402
+ command: "instructions apply";
1403
+ selector: {
1404
+ store?: string | undefined;
1405
+ };
1406
+ contractError?: string | undefined;
1407
+ root?: z.objectOutputType<{
1408
+ path: z.ZodString;
1409
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1410
+ store_id: z.ZodOptional<z.ZodString>;
1411
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1412
+ } & {
1413
+ [k: string]: unknown;
1414
+ };
1415
+ changeName: string;
1416
+ schemaName: string;
1417
+ changeDir: string;
1418
+ instruction: string;
1419
+ contextFiles: Record<string, string[]>;
1420
+ applyInstructionProgress: {
1421
+ state: "ready" | "blocked" | "all_done";
1422
+ total: number;
1423
+ remaining: number;
1424
+ complete: number;
1425
+ source: "openspec-instructions-apply";
1426
+ divergence: {
1427
+ message: string;
1428
+ kind: "tracked-task-mismatch";
1429
+ apply: {
1430
+ total: number;
1431
+ remaining: number;
1432
+ complete: number;
1433
+ };
1434
+ tracked: {
1435
+ completed: number;
1436
+ total: number;
1437
+ remaining: number;
1438
+ phase: "no-tasks" | "in-progress" | "complete";
1439
+ };
1440
+ } | null;
1441
+ };
1442
+ references?: z.objectOutputType<{
1443
+ store_id: z.ZodString;
1444
+ root: z.ZodOptional<z.ZodString>;
1445
+ status: z.ZodArray<z.ZodObject<{
1446
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1447
+ code: z.ZodString;
1448
+ message: z.ZodString;
1449
+ target: z.ZodOptional<z.ZodString>;
1450
+ fix: z.ZodOptional<z.ZodString>;
1451
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1452
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1453
+ code: z.ZodString;
1454
+ message: z.ZodString;
1455
+ target: z.ZodOptional<z.ZodString>;
1456
+ fix: z.ZodOptional<z.ZodString>;
1457
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1458
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1459
+ code: z.ZodString;
1460
+ message: z.ZodString;
1461
+ target: z.ZodOptional<z.ZodString>;
1462
+ fix: z.ZodOptional<z.ZodString>;
1463
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1464
+ } & {
1465
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1466
+ id: z.ZodString;
1467
+ summary: z.ZodString;
1468
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1469
+ id: z.ZodString;
1470
+ summary: z.ZodString;
1471
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1472
+ id: z.ZodString;
1473
+ summary: z.ZodString;
1474
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1475
+ fetch: z.ZodOptional<z.ZodString>;
1476
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1477
+ missingArtifacts?: string[] | undefined;
1478
+ }, {
1479
+ state: "ready" | "blocked" | "all_done";
1480
+ tasks: {
1481
+ id: string;
1482
+ done: boolean;
1483
+ description: string;
1484
+ }[];
1485
+ evidence: {
1486
+ success: boolean;
1487
+ stdout: string;
1488
+ stderr: string;
1489
+ exitCode: number | null;
1490
+ payload: CliJsonValue;
1491
+ diagnostics: z.objectInputType<{
1492
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1493
+ code: z.ZodString;
1494
+ message: z.ZodString;
1495
+ target: z.ZodOptional<z.ZodString>;
1496
+ fix: z.ZodOptional<z.ZodString>;
1497
+ }, z.ZodTypeAny, "passthrough">[];
1498
+ command: "instructions apply";
1499
+ selector: {
1500
+ store?: string | undefined;
1501
+ };
1502
+ contractError?: string | undefined;
1503
+ root?: z.objectInputType<{
1504
+ path: z.ZodString;
1505
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1506
+ store_id: z.ZodOptional<z.ZodString>;
1507
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1508
+ } & {
1509
+ [k: string]: unknown;
1510
+ };
1511
+ changeName: string;
1512
+ schemaName: string;
1513
+ changeDir: string;
1514
+ instruction: string;
1515
+ contextFiles: Record<string, string | string[]>;
1516
+ applyInstructionProgress: {
1517
+ state: "ready" | "blocked" | "all_done";
1518
+ total: number;
1519
+ remaining: number;
1520
+ complete: number;
1521
+ source: "openspec-instructions-apply";
1522
+ divergence: {
1523
+ message: string;
1524
+ kind: "tracked-task-mismatch";
1525
+ apply: {
1526
+ total: number;
1527
+ remaining: number;
1528
+ complete: number;
1529
+ };
1530
+ tracked: {
1531
+ completed: number;
1532
+ total: number;
1533
+ remaining: number;
1534
+ phase: "no-tasks" | "in-progress" | "complete";
1535
+ };
1536
+ } | null;
1537
+ };
1538
+ references?: z.objectInputType<{
1539
+ store_id: z.ZodString;
1540
+ root: z.ZodOptional<z.ZodString>;
1541
+ status: z.ZodArray<z.ZodObject<{
1542
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1543
+ code: z.ZodString;
1544
+ message: z.ZodString;
1545
+ target: z.ZodOptional<z.ZodString>;
1546
+ fix: z.ZodOptional<z.ZodString>;
1547
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1548
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1549
+ code: z.ZodString;
1550
+ message: z.ZodString;
1551
+ target: z.ZodOptional<z.ZodString>;
1552
+ fix: z.ZodOptional<z.ZodString>;
1553
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1554
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1555
+ code: z.ZodString;
1556
+ message: z.ZodString;
1557
+ target: z.ZodOptional<z.ZodString>;
1558
+ fix: z.ZodOptional<z.ZodString>;
1559
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1560
+ } & {
1561
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1562
+ id: z.ZodString;
1563
+ summary: z.ZodString;
1564
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1565
+ id: z.ZodString;
1566
+ summary: z.ZodString;
1567
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1568
+ id: z.ZodString;
1569
+ summary: z.ZodString;
1570
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1571
+ fetch: z.ZodOptional<z.ZodString>;
1572
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1573
+ missingArtifacts?: string[] | undefined;
1574
+ }>;
1575
+ declare const ApplyInstructionsSchema: z.ZodPipeline<z.ZodEffects<z.ZodObject<{
1576
+ changeName: z.ZodString;
1577
+ changeDir: z.ZodString;
1578
+ schemaName: z.ZodString;
1579
+ contextFiles: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
1580
+ progress: z.ZodObject<{
1581
+ total: z.ZodNumber;
1582
+ complete: z.ZodNumber;
1583
+ remaining: z.ZodNumber;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ total: number;
1586
+ remaining: number;
1587
+ complete: number;
1588
+ }, {
1589
+ total: number;
1590
+ remaining: number;
1591
+ complete: number;
1592
+ }>;
1593
+ tasks: z.ZodArray<z.ZodObject<{
1594
+ id: z.ZodString;
1595
+ description: z.ZodString;
1596
+ done: z.ZodBoolean;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ id: string;
1599
+ done: boolean;
1600
+ description: string;
1601
+ }, {
1602
+ id: string;
1603
+ done: boolean;
1604
+ description: string;
1605
+ }>, "many">;
1606
+ state: z.ZodEnum<["blocked", "all_done", "ready"]>;
1607
+ missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1608
+ instruction: z.ZodString;
1609
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
1610
+ store_id: z.ZodString;
1611
+ root: z.ZodOptional<z.ZodString>;
1612
+ status: z.ZodArray<z.ZodObject<{
1613
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1614
+ code: z.ZodString;
1615
+ message: z.ZodString;
1616
+ target: z.ZodOptional<z.ZodString>;
1617
+ fix: z.ZodOptional<z.ZodString>;
1618
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1619
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1620
+ code: z.ZodString;
1621
+ message: z.ZodString;
1622
+ target: z.ZodOptional<z.ZodString>;
1623
+ fix: z.ZodOptional<z.ZodString>;
1624
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1625
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1626
+ code: z.ZodString;
1627
+ message: z.ZodString;
1628
+ target: z.ZodOptional<z.ZodString>;
1629
+ fix: z.ZodOptional<z.ZodString>;
1630
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1631
+ } & {
1632
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1633
+ id: z.ZodString;
1634
+ summary: z.ZodString;
1635
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1636
+ id: z.ZodString;
1637
+ summary: z.ZodString;
1638
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1639
+ id: z.ZodString;
1640
+ summary: z.ZodString;
1641
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1642
+ fetch: z.ZodOptional<z.ZodString>;
1643
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1644
+ store_id: z.ZodString;
1645
+ root: z.ZodOptional<z.ZodString>;
1646
+ status: z.ZodArray<z.ZodObject<{
1647
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1648
+ code: z.ZodString;
1649
+ message: z.ZodString;
1650
+ target: z.ZodOptional<z.ZodString>;
1651
+ fix: z.ZodOptional<z.ZodString>;
1652
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1653
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1654
+ code: z.ZodString;
1655
+ message: z.ZodString;
1656
+ target: z.ZodOptional<z.ZodString>;
1657
+ fix: z.ZodOptional<z.ZodString>;
1658
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1659
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1660
+ code: z.ZodString;
1661
+ message: z.ZodString;
1662
+ target: z.ZodOptional<z.ZodString>;
1663
+ fix: z.ZodOptional<z.ZodString>;
1664
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1665
+ } & {
1666
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1667
+ id: z.ZodString;
1668
+ summary: z.ZodString;
1669
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1670
+ id: z.ZodString;
1671
+ summary: z.ZodString;
1672
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1673
+ id: z.ZodString;
1674
+ summary: z.ZodString;
1675
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1676
+ fetch: z.ZodOptional<z.ZodString>;
1677
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1678
+ store_id: z.ZodString;
1679
+ root: z.ZodOptional<z.ZodString>;
1680
+ status: z.ZodArray<z.ZodObject<{
1681
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1682
+ code: z.ZodString;
1683
+ message: z.ZodString;
1684
+ target: z.ZodOptional<z.ZodString>;
1685
+ fix: z.ZodOptional<z.ZodString>;
1686
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1687
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1688
+ code: z.ZodString;
1689
+ message: z.ZodString;
1690
+ target: z.ZodOptional<z.ZodString>;
1691
+ fix: z.ZodOptional<z.ZodString>;
1692
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1693
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1694
+ code: z.ZodString;
1695
+ message: z.ZodString;
1696
+ target: z.ZodOptional<z.ZodString>;
1697
+ fix: z.ZodOptional<z.ZodString>;
1698
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1699
+ } & {
1700
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1701
+ id: z.ZodString;
1702
+ summary: z.ZodString;
1703
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1704
+ id: z.ZodString;
1705
+ summary: z.ZodString;
1706
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1707
+ id: z.ZodString;
1708
+ summary: z.ZodString;
1709
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1710
+ fetch: z.ZodOptional<z.ZodString>;
1711
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1712
+ evidence: z.ZodObject<{
1713
+ success: z.ZodBoolean;
1714
+ stdout: z.ZodString;
1715
+ stderr: z.ZodString;
1716
+ exitCode: z.ZodNullable<z.ZodNumber>;
1717
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
1718
+ diagnostics: z.ZodArray<z.ZodObject<{
1719
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1720
+ code: z.ZodString;
1721
+ message: z.ZodString;
1722
+ target: z.ZodOptional<z.ZodString>;
1723
+ fix: z.ZodOptional<z.ZodString>;
1724
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1725
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1726
+ code: z.ZodString;
1727
+ message: z.ZodString;
1728
+ target: z.ZodOptional<z.ZodString>;
1729
+ fix: z.ZodOptional<z.ZodString>;
1730
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1731
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1732
+ code: z.ZodString;
1733
+ message: z.ZodString;
1734
+ target: z.ZodOptional<z.ZodString>;
1735
+ fix: z.ZodOptional<z.ZodString>;
1736
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1737
+ contractError: z.ZodOptional<z.ZodString>;
1738
+ selector: z.ZodObject<{
1739
+ store: z.ZodOptional<z.ZodString>;
1740
+ }, "strict", z.ZodTypeAny, {
1741
+ store?: string | undefined;
1742
+ }, {
1743
+ store?: string | undefined;
1744
+ }>;
1745
+ root: z.ZodOptional<z.ZodObject<{
1746
+ path: z.ZodString;
1747
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1748
+ store_id: z.ZodOptional<z.ZodString>;
1749
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1750
+ path: z.ZodString;
1751
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1752
+ store_id: z.ZodOptional<z.ZodString>;
1753
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1754
+ path: z.ZodString;
1755
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1756
+ store_id: z.ZodOptional<z.ZodString>;
1757
+ }, z.ZodTypeAny, "passthrough">>>;
1758
+ } & {
1759
+ command: z.ZodLiteral<"instructions apply">;
1760
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1761
+ success: z.ZodBoolean;
1762
+ stdout: z.ZodString;
1763
+ stderr: z.ZodString;
1764
+ exitCode: z.ZodNullable<z.ZodNumber>;
1765
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
1766
+ diagnostics: z.ZodArray<z.ZodObject<{
1767
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1768
+ code: z.ZodString;
1769
+ message: z.ZodString;
1770
+ target: z.ZodOptional<z.ZodString>;
1771
+ fix: z.ZodOptional<z.ZodString>;
1772
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1773
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1774
+ code: z.ZodString;
1775
+ message: z.ZodString;
1776
+ target: z.ZodOptional<z.ZodString>;
1777
+ fix: z.ZodOptional<z.ZodString>;
1778
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1779
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1780
+ code: z.ZodString;
1781
+ message: z.ZodString;
1782
+ target: z.ZodOptional<z.ZodString>;
1783
+ fix: z.ZodOptional<z.ZodString>;
1784
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1785
+ contractError: z.ZodOptional<z.ZodString>;
1786
+ selector: z.ZodObject<{
1787
+ store: z.ZodOptional<z.ZodString>;
1788
+ }, "strict", z.ZodTypeAny, {
1789
+ store?: string | undefined;
1790
+ }, {
1791
+ store?: string | undefined;
1792
+ }>;
1793
+ root: z.ZodOptional<z.ZodObject<{
1794
+ path: z.ZodString;
1795
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1796
+ store_id: z.ZodOptional<z.ZodString>;
1797
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1798
+ path: z.ZodString;
1799
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1800
+ store_id: z.ZodOptional<z.ZodString>;
1801
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1802
+ path: z.ZodString;
1803
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1804
+ store_id: z.ZodOptional<z.ZodString>;
1805
+ }, z.ZodTypeAny, "passthrough">>>;
1806
+ } & {
1807
+ command: z.ZodLiteral<"instructions apply">;
1808
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1809
+ success: z.ZodBoolean;
1810
+ stdout: z.ZodString;
1811
+ stderr: z.ZodString;
1812
+ exitCode: z.ZodNullable<z.ZodNumber>;
1813
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
1814
+ diagnostics: z.ZodArray<z.ZodObject<{
1815
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1816
+ code: z.ZodString;
1817
+ message: z.ZodString;
1818
+ target: z.ZodOptional<z.ZodString>;
1819
+ fix: z.ZodOptional<z.ZodString>;
1820
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1821
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1822
+ code: z.ZodString;
1823
+ message: z.ZodString;
1824
+ target: z.ZodOptional<z.ZodString>;
1825
+ fix: z.ZodOptional<z.ZodString>;
1826
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1827
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1828
+ code: z.ZodString;
1829
+ message: z.ZodString;
1830
+ target: z.ZodOptional<z.ZodString>;
1831
+ fix: z.ZodOptional<z.ZodString>;
1832
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1833
+ contractError: z.ZodOptional<z.ZodString>;
1834
+ selector: z.ZodObject<{
1835
+ store: z.ZodOptional<z.ZodString>;
1836
+ }, "strict", z.ZodTypeAny, {
1837
+ store?: string | undefined;
1838
+ }, {
1839
+ store?: string | undefined;
1840
+ }>;
1841
+ root: z.ZodOptional<z.ZodObject<{
1842
+ path: z.ZodString;
1843
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1844
+ store_id: z.ZodOptional<z.ZodString>;
1845
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1846
+ path: z.ZodString;
1847
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1848
+ store_id: z.ZodOptional<z.ZodString>;
1849
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1850
+ path: z.ZodString;
1851
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1852
+ store_id: z.ZodOptional<z.ZodString>;
1853
+ }, z.ZodTypeAny, "passthrough">>>;
1854
+ } & {
1855
+ command: z.ZodLiteral<"instructions apply">;
1856
+ }, z.ZodTypeAny, "passthrough">>;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ state: "ready" | "blocked" | "all_done";
1859
+ tasks: {
1860
+ id: string;
1861
+ done: boolean;
1862
+ description: string;
1863
+ }[];
1864
+ evidence: {
1865
+ success: boolean;
1866
+ stdout: string;
1867
+ stderr: string;
1868
+ exitCode: number | null;
1869
+ payload: CliJsonValue;
1870
+ diagnostics: z.objectOutputType<{
1871
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1872
+ code: z.ZodString;
1873
+ message: z.ZodString;
1874
+ target: z.ZodOptional<z.ZodString>;
1875
+ fix: z.ZodOptional<z.ZodString>;
1876
+ }, z.ZodTypeAny, "passthrough">[];
1877
+ command: "instructions apply";
1878
+ selector: {
1879
+ store?: string | undefined;
1880
+ };
1881
+ contractError?: string | undefined;
1882
+ root?: z.objectOutputType<{
1883
+ path: z.ZodString;
1884
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1885
+ store_id: z.ZodOptional<z.ZodString>;
1886
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1887
+ } & {
1888
+ [k: string]: unknown;
1889
+ };
1890
+ changeName: string;
1891
+ schemaName: string;
1892
+ changeDir: string;
1893
+ instruction: string;
1894
+ contextFiles: Record<string, string[]>;
1895
+ progress: {
1896
+ total: number;
1897
+ remaining: number;
1898
+ complete: number;
1899
+ };
1900
+ references?: z.objectOutputType<{
1901
+ store_id: z.ZodString;
1902
+ root: z.ZodOptional<z.ZodString>;
1903
+ status: z.ZodArray<z.ZodObject<{
1904
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1905
+ code: z.ZodString;
1906
+ message: z.ZodString;
1907
+ target: z.ZodOptional<z.ZodString>;
1908
+ fix: z.ZodOptional<z.ZodString>;
1909
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1910
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1911
+ code: z.ZodString;
1912
+ message: z.ZodString;
1913
+ target: z.ZodOptional<z.ZodString>;
1914
+ fix: z.ZodOptional<z.ZodString>;
1915
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1916
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1917
+ code: z.ZodString;
1918
+ message: z.ZodString;
1919
+ target: z.ZodOptional<z.ZodString>;
1920
+ fix: z.ZodOptional<z.ZodString>;
1921
+ }, z.ZodTypeAny, "passthrough">>, "many">;
1922
+ } & {
1923
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1924
+ id: z.ZodString;
1925
+ summary: z.ZodString;
1926
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1927
+ id: z.ZodString;
1928
+ summary: z.ZodString;
1929
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1930
+ id: z.ZodString;
1931
+ summary: z.ZodString;
1932
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1933
+ fetch: z.ZodOptional<z.ZodString>;
1934
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1935
+ missingArtifacts?: string[] | undefined;
1936
+ }, {
1937
+ state: "ready" | "blocked" | "all_done";
1938
+ tasks: {
1939
+ id: string;
1940
+ done: boolean;
1941
+ description: string;
1942
+ }[];
1943
+ evidence: {
1944
+ success: boolean;
1945
+ stdout: string;
1946
+ stderr: string;
1947
+ exitCode: number | null;
1948
+ payload: CliJsonValue;
1949
+ diagnostics: z.objectInputType<{
1950
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1951
+ code: z.ZodString;
1952
+ message: z.ZodString;
1953
+ target: z.ZodOptional<z.ZodString>;
1954
+ fix: z.ZodOptional<z.ZodString>;
1955
+ }, z.ZodTypeAny, "passthrough">[];
1956
+ command: "instructions apply";
1957
+ selector: {
1958
+ store?: string | undefined;
1959
+ };
1960
+ contractError?: string | undefined;
1961
+ root?: z.objectInputType<{
1962
+ path: z.ZodString;
1963
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
1964
+ store_id: z.ZodOptional<z.ZodString>;
1965
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1966
+ } & {
1967
+ [k: string]: unknown;
1968
+ };
1969
+ changeName: string;
1970
+ schemaName: string;
1971
+ changeDir: string;
1972
+ instruction: string;
1973
+ contextFiles: Record<string, string | string[]>;
1974
+ progress: {
1975
+ total: number;
1976
+ remaining: number;
1977
+ complete: number;
1978
+ };
1979
+ references?: z.objectInputType<{
1980
+ store_id: z.ZodString;
1981
+ root: z.ZodOptional<z.ZodString>;
1982
+ status: z.ZodArray<z.ZodObject<{
1983
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1984
+ code: z.ZodString;
1985
+ message: z.ZodString;
1986
+ target: z.ZodOptional<z.ZodString>;
1987
+ fix: z.ZodOptional<z.ZodString>;
1988
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1989
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1990
+ code: z.ZodString;
1991
+ message: z.ZodString;
1992
+ target: z.ZodOptional<z.ZodString>;
1993
+ fix: z.ZodOptional<z.ZodString>;
1994
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1995
+ severity: z.ZodEnum<["error", "warning", "info"]>;
1996
+ code: z.ZodString;
1997
+ message: z.ZodString;
1998
+ target: z.ZodOptional<z.ZodString>;
1999
+ fix: z.ZodOptional<z.ZodString>;
2000
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2001
+ } & {
2002
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2003
+ id: z.ZodString;
2004
+ summary: z.ZodString;
2005
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2006
+ id: z.ZodString;
2007
+ summary: z.ZodString;
2008
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2009
+ id: z.ZodString;
2010
+ summary: z.ZodString;
2011
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2012
+ fetch: z.ZodOptional<z.ZodString>;
2013
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2014
+ missingArtifacts?: string[] | undefined;
2015
+ }>, {
2016
+ applyInstructionProgress: ApplyInstructionProgress;
2017
+ state: "ready" | "blocked" | "all_done";
2018
+ tasks: {
2019
+ id: string;
2020
+ done: boolean;
2021
+ description: string;
2022
+ }[];
2023
+ evidence: {
2024
+ success: boolean;
2025
+ stdout: string;
2026
+ stderr: string;
2027
+ exitCode: number | null;
2028
+ payload: CliJsonValue;
2029
+ diagnostics: z.objectOutputType<{
2030
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2031
+ code: z.ZodString;
2032
+ message: z.ZodString;
2033
+ target: z.ZodOptional<z.ZodString>;
2034
+ fix: z.ZodOptional<z.ZodString>;
2035
+ }, z.ZodTypeAny, "passthrough">[];
2036
+ command: "instructions apply";
2037
+ selector: {
2038
+ store?: string | undefined;
2039
+ };
2040
+ contractError?: string | undefined;
2041
+ root?: z.objectOutputType<{
2042
+ path: z.ZodString;
2043
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2044
+ store_id: z.ZodOptional<z.ZodString>;
2045
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2046
+ } & {
2047
+ [k: string]: unknown;
2048
+ };
2049
+ changeName: string;
2050
+ schemaName: string;
2051
+ changeDir: string;
2052
+ instruction: string;
2053
+ contextFiles: Record<string, string[]>;
2054
+ references?: z.objectOutputType<{
2055
+ store_id: z.ZodString;
2056
+ root: z.ZodOptional<z.ZodString>;
2057
+ status: z.ZodArray<z.ZodObject<{
2058
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2059
+ code: z.ZodString;
2060
+ message: z.ZodString;
2061
+ target: z.ZodOptional<z.ZodString>;
2062
+ fix: z.ZodOptional<z.ZodString>;
2063
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2064
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2065
+ code: z.ZodString;
2066
+ message: z.ZodString;
2067
+ target: z.ZodOptional<z.ZodString>;
2068
+ fix: z.ZodOptional<z.ZodString>;
2069
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2070
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2071
+ code: z.ZodString;
2072
+ message: z.ZodString;
2073
+ target: z.ZodOptional<z.ZodString>;
2074
+ fix: z.ZodOptional<z.ZodString>;
2075
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2076
+ } & {
2077
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2078
+ id: z.ZodString;
2079
+ summary: z.ZodString;
2080
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2081
+ id: z.ZodString;
2082
+ summary: z.ZodString;
2083
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2084
+ id: z.ZodString;
2085
+ summary: z.ZodString;
2086
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2087
+ fetch: z.ZodOptional<z.ZodString>;
2088
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2089
+ missingArtifacts?: string[] | undefined;
2090
+ }, {
2091
+ state: "ready" | "blocked" | "all_done";
2092
+ tasks: {
2093
+ id: string;
2094
+ done: boolean;
2095
+ description: string;
2096
+ }[];
2097
+ evidence: {
2098
+ success: boolean;
2099
+ stdout: string;
2100
+ stderr: string;
2101
+ exitCode: number | null;
2102
+ payload: CliJsonValue;
2103
+ diagnostics: z.objectInputType<{
2104
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2105
+ code: z.ZodString;
2106
+ message: z.ZodString;
2107
+ target: z.ZodOptional<z.ZodString>;
2108
+ fix: z.ZodOptional<z.ZodString>;
2109
+ }, z.ZodTypeAny, "passthrough">[];
2110
+ command: "instructions apply";
2111
+ selector: {
2112
+ store?: string | undefined;
2113
+ };
2114
+ contractError?: string | undefined;
2115
+ root?: z.objectInputType<{
2116
+ path: z.ZodString;
2117
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2118
+ store_id: z.ZodOptional<z.ZodString>;
2119
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2120
+ } & {
2121
+ [k: string]: unknown;
2122
+ };
2123
+ changeName: string;
2124
+ schemaName: string;
2125
+ changeDir: string;
2126
+ instruction: string;
2127
+ contextFiles: Record<string, string | string[]>;
2128
+ progress: {
2129
+ total: number;
2130
+ remaining: number;
2131
+ complete: number;
2132
+ };
2133
+ references?: z.objectInputType<{
2134
+ store_id: z.ZodString;
2135
+ root: z.ZodOptional<z.ZodString>;
2136
+ status: z.ZodArray<z.ZodObject<{
2137
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2138
+ code: z.ZodString;
2139
+ message: z.ZodString;
2140
+ target: z.ZodOptional<z.ZodString>;
2141
+ fix: z.ZodOptional<z.ZodString>;
2142
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2143
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2144
+ code: z.ZodString;
2145
+ message: z.ZodString;
2146
+ target: z.ZodOptional<z.ZodString>;
2147
+ fix: z.ZodOptional<z.ZodString>;
2148
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2149
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2150
+ code: z.ZodString;
2151
+ message: z.ZodString;
2152
+ target: z.ZodOptional<z.ZodString>;
2153
+ fix: z.ZodOptional<z.ZodString>;
2154
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2155
+ } & {
2156
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2157
+ id: z.ZodString;
2158
+ summary: z.ZodString;
2159
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2160
+ id: z.ZodString;
2161
+ summary: z.ZodString;
2162
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2163
+ id: z.ZodString;
2164
+ summary: z.ZodString;
2165
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2166
+ fetch: z.ZodOptional<z.ZodString>;
2167
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2168
+ missingArtifacts?: string[] | undefined;
2169
+ }>, z.ZodObject<{
2170
+ changeName: z.ZodString;
2171
+ changeDir: z.ZodString;
2172
+ schemaName: z.ZodString;
2173
+ contextFiles: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, string[], string | string[]>>;
2174
+ tasks: z.ZodArray<z.ZodObject<{
2175
+ id: z.ZodString;
2176
+ description: z.ZodString;
2177
+ done: z.ZodBoolean;
2178
+ }, "strip", z.ZodTypeAny, {
2179
+ id: string;
2180
+ done: boolean;
2181
+ description: string;
2182
+ }, {
2183
+ id: string;
2184
+ done: boolean;
2185
+ description: string;
2186
+ }>, "many">;
2187
+ state: z.ZodEnum<["blocked", "all_done", "ready"]>;
2188
+ missingArtifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2189
+ instruction: z.ZodString;
2190
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2191
+ store_id: z.ZodString;
2192
+ root: z.ZodOptional<z.ZodString>;
2193
+ status: z.ZodArray<z.ZodObject<{
2194
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2195
+ code: z.ZodString;
2196
+ message: z.ZodString;
2197
+ target: z.ZodOptional<z.ZodString>;
2198
+ fix: z.ZodOptional<z.ZodString>;
2199
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2200
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2201
+ code: z.ZodString;
2202
+ message: z.ZodString;
2203
+ target: z.ZodOptional<z.ZodString>;
2204
+ fix: z.ZodOptional<z.ZodString>;
2205
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2206
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2207
+ code: z.ZodString;
2208
+ message: z.ZodString;
2209
+ target: z.ZodOptional<z.ZodString>;
2210
+ fix: z.ZodOptional<z.ZodString>;
2211
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2212
+ } & {
2213
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2214
+ id: z.ZodString;
2215
+ summary: z.ZodString;
2216
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2217
+ id: z.ZodString;
2218
+ summary: z.ZodString;
2219
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2220
+ id: z.ZodString;
2221
+ summary: z.ZodString;
2222
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2223
+ fetch: z.ZodOptional<z.ZodString>;
2224
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2225
+ store_id: z.ZodString;
2226
+ root: z.ZodOptional<z.ZodString>;
2227
+ status: z.ZodArray<z.ZodObject<{
2228
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2229
+ code: z.ZodString;
2230
+ message: z.ZodString;
2231
+ target: z.ZodOptional<z.ZodString>;
2232
+ fix: z.ZodOptional<z.ZodString>;
2233
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2234
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2235
+ code: z.ZodString;
2236
+ message: z.ZodString;
2237
+ target: z.ZodOptional<z.ZodString>;
2238
+ fix: z.ZodOptional<z.ZodString>;
2239
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2240
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2241
+ code: z.ZodString;
2242
+ message: z.ZodString;
2243
+ target: z.ZodOptional<z.ZodString>;
2244
+ fix: z.ZodOptional<z.ZodString>;
2245
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2246
+ } & {
2247
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2248
+ id: z.ZodString;
2249
+ summary: z.ZodString;
2250
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2251
+ id: z.ZodString;
2252
+ summary: z.ZodString;
2253
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2254
+ id: z.ZodString;
2255
+ summary: z.ZodString;
2256
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2257
+ fetch: z.ZodOptional<z.ZodString>;
2258
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2259
+ store_id: z.ZodString;
2260
+ root: z.ZodOptional<z.ZodString>;
2261
+ status: z.ZodArray<z.ZodObject<{
2262
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2263
+ code: z.ZodString;
2264
+ message: z.ZodString;
2265
+ target: z.ZodOptional<z.ZodString>;
2266
+ fix: z.ZodOptional<z.ZodString>;
2267
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2268
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2269
+ code: z.ZodString;
2270
+ message: z.ZodString;
2271
+ target: z.ZodOptional<z.ZodString>;
2272
+ fix: z.ZodOptional<z.ZodString>;
2273
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2274
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2275
+ code: z.ZodString;
2276
+ message: z.ZodString;
2277
+ target: z.ZodOptional<z.ZodString>;
2278
+ fix: z.ZodOptional<z.ZodString>;
2279
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2280
+ } & {
2281
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2282
+ id: z.ZodString;
2283
+ summary: z.ZodString;
2284
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2285
+ id: z.ZodString;
2286
+ summary: z.ZodString;
2287
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2288
+ id: z.ZodString;
2289
+ summary: z.ZodString;
2290
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2291
+ fetch: z.ZodOptional<z.ZodString>;
2292
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2293
+ evidence: z.ZodObject<{
2294
+ success: z.ZodBoolean;
2295
+ stdout: z.ZodString;
2296
+ stderr: z.ZodString;
2297
+ exitCode: z.ZodNullable<z.ZodNumber>;
2298
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2299
+ diagnostics: z.ZodArray<z.ZodObject<{
2300
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2301
+ code: z.ZodString;
2302
+ message: z.ZodString;
2303
+ target: z.ZodOptional<z.ZodString>;
2304
+ fix: z.ZodOptional<z.ZodString>;
2305
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2306
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2307
+ code: z.ZodString;
2308
+ message: z.ZodString;
2309
+ target: z.ZodOptional<z.ZodString>;
2310
+ fix: z.ZodOptional<z.ZodString>;
2311
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2312
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2313
+ code: z.ZodString;
2314
+ message: z.ZodString;
2315
+ target: z.ZodOptional<z.ZodString>;
2316
+ fix: z.ZodOptional<z.ZodString>;
2317
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2318
+ contractError: z.ZodOptional<z.ZodString>;
2319
+ selector: z.ZodObject<{
2320
+ store: z.ZodOptional<z.ZodString>;
2321
+ }, "strict", z.ZodTypeAny, {
2322
+ store?: string | undefined;
2323
+ }, {
2324
+ store?: string | undefined;
2325
+ }>;
2326
+ root: z.ZodOptional<z.ZodObject<{
2327
+ path: z.ZodString;
2328
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2329
+ store_id: z.ZodOptional<z.ZodString>;
2330
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2331
+ path: z.ZodString;
2332
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2333
+ store_id: z.ZodOptional<z.ZodString>;
2334
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2335
+ path: z.ZodString;
2336
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2337
+ store_id: z.ZodOptional<z.ZodString>;
2338
+ }, z.ZodTypeAny, "passthrough">>>;
2339
+ } & {
2340
+ command: z.ZodLiteral<"instructions apply">;
2341
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2342
+ success: z.ZodBoolean;
2343
+ stdout: z.ZodString;
2344
+ stderr: z.ZodString;
2345
+ exitCode: z.ZodNullable<z.ZodNumber>;
2346
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2347
+ diagnostics: z.ZodArray<z.ZodObject<{
2348
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2349
+ code: z.ZodString;
2350
+ message: z.ZodString;
2351
+ target: z.ZodOptional<z.ZodString>;
2352
+ fix: z.ZodOptional<z.ZodString>;
2353
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2354
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2355
+ code: z.ZodString;
2356
+ message: z.ZodString;
2357
+ target: z.ZodOptional<z.ZodString>;
2358
+ fix: z.ZodOptional<z.ZodString>;
2359
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2360
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2361
+ code: z.ZodString;
2362
+ message: z.ZodString;
2363
+ target: z.ZodOptional<z.ZodString>;
2364
+ fix: z.ZodOptional<z.ZodString>;
2365
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2366
+ contractError: z.ZodOptional<z.ZodString>;
2367
+ selector: z.ZodObject<{
2368
+ store: z.ZodOptional<z.ZodString>;
2369
+ }, "strict", z.ZodTypeAny, {
2370
+ store?: string | undefined;
2371
+ }, {
2372
+ store?: string | undefined;
2373
+ }>;
2374
+ root: z.ZodOptional<z.ZodObject<{
2375
+ path: z.ZodString;
2376
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2377
+ store_id: z.ZodOptional<z.ZodString>;
2378
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2379
+ path: z.ZodString;
2380
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2381
+ store_id: z.ZodOptional<z.ZodString>;
2382
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2383
+ path: z.ZodString;
2384
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2385
+ store_id: z.ZodOptional<z.ZodString>;
2386
+ }, z.ZodTypeAny, "passthrough">>>;
2387
+ } & {
2388
+ command: z.ZodLiteral<"instructions apply">;
2389
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2390
+ success: z.ZodBoolean;
2391
+ stdout: z.ZodString;
2392
+ stderr: z.ZodString;
2393
+ exitCode: z.ZodNullable<z.ZodNumber>;
2394
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2395
+ diagnostics: z.ZodArray<z.ZodObject<{
2396
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2397
+ code: z.ZodString;
2398
+ message: z.ZodString;
2399
+ target: z.ZodOptional<z.ZodString>;
2400
+ fix: z.ZodOptional<z.ZodString>;
2401
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2402
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2403
+ code: z.ZodString;
2404
+ message: z.ZodString;
2405
+ target: z.ZodOptional<z.ZodString>;
2406
+ fix: z.ZodOptional<z.ZodString>;
2407
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2408
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2409
+ code: z.ZodString;
2410
+ message: z.ZodString;
2411
+ target: z.ZodOptional<z.ZodString>;
2412
+ fix: z.ZodOptional<z.ZodString>;
2413
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2414
+ contractError: z.ZodOptional<z.ZodString>;
2415
+ selector: z.ZodObject<{
2416
+ store: z.ZodOptional<z.ZodString>;
2417
+ }, "strict", z.ZodTypeAny, {
2418
+ store?: string | undefined;
2419
+ }, {
2420
+ store?: string | undefined;
2421
+ }>;
2422
+ root: z.ZodOptional<z.ZodObject<{
2423
+ path: z.ZodString;
2424
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2425
+ store_id: z.ZodOptional<z.ZodString>;
2426
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2427
+ path: z.ZodString;
2428
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2429
+ store_id: z.ZodOptional<z.ZodString>;
2430
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2431
+ path: z.ZodString;
2432
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2433
+ store_id: z.ZodOptional<z.ZodString>;
2434
+ }, z.ZodTypeAny, "passthrough">>>;
2435
+ } & {
2436
+ command: z.ZodLiteral<"instructions apply">;
2437
+ }, z.ZodTypeAny, "passthrough">>;
2438
+ applyInstructionProgress: z.ZodObject<{
2439
+ source: z.ZodLiteral<"openspec-instructions-apply">;
2440
+ total: z.ZodNumber;
2441
+ complete: z.ZodNumber;
2442
+ remaining: z.ZodNumber;
2443
+ state: z.ZodEnum<["blocked", "all_done", "ready"]>;
2444
+ divergence: z.ZodNullable<z.ZodObject<{
2445
+ kind: z.ZodLiteral<"tracked-task-mismatch">;
2446
+ message: z.ZodString;
2447
+ apply: z.ZodObject<{
2448
+ total: z.ZodNumber;
2449
+ complete: z.ZodNumber;
2450
+ remaining: z.ZodNumber;
2451
+ }, "strip", z.ZodTypeAny, {
2452
+ total: number;
2453
+ remaining: number;
2454
+ complete: number;
2455
+ }, {
2456
+ total: number;
2457
+ remaining: number;
2458
+ complete: number;
2459
+ }>;
2460
+ tracked: z.ZodObject<{
2461
+ total: z.ZodNumber;
2462
+ completed: z.ZodNumber;
2463
+ remaining: z.ZodNumber;
2464
+ phase: z.ZodEnum<["no-tasks", "in-progress", "complete"]>;
2465
+ }, "strip", z.ZodTypeAny, {
2466
+ completed: number;
2467
+ total: number;
2468
+ remaining: number;
2469
+ phase: "no-tasks" | "in-progress" | "complete";
2470
+ }, {
2471
+ completed: number;
2472
+ total: number;
2473
+ remaining: number;
2474
+ phase: "no-tasks" | "in-progress" | "complete";
2475
+ }>;
2476
+ }, "strip", z.ZodTypeAny, {
2477
+ message: string;
2478
+ kind: "tracked-task-mismatch";
2479
+ apply: {
2480
+ total: number;
2481
+ remaining: number;
2482
+ complete: number;
2483
+ };
2484
+ tracked: {
2485
+ completed: number;
2486
+ total: number;
2487
+ remaining: number;
2488
+ phase: "no-tasks" | "in-progress" | "complete";
2489
+ };
2490
+ }, {
2491
+ message: string;
2492
+ kind: "tracked-task-mismatch";
2493
+ apply: {
2494
+ total: number;
2495
+ remaining: number;
2496
+ complete: number;
2497
+ };
2498
+ tracked: {
2499
+ completed: number;
2500
+ total: number;
2501
+ remaining: number;
2502
+ phase: "no-tasks" | "in-progress" | "complete";
2503
+ };
2504
+ }>>;
2505
+ }, "strip", z.ZodTypeAny, {
2506
+ state: "ready" | "blocked" | "all_done";
2507
+ total: number;
2508
+ remaining: number;
2509
+ complete: number;
2510
+ source: "openspec-instructions-apply";
2511
+ divergence: {
2512
+ message: string;
2513
+ kind: "tracked-task-mismatch";
2514
+ apply: {
2515
+ total: number;
2516
+ remaining: number;
2517
+ complete: number;
2518
+ };
2519
+ tracked: {
2520
+ completed: number;
2521
+ total: number;
2522
+ remaining: number;
2523
+ phase: "no-tasks" | "in-progress" | "complete";
2524
+ };
2525
+ } | null;
2526
+ }, {
2527
+ state: "ready" | "blocked" | "all_done";
2528
+ total: number;
2529
+ remaining: number;
2530
+ complete: number;
2531
+ source: "openspec-instructions-apply";
2532
+ divergence: {
2533
+ message: string;
2534
+ kind: "tracked-task-mismatch";
2535
+ apply: {
2536
+ total: number;
2537
+ remaining: number;
2538
+ complete: number;
2539
+ };
2540
+ tracked: {
2541
+ completed: number;
2542
+ total: number;
2543
+ remaining: number;
2544
+ phase: "no-tasks" | "in-progress" | "complete";
2545
+ };
2546
+ } | null;
2547
+ }>;
2548
+ }, "strip", z.ZodTypeAny, {
2549
+ state: "ready" | "blocked" | "all_done";
2550
+ tasks: {
2551
+ id: string;
2552
+ done: boolean;
2553
+ description: string;
2554
+ }[];
2555
+ evidence: {
2556
+ success: boolean;
2557
+ stdout: string;
2558
+ stderr: string;
2559
+ exitCode: number | null;
2560
+ payload: CliJsonValue;
2561
+ diagnostics: z.objectOutputType<{
2562
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2563
+ code: z.ZodString;
2564
+ message: z.ZodString;
2565
+ target: z.ZodOptional<z.ZodString>;
2566
+ fix: z.ZodOptional<z.ZodString>;
2567
+ }, z.ZodTypeAny, "passthrough">[];
2568
+ command: "instructions apply";
2569
+ selector: {
2570
+ store?: string | undefined;
2571
+ };
2572
+ contractError?: string | undefined;
2573
+ root?: z.objectOutputType<{
2574
+ path: z.ZodString;
2575
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2576
+ store_id: z.ZodOptional<z.ZodString>;
2577
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2578
+ } & {
2579
+ [k: string]: unknown;
2580
+ };
2581
+ changeName: string;
2582
+ schemaName: string;
2583
+ changeDir: string;
2584
+ instruction: string;
2585
+ contextFiles: Record<string, string[]>;
2586
+ applyInstructionProgress: {
2587
+ state: "ready" | "blocked" | "all_done";
2588
+ total: number;
2589
+ remaining: number;
2590
+ complete: number;
2591
+ source: "openspec-instructions-apply";
2592
+ divergence: {
2593
+ message: string;
2594
+ kind: "tracked-task-mismatch";
2595
+ apply: {
2596
+ total: number;
2597
+ remaining: number;
2598
+ complete: number;
2599
+ };
2600
+ tracked: {
2601
+ completed: number;
2602
+ total: number;
2603
+ remaining: number;
2604
+ phase: "no-tasks" | "in-progress" | "complete";
2605
+ };
2606
+ } | null;
2607
+ };
2608
+ references?: z.objectOutputType<{
2609
+ store_id: z.ZodString;
2610
+ root: z.ZodOptional<z.ZodString>;
2611
+ status: z.ZodArray<z.ZodObject<{
2612
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2613
+ code: z.ZodString;
2614
+ message: z.ZodString;
2615
+ target: z.ZodOptional<z.ZodString>;
2616
+ fix: z.ZodOptional<z.ZodString>;
2617
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2618
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2619
+ code: z.ZodString;
2620
+ message: z.ZodString;
2621
+ target: z.ZodOptional<z.ZodString>;
2622
+ fix: z.ZodOptional<z.ZodString>;
2623
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2624
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2625
+ code: z.ZodString;
2626
+ message: z.ZodString;
2627
+ target: z.ZodOptional<z.ZodString>;
2628
+ fix: z.ZodOptional<z.ZodString>;
2629
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2630
+ } & {
2631
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2632
+ id: z.ZodString;
2633
+ summary: z.ZodString;
2634
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2635
+ id: z.ZodString;
2636
+ summary: z.ZodString;
2637
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2638
+ id: z.ZodString;
2639
+ summary: z.ZodString;
2640
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2641
+ fetch: z.ZodOptional<z.ZodString>;
2642
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2643
+ missingArtifacts?: string[] | undefined;
2644
+ }, {
2645
+ state: "ready" | "blocked" | "all_done";
2646
+ tasks: {
2647
+ id: string;
2648
+ done: boolean;
2649
+ description: string;
2650
+ }[];
2651
+ evidence: {
2652
+ success: boolean;
2653
+ stdout: string;
2654
+ stderr: string;
2655
+ exitCode: number | null;
2656
+ payload: CliJsonValue;
2657
+ diagnostics: z.objectInputType<{
2658
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2659
+ code: z.ZodString;
2660
+ message: z.ZodString;
2661
+ target: z.ZodOptional<z.ZodString>;
2662
+ fix: z.ZodOptional<z.ZodString>;
2663
+ }, z.ZodTypeAny, "passthrough">[];
2664
+ command: "instructions apply";
2665
+ selector: {
2666
+ store?: string | undefined;
2667
+ };
2668
+ contractError?: string | undefined;
2669
+ root?: z.objectInputType<{
2670
+ path: z.ZodString;
2671
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2672
+ store_id: z.ZodOptional<z.ZodString>;
2673
+ }, z.ZodTypeAny, "passthrough"> | undefined;
2674
+ } & {
2675
+ [k: string]: unknown;
2676
+ };
2677
+ changeName: string;
2678
+ schemaName: string;
2679
+ changeDir: string;
2680
+ instruction: string;
2681
+ contextFiles: Record<string, string | string[]>;
2682
+ applyInstructionProgress: {
2683
+ state: "ready" | "blocked" | "all_done";
2684
+ total: number;
2685
+ remaining: number;
2686
+ complete: number;
2687
+ source: "openspec-instructions-apply";
2688
+ divergence: {
2689
+ message: string;
2690
+ kind: "tracked-task-mismatch";
2691
+ apply: {
2692
+ total: number;
2693
+ remaining: number;
2694
+ complete: number;
2695
+ };
2696
+ tracked: {
2697
+ completed: number;
2698
+ total: number;
2699
+ remaining: number;
2700
+ phase: "no-tasks" | "in-progress" | "complete";
2701
+ };
2702
+ } | null;
2703
+ };
2704
+ references?: z.objectInputType<{
2705
+ store_id: z.ZodString;
2706
+ root: z.ZodOptional<z.ZodString>;
2707
+ status: z.ZodArray<z.ZodObject<{
2708
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2709
+ code: z.ZodString;
2710
+ message: z.ZodString;
2711
+ target: z.ZodOptional<z.ZodString>;
2712
+ fix: z.ZodOptional<z.ZodString>;
2713
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2714
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2715
+ code: z.ZodString;
2716
+ message: z.ZodString;
2717
+ target: z.ZodOptional<z.ZodString>;
2718
+ fix: z.ZodOptional<z.ZodString>;
2719
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2720
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2721
+ code: z.ZodString;
2722
+ message: z.ZodString;
2723
+ target: z.ZodOptional<z.ZodString>;
2724
+ fix: z.ZodOptional<z.ZodString>;
2725
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2726
+ } & {
2727
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2728
+ id: z.ZodString;
2729
+ summary: z.ZodString;
2730
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2731
+ id: z.ZodString;
2732
+ summary: z.ZodString;
2733
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2734
+ id: z.ZodString;
2735
+ summary: z.ZodString;
2736
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2737
+ fetch: z.ZodOptional<z.ZodString>;
2738
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
2739
+ missingArtifacts?: string[] | undefined;
2740
+ }>>;
2741
+ type ApplyInstructions = z.infer<typeof ApplyInstructionsSchema>;
2742
+ declare const ArtifactInstructionsSchema: z.ZodObject<{
2743
+ changeName: z.ZodString;
2744
+ artifactId: z.ZodString;
2745
+ schemaName: z.ZodString;
2746
+ changeDir: z.ZodString;
2747
+ outputPath: z.ZodString;
2748
+ description: z.ZodString;
2749
+ instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2750
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2751
+ rules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2752
+ template: z.ZodString;
2753
+ dependencies: z.ZodArray<z.ZodObject<{
2754
+ id: z.ZodString;
2755
+ done: z.ZodBoolean;
2756
+ path: z.ZodString;
2757
+ description: z.ZodString;
2758
+ }, "strip", z.ZodTypeAny, {
2759
+ path: string;
2760
+ id: string;
2761
+ done: boolean;
2762
+ description: string;
2763
+ }, {
2764
+ path: string;
2765
+ id: string;
2766
+ done: boolean;
2767
+ description: string;
2768
+ }>, "many">;
2769
+ unlocks: z.ZodArray<z.ZodString, "many">;
2770
+ references: z.ZodOptional<z.ZodArray<z.ZodObject<{
2771
+ store_id: z.ZodString;
2772
+ root: z.ZodOptional<z.ZodString>;
2773
+ status: z.ZodArray<z.ZodObject<{
2774
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2775
+ code: z.ZodString;
2776
+ message: z.ZodString;
2777
+ target: z.ZodOptional<z.ZodString>;
2778
+ fix: z.ZodOptional<z.ZodString>;
2779
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2780
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2781
+ code: z.ZodString;
2782
+ message: z.ZodString;
2783
+ target: z.ZodOptional<z.ZodString>;
2784
+ fix: z.ZodOptional<z.ZodString>;
2785
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2792
+ } & {
2793
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2794
+ id: z.ZodString;
2795
+ summary: z.ZodString;
2796
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2797
+ id: z.ZodString;
2798
+ summary: z.ZodString;
2799
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2800
+ id: z.ZodString;
2801
+ summary: z.ZodString;
2802
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2803
+ fetch: z.ZodOptional<z.ZodString>;
2804
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2805
+ store_id: z.ZodString;
2806
+ root: z.ZodOptional<z.ZodString>;
2807
+ status: z.ZodArray<z.ZodObject<{
2808
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2809
+ code: z.ZodString;
2810
+ message: z.ZodString;
2811
+ target: z.ZodOptional<z.ZodString>;
2812
+ fix: z.ZodOptional<z.ZodString>;
2813
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2814
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2815
+ code: z.ZodString;
2816
+ message: z.ZodString;
2817
+ target: z.ZodOptional<z.ZodString>;
2818
+ fix: z.ZodOptional<z.ZodString>;
2819
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2820
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2821
+ code: z.ZodString;
2822
+ message: z.ZodString;
2823
+ target: z.ZodOptional<z.ZodString>;
2824
+ fix: z.ZodOptional<z.ZodString>;
2825
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2826
+ } & {
2827
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2828
+ id: z.ZodString;
2829
+ summary: z.ZodString;
2830
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2831
+ id: z.ZodString;
2832
+ summary: z.ZodString;
2833
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2834
+ id: z.ZodString;
2835
+ summary: z.ZodString;
2836
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2837
+ fetch: z.ZodOptional<z.ZodString>;
2838
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2839
+ store_id: z.ZodString;
2840
+ root: z.ZodOptional<z.ZodString>;
2841
+ status: z.ZodArray<z.ZodObject<{
2842
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2843
+ code: z.ZodString;
2844
+ message: z.ZodString;
2845
+ target: z.ZodOptional<z.ZodString>;
2846
+ fix: z.ZodOptional<z.ZodString>;
2847
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2848
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2849
+ code: z.ZodString;
2850
+ message: z.ZodString;
2851
+ target: z.ZodOptional<z.ZodString>;
2852
+ fix: z.ZodOptional<z.ZodString>;
2853
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2854
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2855
+ code: z.ZodString;
2856
+ message: z.ZodString;
2857
+ target: z.ZodOptional<z.ZodString>;
2858
+ fix: z.ZodOptional<z.ZodString>;
2859
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2860
+ } & {
2861
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2862
+ id: z.ZodString;
2863
+ summary: z.ZodString;
2864
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2865
+ id: z.ZodString;
2866
+ summary: z.ZodString;
2867
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2868
+ id: z.ZodString;
2869
+ summary: z.ZodString;
2870
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2871
+ fetch: z.ZodOptional<z.ZodString>;
2872
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
2873
+ evidence: z.ZodObject<{
2874
+ success: z.ZodBoolean;
2875
+ stdout: z.ZodString;
2876
+ stderr: z.ZodString;
2877
+ exitCode: z.ZodNullable<z.ZodNumber>;
2878
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2879
+ diagnostics: z.ZodArray<z.ZodObject<{
2880
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2881
+ code: z.ZodString;
2882
+ message: z.ZodString;
2883
+ target: z.ZodOptional<z.ZodString>;
2884
+ fix: z.ZodOptional<z.ZodString>;
2885
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2886
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2887
+ code: z.ZodString;
2888
+ message: z.ZodString;
2889
+ target: z.ZodOptional<z.ZodString>;
2890
+ fix: z.ZodOptional<z.ZodString>;
2891
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2892
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2893
+ code: z.ZodString;
2894
+ message: z.ZodString;
2895
+ target: z.ZodOptional<z.ZodString>;
2896
+ fix: z.ZodOptional<z.ZodString>;
2897
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2898
+ contractError: z.ZodOptional<z.ZodString>;
2899
+ selector: z.ZodObject<{
2900
+ store: z.ZodOptional<z.ZodString>;
2901
+ }, "strict", z.ZodTypeAny, {
2902
+ store?: string | undefined;
2903
+ }, {
2904
+ store?: string | undefined;
2905
+ }>;
2906
+ root: z.ZodOptional<z.ZodObject<{
2907
+ path: z.ZodString;
2908
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2909
+ store_id: z.ZodOptional<z.ZodString>;
2910
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2911
+ path: z.ZodString;
2912
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2913
+ store_id: z.ZodOptional<z.ZodString>;
2914
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2915
+ path: z.ZodString;
2916
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2917
+ store_id: z.ZodOptional<z.ZodString>;
2918
+ }, z.ZodTypeAny, "passthrough">>>;
2919
+ } & {
2920
+ command: z.ZodLiteral<"instructions">;
2921
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2922
+ success: z.ZodBoolean;
2923
+ stdout: z.ZodString;
2924
+ stderr: z.ZodString;
2925
+ exitCode: z.ZodNullable<z.ZodNumber>;
2926
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2927
+ diagnostics: z.ZodArray<z.ZodObject<{
2928
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2929
+ code: z.ZodString;
2930
+ message: z.ZodString;
2931
+ target: z.ZodOptional<z.ZodString>;
2932
+ fix: z.ZodOptional<z.ZodString>;
2933
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2934
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2935
+ code: z.ZodString;
2936
+ message: z.ZodString;
2937
+ target: z.ZodOptional<z.ZodString>;
2938
+ fix: z.ZodOptional<z.ZodString>;
2939
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2940
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2941
+ code: z.ZodString;
2942
+ message: z.ZodString;
2943
+ target: z.ZodOptional<z.ZodString>;
2944
+ fix: z.ZodOptional<z.ZodString>;
2945
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2946
+ contractError: z.ZodOptional<z.ZodString>;
2947
+ selector: z.ZodObject<{
2948
+ store: z.ZodOptional<z.ZodString>;
2949
+ }, "strict", z.ZodTypeAny, {
2950
+ store?: string | undefined;
2951
+ }, {
2952
+ store?: string | undefined;
2953
+ }>;
2954
+ root: z.ZodOptional<z.ZodObject<{
2955
+ path: z.ZodString;
2956
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2957
+ store_id: z.ZodOptional<z.ZodString>;
2958
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2959
+ path: z.ZodString;
2960
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2961
+ store_id: z.ZodOptional<z.ZodString>;
2962
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2963
+ path: z.ZodString;
2964
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
2965
+ store_id: z.ZodOptional<z.ZodString>;
2966
+ }, z.ZodTypeAny, "passthrough">>>;
2967
+ } & {
2968
+ command: z.ZodLiteral<"instructions">;
2969
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2970
+ success: z.ZodBoolean;
2971
+ stdout: z.ZodString;
2972
+ stderr: z.ZodString;
2973
+ exitCode: z.ZodNullable<z.ZodNumber>;
2974
+ payload: z.ZodNullable<z.ZodType<CliJsonValue, z.ZodTypeDef, CliJsonValue>>;
2975
+ diagnostics: z.ZodArray<z.ZodObject<{
2976
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2977
+ code: z.ZodString;
2978
+ message: z.ZodString;
2979
+ target: z.ZodOptional<z.ZodString>;
2980
+ fix: z.ZodOptional<z.ZodString>;
2981
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2982
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2983
+ code: z.ZodString;
2984
+ message: z.ZodString;
2985
+ target: z.ZodOptional<z.ZodString>;
2986
+ fix: z.ZodOptional<z.ZodString>;
2987
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2988
+ severity: z.ZodEnum<["error", "warning", "info"]>;
2989
+ code: z.ZodString;
2990
+ message: z.ZodString;
2991
+ target: z.ZodOptional<z.ZodString>;
2992
+ fix: z.ZodOptional<z.ZodString>;
2993
+ }, z.ZodTypeAny, "passthrough">>, "many">;
2994
+ contractError: z.ZodOptional<z.ZodString>;
2995
+ selector: z.ZodObject<{
2996
+ store: z.ZodOptional<z.ZodString>;
2997
+ }, "strict", z.ZodTypeAny, {
2998
+ store?: string | undefined;
2999
+ }, {
3000
+ store?: string | undefined;
3001
+ }>;
3002
+ root: z.ZodOptional<z.ZodObject<{
3003
+ path: z.ZodString;
3004
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3005
+ store_id: z.ZodOptional<z.ZodString>;
3006
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3007
+ path: z.ZodString;
3008
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3009
+ store_id: z.ZodOptional<z.ZodString>;
3010
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3011
+ path: z.ZodString;
3012
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3013
+ store_id: z.ZodOptional<z.ZodString>;
3014
+ }, z.ZodTypeAny, "passthrough">>>;
3015
+ } & {
3016
+ command: z.ZodLiteral<"instructions">;
3017
+ }, z.ZodTypeAny, "passthrough">>;
3018
+ }, "strip", z.ZodTypeAny, {
3019
+ artifactId: string;
3020
+ outputPath: string;
3021
+ evidence: {
3022
+ success: boolean;
3023
+ stdout: string;
3024
+ stderr: string;
3025
+ exitCode: number | null;
3026
+ payload: CliJsonValue;
3027
+ diagnostics: z.objectOutputType<{
3028
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3029
+ code: z.ZodString;
3030
+ message: z.ZodString;
3031
+ target: z.ZodOptional<z.ZodString>;
3032
+ fix: z.ZodOptional<z.ZodString>;
3033
+ }, z.ZodTypeAny, "passthrough">[];
3034
+ command: "instructions";
3035
+ selector: {
3036
+ store?: string | undefined;
3037
+ };
3038
+ contractError?: string | undefined;
3039
+ root?: z.objectOutputType<{
3040
+ path: z.ZodString;
3041
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3042
+ store_id: z.ZodOptional<z.ZodString>;
3043
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3044
+ } & {
3045
+ [k: string]: unknown;
3046
+ };
3047
+ changeName: string;
3048
+ schemaName: string;
3049
+ changeDir: string;
3050
+ description: string;
3051
+ template: string;
3052
+ dependencies: {
3053
+ path: string;
3054
+ id: string;
3055
+ done: boolean;
3056
+ description: string;
3057
+ }[];
3058
+ unlocks: string[];
3059
+ references?: z.objectOutputType<{
3060
+ store_id: z.ZodString;
3061
+ root: z.ZodOptional<z.ZodString>;
3062
+ status: z.ZodArray<z.ZodObject<{
3063
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3064
+ code: z.ZodString;
3065
+ message: z.ZodString;
3066
+ target: z.ZodOptional<z.ZodString>;
3067
+ fix: z.ZodOptional<z.ZodString>;
3068
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3069
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3070
+ code: z.ZodString;
3071
+ message: z.ZodString;
3072
+ target: z.ZodOptional<z.ZodString>;
3073
+ fix: z.ZodOptional<z.ZodString>;
3074
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3075
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3076
+ code: z.ZodString;
3077
+ message: z.ZodString;
3078
+ target: z.ZodOptional<z.ZodString>;
3079
+ fix: z.ZodOptional<z.ZodString>;
3080
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3081
+ } & {
3082
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3083
+ id: z.ZodString;
3084
+ summary: z.ZodString;
3085
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3086
+ id: z.ZodString;
3087
+ summary: z.ZodString;
3088
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3089
+ id: z.ZodString;
3090
+ summary: z.ZodString;
3091
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
3092
+ fetch: z.ZodOptional<z.ZodString>;
3093
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
3094
+ context?: string | null | undefined;
3095
+ instruction?: string | null | undefined;
3096
+ rules?: string[] | null | undefined;
3097
+ }, {
3098
+ artifactId: string;
3099
+ outputPath: string;
3100
+ evidence: {
3101
+ success: boolean;
3102
+ stdout: string;
3103
+ stderr: string;
3104
+ exitCode: number | null;
3105
+ payload: CliJsonValue;
3106
+ diagnostics: z.objectInputType<{
3107
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3108
+ code: z.ZodString;
3109
+ message: z.ZodString;
3110
+ target: z.ZodOptional<z.ZodString>;
3111
+ fix: z.ZodOptional<z.ZodString>;
3112
+ }, z.ZodTypeAny, "passthrough">[];
3113
+ command: "instructions";
3114
+ selector: {
3115
+ store?: string | undefined;
3116
+ };
3117
+ contractError?: string | undefined;
3118
+ root?: z.objectInputType<{
3119
+ path: z.ZodString;
3120
+ source: z.ZodEnum<["store", "declared", "nearest", "implicit"]>;
3121
+ store_id: z.ZodOptional<z.ZodString>;
3122
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3123
+ } & {
3124
+ [k: string]: unknown;
3125
+ };
3126
+ changeName: string;
3127
+ schemaName: string;
3128
+ changeDir: string;
3129
+ description: string;
3130
+ template: string;
3131
+ dependencies: {
3132
+ path: string;
3133
+ id: string;
3134
+ done: boolean;
3135
+ description: string;
3136
+ }[];
3137
+ unlocks: string[];
3138
+ references?: z.objectInputType<{
3139
+ store_id: z.ZodString;
3140
+ root: z.ZodOptional<z.ZodString>;
3141
+ status: z.ZodArray<z.ZodObject<{
3142
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3143
+ code: z.ZodString;
3144
+ message: z.ZodString;
3145
+ target: z.ZodOptional<z.ZodString>;
3146
+ fix: z.ZodOptional<z.ZodString>;
3147
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3148
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3149
+ code: z.ZodString;
3150
+ message: z.ZodString;
3151
+ target: z.ZodOptional<z.ZodString>;
3152
+ fix: z.ZodOptional<z.ZodString>;
3153
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3154
+ severity: z.ZodEnum<["error", "warning", "info"]>;
3155
+ code: z.ZodString;
3156
+ message: z.ZodString;
3157
+ target: z.ZodOptional<z.ZodString>;
3158
+ fix: z.ZodOptional<z.ZodString>;
3159
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3160
+ } & {
3161
+ specs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3162
+ id: z.ZodString;
3163
+ summary: z.ZodString;
3164
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3165
+ id: z.ZodString;
3166
+ summary: z.ZodString;
3167
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3168
+ id: z.ZodString;
3169
+ summary: z.ZodString;
3170
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
3171
+ fetch: z.ZodOptional<z.ZodString>;
3172
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
3173
+ context?: string | null | undefined;
3174
+ instruction?: string | null | undefined;
3175
+ rules?: string[] | null | undefined;
3176
+ }>;
3177
+ type ArtifactInstructions = z.infer<typeof ArtifactInstructionsSchema>;
3178
+ /** CLI-owned Schema list item projected by OPSX. */
3179
+ declare const SchemaInfoSchema: z.ZodObject<{
3180
+ name: z.ZodString;
3181
+ description: z.ZodOptional<z.ZodString>;
3182
+ artifacts: z.ZodArray<z.ZodString, "many">;
3183
+ source: z.ZodEnum<["project", "user", "package"]>;
3184
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3185
+ name: z.ZodString;
3186
+ description: z.ZodOptional<z.ZodString>;
3187
+ artifacts: z.ZodArray<z.ZodString, "many">;
3188
+ source: z.ZodEnum<["project", "user", "package"]>;
3189
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3190
+ name: z.ZodString;
3191
+ description: z.ZodOptional<z.ZodString>;
3192
+ artifacts: z.ZodArray<z.ZodString, "many">;
3193
+ source: z.ZodEnum<["project", "user", "package"]>;
3194
+ }, z.ZodTypeAny, "passthrough">>;
3195
+ type SchemaInfo = z.infer<typeof SchemaInfoSchema>;
3196
+ /** CLI-owned schema resolution enriched only with display-safe paths. */
3197
+ declare const SchemaResolutionSchema: z.ZodObject<{
3198
+ name: z.ZodString;
3199
+ source: z.ZodEnum<["project", "user", "package"]>;
3200
+ path: z.ZodString;
3201
+ } & {
3202
+ displayPath: z.ZodOptional<z.ZodString>;
3203
+ shadows: z.ZodArray<z.ZodObject<{
3204
+ source: z.ZodEnum<["project", "user", "package"]>;
3205
+ path: z.ZodString;
3206
+ } & {
3207
+ displayPath: z.ZodOptional<z.ZodString>;
3208
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3209
+ source: z.ZodEnum<["project", "user", "package"]>;
3210
+ path: z.ZodString;
3211
+ } & {
3212
+ displayPath: z.ZodOptional<z.ZodString>;
3213
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3214
+ source: z.ZodEnum<["project", "user", "package"]>;
3215
+ path: z.ZodString;
3216
+ } & {
3217
+ displayPath: z.ZodOptional<z.ZodString>;
3218
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3219
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3220
+ name: z.ZodString;
3221
+ source: z.ZodEnum<["project", "user", "package"]>;
3222
+ path: z.ZodString;
3223
+ } & {
3224
+ displayPath: z.ZodOptional<z.ZodString>;
3225
+ shadows: z.ZodArray<z.ZodObject<{
3226
+ source: z.ZodEnum<["project", "user", "package"]>;
3227
+ path: z.ZodString;
3228
+ } & {
3229
+ displayPath: z.ZodOptional<z.ZodString>;
3230
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3231
+ source: z.ZodEnum<["project", "user", "package"]>;
3232
+ path: z.ZodString;
3233
+ } & {
3234
+ displayPath: z.ZodOptional<z.ZodString>;
3235
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3236
+ source: z.ZodEnum<["project", "user", "package"]>;
3237
+ path: z.ZodString;
3238
+ } & {
3239
+ displayPath: z.ZodOptional<z.ZodString>;
3240
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3241
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3242
+ name: z.ZodString;
3243
+ source: z.ZodEnum<["project", "user", "package"]>;
3244
+ path: z.ZodString;
3245
+ } & {
3246
+ displayPath: z.ZodOptional<z.ZodString>;
3247
+ shadows: z.ZodArray<z.ZodObject<{
3248
+ source: z.ZodEnum<["project", "user", "package"]>;
3249
+ path: z.ZodString;
3250
+ } & {
3251
+ displayPath: z.ZodOptional<z.ZodString>;
3252
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3253
+ source: z.ZodEnum<["project", "user", "package"]>;
3254
+ path: z.ZodString;
3255
+ } & {
3256
+ displayPath: z.ZodOptional<z.ZodString>;
3257
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3258
+ source: z.ZodEnum<["project", "user", "package"]>;
3259
+ path: z.ZodString;
3260
+ } & {
3261
+ displayPath: z.ZodOptional<z.ZodString>;
3262
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3263
+ }, z.ZodTypeAny, "passthrough">>;
3264
+ type SchemaResolution = z.infer<typeof SchemaResolutionSchema>;
3265
+ /** CLI-owned template index enriched only with display-safe paths. */
3266
+ declare const TemplatesSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3267
+ path: z.ZodString;
3268
+ source: z.ZodEnum<["project", "user", "package"]>;
3269
+ } & {
3270
+ displayPath: z.ZodOptional<z.ZodString>;
3271
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3272
+ path: z.ZodString;
3273
+ source: z.ZodEnum<["project", "user", "package"]>;
3274
+ } & {
3275
+ displayPath: z.ZodOptional<z.ZodString>;
3276
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3277
+ path: z.ZodString;
3278
+ source: z.ZodEnum<["project", "user", "package"]>;
3279
+ } & {
3280
+ displayPath: z.ZodOptional<z.ZodString>;
3281
+ }, z.ZodTypeAny, "passthrough">>>;
3282
+ type TemplatesMap = z.infer<typeof TemplatesSchema>;
3283
+ declare const SchemaArtifactSchema: z.ZodObject<{
3284
+ id: z.ZodString;
3285
+ outputPath: z.ZodString;
3286
+ description: z.ZodOptional<z.ZodString>;
3287
+ template: z.ZodOptional<z.ZodString>;
3288
+ instruction: z.ZodOptional<z.ZodString>;
3289
+ requires: z.ZodArray<z.ZodString, "many">;
3290
+ }, "strip", z.ZodTypeAny, {
3291
+ id: string;
3292
+ outputPath: string;
3293
+ requires: string[];
3294
+ description?: string | undefined;
3295
+ instruction?: string | undefined;
3296
+ template?: string | undefined;
3297
+ }, {
3298
+ id: string;
3299
+ outputPath: string;
3300
+ requires: string[];
3301
+ description?: string | undefined;
3302
+ instruction?: string | undefined;
3303
+ template?: string | undefined;
3304
+ }>;
3305
+ type SchemaArtifact = z.infer<typeof SchemaArtifactSchema>;
3306
+ declare const SchemaDetailSchema: z.ZodObject<{
3307
+ name: z.ZodString;
3308
+ description: z.ZodOptional<z.ZodString>;
3309
+ version: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
3310
+ artifacts: z.ZodArray<z.ZodObject<{
3311
+ id: z.ZodString;
3312
+ outputPath: z.ZodString;
3313
+ description: z.ZodOptional<z.ZodString>;
3314
+ template: z.ZodOptional<z.ZodString>;
3315
+ instruction: z.ZodOptional<z.ZodString>;
3316
+ requires: z.ZodArray<z.ZodString, "many">;
3317
+ }, "strip", z.ZodTypeAny, {
3318
+ id: string;
3319
+ outputPath: string;
3320
+ requires: string[];
3321
+ description?: string | undefined;
3322
+ instruction?: string | undefined;
3323
+ template?: string | undefined;
3324
+ }, {
3325
+ id: string;
3326
+ outputPath: string;
3327
+ requires: string[];
3328
+ description?: string | undefined;
3329
+ instruction?: string | undefined;
3330
+ template?: string | undefined;
3331
+ }>, "many">;
3332
+ applyRequires: z.ZodArray<z.ZodString, "many">;
3333
+ applyTracks: z.ZodOptional<z.ZodString>;
3334
+ applyInstruction: z.ZodOptional<z.ZodString>;
3335
+ }, "strip", z.ZodTypeAny, {
3336
+ name: string;
3337
+ applyRequires: string[];
3338
+ artifacts: {
3339
+ id: string;
3340
+ outputPath: string;
3341
+ requires: string[];
3342
+ description?: string | undefined;
3343
+ instruction?: string | undefined;
3344
+ template?: string | undefined;
3345
+ }[];
3346
+ version?: string | number | undefined;
3347
+ description?: string | undefined;
3348
+ applyTracks?: string | undefined;
3349
+ applyInstruction?: string | undefined;
3350
+ }, {
3351
+ name: string;
3352
+ applyRequires: string[];
3353
+ artifacts: {
3354
+ id: string;
3355
+ outputPath: string;
3356
+ requires: string[];
3357
+ description?: string | undefined;
3358
+ instruction?: string | undefined;
3359
+ template?: string | undefined;
3360
+ }[];
3361
+ version?: string | number | undefined;
3362
+ description?: string | undefined;
3363
+ applyTracks?: string | undefined;
3364
+ applyInstruction?: string | undefined;
3365
+ }>;
3366
+ type SchemaDetail = z.infer<typeof SchemaDetailSchema>;
3367
+ /** Runtime schema for the aggregate Schema workspace projection. */
3368
+ declare const OpsxConfigBundleSchema: z.ZodObject<{
3369
+ schemas: z.ZodArray<z.ZodObject<{
3370
+ name: z.ZodString;
3371
+ description: z.ZodOptional<z.ZodString>;
3372
+ artifacts: z.ZodArray<z.ZodString, "many">;
3373
+ source: z.ZodEnum<["project", "user", "package"]>;
3374
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3375
+ name: z.ZodString;
3376
+ description: z.ZodOptional<z.ZodString>;
3377
+ artifacts: z.ZodArray<z.ZodString, "many">;
3378
+ source: z.ZodEnum<["project", "user", "package"]>;
3379
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3380
+ name: z.ZodString;
3381
+ description: z.ZodOptional<z.ZodString>;
3382
+ artifacts: z.ZodArray<z.ZodString, "many">;
3383
+ source: z.ZodEnum<["project", "user", "package"]>;
3384
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3385
+ schemaDetails: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
3386
+ name: z.ZodString;
3387
+ description: z.ZodOptional<z.ZodString>;
3388
+ version: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
3389
+ artifacts: z.ZodArray<z.ZodObject<{
3390
+ id: z.ZodString;
3391
+ outputPath: z.ZodString;
3392
+ description: z.ZodOptional<z.ZodString>;
3393
+ template: z.ZodOptional<z.ZodString>;
3394
+ instruction: z.ZodOptional<z.ZodString>;
3395
+ requires: z.ZodArray<z.ZodString, "many">;
3396
+ }, "strip", z.ZodTypeAny, {
3397
+ id: string;
3398
+ outputPath: string;
3399
+ requires: string[];
3400
+ description?: string | undefined;
3401
+ instruction?: string | undefined;
3402
+ template?: string | undefined;
3403
+ }, {
3404
+ id: string;
3405
+ outputPath: string;
3406
+ requires: string[];
3407
+ description?: string | undefined;
3408
+ instruction?: string | undefined;
3409
+ template?: string | undefined;
3410
+ }>, "many">;
3411
+ applyRequires: z.ZodArray<z.ZodString, "many">;
3412
+ applyTracks: z.ZodOptional<z.ZodString>;
3413
+ applyInstruction: z.ZodOptional<z.ZodString>;
3414
+ }, "strip", z.ZodTypeAny, {
3415
+ name: string;
3416
+ applyRequires: string[];
3417
+ artifacts: {
3418
+ id: string;
3419
+ outputPath: string;
3420
+ requires: string[];
3421
+ description?: string | undefined;
3422
+ instruction?: string | undefined;
3423
+ template?: string | undefined;
3424
+ }[];
3425
+ version?: string | number | undefined;
3426
+ description?: string | undefined;
3427
+ applyTracks?: string | undefined;
3428
+ applyInstruction?: string | undefined;
3429
+ }, {
3430
+ name: string;
3431
+ applyRequires: string[];
3432
+ artifacts: {
3433
+ id: string;
3434
+ outputPath: string;
3435
+ requires: string[];
3436
+ description?: string | undefined;
3437
+ instruction?: string | undefined;
3438
+ template?: string | undefined;
3439
+ }[];
3440
+ version?: string | number | undefined;
3441
+ description?: string | undefined;
3442
+ applyTracks?: string | undefined;
3443
+ applyInstruction?: string | undefined;
3444
+ }>>>;
3445
+ schemaResolutions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
3446
+ name: z.ZodString;
3447
+ source: z.ZodEnum<["project", "user", "package"]>;
3448
+ path: z.ZodString;
3449
+ } & {
3450
+ displayPath: z.ZodOptional<z.ZodString>;
3451
+ shadows: z.ZodArray<z.ZodObject<{
3452
+ source: z.ZodEnum<["project", "user", "package"]>;
3453
+ path: z.ZodString;
3454
+ } & {
3455
+ displayPath: z.ZodOptional<z.ZodString>;
3456
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3457
+ source: z.ZodEnum<["project", "user", "package"]>;
3458
+ path: z.ZodString;
3459
+ } & {
3460
+ displayPath: z.ZodOptional<z.ZodString>;
3461
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3462
+ source: z.ZodEnum<["project", "user", "package"]>;
3463
+ path: z.ZodString;
3464
+ } & {
3465
+ displayPath: z.ZodOptional<z.ZodString>;
3466
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3467
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3468
+ name: z.ZodString;
3469
+ source: z.ZodEnum<["project", "user", "package"]>;
3470
+ path: z.ZodString;
3471
+ } & {
3472
+ displayPath: z.ZodOptional<z.ZodString>;
3473
+ shadows: z.ZodArray<z.ZodObject<{
3474
+ source: z.ZodEnum<["project", "user", "package"]>;
3475
+ path: z.ZodString;
3476
+ } & {
3477
+ displayPath: z.ZodOptional<z.ZodString>;
3478
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3479
+ source: z.ZodEnum<["project", "user", "package"]>;
3480
+ path: z.ZodString;
3481
+ } & {
3482
+ displayPath: z.ZodOptional<z.ZodString>;
3483
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3484
+ source: z.ZodEnum<["project", "user", "package"]>;
3485
+ path: z.ZodString;
3486
+ } & {
3487
+ displayPath: z.ZodOptional<z.ZodString>;
3488
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3489
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3490
+ name: z.ZodString;
3491
+ source: z.ZodEnum<["project", "user", "package"]>;
3492
+ path: z.ZodString;
3493
+ } & {
3494
+ displayPath: z.ZodOptional<z.ZodString>;
3495
+ shadows: z.ZodArray<z.ZodObject<{
3496
+ source: z.ZodEnum<["project", "user", "package"]>;
3497
+ path: z.ZodString;
3498
+ } & {
3499
+ displayPath: z.ZodOptional<z.ZodString>;
3500
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3501
+ source: z.ZodEnum<["project", "user", "package"]>;
3502
+ path: z.ZodString;
3503
+ } & {
3504
+ displayPath: z.ZodOptional<z.ZodString>;
3505
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3506
+ source: z.ZodEnum<["project", "user", "package"]>;
3507
+ path: z.ZodString;
3508
+ } & {
3509
+ displayPath: z.ZodOptional<z.ZodString>;
3510
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3511
+ }, z.ZodTypeAny, "passthrough">>>>;
3512
+ }, "strip", z.ZodTypeAny, {
3513
+ schemas: z.objectOutputType<{
3514
+ name: z.ZodString;
3515
+ description: z.ZodOptional<z.ZodString>;
3516
+ artifacts: z.ZodArray<z.ZodString, "many">;
3517
+ source: z.ZodEnum<["project", "user", "package"]>;
3518
+ }, z.ZodTypeAny, "passthrough">[];
3519
+ schemaDetails: Record<string, {
3520
+ name: string;
3521
+ applyRequires: string[];
3522
+ artifacts: {
3523
+ id: string;
3524
+ outputPath: string;
3525
+ requires: string[];
3526
+ description?: string | undefined;
3527
+ instruction?: string | undefined;
3528
+ template?: string | undefined;
3529
+ }[];
3530
+ version?: string | number | undefined;
3531
+ description?: string | undefined;
3532
+ applyTracks?: string | undefined;
3533
+ applyInstruction?: string | undefined;
3534
+ } | null>;
3535
+ schemaResolutions: Record<string, z.objectOutputType<{
3536
+ name: z.ZodString;
3537
+ source: z.ZodEnum<["project", "user", "package"]>;
3538
+ path: z.ZodString;
3539
+ } & {
3540
+ displayPath: z.ZodOptional<z.ZodString>;
3541
+ shadows: z.ZodArray<z.ZodObject<{
3542
+ source: z.ZodEnum<["project", "user", "package"]>;
3543
+ path: z.ZodString;
3544
+ } & {
3545
+ displayPath: z.ZodOptional<z.ZodString>;
3546
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3547
+ source: z.ZodEnum<["project", "user", "package"]>;
3548
+ path: z.ZodString;
3549
+ } & {
3550
+ displayPath: z.ZodOptional<z.ZodString>;
3551
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3552
+ source: z.ZodEnum<["project", "user", "package"]>;
3553
+ path: z.ZodString;
3554
+ } & {
3555
+ displayPath: z.ZodOptional<z.ZodString>;
3556
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3557
+ }, z.ZodTypeAny, "passthrough"> | null>;
3558
+ }, {
3559
+ schemas: z.objectInputType<{
3560
+ name: z.ZodString;
3561
+ description: z.ZodOptional<z.ZodString>;
3562
+ artifacts: z.ZodArray<z.ZodString, "many">;
3563
+ source: z.ZodEnum<["project", "user", "package"]>;
3564
+ }, z.ZodTypeAny, "passthrough">[];
3565
+ schemaDetails: Record<string, {
3566
+ name: string;
3567
+ applyRequires: string[];
3568
+ artifacts: {
3569
+ id: string;
3570
+ outputPath: string;
3571
+ requires: string[];
3572
+ description?: string | undefined;
3573
+ instruction?: string | undefined;
3574
+ template?: string | undefined;
3575
+ }[];
3576
+ version?: string | number | undefined;
3577
+ description?: string | undefined;
3578
+ applyTracks?: string | undefined;
3579
+ applyInstruction?: string | undefined;
3580
+ } | null>;
3581
+ schemaResolutions: Record<string, z.objectInputType<{
3582
+ name: z.ZodString;
3583
+ source: z.ZodEnum<["project", "user", "package"]>;
3584
+ path: z.ZodString;
3585
+ } & {
3586
+ displayPath: z.ZodOptional<z.ZodString>;
3587
+ shadows: z.ZodArray<z.ZodObject<{
3588
+ source: z.ZodEnum<["project", "user", "package"]>;
3589
+ path: z.ZodString;
3590
+ } & {
3591
+ displayPath: z.ZodOptional<z.ZodString>;
3592
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3593
+ source: z.ZodEnum<["project", "user", "package"]>;
3594
+ path: z.ZodString;
3595
+ } & {
3596
+ displayPath: z.ZodOptional<z.ZodString>;
3597
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3598
+ source: z.ZodEnum<["project", "user", "package"]>;
3599
+ path: z.ZodString;
3600
+ } & {
3601
+ displayPath: z.ZodOptional<z.ZodString>;
3602
+ }, z.ZodTypeAny, "passthrough">>, "many">;
3603
+ }, z.ZodTypeAny, "passthrough"> | null>;
3604
+ }>;
3605
+ type OpsxConfigBundle = z.infer<typeof OpsxConfigBundleSchema>;
3606
+ /** Runtime schema for one resolved template body and its physical provenance. */
3607
+ declare const TemplateContentSchema: z.ZodObject<{
3608
+ content: z.ZodNullable<z.ZodString>;
3609
+ path: z.ZodString;
3610
+ displayPath: z.ZodOptional<z.ZodString>;
3611
+ source: z.ZodEnum<["project", "user", "package"]>;
3612
+ }, "strip", z.ZodTypeAny, {
3613
+ path: string;
3614
+ source: "project" | "user" | "package";
3615
+ content: string | null;
3616
+ displayPath?: string | undefined;
3617
+ }, {
3618
+ path: string;
3619
+ source: "project" | "user" | "package";
3620
+ content: string | null;
3621
+ displayPath?: string | undefined;
3622
+ }>;
3623
+ /** Runtime schema for template bodies keyed by artifact id. */
3624
+ declare const TemplateContentMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
3625
+ content: z.ZodNullable<z.ZodString>;
3626
+ path: z.ZodString;
3627
+ displayPath: z.ZodOptional<z.ZodString>;
3628
+ source: z.ZodEnum<["project", "user", "package"]>;
3629
+ }, "strip", z.ZodTypeAny, {
3630
+ path: string;
3631
+ source: "project" | "user" | "package";
3632
+ content: string | null;
3633
+ displayPath?: string | undefined;
3634
+ }, {
3635
+ path: string;
3636
+ source: "project" | "user" | "package";
3637
+ content: string | null;
3638
+ displayPath?: string | undefined;
3639
+ }>>;
3640
+ type TemplateContentMap = z.infer<typeof TemplateContentMapSchema>;
3641
+ //#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 };