AG X v2.0.3 - Antigravity fork with multi-provider support
Features: - Welcome screen on first run (provider choice before LS starts) - 15+ AI providers (Google Gemini, OpenAI, Anthropic, DeepSeek, Ollama, etc.) - Provider config syncs to endpoints.json for translation proxy - Built-in Node.js translation proxy for non-native backends - Auto-update support, tray integration, URI scheme handler
This commit is contained in:
23
dist/ideInstall/wizardPreload.js
vendored
Normal file
23
dist/ideInstall/wizardPreload.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
/**
|
||||
* Preload script for the IDE Install Wizard window.
|
||||
*
|
||||
* This is a minimal, self-contained preload that exposes only the APIs
|
||||
* needed by the wizard's inline HTML UI. It runs in its own
|
||||
* BrowserWindow, separate from the main app window and its preload.
|
||||
*/
|
||||
const electron_1 = require("electron");
|
||||
const wizardAPI = {
|
||||
completeWizard: (shouldDownload) => electron_1.ipcRenderer.invoke('wizard:complete', shouldDownload),
|
||||
onSetupComplete: (callback) => {
|
||||
const handler = () => {
|
||||
callback();
|
||||
};
|
||||
electron_1.ipcRenderer.on('wizard:setup-complete', handler);
|
||||
return () => {
|
||||
electron_1.ipcRenderer.removeListener('wizard:setup-complete', handler);
|
||||
};
|
||||
},
|
||||
};
|
||||
electron_1.contextBridge.exposeInMainWorld('wizardAPI', wizardAPI);
|
||||
Reference in New Issue
Block a user