Implement cron job management tools and types
- Added `JobType`, `SessionTarget`, `Schedule`, `DeliveryConfig`, `CronJob`, `CronRun`, and `CronJobPatch` types in `src/cron/types.rs` for cron job configuration and management. - Introduced `CronAddTool`, `CronListTool`, `CronRemoveTool`, `CronRunTool`, `CronRunsTool`, and `CronUpdateTool` in `src/tools` for adding, listing, removing, running, and updating cron jobs. - Updated the `run` function in `src/daemon/mod.rs` to conditionally start the scheduler based on the cron configuration. - Modified command-line argument parsing in `src/lib.rs` and `src/main.rs` to support new cron job commands. - Enhanced the onboarding wizard in `src/onboard/wizard.rs` to include cron configuration. - Added tests for cron job tools to ensure functionality and error handling.
This commit is contained in:
parent
0ec46ac3d1
commit
fb2d1cea0b
24 changed files with 2682 additions and 638 deletions
|
|
@ -117,6 +117,7 @@ pub fn run_wizard() -> Result<Config> {
|
|||
agent: crate::config::schema::AgentConfig::default(),
|
||||
model_routes: Vec::new(),
|
||||
heartbeat: HeartbeatConfig::default(),
|
||||
cron: crate::config::CronConfig::default(),
|
||||
channels_config,
|
||||
memory: memory_config, // User-selected memory backend
|
||||
tunnel: tunnel_config,
|
||||
|
|
@ -329,6 +330,7 @@ pub fn run_quick_setup(
|
|||
agent: crate::config::schema::AgentConfig::default(),
|
||||
model_routes: Vec::new(),
|
||||
heartbeat: HeartbeatConfig::default(),
|
||||
cron: crate::config::CronConfig::default(),
|
||||
channels_config: ChannelsConfig::default(),
|
||||
memory: memory_config,
|
||||
tunnel: crate::config::TunnelConfig::default(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue