@openclaw/feishu 2026.11.5 → 2026.11.10-beta.1
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-DhnIp0Kd.mjs → app-registration-CBgQSu2L.mjs} +1 -2
- package/dist/.setup/async-WkOXCAZ1.mjs +32 -0
- package/dist/.setup/{channel-TBw3rO3z.mjs → channel-mDZxm2Gc.mjs} +125 -128
- package/dist/.setup/{channel.runtime-uAj58l3V.mjs → channel.runtime-DCooVws1.mjs} +10 -14
- package/dist/.setup/{chat-g8dTUdIb.mjs → chat-XINRHAOR.mjs} +3 -4
- package/dist/.setup/{client-DqGMyzOi.mjs → client-BAiJnY41.mjs} +4 -7
- package/dist/.setup/{conversation-id-BLsHZ7pf.mjs → conversation-id-N6q3vKm-.mjs} +2 -4
- package/dist/.setup/{doctor-contract-CPh2u5-o.mjs → doctor-contract-ItAh0keT.mjs} +10 -20
- package/dist/.setup/{message-action-contract-DMVMY_ng.mjs → message-action-contract-BZK6bpAl.mjs} +1 -2
- package/dist/.setup/{monitor-CqBu27Nc.mjs → monitor-DIBB2_Y_.mjs} +7 -10
- package/dist/.setup/{monitor.account-B6_SNuhx.mjs → monitor.account-B_qIOniw.mjs} +375 -296
- package/dist/.setup/{probe-CbNVGjv_.mjs → probe-DMOl26H9.mjs} +11 -41
- package/dist/.setup/{reply-delivery-result-BjOCvaPo.mjs → reply-delivery-result-Dcan9Dz_.mjs} +211 -150
- package/dist/.setup/{runtime-C5JxBWZp.mjs → runtime-6V3uDMw5.mjs} +1 -2
- package/dist/.setup/runtime-setter-api-DSLLnejl.mjs +2 -0
- package/dist/.setup/{secret-contract-Do6HTIFT.mjs → secret-contract-BAucuP6O.mjs} +1 -2
- package/dist/.setup/{secret-contract-api-LwCXK5Qg.mjs → secret-contract-api-DR5mIHhJ.mjs} +1 -1
- package/dist/.setup/{security-audit-b86aSgH2.mjs → security-audit-CYRW0D76.mjs} +1 -2
- package/dist/.setup/{session-conversation-CM3UgYZY.mjs → session-conversation-DLgXP0-H.mjs} +2 -3
- package/dist/.setup/{setup-api-DWvNh6et.mjs → setup-api-DR15GZv5.mjs} +1 -1
- package/dist/.setup/{subagent-hooks-DdiyEIi7.mjs → subagent-hooks-BRem84Mh.mjs} +4 -5
- package/dist/.setup/{thread-bindings-BxKmOara.mjs → thread-bindings-6eyktxK_.mjs} +1 -2
- package/dist/.source-module-urls/6579f1b33dd01f8f0aaea28311ed6df1a635f9ad1e6fa86dcba53bca46407e55.json +1 -1
- package/dist/api.js +28 -33
- package/dist/channel-entry.js +1 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/configured-state.js +1 -2
- package/dist/contract-api.js +3 -3
- package/dist/doctor-contract-api.js +1 -1
- package/dist/index.js +1 -2
- package/dist/runtime-api.js +2 -2
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/session-key-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +4 -5
- package/dist/subagent-hooks-api.js +2 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +41 -106
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +931 -278
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +948 -268
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +948 -268
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +925 -242
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +20 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +18 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +73 -20
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +145 -26
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +120 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +67 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosError.js +59 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosHeaders.js +17 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +13 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/createMultipartBody.js +37 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +183 -120
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/transitional.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/composeSignals.js +6 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/cookies.js +30 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +34 -7
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToJSON.js +25 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +8 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseHeaders.js +2 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +16 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +16 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +61 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +1 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/README.md +27 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/index.js +1 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/.editorconfig +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/CHANGELOG.md +87 -22
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/README.md +63 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/dist/qs.js +17 -17
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/eslint.config.mjs +61 -50
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/formats.js +7 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/parse.js +29 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/stringify.js +5 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/utils.js +28 -9
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/package.json +6 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/parse.js +335 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/stringify.js +222 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/utils.js +61 -3
- package/node_modules/typebox/build/format/date_time.d.mts +2 -1
- package/node_modules/typebox/build/format/date_time.mjs +12 -3
- package/node_modules/typebox/package.json +1 -1
- package/openclaw.plugin.json +5 -0
- package/package.json +5 -5
- package/dist/.setup/runtime-setter-api-BrQHE03y.mjs +0 -2
|
@@ -1,41 +1,10 @@
|
|
|
1
|
-
import { _ as __exportAll } from "./doctor-contract-
|
|
2
|
-
import { r as createFeishuClient } from "./client-
|
|
1
|
+
import { _ as __exportAll } from "./doctor-contract-ItAh0keT.mjs";
|
|
2
|
+
import { r as createFeishuClient } from "./client-BAiJnY41.mjs";
|
|
3
|
+
import { t as raceWithTimeoutAndAbort } from "./async-WkOXCAZ1.mjs";
|
|
3
4
|
import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
4
|
-
import { resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
|
|
5
|
-
import { racePromiseWithAbortSignal, raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
6
|
-
import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
|
|
7
5
|
import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
8
6
|
import { createHash } from "node:crypto";
|
|
9
|
-
|
|
10
|
-
const RACE_TIMEOUT = Symbol("race-timeout");
|
|
11
|
-
const RACE_ABORT = Symbol("race-abort");
|
|
12
|
-
async function raceWithTimeoutAndAbort(promise, options = {}) {
|
|
13
|
-
if (options.abortSignal?.aborted) return { status: "aborted" };
|
|
14
|
-
try {
|
|
15
|
-
const result = options.timeoutMs === void 0 ? await racePromiseWithAbortSignal(promise, options.abortSignal, () => RACE_ABORT) : await raceWithTimeout(promise, resolveTimerTimeoutMs(options.timeoutMs, 1), () => RACE_TIMEOUT, {
|
|
16
|
-
signal: options.abortSignal,
|
|
17
|
-
onAbort: () => RACE_ABORT
|
|
18
|
-
});
|
|
19
|
-
if (result === RACE_TIMEOUT) return { status: "timeout" };
|
|
20
|
-
if (result === RACE_ABORT) return { status: "aborted" };
|
|
21
|
-
return {
|
|
22
|
-
status: "resolved",
|
|
23
|
-
value: result
|
|
24
|
-
};
|
|
25
|
-
} catch (error) {
|
|
26
|
-
if (error === RACE_ABORT) return { status: "aborted" };
|
|
27
|
-
throw error;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function waitForAbortableDelay(delayMs, abortSignal) {
|
|
31
|
-
if (abortSignal?.aborted) return Promise.resolve(false);
|
|
32
|
-
return sleepWithAbort(resolveTimerTimeoutMs(delayMs, 1), abortSignal, { ref: false }).then(() => true, (error) => {
|
|
33
|
-
if (error instanceof Error && error.name === "AbortError") return false;
|
|
34
|
-
throw error;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region extensions/feishu/src/probe.ts
|
|
7
|
+
// extensions/feishu/src/probe.ts
|
|
39
8
|
var probe_exports = /* @__PURE__ */ __exportAll({
|
|
40
9
|
probeFeishu: () => probeFeishu,
|
|
41
10
|
registerFeishuAiAgent: () => registerFeishuAiAgent
|
|
@@ -62,7 +31,7 @@ function buildProbeCacheKey(creds) {
|
|
|
62
31
|
function setCachedProbeResult(cacheKey, result, ttlMs) {
|
|
63
32
|
probeCache.set(cacheKey, {
|
|
64
33
|
result,
|
|
65
|
-
expiresAt:
|
|
34
|
+
expiresAt: performance.now() + ttlMs
|
|
66
35
|
});
|
|
67
36
|
pruneMapToMaxSize(probeCache, MAX_PROBE_CACHE_SIZE);
|
|
68
37
|
return result;
|
|
@@ -86,11 +55,12 @@ async function probeFeishu(creds, options = {}) {
|
|
|
86
55
|
}, PROBE_ERROR_TTL_MS);
|
|
87
56
|
const cached = probeCache.get(cacheKey);
|
|
88
57
|
if (cached) {
|
|
89
|
-
if (cached.expiresAt >
|
|
58
|
+
if (cached.expiresAt > performance.now()) return cached.result;
|
|
90
59
|
probeCache.delete(cacheKey);
|
|
91
60
|
}
|
|
92
61
|
try {
|
|
93
|
-
const
|
|
62
|
+
const client = createFeishuClient(creds);
|
|
63
|
+
const responseResult = await raceWithTimeoutAndAbort(client.request({
|
|
94
64
|
method: "GET",
|
|
95
65
|
url: "/open-apis/bot/v3/info",
|
|
96
66
|
timeout: timeoutMs
|
|
@@ -137,7 +107,8 @@ async function registerFeishuAiAgent(creds, options = {}) {
|
|
|
137
107
|
reason: "aborted"
|
|
138
108
|
};
|
|
139
109
|
try {
|
|
140
|
-
const
|
|
110
|
+
const client = createFeishuClient(creds);
|
|
111
|
+
const responseResult = await raceWithTimeoutAndAbort(client.request({
|
|
141
112
|
method: "POST",
|
|
142
113
|
url: "/open-apis/bot/v1/openclaw_bot/ping",
|
|
143
114
|
data: { needBotInfo: true },
|
|
@@ -165,5 +136,4 @@ async function registerFeishuAiAgent(creds, options = {}) {
|
|
|
165
136
|
};
|
|
166
137
|
}
|
|
167
138
|
}
|
|
168
|
-
|
|
169
|
-
export { waitForAbortableDelay as a, raceWithTimeoutAndAbort as i, probe_exports as n, registerFeishuAiAgent as r, probeFeishu as t };
|
|
139
|
+
export { probe_exports as n, registerFeishuAiAgent as r, probeFeishu as t };
|