Files
openclaw/src/auto-reply/command-detection.runtime-types.ts
2026-06-04 01:58:27 -04:00

18 lines
686 B
TypeScript

/** Runtime type contracts for command-detection helpers loaded across lazy boundaries. */
import type { OpenClawConfig } from "../config/types.js";
import type { CommandNormalizeOptions } from "./commands-registry.types.js";
/** Runtime-injected predicate for deciding whether visible text is an OpenClaw command. */
export type IsControlCommandMessage = (
text?: string,
cfg?: OpenClawConfig,
options?: CommandNormalizeOptions,
) => boolean;
/** Runtime-injected predicate for deciding whether command authorization must be computed. */
export type ShouldComputeCommandAuthorized = (
text?: string,
cfg?: OpenClawConfig,
options?: CommandNormalizeOptions,
) => boolean;