agent-orchestrator/packages/cli/__tests__/commands
Abu Talha 60e8c88100
fix(cli): make ao start URL cloning interactive to avoid SSH prompt hang (#1255)
* refactor(cli): unify interactive spawn helper

Consolidate interactive child-process spawning into runInteractiveCommand by adding an optional options bag (cwd/env and error context). This removes duplicate spawn logic and ensures consistent TTY-forwarding and error formatting for installer and clone flows.

Made-with: Cursor

* test(cli): mock interactive spawn in start URL clone tests

Update start URL clone tests to mock node:child_process spawn (stdio: inherit) instead of exec(), matching the interactive clone behavior and preventing hangs/timeouts.

Made-with: Cursor

* test(cli): standardize spawn mocks for start URL clone

Use an EventEmitter-based ChildProcess helper for spawn() in start command tests, matching existing repo patterns and reducing repetitive per-test mock return objects.

Made-with: Cursor

* test(cli): remove unknown cast from SessionManager mock

Add missing SessionManager methods to the start command test mock so we can type it as SessionManager directly without an unknown double-cast.

Made-with: Cursor

* test(cli): type spawn mock args in start tests

Replace unknown-typed spawn mock parameters with concrete cmd/args/options types to improve readability while keeping behavior unchanged.

Made-with: Cursor

* fix(test): remove duplicate mockSessionManager.restore key

Drop the duplicate restore mock introduced during main-branch merge conflict resolution.
2026-04-28 19:04:38 +05:30
..
completion.test.ts refactor(core): storage redesign — projectId-based paths, JSON metadata (#1466) 2026-04-28 17:55:53 +05:30
dashboard.test.ts chore: rename @composio scope to @aoagents across all packages 2026-04-09 15:59:33 +00:00
doctor.test.ts feat(cli): install-aware ao update, startup notifier, doctor version check (#1156) 2026-04-13 11:46:26 +05:30
init.test.ts Resolve remaining PR review comments 2026-03-17 15:51:02 +05:30
open.test.ts Add multi-project storage, resolution, and project settings support (#1343) 2026-04-21 17:45:55 +05:30
plugin.test.ts feat: add $schema support to agent-orchestrator.yaml (#1373) 2026-04-26 19:42:45 +05:30
project.test.ts refactor(core): storage redesign — projectId-based paths, JSON metadata (#1466) 2026-04-28 17:55:53 +05:30
report.test.ts refactor(core): storage redesign — projectId-based paths, JSON metadata (#1466) 2026-04-28 17:55:53 +05:30
review-check.test.ts Add multi-project storage, resolution, and project settings support (#1343) 2026-04-21 17:45:55 +05:30
send.test.ts fix(deps): bump vulnerable dependencies so pnpm audit passes cleanly (#1338) 2026-04-26 17:01:07 +05:30
session.test.ts Add multi-project storage, resolution, and project settings support (#1343) 2026-04-21 17:45:55 +05:30
setup.test.ts feat: add $schema support to agent-orchestrator.yaml (#1373) 2026-04-26 19:42:45 +05:30
spawn.test.ts fix(cli): hide legacy second positional from ao spawn help (#1491) 2026-04-25 02:16:32 +05:30
start.test.ts fix(cli): make ao start URL cloning interactive to avoid SSH prompt hang (#1255) 2026-04-28 19:04:38 +05:30
status.test.ts feat(cli): filter terminated sessions from ao session ls / ao status by default (#1340) 2026-04-20 13:05:34 +05:30
update.test.ts fix(cli): avoid missing repo scripts on global installs (#1252) (#1277) 2026-04-26 16:47:49 +05:30