@openclaw/slack 2026.5.19 → 2026.5.20-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/account-inspect-api.js +1 -1
- package/dist/{account-inspect-uMPQ6wIu.js → account-inspect-vVg3pT03.js} +1 -1
- package/dist/accounts.runtime-BVdtQeuq.js +2 -0
- package/dist/{action-runtime-JEAXQ9qf.js → action-runtime-CiDDL5q5.js} +6 -6
- package/dist/action-runtime.runtime-CkVUUEjQ.js +2 -0
- package/dist/{actions-v0fGE-kg.js → actions-S6WfIXe6.js} +5 -5
- package/dist/{actions.runtime-B0Aj3qGe.js → actions.runtime-L_gt-mA4.js} +1 -1
- package/dist/api.js +20 -20
- package/dist/{approval-handler.runtime-C_hfvcRd.js → approval-handler.runtime-Dlwy_Uvq.js} +3 -3
- package/dist/{blocks-render-ziYgM0qF.js → blocks-render-CNC4vQnd.js} +1 -1
- package/dist/{channel-B24T-HNy.js → channel-BGx02-m4.js} +26 -26
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-C2_IZ9It.js → channel.setup-DlFY3IsY.js} +4 -4
- package/dist/{client-Dr7pteMR.js → client-BY0ZhGHl.js} +1 -1
- package/dist/{config-schema-C8tW0Db0.js → config-schema-CUiDK8HV.js} +1 -1
- package/dist/contract-api.js +4 -4
- package/dist/{directory-config-qDXRTCcs.js → directory-config-BYH5Y8si.js} +4 -4
- package/dist/directory-contract-api.js +1 -1
- package/dist/{directory-live-BnN4Zawp.js → directory-live-COvr0w-z.js} +3 -3
- package/dist/{doctor-contract-B8QIWMs1.js → doctor-contract-BVvVoRt-.js} +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/http-routes-api.js +1 -1
- package/dist/inbound-contract-test-api.js +2 -2
- package/dist/{interactive-replies-B1wwXeVn.js → interactive-replies-9v8OYeGV.js} +1 -1
- package/dist/interactive-replies-api.js +1 -1
- package/dist/{message-tool-api-DRSTJhP8.js → message-tool-api-BXEWUFiV.js} +2 -2
- package/dist/message-tool-api.js +1 -1
- package/dist/{monitor-VZvVe0AD.js → monitor-B5cDOhd9.js} +4 -4
- package/dist/{outbound-adapter-Dcy9jZv1.js → outbound-adapter-CrkqCWtg.js} +5 -5
- package/dist/outbound-payload-test-api.js +1 -1
- package/dist/{outbound-payload.test-harness-B8N8U_AA.js → outbound-payload.test-harness-CCyuhlnK.js} +5 -12
- package/dist/{pipeline.runtime-fkqlk8kV.js → pipeline.runtime-Dgsru7II.js} +20 -15
- package/dist/{plugin-routes-hrKOqBIn.js → plugin-routes-DRR3ijKM.js} +2 -2
- package/dist/{prepare-MN66ygug.js → prepare-DG5iny4a.js} +12 -14
- package/dist/{prepare.test-helpers-D807wdul.js → prepare.test-helpers-DkdsBfN8.js} +1 -1
- package/dist/{probe-DDef8MfR.js → probe-DTCmOwpe.js} +3 -3
- package/dist/{provider-D4PYUrak.js → provider-BooGa5D8.js} +30 -29
- package/dist/{replies-ClYRn89v.js → replies-CZYffp8P.js} +6 -4
- package/dist/{reply-blocks-DgUdywKU.js → reply-blocks-B_x2Hzez.js} +10 -6
- package/dist/{resolve-channels-gx65A1PR.js → resolve-channels-CXV6oSKF.js} +3 -3
- package/dist/{resolve-users-OknHaiRY.js → resolve-users-BCBZwBB5.js} +3 -3
- package/dist/{room-context-BI26wVBb.js → room-context-pG80xzA4.js} +2 -2
- package/dist/{runtime-api-D3pvtood.js → runtime-api-erJbVGdt.js} +3 -3
- package/dist/runtime-api.js +13 -13
- package/dist/runtime-setter-api.js +1 -1
- package/dist/{scopes-vRHcdO0m.js → scopes-CWwLQOAw.js} +2 -2
- package/dist/secret-contract-api.js +1 -1
- package/dist/{security-audit-BJzADAw3.js → security-audit-CikQhBUY.js} +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/{send-Br_H5f6H.js → send-ag0Lnpod.js} +7 -7
- package/dist/send.runtime-CTJCRHtj.js +2 -0
- package/dist/send.runtime-DQ-e-DkU.js +2 -0
- package/dist/{setup-core-BRD65LS_.js → setup-core-CJxjcOda.js} +2 -2
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-DpNyddrJ.js → setup-surface-BO6IU00P.js} +5 -5
- package/dist/{shared-DdgQfBV9.js → shared-C9qcXNm_.js} +9 -9
- package/dist/{slash-dispatch.runtime-DYm6lWN8.js → slash-dispatch.runtime-CagAaHMo.js} +1 -1
- package/dist/targets-C5NeqQJr.js +2 -0
- package/dist/test-api.js +7 -7
- package/openclaw.plugin.json +18 -2
- package/package.json +4 -4
- package/dist/accounts.runtime-z3fshUeC.js +0 -2
- package/dist/action-runtime.runtime-DNspDL64.js +0 -2
- package/dist/send.runtime-Cj0cqt6C.js +0 -2
- package/dist/send.runtime-CjgsYARn.js +0 -2
- package/dist/targets-B1tYCAr6.js +0 -2
- /package/dist/{accounts-Cbw3i3Sa.js → accounts-BnLQ3fe2.js} +0 -0
- /package/dist/{allow-list-nwXs_eCP.js → allow-list-ChDz7vQO.js} +0 -0
- /package/dist/{config-api-CmgE_ORg.js → config-api-DnT9ohtE.js} +0 -0
- /package/dist/{errors-C_sW0Zgl.js → errors-co-Fg3Ll.js} +0 -0
- /package/dist/{magic-string.es-9lw4MGoF.js → magic-string.es-BPXBBMwL.js} +0 -0
- /package/dist/{registry-D2cWOLZV.js → registry-bbjH7IHX.js} +0 -0
- /package/dist/{resolve-allowlist-common-DLub2I2i.js → resolve-allowlist-common-CP8SH0Zf.js} +0 -0
- /package/dist/{rolldown-runtime-CiIaOW0V.js → rolldown-runtime-D7D4PA-g.js} +0 -0
- /package/dist/{runtime-DQxkf7k2.js → runtime-BOk7xkOl.js} +0 -0
- /package/dist/{secret-contract-0TL3L5Kb.js → secret-contract-g_PPWuoD.js} +0 -0
- /package/dist/{slash-commands.runtime-bcDwsGnu.js → slash-commands.runtime-BTTMlmwy.js} +0 -0
- /package/dist/{slash-plugin-commands.runtime-DBHGUSj2.js → slash-plugin-commands.runtime-Dosfcx3X.js} +0 -0
- /package/dist/{slash-skill-commands.runtime-rrY2hXvN.js → slash-skill-commands.runtime-CD1J2ODY.js} +0 -0
- /package/dist/{streaming-compat-eu5Rj5gj.js → streaming-compat-gDv83t5m.js} +0 -0
- /package/dist/{target-parsing-CQmv-iSm.js → target-parsing-CugsYhBQ.js} +0 -0
- /package/dist/{thread-ts-As_dcNbD.js → thread-ts-ks-O8cEG.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as resolveSlackReplyToMode } from "./accounts-
|
|
2
|
-
import { r as parseSlackTarget } from "./target-parsing-
|
|
3
|
-
import "./targets-
|
|
4
|
-
import { i as normalizeSlackAllowOwnerEntry, o as resolveSlackAllowListMatch, r as normalizeAllowListLower } from "./allow-list-
|
|
5
|
-
import { i as hasSlackThreadParticipationWithPersistence, t as sendMessageSlack } from "./send-
|
|
6
|
-
import { _ as resolveSlackThreadStarter, g as resolveSlackThreadHistory, l as reactSlackMessage, y as formatSlackFileReference } from "./actions-
|
|
7
|
-
import { t as formatSlackError } from "./errors-
|
|
8
|
-
import { C as resolveChannelContextVisibilityMode, E as resolveStorePath, S as readSessionUpdatedAt, _ as resolveSlackChatType, c as authorizeSlackBotRoomMessage, d as resolveSlackEffectiveAllowFrom, f as buildSlackAssistantThreadMetadata, g as normalizeSlackChannelType, j as stripSlackMentionsForCommandDetection, m as parseSlackAssistantThreadMetadata, n as authorizeSlackDirectMessage, o as resolveConversationLabel$1, t as resolveSlackRoomContextHints, u as resolveSlackCommandIngress, v as resolveSlackChannelConfig } from "./room-context-
|
|
9
|
-
import "./send.runtime-
|
|
1
|
+
import { l as resolveSlackReplyToMode } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { r as parseSlackTarget } from "./target-parsing-CugsYhBQ.js";
|
|
3
|
+
import "./targets-C5NeqQJr.js";
|
|
4
|
+
import { i as normalizeSlackAllowOwnerEntry, o as resolveSlackAllowListMatch, r as normalizeAllowListLower } from "./allow-list-ChDz7vQO.js";
|
|
5
|
+
import { i as hasSlackThreadParticipationWithPersistence, t as sendMessageSlack } from "./send-ag0Lnpod.js";
|
|
6
|
+
import { _ as resolveSlackThreadStarter, g as resolveSlackThreadHistory, l as reactSlackMessage, y as formatSlackFileReference } from "./actions-S6WfIXe6.js";
|
|
7
|
+
import { t as formatSlackError } from "./errors-co-Fg3Ll.js";
|
|
8
|
+
import { C as resolveChannelContextVisibilityMode, E as resolveStorePath, S as readSessionUpdatedAt, _ as resolveSlackChatType, c as authorizeSlackBotRoomMessage, d as resolveSlackEffectiveAllowFrom, f as buildSlackAssistantThreadMetadata, g as normalizeSlackChannelType, j as stripSlackMentionsForCommandDetection, m as parseSlackAssistantThreadMetadata, n as authorizeSlackDirectMessage, o as resolveConversationLabel$1, t as resolveSlackRoomContextHints, u as resolveSlackCommandIngress, v as resolveSlackChannelConfig } from "./room-context-pG80xzA4.js";
|
|
9
|
+
import "./send.runtime-DQ-e-DkU.js";
|
|
10
10
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
11
11
|
import { resolveAgentRoute, resolveInboundLastRouteSessionKey, resolveThreadSessionKeys } from "openclaw/plugin-sdk/routing";
|
|
12
12
|
import { resolveChannelMessageSourceReplyDeliveryMode } from "openclaw/plugin-sdk/channel-message";
|
|
@@ -30,7 +30,7 @@ const SLACK_MENTION_RESOLUTION_MAX_LOOKUPS_PER_MESSAGE = 20;
|
|
|
30
30
|
const SLACK_USER_MENTION_RE$1 = /<@([A-Z0-9]+)(?:\|[^>]+)?>/gi;
|
|
31
31
|
let slackMediaModulePromise$1;
|
|
32
32
|
function loadSlackMediaModule$1() {
|
|
33
|
-
slackMediaModulePromise$1 ??= import("./actions-
|
|
33
|
+
slackMediaModulePromise$1 ??= import("./actions-S6WfIXe6.js").then((n) => n.h);
|
|
34
34
|
return slackMediaModulePromise$1;
|
|
35
35
|
}
|
|
36
36
|
function collectUniqueSlackMentionIds$1(texts) {
|
|
@@ -578,7 +578,7 @@ function formatSlackBotStarterThreadLabel(params) {
|
|
|
578
578
|
//#region extensions/slack/src/monitor/message-handler/prepare-thread-context.ts
|
|
579
579
|
let slackMediaModulePromise;
|
|
580
580
|
function loadSlackMediaModule() {
|
|
581
|
-
slackMediaModulePromise ??= import("./actions-
|
|
581
|
+
slackMediaModulePromise ??= import("./actions-S6WfIXe6.js").then((n) => n.h);
|
|
582
582
|
return slackMediaModulePromise;
|
|
583
583
|
}
|
|
584
584
|
const SLACK_THREAD_CONTEXT_USER_LOOKUP_CONCURRENCY = 4;
|
|
@@ -1469,9 +1469,7 @@ async function prepareSlackMessage(params) {
|
|
|
1469
1469
|
const slackFrom = isDirectMessage ? `slack:${message.user}` : isRoom ? `slack:channel:${message.channel}` : `slack:group:${message.channel}`;
|
|
1470
1470
|
enqueueSystemEvent(`${inboundLabel}: ${preview}`, {
|
|
1471
1471
|
sessionKey,
|
|
1472
|
-
contextKey: `slack:message:${message.channel}:${message.ts ?? "unknown"}
|
|
1473
|
-
forceSenderIsOwnerFalse: true,
|
|
1474
|
-
trusted: false
|
|
1472
|
+
contextKey: `slack:message:${message.channel}:${message.ts ?? "unknown"}`
|
|
1475
1473
|
});
|
|
1476
1474
|
const envelopeFrom = resolveConversationLabel$1({
|
|
1477
1475
|
ChatType: chatType,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as createSlackMonitorContext } from "./room-context-
|
|
1
|
+
import { p as createSlackMonitorContext } from "./room-context-pG80xzA4.js";
|
|
2
2
|
import "openclaw/plugin-sdk/temp-path";
|
|
3
3
|
//#region extensions/slack/src/monitor/message-handler/prepare.test-helpers.ts
|
|
4
4
|
function createInboundSlackTestContext(params) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { r as createSlackWebClient } from "./client-
|
|
3
|
-
import { t as formatSlackError } from "./errors-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { r as createSlackWebClient } from "./client-BY0ZhGHl.js";
|
|
3
|
+
import { t as formatSlackError } from "./errors-co-Fg3Ll.js";
|
|
4
4
|
import { withTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
5
5
|
//#region extensions/slack/src/probe.ts
|
|
6
6
|
var probe_exports = /* @__PURE__ */ __exportAll({ probeSlack: () => probeSlack });
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, d as resolveSlackBotToken, o as resolveSlackAccountAllowFrom, s as resolveSlackAccountDmPolicy, u as resolveSlackAppToken } from "./accounts-
|
|
2
|
-
import { i as isSlackApprovalAuthorizedSender, o as isSlackExecApprovalAuthorizedSender, s as isSlackExecApprovalClientEnabled } from "./reply-blocks-
|
|
3
|
-
import "./blocks-render-
|
|
4
|
-
import { o as SLACK_TEXT_LIMIT, s as truncateSlackText } from "./thread-ts-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
1
|
+
import { a as resolveSlackAccount, d as resolveSlackBotToken, o as resolveSlackAccountAllowFrom, s as resolveSlackAccountDmPolicy, u as resolveSlackAppToken } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { i as isSlackApprovalAuthorizedSender, o as isSlackExecApprovalAuthorizedSender, s as isSlackExecApprovalClientEnabled } from "./reply-blocks-B_x2Hzez.js";
|
|
3
|
+
import "./blocks-render-CNC4vQnd.js";
|
|
4
|
+
import { o as SLACK_TEXT_LIMIT, s as truncateSlackText } from "./thread-ts-ks-O8cEG.js";
|
|
5
|
+
import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-9v8OYeGV.js";
|
|
6
|
+
import { c as resolveSlackWebClientOptions } from "./client-BY0ZhGHl.js";
|
|
7
|
+
import { n as normalizeAllowList, r as normalizeAllowListLower, t as allowListMatches } from "./allow-list-ChDz7vQO.js";
|
|
8
|
+
import { t as getOptionalSlackRuntime } from "./runtime-BOk7xkOl.js";
|
|
9
|
+
import { n as registerSlackHttpHandler, r as normalizeSlackWebhookPath } from "./registry-bbjH7IHX.js";
|
|
10
|
+
import { t as formatSlackError } from "./errors-co-Fg3Ll.js";
|
|
11
|
+
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-CXV6oSKF.js";
|
|
12
|
+
import { t as resolveSlackUserAllowlist } from "./resolve-users-BCBZwBB5.js";
|
|
13
|
+
import { A as resolveSlackSlashCommandConfig, O as warnMissingProviderGroupPolicyFallbackOnce, T as resolveOpenProviderRuntimeGroupPolicy, _ as resolveSlackChatType, b as getRuntimeConfig$1, d as resolveSlackEffectiveAllowFrom, f as buildSlackAssistantThreadMetadata, g as normalizeSlackChannelType, h as isSlackChannelAllowedByPolicy, i as parsePluginBindingApprovalCustomId, j as stripSlackMentionsForCommandDetection, k as buildSlackSlashCommandMatcher, l as authorizeSlackSystemEventSender, n as authorizeSlackDirectMessage, p as createSlackMonitorContext, r as buildPluginBindingResolvedText, s as resolvePluginConversationBindingApproval, t as resolveSlackRoomContextHints, u as resolveSlackCommandIngress, v as resolveSlackChannelConfig, w as resolveDefaultGroupPolicy, x as isDangerousNameMatchingEnabled, y as resolveSlackChannelLabel } from "./room-context-pG80xzA4.js";
|
|
13
14
|
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
14
15
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
15
16
|
import { normalizeAccountId, normalizeMainKey } from "openclaw/plugin-sdk/routing";
|
|
@@ -228,9 +229,7 @@ function registerSlackChannelEvents(params) {
|
|
|
228
229
|
});
|
|
229
230
|
enqueueSystemEvent(`Slack channel ${params.kind}: ${label}.`, {
|
|
230
231
|
sessionKey,
|
|
231
|
-
contextKey: `slack:channel:${params.kind}:${params.channelId ?? params.channelName ?? "unknown"}
|
|
232
|
-
forceSenderIsOwnerFalse: true,
|
|
233
|
-
trusted: false
|
|
232
|
+
contextKey: `slack:channel:${params.kind}:${params.channelId ?? params.channelName ?? "unknown"}`
|
|
234
233
|
});
|
|
235
234
|
};
|
|
236
235
|
ctx.app.event("channel_created", async ({ event, body }) => {
|
|
@@ -808,9 +807,7 @@ function enqueueSlackBlockActionEvent(params) {
|
|
|
808
807
|
to: params.auth.channelType === "im" ? `user:${params.parsed.userId}` : params.parsed.channelId ? `channel:${params.parsed.channelId}` : void 0,
|
|
809
808
|
accountId: params.ctx.accountId,
|
|
810
809
|
threadId: params.parsed.threadTs
|
|
811
|
-
}
|
|
812
|
-
forceSenderIsOwnerFalse: true,
|
|
813
|
-
trusted: false
|
|
810
|
+
}
|
|
814
811
|
})) requestHeartbeat({
|
|
815
812
|
source: "hook",
|
|
816
813
|
intent: "immediate",
|
|
@@ -1706,9 +1703,7 @@ function registerSlackReactionEvents(params) {
|
|
|
1706
1703
|
const baseText = `Slack reaction ${action}: :${emojiLabel}: by ${actorLabel} in ${ingressContext.channelLabel} msg ${item.ts}`;
|
|
1707
1704
|
enqueueSystemEvent(authorLabel ? `${baseText} from ${authorLabel}` : baseText, {
|
|
1708
1705
|
sessionKey: ingressContext.sessionKey,
|
|
1709
|
-
contextKey: `slack:reaction:${action}:${item.channel}:${item.ts}:${event.user}:${emojiLabel}
|
|
1710
|
-
forceSenderIsOwnerFalse: true,
|
|
1711
|
-
trusted: false
|
|
1706
|
+
contextKey: `slack:reaction:${action}:${item.channel}:${item.ts}:${event.user}:${emojiLabel}`
|
|
1712
1707
|
});
|
|
1713
1708
|
} catch (err) {
|
|
1714
1709
|
ctx.runtime.error?.(danger(`slack reaction handler failed: ${formatErrorMessage(err)}`));
|
|
@@ -1961,7 +1956,7 @@ function createSlackThreadTsResolver(params) {
|
|
|
1961
1956
|
//#region extensions/slack/src/monitor/message-handler.ts
|
|
1962
1957
|
let slackMessagePipelinePromise;
|
|
1963
1958
|
function loadSlackMessagePipeline() {
|
|
1964
|
-
slackMessagePipelinePromise ??= import("./pipeline.runtime-
|
|
1959
|
+
slackMessagePipelinePromise ??= import("./pipeline.runtime-Dgsru7II.js");
|
|
1965
1960
|
return slackMessagePipelinePromise;
|
|
1966
1961
|
}
|
|
1967
1962
|
const APP_MENTION_RETRY_TTL_MS = 6e4;
|
|
@@ -2457,8 +2452,7 @@ function formatSlackUserResolved(entry) {
|
|
|
2457
2452
|
//#endregion
|
|
2458
2453
|
//#region extensions/slack/src/monitor/external-arg-menu-store.ts
|
|
2459
2454
|
const SLACK_EXTERNAL_ARG_MENU_TOKEN_BYTES = 18;
|
|
2460
|
-
const
|
|
2461
|
-
const SLACK_EXTERNAL_ARG_MENU_TOKEN_PATTERN = new RegExp(`^[A-Za-z0-9_-]{${SLACK_EXTERNAL_ARG_MENU_TOKEN_LENGTH}}$`);
|
|
2455
|
+
const SLACK_EXTERNAL_ARG_MENU_TOKEN_PATTERN = new RegExp(`^[A-Za-z0-9_-]{${Math.ceil(SLACK_EXTERNAL_ARG_MENU_TOKEN_BYTES * 8 / 6)}}$`);
|
|
2462
2456
|
const SLACK_EXTERNAL_ARG_MENU_TTL_MS = 600 * 1e3;
|
|
2463
2457
|
const SLACK_EXTERNAL_ARG_MENU_PREFIX = "openclaw_cmdarg_ext:";
|
|
2464
2458
|
function pruneSlackExternalArgMenuStore(store, now) {
|
|
@@ -2516,19 +2510,19 @@ let slashDispatchRuntimePromise = null;
|
|
|
2516
2510
|
let slackPluginCommandsRuntimePromise = null;
|
|
2517
2511
|
let slashSkillCommandsRuntimePromise = null;
|
|
2518
2512
|
function loadSlashCommandsRuntime() {
|
|
2519
|
-
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-
|
|
2513
|
+
slashCommandsRuntimePromise ??= import("./slash-commands.runtime-BTTMlmwy.js");
|
|
2520
2514
|
return slashCommandsRuntimePromise;
|
|
2521
2515
|
}
|
|
2522
2516
|
function loadSlashDispatchRuntime() {
|
|
2523
|
-
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-
|
|
2517
|
+
slashDispatchRuntimePromise ??= import("./slash-dispatch.runtime-CagAaHMo.js");
|
|
2524
2518
|
return slashDispatchRuntimePromise;
|
|
2525
2519
|
}
|
|
2526
2520
|
function loadSlackPluginCommandsRuntime() {
|
|
2527
|
-
slackPluginCommandsRuntimePromise ??= import("./slash-plugin-commands.runtime-
|
|
2521
|
+
slackPluginCommandsRuntimePromise ??= import("./slash-plugin-commands.runtime-Dosfcx3X.js");
|
|
2528
2522
|
return slackPluginCommandsRuntimePromise;
|
|
2529
2523
|
}
|
|
2530
2524
|
function loadSlashSkillCommandsRuntime() {
|
|
2531
|
-
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-
|
|
2525
|
+
slashSkillCommandsRuntimePromise ??= import("./slash-skill-commands.runtime-CD1J2ODY.js");
|
|
2532
2526
|
return slashSkillCommandsRuntimePromise;
|
|
2533
2527
|
}
|
|
2534
2528
|
function resolveSlackCommandMenuModelContext(params) {
|
|
@@ -3001,7 +2995,14 @@ async function registerSlackMonitorSlashCommands(params) {
|
|
|
3001
2995
|
cfg,
|
|
3002
2996
|
agentId: route.agentId,
|
|
3003
2997
|
channel: "slack",
|
|
3004
|
-
accountId: route.accountId
|
|
2998
|
+
accountId: route.accountId,
|
|
2999
|
+
transformReplyPayload: (payload) => {
|
|
3000
|
+
if (payload.isReasoning === true) return null;
|
|
3001
|
+
return isSlackInteractiveRepliesEnabled({
|
|
3002
|
+
cfg,
|
|
3003
|
+
accountId: route.accountId
|
|
3004
|
+
}) ? compileSlackInteractiveReplies(payload) : payload;
|
|
3005
|
+
}
|
|
3005
3006
|
});
|
|
3006
3007
|
const deliverSlashPayloads = async (replies) => {
|
|
3007
3008
|
await deliverSlackSlashReplies({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as resolveSlackReplyBlocks } from "./reply-blocks-
|
|
2
|
-
import { o as SLACK_TEXT_LIMIT } from "./thread-ts-
|
|
3
|
-
import { o as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-
|
|
4
|
-
import "./send.runtime-
|
|
1
|
+
import { t as resolveSlackReplyBlocks } from "./reply-blocks-B_x2Hzez.js";
|
|
2
|
+
import { o as SLACK_TEXT_LIMIT } from "./thread-ts-ks-O8cEG.js";
|
|
3
|
+
import { o as markdownToSlackMrkdwnChunks, t as sendMessageSlack } from "./send-ag0Lnpod.js";
|
|
4
|
+
import "./send.runtime-DQ-e-DkU.js";
|
|
5
5
|
import { createReplyReferencePlanner } from "openclaw/plugin-sdk/reply-reference";
|
|
6
6
|
import { SILENT_REPLY_TOKEN, chunkMarkdownTextWithMode, isSilentReplyText } from "openclaw/plugin-sdk/reply-chunking";
|
|
7
7
|
import { deliverTextOrMediaReply, resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
|
|
@@ -14,6 +14,7 @@ function resolveDeliveredSlackReplyThreadTs(params) {
|
|
|
14
14
|
}
|
|
15
15
|
async function deliverReplies(params) {
|
|
16
16
|
for (const payload of params.replies) {
|
|
17
|
+
if (payload.isReasoning === true) continue;
|
|
17
18
|
const threadTs = resolveDeliveredSlackReplyThreadTs({
|
|
18
19
|
replyToMode: params.replyToMode,
|
|
19
20
|
payloadReplyToId: payload.replyToId,
|
|
@@ -114,6 +115,7 @@ async function deliverSlackSlashReplies(params) {
|
|
|
114
115
|
const messages = [];
|
|
115
116
|
const chunkLimit = Math.min(params.textLimit, SLACK_TEXT_LIMIT);
|
|
116
117
|
for (const payload of params.replies) {
|
|
118
|
+
if (payload.isReasoning === true) continue;
|
|
117
119
|
const reply = resolveSendableOutboundReplyParts(payload);
|
|
118
120
|
const slackBlocks = readSlackReplyBlocks(payload);
|
|
119
121
|
const text = reply.hasText && !isSilentReplyText(reply.trimmedText, SILENT_REPLY_TOKEN) ? reply.trimmedText : void 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom, r as mergeSlackAccountConfig } from "./accounts-
|
|
2
|
-
import { n as buildSlackPresentationBlocks, r as resolveSlackInteractiveBlockOffsets, t as buildSlackInteractiveBlocks } from "./blocks-render-
|
|
3
|
-
import { i as parseSlackBlocksInput } from "./thread-ts-
|
|
1
|
+
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom, r as mergeSlackAccountConfig } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { n as buildSlackPresentationBlocks, r as resolveSlackInteractiveBlockOffsets, t as buildSlackInteractiveBlocks } from "./blocks-render-CNC4vQnd.js";
|
|
3
|
+
import { i as parseSlackBlocksInput } from "./thread-ts-ks-O8cEG.js";
|
|
4
4
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
5
5
|
import { normalizeStringifiedOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { doesApprovalRequestMatchChannelAccount } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
@@ -9,14 +9,18 @@ import { createChannelExecApprovalProfile, isChannelExecApprovalTargetRecipient
|
|
|
9
9
|
import { normalizeHyphenSlug } from "openclaw/plugin-sdk/string-normalization-runtime";
|
|
10
10
|
import { resolveToolsBySender } from "openclaw/plugin-sdk/channel-policy";
|
|
11
11
|
//#region extensions/slack/src/exec-approvals.ts
|
|
12
|
+
function normalizeSlackUserLikeId(value) {
|
|
13
|
+
const upper = value.toUpperCase();
|
|
14
|
+
return /^[UW][A-Z0-9]+$/.test(upper) ? upper : void 0;
|
|
15
|
+
}
|
|
12
16
|
function normalizeSlackApproverId(value) {
|
|
13
17
|
const trimmed = normalizeStringifiedOptionalString(value);
|
|
14
18
|
if (!trimmed) return;
|
|
15
19
|
const prefixed = trimmed.match(/^(?:slack|user):([A-Z0-9]+)$/i);
|
|
16
|
-
if (prefixed?.[1]) return prefixed[1];
|
|
20
|
+
if (prefixed?.[1]) return normalizeSlackUserLikeId(prefixed[1]);
|
|
17
21
|
const mention = trimmed.match(/^<@([A-Z0-9]+)>$/i);
|
|
18
|
-
if (mention?.[1]) return mention[1];
|
|
19
|
-
return
|
|
22
|
+
if (mention?.[1]) return normalizeSlackUserLikeId(mention[1]);
|
|
23
|
+
return normalizeSlackUserLikeId(trimmed);
|
|
20
24
|
}
|
|
21
25
|
function resolveSlackOwnerApprovers(cfg) {
|
|
22
26
|
const ownerAllowFrom = cfg.commands?.ownerAllowFrom;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { r as createSlackWebClient } from "./client-
|
|
3
|
-
import { n as resolveSlackAllowlistEntries, t as collectSlackCursorItems } from "./resolve-allowlist-common-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { r as createSlackWebClient } from "./client-BY0ZhGHl.js";
|
|
3
|
+
import { n as resolveSlackAllowlistEntries, t as collectSlackCursorItems } from "./resolve-allowlist-common-CP8SH0Zf.js";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
//#region extensions/slack/src/resolve-channels.ts
|
|
6
6
|
var resolve_channels_exports = /* @__PURE__ */ __exportAll({ resolveSlackChannelAllowlist: () => resolveSlackChannelAllowlist });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { r as createSlackWebClient } from "./client-
|
|
3
|
-
import { n as resolveSlackAllowlistEntries, t as collectSlackCursorItems } from "./resolve-allowlist-common-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { r as createSlackWebClient } from "./client-BY0ZhGHl.js";
|
|
3
|
+
import { n as resolveSlackAllowlistEntries, t as collectSlackCursorItems } from "./resolve-allowlist-common-CP8SH0Zf.js";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
//#region extensions/slack/src/resolve-users.ts
|
|
6
6
|
var resolve_users_exports = /* @__PURE__ */ __exportAll({ resolveSlackUserAllowlist: () => resolveSlackUserAllowlist });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as normalizeSlackSlug, i as normalizeSlackAllowOwnerEntry, n as normalizeAllowList, o as resolveSlackAllowListMatch, r as normalizeAllowListLower, t as allowListMatches } from "./allow-list-
|
|
2
|
-
import { t as formatSlackError } from "./errors-
|
|
1
|
+
import { a as normalizeSlackSlug, i as normalizeSlackAllowOwnerEntry, n as normalizeAllowList, o as resolveSlackAllowListMatch, r as normalizeAllowListLower, t as allowListMatches } from "./allow-list-ChDz7vQO.js";
|
|
2
|
+
import { t as formatSlackError } from "./errors-co-Fg3Ll.js";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { resolveAgentRoute, resolveThreadSessionKeys } from "openclaw/plugin-sdk/routing";
|
|
5
5
|
import { createChannelPairingChallengeIssuer } from "openclaw/plugin-sdk/channel-pairing";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./target-parsing-
|
|
2
|
-
import "./client-
|
|
3
|
-
import "./config-api-
|
|
1
|
+
import "./target-parsing-CugsYhBQ.js";
|
|
2
|
+
import "./client-BY0ZhGHl.js";
|
|
3
|
+
import "./config-api-DnT9ohtE.js";
|
|
4
4
|
import { createActionGate as createActionGate$1, imageResultFromFile, jsonResult, readNumberParam, readReactionParams, readStringParam, withNormalizedTimestamp } from "openclaw/plugin-sdk/channel-actions";
|
|
5
5
|
import "openclaw/plugin-sdk/account-id";
|
|
6
6
|
import "openclaw/plugin-sdk/channel-status";
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, d as resolveSlackBotToken, i as resolveDefaultSlackAccountId, n as listSlackAccountIds, t as listEnabledSlackAccounts, u as resolveSlackAppToken } from "./accounts-
|
|
2
|
-
import { n as resolveSlackGroupRequireMention, r as resolveSlackGroupToolPolicy } from "./reply-blocks-
|
|
3
|
-
import { n as setSlackRuntime } from "./runtime-
|
|
4
|
-
import { t as sendMessageSlack } from "./send-
|
|
5
|
-
import { a as listSlackEmojis, c as pinSlackMessage, d as removeOwnSlackReactions, f as removeSlackReaction, i as getSlackMemberInfo, l as reactSlackMessage, m as unpinSlackMessage, o as listSlackPins, p as sendSlackMessage, r as editSlackMessage, s as listSlackReactions, t as deleteSlackMessage, u as readSlackMessages } from "./actions-
|
|
6
|
-
import { t as probeSlack } from "./probe-
|
|
7
|
-
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-
|
|
8
|
-
import { t as resolveSlackUserAllowlist } from "./resolve-users-
|
|
9
|
-
import { t as monitorSlackProvider } from "./provider-
|
|
10
|
-
import { t as registerSlackPluginHttpRoutes } from "./plugin-routes-
|
|
11
|
-
import { n as slackActionRuntime, t as handleSlackAction } from "./action-runtime-
|
|
12
|
-
import { n as listSlackDirectoryGroupsLive, r as listSlackDirectoryPeersLive } from "./directory-live-
|
|
13
|
-
import "./monitor-
|
|
1
|
+
import { a as resolveSlackAccount, d as resolveSlackBotToken, i as resolveDefaultSlackAccountId, n as listSlackAccountIds, t as listEnabledSlackAccounts, u as resolveSlackAppToken } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { n as resolveSlackGroupRequireMention, r as resolveSlackGroupToolPolicy } from "./reply-blocks-B_x2Hzez.js";
|
|
3
|
+
import { n as setSlackRuntime } from "./runtime-BOk7xkOl.js";
|
|
4
|
+
import { t as sendMessageSlack } from "./send-ag0Lnpod.js";
|
|
5
|
+
import { a as listSlackEmojis, c as pinSlackMessage, d as removeOwnSlackReactions, f as removeSlackReaction, i as getSlackMemberInfo, l as reactSlackMessage, m as unpinSlackMessage, o as listSlackPins, p as sendSlackMessage, r as editSlackMessage, s as listSlackReactions, t as deleteSlackMessage, u as readSlackMessages } from "./actions-S6WfIXe6.js";
|
|
6
|
+
import { t as probeSlack } from "./probe-DTCmOwpe.js";
|
|
7
|
+
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-CXV6oSKF.js";
|
|
8
|
+
import { t as resolveSlackUserAllowlist } from "./resolve-users-BCBZwBB5.js";
|
|
9
|
+
import { t as monitorSlackProvider } from "./provider-BooGa5D8.js";
|
|
10
|
+
import { t as registerSlackPluginHttpRoutes } from "./plugin-routes-DRR3ijKM.js";
|
|
11
|
+
import { n as slackActionRuntime, t as handleSlackAction } from "./action-runtime-CiDDL5q5.js";
|
|
12
|
+
import { n as listSlackDirectoryGroupsLive, r as listSlackDirectoryPeersLive } from "./directory-live-COvr0w-z.js";
|
|
13
|
+
import "./monitor-B5cDOhd9.js";
|
|
14
14
|
export { deleteSlackMessage, editSlackMessage, getSlackMemberInfo, handleSlackAction, listEnabledSlackAccounts, listSlackAccountIds, listSlackDirectoryGroupsLive, listSlackDirectoryPeersLive, listSlackEmojis, listSlackPins, listSlackReactions, monitorSlackProvider, pinSlackMessage, probeSlack, reactSlackMessage, readSlackMessages, registerSlackPluginHttpRoutes, removeOwnSlackReactions, removeSlackReaction, resolveDefaultSlackAccountId, resolveSlackAccount, resolveSlackAppToken, resolveSlackBotToken, resolveSlackChannelAllowlist, resolveSlackGroupRequireMention, resolveSlackGroupToolPolicy, resolveSlackUserAllowlist, sendMessageSlack, sendSlackMessage, setSlackRuntime, slackActionRuntime, unpinSlackMessage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as setSlackRuntime } from "./runtime-
|
|
1
|
+
import { n as setSlackRuntime } from "./runtime-BOk7xkOl.js";
|
|
2
2
|
export { setSlackRuntime };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as createSlackWebClient } from "./client-
|
|
2
|
-
import { t as formatSlackError } from "./errors-
|
|
1
|
+
import { r as createSlackWebClient } from "./client-BY0ZhGHl.js";
|
|
2
|
+
import { t as formatSlackError } from "./errors-co-Fg3Ll.js";
|
|
3
3
|
import { isRecord, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
//#region extensions/slack/src/scopes.ts
|
|
5
5
|
function collectScopes(value, into) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-
|
|
1
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries, t as channelSecrets } from "./secret-contract-g_PPWuoD.js";
|
|
2
2
|
export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import { coerceNativeSetting, normalizeAllowFromList } from "openclaw/plugin-sdk/channel-policy";
|
|
3
3
|
import { readChannelAllowFromStore } from "openclaw/plugin-sdk/conversation-runtime";
|
|
4
4
|
import { resolveNativeCommandsEnabled, resolveNativeSkillsEnabled } from "openclaw/plugin-sdk/native-command-config-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as collectSlackSecurityAuditFindings } from "./security-audit-
|
|
1
|
+
import { t as collectSlackSecurityAuditFindings } from "./security-audit-CikQhBUY.js";
|
|
2
2
|
export { collectSlackSecurityAuditFindings };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, d as resolveSlackBotToken } from "./accounts-
|
|
2
|
-
import { r as parseSlackTarget } from "./target-parsing-
|
|
3
|
-
import "./targets-
|
|
4
|
-
import { a as validateSlackBlocksArray, o as SLACK_TEXT_LIMIT, s as truncateSlackText, t as normalizeSlackThreadTsCandidate } from "./thread-ts-
|
|
5
|
-
import { a as getSlackWriteClient, n as createSlackTokenCacheKey } from "./client-
|
|
6
|
-
import { t as getOptionalSlackRuntime } from "./runtime-
|
|
7
|
-
import { i as loadOutboundMediaFromUrl } from "./runtime-api-
|
|
1
|
+
import { a as resolveSlackAccount, d as resolveSlackBotToken } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { r as parseSlackTarget } from "./target-parsing-CugsYhBQ.js";
|
|
3
|
+
import "./targets-C5NeqQJr.js";
|
|
4
|
+
import { a as validateSlackBlocksArray, o as SLACK_TEXT_LIMIT, s as truncateSlackText, t as normalizeSlackThreadTsCandidate } from "./thread-ts-ks-O8cEG.js";
|
|
5
|
+
import { a as getSlackWriteClient, n as createSlackTokenCacheKey } from "./client-BY0ZhGHl.js";
|
|
6
|
+
import { t as getOptionalSlackRuntime } from "./runtime-BOk7xkOl.js";
|
|
7
|
+
import { i as loadOutboundMediaFromUrl } from "./runtime-api-erJbVGdt.js";
|
|
8
8
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
9
9
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-message";
|
|
10
10
|
import { withTrustedEnvProxyGuardedFetchMode } from "openclaw/plugin-sdk/fetch-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as resolveSlackAccount } from "./accounts-
|
|
2
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
1
|
+
import { a as resolveSlackAccount } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { t as inspectSlackAccount } from "./account-inspect-vVg3pT03.js";
|
|
3
3
|
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
|
|
4
4
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { DEFAULT_ACCOUNT_ID, createAccountScopedAllowFromSection, createAccountScopedGroupAccessSection, createAllowlistSetupWizardProxy, createEnvPatchedAccountSetupAdapter, createLegacyCompatChannelDmPolicy, createSetupTranslator, createStandardChannelSetupStatus, parseMentionOrPrefixedId, patchChannelConfigForAccount, setSetupChannelEnabled } from "openclaw/plugin-sdk/setup-runtime";
|
package/dist/setup-plugin-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as slackSetupPlugin } from "./channel.setup-
|
|
1
|
+
import { t as slackSetupPlugin } from "./channel.setup-DlFY3IsY.js";
|
|
2
2
|
export { slackSetupPlugin };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom } from "./accounts-
|
|
2
|
-
import "./shared-
|
|
3
|
-
import { i as SLACK_CHANNEL, t as createSlackSetupWizardBase } from "./setup-core-
|
|
4
|
-
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-
|
|
5
|
-
import { t as resolveSlackUserAllowlist } from "./resolve-users-
|
|
1
|
+
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import "./shared-C9qcXNm_.js";
|
|
3
|
+
import { i as SLACK_CHANNEL, t as createSlackSetupWizardBase } from "./setup-core-CJxjcOda.js";
|
|
4
|
+
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-CXV6oSKF.js";
|
|
5
|
+
import { t as resolveSlackUserAllowlist } from "./resolve-users-BCBZwBB5.js";
|
|
6
6
|
import { adaptScopedAccountAccessor } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
7
7
|
import { createSetupTranslator, noteChannelLookupFailure, noteChannelLookupSummary, parseMentionOrPrefixedId, promptLegacyChannelAllowFromForAccount, resolveEntriesWithOptionalToken } from "openclaw/plugin-sdk/setup-runtime";
|
|
8
8
|
import { formatDocsLink } from "openclaw/plugin-sdk/setup-tools";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, c as resolveSlackConfigAccessorAccount, i as resolveDefaultSlackAccountId, n as listSlackAccountIds, o as resolveSlackAccountAllowFrom, s as resolveSlackAccountDmPolicy } from "./accounts-
|
|
2
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
3
|
-
import { n as isSlackInteractiveRepliesEnabled } from "./interactive-replies-
|
|
4
|
-
import { f as getChatChannelMeta } from "./client-
|
|
5
|
-
import { i as SLACK_CHANNEL } from "./setup-core-
|
|
6
|
-
import { t as SlackChannelConfigSchema } from "./config-schema-
|
|
7
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
8
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-
|
|
1
|
+
import { a as resolveSlackAccount, c as resolveSlackConfigAccessorAccount, i as resolveDefaultSlackAccountId, n as listSlackAccountIds, o as resolveSlackAccountAllowFrom, s as resolveSlackAccountDmPolicy } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { t as inspectSlackAccount } from "./account-inspect-vVg3pT03.js";
|
|
3
|
+
import { n as isSlackInteractiveRepliesEnabled } from "./interactive-replies-9v8OYeGV.js";
|
|
4
|
+
import { f as getChatChannelMeta } from "./client-BY0ZhGHl.js";
|
|
5
|
+
import { i as SLACK_CHANNEL } from "./setup-core-CJxjcOda.js";
|
|
6
|
+
import { t as SlackChannelConfigSchema } from "./config-schema-CUiDK8HV.js";
|
|
7
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BVvVoRt-.js";
|
|
8
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-g_PPWuoD.js";
|
|
9
9
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter, createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
10
10
|
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
11
11
|
import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
|
|
@@ -45,7 +45,7 @@ const collectSlackSecurityWarnings = createOpenProviderConfiguredRouteWarningCol
|
|
|
45
45
|
remediation: "Set channels.slack.groupPolicy=\"allowlist\" and configure channels.slack.channels"
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
const loadSlackSecurityAuditModule = createLazyRuntimeModule(() => import("./security-audit-
|
|
48
|
+
const loadSlackSecurityAuditModule = createLazyRuntimeModule(() => import("./security-audit-CikQhBUY.js").then((n) => n.n));
|
|
49
49
|
const slackSecurityAdapter = {
|
|
50
50
|
resolveDmPolicy: resolveSlackDmPolicy,
|
|
51
51
|
collectWarnings: collectSlackSecurityWarnings,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as deliverSlackSlashReplies$1 } from "./replies-
|
|
1
|
+
import { r as deliverSlackSlashReplies$1 } from "./replies-CZYffp8P.js";
|
|
2
2
|
import { resolveAgentRoute as resolveAgentRoute$1 } from "openclaw/plugin-sdk/routing";
|
|
3
3
|
import { resolveMarkdownTableMode as resolveMarkdownTableMode$1 } from "openclaw/plugin-sdk/markdown-table-runtime";
|
|
4
4
|
import { recordInboundSessionMetaSafe as recordInboundSessionMetaSafe$1, resolveConversationLabel as resolveConversationLabel$1 } from "openclaw/plugin-sdk/conversation-runtime";
|
package/dist/test-api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as createSlackActions, t as slackPlugin } from "./channel-
|
|
2
|
-
import { n as setSlackRuntime } from "./runtime-
|
|
3
|
-
import { t as sendMessageSlack } from "./send-
|
|
4
|
-
import { t as prepareSlackMessage } from "./prepare-
|
|
5
|
-
import { t as createInboundSlackTestContext } from "./prepare.test-helpers-
|
|
6
|
-
import { t as createSlackOutboundPayloadHarness } from "./outbound-payload.test-harness-
|
|
7
|
-
import { n as slackOutbound } from "./outbound-adapter-
|
|
1
|
+
import { a as createSlackActions, t as slackPlugin } from "./channel-BGx02-m4.js";
|
|
2
|
+
import { n as setSlackRuntime } from "./runtime-BOk7xkOl.js";
|
|
3
|
+
import { t as sendMessageSlack } from "./send-ag0Lnpod.js";
|
|
4
|
+
import { t as prepareSlackMessage } from "./prepare-DG5iny4a.js";
|
|
5
|
+
import { t as createInboundSlackTestContext } from "./prepare.test-helpers-DkdsBfN8.js";
|
|
6
|
+
import { t as createSlackOutboundPayloadHarness } from "./outbound-payload.test-harness-CCyuhlnK.js";
|
|
7
|
+
import { n as slackOutbound } from "./outbound-adapter-CrkqCWtg.js";
|
|
8
8
|
export { createInboundSlackTestContext, createSlackActions, createSlackOutboundPayloadHarness, prepareSlackMessage, sendMessageSlack, setSlackRuntime, slackOutbound, slackPlugin };
|
package/openclaw.plugin.json
CHANGED
|
@@ -159,7 +159,15 @@
|
|
|
159
159
|
"type": "object",
|
|
160
160
|
"properties": {
|
|
161
161
|
"enabled": {
|
|
162
|
-
"
|
|
162
|
+
"anyOf": [
|
|
163
|
+
{
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "string",
|
|
168
|
+
"const": "auto"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
163
171
|
},
|
|
164
172
|
"approvers": {
|
|
165
173
|
"type": "array",
|
|
@@ -1312,7 +1320,15 @@
|
|
|
1312
1320
|
"type": "object",
|
|
1313
1321
|
"properties": {
|
|
1314
1322
|
"enabled": {
|
|
1315
|
-
"
|
|
1323
|
+
"anyOf": [
|
|
1324
|
+
{
|
|
1325
|
+
"type": "boolean"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"type": "string",
|
|
1329
|
+
"const": "auto"
|
|
1330
|
+
}
|
|
1331
|
+
]
|
|
1316
1332
|
},
|
|
1317
1333
|
"approvers": {
|
|
1318
1334
|
"type": "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/slack",
|
|
3
|
-
"version": "2026.5.
|
|
3
|
+
"version": "2026.5.20-beta.2",
|
|
4
4
|
"description": "OpenClaw Slack channel plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"openclaw": "workspace:*"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"openclaw": ">=2026.5.
|
|
23
|
+
"openclaw": ">=2026.5.20-beta.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependenciesMeta": {
|
|
26
26
|
"openclaw": {
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"allowInvalidConfigRecovery": true
|
|
66
66
|
},
|
|
67
67
|
"compat": {
|
|
68
|
-
"pluginApi": ">=2026.5.
|
|
68
|
+
"pluginApi": ">=2026.5.20-beta.2"
|
|
69
69
|
},
|
|
70
70
|
"build": {
|
|
71
|
-
"openclawVersion": "2026.5.
|
|
71
|
+
"openclawVersion": "2026.5.20-beta.2",
|
|
72
72
|
"bundledDist": false
|
|
73
73
|
},
|
|
74
74
|
"release": {
|
package/dist/targets-B1tYCAr6.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{slash-skill-commands.runtime-rrY2hXvN.js → slash-skill-commands.runtime-CD1J2ODY.js}
RENAMED
|
File without changes
|