@integrity-labs/agt-cli 0.28.1217 → 0.28.1219

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 (26) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-G4TOCXOT.js → chunk-F5R622EX.js} +3 -3
  3. package/dist/{chunk-IGNZSNKB.js → chunk-HAQXH2J4.js} +2 -2
  4. package/dist/{chunk-4EY3CUZB.js → chunk-MJXBNSJY.js} +1 -1
  5. package/dist/chunk-MJXBNSJY.js.map +1 -0
  6. package/dist/{chunk-WIWPIZFN.js → chunk-QGMGROLF.js} +32 -17
  7. package/dist/{chunk-WIWPIZFN.js.map → chunk-QGMGROLF.js.map} +1 -1
  8. package/dist/{chunk-DYEJT36T.js → chunk-QI5C2VCI.js} +2 -2
  9. package/dist/{claude-code-updater-WJIPTVFL.js → claude-code-updater-XZTIAQQ3.js} +3 -3
  10. package/dist/{claude-pair-runtime-P3EO7NO3.js → claude-pair-runtime-N7TZVTF7.js} +3 -3
  11. package/dist/lib/manager-worker.js +120 -27
  12. package/dist/lib/manager-worker.js.map +1 -1
  13. package/dist/mcp/direct-chat-channel.js +324 -3
  14. package/dist/{persistent-session-3QL5YBCS.js → persistent-session-NQMAJQF2.js} +4 -4
  15. package/dist/{responsiveness-probe-BCVBNGYY.js → responsiveness-probe-JGMZCQCI.js} +4 -4
  16. package/dist/{session-auth-dead-YJH56AWH.js → session-auth-dead-DPMMX7QL.js} +3 -3
  17. package/package.json +1 -1
  18. package/dist/chunk-4EY3CUZB.js.map +0 -1
  19. /package/dist/{chunk-G4TOCXOT.js.map → chunk-F5R622EX.js.map} +0 -0
  20. /package/dist/{chunk-IGNZSNKB.js.map → chunk-HAQXH2J4.js.map} +0 -0
  21. /package/dist/{chunk-DYEJT36T.js.map → chunk-QI5C2VCI.js.map} +0 -0
  22. /package/dist/{claude-code-updater-WJIPTVFL.js.map → claude-code-updater-XZTIAQQ3.js.map} +0 -0
  23. /package/dist/{claude-pair-runtime-P3EO7NO3.js.map → claude-pair-runtime-N7TZVTF7.js.map} +0 -0
  24. /package/dist/{persistent-session-3QL5YBCS.js.map → persistent-session-NQMAJQF2.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-BCVBNGYY.js.map → responsiveness-probe-JGMZCQCI.js.map} +0 -0
  26. /package/dist/{session-auth-dead-YJH56AWH.js.map → session-auth-dead-DPMMX7QL.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-4EY3CUZB.js";
7
+ } from "./chunk-MJXBNSJY.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-DYEJT36T.js.map
725
+ //# sourceMappingURL=chunk-QI5C2VCI.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-DYEJT36T.js";
16
+ } from "./chunk-QI5C2VCI.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-4EY3CUZB.js";
18
+ import "./chunk-MJXBNSJY.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-WJIPTVFL.js.map
37
+ //# sourceMappingURL=claude-code-updater-XZTIAQQ3.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-4EY3CUZB.js";
11
+ } from "./chunk-MJXBNSJY.js";
12
12
  import {
13
13
  CLAUDE_CONFIG_DIR_ENV,
14
14
  claudeConfigDirFor,
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
321
321
  return { ok: true };
322
322
  } catch {
323
323
  }
324
- const { resolveClaudeBinary } = await import("./persistent-session-3QL5YBCS.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-NQMAJQF2.js");
325
325
  const claudeBin = resolveClaudeBinary();
326
326
  const pairEnv = {
327
327
  ...process.env,
@@ -836,4 +836,4 @@ export {
836
836
  startClaudePair,
837
837
  submitClaudePairCode
838
838
  };
839
- //# sourceMappingURL=claude-pair-runtime-P3EO7NO3.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-N7TZVTF7.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-WIWPIZFN.js";
88
+ } from "../chunk-QGMGROLF.js";
89
89
  import {
90
90
  CLAUDE_CODE_SECURITY_FLOOR,
91
91
  SELF_UPDATE_TIMEOUTS,
@@ -99,7 +99,7 @@ import {
99
99
  runSafeCleanup,
100
100
  tightestDiskStat,
101
101
  withPackageCacheLock
102
- } from "../chunk-DYEJT36T.js";
102
+ } from "../chunk-QI5C2VCI.js";
103
103
  import {
104
104
  rewriteSupervisorApiKey,
105
105
  supervisorChannelsRefusing
@@ -192,7 +192,7 @@ import {
192
192
  webFetchBaselineValue,
193
193
  webFetchRestartNeeded,
194
194
  writeEgressAllowlist
195
- } from "../chunk-G4TOCXOT.js";
195
+ } from "../chunk-F5R622EX.js";
196
196
  import {
197
197
  isAgentIdle,
198
198
  isStaleForToday,
@@ -202,7 +202,7 @@ import {
202
202
  sessionTranscriptDir,
203
203
  subagentActivityAgeSeconds,
204
204
  transcriptActivityAgeSeconds
205
- } from "../chunk-IGNZSNKB.js";
205
+ } from "../chunk-HAQXH2J4.js";
206
206
  import {
207
207
  classifyUnanswerablePane,
208
208
  focusedConfirmDialogBlock,
@@ -330,7 +330,7 @@ import {
330
330
  stabiliseResetInstant,
331
331
  sumTranscriptUsageInWindow,
332
332
  summarizeTranscriptActivity
333
- } from "../chunk-4EY3CUZB.js";
333
+ } from "../chunk-MJXBNSJY.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -15650,7 +15650,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15650
15650
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15651
15651
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15652
15652
  async function channelInboundActivityAgeSecondsFor(codeName) {
15653
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-BCVBNGYY.js");
15653
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-JGMZCQCI.js");
15654
15654
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15655
15655
  if (newest === null) return null;
15656
15656
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16387,6 +16387,8 @@ var frameworkBinaryChecked = /* @__PURE__ */ new Set();
16387
16387
  var frameworkBinaryInflight = /* @__PURE__ */ new Map();
16388
16388
  var agentRuntimeAuthenticated = false;
16389
16389
  var lastManagedSettingsStatus = null;
16390
+ var lastCrossSessionBlockStatus = null;
16391
+ var agentRosterFetched = false;
16390
16392
  function resolveAgentFramework(codeName) {
16391
16393
  const frameworkId = agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
16392
16394
  return getFramework(frameworkId);
@@ -16447,7 +16449,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16447
16449
  var lastVersionCheckAt = 0;
16448
16450
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16449
16451
  var lastResponsivenessProbeAt = 0;
16450
- var agtCliVersion = true ? "0.28.1217" : "dev";
16452
+ var agtCliVersion = true ? "0.28.1219" : "dev";
16451
16453
  function resolveBrewPath(execFileSync3) {
16452
16454
  try {
16453
16455
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -17011,7 +17013,62 @@ function claudeManagedSettingsPath() {
17011
17013
  }
17012
17014
  var MANAGED_SETTINGS_KEYS = ["channelsEnabled", "enableAllProjectMcpServers"];
17013
17015
  var MANAGED_SETTINGS_ENV = { DISABLE_AUTOUPDATER: "1" };
17014
- function ensureClaudeManagedSettings(path = claudeManagedSettingsPath()) {
17016
+ var CROSS_SESSION_DENY = ["SendMessage", "ListAgents"];
17017
+ var CROSS_SESSION_INBOUND = "refuse";
17018
+ function crossSessionBlockReport(frameworks, rosterFetched, readStatus) {
17019
+ if (frameworks.includes("claude-code")) return readStatus();
17020
+ if (frameworks.length === 0 && !rosterFetched) return null;
17021
+ return frameworks.includes(void 0) ? null : "not_applicable";
17022
+ }
17023
+ function rosterFromHostAgents(agents) {
17024
+ if (!Array.isArray(agents)) throw new Error("/host/agents answered without an agents array");
17025
+ return agents;
17026
+ }
17027
+ function deniedTools(settings) {
17028
+ const permissions = settings["permissions"];
17029
+ if (!permissions || typeof permissions !== "object" || Array.isArray(permissions)) return [];
17030
+ const deny = permissions["deny"];
17031
+ return Array.isArray(deny) ? deny : [];
17032
+ }
17033
+ function readCrossSessionBlockStatus(path = claudeManagedSettingsPath()) {
17034
+ try {
17035
+ const parsed = JSON.parse(readFileSync35(path, "utf-8"));
17036
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return "missing";
17037
+ const settings = parsed;
17038
+ const deny = deniedTools(settings);
17039
+ return settings["crossSessionInbound"] === CROSS_SESSION_INBOUND && CROSS_SESSION_DENY.every((tool) => deny.includes(tool)) ? "enforced" : "missing";
17040
+ } catch {
17041
+ return "missing";
17042
+ }
17043
+ }
17044
+ function managedSettingsOwnership(path) {
17045
+ try {
17046
+ const st = statSync15(path);
17047
+ return { mode: st.mode & 4095, uid: st.uid, gid: st.gid };
17048
+ } catch {
17049
+ return { mode: 420 };
17050
+ }
17051
+ }
17052
+ function writeManagedSettings(path, body, write = {
17053
+ atomic: (p, d) => atomicWriteFileSync(p, d, managedSettingsOwnership(p)),
17054
+ inPlace: (p, d) => writeFileSync18(p, d)
17055
+ }) {
17056
+ try {
17057
+ write.atomic(path, body);
17058
+ return "atomic";
17059
+ } catch (err) {
17060
+ const code = err.code;
17061
+ if ((code === "EACCES" || code === "EPERM" || code === "EROFS") && existsSync19(path)) {
17062
+ write.inPlace(path, body);
17063
+ log(`[managed-settings] ${path}: directory refused the atomic write (${code}); wrote in place (ENG-10191)`);
17064
+ return "in_place";
17065
+ }
17066
+ throw err;
17067
+ }
17068
+ }
17069
+ function ensureClaudeManagedSettings(path = claudeManagedSettingsPath(), write = (p, b) => {
17070
+ writeManagedSettings(p, b);
17071
+ }) {
17015
17072
  try {
17016
17073
  let settings = {};
17017
17074
  if (existsSync19(path)) {
@@ -17033,18 +17090,41 @@ function ensureClaudeManagedSettings(path = claudeManagedSettingsPath()) {
17033
17090
  const existingEnv = settings["env"];
17034
17091
  const env = existingEnv && typeof existingEnv === "object" && !Array.isArray(existingEnv) ? existingEnv : {};
17035
17092
  const missingEnv = Object.entries(MANAGED_SETTINGS_ENV).filter(([k, v]) => env[k] !== v);
17036
- if (missing.length === 0 && missingEnv.length === 0) return "ok";
17093
+ const deny = deniedTools(settings);
17094
+ const missingDeny = CROSS_SESSION_DENY.filter((tool) => !deny.includes(tool));
17095
+ const inboundWrong = settings["crossSessionInbound"] !== CROSS_SESSION_INBOUND;
17096
+ if (missing.length === 0 && missingEnv.length === 0 && missingDeny.length === 0 && !inboundWrong) {
17097
+ return "ok";
17098
+ }
17037
17099
  for (const key of missing) settings[key] = true;
17100
+ if (missingDeny.length > 0) {
17101
+ const existingPermissions = settings["permissions"];
17102
+ settings["permissions"] = {
17103
+ ...existingPermissions && typeof existingPermissions === "object" && !Array.isArray(existingPermissions) ? existingPermissions : {},
17104
+ deny: [...deny, ...missingDeny]
17105
+ };
17106
+ }
17107
+ if (inboundWrong) settings["crossSessionInbound"] = CROSS_SESSION_INBOUND;
17038
17108
  if (missingEnv.length > 0) {
17039
17109
  for (const [k, v] of missingEnv) env[k] = v;
17040
17110
  settings["env"] = env;
17041
17111
  }
17042
- mkdirSync16(dirname11(path), { recursive: true });
17043
- writeFileSync18(path, `${JSON.stringify(settings, null, 2)}
17044
- `);
17112
+ const channelKeysNeeded = missing.length > 0 || missingEnv.length > 0;
17113
+ const body = `${JSON.stringify(settings, null, 2)}
17114
+ `;
17115
+ try {
17116
+ mkdirSync16(dirname11(path), { recursive: true });
17117
+ write(path, body);
17118
+ } catch (err) {
17119
+ if (channelKeysNeeded) throw err;
17120
+ log(`[managed-settings] could not add the cross-session block to ${path}: ${err.message} - channel keys already present, so channels are unaffected; cross_session_block_missing will report it (ENG-10191)`);
17121
+ return "ok";
17122
+ }
17045
17123
  const changed = [
17046
17124
  ...missing.map((k) => `${k}:true`),
17047
- ...missingEnv.map(([k, v]) => `env.${k}=${v}`)
17125
+ ...missingEnv.map(([k, v]) => `env.${k}=${v}`),
17126
+ ...missingDeny.map((tool) => `permissions.deny+=${tool}`),
17127
+ ...inboundWrong ? [`crossSessionInbound=${CROSS_SESSION_INBOUND}`] : []
17048
17128
  ];
17049
17129
  log(`[managed-settings] set ${changed.join(", ")} in ${path} (ENG-5786 unblocks Claude Code channels; ENG-9223 pre-approves project MCP servers so a headless session never freezes on the trust prompt; ENG-10620 disables Claude Code's self-updater for every launch so the fleet pin holds)`);
17050
17130
  return "ok";
@@ -18351,7 +18431,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18351
18431
  if (codeNames.length === 0) return;
18352
18432
  void (async () => {
18353
18433
  try {
18354
- const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
18434
+ const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
18355
18435
  await api.post("/host/heartbeat", {
18356
18436
  host_id: hostId,
18357
18437
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18494,7 +18574,7 @@ async function pollCycleInner() {
18494
18574
  }
18495
18575
  try {
18496
18576
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18497
- const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
18577
+ const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
18498
18578
  const diagCodeNames = [...agentState.persistentSessionAgents];
18499
18579
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18500
18580
  let tailscaleHostname;
@@ -18548,6 +18628,11 @@ async function pollCycleInner() {
18548
18628
  } else {
18549
18629
  lastManagedSettingsStatus = null;
18550
18630
  }
18631
+ lastCrossSessionBlockStatus = crossSessionBlockReport(
18632
+ state9.agents.map((a) => agentFrameworkCache.get(a.codeName)),
18633
+ agentRosterFetched,
18634
+ () => readCrossSessionBlockStatus()
18635
+ );
18551
18636
  await refreshHostNodeObservation();
18552
18637
  const hostNodePin = hostNodeConvergence.desiredPin();
18553
18638
  const hbResp = await api.post("/host/heartbeat", {
@@ -18609,6 +18694,8 @@ async function pollCycleInner() {
18609
18694
  // Omitted (undefined) on hosts that haven't run the assertion
18610
18695
  // (non-claude-code frameworks).
18611
18696
  channels_setting_status: lastManagedSettingsStatus ?? void 0,
18697
+ // ENG-10191: is the cross-session block in the managed file right now?
18698
+ cross_session_block_status: lastCrossSessionBlockStatus ?? void 0,
18612
18699
  // ENG-9252: agents whose channel credential sync has failed to converge
18613
18700
  // for longer than CHANNEL_SYNC_STUCK_AFTER_MS. The API opens/closes a
18614
18701
  // per-agent alert on the edge, exactly as it does for
@@ -18752,7 +18839,7 @@ async function pollCycleInner() {
18752
18839
  }
18753
18840
  try {
18754
18841
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18755
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-WJIPTVFL.js");
18842
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-XZTIAQQ3.js");
18756
18843
  const securityFloor = currentSecurityFloor();
18757
18844
  claudeUpdaterInFlight = true;
18758
18845
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18787,7 +18874,7 @@ async function pollCycleInner() {
18787
18874
  collectPanelessActivityProbes,
18788
18875
  getResponsivenessIntervalMs,
18789
18876
  occupancyQualificationClassifications
18790
- } = await import("../responsiveness-probe-BCVBNGYY.js");
18877
+ } = await import("../responsiveness-probe-JGMZCQCI.js");
18791
18878
  const probeIntervalMs = getResponsivenessIntervalMs();
18792
18879
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18793
18880
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18904,7 +18991,7 @@ async function pollCycleInner() {
18904
18991
  collectResponsivenessProbes,
18905
18992
  livePendingInboundOldestAgeSeconds,
18906
18993
  parkPendingInbound
18907
- } = await import("../responsiveness-probe-BCVBNGYY.js");
18994
+ } = await import("../responsiveness-probe-JGMZCQCI.js");
18908
18995
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18909
18996
  const wedgeNow = /* @__PURE__ */ new Date();
18910
18997
  const liveAgents = agentState.persistentSessionAgents;
@@ -19190,7 +19277,7 @@ async function pollCycleInner() {
19190
19277
  }
19191
19278
  }
19192
19279
  );
19193
- const { parkPendingInbound } = await import("../responsiveness-probe-BCVBNGYY.js");
19280
+ const { parkPendingInbound } = await import("../responsiveness-probe-JGMZCQCI.js");
19194
19281
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19195
19282
  paneFatalStreak.delete(codeName);
19196
19283
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19221,7 +19308,7 @@ async function pollCycleInner() {
19221
19308
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19222
19309
  bindSourceEscalations
19223
19310
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19224
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-3QL5YBCS.js");
19311
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NQMAJQF2.js");
19225
19312
  const mountConfig = resolveTranscriptMountConfig();
19226
19313
  const liveAgents = agentState.persistentSessionAgents;
19227
19314
  for (const tracked of [
@@ -19386,7 +19473,7 @@ async function pollCycleInner() {
19386
19473
  }
19387
19474
  try {
19388
19475
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19389
- const { probeSessionAuth } = await import("../session-auth-dead-YJH56AWH.js");
19476
+ const { probeSessionAuth } = await import("../session-auth-dead-DPMMX7QL.js");
19390
19477
  const observations = [];
19391
19478
  const pendingCacheCommits = [];
19392
19479
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -19455,7 +19542,7 @@ async function pollCycleInner() {
19455
19542
  log(`[mcp-banner] collection failed: ${err.message}`);
19456
19543
  }
19457
19544
  const data = await api.post("/host/agents", { host_id: hostId });
19458
- const agents = data.agents ?? [];
19545
+ const agents = rosterFromHostAgents(data.agents);
19459
19546
  pairableAgentsSnapshot = agents.map((a) => ({
19460
19547
  agentId: a.agent_id,
19461
19548
  codeName: a.code_name
@@ -20091,6 +20178,7 @@ async function pollCycleInner() {
20091
20178
  // ENG-6088: spent auto-resume credits survive manager restarts too.
20092
20179
  circuitBreakerAutoResumes: Object.fromEntries(autoResumeMarkers.entries())
20093
20180
  };
20181
+ agentRosterFetched = true;
20094
20182
  if (consecutivePollFailures > 0) {
20095
20183
  log(`[poll-backoff] recovered after ${consecutivePollFailures} failure(s), resuming normal interval`);
20096
20184
  consecutivePollFailures = 0;
@@ -24116,7 +24204,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24116
24204
  try {
24117
24205
  const freshId = rotateSessionForWedge(codeName);
24118
24206
  consecutiveWedgeCycles.delete(codeName);
24119
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-BCVBNGYY.js");
24207
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-JGMZCQCI.js");
24120
24208
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24121
24209
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24122
24210
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24159,7 +24247,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24159
24247
  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}`));
24160
24248
  void (async () => {
24161
24249
  try {
24162
- const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
24250
+ const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
24163
24251
  await api.post("/host/heartbeat", {
24164
24252
  host_id: hostId,
24165
24253
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24210,7 +24298,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24210
24298
  }
24211
24299
  try {
24212
24300
  const hostId = await getHostId();
24213
- const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
24301
+ const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
24214
24302
  await api.post("/host/heartbeat", {
24215
24303
  host_id: hostId,
24216
24304
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24912,7 +25000,7 @@ async function processClaudePairSessions(agents) {
24912
25000
  snapshotPairConfig,
24913
25001
  // ENG-11659: result -> report body + the manager.log line that records it.
24914
25002
  planPairStartReport
24915
- } = await import("../claude-pair-runtime-P3EO7NO3.js");
25003
+ } = await import("../claude-pair-runtime-N7TZVTF7.js");
24916
25004
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24917
25005
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24918
25006
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -26380,6 +26468,7 @@ export {
26380
26468
  createManagedPruneLedger,
26381
26469
  createManagedToolkitReader,
26382
26470
  creditInboundHold,
26471
+ crossSessionBlockReport,
26383
26472
  dashboardRestartBreakerReason,
26384
26473
  decideDayRolloverAction,
26385
26474
  ensureClaudeManagedSettings,
@@ -26394,6 +26483,7 @@ export {
26394
26483
  isOlderSemverTuple,
26395
26484
  isPrereleaseVersion,
26396
26485
  jitteredRealtimeRebindBackoffMs,
26486
+ managedSettingsOwnership,
26397
26487
  markAgentForFreshMemorySync,
26398
26488
  maybeInjectKanbanCheck,
26399
26489
  maybeProbeClaudeRuntimeAuth,
@@ -26401,6 +26491,7 @@ export {
26401
26491
  memoryManifestPath,
26402
26492
  memoryManifests,
26403
26493
  pruneRealtimeRebindState,
26494
+ readCrossSessionBlockStatus,
26404
26495
  realtimeRebindBackoffMs,
26405
26496
  realtimeRebindDue,
26406
26497
  reapLegacyTokenFileEdgeWarned,
@@ -26411,6 +26502,7 @@ export {
26411
26502
  resolveManagedMcpServerId,
26412
26503
  restartReasonBindsNewMcp,
26413
26504
  retiredMemoryDir,
26505
+ rosterFromHostAgents,
26414
26506
  sameChannelSet,
26415
26507
  selfUpdateLatchVerdict,
26416
26508
  shouldLogChannelSyncFailure,
@@ -26424,6 +26516,7 @@ export {
26424
26516
  stuckChannelSyncs,
26425
26517
  stuckRealtimeRebinds,
26426
26518
  supersededRuntimeImageIds,
26427
- verifiedChannelCredentials
26519
+ verifiedChannelCredentials,
26520
+ writeManagedSettings
26428
26521
  };
26429
26522
  //# sourceMappingURL=manager-worker.js.map