@pixelvibing/cli 0.57.0 → 0.58.0

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.
@@ -447,9 +447,10 @@ function createWebApi(fetcher = (input, init2) => fetch(input, init2), base = AP
447
447
  throw error;
448
448
  }
449
449
  };
450
+ const address = new URL(base, globalThis.location?.origin ?? "http://localhost").href.replace(/\/+$/, "");
450
451
  return {
451
452
  /** The API's own address, whole, for the MCP server's next to it (specs/web-app/ R2.14). */
452
- address: new URL(base, globalThis.location?.origin ?? "http://localhost").href.replace(/\/+$/, ""),
453
+ address,
453
454
  /** The project's own token, to the signed-in person alone (specs/accounts-and-sign-in/ R3.12). */
454
455
  projectToken: (projectId) => json2(`/projects/${id(projectId)}/token`),
455
456
  projects: (before = null) => json2(`/projects${before === null ? "" : `?before=${id(before)}`}`),
@@ -524,6 +525,8 @@ function createWebApi(fetcher = (input, init2) => fetch(input, init2), base = AP
524
525
  redo: (jobId) => paying2(async () => (await json2(`/jobs/${id(jobId)}/redo`, { method: "POST" })).id),
525
526
  /** Cancel a job no worker has taken, answering it and the credits that came back; 409 once one has (specs/generation-jobs/ R5). */
526
527
  cancelJob: (jobId) => json2(`/jobs/${id(jobId)}/cancel`, { method: "POST" }),
528
+ /** The address of a project's job changes, as server-sent events (specs/live-generations/ R1.3). */
529
+ jobEventsUrl: (projectId) => `${address}/jobs/events?project=${id(projectId)}`,
527
530
  jobs: (projectId, before = null, kinds = null) => json2(
528
531
  `/jobs?project=${id(projectId)}${before === null ? "" : `&before=${id(before)}`}${kinds === null ? "" : `&kinds=${kinds.map(id).join(",")}`}`
529
532
  ),
@@ -3576,7 +3579,7 @@ function conceptSizeProblem(size) {
3576
3579
  function conceptShapeProblem(shape) {
3577
3580
  if (shape.pixelArt === true) {
3578
3581
  if (shape.size !== void 0) return "a pixel-art concept art is sized in tiles, not in pixels";
3579
- if (shape.background === "transparent") return "a pixel-art concept art is a whole area, with no background to cut away";
3582
+ if (shape.background === "transparent") return "a pixel-art concept art is a whole area, with no background to leave transparent";
3580
3583
  const tiles = shape.tiles ?? DEFAULT_CONCEPT_TILES;
3581
3584
  return designCanvas(tiles) === null ? `a ${tiles.cols}×${tiles.rows} tile concept art does not fit the route's window` : null;
3582
3585
  }
@@ -6190,7 +6193,7 @@ function conceptFields(args, asked, instruction) {
6190
6193
  };
6191
6194
  const drawn = tiles ?? DEFAULT_CONCEPT_TILES;
6192
6195
  const shown2 = size ?? DEFAULT_CONCEPT_SIZE;
6193
- const what = pixelArt ? `a concept art ${drawn.cols}×${drawn.rows} tiles across, as pixel art` : `a concept art ${shown2.width}×${shown2.height} px${transparent ? ", its background cut away" : ""}`;
6196
+ const what = pixelArt ? `a concept art ${drawn.cols}×${drawn.rows} tiles across, as pixel art` : `a concept art ${shown2.width}×${shown2.height} px${transparent ? ", on a transparent background" : ""}`;
6194
6197
  return { fields, words: `${what}${tags.length === 0 ? "" : ` tagged ${tags.join(", ")}`}: ${instruction}` };
6195
6198
  }
6196
6199
  const MAX_REFERENCE_BYTES = 16 * 1024 * 1024;
@@ -7374,7 +7377,7 @@ function terminalOf(streams) {
7374
7377
  step: (title, at = "step") => drawStep(streams.stderr, title, at)
7375
7378
  };
7376
7379
  }
7377
- const version = "0.57.0";
7380
+ const version = "0.58.0";
7378
7381
  const manifest = {
7379
7382
  version
7380
7383
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelvibing/cli",
3
- "version": "0.57.0",
3
+ "version": "0.58.0",
4
4
  "description": "PixelVibing: pixel art game assets from the command line, and the Skills that teach coding assistants to make them.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://pixelvibing.com",
@@ -40,7 +40,8 @@ which every other generation takes as `reference_images`.
40
40
  how it looks, the light, and how its parts meet. Use the style guide's words.
41
41
  - **The size.** `--size` (MCP `size`) in px, `<w>x<h>`, multiples of 16 within `1536x1024`
42
42
  or `1024x1536`, `1536x1024` unless given. `--transparent` (`background: "transparent"`)
43
- cuts the background away, for one thing alone.
43
+ has it drawn on a transparent background, for one thing alone: say so in the words too, and a
44
+ shadow under it only if you want one.
44
45
  - **Tags** say what it is for, at most 8: `anchor` (the look everything holds to),
45
46
  `level-design`, `ui`, `character`, `environment`, `prop`, or one of the project's own
46
47
  (`list_tags`). `pixel-vibing-cli tag` (MCP `tag_asset`) changes them later.