feat(cli): add resource commands (core) #269

Closed
opened 2026-02-22 23:40:44 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit: feat(cli): add resource commands (core)
  • Branch: feature/m1-resource-cli

Subtasks

  • Implement agents resource type add --config <file> [--update] and agents resource type remove [--yes] <name> for custom types (built-ins remain read-only). Done: Day 7, February 15, 2026
  • Implement agents resource type list/show for built-in + custom types with --format json/yaml output. Done: Day 7, February 15, 2026
  • Implement agents resource add git-checkout <name> --path <path> [--branch <branch>] [--update] with type validation. Done: Day 7, February 15, 2026
  • Implement agents resource list and agents resource show with namespaced name/ULID resolution. Done: Day 7, February 15, 2026
  • Implement agents resource remove [--yes] <resource> with FK guardrails. Done: Day 7, February 15, 2026
  • Update CLI reference with resource type add/remove/list/show and resource add/list/show examples. Done: Day 7, February 15, 2026
  • Tests (Behave): Add CLI scenarios for resource type add/remove/list/show, resource add/list/show/remove, and invalid type errors. Done: Day 7, February 15, 2026
  • Tests (Robot): Add Robot CLI test that adds a git-checkout resource and shows it. Done: Day 7, February 15, 2026
  • Tests (ASV): Add benchmarks/resource_cli_bench.py for CLI parsing overhead. Done: Day 7, February 15, 2026
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes. Done: Day 7, February 15, 2026
  • Verify coverage >=97% via nox -s coverage_report. If coverage is <97% then review the current unit test coverage report at build/coverage.xml and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun nox -s coverage_report to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. Done: Day 7, February 15, 2026

Section: ### Section 4: Projects & Resources [WORKSTREAM B - Hamza Lead]
Status: Completed

## Metadata - **Commit**: `feat(cli): add resource commands (core)` - **Branch**: `feature/m1-resource-cli` ## Subtasks - [x] Implement `agents resource type add --config <file> [--update]` and `agents resource type remove [--yes] <name>` for custom types (built-ins remain read-only). Done: Day 7, February 15, 2026 - [x] Implement `agents resource type list/show` for built-in + custom types with `--format json/yaml` output. Done: Day 7, February 15, 2026 - [x] Implement `agents resource add git-checkout <name> --path <path> [--branch <branch>] [--update]` with type validation. Done: Day 7, February 15, 2026 - [x] Implement `agents resource list` and `agents resource show` with namespaced name/ULID resolution. Done: Day 7, February 15, 2026 - [x] Implement `agents resource remove [--yes] <resource>` with FK guardrails. Done: Day 7, February 15, 2026 - [x] Update CLI reference with resource type add/remove/list/show and resource add/list/show examples. Done: Day 7, February 15, 2026 - [x] Tests (Behave): Add CLI scenarios for resource type add/remove/list/show, resource add/list/show/remove, and invalid type errors. Done: Day 7, February 15, 2026 - [x] Tests (Robot): Add Robot CLI test that adds a git-checkout resource and shows it. Done: Day 7, February 15, 2026 - [x] Tests (ASV): Add `benchmarks/resource_cli_bench.py` for CLI parsing overhead. Done: Day 7, February 15, 2026 - [x] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes. Done: Day 7, February 15, 2026 - [x] Verify coverage >=97% via `nox -s coverage_report`. If coverage is <97% then review the current unit test coverage report at `build/coverage.xml` and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun `nox -s coverage_report` to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. Done: Day 7, February 15, 2026 **Section**: ### Section 4: Projects & Resources [WORKSTREAM B - Hamza Lead] **Status**: Completed
freemo added this to the v3.0.0 milestone 2026-02-22 23:40:44 +00:00
freemo self-assigned this 2026-02-22 23:40:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
#353 Epic: Projects & Resources B0-B2
cleveragents/cleveragents-core
Depends on
#71 feature/m1-resource-cli
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#269
No description provided.