UNPKG

@gguf/claw

Version:

Multi-channel AI gateway with extensible messaging integrations

33 lines (31 loc) 1.32 kB
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js"; import { M as getActivePluginRegistry, o as createSubsystemLogger } from "./entry.js"; import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-RzK9Zcks.js"; import { i as loadConfig } from "./config-B2kL1ciP.js"; import { g as loadOpenClawPlugins } from "./subagent-registry-C7Edpn23.js"; //#region src/cli/plugin-registry.ts var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded }); const log = createSubsystemLogger("plugins"); let pluginRegistryLoaded = false; function ensurePluginRegistryLoaded() { if (pluginRegistryLoaded) return; const active = getActivePluginRegistry(); if (active && (active.plugins.length > 0 || active.channels.length > 0 || active.tools.length > 0)) { pluginRegistryLoaded = true; return; } const config = loadConfig(); loadOpenClawPlugins({ config, workspaceDir: resolveAgentWorkspaceDir(config, resolveDefaultAgentId(config)), logger: { info: (msg) => log.info(msg), warn: (msg) => log.warn(msg), error: (msg) => log.error(msg), debug: (msg) => log.debug(msg) } }); pluginRegistryLoaded = true; } //#endregion export { plugin_registry_exports as n, ensurePluginRegistryLoaded as t };