Skip to content

Commit 4a2c2c2

Browse files
committed
fix types
1 parent e2db8fb commit 4a2c2c2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • x-pack
    • platform/plugins/shared/agent_builder/server/services/runner/store/volumes/skills
    • solutions/security/plugins/security_solution/server/agent_builder/skills

x-pack/platform/plugins/shared/agent_builder/server/services/runner/store/volumes/skills/utils.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('skills utils', () => {
5858
const referencedContent = {
5959
name: 'example-content',
6060
relativePath: '.',
61-
body: 'Content body',
61+
content: 'Content body',
6262
};
6363
const path = getSkillReferencedContentEntryPath({ skill, referencedContent });
6464
expect(path).toBe('skills/platform/test-skill/./example-content.md');
@@ -69,7 +69,7 @@ describe('skills utils', () => {
6969
const referencedContent = {
7070
name: 'query-example',
7171
relativePath: './queries',
72-
body: 'Query content',
72+
content: 'Query content',
7373
};
7474
const path = getSkillReferencedContentEntryPath({ skill, referencedContent });
7575
expect(path).toBe('skills/platform/test-skill/./queries/query-example.md');
@@ -83,7 +83,7 @@ describe('skills utils', () => {
8383
const referencedContent = {
8484
name: 'alert-config',
8585
relativePath: './configs',
86-
body: 'Config content',
86+
content: 'Config content',
8787
};
8888
const path = getSkillReferencedContentEntryPath({ skill, referencedContent });
8989
expect(path).toBe('skills/observability/alert-skill/./configs/alert-config.md');

x-pack/solutions/security/plugins/security_solution/server/agent_builder/skills/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
* 2.0.
66
*/
77

8-
export { alertAnalysisSkill } from './alert_analysis_skill';
8+
export { alertAnalysisSampleSkill as alertAnalysisSkill } from './alert_analysis_skill';
99
export { registerSkills } from './register_skills';

0 commit comments

Comments
 (0)