@openclaw/feishu 2026.10.10 → 2026.11.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/.setup/{app-registration-d8dxhKp-.mjs → app-registration-CYU0G5Oo.mjs} +3 -2
- package/dist/.setup/{channel-dxkUGCgC.mjs → channel-D60cZ_Y_.mjs} +53 -34
- package/dist/.setup/{channel.runtime-DK9nv7tQ.mjs → channel.runtime-Cg4V7VC2.mjs} +14 -10
- package/dist/.setup/{chat-CfRBIQrw.mjs → chat-qj1pEIcO.mjs} +5 -3
- package/dist/.setup/{client-DlpvvLoz.mjs → client-BTiFlqqL.mjs} +7 -4
- package/dist/.setup/{conversation-id-i1ICr3ID.mjs → conversation-id-D00i9uy5.mjs} +4 -2
- package/dist/.setup/{doctor-contract-CWB6EycD.mjs → doctor-contract-BNXcJcWR.mjs} +20 -10
- package/dist/.setup/{json-response-BX9Htr9f.mjs → json-response-DXajw_FU.mjs} +2 -1
- package/dist/.setup/{message-action-contract-C9KL891-.mjs → message-action-contract-Bhxj8Zrf.mjs} +2 -1
- package/dist/.setup/{monitor-BJ0-Wu8d.mjs → monitor-BcnMie82.mjs} +12 -8
- package/dist/.setup/{monitor.account-DIvDEG0X.mjs → monitor.account-C_u1fZ5g.mjs} +143 -98
- package/dist/.setup/{probe-BiQj7eM4.mjs → probe-s0hiM44D.mjs} +6 -4
- package/dist/.setup/{reply-delivery-result-QS_FCE--.mjs → reply-delivery-result-DknmIzOB.mjs} +70 -37
- package/dist/.setup/{runtime-6V3uDMw5.mjs → runtime-C5JxBWZp.mjs} +2 -1
- package/dist/.setup/runtime-setter-api-CG-RC4_r.mjs +3 -0
- package/dist/.setup/{secret-contract-DbKGdEJP.mjs → secret-contract-DEyvsehF.mjs} +2 -1
- package/dist/.setup/secret-contract-api-DsHOG5s6.mjs +3 -0
- package/dist/.setup/{security-audit-CYRW0D76.mjs → security-audit-b86aSgH2.mjs} +2 -1
- package/dist/.setup/{session-conversation-CFw-zLLy.mjs → session-conversation-BSBNK5Mq.mjs} +3 -2
- package/dist/.setup/setup-api-Di55YmQ0.mjs +3 -0
- package/dist/.setup/{subagent-hooks-CA-gJ3Cu.mjs → subagent-hooks-CvVuM0O4.mjs} +5 -4
- package/dist/.setup/{thread-bindings-6eyktxK_.mjs → thread-bindings-BxKmOara.mjs} +2 -1
- package/dist/api.js +32 -20
- package/dist/channel-entry.js +2 -1
- package/dist/channel-plugin-api.js +2 -1
- package/dist/configured-state.js +2 -1
- package/dist/contract-api.js +3 -3
- package/dist/doctor-contract-api.js +2 -1
- package/dist/index.js +2 -1
- package/dist/runtime-api.js +1 -1
- package/dist/runtime-setter-api.js +2 -1
- package/dist/secret-contract-api.js +2 -1
- package/dist/security-contract-api.js +2 -1
- package/dist/session-binding-contract-api.js +2 -1
- package/dist/session-key-api.js +2 -1
- package/dist/setup-api.js +2 -1
- package/dist/setup-entry.js +5 -4
- package/dist/subagent-hooks-api.js +3 -2
- package/package.json +4 -4
- package/dist/.setup/runtime-setter-api-DSLLnejl.mjs +0 -2
- package/dist/.setup/secret-contract-api-DHseJ7sg.mjs +0 -2
- package/dist/.setup/setup-api-qH0YRx2x.mjs +0 -2
- package/dist/.source-module-urls/6579f1b33dd01f8f0aaea28311ed6df1a635f9ad1e6fa86dcba53bca46407e55.json +0 -1
package/dist/.setup/{reply-delivery-result-QS_FCE--.mjs → reply-delivery-result-DknmIzOB.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as normalizeFeishuExternalKey, d as listEnabledFeishuAccounts, f as listFeishuAccountIds, g as resolveFeishuRuntimeAccount, h as resolveFeishuAccount, m as resolveDefaultFeishuAccountId } from "./doctor-contract-
|
|
2
|
-
import { l as normalizeFeishuTarget, s as detectIdType, u as resolveReceiveIdType } from "./conversation-id-
|
|
3
|
-
import { t as getFeishuRuntime } from "./runtime-
|
|
4
|
-
import { c as withFeishuMessageDispatch, o as captureFeishuSendAuthority, r as createFeishuClient, s as runBeforeFeishuMessageDispatch } from "./client-
|
|
1
|
+
import { c as normalizeFeishuExternalKey, d as listEnabledFeishuAccounts, f as listFeishuAccountIds, g as resolveFeishuRuntimeAccount, h as resolveFeishuAccount, m as resolveDefaultFeishuAccountId } from "./doctor-contract-BNXcJcWR.mjs";
|
|
2
|
+
import { l as normalizeFeishuTarget, s as detectIdType, u as resolveReceiveIdType } from "./conversation-id-D00i9uy5.mjs";
|
|
3
|
+
import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.mjs";
|
|
4
|
+
import { c as withFeishuMessageDispatch, o as captureFeishuSendAuthority, r as createFeishuClient, s as runBeforeFeishuMessageDispatch } from "./client-BTiFlqqL.mjs";
|
|
5
5
|
import { normalizeAccountId, normalizeOptionalAccountId, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
|
|
6
6
|
import { compileAllowlist, resolveAllowlistMatchByCandidates } from "openclaw/plugin-sdk/allow-from";
|
|
7
7
|
import { ToolAuthorizationError } from "openclaw/plugin-sdk/channel-actions";
|
|
@@ -35,7 +35,7 @@ import { saveMediaStream } from "openclaw/plugin-sdk/media-store";
|
|
|
35
35
|
import { logVerbose } from "openclaw/plugin-sdk/runtime-env";
|
|
36
36
|
import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
37
37
|
import { escapeHtml, escapeRegExp, truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
38
|
-
|
|
38
|
+
//#region extensions/feishu/src/card-interaction.ts
|
|
39
39
|
const FEISHU_CARD_INTERACTION_VERSION = "ocf1";
|
|
40
40
|
function isInteractionKind(value) {
|
|
41
41
|
return value === "button" || value === "quick" || value === "meta";
|
|
@@ -114,7 +114,8 @@ function decodeFeishuCardAction(params) {
|
|
|
114
114
|
envelope: actionValue
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region extensions/feishu/src/chat-type.ts
|
|
118
119
|
function normalizeFeishuChatType(value) {
|
|
119
120
|
if (value === "group" || value === "topic_group") return "group";
|
|
120
121
|
if (value === "p2p") return "p2p";
|
|
@@ -125,7 +126,8 @@ function normalizeFeishuChatMode(value) {
|
|
|
125
126
|
function resolveFeishuChatType(chat) {
|
|
126
127
|
return normalizeFeishuChatMode(chat.chat_mode) ?? normalizeFeishuChatType(chat.chat_type);
|
|
127
128
|
}
|
|
128
|
-
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region extensions/feishu/src/policy.ts
|
|
129
131
|
const FEISHU_PROVIDER_PREFIX_RE = /^(feishu|lark):/i;
|
|
130
132
|
const FEISHU_TYPED_PREFIX_RE = /^(chat|group|channel|user|dm|open_id):/i;
|
|
131
133
|
const FEISHU_ID_KIND = "plugin:feishu-id";
|
|
@@ -287,7 +289,8 @@ function resolveFeishuReplyPolicy(params) {
|
|
|
287
289
|
})?.requireMention;
|
|
288
290
|
return { requireMention: typeof groupRequireMention === "boolean" ? groupRequireMention : typeof resolvedCfg.requireMention === "boolean" ? resolvedCfg.requireMention : params.groupPolicy !== "open" };
|
|
289
291
|
}
|
|
290
|
-
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region extensions/feishu/src/read-policy.ts
|
|
291
294
|
function isActionContext(ctx) {
|
|
292
295
|
return "toolContext" in ctx;
|
|
293
296
|
}
|
|
@@ -440,7 +443,8 @@ function canEnumerateAllFeishuGroups(cfg, account) {
|
|
|
440
443
|
const policy = resolveFeishuReadGroupPolicy(cfg, account);
|
|
441
444
|
return policy === "open" || policy === "allowlist" && compileAllowlist(normalizeFeishuAllowlist(account.config.groupAllowFrom)).wildcard;
|
|
442
445
|
}
|
|
443
|
-
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region extensions/feishu/src/markdown.ts
|
|
444
448
|
const FEISHU_POST_MAX_BYTES = 30720;
|
|
445
449
|
function shouldUseFeishuCard(text) {
|
|
446
450
|
return /```[\s\S]*?```/.test(text) || /\|.+\|[\r\n]+\|[-:| ]+\|/.test(text);
|
|
@@ -580,7 +584,8 @@ function chunkFeishuMarkdownByEnvelope(params) {
|
|
|
580
584
|
}
|
|
581
585
|
return output;
|
|
582
586
|
}
|
|
583
|
-
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region extensions/feishu/src/native-card.ts
|
|
584
589
|
const FEISHU_CARD_TEMPLATES = /* @__PURE__ */ new Set([
|
|
585
590
|
"blue",
|
|
586
591
|
"green",
|
|
@@ -711,7 +716,8 @@ function readNativeFeishuCardJson(text, options) {
|
|
|
711
716
|
return;
|
|
712
717
|
}
|
|
713
718
|
}
|
|
714
|
-
|
|
719
|
+
//#endregion
|
|
720
|
+
//#region extensions/feishu/src/comment-target.ts
|
|
715
721
|
const FEISHU_COMMENT_FILE_TYPES = [
|
|
716
722
|
"doc",
|
|
717
723
|
"docx",
|
|
@@ -740,7 +746,8 @@ function parseFeishuCommentTarget(raw) {
|
|
|
740
746
|
commentId
|
|
741
747
|
};
|
|
742
748
|
}
|
|
743
|
-
|
|
749
|
+
//#endregion
|
|
750
|
+
//#region extensions/feishu/src/send-rate-limit.ts
|
|
744
751
|
const FEISHU_SEND_RATE_LIMIT_CODES = /* @__PURE__ */ new Set([230020, 11232]);
|
|
745
752
|
function getFeishuSendRateLimitCode(error) {
|
|
746
753
|
if (!isRecord(error)) return;
|
|
@@ -753,7 +760,8 @@ function getFeishuSendRateLimitCodeFromResponse(response) {
|
|
|
753
760
|
const code = response.code;
|
|
754
761
|
return typeof code === "number" && FEISHU_SEND_RATE_LIMIT_CODES.has(code) ? code : void 0;
|
|
755
762
|
}
|
|
756
|
-
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region extensions/feishu/src/comment-shared.ts
|
|
757
765
|
var FeishuReplyCommentError = class extends Error {
|
|
758
766
|
constructor(params) {
|
|
759
767
|
super(params.message);
|
|
@@ -967,7 +975,8 @@ function extractReplyText(reply) {
|
|
|
967
975
|
if (!reply || !isRecord(reply.content)) return;
|
|
968
976
|
return parseCommentContentElements({ elements: Array.isArray(reply.content.elements) ? reply.content.elements : [] }).plainText;
|
|
969
977
|
}
|
|
970
|
-
|
|
978
|
+
//#endregion
|
|
979
|
+
//#region extensions/feishu/src/comment-reaction.ts
|
|
971
980
|
const COMMENT_TYPING_REACTION_TYPE = "Typing";
|
|
972
981
|
const COMMENT_REACTION_TIMEOUT_MS = 3e4;
|
|
973
982
|
const commentTypingReactionState = /* @__PURE__ */ new Map();
|
|
@@ -1097,11 +1106,13 @@ function createCommentTypingReactionLifecycle(params) {
|
|
|
1097
1106
|
}
|
|
1098
1107
|
};
|
|
1099
1108
|
}
|
|
1100
|
-
|
|
1109
|
+
//#endregion
|
|
1110
|
+
//#region extensions/feishu/src/api-response.ts
|
|
1101
1111
|
function assertFeishuApiSuccess(response, errorPrefix) {
|
|
1102
1112
|
if (response.code !== 0) throw new Error(errorPrefix === void 0 ? response.msg : `${errorPrefix}: ${response.msg || `code ${response.code}`}`);
|
|
1103
1113
|
}
|
|
1104
|
-
|
|
1114
|
+
//#endregion
|
|
1115
|
+
//#region extensions/feishu/src/drive-schema.ts
|
|
1105
1116
|
const FileType = Type.Union([
|
|
1106
1117
|
Type.Literal("doc"),
|
|
1107
1118
|
Type.Literal("docx"),
|
|
@@ -1189,7 +1200,8 @@ const FeishuDriveSchema = Type.Union([
|
|
|
1189
1200
|
content: Type.String({ description: "Reply text content" })
|
|
1190
1201
|
})
|
|
1191
1202
|
]);
|
|
1192
|
-
|
|
1203
|
+
//#endregion
|
|
1204
|
+
//#region extensions/feishu/src/tools-config.ts
|
|
1193
1205
|
const DEFAULT_TOOLS_CONFIG = {
|
|
1194
1206
|
doc: true,
|
|
1195
1207
|
chat: true,
|
|
@@ -1205,7 +1217,8 @@ function resolveToolsConfig(cfg) {
|
|
|
1205
1217
|
...cfg
|
|
1206
1218
|
};
|
|
1207
1219
|
}
|
|
1208
|
-
|
|
1220
|
+
//#endregion
|
|
1221
|
+
//#region extensions/feishu/src/tool-account.ts
|
|
1209
1222
|
function resolveImplicitToolAccountId(params) {
|
|
1210
1223
|
const explicitAccountId = normalizeOptionalString(params.executeParams?.accountId);
|
|
1211
1224
|
if (explicitAccountId) {
|
|
@@ -1277,7 +1290,8 @@ function resolveAnyEnabledFeishuToolsConfig(config) {
|
|
|
1277
1290
|
}
|
|
1278
1291
|
return merged;
|
|
1279
1292
|
}
|
|
1280
|
-
|
|
1293
|
+
//#endregion
|
|
1294
|
+
//#region extensions/feishu/src/tool-result.ts
|
|
1281
1295
|
function feishuExternalToolResult(details) {
|
|
1282
1296
|
return {
|
|
1283
1297
|
content: [{
|
|
@@ -1311,7 +1325,8 @@ function toolExecutionErrorResult(error) {
|
|
|
1311
1325
|
}
|
|
1312
1326
|
return feishuExternalToolResult({ error: message });
|
|
1313
1327
|
}
|
|
1314
|
-
|
|
1328
|
+
//#endregion
|
|
1329
|
+
//#region extensions/feishu/src/tool-registration.ts
|
|
1315
1330
|
function registerFeishuTool(api, tool) {
|
|
1316
1331
|
api.registerTool((ctx) => {
|
|
1317
1332
|
const cfg = ctx.runtimeConfig ?? ctx.config ?? api.config;
|
|
@@ -1336,7 +1351,8 @@ function registerFeishuTool(api, tool) {
|
|
|
1336
1351
|
...tool.workspaceAccess !== void 0 ? { workspaceAccess: tool.workspaceAccess } : {}
|
|
1337
1352
|
});
|
|
1338
1353
|
}
|
|
1339
|
-
|
|
1354
|
+
//#endregion
|
|
1355
|
+
//#region extensions/feishu/src/drive.ts
|
|
1340
1356
|
const FEISHU_DRIVE_REQUEST_TIMEOUT_MS = 3e4;
|
|
1341
1357
|
function requestDriveApi(params) {
|
|
1342
1358
|
return params.client.request({
|
|
@@ -1649,7 +1665,8 @@ function registerFeishuDriveTools(api) {
|
|
|
1649
1665
|
}
|
|
1650
1666
|
});
|
|
1651
1667
|
}
|
|
1652
|
-
|
|
1668
|
+
//#endregion
|
|
1669
|
+
//#region extensions/feishu/src/identity-header.ts
|
|
1653
1670
|
const emojiSegmenter = typeof Intl !== "undefined" && "Segmenter" in Intl ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null;
|
|
1654
1671
|
const keycapEmojiPattern = /^[0-9#*]\uFE0F?\u20E3$/u;
|
|
1655
1672
|
const emojiLikeSegmentPattern = /[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}]/u;
|
|
@@ -1671,7 +1688,8 @@ function resolveFeishuIdentityHeaderTitle(identity) {
|
|
|
1671
1688
|
const emoji = resolveFeishuIdentityEmoji(identity.emoji);
|
|
1672
1689
|
return (emoji ? `${emoji} ${name}` : name).trim();
|
|
1673
1690
|
}
|
|
1674
|
-
|
|
1691
|
+
//#endregion
|
|
1692
|
+
//#region extensions/feishu/src/media-fallback.ts
|
|
1675
1693
|
const FEISHU_MEDIA_UPLOAD_FAILURE_FALLBACK_TEXT = "Media upload failed. Please try again.";
|
|
1676
1694
|
async function resolvePublicFeishuMediaReference(value) {
|
|
1677
1695
|
const raw = value?.trim();
|
|
@@ -1691,7 +1709,8 @@ async function buildFeishuMediaFallbackText(params) {
|
|
|
1691
1709
|
const attachmentText = mediaUrl ? `${params.mediaLinkStyle === "plain" ? "" : "📎 "}${mediaUrl}` : FEISHU_MEDIA_UPLOAD_FAILURE_FALLBACK_TEXT;
|
|
1692
1710
|
return [params.text?.trim(), attachmentText].filter(Boolean).join("\n\n");
|
|
1693
1711
|
}
|
|
1694
|
-
|
|
1712
|
+
//#endregion
|
|
1713
|
+
//#region extensions/feishu/src/media-chunk-idle.ts
|
|
1695
1714
|
var FeishuInboundMediaTimeoutError = class extends Error {
|
|
1696
1715
|
constructor(chunkTimeoutMs) {
|
|
1697
1716
|
super(`Feishu media download stalled: no data received for ${chunkTimeoutMs}ms`);
|
|
@@ -1750,13 +1769,15 @@ async function saveMediaStreamWithIdleTimeout(stream, contentType, maxBytes, fil
|
|
|
1750
1769
|
throw error;
|
|
1751
1770
|
}
|
|
1752
1771
|
}
|
|
1753
|
-
|
|
1772
|
+
//#endregion
|
|
1773
|
+
//#region extensions/feishu/src/configured-client.ts
|
|
1754
1774
|
function createConfiguredFeishuClient(params) {
|
|
1755
1775
|
const account = resolveFeishuRuntimeAccount(params);
|
|
1756
1776
|
if (!account.configured) throw new Error(`Feishu account "${account.accountId}" not configured`);
|
|
1757
1777
|
return createFeishuClient(account);
|
|
1758
1778
|
}
|
|
1759
|
-
|
|
1779
|
+
//#endregion
|
|
1780
|
+
//#region extensions/feishu/src/send-target.ts
|
|
1760
1781
|
function resolveFeishuSendTarget(params) {
|
|
1761
1782
|
const target = params.to.trim();
|
|
1762
1783
|
const client = createConfiguredFeishuClient(params);
|
|
@@ -1769,7 +1790,8 @@ function resolveFeishuSendTarget(params) {
|
|
|
1769
1790
|
receiveIdType: resolveReceiveIdType(withoutProviderPrefix)
|
|
1770
1791
|
};
|
|
1771
1792
|
}
|
|
1772
|
-
|
|
1793
|
+
//#endregion
|
|
1794
|
+
//#region extensions/feishu/src/bot-sender-name.ts
|
|
1773
1795
|
const STALE_CONTACT_SCOPE = "contact:contact.base:readonly";
|
|
1774
1796
|
const FEISHU_USER_LOOKUP_UNAUTHORIZED_CODE = 41050;
|
|
1775
1797
|
const SENDER_NAME_TTL_MS = 6e5;
|
|
@@ -1854,7 +1876,8 @@ async function resolveFeishuSenderName(params) {
|
|
|
1854
1876
|
return {};
|
|
1855
1877
|
}
|
|
1856
1878
|
}
|
|
1857
|
-
|
|
1879
|
+
//#endregion
|
|
1880
|
+
//#region extensions/feishu/src/post.ts
|
|
1858
1881
|
const FALLBACK_POST_TEXT = "[Rich text message]";
|
|
1859
1882
|
const MARKDOWN_SPECIAL_CHARS = /([\\`*_{}[\]()#+\-!|>~])/g;
|
|
1860
1883
|
function toStringOrEmpty(value) {
|
|
@@ -2034,7 +2057,8 @@ function renderPostContent(parsed, options = {}) {
|
|
|
2034
2057
|
};
|
|
2035
2058
|
}
|
|
2036
2059
|
}
|
|
2037
|
-
|
|
2060
|
+
//#endregion
|
|
2061
|
+
//#region extensions/feishu/src/interactive-message-content.ts
|
|
2038
2062
|
const INTERACTIVE_CARD_FALLBACK_TEXT = "[Interactive Card]";
|
|
2039
2063
|
const POST_FALLBACK_TEXT = "[Rich text message]";
|
|
2040
2064
|
function normalizeCardTemplateVariable(value) {
|
|
@@ -2162,14 +2186,16 @@ function parseInteractiveCardContent(parsed) {
|
|
|
2162
2186
|
if (postText && postText !== POST_FALLBACK_TEXT) return postText;
|
|
2163
2187
|
return title || INTERACTIVE_CARD_FALLBACK_TEXT;
|
|
2164
2188
|
}
|
|
2165
|
-
|
|
2189
|
+
//#endregion
|
|
2190
|
+
//#region extensions/feishu/src/types.ts
|
|
2166
2191
|
function normalizeFeishuEventChatType(value) {
|
|
2167
2192
|
return value === "group" || value === "topic_group" || value === "private" || value === "p2p" ? value : void 0;
|
|
2168
2193
|
}
|
|
2169
2194
|
function isFeishuGroupChatType(chatType) {
|
|
2170
2195
|
return chatType === "group" || chatType === "topic_group";
|
|
2171
2196
|
}
|
|
2172
|
-
|
|
2197
|
+
//#endregion
|
|
2198
|
+
//#region extensions/feishu/src/mention.ts
|
|
2173
2199
|
function normalizeMentions(text, mentions, botStripId) {
|
|
2174
2200
|
if (!mentions || mentions.length === 0) return text;
|
|
2175
2201
|
const escapeName = (value) => value.replace(/</g, "<").replace(/>/g, ">");
|
|
@@ -2217,7 +2243,8 @@ function buildMentionedCardContent(targets, message) {
|
|
|
2217
2243
|
if (targets.length === 0) return message;
|
|
2218
2244
|
return `${targets.map((target) => `<at id=${target.openId}></at>`).join(" ")} ${message}`;
|
|
2219
2245
|
}
|
|
2220
|
-
|
|
2246
|
+
//#endregion
|
|
2247
|
+
//#region extensions/feishu/src/message-content.ts
|
|
2221
2248
|
function formatFeishuMediaContent(parsed, messageType) {
|
|
2222
2249
|
if (messageType === "sticker") {
|
|
2223
2250
|
const fileKey = normalizeFeishuExternalKey(parsed?.file_key);
|
|
@@ -2269,7 +2296,8 @@ async function parseMergeForwardContent(items, resolveSenderName) {
|
|
|
2269
2296
|
return rendered.length <= 2e4 ? rendered : `${truncateUtf16Safe(rendered, 19961).trimEnd()}
|
|
2270
2297
|
... [Merged-forward content truncated]`;
|
|
2271
2298
|
}
|
|
2272
|
-
|
|
2299
|
+
//#endregion
|
|
2300
|
+
//#region extensions/feishu/src/send-result.ts
|
|
2273
2301
|
function resolveFeishuReceiptKind(msgType) {
|
|
2274
2302
|
switch (msgType) {
|
|
2275
2303
|
case "audio": return "voice";
|
|
@@ -2325,7 +2353,8 @@ function toFeishuMessageSendResult(result, kind) {
|
|
|
2325
2353
|
receipt
|
|
2326
2354
|
};
|
|
2327
2355
|
}
|
|
2328
|
-
|
|
2356
|
+
//#endregion
|
|
2357
|
+
//#region extensions/feishu/src/send.ts
|
|
2329
2358
|
const WITHDRAWN_REPLY_ERROR_CODES = /* @__PURE__ */ new Set([230011, 231003]);
|
|
2330
2359
|
function shouldFallbackFromReplyTarget(response) {
|
|
2331
2360
|
if (response.code !== void 0 && WITHDRAWN_REPLY_ERROR_CODES.has(response.code)) return true;
|
|
@@ -2618,7 +2647,8 @@ async function sendStructuredCardFeishu(params) {
|
|
|
2618
2647
|
card: buildStructuredCard(params.text, params)
|
|
2619
2648
|
});
|
|
2620
2649
|
}
|
|
2621
|
-
|
|
2650
|
+
//#endregion
|
|
2651
|
+
//#region extensions/feishu/src/media.ts
|
|
2622
2652
|
const FEISHU_MEDIA_HTTP_TIMEOUT_MS = 12e4;
|
|
2623
2653
|
const FEISHU_MAX_FILE_UPLOAD_BYTES = 31457280;
|
|
2624
2654
|
const FEISHU_MAX_IMAGE_UPLOAD_BYTES = 10485760;
|
|
@@ -3037,7 +3067,8 @@ async function sendMediaFeishu(params) {
|
|
|
3037
3067
|
...voiceIntentDegradedToFile ? { voiceIntentDegradedToFile: true } : {}
|
|
3038
3068
|
};
|
|
3039
3069
|
}
|
|
3040
|
-
|
|
3070
|
+
//#endregion
|
|
3071
|
+
//#region extensions/feishu/src/presentation-card.ts
|
|
3041
3072
|
const RENDERED_FEISHU_CARD = Symbol("openclaw.renderedFeishuCard");
|
|
3042
3073
|
const FEISHU_PRESENTATION_FALLBACK_MARKER = "__openclawPresentationFallback";
|
|
3043
3074
|
const FEISHU_PRESENTATION_CAPABILITIES = {
|
|
@@ -3349,7 +3380,8 @@ async function renderFeishuReplyPayload(payload, ctx) {
|
|
|
3349
3380
|
card: readNativeFeishuCard(withoutInteractive)
|
|
3350
3381
|
};
|
|
3351
3382
|
}
|
|
3352
|
-
|
|
3383
|
+
//#endregion
|
|
3384
|
+
//#region extensions/feishu/src/reply-delivery-result.ts
|
|
3353
3385
|
const noVisibleFeishuReplyDelivery = { visibleReplySent: false };
|
|
3354
3386
|
function shouldSendNoVisibleReplyFallback(dispatchResult) {
|
|
3355
3387
|
const emptyEligibleDispatch = dispatchResult.noVisibleReplyFallbackEligible === true && dispatchResult.settledReceipt?.anyVisibleDelivered !== true;
|
|
@@ -3390,4 +3422,5 @@ function createFeishuPartialReplyDeliveryError(cause, result) {
|
|
|
3390
3422
|
visibleReplySent: true
|
|
3391
3423
|
});
|
|
3392
3424
|
}
|
|
3425
|
+
//#endregion
|
|
3393
3426
|
export { resolveFeishuToolAccount as $, sendMessageFeishu as A, resolveFeishuGroupConfig as At, parseInteractiveCardContent as B, sendStickerFeishu as C, isFeishuGroupReadAllowed as Ct, getMessageFeishu as D, hasExplicitFeishuGroupConfig as Dt, editMessageFeishu as E, resolveFeishuChatReadPreliminaryAuthorization as Et, isFeishuBroadcastMention as F, normalizeFeishuChatType as Ft, resolveFeishuIdentityEmoji as G, resolveFeishuSenderName as H, isMentionForwardRequest as I, resolveFeishuChatType as It, registerFeishuDriveTools as J, resolveFeishuIdentityHeaderTitle as K, normalizeMentions as L, FEISHU_CARD_INTERACTION_VERSION as Lt, toFeishuMessageSendResult as M, resolveFeishuGroupSenderActivationIngressAccess as Mt, formatFeishuMediaContent as N, resolveFeishuGroupToolPolicy as Nt, listFeishuThreadMessages as O, normalizeFeishuAllowEntry as Ot, extractMentionTargets as P, resolveFeishuReplyPolicy as Pt, createFeishuToolClient as Q, isFeishuGroupChatType as R, createFeishuCardInteractionEnvelope as Rt, sendMediaFeishu as S, canEnumerateAllFeishuPeers as St, chunkFeishuCardMarkdown as T, readFeishuChatInfoWithAuthorization as Tt, createConfiguredFeishuClient as U, parsePostContent as V, buildFeishuMediaFallbackText as W, feishuExternalToolResult as X, registerFeishuTool as Y, unknownToolActionResult as Z, renderFeishuPresentationPayload as _, shouldUseFeishuCard as _t, shouldSendNoVisibleReplyFallback as a, formatFeishuApiError as at, withinCardTableLimit as b, authorizeFeishuChatMemberRead as bt, buildFeishuPayloadCard as c, buildFeishuCommentTarget as ct, consumeFeishuPresentationFallbackMarker as d, readNativeFeishuCardJson as dt, assertFeishuApiSuccess as et, feishuCardWithinTableLimit as f, resolveFeishuCardTemplate as ft, renderFeishuPresentationFallbackText as g, parseFeishuMarkdown as gt, readNativeFeishuCard as h, materializeFeishuPostMarkdownSoftBreaks as ht, noVisibleFeishuReplyDelivery as i, extractReplyText as it, sendStructuredCardFeishu as j, resolveFeishuGroupConversationIngressAccess as jt, sendCardFeishu as k, resolveFeishuDmIngressAccess as kt, buildFeishuPresentationCard as l, normalizeCommentFileType as lt, markRenderedFeishuCard as m, chunkFeishuPostMarkdown as mt, createFeishuReplyDeliveryResult as n, createCommentTypingReactionLifecycle as nt, FEISHU_PRESENTATION_CAPABILITIES as o, parseCommentContentElements as ot, isFeishuCardWithinEnvelope as p, chunkFeishuMarkdown as pt, deliverCommentThreadText as q, mergeFeishuReplyDeliveryResults as r, encodeQuery as rt, assertFeishuCardWithinEnvelope as s, requestFeishuApi as st, createFeishuPartialReplyDeliveryError as t, cleanupAmbientCommentTypingReaction as tt, buildFeishuPresentationFallback as u, parseFeishuCommentTarget as ut, renderFeishuReplyPayload as v, visitFeishuMarkdown as vt, shouldSuppressFeishuTextForVoiceMedia as w, isFeishuGroupReadEnabled as wt, saveMessageResourceFeishu as x, canEnumerateAllFeishuGroups as xt, resolveFeishuRichReply as y, assertFeishuChatReadAllowed as yt, normalizeFeishuEventChatType as z, decodeFeishuCardAction as zt };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
|
|
2
|
+
//#region extensions/feishu/src/runtime.ts
|
|
3
3
|
const { setRuntime: setFeishuRuntime, getRuntime: getFeishuRuntime } = createPluginRuntimeStore({
|
|
4
4
|
pluginId: "feishu",
|
|
5
5
|
errorMessage: "Feishu runtime not initialized"
|
|
6
6
|
});
|
|
7
|
+
//#endregion
|
|
7
8
|
export { setFeishuRuntime as n, getFeishuRuntime as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
2
2
|
import { collectConditionalChannelFieldAssignments, createChannelSecretContract, hasConfiguredSecretInputValue, hasOwnProperty, normalizeSecretStringValue } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
|
|
3
|
-
|
|
3
|
+
//#region extensions/feishu/src/secret-contract.ts
|
|
4
4
|
const channelSecrets = createChannelSecretContract({
|
|
5
5
|
channelKey: "feishu",
|
|
6
6
|
account: [
|
|
@@ -43,4 +43,5 @@ const channelSecrets = createChannelSecretContract({
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
const { secretTargetRegistryEntries, collectRuntimeConfigAssignments } = channelSecrets;
|
|
46
|
+
//#endregion
|
|
46
47
|
export { collectRuntimeConfigAssignments as n, secretTargetRegistryEntries as r, channelSecrets as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asOptionalRecord, hasNonEmptyString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
2
|
import { hasConfiguredSecretInput } from "openclaw/plugin-sdk/secret-input";
|
|
3
|
-
|
|
3
|
+
//#region extensions/feishu/src/security-audit.ts
|
|
4
4
|
function isFeishuDocToolEnabled(cfg) {
|
|
5
5
|
const channels = asOptionalRecord(cfg.channels);
|
|
6
6
|
const feishu = asOptionalRecord(channels?.feishu);
|
|
@@ -30,4 +30,5 @@ function collectFeishuSecurityAuditFindings(params) {
|
|
|
30
30
|
remediation: "Disable channels.feishu.tools.doc when not needed, and restrict tool access for untrusted prompts."
|
|
31
31
|
}];
|
|
32
32
|
}
|
|
33
|
+
//#endregion
|
|
33
34
|
export { collectFeishuSecurityAuditFindings as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-
|
|
2
|
-
|
|
1
|
+
import { r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-D00i9uy5.mjs";
|
|
2
|
+
//#region extensions/feishu/src/session-conversation.ts
|
|
3
3
|
function resolveFeishuParentConversationCandidates(rawId) {
|
|
4
4
|
const parsed = parseFeishuConversationId({ conversationId: rawId });
|
|
5
5
|
if (!parsed) return [];
|
|
@@ -23,4 +23,5 @@ function resolveFeishuSessionConversation(params) {
|
|
|
23
23
|
parentConversationCandidates: resolveFeishuParentConversationCandidates(parsed.canonicalConversationId)
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
+
//#endregion
|
|
26
27
|
export { resolveFeishuSessionConversation as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __exportAll } from "./doctor-contract-
|
|
2
|
-
import { d as stripFeishuProviderPrefix, l as normalizeFeishuTarget, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-
|
|
3
|
-
import { n as getFeishuThreadBindingManager } from "./thread-bindings-
|
|
1
|
+
import { _ as __exportAll } from "./doctor-contract-BNXcJcWR.mjs";
|
|
2
|
+
import { d as stripFeishuProviderPrefix, l as normalizeFeishuTarget, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-D00i9uy5.mjs";
|
|
3
|
+
import { n as getFeishuThreadBindingManager } from "./thread-bindings-BxKmOara.mjs";
|
|
4
4
|
import { normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
5
|
-
|
|
5
|
+
//#region extensions/feishu/src/subagent-hooks.ts
|
|
6
6
|
var subagent_hooks_exports = /* @__PURE__ */ __exportAll({
|
|
7
7
|
handleFeishuSubagentDeliveryTarget: () => handleFeishuSubagentDeliveryTarget,
|
|
8
8
|
handleFeishuSubagentEnded: () => handleFeishuSubagentEnded
|
|
@@ -109,4 +109,5 @@ function handleFeishuSubagentDeliveryTarget(event) {
|
|
|
109
109
|
function handleFeishuSubagentEnded(event) {
|
|
110
110
|
getFeishuThreadBindingManager(event.accountId)?.unbindBySessionKey(event.targetSessionKey);
|
|
111
111
|
}
|
|
112
|
+
//#endregion
|
|
112
113
|
export { handleFeishuSubagentEnded as n, subagent_hooks_exports as r, handleFeishuSubagentDeliveryTarget as t };
|
|
@@ -6,7 +6,7 @@ import { isPluginOwnedSessionBindingRecord } from "openclaw/plugin-sdk/conversat
|
|
|
6
6
|
import { resolveThreadBindingIdleTimeoutMsForChannel, resolveThreadBindingMaxAgeMsForChannel, unregisterSessionBindingAdapter } from "openclaw/plugin-sdk/conversation-runtime";
|
|
7
7
|
import { resolveGlobalSingleton } from "openclaw/plugin-sdk/global-singleton";
|
|
8
8
|
import { createAccountScopedBindingAdapterV2, projectThreadBindingRecord, registerSessionBindingAdapterV2 } from "openclaw/plugin-sdk/thread-bindings-session-runtime";
|
|
9
|
-
|
|
9
|
+
//#region extensions/feishu/src/thread-bindings.ts
|
|
10
10
|
const FEISHU_THREAD_BINDINGS_STATE_KEY = Symbol.for("openclaw.feishuThreadBindingsState");
|
|
11
11
|
let state;
|
|
12
12
|
function getState() {
|
|
@@ -202,4 +202,5 @@ function createFeishuThreadBindingManager(params) {
|
|
|
202
202
|
function getFeishuThreadBindingManager(accountId) {
|
|
203
203
|
return getState().managersByAccountId.get(normalizeAccountId(accountId)) ?? null;
|
|
204
204
|
}
|
|
205
|
+
//#endregion
|
|
205
206
|
export { getFeishuThreadBindingManager as n, createFeishuThreadBindingManager as t };
|
package/dist/api.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, n as buildFeishuModelOverrideParentCandidates, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./.setup/conversation-id-
|
|
2
|
-
import { a as setFeishuNamedAccountEnabled, i as feishuSetupAdapter, n as feishuSetupWizard, r as runFeishuLogin, t as feishuPlugin } from "./.setup/channel-
|
|
3
|
-
import { $ as resolveFeishuToolAccount, J as registerFeishuDriveTools, Q as createFeishuToolClient, X as feishuExternalToolResult, Y as registerFeishuTool, Z as unknownToolActionResult, et as assertFeishuApiSuccess, gt as parseFeishuMarkdown, pt as chunkFeishuMarkdown, vt as visitFeishuMarkdown } from "./.setup/reply-delivery-result-
|
|
4
|
-
import { t as getFeishuRuntime } from "./.setup/runtime-
|
|
5
|
-
import { f as resolveConfiguredHttpTimeoutMs, r as createFeishuClient } from "./.setup/client-
|
|
6
|
-
import { n as getFeishuThreadBindingManager, t as createFeishuThreadBindingManager } from "./.setup/thread-bindings-
|
|
7
|
-
import { o as registerFeishuChatTools } from "./.setup/chat-
|
|
8
|
-
import { n as handleFeishuSubagentEnded, t as handleFeishuSubagentDeliveryTarget } from "./.setup/subagent-hooks-
|
|
1
|
+
import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, n as buildFeishuModelOverrideParentCandidates, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./.setup/conversation-id-D00i9uy5.mjs";
|
|
2
|
+
import { a as setFeishuNamedAccountEnabled, i as feishuSetupAdapter, n as feishuSetupWizard, r as runFeishuLogin, t as feishuPlugin } from "./.setup/channel-D60cZ_Y_.mjs";
|
|
3
|
+
import { $ as resolveFeishuToolAccount, J as registerFeishuDriveTools, Q as createFeishuToolClient, X as feishuExternalToolResult, Y as registerFeishuTool, Z as unknownToolActionResult, et as assertFeishuApiSuccess, gt as parseFeishuMarkdown, pt as chunkFeishuMarkdown, vt as visitFeishuMarkdown } from "./.setup/reply-delivery-result-DknmIzOB.mjs";
|
|
4
|
+
import { t as getFeishuRuntime } from "./.setup/runtime-C5JxBWZp.mjs";
|
|
5
|
+
import { f as resolveConfiguredHttpTimeoutMs, r as createFeishuClient } from "./.setup/client-BTiFlqqL.mjs";
|
|
6
|
+
import { n as getFeishuThreadBindingManager, t as createFeishuThreadBindingManager } from "./.setup/thread-bindings-BxKmOara.mjs";
|
|
7
|
+
import { o as registerFeishuChatTools } from "./.setup/chat-qj1pEIcO.mjs";
|
|
8
|
+
import { n as handleFeishuSubagentEnded, t as handleFeishuSubagentDeliveryTarget } from "./.setup/subagent-hooks-CvVuM0O4.mjs";
|
|
9
9
|
import { optionalPositiveIntegerSchema } from "openclaw/plugin-sdk/channel-actions";
|
|
10
10
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
11
11
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, readStringValue, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -16,7 +16,7 @@ import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
|
|
|
16
16
|
import { Type } from "typebox";
|
|
17
17
|
import { canonicalizeBase64, estimateBase64DecodedBytes, extensionForMime } from "openclaw/plugin-sdk/media-runtime";
|
|
18
18
|
import { createClackPrompter } from "openclaw/plugin-sdk/setup-runtime";
|
|
19
|
-
|
|
19
|
+
//#region extensions/feishu/src/doc-schema.ts
|
|
20
20
|
const tableCreationProperties = {
|
|
21
21
|
doc_token: Type.String({ description: "Document token" }),
|
|
22
22
|
parent_block_id: Type.Optional(Type.String({ description: "Parent block ID (default: document root)" })),
|
|
@@ -161,7 +161,8 @@ const FeishuDocSchema = Type.Union([
|
|
|
161
161
|
content: Type.String({ description: "Text with color markup. Tags: [red], [green], [blue], [orange], [yellow], [purple], [grey], [bold], [bg:yellow]. Example: \"Revenue [green]+15%[/green] YoY\"" })
|
|
162
162
|
})
|
|
163
163
|
]);
|
|
164
|
-
|
|
164
|
+
//#endregion
|
|
165
|
+
//#region extensions/feishu/src/docx-table-ops.ts
|
|
165
166
|
const MIN_COLUMN_WIDTH = 50;
|
|
166
167
|
const MAX_COLUMN_WIDTH = 400;
|
|
167
168
|
const DEFAULT_TABLE_WIDTH = 730;
|
|
@@ -295,7 +296,8 @@ async function patchTable(client, params) {
|
|
|
295
296
|
block: res.data?.block
|
|
296
297
|
};
|
|
297
298
|
}
|
|
298
|
-
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region extensions/feishu/src/docx-batch-insert.ts
|
|
299
301
|
const BATCH_SIZE = 1e3;
|
|
300
302
|
function toDescendantBlock(block) {
|
|
301
303
|
const child = readStringValue(block.children);
|
|
@@ -362,7 +364,8 @@ async function insertBlocksInBatches(client, docToken, blocks, firstLevelBlockId
|
|
|
362
364
|
}
|
|
363
365
|
return allChildren;
|
|
364
366
|
}
|
|
365
|
-
|
|
367
|
+
//#endregion
|
|
368
|
+
//#region extensions/feishu/src/docx-color-text.ts
|
|
366
369
|
const COLORS = {
|
|
367
370
|
red: 1,
|
|
368
371
|
orange: 2,
|
|
@@ -418,7 +421,8 @@ async function updateColorText(client, docToken, blockId, content) {
|
|
|
418
421
|
block: res.data?.block
|
|
419
422
|
};
|
|
420
423
|
}
|
|
421
|
-
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region extensions/feishu/src/docx-markdown.ts
|
|
422
426
|
const MAX_BREAK_PROBES = 32;
|
|
423
427
|
const STABLE_LINE_CONTAINER_TYPES = /* @__PURE__ */ new Set([
|
|
424
428
|
"list",
|
|
@@ -534,7 +538,8 @@ function splitDocxMarkdownBySize(markdown, maxChars) {
|
|
|
534
538
|
}
|
|
535
539
|
return [markdown];
|
|
536
540
|
}
|
|
537
|
-
|
|
541
|
+
//#endregion
|
|
542
|
+
//#region extensions/feishu/src/docx-upload-input.ts
|
|
538
543
|
function resolveDocToolLocalRoots(ctx) {
|
|
539
544
|
if (ctx.fsPolicy?.workspaceOnly !== true) return;
|
|
540
545
|
const workspaceDir = ctx.workspaceDir?.trim();
|
|
@@ -621,7 +626,8 @@ async function resolveDocxUploadInput(input) {
|
|
|
621
626
|
fileName: input.fileName ?? "image.png"
|
|
622
627
|
};
|
|
623
628
|
}
|
|
624
|
-
|
|
629
|
+
//#endregion
|
|
630
|
+
//#region extensions/feishu/src/docx.ts
|
|
625
631
|
const BLOCK_TYPE_NAMES = {
|
|
626
632
|
1: "Page",
|
|
627
633
|
2: "Text",
|
|
@@ -1211,7 +1217,8 @@ function registerFeishuDocTools(api) {
|
|
|
1211
1217
|
}
|
|
1212
1218
|
});
|
|
1213
1219
|
}
|
|
1214
|
-
|
|
1220
|
+
//#endregion
|
|
1221
|
+
//#region extensions/feishu/src/wiki-schema.ts
|
|
1215
1222
|
const WIKI_SPACE_ID_DESCRIPTION = "Knowledge space ID. Treat as an opaque string and keep it quoted; never pass numeric-looking IDs as numbers.";
|
|
1216
1223
|
const FeishuWikiSchema = Type.Union([
|
|
1217
1224
|
Type.Object({
|
|
@@ -1266,7 +1273,8 @@ const FeishuWikiSchema = Type.Union([
|
|
|
1266
1273
|
title: Type.String({ description: "New title" })
|
|
1267
1274
|
})
|
|
1268
1275
|
]);
|
|
1269
|
-
|
|
1276
|
+
//#endregion
|
|
1277
|
+
//#region extensions/feishu/src/wiki.ts
|
|
1270
1278
|
const WIKI_PAGE_SIZE = 50;
|
|
1271
1279
|
const WIKI_ACCESS_HINT = "To grant wiki access: Open wiki space → Settings → Members → Add the bot. See: https://open.feishu.cn/document/server-docs/docs/wiki-v2/wiki-qa#a40ad4ca";
|
|
1272
1280
|
function requireWikiSpaceId(value, fieldName) {
|
|
@@ -1429,7 +1437,8 @@ function registerFeishuWikiTools(api) {
|
|
|
1429
1437
|
}
|
|
1430
1438
|
});
|
|
1431
1439
|
}
|
|
1432
|
-
|
|
1440
|
+
//#endregion
|
|
1441
|
+
//#region extensions/feishu/src/perm-schema.ts
|
|
1433
1442
|
const TokenType = Type.Union([
|
|
1434
1443
|
Type.Literal("doc"),
|
|
1435
1444
|
Type.Literal("docx"),
|
|
@@ -1475,7 +1484,8 @@ const FeishuPermSchema = Type.Union([
|
|
|
1475
1484
|
member_id: Type.String({ description: "Member ID to remove" })
|
|
1476
1485
|
})
|
|
1477
1486
|
]);
|
|
1478
|
-
|
|
1487
|
+
//#endregion
|
|
1488
|
+
//#region extensions/feishu/src/perm.ts
|
|
1479
1489
|
function registerFeishuPermTools(api) {
|
|
1480
1490
|
registerFeishuTool(api, {
|
|
1481
1491
|
family: "perm",
|
|
@@ -1550,7 +1560,8 @@ function registerFeishuPermTools(api) {
|
|
|
1550
1560
|
}
|
|
1551
1561
|
});
|
|
1552
1562
|
}
|
|
1553
|
-
|
|
1563
|
+
//#endregion
|
|
1564
|
+
//#region extensions/feishu/src/bitable.ts
|
|
1554
1565
|
function ensureLarkSuccess(res, api) {
|
|
1555
1566
|
if (res.code !== 0) throw new Error(`[${api}] code=${res.code ?? -1} message=${res.msg ?? "unknown error"}`);
|
|
1556
1567
|
}
|
|
@@ -1966,4 +1977,5 @@ function registerFeishuBitableTools(api) {
|
|
|
1966
1977
|
}
|
|
1967
1978
|
});
|
|
1968
1979
|
}
|
|
1980
|
+
//#endregion
|
|
1969
1981
|
export { buildFeishuConversationId, buildFeishuModelOverrideParentCandidates, createClackPrompter, createFeishuThreadBindingManager, feishuPlugin, feishuSetupAdapter, feishuSetupWizard, getFeishuThreadBindingManager, handleFeishuSubagentDeliveryTarget, handleFeishuSubagentEnded, parseFeishuConversationId, parseFeishuDirectConversationId, parseFeishuTargetId, registerFeishuBitableTools, registerFeishuChatTools, registerFeishuDocTools, registerFeishuDriveTools, registerFeishuPermTools, registerFeishuWikiTools, runFeishuLogin, setFeishuNamedAccountEnabled };
|
package/dist/channel-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
|
|
2
|
+
//#region extensions/feishu/channel-entry.ts
|
|
3
3
|
var channel_entry_default = defineBundledChannelEntry({
|
|
4
4
|
id: "feishu",
|
|
5
5
|
name: "Feishu",
|
|
@@ -18,4 +18,5 @@ var channel_entry_default = defineBundledChannelEntry({
|
|
|
18
18
|
exportName: "setFeishuRuntime"
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
+
//#endregion
|
|
21
22
|
export { channel_entry_default as default };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { t as feishuPlugin } from "./.setup/channel-D60cZ_Y_.mjs";
|
|
2
|
+
export { feishuPlugin };
|
package/dist/configured-state.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_ACCOUNT_ID, hasConfiguredAccountValue, mergeAccountConfig } from "openclaw/plugin-sdk/account-core";
|
|
2
|
-
|
|
2
|
+
//#region extensions/feishu/configured-state.ts
|
|
3
3
|
/** Feishu owns configured account credentials; ambient variables alone are not an account. */
|
|
4
4
|
function hasConfiguredFeishuChannelState(params) {
|
|
5
5
|
const channel = params.cfg.channels?.feishu;
|
|
@@ -20,4 +20,5 @@ function hasConfiguredFeishuChannelState(params) {
|
|
|
20
20
|
return hasConfiguredAccountValue(appId) && hasConfiguredAccountValue(appSecret);
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
+
//#endregion
|
|
23
24
|
export { hasConfiguredFeishuChannelState };
|
package/dist/contract-api.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./.setup/conversation-id-
|
|
2
|
-
import { t as messageActionTargetAliases } from "./.setup/message-action-contract-
|
|
3
|
-
import { t as collectFeishuSecurityAuditFindings } from "./.setup/security-audit-
|
|
1
|
+
import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./.setup/conversation-id-D00i9uy5.mjs";
|
|
2
|
+
import { t as messageActionTargetAliases } from "./.setup/message-action-contract-Bhxj8Zrf.mjs";
|
|
3
|
+
import { t as collectFeishuSecurityAuditFindings } from "./.setup/security-audit-b86aSgH2.mjs";
|
|
4
4
|
export { buildFeishuConversationId, collectFeishuSecurityAuditFindings, messageActionTargetAliases, parseFeishuConversationId, parseFeishuDirectConversationId, parseFeishuTargetId };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { i as normalizeHistoricalWebhookConfig, n as legacyConfigRules, r as normalizeCompatibilityConfig, t as historicalWebhookListener } from "./.setup/doctor-contract-BNXcJcWR.mjs";
|
|
2
|
+
export { historicalWebhookListener, legacyConfigRules, normalizeCompatibilityConfig, normalizeHistoricalWebhookConfig };
|