mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
Add llm/, db/, crypto/ dirs to structure; replace OpenAI-only references with LLM Gateway. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
---
|
|
description:
|
|
globs:
|
|
alwaysApply: false
|
|
---
|
|
# Project Structure
|
|
|
|
## Main Entry Points
|
|
|
|
The application entry point is [src/index.ts](mdc:src/index.ts), which sets up the Hono web server and defines the main routes.
|
|
|
|
## Core Directories
|
|
|
|
- **src/**: Contains all source code
|
|
- **controllers/**: Route handlers and business logic
|
|
- **services/**: Service layer for external API interactions
|
|
- **config/**: Configuration management
|
|
- **utils/**: Utility functions
|
|
- **llm/**: Multi-provider LLM gateway and provider adapters
|
|
- **db/**: SQLite database layer for LLM configuration
|
|
- **crypto/**: Encryption utilities for API key storage
|
|
- **agent/**: Multi-agent review engine (planner, specialists, judge)
|
|
|
|
## Configuration Files
|
|
|
|
- [package.json](mdc:package.json): Project dependencies and scripts
|
|
- [tsconfig.json](mdc:tsconfig.json): TypeScript compiler configuration
|
|
- [Dockerfile](mdc:Dockerfile): Container configuration
|
|
- [kubernetes.yaml](mdc:k8s/gitea-assistant.yaml): Kubernetes deployment configuration
|
|
|
|
## Build and Deployment
|
|
|
|
The project uses Bun for development and production:
|
|
- `bun run dev`: Development mode with watch
|
|
- `bun run build`: Build production assets
|
|
- `bun run start`: Run in production
|
|
|
|
Docker and Kubernetes configurations are available for containerized deployment.
|