refactor(preflight): compact y/N summary #31
Reference in New Issue
Block a user
Delete Branch "compact-preflight-summary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Trim the y/N preflight to the parts the operator actually scans before pressing y. Output now looks like:
```
claude-bottle: agent : implementer
claude-bottle: env : CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
claude-bottle: CLAUDE_CODE_OAUTH_TOKEN
claude-bottle: DISABLE_ERROR_REPORTING
claude-bottle: skills : (none)
claude-bottle: bottle : dev
claude-bottle: git gate : gitea.dideric.is:30009
claude-bottle: egress-proxy : api.anthropic.com [auth:Bearer]
claude-bottle: gitea.dideric.is [auth:token]
claude-bottle: statsig.anthropic.com
claude-bottle: sentry.io
claude-bottle: ...
```
Verified against the dev bottle: byte-for-byte match to the spec.
What's gone (still in JSON via `--format=json`)
image, dockerfile path, derived-image (cwd) line, container name, stage dir, docker runtime, git remotes list, egress allowlist summary, tls-interception note, supervise note, prompt metadata, remote-control flag. The dataclass + `to_dict` are unchanged so tooling that introspects the plan still gets the full shape.
Code
386 unit tests pass.
Trim the y/N preflight to the parts the operator actually scans before pressing y: agent env (one per line) skills (one per line) bottle git gate (one upstream per line) egress-proxy (one route per line, with [auth:scheme] when set) Dropped from the display (still on the plan dataclass / json output for tooling): image, dockerfile, derived-image (cwd) line, container, stage dir, docker runtime, git remotes list, egress allowlist summary, tls interception note, supervise note, prompt metadata, remote-control flag. `remote_control` kwarg kept on `.print()` for callsite stability but unused in the compact format. A `_multi(label, values)` helper does the "first value next to the label, remainder continuation-indented" pattern that env / skills / git gate / egress-proxy all share — keeps the columns aligned to the label width. Verified against my own dev bottle: output is byte-for-byte the spec the operator asked for. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>