omena-transform-passes 0.2.0

Transform pass registry and DAG planner for Omena CSS
Documentation
//! Transform pass registry and DAG planner for the post-v5 omena-css track.
//!
//! This crate consumes `omena-transform-cst` contracts. It does not duplicate
//! transform metadata; its job is to register safe mutations, cascade-proven
//! combinations, conservative lowerings, and emission boundaries as a
//! DAG-respecting execution plan for downstream transform crates.

pub use omena_cascade::CustomPropertyLeastFixedPointSummaryV0;

mod domains;
mod helpers;
mod model;
mod registry;
mod runtime;

pub use domains::css_modules_values::resolve_static_css_modules_local_value_resolutions_from_source;
pub use domains::number::reduce_static_numeric_expression;
pub use model::*;
pub use registry::{
    inline_css_imports, inline_css_imports_for_static_module_evaluation,
    parse_static_css_cascade_value, restore_less_inline_literal_placeholders,
    summarize_static_css_custom_property_fixed_point_from_source,
};
#[cfg(feature = "lawvere-trace")]
pub use runtime::executor::{
    evaluate_lawvere_reorderability_with_differential_corpus,
    execute_transform_passes_on_source_with_lawvere_trace,
    execute_transform_passes_on_source_with_lawvere_trace_and_dialect,
};
pub use runtime::executor::{
    execute_transform_passes_on_source, execute_transform_passes_on_source_with_dialect,
    execute_transform_passes_on_source_with_dialect_and_context,
};
pub use runtime::fuzz::{run_transform_cascade_safe_fuzz_case, run_transform_fuzz_seed_corpus};
pub use runtime::incremental::{
    execute_transform_passes_incremental_with_database, transform_pass_incremental_graph_input,
};
#[cfg(feature = "lawvere-trace")]
pub use runtime::planner::plan_transform_passes_parallel_lawvere_layers;
pub use runtime::planner::{
    implemented_mutation_pass_ids, plan_transform_passes, summarize_omena_transform_passes_boundary,
};

/// Expand a CSS Nesting selector against its canonical parent selector.
///
/// This is exposed for analysis/query layers that must compare selectors in
/// their resolved form without running the full transform pipeline.
pub fn expand_css_nested_selector(parent_selector: &str, nested_selector: &str) -> Option<String> {
    domains::nesting::expand_nested_selector(parent_selector, nested_selector)
}

#[cfg(test)]
mod tests;