(edit: EditType | dict)
| 74 | |
| 75 | |
| 76 | def _edit_fields(edit: EditType | dict) -> tuple[str, str, str]: |
| 77 | op = edit.op if hasattr(edit, "op") else edit.get("op", "") |
| 78 | content = _strip_slow_update_markers( |
| 79 | (edit.content if hasattr(edit, "content") else edit.get("content", "")).strip() |
| 80 | ) |
| 81 | target = edit.target if hasattr(edit, "target") else edit.get("target", "") |
| 82 | return op, content, target |
| 83 | |
| 84 | |
| 85 | def _apply_edit_with_report(skill: str, edit: EditType | dict) -> tuple[str, dict]: |
no test coverage detected