diff --git a/src/root.zig b/src/root.zig index f500ac2..905692e 100644 --- a/src/root.zig +++ b/src/root.zig @@ -86,13 +86,21 @@ pub const analysis = @import("analytics/analysis.zig"); /// Portfolio-vs-brokerage reconciliation (pure compute): compare /// accounts, ratio-update suggestions, absent-account detection. The -/// audit command renders these; downstream tools (finrev) consume them. +/// audit command renders these; downstream tools consume them. pub const reconcile = @import("analytics/reconcile.zig"); /// Brokerage export parsers (Schwab/Fidelity/Wells Fargo positions + /// summary) and the normalized `BrokeragePosition` shape. pub const brokerage = @import("brokerage.zig"); +/// Portfolio loading from srf files: the union-merge loader the CLI uses +/// (`loadPortfolioFromPaths`, `loadPortfolioFromConfig`, `LoadedPortfolio`). +/// Exported so downstream tools can build a `Portfolio` from +/// portfolio.srf without reimplementing the loader - pair it with +/// `DataService.loadAllPrices` to get the price map the `reconcile` +/// compute functions expect. +pub const portfolio_loader = @import("portfolio_loader.zig"); + // ── Market calendar ────────────────────────────────────────── /// Trading-day calendar (NYSE holidays, weekends) and market-aware