Files
NomadArch/Launch-Unix-Prod.sh
Gemini AI 4bd2893864 v0.5.0: Binary-Free Mode - No OpenCode binary required
 Major Features:
- Native session management without OpenCode binary
- Provider routing: OpenCode Zen (free), Qwen OAuth, Z.AI
- Streaming chat with tool execution loop
- Mode detection API (/api/meta/mode)
- MCP integration fix (resolved infinite loading)
- NomadArch Native option in UI with comparison info

🆓 Free Models (No API Key):
- GPT-5 Nano (400K context)
- Grok Code Fast 1 (256K context)
- GLM-4.7 (205K context)
- Doubao Seed Code (256K context)
- Big Pickle (200K context)

📦 New Files:
- session-store.ts: Native session persistence
- native-sessions.ts: REST API for sessions
- lite-mode.ts: UI mode detection client
- native-sessions.ts (UI): SolidJS store

🔧 Updated:
- All installers: Optional binary download
- All launchers: Mode detection display
- Binary selector: Added NomadArch Native option
- README: Binary-Free Mode documentation
2025-12-26 02:12:42 +04:00

63 lines
1.3 KiB
Bash

#!/bin/bash
# NomadArch Production Launcher for macOS and Linux
# Version: 0.4.0
set -euo pipefail
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo ""
echo "NomadArch Launcher (macOS/Linux, Production Mode)"
echo "Version: 0.4.0"
echo "Features: SMART FIX / APEX / SHIELD / MULTIX MODE"
echo ""
echo "[STEP 1/3] Checking Dependencies..."
if ! command -v node &> /dev/null; then
echo -e "${RED}[ERROR]${NC} Node.js not found!"
echo "Please run the installer first:"
if [[ "$OSTYPE" == "darwin"* ]]; then
echo " ./Install-Mac.sh"
else
echo " ./Install-Linux.sh"
fi
exit 1
fi
NODE_VERSION=$(node --version)
echo -e "${GREEN}[OK]${NC} Node.js: $NODE_VERSION"
echo ""
echo "[STEP 2/3] Checking Pre-Built UI..."
if [[ -d "packages/electron-app/dist/renderer/assets" ]]; then
echo -e "${GREEN}[OK]${NC} Pre-built UI assets found"
else
echo -e "${RED}[ERROR]${NC} Pre-built UI assets not found."
echo "Run: npm run build"
exit 1
fi
echo ""
echo "[STEP 3/3] Starting NomadArch (Production Mode)..."
cd packages/electron-app
npx electron .
EXIT_CODE=$?
if [[ $EXIT_CODE -ne 0 ]]; then
echo ""
echo -e "${RED}[ERROR]${NC} NomadArch exited with an error!"
fi
exit $EXIT_CODE