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 handle cross-platform path conversion. The focus is on proper usage of tildify's API to convert home directory paths to tilde notation while correctly handling platform-specific conventions and edge cases.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses tildify function",
"description": "The implementation imports and uses the tildify function from the 'tildify' package to perform the path conversion",
"max_score": 40
},
{
"name": "Direct delegation",
"description": "The formatPath function directly delegates to tildify without reimplementing path conversion logic, demonstrating understanding that tildify handles all the conversion requirements",
"max_score": 30
},
{
"name": "Correct import syntax",
"description": "Uses the correct ES module import syntax for tildify (e.g., 'import tildify from \"tildify\"' for default export)",
"max_score": 15
},
{
"name": "Minimal wrapper",
"description": "The implementation is a thin wrapper that leverages tildify's built-in capabilities for handling edge cases (exact home match, similar prefixes, relative paths, cross-platform support) rather than adding unnecessary logic",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-tildify