on main help sign in
feat: launch hyper beta (#2768)

No need to set `HYPERCRUSH=1` anymore.

commita14feb3ef119b171647f96c8443ab52b5fe3f5e3 authorAndrey Nering <andreynering@users.noreply.github.com> dateThu 30 Apr 2026, 18:53 (6 months ago) parent6ce4fbc
3 files changed+1−22
internal/agent/hyper/provider.go−14 internal/cmd/login.go−4 internal/config/provider.go+1−4
internal/agent/hyper/provider.go−14
@@ -10,7 +10,6 @@ import (
1010 "log/slog"
1111 "net/http"
1212 "os"
13− "strconv"
1413 "sync"
1514 "time"
1615
@@ -22,19 +21,6 @@ import (
2221//go:embed provider.json
2322var embedded []byte
2423
25−// Enabled returns true if hyper is enabled.
26−var Enabled = sync.OnceValue(func() bool {
27− b, _ := strconv.ParseBool(
28− cmp.Or(
29− os.Getenv("HYPER"),
30− os.Getenv("HYPERCRUSH"),
31− os.Getenv("HYPER_ENABLE"),
32− os.Getenv("HYPER_ENABLED"),
33− ),
34− )
35− return b
36−})
37−
3824// Embedded returns the embedded Hyper provider.
3925var Embedded = sync.OnceValue(func() catwalk.Provider {
4026 var provider catwalk.Provider
internal/cmd/login.go−4
@@ -9,7 +9,6 @@ import (
99
1010 "charm.land/lipgloss/v2"
1111 "github.com/atotto/clipboard"
12− hyperp "github.com/charmbracelet/crush/internal/agent/hyper"
1312 "github.com/charmbracelet/crush/internal/client"
1413 "github.com/charmbracelet/crush/internal/config"
1514 "github.com/charmbracelet/crush/internal/oauth"
@@ -70,9 +69,6 @@ crush login copilot
7069}
7170
7271func loginHyper(c *client.Client, wsID string) error {
73− if !hyperp.Enabled() {
74− return fmt.Errorf("hyper not enabled")
75− }
7672 ctx := getLoginContext()
7773
7874 resp, err := hyper.InitiateDeviceAuth(ctx)
internal/config/provider.go+1−4
@@ -91,9 +91,6 @@ func UpdateProviders(pathOrURL string) error {
9191
9292// UpdateHyper updates the Hyper provider information from a specified URL.
9393func UpdateHyper(pathOrURL string) error {
94− if !hyper.Enabled() {
95− return fmt.Errorf("hyper not enabled")
96− }
9794 var provider catwalk.Provider
9895 pathOrURL = cmp.Or(pathOrURL, hyper.BaseURL())
9996
@@ -169,7 +166,7 @@ func Providers(cfg *Config) ([]catwalk.Provider, error) {
169166 })
170167
171168 wg.Go(func() {
172− if customProvidersOnly || !hyper.Enabled() {
169+ if customProvidersOnly {
173170 return
174171 }
175172 path := cachePathFor("hyper")