@integrity-labs/agt-cli 0.28.1292 → 0.28.1294

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.
Files changed (34) hide show
  1. package/dist/{api-client-KSSMYKP7.js → api-client-CIAE7B34.js} +3 -3
  2. package/dist/bin/agt.js +7 -7
  3. package/dist/{chunk-3NCSZIK4.js → chunk-624FWL4A.js} +2 -2
  4. package/dist/{chunk-QSIKMH7L.js → chunk-J34KVUAW.js} +3 -3
  5. package/dist/{chunk-LAJEUIP7.js → chunk-M3OBVJQP.js} +1 -27
  6. package/dist/chunk-M3OBVJQP.js.map +1 -0
  7. package/dist/{chunk-Q5Y5WO2A.js → chunk-PUNO5VJP.js} +5 -5
  8. package/dist/{chunk-IPWGWDON.js → chunk-SR46T5UD.js} +2 -2
  9. package/dist/{chunk-CNDXVFNT.js → chunk-XQUP62ZG.js} +3 -3
  10. package/dist/{claude-code-updater-NBWLPWZU.js → claude-code-updater-6AJKWY22.js} +3 -3
  11. package/dist/{claude-pair-runtime-3RJNQ3XJ.js → claude-pair-runtime-ATC6ZI6J.js} +3 -3
  12. package/dist/lib/manager-worker.js +113 -51
  13. package/dist/lib/manager-worker.js.map +1 -1
  14. package/dist/mcp/direct-chat-channel.js +160 -125
  15. package/dist/mcp/index.js +0 -26
  16. package/dist/mcp/origami.js +0 -26
  17. package/dist/mcp/slack-channel.js +0 -26
  18. package/dist/mcp/telegram-channel.js +0 -26
  19. package/dist/{persistent-session-Q5FJJAFR.js → persistent-session-WLSZATFE.js} +4 -4
  20. package/dist/{responsiveness-probe-EYIQ2RPD.js → responsiveness-probe-F6TL3DZB.js} +4 -4
  21. package/dist/{session-auth-dead-TYDPUWCV.js → session-auth-dead-HJLK5AFT.js} +3 -3
  22. package/package.json +1 -1
  23. package/dist/chunk-LAJEUIP7.js.map +0 -1
  24. /package/dist/{api-client-KSSMYKP7.js.map → api-client-CIAE7B34.js.map} +0 -0
  25. /package/dist/{chunk-3NCSZIK4.js.map → chunk-624FWL4A.js.map} +0 -0
  26. /package/dist/{chunk-QSIKMH7L.js.map → chunk-J34KVUAW.js.map} +0 -0
  27. /package/dist/{chunk-Q5Y5WO2A.js.map → chunk-PUNO5VJP.js.map} +0 -0
  28. /package/dist/{chunk-IPWGWDON.js.map → chunk-SR46T5UD.js.map} +0 -0
  29. /package/dist/{chunk-CNDXVFNT.js.map → chunk-XQUP62ZG.js.map} +0 -0
  30. /package/dist/{claude-code-updater-NBWLPWZU.js.map → claude-code-updater-6AJKWY22.js.map} +0 -0
  31. /package/dist/{claude-pair-runtime-3RJNQ3XJ.js.map → claude-pair-runtime-ATC6ZI6J.js.map} +0 -0
  32. /package/dist/{persistent-session-Q5FJJAFR.js.map → persistent-session-WLSZATFE.js.map} +0 -0
  33. /package/dist/{responsiveness-probe-EYIQ2RPD.js.map → responsiveness-probe-F6TL3DZB.js.map} +0 -0
  34. /package/dist/{session-auth-dead-TYDPUWCV.js.map → session-auth-dead-HJLK5AFT.js.map} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  exchangeApiKey,
3
3
  getApiKey,
4
4
  getHost
5
- } from "./chunk-CNDXVFNT.js";
5
+ } from "./chunk-XQUP62ZG.js";
6
6
  import {
7
7
  LATE_BOUND_VARS,
8
8
  PLATFORM_DENY_PERMISSIONS,
@@ -26,11 +26,11 @@ import {
26
26
  warnIgnoredIsolationAllowlist,
27
27
  withheldRemoteMcpMessage,
28
28
  withheldRemoteMcpReasonFor
29
- } from "./chunk-QSIKMH7L.js";
29
+ } from "./chunk-J34KVUAW.js";
30
30
  import {
31
31
  readDailySessionPin,
32
32
  sessionTranscriptDir
33
- } from "./chunk-3NCSZIK4.js";
33
+ } from "./chunk-624FWL4A.js";
34
34
  import {
35
35
  classifyUnanswerablePane,
36
36
  isConsumerTermsDialogVisible,
@@ -102,7 +102,7 @@ import {
102
102
  scanConfigForLiteralSecrets,
103
103
  worseConnectivityOutcome,
104
104
  wrapScheduledTaskPrompt
105
- } from "./chunk-LAJEUIP7.js";
105
+ } from "./chunk-M3OBVJQP.js";
106
106
  import {
107
107
  claudeJsonPathFor,
108
108
  effectiveClaudeJsonPath,
@@ -13853,4 +13853,4 @@ export {
13853
13853
  managerInstallSystemUnitCommand,
13854
13854
  managerUninstallSystemUnitCommand
13855
13855
  };
13856
- //# sourceMappingURL=chunk-Q5Y5WO2A.js.map
13856
+ //# sourceMappingURL=chunk-PUNO5VJP.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-LAJEUIP7.js";
7
+ } from "./chunk-M3OBVJQP.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-IPWGWDON.js.map
725
+ //# sourceMappingURL=chunk-SR46T5UD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HOST_ROTATE_KEY_CONFLICT
3
- } from "./chunk-LAJEUIP7.js";
3
+ } from "./chunk-M3OBVJQP.js";
4
4
 
5
5
  // src/lib/config.ts
6
6
  import { readFileSync, writeFileSync, mkdirSync, existsSync } from "fs";
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1292" : "dev";
106
+ var agtCliVersion = true ? "0.28.1294" : "dev";
107
107
  var lastConfigHash = null;
108
108
  function setConfigHash(hash) {
109
109
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -468,4 +468,4 @@ export {
468
468
  api,
469
469
  getHostId
470
470
  };
471
- //# sourceMappingURL=chunk-CNDXVFNT.js.map
471
+ //# sourceMappingURL=chunk-XQUP62ZG.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-IPWGWDON.js";
16
+ } from "./chunk-SR46T5UD.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-LAJEUIP7.js";
18
+ import "./chunk-M3OBVJQP.js";
19
19
  import "./chunk-AIUIMEUS.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -34,4 +34,4 @@ export {
34
34
  readsAsNativeInstall,
35
35
  shouldRunClaudeCodeUpdater
36
36
  };
37
- //# sourceMappingURL=claude-code-updater-NBWLPWZU.js.map
37
+ //# sourceMappingURL=claude-code-updater-6AJKWY22.js.map
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  redactPaneFrame,
12
12
  sanitizeTerminalFrame
13
- } from "./chunk-LAJEUIP7.js";
13
+ } from "./chunk-M3OBVJQP.js";
14
14
  import {
15
15
  CLAUDE_CONFIG_DIR_ENV,
16
16
  claudeConfigDirFor,
@@ -323,7 +323,7 @@ async function spawnPairSession(session) {
323
323
  return { ok: true };
324
324
  } catch {
325
325
  }
326
- const { resolveClaudeBinary } = await import("./persistent-session-Q5FJJAFR.js");
326
+ const { resolveClaudeBinary } = await import("./persistent-session-WLSZATFE.js");
327
327
  const claudeBin = resolveClaudeBinary();
328
328
  const pairEnv = {
329
329
  ...process.env,
@@ -838,4 +838,4 @@ export {
838
838
  startClaudePair,
839
839
  submitClaudePairCode
840
840
  };
841
- //# sourceMappingURL=claude-pair-runtime-3RJNQ3XJ.js.map
841
+ //# sourceMappingURL=claude-pair-runtime-ATC6ZI6J.js.map
@@ -70,7 +70,7 @@ import {
70
70
  tripClass,
71
71
  writeEtcEnvironment,
72
72
  writeProfileDScript
73
- } from "../chunk-Q5Y5WO2A.js";
73
+ } from "../chunk-PUNO5VJP.js";
74
74
  import {
75
75
  ApiError,
76
76
  adoptHostKeyInProcess,
@@ -88,7 +88,7 @@ import {
88
88
  probeHostKey,
89
89
  requireHost,
90
90
  setConfigHash
91
- } from "../chunk-CNDXVFNT.js";
91
+ } from "../chunk-XQUP62ZG.js";
92
92
  import {
93
93
  BLOCKED_ON_PROMPT_DECISION,
94
94
  CHANNEL_SECRET_ENV_KEYS,
@@ -180,7 +180,7 @@ import {
180
180
  webFetchBaselineValue,
181
181
  webFetchRestartNeeded,
182
182
  writeEgressAllowlist
183
- } from "../chunk-QSIKMH7L.js";
183
+ } from "../chunk-J34KVUAW.js";
184
184
  import {
185
185
  isAgentIdle,
186
186
  isStaleForToday,
@@ -191,7 +191,7 @@ import {
191
191
  subagentActivityAgeSeconds,
192
192
  subagentTranscriptDir,
193
193
  transcriptActivityAgeSeconds
194
- } from "../chunk-3NCSZIK4.js";
194
+ } from "../chunk-624FWL4A.js";
195
195
  import {
196
196
  classifyUnanswerablePane,
197
197
  focusedConfirmDialogBlock,
@@ -217,7 +217,7 @@ import {
217
217
  runSafeCleanup,
218
218
  tightestDiskStat,
219
219
  withPackageCacheLock
220
- } from "../chunk-IPWGWDON.js";
220
+ } from "../chunk-SR46T5UD.js";
221
221
  import {
222
222
  parsePsRows,
223
223
  reapOrphanChannelMcps
@@ -346,7 +346,7 @@ import {
346
346
  stabiliseResetInstant,
347
347
  sumTranscriptUsageInWindow,
348
348
  summarizeTranscriptActivity
349
- } from "../chunk-LAJEUIP7.js";
349
+ } from "../chunk-M3OBVJQP.js";
350
350
  import {
351
351
  CLAUDE_CONFIG_DIR_ENV,
352
352
  claudeConfigDirFor,
@@ -377,26 +377,73 @@ var RESULT_LINE = /^\s+⎿\s*(.*)$/;
377
377
  function isCreditExhaustedText(text) {
378
378
  return typeof text === "string" && CREDIT_EXHAUSTED_PATTERN.test(text);
379
379
  }
380
+ function lastResultLine(paneTail) {
381
+ if (typeof paneTail !== "string") return null;
382
+ let last = null;
383
+ for (const line of paneTail.split("\n")) {
384
+ const m = RESULT_LINE.exec(line);
385
+ if (m) last = (m[1] ?? "").trim();
386
+ }
387
+ return last;
388
+ }
380
389
  function isPaneCreditLine(line) {
381
390
  return typeof line === "string" && PANE_CREDIT_EXHAUSTED_PATTERN.test(line);
382
391
  }
383
- function paneResultSighting(rawLog) {
384
- if (typeof rawLog !== "string") return { ordinal: 0, latest: null };
385
- const stripped = rawLog.replace(/\x1b\[[0-9;?]*[A-Za-z]/g, "");
386
- let ordinal = 0;
387
- let latest = null;
388
- for (const line of stripped.split("\n")) {
389
- const m = RESULT_LINE.exec(line);
390
- if (m) {
391
- ordinal += 1;
392
- latest = (m[1] ?? "").trim();
392
+ var PaneResultCursor = class {
393
+ constructor(port) {
394
+ this.port = port;
395
+ }
396
+ // ino null (CodeRabbit on #7775): the file did not exist at the last look, so
397
+ // everything that appears in it is new. Only a file that EXISTS on the first
398
+ // look is baselined: a missing one holds no lines from before a restart.
399
+ at = /* @__PURE__ */ new Map();
400
+ /**
401
+ * Treat everything on disk now as already read. Used when the host key changes
402
+ * (a line written under the old key must not count for the new one) and when
403
+ * the probe confirms credit is back (a line written before that success must
404
+ * not re-flag the key: ENG-12169 item 3).
405
+ */
406
+ baseline(id, path) {
407
+ const st = this.port.stat(path);
408
+ if (st === "absent") this.at.set(id, { ino: null, offset: 0 });
409
+ else if (st) this.at.set(id, { ino: st.ino, offset: st.size });
410
+ else this.at.delete(id);
411
+ }
412
+ ids() {
413
+ return [...this.at.keys()];
414
+ }
415
+ /**
416
+ * The latest result line among the complete lines appended since the last
417
+ * call, or null. Never a sighting on the FIRST call for an agent (after a
418
+ * manager start): a line from before the restart may predate a top-up, and the
419
+ * stored flag survives a restart anyway (the heartbeat echoes it,
420
+ * {@link CreditExhaustionTracker.noteServerFlag}).
421
+ */
422
+ next(id, path) {
423
+ const st = this.port.stat(path);
424
+ let cur = this.at.get(id);
425
+ if (st === null) return null;
426
+ if (st === "absent") {
427
+ if (!cur) this.at.set(id, { ino: null, offset: 0 });
428
+ return null;
429
+ }
430
+ if (!cur) {
431
+ this.at.set(id, { ino: st.ino, offset: st.size });
432
+ return null;
433
+ }
434
+ if (st.ino !== cur.ino || st.size < cur.offset) {
435
+ cur = { ino: st.ino, offset: 0 };
436
+ this.at.set(id, cur);
393
437
  }
438
+ if (st.size === cur.offset) return null;
439
+ const chunk2 = this.port.read(path, cur.offset, st.size);
440
+ const lastNl = chunk2.lastIndexOf(10);
441
+ if (lastNl < 0) return null;
442
+ cur.offset += lastNl + 1;
443
+ const text = chunk2.subarray(0, lastNl + 1).toString("utf8");
444
+ return lastResultLine(text.replace(/\x1b\[[0-9;?]*[A-Za-z]/g, ""));
394
445
  }
395
- return { ordinal, latest };
396
- }
397
- function isNewPaneResult(args) {
398
- return args.previous !== void 0 && args.ordinal !== args.previous;
399
- }
446
+ };
400
447
  var PROBE_INTERVAL_MS = 10 * 60 * 1e3;
401
448
  var PROBE_MODEL = "claude-haiku-4-5-20251001";
402
449
  var CreditExhaustionTracker = class {
@@ -1223,7 +1270,7 @@ var SignalledHostPids = class {
1223
1270
 
1224
1271
  // src/lib/manager-worker.ts
1225
1272
  import { createHash as createHash21 } from "crypto";
1226
- import { readFileSync as readFileSync39, writeFileSync as writeFileSync20, mkdirSync as mkdirSync18, existsSync as existsSync20, rmSync as rmSync9, readdirSync as readdirSync15, statSync as statSync15, unlinkSync as unlinkSync6, renameSync as renameSync12, utimesSync as utimesSync4, readlinkSync as readlinkSync2 } from "fs";
1273
+ import { readFileSync as readFileSync39, writeFileSync as writeFileSync20, mkdirSync as mkdirSync18, existsSync as existsSync20, rmSync as rmSync9, readdirSync as readdirSync15, statSync as statSync15, unlinkSync as unlinkSync6, renameSync as renameSync12, utimesSync as utimesSync4, readlinkSync as readlinkSync2, openSync as openSync6, readSync as readSync5, closeSync as closeSync6 } from "fs";
1227
1274
 
1228
1275
  // src/lib/atomic-file-replace.ts
1229
1276
  import { copyFileSync, renameSync, unlinkSync } from "fs";
@@ -15566,7 +15613,7 @@ function createFileMigrationReportIO(codeName, log2) {
15566
15613
  };
15567
15614
  }
15568
15615
  var managerHostPost = async (path, body) => {
15569
- const { api: api2, ApiError: ApiError3 } = await import("../api-client-KSSMYKP7.js");
15616
+ const { api: api2, ApiError: ApiError3 } = await import("../api-client-CIAE7B34.js");
15570
15617
  try {
15571
15618
  const json = await api2.post(path, body);
15572
15619
  return { status: 200, json };
@@ -17655,7 +17702,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
17655
17702
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
17656
17703
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
17657
17704
  async function channelInboundActivityAgeSecondsFor(codeName) {
17658
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-EYIQ2RPD.js");
17705
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-F6TL3DZB.js");
17659
17706
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
17660
17707
  if (newest === null) return null;
17661
17708
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -18538,7 +18585,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
18538
18585
  var lastVersionCheckAt = 0;
18539
18586
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
18540
18587
  var lastResponsivenessProbeAt = 0;
18541
- var agtCliVersion = true ? "0.28.1292" : "dev";
18588
+ var agtCliVersion = true ? "0.28.1294" : "dev";
18542
18589
  function resolveBrewPath(execFileSync5) {
18543
18590
  try {
18544
18591
  const out = execFileSync5("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -20391,6 +20438,7 @@ function maybeProbeHostCredit() {
20391
20438
  }
20392
20439
  if (outcome === "ok") {
20393
20440
  creditExhaustion.noteSuccess(fingerprint3, Date.now());
20441
+ rebaselineCreditPanes();
20394
20442
  log("[credit-exhaustion] probe: the host API key has credit again; reporting the recovery");
20395
20443
  } else if (outcome === "credit_exhausted") {
20396
20444
  creditExhaustion.noteError("probe", "Credit balance is too low", fingerprint3, Date.now());
@@ -20403,36 +20451,50 @@ function maybeProbeHostCredit() {
20403
20451
  });
20404
20452
  }
20405
20453
  var creditPaneCheckedAt = /* @__PURE__ */ new Map();
20406
- var creditPaneLastOrdinal = /* @__PURE__ */ new Map();
20407
20454
  var CREDIT_PANE_CHECK_INTERVAL_MS = 6e4;
20455
+ var creditPaneCursor = new PaneResultCursor({
20456
+ stat(path) {
20457
+ try {
20458
+ const st = statSync15(path);
20459
+ return { ino: st.ino, size: st.size };
20460
+ } catch (err) {
20461
+ return err.code === "ENOENT" ? "absent" : null;
20462
+ }
20463
+ },
20464
+ read(path, start, end) {
20465
+ const fd = openSync6(path, "r");
20466
+ try {
20467
+ const buf = Buffer.alloc(end - start);
20468
+ const n = readSync5(fd, buf, 0, buf.length, start);
20469
+ return buf.subarray(0, n);
20470
+ } finally {
20471
+ closeSync6(fd);
20472
+ }
20473
+ }
20474
+ });
20475
+ function rebaselineCreditPanes() {
20476
+ for (const codeName of creditPaneCursor.ids()) {
20477
+ creditPaneCursor.baseline(codeName, paneLogPath(codeName));
20478
+ }
20479
+ }
20408
20480
  function setCreditHostKey(key, fingerprint3) {
20409
20481
  const changed = creditHostKey.fingerprint !== null && fingerprint3 !== creditHostKey.fingerprint;
20410
20482
  creditHostKey.key = key;
20411
20483
  creditHostKey.fingerprint = fingerprint3;
20412
20484
  if (!changed) return;
20413
- for (const codeName of [...creditPaneLastOrdinal.keys()]) {
20414
- try {
20415
- creditPaneLastOrdinal.set(codeName, paneResultSighting(readFileSync39(paneLogPath(codeName), "utf-8")).ordinal);
20416
- } catch {
20417
- creditPaneLastOrdinal.delete(codeName);
20418
- }
20419
- }
20485
+ rebaselineCreditPanes();
20420
20486
  }
20421
20487
  function checkPaneForCreditExhaustion(codeName) {
20422
20488
  const nowMs = Date.now();
20423
20489
  const last = creditPaneCheckedAt.get(codeName);
20424
20490
  if (last !== void 0 && nowMs - last < CREDIT_PANE_CHECK_INTERVAL_MS) return;
20425
20491
  creditPaneCheckedAt.set(codeName, nowMs);
20426
- let rawLog;
20492
+ let latest;
20427
20493
  try {
20428
- rawLog = readFileSync39(paneLogPath(codeName), "utf-8");
20494
+ latest = creditPaneCursor.next(codeName, paneLogPath(codeName));
20429
20495
  } catch {
20430
20496
  return;
20431
20497
  }
20432
- const { ordinal, latest } = paneResultSighting(rawLog);
20433
- const previous = creditPaneLastOrdinal.get(codeName);
20434
- creditPaneLastOrdinal.set(codeName, ordinal);
20435
- if (!isNewPaneResult({ ordinal, previous })) return;
20436
20498
  if (isPaneCreditLine(latest)) {
20437
20499
  if (creditExhaustion.noteError("pane", latest, creditHostKey.fingerprint, nowMs)) {
20438
20500
  log(`[credit-exhaustion] '${codeName}' pane: "${latest}": this host's API key is out of Anthropic credit`);
@@ -20649,7 +20711,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
20649
20711
  if (codeNames.length === 0) return;
20650
20712
  void (async () => {
20651
20713
  try {
20652
- const { collectDiagnostics } = await import("../persistent-session-Q5FJJAFR.js");
20714
+ const { collectDiagnostics } = await import("../persistent-session-WLSZATFE.js");
20653
20715
  await api.post("/host/heartbeat", {
20654
20716
  host_id: hostId,
20655
20717
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -20792,7 +20854,7 @@ async function pollCycleInner() {
20792
20854
  }
20793
20855
  try {
20794
20856
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
20795
- const { collectDiagnostics } = await import("../persistent-session-Q5FJJAFR.js");
20857
+ const { collectDiagnostics } = await import("../persistent-session-WLSZATFE.js");
20796
20858
  const recordedSinceHeartbeat = new Set(spawnOutcomesSinceHeartbeat.drain());
20797
20859
  const diagCodeNames = heartbeatDiagnosticsCodeNames(agentState.persistentSessionAgents, recordedSinceHeartbeat);
20798
20860
  const heartbeatSpawnOutcomeFor = spawnOutcomeIfRecorded(spawnOutcomeForDiagnostics, recordedSinceHeartbeat);
@@ -21093,7 +21155,7 @@ async function pollCycleInner() {
21093
21155
  }
21094
21156
  try {
21095
21157
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
21096
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-NBWLPWZU.js");
21158
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-6AJKWY22.js");
21097
21159
  const securityFloor = currentSecurityFloor();
21098
21160
  claudeUpdaterInFlight = true;
21099
21161
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -21128,7 +21190,7 @@ async function pollCycleInner() {
21128
21190
  collectPanelessActivityProbes,
21129
21191
  getResponsivenessIntervalMs,
21130
21192
  occupancyQualificationClassifications
21131
- } = await import("../responsiveness-probe-EYIQ2RPD.js");
21193
+ } = await import("../responsiveness-probe-F6TL3DZB.js");
21132
21194
  const probeIntervalMs = getResponsivenessIntervalMs();
21133
21195
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
21134
21196
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -21245,7 +21307,7 @@ async function pollCycleInner() {
21245
21307
  collectResponsivenessProbes,
21246
21308
  livePendingInboundOldestAgeSeconds,
21247
21309
  parkPendingInbound
21248
- } = await import("../responsiveness-probe-EYIQ2RPD.js");
21310
+ } = await import("../responsiveness-probe-F6TL3DZB.js");
21249
21311
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-5PCBGRNY.js");
21250
21312
  const wedgeNow = /* @__PURE__ */ new Date();
21251
21313
  const liveAgents = agentState.persistentSessionAgents;
@@ -21531,7 +21593,7 @@ async function pollCycleInner() {
21531
21593
  }
21532
21594
  }
21533
21595
  );
21534
- const { parkPendingInbound } = await import("../responsiveness-probe-EYIQ2RPD.js");
21596
+ const { parkPendingInbound } = await import("../responsiveness-probe-F6TL3DZB.js");
21535
21597
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
21536
21598
  paneFatalStreak.delete(codeName);
21537
21599
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -21562,7 +21624,7 @@ async function pollCycleInner() {
21562
21624
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
21563
21625
  bindSourceEscalations
21564
21626
  } = await import("../transcript-mount-health-OHE6IVJV.js");
21565
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-Q5FJJAFR.js");
21627
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-WLSZATFE.js");
21566
21628
  const mountConfig = resolveTranscriptMountConfig();
21567
21629
  const liveAgents = agentState.persistentSessionAgents;
21568
21630
  for (const tracked of [
@@ -21727,7 +21789,7 @@ async function pollCycleInner() {
21727
21789
  }
21728
21790
  try {
21729
21791
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
21730
- const { probeSessionAuth } = await import("../session-auth-dead-TYDPUWCV.js");
21792
+ const { probeSessionAuth } = await import("../session-auth-dead-HJLK5AFT.js");
21731
21793
  const observations = [];
21732
21794
  const pendingCacheCommits = [];
21733
21795
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -26838,7 +26900,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
26838
26900
  if (!refreshData) return;
26839
26901
  const framework = refreshData.agent?.framework ?? agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
26840
26902
  const hostId = await getHostId();
26841
- const parkForRestart = await import("../responsiveness-probe-EYIQ2RPD.js").then(
26903
+ const parkForRestart = await import("../responsiveness-probe-F6TL3DZB.js").then(
26842
26904
  (m) => m.parkPendingInbound,
26843
26905
  (err) => err
26844
26906
  );
@@ -26915,7 +26977,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
26915
26977
  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}`));
26916
26978
  void (async () => {
26917
26979
  try {
26918
- const { collectDiagnostics } = await import("../persistent-session-Q5FJJAFR.js");
26980
+ const { collectDiagnostics } = await import("../persistent-session-WLSZATFE.js");
26919
26981
  await api.post("/host/heartbeat", {
26920
26982
  host_id: hostId,
26921
26983
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -26968,7 +27030,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
26968
27030
  }
26969
27031
  try {
26970
27032
  const hostId = await getHostId();
26971
- const { collectDiagnostics } = await import("../persistent-session-Q5FJJAFR.js");
27033
+ const { collectDiagnostics } = await import("../persistent-session-WLSZATFE.js");
26972
27034
  await api.post("/host/heartbeat", {
26973
27035
  host_id: hostId,
26974
27036
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -27847,7 +27909,7 @@ async function processClaudePairSessions(agents) {
27847
27909
  snapshotPairConfig,
27848
27910
  // ENG-11659: result -> report body + the manager.log line that records it.
27849
27911
  planPairStartReport
27850
- } = await import("../claude-pair-runtime-3RJNQ3XJ.js");
27912
+ } = await import("../claude-pair-runtime-ATC6ZI6J.js");
27851
27913
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
27852
27914
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
27853
27915
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);