Skip to content

Commit 89c4eb1

Browse files
authored
Merge branch 'main' into fix-scout-duplicated-hml-report
2 parents 6531201 + 8b36c98 commit 89c4eb1

417 files changed

Lines changed: 11247 additions & 2382 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../AGENTS.md

.github/CODEOWNERS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,8 +2586,8 @@ x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/se
25862586
/x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/automatic_import @elastic/integration-experience
25872587
/x-pack/solutions/security/plugins/security_solution/public/configurations @elastic/security-generative-ai
25882588
/x-pack/solutions/security/plugins/security_solution_serverless/public/navigation/ai_soc @elastic/security-solution @elastic/security-threat-hunting-investigations
2589-
/x-pack/solutions/security/plugins/security_solution/public/agent_builder @elastic/security-generative-ai
2590-
/x-pack/solutions/security/plugins/security_solution/server/agent_builder @elastic/security-generative-ai
2589+
/x-pack/solutions/security/plugins/security_solution/public/agent_builder @elastic/security-threat-hunting @elastic/security-generative-ai
2590+
/x-pack/solutions/security/plugins/security_solution/server/agent_builder @elastic/security-threat-hunting @elastic/security-generative-ai
25912591

25922592
# AI4DSOC in Security Solution
25932593
/x-pack/solutions/security/test/security_solution_cypress/cypress/e2e/ai4dsoc @elastic/security-engineering-productivity
@@ -2927,6 +2927,7 @@ x-pack/platform/plugins/shared/actions/server/lib/token_tracking @elastic/securi
29272927
/x-pack/solutions/security/plugins/security_solution/public/exceptions @elastic/security-detection-engine
29282928

29292929
/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/migrations @elastic/security-detection-engine
2930+
/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/ai_rule_creation @elastic/security-detection-engine
29302931
/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_actions_legacy @elastic/security-detection-engine
29312932
/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_exceptions @elastic/security-detection-engine
29322933
/x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_preview @elastic/security-detection-engine
@@ -3241,6 +3242,7 @@ x-pack/solutions/security/test/moon.yml @elastic/kibana-operations
32413242

32423243
# Leads approval
32433244
/AGENTS.md @elastic/kibana-tech-leads
3245+
/.claude/ @elastic/kibana-tech-leads
32443246

32453247
####
32463248
## These rules are always last so they take ultimate priority over everything else

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ target
1919
/build
2020
.jruby
2121
.idea
22-
.claude
22+
.claude/*.local.json
2323
.cursor
2424
!x-pack/solutions/security/test/security_solution_cypress/.cursor/
2525
.windsurf
26-
claude.md
2726
*.iml
2827
*.log
2928
types.eslint.config.js

dev_docs/tutorials/generating_oas_for_http_apis.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,18 @@ responses:
270270
application/json:
271271
examples:
272272
# Apply a similar pattern to writing examples here
273+
x-codeSamples:
274+
- lang: cURL
275+
# label: A label which will be used as a title. Defaults to the lang value.
276+
source: |
277+
curl \
278+
-X POST /api/foo
279+
-H "kbn-xsrf: true"
280+
-d '{...}'
281+
- lang: Console
282+
source: |
283+
POST kbn:/api/agent_builder/tools
284+
{...}
273285
```
274286
275287
</details>

examples/grid_example/public/use_layout_styles.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ export const useLayoutStyles = () => {
4040
--dashboardHoverActionsActivePanelBoxShadow--singleWrapper: 0 0 0
4141
${euiTheme.border.width.thin} ${euiTheme.colors.vis.euiColorVis0};
4242
43-
--dashboardHoverActionsActivePanelBoxShadow: -${euiTheme.border.width.thin} 0 ${euiTheme.colors.vis.euiColorVis0},
44-
${euiTheme.border.width.thin} 0 ${euiTheme.colors.vis.euiColorVis0},
45-
0 -${euiTheme.border.width.thin} ${euiTheme.colors.vis.euiColorVis0};
46-
4743
.kbnGridSection--targeted {
4844
background-position: top calc((var(--kbnGridGutterSize) / 2) * -1px) left
4945
calc((var(--kbnGridGutterSize) / 2) * -1px);
@@ -85,7 +81,6 @@ export const useLayoutStyles = () => {
8581
.kbnGridPanel--active {
8682
// overwrite the border style on panels + hover actions for active panels
8783
--hoverActionsBorderStyle: var(--dashboardActivePanelBorderStyle);
88-
--hoverActionsBoxShadowStyle: var(--dashboardHoverActionsActivePanelBoxShadow);
8984
--hoverActionsSingleWrapperBoxShadowStyle: var(
9085
--dashboardHoverActionsActivePanelBoxShadow--singleWrapper
9186
);

oas_docs/bundle.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,6 +3202,16 @@
32023202
"tags": [
32033203
"agent builder"
32043204
],
3205+
"x-codeSamples": [
3206+
{
3207+
"lang": "curl",
3208+
"source": "curl \\\n -X GET \"https://${KIBANA_URL}/api/agent_builder/tools\" \\\n -H \"Authorization: ApiKey ${API_KEY}\"\n"
3209+
},
3210+
{
3211+
"lang": "Console",
3212+
"source": "GET kbn:/api/agent_builder/tools\n"
3213+
}
3214+
],
32053215
"x-state": "Added in 9.2.0"
32063216
},
32073217
"post": {
@@ -3403,6 +3413,16 @@
34033413
"tags": [
34043414
"agent builder"
34053415
],
3416+
"x-codeSamples": [
3417+
{
3418+
"lang": "curl",
3419+
"source": "curl \\\n -X POST \"https://${KIBANA_URL}/api/agent_builder/tools\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"id\": \"example-esql-tool\",\n \"type\": \"esql\",\n \"description\": \"Example ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n }'\n"
3420+
},
3421+
{
3422+
"lang": "Console",
3423+
"source": "POST kbn:/api/agent_builder/tools\n{\n \"id\": \"example-esql-tool\",\n \"type\": \"esql\",\n \"description\": \"An ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\", \"updated\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n}\n"
3424+
}
3425+
],
34063426
"x-state": "Added in 9.2.0"
34073427
}
34083428
},
@@ -3708,6 +3728,16 @@
37083728
"tags": [
37093729
"agent builder"
37103730
],
3731+
"x-codeSamples": [
3732+
{
3733+
"lang": "curl",
3734+
"source": "curl \\\n -X POST \"https://${KIBANA_URL}/api/agent_builder/tools/_execute\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"tool_id\": \"platform.core.search\",\n \"tool_params\": {\n \"query\": \"can you find john doe's email from the employee index?\"}\n }\n }'\n"
3735+
},
3736+
{
3737+
"lang": "Console",
3738+
"source": "POST kbn:/api/agent_builder/tools/_execute\n{\n \"tool_id\": \"platform.core.search\",\n \"tool_params\": {\n \"query\": \"can you find john doe's email from the employee index?\"\n }\n}\n"
3739+
}
3740+
],
37113741
"x-state": "Added in 9.2.0"
37123742
}
37133743
},
@@ -3757,6 +3787,16 @@
37573787
"tags": [
37583788
"agent builder"
37593789
],
3790+
"x-codeSamples": [
3791+
{
3792+
"lang": "curl",
3793+
"source": "curl \\\n -X DELETE \"https://${KIBANA_URL}/api/agent_builder/tools/{toolId}\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\"\n"
3794+
},
3795+
{
3796+
"lang": "Console",
3797+
"source": "DELETE kbn:/api/agent_builder/tools/{toolId}\n"
3798+
}
3799+
],
37603800
"x-state": "Added in 9.2.0"
37613801
},
37623802
"get": {
@@ -3894,6 +3934,16 @@
38943934
"tags": [
38953935
"agent builder"
38963936
],
3937+
"x-codeSamples": [
3938+
{
3939+
"lang": "curl",
3940+
"source": "curl \\\n -X GET \"https://${KIBANA_URL}/api/agent_builder/tools/{toolId}\" \\\n -H \"Authorization: ApiKey ${API_KEY}\"\n"
3941+
},
3942+
{
3943+
"lang": "Console",
3944+
"source": "GET kbn:/api/agent_builder/tools/{toolId}\n"
3945+
}
3946+
],
38973947
"x-state": "Added in 9.2.0"
38983948
},
38993949
"put": {
@@ -4095,6 +4145,16 @@
40954145
"tags": [
40964146
"agent builder"
40974147
],
4148+
"x-codeSamples": [
4149+
{
4150+
"lang": "curl",
4151+
"source": "curl \\\n -X PUT \"https://${KIBANA_URL}/api/agent_builder/tools/{toolId}\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"description\": \"Updated ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\", \"updated\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n }'\n"
4152+
},
4153+
{
4154+
"lang": "Console",
4155+
"source": "PUT kbn:/api/agent_builder/tools/{toolId}\n{\n \"description\": \"Updated ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\", \"updated\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n}\n"
4156+
}
4157+
],
40984158
"x-state": "Added in 9.2.0"
40994159
}
41004160
},

oas_docs/bundle.serverless.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,6 +3202,16 @@
32023202
"tags": [
32033203
"agent builder"
32043204
],
3205+
"x-codeSamples": [
3206+
{
3207+
"lang": "curl",
3208+
"source": "curl \\\n -X GET \"https://${KIBANA_URL}/api/agent_builder/tools\" \\\n -H \"Authorization: ApiKey ${API_KEY}\"\n"
3209+
},
3210+
{
3211+
"lang": "Console",
3212+
"source": "GET kbn:/api/agent_builder/tools\n"
3213+
}
3214+
],
32053215
"x-state": ""
32063216
},
32073217
"post": {
@@ -3403,6 +3413,16 @@
34033413
"tags": [
34043414
"agent builder"
34053415
],
3416+
"x-codeSamples": [
3417+
{
3418+
"lang": "curl",
3419+
"source": "curl \\\n -X POST \"https://${KIBANA_URL}/api/agent_builder/tools\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"id\": \"example-esql-tool\",\n \"type\": \"esql\",\n \"description\": \"Example ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n }'\n"
3420+
},
3421+
{
3422+
"lang": "Console",
3423+
"source": "POST kbn:/api/agent_builder/tools\n{\n \"id\": \"example-esql-tool\",\n \"type\": \"esql\",\n \"description\": \"An ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\", \"updated\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n}\n"
3424+
}
3425+
],
34063426
"x-state": ""
34073427
}
34083428
},
@@ -3708,6 +3728,16 @@
37083728
"tags": [
37093729
"agent builder"
37103730
],
3731+
"x-codeSamples": [
3732+
{
3733+
"lang": "curl",
3734+
"source": "curl \\\n -X POST \"https://${KIBANA_URL}/api/agent_builder/tools/_execute\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"tool_id\": \"platform.core.search\",\n \"tool_params\": {\n \"query\": \"can you find john doe's email from the employee index?\"}\n }\n }'\n"
3735+
},
3736+
{
3737+
"lang": "Console",
3738+
"source": "POST kbn:/api/agent_builder/tools/_execute\n{\n \"tool_id\": \"platform.core.search\",\n \"tool_params\": {\n \"query\": \"can you find john doe's email from the employee index?\"\n }\n}\n"
3739+
}
3740+
],
37113741
"x-state": ""
37123742
}
37133743
},
@@ -3757,6 +3787,16 @@
37573787
"tags": [
37583788
"agent builder"
37593789
],
3790+
"x-codeSamples": [
3791+
{
3792+
"lang": "curl",
3793+
"source": "curl \\\n -X DELETE \"https://${KIBANA_URL}/api/agent_builder/tools/{toolId}\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\"\n"
3794+
},
3795+
{
3796+
"lang": "Console",
3797+
"source": "DELETE kbn:/api/agent_builder/tools/{toolId}\n"
3798+
}
3799+
],
37603800
"x-state": ""
37613801
},
37623802
"get": {
@@ -3894,6 +3934,16 @@
38943934
"tags": [
38953935
"agent builder"
38963936
],
3937+
"x-codeSamples": [
3938+
{
3939+
"lang": "curl",
3940+
"source": "curl \\\n -X GET \"https://${KIBANA_URL}/api/agent_builder/tools/{toolId}\" \\\n -H \"Authorization: ApiKey ${API_KEY}\"\n"
3941+
},
3942+
{
3943+
"lang": "Console",
3944+
"source": "GET kbn:/api/agent_builder/tools/{toolId}\n"
3945+
}
3946+
],
38973947
"x-state": ""
38983948
},
38993949
"put": {
@@ -4095,6 +4145,16 @@
40954145
"tags": [
40964146
"agent builder"
40974147
],
4148+
"x-codeSamples": [
4149+
{
4150+
"lang": "curl",
4151+
"source": "curl \\\n -X PUT \"https://${KIBANA_URL}/api/agent_builder/tools/{toolId}\" \\\n -H \"Authorization: ApiKey ${API_KEY}\" \\\n -H \"kbn-xsrf: true\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"description\": \"Updated ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\", \"updated\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n }'\n"
4152+
},
4153+
{
4154+
"lang": "Console",
4155+
"source": "PUT kbn:/api/agent_builder/tools/{toolId}\n{\n \"description\": \"Updated ES|QL query tool for analyzing financial trades with time filtering\",\n \"tags\": [\"analytics\", \"finance\", \"updated\"],\n \"configuration\": {\n \"query\": \"FROM financial_trades | WHERE execution_timestamp >= ?startTime | STATS trade_count=COUNT(*), avg_price=AVG(execution_price) BY symbol | SORT trade_count DESC | LIMIT ?limit\",\n \"params\": {\n \"startTime\": {\n \"type\": \"date\",\n \"description\": \"Start time for the analysis in ISO format\"\n },\n \"limit\": {\n \"type\": \"integer\",\n \"description\": \"Maximum number of results to return\"\n }\n }\n }\n}\n"
4156+
}
4157+
],
40984158
"x-state": ""
40994159
}
41004160
},

0 commit comments

Comments
 (0)