Files
OSIT-AE-App-Native-Electron/dist/preload/index.js
Scott Idem 280de213c1 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.
2026-01-23 16:30:23 -05:00

18 lines
1.1 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const electron_1 = require("electron");
electron_1.contextBridge.exposeInMainWorld('aetherNative', {
get_seed_config: () => electron_1.ipcRenderer.invoke('get-seed-config'),
get_device_config: () => electron_1.ipcRenderer.invoke('get-device-config'),
get_jwt: () => electron_1.ipcRenderer.invoke('get-jwt'),
log: (message) => console.log('[Native Log]', message),
// Shell Handlers
open_folder: (path) => electron_1.ipcRenderer.invoke('native:open-folder', path),
run_command: (args) => electron_1.ipcRenderer.invoke('native:run-cmd', args),
launch_file: (path) => electron_1.ipcRenderer.invoke('native:launch-file', path),
// File/Cache Handlers
check_cache: (args) => electron_1.ipcRenderer.invoke('native:check-cache', args),
download_to_cache: (args) => electron_1.ipcRenderer.invoke('native:download-to-cache', args),
launch_from_cache: (args) => electron_1.ipcRenderer.invoke('native:launch-from-cache', args),
});
//# sourceMappingURL=index.js.map