mirror of
https://github.com/vercel-labs/agent-eval.git
synced 2026-09-19 07:11:21 +08:00
55e0ab49b9
Ports the OpenCode portion of #103. The --concurrency flag is intentionally left out per PR feedback; it can land separately if needed. createOpenCodeAgent now accepts an optional OpenCodeAgentOptions with two fields. binaryUrl points at a custom OpenCode build; when set, the agent curls it into /usr/local/bin/opencode inside the sandbox instead of npm install -g opencode-ai. This unblocks evals against patched builds that know about models not yet published to models.dev. extraProviders is a map of provider entries that get merged into the generated opencode.json alongside the default vercel provider. generateOpenCodeConfig was also switched from a hand-built template string to JSON.stringify on a plain object so the merge is unambiguous.