travelagent-core 1.10.0

Core library for travelagent code review tool
Documentation
//! Core library for travelagent — the data model, VCS backends, forge
//! abstraction, and session persistence that the TUI and MCP crates
//! build on.
//!
//! # What lives here
//!
//! - [`model`] — review data types ([`model::review::ReviewSession`],
//!   [`model::review::Comment`], [`model::diff::DiffFile`],
//!   [`model::tour`] structures).
//! - [`vcs`] — VCS-backend trait and git / hg / jj implementations
//!   (see [`vcs::VcsBackend`]).
//! - [`forge`] — trait and types for remote forges used by the
//!   GitHub/GitLab crates (see [`forge::ForgeBackend`]).
//! - [`config`] — user `config.toml` loader with warnings-on-error.
//! - [`persistence`] — on-disk `ReviewSession` save/load
//!   (see [`persistence::storage::save_session`] /
//!   [`persistence::storage::load_session`]).
//! - [`diff`] — diff parsing and word-level intra-line diffs.
//! - [`risk`] — risk scoring for tour stops.
//! - [`syntax`] — syntect-backed syntax highlighting.
//! - [`trvignore`] — gitignore-style filtering.
//! - [`review_config`] — per-repo `.travelagent/review.toml` loader
//!   for reviewer-side sparring settings (e.g. `hidden_from_reviewer`).
//! - [`error`] — the [`error::TrvError`] enum and
//!   [`error::Result`] alias used across the workspace.
//!
//! The crate never performs terminal I/O, HTTP, or clap parsing — those
//! concerns live in the TUI, forge, and MCP crates respectively.

#![cfg_attr(not(test), forbid(unsafe_code))]

pub mod anchor_map;
pub mod auto_collapse;
pub mod cache;
pub mod config;
pub mod diff;
pub mod engine;
pub mod error;
pub mod forge;
pub mod glob;
pub mod live;
pub mod mcp;
pub mod mcp_limits;
pub mod model;
pub mod persistence;
pub mod reanchor;
pub mod review_config;
pub mod risk;
pub mod sparring;
pub mod style;
pub mod syntax;
pub mod trvignore;
pub mod vcs;