@yeaft/webchat-agent 0.0.129 → 0.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/crew.js +7 -6
- package/package.json +1 -1
package/crew.js
CHANGED
|
@@ -796,15 +796,16 @@ ${roles.length > 0 ? roles.map(r => `- ${roleLabel(r)}(${r.name}): ${r.descripti
|
|
|
796
796
|
2. 等待其他角色的产出但迟迟没有收到
|
|
797
797
|
3. 任务描述不清楚或有歧义,无法判断正确做法
|
|
798
798
|
4. 遇到超出自己职责范围的问题
|
|
799
|
-
5. 连续尝试
|
|
799
|
+
5. 连续尝试5次相同操作仍然失败
|
|
800
800
|
上报时请说明:你在做什么任务、卡在哪里、你认为需要谁来协助。
|
|
801
801
|
|
|
802
802
|
# Worktree 隔离规则
|
|
803
803
|
- 多实例模式下,每个开发组(dev-N/rev-N/test-N)在独立的 git worktree 中工作
|
|
804
804
|
- 每个角色必须在自己的 worktree 路径下操作代码,绝对不要操作项目主目录
|
|
805
|
-
-
|
|
806
|
-
-
|
|
807
|
-
-
|
|
805
|
+
- 绝对禁止在其他开发组的 branch 或 worktree 中操作代码
|
|
806
|
+
- 代码完成并通过 review 后,dev 自己提 PR 合并到 main 分支
|
|
807
|
+
- PM 不做 cherry-pick,只负责打 tag
|
|
808
|
+
- 合并完成后清理旧的 worktree
|
|
808
809
|
- 每次新任务/新 feature 必须基于最新的 main 分支创建新的 worktree,确保在最新代码上开发
|
|
809
810
|
- 禁止复用旧的 worktree 开发新任务,因为旧 worktree 的代码基线可能已过时
|
|
810
811
|
|
|
@@ -832,8 +833,8 @@ ${role.claudeMd || role.description}
|
|
|
832
833
|
# 代码工作目录(重要!)
|
|
833
834
|
${role.workDir}
|
|
834
835
|
所有代码操作必须在此 worktree 路径下进行。
|
|
835
|
-
|
|
836
|
-
|
|
836
|
+
绝对禁止直接操作项目主目录或其他组的 worktree,否则会覆盖其他开发组的修改。
|
|
837
|
+
代码完成并通过 review 后,自己提 PR 合并到 main。
|
|
837
838
|
此 worktree 仅用于当前任务,合并后会被清理,新任务会创建新的 worktree。
|
|
838
839
|
`;
|
|
839
840
|
}
|