diff --git a/src/daemon/constants.ts b/src/daemon/constants.ts index 2c51532ad66..43a66f6a2c2 100644 --- a/src/daemon/constants.ts +++ b/src/daemon/constants.ts @@ -6,9 +6,9 @@ export const GATEWAY_SYSTEMD_SERVICE_NAME = "openclaw-gateway"; export const GATEWAY_WINDOWS_TASK_NAME = "OpenClaw Gateway"; export const GATEWAY_SERVICE_MARKER = "openclaw"; export const GATEWAY_SERVICE_KIND = "gateway"; -export const NODE_LAUNCH_AGENT_LABEL = "ai.openclaw.node"; -export const NODE_SYSTEMD_SERVICE_NAME = "openclaw-node"; -export const NODE_WINDOWS_TASK_NAME = "OpenClaw Node"; +const NODE_LAUNCH_AGENT_LABEL = "ai.openclaw.node"; +const NODE_SYSTEMD_SERVICE_NAME = "openclaw-node"; +const NODE_WINDOWS_TASK_NAME = "OpenClaw Node"; export const NODE_SERVICE_MARKER = "openclaw"; export const NODE_SERVICE_KIND = "node"; export const NODE_WINDOWS_TASK_SCRIPT_NAME = "node.cmd"; diff --git a/src/daemon/runtime-format.ts b/src/daemon/runtime-format.ts index a2248febc02..a7302811ca2 100644 --- a/src/daemon/runtime-format.ts +++ b/src/daemon/runtime-format.ts @@ -1,6 +1,6 @@ import { formatRuntimeStatusWithDetails } from "../infra/runtime-status.ts"; -export type ServiceRuntimeLike = { +type ServiceRuntimeLike = { status?: string; state?: string; subState?: string; diff --git a/src/daemon/runtime-paths.ts b/src/daemon/runtime-paths.ts index 798ceecdca0..ceec59f2cc6 100644 --- a/src/daemon/runtime-paths.ts +++ b/src/daemon/runtime-paths.ts @@ -79,7 +79,7 @@ async function resolveNodeVersion( } } -export type SystemNodeInfo = { +type SystemNodeInfo = { path: string; version: string | null; supported: boolean; diff --git a/src/daemon/service-managed-env.ts b/src/daemon/service-managed-env.ts index ea0ad68fa0e..84c25beea32 100644 --- a/src/daemon/service-managed-env.ts +++ b/src/daemon/service-managed-env.ts @@ -1,7 +1,7 @@ import { normalizeEnvVarKey } from "../infra/host-env-security.js"; import type { GatewayServiceEnvironmentValueSource } from "./service-types.js"; -export const MANAGED_SERVICE_ENV_KEYS_VAR = "OPENCLAW_SERVICE_MANAGED_ENV_KEYS"; +const MANAGED_SERVICE_ENV_KEYS_VAR = "OPENCLAW_SERVICE_MANAGED_ENV_KEYS"; type ServiceEnvCommand = { environment?: Record; @@ -24,7 +24,7 @@ export function isEnvironmentFileOnlySource( return source === "file"; } -export function parseManagedServiceEnvKeys(value: string | undefined): Set { +function parseManagedServiceEnvKeys(value: string | undefined): Set { const keys = new Set(); for (const entry of value?.split(",") ?? []) { const key = normalizeServiceEnvKey(entry.trim()); @@ -71,7 +71,7 @@ export function readManagedServiceEnvKeysFromEnvironment( return new Set(); } -export function deleteManagedServiceEnvKeys( +function deleteManagedServiceEnvKeys( environment: Record, keys: Iterable, ): void {