Skip to content

Commit 4c88acf

Browse files
committed
Move the wire protocol into agent-core and announce protocol 2 in serve
1 parent c5550cb commit 4c88acf

5 files changed

Lines changed: 572 additions & 498 deletions

File tree

‎crates/agent-core/src/core.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,14 @@ impl AgentCore {
278278
self
279279
}
280280

281+
pub fn session_id(&self) -> &str {
282+
self.session.session_id()
283+
}
284+
285+
pub fn cwd(&self) -> &std::path::Path {
286+
&self.cwd
287+
}
288+
281289
pub fn startup_events(&self) -> Vec<AgentEvent> {
282290
let model_config = self.config.current_model_config();
283291
let mut events = vec![

‎crates/agent-core/src/lib.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub mod logging;
1111
mod mcp;
1212
mod oauth;
1313
mod prompt;
14+
pub mod protocol;
1415
mod providers;
1516
mod secrets;
1617
mod session;

0 commit comments

Comments
 (0)