


























@@ -145,11 +145,14 @@ for key in \
145145 OPENCLAW_QA_ALLOW_INSECURE_HTTP \
146146 OPENCLAW_QA_REDACT_PUBLIC_METADATA \
147147 OPENCLAW_QA_TELEGRAM_CAPTURE_CONTENT \
148+ OPENCLAW_QA_TELEGRAM_CANARY_TIMEOUT_MS \
149+ OPENCLAW_QA_TELEGRAM_SCENARIO_TIMEOUT_MS \
148150 OPENCLAW_QA_SUITE_PROGRESS \
149151 OPENCLAW_NPM_TELEGRAM_PROVIDER_MODE \
150152 OPENCLAW_NPM_TELEGRAM_MODEL \
151153 OPENCLAW_NPM_TELEGRAM_ALT_MODEL \
152154 OPENCLAW_NPM_TELEGRAM_SCENARIOS \
155+ OPENCLAW_NPM_TELEGRAM_SKIP_HOTPATH \
153156 OPENCLAW_NPM_TELEGRAM_SUT_ACCOUNT \
154157 OPENCLAW_NPM_TELEGRAM_ALLOW_FAILURES; do
155158 forward_env_if_set "$key"
@@ -169,7 +172,7 @@ run_logged docker run --rm \
169172 -e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \
170173 -e OPENCLAW_NPM_TELEGRAM_INSTALL_SOURCE="$package_install_source" \
171174 -e OPENCLAW_NPM_TELEGRAM_PACKAGE_LABEL="$PACKAGE_LABEL" \
172-"${package_mount_args[@]}" \
175+${package_mount_args[@]+"${package_mount_args[@]}"} \
173176 -v "$npm_prefix_host:/npm-global" \
174177 -i "$IMAGE_NAME" bash -s <<'EOF'
175178set -euo pipefail
@@ -284,27 +287,29 @@ for dependency in \
284287 link_installed_package_dependency "$dependency"
285288done
286289287-echo "Running installed-package onboarding recovery hot path..."
288-OPENAI_API_KEY="${OPENAI_API_KEY:-sk-openclaw-npm-telegram-hotpath}" openclaw onboard --non-interactive --accept-risk \
289- --mode local \
290- --auth-choice openai-api-key \
291- --secret-input-mode ref \
292- --gateway-port 18789 \
293- --gateway-bind loopback \
294- --skip-daemon \
295- --skip-ui \
296- --skip-skills \
297- --skip-health \
298- --json >/tmp/openclaw-npm-telegram-onboard.json </dev/null
290+if [ "${OPENCLAW_NPM_TELEGRAM_SKIP_HOTPATH:-0}" != "1" ]; then
291+ echo "Running installed-package onboarding recovery hot path..."
292+ OPENAI_API_KEY="${OPENAI_API_KEY:-sk-openclaw-npm-telegram-hotpath}" openclaw onboard --non-interactive --accept-risk \
293+ --mode local \
294+ --auth-choice openai-api-key \
295+ --secret-input-mode ref \
296+ --gateway-port 18789 \
297+ --gateway-bind loopback \
298+ --skip-daemon \
299+ --skip-ui \
300+ --skip-skills \
301+ --skip-health \
302+ --json >/tmp/openclaw-npm-telegram-onboard.json </dev/null
299303300-openclaw channels add --channel telegram --token "123456:openclaw-npm-telegram-hotpath" >/tmp/openclaw-npm-telegram-channel-add.log 2>&1 </dev/null
301-openclaw doctor --fix --non-interactive >/tmp/openclaw-npm-telegram-doctor-fix.log 2>&1 </dev/null
302-openclaw doctor --non-interactive >/tmp/openclaw-npm-telegram-doctor-check.log 2>&1 </dev/null
303-if grep -F -q "Bundled plugin runtime deps are missing." /tmp/openclaw-npm-telegram-doctor-check.log; then
304- exit 1
305-fi
306-if grep -F -q "Failed to install bundled plugin runtime deps" /tmp/openclaw-npm-telegram-doctor-fix.log; then
307- exit 1
304+ openclaw channels add --channel telegram --token "123456:openclaw-npm-telegram-hotpath" >/tmp/openclaw-npm-telegram-channel-add.log 2>&1 </dev/null
305+ openclaw doctor --fix --non-interactive >/tmp/openclaw-npm-telegram-doctor-fix.log 2>&1 </dev/null
306+ openclaw doctor --non-interactive >/tmp/openclaw-npm-telegram-doctor-check.log 2>&1 </dev/null
307+ if grep -F -q "Bundled plugin runtime deps are missing." /tmp/openclaw-npm-telegram-doctor-check.log; then
308+ exit 1
309+ fi
310+ if grep -F -q "Failed to install bundled plugin runtime deps" /tmp/openclaw-npm-telegram-doctor-fix.log; then
311+ exit 1
312+ fi
308313fi
309314310315export OPENCLAW_NPM_TELEGRAM_SUT_COMMAND="$(command -v openclaw)"
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。