@integrity-labs/agt-cli 0.28.1218 → 0.28.1220

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 (29) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-2TSVU3OU.js → chunk-QAQIUHMS.js} +32 -17
  3. package/dist/{chunk-2TSVU3OU.js.map → chunk-QAQIUHMS.js.map} +1 -1
  4. package/dist/{chunk-F5R622EX.js → chunk-QGBIF6QK.js} +3 -3
  5. package/dist/{chunk-MJXBNSJY.js → chunk-R7UGBRUR.js} +12 -1
  6. package/dist/{chunk-MJXBNSJY.js.map → chunk-R7UGBRUR.js.map} +1 -1
  7. package/dist/{chunk-QI5C2VCI.js → chunk-WXJXO5TE.js} +2 -2
  8. package/dist/{chunk-HAQXH2J4.js → chunk-YR5PKAAL.js} +2 -2
  9. package/dist/{claude-code-updater-XZTIAQQ3.js → claude-code-updater-FWBF4JTA.js} +3 -3
  10. package/dist/{claude-pair-runtime-N7TZVTF7.js → claude-pair-runtime-6BSR5RTE.js} +3 -3
  11. package/dist/lib/manager-worker.js +127 -28
  12. package/dist/lib/manager-worker.js.map +1 -1
  13. package/dist/mcp/direct-chat-channel.js +11 -0
  14. package/dist/mcp/index.js +177 -19
  15. package/dist/mcp/origami.js +11 -0
  16. package/dist/mcp/slack-channel.js +11 -0
  17. package/dist/mcp/telegram-channel.js +11 -0
  18. package/dist/{persistent-session-NQMAJQF2.js → persistent-session-YMVE4OG5.js} +4 -4
  19. package/dist/{responsiveness-probe-JGMZCQCI.js → responsiveness-probe-DD7LCTAS.js} +4 -4
  20. package/dist/{session-auth-dead-DPMMX7QL.js → session-auth-dead-QZOUWP4O.js} +3 -3
  21. package/package.json +1 -1
  22. /package/dist/{chunk-F5R622EX.js.map → chunk-QGBIF6QK.js.map} +0 -0
  23. /package/dist/{chunk-QI5C2VCI.js.map → chunk-WXJXO5TE.js.map} +0 -0
  24. /package/dist/{chunk-HAQXH2J4.js.map → chunk-YR5PKAAL.js.map} +0 -0
  25. /package/dist/{claude-code-updater-XZTIAQQ3.js.map → claude-code-updater-FWBF4JTA.js.map} +0 -0
  26. /package/dist/{claude-pair-runtime-N7TZVTF7.js.map → claude-pair-runtime-6BSR5RTE.js.map} +0 -0
  27. /package/dist/{persistent-session-NQMAJQF2.js.map → persistent-session-YMVE4OG5.js.map} +0 -0
  28. /package/dist/{responsiveness-probe-JGMZCQCI.js.map → responsiveness-probe-DD7LCTAS.js.map} +0 -0
  29. /package/dist/{session-auth-dead-DPMMX7QL.js.map → session-auth-dead-QZOUWP4O.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-MJXBNSJY.js";
7
+ } from "./chunk-R7UGBRUR.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-QI5C2VCI.js.map
725
+ //# sourceMappingURL=chunk-WXJXO5TE.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-MJXBNSJY.js";
3
+ } from "./chunk-R7UGBRUR.js";
4
4
 
5
5
  // src/lib/daily-session.ts
6
6
  import { randomUUID } from "crypto";
@@ -240,4 +240,4 @@ export {
240
240
  peekPreviousSession,
241
241
  readDailySessionPin
242
242
  };
243
- //# sourceMappingURL=chunk-HAQXH2J4.js.map
243
+ //# sourceMappingURL=chunk-YR5PKAAL.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-QI5C2VCI.js";
16
+ } from "./chunk-WXJXO5TE.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-MJXBNSJY.js";
18
+ import "./chunk-R7UGBRUR.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-XZTIAQQ3.js.map
37
+ //# sourceMappingURL=claude-code-updater-FWBF4JTA.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-MJXBNSJY.js";
11
+ } from "./chunk-R7UGBRUR.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-NQMAJQF2.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-YMVE4OG5.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-N7TZVTF7.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-6BSR5RTE.js.map
@@ -85,7 +85,7 @@ import {
85
85
  tripClass,
86
86
  writeEtcEnvironment,
87
87
  writeProfileDScript
88
- } from "../chunk-2TSVU3OU.js";
88
+ } from "../chunk-QAQIUHMS.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-QI5C2VCI.js";
102
+ } from "../chunk-WXJXO5TE.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-F5R622EX.js";
195
+ } from "../chunk-QGBIF6QK.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-HAQXH2J4.js";
205
+ } from "../chunk-YR5PKAAL.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-MJXBNSJY.js";
333
+ } from "../chunk-R7UGBRUR.js";
334
334
  import {
335
335
  CLAUDE_CONFIG_DIR_ENV,
336
336
  claudeConfigDirFor,
@@ -2398,6 +2398,9 @@ var FORWARDED_TOOLS_REPORT_FILENAME = "forwarded-tools.json";
2398
2398
  function forwardedToolsReportPath(agentDir) {
2399
2399
  return join6(agentDir, FORWARDED_TOOLS_REPORT_FILENAME);
2400
2400
  }
2401
+ function stringList(value) {
2402
+ return Array.isArray(value) && value.every((n) => typeof n === "string");
2403
+ }
2401
2404
  function readForwardedToolsReport(agentDir) {
2402
2405
  let raw;
2403
2406
  try {
@@ -2429,7 +2432,10 @@ function readForwardedToolsReport(agentDir) {
2429
2432
  registered: r["registered"],
2430
2433
  skipped: r["skipped"],
2431
2434
  failed: r["failed"],
2432
- at: r["at"]
2435
+ at: r["at"],
2436
+ ...r["discovery"] === "ok" || r["discovery"] === "degraded" || r["discovery"] === "failed" ? { discovery: r["discovery"] } : {},
2437
+ ...stringList(r["degradedBrokers"]) ? { degradedBrokers: r["degradedBrokers"] } : {},
2438
+ ...stringList(r["lateRegistered"]) ? { lateRegistered: r["lateRegistered"] } : {}
2433
2439
  };
2434
2440
  }
2435
2441
 
@@ -15650,7 +15656,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15650
15656
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15651
15657
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15652
15658
  async function channelInboundActivityAgeSecondsFor(codeName) {
15653
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-JGMZCQCI.js");
15659
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-DD7LCTAS.js");
15654
15660
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15655
15661
  if (newest === null) return null;
15656
15662
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16387,6 +16393,8 @@ var frameworkBinaryChecked = /* @__PURE__ */ new Set();
16387
16393
  var frameworkBinaryInflight = /* @__PURE__ */ new Map();
16388
16394
  var agentRuntimeAuthenticated = false;
16389
16395
  var lastManagedSettingsStatus = null;
16396
+ var lastCrossSessionBlockStatus = null;
16397
+ var agentRosterFetched = false;
16390
16398
  function resolveAgentFramework(codeName) {
16391
16399
  const frameworkId = agentFrameworkCache.get(codeName) ?? DEFAULT_FRAMEWORK;
16392
16400
  return getFramework(frameworkId);
@@ -16447,7 +16455,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16447
16455
  var lastVersionCheckAt = 0;
16448
16456
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16449
16457
  var lastResponsivenessProbeAt = 0;
16450
- var agtCliVersion = true ? "0.28.1218" : "dev";
16458
+ var agtCliVersion = true ? "0.28.1220" : "dev";
16451
16459
  function resolveBrewPath(execFileSync3) {
16452
16460
  try {
16453
16461
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -17011,7 +17019,62 @@ function claudeManagedSettingsPath() {
17011
17019
  }
17012
17020
  var MANAGED_SETTINGS_KEYS = ["channelsEnabled", "enableAllProjectMcpServers"];
17013
17021
  var MANAGED_SETTINGS_ENV = { DISABLE_AUTOUPDATER: "1" };
17014
- function ensureClaudeManagedSettings(path = claudeManagedSettingsPath()) {
17022
+ var CROSS_SESSION_DENY = ["SendMessage", "ListAgents"];
17023
+ var CROSS_SESSION_INBOUND = "refuse";
17024
+ function crossSessionBlockReport(frameworks, rosterFetched, readStatus) {
17025
+ if (frameworks.includes("claude-code")) return readStatus();
17026
+ if (frameworks.length === 0 && !rosterFetched) return null;
17027
+ return frameworks.includes(void 0) ? null : "not_applicable";
17028
+ }
17029
+ function rosterFromHostAgents(agents) {
17030
+ if (!Array.isArray(agents)) throw new Error("/host/agents answered without an agents array");
17031
+ return agents;
17032
+ }
17033
+ function deniedTools(settings) {
17034
+ const permissions = settings["permissions"];
17035
+ if (!permissions || typeof permissions !== "object" || Array.isArray(permissions)) return [];
17036
+ const deny = permissions["deny"];
17037
+ return Array.isArray(deny) ? deny : [];
17038
+ }
17039
+ function readCrossSessionBlockStatus(path = claudeManagedSettingsPath()) {
17040
+ try {
17041
+ const parsed = JSON.parse(readFileSync35(path, "utf-8"));
17042
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return "missing";
17043
+ const settings = parsed;
17044
+ const deny = deniedTools(settings);
17045
+ return settings["crossSessionInbound"] === CROSS_SESSION_INBOUND && CROSS_SESSION_DENY.every((tool) => deny.includes(tool)) ? "enforced" : "missing";
17046
+ } catch {
17047
+ return "missing";
17048
+ }
17049
+ }
17050
+ function managedSettingsOwnership(path) {
17051
+ try {
17052
+ const st = statSync15(path);
17053
+ return { mode: st.mode & 4095, uid: st.uid, gid: st.gid };
17054
+ } catch {
17055
+ return { mode: 420 };
17056
+ }
17057
+ }
17058
+ function writeManagedSettings(path, body, write = {
17059
+ atomic: (p, d) => atomicWriteFileSync(p, d, managedSettingsOwnership(p)),
17060
+ inPlace: (p, d) => writeFileSync18(p, d)
17061
+ }) {
17062
+ try {
17063
+ write.atomic(path, body);
17064
+ return "atomic";
17065
+ } catch (err) {
17066
+ const code = err.code;
17067
+ if ((code === "EACCES" || code === "EPERM" || code === "EROFS") && existsSync19(path)) {
17068
+ write.inPlace(path, body);
17069
+ log(`[managed-settings] ${path}: directory refused the atomic write (${code}); wrote in place (ENG-10191)`);
17070
+ return "in_place";
17071
+ }
17072
+ throw err;
17073
+ }
17074
+ }
17075
+ function ensureClaudeManagedSettings(path = claudeManagedSettingsPath(), write = (p, b) => {
17076
+ writeManagedSettings(p, b);
17077
+ }) {
17015
17078
  try {
17016
17079
  let settings = {};
17017
17080
  if (existsSync19(path)) {
@@ -17033,18 +17096,41 @@ function ensureClaudeManagedSettings(path = claudeManagedSettingsPath()) {
17033
17096
  const existingEnv = settings["env"];
17034
17097
  const env = existingEnv && typeof existingEnv === "object" && !Array.isArray(existingEnv) ? existingEnv : {};
17035
17098
  const missingEnv = Object.entries(MANAGED_SETTINGS_ENV).filter(([k, v]) => env[k] !== v);
17036
- if (missing.length === 0 && missingEnv.length === 0) return "ok";
17099
+ const deny = deniedTools(settings);
17100
+ const missingDeny = CROSS_SESSION_DENY.filter((tool) => !deny.includes(tool));
17101
+ const inboundWrong = settings["crossSessionInbound"] !== CROSS_SESSION_INBOUND;
17102
+ if (missing.length === 0 && missingEnv.length === 0 && missingDeny.length === 0 && !inboundWrong) {
17103
+ return "ok";
17104
+ }
17037
17105
  for (const key of missing) settings[key] = true;
17106
+ if (missingDeny.length > 0) {
17107
+ const existingPermissions = settings["permissions"];
17108
+ settings["permissions"] = {
17109
+ ...existingPermissions && typeof existingPermissions === "object" && !Array.isArray(existingPermissions) ? existingPermissions : {},
17110
+ deny: [...deny, ...missingDeny]
17111
+ };
17112
+ }
17113
+ if (inboundWrong) settings["crossSessionInbound"] = CROSS_SESSION_INBOUND;
17038
17114
  if (missingEnv.length > 0) {
17039
17115
  for (const [k, v] of missingEnv) env[k] = v;
17040
17116
  settings["env"] = env;
17041
17117
  }
17042
- mkdirSync16(dirname11(path), { recursive: true });
17043
- writeFileSync18(path, `${JSON.stringify(settings, null, 2)}
17044
- `);
17118
+ const channelKeysNeeded = missing.length > 0 || missingEnv.length > 0;
17119
+ const body = `${JSON.stringify(settings, null, 2)}
17120
+ `;
17121
+ try {
17122
+ mkdirSync16(dirname11(path), { recursive: true });
17123
+ write(path, body);
17124
+ } catch (err) {
17125
+ if (channelKeysNeeded) throw err;
17126
+ 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)`);
17127
+ return "ok";
17128
+ }
17045
17129
  const changed = [
17046
17130
  ...missing.map((k) => `${k}:true`),
17047
- ...missingEnv.map(([k, v]) => `env.${k}=${v}`)
17131
+ ...missingEnv.map(([k, v]) => `env.${k}=${v}`),
17132
+ ...missingDeny.map((tool) => `permissions.deny+=${tool}`),
17133
+ ...inboundWrong ? [`crossSessionInbound=${CROSS_SESSION_INBOUND}`] : []
17048
17134
  ];
17049
17135
  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
17136
  return "ok";
@@ -18351,7 +18437,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18351
18437
  if (codeNames.length === 0) return;
18352
18438
  void (async () => {
18353
18439
  try {
18354
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
18440
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
18355
18441
  await api.post("/host/heartbeat", {
18356
18442
  host_id: hostId,
18357
18443
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18494,7 +18580,7 @@ async function pollCycleInner() {
18494
18580
  }
18495
18581
  try {
18496
18582
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18497
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
18583
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
18498
18584
  const diagCodeNames = [...agentState.persistentSessionAgents];
18499
18585
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18500
18586
  let tailscaleHostname;
@@ -18548,6 +18634,11 @@ async function pollCycleInner() {
18548
18634
  } else {
18549
18635
  lastManagedSettingsStatus = null;
18550
18636
  }
18637
+ lastCrossSessionBlockStatus = crossSessionBlockReport(
18638
+ state9.agents.map((a) => agentFrameworkCache.get(a.codeName)),
18639
+ agentRosterFetched,
18640
+ () => readCrossSessionBlockStatus()
18641
+ );
18551
18642
  await refreshHostNodeObservation();
18552
18643
  const hostNodePin = hostNodeConvergence.desiredPin();
18553
18644
  const hbResp = await api.post("/host/heartbeat", {
@@ -18609,6 +18700,8 @@ async function pollCycleInner() {
18609
18700
  // Omitted (undefined) on hosts that haven't run the assertion
18610
18701
  // (non-claude-code frameworks).
18611
18702
  channels_setting_status: lastManagedSettingsStatus ?? void 0,
18703
+ // ENG-10191: is the cross-session block in the managed file right now?
18704
+ cross_session_block_status: lastCrossSessionBlockStatus ?? void 0,
18612
18705
  // ENG-9252: agents whose channel credential sync has failed to converge
18613
18706
  // for longer than CHANNEL_SYNC_STUCK_AFTER_MS. The API opens/closes a
18614
18707
  // per-agent alert on the edge, exactly as it does for
@@ -18752,7 +18845,7 @@ async function pollCycleInner() {
18752
18845
  }
18753
18846
  try {
18754
18847
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18755
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-XZTIAQQ3.js");
18848
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-FWBF4JTA.js");
18756
18849
  const securityFloor = currentSecurityFloor();
18757
18850
  claudeUpdaterInFlight = true;
18758
18851
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18787,7 +18880,7 @@ async function pollCycleInner() {
18787
18880
  collectPanelessActivityProbes,
18788
18881
  getResponsivenessIntervalMs,
18789
18882
  occupancyQualificationClassifications
18790
- } = await import("../responsiveness-probe-JGMZCQCI.js");
18883
+ } = await import("../responsiveness-probe-DD7LCTAS.js");
18791
18884
  const probeIntervalMs = getResponsivenessIntervalMs();
18792
18885
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18793
18886
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18904,7 +18997,7 @@ async function pollCycleInner() {
18904
18997
  collectResponsivenessProbes,
18905
18998
  livePendingInboundOldestAgeSeconds,
18906
18999
  parkPendingInbound
18907
- } = await import("../responsiveness-probe-JGMZCQCI.js");
19000
+ } = await import("../responsiveness-probe-DD7LCTAS.js");
18908
19001
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18909
19002
  const wedgeNow = /* @__PURE__ */ new Date();
18910
19003
  const liveAgents = agentState.persistentSessionAgents;
@@ -19190,7 +19283,7 @@ async function pollCycleInner() {
19190
19283
  }
19191
19284
  }
19192
19285
  );
19193
- const { parkPendingInbound } = await import("../responsiveness-probe-JGMZCQCI.js");
19286
+ const { parkPendingInbound } = await import("../responsiveness-probe-DD7LCTAS.js");
19194
19287
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19195
19288
  paneFatalStreak.delete(codeName);
19196
19289
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19221,7 +19314,7 @@ async function pollCycleInner() {
19221
19314
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19222
19315
  bindSourceEscalations
19223
19316
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19224
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NQMAJQF2.js");
19317
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-YMVE4OG5.js");
19225
19318
  const mountConfig = resolveTranscriptMountConfig();
19226
19319
  const liveAgents = agentState.persistentSessionAgents;
19227
19320
  for (const tracked of [
@@ -19386,7 +19479,7 @@ async function pollCycleInner() {
19386
19479
  }
19387
19480
  try {
19388
19481
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19389
- const { probeSessionAuth } = await import("../session-auth-dead-DPMMX7QL.js");
19482
+ const { probeSessionAuth } = await import("../session-auth-dead-QZOUWP4O.js");
19390
19483
  const observations = [];
19391
19484
  const pendingCacheCommits = [];
19392
19485
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -19455,7 +19548,7 @@ async function pollCycleInner() {
19455
19548
  log(`[mcp-banner] collection failed: ${err.message}`);
19456
19549
  }
19457
19550
  const data = await api.post("/host/agents", { host_id: hostId });
19458
- const agents = data.agents ?? [];
19551
+ const agents = rosterFromHostAgents(data.agents);
19459
19552
  pairableAgentsSnapshot = agents.map((a) => ({
19460
19553
  agentId: a.agent_id,
19461
19554
  codeName: a.code_name
@@ -20091,6 +20184,7 @@ async function pollCycleInner() {
20091
20184
  // ENG-6088: spent auto-resume credits survive manager restarts too.
20092
20185
  circuitBreakerAutoResumes: Object.fromEntries(autoResumeMarkers.entries())
20093
20186
  };
20187
+ agentRosterFetched = true;
20094
20188
  if (consecutivePollFailures > 0) {
20095
20189
  log(`[poll-backoff] recovered after ${consecutivePollFailures} failure(s), resuming normal interval`);
20096
20190
  consecutivePollFailures = 0;
@@ -24116,7 +24210,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24116
24210
  try {
24117
24211
  const freshId = rotateSessionForWedge(codeName);
24118
24212
  consecutiveWedgeCycles.delete(codeName);
24119
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-JGMZCQCI.js");
24213
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-DD7LCTAS.js");
24120
24214
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24121
24215
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24122
24216
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24159,7 +24253,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24159
24253
  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
24254
  void (async () => {
24161
24255
  try {
24162
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
24256
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
24163
24257
  await api.post("/host/heartbeat", {
24164
24258
  host_id: hostId,
24165
24259
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24210,7 +24304,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24210
24304
  }
24211
24305
  try {
24212
24306
  const hostId = await getHostId();
24213
- const { collectDiagnostics } = await import("../persistent-session-NQMAJQF2.js");
24307
+ const { collectDiagnostics } = await import("../persistent-session-YMVE4OG5.js");
24214
24308
  await api.post("/host/heartbeat", {
24215
24309
  host_id: hostId,
24216
24310
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24912,7 +25006,7 @@ async function processClaudePairSessions(agents) {
24912
25006
  snapshotPairConfig,
24913
25007
  // ENG-11659: result -> report body + the manager.log line that records it.
24914
25008
  planPairStartReport
24915
- } = await import("../claude-pair-runtime-N7TZVTF7.js");
25009
+ } = await import("../claude-pair-runtime-6BSR5RTE.js");
24916
25010
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24917
25011
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24918
25012
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
@@ -26380,6 +26474,7 @@ export {
26380
26474
  createManagedPruneLedger,
26381
26475
  createManagedToolkitReader,
26382
26476
  creditInboundHold,
26477
+ crossSessionBlockReport,
26383
26478
  dashboardRestartBreakerReason,
26384
26479
  decideDayRolloverAction,
26385
26480
  ensureClaudeManagedSettings,
@@ -26394,6 +26489,7 @@ export {
26394
26489
  isOlderSemverTuple,
26395
26490
  isPrereleaseVersion,
26396
26491
  jitteredRealtimeRebindBackoffMs,
26492
+ managedSettingsOwnership,
26397
26493
  markAgentForFreshMemorySync,
26398
26494
  maybeInjectKanbanCheck,
26399
26495
  maybeProbeClaudeRuntimeAuth,
@@ -26401,6 +26497,7 @@ export {
26401
26497
  memoryManifestPath,
26402
26498
  memoryManifests,
26403
26499
  pruneRealtimeRebindState,
26500
+ readCrossSessionBlockStatus,
26404
26501
  realtimeRebindBackoffMs,
26405
26502
  realtimeRebindDue,
26406
26503
  reapLegacyTokenFileEdgeWarned,
@@ -26411,6 +26508,7 @@ export {
26411
26508
  resolveManagedMcpServerId,
26412
26509
  restartReasonBindsNewMcp,
26413
26510
  retiredMemoryDir,
26511
+ rosterFromHostAgents,
26414
26512
  sameChannelSet,
26415
26513
  selfUpdateLatchVerdict,
26416
26514
  shouldLogChannelSyncFailure,
@@ -26424,6 +26522,7 @@ export {
26424
26522
  stuckChannelSyncs,
26425
26523
  stuckRealtimeRebinds,
26426
26524
  supersededRuntimeImageIds,
26427
- verifiedChannelCredentials
26525
+ verifiedChannelCredentials,
26526
+ writeManagedSettings
26428
26527
  };
26429
26528
  //# sourceMappingURL=manager-worker.js.map