@integrity-labs/agt-cli 0.28.524 → 0.28.526

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-OT66RBK5.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-C7ETZOWH.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-KEG2LDMH.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-V7PPPPU5.js.map
@@ -53,7 +53,7 @@ import {
53
53
  safeWriteJsonAtomic,
54
54
  setConfigHash,
55
55
  tripClass
56
- } from "../chunk-QYQR4BWM.js";
56
+ } from "../chunk-ONTG4Z5K.js";
57
57
  import {
58
58
  getProjectDir as getProjectDir2,
59
59
  getReadyTasks,
@@ -177,7 +177,7 @@ import {
177
177
  toOpencodeModel,
178
178
  transcriptActivityAgeSeconds,
179
179
  writeEgressAllowlist
180
- } from "../chunk-LBSV575W.js";
180
+ } from "../chunk-Z4P4VEDU.js";
181
181
  import {
182
182
  reapOrphanChannelMcps
183
183
  } from "../chunk-XWVM4KPK.js";
@@ -6448,6 +6448,11 @@ function isAppMentionEcho(evt, botUserId) {
6448
6448
  return false;
6449
6449
  return typeof evt.text === "string" && evt.text.includes(`<@${botUserId}>`);
6450
6450
  }
6451
+ function slackInboundDedupId(evt) {
6452
+ if (!evt.channel || !evt.ts)
6453
+ return null;
6454
+ return `${evt.channel}:${evt.ts}:${evt.type ?? "unknown"}`;
6455
+ }
6451
6456
  function extractAugmentedSlackLabel(evt) {
6452
6457
  if (evt.metadata?.event_type !== "augmented_agent_message")
6453
6458
  return null;
@@ -6866,7 +6871,7 @@ async function dispatchSlackInbound(event, ctx) {
6866
6871
  if (isAppMentionEcho(event, ctx.botUserId ?? null)) {
6867
6872
  return "dropped_echo";
6868
6873
  }
6869
- const dedupKey = event.channel && event.ts ? `${event.channel}:${event.ts}` : null;
6874
+ const dedupKey = slackInboundDedupId(event);
6870
6875
  if (dedupKey) {
6871
6876
  if (ctx.seen.has(dedupKey)) return "dropped_duplicate";
6872
6877
  ctx.seen.add(dedupKey);
@@ -10167,7 +10172,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
10167
10172
  var lastVersionCheckAt = 0;
10168
10173
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
10169
10174
  var lastResponsivenessProbeAt = 0;
10170
- var agtCliVersion = true ? "0.28.524" : "dev";
10175
+ var agtCliVersion = true ? "0.28.526" : "dev";
10171
10176
  function resolveBrewPath(execFileSync2) {
10172
10177
  try {
10173
10178
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -11375,7 +11380,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
11375
11380
  if (codeNames.length === 0) return;
11376
11381
  void (async () => {
11377
11382
  try {
11378
- const { collectDiagnostics } = await import("../persistent-session-OT66RBK5.js");
11383
+ const { collectDiagnostics } = await import("../persistent-session-C7ETZOWH.js");
11379
11384
  await api.post("/host/heartbeat", {
11380
11385
  host_id: hostId,
11381
11386
  agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor)
@@ -11482,7 +11487,7 @@ async function pollCycle() {
11482
11487
  }
11483
11488
  try {
11484
11489
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
11485
- const { collectDiagnostics } = await import("../persistent-session-OT66RBK5.js");
11490
+ const { collectDiagnostics } = await import("../persistent-session-C7ETZOWH.js");
11486
11491
  const diagCodeNames = [...agentState.persistentSessionAgents];
11487
11492
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor) : void 0;
11488
11493
  let tailscaleHostname;
@@ -11597,7 +11602,7 @@ async function pollCycle() {
11597
11602
  collectResponsivenessProbes,
11598
11603
  collectPanelessActivityProbes,
11599
11604
  getResponsivenessIntervalMs
11600
- } = await import("../responsiveness-probe-KW7KQJUY.js");
11605
+ } = await import("../responsiveness-probe-WHA7YNFM.js");
11601
11606
  const probeIntervalMs = getResponsivenessIntervalMs();
11602
11607
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
11603
11608
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -11661,7 +11666,7 @@ async function pollCycle() {
11661
11666
  collectResponsivenessProbes,
11662
11667
  livePendingInboundOldestAgeSeconds,
11663
11668
  parkPendingInbound
11664
- } = await import("../responsiveness-probe-KW7KQJUY.js");
11669
+ } = await import("../responsiveness-probe-WHA7YNFM.js");
11665
11670
  const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-NDP36U7O.js");
11666
11671
  const wedgeNow = /* @__PURE__ */ new Date();
11667
11672
  const liveAgents = agentState.persistentSessionAgents;
@@ -15181,7 +15186,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
15181
15186
  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}`));
15182
15187
  void (async () => {
15183
15188
  try {
15184
- const { collectDiagnostics } = await import("../persistent-session-OT66RBK5.js");
15189
+ const { collectDiagnostics } = await import("../persistent-session-C7ETZOWH.js");
15185
15190
  await api.post("/host/heartbeat", {
15186
15191
  host_id: hostId,
15187
15192
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -15231,7 +15236,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
15231
15236
  }
15232
15237
  try {
15233
15238
  const hostId = await getHostId();
15234
- const { collectDiagnostics } = await import("../persistent-session-OT66RBK5.js");
15239
+ const { collectDiagnostics } = await import("../persistent-session-C7ETZOWH.js");
15235
15240
  await api.post("/host/heartbeat", {
15236
15241
  host_id: hostId,
15237
15242
  agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor)
@@ -15755,7 +15760,7 @@ async function processClaudePairSessions(agents) {
15755
15760
  killPairSession,
15756
15761
  pairTmuxSession,
15757
15762
  finalizeClaudePairOnboarding
15758
- } = await import("../claude-pair-runtime-KEG2LDMH.js");
15763
+ } = await import("../claude-pair-runtime-V7PPPPU5.js");
15759
15764
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
15760
15765
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
15761
15766
  const killed = await killPairSession(pairTmuxSession(pairId));