refactor: trim daemon runtime exports

This commit is contained in:
Peter Steinberger
2026-05-02 02:47:19 +01:00
parent a6ccb5f698
commit 225b71db1e
4 changed files with 8 additions and 8 deletions

View File

@@ -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";

View File

@@ -1,6 +1,6 @@
import { formatRuntimeStatusWithDetails } from "../infra/runtime-status.ts";
export type ServiceRuntimeLike = {
type ServiceRuntimeLike = {
status?: string;
state?: string;
subState?: string;

View File

@@ -79,7 +79,7 @@ async function resolveNodeVersion(
}
}
export type SystemNodeInfo = {
type SystemNodeInfo = {
path: string;
version: string | null;
supported: boolean;

View File

@@ -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<string, string | undefined>;
@@ -24,7 +24,7 @@ export function isEnvironmentFileOnlySource(
return source === "file";
}
export function parseManagedServiceEnvKeys(value: string | undefined): Set<string> {
function parseManagedServiceEnvKeys(value: string | undefined): Set<string> {
const keys = new Set<string>();
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<string, string | undefined>,
keys: Iterable<string>,
): void {