@openclaw/feishu 2026.11.7 → 2026.11.10-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.
Files changed (100) hide show
  1. package/dist/.setup/{app-registration-DhnIp0Kd.mjs → app-registration-CBgQSu2L.mjs} +1 -2
  2. package/dist/.setup/async-WkOXCAZ1.mjs +32 -0
  3. package/dist/.setup/{channel-FEEIr2Sd.mjs → channel-Dig34MUl.mjs} +125 -128
  4. package/dist/.setup/{channel.runtime-D0haxEQL.mjs → channel.runtime-DtdoPtQ3.mjs} +10 -14
  5. package/dist/.setup/{chat-g8dTUdIb.mjs → chat-XINRHAOR.mjs} +3 -4
  6. package/dist/.setup/{client-DqGMyzOi.mjs → client-BAiJnY41.mjs} +4 -7
  7. package/dist/.setup/{conversation-id-BLsHZ7pf.mjs → conversation-id-N6q3vKm-.mjs} +2 -4
  8. package/dist/.setup/{doctor-contract-CPh2u5-o.mjs → doctor-contract-ItAh0keT.mjs} +10 -20
  9. package/dist/.setup/{message-action-contract-DMVMY_ng.mjs → message-action-contract-BZK6bpAl.mjs} +1 -2
  10. package/dist/.setup/{monitor-Bu-H1IvN.mjs → monitor-DGgVDZZK.mjs} +7 -10
  11. package/dist/.setup/{monitor.account-CTBV_Rk9.mjs → monitor.account-Doce9cKt.mjs} +337 -282
  12. package/dist/.setup/{probe-CbNVGjv_.mjs → probe-DMOl26H9.mjs} +11 -41
  13. package/dist/.setup/{reply-delivery-result-BjOCvaPo.mjs → reply-delivery-result-Dcan9Dz_.mjs} +211 -150
  14. package/dist/.setup/{runtime-C5JxBWZp.mjs → runtime-6V3uDMw5.mjs} +1 -2
  15. package/dist/.setup/runtime-setter-api-DSLLnejl.mjs +2 -0
  16. package/dist/.setup/{secret-contract-Do6HTIFT.mjs → secret-contract-BAucuP6O.mjs} +1 -2
  17. package/dist/.setup/{secret-contract-api-LwCXK5Qg.mjs → secret-contract-api-DR5mIHhJ.mjs} +1 -1
  18. package/dist/.setup/{security-audit-b86aSgH2.mjs → security-audit-CYRW0D76.mjs} +1 -2
  19. package/dist/.setup/{session-conversation-CM3UgYZY.mjs → session-conversation-DLgXP0-H.mjs} +2 -3
  20. package/dist/.setup/{setup-api-L7UpEkae.mjs → setup-api-qmezzejF.mjs} +1 -1
  21. package/dist/.setup/{subagent-hooks-DdiyEIi7.mjs → subagent-hooks-BRem84Mh.mjs} +4 -5
  22. package/dist/.setup/{thread-bindings-BxKmOara.mjs → thread-bindings-6eyktxK_.mjs} +1 -2
  23. package/dist/.source-module-urls/6579f1b33dd01f8f0aaea28311ed6df1a635f9ad1e6fa86dcba53bca46407e55.json +1 -1
  24. package/dist/api.js +20 -30
  25. package/dist/channel-entry.js +1 -2
  26. package/dist/channel-plugin-api.js +1 -1
  27. package/dist/configured-state.js +1 -2
  28. package/dist/contract-api.js +3 -3
  29. package/dist/doctor-contract-api.js +1 -1
  30. package/dist/index.js +1 -2
  31. package/dist/runtime-api.js +2 -2
  32. package/dist/runtime-setter-api.js +1 -1
  33. package/dist/secret-contract-api.js +1 -1
  34. package/dist/security-contract-api.js +1 -1
  35. package/dist/session-binding-contract-api.js +1 -1
  36. package/dist/session-key-api.js +1 -1
  37. package/dist/setup-api.js +1 -1
  38. package/dist/setup-entry.js +4 -5
  39. package/dist/subagent-hooks-api.js +2 -3
  40. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +41 -106
  41. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +931 -278
  42. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +2 -2
  43. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
  44. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +948 -268
  45. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +948 -268
  46. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
  47. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  48. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +925 -242
  49. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +20 -1
  50. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +18 -1
  51. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +73 -20
  52. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +145 -26
  53. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +120 -13
  54. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +67 -12
  55. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosError.js +59 -0
  56. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosHeaders.js +17 -4
  57. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +13 -2
  58. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
  59. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/createMultipartBody.js +37 -0
  60. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +20 -0
  61. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +183 -120
  62. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/transitional.js +1 -0
  63. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
  64. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
  65. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -1
  66. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/composeSignals.js +6 -3
  67. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/cookies.js +30 -6
  68. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +34 -7
  69. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
  70. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToJSON.js +25 -1
  71. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +8 -2
  72. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
  73. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseHeaders.js +2 -1
  74. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
  75. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +16 -3
  76. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +16 -1
  77. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +61 -10
  78. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +1 -2
  79. package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/README.md +27 -1
  80. package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/index.js +1 -5
  81. package/node_modules/@larksuiteoapi/node-sdk/node_modules/follow-redirects/package.json +1 -1
  82. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/.editorconfig +1 -1
  83. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/CHANGELOG.md +87 -22
  84. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/README.md +63 -10
  85. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/dist/qs.js +17 -17
  86. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/eslint.config.mjs +61 -50
  87. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/formats.js +7 -2
  88. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/parse.js +29 -10
  89. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/stringify.js +5 -3
  90. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/utils.js +28 -9
  91. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/package.json +6 -6
  92. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/parse.js +335 -2
  93. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/stringify.js +222 -0
  94. package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/utils.js +61 -3
  95. package/node_modules/typebox/build/format/date_time.d.mts +2 -1
  96. package/node_modules/typebox/build/format/date_time.mjs +12 -3
  97. package/node_modules/typebox/package.json +1 -1
  98. package/openclaw.plugin.json +5 -0
  99. package/package.json +5 -5
  100. package/dist/.setup/runtime-setter-api-BrQHE03y.mjs +0 -2
@@ -1,41 +1,10 @@
1
- import { _ as __exportAll } from "./doctor-contract-CPh2u5-o.mjs";
2
- import { r as createFeishuClient } from "./client-DqGMyzOi.mjs";
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
- //#region extensions/feishu/src/async.ts
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: Date.now() + ttlMs
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 > Date.now()) return cached.result;
58
+ if (cached.expiresAt > performance.now()) return cached.result;
90
59
  probeCache.delete(cacheKey);
91
60
  }
92
61
  try {
93
- const responseResult = await raceWithTimeoutAndAbort(createFeishuClient(creds).request({
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 responseResult = await raceWithTimeoutAndAbort(createFeishuClient(creds).request({
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
- //#endregion
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 };