(plan: StateEditPlan)
| 392 | } |
| 393 | |
| 394 | export function planToStateEdits(plan: StateEditPlan): Array<{ |
| 395 | path: string; |
| 396 | content: string; |
| 397 | }> { |
| 398 | return plan.edits.map((edit) => ({ |
| 399 | path: edit.path, |
| 400 | content: edit.content |
| 401 | })); |
| 402 | } |
| 403 | |
| 404 | async function rollbackSnapshots( |
| 405 | snapshots: Array<{ path: string; previous: string | null }>, |