Files
ag-x/dist/ideInstall/wizardPreload.js
admin 43e2a2f78f 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
2026-05-22 23:20:10 +04:00

24 lines
879 B
JavaScript

"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);