Files
oh-my-opencode/dist/hooks/anthropic-context-window-limit-recovery/aggressive-truncation-strategy.d.ts
T
2026-03-14 04:56:50 +00:00

15 lines
413 B
TypeScript

import type { AutoCompactState } from "./types";
import type { Client } from "./client";
export declare function runAggressiveTruncationStrategy(params: {
sessionID: string;
autoCompactState: AutoCompactState;
client: Client;
directory: string;
truncateAttempt: number;
currentTokens: number;
maxTokens: number;
}): Promise<{
handled: boolean;
nextTruncateAttempt: number;
}>;