@wecom/wecom-openclaw-plugin 2026.3.24-beta.1 → 2026.3.24-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.
- package/dist/index.cjs.js +49 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +48 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/src/openclaw-compat.d.ts +10 -0
- package/package.json +1 -1
|
@@ -40,6 +40,16 @@ export declare function detectMime(bufferOrOpts: Buffer | DetectMimeOptions): Pr
|
|
|
40
40
|
* SDK 版本抛出的业务异常(如 LocalMediaAccessError)会直接透传。
|
|
41
41
|
*/
|
|
42
42
|
export declare function loadOutboundMediaFromUrl(mediaUrl: string, options?: OutboundMediaLoadOptions): Promise<WebMediaResult>;
|
|
43
|
+
/**
|
|
44
|
+
* 向 allowFrom 列表添加通配符 "*"(兼容入口)
|
|
45
|
+
*
|
|
46
|
+
* 当 dmPolicy 为 "open" 时,需要确保 allowFrom 中包含 "*" 以允许所有来源。
|
|
47
|
+
* 优先使用 SDK 版本(plugin-sdk/setup 或 plugin-sdk/core),不可用时使用 fallback。
|
|
48
|
+
*
|
|
49
|
+
* 注意:此函数为同步函数,与 SDK 原始签名一致。
|
|
50
|
+
* SDK 引用在模块加载时异步探测并缓存,调用时同步读取缓存。
|
|
51
|
+
*/
|
|
52
|
+
export declare function addWildcardAllowFrom(allowFrom: string[]): string[];
|
|
43
53
|
/**
|
|
44
54
|
* 获取默认媒体本地路径白名单(兼容入口)
|
|
45
55
|
*
|