baro-ai 0.22.2 → 0.22.3

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
@@ -8396,7 +8396,13 @@ var StoryAgent = class extends Participant {
8396
8396
  retryDelayMs: 1500,
8397
8397
  quietTimeoutMs: 2e3,
8398
8398
  maxTurns: 4,
8399
- hardTimeoutSecs: 300,
8399
+ // hardTimeoutSecs <= 0 disables the absolute kill timer.
8400
+ // The previous default of 300s was killing real refactor
8401
+ // work mid-flight (e.g. "delete SEF module" touches dozens
8402
+ // of files and routinely needs >5 minutes); we'd rather
8403
+ // let the per-attempt timeoutSecs and the quiet-timer
8404
+ // close out idle agents than guillotine a productive one.
8405
+ hardTimeoutSecs: 0,
8400
8406
  ...spec
8401
8407
  };
8402
8408
  this.done = new Promise((res) => {
@@ -8457,10 +8463,10 @@ var StoryAgent = class extends Participant {
8457
8463
  let lastSummary = null;
8458
8464
  let lastError = null;
8459
8465
  let hardTimedOut = false;
8460
- const hardTimer = setTimeout(() => {
8466
+ const hardTimer = this.spec.hardTimeoutSecs > 0 ? setTimeout(() => {
8461
8467
  hardTimedOut = true;
8462
8468
  this.currentClaude?.abort();
8463
- }, this.spec.hardTimeoutSecs * 1e3);
8469
+ }, this.spec.hardTimeoutSecs * 1e3) : null;
8464
8470
  try {
8465
8471
  for (let attempt = 1; attempt <= maxAttempts; attempt++) {
8466
8472
  if (hardTimedOut) {
@@ -8503,7 +8509,7 @@ var StoryAgent = class extends Participant {
8503
8509
  }
8504
8510
  }
8505
8511
  } finally {
8506
- clearTimeout(hardTimer);
8512
+ if (hardTimer !== null) clearTimeout(hardTimer);
8507
8513
  }
8508
8514
  const durationSecs = Math.round(
8509
8515
  (Date.now() - (this.startedAt ?? Date.now())) / 1e3