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
//! AI-powered code analysis
//!
//! This module provides AI-powered analysis capabilities for code and project
//! structures. It can analyze code snippets and entire project directories to
//! provide insights and recommendations.
//!
//! ## Features
//!
//! - **Code Analysis**: Analyze code snippets for patterns and issues
//! - **Project Analysis**: Analyze entire project structures
//! - **Insights Generation**: Generate actionable insights from analysis
//!
//! ## Examples
//!
//! ### Analyzing Code
//!
//! ```rust,no_run
//! use ggen_domain::ai::analyze::analyze_code;
//!
//! # async fn example() -> anyhow::Result<()> {
//! let code = r#"
//! fn main() {
//! println!("Hello, world!");
//! }
//! "#;
//! let analysis = analyze_code(code).await?;
//! println!("{}", analysis);
//! # Ok(())
//! # }
//! ```
//!
//! ### Analyzing a Project
//!
//! ```rust,no_run
//! use ggen_domain::ai::analyze::analyze_project;
//! use std::path::Path;
//!
//! # async fn example() -> anyhow::Result<()> {
//! let analysis = analyze_project(Path::new("my-project")).await?;
//! println!("{}", analysis);
//! # Ok(())
//! # }
//! ```
use ;
/// Analyze code and provide insights
pub async
/// Analyze project structure
pub async