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

@@ -1,7 +1,7 @@
/**
* OpenResponses HTTP Handler
*
* Implements the OpenResponses `/v1/responses` endpoint for Clawdbot Gateway.
* Implements the OpenResponses `/v1/responses` endpoint for Moltbot Gateway.
*
* @see https://www.open-responses.com/
*/
@@ -552,7 +552,7 @@ export async function handleOpenResponsesHttpRequest(
.map((p) => (typeof p.text === "string" ? p.text : ""))
.filter(Boolean)
.join("\n\n")
: "No response from Clawdbot.";
: "No response from Moltbot.";
const response = createResponseResource({
id: responseId,
@@ -706,7 +706,7 @@ export async function handleOpenResponsesHttpRequest(
if (evt.stream === "lifecycle") {
const phase = evt.data?.phase;
if (phase === "end" || phase === "error") {
const finalText = accumulatedText || "No response from Clawdbot.";
const finalText = accumulatedText || "No response from Moltbot.";
const finalStatus = phase === "error" ? "failed" : "completed";
requestFinalize(finalStatus, finalText);
}
@@ -831,7 +831,7 @@ export async function handleOpenResponsesHttpRequest(
.map((p) => (typeof p.text === "string" ? p.text : ""))
.filter(Boolean)
.join("\n\n")
: "No response from Clawdbot.";
: "No response from Moltbot.";
accumulatedText = content;
sawAssistantDelta = true;