Files
clawdbot/src/commands/daemon-runtime.ts
Peter Steinberger c379191f80 chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
2026-01-14 15:02:19 +00:00

20 lines
550 B
TypeScript

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)",
hint: "Required for WhatsApp + Telegram. Bun can corrupt memory on reconnect.",
},
];
export function isGatewayDaemonRuntime(value: string | undefined): value is GatewayDaemonRuntime {
return value === "node" || value === "bun";
}