Fix: Finalize Phase 3 OS interactions and telemetry bridge
- Implemented get_device_info for OS/Network telemetry. - Added run_cmd_sync using execSync for blocking-style commands. - Implemented kill_processes (plural) to support multiple process termination. - Standardized open_local_file_v2 and all bridge methods to snake_case. - Synchronized preload and main handlers with SvelteKit relay expectations.
This commit is contained in:
@@ -4,14 +4,15 @@ contextBridge.exposeInMainWorld('aetherNative', {
|
||||
get_seed_config: () => ipcRenderer.invoke('get-seed-config'),
|
||||
get_device_config: () => ipcRenderer.invoke('get-device-config'),
|
||||
get_jwt: () => ipcRenderer.invoke('get-jwt'),
|
||||
log: (message: string) => console.log('[Native Log]', message),
|
||||
get_device_info: () => ipcRenderer.invoke('get-device-info'),
|
||||
|
||||
// Shell Handlers
|
||||
open_folder: (path: string) => ipcRenderer.invoke('native:open-folder', path),
|
||||
run_command: (args: any) => ipcRenderer.invoke('native:run-cmd', args),
|
||||
launch_file: (path: string) => ipcRenderer.invoke('native:launch-file', path),
|
||||
run_cmd: (args: any) => ipcRenderer.invoke('native:run-cmd', args),
|
||||
run_cmd_sync: (args: any) => ipcRenderer.invoke('native:run-cmd-sync', args),
|
||||
run_osascript: (script: string) => ipcRenderer.invoke('native:run-osascript', script),
|
||||
kill_processes: (args: any) => ipcRenderer.invoke('native:kill-processes', args),
|
||||
open_local_file_v2: (path: string) => ipcRenderer.invoke('native:open-local-file-v2', path),
|
||||
|
||||
// File/Cache Handlers
|
||||
check_cache: (args: any) => ipcRenderer.invoke('native:check-cache', args),
|
||||
download_to_cache: (args: any) => ipcRenderer.invoke('native:download-to-cache', args),
|
||||
launch_from_cache: (args: any) => ipcRenderer.invoke('native:launch-from-cache', args),
|
||||
|
||||
Reference in New Issue
Block a user