@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.
@@ -17,7 +17,7 @@ import {
17
17
  rotateDailySession,
18
18
  sessionFileExists,
19
19
  todayLocalIso
20
- } from "./chunk-FM63TWR3.js";
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
- const disableFlag = process.env["AGT_DISABLE_SESSION_RESUME"];
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-F6AZ6KPI.js.map
4596
+ //# sourceMappingURL=chunk-ILDRNSOB.js.map