@integrity-labs/agt-cli 0.22.5 → 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.
@@ -6612,4 +6612,4 @@ export {
6612
6612
  managerInstallSystemUnitCommand,
6613
6613
  managerUninstallSystemUnitCommand
6614
6614
  };
6615
- //# sourceMappingURL=chunk-P2KDZABK.js.map
6615
+ //# sourceMappingURL=chunk-Y2XFZBEE.js.map
@@ -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-4NA4PN5A.js");
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-234WQUVH.js.map
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-P2KDZABK.js";
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-ZTGSZTJH.js";
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.5" : "dev";
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-4NA4PN5A.js");
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-PNLRDNTS.js");
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" : restartTrigger === "day-rollover" ? "day-rollover-restart" : dayRolloverDeferred ? "day-rollover-deferred" : "healthy";
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-234WQUVH.js");
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));