How sajaalsaho/ai-codelens works
AI-CodeLens is an ASP.NET Core code-review API. A developer submits source code; the controller passes it to the application review service, which creates a session and reports findings for blank input, long lines, and TODO markers; the controller returns the review result. The domain models sessions and findings. Although the README describes an AI-assisted product, the infrastructure AI service is currently an unimplemented placeholder and is not wired into this workflow. Edges reflect the shown controller, service, and registration code; no persistence is shown.
Main entry points: CodeReviewController.cs Review Endpoint · CodeReviewService.cs Review Service · Finding.cs Finding · Program.cs API Startup
Components 11
HTTP API
- Review Endpoint
AI-CodeLens.API/Controllers/CodeReviewController.cs - Review Request
AI-CodeLens.Application/DTOs/ReviewRequest.cs - Review Response
AI-CodeLens.Application/DTOs/ReviewResponse.cs - API Startup
AI-CodeLens.API/Program.cs
Review Logic
- Review Contract
AI-CodeLens.Application/Interfaces/ICodeReviewService.cs - Review Service
AI-CodeLens.Application/Services/CodeReviewService.cs
Review Domain
- Review Session
AI-CodeLens.Domain/Entities/ReviewSession.cs - Finding
AI-CodeLens.Domain/Entities/Finding.cs
AI Integration
- AI Contract
AI-CodeLens.Infrastructure/Interfaces/IAIService.cs - AI Service
AI-CodeLens.Infrastructure/Services/AIService.cs
Other components
- Developer
Connections 12
- Developer → Review Endpoint: submits code
AI-CodeLens.API/Controllers/CodeReviewController.cs - Review Endpoint → Review Request: accepts
AI-CodeLens.API/Controllers/CodeReviewController.cs - Review Endpoint → Review Contract: calls
AI-CodeLens.API/Controllers/CodeReviewController.cs - Review Endpoint → Review Response: builds response
AI-CodeLens.API/Controllers/CodeReviewController.cs - Review Service → Review Contract: implements
AI-CodeLens.Application/Services/CodeReviewService.cs - Review Service → Review Session: creates
AI-CodeLens.Application/Services/CodeReviewService.cs - Review Service → Finding: creates
AI-CodeLens.Application/Services/CodeReviewService.cs - Review Session → Finding: holds
AI-CodeLens.Domain/Entities/ReviewSession.cs - Review Response → Finding: includes
AI-CodeLens.Application/DTOs/ReviewResponse.cs - API Startup → Review Service: registers
AI-CodeLens.API/Program.cs - API Startup → Review Endpoint: maps routes
AI-CodeLens.API/Program.cs - AI Service → AI Contract: implements
AI-CodeLens.Infrastructure/Services/AIService.cs