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

{
  "context": "Evaluates whether the refreshWorkspace solution relies on the cpr package to clear and repopulate the destination snapshot. Checks emphasize correct use of the package options (especially deleting the destination tree before copying), sourcing results from the cpr callback, and surfacing errors.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Delete-first copy",
      "description": "Uses cpr (or cpr.cpr) with deleteFirst: true so the destination tree is removed before copying the source snapshot.",
      "max_score": 45
    },
    {
      "name": "Recursive mirror",
      "description": "Invokes cpr to copy the entire source directory into the destination (not manual traversal), ensuring the destination argument matches the cleared target path.",
      "max_score": 20
    },
    {
      "name": "Sorted results",
      "description": "Returns the destination paths derived from the cpr callback (e.g., using confirm: true for verification) and resolves them sorted as the function result.",
      "max_score": 15
    },
    {
      "name": "Error handling",
      "description": "Rejects when cpr yields an error (including aggregated err.list) rather than ignoring failures.",
      "max_score": 10
    },
    {
      "name": "Rely on cpr setup",
      "description": "Lets cpr handle destination creation and cleanup instead of manual filesystem deletions or mkdirs, aligning with the package’s intended workflow.",
      "max_score": 10
    }
  ]
}
tessl i tessl/npm-cpr@3.0.0

tile.json