Fam Zheng 214d2a2338 feat: file sync from worker to server + report.md convention
- Add AgentUpdate::FileSync (base64-encoded) for file transfer
- Worker syncs all workspace files to server after workflow completes
  (skips .venv, __pycache__, .git, node_modules, files > 1MB)
- Server writes synced files to /app/data/workspaces/{project_id}/
- Remove report field from WorkflowComplete (use report.md convention)
- Update prompts: last step should generate report.md, remove KB/worker tool references
2026-04-06 19:41:17 +01:00
2026-03-02 09:21:46 +00:00
2026-04-06 12:59:19 +01:00

Tori — AI Agent 工作流管理器

AI agent 驱动的工作流管理 Web 应用。描述需求AI 规划agent 执行,随时通过 comment 反馈。

架构

Frontend <--> Server (REST + WS) <--> Worker (agent loop + LLM + exec)
                  |
                SQLite
  • Server (tori server): API 网关 + DB 持久化 + WebSocket 广播 + 派发调度
  • Worker (tori worker): 完整 agent 执行引擎LLM 调用 + 脚本执行 + 工具),必须在线才能跑 workflow

快速开始

# 开发模式(前后端同时启动)
make dev

# 启动 worker连接本地 server
cargo run -- worker

# 启动 worker连接远程 server
cargo run -- worker --server wss://tori.euphon.cloud/ws/tori/workers --name my-worker

# 构建生产版本
make build

# 部署到 OCI ARM 服务器
make deploy

配置

cp config.yaml.example config.yaml
# 编辑 config.yaml填入 LLM API key 等

技术栈

  • 后端: Rust (Axum) + SQLite
  • 前端: Vite + Vue 3 + TypeScript
  • LLM: OpenAI 兼容 APIRequesty.ai 网关)
  • 实时通信: WebSocket
  • Worker: tori server / tori worker 子命令
Description
AI Agent Workflow Manager
Readme 441 KiB
Languages
Rust 63.7%
Vue 28.1%
Python 3.4%
TypeScript 2.3%
HTML 1.7%
Other 0.8%