diff options
| author | haoyuren <13851610112@163.com> | 2026-03-31 23:27:05 -0500 |
|---|---|---|
| committer | haoyuren <13851610112@163.com> | 2026-03-31 23:27:05 -0500 |
| commit | 8ebc6c53077a4826109f2ceb4c5625efe6b6522e (patch) | |
| tree | 09cfcc52bd39b563859eaa3aa4787288e47edf89 /start_dispatcher.sh | |
Claude Bridge Server - broker, dispatcher, multi-user support
Diffstat (limited to 'start_dispatcher.sh')
| -rwxr-xr-x | start_dispatcher.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/start_dispatcher.sh b/start_dispatcher.sh new file mode 100755 index 0000000..1815581 --- /dev/null +++ b/start_dispatcher.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# 启动调度 Claude Code(交互式长期运行) +# Broker 收到 Telegram 消息后会通过 tmux send-keys 直接推送到这里 +set -euo pipefail +cd "$(dirname "$0")" + +if [ ! -f .env ]; then + echo "ERROR: .env 文件不存在" + exit 1 +fi + +set -a; source .env; set +a + +echo "[Dispatcher] Starting interactive Claude session..." +echo "[Dispatcher] Messages from Telegram will be pushed here automatically." +exec claude --allowedTools "mcp__dispatcher__*" |
