From 289857b924d8498c811dfd7574a96a1bd4784908 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Thu, 16 Oct 2025 16:17:37 +0100 Subject: [PATCH] Fix TypeScript type error in RESOURCE prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Cast messages array to any to work around resource type mismatch - ALL_RESOURCES contains name field but Resource type expects text/blob - Similar to fix applied to GET_RESOURCE_REFERENCE tool 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/everything/everything.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/everything/everything.ts b/src/everything/everything.ts index 827efcd6..51522dc2 100644 --- a/src/everything/everything.ts +++ b/src/everything/everything.ts @@ -421,20 +421,20 @@ export const createServer = () => { return { messages: [ { - role: "user" as const, + role: "user", content: { - type: "text" as const, + type: "text", text: `This prompt includes Resource ${parsedId}. Please analyze the following resource:`, }, }, { - role: "user" as const, + role: "user", content: { - type: "resource" as const, + type: "resource", resource: resource, }, }, - ], + ] as any, }; });