mirror of
https://mirror.skon.top/github.com/code-yeongyu/oh-my-opencode
synced 2026-04-30 18:50:29 +08:00
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:
@@ -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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user