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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
//! # Hierarchical Task Management System
//!
//! Provides dynamic task trees, intelligent scheduling, dependency resolution,
//! and progress tracking for complex coding automation workflows.
//!
//! ## Core Components
//!
//! - **[`TaskManager`]**: Central orchestrator for task lifecycle and coordination
//! - **`TaskTree`**: Hierarchical task organization with parent-child relationships
//! - **`TaskScheduler`**: Intelligent prioritization with multi-factor scoring
//! - **`TaskExecutor`**: Resource allocation and execution environment management
//!
//! ## Key Features
//!
//! ### 🌳 Dynamic Task Tree
//! - Hierarchical task organization with unlimited nesting
//! - Automatic subtask creation during execution
//! - Parent-child relationship tracking and inheritance
//! - Context propagation through task hierarchy
//!
//! ### 🧠Intelligent Scheduling
//! - Multi-factor weighted scoring system
//! - Resource-aware prioritization
//! - Deadline and complexity consideration
//! - Dynamic re-prioritization based on progress
//!
//! ### 🔗 Dependency Resolution
//! - Complex dependency tracking and validation
//! - Circular dependency detection and prevention
//! - Automatic execution ordering based on dependencies
//! - Parallel execution of independent tasks
//!
//! ### 📊 Progress Tracking
//! - Real-time task status monitoring
//! - Completion estimation and time tracking
//! - Resource usage analytics
//! - Performance metrics and statistics
//!
//! ### 🔄 Auto-Deduplication
//! - Automatic detection of similar tasks
//! - Intelligent merging of duplicate requests
//! - Conflict resolution for overlapping work
//!
//! ## Task Lifecycle
//!
//! ```text
//! Pending -> Scheduled -> InProgress -> [Completed | Failed | Blocked]
//! \-> Paused -----> InProgress
//! ```
//!
//! ## Example Usage
//!
//! ```rust,no_run
//! use aca::task::{TaskManager, TaskManagerConfig};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let config = TaskManagerConfig::default();
//! let task_manager = TaskManager::new(config);
//!
//! // Task creation involves building TaskSpec instances
//! // See the manager module documentation for detailed examples
//!
//! Ok(())
//! }
//! ```
/// Task execution environment and resource management.
///
/// Handles the actual execution of tasks including resource allocation,
/// environment setup, and integration with LLM providers.
/// Central task lifecycle management and coordination.
///
/// The [`TaskManager`] orchestrates all task operations including
/// creation, scheduling, execution, and status tracking.
/// Intelligent task scheduling and prioritization.
///
/// Implements multi-factor scoring algorithms for optimal task
/// ordering and resource allocation.
/// Hierarchical task organization and relationship management.
///
/// Provides the [`TaskTree`] structure for organizing tasks in
/// parent-child relationships with dependency tracking.
/// Core task types, enums, and data structures.
///
/// Defines all fundamental types used throughout the task management
/// system including [`Task`], [`TaskStatus`], [`TaskPriority`], etc.
/// Unified execution plan abstraction for task processing.
///
/// Provides the [`ExecutionPlan`] type that consolidates both simple
/// task lists and structured configurations into a common execution model.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;