Skip to content

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

chore(threads): reorganise schema module structure

Steven Enamakel6856a16b3e28
diff --git a/crates/openhuman-app/src/ptt_hotkeys.rs b/crates/openhuman-app/src/ptt_hotkeys.rs
index eb70308339..c1ef745063 100644
--- a/crates/openhuman-app/src/ptt_hotkeys.rs
+++ b/crates/openhuman-app/src/ptt_hotkeys.rs
@@ -114,7 +114,6 @@ pub(crate) fn expand_ptt_shortcuts(shortcut: &str) -> Result<Vec<String>, PttErr
Ok(vec![trimmed.to_string()])
}
-
/// Returns `Some(conflicting_variant)` if any expanded PTT variant overlaps
/// any expanded dictation variant. Comparison is case-insensitive.
pub(crate) fn first_conflict_with(ptt: &[String], dictation: &[String]) -> Option<String> {
@@ -129,8 +128,6 @@ pub(crate) fn first_conflict_with(ptt: &[String], dictation: &[String]) -> Optio
None
}
-
-
#[cfg(test)]
#[path = "ptt_hotkeys_tests.rs"]
mod tests;
diff --git a/crates/openhuman-app/src/ptt_hotkeys_tests.rs b/crates/openhuman-app/src/ptt_hotkeys_tests.rs
index 32b5e0404d..edc88bb5cc 100644
--- a/crates/openhuman-app/src/ptt_hotkeys_tests.rs
+++ b/crates/openhuman-app/src/ptt_hotkeys_tests.rs
@@ -131,4 +131,3 @@ fn cas_false_to_true_succeeds_then_repeat_fails() {
"stale swap should return false"
);
}
-
diff --git a/crates/openhuman-core/src/threads/schemas.rs b/crates/openhuman-core/src/threads/schemas.rs
index 87b973d6b4..01cd2cec05 100644
--- a/crates/openhuman-core/src/threads/schemas.rs
+++ b/crates/openhuman-core/src/threads/schemas.rs
@@ -3,5 +3,12 @@
#[cfg(test)]
#[path = "schemas_tests.rs"]
mod tests;
-include!("schemas_part_01.rs");
-include!("schemas_part_02.rs");
+
+mod handlers;
+mod registry;
+mod schema_defs;
+
+pub use registry::{all_controller_schemas, all_registered_controllers};
+
+#[cfg(test)]
+pub(crate) use schema_defs::schemas;