feat(cli): add resource tree and inspect commands #273

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

Metadata

  • Commit: feat(cli): add resource tree and inspect commands
  • Branch: feature/m2-resource-cli-extensions

Subtasks

  • Implement agents resource tree with --depth and --type filters and deterministic ordering.
  • Implement agents resource inspect with --tree and --file options for git-checkout/fs-mount.
  • Implement agents resource link-child/unlink-child to manage DAG edges.
  • Update CLI reference with resource tree/inspect/link examples.
  • Tests (Behave): Add scenarios for tree output ordering and link-child error cases.
  • Tests (Robot): Add Robot test that runs resource tree/inspect on a git-checkout resource.
  • Tests (ASV): Add benchmarks/resource_cli_tree_bench.py for CLI overhead baseline.
  • 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 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%.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across entire code base, do not ignore any failure even if it seems unrelated to this commit, fix it.

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

## Metadata - **Commit**: `feat(cli): add resource tree and inspect commands` - **Branch**: `feature/m2-resource-cli-extensions` ## Subtasks - [x] Implement `agents resource tree` with `--depth` and `--type` filters and deterministic ordering. - [x] Implement `agents resource inspect` with `--tree` and `--file` options for git-checkout/fs-mount. - [x] Implement `agents resource link-child`/`unlink-child` to manage DAG edges. - [x] Update CLI reference with resource tree/inspect/link examples. - [x] Tests (Behave): Add scenarios for tree output ordering and link-child error cases. - [x] Tests (Robot): Add Robot test that runs resource tree/inspect on a git-checkout resource. - [x] Tests (ASV): Add `benchmarks/resource_cli_tree_bench.py` for CLI overhead baseline. - [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 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%. - [x] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across **entire** code base, do not ignore any failure even if it seems unrelated to this commit, fix it. **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:47 +00:00
freemo self-assigned this 2026-02-22 23:40:47 +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.

Reference
cleveragents/cleveragents-core#273
No description provided.