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 { ChannelAccountSnapshot, ChannelPlugin } from "../channels/plugins/types.js";
import { type MoltbotConfig, loadConfig } from "../config/config.js";
import { type OpenClawConfig, loadConfig } from "../config/config.js";
import { DEFAULT_ACCOUNT_ID } from "../routing/session-key.js";
import { theme } from "../terminal/theme.js";
@@ -34,7 +34,7 @@ const accountLine = (label: string, details: string[]) =>
const resolveAccountEnabled = (
plugin: ChannelPlugin,
account: unknown,
cfg: MoltbotConfig,
cfg: OpenClawConfig,
): boolean => {
if (plugin.config.isEnabled) {
return plugin.config.isEnabled(account, cfg);
@@ -47,7 +47,7 @@ const resolveAccountEnabled = (
const resolveAccountConfigured = async (
plugin: ChannelPlugin,
account: unknown,
cfg: MoltbotConfig,
cfg: OpenClawConfig,
): Promise<boolean> => {
if (plugin.config.isConfigured) {
return await plugin.config.isConfigured(account, cfg);
@@ -58,7 +58,7 @@ const resolveAccountConfigured = async (
const buildAccountSnapshot = (params: {
plugin: ChannelPlugin;
account: unknown;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accountId: string;
enabled: boolean;
configured: boolean;
@@ -76,7 +76,7 @@ const buildAccountSnapshot = (params: {
const formatAllowFrom = (params: {
plugin: ChannelPlugin;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accountId?: string | null;
allowFrom: Array<string | number>;
}) => {
@@ -93,7 +93,7 @@ const formatAllowFrom = (params: {
const buildAccountDetails = (params: {
entry: ChannelAccountEntry;
plugin: ChannelPlugin;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
includeAllowFrom: boolean;
}): string[] => {
const details: string[] = [];
@@ -129,7 +129,7 @@ const buildAccountDetails = (params: {
};
export async function buildChannelSummary(
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
options?: ChannelSummaryOptions,
): Promise<string[]> {
const effective = cfg ?? loadConfig();