refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -5,10 +5,10 @@ import { runCommandWithTimeout } from "./exec.js";
describe("runCommandWithTimeout", () => {
it("passes env overrides to child", async () => {
const result = await runCommandWithTimeout(
[process.execPath, "-e", 'process.stdout.write(process.env.CLAWDBOT_TEST_ENV ?? "")'],
[process.execPath, "-e", 'process.stdout.write(process.env.OPENCLAW_TEST_ENV ?? "")'],
{
timeoutMs: 5_000,
env: { CLAWDBOT_TEST_ENV: "ok" },
env: { OPENCLAW_TEST_ENV: "ok" },
},
);
@@ -17,18 +17,18 @@ describe("runCommandWithTimeout", () => {
});
it("merges custom env with process.env", async () => {
const previous = process.env.CLAWDBOT_BASE_ENV;
process.env.CLAWDBOT_BASE_ENV = "base";
const previous = process.env.OPENCLAW_BASE_ENV;
process.env.OPENCLAW_BASE_ENV = "base";
try {
const result = await runCommandWithTimeout(
[
process.execPath,
"-e",
'process.stdout.write((process.env.CLAWDBOT_BASE_ENV ?? "") + "|" + (process.env.CLAWDBOT_TEST_ENV ?? ""))',
'process.stdout.write((process.env.OPENCLAW_BASE_ENV ?? "") + "|" + (process.env.OPENCLAW_TEST_ENV ?? ""))',
],
{
timeoutMs: 5_000,
env: { CLAWDBOT_TEST_ENV: "ok" },
env: { OPENCLAW_TEST_ENV: "ok" },
},
);
@@ -36,9 +36,9 @@ describe("runCommandWithTimeout", () => {
expect(result.stdout).toBe("base|ok");
} finally {
if (previous === undefined) {
delete process.env.CLAWDBOT_BASE_ENV;
delete process.env.OPENCLAW_BASE_ENV;
} else {
process.env.CLAWDBOT_BASE_ENV = previous;
process.env.OPENCLAW_BASE_ENV = previous;
}
}
});