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 type { AgentMessage } from "@mariozechner/pi-agent-core";
import type { MoltbotConfig } from "../../config/config.js";
import type { OpenClawConfig } from "../../config/config.js";
const THREAD_SUFFIX_REGEX = /^(.*)(?::(?:thread|topic):\d+)$/i;
@@ -40,7 +40,7 @@ export function limitHistoryTurns(
*/
export function getDmHistoryLimitFromSessionKey(
sessionKey: string | undefined,
config: MoltbotConfig | undefined,
config: OpenClawConfig | undefined,
): number | undefined {
if (!sessionKey || !config) return undefined;
@@ -71,7 +71,7 @@ export function getDmHistoryLimitFromSessionKey(
};
const resolveProviderConfig = (
cfg: MoltbotConfig | undefined,
cfg: OpenClawConfig | undefined,
providerId: string,
): { dmHistoryLimit?: number; dms?: Record<string, { historyLimit?: number }> } | undefined => {
const channels = cfg?.channels;