@exaudeus/workrail 1.5.1 → 1.5.2
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.
- package/dist/application/services/workflow-compiler.js +14 -2
- package/dist/infrastructure/session/HttpServer.js +7 -2
- package/dist/infrastructure/session/SessionManager.d.ts +12 -4
- package/dist/infrastructure/session/SessionManager.js +30 -15
- package/dist/manifest.json +74 -74
- package/dist/mcp/error-mapper.d.ts +1 -1
- package/dist/mcp/error-mapper.js +12 -8
- package/dist/mcp/handler-factory.js +8 -1
- package/dist/mcp/handlers/session.js +36 -58
- package/dist/mcp/handlers/v2-advance-core/index.js +27 -8
- package/dist/mcp/handlers/v2-checkpoint.js +6 -10
- package/dist/mcp/handlers/v2-error-mapping.d.ts +3 -3
- package/dist/mcp/handlers/v2-error-mapping.js +31 -27
- package/dist/mcp/handlers/v2-execution/continue-advance.js +3 -6
- package/dist/mcp/handlers/v2-execution/continue-rehydrate.js +0 -1
- package/dist/mcp/handlers/v2-execution/index.d.ts +9 -1
- package/dist/mcp/handlers/v2-execution/index.js +8 -19
- package/dist/mcp/handlers/v2-execution/replay.js +2 -4
- package/dist/mcp/handlers/v2-execution/start.d.ts +2 -2
- package/dist/mcp/handlers/v2-execution/start.js +0 -19
- package/dist/mcp/handlers/v2-execution-helpers.d.ts +3 -2
- package/dist/mcp/handlers/v2-execution-helpers.js +34 -59
- package/dist/mcp/handlers/v2-workflow.js +13 -18
- package/dist/mcp/output-schemas.d.ts +197 -34
- package/dist/mcp/output-schemas.js +12 -5
- package/dist/mcp/tool-descriptions.js +22 -16
- package/dist/mcp/types.d.ts +10 -0
- package/dist/mcp/types.js +10 -0
- package/dist/mcp/v2/tools.d.ts +45 -7
- package/dist/mcp/v2/tools.js +7 -3
- package/dist/types/workflow-definition.d.ts +3 -2
- package/dist/v2/durable-core/canonical/jcs.js +8 -1
- package/dist/v2/durable-core/domain/ack-advance-append-plan.d.ts +1 -10
- package/dist/v2/durable-core/domain/ack-advance-append-plan.js +8 -28
- package/dist/v2/durable-core/domain/blocked-node-builder.js +1 -1
- package/dist/v2/durable-core/schemas/artifacts/loop-control.d.ts +6 -6
- package/dist/v2/durable-core/schemas/execution-snapshot/blocked-snapshot.d.ts +4 -4
- package/dist/v2/durable-core/schemas/execution-snapshot/execution-snapshot.v1.d.ts +116 -116
- package/dist/v2/durable-core/schemas/export-bundle/index.d.ts +184 -184
- package/dist/v2/durable-core/schemas/session/dag-topology.d.ts +2 -2
- package/dist/v2/durable-core/schemas/session/events.d.ts +20 -20
- package/package.json +1 -1
- package/workflows/coding-task-workflow-agentic.json +0 -9
- package/workflows/workflow-for-workflows.json +18 -5
|
@@ -160,17 +160,17 @@ export declare const V2WorkflowListItemSchema: z.ZodObject<{
|
|
|
160
160
|
kind: z.ZodLiteral<"workflow">;
|
|
161
161
|
workflowHash: z.ZodNullable<z.ZodString>;
|
|
162
162
|
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
kind: "workflow";
|
|
163
164
|
name: string;
|
|
164
165
|
description: string;
|
|
165
166
|
version: string;
|
|
166
|
-
kind: "workflow";
|
|
167
167
|
workflowId: string;
|
|
168
168
|
workflowHash: string | null;
|
|
169
169
|
}, {
|
|
170
|
+
kind: "workflow";
|
|
170
171
|
name: string;
|
|
171
172
|
description: string;
|
|
172
173
|
version: string;
|
|
173
|
-
kind: "workflow";
|
|
174
174
|
workflowId: string;
|
|
175
175
|
workflowHash: string | null;
|
|
176
176
|
}>;
|
|
@@ -183,35 +183,35 @@ export declare const V2WorkflowListOutputSchema: z.ZodObject<{
|
|
|
183
183
|
kind: z.ZodLiteral<"workflow">;
|
|
184
184
|
workflowHash: z.ZodNullable<z.ZodString>;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
kind: "workflow";
|
|
186
187
|
name: string;
|
|
187
188
|
description: string;
|
|
188
189
|
version: string;
|
|
189
|
-
kind: "workflow";
|
|
190
190
|
workflowId: string;
|
|
191
191
|
workflowHash: string | null;
|
|
192
192
|
}, {
|
|
193
|
+
kind: "workflow";
|
|
193
194
|
name: string;
|
|
194
195
|
description: string;
|
|
195
196
|
version: string;
|
|
196
|
-
kind: "workflow";
|
|
197
197
|
workflowId: string;
|
|
198
198
|
workflowHash: string | null;
|
|
199
199
|
}>, "many">;
|
|
200
200
|
}, "strip", z.ZodTypeAny, {
|
|
201
201
|
workflows: {
|
|
202
|
+
kind: "workflow";
|
|
202
203
|
name: string;
|
|
203
204
|
description: string;
|
|
204
205
|
version: string;
|
|
205
|
-
kind: "workflow";
|
|
206
206
|
workflowId: string;
|
|
207
207
|
workflowHash: string | null;
|
|
208
208
|
}[];
|
|
209
209
|
}, {
|
|
210
210
|
workflows: {
|
|
211
|
+
kind: "workflow";
|
|
211
212
|
name: string;
|
|
212
213
|
description: string;
|
|
213
214
|
version: string;
|
|
214
|
-
kind: "workflow";
|
|
215
215
|
workflowId: string;
|
|
216
216
|
workflowHash: string | null;
|
|
217
217
|
}[];
|
|
@@ -249,16 +249,16 @@ export declare const V2PreferencesSchema: z.ZodObject<{
|
|
|
249
249
|
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
250
250
|
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
251
251
|
}, "strip", z.ZodTypeAny, {
|
|
252
|
-
autonomy: "guided" | "
|
|
252
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
253
253
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
254
254
|
}, {
|
|
255
|
-
autonomy: "guided" | "
|
|
255
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
256
256
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
257
257
|
}>;
|
|
258
258
|
export declare const V2NextIntentSchema: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
259
259
|
export declare const V2NextCallSchema: z.ZodNullable<z.ZodObject<{
|
|
260
260
|
tool: z.ZodLiteral<"continue_workflow">;
|
|
261
|
-
params: z.ZodObject<{
|
|
261
|
+
params: z.ZodDiscriminatedUnion<"intent", [z.ZodObject<{
|
|
262
262
|
intent: z.ZodLiteral<"advance">;
|
|
263
263
|
stateToken: z.ZodString;
|
|
264
264
|
ackToken: z.ZodString;
|
|
@@ -270,12 +270,24 @@ export declare const V2NextCallSchema: z.ZodNullable<z.ZodObject<{
|
|
|
270
270
|
intent: "advance";
|
|
271
271
|
stateToken: string;
|
|
272
272
|
ackToken: string;
|
|
273
|
-
}
|
|
273
|
+
}>, z.ZodObject<{
|
|
274
|
+
intent: z.ZodLiteral<"rehydrate">;
|
|
275
|
+
stateToken: z.ZodString;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
intent: "rehydrate";
|
|
278
|
+
stateToken: string;
|
|
279
|
+
}, {
|
|
280
|
+
intent: "rehydrate";
|
|
281
|
+
stateToken: string;
|
|
282
|
+
}>]>;
|
|
274
283
|
}, "strip", z.ZodTypeAny, {
|
|
275
284
|
params: {
|
|
276
285
|
intent: "advance";
|
|
277
286
|
stateToken: string;
|
|
278
287
|
ackToken: string;
|
|
288
|
+
} | {
|
|
289
|
+
intent: "rehydrate";
|
|
290
|
+
stateToken: string;
|
|
279
291
|
};
|
|
280
292
|
tool: "continue_workflow";
|
|
281
293
|
}, {
|
|
@@ -283,6 +295,9 @@ export declare const V2NextCallSchema: z.ZodNullable<z.ZodObject<{
|
|
|
283
295
|
intent: "advance";
|
|
284
296
|
stateToken: string;
|
|
285
297
|
ackToken: string;
|
|
298
|
+
} | {
|
|
299
|
+
intent: "rehydrate";
|
|
300
|
+
stateToken: string;
|
|
286
301
|
};
|
|
287
302
|
tool: "continue_workflow";
|
|
288
303
|
}>>;
|
|
@@ -481,16 +496,16 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
481
496
|
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
482
497
|
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
483
498
|
}, "strip", z.ZodTypeAny, {
|
|
484
|
-
autonomy: "guided" | "
|
|
499
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
485
500
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
486
501
|
}, {
|
|
487
|
-
autonomy: "guided" | "
|
|
502
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
488
503
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
489
504
|
}>;
|
|
490
505
|
nextIntent: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
491
506
|
nextCall: z.ZodNullable<z.ZodObject<{
|
|
492
507
|
tool: z.ZodLiteral<"continue_workflow">;
|
|
493
|
-
params: z.ZodObject<{
|
|
508
|
+
params: z.ZodDiscriminatedUnion<"intent", [z.ZodObject<{
|
|
494
509
|
intent: z.ZodLiteral<"advance">;
|
|
495
510
|
stateToken: z.ZodString;
|
|
496
511
|
ackToken: z.ZodString;
|
|
@@ -502,12 +517,24 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
502
517
|
intent: "advance";
|
|
503
518
|
stateToken: string;
|
|
504
519
|
ackToken: string;
|
|
505
|
-
}
|
|
520
|
+
}>, z.ZodObject<{
|
|
521
|
+
intent: z.ZodLiteral<"rehydrate">;
|
|
522
|
+
stateToken: z.ZodString;
|
|
523
|
+
}, "strip", z.ZodTypeAny, {
|
|
524
|
+
intent: "rehydrate";
|
|
525
|
+
stateToken: string;
|
|
526
|
+
}, {
|
|
527
|
+
intent: "rehydrate";
|
|
528
|
+
stateToken: string;
|
|
529
|
+
}>]>;
|
|
506
530
|
}, "strip", z.ZodTypeAny, {
|
|
507
531
|
params: {
|
|
508
532
|
intent: "advance";
|
|
509
533
|
stateToken: string;
|
|
510
534
|
ackToken: string;
|
|
535
|
+
} | {
|
|
536
|
+
intent: "rehydrate";
|
|
537
|
+
stateToken: string;
|
|
511
538
|
};
|
|
512
539
|
tool: "continue_workflow";
|
|
513
540
|
}, {
|
|
@@ -515,6 +542,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
515
542
|
intent: "advance";
|
|
516
543
|
stateToken: string;
|
|
517
544
|
ackToken: string;
|
|
545
|
+
} | {
|
|
546
|
+
intent: "rehydrate";
|
|
547
|
+
stateToken: string;
|
|
518
548
|
};
|
|
519
549
|
tool: "continue_workflow";
|
|
520
550
|
}>>;
|
|
@@ -528,7 +558,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
528
558
|
isComplete: boolean;
|
|
529
559
|
stateToken: string;
|
|
530
560
|
preferences: {
|
|
531
|
-
autonomy: "guided" | "
|
|
561
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
532
562
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
533
563
|
};
|
|
534
564
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -537,6 +567,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
537
567
|
intent: "advance";
|
|
538
568
|
stateToken: string;
|
|
539
569
|
ackToken: string;
|
|
570
|
+
} | {
|
|
571
|
+
intent: "rehydrate";
|
|
572
|
+
stateToken: string;
|
|
540
573
|
};
|
|
541
574
|
tool: "continue_workflow";
|
|
542
575
|
} | null;
|
|
@@ -552,7 +585,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
552
585
|
isComplete: boolean;
|
|
553
586
|
stateToken: string;
|
|
554
587
|
preferences: {
|
|
555
|
-
autonomy: "guided" | "
|
|
588
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
556
589
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
557
590
|
};
|
|
558
591
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -561,6 +594,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
561
594
|
intent: "advance";
|
|
562
595
|
stateToken: string;
|
|
563
596
|
ackToken: string;
|
|
597
|
+
} | {
|
|
598
|
+
intent: "rehydrate";
|
|
599
|
+
stateToken: string;
|
|
564
600
|
};
|
|
565
601
|
tool: "continue_workflow";
|
|
566
602
|
} | null;
|
|
@@ -589,16 +625,16 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
589
625
|
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
590
626
|
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
591
627
|
}, "strip", z.ZodTypeAny, {
|
|
592
|
-
autonomy: "guided" | "
|
|
628
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
593
629
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
594
630
|
}, {
|
|
595
|
-
autonomy: "guided" | "
|
|
631
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
596
632
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
597
633
|
}>;
|
|
598
634
|
nextIntent: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
599
635
|
nextCall: z.ZodNullable<z.ZodObject<{
|
|
600
636
|
tool: z.ZodLiteral<"continue_workflow">;
|
|
601
|
-
params: z.ZodObject<{
|
|
637
|
+
params: z.ZodDiscriminatedUnion<"intent", [z.ZodObject<{
|
|
602
638
|
intent: z.ZodLiteral<"advance">;
|
|
603
639
|
stateToken: z.ZodString;
|
|
604
640
|
ackToken: z.ZodString;
|
|
@@ -610,12 +646,24 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
610
646
|
intent: "advance";
|
|
611
647
|
stateToken: string;
|
|
612
648
|
ackToken: string;
|
|
613
|
-
}
|
|
649
|
+
}>, z.ZodObject<{
|
|
650
|
+
intent: z.ZodLiteral<"rehydrate">;
|
|
651
|
+
stateToken: z.ZodString;
|
|
652
|
+
}, "strip", z.ZodTypeAny, {
|
|
653
|
+
intent: "rehydrate";
|
|
654
|
+
stateToken: string;
|
|
655
|
+
}, {
|
|
656
|
+
intent: "rehydrate";
|
|
657
|
+
stateToken: string;
|
|
658
|
+
}>]>;
|
|
614
659
|
}, "strip", z.ZodTypeAny, {
|
|
615
660
|
params: {
|
|
616
661
|
intent: "advance";
|
|
617
662
|
stateToken: string;
|
|
618
663
|
ackToken: string;
|
|
664
|
+
} | {
|
|
665
|
+
intent: "rehydrate";
|
|
666
|
+
stateToken: string;
|
|
619
667
|
};
|
|
620
668
|
tool: "continue_workflow";
|
|
621
669
|
}, {
|
|
@@ -623,6 +671,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
623
671
|
intent: "advance";
|
|
624
672
|
stateToken: string;
|
|
625
673
|
ackToken: string;
|
|
674
|
+
} | {
|
|
675
|
+
intent: "rehydrate";
|
|
676
|
+
stateToken: string;
|
|
626
677
|
};
|
|
627
678
|
tool: "continue_workflow";
|
|
628
679
|
}>>;
|
|
@@ -842,7 +893,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
842
893
|
isComplete: boolean;
|
|
843
894
|
stateToken: string;
|
|
844
895
|
preferences: {
|
|
845
|
-
autonomy: "guided" | "
|
|
896
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
846
897
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
847
898
|
};
|
|
848
899
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -851,6 +902,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
851
902
|
intent: "advance";
|
|
852
903
|
stateToken: string;
|
|
853
904
|
ackToken: string;
|
|
905
|
+
} | {
|
|
906
|
+
intent: "rehydrate";
|
|
907
|
+
stateToken: string;
|
|
854
908
|
};
|
|
855
909
|
tool: "continue_workflow";
|
|
856
910
|
} | null;
|
|
@@ -894,7 +948,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
894
948
|
isComplete: boolean;
|
|
895
949
|
stateToken: string;
|
|
896
950
|
preferences: {
|
|
897
|
-
autonomy: "guided" | "
|
|
951
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
898
952
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
899
953
|
};
|
|
900
954
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -903,6 +957,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
903
957
|
intent: "advance";
|
|
904
958
|
stateToken: string;
|
|
905
959
|
ackToken: string;
|
|
960
|
+
} | {
|
|
961
|
+
intent: "rehydrate";
|
|
962
|
+
stateToken: string;
|
|
906
963
|
};
|
|
907
964
|
tool: "continue_workflow";
|
|
908
965
|
} | null;
|
|
@@ -924,7 +981,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
924
981
|
isComplete: boolean;
|
|
925
982
|
stateToken: string;
|
|
926
983
|
preferences: {
|
|
927
|
-
autonomy: "guided" | "
|
|
984
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
928
985
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
929
986
|
};
|
|
930
987
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -933,6 +990,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
933
990
|
intent: "advance";
|
|
934
991
|
stateToken: string;
|
|
935
992
|
ackToken: string;
|
|
993
|
+
} | {
|
|
994
|
+
intent: "rehydrate";
|
|
995
|
+
stateToken: string;
|
|
936
996
|
};
|
|
937
997
|
tool: "continue_workflow";
|
|
938
998
|
} | null;
|
|
@@ -970,7 +1030,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
970
1030
|
isComplete: boolean;
|
|
971
1031
|
stateToken: string;
|
|
972
1032
|
preferences: {
|
|
973
|
-
autonomy: "guided" | "
|
|
1033
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
974
1034
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
975
1035
|
};
|
|
976
1036
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -979,6 +1039,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
979
1039
|
intent: "advance";
|
|
980
1040
|
stateToken: string;
|
|
981
1041
|
ackToken: string;
|
|
1042
|
+
} | {
|
|
1043
|
+
intent: "rehydrate";
|
|
1044
|
+
stateToken: string;
|
|
982
1045
|
};
|
|
983
1046
|
tool: "continue_workflow";
|
|
984
1047
|
} | null;
|
|
@@ -1000,7 +1063,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
1000
1063
|
isComplete: boolean;
|
|
1001
1064
|
stateToken: string;
|
|
1002
1065
|
preferences: {
|
|
1003
|
-
autonomy: "guided" | "
|
|
1066
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1004
1067
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1005
1068
|
};
|
|
1006
1069
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -1009,6 +1072,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
1009
1072
|
intent: "advance";
|
|
1010
1073
|
stateToken: string;
|
|
1011
1074
|
ackToken: string;
|
|
1075
|
+
} | {
|
|
1076
|
+
intent: "rehydrate";
|
|
1077
|
+
stateToken: string;
|
|
1012
1078
|
};
|
|
1013
1079
|
tool: "continue_workflow";
|
|
1014
1080
|
} | null;
|
|
@@ -1046,7 +1112,7 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
1046
1112
|
isComplete: boolean;
|
|
1047
1113
|
stateToken: string;
|
|
1048
1114
|
preferences: {
|
|
1049
|
-
autonomy: "guided" | "
|
|
1115
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1050
1116
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1051
1117
|
};
|
|
1052
1118
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -1055,6 +1121,9 @@ export declare const V2ContinueWorkflowOutputSchema: z.ZodEffects<z.ZodDiscrimin
|
|
|
1055
1121
|
intent: "advance";
|
|
1056
1122
|
stateToken: string;
|
|
1057
1123
|
ackToken: string;
|
|
1124
|
+
} | {
|
|
1125
|
+
intent: "rehydrate";
|
|
1126
|
+
stateToken: string;
|
|
1058
1127
|
};
|
|
1059
1128
|
tool: "continue_workflow";
|
|
1060
1129
|
} | null;
|
|
@@ -1110,11 +1179,78 @@ export declare const V2ResumeSessionOutputSchema: z.ZodObject<{
|
|
|
1110
1179
|
export declare const V2CheckpointWorkflowOutputSchema: z.ZodObject<{
|
|
1111
1180
|
checkpointNodeId: z.ZodString;
|
|
1112
1181
|
stateToken: z.ZodString;
|
|
1182
|
+
nextCall: z.ZodNullable<z.ZodObject<{
|
|
1183
|
+
tool: z.ZodLiteral<"continue_workflow">;
|
|
1184
|
+
params: z.ZodDiscriminatedUnion<"intent", [z.ZodObject<{
|
|
1185
|
+
intent: z.ZodLiteral<"advance">;
|
|
1186
|
+
stateToken: z.ZodString;
|
|
1187
|
+
ackToken: z.ZodString;
|
|
1188
|
+
}, "strip", z.ZodTypeAny, {
|
|
1189
|
+
intent: "advance";
|
|
1190
|
+
stateToken: string;
|
|
1191
|
+
ackToken: string;
|
|
1192
|
+
}, {
|
|
1193
|
+
intent: "advance";
|
|
1194
|
+
stateToken: string;
|
|
1195
|
+
ackToken: string;
|
|
1196
|
+
}>, z.ZodObject<{
|
|
1197
|
+
intent: z.ZodLiteral<"rehydrate">;
|
|
1198
|
+
stateToken: z.ZodString;
|
|
1199
|
+
}, "strip", z.ZodTypeAny, {
|
|
1200
|
+
intent: "rehydrate";
|
|
1201
|
+
stateToken: string;
|
|
1202
|
+
}, {
|
|
1203
|
+
intent: "rehydrate";
|
|
1204
|
+
stateToken: string;
|
|
1205
|
+
}>]>;
|
|
1206
|
+
}, "strip", z.ZodTypeAny, {
|
|
1207
|
+
params: {
|
|
1208
|
+
intent: "advance";
|
|
1209
|
+
stateToken: string;
|
|
1210
|
+
ackToken: string;
|
|
1211
|
+
} | {
|
|
1212
|
+
intent: "rehydrate";
|
|
1213
|
+
stateToken: string;
|
|
1214
|
+
};
|
|
1215
|
+
tool: "continue_workflow";
|
|
1216
|
+
}, {
|
|
1217
|
+
params: {
|
|
1218
|
+
intent: "advance";
|
|
1219
|
+
stateToken: string;
|
|
1220
|
+
ackToken: string;
|
|
1221
|
+
} | {
|
|
1222
|
+
intent: "rehydrate";
|
|
1223
|
+
stateToken: string;
|
|
1224
|
+
};
|
|
1225
|
+
tool: "continue_workflow";
|
|
1226
|
+
}>>;
|
|
1113
1227
|
}, "strip", z.ZodTypeAny, {
|
|
1114
1228
|
stateToken: string;
|
|
1229
|
+
nextCall: {
|
|
1230
|
+
params: {
|
|
1231
|
+
intent: "advance";
|
|
1232
|
+
stateToken: string;
|
|
1233
|
+
ackToken: string;
|
|
1234
|
+
} | {
|
|
1235
|
+
intent: "rehydrate";
|
|
1236
|
+
stateToken: string;
|
|
1237
|
+
};
|
|
1238
|
+
tool: "continue_workflow";
|
|
1239
|
+
} | null;
|
|
1115
1240
|
checkpointNodeId: string;
|
|
1116
1241
|
}, {
|
|
1117
1242
|
stateToken: string;
|
|
1243
|
+
nextCall: {
|
|
1244
|
+
params: {
|
|
1245
|
+
intent: "advance";
|
|
1246
|
+
stateToken: string;
|
|
1247
|
+
ackToken: string;
|
|
1248
|
+
} | {
|
|
1249
|
+
intent: "rehydrate";
|
|
1250
|
+
stateToken: string;
|
|
1251
|
+
};
|
|
1252
|
+
tool: "continue_workflow";
|
|
1253
|
+
} | null;
|
|
1118
1254
|
checkpointNodeId: string;
|
|
1119
1255
|
}>;
|
|
1120
1256
|
export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -1139,16 +1275,16 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1139
1275
|
autonomy: z.ZodEnum<["guided", "full_auto_stop_on_user_deps", "full_auto_never_stop"]>;
|
|
1140
1276
|
riskPolicy: z.ZodEnum<["conservative", "balanced", "aggressive"]>;
|
|
1141
1277
|
}, "strip", z.ZodTypeAny, {
|
|
1142
|
-
autonomy: "guided" | "
|
|
1278
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1143
1279
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1144
1280
|
}, {
|
|
1145
|
-
autonomy: "guided" | "
|
|
1281
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1146
1282
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1147
1283
|
}>;
|
|
1148
1284
|
nextIntent: z.ZodEnum<["perform_pending_then_continue", "await_user_confirmation", "rehydrate_only", "complete"]>;
|
|
1149
1285
|
nextCall: z.ZodNullable<z.ZodObject<{
|
|
1150
1286
|
tool: z.ZodLiteral<"continue_workflow">;
|
|
1151
|
-
params: z.ZodObject<{
|
|
1287
|
+
params: z.ZodDiscriminatedUnion<"intent", [z.ZodObject<{
|
|
1152
1288
|
intent: z.ZodLiteral<"advance">;
|
|
1153
1289
|
stateToken: z.ZodString;
|
|
1154
1290
|
ackToken: z.ZodString;
|
|
@@ -1160,12 +1296,24 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1160
1296
|
intent: "advance";
|
|
1161
1297
|
stateToken: string;
|
|
1162
1298
|
ackToken: string;
|
|
1163
|
-
}
|
|
1299
|
+
}>, z.ZodObject<{
|
|
1300
|
+
intent: z.ZodLiteral<"rehydrate">;
|
|
1301
|
+
stateToken: z.ZodString;
|
|
1302
|
+
}, "strip", z.ZodTypeAny, {
|
|
1303
|
+
intent: "rehydrate";
|
|
1304
|
+
stateToken: string;
|
|
1305
|
+
}, {
|
|
1306
|
+
intent: "rehydrate";
|
|
1307
|
+
stateToken: string;
|
|
1308
|
+
}>]>;
|
|
1164
1309
|
}, "strip", z.ZodTypeAny, {
|
|
1165
1310
|
params: {
|
|
1166
1311
|
intent: "advance";
|
|
1167
1312
|
stateToken: string;
|
|
1168
1313
|
ackToken: string;
|
|
1314
|
+
} | {
|
|
1315
|
+
intent: "rehydrate";
|
|
1316
|
+
stateToken: string;
|
|
1169
1317
|
};
|
|
1170
1318
|
tool: "continue_workflow";
|
|
1171
1319
|
}, {
|
|
@@ -1173,6 +1321,9 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1173
1321
|
intent: "advance";
|
|
1174
1322
|
stateToken: string;
|
|
1175
1323
|
ackToken: string;
|
|
1324
|
+
} | {
|
|
1325
|
+
intent: "rehydrate";
|
|
1326
|
+
stateToken: string;
|
|
1176
1327
|
};
|
|
1177
1328
|
tool: "continue_workflow";
|
|
1178
1329
|
}>>;
|
|
@@ -1185,7 +1336,7 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1185
1336
|
isComplete: boolean;
|
|
1186
1337
|
stateToken: string;
|
|
1187
1338
|
preferences: {
|
|
1188
|
-
autonomy: "guided" | "
|
|
1339
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1189
1340
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1190
1341
|
};
|
|
1191
1342
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -1194,6 +1345,9 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1194
1345
|
intent: "advance";
|
|
1195
1346
|
stateToken: string;
|
|
1196
1347
|
ackToken: string;
|
|
1348
|
+
} | {
|
|
1349
|
+
intent: "rehydrate";
|
|
1350
|
+
stateToken: string;
|
|
1197
1351
|
};
|
|
1198
1352
|
tool: "continue_workflow";
|
|
1199
1353
|
} | null;
|
|
@@ -1208,7 +1362,7 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1208
1362
|
isComplete: boolean;
|
|
1209
1363
|
stateToken: string;
|
|
1210
1364
|
preferences: {
|
|
1211
|
-
autonomy: "guided" | "
|
|
1365
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1212
1366
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1213
1367
|
};
|
|
1214
1368
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -1217,6 +1371,9 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1217
1371
|
intent: "advance";
|
|
1218
1372
|
stateToken: string;
|
|
1219
1373
|
ackToken: string;
|
|
1374
|
+
} | {
|
|
1375
|
+
intent: "rehydrate";
|
|
1376
|
+
stateToken: string;
|
|
1220
1377
|
};
|
|
1221
1378
|
tool: "continue_workflow";
|
|
1222
1379
|
} | null;
|
|
@@ -1231,7 +1388,7 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1231
1388
|
isComplete: boolean;
|
|
1232
1389
|
stateToken: string;
|
|
1233
1390
|
preferences: {
|
|
1234
|
-
autonomy: "guided" | "
|
|
1391
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1235
1392
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1236
1393
|
};
|
|
1237
1394
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -1240,6 +1397,9 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1240
1397
|
intent: "advance";
|
|
1241
1398
|
stateToken: string;
|
|
1242
1399
|
ackToken: string;
|
|
1400
|
+
} | {
|
|
1401
|
+
intent: "rehydrate";
|
|
1402
|
+
stateToken: string;
|
|
1243
1403
|
};
|
|
1244
1404
|
tool: "continue_workflow";
|
|
1245
1405
|
} | null;
|
|
@@ -1254,7 +1414,7 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1254
1414
|
isComplete: boolean;
|
|
1255
1415
|
stateToken: string;
|
|
1256
1416
|
preferences: {
|
|
1257
|
-
autonomy: "guided" | "
|
|
1417
|
+
autonomy: "guided" | "full_auto_never_stop" | "full_auto_stop_on_user_deps";
|
|
1258
1418
|
riskPolicy: "conservative" | "balanced" | "aggressive";
|
|
1259
1419
|
};
|
|
1260
1420
|
nextIntent: "complete" | "perform_pending_then_continue" | "await_user_confirmation" | "rehydrate_only";
|
|
@@ -1263,6 +1423,9 @@ export declare const V2StartWorkflowOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1263
1423
|
intent: "advance";
|
|
1264
1424
|
stateToken: string;
|
|
1265
1425
|
ackToken: string;
|
|
1426
|
+
} | {
|
|
1427
|
+
intent: "rehydrate";
|
|
1428
|
+
stateToken: string;
|
|
1266
1429
|
};
|
|
1267
1430
|
tool: "continue_workflow";
|
|
1268
1431
|
} | null;
|
|
@@ -77,13 +77,18 @@ exports.V2NextIntentSchema = zod_1.z.enum([
|
|
|
77
77
|
'rehydrate_only',
|
|
78
78
|
'complete',
|
|
79
79
|
]);
|
|
80
|
+
const V2NextCallAdvanceParams = zod_1.z.object({
|
|
81
|
+
intent: zod_1.z.literal('advance'),
|
|
82
|
+
stateToken: zod_1.z.string().min(1),
|
|
83
|
+
ackToken: zod_1.z.string().min(1),
|
|
84
|
+
});
|
|
85
|
+
const V2NextCallRehydrateParams = zod_1.z.object({
|
|
86
|
+
intent: zod_1.z.literal('rehydrate'),
|
|
87
|
+
stateToken: zod_1.z.string().min(1),
|
|
88
|
+
});
|
|
80
89
|
exports.V2NextCallSchema = zod_1.z.object({
|
|
81
90
|
tool: zod_1.z.literal('continue_workflow'),
|
|
82
|
-
params: zod_1.z.
|
|
83
|
-
intent: zod_1.z.literal('advance'),
|
|
84
|
-
stateToken: zod_1.z.string().min(1),
|
|
85
|
-
ackToken: zod_1.z.string().min(1),
|
|
86
|
-
}),
|
|
91
|
+
params: zod_1.z.discriminatedUnion('intent', [V2NextCallAdvanceParams, V2NextCallRehydrateParams]),
|
|
87
92
|
}).nullable();
|
|
88
93
|
function utf8ByteLength(s) {
|
|
89
94
|
return new TextEncoder().encode(s).length;
|
|
@@ -223,6 +228,8 @@ exports.V2ResumeSessionOutputSchema = zod_1.z.object({
|
|
|
223
228
|
exports.V2CheckpointWorkflowOutputSchema = zod_1.z.object({
|
|
224
229
|
checkpointNodeId: zod_1.z.string().min(1),
|
|
225
230
|
stateToken: zod_1.z.string().regex(/^st1[023456789acdefghjklmnpqrstuvwxyz]+$/, 'Invalid stateToken format'),
|
|
231
|
+
nextCall: exports.V2NextCallSchema.describe('Pre-built template for your next continue_workflow call. ' +
|
|
232
|
+
'After checkpoint, use this to rehydrate and continue working on the current step.'),
|
|
226
233
|
});
|
|
227
234
|
exports.V2StartWorkflowOutputSchema = zod_1.z.object({
|
|
228
235
|
stateToken: zod_1.z.string().regex(/^st1[023456789acdefghjklmnpqrstuvwxyz]+$/, 'Invalid stateToken format'),
|