Fix: Standardize Electron bridge and implement robust caching

- Refactored all IPC methods and parameters to snake_case for consistency with SvelteKit.
- Implemented exhaustive background caching engine with download locking.
- Reverted to legacy-proven flat hash storage pattern (hash.file).
- Added axios for reliable stream-based binary downloads.
- Updated preload and main handlers to support recursive room data fetching.
This commit is contained in:
Scott Idem
2026-01-23 16:30:23 -05:00
parent 30db989b2c
commit 280de213c1
21 changed files with 665 additions and 24 deletions

View File

@@ -28,7 +28,6 @@ async function fetchFullConfig(seed) {
const deviceData = deviceResult.data || deviceResult;
// Use 'app_base_url' as the FQDN for the site lookup
const fqdn = deviceData.app_base_url || 'native-demo.oneskyit.com';
console.log(`Bootstrap Step 1 Success: Device identified. FQDN to use: ${fqdn}`);
// --- STEP 2: Get Site Context ---
const searchUrl = `${baseUrl}/v3/crud/site_domain/search`;
const siteResponse = await fetch(searchUrl, {
@@ -54,7 +53,8 @@ async function fetchFullConfig(seed) {
console.log(`Bootstrap Success using ${baseUrl}`);
return {
...siteDomain,
native_device: deviceData
native_device: deviceData,
aether_api_key: seed.aether_api_key // Include the key for frontend use
};
}
catch (error) {