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): move schedule tool into the cron module
Steven Enamakel0e080bd5c482
diff --git a/crates/openhuman-core/src/cron/README.md b/crates/openhuman-core/src/cron/README.mdindex 2d7c0e47eb..4fe56b4c04 100644--- a/crates/openhuman-core/src/cron/README.md+++ b/crates/openhuman-core/src/cron/README.md@@ -391,7 +391,7 @@ Cron publishes, through [`core/bus.rs`](../core/bus.rs), these `DomainEvent` varservice when `cron.enabled` is set, after flows reconcile their scheduletriggers. It also calls `ensure_memory_jobs` and `prune_retired_jobs`.- `core/all.rs` registers the controllers.-- [`tools/impl/system/schedule.rs`](../tools/impl/system/schedule.rs) is the `schedule` tool, built on the same+- [`tools/schedule.rs`](./tools/schedule.rs) is the `schedule` tool, built on the samestore functions and `create_agent_job`.- [`channels/runtime/startup/start_channels.rs`](../channels/runtime/startup/start_channels.rs) registersthe channel bridge used by `announce` and origin delivery.diff --git a/crates/openhuman-core/src/cron/tools.rs b/crates/openhuman-core/src/cron/tools.rsindex 16b3ca473c..a39a9c8d48 100644--- a/crates/openhuman-core/src/cron/tools.rs+++ b/crates/openhuman-core/src/cron/tools.rs@@ -10,6 +10,7 @@ mod list;mod remove;mod run;mod runs;+mod schedule;mod update;pub use add::CronAddTool;@@ -18,6 +19,7 @@ pub use list::CronListTool;pub use remove::CronRemoveTool;pub use run::CronRunTool;pub use runs::CronRunsTool;+pub use schedule::ScheduleTool;pub use update::CronUpdateTool;/// Register the advertised scheduler and its replay-compatible operation aliases.diff --git a/crates/openhuman-core/src/cron/tools/README.md b/crates/openhuman-core/src/cron/tools/README.mdindex 600160b574..8019a1c628 100644--- a/crates/openhuman-core/src/cron/tools/README.md+++ b/crates/openhuman-core/src/cron/tools/README.md@@ -75,7 +75,7 @@ or immediately execute a stored command or agent prompt on the host.- `cron` domain: [`../README.md`](../README.md): job/run model, scheduler,delivery modes, agent-job minimum interval.-- [`crates/openhuman-core/src/tools/impl/system/schedule.rs`](../../tools/impl/system/schedule.rs): the separate+- [`schedule.rs`](./schedule.rs): the separateone-shot `schedule` tool built on `cron::add_once` / `cron::add_once_at`;not part of the collapse above.- `crates/openhuman-core/src/tools/impl/meta/collapse.rs` (module pathdiff --git a/crates/openhuman-core/src/tools/impl/system/parameters/schedule.json b/crates/openhuman-core/src/cron/tools/parameters/schedule.jsonsimilarity index 100%rename from crates/openhuman-core/src/tools/impl/system/parameters/schedule.jsonrename to crates/openhuman-core/src/cron/tools/parameters/schedule.jsondiff --git a/crates/openhuman-core/src/tools/impl/system/schedule.rs b/crates/openhuman-core/src/cron/tools/schedule.rssimilarity index 100%rename from crates/openhuman-core/src/tools/impl/system/schedule.rsrename to crates/openhuman-core/src/cron/tools/schedule.rsdiff --git a/crates/openhuman-core/src/tools/impl/system/schedule_schema_tests.rs b/crates/openhuman-core/src/cron/tools/schedule_schema_tests.rssimilarity index 100%rename from crates/openhuman-core/src/tools/impl/system/schedule_schema_tests.rsrename to crates/openhuman-core/src/cron/tools/schedule_schema_tests.rsdiff --git a/crates/openhuman-core/src/tools/impl/system/schedule_tests.rs b/crates/openhuman-core/src/cron/tools/schedule_tests.rssimilarity index 100%rename from crates/openhuman-core/src/tools/impl/system/schedule_tests.rsrename to crates/openhuman-core/src/cron/tools/schedule_tests.rsdiff --git a/crates/openhuman-core/src/tools/impl/README.md b/crates/openhuman-core/src/tools/impl/README.mdindex 883f7f7aaa..df570fd01d 100644--- a/crates/openhuman-core/src/tools/impl/README.md+++ b/crates/openhuman-core/src/tools/impl/README.md@@ -26,7 +26,7 @@ tested but no production assembly site constructs it today.| Family | Tools | Registration gate || --- | --- | --- |-| [`system/`](./system/) | `ShellTool`, `InstallToolTool`, `DetectToolsTool`, `CurrentTimeTool`, `ResolveTimeTool`, `ScheduleTool`, `ProxyConfigTool`, `PushoverTool`, update tools, workspace and retrieval helpers. |+| [`system/`](./system/) | `ShellTool`, `InstallToolTool`, `DetectToolsTool`, `CurrentTimeTool`, `ResolveTimeTool`, `ProxyConfigTool`, `PushoverTool`, update tools, workspace and retrieval helpers. || [`filesystem/`](./filesystem/) | Host adapter only: `SecurityPolicy` implements `tinytools_std::filesystem::FsGate`. The tools (`FileReadTool`, `FileWriteTool`, `EditFileTool`, `ApplyPatchTool`, `GrepTool`, `GlobTool`, `ListFilesTool`, `ReadDiffTool`, `CsvExportTool`, `GitOperationsTool`, `RunLinterTool`, `RunTestsTool`, `UpdateMemoryMdTool`) live in `tinytools_std::filesystem` and are imported directly by `tools/ops.rs` | always registered, except `ReadDiffTool`, `RunLinterTool`, and `RunTestsTool`, which are exported, not registered || [`browser/`](./browser/) | `BrowserTool` (TinyComputer browser members and tasks), `BrowserOpenTool` (simple TinyComputer navigation), `ImageInfoTool` | Both browser tools need `browser.enabled` and the `modules` feature, and are deferred until `tool_search`; `ImageInfoTool` remains direct. Browser navigation uses the shared `http_request.allowed_domains` policy, and the checksum-pinned TinyComputer release module. Consequential actions go through the forced approval gate; `browser_unattended.rs` lets trusted cron/background/approval-free workflow turns skip it for the kinds listed in `[browser] unattended_actions`. || [`network/`](./network/) | `HttpRequestTool`, `WebFetchTool`, `CurlTool`, `GitbooksSearchTool`, `GitbooksGetPageTool`, and under the `mcp` Cargo feature `McpListServersTool`, `McpListToolsTool`, `McpCallTool`; `url_guard.rs` is the shared SSRF/allowlist validator, not a tool | `http_request`, `web_fetch`, `curl` always registered; `gitbooks_*` need `gitbooks.enabled` and, when the active profile sets an `mcp_allowlist`, an entry named `gitbooks`; `mcp_list_servers`/`mcp_list_tools`/`mcp_call_tool` register only when the static `[[mcp_client.servers]]` registry (after the profile allowlist) is non-empty |diff --git a/crates/openhuman-core/src/tools/impl/system/mod.rs b/crates/openhuman-core/src/tools/impl/system/mod.rsindex c3932264cc..a867d78cd3 100644--- a/crates/openhuman-core/src/tools/impl/system/mod.rs+++ b/crates/openhuman-core/src/tools/impl/system/mod.rs@@ -6,7 +6,6 @@mod install_tool;mod proxy_config;mod retrieve_tool_output;-mod schedule;mod shell;mod shell_description;mod shell_saas;@@ -21,7 +20,6 @@ use tinytools::ToolRunContext;pub use install_tool::InstallToolTool;pub use proxy_config::ProxyConfigTool;pub use retrieve_tool_output::{retrieve_tool_output_tool, RetrieveToolOutputTool};-pub use schedule::ScheduleTool;pub use shell::ShellTool;pub use update_apply::UpdateApplyTool;pub use update_check::UpdateCheckTool;diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rsindex 083598e5ac..b69812df70 100644--- a/crates/openhuman-core/src/tools/ops.rs+++ b/crates/openhuman-core/src/tools/ops.rs@@ -132,7 +132,10 @@ pub fn all_tools_with_runtime(#[cfg(feature = "web3")]tools.extend(crate::web3::wallet::tools::all_agent_tools());tools.append(&mut vec![- Box::new(ScheduleTool::new(security.clone(), root_config.clone())),+ Box::new(crate::cron::tools::ScheduleTool::new(+ security.clone(),+ root_config.clone(),+ )),Box::new(ProxyConfigTool::new(config.clone(), security.clone())),Box::new(UpdateCheckTool::new()),Box::new(UpdateApplyTool::new(security.clone())),