Start the session and open a turn. Returns the session's Draft view.
(&self)
| 142 | |
| 143 | /// Start the session and open a turn. Returns the session's Draft view. |
| 144 | fn start_turn(&self) -> String { |
| 145 | self.hook("session-start"); |
| 146 | self.hook("user-prompt"); |
| 147 | let view = fs::read_to_string(self.root().join(".atomic/current_view")).unwrap(); |
| 148 | view.trim().to_string() |
| 149 | } |
| 150 | |
| 151 | fn write(&self, path: &str, content: &str) { |
| 152 | let full = self.root().join(path); |
no test coverage detected