refactor(cli): move context commands to actor context subgroup #1194

Merged
freemo merged 1 commits from feature/m4-actor-context-hierarchy into master 2026-04-02 17:53:43 +00:00

1 Commits

Author SHA1 Message Date
freemo 603dc841b0 refactor(cli): move context commands to actor context subgroup
CI / benchmark-publish (pull_request) Has been skipped
CI / helm (pull_request) Successful in 39s
CI / lint (pull_request) Successful in 3m18s
CI / quality (pull_request) Successful in 3m43s
CI / integration_tests (pull_request) Failing after 3m45s
CI / typecheck (pull_request) Successful in 3m56s
CI / unit_tests (pull_request) Failing after 4m5s
CI / security (pull_request) Successful in 4m20s
CI / docker (pull_request) Has been skipped
CI / build (pull_request) Successful in 7m57s
CI / coverage (pull_request) Successful in 12m5s
CI / e2e_tests (pull_request) Successful in 20m6s
CI / status-check (pull_request) Failing after 1s
CI / benchmark-regression (pull_request) Successful in 55m15s
Register context as a sub-app of the actor Typer group so commands are
accessible under the canonical specification path `agents actor context`.
The top-level `agents context` group remains as a deprecated alias
(with Typer deprecated=True) for one release cycle.

Key changes:
- context.app registered under actor.app in main.py
- `rm` subcommand renamed to `remove`; `rm` kept as hidden deprecated
  alias that prints a deprecation warning before delegating
- Programmatic rm_command() deprecated in favor of remove_command()
- Help text updated to reference canonical `agents actor context` paths
- Behave and Robot tests updated to use canonical paths and renamed
  subcommand; assertion for context help lowercased for flexibility
- All nox sessions pass: lint, typecheck, unit_tests (495 features,
  12731 scenarios), coverage at 97%

ISSUES CLOSED: #888
2026-03-30 21:39:26 +00:00