feat: Add LICENSE file and refactor MITM response handling and tracing.

This commit is contained in:
Nikketryhard
2026-02-18 02:43:05 -06:00
parent c0c12de83c
commit ad0aa1556c
26 changed files with 1132 additions and 569 deletions

View File

@@ -59,12 +59,16 @@ fn find_install_dir() -> Option<String> {
#[cfg(target_os = "macos")]
let candidates = [
"/Applications/Antigravity.app/Contents",
&format!("{}/Applications/Antigravity.app/Contents", std::env::var("HOME").unwrap_or_default()),
&format!(
"{}/Applications/Antigravity.app/Contents",
std::env::var("HOME").unwrap_or_default()
),
];
#[cfg(target_os = "windows")]
let candidates = [
&format!("{}\\Programs\\Antigravity", std::env::var("LOCALAPPDATA").unwrap_or_default()),
];
let candidates = [&format!(
"{}\\Programs\\Antigravity",
std::env::var("LOCALAPPDATA").unwrap_or_default()
)];
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
let candidates: [&str; 0] = [];
@@ -222,7 +226,10 @@ pub fn log_base() -> String {
/// Token file path.
pub fn token_file_path() -> String {
crate::platform::Platform::detect().token_path.to_string_lossy().to_string()
crate::platform::Platform::detect()
.token_path
.to_string_lossy()
.to_string()
}
/// User-Agent string matching the Electron webview — computed once.