fix: harden canonical output binding projection
This commit is contained in:
@@ -708,6 +708,9 @@ wf draft set-name <workspace_id> --revision <n> --name <name>
|
||||
wf draft set-route <workspace_id> --revision <n> --step <step_id> --outcome ok --to <target_step_or___end__>
|
||||
wf draft set-input <workspace_id> --revision <n> --step <step_id> --map input.text=text
|
||||
wf draft set-output <workspace_id> --revision <n> --step <step_id> --map text=state.text
|
||||
wf draft set-output <workspace_id> --revision <n> --step <step_id> --bindings-file output-bindings.json
|
||||
wf draft set-output <workspace_id> --revision <n> --step <step_id> --clear
|
||||
wf draft set-output <workspace_id> --revision <n> --step <step_id> --merge --map other=state.other
|
||||
wf draft set-workflow-output <workspace_id> --revision <n> --map state.value=result
|
||||
wf draft set-workflow-output <workspace_id> --revision <n> --merge --map state.other=other
|
||||
wf draft branch <workspace_id> --revision <n> --step <step_id> --route ok=__end__ --route error=tool_error
|
||||
@@ -715,6 +718,14 @@ wf draft handle <workspace_id> --revision <n> --to fail --branch lookup:error --
|
||||
wf draft compile <workspace_id>
|
||||
```
|
||||
|
||||
`set-output` replaces the step's complete ordered canonical binding list.
|
||||
Repeat `--map LOCAL_SOURCE=STATE_TARGET` to preserve order and fan one local
|
||||
source out to multiple state targets, or use `--bindings-file` with the exact
|
||||
JSON list exported by `draft inspect --include-draft`. `--clear` is the explicit
|
||||
empty replacement. The legacy `--merge --map` path is compatibility-only and
|
||||
potentially lossy because a map cannot preserve ordering or repeated-source
|
||||
fan-out.
|
||||
|
||||
Use `draft patch` when these focused commands do not cover the structural edit.
|
||||
|
||||
Drafts are not raw workflow plans. Drafts use `steps`, `routes`, and step field
|
||||
|
||||
Reference in New Issue
Block a user