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
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
#!/bin/bash
|
|
|
|
# create a virtual environment with uv
|
|
echo "Creating a virtual environment with uv..."
|
|
uv venv
|
|
|
|
# activate the virtual environment
|
|
echo "Activating the virtual environment..."
|
|
source .venv/bin/activate
|
|
|
|
# install dependencies with uv
|
|
echo "Installing dependencies..."
|
|
uv pip install -e ".[dev]"
|
|
|
|
# copy config.example.yaml to config.yaml only if config.yaml doesn't exist
|
|
if [ ! -f config.yaml ]; then
|
|
echo "Copying config.example.yaml to config.yaml..."
|
|
cp config.example.yaml config.yaml
|
|
fi
|
|
|
|
# provision a portable Node.js runtime (pnpm 11 needs Node >= 22.13)
|
|
echo "Setting up the Node.js runtime..."
|
|
source install-utils/node-env.sh
|
|
if ! install_embedded_node; then
|
|
echo "ERROR: could not provision Node.js. Aborting installation."
|
|
return 1 2>/dev/null || exit 1
|
|
fi
|
|
|
|
# navigate to the frontend directory
|
|
echo "Updating the frontend..."
|
|
cd talemate_frontend
|
|
|
|
# pnpm is provisioned on demand via corepack (bundled with Node.js); the
|
|
# version is pinned by the "packageManager" field in package.json.
|
|
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|
corepack pnpm install --frozen-lockfile
|
|
|
|
# build the frontend
|
|
echo "Building the frontend..."
|
|
corepack pnpm build
|
|
|
|
# return to the root directory
|
|
cd ..
|
|
|
|
echo "Installation completed successfully."
|
|
read -p "Press [Enter] key to continue..."
|