From 8d50d0893677dc6f9472aa8cce0169e7dfed0d29 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 6 Jan 2026 23:29:38 +0100 Subject: [PATCH] style: format daemon runtime changes --- src/commands/configure.ts | 10 +++++----- src/commands/daemon-runtime.ts | 3 +-- src/commands/doctor.ts | 10 +++++----- src/commands/onboard-non-interactive.ts | 8 ++++---- src/daemon/program-args.ts | 4 +++- src/wizard/onboarding.ts | 10 +++++----- 6 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/commands/configure.ts b/src/commands/configure.ts index 04be1bcd8..027f35dd0 100644 --- a/src/commands/configure.ts +++ b/src/commands/configure.ts @@ -35,6 +35,11 @@ import { isRemoteEnvironment, loginAntigravityVpsAware, } from "./antigravity-oauth.js"; +import { + DEFAULT_GATEWAY_DAEMON_RUNTIME, + GATEWAY_DAEMON_RUNTIME_OPTIONS, + type GatewayDaemonRuntime, +} from "./daemon-runtime.js"; import { healthCommand } from "./health.js"; import { applyAuthProfileConfig, @@ -59,11 +64,6 @@ import { import { setupProviders } from "./onboard-providers.js"; import { promptRemoteGatewayConfig } from "./onboard-remote.js"; import { setupSkills } from "./onboard-skills.js"; -import { - DEFAULT_GATEWAY_DAEMON_RUNTIME, - GATEWAY_DAEMON_RUNTIME_OPTIONS, - type GatewayDaemonRuntime, -} from "./daemon-runtime.js"; import { applyOpenAICodexModelDefault, OPENAI_CODEX_DEFAULT_MODEL, diff --git a/src/commands/daemon-runtime.ts b/src/commands/daemon-runtime.ts index 8c22ceac5..4ec374efb 100644 --- a/src/commands/daemon-runtime.ts +++ b/src/commands/daemon-runtime.ts @@ -10,8 +10,7 @@ export const GATEWAY_DAEMON_RUNTIME_OPTIONS: Array<{ { value: "node", label: "Node (recommended)", - hint: - "Required for WhatsApp (Baileys WebSocket + Bun can corrupt memory on reconnect)", + hint: "Required for WhatsApp (Baileys WebSocket + Bun can corrupt memory on reconnect)", }, { value: "bun", diff --git a/src/commands/doctor.ts b/src/commands/doctor.ts index 707804e26..44f2ac5e2 100644 --- a/src/commands/doctor.ts +++ b/src/commands/doctor.ts @@ -34,6 +34,11 @@ import { defaultRuntime } from "../runtime.js"; import { readTelegramAllowFromStore } from "../telegram/pairing-store.js"; import { resolveTelegramToken } from "../telegram/token.js"; import { normalizeE164, resolveUserPath, sleep } from "../utils.js"; +import { + DEFAULT_GATEWAY_DAEMON_RUNTIME, + GATEWAY_DAEMON_RUNTIME_OPTIONS, + type GatewayDaemonRuntime, +} from "./daemon-runtime.js"; import { detectLegacyStateMigrations, runLegacyStateMigrations, @@ -45,11 +50,6 @@ import { guardCancel, printWizardHeader, } from "./onboard-helpers.js"; -import { - DEFAULT_GATEWAY_DAEMON_RUNTIME, - GATEWAY_DAEMON_RUNTIME_OPTIONS, - type GatewayDaemonRuntime, -} from "./daemon-runtime.js"; import { ensureSystemdUserLingerInteractive } from "./systemd-linger.js"; function resolveMode(cfg: ClawdbotConfig): "local" | "remote" { diff --git a/src/commands/onboard-non-interactive.ts b/src/commands/onboard-non-interactive.ts index 864de50ee..ae96a26cd 100644 --- a/src/commands/onboard-non-interactive.ts +++ b/src/commands/onboard-non-interactive.ts @@ -13,6 +13,10 @@ import { resolveGatewayService } from "../daemon/service.js"; import type { RuntimeEnv } from "../runtime.js"; import { defaultRuntime } from "../runtime.js"; import { resolveUserPath, sleep } from "../utils.js"; +import { + DEFAULT_GATEWAY_DAEMON_RUNTIME, + isGatewayDaemonRuntime, +} from "./daemon-runtime.js"; import { healthCommand } from "./health.js"; import { applyAuthProfileConfig, @@ -30,10 +34,6 @@ import type { OnboardMode, OnboardOptions, } from "./onboard-types.js"; -import { - DEFAULT_GATEWAY_DAEMON_RUNTIME, - isGatewayDaemonRuntime, -} from "./daemon-runtime.js"; import { ensureSystemdUserLingerNonInteractive } from "./systemd-linger.js"; export async function runNonInteractiveOnboarding( diff --git a/src/daemon/program-args.ts b/src/daemon/program-args.ts index d4175f224..81c768bc9 100644 --- a/src/daemon/program-args.ts +++ b/src/daemon/program-args.ts @@ -166,7 +166,9 @@ export async function resolveGatewayProgramArguments(params: { const repoRoot = resolveRepoRootForDev(); const devCliPath = path.join(repoRoot, "src", "index.ts"); await fs.access(devCliPath); - const bunPath = isBunRuntime(execPath) ? execPath : await resolveBunPath(); + const bunPath = isBunRuntime(execPath) + ? execPath + : await resolveBunPath(); return { programArguments: [bunPath, devCliPath, ...gatewayArgs], workingDirectory: repoRoot, diff --git a/src/wizard/onboarding.ts b/src/wizard/onboarding.ts index 2f38ce09e..beb405b68 100644 --- a/src/wizard/onboarding.ts +++ b/src/wizard/onboarding.ts @@ -21,6 +21,11 @@ import { isRemoteEnvironment, loginAntigravityVpsAware, } from "../commands/antigravity-oauth.js"; +import { + DEFAULT_GATEWAY_DAEMON_RUNTIME, + GATEWAY_DAEMON_RUNTIME_OPTIONS, + type GatewayDaemonRuntime, +} from "../commands/daemon-runtime.js"; import { healthCommand } from "../commands/health.js"; import { applyAuthProfileConfig, @@ -52,11 +57,6 @@ import type { OnboardOptions, ResetScope, } from "../commands/onboard-types.js"; -import { - DEFAULT_GATEWAY_DAEMON_RUNTIME, - GATEWAY_DAEMON_RUNTIME_OPTIONS, - type GatewayDaemonRuntime, -} from "../commands/daemon-runtime.js"; import { applyOpenAICodexModelDefault, OPENAI_CODEX_DEFAULT_MODEL,