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

@@ -2,7 +2,7 @@ import { resolveAgentConfig } from "../../agents/agent-scope.js";
import { getChannelDock } from "../../channels/dock.js";
import { normalizeChannelId } from "../../channels/plugins/index.js";
import { CHAT_CHANNEL_ORDER } from "../../channels/registry.js";
import type { AgentElevatedAllowFromConfig, ClawdbotConfig } from "../../config/config.js";
import type { AgentElevatedAllowFromConfig, MoltbotConfig } from "../../config/config.js";
import { INTERNAL_MESSAGE_CHANNEL } from "../../utils/message-channel.js";
import { formatCliCommand } from "../../cli/command-format.js";
import type { MsgContext } from "../templating.js";
@@ -100,7 +100,7 @@ function isApprovedElevatedSender(params: {
}
export function resolveElevatedPermissions(params: {
cfg: ClawdbotConfig;
cfg: MoltbotConfig;
agentId: string;
ctx: MsgContext;
provider: string;
@@ -189,7 +189,7 @@ export function formatElevatedUnavailableMessage(params: {
lines.push("- agents.list[].tools.elevated.allowFrom.<provider>");
if (params.sessionKey) {
lines.push(
`See: ${formatCliCommand(`clawdbot sandbox explain --session ${params.sessionKey}`)}`,
`See: ${formatCliCommand(`moltbot sandbox explain --session ${params.sessionKey}`)}`,
);
}
return lines.join("\n");