Files
ag-x/dist/paths.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

50 lines
2.2 KiB
JavaScript

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