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,9 +1,9 @@
import {
logInboundDrop,
resolveControlCommandGate,
type MoltbotConfig,
type OpenClawConfig,
type RuntimeEnv,
} from "clawdbot/plugin-sdk";
} from "openclaw/plugin-sdk";
import type { ResolvedNextcloudTalkAccount } from "./accounts.js";
import {
@@ -114,7 +114,7 @@ export async function handleNextcloudTalkInbound(params: {
const effectiveGroupAllowFrom = [...baseGroupAllowFrom, ...storeAllowList].filter(Boolean);
const allowTextCommands = core.channel.commands.shouldHandleTextCommands({
cfg: config as MoltbotConfig,
cfg: config as OpenClawConfig,
surface: CHANNEL_ID,
});
const useAccessGroups = config.commands?.useAccessGroups !== false;
@@ -125,7 +125,7 @@ export async function handleNextcloudTalkInbound(params: {
}).allowed;
const hasControlCommand = core.channel.text.hasControlCommand(
rawBody,
config as MoltbotConfig,
config as OpenClawConfig,
);
const commandGate = resolveControlCommandGate({
useAccessGroups,
@@ -211,7 +211,7 @@ export async function handleNextcloudTalkInbound(params: {
}
const mentionRegexes = core.channel.mentions.buildMentionRegexes(
config as MoltbotConfig,
config as OpenClawConfig,
);
const wasMentioned = mentionRegexes.length
? core.channel.mentions.matchesMentionPatterns(rawBody, mentionRegexes)
@@ -236,7 +236,7 @@ export async function handleNextcloudTalkInbound(params: {
}
const route = core.channel.routing.resolveAgentRoute({
cfg: config as MoltbotConfig,
cfg: config as OpenClawConfig,
channel: CHANNEL_ID,
accountId: account.accountId,
peer: {
@@ -252,7 +252,7 @@ export async function handleNextcloudTalkInbound(params: {
agentId: route.agentId,
});
const envelopeOptions = core.channel.reply.resolveEnvelopeFormatOptions(
config as MoltbotConfig,
config as OpenClawConfig,
);
const previousTimestamp = core.channel.session.readSessionUpdatedAt({
storePath,
@@ -304,7 +304,7 @@ export async function handleNextcloudTalkInbound(params: {
await core.channel.reply.dispatchReplyWithBufferedBlockDispatcher({
ctx: ctxPayload,
cfg: config as MoltbotConfig,
cfg: config as OpenClawConfig,
dispatcherOptions: {
deliver: async (payload) => {
await deliverNextcloudTalkReply({