open-agents-ai 0.186.7 → 0.186.8

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26341,6 +26341,7 @@ TASK: ${task}` : task;
26341
26341
  let summary = "";
26342
26342
  let bruteForceCycle = 0;
26343
26343
  this._assistantTextEmitted = false;
26344
+ let pendingConstraintWarnings = [];
26344
26345
  let consecutiveTextOnly = 0;
26345
26346
  const MAX_CONSECUTIVE_TEXT_ONLY = 3;
26346
26347
  let narratedToolCallCount = 0;
@@ -26358,6 +26359,11 @@ TASK: ${task}` : task;
26358
26359
  this.emit({ type: "error", content: "Task aborted by user", timestamp: (/* @__PURE__ */ new Date()).toISOString() });
26359
26360
  break;
26360
26361
  }
26362
+ if (pendingConstraintWarnings.length > 0) {
26363
+ const warningMsg = "<constraint-recall>\n" + pendingConstraintWarnings.join("\n") + "\n</constraint-recall>";
26364
+ messages.push({ role: "system", content: warningMsg });
26365
+ pendingConstraintWarnings = [];
26366
+ }
26361
26367
  const now = Date.now();
26362
26368
  if (now > nextSelfEval) {
26363
26369
  selfEvalCount++;
@@ -26816,7 +26822,9 @@ If you're stuck, try a completely different approach. Do NOT repeat what failed
26816
26822
  } else {
26817
26823
  const warnViolations = violations.filter((v) => v.constraint.action === "warn");
26818
26824
  if (warnViolations.length > 0) {
26819
- this.emit({ type: "status", content: `\u26A0\uFE0F Constraint warning: ${warnViolations[0].constraint.message}`, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
26825
+ const warning = formatViolationWarning(warnViolations);
26826
+ this.emit({ type: "status", content: `\u26A0\uFE0F ${warning}`, timestamp: (/* @__PURE__ */ new Date()).toISOString() });
26827
+ pendingConstraintWarnings.push(warning);
26820
26828
  }
26821
26829
  try {
26822
26830
  result = await tool.execute(tc.arguments);
@@ -29313,6 +29321,13 @@ ${description}`
29313
29321
  }
29314
29322
  });
29315
29323
 
29324
+ // packages/orchestrator/dist/constraint-learner.js
29325
+ var init_constraint_learner = __esm({
29326
+ "packages/orchestrator/dist/constraint-learner.js"() {
29327
+ "use strict";
29328
+ }
29329
+ });
29330
+
29316
29331
  // packages/orchestrator/dist/nexusBackend.js
29317
29332
  import { existsSync as existsSync32, statSync as statSync10, openSync, readSync, closeSync, unlinkSync as unlinkSync5, writeFileSync as writeFileSync12 } from "node:fs";
29318
29333
  import { watch as fsWatch } from "node:fs";
@@ -30480,6 +30495,7 @@ var init_dist5 = __esm({
30480
30495
  init_retryController();
30481
30496
  init_agenticRunner();
30482
30497
  init_pressure_gate();
30498
+ init_constraint_learner();
30483
30499
  init_nexusBackend();
30484
30500
  init_cascadeBackend();
30485
30501
  init_flowstatePrompt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.186.7",
3
+ "version": "0.186.8",
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",