CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-electron-debug

Adds useful debug features to your Electron app

86

1.19x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This evaluation assesses how effectively the engineer uses the electron-localshortcut package to implement window-specific keyboard shortcuts. The focus is on proper usage of electron-localshortcut's API for registering and unregistering shortcuts per window, ensuring correct window-specific behavior.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports electron-localshortcut",
      "description": "Imports or requires the electron-localshortcut package (e.g., const localShortcut = require('electron-localshortcut'))",
      "max_score": 10
    },
    {
      "name": "Uses register function",
      "description": "Uses the electron-localshortcut.register() function to register keyboard shortcuts for specific windows with the signature register(window, accelerator, callback)",
      "max_score": 30
    },
    {
      "name": "Uses unregister function",
      "description": "Uses the electron-localshortcut.unregister() function to remove specific shortcuts from a window with the signature unregister(window, accelerator)",
      "max_score": 25
    },
    {
      "name": "Uses unregisterAll function",
      "description": "Uses the electron-localshortcut.unregisterAll() function to clean up all shortcuts for a window with the signature unregisterAll(window)",
      "max_score": 25
    },
    {
      "name": "Per-window registration",
      "description": "Correctly passes the BrowserWindow instance as the first parameter to all electron-localshortcut functions, ensuring shortcuts are window-specific rather than global",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-electron-debug

tile.json