vectorbench 3.1.0 → 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/NOTICE +3 -3
- package/README.md +2 -2
- package/bench.config.mjs +16 -9
- package/harness/Dockerfile +8 -8
- package/harness/codex.mjs +1 -1
- package/harness/grok-build.mjs +12 -0
- package/harness/sandbox.mjs +10 -0
- package/package.json +1 -1
- package/src/model-apis.js +9 -9
package/NOTICE
CHANGED
|
@@ -20,7 +20,7 @@ worker/fonts/DejaVuSans.ttf
|
|
|
20
20
|
DejaVu Sans, from the DejaVu fonts (https://dejavu-fonts.github.io/).
|
|
21
21
|
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera
|
|
22
22
|
is a trademark of Bitstream, Inc. DejaVu changes are in the public domain.
|
|
23
|
-
Used under the Bitstream Vera Fonts
|
|
23
|
+
Used under the Bitstream Vera Fonts license; the full terms are in
|
|
24
24
|
worker/fonts/DejaVu-LICENSE.txt, which must travel with the font.
|
|
25
25
|
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ Not in this repository
|
|
|
28
28
|
----------------------
|
|
29
29
|
|
|
30
30
|
These are fetched when you install, build or deploy, each under its own
|
|
31
|
-
|
|
31
|
+
license:
|
|
32
32
|
|
|
33
33
|
- The npm packages listed in package-lock.json. Two of them end up inside
|
|
34
34
|
what the site serves: the WebAssembly build of resvg from
|
|
@@ -44,6 +44,6 @@ Not licensed
|
|
|
44
44
|
------------
|
|
45
45
|
|
|
46
46
|
The VectorBench name and logo are not licensed under the Apache License or
|
|
47
|
-
any other
|
|
47
|
+
any other license (see section 6 of the Apache License). The logo appears in
|
|
48
48
|
the icon files in public/ and is drawn by src/brand.js. If you run your own
|
|
49
49
|
copy of the site, give it your own name and icons.
|
package/README.md
CHANGED
|
@@ -133,10 +133,10 @@ version its drawing was made with.
|
|
|
133
133
|
https://huggingface.co/vectorbench, each month's votes 30 days after it
|
|
134
134
|
ends. The first release is due in mid-December 2026.
|
|
135
135
|
|
|
136
|
-
##
|
|
136
|
+
## Licenses
|
|
137
137
|
|
|
138
138
|
- Code: Apache License 2.0 (`LICENSE`). Third-party files keep their own
|
|
139
|
-
|
|
139
|
+
licenses, listed in `NOTICE`.
|
|
140
140
|
- Prompt texts: Creative Commons Attribution 4.0 (`PROMPTS-LICENSE.md`).
|
|
141
141
|
- Model drawings: CC0 1.0. Please cite VectorBench when you use them.
|
|
142
142
|
- The VectorBench name and logo are not licensed. If you run your own copy
|
package/bench.config.mjs
CHANGED
|
@@ -87,9 +87,9 @@ export const prompts = [
|
|
|
87
87
|
// test new models with on X, so a visitor can hold ours against the ones
|
|
88
88
|
// they've seen. The Xbox 360 controller is the most common of them. Real,
|
|
89
89
|
// well-known products, checkable against the real thing: the controllers'
|
|
90
|
-
// stick and button layout and the
|
|
90
|
+
// stick and button layout and the colors and symbols on their face
|
|
91
91
|
// buttons; the Game Boy's power light, screen and Start/Select; the
|
|
92
|
-
// cube's 3×3 faces, its six
|
|
92
|
+
// cube's 3×3 faces, its six colors and the one solved face; the
|
|
93
93
|
// unicorn's single horn and its weight on two hind legs.
|
|
94
94
|
{ id: 'xbox-controller', text: 'An Xbox 360 controller, seen from above' },
|
|
95
95
|
{ id: 'playstation-controller', text: 'A PlayStation 5 DualSense controller, seen from above' },
|
|
@@ -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
|
|
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
|
|
@@ -259,16 +265,17 @@ export const models = [
|
|
|
259
265
|
// criteria chart is drawn from. They follow "What wins votes" in the request
|
|
260
266
|
// above, split where the sandbox gives a model a separate way to get it right:
|
|
261
267
|
// measurements and 3D for accuracy, generated repetition for detail, computed
|
|
262
|
-
// shading and perceptual
|
|
268
|
+
// shading and perceptual color for light and color, `check` and `zoom` for
|
|
263
269
|
// a clean finish, `frames` for motion.
|
|
264
270
|
//
|
|
265
|
-
// `id` is
|
|
266
|
-
//
|
|
271
|
+
// `id` is stored with each judgment, so renaming one takes a migration (as
|
|
272
|
+
// migrations/0033_criterion_color.sql did). `when: 'animated'` is only asked
|
|
273
|
+
// when at least one of the two SVGs moves.
|
|
267
274
|
export const criteria = [
|
|
268
275
|
{ id: 'request', name: 'Matches the request', short: 'Request', hint: 'Everything asked for is there and right: the subject, what it’s doing, and any number, words or arrangement.' },
|
|
269
276
|
{ id: 'accuracy', name: 'True to the real thing', short: 'Accuracy', hint: 'Proportions, anatomy and mechanics are right, and the parts fit together as they really do.' },
|
|
270
277
|
{ id: 'composition', name: 'Composition', short: 'Composition', hint: 'It fills the frame, reads at a glance, and the setting suits the subject.' },
|
|
271
|
-
{ id: '
|
|
278
|
+
{ id: 'color', name: 'Color', short: 'Color', hint: 'A deliberate palette that suits the subject.' },
|
|
272
279
|
{ id: 'light', name: 'Light and depth', short: 'Light and depth', hint: 'Shading, shadows and highlights that make it look solid.' },
|
|
273
280
|
{ id: 'detail', name: 'Detail', short: 'Detail', hint: 'Fine detail and texture that hold up when you enlarge it.' },
|
|
274
281
|
{ id: 'finish', name: 'Clean finish', short: 'Finish', hint: 'Nothing broken: no stray shapes, gaps, bad overlaps or cut-off parts, and any lettering is readable.' },
|
package/harness/Dockerfile
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
# Bump the tag when anything here changes; the tag is written to each log.
|
|
8
8
|
#
|
|
9
9
|
# 4 (18 November 2026): more to draw with and more to look with. Libraries
|
|
10
|
-
# for path booleans, noise, perceptual
|
|
11
|
-
# raster-to-vector tracing; Graphviz; SVGO; a shelf of open-
|
|
10
|
+
# for path booleans, noise, perceptual color, 3D meshes, graph layout and
|
|
11
|
+
# raster-to-vector tracing; Graphviz; SVGO; a shelf of open-license fonts to
|
|
12
12
|
# outline lettering in; and the `zoom`, `compare`, `weigh` and `shrink`
|
|
13
13
|
# commands (box/tools.py). Most entries were pressed against the 200 KB
|
|
14
14
|
# limit (120 of the 287 drawn with image 3 were over 180 KB), which `weigh`
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
# 7 (18 November 2026), from the first harness 2 runs (Haiku 5.5, GPT-6.1
|
|
30
30
|
# Terra, GPT-6.2 Astra): `vb3d`, a module that renders trimesh meshes as
|
|
31
31
|
# shaded SVG (hidden surfaces removed, cast shadows, exact outlines and
|
|
32
|
-
# crease lines), since no run
|
|
32
|
+
# crease lines), since no run modeled its subject in 3D although the request
|
|
33
33
|
# suggests it; OpenCV, which two runs reached for; and `submit drawing.svg`
|
|
34
34
|
# now works (it was refused for its argument, once at reply 37 of 40); and
|
|
35
35
|
# /work/README.md, a one-page guide to the commands, import names and vb3d,
|
|
@@ -48,16 +48,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
48
48
|
chromium \
|
|
49
49
|
# Languages.
|
|
50
50
|
python3 python3-pip python-is-python3 nodejs \
|
|
51
|
-
# Python libraries for geometry,
|
|
51
|
+
# Python libraries for geometry, color, paths and XML.
|
|
52
52
|
python3-numpy python3-scipy python3-pil python3-lxml python3-shapely \
|
|
53
53
|
python3-fonttools python3-matplotlib python3-skimage python3-cairosvg \
|
|
54
|
-
# Exact
|
|
54
|
+
# Exact math, and graphs with their layouts.
|
|
55
55
|
python3-sympy python3-networkx \
|
|
56
56
|
# Vector and raster tools. Graphviz lays out diagrams (dot -Tsvg).
|
|
57
57
|
inkscape imagemagick librsvg2-bin potrace libxml2-utils graphviz scour \
|
|
58
58
|
# Fonts behind the generic families (sans-serif, serif, monospace).
|
|
59
59
|
fonts-dejavu-core fonts-liberation2 fonts-noto-core fonts-noto-color-emoji \
|
|
60
|
-
# Open-
|
|
60
|
+
# Open-license typefaces to turn lettering into outlines with
|
|
61
61
|
# (inkscape --export-text-to-path, or fontTools); fc-list lists them.
|
|
62
62
|
fonts-dejavu-extra fonts-ebgaramond fonts-lato fonts-open-sans fonts-roboto-unhinted \
|
|
63
63
|
fonts-cantarell fonts-urw-base35 fonts-texgyre fonts-firacode fonts-inter \
|
|
@@ -71,11 +71,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
71
71
|
skia-pathops \
|
|
72
72
|
# Smooth noise for organic shapes and texture.
|
|
73
73
|
opensimplex \
|
|
74
|
-
# Perceptual
|
|
74
|
+
# Perceptual color: OKLCH mixing, gradients, contrast.
|
|
75
75
|
coloraide \
|
|
76
76
|
# 3D meshes and solids to model a subject in, then project to 2D.
|
|
77
77
|
trimesh manifold3d mapbox-earcut \
|
|
78
|
-
#
|
|
78
|
+
# Color raster-to-vector tracing (potrace does one color).
|
|
79
79
|
vtracer \
|
|
80
80
|
# Image processing that models reach for by name (cv2).
|
|
81
81
|
opencv-python-headless \
|
package/harness/codex.mjs
CHANGED
|
@@ -335,7 +335,7 @@ const usageOf = (counts = {}) => ({
|
|
|
335
335
|
reasoning: counts.reasoningOutputTokens ?? 0,
|
|
336
336
|
});
|
|
337
337
|
|
|
338
|
-
/** One request Codex logged, as kept: everything but the conversation, which is
|
|
338
|
+
/** One request Codex logged, as kept: everything but the conversation, which is summarized. */
|
|
339
339
|
export function requestRecord(url, body) {
|
|
340
340
|
const { input = [], client_metadata, prompt_cache_key, ...settings } = body;
|
|
341
341
|
return {
|
package/harness/grok-build.mjs
CHANGED
|
@@ -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 }));
|
package/harness/sandbox.mjs
CHANGED
|
@@ -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
package/src/model-apis.js
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
export class ProviderError extends Error {
|
|
15
15
|
/**
|
|
16
16
|
* `fatal`: nothing sent to this provider will work until something is fixed (key, credit).
|
|
17
|
-
* `
|
|
17
|
+
* `canceled`: the person asking gave up; nothing went wrong.
|
|
18
18
|
*/
|
|
19
|
-
constructor(message, { fatal = false,
|
|
19
|
+
constructor(message, { fatal = false, canceled = false } = {}) {
|
|
20
20
|
super(message);
|
|
21
21
|
this.fatal = fatal;
|
|
22
|
-
this.
|
|
22
|
+
this.canceled = canceled;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -30,14 +30,14 @@ export const RETRIES = 4;
|
|
|
30
30
|
// getting on every `timing.pollMs`.
|
|
31
31
|
export const timing = { pollMs: 10_000, giveUpMs: 90 * 60 * 1000, requestMs: 5 * 60 * 1000 };
|
|
32
32
|
|
|
33
|
-
const
|
|
33
|
+
const canceled = () => new ProviderError('Canceled.', { canceled: true });
|
|
34
34
|
|
|
35
35
|
function sleep(ms, signal) {
|
|
36
36
|
return new Promise((resolve, reject) => {
|
|
37
|
-
if (signal?.aborted) return reject(
|
|
37
|
+
if (signal?.aborted) return reject(canceled());
|
|
38
38
|
const stop = () => {
|
|
39
39
|
clearTimeout(timer);
|
|
40
|
-
reject(
|
|
40
|
+
reject(canceled());
|
|
41
41
|
};
|
|
42
42
|
const timer = setTimeout(() => {
|
|
43
43
|
signal?.removeEventListener('abort', stop);
|
|
@@ -80,7 +80,7 @@ async function request(method, url, headers, body, { declined = () => false, sig
|
|
|
80
80
|
signal: limits.length > 1 ? AbortSignal.any(limits) : limits[0],
|
|
81
81
|
});
|
|
82
82
|
} catch (error) {
|
|
83
|
-
if (signal?.aborted) throw
|
|
83
|
+
if (signal?.aborted) throw canceled();
|
|
84
84
|
if (attempt < retries) {
|
|
85
85
|
await sleep(2000 * 2 ** attempt, signal);
|
|
86
86
|
continue;
|
|
@@ -153,7 +153,7 @@ async function eachEvent(response, url, signal, handle) {
|
|
|
153
153
|
for await (const event of events(response)) handle(event);
|
|
154
154
|
} catch (error) {
|
|
155
155
|
if (error instanceof ProviderError) throw error;
|
|
156
|
-
if (signal?.aborted) throw
|
|
156
|
+
if (signal?.aborted) throw canceled();
|
|
157
157
|
throw new ProviderError(`the connection to ${new URL(url).host} dropped before the answer finished (${error.name})`);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
@@ -184,7 +184,7 @@ async function background(first, { at, headers, running, what, signal, onStatus,
|
|
|
184
184
|
try {
|
|
185
185
|
if (running(data)) data = await waitFor(() => sendJson('GET', at, headers, undefined, { signal, retries, declined }), running, what, { signal, onStatus });
|
|
186
186
|
} catch (error) {
|
|
187
|
-
if (error.
|
|
187
|
+
if (error.canceled) sendJson('POST', `${at}/cancel`, headers, undefined, { retries: 0 }).catch(() => {});
|
|
188
188
|
throw error;
|
|
189
189
|
}
|
|
190
190
|
await sendJson('DELETE', at, headers, undefined, { retries, declined }).catch(() => {});
|