1#[cfg(target_arch = "wasm32")]
15macro_rules! wasm_unsupported {
16 ($fn_name:expr) => {
17 return Err(crate::error::AptuError::GitHub {
18 message: format!("{} is not supported on wasm32-unknown-unknown", $fn_name),
19 })
20 };
21}
22
23#[cfg(target_arch = "wasm32")]
24pub(crate) use wasm_unsupported;
25
26pub mod ai_client;
27pub mod issues;
28pub mod models;
29pub mod pr_create;
30pub mod pr_review;
31pub mod repos;
32pub mod revert;
33
34pub use issues::format_issue;
35#[cfg(not(target_arch = "wasm32"))]
36pub use issues::{
37 analyze_issue, apply_triage_labels, fetch_issue_for_triage, post_issue, post_triage_comment,
38};
39#[cfg(not(target_arch = "wasm32"))]
40pub use models::{list_models, validate_model};
41#[cfg(not(target_arch = "wasm32"))]
42pub use pr_create::create_pr;
43#[cfg(not(target_arch = "wasm32"))]
44pub use pr_review::{analyze_pr, fetch_pr_for_review, label_pr, post_pr_review};
45#[cfg(not(target_arch = "wasm32"))]
46pub use repos::{
47 add_custom_repo, discover_repos, fetch_issues, list_curated_repos, list_repos,
48 remove_custom_repo,
49};
50pub use revert::RevertOutcome;
51#[cfg(not(target_arch = "wasm32"))]
52pub use revert::{revert_issue, revert_pr};