mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:48:27 +00:00
refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
resolveSandboxToolPolicyForAgent,
|
||||
} from "../agents/sandbox.js";
|
||||
import { normalizeAnyChannelId } from "../channels/registry.js";
|
||||
import type { ClawdbotConfig } from "../config/config.js";
|
||||
import type { MoltbotConfig } from "../config/config.js";
|
||||
import { loadConfig } from "../config/config.js";
|
||||
import {
|
||||
loadSessionStore,
|
||||
@@ -33,7 +33,7 @@ type SandboxExplainOptions = {
|
||||
const SANDBOX_DOCS_URL = "https://docs.molt.bot/sandbox";
|
||||
|
||||
function normalizeExplainSessionKey(params: {
|
||||
cfg: ClawdbotConfig;
|
||||
cfg: MoltbotConfig;
|
||||
agentId: string;
|
||||
session?: string;
|
||||
}): string {
|
||||
@@ -53,7 +53,7 @@ function normalizeExplainSessionKey(params: {
|
||||
}
|
||||
|
||||
function inferProviderFromSessionKey(params: {
|
||||
cfg: ClawdbotConfig;
|
||||
cfg: MoltbotConfig;
|
||||
sessionKey: string;
|
||||
}): string | undefined {
|
||||
const parsed = parseAgentSessionKey(params.sessionKey);
|
||||
@@ -71,7 +71,7 @@ function inferProviderFromSessionKey(params: {
|
||||
}
|
||||
|
||||
function resolveActiveChannel(params: {
|
||||
cfg: ClawdbotConfig;
|
||||
cfg: MoltbotConfig;
|
||||
agentId: string;
|
||||
sessionKey: string;
|
||||
}): string | undefined {
|
||||
|
||||
Reference in New Issue
Block a user