@openclaw/slack 2026.8.1-beta.2 → 2026.8.1-beta.3

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.
Files changed (54) hide show
  1. package/dist/{account-inspect-Drw2gAiN.js → account-inspect-YJvFBbCR.js} +1 -1
  2. package/dist/account-inspect-api.js +1 -1
  3. package/dist/{accounts-CK4AVI2_.js → accounts-BlzxuYle.js} +5 -1
  4. package/dist/{accounts.runtime-Cb7QwWBz.js → accounts.runtime-CbabBL8x.js} +1 -1
  5. package/dist/{action-runtime-BkGe7ny_.js → action-runtime-D6jg2CQd.js} +64 -68
  6. package/dist/action-runtime.runtime-JtoOK9l5.js +2 -0
  7. package/dist/{actions-BTDXwwE3.js → actions-DFk0ANVB.js} +52 -212
  8. package/dist/{actions.runtime-DLFyUkvg.js → actions.runtime-CYLsYRai.js} +1 -1
  9. package/dist/api.js +14 -14
  10. package/dist/{approval-handler.runtime-CJaNzAq2.js → approval-handler.runtime-BNvAoKdK.js} +4 -2
  11. package/dist/{channel-D_tovcUL.js → channel-CA5w7qDF.js} +78 -39
  12. package/dist/channel-config-api.js +1 -1
  13. package/dist/channel-plugin-api.js +1 -1
  14. package/dist/{channel-type-B9MSdoGN.js → channel-type-CZWv55Wu.js} +3 -7
  15. package/dist/{channel.setup-Bch9dYmA.js → channel.setup-CpyYsEXH.js} +4 -4
  16. package/dist/{config-schema-xto5jFIx.js → config-schema-CN3XZRX5.js} +23 -7
  17. package/dist/conversation-binding-route-DFVLUdYF.js +115 -0
  18. package/dist/{directory-config-CNBz8lJa.js → directory-config-BGYyuzWh.js} +1 -1
  19. package/dist/directory-contract-api.js +1 -1
  20. package/dist/{directory-live-CFKUtW9E.js → directory-live-DjUJQLbq.js} +2 -2
  21. package/dist/{group-policy-c4RP9bjc.js → group-policy-DyfB_ZIE.js} +38 -24
  22. package/dist/{message-tool-api-BykQB4AU.js → message-tool-api-CqMr5Rmc.js} +2 -2
  23. package/dist/message-tool-api.js +1 -1
  24. package/dist/{monitor-1nF1NtqT.js → monitor-Chrecrb9.js} +3 -3
  25. package/dist/{outbound-adapter-S81tsswN.js → outbound-adapter-DuRqAQXK.js} +18 -8
  26. package/dist/{pipeline.runtime-BvYsM5JO.js → pipeline.runtime-Bbfd5VFW.js} +376 -324
  27. package/dist/{policy-TapwbeaT.js → policy-BKXSxrIS.js} +1 -1
  28. package/dist/{probe-HoEg_WxB.js → probe-BVA65leh.js} +1 -1
  29. package/dist/{provider-CDNvBXUi.js → provider-CUUiwsg2.js} +65 -44
  30. package/dist/{relay-source-C9leF11u.js → relay-source-mhpMMRG-.js} +1 -1
  31. package/dist/{replies-CeOfv82I.js → replies-SnWyXcsL.js} +36 -25
  32. package/dist/{resolve-channels-CNPrxaXY.js → resolve-channels-BSpqC8jU.js} +1 -1
  33. package/dist/{resolve-users-Dzomuwnr.js → resolve-users-Dvz9pDe0.js} +1 -1
  34. package/dist/{runtime-api-Cj9nxBNv.js → runtime-api-DBi7xc_g.js} +2 -2
  35. package/dist/runtime-api.js +11 -11
  36. package/dist/{scopes-cYXKkrRD.js → scopes-BSk4GZvZ.js} +1 -1
  37. package/dist/security-contract-api.js +1 -1
  38. package/dist/{send-Nor0iBwY.js → send-CtnOxKCc.js} +58 -78
  39. package/dist/{send.runtime-BmgNe6S9.js → send.runtime-kYctMHSd.js} +1 -1
  40. package/dist/setup-plugin-api.js +1 -1
  41. package/dist/{setup-surface-CbX1-Knh.js → setup-surface-BPFfp6So.js} +6 -6
  42. package/dist/{shared-zdT5AMp-.js → shared-DJBaslN7.js} +13 -7
  43. package/dist/{block-text-YtiNkqmx.js → slack-client-kind-BXyOOICI.js} +17 -2
  44. package/dist/{slash-dispatch.runtime-Bnr9GR1S.js → slash-dispatch.runtime-Cf2FTrnf.js} +2 -2
  45. package/openclaw.plugin.json +43 -1
  46. package/package.json +4 -6
  47. package/dist/account-reply-mode-DrUXogvO.js +0 -14
  48. package/dist/action-runtime.runtime-D9I6uc0Q.js +0 -2
  49. package/node_modules/p-map/index.d.ts +0 -155
  50. package/node_modules/p-map/index.js +0 -285
  51. package/node_modules/p-map/license +0 -9
  52. package/node_modules/p-map/package.json +0 -57
  53. package/node_modules/p-map/readme.md +0 -190
  54. package/dist/{security-audit-DR097212.js → security-audit-B_yKr7MW.js} +1 -1
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { E as buildSlackSlashCommandMatcher, t as monitorSlackProvider } from "./provider-CDNvBXUi.js";
3
- import { t as isSlackChannelAllowedByPolicy } from "./policy-TapwbeaT.js";
4
- import { o as resolveSlackThreadTs } from "./replies-CeOfv82I.js";
2
+ import { C as buildSlackSlashCommandMatcher, t as monitorSlackProvider } from "./provider-CUUiwsg2.js";
3
+ import { t as isSlackChannelAllowedByPolicy } from "./policy-BKXSxrIS.js";
4
+ import { o as resolveSlackThreadTs } from "./replies-SnWyXcsL.js";
5
5
  //#region extensions/slack/src/monitor.ts
6
6
  var monitor_exports = /* @__PURE__ */ __exportAll({
7
7
  buildSlackSlashCommandMatcher: () => buildSlackSlashCommandMatcher,
@@ -1,5 +1,5 @@
1
1
  import { a as parseSlackTarget } from "./target-parsing-BnMD2ZqZ.js";
2
- import { B as SLACK_TEXT_LIMIT, I as resolveSlackAuthoredTextPlacement, at as escapeSlackMrkdwn, g as resolveSlackReplyBlockResolution, h as parseSlackReplyBlockSegments, q as SLACK_QUESTION_FINALIZATION_BLOCKS, st as SLACK_PRESENTATION_CAPABILITIES, tt as resolveSlackQuestionActionIds, v as resolveSlackReplyDeliveryMessages } from "./group-policy-c4RP9bjc.js";
2
+ import { U as SLACK_TEXT_LIMIT, X as SLACK_QUESTION_FINALIZATION_BLOCKS, ct as escapeSlackMrkdwn, dt as SLACK_PRESENTATION_CAPABILITIES, it as resolveSlackQuestionActionIds, v as parseSlackReplyBlockSegments, x as resolveSlackReplyDeliveryMessages, y as resolveSlackReplyBlockResolution, z as resolveSlackAuthoredTextPlacement } from "./group-policy-DyfB_ZIE.js";
3
3
  import { n as resolveSlackThreadTsValue } from "./thread-ts-DUGhaYKq.js";
4
4
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  import { resolveOutboundSendDep } from "openclaw/plugin-sdk/channel-outbound";
@@ -10,6 +10,16 @@ import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
10
10
  import { resolvePayloadMediaUrls, sendPayloadMediaSequenceAndFinalize, sendTextMediaPayload } from "openclaw/plugin-sdk/reply-payload";
11
11
  import { attachChannelToResult, createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
12
12
  //#region extensions/slack/src/outbound-adapter.ts
13
+ function toSlackOutboundResult(result) {
14
+ const { channelId, ...delivery } = result;
15
+ return channelId === void 0 ? delivery : {
16
+ ...delivery,
17
+ target: {
18
+ kind: "channel",
19
+ id: channelId
20
+ }
21
+ };
22
+ }
13
23
  const SLACK_RENDERED_PRESENTATION_PROVENANCE_KEY = randomBytes(32);
14
24
  function createSlackRenderedPresentationProvenance(resolution) {
15
25
  return createHmac("sha256", SLACK_RENDERED_PRESENTATION_PROVENANCE_KEY).update(JSON.stringify([resolution.authoredTextPlacement, resolution.segments])).digest("base64url");
@@ -39,7 +49,7 @@ function readSlackRenderedPresentation(slackData) {
39
49
  return;
40
50
  }
41
51
  }
42
- const loadSlackSendRuntime = createLazyRuntimeModule(() => import("./send.runtime-BmgNe6S9.js"));
52
+ const loadSlackSendRuntime = createLazyRuntimeModule(() => import("./send.runtime-kYctMHSd.js"));
43
53
  function resolveSlackSendIdentity(identity) {
44
54
  if (!identity) return;
45
55
  const username = normalizeOptionalString(identity.name);
@@ -113,7 +123,7 @@ async function sendSlackOutboundMessage(params) {
113
123
  ...params.deliveryQueueId ? { deliveryQueueId: params.deliveryQueueId } : {},
114
124
  ...params.onPlatformSendDispatch ? { onPlatformSendDispatch: params.onPlatformSendDispatch } : {},
115
125
  ...params.onDeliveryResult ? { onDeliveryResult: async (progress) => {
116
- await params.onDeliveryResult?.(attachChannelToResult("slack", progress));
126
+ await params.onDeliveryResult?.(attachChannelToResult("slack", toSlackOutboundResult(progress)));
117
127
  } } : {}
118
128
  };
119
129
  return await send(params.to, params.text, sendOptions);
@@ -121,8 +131,8 @@ async function sendSlackOutboundMessage(params) {
121
131
  function createSlackAttachedSendAdapter() {
122
132
  return createAttachedChannelResultAdapter({
123
133
  channel: "slack",
124
- sendText: sendSlackOutboundMessage,
125
- sendMedia: sendSlackOutboundMessage
134
+ sendText: async (ctx) => toSlackOutboundResult(await sendSlackOutboundMessage(ctx)),
135
+ sendMedia: async (ctx) => toSlackOutboundResult(await sendSlackOutboundMessage(ctx))
126
136
  });
127
137
  }
128
138
  const slackOutbound = {
@@ -163,7 +173,7 @@ const slackOutbound = {
163
173
  text: payload.text
164
174
  });
165
175
  const useSingleDeliveryMarker = mediaUrls.length === 0 && deliveryMessages.length === 1;
166
- return attachChannelToResult("slack", await sendPayloadMediaSequenceAndFinalize({
176
+ return attachChannelToResult("slack", toSlackOutboundResult(await sendPayloadMediaSequenceAndFinalize({
167
177
  text: "",
168
178
  mediaUrls,
169
179
  send: async ({ text, mediaUrl }) => await sendSlackOutboundMessage({
@@ -186,7 +196,7 @@ const slackOutbound = {
186
196
  if (!lastResult) throw new Error("Slack rendered presentation produced no deliverable segment");
187
197
  return lastResult;
188
198
  }
189
- }));
199
+ })));
190
200
  },
191
201
  afterDeliverPayload: async ({ cfg, target, payload, results }) => {
192
202
  const questionId = questionGatewayRuntime.readAskUserQuestionId(payload);
@@ -203,7 +213,7 @@ const slackOutbound = {
203
213
  const result = results.find(({ channel, meta }) => channel === "slack" && Array.isArray(meta?.slackQuestionActionIds) && meta.slackQuestionActionIds.some((actionId) => typeof actionId === "string" && questionActionIds.includes(actionId)));
204
214
  const deliveredDisplayBlocks = (result?.meta)?.[SLACK_QUESTION_FINALIZATION_BLOCKS];
205
215
  if (!deliveryMessage || !deliveredDisplayBlocks || !result?.messageId) return;
206
- const channelId = result.channelId;
216
+ const channelId = result.target?.kind === "channel" ? result.target.id : void 0;
207
217
  if (!channelId) return;
208
218
  const teamId = parseSlackTarget(target.to, { defaultKind: "channel" })?.teamId;
209
219
  const questionMessageId = typeof result.meta?.slackQuestionMessageId === "string" ? result.meta.slackQuestionMessageId : result.messageId;