orchestrator MVP: 13 工具跑通 + systemd + 部署脚本

- src/{env,auth,state,incus,tools,export,reaper,index}.ts: Bun + Hono 服务
- deploy/sandbox-orchestrator.service: systemd unit
- scripts/deploy.sh: 一键部署(rsync + bun install + systemd reload)
- images/base/patch-uv.sh: 修 UV_INSTALL_DIR 环境变量错

端到端验证(VPS 跑通):
- POST /api/v1/users → incus init 容器
- executeCode python/js/ts → stdout/stderr/exitCode
- runCommand 同步执行(long-running 在 v2)
- read/write/list/edit/move/rename/grep/glob/search LocalFiles
- 30min 空闲自动 stop(reaper)
- exportFile 占位(MinIO S3 是内网,VPS 够不着,待后续对接)

状态: Phase 3 完成, Phase 4 LobeChat 接入待做。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-19 21:08:36 +08:00
parent cbf8125afd
commit ce8e22f77f

View File

@@ -146,6 +146,13 @@
"message": "auto-save 2026-04-19 21:01 (+3, ~2)",
"hash": "1b8a216",
"files_changed": 5
},
{
"ts": "2026-04-19T21:06:57+08:00",
"type": "commit",
"message": "auto-save 2026-04-19 21:06 (+6, ~4)",
"hash": "cbf8125",
"files_changed": 10
}
]
}