UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 605 B
import { a as listLoadedChannelPlugins } from "./registry-loaded-NYWUyLLC.mjs"; //#region src/channels/plugins/lifecycle-startup.ts /** Invokes optional startup maintenance for loaded channel plugins. */ async function runChannelPluginStartupMaintenance(e) { for (const t of listLoadedChannelPlugins()) { const n = t.lifecycle?.runStartupMaintenance; if (!n) continue; try { await n(e); } catch (n) { e.log.warn?.(`${e.logPrefix?.trim() || "gateway"}: ${t.id} startup maintenance failed; continuing: ${String(n)}`); } } } //#endregion export { runChannelPluginStartupMaintenance as t };