chore: rename project to clawdbot

This commit is contained in:
Peter Steinberger
2026-01-04 14:32:47 +00:00
parent d48dc71fa4
commit 246adaa119
841 changed files with 4590 additions and 4328 deletions

View File

@@ -1,7 +1,7 @@
import fs from "node:fs/promises";
import path from "node:path";
import { describe, expect, it, vi } from "vitest";
import { createClawdisTools } from "../agents/clawdis-tools.js";
import { createClawdbotTools } from "../agents/clawdbot-tools.js";
import { resolveSessionTranscriptPath } from "../config/sessions.js";
import { emitAgentEvent } from "../infra/agent-events.js";
import {
@@ -16,8 +16,8 @@ installGatewayTestHooks();
describe("sessions_send gateway loopback", () => {
it("returns reply when job finishes before agent.wait", async () => {
const port = await getFreePort();
const prevPort = process.env.CLAWDIS_GATEWAY_PORT;
process.env.CLAWDIS_GATEWAY_PORT = String(port);
const prevPort = process.env.CLAWDBOT_GATEWAY_PORT;
process.env.CLAWDBOT_GATEWAY_PORT = String(port);
const server = await startGatewayServer(port);
const spy = vi.mocked(agentCommand);
@@ -71,7 +71,7 @@ describe("sessions_send gateway loopback", () => {
});
try {
const tool = createClawdisTools().find(
const tool = createClawdbotTools().find(
(candidate) => candidate.name === "sessions_send",
);
if (!tool) throw new Error("missing sessions_send tool");
@@ -94,9 +94,9 @@ describe("sessions_send gateway loopback", () => {
expect(firstCall?.lane).toBe("nested");
} finally {
if (prevPort === undefined) {
delete process.env.CLAWDIS_GATEWAY_PORT;
delete process.env.CLAWDBOT_GATEWAY_PORT;
} else {
process.env.CLAWDIS_GATEWAY_PORT = prevPort;
process.env.CLAWDBOT_GATEWAY_PORT = prevPort;
}
await server.close();
}