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

@@ -1,6 +1,6 @@
import { Type } from "@sinclair/typebox";
import type { MoltbotConfig } from "../../config/config.js";
import type { OpenClawConfig } from "../../config/config.js";
import {
closeDispatcher,
createPinnedDispatcher,
@@ -61,7 +61,7 @@ const WebFetchSchema = Type.Object({
),
});
type WebFetchConfig = NonNullable<MoltbotConfig["tools"]>["web"] extends infer Web
type WebFetchConfig = NonNullable<OpenClawConfig["tools"]>["web"] extends infer Web
? Web extends { fetch?: infer Fetch }
? Fetch
: undefined
@@ -78,7 +78,7 @@ type FirecrawlFetchConfig =
}
| undefined;
function resolveFetchConfig(cfg?: MoltbotConfig): WebFetchConfig {
function resolveFetchConfig(cfg?: OpenClawConfig): WebFetchConfig {
const fetch = cfg?.tools?.web?.fetch;
if (!fetch || typeof fetch !== "object") return undefined;
return fetch as WebFetchConfig;
@@ -570,7 +570,7 @@ function resolveFirecrawlEndpoint(baseUrl: string): string {
}
export function createWebFetchTool(options?: {
config?: MoltbotConfig;
config?: OpenClawConfig;
sandboxed?: boolean;
}): AnyAgentTool | null {
const fetch = resolveFetchConfig(options?.config);