@integrity-labs/agt-cli 0.27.75 → 0.27.77

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.
@@ -7488,4 +7488,4 @@ export {
7488
7488
  managerInstallSystemUnitCommand,
7489
7489
  managerUninstallSystemUnitCommand
7490
7490
  };
7491
- //# sourceMappingURL=chunk-AWAKTFWY.js.map
7491
+ //# sourceMappingURL=chunk-CMOPDYMM.js.map
@@ -444,6 +444,9 @@ function checkChannelInputs(codeNames, io, config = {}, states = sharedStates) {
444
444
  for (const key of [...states.keys()]) {
445
445
  if (!live.has(key)) states.delete(key);
446
446
  }
447
+ for (const key of [...giveUpCounts.keys()]) {
448
+ if (!live.has(key)) giveUpCounts.delete(key);
449
+ }
447
450
  }
448
451
  function checkOne(codeName, io, config, states) {
449
452
  const pane = io.capturePane(codeName);
@@ -477,6 +480,7 @@ function checkOne(codeName, io, config, states) {
477
480
  io.log(
478
481
  `[channel-input-watchdog] '${codeName}': GIVING UP after ${maxFires} Enter attempts \u2014 input remains unsubmitted (input_hash=${hash}, len=${text.length})`
479
482
  );
483
+ giveUpCounts.set(codeName, (giveUpCounts.get(codeName) ?? 0) + 1);
480
484
  return;
481
485
  }
482
486
  if (fire) {
@@ -488,6 +492,12 @@ function checkOne(codeName, io, config, states) {
488
492
  }
489
493
  }
490
494
  var sharedStates = /* @__PURE__ */ new Map();
495
+ var giveUpCounts = /* @__PURE__ */ new Map();
496
+ function takeWatchdogGiveUpCount(codeName) {
497
+ const count = giveUpCounts.get(codeName) ?? 0;
498
+ giveUpCounts.delete(codeName);
499
+ return count;
500
+ }
491
501
 
492
502
  // src/lib/persistent-session.ts
493
503
  function syncClaudeCredsToRoot() {
@@ -1418,6 +1428,7 @@ export {
1418
1428
  isStaleForToday,
1419
1429
  peekCurrentSession,
1420
1430
  checkChannelInputs,
1431
+ takeWatchdogGiveUpCount,
1421
1432
  resolveClaudeBinary,
1422
1433
  writePersistentClaudeWrapper,
1423
1434
  paneLogPath,
@@ -1441,4 +1452,4 @@ export {
1441
1452
  stopAllSessionsAndWait,
1442
1453
  getProjectDir
1443
1454
  };
1444
- //# sourceMappingURL=chunk-VTAXNSGS.js.map
1455
+ //# sourceMappingURL=chunk-FAR2FJBQ.js.map