Replace niche templates with simple starters and direct template submission

This commit is contained in:
2026-10-10 02:37:31 +01:00
parent 4cae37f950
commit 7b10e3889e
38 changed files with 389 additions and 1195 deletions
+8 -1
View File
@@ -23,10 +23,11 @@ func TestReadmeThreeStageExampleIsValid(t *testing.T) {
func TestCatalogContainsValidUnpublishedTemplates(t *testing.T) {
items := examples.Catalog()
if len(items) != 11 {
if len(items) != 5 {
t.Fatal("unexpected catalog size", len(items))
}
seen := map[string]bool{}
wantStages := map[string]int{"task": 1, "summary": 1, "review": 1, "research": 2, "three-stage": 3}
for _, item := range items {
if seen[item.Key] || item.Description == "" || item.Name == "" {
t.Fatal("invalid template metadata", item.Key)
@@ -39,5 +40,11 @@ func TestCatalogContainsValidUnpublishedTemplates(t *testing.T) {
if (graph.Settings != nil) != item.Scheduled {
t.Fatal("missing schedule warning", item.Key)
}
if graph.Settings != nil || len(graph.Stages) > 3 {
t.Fatal("starters must be simple and manual-only", item.Key)
}
if len(graph.Stages) != wantStages[item.Key] {
t.Fatal("unexpected/non-generic catalog entry", item.Key)
}
}
}