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:
Aaron Powell
2025-11-25 16:24:55 +11:00
committed by GitHub
parent 7b7f9d519c
commit 86adaa48fe
163 changed files with 1475 additions and 1013 deletions

View File

@@ -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