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
//! CRDT-based collaborative task lists for x0x agents.
//!
//! This module provides conflict-free replicated data types (CRDTs) for
//! building collaborative task lists that agents can share and synchronize
//! through the gossip network.
//!
//! ## Key Components
//!
//! - [`error`]: Error types for CRDT operations
//!
//! ## Usage
//!
//! ```ignore
//! use x0x::crdt::{TaskList, TaskItem};
//!
//! // Create a new task list
//! let mut task_list = TaskList::new(list_id, "Sprint Planning", peer_id);
//!
//! // Add a task
//! let task = TaskItem::new(task_id, metadata, peer_id);
//! task_list.add_task(task, peer_id, seq)?;
//!
//! // Claim a task
//! task_list.claim_task(&task_id, agent_id, peer_id, seq)?;
//!
//! // Complete a task
//! task_list.complete_task(&task_id, agent_id, peer_id, seq)?;
//! ```
// Re-export commonly used types
pub use ;
pub use TaskListDelta;
pub use EncryptedTaskListDelta;
pub use ;
pub use TaskListStorage;
pub use TaskListSync;
pub use ;
pub use TaskItem;
pub use ;