/**
 * Wire-shape definitions for the webhook feature. The config file
 * (`${FORGE_DATA_DIR}/webhooks.json`) and the rolling delivery log
 * (`${FORGE_DATA_DIR}/webhook-deliveries.json`) both serialize using
 * these types directly. Adding fields is safe (older
 * configs/deliveries deserialize with the new fields undefined);
 * renaming or removing requires a migration step.
 */
/**
 * Canonical event list. Iteration order matches the UI's checklist
 * order; the order is part of the user-visible surface (the
 * Settings tab renders checkboxes in this order).
 */
export const WEBHOOK_EVENTS = [
    "agent_end",
    "ask_user_question",
    "process_alert",
    "auto_retry_end",
    "compaction_end",
    "session_created",
    "session_deleted",
];
export function isWebhookEvent(v) {
    return typeof v === "string" && WEBHOOK_EVENTS.includes(v);
}
/**
 * Cap on persisted delivery records per webhook. Older deliveries
 * roll off FIFO. 100 is enough for "did my last few fires work?"
 * debugging without letting the file grow unbounded.
 */
export const MAX_DELIVERIES_PER_WEBHOOK = 100;
//# sourceMappingURL=types.js.map