import { handleRunError, type RunErrorRecordedEvent } from './intake.ts' /** * `run.error.recorded` handler for the factory health feed. Records one * fingerprint per failing family in this org (storage writes only). It never * wakes anyone, and it does nothing until health intake is switched on. * * @param event - Platform event: `{ run, activity_url }` * @returns What was recorded, or `{ skipped }` (intake off, self, smoke test, agent execute origin) * * @example * import onRunError from 'kody:@kody/kody-factory/health/on-run-error' * await onRunError({ run: { id: 'run_1', surface: 'job', kody_id: 'crm', error_message: 'boom' } }) */ export default async function onRunError(event: RunErrorRecordedEvent = {}) { return handleRunError(event) }