@integrity-labs/agt-cli 0.28.1189 → 0.28.1191

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-6C22ELAZ.js → chunk-5RDPFXWO.js} +54 -21
  3. package/dist/chunk-5RDPFXWO.js.map +1 -0
  4. package/dist/{chunk-GYY5LC6U.js → chunk-7T4CZ2NS.js} +2 -2
  5. package/dist/{chunk-M5QY6SXB.js → chunk-GRU6GNLP.js} +31 -5
  6. package/dist/chunk-GRU6GNLP.js.map +1 -0
  7. package/dist/{chunk-CJ3KE25W.js → chunk-L5BWZX3Z.js} +3 -3
  8. package/dist/{chunk-BG7IPLTE.js → chunk-VS3QXUDM.js} +2 -2
  9. package/dist/{claude-code-updater-CQ2SWFEJ.js → claude-code-updater-JPVLPWVR.js} +3 -3
  10. package/dist/{claude-pair-runtime-N54HX4ZR.js → claude-pair-runtime-JXXYGKWS.js} +3 -3
  11. package/dist/lib/manager-worker.js +28 -21
  12. package/dist/lib/manager-worker.js.map +1 -1
  13. package/dist/{persistent-session-NL7N3MA4.js → persistent-session-NSA3UYRF.js} +4 -4
  14. package/dist/{responsiveness-probe-BMLAPOIY.js → responsiveness-probe-MWH3BKAL.js} +4 -4
  15. package/dist/{session-auth-dead-PTHDHHK4.js → session-auth-dead-RYU7ZB56.js} +3 -3
  16. package/package.json +1 -1
  17. package/dist/chunk-6C22ELAZ.js.map +0 -1
  18. package/dist/chunk-M5QY6SXB.js.map +0 -1
  19. /package/dist/{chunk-GYY5LC6U.js.map → chunk-7T4CZ2NS.js.map} +0 -0
  20. /package/dist/{chunk-CJ3KE25W.js.map → chunk-L5BWZX3Z.js.map} +0 -0
  21. /package/dist/{chunk-BG7IPLTE.js.map → chunk-VS3QXUDM.js.map} +0 -0
  22. /package/dist/{claude-code-updater-CQ2SWFEJ.js.map → claude-code-updater-JPVLPWVR.js.map} +0 -0
  23. /package/dist/{claude-pair-runtime-N54HX4ZR.js.map → claude-pair-runtime-JXXYGKWS.js.map} +0 -0
  24. /package/dist/{persistent-session-NL7N3MA4.js.map → persistent-session-NSA3UYRF.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-BMLAPOIY.js.map → responsiveness-probe-MWH3BKAL.js.map} +0 -0
  26. /package/dist/{session-auth-dead-PTHDHHK4.js.map → session-auth-dead-RYU7ZB56.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  rotateDailySession,
5
5
  sessionFileExists,
6
6
  todayLocalIso
7
- } from "./chunk-GYY5LC6U.js";
7
+ } from "./chunk-7T4CZ2NS.js";
8
8
  import {
9
9
  classifyUnanswerablePane,
10
10
  customApiKeyDialogKeys,
@@ -51,7 +51,7 @@ import {
51
51
  remoteMcpConnectionEnvInfix,
52
52
  remoteMcpConnectionLabel,
53
53
  remoteMcpConnectionScopedEnvVar
54
- } from "./chunk-M5QY6SXB.js";
54
+ } from "./chunk-GRU6GNLP.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-CJ3KE25W.js.map
6176
+ //# sourceMappingURL=chunk-L5BWZX3Z.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-M5QY6SXB.js";
7
+ } from "./chunk-GRU6GNLP.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-BG7IPLTE.js.map
725
+ //# sourceMappingURL=chunk-VS3QXUDM.js.map
@@ -13,9 +13,9 @@ import {
13
13
  probeClaudeInstalls,
14
14
  readsAsNativeInstall,
15
15
  shouldRunClaudeCodeUpdater
16
- } from "./chunk-BG7IPLTE.js";
16
+ } from "./chunk-VS3QXUDM.js";
17
17
  import "./chunk-XWVM4KPK.js";
18
- import "./chunk-M5QY6SXB.js";
18
+ import "./chunk-GRU6GNLP.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-CQ2SWFEJ.js.map
37
+ //# sourceMappingURL=claude-code-updater-JPVLPWVR.js.map
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  redactPaneFrame,
10
10
  sanitizeTerminalFrame
11
- } from "./chunk-M5QY6SXB.js";
11
+ } from "./chunk-GRU6GNLP.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-NL7N3MA4.js");
324
+ const { resolveClaudeBinary } = await import("./persistent-session-NSA3UYRF.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-N54HX4ZR.js.map
839
+ //# sourceMappingURL=claude-pair-runtime-JXXYGKWS.js.map
@@ -74,6 +74,7 @@ import {
74
74
  reapStaleMcpChildren,
75
75
  reaperRestartBreakerReason,
76
76
  reconstructQuarantinedMcpServerEntry,
77
+ redactKnownValues,
77
78
  requireHost,
78
79
  resolveEffectivePinRaw,
79
80
  safeWriteJsonAtomic,
@@ -82,7 +83,7 @@ import {
82
83
  tripClass,
83
84
  writeEtcEnvironment,
84
85
  writeProfileDScript
85
- } from "../chunk-6C22ELAZ.js";
86
+ } from "../chunk-5RDPFXWO.js";
86
87
  import {
87
88
  CLAUDE_CODE_SECURITY_FLOOR,
88
89
  SELF_UPDATE_TIMEOUTS,
@@ -96,7 +97,7 @@ import {
96
97
  runSafeCleanup,
97
98
  tightestDiskStat,
98
99
  withPackageCacheLock
99
- } from "../chunk-BG7IPLTE.js";
100
+ } from "../chunk-VS3QXUDM.js";
100
101
  import {
101
102
  rewriteSupervisorApiKey,
102
103
  supervisorChannelsRefusing
@@ -189,7 +190,7 @@ import {
189
190
  webFetchBaselineValue,
190
191
  webFetchRestartNeeded,
191
192
  writeEgressAllowlist
192
- } from "../chunk-CJ3KE25W.js";
193
+ } from "../chunk-L5BWZX3Z.js";
193
194
  import {
194
195
  isAgentIdle,
195
196
  isStaleForToday,
@@ -199,7 +200,7 @@ import {
199
200
  sessionTranscriptDir,
200
201
  subagentActivityAgeSeconds,
201
202
  transcriptActivityAgeSeconds
202
- } from "../chunk-GYY5LC6U.js";
203
+ } from "../chunk-7T4CZ2NS.js";
203
204
  import {
204
205
  classifyUnanswerablePane,
205
206
  focusedConfirmDialogBlock,
@@ -325,7 +326,7 @@ import {
325
326
  stabiliseResetInstant,
326
327
  sumTranscriptUsageInWindow,
327
328
  summarizeTranscriptActivity
328
- } from "../chunk-M5QY6SXB.js";
329
+ } from "../chunk-GRU6GNLP.js";
329
330
  import {
330
331
  CLAUDE_CONFIG_DIR_ENV,
331
332
  claudeConfigDirFor,
@@ -2939,7 +2940,13 @@ async function runConnectivityProbes(integrations, options = {}) {
2939
2940
  integration_id: integ.id,
2940
2941
  scope: integ.scope,
2941
2942
  status: outcome.status,
2942
- ...outcome.message ? { message: outcome.message } : {},
2943
+ // ENG-11374: this message is stored and shown on operator reads, and every probe
2944
+ // kind passes through here, so its secrets are removed here.
2945
+ ...outcome.message ? {
2946
+ message: redactKnownValues(outcome.message, [process.env, options.probeEnv, integ.credentials]),
2947
+ // Tells the API it may store this message: see `message_redacted` below.
2948
+ message_redacted: true
2949
+ } : {},
2943
2950
  // ENG-8226: report WHAT the probe did, not just what it concluded. The
2944
2951
  // API persists this to `last_connectivity_evidence` so an `ok` is
2945
2952
  // self-describing and a green verdict can be justified rather than
@@ -15481,7 +15488,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
15481
15488
  var dayRolloverInboundHold = /* @__PURE__ */ new Map();
15482
15489
  var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
15483
15490
  async function channelInboundActivityAgeSecondsFor(codeName) {
15484
- const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-BMLAPOIY.js");
15491
+ const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-MWH3BKAL.js");
15485
15492
  const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
15486
15493
  if (newest === null) return null;
15487
15494
  return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
@@ -15953,7 +15960,7 @@ async function runAgentConnectivityProbes(agent, integrations, projectDir) {
15953
15960
  remote_mcp: i.remote_mcp ?? null
15954
15961
  };
15955
15962
  }),
15956
- { probeDeps, intervalMs: intervalSec * 1e3 }
15963
+ { probeDeps, probeEnv, intervalMs: intervalSec * 1e3 }
15957
15964
  );
15958
15965
  if (result.reports.length > 0) {
15959
15966
  await api.post("/host/integration-connectivity", {
@@ -16278,7 +16285,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
16278
16285
  var lastVersionCheckAt = 0;
16279
16286
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
16280
16287
  var lastResponsivenessProbeAt = 0;
16281
- var agtCliVersion = true ? "0.28.1189" : "dev";
16288
+ var agtCliVersion = true ? "0.28.1191" : "dev";
16282
16289
  function resolveBrewPath(execFileSync3) {
16283
16290
  try {
16284
16291
  const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -18182,7 +18189,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
18182
18189
  if (codeNames.length === 0) return;
18183
18190
  void (async () => {
18184
18191
  try {
18185
- const { collectDiagnostics } = await import("../persistent-session-NL7N3MA4.js");
18192
+ const { collectDiagnostics } = await import("../persistent-session-NSA3UYRF.js");
18186
18193
  await api.post("/host/heartbeat", {
18187
18194
  host_id: hostId,
18188
18195
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -18325,7 +18332,7 @@ async function pollCycleInner() {
18325
18332
  }
18326
18333
  try {
18327
18334
  const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
18328
- const { collectDiagnostics } = await import("../persistent-session-NL7N3MA4.js");
18335
+ const { collectDiagnostics } = await import("../persistent-session-NSA3UYRF.js");
18329
18336
  const diagCodeNames = [...agentState.persistentSessionAgents];
18330
18337
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
18331
18338
  let tailscaleHostname;
@@ -18580,7 +18587,7 @@ async function pollCycleInner() {
18580
18587
  }
18581
18588
  try {
18582
18589
  const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
18583
- const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-CQ2SWFEJ.js");
18590
+ const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-JPVLPWVR.js");
18584
18591
  const securityFloor = currentSecurityFloor();
18585
18592
  claudeUpdaterInFlight = true;
18586
18593
  if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
@@ -18615,7 +18622,7 @@ async function pollCycleInner() {
18615
18622
  collectPanelessActivityProbes,
18616
18623
  getResponsivenessIntervalMs,
18617
18624
  occupancyQualificationClassifications
18618
- } = await import("../responsiveness-probe-BMLAPOIY.js");
18625
+ } = await import("../responsiveness-probe-MWH3BKAL.js");
18619
18626
  const probeIntervalMs = getResponsivenessIntervalMs();
18620
18627
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
18621
18628
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -18732,7 +18739,7 @@ async function pollCycleInner() {
18732
18739
  collectResponsivenessProbes,
18733
18740
  livePendingInboundOldestAgeSeconds,
18734
18741
  parkPendingInbound
18735
- } = await import("../responsiveness-probe-BMLAPOIY.js");
18742
+ } = await import("../responsiveness-probe-MWH3BKAL.js");
18736
18743
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
18737
18744
  const wedgeNow = /* @__PURE__ */ new Date();
18738
18745
  const liveAgents = agentState.persistentSessionAgents;
@@ -19018,7 +19025,7 @@ async function pollCycleInner() {
19018
19025
  }
19019
19026
  }
19020
19027
  );
19021
- const { parkPendingInbound } = await import("../responsiveness-probe-BMLAPOIY.js");
19028
+ const { parkPendingInbound } = await import("../responsiveness-probe-MWH3BKAL.js");
19022
19029
  const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
19023
19030
  paneFatalStreak.delete(codeName);
19024
19031
  paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
@@ -19049,7 +19056,7 @@ async function pollCycleInner() {
19049
19056
  TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
19050
19057
  bindSourceEscalations
19051
19058
  } = await import("../transcript-mount-health-OHE6IVJV.js");
19052
- const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NL7N3MA4.js");
19059
+ const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-NSA3UYRF.js");
19053
19060
  const mountConfig = resolveTranscriptMountConfig();
19054
19061
  const liveAgents = agentState.persistentSessionAgents;
19055
19062
  for (const tracked of [
@@ -19214,7 +19221,7 @@ async function pollCycleInner() {
19214
19221
  }
19215
19222
  try {
19216
19223
  const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
19217
- const { probeSessionAuth } = await import("../session-auth-dead-PTHDHHK4.js");
19224
+ const { probeSessionAuth } = await import("../session-auth-dead-RYU7ZB56.js");
19218
19225
  const observations = [];
19219
19226
  const pendingCacheCommits = [];
19220
19227
  const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
@@ -23916,7 +23923,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
23916
23923
  try {
23917
23924
  const freshId = rotateSessionForWedge(codeName);
23918
23925
  consecutiveWedgeCycles.delete(codeName);
23919
- const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-BMLAPOIY.js");
23926
+ const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-MWH3BKAL.js");
23920
23927
  const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
23921
23928
  const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
23922
23929
  const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
@@ -23959,7 +23966,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
23959
23966
  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}`));
23960
23967
  void (async () => {
23961
23968
  try {
23962
- const { collectDiagnostics } = await import("../persistent-session-NL7N3MA4.js");
23969
+ const { collectDiagnostics } = await import("../persistent-session-NSA3UYRF.js");
23963
23970
  await api.post("/host/heartbeat", {
23964
23971
  host_id: hostId,
23965
23972
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24010,7 +24017,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
24010
24017
  }
24011
24018
  try {
24012
24019
  const hostId = await getHostId();
24013
- const { collectDiagnostics } = await import("../persistent-session-NL7N3MA4.js");
24020
+ const { collectDiagnostics } = await import("../persistent-session-NSA3UYRF.js");
24014
24021
  await api.post("/host/heartbeat", {
24015
24022
  host_id: hostId,
24016
24023
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
@@ -24712,7 +24719,7 @@ async function processClaudePairSessions(agents) {
24712
24719
  snapshotPairConfig,
24713
24720
  // ENG-11659: result -> report body + the manager.log line that records it.
24714
24721
  planPairStartReport
24715
- } = await import("../claude-pair-runtime-N54HX4ZR.js");
24722
+ } = await import("../claude-pair-runtime-JXXYGKWS.js");
24716
24723
  const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
24717
24724
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
24718
24725
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);