Files
html/api/handlers/nativemind-browser-check.sh
opus fe0a98a999
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
auto-sync via WEVIA git_sync_all intent 2026-04-20T01:49:51+02:00
2026-04-20 01:49:51 +02:00

30 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
# Opus v5.9: NativeMind-inspired browser AI check (IMG_5038 Md Ismail Sojal)
# NativeMind = Chrome/Firefox extension + Ollama for local LLM in browser
OLLAMA_UP=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:11434/ --max-time 3 2>/dev/null || echo 000)
OLLAMA_MODELS=$(curl -s http://localhost:11434/api/tags --max-time 3 2>/dev/null | python3 -c 'import json,sys; d=json.loads(sys.stdin.read()); print([m["name"] for m in d.get("models",[])])' 2>/dev/null || echo "[]")
# Check if our wevia-master chat plays similar role
WEVIA_CHAT=$(curl -s -o /dev/null -w "%{http_code}" https://127.0.0.1/wevia-master.html -k -H "Host: weval-consulting.com" --max-time 3 2>/dev/null || echo 000)
cat <<EOF
{
"ok": true,
"v": "V5.9-nativemind-browser-ai-opus-20avr",
"ts": "$(date -Iseconds)",
"inspired_by": "NativeMind Chrome/Firefox local AI extension via Ollama (IMG_5038)",
"stack_already_available": {
"ollama_local_port_11434": "$OLLAMA_UP",
"ollama_models": $OLLAMA_MODELS,
"wevia_master_chat_browser": "$WEVIA_CHAT (already a browser AI at weval-consulting.com/wevia-master.html)"
},
"duplicate_check": "WEVIA Master chat + Ollama local = functional equivalent already running",
"additional_value_if_installed": [
"Browser-native context (current page scraping)",
"Per-site memory",
"Offline mode when WEVIA API unreachable"
],
"integration_priority": "P4 - duplicate with WEVIA Master chat 95%",
"recommendation": "Skip unless specific browser-context features needed (e.g. auto-summarize pages on LinkedIn/Twitter)"
}
EOF