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:
@@ -66,14 +66,46 @@ SERVER_PORT=$DEFAULT_SERVER_PORT
|
||||
UI_PORT=$DEFAULT_UI_PORT
|
||||
|
||||
for port in {3001..3050}; do
|
||||
if ! lsof -i :$port -sTCP:LISTEN -t > /dev/null 2>&1; then
|
||||
# Try lsof first, then ss, then netstat
|
||||
if command -v lsof &> /dev/null; then
|
||||
if ! lsof -i :$port -sTCP:LISTEN -t > /dev/null 2>&1; then
|
||||
SERVER_PORT=$port
|
||||
break
|
||||
fi
|
||||
elif command -v ss &> /dev/null; then
|
||||
if ! ss -tuln | grep -q ":$port "; then
|
||||
SERVER_PORT=$port
|
||||
break
|
||||
fi
|
||||
elif command -v netstat &> /dev/null; then
|
||||
if ! netstat -tuln | grep -q ":$port "; then
|
||||
SERVER_PORT=$port
|
||||
break
|
||||
fi
|
||||
else
|
||||
SERVER_PORT=$port
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
for port in {3000..3050}; do
|
||||
if ! lsof -i :$port -sTCP:LISTEN -t > /dev/null 2>&1; then
|
||||
# Try lsof first, then ss, then netstat
|
||||
if command -v lsof &> /dev/null; then
|
||||
if ! lsof -i :$port -sTCP:LISTEN -t > /dev/null 2>&1; then
|
||||
UI_PORT=$port
|
||||
break
|
||||
fi
|
||||
elif command -v ss &> /dev/null; then
|
||||
if ! ss -tuln | grep -q ":$port "; then
|
||||
UI_PORT=$port
|
||||
break
|
||||
fi
|
||||
elif command -v netstat &> /dev/null; then
|
||||
if ! netstat -tuln | grep -q ":$port "; then
|
||||
UI_PORT=$port
|
||||
break
|
||||
fi
|
||||
else
|
||||
UI_PORT=$port
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user