Skip to content

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

refactor(toolpacks): pass pack registry handle by reference

Steven Enamakeldffcba6e4f5c
diff --git a/crates/openhuman-core/src/tools/toolpacks/ops.rs b/crates/openhuman-core/src/tools/toolpacks/ops.rs
index b5db31bec0..0d31b5a588 100644
--- a/crates/openhuman-core/src/tools/toolpacks/ops.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/ops.rs
@@ -68,7 +68,7 @@ fn for_each_pack_tool(
continue;
}
if let Some(handle) = crate::tools::host_extensions::pack_registry_handle(tool.as_ref()) {
- edit(handle);
+ edit(&handle);
bound += 1;
}
}
diff --git a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs
index fb138d2029..bdb8f78b07 100644
--- a/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs
+++ b/crates/openhuman-core/src/tools/toolpacks/toolpacks_tests_scoping_and_visibility_tests.rs
@@ -247,7 +247,7 @@ fn a_non_owner_listing_omits_the_tools_the_gate_will_refuse() {
let rendered = tinyagents_harness_tools::skills::render_pack_filtered(
&CATALOG,
"workflows",
- handle,
+ &handle,
&|name: &str| name != "propose_workflow",
"",
)
@@ -275,7 +275,7 @@ fn a_listing_with_nothing_callable_names_the_route_out() {
let err = tinyagents_harness_tools::skills::render_pack_filtered(
&CATALOG,
"workflows",
- handle,
+ &handle,
&|_| false,
&route,
)