Review of "Cursor Usage" version 1

Details Page Preview

Show Cursor AI usage in the GNOME top panel. Reads a local Cursor session token from disk (CLI auth.json, or an optional CURSOR_SESSION_TOKEN override) and fetches live usage from cursor.com. Does not spawn the Cursor CLI. Not affiliated with, funded by, or associated with Cursor or Anysphere.

Extension Homepage
https://github.com/669px/Cursor-Usage-Extension

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) warning 2

Shexli found 2 issues that may need reviewer attention.

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:129
    this._caption = new St.Label({text: '', style_class: 'cu-caption'})
  • extension.js:127
    this._fill = new St.Widget({style_class: 'cu-fill usage-low'})
  • extension.js:122
    this._name = new St.Label({text: name, style_class: 'cu-meter-name', x_expand: true})
  • extension.js:123
    this._pct = new St.Label({text: '...', style_class: 'cu-meter-pct'})
  • extension.js:126
    this._track = new St.BoxLayout({style_class: 'cu-track'})
  • extension.js:120
    this.root = new St.BoxLayout({vertical: true, style_class: 'cu-meter'})

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:129
    this._caption = new St.Label({text: '', style_class: 'cu-caption'})
  • extension.js:127
    this._fill = new St.Widget({style_class: 'cu-fill usage-low'})
  • extension.js:122
    this._name = new St.Label({text: name, style_class: 'cu-meter-name', x_expand: true})
  • extension.js:123
    this._pct = new St.Label({text: '...', style_class: 'cu-meter-pct'})
  • extension.js:126
    this._track = new St.BoxLayout({style_class: 'cu-track'})
  • extension.js:120
    this.root = new St.BoxLayout({vertical: true, style_class: 'cu-meter'})

All Versions

Version Status
1 Unreviewed

Previous Reviews on this Version

Haider posted a review