{
"event": "PreToolUse",
"tool_name": "Write",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/crawler\/src\/domain\/entities\/image.py",
"content": "from __future__ import annotations\n\nfrom dataclasses import dataclass\n\n\n@dataclass(frozen=True, slots=True)\nclass Image:\n id: int | None\n page_id: int\n src: str\n alt: str | None\n title: str | None\n width: int | None\n height: int | None\n loading_attr: str | None\n decoding_attr: str | None\n http_status: int | None\n content_length: int | None\n\n @property\n def has_alt(self) -> bool:\n return self.alt is not None and self.alt.strip() != \"\"\n"
}
}
{
"tool_response": {
"type": "create",
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/crawler\/src\/domain\/entities\/image.py",
"content": "from __future__ import annotations\n\nfrom dataclasses import dataclass\n\n\n@dataclass(frozen=True, slots=True)\nclass Image:\n id: int | None\n page_id: int\n src: str\n alt: str | None\n title: str | None\n width: int | None\n height: int | None\n loading_attr: str | None\n decoding_attr: str | None\n http_status: int | None\n content_length: int | None\n\n @property\n def has_alt(self) -> bool:\n return self.alt is not None and self.alt.strip() != \"\"\n",
"structuredPatch": [],
"originalFile": null,
"userModified": false
}
}