@openclaw/feishu 2026.8.1 → 2026.8.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 (80) hide show
  1. package/dist/{accounts-RwSyseKr.js → .setup/accounts-DCZXPMf6.mjs} +1 -1
  2. package/dist/{app-registration-BpfUzS9m.js → .setup/app-registration-Bv4mvauR.mjs} +12 -9
  3. package/dist/{channel-CnpfeyYb.js → .setup/channel-CO5F5WkL.mjs} +51 -38
  4. package/dist/{channel.runtime-BhBg13ML.js → .setup/channel.runtime-DWzq4CVp.mjs} +6 -6
  5. package/dist/{chat-BjgJQ9dk.js → .setup/chat-V7-Beo2B.mjs} +12 -9
  6. package/dist/{client-DalLmpMf.js → .setup/client-CUQ4wWhw.mjs} +3 -2
  7. package/dist/{doctor-contract-DpQKxB7B.js → .setup/doctor-contract-CQAuBotF.mjs} +3 -2
  8. package/dist/{json-response-CheljwGr.js → .setup/json-response-DXajw_FU.mjs} +1 -1
  9. package/dist/{monitor.startup-D-gL82OO.js → .setup/monitor-BKZ_54VY.mjs} +63 -3
  10. package/dist/{monitor.account-B6Fv45B2.js → .setup/monitor.account-ODF3HwGB.mjs} +82 -74
  11. package/dist/{probe-CfhhR_0a.js → .setup/probe-pM5QNz98.mjs} +4 -4
  12. package/dist/{reply-delivery-result-7Jezz03B.js → .setup/reply-delivery-result-I4WJJxN8.mjs} +24 -18
  13. package/dist/.setup/runtime-setter-api-CG-RC4_r.mjs +3 -0
  14. package/dist/.setup/secret-contract-api-jmCkqVLc.mjs +3 -0
  15. package/dist/{security-audit-D6Fz2h6p.js → .setup/security-audit-CmiKKfU-.mjs} +1 -1
  16. package/dist/{security-audit-shared-BgpY7AiJ.js → .setup/security-audit-shared-CK5rVR-1.mjs} +2 -1
  17. package/dist/{session-conversation-DFCIvQK-.js → .setup/session-conversation-ept8rWxJ.mjs} +1 -1
  18. package/dist/.setup/setup-api-B5hgT1EV.mjs +3 -0
  19. package/dist/{subagent-hooks-DOwDqgg7.js → .setup/subagent-hooks-CDN4TAXr.mjs} +4 -4
  20. package/dist/{thread-bindings-DlDOHuiJ.js → .setup/thread-bindings-BiL1wGqK.mjs} +19 -8
  21. package/dist/api.js +32 -28
  22. package/dist/channel-plugin-api.js +1 -1
  23. package/dist/contract-api.js +3 -3
  24. package/dist/doctor-contract-api.js +1 -1
  25. package/dist/runtime-api.js +1 -1
  26. package/dist/runtime-setter-api.js +1 -1
  27. package/dist/secret-contract-api.js +1 -1
  28. package/dist/security-contract-api.js +1 -1
  29. package/dist/session-binding-contract-api.js +1 -1
  30. package/dist/session-key-api.js +1 -1
  31. package/dist/setup-api.js +1 -1
  32. package/dist/setup-entry.js +4 -3
  33. package/dist/subagent-hooks-api.js +1 -1
  34. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/CHANGELOG.md +62 -0
  35. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +233 -5
  36. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +387 -89
  37. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +3 -3
  38. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
  39. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +458 -98
  40. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +458 -98
  41. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
  42. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  43. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +568 -116
  44. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +4 -0
  45. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +4 -0
  46. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +64 -11
  47. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +134 -50
  48. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +52 -3
  49. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +19 -14
  50. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +107 -8
  51. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/buildFullPath.js +1 -13
  52. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +8 -2
  53. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +1 -1
  54. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/methodList.js +17 -0
  55. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/index.js +2 -1
  56. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
  57. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
  58. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/HttpStatusCode.js +11 -1
  59. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
  60. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  61. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/progressEventReducer.js +1 -1
  62. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +4 -2
  63. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +182 -6
  64. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/throttle.js +3 -2
  65. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/toFormData.js +14 -21
  66. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +134 -13
  67. package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +1 -1
  68. package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/lib/permessage-deflate.js +3 -1
  69. package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/package.json +1 -1
  70. package/node_modules/typebox/build/format/email.mjs +1 -1
  71. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +19 -1
  72. package/node_modules/typebox/package.json +1 -1
  73. package/package.json +5 -5
  74. package/dist/monitor-DRVC2e_W.js +0 -62
  75. /package/dist/{audio-preflight.runtime-BBfC9elv.js → .setup/audio-preflight.runtime-BBfC9elv.mjs} +0 -0
  76. /package/dist/{conversation-id-VYgGQ-GX.js → .setup/conversation-id-VYgGQ-GX.mjs} +0 -0
  77. /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
  78. /package/dist/{runtime-C5JxBWZp.js → .setup/runtime-C5JxBWZp.mjs} +0 -0
  79. /package/dist/{secret-contract-BCpDLdg9.js → .setup/secret-contract-BCpDLdg9.mjs} +0 -0
  80. /package/dist/{targets-BUjQ1TcA.js → .setup/targets-BUjQ1TcA.mjs} +0 -0
@@ -99,28 +99,18 @@ function toFormData(obj, formData, options) {
99
99
  // eslint-disable-next-line no-param-reassign
100
100
  formData = formData || new (PlatformFormData || FormData)();
101
101
 
102
- // eslint-disable-next-line no-param-reassign
103
- options = utils.toFlatObject(
104
- options,
105
- {
106
- metaTokens: true,
107
- dots: false,
108
- indexes: false,
109
- },
110
- false,
111
- function defined(option, source) {
112
- // eslint-disable-next-line no-eq-null,eqeqeq
113
- return !utils.isUndefined(source[option]);
114
- }
115
- );
102
+ const option = (name, fallback) => {
103
+ const value = utils.getSafeProp(options, name);
104
+ return utils.isUndefined(value) ? fallback : value;
105
+ };
116
106
 
117
- const metaTokens = options.metaTokens;
107
+ const metaTokens = option('metaTokens', true);
118
108
  // eslint-disable-next-line no-use-before-define
119
- const visitor = options.visitor || defaultVisitor;
120
- const dots = options.dots;
121
- const indexes = options.indexes;
122
- const _Blob = options.Blob || (typeof Blob !== 'undefined' && Blob);
123
- const maxDepth = options.maxDepth === undefined ? DEFAULT_FORM_DATA_MAX_DEPTH : options.maxDepth;
109
+ const visitor = option('visitor') || defaultVisitor;
110
+ const dots = option('dots', false);
111
+ const indexes = option('indexes', false);
112
+ const _Blob = option('Blob') || (typeof Blob !== 'undefined' && Blob);
113
+ const maxDepth = option('maxDepth', DEFAULT_FORM_DATA_MAX_DEPTH);
124
114
  const useBlob = _Blob && utils.isSpecCompliantForm(formData);
125
115
  const stack = [];
126
116
 
@@ -150,7 +140,10 @@ function toFormData(obj, formData, options) {
150
140
  if (PlatformBuffer && PlatformBuffer.isBufferAvailable()) {
151
141
  return PlatformBuffer.from(value);
152
142
  }
153
- throw new AxiosError('Blob is not supported. Use a Buffer instead.', AxiosError.ERR_NOT_SUPPORT);
143
+ throw new AxiosError(
144
+ 'Blob is not supported. Use a Buffer instead.',
145
+ AxiosError.ERR_NOT_SUPPORT
146
+ );
154
147
  }
155
148
 
156
149
  return value;
@@ -15,12 +15,65 @@ const hasOwnProperty = (
15
15
  hasOwnProperty.call(obj, prop)
16
16
  )(Object.prototype);
17
17
 
18
+ const isUnsafeObjectKey = (prop) =>
19
+ typeof prop === 'string' &&
20
+ (prop === '__proto__' || prop === 'constructor' || prop === 'prototype');
21
+
22
+ /**
23
+ * Determine whether an inherited object must be treated as a shared-prototype
24
+ * boundary. Cross-realm Object.prototype objects cannot be distinguished
25
+ * reliably from application-created null-prototype objects because their
26
+ * properties are mutable, so all inherited terminal prototypes are excluded
27
+ * as a fail-closed boundary. A null-prototype source still keeps its own
28
+ * properties, as produced by mergeConfig and other safe materialization paths.
29
+ *
30
+ * @param {*} obj The object to inspect
31
+ * @param {*} prototype The object's prototype
32
+ * @param {boolean} source Whether obj is the original traversal source
33
+ *
34
+ * @returns {boolean} True when obj is a safe prototype traversal boundary
35
+ */
36
+ const isPrototypeBoundary = (obj, prototype, source) =>
37
+ obj === Object.prototype || (!source && prototype === null);
38
+
39
+ /**
40
+ * Determine whether an object can retain its identity through code paths that
41
+ * add, replace, and remove config properties without bypassing unsafe-key
42
+ * filtering. Immutable objects, unsafe-key-bearing objects, and objects with
43
+ * accessor or restricted data properties must be materialized instead.
44
+ *
45
+ * @param {*} obj The object to inspect
46
+ *
47
+ * @returns {boolean} True when every own property is safe and fully mutable
48
+ */
49
+ const isSafeAndFullyMutable = (obj) => {
50
+ if (!Object.isExtensible(obj)) {
51
+ return false;
52
+ }
53
+
54
+ const props = Object.getOwnPropertyNames(obj);
55
+
56
+ if (Object.getOwnPropertySymbols) {
57
+ props.push(...Object.getOwnPropertySymbols(obj));
58
+ }
59
+
60
+ return props.every((prop) => {
61
+ if (isUnsafeObjectKey(prop)) {
62
+ return false;
63
+ }
64
+
65
+ const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
66
+
67
+ return !!descriptor && descriptor.configurable && descriptor.writable === true;
68
+ });
69
+ };
70
+
18
71
  /**
19
- * Walk the prototype chain (excluding the shared Object.prototype) looking for
20
- * an own `prop`. This distinguishes genuine own/inherited members — including
21
- * class accessors and template prototypes — from members injected via
22
- * Object.prototype pollution (e.g. `Object.prototype.username = '...'`), which
23
- * live on Object.prototype itself and are therefore never matched.
72
+ * Walk the prototype chain (excluding the source realm's Object.prototype)
73
+ * looking for an own `prop`. This distinguishes genuine own/inherited members
74
+ * — including class accessors and template prototypes — from members injected
75
+ * via Object.prototype pollution (e.g. `Object.prototype.username = '...'`),
76
+ * which live on Object.prototype itself and are therefore never matched.
24
77
  *
25
78
  * @param {*} thing The value whose chain to inspect
26
79
  * @param {string|symbol} prop The property key to look for
@@ -31,16 +84,22 @@ const hasOwnInPrototypeChain = (thing, prop) => {
31
84
  let obj = thing;
32
85
  const seen = [];
33
86
 
34
- while (obj != null && obj !== Object.prototype) {
87
+ while (obj != null) {
35
88
  if (seen.indexOf(obj) !== -1) {
36
89
  return false;
37
90
  }
38
91
  seen.push(obj);
39
92
 
93
+ const prototype = getPrototypeOf(obj);
94
+
95
+ if (isPrototypeBoundary(obj, prototype, obj === thing)) {
96
+ return false;
97
+ }
98
+
40
99
  if (hasOwnProperty(obj, prop)) {
41
100
  return true;
42
101
  }
43
- obj = getPrototypeOf(obj);
102
+ obj = prototype;
44
103
  }
45
104
  return false;
46
105
  };
@@ -59,6 +118,69 @@ const hasOwnInPrototypeChain = (thing, prop) => {
59
118
  const getSafeProp = (obj, prop) =>
60
119
  obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
61
120
 
121
+ /**
122
+ * Flatten an object and its application-defined prototype chain into a
123
+ * null-prototype object. Members inherited only from the source realm's
124
+ * Object.prototype are deliberately excluded, while class/template members
125
+ * below that boundary are preserved.
126
+ *
127
+ * @param {*} thing The value to flatten
128
+ *
129
+ * @returns {*} A null-prototype copy, or the original value when it is already
130
+ * structurally safe or is not an object
131
+ */
132
+ const toSafeFlatObject = (thing) => {
133
+ if (thing == null || (typeof thing !== 'object' && typeof thing !== 'function')) {
134
+ return thing;
135
+ }
136
+
137
+ const sourcePrototype = getPrototypeOf(thing);
138
+
139
+ if (sourcePrototype === null && isSafeAndFullyMutable(thing)) {
140
+ return thing;
141
+ }
142
+
143
+ const result = Object.create(null);
144
+ const merged = Object.create(null);
145
+ const seen = [];
146
+ let current = thing;
147
+
148
+ while (current != null) {
149
+ if (seen.indexOf(current) !== -1) {
150
+ break;
151
+ }
152
+
153
+ seen.push(current);
154
+
155
+ const prototype = current === thing ? sourcePrototype : getPrototypeOf(current);
156
+
157
+ if (isPrototypeBoundary(current, prototype, current === thing)) {
158
+ break;
159
+ }
160
+
161
+ const props = Object.getOwnPropertyNames(current);
162
+
163
+ if (Object.getOwnPropertySymbols) {
164
+ props.push(...Object.getOwnPropertySymbols(current));
165
+ }
166
+
167
+ for (const prop of props) {
168
+ if (isUnsafeObjectKey(prop)) {
169
+ continue;
170
+ }
171
+
172
+ if (!hasOwnProperty(merged, prop)) {
173
+ result[prop] = thing[prop];
174
+ merged[prop] = true;
175
+ }
176
+ }
177
+
178
+ current = prototype;
179
+ }
180
+
181
+ return result;
182
+ };
183
+
62
184
  const kindOf = ((cache) => (thing) => {
63
185
  const str = toString.call(thing);
64
186
  return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
@@ -190,12 +312,10 @@ const isPlainObject = (val) => {
190
312
 
191
313
  const prototype = getPrototypeOf(val);
192
314
  return (
193
- (prototype === null ||
194
- prototype === Object.prototype ||
195
- getPrototypeOf(prototype) === null) &&
196
- // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
197
- // Symbol.iterator as evidence the value is a tagged/iterable type rather
198
- // than a plain object, while ignoring keys injected onto Object.prototype.
315
+ (prototype === null || prototype === Object.prototype || getPrototypeOf(prototype) === null) &&
316
+ // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
317
+ // evidence the value is tagged/iterable, while ignoring members reachable
318
+ // only through shared or terminal prototype boundaries.
199
319
  !hasOwnInPrototypeChain(val, toStringTag) &&
200
320
  !hasOwnInPrototypeChain(val, iterator)
201
321
  );
@@ -1009,6 +1129,7 @@ export default {
1009
1129
  hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
1010
1130
  hasOwnInPrototypeChain,
1011
1131
  getSafeProp,
1132
+ toSafeFlatObject,
1012
1133
  reduceDescriptors,
1013
1134
  freezeMethods,
1014
1135
  toObjectSet,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axios",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Promise based HTTP client for the browser and node.js",
5
5
  "main": "./dist/node/axios.cjs",
6
6
  "module": "./index.js",
@@ -167,7 +167,9 @@ class PerMessageDeflate {
167
167
  (typeof opts.serverMaxWindowBits === 'number' &&
168
168
  opts.serverMaxWindowBits > params.server_max_window_bits))) ||
169
169
  (typeof opts.clientMaxWindowBits === 'number' &&
170
- !params.client_max_window_bits)
170
+ (typeof params.client_max_window_bits === 'number'
171
+ ? opts.clientMaxWindowBits > params.client_max_window_bits
172
+ : !params.client_max_window_bits))
171
173
  ) {
172
174
  return false;
173
175
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws",
3
- "version": "8.21.1",
3
+ "version": "8.21.3",
4
4
  "description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
5
5
  "keywords": [
6
6
  "HyBi",
@@ -1,4 +1,4 @@
1
- const Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\.)*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
1
+ const Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\[\x20-\x7e])*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
2
2
  /**
3
3
  * Returns true if the value is an Email
4
4
  * @specification https://datatracker.ietf.org/doc/html/rfc5322
@@ -1,6 +1,9 @@
1
1
  import * as FormatBidi from './format/bidi.mjs';
2
2
  import * as LabelUnicode from './label/unicode.mjs';
3
3
  import * as LabelPuny from './label/puny.mjs';
4
+ // ------------------------------------------------------------------
5
+ // IsLabel
6
+ // ------------------------------------------------------------------
4
7
  function IsValidLabelLength(value) {
5
8
  return value.length > 0 && value.length <= 63;
6
9
  }
@@ -8,9 +11,24 @@ function IsLabel(value) {
8
11
  return IsValidLabelLength(value) && (LabelPuny.IsPunyLabel(value) ||
9
12
  LabelUnicode.IsUnicodeLabel(value));
10
13
  }
14
+ // ------------------------------------------------------------------
15
+ // NormalizeHostname
16
+ //
17
+ // Normalizes a hostname for label validation. Normalizes for NFC
18
+ // such that equivalent codepoint sequences can be uniformly
19
+ // compared. It also removes codepoints that IDNA mapping ignores,
20
+ // and converts full stop variants to ASCII '.' so the hostname can
21
+ // be split into labels.
22
+ // ------------------------------------------------------------------
11
23
  function NormalizeHostname(value) {
12
- return value.normalize('NFC').replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.');
24
+ return value
25
+ .normalize('NFC')
26
+ .replace(/[\u00ad\u034f\u180b-\u180d\u200b\ufe00-\ufe0f\u{e0100}-\u{e01ef}]/gu, '') // RE_IGNORED_MAPPING
27
+ .replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.'); // RE_FULL_STOP_MAPPING
13
28
  }
29
+ // ------------------------------------------------------------------
30
+ // IsIdnHostname
31
+ // ------------------------------------------------------------------
14
32
  export function IsIdnHostname(value) {
15
33
  if (value.length === 0 || value.includes(' '))
16
34
  return false;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typebox",
3
3
  "description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
4
- "version": "1.3.16",
4
+ "version": "1.3.17",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "jsonschema"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/feishu",
3
- "version": "2026.8.1",
3
+ "version": "2026.8.33",
4
4
  "description": "OpenClaw Feishu/Lark channel plugin for chats and workplace tools (community maintained by @m1heng).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,11 +12,11 @@
12
12
  "mdast-util-from-markdown": "2.0.3",
13
13
  "mdast-util-gfm-table": "2.0.0",
14
14
  "micromark-extension-gfm-table": "2.1.1",
15
- "typebox": "1.3.16",
15
+ "typebox": "1.3.17",
16
16
  "zod": "4.4.3"
17
17
  },
18
18
  "peerDependencies": {
19
- "openclaw": ">=2026.8.1"
19
+ "openclaw": ">=2026.8.33"
20
20
  },
21
21
  "peerDependenciesMeta": {
22
22
  "openclaw": {
@@ -62,10 +62,10 @@
62
62
  "minHostVersion": ">=2026.5.29"
63
63
  },
64
64
  "compat": {
65
- "pluginApi": ">=2026.8.1"
65
+ "pluginApi": ">=2026.8.33"
66
66
  },
67
67
  "build": {
68
- "openclawVersion": "2026.8.1"
68
+ "openclawVersion": "2026.8.33"
69
69
  },
70
70
  "release": {
71
71
  "publishToClawHub": true,
@@ -1,62 +0,0 @@
1
- import { r as listEnabledFeishuAccounts, s as resolveFeishuRuntimeAccount } from "./accounts-RwSyseKr.js";
2
- import { t as fetchBotIdentityForMonitor } from "./monitor.startup-D-gL82OO.js";
3
- import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
4
- //#region extensions/feishu/src/monitor.ts
5
- const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-B6Fv45B2.js"));
6
- async function monitorFeishuProvider(opts = {}) {
7
- const cfg = opts.config;
8
- if (!cfg) throw new Error("Config is required for Feishu monitor");
9
- const log = opts.runtime?.log ?? console.log;
10
- if (opts.accountId) {
11
- const account = resolveFeishuRuntimeAccount({
12
- cfg,
13
- accountId: opts.accountId
14
- }, { requireEventSecrets: true });
15
- if (!account.enabled || !account.configured) throw new Error(`Feishu account "${opts.accountId}" not configured or disabled`);
16
- const { monitorSingleAccount } = await loadMonitorAccountRuntime();
17
- return monitorSingleAccount({
18
- cfg,
19
- account,
20
- channelRuntime: opts.channelRuntime,
21
- runtime: opts.runtime,
22
- abortSignal: opts.abortSignal,
23
- ...opts.statusSink ? { statusSink: opts.statusSink } : {}
24
- });
25
- }
26
- const accounts = listEnabledFeishuAccounts(cfg);
27
- if (accounts.length === 0) throw new Error("No enabled Feishu accounts configured");
28
- log(`feishu: starting ${accounts.length} account(s): ${accounts.map((a) => a.accountId).join(", ")}`);
29
- const { monitorSingleAccount } = await loadMonitorAccountRuntime();
30
- const monitorPromises = [];
31
- for (const account of accounts) {
32
- if (opts.abortSignal?.aborted) {
33
- log("feishu: abort signal received during startup preflight; stopping startup");
34
- break;
35
- }
36
- const { botOpenId, botName, source } = await fetchBotIdentityForMonitor(account, {
37
- runtime: opts.runtime,
38
- abortSignal: opts.abortSignal
39
- });
40
- if (opts.abortSignal?.aborted) {
41
- log("feishu: abort signal received during startup preflight; stopping startup");
42
- break;
43
- }
44
- monitorPromises.push(monitorSingleAccount({
45
- cfg,
46
- account,
47
- channelRuntime: opts.channelRuntime,
48
- runtime: opts.runtime,
49
- abortSignal: opts.abortSignal,
50
- botOpenIdSource: {
51
- kind: "prefetched",
52
- botOpenId,
53
- botName,
54
- source
55
- },
56
- ...opts.statusSink ? { statusSink: opts.statusSink } : {}
57
- }));
58
- }
59
- await Promise.all(monitorPromises);
60
- }
61
- //#endregion
62
- export { monitorFeishuProvider };