Commit b6dc784
committed
feat(Common/Storage): Add bulk storage methods for state sync
Added `GetAllStorage` and `SetAllStorage` methods to the `StorageProvider` trait in `Common`. This change:
1. **Enables User Data Sync workflow** by allowing bulk retrieval and overwrite of entire storage state (global/workspace scope)
2. **Aligns with `Mountain`'s state management** where `AppState` will implement these for persistent storage operations
3. **Supports `Cocoon` extension host** by providing efficient state transfer for VS Code extension APIs
4. **Facilitates `Wind` UI services** for settings/profile synchronization features
5. **Defines DTOs using `Value` type** consistent with Land's serialization strategy
BREAKING CHANGE: All `StorageProvider` implementors (e.g. `Mountain`) must now provide implementations for the new bulk methods.1 parent d7f8117 commit b6dc784
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
0 commit comments