Add stage planning and placeholder runner

This commit is contained in:
2026-05-02 11:05:28 -05:00
parent fb659e0d3d
commit 78e7e4f41b
14 changed files with 598 additions and 68 deletions

21
internal/app/planner.go Normal file
View File

@@ -0,0 +1,21 @@
package app
import (
"fmt"
"gitea.maximumdirect.net/eric/narratio/internal/stage"
)
// BuildFullPlan returns the canonical full stage list in deterministic order.
func BuildFullPlan() []stage.Stage {
return stage.All()
}
// BuildSingleStagePlan returns a one-stage plan for an exact stage name.
func BuildSingleStagePlan(name string) ([]stage.Stage, error) {
s, err := stage.Select(name)
if err != nil {
return nil, fmt.Errorf("build stage plan: %w", err)
}
return []stage.Stage{s}, nil
}