feat(acms): implement context show and context clear CLI commands #10780

Open
HAL9000 wants to merge 3 commits from feat/acms-cli-context-show-clear into master

3 Commits

Author SHA1 Message Date
HAL9000 7e4fa26373 test(acms): add CLI coverage BDD scenarios for acms show and acms clear commands
CI / push-validation (pull_request) Successful in 45s
CI / build (pull_request) Successful in 59s
CI / lint (pull_request) Successful in 1m10s
CI / quality (pull_request) Successful in 1m21s
CI / helm (pull_request) Successful in 1m19s
CI / typecheck (pull_request) Successful in 1m26s
CI / security (pull_request) Successful in 1m48s
CI / unit_tests (pull_request) Failing after 6m28s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Failing after 10m18s
CI / status-check (pull_request) Failing after 3s
Add features/acms_context_cli_coverage.feature and
features/steps/acms_context_cli_coverage_steps.py to exercise the
acms_show and acms_clear typer CLI command functions via CliRunner,
covering all code paths (invalid view, empty service, rich table,
JSON output, truncated flag, invalid tier, no-filter, path/tag/tier
filters, confirmation prompt) that the existing unit-level BDD tests
do not reach. Fixes coverage gate failure.
2026-06-06 11:39:34 -04:00
HAL9000 521a46599f style(acms): apply ruff format to acms_context, context_tiers, and step definitions 2026-06-06 11:39:34 -04:00
HAL9000 178d745214 feat(acms): implement context show and context clear CLI commands
- Implemented new ACMS CLI with context show and context clear commands wired to ContextTierService

- Added acms_context.py CLI module with show (entry list, budget utilization, truncated flag) and clear (path/tag/tier filters, confirmation prompt) commands

- Added 13 BDD scenarios covering all acceptance criteria including JSON format output

- Extended ContextTierService with remove_by_filter method for filtered entry removal

- Both commands support --format json for machine-readable output and --help with usage examples

ISSUES CLOSED: #9983
2026-06-06 11:39:34 -04:00