refactor: rename clawdbot to moltbot with legacy compat

This commit is contained in:
Peter Steinberger
2026-01-27 12:19:58 +00:00
parent 83460df96f
commit 6d16a658e5
1839 changed files with 11250 additions and 11199 deletions

View File

@@ -12,7 +12,7 @@ describe("acquireSessionWriteLock", () => {
return;
}
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-lock-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-lock-"));
try {
const realDir = path.join(root, "real");
const linkDir = path.join(root, "link");
@@ -33,7 +33,7 @@ describe("acquireSessionWriteLock", () => {
});
it("keeps the lock file until the last release", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-lock-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-lock-"));
try {
const sessionFile = path.join(root, "sessions.json");
const lockPath = `${sessionFile}.lock`;
@@ -52,7 +52,7 @@ describe("acquireSessionWriteLock", () => {
});
it("reclaims stale lock files", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-lock-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-lock-"));
try {
const sessionFile = path.join(root, "sessions.json");
const lockPath = `${sessionFile}.lock`;
@@ -76,7 +76,7 @@ describe("acquireSessionWriteLock", () => {
it("removes held locks on termination signals", async () => {
const signals = ["SIGINT", "SIGTERM", "SIGQUIT", "SIGABRT"] as const;
for (const signal of signals) {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-lock-cleanup-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-lock-cleanup-"));
try {
const sessionFile = path.join(root, "sessions.json");
const lockPath = `${sessionFile}.lock`;
@@ -103,7 +103,7 @@ describe("acquireSessionWriteLock", () => {
expect(__testing.cleanupSignals).toContain("SIGABRT");
});
it("cleans up locks on SIGINT without removing other handlers", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-lock-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-lock-"));
const originalKill = process.kill.bind(process) as typeof process.kill;
const killCalls: Array<NodeJS.Signals | undefined> = [];
let otherHandlerCalled = false;
@@ -137,7 +137,7 @@ describe("acquireSessionWriteLock", () => {
});
it("cleans up locks on exit", async () => {
const root = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-lock-"));
const root = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-lock-"));
try {
const sessionFile = path.join(root, "sessions.json");
const lockPath = `${sessionFile}.lock`;