diff --git a/apps/playground/next-env.d.ts b/apps/playground/next-env.d.ts index 9edff1c..c4b7818 100644 --- a/apps/playground/next-env.d.ts +++ b/apps/playground/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/apps/railway-executor/server.ts b/apps/railway-executor/server.ts index 5f27d88..9876a6d 100644 --- a/apps/railway-executor/server.ts +++ b/apps/railway-executor/server.ts @@ -78,6 +78,16 @@ async function loadAndDescribe(req: Request): Promise { // Extract tool definition // AI SDK v6 tools use jsonSchema() which wraps a plain JSON Schema object // Extract the raw JSON Schema from toolModule.inputSchema.schema + + // Debug: Log the inputSchema structure + console.log(`🔍 InputSchema structure for ${cacheKey}:`, { + hasInputSchema: !!toolModule.inputSchema, + inputSchemaType: typeof toolModule.inputSchema, + hasSchema: !!toolModule.inputSchema?.schema, + hasParameters: !!toolModule.inputSchema?.parameters, + keys: toolModule.inputSchema ? Object.keys(toolModule.inputSchema) : [], + }); + const rawJsonSchema = toolModule.inputSchema?.schema ?? null; return Response.json({ diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts index 9edff1c..c4b7818 100644 --- a/apps/web/next-env.d.ts +++ b/apps/web/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.