//! High-level write API for pipeline items.
//!
//! Provides typed setters and migration helpers for updating pipeline items
//! in the in-memory CRDT document, with ops persisted to SQLite.

mod item;
mod migrations;

#[cfg(test)]
mod tests;

pub use item::{
    bump_retry_count, set_agent, set_depends_on, set_epic, set_item_type, set_name, set_origin,
    set_plan_state, set_qa_mode, set_resume_to, set_resume_to_raw, set_retry_count, write_item,
};

#[cfg(test)]
pub use item::write_item_str;
pub use migrations::{
    migrate_legacy_stage_strings, migrate_merge_job, migrate_names_from_slugs,
    migrate_node_claims_to_agent_claims, migrate_story_ids_to_numeric,
    migrate_zombie_pipeline_rows, name_from_story_id, purge_done_stage_merge_jobs,
};
