/** * v1.3.3 §C — structured cron run history (OpenClaw `cron runs` pattern). * * Separate from the human-readable `memory/cron-logs/-.md` (full * output): this is a compact, machine-readable outcome log used for * observability — `cron runs`, `cron show` last-run state, and the * dead-man's-switch overdue check. One JSONL per org. */ export type CronRunStatus = "ok" | "silent" | "error"; export interface CronRunRecord { id: string; name: string; startedAt: string; finishedAt: string; status: CronRunStatus; ms: number; error?: string; } /** Append one run outcome to the org's cron-runs.jsonl (best-effort). */ export declare function recordCronRun(orgDir: string, rec: CronRunRecord): void; /** Read run records for one org, newest-first. Filter by id; cap with limit. */ export declare function readCronRuns(orgDir: string, opts?: { id?: string; limit?: number; }): CronRunRecord[]; /** The most recent run for an id (any status), or null. */ export declare function lastCronRun(orgDir: string, id: string): CronRunRecord | null; /** The most recent *successful* (ok|silent) run for an id, or null. */ export declare function lastSuccessfulRun(orgDir: string, id: string): CronRunRecord | null;