Log inGet started
Package

persist.module

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

persist

The create-flow persist namespace. Persist freezes live play state into a scene the way the agent's ad-hoc execute() context created it — its north star is "what you see is what you get": it preserves the exact live state, capturing only what would not otherwise be reproduced on the next load (so re-runnable onLoad / loader / component output is never duplicated).

require("modules.persist") re-exports the three subsystems; each can also be required directly.

  • origin — provenance / origin-context layer: which live creations trace to the agent's execute() stack (so only those are frozen).
  • serializer — enumerates the active layer's live entities, filters by provenance and authored-ness, and assembles a loadable v6 scene body (the play-mode half of scene-save).
  • player_camera — freezes the live player avatar and camera into the scene's player/camera config.