MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / make_orchestrator

Function make_orchestrator

atomic-agent/src/turn/orchestrator/tests.rs:19–28  ·  view source on GitHub ↗

Create a test orchestrator with a real FallbackWatcher.

(dir: &TempDir)

Source from the content-addressed store, hash-verified

17
18/// Create a test orchestrator with a real FallbackWatcher.
19fn make_orchestrator(dir: &TempDir) -> TurnOrchestrator {
20 // Create .atomic directory structure
21 fs::create_dir_all(dir.path().join(".atomic/sessions")).unwrap();
22
23 let session_store = SessionStore::for_repo(dir.path()).unwrap();
24 let watcher_config = WatcherConfig::new(dir.path());
25 let watcher = FallbackWatcher::new(watcher_config);
26
27 TurnOrchestrator::with_watcher(dir.path(), session_store, Box::new(watcher))
28}
29
30fn session_start_event(session_id: &str) -> TurnEvent {
31 TurnEvent::new(session_id, HookType::SessionStart)

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected