Commit Graph

3 Commits

Author SHA1 Message Date
HAL9000 65f1c40533 fix(cli): resolve review blockers for actor context clear command (#6370)
CI / status-check (push) Blocked by required conditions
CI / benchmark-regression (push) Has been skipped
CI / lint (push) Successful in 48s
CI / typecheck (push) Successful in 1m7s
CI / helm (push) Successful in 32s
CI / push-validation (push) Successful in 34s
CI / quality (push) Successful in 57s
CI / build (push) Successful in 41s
CI / security (push) Successful in 1m15s
CI / integration_tests (push) Successful in 3m41s
CI / e2e_tests (push) Successful in 3m48s
CI / unit_tests (push) Successful in 4m36s
CI / coverage (push) Has started running
CI / docker (push) Successful in 2m18s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Failing after 1m21s
CI / benchmark-publish (push) Has been cancelled
CI / build (pull_request) Successful in 47s
CI / unit_tests (pull_request) Successful in 9m25s
CI / e2e_tests (pull_request) Successful in 4m36s
CI / push-validation (pull_request) Successful in 30s
CI / helm (pull_request) Successful in 35s
CI / integration_tests (pull_request) Successful in 3m38s
CI / lint (pull_request) Successful in 45s
CI / typecheck (pull_request) Successful in 1m17s
CI / quality (pull_request) Successful in 1m37s
CI / security (pull_request) Successful in 2m9s
CI / status-check (pull_request) Failing after 4s
CI / coverage (pull_request) Failing after 40s
CI / docker (pull_request) Successful in 1m59s
2026-05-05 01:33:31 +00:00
HAL9000 d567b2e911 feat(cli): add actor context clear command (#6370)
ISSUES CLOSED: #6370
2026-05-05 01:33:31 +00:00
freemo 297823c291 feat(cli): add actor context remove, export, and import commands
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 18s
CI / helm (pull_request) Successful in 21s
CI / lint (pull_request) Successful in 3m18s
CI / quality (pull_request) Successful in 3m42s
CI / typecheck (pull_request) Successful in 3m55s
CI / security (pull_request) Successful in 4m5s
CI / integration_tests (pull_request) Successful in 9m12s
CI / unit_tests (pull_request) Successful in 9m32s
CI / docker (pull_request) Successful in 1m33s
CI / coverage (pull_request) Successful in 11m51s
CI / e2e_tests (pull_request) Successful in 16m26s
CI / status-check (pull_request) Successful in 1s
CI / build (push) Successful in 13s
CI / helm (push) Successful in 22s
CI / lint (push) Successful in 3m17s
CI / quality (push) Successful in 3m41s
CI / typecheck (push) Successful in 3m53s
CI / benchmark-regression (push) Has been skipped
CI / security (push) Successful in 4m4s
CI / integration_tests (push) Successful in 10m44s
CI / unit_tests (push) Successful in 12m37s
CI / docker (push) Failing after 47s
CI / coverage (push) Successful in 11m53s
CI / e2e_tests (push) Has been cancelled
CI / benchmark-publish (push) Has been cancelled
CI / status-check (push) Has been cancelled
CI / benchmark-regression (pull_request) Successful in 54m46s
Implement three new actor context subcommands as specified in the v3
CLI specification:

- `agents actor context remove [--yes|-y] (--all|-a|<NAME>)`:
  Remove a named context or all contexts with interactive confirmation.
  Supports --all for bulk removal and --yes to skip prompts.

- `agents actor context export (--output|-o) <FILE> <NAME>`:
  Export a named context to JSON or YAML (detected from file extension).
  Includes sha256 integrity checksum in output metadata.

- `agents actor context import [--update] (--input|-i) <FILE> [<NAME>]`:
  Import a context from JSON or YAML. Name is inferred from file metadata
  if omitted. Refuses to overwrite existing contexts unless --update is
  specified.

All commands:
- Support 6 output formats (json, yaml, plain, table, rich, color) via
  the shared format_output framework
- Use ContextManager for persistence (messages, metadata, state,
  global_context)
- Follow existing error handling patterns (typer.Exit for user errors)
- Are wired as `agents actor context` subcommand group via add_typer

New files:
- src/cleveragents/cli/commands/actor_context.py (command module)
- features/actor_context_cmds.feature (Behave BDD scenarios)
- features/steps/actor_context_cmds_steps.py (BDD step definitions)
- robot/actor_context_export_import.robot (Robot integration test)

ISSUES CLOSED: #869
2026-03-30 19:35:23 +00:00