| 1 | from __future__ import annotations |
| 2 | |
| 3 | |
| 4 | def mark_dirty_all(*, reason: str | None = None) -> None: |
| 5 | from helpers.state_monitor import get_state_monitor |
| 6 | |
| 7 | get_state_monitor().mark_dirty_all(reason=reason) |
| 8 | |
| 9 | |
| 10 | def mark_dirty_for_context( |
| 11 | context_id: str, |
| 12 | *, |
| 13 | reason: str | None = None, |
| 14 | include_collections: bool = True, |
| 15 | ) -> None: |
| 16 | from helpers.state_monitor import get_state_monitor |
| 17 | |
| 18 | get_state_monitor().mark_dirty_for_context( |
| 19 | context_id, |
| 20 | reason=reason, |
| 21 | include_collections=include_collections, |
| 22 | ) |