CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-store

tessl install tessl/npm-store@2.0.0

A localStorage wrapper for all browsers without using cookies or flash, providing persistent client-side storage with automatic fallback and plugin architecture

Agent Success

Agent success rate when using this tile

75%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.96x

Baseline

Agent success rate without this tile

78%

rubric.jsonevals/scenario-7/

{
  "context": "This evaluation assesses how well the engineer uses the store.js library's iteration functionality, specifically the each() method, to implement preference management features. The focus is on proper usage of the each() callback pattern to collect and process stored key-value pairs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses store.each()",
      "description": "Implementation uses the store.each() method to iterate over stored preferences rather than manually tracking keys or using other approaches",
      "max_score": 40
    },
    {
      "name": "Correct callback pattern",
      "description": "The callback function passed to store.each() correctly receives and uses the (value, key) parameter order as specified by the store.js API",
      "max_score": 25
    },
    {
      "name": "Uses store.set()",
      "description": "The setPreference function correctly uses store.set() to store preference values",
      "max_score": 15
    },
    {
      "name": "Uses store.clearAll()",
      "description": "The clearAllPreferences function uses store.clearAll() method to remove all stored preferences",
      "max_score": 10
    },
    {
      "name": "Proper data collection",
      "description": "The getAllPreferences function accumulates key-value pairs from the each() callback into an object or data structure that is returned",
      "max_score": 10
    }
  ]
}

Version

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