bankai/sync/jsonl
.bankai/tasks.jsonl persistence (Git-trackable, one task per line).
Values
pub fn ensure_dir(
path: String,
) -> Result(Nil, simplifile.FileError)
Ensure a directory exists (for .bankai/).
pub fn flush(
tasks: List(types.Task),
to path: String,
) -> Result(Nil, simplifile.FileError)
Write all tasks to a JSONL file (full rewrite — deterministic).
pub fn load(
from path: String,
) -> Result(List(types.Task), String)
Load tasks from a JSONL file. A missing file or empty body yields []. Every non-empty record must decode and pass the content-address integrity check; a corrupt snapshot is rejected rather than partially loaded.