Skip to main content

agent_hub_runtime/core/platforms/
contracts.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Copy, Debug, PartialEq, Eq, Deserialize, Serialize)]
4#[serde(rename_all = "lowercase")]
5pub enum Provider {
6    Github,
7    Gitlab,
8}
9#[derive(Clone, Debug, Deserialize, Serialize)]
10pub struct CliLauncher {
11    pub program: String,
12    pub args: Vec<String>,
13}
14/// Existing desktop update notification contract, also used by manual checks.
15#[derive(Debug, serde::Serialize)]
16pub struct AppUpdateInfo {
17    pub has_update: bool,
18    pub current_version: String,
19    pub latest_version: String,
20    pub release_url: String,
21}