Files
oh-my-opencode/dist/hooks/claude-code-hooks/pre-compact.d.ts
T
2026-03-14 04:56:50 +00:00

17 lines
584 B
TypeScript

import type { ClaudeHooksConfig } from "./types";
import { type PluginExtendedConfig } from "./config-loader";
export interface PreCompactContext {
sessionId: string;
cwd: string;
}
export interface PreCompactResult {
context: string[];
elapsedMs?: number;
hookName?: string;
continue?: boolean;
stopReason?: string;
suppressOutput?: boolean;
systemMessage?: string;
}
export declare function executePreCompactHooks(ctx: PreCompactContext, config: ClaudeHooksConfig | null, extendedConfig?: PluginExtendedConfig | null): Promise<PreCompactResult>;