Review of "GenAI Usage" version 1

Details Page Preview

Shows ChatGPT and Cursor usage in the top bar. Provider icons are downloaded over HTTPS when that setting is on. ChatGPT quotas come from the local Codex app-server. Cursor quota details use an optional, off-by-default unofficial source.

Extension Homepage
https://github.com/bgpat/gnome-shell-extension-genai-usage

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) error 2 warning 3 manual_review 1

Shexli found 6 issues that may need reviewer attention.

EGO-X-004 warning

extensions should avoid synchronous file IO in shell code

Shell code should avoid synchronous file IO APIs like `GLib.file_get_contents()` and `Gio.File.load_contents()`.

File Operations

  • gjs/iconCache.js:231
    file.load_contents(null)
  • gjs/iconCache.js:260
    file.load_contents(null)
  • gjs/providerIcon.js:19
    file.load_contents(null)

EGO-A-001 manual_review

extension code must not be minified or obfuscated

File appears obfuscated: 60% of identifiers are 1–2 characters (avg length 3.7).

Code must not be obfuscated

  • lib/roundedRect.js
    short identifier ratio: 60%, identifiers scored: 40

EGO-P-006 warning

unnecessary build and translation artifacts should not be shipped

Compiled GSettings schemas should not be shipped for 45+ packages.

Don't include unnecessary files

  • schemas/gschemas.compiled
    schemas/gschemas.compiled

EGO-P-002 error

GSettings schema path must use /org/gnome/shell/extensions base

GSettings schema path must start with `/org/gnome/shell/extensions`.

GSettings Schemas

  • schemas/org.gnome.shell.extensions.genai-usage.gschema.xml
    id='org.gnome.shell.extensions.genai-usage.provider' path=''

EGO-P-004 error

GSettings schema XML filename must match schema id

GSettings schema filename must match `<schema-id>.gschema.xml`.

GSettings Schemas

  • schemas/org.gnome.shell.extensions.genai-usage.gschema.xml
    id='org.gnome.shell.extensions.genai-usage.provider' path=''

EGO-P-007 warning

JavaScript files should be reachable from extension.js or prefs.js

Some JavaScript files are not reachable from `extension.js` or `prefs.js` imports.

Don't include unnecessary files

  • gjs/agentDebugLog.js
  • prefs/pageIcons.js

All Versions

Version Status
2 Unreviewed
1 Unreviewed