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