feat: embed cross-platform HoloLake terminal link
This commit is contained in:
parent
0be5ab3407
commit
ae7f883891
16 changed files with 808 additions and 122 deletions
|
|
@ -21,6 +21,9 @@ pub struct HoloLakeHomeStatus {
|
|||
pub release_recovery_state: String,
|
||||
pub automatic_upstream_updates: bool,
|
||||
pub mcp_role: &'static str,
|
||||
pub terminal_link_protocol: &'static str,
|
||||
pub terminal_link_transport: &'static str,
|
||||
pub environment_frame_policy: &'static str,
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
|
@ -41,6 +44,13 @@ pub fn get_hololake_home_status(
|
|||
release_recovery_state: crate::release_update::release_recovery_state(&app)?,
|
||||
automatic_upstream_updates: false,
|
||||
mcp_role: "DISCOVERY_RECOVERY_COMPATIBILITY_ONLY",
|
||||
terminal_link_protocol: "HOLOLAKE_TERMINAL_LINK/2",
|
||||
terminal_link_transport: if cfg!(windows) {
|
||||
"WINDOWS_USER_PRIVATE_NAMED_PIPE"
|
||||
} else {
|
||||
"MACOS_LINUX_USER_PRIVATE_UNIX_SOCKET"
|
||||
},
|
||||
environment_frame_policy: "REQUIRED_AFTER_CONNECT_RESUME_AND_BEFORE_MUTATION",
|
||||
});
|
||||
}
|
||||
let session_root = direct_session_root(&app)?;
|
||||
|
|
@ -57,5 +67,12 @@ pub fn get_hololake_home_status(
|
|||
release_recovery_state: crate::release_update::release_recovery_state(&app)?,
|
||||
automatic_upstream_updates: false,
|
||||
mcp_role: "DISCOVERY_RECOVERY_COMPATIBILITY_ONLY",
|
||||
terminal_link_protocol: "HOLOLAKE_TERMINAL_LINK/2",
|
||||
terminal_link_transport: if cfg!(windows) {
|
||||
"WINDOWS_USER_PRIVATE_NAMED_PIPE"
|
||||
} else {
|
||||
"MACOS_LINUX_USER_PRIVATE_UNIX_SOCKET"
|
||||
},
|
||||
environment_frame_policy: "REQUIRED_AFTER_CONNECT_RESUME_AND_BEFORE_MUTATION",
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue