@openclaw/slack 2026.11.5-beta.1 → 2026.11.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.
- package/dist/.setup/{account-configured-35y0-Hso.mjs → account-configured-zcR9TJJN.mjs} +2 -1
- package/dist/.setup/{account-inspect-DgQgj0wk.mjs → account-inspect-BLVha-ov.mjs} +4 -3
- package/dist/.setup/{accounts-EaPP0fFY.mjs → accounts-CGJScKtk.mjs} +10 -6
- package/dist/.setup/{action-runtime-CK9QZgQl.mjs → action-runtime-D01wBhx5.mjs} +10 -9
- package/dist/.setup/action-runtime.runtime-VQGaR6g8.mjs +1 -0
- package/dist/.setup/{actions-s3CcFO45.mjs → actions-D5S6D_BU.mjs} +22 -14
- package/dist/.setup/{approval-handler.runtime-Ch7BecYK.mjs → approval-handler.runtime-Buw5jh2Y.mjs} +8 -7
- package/dist/.setup/{approval-message-updates-CqcRoa28.mjs → approval-message-updates-pmXcve5E.mjs} +3 -2
- package/dist/.setup/{channel-CAvo_WNZ.mjs → channel-C_R98Nbv.mjs} +45 -36
- package/dist/.setup/{channel-meta-C5vsCo3a.mjs → channel-meta-C443t-lI.mjs} +2 -1
- package/dist/.setup/{channel-type-9Lw6yLf2.mjs → channel-type-B5P3w9eA.mjs} +6 -5
- package/dist/.setup/{channel.setup-BlgXNuCJ.mjs → channel.setup-Lq2OxKkF.mjs} +14 -10
- package/dist/.setup/{config-schema-Bx1tCZB0.mjs → config-schema-BWAaa5au.mjs} +4 -2
- package/dist/.setup/{cursor-pages-jVn3Vkfi.mjs → cursor-pages-CATAzbTT.mjs} +8 -4
- package/dist/.setup/{directory-config-CGvKYg9F.mjs → directory-config-D-hf9KGQ.mjs} +6 -5
- package/dist/.setup/{directory-live-DNdw97LA.mjs → directory-live-onKAFI1E.mjs} +5 -4
- package/dist/.setup/{doctor-contract-BB2KJ9Ni.mjs → doctor-contract-9-QJRCXk.mjs} +13 -7
- package/dist/.setup/{message-tool-api-B38BpEaE.mjs → message-tool-api-LGIgVXJf.mjs} +7 -5
- package/dist/.setup/{monitor-BD86SotB.mjs → monitor-Cm1TuqxN.mjs} +128 -73
- package/dist/.setup/{outbound-adapter-BH6iPWBj.mjs → outbound-adapter-C-95EWl2.mjs} +10 -9
- package/dist/.setup/{paths-CQZI_5WY.mjs → paths-B1u59oLK.mjs} +2 -1
- package/dist/.setup/{pipeline.runtime-C4ELxaRU.mjs → pipeline.runtime-DGnV6akc.mjs} +71 -43
- package/dist/.setup/{policy-C6_DdlSf.mjs → policy-DxhGRvc2.mjs} +5 -3
- package/dist/.setup/{probe-B_Ax1vS1.mjs → probe-DANukR3O.mjs} +66 -36
- package/dist/.setup/{question-delivery-D3qAIwuv.mjs → question-delivery-CWC7sRhH.mjs} +3 -2
- package/dist/.setup/{relay-source-a8jodKuO.mjs → relay-source-DoyOlTbK.mjs} +4 -3
- package/dist/.setup/{replies-Bq7n0gfM.mjs → replies-BcmUKord.mjs} +10 -8
- package/dist/.setup/{reply-blocks-DyYYRrP_.mjs → reply-blocks-BzsXUUUL.mjs} +7 -4
- package/dist/.setup/{resolve-channels-CF2JME9q.mjs → resolve-channels-XDPgnesf.mjs} +5 -4
- package/dist/.setup/{resolve-users-DDcCAjH1.mjs → resolve-users-aDAv24U2.mjs} +5 -4
- package/dist/.setup/{rolldown-runtime-nwUcYXjP.mjs → rolldown-runtime-B4FMCO8f.mjs} +2 -1
- package/dist/.setup/{runtime-C6HKn7Av.mjs → runtime-JSVZSWAj.mjs} +2 -1
- package/dist/.setup/runtime-setter-api-Cx_PV-xu.mjs +2 -0
- package/dist/.setup/{scopes-CzHC_dwV.mjs → scopes-BocHwImV.mjs} +4 -3
- package/dist/.setup/{secret-contract-api-DaCXZ47j.mjs → secret-contract-api-BlLz88mj.mjs} +1 -1
- package/dist/.setup/{secret-contract-CqVqR7MP.mjs → secret-contract-uiQtoNlu.mjs} +3 -2
- package/dist/.setup/{security-audit-C3hXCfDt.mjs → security-audit-DFGiFLqd.mjs} +3 -2
- package/dist/.setup/{send-results-Bm6V1ekL.mjs → send-results-BGxlroJ-.mjs} +2 -1
- package/dist/.setup/{send-WJZ73VSf.mjs → send-yK6_-px6.mjs} +19 -13
- package/dist/.setup/setup-plugin-api-Cfz58xoh.mjs +2 -0
- package/dist/.setup/{setup-surface-uIqP2B0Y.mjs → setup-surface-C0KRtyqa.mjs} +7 -6
- package/dist/.setup/{slash-dispatch.runtime-Cwuwv7FL.mjs → slash-dispatch.runtime-CyVC3bYx.mjs} +1 -1
- package/dist/.setup/{target-parsing-DwYAP3ts.mjs → target-parsing-Bx2UZniD.mjs} +2 -1
- package/dist/.setup/{targets-eeOxA_b_.mjs → targets-D-ASeWHy.mjs} +3 -2
- package/dist/.setup/{thread-ts-47Au2-Yn.mjs → thread-ts-Cvt7WD6B.mjs} +2 -1
- package/dist/.source-module-urls/c5ffd0957b234c7c12090e7de4eca2482ef339b8561e078da55b734211b0ba58.json +1 -1
- package/dist/account-inspect-api.js +3 -2
- package/dist/api.js +16 -16
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-entry.js +2 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/configured-state.js +3 -2
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/index.js +2 -1
- package/dist/message-tool-api.js +1 -1
- package/dist/runtime-api.js +10 -10
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/setup-entry.js +5 -4
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/@slack/bolt/node_modules/body-parser/README.md +17 -13
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/read.js +74 -57
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/types/json.js +11 -11
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/types/urlencoded.js +5 -5
- package/node_modules/@slack/bolt/node_modules/body-parser/lib/utils.js +0 -15
- package/node_modules/@slack/bolt/node_modules/body-parser/package.json +7 -12
- package/package.json +4 -4
- package/dist/.setup/action-runtime.runtime-CpZktret.mjs +0 -1
- package/dist/.setup/runtime-setter-api-DrXr965r.mjs +0 -2
- package/dist/.setup/setup-plugin-api-DJXIB8CF.mjs +0 -2
|
@@ -7,7 +7,7 @@ import { addActiveManagedProxyTlsOptions, captureChannelReadAuthority, createHtt
|
|
|
7
7
|
import { isDebugProxyGlobalFetchPatchInstalled } from "openclaw/plugin-sdk/proxy-capture";
|
|
8
8
|
import { parseRetryAfterHeaderSeconds, retryAsync } from "openclaw/plugin-sdk/retry-runtime";
|
|
9
9
|
import { fetchWithRuntimeDispatcher } from "openclaw/plugin-sdk/runtime-fetch";
|
|
10
|
-
|
|
10
|
+
//#region extensions/slack/src/client-options.ts
|
|
11
11
|
const SLACK_DEFAULT_RETRY_OPTIONS = {
|
|
12
12
|
retries: 2,
|
|
13
13
|
factor: 2,
|
|
@@ -174,7 +174,8 @@ function resolveSlackLookupClientOptions(options = {}, dispatcher = resolveSlack
|
|
|
174
174
|
resolved.timeout ??= SLACK_READ_TIMEOUT_MS;
|
|
175
175
|
return resolved;
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region extensions/slack/src/monitor/lru-map-cache.ts
|
|
178
179
|
function getOrCreateWeakOwnerMap(owners, owner) {
|
|
179
180
|
let values = owners.get(owner);
|
|
180
181
|
if (!values) {
|
|
@@ -200,7 +201,8 @@ function writeLruMapEntry(cache, cacheKey, entry, maxEntries) {
|
|
|
200
201
|
function pruneExpiredMapEntries(cache, now) {
|
|
201
202
|
for (const [key, entry] of cache) if (entry.expiresAt <= now) cache.delete(key);
|
|
202
203
|
}
|
|
203
|
-
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region extensions/slack/src/client.ts
|
|
204
206
|
const SLACK_WRITE_CLIENT_CACHE_MAX = 32;
|
|
205
207
|
const SLACK_STARTUP_AUTH_TIMEOUT_MS = 1e4;
|
|
206
208
|
const SLACK_STARTUP_AUTH_RETRY_BUDGET_MS = 35e3;
|
|
@@ -283,7 +285,8 @@ function getSlackListenerWriteClient(params) {
|
|
|
283
285
|
});
|
|
284
286
|
return client;
|
|
285
287
|
}
|
|
286
|
-
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region extensions/slack/src/cursor-pages.ts
|
|
287
290
|
const SLACK_CURSOR_PAGE_LIMIT = 1e4;
|
|
288
291
|
const fetchSlackChannelListPage = (client, cursor) => client.conversations.list({
|
|
289
292
|
types: "public_channel,private_channel",
|
|
@@ -306,4 +309,5 @@ async function collectSlackCursorPages(params) {
|
|
|
306
309
|
}
|
|
307
310
|
throw new Error(`Slack cursor pagination exceeded ${SLACK_CURSOR_PAGE_LIMIT} pages`);
|
|
308
311
|
}
|
|
312
|
+
//#endregion
|
|
309
313
|
export { createSlackProbeDispatcher as _, createSlackStartupAuthClient as a, resolveSlackWebClientOptions as b, createSlackWriteClient as c, getOrCreateWeakOwnerMap as d, pruneExpiredMapEntries as f, SLACK_WRITE_RETRY_OPTIONS as g, SLACK_DEFAULT_RETRY_OPTIONS as h, createSlackReadClient as i, getSlackListenerWriteClient as l, writeLruMapEntry as m, fetchSlackChannelListPage as n, createSlackTokenCacheKey as o, readLruMapEntry as p, createSlackLookupClient as r, createSlackWebClient as s, collectSlackCursorPages as t, getSlackWriteClient as u, resolveSlackLookupClientOptions as v, resolveSlackWriteClientOptions as x, resolveSlackMonitorDispatchers as y };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, o as resolveDefaultSlackAccountId } from "./accounts-
|
|
3
|
-
import { a as parseSlackTarget } from "./target-parsing-
|
|
4
|
-
import "./targets-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
+
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, o as resolveDefaultSlackAccountId } from "./accounts-CGJScKtk.mjs";
|
|
3
|
+
import { a as parseSlackTarget } from "./target-parsing-Bx2UZniD.mjs";
|
|
4
|
+
import "./targets-D-ASeWHy.mjs";
|
|
5
5
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
6
6
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { createResolvedDirectoryEntriesLister } from "openclaw/plugin-sdk/directory-config-runtime";
|
|
8
|
-
|
|
8
|
+
//#region extensions/slack/src/directory-config.ts
|
|
9
9
|
var directory_config_exports = /* @__PURE__ */ __exportAll({
|
|
10
10
|
listSlackDirectoryGroupsFromConfig: () => listSlackDirectoryGroupsFromConfig,
|
|
11
11
|
listSlackDirectoryPeersFromConfig: () => listSlackDirectoryPeersFromConfig
|
|
@@ -48,4 +48,5 @@ const listSlackDirectoryGroupsFromConfig = createResolvedDirectoryEntriesLister(
|
|
|
48
48
|
return normalized?.kind === "channel" ? `channel:${normalizeLowercaseStringOrEmpty(normalized.id)}` : null;
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
|
+
//#endregion
|
|
51
52
|
export { listSlackDirectoryGroupsFromConfig as n, listSlackDirectoryPeersFromConfig as r, directory_config_exports as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { s as resolveSlackAccount } from "./accounts-
|
|
3
|
-
import { n as fetchSlackChannelListPage, r as createSlackLookupClient, t as collectSlackCursorPages } from "./cursor-pages-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
|
+
import { s as resolveSlackAccount } from "./accounts-CGJScKtk.mjs";
|
|
3
|
+
import { n as fetchSlackChannelListPage, r as createSlackLookupClient, t as collectSlackCursorPages } from "./cursor-pages-CATAzbTT.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({
|
|
7
7
|
getSlackDirectorySelfLive: () => getSlackDirectorySelfLive,
|
|
8
8
|
listSlackDirectoryGroupsLive: () => listSlackDirectoryGroupsLive,
|
|
@@ -97,4 +97,5 @@ const listSlackDirectoryGroupsLive = createSlackDirectoryLister({
|
|
|
97
97
|
} : null;
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
+
//#endregion
|
|
100
101
|
export { listSlackDirectoryGroupsLive as n, listSlackDirectoryPeersLive as r, directory_live_exports as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { n as __reExport, t as __exportAll } from "./rolldown-runtime-B4FMCO8f.mjs";
|
|
2
2
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { getChannelStreamingConfigObject, resolveChannelStreamingNativeTransport } from "openclaw/plugin-sdk/channel-streaming-config";
|
|
4
|
-
|
|
4
|
+
//#region packages/normalization-core/src/record-coerce.ts
|
|
5
5
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
6
6
|
function isRecord$1(value) {
|
|
7
7
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -10,7 +10,8 @@ function isRecord$1(value) {
|
|
|
10
10
|
function asNullableRecord(value) {
|
|
11
11
|
return isRecord$1(value) ? value : null;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/config/channel-config-normalization.ts
|
|
14
15
|
/** Applies one channel-specific doctor migration to every object-shaped account. */
|
|
15
16
|
function normalizeChannelAccounts(params) {
|
|
16
17
|
const rawAccounts = asNullableRecord(params.entry.accounts);
|
|
@@ -86,7 +87,8 @@ function normalizeChannelConfigEntries$1(params) {
|
|
|
86
87
|
changes
|
|
87
88
|
};
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/plugin-sdk/legacy-webhook-listener-migration.ts
|
|
90
92
|
/** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
|
|
91
93
|
function createLegacyWebhookListenerDoctorContract(params) {
|
|
92
94
|
const portKey = params.portKey ?? "webhookPort";
|
|
@@ -156,11 +158,13 @@ function createLegacyWebhookListenerDoctorContract(params) {
|
|
|
156
158
|
}
|
|
157
159
|
};
|
|
158
160
|
}
|
|
159
|
-
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
|
|
160
163
|
var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
|
|
161
164
|
import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
162
165
|
__reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
|
|
163
|
-
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region extensions/slack/src/streaming-compat.ts
|
|
164
168
|
function resolveSlackStreamingMode(params = {}) {
|
|
165
169
|
const mode = normalizeLowercaseStringOrEmpty(getChannelStreamingConfigObject(params)?.mode ?? params.streaming);
|
|
166
170
|
if (mode === "off" || mode === "partial" || mode === "block" || mode === "progress") return mode;
|
|
@@ -174,7 +178,8 @@ function resolveSlackStreamingMode(params = {}) {
|
|
|
174
178
|
function resolveSlackNativeStreaming(params = {}) {
|
|
175
179
|
return resolveChannelStreamingNativeTransport(params) ?? (typeof params.nativeStreaming === "boolean" ? params.nativeStreaming : typeof params.streaming === "boolean" ? params.streaming : true);
|
|
176
180
|
}
|
|
177
|
-
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region extensions/slack/src/doctor-contract.ts
|
|
178
183
|
const streamingAliasMigration = (0, runtime_doctor_migrations_exports.defineChannelAliasMigration)({
|
|
179
184
|
channelId: "slack",
|
|
180
185
|
streaming: {
|
|
@@ -325,4 +330,5 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
325
330
|
}
|
|
326
331
|
});
|
|
327
332
|
}
|
|
333
|
+
//#endregion
|
|
328
334
|
export { normalizeCompatibilityConfig as n, runtime_doctor_migrations_exports as r, legacyConfigRules as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as listSlackAccountIds } from "./accounts-
|
|
2
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
3
|
-
import { r as resolveSlackThreadTsValue, t as normalizeSlackThreadTsCandidate } from "./thread-ts-
|
|
1
|
+
import { i as listSlackAccountIds } from "./accounts-CGJScKtk.mjs";
|
|
2
|
+
import { t as inspectSlackAccount } from "./account-inspect-BLVha-ov.mjs";
|
|
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";
|
|
6
6
|
import { Type } from "typebox";
|
|
7
|
-
|
|
7
|
+
//#region extensions/slack/src/message-actions.ts
|
|
8
8
|
function listSlackMessageActions(cfg, accountId) {
|
|
9
9
|
const accounts = (accountId ? [inspectSlackAccount({
|
|
10
10
|
cfg,
|
|
@@ -56,7 +56,8 @@ function extractSlackToolSend(args) {
|
|
|
56
56
|
...threadSuppressed ? { threadSuppressed: true } : {}
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region extensions/slack/src/message-tool-api.ts
|
|
60
61
|
const SLACK_MESSAGE_ID_ACTIONS = [
|
|
61
62
|
"react",
|
|
62
63
|
"reactions",
|
|
@@ -132,4 +133,5 @@ function describeSlackMessageTool({ cfg, accountId }) {
|
|
|
132
133
|
schema: schema.length > 0 ? schema : null
|
|
133
134
|
};
|
|
134
135
|
}
|
|
136
|
+
//#endregion
|
|
135
137
|
export { extractSlackToolSend as n, listSlackMessageActions as r, describeSlackMessageTool as t };
|