Skip to content

legends-ambient-intelligence v0.2.0

Latest

Choose a tag to compare

@avalonreset avalonreset released this 04 Dec 05:25

legends-ambient-intelligence v0.2.0 (2026-12-03)

Multi-Backend Local ASR (whisper-cli & CPU ONNX Parakeet)

  • Added modern whisper-cli (whisper.cpp v1.9.6) detection and safe non-shell invocation (--backend whisper-cli and automatic fallback under --backend whisper) with -ojf BPE continuation token merging, allowlisted GGML model resolution (--model-dir, LEGENDS_AMBIENT_WHISPER_MODEL_DIR, LEGENDS_AMBIENT_WHISPER_CLI_MODEL), and bounded output capture.
  • Added optional CPU/ONNX Parakeet backend via sherpa-onnx ([parakeet-onnx] extra pinned to sherpa-onnx>=2.0.0,<3) with shared legends-hyperyap Parakeet allowlist parity, compact float32 decoding, 128 MiB / 1-hour WAV caps, and ffmpeg -fs bounds.
  • Upgraded legends-ambient doctor to report honest readiness across all four pluggable ASR runtimes (faster_whisper, whisper_cli, parakeet_nemo_cuda, parakeet_sherpa_onnx) alongside --model-dir verification and --allow-custom-model.
  • Bounded [whisper] extra to faster-whisper>=1.0.0,<2 while preserving zero mandatory core dependencies (dependencies = []).

Cross-Platform Security & Reliability Hardening

  • Hardened is_symlink_or_reparse() via os.lstat + Microsoft IsReparseTagNameSurrogate (0x20000000) across Python 3.11-3.13 (blocking NTFS junctions and symlinks while sparing OneDrive/WOF/Dedup), replaced recursive Path.glob("**") with os.walk(..., followlinks=False) pruning junctions in-place, and guarded Archiver.archive() against intermediate date-directory escapes.
  • Hardened resolve_trusted_executable() to prevent untrusted CWD hijacking and .bat/.cmd/.ps1/.vbs script shims while preserving Linux usr-merge, Scoop current junctions, Homebrew, WinGet, Nix, and C:\Windows\System32 CWD sessions.
  • Fixed recover local-timezone and DST rollover boundary handling (including Windows 1970 epoch-reset filenames), added UTF-8 BOM + deterministic O(N) MAX_JSON_DEPTH = 64 guards, atomic exclusive file writes (mode="x"), and flexible --archive-root flag placement.

Verification

  • Multi-OS CI (ci run 47273636301): 152 tests passing across Ubuntu, Windows, and macOS (Python 3.11-3.13 locally + hosted CI matrix), plus isolated wheel smoke verification.
  • Attached deterministic legends-ambient-intelligence-0.2.0-bundle.tar.gz, legends_ambient_intelligence-0.2.0-py3-none-any.whl, legends_ambient_intelligence-0.2.0.tar.gz, and SHA256SUMS.txt.