freezmo/lib
Martin Dvorak e3b7bbbd6c Bigger decks: pick up to 30 activities, built in batches
The create wizard stopped at 15 activities because the API, the prompt and
the salvage path all capped at 18: one reply must be one valid JSON object,
and past ~18 activities models truncate or drop cards. Raising the cap alone
would have shipped decks that came back short.

- The count picker offers 8 / 10 / 12 / 15 / 20 / 30; a deck's "add more" row
  gained +15. The help line says bigger decks take longer.
- /api/generate accepts up to 30 (FREEZMO_DEFAULT_ACTIVITY_COUNT now clamps
  to 30 as well) and sizes its overall deadline from the number of model
  calls instead of a fixed two.
- generateActivities splits anything above 18 evenly across calls (30 → 15 +
  15, 25 → 13 + 12) and merges them into one deck. The first call keeps the
  "add to this deck" contract; later calls are told the title, the types
  already used and the topics already covered. A normalised content signature
  drops a card that repeats an earlier one, so the same idea never ships
  twice. requested/generated still travel in the stream meta.
- phase1-test: a stub Ollama answers two 15-card batches (the second repeats
  one card on purpose) → two calls, the even split, the "already covered"
  prompt, 29 merged cards, the duplicate shipped once, title from the first
  reply, and count 31 answered 400 (59 checks).
- wizard-test: the picker offers 30, the wizard sends count: 30, and the
  30-card deck is stored and opened (99 checks).

Version 0.8.4, SW v106.
2026-10-28 19:11:39 +00:00
..
aero-music.ts Frutiger Aero: the theme now plays its soundtrack 2026-10-15 22:47:44 +00:00
ai.ts Bigger decks: pick up to 30 activities, built in batches 2026-10-28 19:11:39 +00:00
backup.ts Podcast mode: notes read aloud with a lyric-style word highlight 2026-10-16 11:42:15 +00:00
chat-active.ts Chat layout: history in the main sidebar, consistent header, cleaner icon 2026-10-11 20:11:11 +00:00
chat-client.ts Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
chat-context.ts Chat mode, phase 1: grounded streaming chat over your notes 2026-10-11 18:32:11 +00:00
chat-models.ts Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
chat-seed.ts Chat mode, phase 1: grounded streaming chat over your notes 2026-10-11 18:32:11 +00:00
chat-store.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
chat-trim.ts Chat mode, phase 1: grounded streaming chat over your notes 2026-10-11 18:32:11 +00:00
chat.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
client-api.ts Podcast voices: natural provider TTS, and system-voice hygiene 2026-10-16 16:34:46 +00:00
clipboard.ts Add “Make my homework”, and finish the mobile polish pass 2026-10-08 18:30:33 +00:00
confetti.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
config.ts Bigger decks: pick up to 30 activities, built in batches 2026-10-28 19:11:39 +00:00
deck-ops.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
deck-seed.ts Chat mode, phase 2: local history, answer actions, motion polish 2026-10-11 19:03:48 +00:00
dev-mode.ts Infra: split dev and production (releases, services, deploy script) 2026-10-11 19:25:29 +00:00
documents.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
folders.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
haptics.ts Native-feel pass: PWA integration, system back, offline, haptics, undo 2026-10-10 12:16:03 +00:00
history.ts Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
homework.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
http-guard.ts Add an English/Czech interface language switch 2026-10-08 13:56:32 +00:00
i18n-dict.ts Bigger decks: pick up to 30 activities, built in batches 2026-10-28 19:11:39 +00:00
i18n.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
image.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
install.ts Add the Install the app bottom sheet for mobile browsers 2026-10-07 08:27:43 +00:00
language.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00
learning.ts Review breakdown: show each deck's own activity total 2026-10-15 21:20:53 +00:00
legal.ts Push reminders: personal to the notes, generic without them 2026-10-18 14:34:15 +00:00
model-errors.ts Phase 1: backup, encrypted sync and monthly-usage handling 2026-10-10 13:43:42 +00:00
model-guard.ts Security: model budget + concurrency caps, SSRF guards, spoof-proof limits 2026-10-12 20:40:57 +00:00
motion-pref.ts Aero button glass + homework report control; reduced-motion sheet glitch 2026-10-14 09:19:54 +00:00
motion.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
nav.ts Navigation restructure: five-tab bottom bar, no phone drawer 2026-10-10 16:53:55 +00:00
notes-source.ts Study cards: from-your-notes, read aloud, timed runs 2026-10-15 05:53:47 +00:00
ollama.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
openai-compat.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
podcast-audio.ts Podcast voices: natural provider TTS, and system-voice hygiene 2026-10-16 16:34:46 +00:00
podcast-natural.ts Podcast voices: natural provider TTS, and system-voice hygiene 2026-10-16 16:34:46 +00:00
podcast-speech.ts Podcast speech: the highlight clock learns the engine's pace 2026-10-16 21:45:18 +00:00
podcast-voices.ts Podcast voices: an iPhone note on where the other voices live 2026-10-16 13:51:12 +00:00
podcasts.ts Podcast mode: notes read aloud with a lyric-style word highlight 2026-10-16 11:42:15 +00:00
prompts.ts Bigger decks: pick up to 30 activities, built in batches 2026-10-28 19:11:39 +00:00
providers-client.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
providers-server.ts Bring-your-own keys for cloud providers (OpenAI-compatible) 2026-10-14 06:29:39 +00:00
providers.ts Podcast voices: natural provider TTS, and system-voice hygiene 2026-10-16 16:34:46 +00:00
push-store.ts Push reminders: personal to the notes, generic without them 2026-10-18 14:34:15 +00:00
question-reports.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
rate-limit.ts Security: model budget + concurrency caps, SSRF guards, spoof-proof limits 2026-10-12 20:40:57 +00:00
reminder.ts Push reminders: personal to the notes, generic without them 2026-10-18 14:34:15 +00:00
schemas.ts Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
settings.ts Chat mode, phase 1: grounded streaming chat over your notes 2026-10-11 18:32:11 +00:00
share-inbox.ts Native-feel pass: PWA integration, system back, offline, haptics, undo 2026-10-10 12:16:03 +00:00
share-pending.ts Native-feel pass: PWA integration, system back, offline, haptics, undo 2026-10-10 12:16:03 +00:00
share.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
speech-input.ts Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
speech.ts Podcast mode: notes read aloud with a lyric-style word highlight 2026-10-16 11:42:15 +00:00
storage.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
sync-auto.ts Deck/homework writes sync themselves when sync is on 2026-10-12 16:40:49 +00:00
sync-key.ts Phase 1: backup, encrypted sync and monthly-usage handling 2026-10-10 13:43:42 +00:00
sync-state.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
sync.ts Podcast mode: notes read aloud with a lyric-style word highlight 2026-10-16 11:42:15 +00:00
teach.ts Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
theme.ts Frutiger Aero: the theme now plays its soundtrack 2026-10-15 22:47:44 +00:00
toast.ts Native-feel pass: PWA integration, system back, offline, haptics, undo 2026-10-10 12:16:03 +00:00
ui-events.ts Phase 1: backup, encrypted sync and monthly-usage handling 2026-10-10 13:43:42 +00:00
use-back-close.ts Navigation restructure: five-tab bottom bar, no phone drawer 2026-10-10 16:53:55 +00:00
use-health.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
use-keyboard-inset.ts Teach it back: the AI becomes the curious student 2026-10-16 23:05:24 +00:00
use-notes-intake.ts Add “Make my homework”, and finish the mobile polish pass 2026-10-08 18:30:33 +00:00
use-online.ts Native-feel pass: PWA integration, system back, offline, haptics, undo 2026-10-10 12:16:03 +00:00
use-phone.ts Mobile declutter pass: step flows, compact cards, simplified settings 2026-10-10 10:43:32 +00:00
use-version.ts App versioning + the create page's missing top padding 2026-10-12 20:04:26 +00:00
use-wake-lock.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
utils.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
version.ts App versioning + the create page's missing top padding 2026-10-12 20:04:26 +00:00
wizard-busy.ts Lock the wizard mode switch while a run is generating 2026-10-10 17:47:05 +00:00
wizard-draft.ts Codebase audit: fix bugs, performance issues, dead code, and edge cases 2026-10-14 19:00:17 +00:00
xp.ts Freezmo: self-hosted notes-to-activities study app 2026-10-06 20:56:55 +00:00