chore: upgrade sacp to 11.0.0 stable and agent-client-protocol-schema to 0.11
- Upgrade sacp/sacp-tokio from 11.0.0-alpha.1 to 11.0.0 stable - Upgrade agent-client-protocol-schema from 0.10 to 0.11 - Rebase vendor/sacp-tokio patches (kill_tree, CREATE_NO_WINDOW, stderr truncation) onto official 11.0.0 baseline - Adapt renamed types: FileSystemCapability → FileSystemCapabilities, KillTerminalCommandRequest/Response → KillTerminalRequest/Response Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
14
src-tauri/vendor/sacp-tokio/src/lib.rs
vendored
14
src-tauri/vendor/sacp-tokio/src/lib.rs
vendored
@@ -7,7 +7,7 @@
|
||||
mod acp_agent;
|
||||
|
||||
pub use acp_agent::{AcpAgent, LineDirection};
|
||||
use sacp::{ByteStreams, Role, ConnectTo};
|
||||
use sacp::{ByteStreams, ConnectTo, Role};
|
||||
use std::sync::Arc;
|
||||
use tokio_util::compat::{TokioAsyncReadCompatExt, TokioAsyncWriteCompatExt};
|
||||
|
||||
@@ -38,7 +38,10 @@ impl Default for Stdio {
|
||||
}
|
||||
|
||||
impl<Counterpart: Role> ConnectTo<Counterpart> for Stdio {
|
||||
async fn connect_to(self, client: impl ConnectTo<Counterpart::Counterpart>) -> Result<(), sacp::Error> {
|
||||
async fn connect_to(
|
||||
self,
|
||||
client: impl ConnectTo<Counterpart::Counterpart>,
|
||||
) -> Result<(), sacp::Error> {
|
||||
if let Some(callback) = self.debug_callback {
|
||||
use futures::AsyncBufReadExt;
|
||||
use futures::AsyncWriteExt;
|
||||
@@ -73,8 +76,11 @@ impl<Counterpart: Role> ConnectTo<Counterpart> for Stdio {
|
||||
))
|
||||
as std::pin::Pin<Box<dyn futures::Sink<String, Error = std::io::Error> + Send>>;
|
||||
|
||||
ConnectTo::<Counterpart>::connect_to(sacp::Lines::new(outgoing_sink, incoming_lines), client)
|
||||
.await
|
||||
ConnectTo::<Counterpart>::connect_to(
|
||||
sacp::Lines::new(outgoing_sink, incoming_lines),
|
||||
client,
|
||||
)
|
||||
.await
|
||||
} else {
|
||||
// Without debug: use simple ByteStreams
|
||||
ConnectTo::<Counterpart>::connect_to(
|
||||
|
||||
Reference in New Issue
Block a user