chore: add ai instruction files * chore: add ai instruction files * let the instruction file apply to all files, not only ts files Approved-by: Linus Flood
955 B
955 B
applyTo
| applyTo |
|---|
| apps/redis-api/**/*.ts |
⚙️ Redis API Specific Instructions
CONTEXT: This is a dedicated, Bun HTTP API, deployed as a container app in Azure. It acts as an HTTP proxy/cache layer for a Redis instance.
INSTRUCTIONS FOR GENERATION:
- Framework: This code uses Elysia. DO NOT generate React, Next.js, or browser-side code.
- Language: Always use pure TypeScript. Do not use
.tsxfiles. - Data Models: Always use t from Elysia i.e.
import { t } from "elysia";for schema definition and runtime validation of incoming request bodies and query parameters. - Security: Ensure all generated endpoints follow RESTful conventions and include necessary request validation and authorization checks.
- Redis: Code must use the official
ioredislibrary for interaction. - Logging: Use loggerModule or baseLogger for all informational, warning, and error messages.