Files
sproutclaw/sproutclaw
shumengya ad62015fe3
Some checks failed
CI / build-check-test (push) Has been cancelled
chore: commit pending workspace updates
2026-06-14 20:36:01 +08:00

16 lines
410 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PI_CLI_DIST="$SCRIPT_DIR/packages/coding-agent/dist/cli.js"
export PI_CODING_AGENT_DIR="${PI_CODING_AGENT_DIR:-$SCRIPT_DIR/.pi/agent}"
if [[ ! -f "$PI_CLI_DIST" ]]; then
echo "Build output not found: $PI_CLI_DIST" >&2
echo "Run from repo root: npm run build" >&2
exit 1
fi
exec node "$PI_CLI_DIST" "$@"