nereid 0.9.0

Source-available noncommercial terminal diagram TUI and MCP server for Mermaid-backed sessions
Documentation
// SPDX-FileCopyrightText: 2026 Bruno Meilick
// SPDX-License-Identifier: LicenseRef-Nereid-FreeUse-NoCopy-NoDerivatives
//
// All rights reserved.
//
// This file is part of Nereid and is proprietary software.
// Unauthorized copying, modification, or distribution is prohibited.

//! Session-folder persistence and identity reconciliation.
//!
//! On-disk format: `nereid-session.meta.json`, `diagrams/*.mmd` + `*.meta.json` sidecars
//! (stable ids, fingerprints, notes, symbols, sequence_blocks), walkthrough JSON, async text
//! exports, and a cross-process write lock for TUI/MCP cohabitation. Load re-parses Mermaid
//! then reconciles stable ids from sidecars so xrefs and notes survive rewrites. Prefer
//! [`SessionFolder::begin_session_update`] / commit for concurrent writers; diagram OCC
//! (`base_rev`) lives in `ops`, not here.

pub mod session_folder;

pub use session_folder::{
    replace_diagram_from_mermaid, DiagramMermaidReplaceError, DiagramMermaidReplaceResult,
    DiagramMeta, DiagramStableIdMap, DiagramXRef, SessionFolder, SessionMeta, SessionMetaDiagram,
    StoreError, WriteDurability, XRefStatus,
};