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

{
  "context": "This evaluation assesses how effectively an engineer uses the safe-stable-stringify package to serialize financial transaction objects containing BigInt values. The focus is on proper usage of the package's BigInt support and deterministic output 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 (or uses `configure` to create a custom stringify function).",
      "max_score": 30
    },
    {
      "name": "BigInt serialization",
      "description": "The implementation correctly serializes BigInt values without throwing errors. This is achieved by using safe-stable-stringify's default behavior (bigint: true by default) or explicitly configuring it.",
      "max_score": 35
    },
    {
      "name": "Deterministic output",
      "description": "The implementation produces consistent, deterministic output for objects with the same properties regardless of insertion order. This is achieved by using safe-stable-stringify's default deterministic behavior or explicitly configuring with deterministic: true.",
      "max_score": 25
    },
    {
      "name": "Correct integration",
      "description": "The serializeTransaction function correctly integrates safe-stable-stringify into its implementation, properly passing the transaction object to the stringify function and returning the result.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json