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
feat(webhooks): add webhook skill operations and schemas
Steven Enamakelee3f50df628e
diff --git a/crates/openhuman-core/src/skills/webhooks/ops.rs b/crates/openhuman-core/src/skills/webhooks/ops.rsindex 4456ef24c3..22d8711ca1 100644--- a/crates/openhuman-core/src/skills/webhooks/ops.rs+++ b/crates/openhuman-core/src/skills/webhooks/ops.rs@@ -129,6 +129,7 @@ pub async fn register_agent(/// Trigger the triage/agent pipeline directly via RPC without requiring/// an incoming webhook request. Useful for testing and manual escalation.pub async fn trigger_agent(+ ctx: &crate::core::runtime::DispatchCtx,source: &str,caller_id: &str,reason: &str,@@ -155,7 +156,7 @@ pub async fn trigger_agent(let outcome = tokio::time::timeout(std::time::Duration::from_secs(60),- crate::agent::triage::run_triage(&envelope),+ crate::agent::triage::run_triage(ctx, &envelope),).await.map_err(|_| "triage timed out after 60s".to_string())?@@ -170,7 +171,7 @@ pub async fn trigger_agent(std::time::Duration::from_secs(60),crate::agent::turn_origin::with_origin(origin,- crate::agent::triage::apply_decision(run.clone(), &envelope),+ crate::agent::triage::apply_decision(ctx, run.clone(), &envelope),),).awaitdiff --git a/crates/openhuman-core/src/skills/webhooks/schemas.rs b/crates/openhuman-core/src/skills/webhooks/schemas.rsindex 5089cb60ca..88b1d9f51d 100644--- a/crates/openhuman-core/src/skills/webhooks/schemas.rs+++ b/crates/openhuman-core/src/skills/webhooks/schemas.rs@@ -289,7 +289,7 @@ fn handle_register_agent(_ctx: DispatchCtx, params: Map<String, Value>) -> Contr})}-fn handle_trigger_agent(_ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {+fn handle_trigger_agent(ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let payload = deserialize_params::<WebhookTriggerAgentParams>(params)?;let source = payload.source.as_deref().unwrap_or("external");@@ -297,6 +297,7 @@ fn handle_trigger_agent(_ctx: DispatchCtx, params: Map<String, Value>) -> Controlet trigger_payload = payload.payload.unwrap_or_else(|| serde_json::json!({}));to_json(crate::skills::webhooks::ops::trigger_agent(+ &ctx,source,&payload.caller_id,reason,