MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / export

Method export

uncommon_route/scene_store.py:247–255  ·  view source on GitHub ↗

Export all scenes as a JSON-serializable dict.

(self)

Source from the content-addressed store, hash-verified

245 return scene
246
247 def export(self) -> dict[str, Any]:
248 """Export all scenes as a JSON-serializable dict."""
249 return {
250 "version": "1.0",
251 "scenes": {
252 name: _serialize_scene(scene)
253 for name, scene in sorted(self._scenes.items())
254 },
255 }
256
257 def import_scenes(self, data: dict[str, Any]) -> int:
258 """Import scenes from a dict (merge, not replace). Returns count added."""

Callers 5

build_support_bundleFunction · 0.45
handle_healthFunction · 0.45
handle_routing_configFunction · 0.45
handle_scenesFunction · 0.45

Calls 1

_serialize_sceneFunction · 0.85

Tested by 1