mirror of
https://github.com/vegu-ai/talemate.git
synced 2026-07-10 12:28:50 +02:00
- **Per-Scene Agent Overrides** — Override agent configuration for a single scene without touching your global config. - **Message Revision History** — Browse and continue from previous regenerations / revisions. - **Scene Perspective Overrides** — Set distinct narrative perspectives for the player, NPCs, and narrator. - **Durable World State Snapshot** — The world state snapshot now persists and updates entities across refreshes. - **World State Highlights** — Characters, objects and places marked by the current world state snapshot are now clickable in the recent message(s) for additional detail. Plus 30 improvements and 17 bug fixes
81 lines
2.2 KiB
Batchfile
81 lines
2.2 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 frontend packages
|
|
REM pnpm is provisioned on demand via corepack (bundled with Node.js); the
|
|
REM version is pinned by the "packageManager" field in package.json.
|
|
SET "COREPACK_ENABLE_DOWNLOAD_PROMPT=0"
|
|
echo Updating frontend packages...
|
|
cd talemate_frontend
|
|
call corepack pnpm install --frozen-lockfile || CALL :die "pnpm install failed."
|
|
|
|
echo Frontend packages updated
|
|
|
|
REM build the frontend
|
|
echo Building frontend...
|
|
call corepack pnpm build
|
|
IF ERRORLEVEL 1 (
|
|
echo.
|
|
echo Frontend build failed - retrying with a clean node_modules...
|
|
echo.
|
|
rmdir /s /q node_modules 2>nul
|
|
call corepack pnpm install --frozen-lockfile || CALL :die "pnpm install failed on retry."
|
|
call corepack pnpm build || CALL :die "Frontend build failed on retry."
|
|
)
|
|
|
|
cd ..
|
|
echo Update complete - You may close this window now.
|
|
pause |