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

@@ -3,7 +3,7 @@ import fs from "node:fs/promises";
import os from "node:os";
import path from "node:path";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import {
findModelInCatalog,
loadModelCatalog,
@@ -329,7 +329,7 @@ async function resolveGeminiCliEntry(
}
async function resolveKeyEntry(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
agentDir?: string;
providerRegistry: ProviderRegistry;
capability: MediaUnderstandingCapability;
@@ -393,7 +393,7 @@ async function resolveKeyEntry(params: {
}
async function resolveAutoEntries(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
agentDir?: string;
providerRegistry: ProviderRegistry;
capability: MediaUnderstandingCapability;
@@ -413,7 +413,7 @@ async function resolveAutoEntries(params: {
}
export async function resolveAutoImageModel(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
agentDir?: string;
activeModel?: ActiveMediaModel;
}): Promise<ActiveMediaModel | null> {
@@ -446,7 +446,7 @@ export async function resolveAutoImageModel(params: {
}
async function resolveActiveModelEntry(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
agentDir?: string;
providerRegistry: ProviderRegistry;
capability: MediaUnderstandingCapability;
@@ -663,7 +663,7 @@ function formatDecisionSummary(decision: MediaUnderstandingDecision): string {
async function runProviderEntry(params: {
capability: MediaUnderstandingCapability;
entry: MediaUnderstandingModelConfig;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
ctx: MsgContext;
attachmentIndex: number;
cache: MediaAttachmentCache;
@@ -847,7 +847,7 @@ async function runProviderEntry(params: {
async function runCliEntry(params: {
capability: MediaUnderstandingCapability;
entry: MediaUnderstandingModelConfig;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
ctx: MsgContext;
attachmentIndex: number;
cache: MediaAttachmentCache;
@@ -877,7 +877,7 @@ async function runCliEntry(params: {
maxBytes,
timeoutMs,
});
const outputDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-media-cli-"));
const outputDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-media-cli-"));
const mediaPath = pathResult.path;
const outputBase = path.join(outputDir, path.parse(mediaPath).name);
@@ -923,7 +923,7 @@ async function runCliEntry(params: {
async function runAttachmentEntries(params: {
capability: MediaUnderstandingCapability;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
ctx: MsgContext;
attachmentIndex: number;
agentDir?: string;
@@ -1006,7 +1006,7 @@ async function runAttachmentEntries(params: {
export async function runCapability(params: {
capability: MediaUnderstandingCapability;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
ctx: MsgContext;
attachments: MediaAttachmentCache;
media: MediaAttachment[];