@hyperwindmill/caretaker-cli 0.26.0 → 0.26.1
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":3,"file":"task_strategy.d.ts","sourceRoot":"","sources":["../../../../src/cli/web/scheduler/task_strategy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task_strategy.d.ts","sourceRoot":"","sources":["../../../../src/cli/web/scheduler/task_strategy.ts"],"names":[],"mappings":"AA8HA,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAidnE"}
|
|
@@ -42,12 +42,15 @@ On each invocation:
|
|
|
42
42
|
- which tools you used and what the results were
|
|
43
43
|
- what the recommended next step is
|
|
44
44
|
- any issues encountered or decisions made
|
|
45
|
-
7.
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
7. End the invocation with exactly ONE of these, in this order of checks:
|
|
46
|
+
- **The objective is met and every checklist item is done → call \`task_complete\`.**
|
|
47
|
+
Never \`task_yield\` a finished task: a yielded task stays active and runs again.
|
|
48
|
+
- You need human input to proceed → call \`task_block\` with a clear explanation.
|
|
49
|
+
- Work remains → call \`task_yield\` with a short note on the next step (or simply stop);
|
|
50
|
+
you will continue in the next cycle.
|
|
48
51
|
|
|
49
|
-
Do
|
|
50
|
-
|
|
52
|
+
Do ONE meaningful step per invocation, then document and end it as above.
|
|
53
|
+
If that step finishes the objective, complete the task now — do not leave it for another cycle.
|
|
51
54
|
|
|
52
55
|
TASK ID: ${taskId}
|
|
53
56
|
TITLE: ${taskTitle}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task_tools.d.ts","sourceRoot":"","sources":["../../../../src/harness/tools/builtin/task_tools.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAc,MAAM,aAAa,CAAC;AAepD,eAAO,MAAM,gBAAgB,EAAE,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,IA8B/B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IA0D5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,IAgD9B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,IAuC5B,CAAC"}
|
|
@@ -242,7 +242,7 @@ export const addMessageTool = {
|
|
|
242
242
|
};
|
|
243
243
|
export const completeTaskTool = {
|
|
244
244
|
name: 'mcp__task__task_complete',
|
|
245
|
-
description: 'Mark the task as done.
|
|
245
|
+
description: 'Mark the task as done. Call it as soon as the objective is fully achieved and every checklist item is done, in the same invocation that finishes the work. Do not task_yield a finished task: it would stay active and run again.',
|
|
246
246
|
parameters: {
|
|
247
247
|
type: 'object',
|
|
248
248
|
properties: {
|
|
@@ -317,7 +317,7 @@ export const blockTaskTool = {
|
|
|
317
317
|
};
|
|
318
318
|
export const yieldTaskTool = {
|
|
319
319
|
name: 'mcp__task__task_yield',
|
|
320
|
-
description: '
|
|
320
|
+
description: 'End this invocation while work still REMAINS: the task stays active and the next cycle continues it. Never use it to finish — when the objective is met, call task_complete instead.',
|
|
321
321
|
parameters: {
|
|
322
322
|
type: 'object',
|
|
323
323
|
properties: {
|
|
@@ -345,7 +345,12 @@ export const yieldTaskTool = {
|
|
|
345
345
|
agentId: null,
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
// Flash-class models often yield a finished task instead of completing it.
|
|
349
|
+
// Not auto-completed: a done checklist does not prove the objective is met.
|
|
350
|
+
const allDone = task.checklist.length > 0 && task.checklist.every((c) => c.status === 'done');
|
|
351
|
+
return ok(allDone
|
|
352
|
+
? { reminder: 'Every checklist item is done. If the objective is met, call task_complete now: a yielded task stays active and runs another cycle.' }
|
|
353
|
+
: {});
|
|
349
354
|
},
|
|
350
355
|
};
|
|
351
356
|
export const projectListTool = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperwindmill/caretaker-cli",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Caretaker — in-process agent harness, TUI, file-based state.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"typescript": "^5.9.3",
|
|
90
90
|
"typescript-eslint": "^8.59.2",
|
|
91
91
|
"zod": "^4.4.3",
|
|
92
|
-
"caretaker-types": "0.26.
|
|
93
|
-
"webview-ui": "0.26.
|
|
92
|
+
"caretaker-types": "0.26.1",
|
|
93
|
+
"webview-ui": "0.26.1"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@agentclientprotocol/sdk": "^1.4.0",
|