MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / load_command_snapshot

Function load_command_snapshot

claw-code/src/commands.py:23–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22@lru_cache(maxsize=1)
23def load_command_snapshot() -> tuple[PortingModule, ...]:
24 raw_entries = json.loads(SNAPSHOT_PATH.read_text())
25 return tuple(
26 PortingModule(
27 name=entry['name'],
28 responsibility=entry['responsibility'],
29 source_hint=entry['source_hint'],
30 status='mirrored',
31 )
32 for entry in raw_entries
33 )
34
35
36PORTED_COMMANDS = load_command_snapshot()

Callers 1

commands.pyFile · 0.85

Calls 1

PortingModuleClass · 0.85

Tested by

no test coverage detected