The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(build): gate flows-only imports and bindings behind the flows feature
Steven Enamakela26843901c03
diff --git a/crates/openhuman-core/src/agent/progress_tracing.rs b/crates/openhuman-core/src/agent/progress_tracing.rsindex 1e9b608bda..b0b52e3681 100644--- a/crates/openhuman-core/src/agent/progress_tracing.rs+++ b/crates/openhuman-core/src/agent/progress_tracing.rs@@ -86,6 +86,7 @@ pub(crate) fn export_brand() -> ExportBrand<'static> {pub(crate) use export::export_subagent_journal_trace;pub(crate) use export::{export_run_trace, export_run_trace_from_journal};+#[cfg(feature = "flows")]pub(crate) use flow_export::export_graph_run_trace;#[cfg(test)]diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex 9aa6d6132f..ddb9257b3f 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -259,7 +259,7 @@ impl OpenHumanTurnPrelude {).map_err(|error| anyhow::anyhow!(error.to_string()))?};- let flow_archetype_text = if cold {+ let flow_archetype_text: Option<String> = if cold {#[cfg(feature = "flows")]{match self.definition.as_deref() {diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner_prompt.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner_prompt.rsindex 8a108a73fb..bb91325e9d 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner_prompt.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner_prompt.rs@@ -12,12 +12,12 @@ pub(super) type LoadedConfig = Result<std::sync::Arc<crate::config::Config>, Str/// Load and render a typed sub-agent prompt using this spawn's config snapshot.pub(super) async fn load_typed_prompt_source(definition: &AgentDefinition,- config: &LoadedConfig,+ _config: &LoadedConfig,mut prompt_context: PromptContext<'_>,) -> Result<String, SubagentRunError> {#[cfg(feature = "flows")]let flow_archetype_text = crate::agent::prompts::flow_archetype::load_for_definition(- config.as_ref().ok().map(|config| config.as_ref()),+ _config.as_ref().ok().map(|config| config.as_ref()),definition,).await?;diff --git a/crates/openhuman-core/src/mcp/server/resources.rs b/crates/openhuman-core/src/mcp/server/resources.rsindex 30bd05d0eb..7872d90948 100644--- a/crates/openhuman-core/src/mcp/server/resources.rs+++ b/crates/openhuman-core/src/mcp/server/resources.rs@@ -135,7 +135,7 @@ const RESOURCE_CATALOG: &[PromptResource] = &[/// The catalog as `resources/list` advertises it.pub fn resource_specs() -> Vec<ResourceSpec> {- let mut resources = RESOURCE_CATALOG+ let resources = RESOURCE_CATALOG.iter().map(|r| {ResourceSpec::new(r.uri, r.name)@@ -144,24 +144,28 @@ pub fn resource_specs() -> Vec<ResourceSpec> {}).collect::<Vec<_>>();#[cfg(feature = "flows")]- resources.extend([- ResourceSpec::new(- "openhuman://prompts/agents/flow_discovery",- "flow_discovery",- )- .with_description(- "Flow Scout — read-only workflow discovery agent that suggests automations from memory, threads, and integrations.",- )- .with_mime_type(MIME_TYPE),- ResourceSpec::new(- "openhuman://prompts/agents/workflow_builder",- "workflow_builder",- )- .with_description(- "Workflow authoring specialist that builds tinyflows automation graphs and returns proposals for review.",- )- .with_mime_type(MIME_TYPE),- ]);+ let resources = {+ let mut resources = resources;+ resources.extend([+ ResourceSpec::new(+ "openhuman://prompts/agents/flow_discovery",+ "flow_discovery",+ )+ .with_description(+ "Flow Scout — read-only workflow discovery agent that suggests automations from memory, threads, and integrations.",+ )+ .with_mime_type(MIME_TYPE),+ ResourceSpec::new(+ "openhuman://prompts/agents/workflow_builder",+ "workflow_builder",+ )+ .with_description(+ "Workflow authoring specialist that builds tinyflows automation graphs and returns proposals for review.",+ )+ .with_mime_type(MIME_TYPE),+ ]);+ resources+ };log::debug!("[mcp_server] resources/list count={}", resources.len());resources}@@ -170,12 +174,12 @@ pub fn resource_specs() -> Vec<ResourceSpec> {/// [`ToolCallError::ResourceNotFound`] (`-32002`) when the catalog has no such/// entry. TinyMCP has already rejected a missing or blank `uri`.pub async fn read_resource(- ctx: &crate::core::runtime::DispatchCtx,+ _ctx: &crate::core::runtime::DispatchCtx,uri: &str,) -> Result<Value, ToolCallError> {#[cfg(feature = "flows")]if let Some(agent_id) = flow_prompt_agent_id(uri) {- let config = ctx.load_config().await.map_err(|_| {+ let config = _ctx.load_config().await.map_err(|_| {ToolCallError::Internal("TinyFlows prompt config is unavailable".into())})?;return read_flow_prompt(&config, uri, agent_id).await;