@yeaft/webchat-agent 0.0.109 → 0.0.111

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.
Files changed (2) hide show
  1. package/crew.js +14 -0
  2. package/package.json +1 -1
package/crew.js CHANGED
@@ -979,6 +979,20 @@ ${multiRouteAllowed ? '- 决策者可以一次发多个 ROUTE 块来并行分配
979
979
  // 决策者额外 prompt
980
980
  if (role.isDecisionMaker) {
981
981
 
982
+ prompt += `\n\n# 工具使用限制(绝对禁令)
983
+ 你**绝对不能**使用以下工具修改任何文件:
984
+ - Edit 工具 — 禁止
985
+ - Write 工具 — 禁止
986
+ - NotebookEdit 工具 — 禁止
987
+
988
+ 你**可以**使用的工具:
989
+ - Read — 读取文件内容
990
+ - Grep — 搜索代码
991
+ - Glob — 查找文件
992
+ - Bash — 仅限 git 命令(git status/add/commit/push/tag/log/diff)和只读命令
993
+
994
+ 如果你需要修改任何文件(无论多小的改动),必须 ROUTE 给 developer 执行。`;
995
+
982
996
  prompt += `\n\n# 决策者职责
983
997
  你是团队的决策者。其他角色遇到不确定的情况会请求你的决策。
984
998
  - 如果你有足够的信息做出决策,直接决定并 @相关角色执行
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",