368
let hasContent = false;
369
for (const instruction of instructionFiles) {
371
continue;
372
}
374
>
entries.push(`<file>${filePath(instruction.uri)}</file>`);
375
>
if (instruction.description) {
376
>
entries.push(`<description>${instruction.description}</description>`);
377
>
}
378
>
if (instruction.pattern) {
379
>
entries.push(`<applyTo>${instruction.pattern}</applyTo>`);
380
>
}
381
>
entries.push('</instruction>');
382
>
hasContent = true;
383
>
}
384
385
const agentsMdFiles = await agentsMdPromise;