feat(wave-1): 适配器框架与安全基座(schema校验/dry-run/exec沙箱/密钥库/日志脱敏/字段拆分)
This commit is contained in:
@@ -11,6 +11,12 @@ pub struct PlatformEnv {
|
||||
pub os_version: String,
|
||||
/// 架构(std::env::consts::ARCH,如 x86_64)
|
||||
pub arch: String,
|
||||
/// Linux 发行版名称(如 "ubuntu");Windows 为 None。
|
||||
/// 架构 §5 原 `distro?: ubuntu + version` 合并字段,本波拆分为
|
||||
/// `distro` + `distro_version` 两个字段(总工 Wave 0 🟡)。
|
||||
pub distro: Option<String>,
|
||||
/// Linux 发行版版本(如 "22.04");Windows 为 None。
|
||||
pub distro_version: Option<String>,
|
||||
pub shells: Shells,
|
||||
pub runtimes: Runtimes,
|
||||
/// PATH 条目(Windows 用 ';' 分割,Linux 用 ':')
|
||||
@@ -41,7 +47,7 @@ pub struct Runtimes {
|
||||
/// 单个运行时探测结果
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
|
||||
pub struct RuntimeInfo {
|
||||
/// installed | not_installed | not_in_path | exec_failed | version_unparseable
|
||||
/// installed | not_in_path | permission_denied | exec_failed | version_unparseable
|
||||
pub status: String,
|
||||
pub version: Option<String>,
|
||||
/// 解析到的可执行文件绝对路径(PATH 搜索)
|
||||
|
||||
Reference in New Issue
Block a user