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

@@ -6,7 +6,7 @@ import fs from "node:fs/promises";
import os from "node:os";
import path from "node:path";
import { runEmbeddedPiAgent } from "../agents/pi-embedded.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import {
resolveDefaultAgentId,
resolveAgentWorkspaceDir,
@@ -18,7 +18,7 @@ import {
*/
export async function generateSlugViaLLM(params: {
sessionContent: string;
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
}): Promise<string | null> {
let tempSessionFile: string | null = null;
@@ -28,7 +28,7 @@ export async function generateSlugViaLLM(params: {
const agentDir = resolveAgentDir(params.cfg, agentId);
// Create a temporary session file for this one-off LLM call
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "clawdbot-slug-"));
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "moltbot-slug-"));
tempSessionFile = path.join(tempDir, "session.jsonl");
const prompt = `Based on this conversation, generate a short 1-2 word filename slug (lowercase, hyphen-separated, no file extension).