Skip to main content

omni_dev/
lib.rs

1//! # omni-dev
2//!
3//! AI-powered git commit rewriter, PR generator, and MCP server for Jira,
4//! Confluence, and Datadog.
5//!
6//! omni-dev is primarily a command-line tool; this crate also exposes the
7//! library types that power it for programmatic use. See the [`cli`] module
8//! for the command-line surface, and the `mcp` module (gated on the `mcp`
9//! feature) for the MCP server implementation.
10//!
11//! ## Highlights
12//!
13//! - Analyse and rewrite git commit messages with a configurable AI backend
14//!   (Anthropic API, AWS Bedrock, OpenAI, Ollama, or a local `claude` CLI
15//!   subprocess) — see [`claude`].
16//! - Generate pull-request titles and descriptions from branch history.
17//! - Read, edit, and create Jira issues and Confluence pages via JFM
18//!   (JIRA-Flavoured Markdown) — see [`atlassian`].
19//! - Query Datadog metrics, logs, monitors, and dashboards — see [`datadog`].
20//! - Expose every CLI capability as an MCP server for AI assistants by
21//!   enabling the `mcp` feature.
22//!
23//! ## Installation
24//!
25//! ```text
26//! cargo install omni-dev
27//! omni-dev --help
28//! ```
29//!
30//! ## Library example
31//!
32//! ```rust
33//! use omni_dev::VERSION;
34//!
35//! println!("omni-dev v{VERSION}");
36//! ```
37
38#![warn(missing_docs)]
39#![deny(rustdoc::broken_intra_doc_links)]
40
41pub mod atlassian;
42pub mod browser;
43pub mod claude;
44pub mod cli;
45pub mod coverage;
46pub mod daemon;
47pub mod data;
48pub mod datadog;
49pub mod git;
50#[cfg(feature = "mcp")]
51pub mod mcp;
52pub mod request_log;
53pub mod resources;
54pub mod snowflake;
55pub mod transcript;
56pub mod utils;
57pub mod worktrees;
58
59#[cfg(test)]
60mod test_support;
61
62pub use crate::cli::Cli;
63
64/// The current version of omni-dev.
65pub const VERSION: &str = env!("CARGO_PKG_VERSION");