feat: JARVIS v3 Phase 1 — WebSocket relay vers Hermes A.L.E.X.A.
- Serveur WebSocket direct avec websockets 16.0 - Interface HTML/CSS/JS dark theme avec chat - Relay vers API Hermes sur port 8642 - Historique de conversation (20 messages) - Clé API via Infisical - Testé et fonctionnel sur openclaw1.dev.home:7081
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
# ~/workspace/jarvis-pipecat/start.sh
|
||||
# Lancement JARVIS v3 Pipecat
|
||||
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Récupération clé API Hermes depuis Infisical
|
||||
echo "🔐 Récupération clé API Hermes..."
|
||||
HERMES_API_KEY=$(
|
||||
./venv/bin/python3 -c "
|
||||
import json, subprocess
|
||||
creds = json.load(open('/opt/infisical/admin-credentials.json'))
|
||||
r = subprocess.run(
|
||||
['/home/openclaw/.local/bin/infisical', 'secrets', 'get', 'API_SERVER_KEY',
|
||||
'--domain', 'https://secret.dracodev.net',
|
||||
'--projectId', '192c1eed-6666-41ee-80df-a4636a2da0ad',
|
||||
'--env', 'prod', '--path', '/hermes-claw', '--plain'],
|
||||
env={'INFISICAL_TOKEN': creds['token'], 'PATH': '/usr/local/bin:/usr/bin:/bin'},
|
||||
capture_output=True, text=True, timeout=15,
|
||||
)
|
||||
print(r.stdout.strip())
|
||||
"
|
||||
)
|
||||
|
||||
if [ -z "$HERMES_API_KEY" ]; then
|
||||
echo "❌ Impossible de récupérer la clé API Hermes"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export HERMES_API_KEY
|
||||
export JARVIS_PIPECAT_PORT="${JARVIS_PIPECAT_PORT:-7081}"
|
||||
# Désactiver la vérification d'origine pour le PoC (client websockets n'envoie pas d'Origin)
|
||||
export PIPECAT_ALLOWED_ORIGINS="http://localhost:7081,http://0.0.0.0:7081"
|
||||
|
||||
echo "🔑 Clé: ${HERMES_API_KEY:0:15}..."
|
||||
echo "🚀 JARVIS v3 Pipecat → http://0.0.0.0:${JARVIS_PIPECAT_PORT}"
|
||||
exec ./venv/bin/python3 bot.py
|
||||
Reference in New Issue
Block a user