mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 19:08:27 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -1,19 +1,16 @@
|
||||
// Default service labels (for backward compatibility and when no profile specified)
|
||||
export const GATEWAY_LAUNCH_AGENT_LABEL = "bot.molt.gateway";
|
||||
export const GATEWAY_SYSTEMD_SERVICE_NAME = "moltbot-gateway";
|
||||
export const GATEWAY_WINDOWS_TASK_NAME = "Moltbot Gateway";
|
||||
export const GATEWAY_SERVICE_MARKER = "moltbot";
|
||||
// Default service labels (canonical + legacy compatibility)
|
||||
export const GATEWAY_LAUNCH_AGENT_LABEL = "ai.openclaw.gateway";
|
||||
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 = "bot.molt.node";
|
||||
export const NODE_SYSTEMD_SERVICE_NAME = "moltbot-node";
|
||||
export const NODE_WINDOWS_TASK_NAME = "Moltbot Node";
|
||||
export const NODE_SERVICE_MARKER = "moltbot";
|
||||
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";
|
||||
export const NODE_SERVICE_MARKER = "openclaw";
|
||||
export const NODE_SERVICE_KIND = "node";
|
||||
export const NODE_WINDOWS_TASK_SCRIPT_NAME = "node.cmd";
|
||||
export const LEGACY_GATEWAY_LAUNCH_AGENT_LABELS = [
|
||||
"com.clawdbot.gateway",
|
||||
"com.steipete.clawdbot.gateway",
|
||||
];
|
||||
export const LEGACY_GATEWAY_LAUNCH_AGENT_LABELS: string[] = [];
|
||||
export const LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES: string[] = [];
|
||||
export const LEGACY_GATEWAY_WINDOWS_TASK_NAMES: string[] = [];
|
||||
|
||||
@@ -33,27 +30,24 @@ export function resolveGatewayLaunchAgentLabel(profile?: string): string {
|
||||
if (!normalized) {
|
||||
return GATEWAY_LAUNCH_AGENT_LABEL;
|
||||
}
|
||||
return `bot.molt.${normalized}`;
|
||||
return `ai.openclaw.${normalized}`;
|
||||
}
|
||||
|
||||
export function resolveLegacyGatewayLaunchAgentLabels(profile?: string): string[] {
|
||||
const normalized = normalizeGatewayProfile(profile);
|
||||
if (!normalized) {
|
||||
return [...LEGACY_GATEWAY_LAUNCH_AGENT_LABELS];
|
||||
}
|
||||
return [...LEGACY_GATEWAY_LAUNCH_AGENT_LABELS, `com.clawdbot.${normalized}`];
|
||||
void profile;
|
||||
return [];
|
||||
}
|
||||
|
||||
export function resolveGatewaySystemdServiceName(profile?: string): string {
|
||||
const suffix = resolveGatewayProfileSuffix(profile);
|
||||
if (!suffix) return GATEWAY_SYSTEMD_SERVICE_NAME;
|
||||
return `moltbot-gateway${suffix}`;
|
||||
return `openclaw-gateway${suffix}`;
|
||||
}
|
||||
|
||||
export function resolveGatewayWindowsTaskName(profile?: string): string {
|
||||
const normalized = normalizeGatewayProfile(profile);
|
||||
if (!normalized) return GATEWAY_WINDOWS_TASK_NAME;
|
||||
return `Moltbot Gateway (${normalized})`;
|
||||
return `OpenClaw Gateway (${normalized})`;
|
||||
}
|
||||
|
||||
export function formatGatewayServiceDescription(params?: {
|
||||
@@ -65,8 +59,8 @@ export function formatGatewayServiceDescription(params?: {
|
||||
const parts: string[] = [];
|
||||
if (profile) parts.push(`profile: ${profile}`);
|
||||
if (version) parts.push(`v${version}`);
|
||||
if (parts.length === 0) return "Moltbot Gateway";
|
||||
return `Moltbot Gateway (${parts.join(", ")})`;
|
||||
if (parts.length === 0) return "OpenClaw Gateway";
|
||||
return `OpenClaw Gateway (${parts.join(", ")})`;
|
||||
}
|
||||
|
||||
export function resolveNodeLaunchAgentLabel(): string {
|
||||
@@ -83,6 +77,6 @@ export function resolveNodeWindowsTaskName(): string {
|
||||
|
||||
export function formatNodeServiceDescription(params?: { version?: string }): string {
|
||||
const version = params?.version?.trim();
|
||||
if (!version) return "Moltbot Node Host";
|
||||
return `Moltbot Node Host (v${version})`;
|
||||
if (!version) return "OpenClaw Node Host";
|
||||
return `OpenClaw Node Host (v${version})`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user