@integrity-labs/agt-cli 0.27.75 → 0.27.76

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/bin/agt.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-AWAKTFWY.js";
31
+ } from "../chunk-NANSSDFG.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -4930,7 +4930,7 @@ import { execFileSync, execSync } from "child_process";
4930
4930
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4931
4931
  import chalk18 from "chalk";
4932
4932
  import ora16 from "ora";
4933
- var cliVersion = true ? "0.27.75" : "dev";
4933
+ var cliVersion = true ? "0.27.76" : "dev";
4934
4934
  async function fetchLatestVersion() {
4935
4935
  const host2 = getHost();
4936
4936
  if (!host2) return null;
@@ -5853,7 +5853,7 @@ function handleError(err) {
5853
5853
  }
5854
5854
 
5855
5855
  // src/bin/agt.ts
5856
- var cliVersion2 = true ? "0.27.75" : "dev";
5856
+ var cliVersion2 = true ? "0.27.76" : "dev";
5857
5857
  var program = new Command();
5858
5858
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
5859
5859
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -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