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

@@ -1,16 +1,16 @@
import { getChannelPlugin } from "../../channels/plugins/index.js";
import type { ChannelId, ChannelSetupInput } from "../../channels/plugins/types.js";
import type { MoltbotConfig } from "../../config/config.js";
import type { OpenClawConfig } from "../../config/config.js";
import { normalizeAccountId } from "../../routing/session-key.js";
type ChatChannel = ChannelId;
export function applyAccountName(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
channel: ChatChannel;
accountId: string;
name?: string;
}): MoltbotConfig {
}): OpenClawConfig {
const accountId = normalizeAccountId(params.accountId);
const plugin = getChannelPlugin(params.channel);
const apply = plugin?.setup?.applyAccountName;
@@ -18,7 +18,7 @@ export function applyAccountName(params: {
}
export function applyChannelAccountConfig(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
channel: ChatChannel;
accountId: string;
name?: string;
@@ -52,7 +52,7 @@ export function applyChannelAccountConfig(params: {
groupChannels?: string[];
dmAllowlist?: string[];
autoDiscoverChannels?: boolean;
}): MoltbotConfig {
}): OpenClawConfig {
const accountId = normalizeAccountId(params.accountId);
const plugin = getChannelPlugin(params.channel);
const apply = plugin?.setup?.applyAccountConfig;