You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- set-threshold: change an existing approval step's amount threshold. Use the step's "stepId" from the current workflow.
359
434
- set-approver: set the person on an existing approval step (by "stepId").
360
435
- remove-step: remove a step by "stepId".
436
+
- rename-step: change a step's title/label (by "stepId", set "label"). Use for "rename X to Y" / "call it Z".
437
+
- duplicate-step: copy an existing step (by "stepId", set "label" for the copy). Use for "duplicate X" / "add another like X".
438
+
- move-step: relocate an existing step to immediately AFTER another (by "stepId" + "afterStepId"). Use for "move X after Y" / "put X before the post".
361
439
- insert-approval-after: insert a new approval gate IMMEDIATELY AFTER one existing step (use "afterStepId"). Use this for "add a step between X and Y" or "after the manager, add …". Same label/approverTitle/amountOver/department fields as add-approval.
362
440
- add-parallel-after: a new approval gate that runs only once ALL of the given steps have been approved (use "afterStepIds": a list). Use this for "after the two reviews, require a final sign-off" / "a step that waits for both X and Y". Same label/approverTitle/amountOver/department fields.
363
441
- none: if the instruction doesn't map to any of the above, or asks for something already true — give a short "reason".
@@ -403,6 +481,9 @@ Return { "ops": [ ... ] } where each op is one of:
- set-approver { stepId, approverName }: set the person on a gate.
405
483
- remove-step { stepId }.
484
+
- rename-step { stepId, label }: change a step's title.
485
+
- duplicate-step { stepId, label }: copy an existing step.
486
+
- move-step { stepId, afterStepId }: relocate an existing step to after another.
406
487
- insert-approval-after { afterStepId, label, approverTitle, amountOver|null, department|null }: insert a gate immediately AFTER one step.
407
488
- add-parallel-after { afterStepIds: [..], label, approverTitle, amountOver|null, department|null }: a gate that runs once ALL the listed steps are approved (use for "after X and Y, a step that waits on both").
408
489
- none { reason }: only if NOTHING in the instruction maps to a supported edit.
0 commit comments