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.
33 lines
953 B
Go
33 lines
953 B
Go
package recipe
|
|
|
|
type Recipe struct {
|
|
Name string `yaml:"name"`
|
|
Description string `yaml:"description"`
|
|
Version string `yaml:"version"`
|
|
Parameters map[string]Parameter `yaml:"parameters"`
|
|
AllowedShellCommands []string `yaml:"allowed_shell_commands"`
|
|
|
|
// 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 {
|
|
Type string `yaml:"type"`
|
|
Default any `yaml:"default"`
|
|
Description string `yaml:"description"`
|
|
}
|
|
|
|
type Step struct {
|
|
Number int
|
|
Title string
|
|
Objective string
|
|
Instructions string
|
|
Expected string
|
|
}
|