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:
49
dist/paths.js
vendored
Normal file
49
dist/paths.js
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.IDE_BACKUP_DATA_DIR = exports.IDE_NEW_DATA_DIR = exports.IDE_OLD_DATA_DIR = void 0;
|
||||
exports.getAppDataDirName = getAppDataDirName;
|
||||
exports.getAppDataDir = getAppDataDir;
|
||||
exports.getSettingsPbPath = getSettingsPbPath;
|
||||
exports.getAppStoragePath = getAppStoragePath;
|
||||
exports.getActivePortFilePath = getActivePortFilePath;
|
||||
exports.getLsLogPath = getLsLogPath;
|
||||
const electron_1 = require("electron");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const os_1 = __importDefault(require("os"));
|
||||
const constants_1 = require("./constants");
|
||||
function getAppDataDirName() {
|
||||
return `ag-x${electron_1.app.isPackaged ? '' : '-dev'}`;
|
||||
}
|
||||
function getAppDataDir() {
|
||||
return path_1.default.join(os_1.default.homedir(), '.ag-x', getAppDataDirName());
|
||||
}
|
||||
function getSettingsPbPath() {
|
||||
return path_1.default.join(os_1.default.homedir(), '.ag-x', 'config', 'config.json');
|
||||
}
|
||||
/**
|
||||
* Returns the path to the persistent app storage file.
|
||||
* This is used to back a lightweight key-value store for UI state,
|
||||
* and is not used for e.g. settings or other "core" app state.
|
||||
*/
|
||||
function getAppStoragePath() {
|
||||
return path_1.default.join(electron_1.app.getPath('userData'), 'app_storage.json');
|
||||
}
|
||||
/**
|
||||
* Returns the path to the file used to communicate AGY Hub's remote debugging port.
|
||||
* Used by recording encoder.
|
||||
*/
|
||||
function getActivePortFilePath() {
|
||||
return path_1.default.join(electron_1.app.getPath('userData'), 'DevToolsActivePort');
|
||||
}
|
||||
function getLsLogPath() {
|
||||
return path_1.default.join(electron_1.app.getPath('logs'), constants_1.LS_LOG_FILE_NAME);
|
||||
}
|
||||
/** User data dir for the old IDE (source for copy). */
|
||||
exports.IDE_OLD_DATA_DIR = path_1.default.join(os_1.default.homedir(), '.ag-x', 'ag-x');
|
||||
/** User data dir for the separately installed IDE (destination for copy). */
|
||||
exports.IDE_NEW_DATA_DIR = path_1.default.join(os_1.default.homedir(), '.ag-x', 'ag-x-ide');
|
||||
/** User data dir for backup (destination for backup copy). */
|
||||
exports.IDE_BACKUP_DATA_DIR = path_1.default.join(os_1.default.homedir(), '.ag-x', 'ag-x-backup');
|
||||
Reference in New Issue
Block a user