tessl install tessl/npm-store@2.0.0A 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%
{
"context": "This criteria evaluates how well the engineer uses the store.js package to handle cross-browser compatibility and automatic storage fallback mechanisms. The focus is on leveraging store.js's built-in capabilities for detecting storage availability and selecting appropriate storage backends.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Store engine import",
"description": "Imports store-engine from 'store/src/store-engine' to create a custom store instance",
"max_score": 10
},
{
"name": "Storage backend imports",
"description": "Imports individual storage backends from 'store/storages/' (localStorage, sessionStorage, memoryStorage)",
"max_score": 15
},
{
"name": "Custom store creation",
"description": "Uses engine.createStore() with an array of storage backends to configure automatic fallback behavior",
"max_score": 25
},
{
"name": "Correct storage order",
"description": "Passes storage backends in the correct priority order: localStorage first, sessionStorage second, memoryStorage as fallback",
"max_score": 15
},
{
"name": "Storage availability check",
"description": "Uses the store.enabled property to determine if persistent storage is available (false when using memoryStorage fallback)",
"max_score": 20
},
{
"name": "Store operations",
"description": "Uses store.set() and store.get() methods correctly for storing and retrieving values",
"max_score": 15
}
]
}