acp-sdk 0.1.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 +7 -0
- data/CHANGELOG.md +11 -0
- data/LICENSE.txt +9 -0
- data/README.md +81 -0
- data/lib/acp/agent_connection/client.rb +39 -0
- data/lib/acp/agent_connection/optional_method.rb +28 -0
- data/lib/acp/agent_connection.rb +122 -0
- data/lib/acp/client_connection.rb +129 -0
- data/lib/acp/sdk.rb +13 -0
- data/lib/acp/transport/reply.rb +20 -0
- data/lib/acp/transport/response_error.rb +28 -0
- data/lib/acp/transport/result.rb +35 -0
- data/lib/acp/transport/stdio.rb +207 -0
- data/lib/acp/transport.rb +4 -0
- data/lib/acp/types/agent_auth_capabilities.rb +31 -0
- data/lib/acp/types/agent_capabilities.rb +72 -0
- data/lib/acp/types/annotations.rb +46 -0
- data/lib/acp/types/audio_content.rb +46 -0
- data/lib/acp/types/auth_capabilities.rb +31 -0
- data/lib/acp/types/auth_method/terminal.rb +66 -0
- data/lib/acp/types/auth_method.rb +20 -0
- data/lib/acp/types/auth_method_agent.rb +41 -0
- data/lib/acp/types/auth_method_terminal.rb +58 -0
- data/lib/acp/types/authenticate_request.rb +31 -0
- data/lib/acp/types/authenticate_response.rb +26 -0
- data/lib/acp/types/available_command.rb +46 -0
- data/lib/acp/types/available_command_input.rb +19 -0
- data/lib/acp/types/available_commands_update.rb +34 -0
- data/lib/acp/types/blob_resource_contents.rb +41 -0
- data/lib/acp/types/boolean_config_option_capabilities.rb +26 -0
- data/lib/acp/types/boolean_property_schema.rb +41 -0
- data/lib/acp/types/cancel_notification.rb +31 -0
- data/lib/acp/types/cancel_request_notification.rb +31 -0
- data/lib/acp/types/client_capabilities.rb +65 -0
- data/lib/acp/types/client_session_capabilities.rb +36 -0
- data/lib/acp/types/close_session_request.rb +31 -0
- data/lib/acp/types/close_session_response.rb +26 -0
- data/lib/acp/types/complete_elicitation_notification.rb +31 -0
- data/lib/acp/types/config_option_update.rb +34 -0
- data/lib/acp/types/content.rb +31 -0
- data/lib/acp/types/content_block/audio.rb +52 -0
- data/lib/acp/types/content_block/image.rb +59 -0
- data/lib/acp/types/content_block/resource.rb +40 -0
- data/lib/acp/types/content_block/resource_link.rb +80 -0
- data/lib/acp/types/content_block/text.rb +40 -0
- data/lib/acp/types/content_block.rb +26 -0
- data/lib/acp/types/content_chunk.rb +40 -0
- data/lib/acp/types/cost.rb +36 -0
- data/lib/acp/types/create_elicitation_request/mode/form.rb +34 -0
- data/lib/acp/types/create_elicitation_request/mode/url.rb +40 -0
- data/lib/acp/types/create_elicitation_request/mode.rb +20 -0
- data/lib/acp/types/create_elicitation_request.rb +40 -0
- data/lib/acp/types/create_elicitation_response/action/accept.rb +26 -0
- data/lib/acp/types/create_elicitation_response/action/cancel.rb +21 -0
- data/lib/acp/types/create_elicitation_response/action/decline.rb +21 -0
- data/lib/acp/types/create_elicitation_response/action.rb +22 -0
- data/lib/acp/types/create_elicitation_response.rb +31 -0
- data/lib/acp/types/create_terminal_request.rb +72 -0
- data/lib/acp/types/create_terminal_response.rb +31 -0
- data/lib/acp/types/current_mode_update.rb +31 -0
- data/lib/acp/types/delete_session_request.rb +31 -0
- data/lib/acp/types/delete_session_response.rb +26 -0
- data/lib/acp/types/diff.rb +41 -0
- data/lib/acp/types/elicitation_accept_action.rb +26 -0
- data/lib/acp/types/elicitation_capabilities.rb +40 -0
- data/lib/acp/types/elicitation_form_capabilities.rb +26 -0
- data/lib/acp/types/elicitation_form_mode/scope.rb +22 -0
- data/lib/acp/types/elicitation_form_mode.rb +34 -0
- data/lib/acp/types/elicitation_property_schema/boolean_property_schema.rb +47 -0
- data/lib/acp/types/elicitation_property_schema/integer_property_schema.rb +66 -0
- data/lib/acp/types/elicitation_property_schema/multi_select_property_schema.rb +73 -0
- data/lib/acp/types/elicitation_property_schema/number_property_schema.rb +66 -0
- data/lib/acp/types/elicitation_property_schema/string_property_schema.rb +105 -0
- data/lib/acp/types/elicitation_property_schema.rb +26 -0
- data/lib/acp/types/elicitation_request_scope.rb +26 -0
- data/lib/acp/types/elicitation_schema.rb +65 -0
- data/lib/acp/types/elicitation_schema_type.rb +7 -0
- data/lib/acp/types/elicitation_session_scope.rb +31 -0
- data/lib/acp/types/elicitation_url_capabilities.rb +26 -0
- data/lib/acp/types/elicitation_url_mode/scope.rb +22 -0
- data/lib/acp/types/elicitation_url_mode.rb +40 -0
- data/lib/acp/types/embedded_resource.rb +40 -0
- data/lib/acp/types/embedded_resource_resource.rb +22 -0
- data/lib/acp/types/enum_option.rb +41 -0
- data/lib/acp/types/env_variable.rb +36 -0
- data/lib/acp/types/file_system_capabilities.rb +36 -0
- data/lib/acp/types/http_header.rb +36 -0
- data/lib/acp/types/image_content.rb +58 -0
- data/lib/acp/types/implementation.rb +41 -0
- data/lib/acp/types/initialize_request.rb +51 -0
- data/lib/acp/types/initialize_response.rb +58 -0
- data/lib/acp/types/integer_property_schema.rb +65 -0
- data/lib/acp/types/kill_terminal_request.rb +36 -0
- data/lib/acp/types/kill_terminal_response.rb +26 -0
- data/lib/acp/types/list_sessions_request.rb +36 -0
- data/lib/acp/types/list_sessions_response.rb +40 -0
- data/lib/acp/types/load_session_request.rb +58 -0
- data/lib/acp/types/load_session_response.rb +40 -0
- data/lib/acp/types/logout_capabilities.rb +26 -0
- data/lib/acp/types/logout_request.rb +26 -0
- data/lib/acp/types/logout_response.rb +26 -0
- data/lib/acp/types/mcp_capabilities.rb +36 -0
- data/lib/acp/types/mcp_server/http.rb +46 -0
- data/lib/acp/types/mcp_server/sse.rb +46 -0
- data/lib/acp/types/mcp_server.rb +22 -0
- data/lib/acp/types/mcp_server_http.rb +46 -0
- data/lib/acp/types/mcp_server_sse.rb +46 -0
- data/lib/acp/types/mcp_server_stdio.rb +52 -0
- data/lib/acp/types/multi_select_items/string_multi_select_items.rb +31 -0
- data/lib/acp/types/multi_select_items.rb +20 -0
- data/lib/acp/types/multi_select_property_schema.rb +72 -0
- data/lib/acp/types/new_session_request.rb +51 -0
- data/lib/acp/types/new_session_response.rb +51 -0
- data/lib/acp/types/number_property_schema.rb +65 -0
- data/lib/acp/types/permission_option.rb +41 -0
- data/lib/acp/types/permission_option_kind.rb +10 -0
- data/lib/acp/types/plan.rb +31 -0
- data/lib/acp/types/plan_entry.rb +46 -0
- data/lib/acp/types/plan_entry_priority.rb +9 -0
- data/lib/acp/types/plan_entry_status.rb +9 -0
- data/lib/acp/types/prompt_capabilities.rb +41 -0
- data/lib/acp/types/prompt_request.rb +40 -0
- data/lib/acp/types/prompt_response.rb +31 -0
- data/lib/acp/types/read_text_file_request.rb +52 -0
- data/lib/acp/types/read_text_file_response.rb +31 -0
- data/lib/acp/types/release_terminal_request.rb +36 -0
- data/lib/acp/types/release_terminal_response.rb +26 -0
- data/lib/acp/types/request_permission_outcome/cancelled.rb +21 -0
- data/lib/acp/types/request_permission_outcome/selected.rb +31 -0
- data/lib/acp/types/request_permission_outcome.rb +20 -0
- data/lib/acp/types/request_permission_request.rb +51 -0
- data/lib/acp/types/request_permission_response.rb +31 -0
- data/lib/acp/types/resource_link.rb +79 -0
- data/lib/acp/types/resume_session_request.rb +58 -0
- data/lib/acp/types/resume_session_response.rb +40 -0
- data/lib/acp/types/role.rb +8 -0
- data/lib/acp/types/selected_permission_outcome.rb +31 -0
- data/lib/acp/types/session_additional_directories_capabilities.rb +26 -0
- data/lib/acp/types/session_capabilities.rb +67 -0
- data/lib/acp/types/session_close_capabilities.rb +26 -0
- data/lib/acp/types/session_config_boolean.rb +26 -0
- data/lib/acp/types/session_config_option/kind/boolean.rb +26 -0
- data/lib/acp/types/session_config_option/kind/select.rb +34 -0
- data/lib/acp/types/session_config_option/kind.rb +20 -0
- data/lib/acp/types/session_config_option.rb +64 -0
- data/lib/acp/types/session_config_option_category.rb +10 -0
- data/lib/acp/types/session_config_options_capabilities.rb +34 -0
- data/lib/acp/types/session_config_select.rb +34 -0
- data/lib/acp/types/session_config_select_group.rb +46 -0
- data/lib/acp/types/session_config_select_option.rb +41 -0
- data/lib/acp/types/session_config_select_options.rb +22 -0
- data/lib/acp/types/session_delete_capabilities.rb +26 -0
- data/lib/acp/types/session_info.rb +65 -0
- data/lib/acp/types/session_info_update.rb +38 -0
- data/lib/acp/types/session_list_capabilities.rb +26 -0
- data/lib/acp/types/session_list_request.rb +8 -0
- data/lib/acp/types/session_list_response.rb +8 -0
- data/lib/acp/types/session_load_request.rb +8 -0
- data/lib/acp/types/session_mode.rb +41 -0
- data/lib/acp/types/session_mode_state.rb +40 -0
- data/lib/acp/types/session_new_request.rb +8 -0
- data/lib/acp/types/session_notification.rb +40 -0
- data/lib/acp/types/session_prompt_request.rb +8 -0
- data/lib/acp/types/session_resume_capabilities.rb +26 -0
- data/lib/acp/types/session_update/agent_message_chunk.rb +45 -0
- data/lib/acp/types/session_update/agent_thought_chunk.rb +45 -0
- data/lib/acp/types/session_update/available_commands_update.rb +38 -0
- data/lib/acp/types/session_update/config_option_update.rb +38 -0
- data/lib/acp/types/session_update/current_mode_update.rb +31 -0
- data/lib/acp/types/session_update/plan.rb +31 -0
- data/lib/acp/types/session_update/session_info_update.rb +39 -0
- data/lib/acp/types/session_update/tool_call.rb +97 -0
- data/lib/acp/types/session_update/tool_call_update.rb +97 -0
- data/lib/acp/types/session_update/usage_update.rb +46 -0
- data/lib/acp/types/session_update/user_message_chunk.rb +45 -0
- data/lib/acp/types/session_update.rb +38 -0
- data/lib/acp/types/set_session_config_option_request/value/boolean.rb +26 -0
- data/lib/acp/types/set_session_config_option_request/value/value_id.rb +26 -0
- data/lib/acp/types/set_session_config_option_request/value.rb +20 -0
- data/lib/acp/types/set_session_config_option_request.rb +46 -0
- data/lib/acp/types/set_session_config_option_response.rb +34 -0
- data/lib/acp/types/set_session_mode_request.rb +36 -0
- data/lib/acp/types/set_session_mode_response.rb +26 -0
- data/lib/acp/types/stop_reason.rb +11 -0
- data/lib/acp/types/string_format.rb +10 -0
- data/lib/acp/types/string_multi_select_items.rb +31 -0
- data/lib/acp/types/string_property_schema.rb +104 -0
- data/lib/acp/types/terminal.rb +31 -0
- data/lib/acp/types/terminal_exit_status.rb +36 -0
- data/lib/acp/types/terminal_output_request.rb +36 -0
- data/lib/acp/types/terminal_output_response.rb +46 -0
- data/lib/acp/types/text_content.rb +40 -0
- data/lib/acp/types/text_resource_contents.rb +41 -0
- data/lib/acp/types/titled_multi_select_items.rb +31 -0
- data/lib/acp/types/tool_call.rb +96 -0
- data/lib/acp/types/tool_call_content/content.rb +31 -0
- data/lib/acp/types/tool_call_content/diff.rb +41 -0
- data/lib/acp/types/tool_call_content/terminal.rb +31 -0
- data/lib/acp/types/tool_call_content.rb +22 -0
- data/lib/acp/types/tool_call_location.rb +36 -0
- data/lib/acp/types/tool_call_status.rb +10 -0
- data/lib/acp/types/tool_call_update.rb +96 -0
- data/lib/acp/types/tool_kind.rb +16 -0
- data/lib/acp/types/unstructured_command_input.rb +31 -0
- data/lib/acp/types/usage_update.rb +46 -0
- data/lib/acp/types/wait_for_terminal_exit_request.rb +36 -0
- data/lib/acp/types/wait_for_terminal_exit_response.rb +36 -0
- data/lib/acp/types/write_text_file_request.rb +46 -0
- data/lib/acp/types/write_text_file_response.rb +26 -0
- data/lib/acp/version.rb +5 -0
- data/sig/generated/acp/agent_connection/client.rbs +29 -0
- data/sig/generated/acp/agent_connection/optional_method.rbs +21 -0
- data/sig/generated/acp/agent_connection.rbs +65 -0
- data/sig/generated/acp/client_connection.rbs +82 -0
- data/sig/generated/acp/sdk.rbs +2 -0
- data/sig/generated/acp/transport/reply.rbs +16 -0
- data/sig/generated/acp/transport/response_error.rbs +21 -0
- data/sig/generated/acp/transport/result.rbs +25 -0
- data/sig/generated/acp/transport/stdio.rbs +116 -0
- data/sig/generated/acp/transport.rbs +4 -0
- data/sig/generated/acp/types/agent_auth_capabilities.rbs +21 -0
- data/sig/generated/acp/types/agent_capabilities.rbs +37 -0
- data/sig/generated/acp/types/annotations.rbs +29 -0
- data/sig/generated/acp/types/audio_content.rbs +29 -0
- data/sig/generated/acp/types/auth_capabilities.rbs +21 -0
- data/sig/generated/acp/types/auth_method/terminal.rbs +37 -0
- data/sig/generated/acp/types/auth_method.rbs +9 -0
- data/sig/generated/acp/types/auth_method_agent.rbs +29 -0
- data/sig/generated/acp/types/auth_method_terminal.rbs +37 -0
- data/sig/generated/acp/types/authenticate_request.rbs +21 -0
- data/sig/generated/acp/types/authenticate_response.rbs +17 -0
- data/sig/generated/acp/types/available_command.rbs +29 -0
- data/sig/generated/acp/types/available_command_input.rbs +9 -0
- data/sig/generated/acp/types/available_commands_update.rbs +21 -0
- data/sig/generated/acp/types/blob_resource_contents.rbs +29 -0
- data/sig/generated/acp/types/boolean_config_option_capabilities.rbs +17 -0
- data/sig/generated/acp/types/boolean_property_schema.rbs +29 -0
- data/sig/generated/acp/types/cancel_notification.rbs +21 -0
- data/sig/generated/acp/types/cancel_request_notification.rbs +21 -0
- data/sig/generated/acp/types/client_capabilities.rbs +37 -0
- data/sig/generated/acp/types/client_session_capabilities.rbs +21 -0
- data/sig/generated/acp/types/close_session_request.rbs +21 -0
- data/sig/generated/acp/types/close_session_response.rbs +17 -0
- data/sig/generated/acp/types/complete_elicitation_notification.rbs +21 -0
- data/sig/generated/acp/types/config_option_update.rbs +21 -0
- data/sig/generated/acp/types/content.rbs +21 -0
- data/sig/generated/acp/types/content_block/audio.rbs +29 -0
- data/sig/generated/acp/types/content_block/image.rbs +33 -0
- data/sig/generated/acp/types/content_block/resource.rbs +25 -0
- data/sig/generated/acp/types/content_block/resource_link.rbs +45 -0
- data/sig/generated/acp/types/content_block/text.rbs +25 -0
- data/sig/generated/acp/types/content_block.rbs +9 -0
- data/sig/generated/acp/types/content_chunk.rbs +25 -0
- data/sig/generated/acp/types/cost.rbs +25 -0
- data/sig/generated/acp/types/create_elicitation_request/mode/form.rbs +21 -0
- data/sig/generated/acp/types/create_elicitation_request/mode/url.rbs +25 -0
- data/sig/generated/acp/types/create_elicitation_request/mode.rbs +9 -0
- data/sig/generated/acp/types/create_elicitation_request.rbs +25 -0
- data/sig/generated/acp/types/create_elicitation_response/action/accept.rbs +17 -0
- data/sig/generated/acp/types/create_elicitation_response/action/cancel.rbs +13 -0
- data/sig/generated/acp/types/create_elicitation_response/action/decline.rbs +13 -0
- data/sig/generated/acp/types/create_elicitation_response/action.rbs +9 -0
- data/sig/generated/acp/types/create_elicitation_response.rbs +21 -0
- data/sig/generated/acp/types/create_terminal_request.rbs +41 -0
- data/sig/generated/acp/types/create_terminal_response.rbs +21 -0
- data/sig/generated/acp/types/current_mode_update.rbs +21 -0
- data/sig/generated/acp/types/delete_session_request.rbs +21 -0
- data/sig/generated/acp/types/delete_session_response.rbs +17 -0
- data/sig/generated/acp/types/diff.rbs +29 -0
- data/sig/generated/acp/types/elicitation_accept_action.rbs +17 -0
- data/sig/generated/acp/types/elicitation_capabilities.rbs +25 -0
- data/sig/generated/acp/types/elicitation_form_capabilities.rbs +17 -0
- data/sig/generated/acp/types/elicitation_form_mode/scope.rbs +9 -0
- data/sig/generated/acp/types/elicitation_form_mode.rbs +21 -0
- data/sig/generated/acp/types/elicitation_property_schema/boolean_property_schema.rbs +29 -0
- data/sig/generated/acp/types/elicitation_property_schema/integer_property_schema.rbs +37 -0
- data/sig/generated/acp/types/elicitation_property_schema/multi_select_property_schema.rbs +41 -0
- data/sig/generated/acp/types/elicitation_property_schema/number_property_schema.rbs +37 -0
- data/sig/generated/acp/types/elicitation_property_schema/string_property_schema.rbs +53 -0
- data/sig/generated/acp/types/elicitation_property_schema.rbs +9 -0
- data/sig/generated/acp/types/elicitation_request_scope.rbs +17 -0
- data/sig/generated/acp/types/elicitation_schema.rbs +37 -0
- data/sig/generated/acp/types/elicitation_schema_type.rbs +5 -0
- data/sig/generated/acp/types/elicitation_session_scope.rbs +21 -0
- data/sig/generated/acp/types/elicitation_url_capabilities.rbs +17 -0
- data/sig/generated/acp/types/elicitation_url_mode/scope.rbs +9 -0
- data/sig/generated/acp/types/elicitation_url_mode.rbs +25 -0
- data/sig/generated/acp/types/embedded_resource.rbs +25 -0
- data/sig/generated/acp/types/embedded_resource_resource.rbs +9 -0
- data/sig/generated/acp/types/enum_option.rbs +29 -0
- data/sig/generated/acp/types/env_variable.rbs +25 -0
- data/sig/generated/acp/types/file_system_capabilities.rbs +25 -0
- data/sig/generated/acp/types/http_header.rbs +25 -0
- data/sig/generated/acp/types/image_content.rbs +33 -0
- data/sig/generated/acp/types/implementation.rbs +29 -0
- data/sig/generated/acp/types/initialize_request.rbs +29 -0
- data/sig/generated/acp/types/initialize_response.rbs +33 -0
- data/sig/generated/acp/types/integer_property_schema.rbs +37 -0
- data/sig/generated/acp/types/kill_terminal_request.rbs +25 -0
- data/sig/generated/acp/types/kill_terminal_response.rbs +17 -0
- data/sig/generated/acp/types/list_sessions_request.rbs +25 -0
- data/sig/generated/acp/types/list_sessions_response.rbs +25 -0
- data/sig/generated/acp/types/load_session_request.rbs +33 -0
- data/sig/generated/acp/types/load_session_response.rbs +25 -0
- data/sig/generated/acp/types/logout_capabilities.rbs +17 -0
- data/sig/generated/acp/types/logout_request.rbs +17 -0
- data/sig/generated/acp/types/logout_response.rbs +17 -0
- data/sig/generated/acp/types/mcp_capabilities.rbs +25 -0
- data/sig/generated/acp/types/mcp_server/http.rbs +29 -0
- data/sig/generated/acp/types/mcp_server/sse.rbs +29 -0
- data/sig/generated/acp/types/mcp_server.rbs +9 -0
- data/sig/generated/acp/types/mcp_server_http.rbs +29 -0
- data/sig/generated/acp/types/mcp_server_sse.rbs +29 -0
- data/sig/generated/acp/types/mcp_server_stdio.rbs +33 -0
- data/sig/generated/acp/types/multi_select_items/string_multi_select_items.rbs +21 -0
- data/sig/generated/acp/types/multi_select_items.rbs +9 -0
- data/sig/generated/acp/types/multi_select_property_schema.rbs +41 -0
- data/sig/generated/acp/types/new_session_request.rbs +29 -0
- data/sig/generated/acp/types/new_session_response.rbs +29 -0
- data/sig/generated/acp/types/number_property_schema.rbs +37 -0
- data/sig/generated/acp/types/permission_option.rbs +29 -0
- data/sig/generated/acp/types/permission_option_kind.rbs +11 -0
- data/sig/generated/acp/types/plan.rbs +21 -0
- data/sig/generated/acp/types/plan_entry.rbs +29 -0
- data/sig/generated/acp/types/plan_entry_priority.rbs +9 -0
- data/sig/generated/acp/types/plan_entry_status.rbs +9 -0
- data/sig/generated/acp/types/prompt_capabilities.rbs +29 -0
- data/sig/generated/acp/types/prompt_request.rbs +25 -0
- data/sig/generated/acp/types/prompt_response.rbs +21 -0
- data/sig/generated/acp/types/read_text_file_request.rbs +33 -0
- data/sig/generated/acp/types/read_text_file_response.rbs +21 -0
- data/sig/generated/acp/types/release_terminal_request.rbs +25 -0
- data/sig/generated/acp/types/release_terminal_response.rbs +17 -0
- data/sig/generated/acp/types/request_permission_outcome/cancelled.rbs +13 -0
- data/sig/generated/acp/types/request_permission_outcome/selected.rbs +21 -0
- data/sig/generated/acp/types/request_permission_outcome.rbs +9 -0
- data/sig/generated/acp/types/request_permission_request.rbs +29 -0
- data/sig/generated/acp/types/request_permission_response.rbs +21 -0
- data/sig/generated/acp/types/resource_link.rbs +45 -0
- data/sig/generated/acp/types/resume_session_request.rbs +33 -0
- data/sig/generated/acp/types/resume_session_response.rbs +25 -0
- data/sig/generated/acp/types/role.rbs +7 -0
- data/sig/generated/acp/types/selected_permission_outcome.rbs +21 -0
- data/sig/generated/acp/types/session_additional_directories_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_capabilities.rbs +37 -0
- data/sig/generated/acp/types/session_close_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_config_boolean.rbs +17 -0
- data/sig/generated/acp/types/session_config_option/kind/boolean.rbs +17 -0
- data/sig/generated/acp/types/session_config_option/kind/select.rbs +21 -0
- data/sig/generated/acp/types/session_config_option/kind.rbs +9 -0
- data/sig/generated/acp/types/session_config_option.rbs +37 -0
- data/sig/generated/acp/types/session_config_option_category.rbs +11 -0
- data/sig/generated/acp/types/session_config_options_capabilities.rbs +21 -0
- data/sig/generated/acp/types/session_config_select.rbs +21 -0
- data/sig/generated/acp/types/session_config_select_group.rbs +29 -0
- data/sig/generated/acp/types/session_config_select_option.rbs +29 -0
- data/sig/generated/acp/types/session_config_select_options.rbs +9 -0
- data/sig/generated/acp/types/session_delete_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_info.rbs +37 -0
- data/sig/generated/acp/types/session_info_update.rbs +25 -0
- data/sig/generated/acp/types/session_list_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_list_request.rbs +3 -0
- data/sig/generated/acp/types/session_list_response.rbs +3 -0
- data/sig/generated/acp/types/session_load_request.rbs +3 -0
- data/sig/generated/acp/types/session_mode.rbs +29 -0
- data/sig/generated/acp/types/session_mode_state.rbs +25 -0
- data/sig/generated/acp/types/session_new_request.rbs +3 -0
- data/sig/generated/acp/types/session_notification.rbs +25 -0
- data/sig/generated/acp/types/session_prompt_request.rbs +3 -0
- data/sig/generated/acp/types/session_resume_capabilities.rbs +17 -0
- data/sig/generated/acp/types/session_update/agent_message_chunk.rbs +25 -0
- data/sig/generated/acp/types/session_update/agent_thought_chunk.rbs +25 -0
- data/sig/generated/acp/types/session_update/available_commands_update.rbs +21 -0
- data/sig/generated/acp/types/session_update/config_option_update.rbs +21 -0
- data/sig/generated/acp/types/session_update/current_mode_update.rbs +21 -0
- data/sig/generated/acp/types/session_update/plan.rbs +21 -0
- data/sig/generated/acp/types/session_update/session_info_update.rbs +25 -0
- data/sig/generated/acp/types/session_update/tool_call.rbs +49 -0
- data/sig/generated/acp/types/session_update/tool_call_update.rbs +49 -0
- data/sig/generated/acp/types/session_update/usage_update.rbs +29 -0
- data/sig/generated/acp/types/session_update/user_message_chunk.rbs +25 -0
- data/sig/generated/acp/types/session_update.rbs +9 -0
- data/sig/generated/acp/types/set_session_config_option_request/value/boolean.rbs +17 -0
- data/sig/generated/acp/types/set_session_config_option_request/value/value_id.rbs +17 -0
- data/sig/generated/acp/types/set_session_config_option_request/value.rbs +9 -0
- data/sig/generated/acp/types/set_session_config_option_request.rbs +29 -0
- data/sig/generated/acp/types/set_session_config_option_response.rbs +21 -0
- data/sig/generated/acp/types/set_session_mode_request.rbs +25 -0
- data/sig/generated/acp/types/set_session_mode_response.rbs +17 -0
- data/sig/generated/acp/types/stop_reason.rbs +13 -0
- data/sig/generated/acp/types/string_format.rbs +11 -0
- data/sig/generated/acp/types/string_multi_select_items.rbs +21 -0
- data/sig/generated/acp/types/string_property_schema.rbs +53 -0
- data/sig/generated/acp/types/terminal.rbs +21 -0
- data/sig/generated/acp/types/terminal_exit_status.rbs +25 -0
- data/sig/generated/acp/types/terminal_output_request.rbs +25 -0
- data/sig/generated/acp/types/terminal_output_response.rbs +29 -0
- data/sig/generated/acp/types/text_content.rbs +25 -0
- data/sig/generated/acp/types/text_resource_contents.rbs +29 -0
- data/sig/generated/acp/types/titled_multi_select_items.rbs +21 -0
- data/sig/generated/acp/types/tool_call.rbs +49 -0
- data/sig/generated/acp/types/tool_call_content/content.rbs +21 -0
- data/sig/generated/acp/types/tool_call_content/diff.rbs +29 -0
- data/sig/generated/acp/types/tool_call_content/terminal.rbs +21 -0
- data/sig/generated/acp/types/tool_call_content.rbs +9 -0
- data/sig/generated/acp/types/tool_call_location.rbs +25 -0
- data/sig/generated/acp/types/tool_call_status.rbs +11 -0
- data/sig/generated/acp/types/tool_call_update.rbs +49 -0
- data/sig/generated/acp/types/tool_kind.rbs +23 -0
- data/sig/generated/acp/types/unstructured_command_input.rbs +21 -0
- data/sig/generated/acp/types/usage_update.rbs +29 -0
- data/sig/generated/acp/types/wait_for_terminal_exit_request.rbs +25 -0
- data/sig/generated/acp/types/wait_for_terminal_exit_response.rbs +25 -0
- data/sig/generated/acp/types/write_text_file_request.rbs +29 -0
- data/sig/generated/acp/types/write_text_file_response.rbs +17 -0
- data/sig/generated/acp/version.rbs +5 -0
- data/sig/manual/acp/agent_connection.rbs +52 -0
- data/sig/manual/acp/client_connection.rbs +13 -0
- data/sig/manual/acp/transport/stdio.rbs +18 -0
- data/sig/manual/acp/types.rbs +2 -0
- metadata +477 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/close_session_request.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CloseSessionRequest
|
|
4
|
+
# @dynamic session_id
|
|
5
|
+
attr_reader session_id: String
|
|
6
|
+
|
|
7
|
+
# @dynamic meta
|
|
8
|
+
attr_reader meta: Hash[String, untyped]?
|
|
9
|
+
|
|
10
|
+
# @rbs session_id: String
|
|
11
|
+
# @rbs meta: Hash[String, untyped]?
|
|
12
|
+
# @rbs return: void
|
|
13
|
+
def initialize: (session_id: String, ?meta: Hash[String, untyped]?) -> void
|
|
14
|
+
|
|
15
|
+
# @rbs hash: Hash[String, untyped]
|
|
16
|
+
# @rbs return: ACP::Types::CloseSessionRequest
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CloseSessionRequest
|
|
18
|
+
|
|
19
|
+
# @rbs return: Hash[String, untyped]
|
|
20
|
+
def to_h: () -> Hash[String, untyped]
|
|
21
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from lib/acp/types/close_session_response.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CloseSessionResponse
|
|
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::CloseSessionResponse
|
|
13
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CloseSessionResponse
|
|
14
|
+
|
|
15
|
+
# @rbs return: Hash[String, untyped]
|
|
16
|
+
def to_h: () -> Hash[String, untyped]
|
|
17
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/complete_elicitation_notification.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CompleteElicitationNotification
|
|
4
|
+
# @dynamic elicitation_id
|
|
5
|
+
attr_reader elicitation_id: String
|
|
6
|
+
|
|
7
|
+
# @dynamic meta
|
|
8
|
+
attr_reader meta: Hash[String, untyped]?
|
|
9
|
+
|
|
10
|
+
# @rbs elicitation_id: String
|
|
11
|
+
# @rbs meta: Hash[String, untyped]?
|
|
12
|
+
# @rbs return: void
|
|
13
|
+
def initialize: (elicitation_id: String, ?meta: Hash[String, untyped]?) -> void
|
|
14
|
+
|
|
15
|
+
# @rbs hash: Hash[String, untyped]
|
|
16
|
+
# @rbs return: ACP::Types::CompleteElicitationNotification
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CompleteElicitationNotification
|
|
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/config_option_update.rb with RBS::Inline
|
|
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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/content.rb with RBS::Inline
|
|
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
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated from lib/acp/types/content_block/audio.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ContentBlock::Audio
|
|
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 meta
|
|
14
|
+
attr_reader meta: Hash[String, untyped]?
|
|
15
|
+
|
|
16
|
+
# @rbs annotations: ACP::Types::Annotations?
|
|
17
|
+
# @rbs data: String
|
|
18
|
+
# @rbs mime_type: String
|
|
19
|
+
# @rbs meta: Hash[String, untyped]?
|
|
20
|
+
# @rbs return: void
|
|
21
|
+
def initialize: (data: String, mime_type: String, ?annotations: ACP::Types::Annotations?, ?meta: Hash[String, untyped]?) -> void
|
|
22
|
+
|
|
23
|
+
# @rbs hash: Hash[String, untyped]
|
|
24
|
+
# @rbs return: ACP::Types::ContentBlock::Audio
|
|
25
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ContentBlock::Audio
|
|
26
|
+
|
|
27
|
+
# @rbs return: Hash[String, untyped]
|
|
28
|
+
def to_h: () -> Hash[String, untyped]
|
|
29
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Generated from lib/acp/types/content_block/image.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ContentBlock::Image
|
|
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::ContentBlock::Image
|
|
29
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ContentBlock::Image
|
|
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/content_block/resource.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ContentBlock::Resource
|
|
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::ContentBlock::Resource
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ContentBlock::Resource
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Generated from lib/acp/types/content_block/resource_link.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ContentBlock::ResourceLink
|
|
4
|
+
# @dynamic annotations
|
|
5
|
+
attr_reader annotations: ACP::Types::Annotations?
|
|
6
|
+
|
|
7
|
+
# @dynamic description
|
|
8
|
+
attr_reader description: String?
|
|
9
|
+
|
|
10
|
+
# @dynamic mime_type
|
|
11
|
+
attr_reader mime_type: String?
|
|
12
|
+
|
|
13
|
+
# @dynamic name
|
|
14
|
+
attr_reader name: String
|
|
15
|
+
|
|
16
|
+
# @dynamic size
|
|
17
|
+
attr_reader size: Integer?
|
|
18
|
+
|
|
19
|
+
# @dynamic title
|
|
20
|
+
attr_reader title: String?
|
|
21
|
+
|
|
22
|
+
# @dynamic uri
|
|
23
|
+
attr_reader uri: String
|
|
24
|
+
|
|
25
|
+
# @dynamic meta
|
|
26
|
+
attr_reader meta: Hash[String, untyped]?
|
|
27
|
+
|
|
28
|
+
# @rbs annotations: ACP::Types::Annotations?
|
|
29
|
+
# @rbs description: String?
|
|
30
|
+
# @rbs mime_type: String?
|
|
31
|
+
# @rbs name: String
|
|
32
|
+
# @rbs size: Integer?
|
|
33
|
+
# @rbs title: String?
|
|
34
|
+
# @rbs uri: String
|
|
35
|
+
# @rbs meta: Hash[String, untyped]?
|
|
36
|
+
# @rbs return: void
|
|
37
|
+
def initialize: (name: String, uri: String, ?annotations: ACP::Types::Annotations?, ?description: String?, ?mime_type: String?, ?size: Integer?, ?title: String?, ?meta: Hash[String, untyped]?) -> void
|
|
38
|
+
|
|
39
|
+
# @rbs hash: Hash[String, untyped]
|
|
40
|
+
# @rbs return: ACP::Types::ContentBlock::ResourceLink
|
|
41
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ContentBlock::ResourceLink
|
|
42
|
+
|
|
43
|
+
# @rbs return: Hash[String, untyped]
|
|
44
|
+
def to_h: () -> Hash[String, untyped]
|
|
45
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/content_block/text.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ContentBlock::Text
|
|
4
|
+
# @dynamic annotations
|
|
5
|
+
attr_reader annotations: ACP::Types::Annotations?
|
|
6
|
+
|
|
7
|
+
# @dynamic text
|
|
8
|
+
attr_reader text: String
|
|
9
|
+
|
|
10
|
+
# @dynamic meta
|
|
11
|
+
attr_reader meta: Hash[String, untyped]?
|
|
12
|
+
|
|
13
|
+
# @rbs annotations: ACP::Types::Annotations?
|
|
14
|
+
# @rbs text: String
|
|
15
|
+
# @rbs meta: Hash[String, untyped]?
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (text: String, ?annotations: ACP::Types::Annotations?, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::ContentBlock::Text
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ContentBlock::Text
|
|
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/content_block.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module ACP::Types::ContentBlock
|
|
4
|
+
type t = ACP::Types::ContentBlock::Text | ACP::Types::ContentBlock::Image | ACP::Types::ContentBlock::Audio | ACP::Types::ContentBlock::ResourceLink | ACP::Types::ContentBlock::Resource | 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
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/content_chunk.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::ContentChunk
|
|
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::ContentChunk
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::ContentChunk
|
|
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/cost.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::Cost
|
|
4
|
+
# @dynamic amount
|
|
5
|
+
attr_reader amount: Numeric
|
|
6
|
+
|
|
7
|
+
# @dynamic currency
|
|
8
|
+
attr_reader currency: String
|
|
9
|
+
|
|
10
|
+
# @dynamic meta
|
|
11
|
+
attr_reader meta: Hash[String, untyped]?
|
|
12
|
+
|
|
13
|
+
# @rbs amount: Numeric
|
|
14
|
+
# @rbs currency: String
|
|
15
|
+
# @rbs meta: Hash[String, untyped]?
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (amount: Numeric, currency: String, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::Cost
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::Cost
|
|
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/create_elicitation_request/mode/form.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateElicitationRequest::Mode::Form
|
|
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::CreateElicitationRequest::Mode::Form
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CreateElicitationRequest::Mode::Form
|
|
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/create_elicitation_request/mode/url.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateElicitationRequest::Mode::Url
|
|
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::CreateElicitationRequest::Mode::Url
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CreateElicitationRequest::Mode::Url
|
|
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/create_elicitation_request/mode.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module ACP::Types::CreateElicitationRequest::Mode
|
|
4
|
+
type t = ACP::Types::CreateElicitationRequest::Mode::Form | ACP::Types::CreateElicitationRequest::Mode::Url | 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
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_elicitation_request.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateElicitationRequest
|
|
4
|
+
# @dynamic message
|
|
5
|
+
attr_reader message: String
|
|
6
|
+
|
|
7
|
+
# @dynamic meta
|
|
8
|
+
attr_reader meta: Hash[String, untyped]?
|
|
9
|
+
|
|
10
|
+
# @dynamic mode
|
|
11
|
+
attr_reader mode: ACP::Types::CreateElicitationRequest::Mode::t
|
|
12
|
+
|
|
13
|
+
# @rbs message: String
|
|
14
|
+
# @rbs meta: Hash[String, untyped]?
|
|
15
|
+
# @rbs mode: ACP::Types::CreateElicitationRequest::Mode::t
|
|
16
|
+
# @rbs return: void
|
|
17
|
+
def initialize: (message: String, mode: ACP::Types::CreateElicitationRequest::Mode::t, ?meta: Hash[String, untyped]?) -> void
|
|
18
|
+
|
|
19
|
+
# @rbs hash: Hash[String, untyped]
|
|
20
|
+
# @rbs return: ACP::Types::CreateElicitationRequest
|
|
21
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CreateElicitationRequest
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h: () -> Hash[String, untyped]
|
|
25
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_elicitation_response/action/accept.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateElicitationResponse::Action::Accept
|
|
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::CreateElicitationResponse::Action::Accept
|
|
13
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CreateElicitationResponse::Action::Accept
|
|
14
|
+
|
|
15
|
+
# @rbs return: Hash[String, untyped]
|
|
16
|
+
def to_h: () -> Hash[String, untyped]
|
|
17
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_elicitation_response/action/cancel.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateElicitationResponse::Action::Cancel
|
|
4
|
+
# @rbs return: void
|
|
5
|
+
def initialize: () -> void
|
|
6
|
+
|
|
7
|
+
# @rbs _hash: Hash[String, untyped]
|
|
8
|
+
# @rbs return: ACP::Types::CreateElicitationResponse::Action::Cancel
|
|
9
|
+
def self.from_h: (untyped _hash) -> ACP::Types::CreateElicitationResponse::Action::Cancel
|
|
10
|
+
|
|
11
|
+
# @rbs return: Hash[String, untyped]
|
|
12
|
+
def to_h: () -> Hash[String, untyped]
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_elicitation_response/action/decline.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateElicitationResponse::Action::Decline
|
|
4
|
+
# @rbs return: void
|
|
5
|
+
def initialize: () -> void
|
|
6
|
+
|
|
7
|
+
# @rbs _hash: Hash[String, untyped]
|
|
8
|
+
# @rbs return: ACP::Types::CreateElicitationResponse::Action::Decline
|
|
9
|
+
def self.from_h: (untyped _hash) -> ACP::Types::CreateElicitationResponse::Action::Decline
|
|
10
|
+
|
|
11
|
+
# @rbs return: Hash[String, untyped]
|
|
12
|
+
def to_h: () -> Hash[String, untyped]
|
|
13
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_elicitation_response/action.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module ACP::Types::CreateElicitationResponse::Action
|
|
4
|
+
type t = ACP::Types::CreateElicitationResponse::Action::Accept | ACP::Types::CreateElicitationResponse::Action::Decline | ACP::Types::CreateElicitationResponse::Action::Cancel | 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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_elicitation_response.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateElicitationResponse
|
|
4
|
+
# @dynamic meta
|
|
5
|
+
attr_reader meta: Hash[String, untyped]?
|
|
6
|
+
|
|
7
|
+
# @dynamic action
|
|
8
|
+
attr_reader action: ACP::Types::CreateElicitationResponse::Action::t
|
|
9
|
+
|
|
10
|
+
# @rbs meta: Hash[String, untyped]?
|
|
11
|
+
# @rbs action: ACP::Types::CreateElicitationResponse::Action::t
|
|
12
|
+
# @rbs return: void
|
|
13
|
+
def initialize: (action: ACP::Types::CreateElicitationResponse::Action::t, ?meta: Hash[String, untyped]?) -> void
|
|
14
|
+
|
|
15
|
+
# @rbs hash: Hash[String, untyped]
|
|
16
|
+
# @rbs return: ACP::Types::CreateElicitationResponse
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CreateElicitationResponse
|
|
18
|
+
|
|
19
|
+
# @rbs return: Hash[String, untyped]
|
|
20
|
+
def to_h: () -> Hash[String, untyped]
|
|
21
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_terminal_request.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateTerminalRequest
|
|
4
|
+
# @dynamic session_id
|
|
5
|
+
attr_reader session_id: String
|
|
6
|
+
|
|
7
|
+
# @dynamic command
|
|
8
|
+
attr_reader command: String
|
|
9
|
+
|
|
10
|
+
# @dynamic args
|
|
11
|
+
attr_reader args: Array[String]?
|
|
12
|
+
|
|
13
|
+
# @dynamic env
|
|
14
|
+
attr_reader env: Array[ACP::Types::EnvVariable]?
|
|
15
|
+
|
|
16
|
+
# @dynamic cwd
|
|
17
|
+
attr_reader cwd: String?
|
|
18
|
+
|
|
19
|
+
# @dynamic output_byte_limit
|
|
20
|
+
attr_reader output_byte_limit: Integer?
|
|
21
|
+
|
|
22
|
+
# @dynamic meta
|
|
23
|
+
attr_reader meta: Hash[String, untyped]?
|
|
24
|
+
|
|
25
|
+
# @rbs session_id: String
|
|
26
|
+
# @rbs command: String
|
|
27
|
+
# @rbs args: Array[String]?
|
|
28
|
+
# @rbs env: Array[ACP::Types::EnvVariable]?
|
|
29
|
+
# @rbs cwd: String?
|
|
30
|
+
# @rbs output_byte_limit: Integer?
|
|
31
|
+
# @rbs meta: Hash[String, untyped]?
|
|
32
|
+
# @rbs return: void
|
|
33
|
+
def initialize: (session_id: String, command: String, ?args: Array[String]?, ?env: Array[ACP::Types::EnvVariable]?, ?cwd: String?, ?output_byte_limit: Integer?, ?meta: Hash[String, untyped]?) -> void
|
|
34
|
+
|
|
35
|
+
# @rbs hash: Hash[String, untyped]
|
|
36
|
+
# @rbs return: ACP::Types::CreateTerminalRequest
|
|
37
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CreateTerminalRequest
|
|
38
|
+
|
|
39
|
+
# @rbs return: Hash[String, untyped]
|
|
40
|
+
def to_h: () -> Hash[String, untyped]
|
|
41
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/create_terminal_response.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::CreateTerminalResponse
|
|
4
|
+
# @dynamic terminal_id
|
|
5
|
+
attr_reader terminal_id: String
|
|
6
|
+
|
|
7
|
+
# @dynamic meta
|
|
8
|
+
attr_reader meta: Hash[String, untyped]?
|
|
9
|
+
|
|
10
|
+
# @rbs terminal_id: String
|
|
11
|
+
# @rbs meta: Hash[String, untyped]?
|
|
12
|
+
# @rbs return: void
|
|
13
|
+
def initialize: (terminal_id: String, ?meta: Hash[String, untyped]?) -> void
|
|
14
|
+
|
|
15
|
+
# @rbs hash: Hash[String, untyped]
|
|
16
|
+
# @rbs return: ACP::Types::CreateTerminalResponse
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::CreateTerminalResponse
|
|
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/current_mode_update.rb with RBS::Inline
|
|
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
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated from lib/acp/types/delete_session_request.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::DeleteSessionRequest
|
|
4
|
+
# @dynamic session_id
|
|
5
|
+
attr_reader session_id: String
|
|
6
|
+
|
|
7
|
+
# @dynamic meta
|
|
8
|
+
attr_reader meta: Hash[String, untyped]?
|
|
9
|
+
|
|
10
|
+
# @rbs session_id: String
|
|
11
|
+
# @rbs meta: Hash[String, untyped]?
|
|
12
|
+
# @rbs return: void
|
|
13
|
+
def initialize: (session_id: String, ?meta: Hash[String, untyped]?) -> void
|
|
14
|
+
|
|
15
|
+
# @rbs hash: Hash[String, untyped]
|
|
16
|
+
# @rbs return: ACP::Types::DeleteSessionRequest
|
|
17
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::DeleteSessionRequest
|
|
18
|
+
|
|
19
|
+
# @rbs return: Hash[String, untyped]
|
|
20
|
+
def to_h: () -> Hash[String, untyped]
|
|
21
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Generated from lib/acp/types/delete_session_response.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
class ACP::Types::DeleteSessionResponse
|
|
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::DeleteSessionResponse
|
|
13
|
+
def self.from_h: (Hash[String, untyped] hash) -> ACP::Types::DeleteSessionResponse
|
|
14
|
+
|
|
15
|
+
# @rbs return: Hash[String, untyped]
|
|
16
|
+
def to_h: () -> Hash[String, untyped]
|
|
17
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated from lib/acp/types/diff.rb with RBS::Inline
|
|
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
|