Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ops): gate compat re-exports with cfg(test)\n\nThe re-exports of `UNSUPPORTED_MAIN_PORT_CONDITIONAL_FAN_IN` and `UNSUPPORTED_NESTED_CONDITIONAL_FAN_IN` from `tinyflows::compat` are only used in test assertions, so they are now conditionally compiled under `#[cfg(test)]` to avoid pulling in unused dependencies in production builds.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel7aba37ab6d1c
diff --git a/src/openhuman/flows/ops.rs b/src/openhuman/flows/ops.rs
index b7a48a0b14..b99345d74c 100644
--- a/src/openhuman/flows/ops.rs
+++ b/src/openhuman/flows/ops.rs
@@ -170,6 +170,7 @@ pub(crate) fn max_sub_workflow_depth(graph: &WorkflowGraph) -> u64 {
// because this module's tests assert on them by name — which is the point of a
// stable code, and what keeps a rename upstream a compile error here rather
// than a silently-passing `contains`.
+#[cfg(test)]
pub(crate) use tinyflows::compat::{
UNSUPPORTED_MAIN_PORT_CONDITIONAL_FAN_IN, UNSUPPORTED_NESTED_CONDITIONAL_FAN_IN,
};