@integrity-labs/agt-cli 0.28.496 → 0.28.498

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.
@@ -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-O7YXPCRX.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-E3P3H777.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-C2O3QBAT.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-W5QIX4BK.js.map
@@ -45,7 +45,7 @@ import {
45
45
  resolveEffectivePinRaw,
46
46
  safeWriteJsonAtomic,
47
47
  setConfigHash
48
- } from "../chunk-DZSS6TA3.js";
48
+ } from "../chunk-F6SYBDTF.js";
49
49
  import {
50
50
  getProjectDir as getProjectDir2,
51
51
  getReadyTasks,
@@ -142,6 +142,7 @@ import {
142
142
  readPaneLogTail,
143
143
  readProvisionedOpencodeModel,
144
144
  reloadEgressSidecar,
145
+ remoteMcpServerKey,
145
146
  resetRestartCount,
146
147
  resolveAgentTimezone,
147
148
  resolveAvatarEnvUrl,
@@ -166,7 +167,7 @@ import {
166
167
  toOpencodeModel,
167
168
  transcriptActivityAgeSeconds,
168
169
  writeEgressAllowlist
169
- } from "../chunk-JWR5FP7S.js";
170
+ } from "../chunk-WRII2Q5W.js";
170
171
  import {
171
172
  reapOrphanChannelMcps
172
173
  } from "../chunk-XWVM4KPK.js";
@@ -1330,6 +1331,9 @@ function isRemoteMcpEntry(value) {
1330
1331
  const e = value;
1331
1332
  return e.type === "http" || e.type === "sse" || e.type === "remote" || typeof e.url === "string" && e.command === void 0;
1332
1333
  }
1334
+ function expectedRemoteMcpKeys(integrations) {
1335
+ return new Set(integrations.map((i) => remoteMcpServerKey(i.definition_id, i.connection_key ?? null)));
1336
+ }
1333
1337
  function orphanedRemoteMcpKeys(mcpServers, expectedIntegrationKeys) {
1334
1338
  const orphans = [];
1335
1339
  for (const [key, entry] of Object.entries(mcpServers)) {
@@ -10246,7 +10250,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
10246
10250
  var lastVersionCheckAt = 0;
10247
10251
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
10248
10252
  var lastResponsivenessProbeAt = 0;
10249
- var agtCliVersion = true ? "0.28.496" : "dev";
10253
+ var agtCliVersion = true ? "0.28.498" : "dev";
10250
10254
  function resolveBrewPath(execFileSync2) {
10251
10255
  try {
10252
10256
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -11409,7 +11413,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
11409
11413
  if (codeNames.length === 0) return;
11410
11414
  void (async () => {
11411
11415
  try {
11412
- const { collectDiagnostics } = await import("../persistent-session-O7YXPCRX.js");
11416
+ const { collectDiagnostics } = await import("../persistent-session-E3P3H777.js");
11413
11417
  await api.post("/host/heartbeat", {
11414
11418
  host_id: hostId,
11415
11419
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor)
@@ -11516,7 +11520,7 @@ async function pollCycle() {
11516
11520
  }
11517
11521
  try {
11518
11522
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
11519
- const { collectDiagnostics } = await import("../persistent-session-O7YXPCRX.js");
11523
+ const { collectDiagnostics } = await import("../persistent-session-E3P3H777.js");
11520
11524
  const diagCodeNames = [...agentState.persistentSessionAgents];
11521
11525
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor) : void 0;
11522
11526
  let tailscaleHostname;
@@ -11631,7 +11635,7 @@ async function pollCycle() {
11631
11635
  collectResponsivenessProbes,
11632
11636
  collectPanelessActivityProbes,
11633
11637
  getResponsivenessIntervalMs
11634
- } = await import("../responsiveness-probe-Z4L2CZNA.js");
11638
+ } = await import("../responsiveness-probe-LIDRKFGT.js");
11635
11639
  const probeIntervalMs = getResponsivenessIntervalMs();
11636
11640
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
11637
11641
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -11695,7 +11699,7 @@ async function pollCycle() {
11695
11699
  collectResponsivenessProbes,
11696
11700
  livePendingInboundOldestAgeSeconds,
11697
11701
  parkPendingInbound
11698
- } = await import("../responsiveness-probe-Z4L2CZNA.js");
11702
+ } = await import("../responsiveness-probe-LIDRKFGT.js");
11699
11703
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
11700
11704
  const wedgeNow = /* @__PURE__ */ new Date();
11701
11705
  const liveAgents = agentState.persistentSessionAgents;
@@ -13342,8 +13346,8 @@ async function processAgent(agent, agentStates) {
13342
13346
  if (frameworkAdapter.removeMcpServer && frameworkAdapter.readMcpServers) {
13343
13347
  try {
13344
13348
  const declaredServers = frameworkAdapter.readMcpServers(agent.code_name);
13345
- const expectedRemoteKeys = new Set(
13346
- integrations.map((i) => i.definition_id)
13349
+ const expectedRemoteKeys = expectedRemoteMcpKeys(
13350
+ integrations
13347
13351
  );
13348
13352
  for (const key of orphanedRemoteMcpKeys(declaredServers, expectedRemoteKeys)) {
13349
13353
  frameworkAdapter.removeMcpServer(agent.code_name, key);
@@ -15184,7 +15188,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
15184
15188
  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}`));
15185
15189
  void (async () => {
15186
15190
  try {
15187
- const { collectDiagnostics } = await import("../persistent-session-O7YXPCRX.js");
15191
+ const { collectDiagnostics } = await import("../persistent-session-E3P3H777.js");
15188
15192
  await api.post("/host/heartbeat", {
15189
15193
  host_id: hostId,
15190
15194
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -15234,7 +15238,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
15234
15238
  }
15235
15239
  try {
15236
15240
  const hostId = await getHostId();
15237
- const { collectDiagnostics } = await import("../persistent-session-O7YXPCRX.js");
15241
+ const { collectDiagnostics } = await import("../persistent-session-E3P3H777.js");
15238
15242
  await api.post("/host/heartbeat", {
15239
15243
  host_id: hostId,
15240
15244
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -15722,7 +15726,7 @@ async function processClaudePairSessions(agents) {
15722
15726
  killPairSession,
15723
15727
  pairTmuxSession,
15724
15728
  finalizeClaudePairOnboarding
15725
- } = await import("../claude-pair-runtime-C2O3QBAT.js");
15729
+ } = await import("../claude-pair-runtime-W5QIX4BK.js");
15726
15730
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
15727
15731
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
15728
15732
  const killed = await killPairSession(pairTmuxSession(pairId));