mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:08:25 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -25,10 +25,10 @@ describe("onboard (non-interactive): token auth", () => {
|
||||
delete process.env.CLAWDBOT_GATEWAY_TOKEN;
|
||||
delete process.env.CLAWDBOT_GATEWAY_PASSWORD;
|
||||
|
||||
const tempHome = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-onboard-token-"));
|
||||
const tempHome = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-onboard-token-"));
|
||||
process.env.HOME = tempHome;
|
||||
process.env.CLAWDBOT_STATE_DIR = tempHome;
|
||||
process.env.CLAWDBOT_CONFIG_PATH = path.join(tempHome, "clawdbot.json");
|
||||
process.env.CLAWDBOT_CONFIG_PATH = path.join(tempHome, "moltbot.json");
|
||||
vi.resetModules();
|
||||
|
||||
const token = `sk-ant-oat01-${"a".repeat(80)}`;
|
||||
@@ -59,8 +59,8 @@ describe("onboard (non-interactive): token auth", () => {
|
||||
runtime,
|
||||
);
|
||||
|
||||
const { CONFIG_PATH_CLAWDBOT } = await import("../config/config.js");
|
||||
const cfg = JSON.parse(await fs.readFile(CONFIG_PATH_CLAWDBOT, "utf8")) as {
|
||||
const { CONFIG_PATH } = await import("../config/config.js");
|
||||
const cfg = JSON.parse(await fs.readFile(CONFIG_PATH, "utf8")) as {
|
||||
auth?: {
|
||||
profiles?: Record<string, { provider?: string; mode?: string }>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user