Skip to main content

dot_agent_core/channel/
mod.rs

1//! Channel and Hub management
2//!
3//! # Concepts
4//!
5//! - **Hub**: A repository that aggregates multiple Channels (e.g., dot-agent-hub)
6//! - **Channel**: A source of profiles (e.g., awesome-dotfiles, official)
7//! - **Profile**: Actual configuration files
8//!
9//! # Hierarchy
10//!
11//! ```text
12//! Hub (github.com/xxx/dot-agent-hub)
13//! ├── channels/
14//! │   ├── awesome-dotfiles.toml
15//! │   └── awesome-neovim.toml
16//! └── official/
17//!     └── profiles/
18//!         ├── rust-claude.toml
19//!         └── python-claude.toml
20//!
21//! Local (~/.dot-agent/)
22//! ├── hubs.toml              # Registered Hubs
23//! ├── channels.toml          # Enabled Channels
24//! ├── cache/
25//! │   ├── hubs/              # Hub content cache
26//! │   └── channels/          # Channel content cache
27//! └── profiles/              # Imported profiles
28//! ```
29
30mod channel_registry;
31mod hub_registry;
32mod search;
33mod types;
34
35pub use channel_registry::ChannelRegistry;
36pub use hub_registry::HubRegistry;
37pub use search::{ChannelManager, MarketplacePlugin};
38pub use types::{Channel, ChannelRef, ChannelSource, ChannelType, Hub, ProfileRef, SearchOptions};