code cleanup. gismeteo prompt injection

This commit is contained in:
azykov@mail.ru
2026-07-10 15:25:56 +03:00
parent 6cfff5ef4b
commit 3b46f15e9f
6 changed files with 41 additions and 23 deletions
+3 -3
View File
@@ -8,12 +8,12 @@ export type TextResult = {
isError?: boolean;
};
export type ToolDef = {
export type ToolDef<T = (string | TextResult)> = {
title: string;
config: {
description: string;
inputSchema: ZodRawShape,
inputSchema?: ZodRawShape,
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
handler: (...args: any[]) => Promise<TextResult>;
handler: (...args: any[]) => Promise<T>;
};