INNER CODE UNIT · Rust
stderr
xuzhougeng/wisp-science · crates/wisp-acp/src/lib.rs:291
pub fn stderr(&self) -> String {
self.stderr.snapshot()
}
pub async fn next_event(&self) -> Option<AcpSessionEvent> {
self.event_rx.lock().await.recv().await
}
pub async fn authenticate(&self, method_id: impl Into<String>) -> Result<(), AcpError> {
self.request(|reply| Command::Authenticate(method_id.into(), reply))
.await
}
pub async fn new_session(
&self,
cwd: impl AsRef<Path>,
mcp_servers: Vec<McpServer>,
) -> Result<AcpSessionStart, AcpError> {