mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
Add ImportAuditorModule skeleton with health endpoint for the CSV Import Auditor reasoning agent. This is the foundation for a deterministic validation pipeline that safely handles broker CSV transaction imports. - Add zod and langfuse dependencies - Create ImportAuditorModule with controller and service - Register module in AppModule - Health endpoint at GET /api/v1/import-auditor/health Co-authored-by: Cursor <cursoragent@cursor.com>pull/6387/head
6 changed files with 80 additions and 7 deletions
@ -0,0 +1,15 @@ |
|||||
|
import { Controller, Get } from '@nestjs/common'; |
||||
|
|
||||
|
import { ImportAuditorService } from './import-auditor.service'; |
||||
|
|
||||
|
@Controller('import-auditor') |
||||
|
export class ImportAuditorController { |
||||
|
public constructor( |
||||
|
private readonly importAuditorService: ImportAuditorService |
||||
|
) {} |
||||
|
|
||||
|
@Get('health') |
||||
|
public getHealth(): { status: string } { |
||||
|
return this.importAuditorService.getHealth(); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
import { Module } from '@nestjs/common'; |
||||
|
|
||||
|
import { ImportAuditorController } from './import-auditor.controller'; |
||||
|
import { ImportAuditorService } from './import-auditor.service'; |
||||
|
|
||||
|
@Module({ |
||||
|
controllers: [ImportAuditorController], |
||||
|
exports: [ImportAuditorService], |
||||
|
providers: [ImportAuditorService] |
||||
|
}) |
||||
|
export class ImportAuditorModule {} |
||||
@ -0,0 +1,8 @@ |
|||||
|
import { Injectable } from '@nestjs/common'; |
||||
|
|
||||
|
@Injectable() |
||||
|
export class ImportAuditorService { |
||||
|
public getHealth(): { status: string } { |
||||
|
return { status: 'OK' }; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue