feat: Enhance login page UI with delayed redirect instead of transparent 307
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 8s
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 8s
This commit is contained in:
78
README.md
78
README.md
@@ -21,6 +21,9 @@ git pull origin main
|
||||
E2B_API_KEY="your-e2b-key"
|
||||
# 供 MCP Server 認證使用的 API Key
|
||||
API_KEY="your-secure-mcp-key"
|
||||
# 後台帳號(可在環境變數覆蓋);未設定時使用 wooo / 0936223270 作為維運預設值
|
||||
ADMIN_USERNAME="wooo"
|
||||
ADMIN_PASSWORD="0936223270"
|
||||
# Scout Bot:提供 GitHub Token,可避免 API 速率限制並能真正貼上 comment
|
||||
GITHUB_TOKEN="github_pat_..."
|
||||
# 監控告警:外部導流/外部操作事件 webhook(可留空)
|
||||
@@ -102,3 +105,78 @@ sudo certbot --nginx -d agent.wooo.work
|
||||
}
|
||||
```
|
||||
這樣 AI Agent 呼叫 Tool 時,就會直接連線回 110 主機上的 Next.js 閘道器了!
|
||||
|
||||
### 5. 外部 A2A 生態圈探測腳本(Nostr + MCP)
|
||||
|
||||
`scripts/nostr_agent_client.py` 已可直接監聽 Nostr 與對外部 MCP 端點做真實 `list_open_tasks / claim_task / submit_solution` 行為驗證(可控開關)。
|
||||
|
||||
```bash
|
||||
cd /Users/ogt/Documents/agent-bounty-protocol
|
||||
source venv/bin/activate
|
||||
|
||||
# 1) 只做觀察(不 claim / submit)
|
||||
export MCP_API_KEY="vw_beta_promo_2026"
|
||||
python scripts/nostr_agent_client.py
|
||||
|
||||
# 2) 允許自動 claim
|
||||
export AUTO_CLAIM=true
|
||||
python scripts/nostr_agent_client.py
|
||||
|
||||
# 3) 允許 auto claim + submit(注意會產生可追溯的外部行為)
|
||||
export AUTO_CLAIM=true
|
||||
export AUTO_SUBMIT=true
|
||||
export RUN_DAEMON=true
|
||||
python scripts/nostr_agent_client.py
|
||||
```
|
||||
|
||||
可透過環境變數延展觀測來源:
|
||||
|
||||
- `EXTERNAL_MCP_ENDPOINTS`(逗號分隔,如 `https://agent.wooo.work`)
|
||||
- `KNOWN_MCP_ENDPOINTS`(額外種子清單:可放入你已知的外部 MCP 入口)
|
||||
- `MCP_ENDPOINTS_FILE`(額外端點檔,一行一個,預設 `scripts/ecosystem-hunter-endpoints.txt`)
|
||||
- `NOSTR_RELAY_URL`(預設 `wss://relay.damus.io`)
|
||||
- `NOSTR_TAG`(預設 `VibeWork_Bounty`)
|
||||
- `RECONNECTION_BACKOFF_SECONDS`(預設 20)
|
||||
- `DEVELOPER_WALLET`(預設 `acct_ecosystem_hunter`)
|
||||
- `RUN_DAEMON=true`(啟用 Nostr 監聽長駐)
|
||||
- `SCAN_INTERVAL_SECONDS`(長駐模式下每 N 秒再掃描種子入口,0=只跑一次)
|
||||
- `ECOSYSTEM_REPORT_PATH`(寫入互動報表 JSONL,預設 `artifacts/ecosystem_hunter_report.jsonl`)
|
||||
- `AUTO_CLAIM` / `AUTO_SUBMIT`(控制是否真的呼叫 claim/submit)
|
||||
- `AUTO_SUBMIT_PR_URL`(可自訂測試用 PR URL)
|
||||
|
||||
可直接抓外部真實流量快照:
|
||||
|
||||
```bash
|
||||
./scripts/monitor_external_traffic.sh https://agent.wooo.work 60
|
||||
```
|
||||
|
||||
#### 5.1 持續巡檢(daemon)部署到 188 主機
|
||||
|
||||
已提供可直接落地的啟動腳本與 systemd 標準化設定:
|
||||
|
||||
1. 複製 `scripts/ecosystem-hunter.env.example` 成 `scripts/ecosystem-hunter.env`,填入正式金鑰與參數
|
||||
2. 把 env 與服務檔放到主機(假設 repo 在 `/home/ollama/vibework-git`)
|
||||
|
||||
```bash
|
||||
cp scripts/ecosystem-hunter.env.example scripts/ecosystem-hunter.env
|
||||
[ -f scripts/ecosystem-hunter-endpoints.txt ] || cat <<'EOF' > scripts/ecosystem-hunter-endpoints.txt
|
||||
https://agent.wooo.work
|
||||
EOF
|
||||
./scripts/deploy_ecosystem_hunter.sh
|
||||
```
|
||||
|
||||
3. 腳本會建立 user-level systemd 並啟動服務(不需 sudo)
|
||||
|
||||
```bash
|
||||
systemctl --user status agent-bounty-ecosystem-hunter.service
|
||||
```
|
||||
|
||||
4. 觀察巡檢輸出與 JSONL 報表
|
||||
|
||||
```bash
|
||||
systemctl --user status agent-bounty-ecosystem-hunter.service
|
||||
tail -f /home/ollama/vibework-git/.local/logs/agent-bounty-ecosystem-hunter/service.log
|
||||
tail -f artifacts/ecosystem_hunter_report.jsonl
|
||||
```
|
||||
|
||||
> 建議先以 `AUTO_CLAIM=false` 上線,確認 `list_open_tasks` 有進入外部活動後,再打開 claim/submit。
|
||||
|
||||
Reference in New Issue
Block a user