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

Function load_tool_snapshot

claw-code/src/tools.py:24–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

tools.pyFile · 0.85

Calls 1

PortingModuleClass · 0.85

Tested by

no test coverage detected