mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 02:11:23 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -59,7 +59,7 @@ describe("cli credentials", () => {
|
||||
});
|
||||
|
||||
it("falls back to the file store when the keychain update fails", async () => {
|
||||
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "clawdbot-"));
|
||||
const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-"));
|
||||
const credPath = path.join(tempDir, ".claude", ".credentials.json");
|
||||
|
||||
fs.mkdirSync(path.dirname(credPath), { recursive: true, mode: 0o700 });
|
||||
@@ -182,7 +182,7 @@ describe("cli credentials", () => {
|
||||
});
|
||||
|
||||
it("reads Codex credentials from keychain when available", async () => {
|
||||
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "clawdbot-codex-"));
|
||||
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-codex-"));
|
||||
process.env.CODEX_HOME = tempHome;
|
||||
|
||||
const accountHash = "cli|";
|
||||
@@ -211,7 +211,7 @@ describe("cli credentials", () => {
|
||||
});
|
||||
|
||||
it("falls back to Codex auth.json when keychain is unavailable", async () => {
|
||||
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "clawdbot-codex-"));
|
||||
const tempHome = fs.mkdtempSync(path.join(os.tmpdir(), "moltbot-codex-"));
|
||||
process.env.CODEX_HOME = tempHome;
|
||||
execSyncMock.mockImplementation(() => {
|
||||
throw new Error("not found");
|
||||
|
||||
Reference in New Issue
Block a user