From 80c044dbb317fa39d372ac53a5bf704cf7e6543f Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Tue, 24 Feb 2026 12:16:07 -0800 Subject: [PATCH] fix: correct CLI entry point path in E2E provision script (#1887) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: correct CLI entry point path in E2E provision script The path resolution went up 2 levels (../../) from sh/e2e/lib/ which landed in sh/ instead of the repo root. After the monorepo restructure, packages/cli/src/index.ts is at the repo root — need 3 levels (../../..). Co-Authored-By: Claude Opus 4.6 * fix: format p.text({ message }) to multi-line for biome Co-Authored-By: Claude Opus 4.6 --------- Co-authored-by: spawn-bot Co-authored-by: Claude Opus 4.6 --- packages/cli/src/shared/ui.ts | 4 +++- sh/e2e/lib/provision.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/shared/ui.ts b/packages/cli/src/shared/ui.ts index 8ac17a62..d58a73f1 100644 --- a/packages/cli/src/shared/ui.ts +++ b/packages/cli/src/shared/ui.ts @@ -55,7 +55,9 @@ export async function prompt(question: string): Promise { try { const result = await Promise.race([ - p.text({ message }), + p.text({ + message, + }), stdinClosePromise, ]); return p.isCancel(result) ? "" : (result || "").trim(); diff --git a/sh/e2e/lib/provision.sh b/sh/e2e/lib/provision.sh index 982baae2..44ddd0a3 100644 --- a/sh/e2e/lib/provision.sh +++ b/sh/e2e/lib/provision.sh @@ -19,9 +19,9 @@ provision_agent() { local stdout_file="${log_dir}/${agent}.stdout" local stderr_file="${log_dir}/${agent}.stderr" - # Resolve CLI entry point (relative to this script's location in e2e/lib/) + # Resolve CLI entry point (relative to this script's location in sh/e2e/lib/) local cli_entry - cli_entry="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)/packages/cli/src/index.ts" + cli_entry="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)/packages/cli/src/index.ts" if [ ! -f "${cli_entry}" ]; then log_err "CLI entry point not found: ${cli_entry}"