acp-sdk 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +14 -1
- data/lib/acp/agent_connection/client.rb +1 -1
- data/lib/acp/agent_connection.rb +3 -1
- data/lib/acp/client_connection.rb +93 -4
- data/lib/acp/request_error.rb +15 -2
- data/lib/acp/sdk.rb +3 -1
- data/lib/acp/transport/cancellation.rb +25 -0
- data/lib/acp/transport/stdio.rb +67 -1
- data/lib/acp/types/agent_auth_capabilities.rb +4 -1
- data/lib/acp/types/agent_capabilities.rb +20 -5
- data/lib/acp/types/annotations.rb +6 -3
- data/lib/acp/types/audio_content.rb +8 -3
- data/lib/acp/types/auth_capabilities.rb +1 -1
- data/lib/acp/types/auth_method/terminal.rb +11 -5
- data/lib/acp/types/auth_method_agent.rb +6 -1
- data/lib/acp/types/auth_method_terminal.rb +11 -5
- data/lib/acp/types/authenticate_request.rb +1 -1
- data/lib/acp/types/available_command.rb +3 -3
- data/lib/acp/types/available_commands_update.rb +7 -4
- data/lib/acp/types/blob_resource_contents.rb +6 -1
- data/lib/acp/types/boolean_property_schema.rb +6 -1
- data/lib/acp/types/cancel_notification.rb +4 -1
- data/lib/acp/types/cancel_request_notification.rb +9 -1
- data/lib/acp/types/client_capabilities.rb +15 -5
- data/lib/acp/types/client_session_capabilities.rb +6 -3
- data/lib/acp/types/close_session_request.rb +4 -1
- data/lib/acp/types/complete_elicitation_notification.rb +4 -1
- data/lib/acp/types/config_option_update.rb +7 -4
- data/lib/acp/types/content.rb +4 -1
- data/lib/acp/types/content_block/audio.rb +8 -3
- data/lib/acp/types/content_block/image.rb +9 -4
- data/lib/acp/types/content_block/resource.rb +11 -2
- data/lib/acp/types/content_block/resource_link.rb +12 -7
- data/lib/acp/types/content_block/text.rb +7 -2
- data/lib/acp/types/content_chunk.rb +2 -2
- data/lib/acp/types/cost.rb +5 -1
- data/lib/acp/types/create_elicitation_request/mode/form.rb +5 -1
- data/lib/acp/types/create_elicitation_request/mode/url.rb +2 -2
- data/lib/acp/types/create_elicitation_request.rb +1 -1
- data/lib/acp/types/create_elicitation_response/action/accept.rb +6 -1
- data/lib/acp/types/create_terminal_request.rb +12 -6
- data/lib/acp/types/create_terminal_response.rb +4 -1
- data/lib/acp/types/current_mode_update.rb +4 -1
- data/lib/acp/types/delete_session_request.rb +4 -1
- data/lib/acp/types/diff.rb +6 -1
- data/lib/acp/types/elicitation_accept_action.rb +6 -1
- data/lib/acp/types/elicitation_capabilities.rb +2 -2
- data/lib/acp/types/elicitation_form_mode.rb +5 -1
- data/lib/acp/types/elicitation_property_schema/boolean_property_schema.rb +6 -1
- data/lib/acp/types/elicitation_property_schema/integer_property_schema.rb +5 -5
- data/lib/acp/types/elicitation_property_schema/multi_select_property_schema.rb +9 -6
- data/lib/acp/types/elicitation_property_schema/number_property_schema.rb +5 -5
- data/lib/acp/types/elicitation_property_schema/string_property_schema.rb +15 -9
- data/lib/acp/types/elicitation_request_scope.rb +8 -1
- data/lib/acp/types/elicitation_schema.rb +11 -5
- data/lib/acp/types/elicitation_session_scope.rb +4 -1
- data/lib/acp/types/elicitation_url_mode.rb +2 -2
- data/lib/acp/types/embedded_resource.rb +11 -2
- data/lib/acp/types/enum_option.rb +6 -1
- data/lib/acp/types/env_variable.rb +5 -1
- data/lib/acp/types/file_system_capabilities.rb +5 -1
- data/lib/acp/types/http_header.rb +5 -1
- data/lib/acp/types/image_content.rb +9 -4
- data/lib/acp/types/implementation.rb +6 -1
- data/lib/acp/types/initialize_request.rb +18 -3
- data/lib/acp/types/initialize_response.rb +17 -4
- data/lib/acp/types/integer_property_schema.rb +5 -5
- data/lib/acp/types/kill_terminal_request.rb +5 -1
- data/lib/acp/types/list_sessions_request.rb +5 -1
- data/lib/acp/types/list_sessions_response.rb +5 -2
- data/lib/acp/types/load_session_request.rb +14 -4
- data/lib/acp/types/load_session_response.rb +5 -2
- data/lib/acp/types/mcp_capabilities.rb +5 -1
- data/lib/acp/types/mcp_server/http.rb +6 -3
- data/lib/acp/types/mcp_server/sse.rb +6 -3
- data/lib/acp/types/mcp_server_http.rb +6 -3
- data/lib/acp/types/mcp_server_sse.rb +6 -3
- data/lib/acp/types/mcp_server_stdio.rb +10 -4
- data/lib/acp/types/multi_select_items/string_multi_select_items.rb +4 -1
- data/lib/acp/types/multi_select_property_schema.rb +9 -6
- data/lib/acp/types/new_session_request.rb +13 -3
- data/lib/acp/types/new_session_response.rb +6 -3
- data/lib/acp/types/number_property_schema.rb +5 -5
- data/lib/acp/types/permission_option.rb +10 -1
- data/lib/acp/types/plan.rb +4 -1
- data/lib/acp/types/plan_entry.rb +7 -3
- data/lib/acp/types/prompt_capabilities.rb +6 -1
- data/lib/acp/types/prompt_request.rb +5 -2
- data/lib/acp/types/prompt_response.rb +8 -1
- data/lib/acp/types/read_text_file_request.rb +4 -4
- data/lib/acp/types/read_text_file_response.rb +1 -1
- data/lib/acp/types/release_terminal_request.rb +5 -1
- data/lib/acp/types/request_permission_outcome/selected.rb +1 -1
- data/lib/acp/types/request_permission_request.rb +10 -3
- data/lib/acp/types/request_permission_response.rb +8 -1
- data/lib/acp/types/resource_link.rb +12 -7
- data/lib/acp/types/resume_session_request.rb +14 -4
- data/lib/acp/types/resume_session_response.rb +5 -2
- data/lib/acp/types/selected_permission_outcome.rb +1 -1
- data/lib/acp/types/session_capabilities.rb +20 -7
- data/lib/acp/types/session_config_boolean.rb +1 -1
- data/lib/acp/types/session_config_option/kind/boolean.rb +1 -1
- data/lib/acp/types/session_config_option/kind/select.rb +6 -2
- data/lib/acp/types/session_config_option.rb +3 -3
- data/lib/acp/types/session_config_options_capabilities.rb +6 -1
- data/lib/acp/types/session_config_select.rb +6 -2
- data/lib/acp/types/session_config_select_group.rb +6 -3
- data/lib/acp/types/session_config_select_option.rb +6 -1
- data/lib/acp/types/session_config_select_options.rb +6 -2
- data/lib/acp/types/session_info.rb +12 -5
- data/lib/acp/types/session_info_update.rb +10 -1
- data/lib/acp/types/session_mode.rb +6 -1
- data/lib/acp/types/session_mode_state.rb +8 -2
- data/lib/acp/types/session_notification.rb +2 -2
- data/lib/acp/types/session_update/agent_message_chunk.rb +2 -2
- data/lib/acp/types/session_update/agent_thought_chunk.rb +2 -2
- data/lib/acp/types/session_update/available_commands_update.rb +7 -4
- data/lib/acp/types/session_update/config_option_update.rb +7 -4
- data/lib/acp/types/session_update/current_mode_update.rb +4 -1
- data/lib/acp/types/session_update/plan.rb +4 -1
- data/lib/acp/types/session_update/session_info_update.rb +10 -1
- data/lib/acp/types/session_update/tool_call.rb +23 -7
- data/lib/acp/types/session_update/tool_call_update.rb +23 -7
- data/lib/acp/types/session_update/usage_update.rb +3 -3
- data/lib/acp/types/session_update/user_message_chunk.rb +2 -2
- data/lib/acp/types/set_session_config_option_request/value/boolean.rb +1 -1
- data/lib/acp/types/set_session_config_option_request/value/value_id.rb +1 -1
- data/lib/acp/types/set_session_config_option_request.rb +2 -2
- data/lib/acp/types/set_session_config_option_response.rb +7 -4
- data/lib/acp/types/set_session_mode_request.rb +5 -1
- data/lib/acp/types/string_multi_select_items.rb +4 -1
- data/lib/acp/types/string_property_schema.rb +15 -9
- data/lib/acp/types/terminal.rb +4 -1
- data/lib/acp/types/terminal_exit_status.rb +5 -1
- data/lib/acp/types/terminal_output_request.rb +5 -1
- data/lib/acp/types/terminal_output_response.rb +8 -3
- data/lib/acp/types/text_content.rb +7 -2
- data/lib/acp/types/text_resource_contents.rb +6 -1
- data/lib/acp/types/titled_multi_select_items.rb +4 -1
- data/lib/acp/types/tool_call.rb +23 -7
- data/lib/acp/types/tool_call_content/content.rb +4 -1
- data/lib/acp/types/tool_call_content/diff.rb +6 -1
- data/lib/acp/types/tool_call_content/terminal.rb +4 -1
- data/lib/acp/types/tool_call_location.rb +5 -1
- data/lib/acp/types/tool_call_update.rb +23 -7
- data/lib/acp/types/unstable/accept_nes_notification.rb +41 -0
- data/lib/acp/types/unstable/agent_capabilities.rb +122 -0
- data/lib/acp/types/unstable/client_capabilities.rb +127 -0
- data/lib/acp/types/unstable/client_nes_capabilities.rb +62 -0
- data/lib/acp/types/unstable/client_session_capabilities.rb +57 -0
- data/lib/acp/types/unstable/close_nes_request.rb +35 -0
- data/lib/acp/types/unstable/close_nes_response.rb +27 -0
- data/lib/acp/types/unstable/compaction_status.rb +11 -0
- data/lib/acp/types/unstable/compaction_summary_chunk.rb +41 -0
- data/lib/acp/types/unstable/compaction_update.rb +62 -0
- data/lib/acp/types/unstable/did_change_document_notification.rb +65 -0
- data/lib/acp/types/unstable/did_close_document_notification.rb +41 -0
- data/lib/acp/types/unstable/did_focus_document_notification.rb +74 -0
- data/lib/acp/types/unstable/did_open_document_notification.rb +66 -0
- data/lib/acp/types/unstable/did_save_document_notification.rb +41 -0
- data/lib/acp/types/unstable/disable_provider_request.rb +35 -0
- data/lib/acp/types/unstable/disable_provider_response.rb +27 -0
- data/lib/acp/types/unstable/fork_session_request.rb +69 -0
- data/lib/acp/types/unstable/fork_session_response.rb +55 -0
- data/lib/acp/types/unstable/idle_state_update.rb +46 -0
- data/lib/acp/types/unstable/initialize_response.rb +72 -0
- data/lib/acp/types/unstable/list_providers_request.rb +27 -0
- data/lib/acp/types/unstable/list_providers_response.rb +35 -0
- data/lib/acp/types/unstable/llm_protocol.rb +12 -0
- data/lib/acp/types/unstable/mcp_capabilities.rb +47 -0
- data/lib/acp/types/unstable/mcp_error.rb +41 -0
- data/lib/acp/types/unstable/mcp_server/acp.rb +41 -0
- data/lib/acp/types/unstable/mcp_server/http.rb +50 -0
- data/lib/acp/types/unstable/mcp_server/sse.rb +50 -0
- data/lib/acp/types/unstable/mcp_server.rb +25 -0
- data/lib/acp/types/unstable/mcp_server_acp.rb +41 -0
- data/lib/acp/types/unstable/message_mcp_notification.rb +59 -0
- data/lib/acp/types/unstable/message_mcp_request.rb +59 -0
- data/lib/acp/types/unstable/message_mcp_response/error.rb +35 -0
- data/lib/acp/types/unstable/message_mcp_response/result.rb +32 -0
- data/lib/acp/types/unstable/message_mcp_response.rb +23 -0
- data/lib/acp/types/unstable/nes_capabilities.rb +51 -0
- data/lib/acp/types/unstable/nes_context_capabilities.rb +111 -0
- data/lib/acp/types/unstable/nes_diagnostic.rb +57 -0
- data/lib/acp/types/unstable/nes_diagnostic_severity.rb +11 -0
- data/lib/acp/types/unstable/nes_diagnostics_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_document_did_change_capabilities.rb +35 -0
- data/lib/acp/types/unstable/nes_document_did_close_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_document_did_focus_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_document_did_open_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_document_did_save_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_document_event_capabilities.rb +91 -0
- data/lib/acp/types/unstable/nes_edit_history_capabilities.rb +35 -0
- data/lib/acp/types/unstable/nes_edit_history_entry.rb +41 -0
- data/lib/acp/types/unstable/nes_edit_suggestion.rb +67 -0
- data/lib/acp/types/unstable/nes_event_capabilities.rb +40 -0
- data/lib/acp/types/unstable/nes_excerpt.rb +47 -0
- data/lib/acp/types/unstable/nes_jump_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_jump_suggestion.rb +51 -0
- data/lib/acp/types/unstable/nes_open_file.rb +64 -0
- data/lib/acp/types/unstable/nes_open_files_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_recent_file.rb +47 -0
- data/lib/acp/types/unstable/nes_recent_files_capabilities.rb +35 -0
- data/lib/acp/types/unstable/nes_reject_reason.rb +11 -0
- data/lib/acp/types/unstable/nes_related_snippet.rb +40 -0
- data/lib/acp/types/unstable/nes_related_snippets_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_rename_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_rename_suggestion.rb +57 -0
- data/lib/acp/types/unstable/nes_repository.rb +47 -0
- data/lib/acp/types/unstable/nes_search_and_replace_capabilities.rb +27 -0
- data/lib/acp/types/unstable/nes_search_and_replace_suggestion.rb +66 -0
- data/lib/acp/types/unstable/nes_suggest_context.rb +95 -0
- data/lib/acp/types/unstable/nes_suggestion/edit.rb +68 -0
- data/lib/acp/types/unstable/nes_suggestion/jump.rb +51 -0
- data/lib/acp/types/unstable/nes_suggestion/rename.rb +64 -0
- data/lib/acp/types/unstable/nes_suggestion/searchandreplace.rb +67 -0
- data/lib/acp/types/unstable/nes_suggestion.rb +25 -0
- data/lib/acp/types/unstable/nes_text_edit.rb +41 -0
- data/lib/acp/types/unstable/nes_trigger_kind.rb +10 -0
- data/lib/acp/types/unstable/nes_user_action.rb +63 -0
- data/lib/acp/types/unstable/nes_user_actions_capabilities.rb +35 -0
- data/lib/acp/types/unstable/notice.rb +47 -0
- data/lib/acp/types/unstable/notice_severity.rb +10 -0
- data/lib/acp/types/unstable/plan_capabilities.rb +27 -0
- data/lib/acp/types/unstable/plan_file.rb +41 -0
- data/lib/acp/types/unstable/plan_items.rb +44 -0
- data/lib/acp/types/unstable/plan_markdown.rb +41 -0
- data/lib/acp/types/unstable/plan_removed.rb +32 -0
- data/lib/acp/types/unstable/plan_update.rb +39 -0
- data/lib/acp/types/unstable/plan_update_content/file.rb +41 -0
- data/lib/acp/types/unstable/plan_update_content/items.rb +44 -0
- data/lib/acp/types/unstable/plan_update_content/markdown.rb +41 -0
- data/lib/acp/types/unstable/plan_update_content.rb +23 -0
- data/lib/acp/types/unstable/position.rb +41 -0
- data/lib/acp/types/unstable/position_encoding_kind.rb +10 -0
- data/lib/acp/types/unstable/prompt_response.rb +45 -0
- data/lib/acp/types/unstable/provider_current_config.rb +41 -0
- data/lib/acp/types/unstable/provider_info.rb +64 -0
- data/lib/acp/types/unstable/providers_capabilities.rb +27 -0
- data/lib/acp/types/unstable/range.rb +41 -0
- data/lib/acp/types/unstable/reject_nes_notification.rb +52 -0
- data/lib/acp/types/unstable/requires_action_state_update.rb +27 -0
- data/lib/acp/types/unstable/running_state_update.rb +27 -0
- data/lib/acp/types/unstable/session_cancel_capabilities.rb +27 -0
- data/lib/acp/types/unstable/session_capabilities.rb +93 -0
- data/lib/acp/types/unstable/session_fork_capabilities.rb +27 -0
- data/lib/acp/types/unstable/session_message.rb +62 -0
- data/lib/acp/types/unstable/session_message_chunk.rb +59 -0
- data/lib/acp/types/unstable/session_update/agent_message_chunk.rb +46 -0
- data/lib/acp/types/unstable/session_update/agent_thought_chunk.rb +46 -0
- data/lib/acp/types/unstable/session_update/available_commands_update.rb +42 -0
- data/lib/acp/types/unstable/session_update/compaction_summary_chunk.rb +46 -0
- data/lib/acp/types/unstable/session_update/compaction_update.rb +63 -0
- data/lib/acp/types/unstable/session_update/config_option_update.rb +42 -0
- data/lib/acp/types/unstable/session_update/current_mode_update.rb +35 -0
- data/lib/acp/types/unstable/session_update/notice.rb +53 -0
- data/lib/acp/types/unstable/session_update/plan.rb +35 -0
- data/lib/acp/types/unstable/session_update/plan_removed.rb +32 -0
- data/lib/acp/types/unstable/session_update/plan_update.rb +39 -0
- data/lib/acp/types/unstable/session_update/session_info_update.rb +49 -0
- data/lib/acp/types/unstable/session_update/session_message.rb +63 -0
- data/lib/acp/types/unstable/session_update/session_message_chunk.rb +60 -0
- data/lib/acp/types/unstable/session_update/subagent_update.rb +72 -0
- data/lib/acp/types/unstable/session_update/tool_call.rb +122 -0
- data/lib/acp/types/unstable/session_update/tool_call_update.rb +122 -0
- data/lib/acp/types/unstable/session_update/usage_update.rb +47 -0
- data/lib/acp/types/unstable/session_update/user_message_chunk.rb +46 -0
- data/lib/acp/types/unstable/session_update.rb +55 -0
- data/lib/acp/types/unstable/set_provider_request.rb +62 -0
- data/lib/acp/types/unstable/set_provider_response.rb +27 -0
- data/lib/acp/types/unstable/start_nes_request.rb +64 -0
- data/lib/acp/types/unstable/start_nes_response.rb +35 -0
- data/lib/acp/types/unstable/state_update/idle.rb +46 -0
- data/lib/acp/types/unstable/state_update/requires_action.rb +27 -0
- data/lib/acp/types/unstable/state_update/running.rb +27 -0
- data/lib/acp/types/unstable/state_update/unknown.rb +27 -0
- data/lib/acp/types/unstable/state_update.rb +25 -0
- data/lib/acp/types/unstable/subagent_capabilities.rb +27 -0
- data/lib/acp/types/unstable/subagent_session_capabilities.rb +40 -0
- data/lib/acp/types/unstable/subagent_update.rb +71 -0
- data/lib/acp/types/unstable/suggest_nes_request.rb +93 -0
- data/lib/acp/types/unstable/suggest_nes_response.rb +35 -0
- data/lib/acp/types/unstable/text_document_content_change_event.rb +41 -0
- data/lib/acp/types/unstable/text_document_sync_kind.rb +9 -0
- data/lib/acp/types/unstable/unknown_state_update.rb +27 -0
- data/lib/acp/types/unstable/usage.rb +91 -0
- data/lib/acp/types/unstable/workspace_folder.rb +41 -0
- data/lib/acp/types/unstable.rb +155 -0
- data/lib/acp/types/unstructured_command_input.rb +1 -1
- data/lib/acp/types/usage_update.rb +3 -3
- data/lib/acp/types/wait_for_terminal_exit_request.rb +5 -1
- data/lib/acp/types/wait_for_terminal_exit_response.rb +5 -1
- data/lib/acp/types/write_text_file_request.rb +3 -3
- data/lib/acp/types.rb +247 -0
- data/lib/acp/version.rb +1 -1
- data/sig/generated/acp/client_connection.rbs +39 -1
- data/sig/generated/acp/request_error.rbs +12 -1
- data/sig/generated/acp/transport/cancellation.rbs +19 -0
- data/sig/generated/acp/transport/stdio.rbs +38 -0
- data/sig/generated/acp/types/unstable/accept_nes_notification.rbs +25 -0
- data/sig/generated/acp/types/unstable/agent_capabilities.rbs +49 -0
- data/sig/generated/acp/types/unstable/client_capabilities.rbs +53 -0
- data/sig/generated/acp/types/unstable/client_nes_capabilities.rbs +29 -0
- data/sig/generated/acp/types/unstable/client_session_capabilities.rbs +29 -0
- data/sig/generated/acp/types/unstable/close_nes_request.rbs +21 -0
- data/sig/generated/acp/types/unstable/close_nes_response.rbs +17 -0
- data/sig/generated/acp/types/unstable/compaction_status.rbs +11 -0
- data/sig/generated/acp/types/unstable/compaction_summary_chunk.rbs +25 -0
- data/sig/generated/acp/types/unstable/compaction_update.rbs +33 -0
- data/sig/generated/acp/types/unstable/did_change_document_notification.rbs +33 -0
- data/sig/generated/acp/types/unstable/did_close_document_notification.rbs +25 -0
- data/sig/generated/acp/types/unstable/did_focus_document_notification.rbs +37 -0
- data/sig/generated/acp/types/unstable/did_open_document_notification.rbs +37 -0
- data/sig/generated/acp/types/unstable/did_save_document_notification.rbs +25 -0
- data/sig/generated/acp/types/unstable/disable_provider_request.rbs +21 -0
- data/sig/generated/acp/types/unstable/disable_provider_response.rbs +17 -0
- data/sig/generated/acp/types/unstable/fork_session_request.rbs +33 -0
- data/sig/generated/acp/types/unstable/fork_session_response.rbs +29 -0
- data/sig/generated/acp/types/unstable/idle_state_update.rbs +25 -0
- data/sig/generated/acp/types/unstable/initialize_response.rbs +33 -0
- data/sig/generated/acp/types/unstable/list_providers_request.rbs +17 -0
- data/sig/generated/acp/types/unstable/list_providers_response.rbs +21 -0
- data/sig/generated/acp/types/unstable/llm_protocol.rbs +13 -0
- data/sig/generated/acp/types/unstable/mcp_capabilities.rbs +29 -0
- data/sig/generated/acp/types/unstable/mcp_error.rbs +25 -0
- data/sig/generated/acp/types/unstable/mcp_server/acp.rbs +25 -0
- data/sig/generated/acp/types/unstable/mcp_server/http.rbs +29 -0
- data/sig/generated/acp/types/unstable/mcp_server/sse.rbs +29 -0
- data/sig/generated/acp/types/unstable/mcp_server.rbs +9 -0
- data/sig/generated/acp/types/unstable/mcp_server_acp.rbs +25 -0
- data/sig/generated/acp/types/unstable/message_mcp_notification.rbs +33 -0
- data/sig/generated/acp/types/unstable/message_mcp_request.rbs +33 -0
- data/sig/generated/acp/types/unstable/message_mcp_response/error.rbs +21 -0
- data/sig/generated/acp/types/unstable/message_mcp_response/result.rbs +21 -0
- data/sig/generated/acp/types/unstable/message_mcp_response.rbs +9 -0
- data/sig/generated/acp/types/unstable/nes_capabilities.rbs +25 -0
- data/sig/generated/acp/types/unstable/nes_context_capabilities.rbs +41 -0
- data/sig/generated/acp/types/unstable/nes_diagnostic.rbs +33 -0
- data/sig/generated/acp/types/unstable/nes_diagnostic_severity.rbs +11 -0
- data/sig/generated/acp/types/unstable/nes_diagnostics_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_document_did_change_capabilities.rbs +21 -0
- data/sig/generated/acp/types/unstable/nes_document_did_close_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_document_did_focus_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_document_did_open_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_document_did_save_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_document_event_capabilities.rbs +37 -0
- data/sig/generated/acp/types/unstable/nes_edit_history_capabilities.rbs +21 -0
- data/sig/generated/acp/types/unstable/nes_edit_history_entry.rbs +25 -0
- data/sig/generated/acp/types/unstable/nes_edit_suggestion.rbs +33 -0
- data/sig/generated/acp/types/unstable/nes_event_capabilities.rbs +21 -0
- data/sig/generated/acp/types/unstable/nes_excerpt.rbs +29 -0
- data/sig/generated/acp/types/unstable/nes_jump_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_jump_suggestion.rbs +29 -0
- data/sig/generated/acp/types/unstable/nes_open_file.rbs +33 -0
- data/sig/generated/acp/types/unstable/nes_open_files_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_recent_file.rbs +29 -0
- data/sig/generated/acp/types/unstable/nes_recent_files_capabilities.rbs +21 -0
- data/sig/generated/acp/types/unstable/nes_reject_reason.rbs +11 -0
- data/sig/generated/acp/types/unstable/nes_related_snippet.rbs +25 -0
- data/sig/generated/acp/types/unstable/nes_related_snippets_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_rename_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_rename_suggestion.rbs +33 -0
- data/sig/generated/acp/types/unstable/nes_repository.rbs +29 -0
- data/sig/generated/acp/types/unstable/nes_search_and_replace_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/nes_search_and_replace_suggestion.rbs +37 -0
- data/sig/generated/acp/types/unstable/nes_suggest_context.rbs +41 -0
- data/sig/generated/acp/types/unstable/nes_suggestion/edit.rbs +33 -0
- data/sig/generated/acp/types/unstable/nes_suggestion/jump.rbs +29 -0
- data/sig/generated/acp/types/unstable/nes_suggestion/rename.rbs +33 -0
- data/sig/generated/acp/types/unstable/nes_suggestion/searchandreplace.rbs +37 -0
- data/sig/generated/acp/types/unstable/nes_suggestion.rbs +9 -0
- data/sig/generated/acp/types/unstable/nes_text_edit.rbs +25 -0
- data/sig/generated/acp/types/unstable/nes_trigger_kind.rbs +9 -0
- data/sig/generated/acp/types/unstable/nes_user_action.rbs +33 -0
- data/sig/generated/acp/types/unstable/nes_user_actions_capabilities.rbs +21 -0
- data/sig/generated/acp/types/unstable/notice.rbs +29 -0
- data/sig/generated/acp/types/unstable/notice_severity.rbs +9 -0
- data/sig/generated/acp/types/unstable/plan_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/plan_file.rbs +25 -0
- data/sig/generated/acp/types/unstable/plan_items.rbs +25 -0
- data/sig/generated/acp/types/unstable/plan_markdown.rbs +25 -0
- data/sig/generated/acp/types/unstable/plan_removed.rbs +21 -0
- data/sig/generated/acp/types/unstable/plan_update.rbs +21 -0
- data/sig/generated/acp/types/unstable/plan_update_content/file.rbs +25 -0
- data/sig/generated/acp/types/unstable/plan_update_content/items.rbs +25 -0
- data/sig/generated/acp/types/unstable/plan_update_content/markdown.rbs +25 -0
- data/sig/generated/acp/types/unstable/plan_update_content.rbs +9 -0
- data/sig/generated/acp/types/unstable/position.rbs +25 -0
- data/sig/generated/acp/types/unstable/position_encoding_kind.rbs +9 -0
- data/sig/generated/acp/types/unstable/prompt_response.rbs +25 -0
- data/sig/generated/acp/types/unstable/provider_current_config.rbs +25 -0
- data/sig/generated/acp/types/unstable/provider_info.rbs +33 -0
- data/sig/generated/acp/types/unstable/providers_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/range.rbs +25 -0
- data/sig/generated/acp/types/unstable/reject_nes_notification.rbs +29 -0
- data/sig/generated/acp/types/unstable/requires_action_state_update.rbs +17 -0
- data/sig/generated/acp/types/unstable/running_state_update.rbs +17 -0
- data/sig/generated/acp/types/unstable/session_cancel_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/session_capabilities.rbs +41 -0
- data/sig/generated/acp/types/unstable/session_fork_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/session_message.rbs +33 -0
- data/sig/generated/acp/types/unstable/session_message_chunk.rbs +33 -0
- data/sig/generated/acp/types/unstable/session_update/agent_message_chunk.rbs +25 -0
- data/sig/generated/acp/types/unstable/session_update/agent_thought_chunk.rbs +25 -0
- data/sig/generated/acp/types/unstable/session_update/available_commands_update.rbs +21 -0
- data/sig/generated/acp/types/unstable/session_update/compaction_summary_chunk.rbs +25 -0
- data/sig/generated/acp/types/unstable/session_update/compaction_update.rbs +33 -0
- data/sig/generated/acp/types/unstable/session_update/config_option_update.rbs +21 -0
- data/sig/generated/acp/types/unstable/session_update/current_mode_update.rbs +21 -0
- data/sig/generated/acp/types/unstable/session_update/notice.rbs +29 -0
- data/sig/generated/acp/types/unstable/session_update/plan.rbs +21 -0
- data/sig/generated/acp/types/unstable/session_update/plan_removed.rbs +21 -0
- data/sig/generated/acp/types/unstable/session_update/plan_update.rbs +21 -0
- data/sig/generated/acp/types/unstable/session_update/session_info_update.rbs +25 -0
- data/sig/generated/acp/types/unstable/session_update/session_message.rbs +33 -0
- data/sig/generated/acp/types/unstable/session_update/session_message_chunk.rbs +33 -0
- data/sig/generated/acp/types/unstable/session_update/subagent_update.rbs +37 -0
- data/sig/generated/acp/types/unstable/session_update/tool_call.rbs +53 -0
- data/sig/generated/acp/types/unstable/session_update/tool_call_update.rbs +53 -0
- data/sig/generated/acp/types/unstable/session_update/usage_update.rbs +29 -0
- data/sig/generated/acp/types/unstable/session_update/user_message_chunk.rbs +25 -0
- data/sig/generated/acp/types/unstable/session_update.rbs +9 -0
- data/sig/generated/acp/types/unstable/set_provider_request.rbs +33 -0
- data/sig/generated/acp/types/unstable/set_provider_response.rbs +17 -0
- data/sig/generated/acp/types/unstable/start_nes_request.rbs +29 -0
- data/sig/generated/acp/types/unstable/start_nes_response.rbs +21 -0
- data/sig/generated/acp/types/unstable/state_update/idle.rbs +25 -0
- data/sig/generated/acp/types/unstable/state_update/requires_action.rbs +17 -0
- data/sig/generated/acp/types/unstable/state_update/running.rbs +17 -0
- data/sig/generated/acp/types/unstable/state_update/unknown.rbs +17 -0
- data/sig/generated/acp/types/unstable/state_update.rbs +9 -0
- data/sig/generated/acp/types/unstable/subagent_capabilities.rbs +17 -0
- data/sig/generated/acp/types/unstable/subagent_session_capabilities.rbs +21 -0
- data/sig/generated/acp/types/unstable/subagent_update.rbs +37 -0
- data/sig/generated/acp/types/unstable/suggest_nes_request.rbs +45 -0
- data/sig/generated/acp/types/unstable/suggest_nes_response.rbs +21 -0
- data/sig/generated/acp/types/unstable/text_document_content_change_event.rbs +25 -0
- data/sig/generated/acp/types/unstable/text_document_sync_kind.rbs +7 -0
- data/sig/generated/acp/types/unstable/unknown_state_update.rbs +17 -0
- data/sig/generated/acp/types/unstable/usage.rbs +41 -0
- data/sig/generated/acp/types/unstable/workspace_folder.rbs +25 -0
- data/sig/generated/acp/types/unstable.rbs +4 -0
- data/sig/generated/acp/types.rbs +143 -0
- metadata +289 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesRenameSuggestion
|
|
7
|
+
# @dynamic id
|
|
8
|
+
attr_reader :id #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic uri
|
|
11
|
+
attr_reader :uri #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic position
|
|
14
|
+
attr_reader :position #: ACP::Types::Unstable::Position
|
|
15
|
+
|
|
16
|
+
# @dynamic new_name
|
|
17
|
+
attr_reader :new_name #: String
|
|
18
|
+
|
|
19
|
+
# @dynamic meta
|
|
20
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
21
|
+
|
|
22
|
+
# @rbs id: String
|
|
23
|
+
# @rbs uri: String
|
|
24
|
+
# @rbs position: ACP::Types::Unstable::Position
|
|
25
|
+
# @rbs new_name: String
|
|
26
|
+
# @rbs meta: Hash[String, untyped]?
|
|
27
|
+
# @rbs return: void
|
|
28
|
+
def initialize(id:, uri:, position:, new_name:, meta: nil)
|
|
29
|
+
@id = id
|
|
30
|
+
@uri = uri
|
|
31
|
+
@position = position
|
|
32
|
+
@new_name = new_name
|
|
33
|
+
@meta = meta
|
|
34
|
+
freeze
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @rbs hash: Hash[String, untyped]
|
|
38
|
+
# @rbs return: ACP::Types::Unstable::NesRenameSuggestion
|
|
39
|
+
def self.from_h(hash)
|
|
40
|
+
new(
|
|
41
|
+
id: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'id'), 'id'),
|
|
42
|
+
uri: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'uri'), 'uri'),
|
|
43
|
+
position: ACP::Types::Check.object(
|
|
44
|
+
ACP::Types::Check.key(hash, 'position'),
|
|
45
|
+
'position',
|
|
46
|
+
ACP::Types::Unstable::Position
|
|
47
|
+
),
|
|
48
|
+
new_name: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'newName'), 'newName'),
|
|
49
|
+
meta: hash['_meta']
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @rbs return: Hash[String, untyped]
|
|
54
|
+
def to_h
|
|
55
|
+
{ 'id' => id, 'uri' => uri, 'position' => position.to_h, 'newName' => new_name, '_meta' => meta }.compact
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesRepository
|
|
7
|
+
# @dynamic name
|
|
8
|
+
attr_reader :name #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic owner
|
|
11
|
+
attr_reader :owner #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic remote_url
|
|
14
|
+
attr_reader :remote_url #: String
|
|
15
|
+
|
|
16
|
+
# @dynamic meta
|
|
17
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
18
|
+
|
|
19
|
+
# @rbs name: String
|
|
20
|
+
# @rbs owner: String
|
|
21
|
+
# @rbs remote_url: String
|
|
22
|
+
# @rbs meta: Hash[String, untyped]?
|
|
23
|
+
# @rbs return: void
|
|
24
|
+
def initialize(name:, owner:, remote_url:, meta: nil)
|
|
25
|
+
@name = name
|
|
26
|
+
@owner = owner
|
|
27
|
+
@remote_url = remote_url
|
|
28
|
+
@meta = meta
|
|
29
|
+
freeze
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @rbs hash: Hash[String, untyped]
|
|
33
|
+
# @rbs return: ACP::Types::Unstable::NesRepository
|
|
34
|
+
def self.from_h(hash)
|
|
35
|
+
new(
|
|
36
|
+
name: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'name'), 'name'),
|
|
37
|
+
owner: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'owner'), 'owner'),
|
|
38
|
+
remote_url: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'remoteUrl'), 'remoteUrl'),
|
|
39
|
+
meta: hash['_meta']
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# @rbs return: Hash[String, untyped]
|
|
44
|
+
def to_h
|
|
45
|
+
{ 'name' => name, 'owner' => owner, 'remoteUrl' => remote_url, '_meta' => meta }.compact
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesSearchAndReplaceCapabilities
|
|
7
|
+
# @dynamic meta
|
|
8
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
9
|
+
|
|
10
|
+
# @rbs meta: Hash[String, untyped]?
|
|
11
|
+
# @rbs return: void
|
|
12
|
+
def initialize(meta: nil)
|
|
13
|
+
@meta = meta
|
|
14
|
+
freeze
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# @rbs hash: Hash[String, untyped]
|
|
18
|
+
# @rbs return: ACP::Types::Unstable::NesSearchAndReplaceCapabilities
|
|
19
|
+
def self.from_h(hash)
|
|
20
|
+
new(meta: hash['_meta'])
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @rbs return: Hash[String, untyped]
|
|
24
|
+
def to_h
|
|
25
|
+
{ '_meta' => meta }.compact
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesSearchAndReplaceSuggestion
|
|
7
|
+
# @dynamic id
|
|
8
|
+
attr_reader :id #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic uri
|
|
11
|
+
attr_reader :uri #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic search
|
|
14
|
+
attr_reader :search #: String
|
|
15
|
+
|
|
16
|
+
# @dynamic replace
|
|
17
|
+
attr_reader :replace #: String
|
|
18
|
+
|
|
19
|
+
# @dynamic is_regex
|
|
20
|
+
attr_reader :is_regex #: bool?
|
|
21
|
+
|
|
22
|
+
# @dynamic meta
|
|
23
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
24
|
+
|
|
25
|
+
# @rbs id: String
|
|
26
|
+
# @rbs uri: String
|
|
27
|
+
# @rbs search: String
|
|
28
|
+
# @rbs replace: String
|
|
29
|
+
# @rbs is_regex: bool?
|
|
30
|
+
# @rbs meta: Hash[String, untyped]?
|
|
31
|
+
# @rbs return: void
|
|
32
|
+
def initialize(id:, uri:, search:, replace:, is_regex: nil, meta: nil)
|
|
33
|
+
@id = id
|
|
34
|
+
@uri = uri
|
|
35
|
+
@search = search
|
|
36
|
+
@replace = replace
|
|
37
|
+
@is_regex = is_regex
|
|
38
|
+
@meta = meta
|
|
39
|
+
freeze
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @rbs hash: Hash[String, untyped]
|
|
43
|
+
# @rbs return: ACP::Types::Unstable::NesSearchAndReplaceSuggestion
|
|
44
|
+
def self.from_h(hash)
|
|
45
|
+
new(
|
|
46
|
+
id: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'id'), 'id'),
|
|
47
|
+
uri: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'uri'), 'uri'),
|
|
48
|
+
search: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'search'), 'search'),
|
|
49
|
+
replace: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'replace'), 'replace'),
|
|
50
|
+
is_regex: ACP::Types::Check.boolean(hash['isRegex'], 'isRegex', allow_nil: true),
|
|
51
|
+
meta: hash['_meta']
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @rbs return: Hash[String, untyped]
|
|
56
|
+
def to_h
|
|
57
|
+
{
|
|
58
|
+
'id' => id,
|
|
59
|
+
'uri' => uri,
|
|
60
|
+
'search' => search,
|
|
61
|
+
'replace' => replace,
|
|
62
|
+
'isRegex' => is_regex,
|
|
63
|
+
'_meta' => meta
|
|
64
|
+
}.compact
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesSuggestContext
|
|
7
|
+
# @dynamic recent_files
|
|
8
|
+
attr_reader :recent_files #: Array[ACP::Types::Unstable::NesRecentFile]?
|
|
9
|
+
|
|
10
|
+
# @dynamic related_snippets
|
|
11
|
+
attr_reader :related_snippets #: Array[ACP::Types::Unstable::NesRelatedSnippet]?
|
|
12
|
+
|
|
13
|
+
# @dynamic edit_history
|
|
14
|
+
attr_reader :edit_history #: Array[ACP::Types::Unstable::NesEditHistoryEntry]?
|
|
15
|
+
|
|
16
|
+
# @dynamic user_actions
|
|
17
|
+
attr_reader :user_actions #: Array[ACP::Types::Unstable::NesUserAction]?
|
|
18
|
+
|
|
19
|
+
# @dynamic open_files
|
|
20
|
+
attr_reader :open_files #: Array[ACP::Types::Unstable::NesOpenFile]?
|
|
21
|
+
|
|
22
|
+
# @dynamic diagnostics
|
|
23
|
+
attr_reader :diagnostics #: Array[ACP::Types::Unstable::NesDiagnostic]?
|
|
24
|
+
|
|
25
|
+
# @dynamic meta
|
|
26
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
27
|
+
|
|
28
|
+
# @rbs recent_files: Array[ACP::Types::Unstable::NesRecentFile]?
|
|
29
|
+
# @rbs related_snippets: Array[ACP::Types::Unstable::NesRelatedSnippet]?
|
|
30
|
+
# @rbs edit_history: Array[ACP::Types::Unstable::NesEditHistoryEntry]?
|
|
31
|
+
# @rbs user_actions: Array[ACP::Types::Unstable::NesUserAction]?
|
|
32
|
+
# @rbs open_files: Array[ACP::Types::Unstable::NesOpenFile]?
|
|
33
|
+
# @rbs diagnostics: Array[ACP::Types::Unstable::NesDiagnostic]?
|
|
34
|
+
# @rbs meta: Hash[String, untyped]?
|
|
35
|
+
# @rbs return: void
|
|
36
|
+
def initialize(
|
|
37
|
+
recent_files: nil,
|
|
38
|
+
related_snippets: nil,
|
|
39
|
+
edit_history: nil,
|
|
40
|
+
user_actions: nil,
|
|
41
|
+
open_files: nil,
|
|
42
|
+
diagnostics: nil,
|
|
43
|
+
meta: nil
|
|
44
|
+
)
|
|
45
|
+
@recent_files = recent_files
|
|
46
|
+
@related_snippets = related_snippets
|
|
47
|
+
@edit_history = edit_history
|
|
48
|
+
@user_actions = user_actions
|
|
49
|
+
@open_files = open_files
|
|
50
|
+
@diagnostics = diagnostics
|
|
51
|
+
@meta = meta
|
|
52
|
+
freeze
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @rbs hash: Hash[String, untyped]
|
|
56
|
+
# @rbs return: ACP::Types::Unstable::NesSuggestContext
|
|
57
|
+
def self.from_h(hash)
|
|
58
|
+
recent_files = ACP::Types::Check.array(hash['recentFiles'], 'recentFiles', allow_nil: true) do |item, path|
|
|
59
|
+
ACP::Types::Check.object(item, path, ACP::Types::Unstable::NesRecentFile)
|
|
60
|
+
end
|
|
61
|
+
related_snippets = ACP::Types::Check.array(
|
|
62
|
+
hash['relatedSnippets'],
|
|
63
|
+
'relatedSnippets',
|
|
64
|
+
allow_nil: true
|
|
65
|
+
) do |item, path|
|
|
66
|
+
ACP::Types::Check.object(item, path, ACP::Types::Unstable::NesRelatedSnippet)
|
|
67
|
+
end
|
|
68
|
+
edit_history = ACP::Types::Check.array(hash['editHistory'], 'editHistory', allow_nil: true) do |item, path|
|
|
69
|
+
ACP::Types::Check.object(item, path, ACP::Types::Unstable::NesEditHistoryEntry)
|
|
70
|
+
end
|
|
71
|
+
user_actions = ACP::Types::Check.array(hash['userActions'], 'userActions', allow_nil: true) do |item, path|
|
|
72
|
+
ACP::Types::Check.object(item, path, ACP::Types::Unstable::NesUserAction)
|
|
73
|
+
end
|
|
74
|
+
open_files = ACP::Types::Check.array(hash['openFiles'], 'openFiles', allow_nil: true) do |item, path|
|
|
75
|
+
ACP::Types::Check.object(item, path, ACP::Types::Unstable::NesOpenFile)
|
|
76
|
+
end
|
|
77
|
+
diagnostics = ACP::Types::Check.array(hash['diagnostics'], 'diagnostics', allow_nil: true) do |item, path|
|
|
78
|
+
ACP::Types::Check.object(item, path, ACP::Types::Unstable::NesDiagnostic)
|
|
79
|
+
end
|
|
80
|
+
new(recent_files:, related_snippets:, edit_history:, user_actions:, open_files:, diagnostics:, meta: hash['_meta'])
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @rbs return: Hash[String, untyped]
|
|
84
|
+
def to_h
|
|
85
|
+
{
|
|
86
|
+
'recentFiles' => recent_files&.map(&:to_h),
|
|
87
|
+
'relatedSnippets' => related_snippets&.map(&:to_h),
|
|
88
|
+
'editHistory' => edit_history&.map(&:to_h),
|
|
89
|
+
'userActions' => user_actions&.map(&:to_h),
|
|
90
|
+
'openFiles' => open_files&.map(&:to_h),
|
|
91
|
+
'diagnostics' => diagnostics&.map(&:to_h),
|
|
92
|
+
'_meta' => meta
|
|
93
|
+
}.compact
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesSuggestion::Edit
|
|
7
|
+
# @dynamic id
|
|
8
|
+
attr_reader :id #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic uri
|
|
11
|
+
attr_reader :uri #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic edits
|
|
14
|
+
attr_reader :edits #: Array[ACP::Types::Unstable::NesTextEdit]
|
|
15
|
+
|
|
16
|
+
# @dynamic cursor_position
|
|
17
|
+
attr_reader :cursor_position #: ACP::Types::Unstable::Position?
|
|
18
|
+
|
|
19
|
+
# @dynamic meta
|
|
20
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
21
|
+
|
|
22
|
+
# @rbs id: String
|
|
23
|
+
# @rbs uri: String
|
|
24
|
+
# @rbs edits: Array[ACP::Types::Unstable::NesTextEdit]
|
|
25
|
+
# @rbs cursor_position: ACP::Types::Unstable::Position?
|
|
26
|
+
# @rbs meta: Hash[String, untyped]?
|
|
27
|
+
# @rbs return: void
|
|
28
|
+
def initialize(id:, uri:, edits:, cursor_position: nil, meta: nil)
|
|
29
|
+
@id = id
|
|
30
|
+
@uri = uri
|
|
31
|
+
@edits = edits
|
|
32
|
+
@cursor_position = cursor_position
|
|
33
|
+
@meta = meta
|
|
34
|
+
freeze
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @rbs hash: Hash[String, untyped]
|
|
38
|
+
# @rbs return: ACP::Types::Unstable::NesSuggestion::Edit
|
|
39
|
+
def self.from_h(hash)
|
|
40
|
+
edits = ACP::Types::Check.array(ACP::Types::Check.key(hash, 'edits'), 'edits') do |item, path|
|
|
41
|
+
ACP::Types::Check.object(item, path, ACP::Types::Unstable::NesTextEdit)
|
|
42
|
+
end
|
|
43
|
+
new(
|
|
44
|
+
id: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'id'), 'id'),
|
|
45
|
+
uri: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'uri'), 'uri'),
|
|
46
|
+
edits:,
|
|
47
|
+
cursor_position: ACP::Types::Check.object(
|
|
48
|
+
hash['cursorPosition'],
|
|
49
|
+
'cursorPosition',
|
|
50
|
+
ACP::Types::Unstable::Position,
|
|
51
|
+
allow_nil: true
|
|
52
|
+
),
|
|
53
|
+
meta: hash['_meta']
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# @rbs return: Hash[String, untyped]
|
|
58
|
+
def to_h
|
|
59
|
+
{
|
|
60
|
+
'kind' => 'edit',
|
|
61
|
+
'id' => id,
|
|
62
|
+
'uri' => uri,
|
|
63
|
+
'edits' => edits.map(&:to_h),
|
|
64
|
+
'cursorPosition' => cursor_position&.to_h,
|
|
65
|
+
'_meta' => meta
|
|
66
|
+
}.compact
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesSuggestion::Jump
|
|
7
|
+
# @dynamic id
|
|
8
|
+
attr_reader :id #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic uri
|
|
11
|
+
attr_reader :uri #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic position
|
|
14
|
+
attr_reader :position #: ACP::Types::Unstable::Position
|
|
15
|
+
|
|
16
|
+
# @dynamic meta
|
|
17
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
18
|
+
|
|
19
|
+
# @rbs id: String
|
|
20
|
+
# @rbs uri: String
|
|
21
|
+
# @rbs position: ACP::Types::Unstable::Position
|
|
22
|
+
# @rbs meta: Hash[String, untyped]?
|
|
23
|
+
# @rbs return: void
|
|
24
|
+
def initialize(id:, uri:, position:, meta: nil)
|
|
25
|
+
@id = id
|
|
26
|
+
@uri = uri
|
|
27
|
+
@position = position
|
|
28
|
+
@meta = meta
|
|
29
|
+
freeze
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# @rbs hash: Hash[String, untyped]
|
|
33
|
+
# @rbs return: ACP::Types::Unstable::NesSuggestion::Jump
|
|
34
|
+
def self.from_h(hash)
|
|
35
|
+
new(
|
|
36
|
+
id: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'id'), 'id'),
|
|
37
|
+
uri: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'uri'), 'uri'),
|
|
38
|
+
position: ACP::Types::Check.object(
|
|
39
|
+
ACP::Types::Check.key(hash, 'position'),
|
|
40
|
+
'position',
|
|
41
|
+
ACP::Types::Unstable::Position
|
|
42
|
+
),
|
|
43
|
+
meta: hash['_meta']
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# @rbs return: Hash[String, untyped]
|
|
48
|
+
def to_h
|
|
49
|
+
{ 'kind' => 'jump', 'id' => id, 'uri' => uri, 'position' => position.to_h, '_meta' => meta }.compact
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesSuggestion::Rename
|
|
7
|
+
# @dynamic id
|
|
8
|
+
attr_reader :id #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic uri
|
|
11
|
+
attr_reader :uri #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic position
|
|
14
|
+
attr_reader :position #: ACP::Types::Unstable::Position
|
|
15
|
+
|
|
16
|
+
# @dynamic new_name
|
|
17
|
+
attr_reader :new_name #: String
|
|
18
|
+
|
|
19
|
+
# @dynamic meta
|
|
20
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
21
|
+
|
|
22
|
+
# @rbs id: String
|
|
23
|
+
# @rbs uri: String
|
|
24
|
+
# @rbs position: ACP::Types::Unstable::Position
|
|
25
|
+
# @rbs new_name: String
|
|
26
|
+
# @rbs meta: Hash[String, untyped]?
|
|
27
|
+
# @rbs return: void
|
|
28
|
+
def initialize(id:, uri:, position:, new_name:, meta: nil)
|
|
29
|
+
@id = id
|
|
30
|
+
@uri = uri
|
|
31
|
+
@position = position
|
|
32
|
+
@new_name = new_name
|
|
33
|
+
@meta = meta
|
|
34
|
+
freeze
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @rbs hash: Hash[String, untyped]
|
|
38
|
+
# @rbs return: ACP::Types::Unstable::NesSuggestion::Rename
|
|
39
|
+
def self.from_h(hash)
|
|
40
|
+
new(
|
|
41
|
+
id: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'id'), 'id'),
|
|
42
|
+
uri: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'uri'), 'uri'),
|
|
43
|
+
position: ACP::Types::Check.object(
|
|
44
|
+
ACP::Types::Check.key(hash, 'position'),
|
|
45
|
+
'position',
|
|
46
|
+
ACP::Types::Unstable::Position
|
|
47
|
+
),
|
|
48
|
+
new_name: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'newName'), 'newName'),
|
|
49
|
+
meta: hash['_meta']
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @rbs return: Hash[String, untyped]
|
|
54
|
+
def to_h
|
|
55
|
+
{
|
|
56
|
+
'kind' => 'rename',
|
|
57
|
+
'id' => id,
|
|
58
|
+
'uri' => uri,
|
|
59
|
+
'position' => position.to_h,
|
|
60
|
+
'newName' => new_name,
|
|
61
|
+
'_meta' => meta
|
|
62
|
+
}.compact
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesSuggestion::Searchandreplace
|
|
7
|
+
# @dynamic id
|
|
8
|
+
attr_reader :id #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic uri
|
|
11
|
+
attr_reader :uri #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic search
|
|
14
|
+
attr_reader :search #: String
|
|
15
|
+
|
|
16
|
+
# @dynamic replace
|
|
17
|
+
attr_reader :replace #: String
|
|
18
|
+
|
|
19
|
+
# @dynamic is_regex
|
|
20
|
+
attr_reader :is_regex #: bool?
|
|
21
|
+
|
|
22
|
+
# @dynamic meta
|
|
23
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
24
|
+
|
|
25
|
+
# @rbs id: String
|
|
26
|
+
# @rbs uri: String
|
|
27
|
+
# @rbs search: String
|
|
28
|
+
# @rbs replace: String
|
|
29
|
+
# @rbs is_regex: bool?
|
|
30
|
+
# @rbs meta: Hash[String, untyped]?
|
|
31
|
+
# @rbs return: void
|
|
32
|
+
def initialize(id:, uri:, search:, replace:, is_regex: nil, meta: nil)
|
|
33
|
+
@id = id
|
|
34
|
+
@uri = uri
|
|
35
|
+
@search = search
|
|
36
|
+
@replace = replace
|
|
37
|
+
@is_regex = is_regex
|
|
38
|
+
@meta = meta
|
|
39
|
+
freeze
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @rbs hash: Hash[String, untyped]
|
|
43
|
+
# @rbs return: ACP::Types::Unstable::NesSuggestion::Searchandreplace
|
|
44
|
+
def self.from_h(hash)
|
|
45
|
+
new(
|
|
46
|
+
id: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'id'), 'id'),
|
|
47
|
+
uri: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'uri'), 'uri'),
|
|
48
|
+
search: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'search'), 'search'),
|
|
49
|
+
replace: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'replace'), 'replace'),
|
|
50
|
+
is_regex: ACP::Types::Check.boolean(hash['isRegex'], 'isRegex', allow_nil: true),
|
|
51
|
+
meta: hash['_meta']
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# @rbs return: Hash[String, untyped]
|
|
56
|
+
def to_h
|
|
57
|
+
{
|
|
58
|
+
'kind' => 'searchAndReplace',
|
|
59
|
+
'id' => id,
|
|
60
|
+
'uri' => uri,
|
|
61
|
+
'search' => search,
|
|
62
|
+
'replace' => replace,
|
|
63
|
+
'isRegex' => is_regex,
|
|
64
|
+
'_meta' => meta
|
|
65
|
+
}.compact
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
module ACP::Types::Unstable::NesSuggestion
|
|
7
|
+
# @rbs!
|
|
8
|
+
# type t = ACP::Types::Unstable::NesSuggestion::Edit
|
|
9
|
+
# | ACP::Types::Unstable::NesSuggestion::Jump
|
|
10
|
+
# | ACP::Types::Unstable::NesSuggestion::Rename
|
|
11
|
+
# | ACP::Types::Unstable::NesSuggestion::Searchandreplace
|
|
12
|
+
# | Hash[String, untyped]
|
|
13
|
+
|
|
14
|
+
# @rbs hash: Hash[String, untyped]
|
|
15
|
+
# @rbs return: t
|
|
16
|
+
def self.from_h(hash)
|
|
17
|
+
case hash['kind']
|
|
18
|
+
when 'edit' then ACP::Types::Unstable::NesSuggestion::Edit.from_h(hash)
|
|
19
|
+
when 'jump' then ACP::Types::Unstable::NesSuggestion::Jump.from_h(hash)
|
|
20
|
+
when 'rename' then ACP::Types::Unstable::NesSuggestion::Rename.from_h(hash)
|
|
21
|
+
when 'searchAndReplace' then ACP::Types::Unstable::NesSuggestion::Searchandreplace.from_h(hash)
|
|
22
|
+
else hash
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesTextEdit
|
|
7
|
+
# @dynamic range
|
|
8
|
+
attr_reader :range #: ACP::Types::Unstable::Range
|
|
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 range: ACP::Types::Unstable::Range
|
|
17
|
+
# @rbs new_text: String
|
|
18
|
+
# @rbs meta: Hash[String, untyped]?
|
|
19
|
+
# @rbs return: void
|
|
20
|
+
def initialize(range:, new_text:, meta: nil)
|
|
21
|
+
@range = range
|
|
22
|
+
@new_text = new_text
|
|
23
|
+
@meta = meta
|
|
24
|
+
freeze
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# @rbs hash: Hash[String, untyped]
|
|
28
|
+
# @rbs return: ACP::Types::Unstable::NesTextEdit
|
|
29
|
+
def self.from_h(hash)
|
|
30
|
+
new(
|
|
31
|
+
range: ACP::Types::Check.object(ACP::Types::Check.key(hash, 'range'), 'range', ACP::Types::Unstable::Range),
|
|
32
|
+
new_text: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'newText'), 'newText'),
|
|
33
|
+
meta: hash['_meta']
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @rbs return: Hash[String, untyped]
|
|
38
|
+
def to_h
|
|
39
|
+
{ 'range' => range.to_h, 'newText' => new_text, '_meta' => meta }.compact
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
module ACP::Types::Unstable::NesTriggerKind
|
|
7
|
+
AUTOMATIC = 'automatic'
|
|
8
|
+
DIAGNOSTIC = 'diagnostic'
|
|
9
|
+
MANUAL = 'manual'
|
|
10
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Generated by bin/types from schema/schema.unstable.json. Do not edit.
|
|
4
|
+
# Unstable: not part of the ACP spec, may change or disappear at any point.
|
|
5
|
+
|
|
6
|
+
class ACP::Types::Unstable::NesUserAction
|
|
7
|
+
# @dynamic action
|
|
8
|
+
attr_reader :action #: String
|
|
9
|
+
|
|
10
|
+
# @dynamic uri
|
|
11
|
+
attr_reader :uri #: String
|
|
12
|
+
|
|
13
|
+
# @dynamic position
|
|
14
|
+
attr_reader :position #: ACP::Types::Unstable::Position
|
|
15
|
+
|
|
16
|
+
# @dynamic timestamp_ms
|
|
17
|
+
attr_reader :timestamp_ms #: Integer
|
|
18
|
+
|
|
19
|
+
# @dynamic meta
|
|
20
|
+
attr_reader :meta #: Hash[String, untyped]?
|
|
21
|
+
|
|
22
|
+
# @rbs action: String
|
|
23
|
+
# @rbs uri: String
|
|
24
|
+
# @rbs position: ACP::Types::Unstable::Position
|
|
25
|
+
# @rbs timestamp_ms: Integer
|
|
26
|
+
# @rbs meta: Hash[String, untyped]?
|
|
27
|
+
# @rbs return: void
|
|
28
|
+
def initialize(action:, uri:, position:, timestamp_ms:, meta: nil)
|
|
29
|
+
@action = action
|
|
30
|
+
@uri = uri
|
|
31
|
+
@position = position
|
|
32
|
+
@timestamp_ms = timestamp_ms
|
|
33
|
+
@meta = meta
|
|
34
|
+
freeze
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# @rbs hash: Hash[String, untyped]
|
|
38
|
+
# @rbs return: ACP::Types::Unstable::NesUserAction
|
|
39
|
+
def self.from_h(hash)
|
|
40
|
+
new(
|
|
41
|
+
action: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'action'), 'action'),
|
|
42
|
+
uri: ACP::Types::Check.string(ACP::Types::Check.key(hash, 'uri'), 'uri'),
|
|
43
|
+
position: ACP::Types::Check.object(
|
|
44
|
+
ACP::Types::Check.key(hash, 'position'),
|
|
45
|
+
'position',
|
|
46
|
+
ACP::Types::Unstable::Position
|
|
47
|
+
),
|
|
48
|
+
timestamp_ms: ACP::Types::Check.integer(ACP::Types::Check.key(hash, 'timestampMs'), 'timestampMs', min: 0),
|
|
49
|
+
meta: hash['_meta']
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @rbs return: Hash[String, untyped]
|
|
54
|
+
def to_h
|
|
55
|
+
{
|
|
56
|
+
'action' => action,
|
|
57
|
+
'uri' => uri,
|
|
58
|
+
'position' => position.to_h,
|
|
59
|
+
'timestampMs' => timestamp_ms,
|
|
60
|
+
'_meta' => meta
|
|
61
|
+
}.compact
|
|
62
|
+
end
|
|
63
|
+
end
|