x-pack/platform/packages/shared/kbn-elastic-assistant-common/README.md
This package provides common code consumed in both the browser, i.e. the
platform/packages/shared/kbn-elastic-assistant package and solutions/security/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.
Maintained by the Security Solution team
To (interactively) run unit tests with code coverage, run the following command:
cd $KIBANA_HOME && node scripts/jest --watch x-pack/platform/packages/shared/kbn-elastic-assistant-common --coverage
Implemented using the new OpenAPI codegen and bundle packages:
To run codegen/bundling locally, cd to x-pack/platform/packages/shared/kbn-elastic-assistant-common/ and run any of the following commands:
yarn openapi:generate
yarn openapi:generate:debug
yarn openapi:bundle
Codegen is configured to run on CI by means of the .buildkite/scripts/steps/code_generation/elastic_assistant_codegen.sh script, which is run as part of the checks pipeline, and is registered in .buildkite/scripts/steps/checks.sh.