@openclaw/slack 2026.10.2 → 2026.10.5-beta.2

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 (116) hide show
  1. package/dist/.setup/account-configured-zcR9TJJN.mjs +35 -0
  2. package/dist/.setup/{account-inspect-Cs-7DXXW.mjs → account-inspect-D58VVDjk.mjs} +15 -35
  3. package/dist/.setup/{accounts-CDgkV7Cm.mjs → accounts-BMg9YLIv.mjs} +44 -53
  4. package/dist/.setup/{action-runtime-DJ1daRAZ.mjs → action-runtime-BiRZNsIG.mjs} +20 -22
  5. package/dist/.setup/action-runtime.runtime-C5xceJoS.mjs +2 -0
  6. package/dist/.setup/{actions-DDoAJnrH.mjs → actions-KGKwTAKO.mjs} +34 -43
  7. package/dist/.setup/{approval-handler.runtime-BcE_shWc.mjs → approval-handler.runtime-DYrsG2Ox.mjs} +44 -70
  8. package/dist/.setup/{approval-message-updates-EgKGmFXx.mjs → approval-message-updates-CwdDew9i.mjs} +1 -1
  9. package/dist/.setup/{channel-DgKSu8Iv.mjs → channel-C7MY-Hhg.mjs} +138 -97
  10. package/dist/.setup/{channel-type-B9zYYzBU.mjs → channel-type-NjX2SwvS.mjs} +3 -3
  11. package/dist/.setup/{channel.setup-BYIlwbQ7.mjs → channel.setup-BFpQowO3.mjs} +7 -14
  12. package/dist/.setup/{directory-config-B_by7zrc.mjs → directory-config-BEDZPfDn.mjs} +1 -1
  13. package/dist/.setup/{directory-live-C48wazJt.mjs → directory-live-FipfeCwt.mjs} +33 -36
  14. package/dist/.setup/{message-tool-api-CcjLPN3v.mjs → message-tool-api-C7im5ETh.mjs} +2 -2
  15. package/dist/.setup/{monitor-BuYBDmm7.mjs → monitor-BnN2px0N.mjs} +609 -801
  16. package/dist/.setup/{outbound-adapter-BZFkK-mw.mjs → outbound-adapter-4HdGq-8r.mjs} +4 -4
  17. package/dist/.setup/{pipeline.runtime-CIepKmZt.mjs → pipeline.runtime-ByPbC6MN.mjs} +287 -365
  18. package/dist/.setup/{policy-KKTqEiDv.mjs → policy-BaY9_eh1.mjs} +2 -2
  19. package/dist/.setup/{probe-BVlJ3dp0.mjs → probe-CyX52GtD.mjs} +54 -61
  20. package/dist/.setup/{relay-source-CC3h6M7y.mjs → relay-source-CVfH-fBO.mjs} +28 -45
  21. package/dist/.setup/{replies-DHbuthIR.mjs → replies-WmfwvQxc.mjs} +38 -49
  22. package/dist/.setup/{reply-blocks-CKnO4BSG.mjs → reply-blocks-rqHQ_3pr.mjs} +87 -138
  23. package/dist/.setup/{resolve-channels-HR0TgArR.mjs → resolve-channels-B96cgprw.mjs} +17 -41
  24. package/dist/.setup/{resolve-users-BNYBhF0q.mjs → resolve-users-Xz9aPdns.mjs} +22 -58
  25. package/dist/.setup/{scopes-DrDbyUH2.mjs → scopes-aMcMHhXk.mjs} +1 -1
  26. package/dist/.setup/{send-CgPI3Zj8.mjs → send-CLmsR42r.mjs} +157 -284
  27. package/dist/.setup/{session-status-D46GHwOV.mjs → session-status-CcXe10zN.mjs} +181 -238
  28. package/dist/.setup/{setup-plugin-api-ZrHs0N4U.mjs → setup-plugin-api-D92P5p51.mjs} +1 -1
  29. package/dist/.setup/{setup-surface-83lxvE2y.mjs → setup-surface-368jx6Uc.mjs} +6 -6
  30. package/dist/.setup/{shared-VtmYNj-v.mjs → shared-CtprVh_G.mjs} +5 -5
  31. package/dist/.setup/{slash-dispatch.runtime-gBj_uaLM.mjs → slash-dispatch.runtime-Dzwj6TPI.mjs} +1 -1
  32. package/dist/account-inspect-api.js +1 -1
  33. package/dist/api.js +12 -12
  34. package/dist/channel-plugin-api.js +1 -1
  35. package/dist/configured-state.js +6 -13
  36. package/dist/directory-contract-api.js +1 -1
  37. package/dist/message-tool-api.js +1 -1
  38. package/dist/runtime-api.js +10 -10
  39. package/dist/setup-entry.js +1 -1
  40. package/dist/setup-plugin-api.js +1 -1
  41. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/package.json +4 -4
  42. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.d.ts.map +1 -1
  43. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +9 -17
  44. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js.map +1 -1
  45. package/node_modules/@slack/bolt/node_modules/@slack/socket-mode/package.json +4 -4
  46. package/node_modules/@slack/bolt/node_modules/@types/node/README.md +2 -2
  47. package/node_modules/@slack/bolt/node_modules/@types/node/crypto.d.ts +2 -2
  48. package/node_modules/@slack/bolt/node_modules/@types/node/dgram.d.ts +1 -1
  49. package/node_modules/@slack/bolt/node_modules/@types/node/package.json +2 -17
  50. package/node_modules/@slack/bolt/node_modules/@types/node/zlib.d.ts +6 -0
  51. package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +1 -1
  52. package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts.map +1 -1
  53. package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +79 -4
  54. package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
  55. package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts +17 -0
  56. package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts.map +1 -1
  57. package/node_modules/@slack/types/package.json +1 -1
  58. package/node_modules/@slack/web-api/dist/methods.d.ts +49 -2
  59. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  60. package/node_modules/@slack/web-api/dist/methods.js +47 -0
  61. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  62. package/node_modules/@slack/web-api/dist/types/request/agents.d.ts +186 -0
  63. package/node_modules/@slack/web-api/dist/types/request/agents.d.ts.map +1 -1
  64. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
  65. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  66. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsArchiveResponse.d.ts +9 -0
  67. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsArchiveResponse.d.ts.map +1 -0
  68. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsArchiveResponse.js +11 -0
  69. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsArchiveResponse.js.map +1 -0
  70. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsCreateResponse.d.ts +10 -0
  71. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsCreateResponse.d.ts.map +1 -0
  72. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsCreateResponse.js +11 -0
  73. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsCreateResponse.js.map +1 -0
  74. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsGetCanvasResponse.d.ts +29 -0
  75. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsGetCanvasResponse.d.ts.map +1 -0
  76. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsGetCanvasResponse.js +11 -0
  77. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsGetCanvasResponse.js.map +1 -0
  78. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsListViewsResponse.d.ts +18 -0
  79. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsListViewsResponse.d.ts.map +1 -0
  80. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsListViewsResponse.js +11 -0
  81. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsListViewsResponse.js.map +1 -0
  82. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsRemoveViewResponse.d.ts +11 -0
  83. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsRemoveViewResponse.d.ts.map +1 -0
  84. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsRemoveViewResponse.js +11 -0
  85. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsRemoveViewResponse.js.map +1 -0
  86. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCanvasContentResponse.d.ts +11 -0
  87. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCanvasContentResponse.d.ts.map +1 -0
  88. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCanvasContentResponse.js +11 -0
  89. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCanvasContentResponse.js.map +1 -0
  90. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCommandsResponse.d.ts +11 -0
  91. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCommandsResponse.d.ts.map +1 -0
  92. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCommandsResponse.js +11 -0
  93. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetCommandsResponse.js.map +1 -0
  94. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetPropertiesResponse.d.ts +10 -0
  95. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetPropertiesResponse.d.ts.map +1 -0
  96. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetPropertiesResponse.js +11 -0
  97. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetPropertiesResponse.js.map +1 -0
  98. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetViewResponse.d.ts +15 -0
  99. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetViewResponse.d.ts.map +1 -0
  100. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetViewResponse.js +11 -0
  101. package/node_modules/@slack/web-api/dist/types/response/AgentsConversationsSetViewResponse.js.map +1 -0
  102. package/node_modules/@slack/web-api/dist/types/response/ConversationsInfoResponse.d.ts +31 -0
  103. package/node_modules/@slack/web-api/dist/types/response/ConversationsInfoResponse.d.ts.map +1 -1
  104. package/node_modules/@slack/web-api/dist/types/response/index.d.ts +9 -0
  105. package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
  106. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  107. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +2 -2
  108. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +1 -1
  109. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -17
  110. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +6 -0
  111. package/node_modules/@slack/web-api/package.json +2 -2
  112. package/openclaw.plugin.json +0 -3
  113. package/package.json +6 -14
  114. package/dist/.setup/account-configured-sUohAxZr.mjs +0 -33
  115. package/dist/.setup/action-runtime.runtime-CdWL2mLC.mjs +0 -2
  116. package/dist/control-ui/2f4b1e827be6b68ced2ea0d8b7da8529a4eafbe72be27ee37e1064bdd530ec10/index.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
2
- import { s as resolveSlackAccount } from "./accounts-CDgkV7Cm.mjs";
3
- import { c as collectSlackCursorPages, l as fetchSlackChannelListPage, u as createSlackLookupClient } from "./probe-BVlJ3dp0.mjs";
2
+ import { s as resolveSlackAccount } from "./accounts-BMg9YLIv.mjs";
3
+ import { c as collectSlackCursorPages, l as fetchSlackChannelListPage, u as createSlackLookupClient } from "./probe-CyX52GtD.mjs";
4
4
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
5
5
  //#region extensions/slack/src/directory-live.ts
6
6
  var directory_live_exports = /* @__PURE__ */ __exportAll({
@@ -51,54 +51,51 @@ async function getSlackDirectorySelfLive(params) {
51
51
  });
52
52
  }
53
53
  }
54
- async function listSlackDirectoryPeersLive(params) {
55
- const client = createSlackDirectoryClient(params);
56
- if (!client) return [];
57
- const query = normalizeLowercaseStringOrEmpty(params.query);
58
- const rows = (await collectSlackCursorPages({
54
+ function createSlackDirectoryLister(options) {
55
+ return async (params) => {
56
+ const client = createSlackDirectoryClient(params);
57
+ if (!client) return [];
58
+ const query = normalizeLowercaseStringOrEmpty(params.query);
59
+ const rows = (await options.fetchRows(client)).filter((row) => {
60
+ const candidates = options.searchValues(row).map(normalizeOptionalLowercaseString).filter(Boolean);
61
+ return !query || candidates.some((candidate) => candidate?.includes(query));
62
+ }).map(options.toEntry).filter((entry) => entry !== null);
63
+ return typeof params.limit === "number" && params.limit > 0 ? rows.slice(0, params.limit) : rows;
64
+ };
65
+ }
66
+ const listSlackDirectoryPeersLive = createSlackDirectoryLister({
67
+ fetchRows: (client) => collectSlackCursorPages({
59
68
  fetchPage: (cursor) => client.users.list({
60
69
  limit: 200,
61
70
  cursor
62
71
  }),
63
72
  collectPageItems: (res) => Array.isArray(res.members) ? res.members : []
64
- })).filter((member) => {
65
- const candidates = [
66
- member.profile?.display_name || member.profile?.real_name || member.real_name,
67
- member.name,
68
- member.profile?.email
69
- ].map((item) => normalizeOptionalLowercaseString(item)).filter(Boolean);
70
- if (!query) return true;
71
- return candidates.some((candidate) => candidate?.includes(query));
72
- }).map((member) => slackUserToDirectoryEntry(member)).filter((entry) => entry !== null);
73
- if (typeof params.limit === "number" && params.limit > 0) return rows.slice(0, params.limit);
74
- return rows;
75
- }
76
- async function listSlackDirectoryGroupsLive(params) {
77
- const client = createSlackDirectoryClient(params);
78
- if (!client) return [];
79
- const query = normalizeLowercaseStringOrEmpty(params.query);
80
- const rows = (await collectSlackCursorPages({
73
+ }),
74
+ searchValues: (member) => [
75
+ member.profile?.display_name || member.profile?.real_name || member.real_name,
76
+ member.name,
77
+ member.profile?.email
78
+ ],
79
+ toEntry: (member) => slackUserToDirectoryEntry(member)
80
+ });
81
+ const listSlackDirectoryGroupsLive = createSlackDirectoryLister({
82
+ fetchRows: (client) => collectSlackCursorPages({
81
83
  fetchPage: (cursor) => fetchSlackChannelListPage(client, cursor),
82
84
  collectPageItems: (res) => Array.isArray(res.channels) ? res.channels : []
83
- })).filter((channel) => {
84
- const name = normalizeOptionalLowercaseString(channel.name);
85
- if (!query) return true;
86
- return Boolean(name && name.includes(query));
87
- }).map((channel) => {
85
+ }),
86
+ searchValues: (channel) => [channel.name],
87
+ toEntry: (channel) => {
88
88
  const id = channel.id?.trim();
89
89
  const name = channel.name?.trim();
90
- if (!id || !name) return null;
91
- return {
90
+ return id && name ? {
92
91
  kind: "group",
93
92
  id: `channel:${id}`,
94
93
  name,
95
94
  handle: `#${name}`,
96
95
  rank: channel.is_archived ? 0 : 1,
97
96
  raw: channel
98
- };
99
- }).filter((entry) => entry !== null);
100
- if (typeof params.limit === "number" && params.limit > 0) return rows.slice(0, params.limit);
101
- return rows;
102
- }
97
+ } : null;
98
+ }
99
+ });
103
100
  //#endregion
104
101
  export { listSlackDirectoryGroupsLive as n, listSlackDirectoryPeersLive as r, directory_live_exports as t };
@@ -1,5 +1,5 @@
1
- import { i as listSlackAccountIds } from "./accounts-CDgkV7Cm.mjs";
2
- import { t as inspectSlackAccount } from "./account-inspect-Cs-7DXXW.mjs";
1
+ import { i as listSlackAccountIds } from "./accounts-BMg9YLIv.mjs";
2
+ import { t as inspectSlackAccount } from "./account-inspect-D58VVDjk.mjs";
3
3
  import { r as resolveSlackThreadTsValue, t as normalizeSlackThreadTsCandidate } from "./thread-ts-Cvt7WD6B.mjs";
4
4
  import { createActionGate } from "openclaw/plugin-sdk/channel-actions";
5
5
  import { extractToolSend } from "openclaw/plugin-sdk/tool-send";