1#![allow(dead_code)]
9
10mod internal;
11
12pub mod channel {
13 pub use crate::internal::channels::channel::*;
14}
15
16pub mod channel_adapter {
17 pub use crate::internal::channels::channel_adapter::*;
18}
19
20pub mod observability {
21 pub use crate::internal::observability::*;
22}
23
24pub mod storage {
25 pub use crate::internal::storage::*;
26}
27
28pub mod tool_runtime {
29 pub use crate::internal::tool_runtime::*;
30}
31
32pub mod worker {
33 pub use crate::internal::worker::*;
34}
35
36pub mod a2a;
37pub mod acp_subagent;
38pub mod agent_engine;
39pub mod alerts;
40pub mod approval_broker;
41pub mod chat_commands;
42pub mod chat_turn_queue;
43pub mod checkpoint;
44pub mod clawhub;
45pub mod codex_auth;
46pub mod completion_contract;
47pub mod config;
48pub mod config_persistence;
49pub mod context_references;
50pub mod context_window;
51pub mod embedding;
52pub mod headless;
53pub mod hooks;
54pub mod http_client;
55pub mod learning_foundry;
56pub mod llm;
57pub mod mcp;
58pub mod memory_backend;
59pub mod memory_service;
60pub mod messages;
61pub mod mood;
62pub mod plugins;
63pub mod prompt_cache;
64pub mod relationship;
65pub mod run_control;
66pub mod schedule_lifecycle;
67pub mod setup;
68pub mod setup_def;
69pub mod skill_audit;
70pub mod skill_management;
71pub mod skill_review;
72pub mod skills;
73pub mod subdirectory_hints;
74pub mod supervision;
75pub mod title_generator;
76pub mod tool_executor;
77pub mod tool_guardrails;
78pub mod tools;
79pub mod trust_report;
80pub mod turn_recovery;
81pub mod voice;
82
83pub mod channels;
84pub mod runtime;
85
86pub use internal::app::builtin_skills;
87pub use internal::app::logging;
88pub use internal::app::transcribe;
89pub use internal::runtime::{
90 AgentHandle, ControlRequest, ExecutionContext, ExecutionResult, LocalWorker, RemoteWorker,
91 RemoteWorkerOptions, RunController, RunExecutor, RunHandle, Runtime, RuntimeBuildError,
92 RuntimeBuilder, RuntimeStats, Worker, WorkerConnection, WorkerTransport,
93};
94pub use internal::storage::memory;
95pub use internal::worker::{WebSocketWorkerTransport, WorkerHost};
96pub use microclaw_core::error;
97pub use microclaw_core::llm_types;
98
99#[cfg(test)]
100pub mod test_support {
101 use std::sync::{Mutex, MutexGuard, OnceLock};
102
103 pub fn env_lock() -> MutexGuard<'static, ()> {
104 static ENV_LOCK: OnceLock<Mutex<()>> = OnceLock::new();
105 ENV_LOCK
106 .get_or_init(|| Mutex::new(()))
107 .lock()
108 .expect("env lock poisoned")
109 }
110}