baro-ai 0.74.0 → 0.74.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.
package/dist/cli.mjs CHANGED
@@ -48692,9 +48692,11 @@ var Supervisor = class extends BaseObserver {
48692
48692
  interventions = 0;
48693
48693
  constructor(opts = {}) {
48694
48694
  super();
48695
+ const noProgressToolCalls = opts.noProgressToolCalls ?? 80;
48695
48696
  this.opts = {
48696
- noProgressToolCalls: opts.noProgressToolCalls ?? 50,
48697
- repeatThreshold: opts.repeatThreshold ?? 6,
48697
+ noProgressToolCalls,
48698
+ repeatThreshold: opts.repeatThreshold ?? 12,
48699
+ repeatsNeedNoProgress: opts.repeatsNeedNoProgress ?? Math.floor(noProgressToolCalls / 2),
48698
48700
  softCapMs: opts.softCapMs ?? 12 * 6e4,
48699
48701
  maxInterventions: opts.maxInterventions ?? 25,
48700
48702
  now: opts.now ?? (() => Date.now())
@@ -48736,8 +48738,8 @@ var Supervisor = class extends BaseObserver {
48736
48738
  if (st.sinceLastChange >= this.opts.noProgressToolCalls) {
48737
48739
  return `${st.sinceLastChange} tool calls with no file change \u2014 exploring, not converging`;
48738
48740
  }
48739
- if (repeats >= this.opts.repeatThreshold) {
48740
- return `same tool call repeated ${repeats}\xD7 \u2014 stuck in a loop`;
48741
+ if (repeats >= this.opts.repeatThreshold && st.sinceLastChange >= this.opts.repeatsNeedNoProgress) {
48742
+ return `same tool call repeated ${repeats}\xD7 with no file change \u2014 stuck in a loop`;
48741
48743
  }
48742
48744
  const elapsed = this.opts.now() - st.startedAt;
48743
48745
  if (elapsed >= this.opts.softCapMs && st.fileChanges === 0) {