Some checks failed
Release / semantic-release (push) Successful in 59s
tests / Unit tests (Linux, Python 3.11) (push) Successful in 13m45s
Release / build-linux (push) Failing after 7m47s
Release / build-windows (push) Has been cancelled
Release / build-macos (arm64, macos-latest) (push) Has been cancelled
Release / build-macos (x64, macos-15-intel) (push) Has been cancelled
Release / release-main (push) Has been cancelled
Release / release-develop (push) Has been cancelled
Transform isair/jarvis into a Discord-controlled voice assistant running on the Ubuntu VNC desktop, keeping the mature ~39k-line Python brain intact. - bot/ (Node + bun, discord.js): /자비스 slash commands (ephemeral), voice channel join + voice receive/playback, pluggable VNC screen broadcast (selfbot live / noVNC / screenshot) - bridge/ (Python, Flask): wraps jarvis STT + run_reply_engine + Piper TTS behind a thin localhost HTTP API - .env.example, scripts/ (start_bridge/start_bot/dev), README rewrite, docs/language-comparison.md and docs/vnc-xfce-setup.md Language decision: hybrid (Python brain + Node/bun Discord layer) because Discord blocks bot video; native screen broadcast only works via a Node selfbot library.
64 lines
2.1 KiB
PowerShell
64 lines
2.1 KiB
PowerShell
Param()
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
function Write-Info($msg) { Write-Host "[jarvis] $msg" }
|
|
|
|
# Repo root
|
|
$SCRIPT_DIR = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
$REPO_ROOT = Resolve-Path (Join-Path $SCRIPT_DIR '..')
|
|
Set-Location $REPO_ROOT
|
|
|
|
# Helper to set env vars for the current process
|
|
$env:PYTHONPATH = Join-Path $REPO_ROOT 'src'
|
|
if (-not $env:JARVIS_VOICE_DEBUG) { $env:JARVIS_VOICE_DEBUG = '0' }
|
|
|
|
# Prefer micromamba for pre-built dependencies (webrtcvad, av, etc.)
|
|
$micromamba = Get-Command micromamba -ErrorAction SilentlyContinue
|
|
if ($micromamba) {
|
|
$envPrefix = Join-Path $REPO_ROOT '.mamba_env'
|
|
Write-Info "Using Micromamba environment at '$envPrefix' (avoids compilation issues)"
|
|
|
|
if (-not (Test-Path $envPrefix)) {
|
|
Write-Info 'Creating environment (python 3.12)...'
|
|
micromamba create -y -p $envPrefix python=3.12 -c conda-forge
|
|
}
|
|
|
|
Write-Info 'Installing PyAV (FFmpeg bindings) from conda-forge...'
|
|
micromamba install -y -p $envPrefix -c conda-forge av
|
|
|
|
Write-Info 'Installing Python requirements with pip...'
|
|
micromamba run -p $envPrefix pip install -r requirements.txt
|
|
|
|
# Prefer launching python.exe directly so Ctrl+C propagates to the child on Windows
|
|
$envPython = Join-Path $envPrefix 'python.exe'
|
|
if (Test-Path $envPython) {
|
|
Write-Info 'Starting daemon...'
|
|
& $envPython -m jarvis.daemon
|
|
exit $LASTEXITCODE
|
|
} else {
|
|
# Fallback to micromamba run if python.exe is not found for some reason
|
|
Write-Info 'Starting daemon (fallback via micromamba run)...'
|
|
micromamba run -p $envPrefix python -m jarvis.daemon
|
|
exit $LASTEXITCODE
|
|
}
|
|
}
|
|
|
|
# Fallback: venv + pip (may require Visual C++ Build Tools for compilation)
|
|
$venvPath = Join-Path $REPO_ROOT '.venv'
|
|
$venvPython = Join-Path $venvPath 'Scripts/python.exe'
|
|
Write-Info "Micromamba not found, using regular Python (may need Visual C++ Build Tools for native deps)"
|
|
|
|
if (-not (Test-Path $venvPython)) {
|
|
Write-Info 'Creating virtual environment (.venv)...'
|
|
python -m venv $venvPath
|
|
}
|
|
|
|
Write-Info 'Installing Python requirements with pip...'
|
|
& $venvPython -m pip install -r requirements.txt
|
|
|
|
Write-Info 'Starting daemon...'
|
|
& $venvPython -m jarvis.daemon
|
|
|
|
|