Spaces:
Sleeping
Sleeping
Commit History
-
Auto-set version from git commit hash on each deploy
- Dockerfile writes short commit hash to VERSION file at build time - /api/version endpoint reads VERSION file - Frontend fetches and displays version below navigation - Version updates automatically with every push/deploy Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3e2ead7 -
Add version number below main navigation
Shows v0.2.0 in small muted text under the mode toggle, so users can verify they have the latest version. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>dd8db09 -
Fix mic start failing when pre-init recognition still active
If the permission pre-check recognition is still running when the user taps mic, stop it first and retry. Also retry once on start() failure since recognition may need a moment to fully stop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>3ece435 -
Fix mic pre-init race condition on iOS
Don't use setTimeout to stop the permission pre-check — the iOS permission dialog blocks longer than 100ms, leaving recognition in a broken state. Instead let it end naturally via onend/onerror. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>16ddc72 -
Move play button and back button to top of answer modal
Controls are now in a top bar above the scrollable answer content, matching the same pattern used in the walkthrough step view. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c773580 -
Fix mic not working on first tap in iOS PWA
Pre-trigger mic permission dialog in vgStart() by briefly starting/stopping SpeechRecognition, so the permission is granted before user first taps mic. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e3975c7 -
Move question input to modal, add ? button next to mic
- Remove inline question input from nav row (cleaner layout) - Add ? button in audio controls row next to mic - Tapping ? opens a modal with text input + send button - Modal closes on submit, background tap, or vgStop - Audio pauses when question input opens Layout now: [Progress bar] [↺] [⏸] [🎤] [?] ← audio + question buttons [Zurück] [Weiter] [Beenden] ← navigation [Status] [Step text scrolls below] Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8e24955 -
Move all controls above step content, inline question input in nav row
Layout now: [Progress bar + phase dots] [↺] [⏸] [🎤] ← audio controls [Zurück] [Regelfrage...] [Weiter] [Beenden] ← nav + input [Status] [Step text scrolls below .................] All controls always visible, no scrolling needed to navigate. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>737a3b1 -
Move navigation (Zurück/Weiter/Beenden) above step content
Navigation buttons are now directly below the progress bar, always visible without scrolling through the step text. Audio controls (rewind, play/pause, mic) remain at the bottom. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>13df0bb -
Fix mic first-tap issue, add play icon + status to answer modal
- Pre-init speech recognition in vgStart() so mic permission is requested early (fixes first-tap not working on iOS) - Replace "Antwort vorlesen" text button with round play icon (▶) - Show status text during audio generation ("Audio wird generiert...") - Play button toggles to pause (⏸) while audio plays, back to ▶ when done - Answer audio supports play/pause toggle on repeated taps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>69ee012 -
Redesign VG controls: separate audio/nav rows, play/pause as icons
- Split controls into two rows: audio (rewind, play/pause, mic) and navigation (Zurück, Weiter, Beenden) to prevent confusion - Play/Pause button uses icon (⏸/▶) instead of text that conflicted with "Weiter" navigation button - Play/pause icon auto-syncs via audio onplay/onpause/onended events - Move question modal outside flex containers for reliable iOS rendering - Rewind button uses ↺ icon Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>9ee7085 -
Add Cache-Control no-cache header for index.html to prevent stale PWA
iOS aggressively caches PWA resources from homescreen, causing users to see outdated versions with no way to hard-refresh. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>4216c7a -
Make iOS audio unlock non-blocking to prevent flow interruption
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>00def98 -
Comprehensive frontend hardening: security, iOS, code quality
Security (P0): - Add central escapeHtml() function, use consistently everywhere - Escape data.situation, data.sources, p.title, err.message before DOM insertion - Check resp.ok + handleAuthError() before accessing response data - Fix login() to show error on network failure instead of bypassing auth iOS/Mobile (P0-P1): - Add silent audio unlock in vgStart() for iOS autoplay policy - Pre-create Audio in gesture context in vgPlayAnswerAudio() (iOS fix) - Fix double recognition.stop() causing InvalidStateError on iOS - Wrap recognition.start() in try/catch - Add safe-area-insets for notched iPhones (header, input, controls, modal) - Add viewport-fit=cover, remove user-scalable=no - Add -webkit-overflow-scrolling: touch on scrollable areas - Increase touch targets: mode-toggle (44px), example buttons, remove-image, VG input send button Code Quality (P1-P2): - Add isLoading guard to prevent race conditions on rapid next/back clicks - Add sendBtn.disabled guard against double-submit in cha…e3938e2 -
Fix mic staying active, show answer text immediately, TTS on demand
- Stop speech recognition before opening question modal (fixes iPhone mic icon) - Display answer text as soon as API responds, no waiting for TTS - TTS audio only generated when user taps "Antwort vorlesen" button (also fixes iOS autoplay restriction issue) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1e6fa80 -
Add pause button, question modal, and answer audio management to Voice Guide
- Play/Pause button with voice commands (pause/stopp/play/fortsetzen) - Questions now open in a modal overlay instead of replacing step content - Answer TTS audio stored in vg.answerAudio for proper cleanup on modal close Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>dfa27d8 -
Add GitHub Actions workflow to sync to HF Spaces on push
Automatically pushes to Hugging Face Spaces (FC-Bit/arkanum) whenever main is updated, including LFS files. Uses HF_TOKEN secret. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>95b96d3 -
Add prerendered walkthrough MP3 audio files via LFS
Unignore MP3s in data/walkthrough/prerendered/ so the prerendered audio can be committed and served directly without TTS API calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ef4feb4 -
Pre-render walkthrough steps (text + audio) for instant playback
Generates all 48 walkthrough steps offline via RAG+Claude+TTS and serves them as static files, eliminating per-request API calls and ~5-8s wait times. - Add scripts/prerender_walkthrough.py for offline generation - Add get_prerendered_step() and /api/walkthrough/audio endpoint - Frontend uses prerendered audio URL with TTS fallback - Track MP3 files in Git LFS Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a1bfaa6 -
Pre-build embedding cache for fast startup, fix voice recording stop bug
Cache chunks+embeddings as index_cache.json (~38 MB, Git LFS) so container startup loads ChromaDB in ~3s instead of calling OpenAI embeddings API (~30-60s). Cache is generated by default on every index build. Fix walkthrough voice input not stopping: add 15s auto-timeout, show stop icon on mic button while listening, and centralize cleanup in vgStopListening(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8a2dc22 -
Add progress logging during index build for container visibility
PDF/YouTube parsing and embedding/indexing steps now log progress with counts and percentages via the arkanum logger. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>037b655 -
Add startup log line confirming index build and online status
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f2bbb42 -
Add YouTube transcripts to RAG, walkthrough voice guide, and intro story
- YouTube transcript pipeline: fetch (yt-dlp) + VTT parser + chunking - 5x GenusSolo DE (S01E01-E05) + 3x EN tutorials indexed - Hard-split fallback for punctuation-free auto-subs - Walkthrough step-expander with RAG-backed prompt templates - Atmospheric intro story step before rules explanation - Campaign + Zone Survival modes with full phase/step definitions - Voice guide frontend with TTS playback and step navigation - scripts/fetch_transcripts.py with --list option to inspect video sources Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>60a07be -
Add simple password auth for public HF Space
- Backend: X-Password header check on API endpoints (APP_PASSWORD env var) - Frontend: Login screen with localStorage persistence - Password saved on device, no re-login needed on iOS homescreen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>00cf010 -
Add GitHub Pages frontend with HF Spaces backend
- Frontend auto-detects hosting: github.io → HF Space API, otherwise same origin - docs/app/ for GitHub Pages deployment - PWA manifest with iOS home screen support Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a36e9b3 -
Fix: use single gunicorn worker to prevent duplicate index builds
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>267395e -
Remove Azure deployment workflow (using HF Spaces instead)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>b625218 -
Add vision expert, FastAPI backend, frontend, and HF Spaces deployment
- src/expert/vision.py: Two-step image analysis (describe → RAG → answer) - src/api.py: FastAPI with /api/ask, /api/ask/vision, auto-index on startup - frontend/index.html: PWA chat interface with camera support - Dockerfile: HF Spaces deployment (Python 3.11, port 7860) - .github/workflows/deploy.yml: Azure Web App deployment (alternative) - startup.sh: gunicorn startup script - Git LFS for PDF files - Language-matching in vision prompt Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>f73c3e2 -
Add German rulebook PDFs and recursive PDF discovery in build_index
- 4 German PDFs (Rulebook, Zone Survival, Addon D&F, Mission Guide) - build_index.py now walks subdirectories (de_files/) recursively - Index rebuilt: 904 chunks total (380 EN + 524 DE) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e4acb6a -
Implement core RAG pipeline: PDF parsing, vector index, and rule expert
- src/ingestion/pdf.py: PyMuPDF-based PDF parser with section detection and token-aware chunking (~500 tokens, 50 overlap) - src/rag/vectorstore.py: ChromaDB vector store with OpenAI embeddings (text-embedding-3-small), build and retrieve functions - scripts/build_index.py: End-to-end pipeline script (PDF → chunks → index) - src/expert/query.py: Rule expert using RAG + Claude API (Sonnet) with structured answers and source citations - prompts/expert/base.md: Add language-matching instruction (answer language matches question language) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>08f87f1 -
Add S.T.A.L.K.E.R. TBG rulebooks and reference PDFs
- Main rulebook, Zone Survival rules, Duties & Factions addon - Mission Guide, Zone Map - 5 PDFs, ~67 MB total Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>8fb1dc9 -
Add .gitkeep to preserve data/raw/stalker/ directory structure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>e8562a7 -
Remove old S.T.A.L.K.E.R. PDFs for replacement
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>a6dd418 -
Add PDF download script and S.T.A.L.K.E.R. rulebook data
- Implement fetch_data.py with download logic (requests + progress bar) - Include rulebook_v1.pdf and faq_v1_2025-01-15.pdf in data/raw/stalker/ - Remove data/raw/ from .gitignore (private repo, keep everything in one place) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>ec84e95 -
Initial commit – Arkanum v1.0
ebf20cf -
initial commit
Unverified signature215d125