Fix comprehensive system issues and implement proper vector database backend selection

- Fix reflection memory spam despite zero active characters in scheduler.py
- Add character enable/disable functionality to admin interface
- Fix Docker configuration with proper network setup and service dependencies
- Resolve admin interface JavaScript errors and login issues
- Fix MCP import paths for updated package structure
- Add comprehensive character management with audit logging
- Implement proper character state management and persistence
- Fix database connectivity and initialization issues
- Add missing audit service for admin operations
- Complete Docker stack integration with all required services

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
matt
2025-07-06 19:54:49 -07:00
parent 5480219901
commit 004f0325ec
37 changed files with 6037 additions and 185 deletions

View File

@@ -49,7 +49,7 @@ services:
profiles:
- chromadb
# Qdrant for vector storage (alternative to ChromaDB)
# Qdrant for vector storage (default vector database)
qdrant:
image: qdrant/qdrant:latest
ports:
@@ -64,28 +64,27 @@ services:
restart: unless-stopped
networks:
- fishbowl-network
profiles:
- qdrant
fishbowl:
build: .
network_mode: host
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_started
environment:
# Database configuration
DATABASE_URL: postgresql+asyncpg://postgres:${DB_PASSWORD:-fishbowl_password}@localhost:15432/discord_fishbowl
DB_HOST: localhost
DB_PORT: 15432
DATABASE_URL: postgresql+asyncpg://postgres:${DB_PASSWORD:-fishbowl_password}@postgres:5432/discord_fishbowl
DB_HOST: postgres
DB_PORT: 5432
DB_PASSWORD: ${DB_PASSWORD:-fishbowl_password}
DB_NAME: discord_fishbowl
DB_USER: postgres
# Redis configuration
REDIS_HOST: localhost
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis_password}
@@ -94,9 +93,14 @@ services:
DISCORD_GUILD_ID: "${DISCORD_GUILD_ID}"
DISCORD_CHANNEL_ID: "${DISCORD_CHANNEL_ID}"
# LLM configuration
LLM_BASE_URL: ${LLM_BASE_URL:-http://host.docker.internal:11434}
LLM_MODEL: ${LLM_MODEL:-llama2}
# LLM configuration (external service, use host IP)
LLM_BASE_URL: ${LLM_BASE_URL:-http://192.168.1.200:5005/v1}
LLM_MODEL: ${LLM_MODEL:-koboldcpp/Broken-Tutu-24B-Transgression-v2.0.i1-Q4_K_M}
# Vector database configuration
VECTOR_DB_TYPE: ${VECTOR_DB_TYPE:-qdrant}
QDRANT_HOST: qdrant
QDRANT_PORT: 6333
# Application configuration
LOG_LEVEL: ${LOG_LEVEL:-INFO}
@@ -104,7 +108,10 @@ services:
volumes:
- ./logs:/app/logs
- ./config:/app/config
- ./data:/app/data
restart: unless-stopped
networks:
- fishbowl-network
fishbowl-admin:
build:
@@ -133,25 +140,23 @@ services:
DISCORD_CHANNEL_ID: "${DISCORD_CHANNEL_ID}"
# LLM configuration
LLM_BASE_URL: ${LLM_BASE_URL:-http://host.docker.internal:11434}
LLM_MODEL: ${LLM_MODEL:-llama2}
LLM_BASE_URL: ${LLM_BASE_URL:-http://192.168.1.200:5005/v1}
LLM_MODEL: ${LLM_MODEL:-koboldcpp/Broken-Tutu-24B-Transgression-v2.0.i1-Q4_K_M}
# Admin interface configuration
ADMIN_HOST: 0.0.0.0
ADMIN_PORT: ${ADMIN_PORT:-8000}
SECRET_KEY: ${SECRET_KEY:-your-secret-key-here}
ADMIN_USERNAME: ${ADMIN_USERNAME:-admin}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-admin123}
ADMIN_PORT: ${ADMIN_PORT}
SECRET_KEY: ${SECRET_KEY}
ADMIN_USERNAME: ${ADMIN_USERNAME}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ports:
- "${ADMIN_PORT:-8000}:${ADMIN_PORT:-8000}"
- "${ADMIN_PORT}:${ADMIN_PORT}"
volumes:
- ./logs:/app/logs
- ./config:/app/config
restart: unless-stopped
networks:
- fishbowl-network
profiles:
- admin
volumes:
postgres_data: