@karmaniverous/jeeves
    Preparing search index...

    Function patchConfig

    • Patch an OpenClaw config for plugin install or uninstall.

      Parameters

      • config: Record<string, unknown>

        The parsed OpenClaw config object (mutated in place).

      • pluginId: string

        The plugin identifier.

      • mode: "add" | "remove"

        Whether to add or remove the plugin.

      Returns string[]

      Array of log messages describing changes made.

      Manages plugins.entries.{pluginId} and tools.alsoAllow. Idempotent: adding twice produces no duplicates; removing when absent produces no errors.