recoup-internal-dev-verify-cli
Verify Recoup CLI behavior
Run the actual recoupable/cli executable and retain commands, output, exit codes, and observed HTTP requests. The fixture replaces the backend at the CLI's existing RECOUP_API_URL boundary. It does not prove production authentication, account authorization, or backend correctness.
Launch
Use Node 22 or newer and pnpm on macOS or Linux. The helper requires POSIX process groups and rejects unsupported operating systems before launching a CLI case. Select a clean, isolated CLI checkout at the revision under review. Record its commit and working-tree status. Preserve an existing dirty checkout by using a separate worktree. Set CLI_REPO to that checkout's absolute path and CLI_EVIDENCE to a fresh evidence directory outside it.
Run from the CLI checkout:
git rev-parse HEAD
git status --short
pnpm install --frozen-lockfile
pnpm build
The build must exit zero and produce dist/bin.cjs. This is a short-lived command, so there is no app server to keep running. The helper starts its own fixture on an unused loopback port and closes it after the checks.