Adding hooks to the website

This commit is contained in:
Aaron Powell
2026-02-09 17:02:33 +11:00
parent acb5ad4ce8
commit 99a48a4020
7 changed files with 421 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ interface Manifest {
prompts: number;
instructions: number;
skills: number;
hooks: number;
collections: number;
tools: number;
};
@@ -35,7 +36,7 @@ export async function initHomepage(): Promise<void> {
const manifest = await fetchData<Manifest>('manifest.json');
if (manifest && manifest.counts) {
// Populate counts in cards
const countKeys = ['agents', 'prompts', 'instructions', 'skills', 'collections', 'tools'] as const;
const countKeys = ['agents', 'prompts', 'instructions', 'skills', 'hooks', 'collections', 'tools'] as const;
countKeys.forEach(key => {
const countEl = document.querySelector(`.card-count[data-count="${key}"]`);
if (countEl && manifest.counts[key] !== undefined) {