tpmjs/apps
Ajax Davis d3f8adc0ea feat: add factory function support to Railway tool executor
Detects and handles tools exported as factory functions that require
configuration before returning the actual AI SDK tool object.

Supports multiple factory patterns:
1. No-args factory: toolName()
2. Config object: toolName({ apiKey: 'xxx' })
3. Single-arg: toolName('api-key-value')

For config objects, tries multiple key name variations:
- Raw env vars: { VALYU_API_KEY: 'xxx' }
- Normalized apiKey: { apiKey: 'xxx' }
- Normalized key: { key: 'xxx' }

This enables dynamic loading of tools like @valyu/ai-sdk paperSearch
that use factory patterns instead of direct tool exports.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 14:52:47 +10:00
..
playground fix: read env vars directly from localStorage to avoid React closure issue 2025-12-04 14:36:51 +10:00
railway-executor feat: add factory function support to Railway tool executor 2025-12-04 14:52:47 +10:00
web feat: implement BM25 search with context from last 3 user messages 2025-12-04 13:59:22 +10:00