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(embed): remove unused imports
Steven Enamakele28e599490d3
diff --git a/crates/openhuman-embed/src/artifacts.rs b/crates/openhuman-embed/src/artifacts.rsnew file mode 100644index 0000000000..8bc9708aa8--- /dev/null+++ b/crates/openhuman-embed/src/artifacts.rs@@ -0,0 +1,12 @@+//! Agent artifacts as a host serves them: resolving a finished artifact's+//! file under the roots the core may read from.+//!+//! The constructors below the line exist for host tests that need a real+//! artifact on disk; production hosts only resolve.++pub use openhuman_core::agent::artifacts::{resolve_ready_file, FileRoots};++#[doc(hidden)]+pub use openhuman_core::agent::artifacts::{+ create_artifact, finalize_artifact, ArtifactKind, ArtifactMeta, ArtifactStatus,+};diff --git a/crates/openhuman-embed/src/chat_surface.rs b/crates/openhuman-embed/src/chat_surface.rsnew file mode 100644index 0000000000..1fd074ac22--- /dev/null+++ b/crates/openhuman-embed/src/chat_surface.rs@@ -0,0 +1,11 @@+//! The in-process web-chat event stream, for a host that is itself an+//! interactive surface (the TUI) rather than a Socket.IO client.+//!+//! With no channel service running, a host bridges approval, plan-review and+//! artifact events onto this stream by registering the surface subscribers,+//! then reads it with [`subscribe_web_channel_events`].++pub use openhuman_core::web_chat::{+ publish_web_channel_event, register_approval_surface_subscriber,+ register_artifact_surface_subscriber, subscribe_web_channel_events, WebChannelEvent,+};diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rsnew file mode 100644index 0000000000..f93cb3db9f--- /dev/null+++ b/crates/openhuman-embed/src/host_internals.rs@@ -0,0 +1,17 @@+//! Core internals for the crates layered directly above embed+//! (`openhuman-tinyhumans`, `openhuman-rpc`), and nothing else.+//!+//! Those layers implement the backend transport, the hosted controllers and+//! the JSON-RPC server, which reach deep into the core by nature. Routing+//! them through this module keeps the dependency chain strict (they need no+//! `openhuman-core` dependency of their own) without inventing a public API+//! for every server internal. It is an explicit list of modules, not a glob:+//! a new reach-in is added here on purpose. Hosts (app, CLI, TUI) use the+//! curated facade at the crate root instead.++pub use openhuman_core::{+ agent, backend, channels, config, core, desktop, inference, integrations, mcp, platform,+ security, tools, util, voice, web3, web_chat,+};++pub use openhuman_core::run_core_from_args;diff --git a/crates/openhuman-embed/src/identity.rs b/crates/openhuman-embed/src/identity.rsnew file mode 100644index 0000000000..7ec5d47278--- /dev/null+++ b/crates/openhuman-embed/src/identity.rs@@ -0,0 +1,5 @@+//! The signed-in user as the core knows it, reduced to the fields a host may+//! attach to diagnostics (`id`, `name`, `email`).++pub use openhuman_core::agent::prompts::UserIdentity;+pub use openhuman_core::security::credentials::identity::peek_credential_user_identity;diff --git a/crates/openhuman-embed/src/modules.rs b/crates/openhuman-embed/src/modules.rsnew file mode 100644index 0000000000..e1d9279740--- /dev/null+++ b/crates/openhuman-embed/src/modules.rs@@ -0,0 +1,12 @@+//! Loadable native modules, as far as a host configures them.++/// Point module installs at artifacts bundled with the host (an app's+/// resources directory) instead of downloading them. Set once, before boot;+/// `Err` returns the path when one was already set.+pub use openhuman_core::modules::ops::set_bundled_releases_dir;++/// The browser-control module.+pub mod browser {+ /// Its registry id, for a host that checks whether it is installed.+ pub use openhuman_core::modules::browser::MODULE_ID;+}