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

Method remove

uncommon_route/scene_store.py:227–234  ·  view source on GitHub ↗

Remove a scene. Returns True if it existed.

(self, name: str)

Source from the content-addressed store, hash-verified

225 return normalized
226
227 def remove(self, name: str) -> bool:
228 """Remove a scene. Returns True if it existed."""
229 key = name.strip().lower()
230 if key in self._scenes:
231 del self._scenes[key]
232 self._save()
233 return True
234 return False
235
236 def resolve(self, name: str) -> SceneConfig | None:
237 """Resolve a scene name, with graceful degradation.

Callers 3

_cmd_sceneFunction · 0.95
test_removeMethod · 0.80
handle_scenesFunction · 0.80

Calls 1

_saveMethod · 0.95

Tested by 1

test_removeMethod · 0.64