CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-rest

tessl install tessl/npm-rest@2.0.0

RESTful HTTP client library with composable interceptor architecture for Node.js and browsers

Agent Success

Agent success rate when using this tile

76%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.29x

Baseline

Agent success rate without this tile

59%

rubric.jsonevals/scenario-1/

{
  "context": "This evaluation assesses how well the engineer uses the rest.js package's lazy promise evaluation capability to implement conditional HTTP requests. The focus is on proper usage of deferred promise execution patterns to avoid immediate request execution.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses rest client",
      "description": "Imports and uses the rest.js HTTP client (e.g., `require('rest')` or `import rest from 'rest'`) to make HTTP requests rather than implementing custom HTTP functionality.",
      "max_score": 15
    },
    {
      "name": "Implements lazy evaluation",
      "description": "Uses a lazy promise pattern (such as rest's internal lazy promise mechanism or wrapping rest calls in a function that returns a promise) to defer HTTP request execution until the promise is consumed via .then() or similar methods.",
      "max_score": 30
    },
    {
      "name": "Defers execution correctly",
      "description": "Ensures HTTP requests are NOT executed immediately when createConditionalRequest is called, but only when the returned promise's .then(), .catch(), or similar methods are invoked.",
      "max_score": 25
    },
    {
      "name": "Passes request configuration",
      "description": "Correctly passes the request configuration object (path, method, headers, entity) to the rest client, maintaining the structure expected by rest.js (e.g., rest({ path: '...', method: '...' })).",
      "max_score": 15
    },
    {
      "name": "Returns chainable promise",
      "description": "Returns a promise-like object that supports standard promise chaining operations (.then(), .catch()) and properly propagates the rest.js response structure through the chain.",
      "max_score": 15
    }
  ]
}

Version

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