mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-20 01:11:18 +00:00
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:
parent
43627ca793
commit
80c044dbb3
2 changed files with 5 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue