@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,4 +1,4 @@
|
|
|
1
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
1
|
+
import { t as inspectSlackAccount } from "./account-inspect-vVg3pT03.js";
|
|
2
2
|
//#region extensions/slack/account-inspect-api.ts
|
|
3
3
|
function inspectSlackReadOnlyAccount(cfg, accountId) {
|
|
4
4
|
return inspectSlackAccount({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveDefaultSlackAccountId, r as mergeSlackAccountConfig } from "./accounts-
|
|
1
|
+
import { i as resolveDefaultSlackAccountId, r as mergeSlackAccountConfig } from "./accounts-BnLQ3fe2.js";
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
3
3
|
import { hasConfiguredSecretInput, normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as resolveSlackChannelId, r as parseSlackTarget } from "./target-parsing-
|
|
2
|
-
import "./targets-
|
|
3
|
-
import { i as parseSlackBlocksInput } from "./thread-ts-
|
|
4
|
-
import { a as readNumberParam, c as withNormalizedTimestamp, n as imageResultFromFile, o as readReactionParams, r as jsonResult, s as readStringParam, t as createActionGate } from "./runtime-api-
|
|
1
|
+
import { i as resolveSlackChannelId, r as parseSlackTarget } from "./target-parsing-CugsYhBQ.js";
|
|
2
|
+
import "./targets-C5NeqQJr.js";
|
|
3
|
+
import { i as parseSlackBlocksInput } from "./thread-ts-ks-O8cEG.js";
|
|
4
|
+
import { a as readNumberParam, c as withNormalizedTimestamp, n as imageResultFromFile, o as readReactionParams, r as jsonResult, s as readStringParam, t as createActionGate } from "./runtime-api-erJbVGdt.js";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { isSingleUseReplyToMode } from "openclaw/plugin-sdk/reply-reference";
|
|
7
7
|
import { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
|
|
@@ -28,11 +28,11 @@ function sameSlackChannelTarget(targetChannel, currentChannelId) {
|
|
|
28
28
|
let slackActionsRuntimePromise;
|
|
29
29
|
let slackAccountsRuntimePromise;
|
|
30
30
|
function loadSlackActionsRuntime() {
|
|
31
|
-
slackActionsRuntimePromise ??= import("./actions.runtime-
|
|
31
|
+
slackActionsRuntimePromise ??= import("./actions.runtime-L_gt-mA4.js");
|
|
32
32
|
return slackActionsRuntimePromise;
|
|
33
33
|
}
|
|
34
34
|
function loadSlackAccountsRuntime() {
|
|
35
|
-
slackAccountsRuntimePromise ??= import("./accounts.runtime-
|
|
35
|
+
slackAccountsRuntimePromise ??= import("./accounts.runtime-BVdtQeuq.js");
|
|
36
36
|
return slackAccountsRuntimePromise;
|
|
37
37
|
}
|
|
38
38
|
function createLazySlackAction(key) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as resolveSlackAccount, d as resolveSlackBotToken } from "./accounts-
|
|
3
|
-
import { a as validateSlackBlocksArray, o as SLACK_TEXT_LIMIT, s as truncateSlackText } from "./thread-ts-
|
|
4
|
-
import { a as getSlackWriteClient, r as createSlackWebClient } from "./client-
|
|
5
|
-
import { c as buildSlackBlocksFallbackText, t as sendMessageSlack } from "./send-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { a as resolveSlackAccount, d as resolveSlackBotToken } from "./accounts-BnLQ3fe2.js";
|
|
3
|
+
import { a as validateSlackBlocksArray, o as SLACK_TEXT_LIMIT, s as truncateSlackText } from "./thread-ts-ks-O8cEG.js";
|
|
4
|
+
import { a as getSlackWriteClient, r as createSlackWebClient } from "./client-BY0ZhGHl.js";
|
|
5
|
+
import { c as buildSlackBlocksFallbackText, t as sendMessageSlack } from "./send-ag0Lnpod.js";
|
|
6
6
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
7
7
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
8
8
|
import { logVerbose, logVerbose as logVerbose$1 } from "openclaw/plugin-sdk/runtime-env";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as listSlackEmojis, c as pinSlackMessage, d as removeOwnSlackReactions, f as removeSlackReaction, i as getSlackMemberInfo, l as reactSlackMessage, m as unpinSlackMessage, n as downloadSlackFile, o as listSlackPins, p as sendSlackMessage, r as editSlackMessage, s as listSlackReactions, t as deleteSlackMessage, u as readSlackMessages } from "./actions-
|
|
1
|
+
import { a as listSlackEmojis, c as pinSlackMessage, d as removeOwnSlackReactions, f as removeSlackReaction, i as getSlackMemberInfo, l as reactSlackMessage, m as unpinSlackMessage, n as downloadSlackFile, o as listSlackPins, p as sendSlackMessage, r as editSlackMessage, s as listSlackReactions, t as deleteSlackMessage, u as readSlackMessages } from "./actions-S6WfIXe6.js";
|
|
2
2
|
export { deleteSlackMessage, downloadSlackFile, editSlackMessage, getSlackMemberInfo, listSlackEmojis, listSlackPins, listSlackReactions, pinSlackMessage, reactSlackMessage, readSlackMessages, removeOwnSlackReactions, removeSlackReaction, sendSlackMessage, unpinSlackMessage };
|
package/dist/api.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, l as resolveSlackReplyToMode, n as listSlackAccountIds, r as mergeSlackAccountConfig, t as listEnabledSlackAccounts } from "./accounts-
|
|
2
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
3
|
-
import { i as resolveSlackChannelId, n as normalizeSlackMessagingTarget, r as parseSlackTarget, t as looksLikeSlackTargetId } from "./target-parsing-
|
|
4
|
-
import "./targets-
|
|
5
|
-
import { i as resolveSlackChannelType, n as buildSlackThreadingToolContext, o as resolveSlackAutoThreadId, r as resetSlackChannelTypeCacheForTest, t as slackPlugin } from "./channel-
|
|
6
|
-
import { n as resolveSlackGroupRequireMention, r as resolveSlackGroupToolPolicy } from "./reply-blocks-
|
|
7
|
-
import { n as buildSlackPresentationBlocks, t as buildSlackInteractiveBlocks } from "./blocks-render-
|
|
8
|
-
import { a as validateSlackBlocksArray, i as parseSlackBlocksInput, r as SLACK_MAX_BLOCKS } from "./thread-ts-
|
|
9
|
-
import { n as extractSlackToolSend, r as listSlackMessageActions } from "./message-tool-api-
|
|
10
|
-
import { n as isSlackInteractiveRepliesEnabled, r as parseSlackOptionsLine, t as compileSlackInteractiveReplies } from "./interactive-replies-
|
|
11
|
-
import { a as getSlackWriteClient, c as resolveSlackWebClientOptions, i as createSlackWriteClient, l as resolveSlackWriteClientOptions, n as createSlackTokenCacheKey, o as SLACK_DEFAULT_RETRY_OPTIONS, r as createSlackWebClient, s as SLACK_WRITE_RETRY_OPTIONS, t as clearSlackWriteClientCacheForTest } from "./client-
|
|
12
|
-
import { a as normalizeSlackSlug, i as normalizeSlackAllowOwnerEntry, n as normalizeAllowList, o as resolveSlackAllowListMatch, r as normalizeAllowListLower, s as resolveSlackUserAllowed, t as allowListMatches } from "./allow-list-
|
|
13
|
-
import { t as slackSetupPlugin } from "./channel.setup-
|
|
14
|
-
import { a as recordSlackThreadParticipation, n as clearSlackThreadParticipationCache, r as hasSlackThreadParticipation } from "./send-
|
|
15
|
-
import { a as listSlackEmojis, c as pinSlackMessage, d as removeOwnSlackReactions, f as removeSlackReaction, i as getSlackMemberInfo, l as reactSlackMessage, m as unpinSlackMessage, n as downloadSlackFile, o as listSlackPins, p as sendSlackMessage, r as editSlackMessage, s as listSlackReactions, t as deleteSlackMessage, u as readSlackMessages } from "./actions-
|
|
16
|
-
import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-
|
|
17
|
-
import { n as registerSlackHttpHandler, r as normalizeSlackWebhookPath, t as handleSlackHttpRequest } from "./registry-
|
|
18
|
-
import { t as probeSlack } from "./probe-
|
|
19
|
-
import { t as collectSlackSecurityAuditFindings } from "./security-audit-
|
|
20
|
-
import { n as resolveSlackRuntimeGroupPolicy } from "./provider-
|
|
1
|
+
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, l as resolveSlackReplyToMode, n as listSlackAccountIds, r as mergeSlackAccountConfig, t as listEnabledSlackAccounts } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { t as inspectSlackAccount } from "./account-inspect-vVg3pT03.js";
|
|
3
|
+
import { i as resolveSlackChannelId, n as normalizeSlackMessagingTarget, r as parseSlackTarget, t as looksLikeSlackTargetId } from "./target-parsing-CugsYhBQ.js";
|
|
4
|
+
import "./targets-C5NeqQJr.js";
|
|
5
|
+
import { i as resolveSlackChannelType, n as buildSlackThreadingToolContext, o as resolveSlackAutoThreadId, r as resetSlackChannelTypeCacheForTest, t as slackPlugin } from "./channel-BGx02-m4.js";
|
|
6
|
+
import { n as resolveSlackGroupRequireMention, r as resolveSlackGroupToolPolicy } from "./reply-blocks-B_x2Hzez.js";
|
|
7
|
+
import { n as buildSlackPresentationBlocks, t as buildSlackInteractiveBlocks } from "./blocks-render-CNC4vQnd.js";
|
|
8
|
+
import { a as validateSlackBlocksArray, i as parseSlackBlocksInput, r as SLACK_MAX_BLOCKS } from "./thread-ts-ks-O8cEG.js";
|
|
9
|
+
import { n as extractSlackToolSend, r as listSlackMessageActions } from "./message-tool-api-BXEWUFiV.js";
|
|
10
|
+
import { n as isSlackInteractiveRepliesEnabled, r as parseSlackOptionsLine, t as compileSlackInteractiveReplies } from "./interactive-replies-9v8OYeGV.js";
|
|
11
|
+
import { a as getSlackWriteClient, c as resolveSlackWebClientOptions, i as createSlackWriteClient, l as resolveSlackWriteClientOptions, n as createSlackTokenCacheKey, o as SLACK_DEFAULT_RETRY_OPTIONS, r as createSlackWebClient, s as SLACK_WRITE_RETRY_OPTIONS, t as clearSlackWriteClientCacheForTest } from "./client-BY0ZhGHl.js";
|
|
12
|
+
import { a as normalizeSlackSlug, i as normalizeSlackAllowOwnerEntry, n as normalizeAllowList, o as resolveSlackAllowListMatch, r as normalizeAllowListLower, s as resolveSlackUserAllowed, t as allowListMatches } from "./allow-list-ChDz7vQO.js";
|
|
13
|
+
import { t as slackSetupPlugin } from "./channel.setup-DlFY3IsY.js";
|
|
14
|
+
import { a as recordSlackThreadParticipation, n as clearSlackThreadParticipationCache, r as hasSlackThreadParticipation } from "./send-ag0Lnpod.js";
|
|
15
|
+
import { a as listSlackEmojis, c as pinSlackMessage, d as removeOwnSlackReactions, f as removeSlackReaction, i as getSlackMemberInfo, l as reactSlackMessage, m as unpinSlackMessage, n as downloadSlackFile, o as listSlackPins, p as sendSlackMessage, r as editSlackMessage, s as listSlackReactions, t as deleteSlackMessage, u as readSlackMessages } from "./actions-S6WfIXe6.js";
|
|
16
|
+
import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-BYH5Y8si.js";
|
|
17
|
+
import { n as registerSlackHttpHandler, r as normalizeSlackWebhookPath, t as handleSlackHttpRequest } from "./registry-bbjH7IHX.js";
|
|
18
|
+
import { t as probeSlack } from "./probe-DTCmOwpe.js";
|
|
19
|
+
import { t as collectSlackSecurityAuditFindings } from "./security-audit-CikQhBUY.js";
|
|
20
|
+
import { n as resolveSlackRuntimeGroupPolicy } from "./provider-BooGa5D8.js";
|
|
21
21
|
export { SLACK_DEFAULT_RETRY_OPTIONS, SLACK_MAX_BLOCKS, SLACK_WRITE_RETRY_OPTIONS, resetSlackChannelTypeCacheForTest as __resetSlackChannelTypeCacheForTest, resetSlackChannelTypeCacheForTest, allowListMatches, buildSlackInteractiveBlocks, buildSlackPresentationBlocks, buildSlackThreadingToolContext, clearSlackThreadParticipationCache, clearSlackWriteClientCacheForTest, collectSlackSecurityAuditFindings, compileSlackInteractiveReplies, createSlackTokenCacheKey, createSlackWebClient, createSlackWriteClient, deleteSlackMessage, downloadSlackFile, editSlackMessage, extractSlackToolSend, getSlackMemberInfo, getSlackWriteClient, handleSlackHttpRequest, hasSlackThreadParticipation, inspectSlackAccount, isSlackInteractiveRepliesEnabled, listEnabledSlackAccounts, listSlackAccountIds, listSlackDirectoryGroupsFromConfig, listSlackDirectoryPeersFromConfig, listSlackEmojis, listSlackMessageActions, listSlackPins, listSlackReactions, looksLikeSlackTargetId, mergeSlackAccountConfig, normalizeAllowList, normalizeAllowListLower, normalizeSlackAllowOwnerEntry, normalizeSlackMessagingTarget, normalizeSlackSlug, normalizeSlackWebhookPath, parseSlackBlocksInput, parseSlackOptionsLine, parseSlackTarget, pinSlackMessage, probeSlack, reactSlackMessage, readSlackMessages, recordSlackThreadParticipation, registerSlackHttpHandler, removeOwnSlackReactions, removeSlackReaction, resolveDefaultSlackAccountId, resolveSlackAccount, resolveSlackAllowListMatch, resolveSlackAutoThreadId, resolveSlackChannelId, resolveSlackChannelType, resolveSlackGroupRequireMention, resolveSlackGroupToolPolicy, resolveSlackReplyToMode, resolveSlackRuntimeGroupPolicy, resolveSlackUserAllowed, resolveSlackWebClientOptions, resolveSlackWriteClientOptions, sendSlackMessage, slackPlugin, slackSetupPlugin, unpinSlackMessage, validateSlackBlocksArray };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as normalizeSlackApproverId, s as isSlackExecApprovalClientEnabled, t as resolveSlackReplyBlocks, u as shouldHandleSlackExecApprovalRequest } from "./reply-blocks-
|
|
2
|
-
import { s as truncateSlackText } from "./thread-ts-
|
|
3
|
-
import { t as sendMessageSlack } from "./send-
|
|
1
|
+
import { c as normalizeSlackApproverId, s as isSlackExecApprovalClientEnabled, t as resolveSlackReplyBlocks, u as shouldHandleSlackExecApprovalRequest } from "./reply-blocks-B_x2Hzez.js";
|
|
2
|
+
import { s as truncateSlackText } from "./thread-ts-ks-O8cEG.js";
|
|
3
|
+
import { t as sendMessageSlack } from "./send-ag0Lnpod.js";
|
|
4
4
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
5
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
6
6
|
import { logError } from "openclaw/plugin-sdk/logging-core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as truncateSlackText } from "./thread-ts-
|
|
1
|
+
import { s as truncateSlackText } from "./thread-ts-ks-O8cEG.js";
|
|
2
2
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { reduceInteractiveReply } from "openclaw/plugin-sdk/interactive-runtime";
|
|
4
4
|
//#region extensions/slack/src/reply-action-ids.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, l as resolveSlackReplyToMode, n as listSlackAccountIds, o as resolveSlackAccountAllowFrom } from "./accounts-
|
|
2
|
-
import { i as resolveSlackChannelId, n as normalizeSlackMessagingTarget, r as parseSlackTarget, t as looksLikeSlackTargetId } from "./target-parsing-
|
|
3
|
-
import "./targets-
|
|
4
|
-
import { a as getSlackExecApprovalApprovers, d as shouldSuppressLocalSlackExecApprovalPrompt, i as isSlackApprovalAuthorizedSender, l as resolveSlackExecApprovalTarget, n as resolveSlackGroupRequireMention, o as isSlackExecApprovalAuthorizedSender, r as resolveSlackGroupToolPolicy, s as isSlackExecApprovalClientEnabled, t as resolveSlackReplyBlocks, u as shouldHandleSlackExecApprovalRequest } from "./reply-blocks-
|
|
5
|
-
import { n as buildSlackPresentationBlocks, r as resolveSlackInteractiveBlockOffsets, t as buildSlackInteractiveBlocks } from "./blocks-render-
|
|
6
|
-
import { n as resolveSlackThreadTsValue, o as SLACK_TEXT_LIMIT, t as normalizeSlackThreadTsCandidate } from "./thread-ts-
|
|
7
|
-
import { n as extractSlackToolSend, t as describeSlackMessageTool } from "./message-tool-api-
|
|
8
|
-
import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-
|
|
9
|
-
import { d as PAIRING_APPROVED_MESSAGE, m as resolveConfiguredFromRequiredCredentialStatuses, p as projectCredentialSnapshotFields, r as createSlackWebClient, u as DEFAULT_ACCOUNT_ID } from "./client-
|
|
10
|
-
import { r as normalizeAllowListLower } from "./allow-list-
|
|
11
|
-
import { t as getOptionalSlackRuntime } from "./runtime-
|
|
12
|
-
import { i as slackSecurityAdapter, n as isSlackPluginAccountConfigured, r as slackConfigAdapter, t as createSlackPluginBase } from "./shared-
|
|
13
|
-
import { i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, r as slackSetupAdapter } from "./setup-core-
|
|
1
|
+
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId, l as resolveSlackReplyToMode, n as listSlackAccountIds, o as resolveSlackAccountAllowFrom } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { i as resolveSlackChannelId, n as normalizeSlackMessagingTarget, r as parseSlackTarget, t as looksLikeSlackTargetId } from "./target-parsing-CugsYhBQ.js";
|
|
3
|
+
import "./targets-C5NeqQJr.js";
|
|
4
|
+
import { a as getSlackExecApprovalApprovers, d as shouldSuppressLocalSlackExecApprovalPrompt, i as isSlackApprovalAuthorizedSender, l as resolveSlackExecApprovalTarget, n as resolveSlackGroupRequireMention, o as isSlackExecApprovalAuthorizedSender, r as resolveSlackGroupToolPolicy, s as isSlackExecApprovalClientEnabled, t as resolveSlackReplyBlocks, u as shouldHandleSlackExecApprovalRequest } from "./reply-blocks-B_x2Hzez.js";
|
|
5
|
+
import { n as buildSlackPresentationBlocks, r as resolveSlackInteractiveBlockOffsets, t as buildSlackInteractiveBlocks } from "./blocks-render-CNC4vQnd.js";
|
|
6
|
+
import { n as resolveSlackThreadTsValue, o as SLACK_TEXT_LIMIT, t as normalizeSlackThreadTsCandidate } from "./thread-ts-ks-O8cEG.js";
|
|
7
|
+
import { n as extractSlackToolSend, t as describeSlackMessageTool } from "./message-tool-api-BXEWUFiV.js";
|
|
8
|
+
import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-9v8OYeGV.js";
|
|
9
|
+
import { d as PAIRING_APPROVED_MESSAGE, m as resolveConfiguredFromRequiredCredentialStatuses, p as projectCredentialSnapshotFields, r as createSlackWebClient, u as DEFAULT_ACCOUNT_ID } from "./client-BY0ZhGHl.js";
|
|
10
|
+
import { r as normalizeAllowListLower } from "./allow-list-ChDz7vQO.js";
|
|
11
|
+
import { t as getOptionalSlackRuntime } from "./runtime-BOk7xkOl.js";
|
|
12
|
+
import { i as slackSecurityAdapter, n as isSlackPluginAccountConfigured, r as slackConfigAdapter, t as createSlackPluginBase } from "./shared-C9qcXNm_.js";
|
|
13
|
+
import { i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, r as slackSetupAdapter } from "./setup-core-CJxjcOda.js";
|
|
14
14
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
15
15
|
import { adaptScopedAccountAccessor } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
16
16
|
import { buildOutboundBaseSessionKey } from "openclaw/plugin-sdk/routing";
|
|
@@ -177,7 +177,7 @@ const slackApprovalCapability = createApproverRestrictedNativeApprovalCapability
|
|
|
177
177
|
accountId,
|
|
178
178
|
request
|
|
179
179
|
}),
|
|
180
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
180
|
+
load: async () => (await import("./approval-handler.runtime-Dlwy_Uvq.js")).slackApprovalNativeRuntime
|
|
181
181
|
})
|
|
182
182
|
});
|
|
183
183
|
splitChannelApprovalCapability(slackApprovalCapability);
|
|
@@ -344,7 +344,7 @@ async function handleSlackMessageAction(params) {
|
|
|
344
344
|
//#region extensions/slack/src/channel-actions.ts
|
|
345
345
|
let slackActionRuntimePromise$1;
|
|
346
346
|
async function loadSlackActionRuntime$1() {
|
|
347
|
-
slackActionRuntimePromise$1 ??= import("./action-runtime.runtime-
|
|
347
|
+
slackActionRuntimePromise$1 ??= import("./action-runtime.runtime-CkVUUEjQ.js");
|
|
348
348
|
return await slackActionRuntimePromise$1;
|
|
349
349
|
}
|
|
350
350
|
function resolveSlackActionContext(params) {
|
|
@@ -474,9 +474,9 @@ const EXTENSION_SHARED_MODULE_ID = "openclaw/plugin-sdk/extension-shared";
|
|
|
474
474
|
const TARGET_RESOLVER_RUNTIME_MODULE_ID = "openclaw/plugin-sdk/target-resolver-runtime";
|
|
475
475
|
const loadExtensionSharedSdk = createLazyRuntimeModule(() => import(EXTENSION_SHARED_MODULE_ID));
|
|
476
476
|
const loadTargetResolverRuntimeSdk = createLazyRuntimeModule(() => import(TARGET_RESOLVER_RUNTIME_MODULE_ID));
|
|
477
|
-
const loadSlackSetupSurfaceModule = createLazyRuntimeModule(() => import("./setup-surface-
|
|
478
|
-
const loadSlackScopesModule = createLazyRuntimeModule(() => import("./scopes-
|
|
479
|
-
const loadSlackOutboundAdapterModule = createLazyRuntimeModule(() => import("./outbound-adapter-
|
|
477
|
+
const loadSlackSetupSurfaceModule = createLazyRuntimeModule(() => import("./setup-surface-BO6IU00P.js"));
|
|
478
|
+
const loadSlackScopesModule = createLazyRuntimeModule(() => import("./scopes-CWwLQOAw.js"));
|
|
479
|
+
const loadSlackOutboundAdapterModule = createLazyRuntimeModule(() => import("./outbound-adapter-CrkqCWtg.js").then((n) => n.t));
|
|
480
480
|
async function resolveSlackHandleAction() {
|
|
481
481
|
return getOptionalSlackRuntime()?.channel?.slack?.handleSlackAction ?? (await loadSlackActionRuntime()).handleSlackAction;
|
|
482
482
|
}
|
|
@@ -496,27 +496,27 @@ let slackSendRuntimePromise;
|
|
|
496
496
|
let slackProbeModulePromise;
|
|
497
497
|
let slackMonitorModulePromise;
|
|
498
498
|
let slackDirectoryLiveModulePromise;
|
|
499
|
-
const loadSlackDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-
|
|
500
|
-
const loadSlackResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-
|
|
501
|
-
const loadSlackResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-
|
|
499
|
+
const loadSlackDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-BYH5Y8si.js").then((n) => n.t));
|
|
500
|
+
const loadSlackResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-CXV6oSKF.js").then((n) => n.n));
|
|
501
|
+
const loadSlackResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-BCBZwBB5.js").then((n) => n.n));
|
|
502
502
|
async function loadSlackActionRuntime() {
|
|
503
|
-
slackActionRuntimePromise ??= import("./action-runtime.runtime-
|
|
503
|
+
slackActionRuntimePromise ??= import("./action-runtime.runtime-CkVUUEjQ.js");
|
|
504
504
|
return await slackActionRuntimePromise;
|
|
505
505
|
}
|
|
506
506
|
async function loadSlackSendRuntime() {
|
|
507
|
-
slackSendRuntimePromise ??= import("./send.runtime-
|
|
507
|
+
slackSendRuntimePromise ??= import("./send.runtime-CTJCRHtj.js");
|
|
508
508
|
return await slackSendRuntimePromise;
|
|
509
509
|
}
|
|
510
510
|
async function loadSlackProbeModule() {
|
|
511
|
-
slackProbeModulePromise ??= import("./probe-
|
|
511
|
+
slackProbeModulePromise ??= import("./probe-DTCmOwpe.js").then((n) => n.n);
|
|
512
512
|
return await slackProbeModulePromise;
|
|
513
513
|
}
|
|
514
514
|
async function loadSlackMonitorModule() {
|
|
515
|
-
slackMonitorModulePromise ??= import("./monitor-
|
|
515
|
+
slackMonitorModulePromise ??= import("./monitor-B5cDOhd9.js").then((n) => n.t);
|
|
516
516
|
return await slackMonitorModulePromise;
|
|
517
517
|
}
|
|
518
518
|
async function loadSlackDirectoryLiveModule() {
|
|
519
|
-
slackDirectoryLiveModulePromise ??= import("./directory-live-
|
|
519
|
+
slackDirectoryLiveModulePromise ??= import("./directory-live-COvr0w-z.js").then((n) => n.t);
|
|
520
520
|
return await slackDirectoryLiveModulePromise;
|
|
521
521
|
}
|
|
522
522
|
async function resolveSlackSendContext(params) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SlackChannelConfigSchema } from "./config-schema-
|
|
1
|
+
import { t as SlackChannelConfigSchema } from "./config-schema-CUiDK8HV.js";
|
|
2
2
|
export { SlackChannelConfigSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as slackPlugin } from "./channel-
|
|
1
|
+
import { t as slackPlugin } from "./channel-BGx02-m4.js";
|
|
2
2
|
export { slackPlugin };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, c as resolveSlackConfigAccessorAccount, i as resolveDefaultSlackAccountId, n as listSlackAccountIds } from "./accounts-
|
|
2
|
-
import { a as describeSlackSetupAccount, i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, o as isSlackSetupAccountConfigured, r as slackSetupAdapter } from "./setup-core-
|
|
3
|
-
import { t as SlackChannelConfigSchema } from "./config-schema-
|
|
1
|
+
import { a as resolveSlackAccount, c as resolveSlackConfigAccessorAccount, i as resolveDefaultSlackAccountId, n as listSlackAccountIds } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { a as describeSlackSetupAccount, i as SLACK_CHANNEL, n as createSlackSetupWizardProxy, o as isSlackSetupAccountConfigured, r as slackSetupAdapter } from "./setup-core-CJxjcOda.js";
|
|
3
|
+
import { t as SlackChannelConfigSchema } from "./config-schema-CUiDK8HV.js";
|
|
4
4
|
import { adaptScopedAccountAccessor, createScopedChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
|
|
5
5
|
import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
|
|
6
6
|
//#region extensions/slack/src/channel.setup.ts
|
|
7
|
-
const slackSetupWizard = createSlackSetupWizardProxy(async () => ({ slackSetupWizard: (await import("./setup-surface-
|
|
7
|
+
const slackSetupWizard = createSlackSetupWizardProxy(async () => ({ slackSetupWizard: (await import("./setup-surface-BO6IU00P.js")).slackSetupWizard }));
|
|
8
8
|
const slackSetupConfigAdapter = createScopedChannelConfigAdapter({
|
|
9
9
|
sectionKey: SLACK_CHANNEL,
|
|
10
10
|
listAccountIds: listSlackAccountIds,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./target-parsing-
|
|
1
|
+
import "./target-parsing-CugsYhBQ.js";
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { PAIRING_APPROVED_MESSAGE, projectCredentialSnapshotFields, resolveConfiguredFromRequiredCredentialStatuses } from "openclaw/plugin-sdk/channel-status";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as buildChannelConfigSchema, t as SlackConfigSchema } from "./config-api-
|
|
1
|
+
import { n as buildChannelConfigSchema, t as SlackConfigSchema } from "./config-api-DnT9ohtE.js";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region extensions/slack/src/config-schema.ts
|
|
4
4
|
const SlackChannelConfigSchema = buildChannelConfigSchema(SlackConfigSchema, { uiHints: {
|
package/dist/contract-api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
2
|
-
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-
|
|
3
|
-
import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-
|
|
4
|
-
import { t as collectSlackSecurityAuditFindings } from "./security-audit-
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BVvVoRt-.js";
|
|
2
|
+
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-g_PPWuoD.js";
|
|
3
|
+
import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-BYH5Y8si.js";
|
|
4
|
+
import { t as collectSlackSecurityAuditFindings } from "./security-audit-CikQhBUY.js";
|
|
5
5
|
export { collectRuntimeConfigAssignments, collectSlackSecurityAuditFindings, legacyConfigRules, listSlackDirectoryGroupsFromConfig, listSlackDirectoryPeersFromConfig, normalizeCompatibilityConfig, secretTargetRegistryEntries };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom, r as mergeSlackAccountConfig } from "./accounts-
|
|
3
|
-
import { r as parseSlackTarget } from "./target-parsing-
|
|
4
|
-
import "./targets-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { i as resolveDefaultSlackAccountId, o as resolveSlackAccountAllowFrom, r as mergeSlackAccountConfig } from "./accounts-BnLQ3fe2.js";
|
|
3
|
+
import { r as parseSlackTarget } from "./target-parsing-CugsYhBQ.js";
|
|
4
|
+
import "./targets-C5NeqQJr.js";
|
|
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";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-
|
|
1
|
+
import { n as listSlackDirectoryGroupsFromConfig, r as listSlackDirectoryPeersFromConfig } from "./directory-config-BYH5Y8si.js";
|
|
2
2
|
export { listSlackDirectoryGroupsFromConfig, listSlackDirectoryPeersFromConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { a as resolveSlackAccount } from "./accounts-
|
|
3
|
-
import { r as createSlackWebClient } from "./client-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { a as resolveSlackAccount } from "./accounts-BnLQ3fe2.js";
|
|
3
|
+
import { r as createSlackWebClient } from "./client-BY0ZhGHl.js";
|
|
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({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as resolveSlackNativeStreaming, r as resolveSlackStreamingMode } from "./streaming-compat-
|
|
1
|
+
import { n as resolveSlackNativeStreaming, r as resolveSlackStreamingMode } from "./streaming-compat-gDv83t5m.js";
|
|
2
2
|
import { asObjectRecord, hasLegacyAccountStreamingAliases, hasLegacyStreamingAliases, normalizeLegacyChannelAliases } from "openclaw/plugin-sdk/runtime-doctor";
|
|
3
3
|
//#region extensions/slack/src/doctor-contract.ts
|
|
4
4
|
function hasLegacySlackStreamingAliases(value) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-
|
|
1
|
+
import { n as normalizeCompatibilityConfig, t as legacyConfigRules } from "./doctor-contract-BVvVoRt-.js";
|
|
2
2
|
export { legacyConfigRules, normalizeCompatibilityConfig };
|
package/dist/http-routes-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as registerSlackPluginHttpRoutes } from "./plugin-routes-
|
|
1
|
+
import { t as registerSlackPluginHttpRoutes } from "./plugin-routes-DRR3ijKM.js";
|
|
2
2
|
export { registerSlackPluginHttpRoutes };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as prepareSlackMessage } from "./prepare-
|
|
2
|
-
import { t as createInboundSlackTestContext } from "./prepare.test-helpers-
|
|
1
|
+
import { t as prepareSlackMessage } from "./prepare-DG5iny4a.js";
|
|
2
|
+
import { t as createInboundSlackTestContext } from "./prepare.test-helpers-DkdsBfN8.js";
|
|
3
3
|
export { createInboundSlackTestContext, prepareSlackMessage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId } from "./accounts-
|
|
1
|
+
import { a as resolveSlackAccount, i as resolveDefaultSlackAccountId } from "./accounts-BnLQ3fe2.js";
|
|
2
2
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
//#region extensions/slack/src/interactive-replies.ts
|
|
4
4
|
const SLACK_BUTTON_MAX_ITEMS = 5;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-
|
|
1
|
+
import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-9v8OYeGV.js";
|
|
2
2
|
export { compileSlackInteractiveReplies, isSlackInteractiveRepliesEnabled };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as resolveSlackAccount, t as listEnabledSlackAccounts } from "./accounts-
|
|
2
|
-
import { n as isSlackInteractiveRepliesEnabled } from "./interactive-replies-
|
|
1
|
+
import { a as resolveSlackAccount, t as listEnabledSlackAccounts } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { n as isSlackInteractiveRepliesEnabled } from "./interactive-replies-9v8OYeGV.js";
|
|
3
3
|
import { createActionGate } from "openclaw/plugin-sdk/channel-actions";
|
|
4
4
|
import { extractToolSend } from "openclaw/plugin-sdk/tool-send";
|
|
5
5
|
import { Type } from "typebox";
|
package/dist/message-tool-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as describeSlackMessageTool } from "./message-tool-api-
|
|
1
|
+
import { t as describeSlackMessageTool } from "./message-tool-api-BXEWUFiV.js";
|
|
2
2
|
export { describeSlackMessageTool as describeMessageTool };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { h as isSlackChannelAllowedByPolicy, k as buildSlackSlashCommandMatcher } from "./room-context-
|
|
3
|
-
import { t as monitorSlackProvider } from "./provider-
|
|
4
|
-
import { o as resolveSlackThreadTs } from "./replies-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { h as isSlackChannelAllowedByPolicy, k as buildSlackSlashCommandMatcher } from "./room-context-pG80xzA4.js";
|
|
3
|
+
import { t as monitorSlackProvider } from "./provider-BooGa5D8.js";
|
|
4
|
+
import { o as resolveSlackThreadTs } from "./replies-CZYffp8P.js";
|
|
5
5
|
//#region extensions/slack/src/monitor.ts
|
|
6
6
|
var monitor_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
buildSlackSlashCommandMatcher: () => buildSlackSlashCommandMatcher,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import { n as buildSlackPresentationBlocks, r as resolveSlackInteractiveBlockOffsets, t as buildSlackInteractiveBlocks } from "./blocks-render-
|
|
3
|
-
import { i as parseSlackBlocksInput, n as resolveSlackThreadTsValue, o as SLACK_TEXT_LIMIT } from "./thread-ts-
|
|
4
|
-
import { t as compileSlackInteractiveReplies } from "./interactive-replies-
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { n as buildSlackPresentationBlocks, r as resolveSlackInteractiveBlockOffsets, t as buildSlackInteractiveBlocks } from "./blocks-render-CNC4vQnd.js";
|
|
3
|
+
import { i as parseSlackBlocksInput, n as resolveSlackThreadTsValue, o as SLACK_TEXT_LIMIT } from "./thread-ts-ks-O8cEG.js";
|
|
4
|
+
import { t as compileSlackInteractiveReplies } from "./interactive-replies-9v8OYeGV.js";
|
|
5
5
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { attachChannelToResult, createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
|
|
7
7
|
import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-send-deps";
|
|
@@ -12,7 +12,7 @@ var outbound_adapter_exports = /* @__PURE__ */ __exportAll({ slackOutbound: () =
|
|
|
12
12
|
const SLACK_MAX_BLOCKS = 50;
|
|
13
13
|
let slackSendRuntimePromise;
|
|
14
14
|
async function loadSlackSendRuntime() {
|
|
15
|
-
slackSendRuntimePromise ??= import("./send.runtime-
|
|
15
|
+
slackSendRuntimePromise ??= import("./send.runtime-CTJCRHtj.js");
|
|
16
16
|
return await slackSendRuntimePromise;
|
|
17
17
|
}
|
|
18
18
|
function resolveRenderedInteractiveBlocks(interactive, previousBlocks) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createSlackOutboundPayloadHarness } from "./outbound-payload.test-harness-
|
|
1
|
+
import { t as createSlackOutboundPayloadHarness } from "./outbound-payload.test-harness-CCyuhlnK.js";
|
|
2
2
|
export { createSlackOutboundPayloadHarness };
|
package/dist/{outbound-payload.test-harness-B8N8U_AA.js → outbound-payload.test-harness-CCyuhlnK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as slackOutbound } from "./outbound-adapter-
|
|
1
|
+
import { n as slackOutbound } from "./outbound-adapter-CrkqCWtg.js";
|
|
2
2
|
import { primeChannelOutboundSendMock } from "openclaw/plugin-sdk/channel-contract-testing";
|
|
3
3
|
//#region node_modules/tinyrainbow/dist/index.js
|
|
4
4
|
var b = {
|
|
@@ -3968,10 +3968,6 @@ function splitByComma(s) {
|
|
|
3968
3968
|
if (lastToken) result.push(lastToken);
|
|
3969
3969
|
return result;
|
|
3970
3970
|
}
|
|
3971
|
-
let _test;
|
|
3972
|
-
function getCurrentTest() {
|
|
3973
|
-
return _test;
|
|
3974
|
-
}
|
|
3975
3971
|
const kChainableContext = Symbol("kChainableContext");
|
|
3976
3972
|
function getChainableContext(chainable) {
|
|
3977
3973
|
return chainable?.[kChainableContext];
|
|
@@ -4285,7 +4281,6 @@ function createTaskName(names, separator = " > ") {
|
|
|
4285
4281
|
*/
|
|
4286
4282
|
const suite = createSuite();
|
|
4287
4283
|
createTest(function(name, optionsOrFn, optionsOrTest) {
|
|
4288
|
-
if (getCurrentTest()) throw new Error("Calling the test function inside another test function is not allowed. Please put it inside \"describe\" or \"suite\" so it can be properly collected.");
|
|
4289
4284
|
getCurrentSuite().test.fn.call(this, formatName(name), optionsOrFn, optionsOrTest);
|
|
4290
4285
|
});
|
|
4291
4286
|
let runner;
|
|
@@ -4301,7 +4296,6 @@ function assert$3(condition, message) {
|
|
|
4301
4296
|
}
|
|
4302
4297
|
function getRunner() {
|
|
4303
4298
|
assert$3(runner, "the runner");
|
|
4304
|
-
return runner;
|
|
4305
4299
|
}
|
|
4306
4300
|
function getCurrentSuite() {
|
|
4307
4301
|
const currentSuite = collectorContext.currentSuite || defaultSuite;
|
|
@@ -4491,7 +4485,6 @@ function withAwaitAsyncAssertions(fn, task) {
|
|
|
4491
4485
|
}
|
|
4492
4486
|
function createSuite() {
|
|
4493
4487
|
function suiteFn(name, factoryOrOptions, optionsOrFactory) {
|
|
4494
|
-
if (getCurrentTest()) throw new Error("Calling the suite function inside test function is not allowed. It can be only called at the top level or inside another suite function.");
|
|
4495
4488
|
const currentSuite = collectorContext.currentSuite || defaultSuite;
|
|
4496
4489
|
let { options, handler: factory } = parseArguments(factoryOrOptions, optionsOrFactory);
|
|
4497
4490
|
const isConcurrentSpecified = options.concurrent || this.concurrent || options.sequential === false;
|
|
@@ -4501,7 +4494,7 @@ function createSuite() {
|
|
|
4501
4494
|
...parentOptions,
|
|
4502
4495
|
...options
|
|
4503
4496
|
};
|
|
4504
|
-
const shuffle = this.shuffle ?? options.shuffle ?? currentSuite?.options?.shuffle ??
|
|
4497
|
+
const shuffle = this.shuffle ?? options.shuffle ?? currentSuite?.options?.shuffle ?? void 0;
|
|
4505
4498
|
if (shuffle != null) options.shuffle = shuffle;
|
|
4506
4499
|
let mode = this.only ?? options.only ? "only" : this.skip ?? options.skip ? "skip" : this.todo ?? options.todo ? "todo" : "run";
|
|
4507
4500
|
if (mode === "run" && !factory) mode = "todo";
|
|
@@ -4693,7 +4686,7 @@ function formatTitle(template, items, idx) {
|
|
|
4693
4686
|
const isArrayKey = /^\d+$/.test(key);
|
|
4694
4687
|
if (!isObjectItem && !isArrayKey) return `$${key}`;
|
|
4695
4688
|
const arrayElement = isArrayKey ? objectAttr(items, key) : void 0;
|
|
4696
|
-
return objDisplay$1(isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement, { truncate:
|
|
4689
|
+
return objDisplay$1(isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement, { truncate: void 0 });
|
|
4697
4690
|
});
|
|
4698
4691
|
}
|
|
4699
4692
|
let output = "";
|
|
@@ -10147,7 +10140,7 @@ function memo(fn) {
|
|
|
10147
10140
|
};
|
|
10148
10141
|
}
|
|
10149
10142
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
10150
|
-
const MagicString = (await import("./magic-string.es-
|
|
10143
|
+
const MagicString = (await import("./magic-string.es-BPXBBMwL.js")).default;
|
|
10151
10144
|
const files = new Set(snapshots.map((i) => i.file));
|
|
10152
10145
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
10153
10146
|
const snaps = snapshots.filter((i) => i.file === file);
|
|
@@ -13474,7 +13467,7 @@ function createExpect(test) {
|
|
|
13474
13467
|
const { assertionCalls } = getState(expect$1);
|
|
13475
13468
|
setState({ assertionCalls: assertionCalls + 1 }, expect$1);
|
|
13476
13469
|
const assert = expect(value, message);
|
|
13477
|
-
const _test = test ||
|
|
13470
|
+
const _test = test || void 0;
|
|
13478
13471
|
if (_test) return assert.withTest(_test);
|
|
13479
13472
|
else return assert;
|
|
13480
13473
|
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { o as SLACK_TEXT_LIMIT, s as truncateSlackText } from "./thread-ts-
|
|
2
|
-
import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-
|
|
3
|
-
import { i as normalizeSlackAllowOwnerEntry } from "./allow-list-
|
|
4
|
-
import { n as resolveSlackNativeStreaming, r as resolveSlackStreamingMode, t as mapStreamingModeToSlackLegacyDraftStreamMode } from "./streaming-compat-
|
|
5
|
-
import { a as recordSlackThreadParticipation, s as normalizeSlackOutboundText, t as sendMessageSlack } from "./send-
|
|
6
|
-
import { b as buildSlackEditTextPayload, f as removeSlackReaction, l as reactSlackMessage, r as editSlackMessage, t as deleteSlackMessage } from "./actions-
|
|
7
|
-
import { t as formatSlackError } from "./errors-
|
|
8
|
-
import { D as updateLastRoute, E as resolveStorePath, a as recordInboundSession } from "./room-context-
|
|
9
|
-
import { r as escapeSlackMrkdwn } from "./provider-
|
|
10
|
-
import { n as resolveSlackThreadTargets, t as prepareSlackMessage } from "./prepare-
|
|
11
|
-
import { a as resolveDeliveredSlackReplyThreadTs, i as readSlackReplyBlocks, n as deliverReplies, o as resolveSlackThreadTs, t as createSlackReplyDeliveryPlan } from "./replies-
|
|
1
|
+
import { o as SLACK_TEXT_LIMIT, s as truncateSlackText } from "./thread-ts-ks-O8cEG.js";
|
|
2
|
+
import { n as isSlackInteractiveRepliesEnabled, t as compileSlackInteractiveReplies } from "./interactive-replies-9v8OYeGV.js";
|
|
3
|
+
import { i as normalizeSlackAllowOwnerEntry } from "./allow-list-ChDz7vQO.js";
|
|
4
|
+
import { n as resolveSlackNativeStreaming, r as resolveSlackStreamingMode, t as mapStreamingModeToSlackLegacyDraftStreamMode } from "./streaming-compat-gDv83t5m.js";
|
|
5
|
+
import { a as recordSlackThreadParticipation, s as normalizeSlackOutboundText, t as sendMessageSlack } from "./send-ag0Lnpod.js";
|
|
6
|
+
import { b as buildSlackEditTextPayload, f as removeSlackReaction, l as reactSlackMessage, r as editSlackMessage, t as deleteSlackMessage } from "./actions-S6WfIXe6.js";
|
|
7
|
+
import { t as formatSlackError } from "./errors-co-Fg3Ll.js";
|
|
8
|
+
import { D as updateLastRoute, E as resolveStorePath, a as recordInboundSession } from "./room-context-pG80xzA4.js";
|
|
9
|
+
import { r as escapeSlackMrkdwn } from "./provider-BooGa5D8.js";
|
|
10
|
+
import { n as resolveSlackThreadTargets, t as prepareSlackMessage } from "./prepare-DG5iny4a.js";
|
|
11
|
+
import { a as resolveDeliveredSlackReplyThreadTs, i as readSlackReplyBlocks, n as deliverReplies, o as resolveSlackThreadTs, t as createSlackReplyDeliveryPlan } from "./replies-CZYffp8P.js";
|
|
12
12
|
import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
13
13
|
import { resolveInboundLastRouteSessionKey } from "openclaw/plugin-sdk/routing";
|
|
14
14
|
import { createChannelMessageReplyPipeline, defineFinalizableLivePreviewAdapter, deliverWithFinalizableLivePreviewAdapter, resolveChannelMessageSourceReplyDeliveryMode } from "openclaw/plugin-sdk/channel-message";
|
|
@@ -713,10 +713,13 @@ async function dispatchPreparedSlackMessage(prepared) {
|
|
|
713
713
|
agentId: route.agentId,
|
|
714
714
|
channel: "slack",
|
|
715
715
|
accountId: route.accountId,
|
|
716
|
-
transformReplyPayload: (payload) =>
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
716
|
+
transformReplyPayload: (payload) => {
|
|
717
|
+
if (payload.isReasoning === true) return null;
|
|
718
|
+
return isSlackInteractiveRepliesEnabled({
|
|
719
|
+
cfg,
|
|
720
|
+
accountId: route.accountId
|
|
721
|
+
}) ? compileSlackInteractiveReplies(payload) : payload;
|
|
722
|
+
},
|
|
720
723
|
typing: {
|
|
721
724
|
start: async () => {
|
|
722
725
|
didSetStatus = true;
|
|
@@ -834,6 +837,7 @@ async function dispatchPreparedSlackMessage(prepared) {
|
|
|
834
837
|
}
|
|
835
838
|
};
|
|
836
839
|
const deliverNormally = async (params) => {
|
|
840
|
+
if (params.payload.isReasoning === true) return;
|
|
837
841
|
const replyThreadTs = resolveDeliveryThreadTs(params);
|
|
838
842
|
if (deliveryTracker.hasDelivered({
|
|
839
843
|
kind: params.kind,
|
|
@@ -1005,6 +1009,7 @@ async function dispatchPreparedSlackMessage(prepared) {
|
|
|
1005
1009
|
...replyPipeline,
|
|
1006
1010
|
humanDelay: resolveHumanDelayConfig(cfg, route.agentId),
|
|
1007
1011
|
deliver: async (payload, info) => {
|
|
1012
|
+
if (payload.isReasoning === true) return;
|
|
1008
1013
|
if (useStreaming) {
|
|
1009
1014
|
await deliverWithStreaming({
|
|
1010
1015
|
payload,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as listSlackAccountIds, r as mergeSlackAccountConfig } from "./accounts-
|
|
2
|
-
import { r as normalizeSlackWebhookPath, t as handleSlackHttpRequest } from "./registry-
|
|
1
|
+
import { n as listSlackAccountIds, r as mergeSlackAccountConfig } from "./accounts-BnLQ3fe2.js";
|
|
2
|
+
import { r as normalizeSlackWebhookPath, t as handleSlackHttpRequest } from "./registry-bbjH7IHX.js";
|
|
3
3
|
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
|
|
4
4
|
//#region extensions/slack/src/http/plugin-routes.ts
|
|
5
5
|
function registerSlackPluginHttpRoutes(api) {
|