diff --git a/src/lib/appEvent.ts b/src/lib/appEvent.ts index dee5cc27..6c5079d4 100644 --- a/src/lib/appEvent.ts +++ b/src/lib/appEvent.ts @@ -1,4 +1,5 @@ import git from 'isomorphic-git'; +import { DotAI } from './DotAI'; import { NostrURI } from './NostrURI'; import type { JSRuntimeFS } from './JSRuntime'; @@ -66,6 +67,20 @@ export async function buildAppEvent( } } + // Add t-tags for categorization (shakespeare + template name) + if (opts?.fs && opts.cwd) { + tags.push(['t', 'shakespeare']); + try { + const dotAI = new DotAI(opts.fs, opts.cwd); + const template = await dotAI.readTemplate(); + if (template) { + tags.push(['t', template.name.toLowerCase()]); + } + } catch { + // Template not found, skip + } + } + // If origin remote is a nostr:// URI owned by the given pubkey, add an "a" tag for the repo if (opts?.fs && opts.cwd && opts.pubkey) { try {