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(cron): remove unused imports and re-exports
Steven Enamakel8e22c77994ff
diff --git a/crates/openhuman-core/src/cron/scheduler.rs b/crates/openhuman-core/src/cron/scheduler.rsindex a4014d169b..14278988d2 100644--- a/crates/openhuman-core/src/cron/scheduler.rs+++ b/crates/openhuman-core/src/cron/scheduler.rs@@ -55,7 +55,6 @@ use crate::modules::tinyflows as module;use crate::security::SecurityPolicy;use anyhow::{anyhow, Result};use manual_run::{LoopSlot, MIN_POLL_SECONDS};-use serde_json::{json, Value};use std::collections::{HashMap, HashSet};use std::sync::atomic::{AtomicBool, Ordering};use std::sync::{Arc, LazyLock, Mutex};@@ -107,4 +106,4 @@ pub(crate) use dispatcher::{execute_job_now, tick_once, JobDispatcher};pub use live_agents::run_live_agent_pass;pub(crate) use live_agents::LiveAgentSchedulers;pub use manual_run::is_running;-pub(crate) use manual_run::{scheduler_config, try_acquire_run, RunGuard, ALREADY_RUNNING};+pub(crate) use manual_run::{scheduler_config, try_acquire_run, ALREADY_RUNNING};diff --git a/crates/openhuman-core/src/cron/schemas.rs b/crates/openhuman-core/src/cron/schemas.rsindex dc3ad10ebf..1dd9c26d5d 100644--- a/crates/openhuman-core/src/cron/schemas.rs+++ b/crates/openhuman-core/src/cron/schemas.rs@@ -1,14 +1,5 @@-use crate::core::all::{ControllerFuture, RegisteredController};-use crate::core::runtime::DispatchCtx;-use crate::core::Outcome;-use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-use serde::de::DeserializeOwned;-use serde_json::{Map, Value};-use tinyflows_bus::schedule::types::{CronJobPatch, DeliveryConfig};-mod declarations;mod handlers;-use handlers::*;pub use declarations::{all_controller_schemas, all_registered_controllers, schemas};diff --git a/crates/openhuman-core/src/cron/schemas/declarations.rs b/crates/openhuman-core/src/cron/schemas/declarations.rsindex 24af14d96a..34feaf010e 100644--- a/crates/openhuman-core/src/cron/schemas/declarations.rs+++ b/crates/openhuman-core/src/cron/schemas/declarations.rs@@ -1,12 +1,5 @@use super::handlers::*;-use super::*;--use crate::core::runtime::DispatchCtx;-use serde::de::DeserializeOwned;-use serde_json::{Map, Value};--use crate::core::all::{ControllerFuture, RegisteredController};-use crate::core::Outcome;+use crate::core::all::RegisteredController;use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use tinyflows_bus::schedule::types::{CronJobPatch, DeliveryConfig};diff --git a/crates/openhuman-core/src/cron/schemas/handlers.rs b/crates/openhuman-core/src/cron/schemas/handlers.rsindex 775d2abb8d..01f0285b84 100644--- a/crates/openhuman-core/src/cron/schemas/handlers.rs+++ b/crates/openhuman-core/src/cron/schemas/handlers.rs@@ -1,4 +1,8 @@-use super::*;+use crate::core::all::ControllerFuture;+use crate::core::runtime::DispatchCtx;+use crate::core::Outcome;+use serde::de::DeserializeOwned;+use serde_json::{Map, Value};pub(super) fn handle_add(ctx: DispatchCtx, params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {diff --git a/crates/openhuman-core/src/flows/schemas.rs b/crates/openhuman-core/src/flows/schemas.rsindex 5134569ff5..680d4cdae6 100644--- a/crates/openhuman-core/src/flows/schemas.rs+++ b/crates/openhuman-core/src/flows/schemas.rs@@ -5,12 +5,9 @@//! config, reads params, awaits the matching `ops::flows_*` fn, and converts//! the `Outcome` to CLI-compatible JSON.-use serde::de::DeserializeOwned;use serde_json::{Map, Value};use crate::core::all::{ControllerFuture, RegisteredController};-use crate::core::runtime::DispatchCtx;-use crate::core::Outcome;use crate::core::{ControllerSchema, FieldSchema, TypeSchema};use crate::flows::ops;@@ -351,12 +348,11 @@ pub fn all_registered_controllers() -> Vec<RegisteredController> {registered::all_registered_controllers()}-mod handlers;-mod registered;-use handlers::*;mod builder_schemas;mod definition_schemas;mod draft_schemas;+mod handlers;+mod registered;mod run_schemas;/// Builds the `ControllerSchema` for one `flows.<function>`. Each schemadiff --git a/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs b/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rsindex ee3f1b192f..5224f0fdb4 100644--- a/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs+++ b/crates/openhuman-core/src/flows/tinyflows/tinyflows_tests.rs@@ -138,10 +138,6 @@ fn seeded_required_args_contract(// ── OpenHumanAgentRunner: routing + request/model mapping (Phase A) ───────────-use crate::flows::agent_route::{- harness_model_default_override, route_custom_entry_lookup, route_for_agent_ref, AgentRoute,-};-// ── B38 (Gap 2): a custom agent_ref must route to the harness (real tools),// not the persona-only completion fallback ─────────────────────────────────