Commit d809f43
authored
Skip interactive setup wizard in non-TTY environments (#353)
* Skip interactive setup wizard in non-TTY environments
When the install script runs without a terminal (e.g. from Claude Code,
CI, or piped input), the interactive setup wizard hangs on TUI prompts.
Detect non-TTY and run `basecamp setup claude` non-interactively instead,
which installs the agent skill, Claude plugin, and marketplace registration
without prompts. Auth remains the only manual step.
Also adds BASECAMP_SKIP_SETUP=1 env var for explicit opt-out when a TTY
is present.
* Let stderr through from non-interactive setup claude
Remove 2>/dev/null so failures from 'basecamp setup claude' are visible
and diagnosable. Keep || true since the agent setup is best-effort — the
binary install already succeeded at this point.1 parent b0da27f commit d809f43
2 files changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
331 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
332 | 356 | | |
333 | 357 | | |
334 | 358 | | |
0 commit comments