vectorbench 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bench.config.mjs CHANGED
@@ -162,13 +162,12 @@ export const retiredPrompts = [
162
162
  // Max, which was released that day. Both were taken out again on 30 November
163
163
  // 2026 (retiredModels).
164
164
  // Taken out of the lineup on 17 November 2026 by the owner's choice: they
165
- // drew too far below the rest to be worth a place in the benchmark. No new
165
+ // drew too far below the rest to be worth a place in the benchmark (Grok 4.7
166
+ // was one of them until 6 December 2026; see `models`). No new
166
167
  // drawings are asked for, and `npm run arena -- model off <id>` takes them off
167
168
  // the site entirely (leaderboard and model pages too). Their drawings, logs
168
169
  // and votes stay in the record.
169
170
  export const retiredModels = [
170
- // xAI `reasoning.effort`: low | medium | high | xhigh (max is refused).
171
- { id: 'grok-4-7', name: 'Grok 4.7', provider: 'xAI', via: 'xai', model: 'grok-4.7', effort: 'xhigh' }, // 35.5
172
171
  // Meta has no public API of its own; OpenRouter passes `reasoning.effort` on.
173
172
  { id: 'muse-spark-1-3', name: 'Muse Spark 1.3', provider: 'Meta', via: 'openrouter', model: 'meta/muse-spark-1.3', effort: 'max' }, // 37 on 14 Nov; since marked deprecated by the index and unscored
174
173
  // Taken out on 30 November 2026, by the owner's choice: off the arena and
@@ -233,6 +232,13 @@ export const models = [
233
232
  // v3 through Codex on the ChatGPT plan at max; its v3 drawings go live as
234
233
  // each week's Codex share is used.
235
234
  { id: 'gpt-6.1-terra', name: 'GPT-6.1 Terra', provider: 'OpenAI', via: 'openai', model: 'gpt-6.1-terra', effort: 'max' }, // 51.3
235
+
236
+ // Taken out on 17 November 2026 for its plain-request drawings, and back by
237
+ // the owner's choice on 6 December 2026, drawn with harness version 3 on
238
+ // the Grok plan through Grok Build (`--grok-build`), like the GPT models
239
+ // through Codex. Its earlier drawings stay retired.
240
+ // xAI `reasoning.effort`: low | medium | high | xhigh (max is refused).
241
+ { id: 'grok-4-7', name: 'Grok 4.7', provider: 'xAI', via: 'xai', model: 'grok-4.7', effort: 'xhigh' }, // 35.5
236
242
  ];
237
243
 
238
244
  // A guest in the arena since 19 November 2026, by the owner's choice: Gemini 4
@@ -24,6 +24,11 @@
24
24
  // pictures (`expose_image_base64 = false`): in the probe it described the
25
25
  // stripes `view` showed it.
26
26
  //
27
+ // That working directory is a folder on this machine, not /work, and the
28
+ // model may take it at its word: Grok 4.7's chess-knight (5 December 2026)
29
+ // was saved to /tmp/vb-grok-…/work/drawing.svg in the sandbox, and lost. So
30
+ // the same path leads to /work inside the sandbox before the run starts.
31
+ //
27
32
  // Grok Build runs a call before it has written the end of the reply that
28
33
  // made it, so a call is matched to its reply (by its command: the MCP call
29
34
  // carries no id) as soon as the block is whole.
@@ -160,6 +165,13 @@ export async function drawWithGrokBuild({ model, effort, text, tool, sandbox, li
160
165
  setTimeout(() => ending.exitCode === null && ending.signalCode === null && ending.kill('SIGKILL'), 5000).unref();
161
166
  };
162
167
 
168
+ // Whatever the model saves in the folder Grok Build names lands in /work.
169
+ try {
170
+ await sandbox.alias(cwd);
171
+ } catch (error) {
172
+ await rm(home, { recursive: true, force: true });
173
+ throw error;
174
+ }
163
175
  const run = session({ tool, sandbox, limits, say: (said) => (next = said), end: stop, agent: GROK_BUILD });
164
176
  const server = await serve((message) => answerRpc(message, { tool, call: run.call }));
165
177
  await writeFile(join(home, 'config.toml'), config({ mcpUrl: server.url, limits }));
@@ -64,6 +64,16 @@ export function sandboxFor(id, { image = IMAGE, commandSeconds = 120 } = {}) {
64
64
  return { code: done.code, output: done.stdout + done.stderr, timedOut, images: extra.images, submitted: extra.submitted };
65
65
  },
66
66
 
67
+ /**
68
+ * Makes `path` lead to /work, for an agent that names another working
69
+ * folder to the model: what the model saves there lands in /work.
70
+ */
71
+ async alias(path) {
72
+ if (!path.startsWith('/') || path === WORK) return;
73
+ const done = await docker(['exec', id, 'bash', '-c', 'mkdir -p "$(dirname "$1")" && ln -sfn /work "$1"', 'alias', path]);
74
+ if (done.code !== 0) throw new Error(`couldn't link ${path} to /work: ${done.stderr.trim()}`);
75
+ },
76
+
67
77
  /** A file's text, or null if it isn't there. */
68
78
  async read(path) {
69
79
  const done = await docker(['exec', '-w', WORK, id, 'cat', path]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vectorbench",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Draw VectorBench's SVG prompts with your own model, in the same sandbox as the benchmark at vectorbench.ai",
5
5
  "homepage": "https://vectorbench.ai",
6
6
  "repository": {