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 path from "node:path";
import { DEFAULT_AGENT_ID, normalizeAgentId } from "../routing/session-key.js";
import { resolveUserPath } from "../utils.js";
import { resolveStateDir } from "./paths.js";
import type { MoltbotConfig } from "./types.js";
import type { OpenClawConfig } from "./types.js";
export type DuplicateAgentDir = {
agentDir: string;
@@ -28,7 +28,7 @@ function canonicalizeAgentDir(agentDir: string): string {
return resolved;
}
function collectReferencedAgentIds(cfg: MoltbotConfig): string[] {
function collectReferencedAgentIds(cfg: OpenClawConfig): string[] {
const ids = new Set<string>();
const agents = Array.isArray(cfg.agents?.list) ? cfg.agents?.list : [];
@@ -54,7 +54,7 @@ function collectReferencedAgentIds(cfg: MoltbotConfig): string[] {
}
function resolveEffectiveAgentDir(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
agentId: string,
deps?: { env?: NodeJS.ProcessEnv; homedir?: () => string },
): string {
@@ -69,7 +69,7 @@ function resolveEffectiveAgentDir(
}
export function findDuplicateAgentDirs(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
deps?: { env?: NodeJS.ProcessEnv; homedir?: () => string },
): DuplicateAgentDir[] {
const byDir = new Map<string, { agentDir: string; agentIds: string[] }>();