From 0e234419f401605ef904308d4c878e04fc4023df Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Fri, 6 Mar 2026 23:55:54 +0000 Subject: [PATCH] feat(recipe): add fields for generic file discovery Introduce ProjectLanguages and Extensions fields to the Recipe struct to support option 2 for generic file discovery. Also update comments for internal fields populated by the loader. --- internal/recipe/types.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/recipe/types.go b/internal/recipe/types.go index af00d9e..55b392a 100644 --- a/internal/recipe/types.go +++ b/internal/recipe/types.go @@ -6,9 +6,15 @@ type Recipe struct { Version string `yaml:"version"` Parameters map[string]Parameter `yaml:"parameters"` AllowedShellCommands []string `yaml:"allowed_shell_commands"` - Overview string `yaml:"-"` // extracted from markdown - Steps []Step `yaml:"-"` - FinalSummaryPrompt string `yaml:"-"` + + // New fields for generic file discovery (option 2) + ProjectLanguages []string `yaml:"project_languages"` + Extensions map[string][]string `yaml:"extensions"` + + // Internal fields populated by loader + Overview string `yaml:"-"` + Steps []Step `yaml:"-"` + FinalSummaryPrompt string `yaml:"-"` } type Parameter struct {