Repository navigation
Conversation
Point macOS users to a Developer ID-signed, notarized community build hosted in a contributor fork (built from upstream source). Explicitly non-official: not produced or endorsed by this repository. Official macOS policy remains unchanged.
- providers/grok.rs: auth.json (OIDC entries, key field, GROK_HOME), billing endpoint /v1/billing?format=credits with creditUsagePercent, legacy on-demand ratio fallback, period window and resets_at parsing, optional plan via /v1/settings; defensive degradation (issue egdev6#173) - config: grok SubscriptionConfig (disabled by default), sanitize, session env GROK_HOME and per-account auth.json - wiring in providers/mod.rs: fetch_all, fetch_one, session_file, session_stamp, extra accounts - deterministic tests with JSON fixtures (no network)
- Settings: pestaña grok (PROVIDER_TABS, mainState, sección OAuth con hint de auth.json y %GROK_HOME%), loginCommand por cuenta - types/accounts/widget-refresh/order: campo grok, AccountProvider, SESSION_DIR GROK_HOME, refresco del widget y enlace de uso oficial - login.rs: detección del CLI grok y login por cuenta - test de session_file para cuenta adicional de grok (issue egdev6#173)
- settings-visibility: grok faltaba en CONFIG_KEY, el toggle «Mostrar en el widget» descartaba el cambio en silencio - assets: logo de Grok (sin texto, currentColor) y fila en el catálogo de logos (issue egdev6#173)
Reemplaza el logo de 2023 (barra diagonal) por la marca vigente desde feb 2025 (dos trazos curvos), extraída de Wikimedia Commons y adaptada a currentColor (issue egdev6#173).
Owner
|
@barbatdev he revisado la PR completa y reproducido la verificación en local. En general muy buen trabajo — hay un cambio requerido antes del merge. ✅ Verificación reproducida
🔴 Bloqueante: borrado no relacionado de
|
This was referenced Oct 22, 2026
Contributor
Author
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #173
Provider
grok(Kind::Subscription) que monitorea el uso semanal de créditos de la suscripción SuperGrok reutilizando la sesión del Grok CLI oficial. Sigue el patrón decodex.rs/claude.rs(credenciales de sesión CLI, no API keys).Backend
providers/grok.rs: lee~/.grok/auth.json(entradas OIDChttps://auth.x.ai::<id>con campokey, fallback al legado, respetaGROK_HOMEycredentials_path) y consultacli-chat-proxy.grok.com/v1/billing?format=creditscon el headerx-xai-token-auth: xai-grok-cli.config.creditUsagePercent(porcentaje usado), fallback al ratio on-demand; reset desdeconfig.currentPeriod.endy luegobillingPeriodEnd; ventana desdestart/end, con semanal por defecto. Período activo sin porcentaje = uso desconocido, no 0%./v1/settings→subscription_tier_display. Errores 401/403 →NeedsLogin.config.rs:grok: SubscriptionConfig(desactivado por defecto), sanitize,GROK_HOME,auth.jsonpor cuenta adicional.providers/mod.rs(fetch_all,fetch_one,session_file,session_stamp) ylogin.rs(detección y login del CLI).Frontend
auth.jsony%GROK_HOME%.src/assets/logos/grok.svg,currentColor.settings-visibility:grokenCONFIG_KEY(sin esto, el toggle «Mostrar en el widget» descartaba el cambio en silencio).types,accounts,widget-refresh,order.Verificación
cargo test236 ok (9 nuevos, fixtures deterministas sin red) · vitest 604 ok ·tsclimpio ·vite buildok · clippy sin avisos.creditUsagePercent: 9.0, ventana semanal) y settings HTTP 200 ("SuperGrok").Notas