package tui import ( "regexp" "github.com/muyue/muyue/internal/workflow" ) var versionRegex = regexp.MustCompile(`\d+\.\d+\.\d+`) func extractVersion(s string) string { return versionRegex.FindString(s) } type previewFile = workflow.PreviewFile func parsePreviewFiles(response string) []previewFile { return workflow.ParsePreviewFiles(response) }