Convert an absolute path to a tilde path by replacing the user's home directory with ~
93
Evaluation — 93%
↑ 1.09xAgent success when using this tile
{
"context": "This evaluation assesses how well the engineer uses the tildify package to implement position-sensitive path transformation, specifically focusing on whether they correctly utilize the package's core functionality that only replaces home directory when it appears at the start of a path.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports tildify",
"description": "The solution correctly imports the tildify package (e.g., using require('tildify') or import tildify from 'tildify').",
"max_score": 20
},
{
"name": "Calls tildify function",
"description": "The solution invokes the tildify default export function with the input path as an argument.",
"max_score": 30
},
{
"name": "Returns tildify result",
"description": "The solution returns the direct result from tildify without unnecessary post-processing or modifications.",
"max_score": 25
},
{
"name": "No manual replacement",
"description": "The solution does not manually implement string replacement logic or regex patterns to replace home directory with tilde, instead relying entirely on tildify's built-in functionality.",
"max_score": 25
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-tildify