acp-sdk 0.8.0 → 0.10.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 (317) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +18 -4
  4. data/lib/acp/agent_connection/client.rb +31 -1
  5. data/lib/acp/agent_connection/optional_method/disable_provider.rb +23 -0
  6. data/lib/acp/agent_connection/optional_method/fork_session.rb +23 -0
  7. data/lib/acp/agent_connection/optional_method/list_providers.rb +23 -0
  8. data/lib/acp/agent_connection/optional_method/set_provider.rb +23 -0
  9. data/lib/acp/agent_connection.rb +73 -3
  10. data/lib/acp/client_connection.rb +108 -9
  11. data/lib/acp/request_error.rb +10 -0
  12. data/lib/acp/sdk.rb +3 -1
  13. data/lib/acp/transport/cancellation.rb +42 -0
  14. data/lib/acp/transport/stdio.rb +72 -1
  15. data/lib/acp/types/unstable/accept_nes_notification.rb +41 -0
  16. data/lib/acp/types/unstable/agent_capabilities.rb +122 -0
  17. data/lib/acp/types/unstable/client_capabilities.rb +127 -0
  18. data/lib/acp/types/unstable/client_nes_capabilities.rb +62 -0
  19. data/lib/acp/types/unstable/client_session_capabilities.rb +57 -0
  20. data/lib/acp/types/unstable/close_nes_request.rb +35 -0
  21. data/lib/acp/types/unstable/close_nes_response.rb +27 -0
  22. data/lib/acp/types/unstable/compaction_status.rb +11 -0
  23. data/lib/acp/types/unstable/compaction_summary_chunk.rb +41 -0
  24. data/lib/acp/types/unstable/compaction_update.rb +62 -0
  25. data/lib/acp/types/unstable/did_change_document_notification.rb +65 -0
  26. data/lib/acp/types/unstable/did_close_document_notification.rb +41 -0
  27. data/lib/acp/types/unstable/did_focus_document_notification.rb +74 -0
  28. data/lib/acp/types/unstable/did_open_document_notification.rb +66 -0
  29. data/lib/acp/types/unstable/did_save_document_notification.rb +41 -0
  30. data/lib/acp/types/unstable/disable_provider_request.rb +35 -0
  31. data/lib/acp/types/unstable/disable_provider_response.rb +27 -0
  32. data/lib/acp/types/unstable/fork_session_request.rb +69 -0
  33. data/lib/acp/types/unstable/fork_session_response.rb +55 -0
  34. data/lib/acp/types/unstable/idle_state_update.rb +46 -0
  35. data/lib/acp/types/unstable/initialize_response.rb +72 -0
  36. data/lib/acp/types/unstable/list_providers_request.rb +27 -0
  37. data/lib/acp/types/unstable/list_providers_response.rb +35 -0
  38. data/lib/acp/types/unstable/llm_protocol.rb +12 -0
  39. data/lib/acp/types/unstable/mcp_capabilities.rb +47 -0
  40. data/lib/acp/types/unstable/mcp_error.rb +41 -0
  41. data/lib/acp/types/unstable/mcp_server/acp.rb +41 -0
  42. data/lib/acp/types/unstable/mcp_server/http.rb +50 -0
  43. data/lib/acp/types/unstable/mcp_server/sse.rb +50 -0
  44. data/lib/acp/types/unstable/mcp_server.rb +25 -0
  45. data/lib/acp/types/unstable/mcp_server_acp.rb +41 -0
  46. data/lib/acp/types/unstable/message_mcp_notification.rb +59 -0
  47. data/lib/acp/types/unstable/message_mcp_request.rb +59 -0
  48. data/lib/acp/types/unstable/message_mcp_response/error.rb +35 -0
  49. data/lib/acp/types/unstable/message_mcp_response/result.rb +32 -0
  50. data/lib/acp/types/unstable/message_mcp_response.rb +23 -0
  51. data/lib/acp/types/unstable/nes_capabilities.rb +51 -0
  52. data/lib/acp/types/unstable/nes_context_capabilities.rb +111 -0
  53. data/lib/acp/types/unstable/nes_diagnostic.rb +57 -0
  54. data/lib/acp/types/unstable/nes_diagnostic_severity.rb +11 -0
  55. data/lib/acp/types/unstable/nes_diagnostics_capabilities.rb +27 -0
  56. data/lib/acp/types/unstable/nes_document_did_change_capabilities.rb +35 -0
  57. data/lib/acp/types/unstable/nes_document_did_close_capabilities.rb +27 -0
  58. data/lib/acp/types/unstable/nes_document_did_focus_capabilities.rb +27 -0
  59. data/lib/acp/types/unstable/nes_document_did_open_capabilities.rb +27 -0
  60. data/lib/acp/types/unstable/nes_document_did_save_capabilities.rb +27 -0
  61. data/lib/acp/types/unstable/nes_document_event_capabilities.rb +91 -0
  62. data/lib/acp/types/unstable/nes_edit_history_capabilities.rb +35 -0
  63. data/lib/acp/types/unstable/nes_edit_history_entry.rb +41 -0
  64. data/lib/acp/types/unstable/nes_edit_suggestion.rb +67 -0
  65. data/lib/acp/types/unstable/nes_event_capabilities.rb +40 -0
  66. data/lib/acp/types/unstable/nes_excerpt.rb +47 -0
  67. data/lib/acp/types/unstable/nes_jump_capabilities.rb +27 -0
  68. data/lib/acp/types/unstable/nes_jump_suggestion.rb +51 -0
  69. data/lib/acp/types/unstable/nes_open_file.rb +64 -0
  70. data/lib/acp/types/unstable/nes_open_files_capabilities.rb +27 -0
  71. data/lib/acp/types/unstable/nes_recent_file.rb +47 -0
  72. data/lib/acp/types/unstable/nes_recent_files_capabilities.rb +35 -0
  73. data/lib/acp/types/unstable/nes_reject_reason.rb +11 -0
  74. data/lib/acp/types/unstable/nes_related_snippet.rb +40 -0
  75. data/lib/acp/types/unstable/nes_related_snippets_capabilities.rb +27 -0
  76. data/lib/acp/types/unstable/nes_rename_capabilities.rb +27 -0
  77. data/lib/acp/types/unstable/nes_rename_suggestion.rb +57 -0
  78. data/lib/acp/types/unstable/nes_repository.rb +47 -0
  79. data/lib/acp/types/unstable/nes_search_and_replace_capabilities.rb +27 -0
  80. data/lib/acp/types/unstable/nes_search_and_replace_suggestion.rb +66 -0
  81. data/lib/acp/types/unstable/nes_suggest_context.rb +95 -0
  82. data/lib/acp/types/unstable/nes_suggestion/edit.rb +68 -0
  83. data/lib/acp/types/unstable/nes_suggestion/jump.rb +51 -0
  84. data/lib/acp/types/unstable/nes_suggestion/rename.rb +64 -0
  85. data/lib/acp/types/unstable/nes_suggestion/searchandreplace.rb +67 -0
  86. data/lib/acp/types/unstable/nes_suggestion.rb +25 -0
  87. data/lib/acp/types/unstable/nes_text_edit.rb +41 -0
  88. data/lib/acp/types/unstable/nes_trigger_kind.rb +10 -0
  89. data/lib/acp/types/unstable/nes_user_action.rb +63 -0
  90. data/lib/acp/types/unstable/nes_user_actions_capabilities.rb +35 -0
  91. data/lib/acp/types/unstable/notice.rb +47 -0
  92. data/lib/acp/types/unstable/notice_severity.rb +10 -0
  93. data/lib/acp/types/unstable/plan_capabilities.rb +27 -0
  94. data/lib/acp/types/unstable/plan_file.rb +41 -0
  95. data/lib/acp/types/unstable/plan_items.rb +44 -0
  96. data/lib/acp/types/unstable/plan_markdown.rb +41 -0
  97. data/lib/acp/types/unstable/plan_removed.rb +32 -0
  98. data/lib/acp/types/unstable/plan_update.rb +39 -0
  99. data/lib/acp/types/unstable/plan_update_content/file.rb +41 -0
  100. data/lib/acp/types/unstable/plan_update_content/items.rb +44 -0
  101. data/lib/acp/types/unstable/plan_update_content/markdown.rb +41 -0
  102. data/lib/acp/types/unstable/plan_update_content.rb +23 -0
  103. data/lib/acp/types/unstable/position.rb +41 -0
  104. data/lib/acp/types/unstable/position_encoding_kind.rb +10 -0
  105. data/lib/acp/types/unstable/prompt_response.rb +45 -0
  106. data/lib/acp/types/unstable/provider_current_config.rb +41 -0
  107. data/lib/acp/types/unstable/provider_info.rb +64 -0
  108. data/lib/acp/types/unstable/providers_capabilities.rb +27 -0
  109. data/lib/acp/types/unstable/range.rb +41 -0
  110. data/lib/acp/types/unstable/reject_nes_notification.rb +52 -0
  111. data/lib/acp/types/unstable/requires_action_state_update.rb +27 -0
  112. data/lib/acp/types/unstable/running_state_update.rb +27 -0
  113. data/lib/acp/types/unstable/session_cancel_capabilities.rb +27 -0
  114. data/lib/acp/types/unstable/session_capabilities.rb +93 -0
  115. data/lib/acp/types/unstable/session_fork_capabilities.rb +27 -0
  116. data/lib/acp/types/unstable/session_message.rb +62 -0
  117. data/lib/acp/types/unstable/session_message_chunk.rb +59 -0
  118. data/lib/acp/types/unstable/session_update/agent_message_chunk.rb +46 -0
  119. data/lib/acp/types/unstable/session_update/agent_thought_chunk.rb +46 -0
  120. data/lib/acp/types/unstable/session_update/available_commands_update.rb +42 -0
  121. data/lib/acp/types/unstable/session_update/compaction_summary_chunk.rb +46 -0
  122. data/lib/acp/types/unstable/session_update/compaction_update.rb +63 -0
  123. data/lib/acp/types/unstable/session_update/config_option_update.rb +42 -0
  124. data/lib/acp/types/unstable/session_update/current_mode_update.rb +35 -0
  125. data/lib/acp/types/unstable/session_update/notice.rb +53 -0
  126. data/lib/acp/types/unstable/session_update/plan.rb +35 -0
  127. data/lib/acp/types/unstable/session_update/plan_removed.rb +32 -0
  128. data/lib/acp/types/unstable/session_update/plan_update.rb +39 -0
  129. data/lib/acp/types/unstable/session_update/session_info_update.rb +49 -0
  130. data/lib/acp/types/unstable/session_update/session_message.rb +63 -0
  131. data/lib/acp/types/unstable/session_update/session_message_chunk.rb +60 -0
  132. data/lib/acp/types/unstable/session_update/subagent_update.rb +72 -0
  133. data/lib/acp/types/unstable/session_update/tool_call.rb +122 -0
  134. data/lib/acp/types/unstable/session_update/tool_call_update.rb +122 -0
  135. data/lib/acp/types/unstable/session_update/usage_update.rb +47 -0
  136. data/lib/acp/types/unstable/session_update/user_message_chunk.rb +46 -0
  137. data/lib/acp/types/unstable/session_update.rb +55 -0
  138. data/lib/acp/types/unstable/set_provider_request.rb +62 -0
  139. data/lib/acp/types/unstable/set_provider_response.rb +27 -0
  140. data/lib/acp/types/unstable/start_nes_request.rb +64 -0
  141. data/lib/acp/types/unstable/start_nes_response.rb +35 -0
  142. data/lib/acp/types/unstable/state_update/idle.rb +46 -0
  143. data/lib/acp/types/unstable/state_update/requires_action.rb +27 -0
  144. data/lib/acp/types/unstable/state_update/running.rb +27 -0
  145. data/lib/acp/types/unstable/state_update/unknown.rb +27 -0
  146. data/lib/acp/types/unstable/state_update.rb +25 -0
  147. data/lib/acp/types/unstable/subagent_capabilities.rb +27 -0
  148. data/lib/acp/types/unstable/subagent_session_capabilities.rb +40 -0
  149. data/lib/acp/types/unstable/subagent_update.rb +71 -0
  150. data/lib/acp/types/unstable/suggest_nes_request.rb +93 -0
  151. data/lib/acp/types/unstable/suggest_nes_response.rb +35 -0
  152. data/lib/acp/types/unstable/text_document_content_change_event.rb +41 -0
  153. data/lib/acp/types/unstable/text_document_sync_kind.rb +9 -0
  154. data/lib/acp/types/unstable/unknown_state_update.rb +27 -0
  155. data/lib/acp/types/unstable/usage.rb +91 -0
  156. data/lib/acp/types/unstable/workspace_folder.rb +41 -0
  157. data/lib/acp/types/unstable.rb +155 -0
  158. data/lib/acp/version.rb +1 -1
  159. data/sig/generated/acp/agent_connection/client.rbs +20 -1
  160. data/sig/generated/acp/agent_connection/optional_method/disable_provider.rbs +13 -0
  161. data/sig/generated/acp/agent_connection/optional_method/fork_session.rbs +13 -0
  162. data/sig/generated/acp/agent_connection/optional_method/list_providers.rbs +13 -0
  163. data/sig/generated/acp/agent_connection/optional_method/set_provider.rbs +13 -0
  164. data/sig/generated/acp/agent_connection.rbs +29 -0
  165. data/sig/generated/acp/client_connection.rbs +57 -1
  166. data/sig/generated/acp/request_error.rbs +8 -0
  167. data/sig/generated/acp/transport/cancellation.rbs +32 -0
  168. data/sig/generated/acp/transport/stdio.rbs +42 -0
  169. data/sig/generated/acp/types/unstable/accept_nes_notification.rbs +25 -0
  170. data/sig/generated/acp/types/unstable/agent_capabilities.rbs +49 -0
  171. data/sig/generated/acp/types/unstable/client_capabilities.rbs +53 -0
  172. data/sig/generated/acp/types/unstable/client_nes_capabilities.rbs +29 -0
  173. data/sig/generated/acp/types/unstable/client_session_capabilities.rbs +29 -0
  174. data/sig/generated/acp/types/unstable/close_nes_request.rbs +21 -0
  175. data/sig/generated/acp/types/unstable/close_nes_response.rbs +17 -0
  176. data/sig/generated/acp/types/unstable/compaction_status.rbs +11 -0
  177. data/sig/generated/acp/types/unstable/compaction_summary_chunk.rbs +25 -0
  178. data/sig/generated/acp/types/unstable/compaction_update.rbs +33 -0
  179. data/sig/generated/acp/types/unstable/did_change_document_notification.rbs +33 -0
  180. data/sig/generated/acp/types/unstable/did_close_document_notification.rbs +25 -0
  181. data/sig/generated/acp/types/unstable/did_focus_document_notification.rbs +37 -0
  182. data/sig/generated/acp/types/unstable/did_open_document_notification.rbs +37 -0
  183. data/sig/generated/acp/types/unstable/did_save_document_notification.rbs +25 -0
  184. data/sig/generated/acp/types/unstable/disable_provider_request.rbs +21 -0
  185. data/sig/generated/acp/types/unstable/disable_provider_response.rbs +17 -0
  186. data/sig/generated/acp/types/unstable/fork_session_request.rbs +33 -0
  187. data/sig/generated/acp/types/unstable/fork_session_response.rbs +29 -0
  188. data/sig/generated/acp/types/unstable/idle_state_update.rbs +25 -0
  189. data/sig/generated/acp/types/unstable/initialize_response.rbs +33 -0
  190. data/sig/generated/acp/types/unstable/list_providers_request.rbs +17 -0
  191. data/sig/generated/acp/types/unstable/list_providers_response.rbs +21 -0
  192. data/sig/generated/acp/types/unstable/llm_protocol.rbs +13 -0
  193. data/sig/generated/acp/types/unstable/mcp_capabilities.rbs +29 -0
  194. data/sig/generated/acp/types/unstable/mcp_error.rbs +25 -0
  195. data/sig/generated/acp/types/unstable/mcp_server/acp.rbs +25 -0
  196. data/sig/generated/acp/types/unstable/mcp_server/http.rbs +29 -0
  197. data/sig/generated/acp/types/unstable/mcp_server/sse.rbs +29 -0
  198. data/sig/generated/acp/types/unstable/mcp_server.rbs +9 -0
  199. data/sig/generated/acp/types/unstable/mcp_server_acp.rbs +25 -0
  200. data/sig/generated/acp/types/unstable/message_mcp_notification.rbs +33 -0
  201. data/sig/generated/acp/types/unstable/message_mcp_request.rbs +33 -0
  202. data/sig/generated/acp/types/unstable/message_mcp_response/error.rbs +21 -0
  203. data/sig/generated/acp/types/unstable/message_mcp_response/result.rbs +21 -0
  204. data/sig/generated/acp/types/unstable/message_mcp_response.rbs +9 -0
  205. data/sig/generated/acp/types/unstable/nes_capabilities.rbs +25 -0
  206. data/sig/generated/acp/types/unstable/nes_context_capabilities.rbs +41 -0
  207. data/sig/generated/acp/types/unstable/nes_diagnostic.rbs +33 -0
  208. data/sig/generated/acp/types/unstable/nes_diagnostic_severity.rbs +11 -0
  209. data/sig/generated/acp/types/unstable/nes_diagnostics_capabilities.rbs +17 -0
  210. data/sig/generated/acp/types/unstable/nes_document_did_change_capabilities.rbs +21 -0
  211. data/sig/generated/acp/types/unstable/nes_document_did_close_capabilities.rbs +17 -0
  212. data/sig/generated/acp/types/unstable/nes_document_did_focus_capabilities.rbs +17 -0
  213. data/sig/generated/acp/types/unstable/nes_document_did_open_capabilities.rbs +17 -0
  214. data/sig/generated/acp/types/unstable/nes_document_did_save_capabilities.rbs +17 -0
  215. data/sig/generated/acp/types/unstable/nes_document_event_capabilities.rbs +37 -0
  216. data/sig/generated/acp/types/unstable/nes_edit_history_capabilities.rbs +21 -0
  217. data/sig/generated/acp/types/unstable/nes_edit_history_entry.rbs +25 -0
  218. data/sig/generated/acp/types/unstable/nes_edit_suggestion.rbs +33 -0
  219. data/sig/generated/acp/types/unstable/nes_event_capabilities.rbs +21 -0
  220. data/sig/generated/acp/types/unstable/nes_excerpt.rbs +29 -0
  221. data/sig/generated/acp/types/unstable/nes_jump_capabilities.rbs +17 -0
  222. data/sig/generated/acp/types/unstable/nes_jump_suggestion.rbs +29 -0
  223. data/sig/generated/acp/types/unstable/nes_open_file.rbs +33 -0
  224. data/sig/generated/acp/types/unstable/nes_open_files_capabilities.rbs +17 -0
  225. data/sig/generated/acp/types/unstable/nes_recent_file.rbs +29 -0
  226. data/sig/generated/acp/types/unstable/nes_recent_files_capabilities.rbs +21 -0
  227. data/sig/generated/acp/types/unstable/nes_reject_reason.rbs +11 -0
  228. data/sig/generated/acp/types/unstable/nes_related_snippet.rbs +25 -0
  229. data/sig/generated/acp/types/unstable/nes_related_snippets_capabilities.rbs +17 -0
  230. data/sig/generated/acp/types/unstable/nes_rename_capabilities.rbs +17 -0
  231. data/sig/generated/acp/types/unstable/nes_rename_suggestion.rbs +33 -0
  232. data/sig/generated/acp/types/unstable/nes_repository.rbs +29 -0
  233. data/sig/generated/acp/types/unstable/nes_search_and_replace_capabilities.rbs +17 -0
  234. data/sig/generated/acp/types/unstable/nes_search_and_replace_suggestion.rbs +37 -0
  235. data/sig/generated/acp/types/unstable/nes_suggest_context.rbs +41 -0
  236. data/sig/generated/acp/types/unstable/nes_suggestion/edit.rbs +33 -0
  237. data/sig/generated/acp/types/unstable/nes_suggestion/jump.rbs +29 -0
  238. data/sig/generated/acp/types/unstable/nes_suggestion/rename.rbs +33 -0
  239. data/sig/generated/acp/types/unstable/nes_suggestion/searchandreplace.rbs +37 -0
  240. data/sig/generated/acp/types/unstable/nes_suggestion.rbs +9 -0
  241. data/sig/generated/acp/types/unstable/nes_text_edit.rbs +25 -0
  242. data/sig/generated/acp/types/unstable/nes_trigger_kind.rbs +9 -0
  243. data/sig/generated/acp/types/unstable/nes_user_action.rbs +33 -0
  244. data/sig/generated/acp/types/unstable/nes_user_actions_capabilities.rbs +21 -0
  245. data/sig/generated/acp/types/unstable/notice.rbs +29 -0
  246. data/sig/generated/acp/types/unstable/notice_severity.rbs +9 -0
  247. data/sig/generated/acp/types/unstable/plan_capabilities.rbs +17 -0
  248. data/sig/generated/acp/types/unstable/plan_file.rbs +25 -0
  249. data/sig/generated/acp/types/unstable/plan_items.rbs +25 -0
  250. data/sig/generated/acp/types/unstable/plan_markdown.rbs +25 -0
  251. data/sig/generated/acp/types/unstable/plan_removed.rbs +21 -0
  252. data/sig/generated/acp/types/unstable/plan_update.rbs +21 -0
  253. data/sig/generated/acp/types/unstable/plan_update_content/file.rbs +25 -0
  254. data/sig/generated/acp/types/unstable/plan_update_content/items.rbs +25 -0
  255. data/sig/generated/acp/types/unstable/plan_update_content/markdown.rbs +25 -0
  256. data/sig/generated/acp/types/unstable/plan_update_content.rbs +9 -0
  257. data/sig/generated/acp/types/unstable/position.rbs +25 -0
  258. data/sig/generated/acp/types/unstable/position_encoding_kind.rbs +9 -0
  259. data/sig/generated/acp/types/unstable/prompt_response.rbs +25 -0
  260. data/sig/generated/acp/types/unstable/provider_current_config.rbs +25 -0
  261. data/sig/generated/acp/types/unstable/provider_info.rbs +33 -0
  262. data/sig/generated/acp/types/unstable/providers_capabilities.rbs +17 -0
  263. data/sig/generated/acp/types/unstable/range.rbs +25 -0
  264. data/sig/generated/acp/types/unstable/reject_nes_notification.rbs +29 -0
  265. data/sig/generated/acp/types/unstable/requires_action_state_update.rbs +17 -0
  266. data/sig/generated/acp/types/unstable/running_state_update.rbs +17 -0
  267. data/sig/generated/acp/types/unstable/session_cancel_capabilities.rbs +17 -0
  268. data/sig/generated/acp/types/unstable/session_capabilities.rbs +41 -0
  269. data/sig/generated/acp/types/unstable/session_fork_capabilities.rbs +17 -0
  270. data/sig/generated/acp/types/unstable/session_message.rbs +33 -0
  271. data/sig/generated/acp/types/unstable/session_message_chunk.rbs +33 -0
  272. data/sig/generated/acp/types/unstable/session_update/agent_message_chunk.rbs +25 -0
  273. data/sig/generated/acp/types/unstable/session_update/agent_thought_chunk.rbs +25 -0
  274. data/sig/generated/acp/types/unstable/session_update/available_commands_update.rbs +21 -0
  275. data/sig/generated/acp/types/unstable/session_update/compaction_summary_chunk.rbs +25 -0
  276. data/sig/generated/acp/types/unstable/session_update/compaction_update.rbs +33 -0
  277. data/sig/generated/acp/types/unstable/session_update/config_option_update.rbs +21 -0
  278. data/sig/generated/acp/types/unstable/session_update/current_mode_update.rbs +21 -0
  279. data/sig/generated/acp/types/unstable/session_update/notice.rbs +29 -0
  280. data/sig/generated/acp/types/unstable/session_update/plan.rbs +21 -0
  281. data/sig/generated/acp/types/unstable/session_update/plan_removed.rbs +21 -0
  282. data/sig/generated/acp/types/unstable/session_update/plan_update.rbs +21 -0
  283. data/sig/generated/acp/types/unstable/session_update/session_info_update.rbs +25 -0
  284. data/sig/generated/acp/types/unstable/session_update/session_message.rbs +33 -0
  285. data/sig/generated/acp/types/unstable/session_update/session_message_chunk.rbs +33 -0
  286. data/sig/generated/acp/types/unstable/session_update/subagent_update.rbs +37 -0
  287. data/sig/generated/acp/types/unstable/session_update/tool_call.rbs +53 -0
  288. data/sig/generated/acp/types/unstable/session_update/tool_call_update.rbs +53 -0
  289. data/sig/generated/acp/types/unstable/session_update/usage_update.rbs +29 -0
  290. data/sig/generated/acp/types/unstable/session_update/user_message_chunk.rbs +25 -0
  291. data/sig/generated/acp/types/unstable/session_update.rbs +9 -0
  292. data/sig/generated/acp/types/unstable/set_provider_request.rbs +33 -0
  293. data/sig/generated/acp/types/unstable/set_provider_response.rbs +17 -0
  294. data/sig/generated/acp/types/unstable/start_nes_request.rbs +29 -0
  295. data/sig/generated/acp/types/unstable/start_nes_response.rbs +21 -0
  296. data/sig/generated/acp/types/unstable/state_update/idle.rbs +25 -0
  297. data/sig/generated/acp/types/unstable/state_update/requires_action.rbs +17 -0
  298. data/sig/generated/acp/types/unstable/state_update/running.rbs +17 -0
  299. data/sig/generated/acp/types/unstable/state_update/unknown.rbs +17 -0
  300. data/sig/generated/acp/types/unstable/state_update.rbs +9 -0
  301. data/sig/generated/acp/types/unstable/subagent_capabilities.rbs +17 -0
  302. data/sig/generated/acp/types/unstable/subagent_session_capabilities.rbs +21 -0
  303. data/sig/generated/acp/types/unstable/subagent_update.rbs +37 -0
  304. data/sig/generated/acp/types/unstable/suggest_nes_request.rbs +45 -0
  305. data/sig/generated/acp/types/unstable/suggest_nes_response.rbs +21 -0
  306. data/sig/generated/acp/types/unstable/text_document_content_change_event.rbs +25 -0
  307. data/sig/generated/acp/types/unstable/text_document_sync_kind.rbs +7 -0
  308. data/sig/generated/acp/types/unstable/unknown_state_update.rbs +17 -0
  309. data/sig/generated/acp/types/unstable/usage.rbs +41 -0
  310. data/sig/generated/acp/types/unstable/workspace_folder.rbs +25 -0
  311. data/sig/generated/acp/types/unstable.rbs +4 -0
  312. data/sig/manual/acp/agent_connection/optional_method/disable_provider.rbs +6 -0
  313. data/sig/manual/acp/agent_connection/optional_method/fork_session.rbs +6 -0
  314. data/sig/manual/acp/agent_connection/optional_method/list_providers.rbs +6 -0
  315. data/sig/manual/acp/agent_connection/optional_method/set_provider.rbs +6 -0
  316. data/sig/manual/acp/agent_connection.rbs +30 -0
  317. metadata +302 -2
@@ -0,0 +1,17 @@
1
+ # Generated from lib/acp/types/unstable/session_fork_capabilities.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionForkCapabilities
4
+ # @dynamic meta
5
+ attr_reader meta: Hash[String, untyped]?
6
+
7
+ # @rbs meta: Hash[String, untyped]?
8
+ # @rbs return: void
9
+ def initialize: (?meta: Hash[String, untyped]?) -> void
10
+
11
+ # @rbs hash: Hash[String, untyped]
12
+ # @rbs return: ACP::Types::Unstable::SessionForkCapabilities
13
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionForkCapabilities
14
+
15
+ # @rbs return: Hash[String, untyped]
16
+ def to_h: () -> Hash[String, untyped]
17
+ end
@@ -0,0 +1,33 @@
1
+ # Generated from lib/acp/types/unstable/session_message.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionMessage
4
+ # @dynamic message_id
5
+ attr_reader message_id: String
6
+
7
+ # @dynamic sender_session_id
8
+ attr_reader sender_session_id: String?
9
+
10
+ # @dynamic recipient_session_id
11
+ attr_reader recipient_session_id: String?
12
+
13
+ # @dynamic content
14
+ attr_reader content: Array[ACP::Types::ContentBlock::t]?
15
+
16
+ # @dynamic meta
17
+ attr_reader meta: Hash[String, untyped]?
18
+
19
+ # @rbs message_id: String
20
+ # @rbs sender_session_id: String?
21
+ # @rbs recipient_session_id: String?
22
+ # @rbs content: Array[ACP::Types::ContentBlock::t]?
23
+ # @rbs meta: Hash[String, untyped]?
24
+ # @rbs return: void
25
+ def initialize: (message_id: String, ?sender_session_id: String?, ?recipient_session_id: String?, ?content: Array[ACP::Types::ContentBlock::t]?, ?meta: Hash[String, untyped]?) -> void
26
+
27
+ # @rbs hash: Hash[String, untyped]
28
+ # @rbs return: ACP::Types::Unstable::SessionMessage
29
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionMessage
30
+
31
+ # @rbs return: Hash[String, untyped]
32
+ def to_h: () -> Hash[String, untyped]
33
+ end
@@ -0,0 +1,33 @@
1
+ # Generated from lib/acp/types/unstable/session_message_chunk.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionMessageChunk
4
+ # @dynamic message_id
5
+ attr_reader message_id: String
6
+
7
+ # @dynamic sender_session_id
8
+ attr_reader sender_session_id: String?
9
+
10
+ # @dynamic recipient_session_id
11
+ attr_reader recipient_session_id: String?
12
+
13
+ # @dynamic content
14
+ attr_reader content: ACP::Types::ContentBlock::t
15
+
16
+ # @dynamic meta
17
+ attr_reader meta: Hash[String, untyped]?
18
+
19
+ # @rbs message_id: String
20
+ # @rbs sender_session_id: String?
21
+ # @rbs recipient_session_id: String?
22
+ # @rbs content: ACP::Types::ContentBlock::t
23
+ # @rbs meta: Hash[String, untyped]?
24
+ # @rbs return: void
25
+ def initialize: (message_id: String, content: ACP::Types::ContentBlock::t, ?sender_session_id: String?, ?recipient_session_id: String?, ?meta: Hash[String, untyped]?) -> void
26
+
27
+ # @rbs hash: Hash[String, untyped]
28
+ # @rbs return: ACP::Types::Unstable::SessionMessageChunk
29
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionMessageChunk
30
+
31
+ # @rbs return: Hash[String, untyped]
32
+ def to_h: () -> Hash[String, untyped]
33
+ end
@@ -0,0 +1,25 @@
1
+ # Generated from lib/acp/types/unstable/session_update/agent_message_chunk.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::AgentMessageChunk
4
+ # @dynamic content
5
+ attr_reader content: ACP::Types::ContentBlock::t
6
+
7
+ # @dynamic message_id
8
+ attr_reader message_id: String?
9
+
10
+ # @dynamic meta
11
+ attr_reader meta: Hash[String, untyped]?
12
+
13
+ # @rbs content: ACP::Types::ContentBlock::t
14
+ # @rbs message_id: String?
15
+ # @rbs meta: Hash[String, untyped]?
16
+ # @rbs return: void
17
+ def initialize: (content: ACP::Types::ContentBlock::t, ?message_id: String?, ?meta: Hash[String, untyped]?) -> void
18
+
19
+ # @rbs hash: Hash[String, untyped]
20
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::AgentMessageChunk
21
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::AgentMessageChunk
22
+
23
+ # @rbs return: Hash[String, untyped]
24
+ def to_h: () -> Hash[String, untyped]
25
+ end
@@ -0,0 +1,25 @@
1
+ # Generated from lib/acp/types/unstable/session_update/agent_thought_chunk.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::AgentThoughtChunk
4
+ # @dynamic content
5
+ attr_reader content: ACP::Types::ContentBlock::t
6
+
7
+ # @dynamic message_id
8
+ attr_reader message_id: String?
9
+
10
+ # @dynamic meta
11
+ attr_reader meta: Hash[String, untyped]?
12
+
13
+ # @rbs content: ACP::Types::ContentBlock::t
14
+ # @rbs message_id: String?
15
+ # @rbs meta: Hash[String, untyped]?
16
+ # @rbs return: void
17
+ def initialize: (content: ACP::Types::ContentBlock::t, ?message_id: String?, ?meta: Hash[String, untyped]?) -> void
18
+
19
+ # @rbs hash: Hash[String, untyped]
20
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::AgentThoughtChunk
21
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::AgentThoughtChunk
22
+
23
+ # @rbs return: Hash[String, untyped]
24
+ def to_h: () -> Hash[String, untyped]
25
+ end
@@ -0,0 +1,21 @@
1
+ # Generated from lib/acp/types/unstable/session_update/available_commands_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::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::Unstable::SessionUpdate::AvailableCommandsUpdate
17
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::AvailableCommandsUpdate
18
+
19
+ # @rbs return: Hash[String, untyped]
20
+ def to_h: () -> Hash[String, untyped]
21
+ end
@@ -0,0 +1,25 @@
1
+ # Generated from lib/acp/types/unstable/session_update/compaction_summary_chunk.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::CompactionSummaryChunk
4
+ # @dynamic compaction_id
5
+ attr_reader compaction_id: String
6
+
7
+ # @dynamic content
8
+ attr_reader content: ACP::Types::ContentBlock::t
9
+
10
+ # @dynamic meta
11
+ attr_reader meta: Hash[String, untyped]?
12
+
13
+ # @rbs compaction_id: String
14
+ # @rbs content: ACP::Types::ContentBlock::t
15
+ # @rbs meta: Hash[String, untyped]?
16
+ # @rbs return: void
17
+ def initialize: (compaction_id: String, content: ACP::Types::ContentBlock::t, ?meta: Hash[String, untyped]?) -> void
18
+
19
+ # @rbs hash: Hash[String, untyped]
20
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::CompactionSummaryChunk
21
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::CompactionSummaryChunk
22
+
23
+ # @rbs return: Hash[String, untyped]
24
+ def to_h: () -> Hash[String, untyped]
25
+ end
@@ -0,0 +1,33 @@
1
+ # Generated from lib/acp/types/unstable/session_update/compaction_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::CompactionUpdate
4
+ # @dynamic compaction_id
5
+ attr_reader compaction_id: String
6
+
7
+ # @dynamic status
8
+ attr_reader status: String
9
+
10
+ # @dynamic summary
11
+ attr_reader summary: Array[ACP::Types::ContentBlock::t]?
12
+
13
+ # @dynamic error
14
+ attr_reader error: String?
15
+
16
+ # @dynamic meta
17
+ attr_reader meta: Hash[String, untyped]?
18
+
19
+ # @rbs compaction_id: String
20
+ # @rbs status: String
21
+ # @rbs summary: Array[ACP::Types::ContentBlock::t]?
22
+ # @rbs error: String?
23
+ # @rbs meta: Hash[String, untyped]?
24
+ # @rbs return: void
25
+ def initialize: (compaction_id: String, status: String, ?summary: Array[ACP::Types::ContentBlock::t]?, ?error: String?, ?meta: Hash[String, untyped]?) -> void
26
+
27
+ # @rbs hash: Hash[String, untyped]
28
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::CompactionUpdate
29
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::CompactionUpdate
30
+
31
+ # @rbs return: Hash[String, untyped]
32
+ def to_h: () -> Hash[String, untyped]
33
+ end
@@ -0,0 +1,21 @@
1
+ # Generated from lib/acp/types/unstable/session_update/config_option_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::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::Unstable::SessionUpdate::ConfigOptionUpdate
17
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::ConfigOptionUpdate
18
+
19
+ # @rbs return: Hash[String, untyped]
20
+ def to_h: () -> Hash[String, untyped]
21
+ end
@@ -0,0 +1,21 @@
1
+ # Generated from lib/acp/types/unstable/session_update/current_mode_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::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::Unstable::SessionUpdate::CurrentModeUpdate
17
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::CurrentModeUpdate
18
+
19
+ # @rbs return: Hash[String, untyped]
20
+ def to_h: () -> Hash[String, untyped]
21
+ end
@@ -0,0 +1,29 @@
1
+ # Generated from lib/acp/types/unstable/session_update/notice.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::Notice
4
+ # @dynamic severity
5
+ attr_reader severity: String
6
+
7
+ # @dynamic title
8
+ attr_reader title: String
9
+
10
+ # @dynamic description
11
+ attr_reader description: String?
12
+
13
+ # @dynamic meta
14
+ attr_reader meta: Hash[String, untyped]?
15
+
16
+ # @rbs severity: String
17
+ # @rbs title: String
18
+ # @rbs description: String?
19
+ # @rbs meta: Hash[String, untyped]?
20
+ # @rbs return: void
21
+ def initialize: (severity: String, title: String, ?description: String?, ?meta: Hash[String, untyped]?) -> void
22
+
23
+ # @rbs hash: Hash[String, untyped]
24
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::Notice
25
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::Notice
26
+
27
+ # @rbs return: Hash[String, untyped]
28
+ def to_h: () -> Hash[String, untyped]
29
+ end
@@ -0,0 +1,21 @@
1
+ # Generated from lib/acp/types/unstable/session_update/plan.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::Plan
4
+ # @dynamic entries
5
+ attr_reader entries: Array[ACP::Types::PlanEntry]
6
+
7
+ # @dynamic meta
8
+ attr_reader meta: Hash[String, untyped]?
9
+
10
+ # @rbs entries: Array[ACP::Types::PlanEntry]
11
+ # @rbs meta: Hash[String, untyped]?
12
+ # @rbs return: void
13
+ def initialize: (entries: Array[ACP::Types::PlanEntry], ?meta: Hash[String, untyped]?) -> void
14
+
15
+ # @rbs hash: Hash[String, untyped]
16
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::Plan
17
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::Plan
18
+
19
+ # @rbs return: Hash[String, untyped]
20
+ def to_h: () -> Hash[String, untyped]
21
+ end
@@ -0,0 +1,21 @@
1
+ # Generated from lib/acp/types/unstable/session_update/plan_removed.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::PlanRemoved
4
+ # @dynamic plan_id
5
+ attr_reader plan_id: String
6
+
7
+ # @dynamic meta
8
+ attr_reader meta: Hash[String, untyped]?
9
+
10
+ # @rbs plan_id: String
11
+ # @rbs meta: Hash[String, untyped]?
12
+ # @rbs return: void
13
+ def initialize: (plan_id: String, ?meta: Hash[String, untyped]?) -> void
14
+
15
+ # @rbs hash: Hash[String, untyped]
16
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::PlanRemoved
17
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::PlanRemoved
18
+
19
+ # @rbs return: Hash[String, untyped]
20
+ def to_h: () -> Hash[String, untyped]
21
+ end
@@ -0,0 +1,21 @@
1
+ # Generated from lib/acp/types/unstable/session_update/plan_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::PlanUpdate
4
+ # @dynamic plan
5
+ attr_reader plan: ACP::Types::Unstable::PlanUpdateContent::t
6
+
7
+ # @dynamic meta
8
+ attr_reader meta: Hash[String, untyped]?
9
+
10
+ # @rbs plan: ACP::Types::Unstable::PlanUpdateContent::t
11
+ # @rbs meta: Hash[String, untyped]?
12
+ # @rbs return: void
13
+ def initialize: (plan: ACP::Types::Unstable::PlanUpdateContent::t, ?meta: Hash[String, untyped]?) -> void
14
+
15
+ # @rbs hash: Hash[String, untyped]
16
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::PlanUpdate
17
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::PlanUpdate
18
+
19
+ # @rbs return: Hash[String, untyped]
20
+ def to_h: () -> Hash[String, untyped]
21
+ end
@@ -0,0 +1,25 @@
1
+ # Generated from lib/acp/types/unstable/session_update/session_info_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::SessionInfoUpdate
4
+ # @dynamic title
5
+ attr_reader title: String? | :unset
6
+
7
+ # @dynamic updated_at
8
+ attr_reader updated_at: String? | :unset
9
+
10
+ # @dynamic meta
11
+ attr_reader meta: Hash[String, untyped]?
12
+
13
+ # @rbs title: String? | :unset
14
+ # @rbs updated_at: String? | :unset
15
+ # @rbs meta: Hash[String, untyped]?
16
+ # @rbs return: void
17
+ def initialize: (?title: String? | :unset, ?updated_at: String? | :unset, ?meta: Hash[String, untyped]?) -> void
18
+
19
+ # @rbs hash: Hash[String, untyped]
20
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::SessionInfoUpdate
21
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::SessionInfoUpdate
22
+
23
+ # @rbs return: Hash[String, untyped]
24
+ def to_h: () -> Hash[String, untyped]
25
+ end
@@ -0,0 +1,33 @@
1
+ # Generated from lib/acp/types/unstable/session_update/session_message.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::SessionMessage
4
+ # @dynamic message_id
5
+ attr_reader message_id: String
6
+
7
+ # @dynamic sender_session_id
8
+ attr_reader sender_session_id: String?
9
+
10
+ # @dynamic recipient_session_id
11
+ attr_reader recipient_session_id: String?
12
+
13
+ # @dynamic content
14
+ attr_reader content: Array[ACP::Types::ContentBlock::t]?
15
+
16
+ # @dynamic meta
17
+ attr_reader meta: Hash[String, untyped]?
18
+
19
+ # @rbs message_id: String
20
+ # @rbs sender_session_id: String?
21
+ # @rbs recipient_session_id: String?
22
+ # @rbs content: Array[ACP::Types::ContentBlock::t]?
23
+ # @rbs meta: Hash[String, untyped]?
24
+ # @rbs return: void
25
+ def initialize: (message_id: String, ?sender_session_id: String?, ?recipient_session_id: String?, ?content: Array[ACP::Types::ContentBlock::t]?, ?meta: Hash[String, untyped]?) -> void
26
+
27
+ # @rbs hash: Hash[String, untyped]
28
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::SessionMessage
29
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::SessionMessage
30
+
31
+ # @rbs return: Hash[String, untyped]
32
+ def to_h: () -> Hash[String, untyped]
33
+ end
@@ -0,0 +1,33 @@
1
+ # Generated from lib/acp/types/unstable/session_update/session_message_chunk.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::SessionMessageChunk
4
+ # @dynamic message_id
5
+ attr_reader message_id: String
6
+
7
+ # @dynamic sender_session_id
8
+ attr_reader sender_session_id: String?
9
+
10
+ # @dynamic recipient_session_id
11
+ attr_reader recipient_session_id: String?
12
+
13
+ # @dynamic content
14
+ attr_reader content: ACP::Types::ContentBlock::t
15
+
16
+ # @dynamic meta
17
+ attr_reader meta: Hash[String, untyped]?
18
+
19
+ # @rbs message_id: String
20
+ # @rbs sender_session_id: String?
21
+ # @rbs recipient_session_id: String?
22
+ # @rbs content: ACP::Types::ContentBlock::t
23
+ # @rbs meta: Hash[String, untyped]?
24
+ # @rbs return: void
25
+ def initialize: (message_id: String, content: ACP::Types::ContentBlock::t, ?sender_session_id: String?, ?recipient_session_id: String?, ?meta: Hash[String, untyped]?) -> void
26
+
27
+ # @rbs hash: Hash[String, untyped]
28
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::SessionMessageChunk
29
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::SessionMessageChunk
30
+
31
+ # @rbs return: Hash[String, untyped]
32
+ def to_h: () -> Hash[String, untyped]
33
+ end
@@ -0,0 +1,37 @@
1
+ # Generated from lib/acp/types/unstable/session_update/subagent_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::SubagentUpdate
4
+ # @dynamic session_id
5
+ attr_reader session_id: String
6
+
7
+ # @dynamic title
8
+ attr_reader title: String?
9
+
10
+ # @dynamic description
11
+ attr_reader description: String?
12
+
13
+ # @dynamic capabilities
14
+ attr_reader capabilities: ACP::Types::Unstable::SubagentSessionCapabilities?
15
+
16
+ # @dynamic state
17
+ attr_reader state: ACP::Types::Unstable::StateUpdate::t?
18
+
19
+ # @dynamic meta
20
+ attr_reader meta: Hash[String, untyped]?
21
+
22
+ # @rbs session_id: String
23
+ # @rbs title: String?
24
+ # @rbs description: String?
25
+ # @rbs capabilities: ACP::Types::Unstable::SubagentSessionCapabilities?
26
+ # @rbs state: ACP::Types::Unstable::StateUpdate::t?
27
+ # @rbs meta: Hash[String, untyped]?
28
+ # @rbs return: void
29
+ def initialize: (session_id: String, ?title: String?, ?description: String?, ?capabilities: ACP::Types::Unstable::SubagentSessionCapabilities?, ?state: ACP::Types::Unstable::StateUpdate::t?, ?meta: Hash[String, untyped]?) -> void
30
+
31
+ # @rbs hash: Hash[String, untyped]
32
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::SubagentUpdate
33
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::SubagentUpdate
34
+
35
+ # @rbs return: Hash[String, untyped]
36
+ def to_h: () -> Hash[String, untyped]
37
+ end
@@ -0,0 +1,53 @@
1
+ # Generated from lib/acp/types/unstable/session_update/tool_call.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::ToolCall
4
+ # @dynamic tool_call_id
5
+ attr_reader tool_call_id: String
6
+
7
+ # @dynamic title
8
+ attr_reader title: String
9
+
10
+ # @dynamic name
11
+ attr_reader name: String?
12
+
13
+ # @dynamic kind
14
+ attr_reader kind: String?
15
+
16
+ # @dynamic status
17
+ attr_reader status: String?
18
+
19
+ # @dynamic content
20
+ attr_reader content: Array[ACP::Types::ToolCallContent::t]?
21
+
22
+ # @dynamic locations
23
+ attr_reader locations: Array[ACP::Types::ToolCallLocation]?
24
+
25
+ # @dynamic raw_input
26
+ attr_reader raw_input: untyped
27
+
28
+ # @dynamic raw_output
29
+ attr_reader raw_output: untyped
30
+
31
+ # @dynamic meta
32
+ attr_reader meta: Hash[String, untyped]?
33
+
34
+ # @rbs tool_call_id: String
35
+ # @rbs title: String
36
+ # @rbs name: String?
37
+ # @rbs kind: String?
38
+ # @rbs status: String?
39
+ # @rbs content: Array[ACP::Types::ToolCallContent::t]?
40
+ # @rbs locations: Array[ACP::Types::ToolCallLocation]?
41
+ # @rbs raw_input: untyped
42
+ # @rbs raw_output: untyped
43
+ # @rbs meta: Hash[String, untyped]?
44
+ # @rbs return: void
45
+ def initialize: (tool_call_id: String, title: String, ?name: String?, ?kind: String?, ?status: String?, ?content: Array[ACP::Types::ToolCallContent::t]?, ?locations: Array[ACP::Types::ToolCallLocation]?, ?raw_input: untyped, ?raw_output: untyped, ?meta: Hash[String, untyped]?) -> void
46
+
47
+ # @rbs hash: Hash[String, untyped]
48
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::ToolCall
49
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::ToolCall
50
+
51
+ # @rbs return: Hash[String, untyped]
52
+ def to_h: () -> Hash[String, untyped]
53
+ end
@@ -0,0 +1,53 @@
1
+ # Generated from lib/acp/types/unstable/session_update/tool_call_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::ToolCallUpdate
4
+ # @dynamic tool_call_id
5
+ attr_reader tool_call_id: String
6
+
7
+ # @dynamic kind
8
+ attr_reader kind: String?
9
+
10
+ # @dynamic status
11
+ attr_reader status: String?
12
+
13
+ # @dynamic title
14
+ attr_reader title: String?
15
+
16
+ # @dynamic name
17
+ attr_reader name: String?
18
+
19
+ # @dynamic content
20
+ attr_reader content: Array[ACP::Types::ToolCallContent::t]?
21
+
22
+ # @dynamic locations
23
+ attr_reader locations: Array[ACP::Types::ToolCallLocation]?
24
+
25
+ # @dynamic raw_input
26
+ attr_reader raw_input: untyped
27
+
28
+ # @dynamic raw_output
29
+ attr_reader raw_output: untyped
30
+
31
+ # @dynamic meta
32
+ attr_reader meta: Hash[String, untyped]?
33
+
34
+ # @rbs tool_call_id: String
35
+ # @rbs kind: String?
36
+ # @rbs status: String?
37
+ # @rbs title: String?
38
+ # @rbs name: String?
39
+ # @rbs content: Array[ACP::Types::ToolCallContent::t]?
40
+ # @rbs locations: Array[ACP::Types::ToolCallLocation]?
41
+ # @rbs raw_input: untyped
42
+ # @rbs raw_output: untyped
43
+ # @rbs meta: Hash[String, untyped]?
44
+ # @rbs return: 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
46
+
47
+ # @rbs hash: Hash[String, untyped]
48
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::ToolCallUpdate
49
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::ToolCallUpdate
50
+
51
+ # @rbs return: Hash[String, untyped]
52
+ def to_h: () -> Hash[String, untyped]
53
+ end
@@ -0,0 +1,29 @@
1
+ # Generated from lib/acp/types/unstable/session_update/usage_update.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::UsageUpdate
4
+ # @dynamic used
5
+ attr_reader used: Integer
6
+
7
+ # @dynamic size
8
+ attr_reader size: Integer
9
+
10
+ # @dynamic cost
11
+ attr_reader cost: ACP::Types::Cost?
12
+
13
+ # @dynamic meta
14
+ attr_reader meta: Hash[String, untyped]?
15
+
16
+ # @rbs used: Integer
17
+ # @rbs size: Integer
18
+ # @rbs cost: ACP::Types::Cost?
19
+ # @rbs meta: Hash[String, untyped]?
20
+ # @rbs return: void
21
+ def initialize: (used: Integer, size: Integer, ?cost: ACP::Types::Cost?, ?meta: Hash[String, untyped]?) -> void
22
+
23
+ # @rbs hash: Hash[String, untyped]
24
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::UsageUpdate
25
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::UsageUpdate
26
+
27
+ # @rbs return: Hash[String, untyped]
28
+ def to_h: () -> Hash[String, untyped]
29
+ end
@@ -0,0 +1,25 @@
1
+ # Generated from lib/acp/types/unstable/session_update/user_message_chunk.rb with RBS::Inline
2
+
3
+ class ACP::Types::Unstable::SessionUpdate::UserMessageChunk
4
+ # @dynamic content
5
+ attr_reader content: ACP::Types::ContentBlock::t
6
+
7
+ # @dynamic message_id
8
+ attr_reader message_id: String?
9
+
10
+ # @dynamic meta
11
+ attr_reader meta: Hash[String, untyped]?
12
+
13
+ # @rbs content: ACP::Types::ContentBlock::t
14
+ # @rbs message_id: String?
15
+ # @rbs meta: Hash[String, untyped]?
16
+ # @rbs return: void
17
+ def initialize: (content: ACP::Types::ContentBlock::t, ?message_id: String?, ?meta: Hash[String, untyped]?) -> void
18
+
19
+ # @rbs hash: Hash[String, untyped]
20
+ # @rbs return: ACP::Types::Unstable::SessionUpdate::UserMessageChunk
21
+ def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Unstable::SessionUpdate::UserMessageChunk
22
+
23
+ # @rbs return: Hash[String, untyped]
24
+ def to_h: () -> Hash[String, untyped]
25
+ end
@@ -0,0 +1,9 @@
1
+ # Generated from lib/acp/types/unstable/session_update.rb with RBS::Inline
2
+
3
+ module ACP::Types::Unstable::SessionUpdate
4
+ type t = ACP::Types::Unstable::SessionUpdate::UserMessageChunk | ACP::Types::Unstable::SessionUpdate::AgentMessageChunk | ACP::Types::Unstable::SessionUpdate::AgentThoughtChunk | ACP::Types::Unstable::SessionUpdate::ToolCall | ACP::Types::Unstable::SessionUpdate::ToolCallUpdate | ACP::Types::Unstable::SessionUpdate::Plan | ACP::Types::Unstable::SessionUpdate::PlanUpdate | ACP::Types::Unstable::SessionUpdate::PlanRemoved | ACP::Types::Unstable::SessionUpdate::AvailableCommandsUpdate | ACP::Types::Unstable::SessionUpdate::CurrentModeUpdate | ACP::Types::Unstable::SessionUpdate::ConfigOptionUpdate | ACP::Types::Unstable::SessionUpdate::SessionInfoUpdate | ACP::Types::Unstable::SessionUpdate::UsageUpdate | ACP::Types::Unstable::SessionUpdate::Notice | ACP::Types::Unstable::SessionUpdate::CompactionUpdate | ACP::Types::Unstable::SessionUpdate::CompactionSummaryChunk | ACP::Types::Unstable::SessionUpdate::SubagentUpdate | ACP::Types::Unstable::SessionUpdate::SessionMessage | ACP::Types::Unstable::SessionUpdate::SessionMessageChunk | Hash[String, untyped]
5
+
6
+ # @rbs hash: Hash[String, untyped]
7
+ # @rbs return: t
8
+ def self.from_h: (Hash[String, untyped] hash) -> t
9
+ end