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,4 +1,4 @@
import type { MoltbotConfig } from "../config/types.js";
import type { OpenClawConfig } from "../config/types.js";
import {
type CommandNormalizeOptions,
listChatCommands,
@@ -9,7 +9,7 @@ import { isAbortTrigger } from "./reply/abort.js";
export function hasControlCommand(
text?: string,
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
options?: CommandNormalizeOptions,
): boolean {
if (!text) return false;
@@ -35,7 +35,7 @@ export function hasControlCommand(
export function isControlCommandMessage(
text?: string,
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
options?: CommandNormalizeOptions,
): boolean {
if (!text) return false;
@@ -61,7 +61,7 @@ export function hasInlineCommandTokens(text?: string): boolean {
export function shouldComputeCommandAuthorized(
text?: string,
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
options?: CommandNormalizeOptions,
): boolean {
return isControlCommandMessage(text, cfg, options) || hasInlineCommandTokens(text);