@exaudeus/workrail 0.12.0 → 0.14.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 (98) hide show
  1. package/dist/application/services/enhanced-loop-validator.js +3 -3
  2. package/dist/application/services/step-output-decoder.d.ts +6 -0
  3. package/dist/application/services/step-output-decoder.js +49 -0
  4. package/dist/application/services/validation-engine.d.ts +9 -0
  5. package/dist/application/services/validation-engine.js +142 -18
  6. package/dist/application/services/workflow-interpreter.d.ts +1 -1
  7. package/dist/application/services/workflow-interpreter.js +147 -81
  8. package/dist/application/services/workflow-service.d.ts +2 -0
  9. package/dist/application/services/workflow-service.js +9 -4
  10. package/dist/application/use-cases/validate-step-output.d.ts +2 -0
  11. package/dist/di/container.js +19 -3
  12. package/dist/di/tokens.d.ts +3 -0
  13. package/dist/di/tokens.js +3 -0
  14. package/dist/domain/execution/state.d.ts +6 -6
  15. package/dist/domain/workflow-id-policy.d.ts +17 -0
  16. package/dist/domain/workflow-id-policy.js +57 -0
  17. package/dist/infrastructure/storage/enhanced-multi-source-workflow-storage.js +33 -6
  18. package/dist/infrastructure/storage/file-workflow-storage.js +3 -1
  19. package/dist/infrastructure/storage/schema-validating-workflow-storage.js +13 -8
  20. package/dist/manifest.json +261 -109
  21. package/dist/mcp/handlers/v2-execution.js +62 -79
  22. package/dist/mcp/handlers/v2-workflow.js +14 -9
  23. package/dist/mcp/server.js +53 -48
  24. package/dist/mcp/tool-descriptions.js +15 -15
  25. package/dist/mcp/tools.js +14 -14
  26. package/dist/mcp/types/tool-description-types.d.ts +1 -1
  27. package/dist/mcp/types/tool-description-types.js +5 -5
  28. package/dist/mcp/types.d.ts +2 -0
  29. package/dist/v2/durable-core/constants.d.ts +15 -0
  30. package/dist/v2/durable-core/constants.js +18 -0
  31. package/dist/v2/durable-core/domain/ack-advance-append-plan.d.ts +32 -0
  32. package/dist/v2/durable-core/domain/ack-advance-append-plan.js +95 -0
  33. package/dist/v2/durable-core/domain/loop-runtime.d.ts +50 -0
  34. package/dist/v2/durable-core/domain/loop-runtime.js +95 -0
  35. package/dist/v2/durable-core/domain/notes-markdown.d.ts +4 -0
  36. package/dist/v2/durable-core/domain/notes-markdown.js +46 -0
  37. package/dist/v2/durable-core/domain/outputs.d.ts +12 -0
  38. package/dist/v2/durable-core/domain/outputs.js +18 -0
  39. package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +113 -113
  40. package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.js +11 -10
  41. package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +7129 -0
  42. package/dist/v2/durable-core/schemas/export-bundle/index.js +82 -0
  43. package/dist/v2/durable-core/schemas/lib/decision-trace-ref.d.ts +80 -0
  44. package/dist/v2/durable-core/schemas/lib/decision-trace-ref.js +38 -0
  45. package/dist/v2/durable-core/schemas/lib/dedupe-key.d.ts +8 -0
  46. package/dist/v2/durable-core/schemas/lib/dedupe-key.js +28 -0
  47. package/dist/v2/durable-core/schemas/lib/utf8-bounded-string.d.ts +6 -0
  48. package/dist/v2/durable-core/schemas/lib/utf8-bounded-string.js +12 -0
  49. package/dist/v2/durable-core/schemas/session/events.d.ts +158 -12
  50. package/dist/v2/durable-core/schemas/session/events.js +47 -20
  51. package/dist/v2/durable-core/schemas/session/manifest.d.ts +1 -1
  52. package/dist/v2/durable-core/schemas/session/manifest.js +6 -1
  53. package/dist/v2/durable-core/schemas/session/preferences.d.ts +5 -0
  54. package/dist/v2/durable-core/schemas/session/preferences.js +6 -0
  55. package/dist/v2/durable-core/schemas/session/session-health.d.ts +3 -0
  56. package/dist/v2/durable-core/tokens/index.d.ts +0 -1
  57. package/dist/v2/durable-core/tokens/index.js +1 -4
  58. package/dist/v2/durable-core/tokens/token-codec.d.ts +3 -2
  59. package/dist/v2/durable-core/tokens/token-codec.js +12 -6
  60. package/dist/v2/durable-core/tokens/token-signer.d.ts +3 -2
  61. package/dist/v2/durable-core/tokens/token-signer.js +8 -9
  62. package/dist/v2/infra/local/base64url/index.d.ts +5 -0
  63. package/dist/v2/infra/local/base64url/index.js +48 -0
  64. package/dist/v2/infra/local/fs/index.js +8 -4
  65. package/dist/v2/infra/local/keyring/index.d.ts +5 -1
  66. package/dist/v2/infra/local/keyring/index.js +41 -32
  67. package/dist/v2/infra/local/pinned-workflow-store/index.d.ts +3 -1
  68. package/dist/v2/infra/local/pinned-workflow-store/index.js +50 -62
  69. package/dist/v2/infra/local/random-entropy/index.d.ts +4 -0
  70. package/dist/v2/infra/local/random-entropy/index.js +10 -0
  71. package/dist/v2/infra/local/session-lock/index.d.ts +3 -1
  72. package/dist/v2/infra/local/session-lock/index.js +4 -3
  73. package/dist/v2/infra/local/session-store/index.js +26 -4
  74. package/dist/v2/infra/local/snapshot-store/index.js +20 -25
  75. package/dist/v2/infra/local/time-clock/index.d.ts +5 -0
  76. package/dist/v2/infra/local/time-clock/index.js +12 -0
  77. package/dist/v2/infra/local/utf8/index.d.ts +5 -0
  78. package/dist/v2/infra/local/utf8/index.js +12 -0
  79. package/dist/v2/ports/base64url.port.d.ts +12 -0
  80. package/dist/v2/ports/base64url.port.js +2 -0
  81. package/dist/v2/ports/random-entropy.port.d.ts +3 -0
  82. package/dist/v2/ports/random-entropy.port.js +2 -0
  83. package/dist/v2/ports/time-clock.port.d.ts +4 -0
  84. package/dist/v2/ports/time-clock.port.js +2 -0
  85. package/dist/v2/ports/utf8.port.d.ts +3 -0
  86. package/dist/v2/ports/utf8.port.js +2 -0
  87. package/dist/v2/projections/node-outputs.js +28 -11
  88. package/dist/v2/projections/preferences.d.ts +1 -2
  89. package/dist/v2/projections/preferences.js +11 -4
  90. package/dist/v2/projections/run-dag.js +40 -28
  91. package/dist/v2/projections/run-status-signals.d.ts +1 -2
  92. package/dist/v2/usecases/execution-session-gate.js +33 -34
  93. package/package.json +3 -1
  94. package/spec/workflow.schema.json +2 -2
  95. package/workflows/coding-task-workflow-agentic.json +213 -50
  96. package/workflows/relocation-workflow-us.json +430 -0
  97. package/dist/v2/durable-core/tokens/base64url.d.ts +0 -7
  98. package/dist/v2/durable-core/tokens/base64url.js +0 -16
@@ -6,7 +6,7 @@ export type ExecutionSnapshotFileV1 = z.infer<typeof ExecutionSnapshotFileV1Sche
6
6
  declare const CompletedStepInstancesV1Schema: z.ZodEffects<z.ZodObject<{
7
7
  kind: z.ZodLiteral<"set">;
8
8
  values: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, StepInstanceKeyV1, string>, "many">;
9
- }, "strip", z.ZodTypeAny, {
9
+ }, "strict", z.ZodTypeAny, {
10
10
  values: StepInstanceKeyV1[];
11
11
  kind: "set";
12
12
  }, {
@@ -29,28 +29,28 @@ export declare const LoopFrameV1Schema: z.ZodObject<{
29
29
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
30
30
  iteration: z.ZodNumber;
31
31
  bodyIndex: z.ZodNumber;
32
- }, "strip", z.ZodTypeAny, {
33
- iteration: number;
32
+ }, "strict", z.ZodTypeAny, {
34
33
  loopId: string & {
35
34
  readonly __brand: "v2.DelimiterSafeIdV1";
36
35
  };
36
+ iteration: number;
37
37
  bodyIndex: number;
38
38
  }, {
39
- iteration: number;
40
39
  loopId: string;
40
+ iteration: number;
41
41
  bodyIndex: number;
42
42
  }>;
43
43
  export declare const LoopPathFrameV1Schema: z.ZodObject<{
44
44
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
45
45
  iteration: z.ZodNumber;
46
- }, "strip", z.ZodTypeAny, {
47
- iteration: number;
46
+ }, "strict", z.ZodTypeAny, {
48
47
  loopId: string & {
49
48
  readonly __brand: "v2.DelimiterSafeIdV1";
50
49
  };
51
- }, {
52
50
  iteration: number;
51
+ }, {
53
52
  loopId: string;
53
+ iteration: number;
54
54
  }>;
55
55
  export type PendingStepV1 = z.infer<typeof PendingStepV1Schema>;
56
56
  export declare const PendingStepV1Schema: z.ZodObject<{
@@ -58,35 +58,35 @@ export declare const PendingStepV1Schema: z.ZodObject<{
58
58
  loopPath: z.ZodArray<z.ZodObject<{
59
59
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
60
60
  iteration: z.ZodNumber;
61
- }, "strip", z.ZodTypeAny, {
62
- iteration: number;
61
+ }, "strict", z.ZodTypeAny, {
63
62
  loopId: string & {
64
63
  readonly __brand: "v2.DelimiterSafeIdV1";
65
64
  };
66
- }, {
67
65
  iteration: number;
66
+ }, {
68
67
  loopId: string;
68
+ iteration: number;
69
69
  }>, "many">;
70
- }, "strip", z.ZodTypeAny, {
70
+ }, "strict", z.ZodTypeAny, {
71
71
  stepId: string & {
72
72
  readonly __brand: "v2.DelimiterSafeIdV1";
73
73
  };
74
74
  loopPath: {
75
- iteration: number;
76
75
  loopId: string & {
77
76
  readonly __brand: "v2.DelimiterSafeIdV1";
78
77
  };
78
+ iteration: number;
79
79
  }[];
80
80
  }, {
81
81
  stepId: string;
82
82
  loopPath: {
83
- iteration: number;
84
83
  loopId: string;
84
+ iteration: number;
85
85
  }[];
86
86
  }>;
87
87
  export declare const PendingV1Schema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
88
88
  kind: z.ZodLiteral<"none">;
89
- }, "strip", z.ZodTypeAny, {
89
+ }, "strict", z.ZodTypeAny, {
90
90
  kind: "none";
91
91
  }, {
92
92
  kind: "none";
@@ -97,42 +97,42 @@ export declare const PendingV1Schema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
97
97
  loopPath: z.ZodArray<z.ZodObject<{
98
98
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
99
99
  iteration: z.ZodNumber;
100
- }, "strip", z.ZodTypeAny, {
101
- iteration: number;
100
+ }, "strict", z.ZodTypeAny, {
102
101
  loopId: string & {
103
102
  readonly __brand: "v2.DelimiterSafeIdV1";
104
103
  };
105
- }, {
106
104
  iteration: number;
105
+ }, {
107
106
  loopId: string;
107
+ iteration: number;
108
108
  }>, "many">;
109
- }, "strip", z.ZodTypeAny, {
109
+ }, "strict", z.ZodTypeAny, {
110
110
  stepId: string & {
111
111
  readonly __brand: "v2.DelimiterSafeIdV1";
112
112
  };
113
113
  loopPath: {
114
- iteration: number;
115
114
  loopId: string & {
116
115
  readonly __brand: "v2.DelimiterSafeIdV1";
117
116
  };
117
+ iteration: number;
118
118
  }[];
119
119
  }, {
120
120
  stepId: string;
121
121
  loopPath: {
122
- iteration: number;
123
122
  loopId: string;
123
+ iteration: number;
124
124
  }[];
125
125
  }>;
126
- }, "strip", z.ZodTypeAny, {
126
+ }, "strict", z.ZodTypeAny, {
127
127
  step: {
128
128
  stepId: string & {
129
129
  readonly __brand: "v2.DelimiterSafeIdV1";
130
130
  };
131
131
  loopPath: {
132
- iteration: number;
133
132
  loopId: string & {
134
133
  readonly __brand: "v2.DelimiterSafeIdV1";
135
134
  };
135
+ iteration: number;
136
136
  }[];
137
137
  };
138
138
  kind: "some";
@@ -140,8 +140,8 @@ export declare const PendingV1Schema: z.ZodDiscriminatedUnion<"kind", [z.ZodObje
140
140
  step: {
141
141
  stepId: string;
142
142
  loopPath: {
143
- iteration: number;
144
143
  loopId: string;
144
+ iteration: number;
145
145
  }[];
146
146
  };
147
147
  kind: "some";
@@ -150,7 +150,7 @@ export type PendingV1 = z.infer<typeof PendingV1Schema>;
150
150
  export type EngineStateV1 = z.infer<typeof EngineStateV1Schema>;
151
151
  export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
152
152
  kind: z.ZodLiteral<"init">;
153
- }, "strip", z.ZodTypeAny, {
153
+ }, "strict", z.ZodTypeAny, {
154
154
  kind: "init";
155
155
  }, {
156
156
  kind: "init";
@@ -159,7 +159,7 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
159
159
  completed: z.ZodEffects<z.ZodObject<{
160
160
  kind: z.ZodLiteral<"set">;
161
161
  values: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, StepInstanceKeyV1, string>, "many">;
162
- }, "strip", z.ZodTypeAny, {
162
+ }, "strict", z.ZodTypeAny, {
163
163
  values: StepInstanceKeyV1[];
164
164
  kind: "set";
165
165
  }, {
@@ -176,20 +176,20 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
176
176
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
177
177
  iteration: z.ZodNumber;
178
178
  bodyIndex: z.ZodNumber;
179
- }, "strip", z.ZodTypeAny, {
180
- iteration: number;
179
+ }, "strict", z.ZodTypeAny, {
181
180
  loopId: string & {
182
181
  readonly __brand: "v2.DelimiterSafeIdV1";
183
182
  };
183
+ iteration: number;
184
184
  bodyIndex: number;
185
185
  }, {
186
- iteration: number;
187
186
  loopId: string;
187
+ iteration: number;
188
188
  bodyIndex: number;
189
189
  }>, "many">;
190
190
  pending: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
191
191
  kind: z.ZodLiteral<"none">;
192
- }, "strip", z.ZodTypeAny, {
192
+ }, "strict", z.ZodTypeAny, {
193
193
  kind: "none";
194
194
  }, {
195
195
  kind: "none";
@@ -200,42 +200,42 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
200
200
  loopPath: z.ZodArray<z.ZodObject<{
201
201
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
202
202
  iteration: z.ZodNumber;
203
- }, "strip", z.ZodTypeAny, {
204
- iteration: number;
203
+ }, "strict", z.ZodTypeAny, {
205
204
  loopId: string & {
206
205
  readonly __brand: "v2.DelimiterSafeIdV1";
207
206
  };
208
- }, {
209
207
  iteration: number;
208
+ }, {
210
209
  loopId: string;
210
+ iteration: number;
211
211
  }>, "many">;
212
- }, "strip", z.ZodTypeAny, {
212
+ }, "strict", z.ZodTypeAny, {
213
213
  stepId: string & {
214
214
  readonly __brand: "v2.DelimiterSafeIdV1";
215
215
  };
216
216
  loopPath: {
217
- iteration: number;
218
217
  loopId: string & {
219
218
  readonly __brand: "v2.DelimiterSafeIdV1";
220
219
  };
220
+ iteration: number;
221
221
  }[];
222
222
  }, {
223
223
  stepId: string;
224
224
  loopPath: {
225
- iteration: number;
226
225
  loopId: string;
226
+ iteration: number;
227
227
  }[];
228
228
  }>;
229
- }, "strip", z.ZodTypeAny, {
229
+ }, "strict", z.ZodTypeAny, {
230
230
  step: {
231
231
  stepId: string & {
232
232
  readonly __brand: "v2.DelimiterSafeIdV1";
233
233
  };
234
234
  loopPath: {
235
- iteration: number;
236
235
  loopId: string & {
237
236
  readonly __brand: "v2.DelimiterSafeIdV1";
238
237
  };
238
+ iteration: number;
239
239
  }[];
240
240
  };
241
241
  kind: "some";
@@ -243,23 +243,23 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
243
243
  step: {
244
244
  stepId: string;
245
245
  loopPath: {
246
- iteration: number;
247
246
  loopId: string;
247
+ iteration: number;
248
248
  }[];
249
249
  };
250
250
  kind: "some";
251
251
  }>]>;
252
- }, "strip", z.ZodTypeAny, {
252
+ }, "strict", z.ZodTypeAny, {
253
253
  kind: "running";
254
254
  completed: {
255
255
  values: StepInstanceKeyV1[];
256
256
  kind: "set";
257
257
  };
258
258
  loopStack: {
259
- iteration: number;
260
259
  loopId: string & {
261
260
  readonly __brand: "v2.DelimiterSafeIdV1";
262
261
  };
262
+ iteration: number;
263
263
  bodyIndex: number;
264
264
  }[];
265
265
  pending: {
@@ -270,10 +270,10 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
270
270
  readonly __brand: "v2.DelimiterSafeIdV1";
271
271
  };
272
272
  loopPath: {
273
- iteration: number;
274
273
  loopId: string & {
275
274
  readonly __brand: "v2.DelimiterSafeIdV1";
276
275
  };
276
+ iteration: number;
277
277
  }[];
278
278
  };
279
279
  kind: "some";
@@ -285,8 +285,8 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
285
285
  kind: "set";
286
286
  };
287
287
  loopStack: {
288
- iteration: number;
289
288
  loopId: string;
289
+ iteration: number;
290
290
  bodyIndex: number;
291
291
  }[];
292
292
  pending: {
@@ -295,15 +295,15 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
295
295
  step: {
296
296
  stepId: string;
297
297
  loopPath: {
298
- iteration: number;
299
298
  loopId: string;
299
+ iteration: number;
300
300
  }[];
301
301
  };
302
302
  kind: "some";
303
303
  };
304
304
  }>, z.ZodObject<{
305
305
  kind: z.ZodLiteral<"complete">;
306
- }, "strip", z.ZodTypeAny, {
306
+ }, "strict", z.ZodTypeAny, {
307
307
  kind: "complete";
308
308
  }, {
309
309
  kind: "complete";
@@ -316,10 +316,10 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
316
316
  kind: "set";
317
317
  };
318
318
  loopStack: {
319
- iteration: number;
320
319
  loopId: string & {
321
320
  readonly __brand: "v2.DelimiterSafeIdV1";
322
321
  };
322
+ iteration: number;
323
323
  bodyIndex: number;
324
324
  }[];
325
325
  pending: {
@@ -330,10 +330,10 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
330
330
  readonly __brand: "v2.DelimiterSafeIdV1";
331
331
  };
332
332
  loopPath: {
333
- iteration: number;
334
333
  loopId: string & {
335
334
  readonly __brand: "v2.DelimiterSafeIdV1";
336
335
  };
336
+ iteration: number;
337
337
  }[];
338
338
  };
339
339
  kind: "some";
@@ -349,8 +349,8 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
349
349
  kind: "set";
350
350
  };
351
351
  loopStack: {
352
- iteration: number;
353
352
  loopId: string;
353
+ iteration: number;
354
354
  bodyIndex: number;
355
355
  }[];
356
356
  pending: {
@@ -359,8 +359,8 @@ export declare const EngineStateV1Schema: z.ZodEffects<z.ZodDiscriminatedUnion<"
359
359
  step: {
360
360
  stepId: string;
361
361
  loopPath: {
362
- iteration: number;
363
362
  loopId: string;
363
+ iteration: number;
364
364
  }[];
365
365
  };
366
366
  kind: "some";
@@ -373,7 +373,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
373
373
  v: z.ZodLiteral<1>;
374
374
  engineState: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
375
375
  kind: z.ZodLiteral<"init">;
376
- }, "strip", z.ZodTypeAny, {
376
+ }, "strict", z.ZodTypeAny, {
377
377
  kind: "init";
378
378
  }, {
379
379
  kind: "init";
@@ -382,7 +382,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
382
382
  completed: z.ZodEffects<z.ZodObject<{
383
383
  kind: z.ZodLiteral<"set">;
384
384
  values: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, StepInstanceKeyV1, string>, "many">;
385
- }, "strip", z.ZodTypeAny, {
385
+ }, "strict", z.ZodTypeAny, {
386
386
  values: StepInstanceKeyV1[];
387
387
  kind: "set";
388
388
  }, {
@@ -399,20 +399,20 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
399
399
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
400
400
  iteration: z.ZodNumber;
401
401
  bodyIndex: z.ZodNumber;
402
- }, "strip", z.ZodTypeAny, {
403
- iteration: number;
402
+ }, "strict", z.ZodTypeAny, {
404
403
  loopId: string & {
405
404
  readonly __brand: "v2.DelimiterSafeIdV1";
406
405
  };
406
+ iteration: number;
407
407
  bodyIndex: number;
408
408
  }, {
409
- iteration: number;
410
409
  loopId: string;
410
+ iteration: number;
411
411
  bodyIndex: number;
412
412
  }>, "many">;
413
413
  pending: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
414
414
  kind: z.ZodLiteral<"none">;
415
- }, "strip", z.ZodTypeAny, {
415
+ }, "strict", z.ZodTypeAny, {
416
416
  kind: "none";
417
417
  }, {
418
418
  kind: "none";
@@ -423,42 +423,42 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
423
423
  loopPath: z.ZodArray<z.ZodObject<{
424
424
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
425
425
  iteration: z.ZodNumber;
426
- }, "strip", z.ZodTypeAny, {
427
- iteration: number;
426
+ }, "strict", z.ZodTypeAny, {
428
427
  loopId: string & {
429
428
  readonly __brand: "v2.DelimiterSafeIdV1";
430
429
  };
431
- }, {
432
430
  iteration: number;
431
+ }, {
433
432
  loopId: string;
433
+ iteration: number;
434
434
  }>, "many">;
435
- }, "strip", z.ZodTypeAny, {
435
+ }, "strict", z.ZodTypeAny, {
436
436
  stepId: string & {
437
437
  readonly __brand: "v2.DelimiterSafeIdV1";
438
438
  };
439
439
  loopPath: {
440
- iteration: number;
441
440
  loopId: string & {
442
441
  readonly __brand: "v2.DelimiterSafeIdV1";
443
442
  };
443
+ iteration: number;
444
444
  }[];
445
445
  }, {
446
446
  stepId: string;
447
447
  loopPath: {
448
- iteration: number;
449
448
  loopId: string;
449
+ iteration: number;
450
450
  }[];
451
451
  }>;
452
- }, "strip", z.ZodTypeAny, {
452
+ }, "strict", z.ZodTypeAny, {
453
453
  step: {
454
454
  stepId: string & {
455
455
  readonly __brand: "v2.DelimiterSafeIdV1";
456
456
  };
457
457
  loopPath: {
458
- iteration: number;
459
458
  loopId: string & {
460
459
  readonly __brand: "v2.DelimiterSafeIdV1";
461
460
  };
461
+ iteration: number;
462
462
  }[];
463
463
  };
464
464
  kind: "some";
@@ -466,23 +466,23 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
466
466
  step: {
467
467
  stepId: string;
468
468
  loopPath: {
469
- iteration: number;
470
469
  loopId: string;
470
+ iteration: number;
471
471
  }[];
472
472
  };
473
473
  kind: "some";
474
474
  }>]>;
475
- }, "strip", z.ZodTypeAny, {
475
+ }, "strict", z.ZodTypeAny, {
476
476
  kind: "running";
477
477
  completed: {
478
478
  values: StepInstanceKeyV1[];
479
479
  kind: "set";
480
480
  };
481
481
  loopStack: {
482
- iteration: number;
483
482
  loopId: string & {
484
483
  readonly __brand: "v2.DelimiterSafeIdV1";
485
484
  };
485
+ iteration: number;
486
486
  bodyIndex: number;
487
487
  }[];
488
488
  pending: {
@@ -493,10 +493,10 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
493
493
  readonly __brand: "v2.DelimiterSafeIdV1";
494
494
  };
495
495
  loopPath: {
496
- iteration: number;
497
496
  loopId: string & {
498
497
  readonly __brand: "v2.DelimiterSafeIdV1";
499
498
  };
499
+ iteration: number;
500
500
  }[];
501
501
  };
502
502
  kind: "some";
@@ -508,8 +508,8 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
508
508
  kind: "set";
509
509
  };
510
510
  loopStack: {
511
- iteration: number;
512
511
  loopId: string;
512
+ iteration: number;
513
513
  bodyIndex: number;
514
514
  }[];
515
515
  pending: {
@@ -518,15 +518,15 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
518
518
  step: {
519
519
  stepId: string;
520
520
  loopPath: {
521
- iteration: number;
522
521
  loopId: string;
522
+ iteration: number;
523
523
  }[];
524
524
  };
525
525
  kind: "some";
526
526
  };
527
527
  }>, z.ZodObject<{
528
528
  kind: z.ZodLiteral<"complete">;
529
- }, "strip", z.ZodTypeAny, {
529
+ }, "strict", z.ZodTypeAny, {
530
530
  kind: "complete";
531
531
  }, {
532
532
  kind: "complete";
@@ -539,10 +539,10 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
539
539
  kind: "set";
540
540
  };
541
541
  loopStack: {
542
- iteration: number;
543
542
  loopId: string & {
544
543
  readonly __brand: "v2.DelimiterSafeIdV1";
545
544
  };
545
+ iteration: number;
546
546
  bodyIndex: number;
547
547
  }[];
548
548
  pending: {
@@ -553,10 +553,10 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
553
553
  readonly __brand: "v2.DelimiterSafeIdV1";
554
554
  };
555
555
  loopPath: {
556
- iteration: number;
557
556
  loopId: string & {
558
557
  readonly __brand: "v2.DelimiterSafeIdV1";
559
558
  };
559
+ iteration: number;
560
560
  }[];
561
561
  };
562
562
  kind: "some";
@@ -572,8 +572,8 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
572
572
  kind: "set";
573
573
  };
574
574
  loopStack: {
575
- iteration: number;
576
575
  loopId: string;
576
+ iteration: number;
577
577
  bodyIndex: number;
578
578
  }[];
579
579
  pending: {
@@ -582,8 +582,8 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
582
582
  step: {
583
583
  stepId: string;
584
584
  loopPath: {
585
- iteration: number;
586
585
  loopId: string;
586
+ iteration: number;
587
587
  }[];
588
588
  };
589
589
  kind: "some";
@@ -591,7 +591,7 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
591
591
  } | {
592
592
  kind: "complete";
593
593
  }>;
594
- }, "strip", z.ZodTypeAny, {
594
+ }, "strict", z.ZodTypeAny, {
595
595
  v: 1;
596
596
  engineState: {
597
597
  kind: "init";
@@ -602,10 +602,10 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
602
602
  kind: "set";
603
603
  };
604
604
  loopStack: {
605
- iteration: number;
606
605
  loopId: string & {
607
606
  readonly __brand: "v2.DelimiterSafeIdV1";
608
607
  };
608
+ iteration: number;
609
609
  bodyIndex: number;
610
610
  }[];
611
611
  pending: {
@@ -616,10 +616,10 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
616
616
  readonly __brand: "v2.DelimiterSafeIdV1";
617
617
  };
618
618
  loopPath: {
619
- iteration: number;
620
619
  loopId: string & {
621
620
  readonly __brand: "v2.DelimiterSafeIdV1";
622
621
  };
622
+ iteration: number;
623
623
  }[];
624
624
  };
625
625
  kind: "some";
@@ -638,8 +638,8 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
638
638
  kind: "set";
639
639
  };
640
640
  loopStack: {
641
- iteration: number;
642
641
  loopId: string;
642
+ iteration: number;
643
643
  bodyIndex: number;
644
644
  }[];
645
645
  pending: {
@@ -648,8 +648,8 @@ export declare const EnginePayloadV1Schema: z.ZodObject<{
648
648
  step: {
649
649
  stepId: string;
650
650
  loopPath: {
651
- iteration: number;
652
651
  loopId: string;
652
+ iteration: number;
653
653
  }[];
654
654
  };
655
655
  kind: "some";
@@ -665,7 +665,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
665
665
  v: z.ZodLiteral<1>;
666
666
  engineState: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
667
667
  kind: z.ZodLiteral<"init">;
668
- }, "strip", z.ZodTypeAny, {
668
+ }, "strict", z.ZodTypeAny, {
669
669
  kind: "init";
670
670
  }, {
671
671
  kind: "init";
@@ -674,7 +674,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
674
674
  completed: z.ZodEffects<z.ZodObject<{
675
675
  kind: z.ZodLiteral<"set">;
676
676
  values: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, StepInstanceKeyV1, string>, "many">;
677
- }, "strip", z.ZodTypeAny, {
677
+ }, "strict", z.ZodTypeAny, {
678
678
  values: StepInstanceKeyV1[];
679
679
  kind: "set";
680
680
  }, {
@@ -691,20 +691,20 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
691
691
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
692
692
  iteration: z.ZodNumber;
693
693
  bodyIndex: z.ZodNumber;
694
- }, "strip", z.ZodTypeAny, {
695
- iteration: number;
694
+ }, "strict", z.ZodTypeAny, {
696
695
  loopId: string & {
697
696
  readonly __brand: "v2.DelimiterSafeIdV1";
698
697
  };
698
+ iteration: number;
699
699
  bodyIndex: number;
700
700
  }, {
701
- iteration: number;
702
701
  loopId: string;
702
+ iteration: number;
703
703
  bodyIndex: number;
704
704
  }>, "many">;
705
705
  pending: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
706
706
  kind: z.ZodLiteral<"none">;
707
- }, "strip", z.ZodTypeAny, {
707
+ }, "strict", z.ZodTypeAny, {
708
708
  kind: "none";
709
709
  }, {
710
710
  kind: "none";
@@ -715,42 +715,42 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
715
715
  loopPath: z.ZodArray<z.ZodObject<{
716
716
  loopId: z.ZodEffects<z.ZodString, DelimiterSafeIdV1, string>;
717
717
  iteration: z.ZodNumber;
718
- }, "strip", z.ZodTypeAny, {
719
- iteration: number;
718
+ }, "strict", z.ZodTypeAny, {
720
719
  loopId: string & {
721
720
  readonly __brand: "v2.DelimiterSafeIdV1";
722
721
  };
723
- }, {
724
722
  iteration: number;
723
+ }, {
725
724
  loopId: string;
725
+ iteration: number;
726
726
  }>, "many">;
727
- }, "strip", z.ZodTypeAny, {
727
+ }, "strict", z.ZodTypeAny, {
728
728
  stepId: string & {
729
729
  readonly __brand: "v2.DelimiterSafeIdV1";
730
730
  };
731
731
  loopPath: {
732
- iteration: number;
733
732
  loopId: string & {
734
733
  readonly __brand: "v2.DelimiterSafeIdV1";
735
734
  };
735
+ iteration: number;
736
736
  }[];
737
737
  }, {
738
738
  stepId: string;
739
739
  loopPath: {
740
- iteration: number;
741
740
  loopId: string;
741
+ iteration: number;
742
742
  }[];
743
743
  }>;
744
- }, "strip", z.ZodTypeAny, {
744
+ }, "strict", z.ZodTypeAny, {
745
745
  step: {
746
746
  stepId: string & {
747
747
  readonly __brand: "v2.DelimiterSafeIdV1";
748
748
  };
749
749
  loopPath: {
750
- iteration: number;
751
750
  loopId: string & {
752
751
  readonly __brand: "v2.DelimiterSafeIdV1";
753
752
  };
753
+ iteration: number;
754
754
  }[];
755
755
  };
756
756
  kind: "some";
@@ -758,23 +758,23 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
758
758
  step: {
759
759
  stepId: string;
760
760
  loopPath: {
761
- iteration: number;
762
761
  loopId: string;
762
+ iteration: number;
763
763
  }[];
764
764
  };
765
765
  kind: "some";
766
766
  }>]>;
767
- }, "strip", z.ZodTypeAny, {
767
+ }, "strict", z.ZodTypeAny, {
768
768
  kind: "running";
769
769
  completed: {
770
770
  values: StepInstanceKeyV1[];
771
771
  kind: "set";
772
772
  };
773
773
  loopStack: {
774
- iteration: number;
775
774
  loopId: string & {
776
775
  readonly __brand: "v2.DelimiterSafeIdV1";
777
776
  };
777
+ iteration: number;
778
778
  bodyIndex: number;
779
779
  }[];
780
780
  pending: {
@@ -785,10 +785,10 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
785
785
  readonly __brand: "v2.DelimiterSafeIdV1";
786
786
  };
787
787
  loopPath: {
788
- iteration: number;
789
788
  loopId: string & {
790
789
  readonly __brand: "v2.DelimiterSafeIdV1";
791
790
  };
791
+ iteration: number;
792
792
  }[];
793
793
  };
794
794
  kind: "some";
@@ -800,8 +800,8 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
800
800
  kind: "set";
801
801
  };
802
802
  loopStack: {
803
- iteration: number;
804
803
  loopId: string;
804
+ iteration: number;
805
805
  bodyIndex: number;
806
806
  }[];
807
807
  pending: {
@@ -810,15 +810,15 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
810
810
  step: {
811
811
  stepId: string;
812
812
  loopPath: {
813
- iteration: number;
814
813
  loopId: string;
814
+ iteration: number;
815
815
  }[];
816
816
  };
817
817
  kind: "some";
818
818
  };
819
819
  }>, z.ZodObject<{
820
820
  kind: z.ZodLiteral<"complete">;
821
- }, "strip", z.ZodTypeAny, {
821
+ }, "strict", z.ZodTypeAny, {
822
822
  kind: "complete";
823
823
  }, {
824
824
  kind: "complete";
@@ -831,10 +831,10 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
831
831
  kind: "set";
832
832
  };
833
833
  loopStack: {
834
- iteration: number;
835
834
  loopId: string & {
836
835
  readonly __brand: "v2.DelimiterSafeIdV1";
837
836
  };
837
+ iteration: number;
838
838
  bodyIndex: number;
839
839
  }[];
840
840
  pending: {
@@ -845,10 +845,10 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
845
845
  readonly __brand: "v2.DelimiterSafeIdV1";
846
846
  };
847
847
  loopPath: {
848
- iteration: number;
849
848
  loopId: string & {
850
849
  readonly __brand: "v2.DelimiterSafeIdV1";
851
850
  };
851
+ iteration: number;
852
852
  }[];
853
853
  };
854
854
  kind: "some";
@@ -864,8 +864,8 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
864
864
  kind: "set";
865
865
  };
866
866
  loopStack: {
867
- iteration: number;
868
867
  loopId: string;
868
+ iteration: number;
869
869
  bodyIndex: number;
870
870
  }[];
871
871
  pending: {
@@ -874,8 +874,8 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
874
874
  step: {
875
875
  stepId: string;
876
876
  loopPath: {
877
- iteration: number;
878
877
  loopId: string;
878
+ iteration: number;
879
879
  }[];
880
880
  };
881
881
  kind: "some";
@@ -883,7 +883,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
883
883
  } | {
884
884
  kind: "complete";
885
885
  }>;
886
- }, "strip", z.ZodTypeAny, {
886
+ }, "strict", z.ZodTypeAny, {
887
887
  v: 1;
888
888
  engineState: {
889
889
  kind: "init";
@@ -894,10 +894,10 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
894
894
  kind: "set";
895
895
  };
896
896
  loopStack: {
897
- iteration: number;
898
897
  loopId: string & {
899
898
  readonly __brand: "v2.DelimiterSafeIdV1";
900
899
  };
900
+ iteration: number;
901
901
  bodyIndex: number;
902
902
  }[];
903
903
  pending: {
@@ -908,10 +908,10 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
908
908
  readonly __brand: "v2.DelimiterSafeIdV1";
909
909
  };
910
910
  loopPath: {
911
- iteration: number;
912
911
  loopId: string & {
913
912
  readonly __brand: "v2.DelimiterSafeIdV1";
914
913
  };
914
+ iteration: number;
915
915
  }[];
916
916
  };
917
917
  kind: "some";
@@ -930,8 +930,8 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
930
930
  kind: "set";
931
931
  };
932
932
  loopStack: {
933
- iteration: number;
934
933
  loopId: string;
934
+ iteration: number;
935
935
  bodyIndex: number;
936
936
  }[];
937
937
  pending: {
@@ -940,8 +940,8 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
940
940
  step: {
941
941
  stepId: string;
942
942
  loopPath: {
943
- iteration: number;
944
943
  loopId: string;
944
+ iteration: number;
945
945
  }[];
946
946
  };
947
947
  kind: "some";
@@ -950,7 +950,7 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
950
950
  kind: "complete";
951
951
  };
952
952
  }>;
953
- }, "strip", z.ZodTypeAny, {
953
+ }, "strict", z.ZodTypeAny, {
954
954
  kind: "execution_snapshot";
955
955
  v: 1;
956
956
  enginePayload: {
@@ -964,10 +964,10 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
964
964
  kind: "set";
965
965
  };
966
966
  loopStack: {
967
- iteration: number;
968
967
  loopId: string & {
969
968
  readonly __brand: "v2.DelimiterSafeIdV1";
970
969
  };
970
+ iteration: number;
971
971
  bodyIndex: number;
972
972
  }[];
973
973
  pending: {
@@ -978,10 +978,10 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
978
978
  readonly __brand: "v2.DelimiterSafeIdV1";
979
979
  };
980
980
  loopPath: {
981
- iteration: number;
982
981
  loopId: string & {
983
982
  readonly __brand: "v2.DelimiterSafeIdV1";
984
983
  };
984
+ iteration: number;
985
985
  }[];
986
986
  };
987
987
  kind: "some";
@@ -1004,8 +1004,8 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
1004
1004
  kind: "set";
1005
1005
  };
1006
1006
  loopStack: {
1007
- iteration: number;
1008
1007
  loopId: string;
1008
+ iteration: number;
1009
1009
  bodyIndex: number;
1010
1010
  }[];
1011
1011
  pending: {
@@ -1014,8 +1014,8 @@ export declare const ExecutionSnapshotFileV1Schema: z.ZodObject<{
1014
1014
  step: {
1015
1015
  stepId: string;
1016
1016
  loopPath: {
1017
- iteration: number;
1018
1017
  loopId: string;
1018
+ iteration: number;
1019
1019
  }[];
1020
1020
  };
1021
1021
  kind: "some";