




























@@ -155,6 +155,7 @@ trap 'rm -f "$run_log"; rm -rf "$npm_prefix_host"' EXIT
155155156156docker_env=(
157157 -e COREPACK_ENABLE_DOWNLOAD_PROMPT=0
158+ -e OPENCLAW_E2E_COMMAND_TIMEOUT="${OPENCLAW_E2E_COMMAND_TIMEOUT:-300s}"
158159 -e OPENCLAW_NPM_TELEGRAM_PACKAGE_SPEC="$PACKAGE_SPEC"
159160 -e OPENCLAW_NPM_TELEGRAM_PACKAGE_LABEL="$PACKAGE_LABEL"
160161 -e OPENCLAW_NPM_TELEGRAM_OUTPUT_DIR="$OUTPUT_DIR"
@@ -278,6 +279,7 @@ run_logged docker_e2e_run_with_harness \
278279 -v "$npm_prefix_host:/npm-global" \
279280 -i "$IMAGE_NAME" bash -s <<'EOF'
280281set -euo pipefail
282+source scripts/lib/openclaw-e2e-instance.sh
281283282284export HOME="$(mktemp -d "/tmp/openclaw-npm-telegram-runtime.XXXXXX")"
283285export NPM_CONFIG_PREFIX="/npm-global"
@@ -301,7 +303,7 @@ dump_hotpath_logs() {
301303trap 'status=$?; dump_hotpath_logs "$status"; exit "$status"' ERR
302304303305command -v openclaw
304-openclaw --version
306+openclaw_e2e_run_command openclaw --version
305307mkdir -p /app/node_modules
306308openclaw_package_dir="/npm-global/lib/node_modules/openclaw"
307309# The mounted QA harness imports openclaw/plugin-sdk and package dependencies;
@@ -364,7 +366,9 @@ done
364366365367if [ "${OPENCLAW_NPM_TELEGRAM_SKIP_HOTPATH:-0}" != "1" ]; then
366368 echo "Running installed-package onboarding recovery hot path..."
367- OPENAI_API_KEY="${OPENAI_API_KEY:-sk-openclaw-npm-telegram-hotpath}" openclaw onboard --non-interactive --accept-risk \
369+ hotpath_openai_api_key="${OPENAI_API_KEY:-sk-openclaw-npm-telegram-hotpath}"
370+ OPENAI_API_KEY="$hotpath_openai_api_key" openclaw_e2e_run_command openclaw onboard \
371+ --non-interactive --accept-risk \
368372 --mode local \
369373 --auth-choice openai-api-key \
370374 --secret-input-mode ref \
@@ -376,9 +380,9 @@ if [ "${OPENCLAW_NPM_TELEGRAM_SKIP_HOTPATH:-0}" != "1" ]; then
376380 --skip-health \
377381 --json >/tmp/openclaw-npm-telegram-onboard.json </dev/null
378382379- openclaw channels add --channel telegram --token "123456:openclaw-npm-telegram-hotpath" >/tmp/openclaw-npm-telegram-channel-add.log 2>&1 </dev/null
380- openclaw doctor --fix --non-interactive >/tmp/openclaw-npm-telegram-doctor-fix.log 2>&1 </dev/null
381- openclaw doctor --non-interactive >/tmp/openclaw-npm-telegram-doctor-check.log 2>&1 </dev/null
383+ openclaw_e2e_run_command openclaw channels add --channel telegram --token "123456:openclaw-npm-telegram-hotpath" >/tmp/openclaw-npm-telegram-channel-add.log 2>&1 </dev/null
384+ openclaw_e2e_run_command openclaw doctor --fix --non-interactive >/tmp/openclaw-npm-telegram-doctor-fix.log 2>&1 </dev/null
385+ openclaw_e2e_run_command openclaw doctor --non-interactive >/tmp/openclaw-npm-telegram-doctor-check.log 2>&1 </dev/null
382386fi
383387384388export OPENCLAW_NPM_TELEGRAM_SUT_COMMAND="$(command -v openclaw)"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。