CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-safe-stable-stringify

Deterministic and safely JSON.stringify to quickly serialize JavaScript objects

90

1.08x

Evaluation90%

1.08x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This evaluation assesses how effectively the engineer uses safe-stable-stringify's maximumBreadth configuration option to limit the number of properties and elements displayed in object and array serialization.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses configure function",
      "description": "Implementation imports and calls the configure() function from safe-stable-stringify to create a customized stringify instance",
      "max_score": 25
    },
    {
      "name": "Sets maximumBreadth option",
      "description": "Implementation correctly passes the maximumBreadth option to configure() with the appropriate numeric value based on the maxItems parameter",
      "max_score": 30
    },
    {
      "name": "Returns configured stringify",
      "description": "The createPreviewGenerator function returns the configured stringify function (or a wrapper that calls it) so it can be used to serialize values",
      "max_score": 20
    },
    {
      "name": "Handles breadth limiting",
      "description": "Implementation correctly produces truncated output for objects and arrays exceeding the limit, including the omission indicator (e.g., '...': 'N items not stringified')",
      "max_score": 15
    },
    {
      "name": "Works with nested structures",
      "description": "Implementation correctly applies the breadth limit at each nesting level when serializing nested objects and arrays",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-safe-stable-stringify

tile.json