fix(plugin): replace any type with explicit summarize overloads in event handler

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-28 16:41:32 +09:00
parent 54bd3a603d
commit e36f9cada1

View File

@@ -152,7 +152,7 @@ export function createEventHandler(args: {
}): (input: EventInput) => Promise<void> {
const { ctx, pluginConfig, firstMessageVariantGate, managers, hooks } = args;
const tmuxIntegrationEnabled = pluginConfig.tmux?.enabled ?? false;
const pluginContext = ctx as {
const pluginContext = ctx as PluginContext & {
directory: string;
client: {
session: {
@@ -177,7 +177,18 @@ export function createEventHandler(args: {
};
query: { directory: string };
}) => Promise<unknown>;
summarize: (...args: unknown[]) => Promise<unknown>;
summarize: {
(input: {
path: { id: string };
body: { providerID: string; modelID: string; auto?: boolean };
query: { directory: string };
}): Promise<unknown>;
(input: {
path: { id: string };
body: { auto: boolean };
query: { directory: string };
}): Promise<unknown>;
};
};
};
};