omnipkg v2.0.1 - Microsecond Install Verifications, Concurrent-Safe >1ms Overhead Daemon Spawns, and Windows Daemon Support
This is a significant point release that addresses critical stability issues, introduces massive performance enhancements, and implements a more robust, concurrent architecture for the daemon.
🚀 Performance Overhaul: Microsecond Activation
The omnipkgLoader has been obsessively profiled and optimized, pushing every controllable operation to its physical limits.
- ~50 Microsecond Pre-flight Checks: The package satisfaction check (
check_package_installed_fast) has been rewritten to use direct, cache-less filesystem scans. This has reduced the time to validate an existing package from ~24 milliseconds to ~50 microseconds—a nearly 500x speedup. - Sub-Millisecond Activation: For packages already in the main environment, the total activation time (including all checks and cloaking of conflicting bubbles) is now consistently under 1 millisecond.
- Surgical Knowledge Base Updates: The metadata discovery logic now uses a "fast-path" to surgically locate only newly installed packages, dramatically accelerating post-install operations.
🐛 Critical Stability & Cross-Platform Fixes
- Windows Support (No-Fork Mode): The worker daemon has been re-architected to support Windows by implementing a
--no-forkstartup mode that usessubprocess.Popen, enabling full daemon functionality on all platforms. - First-Run Initialization Bugs:
- Resolved multiple recursion loops during first-time setup by correcting initialization order and enforcing
minimal_mode. - Fixed an
AttributeErrorfor_info_cachethat would occur on the very first Knowledge Base build, preventing a clean initial setup without requiring8pkg reset.
- Resolved multiple recursion loops during first-time setup by correcting initialization order and enforcing
- Daemon
psutilBug: Fixed a faulty import check that caused8pkg daemon statusto incorrectly report "psutil not installed" even when it was present. - Package Discovery (
canonicalize_name): Patched aNameErrorin the package discovery logic, improving the reliability of metadata gathering. - Scope and
PATHBugs:- Resolved an
UnboundLocalErrorin the GPU pipeline by correcting logic scope. - Implemented
PATHenvironment variable manipulation in the loader to enable proper binary executable isolation (e.g.,uv).
- Resolved an
✨ Architectural Enhancements
- Centralized Quantum Healing: The existing "Quantum Healing" logic for Python version conflicts has been centralized into a single
_handle_quantum_healingmethod to simplify the codebase. - Concurrent Daemon Spawning: The daemon architecture was hardened with more granular locking around filesystem cloaking. This allows multiple daemon workers to be spawned concurrently in a thread-safe manner.
- Smart Installation Verification: A new verification system intelligently groups and tests interdependent packages (e.g., the
httpxstack) together to ensure robust installations. - Automatic Index Detection: A new package index registry automatically detects and uses special URLs for variants like PyTorch CUDA builds.
- Snapshot-Based Stability:
smart_installnow takes pre-install snapshots and can perform a "safe restore" if an operation fails.