mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
Sustainable Kibana Architecture: Move modules owned by @elastic/security-generative-ai
(#202848)
## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. #### 1 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/elastic-assistant-plugin` | `x-pack/solutions/security/plugins/elastic_assistant` | #### 3 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/elastic-assistant` | `x-pack/platform/packages/shared/kbn-elastic-assistant` | | `@kbn/elastic-assistant-common` | `x-pack/platform/packages/shared/kbn-elastic-assistant-common` | | `@kbn/langchain` | `x-pack/platform/packages/shared/kbn-langchain` | <details > <summary>Updated references</summary> ``` ./.buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh ./.buildkite/scripts/steps/openapi_bundling/security_solution_openapi_bundling.sh ./.eslintrc.js ./.github/codeql/codeql-config.yml ./docs/developer/plugin-list.asciidoc ./oas_docs/scripts/merge_ess_oas.js ./oas_docs/scripts/merge_serverless_oas.js ./package.json ./packages/kbn-repo-packages/package-map.json ./packages/kbn-ts-projects/config-paths.json ./tsconfig.base.json ./tsconfig.base.type_check.json ./tsconfig.refs.json ./x-pack/.i18nrc.json ./x-pack/packages/kbn-elastic-assistant-common/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js ./x-pack/platform/packages/shared/kbn-elastic-assistant/README.md ./x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js ./x-pack/platform/packages/shared/kbn-langchain/jest.config.js ./x-pack/plugins/elastic_assistant/README.md ./x-pack/plugins/security_solution/docs/openapi/README.md ./x-pack/solutions/security/plugins/elastic_assistant/README.md ./x-pack/solutions/security/plugins/elastic_assistant/jest.config.js ./x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations_script.ts ./x-pack/solutions/security/plugins/elastic_assistant/server/__mocks__/docs_from_directory_loader.ts ./x-pack/solutions/security/plugins/elastic_assistant/server/knowledge_base/security_labs/embedding_security_in_llm_workflows.md ./x-pack/solutions/security/plugins/elastic_assistant/server/lib/attack_discovery/graphs/default_attack_discovery_graph/index.ts ./yarn.lock ``` </details><details > <summary>Updated relative paths</summary> ``` x-pack/platform/packages/shared/kbn-elastic-assistant-common/jest.config.js:21 x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/bundle.js:8 x-pack/platform/packages/shared/kbn-elastic-assistant-common/scripts/openapi/generate.js:8 x-pack/platform/packages/shared/kbn-elastic-assistant-common/tsconfig.json:2 x-pack/platform/packages/shared/kbn-elastic-assistant/jest.config.js:21 x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json:15 x-pack/platform/packages/shared/kbn-elastic-assistant/tsconfig.json:2 x-pack/platform/packages/shared/kbn-langchain/jest.config.js:20 x-pack/platform/packages/shared/kbn-langchain/tsconfig.json:2 x-pack/solutions/security/plugins/elastic_assistant/jest.config.js:14 x-pack/solutions/security/plugins/elastic_assistant/scripts/create_conversations.js:8 x-pack/solutions/security/plugins/elastic_assistant/scripts/draw_graph.js:8 x-pack/solutions/security/plugins/elastic_assistant/scripts/model_evaluator.js:8 x-pack/solutions/security/plugins/elastic_assistant/tsconfig.json:13 x-pack/solutions/security/plugins/elastic_assistant/tsconfig.json:2 ``` </details> --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
8904cb068c
commit
6de695a55c
997 changed files with 188 additions and 187 deletions
|
@ -254,10 +254,10 @@ const getPipeline = (filename: string, removeSteps = true) => {
|
||||||
/^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/openai/,
|
/^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/openai/,
|
||||||
/^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/bedrock/,
|
/^x-pack\/plugins\/triggers_actions_ui\/server\/connector_types\/bedrock/,
|
||||||
/^x-pack\/plugins\/usage_collection\/public/,
|
/^x-pack\/plugins\/usage_collection\/public/,
|
||||||
/^x-pack\/plugins\/elastic_assistant/,
|
/^x-pack\/solutions\/security\/plugins\/elastic_assistant/,
|
||||||
/^x-pack\/packages\/security-solution/,
|
/^x-pack\/packages\/security-solution/,
|
||||||
/^x-pack\/packages\/kbn-elastic-assistant/,
|
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/,
|
||||||
/^x-pack\/packages\/kbn-elastic-assistant-common/,
|
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/,
|
||||||
/^x-pack\/test\/functional\/es_archives\/security_solution/,
|
/^x-pack\/test\/functional\/es_archives\/security_solution/,
|
||||||
/^x-pack\/test\/security_solution_cypress/,
|
/^x-pack\/test\/security_solution_cypress/,
|
||||||
])) ||
|
])) ||
|
||||||
|
@ -321,13 +321,13 @@ const getPipeline = (filename: string, removeSteps = true) => {
|
||||||
/^src\/plugins\/ui_actions/,
|
/^src\/plugins\/ui_actions/,
|
||||||
/^src\/plugins\/unified_histogram/,
|
/^src\/plugins\/unified_histogram/,
|
||||||
/^src\/plugins\/unified_search/,
|
/^src\/plugins\/unified_search/,
|
||||||
/^x-pack\/packages\/kbn-elastic-assistant/,
|
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/,
|
||||||
/^x-pack\/packages\/kbn-elastic-assistant-common/,
|
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/,
|
||||||
/^x-pack\/packages\/security-solution/,
|
/^x-pack\/packages\/security-solution/,
|
||||||
/^x-pack\/plugins\/alerting/,
|
/^x-pack\/plugins\/alerting/,
|
||||||
/^x-pack\/plugins\/cases/,
|
/^x-pack\/plugins\/cases/,
|
||||||
/^x-pack\/plugins\/data_views\/common/,
|
/^x-pack\/plugins\/data_views\/common/,
|
||||||
/^x-pack\/plugins\/elastic_assistant/,
|
/^x-pack\/solutions\/security\/plugins\/elastic_assistant/,
|
||||||
/^x-pack\/plugins\/lists/,
|
/^x-pack\/plugins\/lists/,
|
||||||
/^x-pack\/plugins\/rule_registry\/common/,
|
/^x-pack\/plugins\/rule_registry\/common/,
|
||||||
/^x-pack\/plugins\/security_solution/,
|
/^x-pack\/plugins\/security_solution/,
|
||||||
|
|
|
@ -6,5 +6,5 @@ source .buildkite/scripts/common/util.sh
|
||||||
|
|
||||||
echo --- Elastic Assistant OpenAPI Code Generation
|
echo --- Elastic Assistant OpenAPI Code Generation
|
||||||
|
|
||||||
(cd x-pack/packages/kbn-elastic-assistant-common && yarn openapi:generate)
|
(cd x-pack/platform/packages/shared/kbn-elastic-assistant-common && yarn openapi:generate)
|
||||||
check_for_changed_files "yarn openapi:generate" true
|
check_for_changed_files "yarn openapi:generate" true
|
||||||
|
|
|
@ -28,7 +28,7 @@ echo -e "\n[Security Solution OpenAPI Bundling] Endpoint Management API\n"
|
||||||
(cd x-pack/plugins/security_solution && yarn openapi:bundle:endpoint-management)
|
(cd x-pack/plugins/security_solution && yarn openapi:bundle:endpoint-management)
|
||||||
|
|
||||||
echo -e "\n[Security Solution OpenAPI Bundling] Elastic Assistant API\n"
|
echo -e "\n[Security Solution OpenAPI Bundling] Elastic Assistant API\n"
|
||||||
(cd x-pack/packages/kbn-elastic-assistant-common && yarn openapi:bundle)
|
(cd x-pack/platform/packages/shared/kbn-elastic-assistant-common && yarn openapi:bundle)
|
||||||
|
|
||||||
echo -e "\n[Security Solution OpenAPI Bundling] Osquery API\n"
|
echo -e "\n[Security Solution OpenAPI Bundling] Osquery API\n"
|
||||||
(cd x-pack/platform/plugins/shared/osquery && yarn openapi:bundle)
|
(cd x-pack/platform/plugins/shared/osquery && yarn openapi:bundle)
|
||||||
|
|
38
.eslintrc.js
38
.eslintrc.js
|
@ -1099,9 +1099,9 @@ module.exports = {
|
||||||
// front end and common typescript and javascript files only
|
// front end and common typescript and javascript files only
|
||||||
files: [
|
files: [
|
||||||
'x-pack/plugins/ecs_data_quality_dashboard/common/**/*.{js,mjs,ts,tsx}',
|
'x-pack/plugins/ecs_data_quality_dashboard/common/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/plugins/elastic_assistant/common/**/*.{js,mjs,ts,tsx}',
|
'x-pack/solutions/security/plugins/elastic_assistant/common/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}',
|
'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/plugins/security_solution/public/**/*.{js,mjs,ts,tsx}',
|
'x-pack/plugins/security_solution/public/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/plugins/security_solution_ess/public/**/*.{js,mjs,ts,tsx}',
|
'x-pack/plugins/security_solution_ess/public/**/*.{js,mjs,ts,tsx}',
|
||||||
|
@ -1135,11 +1135,11 @@ module.exports = {
|
||||||
// This should be a very small set as most linter rules are useful for tests as well.
|
// This should be a very small set as most linter rules are useful for tests as well.
|
||||||
files: [
|
files: [
|
||||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}',
|
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}',
|
||||||
'x-pack/plugins/elastic_assistant/**/*.{ts,tsx}',
|
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}',
|
||||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}',
|
'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant/**/*.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-langchain/**/*.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-langchain/**/*.{ts,tsx}',
|
||||||
'x-pack/solutions/security/packages/**/*.{ts,tsx}',
|
'x-pack/solutions/security/packages/**/*.{ts,tsx}',
|
||||||
'x-pack/plugins/security_solution/**/*.{ts,tsx}',
|
'x-pack/plugins/security_solution/**/*.{ts,tsx}',
|
||||||
'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}',
|
'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}',
|
||||||
|
@ -1150,11 +1150,11 @@ module.exports = {
|
||||||
],
|
],
|
||||||
excludedFiles: [
|
excludedFiles: [
|
||||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/plugins/elastic_assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/platform/plugins/shared/integration_assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-langchain/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-langchain/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/solutions/security/packages/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/solutions/security/packages/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/plugins/security_solution/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/plugins/security_solution/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
'x-pack/plugins/security_solution_ess/**/*.{test,mock,test_helper}.{ts,tsx}',
|
'x-pack/plugins/security_solution_ess/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||||
|
@ -1171,11 +1171,11 @@ module.exports = {
|
||||||
// typescript only for front and back end
|
// typescript only for front and back end
|
||||||
files: [
|
files: [
|
||||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}',
|
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}',
|
||||||
'x-pack/plugins/elastic_assistant/**/*.{ts,tsx}',
|
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}',
|
||||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}',
|
'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant/**/*.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
||||||
'x-pack/packages/kbn-langchain/**/*.{ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-langchain/**/*.{ts,tsx}',
|
||||||
'x-pack/solutions/security/packages/**/*.{ts,tsx}',
|
'x-pack/solutions/security/packages/**/*.{ts,tsx}',
|
||||||
'x-pack/plugins/security_solution/**/*.{ts,tsx}',
|
'x-pack/plugins/security_solution/**/*.{ts,tsx}',
|
||||||
'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}',
|
'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}',
|
||||||
|
@ -1205,11 +1205,11 @@ module.exports = {
|
||||||
// typescript and javascript for front and back end
|
// typescript and javascript for front and back end
|
||||||
files: [
|
files: [
|
||||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}',
|
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/plugins/elastic_assistant/**/*.{js,mjs,ts,tsx}',
|
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{js,mjs,ts,tsx}',
|
'x-pack/platform/plugins/shared/integration_assistant/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/packages/kbn-langchain/**/*.{js,mjs,ts,tsx}',
|
'x-pack/platform/packages/shared/kbn-langchain/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}',
|
'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/plugins/security_solution/**/*.{js,mjs,ts,tsx}',
|
'x-pack/plugins/security_solution/**/*.{js,mjs,ts,tsx}',
|
||||||
'x-pack/plugins/security_solution_ess/**/*.{js,mjs,ts,tsx}',
|
'x-pack/plugins/security_solution_ess/**/*.{js,mjs,ts,tsx}',
|
||||||
|
|
10
.github/CODEOWNERS
vendored
10
.github/CODEOWNERS
vendored
|
@ -784,9 +784,6 @@ x-pack/packages/kbn-alerting-state-types @elastic/response-ops
|
||||||
x-pack/packages/kbn-cloud-security-posture/common @elastic/kibana-cloud-security-posture
|
x-pack/packages/kbn-cloud-security-posture/common @elastic/kibana-cloud-security-posture
|
||||||
x-pack/packages/kbn-cloud-security-posture/graph @elastic/kibana-cloud-security-posture
|
x-pack/packages/kbn-cloud-security-posture/graph @elastic/kibana-cloud-security-posture
|
||||||
x-pack/packages/kbn-cloud-security-posture/public @elastic/kibana-cloud-security-posture
|
x-pack/packages/kbn-cloud-security-posture/public @elastic/kibana-cloud-security-posture
|
||||||
x-pack/packages/kbn-elastic-assistant @elastic/security-generative-ai
|
|
||||||
x-pack/packages/kbn-elastic-assistant-common @elastic/security-generative-ai
|
|
||||||
x-pack/packages/kbn-langchain @elastic/security-generative-ai
|
|
||||||
x-pack/packages/kbn-random-sampling @elastic/kibana-visualizations
|
x-pack/packages/kbn-random-sampling @elastic/kibana-visualizations
|
||||||
x-pack/packages/kbn-synthetics-private-location @elastic/obs-ux-management-team
|
x-pack/packages/kbn-synthetics-private-location @elastic/obs-ux-management-team
|
||||||
x-pack/packages/maps/vector_tile_utils @elastic/kibana-presentation
|
x-pack/packages/maps/vector_tile_utils @elastic/kibana-presentation
|
||||||
|
@ -840,7 +837,10 @@ 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/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/ai-infra/product-doc-common @elastic/appex-ai-infra
|
||||||
x-pack/platform/packages/shared/kbn-data-forge @elastic/obs-ux-management-team
|
x-pack/platform/packages/shared/kbn-data-forge @elastic/obs-ux-management-team
|
||||||
|
x-pack/platform/packages/shared/kbn-elastic-assistant @elastic/security-generative-ai
|
||||||
|
x-pack/platform/packages/shared/kbn-elastic-assistant-common @elastic/security-generative-ai
|
||||||
x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities
|
x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities
|
||||||
|
x-pack/platform/packages/shared/kbn-langchain @elastic/security-generative-ai
|
||||||
x-pack/platform/packages/shared/kbn-slo-schema @elastic/obs-ux-management-team
|
x-pack/platform/packages/shared/kbn-slo-schema @elastic/obs-ux-management-team
|
||||||
x-pack/platform/packages/shared/ml/aiops_common @elastic/ml-ui
|
x-pack/platform/packages/shared/ml/aiops_common @elastic/ml-ui
|
||||||
x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis @elastic/ml-ui
|
x-pack/platform/packages/shared/ml/aiops_log_pattern_analysis @elastic/ml-ui
|
||||||
|
@ -887,7 +887,6 @@ x-pack/plugins/data_quality @elastic/obs-ux-logs-team
|
||||||
x-pack/plugins/discover_enhanced @elastic/kibana-data-discovery
|
x-pack/plugins/discover_enhanced @elastic/kibana-data-discovery
|
||||||
x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux
|
x-pack/plugins/drilldowns/url_drilldown @elastic/appex-sharedux
|
||||||
x-pack/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore
|
x-pack/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore
|
||||||
x-pack/plugins/elastic_assistant @elastic/security-generative-ai
|
|
||||||
x-pack/plugins/embeddable_enhanced @elastic/kibana-presentation
|
x-pack/plugins/embeddable_enhanced @elastic/kibana-presentation
|
||||||
x-pack/plugins/encrypted_saved_objects @elastic/kibana-security
|
x-pack/plugins/encrypted_saved_objects @elastic/kibana-security
|
||||||
x-pack/plugins/enterprise_search @elastic/search-kibana
|
x-pack/plugins/enterprise_search @elastic/search-kibana
|
||||||
|
@ -999,6 +998,7 @@ x-pack/solutions/security/packages/navigation @elastic/security-threat-hunting-e
|
||||||
x-pack/solutions/security/packages/side_nav @elastic/security-threat-hunting-explore
|
x-pack/solutions/security/packages/side_nav @elastic/security-threat-hunting-explore
|
||||||
x-pack/solutions/security/packages/storybook/config @elastic/security-threat-hunting-explore
|
x-pack/solutions/security/packages/storybook/config @elastic/security-threat-hunting-explore
|
||||||
x-pack/solutions/security/packages/upselling @elastic/security-threat-hunting-explore
|
x-pack/solutions/security/packages/upselling @elastic/security-threat-hunting-explore
|
||||||
|
x-pack/solutions/security/plugins/elastic_assistant @elastic/security-generative-ai
|
||||||
x-pack/solutions/security/plugins/threat_intelligence @elastic/security-threat-hunting-investigations
|
x-pack/solutions/security/plugins/threat_intelligence @elastic/security-threat-hunting-investigations
|
||||||
x-pack/solutions/security/plugins/timelines @elastic/security-threat-hunting-investigations
|
x-pack/solutions/security/plugins/timelines @elastic/security-threat-hunting-investigations
|
||||||
x-pack/test
|
x-pack/test
|
||||||
|
@ -2454,7 +2454,7 @@ x-pack/plugins/security_solution/server/assistant/tools/defend_insights @elastic
|
||||||
/x-pack/plugins/security_solution_serverless/public/upselling/sections/endpoint_management @elastic/security-defend-workflows
|
/x-pack/plugins/security_solution_serverless/public/upselling/sections/endpoint_management @elastic/security-defend-workflows
|
||||||
/x-pack/plugins/security_solution_serverless/public/upselling/pages/endpoint_management @elastic/security-defend-workflows
|
/x-pack/plugins/security_solution_serverless/public/upselling/pages/endpoint_management @elastic/security-defend-workflows
|
||||||
/x-pack/plugins/security_solution_serverless/server/endpoint @elastic/security-defend-workflows
|
/x-pack/plugins/security_solution_serverless/server/endpoint @elastic/security-defend-workflows
|
||||||
x-pack/packages/kbn-elastic-assistant-common/impl/schemas/defend_insights @elastic/security-defend-workflows
|
x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights @elastic/security-defend-workflows
|
||||||
x-pack/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts @elastic/security-defend-workflows
|
x-pack/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts @elastic/security-defend-workflows
|
||||||
x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights @elastic/security-defend-workflows
|
x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights @elastic/security-defend-workflows
|
||||||
x-pack/plugins/elastic_assistant/server/routes/defend_insights @elastic/security-defend-workflows
|
x-pack/plugins/elastic_assistant/server/routes/defend_insights @elastic/security-defend-workflows
|
||||||
|
|
2
.github/codeql/codeql-config.yml
vendored
2
.github/codeql/codeql-config.yml
vendored
|
@ -75,7 +75,7 @@ paths-ignore:
|
||||||
- test
|
- test
|
||||||
- x-pack/plugins/canvas/scripts
|
- x-pack/plugins/canvas/scripts
|
||||||
- x-pack/plugins/cloud_security_posture/common/scripts
|
- x-pack/plugins/cloud_security_posture/common/scripts
|
||||||
- x-pack/plugins/elastic_assistant/scripts
|
- x-pack/solutions/security/plugins/elastic_assistant/scripts
|
||||||
- x-pack/plugins/event_log/scripts
|
- x-pack/plugins/event_log/scripts
|
||||||
- x-pack/plugins/fleet/scripts
|
- x-pack/plugins/fleet/scripts
|
||||||
- x-pack/plugins/lists/scripts
|
- x-pack/plugins/lists/scripts
|
||||||
|
|
|
@ -557,7 +557,7 @@ Plugin server-side only. Plugin has three main functions:
|
||||||
|This plugin implements (server) APIs used to render the content of the Data Quality dashboard.
|
|This plugin implements (server) APIs used to render the content of the Data Quality dashboard.
|
||||||
|
|
||||||
|
|
||||||
|{kib-repo}blob/{branch}/x-pack/plugins/elastic_assistant/README.md[elasticAssistant]
|
|{kib-repo}blob/{branch}/x-pack/solutions/security/plugins/elastic_assistant/README.md[elasticAssistant]
|
||||||
|This plugin implements (only) server APIs for the Elastic AI Assistant.
|
|This plugin implements (only) server APIs for the Elastic AI Assistant.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ const { REPO_ROOT } = require('@kbn/repo-info');
|
||||||
`${REPO_ROOT}/packages/kbn-securitysolution-lists-common/docs/openapi/ess/*.schema.yaml`,
|
`${REPO_ROOT}/packages/kbn-securitysolution-lists-common/docs/openapi/ess/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/packages/kbn-securitysolution-exceptions-common/docs/openapi/ess/*.schema.yaml`,
|
`${REPO_ROOT}/packages/kbn-securitysolution-exceptions-common/docs/openapi/ess/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/ess/*.schema.yaml`,
|
`${REPO_ROOT}/packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/ess/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/x-pack/packages/kbn-elastic-assistant-common/docs/openapi/ess/*.schema.yaml`,
|
`${REPO_ROOT}/x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/ess/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/x-pack/platform/plugins/shared/osquery/docs/openapi/ess/*.schema.yaml`,
|
`${REPO_ROOT}/x-pack/platform/plugins/shared/osquery/docs/openapi/ess/*.schema.yaml`,
|
||||||
],
|
],
|
||||||
outputFilePath: `${REPO_ROOT}/oas_docs/output/kibana.yaml`,
|
outputFilePath: `${REPO_ROOT}/oas_docs/output/kibana.yaml`,
|
||||||
|
|
|
@ -28,7 +28,7 @@ const { REPO_ROOT } = require('@kbn/repo-info');
|
||||||
`${REPO_ROOT}/packages/kbn-securitysolution-lists-common/docs/openapi/serverless/*.schema.yaml`,
|
`${REPO_ROOT}/packages/kbn-securitysolution-lists-common/docs/openapi/serverless/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/packages/kbn-securitysolution-exceptions-common/docs/openapi/serverless/*.schema.yaml`,
|
`${REPO_ROOT}/packages/kbn-securitysolution-exceptions-common/docs/openapi/serverless/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/serverless/*.schema.yaml`,
|
`${REPO_ROOT}/packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/serverless/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/x-pack/packages/kbn-elastic-assistant-common/docs/openapi/serverless/*.schema.yaml`,
|
`${REPO_ROOT}/x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/serverless/*.schema.yaml`,
|
||||||
`${REPO_ROOT}/x-pack/platform/plugins/shared/osquery/docs/openapi/serverless/*.schema.yaml`,
|
`${REPO_ROOT}/x-pack/platform/plugins/shared/osquery/docs/openapi/serverless/*.schema.yaml`,
|
||||||
],
|
],
|
||||||
outputFilePath: `${REPO_ROOT}/oas_docs/output/kibana.serverless.yaml`,
|
outputFilePath: `${REPO_ROOT}/oas_docs/output/kibana.serverless.yaml`,
|
||||||
|
|
|
@ -466,9 +466,9 @@
|
||||||
"@kbn/ecs-data-quality-dashboard": "link:x-pack/solutions/security/packages/ecs_data_quality_dashboard",
|
"@kbn/ecs-data-quality-dashboard": "link:x-pack/solutions/security/packages/ecs_data_quality_dashboard",
|
||||||
"@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/plugins/ecs_data_quality_dashboard",
|
"@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/plugins/ecs_data_quality_dashboard",
|
||||||
"@kbn/elastic-agent-utils": "link:packages/kbn-elastic-agent-utils",
|
"@kbn/elastic-agent-utils": "link:packages/kbn-elastic-agent-utils",
|
||||||
"@kbn/elastic-assistant": "link:x-pack/packages/kbn-elastic-assistant",
|
"@kbn/elastic-assistant": "link:x-pack/platform/packages/shared/kbn-elastic-assistant",
|
||||||
"@kbn/elastic-assistant-common": "link:x-pack/packages/kbn-elastic-assistant-common",
|
"@kbn/elastic-assistant-common": "link:x-pack/platform/packages/shared/kbn-elastic-assistant-common",
|
||||||
"@kbn/elastic-assistant-plugin": "link:x-pack/plugins/elastic_assistant",
|
"@kbn/elastic-assistant-plugin": "link:x-pack/solutions/security/plugins/elastic_assistant",
|
||||||
"@kbn/elasticsearch-client-plugin": "link:test/plugin_functional/plugins/elasticsearch_client_plugin",
|
"@kbn/elasticsearch-client-plugin": "link:test/plugin_functional/plugins/elasticsearch_client_plugin",
|
||||||
"@kbn/elasticsearch-client-xpack-plugin": "link:x-pack/test/plugin_api_integration/plugins/elasticsearch_client",
|
"@kbn/elasticsearch-client-xpack-plugin": "link:x-pack/test/plugin_api_integration/plugins/elasticsearch_client",
|
||||||
"@kbn/embeddable-enhanced-plugin": "link:x-pack/plugins/embeddable_enhanced",
|
"@kbn/embeddable-enhanced-plugin": "link:x-pack/plugins/embeddable_enhanced",
|
||||||
|
@ -608,7 +608,7 @@
|
||||||
"@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection",
|
"@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection",
|
||||||
"@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils",
|
"@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils",
|
||||||
"@kbn/kubernetes-security-plugin": "link:x-pack/plugins/kubernetes_security",
|
"@kbn/kubernetes-security-plugin": "link:x-pack/plugins/kubernetes_security",
|
||||||
"@kbn/langchain": "link:x-pack/packages/kbn-langchain",
|
"@kbn/langchain": "link:x-pack/platform/packages/shared/kbn-langchain",
|
||||||
"@kbn/language-documentation": "link:src/platform/packages/private/kbn-language-documentation",
|
"@kbn/language-documentation": "link:src/platform/packages/private/kbn-language-documentation",
|
||||||
"@kbn/lens-config-builder-example-plugin": "link:x-pack/examples/lens_config_builder_example",
|
"@kbn/lens-config-builder-example-plugin": "link:x-pack/examples/lens_config_builder_example",
|
||||||
"@kbn/lens-embeddable-utils": "link:packages/kbn-lens-embeddable-utils",
|
"@kbn/lens-embeddable-utils": "link:packages/kbn-lens-embeddable-utils",
|
||||||
|
|
|
@ -21,5 +21,6 @@ module.exports = {
|
||||||
/x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/,
|
/x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/,
|
||||||
/x-pack[\/\\]packages[\/\\]elastic_assistant[\/\\]/,
|
/x-pack[\/\\]packages[\/\\]elastic_assistant[\/\\]/,
|
||||||
/x-pack[\/\\]solutions[\/\\]security[\/\\]packages[\/\\]ecs_data_quality_dashboard[\/\\]/,
|
/x-pack[\/\\]solutions[\/\\]security[\/\\]packages[\/\\]ecs_data_quality_dashboard[\/\\]/,
|
||||||
|
/x-pack[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-elastic-assistant[\/\\]/,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -800,12 +800,12 @@
|
||||||
"@kbn/ecs-data-quality-dashboard-plugin/*": ["x-pack/plugins/ecs_data_quality_dashboard/*"],
|
"@kbn/ecs-data-quality-dashboard-plugin/*": ["x-pack/plugins/ecs_data_quality_dashboard/*"],
|
||||||
"@kbn/elastic-agent-utils": ["packages/kbn-elastic-agent-utils"],
|
"@kbn/elastic-agent-utils": ["packages/kbn-elastic-agent-utils"],
|
||||||
"@kbn/elastic-agent-utils/*": ["packages/kbn-elastic-agent-utils/*"],
|
"@kbn/elastic-agent-utils/*": ["packages/kbn-elastic-agent-utils/*"],
|
||||||
"@kbn/elastic-assistant": ["x-pack/packages/kbn-elastic-assistant"],
|
"@kbn/elastic-assistant": ["x-pack/platform/packages/shared/kbn-elastic-assistant"],
|
||||||
"@kbn/elastic-assistant/*": ["x-pack/packages/kbn-elastic-assistant/*"],
|
"@kbn/elastic-assistant/*": ["x-pack/platform/packages/shared/kbn-elastic-assistant/*"],
|
||||||
"@kbn/elastic-assistant-common": ["x-pack/packages/kbn-elastic-assistant-common"],
|
"@kbn/elastic-assistant-common": ["x-pack/platform/packages/shared/kbn-elastic-assistant-common"],
|
||||||
"@kbn/elastic-assistant-common/*": ["x-pack/packages/kbn-elastic-assistant-common/*"],
|
"@kbn/elastic-assistant-common/*": ["x-pack/platform/packages/shared/kbn-elastic-assistant-common/*"],
|
||||||
"@kbn/elastic-assistant-plugin": ["x-pack/plugins/elastic_assistant"],
|
"@kbn/elastic-assistant-plugin": ["x-pack/solutions/security/plugins/elastic_assistant"],
|
||||||
"@kbn/elastic-assistant-plugin/*": ["x-pack/plugins/elastic_assistant/*"],
|
"@kbn/elastic-assistant-plugin/*": ["x-pack/solutions/security/plugins/elastic_assistant/*"],
|
||||||
"@kbn/elasticsearch-client-plugin": ["test/plugin_functional/plugins/elasticsearch_client_plugin"],
|
"@kbn/elasticsearch-client-plugin": ["test/plugin_functional/plugins/elasticsearch_client_plugin"],
|
||||||
"@kbn/elasticsearch-client-plugin/*": ["test/plugin_functional/plugins/elasticsearch_client_plugin/*"],
|
"@kbn/elasticsearch-client-plugin/*": ["test/plugin_functional/plugins/elasticsearch_client_plugin/*"],
|
||||||
"@kbn/elasticsearch-client-xpack-plugin": ["x-pack/test/plugin_api_integration/plugins/elasticsearch_client"],
|
"@kbn/elasticsearch-client-xpack-plugin": ["x-pack/test/plugin_api_integration/plugins/elasticsearch_client"],
|
||||||
|
@ -1132,8 +1132,8 @@
|
||||||
"@kbn/kibana-utils-plugin/*": ["src/plugins/kibana_utils/*"],
|
"@kbn/kibana-utils-plugin/*": ["src/plugins/kibana_utils/*"],
|
||||||
"@kbn/kubernetes-security-plugin": ["x-pack/plugins/kubernetes_security"],
|
"@kbn/kubernetes-security-plugin": ["x-pack/plugins/kubernetes_security"],
|
||||||
"@kbn/kubernetes-security-plugin/*": ["x-pack/plugins/kubernetes_security/*"],
|
"@kbn/kubernetes-security-plugin/*": ["x-pack/plugins/kubernetes_security/*"],
|
||||||
"@kbn/langchain": ["x-pack/packages/kbn-langchain"],
|
"@kbn/langchain": ["x-pack/platform/packages/shared/kbn-langchain"],
|
||||||
"@kbn/langchain/*": ["x-pack/packages/kbn-langchain/*"],
|
"@kbn/langchain/*": ["x-pack/platform/packages/shared/kbn-langchain/*"],
|
||||||
"@kbn/language-documentation": ["src/platform/packages/private/kbn-language-documentation"],
|
"@kbn/language-documentation": ["src/platform/packages/private/kbn-language-documentation"],
|
||||||
"@kbn/language-documentation/*": ["src/platform/packages/private/kbn-language-documentation/*"],
|
"@kbn/language-documentation/*": ["src/platform/packages/private/kbn-language-documentation/*"],
|
||||||
"@kbn/lens-config-builder-example-plugin": ["x-pack/examples/lens_config_builder_example"],
|
"@kbn/lens-config-builder-example-plugin": ["x-pack/examples/lens_config_builder_example"],
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
"xpack.dataUsage": "platform/plugins/private/data_usage",
|
"xpack.dataUsage": "platform/plugins/private/data_usage",
|
||||||
"xpack.discover": "plugins/discover_enhanced",
|
"xpack.discover": "plugins/discover_enhanced",
|
||||||
"xpack.crossClusterReplication": "plugins/cross_cluster_replication",
|
"xpack.crossClusterReplication": "plugins/cross_cluster_replication",
|
||||||
"xpack.elasticAssistant": "packages/kbn-elastic-assistant",
|
"xpack.elasticAssistant": "platform/packages/shared/kbn-elastic-assistant",
|
||||||
"xpack.elasticAssistantCommon": "packages/kbn-elastic-assistant-common",
|
"xpack.elasticAssistantCommon": "platform/packages/shared/kbn-elastic-assistant-common",
|
||||||
"xpack.elasticAssistantPlugin": "plugins/elastic_assistant",
|
"xpack.elasticAssistantPlugin": "solutions/security/plugins/elastic_assistant",
|
||||||
"xpack.ecsDataQualityDashboard": "plugins/ecs_data_quality_dashboard",
|
"xpack.ecsDataQualityDashboard": "plugins/ecs_data_quality_dashboard",
|
||||||
"xpack.embeddableEnhanced": "plugins/embeddable_enhanced",
|
"xpack.embeddableEnhanced": "plugins/embeddable_enhanced",
|
||||||
"xpack.endpoint": "plugins/endpoint",
|
"xpack.endpoint": "plugins/endpoint",
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
||||||
* 2.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
coverageDirectory:
|
|
||||||
'<rootDir>/target/kibana-coverage/jest/x-pack/packages/kbn_elastic_assistant_common_impl',
|
|
||||||
coverageReporters: ['text', 'html'],
|
|
||||||
collectCoverageFrom: [
|
|
||||||
'<rootDir>/x-pack/packages/kbn-elastic-assistant-common/impl/**/*.{ts,tsx}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant-common/impl/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant-common/impl/*mock*.{ts,tsx}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant-common/impl/*.test.{ts,tsx}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant-common/impl/*.d.ts',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant-common/impl/*.config.ts',
|
|
||||||
],
|
|
||||||
preset: '@kbn/test',
|
|
||||||
rootDir: '../../..',
|
|
||||||
roots: ['<rootDir>/x-pack/packages/kbn-elastic-assistant-common'],
|
|
||||||
};
|
|
|
@ -1,23 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
||||||
* 2.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
coverageDirectory:
|
|
||||||
'<rootDir>/target/kibana-coverage/jest/x-pack/packages/kbn_elastic_assistant_impl',
|
|
||||||
coverageReporters: ['text', 'html'],
|
|
||||||
collectCoverageFrom: [
|
|
||||||
'<rootDir>/x-pack/packages/kbn-elastic-assistant/impl/**/*.{ts,tsx}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant/impl/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant/impl/*mock*.{ts,tsx}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant/impl/*.test.{ts,tsx}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant/impl/*.d.ts',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-elastic-assistant/impl/*.config.ts',
|
|
||||||
],
|
|
||||||
preset: '@kbn/test',
|
|
||||||
rootDir: '../../..',
|
|
||||||
roots: ['<rootDir>/x-pack/packages/kbn-elastic-assistant'],
|
|
||||||
};
|
|
|
@ -1,22 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
||||||
* 2.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/packages/kbn_langchain',
|
|
||||||
coverageReporters: ['text', 'html'],
|
|
||||||
collectCoverageFrom: [
|
|
||||||
'<rootDir>/x-pack/packages/kbn-langchain/server/**/*.{ts}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-langchain/server/{__test__,__snapshots__,__examples__,*mock*,tests,test_helpers,integration_tests,types}/**/*',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-langchain/server/*mock*.{ts}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-langchain/server/*.test.{ts}',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-langchain/server/*.d.ts',
|
|
||||||
'!<rootDir>/x-pack/packages/kbn-langchain/server/*.config.ts',
|
|
||||||
],
|
|
||||||
preset: '@kbn/test',
|
|
||||||
rootDir: '../../..',
|
|
||||||
roots: ['<rootDir>/x-pack/packages/kbn-langchain'],
|
|
||||||
};
|
|
|
@ -1,8 +1,8 @@
|
||||||
# @kbn/elastic-assistant-common
|
# @kbn/elastic-assistant-common
|
||||||
|
|
||||||
This package provides common code consumed in both the browser, i.e. the
|
This package provides common code consumed in both the browser, i.e. the
|
||||||
`packages/kbn-elastic-assistant` package and `plugins/security_solution` plugin, and on the server, i.e. the
|
`platform/packages/shared/kbn-elastic-assistant` package and `plugins/security_solution` plugin, and on the server, i.e. the
|
||||||
`plugins/elastic_assistant` plugin.
|
`solutions/security/plugins/elastic_assistant` plugin.
|
||||||
|
|
||||||
For example, the data anonymization functions exported by this package
|
For example, the data anonymization functions exported by this package
|
||||||
are be used in both the browser, and on the server.
|
are be used in both the browser, and on the server.
|
||||||
|
@ -16,7 +16,7 @@ Maintained by the Security Solution team
|
||||||
To (interactively) run unit tests with code coverage, run the following command:
|
To (interactively) run unit tests with code coverage, run the following command:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cd $KIBANA_HOME && node scripts/jest --watch x-pack/packages/kbn-elastic-assistant-common --coverage
|
cd $KIBANA_HOME && node scripts/jest --watch x-pack/platform/packages/shared/kbn-elastic-assistant-common --coverage
|
||||||
```
|
```
|
||||||
|
|
||||||
## OpenAPI Codegen
|
## OpenAPI Codegen
|
||||||
|
@ -25,7 +25,7 @@ Implemented using the new OpenAPI codegen and bundle packages:
|
||||||
* Includes OpenAPI codegen script and CI action as detailed in: https://github.com/elastic/kibana/pull/166269
|
* Includes OpenAPI codegen script and CI action as detailed in: https://github.com/elastic/kibana/pull/166269
|
||||||
* Includes OpenAPI docs bundling script as detailed in: https://github.com/elastic/kibana/pull/171526
|
* Includes OpenAPI docs bundling script as detailed in: https://github.com/elastic/kibana/pull/171526
|
||||||
|
|
||||||
To run codegen/bundling locally, cd to `x-pack/packages/kbn-elastic-assistant-common/` and run any of the following commands:
|
To run codegen/bundling locally, cd to `x-pack/platform/packages/shared/kbn-elastic-assistant-common/` and run any of the following commands:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yarn openapi:generate
|
yarn openapi:generate
|
|
@ -3,17 +3,17 @@ With https://github.com/elastic/kibana/pull/186566, we've introduced a few sampl
|
||||||
You can read more about `http` files [here](https://www.jetbrains.com/help/webstorm/http-client-in-product-code-editor.html) and for the spec see this repo [here](https://github.com/JetBrains/http-request-in-editor-spec/blob/master/spec.md). If we find these useful, we could add support to our [OpenAPI Generator](https://openapi-generator.tech/docs/generators/jetbrains-http-client) to create these automatically. They currently live co-located next to the OAS and generated schema files here:
|
You can read more about `http` files [here](https://www.jetbrains.com/help/webstorm/http-client-in-product-code-editor.html) and for the spec see this repo [here](https://github.com/JetBrains/http-request-in-editor-spec/blob/master/spec.md). If we find these useful, we could add support to our [OpenAPI Generator](https://openapi-generator.tech/docs/generators/jetbrains-http-client) to create these automatically. They currently live co-located next to the OAS and generated schema files here:
|
||||||
|
|
||||||
```
|
```
|
||||||
x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http
|
x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http
|
||||||
x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http
|
x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http
|
||||||
```
|
```
|
||||||
|
|
||||||
and the main config here in this directory:
|
and the main config here in this directory:
|
||||||
|
|
||||||
```
|
```
|
||||||
x-pack/packages/kbn-elastic-assistant-common/env/http-client.env.json
|
x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/http-client.env.json
|
||||||
```
|
```
|
||||||
|
|
||||||
The `x-pack/packages/kbn-elastic-assistant-common/.gitignore` has been updated to ignore `http-client.private.env.json` files locally, which is how you can override the config as you'd like. This is helpful to add variables like `basePath` as below:
|
The `x-pack/platform/packages/shared/kbn-elastic-assistant-common/.gitignore` has been updated to ignore `http-client.private.env.json` files locally, which is how you can override the config as you'd like. This is helpful to add variables like `basePath` as below:
|
||||||
|
|
||||||
```
|
```
|
||||||
{
|
{
|
|
@ -16,7 +16,7 @@ plugins.elasticAssistant.registerFeatures(APP_UI_ID, {
|
||||||
```
|
```
|
||||||
|
|
||||||
### Declaring Feature Capabilities
|
### Declaring Feature Capabilities
|
||||||
Default feature capabilities are declared in `x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/index.ts`:
|
Default feature capabilities are declared in `x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/index.ts`:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
export type AssistantFeatures = { [K in keyof typeof defaultAssistantFeatures]: boolean };
|
export type AssistantFeatures = { [K in keyof typeof defaultAssistantFeatures]: boolean };
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue