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
This commit is contained in:
Gemini AI
2025-12-26 02:08:13 +04:00
Unverified
parent 8dddf4d0cf
commit 4bd2893864
83 changed files with 10678 additions and 1290 deletions

View File

@@ -6,7 +6,7 @@ color 0A
echo.
echo NomadArch Launcher (Windows)
echo Version: 0.4.0
echo Version: 0.5.0 - Binary-Free Mode
echo.
set SCRIPT_DIR=%~dp0
@@ -16,6 +16,7 @@ cd /d "%SCRIPT_DIR%"
set ERRORS=0
set WARNINGS=0
set AUTO_FIXED=0
set BINARY_FREE_MODE=0
echo [PREFLIGHT 1/7] Checking Dependencies...
@@ -42,18 +43,18 @@ for /f "tokens=*" %%i in ('npm --version') do set NPM_VERSION=%%i
echo [OK] npm: %NPM_VERSION%
echo.
echo [PREFLIGHT 2/7] Checking for OpenCode CLI...
echo [PREFLIGHT 2/7] Checking OpenCode CLI (Optional)...
where opencode >nul 2>&1
if %ERRORLEVEL% equ 0 (
echo [OK] OpenCode CLI available in PATH
echo [OK] OpenCode CLI available in PATH - Full Mode
) else (
if exist "bin\opencode.exe" (
echo [OK] OpenCode binary found in bin/
echo [OK] OpenCode binary found in bin/ - Full Mode
) else (
echo [WARN] OpenCode CLI not found
echo [INFO] Run Install-Windows.bat to set up OpenCode
set /a WARNINGS+=1
echo [INFO] OpenCode CLI not found - Using Binary-Free Mode
echo [INFO] Free models (GPT-5 Nano, Grok Code, GLM-4.7) available via OpenCode Zen
set BINARY_FREE_MODE=1
)
)
@@ -139,6 +140,12 @@ echo [STATUS]
echo.
echo Node.js: %NODE_VERSION%
echo npm: %NPM_VERSION%
if %BINARY_FREE_MODE% equ 1 (
echo Mode: Binary-Free Mode ^(No OpenCode binary required^)
echo Free Models: GPT-5 Nano, Grok Code, GLM-4.7, Doubao, Big Pickle
) else (
echo Mode: Full Mode ^(OpenCode binary available^)
)
echo Auto-fixes applied: !AUTO_FIXED!
echo Warnings: %WARNINGS%
echo Errors: %ERRORS%
@@ -181,6 +188,7 @@ echo ========================================
set "VITE_DEV_SERVER_URL=http://localhost:!UI_PORT!"
set "NOMADARCH_OPEN_DEVTOOLS=false"
set "NOMADARCH_BINARY_FREE_MODE=%BINARY_FREE_MODE%"
call npm run dev:electron
if %ERRORLEVEL% neq 0 (