@integrity-labs/agt-cli 0.28.200 → 0.28.202

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.
@@ -3,7 +3,7 @@ import {
3
3
  formatMissingVar,
4
4
  isClaudeFastMode,
5
5
  probeMcpEnvSubstitution
6
- } from "./chunk-KOZN2FW2.js";
6
+ } from "./chunk-E32KXZXX.js";
7
7
  import {
8
8
  reapOrphanChannelMcps
9
9
  } from "./chunk-XWVM4KPK.js";
@@ -1621,4 +1621,4 @@ export {
1621
1621
  stopAllSessionsAndWait,
1622
1622
  getProjectDir
1623
1623
  };
1624
- //# sourceMappingURL=chunk-MFHRREFW.js.map
1624
+ //# sourceMappingURL=chunk-X3LBSW45.js.map
@@ -17,7 +17,7 @@ import {
17
17
  resolveConnectivityProbe,
18
18
  worseConnectivityOutcome,
19
19
  wrapScheduledTaskPrompt
20
- } from "./chunk-KOZN2FW2.js";
20
+ } from "./chunk-E32KXZXX.js";
21
21
 
22
22
  // ../../packages/core/dist/provisioning/mcp-config-guards.js
23
23
  import { chmodSync, existsSync, readFileSync, renameSync, writeFileSync, unlinkSync } from "fs";
@@ -5525,7 +5525,7 @@ function requireHost() {
5525
5525
  }
5526
5526
 
5527
5527
  // src/lib/api-client.ts
5528
- var agtCliVersion = true ? "0.28.200" : "dev";
5528
+ var agtCliVersion = true ? "0.28.202" : "dev";
5529
5529
  var lastConfigHash = null;
5530
5530
  function setConfigHash(hash) {
5531
5531
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -6829,4 +6829,4 @@ export {
6829
6829
  managerInstallSystemUnitCommand,
6830
6830
  managerUninstallSystemUnitCommand
6831
6831
  };
6832
- //# sourceMappingURL=chunk-5I4F3LNL.js.map
6832
+ //# sourceMappingURL=chunk-YE5PQAY4.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-ISR7OKYM.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-R7Q7QQYO.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-SUMWSIVF.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-GUPKR3WG.js.map
@@ -27,7 +27,7 @@ import {
27
27
  requireHost,
28
28
  safeWriteJsonAtomic,
29
29
  setConfigHash
30
- } from "../chunk-5I4F3LNL.js";
30
+ } from "../chunk-YE5PQAY4.js";
31
31
  import {
32
32
  getProjectDir as getProjectDir2,
33
33
  getReadyTasks,
@@ -69,7 +69,7 @@ import {
69
69
  takeZombieDetection,
70
70
  transcriptActivityAgeSeconds,
71
71
  writeEgressAllowlist
72
- } from "../chunk-MFHRREFW.js";
72
+ } from "../chunk-X3LBSW45.js";
73
73
  import {
74
74
  CONVERSATION_FAILURE_CATEGORIES,
75
75
  DEFAULT_FRAMEWORK,
@@ -113,7 +113,7 @@ import {
113
113
  resolveChannels,
114
114
  resolveDmTarget,
115
115
  sumTranscriptUsageInWindow
116
- } from "../chunk-KOZN2FW2.js";
116
+ } from "../chunk-E32KXZXX.js";
117
117
  import {
118
118
  parsePsRows,
119
119
  reapOrphanChannelMcps
@@ -6681,7 +6681,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
6681
6681
  var lastVersionCheckAt = 0;
6682
6682
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6683
6683
  var lastResponsivenessProbeAt = 0;
6684
- var agtCliVersion = true ? "0.28.200" : "dev";
6684
+ var agtCliVersion = true ? "0.28.202" : "dev";
6685
6685
  function resolveBrewPath(execFileSync4) {
6686
6686
  try {
6687
6687
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7574,7 +7574,7 @@ async function pollCycle() {
7574
7574
  }
7575
7575
  try {
7576
7576
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7577
- const { collectDiagnostics } = await import("../persistent-session-ISR7OKYM.js");
7577
+ const { collectDiagnostics } = await import("../persistent-session-R7Q7QQYO.js");
7578
7578
  const diagCodeNames = [...agentState.persistentSessionAgents];
7579
7579
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7580
7580
  let tailscaleHostname;
@@ -7722,7 +7722,7 @@ async function pollCycle() {
7722
7722
  const {
7723
7723
  collectResponsivenessProbes,
7724
7724
  getResponsivenessIntervalMs
7725
- } = await import("../responsiveness-probe-HFGI3KBX.js");
7725
+ } = await import("../responsiveness-probe-WZGKNPQ4.js");
7726
7726
  const probeIntervalMs = getResponsivenessIntervalMs();
7727
7727
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
7728
7728
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -7754,7 +7754,7 @@ async function pollCycle() {
7754
7754
  collectResponsivenessProbes,
7755
7755
  livePendingInboundOldestAgeSeconds,
7756
7756
  parkPendingInbound
7757
- } = await import("../responsiveness-probe-HFGI3KBX.js");
7757
+ } = await import("../responsiveness-probe-WZGKNPQ4.js");
7758
7758
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
7759
7759
  const wedgeNow = /* @__PURE__ */ new Date();
7760
7760
  const liveAgents = agentState.persistentSessionAgents;
@@ -7923,20 +7923,33 @@ async function pollCycle() {
7923
7923
  const data = await api.post("/host/agents", { host_id: hostId });
7924
7924
  const agents = data.agents ?? [];
7925
7925
  const restartAcks = /* @__PURE__ */ new Map();
7926
+ const restartClears = [];
7926
7927
  for (const agent of agents) {
7927
7928
  const requested = agent.restart_requested_at ?? null;
7928
7929
  if (!requested) continue;
7929
7930
  const prev = state6.agents.find((a) => a.agentId === agent.agent_id);
7930
7931
  const lastProcessed = prev?.lastRestartProcessedAt ?? null;
7931
- if (lastProcessed && Date.parse(lastProcessed) >= Date.parse(requested)) continue;
7932
- log(`[restart] Dashboard requested restart for '${agent.code_name}' at ${requested}`);
7933
- try {
7934
- const { execSync: es } = await import("child_process");
7935
- es(`tmux kill-session -t agt-${agent.code_name} 2>/dev/null`, { stdio: "ignore" });
7936
- } catch {
7932
+ const alreadyServiced = lastProcessed != null && Date.parse(lastProcessed) >= Date.parse(requested);
7933
+ if (!alreadyServiced) {
7934
+ log(`[restart] Dashboard requested restart for '${agent.code_name}' at ${requested}`);
7935
+ try {
7936
+ const { execSync: es } = await import("child_process");
7937
+ es(`tmux kill-session -t agt-${agent.code_name} 2>/dev/null`, { stdio: "ignore" });
7938
+ } catch {
7939
+ }
7940
+ stopPersistentSessionAndForgetMcpBaseline(agent.code_name);
7941
+ restartAcks.set(agent.agent_id, requested);
7937
7942
  }
7938
- stopPersistentSessionAndForgetMcpBaseline(agent.code_name);
7939
- restartAcks.set(agent.agent_id, requested);
7943
+ restartClears.push({ agentId: agent.agent_id, requestedAt: requested });
7944
+ }
7945
+ for (const clear of restartClears) {
7946
+ void api.post("/host/restart-ack", {
7947
+ host_id: hostId,
7948
+ agent_id: clear.agentId,
7949
+ restart_requested_at: clear.requestedAt
7950
+ }).catch(
7951
+ (err) => log(`[restart] clear failed for agent_id=${clear.agentId}: ${err.message}`)
7952
+ );
7940
7953
  }
7941
7954
  const frameworksThisCycle = new Set(agents.map((a) => a.framework).filter(Boolean));
7942
7955
  for (const fw of frameworksThisCycle) {
@@ -10754,7 +10767,7 @@ async function processClaudePairSessions(agents) {
10754
10767
  killPairSession,
10755
10768
  pairTmuxSession,
10756
10769
  finalizeClaudePairOnboarding
10757
- } = await import("../claude-pair-runtime-SUMWSIVF.js");
10770
+ } = await import("../claude-pair-runtime-GUPKR3WG.js");
10758
10771
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10759
10772
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10760
10773
  const killed = await killPairSession(pairTmuxSession(pairId));