mdx-rust-analysis 0.2.0

Rust source analysis, bundling, and safe editing for mdx-rust
Documentation
//! Rust source analysis and safe edit helpers for `mdx-rust`.
//!
//! This crate owns source discovery, Rust code finders, bundle construction,
//! isolated workspace creation, patch application, validation command records,
//! and rollback snapshots used by the optimizer.
//!
//! ## Stability contract
//!
//! The supported product surface for `0.2.x` is the `mdx-rust` CLI. This crate
//! is published so the CLI can be installed from crates.io, but the library API
//! is intentionally unstable before `1.0`.

#[doc(hidden)]
pub mod bundler;
#[doc(hidden)]
pub mod editing;
#[doc(hidden)]
pub mod finders;

/// Analyze an agent crate and return the source scope mdx-rust may inspect.
pub use bundler::{analyze_agent, build_bundle_scope, AgentBundle, BundleScope};
/// Rust source finders used to identify prompts, tools, and entrypoints.
pub use finders::{
    find_preambles, find_run_agent_functions, find_tools, looks_like_rig_agent, AgentEntrypoint,
    ExtractedPrompt, ExtractedTool,
};