diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index e4a0617579cf5..3c404083174b1 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -154,9 +154,9 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ - /^x-pack\/packages\/ai-infra/, - /^x-pack\/plugins\/ai_infra/, - /^x-pack\/plugins\/inference/, + /^x-pack\/platform\/packages\/shared\/ai-infra/, + /^x-pack\/platform\/plugins\/shared\/ai_infra/, + /^x-pack\/platform\/plugins\/shared\/inference/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/bedrock/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/gemini/, /^x-pack\/plugins\/stack_connectors\/server\/connector_types\/openai/, diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 93ea7fdabc690..11035e0eb7dbd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -776,9 +776,7 @@ x-pack/examples/third_party_maps_source_example @elastic/kibana-presentation x-pack/examples/third_party_vis_lens_example @elastic/kibana-visualizations x-pack/examples/triggers_actions_ui_example @elastic/response-ops x-pack/examples/ui_actions_enhanced_examples @elastic/appex-sharedux -x-pack/packages/ai-infra/inference-common @elastic/appex-ai-infra x-pack/packages/ai-infra/product-doc-artifact-builder @elastic/appex-ai-infra -x-pack/packages/ai-infra/product-doc-common @elastic/appex-ai-infra x-pack/packages/index-lifecycle-management/index_lifecycle_management_common_shared @elastic/kibana-management x-pack/packages/index-management/index_management_shared_types @elastic/kibana-management x-pack/packages/kbn-ai-assistant @elastic/search-kibana @@ -856,6 +854,8 @@ x-pack/platform/packages/private/ml/time_buckets @elastic/ml-ui x-pack/platform/packages/private/ml/ui_actions @elastic/ml-ui x-pack/platform/packages/private/ml/url_state @elastic/ml-ui x-pack/platform/packages/private/ml/validators @elastic/ml-ui +x-pack/platform/packages/shared/ai-infra/inference-common @elastic/appex-ai-infra +x-pack/platform/packages/shared/ai-infra/product-doc-common @elastic/appex-ai-infra x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities x-pack/platform/packages/shared/ml/aiops_common @elastic/ml-ui x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis @elastic/ml-ui @@ -869,12 +869,13 @@ x-pack/platform/packages/shared/ml/runtime_field_utils @elastic/ml-ui x-pack/platform/packages/shared/ml/trained_models_utils @elastic/ml-ui x-pack/platform/plugins/private/data_visualizer @elastic/ml-ui x-pack/platform/plugins/private/transform @elastic/ml-ui +x-pack/platform/plugins/shared/ai_infra/llm_tasks @elastic/appex-ai-infra +x-pack/platform/plugins/shared/ai_infra/product_doc_base @elastic/appex-ai-infra x-pack/platform/plugins/shared/aiops @elastic/ml-ui x-pack/platform/plugins/shared/entity_manager @elastic/obs-entities +x-pack/platform/plugins/shared/inference @elastic/appex-ai-infra x-pack/platform/plugins/shared/ml @elastic/ml-ui x-pack/plugins/actions @elastic/response-ops -x-pack/plugins/ai_infra/llm_tasks @elastic/appex-ai-infra -x-pack/plugins/ai_infra/product_doc_base @elastic/appex-ai-infra x-pack/plugins/alerting @elastic/response-ops x-pack/plugins/asset_inventory @elastic/kibana-cloud-security-posture x-pack/plugins/banners @elastic/appex-sharedux @@ -912,7 +913,6 @@ x-pack/plugins/graph @elastic/kibana-visualizations x-pack/plugins/grokdebugger @elastic/kibana-management x-pack/plugins/index_lifecycle_management @elastic/kibana-management x-pack/plugins/index_management @elastic/kibana-management -x-pack/plugins/inference @elastic/appex-ai-infra x-pack/plugins/ingest_pipelines @elastic/kibana-management x-pack/plugins/integration_assistant @elastic/security-scalability x-pack/plugins/kubernetes_security @elastic/kibana-cloud-security-posture diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 2fe0c672af734..982c9c969122c 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -643,7 +643,7 @@ Index Management by running this series of requests in Console: |This service is exposed from the Index Management setup contract and can be used to add content to the indices list and the index details page. -|{kib-repo}blob/{branch}/x-pack/plugins/inference/README.md[inference] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/inference/README.md[inference] |The inference plugin is a central place to handle all interactions with the Elasticsearch Inference API and external LLM APIs. Its goals are: @@ -698,7 +698,7 @@ the infrastructure monitoring use-case within Kibana. using the CURL scripts in the scripts folder. -|{kib-repo}blob/{branch}/x-pack/plugins/ai_infra/llm_tasks/README.md[llmTasks] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/ai_infra/llm_tasks/README.md[llmTasks] |This plugin contains various LLM tasks. @@ -779,7 +779,7 @@ Elastic. |This plugin helps users learn how to use the Painless scripting language. -|{kib-repo}blob/{branch}/x-pack/plugins/ai_infra/product_doc_base/README.md[productDocBase] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/ai_infra/product_doc_base/README.md[productDocBase] |This plugin contains the product documentation base service. diff --git a/package.json b/package.json index b9573348e3252..9e2bd09e7a0d1 100644 --- a/package.json +++ b/package.json @@ -577,8 +577,8 @@ "@kbn/index-management-plugin": "link:x-pack/plugins/index_management", "@kbn/index-management-shared-types": "link:x-pack/packages/index-management/index_management_shared_types", "@kbn/index-patterns-test-plugin": "link:test/plugin_functional/plugins/index_patterns", - "@kbn/inference-common": "link:x-pack/packages/ai-infra/inference-common", - "@kbn/inference-plugin": "link:x-pack/plugins/inference", + "@kbn/inference-common": "link:x-pack/platform/packages/shared/ai-infra/inference-common", + "@kbn/inference-plugin": "link:x-pack/platform/plugins/shared/inference", "@kbn/inference_integration_flyout": "link:x-pack/platform/packages/private/ml/inference_integration_flyout", "@kbn/infra-forge": "link:x-pack/packages/kbn-infra-forge", "@kbn/infra-plugin": "link:x-pack/plugins/observability_solution/infra", @@ -620,7 +620,7 @@ "@kbn/licensing-plugin": "link:x-pack/plugins/licensing", "@kbn/links-plugin": "link:src/plugins/links", "@kbn/lists-plugin": "link:x-pack/plugins/lists", - "@kbn/llm-tasks-plugin": "link:x-pack/plugins/ai_infra/llm_tasks", + "@kbn/llm-tasks-plugin": "link:x-pack/platform/plugins/shared/ai_infra/llm_tasks", "@kbn/locator-examples-plugin": "link:examples/locator_examples", "@kbn/locator-explorer-plugin": "link:examples/locator_explorer", "@kbn/logging": "link:packages/kbn-logging", @@ -724,8 +724,8 @@ "@kbn/presentation-panel-plugin": "link:src/plugins/presentation_panel", "@kbn/presentation-publishing": "link:packages/presentation/presentation_publishing", "@kbn/presentation-util-plugin": "link:src/plugins/presentation_util", - "@kbn/product-doc-base-plugin": "link:x-pack/plugins/ai_infra/product_doc_base", - "@kbn/product-doc-common": "link:x-pack/packages/ai-infra/product-doc-common", + "@kbn/product-doc-base-plugin": "link:x-pack/platform/plugins/shared/ai_infra/product_doc_base", + "@kbn/product-doc-common": "link:x-pack/platform/packages/shared/ai-infra/product-doc-common", "@kbn/profiling-data-access-plugin": "link:x-pack/plugins/observability_solution/profiling_data_access", "@kbn/profiling-plugin": "link:x-pack/plugins/observability_solution/profiling", "@kbn/profiling-utils": "link:packages/kbn-profiling-utils", diff --git a/tsconfig.base.json b/tsconfig.base.json index aae90e447f0bf..9fd96ede22e5c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1062,10 +1062,10 @@ "@kbn/index-patterns-test-plugin/*": ["test/plugin_functional/plugins/index_patterns/*"], "@kbn/inference_integration_flyout": ["x-pack/platform/packages/private/ml/inference_integration_flyout"], "@kbn/inference_integration_flyout/*": ["x-pack/platform/packages/private/ml/inference_integration_flyout/*"], - "@kbn/inference-common": ["x-pack/packages/ai-infra/inference-common"], - "@kbn/inference-common/*": ["x-pack/packages/ai-infra/inference-common/*"], - "@kbn/inference-plugin": ["x-pack/plugins/inference"], - "@kbn/inference-plugin/*": ["x-pack/plugins/inference/*"], + "@kbn/inference-common": ["x-pack/platform/packages/shared/ai-infra/inference-common"], + "@kbn/inference-common/*": ["x-pack/platform/packages/shared/ai-infra/inference-common/*"], + "@kbn/inference-plugin": ["x-pack/platform/plugins/shared/inference"], + "@kbn/inference-plugin/*": ["x-pack/platform/plugins/shared/inference/*"], "@kbn/infra-forge": ["x-pack/packages/kbn-infra-forge"], "@kbn/infra-forge/*": ["x-pack/packages/kbn-infra-forge/*"], "@kbn/infra-plugin": ["x-pack/plugins/observability_solution/infra"], @@ -1160,8 +1160,8 @@ "@kbn/lint-ts-projects-cli/*": ["packages/kbn-lint-ts-projects-cli/*"], "@kbn/lists-plugin": ["x-pack/plugins/lists"], "@kbn/lists-plugin/*": ["x-pack/plugins/lists/*"], - "@kbn/llm-tasks-plugin": ["x-pack/plugins/ai_infra/llm_tasks"], - "@kbn/llm-tasks-plugin/*": ["x-pack/plugins/ai_infra/llm_tasks/*"], + "@kbn/llm-tasks-plugin": ["x-pack/platform/plugins/shared/ai_infra/llm_tasks"], + "@kbn/llm-tasks-plugin/*": ["x-pack/platform/plugins/shared/ai_infra/llm_tasks/*"], "@kbn/locator-examples-plugin": ["examples/locator_examples"], "@kbn/locator-examples-plugin/*": ["examples/locator_examples/*"], "@kbn/locator-explorer-plugin": ["examples/locator_explorer"], @@ -1404,10 +1404,10 @@ "@kbn/presentation-util-plugin/*": ["src/plugins/presentation_util/*"], "@kbn/product-doc-artifact-builder": ["x-pack/packages/ai-infra/product-doc-artifact-builder"], "@kbn/product-doc-artifact-builder/*": ["x-pack/packages/ai-infra/product-doc-artifact-builder/*"], - "@kbn/product-doc-base-plugin": ["x-pack/plugins/ai_infra/product_doc_base"], - "@kbn/product-doc-base-plugin/*": ["x-pack/plugins/ai_infra/product_doc_base/*"], - "@kbn/product-doc-common": ["x-pack/packages/ai-infra/product-doc-common"], - "@kbn/product-doc-common/*": ["x-pack/packages/ai-infra/product-doc-common/*"], + "@kbn/product-doc-base-plugin": ["x-pack/platform/plugins/shared/ai_infra/product_doc_base"], + "@kbn/product-doc-base-plugin/*": ["x-pack/platform/plugins/shared/ai_infra/product_doc_base/*"], + "@kbn/product-doc-common": ["x-pack/platform/packages/shared/ai-infra/product-doc-common"], + "@kbn/product-doc-common/*": ["x-pack/platform/packages/shared/ai-infra/product-doc-common/*"], "@kbn/profiling-data-access-plugin": ["x-pack/plugins/observability_solution/profiling_data_access"], "@kbn/profiling-data-access-plugin/*": ["x-pack/plugins/observability_solution/profiling_data_access/*"], "@kbn/profiling-plugin": ["x-pack/plugins/observability_solution/profiling"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index 29cd97f61b970..d16cbe9a627dc 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -66,7 +66,7 @@ "xpack.fleet": "plugins/fleet", "xpack.ingestPipelines": "plugins/ingest_pipelines", "xpack.integrationAssistant": "plugins/integration_assistant", - "xpack.inference": "plugins/inference", + "xpack.inference": "platform/plugins/shared/inference", "xpack.inventory": "plugins/observability_solution/inventory", "xpack.investigate": "plugins/observability_solution/investigate", "xpack.investigateApp": "plugins/observability_solution/investigate_app", diff --git a/x-pack/packages/ai-infra/inference-common/README.md b/x-pack/platform/packages/shared/ai-infra/inference-common/README.md similarity index 100% rename from x-pack/packages/ai-infra/inference-common/README.md rename to x-pack/platform/packages/shared/ai-infra/inference-common/README.md diff --git a/x-pack/packages/ai-infra/inference-common/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/index.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/index.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/index.ts diff --git a/x-pack/packages/ai-infra/inference-common/jest.config.js b/x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js similarity index 72% rename from x-pack/packages/ai-infra/inference-common/jest.config.js rename to x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js index faa0d30b40233..7880fd4d31082 100644 --- a/x-pack/packages/ai-infra/inference-common/jest.config.js +++ b/x-pack/platform/packages/shared/ai-infra/inference-common/jest.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/ai-infra/inference-common'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/ai-infra/inference-common'], }; diff --git a/x-pack/packages/ai-infra/inference-common/kibana.jsonc b/x-pack/platform/packages/shared/ai-infra/inference-common/kibana.jsonc similarity index 100% rename from x-pack/packages/ai-infra/inference-common/kibana.jsonc rename to x-pack/platform/packages/shared/ai-infra/inference-common/kibana.jsonc diff --git a/x-pack/packages/ai-infra/inference-common/package.json b/x-pack/platform/packages/shared/ai-infra/inference-common/package.json similarity index 100% rename from x-pack/packages/ai-infra/inference-common/package.json rename to x-pack/platform/packages/shared/ai-infra/inference-common/package.json diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/bound_api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/bound_api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/errors.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/errors.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/event_utils.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/event_utils.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/events.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/events.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/index.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/index.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/messages.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/messages.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/tool_schema.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tool_schema.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/tool_schema.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tool_schema.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/chat_complete/tools.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/chat_complete/tools.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/errors.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/errors.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/errors.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/inference_task.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/inference_task.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/inference_task.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/bound_api.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/bound_api.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/event_utils.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/event_utils.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/events.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/events.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/events.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/output/index.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/output/index.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/output/index.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/output/index.ts diff --git a/x-pack/packages/ai-infra/inference-common/src/truncate_list.ts b/x-pack/platform/packages/shared/ai-infra/inference-common/src/truncate_list.ts similarity index 100% rename from x-pack/packages/ai-infra/inference-common/src/truncate_list.ts rename to x-pack/platform/packages/shared/ai-infra/inference-common/src/truncate_list.ts diff --git a/x-pack/packages/ai-infra/inference-common/tsconfig.json b/x-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json similarity index 81% rename from x-pack/packages/ai-infra/inference-common/tsconfig.json rename to x-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json index 86d57b8d692f7..af23c916b5d13 100644 --- a/x-pack/packages/ai-infra/inference-common/tsconfig.json +++ b/x-pack/platform/packages/shared/ai-infra/inference-common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/packages/ai-infra/product-doc-common/README.md b/x-pack/platform/packages/shared/ai-infra/product-doc-common/README.md similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/README.md rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/README.md diff --git a/x-pack/packages/ai-infra/product-doc-common/index.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/index.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/index.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/index.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/jest.config.js b/x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js similarity index 72% rename from x-pack/packages/ai-infra/product-doc-common/jest.config.js rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js index e6cae43806c8d..16ca401a20431 100644 --- a/x-pack/packages/ai-infra/product-doc-common/jest.config.js +++ b/x-pack/platform/packages/shared/ai-infra/product-doc-common/jest.config.js @@ -7,6 +7,6 @@ module.exports = { preset: '@kbn/test/jest_node', - rootDir: '../../../..', - roots: ['/x-pack/packages/ai-infra/product-doc-common'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/ai-infra/product-doc-common'], }; diff --git a/x-pack/packages/ai-infra/product-doc-common/kibana.jsonc b/x-pack/platform/packages/shared/ai-infra/product-doc-common/kibana.jsonc similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/kibana.jsonc rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/kibana.jsonc diff --git a/x-pack/packages/ai-infra/product-doc-common/package.json b/x-pack/platform/packages/shared/ai-infra/product-doc-common/package.json similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/package.json rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/package.json diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact.test.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.test.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact.test.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.test.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact_content.test.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.test.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact_content.test.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.test.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/artifact_content.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/artifact_content.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/artifact_content.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/documents.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/documents.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/documents.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/indices.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/indices.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/indices.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/manifest.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/manifest.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/manifest.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/src/product.ts b/x-pack/platform/packages/shared/ai-infra/product-doc-common/src/product.ts similarity index 100% rename from x-pack/packages/ai-infra/product-doc-common/src/product.ts rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/src/product.ts diff --git a/x-pack/packages/ai-infra/product-doc-common/tsconfig.json b/x-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json similarity index 79% rename from x-pack/packages/ai-infra/product-doc-common/tsconfig.json rename to x-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json index 0d78dace105e1..63f0b5ff33faa 100644 --- a/x-pack/packages/ai-infra/product-doc-common/tsconfig.json +++ b/x-pack/platform/packages/shared/ai-infra/product-doc-common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/plugins/ai_infra/llm_tasks/README.md b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/README.md similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/README.md rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/README.md diff --git a/x-pack/plugins/ai_infra/llm_tasks/jest.config.js b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js similarity index 64% rename from x-pack/plugins/ai_infra/llm_tasks/jest.config.js rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js index 2a6206d4304b9..dd8bc96de620a 100644 --- a/x-pack/plugins/ai_infra/llm_tasks/jest.config.js +++ b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/jest.config.js @@ -7,12 +7,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/plugins/ai_infra/llm_tasks/server'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server'], setupFiles: [], collectCoverage: true, collectCoverageFrom: [ - '/x-pack/plugins/ai_infra/llm_tasks/{public,server,common}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/ai_infra/llm_tasks/{public,server,common}/**/*.{js,ts,tsx}', ], coverageReporters: ['html'], diff --git a/x-pack/plugins/ai_infra/llm_tasks/kibana.jsonc b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/kibana.jsonc similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/kibana.jsonc rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/kibana.jsonc diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/config.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/config.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/config.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/config.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/index.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/index.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/index.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/plugin.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/plugin.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/plugin.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/plugin.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/index.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/index.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/index.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/index.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.test.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/retrieve_documentation.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/summarize_document.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/tasks/retrieve_documentation/types.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/types.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/types.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/types.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.test.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.test.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.test.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.ts b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.ts similarity index 100% rename from x-pack/plugins/ai_infra/llm_tasks/server/utils/tokens.ts rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/server/utils/tokens.ts diff --git a/x-pack/plugins/ai_infra/llm_tasks/tsconfig.json b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json similarity index 85% rename from x-pack/plugins/ai_infra/llm_tasks/tsconfig.json rename to x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json index 03b87827d941a..ade5aa0cbb480 100644 --- a/x-pack/plugins/ai_infra/llm_tasks/tsconfig.json +++ b/x-pack/platform/plugins/shared/ai_infra/llm_tasks/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../../typings/**/*", + "../../../../../../typings/**/*", "common/**/*", "public/**/*", "typings/**/*", diff --git a/x-pack/plugins/ai_infra/product_doc_base/README.md b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/README.md similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/README.md rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/README.md diff --git a/x-pack/plugins/ai_infra/product_doc_base/common/consts.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/consts.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/common/consts.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/consts.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/common/http_api/installation.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/http_api/installation.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/common/http_api/installation.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/http_api/installation.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/common/install_status.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/install_status.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/common/install_status.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/common/install_status.ts diff --git a/x-pack/plugins/inference/jest.config.js b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js similarity index 51% rename from x-pack/plugins/inference/jest.config.js rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js index 8b20bd72f17b2..9bb3ea87c253e 100644 --- a/x-pack/plugins/inference/jest.config.js +++ b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/jest.config.js @@ -7,16 +7,16 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', + rootDir: '../../../../../..', roots: [ - '/x-pack/plugins/inference/public', - '/x-pack/plugins/inference/server', - '/x-pack/plugins/inference/common', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/common', ], setupFiles: [], collectCoverage: true, collectCoverageFrom: [ - '/x-pack/plugins/inference/{public,server,common}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/ai_infra/product_doc_base/{public,server,common}/**/*.{js,ts,tsx}', ], coverageReporters: ['html'], diff --git a/x-pack/plugins/ai_infra/product_doc_base/kibana.jsonc b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/kibana.jsonc similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/kibana.jsonc rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/kibana.jsonc diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/plugin.tsx b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/plugin.tsx similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/plugin.tsx rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/plugin.tsx diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/installation_service.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/installation_service.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/services/installation/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/services/installation/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/services/installation/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/public/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/public/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/public/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/config.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/config.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/config.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/config.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/plugin.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/plugin.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/plugin.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/plugin.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/plugin.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/routes/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/routes/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/routes/installation.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/installation.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/routes/installation.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/routes/installation.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/saved_objects/product_doc_install.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/model_conversion.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/product_doc_install_service.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_install_status/service.mock.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/check_license.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/doc_manager.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/doc_manager/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/doc_manager/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/endpoint_manager.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/service.mock.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/get_model_install_status.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/install_elser.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/inference_endpoint/utils/wait_until_model_deployed.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.mocks.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/package_installer.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/create_index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/fetch_artifact_versions.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/populate_index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/steps/validate_artifact_archive.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/archive_accessors.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/download.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/semver.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/test_data/test_archive_1.zip diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/package_installer/utils/zip_archive.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/perform_search.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/perform_search.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/perform_search.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/perform_search.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/search_service.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/search_service.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/get_indices_for_product_names.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.test.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/services/search/utils/map_result.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/services/search/utils/map_result.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/ensure_up_to_date.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/index.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/index.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/index.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/index.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/install_all.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/install_all.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/install_all.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/install_all.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/uninstall_all.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/uninstall_all.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/uninstall_all.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/uninstall_all.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/tasks/utils.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/utils.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/tasks/utils.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/tasks/utils.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/server/types.ts b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts similarity index 100% rename from x-pack/plugins/ai_infra/product_doc_base/server/types.ts rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/server/types.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/tsconfig.json b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json similarity index 86% rename from x-pack/plugins/ai_infra/product_doc_base/tsconfig.json rename to x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json index 9a2d1969556bf..c8c29b41722dc 100644 --- a/x-pack/plugins/ai_infra/product_doc_base/tsconfig.json +++ b/x-pack/platform/plugins/shared/ai_infra/product_doc_base/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../../typings/**/*", + "../../../../../../typings/**/*", "common/**/*", "public/**/*", "typings/**/*", diff --git a/x-pack/plugins/inference/README.md b/x-pack/platform/plugins/shared/inference/README.md similarity index 100% rename from x-pack/plugins/inference/README.md rename to x-pack/platform/plugins/shared/inference/README.md diff --git a/x-pack/plugins/inference/common/chat_complete/bind_chat_complete.test.ts b/x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.test.ts similarity index 100% rename from x-pack/plugins/inference/common/chat_complete/bind_chat_complete.test.ts rename to x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.test.ts diff --git a/x-pack/plugins/inference/common/chat_complete/bind_chat_complete.ts b/x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.ts similarity index 100% rename from x-pack/plugins/inference/common/chat_complete/bind_chat_complete.ts rename to x-pack/platform/plugins/shared/inference/common/chat_complete/bind_chat_complete.ts diff --git a/x-pack/plugins/inference/common/chat_complete/index.ts b/x-pack/platform/plugins/shared/inference/common/chat_complete/index.ts similarity index 100% rename from x-pack/plugins/inference/common/chat_complete/index.ts rename to x-pack/platform/plugins/shared/inference/common/chat_complete/index.ts diff --git a/x-pack/plugins/inference/common/connectors.ts b/x-pack/platform/plugins/shared/inference/common/connectors.ts similarity index 100% rename from x-pack/plugins/inference/common/connectors.ts rename to x-pack/platform/plugins/shared/inference/common/connectors.ts diff --git a/x-pack/plugins/inference/common/http_apis.ts b/x-pack/platform/plugins/shared/inference/common/http_apis.ts similarity index 100% rename from x-pack/plugins/inference/common/http_apis.ts rename to x-pack/platform/plugins/shared/inference/common/http_apis.ts diff --git a/x-pack/plugins/inference/common/index.ts b/x-pack/platform/plugins/shared/inference/common/index.ts similarity index 100% rename from x-pack/plugins/inference/common/index.ts rename to x-pack/platform/plugins/shared/inference/common/index.ts diff --git a/x-pack/plugins/inference/common/output/bind_output.test.ts b/x-pack/platform/plugins/shared/inference/common/output/bind_output.test.ts similarity index 100% rename from x-pack/plugins/inference/common/output/bind_output.test.ts rename to x-pack/platform/plugins/shared/inference/common/output/bind_output.test.ts diff --git a/x-pack/plugins/inference/common/output/bind_output.ts b/x-pack/platform/plugins/shared/inference/common/output/bind_output.ts similarity index 100% rename from x-pack/plugins/inference/common/output/bind_output.ts rename to x-pack/platform/plugins/shared/inference/common/output/bind_output.ts diff --git a/x-pack/plugins/inference/common/output/create_output_api.test.ts b/x-pack/platform/plugins/shared/inference/common/output/create_output_api.test.ts similarity index 100% rename from x-pack/plugins/inference/common/output/create_output_api.test.ts rename to x-pack/platform/plugins/shared/inference/common/output/create_output_api.test.ts diff --git a/x-pack/plugins/inference/common/output/create_output_api.ts b/x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts similarity index 100% rename from x-pack/plugins/inference/common/output/create_output_api.ts rename to x-pack/platform/plugins/shared/inference/common/output/create_output_api.ts diff --git a/x-pack/plugins/inference/common/output/index.ts b/x-pack/platform/plugins/shared/inference/common/output/index.ts similarity index 100% rename from x-pack/plugins/inference/common/output/index.ts rename to x-pack/platform/plugins/shared/inference/common/output/index.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/ast_tools/timespan.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/ast_tools/timespan.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/ast_tools/timespan.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/ast_tools/timespan.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/correct_with_ast.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/correct_with_ast.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/correct_with_ast.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/correct_with_ast.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/index.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/index.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/index.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/index.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/like.test.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/like.test.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/like.test.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/like.test.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/like.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/like.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/like.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/like.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.test.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.test.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.test.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.test.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/timespan_literals.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/types.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/types.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/corrections/types.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/corrections/types.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/index.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/index.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/index.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/index.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/typeguards.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/typeguards.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/typeguards.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/typeguards.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/ast/types.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/types.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/ast/types.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/ast/types.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/constants.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/constants.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/constants.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/constants.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/correct_esql_query.test.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_esql_query.test.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/correct_esql_query.test.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_esql_query.test.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/correct_esql_query.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_esql_query.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/correct_esql_query.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/correct_esql_query.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/index.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/index.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/index.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/index.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.test.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.test.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.test.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.test.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/non_ast/correct_common_esql_mistakes.ts diff --git a/x-pack/plugins/inference/common/tasks/nl_to_esql/non_ast/index.ts b/x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/non_ast/index.ts similarity index 100% rename from x-pack/plugins/inference/common/tasks/nl_to_esql/non_ast/index.ts rename to x-pack/platform/plugins/shared/inference/common/tasks/nl_to_esql/non_ast/index.ts diff --git a/x-pack/plugins/inference/common/utils/ensure_multi_turn.ts b/x-pack/platform/plugins/shared/inference/common/utils/ensure_multi_turn.ts similarity index 100% rename from x-pack/plugins/inference/common/utils/ensure_multi_turn.ts rename to x-pack/platform/plugins/shared/inference/common/utils/ensure_multi_turn.ts diff --git a/x-pack/plugins/inference/common/utils/generate_fake_tool_call_id.ts b/x-pack/platform/plugins/shared/inference/common/utils/generate_fake_tool_call_id.ts similarity index 100% rename from x-pack/plugins/inference/common/utils/generate_fake_tool_call_id.ts rename to x-pack/platform/plugins/shared/inference/common/utils/generate_fake_tool_call_id.ts diff --git a/x-pack/plugins/ai_infra/product_doc_base/jest.config.js b/x-pack/platform/plugins/shared/inference/jest.config.js similarity index 61% rename from x-pack/plugins/ai_infra/product_doc_base/jest.config.js rename to x-pack/platform/plugins/shared/inference/jest.config.js index fc06be251a6f7..f10ad8ca93822 100644 --- a/x-pack/plugins/ai_infra/product_doc_base/jest.config.js +++ b/x-pack/platform/plugins/shared/inference/jest.config.js @@ -7,16 +7,16 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../../..', + rootDir: '../../../../..', roots: [ - '/x-pack/plugins/ai_infra/product_doc_base/public', - '/x-pack/plugins/ai_infra/product_doc_base/server', - '/x-pack/plugins/ai_infra/product_doc_base/common', + '/x-pack/platform/plugins/shared/inference/public', + '/x-pack/platform/plugins/shared/inference/server', + '/x-pack/platform/plugins/shared/inference/common', ], setupFiles: [], collectCoverage: true, collectCoverageFrom: [ - '/x-pack/plugins/ai_infra/product_doc_base/{public,server,common}/**/*.{js,ts,tsx}', + '/x-pack/platform/plugins/shared/inference/{public,server,common}/**/*.{js,ts,tsx}', ], coverageReporters: ['html'], diff --git a/x-pack/plugins/inference/kibana.jsonc b/x-pack/platform/plugins/shared/inference/kibana.jsonc similarity index 100% rename from x-pack/plugins/inference/kibana.jsonc rename to x-pack/platform/plugins/shared/inference/kibana.jsonc diff --git a/x-pack/plugins/inference/public/chat_complete.test.ts b/x-pack/platform/plugins/shared/inference/public/chat_complete.test.ts similarity index 100% rename from x-pack/plugins/inference/public/chat_complete.test.ts rename to x-pack/platform/plugins/shared/inference/public/chat_complete.test.ts diff --git a/x-pack/plugins/inference/public/chat_complete.ts b/x-pack/platform/plugins/shared/inference/public/chat_complete.ts similarity index 100% rename from x-pack/plugins/inference/public/chat_complete.ts rename to x-pack/platform/plugins/shared/inference/public/chat_complete.ts diff --git a/x-pack/plugins/inference/public/index.ts b/x-pack/platform/plugins/shared/inference/public/index.ts similarity index 100% rename from x-pack/plugins/inference/public/index.ts rename to x-pack/platform/plugins/shared/inference/public/index.ts diff --git a/x-pack/plugins/inference/public/plugin.tsx b/x-pack/platform/plugins/shared/inference/public/plugin.tsx similarity index 100% rename from x-pack/plugins/inference/public/plugin.tsx rename to x-pack/platform/plugins/shared/inference/public/plugin.tsx diff --git a/x-pack/plugins/inference/public/types.ts b/x-pack/platform/plugins/shared/inference/public/types.ts similarity index 100% rename from x-pack/plugins/inference/public/types.ts rename to x-pack/platform/plugins/shared/inference/public/types.ts diff --git a/x-pack/plugins/inference/public/util/create_observable_from_http_response.ts b/x-pack/platform/plugins/shared/inference/public/util/create_observable_from_http_response.ts similarity index 100% rename from x-pack/plugins/inference/public/util/create_observable_from_http_response.ts rename to x-pack/platform/plugins/shared/inference/public/util/create_observable_from_http_response.ts diff --git a/x-pack/plugins/inference/public/util/http_response_into_observable.test.ts b/x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.test.ts similarity index 100% rename from x-pack/plugins/inference/public/util/http_response_into_observable.test.ts rename to x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.test.ts diff --git a/x-pack/plugins/inference/public/util/http_response_into_observable.ts b/x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.ts similarity index 100% rename from x-pack/plugins/inference/public/util/http_response_into_observable.ts rename to x-pack/platform/plugins/shared/inference/public/util/http_response_into_observable.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/.eslintrc.json b/x-pack/platform/plugins/shared/inference/scripts/evaluation/.eslintrc.json similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/.eslintrc.json rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/.eslintrc.json diff --git a/x-pack/plugins/inference/scripts/evaluation/README.md b/x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md similarity index 94% rename from x-pack/plugins/inference/scripts/evaluation/README.md rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md index 39ba3426ba0d4..cdcb87513f14f 100644 --- a/x-pack/plugins/inference/scripts/evaluation/README.md +++ b/x-pack/platform/plugins/shared/inference/scripts/evaluation/README.md @@ -14,7 +14,7 @@ This tool is developed for the teams working on anything related to inference. I Run the tool using: -`$ node x-pack/plugins/inference/scripts/evaluation/index.js` +`$ node x-pack/platform/plugins/shared/inference/scripts/evaluation/index.js` This will evaluate all existing scenarios, and write the evaluation results to the terminal. diff --git a/x-pack/plugins/inference/scripts/evaluation/cli.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/cli.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/cli.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/cli.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/evaluation.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/evaluation.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/evaluation_client.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation_client.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/evaluation_client.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/evaluation_client.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/index.js b/x-pack/platform/plugins/shared/inference/scripts/evaluation/index.js similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/index.js rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/index.js diff --git a/x-pack/plugins/inference/scripts/evaluation/scenarios/esql/index.spec.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/scenarios/esql/index.spec.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/scenarios/esql/index.spec.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/services/index.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/services/index.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/services/index.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/services/index.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/table_renderer.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/table_renderer.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/table_renderer.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/table_renderer.ts diff --git a/x-pack/plugins/inference/scripts/evaluation/types.ts b/x-pack/platform/plugins/shared/inference/scripts/evaluation/types.ts similarity index 100% rename from x-pack/plugins/inference/scripts/evaluation/types.ts rename to x-pack/platform/plugins/shared/inference/scripts/evaluation/types.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/README.md b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/README.md similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/README.md rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/README.md diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/extract_doc_entries.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/extract_doc_entries.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/extract_doc_entries.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/extract_doc_entries.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/generate_doc.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/generate_doc.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/generate_doc.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/generate_doc.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/index.js b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/index.js similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/index.js rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/index.js diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/load_esql_docs.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/load_esql_docs.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/load_esql_docs.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/load_esql_docs.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/convert_to_markdown.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/create_documentation_page.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/index.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/index.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/index.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/index.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/prompts/rewrite_function_page.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/sync_built_docs_repo.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/sync_built_docs_repo.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/sync_built_docs_repo.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/sync_built_docs_repo.ts diff --git a/x-pack/plugins/inference/scripts/load_esql_docs/utils/output_executor.ts b/x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/utils/output_executor.ts similarity index 100% rename from x-pack/plugins/inference/scripts/load_esql_docs/utils/output_executor.ts rename to x-pack/platform/plugins/shared/inference/scripts/load_esql_docs/utils/output_executor.ts diff --git a/x-pack/plugins/inference/scripts/util/cli_options.ts b/x-pack/platform/plugins/shared/inference/scripts/util/cli_options.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/cli_options.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/cli_options.ts diff --git a/x-pack/plugins/inference/scripts/util/get_service_urls.ts b/x-pack/platform/plugins/shared/inference/scripts/util/get_service_urls.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/get_service_urls.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/get_service_urls.ts diff --git a/x-pack/plugins/inference/scripts/util/kibana_client.ts b/x-pack/platform/plugins/shared/inference/scripts/util/kibana_client.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/kibana_client.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/kibana_client.ts diff --git a/x-pack/plugins/inference/scripts/util/read_kibana_config.ts b/x-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts similarity index 98% rename from x-pack/plugins/inference/scripts/util/read_kibana_config.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts index 7d539e881bee8..e6a44cbb4a549 100644 --- a/x-pack/plugins/inference/scripts/util/read_kibana_config.ts +++ b/x-pack/platform/plugins/shared/inference/scripts/util/read_kibana_config.ts @@ -13,7 +13,7 @@ import { identity, pickBy } from 'lodash'; export type KibanaConfig = ReturnType; export const readKibanaConfig = () => { - const kibanaConfigDir = path.join(__filename, '../../../../../../config'); + const kibanaConfigDir = path.join(__filename, '../../../../../../../../config'); const kibanaDevConfig = path.join(kibanaConfigDir, 'kibana.dev.yml'); const kibanaConfig = path.join(kibanaConfigDir, 'kibana.yml'); diff --git a/x-pack/plugins/inference/scripts/util/select_connector.ts b/x-pack/platform/plugins/shared/inference/scripts/util/select_connector.ts similarity index 100% rename from x-pack/plugins/inference/scripts/util/select_connector.ts rename to x-pack/platform/plugins/shared/inference/scripts/util/select_connector.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/bedrock_claude_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/process_completion_chunks.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/prompts.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/prompts.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/prompts.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/prompts.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_eventstream_into_observable.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/serde_utils.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/serde_utils.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/bedrock/types.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/bedrock/types.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/bedrock/types.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.mocks.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/gemini_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/process_vertex_stream.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/gemini/types.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/types.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/gemini/types.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/gemini/types.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/get_inference_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/get_inference_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/openai/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/openai/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/adapters/openai/openai_adapter.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/adapters/openai/openai_adapter.ts diff --git a/x-pack/plugins/inference/server/chat_complete/api.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/api.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/api.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/api.ts diff --git a/x-pack/plugins/inference/server/chat_complete/errors.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/errors.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/errors.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/errors.ts diff --git a/x-pack/plugins/inference/server/chat_complete/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/constants.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/constants.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/constants.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/constants.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/get_system_instructions.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/parse_inline_function_calls.ts diff --git a/x-pack/plugins/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/simulated_function_calling/wrap_with_simulated_function_calling.ts diff --git a/x-pack/plugins/inference/server/chat_complete/types.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/types.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/types.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/types.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/chunks_into_message.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/chunks_into_message.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/index.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/index.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/index.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/index.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/inference_executor.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/inference_executor.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/inference_executor.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/inference_executor.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/inference_executor.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.test.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.test.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.test.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.test.ts diff --git a/x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.ts b/x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.ts similarity index 100% rename from x-pack/plugins/inference/server/chat_complete/utils/stream_to_response.ts rename to x-pack/platform/plugins/shared/inference/server/chat_complete/utils/stream_to_response.ts diff --git a/x-pack/plugins/inference/server/config.ts b/x-pack/platform/plugins/shared/inference/server/config.ts similarity index 100% rename from x-pack/plugins/inference/server/config.ts rename to x-pack/platform/plugins/shared/inference/server/config.ts diff --git a/x-pack/plugins/inference/server/index.ts b/x-pack/platform/plugins/shared/inference/server/index.ts similarity index 100% rename from x-pack/plugins/inference/server/index.ts rename to x-pack/platform/plugins/shared/inference/server/index.ts diff --git a/x-pack/plugins/inference/server/inference_client/bind_client.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/bind_client.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/bind_client.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/bind_client.ts diff --git a/x-pack/plugins/inference/server/inference_client/create_client.test.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/create_client.test.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/create_client.test.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/create_client.test.ts diff --git a/x-pack/plugins/inference/server/inference_client/create_client.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/create_client.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/create_client.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/create_client.ts diff --git a/x-pack/plugins/inference/server/inference_client/index.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/index.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/index.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/index.ts diff --git a/x-pack/plugins/inference/server/inference_client/inference_client.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/inference_client.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/inference_client.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/inference_client.ts diff --git a/x-pack/plugins/inference/server/inference_client/types.ts b/x-pack/platform/plugins/shared/inference/server/inference_client/types.ts similarity index 100% rename from x-pack/plugins/inference/server/inference_client/types.ts rename to x-pack/platform/plugins/shared/inference/server/inference_client/types.ts diff --git a/x-pack/plugins/inference/server/plugin.ts b/x-pack/platform/plugins/shared/inference/server/plugin.ts similarity index 100% rename from x-pack/plugins/inference/server/plugin.ts rename to x-pack/platform/plugins/shared/inference/server/plugin.ts diff --git a/x-pack/plugins/inference/server/routes/chat_complete.ts b/x-pack/platform/plugins/shared/inference/server/routes/chat_complete.ts similarity index 100% rename from x-pack/plugins/inference/server/routes/chat_complete.ts rename to x-pack/platform/plugins/shared/inference/server/routes/chat_complete.ts diff --git a/x-pack/plugins/inference/server/routes/connectors.ts b/x-pack/platform/plugins/shared/inference/server/routes/connectors.ts similarity index 100% rename from x-pack/plugins/inference/server/routes/connectors.ts rename to x-pack/platform/plugins/shared/inference/server/routes/connectors.ts diff --git a/x-pack/plugins/inference/server/routes/index.ts b/x-pack/platform/plugins/shared/inference/server/routes/index.ts similarity index 100% rename from x-pack/plugins/inference/server/routes/index.ts rename to x-pack/platform/plugins/shared/inference/server/routes/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/generate_esql.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/generate_esql.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/generate_esql.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/generate_esql.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/index.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/index.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/index.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/request_documentation.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/request_documentation.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/request_documentation.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/request_documentation.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/actions/shared.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/shared.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/actions/shared.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/actions/shared.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/aliases.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/aliases.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/aliases.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/aliases.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/esql_doc_base.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/index.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/index.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/index.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/load_data.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/load_data.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/load_data.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/load_data.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/suggestions.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/types.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/types.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/doc_base/types.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/doc_base/types.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-abs.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-acos.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-asin.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-atan2.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-avg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-bucket.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-case.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cbrt.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ceil.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cidr_match.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-coalesce.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-concat.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cos.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-cosh.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-count_distinct.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_diff.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_extract.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_format.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_parse.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-date_trunc.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-dissect.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-drop.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-e.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ends_with.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-enrich.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-eval.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-exp.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-floor.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-from_base64.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-greatest.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-grok.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ip_prefix.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-keep.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-least.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-left.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-length.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-limit.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-locate.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-log10.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-lookup.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-ltrim.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-max.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-median_absolute_deviation.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-min.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_append.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_avg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_concat.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_count.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_dedupe.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_expand.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_first.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_last.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_max.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_median.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_min.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_pseries_weighted_sum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_slice.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sort.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_sum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-mv_zip.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-now.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-operators.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-overview.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-percentile.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pi.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-pow.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rename.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-repeat.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-replace.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-right.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-round.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-row.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-rtrim.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-show.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-signum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sin.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sinh.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sort.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-split.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sqrt.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_centroid_agg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_contains.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_disjoint.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_distance.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_intersects.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_within.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_x.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-st_y.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-starts_with.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-stats.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-substring.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-sum.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-syntax.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tan.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tanh.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-tau.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_base64.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_boolean.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianpoint.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_cartesianshape.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_datetime.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_degrees.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_double.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geopoint.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_geoshape.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_integer.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_ip.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_long.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_lower.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_radians.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_string.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_unsigned_long.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_upper.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-to_version.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-top.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-trim.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-values.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-weighted_avg.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/esql_docs/esql-where.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/index.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/index.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/index.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/index.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/system_message.txt b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/system_message.txt similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/system_message.txt rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/system_message.txt diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/task.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/task.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/task.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/task.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/types.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/types.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/types.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/types.ts diff --git a/x-pack/plugins/inference/server/tasks/nl_to_esql/validate_esql_query.ts b/x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/validate_esql_query.ts similarity index 100% rename from x-pack/plugins/inference/server/tasks/nl_to_esql/validate_esql_query.ts rename to x-pack/platform/plugins/shared/inference/server/tasks/nl_to_esql/validate_esql_query.ts diff --git a/x-pack/plugins/inference/server/test_utils/chat_complete_events.ts b/x-pack/platform/plugins/shared/inference/server/test_utils/chat_complete_events.ts similarity index 100% rename from x-pack/plugins/inference/server/test_utils/chat_complete_events.ts rename to x-pack/platform/plugins/shared/inference/server/test_utils/chat_complete_events.ts diff --git a/x-pack/plugins/inference/server/types.ts b/x-pack/platform/plugins/shared/inference/server/types.ts similarity index 100% rename from x-pack/plugins/inference/server/types.ts rename to x-pack/platform/plugins/shared/inference/server/types.ts diff --git a/x-pack/plugins/inference/server/util/event_source_stream_into_observable.test.ts b/x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/event_source_stream_into_observable.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.test.ts diff --git a/x-pack/plugins/inference/server/util/event_source_stream_into_observable.ts b/x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.ts similarity index 100% rename from x-pack/plugins/inference/server/util/event_source_stream_into_observable.ts rename to x-pack/platform/plugins/shared/inference/server/util/event_source_stream_into_observable.ts diff --git a/x-pack/plugins/inference/server/util/get_connector_by_id.test.ts b/x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/get_connector_by_id.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.test.ts diff --git a/x-pack/plugins/inference/server/util/get_connector_by_id.ts b/x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.ts similarity index 100% rename from x-pack/plugins/inference/server/util/get_connector_by_id.ts rename to x-pack/platform/plugins/shared/inference/server/util/get_connector_by_id.ts diff --git a/x-pack/plugins/inference/server/util/observable_into_event_source_stream.test.ts b/x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/observable_into_event_source_stream.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.test.ts diff --git a/x-pack/plugins/inference/server/util/observable_into_event_source_stream.ts b/x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.ts similarity index 100% rename from x-pack/plugins/inference/server/util/observable_into_event_source_stream.ts rename to x-pack/platform/plugins/shared/inference/server/util/observable_into_event_source_stream.ts diff --git a/x-pack/plugins/inference/server/util/validate_tool_calls.test.ts b/x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.test.ts similarity index 100% rename from x-pack/plugins/inference/server/util/validate_tool_calls.test.ts rename to x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.test.ts diff --git a/x-pack/plugins/inference/server/util/validate_tool_calls.ts b/x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.ts similarity index 100% rename from x-pack/plugins/inference/server/util/validate_tool_calls.ts rename to x-pack/platform/plugins/shared/inference/server/util/validate_tool_calls.ts diff --git a/x-pack/plugins/inference/tsconfig.json b/x-pack/platform/plugins/shared/inference/tsconfig.json similarity index 89% rename from x-pack/plugins/inference/tsconfig.json rename to x-pack/platform/plugins/shared/inference/tsconfig.json index 92327007829a9..1e012239f06cf 100644 --- a/x-pack/plugins/inference/tsconfig.json +++ b/x-pack/platform/plugins/shared/inference/tsconfig.json @@ -1,10 +1,10 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, "include": [ - "../../../typings/**/*", + "../../../../../typings/**/*", "common/**/*", "public/**/*", "typings/**/*", diff --git a/yarn.lock b/yarn.lock index 6b7bd8e56b189..67571d31600ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5936,11 +5936,11 @@ version "0.0.0" uid "" -"@kbn/inference-common@link:x-pack/packages/ai-infra/inference-common": +"@kbn/inference-common@link:x-pack/platform/packages/shared/ai-infra/inference-common": version "0.0.0" uid "" -"@kbn/inference-plugin@link:x-pack/plugins/inference": +"@kbn/inference-plugin@link:x-pack/platform/plugins/shared/inference": version "0.0.0" uid "" @@ -6136,7 +6136,7 @@ version "0.0.0" uid "" -"@kbn/llm-tasks-plugin@link:x-pack/plugins/ai_infra/llm_tasks": +"@kbn/llm-tasks-plugin@link:x-pack/platform/plugins/shared/ai_infra/llm_tasks": version "0.0.0" uid "" @@ -6624,11 +6624,11 @@ version "0.0.0" uid "" -"@kbn/product-doc-base-plugin@link:x-pack/plugins/ai_infra/product_doc_base": +"@kbn/product-doc-base-plugin@link:x-pack/platform/plugins/shared/ai_infra/product_doc_base": version "0.0.0" uid "" -"@kbn/product-doc-common@link:x-pack/packages/ai-infra/product-doc-common": +"@kbn/product-doc-common@link:x-pack/platform/packages/shared/ai-infra/product-doc-common": version "0.0.0" uid ""