← Public packages
@kody/kody-factory
Forkable multi-project software factory: signals, priority queue, project UI, sweep job. Agent runners and Sentry reach it by events.
Files
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)
}