mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-19 03:03:14 +00:00
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:
parent
8c92f479d6
commit
48fa514e7e
7 changed files with 38 additions and 19 deletions
|
|
@ -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>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue