chore: remove dead code (packages, functions, types, constants)
All checks were successful
Beta Release / beta (push) Successful in 34s

Remove 5 unused packages (daemon, preview, proxy, workflow) and dead
symbols across 7 files: orchestrator workflow engine, skills Target type
and Update(), LSP config generation, installer SetupPrompt(), unexported
desktop options, and version License/Prerelease. Total: -1453 lines.
This commit is contained in:
Augustin
2026-04-21 22:09:42 +02:00
parent f7222b0f6c
commit fc7981037f
13 changed files with 10 additions and 1453 deletions

View File

@@ -4,15 +4,8 @@ const (
Name = "muyue"
Version = "0.2.1"
Author = "La Légion de Muyue"
License = "MIT"
)
var Prerelease string
func FullVersion() string {
v := Name + " v" + Version
if Prerelease != "" {
v += "-" + Prerelease
}
return v
return Name + " v" + Version
}

View File

@@ -15,28 +15,6 @@ func TestFullVersion(t *testing.T) {
}
}
func TestFullVersionWithPrerelease(t *testing.T) {
original := Prerelease
Prerelease = "beta.1"
defer func() { Prerelease = original }()
v := FullVersion()
if !strings.Contains(v, "beta.1") {
t.Errorf("FullVersion should contain prerelease suffix, got %s", v)
}
}
func TestFullVersionWithoutPrerelease(t *testing.T) {
original := Prerelease
Prerelease = ""
defer func() { Prerelease = original }()
v := FullVersion()
if strings.Contains(v, "-") {
t.Errorf("FullVersion should not contain prerelease suffix, got %s", v)
}
}
func TestConstants(t *testing.T) {
if Name == "" {
t.Error("Name should not be empty")
@@ -47,7 +25,4 @@ func TestConstants(t *testing.T) {
if Author == "" {
t.Error("Author should not be empty")
}
if License == "" {
t.Error("License should not be empty")
}
}