Files
openclaw/src/commands/daemon-runtime.ts

22 lines
564 B
TypeScript
Raw Normal View History

export type GatewayDaemonRuntime = "node" | "bun";
export const DEFAULT_GATEWAY_DAEMON_RUNTIME: GatewayDaemonRuntime = "node";
export const GATEWAY_DAEMON_RUNTIME_OPTIONS: Array<{
value: GatewayDaemonRuntime;
label: string;
hint?: string;
}> = [
{
value: "node",
label: "Node (recommended)",
2026-01-08 10:29:40 +01:00
hint: "Required for WhatsApp (Baileys WebSocket). Bun can corrupt memory on reconnect.",
},
];
export function isGatewayDaemonRuntime(
value: string | undefined,
): value is GatewayDaemonRuntime {
return value === "node" || value === "bun";
}