fix(companion-os): address grind mode review feedback

Restore the bedrock provider import through an explicit workspace path mapping, align pi-grind package metadata with the existing package manifests, remove the unused controller-failure state path, and parse bare ISO dates in local time.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-03-09 00:02:00 -07:00
parent 8c92f479d6
commit 48fa514e7e
7 changed files with 38 additions and 19 deletions

View file

@ -30,6 +30,13 @@ describe("pi-grind parser", () => {
expect(result?.stopCondition.deadlineAt).toBe(new Date(2026, 2, 10, 17, 30, 0).toISOString());
});
it("parses bare ISO dates in local time instead of UTC midnight", () => {
const result = parseStopCondition("keep going until 2026-03-10", now);
expect(result.deadlineAt).toBe(new Date(2026, 2, 10, 0, 0, 0).toISOString());
expect(result.completionCriterion).toBeNull();
});
it("parses grind status trailers", () => {
const payload = parseGrindStatus(
'Work done.\n<grind_status>{"state":"continue","summary":"half done","nextAction":"finish tests"}</grind_status>',