3572
const id = customizationId(uri);
3573
if (type === DiscoveredType.Agent) {
3574
>
const agentInfo = await parseAgentFile(file, fileService);
copilotAgent.ts
3575
>
const agentCustomization: AgentCustomization = {
3576
>
type: CustomizationType.Agent,
3577
>
id,
3578
>
uri,
3579
>
name: agentInfo.name,
3580
>
description: agentInfo.description,
3581
>
} satisfies AgentCustomization;
3582
>
if (agentInfo.userInvocable !== undefined) {
3583
agentCustomization._meta = { userInvocable: agentInfo.userInvocable };
3584
}
3586
>
}
3587
if (type === DiscoveredType.Skill) {
3588
const skillInfo = await parseSkillFile(file, fileService);