Files
oh-my-opencode/dist/hooks/context-window-monitor.d.ts
T
2026-03-14 04:56:50 +00:00

20 lines
631 B
TypeScript

import type { PluginInput } from "@opencode-ai/plugin";
import { type ContextLimitModelCacheState } from "../shared/context-limit-resolver";
export declare function createContextWindowMonitorHook(_ctx: PluginInput, modelCacheState?: ContextLimitModelCacheState): {
"tool.execute.after": (input: {
tool: string;
sessionID: string;
callID: string;
}, output: {
title: string;
output: string;
metadata: unknown;
}) => Promise<void>;
event: ({ event }: {
event: {
type: string;
properties?: unknown;
};
}) => Promise<void>;
};