@karmaniverous/jeeves
    Preparing search index...

    Function patchConfig

    Patch an OpenClaw config for plugin install or uninstall.

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

    The parsed OpenClaw config object (mutated in place).

    The plugin identifier.

    Whether to add or remove the plugin.

    Install provenance record (required when mode is 'add').

    Array of log messages describing changes made.

    • Patch an OpenClaw config for plugin install.

      Parameters

      • config: Record<string, unknown>

        The parsed OpenClaw config object (mutated in place).

      • pluginId: string

        The plugin identifier.

      • mode: "add"

        Install mode.

      • installRecord: PluginInstallRecord

        Install provenance record.

      Returns string[]

      Array of log messages describing changes made.

    • Patch an OpenClaw config for plugin uninstall.

      Parameters

      • config: Record<string, unknown>

        The parsed OpenClaw config object (mutated in place).

      • pluginId: string

        The plugin identifier.

      • mode: "remove"

        Uninstall mode.

      Returns string[]

      Array of log messages describing changes made.