mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/security-generative-ai
(#202848) (#204468)
## Summary Summarize your PR. If it involves visual changes include a screenshot or gif. ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [ ] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [ ] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Identify risks Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss. Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging. - [ ] [See some risk examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) - [ ] ... --------- Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
5194f26234
commit
49f8fddee7
996 changed files with 192 additions and 185 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\/bedrock/,
|
||||
/^x-pack\/plugins\/usage_collection\/public/,
|
||||
/^x-pack\/plugins\/elastic_assistant/,
|
||||
/^x-pack\/solutions\/security\/plugins\/elastic_assistant/,
|
||||
/^x-pack\/packages\/security-solution/,
|
||||
/^x-pack\/packages\/kbn-elastic-assistant/,
|
||||
/^x-pack\/packages\/kbn-elastic-assistant-common/,
|
||||
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/,
|
||||
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/,
|
||||
/^x-pack\/test\/functional\/es_archives\/security_solution/,
|
||||
/^x-pack\/test\/security_solution_cypress/,
|
||||
])) ||
|
||||
|
@ -321,13 +321,13 @@ const getPipeline = (filename: string, removeSteps = true) => {
|
|||
/^src\/plugins\/ui_actions/,
|
||||
/^src\/plugins\/unified_histogram/,
|
||||
/^src\/plugins\/unified_search/,
|
||||
/^x-pack\/packages\/kbn-elastic-assistant/,
|
||||
/^x-pack\/packages\/kbn-elastic-assistant-common/,
|
||||
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant/,
|
||||
/^x-pack\/platform\/packages\/shared\/kbn-elastic-assistant-common/,
|
||||
/^x-pack\/packages\/security-solution/,
|
||||
/^x-pack\/plugins\/alerting/,
|
||||
/^x-pack\/plugins\/cases/,
|
||||
/^x-pack\/plugins\/data_views\/common/,
|
||||
/^x-pack\/plugins\/elastic_assistant/,
|
||||
/^x-pack\/solutions\/security\/plugins\/elastic_assistant/,
|
||||
/^x-pack\/plugins\/lists/,
|
||||
/^x-pack\/plugins\/rule_registry\/common/,
|
||||
/^x-pack\/plugins\/security_solution/,
|
||||
|
|
|
@ -6,5 +6,5 @@ source .buildkite/scripts/common/util.sh
|
|||
|
||||
echo --- Elastic Assistant OpenAPI Code Generation
|
||||
|
||||
(cd x-pack/packages/kbn-elastic-assistant-common && yarn openapi:generate)
|
||||
(cd x-pack/platform/packages/shared/kbn-elastic-assistant-common && yarn openapi:generate)
|
||||
check_for_changed_files "yarn openapi:generate" true
|
||||
|
|
|
@ -28,7 +28,7 @@ echo -e "\n[Security Solution OpenAPI Bundling] Endpoint Management API\n"
|
|||
(cd x-pack/plugins/security_solution && yarn openapi:bundle:endpoint-management)
|
||||
|
||||
echo -e "\n[Security Solution OpenAPI Bundling] Elastic Assistant API\n"
|
||||
(cd x-pack/packages/kbn-elastic-assistant-common && yarn openapi:bundle)
|
||||
(cd x-pack/platform/packages/shared/kbn-elastic-assistant-common && yarn openapi:bundle)
|
||||
|
||||
echo -e "\n[Security Solution OpenAPI Bundling] Osquery API\n"
|
||||
(cd x-pack/platform/plugins/shared/osquery && yarn openapi:bundle)
|
||||
|
|
38
.eslintrc.js
38
.eslintrc.js
|
@ -1099,9 +1099,9 @@ module.exports = {
|
|||
// front end and common typescript and javascript files only
|
||||
files: [
|
||||
'x-pack/plugins/ecs_data_quality_dashboard/common/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/elastic_assistant/common/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/solutions/security/plugins/elastic_assistant/common/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/security_solution/public/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/security_solution_ess/public/**/*.{js,mjs,ts,tsx}',
|
||||
|
@ -1135,11 +1135,11 @@ module.exports = {
|
|||
// This should be a very small set as most linter rules are useful for tests as well.
|
||||
files: [
|
||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}',
|
||||
'x-pack/plugins/elastic_assistant/**/*.{ts,tsx}',
|
||||
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}',
|
||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant/**/*.{ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
||||
'x-pack/packages/kbn-langchain/**/*.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-langchain/**/*.{ts,tsx}',
|
||||
'x-pack/solutions/security/packages/**/*.{ts,tsx}',
|
||||
'x-pack/plugins/security_solution/**/*.{ts,tsx}',
|
||||
'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}',
|
||||
|
@ -1150,11 +1150,11 @@ module.exports = {
|
|||
],
|
||||
excludedFiles: [
|
||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/plugins/elastic_assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/packages/kbn-langchain/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-langchain/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/solutions/security/packages/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/plugins/security_solution/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
'x-pack/plugins/security_solution_ess/**/*.{test,mock,test_helper}.{ts,tsx}',
|
||||
|
@ -1171,11 +1171,11 @@ module.exports = {
|
|||
// typescript only for front and back end
|
||||
files: [
|
||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{ts,tsx}',
|
||||
'x-pack/plugins/elastic_assistant/**/*.{ts,tsx}',
|
||||
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{ts,tsx}',
|
||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant/**/*.{ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
||||
'x-pack/packages/kbn-langchain/**/*.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-langchain/**/*.{ts,tsx}',
|
||||
'x-pack/solutions/security/packages/**/*.{ts,tsx}',
|
||||
'x-pack/plugins/security_solution/**/*.{ts,tsx}',
|
||||
'x-pack/plugins/security_solution_ess/**/*.{ts,tsx}',
|
||||
|
@ -1205,11 +1205,11 @@ module.exports = {
|
|||
// typescript and javascript for front and back end
|
||||
files: [
|
||||
'x-pack/plugins/ecs_data_quality_dashboard/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/elastic_assistant/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/solutions/security/plugins/elastic_assistant/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/platform/plugins/shared/integration_assistant/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/packages/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/packages/kbn-langchain/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-elastic-assistant-common/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/platform/packages/shared/kbn-langchain/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/solutions/security/packages/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/security_solution/**/*.{js,mjs,ts,tsx}',
|
||||
'x-pack/plugins/security_solution_ess/**/*.{js,mjs,ts,tsx}',
|
||||
|
|
14
.github/CODEOWNERS
vendored
14
.github/CODEOWNERS
vendored
|
@ -402,9 +402,9 @@ packages/kbn-ebt-tools @elastic/kibana-core
|
|||
x-pack/solutions/security/packages/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore
|
||||
x-pack/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-explore
|
||||
packages/kbn-elastic-agent-utils @elastic/obs-ux-logs-team
|
||||
x-pack/packages/kbn-elastic-assistant @elastic/security-generative-ai
|
||||
x-pack/packages/kbn-elastic-assistant-common @elastic/security-generative-ai
|
||||
x-pack/plugins/elastic_assistant @elastic/security-generative-ai
|
||||
x-pack/platform/packages/shared/kbn-elastic-assistant @elastic/security-generative-ai
|
||||
x-pack/platform/packages/shared/kbn-elastic-assistant-common @elastic/security-generative-ai
|
||||
x-pack/solutions/security/plugins/elastic_assistant @elastic/security-generative-ai
|
||||
test/plugin_functional/plugins/elasticsearch_client_plugin @elastic/kibana-core
|
||||
x-pack/test/plugin_api_integration/plugins/elasticsearch_client @elastic/kibana-core
|
||||
x-pack/plugins/embeddable_enhanced @elastic/kibana-presentation
|
||||
|
@ -567,7 +567,7 @@ src/plugins/kibana_react @elastic/appex-sharedux
|
|||
src/plugins/kibana_usage_collection @elastic/kibana-core
|
||||
src/plugins/kibana_utils @elastic/appex-sharedux
|
||||
x-pack/plugins/kubernetes_security @elastic/kibana-cloud-security-posture
|
||||
x-pack/packages/kbn-langchain @elastic/security-generative-ai
|
||||
x-pack/platform/packages/shared/kbn-langchain @elastic/security-generative-ai
|
||||
src/platform/packages/private/kbn-language-documentation @elastic/kibana-esql
|
||||
x-pack/examples/lens_config_builder_example @elastic/kibana-visualizations
|
||||
packages/kbn-lens-embeddable-utils @elastic/obs-ux-infra_services-team @elastic/kibana-visualizations
|
||||
|
@ -1844,6 +1844,12 @@ x-pack/test/security_solution_cypress/cypress/tasks/expandable_flyout @elastic/
|
|||
/x-pack/plugins/security_solution_serverless/public/upselling/sections/endpoint_management @elastic/security-defend-workflows
|
||||
/x-pack/plugins/security_solution_serverless/public/upselling/pages/endpoint_management @elastic/security-defend-workflows
|
||||
/x-pack/plugins/security_solution_serverless/server/endpoint @elastic/security-defend-workflows
|
||||
x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/defend_insights @elastic/security-defend-workflows
|
||||
x-pack/plugins/elastic_assistant/server/__mocks__/defend_insights_schema.mock.ts @elastic/security-defend-workflows
|
||||
x-pack/plugins/elastic_assistant/server/ai_assistant_data_clients/defend_insights @elastic/security-defend-workflows
|
||||
x-pack/plugins/elastic_assistant/server/routes/defend_insights @elastic/security-defend-workflows
|
||||
/x-pack/plugins/security_solution/public/common/components/response_actions @elastic/security-defend-workflows
|
||||
/x-pack/plugins/security_solution_serverless/public/upselling/pages/osquery_automated_response_actions.tsx @elastic/security-defend-workflows
|
||||
|
||||
## Security Solution sub teams - security-telemetry (Data Engineering)
|
||||
x-pack/plugins/security_solution/server/usage/ @elastic/security-data-analytics
|
||||
|
|
2
.github/codeql/codeql-config.yml
vendored
2
.github/codeql/codeql-config.yml
vendored
|
@ -75,7 +75,7 @@ paths-ignore:
|
|||
- test
|
||||
- x-pack/plugins/canvas/scripts
|
||||
- x-pack/plugins/cloud_security_posture/common/scripts
|
||||
- x-pack/plugins/elastic_assistant/scripts
|
||||
- x-pack/solutions/security/plugins/elastic_assistant/scripts
|
||||
- x-pack/plugins/event_log/scripts
|
||||
- x-pack/plugins/fleet/scripts
|
||||
- x-pack/plugins/lists/scripts
|
||||
|
|
|
@ -557,7 +557,7 @@ Plugin server-side only. Plugin has three main functions:
|
|||
|This plugin implements (server) APIs used to render the content of the Data Quality dashboard.
|
||||
|
||||
|
||||
|{kib-repo}blob/{branch}/x-pack/plugins/elastic_assistant/README.md[elasticAssistant]
|
||||
|{kib-repo}blob/{branch}/x-pack/solutions/security/plugins/elastic_assistant/README.md[elasticAssistant]
|
||||
|This plugin implements (only) server APIs for the Elastic AI Assistant.
|
||||
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ const { REPO_ROOT } = require('@kbn/repo-info');
|
|||
`${REPO_ROOT}/packages/kbn-securitysolution-lists-common/docs/openapi/ess/*.schema.yaml`,
|
||||
`${REPO_ROOT}/packages/kbn-securitysolution-exceptions-common/docs/openapi/ess/*.schema.yaml`,
|
||||
`${REPO_ROOT}/packages/kbn-securitysolution-endpoint-exceptions-common/docs/openapi/ess/*.schema.yaml`,
|
||||
`${REPO_ROOT}/x-pack/packages/kbn-elastic-assistant-common/docs/openapi/ess/*.schema.yaml`,
|
||||
`${REPO_ROOT}/x-pack/platform/packages/shared/kbn-elastic-assistant-common/docs/openapi/ess/*.schema.yaml`,
|
||||
`${REPO_ROOT}/x-pack/platform/plugins/shared/osquery/docs/openapi/ess/*.schema.yaml`,
|
||||
],
|
||||
outputFilePath: `${REPO_ROOT}/oas_docs/output/kibana.yaml`,
|
||||
|
|
|
@ -465,9 +465,9 @@
|
|||
"@kbn/ecs-data-quality-dashboard": "link:x-pack/solutions/security/packages/ecs_data_quality_dashboard",
|
||||
"@kbn/ecs-data-quality-dashboard-plugin": "link:x-pack/plugins/ecs_data_quality_dashboard",
|
||||
"@kbn/elastic-agent-utils": "link:packages/kbn-elastic-agent-utils",
|
||||
"@kbn/elastic-assistant": "link:x-pack/packages/kbn-elastic-assistant",
|
||||
"@kbn/elastic-assistant-common": "link:x-pack/packages/kbn-elastic-assistant-common",
|
||||
"@kbn/elastic-assistant-plugin": "link:x-pack/plugins/elastic_assistant",
|
||||
"@kbn/elastic-assistant": "link:x-pack/platform/packages/shared/kbn-elastic-assistant",
|
||||
"@kbn/elastic-assistant-common": "link:x-pack/platform/packages/shared/kbn-elastic-assistant-common",
|
||||
"@kbn/elastic-assistant-plugin": "link:x-pack/solutions/security/plugins/elastic_assistant",
|
||||
"@kbn/elasticsearch-client-plugin": "link:test/plugin_functional/plugins/elasticsearch_client_plugin",
|
||||
"@kbn/elasticsearch-client-xpack-plugin": "link:x-pack/test/plugin_api_integration/plugins/elasticsearch_client",
|
||||
"@kbn/embeddable-enhanced-plugin": "link:x-pack/plugins/embeddable_enhanced",
|
||||
|
@ -606,7 +606,7 @@
|
|||
"@kbn/kibana-usage-collection-plugin": "link:src/plugins/kibana_usage_collection",
|
||||
"@kbn/kibana-utils-plugin": "link:src/plugins/kibana_utils",
|
||||
"@kbn/kubernetes-security-plugin": "link:x-pack/plugins/kubernetes_security",
|
||||
"@kbn/langchain": "link:x-pack/packages/kbn-langchain",
|
||||
"@kbn/langchain": "link:x-pack/platform/packages/shared/kbn-langchain",
|
||||
"@kbn/language-documentation": "link:src/platform/packages/private/kbn-language-documentation",
|
||||
"@kbn/lens-config-builder-example-plugin": "link:x-pack/examples/lens_config_builder_example",
|
||||
"@kbn/lens-embeddable-utils": "link:packages/kbn-lens-embeddable-utils",
|
||||
|
|
|
@ -21,5 +21,6 @@ module.exports = {
|
|||
/x-pack[\/\\]test[\/\\]plugin_functional[\/\\]plugins[\/\\]resolver_test[\/\\]/,
|
||||
/x-pack[\/\\]packages[\/\\]elastic_assistant[\/\\]/,
|
||||
/x-pack[\/\\]solutions[\/\\]security[\/\\]packages[\/\\]ecs_data_quality_dashboard[\/\\]/,
|
||||
/x-pack[\/\\]platform[\/\\]packages[\/\\]shared[\/\\]kbn-elastic-assistant[\/\\]/,
|
||||
],
|
||||
};
|
||||
|
|
|
@ -798,12 +798,12 @@
|
|||
"@kbn/ecs-data-quality-dashboard-plugin/*": ["x-pack/plugins/ecs_data_quality_dashboard/*"],
|
||||
"@kbn/elastic-agent-utils": ["packages/kbn-elastic-agent-utils"],
|
||||
"@kbn/elastic-agent-utils/*": ["packages/kbn-elastic-agent-utils/*"],
|
||||
"@kbn/elastic-assistant": ["x-pack/packages/kbn-elastic-assistant"],
|
||||
"@kbn/elastic-assistant/*": ["x-pack/packages/kbn-elastic-assistant/*"],
|
||||
"@kbn/elastic-assistant-common": ["x-pack/packages/kbn-elastic-assistant-common"],
|
||||
"@kbn/elastic-assistant-common/*": ["x-pack/packages/kbn-elastic-assistant-common/*"],
|
||||
"@kbn/elastic-assistant-plugin": ["x-pack/plugins/elastic_assistant"],
|
||||
"@kbn/elastic-assistant-plugin/*": ["x-pack/plugins/elastic_assistant/*"],
|
||||
"@kbn/elastic-assistant": ["x-pack/platform/packages/shared/kbn-elastic-assistant"],
|
||||
"@kbn/elastic-assistant/*": ["x-pack/platform/packages/shared/kbn-elastic-assistant/*"],
|
||||
"@kbn/elastic-assistant-common": ["x-pack/platform/packages/shared/kbn-elastic-assistant-common"],
|
||||
"@kbn/elastic-assistant-common/*": ["x-pack/platform/packages/shared/kbn-elastic-assistant-common/*"],
|
||||
"@kbn/elastic-assistant-plugin": ["x-pack/solutions/security/plugins/elastic_assistant"],
|
||||
"@kbn/elastic-assistant-plugin/*": ["x-pack/solutions/security/plugins/elastic_assistant/*"],
|
||||
"@kbn/elasticsearch-client-plugin": ["test/plugin_functional/plugins/elasticsearch_client_plugin"],
|
||||
"@kbn/elasticsearch-client-plugin/*": ["test/plugin_functional/plugins/elasticsearch_client_plugin/*"],
|
||||
"@kbn/elasticsearch-client-xpack-plugin": ["x-pack/test/plugin_api_integration/plugins/elasticsearch_client"],
|
||||
|
@ -1128,8 +1128,8 @@
|
|||
"@kbn/kibana-utils-plugin/*": ["src/plugins/kibana_utils/*"],
|
||||
"@kbn/kubernetes-security-plugin": ["x-pack/plugins/kubernetes_security"],
|
||||
"@kbn/kubernetes-security-plugin/*": ["x-pack/plugins/kubernetes_security/*"],
|
||||
"@kbn/langchain": ["x-pack/packages/kbn-langchain"],
|
||||
"@kbn/langchain/*": ["x-pack/packages/kbn-langchain/*"],
|
||||
"@kbn/langchain": ["x-pack/platform/packages/shared/kbn-langchain"],
|
||||
"@kbn/langchain/*": ["x-pack/platform/packages/shared/kbn-langchain/*"],
|
||||
"@kbn/language-documentation": ["src/platform/packages/private/kbn-language-documentation"],
|
||||
"@kbn/language-documentation/*": ["src/platform/packages/private/kbn-language-documentation/*"],
|
||||
"@kbn/lens-config-builder-example-plugin": ["x-pack/examples/lens_config_builder_example"],
|
||||
|
|
|
@ -35,9 +35,9 @@
|
|||
"xpack.dataUsage": "platform/plugins/private/data_usage",
|
||||
"xpack.discover": "plugins/discover_enhanced",
|
||||
"xpack.crossClusterReplication": "platform/plugins/private/cross_cluster_replication",
|
||||
"xpack.elasticAssistant": "packages/kbn-elastic-assistant",
|
||||
"xpack.elasticAssistant": "platform/packages/shared/kbn-elastic-assistant",
|
||||
"xpack.elasticAssistantCommon": "platform/packages/shared/kbn-elastic-assistant-common",
|
||||
"xpack.elasticAssistantPlugin": "plugins/elastic_assistant",
|
||||
"xpack.elasticAssistantPlugin": "solutions/security/plugins/elastic_assistant",
|
||||
"xpack.ecsDataQualityDashboard": "plugins/ecs_data_quality_dashboard",
|
||||
"xpack.embeddableEnhanced": "plugins/embeddable_enhanced",
|
||||
"xpack.endpoint": "plugins/endpoint",
|
||||
|
|
|
@ -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
|
||||
|
||||
This package provides common code consumed in both the browser, i.e. the
|
||||
`packages/kbn-elastic-assistant` package and `plugins/security_solution` plugin, and on the server, i.e. the
|
||||
`plugins/elastic_assistant` plugin.
|
||||
`platform/packages/shared/kbn-elastic-assistant` package and `plugins/security_solution` plugin, and on the server, i.e. the
|
||||
`solutions/security/plugins/elastic_assistant` plugin.
|
||||
|
||||
For example, the data anonymization functions exported by this package
|
||||
are be used in both the browser, and on the server.
|
||||
|
@ -16,7 +16,7 @@ Maintained by the Security Solution team
|
|||
To (interactively) run unit tests with code coverage, run the following command:
|
||||
|
||||
```sh
|
||||
cd $KIBANA_HOME && node scripts/jest --watch x-pack/packages/kbn-elastic-assistant-common --coverage
|
||||
cd $KIBANA_HOME && node scripts/jest --watch x-pack/platform/packages/shared/kbn-elastic-assistant-common --coverage
|
||||
```
|
||||
|
||||
## OpenAPI Codegen
|
||||
|
@ -25,7 +25,7 @@ Implemented using the new OpenAPI codegen and bundle packages:
|
|||
* Includes OpenAPI codegen script and CI action as detailed in: https://github.com/elastic/kibana/pull/166269
|
||||
* Includes OpenAPI docs bundling script as detailed in: https://github.com/elastic/kibana/pull/171526
|
||||
|
||||
To run codegen/bundling locally, cd to `x-pack/packages/kbn-elastic-assistant-common/` and run any of the following commands:
|
||||
To run codegen/bundling locally, cd to `x-pack/platform/packages/shared/kbn-elastic-assistant-common/` and run any of the following commands:
|
||||
|
||||
```bash
|
||||
yarn openapi:generate
|
|
@ -3,17 +3,17 @@ With https://github.com/elastic/kibana/pull/186566, we've introduced a few sampl
|
|||
You can read more about `http` files [here](https://www.jetbrains.com/help/webstorm/http-client-in-product-code-editor.html) and for the spec see this repo [here](https://github.com/JetBrains/http-request-in-editor-spec/blob/master/spec.md). If we find these useful, we could add support to our [OpenAPI Generator](https://openapi-generator.tech/docs/generators/jetbrains-http-client) to create these automatically. They currently live co-located next to the OAS and generated schema files here:
|
||||
|
||||
```
|
||||
x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http
|
||||
x-pack/packages/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http
|
||||
x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/bulk_crud_knowledge_base_entries_route.http
|
||||
x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/schemas/knowledge_base/entries/crud_knowledge_base_entries_route.http
|
||||
```
|
||||
|
||||
and the main config here in this directory:
|
||||
|
||||
```
|
||||
x-pack/packages/kbn-elastic-assistant-common/env/http-client.env.json
|
||||
x-pack/platform/packages/shared/kbn-elastic-assistant-common/env/http-client.env.json
|
||||
```
|
||||
|
||||
The `x-pack/packages/kbn-elastic-assistant-common/.gitignore` has been updated to ignore `http-client.private.env.json` files locally, which is how you can override the config as you'd like. This is helpful to add variables like `basePath` as below:
|
||||
The `x-pack/platform/packages/shared/kbn-elastic-assistant-common/.gitignore` has been updated to ignore `http-client.private.env.json` files locally, which is how you can override the config as you'd like. This is helpful to add variables like `basePath` as below:
|
||||
|
||||
```
|
||||
{
|
|
@ -16,7 +16,7 @@ plugins.elasticAssistant.registerFeatures(APP_UI_ID, {
|
|||
```
|
||||
|
||||
### Declaring Feature Capabilities
|
||||
Default feature capabilities are declared in `x-pack/packages/kbn-elastic-assistant-common/impl/capabilities/index.ts`:
|
||||
Default feature capabilities are declared in `x-pack/platform/packages/shared/kbn-elastic-assistant-common/impl/capabilities/index.ts`:
|
||||
|
||||
```ts
|
||||
export type AssistantFeatures = { [K in keyof typeof defaultAssistantFeatures]: boolean };
|
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