20 Commits

Author SHA1 Message Date
scorpio
cbbb7d399d 集成 ToolExecutor 到 Room
- 在 Room 结构体中添加 ToolExecutor 字段
- 在 Load 函数中初始化 ToolExecutor
2026-03-10 09:37:42 +08:00
scorpio
9a4ff4713a fix: 添加 glob 函数 pattern 参数的安全验证 2026-03-10 09:34:57 +08:00
scorpio
ac21126d2b fix: 添加 glob/grep/gitDiff 函数的 safePath 路径验证 2026-03-10 09:32:39 +08:00
scorpio
5bc07f2ba5 fix: 修复路径遍历安全漏洞和editFile替换逻辑问题 2026-03-10 09:30:15 +08:00
scorpio
6fe1933161 feat: 实现工具执行器
- 添加 Executor 结构体,支持 workspace 目录操作
- 实现 9 个工具: glob, grep, read_file, edit_file, write_file,
  list_workspace, git_status, git_diff, git_commit
- JSON 解析参数,错误处理完善
2026-03-10 09:27:55 +08:00
scorpio
ae4afe9271 add file operation tool definitions 2026-03-10 09:23:59 +08:00
scorpio
4280054944 chore: add .worktrees to gitignore 2026-03-10 09:20:46 +08:00
sdaduanbilei
8cb4e041c8 fix 2026-03-09 17:38:43 +08:00
scorpio
e6e8bd8ce1 feat: phase强制校验、重复分配防护、章节file call、成员对话模式
- 系统级phase强制校验:阻止跨阶段分配任务,前置阶段未完成时自动拦截
- 循环内去重:同phase同成员不会被重复执行,消除master重复分配问题
- 消除重复提示:feedbackMsg和continueMsg不再同时注入
- 动态章节file call:所有静态文件完成后自动触发masterChapterFileCall
- 章节内容安全网拦截:master在聊天中输出文档内容时自动保存到workspace
- 用户@成员对话:区分对话和任务分配,短消息/问候走对话路由而非任务流水线
- handleMemberConversation改进:初始化系统提示、流式输出、DB存储
- 策划编辑AGENT.md:新增前置依赖检查、评分必须引用文档数据来源
- TodoList更新提醒:任务完成后提醒master用编辑指令更新TodoList
- buildWorkflowStep强化:显示阶段依赖关系和后续阶段解锁提示

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 22:16:08 +08:00
scorpio
421bdf76b6 chore: 移除 node_modules,更新 .gitignore
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 18:44:51 +08:00
scorpio
d6df056687 feat: Part 模型 + 文件版本追踪 + 写手团队工作流 v2
- 数据层:messages 表增加 part_type 字段,新建 file_versions 表支持版本追踪
- 后端:saveWorkspace 版本追踪、saveAgentOutput 源头分离、generateBriefMessage 成员简报
- 后端:applyDocumentEdit 增量编辑、buildWorkflowStep phase-aware 工作流引擎
- API:文件版本查询/回退接口
- 前端:part_type 驱动渲染,产物面板版本历史
- 新增写手团队(主编/搜索员/策划编辑/合规审查员)配置
- store 模块、scheduler 模块、web-search skill

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 18:44:34 +08:00
sdaduanbilei
fe1a82bbe2 feat: Plan/Build 模式、artifact 系统、成员直接对话
- 新增 Plan/Build 模式切换(Tab 键),Plan 模式阻止任务执行
- Build 模式:成员输出智能判断,文档存 artifact,提问显示聊天
- 成员可直接与用户对话(多轮),不经过 master 传话
- 任务计划文档自动生成,沟通记录自动追加
- 右侧面板重构为产出物面板,支持查看/编辑/保存
- 输入框改为 textarea,支持 Shift+Enter 换行,修复输入法 Enter 误发送
- Master 会话历史持久化,支持多轮上下文
- parseAssignments 支持多行任务描述
- SOUL.md 热重载、skill 递归发现与内容注入
- 需求确认 skill(HARD-GATE 模式)
- air 热重载配置

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 17:34:44 +08:00
scorpio
adf854eba5 0306 2026-03-06 13:32:23 +08:00
scorpio
122ab6ef3e 0306 2026-03-06 10:07:16 +08:00
scorpio
b37e66b9a5 Add TEAM.md with metadata 2026-03-05 19:58:14 +08:00
sdaduanbilei
9e279a0627 fix 2026-03-05 17:34:49 +08:00
scorpio
416bea4ce3 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>
2026-03-04 22:17:50 +08:00
scorpio
972c822338 feat: complete remaining features
- SkillsPage: skill list, detail view, create new skill
- App.tsx: add Skills nav (4 tabs total)
- RoomSidebar: agent dropdown multi-select for members
- ChatView: workspace file preview modal, load message history on room open
- room.go: message history persistence to history/YYYY-MM-DD.md, auto memory update after task
- api/server.go: add createSkill, getWorkspaceFile, getMessages endpoints
- Clean up unused Vite default files
- Update plan.md with completed items and remaining tasks

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 22:08:56 +08:00
scorpio
de773586c7 feat: implement full agent-team platform
Go backend:
- LLM client with DeepSeek/Kimi/Ollama/OpenAI support (OpenAI-compat)
- Agent loader: AGENT.md frontmatter, SOUL.md, memory read/write
- Skill system following agentskills.io standard
- Room orchestration: master assign→execute→review loop with streaming
- Hub: GitHub repo clone and team package install
- Echo HTTP server with WebSocket and full REST API

React frontend:
- Discord-style 3-panel layout with Tailwind v4
- Zustand store with WebSocket streaming message handling
- Chat view: streaming messages, role styles, right panel, drawer buttons
- Agent MD editor with Monaco Editor (AGENT.md + SOUL.md)
- Market page for GitHub team install/publish

Docs:
- plan.md with full progress tracking and next steps

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 21:57:46 +08:00
scorpio
21a7cf0b4e init: add README and PRD
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 21:17:41 +08:00