chore: rename project to clawdbot

This commit is contained in:
Peter Steinberger
2026-01-04 14:32:47 +00:00
parent d48dc71fa4
commit 246adaa119
841 changed files with 4590 additions and 4328 deletions

View File

@@ -7,20 +7,20 @@ import {
DEFAULT_AGENT_WORKSPACE_DIR,
ensureAgentWorkspace,
} from "../agents/workspace.js";
import { type ClawdisConfig, CONFIG_PATH_CLAWDIS } from "../config/config.js";
import { type ClawdbotConfig, CONFIG_PATH_CLAWDBOT } from "../config/config.js";
import { resolveSessionTranscriptsDir } from "../config/sessions.js";
import type { RuntimeEnv } from "../runtime.js";
import { defaultRuntime } from "../runtime.js";
async function readConfigFileRaw(): Promise<{
exists: boolean;
parsed: ClawdisConfig;
parsed: ClawdbotConfig;
}> {
try {
const raw = await fs.readFile(CONFIG_PATH_CLAWDIS, "utf-8");
const raw = await fs.readFile(CONFIG_PATH_CLAWDBOT, "utf-8");
const parsed = JSON5.parse(raw);
if (parsed && typeof parsed === "object") {
return { exists: true, parsed: parsed as ClawdisConfig };
return { exists: true, parsed: parsed as ClawdbotConfig };
}
return { exists: true, parsed: {} };
} catch {
@@ -28,10 +28,10 @@ async function readConfigFileRaw(): Promise<{
}
}
async function writeConfigFile(cfg: ClawdisConfig) {
await fs.mkdir(path.dirname(CONFIG_PATH_CLAWDIS), { recursive: true });
async function writeConfigFile(cfg: ClawdbotConfig) {
await fs.mkdir(path.dirname(CONFIG_PATH_CLAWDBOT), { recursive: true });
const json = JSON.stringify(cfg, null, 2).trimEnd().concat("\n");
await fs.writeFile(CONFIG_PATH_CLAWDIS, json, "utf-8");
await fs.writeFile(CONFIG_PATH_CLAWDBOT, json, "utf-8");
}
export async function setupCommand(
@@ -50,7 +50,7 @@ export async function setupCommand(
const workspace =
desiredWorkspace ?? agent.workspace ?? DEFAULT_AGENT_WORKSPACE_DIR;
const next: ClawdisConfig = {
const next: ClawdbotConfig = {
...cfg,
agent: {
...agent,
@@ -62,11 +62,11 @@ export async function setupCommand(
await writeConfigFile(next);
runtime.log(
!existingRaw.exists
? `Wrote ${CONFIG_PATH_CLAWDIS}`
: `Updated ${CONFIG_PATH_CLAWDIS} (set agent.workspace)`,
? `Wrote ${CONFIG_PATH_CLAWDBOT}`
: `Updated ${CONFIG_PATH_CLAWDBOT} (set agent.workspace)`,
);
} else {
runtime.log(`Config OK: ${CONFIG_PATH_CLAWDIS}`);
runtime.log(`Config OK: ${CONFIG_PATH_CLAWDBOT}`);
}
const ws = await ensureAgentWorkspace({