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

@@ -10,7 +10,7 @@ import {
type SessionNotification,
} from "@agentclientprotocol/sdk";
import { ensureMoltbotCliOnPath } from "../infra/path-env.js";
import { ensureOpenClawCliOnPath } from "../infra/path-env.js";
export type AcpClientOptions = {
cwd?: string;
@@ -75,8 +75,8 @@ export async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpC
const verbose = Boolean(opts.verbose);
const log = verbose ? (msg: string) => console.error(`[acp-client] ${msg}`) : () => {};
ensureMoltbotCliOnPath({ cwd });
const serverCommand = opts.serverCommand ?? "moltbot";
ensureOpenClawCliOnPath({ cwd });
const serverCommand = opts.serverCommand ?? "openclaw";
const serverArgs = buildServerArgs(opts);
log(`spawning: ${serverCommand} ${serverArgs.join(" ")}`);
@@ -122,7 +122,7 @@ export async function createAcpClient(opts: AcpClientOptions = {}): Promise<AcpC
fs: { readTextFile: true, writeTextFile: true },
terminal: true,
},
clientInfo: { name: "moltbot-acp-client", version: "1.0.0" },
clientInfo: { name: "openclaw-acp-client", version: "1.0.0" },
});
log("creating session");
@@ -146,7 +146,7 @@ export async function runAcpClientInteractive(opts: AcpClientOptions = {}): Prom
output: process.stdout,
});
console.log("Moltbot ACP client");
console.log("OpenClaw ACP client");
console.log(`Session: ${sessionId}`);
console.log('Type a prompt, or "exit" to quit.\n');