1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Core library modules for the kasl application.
//!
//! Serves as the main entry point for all kasl library components, providing
//! a centralized access point to the application's core functionality.
//!
//! ## Features
//!
//! - **Core Infrastructure**: Configuration, data storage, messaging
//! - **Activity Monitoring**: Real-time tracking, daemon management, pause analysis
//! - **Productivity Analysis**: Centralized calculation engine with comprehensive metrics
//! - **Data Management**: Task lifecycle, reporting, summaries
//! - **User Interface**: Console rendering, data export, formatting
//! - **System Integration**: Autostart, updates, secure storage
//!
//! ## Usage
//!
//! ```rust,no_run
//! # fn main() -> anyhow::Result<()> {
//! use kasl::libs::task::Task;
//! use kasl::db::tasks::Tasks;
//!
//! let task = Task::new("Implement feature", "Add user authentication", Some(75));
//! let mut tasks_db = Tasks::new()?;
//! tasks_db.insert(&task)?;
//! # Ok(())
//! # }
//! ```