| use codex_utils_path_uri::PathUri; |
| use serde::Deserialize; |
| use serde::Serialize; |
|
|
| pub const ENVIRONMENT_CONFIG_READ_METHOD: &str = "environmentConfig/read"; |
|
|
| |
| #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] |
| #[serde(rename_all = "camelCase")] |
| pub struct EnvironmentConfigReadParams { |
| pub cwd: PathUri, |
| pub config_paths: Vec<Vec<String>>, |
| pub requirements_paths: Vec<Vec<String>>, |
| } |
|
|
| |
| #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] |
| #[serde(rename_all = "camelCase")] |
| pub struct EnvironmentConfigReadResponse { |
| |
| pub user_home_dir: Option<PathUri>, |
| |
| pub codex_home_dir: PathUri, |
| |
| pub hostname: Option<String>, |
| pub config: EnvironmentConfigLayerStack, |
| pub requirements: EnvironmentConfigLayerStack, |
| } |
|
|
| |
| #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] |
| #[serde(rename_all = "camelCase")] |
| pub struct EnvironmentConfigLayerStack { |
| |
| pub layers: Vec<EnvironmentConfigLayer>, |
| |
| pub cloud_insertion_index: usize, |
| } |
|
|
| |
| #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] |
| #[serde(rename_all = "camelCase")] |
| pub struct EnvironmentConfigLayer { |
| |
| pub source: String, |
| |
| pub base_dir: PathUri, |
| |
| pub toml: String, |
| } |
|
|