Skip to main content

mars_agents/sync/
types.rs

1//! Shared types for the sync pipeline.
2
3/// Options controlling sync behavior.
4#[derive(Debug, Clone, Default)]
5pub struct SyncOptions {
6    /// Force overwrite on conflicts (skip merge).
7    pub force: bool,
8    /// Compute plan but don't execute (dry run).
9    pub dry_run: bool,
10    /// Error if lock file would change (CI mode).
11    pub frozen: bool,
12    /// Skip automatic models cache refresh.
13    pub no_refresh_models: bool,
14}
15
16#[cfg(test)]
17mod tests {
18    use super::SyncOptions;
19
20    #[test]
21    fn default_no_refresh_models_is_false() {
22        assert!(!SyncOptions::default().no_refresh_models);
23    }
24}