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: remove redundant borrows and qualify cron get_job
Steven Enamakel0beaf64d24ec
diff --git a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rsindex 0cc2deaf62..cd71c982dc 100644--- a/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs+++ b/crates/openhuman-core/src/agent/tinyagents/use_skill_dispatch.rs@@ -113,7 +113,7 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {answer: Some(result),})));};- let typed = typed_dispatch_for(&name, inner_adapter.clone());+ let typed = typed_dispatch_for(name, inner_adapter.clone());Ok(Some(Arc::new(BoundUseSkillDispatch {outer: self.tool.clone(),inner: Some(inner_adapter),@@ -177,7 +177,7 @@ impl ToolDispatch<(), OpenHumanRunContext> for UseSkillDispatch {.await;};- if let Some(dispatch) = typed_dispatch_for(&name, inner_adapter.clone()) {+ if let Some(dispatch) = typed_dispatch_for(name, inner_adapter.clone()) {return dispatch.execute(&(), call_id, inner_args, options, parent).await;diff --git a/crates/openhuman-core/src/cron/ops.rs b/crates/openhuman-core/src/cron/ops.rsindex ca1cd2f3fb..37f94eea4e 100644--- a/crates/openhuman-core/src/cron/ops.rs+++ b/crates/openhuman-core/src/cron/ops.rs@@ -1,8 +1,6 @@use crate::config::Config;use crate::core::Outcome;-use crate::cron::{- self, add_shell_job, get_job, update_job, CronJob, CronJobPatch, CronRun, Schedule,-};+use crate::cron::{self, add_shell_job, update_job, CronJob, CronJobPatch, CronRun, Schedule};use crate::security::SecurityPolicy;use anyhow::Result;use once_cell::sync::Lazy;@@ -100,7 +98,7 @@ pub fn update_cron_job(// Merge expression/tz with the existing schedule so that// tz alone updates the timezone and expression alone preserves the timezone.let schedule = if expression.is_some() || tz.is_some() {- let existing = get_job(config, id)?;+ let existing = cron::get_job(config, id)?;let (existing_expr, existing_tz, existing_active) = match existing.schedule {Schedule::Cron {expr,