feat(*): 画布创作体验 - 完善 Agent 引导、生成防重、搜索快捷键、素材多选与分辨率兼容
This commit is contained in:
1 parent
913cf4b304
commit
ab89c05362
52 files changed
+2344
-500
No files matched your search
@@ -555,13 +555,15 @@ func applyManifestTransform(value any, transform string) any {
|
||||
case "upper", "uppercase":
|
||||
return strings.ToUpper(text)
|
||||
case "video-resolution", "video_resolution", "videoresolution":
|
||||
return normalizeManifestVideoResolution(text)
|
||||
// Compatibility for already-installed 1.0.1 manifests. New plugins
|
||||
// should declare exact enum values and use generic string transforms.
|
||||
return normalizeLegacyManifestVideoResolution(text)
|
||||
default:
|
||||
return value
|
||||
}
|
||||
}
|
||||
|
||||
func normalizeManifestVideoResolution(value string) string {
|
||||
func normalizeLegacyManifestVideoResolution(value string) string {
|
||||
normalized := strings.ToLower(strings.TrimSpace(value))
|
||||
if normalized == "" {
|
||||
return ""
|
||||
|
||||
Reference in new issue
Block a user