UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 473 B
import "./sqlite-wal-DfKCrDTQ.mjs"; import "./sqlite-strict-B8HPGv3j.mjs"; //#region src/plugin-sdk/plugin-state-runtime.ts function createPluginStateErrorReporter(getRuntime, plugin, feature, message, formatError = (error) => ({ error: String(error) })) { return (error) => { try { getRuntime()?.logging.getChildLogger({ plugin, feature }).warn(message, formatError(error)); } catch {} }; } //#endregion export { createPluginStateErrorReporter as t };