mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 00:30:21 +00:00
refactor(daemon): share service description resolve
This commit is contained in:
@@ -75,6 +75,20 @@ export function formatGatewayServiceDescription(params?: {
|
||||
return `OpenClaw Gateway (${parts.join(", ")})`;
|
||||
}
|
||||
|
||||
export function resolveGatewayServiceDescription(params: {
|
||||
env: Record<string, string | undefined>;
|
||||
environment?: Record<string, string | undefined>;
|
||||
description?: string;
|
||||
}): string {
|
||||
return (
|
||||
params.description ??
|
||||
formatGatewayServiceDescription({
|
||||
profile: params.env.OPENCLAW_PROFILE,
|
||||
version: params.environment?.OPENCLAW_SERVICE_VERSION ?? params.env.OPENCLAW_SERVICE_VERSION,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
export function resolveNodeLaunchAgentLabel(): string {
|
||||
return NODE_LAUNCH_AGENT_LABEL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user