/** * `/cron` — List all scheduled cron jobs from the cron plugin. * * Reads the cron job list via a getter callback wired to the agent's * `cron_list` tool at registration time. Renders a formatted table of * job names, intervals, actions, run counts, and overdue status. */ import type { Agent } from '@wrongstack/core/agent'; import type { SlashCommand } from '@wrongstack/core/types'; export interface CronJobView { name: string; intervalMs: number; action: string; enabled: boolean; lastRun: string | null; nextRun: string; runCount: number; overdue: boolean; } export interface CronListResult { ok: boolean; count: number; maxConcurrent: number; jobs: CronJobView[]; error?: string | undefined; } export interface CronSlashDeps { getCronJobs: () => Promise; } /** Build the shared cron-list loader used by both the slash command and panel. */ export declare function createCronJobsGetter(agent: Pick): () => Promise; export declare function createCronSlashCommand(deps: CronSlashDeps): SlashCommand; export declare function renderCronList(result: CronListResult): string; //# sourceMappingURL=cron-slash.d.ts.map