MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / _load

Method _load

agents/s_full.py:270–273  ·  view source on GitHub ↗
(self, tid: int)

Source from the content-addressed store, hash-verified

268 return max(ids, default=0) + 1
269
270 def _load(self, tid: int) -> dict:
271 p = TASKS_DIR / f"task_{tid}.json"
272 if not p.exists(): raise ValueError(f"Task {tid} not found")
273 return json.loads(p.read_text())
274
275 def _save(self, task: dict):
276 (TASKS_DIR / f"task_{task['id']}.json").write_text(json.dumps(task, indent=2))

Callers 3

getMethod · 0.95
updateMethod · 0.95
claimMethod · 0.95

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected