feat: expand outreach targeting and messaging

This commit is contained in:
jjbrunton committed 2026-08-10 17:31:05 +01:00
1 parent 7defff422d
commit d0a8bd0e2f
40 files changed
+890 -82

No files matched your search

+20
View File
@@ -315,6 +315,26 @@ describe('OpenRouterClient', () => {
expect(result.attractivenessScore).toBeNull();
});
it('parses and removes a grounded PHYSIQUE_SCORE', async () => {
mockCreate.mockResolvedValueOnce({
choices: [{ message: { content: 'GENDER:female\nPHYSIQUE_SCORE:7\nRATING:73\n\nDescription here.' } }],
});
const result = await client.analyzeImage('base64data', 'image/jpeg');
expect(result.physiqueScore).toBe(7);
expect(result.description).toBe('Description here.');
});
it('returns null for PHYSIQUE_SCORE:UNKNOWN', async () => {
mockCreate.mockResolvedValueOnce({
choices: [{ message: { content: 'GENDER:female\nPHYSIQUE_SCORE:UNKNOWN\n\nClose-cropped portrait.' } }],
});
const result = await client.analyzeImage('base64data', 'image/jpeg');
expect(result.physiqueScore).toBeNull();
expect(result.description).toBe('Close-cropped portrait.');
});
it('handles case-insensitive GENDER prefix', async () => {
mockCreate.mockResolvedValueOnce({
choices: [{ message: { content: 'GENDER:FEMALE\n\nA woman.' } }],