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

Function make_orchestrator

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

Create a test orchestrator with a real FallbackWatcher.

(dir: &TempDir)

Source from the content-addressed store, hash-verified

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

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected