Review of "AI Usage Meter" version 1.1 (2)

Details Page Preview

Shows Claude, Codex and Antigravity usage limits in the top bar, using the codexbar CLI.

Extension Homepage
https://github.com/poriol/gnome-shell-extension-ai-usage-meter

No comments.

Diff Against

Files

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

Shexli (experimental) warning 2 manual_review 1

Shexli found 3 issues that may need reviewer attention.

EGO-A-005 manual_review

extensions should not access the clipboard directly

Direct clipboard access via `St.Clipboard.get_default()` requires reviewer scrutiny.

Review Guidelines

  • extension.js:475
    St.Clipboard.get_default()

EGO-L-002 warning

objects created by extension should be destroyed in disable()

Objects assigned in `enable()` are missing matching `.destroy()` calls in `disable()` or its helper methods.

Destroy all objects

  • extension.js:180
            this._bar = new UsageBar({
                style_class: 'aiu-bar aiu-bar-panel',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:184
            this._label = new St.Label({
                style_class: 'aiu-label',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:197
            this._locked = new St.Icon({
                gicon: Gio.FileIcon.new(dir.get_child('icons').get_child('locked-symbolic.svg')),
                style_class: 'aiu-locked',
                style: `color: ${DANGER_COLOR};`,
                y_align: Clutter.ActorAlign.CENTER,
                visible: false,
            
  • extension.js:206
    this._spend = new St.BoxLayout({style_class: 'aiu-spend-box', visible: false})
  • extension.js:208
            this._spendLabel = new St.Label({
                style_class: 'aiu-label',
                style: `color: ${SPEND_COLOR};`,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:190
            this._unknown = new St.Icon({
                gicon: Gio.FileIcon.new(dir.get_child('icons').get_child('closed-symbolic.svg')),
                style_class: 'aiu-unknown',
                y_align: Clutter.ActorAlign.CENTER,
                visible: false,
            })

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:180
            this._bar = new UsageBar({
                style_class: 'aiu-bar aiu-bar-panel',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:184
            this._label = new St.Label({
                style_class: 'aiu-label',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • extension.js:206
    this._spend = new St.BoxLayout({style_class: 'aiu-spend-box', visible: false})
  • extension.js:190
            this._unknown = new St.Icon({
                gicon: Gio.FileIcon.new(dir.get_child('icons').get_child('closed-symbolic.svg')),
                style_class: 'aiu-unknown',
                y_align: Clutter.ActorAlign.CENTER,
                visible: false,
            })
  • extension.js:179
    this.actor = new St.BoxLayout({style_class: 'aiu-provider'})

All Versions

Version Status
1.1.2 (4) Unreviewed
1.1.1 (3) Rejected
1.1 (2) Rejected
1 (1) Unreviewed

Previous Reviews on this Version

poriol auto- rejected
Auto-rejected because of new version 1.1.1 (3) was uploaded