openclaw / src /auto-reply /command-detection.runtime-types.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
76289e7 verified
Raw
History Blame Contribute Delete
686 Bytes
/** 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;