feat: polish workspace transfers and verify Craft server file workflows

This commit is contained in:
SantaSpeen committed 2026-10-24 02:01:28 +03:00
1 parent 7fd7ae6733
commit c209f1effc
49 files changed
+1459 -670

No files matched your search

+12
View File
@@ -41,3 +41,15 @@ func containsExtension(list []string, extension string) bool {
}
return false
}
// Known web builds that could not complete server file round trips.
// Keep installation available so users can update them when upstream fixes land.
func CompatibilityIssue(id, build string) string {
if id == "soundcraft" && build == "v0.11.0-ca335c74d511" {
return "demoOnly"
}
if (id == "figcraft" && build == "v0.9.0-ab8d50277339") || (id == "lightcraft" && build == "v0.11.0-7cc682e1d543") {
return "serverSave"
}
return ""
}
+15
View File
@@ -0,0 +1,15 @@
package addons
import "testing"
func TestKnownDemoBuildIsIncompatible(t *testing.T) {
if CompatibilityIssue("soundcraft", "v0.11.0-ca335c74d511") != "demoOnly" {
t.Fatal("demo must not be offered as a server editor")
}
if CompatibilityIssue("wordcraft", "v0.11.0-ca335c74d511") != "" {
t.Fatal("unrelated editor blocked")
}
if CompatibilityIssue("soundcraft", "test-123") != "" {
t.Fatal("unrelated build blocked")
}
}