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

{
  "context": "This criteria evaluates how effectively the engineer uses the safe-stable-stringify package to handle circular references in object serialization. The focus is on proper usage of the package's circular reference detection and configuration capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses safe-stable-stringify",
      "description": "The implementation imports and uses the stringify function from the safe-stable-stringify package (either default export or named export).",
      "max_score": 20
    },
    {
      "name": "Circular detection works",
      "description": "The implementation successfully detects and handles circular references using safe-stable-stringify's built-in circular reference detection mechanism.",
      "max_score": 25
    },
    {
      "name": "Default circular marker",
      "description": "When no custom circularValue is provided, the implementation uses safe-stable-stringify's default behavior which replaces circular references with '[Circular]'.",
      "max_score": 15
    },
    {
      "name": "Custom circular value",
      "description": "The implementation uses the configure() function or passes options to stringify to set a custom circularValue option that controls the replacement string for circular references.",
      "max_score": 25
    },
    {
      "name": "Null circular value",
      "description": "The implementation correctly handles the case where circularValue is set to null, using safe-stable-stringify's support for null as a circularValue option.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json