Skip to main content

bookforge_core/
lib.rs

1pub mod config;
2pub mod entity;
3pub mod error;
4pub mod glossary;
5pub mod ir;
6pub mod marker;
7pub mod progress;
8pub mod run_snapshot;
9pub mod scheduler;
10pub mod segment;
11pub mod style;
12
13pub use config::{
14    BatchConfig, DoubleCheckConfig, DoubleCheckMode, FallbackScope, JsonMode, ModelEndpoint,
15    ModelRouteConfig, PromptVersion, ProviderErrorKind, ProviderPreset, ProviderPresetResolved,
16    ProviderPresetRuntimeOverrides, ProviderRequestMetric, ProviderRuntimeConfig, QaRunConfig,
17    ResolvedRunSettings, RetryAfterPolicy, SegmentationConfig, TranslationConfig,
18    TranslationProfile, cap_output_tokens,
19};
20pub use entity::{
21    Entity, EntityGender, entities_fingerprint, merge_scope_entities, render_entity_agreement_block,
22};
23pub use error::{BookforgeError, Result};
24pub use glossary::{
25    GlossaryCandidate, GlossaryCategory, GlossaryFormat, GlossaryPromptTerm, GlossaryScopeKind,
26    GlossaryStatus, GlossaryTerm, SegmentGlossarySelections, extract_glossary_candidates,
27    merge_scope_terms, select_glossary_for_segments, target_matches, term_matches,
28};
29pub use progress::{NullProgressSink, ProgressEvent, ProgressSink, now_ms};
30pub use run_snapshot::{ResolvedRunSettingsSnapshot, RunConfigSnapshot};
31pub use scheduler::SchedulerConfig;
32pub use style::{
33    DoNotFields, RegisterFields, StyleSheet, VoiceFields, merge_style_sheets, render_style_block,
34    style_fingerprint,
35};