Commit Graph

24 Commits

Author SHA1 Message Date
7df50e0dc3 phase 5 prep: backfill-users.ts + deployment runbook in .memory
- scripts/backfill-users.ts: 扫 PG users 表,对每人幂等调 orchestrator POST /users
- orchestrator/package.json: 加 postgres 依赖
- .memory/project.md: Phase 3/4 完成状态,Phase 5 上线 checklist

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 21:17:01 +08:00
e7155b7001 auto-save 2026-04-19 21:12 (~1) 2026-04-19 21:12:27 +08:00
ce8e22f77f 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>
2026-04-19 21:08:36 +08:00
cbf8125afd auto-save 2026-04-19 21:06 (+6, ~4) 2026-04-19 21:06:57 +08:00
1b8a216fbd auto-save 2026-04-19 21:01 (+3, ~2) 2026-04-19 21:01:27 +08:00
eea42305fe auto-save 2026-04-19 20:15 (~1) 2026-04-19 20:27:26 +08:00
867ca6fa5f auto-save 2026-04-19 18:14 (~1) 2026-04-19 18:14:39 +08:00
8422736f6e auto-save 2026-04-19 16:10 (~1) 2026-04-19 16:11:14 +08:00
a9c72d329d auto-save 2026-04-19 14:26 (~1) 2026-04-19 14:29:12 +08:00
0a4482db7a auto-save 2026-04-19 13:49 (~1) 2026-04-19 13:49:47 +08:00
c6ca9ff10a auto-save 2026-04-19 13:43 (~1) 2026-04-19 13:44:03 +08:00
c90db7f676 auto-save 2026-04-19 13:38 (~1) 2026-04-19 13:38:34 +08:00
8b26a2155a auto-save 2026-04-19 13:31 (+1, ~1) 2026-04-19 13:33:05 +08:00
9f348be145 auto-save 2026-04-19 13:09 (~1) 2026-04-19 13:09:38 +08:00
69ab3a332e auto-save 2026-04-19 12:15 (~1) 2026-04-19 12:26:31 +08:00
16bf8fd387 auto-save 2026-04-19 07:10 (~1) 2026-04-19 07:27:54 +08:00
d8258bdf50 auto-save 2026-04-19 02:33 (~1) 2026-04-19 02:52:01 +08:00
33a84cac9e auto-save 2026-04-18 20:28 (~1) 2026-04-18 20:45:52 +08:00
c7eb168233 auto-save 2026-04-18 16:23 (~1) 2026-04-18 16:23:47 +08:00
6425480341 init: Lobe Sandbox Backend scaffold + host-init + base image build script
- scripts/host-init.sh: 幂等宿主初始化(btrfs pool + project + profile + UFW/iptables 修复)
- images/base/build.sh: Debian13 base 镜像构建脚本
- .memory/project.md: 设计决策、坑点、进度记录

状态: Phase 1 完成, Phase 2 base 镜像构建被 SSH 断开中断,
sb-builder 已 stop 保留,续跑需改 systemd-run 抗 SSH 断开。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 16:21:37 +08:00
e9cc9dfba4 auto-save 2026-04-18 16:18 (+1, ~1) 2026-04-18 16:18:17 +08:00
380dc95476 auto-save 2026-04-18 16:12 (~1) 2026-04-18 16:12:48 +08:00
ddafce554c auto-save 2026-04-18 16:07 (~1) 2026-04-18 16:07:18 +08:00
4a5b0f24b5 auto-save 2026-04-18 16:01 (+2) 2026-04-18 16:01:50 +08:00