#!/bin/bash

# Set the PORT and HOSTNAME for web server
AIDEV_WEB_PORT=${AIDEV_WEB_PORT:-3001}
export AIDEV_WEB_PORT
HOSTNAME=0.0.0.0
export HOSTNAME

# Set the AIDEV_HOST_PROXY for the web container
AIDEV_HOST_PROXY=${AIDEV_HOST_PROXY:-http://host.docker.internal:8888}
export AIDEV_HOST_PROXY

echo "=== Installing AI Development Tools ==="
npm install -g @jjdenhertog/ai-driven-development

# Start learning iteration
echo "=== Starting Web interface ==="
aidev web