My puppy just pooped and there are live worms in it.
The first thing to do is to take her to a vet for a first general checkup and deworming protocol to eliminate earthworms and tapeworms, since it is quite common for puppies to have them. Internal parasites can block the transit of stool; they absorb the nutrients from the food, causing severe malnutrition, etc. Hence the importance of the internal deworming of kittens.
All the best,