Skip to content

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

chore: reorder re-exports and add ServiceSet to embed facade

Steven Enamakel2b867b09d798
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rs
index e2c9278bf0..c7fa2295a2 100644
--- a/crates/openhuman-embed/src/host_internals.rs
+++ b/crates/openhuman-embed/src/host_internals.rs
@@ -36,11 +36,11 @@ pub mod core {
/// RPC handler and classifier (rpc).
pub mod observability {
pub use openhuman_core::core::observability::{
- contains_transient_transport_phrase, expected_error_kind,
- is_api_key_rejected_message, is_session_expired_message,
- is_suppressed_usage_probe_backoff, is_transient_http_status_code,
- is_transient_message_failure, report_error_or_expected, report_warning_message,
- API_KEY_REJECTED_PREFIX, BACKEND_UNAVAILABLE_PREFIX, REPORT_ERROR_TRACING_TARGET,
+ contains_transient_transport_phrase, expected_error_kind, is_api_key_rejected_message,
+ is_session_expired_message, is_suppressed_usage_probe_backoff,
+ is_transient_http_status_code, is_transient_message_failure, report_error_or_expected,
+ report_warning_message, API_KEY_REJECTED_PREFIX, BACKEND_UNAVAILABLE_PREFIX,
+ REPORT_ERROR_TRACING_TARGET,
};
}
@@ -206,7 +206,9 @@ pub mod security {
AuthService, APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME,
};
pub mod ops {
- pub use openhuman_core::security::credentials::ops::{list_provider_credentials, store_provider_credentials};
+ pub use openhuman_core::security::credentials::ops::{
+ list_provider_credentials, store_provider_credentials,
+ };
}
pub mod session_support {
pub use openhuman_core::security::credentials::session_support::{
@@ -282,8 +284,7 @@ pub mod storage {
pub mod user_agents {
pub mod gateway {
pub use openhuman_core::user_agents::gateway::{
- resolve_scope, sign, verify, GatewayRefusal, GatewayScope, USER_HEADER,
- USER_SIG_HEADER,
+ resolve_scope, sign, verify, GatewayRefusal, GatewayScope, USER_HEADER, USER_SIG_HEADER,
};
}
}
diff --git a/crates/openhuman-rpc/src/lib.rs b/crates/openhuman-rpc/src/lib.rs
index 2afb4f20a4..0221cf0796 100644
--- a/crates/openhuman-rpc/src/lib.rs
+++ b/crates/openhuman-rpc/src/lib.rs
@@ -51,12 +51,12 @@ pub mod tinyhumans {
/// config/artifact/chat-surface/modules facades, plus the few process-level
/// facts. A curated list, not the crate; embed's `__host` is not on it.
pub mod embed {
+ #[cfg(feature = "modules")]
+ pub use openhuman_tinyhumans::embed::modules;
pub use openhuman_tinyhumans::embed::{
artifacts, chat_surface, config, process, schema_for_rpc_method, CoreRuntime,
- PickListenPortError, HTTP_SERVER_COMPILED_IN, VOICE_COMPILED_IN,
+ PickListenPortError, ServiceSet, HTTP_SERVER_COMPILED_IN, VOICE_COMPILED_IN,
};
- #[cfg(feature = "modules")]
- pub use openhuman_tinyhumans::embed::modules;
}
/// Core internals for this crate's own modules, through embed's doc-hidden
diff --git a/crates/openhuman-tinyhumans/src/lib.rs b/crates/openhuman-tinyhumans/src/lib.rs
index fcb4c4c471..e86e1380b6 100644
--- a/crates/openhuman-tinyhumans/src/lib.rs
+++ b/crates/openhuman-tinyhumans/src/lib.rs
@@ -52,20 +52,20 @@
pub mod embed {
// Runtime, builder and the knobs the hosts configure it with.
pub use openhuman_embed::{
- Access, Agent, AgentSpec, ApiKey, ConfigSource, CoreError, CoreRuntime, DomainSet,
- Harness, HarnessBuilder, HostKind, Provider, Runtime, RuntimeBuilder, RuntimeError,
- ServiceSet, TokenSource, Workspace,
+ Access, Agent, AgentSpec, ApiKey, ConfigSource, CoreError, CoreRuntime, DomainSet, Harness,
+ HarnessBuilder, HostKind, Provider, Runtime, RuntimeBuilder, RuntimeError, ServiceSet,
+ TokenSource, Workspace,
};
// Process-level facts a host reads.
pub use openhuman_embed::{
schema_for_rpc_method, PickListenPortError, HTTP_SERVER_COMPILED_IN, VOICE_COMPILED_IN,
};
// The curated facades (each is an explicit list inside embed).
+ #[cfg(feature = "modules")]
+ pub use openhuman_embed::modules;
pub use openhuman_embed::{
artifacts, chat_surface, config, identity, memory, process, seams, session_store,
};
- #[cfg(feature = "modules")]
- pub use openhuman_embed::modules;
}
/// Core internals for `openhuman-rpc` only, forwarded from embed's