Skip to content

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

chore(core): remove unused all module

Steven Enamakel1103c7899c95
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index 38f22d8b75..fad5d9974d 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -86,28 +86,6 @@ fn group_allowed(group: DomainGroup) -> bool {
active_domain_set().map_or(group != DomainGroup::Operator, |s| s.allows(group))
}
-/// The `[components]` switch that removed `g`'s family in the ambient scope.
-///
-/// A family a switch removed answers `COMPONENT_DISABLED:<name>` so the UI and
-/// CLI can explain it; a family the host merely left out stays
-/// indistinguishable from an unregistered method.
-fn component_blocking(g: &GroupedController) -> Option<&'static str> {
- let name = crate::core::runtime::ComponentSet::component_for_group(g.group)?;
- let ctx = crate::core::runtime::context::CoreContext::current()?;
- (!ctx.components().enabled(name)).then_some(name)
-}
-
-/// `Some(component)` when `method` exists but its component is switched off in
-/// the ambient scope. Dispatch asks this before reporting an unknown method.
-pub fn disabled_component_for_method(method: &str) -> Option<&'static str> {
- let view = registry_view();
- let grouped = view
- .iter()
- .chain(internal_registry().iter())
- .find(|g| g.controller.rpc_method_name() == method)?;
- component_blocking(grouped)
-}
-
/// Whether `g` is live in the ambient scope: its family is enabled and, for a
/// SaaS user, the method is on the user surface (`profiles::surface`).
fn visible(g: &GroupedController) -> bool {
@@ -1180,12 +1158,6 @@ pub async fn try_invoke_registered_rpc(
// are indistinguishable from absent. Enforced HERE (dispatch), not in
// schema/validation lookups, to avoid a validate/dispatch split.
if !visible(grouped) {
- if let Some(name) = component_blocking(grouped) {
- log::debug!("[rpc][component-gate] method '{method}' refused, component '{name}' disabled");
- return Some(Err(
- crate::core::runtime::components::component_disabled(name).encode()
- ));
- }
log::debug!(
"[rpc][domain-gate] method '{method}' suppressed — group {:?} disabled or method \
outside the user surface in the active scope",