Skip to content

v1.9.6

Latest

Choose a tag to compare

@jasona jasona released this 24 Feb 14:38
· 1 commit to main since this release

What's New

Pluggable Persistence Adapter

  • New PersistenceAdapter interface decouples storage from the filesystem
  • FilesystemAdapter (default) preserves all existing behavior with atomic writes and backups
  • SupabaseAdapter stores data in PostgreSQL with Supabase Storage for images
  • New data efuns: saveData, loadData, dataExists, deleteData, listDataKeys
  • All 11 daemons migrated from efuns.readFile/writeFile to the new data efuns
  • Configure via PERSISTENCE_ADAPTER=filesystem|supabase environment variable

Prompt Template System

  • Centralized, customizable prompt templates for all AI features
  • Templates support {{variable}} substitution and {{#if}} conditional blocks
  • New Prompts Daemon wraps the driver's PromptManager for mudlib access
  • New prompts admin command to list, view, edit, and reset templates
  • AI commands (aidescribe, airoom, ainpc, ailore) refactored to use prompts.render()

Configurable Game Theme

  • New game.theme config setting (default: "fantasy")
  • Automatically injected as {{gameTheme}} into all 22+ prompt templates
  • Change genre across all AI content with config game.theme cyberpunk

AI Worldbuilding (ailore command)

  • ailore bootstrap <name> [desc] — generates one lore entry per category (8 total) with progress streaming
  • ailore expand <category> [theme] — generates 2-4 entries in a specific category
  • ailore fullstory — weaves all lore into a long-form narrative saved as world:fullstory
  • lore clear subcommand to remove all lore entries with confirmation

Graceful Shutdown

  • SIGINT/SIGTERM now saves all active players before exiting
  • Configurable timeout via SHUTDOWN_TIMEOUT_MS (default 15s)

Documentation

  • Streamlined root README with feature highlights and link to full docs
  • New docs/README.md table of contents organizing all 65+ doc files
  • Updated commands.md, daemons.md, ai-integration.md, lore-system.md, deployment.md
  • New persistence-adapter.md with full adapter pattern documentation
  • Expanded environment variables reference in deployment guide

Full Changelog

v1.9.5...v1.9.6