/** * Swarm chat Protomux pairing is **enabled by default** (stock builds). * Opt out with **`BARE_OS_PROTOMUX_CHAT_CHANNEL=0`**, **`false`**, **`off`**, or **`no`** (case-insensitive trim). * @param {Record | null | undefined} env */ export function bareOsProtMuxChatChannelEnabled(env) { if (!env || typeof env !== 'object') return true const v = env.BARE_OS_PROTOMUX_CHAT_CHANNEL if (v === undefined || v === null) return true const s = String(v).trim().toLowerCase() if (s === '') return true if (s === '0' || s === 'false' || s === 'off' || s === 'no') return false return true }