refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -1,4 +1,4 @@
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import { resolveGatewayPort } from "../config/config.js";
import {
resolveGatewayLaunchAgentLabel,
@@ -76,7 +76,7 @@ async function maybeRepairLaunchAgentBootstrap(params: {
}
export async function maybeRepairGatewayDaemon(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
runtime: RuntimeEnv;
prompter: DoctorPrompter;
options: DoctorOptions;
@@ -106,7 +106,10 @@ export async function maybeRepairGatewayDaemon(params: {
prompter: params.prompter,
});
await maybeRepairLaunchAgentBootstrap({
env: { ...process.env, CLAWDBOT_LAUNCHD_LABEL: resolveNodeLaunchAgentLabel() },
env: {
...process.env,
OPENCLAW_LAUNCHD_LABEL: resolveNodeLaunchAgentLabel(),
},
title: "Node",
runtime: params.runtime,
prompter: params.prompter,
@@ -158,7 +161,7 @@ export async function maybeRepairGatewayDaemon(params: {
const { programArguments, workingDirectory, environment } = await buildGatewayInstallPlan({
env: process.env,
port,
token: params.cfg.gateway?.auth?.token ?? process.env.CLAWDBOT_GATEWAY_TOKEN,
token: params.cfg.gateway?.auth?.token ?? process.env.OPENCLAW_GATEWAY_TOKEN,
runtime: daemonRuntime,
warn: (message, title) => note(message, title),
config: params.cfg,
@@ -207,9 +210,9 @@ export async function maybeRepairGatewayDaemon(params: {
}
if (process.platform === "darwin") {
const label = resolveGatewayLaunchAgentLabel(process.env.CLAWDBOT_PROFILE);
const label = resolveGatewayLaunchAgentLabel(process.env.OPENCLAW_PROFILE);
note(
`LaunchAgent loaded; stopping requires "${formatCliCommand("moltbot gateway stop")}" or launchctl bootout gui/$UID/${label}.`,
`LaunchAgent loaded; stopping requires "${formatCliCommand("openclaw gateway stop")}" or launchctl bootout gui/$UID/${label}.`,
"Gateway",
);
}