feat: add solo and co-op taste profiles

Filter recommendation candidates and taste weights by play context, with taste_profile in the API, --taste in the CLI and a selector in the UI.
This commit is contained in:
strsv committed 2026-11-07 00:53:18 +03:00
1 parent 02af4bde09
commit 54a7b36aae
12 files changed
+105 -4

No files matched your search

+5
View File
@@ -303,10 +303,15 @@ DELETE → `{"deleted": true}`.
"allow_unknown": false,
"session": null,
"time_of_day": null,
"taste_profile": null,
"limit": 36
}
```
`taste_profile`: `solo` (игры с `Singleplayer` без кооп-тегов), `coop` (кооп/мультиплеер)
или `null`. Профиль фильтрует кандидатов и считает веса вкуса только по играм
соответствующего контекста; неизвестное значение → 400.
`session`: `short` (30 минут), `evening` (вечер), `weekend` (выходные) или `null`.
Это эвристика по тегам (Short/Casual/Roguelike, Story Rich/Atmospheric, Open World/RPG),
которая повышает вес подходящих игр и добавляет причину в `reasons`.