/**
 * compaction-types.ts
 *
 * Shared types for the prompt compaction engine.
 */
/** Default compaction configuration. */
export const DEFAULT_COMPACTION_CONFIG = {
    recentConversationBudget: 3000,
    toolResultsBudget: 1500,
    agentActivityBudget: 1500,
    olderAgentSummaryBudget: 500,
    resolvedProblemsBudget: 300,
    totalCeiling: 6500,
};
// ---------------------------------------------------------------------------
// Token estimation utility (here to avoid circular imports)
// ---------------------------------------------------------------------------
/** Rough token estimate for a string: 4 chars ≈ 1 token. */
export function estimateTokens(text) {
    return Math.ceil(text.length / 4);
}
