-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Wizard Specification
Language / שפה: English | עברית
This document details the architectural design principles, workflow, and edge-case handling for a future Interactive Setup & Health-Check Wizard for RightSub.
The wizard's primary objective is to make onboarding 100% autonomous (One-Click / One-Liner), even on a completely bare, clean-slate computer lacking common developer tools (such as macOS machines without Homebrew, or Windows PCs without Winget or pre-installed Python).
- Zero Manual Prerequisites: Users should never need to look up external tutorials, edit operating system environment variables, or know how to configure PATH variables manually.
-
Clean-Slate Resilience:
- macOS without Homebrew: The wizard detects missing package managers and offers either a guided 1-click Homebrew installation or direct static binary downloads requiring no package manager.
-
Windows without Winget or Python: The wizard provides clear direct commands, silent installation scripts with
PrependPath=1, or automated fallback downloads.
-
Automated PATH Injection:
Upon setup completion,
rightsubis guaranteed to be available globally from any open terminal window without manual configuration. - Self-Diagnostic "Doctor" Mode: Provides an end-to-end diagnostic report covering Python 3, FFmpeg, TMDb API keys, Ollama local daemon, and Quicksubs.
| Scenario | macOS (No Homebrew installed) | Windows (No Winget or Python installed) |
|---|---|---|
| Detection |
which brew returns exit code 1. |
winget or python commands unrecognized in command prompt. |
| Recommended Path (Automated) | Wizard offers to run official Homebrew bootstrap: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
If Python is missing: automated silent download with PrependPath=1.If Winget exists: winget install Gyan.FFmpeg. |
| Standalone Path (Zero Package Managers) | Direct curl download of pre-compiled, verified static ffmpeg binary directly into RightSub's local folder (no sudo or package managers required). |
PowerShell download of official Gyan.FFmpeg release archive with automatic extraction of ffmpeg.exe directly into the RightSub folder. |
==================================================================
RightSub — Environment Setup & Health Wizard
==================================================================
[1/5] Checking Operating System & Architecture...
✓ Detected: macOS 15.1 (Apple Silicon - aarch64)
[2/5] Checking Python Runtime...
✓ Python 3.9+ detected: /opt/homebrew/bin/python3 (v3.11.8)
✓ Installing/verifying requirements.txt dependencies... Done.
[3/5] Checking Media Binaries & Package Managers...
[!] Homebrew is not installed on this Mac.
How would you like to install FFmpeg?
> 1. Install Homebrew and FFmpeg automatically (Recommended)
2. Download standalone FFmpeg binary directly (No package manager needed)
3. I will install FFmpeg manually later
[4/5] Configuring Global System PATH...
✓ Adding ~/.local/bin to active shell profile (~/.zshrc)... Done.
✓ Global command 'rightsub' is now active from ANY terminal.
[5/5] Service Onboarding & Secrets (Optional):
[?] Enter your TMDb API Key (or press Enter to skip):
> ****************************************
✓ TMDb API Key validated via live ping (HTTP 200). Saved to ~/.config/rightsub/config.json.
[?] Ollama Local AI Status:
✓ Detected Ollama daemon at http://localhost:11434
✓ Installed models: llama3.2:latest, qwen2.5:7b
==================================================================
[✓] RightSub is 100% ready to use!
Try running: rightsub auto "MyMovie.mkv"
==================================================================
The wizard reads the user's active shell from $SHELL:
- If Zsh: inspects
~/.zshrc. - If Bash: inspects
~/.bashrcor~/.bash_profile. - If
~/.local/binis not yet exported: automatically appends:export PATH="$HOME/.local/bin:$PATH"
- Creates executable symlink (
ln -sf) fromrightsub.pyto~/.local/bin/rightsub.
Rather than requiring the user to navigate the Windows System Properties GUI, the wizard executes a PowerShell command updating the Windows User Environment Registry directly:
$installDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($userPath -notlike "*$installDir*") {
[Environment]::SetEnvironmentVariable("Path", "$userPath;$installDir", "User")
Write-Host "[✓] RightSub successfully added to User PATH permanently."
}The same underlying verification engine will power an autonomous diagnostic tool:
rightsub doctorThis command inspects all system dependencies, prints a clear status dashboard (Python, FFmpeg, Ollama, TMDb, PATH), and offers 1-click self-repair for any missing components.
RightSub Wiki — Subtitles Done Right. Powered by the SubRefine Algorithmic Engine & SubSwarm Multi-Agent AI.
- Home
- 📦 Global Installation Guide
- 🔰 Quickstart for Beginners
- BiDi & Plex Guide
- Pipeline Workflow
- On-Device STT & Sync (quicksubs)
- TMDb Metadata & Entity Resolution
- AI Assistants & Integration
- ⚖️ RightSub vs. Bazarr Comparison
- 🔄 Home Media & Download Integrations
- 🔮 Interactive CLI Specification
- 🔮 Setup & Health Wizard Specification
- 🔌 MCP Server Specification
- 💎 Semantic AI Polish & QC Specification
- 🐳 Docker Webhook Server Specification
- 🗺️ Product Roadmap
- 🚀 What's New & Release Notes
- Boston Legal Case Study
- CLI Reference
- דף הבית (Home HE)
- 📦 מדריך התקנה גלובלית והפצה
- 🔰 מדריך פשוט למתחילים
- מדריך BiDi ו-Plex
- תהליך עבודה מלא
- תמלול וסנכרון מקומי (quicksubs)
- אינטגרציית TMDb (עלילה ומגדר)
- חיבור לכלי בינה מלאכותית (AI)
- ⚖️ השוואה טכנית מול Bazarr
- 🔄 מדריך אינטגרציות ואוטומציה לשרתי מדיה
- 🔮 מפרט אשף פקודה אינטראקטיבי
- 🔮 מפרט אשף התקנה ואבחון
- 🔌 מפרט שרת MCP
- 💎 מפרט מנוע ליטוש סמנטי ו-QC
- 🐳 מפרט שרת Webhook וקונטיינר
- 🗺️ מפת דרכים ומעקב אבני-דרך
- 🚀 מה חדש ועדכוני גרסאות
- מקרה בוחן - בוסטון ליגל
- מדריך פקודות CLI