v0.1.2: Prompt to install missing dependencies
Features
agentic setup,agentic doctor, andinstall.shnow prompt to install missing dependencies- If
claudeCLI or optionalclauderis not found and stdin is a TTY, offer to run the install command with interactive y/N prompt - Non-interactive contexts (piped stdin, CI/sandbox) gracefully degrade to printing the install command for manual installation
install.shalso checks forcurlearly and recommends platform-specific install help if missing
- If
Implementation
- New
cmd/deps.go: sharedpromptInstall()helper for interactive y/N prompts with TTY detection install.shuses/dev/ttyto read prompts even when stdin is piped (crucial forcurl | shworkflows), with safe fallback for sandboxes/CI without controlling terminal- Promoted
github.com/mattn/go-isattyto direct dependency
Testing
All paths verified:
- Interactive prompts (user accepts/declines)
- Non-TTY stdin (piped from other commands, redirected from files)
- No controlling terminal (edge case in some CI/sandbox setups)