docs(8.0): consistency-model concept + snapshots guide — Db API replaces branching docs

This commit is contained in:
David Snelling 2026-06-11 08:37:26 -07:00
parent e5feae4104
commit cc8037db10
23 changed files with 1053 additions and 1871 deletions

View file

@ -267,8 +267,10 @@ async function gameDevProject() {
where: { 'attributes.location': 'Village Square' }
})
// Track game balance changes ✅
const balanceHistory = await vfs.getHistory('/game/data/balance.json')
// Track game balance changes — read the file as it was a week ago ✅
const lastWeek = await brain.asOf(new Date(Date.now() - 7 * 86_400_000))
const oldBalance = await lastWeek.find({ where: { path: '/game/data/balance.json' }, limit: 1 })
await lastWeek.release()
// Collaborative development tracking ✅
await vfs.addTodo('/game/quests/main_quest.json', {