Add agentic workflows page to website

Add a new /workflows/ page for browsing agentic workflow definitions
with search, trigger/tag filters, and sorting. Follows the same
patterns as the existing hooks page.

New files:
- website/src/pages/workflows.astro
- website/src/scripts/pages/workflows.ts

Updated files:
- BaseLayout.astro: add Workflows nav link
- index.astro: add Workflows card to homepage
- pages/index.ts: add workflows to counts
- utils.ts: add workflow type to icons, labels, and getResourceType

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Aaron Powell
2026-02-25 16:03:02 +11:00
parent a038e281db
commit f5ac976836
6 changed files with 307 additions and 1 deletions

View File

@@ -228,6 +228,8 @@ export function getResourceType(filePath: string): string {
return "skill";
if (/(^|\/)hooks\//.test(filePath) && filePath.endsWith("README.md"))
return "hook";
if (/(^|\/)workflows\//.test(filePath) && filePath.endsWith(".md"))
return "workflow";
// Check for plugin directories (e.g., plugins/<id>, plugins/<id>/)
if (/(^|\/)plugins\/[^/]+\/?$/.test(filePath)) return "plugin";
// Check for plugin.json files (e.g., plugins/<id>/.github/plugin/plugin.json)
@@ -244,6 +246,7 @@ export function formatResourceType(type: string): string {
instruction: "📋 Instruction",
skill: "⚡ Skill",
hook: "🪝 Hook",
workflow: "⚡ Workflow",
plugin: "🔌 Plugin",
};
return labels[type] || type;
@@ -258,6 +261,7 @@ export function getResourceIcon(type: string): string {
instruction: "📋",
skill: "⚡",
hook: "🪝",
workflow: "⚡",
plugin: "🔌",
};
return icons[type] || "📄";