Repository navigation
Releases
ZeroPrep-DnD v0.10.0 — Hybrid RAG Engine, D&D 2014/2024 SRD, AI Evals & CI
ZeroPrep-DnD v0.10.0 — Hybrid RAG Engine, Built-in D&D 2014/2024 SRD, Custom Rulebooks, Offline AI Evals & GitHub Actions CI
November 2026 architecture & retrieval milestone. Elevates Skazitel from a lexically matched tabletop companion into a full local-first Hybrid RAG Orchestrator backed by SQLite, bundled with official D&D 2014 & 2024 SRD mechanics, custom rulebook uploads, reproducible offline AI benchmarks (Recall@K, MRR, Secret Leak Rate), and automated GitHub Actions verification.
🌟 What's New in v0.10.0
1. 🧠 Local-First Hybrid RAG Engine (src/rag.mjs + SQLite ACID Sync)
- Incremental Campaign Auto-Indexing: Every campaign save automatically chunks and indexes new journal events, active vows/promises,
dm.worldrecords, hero notes, and source documents insidecampaigns.sqliteusing SHA-256 deduplication (O(1)skip for unchanged content). - Hybrid Ranking (BM25 + Dense/Sparse Vectors via Reciprocal Rank Fusion):
- Built-in deterministic 256-dim stem + char-trigram vector index paired with stemmed RU/EN BM25 fusion delivers sub-3ms semantic/fuzzy recall offline with zero external API calls.
- Supports optional dense API embeddings (
text-embedding-3-small/ Geminitext-embedding-004) cleanly without mutating OpenAI prompt cache breakpoints (referencestays untouched whilestate.raginjects per-turn hits).
- Strict GM Secret & Private Whisper Isolation: Player queries, mobile archive search (
/api/archive), and public endpoints strip bothvisibility === 'gm'world secrets and private player whispers (0.0%secret leak rate).
2. 📚 Built-in D&D 2014 & 2024 SRD Compendium + Custom Rulebooks (src/srd-compendium.mjs, /api/knowledge*)
- Pre-Indexed Bilingual SRD Reference (
CC BY 4.0): Exact adjudicated rules for Exhaustion (2024 vs 2014), Grappled (2024 saves vs 2014 contests), Conditions, Cover (+2/+5/Total), Concentration (DC = max(10, floor(dmg/2))), Two-Weapon Fighting & Nick Mastery, One Spell Slot per Turn, Death Saves, Long Rest Hit Dice recovery, Darkvision, Key Spells (Shield,Counterspell,Revivify,Fireball), and Plausibility DC thresholds. - In-App Rules & Lore Manager (
📚 Rules & Knowledge RAG): Upload custom.md/.txtrulebooks, house rules, or world lore scoped either globally or to a specific campaign, and test live Hybrid RAG retrieval directly inside the UI.
3. 📊 Reproducible AI Evals (src/evals/) & Automated CI (.github/workflows/ci.yml)
- Offline Benchmark Harness (
node src/evals/run-evals.mjs):- 12 curated RU/EN SRD retrieval queries:
Recall@3: 100.0%,Recall@5: 100.0%,MRR@5: 0.9028,Avg Query Time: < 3 ms; - Campaign auto-RAG + custom rulebook verification +
0.0%GM/whisper leak rate; - Deterministic Guardrails & Hybrid
gpt-6.2-sol ↔ gpt-6.1-terraRouting checks:100.0%.
- 12 curated RU/EN SRD retrieval queries:
- GitHub Actions CI: Syntax checks, full deterministic Node 24 test suite (160 tests), and benchmark gate running automatically on
pushandpull_requesttomain.
🇷🇺 Русская версия (Russian)
🌟 Что нового в версии 0.10.0
- Локальный гибридный RAG-движок (
src/rag.mjs+ SQLite):- Автоиндексация по ходу кампании: все новые события хроники, обещания/клятвы, карточки
dm.world, заметки героев и приложенные тексты автоматически нарезаются по заголовкам/абзацам и индексируются вcampaigns.sqlite(инкрементально по SHA-256). - Гибридный поиск BM25 + Векторное косинусное сходство (RRF): работает мгновенно и полностью офлайн (
256-dimстемы + триграммы символов) и поддерживает опциональные плотные эмбеддинги OpenAI / Gemini, не ломая 3-уровневый кэш промптов. - Жёсткая изоляция тайн ГМ и шёпота: скрытые записи ведущего и тайный шёпот игроков никогда не утекают в игрокский поиск и архив (
0.0%утечек).
- Автоиндексация по ходу кампании: все новые события хроники, обещания/клятвы, карточки
- Встроенный справочник правил D&D 2014 и 2024 (SRD) + Загрузка своих книг:
- Готовая база правил: различия редакций (Истощение, Захват, Отдых, Заклинания за ход, Nick, Counterspell), укрытия, концентрация, темновое зрение, спасброски от смерти и шкала сложностей.
- Новое окно «📚 База правил (RAG)» в меню «Кампания» для загрузки собственных
.md/.txtрулбуков и хоумрулов и проверки RAG-поиска в реальном времени.
- Бенчмарки (AI Evals) и GitHub Actions CI:
- Воспроизводимый прогон
node src/evals/run-evals.mjs(Recall@5: 100.0%,MRR@5: 0.9028,0.0%утечки секретов,100%guardrails). - Настроен CI в GitHub Actions на Node 24 (160 автотестов + автопрогон eval-бенчмарков).
- Воспроизводимый прогон
ZeroPrep-DnD v0.9.6 — 13" Studio UI, Multi-Window VTT Board & Graphify Memory
ZeroPrep-DnD v0.9.6 — 13" Studio UI, Multi-Window VTT Board, Graphify Memory & Hybrid Sol/Terra Routing
November 2026 major release. This milestone reimagines Skazitel's interface for 13-inch laptops and desktop screens, replaces the cramped map popup with a real separate macOS/browser Tabletop & Graph window, upgrades campaign memory into an associative Graphify-style Knowledge Graph, enforces stricter D&D 2024/5e rules & plausibility checks, and introduces intelligent scene routing across 2026 OpenAI and Gemini models.
🌟 What's New in v0.9.6
1. 🖥️ Studio UI Redesign for 13" Screens & Separate Multi-Window Board (/board)
- Space-Maximized 13" Studio Layout (
1280×800): Replaces oversized headers, permanent campaign banners, and multi-row composers with a unified 46px header bar, collapsible brief drawer, auto-collapsing sidebar, sleek 2-row composer, and a horizontal Party Ribbon (#partyRibbon) during board views. - Stage Switcher: Instant switching between Chronicle, Board + Chat, Full Board, Memory Graph, and ↗ Window.
- True Separate Board Window (
/board& macOSMacApp.swift): Pops out the Tabletop Game Board and Knowledge Graph into a dedicated native secondary macOS window (1080×740) or standalone browser window synchronized live via SSE (/api/events) andlocalStorage— move it onto a second display or Split View while keeping the main game open.
2. 🎲 2.5D Tabletop Game Board & Antique Regional World Map
- Unified Tabletop Canvas: Interactive coordinate grid with token figurines showing AC badges & HP rings, drag-and-drop movement, distance ruler (
5 ft/ regional miles), spell AoE overlays (20 ftsphere,15 ftcone,30 ftline), and terrain brush tools (walls, forest, water, fire, mountains, roads, doors, ruins). - Antique Regional Cartography: Switch to regional World Map mode featuring curved SVG routes, compass rose, and location labels.
- Server-Filtered Fog of War & One-Click Encounter Generator: Draw/clear fog cells interactively with server-side redaction for LAN companion phones, plus procedural scene/encounter/loot generation.
3. 🧠 Graphify-Inspired Associative Knowledge Graph & World Diary
- Associative Recall (
src/memory-graph.mjs): Extracts entities, vows, quest threads, hubs, and cross-references across turns with bilingual Russian & English inflection stemming (-а/-у/-ом/-ам...). - Interactive SVG Graph Explorer (
src/public/graph-view.mjs): Inspect party connections, active oaths, NPCs, locations, and plot threads visually in the World Diary / Graph tab with filter pills (All / Vows / NPCs / Locations / GM Secrets). Strict secret isolation ensures GM notes remain hidden from players.
4. ⚡ Hybrid Model Auto-Router & 2026 AI Models
- Hybrid Scene Auto-Routing (
hybrid_sol_terra): Automatically routes heavy narrative turns (Session Zero, NPC dialogues, private whispers, story twists) togpt-6.2-soland fast tactical combat / exploration scenes togpt-6.1-terrafor optimal latency and cost, with ultra-cheap summaries ongpt-6-luna($0.10 / $0.50 per 1M). - Expanded 2026 Model Catalog & Billing (
src/cost.mjs,src/providers.mjs): Full support forgpt-6.2-sol,gpt-6.2-astra,gpt-6.1-terra,gpt-6-luna, Google Gemini 4 (gemini-4-hydrogen,gemini-4-carbon,gemini-3.8-flash), Groq (openai/gpt-oss-120b), and free OpenRouter fallback.
5. ⚖️ Stricter D&D 2024 & 5e Rules, Plausibility Gate & Auto Concentration
- Plausibility Anti-Nonsense Gate (
src/prompts.mjs): Refuses physically impossible actions or mechanics-breaking stunts cleanly ("cannot be done") while rewarding genuinely clever plans with realistic difficulty and stakes. - Automatic Concentration Saves (
src/combat.mjs,src/rules.mjs): Taking damage while concentrating automatically prompts/evaluatesCON SaveagainstDC = max(10, floor(damage / 2))and clears lost concentration cleanly on failure. - Verified Stability: Covered by 156 automated tests (
node --test src/tests/*.test.mjs).
🇷🇺 Русская версия (Russian)
🌟 Что нового в версии 0.9.6
- Студийный интерфейс под 13" и настоящее отдельное окно карты (
/board):- Компактная верхняя панель
46pxс переключателем режимовХроника | Доска + Чат | Вся доска | Граф | ↗ Окно, сворачиваемой справкой кампании, авто-сворачиванием сайдбара на узких экранах, горизонтальной лентой партии (#partyRibbon) и тонким 2-строчным композитором. - Кнопка
↗ Окнооткрывает игровое поле и граф в отдельном нативном окне macOS (1080×740) или отдельном окне браузера с живой синхронизацией по SSE (тема и кампания подтягиваются автоматически, закрытие карты не завершает игру).
- Компактная верхняя панель
- Тактическая доска с 2.5D-фигурками и античной картой мира:
- Перетаскивание фигурок (значки КД и кольца HP), линейка дистанций (в футах и милях), шаблоны заклинаний (сфера 20 фт, конус 15 фт, линия 30 фт), кисть ландшафта и тумана войны, античная региональная карта с маршрутами и розой ветров, генератор сцен и энкаунтеров.
- Ассоциативный граф памяти (по идее Graphify):
- Автоматический граф сущностей, клятв, сюжетных нитей и связей со стеммингом русских и английских падежей + интерактивный SVG-просмотр «Граф / Дневник мира» с фильтрами и строгой изоляцией тайн Мастера.
- Гибридный авто-роутер моделей и поддержка линейки 2026 года:
- Режим Гибрид (
gpt-6.2-sol↔gpt-6.1-terra): глубокий отыгрыш в Нулевой сессии, диалогах и шёпоте идёт наgpt-6.2-sol, а бои и рутинное изучение — на быстройgpt-6.1-terra; сводки хроники работают на сверхбыстройgpt-6-luna($0.10 / $0.50). - Поддержка OpenAI 6.2 (
gpt-6.2-sol,gpt-6.2-astra), Google Gemini 4 (gemini-4-hydrogen,gemini-4-carbon,gemini-3.8-flash), Groq (openai/gpt-oss-120b) и резерва OpenRouter.
- Режим Гибрид (
- Строгие правила D&D 2024/5e, контроль правдоподобности и концентрация:
- Мастер отсекает невозможный абсурд и физически невыполнимые заявки, при этом честно поддерживает реальные тактические задумки.
- Автоматические спасброски Концентрации при получении урона (
КС = max(10, floor(урон / 2))) со сбросом заклинания при провале. - Надёжность подтверждена 156 автотестами без сбоев.
ZeroPrep-DnD v0.9.5 — Scenario Starters & Hardened LAN Security
ZeroPrep-DnD v0.9.5 — Scenario Starters, Hardened LAN Security & Initiative Overhaul
November 2026 update. This milestone focuses on campaign integrity, mobile companion security, tactile combat initiative, and rich story premises for Session Zero.
🌟 What's New in v0.9.5
1. 🗺️ Four Modular Adventure Starters
- Jump directly into rich, atmospheric adventures during Session Zero without preparation:
- Border Settlement: A frontier refuge facing mysterious wilderness incursions;
- City Investigation: High-stakes urban political conspiracy and hidden cults;
- Lighthouse Mystery: Coastal enigma, storm-lashed ruins, and ancient maritime legends;
- Frontier Expedition: Dangerous trek into forgotten, uncharted territory.
- Starters are fully customizable modular frameworks tailored by players during character creation.
2. 🎭 Refined Living DM Directives
- Player Agency First: Strict enforcement of player boundaries and narrative autonomy—the DM never overrides player decisions, thoughts, or emotions.
- Fair Roll Stakes: Clear explanation of difficulty and consequences before calling for a check; single failed checks never dead-end an investigation.
- DM Secrets Protection: World lore secrets, monster vulnerabilities, and GM notes are strictly preserved until discovered organically in play.
3. ⚔️ Tactile Initiative & Combat Overhaul
- Physical Dice Support: Players roll real d20s at the table and submit values verbally or via the companion.
- Automated Combat Locking: Prevents accidental double-triggering of active encounters and stops phantom adversary duplication.
4. 🛡️ Hardened LAN Companion Security & Privacy
- Localhost Admin Gate: Administrative server endpoints (
/api/settings,/api/export, etc.) are strictly locked tolocalhost. - Server-Side Fog of War: Hidden markers and fog tokens are sanitized before reaching mobile player devices.
- Private Whispers: Secret player-to-DM communications are delivered strictly to the sender and stripped from the shared table journal.
- State Integrity: Hardened concurrency handling to protect campaign save files from parallel write collisions.
5. 💚 Temporary HP & Responsive Hero Cards
- Temporary HP Logic: Accurately absorbs incoming damage before affecting base hit points, with full undo capability.
- Adaptive Hero Grid: Redesigned responsive layout with larger portraits, unified character sheet access, inventory, and progression tabs.
6. ⚡ Modern Node.js 24 LTS Architecture
- Tested and verified against Node.js 24+ LTS.
🇷🇺 Русская версия (Russian)
🌟 Что нового в версии 0.9.5
- 4 авторские стартовые заготовки: Приграничное поселение, Городское расследование, Тайна маяка и Экспедиция. Готовые отправные точки для Session Zero, которые игроки могут свободно адаптировать.
- Обновлённые директивы Мастера: Приоритет свободы воли игроков, понятные ставки проверок кубиков, недопущение тупиков при провалах бросков и бережное сохранение тайн сюжета.
- Улучшенная боевая инициатива: Ввод реальных физических бросков d20 игроков или автобросок; защита от повторного старта боя и устранение ложного появления противников.
- Усиленная безопасность LAN-компаньона: Доступ к администрированию ограничен локальным хостом; туман войны фильтруется на сервере; шёпот игрока скрыт из общей хроники и виден только отправителю.
- Временные HP и адаптивная сетка героев: Временные очки здоровья корректно поглощают урон перед обычными HP; переработана сетка карточек персонажей с крупными портретами.
- Поддержка Node.js 24 LTS: Полная совместимость с актуальной веткой Node.js 24+.
ZeroPrep-DnD v0.9.4 — Local Neural Vision & Flagship Bilingual Release
ZeroPrep-DnD v0.9.4 — Local Neural Vision & Flagship Bilingual Release
November 2026 update. The core milestone of this landmark release is granting the AI Dungeon Master real-time visual perception of the physical table—100% locally on Apple Neural Engine without external cloud services or token costs.
👁️ 1. Local Table Vision via Apple Vision Framework
- Apple Neural Engine: Video stream from your webcam is analyzed entirely on-device on Apple Silicon using native
Vision.framework(VisionHelper). - What the DM Perceives:
- Player Headcount: Automatic detection and tracking of players at the table.
- Gaze Direction & Attention: Recognizes whether players are looking at the table/screen or staring down at phones (
pitch < -0.20). - Facial Micro-Expressions: Detects smiles, laughter, speech mouth aperture, and suspense/tension from facial landmark geometry.
- 100% Private & $0 Cost: Processed in RAM on-device; video frames never touch the network. Zero tokens, zero API cost.
⏱️ 2. Hybrid DM Perception (Actions + Background Monitoring)
- Snapshots on Player Action: Whenever a player holds Push-to-Talk or submits a turn, the app captures current table emotions so the DM knows who spoke and their emotional tone.
- Background Table Monitoring (Every 25s): If a silence lingers or someone gets distracted by their phone, the DM weaves it naturally into the narrative ("As the wizard stares blankly into space, a branch snaps ominously right behind him...").
🎙️ 3. Flagship OpenAI TTS Multi-Voice Narration
- Cinematic Voice Acting: Powered by OpenAI
tts-1(onyx,fable,nova,echo). - Dynamic Character Routing: Deep narrator baritone for the DM, expressive female voices for witches and priestesses, nimble voices for young rogues.
- Natural Speech Polish: Strips technical prefixes (
[Hero]:is never read aloud), normalizes dice formulas (1d20+4→ "one d twenty plus four"), auto-stress accents, and natural pause punctuation.
🎛️ 4. Compact UI & Dynamic System Prompts
- 👁️ Table Vision Indicator: Placed in the composer bar. Clicking it opens a live preview HUD with attention badges and manual snap trigger.
- Dynamic Prompt Adaptation: When Vision is toggled off, visual observation instructions are stripped from the model prompt completely, preventing hallucinations.
🇷🇺 Русская версия (Russian)
👁️ 1. Локальное зрение на базе Apple Vision Framework
- Apple Neural Engine: Анализ видеопотока веб-камеры выполняется нативно прямо на чипе Mac (Apple Silicon) через системный фреймворк
Vision.framework(VisionHelper). - Что видит Мастер: количество игроков, направление взгляда, залипание в телефоны, улыбки, смех, открытость рта и напряжение.
- 100% приватность: Кадры видео обрабатываются локально и никуда не передаются. Стоимость обработки — $0.
⏱️ 2. Гибридный режим наблюдения (Действия + Фоновый мониторинг)
- Снимок при заявке: фиксация эмоций говорящего игрока.
- Фоновый мониторинг (каждые 25 секунд): реакция на заминки и отвлечения за столом.
🎙️ 3. Озвучка OpenAI TTS
- Ролевая многоголосица
onyx,nova,echoс автоматической расстановкой ударений, вырезанием префиксов и разворотом формул кубиков.