mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
chore: 补充项目cursor rules
This commit is contained in:
45
.cursor/rules/03-tech-stack-and-dependencies.mdc
Normal file
45
.cursor/rules/03-tech-stack-and-dependencies.mdc
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
description:
|
||||
globs:
|
||||
alwaysApply: true
|
||||
---
|
||||
# Technology Stack and Dependencies
|
||||
|
||||
## Core Technologies
|
||||
|
||||
- **Runtime**: Bun (JavaScript/TypeScript runtime)
|
||||
- **Language**: TypeScript
|
||||
- **Framework**: Hono (lightweight web framework)
|
||||
- **API Integration**: OpenAI API, Gitea API
|
||||
- **Containerization**: Docker, Kubernetes
|
||||
|
||||
## Key Dependencies
|
||||
|
||||
From [package.json](mdc:package.json):
|
||||
|
||||
### Production Dependencies
|
||||
|
||||
- **hono**: Lightweight, ultrafast web framework
|
||||
- **@hono/zod-validator**: Schema validation for Hono
|
||||
- **zod**: TypeScript-first schema validation
|
||||
- **openai**: OpenAI API client
|
||||
- **axios**: HTTP client for API requests
|
||||
- **dotenv**: Environment variable management
|
||||
- **lodash-es**: Utility library
|
||||
|
||||
### Development Dependencies
|
||||
|
||||
- **typescript**: TypeScript compiler and type definitions
|
||||
- **tslint**: Code linting
|
||||
- **@types/node**: Node.js type definitions
|
||||
- **@types/lodash-es**: Type definitions for lodash-es
|
||||
|
||||
## Environment Configuration
|
||||
|
||||
The application uses environment variables for configuration, which are processed in [src/config/index.ts](mdc:src/config/index.ts). Key configurations include:
|
||||
|
||||
- Gitea API settings
|
||||
- OpenAI API settings
|
||||
- Custom prompts for AI review
|
||||
- Server configuration
|
||||
- Webhook security
|
||||
Reference in New Issue
Block a user