(self, artifact_id: str)
| 109 | return artifact |
| 110 | |
| 111 | def get(self, artifact_id: str) -> dict[str, Any] | None: |
| 112 | meta_path = self._meta_path(artifact_id) |
| 113 | content_path = self._content_path(artifact_id) |
| 114 | if not meta_path.exists() or not content_path.exists(): |
| 115 | return None |
| 116 | meta = json.loads(meta_path.read_text()) |
| 117 | meta["content"] = content_path.read_text() |
| 118 | return meta |
| 119 | |
| 120 | def list(self, limit: int = 50) -> list[dict[str, Any]]: |
| 121 | items: list[dict[str, Any]] = [] |