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
+6 -6
View File
@@ -2,7 +2,7 @@ import type { ChannelDock } from "../channels/dock.js";
import { getChannelDock, listChannelDocks } from "../channels/dock.js";
import type { ChannelId } from "../channels/plugins/types.js";
import { normalizeAnyChannelId } from "../channels/registry.js";
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import type { MsgContext } from "./templating.js";
export type CommandAuthorization = {
@@ -14,7 +14,7 @@ export type CommandAuthorization = {
to?: string;
};
function resolveProviderFromContext(ctx: MsgContext, cfg: MoltbotConfig): ChannelId | undefined {
function resolveProviderFromContext(ctx: MsgContext, cfg: OpenClawConfig): ChannelId | undefined {
const direct =
normalizeAnyChannelId(ctx.Provider) ??
normalizeAnyChannelId(ctx.Surface) ??
@@ -44,7 +44,7 @@ function resolveProviderFromContext(ctx: MsgContext, cfg: MoltbotConfig): Channe
function formatAllowFromList(params: {
dock?: ChannelDock;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accountId?: string | null;
allowFrom: Array<string | number>;
}): string[] {
@@ -58,7 +58,7 @@ function formatAllowFromList(params: {
function normalizeAllowFromEntry(params: {
dock?: ChannelDock;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accountId?: string | null;
value: string;
}): string[] {
@@ -74,7 +74,7 @@ function normalizeAllowFromEntry(params: {
function resolveSenderCandidates(params: {
dock?: ChannelDock;
providerId?: ChannelId;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
accountId?: string | null;
senderId?: string | null;
senderE164?: string | null;
@@ -108,7 +108,7 @@ function resolveSenderCandidates(params: {
export function resolveCommandAuthorization(params: {
ctx: MsgContext;
cfg: MoltbotConfig;
cfg: OpenClawConfig;
commandAuthorized: boolean;
}): CommandAuthorization {
const { ctx, cfg, commandAuthorized } = params;