agent-orchestrator/packages/cli
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
..
__tests__ fix(cli): make ao start URL cloning interactive to avoid SSH prompt hang (#1255) 2026-04-28 19:04:38 +05:30
src fix(cli): make ao start URL cloning interactive to avoid SSH prompt hang (#1255) 2026-04-28 19:04:38 +05:30
templates/rules feat: seamless onboarding with enhanced documentation (#66) 2026-02-16 22:22:13 +05:30
CHANGELOG.md chore: replace changelog edits with changeset 2026-04-19 19:59:16 +05:30
package.json chore: bump all package versions to 0.2.5 (#1190) 2026-04-13 05:47:08 +05:30
tsconfig.json fix: scope node types to node packages 2026-04-13 18:25:21 +05:30
vitest.config.ts test(cli): load markdown prompt templates 2026-04-13 21:28:27 +05:30