Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extensions/workflows/artifacts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ test("agent result artifacts are complete or fail without leaving a file", () =>
output: "complete",
structured: { verdict: "accepted", emoji: "你好🙂" },
});
assert.equal(artifact, "agent-results/agent-0001.json");
assert.deepEqual(
JSON.parse(readFileSync(join(directory, artifact), "utf8")),
{
Expand Down
2 changes: 1 addition & 1 deletion extensions/workflows/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function persistWorkflowAgentResult(
index: number,
result: { output: string; structured?: unknown },
) {
const artifact = path.join(
const artifact = path.posix.join(
"agent-results",
`agent-${String(index).padStart(4, "0")}.json`,
);
Expand Down