feat(launcher): harden native caching and telemetry; consolidate documentation

- Implemented SHA-256 integrity checks and stale temp purge in native download logic.\n- Enabled strict hash verification in background sync cycle.\n- Made CPU load gauge dynamic using real-time loadavg metadata.\n- Consolidated native app documentation into single master manual.\n- Marked legacy electron_native.js as deprecated.\n- Updated roadmap with temp cleanup and launch protection tasks.
This commit is contained in:
Scott Idem
2026-02-10 14:07:45 -05:00
parent 6abfff293c
commit b5b44e4016
16 changed files with 990 additions and 48 deletions

View File

@@ -23,9 +23,9 @@ export async function get_device_info() {
}
// 2. File & Cache Management
export async function check_hash_file_cache({ cache_root, hash, hash_prefix_length = 2 }: any) {
export async function check_hash_file_cache({ cache_root, hash, hash_prefix_length = 2, verify_hash = false }: any) {
if (!native) return false;
return await native.check_cache({ cache_root, hash, hash_prefix_length });
return await native.check_cache({ cache_root, hash, hash_prefix_length, verify_hash });
}
export async function download_to_cache({ url, cache_root, hash, api_key, account_id, hash_prefix_length = 2 }: any) {