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

@@ -4,14 +4,14 @@ import {
resolveAuthProfileOrder,
} from "../../agents/auth-profiles.js";
import { resolveEnvApiKey } from "../../agents/model-auth.js";
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import type { RuntimeEnv } from "../../runtime.js";
export type NonInteractiveApiKeySource = "flag" | "env" | "profile";
async function resolveApiKeyFromProfiles(params: {
provider: string;
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
agentDir?: string;
}): Promise<string | null> {
const store = ensureAuthProfileStore(params.agentDir);
@@ -36,7 +36,7 @@ async function resolveApiKeyFromProfiles(params: {
export async function resolveNonInteractiveApiKey(params: {
provider: string;
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
flagValue?: string;
flagName: string;
envVar: string;

View File

@@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { resolveGatewayPort, writeConfigFile } from "../../config/config.js";
import { logConfigUpdated } from "../../config/logging.js";
import type { RuntimeEnv } from "../../runtime.js";
@@ -24,7 +24,7 @@ import { resolveNonInteractiveWorkspaceDir } from "./local/workspace.js";
export async function runNonInteractiveOnboardingLocal(params: {
opts: OnboardOptions;
runtime: RuntimeEnv;
baseConfig: ClawdbotConfig;
baseConfig: MoltbotConfig;
}) {
const { opts, runtime, baseConfig } = params;
const mode = "local" as const;
@@ -35,7 +35,7 @@ export async function runNonInteractiveOnboardingLocal(params: {
defaultWorkspaceDir: DEFAULT_WORKSPACE,
});
let nextConfig: ClawdbotConfig = {
let nextConfig: MoltbotConfig = {
...baseConfig,
agents: {
...baseConfig.agents,
@@ -125,7 +125,7 @@ export async function runNonInteractiveOnboardingLocal(params: {
if (!opts.json) {
runtime.log(
`Tip: run \`${formatCliCommand("clawdbot configure --section web")}\` to store your Brave API key for web_search. Docs: https://docs.molt.bot/tools/web`,
`Tip: run \`${formatCliCommand("moltbot configure --section web")}\` to store your Brave API key for web_search. Docs: https://docs.molt.bot/tools/web`,
);
}
}

View File

@@ -1,7 +1,7 @@
import { upsertAuthProfile } from "../../../agents/auth-profiles.js";
import { normalizeProviderId } from "../../../agents/model-selection.js";
import { parseDurationMs } from "../../../cli/parse-duration.js";
import type { ClawdbotConfig } from "../../../config/config.js";
import type { MoltbotConfig } from "../../../config/config.js";
import { upsertSharedEnvVar } from "../../../infra/env-file.js";
import type { RuntimeEnv } from "../../../runtime.js";
import { buildTokenProfileId, validateAnthropicSetupToken } from "../../auth-token.js";
@@ -35,12 +35,12 @@ import { resolveNonInteractiveApiKey } from "../api-keys.js";
import { shortenHomePath } from "../../../utils.js";
export async function applyNonInteractiveAuthChoice(params: {
nextConfig: ClawdbotConfig;
nextConfig: MoltbotConfig;
authChoice: AuthChoice;
opts: OnboardOptions;
runtime: RuntimeEnv;
baseConfig: ClawdbotConfig;
}): Promise<ClawdbotConfig | null> {
baseConfig: MoltbotConfig;
}): Promise<MoltbotConfig | null> {
const { authChoice, opts, runtime, baseConfig } = params;
let nextConfig = params.nextConfig;

View File

@@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "../../../config/config.js";
import type { MoltbotConfig } from "../../../config/config.js";
import { resolveGatewayService } from "../../../daemon/service.js";
import { isSystemdUserServiceAvailable } from "../../../daemon/systemd.js";
import type { RuntimeEnv } from "../../../runtime.js";
@@ -8,7 +8,7 @@ import type { OnboardOptions } from "../../onboard-types.js";
import { ensureSystemdUserLingerNonInteractive } from "../../systemd-linger.js";
export async function installGatewayDaemonNonInteractive(params: {
nextConfig: ClawdbotConfig;
nextConfig: MoltbotConfig;
opts: OnboardOptions;
runtime: RuntimeEnv;
port: number;

View File

@@ -1,15 +1,15 @@
import type { ClawdbotConfig } from "../../../config/config.js";
import type { MoltbotConfig } from "../../../config/config.js";
import type { RuntimeEnv } from "../../../runtime.js";
import { randomToken } from "../../onboard-helpers.js";
import type { OnboardOptions } from "../../onboard-types.js";
export function applyNonInteractiveGatewayConfig(params: {
nextConfig: ClawdbotConfig;
nextConfig: MoltbotConfig;
opts: OnboardOptions;
runtime: RuntimeEnv;
defaultPort: number;
}): {
nextConfig: ClawdbotConfig;
nextConfig: MoltbotConfig;
port: number;
bind: string;
authMode: string;

View File

@@ -1,9 +1,9 @@
import type { ClawdbotConfig } from "../../../config/config.js";
import type { MoltbotConfig } from "../../../config/config.js";
import type { RuntimeEnv } from "../../../runtime.js";
import type { OnboardOptions } from "../../onboard-types.js";
export function applyNonInteractiveSkillsConfig(params: {
nextConfig: ClawdbotConfig;
nextConfig: MoltbotConfig;
opts: OnboardOptions;
runtime: RuntimeEnv;
}) {

View File

@@ -1,10 +1,10 @@
import type { ClawdbotConfig } from "../../../config/config.js";
import type { MoltbotConfig } from "../../../config/config.js";
import { resolveUserPath } from "../../../utils.js";
import type { OnboardOptions } from "../../onboard-types.js";
export function resolveNonInteractiveWorkspaceDir(params: {
opts: OnboardOptions;
baseConfig: ClawdbotConfig;
baseConfig: MoltbotConfig;
defaultWorkspaceDir: string;
}) {
const raw = (

View File

@@ -1,4 +1,4 @@
import type { ClawdbotConfig } from "../../config/config.js";
import type { MoltbotConfig } from "../../config/config.js";
import { writeConfigFile } from "../../config/config.js";
import { logConfigUpdated } from "../../config/logging.js";
import type { RuntimeEnv } from "../../runtime.js";
@@ -9,7 +9,7 @@ import type { OnboardOptions } from "../onboard-types.js";
export async function runNonInteractiveOnboardingRemote(params: {
opts: OnboardOptions;
runtime: RuntimeEnv;
baseConfig: ClawdbotConfig;
baseConfig: MoltbotConfig;
}) {
const { opts, runtime, baseConfig } = params;
const mode = "remote" as const;
@@ -21,7 +21,7 @@ export async function runNonInteractiveOnboardingRemote(params: {
return;
}
let nextConfig: ClawdbotConfig = {
let nextConfig: MoltbotConfig = {
...baseConfig,
gateway: {
...baseConfig.gateway,
@@ -47,7 +47,7 @@ export async function runNonInteractiveOnboardingRemote(params: {
runtime.log(`Remote gateway: ${remoteUrl}`);
runtime.log(`Auth: ${payload.auth}`);
runtime.log(
`Tip: run \`${formatCliCommand("clawdbot configure --section web")}\` to store your Brave API key for web_search. Docs: https://docs.molt.bot/tools/web`,
`Tip: run \`${formatCliCommand("moltbot configure --section web")}\` to store your Brave API key for web_search. Docs: https://docs.molt.bot/tools/web`,
);
}
}