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%
Build a storage manager that implements automatic testing and fallback between multiple storage mechanisms to ensure storage always works, even in restrictive browser environments.
Your storage manager should:
Each storage backend should support the following operations:
enabled flag that is true when a persistent storage mechanism is available, and false when using in-memory fallback only. @test@generates
/**
* Creates a storage manager that automatically tests and selects a working storage backend.
*
* @param {Array} storageBackends - Array of storage backend objects to test in order.
* Each backend should have read, write, and remove methods.
* @returns {Object} A storage manager with read, write, remove methods and an enabled flag.
*/
function createStorageManager(storageBackends) {
// IMPLEMENTATION HERE
}
module.exports = { createStorageManager };Provides cross-browser storage functionality with automatic fallback mechanisms.
@satisfied-by