@integrity-labs/agt-cli 0.27.86 → 0.27.87

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.
@@ -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-YNVCVUK3.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-IADHTYFL.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-DY2LN3ED.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-WTGNQXCL.js.map
@@ -16,7 +16,7 @@ import {
16
16
  provisionStopHook,
17
17
  requireHost,
18
18
  safeWriteJsonAtomic
19
- } from "../chunk-SXE77YAJ.js";
19
+ } from "../chunk-2E42P2IO.js";
20
20
  import {
21
21
  getProjectDir as getProjectDir2,
22
22
  getReadyTasks,
@@ -27,6 +27,7 @@ import {
27
27
  import {
28
28
  buildAllowedTools,
29
29
  checkChannelInputs,
30
+ creditWatchdogGiveUpCount,
30
31
  formatMissingVar,
31
32
  getLastFailureContext,
32
33
  getProjectDir,
@@ -53,7 +54,7 @@ import {
53
54
  stopPersistentSession,
54
55
  takeWatchdogGiveUpCount,
55
56
  takeZombieDetection
56
- } from "../chunk-4LHN3FAL.js";
57
+ } from "../chunk-7EKFVCGY.js";
57
58
  import {
58
59
  KANBAN_CHECK_COMMAND,
59
60
  appendDmFooter,
@@ -3971,7 +3972,7 @@ var cachedMaintenanceWindow = null;
3971
3972
  var lastVersionCheckAt = 0;
3972
3973
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
3973
3974
  var lastResponsivenessProbeAt = 0;
3974
- var agtCliVersion = true ? "0.27.86" : "dev";
3975
+ var agtCliVersion = true ? "0.27.87" : "dev";
3975
3976
  function resolveBrewPath(execFileSync4) {
3976
3977
  try {
3977
3978
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -5162,7 +5163,7 @@ async function pollCycle() {
5162
5163
  }
5163
5164
  try {
5164
5165
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
5165
- const { collectDiagnostics } = await import("../persistent-session-YNVCVUK3.js");
5166
+ const { collectDiagnostics } = await import("../persistent-session-IADHTYFL.js");
5166
5167
  const diagCodeNames = [...agentState.persistentSessionAgents];
5167
5168
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
5168
5169
  let tailscaleHostname;
@@ -5235,18 +5236,23 @@ async function pollCycle() {
5235
5236
  const {
5236
5237
  collectResponsivenessProbes,
5237
5238
  getResponsivenessIntervalMs
5238
- } = await import("../responsiveness-probe-5ICEBNCM.js");
5239
+ } = await import("../responsiveness-probe-3IY27CNE.js");
5239
5240
  const probeIntervalMs = getResponsivenessIntervalMs();
5240
5241
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
5241
5242
  const probeCodeNames = [...agentState.persistentSessionAgents];
5242
5243
  if (probeCodeNames.length > 0) {
5243
- const probes = collectResponsivenessProbes(probeCodeNames).map((p) => ({
5244
- ...p,
5245
- input_stuck_give_ups: takeWatchdogGiveUpCount(p.code_name)
5246
- }));
5244
+ const drainedGiveUps = /* @__PURE__ */ new Map();
5245
+ const probes = collectResponsivenessProbes(probeCodeNames).map((p) => {
5246
+ const giveUps = takeWatchdogGiveUpCount(p.code_name);
5247
+ if (giveUps > 0) drainedGiveUps.set(p.code_name, giveUps);
5248
+ return { ...p, input_stuck_give_ups: giveUps };
5249
+ });
5247
5250
  if (probes.length > 0) {
5248
5251
  void api.post("/host/responsiveness-probe", { host_id: hostId, probes }).catch((err) => {
5249
- log(`[responsiveness-probe] post failed: ${err.message}`);
5252
+ for (const [codeName, count] of drainedGiveUps) {
5253
+ creditWatchdogGiveUpCount(codeName, count);
5254
+ }
5255
+ log(`[responsiveness-probe] post failed (give-up counts re-credited): ${err.message}`);
5250
5256
  });
5251
5257
  }
5252
5258
  }
@@ -9463,7 +9469,7 @@ async function processClaudePairSessions(agents) {
9463
9469
  killPairSession,
9464
9470
  pairTmuxSession,
9465
9471
  finalizeClaudePairOnboarding
9466
- } = await import("../claude-pair-runtime-DY2LN3ED.js");
9472
+ } = await import("../claude-pair-runtime-WTGNQXCL.js");
9467
9473
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
9468
9474
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
9469
9475
  const killed = await killPairSession(pairTmuxSession(pairId));