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-4/

{
  "context": "Evaluates whether the filtered copy utility is implemented by delegating to the cpr package, correctly wiring its filtering, delete-first cleanup, and native error behavior when no files remain. Scoring focuses solely on use of cpr options and outputs to satisfy the spec scenarios.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses cpr",
      "description": "Invokes the cpr API (or cpr.cpr alias) to perform the copy rather than reimplementing recursion or manual filesystem copying.",
      "max_score": 25
    },
    {
      "name": "Filter option",
      "description": "Passes the caller-provided RegExp or predicate through to cpr's filter option so only matching paths are considered for copying.",
      "max_score": 20
    },
    {
      "name": "No-files error",
      "description": "Relies on cpr's built-in \"No files to copy\" rejection when the filter excludes every path, surfacing that message instead of suppressing or replacing it.",
      "max_score": 25
    },
    {
      "name": "Clean deleteFirst",
      "description": "Maps the `clean` flag to cpr's deleteFirst option to remove the destination tree before copying when requested.",
      "max_score": 15
    },
    {
      "name": "Return files",
      "description": "Returns the destination path list produced by cpr's callback (optionally sorted) instead of rebuilding it independently.",
      "max_score": 15
    }
  ]
}
tessl i tessl/npm-cpr@3.0.0

tile.json