CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-external-editor

Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT

79

1.05x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "Evaluates whether the solution uses the external-editor package to launch an editor session, capture the process exit status, and expose that status alongside the edited text per the spec.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses ExternalEditor",
      "description": "Relies on external-editor's `ExternalEditor` class (via constructor) to manage the edit session instead of manually spawning an editor.",
      "max_score": 30
    },
    {
      "name": "Run API",
      "description": "Invokes `run()` or `runAsync()` on the `ExternalEditor` instance to open the editor and read back file contents, rather than duplicating that workflow.",
      "max_score": 25
    },
    {
      "name": "Exit status capture",
      "description": "Reads `lastExitStatus` (or deprecated `last_exit_status`) after the run and surfaces that numeric code exactly as the task requires, including non-zero codes.",
      "max_score": 20
    },
    {
      "name": "Custom command",
      "description": "Supports custom editor commands by setting `editor.bin` and/or `editor.args` on the `ExternalEditor` instance (or constructor options) instead of ignoring the provided command.",
      "max_score": 15
    },
    {
      "name": "Cleanup",
      "description": "Calls `cleanup()` on the `ExternalEditor` instance after reading the file to remove the temporary file using the package API.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-external-editor

tile.json