Spaces:
Running
Running
Upload scripts/entrypoint.sh with huggingface_hub
Browse files- scripts/entrypoint.sh +3 -9
scripts/entrypoint.sh
CHANGED
|
@@ -26,8 +26,8 @@ export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts
|
|
| 26 |
# Enable Telegram API proxy (redirects fetch() to working mirror if needed)
|
| 27 |
export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts/telegram-proxy.cjs"
|
| 28 |
|
| 29 |
-
#
|
| 30 |
-
|
| 31 |
|
| 32 |
# ββ Extensions symlink ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 33 |
SYMLINK_START=$(date +%s)
|
|
@@ -65,12 +65,6 @@ if [ -f /app/openclaw/.version ]; then
|
|
| 65 |
echo "[entrypoint] OpenClaw version: $OPENCLAW_VERSION"
|
| 66 |
fi
|
| 67 |
|
| 68 |
-
# ββ Start
|
| 69 |
-
echo "[entrypoint] Starting A2A proxy on port 7860..."
|
| 70 |
-
node /home/node/scripts/a2a-proxy.cjs &
|
| 71 |
-
A2A_PROXY_PID=$!
|
| 72 |
-
echo "[entrypoint] A2A proxy PID: $A2A_PROXY_PID"
|
| 73 |
-
|
| 74 |
-
# ββ Start OpenClaw via sync_hf.py βββββββββββββββββββββββββββββββββββββββββ
|
| 75 |
echo "[entrypoint] Starting OpenClaw via sync_hf.py..."
|
| 76 |
exec python3 -u /home/node/scripts/sync_hf.py
|
|
|
|
| 26 |
# Enable Telegram API proxy (redirects fetch() to working mirror if needed)
|
| 27 |
export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts/telegram-proxy.cjs"
|
| 28 |
|
| 29 |
+
# Enable token redirect + A2A routing + state/agents endpoints (all in one preload)
|
| 30 |
+
export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--require /home/node/scripts/token-redirect.cjs"
|
| 31 |
|
| 32 |
# ββ Extensions symlink ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 33 |
SYMLINK_START=$(date +%s)
|
|
|
|
| 65 |
echo "[entrypoint] OpenClaw version: $OPENCLAW_VERSION"
|
| 66 |
fi
|
| 67 |
|
| 68 |
+
# ββ Start OpenClaw via sync_hf.py (directly on port 7860, no proxy) βββββββ
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
echo "[entrypoint] Starting OpenClaw via sync_hf.py..."
|
| 70 |
exec python3 -u /home/node/scripts/sync_hf.py
|