78 lines
4.0 KiB
Markdown
78 lines
4.0 KiB
Markdown
# Project: Agent Team
|
||
Last updated: 2026-03-10
|
||
|
||
## Pinned (关键约束)
|
||
- 一切皆 MD — agent 配置、soul、memory、tasks、history 全部是 Markdown 文件
|
||
- 使用前必须设置环境变量 `DEEPSEEK_API_KEY` 或其他 LLM provider 的 API key
|
||
|
||
## Decisions (决策)
|
||
- 2026-03-05:使用 Go + Echo + go-openai 作为后端技术栈
|
||
- 2026-03-05:使用 React 19 + TypeScript + Tailwind v4 + Zustand 作为前端技术栈
|
||
- 2026-03-05:采用纯文件系统存储,无数据库
|
||
|
||
## Constraints (约束)
|
||
- 暂无
|
||
|
||
## TODO
|
||
### In Progress
|
||
- 暂无
|
||
### Pending
|
||
- 暂无
|
||
|
||
## Done
|
||
- 2026-03-10:Task 5 测试文件操作工具
|
||
- 创建 internal/room/tools/executor_test.go 测试文件
|
||
- 修复 executor.go glob 函数支持 `**/*.go` 递归匹配
|
||
- 代码变更:`files changed: 2`, `insertions: +154`, `deletions: -13`
|
||
- Evidence: internal/room/tools/executor_test.go (new), internal/room/tools/executor.go
|
||
- 2026-03-05:支持从 TEAM.md 读取团队元信息
|
||
- 修改 internal/hub/hub.go,添加 readTeamMeta 函数
|
||
- 安装团队时从 TEAM.md 解析 name/description/author
|
||
- 代码变更:`files changed: 1`, `insertions: +29`, `deletions: -4`
|
||
- Evidence: internal/hub/hub.go:129-175
|
||
- 2026-03-05:配置精选团队为营销团队和律师团队
|
||
- 代码变更:`files changed: 1`, `insertions: +20`, `deletions: -51`
|
||
- Evidence: web/src/components/MarketPage.tsx:18-37
|
||
- 2026-03-05:创建营销团队 (marketing-team) 并提交到 Gitea
|
||
- 参考 legal-team 律师团队结构
|
||
- 包含 3 个 Agent:营销总监(master)、市场分析师(member)、内容策划师(member)
|
||
- 提交地址:https://gitea.catter.cn/agent-teams/marketing-team.git
|
||
- Evidence: agents/marketing-team/
|
||
- 2026-03-05:修复后端 loadTeam 函数解析 skills 错误添加到 agents 的问题
|
||
- 代码变更:`files changed: 1`, `insertions: +16`, `deletions: -2`
|
||
- Evidence: internal/api/server.go:648-672
|
||
- 2026-03-05:修复精选团队和我的团队 grid 风格不一致
|
||
- 代码变更:`files changed: 1`, `insertions: +26`, `deletions: -8`
|
||
- Evidence: web/src/components/MarketPage.tsx:388-432
|
||
- 2026-03-05:替换 MDEditor 为简洁的 GitHub 风格 Markdown 编辑器
|
||
- 代码变更:`files changed: 4`, `insertions: +68`, `deletions: -45`
|
||
- Evidence: web/src/components/MarkdownEditor.tsx (new), TeamDetail.tsx, UserSettings.tsx, Onboarding.tsx
|
||
- 2026-03-05:精选团队查看详情改为打开 GitHub 链接,我的团队查看详情打开本地详情
|
||
- 代码变更:`files changed: 2`, `insertions: +30`, `deletions: -15`
|
||
- Evidence: MarketPage.tsx, TeamDetail.tsx
|
||
- 2026-03-05:精选团队添加"立即雇佣"按钮
|
||
- 代码变更:`files changed: 1`, `insertions: +25`, `deletions: -10`
|
||
- Evidence: MarketPage.tsx
|
||
- 2026-03-05:侧边栏布局改为 Discord 风格 - 聊天按钮在上,工具栏(市场/主题/设置)在下
|
||
- 代码变更:`files changed: 1`, `insertions: +80`, `deletions: -20`
|
||
- Evidence: App.tsx
|
||
- 2026-03-05:顶部 Logo 改为 Sparkles AI 图标,移除背景色
|
||
- 代码变更:`files changed: 1`, `insertions: +5`, `deletions: -3`
|
||
- Evidence: App.tsx
|
||
- 2026-03-05:实施 Discord 风格三栏布局 - 左侧群列表 + 中间成员列表 + 聊天区域 + 右侧工作区
|
||
- 新建 MemberList.tsx、RightSidebar.tsx
|
||
- 修改 ChatView.tsx 移除内置右侧栏
|
||
- 代码变更:`files changed: 5`, `insertions: +350`, `deletions: -200`
|
||
- Evidence: App.tsx, MemberList.tsx (new), RightSidebar.tsx (new), ChatView.tsx
|
||
- 2026-03-05:完成群聊创建和实时对话功能
|
||
- 支持创建新群聊,WebSocket 实时消息推送
|
||
- 后端房间管理优化,支持任务和工作区文件同步
|
||
- 代码变更:`files changed: 4`, `insertions: +200`, `deletions: -50`
|
||
- Evidence: internal/room/room.go, internal/api/server.go, web/src/store.ts, web/src/types.ts
|
||
|
||
## Experiments
|
||
- 暂无
|
||
|
||
## Notes
|
||
- 2026-03-05:⚠️ 启动前必须设置环境变量 `export DEEPSEEK_API_KEY=your_key_here` 或其他 provider (OPENAI_API_KEY, KIMI_API_KEY, OLLAMA_HOST)
|