Skip to content

fix(cli): gate crawl project-name prompt on stdin and stdout TTY (repo#1171) - #2263

Merged
nc9 merged 2 commits into
mainfrom
boat/tty-eligible-1171
Nov 22, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/tty-eligible-1171

Conversation

@nc9

@nc9 nc9 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Issue repo#1171. On current main, promptEligible() (apps/cli/src/cli/prompt.ts) already gates every prompt in audit.ts (confirmCloudSpend, project name, coverage, outage, preflight) on stdin+stdout TTY and --yes, and tests/prompt-eligible.test.ts covers both/stdin-only/stdout-only/neither/--yes. The one leftover stdout-only prompt was in crawl.ts (project-name prompt); this PR moves it to promptEligible().

Acceptance criteria evidence: helper shared (prompt.ts, 5 tests pass: bun test tests/prompt-eligible.test.ts); confirmCloudSpend and promptForProjectName gated via promptEligible (audit.ts:2404, 3025); crawl.ts now the same.

Gates in apps/cli: format:check, lint, typecheck pass. Full CLI suite not run (about 30 min, one-line change). No docs change. Agent skill: no change needed.

@nc9
nc9 marked this pull request as ready for review November 22, 2026 21:59
@nc9
nc9 merged commit 1e17944 into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the boat/tty-eligible-1171 branch November 22, 2026 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant