sync: auto-sync from GURU-5070 at 2026-06-04 07:59:53
Author: Mike Swanson Machine: GURU-5070 Timestamp: 2026-06-04 07:59:53
This commit is contained in:
@@ -75,6 +75,27 @@ else
|
||||
echo " Prose model: qwen3:14b (default)"
|
||||
fi
|
||||
|
||||
# Detect Grok CLI (xAI) — optional capability extension (image/video, live web+X
|
||||
# data, independent second model). Per-machine; sets identity grok.installed so
|
||||
# the /grok skill knows whether it can run locally. Does NOT set is_fleet_host
|
||||
# (that's a manual fleet-coordination choice, preserved if already present).
|
||||
GROK_BIN=""
|
||||
if command -v grok >/dev/null 2>&1; then
|
||||
GROK_BIN="$(command -v grok)"
|
||||
else
|
||||
for c in "$HOME/.grok/bin/grok.exe" "$HOME/.grok/bin/grok" "${LOCALAPPDATA:-}/Programs/grok/grok.exe"; do
|
||||
if [ -x "$c" ]; then GROK_BIN="$c"; break; fi
|
||||
done
|
||||
fi
|
||||
if [ -n "$GROK_BIN" ]; then
|
||||
GROK_BIN="$(cygpath -m "$GROK_BIN" 2>/dev/null || echo "$GROK_BIN")"
|
||||
GROK_INSTALLED="true"
|
||||
echo " Grok: installed ($GROK_BIN)"
|
||||
else
|
||||
GROK_INSTALLED="false"
|
||||
echo " Grok: not installed"
|
||||
fi
|
||||
|
||||
# Build updated identity.json
|
||||
echo ""
|
||||
echo "[INFO] Updating identity.json..."
|
||||
@@ -104,6 +125,17 @@ if 'platform' not in data:
|
||||
if 'architecture' not in data:
|
||||
data['architecture'] = '$ARCH'
|
||||
|
||||
# Grok capability flag (per-machine). Preserve manual keys like is_fleet_host.
|
||||
g = data.get('grok') or {}
|
||||
if '$GROK_INSTALLED' == 'true':
|
||||
g['installed'] = True
|
||||
g['binary'] = r'$GROK_BIN'
|
||||
g.setdefault('auth', 'oidc')
|
||||
g.setdefault('capabilities', ['text', 'verify', 'image', 'video', 'xsearch'])
|
||||
else:
|
||||
g['installed'] = False
|
||||
data['grok'] = g
|
||||
|
||||
# Coord API endpoint — populate only if absent so existing machines keep their override.
|
||||
if 'coord_api' not in data:
|
||||
data['coord_api'] = '$COORD_API_DEFAULT'
|
||||
@@ -125,6 +157,7 @@ echo " ollama.fallback: $OLLAMA_FALLBACK"
|
||||
echo " ollama.prose_model: $PROSE_MODEL"
|
||||
echo " platform: $PLATFORM"
|
||||
echo " architecture: $ARCH"
|
||||
echo " grok.installed: $GROK_INSTALLED"
|
||||
echo " coord_api: (default $COORD_API_DEFAULT if not already set)"
|
||||
echo ""
|
||||
echo "Review: cat $IDENTITY_PATH"
|
||||
|
||||
Reference in New Issue
Block a user