fix: plan tree --format color outputs ANSI-coloured text #11150

Open
freemo wants to merge 2 commits from fix/plan-tree-color-format-ansi-output into master

2 Commits

Author SHA1 Message Date
HAL9000 8b06a8bb2c fix(plan): apply ruff format to plan.py
CI / lint (pull_request) Successful in 54s
CI / typecheck (pull_request) Successful in 1m12s
CI / quality (pull_request) Successful in 1m12s
CI / security (pull_request) Successful in 1m19s
CI / push-validation (pull_request) Successful in 28s
CI / helm (pull_request) Successful in 30s
CI / build (pull_request) Successful in 54s
CI / unit_tests (pull_request) Failing after 4m32s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Failing after 4m34s
CI / status-check (pull_request) Failing after 4s
Fixes ruff format check failure in CI lint gate.
2026-06-10 23:19:10 -04:00
freemo 8e890b5480 fix: plan tree --format color outputs ANSI-coloured text
CI / push-validation (pull_request) Successful in 59s
CI / helm (pull_request) Successful in 1m16s
CI / build (pull_request) Successful in 1m25s
CI / lint (pull_request) Failing after 1m51s
CI / quality (pull_request) Successful in 1m58s
CI / typecheck (pull_request) Successful in 2m9s
CI / security (pull_request) Successful in 2m9s
CI / integration_tests (pull_request) Successful in 5m33s
CI / unit_tests (pull_request) Failing after 6m34s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 6s
Added dedicated COLOR format handler to tree_decisions_cmd that renders
the decision tree with ANSI colour codes. Updated _FORMAT_HELP to include
color as a valid format option. Changed else branch in format dispatch to
specific elif for each format (JSON/YAML, TABLE, COLOR) so color format
produces raw ANSI escape sequences instead of being treated like rich/plain.

Updated CHANGELOG.md and CONTRIBUTORS.md per PR compliance checklist.

ISSUES CLOSED: #8160
2026-05-17 01:05:45 +00:00