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,15 +1,15 @@
import type { ThinkingLevel } from "@mariozechner/pi-agent-core";
import type { ReasoningLevel, ThinkLevel } from "../../auto-reply/thinking.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import type { ExecToolDefaults } from "../bash-tools.js";
export function mapThinkingLevel(level?: ThinkLevel): ThinkingLevel {
// pi-agent-core supports "xhigh"; Clawdbot enables it for specific models.
// pi-agent-core supports "xhigh"; Moltbot enables it for specific models.
if (!level) return "off";
return level;
}
export function resolveExecToolDefaults(config?: ClawdbotConfig): ExecToolDefaults | undefined {
export function resolveExecToolDefaults(config?: MoltbotConfig): ExecToolDefaults | undefined {
const tools = config?.tools;
if (!tools?.exec) return undefined;
return tools.exec;