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,7 +1,7 @@
import fs from "node:fs/promises";
import path from "node:path";
import { resolveAgentWorkspaceDir } from "../../agents/agent-scope.js";
import type { MoltbotConfig } from "../../config/config.js";
import type { OpenClawConfig } from "../../config/config.js";
import { loadSessionStore, resolveStorePath } from "../../config/sessions.js";
import { listAgentsForGateway } from "../../gateway/session-utils.js";
@@ -14,7 +14,7 @@ async function fileExists(p: string): Promise<boolean> {
}
}
export async function getAgentLocalStatuses(cfg: MoltbotConfig) {
export async function getAgentLocalStatuses(cfg: OpenClawConfig) {
const agentList = listAgentsForGateway(cfg);
const now = Date.now();

View File

@@ -7,7 +7,7 @@ import type {
ChannelId,
ChannelPlugin,
} from "../../channels/plugins/types.js";
import type { MoltbotConfig } from "../../config/config.js";
import type { OpenClawConfig } from "../../config/config.js";
import { formatAge } from "./format.js";
export type ChannelRow = {
@@ -78,7 +78,7 @@ const formatAccountLabel = (params: { accountId: string; name?: string }) => {
const resolveAccountEnabled = (
plugin: ChannelPlugin,
account: unknown,
cfg: MoltbotConfig,
cfg: OpenClawConfig,
): boolean => {
if (plugin.config.isEnabled) return plugin.config.isEnabled(account, cfg);
const enabled = asRecord(account).enabled;
@@ -88,7 +88,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);
@@ -100,7 +100,7 @@ const resolveAccountConfigured = async (
const buildAccountSnapshot = (params: {
plugin: ChannelPlugin;
account: unknown;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accountId: string;
enabled: boolean;
configured: boolean;
@@ -116,7 +116,7 @@ const buildAccountSnapshot = (params: {
const formatAllowFrom = (params: {
plugin: ChannelPlugin;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accountId?: string | null;
allowFrom: Array<string | number>;
}) => {
@@ -132,7 +132,7 @@ const formatAllowFrom = (params: {
const buildAccountNotes = (params: {
plugin: ChannelPlugin;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
entry: ChannelAccountRow;
}) => {
const { plugin, cfg, entry } = params;
@@ -206,7 +206,7 @@ function collectMissingPaths(accounts: ChannelAccountRow[]): string[] {
function summarizeTokenConfig(params: {
plugin: ChannelPlugin;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accounts: ChannelAccountRow[];
showSecrets: boolean;
}): { state: "ok" | "setup" | "warn" | null; detail: string | null } {
@@ -291,7 +291,7 @@ function summarizeTokenConfig(params: {
// `status --all` channels table.
// Keep this generic: channel-specific rules belong in the channel plugin.
export async function buildChannelsTable(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
opts?: { showSecrets?: boolean },
): Promise<{
rows: ChannelRow[];

View File

@@ -234,6 +234,6 @@ export async function appendStatusAllDiagnosis(params: {
lines.push("");
lines.push(muted("Pasteable debug report. Auth tokens redacted."));
lines.push("Troubleshooting: https://docs.molt.bot/troubleshooting");
lines.push("Troubleshooting: https://docs.openclaw.ai/troubleshooting");
lines.push("");
}

View File

@@ -140,7 +140,7 @@ export async function buildStatusAllReportLines(params: {
});
const lines: string[] = [];
lines.push(heading("Moltbot status --all"));
lines.push(heading("OpenClaw status --all"));
lines.push("");
lines.push(heading("Overview"));
lines.push(overview.trimEnd());