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

@@ -6,16 +6,16 @@ describe("buildPairingReply", () => {
let previousProfile: string | undefined;
beforeEach(() => {
previousProfile = process.env.CLAWDBOT_PROFILE;
process.env.CLAWDBOT_PROFILE = "isolated";
previousProfile = process.env.OPENCLAW_PROFILE;
process.env.OPENCLAW_PROFILE = "isolated";
});
afterEach(() => {
if (previousProfile === undefined) {
delete process.env.CLAWDBOT_PROFILE;
delete process.env.OPENCLAW_PROFILE;
return;
}
process.env.CLAWDBOT_PROFILE = previousProfile;
process.env.OPENCLAW_PROFILE = previousProfile;
});
const cases = [
@@ -51,9 +51,9 @@ describe("buildPairingReply", () => {
const text = buildPairingReply(testCase);
expect(text).toContain(testCase.idLine);
expect(text).toContain(`Pairing code: ${testCase.code}`);
// CLI commands should respect CLAWDBOT_PROFILE when set (most tests run with isolated profile)
// CLI commands should respect OPENCLAW_PROFILE when set (most tests run with isolated profile)
const commandRe = new RegExp(
`(?:moltbot|moltbot) --profile isolated pairing approve ${testCase.channel} <code>`,
`(?:openclaw|openclaw) --profile isolated pairing approve ${testCase.channel} <code>`,
);
expect(text).toMatch(commandRe);
});