"use strict";
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2024-2026 Gracker (Chris)
// This file is part of SmartPerfetto. See LICENSE for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.CODEBASE_REGISTRY_PATH = void 0;
exports.getDefaultCodebaseRegistry = getDefaultCodebaseRegistry;
exports.resetDefaultCodebaseRegistryForTests = resetDefaultCodebaseRegistryForTests;
const runtimePaths_1 = require("../../runtimePaths");
const codebaseRegistry_1 = require("./codebaseRegistry");
exports.CODEBASE_REGISTRY_PATH = (0, runtimePaths_1.backendLogPath)('codebase_registry.json');
let cachedRegistry = null;
function getDefaultCodebaseRegistry() {
    if (!cachedRegistry)
        cachedRegistry = new codebaseRegistry_1.CodebaseRegistry(exports.CODEBASE_REGISTRY_PATH);
    return cachedRegistry;
}
function resetDefaultCodebaseRegistryForTests() {
    cachedRegistry = null;
}
//# sourceMappingURL=defaultCodebaseServices.js.map