"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.codeAwareFeatureEnabled = codeAwareFeatureEnabled;
exports.normalizeCodeAwareMode = normalizeCodeAwareMode;
function codeAwareFeatureEnabled() {
    return process.env.SMARTPERFETTO_CODE_AWARE !== 'off';
}
function normalizeCodeAwareMode(value) {
    if (!codeAwareFeatureEnabled())
        return 'off';
    if (value === 'provider_send' || value === 'metadata_only' || value === 'off')
        return value;
    return 'metadata_only';
}
//# sourceMappingURL=codeAwareFeature.js.map