@openclaw/slack 2026.7.2-beta.7 → 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 (87) hide show
  1. package/dist/{account-inspect-DEKpg9Ip.js → account-inspect-YJvFBbCR.js} +1 -1
  2. package/dist/account-inspect-api.js +1 -1
  3. package/dist/{accounts-CHAeNZOX.js → accounts-BlzxuYle.js} +7 -3
  4. package/dist/{accounts.runtime-BHD4Ma2R.js → accounts.runtime-CbabBL8x.js} +1 -1
  5. package/dist/{action-runtime-DfuYoMjG.js → action-runtime-D6jg2CQd.js} +193 -125
  6. package/dist/action-runtime.runtime-JtoOK9l5.js +2 -0
  7. package/dist/{actions-D3NuJvva.js → actions-DFk0ANVB.js} +116 -235
  8. package/dist/actions.runtime-CYLsYRai.js +2 -0
  9. package/dist/api.js +17 -17
  10. package/dist/{approval-handler.runtime-BA05P0QT.js → approval-handler.runtime-BNvAoKdK.js} +53 -14
  11. package/dist/{channel-B9fVdW3s.js → channel-CA5w7qDF.js} +209 -110
  12. package/dist/channel-config-api.js +1 -1
  13. package/dist/channel-plugin-api.js +1 -1
  14. package/dist/{channel-type-DXyos1d2.js → channel-type-CZWv55Wu.js} +9 -12
  15. package/dist/{config-adapter-CxBQH8fq.js → channel.setup-CpyYsEXH.js} +83 -25
  16. package/dist/{config-schema-SgZT6nXV.js → config-schema-CN3XZRX5.js} +27 -17
  17. package/dist/conversation-binding-route-DFVLUdYF.js +115 -0
  18. package/dist/{directory-config-CnCIAktf.js → directory-config-BGYyuzWh.js} +3 -3
  19. package/dist/directory-contract-api.js +1 -1
  20. package/dist/{directory-live-DKunWh3A.js → directory-live-DjUJQLbq.js} +13 -22
  21. package/dist/{doctor-contract-CsGH1Dfc.js → doctor-contract-BAy7-EUQ.js} +30 -3
  22. package/dist/doctor-contract-api.js +1 -1
  23. package/dist/{group-policy-NQZti9t-.js → group-policy-DyfB_ZIE.js} +282 -183
  24. package/dist/index.js +4 -1
  25. package/dist/{message-tool-api-DkhFpMoy.js → message-tool-api-CqMr5Rmc.js} +14 -3
  26. package/dist/message-tool-api.js +1 -1
  27. package/dist/{monitor-CmKz0wtI.js → monitor-Chrecrb9.js} +3 -3
  28. package/dist/{outbound-adapter-BkuMp2Vs.js → outbound-adapter-DuRqAQXK.js} +35 -23
  29. package/dist/{pipeline.runtime-DgtmuYCP.js → pipeline.runtime-Bbfd5VFW.js} +1386 -929
  30. package/dist/{policy-PRysPn23.js → policy-BKXSxrIS.js} +18 -14
  31. package/dist/{probe-CgDsSops.js → probe-BVA65leh.js} +38 -18
  32. package/dist/{provider-DmRizMZt.js → provider-CUUiwsg2.js} +3454 -2601
  33. package/dist/{relay-source-Blxj8xb4.js → relay-source-mhpMMRG-.js} +11 -21
  34. package/dist/{replies-4s_Vq_z9.js → replies-SnWyXcsL.js} +84 -27
  35. package/dist/{resolve-channels-yEqmM-3I.js → resolve-channels-BSpqC8jU.js} +39 -12
  36. package/dist/{resolve-users-BOrt5K-5.js → resolve-users-Dvz9pDe0.js} +28 -5
  37. package/dist/{runtime-api-QMb-Q5Ko.js → runtime-api-DBi7xc_g.js} +3 -3
  38. package/dist/runtime-api.js +11 -11
  39. package/dist/{scopes-BJSrkAp6.js → scopes-BSk4GZvZ.js} +1 -1
  40. package/dist/security-contract-api.js +1 -1
  41. package/dist/{send-DsLeZpST.js → send-CtnOxKCc.js} +249 -163
  42. package/dist/{send.runtime-gUdK6V3h.js → send.runtime-kYctMHSd.js} +1 -1
  43. package/dist/setup-entry.js +1 -4
  44. package/dist/setup-plugin-api.js +1 -1
  45. package/dist/{setup-surface-BeNzrMrJ.js → setup-surface-BPFfp6So.js} +6 -6
  46. package/dist/{shared-DgIN3Dcr.js → shared-DJBaslN7.js} +45 -45
  47. package/dist/{block-text-DkHaoGem.js → slack-client-kind-BXyOOICI.js} +17 -2
  48. package/dist/{slash-dispatch.runtime-zPkyl7dB.js → slash-dispatch.runtime-Cf2FTrnf.js} +2 -2
  49. package/dist/{streaming-compat-3_X-21wW.js → streaming-compat-B-e0mqM0.js} +3 -8
  50. package/dist/{target-parsing-N6lHogYZ.js → target-parsing-BnMD2ZqZ.js} +40 -2
  51. package/dist/{targets-KmjP2E8s.js → targets-Cx5W_n3W.js} +1 -1
  52. package/node_modules/@slack/bolt/node_modules/@types/node/README.md +1 -1
  53. package/node_modules/@slack/bolt/node_modules/@types/node/crypto.d.ts +1 -1
  54. package/node_modules/@slack/bolt/node_modules/@types/node/package.json +2 -2
  55. package/node_modules/@slack/socket-mode/node_modules/@types/node/README.md +1 -1
  56. package/node_modules/@slack/socket-mode/node_modules/@types/node/crypto.d.ts +1 -1
  57. package/node_modules/@slack/socket-mode/node_modules/@types/node/package.json +2 -2
  58. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  59. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +1 -1
  60. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  61. package/node_modules/undici/lib/cache/memory-cache-store.js +54 -9
  62. package/node_modules/undici/lib/cache/sqlite-cache-store.js +7 -1
  63. package/node_modules/undici/lib/core/request.js +12 -1
  64. package/node_modules/undici/lib/dispatcher/client-h1.js +11 -2
  65. package/node_modules/undici/lib/handler/cache-handler.js +246 -64
  66. package/node_modules/undici/lib/handler/cache-revalidation-handler.js +3 -3
  67. package/node_modules/undici/lib/handler/retry-handler.js +24 -0
  68. package/node_modules/undici/lib/interceptor/cache.js +159 -52
  69. package/node_modules/undici/lib/util/cache.js +324 -62
  70. package/node_modules/undici/lib/util/date.js +23 -6
  71. package/node_modules/undici/lib/web/cookies/util.js +79 -9
  72. package/node_modules/undici/package.json +1 -1
  73. package/openclaw.plugin.json +280 -33
  74. package/package.json +9 -11
  75. package/skills/slack/SKILL.md +10 -68
  76. package/dist/account-reply-mode-DrUXogvO.js +0 -14
  77. package/dist/action-runtime.runtime-DQErZYpz.js +0 -2
  78. package/dist/actions.runtime-BIRU_G4M.js +0 -2
  79. package/dist/channel.setup-CLP5oTvh.js +0 -56
  80. package/dist/preflight-audio.runtime-D5Bgags0.js +0 -3
  81. package/dist/slash-plugin-commands.runtime-Dosfcx3X.js +0 -2
  82. package/node_modules/p-map/index.d.ts +0 -155
  83. package/node_modules/p-map/index.js +0 -285
  84. package/node_modules/p-map/license +0 -9
  85. package/node_modules/p-map/package.json +0 -57
  86. package/node_modules/p-map/readme.md +0 -190
  87. package/dist/{security-audit-DR097212.js → security-audit-B_yKr7MW.js} +1 -1
@@ -1,190 +0,0 @@
1
- # p-map
2
-
3
- > Map over promises concurrently
4
-
5
- Useful when you need to run promise-returning & async functions multiple times with different inputs concurrently.
6
-
7
- This is different from `Promise.all()` in that you can control the concurrency and also decide whether or not to stop iterating when there's an error.
8
-
9
- ## Install
10
-
11
- ```sh
12
- npm install p-map
13
- ```
14
-
15
- ## Usage
16
-
17
- ```js
18
- import pMap from 'p-map';
19
- import got from 'got';
20
-
21
- const sites = [
22
- getWebsiteFromUsername('sindresorhus'), //=> Promise
23
- 'https://avajs.dev',
24
- 'https://github.com'
25
- ];
26
-
27
- const mapper = async site => {
28
- const {requestUrl} = await got.head(site);
29
- return requestUrl;
30
- };
31
-
32
- const result = await pMap(sites, mapper, {concurrency: 2});
33
-
34
- console.log(result);
35
- //=> ['https://sindresorhus.com/', 'https://avajs.dev/', 'https://github.com/']
36
- ```
37
-
38
- ## API
39
-
40
- ### pMap(input, mapper, options?)
41
-
42
- Returns a `Promise` that is fulfilled when all promises in `input` and the ones returned from `mapper` are fulfilled, or rejects if any of the promises reject. The fulfilled value is an `Array` of the fulfilled values returned from `mapper` in `input` order.
43
-
44
- ### pMapIterable(input, mapper, options?)
45
-
46
- Returns an async iterable that streams each return value from `mapper` in order.
47
-
48
- ```js
49
- import {pMapIterable} from 'p-map';
50
-
51
- // Multiple posts are fetched concurrently, with limited concurrency and backpressure
52
- for await (const post of pMapIterable(postIds, getPostMetadata, {concurrency: 8})) {
53
- console.log(post);
54
- };
55
- ```
56
-
57
- #### input
58
-
59
- Type: `AsyncIterable<Promise<unknown> | unknown> | Iterable<Promise<unknown> | unknown>`
60
-
61
- Synchronous or asynchronous iterable that is iterated over concurrently, calling the `mapper` function for each element. Each iterated item is `await`'d before the `mapper` is invoked so the iterable may return a `Promise` that resolves to an item.
62
-
63
- Asynchronous iterables (different from synchronous iterables that return `Promise` that resolves to an item) can be used when the next item may not be ready without waiting for an asynchronous process to complete and/or the end of the iterable may be reached after the asynchronous process completes. For example, reading from a remote queue when the queue has reached empty, or reading lines from a stream.
64
-
65
- #### mapper(element, index)
66
-
67
- Type: `Function`
68
-
69
- Expected to return a `Promise` or value.
70
-
71
- #### options
72
-
73
- Type: `object`
74
-
75
- ##### concurrency
76
-
77
- Type: `number` *(Integer)*\
78
- Default: `Infinity`\
79
- Minimum: `1`
80
-
81
- Number of concurrently pending promises returned by `mapper`.
82
-
83
- ##### backpressure
84
-
85
- **Only for `pMapIterable`**
86
-
87
- Type: `number` *(Integer)*\
88
- Default: `options.concurrency`\
89
- Minimum: `options.concurrency`
90
-
91
- Maximum number of promises returned by `mapper` that have resolved but not yet collected by the consumer of the async iterable. Calls to `mapper` will be limited so that there is never too much backpressure.
92
-
93
- Useful whenever you are consuming the iterable slower than what the mapper function can produce concurrently. For example, to avoid making an overwhelming number of HTTP requests if you are saving each of the results to a database.
94
-
95
- ##### stopOnError
96
-
97
- **Only for `pMap`**
98
-
99
- Type: `boolean`\
100
- Default: `true`
101
-
102
- When `true`, the first mapper rejection will be rejected back to the consumer.
103
-
104
- When `false`, instead of stopping when a promise rejects, it will wait for all the promises to settle and then reject with an [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) containing all the errors from the rejected promises.
105
-
106
- Caveat: When `true`, any already-started async mappers will continue to run until they resolve or reject. In the case of infinite concurrency with sync iterables, *all* mappers are invoked on startup and will continue after the first rejection. Use the `signal` option for abort control.
107
-
108
- ##### signal
109
-
110
- **Only for `pMap`**
111
-
112
- Type: [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)
113
-
114
- You can abort the promises using [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController).
115
-
116
- ```js
117
- import pMap from 'p-map';
118
- import delay from 'delay';
119
-
120
- const abortController = new AbortController();
121
-
122
- setTimeout(() => {
123
- abortController.abort();
124
- }, 500);
125
-
126
- const mapper = async value => value;
127
-
128
- await pMap([delay(1000), delay(1000)], mapper, {signal: abortController.signal});
129
- // Throws AbortError (DOMException) after 500 ms.
130
- ```
131
-
132
- ### pMapSkip
133
-
134
- Return this value from a `mapper` function to skip including the value in the returned array.
135
-
136
- ```js
137
- import pMap, {pMapSkip} from 'p-map';
138
- import got from 'got';
139
-
140
- const sites = [
141
- getWebsiteFromUsername('sindresorhus'), //=> Promise
142
- 'https://avajs.dev',
143
- 'https://example.invalid',
144
- 'https://github.com'
145
- ];
146
-
147
- const mapper = async site => {
148
- try {
149
- const {requestUrl} = await got.head(site);
150
- return requestUrl;
151
- } catch {
152
- return pMapSkip;
153
- }
154
- };
155
-
156
- const result = await pMap(sites, mapper, {concurrency: 2});
157
-
158
- console.log(result);
159
- //=> ['https://sindresorhus.com/', 'https://avajs.dev/', 'https://github.com/']
160
- ```
161
-
162
- ## Recipes
163
-
164
- ### Rate limiting
165
-
166
- This package controls how many mapper promises run concurrently. To limit how often the mapper starts, compose it with a rate limiter like [`p-throttle`](https://github.com/sindresorhus/p-throttle):
167
-
168
- ```js
169
- import pThrottle from 'p-throttle';
170
- import pMap from 'p-map';
171
-
172
- const throttle = pThrottle({
173
- limit: 1,
174
- interval: 1000,
175
- strict: true,
176
- });
177
-
178
- const result = await pMap(input, throttle(mapper), {concurrency: 2});
179
- ```
180
-
181
- For more advanced scheduling, use [`p-queue`](https://github.com/sindresorhus/p-queue).
182
-
183
- ## Related
184
-
185
- - [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency
186
- - [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently
187
- - [p-times](https://github.com/sindresorhus/p-times) - Run promise-returning & async functions a specific number of times concurrently
188
- - [p-props](https://github.com/sindresorhus/p-props) - Like `Promise.all()` but for `Map` and `Object`
189
- - [p-map-series](https://github.com/sindresorhus/p-map-series) - Map over promises serially
190
- - [More…](https://github.com/sindresorhus/promise-fun)
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { coerceNativeSetting, normalizeAllowFromList } from "openclaw/plugin-sdk/channel-policy";
3
2
  import { readChannelAllowFromStore } from "openclaw/plugin-sdk/conversation-runtime";
3
+ import { coerceNativeSetting, normalizeAllowFromList } from "openclaw/plugin-sdk/channel-policy";
4
4
  import { resolveNativeCommandsEnabled, resolveNativeSkillsEnabled } from "openclaw/plugin-sdk/native-command-config-runtime";
5
5
  //#region extensions/slack/src/security-audit.ts
6
6
  var security_audit_exports = /* @__PURE__ */ __exportAll({ collectSlackSecurityAuditFindings: () => collectSlackSecurityAuditFindings });