feat: improve onboarding dialog (#230)

This commit is contained in:
Carlos Florêncio
2026-02-16 16:26:26 +00:00
committed by GitHub
parent 0933f4375f
commit 35f8d02a4d
16 changed files with 548 additions and 72 deletions
@@ -3,6 +3,7 @@ package registry
import (
"fmt"
"slices"
"sync"
"time"
@@ -99,6 +100,9 @@ func (r *Registry) List() []agents.Agent {
for _, ag := range r.agents {
result = append(result, ag)
}
slices.SortStableFunc(result, func(a, b agents.Agent) int {
return a.DisplayOrder() - b.DisplayOrder()
})
return result
}
@@ -113,6 +117,9 @@ func (r *Registry) ListEnabled() []agents.Agent {
result = append(result, ag)
}
}
slices.SortStableFunc(result, func(a, b agents.Agent) int {
return a.DisplayOrder() - b.DisplayOrder()
})
return result
}