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

Method _load

agents/s12_worktree_task_isolation.py:140–144  ·  view source on GitHub ↗
(self, task_id: int)

Source from the content-addressed store, hash-verified

138 return self.dir / f"task_{task_id}.json"
139
140 def _load(self, task_id: int) -> dict:
141 path = self._path(task_id)
142 if not path.exists():
143 raise ValueError(f"Task {task_id} not found")
144 return json.loads(path.read_text())
145
146 def _save(self, task: dict):
147 self._path(task["id"]).write_text(json.dumps(task, indent=2))

Callers 4

getMethod · 0.95
updateMethod · 0.95
bind_worktreeMethod · 0.95
unbind_worktreeMethod · 0.95

Calls 2

_pathMethod · 0.95
existsMethod · 0.80

Tested by

no test coverage detected