@integrity-labs/agt-cli 0.28.53 → 0.28.54

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.
@@ -19628,8 +19628,9 @@ async function connectSocketMode() {
19628
19628
  if (passedIdentity) recordActivity("inbound");
19629
19629
  if (access.kind === "drop") {
19630
19630
  const channelHash = createHash("sha256").update(evt.channel ?? "").digest("hex").slice(0, 8);
19631
+ const subtypeSuffix = access.reason === "content:subtype" ? ` subtype=${evt.subtype ?? "none"}` : "";
19631
19632
  process.stderr.write(
19632
- `slack-channel: inbound drop reason=${access.reason} channel=${channelHash} ts=${redactSlackId(evt.ts)}
19633
+ `slack-channel: inbound drop reason=${access.reason}${subtypeSuffix} channel=${channelHash} ts=${redactSlackId(evt.ts)}
19633
19634
  `
19634
19635
  );
19635
19636
  if (access.decline !== void 0 && policyBlockReason) {
@@ -19735,10 +19736,26 @@ async function connectSocketMode() {
19735
19736
  }
19736
19737
  if (evt.type === "message" && evt.channel && !isDirectMessage) {
19737
19738
  if (isThreadReply) {
19738
- if (THREAD_AUTO_FOLLOW === "off") return;
19739
+ const logThreadDrop = (reason) => {
19740
+ const channelHash = createHash("sha256").update(evt.channel ?? "").digest("hex").slice(0, 8);
19741
+ process.stderr.write(
19742
+ `slack-channel(${AGENT_CODE_NAME}): thread-reply drop reason=${reason} auto_follow=${THREAD_AUTO_FOLLOW} channel=${channelHash} ts=${redactSlackId(evt.ts)}
19743
+ `
19744
+ );
19745
+ };
19746
+ if (THREAD_AUTO_FOLLOW === "off") {
19747
+ logThreadDrop("auto_follow_off");
19748
+ return;
19749
+ }
19739
19750
  const threadInvolvement = threadKey ? trackedThreads.get(threadKey)?.involvement : void 0;
19740
- if (!threadInvolvement) return;
19741
- if (THREAD_AUTO_FOLLOW === "started" && threadInvolvement !== "started") return;
19751
+ if (!threadInvolvement) {
19752
+ logThreadDrop("thread_not_tracked");
19753
+ return;
19754
+ }
19755
+ if (THREAD_AUTO_FOLLOW === "started" && threadInvolvement !== "started") {
19756
+ logThreadDrop("started_mode_not_started");
19757
+ return;
19758
+ }
19742
19759
  } else {
19743
19760
  if (!channelMessageShouldRespond(evt.text ?? "", CHANNEL_RESPONSE_MODE)) return;
19744
19761
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.53",
3
+ "version": "0.28.54",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {