Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

525 B
Raw Blame
import 'package:harness/core/local_key_value_store.dart';

/// A [LocalKeyValueStore] that keeps everything in [values], for tests that
/// must not touch `~/.harness` or browser storage.
class MemoryKeyValueStore implements LocalKeyValueStore {
  final Map<String, String> values = {};

  @override
  Future<String?> read(String key) async => values[key];

  @override
  Future<void> write(String key, String value) async => values[key] = value;

  @override
  Future<void> delete(String key) async => values.remove(key);
}