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
chore: files changed crates/openhuman-core/src/skills/ops_discovery_tests.rs,tests/tinyflows_publish
Steven Enamakele21b491923e4
diff --git a/crates/openhuman-core/src/skills/ops_discovery_tests.rs b/crates/openhuman-core/src/skills/ops_discovery_tests.rsindex 970c9dd82f..8f791ec56d 100644--- a/crates/openhuman-core/src/skills/ops_discovery_tests.rs+++ b/crates/openhuman-core/src/skills/ops_discovery_tests.rs@@ -324,7 +324,8 @@ async fn skills_component_off_yields_no_catalogue_and_skips_bundled_install() {#[cfg(feature = "flows")]#[tokio::test]async fn flow_authoring_is_hidden_when_tinyflows_component_is_disabled() {- use crate::core::runtime::{ComponentSet, CoreContext};+ use crate::core::runtime::{ComponentSet, ContextOverlay, CoreContext, DomainSet};+ use crate::tools::toolpacks::ToolGroups;let workspace = tempfile::tempdir().unwrap();// Install the compiled bundles as a normal boot would. The pre-fix@@ -332,17 +333,37 @@ async fn flow_authoring_is_hidden_when_tinyflows_component_is_disabled() {// flow-authoring bundle when the module that owns its resources is off.crate::skills::bundled::install(workspace.path());- let mut components = ComponentSet::all();- components.tinyflows = false;- let ctx = CoreContext::for_test_with_components(components);- let skills = CoreContext::scope(ctx, async {+ let profile = |profile_id: &str, enabled: bool| {+ let mut components = ComponentSet::all();+ let mut domains = DomainSet::full();+ if !enabled {+ components.flows = false;+ components.tinyflows = false;+ domains.flows = false;+ }+ let mut config = crate::config::Config::default();+ config.workspace_dir = workspace.path().to_path_buf();+ CoreContext::for_test_with_components(components).derive_with(+ ContextOverlay::new(config, domains, ToolGroups::none()).profile(profile_id),+ )+ };++ let visible = CoreContext::scope(profile("enabled", true), async {+ load_workflow_metadata(workspace.path())+ })+ .await;+ let hidden = CoreContext::scope(profile("disabled", false), async {load_workflow_metadata(workspace.path())}).await;assert!(- !skills.iter().any(|skill| skill.id() == "flow-authoring"),- "a disabled TinyFlows component must not expose flow-authoring"+ visible.iter().any(|skill| skill.id() == "flow-authoring"),+ "the enabled profile sees its flow-authoring bundle"+ );+ assert!(+ !hidden.iter().any(|skill| skill.id() == "flow-authoring"),+ "a profile with flows, TinyFlows, and the Flows domain disabled must not inherit the shared flow-authoring bundle");}diff --git a/tests/tinyflows_published_prompt_e2e.rs b/tests/tinyflows_published_prompt_e2e.rsindex f4b9a049e1..77ac0c7d91 100644--- a/tests/tinyflows_published_prompt_e2e.rs+++ b/tests/tinyflows_published_prompt_e2e.rs@@ -60,4 +60,42 @@ async fn published_module_prompts_render_through_the_normal_host_path() {);assert!(prompt.text.contains("## Workspace"));}++ // This is the actual published module path: the host must materialize the+ // bus-owned skill under its own flow-resource root, then the normal+ // TinySkills discovery and resource reader must expose that Builtin.+ let flow_root = workspace+ .join(".openhuman")+ .join("builtin-flow-skills")+ .join("flow-authoring");+ assert!(+ flow_root.join("SKILL.md").is_file(),+ "published Copilot ListResources was not materialized under the flow root"+ );+ assert!(+ !workspace+ .join(".openhuman")+ .join("builtin-skills")+ .join("flow-authoring")+ .exists(),+ "dynamic TinyFlows resources must not share the static builtin root"+ );++ let discovered = openhuman_core::skills::load_workflow_metadata(&workspace);+ let flow = discovered+ .iter()+ .find(|skill| skill.id() == "flow-authoring")+ .expect("the published module's flow-authoring skill is discoverable");+ assert_eq!(flow.scope, tinyskills::SkillScope::Builtin);+ for resource in &flow.resources {+ let body = openhuman_core::skills::read_workflow_resource(+ &workspace,+ "flow-authoring",+ resource,+ )+ .unwrap_or_else(|error| {+ panic!("reading published flow-authoring resource {resource:?}: {error}")+ });+ assert!(!body.is_empty(), "published resource {resource:?} is empty");+ }}