@integrity-labs/agt-cli 0.28.219 → 0.28.221

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.
@@ -18,7 +18,7 @@ import {
18
18
  resolveConnectivityProbe,
19
19
  worseConnectivityOutcome,
20
20
  wrapScheduledTaskPrompt
21
- } from "./chunk-CKRREGCN.js";
21
+ } from "./chunk-M2PGJQP3.js";
22
22
  import {
23
23
  parsePsRows
24
24
  } from "./chunk-XWVM4KPK.js";
@@ -5529,7 +5529,7 @@ function requireHost() {
5529
5529
  }
5530
5530
 
5531
5531
  // src/lib/api-client.ts
5532
- var agtCliVersion = true ? "0.28.219" : "dev";
5532
+ var agtCliVersion = true ? "0.28.221" : "dev";
5533
5533
  var lastConfigHash = null;
5534
5534
  function setConfigHash(hash) {
5535
5535
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -7581,4 +7581,4 @@ export {
7581
7581
  managerInstallSystemUnitCommand,
7582
7582
  managerUninstallSystemUnitCommand
7583
7583
  };
7584
- //# sourceMappingURL=chunk-C4AGCFRN.js.map
7584
+ //# sourceMappingURL=chunk-SMV5PL54.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-ICCOYP6M.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-S2REZDHF.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-ENP42SHD.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-U3ZFSZA2.js.map
@@ -36,7 +36,7 @@ import {
36
36
  requireHost,
37
37
  safeWriteJsonAtomic,
38
38
  setConfigHash
39
- } from "../chunk-C4AGCFRN.js";
39
+ } from "../chunk-SMV5PL54.js";
40
40
  import {
41
41
  getProjectDir as getProjectDir2,
42
42
  getReadyTasks,
@@ -121,7 +121,7 @@ import {
121
121
  takeZombieDetection,
122
122
  transcriptActivityAgeSeconds,
123
123
  writeEgressAllowlist
124
- } from "../chunk-CKRREGCN.js";
124
+ } from "../chunk-M2PGJQP3.js";
125
125
  import {
126
126
  reapOrphanChannelMcps
127
127
  } from "../chunk-XWVM4KPK.js";
@@ -6224,7 +6224,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6224
6224
  var lastVersionCheckAt = 0;
6225
6225
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6226
6226
  var lastResponsivenessProbeAt = 0;
6227
- var agtCliVersion = true ? "0.28.219" : "dev";
6227
+ var agtCliVersion = true ? "0.28.221" : "dev";
6228
6228
  function resolveBrewPath(execFileSync2) {
6229
6229
  try {
6230
6230
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7133,7 +7133,7 @@ async function pollCycle() {
7133
7133
  }
7134
7134
  try {
7135
7135
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7136
- const { collectDiagnostics } = await import("../persistent-session-ICCOYP6M.js");
7136
+ const { collectDiagnostics } = await import("../persistent-session-S2REZDHF.js");
7137
7137
  const diagCodeNames = [...agentState.persistentSessionAgents];
7138
7138
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7139
7139
  let tailscaleHostname;
@@ -7281,7 +7281,7 @@ async function pollCycle() {
7281
7281
  const {
7282
7282
  collectResponsivenessProbes,
7283
7283
  getResponsivenessIntervalMs
7284
- } = await import("../responsiveness-probe-SX6W3UHL.js");
7284
+ } = await import("../responsiveness-probe-BHFLFXY5.js");
7285
7285
  const probeIntervalMs = getResponsivenessIntervalMs();
7286
7286
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
7287
7287
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -7313,7 +7313,7 @@ async function pollCycle() {
7313
7313
  collectResponsivenessProbes,
7314
7314
  livePendingInboundOldestAgeSeconds,
7315
7315
  parkPendingInbound
7316
- } = await import("../responsiveness-probe-SX6W3UHL.js");
7316
+ } = await import("../responsiveness-probe-BHFLFXY5.js");
7317
7317
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
7318
7318
  const wedgeNow = /* @__PURE__ */ new Date();
7319
7319
  const liveAgents = agentState.persistentSessionAgents;
@@ -7555,6 +7555,23 @@ async function pollCycle() {
7555
7555
  log(`[restart] failed to persist ack immediately: ${err.message}`);
7556
7556
  }
7557
7557
  }
7558
+ if (restartAcks.size > 0) {
7559
+ const restartedCodeNames = agents.filter((a) => restartAcks.has(a.agent_id)).map((a) => a.code_name);
7560
+ if (restartedCodeNames.length > 0) {
7561
+ void (async () => {
7562
+ try {
7563
+ const { collectDiagnostics } = await import("../persistent-session-S2REZDHF.js");
7564
+ const freshDiagnostics = collectDiagnostics(restartedCodeNames);
7565
+ await api.post("/host/heartbeat", {
7566
+ host_id: hostId,
7567
+ agent_diagnostics: freshDiagnostics
7568
+ });
7569
+ } catch (err) {
7570
+ log(`[restart] post-respawn diagnostics flush failed: ${err.message}`);
7571
+ }
7572
+ })();
7573
+ }
7574
+ }
7558
7575
  try {
7559
7576
  for (const [channelId, codeNames] of activeChannels) {
7560
7577
  for (const codeName of codeNames) {
@@ -10334,7 +10351,7 @@ async function processClaudePairSessions(agents) {
10334
10351
  killPairSession,
10335
10352
  pairTmuxSession,
10336
10353
  finalizeClaudePairOnboarding
10337
- } = await import("../claude-pair-runtime-ENP42SHD.js");
10354
+ } = await import("../claude-pair-runtime-U3ZFSZA2.js");
10338
10355
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10339
10356
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10340
10357
  const killed = await killPairSession(pairTmuxSession(pairId));