MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / fromSnapshot

Method fromSnapshot

apps/webuiapps/src/lib/FileSystemStore.ts:450–455  ·  view source on GitHub ↗

* Restore from snapshot

(snapshot: FileSystemSnapshot)

Source from the content-addressed store, hash-verified

448 * Restore from snapshot
449 */
450 fromSnapshot(snapshot: FileSystemSnapshot): void {
451 this.nodes = new Map(snapshot.nodes);
452 this.pathIndex = new Map(snapshot.pathIndex);
453 this.rootId = snapshot.rootId;
454 this.emit('store_reset');
455 }
456
457 /**
458 * Export as JSON

Callers 1

fromJSONMethod · 0.95

Calls 1

emitMethod · 0.95

Tested by

no test coverage detected