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

@@ -5,7 +5,7 @@ import {
normalizeChannelId,
} from "../channels/plugins/index.js";
import type { ChannelId } from "../channels/plugins/types.js";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import type { AgentBinding } from "../config/types.js";
import { DEFAULT_ACCOUNT_ID } from "../routing/session-key.js";
@@ -43,7 +43,7 @@ function formatProviderState(entry: ProviderAccountStatus): string {
}
export async function buildProviderStatusIndex(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
): Promise<Map<string, ProviderAccountStatus>> {
const map = new Map<string, ProviderAccountStatus>();
@@ -91,13 +91,13 @@ export async function buildProviderStatusIndex(
return map;
}
function resolveDefaultAccountId(cfg: MoltbotConfig, provider: ChannelId): string {
function resolveDefaultAccountId(cfg: OpenClawConfig, provider: ChannelId): string {
const plugin = getChannelPlugin(provider);
if (!plugin) return DEFAULT_ACCOUNT_ID;
return resolveChannelDefaultAccountId({ plugin, cfg });
}
function shouldShowProviderEntry(entry: ProviderAccountStatus, cfg: MoltbotConfig): boolean {
function shouldShowProviderEntry(entry: ProviderAccountStatus, cfg: OpenClawConfig): boolean {
const plugin = getChannelPlugin(entry.provider);
if (!plugin) return Boolean(entry.configured);
if (plugin.meta.showConfigured === false) {
@@ -116,7 +116,7 @@ function formatProviderEntry(entry: ProviderAccountStatus): string {
return `${label}: ${formatProviderState(entry)}`;
}
export function summarizeBindings(cfg: MoltbotConfig, bindings: AgentBinding[]): string[] {
export function summarizeBindings(cfg: OpenClawConfig, bindings: AgentBinding[]): string[] {
if (bindings.length === 0) return [];
const seen = new Map<string, string>();
for (const binding of bindings) {
@@ -137,7 +137,7 @@ export function summarizeBindings(cfg: MoltbotConfig, bindings: AgentBinding[]):
export function listProvidersForAgent(params: {
summaryIsDefault: boolean;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
bindings: AgentBinding[];
providerStatus: Map<string, ProviderAccountStatus>;
}): string[] {