refactor: trim daemon runtime exports · openclaw/openclaw@225b71d
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,9 +6,9 @@ export const GATEWAY_SYSTEMD_SERVICE_NAME = "openclaw-gateway";
|
6 | 6 | export const GATEWAY_WINDOWS_TASK_NAME = "OpenClaw Gateway"; |
7 | 7 | export const GATEWAY_SERVICE_MARKER = "openclaw"; |
8 | 8 | 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"; |
12 | 12 | export const NODE_SERVICE_MARKER = "openclaw"; |
13 | 13 | export const NODE_SERVICE_KIND = "node"; |
14 | 14 | export const NODE_WINDOWS_TASK_SCRIPT_NAME = "node.cmd"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { formatRuntimeStatusWithDetails } from "../infra/runtime-status.ts"; |
2 | 2 | |
3 | | -export type ServiceRuntimeLike = { |
| 3 | +type ServiceRuntimeLike = { |
4 | 4 | status?: string; |
5 | 5 | state?: string; |
6 | 6 | subState?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -79,7 +79,7 @@ async function resolveNodeVersion(
|
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
82 | | -export type SystemNodeInfo = { |
| 82 | +type SystemNodeInfo = { |
83 | 83 | path: string; |
84 | 84 | version: string | null; |
85 | 85 | supported: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { normalizeEnvVarKey } from "../infra/host-env-security.js"; |
2 | 2 | import type { GatewayServiceEnvironmentValueSource } from "./service-types.js"; |
3 | 3 | |
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"; |
5 | 5 | |
6 | 6 | type ServiceEnvCommand = { |
7 | 7 | environment?: Record<string, string | undefined>; |
@@ -24,7 +24,7 @@ export function isEnvironmentFileOnlySource(
|
24 | 24 | return source === "file"; |
25 | 25 | } |
26 | 26 | |
27 | | -export function parseManagedServiceEnvKeys(value: string | undefined): Set<string> { |
| 27 | +function parseManagedServiceEnvKeys(value: string | undefined): Set<string> { |
28 | 28 | const keys = new Set<string>(); |
29 | 29 | for (const entry of value?.split(",") ?? []) { |
30 | 30 | const key = normalizeServiceEnvKey(entry.trim()); |
@@ -71,7 +71,7 @@ export function readManagedServiceEnvKeysFromEnvironment(
|
71 | 71 | return new Set(); |
72 | 72 | } |
73 | 73 | |
74 | | -export function deleteManagedServiceEnvKeys( |
| 74 | +function deleteManagedServiceEnvKeys( |
75 | 75 | environment: Record<string, string | undefined>, |
76 | 76 | keys: Iterable<string>, |
77 | 77 | ): void { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。