MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_context_snapshot

Method get_context_snapshot

network_storage.py:49–53  ·  view source on GitHub ↗

Return a storage context for SSID without changing the active network.

(self, ssid: Optional[str])

Source from the content-addressed store, hash-verified

47 return self._build_context(self.active_ssid, self.active_slug or '')
48
49 def get_context_snapshot(self, ssid: Optional[str]) -> Dict[str, str]:
50 """Return a storage context for SSID without changing the active network."""
51 slug = self._slugify(ssid)
52 normalized_ssid = ssid.strip() if ssid else None
53 return self._build_context(normalized_ssid, slug)
54
55 # ------------------------------------------------------------------
56 # Internal helpers

Callers 3

_snapshot_currentMethod · 0.80
activateMethod · 0.80

Calls 2

_slugifyMethod · 0.95
_build_contextMethod · 0.95

Tested by

no test coverage detected