tpmjs/apps/web/src
Ajax Davis cd175daf04 fix: use full inputSchema for tool definitions instead of flattened parameters
The issue was that tools with complex nested parameters (like arrays of objects)
were losing their structure when converted to Zod schemas. The LLM would then
pass stringified JSON instead of actual arrays.

- Import jsonSchema from AI SDK
- Check if tool.inputSchema exists (full JSON Schema from executor)
- Use jsonSchema() wrapper to preserve nested array/object structures
- Fall back to legacy tpmjsParamsToZodSchema only if inputSchema is missing

This fixes the changelog tool and similar tools with complex parameter types.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-11 02:34:37 +10:00
..
app fix: show tool outputs in embedded tool calls and improve light mode styling 2026-01-11 02:16:56 +10:00
components feat: add API Reference and Custom Executors to developer menu 2026-01-11 01:08:36 +10:00
data feat: implement revolutionary dithered landing page with Bayer matrix animation 2025-11-27 22:44:32 +10:00
lib fix: use full inputSchema for tool definitions instead of flattened parameters 2026-01-11 02:34:37 +10:00
test fix: skip integration tests unless explicitly enabled 2026-01-07 15:07:47 +10:00
env.ts feat: add Better Auth with email/password authentication 2026-01-01 20:45:10 +10:00
middleware.ts fix: check for __Secure- prefixed session cookie in middleware 2026-01-02 01:11:09 +10:00