@integrity-labs/agt-cli 0.27.95 → 0.27.97

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-A4WZH6AO.js";
31
+ } from "../chunk-6UQ6RPGV.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.95" : "dev";
4937
+ var cliVersion = true ? "0.27.97" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.95" : "dev";
5860
+ var cliVersion2 = true ? "0.27.97" : "dev";
5861
5861
  var program = new Command();
5862
5862
  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");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7585,4 +7585,4 @@ export {
7585
7585
  managerInstallSystemUnitCommand,
7586
7586
  managerUninstallSystemUnitCommand
7587
7587
  };
7588
- //# sourceMappingURL=chunk-A4WZH6AO.js.map
7588
+ //# sourceMappingURL=chunk-6UQ6RPGV.js.map
@@ -423,8 +423,8 @@ function decide(pane, prev, now, config = {}) {
423
423
  if (!inputText) {
424
424
  return { fire: false, next: void 0 };
425
425
  }
426
- if (isActivelyProcessing(pane)) {
427
- return { fire: false, next: prev };
426
+ if (inputText === "\u2026") {
427
+ return { fire: false, next: void 0 };
428
428
  }
429
429
  const hash = simpleTextHash(inputText);
430
430
  if (!prev || prev.lastInputHash !== hash) {
@@ -460,13 +460,14 @@ function extractInputBoxText(pane) {
460
460
  }
461
461
  return null;
462
462
  }
463
+ var SPINNER_GLYPHS = ["\u273B", "\u273D", "\u2736", "\u2733", "\u2722"];
463
464
  function isActivelyProcessing(pane) {
464
465
  const lines = pane.split("\n");
465
466
  for (let i = lines.length - 1; i >= 0; i--) {
466
467
  const line = (lines[i] ?? "").trim();
467
- if (!line.startsWith("\u273B")) continue;
468
+ if (!SPINNER_GLYPHS.some((g) => line.startsWith(g))) continue;
468
469
  if (/\bfor\s+\d+s\s*$/.test(line)) return false;
469
- if (/\b\w+ing[…\.]{0,3}\s*$/i.test(line)) return true;
470
+ if (/\b\w+ing[…\.]{0,3}(\s*\([^)]*\))?\s*$/i.test(line)) return true;
470
471
  return false;
471
472
  }
472
473
  return false;
@@ -530,15 +531,16 @@ function checkOne(codeName, io, config, states) {
530
531
  if (fire) {
531
532
  const maxFires = effectiveConfig.maxEnterFires ?? MAX_ENTER_FIRES;
532
533
  const attempt = next?.fires ?? 1;
534
+ const busy = isActivelyProcessing(pane);
533
535
  const keys = selectFireKeys(attempt, effectiveConfig.healMode);
534
536
  if (keys.length === 1 && keys[0] === "Enter") {
535
537
  io.log(
536
- `[channel-input-watchdog] '${codeName}': stuck channel input \u2014 firing Enter (attempt ${attempt}/${maxFires}, input_hash=${hash}, len=${text.length})`
538
+ `[channel-input-watchdog] '${codeName}': stuck channel input \u2014 firing Enter (attempt ${attempt}/${maxFires}, busy=${busy}, input_hash=${hash}, len=${text.length})`
537
539
  );
538
540
  io.sendEnter(codeName);
539
541
  } else {
540
542
  io.log(
541
- `[channel-input-watchdog] '${codeName}': stuck channel input \u2014 escalating to disturb sequence ${keys.join("\u2192")} (attempt ${attempt}/${maxFires}, input_hash=${hash}, len=${text.length})`
543
+ `[channel-input-watchdog] '${codeName}': stuck channel input \u2014 escalating to disturb sequence ${keys.join("\u2192")} (attempt ${attempt}/${maxFires}, busy=${busy}, input_hash=${hash}, len=${text.length})`
542
544
  );
543
545
  io.sendKeys(codeName, keys, DISTURB_INTER_KEY_DELAY_MS);
544
546
  }
@@ -1548,4 +1550,4 @@ export {
1548
1550
  stopAllSessionsAndWait,
1549
1551
  getProjectDir
1550
1552
  };
1551
- //# sourceMappingURL=chunk-RDIDG5IF.js.map
1553
+ //# sourceMappingURL=chunk-MBHA6PEN.js.map