Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import type { DmPolicy } from "openclaw/plugin-sdk/config-runtime";
import { addWildcardAllowFrom, normalizeAllowFromEntries } from "openclaw/plugin-sdk/setup";
import type { MatrixConfig } from "./types.js";
type MatrixDmAllowFrom = NonNullable<MatrixConfig["dm"]>["allowFrom"];
export function resolveMatrixSetupDmAllowFrom(
policy: DmPolicy,
allowFrom: MatrixDmAllowFrom,
): string[] {
if (policy === "open") {
return addWildcardAllowFrom(allowFrom);
}
return normalizeAllowFromEntries(allowFrom ?? []).filter((entry) => entry !== "*");
}
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland