(self, artifact_id: str, summary: str)
| 101 | return record |
| 102 | |
| 103 | def update_summary(self, artifact_id: str, summary: str) -> dict[str, Any] | None: |
| 104 | artifact = self.get(artifact_id) |
| 105 | if artifact is None: |
| 106 | return None |
| 107 | artifact["summary"] = summary |
| 108 | self._meta_path(artifact_id).write_text(json.dumps({k: v for k, v in artifact.items() if k != "content"}, indent=2)) |
| 109 | return artifact |
| 110 | |
| 111 | def get(self, artifact_id: str) -> dict[str, Any] | None: |
| 112 | meta_path = self._meta_path(artifact_id) |
no test coverage detected