@openclaw/feishu 2026.10.10 → 2026.10.33

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 (84) hide show
  1. package/dist/.setup/{app-registration-d8dxhKp-.mjs → app-registration-CYU0G5Oo.mjs} +3 -2
  2. package/dist/.setup/{channel-dxkUGCgC.mjs → channel-6bBLGirS.mjs} +53 -34
  3. package/dist/.setup/{channel.runtime-DK9nv7tQ.mjs → channel.runtime-CwfDpLtc.mjs} +14 -10
  4. package/dist/.setup/{chat-CfRBIQrw.mjs → chat-qj1pEIcO.mjs} +5 -3
  5. package/dist/.setup/{client-DlpvvLoz.mjs → client-BTiFlqqL.mjs} +7 -4
  6. package/dist/.setup/{conversation-id-i1ICr3ID.mjs → conversation-id-D00i9uy5.mjs} +4 -2
  7. package/dist/.setup/{doctor-contract-CWB6EycD.mjs → doctor-contract-BNXcJcWR.mjs} +20 -10
  8. package/dist/.setup/{json-response-BX9Htr9f.mjs → json-response-DXajw_FU.mjs} +2 -1
  9. package/dist/.setup/{message-action-contract-C9KL891-.mjs → message-action-contract-Bhxj8Zrf.mjs} +2 -1
  10. package/dist/.setup/{monitor-BJ0-Wu8d.mjs → monitor-By0Z9Afk.mjs} +12 -8
  11. package/dist/.setup/{monitor.account-DIvDEG0X.mjs → monitor.account-Do-D6JD-.mjs} +144 -99
  12. package/dist/.setup/{probe-BiQj7eM4.mjs → probe-s0hiM44D.mjs} +6 -4
  13. package/dist/.setup/{reply-delivery-result-QS_FCE--.mjs → reply-delivery-result-DknmIzOB.mjs} +70 -37
  14. package/dist/.setup/{runtime-6V3uDMw5.mjs → runtime-C5JxBWZp.mjs} +2 -1
  15. package/dist/.setup/runtime-setter-api-CG-RC4_r.mjs +3 -0
  16. package/dist/.setup/{secret-contract-DbKGdEJP.mjs → secret-contract-DEyvsehF.mjs} +2 -1
  17. package/dist/.setup/secret-contract-api-DsHOG5s6.mjs +3 -0
  18. package/dist/.setup/{security-audit-CYRW0D76.mjs → security-audit-b86aSgH2.mjs} +2 -1
  19. package/dist/.setup/{session-conversation-CFw-zLLy.mjs → session-conversation-BSBNK5Mq.mjs} +3 -2
  20. package/dist/.setup/setup-api-DtPp-6Ar.mjs +3 -0
  21. package/dist/.setup/{subagent-hooks-CA-gJ3Cu.mjs → subagent-hooks-CvVuM0O4.mjs} +5 -4
  22. package/dist/.setup/{thread-bindings-6eyktxK_.mjs → thread-bindings-BxKmOara.mjs} +2 -1
  23. package/dist/api.js +32 -20
  24. package/dist/channel-entry.js +2 -1
  25. package/dist/channel-plugin-api.js +2 -1
  26. package/dist/configured-state.js +2 -1
  27. package/dist/contract-api.js +3 -3
  28. package/dist/doctor-contract-api.js +2 -1
  29. package/dist/index.js +2 -1
  30. package/dist/runtime-api.js +1 -1
  31. package/dist/runtime-setter-api.js +2 -1
  32. package/dist/secret-contract-api.js +2 -1
  33. package/dist/security-contract-api.js +2 -1
  34. package/dist/session-binding-contract-api.js +2 -1
  35. package/dist/session-key-api.js +2 -1
  36. package/dist/setup-api.js +2 -1
  37. package/dist/setup-entry.js +5 -4
  38. package/dist/subagent-hooks-api.js +3 -2
  39. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +26 -0
  40. package/node_modules/@openclaw/fs-safe/dist/copy-path-admission.js +2 -2
  41. package/node_modules/@openclaw/fs-safe/dist/native-config.js +14 -3
  42. package/node_modules/@openclaw/fs-safe/dist/output.js +6 -0
  43. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +2 -1
  44. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +12 -5
  45. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +2 -2
  46. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +27 -13
  47. package/node_modules/@openclaw/fs-safe/dist/root-path.js +2 -2
  48. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +3 -0
  49. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +18 -3
  50. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +8 -3
  51. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  52. package/node_modules/@openclaw/fs-safe/docs/config.md +7 -1
  53. package/node_modules/@openclaw/fs-safe/docs/copy.md +10 -0
  54. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +6 -4
  55. package/node_modules/@openclaw/fs-safe/docs/native-helper.md +6 -4
  56. package/node_modules/@openclaw/fs-safe/docs/output.md +4 -2
  57. package/node_modules/@openclaw/fs-safe/docs/security-model.md +9 -0
  58. package/node_modules/@openclaw/fs-safe/docs/watch.md +7 -1
  59. package/node_modules/@openclaw/fs-safe/package.json +15 -14
  60. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  61. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  62. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  63. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  64. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  65. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  66. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  67. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  68. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  69. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  70. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  71. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  72. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  73. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  74. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  75. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  76. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  77. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  78. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  79. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  80. package/package.json +5 -5
  81. package/dist/.setup/runtime-setter-api-DSLLnejl.mjs +0 -2
  82. package/dist/.setup/secret-contract-api-DHseJ7sg.mjs +0 -2
  83. package/dist/.setup/setup-api-qH0YRx2x.mjs +0 -2
  84. package/dist/.source-module-urls/6579f1b33dd01f8f0aaea28311ed6df1a635f9ad1e6fa86dcba53bca46407e55.json +0 -1
@@ -1,9 +1,9 @@
1
- import { t as readFeishuJsonResponse } from "./json-response-BX9Htr9f.mjs";
1
+ import { t as readFeishuJsonResponse } from "./json-response-DXajw_FU.mjs";
2
2
  import { finiteSecondsToTimerSafeMilliseconds } from "openclaw/plugin-sdk/number-runtime";
3
3
  import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
4
4
  import { renderQrTerminal } from "openclaw/plugin-sdk/media-runtime";
5
5
  import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
6
- // extensions/feishu/src/app-registration.ts
6
+ //#region extensions/feishu/src/app-registration.ts
7
7
  const FEISHU_ACCOUNTS_URL = "https://accounts.feishu.cn";
8
8
  const LARK_ACCOUNTS_URL = "https://accounts.larksuite.com";
9
9
  const REGISTRATION_PATH = "/oauth/v1/app/registration";
@@ -171,4 +171,5 @@ async function sleepRegistrationPollInterval(intervalSeconds, abortSignal) {
171
171
  const intervalMs = finiteSecondsToTimerSafeMilliseconds(intervalSeconds) ?? DEFAULT_REGISTRATION_POLL_INTERVAL_SECONDS * 1e3;
172
172
  await sleepWithAbort(intervalMs, abortSignal).catch(() => {});
173
173
  }
174
+ //#endregion
174
175
  export { beginAppRegistration, getAppOwnerOpenId, initAppRegistration, pollAppRegistration, printQrCode };
@@ -1,12 +1,12 @@
1
- import { _ as __exportAll, a as FeishuChannelConfigSchema, c as normalizeFeishuExternalKey, d as listEnabledFeishuAccounts, f as listFeishuAccountIds, g as resolveFeishuRuntimeAccount, h as resolveFeishuAccount, m as resolveDefaultFeishuAccountId, n as legacyConfigRules, o as DEFAULT_FEISHU_WEBHOOK_PATH, p as mergeFeishuAccountConfig, r as normalizeCompatibilityConfig, s as normalizeFeishuWebhookPath, u as inspectFeishuCredentials, v as __reExport } from "./doctor-contract-CWB6EycD.mjs";
2
- import { a as parseFeishuTargetId, c as looksLikeFeishuId, i as parseFeishuDirectConversationId, l as normalizeFeishuTarget, n as buildFeishuModelOverrideParentCandidates, o as resolveConfiguredFeishuGroupSessionScope, r as parseFeishuConversationId, t as buildFeishuConversationId, u as resolveReceiveIdType } from "./conversation-id-i1ICr3ID.mjs";
3
- import { A as sendMessageFeishu, At as resolveFeishuGroupConfig, Ct as isFeishuGroupReadAllowed, Et as resolveFeishuChatReadPreliminaryAuthorization, Ft as normalizeFeishuChatType, It as resolveFeishuChatType, K as resolveFeishuIdentityHeaderTitle, M as toFeishuMessageSendResult, Nt as resolveFeishuGroupToolPolicy, S as sendMediaFeishu, St as canEnumerateAllFeishuPeers, T as chunkFeishuCardMarkdown, Tt as readFeishuChatInfoWithAuthorization, W as buildFeishuMediaFallbackText, _ as renderFeishuPresentationPayload, _t as shouldUseFeishuCard, b as withinCardTableLimit, bt as authorizeFeishuChatMemberRead, c as buildFeishuPayloadCard, d as consumeFeishuPresentationFallbackMarker, dt as readNativeFeishuCardJson, f as feishuCardWithinTableLimit, g as renderFeishuPresentationFallbackText, h as readNativeFeishuCard, ht as materializeFeishuPostMarkdownSoftBreaks, j as sendStructuredCardFeishu, k as sendCardFeishu, l as buildFeishuPresentationCard, m as markRenderedFeishuCard, mt as chunkFeishuPostMarkdown, n as createFeishuReplyDeliveryResult, o as FEISHU_PRESENTATION_CAPABILITIES, p as isFeishuCardWithinEnvelope, pt as chunkFeishuMarkdown, q as deliverCommentThreadText, s as assertFeishuCardWithinEnvelope, t as createFeishuPartialReplyDeliveryError, tt as cleanupAmbientCommentTypingReaction, u as buildFeishuPresentationFallback, ut as parseFeishuCommentTarget, w as shouldSuppressFeishuTextForVoiceMedia, wt as isFeishuGroupReadEnabled, xt as canEnumerateAllFeishuGroups, y as resolveFeishuRichReply, yt as assertFeishuChatReadAllowed } from "./reply-delivery-result-QS_FCE--.mjs";
4
- import { t as messageActionTargetAliases } from "./message-action-contract-C9KL891-.mjs";
5
- import { l as withFeishuRequestContext, r as createFeishuClient, u as withFeishuSendContext } from "./client-DlpvvLoz.mjs";
6
- import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DbKGdEJP.mjs";
7
- import { t as collectFeishuSecurityAuditFindings } from "./security-audit-CYRW0D76.mjs";
8
- import { t as resolveFeishuSessionConversation } from "./session-conversation-CFw-zLLy.mjs";
9
- import { n as getFeishuThreadBindingManager } from "./thread-bindings-6eyktxK_.mjs";
1
+ import { _ as __exportAll, a as FeishuChannelConfigSchema, c as normalizeFeishuExternalKey, d as listEnabledFeishuAccounts, f as listFeishuAccountIds, g as resolveFeishuRuntimeAccount, h as resolveFeishuAccount, m as resolveDefaultFeishuAccountId, n as legacyConfigRules, o as DEFAULT_FEISHU_WEBHOOK_PATH, p as mergeFeishuAccountConfig, r as normalizeCompatibilityConfig, s as normalizeFeishuWebhookPath, u as inspectFeishuCredentials, v as __reExport } from "./doctor-contract-BNXcJcWR.mjs";
2
+ import { a as parseFeishuTargetId, c as looksLikeFeishuId, i as parseFeishuDirectConversationId, l as normalizeFeishuTarget, n as buildFeishuModelOverrideParentCandidates, o as resolveConfiguredFeishuGroupSessionScope, r as parseFeishuConversationId, t as buildFeishuConversationId, u as resolveReceiveIdType } from "./conversation-id-D00i9uy5.mjs";
3
+ import { A as sendMessageFeishu, At as resolveFeishuGroupConfig, Ct as isFeishuGroupReadAllowed, Et as resolveFeishuChatReadPreliminaryAuthorization, Ft as normalizeFeishuChatType, It as resolveFeishuChatType, K as resolveFeishuIdentityHeaderTitle, M as toFeishuMessageSendResult, Nt as resolveFeishuGroupToolPolicy, S as sendMediaFeishu, St as canEnumerateAllFeishuPeers, T as chunkFeishuCardMarkdown, Tt as readFeishuChatInfoWithAuthorization, W as buildFeishuMediaFallbackText, _ as renderFeishuPresentationPayload, _t as shouldUseFeishuCard, b as withinCardTableLimit, bt as authorizeFeishuChatMemberRead, c as buildFeishuPayloadCard, d as consumeFeishuPresentationFallbackMarker, dt as readNativeFeishuCardJson, f as feishuCardWithinTableLimit, g as renderFeishuPresentationFallbackText, h as readNativeFeishuCard, ht as materializeFeishuPostMarkdownSoftBreaks, j as sendStructuredCardFeishu, k as sendCardFeishu, l as buildFeishuPresentationCard, m as markRenderedFeishuCard, mt as chunkFeishuPostMarkdown, n as createFeishuReplyDeliveryResult, o as FEISHU_PRESENTATION_CAPABILITIES, p as isFeishuCardWithinEnvelope, pt as chunkFeishuMarkdown, q as deliverCommentThreadText, s as assertFeishuCardWithinEnvelope, t as createFeishuPartialReplyDeliveryError, tt as cleanupAmbientCommentTypingReaction, u as buildFeishuPresentationFallback, ut as parseFeishuCommentTarget, w as shouldSuppressFeishuTextForVoiceMedia, wt as isFeishuGroupReadEnabled, xt as canEnumerateAllFeishuGroups, y as resolveFeishuRichReply, yt as assertFeishuChatReadAllowed } from "./reply-delivery-result-DknmIzOB.mjs";
4
+ import { t as messageActionTargetAliases } from "./message-action-contract-Bhxj8Zrf.mjs";
5
+ import { l as withFeishuRequestContext, r as createFeishuClient, u as withFeishuSendContext } from "./client-BTiFlqqL.mjs";
6
+ import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-DEyvsehF.mjs";
7
+ import { t as collectFeishuSecurityAuditFindings } from "./security-audit-b86aSgH2.mjs";
8
+ import { t as resolveFeishuSessionConversation } from "./session-conversation-BSBNK5Mq.mjs";
9
+ import { n as getFeishuThreadBindingManager } from "./thread-bindings-BxKmOara.mjs";
10
10
  import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
11
11
  import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
12
12
  import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-resolution";
@@ -46,7 +46,7 @@ import { statRegularFileSync } from "openclaw/plugin-sdk/security-runtime";
46
46
  import { readStringParam } from "openclaw/plugin-sdk/param-readers";
47
47
  import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
48
48
  import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
49
- // extensions/feishu/src/approval-auth.ts
49
+ //#region extensions/feishu/src/approval-auth.ts
50
50
  function normalizeFeishuApproverId(value) {
51
51
  const normalized = normalizeFeishuTarget(String(value));
52
52
  const trimmed = normalizeOptionalLowercaseString(normalized);
@@ -62,7 +62,8 @@ const feishuApprovalAuth = createChannelApprovalAuth({
62
62
  },
63
63
  normalizeApprover: normalizeFeishuApproverId
64
64
  }).approvalAuth;
65
- // extensions/feishu/src/directory.static.ts
65
+ //#endregion
66
+ //#region extensions/feishu/src/directory.static.ts
66
67
  async function listFeishuDirectoryPeers(params) {
67
68
  const account = resolveFeishuAccount({
68
69
  cfg: params.cfg,
@@ -125,7 +126,8 @@ async function listAuthorizedFeishuDirectoryGroups(params) {
125
126
  id
126
127
  }));
127
128
  }
128
- // extensions/feishu/src/doctor-agent-roster.ts
129
+ //#endregion
130
+ //#region extensions/feishu/src/doctor-agent-roster.ts
129
131
  function collectFeishuDoctorAgentIds(cfg) {
130
132
  const agents = isRecord(cfg) && isRecord(cfg.agents) ? cfg.agents : void 0;
131
133
  if (isRecord(agents?.entries)) {
@@ -138,7 +140,8 @@ function collectFeishuDoctorAgentIds(cfg) {
138
140
  for (const entry of entries) if (typeof entry.id === "string" && entry.id.trim()) ids.add(normalizeAgentId(entry.id));
139
141
  return [...ids].toSorted();
140
142
  }
141
- // src/gateway/gateway-http-route-contracts.ts
143
+ //#endregion
144
+ //#region src/gateway/gateway-http-route-contracts.ts
142
145
  const GATEWAY_PROBE_ROUTES = /* @__PURE__ */ new Map([
143
146
  ["/health", "live"],
144
147
  ["/healthz", "live"],
@@ -154,7 +157,8 @@ function classifyGatewayProbePath(pathname) {
154
157
  }
155
158
  return "outside";
156
159
  }
157
- // packages/normalization-core/src/string-coerce.ts
160
+ //#endregion
161
+ //#region packages/normalization-core/src/string-coerce.ts
158
162
  /** Trims string input and returns null for non-strings or empty strings. */
159
163
  function normalizeNullableString$1(value) {
160
164
  if (typeof value !== "string") return null;
@@ -173,11 +177,13 @@ function normalizeOptionalLowercaseString$1(value) {
173
177
  function normalizeLowercaseStringOrEmpty$1(value) {
174
178
  return normalizeOptionalLowercaseString$1(value) ?? "";
175
179
  }
176
- // src/plugins/http-path-prefix.ts
180
+ //#endregion
181
+ //#region src/plugins/http-path-prefix.ts
177
182
  function prefixMatchPath(pathname, prefix) {
178
183
  return pathname === prefix || pathname.startsWith(`${prefix}/`) || pathname.startsWith(`${prefix}%`);
179
184
  }
180
- // src/gateway/security-path.ts
185
+ //#endregion
186
+ //#region src/gateway/security-path.ts
181
187
  const MAX_PATH_DECODE_PASSES = 32;
182
188
  function normalizePathSeparators(pathname) {
183
189
  const collapsed = pathname.replace(/\/{2,}/g, "/");
@@ -230,7 +236,8 @@ function canonicalizePathForSecurity(pathname) {
230
236
  };
231
237
  }
232
238
  const PROTECTED_PLUGIN_ROUTE_PREFIXES = ["/api/channels"];
233
- // src/gateway/server/plugins-http/path-context.ts
239
+ //#endregion
240
+ //#region src/gateway/server/plugins-http/path-context.ts
234
241
  function normalizeProtectedPrefix(prefix) {
235
242
  const collapsed = normalizeLowercaseStringOrEmpty$1(prefix).replace(/\/{2,}/g, "/");
236
243
  if (collapsed.length <= 1) return collapsed || "/";
@@ -256,7 +263,8 @@ function resolvePluginRoutePathContext(pathname) {
256
263
  rawNormalizedPath: canonical.rawNormalizedPath
257
264
  };
258
265
  }
259
- // \0openclaw:bundled-sdk:openclaw/plugin-sdk/gateway-config-runtime
266
+ //#endregion
267
+ //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/gateway-config-runtime
260
268
  var gateway_config_runtime_exports = /* @__PURE__ */ __exportAll({
261
269
  classifyGatewayProbePath: () => classifyGatewayProbePath,
262
270
  isProtectedPluginRoutePathFromContext: () => isProtectedPluginRoutePathFromContext,
@@ -264,7 +272,8 @@ var gateway_config_runtime_exports = /* @__PURE__ */ __exportAll({
264
272
  });
265
273
  import * as import_openclaw_plugin_sdk_gateway_config_runtime from "openclaw/plugin-sdk/gateway-config-runtime";
266
274
  __reExport(gateway_config_runtime_exports, import_openclaw_plugin_sdk_gateway_config_runtime);
267
- // extensions/feishu/src/webhook-route.ts
275
+ //#endregion
276
+ //#region extensions/feishu/src/webhook-route.ts
268
277
  function resolveFeishuLegacyWebhookListener(config) {
269
278
  const listener = config.legacyWebhook;
270
279
  return listener ? {
@@ -304,7 +313,8 @@ function collectFeishuWebhookNotes({ cfg, env }) {
304
313
  warningNotes
305
314
  };
306
315
  }
307
- // extensions/feishu/src/doctor.ts
316
+ //#endregion
317
+ //#region extensions/feishu/src/doctor.ts
308
318
  const FEISHU_STATE_DIR = "feishu";
309
319
  const BACKUP_PREFIX = "feishu-state-repair";
310
320
  const BLANK_USER_MESSAGE_REPAIR_THRESHOLD = 3;
@@ -839,9 +849,10 @@ const feishuDoctor = {
839
849
  normalizeCompatibilityConfig,
840
850
  runConfigSequence: runFeishuDoctorSequence
841
851
  };
842
- // extensions/feishu/src/gateway.ts
852
+ //#endregion
853
+ //#region extensions/feishu/src/gateway.ts
843
854
  const feishuGatewayAdapter = { startAccount: async (ctx) => {
844
- const { monitorFeishuProvider } = await import("./monitor-BJ0-Wu8d.mjs");
855
+ const { monitorFeishuProvider } = await import("./monitor-By0Z9Afk.mjs");
845
856
  const account = resolveFeishuRuntimeAccount({
846
857
  cfg: ctx.cfg,
847
858
  accountId: ctx.accountId
@@ -865,7 +876,8 @@ const feishuGatewayAdapter = { startAccount: async (ctx) => {
865
876
  statusSink
866
877
  });
867
878
  } };
868
- // extensions/feishu/src/comment-send.ts
879
+ //#endregion
880
+ //#region extensions/feishu/src/comment-send.ts
869
881
  async function sendCommentThreadReply(params) {
870
882
  const target = parseFeishuCommentTarget(params.to);
871
883
  if (!target) return null;
@@ -898,7 +910,8 @@ async function sendCommentThreadReply(params) {
898
910
  });
899
911
  }
900
912
  }
901
- // extensions/feishu/src/outbound.ts
913
+ //#endregion
914
+ //#region extensions/feishu/src/outbound.ts
902
915
  const FEISHU_PROPAGATE_MEDIA_UPLOAD_FAILURE_MARKER = "__openclawPropagateMediaUploadFailure";
903
916
  const FEISHU_TEXT_CHUNK_LIMIT = 4e3;
904
917
  function normalizePossibleLocalImagePath(text) {
@@ -1390,7 +1403,8 @@ const feishuOutbound = withFeishuOutboundSendContext({
1390
1403
  }
1391
1404
  })
1392
1405
  });
1393
- // extensions/feishu/src/session-route.ts
1406
+ //#endregion
1407
+ //#region extensions/feishu/src/session-route.ts
1394
1408
  function resolveFeishuOutboundSessionRoute(params) {
1395
1409
  const rawTarget = stripChannelTargetPrefix(params.target, "feishu", "lark");
1396
1410
  const target = normalizeFeishuTarget(rawTarget);
@@ -1423,7 +1437,8 @@ function resolveFeishuOutboundSessionRoute(params) {
1423
1437
  to: target
1424
1438
  });
1425
1439
  }
1426
- // extensions/feishu/src/setup-core.ts
1440
+ //#endregion
1441
+ //#region extensions/feishu/src/setup-core.ts
1427
1442
  function setFeishuNamedAccountEnabled(cfg, accountId, enabled) {
1428
1443
  const feishuCfg = cfg.channels?.feishu;
1429
1444
  return patchTopLevelChannelConfigSection({
@@ -1449,7 +1464,8 @@ const feishuSetupContract = defineChannelSetupContract({
1449
1464
  fields: {},
1450
1465
  legacyAdapter: feishuSetupAdapter
1451
1466
  });
1452
- // extensions/feishu/src/setup-surface.ts
1467
+ //#endregion
1468
+ //#region extensions/feishu/src/setup-surface.ts
1453
1469
  const t = createSetupTranslator();
1454
1470
  const channel = "feishu";
1455
1471
  const SCAN_TO_CREATE_TP = "ob_cli_app";
@@ -1532,7 +1548,7 @@ const feishuDmPolicy = createChannelDmPolicy({
1532
1548
  promptAllowFrom: promptFeishuAllowFrom
1533
1549
  });
1534
1550
  async function runScanToCreate(prompter, domain, beforePersistentEffect) {
1535
- const { beginAppRegistration, initAppRegistration, pollAppRegistration, printQrCode } = await import("./app-registration-d8dxhKp-.mjs");
1551
+ const { beginAppRegistration, initAppRegistration, pollAppRegistration, printQrCode } = await import("./app-registration-CYU0G5Oo.mjs");
1536
1552
  try {
1537
1553
  await initAppRegistration(domain);
1538
1554
  } catch {
@@ -1623,7 +1639,7 @@ async function runNewAppFlow(params) {
1623
1639
  appSecretProbeValue = appSecretResult.resolvedValue;
1624
1640
  }
1625
1641
  if (appId && appSecretProbeValue) {
1626
- const { getAppOwnerOpenId } = await import("./app-registration-d8dxhKp-.mjs");
1642
+ const { getAppOwnerOpenId } = await import("./app-registration-CYU0G5Oo.mjs");
1627
1643
  scanOpenId = await getAppOwnerOpenId({
1628
1644
  appId,
1629
1645
  appSecret: appSecretProbeValue,
@@ -1724,7 +1740,7 @@ const feishuSetupWizard = {
1724
1740
  });
1725
1741
  let probeResult = null;
1726
1742
  if (configured && account.configured) try {
1727
- const { probeFeishu } = await import("./probe-BiQj7eM4.mjs").then((n) => n.n);
1743
+ const { probeFeishu } = await import("./probe-s0hiM44D.mjs").then((n) => n.n);
1728
1744
  probeResult = await probeFeishu(account);
1729
1745
  } catch {}
1730
1746
  if (!configured) return [`Feishu: ${t("wizard.channels.statusNeedsAppCredentials")}`];
@@ -1747,7 +1763,8 @@ const feishuSetupWizard = {
1747
1763
  dmPolicy: feishuDmPolicy,
1748
1764
  disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
1749
1765
  };
1750
- // extensions/feishu/src/sticker-catalog.ts
1766
+ //#endregion
1767
+ //#region extensions/feishu/src/sticker-catalog.ts
1751
1768
  const STICKER_QUERY_PATTERN = /^[^\p{Cs}]{1,128}$/u;
1752
1769
  function fitsStickerSearchResult(stickers) {
1753
1770
  return Buffer.byteLength(JSON.stringify({
@@ -1785,7 +1802,8 @@ function searchFeishuStickerSet(entries, params) {
1785
1802
  truncated: false
1786
1803
  };
1787
1804
  }
1788
- // extensions/feishu/src/channel.ts
1805
+ //#endregion
1806
+ //#region extensions/feishu/src/channel.ts
1789
1807
  function resolveFeishuSendAttachmentMedia(params) {
1790
1808
  const sourceKeys = [
1791
1809
  "media",
@@ -1875,7 +1893,7 @@ const meta = {
1875
1893
  order: 70,
1876
1894
  preferSessionLookupForAnnounceTarget: true
1877
1895
  };
1878
- const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-DK9nv7tQ.mjs"), "feishuChannelRuntime");
1896
+ const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-CwfDpLtc.mjs"), "feishuChannelRuntime");
1879
1897
  async function resolveFeishuMessageSender(kind) {
1880
1898
  const unavailableMessage = `Feishu ${kind} sending is not available.`;
1881
1899
  try {
@@ -1913,7 +1931,7 @@ const feishuMessageAdapter = defineChannelMessageAdapter({
1913
1931
  }
1914
1932
  });
1915
1933
  async function createFeishuActionClient(account) {
1916
- const { createFeishuClient } = await import("./client-DlpvvLoz.mjs").then((n) => n.t);
1934
+ const { createFeishuClient } = await import("./client-BTiFlqqL.mjs").then((n) => n.t);
1917
1935
  return createFeishuClient(account);
1918
1936
  }
1919
1937
  const collectFeishuSecurityWarnings = createAllowlistProviderGroupPolicyWarningCollector({
@@ -2835,4 +2853,5 @@ const feishuPlugin = createChatChannelPlugin({
2835
2853
  })
2836
2854
  }
2837
2855
  });
2856
+ //#endregion
2838
2857
  export { setFeishuNamedAccountEnabled as a, resolveFeishuLegacyWebhookListener as c, listFeishuDirectoryPeers as d, feishuSetupAdapter as i, gateway_config_runtime_exports as l, feishuSetupWizard as n, feishuOutbound as o, runFeishuLogin as r, describeFeishuWebhookPathConflict as s, feishuPlugin as t, listFeishuDirectoryGroups as u };
@@ -1,11 +1,11 @@
1
- import { h as resolveFeishuAccount } from "./doctor-contract-CWB6EycD.mjs";
2
- import { d as listFeishuDirectoryPeers, o as feishuOutbound, u as listFeishuDirectoryGroups } from "./channel-dxkUGCgC.mjs";
3
- import { A as sendMessageFeishu, C as sendStickerFeishu, D as getMessageFeishu, E as editMessageFeishu, U as createConfiguredFeishuClient, et as assertFeishuApiSuccess, k as sendCardFeishu } from "./reply-delivery-result-QS_FCE--.mjs";
4
- import { r as createFeishuClient } from "./client-DlpvvLoz.mjs";
5
- import { a as getFeishuMemberInfo, i as getChatMembers, n as buildFeishuDirectChatMembers, r as getChatInfo, t as assertFeishuChatMember } from "./chat-CfRBIQrw.mjs";
6
- import { t as probeFeishu } from "./probe-BiQj7eM4.mjs";
1
+ import { h as resolveFeishuAccount } from "./doctor-contract-BNXcJcWR.mjs";
2
+ import { d as listFeishuDirectoryPeers, o as feishuOutbound, u as listFeishuDirectoryGroups } from "./channel-6bBLGirS.mjs";
3
+ import { A as sendMessageFeishu, C as sendStickerFeishu, D as getMessageFeishu, E as editMessageFeishu, U as createConfiguredFeishuClient, et as assertFeishuApiSuccess, k as sendCardFeishu } from "./reply-delivery-result-DknmIzOB.mjs";
4
+ import { r as createFeishuClient } from "./client-BTiFlqqL.mjs";
5
+ import { a as getFeishuMemberInfo, i as getChatMembers, n as buildFeishuDirectChatMembers, r as getChatInfo, t as assertFeishuChatMember } from "./chat-qj1pEIcO.mjs";
6
+ import { t as probeFeishu } from "./probe-s0hiM44D.mjs";
7
7
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
8
- // extensions/feishu/src/directory.ts
8
+ //#region extensions/feishu/src/directory.ts
9
9
  const MAX_FEISHU_DIRECTORY_PAGES = 100;
10
10
  async function listFeishuDirectoryLive(params, options) {
11
11
  const account = resolveFeishuAccount({
@@ -79,7 +79,8 @@ function listFeishuDirectoryGroupsLive(params) {
79
79
  } : void 0
80
80
  });
81
81
  }
82
- // extensions/feishu/src/pins.ts
82
+ //#endregion
83
+ //#region extensions/feishu/src/pins.ts
83
84
  function normalizePin(pin) {
84
85
  return {
85
86
  messageId: pin.message_id,
@@ -114,7 +115,8 @@ async function listPinsFeishu(params) {
114
115
  pageToken: response.data?.page_token
115
116
  };
116
117
  }
117
- // extensions/feishu/src/reactions.ts
118
+ //#endregion
119
+ //#region extensions/feishu/src/reactions.ts
118
120
  /**
119
121
  * Add a reaction (emoji) to a message.
120
122
  * @param emojiType - Feishu emoji type, e.g., "SMILE", "THUMBSUP", "HEART"
@@ -177,7 +179,8 @@ async function listReactionsFeishu(params) {
177
179
  pageToken = nextPageToken;
178
180
  }
179
181
  }
180
- // extensions/feishu/src/channel.runtime.ts
182
+ //#endregion
183
+ //#region extensions/feishu/src/channel.runtime.ts
181
184
  const feishuChannelRuntime = {
182
185
  assertFeishuChatMember,
183
186
  buildFeishuDirectChatMembers,
@@ -200,4 +203,5 @@ const feishuChannelRuntime = {
200
203
  sendMessageFeishu,
201
204
  sendStickerFeishu
202
205
  };
206
+ //#endregion
203
207
  export { feishuChannelRuntime };
@@ -1,5 +1,5 @@
1
- import { $ as resolveFeishuToolAccount, Et as resolveFeishuChatReadPreliminaryAuthorization, It as resolveFeishuChatType, Tt as readFeishuChatInfoWithAuthorization, X as feishuExternalToolResult, Y as registerFeishuTool, at as formatFeishuApiError, bt as authorizeFeishuChatMemberRead, et as assertFeishuApiSuccess, yt as assertFeishuChatReadAllowed } from "./reply-delivery-result-QS_FCE--.mjs";
2
- import { r as createFeishuClient } from "./client-DlpvvLoz.mjs";
1
+ import { $ as resolveFeishuToolAccount, Et as resolveFeishuChatReadPreliminaryAuthorization, It as resolveFeishuChatType, Tt as readFeishuChatInfoWithAuthorization, X as feishuExternalToolResult, Y as registerFeishuTool, at as formatFeishuApiError, bt as authorizeFeishuChatMemberRead, et as assertFeishuApiSuccess, yt as assertFeishuChatReadAllowed } from "./reply-delivery-result-DknmIzOB.mjs";
2
+ import { r as createFeishuClient } from "./client-BTiFlqqL.mjs";
3
3
  import { optionalPositiveIntegerSchema } from "openclaw/plugin-sdk/channel-actions";
4
4
  import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
5
5
  import { Type } from "typebox";
@@ -28,7 +28,8 @@ const FeishuChatSchema = Type.Object({
28
28
  description: "Member ID type (default: open_id)"
29
29
  }))
30
30
  });
31
- // extensions/feishu/src/chat.ts
31
+ //#endregion
32
+ //#region extensions/feishu/src/chat.ts
32
33
  function buildFeishuDirectChatMembers(authorization) {
33
34
  return {
34
35
  chat_id: authorization.chatId,
@@ -204,4 +205,5 @@ function registerFeishuChatTools(api) {
204
205
  onError: (err) => feishuExternalToolResult({ error: formatFeishuApiError(err, { includeNestedErrorLogId: true }) })
205
206
  });
206
207
  }
208
+ //#endregion
207
209
  export { getFeishuMemberInfo as a, getChatMembers as i, buildFeishuDirectChatMembers as n, registerFeishuChatTools as o, getChatInfo as r, assertFeishuChatMember as t };
@@ -1,4 +1,4 @@
1
- import { _ as __exportAll } from "./doctor-contract-CWB6EycD.mjs";
1
+ import { _ as __exportAll } from "./doctor-contract-BNXcJcWR.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { PlatformMessageNotDispatchedError } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { asPositiveFiniteNumber, parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
@@ -8,7 +8,7 @@ import { isRecord } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
8
8
  import { readPluginPackageVersion, resolveAmbientNodeProxyAgent } from "openclaw/plugin-sdk/extension-shared";
9
9
  import { captureChannelReadAuthority, captureEffectAuthority } from "openclaw/plugin-sdk/fetch-runtime";
10
10
  import { AsyncLocalStorage } from "node:async_hooks";
11
- // extensions/feishu/src/client-timeout.ts
11
+ //#region extensions/feishu/src/client-timeout.ts
12
12
  const FEISHU_HTTP_TIMEOUT_MS = 3e4;
13
13
  const FEISHU_HTTP_TIMEOUT_MAX_MS = 3e5;
14
14
  const FEISHU_HTTP_TIMEOUT_ENV_VAR = "OPENCLAW_FEISHU_HTTP_TIMEOUT_MS";
@@ -16,7 +16,8 @@ function resolveConfiguredHttpTimeoutMs(creds) {
16
16
  const timeout = asPositiveFiniteNumber(creds.httpTimeoutMs) ?? parseStrictPositiveInteger(process.env[FEISHU_HTTP_TIMEOUT_ENV_VAR]) ?? asPositiveFiniteNumber(creds.config?.httpTimeoutMs) ?? 3e4;
17
17
  return Math.min(Math.max(Math.floor(timeout), 1), FEISHU_HTTP_TIMEOUT_MAX_MS);
18
18
  }
19
- // extensions/feishu/src/send-context.ts
19
+ //#endregion
20
+ //#region extensions/feishu/src/send-context.ts
20
21
  const sendScope = new AsyncLocalStorage();
21
22
  /** Mutation errors preserve uncertainty after earlier requests reached the provider. */
22
23
  function withFeishuRequestContext(assertCurrent, request) {
@@ -66,7 +67,8 @@ async function runBeforeFeishuMessageDispatch(operation) {
66
67
  throw new PlatformMessageNotDispatchedError(`Feishu media preparation failed before message dispatch: ${error instanceof Error ? error.message : String(error)}`, { cause: error });
67
68
  }
68
69
  }
69
- // extensions/feishu/src/client.ts
70
+ //#endregion
71
+ //#region extensions/feishu/src/client.ts
70
72
  var client_exports = /* @__PURE__ */ __exportAll({
71
73
  createEventDispatcher: () => createEventDispatcher,
72
74
  createFeishuClient: () => createFeishuClient,
@@ -339,4 +341,5 @@ function createEventDispatcher(account) {
339
341
  verificationToken: account.verificationToken
340
342
  });
341
343
  }
344
+ //#endregion
342
345
  export { getFeishuUserAgent as a, withFeishuMessageDispatch as c, FEISHU_HTTP_TIMEOUT_MS as d, resolveConfiguredHttpTimeoutMs as f, createFeishuWSClient as i, withFeishuRequestContext as l, createEventDispatcher as n, captureFeishuSendAuthority as o, createFeishuClient as r, runBeforeFeishuMessageDispatch as s, client_exports as t, withFeishuSendContext as u };
@@ -1,5 +1,5 @@
1
1
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
2
- // extensions/feishu/src/targets.ts
2
+ //#region 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_-]+$/;
@@ -38,7 +38,8 @@ function looksLikeFeishuId(raw) {
38
38
  if (trimmed.startsWith(OPEN_ID_PREFIX)) return true;
39
39
  return false;
40
40
  }
41
- // extensions/feishu/src/conversation-id.ts
41
+ //#endregion
42
+ //#region extensions/feishu/src/conversation-id.ts
42
43
  const SCOPED_CONVERSATION_PATTERNS = [
43
44
  ["group_topic_sender", /^(?<chatId>.+):topic:(?<topicId>[^:]+):sender:(?<senderOpenId>[^:]+)$/i],
44
45
  ["group_topic", /^(?<chatId>.+):topic:(?<topicId>[^:]+)$/i],
@@ -123,4 +124,5 @@ function buildFeishuModelOverrideParentCandidates(parentConversationId) {
123
124
  }
124
125
  return [chatId];
125
126
  }
127
+ //#endregion
126
128
  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, buildChannelConfigSchema, buildGroupEntrySchema, buildMultiAccountChannelSchema } from "openclaw/plugin-sdk/channel-config-schema";
8
8
  import { z } from "zod";
9
- // \0rolldown/runtime.js
9
+ //#region \0rolldown/runtime.js
10
10
  var __defProp = Object.defineProperty;
11
11
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -31,7 +31,8 @@ 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
- // extensions/feishu/src/accounts.ts
34
+ //#endregion
35
+ //#region extensions/feishu/src/accounts.ts
35
36
  var accounts_exports = /* @__PURE__ */ __exportAll({
36
37
  FeishuSecretRefUnavailableError: () => FeishuSecretRefUnavailableError,
37
38
  inspectFeishuCredentials: () => inspectFeishuCredentials,
@@ -210,14 +211,16 @@ function listEnabledFeishuAccounts(cfg) {
210
211
  accountId
211
212
  })).filter((account) => account.enabled && account.configured);
212
213
  }
213
- // extensions/feishu/src/external-keys.ts
214
+ //#endregion
215
+ //#region extensions/feishu/src/external-keys.ts
214
216
  const FEISHU_EXTERNAL_KEY_PATTERN = /^(?!\s)(?![\s\S]*\s$)(?![\s\S]*\.\.)[^\p{Cc}\p{Cs}/\\]{1,512}$/u;
215
217
  function normalizeFeishuExternalKey(value) {
216
218
  if (typeof value !== "string") return;
217
219
  const normalized = value.trim();
218
220
  return FEISHU_EXTERNAL_KEY_PATTERN.test(normalized) ? normalized : void 0;
219
221
  }
220
- // extensions/feishu/src/webhook-path.ts
222
+ //#endregion
223
+ //#region extensions/feishu/src/webhook-path.ts
221
224
  const DEFAULT_FEISHU_WEBHOOK_PATH = "/feishu/events";
222
225
  /** Normalize trusted configuration only; incoming request targets must remain unmodified. */
223
226
  function normalizeFeishuWebhookPath(value) {
@@ -228,7 +231,8 @@ function normalizeFeishuWebhookPath(value) {
228
231
  const emptyQuery = !parsed.search && parsed.href.endsWith("?") && !configured.includes("#") ? "?" : "";
229
232
  return `${parsed.pathname}${parsed.search}${emptyQuery}`;
230
233
  }
231
- // extensions/feishu/src/config-schema.ts
234
+ //#endregion
235
+ //#region extensions/feishu/src/config-schema.ts
232
236
  const ChannelActionsSchema = z.object({
233
237
  reactions: z.boolean().optional(),
234
238
  sticker: z.boolean().optional()
@@ -507,7 +511,8 @@ const FeishuConfigSchema = buildMultiAccountChannelSchema(FeishuConfigSchemaBase
507
511
  }
508
512
  });
509
513
  const FeishuChannelConfigSchema = buildChannelConfigSchema(FeishuConfigSchema, { jsonSchemaMode: "input" });
510
- // packages/normalization-core/src/record-coerce.ts
514
+ //#endregion
515
+ //#region packages/normalization-core/src/record-coerce.ts
511
516
  /** Type guard for non-array object records at browser-safe boundaries. */
512
517
  function isRecord$1(value) {
513
518
  return value !== null && typeof value === "object" && !Array.isArray(value);
@@ -516,7 +521,8 @@ function isRecord$1(value) {
516
521
  function asNullableRecord$1(value) {
517
522
  return isRecord$1(value) ? value : null;
518
523
  }
519
- // src/config/channel-config-normalization.ts
524
+ //#endregion
525
+ //#region src/config/channel-config-normalization.ts
520
526
  /** Applies one channel-specific doctor migration to every object-shaped account. */
521
527
  function normalizeChannelAccounts(params) {
522
528
  const rawAccounts = asNullableRecord$1(params.entry.accounts);
@@ -592,7 +598,8 @@ function normalizeChannelConfigEntries$1(params) {
592
598
  changes
593
599
  };
594
600
  }
595
- // src/plugin-sdk/legacy-webhook-listener-migration.ts
601
+ //#endregion
602
+ //#region src/plugin-sdk/legacy-webhook-listener-migration.ts
596
603
  /** Preserve explicitly configured webhook listeners while moving ingress onto Gateway routes. */
597
604
  function createLegacyWebhookListenerDoctorContract(params) {
598
605
  const portKey = params.portKey ?? "webhookPort";
@@ -662,11 +669,13 @@ function createLegacyWebhookListenerDoctorContract(params) {
662
669
  }
663
670
  };
664
671
  }
665
- // \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
672
+ //#endregion
673
+ //#region \0openclaw:bundled-sdk:openclaw/plugin-sdk/runtime-doctor-migrations
666
674
  var runtime_doctor_migrations_exports = /* @__PURE__ */ __exportAll({ createLegacyWebhookListenerDoctorContract: () => createLegacyWebhookListenerDoctorContract });
667
675
  import * as import_openclaw_plugin_sdk_runtime_doctor_migrations from "openclaw/plugin-sdk/runtime-doctor-migrations";
668
676
  __reExport(runtime_doctor_migrations_exports, import_openclaw_plugin_sdk_runtime_doctor_migrations);
669
- // extensions/feishu/src/doctor-contract.ts
677
+ //#endregion
678
+ //#region extensions/feishu/src/doctor-contract.ts
670
679
  const webhookListenerMigration = createLegacyWebhookListenerDoctorContract({
671
680
  channelKey: "feishu",
672
681
  defaultPort: 3e3,
@@ -836,4 +845,5 @@ function normalizeCompatibilityConfig({ cfg }) {
836
845
  historicalWebhookAccountIds: resolveHistoricalWebhookAccountIds(stray.config)
837
846
  };
838
847
  }
848
+ //#endregion
839
849
  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,8 +1,9 @@
1
1
  import { readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
2
- // extensions/feishu/src/json-response.ts
2
+ //#region extensions/feishu/src/json-response.ts
3
3
  /** Feishu control-plane JSON responses are tiny; 16 MiB leaves ample headroom. */
4
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
  }
8
+ //#endregion
8
9
  export { readFeishuJsonResponse as t };
@@ -1,4 +1,4 @@
1
- // extensions/feishu/src/message-action-contract.ts
1
+ //#region extensions/feishu/src/message-action-contract.ts
2
2
  const FEISHU_NATIVE_CHAT_TARGET_ALIASES = [
3
3
  "chatId",
4
4
  "chat_id",
@@ -18,4 +18,5 @@ const messageActionTargetAliases = {
18
18
  "list-pins": { aliases: ["chatId"] },
19
19
  "channel-info": { aliases: ["chatId"] }
20
20
  };
21
+ //#endregion
21
22
  export { messageActionTargetAliases as t };
@@ -1,11 +1,11 @@
1
- import { d as listEnabledFeishuAccounts, g as resolveFeishuRuntimeAccount } from "./doctor-contract-CWB6EycD.mjs";
2
- import { t as getFeishuRuntime } from "./runtime-6V3uDMw5.mjs";
3
- import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-BiQj7eM4.mjs";
1
+ import { d as listEnabledFeishuAccounts, g as resolveFeishuRuntimeAccount } from "./doctor-contract-BNXcJcWR.mjs";
2
+ import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.mjs";
3
+ import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-s0hiM44D.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 { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
8
- // extensions/feishu/src/bot-identity-cache.ts
8
+ //#region extensions/feishu/src/bot-identity-cache.ts
9
9
  const FEISHU_BOT_IDENTITY_CACHE_NAMESPACE = "feishu.bot-identity-cache";
10
10
  const FEISHU_BOT_IDENTITY_CACHE_MAX_ENTRIES = 128;
11
11
  function openFeishuBotIdentityCache() {
@@ -52,7 +52,8 @@ async function writeCachedFeishuBotIdentity(params) {
52
52
  fetchedAt: (/* @__PURE__ */ new Date()).toISOString()
53
53
  });
54
54
  }
55
- // extensions/feishu/src/monitor-startup-timeout.ts
55
+ //#endregion
56
+ //#region extensions/feishu/src/monitor-startup-timeout.ts
56
57
  const FEISHU_STARTUP_BOT_INFO_TIMEOUT_DEFAULT_MS = 3e4;
57
58
  const FEISHU_STARTUP_BOT_INFO_TIMEOUT_ENV = "OPENCLAW_FEISHU_STARTUP_PROBE_TIMEOUT_MS";
58
59
  function resolveStartupProbeTimeoutMs(env = process.env) {
@@ -65,7 +66,8 @@ function resolveStartupProbeTimeoutMs(env = process.env) {
65
66
  }
66
67
  return FEISHU_STARTUP_BOT_INFO_TIMEOUT_DEFAULT_MS;
67
68
  }
68
- // extensions/feishu/src/monitor.startup.ts
69
+ //#endregion
70
+ //#region extensions/feishu/src/monitor.startup.ts
69
71
  const FEISHU_STARTUP_BOT_INFO_TIMEOUT_MS = resolveStartupProbeTimeoutMs();
70
72
  async function fetchBotIdentityForMonitor(account, options = {}) {
71
73
  if (options.abortSignal?.aborted) return {};
@@ -119,8 +121,9 @@ async function fetchBotIdentityForMonitor(account, options = {}) {
119
121
  return {};
120
122
  }
121
123
  }
122
- // extensions/feishu/src/monitor.ts
123
- const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-DIvDEG0X.mjs"));
124
+ //#endregion
125
+ //#region extensions/feishu/src/monitor.ts
126
+ const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-Do-D6JD-.mjs"));
124
127
  async function monitorFeishuProvider(opts = {}) {
125
128
  const cfg = opts.config;
126
129
  if (!cfg) throw new Error("Config is required for Feishu monitor");
@@ -175,4 +178,5 @@ async function monitorFeishuProvider(opts = {}) {
175
178
  }
176
179
  await Promise.all(monitorPromises);
177
180
  }
181
+ //#endregion
178
182
  export { monitorFeishuProvider, fetchBotIdentityForMonitor as t };