UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

25 lines (24 loc) • 950 B
//#region src/agents/tools/automations-tool-name.ts /** * Canonical identity of the scheduler agent tool. Single source of truth for * every name-keyed consumer (policy lists, factory descriptors, runtime * observers, prompts); never spell the tool name as a string literal. */ const AUTOMATIONS_TOOL_NAME = "automations"; /** Scheduler status exposes global metadata; caller-scoped inspection reads only caller-visible records. */ const CRON_SCOPED_READ_ACTIONS = [ "list", "get", "runs" ]; /** * "cron" is a permanently accepted alias for the scheduler tool in persisted * allow/deny config, old transcripts, and inbound calls (owner decision, * RFC 0026; same contract as bash -> exec). Not migration debt: no doctor * rewrite, no removal window. */ function isAutomationsToolName(e) { return e === "automations" || e === "cron"; } //#endregion export { CRON_SCOPED_READ_ACTIONS as n, isAutomationsToolName as r, AUTOMATIONS_TOOL_NAME as t };