chore(deadcode): drop node daemon runtime alias

This commit is contained in:
Vincent Koc
2026-06-22 00:32:42 +08:00
parent 6c42f73619
commit d64a27feeb
3 changed files with 8 additions and 25 deletions

View File

@@ -1,11 +1,11 @@
// Node-host daemon lifecycle commands for install, status, start, stop, and restart.
import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce";
import { colorize } from "../../../packages/terminal-core/src/theme.js";
import { buildNodeInstallPlan } from "../../commands/node-daemon-install-helpers.js";
import {
DEFAULT_NODE_DAEMON_RUNTIME,
isNodeDaemonRuntime,
} from "../../commands/node-daemon-runtime.js";
DEFAULT_GATEWAY_DAEMON_RUNTIME,
isGatewayDaemonRuntime,
} from "../../commands/daemon-runtime.js";
import { buildNodeInstallPlan } from "../../commands/node-daemon-install-helpers.js";
import {
resolveNodeLaunchAgentLabel,
resolveNodeSystemdServiceName,
@@ -106,8 +106,8 @@ export async function runNodeDaemonInstall(opts: NodeDaemonInstallOptions) {
return;
}
const runtimeRaw = opts.runtime ? opts.runtime : DEFAULT_NODE_DAEMON_RUNTIME;
if (!isNodeDaemonRuntime(runtimeRaw)) {
const runtimeRaw = opts.runtime ? opts.runtime : DEFAULT_GATEWAY_DAEMON_RUNTIME;
if (!isGatewayDaemonRuntime(runtimeRaw)) {
fail('Invalid --runtime (use "node" or "bun")');
return;
}