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

@@ -29,7 +29,7 @@ const runtime: RuntimeEnv = {
};
const baseSnapshot = {
path: "/tmp/clawdbot.json",
path: "/tmp/moltbot.json",
exists: true,
raw: "{}",
parsed: {},
@@ -49,7 +49,7 @@ describe("agents set-identity command", () => {
});
it("sets identity from workspace IDENTITY.md", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-identity-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-identity-"));
const workspace = path.join(root, "work");
await fs.mkdir(workspace, { recursive: true });
await fs.writeFile(
@@ -92,7 +92,7 @@ describe("agents set-identity command", () => {
});
it("errors when multiple agents match the same workspace", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-identity-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-identity-"));
const workspace = path.join(root, "shared");
await fs.mkdir(workspace, { recursive: true });
await fs.writeFile(path.join(workspace, "IDENTITY.md"), "- Name: Echo\n", "utf-8");
@@ -117,7 +117,7 @@ describe("agents set-identity command", () => {
});
it("overrides identity file values with explicit flags", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-identity-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-identity-"));
const workspace = path.join(root, "work");
await fs.mkdir(workspace, { recursive: true });
await fs.writeFile(
@@ -161,7 +161,7 @@ describe("agents set-identity command", () => {
});
it("reads identity from an explicit IDENTITY.md path", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-identity-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-identity-"));
const workspace = path.join(root, "work");
const identityPath = path.join(workspace, "IDENTITY.md");
await fs.mkdir(workspace, { recursive: true });
@@ -197,7 +197,7 @@ describe("agents set-identity command", () => {
});
it("accepts avatar-only identity from IDENTITY.md", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-identity-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-identity-"));
const workspace = path.join(root, "work");
await fs.mkdir(workspace, { recursive: true });
await fs.writeFile(
@@ -243,7 +243,7 @@ describe("agents set-identity command", () => {
});
it("errors when identity data is missing", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-identity-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-identity-"));
const workspace = path.join(root, "work");
await fs.mkdir(workspace, { recursive: true });