CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-cpr

Cross-platform recursive file copying library that replicates Unix 'cp -R' command functionality

Agent Success

Agent success rate when using this tile

66%

Improvement

Agent success rate improvement when using this tile compared to baseline

1x

Baseline

Agent success rate without this tile

66%

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "Evaluates how well the solution uses the cpr package to mirror template directory structures, including empty folders, into a target without deleting existing siblings. Focuses on configuring cpr options to preserve destination content while still ensuring empty directories are created and reported. Ignores general coding style or structure.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "cpr call",
      "description": "Uses the cpr/cpr.cpr API to perform the template-to-target copy rather than reimplementing traversal with fs utilities, passing templateRoot as the source and targetRoot as the destination.",
      "max_score": 25
    },
    {
      "name": "Keeps siblings",
      "description": "Configures cpr without deleteFirst (or any rimraf/cleanup) so existing target siblings and files remain untouched during the copy.",
      "max_score": 20
    },
    {
      "name": "Empty dir support",
      "description": "Ensures cpr copies empty directories by avoiding filters that drop empty folders and letting cpr create directory paths even when they contain no files.",
      "max_score": 25
    },
    {
      "name": "Path confirmation",
      "description": "Uses cpr's callback results or confirm option to return actual destination directory paths created/ensured instead of reconstructing them manually.",
      "max_score": 15
    },
    {
      "name": "Repeatable run",
      "description": "Handles reruns through cpr options such as overwrite (or graceful handling of EEXIST) so invoking the copier multiple times succeeds without deleting destination content.",
      "max_score": 15
    }
  ]
}
tessl i tessl/npm-cpr@3.0.0

tile.json