feat: add automated Vercel AI registry sync with OpenAI

Add hourly GitHub Action that syncs tools from Vercel's AI SDK registry:

Features:
- Fetches Vercel AI registry from their GitHub
- Uses OpenAI GPT-4 to intelligently convert tool metadata
- Handles multi-export packages (multiple tools per npm package)
- Automatically commits new tools to manual-tools.ts
- Sends Discord notifications with detailed stats
- Extensive logging at every step

Files added:
- sync-vercel-registry.ts - Main sync script with AI conversion
- .github/workflows/sync-vercel-registry.yml - Hourly GitHub Action
- docs/vercel-registry-sync.md - Complete documentation

Requires OPENAI_API_KEY secret in GitHub repository settings.
This commit is contained in:
Ajax Davis 2025-12-04 17:43:17 +10:00
parent dd8fceb0d5
commit f9dfc67de4
5 changed files with 1003 additions and 0 deletions

6
pnpm-lock.yaml generated
View file

@ -29,6 +29,9 @@ importers:
lefthook:
specifier: ^1.10.1
version: 1.13.6
openai:
specifier: ^6.9.1
version: 6.9.1(ws@8.18.3)(zod@4.1.13)
tsx:
specifier: ^4.21.0
version: 4.21.0
@ -50,6 +53,9 @@ importers:
'@ai-sdk/react':
specifier: 3.0.0-beta.131
version: 3.0.0-beta.131(effect@3.18.4)(react@19.2.0)(zod@4.1.13)
'@tpmjs/db':
specifier: workspace:*
version: link:../../packages/db
'@tpmjs/env':
specifier: workspace:*
version: link:../../packages/env