Skip to content

Releases: itsnyxdev/sudo-fun

v1.1.0: Core Reliability, Portability & CLI Management

Choose a tag to compare

@itsnyxdev itsnyxdev released this 15 Sep 17:54

Release Highlights in v1.1.0

  • Administrative CLI Controls:
    • --status: Interactive Rich table displaying tracked command identities, failure counts, remaining lock timers, and active background audio PIDs.
    • --unlock <cmd|all>: Administratively clear a lockout, reset failure counts, and terminate associated background audio daemons without opening SQLite.
    • --kill-audio: Stop any active background failure audio playback processes immediately.
  • Throttled ONNX Inference with Silence Gating:
    • Reduced YAMNet inference from ~30 FPS down to 4 Hz.
    • Added RMS audio energy thresholding to skip inference during silence, cutting CPU usage by ~90% and eliminating frame stutter.
  • Comprehensive Sudo Argument Parser:
    • Full support for attached options (-uuser, -gwheel), GNU long options (--user=admin, --chdir=/var), and option terminators (--).
  • POSIX Process Liveness:
    • Fixed _is_pid_alive to correctly handle PermissionError (EPERM) as confirmation of process existence.
  • Camera Probe Caching:
    • Added cached webcam detection to prevent device contention and eliminate redundant hardware open/close cycles on startup.
  • Expanded Test Suite:
    • Test suite expanded to 35 unit and integration tests (100% passing).

v1.0.2: Critical Stability, Security & Model Pipeline Fixes

Choose a tag to compare

@itsnyxdev itsnyxdev released this 15 Sep 17:24

Release Highlights in v1.0.2

  • Incremental Audio Streaming: Implemented incremental sample consumption in AudioService and continuous stream feeding to Vosk ASR, eliminating the ~33x audio duplication issue.
  • Hardware & Model Availability Gatekeeper: Enhanced ChallengeRegistry to verify offline ML models exist on disk before selecting ML challenges, falling back cleanly to timing.reaction.
  • Unified Asset & Model Resolution: Added sudo_fun.core.assets with prioritized discovery across environment variables, user share, and repo directories.
  • Environment Variable Isolation: Added restore_pristine_environment() to prevent Wayland and Qt environment mutations from leaking into privileged commands executed under sudo.
  • Portability: Added dynamic sudo binary resolution in executor.py supporting NixOS setuid wrappers (/run/wrappers/bin/sudo), PATH, /usr/bin/sudo, and /bin/sudo.
  • Security: Switched all asset downloads in install.sh and release.yml to HTTPS.
  • Installer Enhancements: install.sh now automatically downloads and verifies offline ML models.
  • Expanded Test Suite: Added unit tests for assets, audio streaming, environment hygiene, and model fallback (29 tests passing).

v1.0.1

Choose a tag to compare

@itsnyxdev itsnyxdev released this 11 Sep 19:04

What's Changed

  • fix: recover from missing MediaPipe face model by @itsnyxdev in #1

Full Changelog: v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@itsnyxdev itsnyxdev released this 11 Sep 16:37

Initial release of sudo-fun.

A modular Linux CLI wrapper around sudo with 6 interactive challenge gates.

See README for installation and usage.