Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
chore: guard Windows-only dev scripts; remove stale root install.sh
Joana Lütke8ed31909e6f5
diff --git a/install.sh b/install.shdeleted file mode 100644index 03f35a04b9..0000000000--- a/install.sh+++ /dev/null@@ -1,79 +0,0 @@-#!/usr/bin/env bash-#-# Personal Jarvis — one-command install (Linux / macOS).-#-# git clone https://github.com/PersonalJarvis/PersonalJarvis-# cd PersonalJarvis-# ./install.sh-#-# Creates an isolated virtual environment and installs the cloud-first BASE:-# no GPU, no local models, no desktop/audio drivers required — it boots on a-# fresh machine (proven on python:3.11-slim). Desktop voice, local Whisper and-# the Orb overlay are opt-in extras you can add later with:-#-# ./install.sh --desktop-#-# After install, start it with: . .venv/bin/activate && jarvis-# Headless browser UI (no desktop needed): jarvis --headless-#-# Requires Python 3.11, 3.12 or 3.13.-set -euo pipefail--REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"-cd "$REPO_DIR"--EXTRAS=""-for arg in "$@"; do- case "$arg" in- --desktop) EXTRAS=".[desktop]" ;;- --dev) EXTRAS=".[dev]" ;;- *) echo "Unknown option: $arg (use --desktop or --dev)" >&2; exit 2 ;;- esac-done--# --- 1. Python 3.11+ ----------------------------------------------------------PY="${PYTHON:-python3}"-if ! command -v "$PY" >/dev/null 2>&1; then- echo "✗ Python 3.11+ is required but '$PY' was not found on PATH." >&2- echo " Install Python 3.11–3.13, then re-run ./install.sh" >&2- exit 1-fi-ver="$("$PY" -c 'import sys; print("%d.%d" % sys.version_info[:2])')"-case "$ver" in- 3.11|3.12|3.13) ;;- *) echo "✗ Python 3.11–3.13 required (found $ver). Set PYTHON=/path/to/python3.11 and re-run." >&2; exit 1 ;;-esac-echo "→ Using Python $ver ($("$PY" -c 'import sys; print(sys.executable)'))"--# --- 2. isolated virtual environment -----------------------------------------if [ ! -d .venv ]; then- echo "→ Creating virtual environment (.venv)…"- "$PY" -m venv .venv-fi-# shellcheck disable=SC1091-. .venv/bin/activate-python -m pip install --quiet --upgrade pip--# --- 3. install Personal Jarvis ----------------------------------------------if [ -n "$EXTRAS" ]; then- echo "→ Installing Personal Jarvis with extras ($EXTRAS)…"- pip install --quiet "$EXTRAS"-else- echo "→ Installing Personal Jarvis (cloud-first base — no GPU/desktop needed)…"- pip install --quiet .-fi--# --- 4. done ------------------------------------------------------------------cat <<'DONE'--✓ Personal Jarvis is installed.-- Start it:- . .venv/bin/activate && jarvis-- No desktop? Use the browser UI (headless server):- jarvis --headless--The first run walks you through ONE AI-provider key. Without a key it starts in-a zero-config demo mode (mock brain) so you see it running immediately.-DONEdiff --git a/scripts/jarvisbar_live_probe.py b/scripts/jarvisbar_live_probe.pyindex 716cbe7e68..1caa83010d 100644--- a/scripts/jarvisbar_live_probe.py+++ b/scripts/jarvisbar_live_probe.py@@ -11,6 +11,12 @@ import sysimport timefrom pathlib import Path+if sys.platform != "win32":+ sys.exit(+ "jarvisbar_live_probe.py drives Windows-only APIs (ctypes.windll / "+ "layered-window capture); run it on Windows."+ )+# Per-monitor DPI awareness BEFORE Tk boots, so the window coordinates Tk# reports match the physical pixels ImageGrab captures (display scaling).ctypes.windll.shcore.SetProcessDpiAwareness(2)diff --git a/scripts/smoke_poav_5terminals.py b/scripts/smoke_poav_5terminals.pyindex c03369a8ca..a39780d7f1 100644--- a/scripts/smoke_poav_5terminals.py+++ b/scripts/smoke_poav_5terminals.py@@ -30,6 +30,12 @@ try:except Exception:pass+if sys.platform != "win32":+ sys.exit(+ "smoke_poav_5terminals.py drives Windows-only APIs (win32gui / "+ "Windows Terminal); run it on Windows."+ )+import argparseimport asyncioimport timediff --git a/tests/unit/scripts/test_windows_only_script_guards.py b/tests/unit/scripts/test_windows_only_script_guards.pynew file mode 100644index 0000000000..d33bfbb5e8--- /dev/null+++ b/tests/unit/scripts/test_windows_only_script_guards.py@@ -0,0 +1,65 @@+"""Windows-only dev scripts must refuse to run on other platforms.++Both scripts drive raw Win32 surfaces (win32gui window enumeration,+ctypes.windll layered-window capture) that do not exist off Windows.+The guard has to sit ABOVE the heavy/Windows-only imports so that on+macOS/Linux the script exits with a one-line message instead of an+ImportError traceback (and without importing PIL / pywin32 at all).+"""++from __future__ import annotations++import subprocess+import sys+from pathlib import Path++import pytest++REPO_ROOT = Path(__file__).resolve().parents[3]++# (script path, first Windows-only token the guard must precede)+SCRIPTS = [+ (REPO_ROOT / "scripts" / "smoke_poav_5terminals.py", "import win32"),+ (REPO_ROOT / "scripts" / "jarvisbar_live_probe.py", "ctypes.windll"),+]++GUARD_LINE = 'if sys.platform != "win32":'+++ sys.platform == "win32",+ reason="the guard only fires off Windows",+)+ "script", [s for s, _ in SCRIPTS], ids=lambda p: p.name+)+def test_script_exits_with_guard_message_off_windows(script: Path) -> None:+ result = subprocess.run(+ [sys.executable, str(script)],+ capture_output=True,+ text=True,+ timeout=60,+ )+ assert result.returncode == 1+ assert "run it on Windows" in result.stderr+++ ("script", "windows_token"), SCRIPTS, ids=lambda v: getattr(v, "name", v)+)+def test_guard_sits_above_the_first_windows_only_import(+ script: Path, windows_token: str+) -> None:+ """Textual contract: the platform guard must never drift below the+ Windows-only imports/calls, or off-Windows runs crash with an+ ImportError/AttributeError instead of the honest exit message."""+ source = script.read_text(encoding="utf-8")+ assert GUARD_LINE in source, f"{script.name} lost its platform guard"+ assert windows_token in source, (+ f"{script.name} no longer contains {windows_token!r}; "+ "update this contract test alongside the script"+ )+ assert source.index(GUARD_LINE) < source.index(windows_token), (+ f"{script.name}: the platform guard must come before "+ f"{windows_token!r}"+ )