From 4b51f4e5956d567fa5e99e6eb5f66d9da50d7455 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 06:07:26 +0000 Subject: [PATCH] fix formatting for biome ci Co-Authored-By: Claude Opus 4.5 --- packages/tools/src/ai-sdk.ts | 25 +++++-------------------- packages/tools/src/openai/tools.ts | 4 +++- packages/tools/src/tools-shared.ts | 6 ++++-- packages/tools/src/vercel/index.ts | 8 ++++++-- 4 files changed, 18 insertions(+), 25 deletions(-) diff --git a/packages/tools/src/ai-sdk.ts b/packages/tools/src/ai-sdk.ts index 96c6d883..5e4ac8d2 100644 --- a/packages/tools/src/ai-sdk.ts +++ b/packages/tools/src/ai-sdk.ts @@ -135,14 +135,8 @@ export const getProfileTool = ( inputSchema: z.object({ containerTag: strict ? z.string().describe(PARAMETER_DESCRIPTIONS.containerTag) - : z - .string() - .optional() - .describe(PARAMETER_DESCRIPTIONS.containerTag), - query: z - .string() - .optional() - .describe(PARAMETER_DESCRIPTIONS.query), + : z.string().optional().describe(PARAMETER_DESCRIPTIONS.containerTag), + query: z.string().optional().describe(PARAMETER_DESCRIPTIONS.query), }), execute: async ({ containerTag, query }) => { try { @@ -197,14 +191,8 @@ export const documentListTool = ( .optional() .default(DEFAULT_VALUES.limit) .describe(PARAMETER_DESCRIPTIONS.limit), - offset: z - .number() - .optional() - .describe(PARAMETER_DESCRIPTIONS.offset), - status: z - .string() - .optional() - .describe(PARAMETER_DESCRIPTIONS.status), + offset: z.number().optional().describe(PARAMETER_DESCRIPTIONS.offset), + status: z.string().optional().describe(PARAMETER_DESCRIPTIONS.status), }), execute: async ({ containerTag, limit, offset, status }) => { try { @@ -329,10 +317,7 @@ export const memoryForgetTool = ( .string() .optional() .describe(PARAMETER_DESCRIPTIONS.containerTag), - memoryId: z - .string() - .optional() - .describe(PARAMETER_DESCRIPTIONS.memoryId), + memoryId: z.string().optional().describe(PARAMETER_DESCRIPTIONS.memoryId), memoryContent: z .string() .optional() diff --git a/packages/tools/src/openai/tools.ts b/packages/tools/src/openai/tools.ts index aa1f3114..da7d6642 100644 --- a/packages/tools/src/openai/tools.ts +++ b/packages/tools/src/openai/tools.ts @@ -37,7 +37,9 @@ export interface ProfileResult { export interface DocumentListResult { success: boolean documents?: Awaited>["documents"] - pagination?: Awaited>["pagination"] + pagination?: Awaited< + ReturnType + >["pagination"] error?: string } diff --git a/packages/tools/src/tools-shared.ts b/packages/tools/src/tools-shared.ts index da4d00fe..09835de1 100644 --- a/packages/tools/src/tools-shared.ts +++ b/packages/tools/src/tools-shared.ts @@ -31,13 +31,15 @@ export const PARAMETER_DESCRIPTIONS = { containerTag: "Tag to filter/scope the operation (e.g., user ID, project ID)", query: "Optional search query to include relevant search results", offset: "Number of items to skip for pagination (default: 0)", - status: "Filter documents by processing status (e.g., 'completed', 'processing', 'failed')", + status: + "Filter documents by processing status (e.g., 'completed', 'processing', 'failed')", documentId: "The unique identifier of the document to operate on", content: "The content to add - can be text, URL, or other supported formats", title: "Optional title for the document", description: "Optional description for the document", memoryId: "The unique identifier of the memory entry", - memoryContent: "Exact content match of the memory entry to operate on (alternative to ID)", + memoryContent: + "Exact content match of the memory entry to operate on (alternative to ID)", reason: "Optional reason for forgetting this memory", } as const diff --git a/packages/tools/src/vercel/index.ts b/packages/tools/src/vercel/index.ts index fe5b35e1..58350870 100644 --- a/packages/tools/src/vercel/index.ts +++ b/packages/tools/src/vercel/index.ts @@ -162,7 +162,9 @@ const wrapVercelLanguageModel = ( ) as T // biome-ignore lint/suspicious/noExplicitAny: Union type compatibility between V2 and V3 - wrappedModel.doGenerate = async (params: LanguageModelCallOptions): Promise => { + wrappedModel.doGenerate = async ( + params: LanguageModelCallOptions, + ): Promise => { try { const transformedParams = await transformParamsWithMemory(params, ctx) @@ -201,7 +203,9 @@ const wrapVercelLanguageModel = ( } // biome-ignore lint/suspicious/noExplicitAny: Union type compatibility between V2 and V3 - wrappedModel.doStream = async (params: LanguageModelCallOptions): Promise => { + wrappedModel.doStream = async ( + params: LanguageModelCallOptions, + ): Promise => { let generatedText = "" try {