chore(deadcode): drop node daemon runtime alias · openclaw/openclaw@d64a27f
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Node-host daemon lifecycle commands for install, status, start, stop, and restart. |
2 | 2 | import { normalizeOptionalString } from "@openclaw/normalization-core/string-coerce"; |
3 | 3 | import { colorize } from "../../../packages/terminal-core/src/theme.js"; |
4 | | -import { buildNodeInstallPlan } from "../../commands/node-daemon-install-helpers.js"; |
5 | 4 | import { |
6 | | -DEFAULT_NODE_DAEMON_RUNTIME, |
7 | | -isNodeDaemonRuntime, |
8 | | -} from "../../commands/node-daemon-runtime.js"; |
| 5 | +DEFAULT_GATEWAY_DAEMON_RUNTIME, |
| 6 | +isGatewayDaemonRuntime, |
| 7 | +} from "../../commands/daemon-runtime.js"; |
| 8 | +import { buildNodeInstallPlan } from "../../commands/node-daemon-install-helpers.js"; |
9 | 9 | import { |
10 | 10 | resolveNodeLaunchAgentLabel, |
11 | 11 | resolveNodeSystemdServiceName, |
@@ -106,8 +106,8 @@ export async function runNodeDaemonInstall(opts: NodeDaemonInstallOptions) {
|
106 | 106 | return; |
107 | 107 | } |
108 | 108 | |
109 | | -const runtimeRaw = opts.runtime ? opts.runtime : DEFAULT_NODE_DAEMON_RUNTIME; |
110 | | -if (!isNodeDaemonRuntime(runtimeRaw)) { |
| 109 | +const runtimeRaw = opts.runtime ? opts.runtime : DEFAULT_GATEWAY_DAEMON_RUNTIME; |
| 110 | +if (!isGatewayDaemonRuntime(runtimeRaw)) { |
111 | 111 | fail('Invalid --runtime (use "node" or "bun")'); |
112 | 112 | return; |
113 | 113 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。