1#![recursion_limit = "256"]
2
3pub mod agent_teams;
4pub mod app;
5pub mod automation_v2;
6pub mod browser;
7pub mod bug_monitor;
8pub mod bug_monitor_github;
9pub mod capability_resolver;
10pub mod config;
11pub mod http;
12pub mod mcp_catalog;
13pub mod mcp_catalog_generated;
14pub mod memory;
15pub mod optimization;
16pub mod pack_builder;
17pub mod pack_manager;
18pub mod preset_composer;
19pub mod preset_registry;
20pub mod preset_summary;
21pub mod routines;
22pub mod runtime;
23pub mod shared_resources;
24pub mod util;
25pub mod webui;
26pub mod workflows;
27
28pub use app::startup::*;
29pub use app::state::automation::lifecycle::record_automation_lifecycle_event_with_metadata;
30pub use app::state::*;
31pub use app::tasks::run_session_context_run_journaler;
32pub use automation_v2::types::*;
33pub use browser::*;
34pub use bug_monitor::types::*;
35pub use config::channels::*;
36pub use http::*;
37pub use memory::types::*;
38pub use optimization::*;
39pub use routines::errors::*;
40pub use routines::types::*;
41pub use runtime::lease::*;
42pub use runtime::runs::*;
43pub use runtime::state::*;
44pub use runtime::worktrees::*;
45pub use shared_resources::types::*;
46pub use tandem_types::EngineEvent;
47pub use tandem_workflows::{WorkflowRunRecord, WorkflowRunStatus, WorkflowSourceRef};
48pub use util::build::*;
49pub use util::host::*;
50pub use util::time::*;
51pub use workflows::{
52 dispatch_workflow_event, execute_workflow, run_workflow_dispatcher, simulate_workflow_event,
53};
54
55pub fn normalize_absolute_workspace_root(raw: &str) -> Result<String, String> {
56 let trimmed = raw.trim();
57 if trimmed.is_empty() {
58 return Err("workspace_root is required".to_string());
59 }
60 let as_path = std::path::PathBuf::from(trimmed);
61 if !as_path.is_absolute() {
62 return Err("workspace_root must be an absolute path".to_string());
63 }
64 tandem_core::normalize_workspace_path(trimmed)
65 .ok_or_else(|| "workspace_root is invalid".to_string())
66}