Skip to content

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

test(flows): update node kind catalog path in builder tool tests

Steven Enamakel74a44e80cc99
diff --git a/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rs b/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rs
index e0bc33ab70..e94b524acf 100644
--- a/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rs
+++ b/crates/openhuman-core/src/flows/builder_tools_save_and_edit_tests.rs
@@ -413,11 +413,11 @@ async fn list_node_kinds_tool_returns_every_kind() {
assert!(!result.is_error, "{}", result.output());
let parsed: Value = serde_json::from_str(&result.output()).unwrap();
let kinds = parsed["node_kinds"].as_array().unwrap();
- assert_eq!(kinds.len(), tinyflows::catalog::NODE_KINDS.len());
+ assert_eq!(kinds.len(), tinyflows_bus::node_kinds::NODE_KINDS.len());
// The tool must advertise the whole catalog, not a subset that happens to
// include the kinds someone remembered to name here — a kind the engine
// knows but this tool omits is a kind the builder agent cannot reach.
- for kind in tinyflows::catalog::NODE_KINDS {
+ for kind in tinyflows_bus::node_kinds::NODE_KINDS {
assert!(
kinds.iter().any(|k| k["kind"] == kind),
"list_node_kinds omits `{kind}`"
@@ -452,7 +452,7 @@ async fn get_node_kind_contract_tool_returns_contract_and_rejects_unknown() {
assert!(bad.output().contains("list_node_kinds"));
assert!(bad.output().contains(&format!(
"{} valid kinds",
- tinyflows::catalog::NODE_KINDS.len()
+ tinyflows_bus::node_kinds::NODE_KINDS.len()
)));
let missing = tool.execute(json!({})).await.unwrap();