INNER CODE UNIT · Python
charter_preflight
Priivacy-ai/spec-kitty · src/specify_cli/charter_runtime/preflight/cli.py:41
def charter_preflight(
json_output: bool = typer.Option(
False,
"--json",
help="Emit the result as JSON (binding shape, see "
"contracts/charter-preflight-json.md).",
),
auto_refresh: bool = typer.Option(
False,
"--auto-refresh",
help="When checks fail and the worktree has no uncommitted "
"generated artifacts, run the safe refresh sequence "
"(charter generate / upgrade --yes -> synthesize -> bundle validate).",
),
strict: bool = typer.Option(
False,
"--strict",
help="Exit non-zero on any non-fresh state (default: exit zero "