-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.cursorrules
More file actions
29 lines (23 loc) · 1.06 KB
/
Copy path.cursorrules
File metadata and controls
29 lines (23 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# EventRelay Cursor Rules
## Project overview
Monorepo: Next.js 16 App Router (apps/web) + Python FastAPI backend (src/).
Deployed on Vercel (frontend) and Cloud Run/Railway (backend).
AI pipeline: SSE streaming, CloudEvents, Ray Serve, MCP tools.
## Critical paths — always flag issues here
- apps/web/src/app/api/pipeline/stream/route.ts — SSE streaming (source of #139 hang)
- src/uvai/unified_ai_sdk/ — must be real implementations, not stubs
- src/mcp/ — MCP tool definitions and registry
## Vercel documentation
Full LLM context: https://vercel.com/docs/llms-full.txt
## AI Gateway
- Video generation route: apps/web/src/app/api/video/generate/route.ts
- Video model: google/veo-3.1-generate-001
- Env var: AI_GATEWAY_API_KEY
## TypeScript rules
- strict mode is ON — no implicit any, no unsafe assertions
- All fetch() calls must have AbortSignal.timeout()
- SSE streams must always call controller.close() in finally block
## Never do
- Return mock/hardcoded data from production AI SDK methods
- Use bare catch without logging
- Commit secrets or API keys