From edf16f1b119f7d2b76f755c4373fc59e484027f6 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Mon, 9 Dec 2024 11:33:55 +0100 Subject: [PATCH] Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-esql` (#202722) ## 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. > Do not attempt to push any changes unless you know what you are doing. > Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. #### 2 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/esql` | `src/platform/plugins/shared/esql` | | `@kbn/esql-datagrid` | `src/platform/plugins/shared/esql_datagrid` | #### 5 package(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/esql-ast` | `src/platform/packages/shared/kbn-esql-ast` | | `@kbn/esql-editor` | `src/platform/packages/private/kbn-esql-editor` | | `@kbn/esql-utils` | `src/platform/packages/shared/kbn-esql-utils` | | `@kbn/esql-validation-autocomplete` | `src/platform/packages/shared/kbn-esql-validation-autocomplete` | | `@kbn/language-documentation` | `src/platform/packages/private/kbn-language-documentation` |
Updated references ``` ./.buildkite/scripts/steps/esql_generate_function_metadata.sh ./.buildkite/scripts/steps/esql_grammar_sync.sh ./.eslintignore ./.eslintrc.js ./.i18nrc.json ./docs/developer/plugin-list.asciidoc ./examples/esql_ast_inspector/public/plugin.ts ./examples/esql_validation_example/public/plugin.ts ./package.json ./packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts ./packages/kbn-monaco/BUILD.bazel ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./packages/kbn-ui-shared-deps-src/BUILD.bazel ./src/dev/storybook/aliases.ts ./src/platform/packages/private/kbn-esql-editor/jest.config.js ./src/platform/packages/private/kbn-language-documentation/jest.config.js ./src/platform/packages/private/kbn-language-documentation/package.json ./src/platform/packages/shared/kbn-esql-ast/jest.config.js ./src/platform/packages/shared/kbn-esql-utils/jest.config.js ./src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md ./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js ./src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js ./src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json ./src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts ./src/platform/plugins/shared/esql/jest.config.js ./src/platform/plugins/shared/esql_datagrid/jest.config.js ./tsconfig.base.json ./yarn.lock ```
Updated relative paths ``` src/platform/packages/private/kbn-esql-editor/jest.config.js:12 src/platform/packages/private/kbn-esql-editor/tsconfig.json:2 src/platform/packages/private/kbn-language-documentation/jest.config.js:12 src/platform/packages/private/kbn-language-documentation/package.json:12 src/platform/packages/private/kbn-language-documentation/tsconfig.json:2 src/platform/packages/shared/kbn-esql-ast/jest.config.js:12 src/platform/packages/shared/kbn-esql-ast/tsconfig.json:2 src/platform/packages/shared/kbn-esql-utils/jest.config.js:12 src/platform/packages/shared/kbn-esql-utils/tsconfig.json:2 src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js:12 src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js:12 src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:10 src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json:11 src/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts:389 src/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json:2 src/platform/plugins/shared/esql/jest.config.js:12 src/platform/plugins/shared/esql/tsconfig.json:2 src/platform/plugins/shared/esql/tsconfig.json:7 src/platform/plugins/shared/esql_datagrid/jest.config.js:12 src/platform/plugins/shared/esql_datagrid/tsconfig.json:2 src/platform/plugins/shared/esql_datagrid/tsconfig.json:7 ```
Script errors ``` ```
--------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Rudolf Meijering --- .../steps/esql_generate_function_metadata.sh | 4 +-- .buildkite/scripts/steps/esql_grammar_sync.sh | 6 ++-- .eslintignore | 2 +- .eslintrc.js | 2 +- .github/CODEOWNERS | 14 +++++----- .i18nrc.json | 12 ++++---- docs/developer/plugin-list.asciidoc | 4 +-- examples/esql_ast_inspector/public/plugin.ts | 2 +- .../esql_validation_example/public/plugin.ts | 2 +- package.json | 14 +++++----- packages/kbn-monaco/BUILD.bazel | 4 +-- packages/kbn-ui-shared-deps-src/BUILD.bazel | 2 +- src/dev/storybook/aliases.ts | 5 ++-- .../kbn-esql-editor/.storybook/main.js | 0 .../kbn-esql-editor/.storybook/preview.js | 0 .../private}/kbn-esql-editor/README.md | 0 .../private}/kbn-esql-editor/index.ts | 0 .../private}/kbn-esql-editor/jest.config.js | 6 ++-- .../private}/kbn-esql-editor/kibana.jsonc | 0 .../private}/kbn-esql-editor/package.json | 0 .../private}/kbn-esql-editor/setup_tests.ts | 0 .../src/__stories__/esql_editor.stories.mdx | 0 .../discard_starred_query_modal.tsx | 0 .../discard_starred_query/index.tsx | 0 .../editor_footer/errors_warnings_popover.tsx | 0 .../esql_starred_queries_service.test.tsx | 0 .../esql_starred_queries_service.tsx | 0 .../src/editor_footer/feedback_component.tsx | 0 .../history_starred_queries.test.tsx | 0 .../editor_footer/history_starred_queries.tsx | 0 .../history_starred_queries_helpers.test.ts | 0 .../history_starred_queries_helpers.ts | 0 .../src/editor_footer/index.tsx | 0 .../editor_footer/query_wrap_component.tsx | 0 .../src/editor_footer/tooltip_wrapper.tsx | 0 .../kbn-esql-editor/src/esql_editor.styles.ts | 0 .../kbn-esql-editor/src/esql_editor.test.tsx | 0 .../kbn-esql-editor/src/esql_editor.tsx | 0 .../src/fetch_fields_from_esql.ts | 0 .../kbn-esql-editor/src/helpers.test.ts | 0 .../private}/kbn-esql-editor/src/helpers.ts | 0 .../src/history_local_storage.test.ts | 0 .../src/history_local_storage.ts | 0 .../kbn-esql-editor/src/overwrite.scss | 0 .../kbn-esql-editor/src/resizable_button.tsx | 0 .../private}/kbn-esql-editor/src/types.ts | 0 .../private}/kbn-esql-editor/tsconfig.json | 2 +- .../.storybook/main.js | 0 .../kbn-language-documentation/README.md | 0 .../kbn-language-documentation/index.ts | 0 .../jest.config.js | 4 +-- .../kbn-language-documentation/kibana.jsonc | 0 .../kbn-language-documentation/package.json | 2 +- .../scripts/generate_esql_docs.ts | 0 .../kbn-language-documentation/setup_tests.ts | 0 ...language_documentation_popover.stories.tsx | 0 .../src/components/as_flyout/index.test.tsx | 0 .../src/components/as_flyout/index.tsx | 0 .../src/components/as_inline/index.test.tsx | 0 .../src/components/as_inline/index.tsx | 0 .../src/components/as_popover/index.tsx | 0 .../as_popover/popover_content.test.tsx | 0 .../components/as_popover/popover_content.tsx | 0 .../src/components/shared/documentation.scss | 0 .../shared/documentation_content.tsx | 0 .../shared/documentation_navigation.tsx | 0 .../src/components/shared/index.ts | 0 .../sections/esql_documentation_sections.tsx | 0 .../generated/aggregation_functions.tsx | 0 .../sections/generated/scalar_functions.tsx | 0 .../src/sections/index.ts | 0 .../kbn-language-documentation/src/types.ts | 0 .../src/utils/element_to_string.test.tsx | 0 .../src/utils/element_to_string.ts | 0 .../src/utils/get_filtered_groups.test.tsx | 0 .../src/utils/get_filtered_groups.ts | 0 .../kbn-language-documentation/tsconfig.json | 2 +- .../packages/shared}/kbn-esql-ast/BUILD.bazel | 0 .../packages/shared}/kbn-esql-ast/README.md | 0 .../packages/shared}/kbn-esql-ast/index.ts | 0 .../shared/kbn-esql-ast}/jest.config.js | 4 +-- .../shared}/kbn-esql-ast/kibana.jsonc | 0 .../shared}/kbn-esql-ast/package.json | 0 .../scripts/antlr4_tools/.gitignore | 0 .../scripts/antlr4_tools/README.md | 0 .../scripts/antlr4_tools/brewfile | 0 .../scripts/esql_update_ast_script.js | 0 .../scripts/fix_generated_antlr.js | 0 .../shared}/kbn-esql-ast/src/antlr/.gitignore | 0 .../kbn-esql-ast/src/antlr/esql_lexer.g4 | 0 .../kbn-esql-ast/src/antlr/esql_lexer.interp | 0 .../kbn-esql-ast/src/antlr/esql_lexer.tokens | 0 .../kbn-esql-ast/src/antlr/esql_lexer.ts | 0 .../kbn-esql-ast/src/antlr/esql_parser.g4 | 0 .../kbn-esql-ast/src/antlr/esql_parser.interp | 0 .../kbn-esql-ast/src/antlr/esql_parser.tokens | 0 .../kbn-esql-ast/src/antlr/esql_parser.ts | 0 .../src/antlr/esql_parser_listener.ts | 0 .../kbn-esql-ast/src/antlr/lexer_config.js | 0 .../kbn-esql-ast/src/antlr/parser_config.js | 0 .../shared}/kbn-esql-ast/src/ast/constants.ts | 0 .../shared}/kbn-esql-ast/src/ast/helpers.ts | 0 .../shared}/kbn-esql-ast/src/ast/util.ts | 0 .../kbn-esql-ast/src/builder/README.md | 0 .../kbn-esql-ast/src/builder/builder.test.ts | 0 .../kbn-esql-ast/src/builder/builder.ts | 0 .../shared}/kbn-esql-ast/src/builder/index.ts | 0 .../shared}/kbn-esql-ast/src/builder/types.ts | 0 .../shared}/kbn-esql-ast/src/mutate/README.md | 0 .../src/mutate/commands/from/index.ts | 0 .../src/mutate/commands/from/metadata.test.ts | 0 .../src/mutate/commands/from/metadata.ts | 0 .../src/mutate/commands/from/sources.test.ts | 0 .../src/mutate/commands/from/sources.ts | 0 .../kbn-esql-ast/src/mutate/commands/index.ts | 0 .../src/mutate/commands/limit/index.test.ts | 0 .../src/mutate/commands/limit/index.ts | 0 .../src/mutate/commands/sort/index.test.ts | 0 .../src/mutate/commands/sort/index.ts | 0 .../src/mutate/commands/stats/index.test.ts | 0 .../src/mutate/commands/stats/index.ts | 0 .../src/mutate/commands/where/index.test.ts | 0 .../src/mutate/commands/where/index.ts | 0 .../commands/where/index_scenarios.test.ts | 0 .../generic/commands/args/index.test.ts | 0 .../src/mutate/generic/commands/args/index.ts | 0 .../src/mutate/generic/commands/index.test.ts | 0 .../src/mutate/generic/commands/index.ts | 0 .../generic/commands/options/index.test.ts | 0 .../mutate/generic/commands/options/index.ts | 0 .../kbn-esql-ast/src/mutate/generic/index.ts | 0 .../shared}/kbn-esql-ast/src/mutate/index.ts | 0 .../shared}/kbn-esql-ast/src/mutate/types.ts | 0 .../shared}/kbn-esql-ast/src/mutate/util.ts | 0 .../shared}/kbn-esql-ast/src/parser/README.md | 0 .../__tests__/ast_parser.source.test.ts | 0 .../src/parser/__tests__/columns.test.ts | 0 .../parser/__tests__/command_options.test.ts | 0 .../src/parser/__tests__/commands.test.ts | 0 .../src/parser/__tests__/comments.test.ts | 0 .../src/parser/__tests__/from.test.ts | 0 .../src/parser/__tests__/function.test.ts | 0 .../src/parser/__tests__/inlinecast.test.ts | 0 .../src/parser/__tests__/join.test.ts | 0 .../src/parser/__tests__/literal.test.ts | 0 .../src/parser/__tests__/metrics.test.ts | 0 .../src/parser/__tests__/params.test.ts | 0 .../src/parser/__tests__/rename.test.ts | 0 .../src/parser/__tests__/sort.test.ts | 0 .../src/parser/__tests__/where.test.ts | 0 .../kbn-esql-ast/src/parser/constants.ts | 0 .../src/parser/esql_ast_builder_listener.ts | 0 .../src/parser/esql_error_listener.ts | 0 .../kbn-esql-ast/src/parser/factories.ts | 0 .../kbn-esql-ast/src/parser/factories/join.ts | 0 .../kbn-esql-ast/src/parser/formatting.ts | 0 .../kbn-esql-ast/src/parser/helpers.ts | 0 .../shared}/kbn-esql-ast/src/parser/index.ts | 0 .../shared}/kbn-esql-ast/src/parser/parser.ts | 0 .../shared}/kbn-esql-ast/src/parser/types.ts | 0 .../kbn-esql-ast/src/parser/walkers.ts | 0 .../kbn-esql-ast/src/pretty_print/README.md | 0 .../basic_pretty_printer.comments.test.ts | 0 .../__tests__/basic_pretty_printer.test.ts | 0 .../src/pretty_print/__tests__/fixtures.ts | 0 .../wrapping_pretty_printer.comments.test.ts | 0 .../__tests__/wrapping_pretty_printer.test.ts | 0 .../src/pretty_print/basic_pretty_printer.ts | 0 .../src/pretty_print/constants.ts | 0 .../kbn-esql-ast/src/pretty_print/helpers.ts | 0 .../kbn-esql-ast/src/pretty_print/index.ts | 0 .../src/pretty_print/leaf_printer.ts | 0 .../pretty_print/wrapping_pretty_printer.ts | 0 .../shared}/kbn-esql-ast/src/query/index.ts | 0 .../shared}/kbn-esql-ast/src/query/query.ts | 0 .../shared}/kbn-esql-ast/src/synth/README.md | 0 .../src/synth/__tests__/cmd.test.ts | 0 .../src/synth/__tests__/expr_function.test.ts | 0 .../src/synth/__tests__/expr_template.test.ts | 0 .../src/synth/__tests__/scenarios.test.ts | 0 .../shared}/kbn-esql-ast/src/synth/cmd.ts | 0 .../shared}/kbn-esql-ast/src/synth/expr.ts | 0 .../shared}/kbn-esql-ast/src/synth/helpers.ts | 0 .../shared}/kbn-esql-ast/src/synth/index.ts | 0 .../shared}/kbn-esql-ast/src/synth/types.ts | 0 .../shared}/kbn-esql-ast/src/types.ts | 0 .../kbn-esql-ast/src/visitor/README.md | 0 .../src/visitor/__tests__/commands.test.ts | 0 .../src/visitor/__tests__/expressions.test.ts | 0 .../src/visitor/__tests__/scenarios.test.ts | 0 .../src/visitor/__tests__/visitor.test.ts | 0 .../kbn-esql-ast/src/visitor/contexts.ts | 0 .../src/visitor/global_visitor_context.ts | 0 .../shared}/kbn-esql-ast/src/visitor/index.ts | 0 .../shared}/kbn-esql-ast/src/visitor/types.ts | 0 .../shared}/kbn-esql-ast/src/visitor/utils.ts | 0 .../kbn-esql-ast/src/visitor/visitor.ts | 0 .../shared}/kbn-esql-ast/src/walker/README.md | 0 .../kbn-esql-ast/src/walker/helpers.ts | 0 .../shared}/kbn-esql-ast/src/walker/index.ts | 0 .../kbn-esql-ast/src/walker/walker.test.ts | 0 .../shared}/kbn-esql-ast/src/walker/walker.ts | 0 .../shared}/kbn-esql-ast/tsconfig.json | 2 +- .../packages/shared}/kbn-esql-utils/README.md | 0 .../shared}/kbn-esql-utils/constants.ts | 0 .../packages/shared}/kbn-esql-utils/index.ts | 0 .../shared/kbn-esql-utils}/jest.config.js | 4 +-- .../shared}/kbn-esql-utils/kibana.jsonc | 0 .../shared}/kbn-esql-utils/package.json | 0 .../shared}/kbn-esql-utils/src/index.ts | 0 .../shared}/kbn-esql-utils/src/types.ts | 0 .../src/utils/append_to_query.test.ts | 0 .../src/utils/append_to_query.ts | 0 .../src/utils/esql_fields_utils.test.ts | 0 .../src/utils/esql_fields_utils.ts | 0 .../src/utils/get_esql_adhoc_dataview.ts | 0 .../utils/get_esql_with_safe_limit.test.ts | 0 .../src/utils/get_esql_with_safe_limit.ts | 0 .../src/utils/get_initial_esql_query.test.ts | 0 .../src/utils/get_initial_esql_query.ts | 0 .../src/utils/query_cannot_be_sampled.test.ts | 0 .../src/utils/query_cannot_be_sampled.ts | 0 .../src/utils/query_parsing_helpers.test.ts | 0 .../src/utils/query_parsing_helpers.ts | 0 .../src/utils/run_query.test.ts | 0 .../kbn-esql-utils/src/utils/run_query.ts | 0 .../kbn-esql-utils/src/utils/sha256.ts | 0 .../shared}/kbn-esql-utils/tsconfig.json | 2 +- .../BUILD.bazel | 0 .../README.md | 14 +++++----- .../kbn-esql-validation-autocomplete/index.ts | 0 .../jest.config.js | 4 +-- .../jest.integration.config.js | 4 +-- .../kibana.jsonc | 0 .../package.json | 4 +-- .../scripts/generate_function_definitions.ts | 2 +- .../src/__tests__/helpers.ts | 0 .../autocomplete.command.from.test.ts | 0 .../autocomplete.command.sort.test.ts | 0 .../autocomplete.command.stats.test.ts | 0 .../autocomplete.command.where.test.ts | 0 .../autocomplete.suggest.eval.test.ts | 0 .../__tests__/autocomplete.suggest.test.ts | 0 .../src/autocomplete/__tests__/constants.ts | 0 .../src/autocomplete/__tests__/helpers.ts | 0 .../hidden_functions_and_commands.test.ts | 0 .../__tests__/suggestions_in_comments.test.ts | 0 .../src/autocomplete/autocomplete.test.ts | 0 .../src/autocomplete/autocomplete.ts | 0 .../src/autocomplete/commands/drop/index.ts | 0 .../src/autocomplete/commands/keep/index.ts | 0 .../autocomplete/commands/sort/helper.test.ts | 0 .../src/autocomplete/commands/sort/helper.ts | 0 .../src/autocomplete/commands/sort/index.ts | 0 .../src/autocomplete/commands/stats/index.ts | 0 .../src/autocomplete/commands/stats/util.ts | 0 .../src/autocomplete/commands/where/index.ts | 0 .../src/autocomplete/commands/where/util.ts | 0 .../src/autocomplete/complete_items.ts | 0 .../src/autocomplete/documentation_util.ts | 0 .../src/autocomplete/factories.ts | 0 .../src/autocomplete/helper.test.ts | 0 .../src/autocomplete/helper.ts | 2 +- .../recommended_queries/suggestions.ts | 0 .../recommended_queries/templates.ts | 0 .../src/autocomplete/types.ts | 0 .../utils/ecs_metadata_helper.test.ts | 0 .../autocomplete/utils/ecs_metadata_helper.ts | 0 .../src/code_actions/actions.test.ts | 0 .../src/code_actions/actions.ts | 0 .../src/code_actions/types.ts | 0 .../src/code_actions/utils.ts | 0 .../src/definitions/builtin.ts | 0 .../src/definitions/commands.ts | 0 .../generated/aggregation_functions.ts | 0 .../definitions/generated/scalar_functions.ts | 0 .../src/definitions/grouping.ts | 0 .../src/definitions/helpers.ts | 0 .../src/definitions/literals.ts | 0 .../src/definitions/options.ts | 0 .../src/definitions/settings.ts | 0 .../src/definitions/types.ts | 0 .../src/shared/constants.ts | 0 .../src/shared/context.ts | 0 .../src/shared/esql_types.ts | 0 .../src/shared/helpers.test.ts | 0 .../src/shared/helpers.ts | 0 .../src/shared/resources_helpers.ts | 0 .../src/shared/test_functions.ts | 0 .../src/shared/types.ts | 0 .../src/shared/variables.ts | 0 .../src/types.ts | 0 .../src/validation/.gitignore | 0 .../validation/__tests__/callbacks.test.ts | 0 .../__tests__/fields_and_variables.test.ts | 0 .../validation/__tests__/functions.test.ts | 0 .../src/validation/__tests__/helpers.ts | 0 .../test_suites/validation.command.from.ts | 0 .../validation.command.inlinestats.ts | 0 .../test_suites/validation.command.metrics.ts | 0 .../test_suites/validation.command.stats.ts | 0 .../src/validation/__tests__/types.ts | 0 .../__tests__/validation.ccs.test.ts | 0 .../__tests__/validation.command.from.test.ts | 0 .../validation.command.inlinestats.ts | 0 .../validation.command.metrics.test.ts | 0 .../validation.command.stats.test.ts | 0 .../validation.eval.date_diff.test.ts | 0 .../validation.functions.full_text.test.ts | 0 .../__tests__/validation.params.test.ts | 0 .../src/validation/errors.ts | 0 .../esql_validation_meta_tests.json | 0 .../src/validation/helpers.ts | 0 .../src/validation/resources.ts | 0 .../src/validation/types.ts | 0 .../src/validation/validation.test.ts | 2 +- .../src/validation/validation.ts | 0 .../tsconfig.json | 2 +- .../plugins/shared}/esql/.i18nrc.json | 0 .../plugins/shared}/esql/README.md | 0 .../plugins/shared/esql}/jest.config.js | 8 +++--- .../plugins/shared}/esql/kibana.jsonc | 0 .../plugins/shared}/esql/package.json | 0 .../shared}/esql/public/create_editor.tsx | 0 .../plugins/shared}/esql/public/index.ts | 0 .../shared}/esql/public/kibana_services.ts | 0 .../plugins/shared}/esql/public/plugin.ts | 0 .../shared}/esql/public/triggers/index.ts | 0 .../update_esql_query_actions.test.ts | 0 .../triggers/update_esql_query_actions.ts | 0 .../triggers/update_esql_query_helpers.ts | 0 .../triggers/update_esql_query_trigger.ts | 0 .../plugins/shared}/esql/public/types.ts | 0 .../plugins/shared}/esql/server/index.ts | 0 .../plugins/shared}/esql/server/plugin.ts | 0 .../shared}/esql/server/ui_settings.ts | 0 .../plugins/shared}/esql/tsconfig.json | 4 +-- .../shared}/esql_datagrid/.i18nrc.json | 0 .../plugins/shared}/esql_datagrid/README.md | 0 .../shared/esql_datagrid}/jest.config.js | 11 +++++--- .../shared}/esql_datagrid/kibana.jsonc | 0 .../shared}/esql_datagrid/package.json | 0 .../esql_datagrid/public/create_datagrid.tsx | 0 .../esql_datagrid/public/data_grid.tsx | 0 .../shared}/esql_datagrid/public/index.ts | 0 .../esql_datagrid/public/kibana_services.ts | 0 .../shared}/esql_datagrid/public/plugin.ts | 0 .../esql_datagrid/public/row_viewer.test.tsx | 0 .../esql_datagrid/public/row_viewer.tsx | 0 .../esql_datagrid/public/row_viewer_lazy.tsx | 0 .../shared}/esql_datagrid/tsconfig.json | 4 +-- test/api_integration/apis/esql/errors.ts | 5 +--- tsconfig.base.json | 28 +++++++++---------- yarn.lock | 14 +++++----- 354 files changed, 105 insertions(+), 104 deletions(-) rename {packages => src/platform/packages/private}/kbn-esql-editor/.storybook/main.js (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/.storybook/preview.js (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/README.md (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/jest.config.js (72%) rename {packages => src/platform/packages/private}/kbn-esql-editor/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/package.json (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/setup_tests.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/__stories__/esql_editor.stories.mdx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/discard_starred_query/discard_starred_query_modal.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/discard_starred_query/index.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/errors_warnings_popover.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/feedback_component.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/history_starred_queries.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/history_starred_queries.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/index.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/query_wrap_component.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/editor_footer/tooltip_wrapper.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/esql_editor.styles.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/esql_editor.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/esql_editor.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/fetch_fields_from_esql.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/helpers.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/helpers.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/history_local_storage.test.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/history_local_storage.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/overwrite.scss (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/resizable_button.tsx (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/src/types.ts (100%) rename {packages => src/platform/packages/private}/kbn-esql-editor/tsconfig.json (94%) rename {packages => src/platform/packages/private}/kbn-language-documentation/.storybook/main.js (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/README.md (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/index.ts (100%) rename {packages/kbn-esql-utils => src/platform/packages/private/kbn-language-documentation}/jest.config.js (82%) rename {packages => src/platform/packages/private}/kbn-language-documentation/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/package.json (68%) rename {packages => src/platform/packages/private}/kbn-language-documentation/scripts/generate_esql_docs.ts (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/setup_tests.ts (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/__stories__/language_documentation_popover.stories.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/as_flyout/index.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/as_flyout/index.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/as_inline/index.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/as_inline/index.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/as_popover/index.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/as_popover/popover_content.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/as_popover/popover_content.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/shared/documentation.scss (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/shared/documentation_content.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/shared/documentation_navigation.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/components/shared/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/sections/esql_documentation_sections.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/sections/generated/scalar_functions.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/sections/index.ts (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/types.ts (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/utils/element_to_string.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/utils/element_to_string.ts (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/utils/get_filtered_groups.test.tsx (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/src/utils/get_filtered_groups.ts (100%) rename {packages => src/platform/packages/private}/kbn-language-documentation/tsconfig.json (87%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/index.ts (100%) rename {packages/kbn-esql-validation-autocomplete => src/platform/packages/shared/kbn-esql-ast}/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/scripts/antlr4_tools/.gitignore (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/scripts/antlr4_tools/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/scripts/antlr4_tools/brewfile (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/scripts/esql_update_ast_script.js (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/scripts/fix_generated_antlr.js (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/.gitignore (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_lexer.g4 (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_lexer.interp (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_lexer.tokens (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_lexer.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_parser.g4 (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_parser.interp (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_parser.tokens (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_parser.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/esql_parser_listener.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/lexer_config.js (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/antlr/parser_config.js (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/ast/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/ast/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/ast/util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/builder/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/builder/builder.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/builder/builder.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/builder/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/builder/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/from/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/from/metadata.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/from/metadata.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/from/sources.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/from/sources.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/limit/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/limit/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/sort/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/sort/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/stats/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/stats/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/where/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/where/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/commands/where/index_scenarios.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/generic/commands/args/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/generic/commands/args/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/generic/commands/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/generic/commands/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/generic/commands/options/index.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/generic/commands/options/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/generic/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/mutate/util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/ast_parser.source.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/columns.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/command_options.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/commands.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/comments.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/from.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/function.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/inlinecast.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/join.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/literal.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/metrics.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/params.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/rename.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/sort.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/__tests__/where.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/esql_ast_builder_listener.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/esql_error_listener.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/factories.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/factories/join.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/formatting.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/parser.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/parser/walkers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.comments.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/__tests__/fixtures.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.comments.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/basic_pretty_printer.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/leaf_printer.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/pretty_print/wrapping_pretty_printer.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/query/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/query/query.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/__tests__/cmd.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/__tests__/expr_function.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/__tests__/expr_template.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/__tests__/scenarios.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/cmd.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/expr.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/synth/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/__tests__/commands.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/__tests__/expressions.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/__tests__/scenarios.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/__tests__/visitor.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/contexts.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/global_visitor_context.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/visitor/visitor.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/walker/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/walker/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/walker/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/walker/walker.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/src/walker/walker.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-ast/tsconfig.json (81%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/index.ts (100%) rename {packages/kbn-esql-ast => src/platform/packages/shared/kbn-esql-utils}/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/append_to_query.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/append_to_query.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/esql_fields_utils.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/esql_fields_utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/get_esql_adhoc_dataview.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/get_esql_with_safe_limit.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/get_esql_with_safe_limit.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/get_initial_esql_query.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/get_initial_esql_query.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/query_cannot_be_sampled.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/query_cannot_be_sampled.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/query_parsing_helpers.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/query_parsing_helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/run_query.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/run_query.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/src/utils/sha256.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-utils/tsconfig.json (90%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/README.md (91%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/index.ts (100%) rename {packages/kbn-language-documentation => src/platform/packages/shared/kbn-esql-validation-autocomplete}/jest.config.js (81%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/jest.integration.config.js (83%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/package.json (50%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts (99%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/__tests__/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.from.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.sort.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.stats.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.where.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.eval.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/hidden_functions_and_commands.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/suggestions_in_comments.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/drop/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/keep/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/complete_items.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/documentation_util.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/factories.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/helper.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts (99%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/suggestions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/templates.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/code_actions/actions.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/code_actions/actions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/code_actions/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/code_actions/utils.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/builtin.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/commands.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/generated/aggregation_functions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/generated/scalar_functions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/grouping.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/literals.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/options.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/settings.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/definitions/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/constants.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/context.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/esql_types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/helpers.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/resources_helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/test_functions.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/shared/variables.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/.gitignore (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/callbacks.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/fields_and_variables.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/functions.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.from.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.inlinestats.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.metrics.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.stats.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.ccs.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.from.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.inlinestats.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.metrics.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.stats.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.eval.date_diff.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.functions.full_text.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.params.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/errors.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/esql_validation_meta_tests.json (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/helpers.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/resources.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/validation.test.ts (99%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/src/validation/validation.ts (100%) rename {packages => src/platform/packages/shared}/kbn-esql-validation-autocomplete/tsconfig.json (85%) rename src/{plugins => platform/plugins/shared}/esql/.i18nrc.json (100%) rename src/{plugins => platform/plugins/shared}/esql/README.md (100%) rename src/{plugins/esql_datagrid => platform/plugins/shared/esql}/jest.config.js (76%) rename src/{plugins => platform/plugins/shared}/esql/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/esql/package.json (100%) rename src/{plugins => platform/plugins/shared}/esql/public/create_editor.tsx (100%) rename src/{plugins => platform/plugins/shared}/esql/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/kibana_services.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/triggers/index.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/triggers/update_esql_query_actions.test.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/triggers/update_esql_query_actions.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/triggers/update_esql_query_helpers.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/triggers/update_esql_query_trigger.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/public/types.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/server/index.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/server/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/server/ui_settings.ts (100%) rename src/{plugins => platform/plugins/shared}/esql/tsconfig.json (88%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/.i18nrc.json (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/README.md (100%) rename src/{plugins/esql => platform/plugins/shared/esql_datagrid}/jest.config.js (63%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/kibana.jsonc (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/package.json (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/create_datagrid.tsx (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/data_grid.tsx (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/index.ts (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/kibana_services.ts (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/plugin.ts (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/row_viewer.test.tsx (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/row_viewer.tsx (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/public/row_viewer_lazy.tsx (100%) rename src/{plugins => platform/plugins/shared}/esql_datagrid/tsconfig.json (89%) diff --git a/.buildkite/scripts/steps/esql_generate_function_metadata.sh b/.buildkite/scripts/steps/esql_generate_function_metadata.sh index 15d0087594696..026d7d04da55f 100755 --- a/.buildkite/scripts/steps/esql_generate_function_metadata.sh +++ b/.buildkite/scripts/steps/esql_generate_function_metadata.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -euo pipefail -VALIDATION_PACKAGE_DIR="packages/kbn-esql-validation-autocomplete" -EDITOR_PACKAGE_DIR="packages/kbn-language-documentation" +VALIDATION_PACKAGE_DIR="src/platform/packages/shared/kbn-esql-validation-autocomplete" +EDITOR_PACKAGE_DIR="src/platform/packages/private/kbn-language-documentation" GIT_SCOPE="$VALIDATION_PACKAGE_DIR/**/* $EDITOR_PACKAGE_DIR/**/*" report_main_step () { diff --git a/.buildkite/scripts/steps/esql_grammar_sync.sh b/.buildkite/scripts/steps/esql_grammar_sync.sh index 24d9bd9603737..0c5948adda2f0 100755 --- a/.buildkite/scripts/steps/esql_grammar_sync.sh +++ b/.buildkite/scripts/steps/esql_grammar_sync.sh @@ -4,7 +4,7 @@ set -euo pipefail synchronize_lexer_grammar () { license_header="$1" source_file="$PARENT_DIR/elasticsearch/x-pack/plugin/esql/src/main/antlr/EsqlBaseLexer.g4" - destination_file="./packages/kbn-esql-ast/src/antlr/esql_lexer.g4" + destination_file="./src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.g4" # Copy the file cp "$source_file" "$destination_file" @@ -26,7 +26,7 @@ synchronize_lexer_grammar () { synchronize_parser_grammar () { license_header="$1" source_file="$PARENT_DIR/elasticsearch/x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4" - destination_file="./packages/kbn-esql-ast/src/antlr/esql_parser.g4" + destination_file="./src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.g4" # Copy the file cp "$source_file" "$destination_file" @@ -104,7 +104,7 @@ main () { .buildkite/scripts/bootstrap.sh # Build ANTLR stuff - cd ./packages/kbn-esql-ast/src + cd ./src/platform/packages/shared/kbn-esql-ast/src yarn build:antlr4:esql # Make a commit diff --git a/.eslintignore b/.eslintignore index cb4ee2668b226..e2b06124e936a 100644 --- a/.eslintignore +++ b/.eslintignore @@ -39,7 +39,7 @@ snapshots.js /packages/kbn-ui-framework/dist /packages/kbn-flot-charts/lib /packages/kbn-monaco/src/**/antlr -/packages/kbn-esql-ast/src/**/antlr +/src/platform/packages/shared/kbn-esql-ast/src/**/antlr # Bazel /bazel-* diff --git a/.eslintrc.js b/.eslintrc.js index 226017e524d84..3052b07745e4c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -189,7 +189,7 @@ const DEV_PATTERNS = [ 'x-pack/performance/**/*', 'src/setup_node_env/index.js', 'src/cli/dev.js', - 'packages/kbn-esql-validation-autocomplete/scripts/**/*', + 'src/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/**/*', ]; /** Restricted imports with suggested alternatives */ diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1b4119ca09e3c..d75759814bad0 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -352,10 +352,6 @@ packages/kbn-eslint-plugin-eslint @elastic/kibana-operations packages/kbn-eslint-plugin-i18n @elastic/obs-knowledge-team @elastic/kibana-operations packages/kbn-eslint-plugin-imports @elastic/kibana-operations packages/kbn-eslint-plugin-telemetry @elastic/obs-knowledge-team -packages/kbn-esql-ast @elastic/kibana-esql -packages/kbn-esql-editor @elastic/kibana-esql -packages/kbn-esql-utils @elastic/kibana-esql -packages/kbn-esql-validation-autocomplete @elastic/kibana-esql packages/kbn-event-annotation-common @elastic/kibana-visualizations packages/kbn-event-annotation-components @elastic/kibana-visualizations packages/kbn-expandable-flyout @elastic/security-threat-hunting-investigations @@ -394,7 +390,6 @@ packages/kbn-jest-serializers @elastic/kibana-operations packages/kbn-journeys @elastic/kibana-operations @elastic/appex-qa packages/kbn-json-ast @elastic/kibana-operations packages/kbn-kibana-manifest-schema @elastic/kibana-operations -packages/kbn-language-documentation @elastic/kibana-esql packages/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations packages/kbn-lens-formula-docs @elastic/kibana-visualizations packages/kbn-lint-packages-cli @elastic/kibana-operations @@ -622,7 +617,14 @@ packages/shared-ux/storybook/config @elastic/appex-sharedux packages/shared-ux/storybook/mock @elastic/appex-sharedux packages/shared-ux/table_persist @elastic/appex-sharedux src/core @elastic/kibana-core +src/platform/packages/private/kbn-esql-editor @elastic/kibana-esql +src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql src/platform/packages/shared/kbn-doc-links @elastic/docs +src/platform/packages/shared/kbn-esql-ast @elastic/kibana-esql +src/platform/packages/shared/kbn-esql-utils @elastic/kibana-esql +src/platform/packages/shared/kbn-esql-validation-autocomplete @elastic/kibana-esql +src/platform/plugins/shared/esql @elastic/kibana-esql +src/platform/plugins/shared/esql_datagrid @elastic/kibana-esql src/plugins/advanced_settings @elastic/appex-sharedux @elastic/kibana-management src/plugins/ai_assistant_management/selection @elastic/obs-ai-assistant src/plugins/bfetch @elastic/appex-sharedux @@ -650,8 +652,6 @@ src/plugins/discover @elastic/kibana-data-discovery src/plugins/discover_shared @elastic/kibana-data-discovery @elastic/obs-ux-logs-team src/plugins/embeddable @elastic/kibana-presentation src/plugins/es_ui_shared @elastic/kibana-management -src/plugins/esql @elastic/kibana-esql -src/plugins/esql_datagrid @elastic/kibana-esql src/plugins/event_annotation @elastic/kibana-visualizations src/plugins/event_annotation_listing @elastic/kibana-visualizations src/plugins/expression_error @elastic/kibana-presentation diff --git a/.i18nrc.json b/.i18nrc.json index 38629974722f3..12294fb37e5a2 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -76,7 +76,7 @@ "interpreter": "src/legacy/core_plugins/interpreter", "imageEmbeddable": "src/plugins/image_embeddable", "kbn": "src/legacy/core_plugins/kibana", - "kbn-esql-validation-autocomplete": "packages/kbn-esql-validation-autocomplete/src", + "kbn-esql-validation-autocomplete": "src/platform/packages/shared/kbn-esql-validation-autocomplete/src", "kbnConfig": "packages/kbn-config/src", "kbnDocViews": "src/legacy/core_plugins/kbn_doc_views", "kibana_react": "src/legacy/core_plugins/kibana_react", @@ -98,8 +98,8 @@ "presentationUtil": "src/plugins/presentation_util", "randomSampling": "x-pack/packages/kbn-random-sampling", "reactPackages": "packages/react", - "esqlEditor": "packages/kbn-esql-editor", - "esqlUtils": "packages/kbn-esql-utils", + "esqlEditor": "src/platform/packages/private/kbn-esql-editor", + "esqlUtils": "src/platform/packages/shared/kbn-esql-utils", "reporting": "packages/kbn-reporting", "savedObjects": "src/plugins/saved_objects", "savedObjectsFinder": "src/plugins/saved_objects_finder", @@ -119,9 +119,9 @@ "serverlessPackages": "packages/serverless", "sse": ["packages/kbn-sse-utils"], "coloring": "packages/kbn-coloring/src", - "languageDocumentation": "packages/kbn-language-documentation/src", - "esql": "src/plugins/esql", - "esqlDataGrid": "src/plugins/esql_datagrid", + "languageDocumentation": "src/platform/packages/private/kbn-language-documentation/src", + "esql": "src/platform/plugins/shared/esql", + "esqlDataGrid": "src/platform/plugins/shared/esql_datagrid", "statusPage": "src/legacy/core_plugins/status_page", "telemetry": ["src/plugins/telemetry", "src/plugins/telemetry_management_section"], "timelion": ["src/plugins/vis_types/timelion"], diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 0baaf75b79493..dc65c9df54e92 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -102,11 +102,11 @@ This API doesn't support angular, for registering angular dev tools, bootstrap a |Embeddables are React components that manage their own state, can be serialized and deserialized, and return an API that can be used to interact with them imperatively. -|{kib-repo}blob/{branch}/src/plugins/esql/README.md[esql] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/esql/README.md[esql] |The editor accepts the following properties: -|{kib-repo}blob/{branch}/src/plugins/esql_datagrid/README.md[esqlDataGrid] +|{kib-repo}blob/{branch}/src/platform/plugins/shared/esql_datagrid/README.md[esqlDataGrid] |Contains a Discover-like table specifically for ES|QL queries: diff --git a/examples/esql_ast_inspector/public/plugin.ts b/examples/esql_ast_inspector/public/plugin.ts index f8765b383878e..6877af3762628 100644 --- a/examples/esql_ast_inspector/public/plugin.ts +++ b/examples/esql_ast_inspector/public/plugin.ts @@ -42,7 +42,7 @@ export class ESQLASTInspectorPlugin links: [ { label: 'README', - href: 'https://github.com/elastic/kibana/tree/main/packages/kbn-esql-validation-autocomplete/README.md', + href: 'https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md', iconType: 'logoGithub', size: 's', target: '_blank', diff --git a/examples/esql_validation_example/public/plugin.ts b/examples/esql_validation_example/public/plugin.ts index cf15958d0e5ea..62eadf2cf884e 100644 --- a/examples/esql_validation_example/public/plugin.ts +++ b/examples/esql_validation_example/public/plugin.ts @@ -42,7 +42,7 @@ export class ESQLValidationExamplePlugin links: [ { label: 'README', - href: 'https://github.com/elastic/kibana/tree/main/packages/kbn-esql-validation-autocomplete/README.md', + href: 'https://github.com/elastic/kibana/tree/main/src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md', iconType: 'logoGithub', size: 's', target: '_blank', diff --git a/package.json b/package.json index c5026d5d626dc..6654547617b12 100644 --- a/package.json +++ b/package.json @@ -489,13 +489,13 @@ "@kbn/es-ui-shared-plugin": "link:src/plugins/es_ui_shared", "@kbn/eso-model-version-example": "link:examples/eso_model_version_example", "@kbn/eso-plugin": "link:x-pack/test/encrypted_saved_objects_api_integration/plugins/api_consumer_plugin", - "@kbn/esql": "link:src/plugins/esql", - "@kbn/esql-ast": "link:packages/kbn-esql-ast", + "@kbn/esql": "link:src/platform/plugins/shared/esql", + "@kbn/esql-ast": "link:src/platform/packages/shared/kbn-esql-ast", "@kbn/esql-ast-inspector-plugin": "link:examples/esql_ast_inspector", - "@kbn/esql-datagrid": "link:src/plugins/esql_datagrid", - "@kbn/esql-editor": "link:packages/kbn-esql-editor", - "@kbn/esql-utils": "link:packages/kbn-esql-utils", - "@kbn/esql-validation-autocomplete": "link:packages/kbn-esql-validation-autocomplete", + "@kbn/esql-datagrid": "link:src/platform/plugins/shared/esql_datagrid", + "@kbn/esql-editor": "link:src/platform/packages/private/kbn-esql-editor", + "@kbn/esql-utils": "link:src/platform/packages/shared/kbn-esql-utils", + "@kbn/esql-validation-autocomplete": "link:src/platform/packages/shared/kbn-esql-validation-autocomplete", "@kbn/esql-validation-example-plugin": "link:examples/esql_validation_example", "@kbn/eui-provider-dev-warning": "link:test/plugin_functional/plugins/eui_provider_dev_warning", "@kbn/event-annotation-common": "link:packages/kbn-event-annotation-common", @@ -609,7 +609,7 @@ "@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils", "@kbn/kubernetes-security-plugin": "link:x-pack/plugins/kubernetes_security", "@kbn/langchain": "link:x-pack/packages/kbn-langchain", - "@kbn/language-documentation": "link:packages/kbn-language-documentation", + "@kbn/language-documentation": "link:src/platform/packages/private/kbn-language-documentation", "@kbn/lens-config-builder-example-plugin": "link:x-pack/examples/lens_config_builder_example", "@kbn/lens-embeddable-utils": "link:packages/kbn-lens-embeddable-utils", "@kbn/lens-formula-docs": "link:packages/kbn-lens-formula-docs", diff --git a/packages/kbn-monaco/BUILD.bazel b/packages/kbn-monaco/BUILD.bazel index 9a2e2b8f03243..c21c6b3cbf71d 100644 --- a/packages/kbn-monaco/BUILD.bazel +++ b/packages/kbn-monaco/BUILD.bazel @@ -26,8 +26,8 @@ SRCS = glob( SHARED_DEPS = [ "//packages/kbn-i18n", "//packages/kbn-ui-theme", - "//packages/kbn-esql-validation-autocomplete", - "//packages/kbn-esql-ast", + "//src/platform/packages/shared/kbn-esql-validation-autocomplete", + "//src/platform/packages/shared/kbn-esql-ast", "@npm//antlr4", "@npm//monaco-editor", "@npm//monaco-yaml", diff --git a/packages/kbn-ui-shared-deps-src/BUILD.bazel b/packages/kbn-ui-shared-deps-src/BUILD.bazel index b0d7bb65843d9..80613093c093b 100644 --- a/packages/kbn-ui-shared-deps-src/BUILD.bazel +++ b/packages/kbn-ui-shared-deps-src/BUILD.bazel @@ -25,7 +25,7 @@ webpack_cli( "//packages/kbn-i18n", "//packages/kbn-i18n-react", "//packages/kbn-ebt-tools", - "//packages/kbn-esql-ast", + "//src/platform/packages/shared/kbn-esql-ast", "//packages/kbn-monaco", "//packages/kbn-datemath", "//packages/kbn-analytics", diff --git a/src/dev/storybook/aliases.ts b/src/dev/storybook/aliases.ts index cc991d72d23c0..c89df73f1b877 100644 --- a/src/dev/storybook/aliases.ts +++ b/src/dev/storybook/aliases.ts @@ -19,7 +19,8 @@ export const storybookAliases = { cloud_security_posture_packages: 'x-pack/packages/kbn-cloud-security-posture/storybook/config', cloud: 'packages/cloud/.storybook', coloring: 'packages/kbn-coloring/.storybook', - language_documentation_popover: 'packages/kbn-language-documentation/.storybook', + language_documentation_popover: + 'src/platform/packages/private/kbn-language-documentation/.storybook', chart_icons: 'packages/kbn-chart-icons/.storybook', content_management_examples: 'examples/content_management_examples/.storybook', custom_icons: 'packages/kbn-custom-icons/.storybook', @@ -61,7 +62,7 @@ export const storybookAliases = { observability_slo: 'x-pack/plugins/observability_solution/slo/.storybook', presentation: 'src/plugins/presentation_util/storybook', random_sampling: 'x-pack/packages/kbn-random-sampling/.storybook', - esql_editor: 'packages/kbn-esql-editor/.storybook', + esql_editor: 'src/platform/packages/private/kbn-esql-editor/.storybook', security_solution: 'x-pack/plugins/security_solution/.storybook', security_solution_packages: 'x-pack/packages/security-solution/storybook/config', serverless: 'packages/serverless/storybook/config', diff --git a/packages/kbn-esql-editor/.storybook/main.js b/src/platform/packages/private/kbn-esql-editor/.storybook/main.js similarity index 100% rename from packages/kbn-esql-editor/.storybook/main.js rename to src/platform/packages/private/kbn-esql-editor/.storybook/main.js diff --git a/packages/kbn-esql-editor/.storybook/preview.js b/src/platform/packages/private/kbn-esql-editor/.storybook/preview.js similarity index 100% rename from packages/kbn-esql-editor/.storybook/preview.js rename to src/platform/packages/private/kbn-esql-editor/.storybook/preview.js diff --git a/packages/kbn-esql-editor/README.md b/src/platform/packages/private/kbn-esql-editor/README.md similarity index 100% rename from packages/kbn-esql-editor/README.md rename to src/platform/packages/private/kbn-esql-editor/README.md diff --git a/packages/kbn-esql-editor/index.ts b/src/platform/packages/private/kbn-esql-editor/index.ts similarity index 100% rename from packages/kbn-esql-editor/index.ts rename to src/platform/packages/private/kbn-esql-editor/index.ts diff --git a/packages/kbn-esql-editor/jest.config.js b/src/platform/packages/private/kbn-esql-editor/jest.config.js similarity index 72% rename from packages/kbn-esql-editor/jest.config.js rename to src/platform/packages/private/kbn-esql-editor/jest.config.js index 303950b371682..cc84906a1d6cf 100644 --- a/packages/kbn-esql-editor/jest.config.js +++ b/src/platform/packages/private/kbn-esql-editor/jest.config.js @@ -9,7 +9,7 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-esql-editor'], - setupFilesAfterEnv: ['/packages/kbn-esql-editor/setup_tests.ts'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-esql-editor'], + setupFilesAfterEnv: ['/src/platform/packages/private/kbn-esql-editor/setup_tests.ts'], }; diff --git a/packages/kbn-esql-editor/kibana.jsonc b/src/platform/packages/private/kbn-esql-editor/kibana.jsonc similarity index 100% rename from packages/kbn-esql-editor/kibana.jsonc rename to src/platform/packages/private/kbn-esql-editor/kibana.jsonc diff --git a/packages/kbn-esql-editor/package.json b/src/platform/packages/private/kbn-esql-editor/package.json similarity index 100% rename from packages/kbn-esql-editor/package.json rename to src/platform/packages/private/kbn-esql-editor/package.json diff --git a/packages/kbn-esql-editor/setup_tests.ts b/src/platform/packages/private/kbn-esql-editor/setup_tests.ts similarity index 100% rename from packages/kbn-esql-editor/setup_tests.ts rename to src/platform/packages/private/kbn-esql-editor/setup_tests.ts diff --git a/packages/kbn-esql-editor/src/__stories__/esql_editor.stories.mdx b/src/platform/packages/private/kbn-esql-editor/src/__stories__/esql_editor.stories.mdx similarity index 100% rename from packages/kbn-esql-editor/src/__stories__/esql_editor.stories.mdx rename to src/platform/packages/private/kbn-esql-editor/src/__stories__/esql_editor.stories.mdx diff --git a/packages/kbn-esql-editor/src/editor_footer/discard_starred_query/discard_starred_query_modal.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/discard_starred_query/discard_starred_query_modal.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/discard_starred_query/discard_starred_query_modal.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/discard_starred_query/discard_starred_query_modal.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/discard_starred_query/index.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/discard_starred_query/index.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/discard_starred_query/index.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/discard_starred_query/index.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/errors_warnings_popover.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/errors_warnings_popover.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/errors_warnings_popover.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/errors_warnings_popover.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.test.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.test.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.test.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.test.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/esql_starred_queries_service.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/feedback_component.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/feedback_component.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/feedback_component.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/feedback_component.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/history_starred_queries.test.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries.test.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/history_starred_queries.test.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries.test.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/history_starred_queries.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/history_starred_queries.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.test.ts b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.test.ts similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.test.ts rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.test.ts diff --git a/packages/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.ts b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.ts similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.ts rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/history_starred_queries_helpers.ts diff --git a/packages/kbn-esql-editor/src/editor_footer/index.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/index.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/index.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/index.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/query_wrap_component.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/query_wrap_component.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/query_wrap_component.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/query_wrap_component.tsx diff --git a/packages/kbn-esql-editor/src/editor_footer/tooltip_wrapper.tsx b/src/platform/packages/private/kbn-esql-editor/src/editor_footer/tooltip_wrapper.tsx similarity index 100% rename from packages/kbn-esql-editor/src/editor_footer/tooltip_wrapper.tsx rename to src/platform/packages/private/kbn-esql-editor/src/editor_footer/tooltip_wrapper.tsx diff --git a/packages/kbn-esql-editor/src/esql_editor.styles.ts b/src/platform/packages/private/kbn-esql-editor/src/esql_editor.styles.ts similarity index 100% rename from packages/kbn-esql-editor/src/esql_editor.styles.ts rename to src/platform/packages/private/kbn-esql-editor/src/esql_editor.styles.ts diff --git a/packages/kbn-esql-editor/src/esql_editor.test.tsx b/src/platform/packages/private/kbn-esql-editor/src/esql_editor.test.tsx similarity index 100% rename from packages/kbn-esql-editor/src/esql_editor.test.tsx rename to src/platform/packages/private/kbn-esql-editor/src/esql_editor.test.tsx diff --git a/packages/kbn-esql-editor/src/esql_editor.tsx b/src/platform/packages/private/kbn-esql-editor/src/esql_editor.tsx similarity index 100% rename from packages/kbn-esql-editor/src/esql_editor.tsx rename to src/platform/packages/private/kbn-esql-editor/src/esql_editor.tsx diff --git a/packages/kbn-esql-editor/src/fetch_fields_from_esql.ts b/src/platform/packages/private/kbn-esql-editor/src/fetch_fields_from_esql.ts similarity index 100% rename from packages/kbn-esql-editor/src/fetch_fields_from_esql.ts rename to src/platform/packages/private/kbn-esql-editor/src/fetch_fields_from_esql.ts diff --git a/packages/kbn-esql-editor/src/helpers.test.ts b/src/platform/packages/private/kbn-esql-editor/src/helpers.test.ts similarity index 100% rename from packages/kbn-esql-editor/src/helpers.test.ts rename to src/platform/packages/private/kbn-esql-editor/src/helpers.test.ts diff --git a/packages/kbn-esql-editor/src/helpers.ts b/src/platform/packages/private/kbn-esql-editor/src/helpers.ts similarity index 100% rename from packages/kbn-esql-editor/src/helpers.ts rename to src/platform/packages/private/kbn-esql-editor/src/helpers.ts diff --git a/packages/kbn-esql-editor/src/history_local_storage.test.ts b/src/platform/packages/private/kbn-esql-editor/src/history_local_storage.test.ts similarity index 100% rename from packages/kbn-esql-editor/src/history_local_storage.test.ts rename to src/platform/packages/private/kbn-esql-editor/src/history_local_storage.test.ts diff --git a/packages/kbn-esql-editor/src/history_local_storage.ts b/src/platform/packages/private/kbn-esql-editor/src/history_local_storage.ts similarity index 100% rename from packages/kbn-esql-editor/src/history_local_storage.ts rename to src/platform/packages/private/kbn-esql-editor/src/history_local_storage.ts diff --git a/packages/kbn-esql-editor/src/overwrite.scss b/src/platform/packages/private/kbn-esql-editor/src/overwrite.scss similarity index 100% rename from packages/kbn-esql-editor/src/overwrite.scss rename to src/platform/packages/private/kbn-esql-editor/src/overwrite.scss diff --git a/packages/kbn-esql-editor/src/resizable_button.tsx b/src/platform/packages/private/kbn-esql-editor/src/resizable_button.tsx similarity index 100% rename from packages/kbn-esql-editor/src/resizable_button.tsx rename to src/platform/packages/private/kbn-esql-editor/src/resizable_button.tsx diff --git a/packages/kbn-esql-editor/src/types.ts b/src/platform/packages/private/kbn-esql-editor/src/types.ts similarity index 100% rename from packages/kbn-esql-editor/src/types.ts rename to src/platform/packages/private/kbn-esql-editor/src/types.ts diff --git a/packages/kbn-esql-editor/tsconfig.json b/src/platform/packages/private/kbn-esql-editor/tsconfig.json similarity index 94% rename from packages/kbn-esql-editor/tsconfig.json rename to src/platform/packages/private/kbn-esql-editor/tsconfig.json index 5131dd90fb0a5..e29b2d78e3897 100644 --- a/packages/kbn-esql-editor/tsconfig.json +++ b/src/platform/packages/private/kbn-esql-editor/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-language-documentation/.storybook/main.js b/src/platform/packages/private/kbn-language-documentation/.storybook/main.js similarity index 100% rename from packages/kbn-language-documentation/.storybook/main.js rename to src/platform/packages/private/kbn-language-documentation/.storybook/main.js diff --git a/packages/kbn-language-documentation/README.md b/src/platform/packages/private/kbn-language-documentation/README.md similarity index 100% rename from packages/kbn-language-documentation/README.md rename to src/platform/packages/private/kbn-language-documentation/README.md diff --git a/packages/kbn-language-documentation/index.ts b/src/platform/packages/private/kbn-language-documentation/index.ts similarity index 100% rename from packages/kbn-language-documentation/index.ts rename to src/platform/packages/private/kbn-language-documentation/index.ts diff --git a/packages/kbn-esql-utils/jest.config.js b/src/platform/packages/private/kbn-language-documentation/jest.config.js similarity index 82% rename from packages/kbn-esql-utils/jest.config.js rename to src/platform/packages/private/kbn-language-documentation/jest.config.js index a6cb7a3c43b54..c001ec9ff0a96 100644 --- a/packages/kbn-esql-utils/jest.config.js +++ b/src/platform/packages/private/kbn-language-documentation/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-esql-utils'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-language-documentation'], }; diff --git a/packages/kbn-language-documentation/kibana.jsonc b/src/platform/packages/private/kbn-language-documentation/kibana.jsonc similarity index 100% rename from packages/kbn-language-documentation/kibana.jsonc rename to src/platform/packages/private/kbn-language-documentation/kibana.jsonc diff --git a/packages/kbn-language-documentation/package.json b/src/platform/packages/private/kbn-language-documentation/package.json similarity index 68% rename from packages/kbn-language-documentation/package.json rename to src/platform/packages/private/kbn-language-documentation/package.json index 3788ee50f2c95..2c90cc1923394 100644 --- a/packages/kbn-language-documentation/package.json +++ b/src/platform/packages/private/kbn-language-documentation/package.json @@ -9,6 +9,6 @@ "scripts": { "make:docs": "ts-node --transpileOnly scripts/generate_esql_docs.ts", "postmake:docs": "yarn run lint:fix", - "lint:fix": "cd ../.. && node ./scripts/eslint --fix ./packages/kbn-language-documentation/src/sections/generated" + "lint:fix": "cd ../../../../.. && node ./scripts/eslint --fix ./src/platform/packages/private/kbn-language-documentation/src/sections/generated" } } diff --git a/packages/kbn-language-documentation/scripts/generate_esql_docs.ts b/src/platform/packages/private/kbn-language-documentation/scripts/generate_esql_docs.ts similarity index 100% rename from packages/kbn-language-documentation/scripts/generate_esql_docs.ts rename to src/platform/packages/private/kbn-language-documentation/scripts/generate_esql_docs.ts diff --git a/packages/kbn-language-documentation/setup_tests.ts b/src/platform/packages/private/kbn-language-documentation/setup_tests.ts similarity index 100% rename from packages/kbn-language-documentation/setup_tests.ts rename to src/platform/packages/private/kbn-language-documentation/setup_tests.ts diff --git a/packages/kbn-language-documentation/src/__stories__/language_documentation_popover.stories.tsx b/src/platform/packages/private/kbn-language-documentation/src/__stories__/language_documentation_popover.stories.tsx similarity index 100% rename from packages/kbn-language-documentation/src/__stories__/language_documentation_popover.stories.tsx rename to src/platform/packages/private/kbn-language-documentation/src/__stories__/language_documentation_popover.stories.tsx diff --git a/packages/kbn-language-documentation/src/components/as_flyout/index.test.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/as_flyout/index.test.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/as_flyout/index.test.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/as_flyout/index.test.tsx diff --git a/packages/kbn-language-documentation/src/components/as_flyout/index.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/as_flyout/index.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/as_flyout/index.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/as_flyout/index.tsx diff --git a/packages/kbn-language-documentation/src/components/as_inline/index.test.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/as_inline/index.test.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/as_inline/index.test.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/as_inline/index.test.tsx diff --git a/packages/kbn-language-documentation/src/components/as_inline/index.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/as_inline/index.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/as_inline/index.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/as_inline/index.tsx diff --git a/packages/kbn-language-documentation/src/components/as_popover/index.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/as_popover/index.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/as_popover/index.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/as_popover/index.tsx diff --git a/packages/kbn-language-documentation/src/components/as_popover/popover_content.test.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/as_popover/popover_content.test.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/as_popover/popover_content.test.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/as_popover/popover_content.test.tsx diff --git a/packages/kbn-language-documentation/src/components/as_popover/popover_content.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/as_popover/popover_content.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/as_popover/popover_content.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/as_popover/popover_content.tsx diff --git a/packages/kbn-language-documentation/src/components/shared/documentation.scss b/src/platform/packages/private/kbn-language-documentation/src/components/shared/documentation.scss similarity index 100% rename from packages/kbn-language-documentation/src/components/shared/documentation.scss rename to src/platform/packages/private/kbn-language-documentation/src/components/shared/documentation.scss diff --git a/packages/kbn-language-documentation/src/components/shared/documentation_content.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/shared/documentation_content.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/shared/documentation_content.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/shared/documentation_content.tsx diff --git a/packages/kbn-language-documentation/src/components/shared/documentation_navigation.tsx b/src/platform/packages/private/kbn-language-documentation/src/components/shared/documentation_navigation.tsx similarity index 100% rename from packages/kbn-language-documentation/src/components/shared/documentation_navigation.tsx rename to src/platform/packages/private/kbn-language-documentation/src/components/shared/documentation_navigation.tsx diff --git a/packages/kbn-language-documentation/src/components/shared/index.ts b/src/platform/packages/private/kbn-language-documentation/src/components/shared/index.ts similarity index 100% rename from packages/kbn-language-documentation/src/components/shared/index.ts rename to src/platform/packages/private/kbn-language-documentation/src/components/shared/index.ts diff --git a/packages/kbn-language-documentation/src/sections/esql_documentation_sections.tsx b/src/platform/packages/private/kbn-language-documentation/src/sections/esql_documentation_sections.tsx similarity index 100% rename from packages/kbn-language-documentation/src/sections/esql_documentation_sections.tsx rename to src/platform/packages/private/kbn-language-documentation/src/sections/esql_documentation_sections.tsx diff --git a/packages/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx b/src/platform/packages/private/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx similarity index 100% rename from packages/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx rename to src/platform/packages/private/kbn-language-documentation/src/sections/generated/aggregation_functions.tsx diff --git a/packages/kbn-language-documentation/src/sections/generated/scalar_functions.tsx b/src/platform/packages/private/kbn-language-documentation/src/sections/generated/scalar_functions.tsx similarity index 100% rename from packages/kbn-language-documentation/src/sections/generated/scalar_functions.tsx rename to src/platform/packages/private/kbn-language-documentation/src/sections/generated/scalar_functions.tsx diff --git a/packages/kbn-language-documentation/src/sections/index.ts b/src/platform/packages/private/kbn-language-documentation/src/sections/index.ts similarity index 100% rename from packages/kbn-language-documentation/src/sections/index.ts rename to src/platform/packages/private/kbn-language-documentation/src/sections/index.ts diff --git a/packages/kbn-language-documentation/src/types.ts b/src/platform/packages/private/kbn-language-documentation/src/types.ts similarity index 100% rename from packages/kbn-language-documentation/src/types.ts rename to src/platform/packages/private/kbn-language-documentation/src/types.ts diff --git a/packages/kbn-language-documentation/src/utils/element_to_string.test.tsx b/src/platform/packages/private/kbn-language-documentation/src/utils/element_to_string.test.tsx similarity index 100% rename from packages/kbn-language-documentation/src/utils/element_to_string.test.tsx rename to src/platform/packages/private/kbn-language-documentation/src/utils/element_to_string.test.tsx diff --git a/packages/kbn-language-documentation/src/utils/element_to_string.ts b/src/platform/packages/private/kbn-language-documentation/src/utils/element_to_string.ts similarity index 100% rename from packages/kbn-language-documentation/src/utils/element_to_string.ts rename to src/platform/packages/private/kbn-language-documentation/src/utils/element_to_string.ts diff --git a/packages/kbn-language-documentation/src/utils/get_filtered_groups.test.tsx b/src/platform/packages/private/kbn-language-documentation/src/utils/get_filtered_groups.test.tsx similarity index 100% rename from packages/kbn-language-documentation/src/utils/get_filtered_groups.test.tsx rename to src/platform/packages/private/kbn-language-documentation/src/utils/get_filtered_groups.test.tsx diff --git a/packages/kbn-language-documentation/src/utils/get_filtered_groups.ts b/src/platform/packages/private/kbn-language-documentation/src/utils/get_filtered_groups.ts similarity index 100% rename from packages/kbn-language-documentation/src/utils/get_filtered_groups.ts rename to src/platform/packages/private/kbn-language-documentation/src/utils/get_filtered_groups.ts diff --git a/packages/kbn-language-documentation/tsconfig.json b/src/platform/packages/private/kbn-language-documentation/tsconfig.json similarity index 87% rename from packages/kbn-language-documentation/tsconfig.json rename to src/platform/packages/private/kbn-language-documentation/tsconfig.json index f613b6cb759aa..54e161125fe41 100644 --- a/packages/kbn-language-documentation/tsconfig.json +++ b/src/platform/packages/private/kbn-language-documentation/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-esql-ast/BUILD.bazel b/src/platform/packages/shared/kbn-esql-ast/BUILD.bazel similarity index 100% rename from packages/kbn-esql-ast/BUILD.bazel rename to src/platform/packages/shared/kbn-esql-ast/BUILD.bazel diff --git a/packages/kbn-esql-ast/README.md b/src/platform/packages/shared/kbn-esql-ast/README.md similarity index 100% rename from packages/kbn-esql-ast/README.md rename to src/platform/packages/shared/kbn-esql-ast/README.md diff --git a/packages/kbn-esql-ast/index.ts b/src/platform/packages/shared/kbn-esql-ast/index.ts similarity index 100% rename from packages/kbn-esql-ast/index.ts rename to src/platform/packages/shared/kbn-esql-ast/index.ts diff --git a/packages/kbn-esql-validation-autocomplete/jest.config.js b/src/platform/packages/shared/kbn-esql-ast/jest.config.js similarity index 84% rename from packages/kbn-esql-validation-autocomplete/jest.config.js rename to src/platform/packages/shared/kbn-esql-ast/jest.config.js index 314329cd8c541..1031cbe4a3eb8 100644 --- a/packages/kbn-esql-validation-autocomplete/jest.config.js +++ b/src/platform/packages/shared/kbn-esql-ast/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-esql-validation-autocomplete'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-esql-ast'], }; diff --git a/packages/kbn-esql-ast/kibana.jsonc b/src/platform/packages/shared/kbn-esql-ast/kibana.jsonc similarity index 100% rename from packages/kbn-esql-ast/kibana.jsonc rename to src/platform/packages/shared/kbn-esql-ast/kibana.jsonc diff --git a/packages/kbn-esql-ast/package.json b/src/platform/packages/shared/kbn-esql-ast/package.json similarity index 100% rename from packages/kbn-esql-ast/package.json rename to src/platform/packages/shared/kbn-esql-ast/package.json diff --git a/packages/kbn-esql-ast/scripts/antlr4_tools/.gitignore b/src/platform/packages/shared/kbn-esql-ast/scripts/antlr4_tools/.gitignore similarity index 100% rename from packages/kbn-esql-ast/scripts/antlr4_tools/.gitignore rename to src/platform/packages/shared/kbn-esql-ast/scripts/antlr4_tools/.gitignore diff --git a/packages/kbn-esql-ast/scripts/antlr4_tools/README.md b/src/platform/packages/shared/kbn-esql-ast/scripts/antlr4_tools/README.md similarity index 100% rename from packages/kbn-esql-ast/scripts/antlr4_tools/README.md rename to src/platform/packages/shared/kbn-esql-ast/scripts/antlr4_tools/README.md diff --git a/packages/kbn-esql-ast/scripts/antlr4_tools/brewfile b/src/platform/packages/shared/kbn-esql-ast/scripts/antlr4_tools/brewfile similarity index 100% rename from packages/kbn-esql-ast/scripts/antlr4_tools/brewfile rename to src/platform/packages/shared/kbn-esql-ast/scripts/antlr4_tools/brewfile diff --git a/packages/kbn-esql-ast/scripts/esql_update_ast_script.js b/src/platform/packages/shared/kbn-esql-ast/scripts/esql_update_ast_script.js similarity index 100% rename from packages/kbn-esql-ast/scripts/esql_update_ast_script.js rename to src/platform/packages/shared/kbn-esql-ast/scripts/esql_update_ast_script.js diff --git a/packages/kbn-esql-ast/scripts/fix_generated_antlr.js b/src/platform/packages/shared/kbn-esql-ast/scripts/fix_generated_antlr.js similarity index 100% rename from packages/kbn-esql-ast/scripts/fix_generated_antlr.js rename to src/platform/packages/shared/kbn-esql-ast/scripts/fix_generated_antlr.js diff --git a/packages/kbn-esql-ast/src/antlr/.gitignore b/src/platform/packages/shared/kbn-esql-ast/src/antlr/.gitignore similarity index 100% rename from packages/kbn-esql-ast/src/antlr/.gitignore rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/.gitignore diff --git a/packages/kbn-esql-ast/src/antlr/esql_lexer.g4 b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.g4 similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_lexer.g4 rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.g4 diff --git a/packages/kbn-esql-ast/src/antlr/esql_lexer.interp b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.interp similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_lexer.interp rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.interp diff --git a/packages/kbn-esql-ast/src/antlr/esql_lexer.tokens b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.tokens similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_lexer.tokens rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.tokens diff --git a/packages/kbn-esql-ast/src/antlr/esql_lexer.ts b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.ts similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_lexer.ts rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_lexer.ts diff --git a/packages/kbn-esql-ast/src/antlr/esql_parser.g4 b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.g4 similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_parser.g4 rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.g4 diff --git a/packages/kbn-esql-ast/src/antlr/esql_parser.interp b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.interp similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_parser.interp rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.interp diff --git a/packages/kbn-esql-ast/src/antlr/esql_parser.tokens b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.tokens similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_parser.tokens rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.tokens diff --git a/packages/kbn-esql-ast/src/antlr/esql_parser.ts b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.ts similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_parser.ts rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser.ts diff --git a/packages/kbn-esql-ast/src/antlr/esql_parser_listener.ts b/src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser_listener.ts similarity index 100% rename from packages/kbn-esql-ast/src/antlr/esql_parser_listener.ts rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/esql_parser_listener.ts diff --git a/packages/kbn-esql-ast/src/antlr/lexer_config.js b/src/platform/packages/shared/kbn-esql-ast/src/antlr/lexer_config.js similarity index 100% rename from packages/kbn-esql-ast/src/antlr/lexer_config.js rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/lexer_config.js diff --git a/packages/kbn-esql-ast/src/antlr/parser_config.js b/src/platform/packages/shared/kbn-esql-ast/src/antlr/parser_config.js similarity index 100% rename from packages/kbn-esql-ast/src/antlr/parser_config.js rename to src/platform/packages/shared/kbn-esql-ast/src/antlr/parser_config.js diff --git a/packages/kbn-esql-ast/src/ast/constants.ts b/src/platform/packages/shared/kbn-esql-ast/src/ast/constants.ts similarity index 100% rename from packages/kbn-esql-ast/src/ast/constants.ts rename to src/platform/packages/shared/kbn-esql-ast/src/ast/constants.ts diff --git a/packages/kbn-esql-ast/src/ast/helpers.ts b/src/platform/packages/shared/kbn-esql-ast/src/ast/helpers.ts similarity index 100% rename from packages/kbn-esql-ast/src/ast/helpers.ts rename to src/platform/packages/shared/kbn-esql-ast/src/ast/helpers.ts diff --git a/packages/kbn-esql-ast/src/ast/util.ts b/src/platform/packages/shared/kbn-esql-ast/src/ast/util.ts similarity index 100% rename from packages/kbn-esql-ast/src/ast/util.ts rename to src/platform/packages/shared/kbn-esql-ast/src/ast/util.ts diff --git a/packages/kbn-esql-ast/src/builder/README.md b/src/platform/packages/shared/kbn-esql-ast/src/builder/README.md similarity index 100% rename from packages/kbn-esql-ast/src/builder/README.md rename to src/platform/packages/shared/kbn-esql-ast/src/builder/README.md diff --git a/packages/kbn-esql-ast/src/builder/builder.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/builder/builder.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/builder/builder.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/builder/builder.test.ts diff --git a/packages/kbn-esql-ast/src/builder/builder.ts b/src/platform/packages/shared/kbn-esql-ast/src/builder/builder.ts similarity index 100% rename from packages/kbn-esql-ast/src/builder/builder.ts rename to src/platform/packages/shared/kbn-esql-ast/src/builder/builder.ts diff --git a/packages/kbn-esql-ast/src/builder/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/builder/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/builder/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/builder/index.ts diff --git a/packages/kbn-esql-ast/src/builder/types.ts b/src/platform/packages/shared/kbn-esql-ast/src/builder/types.ts similarity index 100% rename from packages/kbn-esql-ast/src/builder/types.ts rename to src/platform/packages/shared/kbn-esql-ast/src/builder/types.ts diff --git a/packages/kbn-esql-ast/src/mutate/README.md b/src/platform/packages/shared/kbn-esql-ast/src/mutate/README.md similarity index 100% rename from packages/kbn-esql-ast/src/mutate/README.md rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/README.md diff --git a/packages/kbn-esql-ast/src/mutate/commands/from/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/from/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/from/metadata.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/metadata.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/from/metadata.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/metadata.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/from/metadata.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/metadata.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/from/metadata.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/metadata.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/from/sources.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/sources.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/from/sources.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/sources.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/from/sources.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/sources.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/from/sources.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/from/sources.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/limit/index.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/limit/index.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/limit/index.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/limit/index.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/limit/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/limit/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/limit/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/limit/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/sort/index.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/sort/index.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/sort/index.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/sort/index.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/sort/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/sort/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/sort/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/sort/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/stats/index.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/stats/index.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/stats/index.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/stats/index.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/stats/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/stats/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/stats/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/stats/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/where/index.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/where/index.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/where/index.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/where/index.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/where/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/where/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/where/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/where/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/commands/where/index_scenarios.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/where/index_scenarios.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/commands/where/index_scenarios.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/commands/where/index_scenarios.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/generic/commands/args/index.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/args/index.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/generic/commands/args/index.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/args/index.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/generic/commands/args/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/args/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/generic/commands/args/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/args/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/generic/commands/index.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/index.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/generic/commands/index.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/index.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/generic/commands/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/generic/commands/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/generic/commands/options/index.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/options/index.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/generic/commands/options/index.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/options/index.test.ts diff --git a/packages/kbn-esql-ast/src/mutate/generic/commands/options/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/options/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/generic/commands/options/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/commands/options/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/generic/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/generic/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/generic/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/index.ts diff --git a/packages/kbn-esql-ast/src/mutate/types.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/types.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/types.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/types.ts diff --git a/packages/kbn-esql-ast/src/mutate/util.ts b/src/platform/packages/shared/kbn-esql-ast/src/mutate/util.ts similarity index 100% rename from packages/kbn-esql-ast/src/mutate/util.ts rename to src/platform/packages/shared/kbn-esql-ast/src/mutate/util.ts diff --git a/packages/kbn-esql-ast/src/parser/README.md b/src/platform/packages/shared/kbn-esql-ast/src/parser/README.md similarity index 100% rename from packages/kbn-esql-ast/src/parser/README.md rename to src/platform/packages/shared/kbn-esql-ast/src/parser/README.md diff --git a/packages/kbn-esql-ast/src/parser/__tests__/ast_parser.source.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/ast_parser.source.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/ast_parser.source.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/ast_parser.source.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/columns.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/columns.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/columns.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/columns.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/command_options.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/command_options.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/command_options.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/command_options.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/commands.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/commands.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/commands.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/commands.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/comments.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/comments.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/comments.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/comments.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/from.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/from.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/from.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/from.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/function.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/function.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/function.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/function.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/inlinecast.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/inlinecast.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/inlinecast.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/inlinecast.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/join.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/join.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/join.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/join.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/literal.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/literal.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/literal.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/literal.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/metrics.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/metrics.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/metrics.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/metrics.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/params.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/params.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/params.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/params.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/rename.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/rename.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/rename.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/rename.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/sort.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/sort.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/sort.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/sort.test.ts diff --git a/packages/kbn-esql-ast/src/parser/__tests__/where.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/where.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/__tests__/where.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/__tests__/where.test.ts diff --git a/packages/kbn-esql-ast/src/parser/constants.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/constants.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/constants.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/constants.ts diff --git a/packages/kbn-esql-ast/src/parser/esql_ast_builder_listener.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/esql_ast_builder_listener.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/esql_ast_builder_listener.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/esql_ast_builder_listener.ts diff --git a/packages/kbn-esql-ast/src/parser/esql_error_listener.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/esql_error_listener.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/esql_error_listener.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/esql_error_listener.ts diff --git a/packages/kbn-esql-ast/src/parser/factories.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/factories.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/factories.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/factories.ts diff --git a/packages/kbn-esql-ast/src/parser/factories/join.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/factories/join.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/factories/join.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/factories/join.ts diff --git a/packages/kbn-esql-ast/src/parser/formatting.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/formatting.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/formatting.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/formatting.ts diff --git a/packages/kbn-esql-ast/src/parser/helpers.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/helpers.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/helpers.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/helpers.ts diff --git a/packages/kbn-esql-ast/src/parser/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/index.ts diff --git a/packages/kbn-esql-ast/src/parser/parser.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/parser.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/parser.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/parser.ts diff --git a/packages/kbn-esql-ast/src/parser/types.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/types.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/types.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/types.ts diff --git a/packages/kbn-esql-ast/src/parser/walkers.ts b/src/platform/packages/shared/kbn-esql-ast/src/parser/walkers.ts similarity index 100% rename from packages/kbn-esql-ast/src/parser/walkers.ts rename to src/platform/packages/shared/kbn-esql-ast/src/parser/walkers.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/README.md b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/README.md similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/README.md rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/README.md diff --git a/packages/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.comments.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.comments.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.comments.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.comments.test.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/basic_pretty_printer.test.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/__tests__/fixtures.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/fixtures.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/__tests__/fixtures.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/fixtures.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.comments.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.comments.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.comments.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.comments.test.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/__tests__/wrapping_pretty_printer.test.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/basic_pretty_printer.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/basic_pretty_printer.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/basic_pretty_printer.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/basic_pretty_printer.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/constants.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/constants.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/constants.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/constants.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/helpers.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/helpers.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/helpers.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/helpers.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/index.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/leaf_printer.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/leaf_printer.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/leaf_printer.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/leaf_printer.ts diff --git a/packages/kbn-esql-ast/src/pretty_print/wrapping_pretty_printer.ts b/src/platform/packages/shared/kbn-esql-ast/src/pretty_print/wrapping_pretty_printer.ts similarity index 100% rename from packages/kbn-esql-ast/src/pretty_print/wrapping_pretty_printer.ts rename to src/platform/packages/shared/kbn-esql-ast/src/pretty_print/wrapping_pretty_printer.ts diff --git a/packages/kbn-esql-ast/src/query/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/query/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/query/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/query/index.ts diff --git a/packages/kbn-esql-ast/src/query/query.ts b/src/platform/packages/shared/kbn-esql-ast/src/query/query.ts similarity index 100% rename from packages/kbn-esql-ast/src/query/query.ts rename to src/platform/packages/shared/kbn-esql-ast/src/query/query.ts diff --git a/packages/kbn-esql-ast/src/synth/README.md b/src/platform/packages/shared/kbn-esql-ast/src/synth/README.md similarity index 100% rename from packages/kbn-esql-ast/src/synth/README.md rename to src/platform/packages/shared/kbn-esql-ast/src/synth/README.md diff --git a/packages/kbn-esql-ast/src/synth/__tests__/cmd.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/cmd.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/__tests__/cmd.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/cmd.test.ts diff --git a/packages/kbn-esql-ast/src/synth/__tests__/expr_function.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/expr_function.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/__tests__/expr_function.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/expr_function.test.ts diff --git a/packages/kbn-esql-ast/src/synth/__tests__/expr_template.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/expr_template.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/__tests__/expr_template.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/expr_template.test.ts diff --git a/packages/kbn-esql-ast/src/synth/__tests__/scenarios.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/scenarios.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/__tests__/scenarios.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/__tests__/scenarios.test.ts diff --git a/packages/kbn-esql-ast/src/synth/cmd.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/cmd.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/cmd.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/cmd.ts diff --git a/packages/kbn-esql-ast/src/synth/expr.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/expr.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/expr.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/expr.ts diff --git a/packages/kbn-esql-ast/src/synth/helpers.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/helpers.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/helpers.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/helpers.ts diff --git a/packages/kbn-esql-ast/src/synth/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/index.ts diff --git a/packages/kbn-esql-ast/src/synth/types.ts b/src/platform/packages/shared/kbn-esql-ast/src/synth/types.ts similarity index 100% rename from packages/kbn-esql-ast/src/synth/types.ts rename to src/platform/packages/shared/kbn-esql-ast/src/synth/types.ts diff --git a/packages/kbn-esql-ast/src/types.ts b/src/platform/packages/shared/kbn-esql-ast/src/types.ts similarity index 100% rename from packages/kbn-esql-ast/src/types.ts rename to src/platform/packages/shared/kbn-esql-ast/src/types.ts diff --git a/packages/kbn-esql-ast/src/visitor/README.md b/src/platform/packages/shared/kbn-esql-ast/src/visitor/README.md similarity index 100% rename from packages/kbn-esql-ast/src/visitor/README.md rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/README.md diff --git a/packages/kbn-esql-ast/src/visitor/__tests__/commands.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/commands.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/__tests__/commands.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/commands.test.ts diff --git a/packages/kbn-esql-ast/src/visitor/__tests__/expressions.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/expressions.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/__tests__/expressions.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/expressions.test.ts diff --git a/packages/kbn-esql-ast/src/visitor/__tests__/scenarios.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/scenarios.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/__tests__/scenarios.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/scenarios.test.ts diff --git a/packages/kbn-esql-ast/src/visitor/__tests__/visitor.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/visitor.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/__tests__/visitor.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/__tests__/visitor.test.ts diff --git a/packages/kbn-esql-ast/src/visitor/contexts.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/contexts.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/contexts.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/contexts.ts diff --git a/packages/kbn-esql-ast/src/visitor/global_visitor_context.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/global_visitor_context.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/global_visitor_context.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/global_visitor_context.ts diff --git a/packages/kbn-esql-ast/src/visitor/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/index.ts diff --git a/packages/kbn-esql-ast/src/visitor/types.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/types.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/types.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/types.ts diff --git a/packages/kbn-esql-ast/src/visitor/utils.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/utils.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/utils.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/utils.ts diff --git a/packages/kbn-esql-ast/src/visitor/visitor.ts b/src/platform/packages/shared/kbn-esql-ast/src/visitor/visitor.ts similarity index 100% rename from packages/kbn-esql-ast/src/visitor/visitor.ts rename to src/platform/packages/shared/kbn-esql-ast/src/visitor/visitor.ts diff --git a/packages/kbn-esql-ast/src/walker/README.md b/src/platform/packages/shared/kbn-esql-ast/src/walker/README.md similarity index 100% rename from packages/kbn-esql-ast/src/walker/README.md rename to src/platform/packages/shared/kbn-esql-ast/src/walker/README.md diff --git a/packages/kbn-esql-ast/src/walker/helpers.ts b/src/platform/packages/shared/kbn-esql-ast/src/walker/helpers.ts similarity index 100% rename from packages/kbn-esql-ast/src/walker/helpers.ts rename to src/platform/packages/shared/kbn-esql-ast/src/walker/helpers.ts diff --git a/packages/kbn-esql-ast/src/walker/index.ts b/src/platform/packages/shared/kbn-esql-ast/src/walker/index.ts similarity index 100% rename from packages/kbn-esql-ast/src/walker/index.ts rename to src/platform/packages/shared/kbn-esql-ast/src/walker/index.ts diff --git a/packages/kbn-esql-ast/src/walker/walker.test.ts b/src/platform/packages/shared/kbn-esql-ast/src/walker/walker.test.ts similarity index 100% rename from packages/kbn-esql-ast/src/walker/walker.test.ts rename to src/platform/packages/shared/kbn-esql-ast/src/walker/walker.test.ts diff --git a/packages/kbn-esql-ast/src/walker/walker.ts b/src/platform/packages/shared/kbn-esql-ast/src/walker/walker.ts similarity index 100% rename from packages/kbn-esql-ast/src/walker/walker.ts rename to src/platform/packages/shared/kbn-esql-ast/src/walker/walker.ts diff --git a/packages/kbn-esql-ast/tsconfig.json b/src/platform/packages/shared/kbn-esql-ast/tsconfig.json similarity index 81% rename from packages/kbn-esql-ast/tsconfig.json rename to src/platform/packages/shared/kbn-esql-ast/tsconfig.json index a53bf973e2373..f4dec95868b42 100644 --- a/packages/kbn-esql-ast/tsconfig.json +++ b/src/platform/packages/shared/kbn-esql-ast/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-esql-utils/README.md b/src/platform/packages/shared/kbn-esql-utils/README.md similarity index 100% rename from packages/kbn-esql-utils/README.md rename to src/platform/packages/shared/kbn-esql-utils/README.md diff --git a/packages/kbn-esql-utils/constants.ts b/src/platform/packages/shared/kbn-esql-utils/constants.ts similarity index 100% rename from packages/kbn-esql-utils/constants.ts rename to src/platform/packages/shared/kbn-esql-utils/constants.ts diff --git a/packages/kbn-esql-utils/index.ts b/src/platform/packages/shared/kbn-esql-utils/index.ts similarity index 100% rename from packages/kbn-esql-utils/index.ts rename to src/platform/packages/shared/kbn-esql-utils/index.ts diff --git a/packages/kbn-esql-ast/jest.config.js b/src/platform/packages/shared/kbn-esql-utils/jest.config.js similarity index 84% rename from packages/kbn-esql-ast/jest.config.js rename to src/platform/packages/shared/kbn-esql-utils/jest.config.js index bcd3df071307a..67e6ade4d2194 100644 --- a/packages/kbn-esql-ast/jest.config.js +++ b/src/platform/packages/shared/kbn-esql-utils/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-esql-ast'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-esql-utils'], }; diff --git a/packages/kbn-esql-utils/kibana.jsonc b/src/platform/packages/shared/kbn-esql-utils/kibana.jsonc similarity index 100% rename from packages/kbn-esql-utils/kibana.jsonc rename to src/platform/packages/shared/kbn-esql-utils/kibana.jsonc diff --git a/packages/kbn-esql-utils/package.json b/src/platform/packages/shared/kbn-esql-utils/package.json similarity index 100% rename from packages/kbn-esql-utils/package.json rename to src/platform/packages/shared/kbn-esql-utils/package.json diff --git a/packages/kbn-esql-utils/src/index.ts b/src/platform/packages/shared/kbn-esql-utils/src/index.ts similarity index 100% rename from packages/kbn-esql-utils/src/index.ts rename to src/platform/packages/shared/kbn-esql-utils/src/index.ts diff --git a/packages/kbn-esql-utils/src/types.ts b/src/platform/packages/shared/kbn-esql-utils/src/types.ts similarity index 100% rename from packages/kbn-esql-utils/src/types.ts rename to src/platform/packages/shared/kbn-esql-utils/src/types.ts diff --git a/packages/kbn-esql-utils/src/utils/append_to_query.test.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/append_to_query.test.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/append_to_query.test.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/append_to_query.test.ts diff --git a/packages/kbn-esql-utils/src/utils/append_to_query.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/append_to_query.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/append_to_query.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/append_to_query.ts diff --git a/packages/kbn-esql-utils/src/utils/esql_fields_utils.test.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/esql_fields_utils.test.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/esql_fields_utils.test.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/esql_fields_utils.test.ts diff --git a/packages/kbn-esql-utils/src/utils/esql_fields_utils.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/esql_fields_utils.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/esql_fields_utils.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/esql_fields_utils.ts diff --git a/packages/kbn-esql-utils/src/utils/get_esql_adhoc_dataview.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/get_esql_adhoc_dataview.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/get_esql_adhoc_dataview.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/get_esql_adhoc_dataview.ts diff --git a/packages/kbn-esql-utils/src/utils/get_esql_with_safe_limit.test.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/get_esql_with_safe_limit.test.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/get_esql_with_safe_limit.test.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/get_esql_with_safe_limit.test.ts diff --git a/packages/kbn-esql-utils/src/utils/get_esql_with_safe_limit.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/get_esql_with_safe_limit.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/get_esql_with_safe_limit.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/get_esql_with_safe_limit.ts diff --git a/packages/kbn-esql-utils/src/utils/get_initial_esql_query.test.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/get_initial_esql_query.test.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/get_initial_esql_query.test.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/get_initial_esql_query.test.ts diff --git a/packages/kbn-esql-utils/src/utils/get_initial_esql_query.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/get_initial_esql_query.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/get_initial_esql_query.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/get_initial_esql_query.ts diff --git a/packages/kbn-esql-utils/src/utils/query_cannot_be_sampled.test.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/query_cannot_be_sampled.test.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/query_cannot_be_sampled.test.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/query_cannot_be_sampled.test.ts diff --git a/packages/kbn-esql-utils/src/utils/query_cannot_be_sampled.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/query_cannot_be_sampled.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/query_cannot_be_sampled.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/query_cannot_be_sampled.ts diff --git a/packages/kbn-esql-utils/src/utils/query_parsing_helpers.test.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.test.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/query_parsing_helpers.test.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.test.ts diff --git a/packages/kbn-esql-utils/src/utils/query_parsing_helpers.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/query_parsing_helpers.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts diff --git a/packages/kbn-esql-utils/src/utils/run_query.test.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/run_query.test.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/run_query.test.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/run_query.test.ts diff --git a/packages/kbn-esql-utils/src/utils/run_query.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/run_query.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/run_query.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/run_query.ts diff --git a/packages/kbn-esql-utils/src/utils/sha256.ts b/src/platform/packages/shared/kbn-esql-utils/src/utils/sha256.ts similarity index 100% rename from packages/kbn-esql-utils/src/utils/sha256.ts rename to src/platform/packages/shared/kbn-esql-utils/src/utils/sha256.ts diff --git a/packages/kbn-esql-utils/tsconfig.json b/src/platform/packages/shared/kbn-esql-utils/tsconfig.json similarity index 90% rename from packages/kbn-esql-utils/tsconfig.json rename to src/platform/packages/shared/kbn-esql-utils/tsconfig.json index 79c447579d86c..c57e474c9a248 100644 --- a/packages/kbn-esql-utils/tsconfig.json +++ b/src/platform/packages/shared/kbn-esql-utils/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-esql-validation-autocomplete/BUILD.bazel b/src/platform/packages/shared/kbn-esql-validation-autocomplete/BUILD.bazel similarity index 100% rename from packages/kbn-esql-validation-autocomplete/BUILD.bazel rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/BUILD.bazel diff --git a/packages/kbn-esql-validation-autocomplete/README.md b/src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md similarity index 91% rename from packages/kbn-esql-validation-autocomplete/README.md rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md index 977b568e93a3f..d67d4a3689468 100644 --- a/packages/kbn-esql-validation-autocomplete/README.md +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/README.md @@ -215,11 +215,11 @@ Both the validation and autocomplete engine are covered by extensive suites of t #### Running the tests -All the tests can be run using the `yarn jest:tests packages/kbn-esql-validation-autocomplete/path/to/test/file` command at the root of the repository. +All the tests can be run using the `yarn jest:tests src/platform/packages/shared/kbn-esql-validation-autocomplete/path/to/test/file` command at the root of the repository. To run all autocomplete and validation tests you can specifically run -`yarn test:jest packages/kbn-esql-validation-autocomplete/` +`yarn test:jest src/platform/packages/shared/kbn-esql-validation-autocomplete/` #### Ongoing refactor @@ -241,7 +241,7 @@ The newer pattern is ##### The new way -Validation test logic is found in `packages/kbn-esql-validation-autocomplete/src/validation/__tests__`. +Validation test logic is found in `src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__`. Tests are found in files named with the following convention: `validation.some-description.test.ts`. @@ -274,7 +274,7 @@ testErrorsAndWarnings(`ROW var = NOT 5 LIKE "?a"`, [ ]); ``` -and are found in `packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts`. +and are found in `src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/validation.test.ts`. `testErrorsAndWarnings` supports `skip` and `only` modifiers e.g. `testErrorsAndWarnings.only('...')`. @@ -284,13 +284,13 @@ It accepts 2. a list of expected errors (can be empty) 3. a list of expected warnings (can be empty or omitted) -Running the tests in `validation.test.ts` populates `packages/kbn-esql-validation-autocomplete/src/validation/esql_validation_meta_tests.json` which is then used in `test/api_integration/apis/esql/errors.ts` to make sure our validator isn't giving users false positives. Therefore, the validation test suite should always be run after any changes have been made to it so that the JSON file stays in sync. +Running the tests in `validation.test.ts` populates `src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/esql_validation_meta_tests.json` which is then used in `test/api_integration/apis/esql/errors.ts` to make sure our validator isn't giving users false positives. Therefore, the validation test suite should always be run after any changes have been made to it so that the JSON file stays in sync. #### Autocomplete ##### The new way -The new tests are found in `packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__`. +The new tests are found in `src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__`. They look like this. @@ -327,7 +327,7 @@ So, that allows you to customize the [trigger kind](https://microsoft.github.io/ ##### The old way -All the legacy autocomplete tests are found in `packages/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.test.ts`. +All the legacy autocomplete tests are found in `src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.test.ts`. They look like this diff --git a/packages/kbn-esql-validation-autocomplete/index.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/index.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/index.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/index.ts diff --git a/packages/kbn-language-documentation/jest.config.js b/src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js similarity index 81% rename from packages/kbn-language-documentation/jest.config.js rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js index 1507a0cdfd7cb..f37a4337e0027 100644 --- a/packages/kbn-language-documentation/jest.config.js +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-language-documentation'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-esql-validation-autocomplete'], }; diff --git a/packages/kbn-esql-validation-autocomplete/jest.integration.config.js b/src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js similarity index 83% rename from packages/kbn-esql-validation-autocomplete/jest.integration.config.js rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js index 899746af419e8..c4f682e7d6e6f 100644 --- a/packages/kbn-esql-validation-autocomplete/jest.integration.config.js +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/jest.integration.config.js @@ -9,8 +9,8 @@ module.exports = { preset: '@kbn/test/jest_integration_node', - rootDir: '../..', - roots: ['/packages/kbn-esql-validation-autocomplete'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-esql-validation-autocomplete'], openHandlesTimeout: 0, forceExit: true, }; diff --git a/packages/kbn-esql-validation-autocomplete/kibana.jsonc b/src/platform/packages/shared/kbn-esql-validation-autocomplete/kibana.jsonc similarity index 100% rename from packages/kbn-esql-validation-autocomplete/kibana.jsonc rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/kibana.jsonc diff --git a/packages/kbn-esql-validation-autocomplete/package.json b/src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json similarity index 50% rename from packages/kbn-esql-validation-autocomplete/package.json rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json index 074a4f04f6dac..0fb54a1e61c30 100644 --- a/packages/kbn-esql-validation-autocomplete/package.json +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/package.json @@ -7,7 +7,7 @@ "scripts": { "make:defs": "ts-node --transpileOnly ./scripts/generate_function_definitions.ts", "postmake:defs": "yarn run lint:fix:generated", - "lint:fix:generated": "cd ../.. && node ./scripts/eslint --fix ./packages/kbn-esql-validation-autocomplete/src/definitions/generated", - "test:validation": "cd ../.. && yarn test:jest ./packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts" + "lint:fix:generated": "cd ../../../../.. && node ./scripts/eslint --fix ./src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/generated", + "test:validation": "cd ../../../../.. && yarn test:jest ./src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/validation.test.ts" } } diff --git a/packages/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts similarity index 99% rename from packages/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts index 3a810cac3ad75..0601a82983123 100644 --- a/packages/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/scripts/generate_function_definitions.ts @@ -386,7 +386,7 @@ import type { FunctionDefinition } from '../types'; ${ functionsType === 'scalar' ? `import type { ESQLFunction } from '@kbn/esql-ast'; -import { isLiteralItem } from '../../shared/helpers';` +import { isLiteralItem } from '../../../../../shared/helpers';` : '' } diff --git a/packages/kbn-esql-validation-autocomplete/src/__tests__/helpers.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/__tests__/helpers.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/__tests__/helpers.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/__tests__/helpers.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.from.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.from.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.from.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.from.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.sort.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.sort.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.sort.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.sort.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.stats.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.stats.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.stats.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.stats.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.where.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.where.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.where.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.command.where.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.eval.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.eval.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.eval.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.eval.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/autocomplete.suggest.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/constants.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/constants.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/constants.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/constants.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/helpers.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/helpers.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/helpers.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/helpers.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/hidden_functions_and_commands.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/hidden_functions_and_commands.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/hidden_functions_and_commands.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/hidden_functions_and_commands.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/suggestions_in_comments.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/suggestions_in_comments.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/suggestions_in_comments.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/__tests__/suggestions_in_comments.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/autocomplete.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/drop/index.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/drop/index.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/drop/index.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/drop/index.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/keep/index.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/keep/index.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/keep/index.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/keep/index.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/helper.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/index.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/index.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/index.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/sort/index.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/index.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/index.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/index.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/index.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/util.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/util.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/util.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/stats/util.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/index.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/index.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/index.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/index.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/util.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/util.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/util.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/commands/where/util.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/complete_items.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/complete_items.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/complete_items.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/complete_items.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/documentation_util.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/documentation_util.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/documentation_util.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/documentation_util.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/factories.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/factories.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/factories.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/factories.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/helper.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/helper.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts similarity index 99% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts index 67ea324a1a69a..f359b928f3c36 100644 --- a/packages/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/helper.ts @@ -452,7 +452,7 @@ export function pushItUpInTheList(suggestions: SuggestionRawDefinition[], should })); } -/** @deprecated — use getExpressionType instead (packages/kbn-esql-validation-autocomplete/src/shared/helpers.ts) */ +/** @deprecated — use getExpressionType instead (src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/helpers.ts) */ export function extractTypeFromASTArg( arg: ESQLAstItem, references: Pick diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/suggestions.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/suggestions.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/suggestions.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/suggestions.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/templates.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/templates.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/templates.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/recommended_queries/templates.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/autocomplete/utils/ecs_metadata_helper.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/code_actions/actions.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/actions.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/code_actions/actions.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/actions.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/code_actions/actions.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/actions.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/code_actions/actions.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/actions.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/code_actions/types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/code_actions/types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/code_actions/utils.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/utils.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/code_actions/utils.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/code_actions/utils.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/builtin.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/builtin.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/builtin.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/builtin.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/commands.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/commands.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/commands.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/commands.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/generated/aggregation_functions.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/generated/aggregation_functions.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/generated/aggregation_functions.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/generated/aggregation_functions.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/generated/scalar_functions.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/generated/scalar_functions.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/generated/scalar_functions.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/generated/scalar_functions.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/grouping.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/grouping.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/grouping.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/grouping.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/helpers.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/helpers.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/helpers.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/helpers.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/literals.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/literals.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/literals.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/literals.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/options.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/options.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/options.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/options.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/settings.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/settings.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/settings.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/settings.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/definitions/types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/definitions/types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/definitions/types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/constants.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/constants.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/constants.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/constants.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/context.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/context.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/context.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/context.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/esql_types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/esql_types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/esql_types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/esql_types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/helpers.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/helpers.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/helpers.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/helpers.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/helpers.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/helpers.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/helpers.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/helpers.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/resources_helpers.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/resources_helpers.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/resources_helpers.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/resources_helpers.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/test_functions.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/test_functions.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/test_functions.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/test_functions.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/shared/variables.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/variables.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/shared/variables.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/shared/variables.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/.gitignore b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/.gitignore similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/.gitignore rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/.gitignore diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/callbacks.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/callbacks.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/callbacks.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/callbacks.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/fields_and_variables.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/fields_and_variables.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/fields_and_variables.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/fields_and_variables.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/functions.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/functions.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/functions.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/functions.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/helpers.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/helpers.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/helpers.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/helpers.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.from.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.from.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.from.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.from.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.inlinestats.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.inlinestats.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.inlinestats.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.inlinestats.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.metrics.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.metrics.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.metrics.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.metrics.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.stats.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.stats.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.stats.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/test_suites/validation.command.stats.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.ccs.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.ccs.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.ccs.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.ccs.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.from.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.from.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.from.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.from.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.inlinestats.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.inlinestats.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.inlinestats.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.inlinestats.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.metrics.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.metrics.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.metrics.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.metrics.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.stats.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.stats.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.stats.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.command.stats.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.eval.date_diff.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.eval.date_diff.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.eval.date_diff.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.eval.date_diff.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.functions.full_text.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.functions.full_text.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.functions.full_text.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.functions.full_text.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.params.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.params.test.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.params.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/__tests__/validation.params.test.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/errors.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/errors.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/errors.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/errors.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/esql_validation_meta_tests.json b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/esql_validation_meta_tests.json similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/esql_validation_meta_tests.json rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/esql_validation_meta_tests.json diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/helpers.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/helpers.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/helpers.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/helpers.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/resources.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/resources.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/resources.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/resources.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/types.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/types.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/types.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/types.ts diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/validation.test.ts similarity index 99% rename from packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/validation.test.ts index 442a2299d8abe..f1256622fe7f8 100644 --- a/packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/validation.test.ts @@ -265,7 +265,7 @@ describe('validation logic', () => { }); // The following block tests a case that is allowed in Kibana - // by suppressing the parser error in packages/kbn-esql-ast/src/ast_parser.ts + // by suppressing the parser error in src/platform/packages/shared/kbn-esql-ast/src/ast_parser.ts describe('ESQL query can be empty', () => { testErrorsAndWarnings('', []); testErrorsAndWarnings(' ', []); diff --git a/packages/kbn-esql-validation-autocomplete/src/validation/validation.ts b/src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/validation.ts similarity index 100% rename from packages/kbn-esql-validation-autocomplete/src/validation/validation.ts rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation/validation.ts diff --git a/packages/kbn-esql-validation-autocomplete/tsconfig.json b/src/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json similarity index 85% rename from packages/kbn-esql-validation-autocomplete/tsconfig.json rename to src/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json index edbd153338a5f..d262131493eaf 100644 --- a/packages/kbn-esql-validation-autocomplete/tsconfig.json +++ b/src/platform/packages/shared/kbn-esql-validation-autocomplete/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/plugins/esql/.i18nrc.json b/src/platform/plugins/shared/esql/.i18nrc.json similarity index 100% rename from src/plugins/esql/.i18nrc.json rename to src/platform/plugins/shared/esql/.i18nrc.json diff --git a/src/plugins/esql/README.md b/src/platform/plugins/shared/esql/README.md similarity index 100% rename from src/plugins/esql/README.md rename to src/platform/plugins/shared/esql/README.md diff --git a/src/plugins/esql_datagrid/jest.config.js b/src/platform/plugins/shared/esql/jest.config.js similarity index 76% rename from src/plugins/esql_datagrid/jest.config.js rename to src/platform/plugins/shared/esql/jest.config.js index 0183c93b464e0..3d60aabf3d59e 100644 --- a/src/plugins/esql_datagrid/jest.config.js +++ b/src/platform/plugins/shared/esql/jest.config.js @@ -9,12 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/esql_datagrid'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/esql_datagrid', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/esql'], + coverageDirectory: '/target/kibana-coverage/jest/src/platform/plugins/shared/esql', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/esql_datagrid/{common,public,server}/**/*.{js,ts,tsx}', + '/src/platform/plugins/shared/esql/{common,public,server}/**/*.{js,ts,tsx}', ], setupFiles: ['jest-canvas-mock'], }; diff --git a/src/plugins/esql/kibana.jsonc b/src/platform/plugins/shared/esql/kibana.jsonc similarity index 100% rename from src/plugins/esql/kibana.jsonc rename to src/platform/plugins/shared/esql/kibana.jsonc diff --git a/src/plugins/esql/package.json b/src/platform/plugins/shared/esql/package.json similarity index 100% rename from src/plugins/esql/package.json rename to src/platform/plugins/shared/esql/package.json diff --git a/src/plugins/esql/public/create_editor.tsx b/src/platform/plugins/shared/esql/public/create_editor.tsx similarity index 100% rename from src/plugins/esql/public/create_editor.tsx rename to src/platform/plugins/shared/esql/public/create_editor.tsx diff --git a/src/plugins/esql/public/index.ts b/src/platform/plugins/shared/esql/public/index.ts similarity index 100% rename from src/plugins/esql/public/index.ts rename to src/platform/plugins/shared/esql/public/index.ts diff --git a/src/plugins/esql/public/kibana_services.ts b/src/platform/plugins/shared/esql/public/kibana_services.ts similarity index 100% rename from src/plugins/esql/public/kibana_services.ts rename to src/platform/plugins/shared/esql/public/kibana_services.ts diff --git a/src/plugins/esql/public/plugin.ts b/src/platform/plugins/shared/esql/public/plugin.ts similarity index 100% rename from src/plugins/esql/public/plugin.ts rename to src/platform/plugins/shared/esql/public/plugin.ts diff --git a/src/plugins/esql/public/triggers/index.ts b/src/platform/plugins/shared/esql/public/triggers/index.ts similarity index 100% rename from src/plugins/esql/public/triggers/index.ts rename to src/platform/plugins/shared/esql/public/triggers/index.ts diff --git a/src/plugins/esql/public/triggers/update_esql_query_actions.test.ts b/src/platform/plugins/shared/esql/public/triggers/update_esql_query_actions.test.ts similarity index 100% rename from src/plugins/esql/public/triggers/update_esql_query_actions.test.ts rename to src/platform/plugins/shared/esql/public/triggers/update_esql_query_actions.test.ts diff --git a/src/plugins/esql/public/triggers/update_esql_query_actions.ts b/src/platform/plugins/shared/esql/public/triggers/update_esql_query_actions.ts similarity index 100% rename from src/plugins/esql/public/triggers/update_esql_query_actions.ts rename to src/platform/plugins/shared/esql/public/triggers/update_esql_query_actions.ts diff --git a/src/plugins/esql/public/triggers/update_esql_query_helpers.ts b/src/platform/plugins/shared/esql/public/triggers/update_esql_query_helpers.ts similarity index 100% rename from src/plugins/esql/public/triggers/update_esql_query_helpers.ts rename to src/platform/plugins/shared/esql/public/triggers/update_esql_query_helpers.ts diff --git a/src/plugins/esql/public/triggers/update_esql_query_trigger.ts b/src/platform/plugins/shared/esql/public/triggers/update_esql_query_trigger.ts similarity index 100% rename from src/plugins/esql/public/triggers/update_esql_query_trigger.ts rename to src/platform/plugins/shared/esql/public/triggers/update_esql_query_trigger.ts diff --git a/src/plugins/esql/public/types.ts b/src/platform/plugins/shared/esql/public/types.ts similarity index 100% rename from src/plugins/esql/public/types.ts rename to src/platform/plugins/shared/esql/public/types.ts diff --git a/src/plugins/esql/server/index.ts b/src/platform/plugins/shared/esql/server/index.ts similarity index 100% rename from src/plugins/esql/server/index.ts rename to src/platform/plugins/shared/esql/server/index.ts diff --git a/src/plugins/esql/server/plugin.ts b/src/platform/plugins/shared/esql/server/plugin.ts similarity index 100% rename from src/plugins/esql/server/plugin.ts rename to src/platform/plugins/shared/esql/server/plugin.ts diff --git a/src/plugins/esql/server/ui_settings.ts b/src/platform/plugins/shared/esql/server/ui_settings.ts similarity index 100% rename from src/plugins/esql/server/ui_settings.ts rename to src/platform/plugins/shared/esql/server/ui_settings.ts diff --git a/src/plugins/esql/tsconfig.json b/src/platform/plugins/shared/esql/tsconfig.json similarity index 88% rename from src/plugins/esql/tsconfig.json rename to src/platform/plugins/shared/esql/tsconfig.json index 2f9bd7f0883b3..699fce107f1da 100644 --- a/src/plugins/esql/tsconfig.json +++ b/src/platform/plugins/shared/esql/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, "include": [ - "../../typings/**/*", + "../../../../typings/**/*", "common/**/*", "public/**/*", "server/**/*", diff --git a/src/plugins/esql_datagrid/.i18nrc.json b/src/platform/plugins/shared/esql_datagrid/.i18nrc.json similarity index 100% rename from src/plugins/esql_datagrid/.i18nrc.json rename to src/platform/plugins/shared/esql_datagrid/.i18nrc.json diff --git a/src/plugins/esql_datagrid/README.md b/src/platform/plugins/shared/esql_datagrid/README.md similarity index 100% rename from src/plugins/esql_datagrid/README.md rename to src/platform/plugins/shared/esql_datagrid/README.md diff --git a/src/plugins/esql/jest.config.js b/src/platform/plugins/shared/esql_datagrid/jest.config.js similarity index 63% rename from src/plugins/esql/jest.config.js rename to src/platform/plugins/shared/esql_datagrid/jest.config.js index 073baf41b7602..236b56b2c2fb4 100644 --- a/src/plugins/esql/jest.config.js +++ b/src/platform/plugins/shared/esql_datagrid/jest.config.js @@ -9,10 +9,13 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/esql'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/esql', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/shared/esql_datagrid'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/shared/esql_datagrid', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/src/plugins/esql/{common,public,server}/**/*.{js,ts,tsx}'], + collectCoverageFrom: [ + '/src/platform/plugins/shared/esql_datagrid/{common,public,server}/**/*.{js,ts,tsx}', + ], setupFiles: ['jest-canvas-mock'], }; diff --git a/src/plugins/esql_datagrid/kibana.jsonc b/src/platform/plugins/shared/esql_datagrid/kibana.jsonc similarity index 100% rename from src/plugins/esql_datagrid/kibana.jsonc rename to src/platform/plugins/shared/esql_datagrid/kibana.jsonc diff --git a/src/plugins/esql_datagrid/package.json b/src/platform/plugins/shared/esql_datagrid/package.json similarity index 100% rename from src/plugins/esql_datagrid/package.json rename to src/platform/plugins/shared/esql_datagrid/package.json diff --git a/src/plugins/esql_datagrid/public/create_datagrid.tsx b/src/platform/plugins/shared/esql_datagrid/public/create_datagrid.tsx similarity index 100% rename from src/plugins/esql_datagrid/public/create_datagrid.tsx rename to src/platform/plugins/shared/esql_datagrid/public/create_datagrid.tsx diff --git a/src/plugins/esql_datagrid/public/data_grid.tsx b/src/platform/plugins/shared/esql_datagrid/public/data_grid.tsx similarity index 100% rename from src/plugins/esql_datagrid/public/data_grid.tsx rename to src/platform/plugins/shared/esql_datagrid/public/data_grid.tsx diff --git a/src/plugins/esql_datagrid/public/index.ts b/src/platform/plugins/shared/esql_datagrid/public/index.ts similarity index 100% rename from src/plugins/esql_datagrid/public/index.ts rename to src/platform/plugins/shared/esql_datagrid/public/index.ts diff --git a/src/plugins/esql_datagrid/public/kibana_services.ts b/src/platform/plugins/shared/esql_datagrid/public/kibana_services.ts similarity index 100% rename from src/plugins/esql_datagrid/public/kibana_services.ts rename to src/platform/plugins/shared/esql_datagrid/public/kibana_services.ts diff --git a/src/plugins/esql_datagrid/public/plugin.ts b/src/platform/plugins/shared/esql_datagrid/public/plugin.ts similarity index 100% rename from src/plugins/esql_datagrid/public/plugin.ts rename to src/platform/plugins/shared/esql_datagrid/public/plugin.ts diff --git a/src/plugins/esql_datagrid/public/row_viewer.test.tsx b/src/platform/plugins/shared/esql_datagrid/public/row_viewer.test.tsx similarity index 100% rename from src/plugins/esql_datagrid/public/row_viewer.test.tsx rename to src/platform/plugins/shared/esql_datagrid/public/row_viewer.test.tsx diff --git a/src/plugins/esql_datagrid/public/row_viewer.tsx b/src/platform/plugins/shared/esql_datagrid/public/row_viewer.tsx similarity index 100% rename from src/plugins/esql_datagrid/public/row_viewer.tsx rename to src/platform/plugins/shared/esql_datagrid/public/row_viewer.tsx diff --git a/src/plugins/esql_datagrid/public/row_viewer_lazy.tsx b/src/platform/plugins/shared/esql_datagrid/public/row_viewer_lazy.tsx similarity index 100% rename from src/plugins/esql_datagrid/public/row_viewer_lazy.tsx rename to src/platform/plugins/shared/esql_datagrid/public/row_viewer_lazy.tsx diff --git a/src/plugins/esql_datagrid/tsconfig.json b/src/platform/plugins/shared/esql_datagrid/tsconfig.json similarity index 89% rename from src/plugins/esql_datagrid/tsconfig.json rename to src/platform/plugins/shared/esql_datagrid/tsconfig.json index c887925e26b56..4e7daf384254c 100644 --- a/src/plugins/esql_datagrid/tsconfig.json +++ b/src/platform/plugins/shared/esql_datagrid/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, "include": [ - "../../typings/**/*", + "../../../../typings/**/*", "common/**/*", "public/**/*", ], diff --git a/test/api_integration/apis/esql/errors.ts b/test/api_integration/apis/esql/errors.ts index 020411bf8beb9..3347e9b9ef53c 100644 --- a/test/api_integration/apis/esql/errors.ts +++ b/test/api_integration/apis/esql/errors.ts @@ -19,10 +19,7 @@ import { FtrProviderContext } from '../../ftr_provider_context'; function getConfigPath() { return Path.resolve( REPO_ROOT, - 'packages', - 'kbn-esql-validation-autocomplete', - 'src', - 'validation' + 'src/platform/packages/shared/kbn-esql-validation-autocomplete/src/validation' ); } diff --git a/tsconfig.base.json b/tsconfig.base.json index de0d8a384222a..2032eae1184e8 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -862,20 +862,20 @@ "@kbn/eso-model-version-example/*": ["examples/eso_model_version_example/*"], "@kbn/eso-plugin": ["x-pack/test/encrypted_saved_objects_api_integration/plugins/api_consumer_plugin"], "@kbn/eso-plugin/*": ["x-pack/test/encrypted_saved_objects_api_integration/plugins/api_consumer_plugin/*"], - "@kbn/esql": ["src/plugins/esql"], - "@kbn/esql/*": ["src/plugins/esql/*"], - "@kbn/esql-ast": ["packages/kbn-esql-ast"], - "@kbn/esql-ast/*": ["packages/kbn-esql-ast/*"], + "@kbn/esql": ["src/platform/plugins/shared/esql"], + "@kbn/esql/*": ["src/platform/plugins/shared/esql/*"], + "@kbn/esql-ast": ["src/platform/packages/shared/kbn-esql-ast"], + "@kbn/esql-ast/*": ["src/platform/packages/shared/kbn-esql-ast/*"], "@kbn/esql-ast-inspector-plugin": ["examples/esql_ast_inspector"], "@kbn/esql-ast-inspector-plugin/*": ["examples/esql_ast_inspector/*"], - "@kbn/esql-datagrid": ["src/plugins/esql_datagrid"], - "@kbn/esql-datagrid/*": ["src/plugins/esql_datagrid/*"], - "@kbn/esql-editor": ["packages/kbn-esql-editor"], - "@kbn/esql-editor/*": ["packages/kbn-esql-editor/*"], - "@kbn/esql-utils": ["packages/kbn-esql-utils"], - "@kbn/esql-utils/*": ["packages/kbn-esql-utils/*"], - "@kbn/esql-validation-autocomplete": ["packages/kbn-esql-validation-autocomplete"], - "@kbn/esql-validation-autocomplete/*": ["packages/kbn-esql-validation-autocomplete/*"], + "@kbn/esql-datagrid": ["src/platform/plugins/shared/esql_datagrid"], + "@kbn/esql-datagrid/*": ["src/platform/plugins/shared/esql_datagrid/*"], + "@kbn/esql-editor": ["src/platform/packages/private/kbn-esql-editor"], + "@kbn/esql-editor/*": ["src/platform/packages/private/kbn-esql-editor/*"], + "@kbn/esql-utils": ["src/platform/packages/shared/kbn-esql-utils"], + "@kbn/esql-utils/*": ["src/platform/packages/shared/kbn-esql-utils/*"], + "@kbn/esql-validation-autocomplete": ["src/platform/packages/shared/kbn-esql-validation-autocomplete"], + "@kbn/esql-validation-autocomplete/*": ["src/platform/packages/shared/kbn-esql-validation-autocomplete/*"], "@kbn/esql-validation-example-plugin": ["examples/esql_validation_example"], "@kbn/esql-validation-example-plugin/*": ["examples/esql_validation_example/*"], "@kbn/eui-provider-dev-warning": ["test/plugin_functional/plugins/eui_provider_dev_warning"], @@ -1134,8 +1134,8 @@ "@kbn/kubernetes-security-plugin/*": ["x-pack/plugins/kubernetes_security/*"], "@kbn/langchain": ["x-pack/packages/kbn-langchain"], "@kbn/langchain/*": ["x-pack/packages/kbn-langchain/*"], - "@kbn/language-documentation": ["packages/kbn-language-documentation"], - "@kbn/language-documentation/*": ["packages/kbn-language-documentation/*"], + "@kbn/language-documentation": ["src/platform/packages/private/kbn-language-documentation"], + "@kbn/language-documentation/*": ["src/platform/packages/private/kbn-language-documentation/*"], "@kbn/lens-config-builder-example-plugin": ["x-pack/examples/lens_config_builder_example"], "@kbn/lens-config-builder-example-plugin/*": ["x-pack/examples/lens_config_builder_example/*"], "@kbn/lens-embeddable-utils": ["packages/kbn-lens-embeddable-utils"], diff --git a/yarn.lock b/yarn.lock index eae7eb82b057e..54bd760a01637 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5544,23 +5544,23 @@ version "0.0.0" uid "" -"@kbn/esql-ast@link:packages/kbn-esql-ast": +"@kbn/esql-ast@link:src/platform/packages/shared/kbn-esql-ast": version "0.0.0" uid "" -"@kbn/esql-datagrid@link:src/plugins/esql_datagrid": +"@kbn/esql-datagrid@link:src/platform/plugins/shared/esql_datagrid": version "0.0.0" uid "" -"@kbn/esql-editor@link:packages/kbn-esql-editor": +"@kbn/esql-editor@link:src/platform/packages/private/kbn-esql-editor": version "0.0.0" uid "" -"@kbn/esql-utils@link:packages/kbn-esql-utils": +"@kbn/esql-utils@link:src/platform/packages/shared/kbn-esql-utils": version "0.0.0" uid "" -"@kbn/esql-validation-autocomplete@link:packages/kbn-esql-validation-autocomplete": +"@kbn/esql-validation-autocomplete@link:src/platform/packages/shared/kbn-esql-validation-autocomplete": version "0.0.0" uid "" @@ -5568,7 +5568,7 @@ version "0.0.0" uid "" -"@kbn/esql@link:src/plugins/esql": +"@kbn/esql@link:src/platform/plugins/shared/esql": version "0.0.0" uid "" @@ -6084,7 +6084,7 @@ version "0.0.0" uid "" -"@kbn/language-documentation@link:packages/kbn-language-documentation": +"@kbn/language-documentation@link:src/platform/packages/private/kbn-language-documentation": version "0.0.0" uid ""