We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9856b62 commit 2528c0eCopy full SHA for 2528c0e
1 file changed
website/src/scripts/modal.ts
@@ -1180,8 +1180,18 @@ function renderLocalPluginModal(
1180
// Add click handlers to plugin items
1181
modalContent.querySelectorAll(".collection-item").forEach((el) => {
1182
el.addEventListener("click", () => {
1183
- const path = (el as HTMLElement).dataset.path;
+ let path = (el as HTMLElement).dataset.path;
1184
const itemType = (el as HTMLElement).dataset.type;
1185
+
1186
+ switch (itemType) {
1187
+ case "agent":
1188
+ path = path.replace(".md", ".agent.md");
1189
+ break;
1190
+ case "skill":
1191
+ path = `${path}/SKILL.md`;
1192
1193
+ }
1194
1195
if (path && itemType) {
1196
openFileModal(path, itemType);
1197
}
0 commit comments