@integrity-labs/agt-cli 0.27.91 → 0.27.92
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 +3 -3
- package/dist/{chunk-ALXQEKLP.js → chunk-FXXCD523.js} +1 -1
- package/dist/{chunk-4MZWINDQ.js → chunk-RDIDG5IF.js} +25 -5
- package/dist/{chunk-4MZWINDQ.js.map → chunk-RDIDG5IF.js.map} +1 -1
- package/dist/{claude-pair-runtime-XCZUY66M.js → claude-pair-runtime-JVMK3POM.js} +2 -2
- package/dist/lib/manager-worker.js +13 -6
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +1 -1
- package/dist/mcp/telegram-channel.js +1 -1
- package/dist/{persistent-session-BMP74QGP.js → persistent-session-SPGHFGCF.js} +2 -2
- package/dist/{responsiveness-probe-AFOPQEFX.js → responsiveness-probe-PR7RS6JB.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-ALXQEKLP.js.map → chunk-FXXCD523.js.map} +0 -0
- /package/dist/{claude-pair-runtime-XCZUY66M.js.map → claude-pair-runtime-JVMK3POM.js.map} +0 -0
- /package/dist/{persistent-session-BMP74QGP.js.map → persistent-session-SPGHFGCF.js.map} +0 -0
- /package/dist/{responsiveness-probe-AFOPQEFX.js.map → responsiveness-probe-PR7RS6JB.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
success,
|
|
29
29
|
table,
|
|
30
30
|
warn
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-FXXCD523.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.
|
|
4937
|
+
var cliVersion = true ? "0.27.92" : "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.
|
|
5860
|
+
var cliVersion2 = true ? "0.27.92" : "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) => {
|
|
@@ -403,9 +403,15 @@ function simpleTextHash(s) {
|
|
|
403
403
|
// src/lib/channel-input-watchdog.ts
|
|
404
404
|
var STUCK_THRESHOLD_MS = 5e3;
|
|
405
405
|
var MAX_ENTER_FIRES = 3;
|
|
406
|
+
var DISTURB_HEAL_KEYS = ["x", "BSpace", "Enter"];
|
|
407
|
+
var DISTURB_INTER_KEY_DELAY_MS = 200;
|
|
406
408
|
var ATTACHED_STUCK_THRESHOLD_MS = 15e3;
|
|
407
409
|
var INPUT_BOX_DIVIDER = /^[─━]{10,}/;
|
|
408
410
|
var PROMPT_PREFIX = "\u276F ";
|
|
411
|
+
function selectFireKeys(attempt, healMode = "disturb") {
|
|
412
|
+
if (healMode === "disturb" && attempt >= 2) return DISTURB_HEAL_KEYS;
|
|
413
|
+
return ["Enter"];
|
|
414
|
+
}
|
|
409
415
|
function decide(pane, prev, now, config = {}) {
|
|
410
416
|
const threshold = config.stuckThresholdMs ?? STUCK_THRESHOLD_MS;
|
|
411
417
|
const maxFires = config.maxEnterFires ?? MAX_ENTER_FIRES;
|
|
@@ -496,6 +502,11 @@ function checkOne(codeName, io, config, states) {
|
|
|
496
502
|
const { fire, dialog, gaveUp, next } = decide(pane, prev, io.now(), effectiveConfig);
|
|
497
503
|
if (next === void 0) {
|
|
498
504
|
states.delete(codeName);
|
|
505
|
+
if (prev && prev.fires > 0) {
|
|
506
|
+
io.log(
|
|
507
|
+
`[channel-input-watchdog] '${codeName}': recovered after ${prev.fires} fire(s) \u2014 input submitted (input_hash=${prev.lastInputHash})`
|
|
508
|
+
);
|
|
509
|
+
}
|
|
499
510
|
} else {
|
|
500
511
|
states.set(codeName, next);
|
|
501
512
|
}
|
|
@@ -518,10 +529,19 @@ function checkOne(codeName, io, config, states) {
|
|
|
518
529
|
}
|
|
519
530
|
if (fire) {
|
|
520
531
|
const maxFires = effectiveConfig.maxEnterFires ?? MAX_ENTER_FIRES;
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
)
|
|
524
|
-
|
|
532
|
+
const attempt = next?.fires ?? 1;
|
|
533
|
+
const keys = selectFireKeys(attempt, effectiveConfig.healMode);
|
|
534
|
+
if (keys.length === 1 && keys[0] === "Enter") {
|
|
535
|
+
io.log(
|
|
536
|
+
`[channel-input-watchdog] '${codeName}': stuck channel input \u2014 firing Enter (attempt ${attempt}/${maxFires}, input_hash=${hash}, len=${text.length})`
|
|
537
|
+
);
|
|
538
|
+
io.sendEnter(codeName);
|
|
539
|
+
} else {
|
|
540
|
+
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})`
|
|
542
|
+
);
|
|
543
|
+
io.sendKeys(codeName, keys, DISTURB_INTER_KEY_DELAY_MS);
|
|
544
|
+
}
|
|
525
545
|
}
|
|
526
546
|
}
|
|
527
547
|
var sharedStates = /* @__PURE__ */ new Map();
|
|
@@ -1528,4 +1548,4 @@ export {
|
|
|
1528
1548
|
stopAllSessionsAndWait,
|
|
1529
1549
|
getProjectDir
|
|
1530
1550
|
};
|
|
1531
|
-
//# sourceMappingURL=chunk-
|
|
1551
|
+
//# sourceMappingURL=chunk-RDIDG5IF.js.map
|