feat: add configuration for plugin load paths in OpenClaw

Enhance the installBundledPlugins function to set the plugins.load.paths configuration for posthog-analytics using OpenClaw. This addition allows for dynamic loading of plugin paths, improving plugin management during the bootstrap process.
This commit is contained in:
kumarabhirup 2026-03-05 13:57:38 -08:00
parent 8755c509f8
commit 136d3049b7
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167

View File

@ -411,6 +411,17 @@ async function installBundledPlugins(params: {
errorMessage: "Failed to set plugins.allow for posthog-analytics.",
});
await runOpenClawOrThrow({
openclawCommand: params.openclawCommand,
args: [
"--profile", params.profile,
"config", "set",
"plugins.load.paths", JSON.stringify([pluginDest]),
],
timeoutMs: 30_000,
errorMessage: "Failed to set plugins.load.paths for posthog-analytics.",
});
if (params.posthogKey) {
await runOpenClawOrThrow({
openclawCommand: params.openclawCommand,