test: complete bundled channel drift fixture

This commit is contained in:
Peter Steinberger
2026-05-02 02:28:31 +01:00
parent 3e63b7c112
commit 8a5f08ee13

View File

@@ -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 = {