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

@@ -7,8 +7,8 @@ export function normalizeSlackSlashCommandName(raw: string) {
export function resolveSlackSlashCommandConfig(
raw?: SlackSlashCommandConfig,
): Required<SlackSlashCommandConfig> {
const normalizedName = normalizeSlackSlashCommandName(raw?.name?.trim() || "clawd");
const name = normalizedName || "clawd";
const normalizedName = normalizeSlackSlashCommandName(raw?.name?.trim() || "openclaw");
const name = normalizedName || "openclaw";
return {
enabled: raw?.enabled === true,
name,
@@ -18,6 +18,7 @@ export function resolveSlackSlashCommandConfig(
}
export function buildSlackSlashCommandMatcher(name: string) {
const escaped = name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
const normalized = normalizeSlackSlashCommandName(name);
const escaped = normalized.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
return new RegExp(`^/?${escaped}$`);
}