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

@@ -5,15 +5,15 @@
* These commands are processed before built-in commands and before agent invocation.
*/
import type { ClawdbotConfig } from "../config/config.js";
import type { MoltbotConfig } from "../config/config.js";
import type {
ClawdbotPluginCommandDefinition,
MoltbotPluginCommandDefinition,
PluginCommandContext,
PluginCommandResult,
} from "./types.js";
import { logVerbose } from "../globals.js";
type RegisteredPluginCommand = ClawdbotPluginCommandDefinition & {
type RegisteredPluginCommand = MoltbotPluginCommandDefinition & {
pluginId: string;
};
@@ -104,7 +104,7 @@ export type CommandRegistrationResult = {
*/
export function registerPluginCommand(
pluginId: string,
command: ClawdbotPluginCommandDefinition,
command: MoltbotPluginCommandDefinition,
): CommandRegistrationResult {
// Prevent registration while commands are being processed
if (registryLocked) {
@@ -221,7 +221,7 @@ export async function executePluginCommand(params: {
channel: string;
isAuthorizedSender: boolean;
commandBody: string;
config: ClawdbotConfig;
config: MoltbotConfig;
}): Promise<PluginCommandResult> {
const { command, args, senderId, channel, isAuthorizedSender, commandBody, config } = params;