fix(cli): wrap plan status --format json output in spec-required JSON envelope #11107

Closed
HAL9000 wants to merge 4 commits from fix-plan-status-envelope-11034 into master

4 Commits

Author SHA1 Message Date
controller-ci-rerun d1ca5b8f1d chore: re-trigger CI [controller]
CI / lint (pull_request) Successful in 47s
CI / quality (pull_request) Successful in 52s
CI / typecheck (pull_request) Successful in 1m7s
CI / build (pull_request) Successful in 1m19s
CI / security (pull_request) Successful in 2m24s
CI / helm (pull_request) Successful in 46s
CI / push-validation (pull_request) Successful in 28s
CI / unit_tests (pull_request) Successful in 6m29s
CI / docker (pull_request) Successful in 1m58s
CI / integration_tests (pull_request) Successful in 10m16s
CI / coverage (pull_request) Successful in 11m49s
CI / status-check (pull_request) Successful in 3s
2026-06-14 09:21:37 -04:00
HAL9000 a373be7471 style(cli): collapse multi-line format_output calls in plan_status
CI / typecheck (pull_request) Successful in 1m16s
CI / security (pull_request) Successful in 1m33s
CI / build (pull_request) Successful in 40s
CI / helm (pull_request) Successful in 46s
CI / unit_tests (pull_request) Successful in 5m3s
CI / push-validation (pull_request) Successful in 25s
CI / integration_tests (pull_request) Successful in 9m44s
CI / quality (pull_request) Failing after 14m44s
CI / lint (pull_request) Failing after 14m45s
CI / coverage (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
CI / status-check (pull_request) Has been cancelled
Ruff format wanted both format_output(data, fmt, command="plan status")
calls in plan_status() collapsed onto a single line. Both fit well
within the 88-char line limit. Resolves the CI lint failure introduced
when the multi-line wrapping was first added.

ISSUES CLOSED: #9450
2026-06-14 08:53:53 -04:00
controller-ci-rerun 94aafe50ac chore: re-trigger CI [controller] 2026-06-14 08:53:53 -04:00
HAL9000 e1be5e2cf1 fix(cli): wrap plan status --format json in spec-required envelope
Pass command="plan status" to format_output so the JSON/YAML output
envelope includes a proper "command" field instead of an empty string,
matching the specification's required envelope structure.

Fixes PR #11034.
2026-06-14 08:53:53 -04:00