mdx_rust_analysis/lib.rs
1//! Rust source analysis and safe edit helpers for `mdx-rust`.
2//!
3//! This crate owns source discovery, Rust code finders, bundle construction,
4//! isolated workspace creation, patch application, validation command records,
5//! and rollback snapshots used by the optimizer.
6//!
7//! ## Stability contract
8//!
9//! The supported product surface for `0.2.x` is the `mdx-rust` CLI. This crate
10//! is published so the CLI can be installed from crates.io, but the library API
11//! is intentionally unstable before `1.0`.
12
13#[doc(hidden)]
14pub mod bundler;
15#[doc(hidden)]
16pub mod editing;
17#[doc(hidden)]
18pub mod finders;
19
20/// Analyze an agent crate and return the source scope mdx-rust may inspect.
21pub use bundler::{analyze_agent, build_bundle_scope, AgentBundle, BundleScope};
22/// Rust source finders used to identify prompts, tools, and entrypoints.
23pub use finders::{
24 find_preambles, find_run_agent_functions, find_tools, looks_like_rig_agent, AgentEntrypoint,
25 ExtractedPrompt, ExtractedTool,
26};