@openclaw/slack 2026.12.1-beta.2 → 2026.12.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{account-inspect-DgQgj0wk.mjs → account-inspect-Cvn3f95c.mjs} +1 -1
- package/dist/.setup/{accounts-EaPP0fFY.mjs → accounts-Dsl3wabY.mjs} +1 -1
- package/dist/.setup/{action-runtime-BvoZDGSu.mjs → action-runtime-zVonj7Ub.mjs} +6 -6
- package/dist/.setup/action-runtime.runtime-YBV3dNF-.mjs +1 -0
- package/dist/.setup/{actions-DAWAKRJ9.mjs → actions-0x2TsQH6.mjs} +4 -4
- package/dist/.setup/{approval-handler.runtime-BIePVIYr.mjs → approval-handler.runtime-BBYoz7El.mjs} +4 -4
- package/dist/.setup/{approval-message-updates-DocYhToX.mjs → approval-message-updates-BrGg-eis.mjs} +1 -1
- package/dist/.setup/{channel-paKIY8u4.mjs → channel-C6-Cp-Fz.mjs} +20 -20
- package/dist/.setup/{channel-type-Ku_QceM7.mjs → channel-type-BQCZqcgg.mjs} +3 -3
- package/dist/.setup/{channel.setup-BW3ogoi5.mjs → channel.setup-Dzt1s8XR.mjs} +3 -3
- package/dist/.setup/{directory-config-CGvKYg9F.mjs → directory-config-CWeEzb_Y.mjs} +2 -2
- package/dist/.setup/{directory-live-CJl5MPac.mjs → directory-live-ZhSt3r1s.mjs} +2 -2
- package/dist/.setup/{doctor-contract-BB2KJ9Ni.mjs → doctor-contract-CcNdculn.mjs} +27 -2
- package/dist/.setup/{fork-Cua6YBp0.mjs → fork-CiiHD26T.mjs} +3 -3
- package/dist/.setup/{literal-text-CXYRhsDp.mjs → literal-text-DXy7nGRR.mjs} +1 -1
- package/dist/.setup/{message-tool-api-CTxYxzPZ.mjs → message-tool-api-9DmIWHzY.mjs} +2 -2
- package/dist/.setup/{monitor-CkoNScT9.mjs → monitor-D5erEc0i.mjs} +218 -16
- package/dist/.setup/{outbound-adapter-lDejfL01.mjs → outbound-adapter-BmJCT3Qj.mjs} +5 -5
- package/dist/.setup/{pipeline.runtime-B4H65MB2.mjs → pipeline.runtime-C51V3mhq.mjs} +46 -234
- package/dist/.setup/{policy-B7_AZUCl.mjs → policy-l2IjJV43.mjs} +1 -1
- package/dist/.setup/{probe-ME1HsC0x.mjs → probe-DKu67cjh.mjs} +3 -3
- package/dist/.setup/{question-delivery-CFd8xhhn.mjs → question-delivery-BRQza6lN.mjs} +1 -1
- package/dist/.setup/{relay-source-D6xKiatj.mjs → relay-source-D2WA09C-.mjs} +2 -2
- package/dist/.setup/{replies-BLOhFQoK.mjs → replies-kwdtXt3e.mjs} +5 -5
- package/dist/.setup/{reply-blocks-BXQwrMaA.mjs → reply-blocks-Cf8e9Sau.mjs} +1 -1
- package/dist/.setup/{resolve-channels-CtkJuB1X.mjs → resolve-channels-BoQiIEny.mjs} +1 -1
- package/dist/.setup/{resolve-users-Bqf-wJF9.mjs → resolve-users-PpJHZiBC.mjs} +1 -1
- package/dist/.setup/{scopes-Dbu5pO1O.mjs → scopes-bvZxH5i3.mjs} +1 -1
- package/dist/.setup/{security-audit-C3hXCfDt.mjs → security-audit-DaQskAsg.mjs} +1 -1
- package/dist/.setup/{send-CNGjlL3z.mjs → send-DJpeS70B.mjs} +4 -4
- package/dist/.setup/setup-plugin-api-DPOqeRW0.mjs +2 -0
- package/dist/.setup/{setup-surface--ug5_htx.mjs → setup-surface-BqdskNYS.mjs} +5 -5
- package/dist/.setup/{slash-dispatch.runtime-ln-mu0Wb.mjs → slash-dispatch.runtime-CMQgSmJc.mjs} +1 -1
- package/dist/.source-module-urls/c5ffd0957b234c7c12090e7de4eca2482ef339b8561e078da55b734211b0ba58.json +1 -1
- package/dist/account-inspect-api.js +1 -1
- package/dist/api.js +12 -12
- package/dist/channel-plugin-api.js +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/doctor-contract-api.js +1 -1
- package/dist/message-tool-api.js +1 -1
- package/dist/runtime-api.js +9 -9
- package/dist/security-contract-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/package.json +4 -4
- package/dist/.setup/action-runtime.runtime-BwRLINj-.mjs +0 -1
- package/dist/.setup/rolldown-runtime-nwUcYXjP.mjs +0 -27
- package/dist/.setup/setup-plugin-api-gni0-Cwn.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as hasSlackAccountCredentials } from "./account-configured-35y0-Hso.mjs";
|
|
2
|
-
import { _ as buildSlackAccountSurfaceFields, a as mergeSlackAccountConfig, o as resolveDefaultSlackAccountId } from "./accounts-
|
|
2
|
+
import { _ as buildSlackAccountSurfaceFields, a as mergeSlackAccountConfig, o as resolveDefaultSlackAccountId } from "./accounts-Dsl3wabY.mjs";
|
|
3
3
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
4
4
|
import { normalizeSecretInputString, resolveSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
5
5
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __exportAll } from "./doctor-contract-CcNdculn.mjs";
|
|
2
2
|
import { n as hasSlackAccountCredentialsFromConfig } from "./account-configured-35y0-Hso.mjs";
|
|
3
3
|
import { DEFAULT_ACCOUNT_ID, createAccountListHelpers, normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
4
4
|
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as parseSlackTarget, n as formatSlackTarget, o as resolveSlackChannelId } from "./target-parsing-DwYAP3ts.mjs";
|
|
2
2
|
import { t as slackContextTargetsMatch } from "./targets-eeOxA_b_.mjs";
|
|
3
|
-
import { J as parseSlackBlocksInput, Jt as getSlackInstallationTeamId, T as assertSlackDetachedTargetAllowed, an as resolveSlackThreadTsFromContext, d as hasPotentialSlackNamedPolicy, l as buildSlackChannelIdCandidates, qt as getSlackInstallationKind, rn as SLACK_PRIVATE_ACTION_DELIVERY_RESULT, rt as hasSlackNativeDataBlock } from "./probe-
|
|
3
|
+
import { J as parseSlackBlocksInput, Jt as getSlackInstallationTeamId, T as assertSlackDetachedTargetAllowed, an as resolveSlackThreadTsFromContext, d as hasPotentialSlackNamedPolicy, l as buildSlackChannelIdCandidates, qt as getSlackInstallationKind, rn as SLACK_PRIVATE_ACTION_DELIVERY_RESULT, rt as hasSlackNativeDataBlock } from "./probe-DKu67cjh.mjs";
|
|
4
4
|
import { t as SLACK_CONVERSATION_LIST_TYPES } from "./cursor-pages-DiOrzZtc.mjs";
|
|
5
|
-
import { n as resolveSlackChannelConfig, t as isSlackChannelAllowedByPolicy } from "./policy-
|
|
5
|
+
import { n as resolveSlackChannelConfig, t as isSlackChannelAllowedByPolicy } from "./policy-l2IjJV43.mjs";
|
|
6
6
|
import { t as mergeSlackSendResults } from "./send-results-Bm6V1ekL.mjs";
|
|
7
7
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
8
8
|
import { normalizeOptionalLowercaseString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -11,7 +11,7 @@ import { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
|
|
|
11
11
|
import { createActionGate, imageResultFromFile, jsonResult, readPositiveIntegerParam, readReactionParams, readStringParam, withNormalizedTimestamp } from "openclaw/plugin-sdk/channel-actions";
|
|
12
12
|
import { resolveOpenProviderRuntimeGroupPolicy } from "openclaw/plugin-sdk/runtime-group-policy";
|
|
13
13
|
// extensions/slack/src/action-read-policy.ts
|
|
14
|
-
const loadSlackAccountsRuntime$1 = createLazyRuntimeModule(() => import("./accounts-
|
|
14
|
+
const loadSlackAccountsRuntime$1 = createLazyRuntimeModule(() => import("./accounts-Dsl3wabY.mjs").then((n) => n.t));
|
|
15
15
|
function resolveSlackDmReadAllowed(account) {
|
|
16
16
|
const dmPolicy = account.config.dmPolicy ?? "pairing";
|
|
17
17
|
return account.config.dm?.enabled !== false && dmPolicy !== "disabled";
|
|
@@ -222,10 +222,10 @@ const SLACK_REACTION_RESULT_LIMIT = 100;
|
|
|
222
222
|
function readSlackResultLimit(params) {
|
|
223
223
|
return Math.min(readPositiveIntegerParam(params, "limit", { message: "limit must be a positive integer." }) ?? SLACK_REACTION_RESULT_LIMIT, SLACK_REACTION_RESULT_LIMIT);
|
|
224
224
|
}
|
|
225
|
-
const loadSlackActionsRuntime = createLazyRuntimeModule(() => import("./actions-
|
|
225
|
+
const loadSlackActionsRuntime = createLazyRuntimeModule(() => import("./actions-0x2TsQH6.mjs").then((n) => n.t));
|
|
226
226
|
const bindSlackAction = createLazyRuntimeMethodBinder(loadSlackActionsRuntime);
|
|
227
|
-
const loadSlackAccountsRuntime = createLazyRuntimeModule(() => import("./accounts-
|
|
228
|
-
const loadSlackChannelTypeRuntime = createLazyRuntimeModule(() => import("./channel-type-
|
|
227
|
+
const loadSlackAccountsRuntime = createLazyRuntimeModule(() => import("./accounts-Dsl3wabY.mjs").then((n) => n.t));
|
|
228
|
+
const loadSlackChannelTypeRuntime = createLazyRuntimeModule(() => import("./channel-type-BQCZqcgg.mjs").then((n) => n.t));
|
|
229
229
|
const bindSlackChannelType = createLazyRuntimeMethodBinder(loadSlackChannelTypeRuntime);
|
|
230
230
|
const slackActionRuntime = {
|
|
231
231
|
createSlackChannel: bindSlackAction((runtime) => runtime.createSlackChannel),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as handleSlackAction } from "./action-runtime-zVonj7Ub.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as resolveSlackBotToken, o as resolveDefaultSlackAccountId, s as resolveSlackAccount } from "./accounts-
|
|
1
|
+
import { i as __exportAll } from "./doctor-contract-CcNdculn.mjs";
|
|
2
|
+
import { g as resolveSlackBotToken, o as resolveDefaultSlackAccountId, s as resolveSlackAccount } from "./accounts-Dsl3wabY.mjs";
|
|
3
3
|
import { n as formatSlackTarget } from "./target-parsing-DwYAP3ts.mjs";
|
|
4
|
-
import { $ as buildSlackBlocksFallbackText, E as countSlackTextUtf8Bytes, O as truncateSlackTextByUtf8Bytes, Q as appendSlackNativeDataPlainTextFallback, T as assertSlackDetachedTargetAllowed, Tt as escapeSlackMrkdwn, Y as validateSlackBlocksArray, Z as appendSlackNativeDataFallbackText, et as buildSlackCompleteBlocksFallbackText, h as enrichSlackWebApiError, it as renderSlackBlockFallbackText, ot as stripSlackNativeDataBlocks, rn as SLACK_PRIVATE_ACTION_DELIVERY_RESULT, rt as hasSlackNativeDataBlock, vt as SLACK_EDIT_TEXT_MAX_BYTES, wt as normalizeSlackOutboundText } from "./probe-
|
|
4
|
+
import { $ as buildSlackBlocksFallbackText, E as countSlackTextUtf8Bytes, O as truncateSlackTextByUtf8Bytes, Q as appendSlackNativeDataPlainTextFallback, T as assertSlackDetachedTargetAllowed, Tt as escapeSlackMrkdwn, Y as validateSlackBlocksArray, Z as appendSlackNativeDataFallbackText, et as buildSlackCompleteBlocksFallbackText, h as enrichSlackWebApiError, it as renderSlackBlockFallbackText, ot as stripSlackNativeDataBlocks, rn as SLACK_PRIVATE_ACTION_DELIVERY_RESULT, rt as hasSlackNativeDataBlock, vt as SLACK_EDIT_TEXT_MAX_BYTES, wt as normalizeSlackOutboundText } from "./probe-DKu67cjh.mjs";
|
|
5
5
|
import { r as fetchSlackChannelListPage } from "./cursor-pages-DiOrzZtc.mjs";
|
|
6
6
|
import { c as getSlackWriteClient, o as createSlackWriteClient, t as createSlackLookupClient } from "./client-DQqLIemQ.mjs";
|
|
7
|
-
import { _ as isSlackInvalidBlocksError, h as buildSlackNativeDataDeliveryPlan, t as sendMessageSlack } from "./send-
|
|
7
|
+
import { _ as isSlackInvalidBlocksError, h as buildSlackNativeDataDeliveryPlan, t as sendMessageSlack } from "./send-DJpeS70B.mjs";
|
|
8
8
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
9
9
|
import { asOptionalObjectRecord, asOptionalRecord, isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, readNonBlankString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
10
10
|
import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
|
package/dist/.setup/{approval-handler.runtime-BIePVIYr.mjs → approval-handler.runtime-BBYoz7El.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as parseSlackTarget } from "./target-parsing-DwYAP3ts.mjs";
|
|
2
|
-
import { $t as normalizeSlackApproverId, D as truncateSlackText, Et as isSlackAnyNativeApprovalClientEnabled, O as truncateSlackTextByUtf8Bytes, Pt as shouldHandleSlackNativeApprovalRequest, W as SLACK_APPROVAL_HEADER_BLOCK_ID, i as setSlackSessionStatus, vt as SLACK_EDIT_TEXT_MAX_BYTES } from "./probe-
|
|
3
|
-
import { o as resolveSlackReplyBlocks } from "./reply-blocks-
|
|
2
|
+
import { $t as normalizeSlackApproverId, D as truncateSlackText, Et as isSlackAnyNativeApprovalClientEnabled, O as truncateSlackTextByUtf8Bytes, Pt as shouldHandleSlackNativeApprovalRequest, W as SLACK_APPROVAL_HEADER_BLOCK_ID, i as setSlackSessionStatus, vt as SLACK_EDIT_TEXT_MAX_BYTES } from "./probe-DKu67cjh.mjs";
|
|
3
|
+
import { o as resolveSlackReplyBlocks } from "./reply-blocks-Cf8e9Sau.mjs";
|
|
4
4
|
import { s as getSlackListenerWriteClient } from "./client-DQqLIemQ.mjs";
|
|
5
|
-
import { t as sendMessageSlack } from "./send-
|
|
6
|
-
import { n as runSlackApprovalMessageUpdate } from "./approval-message-updates-
|
|
5
|
+
import { t as sendMessageSlack } from "./send-DJpeS70B.mjs";
|
|
6
|
+
import { n as runSlackApprovalMessageUpdate } from "./approval-message-updates-BrGg-eis.mjs";
|
|
7
7
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
8
8
|
import { buildChannelApprovalNativeTargetKey } from "openclaw/plugin-sdk/approval-native-runtime";
|
|
9
9
|
import { buildApprovalPresentationFromActionDescriptors } from "openclaw/plugin-sdk/approval-reply-runtime";
|
package/dist/.setup/{approval-message-updates-DocYhToX.mjs → approval-message-updates-BrGg-eis.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as decodeSlackApprovalAction, I as isSlackApprovalActionId } from "./probe-
|
|
1
|
+
import { G as decodeSlackApprovalAction, I as isSlackApprovalActionId } from "./probe-DKu67cjh.mjs";
|
|
2
2
|
import { asOptionalRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
4
4
|
// extensions/slack/src/approval-message-updates.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import { n as normalizeCompatibilityConfig, r as runtime_doctor_migrations_exports, t as legacyConfigRules } from "./doctor-contract-CcNdculn.mjs";
|
|
1
2
|
import { r as isSlackPluginAccountConfigured } from "./account-configured-35y0-Hso.mjs";
|
|
2
|
-
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, d as resolveSlackMarkdownOptions, f as resolveSlackOperationToken, i as listSlackAccountIds, l as resolveSlackAccountDmPolicy, n as hasImplicitDefaultSlackAccount, o as resolveDefaultSlackAccountId, p as resolveSlackReplyToMode, s as resolveSlackAccount } from "./accounts-
|
|
3
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
3
|
+
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, d as resolveSlackMarkdownOptions, f as resolveSlackOperationToken, i as listSlackAccountIds, l as resolveSlackAccountDmPolicy, n as hasImplicitDefaultSlackAccount, o as resolveDefaultSlackAccountId, p as resolveSlackReplyToMode, s as resolveSlackAccount } from "./accounts-Dsl3wabY.mjs";
|
|
4
|
+
import { t as inspectSlackAccount } from "./account-inspect-Cvn3f95c.mjs";
|
|
4
5
|
import { a as parseSlackTarget, i as normalizeSlackMessagingTarget, n as formatSlackTarget, o as resolveSlackChannelId, r as looksLikeSlackTargetId, t as canonicalizeSlackApiTargetId } from "./target-parsing-DwYAP3ts.mjs";
|
|
5
6
|
import { t as slackContextTargetsMatch } from "./targets-eeOxA_b_.mjs";
|
|
6
|
-
import { At as resolveSessionSlackOriginTarget, Dt as isSlackPluginApprovalRequest, E as countSlackTextUtf8Bytes, Et as isSlackAnyNativeApprovalClientEnabled, Ft as shouldHandleSlackPluginViaForwardingSession, It as slackTargetsMatch, Lt as getSlackApprovalApproversForTeam, Mt as resolveSlackFallbackOriginTarget, Nt as resolveTurnSourceSlackOriginTarget, Ot as normalizeSlackForwardTarget, Pt as shouldHandleSlackNativeApprovalRequest, Qt as isSlackExecApprovalClientEnabled, Rt as isSlackPluginApprovalAuthorizedSender, S as resolveSlackConversationBindingRoute, T as assertSlackDetachedTargetAllowed, Xt as getSlackExecApprovalApprovers, Zt as isSlackExecApprovalAuthorizedSender, _t as renderSlackMessagePresentationFallbackText, c as slackIngressIdentity, en as resolveSlackExecApprovalTarget, f as resolveSlackGroupRequireMention, g as formatSlackError, i as setSlackSessionStatus, in as resolveSlackAutoThreadId, jt as resolveSlackApproverDmTargets, kt as normalizeSlackOriginTarget, mt as SLACK_PRESENTATION_CAPABILITIES, nn as resolvePluginApprovalSlackApprovers, p as resolveSlackGroupToolPolicy, qt as getSlackInstallationKind, s as normalizeSlackStableEntry, t as probeSlack, tn as shouldSuppressLocalSlackExecApprovalPrompt, v as qualifySlackConversationId, vt as SLACK_EDIT_TEXT_MAX_BYTES, w as slackConversationBindings, wt as normalizeSlackOutboundText, x as normalizeSlackRouteBindingConfig, xt as SLACK_TEXT_LIMIT, y as qualifySlackRoutePeerId, zt as resolveSlackApprovalTeamId } from "./probe-
|
|
7
|
+
import { At as resolveSessionSlackOriginTarget, Dt as isSlackPluginApprovalRequest, E as countSlackTextUtf8Bytes, Et as isSlackAnyNativeApprovalClientEnabled, Ft as shouldHandleSlackPluginViaForwardingSession, It as slackTargetsMatch, Lt as getSlackApprovalApproversForTeam, Mt as resolveSlackFallbackOriginTarget, Nt as resolveTurnSourceSlackOriginTarget, Ot as normalizeSlackForwardTarget, Pt as shouldHandleSlackNativeApprovalRequest, Qt as isSlackExecApprovalClientEnabled, Rt as isSlackPluginApprovalAuthorizedSender, S as resolveSlackConversationBindingRoute, T as assertSlackDetachedTargetAllowed, Xt as getSlackExecApprovalApprovers, Zt as isSlackExecApprovalAuthorizedSender, _t as renderSlackMessagePresentationFallbackText, c as slackIngressIdentity, en as resolveSlackExecApprovalTarget, f as resolveSlackGroupRequireMention, g as formatSlackError, i as setSlackSessionStatus, in as resolveSlackAutoThreadId, jt as resolveSlackApproverDmTargets, kt as normalizeSlackOriginTarget, mt as SLACK_PRESENTATION_CAPABILITIES, nn as resolvePluginApprovalSlackApprovers, p as resolveSlackGroupToolPolicy, qt as getSlackInstallationKind, s as normalizeSlackStableEntry, t as probeSlack, tn as shouldSuppressLocalSlackExecApprovalPrompt, v as qualifySlackConversationId, vt as SLACK_EDIT_TEXT_MAX_BYTES, w as slackConversationBindings, wt as normalizeSlackOutboundText, x as normalizeSlackRouteBindingConfig, xt as SLACK_TEXT_LIMIT, y as qualifySlackRoutePeerId, zt as resolveSlackApprovalTeamId } from "./probe-DKu67cjh.mjs";
|
|
7
8
|
import { n as resolveSlackReplyThreadTs, r as resolveSlackThreadTsValue, t as normalizeSlackThreadTsCandidate } from "./thread-ts-47Au2-Yn.mjs";
|
|
8
|
-
import { n as extractSlackToolSend, t as describeSlackMessageTool } from "./message-tool-api-
|
|
9
|
+
import { n as extractSlackToolSend, t as describeSlackMessageTool } from "./message-tool-api-9DmIWHzY.mjs";
|
|
9
10
|
import { n as collectSlackCursorPages } from "./cursor-pages-DiOrzZtc.mjs";
|
|
10
|
-
import { a as resolveSlackReplyBlockResolution, o as resolveSlackReplyBlocks, r as normalizeSlackReplyPayload, s as resolveSlackReplyDeliveryMessages } from "./reply-blocks-
|
|
11
|
+
import { a as resolveSlackReplyBlockResolution, o as resolveSlackReplyBlocks, r as normalizeSlackReplyPayload, s as resolveSlackReplyDeliveryMessages } from "./reply-blocks-Cf8e9Sau.mjs";
|
|
11
12
|
import { c as getSlackWriteClient, t as createSlackLookupClient } from "./client-DQqLIemQ.mjs";
|
|
12
|
-
import { n as resolveSlackChannelType, r as resolveSlackConversationInfo } from "./channel-type-
|
|
13
|
+
import { n as resolveSlackChannelType, r as resolveSlackConversationInfo } from "./channel-type-BQCZqcgg.mjs";
|
|
13
14
|
import { n as SLACK_CHANNEL_META } from "./channel-meta-C5vsCo3a.mjs";
|
|
14
|
-
import { i as SLACK_CHANNEL, r as slackBaseConfigAdapter, t as slackSetupPlugin } from "./channel.setup-
|
|
15
|
-
import { n as normalizeCompatibilityConfig, r as runtime_doctor_migrations_exports, t as legacyConfigRules } from "./doctor-contract-BB2KJ9Ni.mjs";
|
|
15
|
+
import { i as SLACK_CHANNEL, r as slackBaseConfigAdapter, t as slackSetupPlugin } from "./channel.setup-Dzt1s8XR.mjs";
|
|
16
16
|
import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-CqVqR7MP.mjs";
|
|
17
17
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
18
18
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -104,7 +104,7 @@ const baseSlackApprovalCapability = createApproverRestrictedNativeApprovalCapabi
|
|
|
104
104
|
],
|
|
105
105
|
isConfigured: isSlackAnyNativeApprovalClientEnabled,
|
|
106
106
|
shouldHandle: shouldHandleSlackNativeApprovalRequest,
|
|
107
|
-
load: async () => (await import("./approval-handler.runtime-
|
|
107
|
+
load: async () => (await import("./approval-handler.runtime-BBYoz7El.mjs")).slackApprovalNativeRuntime
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
110
|
const baseSlackNativeAdapter = baseSlackApprovalCapability.nativeAsync;
|
|
@@ -214,7 +214,7 @@ const SLACK_TOOL_DELIVERY_ACTIONS = /* @__PURE__ */ new Set([
|
|
|
214
214
|
"unpinMessage",
|
|
215
215
|
"uploadFile"
|
|
216
216
|
]);
|
|
217
|
-
const loadSlackActionRuntime = createLazyRuntimeModule(() => import("./action-runtime.runtime-
|
|
217
|
+
const loadSlackActionRuntime = createLazyRuntimeModule(() => import("./action-runtime.runtime-YBV3dNF-.mjs"));
|
|
218
218
|
function resolveSlackActionContext(ctx, toolContext) {
|
|
219
219
|
if (!toolContext && !ctx.mediaAccess && !ctx.mediaLocalRoots && !ctx.mediaReadFile && !ctx.conversationReadOrigin && !ctx.requesterAccountId && !ctx.requesterSenderId && !ctx.assertDirectAdapterHandoff) return;
|
|
220
220
|
return {
|
|
@@ -660,7 +660,7 @@ const collectSlackSecurityFindings = createConditionalWarningCollector.findings(
|
|
|
660
660
|
severity: "warn",
|
|
661
661
|
title: "Slack security warning"
|
|
662
662
|
});
|
|
663
|
-
const loadSlackSecurityAuditModule = createLazyRuntimeModule(() => import("./security-audit-
|
|
663
|
+
const loadSlackSecurityAuditModule = createLazyRuntimeModule(() => import("./security-audit-DaQskAsg.mjs").then((n) => n.n));
|
|
664
664
|
const slackSecurityAdapter = {
|
|
665
665
|
resolveDmPolicy: resolveSlackDmPolicy,
|
|
666
666
|
collectWarnings: collectSlackSecurityFindings,
|
|
@@ -890,16 +890,16 @@ function buildSlackThreadingToolContext(params) {
|
|
|
890
890
|
// extensions/slack/src/channel.ts
|
|
891
891
|
const loadExtensionSharedSdk = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/extension-shared"));
|
|
892
892
|
const loadTargetResolverRuntimeSdk = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/target-resolver-runtime"));
|
|
893
|
-
const loadSlackScopesModule = createLazyRuntimeModule(() => import("./scopes-
|
|
894
|
-
const loadSlackOutboundAdapterModule = createLazyRuntimeModule(() => import("./outbound-adapter-
|
|
893
|
+
const loadSlackScopesModule = createLazyRuntimeModule(() => import("./scopes-bvZxH5i3.mjs"));
|
|
894
|
+
const loadSlackOutboundAdapterModule = createLazyRuntimeModule(() => import("./outbound-adapter-BmJCT3Qj.mjs"));
|
|
895
895
|
const bindSlackOutbound = createLazyRuntimeMethodBinder(loadSlackOutboundAdapterModule);
|
|
896
|
-
const loadSlackDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-
|
|
897
|
-
const loadSlackResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-
|
|
898
|
-
const loadSlackResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-
|
|
899
|
-
const loadSlackSendRuntime = createLazyRuntimeModule(() => import("./send-
|
|
900
|
-
const loadSlackProbeModule = createLazyRuntimeModule(() => import("./probe-
|
|
901
|
-
const loadSlackMonitorModule = createLazyRuntimeModule(() => import("./monitor-
|
|
902
|
-
const loadSlackDirectoryLiveModule = createLazyRuntimeModule(() => import("./directory-live-
|
|
896
|
+
const loadSlackDirectoryConfigModule = createLazyRuntimeModule(() => import("./directory-config-CWeEzb_Y.mjs").then((n) => n.t));
|
|
897
|
+
const loadSlackResolveChannelsModule = createLazyRuntimeModule(() => import("./resolve-channels-BoQiIEny.mjs").then((n) => n.n));
|
|
898
|
+
const loadSlackResolveUsersModule = createLazyRuntimeModule(() => import("./resolve-users-PpJHZiBC.mjs").then((n) => n.n));
|
|
899
|
+
const loadSlackSendRuntime = createLazyRuntimeModule(() => import("./send-DJpeS70B.mjs").then((n) => n.n));
|
|
900
|
+
const loadSlackProbeModule = createLazyRuntimeModule(() => import("./probe-DKu67cjh.mjs").then((n) => n.n));
|
|
901
|
+
const loadSlackMonitorModule = createLazyRuntimeModule(() => import("./monitor-D5erEc0i.mjs").then((n) => n.t));
|
|
902
|
+
const loadSlackDirectoryLiveModule = createLazyRuntimeModule(() => import("./directory-live-ZhSt3r1s.mjs").then((n) => n.t));
|
|
903
903
|
async function setSlackHeartbeatThreadStatus(params) {
|
|
904
904
|
const threadTs = resolveSlackThreadTsValue({ threadId: params.threadId });
|
|
905
905
|
const target = parseSlackTarget(params.to, { defaultKind: "channel" });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as resolveSlackOperationToken, s as resolveSlackAccount } from "./accounts-
|
|
3
|
-
import { T as assertSlackDetachedTargetAllowed } from "./probe-
|
|
1
|
+
import { i as __exportAll } from "./doctor-contract-CcNdculn.mjs";
|
|
2
|
+
import { f as resolveSlackOperationToken, s as resolveSlackAccount } from "./accounts-Dsl3wabY.mjs";
|
|
3
|
+
import { T as assertSlackDetachedTargetAllowed } from "./probe-DKu67cjh.mjs";
|
|
4
4
|
import { a as createSlackWebClient, d as readLruMapEntry, i as createSlackTokenCacheKey, n as createSlackReadClient } from "./client-DQqLIemQ.mjs";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
6
6
|
import { normalizeStringEntriesLower } from "openclaw/plugin-sdk/string-normalization-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as isSlackSetupAccountConfigured } from "./account-configured-35y0-Hso.mjs";
|
|
2
|
-
import { i as listSlackAccountIds, o as resolveDefaultSlackAccountId, s as resolveSlackAccount, u as resolveSlackConfigAccessorAccount } from "./accounts-
|
|
3
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
2
|
+
import { i as listSlackAccountIds, o as resolveDefaultSlackAccountId, s as resolveSlackAccount, u as resolveSlackConfigAccessorAccount } from "./accounts-Dsl3wabY.mjs";
|
|
3
|
+
import { t as inspectSlackAccount } from "./account-inspect-Cvn3f95c.mjs";
|
|
4
4
|
import { t as DEFAULT_SLACK_SUGGESTED_PROMPTS } from "./channel-meta-C5vsCo3a.mjs";
|
|
5
5
|
import { t as SlackChannelConfigSchema } from "./config-schema-DO2u-jsa.mjs";
|
|
6
6
|
import { normalizeSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
@@ -547,7 +547,7 @@ const slackSetupPlugin = {
|
|
|
547
547
|
markdownCapable: true,
|
|
548
548
|
preferSessionLookupForAnnounceTarget: true
|
|
549
549
|
},
|
|
550
|
-
setupWizard: createSlackSetupWizardProxy(() => import("./setup-surface
|
|
550
|
+
setupWizard: createSlackSetupWizardProxy(() => import("./setup-surface-BqdskNYS.mjs")),
|
|
551
551
|
capabilities: {
|
|
552
552
|
chatTypes: [
|
|
553
553
|
"direct",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, o as resolveDefaultSlackAccountId } from "./accounts-
|
|
1
|
+
import { i as __exportAll } from "./doctor-contract-CcNdculn.mjs";
|
|
2
|
+
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, o as resolveDefaultSlackAccountId } from "./accounts-Dsl3wabY.mjs";
|
|
3
3
|
import { a as parseSlackTarget } from "./target-parsing-DwYAP3ts.mjs";
|
|
4
4
|
import "./targets-eeOxA_b_.mjs";
|
|
5
5
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as resolveSlackAccount } from "./accounts-
|
|
1
|
+
import { i as __exportAll } from "./doctor-contract-CcNdculn.mjs";
|
|
2
|
+
import { s as resolveSlackAccount } from "./accounts-Dsl3wabY.mjs";
|
|
3
3
|
import { n as collectSlackCursorPages, r as fetchSlackChannelListPage } from "./cursor-pages-DiOrzZtc.mjs";
|
|
4
4
|
import { t as createSlackLookupClient } from "./client-DQqLIemQ.mjs";
|
|
5
5
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "node:module";
|
|
2
2
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { getChannelStreamingConfigObject, resolveChannelStreamingNativeTransport } from "openclaw/plugin-sdk/channel-streaming-config";
|
|
4
|
+
// \0rolldown/runtime.js
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
4
29
|
// packages/normalization-core/src/record-coerce.ts
|
|
5
30
|
/** Type guard for non-array object records at browser-safe boundaries. */
|
|
6
31
|
function isRecord$1(value) {
|
|
@@ -325,4 +350,4 @@ function normalizeCompatibilityConfig({ cfg }) {
|
|
|
325
350
|
}
|
|
326
351
|
});
|
|
327
352
|
}
|
|
328
|
-
export { normalizeCompatibilityConfig as n, runtime_doctor_migrations_exports as r, legacyConfigRules as t };
|
|
353
|
+
export { __exportAll as i, normalizeCompatibilityConfig as n, runtime_doctor_migrations_exports as r, legacyConfigRules as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as resolveSlackOperationToken, s as resolveSlackAccount } from "./accounts-
|
|
1
|
+
import { f as resolveSlackOperationToken, s as resolveSlackAccount } from "./accounts-Dsl3wabY.mjs";
|
|
2
2
|
import { a as parseSlackTarget, t as canonicalizeSlackApiTargetId } from "./target-parsing-DwYAP3ts.mjs";
|
|
3
|
-
import { Kt as captureSlackWorkspaceInstallation } from "./probe-
|
|
3
|
+
import { Kt as captureSlackWorkspaceInstallation } from "./probe-DKu67cjh.mjs";
|
|
4
4
|
import { t as normalizeSlackThreadTsCandidate } from "./thread-ts-47Au2-Yn.mjs";
|
|
5
5
|
import { n as createSlackReadClient, o as createSlackWriteClient } from "./client-DQqLIemQ.mjs";
|
|
6
|
-
import { t as buildSlackLiteralText } from "./literal-text-
|
|
6
|
+
import { t as buildSlackLiteralText } from "./literal-text-DXy7nGRR.mjs";
|
|
7
7
|
import { n as getSlackRuntime } from "./runtime-C6HKn7Av.mjs";
|
|
8
8
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
9
9
|
import { getSessionBindingService } from "openclaw/plugin-sdk/session-binding-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Tt as escapeSlackMrkdwn, ht as SLACK_SECTION_TEXT_MAX } from "./probe-
|
|
1
|
+
import { Tt as escapeSlackMrkdwn, ht as SLACK_SECTION_TEXT_MAX } from "./probe-DKu67cjh.mjs";
|
|
2
2
|
import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
|
|
3
3
|
// extensions/slack/src/literal-text.ts
|
|
4
4
|
/** Native plain-text blocks plus a non-parsing accessibility fallback. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as listSlackAccountIds } from "./accounts-
|
|
2
|
-
import { t as inspectSlackAccount } from "./account-inspect-
|
|
1
|
+
import { i as listSlackAccountIds } from "./accounts-Dsl3wabY.mjs";
|
|
2
|
+
import { t as inspectSlackAccount } from "./account-inspect-Cvn3f95c.mjs";
|
|
3
3
|
import { r as resolveSlackThreadTsValue, t as normalizeSlackThreadTsCandidate } from "./thread-ts-47Au2-Yn.mjs";
|
|
4
4
|
import { t as SLACK_CONVERSATION_LIST_TYPES } from "./cursor-pages-DiOrzZtc.mjs";
|
|
5
5
|
import { createActionGate, stringEnum } from "openclaw/plugin-sdk/channel-actions";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, g as resolveSlackBotToken, h as resolveSlackAppToken, l as resolveSlackAccountDmPolicy, m as formatSlackBotTokenIdentityWarning, o as resolveDefaultSlackAccountId, p as resolveSlackReplyToMode, s as resolveSlackAccount } from "./accounts-
|
|
1
|
+
import { i as __exportAll } from "./doctor-contract-CcNdculn.mjs";
|
|
2
|
+
import { a as mergeSlackAccountConfig, c as resolveSlackAccountAllowFrom, g as resolveSlackBotToken, h as resolveSlackAppToken, l as resolveSlackAccountDmPolicy, m as formatSlackBotTokenIdentityWarning, o as resolveDefaultSlackAccountId, p as resolveSlackReplyToMode, s as resolveSlackAccount } from "./accounts-Dsl3wabY.mjs";
|
|
3
3
|
import { a as parseSlackTarget, n as formatSlackTarget } from "./target-parsing-DwYAP3ts.mjs";
|
|
4
|
-
import { Bt as allowListMatches, C as resolveSlackConversationBindingRouteAsync, D as truncateSlackText, Et as isSlackAnyNativeApprovalClientEnabled, G as decodeSlackApprovalAction, Ht as normalizeSlackSlug, I as isSlackApprovalActionId, L as isSlackCallbackActionId, Rt as isSlackPluginApprovalAuthorizedSender, Tt as escapeSlackMrkdwn, U as resolveSlackQuestionAction, Ut as resolveSlackAllowListMatch, V as decodeSlackQuestionAction, Vt as normalizeSlackAllowOwnerEntry, Wt as resolveSlackUserAllowListForTeam, Yt as registerSlackInstallationState, Zt as isSlackExecApprovalAuthorizedSender, b as resolveSlackAgentRoute, c as slackIngressIdentity, et as buildSlackCompleteBlocksFallbackText, g as formatSlackError, i as setSlackSessionStatus, l as buildSlackChannelIdCandidates, m as setSlackChannelPolicyBindings, o as createSlackIngressSubject, r as renameSlackSession, v as qualifySlackConversationId, x as normalizeSlackRouteBindingConfig, xt as SLACK_TEXT_LIMIT, y as qualifySlackRoutePeerId, z as isSlackQuestionActionId } from "./probe-
|
|
4
|
+
import { Bt as allowListMatches, C as resolveSlackConversationBindingRouteAsync, D as truncateSlackText, Et as isSlackAnyNativeApprovalClientEnabled, G as decodeSlackApprovalAction, Ht as normalizeSlackSlug, I as isSlackApprovalActionId, L as isSlackCallbackActionId, Rt as isSlackPluginApprovalAuthorizedSender, Tt as escapeSlackMrkdwn, U as resolveSlackQuestionAction, Ut as resolveSlackAllowListMatch, V as decodeSlackQuestionAction, Vt as normalizeSlackAllowOwnerEntry, Wt as resolveSlackUserAllowListForTeam, Yt as registerSlackInstallationState, Zt as isSlackExecApprovalAuthorizedSender, b as resolveSlackAgentRoute, c as slackIngressIdentity, et as buildSlackCompleteBlocksFallbackText, g as formatSlackError, i as setSlackSessionStatus, l as buildSlackChannelIdCandidates, m as setSlackChannelPolicyBindings, o as createSlackIngressSubject, r as renameSlackSession, v as qualifySlackConversationId, x as normalizeSlackRouteBindingConfig, xt as SLACK_TEXT_LIMIT, y as qualifySlackRoutePeerId, z as isSlackQuestionActionId } from "./probe-DKu67cjh.mjs";
|
|
5
5
|
import { n as collectSlackCursorPages } from "./cursor-pages-DiOrzZtc.mjs";
|
|
6
6
|
import { _ as resolveSlackMonitorDispatchers, a as createSlackWebClient, d as readLruMapEntry, f as writeLruMapEntry, g as resolveSlackLookupClientOptions, l as getOrCreateWeakOwnerMap, r as createSlackStartupAuthClient, s as getSlackListenerWriteClient, u as pruneExpiredMapEntries, v as resolveSlackWebClientOptions } from "./client-DQqLIemQ.mjs";
|
|
7
7
|
import { t as DEFAULT_SLACK_SUGGESTED_PROMPTS } from "./channel-meta-C5vsCo3a.mjs";
|
|
8
|
-
import { S as hasSlackMessageTableBlock, f as readSlackMessages, v as isGovSlackClient, y as saveRemoteMedia } from "./actions-
|
|
9
|
-
import { f as requireSlackPostMessageTimestamp, p as buildSlackMessageIdentityPayload, r as setSlackDefaultSendIdentity } from "./send-
|
|
8
|
+
import { C as hasSlackTableBlock, E as resolveSlackMessageText$1, S as hasSlackMessageTableBlock, T as resolveSlackBlocksText, f as readSlackMessages, v as isGovSlackClient, w as isSlackUnfurlAttachment, x as formatSlackFileReferenceList, y as saveRemoteMedia } from "./actions-0x2TsQH6.mjs";
|
|
9
|
+
import { f as requireSlackPostMessageTimestamp, p as buildSlackMessageIdentityPayload, r as setSlackDefaultSendIdentity } from "./send-DJpeS70B.mjs";
|
|
10
10
|
import { n as getSlackRuntime, t as getOptionalSlackRuntime } from "./runtime-C6HKn7Av.mjs";
|
|
11
11
|
import { t as normalizeSlackWebhookPath } from "./paths-CQZI_5WY.mjs";
|
|
12
|
-
import { n as resolveSlackChannelConfig, r as resolveSlackChannelLabel, t as isSlackChannelAllowedByPolicy } from "./policy-
|
|
13
|
-
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-
|
|
14
|
-
import { t as resolveSlackUserAllowlist } from "./resolve-users-
|
|
15
|
-
import { n as runSlackApprovalMessageUpdate, t as hasSlackApprovalControl } from "./approval-message-updates-
|
|
12
|
+
import { n as resolveSlackChannelConfig, r as resolveSlackChannelLabel, t as isSlackChannelAllowedByPolicy } from "./policy-l2IjJV43.mjs";
|
|
13
|
+
import { t as resolveSlackChannelAllowlist } from "./resolve-channels-BoQiIEny.mjs";
|
|
14
|
+
import { t as resolveSlackUserAllowlist } from "./resolve-users-PpJHZiBC.mjs";
|
|
15
|
+
import { n as runSlackApprovalMessageUpdate, t as hasSlackApprovalControl } from "./approval-message-updates-BrGg-eis.mjs";
|
|
16
16
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
17
17
|
import { normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
|
|
18
|
-
import { asNonArrayRecord, asOptionalObjectRecord, asOptionalRecord, isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries, normalizeUniqueTrimmedStringList } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
18
|
+
import { asNonArrayRecord, asOptionalObjectRecord, asOptionalRecord, isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries, normalizeUniqueTrimmedStringList, readNonBlankString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
19
19
|
import { normalizeAccountId as normalizeAccountId$1, normalizeMainKey, resolveAccountEntry, resolveAgentIdFromSessionKey, resolveAgentRoute, resolveThreadSessionKeys } from "openclaw/plugin-sdk/routing";
|
|
20
20
|
import { createChannelIngressError, createChannelIngressMonitor, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
|
|
21
21
|
import { createChannelPairingChallengeIssuer } from "openclaw/plugin-sdk/channel-pairing";
|
|
@@ -27,7 +27,7 @@ import { normalizeStringEntriesLower } from "openclaw/plugin-sdk/string-normaliz
|
|
|
27
27
|
import { addAllowlistUserEntriesFromConfigEntry, buildAllowlistResolutionSummary, formatAllowlistMatchMeta, mergeAllowlist, patchAllowlistUsersInConfigEntries, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
|
|
28
28
|
import { createStaleWhileRevalidateCache, pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
29
29
|
import { agentControlText } from "openclaw/plugin-sdk/interactive-runtime";
|
|
30
|
-
import { parseStrictFiniteNumber, resolvePromptHistoryLimit, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
30
|
+
import { asFiniteNumberInRange, parseStrictFiniteNumber, resolvePromptHistoryLimit, timestampMsToIsoString } from "openclaw/plugin-sdk/number-runtime";
|
|
31
31
|
import { parseExecApprovalCommandText } from "openclaw/plugin-sdk/approval-reply-runtime";
|
|
32
32
|
import { truncateUtf16Safe, withTimeout } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
33
33
|
import { WebAPIHTTPError, WebAPIPlatformError, WebAPIRateLimitedError, WebAPIRequestError, WebClient } from "@slack/web-api";
|
|
@@ -2942,7 +2942,7 @@ async function handleSlackApprovalInteraction(params) {
|
|
|
2942
2942
|
channelId,
|
|
2943
2943
|
messageTs
|
|
2944
2944
|
}, async () => {
|
|
2945
|
-
const { readSlackMessages } = await import("./actions-
|
|
2945
|
+
const { readSlackMessages } = await import("./actions-0x2TsQH6.mjs").then((n) => n.t);
|
|
2946
2946
|
const { messages } = await readSlackMessages(channelId, {
|
|
2947
2947
|
client: params.eventScope?.client ?? params.ctx.app.client,
|
|
2948
2948
|
messageId: messageTs,
|
|
@@ -3757,6 +3757,197 @@ function noteSlackDraftConversationMessage(conversation) {
|
|
|
3757
3757
|
if (isLaterSlackMessage(conversation.messageTs, draft.messageTs)) draft.onInterveningMessage();
|
|
3758
3758
|
}
|
|
3759
3759
|
}
|
|
3760
|
+
// extensions/slack/src/monitor/message-handler/timestamp.ts
|
|
3761
|
+
const SLACK_TIMESTAMP_RE = /^\d+(?:\.\d+)?$/;
|
|
3762
|
+
const MAX_SAFE_SLACK_TIMESTAMP_SECONDS = Number.MAX_SAFE_INTEGER / 1e3;
|
|
3763
|
+
function resolveSlackTimestampMs(ts) {
|
|
3764
|
+
const trimmed = ts?.trim();
|
|
3765
|
+
if (!trimmed || !SLACK_TIMESTAMP_RE.test(trimmed)) return;
|
|
3766
|
+
const seconds = asFiniteNumberInRange(parseStrictFiniteNumber(trimmed), {
|
|
3767
|
+
min: 0,
|
|
3768
|
+
max: MAX_SAFE_SLACK_TIMESTAMP_SECONDS
|
|
3769
|
+
});
|
|
3770
|
+
return seconds === void 0 ? void 0 : Math.round(seconds * 1e3);
|
|
3771
|
+
}
|
|
3772
|
+
// extensions/slack/src/monitor/thread.ts
|
|
3773
|
+
const threadStarterCache = createStaleWhileRevalidateCache({
|
|
3774
|
+
maxEntries: 2e3,
|
|
3775
|
+
maxPending: Number.POSITIVE_INFINITY,
|
|
3776
|
+
ttlMs: 216e5,
|
|
3777
|
+
cacheable: (starter) => starter !== null
|
|
3778
|
+
});
|
|
3779
|
+
function formatSlackFilePlaceholder(files) {
|
|
3780
|
+
return `[attached: ${formatSlackFileReferenceList(files)}]`;
|
|
3781
|
+
}
|
|
3782
|
+
function pushUniqueText(parts, value, options = {}) {
|
|
3783
|
+
const text = options.preserveWhitespace ? readNonBlankString(value) : normalizeOptionalString(value);
|
|
3784
|
+
if (text && !parts.includes(text)) parts.push(text);
|
|
3785
|
+
}
|
|
3786
|
+
function resolveSlackAttachmentFallbackText(attachments) {
|
|
3787
|
+
if (!Array.isArray(attachments) || attachments.length === 0) return;
|
|
3788
|
+
const parts = [];
|
|
3789
|
+
for (const attachment of attachments) {
|
|
3790
|
+
const excludeTableBlocks = isSlackUnfurlAttachment(attachment);
|
|
3791
|
+
const fallbackBlocks = (blocks) => excludeTableBlocks ? blocks?.filter((block) => !hasSlackTableBlock([block])) : blocks;
|
|
3792
|
+
pushUniqueText(parts, attachment.pretext);
|
|
3793
|
+
pushUniqueText(parts, attachment.title);
|
|
3794
|
+
pushUniqueText(parts, attachment.text);
|
|
3795
|
+
if (!(hasSlackTableBlock(attachment.blocks) && normalizeOptionalString(attachment.fallback) === "[no preview available]")) pushUniqueText(parts, attachment.fallback);
|
|
3796
|
+
for (const field of attachment.fields ?? []) {
|
|
3797
|
+
pushUniqueText(parts, field.title);
|
|
3798
|
+
pushUniqueText(parts, field.value);
|
|
3799
|
+
}
|
|
3800
|
+
pushUniqueText(parts, resolveSlackBlocksText(fallbackBlocks(attachment.blocks))?.text, { preserveWhitespace: true });
|
|
3801
|
+
pushUniqueText(parts, resolveSlackBlocksText(fallbackBlocks(attachment.message_blocks))?.text, { preserveWhitespace: true });
|
|
3802
|
+
}
|
|
3803
|
+
return parts.length > 0 ? parts.join("\n") : void 0;
|
|
3804
|
+
}
|
|
3805
|
+
function resolveSlackMessageText(message) {
|
|
3806
|
+
const messageText = normalizeOptionalString(message.text) ?? resolveSlackAttachmentFallbackText(message.attachments) ?? (message.attachments?.some((attachment) => attachment.is_share === true && (normalizeOptionalString(attachment.image_url) || attachment.files?.length)) ? "[Slack media attachment]" : void 0);
|
|
3807
|
+
return resolveSlackMessageText$1({
|
|
3808
|
+
...message,
|
|
3809
|
+
text: messageText
|
|
3810
|
+
}, { preserveMessageTextWhitespace: true });
|
|
3811
|
+
}
|
|
3812
|
+
function threadStarterKey(params) {
|
|
3813
|
+
return JSON.stringify([
|
|
3814
|
+
params.workspaceScope.accountId,
|
|
3815
|
+
params.workspaceScope.teamId,
|
|
3816
|
+
params.channelId,
|
|
3817
|
+
params.threadTs
|
|
3818
|
+
]);
|
|
3819
|
+
}
|
|
3820
|
+
function invalidateSlackThreadStarter(params) {
|
|
3821
|
+
threadStarterCache.delete(threadStarterKey(params));
|
|
3822
|
+
}
|
|
3823
|
+
async function resolveSlackThreadStarter(params) {
|
|
3824
|
+
try {
|
|
3825
|
+
const { value } = await threadStarterCache.read(threadStarterKey(params), async () => {
|
|
3826
|
+
const message = (await params.client.conversations.replies({
|
|
3827
|
+
channel: params.channelId,
|
|
3828
|
+
ts: params.threadTs,
|
|
3829
|
+
limit: 1,
|
|
3830
|
+
inclusive: true
|
|
3831
|
+
}))?.messages?.[0];
|
|
3832
|
+
const text = message ? resolveSlackMessageText(message) : void 0;
|
|
3833
|
+
const files = message?.files?.length ? message.files : void 0;
|
|
3834
|
+
if (!message || !text && !files) return null;
|
|
3835
|
+
return {
|
|
3836
|
+
text: text || formatSlackFilePlaceholder(files),
|
|
3837
|
+
userId: message.user,
|
|
3838
|
+
botId: message.bot_id,
|
|
3839
|
+
ts: message.ts,
|
|
3840
|
+
files
|
|
3841
|
+
};
|
|
3842
|
+
}, {
|
|
3843
|
+
allowStale: false,
|
|
3844
|
+
refresh: params.refresh
|
|
3845
|
+
});
|
|
3846
|
+
return value;
|
|
3847
|
+
} catch (err) {
|
|
3848
|
+
logVerbose(`slack thread starter fetch failed channel=${params.channelId} ts=${params.threadTs}: ${formatErrorMessage(err)}`);
|
|
3849
|
+
return null;
|
|
3850
|
+
}
|
|
3851
|
+
}
|
|
3852
|
+
const SLACK_THREAD_HISTORY_MAX_PAGES = 3;
|
|
3853
|
+
function toSlackHistoryMessage(message, text) {
|
|
3854
|
+
return {
|
|
3855
|
+
text: text ?? formatSlackFilePlaceholder(message.files),
|
|
3856
|
+
userId: message.user,
|
|
3857
|
+
botId: message.bot_id,
|
|
3858
|
+
ts: message.ts,
|
|
3859
|
+
files: message.files,
|
|
3860
|
+
attachments: message.attachments
|
|
3861
|
+
};
|
|
3862
|
+
}
|
|
3863
|
+
/**
|
|
3864
|
+
* Fetches the most recent messages in a Slack thread (excluding the current message).
|
|
3865
|
+
* Used to populate thread context when a new thread session starts.
|
|
3866
|
+
*
|
|
3867
|
+
* Uses cursor pagination and keeps only the latest N retained messages when the full
|
|
3868
|
+
* thread fits in the bounded fetch window.
|
|
3869
|
+
*/
|
|
3870
|
+
async function resolveSlackThreadHistory(params) {
|
|
3871
|
+
const maxMessages = params.limit ?? 20;
|
|
3872
|
+
if (!Number.isFinite(maxMessages) || maxMessages <= 0) return [];
|
|
3873
|
+
const fetchLimit = 200;
|
|
3874
|
+
const retained = [];
|
|
3875
|
+
let cursor;
|
|
3876
|
+
let pagesFetched = 0;
|
|
3877
|
+
try {
|
|
3878
|
+
do {
|
|
3879
|
+
pagesFetched += 1;
|
|
3880
|
+
params.assertCurrent?.();
|
|
3881
|
+
const response = await params.client.conversations.replies({
|
|
3882
|
+
channel: params.channelId,
|
|
3883
|
+
ts: params.threadTs,
|
|
3884
|
+
limit: fetchLimit,
|
|
3885
|
+
inclusive: false,
|
|
3886
|
+
...params.currentMessageTs ? { latest: params.currentMessageTs } : {},
|
|
3887
|
+
...params.oldest ? { oldest: params.oldest } : {},
|
|
3888
|
+
...cursor ? { cursor } : {}
|
|
3889
|
+
});
|
|
3890
|
+
params.assertCurrent?.();
|
|
3891
|
+
for (const msg of response.messages ?? []) {
|
|
3892
|
+
const timestamp = resolveSlackTimestampMs(msg.ts);
|
|
3893
|
+
const text = resolveSlackMessageText(msg);
|
|
3894
|
+
if (!text && !msg.files?.length) continue;
|
|
3895
|
+
if (!msg.ts || msg.ts === params.currentMessageTs || params.currentMessageTs && timestamp !== void 0 && Number(msg.ts) >= Number(params.currentMessageTs) || params.oldest && (timestamp === void 0 || Number(msg.ts) <= Number(params.oldest)) || params.excludedMessageIds?.has(msg.ts)) continue;
|
|
3896
|
+
if (retained.some(([entry]) => entry.ts === msg.ts)) continue;
|
|
3897
|
+
retained.push([msg, text]);
|
|
3898
|
+
}
|
|
3899
|
+
if (retained.length > maxMessages) retained.splice(0, retained.length - maxMessages);
|
|
3900
|
+
cursor = normalizeOptionalString(response.response_metadata?.next_cursor);
|
|
3901
|
+
if (response.has_more && !cursor) {
|
|
3902
|
+
params.onOmission?.("Slack returned an incomplete thread page without a cursor");
|
|
3903
|
+
return [];
|
|
3904
|
+
}
|
|
3905
|
+
} while (cursor && pagesFetched < SLACK_THREAD_HISTORY_MAX_PAGES);
|
|
3906
|
+
if (cursor) {
|
|
3907
|
+
logVerbose(`slack thread history capped channel=${params.channelId} ts=${params.threadTs} pages=${SLACK_THREAD_HISTORY_MAX_PAGES}`);
|
|
3908
|
+
params.onOmission?.("Slack thread exceeds the three-page automatic history budget");
|
|
3909
|
+
return [];
|
|
3910
|
+
}
|
|
3911
|
+
return retained.map(([message, text]) => toSlackHistoryMessage(message, text));
|
|
3912
|
+
} catch (err) {
|
|
3913
|
+
params.assertCurrent?.();
|
|
3914
|
+
params.onOmission?.(formatErrorMessage(err));
|
|
3915
|
+
logVerbose(`slack thread history fetch failed channel=${params.channelId} ts=${params.threadTs}: ${formatErrorMessage(err)}`);
|
|
3916
|
+
return [];
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
/** Slack channel history is newest first, unlike chronological thread replies. */
|
|
3920
|
+
async function resolveSlackChannelHistory(params) {
|
|
3921
|
+
if (!Number.isFinite(params.limit) || params.limit <= 0) return [];
|
|
3922
|
+
const messages = [];
|
|
3923
|
+
const seen = /* @__PURE__ */ new Set();
|
|
3924
|
+
let cursor;
|
|
3925
|
+
let scanned = 0;
|
|
3926
|
+
const maxPages = Math.ceil(params.limit / 200);
|
|
3927
|
+
for (let page = 0; page < maxPages; page += 1) {
|
|
3928
|
+
params.assertCurrent?.();
|
|
3929
|
+
const response = await params.client.conversations.history({
|
|
3930
|
+
channel: params.channelId,
|
|
3931
|
+
latest: params.currentMessageTs,
|
|
3932
|
+
...params.oldest ? { oldest: params.oldest } : {},
|
|
3933
|
+
inclusive: false,
|
|
3934
|
+
limit: Math.min(200, params.limit - scanned),
|
|
3935
|
+
...cursor ? { cursor } : {}
|
|
3936
|
+
});
|
|
3937
|
+
params.assertCurrent?.();
|
|
3938
|
+
for (const message of response.messages ?? []) {
|
|
3939
|
+
scanned += 1;
|
|
3940
|
+
if (!message.ts || Number(message.ts) >= Number(params.currentMessageTs) || params.oldest && Number(message.ts) <= Number(params.oldest) || params.excludedMessageIds.has(message.ts) || seen.has(message.ts)) continue;
|
|
3941
|
+
seen.add(message.ts);
|
|
3942
|
+
const text = resolveSlackMessageText(message);
|
|
3943
|
+
if (!text && !message.files?.length) continue;
|
|
3944
|
+
messages.push(toSlackHistoryMessage(message, text));
|
|
3945
|
+
}
|
|
3946
|
+
cursor = response.response_metadata?.next_cursor?.trim() || void 0;
|
|
3947
|
+
if (!cursor || scanned >= params.limit) break;
|
|
3948
|
+
}
|
|
3949
|
+
return messages.slice(0, params.limit).reverse();
|
|
3950
|
+
}
|
|
3760
3951
|
// extensions/slack/src/threading.ts
|
|
3761
3952
|
function resolveSlackThreadContext(params) {
|
|
3762
3953
|
const incomingThreadTs = params.message.thread_ts;
|
|
@@ -3888,6 +4079,17 @@ function registerSlackMessageEvents(params) {
|
|
|
3888
4079
|
let assistantChangedInbound;
|
|
3889
4080
|
if (source === "message") {
|
|
3890
4081
|
ctx.rememberSlackChannelType(message.channel, message.channel_type, eventScope);
|
|
4082
|
+
if (event.type === "message" && event.subtype === "message_changed") {
|
|
4083
|
+
const editedTs = event.message?.ts ?? event.previous_message?.ts;
|
|
4084
|
+
if (editedTs) invalidateSlackThreadStarter({
|
|
4085
|
+
channelId: message.channel,
|
|
4086
|
+
threadTs: editedTs,
|
|
4087
|
+
workspaceScope: {
|
|
4088
|
+
accountId: ctx.accountId,
|
|
4089
|
+
teamId: eventScope?.teamId ?? ctx.teamId
|
|
4090
|
+
}
|
|
4091
|
+
});
|
|
4092
|
+
}
|
|
3891
4093
|
assistantChangedInbound = resolveAssistantMessageChangedInbound({
|
|
3892
4094
|
event: message,
|
|
3893
4095
|
ctx
|
|
@@ -4365,7 +4567,7 @@ const SLACK_COMMAND_ARG_BUTTON_VALUE_MAX = 2e3;
|
|
|
4365
4567
|
const SLACK_COMMAND_ARG_CONFIRM_TEXT_MAX = 300;
|
|
4366
4568
|
const SLACK_HEADER_TEXT_MAX = 150;
|
|
4367
4569
|
const SLACK_COMMAND_ARG_ACTION_BLOCKS_MAX = 47;
|
|
4368
|
-
const loadSlashDispatchRuntime = createLazyRuntimeModule(() => import("./slash-dispatch.runtime-
|
|
4570
|
+
const loadSlashDispatchRuntime = createLazyRuntimeModule(() => import("./slash-dispatch.runtime-CMQgSmJc.mjs"));
|
|
4369
4571
|
const loadPluginCommandRuntime = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/plugin-command-runtime"));
|
|
4370
4572
|
const slackExternalArgMenuStore = createSlackExternalArgMenuStore();
|
|
4371
4573
|
function buildSlackArgMenuConfirm(params) {
|
|
@@ -5621,7 +5823,7 @@ function createSlackThreadTsResolver(params) {
|
|
|
5621
5823
|
} };
|
|
5622
5824
|
}
|
|
5623
5825
|
// extensions/slack/src/monitor/message-handler.ts
|
|
5624
|
-
const loadSlackMessagePipeline = createLazyRuntimeModule(() => import("./pipeline.runtime-
|
|
5826
|
+
const loadSlackMessagePipeline = createLazyRuntimeModule(() => import("./pipeline.runtime-C51V3mhq.mjs"));
|
|
5625
5827
|
const RETRYABLE_FLUSH_MAX_ATTEMPTS = 3;
|
|
5626
5828
|
function shouldDebounceSlackMessage(message, cfg) {
|
|
5627
5829
|
const textForCommandDetection = stripSlackMentionsForCommandDetection(message.text ?? "");
|
|
@@ -6164,7 +6366,7 @@ function createSlackWorkspaceClientResolver(params) {
|
|
|
6164
6366
|
}
|
|
6165
6367
|
// extensions/slack/src/monitor/provider.ts
|
|
6166
6368
|
const getSlackBoltInterop = createLazyRuntimeSurface(() => import("@slack/bolt"), resolveSlackBoltInterop);
|
|
6167
|
-
const loadSlackRelaySource = createLazyRuntimeModule(() => import("./relay-source-
|
|
6369
|
+
const loadSlackRelaySource = createLazyRuntimeModule(() => import("./relay-source-D2WA09C-.mjs"));
|
|
6168
6370
|
function resolveSlackRuntimeIdentity(params) {
|
|
6169
6371
|
const botUserId = normalizeOptionalString(params.botUserId);
|
|
6170
6372
|
const botId = normalizeOptionalString(params.botId);
|
|
@@ -6644,4 +6846,4 @@ var monitor_exports = /* @__PURE__ */ __exportAll({
|
|
|
6644
6846
|
isSlackChannelAllowedByPolicy: () => isSlackChannelAllowedByPolicy,
|
|
6645
6847
|
monitorSlackProvider: () => monitorSlackProvider
|
|
6646
6848
|
});
|
|
6647
|
-
export {
|
|
6849
|
+
export { buildSlackAssistantThreadMetadata as A, discardSlackStreamPendingText as C, SLACK_SOCKET_RECONNECT_POLICY as D, stopSlackStream as E, stripSlackMentionsForCommandDetection as M, normalizeSlackChannelType as O, appendSlackStream as S, startSlackStream as T, authorizeSlackBotRoomMessage as _, createSlackResponseUrlBudget as a, SlackStreamMessageTooLongError as b, registerSlackSessionRun as c, resolveSlackThreadHistory as d, resolveSlackThreadStarter as f, requireSlackMessageEvent as g, parseSlackMessageEvent as h, SlackResponseAlreadyReportedError as i, readSlackAssistantThreadContext as j, resolveSlackChatType as k, resolveSlackThreadContext as l, trackSlackDraftMessage as m, monitorSlackProvider as n, authorizeSlackDirectMessage as o, resolveSlackTimestampMs as p, resolveSlackRoomContextHints as r, resolveSlackRoutingContext as s, monitor_exports as t, resolveSlackChannelHistory as u, resolveSlackCommandIngress as v, markSlackStreamFallbackDelivered as w, SlackStreamNotDeliveredError as x, resolveSlackEffectiveAllowFrom as y };
|