(self)
| 27 | warnings: list = field(default_factory=list) |
| 28 | |
| 29 | def summary(self) -> str: |
| 30 | if not self.is_valid: |
| 31 | return f"Plan is INVALID: {self.error}" |
| 32 | if self.warnings: |
| 33 | warnings_str = "; ".join(self.warnings) |
| 34 | return f"Plan is valid with warnings: {warnings_str}" |
| 35 | return "Plan is valid — parsed successfully." |
| 36 | |
| 37 | def preview(self, max_steps: int = 10) -> str: |
| 38 | """Return a short preview of the plan for user approval.""" |
no outgoing calls
no test coverage detected