mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
refactor: trim daemon runtime exports
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { formatRuntimeStatusWithDetails } from "../infra/runtime-status.ts";
|
||||
|
||||
export type ServiceRuntimeLike = {
|
||||
type ServiceRuntimeLike = {
|
||||
status?: string;
|
||||
state?: string;
|
||||
subState?: string;
|
||||
|
||||
@@ -79,7 +79,7 @@ async function resolveNodeVersion(
|
||||
}
|
||||
}
|
||||
|
||||
export type SystemNodeInfo = {
|
||||
type SystemNodeInfo = {
|
||||
path: string;
|
||||
version: string | null;
|
||||
supported: boolean;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user