@integrity-labs/agt-cli 0.28.1196 → 0.28.1198

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 (32) hide show
  1. package/dist/bin/agt.js +7 -7
  2. package/dist/{chunk-YYUYLLIX.js → chunk-7HGQBGOI.js} +7 -6
  3. package/dist/{chunk-OO36JBFI.js → chunk-HYQ7VOC3.js} +35 -1
  4. package/dist/chunk-HYQ7VOC3.js.map +1 -0
  5. package/dist/{chunk-2NWHS53N.js → chunk-I2ZT7SV2.js} +13 -2
  6. package/dist/{chunk-2NWHS53N.js.map → chunk-I2ZT7SV2.js.map} +1 -1
  7. package/dist/{chunk-L5QCDOM2.js → chunk-LBQSZVUX.js} +2 -2
  8. package/dist/{chunk-AGRBHK4X.js → chunk-W4WVX7D4.js} +2 -2
  9. package/dist/{chunk-O5LKHDN7.js → chunk-YZSECLT4.js} +4 -4
  10. package/dist/{claude-code-updater-BJYGOVTF.js → claude-code-updater-MO64U3D6.js} +3 -3
  11. package/dist/{claude-pair-runtime-5OY4AZCI.js → claude-pair-runtime-IMG45YN5.js} +4 -4
  12. package/dist/lib/manager-worker.js +22 -21
  13. package/dist/lib/manager-worker.js.map +1 -1
  14. package/dist/mcp/direct-chat-channel.js +12 -1
  15. package/dist/mcp/index.js +12 -1
  16. package/dist/mcp/origami.js +12 -1
  17. package/dist/mcp/slack-channel.js +12 -1
  18. package/dist/mcp/telegram-channel.js +12 -1
  19. package/dist/{persistent-session-BYF4LRJD.js → persistent-session-YKPIDETF.js} +5 -5
  20. package/dist/{responsiveness-probe-NDUJDMXI.js → responsiveness-probe-VU7CUC7P.js} +5 -5
  21. package/dist/{session-auth-dead-KVBAILUJ.js → session-auth-dead-SXJSD34M.js} +3 -3
  22. package/package.json +1 -1
  23. package/dist/chunk-OO36JBFI.js.map +0 -1
  24. /package/dist/{chunk-YYUYLLIX.js.map → chunk-7HGQBGOI.js.map} +0 -0
  25. /package/dist/{chunk-L5QCDOM2.js.map → chunk-LBQSZVUX.js.map} +0 -0
  26. /package/dist/{chunk-AGRBHK4X.js.map → chunk-W4WVX7D4.js.map} +0 -0
  27. /package/dist/{chunk-O5LKHDN7.js.map → chunk-YZSECLT4.js.map} +0 -0
  28. /package/dist/{claude-code-updater-BJYGOVTF.js.map → claude-code-updater-MO64U3D6.js.map} +0 -0
  29. /package/dist/{claude-pair-runtime-5OY4AZCI.js.map → claude-pair-runtime-IMG45YN5.js.map} +0 -0
  30. /package/dist/{persistent-session-BYF4LRJD.js.map → persistent-session-YKPIDETF.js.map} +0 -0
  31. /package/dist/{responsiveness-probe-NDUJDMXI.js.map → responsiveness-probe-VU7CUC7P.js.map} +0 -0
  32. /package/dist/{session-auth-dead-KVBAILUJ.js.map → session-auth-dead-SXJSD34M.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  encodeClaudeProjectPath
3
- } from "./chunk-2NWHS53N.js";
3
+ } from "./chunk-I2ZT7SV2.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-L5QCDOM2.js.map
243
+ //# sourceMappingURL=chunk-LBQSZVUX.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-2NWHS53N.js";
7
+ } from "./chunk-I2ZT7SV2.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-AGRBHK4X.js.map
725
+ //# sourceMappingURL=chunk-W4WVX7D4.js.map
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-L5QCDOM2.js";
7
+ } from "./chunk-LBQSZVUX.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -23,7 +23,7 @@ import {
23
23
  sendDialogKeys,
24
24
  simpleTextHash,
25
25
  sweepDialogs
26
- } from "./chunk-OO36JBFI.js";
26
+ } from "./chunk-HYQ7VOC3.js";
27
27
  import {
28
28
  signinResetInForce
29
29
  } from "./chunk-6HBXEJHO.js";
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-2NWHS53N.js";
54
+ } from "./chunk-I2ZT7SV2.js";
55
55
  import {
56
56
  CLAUDE_CONFIG_DIR_ENV,
57
57
  approveApiKeyInClaudeConfig,
@@ -6173,4 +6173,4 @@ export {
6173
6173
  stopAllSessionsAndWait,
6174
6174
  getProjectDir
6175
6175
  };
6176
- //# sourceMappingURL=chunk-O5LKHDN7.js.map
6176
+ //# sourceMappingURL=chunk-YZSECLT4.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-AGRBHK4X.js";
16
+ } from "./chunk-W4WVX7D4.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-2NWHS53N.js";
18
+ import "./chunk-I2ZT7SV2.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-BJYGOVTF.js.map
37
+ //# sourceMappingURL=claude-code-updater-MO64U3D6.js.map
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  consumerTermsOffKeys,
6
6
  selectRowKeys
7
- } from "./chunk-OO36JBFI.js";
7
+ } from "./chunk-HYQ7VOC3.js";
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-2NWHS53N.js";
11
+ } from "./chunk-I2ZT7SV2.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-BYF4LRJD.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-YKPIDETF.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-5OY4AZCI.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-IMG45YN5.js.map
@@ -18,6 +18,7 @@ import {
18
18
  buildConnectivityProbeDeps,
19
19
  buildProbeEnv,
20
20
  classifyEnvIntegrationsDiff,
21
+ classifyMcpServer,
21
22
  clearPresenceReaperState,
22
23
  clearPresenceReaperStateForKeys,
23
24
  computerUseReaperView,
@@ -84,7 +85,7 @@ import {
84
85
  tripClass,
85
86
  writeEtcEnvironment,
86
87
  writeProfileDScript
87
- } from "../chunk-YYUYLLIX.js";
88
+ } from "../chunk-7HGQBGOI.js";
88
89
  import {
89
90
  CLAUDE_CODE_SECURITY_FLOOR,
90
91
  SELF_UPDATE_TIMEOUTS,
@@ -98,7 +99,7 @@ import {
98
99
  runSafeCleanup,
99
100
  tightestDiskStat,
100
101
  withPackageCacheLock
101
- } from "../chunk-AGRBHK4X.js";
102
+ } from "../chunk-W4WVX7D4.js";
102
103
  import {
103
104
  rewriteSupervisorApiKey,
104
105
  supervisorChannelsRefusing
@@ -191,7 +192,7 @@ import {
191
192
  webFetchBaselineValue,
192
193
  webFetchRestartNeeded,
193
194
  writeEgressAllowlist
194
- } from "../chunk-O5LKHDN7.js";
195
+ } from "../chunk-YZSECLT4.js";
195
196
  import {
196
197
  isAgentIdle,
197
198
  isStaleForToday,
@@ -201,7 +202,7 @@ import {
201
202
  sessionTranscriptDir,
202
203
  subagentActivityAgeSeconds,
203
204
  transcriptActivityAgeSeconds
204
- } from "../chunk-L5QCDOM2.js";
205
+ } from "../chunk-LBQSZVUX.js";
205
206
  import {
206
207
  classifyUnanswerablePane,
207
208
  focusedConfirmDialogBlock,
@@ -210,7 +211,7 @@ import {
210
211
  parkedModalKind,
211
212
  sendDialogKeys,
212
213
  simpleTextHash
213
- } from "../chunk-OO36JBFI.js";
214
+ } from "../chunk-HYQ7VOC3.js";
214
215
  import "../chunk-6HBXEJHO.js";
215
216
  import {
216
217
  parsePsRows,
@@ -329,7 +330,7 @@ import {
329
330
  stabiliseResetInstant,
330
331
  sumTranscriptUsageInWindow,
331
332
  summarizeTranscriptActivity
332
- } from "../chunk-2NWHS53N.js";
333
+ } from "../chunk-I2ZT7SV2.js";
333
334
  import {
334
335
  CLAUDE_CONFIG_DIR_ENV,
335
336
  claudeConfigDirFor,
@@ -2620,7 +2621,7 @@ function orphanedRemoteMcpKeys(mcpServers, expectedIntegrationKeys) {
2620
2621
  for (const [key, entry] of Object.entries(mcpServers)) {
2621
2622
  if (expectedIntegrationKeys.has(key)) continue;
2622
2623
  if (isManagedMcpServerKey(key)) continue;
2623
- if (!isRemoteMcpEntry(entry)) continue;
2624
+ if (!isRemoteMcpEntry(entry) && classifyMcpServer(entry) !== "oauth-proxy") continue;
2624
2625
  orphans.push(key);
2625
2626
  }
2626
2627
  return orphans;
@@ -15560,7 +15561,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15560
15561
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15561
15562
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15562
15563
  async function channelInboundActivityAgeSecondsFor(codeName) {
15563
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-NDUJDMXI.js");
15564
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-VU7CUC7P.js");
15564
15565
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15565
15566
  if (newest === null) return null;
15566
15567
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -16357,7 +16358,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16357
16358
  var lastVersionCheckAt = 0;
16358
16359
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16359
16360
  var lastResponsivenessProbeAt = 0;
16360
- var agtCliVersion = true ? "0.28.1196" : "dev";
16361
+ var agtCliVersion = true ? "0.28.1198" : "dev";
16361
16362
  function resolveBrewPath(execFileSync3) {
16362
16363
  try {
16363
16364
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18261,7 +18262,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18261
18262
  if (codeNames.length === 0) return;
18262
18263
  void (async () => {
18263
18264
  try {
18264
- const { collectDiagnostics } = await import("../persistent-session-BYF4LRJD.js");
18265
+ const { collectDiagnostics } = await import("../persistent-session-YKPIDETF.js");
18265
18266
  await api.post("/host/heartbeat", {
18266
18267
  host_id: hostId,
18267
18268
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18404,7 +18405,7 @@ async function pollCycleInner() {
18404
18405
  }
18405
18406
  try {
18406
18407
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18407
- const { collectDiagnostics } = await import("../persistent-session-BYF4LRJD.js");
18408
+ const { collectDiagnostics } = await import("../persistent-session-YKPIDETF.js");
18408
18409
  const diagCodeNames = [...agentState.persistentSessionAgents];
18409
18410
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18410
18411
  let tailscaleHostname;
@@ -18662,7 +18663,7 @@ async function pollCycleInner() {
18662
18663
  }
18663
18664
  try {
18664
18665
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18665
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-BJYGOVTF.js");
18666
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-MO64U3D6.js");
18666
18667
  const securityFloor = currentSecurityFloor();
18667
18668
  claudeUpdaterInFlight = true;
18668
18669
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18697,7 +18698,7 @@ async function pollCycleInner() {
18697
18698
  collectPanelessActivityProbes,
18698
18699
  getResponsivenessIntervalMs,
18699
18700
  occupancyQualificationClassifications
18700
- } = await import("../responsiveness-probe-NDUJDMXI.js");
18701
+ } = await import("../responsiveness-probe-VU7CUC7P.js");
18701
18702
  const probeIntervalMs = getResponsivenessIntervalMs();
18702
18703
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18703
18704
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18814,7 +18815,7 @@ async function pollCycleInner() {
18814
18815
  collectResponsivenessProbes,
18815
18816
  livePendingInboundOldestAgeSeconds,
18816
18817
  parkPendingInbound
18817
- } = await import("../responsiveness-probe-NDUJDMXI.js");
18818
+ } = await import("../responsiveness-probe-VU7CUC7P.js");
18818
18819
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18819
18820
  const wedgeNow = /* @__PURE__ */ new Date();
18820
18821
  const liveAgents = agentState.persistentSessionAgents;
@@ -19100,7 +19101,7 @@ async function pollCycleInner() {
19100
19101
  }
19101
19102
  }
19102
19103
  );
19103
- const { parkPendingInbound } = await import("../responsiveness-probe-NDUJDMXI.js");
19104
+ const { parkPendingInbound } = await import("../responsiveness-probe-VU7CUC7P.js");
19104
19105
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19105
19106
  paneFatalStreak.delete(codeName);
19106
19107
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19131,7 +19132,7 @@ async function pollCycleInner() {
19131
19132
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19132
19133
  bindSourceEscalations
19133
19134
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19134
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-BYF4LRJD.js");
19135
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-YKPIDETF.js");
19135
19136
  const mountConfig = resolveTranscriptMountConfig();
19136
19137
  const liveAgents = agentState.persistentSessionAgents;
19137
19138
  for (const tracked of [
@@ -19296,7 +19297,7 @@ async function pollCycleInner() {
19296
19297
  }
19297
19298
  try {
19298
19299
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19299
- const { probeSessionAuth } = await import("../session-auth-dead-KVBAILUJ.js");
19300
+ const { probeSessionAuth } = await import("../session-auth-dead-SXJSD34M.js");
19300
19301
  const observations = [];
19301
19302
  const pendingCacheCommits = [];
19302
19303
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -24026,7 +24027,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24026
24027
  try {
24027
24028
  const freshId = rotateSessionForWedge(codeName);
24028
24029
  consecutiveWedgeCycles.delete(codeName);
24029
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-NDUJDMXI.js");
24030
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-VU7CUC7P.js");
24030
24031
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
24031
24032
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
24032
24033
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -24069,7 +24070,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
24069
24070
  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}`));
24070
24071
  void (async () => {
24071
24072
  try {
24072
- const { collectDiagnostics } = await import("../persistent-session-BYF4LRJD.js");
24073
+ const { collectDiagnostics } = await import("../persistent-session-YKPIDETF.js");
24073
24074
  await api.post("/host/heartbeat", {
24074
24075
  host_id: hostId,
24075
24076
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24120,7 +24121,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24120
24121
  }
24121
24122
  try {
24122
24123
  const hostId = await getHostId();
24123
- const { collectDiagnostics } = await import("../persistent-session-BYF4LRJD.js");
24124
+ const { collectDiagnostics } = await import("../persistent-session-YKPIDETF.js");
24124
24125
  await api.post("/host/heartbeat", {
24125
24126
  host_id: hostId,
24126
24127
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24822,7 +24823,7 @@ async function processClaudePairSessions(agents) {
24822
24823
  snapshotPairConfig,
24823
24824
  // ENG-11659: result -> report body + the manager.log line that records it.
24824
24825
  planPairStartReport
24825
- } = await import("../claude-pair-runtime-5OY4AZCI.js");
24826
+ } = await import("../claude-pair-runtime-IMG45YN5.js");
24826
24827
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24827
24828
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24828
24829
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);