feat: add exec host routing + node daemon
This commit is contained in:
@@ -4,6 +4,12 @@ export const GATEWAY_SYSTEMD_SERVICE_NAME = "clawdbot-gateway";
|
||||
export const GATEWAY_WINDOWS_TASK_NAME = "Clawdbot Gateway";
|
||||
export const GATEWAY_SERVICE_MARKER = "clawdbot";
|
||||
export const GATEWAY_SERVICE_KIND = "gateway";
|
||||
export const NODE_LAUNCH_AGENT_LABEL = "com.clawdbot.node";
|
||||
export const NODE_SYSTEMD_SERVICE_NAME = "clawdbot-node";
|
||||
export const NODE_WINDOWS_TASK_NAME = "Clawdbot Node";
|
||||
export const NODE_SERVICE_MARKER = "clawdbot";
|
||||
export const NODE_SERVICE_KIND = "node";
|
||||
export const NODE_WINDOWS_TASK_SCRIPT_NAME = "node.cmd";
|
||||
export const LEGACY_GATEWAY_LAUNCH_AGENT_LABELS = ["com.steipete.clawdbot.gateway"];
|
||||
export const LEGACY_GATEWAY_SYSTEMD_SERVICE_NAMES: string[] = [];
|
||||
export const LEGACY_GATEWAY_WINDOWS_TASK_NAMES: string[] = [];
|
||||
@@ -51,3 +57,21 @@ export function formatGatewayServiceDescription(params?: {
|
||||
if (parts.length === 0) return "Clawdbot Gateway";
|
||||
return `Clawdbot Gateway (${parts.join(", ")})`;
|
||||
}
|
||||
|
||||
export function resolveNodeLaunchAgentLabel(): string {
|
||||
return NODE_LAUNCH_AGENT_LABEL;
|
||||
}
|
||||
|
||||
export function resolveNodeSystemdServiceName(): string {
|
||||
return NODE_SYSTEMD_SERVICE_NAME;
|
||||
}
|
||||
|
||||
export function resolveNodeWindowsTaskName(): string {
|
||||
return NODE_WINDOWS_TASK_NAME;
|
||||
}
|
||||
|
||||
export function formatNodeServiceDescription(params?: { version?: string }): string {
|
||||
const version = params?.version?.trim();
|
||||
if (!version) return "Clawdbot Node Host";
|
||||
return `Clawdbot Node Host (v${version})`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user