@integrity-labs/agt-cli 0.27.142 → 0.27.144

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-SOCMTNFC.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-35PWSTLO.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-ZLYTTNUY.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-GIUCD7IG.js.map
@@ -18,7 +18,7 @@ import {
18
18
  provisionStopHook,
19
19
  requireHost,
20
20
  safeWriteJsonAtomic
21
- } from "../chunk-OI33LV54.js";
21
+ } from "../chunk-HPUIWWKD.js";
22
22
  import {
23
23
  getProjectDir as getProjectDir2,
24
24
  getReadyTasks,
@@ -54,9 +54,10 @@ import {
54
54
  stopPersistentSession,
55
55
  takeWatchdogGiveUpCount,
56
56
  takeZombieDetection
57
- } from "../chunk-IDDSO7Q5.js";
57
+ } from "../chunk-7GKJZBTB.js";
58
58
  import {
59
59
  KANBAN_CHECK_COMMAND,
60
+ MAX_AVATAR_ENV_URL_BYTES,
60
61
  SUPPRESS_SENTINEL,
61
62
  appendDmFooter,
62
63
  attributeTranscriptUsageByRun,
@@ -76,12 +77,13 @@ import {
76
77
  probeComposioAccount,
77
78
  probeComposioMcpToolCall,
78
79
  probeHttpProvider,
80
+ resolveAvatarEnvUrl,
79
81
  resolveChannels,
80
82
  resolveConnectivityProbe,
81
83
  resolveDmTarget,
82
84
  worseConnectivityOutcome,
83
85
  wrapScheduledTaskPrompt
84
- } from "../chunk-WCXA7EEP.js";
86
+ } from "../chunk-WOOYOAPG.js";
85
87
  import {
86
88
  isAgentIdle,
87
89
  isStaleForToday,
@@ -4758,7 +4760,7 @@ var cachedMaintenanceWindow = null;
4758
4760
  var lastVersionCheckAt = 0;
4759
4761
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
4760
4762
  var lastResponsivenessProbeAt = 0;
4761
- var agtCliVersion = true ? "0.27.142" : "dev";
4763
+ var agtCliVersion = true ? "0.27.144" : "dev";
4762
4764
  function resolveBrewPath(execFileSync4) {
4763
4765
  try {
4764
4766
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -5956,7 +5958,7 @@ async function pollCycle() {
5956
5958
  }
5957
5959
  try {
5958
5960
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
5959
- const { collectDiagnostics } = await import("../persistent-session-SOCMTNFC.js");
5961
+ const { collectDiagnostics } = await import("../persistent-session-35PWSTLO.js");
5960
5962
  const diagCodeNames = [...agentState.persistentSessionAgents];
5961
5963
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
5962
5964
  let tailscaleHostname;
@@ -6043,12 +6045,12 @@ async function pollCycle() {
6043
6045
  const {
6044
6046
  collectResponsivenessProbes,
6045
6047
  getResponsivenessIntervalMs
6046
- } = await import("../responsiveness-probe-USWGCI4C.js");
6048
+ } = await import("../responsiveness-probe-MA4M2QM4.js");
6047
6049
  const probeIntervalMs = getResponsivenessIntervalMs();
6048
6050
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
6049
6051
  const probeCodeNames = [...agentState.persistentSessionAgents];
6050
6052
  if (probeCodeNames.length > 0) {
6051
- const { takeAcpxExecFailureCount, creditAcpxExecFailureCount } = await import("../persistent-session-SOCMTNFC.js");
6053
+ const { takeAcpxExecFailureCount, creditAcpxExecFailureCount } = await import("../persistent-session-35PWSTLO.js");
6052
6054
  const drainedGiveUps = /* @__PURE__ */ new Map();
6053
6055
  const drainedAcpxFailures = /* @__PURE__ */ new Map();
6054
6056
  const probes = collectResponsivenessProbes(probeCodeNames).map((p) => {
@@ -6082,7 +6084,7 @@ async function pollCycle() {
6082
6084
  collectResponsivenessProbes,
6083
6085
  livePendingInboundOldestAgeSeconds,
6084
6086
  deadLetterPendingInbound
6085
- } = await import("../responsiveness-probe-USWGCI4C.js");
6087
+ } = await import("../responsiveness-probe-MA4M2QM4.js");
6086
6088
  const { transcriptActivityAgeSeconds } = await import("../daily-session-PNQX5URX.js");
6087
6089
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
6088
6090
  const wedgeNow = /* @__PURE__ */ new Date();
@@ -7033,7 +7035,17 @@ async function processAgent(agent, agentStates) {
7033
7035
  const telegramPeers = channelId === "telegram" ? extractCharterTelegramPeers(refreshData.charter?.raw_content ?? "", gateContext) : void 0;
7034
7036
  const slackPeers = channelId === "slack" ? extractCharterSlackPeers(refreshData.charter?.raw_content ?? "", gateContext) : void 0;
7035
7037
  const senderPolicyForCall = channelId === "slack" || channelId === "msteams" ? refreshData.sender_policy ?? void 0 : void 0;
7036
- const agentAvatarUrl = channelId === "slack" ? (refreshData.agent.avatar_url ?? void 0) || void 0 : void 0;
7038
+ let agentAvatarUrl;
7039
+ if (channelId === "slack") {
7040
+ const rawAvatarUrl = refreshData.agent.avatar_url ?? void 0;
7041
+ const avatarResolution = resolveAvatarEnvUrl(rawAvatarUrl);
7042
+ agentAvatarUrl = avatarResolution.url ?? void 0;
7043
+ if (avatarResolution.skipReason && avatarResolution.skipReason !== "empty") {
7044
+ log(
7045
+ `WARN: skipped Slack bot avatar for '${agent.code_name}' (reason=${avatarResolution.skipReason}${avatarResolution.bytes !== void 0 ? `, bytes=${avatarResolution.bytes}` : ""}) \u2014 not a hosted URL / exceeds ${MAX_AVATAR_ENV_URL_BYTES}B cap; Slack runs without the custom photo. Upload the avatar to storage and store the hosted URL to restore it (ENG-6245).`
7046
+ );
7047
+ }
7048
+ }
7037
7049
  frameworkAdapter.writeChannelCredentials(
7038
7050
  agent.code_name,
7039
7051
  channelId,
@@ -10603,7 +10615,7 @@ async function processClaudePairSessions(agents) {
10603
10615
  killPairSession,
10604
10616
  pairTmuxSession,
10605
10617
  finalizeClaudePairOnboarding
10606
- } = await import("../claude-pair-runtime-ZLYTTNUY.js");
10618
+ } = await import("../claude-pair-runtime-GIUCD7IG.js");
10607
10619
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
10608
10620
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
10609
10621
  const killed = await killPairSession(pairTmuxSession(pairId));