@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,5 +1,5 @@
1
1
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
2
- //#region extensions/feishu/src/targets.ts
2
+ // extensions/feishu/src/targets.ts
3
3
  const CHAT_ID_PREFIX = "oc_";
4
4
  const OPEN_ID_PREFIX = "ou_";
5
5
  const USER_ID_REGEX = /^[a-zA-Z0-9_-]+$/;
@@ -37,8 +37,7 @@ function looksLikeFeishuId(raw) {
37
37
  if (trimmed.startsWith(OPEN_ID_PREFIX)) return true;
38
38
  return false;
39
39
  }
40
- //#endregion
41
- //#region extensions/feishu/src/conversation-id.ts
40
+ // extensions/feishu/src/conversation-id.ts
42
41
  const SCOPED_CONVERSATION_PATTERNS = [
43
42
  ["group_topic_sender", /^(?<chatId>.+):topic:(?<topicId>[^:]+):sender:(?<senderOpenId>[^:]+)$/i],
44
43
  ["group_topic", /^(?<chatId>.+):topic:(?<topicId>[^:]+)$/i],
@@ -122,5 +121,4 @@ function buildFeishuModelOverrideParentCandidates(parentConversationId) {
122
121
  }
123
122
  return [chatId];
124
123
  }
125
- //#endregion
126
124
  export { parseFeishuTargetId as a, looksLikeFeishuId as c, stripFeishuProviderPrefix as d, parseFeishuDirectConversationId as i, normalizeFeishuTarget as l, buildFeishuModelOverrideParentCandidates as n, resolveConfiguredFeishuGroupSessionScope as o, parseFeishuConversationId as r, detectIdType as s, buildFeishuConversationId as t, resolveReceiveIdType as u };
@@ -6,7 +6,7 @@ import { canResolveEnvSecretRefInReadOnlyPath } from "openclaw/plugin-sdk/secret
6
6
  import { normalizeAccountId as normalizeAccountId$1 } from "openclaw/plugin-sdk/account-id";
7
7
  import { ChannelDeliveryStreamingConfigSchema, ContextVisibilityModeSchema, DmPolicySchema, GroupPolicySchema, ReplyToModeSchema, TtsConfigSchema, buildChannelConfigSchema, buildGroupEntrySchema, buildMultiAccountChannelSchema } from "openclaw/plugin-sdk/channel-config-schema";
8
8
  import { z } from "zod";
9
- //#region \0rolldown/runtime.js
9
+ // \0rolldown/runtime.js
10
10
  var __defProp = Object.defineProperty;
11
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -31,8 +31,7 @@ var __copyProps = (to, from, except, desc) => {
31
31
  return to;
32
32
  };
33
33
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
34
- //#endregion
35
- //#region extensions/feishu/src/accounts.ts
34
+ // extensions/feishu/src/accounts.ts
36
35
  var accounts_exports = /* @__PURE__ */ __exportAll({
37
36
  FeishuSecretRefUnavailableError: () => FeishuSecretRefUnavailableError,
38
37
  inspectFeishuCredentials: () => inspectFeishuCredentials,
@@ -201,16 +200,14 @@ function listEnabledFeishuAccounts(cfg) {
201
200
  accountId
202
201
  })).filter((account) => account.enabled && account.configured);
203
202
  }
204
- //#endregion
205
- //#region extensions/feishu/src/external-keys.ts
203
+ // extensions/feishu/src/external-keys.ts
206
204
  const FEISHU_EXTERNAL_KEY_PATTERN = /^(?!\s)(?![\s\S]*\s$)(?![\s\S]*\.\.)[^\p{Cc}\p{Cs}/\\]{1,512}$/u;
207
205
  function normalizeFeishuExternalKey(value) {
208
206
  if (typeof value !== "string") return;
209
207
  const normalized = value.trim();
210
208
  return FEISHU_EXTERNAL_KEY_PATTERN.test(normalized) ? normalized : void 0;
211
209
  }
212
- //#endregion
213
- //#region extensions/feishu/src/webhook-path.ts
210
+ // extensions/feishu/src/webhook-path.ts
214
211
  const DEFAULT_FEISHU_WEBHOOK_PATH = "/feishu/events";
215
212
  /** Normalize trusted configuration only; incoming request targets must remain unmodified. */
216
213
  function normalizeFeishuWebhookPath(value) {
@@ -221,8 +218,7 @@ function normalizeFeishuWebhookPath(value) {
221
218
  const emptyQuery = !parsed.search && parsed.href.endsWith("?") && !configured.includes("#") ? "?" : "";
222
219
  return `${parsed.pathname}${parsed.search}${emptyQuery}`;
223
220
  }
224
- //#endregion
225
- //#region extensions/feishu/src/config-schema.ts
221
+ // extensions/feishu/src/config-schema.ts
226
222
  const ChannelActionsSchema = z.object({
227
223
  reactions: z.boolean().optional(),
228
224
  sticker: z.boolean().optional()
@@ -496,8 +492,7 @@ const FeishuConfigSchema = buildMultiAccountChannelSchema(FeishuConfigSchemaBase
496
492
  }
497
493
  });
498
494
  const FeishuChannelConfigSchema = buildChannelConfigSchema(FeishuConfigSchema, { jsonSchemaMode: "input" });
499
- //#endregion
500
- //#region packages/normalization-core/src/record-coerce.ts
495
+ // packages/normalization-core/src/record-coerce.ts
501
496
  /** Type guard for non-array object records at browser-safe boundaries. */
502
497
  function isRecord$1(value) {
503
498
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -506,8 +501,7 @@ function isRecord$1(value) {
506
501
  function asNullableRecord$1(value) {
507
502
  return isRecord$1(value) ? value : null;
508
503
  }
509
- //#endregion
510
- //#region src/config/channel-config-normalization.ts
504
+ // src/config/channel-config-normalization.ts
511
505
  /** Applies one channel-specific doctor migration to every object-shaped account. */
512
506
  function normalizeChannelAccounts(params) {
513
507
  const rawAccounts = asNullableRecord$1(params.entry.accounts);
@@ -583,8 +577,7 @@ function normalizeChannelConfigEntries$1(params) {
583
577
  changes
584
578
  };
585
579
  }
586
- //#endregion
587
- //#region src/plugin-sdk/legacy-webhook-listener-migration.ts
580
+ // src/plugin-sdk/legacy-webhook-listener-migration.ts
588
581
  /** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
589
582
  function createLegacyWebhookListenerDoctorContract(params) {
590
583
  const portKey = params.portKey ?? "webhookPort";
@@ -654,13 +647,11 @@ function createLegacyWebhookListenerDoctorContract(params) {
654
647
  }
655
648
  };
656
649
  }
657
- //#endregion
658
- //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
650
+ // \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
659
651
  var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
660
652
  import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
661
653
  __reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
662
- //#endregion
663
- //#region extensions/feishu/src/doctor-contract.ts
654
+ // extensions/feishu/src/doctor-contract.ts
664
655
  const webhookListenerMigration = createLegacyWebhookListenerDoctorContract({
665
656
  channelKey: "feishu",
666
657
  defaultPort: 3e3,
@@ -796,5 +787,4 @@ function normalizeCompatibilityConfig({ cfg }) {
796
787
  historicalWebhookAccountIds: resolveHistoricalWebhookAccountIds(stray.config)
797
788
  };
798
789
  }
799
- //#endregion
800
790
  export { __exportAll as _, FeishuChannelConfigSchema as a, normalizeFeishuExternalKey as c, listEnabledFeishuAccounts as d, listFeishuAccountIds as f, resolveFeishuRuntimeAccount as g, resolveFeishuAccount as h, normalizeHistoricalWebhookConfig as i, accounts_exports as l, resolveDefaultFeishuAccountId as m, legacyConfigRules as n, DEFAULT_FEISHU_WEBHOOK_PATH as o, mergeFeishuAccountConfig as p, normalizeCompatibilityConfig as r, normalizeFeishuWebhookPath as s, historicalWebhookListener as t, inspectFeishuCredentials as u, __reExport as v };
@@ -1,4 +1,4 @@
1
- //#region extensions/feishu/src/message-action-contract.ts
1
+ // extensions/feishu/src/message-action-contract.ts
2
2
  const FEISHU_NATIVE_CHAT_TARGET_ALIASES = [
3
3
  "chatId",
4
4
  "chat_id",
@@ -16,5 +16,4 @@ const messageActionTargetAliases = {
16
16
  "list-pins": { aliases: ["chatId"] },
17
17
  "channel-info": { aliases: ["chatId"] }
18
18
  };
19
- //#endregion
20
19
  export { messageActionTargetAliases as t };
@@ -1,11 +1,11 @@
1
- import { d as listEnabledFeishuAccounts, g as resolveFeishuRuntimeAccount } from "./doctor-contract-CPh2u5-o.mjs";
2
- import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.mjs";
3
- import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-CbNVGjv_.mjs";
1
+ import { d as listEnabledFeishuAccounts, g as resolveFeishuRuntimeAccount } from "./doctor-contract-ItAh0keT.mjs";
2
+ import { t as getFeishuRuntime } from "./runtime-6V3uDMw5.mjs";
3
+ import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-DMOl26H9.mjs";
4
4
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
6
6
  import { clampTimerTimeoutMs, parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
7
7
  import { asOptionalObjectRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
8
- //#region extensions/feishu/src/monitor-startup-timeout.ts
8
+ // extensions/feishu/src/monitor-startup-timeout.ts
9
9
  const FEISHU_STARTUP_BOT_INFO_TIMEOUT_DEFAULT_MS = 3e4;
10
10
  const FEISHU_STARTUP_BOT_INFO_TIMEOUT_ENV = "OPENCLAW_FEISHU_STARTUP_PROBE_TIMEOUT_MS";
11
11
  function resolveStartupProbeTimeoutMs(env = process.env) {
@@ -18,8 +18,7 @@ function resolveStartupProbeTimeoutMs(env = process.env) {
18
18
  }
19
19
  return FEISHU_STARTUP_BOT_INFO_TIMEOUT_DEFAULT_MS;
20
20
  }
21
- //#endregion
22
- //#region extensions/feishu/src/monitor.startup.ts
21
+ // extensions/feishu/src/monitor.startup.ts
23
22
  const FEISHU_BOT_IDENTITY_CACHE_NAMESPACE = "feishu.bot-identity-cache";
24
23
  const FEISHU_BOT_IDENTITY_CACHE_MAX_ENTRIES = 128;
25
24
  function openFeishuBotIdentityCache() {
@@ -96,9 +95,8 @@ async function fetchBotIdentityForMonitor(account, options = {}) {
96
95
  return {};
97
96
  }
98
97
  }
99
- //#endregion
100
- //#region extensions/feishu/src/monitor.ts
101
- const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-CTBV_Rk9.mjs"));
98
+ // extensions/feishu/src/monitor.ts
99
+ const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-Doce9cKt.mjs"));
102
100
  async function monitorFeishuProvider(opts) {
103
101
  const cfg = opts.config;
104
102
  const log = opts.runtime?.log ?? console.log;
@@ -152,5 +150,4 @@ async function monitorFeishuProvider(opts) {
152
150
  }
153
151
  await Promise.all(monitorPromises);
154
152
  }
155
- //#endregion
156
153
  export { monitorFeishuProvider, fetchBotIdentityForMonitor as t };