Skip to content

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

chore(cron): remove unused module

Steven Enamakel700a85a9e1d8
diff --git a/crates/openhuman-core/src/cron/mod.rs b/crates/openhuman-core/src/cron/mod.rs
index 4aee520fb8..195171ecda 100644
--- a/crates/openhuman-core/src/cron/mod.rs
+++ b/crates/openhuman-core/src/cron/mod.rs
@@ -1,17 +1,24 @@
-//! Scheduled-job host: the job + run store, the loop that drives the
-//! `tinyflows-schedule` runtime, and delivery of job output into the agent /
-//! channel pipelines. Shell jobs sandbox through `security::SecurityPolicy`;
+//! Scheduled-job host: the adapters between the product and the `tinyflows`
+//! module, which owns the scheduler runtime, the job + run store and the
+//! schedule maths behind `tinyflows_bus::schedule`. Core keeps the policy and
+//! the pluggable halves: the poll cadence, the `ScheduleHost` callback object
+//! and the document port the module calls back, the job-kind handler registry
+//! (shell, agent, flow, system jobs), and delivery of job output into the agent
+//! / channel pipelines. Shell jobs sandbox through `security::SecurityPolicy`;
//! agent jobs build an `Agent` directly; flow jobs fire the flow's schedule
-//! trigger through the runtime's `TriggerSink`.
+//! trigger directly.
//! See `README.md` for the full module map.
// Host-condition policy (battery / AC / CPU) that throttles background LLM
// work such as memory digests. The cron poll loop itself does not consult it.
pub mod bus;
+pub(crate) mod bus_host;
pub mod channel_bridge;
-pub mod claims;
+pub(crate) mod client;
pub mod completion_owner;
+pub(crate) mod documents_port;
+pub mod handlers;
pub mod host_delivery;
pub mod job_builder;
pub mod limits;
@@ -44,17 +51,15 @@ pub use store::{
find_flow_schedule_job, get_job, list_jobs, list_runs, record_last_run, record_run,
record_run_with_delivery, remove_job, reschedule_after_run, update_job,
};
-// Retained until the released TinyFlows schedule bus contract is available
-// (tinyhumansai/tinyflows#120). Embed must not link its implementation library
-// just to reach these existing cron types. The #7397 cutover removes this facade.
-#[allow(unused_imports)]
-pub use tinyflows_schedule::schedule::{
- next_run_for_schedule, normalize_expression, runs_closer_than, schedule_cron_expression,
- validate_agent_schedule, validate_schedule, TooFrequent, MIN_AGENT_JOB_INTERVAL,
-};
+// The job, run and schedule records are the tinyflows bus contract's; the
+// host re-exports them so `cron::Schedule` etc. keep their paths and no type is
+// redeclared here. The schedule maths and validation run in the module
+// (`client`), so no function is re-exported.
pub use tinyflows_bus::schedule::types::delivery_mode;
pub use tinyflows_bus::schedule::types::{
ActiveHours, CronJob, CronJobPatch, CronRun, DeliveryConfig, DeliveryStatus, JobOrigin,
JobType, Schedule, SessionTarget,
};
-pub use tinyflows_schedule::{AgentJobSpec, JobPolicy};
+pub use tinyflows_bus::schedule::{
+ AgentJobSpec, JobPolicy, TooFrequent, MIN_AGENT_JOB_INTERVAL,
+};