mirror of
https://github.com/vegu-ai/talemate.git
synced 2026-02-24 12:40:04 +01:00
Major features: - Autonomous scene direction via director agent (replaces auto-direct) - Inline image display in scene feed - Character visuals tab for portrait/cover image management - Character message avatars with dynamic portrait selection - Pocket TTS and llama.cpp client support - Message appearance overhaul with configurable markdown display Improvements: - KoboldCpp: adaptive-p, min-p, presence/frequency penalty support - Setup wizard for initial configuration - Director chat action toggles - Visual agent: resolution presets, prompt revision, auto-analysis - Experimental concurrent requests for hosted LLM clients - Node editor alignment shortcuts (X/Y) and color picker Bugfixes: - Empty response retry loop - Client system prompt display - Character detail pins loading - ComfyUI workflow charset encoding - Various layout and state issues Breaking: Removed INSTRUCTOR embeddings
39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
#
|
|
# Talemate Docker Entrypoint
|
|
#
|
|
# Replaces environment variable placeholders in the frontend bundle
|
|
# at container startup, enabling runtime configuration.
|
|
#
|
|
# Environment Variables:
|
|
# VITE_TALEMATE_BACKEND_WEBSOCKET_URL - WebSocket URL for backend connection
|
|
# Leave empty/unset for auto-detection
|
|
#
|
|
|
|
TEMPLATE_FILE="/app/talemate_frontend/dist/index.template.html"
|
|
OUTPUT_FILE="/app/talemate_frontend/dist/index.html"
|
|
|
|
echo "============================================"
|
|
echo "Talemate Docker Entrypoint"
|
|
echo "============================================"
|
|
|
|
if [ -f "$TEMPLATE_FILE" ]; then
|
|
echo "Substituting environment variables..."
|
|
echo " VITE_TALEMATE_BACKEND_WEBSOCKET_URL: ${VITE_TALEMATE_BACKEND_WEBSOCKET_URL:-<not set, will auto-detect>}"
|
|
|
|
# Use envsubst to replace ${VAR} placeholders with actual values
|
|
envsubst < "$TEMPLATE_FILE" > "$OUTPUT_FILE"
|
|
|
|
echo "Runtime config applied to index.html"
|
|
else
|
|
echo "Warning: Template file not found, skipping envsubst"
|
|
fi
|
|
|
|
echo "Starting Talemate..."
|
|
echo "============================================"
|
|
|
|
# Execute the main command
|
|
exec "$@"
|