"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.DEFAULT_TOKEN_ESTIMATOR_CONFIG = exports.DEFAULT_COMPACTION_CONFIG = void 0;
/**
 * 默认配置
 */
exports.DEFAULT_COMPACTION_CONFIG = {
    maxContextTokens: 8000,
    compactionThreshold: 6000, // 80%
    preserveRecentCount: 3,
    strategy: 'sliding_window',
    useLLMSummarization: false,
    summaryMaxTokens: 500,
    preserveCriticalFindings: true,
    fieldWeights: {
        previousResults: 0.6, // 最大占比
        findings: 0.2,
        plan: 0.1,
        intent: 0.1,
    },
};
/**
 * 默认 Token 估算器配置
 */
exports.DEFAULT_TOKEN_ESTIMATOR_CONFIG = {
    charsPerToken: 0.4, // 中英文混合估算
    jsonOverheadFactor: 1.2, // JSON 结构额外开销
};
//# sourceMappingURL=compactionTypes.js.map