CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-temporal-polyfill

A lightweight polyfill for Temporal, successor to the JavaScript Date object

Overall
score

96%

Evaluation96%

1.19x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "Evaluates how well the solution uses temporal-polyfill's legacy bridge to convert Date objects into Temporal instants and perform calculations. Checks focus on side-effect installation, conversion, ISO output, and duration math using the package API.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Bridge install",
      "description": "Imports and executes the side-effect global entry (e.g., `import 'temporal-polyfill/global'`) so the Temporal namespace and Date bridge are available before any use.",
      "max_score": 25
    },
    {
      "name": "Date conversion",
      "description": "Uses the package-provided `Date.prototype.toTemporalInstant()` to obtain a `Temporal.Instant` for each legacy Date instead of manual epoch math or string parsing.",
      "max_score": 25
    },
    {
      "name": "Instant ISO",
      "description": "Derives ISO-8601 output by calling `Temporal.Instant.prototype.toString` (optionally with `timeZone`/precision options) rather than formatting Dates directly or hand-building strings.",
      "max_score": 20
    },
    {
      "name": "Temporal gap",
      "description": "Computes millisecond gaps via Temporal APIs (e.g., `Temporal.Instant.prototype.until`/`since` with `smallestUnit: 'millisecond'` or equivalent duration total) and avoids subtracting native Dates.",
      "max_score": 30
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-temporal-polyfill

tile.json