Skip to content
Docs Menu
Documentation

Storage

Persistent storage and migrations in packages/nikcli/src/storage.

Layout

Storage is rooted under Global.Path.data/storage with JSON files per entity.

Migrations

Migration logic lives in Storage.MIGRATIONS and runs once per storage version.

Destructive operations

Migrations can rewrite or move session data. Always back up before manual edits.

Locks

Reads and writes use file locks to prevent concurrent corruption.