Skip to content

Commit 225b71d

Browse files
committed
refactor: trim daemon runtime exports
1 parent a6ccb5f commit 225b71d

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/daemon/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export const GATEWAY_SYSTEMD_SERVICE_NAME = "openclaw-gateway";
66
export const GATEWAY_WINDOWS_TASK_NAME = "OpenClaw Gateway";
77
export const GATEWAY_SERVICE_MARKER = "openclaw";
88
export const GATEWAY_SERVICE_KIND = "gateway";
9-
export const NODE_LAUNCH_AGENT_LABEL = "ai.openclaw.node";
10-
export const NODE_SYSTEMD_SERVICE_NAME = "openclaw-node";
11-
export const NODE_WINDOWS_TASK_NAME = "OpenClaw Node";
9+
const NODE_LAUNCH_AGENT_LABEL = "ai.openclaw.node";
10+
const NODE_SYSTEMD_SERVICE_NAME = "openclaw-node";
11+
const NODE_WINDOWS_TASK_NAME = "OpenClaw Node";
1212
export const NODE_SERVICE_MARKER = "openclaw";
1313
export const NODE_SERVICE_KIND = "node";
1414
export const NODE_WINDOWS_TASK_SCRIPT_NAME = "node.cmd";

src/daemon/runtime-format.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { formatRuntimeStatusWithDetails } from "../infra/runtime-status.ts";
22

3-
export type ServiceRuntimeLike = {
3+
type ServiceRuntimeLike = {
44
status?: string;
55
state?: string;
66
subState?: string;

src/daemon/runtime-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function resolveNodeVersion(
7979
}
8080
}
8181

82-
export type SystemNodeInfo = {
82+
type SystemNodeInfo = {
8383
path: string;
8484
version: string | null;
8585
supported: boolean;

src/daemon/service-managed-env.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { normalizeEnvVarKey } from "../infra/host-env-security.js";
22
import type { GatewayServiceEnvironmentValueSource } from "./service-types.js";
33

4-
export const MANAGED_SERVICE_ENV_KEYS_VAR = "OPENCLAW_SERVICE_MANAGED_ENV_KEYS";
4+
const MANAGED_SERVICE_ENV_KEYS_VAR = "OPENCLAW_SERVICE_MANAGED_ENV_KEYS";
55

66
type ServiceEnvCommand = {
77
environment?: Record<string, string | undefined>;
@@ -24,7 +24,7 @@ export function isEnvironmentFileOnlySource(
2424
return source === "file";
2525
}
2626

27-
export function parseManagedServiceEnvKeys(value: string | undefined): Set<string> {
27+
function parseManagedServiceEnvKeys(value: string | undefined): Set<string> {
2828
const keys = new Set<string>();
2929
for (const entry of value?.split(",") ?? []) {
3030
const key = normalizeServiceEnvKey(entry.trim());
@@ -71,7 +71,7 @@ export function readManagedServiceEnvKeysFromEnvironment(
7171
return new Set();
7272
}
7373

74-
export function deleteManagedServiceEnvKeys(
74+
function deleteManagedServiceEnvKeys(
7575
environment: Record<string, string | undefined>,
7676
keys: Iterable<string>,
7777
): void {

0 commit comments

Comments
 (0)