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,6 +1,6 @@
import { listChannelPlugins } from "../../channels/plugins/index.js";
import type { ChannelPlugin } from "../../channels/plugins/types.js";
import type { MoltbotConfig } from "../../config/config.js";
import type { OpenClawConfig } from "../../config/config.js";
import {
listDeliverableMessageChannels,
type DeliverableMessageChannel,
@@ -21,7 +21,7 @@ function isAccountEnabled(account: unknown): boolean {
return enabled !== false;
}
async function isPluginConfigured(plugin: ChannelPlugin, cfg: MoltbotConfig): Promise<boolean> {
async function isPluginConfigured(plugin: ChannelPlugin, cfg: OpenClawConfig): Promise<boolean> {
const accountIds = plugin.config.listAccountIds(cfg);
if (accountIds.length === 0) return false;
@@ -40,7 +40,7 @@ async function isPluginConfigured(plugin: ChannelPlugin, cfg: MoltbotConfig): Pr
}
export async function listConfiguredMessageChannels(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
): Promise<MessageChannelId[]> {
const channels: MessageChannelId[] = [];
for (const plugin of listChannelPlugins()) {
@@ -53,7 +53,7 @@ export async function listConfiguredMessageChannels(
}
export async function resolveMessageChannelSelection(params: {
cfg: MoltbotConfig;
cfg: OpenClawConfig;
channel?: string | null;
}): Promise<{ channel: MessageChannelId; configured: MessageChannelId[] }> {
const normalized = normalizeMessageChannel(params.channel);