@yeaft/webchat-agent 1.0.426 → 1.0.427
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.427"}
|
package/package.json
CHANGED
package/yeaft/prompts.js
CHANGED
|
@@ -472,9 +472,9 @@ const TOOL_GUIDANCE_GROUPS = Object.freeze([
|
|
|
472
472
|
zh: 'Shell 命令保持非交互、确定性并设置合理 timeout;包含空格的路径要引用,未经授权不要执行破坏性操作。',
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
|
-
tools: ['
|
|
476
|
-
en: 'For non-trivial multi-step work,
|
|
477
|
-
zh: '
|
|
475
|
+
tools: ['TodoWrite'],
|
|
476
|
+
en: 'For non-trivial multi-step work, write a brief visible plan and call `TodoWrite` in the same assistant response as the first independent work tools. Do not spend a separate model round entering planning mode, and do not stop after planning unless user input genuinely blocks the first step.',
|
|
477
|
+
zh: '非平凡多步骤任务先写简短可见计划,并在同一个 assistant response 中把 `TodoWrite` 与第一批独立工作工具一起发出。不要用单独的模型回合进入规划模式;只有用户信息确实阻塞第一步时才在规划后停下。',
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
tools: ['SpawnAgent', 'PromptAgent', 'WaitAgent', 'CloseAgent', 'ListAgents'],
|
|
@@ -20,7 +20,6 @@ export const ALWAYS_VISIBLE_TOOL_NAMES = Object.freeze([
|
|
|
20
20
|
'Glob',
|
|
21
21
|
'Grep',
|
|
22
22
|
'ListDir',
|
|
23
|
-
'StartPlan',
|
|
24
23
|
'TodoWrite',
|
|
25
24
|
'ViewImage',
|
|
26
25
|
]);
|
|
@@ -52,6 +51,11 @@ export const CONDITIONAL_BUILTIN_TOOL_NAMES = new Set([
|
|
|
52
51
|
'ListAgents',
|
|
53
52
|
'RouteForward',
|
|
54
53
|
'CreateWorkItem',
|
|
54
|
+
// Legacy compatibility only. New planning is a single provider response:
|
|
55
|
+
// visible prose + TodoWrite + the first independent work tools. Keeping the
|
|
56
|
+
// definition registered lets old direct callers resolve it without paying a
|
|
57
|
+
// dedicated StartPlan -> provider -> TodoWrite round trip on every new task.
|
|
58
|
+
'StartPlan',
|
|
55
59
|
'JsRepl',
|
|
56
60
|
'NotebookEdit',
|
|
57
61
|
'ImageGeneration',
|
|
@@ -33,6 +33,11 @@ WHEN TO USE:
|
|
|
33
33
|
- The user gave you a list of things to do (numbered/comma-separated), or
|
|
34
34
|
- You're about to start a non-trivial, multi-file change.
|
|
35
35
|
|
|
36
|
+
FIRST CALL — PLAN WITHOUT AN EXTRA MODEL ROUND:
|
|
37
|
+
- Write a short visible prose plan in the same assistant response: problem, approach, and risks.
|
|
38
|
+
- Call TodoWrite directly; do not call a separate planning-mode tool first.
|
|
39
|
+
- If the first work tools and arguments are known, emit them beside TodoWrite in that same response.
|
|
40
|
+
|
|
36
41
|
HOW TO USE:
|
|
37
42
|
- First call: enumerate all the todos with status "pending", set exactly one to "in_progress".
|
|
38
43
|
- Each subsequent call: rewrite the FULL list — mark the just-finished item "completed", mark the next item "in_progress".
|
|
@@ -53,6 +58,11 @@ WHEN NOT TO USE:
|
|
|
53
58
|
- 用户给了你一份待办列表(编号/逗号分隔),或
|
|
54
59
|
- 你即将开始一个非平凡的多文件改动。
|
|
55
60
|
|
|
61
|
+
首次调用——不要浪费额外模型回合进入规划模式:
|
|
62
|
+
- 在同一个 assistant response 中先写简短可见计划:问题、方案和风险。
|
|
63
|
+
- 直接调用 TodoWrite,不要先调用单独的规划模式工具。
|
|
64
|
+
- 如果第一批工作工具及参数已经确定,把它们和 TodoWrite 在同一响应中发出。
|
|
65
|
+
|
|
56
66
|
如何使用:
|
|
57
67
|
- 首次调用:枚举所有 todo,状态为 "pending",将其中恰好一个设为 "in_progress"。
|
|
58
68
|
- 每次后续调用:重写完整列表——将刚完成的项标记为 "completed",将下一项标记为 "in_progress"。
|