| 1 | mod action; |
| 2 | mod context; |
| 3 | mod invocation; |
| 4 | mod parse; |
| 5 | mod profile; |
| 6 | mod runner; |
| 7 | mod sessions; |
| 8 | mod settings; |
| 9 | mod template; |
| 10 | |
| 11 | pub use action::AgentAction; |
| 12 | pub use context::{MessageContext, ThreadMessage, build_prompt, build_session_prompt}; |
| 13 | pub use invocation::{ |
| 14 | Invocation, InvocationError, McpEndpoint, RunPlan, build_invocation, fork_invocation, |
| 15 | kill_process_invocation, linux_path, open_session_invocation, resume_invocation, |
| 16 | supports_resume, version_check_invocation, wsl_path, wsl_stop_invocation, wsl_unc_distro, |
| 17 | }; |
| 18 | pub use parse::{OutputParser, RunEvent, parse_line}; |
| 19 | pub use profile::{AgentProfile, Environment, OutputFormat}; |
| 20 | pub use runner::{ |
| 21 | RunOutcome, RunStatus, RunUpdate, probe, run, run_stop_invocation, run_stop_invocation_within, |
| 22 | }; |
| 23 | pub use sessions::{ |
| 24 | ExternalSession, encode_project_dir, live_session_names, resolve_project_dir, |
| 25 | scan_external_sessions, |
| 26 | }; |
| 27 | pub use settings::{AgentSettings, RECENT_WORKING_DIR_LIMIT, SETTINGS_KEY, SettingsProblem}; |
| 28 | pub use template::{UnknownPlaceholder, Values, placeholders_in, render, split_command}; |
| 29 | |
| 30 | pub fn new_session_id() -> String { |
| 31 | uuid::Uuid::new_v4().to_string() |
| 32 | } |