g1t/apps/web/app/lib/agent-step.test.ts

15 lines699 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Download ZIP from the Code button; a slimmer lifecycle panel; agent steps say what was done, not sandbox paths1import assert from "node:assert/strict";
2import { test } from "node:test";
3
4import { shownStep } from "./agent-step";
5
6test("a step that hands back a file says what was done, not where", () => {
7 assert.equal(shownStep("Said: Done. The review is written to `/work/review.json`."), "Wrote its review.");
8 assert.equal(shownStep("Said: Plan saved to /work/plan.json"), "Wrote the plan.");
9 assert.equal(shownStep("Said: I wrote /work/answer.md"), "Wrote its answer.");
10});
11
12test("paths in the checkout read as the repository's own", () => {
13 assert.equal(shownStep("Editing `/work/repo/src/math.js`"), "Editing src/math.js");
14 assert.equal(shownStep("Running npm test"), "Running npm test");
15});