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:
parent
8755c509f8
commit
136d3049b7
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user