openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
18 lines (17 loc) • 755 B
JavaScript
import { t as commitConfigWithPendingPluginInstalls } from "./install-record-commit-BcOHJWUh.mjs";
import { n as refreshPluginRegistryAfterConfigMutation } from "./registry-refresh-MTlNOET3.mjs";
//#region src/commands/channels/plugin-config-persistence.ts
async function persistChannelPluginConfig(params) {
const committed = await commitConfigWithPendingPluginInstalls({
sourceConfig: params.cfg,
baseHash: params.baseHash,
writeOptions: params.writeOptions
});
if (committed.movedInstallRecords || params.pluginInstalled) await refreshPluginRegistryAfterConfigMutation({
reason: "source-changed",
logger: { warn: (message) => params.runtime.log(message) }
});
return committed;
}
//#endregion
export { persistChannelPluginConfig as t };