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

{
  "context": "Evaluates how the solution uses the cpr package to perform recursive copies while applying its built-in filtering and housekeeping options. Focus is on correct use of cpr's API to honor regex filters, predicate filters, combined logic, and optional cleanup.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses cpr",
      "description": "Invokes `cpr(source, destination, options, callback)` (or equivalent promise wrapper) to perform the copy instead of reimplementing traversal; completion is driven by the cpr callback.",
      "max_score": 20
    },
    {
      "name": "Regex filter",
      "description": "Passes a `RegExp` or regex string through the `filter` option so only paths matching the include pattern are copied, relying on cpr's absolute-path matching rather than manual preselection.",
      "max_score": 25
    },
    {
      "name": "Predicate filter",
      "description": "Supplies a function to `options.filter` that receives each absolute path and returns a boolean to skip or keep; both files and directories are gated via this predicate without extra filesystem checks.",
      "max_score": 25
    },
    {
      "name": "Combined filters",
      "description": "When both pattern and predicate are provided, composes them into a single `filter` option passed to cpr so a path is copied only if it matches the regex and the predicate returns true.",
      "max_score": 15
    },
    {
      "name": "Cleanup handled",
      "description": "Uses cpr's `deleteFirst` option when `cleanDestination` is requested to clear the destination via the package rather than manual rimraf logic.",
      "max_score": 10
    },
    {
      "name": "Sorted results",
      "description": "Returns copied path listings by consuming the array provided by the cpr callback (or using the `confirm` option) so results are deterministic and aligned with cpr's ordering.",
      "max_score": 5
    }
  ]
}
tessl i tessl/npm-cpr@3.0.0

tile.json