@openclaw/feishu 2026.9.1-beta.1 → 2026.9.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/{accounts-RwSyseKr.js → accounts-cCMNFBKg.js} +1 -1
- package/dist/api.js +222 -284
- package/dist/{app-registration-BpfUzS9m.js → app-registration-BI99e_JI.js} +12 -9
- package/dist/{channel-Dpgf8wLD.js → channel-VytDDz_B.js} +244 -582
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-BIEERwaT.js → channel.runtime-CAD74kBO.js} +15 -19
- package/dist/{chat-C1nuW5UY.js → chat-DDhIcPQy.js} +13 -13
- package/dist/{client-DalLmpMf.js → client-DMbIL3UH.js} +3 -6
- package/dist/contract-api.js +2 -2
- package/dist/doctor-contract-api.js +1 -1
- package/dist/doctor-contract-w6FpMypv.js +465 -0
- package/dist/index.js +11 -42
- package/dist/{json-response-CheljwGr.js → json-response-DXajw_FU.js} +1 -1
- package/dist/{monitor.startup-D-gL82OO.js → monitor-rPJ_Mz4M.js} +62 -2
- package/dist/{monitor.account-DhhotI_Q.js → monitor.account-v0XIDyfs.js} +270 -299
- package/dist/{probe-CfhhR_0a.js → probe-D_SatdZl.js} +3 -3
- package/dist/{presentation-card-C8Z7Tgru.js → reply-delivery-result-CYaKkbUN.js} +334 -240
- package/dist/{security-audit-D6Fz2h6p.js → security-audit-DKfR4Cv3.js} +1 -1
- package/dist/{security-audit-shared-BgpY7AiJ.js → security-audit-shared-CK5rVR-1.js} +2 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/{subagent-hooks-KUi-7vUy.js → subagent-hooks-Buadpie_.js} +3 -6
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/{targets-BUjQ1TcA.js → targets-BTQCYRZQ.js} +4 -4
- package/dist/{thread-bindings-CptM_YU6.js → thread-bindings-BiL1wGqK.js} +20 -9
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/lib/permessage-deflate.js +3 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/package.json +1 -1
- package/node_modules/typebox/build/format/email.mjs +1 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +19 -1
- package/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/node_modules/typebox/build/system/memory/discard.mjs +2 -2
- package/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
- package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/node_modules/typebox/package.json +1 -1
- package/openclaw.plugin.json +45 -238
- package/package.json +6 -5
- package/dist/doctor-contract-bEQXIXyP.js +0 -158
- package/dist/monitor-BRg3sHH7.js +0 -62
package/dist/index.js
CHANGED
|
@@ -1,42 +1,6 @@
|
|
|
1
1
|
import { registerFeishuSubagentHooks } from "./subagent-hooks-api.js";
|
|
2
2
|
import { defineBundledChannelEntry, loadBundledEntryExportSync } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
3
3
|
//#region extensions/feishu/index.ts
|
|
4
|
-
function registerFeishuDocTools(api) {
|
|
5
|
-
loadBundledEntryExportSync(import.meta.url, {
|
|
6
|
-
specifier: "./api.js",
|
|
7
|
-
exportName: "registerFeishuDocTools"
|
|
8
|
-
})(api);
|
|
9
|
-
}
|
|
10
|
-
function registerFeishuChatTools(api) {
|
|
11
|
-
loadBundledEntryExportSync(import.meta.url, {
|
|
12
|
-
specifier: "./api.js",
|
|
13
|
-
exportName: "registerFeishuChatTools"
|
|
14
|
-
})(api);
|
|
15
|
-
}
|
|
16
|
-
function registerFeishuWikiTools(api) {
|
|
17
|
-
loadBundledEntryExportSync(import.meta.url, {
|
|
18
|
-
specifier: "./api.js",
|
|
19
|
-
exportName: "registerFeishuWikiTools"
|
|
20
|
-
})(api);
|
|
21
|
-
}
|
|
22
|
-
function registerFeishuDriveTools(api) {
|
|
23
|
-
loadBundledEntryExportSync(import.meta.url, {
|
|
24
|
-
specifier: "./api.js",
|
|
25
|
-
exportName: "registerFeishuDriveTools"
|
|
26
|
-
})(api);
|
|
27
|
-
}
|
|
28
|
-
function registerFeishuPermTools(api) {
|
|
29
|
-
loadBundledEntryExportSync(import.meta.url, {
|
|
30
|
-
specifier: "./api.js",
|
|
31
|
-
exportName: "registerFeishuPermTools"
|
|
32
|
-
})(api);
|
|
33
|
-
}
|
|
34
|
-
function registerFeishuBitableTools(api) {
|
|
35
|
-
loadBundledEntryExportSync(import.meta.url, {
|
|
36
|
-
specifier: "./api.js",
|
|
37
|
-
exportName: "registerFeishuBitableTools"
|
|
38
|
-
})(api);
|
|
39
|
-
}
|
|
40
4
|
var feishu_default = defineBundledChannelEntry({
|
|
41
5
|
id: "feishu",
|
|
42
6
|
name: "Feishu",
|
|
@@ -56,12 +20,17 @@ var feishu_default = defineBundledChannelEntry({
|
|
|
56
20
|
},
|
|
57
21
|
registerFull(api) {
|
|
58
22
|
registerFeishuSubagentHooks(api);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
23
|
+
for (const exportName of [
|
|
24
|
+
"registerFeishuDocTools",
|
|
25
|
+
"registerFeishuChatTools",
|
|
26
|
+
"registerFeishuWikiTools",
|
|
27
|
+
"registerFeishuDriveTools",
|
|
28
|
+
"registerFeishuPermTools",
|
|
29
|
+
"registerFeishuBitableTools"
|
|
30
|
+
]) loadBundledEntryExportSync(import.meta.url, {
|
|
31
|
+
specifier: "./api.js",
|
|
32
|
+
exportName
|
|
33
|
+
})(api);
|
|
65
34
|
}
|
|
66
35
|
});
|
|
67
36
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
|
|
2
2
|
//#region extensions/feishu/src/json-response.ts
|
|
3
3
|
/** Feishu control-plane JSON responses are tiny; 16 MiB leaves ample headroom. */
|
|
4
|
-
const FEISHU_JSON_MAX_BYTES =
|
|
4
|
+
const FEISHU_JSON_MAX_BYTES = 16777216;
|
|
5
5
|
async function readFeishuJsonResponse(response, label = "feishu.api") {
|
|
6
6
|
return readProviderJsonResponse(response, label, { maxBytes: FEISHU_JSON_MAX_BYTES });
|
|
7
7
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { r as listEnabledFeishuAccounts, s as resolveFeishuRuntimeAccount } from "./accounts-cCMNFBKg.js";
|
|
1
2
|
import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.js";
|
|
2
|
-
import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-
|
|
3
|
+
import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-D_SatdZl.js";
|
|
4
|
+
import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
|
|
3
5
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
4
6
|
import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
|
|
5
7
|
import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -140,4 +142,62 @@ async function fetchBotIdentityForMonitor(account, options = {}) {
|
|
|
140
142
|
});
|
|
141
143
|
}
|
|
142
144
|
//#endregion
|
|
143
|
-
|
|
145
|
+
//#region extensions/feishu/src/monitor.ts
|
|
146
|
+
const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-v0XIDyfs.js"));
|
|
147
|
+
async function monitorFeishuProvider(opts = {}) {
|
|
148
|
+
const cfg = opts.config;
|
|
149
|
+
if (!cfg) throw new Error("Config is required for Feishu monitor");
|
|
150
|
+
const log = opts.runtime?.log ?? console.log;
|
|
151
|
+
if (opts.accountId) {
|
|
152
|
+
const account = resolveFeishuRuntimeAccount({
|
|
153
|
+
cfg,
|
|
154
|
+
accountId: opts.accountId
|
|
155
|
+
}, { requireEventSecrets: true });
|
|
156
|
+
if (!account.enabled || !account.configured) throw new Error(`Feishu account "${opts.accountId}" not configured or disabled`);
|
|
157
|
+
const { monitorSingleAccount } = await loadMonitorAccountRuntime();
|
|
158
|
+
return monitorSingleAccount({
|
|
159
|
+
cfg,
|
|
160
|
+
account,
|
|
161
|
+
channelRuntime: opts.channelRuntime,
|
|
162
|
+
runtime: opts.runtime,
|
|
163
|
+
abortSignal: opts.abortSignal,
|
|
164
|
+
...opts.statusSink ? { statusSink: opts.statusSink } : {}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
const accounts = listEnabledFeishuAccounts(cfg);
|
|
168
|
+
if (accounts.length === 0) throw new Error("No enabled Feishu accounts configured");
|
|
169
|
+
log(`feishu: starting ${accounts.length} account(s): ${accounts.map((a) => a.accountId).join(", ")}`);
|
|
170
|
+
const { monitorSingleAccount } = await loadMonitorAccountRuntime();
|
|
171
|
+
const monitorPromises = [];
|
|
172
|
+
for (const account of accounts) {
|
|
173
|
+
if (opts.abortSignal?.aborted) {
|
|
174
|
+
log("feishu: abort signal received during startup preflight; stopping startup");
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
const { botOpenId, botName, source } = await fetchBotIdentityForMonitor(account, {
|
|
178
|
+
runtime: opts.runtime,
|
|
179
|
+
abortSignal: opts.abortSignal
|
|
180
|
+
});
|
|
181
|
+
if (opts.abortSignal?.aborted) {
|
|
182
|
+
log("feishu: abort signal received during startup preflight; stopping startup");
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
monitorPromises.push(monitorSingleAccount({
|
|
186
|
+
cfg,
|
|
187
|
+
account,
|
|
188
|
+
channelRuntime: opts.channelRuntime,
|
|
189
|
+
runtime: opts.runtime,
|
|
190
|
+
abortSignal: opts.abortSignal,
|
|
191
|
+
botOpenIdSource: {
|
|
192
|
+
kind: "prefetched",
|
|
193
|
+
botOpenId,
|
|
194
|
+
botName,
|
|
195
|
+
source
|
|
196
|
+
},
|
|
197
|
+
...opts.statusSink ? { statusSink: opts.statusSink } : {}
|
|
198
|
+
}));
|
|
199
|
+
}
|
|
200
|
+
await Promise.all(monitorPromises);
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
export { monitorFeishuProvider, fetchBotIdentityForMonitor as t };
|