open-agents-ai 0.187.414 → 0.187.415

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 CHANGED
@@ -517946,17 +517946,25 @@ ${sr.result.output}`;
517946
517946
  if (loopInterventionCount >= maxInterventions) {
517947
517947
  this.emit({
517948
517948
  type: "status",
517949
- content: `Loop circuit breaker: ${loopInterventionCount} interventions failed forcing completion`,
517949
+ content: `Loop circuit breaker: ${loopInterventionCount} interventions — requesting user guidance`,
517950
517950
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
517951
517951
  });
517952
- const partialResults = this._taskState.completedSteps.length > 0 ? this._taskState.completedSteps.join(". ") : `I searched for information but got stuck in a repetitive loop. Here's what I found before the loop: ${topRepeated}`;
517953
- summary = partialResults;
517954
- completed = true;
517955
- if (!this._assistantTextEmitted) {
517956
- this.emit({ type: "assistant_text", content: partialResults, turn, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
517957
- this._assistantTextEmitted = true;
517958
- }
517959
- break;
517952
+ const partialResults = this._taskState.completedSteps.length > 0 ? this._taskState.completedSteps.join(". ") : `Progress made before loop: ${topRepeated}`;
517953
+ messages2.push({
517954
+ role: "system",
517955
+ content: `LOOP CIRCUIT BREAKER: ${loopInterventionCount} interventions attempted but repetition continues.
517956
+
517957
+ MANDATORY: You MUST call ask_user to request guidance from the user. Present your options:
517958
+ 1. Try a completely different approach
517959
+ 2. Provide more context or clarification
517960
+ 3. Accept partial results and pivot to a related task
517961
+ 4. Abort this specific subtask and move on
517962
+
517963
+ Your partial progress: ${partialResults}
517964
+
517965
+ Call ask_user(question="I've hit a repetitive loop. How would you like me to proceed?", options=[...]) NOW.`
517966
+ });
517967
+ loopInterventionCount = 0;
517960
517968
  }
517961
517969
  const findings = [];
517962
517970
  for (const [key, entry] of recentToolResults) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.414",
3
+ "version": "0.187.415",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.414",
9
+ "version": "0.187.415",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.414",
3
+ "version": "0.187.415",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",