Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style: apply rustfmt import ordering and line wrapping

Steven Enamakelf2a0fac21a1f
diff --git a/crates/openhuman-core/src/agent/tools.rs b/crates/openhuman-core/src/agent/tools.rs
index 664bd6e6bf..b1b96cd05f 100644
--- a/crates/openhuman-core/src/agent/tools.rs
+++ b/crates/openhuman-core/src/agent/tools.rs
@@ -28,6 +28,6 @@ mod todo;
pub use plan_exit::PlanExitTool;
pub const PLAN_EXIT_MARKER: &str = tinyagents_harness_tools::PLAN_EXIT_MARKER;
+pub use tinyagents_harness_tools::{WaitLoopTool, WaitTool};
pub use todo::TodoTool;
pub(crate) use todo::TodoToolDispatch;
-pub use tinyagents_harness_tools::{WaitLoopTool, WaitTool};
diff --git a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
index 3af407b631..67dc636e98 100644
--- a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
@@ -1,4 +1,4 @@
-use crate::agent::tools::{PlanExitTool, PLAN_EXIT_MARKER};
+use crate::agent::tools::{PLAN_EXIT_MARKER, PlanExitTool};
use crate::plan_review::PlanReviewResolution;
use serde_json::json;
use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolRunContext};
@@ -63,13 +63,15 @@ async fn plan_exit_does_not_flip_while_a_review_is_parked() {
// Resolve the parked review so the spawned task and the gate's
// bookkeeping don't leak past this test.
- assert!(crate::plan_review::gate::global().decide_by_thread(
- &crate::core::runtime::DispatchCtx::ambient()
- .tenant()
- .unwrap(),
- thread_id,
- PlanReviewResolution::Approve,
- ));
+ assert!(
+ crate::plan_review::gate::global().decide_by_thread(
+ &crate::core::runtime::DispatchCtx::ambient()
+ .tenant()
+ .unwrap(),
+ thread_id,
+ PlanReviewResolution::Approve,
+ )
+ );
let resolution = parked.await.unwrap();
assert_eq!(resolution, PlanReviewResolution::Approve);
diff --git a/crates/openhuman-core/src/agent/tools/todo_tests.rs b/crates/openhuman-core/src/agent/tools/todo_tests.rs
index 0c49cc062a..4bf640a261 100644
--- a/crates/openhuman-core/src/agent/tools/todo_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/todo_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use serde_json::{json, Value};
+use serde_json::{Value, json};
use tinyagents_harness_tools::todos::{TodoItem, TodoStatus};
/// Serialize tests that share the process-global scratch store. Same lock
diff --git a/crates/openhuman-core/src/doctor/ops.rs b/crates/openhuman-core/src/doctor/ops.rs
index e7b5007312..112a2a4f05 100644
--- a/crates/openhuman-core/src/doctor/ops.rs
+++ b/crates/openhuman-core/src/doctor/ops.rs
@@ -9,8 +9,8 @@ use super::contract::DoctorProfileStatus;
use super::profile::DesktopProfileSelection;
use crate::config::Config;
use crate::core::{
- runtime::{ComponentSet, CoreContext, DispatchCtx},
Outcome,
+ runtime::{ComponentSet, CoreContext, DispatchCtx},
};
use crate::doctor::{
DoctorConfigSource, DoctorCtx, DoctorOptions, DoctorReport, DoctorSummary, DoctorTier, Finding,
@@ -252,8 +252,8 @@ fn unusable_default_config_outcome(
.collect::<HashSet<_>>();
let only = options.only.iter().cloned().collect::<HashSet<_>>();
let skip = options.skip.iter().cloned().collect::<HashSet<_>>();
- let parse_selected = (only.is_empty() || only.contains("config/parse"))
- && !skip.contains("config/parse");
+ let parse_selected =
+ (only.is_empty() || only.contains("config/parse")) && !skip.contains("config/parse");
let mut findings = if parse_selected {
config_parse_finding(config).into_iter().collect::<Vec<_>>()
} else {
@@ -291,7 +291,10 @@ fn unusable_default_config_outcome(
findings,
ok: false,
};
- Ok(Some(Outcome::single_log(report, "doctor config parse failed")))
+ Ok(Some(Outcome::single_log(
+ report,
+ "doctor config parse failed",
+ )))
}
async fn report_with_context(
diff --git a/crates/openhuman-core/src/doctor/ops_tests.rs b/crates/openhuman-core/src/doctor/ops_tests.rs
index 2a43a92c46..6a625a9282 100644
--- a/crates/openhuman-core/src/doctor/ops_tests.rs
+++ b/crates/openhuman-core/src/doctor/ops_tests.rs
@@ -1,14 +1,14 @@
use super::*;
-use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
+use std::sync::atomic::{AtomicUsize, Ordering};
use crate::core::runtime::{CoreContext, DomainSet};
use crate::core::slots::Extensions;
use crate::memory::engine::{Binding, EngineHealth};
use crate::memory::engine_registry::{
- register_memory_engine_in, register_memory_health_probe_in, EngineEntry, EngineFuture,
- ReadOnlyHealthProbe,
+ EngineEntry, EngineFuture, ReadOnlyHealthProbe, register_memory_engine_in,
+ register_memory_health_probe_in,
};
#[tokio::test]
@@ -17,8 +17,7 @@ async fn malformed_config_fallback_honors_exact_doctor_selectors() {
let config_path = directory.path().join("config.toml");
let workspace = directory.path().join("workspace");
std::fs::create_dir_all(&workspace).expect("create workspace");
- std::fs::write(&config_path, "[broken\n")
- .expect("write malformed config");
+ std::fs::write(&config_path, "[broken\n").expect("write malformed config");
let config = Config::load_from_config_path(&config_path, &workspace)
.await
.expect("load default fallback");