@integrity-labs/agt-cli 0.22.4 → 0.22.6
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-ZTGSZTJH.js → chunk-XNO35ZAN.js} +1 -34
- package/dist/{chunk-ZTGSZTJH.js.map → chunk-XNO35ZAN.js.map} +1 -1
- package/dist/{chunk-N4RO7C3W.js → chunk-Y2XFZBEE.js} +1 -1
- package/dist/{claude-pair-runtime-234WQUVH.js → claude-pair-runtime-4PKORH32.js} +2 -2
- package/dist/lib/manager-worker.js +7 -30
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-4NA4PN5A.js → persistent-session-WGHWG5XS.js} +2 -2
- package/dist/{responsiveness-probe-PNLRDNTS.js → responsiveness-probe-SEK5X5VL.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-N4RO7C3W.js.map → chunk-Y2XFZBEE.js.map} +0 -0
- /package/dist/{claude-pair-runtime-234WQUVH.js.map → claude-pair-runtime-4PKORH32.js.map} +0 -0
- /package/dist/{persistent-session-4NA4PN5A.js.map → persistent-session-WGHWG5XS.js.map} +0 -0
- /package/dist/{responsiveness-probe-PNLRDNTS.js.map → responsiveness-probe-SEK5X5VL.js.map} +0 -0
|
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
|
|
|
100
100
|
return { ok: true };
|
|
101
101
|
} catch {
|
|
102
102
|
}
|
|
103
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
103
|
+
const { resolveClaudeBinary } = await import("./persistent-session-WGHWG5XS.js");
|
|
104
104
|
const claudeBin = resolveClaudeBinary();
|
|
105
105
|
const pairEnv = {
|
|
106
106
|
...process.env,
|
|
@@ -373,4 +373,4 @@ export {
|
|
|
373
373
|
startClaudePair,
|
|
374
374
|
submitClaudePairCode
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
376
|
+
//# sourceMappingURL=claude-pair-runtime-4PKORH32.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
provisionOrientHook,
|
|
12
12
|
provisionStopHook,
|
|
13
13
|
requireHost
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-Y2XFZBEE.js";
|
|
15
15
|
import {
|
|
16
16
|
findTaskByTemplate,
|
|
17
17
|
getProjectDir as getProjectDir2,
|
|
@@ -27,12 +27,9 @@ import {
|
|
|
27
27
|
getProjectDir,
|
|
28
28
|
getSessionState,
|
|
29
29
|
injectMessage,
|
|
30
|
-
isAgentIdle,
|
|
31
30
|
isKanbanLoopArmedForCurrentSession,
|
|
32
31
|
isSessionHealthy,
|
|
33
|
-
isStaleForToday,
|
|
34
32
|
parsePsRows,
|
|
35
|
-
peekCurrentSession,
|
|
36
33
|
prepareForRespawn,
|
|
37
34
|
readPaneLogTail,
|
|
38
35
|
reapOrphanChannelMcps,
|
|
@@ -43,7 +40,7 @@ import {
|
|
|
43
40
|
stopAllSessionsAndWait,
|
|
44
41
|
stopPersistentSession,
|
|
45
42
|
takeZombieDetection
|
|
46
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-XNO35ZAN.js";
|
|
47
44
|
import {
|
|
48
45
|
appendDmFooter,
|
|
49
46
|
classifyOutput,
|
|
@@ -2468,7 +2465,7 @@ var cachedFrameworkVersion = null;
|
|
|
2468
2465
|
var lastVersionCheckAt = 0;
|
|
2469
2466
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
2470
2467
|
var lastResponsivenessProbeAt = 0;
|
|
2471
|
-
var agtCliVersion = true ? "0.22.
|
|
2468
|
+
var agtCliVersion = true ? "0.22.6" : "dev";
|
|
2472
2469
|
function resolveBrewPath(execFileSync4) {
|
|
2473
2470
|
try {
|
|
2474
2471
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -3425,7 +3422,7 @@ async function pollCycle() {
|
|
|
3425
3422
|
}
|
|
3426
3423
|
try {
|
|
3427
3424
|
const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
|
|
3428
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
3425
|
+
const { collectDiagnostics } = await import("../persistent-session-WGHWG5XS.js");
|
|
3429
3426
|
const diagCodeNames = [...persistentSessionAgents];
|
|
3430
3427
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
|
|
3431
3428
|
let tailscaleHostname;
|
|
@@ -3476,7 +3473,7 @@ async function pollCycle() {
|
|
|
3476
3473
|
const {
|
|
3477
3474
|
collectResponsivenessProbes,
|
|
3478
3475
|
getResponsivenessIntervalMs
|
|
3479
|
-
} = await import("../responsiveness-probe-
|
|
3476
|
+
} = await import("../responsiveness-probe-SEK5X5VL.js");
|
|
3480
3477
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
3481
3478
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
3482
3479
|
const probeCodeNames = [...persistentSessionAgents];
|
|
@@ -5597,7 +5594,6 @@ async function ensurePersistentSession(agent, tasks, boardItems, refreshData) {
|
|
|
5597
5594
|
};
|
|
5598
5595
|
}
|
|
5599
5596
|
let restartTrigger = null;
|
|
5600
|
-
let dayRolloverDeferred = false;
|
|
5601
5597
|
const currentAuthTuple = `${claudeAuthMode}:${anthropicApiKeyFingerprint ?? "none"}`;
|
|
5602
5598
|
const recordedAuthTuple = claudeAuthTupleBySession.get(codeName);
|
|
5603
5599
|
if (recordedAuthTuple && recordedAuthTuple !== currentAuthTuple && isSessionHealthy(codeName)) {
|
|
@@ -5606,25 +5602,6 @@ async function ensurePersistentSession(agent, tasks, boardItems, refreshData) {
|
|
|
5606
5602
|
persistentSessionAgents.delete(codeName);
|
|
5607
5603
|
restartTrigger = "auth-tuple";
|
|
5608
5604
|
}
|
|
5609
|
-
if (isStaleForToday(codeName, /* @__PURE__ */ new Date(), agentTimezone) && isSessionHealthy(codeName)) {
|
|
5610
|
-
const current = peekCurrentSession(codeName);
|
|
5611
|
-
if (current) {
|
|
5612
|
-
const idle = isAgentIdle(projectDir, current.sessionId);
|
|
5613
|
-
if (idle) {
|
|
5614
|
-
log(
|
|
5615
|
-
`[persistent-session] Day rollover for '${codeName}' (yesterday=${current.date}) \u2014 agent idle, restarting to mint fresh session`
|
|
5616
|
-
);
|
|
5617
|
-
stopPersistentSessionAndForgetMcpBaseline(codeName);
|
|
5618
|
-
persistentSessionAgents.delete(codeName);
|
|
5619
|
-
restartTrigger = "day-rollover";
|
|
5620
|
-
} else {
|
|
5621
|
-
log(
|
|
5622
|
-
`[persistent-session] Day rollover for '${codeName}' deferred \u2014 agent still active on session ${current.sessionId} (will retry next tick)`
|
|
5623
|
-
);
|
|
5624
|
-
dayRolloverDeferred = true;
|
|
5625
|
-
}
|
|
5626
|
-
}
|
|
5627
|
-
}
|
|
5628
5605
|
if (!isSessionHealthy(codeName)) {
|
|
5629
5606
|
if (persistentSessionAgents.has(codeName)) {
|
|
5630
5607
|
const ctx = getLastFailureContext(codeName);
|
|
@@ -5792,7 +5769,7 @@ ${truncateForLog(ctx.tail)}` : `; pane_tail_hash=sha256:${createHash2("sha256").
|
|
|
5792
5769
|
break;
|
|
5793
5770
|
}
|
|
5794
5771
|
}
|
|
5795
|
-
const finalDecision = restartTrigger === "auth-tuple" ? "restart-pending" :
|
|
5772
|
+
const finalDecision = restartTrigger === "auth-tuple" ? "restart-pending" : "healthy";
|
|
5796
5773
|
return {
|
|
5797
5774
|
decision: finalDecision,
|
|
5798
5775
|
spawnAttempted: false,
|
|
@@ -7053,7 +7030,7 @@ async function processClaudePairSessions(agents) {
|
|
|
7053
7030
|
killPairSession,
|
|
7054
7031
|
pairTmuxSession,
|
|
7055
7032
|
finalizeClaudePairOnboarding
|
|
7056
|
-
} = await import("../claude-pair-runtime-
|
|
7033
|
+
} = await import("../claude-pair-runtime-4PKORH32.js");
|
|
7057
7034
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
7058
7035
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
7059
7036
|
const killed = await killPairSession(pairTmuxSession(pairId));
|