Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,14 @@ jobs:
fail-fast: false
matrix:
partition:
- "1/16"
- "2/16"
- "3/16"
- "4/16"
- "5/16"
- "6/16"
- "7/16"
- "8/16"
- "9/16"
- "10/16"
- "11/16"
- "12/16"
- "13/16"
- "14/16"
- "15/16"
- "16/16"
- "1/8"
- "2/8"
- "3/8"
- "4/8"
- "5/8"
- "6/8"
- "7/8"
- "8/8"

steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ agent-client-protocol-trace-viewer = { path = "src/agent-client-protocol-trace-v
yopo = { package = "agent-client-protocol-yopo", path = "src/yopo" }

# Protocol
agent-client-protocol-schema = { version = "=0.13.5", features = ["tracing"] }
agent-client-protocol-schema = { version = "=0.13.6", features = ["tracing"] }

# Core async runtime
tokio = { version = "1.52", features = ["full"] }
Expand Down
8 changes: 2 additions & 6 deletions src/agent-client-protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,16 @@ unstable = [
"unstable_auth_methods",
"unstable_boolean_config",
"unstable_elicitation",
"unstable_end_turn_token_usage",
"unstable_mcp_over_acp",
"unstable_message_id",
"unstable_session_delete",
"unstable_session_fork",
"unstable_session_usage",
]
unstable_auth_methods = ["agent-client-protocol-schema/unstable_auth_methods"]
unstable_boolean_config = ["agent-client-protocol-schema/unstable_boolean_config"]
unstable_elicitation = ["agent-client-protocol-schema/unstable_elicitation"]
unstable_end_turn_token_usage = ["agent-client-protocol-schema/unstable_end_turn_token_usage"]
unstable_mcp_over_acp = ["agent-client-protocol-schema/unstable_mcp_over_acp"]
unstable_message_id = ["agent-client-protocol-schema/unstable_message_id"]
unstable_session_delete = ["agent-client-protocol-schema/unstable_session_delete"]
unstable_session_fork = ["agent-client-protocol-schema/unstable_session_fork"]
unstable_session_usage = ["agent-client-protocol-schema/unstable_session_usage"]
unstable_protocol_v2 = ["agent-client-protocol-schema/unstable_protocol_v2"]

[dependencies]
Expand Down
13 changes: 5 additions & 8 deletions src/agent-client-protocol/src/schema/client_to_agent/requests.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
use crate::schema::{
AuthenticateRequest, AuthenticateResponse, CloseSessionRequest, CloseSessionResponse,
InitializeRequest, InitializeResponse, ListSessionsRequest, ListSessionsResponse,
LoadSessionRequest, LoadSessionResponse, LogoutRequest, LogoutResponse, NewSessionRequest,
NewSessionResponse, PromptRequest, PromptResponse, ResumeSessionRequest, ResumeSessionResponse,
SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, SetSessionModeRequest,
SetSessionModeResponse,
DeleteSessionRequest, DeleteSessionResponse, InitializeRequest, InitializeResponse,
ListSessionsRequest, ListSessionsResponse, LoadSessionRequest, LoadSessionResponse,
LogoutRequest, LogoutResponse, NewSessionRequest, NewSessionResponse, PromptRequest,
PromptResponse, ResumeSessionRequest, ResumeSessionResponse, SetSessionConfigOptionRequest,
SetSessionConfigOptionResponse, SetSessionModeRequest, SetSessionModeResponse,
};
#[cfg(feature = "unstable_session_delete")]
use crate::schema::{DeleteSessionRequest, DeleteSessionResponse};
#[cfg(feature = "unstable_session_fork")]
use crate::schema::{ForkSessionRequest, ForkSessionResponse};

Expand All @@ -16,7 +14,6 @@ impl_jsonrpc_request!(AuthenticateRequest, AuthenticateResponse, "authenticate")
impl_jsonrpc_request!(LogoutRequest, LogoutResponse, "logout");
impl_jsonrpc_request!(LoadSessionRequest, LoadSessionResponse, "session/load");
impl_jsonrpc_request!(ListSessionsRequest, ListSessionsResponse, "session/list");
#[cfg(feature = "unstable_session_delete")]
impl_jsonrpc_request!(
DeleteSessionRequest,
DeleteSessionResponse,
Expand Down
2 changes: 0 additions & 2 deletions src/agent-client-protocol/src/schema/enum_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ impl_jsonrpc_request_enum!(ClientRequest {
NewSessionRequest => "session/new",
LoadSessionRequest => "session/load",
ListSessionsRequest => "session/list",
#[cfg(feature = "unstable_session_delete")]
DeleteSessionRequest => "session/delete",
#[cfg(feature = "unstable_session_fork")]
ForkSessionRequest => "session/fork",
Expand All @@ -38,7 +37,6 @@ impl_jsonrpc_response_enum!(AgentResponse {
NewSessionResponse => "session/new",
LoadSessionResponse => "session/load",
ListSessionsResponse => "session/list",
#[cfg(feature = "unstable_session_delete")]
DeleteSessionResponse => "session/delete",
#[cfg(feature = "unstable_session_fork")]
ForkSessionResponse => "session/fork",
Expand Down
52 changes: 0 additions & 52 deletions src/agent-client-protocol/src/schema/v2_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ impl_v2_jsonrpc_request!(
v2::ListSessionsResponse,
"session/list"
);
#[cfg(feature = "unstable_session_delete")]
impl_v2_jsonrpc_request!(
v2::DeleteSessionRequest,
v2::DeleteSessionResponse,
Expand Down Expand Up @@ -262,46 +261,11 @@ impl_v2_jsonrpc_notification!(v2::CancelNotification, "session/cancel");
#[cfg(feature = "unstable_mcp_over_acp")]
impl_v2_jsonrpc_notification!(v2::MessageMcpNotification, "mcp/message");

impl_v2_jsonrpc_request!(
v2::WriteTextFileRequest,
v2::WriteTextFileResponse,
"fs/write_text_file"
);
impl_v2_jsonrpc_request!(
v2::ReadTextFileRequest,
v2::ReadTextFileResponse,
"fs/read_text_file"
);
impl_v2_jsonrpc_request!(
v2::RequestPermissionRequest,
v2::RequestPermissionResponse,
"session/request_permission"
);
impl_v2_jsonrpc_request!(
v2::CreateTerminalRequest,
v2::CreateTerminalResponse,
"terminal/create"
);
impl_v2_jsonrpc_request!(
v2::TerminalOutputRequest,
v2::TerminalOutputResponse,
"terminal/output"
);
impl_v2_jsonrpc_request!(
v2::ReleaseTerminalRequest,
v2::ReleaseTerminalResponse,
"terminal/release"
);
impl_v2_jsonrpc_request!(
v2::WaitForTerminalExitRequest,
v2::WaitForTerminalExitResponse,
"terminal/wait_for_exit"
);
impl_v2_jsonrpc_request!(
v2::KillTerminalRequest,
v2::KillTerminalResponse,
"terminal/kill"
);
#[cfg(feature = "unstable_elicitation")]
impl_v2_jsonrpc_request!(
v2::CreateElicitationRequest,
Expand All @@ -328,7 +292,6 @@ impl_v2_jsonrpc_request_enum!(v2::ClientRequest {
NewSessionRequest => "session/new",
LoadSessionRequest => "session/load",
ListSessionsRequest => "session/list",
#[cfg(feature = "unstable_session_delete")]
DeleteSessionRequest => "session/delete",
#[cfg(feature = "unstable_session_fork")]
ForkSessionRequest => "session/fork",
Expand All @@ -348,7 +311,6 @@ impl_v2_jsonrpc_response_enum!(v2::AgentResponse {
NewSessionResponse => "session/new",
LoadSessionResponse => "session/load",
ListSessionsResponse => "session/list",
#[cfg(feature = "unstable_session_delete")]
DeleteSessionResponse => "session/delete",
#[cfg(feature = "unstable_session_fork")]
ForkSessionResponse => "session/fork",
Expand All @@ -369,14 +331,7 @@ impl_v2_jsonrpc_notification_enum!(v2::ClientNotification {
});

impl_v2_jsonrpc_request_enum!(v2::AgentRequest {
WriteTextFileRequest => "fs/write_text_file",
ReadTextFileRequest => "fs/read_text_file",
RequestPermissionRequest => "session/request_permission",
CreateTerminalRequest => "terminal/create",
TerminalOutputRequest => "terminal/output",
ReleaseTerminalRequest => "terminal/release",
WaitForTerminalExitRequest => "terminal/wait_for_exit",
KillTerminalRequest => "terminal/kill",
#[cfg(feature = "unstable_elicitation")]
CreateElicitationRequest => "elicitation/create",
#[cfg(feature = "unstable_mcp_over_acp")]
Expand All @@ -389,14 +344,7 @@ impl_v2_jsonrpc_request_enum!(v2::AgentRequest {
});

impl_v2_jsonrpc_response_enum!(v2::ClientResponse {
WriteTextFileResponse => "fs/write_text_file",
ReadTextFileResponse => "fs/read_text_file",
RequestPermissionResponse => "session/request_permission",
CreateTerminalResponse => "terminal/create",
TerminalOutputResponse => "terminal/output",
ReleaseTerminalResponse => "terminal/release",
WaitForTerminalExitResponse => "terminal/wait_for_exit",
KillTerminalResponse => "terminal/kill",
#[cfg(feature = "unstable_elicitation")]
CreateElicitationResponse => "elicitation/create",
#[cfg(feature = "unstable_mcp_over_acp")]
Expand Down
2 changes: 0 additions & 2 deletions src/agent-client-protocol/tests/schema_session_delete.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg(feature = "unstable_session_delete")]

use agent_client_protocol::schema::{ClientRequest, DeleteSessionRequest, DeleteSessionResponse};
use agent_client_protocol::{JsonRpcMessage, JsonRpcRequest, JsonRpcResponse};
use serde_json::json;
Expand Down