Commit 265e131
fix(bundler): pass explicit option values when delegating to workflow_add
`specify bundle install` can never install a workflow component. It fails
100% of the time with a nonsensical error about `--dev`.
The bundler delegates to the Typer command callables in-process:
lambda: workflow_add(component.id)
`workflow_add` declares two `typer.Option` parameters. Called from Python
rather than through Typer, those keep their `OptionInfo` sentinels as the
value — and the sentinel is truthy and is not None:
dev default -> OptionInfo truthy=True
from_url default -> OptionInfo is None=False
So `if dev:` takes the local-path branch for every catalog install:
Error: --dev source must be a workflow YAML file, supported archive, or
directory containing workflow.yml: code-review
BundlerError: Failed to install workflow 'code-review'.
`workflow_add` is the only one of the four delegated commands that declares
options; workflow_remove / workflow_step_add / workflow_step_remove take a
bare `typer.Argument` and are safe as written.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent c173bf1 commit 265e131
2 files changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
350 | 359 | | |
351 | 360 | | |
352 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
94 | 128 | | |
95 | 129 | | |
96 | 130 | | |
| |||
0 commit comments