oven-sh/bun · error
args must be an array of {file,count,diagPath}
Error message
args must be an array of {file,count,diagPath} What it means
Error "args must be an array of {file,count,diagPath}" thrown in oven-sh/bun.
Source
Thrown at scripts/clippy-loop/fix-round.workflow.ts:13
export const meta = {
name: "clippy-fix-round",
description: "Per-file clippy fixer with 2-reviewer adversarial gate",
phases: [
{ title: "Fix", detail: "one read-only agent per file produces a unified diff" },
{ title: "Review", detail: "2 adversarial reviewers per diff; both must approve" },
],
};
// args: Array<{file, count, diagPath}> (or {files: [...]}, or a JSON string of either)
const parsed = typeof args === "string" ? JSON.parse(args) : args;
const files = Array.isArray(parsed) ? parsed : parsed.files;
if (!Array.isArray(files)) throw new Error("args must be an array of {file,count,diagPath}");
log(`round: ${files.length} files`);
const PATCH_SCHEMA = {
type: "object",
required: ["patch", "summary"],
properties: {
patch: {
type: "string",
description:
"Unified diff (git apply compatible) against the repo root. Must use 'a/<path>' and 'b/<path>' headers and at least 3 lines of context. Empty string if no safe fix is possible.",
},
summary: { type: "string", description: "One line per lint addressed, or why a lint was left alone." },
skipped: {
type: "array",
items: { type: "string" },
description: "Lint codes intentionally not fixed and why (one entry each).",
},
},View on GitHub (pinned to 8c5296ac45)
When it happens
Trigger: Thrown at scripts/clippy-loop/fix-round.workflow.ts:13 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16).
Data as JSON: /api/errors/db75c32154c147b3.
Report an issue: GitHub.