1#![deny(missing_docs)]
23
24pub mod advise;
25pub mod agent;
26pub mod already;
27pub mod ask;
28mod base_conflict;
29mod base_recovery_control;
30#[doc(hidden)]
31pub mod base_sync_only;
32mod base_sync_recovery;
33pub mod blind;
34pub mod blockers;
35#[doc(hidden)]
36pub mod build_id;
37#[doc(hidden)]
38pub mod build_target;
39pub mod bump;
40pub mod cache;
41pub mod chat_control;
42pub mod chat_goal;
43pub(crate) mod chat_goal_runtime;
44mod chat_merge;
45pub mod chat_notify;
46pub mod chat_status;
47pub mod chat_watch;
48pub mod chat_worker;
49pub mod clean;
50pub mod conduct;
51pub mod config;
52pub mod consult;
53pub mod daemon;
54pub mod deputy;
55pub mod direct;
56pub mod disk;
57mod driver;
58pub mod dupes;
59mod external_merge_attention;
60pub mod fixer;
61pub mod flake;
62mod fold_evidence;
63pub mod followup;
64pub mod foreign_checkout;
65pub mod git;
66pub mod github_text;
67pub mod graft;
68pub mod graft_report;
69pub mod graph;
70pub mod handover;
71pub mod head_e2e_stop;
72mod id_reserve;
73mod immediate_filing_control;
74pub mod incremental;
75pub mod instruction_revision_control;
76pub mod land;
77pub mod land_sync_recovery;
78pub mod land_sync_recovery_control;
79pub mod landing;
80pub mod lang;
81mod lock_file;
82pub mod md;
83pub mod merge_decision;
84pub mod notice_delivery;
85mod notice_semantics;
86pub mod notices;
87pub mod persona;
88pub mod persona_icon;
89mod pr_head;
90pub mod pr_outcome;
91pub mod pr_recovery;
92pub mod proc;
93pub mod prompt;
94pub mod question_delivery;
95pub mod queue;
96pub mod rebase;
97pub mod reconcile;
98pub mod recovery;
99pub mod refs;
100pub mod release_local;
101pub mod release_manifest;
102pub mod release_watch;
103pub mod repair_budget;
104pub mod repo_clone;
105mod repo_lock;
106pub mod report;
107pub mod report_view;
108pub mod repos;
109pub mod retention;
110pub mod review_repair;
111pub mod rng;
112pub mod run;
113pub mod run_progress;
114pub mod scrub;
115mod seat_process;
116pub mod settings;
117pub mod startup_reconcile;
119pub mod stats;
120mod stop_reason;
121pub mod talk;
122pub mod task_chat;
123pub mod task_completion;
124pub mod task_decision;
125pub mod task_inquiry;
126pub mod triage;
127pub mod tui;
128pub mod updater;
129pub mod verdict;
130pub mod verify_evidence;
131pub mod waiter;
132pub mod web;
133pub mod worker;
134mod worktree_clean;
135pub mod worktree_setup;
136
137pub mod choice_effect;
138mod resume;
139
140#[cfg(test)]
143pub(crate) fn standalone_test(name: &str) -> bool {
144 const CHILD: &str = "MAGI_STANDALONE_TEST";
145 if std::env::var(CHILD).as_deref() == Ok(name) {
146 return true;
147 }
148 let mut command = std::process::Command::new(std::env::current_exe().expect("test executable"));
149 for key in worker::INVOCATION_ENV {
150 command.env_remove(key);
151 }
152 let output = command
153 .args(["--exact", name, "--nocapture"])
154 .env(CHILD, name)
155 .output()
156 .expect("standalone test process");
157 assert!(
158 output.status.success() && String::from_utf8_lossy(&output.stdout).contains("1 passed"),
159 "standalone test {name} failed: {}\n{}\n{}",
160 output.status,
161 String::from_utf8_lossy(&output.stdout),
162 String::from_utf8_lossy(&output.stderr)
163 );
164 false
165}
166
167pub mod repo_selector;
168pub mod task_reassign;