Skip to content

Changelog

github-actions[bot] edited this page Jun 29, 2026 · 326 revisions

๐Ÿ“ Changelog

All notable changes to Formamorph. This fork's first line is 2.0.0 โ€” a full TypeScript rebuild of the upstream JavaScript app (FieryLionite's Formamorph, ~v1.2) โ€” with feature parity as the baseline plus new features on top.

๐Ÿšง 2.0.0 is in development and not yet released. Entries accumulate here as work lands. When the version number is bumped, that marks 2.0.0 going live; until then this is a living list.

Each release groups changes as Major / Minor, then Added / Removed / Fixed, and within those by audience: ๐Ÿ‘ค user-facing ยท ๐Ÿ› ๏ธ developer tooling ยท โš™๏ธ backend / invisible.


๐Ÿšง 2.0.0 โ€” In development

Everything below is relative to the point this fork diverged from upstream.

Major Changes

โž• Added

  • ๐Ÿ‘ค User-facing
    • Standalone Windows app โ€” run Formamorph as a desktop .exe (Electron) with no browser needed. It bundles its own engine, so WebGPU TTS, 3D rendering, and saved-world storage all work the same as in-browser.
    • Custom 3D avatars โ€” bring your own .vrm, or set a per-world custom player model.
    • In-app media player โ€” a fully themed audio widget for TTS narration, with auto-generated TTS when the model is loaded and a one-click unload of the TTS model to free VRAM.
    • Redesigned world browser ("Discover") โ€” card-grid layout, tag & author chip search/filtering, and world-preview image zoom.
    • AI output controls โ€” automatic paragraph limits and length-based truncation, an optional "thinking / planning" step before the reply, and a smoothed character-by-character reveal of streamed text.
    • Re-generate & rollback โ€” page back through the turn history to re-generate the latest AI response, or roll back to an earlier turn (discarding the turns after it). The per-turn AI-context viewer flags the regenerated and rolled-back turns.
    • Markdown narration โ€” the AI can format story text with bold/italic, bullet & numbered lists, tables (e.g. inventory), headings, blockquotes, and code; it renders live as the text streams in.
    • Token-based Context Window, auto-detected from your endpoint (LM Studio, OpenRouter, โ€ฆ) with a Detect button and manual override โ€” conversation history now fills the model's real context instead of a fixed character cap, and an over-limit warning flags a value set above the detected maximum.
    • Portrait / mobile layout โ€” a single-panel responsive mode alongside the three-panel desktop view.
    • Lore Dictionary โ€” a keyword-triggered world-info editor; matching keywords inject lore into the AI prompt.
    • Full per-turn AI context viewer โ€” see exactly what's sent to the AI on each turn, plus the raw response before sanitation โ€” useful both for debugging and for authoring/tuning worlds. Each request is its own collapsible section with the prompt and raw output nested inside, and Collapse/Expand all folds every level at once.
    • Stat-driven body sliders โ€” in the world editor, bind any stat to one or more of the model's body morph sliders; the stat's value (minโ†’max) drives the morph live in-game. Legacy weight/breasts/stomach stats are auto-bound on import, so existing worlds keep working.
  • ๐Ÿ› ๏ธ Developer tooling
    • Automated test suite built from scratch (Vitest + Testing Library) covering the new libraries, services, and components, plus a coverage script (npm run coverage).
    • GitHub Actions CI โ€” typecheck, lint, and tests run on every push and pull request.
    • Optional VRAM monitor โ€” a local helper (npm run vram-helper) and in-app readout that warns before loading TTS would exhaust GPU memory.
    • Desktop packaging โ€” a thin Electron shell (electron/) plus electron-builder config; npm run desktop:build produces a portable Windows exe from the same web build.
    • Project scaffolding: .env.example, .nvmrc, and a rewritten README.
    • This wiki, published automatically from docs/ by a GitHub Action.
  • โš™๏ธ Backend / invisible
    • Full JavaScript โ†’ TypeScript conversion of the entire codebase (10 phases), finishing on strict mode with shared domain types under src/types.
    • World & save versioning โ€” an APP_VERSION derived from package.json, idempotent import migration (migrateWorld) that upgrades legacy worlds at every import boundary, presence-based save-envelope detection, and version stamps on saves, exports, and the bundled worlds. (See the World Format versioning notes.)
    • Heavy save conversion and serialization moved to web workers so the UI never freezes on large files.
    • Reusable utilities extracted: world import/catalog, output length, AI-response parsing, tag/dictionary/highlight helpers, and a thumbnail cache.

โž– Removed

  • ๐Ÿ‘ค User-facing
    • The fullscreen menu popup, replaced by the redesigned world browser.
    • The previous bundled example worlds (slime, sugarscape, veilwood), swapped for the current set.
  • ๐Ÿ› ๏ธ Developer tooling
    • In-repo planning notes and server stubs under src/docs/ (publish-feature plan, server README, tags-implementation notes, server-worlds stub).
  • โš™๏ธ Backend / invisible
    • All legacy .jsx / .js sources, superseded by .tsx / .ts equivalents (views, contexts, workers, prompts, db & utils, UI primitives).
    • jsconfig.json (replaced by tsconfig.json) and a stray Idle.fbx animation file.

๐Ÿ› Fixed

  • ๐Ÿ‘ค User-facing
    • Custom VRM models exported from v1.2 were silently stripped on import โ€” now migrated and preserved.
    • Body-morph sliders now resize clothing meshes instead of clipping through them.
    • VRM outline color rendering issue.
    • AI response parsing errors that could break choices and stat updates.
    • The Settings panel no longer jumps vertically when its contents change.
    • Unsaved world edits are detected on exit, with a confirmation prompt to prevent data loss.
  • โš™๏ธ Backend / invisible
    • Server-Sent Events streaming now handles chunk boundaries correctly โ€” no dropped or garbled tokens mid-stream.
    • Removed side effects from the setPlayerStats state updater.
    • The recent-stat-change highlight timer is cleared properly, and streaming guards against a missing response.body.

Minor Changes

โž• Added

  • ๐Ÿ‘ค User-facing
    • Markdown formatting toggle (Settings โ†’ Gameplay, default off) โ€” when on, the narration prompt asks the AI to format with bold/italics, lists, and tables (e.g. inventory) using a floor-based rule (one bold + at least one italic per turn) that small models follow reliably; off keeps plain prose. (Reset Prompts to pick it up if you've customized the system prompt.)
    • Hide stat numbers from the narrator (Settings โ†’ Gameplay, default on) โ€” the narration, planning, and choices requests receive stat descriptors (e.g. "severely injured") instead of raw values, so the model writes to how a stat feels rather than fixating on the number. Stat-updates still get the numbers; falls back to the number when a stat has no descriptor.
    • Slash commands in the action box (input starting with /) that bypass the AI; the first, /markdown test, types a rich sample through the real narration renderer to preview markdown formatting.
    • Use Custom Endpoint toggle in Settings โ†’ Endpoint โ€” off uses the built-in default endpoint (fields read-only); on lets you enter and edit your own. Custom values are preserved when toggling off and back on.
    • Hide-UI toggle โ€” an eye button in the bottom-left of the game view hides all panels to reveal the background image; it fades out over the background until hovered.
    • Drag-to-reorder for worlds in the main menu.
    • Additional avatar color options.
    • Unified, consistently styled scroll areas, checkboxes, radios, and chips across the app.
    • Tag truncation and a centered download control in the world browser.
    • LLM request status surfaced next to the status bar.
    • Update-aware world browser โ€” downloaded worlds show their status (Downloaded / Update available / out of date) with one-click re-download to pull the latest version.
    • World provenance on cards โ€” local world cards show how each world arrived (Created / Downloaded / Imported) with timestamps.
    • Main-menu layout toggle โ€” switch the world grid between Grid and Detailed layouts.
    • Markdown in world descriptions โ€” world descriptions render markdown, matching the in-game narration.
    • In-game entity viewer โ€” the avatar panel gained Player / Entities tabs; the Entities view shows the first detected entity's image, clicking an entity in the list swaps to it, and clicking the image opens a full zoom view (works even for worlds without a player model).
    • Entity popup โ€” viewing an entity now supports the same pan/zoom image view as world thumbnails, sizes the image to most of the popup with its description below, and shows a muted "No description provided." when there's no text.
    • AI-context "current context only" filter โ€” the per-turn context viewer can hide re-generated, rolled-back, and aborted turns so you see only what the AI currently sees (on by default).
    • Per-prompt System Prompt editor โ€” Settings โ†’ Prompts has a tab per prompt type (Game Text, Thinking, Choices, Stat Updates, Location Change), and Reset affects only the selected prompt.
    • Per-prompt enable/disable โ€” a System Prompts checkbox group in Settings โ†’ Generation turns the optional prompts (Choices, Stat Updates, Location Change) on or off, replacing the old "type DISABLED into the prompt" trick; a disabled prompt also hides its editor tab under System Prompts. Game Text can't be disabled; Thinking and Summary follow their governing settings (Thinking mode / Memory Summaries). Worlds that had a prompt set to DISABLED are migrated to the off state automatically.
    • Settings reorganized โ€” the old "Gameplay" tab is split into two: Presentation (language, music, output length, auto-scroll, markdown, narration audio) and Generation (hide stat numbers, thinking, memory summaries, silent requests), so related settings sit together.
    • Per-prompt "Verbatim turns" โ€” Settings โ†’ System Prompts has a Verbatim turns field in the footer (next to Reset) that targets the active prompt, controlling how many recent turns are sent in full before older ones collapse into the summary recap (shown only when Use Summaries in Context is on, since that's the only time it applies). Game Text (default 3) and Thinking (default 1) are wired up; the other prompts' values are stored for future use.
    • Full-length, progressive TTS narration โ€” narration is split into sentence chunks so audio is no longer cut off at ~26 s (Kokoro's per-call token cap). Playback is progressive: speech starts after the first sentence and plays gaplessly (Web Audio) as the rest generate, with a determinate progress bar (sentence X of N); the seek bar is driven by the same engine, so the clip is scrubbable/replayable with no hand-off.
    • Stream Narration Audio (Settings โ†’ Gameplay, default off) โ€” when on, text-to-speech begins synthesizing each sentence the moment it finishes streaming from the model, instead of waiting for the whole story; much lower audio latency. Off by default since TTS then runs alongside the model and can compete for the GPU on a single-machine setup.
    • Use Summaries in Context (Settings โ†’ Generation, default off; needs Memory Summaries on) โ€” long stories now stay coherent without bloating each request. Recent turns are kept word-for-word, older turns collapse into a compact "story so far" recap built from their summaries, and any past turn your action references is pulled back to full detail. The memory meter breaks out how much of the window the recap and rehydrated turns use. Off by default because it changes what each request sends; with it off, Memory Summaries still only generate and show summaries.
    • Link entities to locations from either side โ€” in the World Editor a location's entities are now chosen from a searchable multiselect dropdown (replacing the long checkbox list), and each entity gained a matching Locations dropdown. The two stay in sync, so the relationship can be edited from whichever side you're on.
    • Steadier World Editor tabs โ€” the add/search row now sits below the editor tabs instead of above them, so the tab strip no longer shifts when you switch to or from the Overview tab.
    • Clearer description fields + a new AI summary โ€” an entity's and location's descriptions are now labeled by audience: Player-Facing Description (shown in-game) and AI-Facing Description (full text sent to the model), plus a new AI-Facing Summary โ€” a short version for use where the full description is too long. Existing worlds are upgraded automatically.
    • Generate the AI-Facing Summary with one click โ€” a โœจ button next to the field summarizes the AI-Facing Description using your connected LLM (the icon becomes a spinner while it works); an undo button restores the previous text if you don't like the result.
    • Planning step uses AI-Facing Summaries โ€” the optional pre-reply planning request now feeds the model each location's and entity's short AI-Facing Summary (falling back to the full description where none is authored), keeping the planning pass lightweight. Narration still gets the full descriptions.
    • Sharper next-action choices โ€” the choices request now sees the player's most recent action (not just the resulting narration), so suggestions track what you were actually trying to do; it also uses the short AI-Facing Summaries for the current location and present entities instead of their full descriptions.
    • Markdown toolbar for the world description โ€” the Edit tab gained a formatting toolbar (bold, italic, headings, lists, link, quote, inline code) plus undo/redo (buttons and Ctrl+Z / Ctrl+Y); the Preview still renders through the same engine as in-game narration.
    • Trait groups (folders) โ€” the World Editor's Traits tab is now a foldering tree: the + opens a popout to Add Group or Add Trait, and traits/groups drag to reorder and nest โ€” drag a row right to tuck it under the group above, left to pull it back out, with the row indenting live as you drag. New worlds start with World and Player groups. Traits and groups gain Player-Facing and AI-Facing descriptions, and traits gain an Enabled by Default flag. In play, the trait-selection popup is now tabbed by group (an implicit General tab holds ungrouped traits, nested groups add a tab row); default traits start checked, and the buttons are Next (walk the groups), Skip (start with the current selection), and Abort (cancel loading the world). A group's AI description is sent to the model as a header above its selected traits.
  • โš™๏ธ Backend / invisible
    • Shared hooks and helpers: a createWorkerClient worker factory, a single IndexedDB open/promisify helper (idb), usePersistentState, useIsMobile, and a cached-thumbnail hook.
    • The Discover world-browser was split out of MainMenu into its own DiscoverWorlds view, with shared world-card/detail presentation helpers (WorldDetails).
    • Per-turn memory summaries (foundation) โ€” each turn now carries a stable turnId and a lazily-generated, persisted summary of typed fact lines, produced by a silent request as soon as each turn completes (opt-in via Settings โ†’ Generation โ†’ Memory Summaries; prompt editable under System Prompts โ†’ Summary). With "Show Silent Requests" on, each summary is inspectable per turn in the AI-context viewer. Nothing consumes them yet โ€” this is groundwork for keeping long stories coherent without bloating each request.
    • Trait group data model โ€” the world format gains a traitGroups array ({ id, name, playerDescription?, aiDescription?, parentId, order }); traits move from a single description to playerDescription/aiDescription and gain groupId, isDefault, and order. The tree, reordering, and AI trait-context builder live in pure, unit-tested helpers (lib/traitTree.ts); legacy v1.2 worlds rename their trait description โ†’ playerDescription on import.

โž– Removed

  • โš™๏ธ Backend / invisible
    • Dead code and noisy logging, including a leftover bufferToSentence helper and an auth-token console log.

๐Ÿ› Fixed

  • ๐Ÿ‘ค User-facing
    • Mislabeled UI text and icons corrected.
    • The memory meter is now an accurate token gauge of the model's context window โ€” prompt + (actually-sent) history + reserved output as a % of the window โ€” fixing the old bar that mixed characters and tokens and counted the full untrimmed log.
  • โš™๏ธ Backend / invisible
    • Entity IDs now use crypto.randomUUID() instead of timestamp-based IDs, avoiding collisions.
    • Cleaner AI prompts โ€” blank or unset author fields (an empty entity type, a missing description, etc.) are no longer padded into the location/entity/trait data sent to the model, and the editor-only starting-location flag is dropped from it. Empty fields previously leaked as blank lines or the literal text undefined, which could confuse smaller models.
    • Description fields renamed in the world format โ€” entity/location inGameDescription โ†’ playerDescription and detailedDescription โ†’ aiDescription, plus a new optional aiSummary. migrateWorld renames the old keys when importing a legacy v1.2 world, and the bundled worlds are updated in place.
    • Lint cleanups across the converted codebase.

Clone this wiki locally