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:
admin
2026-05-22 23:20:10 +04:00
Unverified
commit 43e2a2f78f
46 changed files with 7719 additions and 0 deletions

23
dist/test/helpers.js vendored Normal file
View File

@@ -0,0 +1,23 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_WINDOW_URL = void 0;
exports.silenceConsole = silenceConsole;
/**
* Shared test helpers and utilities.
*
* For module mocks (electron, electron-updater), use the auto-mock files
* in `src/__mocks__/` instead. This file is for runtime helpers that
* are called in beforeEach/afterEach blocks.
*/
const vitest_1 = require("vitest");
const constants_1 = require("../constants");
exports.DEFAULT_WINDOW_URL = `${constants_1.WINDOW_ORIGIN}:${constants_1.DYNAMIC_PORT}/`;
/**
* Silence console output during tests. Call in `beforeEach`.
* Restoring is handled by `vi.restoreAllMocks()` in `afterEach`.
*/
function silenceConsole() {
vitest_1.vi.spyOn(console, 'log').mockImplementation(() => { });
vitest_1.vi.spyOn(console, 'warn').mockImplementation(() => { });
vitest_1.vi.spyOn(console, 'error').mockImplementation(() => { });
}