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,7 +1,7 @@
import type { SlashCommand } from "@mariozechner/pi-tui";
import { listChatCommands, listChatCommandsForConfig } from "../auto-reply/commands-registry.js";
import { formatThinkingLevels, listThinkingLevelLabels } from "../auto-reply/thinking.js";
import type { MoltbotConfig } from "../config/types.js";
import type { OpenClawConfig } from "../config/types.js";
const VERBOSE_LEVELS = ["on", "off"];
const REASONING_LEVELS = ["on", "off"];
@@ -15,7 +15,7 @@ export type ParsedCommand = {
};
export type SlashCommandOptions = {
cfg?: MoltbotConfig;
cfg?: OpenClawConfig;
provider?: string;
model?: string;
};

View File

@@ -112,7 +112,7 @@ export class GatewayChatClient {
token: resolved.token,
password: resolved.password,
clientName: GATEWAY_CLIENT_NAMES.GATEWAY_CLIENT,
clientDisplayName: "moltbot-tui",
clientDisplayName: "openclaw-tui",
clientVersion: VERSION,
platform: process.platform,
mode: GATEWAY_CLIENT_MODES.UI,
@@ -235,7 +235,7 @@ export function resolveGatewayConnection(opts: GatewayConnectionOptions) {
? typeof remote?.token === "string" && remote.token.trim().length > 0
? remote.token.trim()
: undefined
: process.env.CLAWDBOT_GATEWAY_TOKEN?.trim() ||
: process.env.OPENCLAW_GATEWAY_TOKEN?.trim() ||
(typeof authToken === "string" && authToken.trim().length > 0
? authToken.trim()
: undefined));
@@ -244,7 +244,7 @@ export function resolveGatewayConnection(opts: GatewayConnectionOptions) {
(typeof opts.password === "string" && opts.password.trim().length > 0
? opts.password.trim()
: undefined) ||
process.env.CLAWDBOT_GATEWAY_PASSWORD?.trim() ||
process.env.OPENCLAW_GATEWAY_PASSWORD?.trim() ||
(typeof remote?.password === "string" && remote.password.trim().length > 0
? remote.password.trim()
: undefined);

View File

@@ -290,7 +290,7 @@ export async function runTui(opts: TuiOptions) {
const agentLabel = formatAgentLabel(currentAgentId);
header.setText(
theme.header(
`moltbot tui - ${client.connection.url} - agent ${agentLabel} - session ${sessionLabel}`,
`openclaw tui - ${client.connection.url} - agent ${agentLabel} - session ${sessionLabel}`,
),
);
};