Skip to main content

ccboard_core/
lib.rs

1//! ccboard-core - Core library for ccboard
2//!
3//! Provides parsers, models, store, and file watcher for Claude Code data.
4
5pub mod analytics;
6pub mod cache;
7pub mod error;
8pub mod event;
9pub mod export;
10pub mod graph;
11pub mod live_monitor;
12pub mod models;
13pub mod parsers;
14pub mod preferences;
15pub mod pricing;
16pub mod quota;
17pub mod store;
18pub mod usage_estimator;
19pub mod watcher;
20
21pub use analytics::{
22    compute_trends, detect_patterns, forecast_usage, generate_insights, AnalyticsData,
23    ForecastData, Period, TrendDirection, TrendsData, UsagePatterns,
24};
25pub use cache::{AggregateStats, SearchResult, StoredAlert};
26pub use error::{CoreError, DegradedState, LoadReport};
27pub use event::{DataEvent, EventBus};
28pub use export::{
29    export_billing_blocks_to_csv, export_billing_blocks_to_json, export_billing_blocks_to_markdown,
30    export_sessions_to_csv, export_sessions_to_json, export_sessions_to_markdown,
31    export_stats_to_csv, export_stats_to_json, export_stats_to_markdown,
32};
33pub use live_monitor::{detect_live_sessions, LiveSession};
34pub use models::activity::{
35    ActivitySummary, Alert, AlertCategory, AlertSeverity, BashCommand, FileAccess, FileOperation,
36    NetworkCall, NetworkTool, ToolCall as ActivityToolCall,
37};
38pub use quota::{calculate_quota_status, AlertLevel, QuotaStatus};
39pub use store::{DataStore, ProjectLeaderboardEntry};
40pub use usage_estimator::{calculate_usage_estimate, SubscriptionPlan, UsageEstimate};
41pub use watcher::FileWatcher;