Skip to content

fix(cli): never prompt without a TTY; add non-interactive install mode - #201

Merged
danielvm-git merged 3 commits into
mainfrom
feat/cli-noninteractive
Nov 26, 2026
Merged

danielvm-git merged 3 commits into
mainfrom
feat/cli-noninteractive

Conversation

@danielvm-git

@danielvm-git danielvm-git commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes BUG-2026-11-03-cli-nontty-silent-noop: with no TTY (agents, CI, piped stdin), bigpowers setup and bigpowers update previously drew the first menu, installed nothing, and exited 0.

  • Adds non-interactive CLI flags (--yes, --tools=a,b, --scope=global|local, --uninstall, --help) via scripts/lib/cli-args.js.
  • Persists install state (~/.bigpowers/install-state.json) via scripts/lib/install-state.js so bigpowers update replays the previous install with zero prompts.
  • Refuses to prompt when stdin is not a TTY and --yes is absent, exiting 2 with actionable guidance.
  • Extracts install/uninstall runner helpers (scripts/lib/install-run.js, scripts/lib/install-uninstall.js).
  • Adds golden gate bigpowers-cli (scripts/test-bigpowers-cli.sh) and marks BUG-2026-11-03-cli-nontty-silent-noop fixed.

Verification

  • bash scripts/test-bigpowers-cli.sh (6/6 PASS)
  • bash scripts/test-bigpowers-cli-version.sh (3/3 PASS)
  • bash tests/test-agy-plugin-install.sh (6/6 PASS)
  • bash scripts/test-install-hub.sh (89/89 PASS)
  • bash scripts/verify-install.sh (104/104 PASS)
  • npm run compliance && bash scripts/trace-stories.sh --strict && bash scripts/golden-g13-script-orphans.sh (PASS)

danielvm-git added a commit that referenced this pull request Nov 6, 2026
The bug batch shipped through PRs #221-#227 and the trace-worktrees fix #203,
but the records stayed open; two omp defects (#119, #189) were fixed in code
without the record updated, and pi-scripts-provisioning was fixed by PR #117.
Record the evidence and regenerate the registry.

Remaining open: cli-nontty-silent-noop (parked #201),
dev-dependency-advisories (accepted: dev-only), story-verify-e58-eval-flake
(epic done, flake not reproduced).
@danielvm-git danielvm-git changed the title feat(cli): add non-interactive install mode (parked) fix(cli): never prompt without a TTY; add non-interactive install mode Nov 26, 2026
@danielvm-git
danielvm-git merged commit 710286b into main Nov 26, 2026
5 checks passed
@danielvm-git
danielvm-git deleted the feat/cli-noninteractive branch November 26, 2026 15:07
github-actions Bot pushed a commit that referenced this pull request Nov 26, 2026
## [2.96.4](v2.96.3...v2.96.4) (2026-11-26)

### Bug Fixes

* **cli:** never prompt without a TTY; add non-interactive install mode ([#201](#201)) ([710286b](710286b))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.96.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant