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.
This commit is contained in:
Greg Gauthier 2026-03-06 23:55:54 +00:00
parent 7ffbf352bc
commit 0e234419f4

View File

@ -6,9 +6,15 @@ type Recipe struct {
Version string `yaml:"version"` Version string `yaml:"version"`
Parameters map[string]Parameter `yaml:"parameters"` Parameters map[string]Parameter `yaml:"parameters"`
AllowedShellCommands []string `yaml:"allowed_shell_commands"` AllowedShellCommands []string `yaml:"allowed_shell_commands"`
Overview string `yaml:"-"` // extracted from markdown
Steps []Step `yaml:"-"` // New fields for generic file discovery (option 2)
FinalSummaryPrompt string `yaml:"-"` 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 { type Parameter struct {