From 2810b1f308d60b06dabdcd92ece19f41a294ad0c Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Thu, 12 Dec 2024 11:35:10 +0100 Subject: [PATCH] Sustainable Kibana Architecture: Move modules owned by `@elastic/obs-ai-assistant` (#202763) ## 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. #### 5 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/ai-assistant-management-plugin` | `src/platform/plugins/shared/ai_assistant_management/selection` | | `@kbn/data-usage-plugin` | `x-pack/platform/plugins/private/data_usage` | | `@kbn/observability-ai-assistant-app-plugin` | `x-pack/solutions/observability/plugins/observability_ai_assistant_app` | | `@kbn/observability-ai-assistant-management-plugin` | `x-pack/solutions/observability/plugins/observability_ai_assistant_management` | | `@kbn/observability-ai-assistant-plugin` | `x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant` | #### 2 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/observability-ai-common` | `x-pack/solutions/observability/packages/observability_ai/observability_ai_common` | | `@kbn/observability-ai-server` | `x-pack/solutions/observability/packages/observability_ai/observability_ai_server` |
Updated references ``` ./.github/paths-labeller.yml ./.i18nrc.json ./docs/developer/plugin-list.asciidoc ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./src/dev/storybook/aliases.ts ./src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js ./src/platform/plugins/shared/discover/tsconfig.type_check.json ./tsconfig.base.json ./tsconfig.base.type_check.json ./tsconfig.refs.json ./x-pack/.i18nrc.json ./x-pack/platform/plugins/private/data_usage/jest.config.js ./x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js ./x-pack/plugins/enterprise_search/kibana.jsonc ./x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts ./x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.type_check.json ./x-pack/plugins/search_connectors/kibana.jsonc ./x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js ./x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js ./x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js ./x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md ./x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js ./x-pack/test/tsconfig.type_check.json ./x-pack/test_serverless/tsconfig.type_check.json ./yarn.lock ```
Updated relative paths ``` src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js:12 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json:2 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:18 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:2 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:21 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:24 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:27 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:30 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:33 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:36 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:39 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:42 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:45 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:48 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:51 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:54 src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.type_check.json:57 x-pack/platform/plugins/private/data_usage/jest.config.js:10 x-pack/platform/plugins/private/data_usage/tsconfig.json:11 x-pack/platform/plugins/private/data_usage/tsconfig.json:2 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js:10 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:2 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json:7 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:100 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:103 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:2 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:22 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:25 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:28 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:31 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:34 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:37 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:40 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:43 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:46 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:49 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:52 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:55 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:58 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:61 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:64 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:67 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:70 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:73 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:76 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:79 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:82 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:85 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:88 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:9 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:91 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:94 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.type_check.json:97 x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js:10 x-pack/solutions/observability/packages/observability_ai/observability_ai_common/tsconfig.json:2 x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js:10 x-pack/solutions/observability/packages/observability_ai/observability_ai_server/tsconfig.json:2 x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js:10 x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts:16 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:2 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json:7 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:100 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:103 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:106 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:109 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:112 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:118 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:121 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:124 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:127 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:130 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:133 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:136 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:139 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:142 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:145 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:148 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:151 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:154 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:157 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:160 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:163 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:166 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:169 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:172 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:175 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:178 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:181 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:184 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:190 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:193 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:2 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:22 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:28 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:31 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:34 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:37 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:40 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:43 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:46 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:49 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:52 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:55 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:58 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:61 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:64 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:67 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:70 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:73 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:76 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:79 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:82 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:85 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:88 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:9 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:91 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:94 x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.type_check.json:97 x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js:10 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json:2 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:18 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:2 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:21 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:24 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:27 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:30 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:33 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:36 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:39 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:45 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:48 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:51 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:54 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:60 x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.type_check.json:63 ```
(cherry picked from commit 84b19ec3eae0f0b13ad4c08e2927db811d39a263) # Conflicts: # .github/CODEOWNERS # src/dev/storybook/aliases.ts --- .github/CODEOWNERS | 14 ++++----- .github/paths-labeller.yml | 2 +- .i18nrc.json | 2 +- docs/developer/plugin-list.asciidoc | 10 +++---- package.json | 14 ++++----- src/dev/storybook/aliases.ts | 4 +-- .../selection/README.md | 0 .../selection/common/ai_assistant_type.ts | 0 .../selection/common/ui_setting_keys.ts | 0 .../selection/jest.config.js | 8 ++--- .../selection/kibana.jsonc | 0 .../selection/public/app_context.tsx | 0 .../selection/public/index.ts | 0 .../management_section/mount_section.tsx | 0 .../selection/public/plugin.ts | 0 .../ai_assistant_selection_page.test.tsx | 0 .../ai_assistant_selection_page.tsx | 0 .../redirect_to_home_if_unauthorized.tsx | 0 .../selection/public/routes/config.tsx | 0 .../selection/public/types.ts | 0 .../selection/server/config.ts | 0 .../selection/server/index.ts | 0 .../selection/server/plugin.ts | 0 .../selection/server/types.ts | 0 .../selection/tsconfig.json | 2 +- tsconfig.base.json | 28 +++++++++--------- x-pack/.i18nrc.json | 8 ++--- .../plugins/private}/data_usage/README.md | 0 .../private}/data_usage/common/constants.ts | 0 .../common/experimental_features.ts | 0 .../private}/data_usage/common/index.ts | 0 .../data_usage/common/query_client.tsx | 0 .../common/rest_types/data_streams.ts | 0 .../data_usage/common/rest_types/index.ts | 0 .../common/rest_types/usage_metrics.test.ts | 0 .../common/rest_types/usage_metrics.ts | 0 .../data_usage/common/test_utils/index.ts | 0 .../common/test_utils/test_provider.tsx | 0 .../test_utils/test_query_client_options.ts | 0 .../private}/data_usage/common/utils.test.ts | 0 .../private}/data_usage/common/utils.ts | 0 .../private}/data_usage/jest.config.js | 7 +++-- .../plugins/private}/data_usage/kibana.jsonc | 0 ...on_product_no_results_magnifying_glass.svg | 0 .../public/app/components/chart_panel.tsx | 0 .../public/app/components/charts.tsx | 0 .../public/app/components/charts_loading.tsx | 0 .../components/data_usage_metrics.test.tsx | 0 .../app/components/data_usage_metrics.tsx | 0 .../app/components/dataset_quality_link.tsx | 0 .../app/components/filters/charts_filter.tsx | 0 .../filters/charts_filter_popover.tsx | 0 .../app/components/filters/charts_filters.tsx | 0 .../app/components/filters/date_picker.tsx | 0 .../components/filters/toggle_all_button.tsx | 0 .../public/app/components/legend_action.tsx | 0 .../app/components/legend_action_item.tsx | 0 .../public/app/components/no_data_callout.tsx | 0 .../data_usage/public/app/components/page.tsx | 0 .../public/app/data_usage_metrics_page.tsx | 0 .../data_usage/public/app/hooks/index.tsx | 0 .../public/app/hooks/use_charts_filter.tsx | 0 .../app/hooks/use_charts_url_params.test.tsx | 0 .../app/hooks/use_charts_url_params.tsx | 0 .../public/app/hooks/use_date_picker.tsx | 0 .../data_usage/public/application.tsx | 0 .../hooks/use_get_data_streams.test.tsx | 0 .../public/hooks/use_get_data_streams.ts | 0 .../hooks/use_get_usage_metrics.test.tsx | 0 .../public/hooks/use_get_usage_metrics.ts | 0 .../public/hooks/use_test_id_generator.ts | 0 .../data_usage/public/hooks/use_url_params.ts | 0 .../private}/data_usage/public/index.ts | 0 .../private}/data_usage/public/plugin.ts | 0 .../data_usage/public/translations.tsx | 0 .../private}/data_usage/public/types.ts | 0 .../public/utils/format_bytes.test.ts | 0 .../data_usage/public/utils/format_bytes.ts | 0 .../public/utils/use_breadcrumbs.tsx | 0 .../data_usage/public/utils/use_kibana.tsx | 0 .../data_usage/server/common/errors.ts | 0 .../private}/data_usage/server/config.ts | 0 .../private}/data_usage/server/errors.ts | 0 .../private}/data_usage/server/index.ts | 0 .../private}/data_usage/server/mocks/index.ts | 0 .../private}/data_usage/server/plugin.ts | 0 .../data_usage/server/routes/error_handler.ts | 0 .../data_usage/server/routes/index.tsx | 0 .../routes/internal/data_streams.test.ts | 0 .../server/routes/internal/data_streams.ts | 0 .../routes/internal/data_streams_handler.ts | 0 .../server/routes/internal/index.tsx | 0 .../routes/internal/usage_metrics.test.ts | 0 .../server/routes/internal/usage_metrics.ts | 0 .../routes/internal/usage_metrics_handler.ts | 0 .../data_usage/server/services/app_context.ts | 0 .../data_usage/server/services/autoops_api.ts | 0 .../data_usage/server/services/index.ts | 0 .../private}/data_usage/server/types/index.ts | 0 .../private}/data_usage/server/types/types.ts | 0 .../server/utils/custom_http_request_error.ts | 0 .../server/utils/get_metering_stats.ts | 0 .../private}/data_usage/server/utils/index.ts | 0 .../plugins/private}/data_usage/tsconfig.json | 4 +-- .../.storybook/jest_setup.js | 0 .../.storybook/main.js | 0 .../.storybook/preview.js | 0 .../observability_ai_assistant/README.md | 0 .../observability_ai_assistant/TRACING.md | 0 .../common/capabilities.ts | 0 .../common/connectors.ts | 0 .../common/conversation_complete.ts | 0 .../common/convert_messages_for_inference.ts | 0 .../common/feature.ts | 0 .../common/functions/function_visibility.ts | 0 .../common/functions/types.ts | 0 .../common/functions/visualize_esql.ts | 0 .../common/index.ts | 0 .../common/rule_connector.ts | 0 .../common/types.ts | 0 .../common/ui_settings/settings_keys.ts | 0 .../concatenate_chat_completion_chunks.ts | 0 .../utils/create_function_request_message.ts | 0 .../utils/create_function_response_message.ts | 0 .../utils/emit_with_concatenated_message.ts | 0 .../utils/filter_function_definitions.ts | 0 .../utils/get_bucket_size/calculate_auto.js | 0 .../utils/get_bucket_size/index.test.ts | 0 .../common/utils/get_bucket_size/index.ts | 0 .../utils/get_bucket_size/unit_to_seconds.ts | 0 .../common/utils/short_id_table.test.ts | 0 .../common/utils/short_id_table.ts | 0 ...throw_serialized_chat_completion_errors.ts | 0 .../common/utils/until_aborted.ts | 0 .../common/utils/with_token_budget.test.ts | 0 .../common/utils/with_token_budget.ts | 0 .../utils/without_token_count_events.ts | 0 .../observability_ai_assistant/jest.config.js | 25 ++++++++++++++++ .../observability_ai_assistant/kibana.jsonc | 0 .../public/analytics/index.ts | 0 .../public/analytics/schemas/chat_feedback.ts | 0 .../public/analytics/schemas/common.ts | 0 .../analytics/schemas/insight_feedback.ts | 0 .../analytics/schemas/insight_response.ts | 0 .../analytics/schemas/user_sent_prompt.ts | 0 .../public/analytics/telemetry_event_type.ts | 0 .../public/api/index.ts | 0 .../public/assets/elastic_ai_assistant.png | Bin .../public/assets/illustration.png | Bin .../public/assets/illustration.svg | 0 .../components/assistant_avatar.stories.tsx | 0 .../public/components/assistant_avatar.tsx | 0 .../components/buttons/feedback_buttons.tsx | 0 .../regenerate_response_button.stories.tsx | 0 .../buttons/regenerate_response_button.tsx | 0 .../buttons/start_chat_button.stories.tsx | 0 .../components/buttons/start_chat_button.tsx | 0 .../stop_generating_button.stories.tsx | 0 .../buttons/stop_generating_button.tsx | 0 .../components/chat/chat_item_controls.tsx | 0 .../public/components/chat/types.ts | 0 .../connector_selector_base.stories.tsx | 0 .../connector_selector_base.tsx | 0 .../components/insight/actions_menu.tsx | 0 .../public/components/insight/insight.tsx | 0 .../insight/insight_base.stories.tsx | 0 .../components/insight/insight_base.tsx | 0 .../components/insight/insight_error.tsx | 0 .../message_panel/esql_code_block.stories.tsx | 0 .../message_panel/esql_code_block.tsx | 0 .../message_panel/failed_to_load_response.tsx | 0 .../message_panel/message_panel.stories.tsx | 0 .../message_panel/message_panel.tsx | 0 .../components/message_panel/message_text.tsx | 0 .../missing_credentials_callout.tsx | 0 ...lity_ai_assistant_chat_service_context.tsx | 0 ..._ai_assistant_multipane_flyout_context.tsx | 0 .../observability_ai_assistant_provider.tsx | 0 .../public/hooks/use_abortable_async.ts | 0 .../public/hooks/use_chat.test.ts | 0 .../public/hooks/use_chat.ts | 0 .../public/hooks/use_flyout_state.ts | 0 .../public/hooks/use_genai_connectors.ts | 0 .../public/hooks/use_kibana.ts | 0 .../hooks/use_observability_ai_assistant.ts | 0 ...observability_ai_assistant_chat_service.ts | 0 .../public/hooks/use_once.ts | 0 .../public/index.ts | 0 .../public/mock.tsx | 0 .../public/plugin.tsx | 0 .../public/service/complete.test.ts | 0 .../public/service/complete.ts | 0 .../service/create_chat_service.test.ts | 0 .../public/service/create_chat_service.ts | 0 .../service/create_mock_chat_service.ts | 0 .../public/service/create_service.ts | 0 .../public/service/default_starter_prompts.ts | 0 .../public/storybook_mock.tsx | 0 .../public/types.ts | 0 .../public/utils/builders.ts | 0 .../utils/create_function_response_error.ts | 0 .../utils/create_screen_context_action.ts | 0 .../utils/get_connectors_management_href.ts | 0 .../utils/get_contextual_insight_messages.ts | 0 .../utils/get_models_management_href.ts | 0 .../readable_stream_reader_into_observable.ts | 0 .../public/utils/storybook_decorator.tsx | 0 .../server/analytics/recall_ranking.ts | 0 .../server/config.ts | 0 .../server/functions/context.ts | 0 .../server/functions/elasticsearch.ts | 0 .../server/functions/execute_connector.ts | 0 .../get_relevant_field_names.ts | 0 .../functions/get_dataset_info/index.ts | 0 .../server/functions/index.ts | 2 +- .../server/functions/kibana.ts | 0 .../server/functions/summarize.ts | 0 .../server/index.ts | 0 .../server/plugin.ts | 0 .../server/routes/chat/route.ts | 0 .../server/routes/connectors/route.ts | 0 .../server/routes/conversations/route.ts | 0 ...observability_ai_assistant_server_route.ts | 0 .../server/routes/functions/route.ts | 0 ...rvability_ai_assistant_route_repository.ts | 0 .../server/routes/knowledge_base/route.ts | 0 .../server/routes/register_routes.ts | 0 .../server/routes/runtime_types.ts | 0 .../server/routes/types.ts | 0 .../chat_function_client/index.test.ts | 0 .../service/chat_function_client/index.ts | 0 .../get_context_function_request_if_needed.ts | 0 .../server/service/client/index.test.ts | 0 .../server/service/client/index.ts | 0 .../get_langtrace_span_attributes.ts | 0 .../instrumentation/get_langtrace_tracer.ts | 0 .../client/instrumentation/init_langtrace.ts | 0 .../instrumentation/lang_tracer.test.ts | 0 .../client/instrumentation/lang_tracer.ts | 0 .../catch_function_not_found_error.ts | 0 .../client/operators/continue_conversation.ts | 0 ...rt_inference_events_to_streaming_events.ts | 0 .../server/service/client/operators/debug.ts | 0 .../client/operators/extract_messages.ts | 0 .../client/operators/extract_token_count.ts | 0 .../fail_on_non_existing_function_call.ts | 0 .../operators/get_generated_title.test.ts | 0 .../client/operators/get_generated_title.ts | 0 .../operators/hide_token_count_events.ts | 0 .../operators/instrument_and_count_tokens.ts | 0 .../conversation_component_template.ts | 0 .../server/service/index.ts | 0 .../server/service/inference_endpoint.ts | 0 .../server/service/kb_component_template.ts | 0 .../service/knowledge_base_service/index.ts | 0 .../recall_from_search_connectors.ts | 0 .../setup_conversation_and_kb_index_assets.ts | 0 ...ter_migrate_knowledge_base_entries_task.ts | 0 .../server/service/types.ts | 0 .../catch_function_limit_exceeded_error.ts | 0 ...ate_server_side_function_response_error.ts | 0 .../server/service/util/flush_buffer.ts | 0 .../server/service/util/get_access_query.ts | 0 .../server/service/util/get_category_query.ts | 0 ...t_system_message_from_instructions.test.ts | 0 .../get_system_message_from_instructions.ts | 0 .../util/observable_into_openai_stream.ts | 0 .../service/util/observable_into_stream.ts | 0 .../service/util/replace_system_message.ts | 0 .../service/util/stream_into_observable.ts | 0 .../service/util/with_assistant_span.ts | 0 .../server/types.ts | 0 .../recall/parse_suggestion_scores.test.ts | 0 .../utils/recall/parse_suggestion_scores.ts | 0 .../server/utils/recall/recall_and_score.ts | 0 .../server/utils/recall/score_suggestions.ts | 0 .../observability_ai_assistant/tsconfig.json | 4 +-- x-pack/plugins/enterprise_search/kibana.jsonc | 2 +- .../observability_ai_assistant/jest.config.js | 25 ---------------- .../jest.config.js | 25 ---------------- x-pack/plugins/search_connectors/kibana.jsonc | 2 +- .../observability_ai_common/jest.config.js | 6 ++-- .../observability_ai_common/kibana.jsonc | 0 .../observability_ai_common/package.json | 0 .../root_cause_analysis/index.ts | 0 .../root_cause_analysis/tool_names.ts | 0 .../observability_ai_common/tsconfig.json | 2 +- .../observability_ai_server/jest.config.js | 6 ++-- .../observability_ai_server/kibana.jsonc | 0 .../observability_ai_server/package.json | 0 .../call_end_rca_process_tool.ts | 0 .../call_investigate_entity_tool.ts | 0 .../root_cause_analysis/call_observe_tool.ts | 0 .../empty_assistant_message.ts | 0 .../root_cause_analysis/index.ts | 0 .../root_cause_analysis/prompts/index.ts | 0 .../run_root_cause_analysis.ts | 0 .../tasks/analyze_log_patterns/index.ts | 0 .../tasks/describe_entity/index.ts | 0 .../tasks/describe_log_patterns/index.ts | 0 .../analyze_fetched_related_entities.ts | 0 .../extract_related_entities.ts | 0 .../tasks/find_related_entities/index.ts | 0 ...e_keyword_searches_for_related_entities.ts | 0 .../tasks/generate_timeline/index.ts | 0 .../tasks/get_knowledge_base_entries/index.ts | 0 .../tasks/investigate_entity/index.ts | 0 .../tasks/investigate_entity/prompts.ts | 0 .../tasks/investigate_entity/types.ts | 0 .../observe_investigation_results/index.ts | 0 .../index.ts | 0 .../tasks/write_final_report/index.ts | 0 .../root_cause_analysis/tools.ts | 0 .../root_cause_analysis/types.ts | 0 .../root_cause_analysis/util/call_tools.ts | 0 .../util/chunk_output_calls.ts | 0 .../root_cause_analysis/util/format_entity.ts | 0 .../get_previously_investigated_entities.ts | 0 .../util/serialize_knowledge_base_entries.ts | 0 .../util/stringify_summaries.ts | 0 .../root_cause_analysis/util/to_blockquote.ts | 0 .../validate_investigate_entity_tool_call.ts | 0 .../observability_ai_server/tsconfig.json | 2 +- .../.storybook/jest_setup.js | 0 .../.storybook/main.js | 0 .../.storybook/preview.js | 0 .../.storybook/storybook_decorator.tsx | 0 .../observability_ai_assistant_app/README.md | 0 .../common/functions/changes/index.ts | 0 .../common/functions/lens.ts | 0 .../common/functions/visualize_esql.ts | 0 .../common/rule_connector.ts | 0 .../jest.config.js | 25 ++++++++++++++++ .../kibana.jsonc | 0 .../public/application.tsx | 0 .../public/assets/elastic_ai_assistant.png | Bin .../changes/change_list.stories.tsx | 0 .../public/components/changes/change_list.tsx | 0 .../public/components/charts/spark_plot.tsx | 0 .../public/components/nav_control/index.tsx | 0 .../nav_control/lazy_nav_control.tsx | 0 .../public/components/page_template.tsx | 0 .../components/rca/entity_badge/index.tsx | 0 .../mock/complete_root_cause_analysis.json | 0 .../public/components/rca/mock/index.ts | 0 .../rca/rca_callout/index.stories.tsx | 0 .../components/rca/rca_callout/index.tsx | 0 .../rca/rca_collapsible_panel/index.tsx | 0 .../rca/rca_container/index.stories.tsx | 0 .../components/rca/rca_container/index.tsx | 0 .../index.stories.tsx | 0 .../rca/rca_entity_investigation/index.tsx | 0 .../index.stories.tsx | 0 .../rca_entity_log_pattern_table/index.tsx | 0 .../rca_observation_panel/index.stories.tsx | 0 .../rca/rca_observation_panel/index.tsx | 0 .../public/components/rca/rca_panel/index.tsx | 0 .../rca/rca_report/index.stories.tsx | 0 .../components/rca/rca_report/index.tsx | 0 .../components/rca/rca_step/index.stories.tsx | 0 .../public/components/rca/rca_step/index.tsx | 0 .../components/rca/rca_stop_button/index.tsx | 0 .../rca/rca_task_step/index.stories.tsx | 0 .../components/rca/rca_task_step/index.tsx | 0 .../components/technical_preview_badge.tsx | 0 .../public/functions/changes/index.tsx | 0 .../public/functions/index.ts | 0 .../public/functions/lens.tsx | 0 .../public/functions/visualize_esql.test.tsx | 0 .../public/functions/visualize_esql.tsx | 0 .../hooks/__storybook_mocks__/use_kibana.ts | 0 .../hooks/__storybook_mocks__/use_license.ts | 0 .../use_observability_ai_assistant.ts | 0 ..._observability_ai_assistant_app_service.ts | 0 ...observability_ai_assistant_chat_service.ts | 0 .../use_observability_ai_assistant_router.ts | 0 .../public/hooks/is_nav_control_visible.tsx | 0 .../public/hooks/use_chart_theme.ts | 0 .../public/hooks/use_force_update.ts | 0 .../public/hooks/use_kibana.ts | 0 .../public/hooks/use_license.ts | 0 .../public/hooks/use_local_storage.test.ts | 0 .../public/hooks/use_local_storage.ts | 0 .../public/hooks/use_nav_control_scope.ts | 0 .../hooks/use_nav_control_screen_context.ts | 0 ...observability_ai_assistant_chat_service.ts | 0 .../use_observability_ai_assistant_params.ts | 0 .../use_observability_ai_assistant_router.ts | 0 .../public/hooks/use_theme.ts | 0 .../public/index.ts | 0 .../public/plugin.tsx | 0 .../public/routes/config.tsx | 0 .../conversation_view_with_props.tsx | 0 .../public/rule_connector/ai_assistant.tsx | 0 .../rule_connector/ai_assistant_params.tsx | 0 .../public/rule_connector/index.ts | 0 .../public/rule_connector/translations.ts | 0 .../public/rule_connector/types.ts | 0 .../public/types.ts | 0 .../public/utils/non_nullable.ts | 0 .../public/utils/safe_json_parse.ts | 0 .../public/utils/shared_providers.tsx | 0 .../scripts/evaluation/.eslintrc.json | 0 .../scripts/evaluation/README.md | 2 +- .../evaluation/alert_templates/templates.ts | 0 .../scripts/evaluation/cli.ts | 0 .../scripts/evaluation/evaluation.ts | 0 .../scripts/evaluation/get_service_urls.ts | 0 .../scripts/evaluation/index.js | 0 .../scripts/evaluation/kibana_client.ts | 0 .../scripts/evaluation/read_kibana_config.ts | 2 +- .../evaluation/scenarios/alerts/index.spec.ts | 0 .../evaluation/scenarios/apm/index.spec.ts | 0 .../scenarios/elasticsearch/index.spec.ts | 0 .../evaluation/scenarios/esql/index.spec.ts | 0 .../evaluation/scenarios/kb/index.spec.ts | 0 .../scripts/evaluation/select_connector.ts | 0 .../scripts/evaluation/services/index.ts | 0 .../scripts/evaluation/setup_synthtrace.ts | 0 .../scripts/evaluation/types.ts | 0 ...bservability_ai_assistant_app_es_client.ts | 0 .../server/clients/elasticsearch/index.ts | 0 .../server/config.ts | 0 .../server/functions/alerts.ts | 0 .../functions/changes/get_log_changes.ts | 0 .../functions/changes/get_metric_changes.ts | 0 .../server/functions/changes/index.ts | 0 .../server/functions/documentation.ts | 0 .../server/functions/index.ts | 0 .../server/functions/lens.ts | 0 .../query/correct_query_with_actions.test.ts | 0 .../query/correct_query_with_actions.ts | 0 .../query/get_errors_with_commands.test.ts | 0 .../query/get_errors_with_commands.ts | 0 .../server/functions/query/index.ts | 0 .../functions/query/validate_esql_query.ts | 0 .../server/functions/visualize_esql.ts | 0 .../server/index.ts | 0 .../server/plugin.ts | 0 .../convert_schema_to_open_api.ts | 0 .../server/rule_connector/index.test.ts | 0 .../server/rule_connector/index.ts | 0 .../server/types.ts | 0 .../server/util/get_log_sources.ts | 0 .../tsconfig.json | 4 +-- .../README.md | 0 .../common/ui_settings.ts | 0 .../jest.config.js | 6 ++-- .../kibana.jsonc | 0 .../public/app.tsx | 0 .../public/constants.ts | 0 .../public/context/app_context.tsx | 0 .../public/helpers/categorize_entries.ts | 0 .../public/helpers/test_helper.tsx | 0 .../public/hooks/use_app_context.tsx | 0 .../hooks/use_create_knowledge_base_entry.ts | 0 ..._create_knowledge_base_user_instruction.ts | 0 .../hooks/use_delete_knowledge_base_entry.ts | 0 .../hooks/use_get_knowledge_base_entries.ts | 0 .../hooks/use_get_product_doc_status.ts | 0 .../public/hooks/use_get_user_instructions.ts | 0 .../use_import_knowledge_base_entries.ts | 0 .../public/hooks/use_install_product_doc.ts | 0 .../public/hooks/use_kibana.tsx | 0 .../use_observability_management_params.ts | 0 .../use_observability_management_router.ts | 0 .../public/hooks/use_uninstall_product_doc.ts | 0 .../public/index.ts | 0 .../public/plugin.ts | 0 .../knowledge_base_bulk_import_flyout.tsx | 0 .../knowledge_base_category_flyout.tsx | 0 ...nowledge_base_edit_manual_entry_flyout.tsx | 0 ...edge_base_edit_user_instruction_flyout.tsx | 0 .../components/knowledge_base_tab.test.tsx | 0 .../routes/components/knowledge_base_tab.tsx | 0 .../redirect_to_home_if_unauthorized.tsx | 0 .../components/search_connector_tab.tsx | 0 .../routes/components/settings_page.test.tsx | 0 .../routes/components/settings_page.tsx | 0 .../settings_tab/product_doc_entry.tsx | 0 .../settings_tab/settings_tab.test.tsx | 0 .../components/settings_tab/settings_tab.tsx | 0 .../components/settings_tab/ui_settings.tsx | 0 .../public/routes/config.tsx | 0 .../server/config.ts | 0 .../server/index.ts | 0 .../server/plugin.ts | 0 .../tsconfig.json | 2 +- yarn.lock | 14 ++++----- 489 files changed, 131 insertions(+), 128 deletions(-) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/README.md (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/common/ai_assistant_type.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/common/ui_setting_keys.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/jest.config.js (63%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/app_context.tsx (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/management_section/mount_section.tsx (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/routes/components/redirect_to_home_if_unauthorized.tsx (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/routes/config.tsx (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/server/config.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/server/types.ts (100%) rename src/{plugins => platform/plugins/shared}/ai_assistant_management/selection/tsconfig.json (91%) rename x-pack/{plugins => platform/plugins/private}/data_usage/README.md (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/experimental_features.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/query_client.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/rest_types/data_streams.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/rest_types/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/rest_types/usage_metrics.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/rest_types/usage_metrics.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/test_utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/test_utils/test_provider.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/test_utils/test_query_client_options.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/common/utils.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/jest.config.js (67%) rename x-pack/{plugins => platform/plugins/private}/data_usage/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/assets/illustration_product_no_results_magnifying_glass.svg (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/chart_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/charts.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/charts_loading.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/data_usage_metrics.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/data_usage_metrics.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/dataset_quality_link.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/filters/charts_filter.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/filters/charts_filter_popover.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/filters/charts_filters.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/filters/date_picker.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/filters/toggle_all_button.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/legend_action.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/legend_action_item.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/no_data_callout.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/components/page.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/data_usage_metrics_page.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/hooks/index.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/hooks/use_charts_filter.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/hooks/use_charts_url_params.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/hooks/use_charts_url_params.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/app/hooks/use_date_picker.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/application.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/hooks/use_get_data_streams.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/hooks/use_get_data_streams.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/hooks/use_get_usage_metrics.test.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/hooks/use_get_usage_metrics.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/hooks/use_test_id_generator.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/hooks/use_url_params.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/translations.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/utils/format_bytes.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/utils/format_bytes.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/utils/use_breadcrumbs.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/public/utils/use_kibana.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/common/errors.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/errors.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/mocks/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/error_handler.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/index.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/internal/data_streams.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/internal/data_streams.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/internal/data_streams_handler.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/internal/index.tsx (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/internal/usage_metrics.test.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/internal/usage_metrics.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/routes/internal/usage_metrics_handler.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/services/app_context.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/services/autoops_api.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/services/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/types/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/types/types.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/utils/custom_http_request_error.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/utils/get_metering_stats.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/server/utils/index.ts (100%) rename x-pack/{plugins => platform/plugins/private}/data_usage/tsconfig.json (91%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/.storybook/jest_setup.js (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/.storybook/main.js (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/.storybook/preview.js (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/TRACING.md (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/capabilities.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/connectors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/conversation_complete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/convert_messages_for_inference.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/feature.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/functions/function_visibility.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/functions/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/functions/visualize_esql.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/rule_connector.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/ui_settings/settings_keys.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/concatenate_chat_completion_chunks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/create_function_request_message.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/create_function_response_message.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/emit_with_concatenated_message.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/filter_function_definitions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/calculate_auto.js (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/unit_to_seconds.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/short_id_table.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/short_id_table.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/throw_serialized_chat_completion_errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/until_aborted.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/with_token_budget.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/with_token_budget.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/common/utils/without_token_count_events.ts (100%) create mode 100644 x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/analytics/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/analytics/schemas/chat_feedback.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/analytics/schemas/common.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_feedback.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_response.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/analytics/schemas/user_sent_prompt.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/analytics/telemetry_event_type.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/api/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/assets/elastic_ai_assistant.png (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/assets/illustration.png (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/assets/illustration.svg (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/assistant_avatar.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/buttons/feedback_buttons.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/chat/chat_item_controls.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/chat/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/insight/actions_menu.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/insight/insight.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/insight/insight_base.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/insight/insight_base.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/insight/insight_error.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/message_panel/failed_to_load_response.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.stories.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/message_panel/message_text.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/components/missing_credentials_callout.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_chat_service_context.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_multipane_flyout_context.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_provider.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_abortable_async.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_chat.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_chat.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_flyout_state.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_genai_connectors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_kibana.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant_chat_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/hooks/use_once.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/mock.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/service/complete.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/service/complete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/service/create_chat_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/service/create_chat_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/service/create_mock_chat_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/service/create_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/service/default_starter_prompts.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/storybook_mock.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/builders.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/create_function_response_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/create_screen_context_action.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/get_connectors_management_href.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/get_contextual_insight_messages.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/get_models_management_href.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/readable_stream_reader_into_observable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/public/utils/storybook_decorator.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/context.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/elasticsearch.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/execute_connector.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/get_relevant_field_names.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/index.ts (98%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/kibana.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/functions/summarize.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/chat/route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/connectors/route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/conversations/route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/create_observability_ai_assistant_server_route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/functions/route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/get_global_observability_ai_assistant_route_repository.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/register_routes.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/runtime_types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/routes/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_span_attributes.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_tracer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/instrumentation/init_langtrace.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/catch_function_not_found_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/continue_conversation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/convert_inference_events_to_streaming_events.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/debug.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/extract_messages.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/extract_token_count.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/fail_on_non_existing_function_call.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/hide_token_count_events.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/client/operators/instrument_and_count_tokens.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/conversation_component_template.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/inference_endpoint.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/kb_component_template.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/setup_conversation_and_kb_index_assets.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/task_manager_definitions/register_migrate_knowledge_base_entries_task.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/catch_function_limit_exceeded_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/create_server_side_function_response_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/flush_buffer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/get_access_query.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/get_category_query.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/observable_into_openai_stream.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/observable_into_stream.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/replace_system_message.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/stream_into_observable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/service/util/with_assistant_span.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/utils/recall/recall_and_score.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/server/utils/recall/score_suggestions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/observability_solution/observability_ai_assistant/tsconfig.json (93%) delete mode 100644 x-pack/plugins/observability_solution/observability_ai_assistant/jest.config.js delete mode 100644 x-pack/plugins/observability_solution/observability_ai_assistant_app/jest.config.js rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_common/jest.config.js (58%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_common/kibana.jsonc (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_common/package.json (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_common/root_cause_analysis/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_common/root_cause_analysis/tool_names.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_common/tsconfig.json (81%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/jest.config.js (67%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/kibana.jsonc (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/package.json (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/call_end_rca_process_tool.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/call_investigate_entity_tool.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/call_observe_tool.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/empty_assistant_message.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/prompts/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/run_root_cause_analysis.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/analyze_log_patterns/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_entity/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_log_patterns/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/analyze_fetched_related_entities.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/extract_related_entities.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/write_keyword_searches_for_related_entities.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/generate_timeline/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/get_knowledge_base_entries/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/prompts.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/types.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/observe_investigation_results/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_entity_investigation_report/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_final_report/index.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/tools.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/types.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/call_tools.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/chunk_output_calls.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/format_entity.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/get_previously_investigated_entities.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/serialize_knowledge_base_entries.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/stringify_summaries.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/to_blockquote.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/root_cause_analysis/util/validate_investigate_entity_tool_call.ts (100%) rename x-pack/{packages/observability => solutions/observability/packages}/observability_ai/observability_ai_server/tsconfig.json (91%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/.storybook/jest_setup.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/.storybook/main.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/.storybook/preview.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/.storybook/storybook_decorator.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/README.md (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/common/functions/changes/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/common/functions/lens.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/common/functions/visualize_esql.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/common/rule_connector.ts (100%) create mode 100644 x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/kibana.jsonc (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/application.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/assets/elastic_ai_assistant.png (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/changes/change_list.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/changes/change_list.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/charts/spark_plot.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/nav_control/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/nav_control/lazy_nav_control.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/page_template.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/entity_badge/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/mock/complete_root_cause_analysis.json (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/mock/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_callout/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_collapsible_panel/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_container/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_panel/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_report/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_step/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_step/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_task_step/index.stories.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/rca/rca_task_step/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/components/technical_preview_badge.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/functions/changes/index.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/functions/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/functions/lens.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/functions/visualize_esql.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/functions/visualize_esql.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_kibana.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_license.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_app_service.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_chat_service.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_router.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/is_nav_control_visible.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_chart_theme.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_force_update.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_kibana.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_license.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_local_storage.test.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_local_storage.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_nav_control_scope.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_nav_control_screen_context.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_chat_service.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_params.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_router.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/hooks/use_theme.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/plugin.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/routes/config.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/routes/conversations/conversation_view_with_props.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/rule_connector/ai_assistant.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/rule_connector/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/rule_connector/translations.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/rule_connector/types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/utils/non_nullable.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/utils/safe_json_parse.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/public/utils/shared_providers.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/.eslintrc.json (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/README.md (93%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/alert_templates/templates.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/cli.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/evaluation.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/get_service_urls.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/index.js (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/kibana_client.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts (98%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/select_connector.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/services/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/setup_synthtrace.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/scripts/evaluation/types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/clients/create_observability_ai_assistant_app_es_client.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/clients/elasticsearch/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/config.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/alerts.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/changes/get_log_changes.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/changes/get_metric_changes.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/changes/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/documentation.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/lens.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.test.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.test.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/query/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/query/validate_esql_query.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/functions/visualize_esql.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/plugin.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/rule_connector/convert_schema_to_open_api.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/rule_connector/index.test.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/rule_connector/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/types.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/server/util/get_log_sources.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_app/tsconfig.json (96%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/README.md (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/common/ui_settings.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/jest.config.js (58%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/kibana.jsonc (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/app.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/constants.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/context/app_context.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/helpers/categorize_entries.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/helpers/test_helper.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_app_context.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_entry.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_user_instruction.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_delete_knowledge_base_entry.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_get_knowledge_base_entries.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_get_product_doc_status.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_get_user_instructions.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_import_knowledge_base_entries.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_install_product_doc.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_kibana.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_observability_management_params.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_observability_management_router.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/hooks/use_uninstall_product_doc.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/plugin.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/knowledge_base_bulk_import_flyout.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/knowledge_base_category_flyout.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_manual_entry_flyout.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_user_instruction_flyout.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/redirect_to_home_if_unauthorized.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/settings_page.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/settings_page.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/settings_tab/product_doc_entry.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.test.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/components/settings_tab/ui_settings.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/public/routes/config.tsx (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/server/config.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/server/index.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/server/plugin.ts (100%) rename x-pack/{plugins/observability_solution => solutions/observability/plugins}/observability_ai_assistant_management/tsconfig.json (94%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8346d776ec553..fb6f9b790aa6c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -12,7 +12,7 @@ packages/kbn-actions-types @elastic/response-ops src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management x-pack/packages/kbn-ai-assistant @elastic/search-kibana x-pack/packages/kbn-ai-assistant-common @elastic/search-kibana -src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant +src/platform/plugins/shared/ai_assistant_management/selection @elastic/obs-ai-assistant x-pack/platform/packages/private/ml/aiops_change_point_detection @elastic/ml-ui x-pack/platform/packages/shared/ml/aiops_common @elastic/ml-ui x-pack/platform/packages/private/ml/aiops_components @elastic/ml-ui @@ -359,7 +359,7 @@ x-pack/plugins/data_quality @elastic/obs-ux-logs-team test/plugin_functional/plugins/data_search @elastic/kibana-data-discovery packages/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-discovery packages/kbn-data-stream-adapter @elastic/security-threat-hunting -x-pack/plugins/data_usage @elastic/obs-ai-assistant @elastic/security-solution +x-pack/platform/plugins/private/data_usage @elastic/obs-ai-assistant @elastic/security-solution src/plugins/data_view_editor @elastic/kibana-data-discovery examples/data_view_field_editor_example @elastic/kibana-data-discovery src/plugins/data_view_field_editor @elastic/kibana-data-discovery @@ -659,11 +659,11 @@ src/plugins/no_data_page @elastic/appex-sharedux x-pack/plugins/notifications @elastic/appex-sharedux packages/kbn-object-versioning @elastic/appex-sharedux packages/kbn-object-versioning-utils @elastic/appex-sharedux -x-pack/plugins/observability_solution/observability_ai_assistant_app @elastic/obs-ai-assistant -x-pack/plugins/observability_solution/observability_ai_assistant_management @elastic/obs-ai-assistant -x-pack/plugins/observability_solution/observability_ai_assistant @elastic/obs-ai-assistant -x-pack/packages/observability/observability_ai/observability_ai_common @elastic/obs-ai-assistant -x-pack/packages/observability/observability_ai/observability_ai_server @elastic/obs-ai-assistant +x-pack/solutions/observability/plugins/observability_ai_assistant_app @elastic/obs-ai-assistant +x-pack/solutions/observability/plugins/observability_ai_assistant_management @elastic/obs-ai-assistant +x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant @elastic/obs-ai-assistant +x-pack/solutions/observability/packages/observability_ai/observability_ai_common @elastic/obs-ai-assistant +x-pack/solutions/observability/packages/observability_ai/observability_ai_server @elastic/obs-ai-assistant x-pack/packages/observability/alert_details @elastic/obs-ux-management-team x-pack/packages/observability/alerting_rule_utils @elastic/obs-ux-management-team x-pack/packages/observability/alerting_test_data @elastic/obs-ux-management-team diff --git a/.github/paths-labeller.yml b/.github/paths-labeller.yml index dbbefda24c9ac..dc7f4a126fb25 100644 --- a/.github/paths-labeller.yml +++ b/.github/paths-labeller.yml @@ -24,7 +24,7 @@ - 'x-pack/plugins/observability_solution/synthetics/**/*.*' - 'x-pack/plugins/observability_solution/exploratory_view/**/*.*' - 'Team:Obs AI Assistant': - - 'x-pack/plugins/observability_solution/observability_ai_assistant/**/*.*' + - 'x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/**/*.*' - 'x-pack/plugins/observability_solution/observability_ai_assistant_*/**/*.*' - 'x-pack/test/observability_ai_assistant_api_integration/**/*.*' - 'x-pack/test/observability_ai_assistant_functional/**/*.*' diff --git a/.i18nrc.json b/.i18nrc.json index c11b622291838..5ef65fc47ccb8 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -1,7 +1,7 @@ { "paths": { "advancedSettings": "src/plugins/advanced_settings", - "aiAssistantManagementSelection": "src/plugins/ai_assistant_management/selection", + "aiAssistantManagementSelection": "src/platform/plugins/shared/ai_assistant_management/selection", "alerts": "packages/kbn-alerts/src", "alertsUIShared": "packages/kbn-alerts-ui-shared/src", "alertingTypes": "packages/kbn-alerting-types", diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 3266b5e836b27..c00d47d5515ef 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -28,7 +28,7 @@ allowing users to configure their advanced settings, also known as uiSettings within the code. -|{kib-repo}blob/{branch}/src/plugins/ai_assistant_management/selection/README.md[aiAssistantManagementSelection] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/ai_assistant_management/selection/README.md[aiAssistantManagementSelection] |The aiAssistantManagementSelection plugin manages the Ai Assistant management section. @@ -541,7 +541,7 @@ Plugin server-side only. Plugin has three main functions: |In order to make ongoing maintenance of log collection easy we want to introduce the concept of data set quality, where users can easily get an overview on the data sets they have with information such as integration, size, last activity, among others. -|{kib-repo}blob/{branch}/x-pack/plugins/data_usage/README.md[dataUsage] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/private/data_usage/README.md[dataUsage] |Serverless only plugin for users to view data usage @@ -747,15 +747,15 @@ Elastic. |This plugin provides shared components and services for use across observability solutions, as well as the observability landing page UI. -|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/observability_ai_assistant/README.md[observabilityAIAssistant] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/README.md[observabilityAIAssistant] |This document gives an overview of the features of the Observability AI Assistant at the time of writing, and how to use them. At a high level, the Observability AI Assistant offers contextual insights, and a chat functionality that we enrich with function calling, allowing the LLM to hook into the user's data. We also allow the LLM to store things it considers new information as embeddings into Elasticsearch, and query this knowledge base when it decides it needs more information, using ELSER. -|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/observability_ai_assistant_app/README.md[observabilityAIAssistantApp] +|{kib-repo}blob/{branch}/x-pack/solutions/observability/plugins/observability_ai_assistant_app/README.md[observabilityAIAssistantApp] |This app registers defaults functions. It exists as a separate plugin to avoid cyclical dependencies. -|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/observability_ai_assistant_management/README.md[observabilityAiAssistantManagement] +|{kib-repo}blob/{branch}/x-pack/solutions/observability/plugins/observability_ai_assistant_management/README.md[observabilityAiAssistantManagement] |The observabilityAiAssistantManagement plugin manages the Ai Assistant for Observability and Search management section. diff --git a/package.json b/package.json index bcd963b07a2fb..bb1433e7e1c0b 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,7 @@ "@kbn/advanced-settings-plugin": "link:src/plugins/advanced_settings", "@kbn/ai-assistant": "link:x-pack/packages/kbn-ai-assistant", "@kbn/ai-assistant-common": "link:x-pack/packages/kbn-ai-assistant-common", - "@kbn/ai-assistant-management-plugin": "link:src/plugins/ai_assistant_management/selection", + "@kbn/ai-assistant-management-plugin": "link:src/platform/plugins/shared/ai_assistant_management/selection", "@kbn/aiops-change-point-detection": "link:x-pack/platform/packages/private/ml/aiops_change_point_detection", "@kbn/aiops-common": "link:x-pack/platform/packages/shared/ml/aiops_common", "@kbn/aiops-components": "link:x-pack/platform/packages/private/ml/aiops_components", @@ -428,7 +428,7 @@ "@kbn/data-search-plugin": "link:test/plugin_functional/plugins/data_search", "@kbn/data-service": "link:packages/kbn-data-service", "@kbn/data-stream-adapter": "link:packages/kbn-data-stream-adapter", - "@kbn/data-usage-plugin": "link:x-pack/plugins/data_usage", + "@kbn/data-usage-plugin": "link:x-pack/platform/plugins/private/data_usage", "@kbn/data-view-editor-plugin": "link:src/plugins/data_view_editor", "@kbn/data-view-field-editor-example-plugin": "link:examples/data_view_field_editor_example", "@kbn/data-view-field-editor-plugin": "link:src/plugins/data_view_field_editor", @@ -690,11 +690,11 @@ "@kbn/notifications-plugin": "link:x-pack/plugins/notifications", "@kbn/object-versioning": "link:packages/kbn-object-versioning", "@kbn/object-versioning-utils": "link:packages/kbn-object-versioning-utils", - "@kbn/observability-ai-assistant-app-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant_app", - "@kbn/observability-ai-assistant-management-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant_management", - "@kbn/observability-ai-assistant-plugin": "link:x-pack/plugins/observability_solution/observability_ai_assistant", - "@kbn/observability-ai-common": "link:x-pack/packages/observability/observability_ai/observability_ai_common", - "@kbn/observability-ai-server": "link:x-pack/packages/observability/observability_ai/observability_ai_server", + "@kbn/observability-ai-assistant-app-plugin": "link:x-pack/solutions/observability/plugins/observability_ai_assistant_app", + "@kbn/observability-ai-assistant-management-plugin": "link:x-pack/solutions/observability/plugins/observability_ai_assistant_management", + "@kbn/observability-ai-assistant-plugin": "link:x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant", + "@kbn/observability-ai-common": "link:x-pack/solutions/observability/packages/observability_ai/observability_ai_common", + "@kbn/observability-ai-server": "link:x-pack/solutions/observability/packages/observability_ai/observability_ai_server", "@kbn/observability-alert-details": "link:x-pack/packages/observability/alert_details", "@kbn/observability-alerting-rule-utils": "link:x-pack/packages/observability/alerting_rule_utils", "@kbn/observability-alerting-test-data": "link:x-pack/packages/observability/alerting_test_data", diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index fac34d57a0068..9c4ee53787944 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -53,9 +53,9 @@ export const storybookAliases = { management: 'packages/kbn-management/storybook/config', observability: 'x-pack/plugins/observability_solution/observability/.storybook', observability_ai_assistant: - 'x-pack/plugins/observability_solution/observability_ai_assistant/.storybook', + 'x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook', observability_ai_assistant_app: - 'x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook', + 'x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook', observability_shared: 'x-pack/plugins/observability_solution/observability_shared/.storybook', observability_slo: 'x-pack/plugins/observability_solution/slo/.storybook', presentation: 'src/plugins/presentation_util/storybook', diff --git a/src/plugins/ai_assistant_management/selection/README.md b/src/platform/plugins/shared/ai_assistant_management/selection/README.md similarity index 100% rename from src/plugins/ai_assistant_management/selection/README.md rename to src/platform/plugins/shared/ai_assistant_management/selection/README.md diff --git a/src/plugins/ai_assistant_management/selection/common/ai_assistant_type.ts b/src/platform/plugins/shared/ai_assistant_management/selection/common/ai_assistant_type.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/common/ai_assistant_type.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/common/ai_assistant_type.ts diff --git a/src/plugins/ai_assistant_management/selection/common/ui_setting_keys.ts b/src/platform/plugins/shared/ai_assistant_management/selection/common/ui_setting_keys.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/common/ui_setting_keys.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/common/ui_setting_keys.ts diff --git a/src/plugins/ai_assistant_management/selection/jest.config.js b/src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js similarity index 63% rename from src/plugins/ai_assistant_management/selection/jest.config.js rename to src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js index 9106de820a29d..7082a96250d33 100644 --- a/src/plugins/ai_assistant_management/selection/jest.config.js +++ b/src/platform/plugins/shared/ai_assistant_management/selection/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/src/plugins/ai_assistant_management/selection'], + rootDir: '../../../../../..', + roots: ['/src/platform/plugins/shared/ai_assistant_management/selection'], coverageDirectory: - '/target/kibana-coverage/jest/src/plugins/ai_assistant_management/selection', + '/target/kibana-coverage/jest/src/platform/plugins/shared/ai_assistant_management/selection', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/ai_assistant_management/selection/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/shared/ai_assistant_management/selection/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/ai_assistant_management/selection/kibana.jsonc b/src/platform/plugins/shared/ai_assistant_management/selection/kibana.jsonc similarity index 100% rename from src/plugins/ai_assistant_management/selection/kibana.jsonc rename to src/platform/plugins/shared/ai_assistant_management/selection/kibana.jsonc diff --git a/src/plugins/ai_assistant_management/selection/public/app_context.tsx b/src/platform/plugins/shared/ai_assistant_management/selection/public/app_context.tsx similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/app_context.tsx rename to src/platform/plugins/shared/ai_assistant_management/selection/public/app_context.tsx diff --git a/src/plugins/ai_assistant_management/selection/public/index.ts b/src/platform/plugins/shared/ai_assistant_management/selection/public/index.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/index.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/public/index.ts diff --git a/src/plugins/ai_assistant_management/selection/public/management_section/mount_section.tsx b/src/platform/plugins/shared/ai_assistant_management/selection/public/management_section/mount_section.tsx similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/management_section/mount_section.tsx rename to src/platform/plugins/shared/ai_assistant_management/selection/public/management_section/mount_section.tsx diff --git a/src/plugins/ai_assistant_management/selection/public/plugin.ts b/src/platform/plugins/shared/ai_assistant_management/selection/public/plugin.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/plugin.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/public/plugin.ts diff --git a/src/plugins/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.test.tsx b/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.test.tsx similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.test.tsx rename to src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.test.tsx diff --git a/src/plugins/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx b/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx rename to src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/ai_assistant_selection_page.tsx diff --git a/src/plugins/ai_assistant_management/selection/public/routes/components/redirect_to_home_if_unauthorized.tsx b/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/redirect_to_home_if_unauthorized.tsx similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/routes/components/redirect_to_home_if_unauthorized.tsx rename to src/platform/plugins/shared/ai_assistant_management/selection/public/routes/components/redirect_to_home_if_unauthorized.tsx diff --git a/src/plugins/ai_assistant_management/selection/public/routes/config.tsx b/src/platform/plugins/shared/ai_assistant_management/selection/public/routes/config.tsx similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/routes/config.tsx rename to src/platform/plugins/shared/ai_assistant_management/selection/public/routes/config.tsx diff --git a/src/plugins/ai_assistant_management/selection/public/types.ts b/src/platform/plugins/shared/ai_assistant_management/selection/public/types.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/public/types.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/public/types.ts diff --git a/src/plugins/ai_assistant_management/selection/server/config.ts b/src/platform/plugins/shared/ai_assistant_management/selection/server/config.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/server/config.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/server/config.ts diff --git a/src/plugins/ai_assistant_management/selection/server/index.ts b/src/platform/plugins/shared/ai_assistant_management/selection/server/index.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/server/index.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/server/index.ts diff --git a/src/plugins/ai_assistant_management/selection/server/plugin.ts b/src/platform/plugins/shared/ai_assistant_management/selection/server/plugin.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/server/plugin.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/server/plugin.ts diff --git a/src/plugins/ai_assistant_management/selection/server/types.ts b/src/platform/plugins/shared/ai_assistant_management/selection/server/types.ts similarity index 100% rename from src/plugins/ai_assistant_management/selection/server/types.ts rename to src/platform/plugins/shared/ai_assistant_management/selection/server/types.ts diff --git a/src/plugins/ai_assistant_management/selection/tsconfig.json b/src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json similarity index 91% rename from src/plugins/ai_assistant_management/selection/tsconfig.json rename to src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json index 6bd8efe0e80b8..0fc6cec454817 100644 --- a/src/plugins/ai_assistant_management/selection/tsconfig.json +++ b/src/platform/plugins/shared/ai_assistant_management/selection/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 23bb83f446bac..2dd61962fec0e 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -18,8 +18,8 @@ "@kbn/ai-assistant/*": ["x-pack/packages/kbn-ai-assistant/*"], "@kbn/ai-assistant-common": ["x-pack/packages/kbn-ai-assistant-common"], "@kbn/ai-assistant-common/*": ["x-pack/packages/kbn-ai-assistant-common/*"], - "@kbn/ai-assistant-management-plugin": ["src/plugins/ai_assistant_management/selection"], - "@kbn/ai-assistant-management-plugin/*": ["src/plugins/ai_assistant_management/selection/*"], + "@kbn/ai-assistant-management-plugin": ["src/platform/plugins/shared/ai_assistant_management/selection"], + "@kbn/ai-assistant-management-plugin/*": ["src/platform/plugins/shared/ai_assistant_management/selection/*"], "@kbn/aiops-change-point-detection": ["x-pack/platform/packages/private/ml/aiops_change_point_detection"], "@kbn/aiops-change-point-detection/*": ["x-pack/platform/packages/private/ml/aiops_change_point_detection/*"], "@kbn/aiops-common": ["x-pack/platform/packages/shared/ml/aiops_common"], @@ -712,8 +712,8 @@ "@kbn/data-service/*": ["packages/kbn-data-service/*"], "@kbn/data-stream-adapter": ["packages/kbn-data-stream-adapter"], "@kbn/data-stream-adapter/*": ["packages/kbn-data-stream-adapter/*"], - "@kbn/data-usage-plugin": ["x-pack/plugins/data_usage"], - "@kbn/data-usage-plugin/*": ["x-pack/plugins/data_usage/*"], + "@kbn/data-usage-plugin": ["x-pack/platform/plugins/private/data_usage"], + "@kbn/data-usage-plugin/*": ["x-pack/platform/plugins/private/data_usage/*"], "@kbn/data-view-editor-plugin": ["src/plugins/data_view_editor"], "@kbn/data-view-editor-plugin/*": ["src/plugins/data_view_editor/*"], "@kbn/data-view-field-editor-example-plugin": ["examples/data_view_field_editor_example"], @@ -1312,16 +1312,16 @@ "@kbn/object-versioning/*": ["packages/kbn-object-versioning/*"], "@kbn/object-versioning-utils": ["packages/kbn-object-versioning-utils"], "@kbn/object-versioning-utils/*": ["packages/kbn-object-versioning-utils/*"], - "@kbn/observability-ai-assistant-app-plugin": ["x-pack/plugins/observability_solution/observability_ai_assistant_app"], - "@kbn/observability-ai-assistant-app-plugin/*": ["x-pack/plugins/observability_solution/observability_ai_assistant_app/*"], - "@kbn/observability-ai-assistant-management-plugin": ["x-pack/plugins/observability_solution/observability_ai_assistant_management"], - "@kbn/observability-ai-assistant-management-plugin/*": ["x-pack/plugins/observability_solution/observability_ai_assistant_management/*"], - "@kbn/observability-ai-assistant-plugin": ["x-pack/plugins/observability_solution/observability_ai_assistant"], - "@kbn/observability-ai-assistant-plugin/*": ["x-pack/plugins/observability_solution/observability_ai_assistant/*"], - "@kbn/observability-ai-common": ["x-pack/packages/observability/observability_ai/observability_ai_common"], - "@kbn/observability-ai-common/*": ["x-pack/packages/observability/observability_ai/observability_ai_common/*"], - "@kbn/observability-ai-server": ["x-pack/packages/observability/observability_ai/observability_ai_server"], - "@kbn/observability-ai-server/*": ["x-pack/packages/observability/observability_ai/observability_ai_server/*"], + "@kbn/observability-ai-assistant-app-plugin": ["x-pack/solutions/observability/plugins/observability_ai_assistant_app"], + "@kbn/observability-ai-assistant-app-plugin/*": ["x-pack/solutions/observability/plugins/observability_ai_assistant_app/*"], + "@kbn/observability-ai-assistant-management-plugin": ["x-pack/solutions/observability/plugins/observability_ai_assistant_management"], + "@kbn/observability-ai-assistant-management-plugin/*": ["x-pack/solutions/observability/plugins/observability_ai_assistant_management/*"], + "@kbn/observability-ai-assistant-plugin": ["x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant"], + "@kbn/observability-ai-assistant-plugin/*": ["x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/*"], + "@kbn/observability-ai-common": ["x-pack/solutions/observability/packages/observability_ai/observability_ai_common"], + "@kbn/observability-ai-common/*": ["x-pack/solutions/observability/packages/observability_ai/observability_ai_common/*"], + "@kbn/observability-ai-server": ["x-pack/solutions/observability/packages/observability_ai/observability_ai_server"], + "@kbn/observability-ai-server/*": ["x-pack/solutions/observability/packages/observability_ai/observability_ai_server/*"], "@kbn/observability-alert-details": ["x-pack/packages/observability/alert_details"], "@kbn/observability-alert-details/*": ["x-pack/packages/observability/alert_details/*"], "@kbn/observability-alerting-rule-utils": ["x-pack/packages/observability/alerting_rule_utils"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index c6eab5697fd29..9242957fd923c 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -32,7 +32,7 @@ "xpack.dashboard": "plugins/dashboard_enhanced", "xpack.dataQuality": "plugins/data_quality", "xpack.datasetQuality": "plugins/observability_solution/dataset_quality", - "xpack.dataUsage": "plugins/data_usage", + "xpack.dataUsage": "platform/plugins/private/data_usage", "xpack.discover": "plugins/discover_enhanced", "xpack.crossClusterReplication": "plugins/cross_cluster_replication", "xpack.elasticAssistant": "packages/kbn-elastic-assistant", @@ -102,10 +102,10 @@ ], "xpack.observability": "plugins/observability_solution/observability", "xpack.observabilityAiAssistant": [ - "plugins/observability_solution/observability_ai_assistant", - "plugins/observability_solution/observability_ai_assistant_app" + "platform/plugins/shared/observability_solution/observability_ai_assistant", + "solutions/observability/plugins/observability_ai_assistant_app" ], - "xpack.observabilityAiAssistantManagement": "plugins/observability_solution/observability_ai_assistant_management", + "xpack.observabilityAiAssistantManagement": "solutions/observability/plugins/observability_ai_assistant_management", "xpack.observabilityLogsExplorer": "plugins/observability_solution/observability_logs_explorer", "xpack.observability_onboarding": "plugins/observability_solution/observability_onboarding", "xpack.observabilityShared": "plugins/observability_solution/observability_shared", diff --git a/x-pack/plugins/data_usage/README.md b/x-pack/platform/plugins/private/data_usage/README.md similarity index 100% rename from x-pack/plugins/data_usage/README.md rename to x-pack/platform/plugins/private/data_usage/README.md diff --git a/x-pack/plugins/data_usage/common/constants.ts b/x-pack/platform/plugins/private/data_usage/common/constants.ts similarity index 100% rename from x-pack/plugins/data_usage/common/constants.ts rename to x-pack/platform/plugins/private/data_usage/common/constants.ts diff --git a/x-pack/plugins/data_usage/common/experimental_features.ts b/x-pack/platform/plugins/private/data_usage/common/experimental_features.ts similarity index 100% rename from x-pack/plugins/data_usage/common/experimental_features.ts rename to x-pack/platform/plugins/private/data_usage/common/experimental_features.ts diff --git a/x-pack/plugins/data_usage/common/index.ts b/x-pack/platform/plugins/private/data_usage/common/index.ts similarity index 100% rename from x-pack/plugins/data_usage/common/index.ts rename to x-pack/platform/plugins/private/data_usage/common/index.ts diff --git a/x-pack/plugins/data_usage/common/query_client.tsx b/x-pack/platform/plugins/private/data_usage/common/query_client.tsx similarity index 100% rename from x-pack/plugins/data_usage/common/query_client.tsx rename to x-pack/platform/plugins/private/data_usage/common/query_client.tsx diff --git a/x-pack/plugins/data_usage/common/rest_types/data_streams.ts b/x-pack/platform/plugins/private/data_usage/common/rest_types/data_streams.ts similarity index 100% rename from x-pack/plugins/data_usage/common/rest_types/data_streams.ts rename to x-pack/platform/plugins/private/data_usage/common/rest_types/data_streams.ts diff --git a/x-pack/plugins/data_usage/common/rest_types/index.ts b/x-pack/platform/plugins/private/data_usage/common/rest_types/index.ts similarity index 100% rename from x-pack/plugins/data_usage/common/rest_types/index.ts rename to x-pack/platform/plugins/private/data_usage/common/rest_types/index.ts diff --git a/x-pack/plugins/data_usage/common/rest_types/usage_metrics.test.ts b/x-pack/platform/plugins/private/data_usage/common/rest_types/usage_metrics.test.ts similarity index 100% rename from x-pack/plugins/data_usage/common/rest_types/usage_metrics.test.ts rename to x-pack/platform/plugins/private/data_usage/common/rest_types/usage_metrics.test.ts diff --git a/x-pack/plugins/data_usage/common/rest_types/usage_metrics.ts b/x-pack/platform/plugins/private/data_usage/common/rest_types/usage_metrics.ts similarity index 100% rename from x-pack/plugins/data_usage/common/rest_types/usage_metrics.ts rename to x-pack/platform/plugins/private/data_usage/common/rest_types/usage_metrics.ts diff --git a/x-pack/plugins/data_usage/common/test_utils/index.ts b/x-pack/platform/plugins/private/data_usage/common/test_utils/index.ts similarity index 100% rename from x-pack/plugins/data_usage/common/test_utils/index.ts rename to x-pack/platform/plugins/private/data_usage/common/test_utils/index.ts diff --git a/x-pack/plugins/data_usage/common/test_utils/test_provider.tsx b/x-pack/platform/plugins/private/data_usage/common/test_utils/test_provider.tsx similarity index 100% rename from x-pack/plugins/data_usage/common/test_utils/test_provider.tsx rename to x-pack/platform/plugins/private/data_usage/common/test_utils/test_provider.tsx diff --git a/x-pack/plugins/data_usage/common/test_utils/test_query_client_options.ts b/x-pack/platform/plugins/private/data_usage/common/test_utils/test_query_client_options.ts similarity index 100% rename from x-pack/plugins/data_usage/common/test_utils/test_query_client_options.ts rename to x-pack/platform/plugins/private/data_usage/common/test_utils/test_query_client_options.ts diff --git a/x-pack/plugins/data_usage/common/utils.test.ts b/x-pack/platform/plugins/private/data_usage/common/utils.test.ts similarity index 100% rename from x-pack/plugins/data_usage/common/utils.test.ts rename to x-pack/platform/plugins/private/data_usage/common/utils.test.ts diff --git a/x-pack/plugins/data_usage/common/utils.ts b/x-pack/platform/plugins/private/data_usage/common/utils.ts similarity index 100% rename from x-pack/plugins/data_usage/common/utils.ts rename to x-pack/platform/plugins/private/data_usage/common/utils.ts diff --git a/x-pack/plugins/data_usage/jest.config.js b/x-pack/platform/plugins/private/data_usage/jest.config.js similarity index 67% rename from x-pack/plugins/data_usage/jest.config.js rename to x-pack/platform/plugins/private/data_usage/jest.config.js index f73ddf7ec31ee..cc8bf9953aded 100644 --- a/x-pack/plugins/data_usage/jest.config.js +++ b/x-pack/platform/plugins/private/data_usage/jest.config.js @@ -7,9 +7,10 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/data_usage'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/data_usage', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/private/data_usage'], + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/plugins/private/data_usage', coverageReporters: ['text', 'html'], collectCoverageFrom: ['/x-pack/plugins/datas_usage/{common,public}/**/*.{ts,tsx}'], }; diff --git a/x-pack/plugins/data_usage/kibana.jsonc b/x-pack/platform/plugins/private/data_usage/kibana.jsonc similarity index 100% rename from x-pack/plugins/data_usage/kibana.jsonc rename to x-pack/platform/plugins/private/data_usage/kibana.jsonc diff --git a/x-pack/plugins/data_usage/public/app/components/assets/illustration_product_no_results_magnifying_glass.svg b/x-pack/platform/plugins/private/data_usage/public/app/components/assets/illustration_product_no_results_magnifying_glass.svg similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/assets/illustration_product_no_results_magnifying_glass.svg rename to x-pack/platform/plugins/private/data_usage/public/app/components/assets/illustration_product_no_results_magnifying_glass.svg diff --git a/x-pack/plugins/data_usage/public/app/components/chart_panel.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/chart_panel.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/chart_panel.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/chart_panel.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/charts.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/charts.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/charts.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/charts.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/charts_loading.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/charts_loading.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/charts_loading.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/charts_loading.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/data_usage_metrics.test.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/data_usage_metrics.test.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/data_usage_metrics.test.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/data_usage_metrics.test.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/data_usage_metrics.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/data_usage_metrics.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/data_usage_metrics.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/data_usage_metrics.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/dataset_quality_link.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/dataset_quality_link.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/dataset_quality_link.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/dataset_quality_link.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/filters/charts_filter.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/filters/charts_filter.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/filters/charts_filter.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/filters/charts_filter.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/filters/charts_filter_popover.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/filters/charts_filter_popover.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/filters/charts_filter_popover.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/filters/charts_filter_popover.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/filters/charts_filters.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/filters/charts_filters.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/filters/charts_filters.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/filters/charts_filters.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/filters/date_picker.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/filters/date_picker.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/filters/date_picker.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/filters/date_picker.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/filters/toggle_all_button.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/filters/toggle_all_button.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/filters/toggle_all_button.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/filters/toggle_all_button.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/legend_action.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/legend_action.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/legend_action.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/legend_action.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/legend_action_item.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/legend_action_item.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/legend_action_item.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/legend_action_item.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/no_data_callout.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/no_data_callout.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/no_data_callout.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/no_data_callout.tsx diff --git a/x-pack/plugins/data_usage/public/app/components/page.tsx b/x-pack/platform/plugins/private/data_usage/public/app/components/page.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/components/page.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/components/page.tsx diff --git a/x-pack/plugins/data_usage/public/app/data_usage_metrics_page.tsx b/x-pack/platform/plugins/private/data_usage/public/app/data_usage_metrics_page.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/data_usage_metrics_page.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/data_usage_metrics_page.tsx diff --git a/x-pack/plugins/data_usage/public/app/hooks/index.tsx b/x-pack/platform/plugins/private/data_usage/public/app/hooks/index.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/hooks/index.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/hooks/index.tsx diff --git a/x-pack/plugins/data_usage/public/app/hooks/use_charts_filter.tsx b/x-pack/platform/plugins/private/data_usage/public/app/hooks/use_charts_filter.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/hooks/use_charts_filter.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/hooks/use_charts_filter.tsx diff --git a/x-pack/plugins/data_usage/public/app/hooks/use_charts_url_params.test.tsx b/x-pack/platform/plugins/private/data_usage/public/app/hooks/use_charts_url_params.test.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/hooks/use_charts_url_params.test.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/hooks/use_charts_url_params.test.tsx diff --git a/x-pack/plugins/data_usage/public/app/hooks/use_charts_url_params.tsx b/x-pack/platform/plugins/private/data_usage/public/app/hooks/use_charts_url_params.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/hooks/use_charts_url_params.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/hooks/use_charts_url_params.tsx diff --git a/x-pack/plugins/data_usage/public/app/hooks/use_date_picker.tsx b/x-pack/platform/plugins/private/data_usage/public/app/hooks/use_date_picker.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/app/hooks/use_date_picker.tsx rename to x-pack/platform/plugins/private/data_usage/public/app/hooks/use_date_picker.tsx diff --git a/x-pack/plugins/data_usage/public/application.tsx b/x-pack/platform/plugins/private/data_usage/public/application.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/application.tsx rename to x-pack/platform/plugins/private/data_usage/public/application.tsx diff --git a/x-pack/plugins/data_usage/public/hooks/use_get_data_streams.test.tsx b/x-pack/platform/plugins/private/data_usage/public/hooks/use_get_data_streams.test.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/hooks/use_get_data_streams.test.tsx rename to x-pack/platform/plugins/private/data_usage/public/hooks/use_get_data_streams.test.tsx diff --git a/x-pack/plugins/data_usage/public/hooks/use_get_data_streams.ts b/x-pack/platform/plugins/private/data_usage/public/hooks/use_get_data_streams.ts similarity index 100% rename from x-pack/plugins/data_usage/public/hooks/use_get_data_streams.ts rename to x-pack/platform/plugins/private/data_usage/public/hooks/use_get_data_streams.ts diff --git a/x-pack/plugins/data_usage/public/hooks/use_get_usage_metrics.test.tsx b/x-pack/platform/plugins/private/data_usage/public/hooks/use_get_usage_metrics.test.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/hooks/use_get_usage_metrics.test.tsx rename to x-pack/platform/plugins/private/data_usage/public/hooks/use_get_usage_metrics.test.tsx diff --git a/x-pack/plugins/data_usage/public/hooks/use_get_usage_metrics.ts b/x-pack/platform/plugins/private/data_usage/public/hooks/use_get_usage_metrics.ts similarity index 100% rename from x-pack/plugins/data_usage/public/hooks/use_get_usage_metrics.ts rename to x-pack/platform/plugins/private/data_usage/public/hooks/use_get_usage_metrics.ts diff --git a/x-pack/plugins/data_usage/public/hooks/use_test_id_generator.ts b/x-pack/platform/plugins/private/data_usage/public/hooks/use_test_id_generator.ts similarity index 100% rename from x-pack/plugins/data_usage/public/hooks/use_test_id_generator.ts rename to x-pack/platform/plugins/private/data_usage/public/hooks/use_test_id_generator.ts diff --git a/x-pack/plugins/data_usage/public/hooks/use_url_params.ts b/x-pack/platform/plugins/private/data_usage/public/hooks/use_url_params.ts similarity index 100% rename from x-pack/plugins/data_usage/public/hooks/use_url_params.ts rename to x-pack/platform/plugins/private/data_usage/public/hooks/use_url_params.ts diff --git a/x-pack/plugins/data_usage/public/index.ts b/x-pack/platform/plugins/private/data_usage/public/index.ts similarity index 100% rename from x-pack/plugins/data_usage/public/index.ts rename to x-pack/platform/plugins/private/data_usage/public/index.ts diff --git a/x-pack/plugins/data_usage/public/plugin.ts b/x-pack/platform/plugins/private/data_usage/public/plugin.ts similarity index 100% rename from x-pack/plugins/data_usage/public/plugin.ts rename to x-pack/platform/plugins/private/data_usage/public/plugin.ts diff --git a/x-pack/plugins/data_usage/public/translations.tsx b/x-pack/platform/plugins/private/data_usage/public/translations.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/translations.tsx rename to x-pack/platform/plugins/private/data_usage/public/translations.tsx diff --git a/x-pack/plugins/data_usage/public/types.ts b/x-pack/platform/plugins/private/data_usage/public/types.ts similarity index 100% rename from x-pack/plugins/data_usage/public/types.ts rename to x-pack/platform/plugins/private/data_usage/public/types.ts diff --git a/x-pack/plugins/data_usage/public/utils/format_bytes.test.ts b/x-pack/platform/plugins/private/data_usage/public/utils/format_bytes.test.ts similarity index 100% rename from x-pack/plugins/data_usage/public/utils/format_bytes.test.ts rename to x-pack/platform/plugins/private/data_usage/public/utils/format_bytes.test.ts diff --git a/x-pack/plugins/data_usage/public/utils/format_bytes.ts b/x-pack/platform/plugins/private/data_usage/public/utils/format_bytes.ts similarity index 100% rename from x-pack/plugins/data_usage/public/utils/format_bytes.ts rename to x-pack/platform/plugins/private/data_usage/public/utils/format_bytes.ts diff --git a/x-pack/plugins/data_usage/public/utils/use_breadcrumbs.tsx b/x-pack/platform/plugins/private/data_usage/public/utils/use_breadcrumbs.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/utils/use_breadcrumbs.tsx rename to x-pack/platform/plugins/private/data_usage/public/utils/use_breadcrumbs.tsx diff --git a/x-pack/plugins/data_usage/public/utils/use_kibana.tsx b/x-pack/platform/plugins/private/data_usage/public/utils/use_kibana.tsx similarity index 100% rename from x-pack/plugins/data_usage/public/utils/use_kibana.tsx rename to x-pack/platform/plugins/private/data_usage/public/utils/use_kibana.tsx diff --git a/x-pack/plugins/data_usage/server/common/errors.ts b/x-pack/platform/plugins/private/data_usage/server/common/errors.ts similarity index 100% rename from x-pack/plugins/data_usage/server/common/errors.ts rename to x-pack/platform/plugins/private/data_usage/server/common/errors.ts diff --git a/x-pack/plugins/data_usage/server/config.ts b/x-pack/platform/plugins/private/data_usage/server/config.ts similarity index 100% rename from x-pack/plugins/data_usage/server/config.ts rename to x-pack/platform/plugins/private/data_usage/server/config.ts diff --git a/x-pack/plugins/data_usage/server/errors.ts b/x-pack/platform/plugins/private/data_usage/server/errors.ts similarity index 100% rename from x-pack/plugins/data_usage/server/errors.ts rename to x-pack/platform/plugins/private/data_usage/server/errors.ts diff --git a/x-pack/plugins/data_usage/server/index.ts b/x-pack/platform/plugins/private/data_usage/server/index.ts similarity index 100% rename from x-pack/plugins/data_usage/server/index.ts rename to x-pack/platform/plugins/private/data_usage/server/index.ts diff --git a/x-pack/plugins/data_usage/server/mocks/index.ts b/x-pack/platform/plugins/private/data_usage/server/mocks/index.ts similarity index 100% rename from x-pack/plugins/data_usage/server/mocks/index.ts rename to x-pack/platform/plugins/private/data_usage/server/mocks/index.ts diff --git a/x-pack/plugins/data_usage/server/plugin.ts b/x-pack/platform/plugins/private/data_usage/server/plugin.ts similarity index 100% rename from x-pack/plugins/data_usage/server/plugin.ts rename to x-pack/platform/plugins/private/data_usage/server/plugin.ts diff --git a/x-pack/plugins/data_usage/server/routes/error_handler.ts b/x-pack/platform/plugins/private/data_usage/server/routes/error_handler.ts similarity index 100% rename from x-pack/plugins/data_usage/server/routes/error_handler.ts rename to x-pack/platform/plugins/private/data_usage/server/routes/error_handler.ts diff --git a/x-pack/plugins/data_usage/server/routes/index.tsx b/x-pack/platform/plugins/private/data_usage/server/routes/index.tsx similarity index 100% rename from x-pack/plugins/data_usage/server/routes/index.tsx rename to x-pack/platform/plugins/private/data_usage/server/routes/index.tsx diff --git a/x-pack/plugins/data_usage/server/routes/internal/data_streams.test.ts b/x-pack/platform/plugins/private/data_usage/server/routes/internal/data_streams.test.ts similarity index 100% rename from x-pack/plugins/data_usage/server/routes/internal/data_streams.test.ts rename to x-pack/platform/plugins/private/data_usage/server/routes/internal/data_streams.test.ts diff --git a/x-pack/plugins/data_usage/server/routes/internal/data_streams.ts b/x-pack/platform/plugins/private/data_usage/server/routes/internal/data_streams.ts similarity index 100% rename from x-pack/plugins/data_usage/server/routes/internal/data_streams.ts rename to x-pack/platform/plugins/private/data_usage/server/routes/internal/data_streams.ts diff --git a/x-pack/plugins/data_usage/server/routes/internal/data_streams_handler.ts b/x-pack/platform/plugins/private/data_usage/server/routes/internal/data_streams_handler.ts similarity index 100% rename from x-pack/plugins/data_usage/server/routes/internal/data_streams_handler.ts rename to x-pack/platform/plugins/private/data_usage/server/routes/internal/data_streams_handler.ts diff --git a/x-pack/plugins/data_usage/server/routes/internal/index.tsx b/x-pack/platform/plugins/private/data_usage/server/routes/internal/index.tsx similarity index 100% rename from x-pack/plugins/data_usage/server/routes/internal/index.tsx rename to x-pack/platform/plugins/private/data_usage/server/routes/internal/index.tsx diff --git a/x-pack/plugins/data_usage/server/routes/internal/usage_metrics.test.ts b/x-pack/platform/plugins/private/data_usage/server/routes/internal/usage_metrics.test.ts similarity index 100% rename from x-pack/plugins/data_usage/server/routes/internal/usage_metrics.test.ts rename to x-pack/platform/plugins/private/data_usage/server/routes/internal/usage_metrics.test.ts diff --git a/x-pack/plugins/data_usage/server/routes/internal/usage_metrics.ts b/x-pack/platform/plugins/private/data_usage/server/routes/internal/usage_metrics.ts similarity index 100% rename from x-pack/plugins/data_usage/server/routes/internal/usage_metrics.ts rename to x-pack/platform/plugins/private/data_usage/server/routes/internal/usage_metrics.ts diff --git a/x-pack/plugins/data_usage/server/routes/internal/usage_metrics_handler.ts b/x-pack/platform/plugins/private/data_usage/server/routes/internal/usage_metrics_handler.ts similarity index 100% rename from x-pack/plugins/data_usage/server/routes/internal/usage_metrics_handler.ts rename to x-pack/platform/plugins/private/data_usage/server/routes/internal/usage_metrics_handler.ts diff --git a/x-pack/plugins/data_usage/server/services/app_context.ts b/x-pack/platform/plugins/private/data_usage/server/services/app_context.ts similarity index 100% rename from x-pack/plugins/data_usage/server/services/app_context.ts rename to x-pack/platform/plugins/private/data_usage/server/services/app_context.ts diff --git a/x-pack/plugins/data_usage/server/services/autoops_api.ts b/x-pack/platform/plugins/private/data_usage/server/services/autoops_api.ts similarity index 100% rename from x-pack/plugins/data_usage/server/services/autoops_api.ts rename to x-pack/platform/plugins/private/data_usage/server/services/autoops_api.ts diff --git a/x-pack/plugins/data_usage/server/services/index.ts b/x-pack/platform/plugins/private/data_usage/server/services/index.ts similarity index 100% rename from x-pack/plugins/data_usage/server/services/index.ts rename to x-pack/platform/plugins/private/data_usage/server/services/index.ts diff --git a/x-pack/plugins/data_usage/server/types/index.ts b/x-pack/platform/plugins/private/data_usage/server/types/index.ts similarity index 100% rename from x-pack/plugins/data_usage/server/types/index.ts rename to x-pack/platform/plugins/private/data_usage/server/types/index.ts diff --git a/x-pack/plugins/data_usage/server/types/types.ts b/x-pack/platform/plugins/private/data_usage/server/types/types.ts similarity index 100% rename from x-pack/plugins/data_usage/server/types/types.ts rename to x-pack/platform/plugins/private/data_usage/server/types/types.ts diff --git a/x-pack/plugins/data_usage/server/utils/custom_http_request_error.ts b/x-pack/platform/plugins/private/data_usage/server/utils/custom_http_request_error.ts similarity index 100% rename from x-pack/plugins/data_usage/server/utils/custom_http_request_error.ts rename to x-pack/platform/plugins/private/data_usage/server/utils/custom_http_request_error.ts diff --git a/x-pack/plugins/data_usage/server/utils/get_metering_stats.ts b/x-pack/platform/plugins/private/data_usage/server/utils/get_metering_stats.ts similarity index 100% rename from x-pack/plugins/data_usage/server/utils/get_metering_stats.ts rename to x-pack/platform/plugins/private/data_usage/server/utils/get_metering_stats.ts diff --git a/x-pack/plugins/data_usage/server/utils/index.ts b/x-pack/platform/plugins/private/data_usage/server/utils/index.ts similarity index 100% rename from x-pack/plugins/data_usage/server/utils/index.ts rename to x-pack/platform/plugins/private/data_usage/server/utils/index.ts diff --git a/x-pack/plugins/data_usage/tsconfig.json b/x-pack/platform/plugins/private/data_usage/tsconfig.json similarity index 91% rename from x-pack/plugins/data_usage/tsconfig.json rename to x-pack/platform/plugins/private/data_usage/tsconfig.json index 8647f7957451a..6ebec73506c67 100644 --- a/x-pack/plugins/data_usage/tsconfig.json +++ b/x-pack/platform/plugins/private/data_usage/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, @@ -8,7 +8,7 @@ "common/**/*", "public/**/*", "server/**/*", - "../../../typings/**/*" + "../../../../../typings/**/*" ], "kbn_references": [ "@kbn/core", diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/.storybook/jest_setup.js b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook/jest_setup.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/.storybook/jest_setup.js rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook/jest_setup.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/.storybook/main.js b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook/main.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/.storybook/main.js rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook/main.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/.storybook/preview.js b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook/preview.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/.storybook/preview.js rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook/preview.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/README.md b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/README.md similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/README.md rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/README.md diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/TRACING.md b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/TRACING.md similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/TRACING.md rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/TRACING.md diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/capabilities.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/capabilities.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/capabilities.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/capabilities.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/connectors.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/connectors.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/connectors.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/connectors.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/conversation_complete.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/conversation_complete.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/conversation_complete.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/conversation_complete.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/convert_messages_for_inference.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/convert_messages_for_inference.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/convert_messages_for_inference.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/convert_messages_for_inference.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/feature.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/feature.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/feature.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/feature.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/functions/function_visibility.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/functions/function_visibility.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/functions/function_visibility.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/functions/function_visibility.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/functions/types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/functions/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/functions/types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/functions/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/functions/visualize_esql.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/functions/visualize_esql.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/functions/visualize_esql.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/functions/visualize_esql.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/rule_connector.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/rule_connector.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/rule_connector.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/rule_connector.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/ui_settings/settings_keys.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/ui_settings/settings_keys.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/ui_settings/settings_keys.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/ui_settings/settings_keys.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/concatenate_chat_completion_chunks.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/concatenate_chat_completion_chunks.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/concatenate_chat_completion_chunks.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/concatenate_chat_completion_chunks.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/create_function_request_message.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/create_function_request_message.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/create_function_request_message.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/create_function_request_message.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/create_function_response_message.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/create_function_response_message.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/create_function_response_message.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/create_function_response_message.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/emit_with_concatenated_message.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/emit_with_concatenated_message.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/emit_with_concatenated_message.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/emit_with_concatenated_message.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/filter_function_definitions.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/filter_function_definitions.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/filter_function_definitions.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/filter_function_definitions.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/calculate_auto.js b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/calculate_auto.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/calculate_auto.js rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/calculate_auto.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/unit_to_seconds.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/unit_to_seconds.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/unit_to_seconds.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/get_bucket_size/unit_to_seconds.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/short_id_table.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/short_id_table.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/short_id_table.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/short_id_table.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/short_id_table.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/short_id_table.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/short_id_table.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/short_id_table.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/throw_serialized_chat_completion_errors.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/throw_serialized_chat_completion_errors.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/throw_serialized_chat_completion_errors.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/throw_serialized_chat_completion_errors.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/until_aborted.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/until_aborted.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/until_aborted.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/until_aborted.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/with_token_budget.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/with_token_budget.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/with_token_budget.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/with_token_budget.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/with_token_budget.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/with_token_budget.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/with_token_budget.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/with_token_budget.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/without_token_count_events.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/without_token_count_events.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/common/utils/without_token_count_events.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common/utils/without_token_count_events.ts diff --git a/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js new file mode 100644 index 0000000000000..4ff20cb91d531 --- /dev/null +++ b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/jest.config.js @@ -0,0 +1,25 @@ +/* + * 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 = { + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: [ + '/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public', + '/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/common', + '/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server', + ], + setupFiles: [ + '/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/.storybook/jest_setup.js', + ], + collectCoverage: true, + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/{common,public,server}/**/*.{js,ts,tsx}', + ], + + coverageReporters: ['html'], +}; diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/kibana.jsonc b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/kibana.jsonc similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/kibana.jsonc rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/kibana.jsonc diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/chat_feedback.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/chat_feedback.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/chat_feedback.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/chat_feedback.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/common.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/common.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/common.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/common.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_feedback.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_feedback.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_feedback.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_feedback.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_response.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_response.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_response.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/insight_response.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/user_sent_prompt.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/user_sent_prompt.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/schemas/user_sent_prompt.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/schemas/user_sent_prompt.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/telemetry_event_type.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/telemetry_event_type.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/analytics/telemetry_event_type.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/analytics/telemetry_event_type.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/api/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/api/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/api/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/api/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/assets/elastic_ai_assistant.png b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/assets/elastic_ai_assistant.png similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/assets/elastic_ai_assistant.png rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/assets/elastic_ai_assistant.png diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/assets/illustration.png b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/assets/illustration.png similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/assets/illustration.png rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/assets/illustration.png diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/assets/illustration.svg b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/assets/illustration.svg similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/assets/illustration.svg rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/assets/illustration.svg diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/assistant_avatar.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/assistant_avatar.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/assistant_avatar.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/feedback_buttons.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/feedback_buttons.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/feedback_buttons.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/feedback_buttons.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/regenerate_response_button.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/start_chat_button.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/buttons/stop_generating_button.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/chat/chat_item_controls.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/chat/chat_item_controls.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/chat/chat_item_controls.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/chat/chat_item_controls.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/chat/types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/chat/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/chat/types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/chat/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/connector_selector/connector_selector_base.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/actions_menu.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/actions_menu.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/actions_menu.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/actions_menu.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight_base.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight_base.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight_base.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight_base.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight_base.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight_base.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight_base.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight_base.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight_error.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight_error.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/insight/insight_error.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/insight/insight_error.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/esql_code_block.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/failed_to_load_response.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/failed_to_load_response.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/failed_to_load_response.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/failed_to_load_response.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.stories.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.stories.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/message_panel.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/message_text.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/message_text.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/message_panel/message_text.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/message_panel/message_text.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/components/missing_credentials_callout.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/missing_credentials_callout.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/components/missing_credentials_callout.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/components/missing_credentials_callout.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_chat_service_context.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_chat_service_context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_chat_service_context.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_chat_service_context.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_multipane_flyout_context.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_multipane_flyout_context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_multipane_flyout_context.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_multipane_flyout_context.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_provider.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_provider.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_provider.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/context/observability_ai_assistant_provider.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_abortable_async.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_abortable_async.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_abortable_async.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_abortable_async.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_chat.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_chat.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_chat.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_chat.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_chat.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_chat.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_chat.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_chat.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_flyout_state.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_flyout_state.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_flyout_state.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_flyout_state.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_genai_connectors.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_genai_connectors.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_genai_connectors.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_genai_connectors.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_kibana.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_kibana.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_kibana.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_kibana.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant_chat_service.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant_chat_service.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant_chat_service.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_observability_ai_assistant_chat_service.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_once.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_once.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/hooks/use_once.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/hooks/use_once.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/mock.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/mock.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/mock.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/mock.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/plugin.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/plugin.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/plugin.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/plugin.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/complete.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/complete.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/service/complete.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/complete.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/complete.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/complete.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/service/complete.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/complete.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_chat_service.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_chat_service.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_chat_service.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_chat_service.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_chat_service.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_chat_service.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_chat_service.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_chat_service.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_mock_chat_service.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_mock_chat_service.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_mock_chat_service.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_mock_chat_service.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_service.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/service/create_service.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/create_service.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/service/default_starter_prompts.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/default_starter_prompts.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/service/default_starter_prompts.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/service/default_starter_prompts.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/storybook_mock.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/storybook_mock.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/storybook_mock.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/storybook_mock.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/builders.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/builders.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/builders.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/builders.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/create_function_response_error.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/create_function_response_error.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/create_function_response_error.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/create_function_response_error.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/create_screen_context_action.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/create_screen_context_action.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/create_screen_context_action.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/create_screen_context_action.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/get_connectors_management_href.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/get_connectors_management_href.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/get_connectors_management_href.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/get_connectors_management_href.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/get_contextual_insight_messages.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/get_contextual_insight_messages.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/get_contextual_insight_messages.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/get_contextual_insight_messages.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/get_models_management_href.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/get_models_management_href.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/get_models_management_href.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/get_models_management_href.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/readable_stream_reader_into_observable.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/readable_stream_reader_into_observable.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/readable_stream_reader_into_observable.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/readable_stream_reader_into_observable.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/storybook_decorator.tsx b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/storybook_decorator.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/public/utils/storybook_decorator.tsx rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/public/utils/storybook_decorator.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/analytics/recall_ranking.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/config.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/config.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/config.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/config.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/context.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/context.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/context.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/context.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/elasticsearch.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/elasticsearch.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/elasticsearch.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/elasticsearch.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/execute_connector.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/execute_connector.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/execute_connector.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/execute_connector.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/get_relevant_field_names.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/get_relevant_field_names.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/get_relevant_field_names.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/get_relevant_field_names.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/index.ts similarity index 98% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/index.ts index ce4c8e59fbae2..244c867e7f644 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/index.ts +++ b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/index.ts @@ -15,7 +15,7 @@ import { registerKibanaFunction } from './kibana'; import { registerExecuteConnectorFunction } from './execute_connector'; import { GET_DATA_ON_SCREEN_FUNCTION_NAME } from '../service/chat_function_client'; -// cannot be imported from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/index.ts due to circular dependency +// cannot be imported from x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/index.ts due to circular dependency export const QUERY_FUNCTION_NAME = 'query'; export type FunctionRegistrationParameters = Omit< diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/kibana.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/kibana.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/kibana.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/kibana.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/summarize.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/summarize.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/summarize.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/functions/summarize.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/plugin.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/plugin.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/plugin.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/plugin.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/chat/route.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/chat/route.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/chat/route.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/chat/route.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/connectors/route.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/connectors/route.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/connectors/route.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/connectors/route.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/conversations/route.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/conversations/route.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/conversations/route.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/conversations/route.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/create_observability_ai_assistant_server_route.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/create_observability_ai_assistant_server_route.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/create_observability_ai_assistant_server_route.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/create_observability_ai_assistant_server_route.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/functions/route.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/functions/route.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/functions/route.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/functions/route.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/get_global_observability_ai_assistant_route_repository.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/get_global_observability_ai_assistant_route_repository.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/get_global_observability_ai_assistant_route_repository.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/get_global_observability_ai_assistant_route_repository.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/register_routes.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/register_routes.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/register_routes.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/register_routes.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/runtime_types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/runtime_types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/runtime_types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/runtime_types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/routes/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/chat_function_client/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/get_context_function_request_if_needed.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/index.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/index.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_span_attributes.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_span_attributes.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_span_attributes.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_span_attributes.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_tracer.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_tracer.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_tracer.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/get_langtrace_tracer.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/init_langtrace.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/init_langtrace.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/init_langtrace.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/init_langtrace.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/instrumentation/lang_tracer.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/catch_function_not_found_error.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/catch_function_not_found_error.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/catch_function_not_found_error.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/catch_function_not_found_error.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/continue_conversation.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/continue_conversation.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/continue_conversation.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/continue_conversation.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/convert_inference_events_to_streaming_events.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/convert_inference_events_to_streaming_events.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/convert_inference_events_to_streaming_events.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/convert_inference_events_to_streaming_events.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/debug.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/debug.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/debug.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/debug.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/extract_messages.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/extract_messages.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/extract_messages.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/extract_messages.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/extract_token_count.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/extract_token_count.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/extract_token_count.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/extract_token_count.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/fail_on_non_existing_function_call.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/fail_on_non_existing_function_call.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/fail_on_non_existing_function_call.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/fail_on_non_existing_function_call.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/get_generated_title.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/hide_token_count_events.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/hide_token_count_events.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/hide_token_count_events.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/hide_token_count_events.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/instrument_and_count_tokens.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/instrument_and_count_tokens.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/client/operators/instrument_and_count_tokens.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/client/operators/instrument_and_count_tokens.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/conversation_component_template.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/conversation_component_template.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/conversation_component_template.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/conversation_component_template.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/inference_endpoint.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/inference_endpoint.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/inference_endpoint.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/inference_endpoint.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/kb_component_template.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/kb_component_template.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/kb_component_template.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/kb_component_template.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/index.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/index.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/knowledge_base_service/recall_from_search_connectors.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/setup_conversation_and_kb_index_assets.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/setup_conversation_and_kb_index_assets.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/setup_conversation_and_kb_index_assets.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/setup_conversation_and_kb_index_assets.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/task_manager_definitions/register_migrate_knowledge_base_entries_task.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/task_manager_definitions/register_migrate_knowledge_base_entries_task.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/task_manager_definitions/register_migrate_knowledge_base_entries_task.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/task_manager_definitions/register_migrate_knowledge_base_entries_task.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/catch_function_limit_exceeded_error.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/catch_function_limit_exceeded_error.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/catch_function_limit_exceeded_error.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/catch_function_limit_exceeded_error.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/create_server_side_function_response_error.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/create_server_side_function_response_error.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/create_server_side_function_response_error.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/create_server_side_function_response_error.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/flush_buffer.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/flush_buffer.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/flush_buffer.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/flush_buffer.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_access_query.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_access_query.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_access_query.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_access_query.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_category_query.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_category_query.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_category_query.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_category_query.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/get_system_message_from_instructions.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/observable_into_openai_stream.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/observable_into_openai_stream.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/observable_into_openai_stream.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/observable_into_openai_stream.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/observable_into_stream.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/observable_into_stream.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/observable_into_stream.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/observable_into_stream.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/replace_system_message.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/replace_system_message.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/replace_system_message.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/replace_system_message.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/stream_into_observable.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/stream_into_observable.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/stream_into_observable.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/stream_into_observable.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/with_assistant_span.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/with_assistant_span.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/service/util/with_assistant_span.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/service/util/with_assistant_span.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/types.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/types.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.test.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.test.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/parse_suggestion_scores.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/recall_and_score.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/recall_and_score.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/recall_and_score.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/recall_and_score.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/score_suggestions.ts b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/score_suggestions.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant/server/utils/recall/score_suggestions.ts rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/server/utils/recall/score_suggestions.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/tsconfig.json b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json similarity index 93% rename from x-pack/plugins/observability_solution/observability_ai_assistant/tsconfig.json rename to x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json index a79df51d65af7..db9c1cddae90a 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/tsconfig.json +++ b/x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../typings/**/*", + "../../../../../typings/**/*", "common/**/*", "public/**/*", "scripts/**/*", diff --git a/x-pack/plugins/enterprise_search/kibana.jsonc b/x-pack/plugins/enterprise_search/kibana.jsonc index 42e4db528a759..1d378a8e95d8d 100644 --- a/x-pack/plugins/enterprise_search/kibana.jsonc +++ b/x-pack/plugins/enterprise_search/kibana.jsonc @@ -3,7 +3,7 @@ "id": "@kbn/enterprise-search-plugin", "owner": "@elastic/search-kibana", // TODO this is currently used from Observability too, must be refactored before solution-specific builds - // see x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx + // see x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx // cc sphilipse "group": "search", "visibility": "private", diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/jest.config.js b/x-pack/plugins/observability_solution/observability_ai_assistant/jest.config.js deleted file mode 100644 index b684a6126e537..0000000000000 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/jest.config.js +++ /dev/null @@ -1,25 +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 = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: [ - '/x-pack/plugins/observability_solution/observability_ai_assistant/public', - '/x-pack/plugins/observability_solution/observability_ai_assistant/common', - '/x-pack/plugins/observability_solution/observability_ai_assistant/server', - ], - setupFiles: [ - '/x-pack/plugins/observability_solution/observability_ai_assistant/.storybook/jest_setup.js', - ], - collectCoverage: true, - collectCoverageFrom: [ - '/x-pack/plugins/observability_solution/observability_ai_assistant/{common,public,server}/**/*.{js,ts,tsx}', - ], - - coverageReporters: ['html'], -}; diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/jest.config.js b/x-pack/plugins/observability_solution/observability_ai_assistant_app/jest.config.js deleted file mode 100644 index 7e3fb9e750448..0000000000000 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_app/jest.config.js +++ /dev/null @@ -1,25 +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 = { - preset: '@kbn/test', - rootDir: '../../../..', - roots: [ - '/x-pack/plugins/observability_solution/observability_ai_assistant_app/public', - '/x-pack/plugins/observability_solution/observability_ai_assistant_app/common', - '/x-pack/plugins/observability_solution/observability_ai_assistant_app/server', - ], - setupFiles: [ - '/x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/jest_setup.js', - ], - collectCoverage: true, - collectCoverageFrom: [ - '/x-pack/plugins/observability_solution/observability_ai_assistant_app/{common,public,server}/**/*.{js,ts,tsx}', - ], - - coverageReporters: ['html'], -}; diff --git a/x-pack/plugins/search_connectors/kibana.jsonc b/x-pack/plugins/search_connectors/kibana.jsonc index 6290b9692b384..45ae79ec2cb5c 100644 --- a/x-pack/plugins/search_connectors/kibana.jsonc +++ b/x-pack/plugins/search_connectors/kibana.jsonc @@ -3,7 +3,7 @@ "id": "@kbn/search-connectors-plugin", "owner": "@elastic/search-kibana", // TODO this is currently used from Observability too, must be refactored before solution-specific builds - // see x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx + // see x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx // cc sphilipse "group": "search", "visibility": "private", diff --git a/x-pack/packages/observability/observability_ai/observability_ai_common/jest.config.js b/x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js similarity index 58% rename from x-pack/packages/observability/observability_ai/observability_ai_common/jest.config.js rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js index d99760c04c1c0..3620ef5a1c254 100644 --- a/x-pack/packages/observability/observability_ai/observability_ai_common/jest.config.js +++ b/x-pack/solutions/observability/packages/observability_ai/observability_ai_common/jest.config.js @@ -7,9 +7,9 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', + rootDir: '../../../../../..', roots: [ - '/x-pack/packages/observability/observability_ai/observability_ai_common', - '/x-pack/packages/observability/observability_ai/observability_ai_server', + '/x-pack/solutions/observability/packages/observability_ai/observability_ai_common', + '/x-pack/solutions/observability/packages/observability_ai/observability_ai_server', ], }; diff --git a/x-pack/packages/observability/observability_ai/observability_ai_common/kibana.jsonc b/x-pack/solutions/observability/packages/observability_ai/observability_ai_common/kibana.jsonc similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_common/kibana.jsonc rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_common/kibana.jsonc diff --git a/x-pack/packages/observability/observability_ai/observability_ai_common/package.json b/x-pack/solutions/observability/packages/observability_ai/observability_ai_common/package.json similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_common/package.json rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_common/package.json diff --git a/x-pack/packages/observability/observability_ai/observability_ai_common/root_cause_analysis/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_common/root_cause_analysis/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_common/root_cause_analysis/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_common/root_cause_analysis/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_common/root_cause_analysis/tool_names.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_common/root_cause_analysis/tool_names.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_common/root_cause_analysis/tool_names.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_common/root_cause_analysis/tool_names.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_common/tsconfig.json b/x-pack/solutions/observability/packages/observability_ai/observability_ai_common/tsconfig.json similarity index 81% rename from x-pack/packages/observability/observability_ai/observability_ai_common/tsconfig.json rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_common/tsconfig.json index bb7b89b5671a0..af23c916b5d13 100644 --- a/x-pack/packages/observability/observability_ai/observability_ai_common/tsconfig.json +++ b/x-pack/solutions/observability/packages/observability_ai/observability_ai_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/observability/observability_ai/observability_ai_server/jest.config.js b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js similarity index 67% rename from x-pack/packages/observability/observability_ai/observability_ai_server/jest.config.js rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js index f395d4bf3bb03..8aa1c2d673222 100644 --- a/x-pack/packages/observability/observability_ai/observability_ai_server/jest.config.js +++ b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/jest.config.js @@ -7,6 +7,8 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../../..', - roots: ['/x-pack/packages/observability/observability_ai/observability_ai_server'], + rootDir: '../../../../../..', + roots: [ + '/x-pack/solutions/observability/packages/observability_ai/observability_ai_server', + ], }; diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/kibana.jsonc b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/kibana.jsonc similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/kibana.jsonc rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/kibana.jsonc diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/package.json b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/package.json similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/package.json rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/package.json diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/call_end_rca_process_tool.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/call_end_rca_process_tool.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/call_end_rca_process_tool.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/call_end_rca_process_tool.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/call_investigate_entity_tool.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/call_investigate_entity_tool.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/call_investigate_entity_tool.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/call_investigate_entity_tool.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/call_observe_tool.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/call_observe_tool.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/call_observe_tool.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/call_observe_tool.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/empty_assistant_message.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/empty_assistant_message.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/empty_assistant_message.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/empty_assistant_message.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/prompts/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/prompts/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/prompts/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/prompts/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/run_root_cause_analysis.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/run_root_cause_analysis.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/run_root_cause_analysis.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/run_root_cause_analysis.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/analyze_log_patterns/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/analyze_log_patterns/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/analyze_log_patterns/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/analyze_log_patterns/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_entity/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_entity/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_entity/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_entity/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_log_patterns/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_log_patterns/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_log_patterns/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/describe_log_patterns/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/analyze_fetched_related_entities.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/analyze_fetched_related_entities.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/analyze_fetched_related_entities.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/analyze_fetched_related_entities.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/extract_related_entities.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/extract_related_entities.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/extract_related_entities.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/extract_related_entities.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/write_keyword_searches_for_related_entities.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/write_keyword_searches_for_related_entities.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/write_keyword_searches_for_related_entities.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/find_related_entities/write_keyword_searches_for_related_entities.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/generate_timeline/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/generate_timeline/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/generate_timeline/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/generate_timeline/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/get_knowledge_base_entries/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/get_knowledge_base_entries/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/get_knowledge_base_entries/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/get_knowledge_base_entries/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/prompts.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/prompts.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/prompts.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/prompts.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/types.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/types.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/types.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/investigate_entity/types.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/observe_investigation_results/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/observe_investigation_results/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/observe_investigation_results/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/observe_investigation_results/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_entity_investigation_report/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_entity_investigation_report/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_entity_investigation_report/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_entity_investigation_report/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_final_report/index.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_final_report/index.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_final_report/index.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tasks/write_final_report/index.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tools.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tools.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/tools.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/tools.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/types.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/types.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/types.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/types.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/call_tools.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/call_tools.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/call_tools.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/call_tools.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/chunk_output_calls.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/chunk_output_calls.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/chunk_output_calls.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/chunk_output_calls.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/format_entity.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/format_entity.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/format_entity.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/format_entity.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/get_previously_investigated_entities.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/get_previously_investigated_entities.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/get_previously_investigated_entities.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/get_previously_investigated_entities.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/serialize_knowledge_base_entries.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/serialize_knowledge_base_entries.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/serialize_knowledge_base_entries.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/serialize_knowledge_base_entries.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/stringify_summaries.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/stringify_summaries.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/stringify_summaries.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/stringify_summaries.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/to_blockquote.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/to_blockquote.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/to_blockquote.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/to_blockquote.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/validate_investigate_entity_tool_call.ts b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/validate_investigate_entity_tool_call.ts similarity index 100% rename from x-pack/packages/observability/observability_ai/observability_ai_server/root_cause_analysis/util/validate_investigate_entity_tool_call.ts rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/root_cause_analysis/util/validate_investigate_entity_tool_call.ts diff --git a/x-pack/packages/observability/observability_ai/observability_ai_server/tsconfig.json b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/tsconfig.json similarity index 91% rename from x-pack/packages/observability/observability_ai/observability_ai_server/tsconfig.json rename to x-pack/solutions/observability/packages/observability_ai/observability_ai_server/tsconfig.json index 06ded9c70b4ee..59f73df4273c8 100644 --- a/x-pack/packages/observability/observability_ai/observability_ai_server/tsconfig.json +++ b/x-pack/solutions/observability/packages/observability_ai/observability_ai_server/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/observability_solution/observability_ai_assistant_app/.storybook/jest_setup.js b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/jest_setup.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/jest_setup.js rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/jest_setup.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/main.js b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/main.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/main.js rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/main.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/preview.js b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/preview.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/preview.js rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/preview.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/storybook_decorator.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/storybook_decorator.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/.storybook/storybook_decorator.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/storybook_decorator.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/README.md b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/README.md similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/README.md rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/README.md diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/common/functions/changes/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/functions/changes/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/common/functions/changes/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/functions/changes/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/common/functions/lens.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/functions/lens.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/common/functions/lens.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/functions/lens.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/common/functions/visualize_esql.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/functions/visualize_esql.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/common/functions/visualize_esql.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/functions/visualize_esql.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/common/rule_connector.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/rule_connector.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/common/rule_connector.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/common/rule_connector.ts diff --git a/x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js new file mode 100644 index 0000000000000..5238f7a7cd889 --- /dev/null +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/jest.config.js @@ -0,0 +1,25 @@ +/* + * 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 = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: [ + '/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public', + '/x-pack/solutions/observability/plugins/observability_ai_assistant_app/common', + '/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server', + ], + setupFiles: [ + '/x-pack/solutions/observability/plugins/observability_ai_assistant_app/.storybook/jest_setup.js', + ], + collectCoverage: true, + collectCoverageFrom: [ + '/x-pack/solutions/observability/plugins/observability_ai_assistant_app/{common,public,server}/**/*.{js,ts,tsx}', + ], + + coverageReporters: ['html'], +}; diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/kibana.jsonc b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/kibana.jsonc similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/kibana.jsonc rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/kibana.jsonc diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/application.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/application.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/application.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/assets/elastic_ai_assistant.png b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/assets/elastic_ai_assistant.png similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/assets/elastic_ai_assistant.png rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/assets/elastic_ai_assistant.png diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/changes/change_list.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/changes/change_list.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/changes/change_list.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/changes/change_list.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/changes/change_list.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/charts/spark_plot.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/charts/spark_plot.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/charts/spark_plot.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/charts/spark_plot.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/lazy_nav_control.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/lazy_nav_control.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/nav_control/lazy_nav_control.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/nav_control/lazy_nav_control.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/page_template.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/page_template.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/page_template.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/page_template.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/entity_badge/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/entity_badge/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/entity_badge/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/entity_badge/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/mock/complete_root_cause_analysis.json b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/mock/complete_root_cause_analysis.json similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/mock/complete_root_cause_analysis.json rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/mock/complete_root_cause_analysis.json diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/mock/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/mock/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/mock/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/mock/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_callout/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_callout/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_callout/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_collapsible_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_collapsible_panel/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_collapsible_panel/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_collapsible_panel/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_container/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_container/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_container/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_investigation/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_entity_log_pattern_table/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_observation_panel/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_panel/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_panel/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_panel/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_panel/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_report/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_report/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_report/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_step/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_step/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_step/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_step/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_step/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_step/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_step/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_step/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_stop_button/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_task_step/index.stories.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_task_step/index.stories.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_task_step/index.stories.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_task_step/index.stories.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_task_step/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_task_step/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/rca/rca_task_step/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/rca/rca_task_step/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/technical_preview_badge.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/components/technical_preview_badge.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/components/technical_preview_badge.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/changes/index.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/changes/index.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/changes/index.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/changes/index.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/lens.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/lens.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/lens.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/visualize_esql.test.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/visualize_esql.test.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/visualize_esql.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/functions/visualize_esql.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/functions/visualize_esql.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_kibana.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_kibana.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_kibana.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_kibana.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_license.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_license.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_license.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_license.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_app_service.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_app_service.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_app_service.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_app_service.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_chat_service.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_chat_service.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_chat_service.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_chat_service.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_router.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_router.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_router.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/__storybook_mocks__/use_observability_ai_assistant_router.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/is_nav_control_visible.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/is_nav_control_visible.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/is_nav_control_visible.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/is_nav_control_visible.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_chart_theme.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_chart_theme.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_chart_theme.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_chart_theme.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_force_update.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_force_update.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_force_update.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_force_update.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_kibana.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_kibana.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_kibana.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_kibana.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_license.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_license.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_license.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_license.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_local_storage.test.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_local_storage.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_local_storage.test.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_local_storage.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_local_storage.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_local_storage.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_local_storage.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_local_storage.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_nav_control_scope.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_nav_control_scope.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_nav_control_scope.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_nav_control_scope.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_nav_control_screen_context.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_nav_control_screen_context.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_nav_control_screen_context.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_nav_control_screen_context.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_chat_service.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_chat_service.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_chat_service.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_chat_service.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_params.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_params.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_params.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_params.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_router.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_router.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_router.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_observability_ai_assistant_router.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_theme.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_theme.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/hooks/use_theme.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/hooks/use_theme.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/plugin.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/plugin.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/plugin.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/routes/config.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/routes/config.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/routes/config.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/routes/config.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/routes/conversations/conversation_view_with_props.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/routes/conversations/conversation_view_with_props.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/routes/conversations/conversation_view_with_props.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/routes/conversations/conversation_view_with_props.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/ai_assistant.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/ai_assistant.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/ai_assistant_params.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/translations.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/translations.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/translations.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/types.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/rule_connector/types.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/rule_connector/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/types.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/types.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/utils/non_nullable.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/utils/non_nullable.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/utils/non_nullable.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/utils/non_nullable.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/utils/safe_json_parse.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/utils/safe_json_parse.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/utils/safe_json_parse.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/utils/safe_json_parse.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/public/utils/shared_providers.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/utils/shared_providers.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/public/utils/shared_providers.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/public/utils/shared_providers.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/.eslintrc.json b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/.eslintrc.json similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/.eslintrc.json rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/.eslintrc.json diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/README.md b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md similarity index 93% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/README.md rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md index 0e5bc22fe7c75..f8d10c679e622 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/README.md +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/README.md @@ -14,7 +14,7 @@ This tool is developed for our team working on the Elastic Observability platfor Run the tool using: -`$ node x-pack/plugins/observability_solution/observability_ai_assistant/scripts/evaluation/index.js` +`$ node x-pack/solutions/observability/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/index.js` This will evaluate all existing scenarios, and write the evaluation results to the terminal. diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/alert_templates/templates.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/alert_templates/templates.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/alert_templates/templates.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/alert_templates/templates.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/cli.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/cli.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/cli.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/cli.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/evaluation.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/evaluation.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/evaluation.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/evaluation.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/get_service_urls.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/get_service_urls.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/get_service_urls.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/get_service_urls.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/index.js b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/index.js similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/index.js rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/index.js diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/kibana_client.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/kibana_client.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/kibana_client.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/kibana_client.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts similarity index 98% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts index a765adcf52f5b..0ec57deae01a6 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/read_kibana_config.ts @@ -13,7 +13,7 @@ import { identity, pickBy } from 'lodash'; export type KibanaConfig = ReturnType; export const readKibanaConfig = () => { - const kibanaConfigDir = path.join(__filename, '../../../../../../../config'); + const kibanaConfigDir = path.join(__filename, '../../../../../../../../config'); const kibanaDevConfig = path.join(kibanaConfigDir, 'kibana.dev.yml'); const kibanaConfig = path.join(kibanaConfigDir, 'kibana.yml'); diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/alerts/index.spec.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/apm/index.spec.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/elasticsearch/index.spec.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/esql/index.spec.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/scenarios/kb/index.spec.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/select_connector.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/select_connector.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/select_connector.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/select_connector.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/services/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/services/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/services/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/services/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/setup_synthtrace.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/setup_synthtrace.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/setup_synthtrace.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/setup_synthtrace.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/types.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/scripts/evaluation/types.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/scripts/evaluation/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/clients/create_observability_ai_assistant_app_es_client.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/clients/create_observability_ai_assistant_app_es_client.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/clients/create_observability_ai_assistant_app_es_client.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/clients/create_observability_ai_assistant_app_es_client.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/clients/elasticsearch/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/clients/elasticsearch/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/clients/elasticsearch/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/clients/elasticsearch/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/config.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/config.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/config.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/config.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/alerts.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/alerts.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/alerts.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/alerts.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/changes/get_log_changes.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/changes/get_log_changes.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/changes/get_log_changes.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/changes/get_log_changes.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/changes/get_metric_changes.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/changes/get_metric_changes.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/changes/get_metric_changes.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/changes/get_metric_changes.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/changes/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/changes/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/changes/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/changes/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/documentation.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/documentation.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/documentation.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/documentation.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/lens.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/lens.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/lens.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/lens.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.test.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.test.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/correct_query_with_actions.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.test.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.test.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/get_errors_with_commands.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/validate_esql_query.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/validate_esql_query.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/query/validate_esql_query.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/query/validate_esql_query.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/visualize_esql.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/visualize_esql.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/functions/visualize_esql.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/functions/visualize_esql.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/plugin.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/plugin.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/plugin.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/plugin.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/rule_connector/convert_schema_to_open_api.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/convert_schema_to_open_api.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/rule_connector/convert_schema_to_open_api.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/convert_schema_to_open_api.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/rule_connector/index.test.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.test.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/rule_connector/index.test.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.test.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/rule_connector/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/rule_connector/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/rule_connector/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/types.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/types.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/types.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/types.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/server/util/get_log_sources.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/util/get_log_sources.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/server/util/get_log_sources.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/server/util/get_log_sources.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.json b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json similarity index 96% rename from x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.json rename to x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json index cc104cddc7288..7e3de7940f22b 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_app/tsconfig.json +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../typings/**/*", + "../../../../typings/**/*", "common/**/*", "public/**/*", "scripts/**/*", diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/README.md b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/README.md similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/README.md rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/README.md diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/common/ui_settings.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/common/ui_settings.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/common/ui_settings.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/common/ui_settings.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/jest.config.js b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js similarity index 58% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/jest.config.js rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js index bbe2bd0b6266e..99b1d23eb5bd4 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_management/jest.config.js +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/jest.config.js @@ -7,10 +7,10 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/plugins/observability_solution/observability_ai_assistant_management'], + rootDir: '../../../../..', + roots: ['/x-pack/solutions/observability/plugins/observability_ai_assistant_management'], coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/plugins/observability_solution/observability_ai_assistant_management/{common,public,server}/**/*.{js,ts,tsx}', + '/x-pack/solutions/observability/plugins/observability_ai_assistant_management/{common,public,server}/**/*.{js,ts,tsx}', ], }; diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/kibana.jsonc b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/kibana.jsonc similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/kibana.jsonc rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/kibana.jsonc diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/app.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/app.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/app.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/app.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/constants.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/constants.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/constants.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/constants.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/context/app_context.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/context/app_context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/context/app_context.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/context/app_context.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/helpers/categorize_entries.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/helpers/categorize_entries.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/helpers/categorize_entries.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/helpers/categorize_entries.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/helpers/test_helper.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/helpers/test_helper.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/helpers/test_helper.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/helpers/test_helper.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_app_context.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_app_context.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_app_context.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_app_context.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_entry.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_entry.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_entry.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_entry.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_user_instruction.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_user_instruction.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_user_instruction.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_create_knowledge_base_user_instruction.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_delete_knowledge_base_entry.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_delete_knowledge_base_entry.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_delete_knowledge_base_entry.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_delete_knowledge_base_entry.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_get_knowledge_base_entries.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_get_knowledge_base_entries.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_get_knowledge_base_entries.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_get_knowledge_base_entries.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_get_product_doc_status.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_get_product_doc_status.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_get_product_doc_status.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_get_product_doc_status.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_get_user_instructions.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_get_user_instructions.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_get_user_instructions.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_get_user_instructions.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_import_knowledge_base_entries.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_import_knowledge_base_entries.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_import_knowledge_base_entries.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_import_knowledge_base_entries.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_install_product_doc.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_install_product_doc.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_install_product_doc.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_install_product_doc.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_kibana.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_kibana.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_kibana.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_kibana.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_observability_management_params.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_observability_management_params.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_observability_management_params.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_observability_management_params.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_observability_management_router.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_observability_management_router.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_observability_management_router.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_observability_management_router.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_uninstall_product_doc.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_uninstall_product_doc.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/hooks/use_uninstall_product_doc.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/hooks/use_uninstall_product_doc.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/plugin.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/plugin.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/plugin.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/plugin.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_bulk_import_flyout.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_bulk_import_flyout.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_bulk_import_flyout.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_bulk_import_flyout.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_category_flyout.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_category_flyout.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_category_flyout.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_category_flyout.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_manual_entry_flyout.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_manual_entry_flyout.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_manual_entry_flyout.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_manual_entry_flyout.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_user_instruction_flyout.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_user_instruction_flyout.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_user_instruction_flyout.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_edit_user_instruction_flyout.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.test.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.test.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/knowledge_base_tab.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/redirect_to_home_if_unauthorized.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/redirect_to_home_if_unauthorized.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/redirect_to_home_if_unauthorized.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/redirect_to_home_if_unauthorized.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/search_connector_tab.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_page.test.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_page.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_page.test.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_page.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_page.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_page.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_page.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_page.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/product_doc_entry.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/product_doc_entry.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/product_doc_entry.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/product_doc_entry.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.test.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.test.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.test.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.test.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/settings_tab.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/ui_settings.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/ui_settings.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/components/settings_tab/ui_settings.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/components/settings_tab/ui_settings.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/config.tsx b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/config.tsx similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/public/routes/config.tsx rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/public/routes/config.tsx diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/server/config.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/server/config.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/server/config.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/server/config.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/server/index.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/server/index.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/server/index.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/server/index.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/server/plugin.ts b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/server/plugin.ts similarity index 100% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/server/plugin.ts rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/server/plugin.ts diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant_management/tsconfig.json b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json similarity index 94% rename from x-pack/plugins/observability_solution/observability_ai_assistant_management/tsconfig.json rename to x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json index 7b78d52c64806..982fda386cc1e 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant_management/tsconfig.json +++ b/x-pack/solutions/observability/plugins/observability_ai_assistant_management/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/yarn.lock b/yarn.lock index 750b76745deac..3216342a35cfb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3838,7 +3838,7 @@ version "0.0.0" uid "" -"@kbn/ai-assistant-management-plugin@link:src/plugins/ai_assistant_management/selection": +"@kbn/ai-assistant-management-plugin@link:src/platform/plugins/shared/ai_assistant_management/selection": version "0.0.0" uid "" @@ -5230,7 +5230,7 @@ version "0.0.0" uid "" -"@kbn/data-usage-plugin@link:x-pack/plugins/data_usage": +"@kbn/data-usage-plugin@link:x-pack/platform/plugins/private/data_usage": version "0.0.0" uid "" @@ -6430,23 +6430,23 @@ version "0.0.0" uid "" -"@kbn/observability-ai-assistant-app-plugin@link:x-pack/plugins/observability_solution/observability_ai_assistant_app": +"@kbn/observability-ai-assistant-app-plugin@link:x-pack/solutions/observability/plugins/observability_ai_assistant_app": version "0.0.0" uid "" -"@kbn/observability-ai-assistant-management-plugin@link:x-pack/plugins/observability_solution/observability_ai_assistant_management": +"@kbn/observability-ai-assistant-management-plugin@link:x-pack/solutions/observability/plugins/observability_ai_assistant_management": version "0.0.0" uid "" -"@kbn/observability-ai-assistant-plugin@link:x-pack/plugins/observability_solution/observability_ai_assistant": +"@kbn/observability-ai-assistant-plugin@link:x-pack/platform/plugins/shared/observability_solution/observability_ai_assistant": version "0.0.0" uid "" -"@kbn/observability-ai-common@link:x-pack/packages/observability/observability_ai/observability_ai_common": +"@kbn/observability-ai-common@link:x-pack/solutions/observability/packages/observability_ai/observability_ai_common": version "0.0.0" uid "" -"@kbn/observability-ai-server@link:x-pack/packages/observability/observability_ai/observability_ai_server": +"@kbn/observability-ai-server@link:x-pack/solutions/observability/packages/observability_ai/observability_ai_server": version "0.0.0" uid ""