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
//! Tool provider system for fetching development tools.
//!
//! This module provides a pluggable system for fetching development tools from
//! various sources (GitHub, OCI, Nix). Each source is implemented
//! as a `ToolProvider` that can resolve and fetch tools.
//!
//! # Architecture
//!
//! The tool system consists of:
//!
//! - [`ToolProvider`] - Trait implemented by each source (GitHub, Nix, etc.)
//! - [`ToolRegistry`] - Collection of registered providers
//! - [`Platform`], [`Os`], [`Arch`] - Platform identification types
//! - [`ToolSource`] - Source-specific resolution data
//! - [`ResolvedTool`] - A fully resolved tool ready to fetch
//! - [`FetchedTool`] - Result of fetching a tool
//!
//! # Example
//!
//! ```ignore
//! use cuenv_core::tools::{ToolRegistry, Platform, ToolOptions};
//!
//! // Create registry with providers
//! let mut registry = ToolRegistry::new();
//! registry.register(GitHubToolProvider::new());
//! registry.register(NixToolProvider::new());
//!
//! // Resolve and fetch a tool
//! let provider = registry.get("github").unwrap();
//! let resolved = provider.resolve(&ToolResolveRequest {
//! tool_name: "jq",
//! version: "1.7.1",
//! platform: &Platform::current(),
//! config: &config,
//! token: None,
//! }).await?;
//! let fetched = provider.fetch(&resolved, &ToolOptions::default()).await?;
//! ```
pub use ;
pub use ;
pub use ToolRegistry;