Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import type { OpenClawConfig } from "../config/types.openclaw.js";
import { trimToUndefined, type ExplicitGatewayAuth } from "./credentials.js";
export function hasExplicitGatewayConnectionAuth(auth?: ExplicitGatewayAuth): boolean {
return Boolean(trimToUndefined(auth?.token) || trimToUndefined(auth?.password));
}
export function canSkipGatewayConfigLoad(params: {
config?: OpenClawConfig;
urlOverride?: string;
explicitAuth?: ExplicitGatewayAuth;
}): boolean {
return (
!params.config &&
Boolean(trimToUndefined(params.urlOverride)) &&
hasExplicitGatewayConnectionAuth(params.explicitAuth)
);
}
export function isGatewayConfigBypassCommandPath(commandPath: readonly string[]): boolean {
return commandPath[0] === "cron";
}
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland