feat: add go backend skeleton

This commit is contained in:
Yoilun
2026-05-25 16:04:26 +08:00
parent de20fda424
commit be466ae5fc
8 changed files with 156 additions and 2 deletions

View File

@@ -16,13 +16,24 @@
## Runbook
实施完成后记录实际命令。
启动后端:
```bash
go run ./cmd/codex-agent-manager
```
健康检查:
```bash
curl http://127.0.0.1:18083/api/health
```
## Security Boundaries
- 不读取 `.codex/auth.json`
- 不写入 Codex SQLite。
- `.codex/agents/*.toml` 写回必须先备份。
- 当前后端骨架只实现健康检查和 Codex home 路径边界函数,尚未读取真实 `.codex` 数据文件。
## Known Risks