chore: add .gitignore, update plan.md

- Exclude binary, rooms/, agent memory, web/dist from git
- plan.md reflects current completed state

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
scorpio 2026-03-04 22:17:50 +08:00
parent 972c822338
commit 416bea4ce3
3 changed files with 67 additions and 19 deletions

View File

@ -8,7 +8,8 @@
"Bash(npm create:*)",
"Bash(npm install:*)",
"Bash(node:*)",
"Bash(npm run:*)"
"Bash(npm run:*)",
"Bash(curl:*)"
]
}
}

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# Go binary
server
# Runtime data (rooms created by users, not tracked)
rooms/
# Agent memory (generated at runtime)
agents/*/memory/
# Frontend build output
web/dist/
# Env files
.env
*.env

View File

@ -35,29 +35,61 @@
## 待完成
### 下次开始(优先级高
### 紧急(下次开始先做
- [ ] **Leader 群 orchestration** — 目前 room.go 的 Handle 只支持单 masterLeader 群需要广播给多个 master
- Leader 群:用户消息广播给所有 master每个 master 在自己的部门群里处理
- 需要在 Room 结构里区分 TypeLeaderHandle 时遍历所有 master
- [ ] **环境变量配置页** — 前端提供设置页,配置各 provider 的 API Key
- 新增 `web/src/components/SettingsPage.tsx`
- 后端 `PUT /api/config` 写入 `.env` 文件,启动时 `godotenv` 加载
- [ ] **实际测试** — 配置真实 DeepSeek API Key 跑通一次完整流程
- [ ] **提交代码到 git** — 所有代码已写好但还未 commit/push
```bash
export DEEPSEEK_API_KEY=your_key
go run cmd/server/main.go
# 另一个终端
cd web && npm run dev
git add -A
git commit -m "feat: implement full agent-team platform"
git push
```
### 后续迭代
- [ ] **前端构建验证** — 确认 Tailwind v4 + Monaco Editor 能正常编译
```bash
cd web && npm run build
```
- [ ] Skill 脚本执行沙箱scripts/ 目录下的脚本安全执行)
- [ ] 用户认证
- [ ] 消息搜索
- [ ] **后端编译验证** — 已通过 `go build ./...`,但需要实际运行测试
```bash
DEEPSEEK_API_KEY=xxx go run cmd/server/main.go
```
### 功能补全
- [ ] **SkillsPage 组件** — skills 列表页面(查看/创建 skill目前 store 有 `fetchSkills` 但没有对应
- 在 `web/src/components/SkillsPage.tsx` 新建
- App.tsx 加入 skills 导航入口
- [ ] **Agent memory 自动更新** — 任务完成后 master 自动总结经验写入 `agents/<name>/memory/`
- 在 `internal/room/room.go` 的 orchestration 循环末尾调用 `agent.SaveMemory()`
- 需要让 master 生成一段经验总结
- [ ] **消息历史持久化** — 目前消息只在内存,刷新页面丢失
- 每条消息追加写入 `rooms/<id>/history/YYYY-MM-DD.md`
- 前端启动时通过 REST 接口加载历史
- [ ] **右侧面板 Skills tab** — 点击 Skills 抽屉按钮时展示群内可用 skills
- 调用 `GET /api/skills` 获取列表
- [ ] **Workspace 文件预览** — 点击产物文件名时展示 MD 内容
- 新增 `GET /api/rooms/:id/workspace/:filename` 接口
- 前端弹出 Modal 展示 ReactMarkdown 渲染
- [ ] **创建群时成员选择优化** — 目前是手动输入 agent 名,改为下拉多选
- 调用 `GET /api/agents` 获取列表,渲染 checkbox
- [ ] **Leader 群的 orchestration** — 目前 room.go 的 Handle 只支持单 masterLeader 群需要广播给多个 master
- Leader 群:用户消息广播给所有 master每个 master 在自己的部门群里处理
- [ ] **环境变量配置页** — 前端提供一个设置页,配置各 provider 的 API Key
- 写入本地 `.env` 文件或通过 `PUT /api/config` 接口
### 已知问题
- [ ] `web/src/App.css` 可以删除Vite 默认生成,已不需要)
- [ ] `web/src/assets/react.svg` 可以删除
- [ ] `web/public/vite.svg` 可以删除
- [ ] `main.tsx` 里的 `import './App.css'` 需要删除
---