feat(cli): cross-backend list active + --backend flag + dashboard picker (issue #77) #78

Merged
didericis merged 3 commits from cli-backend-aware-list-and-flag into main 2026-05-27 19:18:52 -04:00
3 changed files with 1 additions and 20 deletions
Showing only changes of commit 5d740a6948 - Show all commits
-5
View File
@@ -159,8 +159,3 @@ def cleanup(plan: DockerBottleCleanupPlan) -> None:
shutil.rmtree(path, ignore_errors=True) shutil.rmtree(path, ignore_errors=True)
except OSError as e: except OSError as e:
warn(f"failed to remove {path}: {e}") warn(f"failed to remove {path}: {e}")
# `enumerate_active` moved to `backend/docker/enumerate.py` to
# mirror the smolmachines layout. Cleanup keeps the orphan
# enumeration; enumeration of live agents is its own concern.
+1 -8
View File
@@ -1,11 +1,4 @@
"""Unit: dashboard's row-formatting + selection helpers (PRD 0019). """Unit: dashboard's row-formatting + selection helpers (PRD 0019)."""
The active-bottle enumeration tests moved to
`test_docker_enumerate_active.py` (issue #77) — dashboard now
delegates listing to `enumerate_active_agents` so the parser
and assembly tests live next to the docker backend's
implementation.
"""
from __future__ import annotations from __future__ import annotations
Review

no need to leave this comment

no need to leave this comment
Review

Removed in 5d740a6.

Removed in 5d740a6.
@@ -173,13 +173,6 @@ class TestEnumerateActive(_FakeHomeMixin, unittest.TestCase):
[a.slug for a in active], [a.slug for a in active],
) )
# `noop when docker missing` lives at the cross-backend gate
# now (`enumerate_active_agents` skips backends whose
# `is_available()` reports False — see
# `test_backend_selection.TestEnumerateActiveAgents`). This
# module assumes docker is available when called, matching the
# smolmachines/enumerate.py contract.
if __name__ == "__main__": if __name__ == "__main__":
Review

also remove this

also remove this
Review

Removed in 5d740a6.

Removed in 5d740a6.
unittest.main() unittest.main()