vectorbench 3.1.0 → 3.1.1

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 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 licence; the full terms are in
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
- licence:
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 licence (see section 6 of the Apache License). The logo appears in
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
- ## Licences
136
+ ## Licenses
137
137
 
138
138
  - Code: Apache License 2.0 (`LICENSE`). Third-party files keep their own
139
- licences, listed in `NOTICE`.
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 colours and symbols on their face
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 colours and the one solved face; the
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' },
@@ -259,16 +259,17 @@ export const models = [
259
259
  // criteria chart is drawn from. They follow "What wins votes" in the request
260
260
  // above, split where the sandbox gives a model a separate way to get it right:
261
261
  // measurements and 3D for accuracy, generated repetition for detail, computed
262
- // shading and perceptual colour for light and colour, `check` and `zoom` for
262
+ // shading and perceptual color for light and color, `check` and `zoom` for
263
263
  // a clean finish, `frames` for motion.
264
264
  //
265
- // `id` is permanent (it is stored with each judgment). `when: 'animated'`
266
- // is only asked when at least one of the two SVGs moves.
265
+ // `id` is stored with each judgment, so renaming one takes a migration (as
266
+ // migrations/0033_criterion_color.sql did). `when: 'animated'` is only asked
267
+ // when at least one of the two SVGs moves.
267
268
  export const criteria = [
268
269
  { 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
270
  { 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
271
  { id: 'composition', name: 'Composition', short: 'Composition', hint: 'It fills the frame, reads at a glance, and the setting suits the subject.' },
271
- { id: 'colour', name: 'Colour', short: 'Colour', hint: 'A deliberate palette that suits the subject.' },
272
+ { id: 'color', name: 'Color', short: 'Color', hint: 'A deliberate palette that suits the subject.' },
272
273
  { id: 'light', name: 'Light and depth', short: 'Light and depth', hint: 'Shading, shadows and highlights that make it look solid.' },
273
274
  { id: 'detail', name: 'Detail', short: 'Detail', hint: 'Fine detail and texture that hold up when you enlarge it.' },
274
275
  { 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.' },
@@ -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 colour, 3D meshes, graph layout and
11
- # raster-to-vector tracing; Graphviz; SVGO; a shelf of open-licence fonts to
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 modelled its subject in 3D although the request
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, colour, paths and XML.
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 maths, and graphs with their layouts.
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-licence typefaces to turn lettering into outlines with
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 colour: OKLCH mixing, gradients, contrast.
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
- # Colour raster-to-vector tracing (potrace does one colour).
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 summarised. */
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vectorbench",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
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": {
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
- * `cancelled`: the person asking gave up; nothing went wrong.
17
+ * `canceled`: the person asking gave up; nothing went wrong.
18
18
  */
19
- constructor(message, { fatal = false, cancelled = false } = {}) {
19
+ constructor(message, { fatal = false, canceled = false } = {}) {
20
20
  super(message);
21
21
  this.fatal = fatal;
22
- this.cancelled = cancelled;
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 cancelled = () => new ProviderError('Cancelled.', { cancelled: true });
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(cancelled());
37
+ if (signal?.aborted) return reject(canceled());
38
38
  const stop = () => {
39
39
  clearTimeout(timer);
40
- reject(cancelled());
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 cancelled();
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 cancelled();
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.cancelled) sendJson('POST', `${at}/cancel`, headers, undefined, { retries: 0 }).catch(() => {});
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(() => {});