1. She was working on the book, but didn't complete the project, so she almost finished it. [Goal: write a book]
2. She intended/expected to complete the book, and almost did what would have been required to finish it, but actually she got distracted by something else and did not do that, so the almost finished it. [Goal: finish the book] Rephrase: "she almost did something yesterday", where that something is "finishing the book".