acp-sdk 0.9.0 → 0.11.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.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -0
  3. data/README.md +20 -8
  4. data/lib/acp/agent_connection/client.rb +31 -13
  5. data/lib/acp/agent_connection/optional_method/spec.rb +42 -0
  6. data/lib/acp/agent_connection/optional_method.rb +36 -0
  7. data/lib/acp/agent_connection.rb +67 -20
  8. data/lib/acp/agent_process.rb +0 -13
  9. data/lib/acp/client_connection/streams.rb +183 -0
  10. data/lib/acp/client_connection.rb +280 -338
  11. data/lib/acp/protocol.rb +33 -0
  12. data/lib/acp/request_error.rb +13 -13
  13. data/lib/acp/transport/cancellation.rb +13 -3
  14. data/lib/acp/transport/reply.rb +0 -2
  15. data/lib/acp/transport/stderr_logger.rb +1 -2
  16. data/lib/acp/transport/stdio.rb +25 -26
  17. data/lib/acp/types/audio_content.rb +3 -46
  18. data/lib/acp/types/auth_method_terminal.rb +3 -59
  19. data/lib/acp/types/available_commands_update.rb +3 -32
  20. data/lib/acp/types/boolean_property_schema.rb +3 -41
  21. data/lib/acp/types/check.rb +210 -0
  22. data/lib/acp/types/config_option_update.rb +3 -32
  23. data/lib/acp/types/content.rb +3 -29
  24. data/lib/acp/types/{elicitation_url_mode → create_elicitation_request/mode/form}/scope.rb +1 -1
  25. data/lib/acp/types/create_elicitation_request/mode/form.rb +3 -3
  26. data/lib/acp/types/{elicitation_form_mode → create_elicitation_request/mode/url}/scope.rb +1 -1
  27. data/lib/acp/types/create_elicitation_request/mode/url.rb +3 -3
  28. data/lib/acp/types/current_mode_update.rb +3 -29
  29. data/lib/acp/types/diff.rb +3 -41
  30. data/lib/acp/types/elicitation_accept_action.rb +3 -26
  31. data/lib/acp/types/elicitation_form_mode.rb +3 -33
  32. data/lib/acp/types/elicitation_url_mode.rb +3 -35
  33. data/lib/acp/types/embedded_resource.rb +3 -44
  34. data/lib/acp/types/image_content.rb +3 -58
  35. data/lib/acp/types/integer_property_schema.rb +3 -60
  36. data/lib/acp/types/mcp_server_http.rb +3 -44
  37. data/lib/acp/types/mcp_server_sse.rb +3 -44
  38. data/lib/acp/types/multi_select_property_schema.rb +3 -70
  39. data/lib/acp/types/number_property_schema.rb +3 -60
  40. data/lib/acp/types/parse_error.rb +37 -0
  41. data/lib/acp/types/plan.rb +3 -29
  42. data/lib/acp/types/resource_link.rb +3 -79
  43. data/lib/acp/types/selected_permission_outcome.rb +3 -26
  44. data/lib/acp/types/session_config_boolean.rb +3 -21
  45. data/lib/acp/types/session_config_select.rb +3 -33
  46. data/lib/acp/types/session_info_update.rb +3 -42
  47. data/lib/acp/types/string_multi_select_items.rb +3 -29
  48. data/lib/acp/types/string_property_schema.rb +3 -105
  49. data/lib/acp/types/terminal.rb +3 -29
  50. data/lib/acp/types/text_content.rb +3 -40
  51. data/lib/acp/types/tool_call.rb +3 -115
  52. data/lib/acp/types/unstable/compaction_summary_chunk.rb +3 -35
  53. data/lib/acp/types/unstable/compaction_update.rb +3 -56
  54. data/lib/acp/types/unstable/idle_state_update.rb +3 -40
  55. data/lib/acp/types/unstable/mcp_server_acp.rb +3 -35
  56. data/lib/acp/types/unstable/message_mcp_response/result.rb +1 -1
  57. data/lib/acp/types/unstable/nes_edit_suggestion.rb +3 -61
  58. data/lib/acp/types/unstable/nes_jump_suggestion.rb +3 -45
  59. data/lib/acp/types/unstable/nes_rename_suggestion.rb +3 -51
  60. data/lib/acp/types/unstable/nes_search_and_replace_suggestion.rb +3 -60
  61. data/lib/acp/types/unstable/notice.rb +3 -41
  62. data/lib/acp/types/unstable/plan_file.rb +3 -35
  63. data/lib/acp/types/unstable/plan_items.rb +3 -38
  64. data/lib/acp/types/unstable/plan_markdown.rb +3 -35
  65. data/lib/acp/types/unstable/plan_removed.rb +3 -26
  66. data/lib/acp/types/unstable/plan_update.rb +3 -33
  67. data/lib/acp/types/unstable/requires_action_state_update.rb +3 -21
  68. data/lib/acp/types/unstable/running_state_update.rb +3 -21
  69. data/lib/acp/types/unstable/session_message.rb +3 -56
  70. data/lib/acp/types/unstable/session_message_chunk.rb +3 -53
  71. data/lib/acp/types/unstable/subagent_update.rb +3 -65
  72. data/lib/acp/types/unstable/unknown_state_update.rb +3 -21
  73. data/lib/acp/types/unstable.rb +20 -20
  74. data/lib/acp/types/usage_update.rb +3 -41
  75. data/lib/acp/types.rb +7 -246
  76. data/lib/acp/version.rb +1 -1
  77. data/sig/generated/acp/agent_connection/client.rbs +25 -15
  78. data/sig/generated/acp/agent_connection/optional_method/spec.rbs +32 -0
  79. data/sig/generated/acp/agent_connection/optional_method.rbs +3 -0
  80. data/sig/generated/acp/agent_connection.rbs +34 -13
  81. data/sig/generated/acp/agent_process.rbs +0 -13
  82. data/sig/generated/acp/client_connection/streams.rbs +94 -0
  83. data/sig/generated/acp/client_connection.rbs +128 -131
  84. data/sig/generated/acp/protocol.rbs +9 -0
  85. data/sig/generated/acp/request_error.rbs +11 -13
  86. data/sig/generated/acp/transport/cancellation.rbs +9 -3
  87. data/sig/generated/acp/transport/reply.rbs +0 -2
  88. data/sig/generated/acp/transport/stderr_logger.rbs +1 -2
  89. data/sig/generated/acp/transport/stdio.rbs +14 -22
  90. data/sig/generated/acp/types/audio_content.rbs +1 -27
  91. data/sig/generated/acp/types/auth_method_terminal.rbs +1 -35
  92. data/sig/generated/acp/types/available_commands_update.rbs +1 -19
  93. data/sig/generated/acp/types/boolean_property_schema.rbs +1 -27
  94. data/sig/generated/acp/types/check.rbs +115 -0
  95. data/sig/generated/acp/types/config_option_update.rbs +1 -19
  96. data/sig/generated/acp/types/content.rbs +1 -19
  97. data/sig/generated/acp/types/{elicitation_url_mode → create_elicitation_request/mode/form}/scope.rbs +2 -2
  98. data/sig/generated/acp/types/create_elicitation_request/mode/form.rbs +3 -3
  99. data/sig/generated/acp/types/{elicitation_form_mode → create_elicitation_request/mode/url}/scope.rbs +2 -2
  100. data/sig/generated/acp/types/create_elicitation_request/mode/url.rbs +3 -3
  101. data/sig/generated/acp/types/current_mode_update.rbs +1 -19
  102. data/sig/generated/acp/types/diff.rbs +1 -27
  103. data/sig/generated/acp/types/elicitation_accept_action.rbs +1 -15
  104. data/sig/generated/acp/types/elicitation_form_mode.rbs +1 -19
  105. data/sig/generated/acp/types/elicitation_url_mode.rbs +1 -23
  106. data/sig/generated/acp/types/embedded_resource.rbs +1 -23
  107. data/sig/generated/acp/types/image_content.rbs +1 -31
  108. data/sig/generated/acp/types/integer_property_schema.rbs +1 -35
  109. data/sig/generated/acp/types/mcp_server_http.rbs +1 -27
  110. data/sig/generated/acp/types/mcp_server_sse.rbs +1 -27
  111. data/sig/generated/acp/types/multi_select_property_schema.rbs +1 -39
  112. data/sig/generated/acp/types/number_property_schema.rbs +1 -35
  113. data/sig/generated/acp/types/parse_error.rbs +22 -0
  114. data/sig/generated/acp/types/plan.rbs +1 -19
  115. data/sig/generated/acp/types/resource_link.rbs +1 -43
  116. data/sig/generated/acp/types/selected_permission_outcome.rbs +1 -19
  117. data/sig/generated/acp/types/session_config_boolean.rbs +1 -15
  118. data/sig/generated/acp/types/session_config_select.rbs +1 -19
  119. data/sig/generated/acp/types/session_info_update.rbs +1 -23
  120. data/sig/generated/acp/types/string_multi_select_items.rbs +1 -19
  121. data/sig/generated/acp/types/string_property_schema.rbs +1 -51
  122. data/sig/generated/acp/types/terminal.rbs +1 -19
  123. data/sig/generated/acp/types/text_content.rbs +1 -23
  124. data/sig/generated/acp/types/tool_call.rbs +1 -51
  125. data/sig/generated/acp/types/unstable/compaction_summary_chunk.rbs +1 -23
  126. data/sig/generated/acp/types/unstable/compaction_update.rbs +1 -31
  127. data/sig/generated/acp/types/unstable/idle_state_update.rbs +1 -23
  128. data/sig/generated/acp/types/unstable/mcp_server_acp.rbs +1 -23
  129. data/sig/generated/acp/types/unstable/nes_edit_suggestion.rbs +1 -31
  130. data/sig/generated/acp/types/unstable/nes_jump_suggestion.rbs +1 -27
  131. data/sig/generated/acp/types/unstable/nes_rename_suggestion.rbs +1 -31
  132. data/sig/generated/acp/types/unstable/nes_search_and_replace_suggestion.rbs +1 -35
  133. data/sig/generated/acp/types/unstable/notice.rbs +1 -27
  134. data/sig/generated/acp/types/unstable/plan_file.rbs +1 -23
  135. data/sig/generated/acp/types/unstable/plan_items.rbs +1 -23
  136. data/sig/generated/acp/types/unstable/plan_markdown.rbs +1 -23
  137. data/sig/generated/acp/types/unstable/plan_removed.rbs +1 -19
  138. data/sig/generated/acp/types/unstable/plan_update.rbs +1 -19
  139. data/sig/generated/acp/types/unstable/requires_action_state_update.rbs +1 -15
  140. data/sig/generated/acp/types/unstable/running_state_update.rbs +1 -15
  141. data/sig/generated/acp/types/unstable/session_message.rbs +1 -31
  142. data/sig/generated/acp/types/unstable/session_message_chunk.rbs +1 -31
  143. data/sig/generated/acp/types/unstable/subagent_update.rbs +1 -35
  144. data/sig/generated/acp/types/unstable/unknown_state_update.rbs +1 -15
  145. data/sig/generated/acp/types/usage_update.rbs +1 -27
  146. data/sig/generated/acp/types.rbs +6 -143
  147. data/sig/manual/acp/agent_connection.rbs +28 -28
  148. data/sig/manual/acp/client_connection.rbs +7 -2
  149. data/sig/manual/acp/{agent_connection/optional_method/logout.rbs → protocol.rbs} +3 -3
  150. data/sig/manual/acp/transport/stdio.rbs +0 -2
  151. data/sig/manual/acp/transport.rbs +25 -2
  152. metadata +17 -29
  153. data/lib/acp/agent_connection/optional_method/authenticate.rb +0 -21
  154. data/lib/acp/agent_connection/optional_method/close_session.rb +0 -21
  155. data/lib/acp/agent_connection/optional_method/delete_session.rb +0 -21
  156. data/lib/acp/agent_connection/optional_method/list_sessions.rb +0 -21
  157. data/lib/acp/agent_connection/optional_method/load_session.rb +0 -21
  158. data/lib/acp/agent_connection/optional_method/logout.rb +0 -21
  159. data/lib/acp/agent_connection/optional_method/resume_session.rb +0 -21
  160. data/lib/acp/types/content_chunk.rb +0 -40
  161. data/sig/generated/acp/agent_connection/optional_method/authenticate.rbs +0 -13
  162. data/sig/generated/acp/agent_connection/optional_method/close_session.rbs +0 -13
  163. data/sig/generated/acp/agent_connection/optional_method/delete_session.rbs +0 -13
  164. data/sig/generated/acp/agent_connection/optional_method/list_sessions.rbs +0 -13
  165. data/sig/generated/acp/agent_connection/optional_method/load_session.rbs +0 -13
  166. data/sig/generated/acp/agent_connection/optional_method/logout.rbs +0 -13
  167. data/sig/generated/acp/agent_connection/optional_method/resume_session.rbs +0 -13
  168. data/sig/generated/acp/types/content_chunk.rbs +0 -25
  169. data/sig/manual/acp/agent_connection/optional_method/authenticate.rbs +0 -6
  170. data/sig/manual/acp/agent_connection/optional_method/close_session.rbs +0 -6
  171. data/sig/manual/acp/agent_connection/optional_method/delete_session.rbs +0 -6
  172. data/sig/manual/acp/agent_connection/optional_method/list_sessions.rbs +0 -6
  173. data/sig/manual/acp/agent_connection/optional_method/load_session.rbs +0 -6
  174. data/sig/manual/acp/agent_connection/optional_method/resume_session.rbs +0 -6
@@ -1,21 +1,3 @@
1
1
  # Generated from lib/acp/types/available_commands_update.rb with RBS::Inline
2
2
 
3
- class ACP::Types::AvailableCommandsUpdate
4
- # @dynamic available_commands
5
- attr_reader available_commands: Array[ACP::Types::AvailableCommand]
6
-
7
- # @dynamic meta
8
- attr_reader meta: Hash[String, untyped]?
9
-
10
- # @rbs available_commands: Array[ACP::Types::AvailableCommand]
11
- # @rbs meta: Hash[String, untyped]?
12
- # @rbs return: void
13
- def initialize: (available_commands: Array[ACP::Types::AvailableCommand], ?meta: Hash[String, untyped]?) -> void
14
-
15
- # @rbs hash: Hash[String, untyped]
16
- # @rbs return: ACP::Types::AvailableCommandsUpdate
17
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::AvailableCommandsUpdate
18
-
19
- # @rbs return: Hash[String, untyped]
20
- def to_h: () -> Hash[String, untyped]
21
- end
3
+ class ACP::Types::AvailableCommandsUpdate = ACP::Types::SessionUpdate::AvailableCommandsUpdate
@@ -1,29 +1,3 @@
1
1
  # Generated from lib/acp/types/boolean_property_schema.rb with RBS::Inline
2
2
 
3
- class ACP::Types::BooleanPropertySchema
4
- # @dynamic title
5
- attr_reader title: String?
6
-
7
- # @dynamic description
8
- attr_reader description: String?
9
-
10
- # @dynamic default
11
- attr_reader default: bool?
12
-
13
- # @dynamic meta
14
- attr_reader meta: Hash[String, untyped]?
15
-
16
- # @rbs title: String?
17
- # @rbs description: String?
18
- # @rbs default: bool?
19
- # @rbs meta: Hash[String, untyped]?
20
- # @rbs return: void
21
- def initialize: (?title: String?, ?description: String?, ?default: bool?, ?meta: Hash[String, untyped]?) -> void
22
-
23
- # @rbs hash: Hash[String, untyped]
24
- # @rbs return: ACP::Types::BooleanPropertySchema
25
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::BooleanPropertySchema
26
-
27
- # @rbs return: Hash[String, untyped]
28
- def to_h: () -> Hash[String, untyped]
29
- end
3
+ class ACP::Types::BooleanPropertySchema = ACP::Types::ElicitationPropertySchema::BooleanPropertySchema
@@ -0,0 +1,115 @@
1
+ # Generated from lib/acp/types/check.rb with RBS::Inline
2
+
3
+ module ACP::Types::Check
4
+ # @rbs hash: Hash[String, untyped]
5
+ # @rbs key: String
6
+ # @rbs return: untyped
7
+ def self.key: (Hash[String, untyped] hash, String key) -> untyped
8
+
9
+ # @rbs value: untyped
10
+ # @rbs path: String | Array[String | Integer]
11
+ # @rbs allow_nil: bool
12
+ # @rbs allow_unset: bool
13
+ # @rbs return: untyped
14
+ def self.string: (untyped value, String | Array[String | Integer] path, ?allow_nil: bool, ?allow_unset: bool) -> untyped
15
+
16
+ # @rbs value: untyped
17
+ # @rbs path: String | Array[String | Integer]
18
+ # @rbs allow_nil: bool
19
+ # @rbs allow_unset: bool
20
+ # @rbs return: untyped
21
+ def self.boolean: (untyped value, String | Array[String | Integer] path, ?allow_nil: bool, ?allow_unset: bool) -> untyped
22
+
23
+ # @rbs value: untyped
24
+ # @rbs path: String | Array[String | Integer]
25
+ # @rbs min: Integer?
26
+ # @rbs max: Integer?
27
+ # @rbs allow_nil: bool
28
+ # @rbs allow_unset: bool
29
+ # @rbs return: untyped
30
+ def self.integer: (untyped value, String | Array[String | Integer] path, ?min: Integer?, ?max: Integer?, ?allow_nil: bool, ?allow_unset: bool) -> untyped
31
+
32
+ # @rbs value: untyped
33
+ # @rbs path: String | Array[String | Integer]
34
+ # @rbs min: Integer?
35
+ # @rbs max: Integer?
36
+ # @rbs allow_nil: bool
37
+ # @rbs allow_unset: bool
38
+ # @rbs return: untyped
39
+ def self.number: (untyped value, String | Array[String | Integer] path, ?min: Integer?, ?max: Integer?, ?allow_nil: bool, ?allow_unset: bool) -> untyped
40
+
41
+ # @rbs value: untyped
42
+ # @rbs path: String | Array[String | Integer]
43
+ # @rbs values: Array[untyped]
44
+ # @rbs allow_nil: bool
45
+ # @rbs allow_unset: bool
46
+ # @rbs return: untyped
47
+ def self.enum: (untyped value, String | Array[String | Integer] path, Array[untyped] values, ?allow_nil: bool, ?allow_unset: bool) -> untyped
48
+
49
+ # @rbs value: untyped
50
+ # @rbs path: String | Array[String | Integer]
51
+ # @rbs classes: Array[untyped]
52
+ # @rbs allow_nil: bool
53
+ # @rbs allow_unset: bool
54
+ # @rbs ?&items: (untyped, Array[String | Integer]) -> void
55
+ # @rbs return: untyped
56
+ def self.one_of: (untyped value, String | Array[String | Integer] path, Array[untyped] classes, ?allow_nil: bool, ?allow_unset: bool) ?{ (?) -> untyped } -> untyped
57
+
58
+ # @rbs value: untyped
59
+ # @rbs path: String | Array[String | Integer]
60
+ # @rbs allow_nil: bool
61
+ # @rbs allow_unset: bool
62
+ # @rbs &check: (untyped, Array[String | Integer]) -> void
63
+ # @rbs return: untyped
64
+ def self.hash: (untyped value, String | Array[String | Integer] path, ?allow_nil: bool, ?allow_unset: bool) { (untyped, Array[String | Integer]) -> void } -> untyped
65
+
66
+ # @rbs value: untyped
67
+ # @rbs path: String | Array[String | Integer]
68
+ # @rbs allow_nil: bool
69
+ # @rbs allow_unset: bool
70
+ # @rbs &check: (untyped, Array[String | Integer]) -> void
71
+ # @rbs return: untyped
72
+ def self.array: (untyped value, String | Array[String | Integer] path, ?allow_nil: bool, ?allow_unset: bool) { (untyped, Array[String | Integer]) -> void } -> untyped
73
+
74
+ # @rbs value: untyped
75
+ # @rbs path: String | Array[String | Integer]
76
+ # @rbs klass: untyped
77
+ # @rbs allow_nil: bool
78
+ # @rbs allow_unset: bool
79
+ # @rbs return: untyped
80
+ def self.object: (untyped value, String | Array[String | Integer] path, untyped klass, ?allow_nil: bool, ?allow_unset: bool) -> untyped
81
+
82
+ # @rbs value: untyped
83
+ # @rbs path: String | Array[String | Integer]
84
+ # @rbs klass: untyped
85
+ # @rbs allow_nil: bool
86
+ # @rbs allow_unset: bool
87
+ # @rbs return: untyped
88
+ def self.objects: (untyped value, String | Array[String | Integer] path, untyped klass, ?allow_nil: bool, ?allow_unset: bool) -> untyped
89
+
90
+ # @rbs value: untyped
91
+ # @rbs allow_nil: bool
92
+ # @rbs allow_unset: bool
93
+ # @rbs return: bool
94
+ def self.skipped?: (untyped value, bool allow_nil, bool allow_unset) -> bool
95
+
96
+ # @rbs path: String | Array[String | Integer]
97
+ # @rbs return: Array[String | Integer]
98
+ def self.segments: (String | Array[String | Integer] path) -> Array[String | Integer]
99
+
100
+ # @rbs value: untyped
101
+ # @rbs return: String
102
+ def self.describe: (untyped value) -> String
103
+
104
+ # @rbs value: Numeric
105
+ # @rbs min: Integer?
106
+ # @rbs max: Integer?
107
+ # @rbs return: bool
108
+ def self.within?: (Numeric value, Integer? min, Integer? max) -> bool
109
+
110
+ # @rbs name: String
111
+ # @rbs min: Integer?
112
+ # @rbs max: Integer?
113
+ # @rbs return: String
114
+ def self.bounded: (String name, Integer? min, Integer? max) -> String
115
+ end
@@ -1,21 +1,3 @@
1
1
  # Generated from lib/acp/types/config_option_update.rb with RBS::Inline
2
2
 
3
- class ACP::Types::ConfigOptionUpdate
4
- # @dynamic config_options
5
- attr_reader config_options: Array[ACP::Types::SessionConfigOption]
6
-
7
- # @dynamic meta
8
- attr_reader meta: Hash[String, untyped]?
9
-
10
- # @rbs config_options: Array[ACP::Types::SessionConfigOption]
11
- # @rbs meta: Hash[String, untyped]?
12
- # @rbs return: void
13
- def initialize: (config_options: Array[ACP::Types::SessionConfigOption], ?meta: Hash[String, untyped]?) -> void
14
-
15
- # @rbs hash: Hash[String, untyped]
16
- # @rbs return: ACP::Types::ConfigOptionUpdate
17
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ConfigOptionUpdate
18
-
19
- # @rbs return: Hash[String, untyped]
20
- def to_h: () -> Hash[String, untyped]
21
- end
3
+ class ACP::Types::ConfigOptionUpdate = ACP::Types::SessionUpdate::ConfigOptionUpdate
@@ -1,21 +1,3 @@
1
1
  # Generated from lib/acp/types/content.rb with RBS::Inline
2
2
 
3
- class ACP::Types::Content
4
- # @dynamic content
5
- attr_reader content: ACP::Types::ContentBlock::t
6
-
7
- # @dynamic meta
8
- attr_reader meta: Hash[String, untyped]?
9
-
10
- # @rbs content: ACP::Types::ContentBlock::t
11
- # @rbs meta: Hash[String, untyped]?
12
- # @rbs return: void
13
- def initialize: (content: ACP::Types::ContentBlock::t, ?meta: Hash[String, untyped]?) -> void
14
-
15
- # @rbs hash: Hash[String, untyped]
16
- # @rbs return: ACP::Types::Content
17
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Content
18
-
19
- # @rbs return: Hash[String, untyped]
20
- def to_h: () -> Hash[String, untyped]
21
- end
3
+ class ACP::Types::Content = ACP::Types::ToolCallContent::Content
@@ -1,6 +1,6 @@
1
- # Generated from lib/acp/types/elicitation_url_mode/scope.rb with RBS::Inline
1
+ # Generated from lib/acp/types/create_elicitation_request/mode/form/scope.rb with RBS::Inline
2
2
 
3
- module ACP::Types::ElicitationUrlMode::Scope
3
+ module ACP::Types::CreateElicitationRequest::Mode::Form::Scope
4
4
  type t = ACP::Types::ElicitationSessionScope | ACP::Types::ElicitationRequestScope | Hash[String, untyped]
5
5
 
6
6
  # @rbs hash: Hash[String, untyped]
@@ -5,12 +5,12 @@ class ACP::Types::CreateElicitationRequest::Mode::Form
5
5
  attr_reader requested_schema: ACP::Types::ElicitationSchema
6
6
 
7
7
  # @dynamic scope
8
- attr_reader scope: ACP::Types::ElicitationFormMode::Scope::t
8
+ attr_reader scope: ACP::Types::CreateElicitationRequest::Mode::Form::Scope::t
9
9
 
10
10
  # @rbs requested_schema: ACP::Types::ElicitationSchema
11
- # @rbs scope: ACP::Types::ElicitationFormMode::Scope::t
11
+ # @rbs scope: ACP::Types::CreateElicitationRequest::Mode::Form::Scope::t
12
12
  # @rbs return: void
13
- def initialize: (requested_schema: ACP::Types::ElicitationSchema, scope: ACP::Types::ElicitationFormMode::Scope::t) -> void
13
+ def initialize: (requested_schema: ACP::Types::ElicitationSchema, scope: ACP::Types::CreateElicitationRequest::Mode::Form::Scope::t) -> void
14
14
 
15
15
  # @rbs hash: Hash[String, untyped]
16
16
  # @rbs return: ACP::Types::CreateElicitationRequest::Mode::Form
@@ -1,6 +1,6 @@
1
- # Generated from lib/acp/types/elicitation_form_mode/scope.rb with RBS::Inline
1
+ # Generated from lib/acp/types/create_elicitation_request/mode/url/scope.rb with RBS::Inline
2
2
 
3
- module ACP::Types::ElicitationFormMode::Scope
3
+ module ACP::Types::CreateElicitationRequest::Mode::Url::Scope
4
4
  type t = ACP::Types::ElicitationSessionScope | ACP::Types::ElicitationRequestScope | Hash[String, untyped]
5
5
 
6
6
  # @rbs hash: Hash[String, untyped]
@@ -8,13 +8,13 @@ class ACP::Types::CreateElicitationRequest::Mode::Url
8
8
  attr_reader url: String
9
9
 
10
10
  # @dynamic scope
11
- attr_reader scope: ACP::Types::ElicitationUrlMode::Scope::t
11
+ attr_reader scope: ACP::Types::CreateElicitationRequest::Mode::Url::Scope::t
12
12
 
13
13
  # @rbs elicitation_id: String
14
14
  # @rbs url: String
15
- # @rbs scope: ACP::Types::ElicitationUrlMode::Scope::t
15
+ # @rbs scope: ACP::Types::CreateElicitationRequest::Mode::Url::Scope::t
16
16
  # @rbs return: void
17
- def initialize: (elicitation_id: String, url: String, scope: ACP::Types::ElicitationUrlMode::Scope::t) -> void
17
+ def initialize: (elicitation_id: String, url: String, scope: ACP::Types::CreateElicitationRequest::Mode::Url::Scope::t) -> void
18
18
 
19
19
  # @rbs hash: Hash[String, untyped]
20
20
  # @rbs return: ACP::Types::CreateElicitationRequest::Mode::Url
@@ -1,21 +1,3 @@
1
1
  # Generated from lib/acp/types/current_mode_update.rb with RBS::Inline
2
2
 
3
- class ACP::Types::CurrentModeUpdate
4
- # @dynamic current_mode_id
5
- attr_reader current_mode_id: String
6
-
7
- # @dynamic meta
8
- attr_reader meta: Hash[String, untyped]?
9
-
10
- # @rbs current_mode_id: String
11
- # @rbs meta: Hash[String, untyped]?
12
- # @rbs return: void
13
- def initialize: (current_mode_id: String, ?meta: Hash[String, untyped]?) -> void
14
-
15
- # @rbs hash: Hash[String, untyped]
16
- # @rbs return: ACP::Types::CurrentModeUpdate
17
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CurrentModeUpdate
18
-
19
- # @rbs return: Hash[String, untyped]
20
- def to_h: () -> Hash[String, untyped]
21
- end
3
+ class ACP::Types::CurrentModeUpdate = ACP::Types::SessionUpdate::CurrentModeUpdate
@@ -1,29 +1,3 @@
1
1
  # Generated from lib/acp/types/diff.rb with RBS::Inline
2
2
 
3
- class ACP::Types::Diff
4
- # @dynamic path
5
- attr_reader path: String
6
-
7
- # @dynamic old_text
8
- attr_reader old_text: String?
9
-
10
- # @dynamic new_text
11
- attr_reader new_text: String
12
-
13
- # @dynamic meta
14
- attr_reader meta: Hash[String, untyped]?
15
-
16
- # @rbs path: String
17
- # @rbs old_text: String?
18
- # @rbs new_text: String
19
- # @rbs meta: Hash[String, untyped]?
20
- # @rbs return: void
21
- def initialize: (path: String, new_text: String, ?old_text: String?, ?meta: Hash[String, untyped]?) -> void
22
-
23
- # @rbs hash: Hash[String, untyped]
24
- # @rbs return: ACP::Types::Diff
25
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Diff
26
-
27
- # @rbs return: Hash[String, untyped]
28
- def to_h: () -> Hash[String, untyped]
29
- end
3
+ class ACP::Types::Diff = ACP::Types::ToolCallContent::Diff
@@ -1,17 +1,3 @@
1
1
  # Generated from lib/acp/types/elicitation_accept_action.rb with RBS::Inline
2
2
 
3
- class ACP::Types::ElicitationAcceptAction
4
- # @dynamic content
5
- attr_reader content: Hash[String, String | Integer | Numeric | bool | Array[String]]?
6
-
7
- # @rbs content: (Hash[String, String | Integer | Numeric | bool | Array[String]])?
8
- # @rbs return: void
9
- def initialize: (?content: Hash[String, String | Integer | Numeric | bool | Array[String]]?) -> void
10
-
11
- # @rbs hash: Hash[String, untyped]
12
- # @rbs return: ACP::Types::ElicitationAcceptAction
13
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationAcceptAction
14
-
15
- # @rbs return: Hash[String, untyped]
16
- def to_h: () -> Hash[String, untyped]
17
- end
3
+ class ACP::Types::ElicitationAcceptAction = ACP::Types::CreateElicitationResponse::Action::Accept
@@ -1,21 +1,3 @@
1
1
  # Generated from lib/acp/types/elicitation_form_mode.rb with RBS::Inline
2
2
 
3
- class ACP::Types::ElicitationFormMode
4
- # @dynamic requested_schema
5
- attr_reader requested_schema: ACP::Types::ElicitationSchema
6
-
7
- # @dynamic scope
8
- attr_reader scope: ACP::Types::ElicitationFormMode::Scope::t
9
-
10
- # @rbs requested_schema: ACP::Types::ElicitationSchema
11
- # @rbs scope: ACP::Types::ElicitationFormMode::Scope::t
12
- # @rbs return: void
13
- def initialize: (requested_schema: ACP::Types::ElicitationSchema, scope: ACP::Types::ElicitationFormMode::Scope::t) -> void
14
-
15
- # @rbs hash: Hash[String, untyped]
16
- # @rbs return: ACP::Types::ElicitationFormMode
17
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationFormMode
18
-
19
- # @rbs return: Hash[String, untyped]
20
- def to_h: () -> Hash[String, untyped]
21
- end
3
+ class ACP::Types::ElicitationFormMode = ACP::Types::CreateElicitationRequest::Mode::Form
@@ -1,25 +1,3 @@
1
1
  # Generated from lib/acp/types/elicitation_url_mode.rb with RBS::Inline
2
2
 
3
- class ACP::Types::ElicitationUrlMode
4
- # @dynamic elicitation_id
5
- attr_reader elicitation_id: String
6
-
7
- # @dynamic url
8
- attr_reader url: String
9
-
10
- # @dynamic scope
11
- attr_reader scope: ACP::Types::ElicitationUrlMode::Scope::t
12
-
13
- # @rbs elicitation_id: String
14
- # @rbs url: String
15
- # @rbs scope: ACP::Types::ElicitationUrlMode::Scope::t
16
- # @rbs return: void
17
- def initialize: (elicitation_id: String, url: String, scope: ACP::Types::ElicitationUrlMode::Scope::t) -> void
18
-
19
- # @rbs hash: Hash[String, untyped]
20
- # @rbs return: ACP::Types::ElicitationUrlMode
21
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ElicitationUrlMode
22
-
23
- # @rbs return: Hash[String, untyped]
24
- def to_h: () -> Hash[String, untyped]
25
- end
3
+ class ACP::Types::ElicitationUrlMode = ACP::Types::CreateElicitationRequest::Mode::Url
@@ -1,25 +1,3 @@
1
1
  # Generated from lib/acp/types/embedded_resource.rb with RBS::Inline
2
2
 
3
- class ACP::Types::EmbeddedResource
4
- # @dynamic annotations
5
- attr_reader annotations: ACP::Types::Annotations?
6
-
7
- # @dynamic resource
8
- attr_reader resource: ACP::Types::EmbeddedResourceResource::t
9
-
10
- # @dynamic meta
11
- attr_reader meta: Hash[String, untyped]?
12
-
13
- # @rbs annotations: ACP::Types::Annotations?
14
- # @rbs resource: ACP::Types::EmbeddedResourceResource::t
15
- # @rbs meta: Hash[String, untyped]?
16
- # @rbs return: void
17
- def initialize: (resource: ACP::Types::EmbeddedResourceResource::t, ?annotations: ACP::Types::Annotations?, ?meta: Hash[String, untyped]?) -> void
18
-
19
- # @rbs hash: Hash[String, untyped]
20
- # @rbs return: ACP::Types::EmbeddedResource
21
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::EmbeddedResource
22
-
23
- # @rbs return: Hash[String, untyped]
24
- def to_h: () -> Hash[String, untyped]
25
- end
3
+ class ACP::Types::EmbeddedResource = ACP::Types::ContentBlock::Resource
@@ -1,33 +1,3 @@
1
1
  # Generated from lib/acp/types/image_content.rb with RBS::Inline
2
2
 
3
- class ACP::Types::ImageContent
4
- # @dynamic annotations
5
- attr_reader annotations: ACP::Types::Annotations?
6
-
7
- # @dynamic data
8
- attr_reader data: String
9
-
10
- # @dynamic mime_type
11
- attr_reader mime_type: String
12
-
13
- # @dynamic uri
14
- attr_reader uri: String?
15
-
16
- # @dynamic meta
17
- attr_reader meta: Hash[String, untyped]?
18
-
19
- # @rbs annotations: ACP::Types::Annotations?
20
- # @rbs data: String
21
- # @rbs mime_type: String
22
- # @rbs uri: String?
23
- # @rbs meta: Hash[String, untyped]?
24
- # @rbs return: void
25
- def initialize: (data: String, mime_type: String, ?annotations: ACP::Types::Annotations?, ?uri: String?, ?meta: Hash[String, untyped]?) -> void
26
-
27
- # @rbs hash: Hash[String, untyped]
28
- # @rbs return: ACP::Types::ImageContent
29
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ImageContent
30
-
31
- # @rbs return: Hash[String, untyped]
32
- def to_h: () -> Hash[String, untyped]
33
- end
3
+ class ACP::Types::ImageContent = ACP::Types::ContentBlock::Image
@@ -1,37 +1,3 @@
1
1
  # Generated from lib/acp/types/integer_property_schema.rb with RBS::Inline
2
2
 
3
- class ACP::Types::IntegerPropertySchema
4
- # @dynamic title
5
- attr_reader title: String?
6
-
7
- # @dynamic description
8
- attr_reader description: String?
9
-
10
- # @dynamic minimum
11
- attr_reader minimum: Integer?
12
-
13
- # @dynamic maximum
14
- attr_reader maximum: Integer?
15
-
16
- # @dynamic default
17
- attr_reader default: Integer?
18
-
19
- # @dynamic meta
20
- attr_reader meta: Hash[String, untyped]?
21
-
22
- # @rbs title: String?
23
- # @rbs description: String?
24
- # @rbs minimum: Integer?
25
- # @rbs maximum: Integer?
26
- # @rbs default: Integer?
27
- # @rbs meta: Hash[String, untyped]?
28
- # @rbs return: void
29
- def initialize: (?title: String?, ?description: String?, ?minimum: Integer?, ?maximum: Integer?, ?default: Integer?, ?meta: Hash[String, untyped]?) -> void
30
-
31
- # @rbs hash: Hash[String, untyped]
32
- # @rbs return: ACP::Types::IntegerPropertySchema
33
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::IntegerPropertySchema
34
-
35
- # @rbs return: Hash[String, untyped]
36
- def to_h: () -> Hash[String, untyped]
37
- end
3
+ class ACP::Types::IntegerPropertySchema = ACP::Types::ElicitationPropertySchema::IntegerPropertySchema
@@ -1,29 +1,3 @@
1
1
  # Generated from lib/acp/types/mcp_server_http.rb with RBS::Inline
2
2
 
3
- class ACP::Types::McpServerHttp
4
- # @dynamic name
5
- attr_reader name: String
6
-
7
- # @dynamic url
8
- attr_reader url: String
9
-
10
- # @dynamic headers
11
- attr_reader headers: Array[ACP::Types::HttpHeader]
12
-
13
- # @dynamic meta
14
- attr_reader meta: Hash[String, untyped]?
15
-
16
- # @rbs name: String
17
- # @rbs url: String
18
- # @rbs headers: Array[ACP::Types::HttpHeader]
19
- # @rbs meta: Hash[String, untyped]?
20
- # @rbs return: void
21
- def initialize: (name: String, url: String, headers: Array[ACP::Types::HttpHeader], ?meta: Hash[String, untyped]?) -> void
22
-
23
- # @rbs hash: Hash[String, untyped]
24
- # @rbs return: ACP::Types::McpServerHttp
25
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::McpServerHttp
26
-
27
- # @rbs return: Hash[String, untyped]
28
- def to_h: () -> Hash[String, untyped]
29
- end
3
+ class ACP::Types::McpServerHttp = ACP::Types::McpServer::Http
@@ -1,29 +1,3 @@
1
1
  # Generated from lib/acp/types/mcp_server_sse.rb with RBS::Inline
2
2
 
3
- class ACP::Types::McpServerSse
4
- # @dynamic name
5
- attr_reader name: String
6
-
7
- # @dynamic url
8
- attr_reader url: String
9
-
10
- # @dynamic headers
11
- attr_reader headers: Array[ACP::Types::HttpHeader]
12
-
13
- # @dynamic meta
14
- attr_reader meta: Hash[String, untyped]?
15
-
16
- # @rbs name: String
17
- # @rbs url: String
18
- # @rbs headers: Array[ACP::Types::HttpHeader]
19
- # @rbs meta: Hash[String, untyped]?
20
- # @rbs return: void
21
- def initialize: (name: String, url: String, headers: Array[ACP::Types::HttpHeader], ?meta: Hash[String, untyped]?) -> void
22
-
23
- # @rbs hash: Hash[String, untyped]
24
- # @rbs return: ACP::Types::McpServerSse
25
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::McpServerSse
26
-
27
- # @rbs return: Hash[String, untyped]
28
- def to_h: () -> Hash[String, untyped]
29
- end
3
+ class ACP::Types::McpServerSse = ACP::Types::McpServer::Sse
@@ -1,41 +1,3 @@
1
1
  # Generated from lib/acp/types/multi_select_property_schema.rb with RBS::Inline
2
2
 
3
- class ACP::Types::MultiSelectPropertySchema
4
- # @dynamic title
5
- attr_reader title: String?
6
-
7
- # @dynamic description
8
- attr_reader description: String?
9
-
10
- # @dynamic min_items
11
- attr_reader min_items: Integer?
12
-
13
- # @dynamic max_items
14
- attr_reader max_items: Integer?
15
-
16
- # @dynamic items
17
- attr_reader items: ACP::Types::MultiSelectItems::t
18
-
19
- # @dynamic default
20
- attr_reader default: Array[String]?
21
-
22
- # @dynamic meta
23
- attr_reader meta: Hash[String, untyped]?
24
-
25
- # @rbs title: String?
26
- # @rbs description: String?
27
- # @rbs min_items: Integer?
28
- # @rbs max_items: Integer?
29
- # @rbs items: ACP::Types::MultiSelectItems::t
30
- # @rbs default: Array[String]?
31
- # @rbs meta: Hash[String, untyped]?
32
- # @rbs return: void
33
- def initialize: (items: ACP::Types::MultiSelectItems::t, ?title: String?, ?description: String?, ?min_items: Integer?, ?max_items: Integer?, ?default: Array[String]?, ?meta: Hash[String, untyped]?) -> void
34
-
35
- # @rbs hash: Hash[String, untyped]
36
- # @rbs return: ACP::Types::MultiSelectPropertySchema
37
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::MultiSelectPropertySchema
38
-
39
- # @rbs return: Hash[String, untyped]
40
- def to_h: () -> Hash[String, untyped]
41
- end
3
+ class ACP::Types::MultiSelectPropertySchema = ACP::Types::ElicitationPropertySchema::MultiSelectPropertySchema
@@ -1,37 +1,3 @@
1
1
  # Generated from lib/acp/types/number_property_schema.rb with RBS::Inline
2
2
 
3
- class ACP::Types::NumberPropertySchema
4
- # @dynamic title
5
- attr_reader title: String?
6
-
7
- # @dynamic description
8
- attr_reader description: String?
9
-
10
- # @dynamic minimum
11
- attr_reader minimum: Numeric?
12
-
13
- # @dynamic maximum
14
- attr_reader maximum: Numeric?
15
-
16
- # @dynamic default
17
- attr_reader default: Numeric?
18
-
19
- # @dynamic meta
20
- attr_reader meta: Hash[String, untyped]?
21
-
22
- # @rbs title: String?
23
- # @rbs description: String?
24
- # @rbs minimum: Numeric?
25
- # @rbs maximum: Numeric?
26
- # @rbs default: Numeric?
27
- # @rbs meta: Hash[String, untyped]?
28
- # @rbs return: void
29
- def initialize: (?title: String?, ?description: String?, ?minimum: Numeric?, ?maximum: Numeric?, ?default: Numeric?, ?meta: Hash[String, untyped]?) -> void
30
-
31
- # @rbs hash: Hash[String, untyped]
32
- # @rbs return: ACP::Types::NumberPropertySchema
33
- def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::NumberPropertySchema
34
-
35
- # @rbs return: Hash[String, untyped]
36
- def to_h: () -> Hash[String, untyped]
37
- end
3
+ class ACP::Types::NumberPropertySchema = ACP::Types::ElicitationPropertySchema::NumberPropertySchema
@@ -0,0 +1,22 @@
1
+ # Generated from lib/acp/types/parse_error.rb with RBS::Inline
2
+
3
+ class ACP::Types::ParseError < StandardError
4
+ @segments: Array[String | Integer]
5
+
6
+ @detail: String
7
+
8
+ # @rbs segments: Array[String | Integer]
9
+ # @rbs detail: String
10
+ # @rbs return: void
11
+ def initialize: (Array[String | Integer] segments, String detail) -> void
12
+
13
+ # @dynamic segments
14
+ attr_reader segments: Array[String | Integer]
15
+
16
+ # @rbs return: String
17
+ def path: () -> String
18
+
19
+ # @rbs *segments: (String | Integer)
20
+ # @rbs return: ACP::Types::ParseError
21
+ def prefix: (*String | Integer segments) -> ACP::Types::ParseError
22
+ end