StateStore.php
Table of Contents
Classes
- StateStore
- Tiny JSON-file backed store for data that must survive a bot restart: the
default agent id + token, the per-Discord-user identity map, each agent's
last-known world position, the autoplay flag + driver lease, the brain's
decision log, its `combine` / loop-guard / stance memory, and the registered
slash-command signatures. Volatile per-tick world state (market, scene, feed,
…) is deliberately NOT stored here — it is re-fetched live every time. Writes
are atomic (temp file + rename).