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.
@@ -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
@@ -0,0 +1,6 @@
1
+ # rbs-inline does not emit `extend self`, so without this reopen the module's
2
+ # methods aren't visible as singleton methods.
3
+
4
+ module ACP::AgentConnection::OptionalMethod::Logout
5
+ extend ::ACP::AgentConnection::OptionalMethod::Logout
6
+ end
@@ -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.3.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: