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
//! Repository-based workstream clustering and workstream file contracts.
//!
//! Clustering, curated/suggested file lifecycle policies, and receipt display
//! limits live as modules under this crate so workstream phases do not become
//! separate package contracts.
//!
//! # Examples
//!
//! Cluster events by repository using the default strategy:
//!
//! ```
//! use shiplog_workstreams::RepoClusterer;
//! use shiplog_ports::WorkstreamClusterer;
//!
//! let clusterer = RepoClusterer;
//! let ws = clusterer.cluster(&[]).unwrap();
//! assert!(ws.workstreams.is_empty());
//! ```
//!
//! Resolve workstream file paths:
//!
//! ```
//! use shiplog_workstreams::WorkstreamManager;
//! use std::path::Path;
//!
//! let dir = Path::new("./out/run_123");
//! let curated = WorkstreamManager::curated_path(dir);
//! let suggested = WorkstreamManager::suggested_path(dir);
//! assert!(curated.ends_with("workstreams.yaml"));
//! assert!(suggested.ends_with("workstreams.suggested.yaml"));
//! ```
pub use RepoClusterer;
pub use ;
pub use ;