2026-03-06 18:35:58 +00:00
|
|
|
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"`
|
2026-03-06 23:55:54 +00:00
|
|
|
|
2026-03-07 00:07:21 +00:00
|
|
|
// Generic discovery support (option 2)
|
2026-03-06 23:55:54 +00:00
|
|
|
ProjectLanguages []string `yaml:"project_languages"`
|
|
|
|
|
Extensions map[string][]string `yaml:"extensions"`
|
|
|
|
|
|
2026-03-07 00:07:21 +00:00
|
|
|
// Resolved runtime values from --param flags
|
|
|
|
|
ResolvedParams map[string]any `yaml:"-"`
|
|
|
|
|
|
2026-03-06 23:55:54 +00:00
|
|
|
// Internal fields populated by loader
|
|
|
|
|
Overview string `yaml:"-"`
|
|
|
|
|
Steps []Step `yaml:"-"`
|
|
|
|
|
FinalSummaryPrompt string `yaml:"-"`
|
2026-03-06 18:35:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|