acp-sdk 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -0
- data/README.md +11 -4
- data/lib/acp/agent_connection/client.rb +28 -14
- data/lib/acp/agent_connection/optional_method/logout.rb +21 -0
- data/lib/acp/agent_connection.rb +66 -13
- data/lib/acp/client_connection.rb +148 -5
- data/lib/acp/request_error.rb +30 -0
- data/lib/acp/transport/stderr_logger.rb +17 -0
- data/lib/acp/transport/stdio.rb +15 -6
- data/lib/acp/types/session_update/tool_call.rb +8 -0
- data/lib/acp/types/session_update/tool_call_update.rb +8 -0
- data/lib/acp/types/tool_call.rb +8 -0
- data/lib/acp/types/tool_call_update.rb +8 -0
- data/lib/acp/version.rb +1 -1
- data/sig/generated/acp/agent_connection/client.rbs +8 -7
- data/sig/generated/acp/agent_connection/optional_method/logout.rbs +13 -0
- data/sig/generated/acp/agent_connection.rbs +30 -4
- data/sig/generated/acp/client_connection.rbs +67 -2
- data/sig/generated/acp/request_error.rbs +24 -0
- data/sig/generated/acp/transport/stderr_logger.rbs +13 -0
- data/sig/generated/acp/transport/stdio.rbs +9 -2
- data/sig/generated/acp/types/session_update/tool_call.rbs +5 -1
- data/sig/generated/acp/types/session_update/tool_call_update.rbs +5 -1
- data/sig/generated/acp/types/tool_call.rbs +5 -1
- data/sig/generated/acp/types/tool_call_update.rbs +5 -1
- data/sig/manual/acp/agent_connection/optional_method/logout.rbs +6 -0
- data/sig/manual/acp/agent_connection.rbs +7 -0
- data/sig/manual/acp/transport.rbs +8 -0
- metadata +7 -1
|
@@ -13,6 +13,9 @@ class ACP::Types::ToolCallUpdate
|
|
|
13
13
|
# @dynamic title
|
|
14
14
|
attr_reader title: String?
|
|
15
15
|
|
|
16
|
+
# @dynamic name
|
|
17
|
+
attr_reader name: String?
|
|
18
|
+
|
|
16
19
|
# @dynamic content
|
|
17
20
|
attr_reader content: Array[ACP::Types::ToolCallContent::t]?
|
|
18
21
|
|
|
@@ -32,13 +35,14 @@ class ACP::Types::ToolCallUpdate
|
|
|
32
35
|
# @rbs kind: String?
|
|
33
36
|
# @rbs status: String?
|
|
34
37
|
# @rbs title: String?
|
|
38
|
+
# @rbs name: String?
|
|
35
39
|
# @rbs content: Array[ACP::Types::ToolCallContent::t]?
|
|
36
40
|
# @rbs locations: Array[ACP::Types::ToolCallLocation]?
|
|
37
41
|
# @rbs raw_input: untyped
|
|
38
42
|
# @rbs raw_output: untyped
|
|
39
43
|
# @rbs meta: Hash[String, untyped]?
|
|
40
44
|
# @rbs return: void
|
|
41
|
-
def initialize: (tool_call_id: String, ?kind: String?, ?status: String?, ?title: String?, ?content: Array[ACP::Types::ToolCallContent::t]?, ?locations: Array[ACP::Types::ToolCallLocation]?, ?raw_input: untyped, ?raw_output: untyped, ?meta: Hash[String, untyped]?) -> void
|
|
45
|
+
def initialize: (tool_call_id: String, ?kind: String?, ?status: String?, ?title: String?, ?name: String?, ?content: Array[ACP::Types::ToolCallContent::t]?, ?locations: Array[ACP::Types::ToolCallLocation]?, ?raw_input: untyped, ?raw_output: untyped, ?meta: Hash[String, untyped]?) -> void
|
|
42
46
|
|
|
43
47
|
# @rbs hash: Hash[String, untyped]
|
|
44
48
|
# @rbs return: ACP::Types::ToolCallUpdate
|
|
@@ -32,6 +32,10 @@ class ACP::AgentConnection
|
|
|
32
32
|
def delete_session: (ACP::Types::DeleteSessionRequest) -> (ACP::Types::DeleteSessionResponse | ACP::RequestError)
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
interface _Logout
|
|
36
|
+
def logout: (ACP::Types::LogoutRequest) -> (ACP::Types::LogoutResponse | ACP::RequestError)
|
|
37
|
+
end
|
|
38
|
+
|
|
35
39
|
interface _ChangeSessionMode
|
|
36
40
|
def change_session_mode: (ACP::Types::SetSessionModeRequest) -> (ACP::Types::SetSessionModeResponse | ACP::RequestError)
|
|
37
41
|
end
|
|
@@ -48,6 +52,7 @@ class ACP::AgentConnection
|
|
|
48
52
|
include _ResumeSession
|
|
49
53
|
include _CloseSession
|
|
50
54
|
include _DeleteSession
|
|
55
|
+
include _Logout
|
|
51
56
|
include _ChangeSessionMode
|
|
52
57
|
include _ChangeSessionConfigOption
|
|
53
58
|
end
|
|
@@ -74,6 +79,8 @@ class ACP::AgentConnection
|
|
|
74
79
|
def wait_for_terminal_exit: (ACP::Types::WaitForTerminalExitRequest) -> (ACP::Types::WaitForTerminalExitResponse | ACP::RequestError)
|
|
75
80
|
def kill_terminal: (ACP::Types::KillTerminalRequest) -> (ACP::Types::KillTerminalResponse | ACP::RequestError)
|
|
76
81
|
def release_terminal: (ACP::Types::ReleaseTerminalRequest) -> (ACP::Types::ReleaseTerminalResponse | ACP::RequestError)
|
|
82
|
+
def create_elicitation: (ACP::Types::CreateElicitationRequest request) -> (ACP::Types::CreateElicitationResponse | ACP::RequestError)
|
|
83
|
+
def complete_elicitation: (ACP::Types::CompleteElicitationNotification notification) -> void
|
|
77
84
|
def capabilities: () -> ACP::Types::ClientCapabilities?
|
|
78
85
|
end
|
|
79
86
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
module ACP::Transport
|
|
2
|
+
# Receives the reports the SDK logs for dropped messages and swallowed
|
|
3
|
+
# errors; a log message is a single line with no trailing newline.
|
|
4
|
+
interface _Logger
|
|
5
|
+
def warn: (String message) -> void
|
|
6
|
+
def error: (String message) -> void
|
|
7
|
+
end
|
|
8
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acp-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jake Bottrall
|
|
@@ -40,6 +40,7 @@ files:
|
|
|
40
40
|
- lib/acp/agent_connection/optional_method/delete_session.rb
|
|
41
41
|
- lib/acp/agent_connection/optional_method/list_sessions.rb
|
|
42
42
|
- lib/acp/agent_connection/optional_method/load_session.rb
|
|
43
|
+
- lib/acp/agent_connection/optional_method/logout.rb
|
|
43
44
|
- lib/acp/agent_connection/optional_method/resume_session.rb
|
|
44
45
|
- lib/acp/agent_process.rb
|
|
45
46
|
- lib/acp/client_connection.rb
|
|
@@ -47,6 +48,7 @@ files:
|
|
|
47
48
|
- lib/acp/sdk.rb
|
|
48
49
|
- lib/acp/transport.rb
|
|
49
50
|
- lib/acp/transport/reply.rb
|
|
51
|
+
- lib/acp/transport/stderr_logger.rb
|
|
50
52
|
- lib/acp/transport/stdio.rb
|
|
51
53
|
- lib/acp/types.rb
|
|
52
54
|
- lib/acp/types/agent_auth_capabilities.rb
|
|
@@ -253,6 +255,7 @@ files:
|
|
|
253
255
|
- sig/generated/acp/agent_connection/optional_method/delete_session.rbs
|
|
254
256
|
- sig/generated/acp/agent_connection/optional_method/list_sessions.rbs
|
|
255
257
|
- sig/generated/acp/agent_connection/optional_method/load_session.rbs
|
|
258
|
+
- sig/generated/acp/agent_connection/optional_method/logout.rbs
|
|
256
259
|
- sig/generated/acp/agent_connection/optional_method/resume_session.rbs
|
|
257
260
|
- sig/generated/acp/agent_process.rbs
|
|
258
261
|
- sig/generated/acp/client_connection.rbs
|
|
@@ -260,6 +263,7 @@ files:
|
|
|
260
263
|
- sig/generated/acp/sdk.rbs
|
|
261
264
|
- sig/generated/acp/transport.rbs
|
|
262
265
|
- sig/generated/acp/transport/reply.rbs
|
|
266
|
+
- sig/generated/acp/transport/stderr_logger.rbs
|
|
263
267
|
- sig/generated/acp/transport/stdio.rbs
|
|
264
268
|
- sig/generated/acp/types.rbs
|
|
265
269
|
- sig/generated/acp/types/agent_auth_capabilities.rbs
|
|
@@ -464,9 +468,11 @@ files:
|
|
|
464
468
|
- sig/manual/acp/agent_connection/optional_method/delete_session.rbs
|
|
465
469
|
- sig/manual/acp/agent_connection/optional_method/list_sessions.rbs
|
|
466
470
|
- sig/manual/acp/agent_connection/optional_method/load_session.rbs
|
|
471
|
+
- sig/manual/acp/agent_connection/optional_method/logout.rbs
|
|
467
472
|
- sig/manual/acp/agent_connection/optional_method/resume_session.rbs
|
|
468
473
|
- sig/manual/acp/agent_process.rbs
|
|
469
474
|
- sig/manual/acp/client_connection.rbs
|
|
475
|
+
- sig/manual/acp/transport.rbs
|
|
470
476
|
- sig/manual/acp/transport/stdio.rbs
|
|
471
477
|
homepage: https://github.com/bottrall/acp-sdk
|
|
472
478
|
licenses:
|