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

@@ -6,7 +6,7 @@ import { resolveModelAuthMode } from "../agents/model-auth.js";
import { resolveConfiguredModelRef } from "../agents/model-selection.js";
import { resolveSandboxRuntimeStatus } from "../agents/sandbox.js";
import { derivePromptTokens, normalizeUsage, type UsageLike } from "../agents/usage.js";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import {
resolveMainSessionKey,
resolveSessionFilePath,
@@ -40,7 +40,7 @@ import type { CommandCategory } from "./commands-registry.types.js";
import type { ElevatedLevel, ReasoningLevel, ThinkLevel, VerboseLevel } from "./thinking.js";
import type { MediaUnderstandingDecision } from "../media-understanding/types.js";
type AgentConfig = Partial<NonNullable<NonNullable<MoltbotConfig["agents"]>["defaults"]>>;
type AgentConfig = Partial<NonNullable<NonNullable<OpenClawConfig["agents"]>["defaults"]>>;
export const formatTokenCount = formatTokenCountShared;
@@ -54,7 +54,7 @@ type QueueStatus = {
};
type StatusArgs = {
config?: MoltbotConfig;
config?: OpenClawConfig;
agent: AgentConfig;
sessionEntry?: SessionEntry;
sessionKey?: string;
@@ -169,7 +169,7 @@ const readUsageFromSessionLog = (
model?: string;
}
| undefined => {
// Transcripts are stored at the session file path (fallback: ~/.clawdbot/sessions/<SessionId>.jsonl)
// Transcripts are stored at the session file path (fallback: ~/.openclaw/sessions/<SessionId>.jsonl)
if (!sessionId) return undefined;
const logPath = resolveSessionFilePath(sessionId, sessionEntry);
if (!fs.existsSync(logPath)) return undefined;
@@ -259,7 +259,7 @@ const formatMediaUnderstandingLine = (decisions?: MediaUnderstandingDecision[])
};
const formatVoiceModeLine = (
config?: MoltbotConfig,
config?: OpenClawConfig,
sessionEntry?: SessionEntry,
): string | null => {
if (!config) return null;
@@ -285,7 +285,7 @@ export function buildStatusMessage(args: StatusArgs): string {
agents: {
defaults: args.agent ?? {},
},
} as MoltbotConfig,
} as OpenClawConfig,
defaultProvider: DEFAULT_PROVIDER,
defaultModel: DEFAULT_MODEL,
});
@@ -406,7 +406,7 @@ export function buildStatusMessage(args: StatusArgs): string {
const authLabel = authLabelValue ? ` · 🔑 ${authLabelValue}` : "";
const modelLine = `🧠 Model: ${modelLabel}${authLabel}`;
const commit = resolveCommitHash();
const versionLine = `🦞 Moltbot ${VERSION}${commit ? ` (${commit})` : ""}`;
const versionLine = `🦞 OpenClaw ${VERSION}${commit ? ` (${commit})` : ""}`;
const usagePair = formatUsagePair(inputTokens, outputTokens);
const costLine = costLabel ? `💵 Cost: ${costLabel}` : null;
const usageCostLine =
@@ -468,7 +468,7 @@ function groupCommandsByCategory(
return grouped;
}
export function buildHelpMessage(cfg?: MoltbotConfig): string {
export function buildHelpMessage(cfg?: OpenClawConfig): string {
const lines = [" Help", ""];
lines.push("Session");
@@ -579,7 +579,7 @@ function formatCommandList(items: CommandsListItem[]): string {
}
export function buildCommandsMessage(
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
skillCommands?: SkillCommandSpec[],
options?: CommandsMessageOptions,
): string {
@@ -588,7 +588,7 @@ export function buildCommandsMessage(
}
export function buildCommandsMessagePaginated(
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
skillCommands?: SkillCommandSpec[],
options?: CommandsMessageOptions,
): CommandsMessageResult {