feat: Add _remove_all_targets method to CLI

Enables removing all monitoring targets from a session at once.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 06:55:29 +00:00
co-authored by Claude Haiku 4.5
parent 99ec8f41c4
commit 900bbafd9a
+12
View File
@@ -314,6 +314,18 @@ class ClaudeCLI:
return True
return False
def _remove_all_targets(self, session: str) -> bool:
targets = self.load_targets()
if session in targets['targets']:
removed = targets['targets'][session].copy()
del targets['targets'][session]
self.save_targets(targets)
self.print_success(f"Removed all targets from {session}: {removed}")
return True
else:
self.print_warning(f"No targets found for session {session}")
return False
def stop_orchestrator(self, session: str = None, window: int = None):
if session and window:
self.print_header(f"Removing Target {session}:{window}")