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

@@ -87,7 +87,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
const _server = await startServerWithDefaultConfig(port);
try {
const res = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(res.status).toBe(404);
@@ -102,7 +102,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
});
try {
const res = await postResponses(disabledPort, {
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(res.status).toBe(404);
@@ -130,7 +130,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
const resMissingAuth = await fetch(`http://127.0.0.1:${port}/v1/responses`, {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ model: "moltbot", input: "hi" }),
body: JSON.stringify({ model: "openclaw", input: "hi" }),
});
expect(resMissingAuth.status).toBe(401);
await ensureResponseConsumed(resMissingAuth);
@@ -146,8 +146,8 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "hello" }]);
const resHeader = await postResponses(
port,
{ model: "moltbot", input: "hi" },
{ "x-moltbot-agent-id": "beta" },
{ model: "openclaw", input: "hi" },
{ "x-openclaw-agent-id": "beta" },
);
expect(resHeader.status).toBe(200);
const [optsHeader] = agentCommand.mock.calls[0] ?? [];
@@ -157,7 +157,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
await ensureResponseConsumed(resHeader);
mockAgentOnce([{ text: "hello" }]);
const resModel = await postResponses(port, { model: "moltbot:beta", input: "hi" });
const resModel = await postResponses(port, { model: "openclaw:beta", input: "hi" });
expect(resModel.status).toBe(200);
const [optsModel] = agentCommand.mock.calls[0] ?? [];
expect((optsModel as { sessionKey?: string } | undefined)?.sessionKey ?? "").toMatch(
@@ -168,7 +168,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "hello" }]);
const resUser = await postResponses(port, {
user: "alice",
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(resUser.status).toBe(200);
@@ -180,7 +180,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "hello" }]);
const resString = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: "hello world",
});
expect(resString.status).toBe(200);
@@ -190,7 +190,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "hello" }]);
const resArray = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: [{ type: "message", role: "user", content: "hello there" }],
});
expect(resArray.status).toBe(200);
@@ -200,7 +200,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "hello" }]);
const resSystemDeveloper = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: [
{ type: "message", role: "system", content: "You are a helpful assistant." },
{ type: "message", role: "developer", content: "Be concise." },
@@ -218,7 +218,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "hello" }]);
const resInstructions = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: "hi",
instructions: "Always respond in French.",
});
@@ -231,7 +231,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "I am Claude" }]);
const resHistory = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: [
{ type: "message", role: "system", content: "You are a helpful assistant." },
{ type: "message", role: "user", content: "Hello, who are you?" },
@@ -251,7 +251,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "ok" }]);
const resFunctionOutput = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: [
{ type: "message", role: "user", content: "What's the weather?" },
{ type: "function_call_output", call_id: "call_1", output: "Sunny, 70F." },
@@ -266,7 +266,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "ok" }]);
const resInputFile = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: [
{
type: "message",
@@ -297,7 +297,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "ok" }]);
const resToolNone = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: "hi",
tools: [
{
@@ -316,7 +316,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "ok" }]);
const resToolChoice = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: "hi",
tools: [
{
@@ -340,7 +340,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
await ensureResponseConsumed(resToolChoice);
const resUnknownTool = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: "hi",
tools: [
{
@@ -355,7 +355,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "ok" }]);
const resMaxTokens = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: "hi",
max_output_tokens: 123,
});
@@ -374,7 +374,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
});
const resUsage = await postResponses(port, {
stream: false,
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(resUsage.status).toBe(200);
@@ -385,7 +385,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
mockAgentOnce([{ text: "hello" }]);
const resShape = await postResponses(port, {
stream: false,
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(resShape.status).toBe(200);
@@ -407,7 +407,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
await ensureResponseConsumed(resShape);
const resNoUser = await postResponses(port, {
model: "moltbot",
model: "openclaw",
input: [{ type: "message", role: "system", content: "yo" }],
});
expect(resNoUser.status).toBe(400);
@@ -434,7 +434,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
const resDelta = await postResponses(port, {
stream: true,
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(resDelta.status).toBe(200);
@@ -470,7 +470,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
const resFallback = await postResponses(port, {
stream: true,
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(resFallback.status).toBe(200);
@@ -485,7 +485,7 @@ describe("OpenResponses HTTP API (e2e)", () => {
const resTypeMatch = await postResponses(port, {
stream: true,
model: "moltbot",
model: "openclaw",
input: "hi",
});
expect(resTypeMatch.status).toBe(200);