@integrity-labs/agt-cli 0.28.714 → 0.28.716
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 +619 -66
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-F6AZ6KPI.js → chunk-ILDRNSOB.js} +8 -5
- package/dist/chunk-ILDRNSOB.js.map +1 -0
- package/dist/{chunk-FM63TWR3.js → chunk-LHYYO4NY.js} +1 -1
- package/dist/{chunk-FBYIO3Z6.js → chunk-OOYUWMTR.js} +367 -63
- package/dist/chunk-OOYUWMTR.js.map +1 -0
- package/dist/{claude-pair-runtime-WW55WS2Q.js → claude-pair-runtime-JK7GQU25.js} +2 -2
- package/dist/lib/manager-worker.js +420 -700
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-XLYRD2CU.js → persistent-session-DJSSEIR6.js} +5 -3
- package/dist/{responsiveness-probe-QDNULLSM.js → responsiveness-probe-A5335ORT.js} +3 -3
- package/dist/{session-auth-dead-OAOR7OS4.js → session-auth-dead-KUYVUOK5.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-F6AZ6KPI.js.map +0 -1
- package/dist/chunk-FBYIO3Z6.js.map +0 -1
- /package/dist/{chunk-FM63TWR3.js.map → chunk-LHYYO4NY.js.map} +0 -0
- /package/dist/{claude-pair-runtime-WW55WS2Q.js.map → claude-pair-runtime-JK7GQU25.js.map} +0 -0
- /package/dist/{persistent-session-XLYRD2CU.js.map → persistent-session-DJSSEIR6.js.map} +0 -0
- /package/dist/{responsiveness-probe-QDNULLSM.js.map → responsiveness-probe-A5335ORT.js.map} +0 -0
- /package/dist/{session-auth-dead-OAOR7OS4.js.map → session-auth-dead-KUYVUOK5.js.map} +0 -0
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
rotateDailySession,
|
|
18
18
|
sessionFileExists,
|
|
19
19
|
todayLocalIso
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LHYYO4NY.js";
|
|
21
21
|
import {
|
|
22
22
|
reapOrphanChannelMcps
|
|
23
23
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -3532,12 +3532,14 @@ function getLastFailureContext(codeName) {
|
|
|
3532
3532
|
restartCount: session?.restartCount ?? 0
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
|
+
function isSessionResumeDisabled(env = process.env) {
|
|
3536
|
+
const flag = env["AGT_DISABLE_SESSION_RESUME"];
|
|
3537
|
+
return flag === "1" || flag?.toLowerCase() === "true";
|
|
3538
|
+
}
|
|
3535
3539
|
function resolveSessionSpawnDecision(args) {
|
|
3536
3540
|
const { codeName, projectDir, agentTimezone } = args;
|
|
3537
3541
|
const now = args.now ?? /* @__PURE__ */ new Date();
|
|
3538
|
-
|
|
3539
|
-
const resumeDisabled = disableFlag === "1" || disableFlag?.toLowerCase() === "true";
|
|
3540
|
-
if (resumeDisabled) {
|
|
3542
|
+
if (isSessionResumeDisabled()) {
|
|
3541
3543
|
return { flag: "--session-id", sessionId: randomUUID(), reason: "resume-disabled" };
|
|
3542
3544
|
}
|
|
3543
3545
|
const daily = getOrCreateDailySession(codeName, now, agentTimezone);
|
|
@@ -4569,6 +4571,7 @@ export {
|
|
|
4569
4571
|
prepareForRespawn,
|
|
4570
4572
|
rotateSessionForWedge,
|
|
4571
4573
|
getLastFailureContext,
|
|
4574
|
+
isSessionResumeDisabled,
|
|
4572
4575
|
resolveSessionSpawnDecision,
|
|
4573
4576
|
directChatSessionStatePath,
|
|
4574
4577
|
readDirectChatSessionState,
|
|
@@ -4590,4 +4593,4 @@ export {
|
|
|
4590
4593
|
stopAllSessionsAndWait,
|
|
4591
4594
|
getProjectDir
|
|
4592
4595
|
};
|
|
4593
|
-
//# sourceMappingURL=chunk-
|
|
4596
|
+
//# sourceMappingURL=chunk-ILDRNSOB.js.map
|