ONYX OPTIMISER v6.6 - Windows gaming + system optimiser
==================================================

WHAT'S IN THIS FOLDER
  Optimiser.exe   - native launcher: instant ONYX splash, single UAC prompt, starts the engine
                    hidden (no console windows, no batch scripts)
  Optimiser.bat   - alternative launcher (fallback; same effect)
  Optimiser.ps1   - main program (PowerShell 5.1 + WPF)
  modules\        - tweak catalogs (waves 1-8), junk cleaner engine, storage engine + hub UI,
                    home monitor, app store/remover, BIOS advisor, external tools
  packs\          - harvested tweak packs (OnyxCore / OnyxFine / OnyxBatch / OnyxPrime)
  data\           - app catalog, game profiles, session manifests, operation history (history.jsonl),
                    startup-item backup (startup-backup.json)
  tools\npi\      - bundled NVIDIA Profile Inspector
  _backup\        - pre-wave backup zips (safe to delete once you are happy)

REQUIREMENTS
  - Windows 10 or Windows 11 (x64)
  - Windows PowerShell 5.1 (included with Windows)
  - Administrator rights for applying tweaks (the launcher prompts via UAC)
  - winget (App Installer) for the App Store page
  - Internet for: App Store installs, External Tools downloads (WUB / DControl / Malwarebytes), guide links

IF IT WON'T START
  - Extract the whole zip first (right-click > Extract All). Running from inside the zip loses settings.
  - Start Optimiser.exe (or Optimiser.bat). Avoid right-click > "Run with PowerShell" - it breaks on
    folder names containing an apostrophe (').
  - Say Yes to the UAC prompt. If Windows asks for a different administrator's password, ONYX runs as
    that account and per-user tweaks change that account's settings, not yours (ONYX warns you).
  - "Already running": only one copy can be open; switch to the existing ONYX window.
  - "Locked down / Constrained Language" or a script-policy error: a work/school security policy blocks
    PowerShell. ONYX cannot run there; ask the PC's administrator.
  - Read-only folder (CD, network share, protected folder): ONYX keeps settings and logs in
    %LOCALAPPDATA%\ONYX-Optimiser\data instead.
  - Folder names with [ ] or very long paths work through a short link ONYX makes in
    %LOCALAPPDATA%\ONYX-Optimiser\run (delete it any time).
  - Errors are logged to data\onyx-errors.log (or the %LOCALAPPDATA% folder above). A damaged settings file
    is renamed to *.corrupt and ONYX starts fresh.

HIGHLIGHTS (v6.6)
  - Fresh look (new): matte near-black theme with tighter cards and pale-lavender accents,
    remodelled for clarity. Home gains an "eGPU and Thunderbolt" preset (10 presets total).
  - ONYX rebrand (new): gem logo + "ONYX" wordmark; click the logo (top-left, or the first dock button)
    to jump back to the welcome screen at any time.
  - Bottom dock navigation (new): the sidebar is gone - a floating pill of icon buttons at the bottom;
    hover any icon and it slides open to show "Name + emoji" (e.g. hover the rocket -> "Optimisations").
  - Loading splash + full preload (new): a staged loader with live progress boots everything up-front,
    so switching pages mid-use has no multi-second lag (typical preload: 4-6 s; data\startup-times.log).
  - Memory cleaner on Home (new): native standby-list flush + working-set trim + system file cache +
    modified pages, with a styled in-app confirm and a "freed X" result (no external tools needed).
  - Optimisations: 1,980+ tweaks across 9 waves.
      NEW onyxprime pack (v9.3 port wave): 808 individual tweaks - every registry value and
      operation from the source set is its own toggle (DWM/flip model, USB/PCI, NTFS & storage
      stack, MMCSS tasks, IFEO priorities, WMI loggers, Office/Edge telemetry, Windows Update &
      Store opt-in lockdowns, extended appx cleanup, plus the full advanced set: kernel/memory
      internals, per-GPU-adapter values, Intel/AMD driver parameters). Crash-risk items ship in
      the opt-in Risky tier - Apply Recommended never stages them.
      NEW Design Studio (design wave): Spotify without ads via the official SpotX patcher,
      Spicetify + Marketplace (auto non-admin), Winstep Nexus dock, Lively live wallpapers,
      Rainmeter desktop widgets + VisualSkins skins, plus switchable cleanup: hide the
      Recycle Bin desktop icon and remove the Windows Spotlight auto-wallpaper.
      NEW Aeox port wave: per-game system cards for 21 games (true fullscreen + dedicated GPU,
      auto-detected installs), AMD dual-CCD X3D V-Cache steering, steady Wi-Fi roaming,
      pre-match background cleanup, a full read-only PC checkup report and a GPU driver check.
      Apply Recommended reworked: startup apps are disabled first, Process Lasso + Park Control
      install last, and the set is now the safe essentials only (153 on a typical machine) -
      bigger tweaks stay opt-in. New LAPTOP RECOMMENDED button skips heat/battery-hostile items.
      NEW Design Studio (design wave): Spotify without ads via the official SpotX patcher,
      Spicetify + Marketplace (auto non-admin), Winstep Nexus dock, Lively live wallpapers,
      Rainmeter desktop widgets + VisualSkins skins, plus switchable cleanup: hide the
      Recycle Bin desktop icon and remove the Windows Spotlight auto-wallpaper.
      NEW Aeox port wave: per-game system cards for 21 games (true fullscreen + dedicated GPU,
      auto-detected installs), AMD dual-CCD X3D V-Cache steering, steady Wi-Fi roaming,
      pre-match background cleanup, a full read-only PC checkup report and a GPU driver check.
      Apply Recommended reworked: startup apps are disabled first, Process Lasso + Park Control
      install last, and the set is now the safe essentials only (153 on a typical machine) -
      bigger tweaks stay opt-in. New LAPTOP RECOMMENDED button skips heat/battery-hostile items.
      NEW Design Studio (design wave): Spotify without ads via the official SpotX patcher,
      Spicetify + Marketplace (auto non-admin), Winstep Nexus dock, Lively live wallpapers,
      Rainmeter desktop widgets + VisualSkins skins, plus switchable cleanup: hide the
      Recycle Bin desktop icon and remove the Windows Spotlight auto-wallpaper.
      NEW Aeox port wave: per-game system cards for 21 games (true fullscreen + dedicated GPU,
      auto-detected installs), AMD dual-CCD X3D V-Cache steering, steady Wi-Fi roaming,
      pre-match background cleanup, a full read-only PC checkup report and a GPU driver check.
      Apply Recommended reworked: startup apps are disabled first, Process Lasso + Park Control
      install last, and the set is now the safe essentials only (153 on a typical machine) -
      bigger tweaks stay opt-in. New LAPTOP RECOMMENDED button skips heat/battery-hostile items.
      NEW Design Studio (design wave): Spotify without ads via the official SpotX patcher,
      Spicetify + Marketplace (auto non-admin), Winstep Nexus dock, Lively live wallpapers,
      Rainmeter desktop widgets + VisualSkins skins, plus switchable cleanup: hide the
      Recycle Bin desktop icon and remove the Windows Spotlight auto-wallpaper.
      NEW Aeox port wave: per-game system cards for 21 games (true fullscreen + dedicated GPU,
      auto-detected installs), AMD dual-CCD X3D V-Cache steering, steady Wi-Fi roaming,
      pre-match background cleanup, a full read-only PC checkup report and a GPU driver check.
      Apply Recommended reworked: startup apps are disabled first, Process Lasso + Park Control
      install last, and the set is now the safe essentials only (153 on a typical machine) -
      bigger tweaks stay opt-in. New LAPTOP RECOMMENDED button skips heat/battery-hostile items.
      NEW Design Studio (design wave): Spotify without ads via the official SpotX patcher,
      Spicetify + Marketplace (auto non-admin), Winstep Nexus dock, Lively live wallpapers,
      Rainmeter desktop widgets + VisualSkins skins, plus switchable cleanup: hide the
      Recycle Bin desktop icon and remove the Windows Spotlight auto-wallpaper.
      NEW tweaks6 (hardware wave): NVIDIA (P-state lock, Display Container service, HD Audio endpoints),
      AMD (Crash Defender, Radeon autostart, HD Audio), Intel (IGCC + Arc Control services, DPST guide),
      new "eGPU & Thunderbolt" category, disk spin-down off, WiFi max performance, USB hub power off,
      cooling policy, Energy-Efficient Ethernet off, GPU MSI mode, Intel DPST/CABC/adaptive-brightness, USB3 Link Power Management off.
      NEW entrance screen: Avallon-style welcome with your PC username (auto-detected, click to rename, saved), entrance animations, "Open tweaks" and a one-click "Create restore point" (System Protection aware).
      NEW tweaks7 (breadth wave): Windows 11 extras (Click to Do off, suggested actions, taskbar/Start),
      privacy extras (feedback, OneSettings, typing insights), network extras (mDNS off, SMB retries),
      faster shutdown, 10 extra services, Adobe/Google updater tasks off, Office/Edge/Chrome telemetry
      policies, wake timers off, SSD TRIM check.
      Process Lasso + ParkControl (new): auto-install card plus 5 walkthrough cards - open the apps,
      step-by-step setup card (Performance Mode ON, ProBalance OFF), "Bitsum Highest Performance"
      power-plan switch, and a read-only setup verifier.
  - Storage hub (bottom dock: Storage) with 9 tabs:
      Deep Cleanup    - 119 cleanup targets in 9 groups (system, browsers/apps, developer caches,
                        AI caches, downloads, privacy traces, GPU caches, maintenance, extreme)
      Privacy         - granular history / cookies / recent items / clipboard / timeline cleanup
      Large Files     - find big files (drive or folder picker + min-size), recycle or delete
      Duplicates      - content-verified duplicates (size + hash), keep-one protection built in
      Space Analyzer  - drill-down folder sizes with share bars + largest files per folder
      Projects        - rebuildable project artifact cleanup (node_modules, target, dist, ...)
      Startup Items   - enable/disable Run keys, Startup folders and logon tasks (reversible)
      Maintenance     - one-click fixes: audio, search, icons, printing, update components,
                        performance counters, chkdsk, DISM/SFC, Start menu re-register
      History         - every cleanup/repair logged with recovered space + CSV export
  - Home page resource monitor: CPU / RAM / disk / network at a glance, top memory processes,
    a Free-memory button and the Memory cleaner row.
  - External tools stay on their own page (WUB / DControl / Malwarebytes / DDU / NVIDIA Inspector).
  - Game profiles, App Store (winget), App Remover with trace cleanup, BIOS advisor as before.

HOW TO RUN
  1. Keep this folder together - it is portable, no installer, no registry changes by itself.
  2. Run Optimiser.exe and click Yes on the UAC prompt.
  3. Nothing is applied automatically: every tweak waits for you to flip its switch,
     and storage items are only removed after you press CLEAN/RUN and confirm.

SELF-TEST (used to validate this build)
  powershell -NoProfile -STA -ExecutionPolicy Bypass -File Optimiser.ps1 -SelfTest
  powershell -NoProfile -STA -ExecutionPolicy Bypass -File Optimiser.ps1 -StorageTest
  Expected: SELFTEST OK + AUDIT + HYGIENE lines, STORAGE-TEST PASS, exit code 0.

NOTES
  - First launch builds the tweak card catalog; takes a few seconds.
  - Scans are read-only; deletions require confirmation; every operation is logged to data\history.jsonl.
  - "External Tools" downloads third-party utilities (Sordum WUB / DControl, Malwarebytes) on demand.
