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 criteria evaluates how effectively the engineer uses the tildify package to implement path formatting functionality, with particular focus on correctly handling paths outside the home directory (Non-Home Path Preservation capability).",
"type": "weighted_checklist",
"checklist": [
{
"name": "tildify import",
"description": "Correctly imports the tildify package as a default import (e.g., `import tildify from 'tildify'` or `const tildify = require('tildify')`)",
"max_score": 15
},
{
"name": "tildify function call",
"description": "Uses the tildify function to process the input path by passing the absolute path as an argument and returning the result",
"max_score": 25
},
{
"name": "Home path conversion",
"description": "Correctly leverages tildify to convert paths within the home directory to tilde notation (e.g., '/Users/user/docs' becomes '~/docs')",
"max_score": 20
},
{
"name": "Non-home path preservation",
"description": "Correctly leverages tildify's behavior to preserve paths outside the home directory unchanged (e.g., '/var/log/file.log' remains '/var/log/file.log')",
"max_score": 25
},
{
"name": "Home directory handling",
"description": "Correctly leverages tildify to handle the home directory itself, converting it to '~'",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-tildify