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