feat: add Google OAuth, remote worker system, and file browser

- Google OAuth login with JWT session cookies, per-user project isolation
- Remote worker registration via WebSocket, execute_on_worker/list_workers agent tools
- File browser UI in workflow view, file upload/download API
- Deploy script switched to local build, added tori.euphon.cloud ingress
This commit is contained in:
2026-03-17 01:57:57 +00:00
parent 186d882f35
commit 63f0582f54
26 changed files with 2338 additions and 106 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: dev dev-backend dev-frontend build build-backend build-frontend clean deploy clippy lint docker-build
.PHONY: dev dev-backend dev-frontend build build-backend build-frontend clean deploy clippy lint docker-build deploy-worker-i7
# 开发模式:同时启动前后端
dev:
@@ -36,6 +36,15 @@ clippy:
lint: clippy
# Worker 部署
deploy-worker-i7:
@echo "==> Deploying tori-worker to i7..."
ssh i7 "mkdir -p ~/tori-worker ~/.config/systemd/user"
scp worker/tori-worker.py i7:~/tori-worker/tori-worker.py
scp worker/tori-worker.service i7:~/.config/systemd/user/tori-worker.service
ssh i7 "chmod +x ~/tori-worker/tori-worker.py && systemctl --user daemon-reload && systemctl --user enable --now tori-worker"
@echo "==> Done! Check status: ssh i7 'systemctl --user status tori-worker'"
clean:
cargo clean
rm -rf web/dist web/node_modules