Run workflow stages with finish_stage handoffs and lead signals
This commit is contained in:
@@ -62,13 +62,8 @@ func Validate(def api.WorkflowDefinition) error {
|
||||
}
|
||||
seen[s.Name] = true
|
||||
|
||||
switch {
|
||||
case !s.Vendor.Valid():
|
||||
problems = append(problems, fmt.Sprintf("%s: vendor must be claude or codex, not %q", where, s.Vendor))
|
||||
case strings.TrimSpace(s.Model) == "":
|
||||
if strings.TrimSpace(s.Model) == "" {
|
||||
problems = append(problems, fmt.Sprintf("%s: model is required", where))
|
||||
case string(VendorOf(s.Model)) != string(s.Vendor):
|
||||
problems = append(problems, fmt.Sprintf("%s: %s is a %s model, not %s", where, s.Model, VendorOf(s.Model), s.Vendor))
|
||||
}
|
||||
|
||||
if strings.TrimSpace(s.Prompt) == "" {
|
||||
|
||||
Reference in New Issue
Block a user