open-agents-ai 0.187.292 → 0.187.293
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/dist/index.js +17 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -329144,19 +329144,27 @@ function createTaskCompleteTool(modelTier) {
|
|
|
329144
329144
|
(t2) => t2.status === "pending" || t2.status === "in_progress" || t2.status === "blocked"
|
|
329145
329145
|
);
|
|
329146
329146
|
if (incomplete.length > 0) {
|
|
329147
|
-
const incompleteList = incomplete.slice(0,
|
|
329148
|
-
const more = incomplete.length >
|
|
329149
|
-
... +${incomplete.length -
|
|
329147
|
+
const incompleteList = incomplete.slice(0, 20).map((t2) => ` - [${t2.status}] ${t2.content}${t2.blocker ? ` (blocked: ${t2.blocker})` : ""}`).join("\n");
|
|
329148
|
+
const more = incomplete.length > 20 ? `
|
|
329149
|
+
... +${incomplete.length - 20} more` : "";
|
|
329150
|
+
const guidance = `You attempted to call task_complete, but ${incomplete.length} todo item(s) remain. Before finishing, do ALL of the following:
|
|
329151
|
+
1) For each item BY NAME, state if it is completed and provide OBJECTIVE EVIDENCE (file diffs, test output, logs, or concrete code references).
|
|
329152
|
+
2) If any item is not completed, proceed to complete them IN ORDER.
|
|
329153
|
+
3) After all items are truly implemented, call todo_write to mark every item as "completed".
|
|
329154
|
+
4) ONLY AFTER updating the todo list, call task_complete with a concise final summary.
|
|
329155
|
+
|
|
329156
|
+
Respond concisely in this shape:
|
|
329157
|
+
- verify: [{ name: "<exact item text>", completed: true|false, evidence: "<objective proof>" }, ...]
|
|
329158
|
+
- next: "what you will do next OR the exact todo_write(...) call to update statuses"`;
|
|
329150
329159
|
return {
|
|
329151
329160
|
success: false,
|
|
329152
329161
|
output: "",
|
|
329153
|
-
error: `task_complete BLOCKED — ${incomplete.length} todo item(s) still incomplete.
|
|
329154
|
-
1. Continue working on the remaining items, OR
|
|
329155
|
-
2. If they're actually done, call todo_write with status='completed' for each one, THEN call task_complete again.
|
|
329156
|
-
3. If you are in an interactive session (call, chat, monitoring), RESUME THE LOOP — call your next interaction tool NOW.
|
|
329162
|
+
error: `task_complete BLOCKED — ${incomplete.length} todo item(s) still incomplete.
|
|
329157
329163
|
|
|
329158
329164
|
Incomplete items:
|
|
329159
|
-
${incompleteList}${more}
|
|
329165
|
+
${incompleteList}${more}
|
|
329166
|
+
|
|
329167
|
+
` + guidance
|
|
329160
329168
|
};
|
|
329161
329169
|
}
|
|
329162
329170
|
try {
|
|
@@ -330825,6 +330833,7 @@ ${entry.fullContent}`
|
|
|
330825
330833
|
});
|
|
330826
330834
|
const sessionId = `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
330827
330835
|
try {
|
|
330836
|
+
process.env["OA_SESSION_ID"] = sessionId;
|
|
330828
330837
|
setTodoSessionId(sessionId);
|
|
330829
330838
|
setTuiTasksSession(sessionId);
|
|
330830
330839
|
} catch {
|
package/package.json
CHANGED