@integrity-labs/agt-cli 0.19.3 → 0.19.4
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.
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveChannels,
|
|
23
23
|
resolveDmTarget,
|
|
24
24
|
wrapScheduledTaskPrompt
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-MC3SMG4A.js";
|
|
26
26
|
import {
|
|
27
27
|
findTaskByTemplate,
|
|
28
28
|
getProjectDir,
|
|
@@ -871,6 +871,7 @@ function killAgentChannelProcesses(codeName, opts) {
|
|
|
871
871
|
|
|
872
872
|
// src/lib/channel-input-watchdog.ts
|
|
873
873
|
var STUCK_THRESHOLD_MS = 5e3;
|
|
874
|
+
var ATTACHED_STUCK_THRESHOLD_MS = 15e3;
|
|
874
875
|
var INPUT_BOX_DIVIDER = /^[─━]{10,}/;
|
|
875
876
|
var PROMPT_PREFIX = "\u276F ";
|
|
876
877
|
function decide(pane, prev, now, config2 = {}) {
|
|
@@ -942,17 +943,18 @@ function checkChannelInputs(codeNames, io, config2 = {}, states = sharedStates)
|
|
|
942
943
|
}
|
|
943
944
|
}
|
|
944
945
|
function checkOne(codeName, io, config2, states) {
|
|
945
|
-
if (io.isClientAttached(codeName)) {
|
|
946
|
-
states.delete(codeName);
|
|
947
|
-
return;
|
|
948
|
-
}
|
|
949
946
|
const pane = io.capturePane(codeName);
|
|
950
947
|
if (!pane) {
|
|
951
948
|
states.delete(codeName);
|
|
952
949
|
return;
|
|
953
950
|
}
|
|
951
|
+
const attached = io.isClientAttached(codeName);
|
|
952
|
+
const effectiveConfig = attached ? {
|
|
953
|
+
...config2,
|
|
954
|
+
stuckThresholdMs: config2.attachedStuckThresholdMs ?? ATTACHED_STUCK_THRESHOLD_MS
|
|
955
|
+
} : config2;
|
|
954
956
|
const prev = states.get(codeName);
|
|
955
|
-
const { fire, next } = decide(pane, prev, io.now(),
|
|
957
|
+
const { fire, next } = decide(pane, prev, io.now(), effectiveConfig);
|
|
956
958
|
if (next === void 0) {
|
|
957
959
|
states.delete(codeName);
|
|
958
960
|
} else {
|
|
@@ -1620,7 +1622,7 @@ function clearAgentCaches(agentId, codeName) {
|
|
|
1620
1622
|
var cachedFrameworkVersion = null;
|
|
1621
1623
|
var lastVersionCheckAt = 0;
|
|
1622
1624
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
1623
|
-
var agtCliVersion = true ? "0.19.
|
|
1625
|
+
var agtCliVersion = true ? "0.19.4" : "dev";
|
|
1624
1626
|
function resolveBrewPath(execFileSync2) {
|
|
1625
1627
|
try {
|
|
1626
1628
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|