diff --git a/src/config/plugin-auto-enable.prefer-over.test.ts b/src/config/plugin-auto-enable.prefer-over.test.ts index 75f4239b86d..d64564cda9e 100644 --- a/src/config/plugin-auto-enable.prefer-over.test.ts +++ b/src/config/plugin-auto-enable.prefer-over.test.ts @@ -41,6 +41,20 @@ function writeBundledChannelPackage(rootDir: string, channelId: string): void { }), "utf-8", ); + fs.writeFileSync( + path.join(pluginDir, "openclaw.plugin.json"), + JSON.stringify({ + id: channelId, + configSchema: { type: "object" }, + channels: [channelId], + }), + "utf-8", + ); + fs.writeFileSync( + path.join(pluginDir, "index.js"), + "export default { register() {} };\n", + "utf-8", + ); } const EMPTY_MANIFEST_REGISTRY: PluginManifestRegistry = {