feat(veille): implement l'Agent de veille autonome et le profil freelance
CI / quality (pull_request) Successful in 13m3s

- Nouveau module freelance-profile (GET/PATCH /profile, upsert implicite au premier acces)
- Nouveau module veille : cron quotidien (@nestjs/schedule), frequence quotidienne/hebdomadaire par profil (explicite ou inferee par mots-cles de domaines volatils)
- Garde-fous de generation de signal recalcules cote code : minimum 3 sources independantes, score de pertinence >= max(0.7, seuil du profil), exclusion blacklist, dedoublonnage 30 jours par (profil, competence, type)
- GET /veille/signals (priorite obsolete > refresh > emerging puis pertinence), POST /veille/signals/:id/action avec train (demarre une session + Agent 1 avec un message synthetique)/snooze (resurgence codee dans action_taken, pas de colonne dediee)/dismiss (marque le signal et le profil)
- Ajoute @nestjs/schedule en dependance (version 6.1.3, compatible CommonJS/Jest - la 12.x est ESM-only et casse Jest)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-11-02 10:32:18 +01:00
co-authored by Claude Sonnet 5
parent 4d8236b8e5
commit 23052b8afd
19 changed files with 1392 additions and 0 deletions
@@ -0,0 +1,72 @@
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
export class FreelanceProfileResponseDto {
@ApiProperty()
id!: number;
@ApiPropertyOptional()
displayName!: string | null;
@ApiPropertyOptional()
positioning!: string | null;
@ApiProperty({ type: [String] })
domains!: string[];
@ApiProperty({ type: [String] })
stack!: string[];
@ApiProperty({ type: [String] })
targetMissionTypes!: string[];
@ApiProperty({ type: [String] })
targetSectors!: string[];
@ApiPropertyOptional()
seniorityLevel!: string | null;
@ApiPropertyOptional()
tjm!: number | null;
@ApiPropertyOptional()
experienceYears!: number | null;
@ApiProperty({ type: [String] })
certifications!: string[];
@ApiPropertyOptional()
workFormat!: string | null;
@ApiPropertyOptional()
geographicZone!: string | null;
@ApiProperty({ type: [String] })
competencesAcquired!: string[];
@ApiProperty({ type: [String] })
competencesInProgress!: string[];
@ApiProperty({ type: [String] })
competencesDismissed!: string[];
@ApiPropertyOptional()
lastTrainingAt!: Date | null;
@ApiPropertyOptional({ enum: ['daily', 'weekly'] })
veilleFrequency!: string | null;
@ApiProperty({ type: [String] })
veilleExtraTopics!: string[];
@ApiProperty({ type: [String] })
veilleBlacklist!: string[];
@ApiPropertyOptional()
veilleRelevanceThreshold!: number | null;
@ApiProperty()
veilleNotificationsEnabled!: boolean;
@ApiPropertyOptional()
lastVeilleAt!: Date | null;
}