ROCKLAND, Maine — A Rockport woman pleaded guilty Tuesday to drunk driving charges from a November crash that nearly killed the other motorist.

Amanda M. Simmons, 40, pleaded guilty in Knox County Superior Court to aggravated operating under the influence and aggravated driving to endanger.

Justice Daniel Billings accepted a deferred disposition agreement worked out between the district attorney’s office and defense. The agreement calls for the two felony charges to be dismissed and Simmons to be convicted of misdemeanor OUI and driving to endanger charges if she refrains from criminal conduct during the next 12 months.

If she meets the terms of the agreement, she will be sentenced to 364 days in jail with all but 90 days suspended. During the year, she is not allowed to drive a car, is barred from drinking, and must undergo substance abuse counseling.

Assistant District Attorney Jeffrey Baroody said Simmons was driving a car on Route 90 on the evening of Nov. 1 when her car veered into the oncoming lane and struck head-on a vehicle driven by 61-year-old Lynn Vogt of Woburn, Massachusetts.

The prosecutor said one of the first responders was Rockland Police Officer William Smith, who also is an emergency medical technician in Rockport. Vogt was in a lot of pain and at one point became unconscious, stopped breathing and had to be revived. The woman has long-lasting injuries, the prosecutor said,

A blood-alcohol test found Simmons’ level at 0.25 — more than three times the limit at which a person is considered under the influence.

The victim in the crash supported the agreement, Billings said. He praised Vogt for being charitable and not seeking vengeance despite the severe impact the crash has had on her.