Fix formatting with Prettier

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
olaservo 2025-09-24 07:06:31 -07:00
commit 2846e179a3
2 changed files with 8 additions and 5 deletions

View file

@ -779,7 +779,7 @@ const App = () => {
try { try {
// Find the tool schema to clean parameters properly // Find the tool schema to clean parameters properly
const tool = tools.find(t => t.name === name); const tool = tools.find((t) => t.name === name);
const cleanedParams = tool?.inputSchema const cleanedParams = tool?.inputSchema
? cleanParams(params, tool.inputSchema as any) ? cleanParams(params, tool.inputSchema as any)
: params; : params;

View file

@ -10,7 +10,7 @@ import type { JsonSchemaType } from "./jsonUtils";
*/ */
export function cleanParams( export function cleanParams(
params: Record<string, unknown>, params: Record<string, unknown>,
schema: JsonSchemaType schema: JsonSchemaType,
): Record<string, unknown> { ): Record<string, unknown> {
const cleaned: Record<string, unknown> = {}; const cleaned: Record<string, unknown> = {};
const required = schema.required || []; const required = schema.required || [];
@ -39,6 +39,9 @@ export function cleanParams(
* @param value - The current value * @param value - The current value
* @returns Whether to set the field to undefined * @returns Whether to set the field to undefined
*/ */
export function shouldSetToUndefined(isRequired: boolean, value: string): boolean { export function shouldSetToUndefined(
isRequired: boolean,
value: string,
): boolean {
return !isRequired && value === ""; return !isRequired && value === "";
} }