mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-22 19:35:13 +00:00
Chat Modes -> Agents (#433)
* Migrating chat modes to agents now that's been released to stable * Fixing collections * Fixing names of agents * Formatting * name too long * Escaping C# agent name
This commit is contained in:
@@ -177,10 +177,10 @@ function validateCollectionItems(items) {
|
||||
if (!item.kind || typeof item.kind !== "string") {
|
||||
return `Item ${i + 1} must have a kind string`;
|
||||
}
|
||||
if (!["prompt", "instruction", "chat-mode", "agent"].includes(item.kind)) {
|
||||
if (!["prompt", "instruction", "agent"].includes(item.kind)) {
|
||||
return `Item ${
|
||||
i + 1
|
||||
} kind must be one of: prompt, instruction, chat-mode, agent`;
|
||||
} kind must be one of: prompt, instruction, agent`;
|
||||
}
|
||||
|
||||
// Validate file path exists
|
||||
@@ -203,11 +203,6 @@ function validateCollectionItems(items) {
|
||||
i + 1
|
||||
} kind is "instruction" but path doesn't end with .instructions.md`;
|
||||
}
|
||||
if (item.kind === "chat-mode" && !item.path.endsWith(".chatmode.md")) {
|
||||
return `Item ${
|
||||
i + 1
|
||||
} kind is "chat-mode" but path doesn't end with .chatmode.md`;
|
||||
}
|
||||
if (item.kind === "agent" && !item.path.endsWith(".agent.md")) {
|
||||
return `Item ${
|
||||
i + 1
|
||||
|
||||
Reference in New Issue
Block a user