agent-orchestrator/packages/cli/src/commands
Prateek 4f0fcd82b1 fix: address resource leaks and undefined env variable
Fixed 4 Bugbot issues:

1. HIGH: Undefined $CLAUDE_PROJECT_DIR in hook script path
   - Changed setupWorkspaceHooks to use absolute path instead of undefined
     env variable
   - Matches approach used in postLaunchSetup for consistency

2. HIGH: Orchestrator session leaks when metadata write fails
   - Added try-catch around tmux session launch and metadata write
   - Kills tmux session if metadata write or agent launch fails
   - Prevents orphaned sessions from consuming resources

3. MEDIUM: Dashboard process leaks when orchestrator setup fails
   - Wrapped orchestrator setup in try-catch block
   - Kills dashboard child process if orchestrator setup fails
   - Prevents orphaned Next.js server from blocking future starts

4. LOW: Inconsistent indentation (fixed as side effect of restructuring)
   - Refactored error handling simplified indentation structure

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 15:00:24 +05:30
..
dashboard.ts fix: address Cursor Bugbot review comments 2026-02-15 11:32:46 +05:30
init.ts feat: implement CLI with all commands (init, status, spawn, session, send, review-check, dashboard, open) (#6) 2026-02-14 16:14:27 +05:30
open.ts feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
review-check.ts feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
send.ts feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
session.ts feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30
spawn.ts fix: address remaining bugbot issues - metadata path, duplication, summary 2026-02-15 12:08:13 +05:30
start.ts fix: address resource leaks and undefined env variable 2026-02-15 15:00:24 +05:30
status.ts feat: publish to npm under @composio scope (#32) 2026-02-15 04:28:57 +05:30