openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
14 lines (13 loc) • 689 B
JavaScript
import { i as resolveChannelConfigRecord, n as hasMeaningfulChannelConfigShallow } from "./channel-config-activation-BzEa8FnN.mjs";
import { t as getChannelEnvVars } from "./channel-env-vars-BQ2hZIUO.mjs";
//#region src/config/channel-configured-shared.ts
/** Detects static channel configuration from known env vars or `channels.<id>` config. */
function isStaticallyChannelConfigured(e, t, n = process.env) {
for (const r of getChannelEnvVars(t, {
config: e,
env: n
})) if (typeof n[r] === "string" && n[r].trim().length > 0) return true;
return hasMeaningfulChannelConfigShallow(resolveChannelConfigRecord(e, t), t);
}
//#endregion
export { isStaticallyChannelConfigured as t };