@openclaw/slack 2026.10.33 → 2026.10.35

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.
@@ -624,7 +624,7 @@ const loadSlackResolveUsersModule = createLazyRuntimeModule(() => import("./reso
624
624
  const loadSlackActionRuntime = createLazyRuntimeModule(() => import("./action-runtime.runtime-vLxx_7s2.mjs"));
625
625
  const loadSlackSendRuntime = createLazyRuntimeModule(() => import("./send-C-8wY0lK.mjs").then((n) => n.n));
626
626
  const loadSlackProbeModule = createLazyRuntimeModule(() => import("./probe-IiHogLQN.mjs").then((n) => n.n));
627
- const loadSlackMonitorModule = createLazyRuntimeModule(() => import("./monitor-Dcd6ymHV.mjs").then((n) => n.t));
627
+ const loadSlackMonitorModule = createLazyRuntimeModule(() => import("./monitor-BVySoUSv.mjs").then((n) => n.t));
628
628
  const loadSlackDirectoryLiveModule = createLazyRuntimeModule(() => import("./directory-live-BIKD-5B_.mjs").then((n) => n.t));
629
629
  async function setSlackHeartbeatThreadStatus(params) {
630
630
  const threadTs = resolveSlackThreadTsValue({ threadId: params.threadId });
@@ -2040,14 +2040,12 @@ async function authorizeSlackSystemEventSender(params) {
2040
2040
  channelType,
2041
2041
  channelName
2042
2042
  };
2043
- if (params.interactiveEvent) {
2044
- if (inferSlackChannelType(channelId) === void 0 && !parseSlackChannelType(resolvedTypeSource)) return {
2045
- allowed: false,
2046
- reason: "ambiguous-channel-type",
2047
- channelType,
2048
- channelName
2049
- };
2050
- }
2043
+ if (inferSlackChannelType(channelId) !== "im" && !parseSlackChannelType(resolvedTypeSource)) return {
2044
+ allowed: false,
2045
+ reason: "ambiguous-channel-type",
2046
+ channelType,
2047
+ channelName
2048
+ };
2051
2049
  }
2052
2050
  const senderInfo = params.retryNameLookup ? void 0 : await params.ctx.resolveUserName(senderId, params.eventScope);
2053
2051
  const ingressChannelType = channelType ?? "channel";
@@ -2921,7 +2919,7 @@ const SLACK_COMMAND_ARG_BUTTON_VALUE_MAX = 2e3;
2921
2919
  const SLACK_COMMAND_ARG_CONFIRM_TEXT_MAX = 300;
2922
2920
  const SLACK_HEADER_TEXT_MAX = 150;
2923
2921
  const SLACK_COMMAND_ARG_ACTION_BLOCKS_MAX = 47;
2924
- const loadSlashDispatchRuntime = createLazyRuntimeModule(() => import("./slash-dispatch.runtime-DNddQpYP.mjs"));
2922
+ const loadSlashDispatchRuntime = createLazyRuntimeModule(() => import("./slash-dispatch.runtime-CBinvKzJ.mjs"));
2925
2923
  const loadPluginCommandRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/plugin-command-runtime"));
2926
2924
  const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
2927
2925
  function buildSlackArgMenuConfirm(params) {
@@ -4427,7 +4425,8 @@ async function respondEphemeral(respond, text) {
4427
4425
  try {
4428
4426
  await respond({
4429
4427
  text,
4430
- response_type: "ephemeral"
4428
+ response_type: "ephemeral",
4429
+ replace_original: false
4431
4430
  });
4432
4431
  } catch {}
4433
4432
  }
@@ -5879,7 +5878,7 @@ function buildSlackDebounceKey(message, accountId, teamId) {
5879
5878
  }
5880
5879
  //#endregion
5881
5880
  //#region extensions/slack/src/monitor/message-handler.ts
5882
- const loadSlackMessagePipeline = createLazyRuntimeModule(() => import("./pipeline.runtime-CdF95Pej.mjs"));
5881
+ const loadSlackMessagePipeline = createLazyRuntimeModule(() => import("./pipeline.runtime-Q9O-pO5i.mjs"));
5883
5882
  const RETRYABLE_FLUSH_MAX_ATTEMPTS = 3;
5884
5883
  function shouldDebounceSlackMessage(message, cfg) {
5885
5884
  const textForCommandDetection = stripSlackMentionsForCommandDetection(message.text ?? "");
@@ -6414,7 +6413,7 @@ async function getSlackBoltInterop() {
6414
6413
  }
6415
6414
  return slackBoltInterop;
6416
6415
  }
6417
- const loadSlackRelaySource = createLazyRuntimeModule(() => import("./relay-source-BPXstGYg.mjs"));
6416
+ const loadSlackRelaySource = createLazyRuntimeModule(() => import("./relay-source-BOdfS-vK.mjs"));
6418
6417
  function resolveSlackRuntimeIdentity(params) {
6419
6418
  const botUserId = normalizeOptionalString(params.botUserId);
6420
6419
  const botId = normalizeOptionalString(params.botId);
@@ -8,8 +8,8 @@ import { n as resolveSlackReplyThreadTs } from "./thread-ts-Cvt7WD6B.mjs";
8
8
  import { C as hasSlackTableBlock, D as buildSlackEditTextPayload, E as resolveSlackMessageText$1, T as resolveSlackBlocksText, a as editSlackRenderedMessage, b as formatSlackFileReference, d as reactSlackMessage, i as editSlackMessage, m as removeSlackReaction, n as deleteSlackMessage, w as isSlackUnfurlAttachment, x as formatSlackFileReferenceList } from "./actions-By7tvpvv.mjs";
9
9
  import { c as hasSlackThreadParticipationWithPersistence, i as clearSlackThreadFailureNotice, l as recordSlackThreadFailureNotice, m as buildSlackNativeDataDeliveryPlan, o as hasSlackThreadFailureNotice, p as hasSlackMessageIdentity, s as hasSlackThreadParticipation, t as sendMessageSlack, u as recordSlackThreadParticipation } from "./send-C-8wY0lK.mjs";
10
10
  import { n as resolveSlackChannelConfig } from "./policy-yhn48xf5.mjs";
11
- import { C as resolveSlackChatType, E as stripSlackMentionsForCommandDetection, S as normalizeSlackChannelType, T as readSlackAssistantThreadContext, _ as appendSlackStream, b as stopSlackStream, c as resolveSlackRoutingContext, g as SlackStreamNotDeliveredError, h as resolveSlackEffectiveAllowFrom, i as resolveSlackRoomContextHints, l as registerSlackSessionRun, m as resolveSlackCommandIngress, p as authorizeSlackBotRoomMessage, r as trackSlackDraftMessage, s as authorizeSlackDirectMessage, u as resolveSlackThreadContext, v as markSlackStreamFallbackDelivered, w as buildSlackAssistantThreadMetadata, y as startSlackStream } from "./monitor-Dcd6ymHV.mjs";
12
- import { a as emitSlackMessageSentHooks, i as sanitizeSlackMonitorReplyPayload, n as deliverReplies, t as createSlackReplyDeliveryPlan } from "./replies-C60dQn3J.mjs";
11
+ import { C as resolveSlackChatType, E as stripSlackMentionsForCommandDetection, S as normalizeSlackChannelType, T as readSlackAssistantThreadContext, _ as appendSlackStream, b as stopSlackStream, c as resolveSlackRoutingContext, g as SlackStreamNotDeliveredError, h as resolveSlackEffectiveAllowFrom, i as resolveSlackRoomContextHints, l as registerSlackSessionRun, m as resolveSlackCommandIngress, p as authorizeSlackBotRoomMessage, r as trackSlackDraftMessage, s as authorizeSlackDirectMessage, u as resolveSlackThreadContext, v as markSlackStreamFallbackDelivered, w as buildSlackAssistantThreadMetadata, y as startSlackStream } from "./monitor-BVySoUSv.mjs";
12
+ import { a as emitSlackMessageSentHooks, i as sanitizeSlackMonitorReplyPayload, n as deliverReplies, t as createSlackReplyDeliveryPlan } from "./replies-B51smkMT.mjs";
13
13
  import { asOptionalRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, readNonBlankString } from "openclaw/plugin-sdk/string-coerce-runtime";
14
14
  import { resolveInboundLastRouteSessionKey } from "openclaw/plugin-sdk/routing";
15
15
  import { buildChannelProgressDraftLine, compactChannelProgressDraftLine, createChannelMessageReplyPipeline, createChannelProgressDraftCompositor, createChannelProgressWorkCounter, createDraftStreamLoop, createFinalizableDraftLifecycle, createLivePreviewLifecycle, createMessageReceiptFromOutboundResults, resolveAgentOutboundIdentity, resolveChannelMessageSourceReplyDeliveryMode, resolveChannelProgressDraftConfig, resolveChannelProgressDraftMaxLineChars, resolveChannelStreamingBlockEnabled, resolveChannelStreamingPreviewToolProgress, resolveChannelStreamingSuppressDefaultToolProgressMessages, selectPlanChecklistSteps } from "openclaw/plugin-sdk/channel-outbound";
@@ -2143,23 +2143,23 @@ async function dispatchSlackMessageWithSetup(setup, beginSessionRun, turnAdoptio
2143
2143
  const { draftStream, previewLifecycle } = progress;
2144
2144
  setup.threadStatusGate.hasVisibleOutput = () => delivery.observedReplyDelivery || previewLifecycle.previewFinalized || Boolean(draftStream?.messageId());
2145
2145
  const failureNoticeThreadTs = message.thread_ts;
2146
- const failureNoticeTeamId = prepared.eventScope?.teamId;
2146
+ const teamId = prepared.eventScope?.teamId;
2147
+ const explicitlyAddressed = prepared.ctxPayload.ExplicitlyMentionedBot === true || prepared.ctxPayload.MentionSource === "explicit_bot" || prepared.ctxPayload.MentionSource === "subteam" || prepared.ctxPayload.MentionSource === "mention_pattern" || prepared.ctxPayload.MentionSource === "command_bypass" || prepared.ctxPayload.CommandTurn?.kind !== void 0 && prepared.ctxPayload.CommandTurn.kind !== "normal" && prepared.ctxPayload.CommandTurn.authorized;
2147
2148
  let sawTerminalFailurePayload = false;
2148
2149
  let pendingFailureNotice;
2149
2150
  const filterPassiveThreadFailure = (payload) => {
2150
2151
  if (payload.isError !== true || prepared.ctxPayload.ChatType !== "channel" || isReplyPayloadNonTerminalToolErrorWarning(payload)) return payload;
2151
2152
  sawTerminalFailurePayload = true;
2152
2153
  if (delivery.observedReplyDelivery || previewLifecycle.previewFinalized) return payload;
2153
- const explicitlyAddressed = prepared.ctxPayload.ExplicitlyMentionedBot === true || prepared.ctxPayload.MentionSource === "explicit_bot" || prepared.ctxPayload.MentionSource === "subteam" || prepared.ctxPayload.MentionSource === "mention_pattern" || prepared.ctxPayload.MentionSource === "command_bypass" || prepared.ctxPayload.CommandTurn?.kind !== void 0 && prepared.ctxPayload.CommandTurn.kind !== "normal" && prepared.ctxPayload.CommandTurn.authorized;
2154
2154
  const noticeThreadTs = failureNoticeThreadTs ?? (explicitlyAddressed ? statusThreadTs : void 0);
2155
2155
  const notice = {
2156
2156
  accountId: account.accountId,
2157
2157
  channelId: message.channel,
2158
2158
  ...noticeThreadTs ? { threadTs: noticeThreadTs } : {},
2159
2159
  failureText: payload.text ?? "",
2160
- ...failureNoticeTeamId ? { teamId: failureNoticeTeamId } : {}
2160
+ ...teamId ? { teamId } : {}
2161
2161
  };
2162
- if (failureNoticeThreadTs && !explicitlyAddressed && prepared.ctxPayload.MentionSource !== "implicit_thread" && !hasSlackThreadParticipation(notice.accountId, notice.channelId, failureNoticeThreadTs, failureNoticeTeamId)) {
2162
+ if (failureNoticeThreadTs && !explicitlyAddressed && prepared.ctxPayload.MentionSource !== "implicit_thread" && !hasSlackThreadParticipation(notice.accountId, notice.channelId, failureNoticeThreadTs, teamId)) {
2163
2163
  logVerbose("slack: suppressed passive failure before thread participation");
2164
2164
  return null;
2165
2165
  }
@@ -2318,6 +2318,10 @@ async function dispatchSlackMessageWithSetup(setup, beginSessionRun, turnAdoptio
2318
2318
  };
2319
2319
  let agentRunFailed = false;
2320
2320
  let settledDispatchResult;
2321
+ if (prepared.ctxPayload.ChatType === "channel" && setup.streamThreadHint && explicitlyAddressed) recordSlackThreadParticipation(account.accountId, message.channel, setup.streamThreadHint, {
2322
+ agentId: route.agentId,
2323
+ teamId
2324
+ });
2321
2325
  try {
2322
2326
  const turnResult = await dispatchChannelInboundTurn({
2323
2327
  cfg,
@@ -2412,7 +2416,7 @@ async function dispatchSlackMessageWithSetup(setup, beginSessionRun, turnAdoptio
2412
2416
  accountId: account.accountId,
2413
2417
  channelId: message.channel,
2414
2418
  ...failureNoticeThreadTs ? { threadTs: failureNoticeThreadTs } : {},
2415
- ...failureNoticeTeamId ? { teamId: failureNoticeTeamId } : {}
2419
+ ...teamId ? { teamId } : {}
2416
2420
  });
2417
2421
  }
2418
2422
  } catch (err) {
@@ -2444,7 +2448,7 @@ async function dispatchSlackMessageWithSetup(setup, beginSessionRun, turnAdoptio
2444
2448
  const participationThreadTs = delivery.usedReplyThreadTs ?? statusThreadTs;
2445
2449
  if (anyReplyDelivered && participationThreadTs) recordSlackThreadParticipation(account.accountId, message.channel, participationThreadTs, {
2446
2450
  agentId: route.agentId,
2447
- teamId: prepared.eventScope?.teamId
2451
+ teamId
2448
2452
  });
2449
2453
  if (dispatchError) throw toErrorObject(dispatchError, "Slack dispatch failed");
2450
2454
  if (!anyReplyDelivered && !previewLifecycle.previewFinalized && !(agentRunFailed && progress.useDraftProgressCard)) {
@@ -1,5 +1,5 @@
1
1
  import { o as formatSlackError } from "./probe-IiHogLQN.mjs";
2
- import { d as parseSlackMessageEvent, f as requireSlackMessageEvent, x as SLACK_SOCKET_RECONNECT_POLICY } from "./monitor-Dcd6ymHV.mjs";
2
+ import { d as parseSlackMessageEvent, f as requireSlackMessageEvent, x as SLACK_SOCKET_RECONNECT_POLICY } from "./monitor-BVySoUSv.mjs";
3
3
  import { asOptionalRecord, normalizeOptionalString, readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import { computeBackoff, sleepWithAbort, warn } from "openclaw/plugin-sdk/runtime-env";
5
5
  import { createNodeProxyAgent } from "openclaw/plugin-sdk/fetch-runtime";
@@ -2,7 +2,7 @@ import { C as isSlackNativeResponseUrlRejection, M as SLACK_TEXT_LIMIT, S as isS
2
2
  import { n as iterateSlackReplyDeliveryMessages, o as resolveSlackReplyBlockResolution, t as hasSlackReplyStructuredContent } from "./reply-blocks-Ca-raz2z.mjs";
3
3
  import { n as resolveSlackReplyThreadTs } from "./thread-ts-Cvt7WD6B.mjs";
4
4
  import { h as chunkSlackTextAtHardLimit, m as buildSlackNativeDataDeliveryPlan, t as sendMessageSlack } from "./send-C-8wY0lK.mjs";
5
- import { a as SlackResponseAlreadyReportedError, o as createSlackResponseUrlBudget } from "./monitor-Dcd6ymHV.mjs";
5
+ import { a as SlackResponseAlreadyReportedError, o as createSlackResponseUrlBudget } from "./monitor-BVySoUSv.mjs";
6
6
  import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
7
7
  import { createReplyReferencePlanner } from "openclaw/plugin-sdk/reply-reference";
8
8
  import { deliverTextOrMediaReply, getReplyPayloadTtsSupplement, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
@@ -1,4 +1,4 @@
1
- import { i as sanitizeSlackMonitorReplyPayload, r as deliverSlackSlashReplies } from "./replies-C60dQn3J.mjs";
1
+ import { i as sanitizeSlackMonitorReplyPayload, r as deliverSlackSlashReplies } from "./replies-B51smkMT.mjs";
2
2
  import { resolveAgentRoute } from "openclaw/plugin-sdk/routing";
3
3
  import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
4
4
  import { resolveConversationLabel } from "openclaw/plugin-sdk/conversation-runtime";
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@ import { a as parseSlackTarget, i as normalizeSlackMessagingTarget, o as resolve
5
5
  import "./.setup/targets-C6LZQL1Q.mjs";
6
6
  import { Ht as resolveSlackAutoThreadId, a as resolveSlackGroupRequireMention, gt as validateSlackBlocksArray, ht as parseSlackBlocksInput, mt as SLACK_MAX_BLOCKS, o as resolveSlackGroupToolPolicy } from "./.setup/session-status-Dv8wNBEt.mjs";
7
7
  import { A as resolveSlackAllowListMatch, D as allowListMatches, E as resolveSlackWriteClientOptions, M as resolveSlackUserAllowed, O as normalizeSlackAllowOwnerEntry, S as SLACK_WRITE_RETRY_OPTIONS, T as resolveSlackWebClientOptions, _ as getSlackWriteClient, h as createSlackWriteClient, k as normalizeSlackSlug, m as createSlackWebClient, p as createSlackTokenCacheKey, t as probeSlack, x as SLACK_DEFAULT_RETRY_OPTIONS } from "./.setup/probe-IiHogLQN.mjs";
8
- import { n as buildSlackThreadingToolContext, t as slackPlugin } from "./.setup/channel-DQKq-0IZ.mjs";
8
+ import { n as buildSlackThreadingToolContext, t as slackPlugin } from "./.setup/channel-Bqa6gNZX.mjs";
9
9
  import { d as buildSlackInteractiveBlocks, f as buildSlackPresentationBlocks } from "./.setup/reply-blocks-Ca-raz2z.mjs";
10
10
  import { n as extractSlackToolSend, r as listSlackMessageActions } from "./.setup/message-tool-api-BS5ekEA_.mjs";
11
11
  import { n as resolveSlackChannelType } from "./.setup/channel-type-BEFP2ORi.mjs";
@@ -1,2 +1,2 @@
1
- import { t as slackPlugin } from "./.setup/channel-DQKq-0IZ.mjs";
1
+ import { t as slackPlugin } from "./.setup/channel-Bqa6gNZX.mjs";
2
2
  export { slackPlugin };
@@ -7,7 +7,7 @@ import { c as listSlackPins, d as reactSlackMessage, f as readSlackMessages, g a
7
7
  import { t as sendMessageSlack } from "./.setup/send-C-8wY0lK.mjs";
8
8
  import { n as slackActionRuntime, t as handleSlackAction } from "./.setup/action-runtime-ChRfnnBu.mjs";
9
9
  import { n as listSlackDirectoryGroupsLive, r as listSlackDirectoryPeersLive } from "./.setup/directory-live-BIKD-5B_.mjs";
10
- import { n as monitorSlackProvider } from "./.setup/monitor-Dcd6ymHV.mjs";
10
+ import { n as monitorSlackProvider } from "./.setup/monitor-BVySoUSv.mjs";
11
11
  import { t as resolveSlackChannelAllowlist } from "./.setup/resolve-channels-DRRhElwz.mjs";
12
12
  import { t as resolveSlackUserAllowlist } from "./.setup/resolve-users-Cz8e17ky.mjs";
13
13
  export { deleteSlackMessage, editSlackMessage, getSlackMemberInfo, handleSlackAction, listEnabledSlackAccounts, listSlackAccountIds, listSlackDirectoryGroupsLive, listSlackDirectoryPeersLive, listSlackEmojis, listSlackPins, listSlackReactions, monitorSlackProvider, pinSlackMessage, probeSlack, reactSlackMessage, readSlackMessages, registerSlackPluginHttpRoutes, removeOwnSlackReactions, removeSlackReaction, resolveDefaultSlackAccountId, resolveSlackAccount, resolveSlackAppToken, resolveSlackBotToken, resolveSlackChannelAllowlist, resolveSlackGroupRequireMention, resolveSlackGroupToolPolicy, resolveSlackUserAllowlist, sendMessageSlack, sendSlackMessage, setSlackRuntime, slackActionRuntime, unpinSlackMessage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/slack",
3
- "version": "2026.10.33",
3
+ "version": "2026.10.35",
4
4
  "description": "OpenClaw Slack channel plugin for channels, DMs, commands, and app events.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -153,7 +153,7 @@
153
153
  "pluginApi": ">=2026.11.4"
154
154
  },
155
155
  "build": {
156
- "openclawVersion": "2026.10.33",
156
+ "openclawVersion": "2026.10.35",
157
157
  "bundledDist": false
158
158
  },
159
159
  "release": {