open-agents-ai 0.187.19 → 0.187.21
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 +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -260343,7 +260343,7 @@ ${ctx3}`,
|
|
|
260343
260343
|
content: `Microcompact: cleared ${cleared} old tool result(s), keeping ${keepResults} recent`,
|
|
260344
260344
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
260345
260345
|
});
|
|
260346
|
-
if (!this._microcompactHintEmitted) {
|
|
260346
|
+
if (!this._microcompactHintEmitted && this.tools.has("memory_write")) {
|
|
260347
260347
|
this._microcompactHintEmitted = true;
|
|
260348
260348
|
this.pendingUserMessages.push(`[SYSTEM] Older tool results have been cleared to save context. If you discovered important patterns or facts, use memory_write to persist them before they are lost from context.`);
|
|
260349
260349
|
}
|
|
@@ -261130,7 +261130,7 @@ If you're stuck, try a completely different approach. Do NOT repeat what failed
|
|
|
261130
261130
|
reason: hookCheck.reason ?? "hook",
|
|
261131
261131
|
source: "hook"
|
|
261132
261132
|
});
|
|
261133
|
-
if (this._hookDenyHintCount < 3) {
|
|
261133
|
+
if (this._hookDenyHintCount < 3 && this.tools.has("memory_write")) {
|
|
261134
261134
|
this._hookDenyHintCount++;
|
|
261135
261135
|
this.pendingUserMessages.push(`[SYSTEM] Tool "${tc.name}" was blocked: ${hookCheck.reason}. If this constraint should persist across sessions, use memory_write to save it (e.g., memory_write(topic="constraints", key="${tc.name}_blocked", value="${(hookCheck.reason ?? "hook").slice(0, 80)}")).`);
|
|
261136
261136
|
}
|
|
@@ -261229,7 +261229,7 @@ Full content available via: repl_exec(code="data = retrieve('${handleId}')") or
|
|
|
261229
261229
|
if (this._taskState.failedApproaches.length > 10) {
|
|
261230
261230
|
this._taskState.failedApproaches.shift();
|
|
261231
261231
|
}
|
|
261232
|
-
if (this._taskState.failedApproaches.length === 3) {
|
|
261232
|
+
if (this._taskState.failedApproaches.length === 3 && this.tools.has("memory_write")) {
|
|
261233
261233
|
this.pendingUserMessages.push(`[SYSTEM] You have ${this._taskState.failedApproaches.length} failed approaches this session. Consider using memory_write to save these failure patterns so you avoid them in future sessions:
|
|
261234
261234
|
` + this._taskState.failedApproaches.map((f2) => `- ${f2}`).join("\n"));
|
|
261235
261235
|
}
|
|
@@ -295588,9 +295588,7 @@ OUTPUT: Call task_complete with JSON:
|
|
|
295588
295588
|
new MemoryReadTool(this.repoRoot),
|
|
295589
295589
|
new MemorySearchTool(this.repoRoot)
|
|
295590
295590
|
];
|
|
295591
|
-
|
|
295592
|
-
tools.push(new MemoryWriteTool(this.repoRoot));
|
|
295593
|
-
}
|
|
295591
|
+
tools.push(new MemoryWriteTool(this.repoRoot));
|
|
295594
295592
|
runner.registerTools([
|
|
295595
295593
|
...tools.map(adaptTool3),
|
|
295596
295594
|
{
|
package/package.json
CHANGED