//! Local-first equity research workspace subsystem.

mod ai;
mod duplicates;
mod errors;
mod events;
mod export;
mod ghosts;
mod grounding;
mod heuristics;
mod links;
mod model_formula;
mod pipeline;
mod projections;
mod repository;
mod service;
mod staleness;
mod types;
mod util;

pub use pipeline::spawn_research_scheduler;
pub use service::ResearchService;
pub use types::{
    ArchiveResearchNoteRequest, ArchiveResearchWorkspaceRequest, CaptureResearchNoteRequest,
    CreateFinancialModelRequest, CreateResearchWorkspaceRequest, EvaluateFinancialModelRequest,
    EvaluateFinancialModelResult, ExportFinancialModelXlsxRequest, ExportFinancialModelXlsxResult,
    ExportResearchBundleRequest, FinancialModel, GetFinancialModelRequest,
    GetNoteAuditTrailRequest, GetNotesByTickerRequest, GetResearchFileTextPreviewRequest,
    GetWorkspaceProjectionRequest, GhostNote, LinkNoteToModelCellRequest,
    ListFinancialModelsRequest, ListModelCellAnnotationsRequest, ListModelDataBindingsRequest,
    ListNoteLinksRequest, ListResearchFilesRequest, ListResearchJobsRequest,
    ListResearchNotesRequest, ListWorkspaceGhostNotesRequest, ModelBindingRefreshPolicy,
    ModelCellAnnotation, ModelDataBinding, ModelDataBindingKind, NoteAuditTrail, NoteCaptureResult,
    NoteLink, PipelineJob, PreviewLinkRequest, PreviewLinkResult, PromoteNoteToThesisRequest,
    RefreshModelDataBindingsRequest, ResearchBundleExport, ResearchFile, ResearchFileTextPreview,
    ResearchNote, ResearchWorkspace, ResolveGhostInterventionRequest, RetryResearchJobsRequest,
    ReviewGhostNoteRequest, SaveFinancialModelRequest, SaveModelDataBindingRequest,
    SearchResearchNotesRequest, UnlinkNoteFromModelCellRequest, UpdateModelCellAnnotationRequest,
    UpdateResearchNoteRequest, UpdateResearchWorkspaceRequest, UploadResearchFilesRequest,
    WorkspaceProjection,
};
