UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 445 B
//#region src/shared/env-var-candidates.ts /** Appends normalized, unique environment-variable candidates to a keyed bucket. */ function appendUniqueEnvVarCandidates(e, t, n) { const r = t.trim(); if (!r || n.length === 0) return; const i = e[r] ??= []; const a = new Set(i); for (const e of n) { const t = e.trim(); if (!t || a.has(t)) continue; a.add(t); i.push(t); } } //#endregion export { appendUniqueEnvVarCandidates as t };