CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-anymatch

tessl install tessl/npm-anymatch@3.1.0

Matches strings against configurable strings, globs, regular expressions, and/or functions

Agent Success

Agent success rate when using this tile

76%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.12x

Baseline

Agent success rate without this tile

68%

rubric.jsonevals/scenario-1/

{
  "context": "Evaluates whether the solution uses the anymatch package to enforce matcher presence, validate incoming test inputs, and handle unsupported matcher entries without throwing. Checks focus on forwarding tuple inputs to anymatch and using its returnIndex option instead of reimplementing matching logic. Scoring rewards correct reliance on anymatch APIs tied to validation and tolerant matcher handling.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "AnyMatch usage",
      "description": "Imports and delegates path evaluation to the anymatch matcher instead of reimplementing glob/regex/predicate handling, passing through relevant options.",
      "max_score": 15
    },
    {
      "name": "Matcher TypeError",
      "description": "Calls anymatch with a required matcher list so missing or empty matchers surface anymatch's TypeError rather than being silently accepted.",
      "max_score": 25
    },
    {
      "name": "Test input guard",
      "description": "Relies on anymatch to raise a TypeError when the evaluated test input is neither a string nor an array tuple before attempting a match.",
      "max_score": 20
    },
    {
      "name": "Tuple forwarding",
      "description": "Passes array inputs `[value, ...extras]` directly to anymatch so predicate matchers receive forwarded extras, while plain string inputs are evaluated through the same matcher.",
      "max_score": 20
    },
    {
      "name": "Index option",
      "description": "Uses anymatch's `returnIndex` flag (third argument or invocation option) to obtain the first supported matcher index or `-1`, skipping unsupported matcher entries without throwing.",
      "max_score": 20
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/anymatch@3.1.x
tile.json