mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-24 14:49:33 +00:00
18 lines
686 B
TypeScript
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;
|