codenexus 0.4.0-rc.1

A queryable code knowledge graph tool built on LadybugDB and tree-sitter
// Copyright (c) 2026 Kirky.X🌠
// SPDX-License-Identifier: MIT

//! Deterministic architecture-diagram pipeline (absorbed from archify).
//!
//! Typed JSON IR → deterministic grid layout → orthogonal routing →
//! reproducible SVG → geometric quality gates → self-contained interactive
//! HTML → atomic delivery with a SHA-256 receipt.
//!
//! Design rules absorbed from archify's engineering discipline:
//! - **Determinism**: identical IR renders byte-identical output.
//! - **Fail-closed**: a failing quality gate never replaces the last-good
//!   artifact (`deliver` stages into the target directory and renames).
//! - **Repair receipts**: every gate failure is a stable rule code with
//!   measured evidence and curated fixes — never a bare message.
//! - **Truth boundary**: edges come from the static index (CALLS, HTTP
//!   facts); the diagram never claims runtime behavior.
pub mod deliver;
pub mod delta;
pub mod evidence;
pub mod ir;
pub mod layout;
pub mod quality;
pub mod render;
pub mod route;
pub mod svg;
pub mod text;
pub mod viewer;

pub use deliver::write_atomically;
pub use delta::{
    canonicalize, compare, render_delta, ChangeKind, Classification, ComponentChange,
    ConnectionChange, DeltaReceipt, DeltaRendered, DeltaReport, COMPARATOR_VERSION,
};
pub use evidence::{verify, EvidenceError, EvidenceReport, VerifiedSource};
pub use ir::{
    from_overview, module_slug, ComponentType, DiagramComponent, DiagramConnection,
    DiagramDocument, DiagramMeta, EdgeVariant, RepositoryRef, SourceRef, SCHEMA_VERSION,
};
pub use layout::{layout_components, Layout, Placement};
pub use quality::{apply_profile, check_artifact, QualityProfile};
pub use render::{render, render_with, DiagramError, RenderedDiagram};
pub use route::{route_edges, RoutedEdge};
pub use svg::render_svg;
pub use text::{fit_label, text_units};
pub use viewer::{to_viewer_snapshot, ChangeState, ViewerEdge, ViewerNode, ViewerSnapshot};