mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 02:54:31 -07:00
Agent Skills: Unify Representation & Centralize Loading (#15833)
This commit is contained in:
@@ -58,8 +58,20 @@ describe('skillsCommand', () => {
|
||||
expect.objectContaining({
|
||||
type: MessageType.SKILLS_LIST,
|
||||
skills: [
|
||||
{ name: 'skill1', description: 'desc1' },
|
||||
{ name: 'skill2', description: 'desc2' },
|
||||
{
|
||||
name: 'skill1',
|
||||
description: 'desc1',
|
||||
disabled: undefined,
|
||||
location: '/loc1',
|
||||
body: 'body1',
|
||||
},
|
||||
{
|
||||
name: 'skill2',
|
||||
description: 'desc2',
|
||||
disabled: undefined,
|
||||
location: '/loc2',
|
||||
body: 'body2',
|
||||
},
|
||||
],
|
||||
showDescriptions: true,
|
||||
}),
|
||||
@@ -75,8 +87,20 @@ describe('skillsCommand', () => {
|
||||
expect.objectContaining({
|
||||
type: MessageType.SKILLS_LIST,
|
||||
skills: [
|
||||
{ name: 'skill1', description: 'desc1' },
|
||||
{ name: 'skill2', description: 'desc2' },
|
||||
{
|
||||
name: 'skill1',
|
||||
description: 'desc1',
|
||||
disabled: undefined,
|
||||
location: '/loc1',
|
||||
body: 'body1',
|
||||
},
|
||||
{
|
||||
name: 'skill2',
|
||||
description: 'desc2',
|
||||
disabled: undefined,
|
||||
location: '/loc2',
|
||||
body: 'body2',
|
||||
},
|
||||
],
|
||||
showDescriptions: true,
|
||||
}),
|
||||
|
||||
@@ -45,6 +45,8 @@ async function listAction(
|
||||
name: skill.name,
|
||||
description: skill.description,
|
||||
disabled: skill.disabled,
|
||||
location: skill.location,
|
||||
body: skill.body,
|
||||
})),
|
||||
showDescriptions: useShowDescriptions,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user