mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 19:54:57 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -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 });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user