UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

29 lines (28 loc) • 1.04 kB
import { r as loadOpenClawPlugins } from "./loader-runtime-load-lwNg_N_C.mjs"; import "./active-runtime-registry-oKky0s3l.mjs"; //#region src/plugins/loader.ts /** Stable public facade for plugin loading and runtime-registry resolution. */ /** Loads a caller-owned registry value without changing the process-wide active registry. */ function loadPluginRegistryHandle(options = {}) { return loadOpenClawPlugins({ ...options, activate: false }); } /** Collects CLI descriptors through the same validation and instance owner as runtime loading. */ async function loadOpenClawPluginCliRegistry(options = {}) { return loadOpenClawPlugins({ ...options, mode: "cli-metadata", activate: false }); } /** Loads and installs the registry owned by a process composition root. */ function loadAndActivateRootPluginRegistry(options = {}) { return loadOpenClawPlugins({ ...options, activate: true }); } //#endregion export { loadOpenClawPluginCliRegistry as n, loadPluginRegistryHandle as r, loadAndActivateRootPluginRegistry as t };