CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-tildify

Convert an absolute path to a tilde path by replacing the user's home directory with ~

93

1.09x

Evaluation93%

1.09x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses the tildify package to convert absolute paths to tilde notation. The focus is on proper package integration and usage of the tildify function to achieve the required path formatting behavior.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports tildify",
      "description": "The solution correctly imports the tildify package using require() or import statement (e.g., 'const tildify = require(\"tildify\")' or 'import tildify from \"tildify\"')",
      "max_score": 20
    },
    {
      "name": "Uses tildify function",
      "description": "The formatPathForDisplay function calls the tildify function (the default export from the tildify package) to convert the absolute path",
      "max_score": 40
    },
    {
      "name": "Passes path parameter",
      "description": "The solution passes the absolutePath parameter directly to the tildify function call",
      "max_score": 20
    },
    {
      "name": "Returns tildify result",
      "description": "The solution returns the result from the tildify function call without unnecessary additional processing",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-tildify

tile.json