pub async fn sync( agent: &Agent, dir: &Path, canister_id: &CanisterId, timeout: Duration) -> Result<()>