Implements the foundation for autonomous Nexus expansion: - NexusArchitect tool with 6 operations (design_room, create_portal, add_lighting, validate_scene, export_scene, get_summary) - Security-first validation with banned pattern detection - LLM prompt generators for Three.js code generation - 48 comprehensive tests (100% pass) - Complete documentation with API reference Addresses: hermes-agent#42 (Phase 31) Related: Burn Report #6
59 lines
1.8 KiB
Bash
Executable File
59 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# Deploy Kimi-primary config to Ezra
|
|
# Run this from Ezra's VPS or via SSH
|
|
|
|
set -e
|
|
|
|
EZRA_HOST="${EZRA_HOST:-143.198.27.163}"
|
|
EZRA_HERMES_HOME="/root/wizards/ezra/hermes-agent"
|
|
CONFIG_SOURCE="$(dirname "$0")/ezra-kimi-primary.yaml"
|
|
|
|
# Colors
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
RED='\033[0;31m'
|
|
NC='\033[0m'
|
|
|
|
echo -e "${GREEN}[DEPLOY]${NC} Ezra Kimi-Primary Configuration"
|
|
echo "================================================"
|
|
echo ""
|
|
|
|
# Check prerequisites
|
|
if [ ! -f "$CONFIG_SOURCE" ]; then
|
|
echo -e "${RED}[ERROR]${NC} Config not found: $CONFIG_SOURCE"
|
|
exit 1
|
|
fi
|
|
|
|
# Show what we're deploying
|
|
echo "Configuration to deploy:"
|
|
echo "------------------------"
|
|
grep -v "^#" "$CONFIG_SOURCE" | grep -v "^$" | head -20
|
|
echo ""
|
|
|
|
# Deploy to Ezra
|
|
echo -e "${GREEN}[DEPLOY]${NC} Copying config to Ezra..."
|
|
|
|
# Backup existing
|
|
ssh root@$EZRA_HOST "cp $EZRA_HERMES_HOME/config.yaml $EZRA_HERMES_HOME/config.yaml.backup.anthropic-$(date +%s) 2>/dev/null || true"
|
|
|
|
# Copy new config
|
|
scp "$CONFIG_SOURCE" root@$EZRA_HOST:$EZRA_HERMES_HOME/config.yaml
|
|
|
|
# Verify KIMI_API_KEY exists
|
|
echo -e "${GREEN}[VERIFY]${NC} Checking KIMI_API_KEY on Ezra..."
|
|
ssh root@$EZRA_HOST "grep -q KIMI_API_KEY $EZRA_HERMES_HOME/.env && echo 'KIMI_API_KEY found' || echo 'WARNING: KIMI_API_KEY not set'"
|
|
|
|
# Restart Ezra gateway
|
|
echo -e "${GREEN}[RESTART]${NC} Restarting Ezra gateway..."
|
|
ssh root@$EZRA_HOST "cd $EZRA_HERMES_HOME && pkill -f 'hermes gateway' 2>/dev/null || true"
|
|
sleep 2
|
|
ssh root@$EZRA_HOST "cd $EZRA_HERMES_HOME && nohup python -m gateway.run > logs/gateway.log 2>&1 &"
|
|
|
|
echo ""
|
|
echo -e "${GREEN}[SUCCESS]${NC} Ezra is now running Kimi primary!"
|
|
echo ""
|
|
echo "Anthropic: FIRED ✓"
|
|
echo "Kimi: PRIMARY ✓"
|
|
echo ""
|
|
echo "To verify: ssh root@$EZRA_HOST 'tail -f $EZRA_HERMES_HOME/logs/gateway.log'"
|