fix: correct CLI entry point path in E2E provision script (#1887)

* 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 <noreply@anthropic.com>

* fix: format p.text({ message }) to multi-line for biome

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: spawn-bot <spawn-bot@openrouter.ai>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
A 2026-02-24 12:16:07 -08:00 committed by GitHub
parent 43627ca793
commit 80c044dbb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -55,7 +55,9 @@ export async function prompt(question: string): Promise<string> {
try {
const result = await Promise.race([
p.text({ message }),
p.text({
message,
}),
stdinClosePromise,
]);
return p.isCancel(result) ? "" : (result || "").trim();

View file

@ -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}"