lila/packages/db
lila 0755c57439 feat(api): wire GameSessionStore into createGameSession
The service now tracks the correct optionId for each question and
stores the answer key in the GameSessionStore after building the
session. The client response is unchanged — the store is invisible
to the outside.

- Build answerKey (questionId → correctOptionId) during question
  assembly by finding the correct answer's position after shuffle
- Store the answer key via gameSessionStore.create() before returning
- Add excludeText parameter to getDistractors to prevent a distractor
  from having identical text to the correct answer (different term,
  same translation). Solved at the query level, not with post-filtering.
- Module-level InMemoryGameSessionStore singleton in the service
2026-04-11 11:52:38 +02:00
..
drizzle formatting 2026-04-10 20:09:46 +02:00
src feat(api): wire GameSessionStore into createGameSession 2026-04-11 11:52:38 +02:00
drizzle.config.ts chore(db): add drizzle migration pipeline with empty schema 2026-03-24 11:04:40 +01:00
package.json extraction datafiles with cefr annotations 2026-04-08 13:09:47 +02:00
tsconfig.json formatting 2026-03-31 10:06:06 +02:00
vitest.config.ts chore: configure vitest with project-based setup and coverage 2026-03-20 19:25:00 +01:00