Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import type { RuntimeEnv } from "../runtime.js";
import type { NodeOnlyGatewayInfo } from "./status.node-mode.js";
import type { StatusScanOverviewResult } from "./status.scan-overview.ts";
export function logGatewayConnectionDetails(params: {
runtime: Pick<RuntimeEnv, "log">;
info: (value: string) => string;
message: string;
trailingBlankLine?: boolean;
}) {
params.runtime.log(params.info("Gateway connection:"));
for (const line of params.message.split("\n")) {
params.runtime.log(` ${line}`);
}
if (params.trailingBlankLine) {
params.runtime.log("");
}
}
export function resolveStatusAllConnectionDetails(params: {
nodeOnlyGateway: NodeOnlyGatewayInfo | null;
remoteUrlMissing: boolean;
gatewayConnection: StatusScanOverviewResult["gatewaySnapshot"]["gatewayConnection"];
bindMode?: string | null;
configPath: string;
}): string {
if (params.nodeOnlyGateway) {
return params.nodeOnlyGateway.connectionDetails;
}
if (!params.remoteUrlMissing) {
return params.gatewayConnection.message;
}
return [
"Gateway mode: remote",
"Gateway target: (missing gateway.remote.url)",
`Config: ${params.configPath}`,
`Bind: ${params.bindMode ?? "loopback"}`,
`Local fallback (used for probes): ${params.gatewayConnection.url}`,
"Fix: set gateway.remote.url, or set gateway.mode=local.",
].join("\n");
}
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland