@integrity-labs/agt-cli 0.28.51 → 0.28.53

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.
@@ -27,7 +27,7 @@ import {
27
27
  requireHost,
28
28
  safeWriteJsonAtomic,
29
29
  setConfigHash
30
- } from "../chunk-CCDBWDBW.js";
30
+ } from "../chunk-T2G7IMI5.js";
31
31
  import {
32
32
  getProjectDir as getProjectDir2,
33
33
  getReadyTasks,
@@ -6630,7 +6630,7 @@ var cachedMaintenanceWindow = null;
6630
6630
  var lastVersionCheckAt = 0;
6631
6631
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6632
6632
  var lastResponsivenessProbeAt = 0;
6633
- var agtCliVersion = true ? "0.28.51" : "dev";
6633
+ var agtCliVersion = true ? "0.28.53" : "dev";
6634
6634
  function resolveBrewPath(execFileSync4) {
6635
6635
  try {
6636
6636
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -14556,6 +14556,7 @@ function channelSkipReactionEnabled() {
14556
14556
  }
14557
14557
  function decideBusyAck(i) {
14558
14558
  if (!i.hasTarget) return false;
14559
+ if (!i.arrivedWhileBusy) return false;
14559
14560
  if (!i.stillPending) return false;
14560
14561
  if (!Number.isFinite(i.pendingAgeMs)) return false;
14561
14562
  const threshold = i.thresholdMs ?? channelBusyAckThresholdMs();
@@ -16844,8 +16845,9 @@ function postBusyAckNotice(channel, threadTs, isThreadReply) {
16844
16845
  }).catch(() => {
16845
16846
  });
16846
16847
  }
16847
- function scheduleBusyAck(channel, threadTs, messageTs, isThreadReply) {
16848
+ function scheduleBusyAck(channel, threadTs, messageTs, isThreadReply, arrivedWhileBusy) {
16848
16849
  if (!channelBusyAckEnabled()) return;
16850
+ if (!arrivedWhileBusy) return;
16849
16851
  const thresholdMs = channelBusyAckThresholdMs();
16850
16852
  const timer = setTimeout(() => {
16851
16853
  const probe = process.env.TMUX && AGENT_CODE_NAME ? probeAgentSessionCached(AGENT_CODE_NAME) : { tmux: "unknown", claude: "unknown" };
@@ -16861,6 +16863,7 @@ function scheduleBusyAck(channel, threadTs, messageTs, isThreadReply) {
16861
16863
  if (!marker) return;
16862
16864
  const post = decideBusyAck({
16863
16865
  hasTarget: Boolean(channel && messageTs),
16866
+ arrivedWhileBusy,
16864
16867
  stillPending: true,
16865
16868
  pendingAgeMs: Math.max(0, Date.now() - Date.parse(marker.received_at)),
16866
16869
  sessionAlive: probe.tmux === "alive" && probe.claude === "alive",
@@ -19804,7 +19807,13 @@ async function connectSocketMode() {
19804
19807
  if (channel && ts && armMarker) {
19805
19808
  trackPendingMessage(channel, threadTs, ts, ackDecision === "undeliverable", !shouldEngage);
19806
19809
  if (ackDecision === "ack" && shouldEngage) {
19807
- scheduleBusyAck(channel, threadTs, ts, isThreadReply);
19810
+ scheduleBusyAck(
19811
+ channel,
19812
+ threadTs,
19813
+ ts,
19814
+ isThreadReply,
19815
+ ackInputs.oldestPendingAgeMs != null
19816
+ );
19808
19817
  }
19809
19818
  }
19810
19819
  const userName = await resolveUserName(user);
@@ -16207,6 +16207,7 @@ function channelSkipReactionEnabled() {
16207
16207
  }
16208
16208
  function decideBusyAck(i) {
16209
16209
  if (!i.hasTarget) return false;
16210
+ if (!i.arrivedWhileBusy) return false;
16210
16211
  if (!i.stillPending) return false;
16211
16212
  if (!Number.isFinite(i.pendingAgeMs)) return false;
16212
16213
  const threshold = i.thresholdMs ?? channelBusyAckThresholdMs();
@@ -16640,8 +16641,9 @@ function postBusyAckNotice(chatId, messageId) {
16640
16641
  }
16641
16642
  })();
16642
16643
  }
16643
- function scheduleBusyAck(chatId, messageId) {
16644
+ function scheduleBusyAck(chatId, messageId, arrivedWhileBusy) {
16644
16645
  if (!channelBusyAckEnabled()) return;
16646
+ if (!arrivedWhileBusy) return;
16645
16647
  const thresholdMs = channelBusyAckThresholdMs();
16646
16648
  const timer = setTimeout(() => {
16647
16649
  const probe = process.env.TMUX && AGENT_CODE_NAME && AGENT_CODE_NAME !== "unknown" ? probeAgentSessionCached(AGENT_CODE_NAME) : { tmux: "unknown", claude: "unknown" };
@@ -16657,6 +16659,7 @@ function scheduleBusyAck(chatId, messageId) {
16657
16659
  if (!marker) return;
16658
16660
  const post = decideBusyAck({
16659
16661
  hasTarget: Boolean(chatId && messageId),
16662
+ arrivedWhileBusy,
16660
16663
  stillPending: true,
16661
16664
  pendingAgeMs: Math.max(0, Date.now() - Date.parse(marker.received_at)),
16662
16665
  sessionAlive: probe.tmux === "alive" && probe.claude === "alive",
@@ -18832,7 +18835,7 @@ async function pollLoop() {
18832
18835
  channelPayload
18833
18836
  );
18834
18837
  if (ackDecision === "ack") {
18835
- scheduleBusyAck(chatId, messageId);
18838
+ scheduleBusyAck(chatId, messageId, ackInputs.oldestPendingAgeMs != null);
18836
18839
  }
18837
18840
  await mcp.notification({
18838
18841
  method: "notifications/claude/channel",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.51",
3
+ "version": "0.28.53",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {