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
refactor(saas-gateway): rename agent terminology to profile
Steven Enamakel346affe3c544
diff --git a/crates/openhuman-rpc/src/server/saas_gateway.rs b/crates/openhuman-rpc/src/server/saas_gateway.rsindex 2c1b39bccd..49aa6de6ec 100644--- a/crates/openhuman-rpc/src/server/saas_gateway.rs+++ b/crates/openhuman-rpc/src/server/saas_gateway.rs@@ -10,8 +10,8 @@//! 2. with no `X-OpenHuman-User`, runs it on the operator plane (the bearer//! check downstream still applies);//! 3. with one, checks the service bearer **first** — so an unauthenticated-//! caller learns nothing about which users exist and cannot open agents —-//! then the signature, then runs the request under that user's agent.+//! caller learns nothing about which users exist and cannot open profiles —+//! then the signature, then runs the request under that user's profile.//!//! The decision itself lives in `crate::core_host::profiles::gateway`.@@ -107,12 +107,12 @@ pub(crate) async fn saas_gateway(operator: Arc<CoreContext>, req: Request, next:.map(|d| d.as_secs()).unwrap_or_default();match resolve_scope(Some(&user), signature.as_deref(), secret, now) {- Ok(GatewayScope::User(agent)) => {- let ctx = Arc::clone(agent.context());- // Holding the state for the request keeps the agent from being+ Ok(GatewayScope::User(profile)) => {+ let ctx = Arc::clone(profile.context());+ // Holding the state for the request keeps the profile from being// evicted under it.let response = CoreContext::scope(ctx, next.run(req)).await;- drop(agent);+ drop(profile);response}Ok(GatewayScope::Operator) => CoreContext::scope(operator, next.run(req)).await,