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

+1
View File
@@ -1142,6 +1142,7 @@ async function runRecommend(scroll = true) {
min_review: Number($("#optReview").value),
session: $("#optSession").value || null,
time_of_day: $("#optTimeOfDay").value || null,
taste_profile: $("#optTaste").value || null,
limit: 36,
};
state.recommendContext = { preset: state.preset, mood: state.preset ? null : text };
+7
View File
@@ -295,6 +295,13 @@ try {
<option value="night">ночь</option>
</select>
</label>
<label class="range">вкус
<select id="optTaste" aria-label="Профиль вкуса">
<option value="">весь</option>
<option value="solo">соло</option>
<option value="coop">с друзьями</option>
</select>
</label>
</div>
<button id="recommendBtn" class="primary">Подобрать</button>
</div>