Skip to main content

zenith_cli/commands/plugin/
mod.rs

1//! `zenith plugin` — install the Zenith agent skill into AI coding tools.
2//!
3//! Unlike the other command modules (which keep logic pure and leave file I/O
4//! to the dispatcher), installing a skill *is* filesystem work, so this module
5//! is self-contained: it resolves targets, writes/removes files idempotently,
6//! prints a report, and returns an exit code. The dispatcher in `lib.rs` only
7//! translates clap arguments into a [`run::Targets`] selection.
8//!
9//! - `agent` — the supported agents and how each consumes a skill.
10//! - `paths` — per-(agent, scope) target paths.
11//! - `assets` — the embedded skill tree (generated by `build.rs`).
12//! - `render` — single-file rendering for rule-format agents.
13//! - `install` / `uninstall` — idempotent writes / removals.
14//! - `detect` — which agents are present / already installed.
15//! - `path_check` — whether the `zenith` binary is reachable on `PATH`.
16//! - `run` — orchestration entry points used by `lib.rs`.
17
18pub mod agent;
19pub mod assets;
20pub mod detect;
21pub mod install;
22pub mod path_check;
23pub mod paths;
24pub mod render;
25pub mod run;
26pub mod uninstall;
27
28pub use agent::{Agent, Scope};
29pub use run::{Targets, run_install, run_list, run_uninstall};