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
//! # vx-plugin
//!
//! Plugin system for vx - Universal Development Tool Manager
//!
//! This crate provides the core plugin architecture for vx, enabling developers to create
//! custom tools and package managers that integrate seamlessly with the vx ecosystem.
//!
//! ## Features
//!
//! - **Tool Plugins**: Create custom tool implementations with automatic version management
//! - **Package Manager Plugins**: Integrate custom package managers with unified interfaces
//! - **Plugin Registry**: Discover and manage plugins dynamically
//! - **Extensible Architecture**: Clean trait-based design for maximum flexibility
//!
//! ## Quick Start
//!
//! ### Creating a Simple Tool Plugin
//!
//! ```rust,no_run
//! use vx_plugin::{VxTool, VersionInfo, Result};
//! use async_trait::async_trait;
//!
//! struct MyTool;
//!
//! #[async_trait]
//! impl VxTool for MyTool {
//! fn name(&self) -> &str {
//! "mytool"
//! }
//!
//! async fn fetch_versions(&self, include_prerelease: bool) -> Result<Vec<VersionInfo>> {
//! // Implementation here
//! Ok(vec![])
//! }
//! }
//! ```
//!
//! ### Creating a Package Manager Plugin
//!
//! ```rust,no_run//! use vx_plugin::{VxPackageManager, Ecosystem, PackageSpec, Result};
//! use async_trait::async_trait;
//! use std::path::Path;
//!
//! struct MyPackageManager;
//!
//! #[async_trait]
//! impl VxPackageManager for MyPackageManager {
//! fn name(&self) -> &str {
//! "mypm"
//! }
//!
//! fn ecosystem(&self) -> Ecosystem {
//! Ecosystem::Node
//! }
//!
//! async fn install_packages(&self, packages: &[PackageSpec], project_path: &Path) -> Result<()> {
//! // Implementation here
//! Ok(())
//! }
//! }
//! ```
// Re-export core types and traits for convenience
pub use ;
pub use ;
pub use ;
pub use ;
pub use *;
// Module declarations
// Utility modules
// Result type alias for convenience
pub type Result<T> = Result;
/// Plugin system version
pub const VERSION: &str = env!;
/// Plugin API version for compatibility checking
pub const API_VERSION: &str = "0.2.0";