/** 插件名称(裸名,用于 plugins.allow 等 config key) */ export declare const PLUGIN_NAME = "wecom-openclaw-plugin"; /** 默认 npm 包名(带 scope,用于磁盘路径) */ export declare const DEFAULT_PACKAGE_NAME = "@wecom/wecom-openclaw-plugin"; /** Channel 名称 */ export declare const CHANNEL_NAME = "wecom"; /** 冲突的插件名称列表 */ export declare const CONFLICT_PLUGINS: string[]; /** npm 源列表(按优先级排序,第一个失败后依次尝试后续源) */ export declare const NPM_REGISTRIES: string[]; /** * OpenClaw 插件的安装布局 * - 'npm': 新版(>= 2026.5),插件在 ~/.openclaw/npm/node_modules/ * - 'extensions': 老版(< 2026.5),插件在 ~/.openclaw/extensions/ */ export type PluginLayout = 'npm' | 'extensions'; /** * 检测 OpenClaw 当前的插件安装布局。 * * 探测优先级: * 1. 新版路径(npm/node_modules)下已存在插件 → 'npm' * 2. 老版路径(extensions)下已存在插件 → 'extensions' * 3. 都不存在(首次安装)→ 默认 'npm'(新版优先) * * 进程内会缓存结果。如已知文件系统状态发生变化(如安装、卸载), * 应调用 resetPluginLayoutCache() 主动失效缓存。 */ export declare function detectPluginLayout(): PluginLayout; /** * 失效布局缓存。在执行可能改变安装状态的操作(install/uninstall/force)后调用。 */ export declare function resetPluginLayoutCache(): void; /** * 获取插件主安装路径(按当前布局动态返回) */ export declare function getPluginPath(): string; /** * 获取老版本(extensions 布局)下的插件路径,用于残留清理与兼容判定。 * 与当前布局无关,始终返回 ~/.openclaw/extensions/。 */ export declare function getLegacyPluginPath(): string; /** * 获取新版(npm 布局)下的插件路径,用于残留清理与兼容判定。 * 与当前布局无关,始终返回 ~/.openclaw/npm/node_modules/。 */ export declare function getNpmPluginPath(): string; /** * 获取所有需要清理的冲突插件目录路径。 * * 始终覆盖新版 + 老版所有可能位置,确保任何状态下都能彻底清理: * - npm/node_modules 下的 bare 名(wecom / openclaw-wecom / wecom-openclaw) * - npm/node_modules 下的 scoped 名(@wecom/、@tencent/) * - extensions 下的 bare 名(老版残留) */ export declare function getConflictPluginPaths(): string[]; //# sourceMappingURL=constants.d.ts.map