refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions

View File

@@ -4,9 +4,9 @@ import { parseSystemdExecStart } from "./systemd-unit.js";
describe("parseSystemdExecStart", () => {
it("splits on whitespace outside quotes", () => {
const execStart = "/usr/bin/clawdbot gateway start --foo bar";
const execStart = "/usr/bin/moltbot gateway start --foo bar";
expect(parseSystemdExecStart(execStart)).toEqual([
"/usr/bin/clawdbot",
"/usr/bin/moltbot",
"gateway",
"start",
"--foo",
@@ -15,9 +15,9 @@ describe("parseSystemdExecStart", () => {
});
it("preserves quoted arguments", () => {
const execStart = '/usr/bin/clawdbot gateway start --name "My Bot"';
const execStart = '/usr/bin/moltbot gateway start --name "My Bot"';
expect(parseSystemdExecStart(execStart)).toEqual([
"/usr/bin/clawdbot",
"/usr/bin/moltbot",
"gateway",
"start",
"--name",
@@ -26,13 +26,13 @@ describe("parseSystemdExecStart", () => {
});
it("parses path arguments", () => {
const execStart = "/usr/bin/clawdbot gateway start --path /tmp/clawdbot";
const execStart = "/usr/bin/moltbot gateway start --path /tmp/moltbot";
expect(parseSystemdExecStart(execStart)).toEqual([
"/usr/bin/clawdbot",
"/usr/bin/moltbot",
"gateway",
"start",
"--path",
"/tmp/clawdbot",
"/tmp/moltbot",
]);
});
});