@openclaw/slack 2026.5.12 → 2026.5.14-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-D7AZNs8C.js → account-inspect-BJyQLSkN.js} +1 -1
- package/dist/account-inspect-api.js +1 -1
- package/dist/{accounts-ClAPP5ry.js → accounts-yk5K3wQU.js} +2 -1
- package/dist/accounts.runtime-BhbEu1ZK.js +2 -0
- package/dist/{action-runtime-e2UhRsNx.js → action-runtime-CyE2jfW-.js} +4 -4
- package/dist/action-runtime.runtime-DLhfKw4B.js +2 -0
- package/dist/{media-D1XCd1uP.js → actions-BibhOXpJ.js} +339 -23
- package/dist/{actions.runtime-CO3OaTLb.js → actions.runtime-B9XQG6X4.js} +1 -1
- package/dist/api.js +18 -18
- package/dist/{approval-handler.runtime-CmeRr9qA.js → approval-handler.runtime-BjzVRaXN.js} +3 -4
- package/dist/{blocks-render-BIDw-Pom.js → blocks-render-BAVfd6r0.js} +1 -1
- package/dist/{channel-DRjHBTDB.js → channel-Dh07mU_K.js} +24 -52
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.setup-Cayn7afd.js → channel.setup-CmG37S2W.js} +4 -4
- package/dist/{client-CPe4GmDR.js → client-C_IaJbi5.js} +20 -1
- package/dist/{config-schema-D9B5LB_L.js → config-schema-CNRousxw.js} +21 -1
- package/dist/contract-api.js +4 -4
- package/dist/{directory-config-B3JiHeB7.js → directory-config-CMvFiswf.js} +1 -1
- package/dist/directory-contract-api.js +1 -1
- package/dist/{directory-live-Bf16GwDh.js → directory-live-CZPzpQZF.js} +2 -2
- package/dist/{doctor-contract-KUjHnkQm.js → doctor-contract-B8QIWMs1.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-qAIfuBor.js → interactive-replies-BSg5hXhj.js} +1 -1
- package/dist/interactive-replies-api.js +1 -1
- package/dist/{message-tool-api-6lowf9zE.js → message-tool-api-C7gc7goF.js} +2 -2
- package/dist/message-tool-api.js +1 -1
- package/dist/{monitor-a97o17G6.js → monitor-DDE5AI2O.js} +3 -3
- package/dist/{outbound-adapter-B_5sEhCg.js → outbound-adapter-BluPNDNi.js} +4 -5
- package/dist/outbound-payload-test-api.js +1 -1
- package/dist/{outbound-payload.test-harness-CVCamg1x.js → outbound-payload.test-harness-BNxnP6MC.js} +2 -2
- package/dist/{pipeline.runtime-DT0hLnq2.js → pipeline.runtime-Dft2-QU4.js} +48 -22
- package/dist/{plugin-routes-DtTPmga1.js → plugin-routes-CRnfsTTX.js} +2 -2
- package/dist/{prepare-D3YqV8jB.js → prepare-D0tMg4dt.js} +9 -10
- package/dist/{prepare.test-helpers-DVcjRhfG.js → prepare.test-helpers-CU1qB54Q.js} +1 -1
- package/dist/{probe-3eZf1FjI.js → probe-FL4sUJsH.js} +2 -2
- package/dist/{provider-D7uAN3Fq.js → provider-C6WxaFFf.js} +69 -30
- package/dist/{replies-Xe_jMR6o.js → replies-D0QXXSPP.js} +4 -4
- package/dist/reply-blocks-BFaJ_ejG.js +134 -0
- package/dist/{resolve-channels-BRYqyNVJ.js → resolve-channels-B_eKaOkE.js} +2 -2
- package/dist/{resolve-users-Bd_SdP8j.js → resolve-users-BzBAJwvq.js} +2 -2
- package/dist/{room-context-0vovmZPU.js → room-context-Cd8jFpS-.js} +4 -2
- package/dist/{runtime-api-Dd1xIV5v.js → runtime-api-B5HGOzX3.js} +2 -2
- package/dist/runtime-api.js +13 -13
- package/dist/runtime-setter-api.js +1 -1
- package/dist/{scopes-CDevO8jg.js → scopes-Bvg_ZzqZ.js} +2 -2
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/{send-D_A9kL-C.js → send-Dg9zcyYT.js} +5 -6
- package/dist/send.runtime-CjjQ9StM.js +2 -0
- package/dist/send.runtime-E47jGN-2.js +2 -0
- package/dist/{setup-core-B9NetDkM.js → setup-core-WWQl-cE9.js} +2 -2
- package/dist/setup-plugin-api.js +1 -1
- package/dist/{setup-surface-D88QBVOW.js → setup-surface-BLoTgna4.js} +5 -5
- package/dist/{shared-D8U42xFL.js → shared-GoB-OuUq.js} +9 -9
- package/dist/{slash-dispatch.runtime-BJgT0jwV.js → slash-dispatch.runtime-Bz_OkRcR.js} +1 -1
- package/dist/test-api.js +7 -7
- package/dist/thread-ts-As_dcNbD.js +52 -0
- package/openclaw.plugin.json +116 -0
- package/package.json +9 -7
- package/dist/accounts.runtime-DDVcLJUI.js +0 -2
- package/dist/action-runtime.runtime-BFcqMbOm.js +0 -2
- package/dist/actions-CYLFK-Zy.js +0 -292
- package/dist/blocks-input-CwTFVImV.js +0 -29
- package/dist/channel-api-B_nZwosg.js +0 -20
- package/dist/exec-approvals-7xUNgLi9.js +0 -58
- package/dist/group-policy-CyLUK6My.js +0 -41
- package/dist/mrkdwn-Cax-eSfK.js +0 -6
- package/dist/reply-blocks-Z5l6_R6H.js +0 -14
- package/dist/send.runtime-BRE_ncCU.js +0 -2
- package/dist/send.runtime-_l76lUuL.js +0 -2
- package/dist/thread-ts-C2x7c5PP.js +0 -24
- /package/dist/{allow-list-BPnnlRPL.js → allow-list-nwXs_eCP.js} +0 -0
- /package/dist/{config-api-B_jq4NJW.js → config-api-CmgE_ORg.js} +0 -0
- /package/dist/{errors-BYFHR24f.js → errors-C_sW0Zgl.js} +0 -0
- /package/dist/{magic-string.es-BMaGRRZ1.js → magic-string.es-9lw4MGoF.js} +0 -0
- /package/dist/{registry-CeaoNfoP.js → registry-D2cWOLZV.js} +0 -0
- /package/dist/{resolve-allowlist-common-Bk3clYPK.js → resolve-allowlist-common-DLub2I2i.js} +0 -0
- /package/dist/{runtime-Bo-KHM-F.js → runtime-DQxkf7k2.js} +0 -0
- /package/dist/{secret-contract-Bo6lbSkh.js → secret-contract-0TL3L5Kb.js} +0 -0
- /package/dist/{security-audit-BtHGnD3d.js → security-audit-BJzADAw3.js} +0 -0
- /package/dist/{slash-commands.runtime-22kgyst2.js → slash-commands.runtime-bcDwsGnu.js} +0 -0
- /package/dist/{slash-plugin-commands.runtime-CF-n3MeP.js → slash-plugin-commands.runtime-DBHGUSj2.js} +0 -0
- /package/dist/{slash-skill-commands.runtime-BMs0VjTe.js → slash-skill-commands.runtime-rrY2hXvN.js} +0 -0
- /package/dist/{streaming-compat-RkZgTmQ2.js → streaming-compat-eu5Rj5gj.js} +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { i as resolveDefaultSlackAccountId, r as mergeSlackAccountConfig } from "./accounts-ClAPP5ry.js";
|
|
2
|
-
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
3
|
-
import { normalizeHyphenSlug } from "openclaw/plugin-sdk/string-normalization-runtime";
|
|
4
|
-
import { resolveToolsBySender } from "openclaw/plugin-sdk/channel-policy";
|
|
5
|
-
//#region extensions/slack/src/group-policy.ts
|
|
6
|
-
function resolveSlackChannelPolicyEntry(params) {
|
|
7
|
-
const accountId = normalizeAccountId(params.accountId ?? resolveDefaultSlackAccountId(params.cfg));
|
|
8
|
-
const channelMap = mergeSlackAccountConfig(params.cfg, accountId).channels ?? {};
|
|
9
|
-
if (Object.keys(channelMap).length === 0) return;
|
|
10
|
-
const channelId = params.groupId?.trim();
|
|
11
|
-
const channelName = params.groupChannel?.replace(/^#/, "");
|
|
12
|
-
const normalizedName = normalizeHyphenSlug(channelName);
|
|
13
|
-
const candidates = [
|
|
14
|
-
channelId ?? "",
|
|
15
|
-
channelName ? `#${channelName}` : "",
|
|
16
|
-
channelName ?? "",
|
|
17
|
-
normalizedName
|
|
18
|
-
].filter(Boolean);
|
|
19
|
-
for (const candidate of candidates) if (candidate && channelMap[candidate]) return channelMap[candidate];
|
|
20
|
-
return channelMap["*"];
|
|
21
|
-
}
|
|
22
|
-
function resolveSenderToolsEntry(entry, params) {
|
|
23
|
-
if (!entry) return;
|
|
24
|
-
return resolveToolsBySender({
|
|
25
|
-
toolsBySender: entry.toolsBySender,
|
|
26
|
-
senderId: params.senderId,
|
|
27
|
-
senderName: params.senderName,
|
|
28
|
-
senderUsername: params.senderUsername,
|
|
29
|
-
senderE164: params.senderE164
|
|
30
|
-
}) ?? entry.tools;
|
|
31
|
-
}
|
|
32
|
-
function resolveSlackGroupRequireMention(params) {
|
|
33
|
-
const resolved = resolveSlackChannelPolicyEntry(params);
|
|
34
|
-
if (typeof resolved?.requireMention === "boolean") return resolved.requireMention;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
function resolveSlackGroupToolPolicy(params) {
|
|
38
|
-
return resolveSenderToolsEntry(resolveSlackChannelPolicyEntry(params), params);
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { resolveSlackGroupToolPolicy as n, resolveSlackGroupRequireMention as t };
|
package/dist/mrkdwn-Cax-eSfK.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
//#region extensions/slack/src/monitor/mrkdwn.ts
|
|
2
|
-
function escapeSlackMrkdwn(value) {
|
|
3
|
-
return value.replaceAll("\\", "\\\\").replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replace(/([*_`~])/g, "\\$1");
|
|
4
|
-
}
|
|
5
|
-
//#endregion
|
|
6
|
-
export { escapeSlackMrkdwn as t };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { t as buildSlackInteractiveBlocks } from "./blocks-render-BIDw-Pom.js";
|
|
2
|
-
import { n as parseSlackBlocksInput } from "./blocks-input-CwTFVImV.js";
|
|
3
|
-
//#region extensions/slack/src/reply-blocks.ts
|
|
4
|
-
function resolveSlackReplyBlocks(payload) {
|
|
5
|
-
const slackData = payload.channelData?.slack;
|
|
6
|
-
const interactiveBlocks = buildSlackInteractiveBlocks(payload.interactive);
|
|
7
|
-
let channelBlocks = [];
|
|
8
|
-
if (slackData && typeof slackData === "object" && !Array.isArray(slackData)) channelBlocks = parseSlackBlocksInput(slackData.blocks) ?? [];
|
|
9
|
-
const blocks = [...channelBlocks, ...interactiveBlocks];
|
|
10
|
-
if (blocks.length > 50) throw new Error(`Slack blocks cannot exceed 50 items after interactive render`);
|
|
11
|
-
return blocks.length > 0 ? blocks : void 0;
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { resolveSlackReplyBlocks as t };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
|
-
//#region extensions/slack/src/truncate.ts
|
|
3
|
-
function truncateSlackText(value, max) {
|
|
4
|
-
const trimmed = value.trim();
|
|
5
|
-
if (trimmed.length <= max) return trimmed;
|
|
6
|
-
if (max <= 1) return trimmed.slice(0, max);
|
|
7
|
-
return `${trimmed.slice(0, max - 1)}…`;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region extensions/slack/src/limits.ts
|
|
11
|
-
const SLACK_TEXT_LIMIT = 8e3;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region extensions/slack/src/thread-ts.ts
|
|
14
|
-
const SLACK_THREAD_TS_PATTERN = /^\d+\.\d+$/;
|
|
15
|
-
function normalizeSlackThreadTsCandidate(value) {
|
|
16
|
-
if (typeof value !== "string") return;
|
|
17
|
-
const normalized = normalizeOptionalString(value);
|
|
18
|
-
return normalized && SLACK_THREAD_TS_PATTERN.test(normalized) ? normalized : void 0;
|
|
19
|
-
}
|
|
20
|
-
function resolveSlackThreadTsValue(params) {
|
|
21
|
-
return normalizeSlackThreadTsCandidate(params.replyToId) ?? normalizeSlackThreadTsCandidate(params.threadId);
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { truncateSlackText as i, resolveSlackThreadTsValue as n, SLACK_TEXT_LIMIT as r, normalizeSlackThreadTsCandidate as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{slash-skill-commands.runtime-BMs0VjTe.js → slash-skill-commands.runtime-rrY2hXvN.js}
RENAMED
|
File without changes
|
|
File without changes
|