| 1 | mod action; |
| 2 | mod catalog; |
| 3 | mod chat; |
| 4 | mod context; |
| 5 | mod desktop_sessions; |
| 6 | mod inbox; |
| 7 | mod invocation; |
| 8 | mod parse; |
| 9 | mod profile; |
| 10 | mod runner; |
| 11 | mod sessions; |
| 12 | mod settings; |
| 13 | mod template; |
| 14 | |
| 15 | pub use action::AgentAction; |
| 16 | pub use catalog::{CliHit, already_installed, resolve_program, scan_clis}; |
| 17 | pub use chat::{ |
| 18 | ChatMessage, ChatReply, ToolCall, ToolSpec, complete_text, list_models, next_turn, |
| 19 | probe_backend, |
| 20 | }; |
| 21 | pub use context::{MessageContext, ThreadMessage, build_prompt, build_session_prompt}; |
| 22 | pub use desktop_sessions::{DesktopSession, desktop_sessions}; |
| 23 | pub use inbox::{DeliveryError, deliver, inbox_frame}; |
| 24 | pub use invocation::{ |
| 25 | Invocation, InvocationError, McpEndpoint, RunPlan, build_invocation, kill_process_invocation, |
| 26 | linux_path, open_session_invocation, resume_invocation, supports_resume, |
| 27 | version_check_invocation, wsl_path, wsl_stop_invocation, wsl_unc_distro, |
| 28 | }; |
| 29 | pub use parse::{OutputParser, RunEvent, parse_line}; |
| 30 | pub use profile::{AgentBackend, AgentProfile, Environment, OutputFormat}; |
| 31 | pub use runner::{ |
| 32 | RunOutcome, RunStatus, RunUpdate, probe, run, run_stop_invocation, run_stop_invocation_within, |
| 33 | }; |
| 34 | pub use sessions::{ |
| 35 | ExternalSession, RunningSession, encode_project_dir, live_session_names, resolve_project_dir, |
| 36 | running_sessions, scan_external_sessions, |
| 37 | }; |
| 38 | pub use settings::{AgentSettings, RECENT_WORKING_DIR_LIMIT, SETTINGS_KEY, SettingsProblem}; |
| 39 | pub use template::{UnknownPlaceholder, Values, placeholders_in, render, split_command}; |
| 40 | |
| 41 | pub fn new_session_id() -> String { |
| 42 | uuid::Uuid::new_v4().to_string() |
| 43 | } |