You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
crates/bamts-cli/src/driver.rs — dispatch for Check/Compile/Run, initialize_tsc_config (--init creates tsconfig.json via create_new, returns TS5054 if exists), native compile output
crates/bamts-cli/src/args.rs — internal bamts subcommand parser (check, compile, run, explain, --target jit/aot, --error-limit) used by the --api server and tests, not the public binary
crates/bamts-cli/src/cli/tsc_args.rs TscExitStatus 0-5 and crates/bamts-cli/src/cli.rs for command outcome formatting
Allowed edits
Verify docs/reference/cli.md:41 against driver.rs::initialize_tsc_config and tsc_args.rs option tables; update only if source differs after integration.
Replace docs/reference/cli.md:51-58 mode/option tables with a source-cited list of accepted options per dispatch mode (Direct, Project, Build); remove any option the parser rejects or does not consume.
Ensure docs/reference/cli.md:65, docs/tutorials/quickstart.md:65, docs/explanation/architecture.md:50, and README.md:53,57 consistently state that check, run, compile, explain, --target jit, and --target aot are not public bamts binary commands and identify their internal owner (--api / src/args.rs test harness / compiler/explain RPC).
Correct README.md:65 diagnostics link text so it does not promise 'error limits' that docs/reference/diagnostics.md does not cover, or add the missing error-limit/resource-budget coverage to docs/reference/diagnostics.md.
Verify docs/reference/cli.md:67-79 exit-code table against TscExitStatus and driver.rs exit-code paths; fix any mismatch.
Resolve perf/benchmarks.toml:180-185 cli-startup-empty fixture: if it runs through the public bamts binary, change argv to a tsc-compatible command; if it runs through the internal --api or parse_args harness, label the fixture group or add a harness field and keep the check subcommand. Do not leave an unlabeled public check subcommand.
Verify README.md:30-32 quickstart examples and docs/tutorials/quickstart.md against the public bamts binary after integration; update only if the parser no longer accepts them.
Forbidden guessing
Do not infer public CLI behavior from crates/bamts-cli/src/args.rs or crates/bamts-cli/src/cli.rs tests; those are internal/test surfaces.
Do not add public commands or options that tsc_args.rs does not parse.
Do not rewrite tsc_args.rs, driver.rs, or main.rs to match the docs.
The perf/benchmarks.toml argv may also require the DRB-8 dual-performance-authority boundary issue (wayfinder:grilling child of #156) if the harness is not the public CLI.
Residue family
CLI contract drift
Affected paths
Source of truth
Allowed edits
Forbidden guessing
Acceptance
Related future issue
The perf/benchmarks.toml argv may also require the DRB-8 dual-performance-authority boundary issue (wayfinder:grilling child of #156) if the harness is not the public CLI.