From 7f4893628d7f199661097760b648203b81ee3011 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Fri, 13 Dec 2024 16:39:24 +0100 Subject: [PATCH 1/4] Sustainable Kibana Architecture: Move modules owned by `@elastic/security-generative-ai` (#202848) ## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. #### 1 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/elastic-assistant-plugin` | `x-pack/solutions/security/plugins/elastic_assistant` | #### 3 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/elastic-assistant` | `x-pack/platform/packages/shared/kbn-elastic-assistant` | | `@kbn/elastic-assistant-common` | `x-pack/platform/packages/shared/kbn-elastic-assistant-common` | | `@kbn/langchain` | `x-pack/platform/packages/shared/kbn-langchain` |
Updated references ``` ./.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh ./.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh ./.eslintrc.js ./.github/codeql/codeql-config.yml ./docs/developer/plugin-list.asciidoc ./oas_docs/scripts/merge_ess_oas.js ./oas_docs/scripts/merge_serverless_oas.js ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./tsconfig.base.json ./tsconfig.base.type_check.json ./tsconfig.refs.json ./x-pack/.i18nrc.json ./x-pack/packages/kbn-elastic-assistant-common/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js ./x-pack/platform/packages/shared/kbn-elastic-assistant/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js ./x-pack/platform/packages/shared/kbn-langchain/jest.config.js ./x-pack/plugins/elastic_assistant/README.md ./x-pack/plugins/security_solution/docs/openapi/README.md ./x-pack/solutions/security/plugins/elastic_assistant/README.md ./x-pack/solutions/security/plugins/elastic_assistant/jest.config.js ./x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations_script.ts ./x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts ./x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md ./x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts ./yarn.lock ```
Updated relative paths ``` x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js:21 x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/bundle.js:8 x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/generate.js:8 x-pack/platform/packages/shared/kbn-elastic-assistant-common/tsconfig.json:2 x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js:21 x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json:15 x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json:2 x-pack/platform/packages/shared/kbn-langchain/jest.config.js:20 x-pack/platform/packages/shared/kbn-langchain/tsconfig.json:2 x-pack/solutions/security/plugins/elastic_assistant/jest.config.js:14 x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations.js:8 x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph.js:8 x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator.js:8 x-pack/solutions/security/plugins/elastic_assistant/tsconfig.json:13 x-pack/solutions/security/plugins/elastic_assistant/tsconfig.json:2 ```
--------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 6de695a55ce01a3a1a71fbb8ca3fcbbbb3ca9871) # Conflicts: # .github/CODEOWNERS # oas_docs/scripts/merge_serverless_oas.js # x-pack/.i18nrc.json # x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json --- .../pipelines/pull_request/pipeline.ts | 12 ++-- .../elastic_assistant_codegen.sh | 2 +- .../security_solution_openapi_bundling.sh | 2 +- .eslintrc.js | 38 ++++++------ .github/CODEOWNERS | 14 +++-- .github/codeql/codeql-config.yml | 2 +- docs/developer/plugin-list.asciidoc | 2 +- oas_docs/scripts/merge_ess_oas.js | 2 +- package.json | 8 +-- .../styled_components_files.js | 1 + tsconfig.base.json | 16 +++--- x-pack/.i18nrc.json | 4 +- .../jest.config.js | 23 -------- .../kbn-elastic-assistant/jest.config.js | 23 -------- x-pack/packages/kbn-langchain/jest.config.js | 22 ------- .../kbn-elastic-assistant-common/.gitignore | 0 .../kbn-elastic-assistant-common/README.md | 8 +-- .../kbn-elastic-assistant-common/constants.ts | 0 ...sistant_api_2023_10_31.bundled.schema.yaml | 0 ...sistant_api_2023_10_31.bundled.schema.yaml | 0 .../env/README.md | 8 +-- .../env/http-client.env.json | 0 .../index.test.ts | 0 .../index.ts | 0 .../get_raw_data_or_default/index.test.ts | 0 .../helpers/get_raw_data_or_default/index.ts | 0 .../helpers/is_raw_data_valid/index.test.ts | 0 .../alerts/helpers/is_raw_data_valid/index.ts | 0 .../size_is_out_of_range/index.test.ts | 0 .../helpers/size_is_out_of_range/index.ts | 0 .../impl/alerts/helpers/types.ts | 0 .../impl/capabilities/README.md | 2 +- .../impl/capabilities/index.ts | 0 .../get_anonymized_data/index.test.ts | 0 .../get_anonymized_data/index.ts | 0 .../get_anonymized_value/index.test.ts | 0 .../get_anonymized_value/index.ts | 0 .../get_anonymized_values/index.test.tsx | 0 .../get_anonymized_values/index.ts | 0 .../get_csv_from_data/index.test.ts | 0 .../get_csv_from_data/index.ts | 0 .../data_anonymization/helpers/index.test.ts | 0 .../impl/data_anonymization/helpers/index.ts | 0 .../transform_raw_data/index.test.tsx | 0 .../transform_raw_data/index.tsx | 0 .../impl/data_anonymization/types.ts | 0 .../impl/mock/get_anonymized_value/index.ts | 0 ...ost_actions_connector_execute_route.gen.ts | 0 ...ctions_connector_execute_route.schema.yaml | 0 ...ulk_crud_anonymization_fields_route.gen.ts | 0 ...rud_anonymization_fields_route.schema.yaml | 0 .../find_anonymization_fields_route.gen.ts | 0 ...ind_anonymization_fields_route.schema.yaml | 0 .../cancel_attack_discovery_route.gen.ts | 0 .../cancel_attack_discovery_route.schema.yaml | 0 .../attack_discovery/common_attributes.gen.ts | 0 .../common_attributes.schema.yaml | 0 .../get_attack_discovery_route.gen.ts | 0 .../get_attack_discovery_route.schema.yaml | 0 .../post_attack_discovery_route.gen.ts | 0 .../post_attack_discovery_route.schema.yaml | 0 .../get_capabilities_route.gen.ts | 0 .../get_capabilities_route.schema.yaml | 0 .../chat/post_chat_complete_route.gen.ts | 0 .../chat/post_chat_complete_route.schema.yaml | 0 .../impl/schemas/common.ts | 0 .../impl/schemas/common_attributes.gen.ts | 0 .../schemas/common_attributes.schema.yaml | 0 .../conversations/append_message.gen.ts | 0 .../conversations/append_message.schema.yaml | 0 .../bulk_crud_conversations_route.gen.ts | 0 .../bulk_crud_conversations_route.schema.yaml | 0 .../conversations/common_attributes.gen.ts | 0 .../common_attributes.schema.yaml | 0 .../crud_conversation_route.gen.ts | 0 .../crud_conversation_route.schema.yaml | 0 .../find_conversations_route.gen.ts | 0 .../find_conversations_route.schema.yaml | 0 .../defend_insights/common_attributes.gen.ts | 0 .../common_attributes.schema.yaml | 0 .../get_defend_insight_route.gen.ts | 0 .../get_defend_insight_route.schema.yaml | 0 .../get_defend_insights_route.gen.ts | 0 .../get_defend_insights_route.schema.yaml | 0 .../impl/schemas/defend_insights/index.ts | 0 .../post_defend_insights_route.gen.ts | 0 .../post_defend_insights_route.schema.yaml | 0 .../evaluation/get_evaluate_route.gen.ts | 0 .../evaluation/get_evaluate_route.schema.yaml | 0 .../evaluation/post_evaluate_route.gen.ts | 0 .../post_evaluate_route.schema.yaml | 0 .../impl/schemas/index.ts | 0 .../knowledge_base/crud_kb_route.gen.ts | 0 .../knowledge_base/crud_kb_route.schema.yaml | 0 ...k_crud_knowledge_base_entries_route.gen.ts | 0 ...ulk_crud_knowledge_base_entries_route.http | 0 ...d_knowledge_base_entries_route.schema.yaml | 0 .../entries/common_attributes.gen.ts | 0 .../entries/common_attributes.schema.yaml | 0 .../crud_knowledge_base_entries_route.gen.ts | 0 .../crud_knowledge_base_entries_route.http | 0 ...d_knowledge_base_entries_route.schema.yaml | 0 .../find_knowledge_base_entries_route.gen.ts | 0 .../find_knowledge_base_entries_route.http | 0 ...d_knowledge_base_entries_route.schema.yaml | 0 .../get_knowledge_base_indices_route.gen.ts | 0 ...t_knowledge_base_indices_route.schema.yaml | 0 .../prompts/bulk_crud_prompts_route.gen.ts | 0 .../bulk_crud_prompts_route.schema.yaml | 0 .../schemas/prompts/find_prompts_route.gen.ts | 0 .../prompts/find_prompts_route.schema.yaml | 0 .../impl/utils/bedrock.ts | 0 .../impl/utils/spaces_roles_users_data.http | 0 .../kbn-elastic-assistant-common/index.ts | 0 .../jest.config.js | 23 ++++++++ .../kbn-elastic-assistant-common/kibana.jsonc | 0 .../kbn-elastic-assistant-common/package.json | 0 .../scripts/openapi/bundle.js | 2 +- .../scripts/openapi/generate.js | 2 +- .../setup_tests.ts | 0 .../tsconfig.json | 2 +- .../shared}/kbn-elastic-assistant/README.md | 2 +- .../bulk_update_anonymization_fields.test.ts | 0 .../bulk_update_anonymization_fields.ts | 0 .../use_fetch_anonymization_fields.test.tsx | 0 .../use_fetch_anonymization_fields.ts | 0 .../__mocks__/use_capabilities.tsx | 0 .../api/capabilities/capabilities.test.tsx | 0 .../api/capabilities/capabilities.tsx | 0 .../capabilities/use_capabilities.test.tsx | 0 .../api/capabilities/use_capabilities.tsx | 0 .../bulk_update_actions_conversations.test.ts | 0 .../bulk_update_actions_conversations.ts | 0 .../api/conversations/conversations.test.tsx | 0 .../api/conversations/conversations.ts | 0 .../assistant/api/conversations/index.tsx | 0 ..._fetch_current_user_conversations.test.tsx | 0 .../use_fetch_current_user_conversations.ts | 0 .../assistant/api/evaluate/evaluate.test.tsx | 0 .../impl/assistant/api/evaluate/evaluate.tsx | 0 .../api/evaluate/use_evaluation_data.tsx | 0 .../evaluate/use_perform_evaluation.test.tsx | 0 .../api/evaluate/use_perform_evaluation.tsx | 0 .../impl/assistant/api/index.test.tsx | 0 .../impl/assistant/api/index.tsx | 0 .../assistant/api/knowledge_base/api.test.tsx | 0 .../impl/assistant/api/knowledge_base/api.tsx | 0 .../use_create_knowledge_base_entry.test.tsx | 0 .../use_create_knowledge_base_entry.tsx | 0 ...use_delete_knowledge_base_entries.test.tsx | 0 .../use_delete_knowledge_base_entries.tsx | 0 .../use_knowledge_base_entries.test.ts | 0 .../entries/use_knowledge_base_entries.ts | 0 ...use_update_knowledge_base_entries.test.tsx | 0 .../use_update_knowledge_base_entries.tsx | 0 .../use_knowledge_base_indices.test.tsx | 0 .../use_knowledge_base_indices.tsx | 0 .../use_knowledge_base_status.test.tsx | 0 .../use_knowledge_base_status.tsx | 0 .../use_setup_knowledge_base.test.tsx | 0 .../use_setup_knowledge_base.tsx | 0 .../api/prompts/bulk_update_prompts.test.ts | 0 .../api/prompts/bulk_update_prompts.ts | 0 .../impl/assistant/api/prompts/index.tsx | 0 .../api/prompts/use_fetch_prompts.test.tsx | 0 .../api/prompts/use_fetch_prompts.ts | 0 .../assistant/assistant_animated_icon.tsx | 0 .../assistant_avatar/assistant_avatar.tsx | 0 .../assistant/assistant_body/empty_convo.tsx | 0 .../impl/assistant/assistant_body/index.tsx | 0 .../assistant_body/welcome_setup.tsx | 0 .../assistant/assistant_header/index.test.tsx | 0 .../impl/assistant/assistant_header/index.tsx | 0 .../assistant_header/translations.ts | 0 .../assistant_overlay/flyout_navigation.tsx | 0 .../assistant_overlay/index.test.tsx | 0 .../assistant/assistant_overlay/index.tsx | 2 +- .../assistant_overlay/translations.ts | 0 .../assistant/assistant_title/index.test.tsx | 0 .../impl/assistant/assistant_title/index.tsx | 0 .../assistant/chat_actions/index.test.tsx | 0 .../impl/assistant/chat_actions/index.tsx | 0 .../impl/assistant/chat_send/index.test.tsx | 0 .../impl/assistant/chat_send/index.tsx | 0 .../chat_send/use_autosize_textarea.tsx | 0 .../chat_send/use_chat_send.test.tsx | 0 .../assistant/chat_send/use_chat_send.tsx | 0 .../badges/index.tsx | 0 .../flyout/index.tsx | 0 .../flyout/translations.ts | 0 .../flyout/use_flyout_modal_visibility.ts | 0 .../inline_actions/index.tsx | 0 .../inline_actions/translations.ts | 0 .../pagination/use_session_pagination.ts | 0 .../impl/assistant/constants.ts | 0 .../assistant/context_pills/index.test.tsx | 0 .../impl/assistant/context_pills/index.tsx | 0 .../index.test.tsx | 0 .../conversation_selector_settings/index.tsx | 0 .../translations.ts | 0 .../conversation_selector_settings/types.ts | 0 .../conversation_settings.test.tsx | 0 .../conversation_settings.tsx | 0 .../conversation_settings_editor.tsx | 0 .../conversation_streaming_switch.tsx | 0 .../conversation_settings/translations.ts | 0 .../use_conveersation_changed.test.tsx | 0 .../use_conversation_changed.tsx | 0 .../use_conversation_deleted.tsx | 0 .../use_conversation_deletex.test.tsx | 0 .../index.tsx | 0 .../translations.ts | 0 .../use_conversations_table.test.tsx | 0 .../use_conversations_table.tsx | 0 .../conversation_sidepanel/index.tsx | 0 .../conversation_sidepanel/translations.ts | 0 .../get_anonymized_value/index.test.ts | 0 .../assistant/get_anonymized_value/index.ts | 0 .../impl/assistant/helpers.test.ts | 0 .../impl/assistant/helpers.ts | 0 .../impl/assistant/index.test.tsx | 0 .../impl/assistant/index.tsx | 0 .../impl/assistant/prompt/helpers.test.ts | 0 .../impl/assistant/prompt/helpers.ts | 0 .../impl/assistant/prompt/translations.ts | 0 .../impl/assistant/prompt_context/types.ts | 0 .../selected_prompt_contexts/index.test.tsx | 0 .../selected_prompt_contexts/index.tsx | 0 .../selected_prompt_contexts/translations.ts | 0 .../system_prompt/helpers.test.tsx | 0 .../prompt_editor/system_prompt/helpers.tsx | 0 .../system_prompt/index.test.tsx | 0 .../prompt_editor/system_prompt/index.tsx | 0 .../select_system_prompt/index.test.tsx | 0 .../select_system_prompt/index.tsx | 0 .../conversation_multi_selector.test.tsx | 0 .../conversation_multi_selector.tsx | 0 .../system_prompt_editor.tsx | 0 .../system_prompt_selector.test.tsx | 0 .../system_prompt_selector.tsx | 0 .../system_prompt_selector/translations.ts | 0 .../system_prompt_settings.test.tsx | 0 .../system_prompt_settings.tsx | 0 .../system_prompt_modal/translations.ts | 0 .../system_prompt_modal/types.ts | 0 .../use_system_prompt_editor.test.tsx | 0 .../use_system_prompt_editor.tsx | 0 .../default_conversations_column.tsx | 0 .../index.tsx | 0 .../translations.ts | 0 .../use_system_prompt_table.test.tsx | 0 .../use_system_prompt_table.tsx | 0 .../utils.test.tsx | 0 .../utils.tsx | 0 .../system_prompt/translations.ts | 0 .../impl/assistant/prompt_textarea/index.tsx | 0 .../assistant/prompt_textarea/translations.ts | 0 .../prompt_context_selector.test.tsx | 0 .../prompt_context_selector.tsx | 0 .../prompt_context_selector/translations.ts | 0 .../quick_prompt_selector.test.tsx | 0 .../quick_prompt_selector.tsx | 0 .../quick_prompt_selector/translations.ts | 0 .../quick_prompt_settings/helpers.tsx | 0 .../quick_prompt_editor.tsx | 0 .../quick_prompt_settings.test.tsx | 0 .../quick_prompt_settings.tsx | 0 .../quick_prompt_settings/translations.ts | 0 .../use_quick_prompt_editor.test.tsx | 0 .../use_quick_prompt_editor.tsx | 0 .../index.tsx | 0 .../translations.ts | 0 .../use_quick_prompt_table.test.tsx | 0 .../use_quick_prompt_table.tsx | 0 .../quick_prompts/quick_prompts.test.tsx | 0 .../assistant/quick_prompts/quick_prompts.tsx | 0 .../assistant/quick_prompts/translations.ts | 0 .../alerts_settings/alerts_settings.test.tsx | 0 .../alerts_settings/alerts_settings.tsx | 0 .../alerts_settings_management.tsx | 0 .../alerts_settings/alerts_settings_modal.tsx | 0 .../settings/assistant_settings.test.tsx | 0 .../assistant/settings/assistant_settings.tsx | 1 - .../assistant_settings_bottom_bar.tsx | 0 .../assistant_settings_management.test.tsx | 0 .../assistant_settings_management.tsx | 0 .../assistant_settings_modal.test.tsx | 0 .../settings/assistant_settings_modal.tsx | 0 .../impl/assistant/settings/const.ts | 0 .../evaluation_settings.tsx | 0 .../evaluation_settings/translations.ts | 0 .../impl/assistant/settings/index.tsx | 0 .../settings_context_menu.tsx | 0 .../impl/assistant/settings/translations.ts | 0 .../impl/assistant/settings/types.ts | 0 .../use_settings_updater.test.tsx | 0 .../use_settings_updater.tsx | 0 .../assistant/streaming_text/index.test.tsx | 0 .../impl/assistant/streaming_text/index.tsx | 0 .../impl/assistant/translations.ts | 0 .../impl/assistant/types.ts | 0 .../upgrade_license_cta/index.test.tsx | 0 .../assistant/upgrade_license_cta/index.tsx | 0 .../upgrade_license_cta/translations.ts | 0 .../use_assistant_overlay/index.test.tsx | 0 .../assistant/use_assistant_overlay/index.tsx | 0 .../use_conversation/helpers.test.ts | 0 .../assistant/use_conversation/helpers.ts | 0 .../assistant/use_conversation/index.test.tsx | 0 .../impl/assistant/use_conversation/index.tsx | 0 .../use_conversation/sample_conversations.tsx | 0 .../use_conversation/translations.ts | 0 .../use_current_conversation/index.test.tsx | 0 .../use_current_conversation/index.tsx | 0 .../impl/assistant/use_data_stream_apis.tsx | 0 .../use_send_message/helpers.test.ts | 0 .../assistant/use_send_message/helpers.ts | 0 .../impl/assistant/use_send_message/index.tsx | 0 .../use_send_message/translations.ts | 0 .../impl/assistant_context/constants.tsx | 0 .../impl/assistant_context/helpers.ts | 0 .../impl/assistant_context/index.test.tsx | 0 .../impl/assistant_context/index.tsx | 0 .../impl/assistant_context/types.tsx | 0 .../add_connector_modal/index.tsx | 0 .../connectorland/connector_button/index.tsx | 0 .../connector_missing_callout/index.test.tsx | 0 .../connector_missing_callout/index.tsx | 0 ...attack_discovery_status_indicator.test.tsx | 0 .../attack_discovery_status_indicator.tsx | 0 .../connector_selector/index.test.tsx | 0 .../connector_selector/index.tsx | 0 .../connector_selector/translations.ts | 0 .../action_type_selector_modal.test.tsx | 0 .../action_type_selector_modal.tsx | 0 .../connector_selector_inline.test.tsx | 0 .../connector_selector_inline.tsx | 0 .../connector_settings_management/index.tsx | 0 .../translations.ts | 0 .../connector_setup/index.test.tsx | 0 .../connectorland/connector_setup/index.tsx | 0 .../impl/connectorland/helpers.tsx | 0 .../model_selector/model_selector.test.tsx | 0 .../models/model_selector/model_selector.tsx | 0 .../models/model_selector/translations.ts | 0 .../impl/connectorland/translations.ts | 0 .../use_load_action_types/index.test.tsx | 0 .../use_load_action_types/index.tsx | 0 .../use_load_connectors/index.test.tsx | 0 .../use_load_connectors/index.tsx | 0 .../index.test.ts | 0 .../get_new_selected_prompt_context/index.ts | 0 .../anonymization_settings/index.test.tsx | 0 .../settings/anonymization_settings/index.tsx | 0 .../anonymization_settings/translations.ts | 0 .../use_anonymization_list_update.tsx | 0 .../index.tsx | 0 .../bulk_actions/index.test.tsx | 0 .../context_editor/bulk_actions/index.tsx | 0 .../context_editor/get_columns/index.test.tsx | 0 .../context_editor/get_columns/index.tsx | 2 +- .../get_context_menu_panels/index.test.ts | 0 .../get_context_menu_panels/index.ts | 0 .../context_editor/get_rows/index.test.ts | 0 .../context_editor/get_rows/index.ts | 0 .../context_editor/index.test.tsx | 0 .../context_editor/index.tsx | 0 .../context_editor/toolbar/index.test.tsx | 0 .../context_editor/toolbar/index.tsx | 0 .../context_editor/translations.ts | 0 .../context_editor/types.ts | 0 .../context_editor_flyout/index.tsx | 0 .../context_editor_modal/index.tsx | 0 .../context_preview.tsx | 0 .../get_stats/index.test.ts | 0 .../get_stats/index.ts | 0 .../helpers/index.test.ts | 0 .../helpers/index.ts | 0 .../data_anonymization_editor/index.test.tsx | 0 .../impl/data_anonymization_editor/index.tsx | 0 .../read_only_context_viewer/index.tsx | 0 .../replacements_context_viewer/index.tsx | 0 .../stats/allowed_stat/index.test.tsx | 0 .../stats/allowed_stat/index.tsx | 0 .../stats/allowed_stat/translations.ts | 0 .../stats/anonymized_stat/helpers.test.ts | 0 .../stats/anonymized_stat/helpers.ts | 0 .../stats/anonymized_stat/index.test.tsx | 0 .../stats/anonymized_stat/index.tsx | 0 .../stats/anonymized_stat/translations.ts | 0 .../stats/available_stat/index.test.tsx | 0 .../stats/available_stat/index.tsx | 0 .../stats/available_stat/translations.ts | 0 .../stats/constants.ts | 0 .../stats/index.test.tsx | 0 .../data_anonymization_editor/stats/index.tsx | 0 .../impl/knowledge_base/alerts_range.test.tsx | 0 .../impl/knowledge_base/alerts_range.tsx | 0 .../knowledge_base_settings.test.tsx | 0 .../knowledge_base_settings.tsx | 0 .../add_entry_button.tsx | 0 .../document_entry_editor.tsx | 0 .../helpers.ts | 0 .../index.test.tsx | 0 .../index.tsx | 0 .../index_entry_editor.test.tsx | 0 .../index_entry_editor.tsx | 0 .../translations.ts | 0 .../use_knowledge_base_table.tsx | 0 .../setup_knowledge_base_button.tsx | 0 .../impl/knowledge_base/translations.ts | 0 .../impl/mock/connectors.ts | 0 .../impl/mock/conversation.ts | 0 .../impl/mock/get_anonymized_value/index.ts | 0 .../impl/mock/prompt_context/index.ts | 0 .../impl/mock/quick_prompt.ts | 0 .../impl/mock/system_prompt/index.ts | 0 .../mock/test_providers/test_providers.tsx | 0 .../impl/new_chat/index.test.tsx | 0 .../impl/new_chat/index.tsx | 0 .../impl/new_chat/translations.ts | 0 .../impl/new_chat_by_title/index.test.tsx | 0 .../impl/new_chat_by_title/index.tsx | 0 .../impl/new_chat_by_title/translations.ts | 0 .../kbn-elastic-assistant/impl/tour/const.ts | 0 .../impl/tour/knowledge_base/index.test.tsx | 0 .../impl/tour/knowledge_base/index.tsx | 0 .../impl/tour/knowledge_base/overview.gif | Bin .../impl/tour/knowledge_base/step_config.tsx | 0 .../impl/tour/knowledge_base/translations.ts | 0 .../tour/knowledge_base/video_toast.test.tsx | 0 .../impl/tour/knowledge_base/video_toast.tsx | 0 .../impl/upgrade/translations.ts | 0 .../impl/upgrade/upgrade_buttons.tsx | 0 .../shared}/kbn-elastic-assistant/index.ts | 0 .../kbn-elastic-assistant/jest.config.js | 23 ++++++++ .../kbn-elastic-assistant/kibana.jsonc | 0 .../kbn-elastic-assistant/package.json | 0 .../kbn-elastic-assistant/setup_tests.ts | 0 .../kbn-elastic-assistant/tsconfig.json | 2 +- .../packages/shared}/kbn-langchain/README.md | 0 .../shared/kbn-langchain/jest.config.js | 22 +++++++ .../shared}/kbn-langchain/kibana.jsonc | 0 .../shared}/kbn-langchain/package.json | 0 .../shared}/kbn-langchain/server/index.ts | 0 .../server/language_models/bedrock_chat.ts | 0 .../bedrock_runtime_client.ts | 0 .../chat_bedrock_converse.ts | 0 .../chat_bedrock_converse/index.ts | 0 .../language_models/chat_openai.test.ts | 0 .../server/language_models/chat_openai.ts | 0 .../chat_vertex/chat_vertex.test.ts | 0 .../chat_vertex/chat_vertex.ts | 0 .../language_models/chat_vertex/connection.ts | 0 .../language_models/chat_vertex/index.ts | 0 .../server/language_models/constants.ts | 0 .../server/language_models/gemini_chat.ts | 0 .../server/language_models/helpers.test.ts | 0 .../server/language_models/helpers.ts | 0 .../server/language_models/index.ts | 0 .../server/language_models/llm.test.ts | 0 .../server/language_models/llm.ts | 0 .../server/language_models/mocks/index.ts | 0 .../language_models/simple_chat_model.test.ts | 0 .../language_models/simple_chat_model.ts | 0 .../server/language_models/types.ts | 0 .../kbn-langchain/server/tracers/README.mdx | 0 .../server/tracers/apm/apm_tracer.ts | 0 .../kbn-langchain/server/tracers/apm/index.ts | 0 .../server/tracers/langsmith/index.ts | 0 .../tracers/langsmith/langsmith_tracer.ts | 0 .../server/tracers/telemetry/index.ts | 0 .../telemetry/telemetry_tracer.test.ts | 0 .../tracers/telemetry/telemetry_tracer.ts | 0 .../server/utils/bedrock.test.ts | 0 .../kbn-langchain/server/utils/bedrock.ts | 0 .../kbn-langchain/server/utils/gemini.test.ts | 0 .../kbn-langchain/server/utils/gemini.ts | 0 .../kbn-langchain/server/utils/types.ts | 0 .../shared}/kbn-langchain/tsconfig.json | 2 +- .../security_solution/docs/openapi/README.md | 4 +- .../plugins/elastic_assistant/README.md | 4 +- .../common/anonymization/index.ts | 0 .../elastic_assistant/common/constants.ts | 0 .../docs/img/default_assistant_graph.png | Bin .../img/default_attack_discovery_graph.png | Bin .../plugins/elastic_assistant/jest.config.js | 9 +-- .../plugins/elastic_assistant/kibana.jsonc | 0 .../plugins/elastic_assistant/package.json | 0 .../scripts/create_conversations.js | 2 +- .../scripts/create_conversations_script.ts | 2 +- .../elastic_assistant/scripts/draw_graph.js | 2 +- .../scripts/draw_graph_script.ts | 0 .../scripts/model_evaluator.js | 2 +- .../scripts/model_evaluator_script.ts | 0 .../server/__mocks__/action_result_data.ts | 0 .../server/__mocks__/alerts.ts | 0 .../anonymization_fields_schema.mock.ts | 0 .../__mocks__/attack_discovery_schema.mock.ts | 0 .../__mocks__/conversations_schema.mock.ts | 0 .../server/__mocks__/data_clients.mock.ts | 0 .../__mocks__/defend_insights_schema.mock.ts | 0 .../__mocks__/docs_from_directory_loader.ts | 6 +- .../knowledge_base_entry_schema.mock.ts | 0 .../server/__mocks__/lang_chain_messages.ts | 0 .../server/__mocks__/prompts_schema.mock.ts | 0 .../__mocks__/raw_attack_discoveries.ts | 0 .../server/__mocks__/request.ts | 0 .../server/__mocks__/request_context.ts | 0 .../server/__mocks__/response.ts | 0 .../server/__mocks__/server.ts | 0 .../server/__mocks__/test_adapters.ts | 0 .../server/__mocks__/user.ts | 0 .../field_maps_configuration.ts | 0 .../anonymization_fields/helpers.ts | 0 .../anonymization_fields/types.ts | 0 .../append_conversation_messages.ts | 0 .../conversations/create_conversation.test.ts | 0 .../conversations/create_conversation.ts | 0 .../conversations/delete_conversation.test.ts | 0 .../conversations/delete_conversation.ts | 0 .../conversations/field_maps_configuration.ts | 0 .../conversations/get_conversation.test.ts | 0 .../conversations/get_conversation.ts | 0 .../conversations/helpers.ts | 0 .../conversations/index.test.ts | 0 .../conversations/index.ts | 0 .../conversations/transforms.ts | 0 .../conversations/types.ts | 0 .../conversations/update_conversation.test.ts | 0 .../conversations/update_conversation.ts | 0 .../field_maps_configuration.ts | 0 .../get_defend_insight.test.ts | 0 .../defend_insights/get_defend_insight.ts | 0 .../defend_insights/helpers.test.ts | 0 .../defend_insights/helpers.ts | 0 .../defend_insights/index.test.ts | 0 .../defend_insights/index.ts | 0 .../defend_insights/types.ts | 0 .../ai_assistant_data_clients/find.test.ts | 0 .../server/ai_assistant_data_clients/find.ts | 0 .../ai_assistant_data_clients/index.test.ts | 0 .../server/ai_assistant_data_clients/index.ts | 0 .../knowledge_base/audit_events.test.ts | 0 .../knowledge_base/audit_events.ts | 0 .../create_knowledge_base_entry.test.ts | 0 .../create_knowledge_base_entry.ts | 0 .../field_maps_configuration.ts | 0 .../get_knowledge_base_entry.test.ts | 0 .../get_knowledge_base_entry.ts | 0 .../knowledge_base/helpers.test.tsx | 0 .../knowledge_base/helpers.ts | 0 .../knowledge_base/index.test.ts | 0 .../knowledge_base/index.ts | 0 .../knowledge_base/ingest_pipeline.ts | 0 .../knowledge_base/transforms.test.ts | 0 .../knowledge_base/transforms.ts | 0 .../knowledge_base/types.ts | 0 .../prompts/field_maps_configuration.ts | 0 .../prompts/helpers.ts | 0 .../prompts/types.ts | 0 ...reate_resource_installation_helper.test.ts | 0 .../create_resource_installation_helper.ts | 0 .../ai_assistant_service/helpers.test.ts | 0 .../server/ai_assistant_service/helpers.ts | 0 .../server/ai_assistant_service/index.test.ts | 0 .../server/ai_assistant_service/index.ts | 0 .../plugins/elastic_assistant/server/index.ts | 0 .../server/knowledge_base/README.md | 0 .../esql_example_query_0001.asciidoc | 0 .../esql_example_query_0002.asciidoc | 0 .../esql_example_query_0003.asciidoc | 0 .../esql_example_query_0004.asciidoc | 0 .../esql_example_query_0005.asciidoc | 0 .../esql_example_query_0006.asciidoc | 0 .../esql_example_query_0007.asciidoc | 0 .../esql_example_query_0008.asciidoc | 0 .../esql_example_query_0009.asciidoc | 0 .../esql_example_query_0010.asciidoc | 0 .../esql_example_query_0011.asciidoc | 0 .../esql_example_query_0012.asciidoc | 0 .../esql_example_query_0013.asciidoc | 0 .../esql_example_query_0014.asciidoc | 0 ...astic_global_threat_report_announcement.md | 0 ...eaders_navigate_todays_threat_landscape.md | 0 .../security_labs/500ms_to_midnight.md | 0 .../a_peek_behind_the_bpfdoor.md | 0 ..._elastic_detection_tradecraft_with_llms.md | 0 ..._used_in_malaysian_focused_apt_campaign.md | 0 ...to_large_scale_dynamic_malware_analysis.md | 0 .../analysis_of_log4shell_cve_2021_45046.md | 0 ...ack_chain_leads_to_xworm_and_agenttesla.md | 0 ...y_protections_rapid_response_to_malware.md | 0 .../behind_the_scenes_global_threat_report.md | 0 .../security_labs/betting_on_bots.md | 0 .../security_labs/beyond_the_wail.md | 0 .../bits_and_bytes_analyzing_bitsloth.md | 0 .../blister_configuration_extractor.md | 0 .../security_labs/blister_loader.md | 0 .../bpfdoor_configuration_extractor.md | 0 .../security_labs/bpfdoor_scanner.md | 0 .../bughatch_malware_analysis.md | 0 .../security_labs/callout_example.md | 0 ...ating_protections_testing_with_detonate.md | 0 ...ing_and_detection_with_elastic_security.md | 0 .../cobalt_strike_beacon_extractor.md | 0 ...lizing_threat_data_from_the_mozi_botnet.md | 0 ...t_strike_beacons_with_the_elastic_stack.md | 0 .../cuba_ransomware_campaign_analysis.md | 0 .../cuba_ransomware_malware_analysis.md | 0 .../security_labs/cups_overflow.md | 0 .../security_labs/dac_beta_release.md | 0 ...dancing_the_night_away_with_named_pipes.md | 0 .../deep_dive_into_the_ttd_ecosystem.md | 0 .../security_labs/detect_credential_access.md | 0 ...hm_activity_with_new_kibana_integration.md | 0 ...d_responding_to_dirty_pipe_with_elastic.md | 0 ...nd_attacks_with_new_elastic_integration.md | 0 .../detecting_log4j2_with_elastic_security.md | 0 ...ly_exploited_proxyshell_vulnerabilities.md | 0 ...etection_rules_for_sigred_vulnerability.md | 0 .../security_labs/dipping_into_danger.md | 0 .../disclosing_the_bloodalchemy_backdoor.md | 0 .../dismantling_smart_app_control.md | 0 .../dissecting_remcos_rat_part_four.md | 0 .../dissecting_remcos_rat_part_one.md | 0 .../dissecting_remcos_rat_part_three.md | 0 .../dissecting_remcos_rat_part_two.md | 0 .../doing_time_with_the_yipphb_dropper.md | 0 .../doubling_down_etw_callstacks.md | 0 .../security_labs/dprk_code_of_conduct.md | 0 ...rikes_using_a_new_variant_of_rustbucket.md | 0 ...etecting_lrpc_based_parent_pid_spoofing.md | 0 .../elastic_advances_llm_security.md | 0 ...stic_catches_dprk_passing_out_kandykorn.md | 0 .../elastic_charms_spectralviper.md | 0 ...malware_targeting_ukraine_hermeticwiper.md | 0 ...023_global_threat_report_spring_edition.md | 0 .../elastic_publishes_2024_gtr.md | 0 .../security_labs/elastic_releases_debmm.md | 0 ...ring4shell_vulnerability_cve_2022_22965.md | 0 ...security_labs_discovers_lobshot_malware.md | 0 ...ecurity_labs_releases_llm_safety_report.md | 0 ...rity_labs_steps_through_the_r77_rootkit.md | 0 ...urity_opens_public_detection_rules_repo.md | 0 .../elastic_security_research_roundup.md | 0 ...urity_uncovers_blister_malware_campaign.md | 0 ...ted_from_suddenicon_supply_chain_attack.md | 0 ...r_navigating_todays_growing_threatscape.md | 0 .../elevate_your_threat_hunting.md | 0 .../embedding_security_in_llm_workflows.md | 54 +++++++++--------- ...ing_detections_against_koadic_using_eql.md | 0 .../emotet_configuration_extractor.md | 0 ...emotet_dynamic_configuration_extraction.md | 0 ...ve_detection_response_and_understanding.md | 0 .../exploring_aws_sts_assumeroot.md | 0 .../exploring_the_qbot_attack_pattern.md | 0 .../exploring_the_ref2731_intrusion_set.md | 0 ...ses_techniques_and_detection_strategies.md | 0 ...ing_cobalt_strike_beacon_configurations.md | 0 .../fall_2023_global_threat_report_outro.md | 0 .../security_labs/false_file_immutability.md | 0 .../finding_truth_in_the_shadows.md | 0 ...e_on_9_solutions_burning_down_the_house.md | 0 ...tions_2022_elastic_global_threat_report.md | 0 ...ulnerable_drivers_admin_is_all_you_need.md | 0 .../formbook_adopts_cab_less_approach.md | 0 ...x_detection_thread_creation_trampolines.md | 0 .../getting_gooey_with_guloader_downloader.md | 0 ...g_the_most_out_of_transforms_in_elastic.md | 0 ...tims_using_defense_evasion_bag_o_tricks.md | 0 .../globally_distributed_stealers.md | 0 ...ing_the_pyramid_with_the_deimos_implant.md | 0 .../google_cloud_for_cyber_data_analytics.md | 0 ...oogle_workspace_attack_surface_part_one.md | 0 ...oogle_workspace_attack_surface_part_two.md | 0 .../security_labs/grimresource.md | 0 .../gtr_multipart_series_overview.md | 0 ...for_the_enthusiastic_detection_engineer.md | 0 ...ral_movement_using_event_query_language.md | 0 ...rsistence_using_elastic_security_part_1.md | 0 ...rsistence_using_elastic_security_part_2.md | 0 ...ows_libraries_for_execution_and_evasion.md | 0 .../security_labs/hunting_memory.md | 0 .../hunting_memory_net_attacks.md | 0 .../icedid_configuration_extractor.md | 0 ...etwork_infrastructure_is_alive_and_well.md | 0 ...tifying_beaconing_malware_using_elastic.md | 0 ...a_with_the_threat_intel_filebeat_module.md | 0 .../inital_research_of_jokerspy.md | 0 ...inside_microsofts_plan_to_kill_pplfault.md | 0 .../into_the_weeds_how_we_run_detonate.md | 0 .../introducing_the_ref5961_intrusion_set.md | 0 ...tion_to_hexrays_decompilation_internals.md | 0 .../invisible_miners_unveiling_ghostengine.md | 0 ...0days_insights_and_detection_strategies.md | 0 .../security_labs/katz_and_mouse_game.md | 0 .../security_labs/kernel_etw_best_etw.md | 0 .../knotweed_assessment_summary.md | 0 ...linux_detection_engineering_with_auditd.md | 0 .../luna_ransomware_attack_pattern.md | 0 ...ring_okta_threats_with_elastic_security.md | 0 ...eams_from_the_developers_of_siestagraph.md | 0 .../netwire_configuration_extractor.md | 0 ...etwire_dynamic_configuration_extraction.md | 0 ..._exploit_linux_via_privilege_escalation.md | 0 ...eeping_anymore_somnirecords_wakeup_call.md | 0 .../okta_and_lapsus_what_you_need_to_know.md | 0 .../security_labs/operation_bleeding_bear.md | 0 .../parallax_payload_extractor.md | 0 ...eling_back_the_curtain_with_call_stacks.md | 0 ...ts_the_southeast_asian_financial_sector.md | 0 .../security_labs/pikabot_i_choose_you.md | 0 ...playing_defense_against_gamaredon_group.md | 0 ...security_engineering_stateful_detection.md | 0 .../primer_on_persistence_mechanisms.md | 0 ..._information_theft_keylogger_protection.md | 0 ...formation_theft_keylogger_protection_jp.md | 0 .../qbot_configuration_extractor.md | 0 .../security_labs/qbot_malware_analysis.md | 0 ...are_in_the_honeypot_how_we_capture_keys.md | 0 ...rrupted_sodinokibi_and_the_supply_chain.md | 0 ...ntain_persistence_as_an_advanced_threat.md | 0 ..._new_developments_of_the_blister_loader.md | 0 .../sandboxing_antimalware_products.md | 0 .../sequel_on_persistence_mechanisms.md | 0 ...overed_in_asean_member_foreign_ministry.md | 0 ..._within_how_ebpf_interacts_with_signals.md | 0 .../sinking_macos_pirate_ships.md | 0 ..._peek_elastic_2022_global_threat_report.md | 0 .../spring_cleaning_with_latrodectus.md | 0 .../starter_guide_to_understanding_okta.md | 0 ...xy_situations_ecsaping_your_threat_data.md | 0 .../stopping_vulnerable_driver_attacks.md | 0 .../security_labs/storm_on_the_horizon.md | 0 ...amlining_esql_query_and_rule_validation.md | 0 ...ing_security_integrating_amazon_bedrock.md | 0 ...g_okta_visibility_and_detection_dorothy.md | 0 ...hawing_the_permafrost_of_icedid_summary.md | 0 .../the_elastic_container_project.md | 0 .../security_labs/tricks_and_treats.md | 0 ...e_around_the_dance_floor_with_pipedance.md | 0 ...calation_via_linux_process_capabilities.md | 0 ...ng_financial_services_intrusion_ref0657.md | 0 .../security_labs/unpacking_icedid.md | 0 .../unveiling_malware_behavior_trends.md | 0 ...924_intrusion_set_and_related_campaigns.md | 0 ..._memory_threats_with_kernel_call_stacks.md | 0 ..._and_esre_to_find_similar_user_sessions.md | 0 .../using_llms_to_summarize_user_sessions.md | 0 .../vulnerability_summary_follina.md | 0 .../__mocks__/mock_anonymization_fields.ts | 0 .../__mocks__/mock_anonymized_alerts.ts | 0 .../__mocks__/mock_attack_discoveries.ts | 0 .../evaluation/__mocks__/mock_examples.ts | 0 .../__mocks__/mock_experiment_connector.ts | 0 .../evaluation/__mocks__/mock_runs.ts | 0 .../attack_discovery/evaluation/constants.ts | 0 .../evaluation/example_input/index.test.ts | 0 .../evaluation/example_input/index.ts | 0 .../get_default_prompt_template/index.test.ts | 0 .../get_default_prompt_template/index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../get_custom_evaluator/index.test.ts | 0 .../helpers/get_custom_evaluator/index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../helpers/get_evaluator_llm/index.test.ts | 0 .../helpers/get_evaluator_llm/index.ts | 0 .../get_graph_input_overrides/index.test.ts | 0 .../get_graph_input_overrides/index.ts | 0 .../attack_discovery/evaluation/index.test.ts | 0 .../lib/attack_discovery/evaluation/index.ts | 0 .../evaluation/run_evaluations/index.test.ts | 0 .../evaluation/run_evaluations/index.ts | 0 .../constants.ts | 0 .../index.test.ts | 0 .../get_generate_or_end_decision/index.ts | 0 .../edges/generate_or_end/index.test.ts | 0 .../edges/generate_or_end/index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../helpers/get_should_end/index.test.ts | 0 .../helpers/get_should_end/index.ts | 0 .../generate_or_refine_or_end/index.test.ts | 0 .../edges/generate_or_refine_or_end/index.ts | 0 .../helpers/get_has_results/index.test.ts | 0 .../edges/helpers/get_has_results/index.ts | 0 .../helpers/get_has_zero_alerts/index.test.ts | 0 .../helpers/get_has_zero_alerts/index.ts | 0 .../get_refine_or_end_decision/index.test.ts | 0 .../get_refine_or_end_decision/index.ts | 0 .../helpers/get_should_end/index.test.ts | 0 .../helpers/get_should_end/index.ts | 0 .../edges/refine_or_end/index.test.ts | 0 .../edges/refine_or_end/index.ts | 0 .../get_retrieve_or_generate/index.test.ts | 0 .../get_retrieve_or_generate/index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../get_max_retries_reached/index.test.ts | 0 .../helpers/get_max_retries_reached/index.ts | 0 .../default_attack_discovery_graph/index.ts | 2 +- .../mock/mock_anonymization_fields.ts | 0 ...n_and_acknowledged_alerts_query_results.ts | 0 .../index.test.ts | 0 .../discard_previous_generations/index.ts | 0 .../get_alerts_context_prompt/index.test.ts | 0 .../get_alerts_context_prompt/index.ts | 0 .../index.test.ts | 0 .../get_anonymized_alerts_from_state/index.ts | 0 .../get_use_unrefined_results/index.test.ts | 0 .../get_use_unrefined_results/index.ts | 0 .../nodes/generate/index.test.ts | 0 .../nodes/generate/index.ts | 0 .../nodes/generate/schema/index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../nodes/helpers/extract_json/index.test.ts | 0 .../nodes/helpers/extract_json/index.ts | 0 .../generations_are_repeating/index.test.tsx | 0 .../generations_are_repeating/index.tsx | 0 .../index.test.ts | 0 .../index.ts | 0 .../nodes/helpers/get_combined/index.test.ts | 0 .../nodes/helpers/get_combined/index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../helpers/get_continue_prompt/index.test.ts | 0 .../helpers/get_continue_prompt/index.ts | 0 .../index.test.ts | 0 .../index.ts | 0 .../helpers/get_output_parser/index.test.ts | 0 .../nodes/helpers/get_output_parser/index.ts | 0 .../parse_combined_or_throw/index.test.ts | 0 .../helpers/parse_combined_or_throw/index.ts | 0 .../response_is_hallucinated/index.test.ts | 0 .../helpers/response_is_hallucinated/index.ts | 0 .../index.test.ts | 0 .../discard_previous_refinements/index.ts | 0 .../get_combined_refine_prompt/index.test.ts | 0 .../get_combined_refine_prompt/index.ts | 0 .../get_default_refine_prompt/index.test.ts | 0 .../get_default_refine_prompt/index.ts | 0 .../get_use_unrefined_results/index.test.ts | 0 .../get_use_unrefined_results/index.ts | 0 .../nodes/refine/index.test.ts | 0 .../nodes/refine/index.ts | 0 .../anonymized_alerts_retriever/index.test.ts | 0 .../anonymized_alerts_retriever/index.ts | 0 .../get_anonymized_alerts/index.test.ts | 0 .../helpers/get_anonymized_alerts/index.ts | 0 .../nodes/retriever/index.test.ts | 0 .../nodes/retriever/index.ts | 0 .../state/index.test.ts | 0 .../state/index.ts | 0 .../default_attack_discovery_graph/types.ts | 0 .../create_attack_discovery.test.ts | 0 .../create_attack_discovery.ts | 0 .../field_maps_configuration.ts | 0 .../find_all_attack_discoveries.ts | 0 ...d_attack_discovery_by_connector_id.test.ts | 0 .../find_attack_discovery_by_connector_id.ts | 0 .../get_attack_discovery.test.ts | 0 .../get_attack_discovery.ts | 0 .../lib/attack_discovery/persistence/index.ts | 0 .../persistence/transforms/transforms.ts | 0 .../lib/attack_discovery/persistence/types.ts | 0 .../update_attack_discovery.test.ts | 0 .../update_attack_discovery.ts | 0 .../server/lib/build_response/index.ts | 0 .../data_stream/documents_data_writer.test.ts | 0 .../lib/data_stream/documents_data_writer.ts | 0 .../server/lib/data_stream/helpers.ts | 0 .../server/lib/executor.test.ts | 0 .../elastic_assistant/server/lib/executor.ts | 0 .../add_required_kb_resource_metadata.test.ts | 0 .../add_required_kb_resource_metadata.ts | 0 .../content_loaders/security_labs_loader.ts | 0 .../server/lib/langchain/executors/types.ts | 0 .../default_assistant_graph/constants.ts | 0 .../graphs/default_assistant_graph/graph.ts | 0 .../default_assistant_graph/helpers.test.ts | 0 .../graphs/default_assistant_graph/helpers.ts | 0 .../graphs/default_assistant_graph/index.ts | 0 .../nodes/execute_tools.ts | 0 .../nodes/generate_chat_title.ts | 0 .../nodes/get_persisted_conversation.ts | 0 .../nodes/model_input.ts | 0 .../nodes/persist_conversation_changes.ts | 0 .../default_assistant_graph/nodes/respond.ts | 0 .../nodes/run_agent.ts | 0 .../nodes/step_router.ts | 0 .../nodes/translations.ts | 0 .../graphs/default_assistant_graph/prompts.ts | 0 .../graphs/default_assistant_graph/types.ts | 0 .../server/lib/langchain/graphs/index.ts | 0 .../server/lib/langchain/helpers.test.ts | 0 .../server/lib/langchain/helpers.ts | 0 .../tracers/apm/with_assistant_span.ts | 0 .../server/lib/langchain/types.ts | 0 .../server/lib/parse_stream.test.ts | 0 .../server/lib/parse_stream.ts | 0 .../lib/telemetry/event_based_telemetry.ts | 0 .../elastic_assistant/server/plugin.ts | 0 .../bulk_actions_route.test.ts | 0 .../bulk_actions_route.ts | 0 .../anonymization_fields/find_route.test.ts | 0 .../routes/anonymization_fields/find_route.ts | 0 .../get/get_attack_discovery.test.ts | 0 .../get/get_attack_discovery.ts | 0 .../attack_discovery/helpers/helpers.test.ts | 0 .../attack_discovery/helpers/helpers.ts | 0 .../cancel/cancel_attack_discovery.test.ts | 0 .../post/cancel/cancel_attack_discovery.ts | 0 .../post/helpers/handle_graph_error/index.tsx | 0 .../invoke_attack_discovery_graph/index.tsx | 0 .../helpers/request_is_valid/index.test.tsx | 0 .../post/helpers/request_is_valid/index.tsx | 0 .../throw_if_error_counts_exceeded/index.ts | 0 .../translations.ts | 0 .../post/post_attack_discovery.test.ts | 0 .../post/post_attack_discovery.ts | 0 .../get_capabilities_route.test.ts | 0 .../capabilities/get_capabilities_route.ts | 0 .../routes/chat/chat_complete_route.test.ts | 0 .../server/routes/chat/chat_complete_route.ts | 0 .../routes/custom_http_request_error.ts | 0 .../get_defend_insight.test.ts | 0 .../defend_insights/get_defend_insight.ts | 0 .../get_defend_insights.test.ts | 0 .../defend_insights/get_defend_insights.ts | 0 .../routes/defend_insights/helpers.test.ts | 0 .../server/routes/defend_insights/helpers.ts | 0 .../server/routes/defend_insights/index.ts | 0 .../post_defend_insights.test.ts | 0 .../defend_insights/post_defend_insights.ts | 0 .../server/routes/evaluate/get_evaluate.ts | 0 .../evaluate/get_graphs_from_names/index.ts | 0 .../routes/evaluate/post_evaluate.test.ts | 0 .../server/routes/evaluate/post_evaluate.ts | 0 .../server/routes/evaluate/utils.ts | 0 .../server/routes/helpers.test.ts | 0 .../server/routes/helpers.ts | 0 .../elastic_assistant/server/routes/index.ts | 0 .../server/routes/knowledge_base/constants.ts | 0 .../entries/bulk_actions_route.test.ts | 0 .../entries/bulk_actions_route.ts | 0 .../entries/create_route.test.ts | 0 .../knowledge_base/entries/create_route.ts | 0 .../knowledge_base/entries/find_route.test.ts | 0 .../knowledge_base/entries/find_route.ts | 0 .../knowledge_base/entries/utils.test.ts | 0 .../routes/knowledge_base/entries/utils.ts | 0 .../knowledge_base/get_kb_resource.test.ts | 0 .../routes/knowledge_base/get_kb_resource.ts | 0 .../get_knowledge_base_indices.test.ts | 0 .../get_knowledge_base_indices.ts | 0 .../get_knowledge_base_status.test.ts | 0 .../get_knowledge_base_status.ts | 0 .../post_knowledge_base.test.ts | 0 .../knowledge_base/post_knowledge_base.ts | 0 .../post_actions_connector_execute.test.ts | 0 .../routes/post_actions_connector_execute.ts | 0 .../routes/prompts/bulk_actions_route.test.ts | 0 .../routes/prompts/bulk_actions_route.ts | 0 .../server/routes/prompts/find_route.test.ts | 0 .../server/routes/prompts/find_route.ts | 0 .../server/routes/register_routes.ts | 0 .../server/routes/request_context_factory.ts | 0 ...append_conversation_messages_route.test.ts | 0 .../append_conversation_messages_route.ts | 0 .../bulk_actions_route.test.ts | 0 .../user_conversations/bulk_actions_route.ts | 0 .../user_conversations/create_route.test.ts | 0 .../routes/user_conversations/create_route.ts | 0 .../user_conversations/delete_route.test.ts | 0 .../routes/user_conversations/delete_route.ts | 0 .../user_conversations/find_route.test.ts | 0 .../routes/user_conversations/find_route.ts | 0 .../user_conversations/read_route.test.ts | 0 .../routes/user_conversations/read_route.ts | 0 .../user_conversations/update_route.test.ts | 0 .../routes/user_conversations/update_route.ts | 0 .../server/routes/utils.test.ts | 0 .../elastic_assistant/server/routes/utils.ts | 0 .../server/services/app_context.test.ts | 0 .../server/services/app_context.ts | 0 .../plugins/elastic_assistant/server/types.ts | 0 .../plugins/elastic_assistant/tsconfig.json | 4 +- yarn.lock | 8 +-- 996 files changed, 190 insertions(+), 183 deletions(-) delete mode 100644 x-pack/packages/kbn-elastic-assistant-common/jest.config.js delete mode 100644 x-pack/packages/kbn-elastic-assistant/jest.config.js delete mode 100644 x-pack/packages/kbn-langchain/jest.config.js rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/.gitignore (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/README.md (70%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/constants.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/docs/openapi/ess/elastic_assistant_api_2023_10_31.bundled.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/docs/openapi/serverless/elastic_assistant_api_2023_10_31.bundled.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/env/README.md (71%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/env/http-client.env.json (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/alerts/helpers/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/capabilities/README.md (94%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/capabilities/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/data_anonymization/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/mock/get_anonymized_value/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/common.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/common_attributes.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/common_attributes.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.http (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.gen.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.schema.yaml (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/utils/bedrock.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/impl/utils/spaces_roles_users_data.http (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/index.ts (100%) create mode 100644 x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/package.json (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/scripts/openapi/bundle.js (97%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/scripts/openapi/generate.js (92%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/setup_tests.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant-common/tsconfig.json (87%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/README.md (83%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/capabilities/__mocks__/use_capabilities.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/conversations/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/evaluate/use_evaluation_data.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/prompts/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_body/welcome_setup.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_header/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_header/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_header/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_overlay/flyout_navigation.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.tsx (98%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_overlay/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_title/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/chat_actions/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/chat_actions/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/chat_send/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/chat_send/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/chat_send/use_autosize_textarea.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/badges/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/use_flyout_modal_visibility.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/pagination/use_session_pagination.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/constants.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/context_pills/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/context_pills/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings_editor.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_streaming_switch.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conveersation_changed.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_changed.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deleted.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deletex.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/helpers.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt/helpers.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_context/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_editor.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/default_conversations_column.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_textarea/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/prompt_textarea/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/helpers.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_editor.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/quick_prompts/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_management.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_modal.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx (99%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_bottom_bar.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/const.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/evaluation_settings.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/settings_context_menu/settings_context_menu.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/streaming_text/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/streaming_text/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_conversation/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_conversation/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_conversation/sample_conversations.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_conversation/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_data_stream_apis.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_send_message/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant/use_send_message/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant_context/constants.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant_context/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant_context/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant_context/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/assistant_context/types.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/add_connector_modal/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_button/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_settings_management/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_settings_management/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_setup/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/connector_setup/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/helpers.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/models/model_selector/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/use_anonymization_list_update.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings_management/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.tsx (98%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_flyout/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_modal/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/context_preview.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/read_only_context_viewer/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/replacements_context_viewer/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/constants.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/alerts_range.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/alerts_range.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/add_entry_button.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/document_entry_editor.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/use_knowledge_base_table.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/setup_knowledge_base_button.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/knowledge_base/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/mock/connectors.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/mock/conversation.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/mock/get_anonymized_value/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/mock/prompt_context/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/mock/quick_prompt.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/mock/system_prompt/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/new_chat/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/new_chat/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/new_chat/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/new_chat_by_title/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/new_chat_by_title/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/new_chat_by_title/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/const.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/knowledge_base/index.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/knowledge_base/index.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/knowledge_base/overview.gif (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/knowledge_base/step_config.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/knowledge_base/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/upgrade/translations.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/impl/upgrade/upgrade_buttons.tsx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/index.ts (100%) create mode 100644 x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/package.json (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/setup_tests.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-elastic-assistant/tsconfig.json (93%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/README.md (100%) create mode 100644 x-pack/platform/packages/shared/kbn-langchain/jest.config.js rename x-pack/{packages => platform/packages/shared}/kbn-langchain/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/package.json (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/bedrock_chat.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_bedrock_converse/bedrock_runtime_client.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_bedrock_converse/chat_bedrock_converse.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_bedrock_converse/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_openai.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_openai.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_vertex/chat_vertex.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_vertex/chat_vertex.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_vertex/connection.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/chat_vertex/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/constants.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/gemini_chat.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/helpers.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/helpers.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/llm.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/llm.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/mocks/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/simple_chat_model.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/simple_chat_model.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/language_models/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/README.mdx (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/apm/apm_tracer.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/apm/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/langsmith/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/langsmith/langsmith_tracer.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/telemetry/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/telemetry/telemetry_tracer.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/tracers/telemetry/telemetry_tracer.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/utils/bedrock.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/utils/bedrock.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/utils/gemini.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/utils/gemini.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/server/utils/types.ts (100%) rename x-pack/{packages => platform/packages/shared}/kbn-langchain/tsconfig.json (87%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/README.md (73%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/common/anonymization/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/common/constants.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/docs/img/default_assistant_graph.png (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/docs/img/default_attack_discovery_graph.png (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/jest.config.js (53%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/kibana.jsonc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/package.json (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/scripts/create_conversations.js (86%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/scripts/create_conversations_script.ts (98%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/scripts/draw_graph.js (85%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/scripts/draw_graph_script.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/scripts/model_evaluator.js (86%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/scripts/model_evaluator_script.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/action_result_data.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/alerts.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/anonymization_fields_schema.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/attack_discovery_schema.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/conversations_schema.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/data_clients.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts (83%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/knowledge_base_entry_schema.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/lang_chain_messages.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/prompts_schema.mock.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/raw_attack_discoveries.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/request.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/request_context.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/response.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/server.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/test_adapters.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/__mocks__/user.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/field_maps_configuration.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/append_conversation_messages.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/field_maps_configuration.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/transforms.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/field_maps_configuration.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/find.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/find.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/field_maps_configuration.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.test.tsx (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/ingest_pipeline.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/field_maps_configuration.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_service/helpers.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_service/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/ai_assistant_service/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/README.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0001.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0002.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0003.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0004.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0005.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0006.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0007.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0008.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0009.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0010.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0011.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0012.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0013.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0014.asciidoc (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_announcement.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_helping_security_leaders_navigate_todays_threat_landscape.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/500ms_to_midnight.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/a_peek_behind_the_bpfdoor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/accelerating_elastic_detection_tradecraft_with_llms.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/advanced_techniques_used_in_malaysian_focused_apt_campaign.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/an_elastic_approach_to_large_scale_dynamic_malware_analysis.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/analysis_of_log4shell_cve_2021_45046.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/attack_chain_leads_to_xworm_and_agenttesla.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/automating_security_protections_rapid_response_to_malware.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/behind_the_scenes_global_threat_report.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/betting_on_bots.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/beyond_the_wail.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/bits_and_bytes_analyzing_bitsloth.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_configuration_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_loader.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_configuration_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_scanner.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/bughatch_malware_analysis.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/callout_example.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/click_click_boom_automating_protections_testing_with_detonate.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/cloud_monitoring_and_detection_with_elastic_security.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/cobalt_strike_beacon_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_and_operationalizing_threat_data_from_the_mozi_botnet.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_cobalt_strike_beacons_with_the_elastic_stack.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_campaign_analysis.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_malware_analysis.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/cups_overflow.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dac_beta_release.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dancing_the_night_away_with_named_pipes.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/deep_dive_into_the_ttd_ecosystem.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_credential_access.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_domain_generation_algorithm_activity_with_new_kibana_integration.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_and_responding_to_dirty_pipe_with_elastic.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_living_off_the_land_attacks_with_new_elastic_integration.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_log4j2_with_elastic_security.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_and_response_for_the_actively_exploited_proxyshell_vulnerabilities.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_rules_for_sigred_vulnerability.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dipping_into_danger.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/disclosing_the_bloodalchemy_backdoor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dismantling_smart_app_control.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_four.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_one.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_three.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_two.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/doing_time_with_the_yipphb_dropper.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/doubling_down_etw_callstacks.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_code_of_conduct.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_strikes_using_a_new_variant_of_rustbucket.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/effective_parenting_detecting_lrpc_based_parent_pid_spoofing.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_advances_llm_security.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_catches_dprk_passing_out_kandykorn.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_charms_spectralviper.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_protects_against_data_wiper_malware_targeting_ukraine_hermeticwiper.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2023_global_threat_report_spring_edition.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2024_gtr.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_releases_debmm.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_response_to_the_the_spring4shell_vulnerability_cve_2022_22965.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_discovers_lobshot_malware.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_releases_llm_safety_report.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_steps_through_the_r77_rootkit.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_opens_public_detection_rules_repo.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_research_roundup.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_uncovers_blister_malware_campaign.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_users_protected_from_suddenicon_supply_chain_attack.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elastics_2022_global_threat_report_a_roadmap_for_navigating_todays_growing_threatscape.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/elevate_your_threat_hunting.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md (96%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/embracing_offensive_tooling_building_detections_against_koadic_using_eql.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_configuration_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_dynamic_configuration_extraction.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_applications_of_chatgpt_to_improve_detection_response_and_understanding.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_aws_sts_assumeroot.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_qbot_attack_pattern.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_ref2731_intrusion_set.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_windows_uac_bypasses_techniques_and_detection_strategies.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/extracting_cobalt_strike_beacon_configurations.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/fall_2023_global_threat_report_outro.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/false_file_immutability.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/finding_truth_in_the_shadows.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/flare_on_9_solutions_burning_down_the_house.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/forecast_and_recommendations_2022_elastic_global_threat_report.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/forget_vulnerable_drivers_admin_is_all_you_need.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/formbook_adopts_cab_less_approach.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/get_injectedthreadex_detection_thread_creation_trampolines.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_gooey_with_guloader_downloader.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_the_most_out_of_transforms_in_elastic.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/ghostpulse_haunts_victims_using_defense_evasion_bag_o_tricks.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/globally_distributed_stealers.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/going_coast_to_coast_climbing_the_pyramid_with_the_deimos_implant.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/google_cloud_for_cyber_data_analytics.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_one.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_two.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/grimresource.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/gtr_multipart_series_overview.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/handy_elastic_tools_for_the_enthusiastic_detection_engineer.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_lateral_movement_using_event_query_language.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_1.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_2.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_suspicious_windows_libraries_for_execution_and_evasion.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory_net_attacks.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/icedid_configuration_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/icedids_network_infrastructure_is_alive_and_well.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/identifying_beaconing_malware_using_elastic.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/ingesting_threat_data_with_the_threat_intel_filebeat_module.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/inital_research_of_jokerspy.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/inside_microsofts_plan_to_kill_pplfault.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/into_the_weeds_how_we_run_detonate.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/introducing_the_ref5961_intrusion_set.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/introduction_to_hexrays_decompilation_internals.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/invisible_miners_unveiling_ghostengine.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/itw_windows_lpe_0days_insights_and_detection_strategies.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/katz_and_mouse_game.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/kernel_etw_best_etw.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/knotweed_assessment_summary.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/linux_detection_engineering_with_auditd.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/luna_ransomware_attack_pattern.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/monitoring_okta_threats_with_elastic_security.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/naplistener_more_bad_dreams_from_the_developers_of_siestagraph.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_configuration_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_dynamic_configuration_extraction.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/nimbuspwn_leveraging_vulnerabilities_to_exploit_linux_via_privilege_escalation.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/not_sleeping_anymore_somnirecords_wakeup_call.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/okta_and_lapsus_what_you_need_to_know.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/operation_bleeding_bear.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/parallax_payload_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/peeling_back_the_curtain_with_call_stacks.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/phoreal_malware_targets_the_southeast_asian_financial_sector.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/pikabot_i_choose_you.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/playing_defense_against_gamaredon_group.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/practical_security_engineering_stateful_detection.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/primer_on_persistence_mechanisms.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection_jp.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_configuration_extractor.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_malware_analysis.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_in_the_honeypot_how_we_capture_keys.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_interrupted_sodinokibi_and_the_supply_chain.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/ref2924_howto_maintain_persistence_as_an_advanced_threat.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/revisiting_blister_new_developments_of_the_blister_loader.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/sandboxing_antimalware_products.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/sequel_on_persistence_mechanisms.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/siestagraph_new_implant_uncovered_in_asean_member_foreign_ministry.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/signaling_from_within_how_ebpf_interacts_with_signals.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/sinking_macos_pirate_ships.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/sneak_peek_elastic_2022_global_threat_report.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/spring_cleaning_with_latrodectus.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/starter_guide_to_understanding_okta.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/stixy_situations_ecsaping_your_threat_data.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/stopping_vulnerable_driver_attacks.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/storm_on_the_horizon.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_esql_query_and_rule_validation.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_security_integrating_amazon_bedrock.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/testing_okta_visibility_and_detection_dorothy.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/thawing_the_permafrost_of_icedid_summary.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/the_elastic_container_project.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/tricks_and_treats.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/twice_around_the_dance_floor_with_pipedance.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/unlocking_power_safely_privilege_escalation_via_linux_process_capabilities.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/unmasking_financial_services_intrusion_ref0657.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/unpacking_icedid.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/unveiling_malware_behavior_trends.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/update_to_the_ref2924_intrusion_set_and_related_campaigns.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/upping_the_ante_detecting_in_memory_threats_with_kernel_call_stacks.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_and_esre_to_find_similar_user_sessions.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_to_summarize_user_sessions.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/knowledge_base/security_labs/vulnerability_summary_follina.md (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymization_fields.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymized_alerts.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_attack_discoveries.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_examples.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_experiment_connector.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_runs.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/constants.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/constants.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts (97%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/mock/mock_anonymization_fields.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/mock/mock_open_and_acknowledged_alerts_query_results.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/discard_previous_generations/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/discard_previous_generations/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/get_alerts_context_prompt/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/get_alerts_context_prompt/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/get_anonymized_alerts_from_state/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/get_anonymized_alerts_from_state/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/get_use_unrefined_results/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/helpers/get_use_unrefined_results/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/generate/schema/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/add_trailing_backticks_if_necessary/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/add_trailing_backticks_if_necessary/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/extract_json/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/extract_json/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/generations_are_repeating/index.test.tsx (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/generations_are_repeating/index.tsx (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_chain_with_format_instructions/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_chain_with_format_instructions/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_combined/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_combined/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_combined_attack_discovery_prompt/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_combined_attack_discovery_prompt/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_continue_prompt/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_continue_prompt/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_default_attack_discovery_prompt/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_default_attack_discovery_prompt/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_output_parser/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/get_output_parser/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/parse_combined_or_throw/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/parse_combined_or_throw/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/response_is_hallucinated/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/helpers/response_is_hallucinated/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/discard_previous_refinements/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/discard_previous_refinements/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/get_combined_refine_prompt/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/get_combined_refine_prompt/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/get_default_refine_prompt/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/get_default_refine_prompt/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/get_use_unrefined_results/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/helpers/get_use_unrefined_results/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/refine/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/retriever/anonymized_alerts_retriever/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/retriever/anonymized_alerts_retriever/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/retriever/helpers/get_anonymized_alerts/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/retriever/helpers/get_anonymized_alerts/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/retriever/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/nodes/retriever/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/state/index.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/state/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/create_attack_discovery/create_attack_discovery.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/create_attack_discovery/create_attack_discovery.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/field_maps_configuration/field_maps_configuration.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/find_all_attack_discoveries/find_all_attack_discoveries.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/find_attack_discovery_by_connector_id/find_attack_discovery_by_connector_id.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/find_attack_discovery_by_connector_id/find_attack_discovery_by_connector_id.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/get_attack_discovery/get_attack_discovery.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/get_attack_discovery/get_attack_discovery.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/transforms/transforms.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/update_attack_discovery/update_attack_discovery.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/attack_discovery/persistence/update_attack_discovery/update_attack_discovery.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/build_response/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/data_stream/documents_data_writer.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/data_stream/documents_data_writer.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/data_stream/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/executor.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/executor.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/content_loaders/add_required_kb_resource_metadata.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/content_loaders/add_required_kb_resource_metadata.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/content_loaders/security_labs_loader.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/executors/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/constants.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/graph.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/execute_tools.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/generate_chat_title.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/get_persisted_conversation.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/model_input.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/persist_conversation_changes.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/respond.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/run_agent.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/step_router.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/nodes/translations.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/prompts.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/default_assistant_graph/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/graphs/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/helpers.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/tracers/apm/with_assistant_span.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/langchain/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/parse_stream.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/parse_stream.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/lib/telemetry/event_based_telemetry.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/plugin.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/anonymization_fields/bulk_actions_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/anonymization_fields/bulk_actions_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/anonymization_fields/find_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/anonymization_fields/find_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/get/get_attack_discovery.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/get/get_attack_discovery.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/helpers/helpers.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/helpers/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/cancel/cancel_attack_discovery.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/cancel/cancel_attack_discovery.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/helpers/handle_graph_error/index.tsx (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/helpers/invoke_attack_discovery_graph/index.tsx (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/helpers/request_is_valid/index.test.tsx (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/helpers/request_is_valid/index.tsx (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/helpers/throw_if_error_counts_exceeded/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/helpers/throw_if_error_counts_exceeded/translations.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/post_attack_discovery.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/attack_discovery/post/post_attack_discovery.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/capabilities/get_capabilities_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/capabilities/get_capabilities_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/chat/chat_complete_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/chat/chat_complete_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/custom_http_request_error.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/get_defend_insight.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/get_defend_insight.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/get_defend_insights.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/get_defend_insights.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/helpers.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/post_defend_insights.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/defend_insights/post_defend_insights.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/evaluate/get_evaluate.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/evaluate/get_graphs_from_names/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/evaluate/post_evaluate.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/evaluate/post_evaluate.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/evaluate/utils.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/helpers.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/helpers.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/index.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/constants.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/bulk_actions_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/bulk_actions_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/create_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/create_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/find_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/find_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/utils.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/entries/utils.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/get_kb_resource.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/get_kb_resource.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/get_knowledge_base_indices.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/get_knowledge_base_indices.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/get_knowledge_base_status.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/get_knowledge_base_status.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/post_knowledge_base.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/knowledge_base/post_knowledge_base.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/post_actions_connector_execute.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/post_actions_connector_execute.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/prompts/bulk_actions_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/prompts/bulk_actions_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/prompts/find_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/prompts/find_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/register_routes.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/request_context_factory.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/append_conversation_messages_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/append_conversation_messages_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/bulk_actions_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/bulk_actions_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/create_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/create_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/delete_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/delete_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/find_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/find_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/read_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/read_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/update_route.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/user_conversations/update_route.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/utils.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/routes/utils.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/services/app_context.test.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/services/app_context.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/server/types.ts (100%) rename x-pack/{ => solutions/security}/plugins/elastic_assistant/tsconfig.json (94%) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 6f4681d0d8d87..c1f4758eec3a6 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -254,10 +254,10 @@ const getPipeline = (filename: string, removeSteps = true) => { /^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/openai/, /^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/bedrock/, /^x-pack\/plugins\/usage_collection\/public/, - /^x-pack\/plugins\/elastic_assistant/, + /^x-pack\/solutions\/security\/plugins\/elastic_assistant/, /^x-pack\/packages\/security-solution/, - /^x-pack\/packages\/kbn-elastic-assistant/, - /^x-pack\/packages\/kbn-elastic-assistant-common/, + /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/, + /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/, /^x-pack\/test\/functional\/es_archives\/security_solution/, /^x-pack\/test\/security_solution_cypress/, ])) || @@ -321,13 +321,13 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/plugins\/ui_actions/, /^src\/plugins\/unified_histogram/, /^src\/plugins\/unified_search/, - /^x-pack\/packages\/kbn-elastic-assistant/, - /^x-pack\/packages\/kbn-elastic-assistant-common/, + /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/, + /^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/, /^x-pack\/packages\/security-solution/, /^x-pack\/plugins\/alerting/, /^x-pack\/plugins\/cases/, /^x-pack\/plugins\/data_views\/common/, - /^x-pack\/plugins\/elastic_assistant/, + /^x-pack\/solutions\/security\/plugins\/elastic_assistant/, /^x-pack\/plugins\/lists/, /^x-pack\/plugins\/rule_registry\/common/, /^x-pack\/plugins\/security_solution/, diff --git a/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh b/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh index 475c545a283c0..a1c595159d5cc 100755 --- a/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh +++ b/.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh @@ -6,5 +6,5 @@ source .buildkite/scripts/common/util.sh echo --- Elastic Assistant OpenAPI Code Generation -(cd x-pack/packages/kbn-elastic-assistant-common && yarn openapi:generate) +(cd x-pack/platform/packages/shared/kbn-elastic-assistant-common && yarn openapi:generate) check_for_changed_files "yarn openapi:generate" true diff --git a/.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh b/.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh index 6122152edb555..50a1de855d035 100755 --- a/.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh +++ b/.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh @@ -28,7 +28,7 @@ echo -e "\n[Security Solution OpenAPI Bundling] Endpoint Management API\n" (cd x-pack/plugins/security_solution && yarn openapi:bundle:endpoint-management) echo -e "\n[Security Solution OpenAPI Bundling] Elastic Assistant API\n" -(cd x-pack/packages/kbn-elastic-assistant-common && yarn openapi:bundle) +(cd x-pack/platform/packages/shared/kbn-elastic-assistant-common && yarn openapi:bundle) echo -e "\n[Security Solution OpenAPI Bundling] Osquery API\n" (cd x-pack/platform/plugins/shared/osquery && yarn openapi:bundle) diff --git a/.eslintrc.js b/.eslintrc.js index 213c106788b74..54f08af56a600 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1099,9 +1099,9 @@ module.exports = { // front end and common typescript and javascript files only files: [ 'x-pack/plugins/ecs_data_quality_dashboard/common/**/*.{js,mjs,ts,tsx}', - 'x-pack/plugins/elastic_assistant/common/**/*.{js,mjs,ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/security/plugins/elastic_assistant/common/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/security_solution/public/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/security_solution_ess/public/**/*.{js,mjs,ts,tsx}', @@ -1135,11 +1135,11 @@ module.exports = { // This should be a very small set as most linter rules are useful for tests as well. files: [ 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}', - 'x-pack/plugins/elastic_assistant/**/*.{ts,tsx}', + 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant/**/*.{ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant-common/**/*.{ts,tsx}', - 'x-pack/packages/kbn-langchain/**/*.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-langchain/**/*.{ts,tsx}', 'x-pack/solutions/security/packages/**/*.{ts,tsx}', 'x-pack/plugins/security_solution/**/*.{ts,tsx}', 'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}', @@ -1150,11 +1150,11 @@ module.exports = { ], excludedFiles: [ 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{test,mock,test_helper}.{ts,tsx}', - 'x-pack/plugins/elastic_assistant/**/*.{test,mock,test_helper}.{ts,tsx}', + 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{test,mock,test_helper}.{ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant/**/*.{test,mock,test_helper}.{ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant-common/**/*.{test,mock,test_helper}.{ts,tsx}', - 'x-pack/packages/kbn-langchain/**/*.{test,mock,test_helper}.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{test,mock,test_helper}.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{test,mock,test_helper}.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-langchain/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/solutions/security/packages/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/plugins/security_solution/**/*.{test,mock,test_helper}.{ts,tsx}', 'x-pack/plugins/security_solution_ess/**/*.{test,mock,test_helper}.{ts,tsx}', @@ -1171,11 +1171,11 @@ module.exports = { // typescript only for front and back end files: [ 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}', - 'x-pack/plugins/elastic_assistant/**/*.{ts,tsx}', + 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant/**/*.{ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant-common/**/*.{ts,tsx}', - 'x-pack/packages/kbn-langchain/**/*.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{ts,tsx}', + 'x-pack/platform/packages/shared/kbn-langchain/**/*.{ts,tsx}', 'x-pack/solutions/security/packages/**/*.{ts,tsx}', 'x-pack/plugins/security_solution/**/*.{ts,tsx}', 'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}', @@ -1205,11 +1205,11 @@ module.exports = { // typescript and javascript for front and back end files: [ 'x-pack/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}', - 'x-pack/plugins/elastic_assistant/**/*.{js,mjs,ts,tsx}', + 'x-pack/solutions/security/plugins/elastic_assistant/**/*.{js,mjs,ts,tsx}', 'x-pack/platform/plugins/shared/integration_assistant/**/*.{js,mjs,ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}', - 'x-pack/packages/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}', - 'x-pack/packages/kbn-langchain/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/packages/shared/kbn-langchain/**/*.{js,mjs,ts,tsx}', 'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/security_solution/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/security_solution_ess/**/*.{js,mjs,ts,tsx}', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 44173513bb9c9..917fc34c898b7 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -402,9 +402,9 @@ packages/kbn-ebt-tools @elastic/kibana-core x-pack/solutions/security/packages/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore x-pack/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore packages/kbn-elastic-agent-utils @elastic/obs-ux-logs-team -x-pack/packages/kbn-elastic-assistant @elastic/security-generative-ai -x-pack/packages/kbn-elastic-assistant-common @elastic/security-generative-ai -x-pack/plugins/elastic_assistant @elastic/security-generative-ai +x-pack/platform/packages/shared/kbn-elastic-assistant @elastic/security-generative-ai +x-pack/platform/packages/shared/kbn-elastic-assistant-common @elastic/security-generative-ai +x-pack/solutions/security/plugins/elastic_assistant @elastic/security-generative-ai test/plugin_functional/plugins/elasticsearch_client_plugin @elastic/kibana-core x-pack/test/plugin_api_integration/plugins/elasticsearch_client @elastic/kibana-core x-pack/plugins/embeddable_enhanced @elastic/kibana-presentation @@ -567,7 +567,7 @@ src/plugins/kibana_react @elastic/appex-sharedux src/plugins/kibana_usage_collection @elastic/kibana-core src/plugins/kibana_utils @elastic/appex-sharedux x-pack/plugins/kubernetes_security @elastic/kibana-cloud-security-posture -x-pack/packages/kbn-langchain @elastic/security-generative-ai +x-pack/platform/packages/shared/kbn-langchain @elastic/security-generative-ai src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql x-pack/examples/lens_config_builder_example @elastic/kibana-visualizations packages/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations @@ -1844,6 +1844,12 @@ x-pack/test/security_solution_cypress/cypress/tasks/expandable_flyout @elastic/ /x-pack/plugins/security_solution_serverless/public/upselling/sections/endpoint_management @elastic/security-defend-workflows /x-pack/plugins/security_solution_serverless/public/upselling/pages/endpoint_management @elastic/security-defend-workflows /x-pack/plugins/security_solution_serverless/server/endpoint @elastic/security-defend-workflows +x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights @elastic/security-defend-workflows +x-pack/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts @elastic/security-defend-workflows +x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights @elastic/security-defend-workflows +x-pack/plugins/elastic_assistant/server/routes/defend_insights @elastic/security-defend-workflows +/x-pack/plugins/security_solution/public/common/components/response_actions @elastic/security-defend-workflows +/x-pack/plugins/security_solution_serverless/public/upselling/pages/osquery_automated_response_actions.tsx @elastic/security-defend-workflows ## Security Solution sub teams - security-telemetry (Data Engineering) x-pack/plugins/security_solution/server/usage/ @elastic/security-data-analytics diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml index ae230d43249dc..b8fcb71c67a06 100644 --- a/.github/codeql/codeql-config.yml +++ b/.github/codeql/codeql-config.yml @@ -75,7 +75,7 @@ paths-ignore: - test - x-pack/plugins/canvas/scripts - x-pack/plugins/cloud_security_posture/common/scripts - - x-pack/plugins/elastic_assistant/scripts + - x-pack/solutions/security/plugins/elastic_assistant/scripts - x-pack/plugins/event_log/scripts - x-pack/plugins/fleet/scripts - x-pack/plugins/lists/scripts diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 76d15a80862f7..a1a6391daa173 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -557,7 +557,7 @@ Plugin server-side only. Plugin has three main functions: |This plugin implements (server) APIs used to render the content of the Data Quality dashboard. -|{kib-repo}blob/{branch}/x-pack/plugins/elastic_assistant/README.md[elasticAssistant] +|{kib-repo}blob/{branch}/x-pack/solutions/security/plugins/elastic_assistant/README.md[elasticAssistant] |This plugin implements (only) server APIs for the Elastic AI Assistant. diff --git a/oas_docs/scripts/merge_ess_oas.js b/oas_docs/scripts/merge_ess_oas.js index e65f4ef4db58e..b3a89437287ec 100644 --- a/oas_docs/scripts/merge_ess_oas.js +++ b/oas_docs/scripts/merge_ess_oas.js @@ -31,7 +31,7 @@ const { REPO_ROOT } = require('@kbn/repo-info'); `${REPO_ROOT}/packages/kbn-securitysolution-lists-common/docs/openapi/ess/*.schema.yaml`, `${REPO_ROOT}/packages/kbn-securitysolution-exceptions-common/docs/openapi/ess/*.schema.yaml`, `${REPO_ROOT}/packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/ess/*.schema.yaml`, - `${REPO_ROOT}/x-pack/packages/kbn-elastic-assistant-common/docs/openapi/ess/*.schema.yaml`, + `${REPO_ROOT}/x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/ess/*.schema.yaml`, `${REPO_ROOT}/x-pack/platform/plugins/shared/osquery/docs/openapi/ess/*.schema.yaml`, ], outputFilePath: `${REPO_ROOT}/oas_docs/output/kibana.yaml`, diff --git a/package.json b/package.json index 11bcc92b97eb2..c9b105f7424e2 100644 --- a/package.json +++ b/package.json @@ -465,9 +465,9 @@ "@kbn/ecs-data-quality-dashboard": "link:x-pack/solutions/security/packages/ecs_data_quality_dashboard", "@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/plugins/ecs_data_quality_dashboard", "@kbn/elastic-agent-utils": "link:packages/kbn-elastic-agent-utils", - "@kbn/elastic-assistant": "link:x-pack/packages/kbn-elastic-assistant", - "@kbn/elastic-assistant-common": "link:x-pack/packages/kbn-elastic-assistant-common", - "@kbn/elastic-assistant-plugin": "link:x-pack/plugins/elastic_assistant", + "@kbn/elastic-assistant": "link:x-pack/platform/packages/shared/kbn-elastic-assistant", + "@kbn/elastic-assistant-common": "link:x-pack/platform/packages/shared/kbn-elastic-assistant-common", + "@kbn/elastic-assistant-plugin": "link:x-pack/solutions/security/plugins/elastic_assistant", "@kbn/elasticsearch-client-plugin": "link:test/plugin_functional/plugins/elasticsearch_client_plugin", "@kbn/elasticsearch-client-xpack-plugin": "link:x-pack/test/plugin_api_integration/plugins/elasticsearch_client", "@kbn/embeddable-enhanced-plugin": "link:x-pack/plugins/embeddable_enhanced", @@ -606,7 +606,7 @@ "@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection", "@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils", "@kbn/kubernetes-security-plugin": "link:x-pack/plugins/kubernetes_security", - "@kbn/langchain": "link:x-pack/packages/kbn-langchain", + "@kbn/langchain": "link:x-pack/platform/packages/shared/kbn-langchain", "@kbn/language-documentation": "link:src/platform/packages/private/kbn-language-documentation", "@kbn/lens-config-builder-example-plugin": "link:x-pack/examples/lens_config_builder_example", "@kbn/lens-embeddable-utils": "link:packages/kbn-lens-embeddable-utils", diff --git a/packages/kbn-babel-preset/styled_components_files.js b/packages/kbn-babel-preset/styled_components_files.js index 3eed74acd362a..555a4bfb98ec6 100644 --- a/packages/kbn-babel-preset/styled_components_files.js +++ b/packages/kbn-babel-preset/styled_components_files.js @@ -20,5 +20,6 @@ module.exports = { /x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/, /x-pack[\/\\]packages[\/\\]elastic_assistant[\/\\]/, /x-pack[\/\\]solutions[\/\\]security[\/\\]packages[\/\\]ecs_data_quality_dashboard[\/\\]/, + /x-pack[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-elastic-assistant[\/\\]/, ], }; diff --git a/tsconfig.base.json b/tsconfig.base.json index eb2f9ecbd9bbd..5047e4069c492 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -798,12 +798,12 @@ "@kbn/ecs-data-quality-dashboard-plugin/*": ["x-pack/plugins/ecs_data_quality_dashboard/*"], "@kbn/elastic-agent-utils": ["packages/kbn-elastic-agent-utils"], "@kbn/elastic-agent-utils/*": ["packages/kbn-elastic-agent-utils/*"], - "@kbn/elastic-assistant": ["x-pack/packages/kbn-elastic-assistant"], - "@kbn/elastic-assistant/*": ["x-pack/packages/kbn-elastic-assistant/*"], - "@kbn/elastic-assistant-common": ["x-pack/packages/kbn-elastic-assistant-common"], - "@kbn/elastic-assistant-common/*": ["x-pack/packages/kbn-elastic-assistant-common/*"], - "@kbn/elastic-assistant-plugin": ["x-pack/plugins/elastic_assistant"], - "@kbn/elastic-assistant-plugin/*": ["x-pack/plugins/elastic_assistant/*"], + "@kbn/elastic-assistant": ["x-pack/platform/packages/shared/kbn-elastic-assistant"], + "@kbn/elastic-assistant/*": ["x-pack/platform/packages/shared/kbn-elastic-assistant/*"], + "@kbn/elastic-assistant-common": ["x-pack/platform/packages/shared/kbn-elastic-assistant-common"], + "@kbn/elastic-assistant-common/*": ["x-pack/platform/packages/shared/kbn-elastic-assistant-common/*"], + "@kbn/elastic-assistant-plugin": ["x-pack/solutions/security/plugins/elastic_assistant"], + "@kbn/elastic-assistant-plugin/*": ["x-pack/solutions/security/plugins/elastic_assistant/*"], "@kbn/elasticsearch-client-plugin": ["test/plugin_functional/plugins/elasticsearch_client_plugin"], "@kbn/elasticsearch-client-plugin/*": ["test/plugin_functional/plugins/elasticsearch_client_plugin/*"], "@kbn/elasticsearch-client-xpack-plugin": ["x-pack/test/plugin_api_integration/plugins/elasticsearch_client"], @@ -1128,8 +1128,8 @@ "@kbn/kibana-utils-plugin/*": ["src/plugins/kibana_utils/*"], "@kbn/kubernetes-security-plugin": ["x-pack/plugins/kubernetes_security"], "@kbn/kubernetes-security-plugin/*": ["x-pack/plugins/kubernetes_security/*"], - "@kbn/langchain": ["x-pack/packages/kbn-langchain"], - "@kbn/langchain/*": ["x-pack/packages/kbn-langchain/*"], + "@kbn/langchain": ["x-pack/platform/packages/shared/kbn-langchain"], + "@kbn/langchain/*": ["x-pack/platform/packages/shared/kbn-langchain/*"], "@kbn/language-documentation": ["src/platform/packages/private/kbn-language-documentation"], "@kbn/language-documentation/*": ["src/platform/packages/private/kbn-language-documentation/*"], "@kbn/lens-config-builder-example-plugin": ["x-pack/examples/lens_config_builder_example"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 7210445f61da6..97f0350e55465 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -35,9 +35,9 @@ "xpack.dataUsage": "platform/plugins/private/data_usage", "xpack.discover": "plugins/discover_enhanced", "xpack.crossClusterReplication": "platform/plugins/private/cross_cluster_replication", - "xpack.elasticAssistant": "packages/kbn-elastic-assistant", + "xpack.elasticAssistant": "platform/packages/shared/kbn-elastic-assistant", "xpack.elasticAssistantCommon": "platform/packages/shared/kbn-elastic-assistant-common", - "xpack.elasticAssistantPlugin": "plugins/elastic_assistant", + "xpack.elasticAssistantPlugin": "solutions/security/plugins/elastic_assistant", "xpack.ecsDataQualityDashboard": "plugins/ecs_data_quality_dashboard", "xpack.embeddableEnhanced": "plugins/embeddable_enhanced", "xpack.endpoint": "plugins/endpoint", diff --git a/x-pack/packages/kbn-elastic-assistant-common/jest.config.js b/x-pack/packages/kbn-elastic-assistant-common/jest.config.js deleted file mode 100644 index 1da38998cc4d2..0000000000000 --- a/x-pack/packages/kbn-elastic-assistant-common/jest.config.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - coverageDirectory: - '/target/kibana-coverage/jest/x-pack/packages/kbn_elastic_assistant_common_impl', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/x-pack/packages/kbn-elastic-assistant-common/impl/**/*.{ts,tsx}', - '!/x-pack/packages/kbn-elastic-assistant-common/impl/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*', - '!/x-pack/packages/kbn-elastic-assistant-common/impl/*mock*.{ts,tsx}', - '!/x-pack/packages/kbn-elastic-assistant-common/impl/*.test.{ts,tsx}', - '!/x-pack/packages/kbn-elastic-assistant-common/impl/*.d.ts', - '!/x-pack/packages/kbn-elastic-assistant-common/impl/*.config.ts', - ], - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/packages/kbn-elastic-assistant-common'], -}; diff --git a/x-pack/packages/kbn-elastic-assistant/jest.config.js b/x-pack/packages/kbn-elastic-assistant/jest.config.js deleted file mode 100644 index 46d4ca8b91eb4..0000000000000 --- a/x-pack/packages/kbn-elastic-assistant/jest.config.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - coverageDirectory: - '/target/kibana-coverage/jest/x-pack/packages/kbn_elastic_assistant_impl', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/x-pack/packages/kbn-elastic-assistant/impl/**/*.{ts,tsx}', - '!/x-pack/packages/kbn-elastic-assistant/impl/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*', - '!/x-pack/packages/kbn-elastic-assistant/impl/*mock*.{ts,tsx}', - '!/x-pack/packages/kbn-elastic-assistant/impl/*.test.{ts,tsx}', - '!/x-pack/packages/kbn-elastic-assistant/impl/*.d.ts', - '!/x-pack/packages/kbn-elastic-assistant/impl/*.config.ts', - ], - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/packages/kbn-elastic-assistant'], -}; diff --git a/x-pack/packages/kbn-langchain/jest.config.js b/x-pack/packages/kbn-langchain/jest.config.js deleted file mode 100644 index f436e6a9edbe6..0000000000000 --- a/x-pack/packages/kbn-langchain/jest.config.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - coverageDirectory: '/target/kibana-coverage/jest/x-pack/packages/kbn_langchain', - coverageReporters: ['text', 'html'], - collectCoverageFrom: [ - '/x-pack/packages/kbn-langchain/server/**/*.{ts}', - '!/x-pack/packages/kbn-langchain/server/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*', - '!/x-pack/packages/kbn-langchain/server/*mock*.{ts}', - '!/x-pack/packages/kbn-langchain/server/*.test.{ts}', - '!/x-pack/packages/kbn-langchain/server/*.d.ts', - '!/x-pack/packages/kbn-langchain/server/*.config.ts', - ], - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/packages/kbn-langchain'], -}; diff --git a/x-pack/packages/kbn-elastic-assistant-common/.gitignore b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/.gitignore similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/.gitignore rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/.gitignore diff --git a/x-pack/packages/kbn-elastic-assistant-common/README.md b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md similarity index 70% rename from x-pack/packages/kbn-elastic-assistant-common/README.md rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md index 973bc975c7da6..94ab25c8279b7 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/README.md +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md @@ -1,8 +1,8 @@ # @kbn/elastic-assistant-common This package provides common code consumed in both the browser, i.e. the -`packages/kbn-elastic-assistant` package and `plugins/security_solution` plugin, and on the server, i.e. the -`plugins/elastic_assistant` plugin. +`platform/packages/shared/kbn-elastic-assistant` package and `plugins/security_solution` plugin, and on the server, i.e. the +`solutions/security/plugins/elastic_assistant` plugin. For example, the data anonymization functions exported by this package are be used in both the browser, and on the server. @@ -16,7 +16,7 @@ Maintained by the Security Solution team To (interactively) run unit tests with code coverage, run the following command: ```sh -cd $KIBANA_HOME && node scripts/jest --watch x-pack/packages/kbn-elastic-assistant-common --coverage +cd $KIBANA_HOME && node scripts/jest --watch x-pack/platform/packages/shared/kbn-elastic-assistant-common --coverage ``` ## OpenAPI Codegen @@ -25,7 +25,7 @@ Implemented using the new OpenAPI codegen and bundle packages: * Includes OpenAPI codegen script and CI action as detailed in: https://github.com/elastic/kibana/pull/166269 * Includes OpenAPI docs bundling script as detailed in: https://github.com/elastic/kibana/pull/171526 -To run codegen/bundling locally, cd to `x-pack/packages/kbn-elastic-assistant-common/` and run any of the following commands: +To run codegen/bundling locally, cd to `x-pack/platform/packages/shared/kbn-elastic-assistant-common/` and run any of the following commands: ```bash yarn openapi:generate diff --git a/x-pack/packages/kbn-elastic-assistant-common/constants.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/constants.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/constants.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/constants.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/docs/openapi/ess/elastic_assistant_api_2023_10_31.bundled.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/ess/elastic_assistant_api_2023_10_31.bundled.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/docs/openapi/ess/elastic_assistant_api_2023_10_31.bundled.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/ess/elastic_assistant_api_2023_10_31.bundled.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/docs/openapi/serverless/elastic_assistant_api_2023_10_31.bundled.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/serverless/elastic_assistant_api_2023_10_31.bundled.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/docs/openapi/serverless/elastic_assistant_api_2023_10_31.bundled.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/serverless/elastic_assistant_api_2023_10_31.bundled.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/env/README.md b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/README.md similarity index 71% rename from x-pack/packages/kbn-elastic-assistant-common/env/README.md rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/README.md index b90d83aaca812..25d3cac906882 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/env/README.md +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/README.md @@ -3,17 +3,17 @@ With https://github.com/elastic/kibana/pull/186566, we've introduced a few sampl You can read more about `http` files [here](https://www.jetbrains.com/help/webstorm/http-client-in-product-code-editor.html) and for the spec see this repo [here](https://github.com/JetBrains/http-request-in-editor-spec/blob/master/spec.md). If we find these useful, we could add support to our [OpenAPI Generator](https://openapi-generator.tech/docs/generators/jetbrains-http-client) to create these automatically. They currently live co-located next to the OAS and generated schema files here: ``` -x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http -x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http +x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http +x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http ``` and the main config here in this directory: ``` -x-pack/packages/kbn-elastic-assistant-common/env/http-client.env.json +x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/http-client.env.json ``` -The `x-pack/packages/kbn-elastic-assistant-common/.gitignore` has been updated to ignore `http-client.private.env.json` files locally, which is how you can override the config as you'd like. This is helpful to add variables like `basePath` as below: +The `x-pack/platform/packages/shared/kbn-elastic-assistant-common/.gitignore` has been updated to ignore `http-client.private.env.json` files locally, which is how you can override the config as you'd like. This is helpful to add variables like `basePath` as below: ``` { diff --git a/x-pack/packages/kbn-elastic-assistant-common/env/http-client.env.json b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/http-client.env.json similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/env/http-client.env.json rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/http-client.env.json diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/get_open_and_acknowledged_alerts_query/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/get_raw_data_or_default/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/is_raw_data_valid/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/size_is_out_of_range/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/alerts/helpers/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/alerts/helpers/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/README.md b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/README.md similarity index 94% rename from x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/README.md rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/README.md index 5a471245e0449..da6991d422089 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/README.md +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/README.md @@ -16,7 +16,7 @@ plugins.elasticAssistant.registerFeatures(APP_UI_ID, { ``` ### Declaring Feature Capabilities -Default feature capabilities are declared in `x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/index.ts`: +Default feature capabilities are declared in `x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/index.ts`: ```ts export type AssistantFeatures = { [K in keyof typeof defaultAssistantFeatures]: boolean }; diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_data/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_value/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_anonymized_values/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/get_csv_from_data/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/helpers/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/transform_raw_data/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/data_anonymization/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/data_anonymization/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/mock/get_anonymized_value/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/mock/get_anonymized_value/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/mock/get_anonymized_value/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/mock/get_anonymized_value/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/actions_connector/post_actions_connector_execute_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/anonymization_fields/find_anonymization_fields_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/cancel_attack_discovery_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/common_attributes.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/get_attack_discovery_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/attack_discovery/post_attack_discovery_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/capabilities/get_capabilities_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/chat/post_chat_complete_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/common.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/common.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/common.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/common.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/common_attributes.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/common_attributes.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/common_attributes.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/common_attributes.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/common_attributes.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/common_attributes.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/common_attributes.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/common_attributes.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/append_message.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/bulk_crud_conversations_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/common_attributes.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/crud_conversation_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/conversations/find_conversations_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/common_attributes.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insight_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/get_defend_insights_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights/post_defend_insights_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/get_evaluate_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/evaluation/post_evaluate_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/crud_kb_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/common_attributes.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.http b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.http similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.http rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.http diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/find_knowledge_base_entries_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/get_knowledge_base_indices_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/bulk_crud_prompts_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.gen.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.gen.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.gen.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.gen.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.schema.yaml b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.schema.yaml similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.schema.yaml rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/prompts/find_prompts_route.schema.yaml diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/utils/bedrock.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/utils/bedrock.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/utils/bedrock.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/utils/bedrock.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/impl/utils/spaces_roles_users_data.http b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/utils/spaces_roles_users_data.http similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/impl/utils/spaces_roles_users_data.http rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/utils/spaces_roles_users_data.http diff --git a/x-pack/packages/kbn-elastic-assistant-common/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/index.ts diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js new file mode 100644 index 0000000000000..cda35c6b34674 --- /dev/null +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js @@ -0,0 +1,23 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/packages/kbn_elastic_assistant_common_impl', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/**/*.{ts,tsx}', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/*mock*.{ts,tsx}', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/*.test.{ts,tsx}', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/*.d.ts', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/*.config.ts', + ], + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/x-pack/platform/packages/shared/kbn-elastic-assistant-common'], +}; diff --git a/x-pack/packages/kbn-elastic-assistant-common/kibana.jsonc b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/kibana.jsonc similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/kibana.jsonc rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/kibana.jsonc diff --git a/x-pack/packages/kbn-elastic-assistant-common/package.json b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/package.json similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/package.json rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/package.json diff --git a/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/bundle.js b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/bundle.js similarity index 97% rename from x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/bundle.js rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/bundle.js index b06776be03a4b..1462a71785056 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/bundle.js +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/bundle.js @@ -5,7 +5,7 @@ * 2.0. */ -require('../../../../../src/setup_node_env'); +require('../../../../../../../src/setup_node_env'); const { bundle } = require('@kbn/openapi-bundler'); // eslint-disable-next-line import/no-nodejs-modules const { join, resolve } = require('path'); diff --git a/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/generate.js b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/generate.js similarity index 92% rename from x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/generate.js rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/generate.js index dd17ecef2fb31..a550523d6b060 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/generate.js +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/generate.js @@ -5,7 +5,7 @@ * 2.0. */ -require('../../../../../src/setup_node_env'); +require('../../../../../../../src/setup_node_env'); const { generate } = require('@kbn/openapi-generator'); // eslint-disable-next-line import/no-nodejs-modules const { resolve } = require('path'); diff --git a/x-pack/packages/kbn-elastic-assistant-common/setup_tests.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/setup_tests.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant-common/setup_tests.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/setup_tests.ts diff --git a/x-pack/packages/kbn-elastic-assistant-common/tsconfig.json b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/tsconfig.json similarity index 87% rename from x-pack/packages/kbn-elastic-assistant-common/tsconfig.json rename to x-pack/platform/packages/shared/kbn-elastic-assistant-common/tsconfig.json index b9f4da3d1f1dc..f002f81718b0d 100644 --- a/x-pack/packages/kbn-elastic-assistant-common/tsconfig.json +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant-common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/packages/kbn-elastic-assistant/README.md b/x-pack/platform/packages/shared/kbn-elastic-assistant/README.md similarity index 83% rename from x-pack/packages/kbn-elastic-assistant/README.md rename to x-pack/platform/packages/shared/kbn-elastic-assistant/README.md index 0d0a848e536c7..ec40f4ca5f5e3 100644 --- a/x-pack/packages/kbn-elastic-assistant/README.md +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/README.md @@ -16,5 +16,5 @@ Maintained by the Security Solution team To (interactively) run unit tests with code coverage, run the following command: ```sh -cd $KIBANA_HOME && node scripts/jest --watch x-pack/packages/kbn-elastic-assistant --coverage +cd $KIBANA_HOME && node scripts/jest --watch x-pack/platform/packages/shared/kbn-elastic-assistant --coverage ``` diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/bulk_update_anonymization_fields.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/anonymization_fields/use_fetch_anonymization_fields.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/__mocks__/use_capabilities.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/__mocks__/use_capabilities.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/__mocks__/use_capabilities.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/__mocks__/use_capabilities.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/capabilities.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/capabilities/use_capabilities.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/bulk_update_actions_conversations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/conversations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/conversations/use_fetch_current_user_conversations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/evaluate.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/use_evaluation_data.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/use_evaluation_data.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/use_evaluation_data.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/use_evaluation_data.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/evaluate/use_perform_evaluation.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/api.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_create_knowledge_base_entry.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_delete_knowledge_base_entries.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_knowledge_base_entries.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/entries/use_update_knowledge_base_entries.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_indices.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_knowledge_base_status.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/knowledge_base/use_setup_knowledge_base.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/bulk_update_prompts.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/api/prompts/use_fetch_prompts.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_animated_icon.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_avatar/assistant_avatar.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/empty_convo.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_body/welcome_setup.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/welcome_setup.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_body/welcome_setup.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_body/welcome_setup.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_header/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_header/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_header/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_header/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_header/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_header/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_header/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_header/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_header/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_header/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_header/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_header/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/flyout_navigation.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/flyout_navigation.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/flyout_navigation.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/flyout_navigation.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.tsx similarity index 98% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.tsx index b9457e5cfea68..c80145dcef5b9 100644 --- a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/index.tsx @@ -10,7 +10,7 @@ import { EuiFlyoutResizable } from '@elastic/eui'; import useEvent from 'react-use/lib/useEvent'; import { css } from '@emotion/react'; -// eslint-disable-next-line @kbn/eslint/module_migration + import { createGlobalStyle } from 'styled-components'; import { ShowAssistantOverlayProps, useAssistantContext } from '../../assistant_context'; import { Assistant, CONVERSATION_SIDE_PANEL_WIDTH } from '..'; diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_overlay/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_overlay/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_title/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_title/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/assistant_title/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_actions/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_actions/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_actions/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_actions/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_actions/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_actions/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_actions/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_actions/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/use_autosize_textarea.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/use_autosize_textarea.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/use_autosize_textarea.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/use_autosize_textarea.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/badges/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/badges/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/badges/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/badges/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/use_flyout_modal_visibility.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/use_flyout_modal_visibility.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/use_flyout_modal_visibility.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/flyout/use_flyout_modal_visibility.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/inline_actions/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/pagination/use_session_pagination.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/pagination/use_session_pagination.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/pagination/use_session_pagination.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/common/components/assistant_settings_management/pagination/use_session_pagination.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/constants.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/constants.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/constants.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/constants.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/context_pills/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/context_pills/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/context_pills/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/context_pills/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/context_pills/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/context_pills/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/context_pills/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/context_pills/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_selector_settings/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings_editor.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings_editor.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings_editor.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings_editor.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_streaming_switch.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_streaming_switch.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_streaming_switch.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_streaming_switch.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conveersation_changed.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conveersation_changed.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conveersation_changed.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conveersation_changed.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_changed.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_changed.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_changed.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_changed.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deleted.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deleted.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deleted.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deleted.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deletex.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deletex.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deletex.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/use_conversation_deletex.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings_management/use_conversations_table.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/conversations/conversation_sidepanel/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/get_anonymized_value/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/helpers.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/helpers.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/helpers.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/helpers.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/helpers.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/helpers.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/helpers.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/helpers.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt/helpers.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt/helpers.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt/helpers.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt/helpers.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt/helpers.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt/helpers.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt/helpers.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt/helpers.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_context/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_context/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_context/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_context/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/selected_prompt_contexts/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/helpers.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/select_system_prompt/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/conversation_multi_selector/conversation_multi_selector.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_editor.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_editor.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_editor.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_editor.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/use_system_prompt_editor.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/default_conversations_column.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/default_conversations_column.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/default_conversations_column.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/default_conversations_column.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/use_system_prompt_table.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_settings_management/utils.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_textarea/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_textarea/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_textarea/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_textarea/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_textarea/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_textarea/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_textarea/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/prompt_textarea/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/prompt_context_selector.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/prompt_context_selector/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/helpers.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/helpers.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/helpers.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/helpers.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_editor.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_editor.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_editor.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_editor.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/use_quick_prompt_editor.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings_management/use_quick_prompt_table.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompts.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/quick_prompts/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_management.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_management.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_management.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_management.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_modal.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_modal.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_modal.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/alerts_settings/alerts_settings_modal.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx similarity index 99% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx index cb78e98f205f2..04c5818118728 100644 --- a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx @@ -16,7 +16,6 @@ import { EuiSplitPanel, } from '@elastic/eui'; -// eslint-disable-next-line @kbn/eslint/module_migration import styled from 'styled-components'; import { css } from '@emotion/react'; import { PromptResponse } from '@kbn/elastic-assistant-common'; diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_bottom_bar.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_bottom_bar.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_bottom_bar.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_bottom_bar.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_modal.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/const.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/const.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/const.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/const.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/evaluation_settings.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/evaluation_settings.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/evaluation_settings.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/evaluation_settings.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/evaluation_settings/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/settings_context_menu/settings_context_menu.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/settings_context_menu/settings_context_menu.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/settings_context_menu/settings_context_menu.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/settings_context_menu/settings_context_menu.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/streaming_text/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/streaming_text/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/streaming_text/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/streaming_text/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/streaming_text/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/streaming_text/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/streaming_text/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/streaming_text/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/upgrade_license_cta/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_assistant_overlay/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/helpers.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/sample_conversations.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/sample_conversations.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/sample_conversations.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/sample_conversations.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_conversation/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_conversation/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_current_conversation/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_data_stream_apis.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_data_stream_apis.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_data_stream_apis.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_data_stream_apis.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/helpers.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant/use_send_message/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant/use_send_message/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant_context/constants.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/constants.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant_context/constants.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/constants.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant_context/helpers.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/helpers.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant_context/helpers.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/helpers.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant_context/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant_context/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant_context/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant_context/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/assistant_context/types.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/types.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/assistant_context/types.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/assistant_context/types.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/add_connector_modal/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/add_connector_modal/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/add_connector_modal/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/add_connector_modal/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_button/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_button/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_button/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_button/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_missing_callout/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/attack_discovery_status_indicator.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/action_type_selector_modal.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_selector_inline/connector_selector_inline.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_settings_management/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_settings_management/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_settings_management/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_settings_management/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_settings_management/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_settings_management/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_settings_management/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_settings_management/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_setup/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_setup/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_setup/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/connector_setup/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/connector_setup/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/helpers.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/helpers.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/helpers.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/helpers.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/models/model_selector/model_selector.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/models/model_selector/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/models/model_selector/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/models/model_selector/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/models/model_selector/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_action_types/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/connectorland/use_load_connectors/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/get_new_selected_prompt_context/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/use_anonymization_list_update.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/use_anonymization_list_update.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/use_anonymization_list_update.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings/use_anonymization_list_update.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings_management/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings_management/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings_management/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization/settings/anonymization_settings_management/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/bulk_actions/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.tsx similarity index 98% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.tsx index cc08b0a68ab89..94ecaeedc42e8 100644 --- a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_columns/index.tsx @@ -7,7 +7,7 @@ import { EuiBasicTableColumn, EuiButtonEmpty, EuiCode, EuiSwitch, EuiText } from '@elastic/eui'; import React from 'react'; -// eslint-disable-next-line @kbn/eslint/module_migration + import styled from 'styled-components'; import { BulkActions } from '../bulk_actions'; diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_context_menu_panels/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/get_rows/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/toolbar/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/types.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/types.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/types.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor/types.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_flyout/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_flyout/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_flyout/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_flyout/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_modal/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_modal/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_modal/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_editor_modal/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_preview.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_preview.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/context_preview.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/context_preview.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/get_stats/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/helpers/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/read_only_context_viewer/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/read_only_context_viewer/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/read_only_context_viewer/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/read_only_context_viewer/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/replacements_context_viewer/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/replacements_context_viewer/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/replacements_context_viewer/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/replacements_context_viewer/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/allowed_stat/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.test.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.test.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.test.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.test.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/helpers.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/anonymized_stat/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/available_stat/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/constants.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/constants.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/constants.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/constants.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/alerts_range.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/alerts_range.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/alerts_range.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/alerts_range.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/alerts_range.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/alerts_range.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/alerts_range.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/alerts_range.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/add_entry_button.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/add_entry_button.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/add_entry_button.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/add_entry_button.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/document_entry_editor.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/document_entry_editor.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/document_entry_editor.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/document_entry_editor.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/helpers.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/helpers.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/helpers.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/helpers.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/index_entry_editor.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/use_knowledge_base_table.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/use_knowledge_base_table.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/use_knowledge_base_table.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/knowledge_base_settings_management/use_knowledge_base_table.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/setup_knowledge_base_button.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/setup_knowledge_base_button.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/setup_knowledge_base_button.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/setup_knowledge_base_button.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/knowledge_base/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/knowledge_base/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/mock/connectors.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/connectors.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/mock/connectors.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/connectors.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/mock/conversation.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/conversation.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/mock/conversation.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/conversation.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/mock/get_anonymized_value/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/get_anonymized_value/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/mock/get_anonymized_value/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/get_anonymized_value/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/mock/prompt_context/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/prompt_context/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/mock/prompt_context/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/prompt_context/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/mock/quick_prompt.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/quick_prompt.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/mock/quick_prompt.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/quick_prompt.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/mock/system_prompt/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/system_prompt/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/mock/system_prompt/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/system_prompt/index.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/new_chat/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/new_chat/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/new_chat/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/new_chat/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/new_chat/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/new_chat/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/new_chat_by_title/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat_by_title/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/new_chat_by_title/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat_by_title/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/new_chat_by_title/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat_by_title/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/new_chat_by_title/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat_by_title/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/new_chat_by_title/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat_by_title/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/new_chat_by_title/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/new_chat_by_title/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/const.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/const.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/const.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/const.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/index.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/index.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/index.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/index.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/index.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/index.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/index.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/overview.gif b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/overview.gif similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/overview.gif rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/overview.gif diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/step_config.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/step_config.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/step_config.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/step_config.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.test.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.test.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.test.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.test.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/tour/knowledge_base/video_toast.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/impl/upgrade/translations.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/upgrade/translations.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/upgrade/translations.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/upgrade/translations.ts diff --git a/x-pack/packages/kbn-elastic-assistant/impl/upgrade/upgrade_buttons.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/upgrade/upgrade_buttons.tsx similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/impl/upgrade/upgrade_buttons.tsx rename to x-pack/platform/packages/shared/kbn-elastic-assistant/impl/upgrade/upgrade_buttons.tsx diff --git a/x-pack/packages/kbn-elastic-assistant/index.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/index.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/index.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/index.ts diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js b/x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js new file mode 100644 index 0000000000000..a073b71c8f750 --- /dev/null +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js @@ -0,0 +1,23 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/packages/kbn_elastic_assistant_impl', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/**/*.{ts,tsx}', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/*mock*.{ts,tsx}', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/*.test.{ts,tsx}', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/*.d.ts', + '!/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/*.config.ts', + ], + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/x-pack/platform/packages/shared/kbn-elastic-assistant'], +}; diff --git a/x-pack/packages/kbn-elastic-assistant/kibana.jsonc b/x-pack/platform/packages/shared/kbn-elastic-assistant/kibana.jsonc similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/kibana.jsonc rename to x-pack/platform/packages/shared/kbn-elastic-assistant/kibana.jsonc diff --git a/x-pack/packages/kbn-elastic-assistant/package.json b/x-pack/platform/packages/shared/kbn-elastic-assistant/package.json similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/package.json rename to x-pack/platform/packages/shared/kbn-elastic-assistant/package.json diff --git a/x-pack/packages/kbn-elastic-assistant/setup_tests.ts b/x-pack/platform/packages/shared/kbn-elastic-assistant/setup_tests.ts similarity index 100% rename from x-pack/packages/kbn-elastic-assistant/setup_tests.ts rename to x-pack/platform/packages/shared/kbn-elastic-assistant/setup_tests.ts diff --git a/x-pack/packages/kbn-elastic-assistant/tsconfig.json b/x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json similarity index 93% rename from x-pack/packages/kbn-elastic-assistant/tsconfig.json rename to x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json index 15009c7f702a5..15ea078143a81 100644 --- a/x-pack/packages/kbn-elastic-assistant/tsconfig.json +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/packages/kbn-langchain/README.md b/x-pack/platform/packages/shared/kbn-langchain/README.md similarity index 100% rename from x-pack/packages/kbn-langchain/README.md rename to x-pack/platform/packages/shared/kbn-langchain/README.md diff --git a/x-pack/platform/packages/shared/kbn-langchain/jest.config.js b/x-pack/platform/packages/shared/kbn-langchain/jest.config.js new file mode 100644 index 0000000000000..6ba981c7b745d --- /dev/null +++ b/x-pack/platform/packages/shared/kbn-langchain/jest.config.js @@ -0,0 +1,22 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + coverageDirectory: '/target/kibana-coverage/jest/x-pack/packages/kbn_langchain', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/packages/shared/kbn-langchain/server/**/*.{ts}', + '!/x-pack/platform/packages/shared/kbn-langchain/server/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*', + '!/x-pack/platform/packages/shared/kbn-langchain/server/*mock*.{ts}', + '!/x-pack/platform/packages/shared/kbn-langchain/server/*.test.{ts}', + '!/x-pack/platform/packages/shared/kbn-langchain/server/*.d.ts', + '!/x-pack/platform/packages/shared/kbn-langchain/server/*.config.ts', + ], + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/x-pack/platform/packages/shared/kbn-langchain'], +}; diff --git a/x-pack/packages/kbn-langchain/kibana.jsonc b/x-pack/platform/packages/shared/kbn-langchain/kibana.jsonc similarity index 100% rename from x-pack/packages/kbn-langchain/kibana.jsonc rename to x-pack/platform/packages/shared/kbn-langchain/kibana.jsonc diff --git a/x-pack/packages/kbn-langchain/package.json b/x-pack/platform/packages/shared/kbn-langchain/package.json similarity index 100% rename from x-pack/packages/kbn-langchain/package.json rename to x-pack/platform/packages/shared/kbn-langchain/package.json diff --git a/x-pack/packages/kbn-langchain/server/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/index.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/bedrock_chat.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/bedrock_chat.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/bedrock_chat.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/bedrock_chat.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_bedrock_converse/bedrock_runtime_client.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_bedrock_converse/bedrock_runtime_client.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_bedrock_converse/bedrock_runtime_client.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_bedrock_converse/bedrock_runtime_client.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_bedrock_converse/chat_bedrock_converse.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_bedrock_converse/chat_bedrock_converse.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_bedrock_converse/chat_bedrock_converse.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_bedrock_converse/chat_bedrock_converse.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_bedrock_converse/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_bedrock_converse/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_bedrock_converse/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_bedrock_converse/index.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_openai.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_openai.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_openai.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_openai.test.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_openai.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_openai.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_openai.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_openai.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_vertex/chat_vertex.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/chat_vertex.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_vertex/chat_vertex.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/chat_vertex.test.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_vertex/chat_vertex.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/chat_vertex.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_vertex/chat_vertex.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/chat_vertex.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_vertex/connection.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/connection.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_vertex/connection.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/connection.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/chat_vertex/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/chat_vertex/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/chat_vertex/index.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/constants.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/constants.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/constants.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/constants.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/gemini_chat.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/gemini_chat.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/gemini_chat.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/gemini_chat.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/helpers.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/helpers.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/helpers.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/helpers.test.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/helpers.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/helpers.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/helpers.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/helpers.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/index.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/llm.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/llm.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/llm.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/llm.test.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/llm.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/llm.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/llm.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/llm.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/mocks/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/mocks/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/mocks/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/mocks/index.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/simple_chat_model.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/simple_chat_model.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/simple_chat_model.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/simple_chat_model.test.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/simple_chat_model.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/simple_chat_model.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/simple_chat_model.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/simple_chat_model.ts diff --git a/x-pack/packages/kbn-langchain/server/language_models/types.ts b/x-pack/platform/packages/shared/kbn-langchain/server/language_models/types.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/language_models/types.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/language_models/types.ts diff --git a/x-pack/packages/kbn-langchain/server/tracers/README.mdx b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/README.mdx similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/README.mdx rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/README.mdx diff --git a/x-pack/packages/kbn-langchain/server/tracers/apm/apm_tracer.ts b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/apm/apm_tracer.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/apm/apm_tracer.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/apm/apm_tracer.ts diff --git a/x-pack/packages/kbn-langchain/server/tracers/apm/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/apm/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/apm/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/apm/index.ts diff --git a/x-pack/packages/kbn-langchain/server/tracers/langsmith/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/langsmith/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/langsmith/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/langsmith/index.ts diff --git a/x-pack/packages/kbn-langchain/server/tracers/langsmith/langsmith_tracer.ts b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/langsmith/langsmith_tracer.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/langsmith/langsmith_tracer.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/langsmith/langsmith_tracer.ts diff --git a/x-pack/packages/kbn-langchain/server/tracers/telemetry/index.ts b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/telemetry/index.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/telemetry/index.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/telemetry/index.ts diff --git a/x-pack/packages/kbn-langchain/server/tracers/telemetry/telemetry_tracer.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/telemetry/telemetry_tracer.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/telemetry/telemetry_tracer.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/telemetry/telemetry_tracer.test.ts diff --git a/x-pack/packages/kbn-langchain/server/tracers/telemetry/telemetry_tracer.ts b/x-pack/platform/packages/shared/kbn-langchain/server/tracers/telemetry/telemetry_tracer.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/tracers/telemetry/telemetry_tracer.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/tracers/telemetry/telemetry_tracer.ts diff --git a/x-pack/packages/kbn-langchain/server/utils/bedrock.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/utils/bedrock.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/utils/bedrock.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/utils/bedrock.test.ts diff --git a/x-pack/packages/kbn-langchain/server/utils/bedrock.ts b/x-pack/platform/packages/shared/kbn-langchain/server/utils/bedrock.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/utils/bedrock.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/utils/bedrock.ts diff --git a/x-pack/packages/kbn-langchain/server/utils/gemini.test.ts b/x-pack/platform/packages/shared/kbn-langchain/server/utils/gemini.test.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/utils/gemini.test.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/utils/gemini.test.ts diff --git a/x-pack/packages/kbn-langchain/server/utils/gemini.ts b/x-pack/platform/packages/shared/kbn-langchain/server/utils/gemini.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/utils/gemini.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/utils/gemini.ts diff --git a/x-pack/packages/kbn-langchain/server/utils/types.ts b/x-pack/platform/packages/shared/kbn-langchain/server/utils/types.ts similarity index 100% rename from x-pack/packages/kbn-langchain/server/utils/types.ts rename to x-pack/platform/packages/shared/kbn-langchain/server/utils/types.ts diff --git a/x-pack/packages/kbn-langchain/tsconfig.json b/x-pack/platform/packages/shared/kbn-langchain/tsconfig.json similarity index 87% rename from x-pack/packages/kbn-langchain/tsconfig.json rename to x-pack/platform/packages/shared/kbn-langchain/tsconfig.json index e775b1a4ad50d..a3ee2491f36d8 100644 --- a/x-pack/packages/kbn-langchain/tsconfig.json +++ b/x-pack/platform/packages/shared/kbn-langchain/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/plugins/security_solution/docs/openapi/README.md b/x-pack/plugins/security_solution/docs/openapi/README.md index 1d42cd4075e05..4031201348bfa 100644 --- a/x-pack/plugins/security_solution/docs/openapi/README.md +++ b/x-pack/plugins/security_solution/docs/openapi/README.md @@ -22,8 +22,8 @@ Security Solution has multiple API domains scattered across Kibana. Currently th - Security AI Assistant - - Bundling script: `x-pack/packages/kbn-elastic-assistant-common/scripts/openapi/bundle.js` - - Bundles location: `x-pack/packages/kbn-elastic-assistant-common/docs/openapi/{ess|serverless}` + - Bundling script: `x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/bundle.js` + - Bundles location: `x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/{ess|serverless}` - Security Detections diff --git a/x-pack/plugins/elastic_assistant/README.md b/x-pack/solutions/security/plugins/elastic_assistant/README.md similarity index 73% rename from x-pack/plugins/elastic_assistant/README.md rename to x-pack/solutions/security/plugins/elastic_assistant/README.md index 8cf2c0b8903dd..bb5d441cdaa18 100755 --- a/x-pack/plugins/elastic_assistant/README.md +++ b/x-pack/solutions/security/plugins/elastic_assistant/README.md @@ -2,7 +2,7 @@ This plugin implements (only) server APIs for the `Elastic AI Assistant`. -This plugin does NOT contain UI components. See `x-pack/packages/kbn-elastic-assistant` for React components. +This plugin does NOT contain UI components. See `x-pack/platform/packages/shared/kbn-elastic-assistant` for React components. ## Maintainers @@ -27,4 +27,4 @@ The graphs will be generated in the `docs/img` directory of the plugin. ### Testing -To run the tests for this plugin, run `node scripts/jest --watch x-pack/plugins/elastic_assistant/jest.config.js --coverage` from the Kibana root directory. +To run the tests for this plugin, run `node scripts/jest --watch x-pack/solutions/security/plugins/elastic_assistant/jest.config.js --coverage` from the Kibana root directory. diff --git a/x-pack/plugins/elastic_assistant/common/anonymization/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/common/anonymization/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/common/anonymization/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/common/anonymization/index.ts diff --git a/x-pack/plugins/elastic_assistant/common/constants.ts b/x-pack/solutions/security/plugins/elastic_assistant/common/constants.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/common/constants.ts rename to x-pack/solutions/security/plugins/elastic_assistant/common/constants.ts diff --git a/x-pack/plugins/elastic_assistant/docs/img/default_assistant_graph.png b/x-pack/solutions/security/plugins/elastic_assistant/docs/img/default_assistant_graph.png similarity index 100% rename from x-pack/plugins/elastic_assistant/docs/img/default_assistant_graph.png rename to x-pack/solutions/security/plugins/elastic_assistant/docs/img/default_assistant_graph.png diff --git a/x-pack/plugins/elastic_assistant/docs/img/default_attack_discovery_graph.png b/x-pack/solutions/security/plugins/elastic_assistant/docs/img/default_attack_discovery_graph.png similarity index 100% rename from x-pack/plugins/elastic_assistant/docs/img/default_attack_discovery_graph.png rename to x-pack/solutions/security/plugins/elastic_assistant/docs/img/default_attack_discovery_graph.png diff --git a/x-pack/plugins/elastic_assistant/jest.config.js b/x-pack/solutions/security/plugins/elastic_assistant/jest.config.js similarity index 53% rename from x-pack/plugins/elastic_assistant/jest.config.js rename to x-pack/solutions/security/plugins/elastic_assistant/jest.config.js index 7bbeb3b1c89d2..88be4c9828e98 100644 --- a/x-pack/plugins/elastic_assistant/jest.config.js +++ b/x-pack/solutions/security/plugins/elastic_assistant/jest.config.js @@ -7,11 +7,12 @@ module.exports = { collectCoverageFrom: [ - '/x-pack/plugins/elastic_assistant/{common,lib,server}/**/*.{ts,tsx}', + '/x-pack/solutions/security/plugins/elastic_assistant/{common,lib,server}/**/*.{ts,tsx}', ], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/elastic_assistant', + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/solutions/security/plugins/elastic_assistant', coverageReporters: ['text', 'html'], - rootDir: '../../..', - roots: ['/x-pack/plugins/elastic_assistant'], + rootDir: '../../../../..', + roots: ['/x-pack/solutions/security/plugins/elastic_assistant'], preset: '@kbn/test', }; diff --git a/x-pack/plugins/elastic_assistant/kibana.jsonc b/x-pack/solutions/security/plugins/elastic_assistant/kibana.jsonc similarity index 100% rename from x-pack/plugins/elastic_assistant/kibana.jsonc rename to x-pack/solutions/security/plugins/elastic_assistant/kibana.jsonc diff --git a/x-pack/plugins/elastic_assistant/package.json b/x-pack/solutions/security/plugins/elastic_assistant/package.json similarity index 100% rename from x-pack/plugins/elastic_assistant/package.json rename to x-pack/solutions/security/plugins/elastic_assistant/package.json diff --git a/x-pack/plugins/elastic_assistant/scripts/create_conversations.js b/x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations.js similarity index 86% rename from x-pack/plugins/elastic_assistant/scripts/create_conversations.js rename to x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations.js index b08f1419af0c9..a770c63561fd3 100644 --- a/x-pack/plugins/elastic_assistant/scripts/create_conversations.js +++ b/x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations.js @@ -5,5 +5,5 @@ * 2.0. */ -require('../../../../src/setup_node_env'); +require('../../../../../../src/setup_node_env'); require('./create_conversations_script').create(); diff --git a/x-pack/plugins/elastic_assistant/scripts/create_conversations_script.ts b/x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations_script.ts similarity index 98% rename from x-pack/plugins/elastic_assistant/scripts/create_conversations_script.ts rename to x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations_script.ts index 2fd388e299f6f..cae2e4d6185b4 100644 --- a/x-pack/plugins/elastic_assistant/scripts/create_conversations_script.ts +++ b/x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations_script.ts @@ -19,7 +19,7 @@ import { getCreateConversationSchemaMock } from '../server/__mocks__/conversatio /** * Developer script for creating conversations. - * node x-pack/plugins/elastic_assistant/scripts/create_conversations + * node x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations */ export const create = async () => { const logger = new ToolingLog({ diff --git a/x-pack/plugins/elastic_assistant/scripts/draw_graph.js b/x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph.js similarity index 85% rename from x-pack/plugins/elastic_assistant/scripts/draw_graph.js rename to x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph.js index dd920c79c32ec..a1c5fc312a4f4 100644 --- a/x-pack/plugins/elastic_assistant/scripts/draw_graph.js +++ b/x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph.js @@ -5,5 +5,5 @@ * 2.0. */ -require('../../../../src/setup_node_env'); +require('../../../../../../src/setup_node_env'); require('./draw_graph_script').draw(); diff --git a/x-pack/plugins/elastic_assistant/scripts/draw_graph_script.ts b/x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph_script.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/scripts/draw_graph_script.ts rename to x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph_script.ts diff --git a/x-pack/plugins/elastic_assistant/scripts/model_evaluator.js b/x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator.js similarity index 86% rename from x-pack/plugins/elastic_assistant/scripts/model_evaluator.js rename to x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator.js index a7b46e00d6f2d..5cfc2909ac15d 100644 --- a/x-pack/plugins/elastic_assistant/scripts/model_evaluator.js +++ b/x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator.js @@ -5,5 +5,5 @@ * 2.0. */ -require('../../../../src/setup_node_env'); +require('../../../../../../src/setup_node_env'); require('./model_evaluator_script').evaluateModels(); diff --git a/x-pack/plugins/elastic_assistant/scripts/model_evaluator_script.ts b/x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator_script.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/scripts/model_evaluator_script.ts rename to x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator_script.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/action_result_data.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/action_result_data.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/action_result_data.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/action_result_data.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/alerts.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/alerts.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/alerts.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/alerts.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/anonymization_fields_schema.mock.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/anonymization_fields_schema.mock.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/anonymization_fields_schema.mock.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/anonymization_fields_schema.mock.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/attack_discovery_schema.mock.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/attack_discovery_schema.mock.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/attack_discovery_schema.mock.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/attack_discovery_schema.mock.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/conversations_schema.mock.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/conversations_schema.mock.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/conversations_schema.mock.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/conversations_schema.mock.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/data_clients.mock.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/data_clients.mock.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/data_clients.mock.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/data_clients.mock.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts similarity index 83% rename from x-pack/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts index e8cdf4b20dbde..5120b308cae19 100644 --- a/x-pack/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts +++ b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts @@ -16,7 +16,7 @@ export const mockExampleQueryDocsFromDirectoryLoader: Document[] = [ '[[esql-example-queries]]\n\nThe following is an example an ES|QL query:\n\n```\nFROM logs-*\n| WHERE NOT CIDR_MATCH(destination.ip, "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16")\n| STATS destcount = COUNT(destination.ip) by user.name, host.name\n| ENRICH ldap_lookup_new ON user.name\n| WHERE group.name IS NOT NULL\n| EVAL follow_up = CASE(\n destcount >= 100, "true",\n "false")\n| SORT destcount desc\n| KEEP destcount, host.name, user.name, group.name, follow_up\n```\n', metadata: { source: - '/Users/andrew.goldstein/Projects/forks/andrew-goldstein/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0001.asciidoc', + '/Users/andrew.goldstein/Projects/forks/andrew-goldstein/kibana/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0001.asciidoc', }, }, { @@ -24,7 +24,7 @@ export const mockExampleQueryDocsFromDirectoryLoader: Document[] = [ '[[esql-example-queries]]\n\nThe following is an example an ES|QL query:\n\n```\nfrom logs-*\n| grok dns.question.name "%{DATA}\\\\.%{GREEDYDATA:dns.question.registered_domain:string}"\n| stats unique_queries = count_distinct(dns.question.name) by dns.question.registered_domain, process.name\n| where unique_queries > 5\n| sort unique_queries desc\n```\n', metadata: { source: - '/Users/andrew.goldstein/Projects/forks/andrew-goldstein/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0002.asciidoc', + '/Users/andrew.goldstein/Projects/forks/andrew-goldstein/kibana/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0002.asciidoc', }, }, { @@ -32,7 +32,7 @@ export const mockExampleQueryDocsFromDirectoryLoader: Document[] = [ '[[esql-example-queries]]\n\nThe following is an example an ES|QL query:\n\n```\nfrom logs-*\n| where event.code is not null\n| stats event_code_count = count(event.code) by event.code,host.name\n| enrich win_events on event.code with EVENT_DESCRIPTION\n| where EVENT_DESCRIPTION is not null and host.name is not null\n| rename EVENT_DESCRIPTION as event.description\n| sort event_code_count desc\n| keep event_code_count,event.code,host.name,event.description\n```\n', metadata: { source: - '/Users/andrew.goldstein/Projects/forks/andrew-goldstein/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0003.asciidoc', + '/Users/andrew.goldstein/Projects/forks/andrew-goldstein/kibana/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0003.asciidoc', }, }, ]; diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/knowledge_base_entry_schema.mock.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/knowledge_base_entry_schema.mock.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/knowledge_base_entry_schema.mock.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/knowledge_base_entry_schema.mock.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/lang_chain_messages.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/lang_chain_messages.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/lang_chain_messages.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/lang_chain_messages.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/prompts_schema.mock.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/prompts_schema.mock.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/prompts_schema.mock.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/prompts_schema.mock.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/raw_attack_discoveries.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/raw_attack_discoveries.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/raw_attack_discoveries.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/raw_attack_discoveries.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/request.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/request.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/request.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/request.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/request_context.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/request_context.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/request_context.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/request_context.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/response.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/response.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/response.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/response.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/server.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/server.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/server.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/server.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/test_adapters.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/test_adapters.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/test_adapters.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/test_adapters.ts diff --git a/x-pack/plugins/elastic_assistant/server/__mocks__/user.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/user.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/__mocks__/user.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/user.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/field_maps_configuration.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/field_maps_configuration.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/field_maps_configuration.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/field_maps_configuration.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/helpers.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/helpers.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/helpers.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/helpers.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/types.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/types.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/types.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/anonymization_fields/types.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/append_conversation_messages.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/append_conversation_messages.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/append_conversation_messages.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/append_conversation_messages.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/create_conversation.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/delete_conversation.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/field_maps_configuration.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/field_maps_configuration.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/field_maps_configuration.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/field_maps_configuration.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/get_conversation.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/helpers.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/helpers.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/helpers.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/helpers.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/transforms.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/transforms.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/transforms.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/transforms.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/types.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/types.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/types.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/types.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/conversations/update_conversation.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/field_maps_configuration.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/field_maps_configuration.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/field_maps_configuration.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/field_maps_configuration.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/get_defend_insight.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/helpers.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/types.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/types.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/types.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights/types.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/find.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/find.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/find.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/find.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/find.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/find.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/find.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/find.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/audit_events.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/create_knowledge_base_entry.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/field_maps_configuration.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/field_maps_configuration.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/field_maps_configuration.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/field_maps_configuration.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/get_knowledge_base_entry.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.test.tsx b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.test.tsx similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.test.tsx rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.test.tsx diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/helpers.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/ingest_pipeline.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/ingest_pipeline.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/ingest_pipeline.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/ingest_pipeline.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/transforms.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/types.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/types.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/types.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/knowledge_base/types.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/field_maps_configuration.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/field_maps_configuration.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/field_maps_configuration.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/field_maps_configuration.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/helpers.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/helpers.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/helpers.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/helpers.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/types.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/types.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/types.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_data_clients/prompts/types.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/create_resource_installation_helper.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/helpers.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/helpers.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_service/helpers.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/helpers.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/helpers.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/helpers.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_service/helpers.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/helpers.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/ai_assistant_service/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/README.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/README.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/README.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/README.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0001.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0001.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0001.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0001.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0002.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0002.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0002.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0002.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0003.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0003.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0003.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0003.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0004.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0004.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0004.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0004.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0005.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0005.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0005.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0005.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0006.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0006.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0006.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0006.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0007.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0007.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0007.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0007.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0008.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0008.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0008.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0008.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0009.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0009.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0009.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0009.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0010.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0010.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0010.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0010.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0011.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0011.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0011.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0011.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0012.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0012.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0012.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0012.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0013.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0013.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0013.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0013.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0014.asciidoc b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0014.asciidoc similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0014.asciidoc rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/esql/example_queries/esql_example_query_0014.asciidoc diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_announcement.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_announcement.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_announcement.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_announcement.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_helping_security_leaders_navigate_todays_threat_landscape.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_helping_security_leaders_navigate_todays_threat_landscape.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_helping_security_leaders_navigate_todays_threat_landscape.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/2022_elastic_global_threat_report_helping_security_leaders_navigate_todays_threat_landscape.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/500ms_to_midnight.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/500ms_to_midnight.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/500ms_to_midnight.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/500ms_to_midnight.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/a_peek_behind_the_bpfdoor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/a_peek_behind_the_bpfdoor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/a_peek_behind_the_bpfdoor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/a_peek_behind_the_bpfdoor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/accelerating_elastic_detection_tradecraft_with_llms.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/accelerating_elastic_detection_tradecraft_with_llms.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/accelerating_elastic_detection_tradecraft_with_llms.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/accelerating_elastic_detection_tradecraft_with_llms.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/advanced_techniques_used_in_malaysian_focused_apt_campaign.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/advanced_techniques_used_in_malaysian_focused_apt_campaign.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/advanced_techniques_used_in_malaysian_focused_apt_campaign.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/advanced_techniques_used_in_malaysian_focused_apt_campaign.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/an_elastic_approach_to_large_scale_dynamic_malware_analysis.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/an_elastic_approach_to_large_scale_dynamic_malware_analysis.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/an_elastic_approach_to_large_scale_dynamic_malware_analysis.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/an_elastic_approach_to_large_scale_dynamic_malware_analysis.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/analysis_of_log4shell_cve_2021_45046.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/analysis_of_log4shell_cve_2021_45046.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/analysis_of_log4shell_cve_2021_45046.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/analysis_of_log4shell_cve_2021_45046.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/attack_chain_leads_to_xworm_and_agenttesla.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/attack_chain_leads_to_xworm_and_agenttesla.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/attack_chain_leads_to_xworm_and_agenttesla.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/attack_chain_leads_to_xworm_and_agenttesla.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/automating_security_protections_rapid_response_to_malware.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/automating_security_protections_rapid_response_to_malware.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/automating_security_protections_rapid_response_to_malware.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/automating_security_protections_rapid_response_to_malware.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/behind_the_scenes_global_threat_report.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/behind_the_scenes_global_threat_report.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/behind_the_scenes_global_threat_report.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/behind_the_scenes_global_threat_report.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/betting_on_bots.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/betting_on_bots.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/betting_on_bots.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/betting_on_bots.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/beyond_the_wail.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/beyond_the_wail.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/beyond_the_wail.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/beyond_the_wail.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bits_and_bytes_analyzing_bitsloth.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bits_and_bytes_analyzing_bitsloth.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bits_and_bytes_analyzing_bitsloth.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bits_and_bytes_analyzing_bitsloth.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_configuration_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_configuration_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_configuration_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_configuration_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_loader.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_loader.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_loader.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/blister_loader.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_configuration_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_configuration_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_configuration_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_configuration_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_scanner.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_scanner.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_scanner.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bpfdoor_scanner.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bughatch_malware_analysis.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bughatch_malware_analysis.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/bughatch_malware_analysis.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/bughatch_malware_analysis.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/callout_example.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/callout_example.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/callout_example.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/callout_example.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/click_click_boom_automating_protections_testing_with_detonate.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/click_click_boom_automating_protections_testing_with_detonate.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/click_click_boom_automating_protections_testing_with_detonate.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/click_click_boom_automating_protections_testing_with_detonate.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cloud_monitoring_and_detection_with_elastic_security.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cloud_monitoring_and_detection_with_elastic_security.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cloud_monitoring_and_detection_with_elastic_security.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cloud_monitoring_and_detection_with_elastic_security.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cobalt_strike_beacon_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cobalt_strike_beacon_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cobalt_strike_beacon_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cobalt_strike_beacon_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_and_operationalizing_threat_data_from_the_mozi_botnet.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_and_operationalizing_threat_data_from_the_mozi_botnet.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_and_operationalizing_threat_data_from_the_mozi_botnet.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_and_operationalizing_threat_data_from_the_mozi_botnet.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_cobalt_strike_beacons_with_the_elastic_stack.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_cobalt_strike_beacons_with_the_elastic_stack.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_cobalt_strike_beacons_with_the_elastic_stack.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/collecting_cobalt_strike_beacons_with_the_elastic_stack.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_campaign_analysis.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_campaign_analysis.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_campaign_analysis.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_campaign_analysis.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_malware_analysis.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_malware_analysis.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_malware_analysis.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cuba_ransomware_malware_analysis.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cups_overflow.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cups_overflow.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/cups_overflow.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/cups_overflow.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dac_beta_release.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dac_beta_release.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dac_beta_release.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dac_beta_release.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dancing_the_night_away_with_named_pipes.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dancing_the_night_away_with_named_pipes.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dancing_the_night_away_with_named_pipes.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dancing_the_night_away_with_named_pipes.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/deep_dive_into_the_ttd_ecosystem.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/deep_dive_into_the_ttd_ecosystem.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/deep_dive_into_the_ttd_ecosystem.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/deep_dive_into_the_ttd_ecosystem.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_credential_access.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_credential_access.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_credential_access.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_credential_access.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_domain_generation_algorithm_activity_with_new_kibana_integration.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_domain_generation_algorithm_activity_with_new_kibana_integration.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_domain_generation_algorithm_activity_with_new_kibana_integration.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detect_domain_generation_algorithm_activity_with_new_kibana_integration.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_and_responding_to_dirty_pipe_with_elastic.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_and_responding_to_dirty_pipe_with_elastic.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_and_responding_to_dirty_pipe_with_elastic.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_and_responding_to_dirty_pipe_with_elastic.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_living_off_the_land_attacks_with_new_elastic_integration.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_living_off_the_land_attacks_with_new_elastic_integration.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_living_off_the_land_attacks_with_new_elastic_integration.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_living_off_the_land_attacks_with_new_elastic_integration.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_log4j2_with_elastic_security.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_log4j2_with_elastic_security.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_log4j2_with_elastic_security.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detecting_log4j2_with_elastic_security.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_and_response_for_the_actively_exploited_proxyshell_vulnerabilities.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_and_response_for_the_actively_exploited_proxyshell_vulnerabilities.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_and_response_for_the_actively_exploited_proxyshell_vulnerabilities.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_and_response_for_the_actively_exploited_proxyshell_vulnerabilities.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_rules_for_sigred_vulnerability.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_rules_for_sigred_vulnerability.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_rules_for_sigred_vulnerability.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/detection_rules_for_sigred_vulnerability.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dipping_into_danger.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dipping_into_danger.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dipping_into_danger.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dipping_into_danger.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/disclosing_the_bloodalchemy_backdoor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/disclosing_the_bloodalchemy_backdoor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/disclosing_the_bloodalchemy_backdoor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/disclosing_the_bloodalchemy_backdoor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dismantling_smart_app_control.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dismantling_smart_app_control.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dismantling_smart_app_control.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dismantling_smart_app_control.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_four.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_four.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_four.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_four.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_one.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_one.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_one.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_one.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_three.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_three.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_three.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_three.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_two.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_two.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_two.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dissecting_remcos_rat_part_two.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/doing_time_with_the_yipphb_dropper.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/doing_time_with_the_yipphb_dropper.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/doing_time_with_the_yipphb_dropper.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/doing_time_with_the_yipphb_dropper.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/doubling_down_etw_callstacks.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/doubling_down_etw_callstacks.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/doubling_down_etw_callstacks.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/doubling_down_etw_callstacks.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_code_of_conduct.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_code_of_conduct.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_code_of_conduct.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_code_of_conduct.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_strikes_using_a_new_variant_of_rustbucket.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_strikes_using_a_new_variant_of_rustbucket.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_strikes_using_a_new_variant_of_rustbucket.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/dprk_strikes_using_a_new_variant_of_rustbucket.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/effective_parenting_detecting_lrpc_based_parent_pid_spoofing.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/effective_parenting_detecting_lrpc_based_parent_pid_spoofing.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/effective_parenting_detecting_lrpc_based_parent_pid_spoofing.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/effective_parenting_detecting_lrpc_based_parent_pid_spoofing.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_advances_llm_security.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_advances_llm_security.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_advances_llm_security.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_advances_llm_security.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_catches_dprk_passing_out_kandykorn.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_catches_dprk_passing_out_kandykorn.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_catches_dprk_passing_out_kandykorn.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_catches_dprk_passing_out_kandykorn.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_charms_spectralviper.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_charms_spectralviper.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_charms_spectralviper.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_charms_spectralviper.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_protects_against_data_wiper_malware_targeting_ukraine_hermeticwiper.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_protects_against_data_wiper_malware_targeting_ukraine_hermeticwiper.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_protects_against_data_wiper_malware_targeting_ukraine_hermeticwiper.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_protects_against_data_wiper_malware_targeting_ukraine_hermeticwiper.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2023_global_threat_report_spring_edition.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2023_global_threat_report_spring_edition.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2023_global_threat_report_spring_edition.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2023_global_threat_report_spring_edition.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2024_gtr.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2024_gtr.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2024_gtr.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_publishes_2024_gtr.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_releases_debmm.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_releases_debmm.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_releases_debmm.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_releases_debmm.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_response_to_the_the_spring4shell_vulnerability_cve_2022_22965.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_response_to_the_the_spring4shell_vulnerability_cve_2022_22965.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_response_to_the_the_spring4shell_vulnerability_cve_2022_22965.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_response_to_the_the_spring4shell_vulnerability_cve_2022_22965.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_discovers_lobshot_malware.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_discovers_lobshot_malware.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_discovers_lobshot_malware.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_discovers_lobshot_malware.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_releases_llm_safety_report.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_releases_llm_safety_report.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_releases_llm_safety_report.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_releases_llm_safety_report.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_steps_through_the_r77_rootkit.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_steps_through_the_r77_rootkit.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_steps_through_the_r77_rootkit.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_labs_steps_through_the_r77_rootkit.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_opens_public_detection_rules_repo.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_opens_public_detection_rules_repo.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_opens_public_detection_rules_repo.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_opens_public_detection_rules_repo.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_research_roundup.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_research_roundup.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_research_roundup.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_research_roundup.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_uncovers_blister_malware_campaign.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_uncovers_blister_malware_campaign.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_uncovers_blister_malware_campaign.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_security_uncovers_blister_malware_campaign.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_users_protected_from_suddenicon_supply_chain_attack.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_users_protected_from_suddenicon_supply_chain_attack.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_users_protected_from_suddenicon_supply_chain_attack.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastic_users_protected_from_suddenicon_supply_chain_attack.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastics_2022_global_threat_report_a_roadmap_for_navigating_todays_growing_threatscape.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastics_2022_global_threat_report_a_roadmap_for_navigating_todays_growing_threatscape.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elastics_2022_global_threat_report_a_roadmap_for_navigating_todays_growing_threatscape.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elastics_2022_global_threat_report_a_roadmap_for_navigating_todays_growing_threatscape.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elevate_your_threat_hunting.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elevate_your_threat_hunting.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/elevate_your_threat_hunting.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/elevate_your_threat_hunting.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md similarity index 96% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md index f211ccf4f21ae..2a5c78a686f81 100644 --- a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md +++ b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md @@ -22,16 +22,16 @@ We recently concluded one of our quarterly Elastic OnWeek events, which provides Elastic provides the ability to audit LLM applications for malicious behaviors; we’ll show you one approach with just four steps: - 1. Intercepting and analyzing the LLM requests and responses + 1. Intercepting and analyzing the LLM requests and responses 2. Enriching data with LLM-specific analysis results 3. Sending data to Elastic Security - 4. Writing ES|QL detection rules that can later be used to respond + 4. Writing ES|QL detection rules that can later be used to respond -This approach reflects our ongoing efforts to explore and implement advanced detection strategies, including developing detection rules tailored specifically for LLMs, while keeping pace with emerging generative AI technologies and security challenges. Building on this foundation, last year marked a significant enhancement to our toolkit and overall capability to continue this proactive path forward. +This approach reflects our ongoing efforts to explore and implement advanced detection strategies, including developing detection rules tailored specifically for LLMs, while keeping pace with emerging generative AI technologies and security challenges. Building on this foundation, last year marked a significant enhancement to our toolkit and overall capability to continue this proactive path forward. Elastic [released](https://www.elastic.co/blog/introducing-elastic-ai-assistant) the AI Assistant for Security, introducing how the open generative AI sidekick is powered by the [Search AI Platform](https://www.elastic.co/platform) — a collection of relevant tools for developing advanced search applications. Backed by machine learning (ML) and artificial intelligence (AI), this AI Assistant provides powerful pre-built workflows like alert summarization, workflow suggestions, query conversions, and agent integration advice. I highly recommend you read more on Elastic’s [AI Assistant](https://www.elastic.co/elasticsearch/ai-assistant) about how the capabilities seamlessly span across Observability and Security. -We can use the AI Assistant’s capabilities as a third-party LLM application to capture, audit, and analyze requests and responses for convenience and to run experiments. Once data is in an index, writing behavioral detections on it becomes business as usual — we can also leverage the entire security detection engine. Even though we’re proxying the Elastic AI Assistant LLM activity in this experiment, it’s merely used as a vehicle to demonstrate auditing LLM-based applications. Furthermore, this proxy approach is intended for third-party applications to ship data to [Elastic Security](https://www.elastic.co/guide/en/security/current/es-overview.html). +We can use the AI Assistant’s capabilities as a third-party LLM application to capture, audit, and analyze requests and responses for convenience and to run experiments. Once data is in an index, writing behavioral detections on it becomes business as usual — we can also leverage the entire security detection engine. Even though we’re proxying the Elastic AI Assistant LLM activity in this experiment, it’s merely used as a vehicle to demonstrate auditing LLM-based applications. Furthermore, this proxy approach is intended for third-party applications to ship data to [Elastic Security](https://www.elastic.co/guide/en/security/current/es-overview.html). We can introduce security mechanisms into the application's lifecycle by intercepting LLM activity or leveraging observable LLM metrics. It’s common practice to address prompt-based threats by [implementing various safety tactics](https://platform.openai.com/docs/guides/safety-best-practices): @@ -46,18 +46,18 @@ We can introduce security mechanisms into the application's lifecycle by interce 9. **HITL Feedback for Model Training**: Learn from human-in-the-loop, flagged issues to refine the model over time 10. **Restrict API Access**: Limit model access based on specific needs and user verification -Two powerful features provided by OpenAI, and many other LLM implementers, is the ability to [submit end-user IDs](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids) and check content against a [moderation API](https://platform.openai.com/docs/guides/moderation), features that set the bar for LLM safety. Sending hashed IDs along with the original request aids in abuse detection and provides targeted feedback, allowing unique user identification without sending personal information. Alternatively, OpenAI's moderation endpoint helps developers identify potentially harmful content like hate speech, self-harm encouragement, or violence, allowing them to filter such content. It even goes a step further by detecting threats and intent to self-harm. +Two powerful features provided by OpenAI, and many other LLM implementers, is the ability to [submit end-user IDs](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids) and check content against a [moderation API](https://platform.openai.com/docs/guides/moderation), features that set the bar for LLM safety. Sending hashed IDs along with the original request aids in abuse detection and provides targeted feedback, allowing unique user identification without sending personal information. Alternatively, OpenAI's moderation endpoint helps developers identify potentially harmful content like hate speech, self-harm encouragement, or violence, allowing them to filter such content. It even goes a step further by detecting threats and intent to self-harm. -Despite all of the recommendations and best practices to protect against malicious prompts, we recognize that there is no single perfect solution. When using capabilities like OpenAI’s API, some of these threats may be detected by the content filter, which will respond with a usage policy violation notification: +Despite all of the recommendations and best practices to protect against malicious prompts, we recognize that there is no single perfect solution. When using capabilities like OpenAI’s API, some of these threats may be detected by the content filter, which will respond with a usage policy violation notification: ![Violation notification from OpenAI](/assets/images/embedding-security-in-llm-workflows/image5.png) -This content filtering is beneficial to address many issues; however, it cannot identify further threats in the broader context of the environment, application ecosystem, or other alerts that may appear. The more we can integrate generative AI use cases into our existing protection capabilities, the more control and possibilities we have to address potential threats. Furthermore, even if LLM safeguards are in place to stop rudimentary attacks, we can still use the detection engine to alert and take future remediation actions instead of silently blocking or permitting abuse. +This content filtering is beneficial to address many issues; however, it cannot identify further threats in the broader context of the environment, application ecosystem, or other alerts that may appear. The more we can integrate generative AI use cases into our existing protection capabilities, the more control and possibilities we have to address potential threats. Furthermore, even if LLM safeguards are in place to stop rudimentary attacks, we can still use the detection engine to alert and take future remediation actions instead of silently blocking or permitting abuse. ## Proxying LLM Requests and Setup -The optimal security solution integrates additional safeguards directly within the LLM application's ecosystem. This allows enriching alerts with the complete context surrounding requests and responses. As requests are sent to the LLM, we can intercept and analyze them for potential malicious activity. If necessary, a response action can be triggered to defer subsequent HTTP calls. Similarly, inspecting the LLM's response can uncover further signs of malicious behavior. +The optimal security solution integrates additional safeguards directly within the LLM application's ecosystem. This allows enriching alerts with the complete context surrounding requests and responses. As requests are sent to the LLM, we can intercept and analyze them for potential malicious activity. If necessary, a response action can be triggered to defer subsequent HTTP calls. Similarly, inspecting the LLM's response can uncover further signs of malicious behavior. Using a proxy to handle these interactions offers several advantages: @@ -123,7 +123,7 @@ def azure_openai_proxy(): }) ``` -With the Flask server, you can configure the [OpenAI Kibana Connector](https://www.elastic.co/guide/en/kibana/current/openai-action-type.html) to use your proxy. +With the Flask server, you can configure the [OpenAI Kibana Connector](https://www.elastic.co/guide/en/kibana/current/openai-action-type.html) to use your proxy. ![](/assets/images/embedding-security-in-llm-workflows/image10.png) @@ -148,7 +148,7 @@ The LangSmith Proxy is designed to simplify LLM API interaction. It's a sidecar **It’s important to understand that even though documented lists of protections do not accompany some LLMs, simply trying some of these prompts may be immediately denied or result in banning on whatever platform used to submit the prompt. We recommend experimenting with caution and understand the SLA prior to sending any malicious prompts. Since this exploration leverages OpenAI’s resources, we recommend following the bugcrowd [guidance](https://bugcrowd.com/openai) and sign up for an additional testing account using your @bugcrowdninja.com email address.** -Here is a list of several plausible examples to illustrate detection opportunities. Each LLM topic includes the OWASP description, an example prompt, a sample document, the detection opportunity, and potential actions users could take if integrating additional security mechanisms in their workflow. +Here is a list of several plausible examples to illustrate detection opportunities. Each LLM topic includes the OWASP description, an example prompt, a sample document, the detection opportunity, and potential actions users could take if integrating additional security mechanisms in their workflow. While this list is currently not extensive, Elastic Security Labs is currently undertaking a number of initiatives to ensure future development, and formalization of rules will continue. @@ -175,7 +175,7 @@ FROM azure-openai-logs | OR response.choices LIKE "*I'm sorry, but I can't assist*" ``` -A slightly more advanced query detects more than two similar attempts within the last day. +A slightly more advanced query detects more than two similar attempts within the last day. ``` sql FROM azure-openai-logs @@ -197,7 +197,7 @@ FROM azure-openai-logs **Sample Response**: ![](/assets/images/embedding-security-in-llm-workflows/image17.png) -With the additional analysis from OpenAI’s filtering, we can immediately detect the first occurrence of abuse. +With the additional analysis from OpenAI’s filtering, we can immediately detect the first occurrence of abuse. **Detection Rule Opportunity**: ``` sql @@ -241,7 +241,7 @@ This query detects suspicious behavior related to Molotov Cocktails across multi - **Session-Level Analysis**: By grouping events by connectorId, it analyzes the complete sequence of attempts within a session. It then calculates the total number of attempts (```attempts = count(*)```) and the highest sensitivity score (```max_sensitivity = max(analysis.llm_guard_response_scores.Sensitive)```) across all attempts in that session - **Flagging High-Risk Sessions**: It filters sessions with at least one attempt (```attempts >= 1```) and a maximum sensitivity score exceeding 0.5 (```max_sensitivity > 0.5```). This threshold helps focus on sessions where users persistently discussed or revealed potentially risky content. -By analyzing these factors across multiple events within a session, we can start building an approach to detect a pattern of escalating discussions, even if individual events might not be flagged alone. +By analyzing these factors across multiple events within a session, we can start building an approach to detect a pattern of escalating discussions, even if individual events might not be flagged alone. ### LLM02 - insecure output handling @@ -280,13 +280,13 @@ FROM azure-openai-logs | WHERE total_attempts >= 2 ``` -This pseudo query detects potential insecure output handling by identifying LLM responses containing scripting elements or cookie access attempts, which are common in Cross-Site Scripting (XSS) attacks. It is a shell that could be extended by allow or block lists for well-known keywords. +This pseudo query detects potential insecure output handling by identifying LLM responses containing scripting elements or cookie access attempts, which are common in Cross-Site Scripting (XSS) attacks. It is a shell that could be extended by allow or block lists for well-known keywords. ### LLM04 - model DoS **OWASP Description**: Overloading LLMs with resource-heavy operations can cause service disruptions and increased costs. Reference [here](https://github.com/OWASP/www-project-top-10-for-large-language-model-applications/blob/main/2_0_vulns/LLM04_ModelDoS.md). -**Example**: An adversary may send complex prompts that consume excessive computational resources. +**Example**: An adversary may send complex prompts that consume excessive computational resources. **Prompt**: ![](/assets/images/embedding-security-in-llm-workflows/image2.png) @@ -304,9 +304,9 @@ FROM azure-openai-logs | WHERE total_attempts >= 2 ``` -This detection illustrates another simple example of how the LLM response is used to identify potentially abusive behavior. Although this example may not represent a traditional security threat, it could emulate how adversaries can impose costs on victims, either consuming resources or tokens. +This detection illustrates another simple example of how the LLM response is used to identify potentially abusive behavior. Although this example may not represent a traditional security threat, it could emulate how adversaries can impose costs on victims, either consuming resources or tokens. -**Example 2**: An adversary may send complex prompts that consume excessive computational resources. +**Example 2**: An adversary may send complex prompts that consume excessive computational resources. **Prompt**: ![](/assets/images/embedding-security-in-llm-workflows/image16.png) @@ -314,7 +314,7 @@ This detection illustrates another simple example of how the LLM response is use **Sample Response**: ![](/assets/images/embedding-security-in-llm-workflows/image14.png) -At a glance, this prompt appears to be benign. However, excessive requests and verbose responses in a short time can significantly increase costs. +At a glance, this prompt appears to be benign. However, excessive requests and verbose responses in a short time can significantly increase costs. **Detection Rule Opportunity**: @@ -332,7 +332,7 @@ In the context of example 2, this working query efficiently tracks and analyzes **OWASP Description**: Failure to protect against disclosure of sensitive information in LLM outputs can result in legal consequences or a loss of competitive advantage. Reference [here](https://github.com/OWASP/www-project-top-10-for-large-language-model-applications/blob/main/2_0_vulns/LLM06_SensitiveInformationDisclosure.md). -**Example**: An adversary may craft prompts to extract sensitive information embedded in the training data. +**Example**: An adversary may craft prompts to extract sensitive information embedded in the training data. **Prompt**: ![](/assets/images/embedding-security-in-llm-workflows/image1.png) @@ -359,8 +359,8 @@ By routing LLM requests through a proxy, we can capitalize on specialized securi We don’t deep-dive on every tool available, but several open-source tools have emerged to offer varying approaches to analyzing and securing LLM interactions. Some of these tools are backed by machine learning models trained to detect malicious prompts: - - **Rebuff** ([GitHub](https://github.com/protectai/rebuff)): Utilizes machine learning to identify and mitigate attempts at social engineering, phishing, and other malicious activities through LLM interactions. Example usage involves passing request content through Rebuff's analysis engine and tagging requests with a "malicious" boolean field based on the findings. - - **LLM-Guard** ([GitHub](https://github.com/protectai/llm-guard)): Provides a rule-based engine for detecting harmful patterns in LLM requests. LLM-Guard can categorize detected threats based on predefined categories, enriching requests with detailed threat classifications. + - **Rebuff** ([GitHub](https://github.com/protectai/rebuff)): Utilizes machine learning to identify and mitigate attempts at social engineering, phishing, and other malicious activities through LLM interactions. Example usage involves passing request content through Rebuff's analysis engine and tagging requests with a "malicious" boolean field based on the findings. + - **LLM-Guard** ([GitHub](https://github.com/protectai/llm-guard)): Provides a rule-based engine for detecting harmful patterns in LLM requests. LLM-Guard can categorize detected threats based on predefined categories, enriching requests with detailed threat classifications. - **LangKit** ([GitHub](https://github.com/whylabs/langkit/tree/main)): A toolkit designed for monitoring and securing LLMs, LangKit can analyze request content for signs of adversarial inputs or unintended model behaviors. It offers hooks for integrating custom analysis functions. - **Vigil-LLM** ([GitHub](https://github.com/deadbits/vigil-llm)): Focuses on real-time monitoring and alerting for suspicious LLM requests. Integration into the proxy layer allows for immediate flagging potential security issues, enriching the request data with vigilance scores. - **Open-Prompt Injection** ([GitHub](https://github.com/liu00222/Open-Prompt-Injection)): Offers methodologies and tools for detecting prompt injection attacks, allowing for the enrichment of request data with specific indicators of compromise related to prompt injection techniques. @@ -463,9 +463,9 @@ In Part two of this series, we will discuss how we’ve taken a more formal appr ## Alternative Options for LLM Application Auditing -While using a proxy may be straightforward, other approaches may better suit a production setup; for example: +While using a proxy may be straightforward, other approaches may better suit a production setup; for example: - - Utilizing [application performance monitoring](https://www.elastic.co/observability/application-performance-monitoring) (APM) + - Utilizing [application performance monitoring](https://www.elastic.co/observability/application-performance-monitoring) (APM) - Using the OpenTelemetry integration - Modifying changes in Kibana directly to audit and trace LLM activity @@ -477,17 +477,17 @@ Elastic [APM](https://www.elastic.co/guide/en/observability/current/apm.html) pr ### Utilizing OpenTelemetry for Enhanced Observability -For applications already employing OpenTelemetry, leveraging its [integration](https://www.elastic.co/guide/en/observability/current/apm-open-telemetry.html) with Elastic APM can enhance observability without requiring extensive instrumentation changes. This integration supports capturing a wide array of telemetry data, including traces and metrics, which can be seamlessly sent to the Elastic Stack. This approach allows developers to continue using familiar libraries while benefiting from the robust monitoring capabilities of Elastic. OpenTelemetry’s compatibility across multiple programming languages and its [support through Elastic’s native protocol](https://www.elastic.co/guide/en/observability/current/apm-open-telemetry.html) (OTLP) facilitate straightforward data transmission, providing a robust foundation for monitoring distributed systems. Compared to the proxy example, this approach more natively ingests data than maintaining an independent index and logging mechanism to Elastic. +For applications already employing OpenTelemetry, leveraging its [integration](https://www.elastic.co/guide/en/observability/current/apm-open-telemetry.html) with Elastic APM can enhance observability without requiring extensive instrumentation changes. This integration supports capturing a wide array of telemetry data, including traces and metrics, which can be seamlessly sent to the Elastic Stack. This approach allows developers to continue using familiar libraries while benefiting from the robust monitoring capabilities of Elastic. OpenTelemetry’s compatibility across multiple programming languages and its [support through Elastic’s native protocol](https://www.elastic.co/guide/en/observability/current/apm-open-telemetry.html) (OTLP) facilitate straightforward data transmission, providing a robust foundation for monitoring distributed systems. Compared to the proxy example, this approach more natively ingests data than maintaining an independent index and logging mechanism to Elastic. ### LLM Auditing with Kibana -Like writing custom logic for your LLM application to audit and ship data, you can test the approach with Elastic’s AI Assistant. If you're comfortable with TypeScript, consider deploying a local Elastic instance using the Kibana [Getting Started Guide](https://www.elastic.co/guide/en/kibana/current/development-getting-started.html). Once set up, navigate to the [Elastic AI Assistant](https://github.com/elastic/kibana/tree/main/x-pack/plugins/elastic_assistant) and configure it to intercept LLM requests and responses for auditing and analysis. Note: This approach primarily tracks Elastic-specific LLM integration compared to using APM and other integrations or a proxy to track third-party applications. It should only be considered for experimentation and exploratory testing purposes. +Like writing custom logic for your LLM application to audit and ship data, you can test the approach with Elastic’s AI Assistant. If you're comfortable with TypeScript, consider deploying a local Elastic instance using the Kibana [Getting Started Guide](https://www.elastic.co/guide/en/kibana/current/development-getting-started.html). Once set up, navigate to the [Elastic AI Assistant](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/elastic_assistant) and configure it to intercept LLM requests and responses for auditing and analysis. Note: This approach primarily tracks Elastic-specific LLM integration compared to using APM and other integrations or a proxy to track third-party applications. It should only be considered for experimentation and exploratory testing purposes. -Fortunately, Kibana is already instrumented with APM, so if you configure an APM server, you will automatically start ingesting logs from this source (by setting ```elastic.apm.active: true```). See the [README](https://github.com/elastic/kibana/blob/main/x-pack/plugins/elastic_assistant/server/lib/langchain/tracers/README.mdx) for more details. +Fortunately, Kibana is already instrumented with APM, so if you configure an APM server, you will automatically start ingesting logs from this source (by setting ```elastic.apm.active: true```). See the [README](https://github.com/elastic/kibana/blob/main/x-pack/platform/packages/shared/kbn-langchain/server/tracers/README.mdx) for more details. ## Closing Thoughts -As we continue with this exploration into integrating security practices within the lifecycle of large language models at Elastic, it's clear that embedding security into LLM workflows can provide a path forward for creating safer and more reliable applications. These contrived examples, drawn from our work during OnWeek, illustrate how someone can proactively detect, alert, and triage malicious activity, leveraging the security solutions that analysts find most intuitive and effective. +As we continue with this exploration into integrating security practices within the lifecycle of large language models at Elastic, it's clear that embedding security into LLM workflows can provide a path forward for creating safer and more reliable applications. These contrived examples, drawn from our work during OnWeek, illustrate how someone can proactively detect, alert, and triage malicious activity, leveraging the security solutions that analysts find most intuitive and effective. It’s also worth noting that with the example proxy approach, we can incorporate a model to actively detect and prevent requests. Additionally, we can triage the LLM response before sending it back to the user if we’ve identified malicious threats. At this point, we have the flexibility to extend our security protections to cover a variety of defensive approaches. In this case, there is a fine line between security and performance, as each additional check will consume time and impede the natural conversational flow that users would expect. diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/embracing_offensive_tooling_building_detections_against_koadic_using_eql.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embracing_offensive_tooling_building_detections_against_koadic_using_eql.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/embracing_offensive_tooling_building_detections_against_koadic_using_eql.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embracing_offensive_tooling_building_detections_against_koadic_using_eql.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_configuration_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_configuration_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_configuration_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_configuration_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_dynamic_configuration_extraction.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_dynamic_configuration_extraction.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_dynamic_configuration_extraction.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/emotet_dynamic_configuration_extraction.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_applications_of_chatgpt_to_improve_detection_response_and_understanding.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_applications_of_chatgpt_to_improve_detection_response_and_understanding.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_applications_of_chatgpt_to_improve_detection_response_and_understanding.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_applications_of_chatgpt_to_improve_detection_response_and_understanding.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_aws_sts_assumeroot.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_aws_sts_assumeroot.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_aws_sts_assumeroot.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_aws_sts_assumeroot.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_qbot_attack_pattern.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_qbot_attack_pattern.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_qbot_attack_pattern.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_qbot_attack_pattern.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_ref2731_intrusion_set.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_ref2731_intrusion_set.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_ref2731_intrusion_set.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_the_ref2731_intrusion_set.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_windows_uac_bypasses_techniques_and_detection_strategies.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_windows_uac_bypasses_techniques_and_detection_strategies.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_windows_uac_bypasses_techniques_and_detection_strategies.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/exploring_windows_uac_bypasses_techniques_and_detection_strategies.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/extracting_cobalt_strike_beacon_configurations.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/extracting_cobalt_strike_beacon_configurations.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/extracting_cobalt_strike_beacon_configurations.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/extracting_cobalt_strike_beacon_configurations.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/fall_2023_global_threat_report_outro.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/fall_2023_global_threat_report_outro.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/fall_2023_global_threat_report_outro.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/fall_2023_global_threat_report_outro.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/false_file_immutability.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/false_file_immutability.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/false_file_immutability.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/false_file_immutability.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/finding_truth_in_the_shadows.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/finding_truth_in_the_shadows.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/finding_truth_in_the_shadows.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/finding_truth_in_the_shadows.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/flare_on_9_solutions_burning_down_the_house.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/flare_on_9_solutions_burning_down_the_house.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/flare_on_9_solutions_burning_down_the_house.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/flare_on_9_solutions_burning_down_the_house.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/forecast_and_recommendations_2022_elastic_global_threat_report.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/forecast_and_recommendations_2022_elastic_global_threat_report.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/forecast_and_recommendations_2022_elastic_global_threat_report.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/forecast_and_recommendations_2022_elastic_global_threat_report.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/forget_vulnerable_drivers_admin_is_all_you_need.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/forget_vulnerable_drivers_admin_is_all_you_need.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/forget_vulnerable_drivers_admin_is_all_you_need.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/forget_vulnerable_drivers_admin_is_all_you_need.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/formbook_adopts_cab_less_approach.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/formbook_adopts_cab_less_approach.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/formbook_adopts_cab_less_approach.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/formbook_adopts_cab_less_approach.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/get_injectedthreadex_detection_thread_creation_trampolines.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/get_injectedthreadex_detection_thread_creation_trampolines.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/get_injectedthreadex_detection_thread_creation_trampolines.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/get_injectedthreadex_detection_thread_creation_trampolines.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_gooey_with_guloader_downloader.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_gooey_with_guloader_downloader.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_gooey_with_guloader_downloader.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_gooey_with_guloader_downloader.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_the_most_out_of_transforms_in_elastic.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_the_most_out_of_transforms_in_elastic.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_the_most_out_of_transforms_in_elastic.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/getting_the_most_out_of_transforms_in_elastic.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ghostpulse_haunts_victims_using_defense_evasion_bag_o_tricks.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ghostpulse_haunts_victims_using_defense_evasion_bag_o_tricks.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ghostpulse_haunts_victims_using_defense_evasion_bag_o_tricks.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ghostpulse_haunts_victims_using_defense_evasion_bag_o_tricks.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/globally_distributed_stealers.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/globally_distributed_stealers.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/globally_distributed_stealers.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/globally_distributed_stealers.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/going_coast_to_coast_climbing_the_pyramid_with_the_deimos_implant.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/going_coast_to_coast_climbing_the_pyramid_with_the_deimos_implant.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/going_coast_to_coast_climbing_the_pyramid_with_the_deimos_implant.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/going_coast_to_coast_climbing_the_pyramid_with_the_deimos_implant.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/google_cloud_for_cyber_data_analytics.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/google_cloud_for_cyber_data_analytics.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/google_cloud_for_cyber_data_analytics.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/google_cloud_for_cyber_data_analytics.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_one.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_one.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_one.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_one.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_two.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_two.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_two.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/google_workspace_attack_surface_part_two.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/grimresource.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/grimresource.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/grimresource.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/grimresource.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/gtr_multipart_series_overview.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/gtr_multipart_series_overview.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/gtr_multipart_series_overview.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/gtr_multipart_series_overview.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/handy_elastic_tools_for_the_enthusiastic_detection_engineer.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/handy_elastic_tools_for_the_enthusiastic_detection_engineer.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/handy_elastic_tools_for_the_enthusiastic_detection_engineer.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/handy_elastic_tools_for_the_enthusiastic_detection_engineer.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_lateral_movement_using_event_query_language.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_lateral_movement_using_event_query_language.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_lateral_movement_using_event_query_language.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_lateral_movement_using_event_query_language.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_1.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_1.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_1.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_1.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_2.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_2.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_2.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_persistence_using_elastic_security_part_2.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_suspicious_windows_libraries_for_execution_and_evasion.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_suspicious_windows_libraries_for_execution_and_evasion.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_suspicious_windows_libraries_for_execution_and_evasion.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_for_suspicious_windows_libraries_for_execution_and_evasion.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory_net_attacks.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory_net_attacks.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory_net_attacks.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/hunting_memory_net_attacks.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/icedid_configuration_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/icedid_configuration_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/icedid_configuration_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/icedid_configuration_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/icedids_network_infrastructure_is_alive_and_well.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/icedids_network_infrastructure_is_alive_and_well.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/icedids_network_infrastructure_is_alive_and_well.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/icedids_network_infrastructure_is_alive_and_well.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/identifying_beaconing_malware_using_elastic.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/identifying_beaconing_malware_using_elastic.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/identifying_beaconing_malware_using_elastic.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/identifying_beaconing_malware_using_elastic.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ingesting_threat_data_with_the_threat_intel_filebeat_module.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ingesting_threat_data_with_the_threat_intel_filebeat_module.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ingesting_threat_data_with_the_threat_intel_filebeat_module.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ingesting_threat_data_with_the_threat_intel_filebeat_module.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/inital_research_of_jokerspy.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/inital_research_of_jokerspy.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/inital_research_of_jokerspy.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/inital_research_of_jokerspy.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/inside_microsofts_plan_to_kill_pplfault.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/inside_microsofts_plan_to_kill_pplfault.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/inside_microsofts_plan_to_kill_pplfault.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/inside_microsofts_plan_to_kill_pplfault.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/into_the_weeds_how_we_run_detonate.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/into_the_weeds_how_we_run_detonate.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/into_the_weeds_how_we_run_detonate.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/into_the_weeds_how_we_run_detonate.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/introducing_the_ref5961_intrusion_set.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/introducing_the_ref5961_intrusion_set.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/introducing_the_ref5961_intrusion_set.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/introducing_the_ref5961_intrusion_set.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/introduction_to_hexrays_decompilation_internals.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/introduction_to_hexrays_decompilation_internals.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/introduction_to_hexrays_decompilation_internals.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/introduction_to_hexrays_decompilation_internals.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/invisible_miners_unveiling_ghostengine.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/invisible_miners_unveiling_ghostengine.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/invisible_miners_unveiling_ghostengine.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/invisible_miners_unveiling_ghostengine.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/itw_windows_lpe_0days_insights_and_detection_strategies.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/itw_windows_lpe_0days_insights_and_detection_strategies.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/itw_windows_lpe_0days_insights_and_detection_strategies.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/itw_windows_lpe_0days_insights_and_detection_strategies.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/katz_and_mouse_game.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/katz_and_mouse_game.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/katz_and_mouse_game.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/katz_and_mouse_game.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/kernel_etw_best_etw.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/kernel_etw_best_etw.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/kernel_etw_best_etw.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/kernel_etw_best_etw.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/knotweed_assessment_summary.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/knotweed_assessment_summary.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/knotweed_assessment_summary.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/knotweed_assessment_summary.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/linux_detection_engineering_with_auditd.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/linux_detection_engineering_with_auditd.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/linux_detection_engineering_with_auditd.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/linux_detection_engineering_with_auditd.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/luna_ransomware_attack_pattern.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/luna_ransomware_attack_pattern.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/luna_ransomware_attack_pattern.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/luna_ransomware_attack_pattern.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/monitoring_okta_threats_with_elastic_security.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/monitoring_okta_threats_with_elastic_security.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/monitoring_okta_threats_with_elastic_security.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/monitoring_okta_threats_with_elastic_security.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/naplistener_more_bad_dreams_from_the_developers_of_siestagraph.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/naplistener_more_bad_dreams_from_the_developers_of_siestagraph.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/naplistener_more_bad_dreams_from_the_developers_of_siestagraph.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/naplistener_more_bad_dreams_from_the_developers_of_siestagraph.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_configuration_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_configuration_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_configuration_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_configuration_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_dynamic_configuration_extraction.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_dynamic_configuration_extraction.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_dynamic_configuration_extraction.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/netwire_dynamic_configuration_extraction.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/nimbuspwn_leveraging_vulnerabilities_to_exploit_linux_via_privilege_escalation.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/nimbuspwn_leveraging_vulnerabilities_to_exploit_linux_via_privilege_escalation.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/nimbuspwn_leveraging_vulnerabilities_to_exploit_linux_via_privilege_escalation.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/nimbuspwn_leveraging_vulnerabilities_to_exploit_linux_via_privilege_escalation.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/not_sleeping_anymore_somnirecords_wakeup_call.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/not_sleeping_anymore_somnirecords_wakeup_call.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/not_sleeping_anymore_somnirecords_wakeup_call.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/not_sleeping_anymore_somnirecords_wakeup_call.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/okta_and_lapsus_what_you_need_to_know.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/okta_and_lapsus_what_you_need_to_know.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/okta_and_lapsus_what_you_need_to_know.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/okta_and_lapsus_what_you_need_to_know.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/operation_bleeding_bear.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/operation_bleeding_bear.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/operation_bleeding_bear.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/operation_bleeding_bear.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/parallax_payload_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/parallax_payload_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/parallax_payload_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/parallax_payload_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/peeling_back_the_curtain_with_call_stacks.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/peeling_back_the_curtain_with_call_stacks.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/peeling_back_the_curtain_with_call_stacks.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/peeling_back_the_curtain_with_call_stacks.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/phoreal_malware_targets_the_southeast_asian_financial_sector.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/phoreal_malware_targets_the_southeast_asian_financial_sector.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/phoreal_malware_targets_the_southeast_asian_financial_sector.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/phoreal_malware_targets_the_southeast_asian_financial_sector.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/pikabot_i_choose_you.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/pikabot_i_choose_you.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/pikabot_i_choose_you.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/pikabot_i_choose_you.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/playing_defense_against_gamaredon_group.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/playing_defense_against_gamaredon_group.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/playing_defense_against_gamaredon_group.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/playing_defense_against_gamaredon_group.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/practical_security_engineering_stateful_detection.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/practical_security_engineering_stateful_detection.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/practical_security_engineering_stateful_detection.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/practical_security_engineering_stateful_detection.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/primer_on_persistence_mechanisms.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/primer_on_persistence_mechanisms.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/primer_on_persistence_mechanisms.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/primer_on_persistence_mechanisms.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection_jp.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection_jp.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection_jp.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/protecting_your_devices_from_information_theft_keylogger_protection_jp.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_configuration_extractor.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_configuration_extractor.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_configuration_extractor.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_configuration_extractor.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_malware_analysis.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_malware_analysis.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_malware_analysis.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/qbot_malware_analysis.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_in_the_honeypot_how_we_capture_keys.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_in_the_honeypot_how_we_capture_keys.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_in_the_honeypot_how_we_capture_keys.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_in_the_honeypot_how_we_capture_keys.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_interrupted_sodinokibi_and_the_supply_chain.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_interrupted_sodinokibi_and_the_supply_chain.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_interrupted_sodinokibi_and_the_supply_chain.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ransomware_interrupted_sodinokibi_and_the_supply_chain.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ref2924_howto_maintain_persistence_as_an_advanced_threat.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ref2924_howto_maintain_persistence_as_an_advanced_threat.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/ref2924_howto_maintain_persistence_as_an_advanced_threat.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/ref2924_howto_maintain_persistence_as_an_advanced_threat.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/revisiting_blister_new_developments_of_the_blister_loader.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/revisiting_blister_new_developments_of_the_blister_loader.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/revisiting_blister_new_developments_of_the_blister_loader.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/revisiting_blister_new_developments_of_the_blister_loader.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sandboxing_antimalware_products.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sandboxing_antimalware_products.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sandboxing_antimalware_products.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sandboxing_antimalware_products.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sequel_on_persistence_mechanisms.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sequel_on_persistence_mechanisms.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sequel_on_persistence_mechanisms.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sequel_on_persistence_mechanisms.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/siestagraph_new_implant_uncovered_in_asean_member_foreign_ministry.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/siestagraph_new_implant_uncovered_in_asean_member_foreign_ministry.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/siestagraph_new_implant_uncovered_in_asean_member_foreign_ministry.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/siestagraph_new_implant_uncovered_in_asean_member_foreign_ministry.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/signaling_from_within_how_ebpf_interacts_with_signals.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/signaling_from_within_how_ebpf_interacts_with_signals.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/signaling_from_within_how_ebpf_interacts_with_signals.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/signaling_from_within_how_ebpf_interacts_with_signals.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sinking_macos_pirate_ships.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sinking_macos_pirate_ships.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sinking_macos_pirate_ships.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sinking_macos_pirate_ships.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sneak_peek_elastic_2022_global_threat_report.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sneak_peek_elastic_2022_global_threat_report.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/sneak_peek_elastic_2022_global_threat_report.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/sneak_peek_elastic_2022_global_threat_report.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/spring_cleaning_with_latrodectus.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/spring_cleaning_with_latrodectus.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/spring_cleaning_with_latrodectus.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/spring_cleaning_with_latrodectus.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/starter_guide_to_understanding_okta.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/starter_guide_to_understanding_okta.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/starter_guide_to_understanding_okta.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/starter_guide_to_understanding_okta.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/stixy_situations_ecsaping_your_threat_data.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/stixy_situations_ecsaping_your_threat_data.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/stixy_situations_ecsaping_your_threat_data.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/stixy_situations_ecsaping_your_threat_data.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/stopping_vulnerable_driver_attacks.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/stopping_vulnerable_driver_attacks.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/stopping_vulnerable_driver_attacks.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/stopping_vulnerable_driver_attacks.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/storm_on_the_horizon.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/storm_on_the_horizon.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/storm_on_the_horizon.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/storm_on_the_horizon.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_esql_query_and_rule_validation.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_esql_query_and_rule_validation.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_esql_query_and_rule_validation.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_esql_query_and_rule_validation.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_security_integrating_amazon_bedrock.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_security_integrating_amazon_bedrock.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_security_integrating_amazon_bedrock.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/streamlining_security_integrating_amazon_bedrock.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/testing_okta_visibility_and_detection_dorothy.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/testing_okta_visibility_and_detection_dorothy.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/testing_okta_visibility_and_detection_dorothy.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/testing_okta_visibility_and_detection_dorothy.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/thawing_the_permafrost_of_icedid_summary.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/thawing_the_permafrost_of_icedid_summary.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/thawing_the_permafrost_of_icedid_summary.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/thawing_the_permafrost_of_icedid_summary.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/the_elastic_container_project.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/the_elastic_container_project.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/the_elastic_container_project.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/the_elastic_container_project.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/tricks_and_treats.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/tricks_and_treats.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/tricks_and_treats.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/tricks_and_treats.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/twice_around_the_dance_floor_with_pipedance.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/twice_around_the_dance_floor_with_pipedance.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/twice_around_the_dance_floor_with_pipedance.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/twice_around_the_dance_floor_with_pipedance.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unlocking_power_safely_privilege_escalation_via_linux_process_capabilities.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unlocking_power_safely_privilege_escalation_via_linux_process_capabilities.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unlocking_power_safely_privilege_escalation_via_linux_process_capabilities.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unlocking_power_safely_privilege_escalation_via_linux_process_capabilities.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unmasking_financial_services_intrusion_ref0657.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unmasking_financial_services_intrusion_ref0657.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unmasking_financial_services_intrusion_ref0657.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unmasking_financial_services_intrusion_ref0657.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unpacking_icedid.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unpacking_icedid.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unpacking_icedid.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unpacking_icedid.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unveiling_malware_behavior_trends.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unveiling_malware_behavior_trends.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/unveiling_malware_behavior_trends.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/unveiling_malware_behavior_trends.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/update_to_the_ref2924_intrusion_set_and_related_campaigns.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/update_to_the_ref2924_intrusion_set_and_related_campaigns.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/update_to_the_ref2924_intrusion_set_and_related_campaigns.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/update_to_the_ref2924_intrusion_set_and_related_campaigns.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/upping_the_ante_detecting_in_memory_threats_with_kernel_call_stacks.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/upping_the_ante_detecting_in_memory_threats_with_kernel_call_stacks.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/upping_the_ante_detecting_in_memory_threats_with_kernel_call_stacks.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/upping_the_ante_detecting_in_memory_threats_with_kernel_call_stacks.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_and_esre_to_find_similar_user_sessions.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_and_esre_to_find_similar_user_sessions.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_and_esre_to_find_similar_user_sessions.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_and_esre_to_find_similar_user_sessions.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_to_summarize_user_sessions.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_to_summarize_user_sessions.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_to_summarize_user_sessions.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/using_llms_to_summarize_user_sessions.md diff --git a/x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/vulnerability_summary_follina.md b/x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/vulnerability_summary_follina.md similarity index 100% rename from x-pack/plugins/elastic_assistant/server/knowledge_base/security_labs/vulnerability_summary_follina.md rename to x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/vulnerability_summary_follina.md diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymization_fields.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymization_fields.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymization_fields.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymization_fields.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymized_alerts.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymized_alerts.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymized_alerts.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_anonymized_alerts.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_attack_discoveries.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_attack_discoveries.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_attack_discoveries.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_attack_discoveries.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_examples.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_examples.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_examples.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_examples.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_experiment_connector.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_experiment_connector.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_experiment_connector.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_experiment_connector.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_runs.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_runs.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_runs.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/__mocks__/mock_runs.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/constants.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/constants.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/constants.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/constants.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/example_input/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_default_prompt_template/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_example_attack_discoveries_with_replacements/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/get_run_attack_discoveries_with_replacements/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_custom_evaluator/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_discoveries_with_original_values/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_evaluator_llm/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/helpers/get_graph_input_overrides/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/evaluation/run_evaluations/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/constants.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/constants.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/constants.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/constants.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/helpers/get_generate_or_end_decision/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_end/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_generate_or_refine_or_end_decision/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/helpers/get_should_end/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/generate_or_refine_or_end/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_results/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/helpers/get_has_zero_alerts/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_refine_or_end_decision/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/helpers/get_should_end/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/refine_or_end/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/get_retrieve_or_generate/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/edges/retrieve_anonymized_alerts_or_generate/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_hallucination_failures_reached/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.test.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.test.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.test.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.test.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.ts similarity index 100% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/helpers/get_max_retries_reached/index.ts diff --git a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts similarity index 97% rename from x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts rename to x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts index b2c90636ef523..14794ab893623 100644 --- a/x-pack/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts +++ b/x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts @@ -41,7 +41,7 @@ export type DefaultAttackDiscoveryGraph = ReturnType Date: Sun, 15 Dec 2024 21:06:15 +0000 Subject: [PATCH 2/4] [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' --- .../impl/data_anonymization_editor/stats/index.tsx | 2 +- .../impl/mock/test_providers/test_providers.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx index b628119032d1a..39112cb3acf51 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/data_anonymization_editor/stats/index.tsx @@ -9,7 +9,7 @@ import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; import { AnonymizationFieldResponse } from '@kbn/elastic-assistant-common/impl/schemas/anonymization_fields/bulk_crud_anonymization_fields_route.gen'; import { Replacements } from '@kbn/elastic-assistant-common'; import React, { useMemo } from 'react'; -// eslint-disable-next-line @kbn/eslint/module_migration + import styled from 'styled-components'; import { AllowedStat } from './allowed_stat'; diff --git a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx index 763085cca2688..9eddca98a6993 100644 --- a/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx +++ b/x-pack/platform/packages/shared/kbn-elastic-assistant/impl/mock/test_providers/test_providers.tsx @@ -10,7 +10,7 @@ import { I18nProvider } from '@kbn/i18n-react'; import { actionTypeRegistryMock } from '@kbn/triggers-actions-ui-plugin/public/application/action_type_registry.mock'; import { euiDarkVars } from '@kbn/ui-theme'; import React from 'react'; -// eslint-disable-next-line @kbn/eslint/module_migration + import { ThemeProvider } from 'styled-components'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; From 3ab79d8a0d74ab97d6328f595ad11cfc6a93800e Mon Sep 17 00:00:00 2001 From: Kenneth Kreindler Date: Mon, 16 Dec 2024 17:49:25 +0000 Subject: [PATCH 3/4] fix snapshot --- .../__snapshots__/task_cost_check.test.ts.snap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap b/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap index 96ac62b9f03df..173a854fe9449 100644 --- a/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap +++ b/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap @@ -114,13 +114,13 @@ Array [ "cost": 1, "taskType": "actions:.cases", }, - Object { - "cost": 1, - "taskType": "actions:.observability-ai-assistant", - }, Object { "cost": 10, "taskType": "alerting:siem.indicatorRule", }, + Object { + "cost": 1, + "taskType": "actions:.observability-ai-assistant", + }, ] `; From 15c595ac2afbf7222e0c3b052fc957fc230785d6 Mon Sep 17 00:00:00 2001 From: Kenneth Kreindler Date: Mon, 16 Dec 2024 21:04:22 +0000 Subject: [PATCH 4/4] fix snapshot --- .../__snapshots__/task_cost_check.test.ts.snap | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap b/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap index 36992bba915ed..d808fab832d6c 100644 --- a/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap +++ b/x-pack/plugins/task_manager/server/integration_tests/__snapshots__/task_cost_check.test.ts.snap @@ -122,9 +122,5 @@ Array [ "cost": 10, "taskType": "alerting:siem.indicatorRule", }, - Object { - "cost": 1, - "taskType": "actions:.observability-ai-assistant", - }, ] `;