mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 20:31:37 +00:00
refactor(mac): make app node a CLI capability superset (#105642)
* refactor(mac): reuse CLI node-host runtime * fix(mac): prefer checkout CLI in debug builds * chore: leave release notes to release automation * chore(mac): sync native string inventory * chore(mac): refresh native locale artifacts * fix(node): satisfy native and deadcode gates
This commit is contained in:
committed by
GitHub
parent
f15a5e566b
commit
d287c9b414
@@ -5,6 +5,7 @@ import { formatDocsLink } from "../../../packages/terminal-core/src/links.js";
|
||||
import { theme } from "../../../packages/terminal-core/src/theme.js";
|
||||
import { loadNodeHostConfig } from "../../node-host/config.js";
|
||||
import { runNodeHost } from "../../node-host/runner.js";
|
||||
import { runNodeHostWorker } from "../../node-host/worker.js";
|
||||
import { defaultRuntime } from "../../runtime.js";
|
||||
import { parsePort } from "../daemon-cli/shared.js";
|
||||
import { formatInvalidPortOption } from "../error-format.js";
|
||||
@@ -46,6 +47,13 @@ export function registerNodeCli(program: Command) {
|
||||
])}\n\n${theme.muted("Docs:")} ${formatDocsLink("/cli/node", "docs.openclaw.ai/cli/node")}\n`,
|
||||
);
|
||||
|
||||
node
|
||||
.command("worker", { hidden: true })
|
||||
.description("Run the private macOS app node-host worker")
|
||||
.action(async () => {
|
||||
await runNodeHostWorker();
|
||||
});
|
||||
|
||||
node
|
||||
.command("run")
|
||||
.description("Run the headless node host (foreground)")
|
||||
|
||||
Reference in New Issue
Block a user