mirror of
https://github.com/vegu-ai/talemate.git
synced 2026-07-10 04:19:00 +02:00
Major Features - API key encryption at rest using Fernet (OS keyring with file fallback) - Prompt Manager: unified UI with template groups, priority ordering, override tracking, response extractors - Scene context history review panel with token budgets and best-fit mode - Multiple concurrent director chats with auto-generated titles - Granular scene state reset dialog - Time passage insert/edit/delete in scene view - Image analysis via OpenAI-compatible and Talemate Client backends - Volatile context placement after scene history for improved prompt caching Improvements - Configurable narrator generation length per narration type - AI Aware conversation mode - Summarizer: custom instructions, writing style inclusion, short line filtering - Anthropic: adaptive thinking support, updated model list (opus-4-5/4-6, haiku-4-5) - Google: gemini-3.1 support - World editor: generate from topic, quick create state reinforcement, reorganized menus - Node editor: promote scene modules to global - Frontend: version mismatch detection, hideable bracket content, required scene name - TTS: improved pause handling, audio tag support for vocal markers (ElevenLabs v3) - Writing style template for AI-generated instructions - Added Kimi.jinja2 LLM prompt template - Option to disable character names in stopping strings - Client response length enforcement options - Graduated token count sliders - Increased summarizer token threshold max Bugfixes - Fix bracket/paren/brace terminators stripped from message ends - Fix colon in conversation causing content loss - Fix "Use as reference" navigating to blank page - Fix avatar regeneration and manual regenerate - Fix conversation agent ignoring generation length - Fix duplicate length instructions with reasoning enabled - Fix trailing newline on message edits - Fix summarize dialogue sending too much context with layered history - Fix layered history inspection and construction issues - Fix empty response handling in summarization - Fix context ID dot notation with dotted character names - Fix recursive retry in focal agent - Fix leading whitespace causing duplicate prepared responses - Fix summarization not stripping ANALYSIS OF lines - Fix template group selection/removal in prompt manager - Fix multiline text in parentheses/brackets parser - Fix determine_character_name resolution - Fix character activate/deactivate desyncing creative menu - Fix character image generation missing context - Fix LMStudio client not sending token limits - Fix Recent Scene images on newer Chromium - Fix sequential reinforcement messages cut off at first linebreak - Fix reinforcement removal not clearing state - Fixes #252, #256, #258 Deprecations - Removed context investigations (replaced by AI-assisted RAG mixin) - Removed deprecated prompt templates (fix-continuity-errors, fix-exposition, etc.) - Removed conversation/edit.jinja2, auto break repetition, CLI reset layered history --------- Co-authored-by: theDTV2 <47825738+theDTV2@users.noreply.github.com>
80 lines
2.1 KiB
Batchfile
80 lines
2.1 KiB
Batchfile
:0
|
|
@echo off
|
|
|
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
|
|
|
REM Define fatal-error handler (copied from install.bat)
|
|
REM Usage: CALL :die "Message explaining what failed"
|
|
goto :after_die
|
|
|
|
:die
|
|
echo.
|
|
echo ============================================================
|
|
echo !!! UPDATE FAILED !!!
|
|
echo %*
|
|
echo ============================================================
|
|
pause
|
|
exit 1
|
|
|
|
:after_die
|
|
|
|
echo Checking git repository...
|
|
REM check if git repository is initialized and initialize if not
|
|
if not exist .git (
|
|
git init
|
|
git remote add origin https://github.com/vegu-ai/talemate
|
|
)
|
|
|
|
REM pull the latest changes from git repository
|
|
git pull
|
|
|
|
REM Check if .venv exists
|
|
IF NOT EXIST ".venv" (
|
|
CALL :die ".venv directory not found. Please run install.bat first."
|
|
)
|
|
|
|
REM Check if embedded Python exists
|
|
IF NOT EXIST "embedded_python\python.exe" (
|
|
CALL :die "embedded_python not found. Please run install.bat first."
|
|
)
|
|
|
|
REM ---------[ Use embedded Node.js ]---------
|
|
SET "NODE_DIR=embedded_node"
|
|
IF NOT EXIST "%NODE_DIR%\node.exe" (
|
|
CALL :die "Embedded Node.js not found (expected at %CD%\%NODE_DIR%). Please run install.bat first."
|
|
)
|
|
|
|
REM Prepend embedded Node.js to PATH
|
|
SET "PATH=%CD%\%NODE_DIR%;%PATH%"
|
|
ECHO Using embedded Node.js at %CD%\%NODE_DIR%\node.exe
|
|
|
|
REM install dependencies with uv
|
|
echo Updating virtual environment...
|
|
embedded_python\python.exe -m uv sync || CALL :die "uv dependency sync failed."
|
|
|
|
echo Virtual environment updated!
|
|
|
|
REM updating npm packages
|
|
echo Updating npm packages...
|
|
cd talemate_frontend
|
|
call npm install || CALL :die "npm install failed."
|
|
|
|
echo NPM packages updated
|
|
|
|
REM build the frontend
|
|
echo Building frontend...
|
|
call npm run build
|
|
IF ERRORLEVEL 1 (
|
|
echo.
|
|
echo Frontend build failed - retrying with clean node_modules...
|
|
echo This can happen due to a known npm bug with optional dependencies.
|
|
echo.
|
|
rmdir /s /q node_modules 2>nul
|
|
del package-lock.json 2>nul
|
|
call npm install || CALL :die "npm install failed on retry."
|
|
call npm run build || CALL :die "Frontend build failed on retry."
|
|
)
|
|
|
|
cd ..
|
|
echo Update complete - You may close this window now.
|
|
pause |