@integrity-labs/agt-cli 0.28.392 → 0.28.394

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.
@@ -25,7 +25,7 @@ import {
25
25
  resolveConnectivityProbe,
26
26
  worseConnectivityOutcome,
27
27
  wrapScheduledTaskPrompt
28
- } from "./chunk-IJF4W6LC.js";
28
+ } from "./chunk-7HONFACG.js";
29
29
  import {
30
30
  parsePsRows
31
31
  } from "./chunk-XWVM4KPK.js";
@@ -6196,7 +6196,7 @@ function requireHost() {
6196
6196
  }
6197
6197
 
6198
6198
  // src/lib/api-client.ts
6199
- var agtCliVersion = true ? "0.28.392" : "dev";
6199
+ var agtCliVersion = true ? "0.28.394" : "dev";
6200
6200
  var lastConfigHash = null;
6201
6201
  function setConfigHash(hash) {
6202
6202
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -8650,4 +8650,4 @@ export {
8650
8650
  managerInstallSystemUnitCommand,
8651
8651
  managerUninstallSystemUnitCommand
8652
8652
  };
8653
- //# sourceMappingURL=chunk-SET6SREA.js.map
8653
+ //# sourceMappingURL=chunk-PTQWY46F.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-5K4W5XOA.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-QRUINHGI.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-72H4NOPM.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-OF2D6W2E.js.map
@@ -43,7 +43,7 @@ import {
43
43
  resolveEffectivePinRaw,
44
44
  safeWriteJsonAtomic,
45
45
  setConfigHash
46
- } from "../chunk-SET6SREA.js";
46
+ } from "../chunk-PTQWY46F.js";
47
47
  import {
48
48
  getProjectDir as getProjectDir2,
49
49
  getReadyTasks,
@@ -145,7 +145,7 @@ import {
145
145
  toOpencodeModel,
146
146
  transcriptActivityAgeSeconds,
147
147
  writeEgressAllowlist
148
- } from "../chunk-IJF4W6LC.js";
148
+ } from "../chunk-7HONFACG.js";
149
149
  import {
150
150
  reapOrphanChannelMcps
151
151
  } from "../chunk-XWVM4KPK.js";
@@ -9248,7 +9248,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
9248
9248
  var lastVersionCheckAt = 0;
9249
9249
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
9250
9250
  var lastResponsivenessProbeAt = 0;
9251
- var agtCliVersion = true ? "0.28.392" : "dev";
9251
+ var agtCliVersion = true ? "0.28.394" : "dev";
9252
9252
  function resolveBrewPath(execFileSync2) {
9253
9253
  try {
9254
9254
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -10380,7 +10380,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
10380
10380
  if (codeNames.length === 0) return;
10381
10381
  void (async () => {
10382
10382
  try {
10383
- const { collectDiagnostics } = await import("../persistent-session-5K4W5XOA.js");
10383
+ const { collectDiagnostics } = await import("../persistent-session-QRUINHGI.js");
10384
10384
  await api.post("/host/heartbeat", {
10385
10385
  host_id: hostId,
10386
10386
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor)
@@ -10479,7 +10479,7 @@ async function pollCycle() {
10479
10479
  }
10480
10480
  try {
10481
10481
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
10482
- const { collectDiagnostics } = await import("../persistent-session-5K4W5XOA.js");
10482
+ const { collectDiagnostics } = await import("../persistent-session-QRUINHGI.js");
10483
10483
  const diagCodeNames = [...agentState.persistentSessionAgents];
10484
10484
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor) : void 0;
10485
10485
  let tailscaleHostname;
@@ -10634,7 +10634,7 @@ async function pollCycle() {
10634
10634
  const {
10635
10635
  collectResponsivenessProbes,
10636
10636
  getResponsivenessIntervalMs
10637
- } = await import("../responsiveness-probe-VOE7CREA.js");
10637
+ } = await import("../responsiveness-probe-IHKBNMSQ.js");
10638
10638
  const probeIntervalMs = getResponsivenessIntervalMs();
10639
10639
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
10640
10640
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -10666,7 +10666,7 @@ async function pollCycle() {
10666
10666
  collectResponsivenessProbes,
10667
10667
  livePendingInboundOldestAgeSeconds,
10668
10668
  parkPendingInbound
10669
- } = await import("../responsiveness-probe-VOE7CREA.js");
10669
+ } = await import("../responsiveness-probe-IHKBNMSQ.js");
10670
10670
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-HYOOQV4A.js");
10671
10671
  const wedgeNow = /* @__PURE__ */ new Date();
10672
10672
  const liveAgents = agentState.persistentSessionAgents;
@@ -10923,6 +10923,28 @@ async function pollCycle() {
10923
10923
  (err) => log(`[restart] clear failed for agent_id=${clear.agentId}: ${err.message}`)
10924
10924
  );
10925
10925
  }
10926
+ for (const agent of agents) {
10927
+ const clears = agent.channel_clears ?? [];
10928
+ if (clears.length === 0) continue;
10929
+ for (const clear of clears) {
10930
+ const removed = channelQuarantineStore().clearQuarantine(
10931
+ agent.code_name,
10932
+ clear.channel_id
10933
+ );
10934
+ log(
10935
+ `[channel-reenable] ${removed ? "cleared" : "no marker for"} '${clear.channel_id}' on '${agent.code_name}' (operator re-enable)`
10936
+ );
10937
+ void api.post("/host/channel-clear-ack", {
10938
+ agent_id: agent.agent_id,
10939
+ channel_id: clear.channel_id,
10940
+ requested_at: clear.requested_at
10941
+ }).catch(
10942
+ (err) => log(
10943
+ `[channel-reenable] ack failed for agent_id=${agent.agent_id} channel=${clear.channel_id}: ${err.message}`
10944
+ )
10945
+ );
10946
+ }
10947
+ }
10926
10948
  const frameworksThisCycle = new Set(agents.map((a) => a.framework).filter(Boolean));
10927
10949
  for (const fw of frameworksThisCycle) {
10928
10950
  await ensureFrameworkBinary(fw);
@@ -13888,7 +13910,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
13888
13910
  void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
13889
13911
  void (async () => {
13890
13912
  try {
13891
- const { collectDiagnostics } = await import("../persistent-session-5K4W5XOA.js");
13913
+ const { collectDiagnostics } = await import("../persistent-session-QRUINHGI.js");
13892
13914
  await api.post("/host/heartbeat", {
13893
13915
  host_id: hostId,
13894
13916
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor)
@@ -13938,7 +13960,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
13938
13960
  }
13939
13961
  try {
13940
13962
  const hostId = await getHostId();
13941
- const { collectDiagnostics } = await import("../persistent-session-5K4W5XOA.js");
13963
+ const { collectDiagnostics } = await import("../persistent-session-QRUINHGI.js");
13942
13964
  await api.post("/host/heartbeat", {
13943
13965
  host_id: hostId,
13944
13966
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor)
@@ -14391,7 +14413,7 @@ async function processClaudePairSessions(agents) {
14391
14413
  killPairSession,
14392
14414
  pairTmuxSession,
14393
14415
  finalizeClaudePairOnboarding
14394
- } = await import("../claude-pair-runtime-72H4NOPM.js");
14416
+ } = await import("../claude-pair-runtime-OF2D6W2E.js");
14395
14417
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
14396
14418
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
14397
14419
  const killed = await killPairSession(pairTmuxSession(pairId));