@integrity-labs/agt-cli 0.28.1023 → 0.28.1024

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.
@@ -15,7 +15,7 @@ import {
15
15
  parseEnvFileEntries,
16
16
  parseEnvIntegrations,
17
17
  shellQuote
18
- } from "./chunk-RDQILPRF.js";
18
+ } from "./chunk-5XPZF6FT.js";
19
19
  import {
20
20
  BIND_FAILURE_QUARANTINE_THRESHOLD,
21
21
  INTEGRATIONS_SECTION_END,
@@ -7140,7 +7140,7 @@ function exchangeFailureKind(err) {
7140
7140
  }
7141
7141
 
7142
7142
  // src/lib/api-client.ts
7143
- var agtCliVersion = true ? "0.28.1023" : "dev";
7143
+ var agtCliVersion = true ? "0.28.1024" : "dev";
7144
7144
  var lastConfigHash = null;
7145
7145
  function setConfigHash(hash) {
7146
7146
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12094,4 +12094,4 @@ export {
12094
12094
  managerInstallSystemUnitCommand,
12095
12095
  managerUninstallSystemUnitCommand
12096
12096
  };
12097
- //# sourceMappingURL=chunk-NQB4AF4Q.js.map
12097
+ //# sourceMappingURL=chunk-HVTL2N3I.js.map
@@ -266,7 +266,7 @@ async function spawnPairSession(session) {
266
266
  return { ok: true };
267
267
  } catch {
268
268
  }
269
- const { resolveClaudeBinary } = await import("./persistent-session-3NQHNU6H.js");
269
+ const { resolveClaudeBinary } = await import("./persistent-session-GZV4EXKD.js");
270
270
  const claudeBin = resolveClaudeBinary();
271
271
  const pairEnv = {
272
272
  ...process.env,
@@ -734,4 +734,4 @@ export {
734
734
  startClaudePair,
735
735
  submitClaudePairCode
736
736
  };
737
- //# sourceMappingURL=claude-pair-runtime-C4DDKQ6N.js.map
737
+ //# sourceMappingURL=claude-pair-runtime-IAO6B35F.js.map
@@ -66,7 +66,7 @@ import {
66
66
  safeWriteJsonAtomic,
67
67
  setConfigHash,
68
68
  tripClass
69
- } from "../chunk-NQB4AF4Q.js";
69
+ } from "../chunk-HVTL2N3I.js";
70
70
  import {
71
71
  getProjectDir as getProjectDir2,
72
72
  getReadyTasks,
@@ -149,7 +149,7 @@ import {
149
149
  takeZombieDetection,
150
150
  toOpencodeModel,
151
151
  writeEgressAllowlist
152
- } from "../chunk-RDQILPRF.js";
152
+ } from "../chunk-5XPZF6FT.js";
153
153
  import {
154
154
  ACCOUNT_ENFORCEMENT_MARKER_FILENAME,
155
155
  AnchorSessionClient,
@@ -13926,7 +13926,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
13926
13926
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
13927
13927
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
13928
13928
  async function channelInboundActivityAgeSecondsFor(codeName) {
13929
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-ZOXVXDPT.js");
13929
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-WRHLHQCE.js");
13930
13930
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
13931
13931
  if (newest === null) return null;
13932
13932
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -14672,7 +14672,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
14672
14672
  var lastVersionCheckAt = 0;
14673
14673
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
14674
14674
  var lastResponsivenessProbeAt = 0;
14675
- var agtCliVersion = true ? "0.28.1023" : "dev";
14675
+ var agtCliVersion = true ? "0.28.1024" : "dev";
14676
14676
  function resolveBrewPath(execFileSync3) {
14677
14677
  try {
14678
14678
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -16307,7 +16307,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
16307
16307
  if (codeNames.length === 0) return;
16308
16308
  void (async () => {
16309
16309
  try {
16310
- const { collectDiagnostics } = await import("../persistent-session-3NQHNU6H.js");
16310
+ const { collectDiagnostics } = await import("../persistent-session-GZV4EXKD.js");
16311
16311
  await api.post("/host/heartbeat", {
16312
16312
  host_id: hostId,
16313
16313
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -16449,7 +16449,7 @@ async function pollCycleInner() {
16449
16449
  }
16450
16450
  try {
16451
16451
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
16452
- const { collectDiagnostics } = await import("../persistent-session-3NQHNU6H.js");
16452
+ const { collectDiagnostics } = await import("../persistent-session-GZV4EXKD.js");
16453
16453
  const diagCodeNames = [...agentState.persistentSessionAgents];
16454
16454
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor) : void 0;
16455
16455
  let tailscaleHostname;
@@ -16625,7 +16625,7 @@ async function pollCycleInner() {
16625
16625
  collectPanelessActivityProbes,
16626
16626
  getResponsivenessIntervalMs,
16627
16627
  occupancyQualificationClassifications
16628
- } = await import("../responsiveness-probe-ZOXVXDPT.js");
16628
+ } = await import("../responsiveness-probe-WRHLHQCE.js");
16629
16629
  const probeIntervalMs = getResponsivenessIntervalMs();
16630
16630
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
16631
16631
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -16742,7 +16742,7 @@ async function pollCycleInner() {
16742
16742
  collectResponsivenessProbes,
16743
16743
  livePendingInboundOldestAgeSeconds,
16744
16744
  parkPendingInbound
16745
- } = await import("../responsiveness-probe-ZOXVXDPT.js");
16745
+ } = await import("../responsiveness-probe-WRHLHQCE.js");
16746
16746
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
16747
16747
  const wedgeNow = /* @__PURE__ */ new Date();
16748
16748
  const liveAgents = agentState.persistentSessionAgents;
@@ -17491,6 +17491,21 @@ async function pollCycleInner() {
17491
17491
  // reason untouched. Merge-then-write rather than write-fresh: clobbering
17492
17492
  // the file each poll would reset gave_up_at and keep re-arming the
17493
17493
  // give-up notice for as long as the modal sat there.
17494
+ // ENG-10972 AC3: the wedged-on-a-prompt marker the channel servers read.
17495
+ // Its own file with nothing to preserve, so write-fresh is correct - unlike
17496
+ // watchdog-give-up.json, whose gave_up_at must survive a refresh.
17497
+ refreshBlockedPromptLiveness: (codeName, kind) => {
17498
+ const dir = getFramework("claude-code").getAgentDir(codeName);
17499
+ if (!existsSync19(dir)) return;
17500
+ atomicWriteFileSync(
17501
+ join42(dir, "blocked-prompt.json"),
17502
+ JSON.stringify({ kind, last_seen_at: (/* @__PURE__ */ new Date()).toISOString() })
17503
+ );
17504
+ },
17505
+ clearBlockedPromptLiveness: (codeName) => {
17506
+ const file = join42(getFramework("claude-code").getAgentDir(codeName), "blocked-prompt.json");
17507
+ if (existsSync19(file)) rmSync8(file, { force: true });
17508
+ },
17494
17509
  refreshUsageLimitLiveness: (codeName) => {
17495
17510
  const dir = getFramework("claude-code").getAgentDir(codeName);
17496
17511
  const file = join42(dir, "watchdog-give-up.json");
@@ -21426,7 +21441,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
21426
21441
  try {
21427
21442
  const freshId = rotateSessionForWedge(codeName);
21428
21443
  consecutiveWedgeCycles.delete(codeName);
21429
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-ZOXVXDPT.js");
21444
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-WRHLHQCE.js");
21430
21445
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
21431
21446
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
21432
21447
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -21469,7 +21484,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
21469
21484
  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}`));
21470
21485
  void (async () => {
21471
21486
  try {
21472
- const { collectDiagnostics } = await import("../persistent-session-3NQHNU6H.js");
21487
+ const { collectDiagnostics } = await import("../persistent-session-GZV4EXKD.js");
21473
21488
  await api.post("/host/heartbeat", {
21474
21489
  host_id: hostId,
21475
21490
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -21520,7 +21535,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
21520
21535
  }
21521
21536
  try {
21522
21537
  const hostId = await getHostId();
21523
- const { collectDiagnostics } = await import("../persistent-session-3NQHNU6H.js");
21538
+ const { collectDiagnostics } = await import("../persistent-session-GZV4EXKD.js");
21524
21539
  await api.post("/host/heartbeat", {
21525
21540
  host_id: hostId,
21526
21541
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor)
@@ -22192,7 +22207,7 @@ async function processClaudePairSessions(agents) {
22192
22207
  // cannot take it for itself — by the time it runs, the write it is looking
22193
22208
  // for may already have happened.
22194
22209
  snapshotPairConfig
22195
- } = await import("../claude-pair-runtime-C4DDKQ6N.js");
22210
+ } = await import("../claude-pair-runtime-IAO6B35F.js");
22196
22211
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
22197
22212
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
22198
22213
  const killed = await killPairSession(pairTmuxSession(pairId));