Repository navigation
v0.7.0 — guided setup when a TypeScript scan cannot proceed
Feature release on the v0.x local-pilot line. Headline: a TypeScript scan that cannot proceed now offers guided setup on a terminal, then resumes the same scan. Default file-local coach codesignal --baseline / --base is unchanged if the scan can already run. Coach remains experimental and stays on the 0.x line. This is a local CLI preview, not a 1.0 product, hosted API, or merge gate.
What’s new
Guided setup when a TypeScript scan cannot proceed
On a controlling terminal, a TypeScript --project-config scan that cannot start no longer stops at a remediation line.
- Missing or uncommitted policy: Coach opens guided policy authoring. With
--format json, that exit-2document is a JSON object with"schema_version": "1"androots— not a CodeSignal report (noscope/signals/coverage). The scan cannot pass--output, so save the candidate yourself, review it, commit it at the analyzed revision, then rerun. - Committed policy, unresolved compiler: Coach names the failing check, then offers a menu of up to four choices —
project_package(the project's own install, for examplenpm ci --ignore-scripts),project_mise,global_mise, andcancel. This is a superset of standalone--prepare-compiler, which remains mise-only. A choice that would open only to report nothing to do is withheld. A gap with nothing installable never opens a prompt; stderr names why each choice was ruled out.
A mutating choice shows a preview (executable, arguments, working directory, expected on-disk changes, network use, script-suppression policy, 5-minute timeout) and needs a separate confirm / install answer. Anything else cancels. Cancel or failure exits 2 with no CodeSignal report. Success reruns full readiness and resumes the original scan only if that rerun is ready or ready_with_limits. The offer runs at most once per invocation.
--prepare-compiler still refuses a host-Node gap (node_missing / node_unsupported) without opening a menu, matching the scan offer so the two paths cannot disagree. Host Node stays a runtime boundary: Coach has no setup command for it. Supported majors remain exactly 24 and 26.
New flag: --no-interactive. A non-empty CI environment variable has the same effect. A scan then prints the same message-only remediation a piped run gets and still exits 2. --suggest-project-config (TypeScript) and --prepare-compiler refuse with exit 2 instead of prompting. Use this when a pty-allocating runner (docker run -t, ssh -t) would otherwise hang on an unanswered prompt. Redirecting stderr away from the terminal (2>run.log) hides prompts while the session still waits — pass --no-interactive if you do not intend to answer.
Without a terminal, a compiler gap whose only executable choice is project_package is not handed --prepare-compiler (that flag cannot run it). The scan appends a line telling you to rerun the same scan on a terminal.
--check-project no longer invents an unsupported-shape or package-manager gap for a monorepo whose manifests sit under an uncommitted policy. With no policy, checks.project_shape and checks.package_manager stay not_checked.
Added files count as introduced; summary.unknown_signals is now present
In --base mode, git A files are lifecycle: introduced and increment introduced_signals. They used to land as unknown. That is a 0.x behavior change for anyone who treated added-file signals as residual classification.
JSON summary now includes unknown_signals. Every signals[] entry is counted in exactly one of introduced_signals, existing_signals, resolved_signals, baseline_signals, unknown_signals. unknown is leftover classification, not "new in this diff." --baseline still marks those signals baseline.
active_signals is len(signals) after the include-resolved filter. In --base mode that total includes resolved, so it is not "problems present at HEAD." Sum introduced + existing + unknown for that (and baseline under --baseline).
Try it
Download the coach binary for your platform from the release assets, or pin the tag:
mise use -g github:lousy-agents/coach@v0.7.0From a Git checkout of a TypeScript project, start read-only:
coach codesignal --baseline --check-project --project-language typescriptOn a terminal, run a project scan. If policy or compiler is missing, answer the offer (or decline it):
coach codesignal --baseline --project-config project.json --project-language typescriptForce the unattended path even on a real TTY:
coach codesignal --baseline --project-config project.json --project-language typescript --no-interactive
CI=1 coach codesignal --baseline --project-config project.json --project-language typescriptStandalone mise compiler setup is unchanged, and still narrower than the scan offer:
coach codesignal --baseline --prepare-compiler --project-language typescriptAdded-file lifecycle on a diff:
coach codesignal --base main --format jsonLook for "lifecycle": "introduced" on A-status files and summary.unknown_signals.
File-local analysis is unchanged:
coach codesignal --baseline
coach codesignal --base mainLimits and trust notes
Advisory static analysis only. A clean report is not proof of absence. --check-project exits 0 even when there are gaps — inspect status, checks, and gaps; do not treat process status as a gate.
The scan offer is consented, interactive, and may use the network. It is not unattended. It requires a TTY unless you pass --no-interactive or CI. It can leave a partial package-manager or mise install if the chosen command fails. It does not install Node, does not make a TypeScript scan succeed on every foreign repository, and does not run unattended project-package setup. Bun is not a project runtime.
--prepare-compiler remains mise-only. Do not expect it to resolve a project_package-only gap.
As in v0.6.0: local CLI preview, no hosted/AWS deployment, no web UI. Coach stays on 0.x / pilot.
Binaries
GoReleaser publishes archives for macOS (Apple silicon darwin_arm64 and Intel darwin_x86_64), Linux (linux_x86_64), and Windows (windows_x86_64), plus signed checksums.txt and its cosign signature bundle.
Related
| Area | Issue / release |
|---|---|
| Guided scan setup offer | #330 |
| Added-file lifecycle | #262 |
| TypeScript project-analysis journey (in progress) | #280 |
| Previous release | v0.6.0 |