Skip to content

legends-hyperyap v0.2.0

Latest

Choose a tag to compare

@avalonreset avalonreset released this 02 Dec 17:01

Highlights

  • Tauri 2.13.0 Upgrade, Hermetic Test Suite & Route Catalog:
    • Upgraded Tauri core, CLI, and JS/Rust plugins from 2.10.x to 2.13.0 while retaining exact-pinned ort = "=2.0.0-rc.10" / ort-sys = "=2.0.0-rc.10" for Windows CUDA 12 / cuDNN 9 stability.
    • Replaced placeholder test scripts with zero-dependency node --test frontend suites (23 tests), hyperyap_lib Rust unit suites (161+ tests), and hotkeys Rust tests (3 tests), wired into CI alongside rustfmt --check, cargo clippy --all-targets -- -D warnings, ESLint, tsc --noEmit, and scripts/check_release.py.
    • Added root routes.json, enforced SHARED_ASR_MODEL_ALLOWLIST (parakeet-tdt-0.6b-v2-smcleod-int8 and parakeet-tdt-0.6b-v3-int8) with SHA-256 verification across acquisition scripts and NSIS upgrades, and synced vendored cto-legends router pin (ff90a8bd2348).
  • Security, Privacy & Local HTTP API Hardening:
    • Moved Host, Origin, Sec-Fetch-Site, and constant-time RFC 6750 Bearer token authentication into an Axum middleware layer executing before Multipart extraction, bounded concurrent /api/transcribe uploads via semaphore, applied dictionary/deduplication/formatting rules consistently, and used RAII owner-only (0o600/0o700) temporary files and processing guards.
    • Enforced remote_privacy_acknowledged at runtime before outbound LLM dispatch, cleared keyring remote_api_key on unacknowledged remote_url changes, hardened CLI & GUI .hyperyap profile import/export with bounded .take() reads, cross-platform symlink/junction refusal (OneDrive and macOS /tmp safe), and api_port >= 1024 bounds.
    • Scrubbed spoken transcriptions and custom dictionary words from persistent disk logs (info!/debug!/trace!), enforced owner-only 0o700/0o600 atomic writes + corrupt-file .bak backup on settings.json, and preserved existing user settings across version upgrades.
  • Upstream Reliability Fixes:
    • Fixed empty-history panic in get_last_transcription, added bounded exponential backoff on wake-word microphone disconnects, split recording_overlay into a minimal Tauri capability (capabilities/overlay.json), and stripped SentencePiece <unk> tokens in load_vocab.

Verification

  • Verified pnpm test, hotkeys Rust tests, cargo fmt --check, cargo clippy --all-targets -- -D warnings, pnpm run lint, pnpm exec tsc --noEmit, pnpm run build, and scripts/check_release.py (0 issues).
  • Standardized source release archive (legends-hyperyap-0.2.0.tar.gz) and SHA256SUMS.txt.