@integrity-labs/agt-cli 0.28.1022 → 0.28.1024
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 +5 -5
- package/dist/{chunk-QXJWRE64.js → chunk-5XPZF6FT.js} +30 -2
- package/dist/{chunk-QXJWRE64.js.map → chunk-5XPZF6FT.js.map} +1 -1
- package/dist/{chunk-X7SX25N6.js → chunk-BHKFVSIX.js} +10 -8
- package/dist/{chunk-X7SX25N6.js.map → chunk-BHKFVSIX.js.map} +1 -1
- package/dist/{chunk-5MUSHNVX.js → chunk-HVTL2N3I.js} +4 -4
- package/dist/{claude-pair-runtime-KKFNGRSA.js → claude-pair-runtime-IAO6B35F.js} +2 -2
- package/dist/lib/manager-worker.js +271 -15
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +45 -11
- package/dist/mcp/index.js +9 -7
- package/dist/mcp/origami.js +9 -7
- package/dist/mcp/slack-channel.js +45 -11
- package/dist/mcp/telegram-channel.js +45 -11
- package/dist/{persistent-session-ZQDNCKQH.js → persistent-session-GZV4EXKD.js} +3 -3
- package/dist/{responsiveness-probe-Q27WU2MW.js → responsiveness-probe-WRHLHQCE.js} +3 -3
- package/dist/{session-auth-dead-JJUKS75B.js → session-auth-dead-ZKC2HH6T.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-5MUSHNVX.js.map → chunk-HVTL2N3I.js.map} +0 -0
- /package/dist/{claude-pair-runtime-KKFNGRSA.js.map → claude-pair-runtime-IAO6B35F.js.map} +0 -0
- /package/dist/{persistent-session-ZQDNCKQH.js.map → persistent-session-GZV4EXKD.js.map} +0 -0
- /package/dist/{responsiveness-probe-Q27WU2MW.js.map → responsiveness-probe-WRHLHQCE.js.map} +0 -0
- /package/dist/{session-auth-dead-JJUKS75B.js.map → session-auth-dead-ZKC2HH6T.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-HVTL2N3I.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-5XPZF6FT.js";
|
|
49
49
|
import {
|
|
50
50
|
AnchorSessionClient,
|
|
51
51
|
CHANNEL_REGISTRY,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
serializeManifestForSlackCli,
|
|
80
80
|
sessionFileExists,
|
|
81
81
|
sessionTranscriptDir
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-BHKFVSIX.js";
|
|
83
83
|
import "../chunk-DHWNVVX4.js";
|
|
84
84
|
import "../chunk-XWVM4KPK.js";
|
|
85
85
|
import "../chunk-EL5MWGGH.js";
|
|
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5474
5474
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5475
5475
|
import chalk18 from "chalk";
|
|
5476
5476
|
import ora16 from "ora";
|
|
5477
|
-
var cliVersion = true ? "0.28.
|
|
5477
|
+
var cliVersion = true ? "0.28.1024" : "dev";
|
|
5478
5478
|
async function fetchLatestVersion() {
|
|
5479
5479
|
const host2 = getHost();
|
|
5480
5480
|
if (!host2) return null;
|
|
@@ -6734,7 +6734,7 @@ function handleError(err) {
|
|
|
6734
6734
|
}
|
|
6735
6735
|
|
|
6736
6736
|
// src/bin/agt.ts
|
|
6737
|
-
var cliVersion2 = true ? "0.28.
|
|
6737
|
+
var cliVersion2 = true ? "0.28.1024" : "dev";
|
|
6738
6738
|
var program = new Command();
|
|
6739
6739
|
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");
|
|
6740
6740
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
rotateDailySession,
|
|
24
24
|
sessionFileExists,
|
|
25
25
|
todayLocalIso
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BHKFVSIX.js";
|
|
27
27
|
import {
|
|
28
28
|
classifyUnanswerablePane,
|
|
29
29
|
findUsageLimitResetHint,
|
|
@@ -2839,6 +2839,8 @@ import { randomUUID } from "crypto";
|
|
|
2839
2839
|
|
|
2840
2840
|
// ../../packages/core/dist/runtime/session-probe.js
|
|
2841
2841
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
2842
|
+
var PROBE_STATE_MAP = { alive: true, dead: true, unknown: true };
|
|
2843
|
+
var PROBE_STATES = Object.keys(PROBE_STATE_MAP);
|
|
2842
2844
|
function escapePgrepRegex(value) {
|
|
2843
2845
|
return value.replace(/[.[\]{}()*+?^$|\\]/g, "\\$&");
|
|
2844
2846
|
}
|
|
@@ -2858,6 +2860,21 @@ function probeClaudeProcessInTmux(tmuxSession) {
|
|
|
2858
2860
|
return e?.status === 1 ? "dead" : "unknown";
|
|
2859
2861
|
}
|
|
2860
2862
|
}
|
|
2863
|
+
function probeTmuxSession(tmuxSession) {
|
|
2864
|
+
try {
|
|
2865
|
+
execFileSync2("tmux", ["has-session", "-t", tmuxSession], {
|
|
2866
|
+
stdio: "ignore",
|
|
2867
|
+
timeout: 3e3
|
|
2868
|
+
});
|
|
2869
|
+
return "alive";
|
|
2870
|
+
} catch (err) {
|
|
2871
|
+
const e = err;
|
|
2872
|
+
const timedOut = e?.code === "ETIMEDOUT" || e?.error?.code === "ETIMEDOUT";
|
|
2873
|
+
if (e?.code === "ENOENT" || e?.error?.code === "ENOENT" || timedOut)
|
|
2874
|
+
return "unknown";
|
|
2875
|
+
return "dead";
|
|
2876
|
+
}
|
|
2877
|
+
}
|
|
2861
2878
|
|
|
2862
2879
|
// ../../packages/core/dist/provisioning/frameworks/claudecode/agent-tmpdir.js
|
|
2863
2880
|
import { closeSync, lstatSync as lstatSync2, mkdirSync as mkdirSync4, openSync, renameSync } from "fs";
|
|
@@ -3256,6 +3273,15 @@ function checkOne(codeName, io, config, states) {
|
|
|
3256
3273
|
states.delete(codeName);
|
|
3257
3274
|
return;
|
|
3258
3275
|
}
|
|
3276
|
+
try {
|
|
3277
|
+
const blockedKind = classifyUnanswerablePane(pane);
|
|
3278
|
+
if (blockedKind) io.refreshBlockedPromptLiveness?.(codeName, blockedKind);
|
|
3279
|
+
else io.clearBlockedPromptLiveness?.(codeName);
|
|
3280
|
+
} catch (err) {
|
|
3281
|
+
io.log(
|
|
3282
|
+
`[channel-input-watchdog] '${codeName}': blocked-prompt marker update threw (suppressed): ${err.message}`
|
|
3283
|
+
);
|
|
3284
|
+
}
|
|
3259
3285
|
const attached = io.isClientAttached(codeName);
|
|
3260
3286
|
const effectiveConfig = attached ? {
|
|
3261
3287
|
...config,
|
|
@@ -5809,6 +5835,8 @@ export {
|
|
|
5809
5835
|
getOpencodeSessionState,
|
|
5810
5836
|
getOpencodeTurnHealth,
|
|
5811
5837
|
getOpencodeActivityAgeSeconds,
|
|
5838
|
+
probeClaudeProcessInTmux,
|
|
5839
|
+
probeTmuxSession,
|
|
5812
5840
|
BLOCKED_ON_PROMPT_DECISION,
|
|
5813
5841
|
noteSessionBlockedOnPrompt,
|
|
5814
5842
|
sessionBlockedOnPrompt,
|
|
@@ -5893,4 +5921,4 @@ export {
|
|
|
5893
5921
|
stopAllSessionsAndWait,
|
|
5894
5922
|
getProjectDir
|
|
5895
5923
|
};
|
|
5896
|
-
//# sourceMappingURL=chunk-
|
|
5924
|
+
//# sourceMappingURL=chunk-5XPZF6FT.js.map
|