Skip to content

omnipkg v2.0.1 - Microsecond Install Verifications, Concurrent-Safe >1ms Overhead Daemon Spawns, and Windows Daemon Support

Choose a tag to compare

@1minds3t 1minds3t released this 16 Dec 17:06

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-fork startup mode that uses subprocess.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 AttributeError for _info_cache that would occur on the very first Knowledge Base build, preventing a clean initial setup without requiring 8pkg reset.
  • Daemon psutil Bug: Fixed a faulty import check that caused 8pkg daemon status to incorrectly report "psutil not installed" even when it was present.
  • Package Discovery (canonicalize_name): Patched a NameError in the package discovery logic, improving the reliability of metadata gathering.
  • Scope and PATH Bugs:
    • Resolved an UnboundLocalError in the GPU pipeline by correcting logic scope.
    • Implemented PATH environment variable manipulation in the loader to enable proper binary executable isolation (e.g., uv).

✨ Architectural Enhancements

  • Centralized Quantum Healing: The existing "Quantum Healing" logic for Python version conflicts has been centralized into a single _handle_quantum_healing method 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 httpx stack) 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_install now takes pre-install snapshots and can perform a "safe restore" if an operation fails.