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 effectively the engineer uses the tildify package to convert absolute paths to tilde-based paths. The focus is on correct usage of the package's API and proper handling of the core functionality.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Imports tildify",
"description": "The solution imports the tildify package (e.g., using require('tildify') or import tildify from 'tildify')",
"max_score": 20
},
{
"name": "Uses tildify function",
"description": "The implementation calls the tildify function with the input path as an argument",
"max_score": 30
},
{
"name": "Returns tildify result",
"description": "The function returns the result from calling tildify without unnecessary additional processing",
"max_score": 25
},
{
"name": "Handles exact home",
"description": "The implementation correctly handles the case where the input is exactly the home directory (returns '~')",
"max_score": 10
},
{
"name": "Handles paths in home",
"description": "The implementation correctly handles paths within the home directory by replacing the home prefix with '~'",
"max_score": 10
},
{
"name": "Handles non-home paths",
"description": "The implementation correctly handles paths outside the home directory by returning them unchanged",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-tildify