pixelkiln 0.121.0 → 0.121.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.
@@ -497,9 +497,9 @@ attached to that character's own PixelLab record:
497
497
  result sizes (16, 32, 48, 64, 128, or 160 — 128 and 160 render at 2K and cost
498
498
  more), independent of the style's own `size`. A portrait takes no prompt: it
499
499
  is drawn from the parent's pixels, not text, so it is priced and generated
500
- like a state, 10 to 25 generations by the size tier (before PixelLab's October
501
- 2026 price cut, a 16px portrait billed 20, the floor then, and four 128px
502
- portraits billed 25 each, the middle tier then; see
500
+ like a state, 10 to 25 generations by the size tier (a 16px portrait billed 10,
501
+ five times in November 2026; before PixelLab's October 2026 price cut, four
502
+ 128px portraits billed 25 each, the middle tier then; see
503
503
  [`docs/ENDPOINTS.md`](ENDPOINTS.md)). The plan prices 48px and up at 25.
504
504
  It lands as `<asset>.png`, one file like a single-direction generator. Once
505
505
  drawn, it is also attached to the parent's character record upstream (a
@@ -509,16 +509,21 @@ portrait back once set. The `ready` line in the log says when it does. A
509
509
  character used elsewhere, such as an in-game skin, can be left as it is:
510
510
 
511
511
  ```json
512
- "mira.bust": { "portrait": { "of": "mira", "size": 128, "seed": 18964718, "attach": false } }
512
+ "mira.bust": { "portrait": { "of": "mira", "size": 128, "attach": false } }
513
513
  ```
514
514
 
515
- `seed` pins PixelLab's seed for this portrait, in place of the style's `seed`,
516
- and is part of its identity: a new seed is a new portrait. With or without
517
- one, the lock keeps the seed under `providerMetadata.pixellab.character.seed`:
518
- the one the job reports using, or the one sent if it reports none. PixelLab
519
- deletes a finished job within about a day, so the lock is the only place a seed
520
- survives; copy it into `seed` to draw the same bust again. `attach` changes
521
- nothing about the picture and is not part of its identity.
515
+ `attach` changes nothing about the picture and is not part of its identity.
516
+
517
+ **A portrait cannot be pinned to a seed.** Sent a seed, PixelLab ignores the
518
+ character and draws a generic face: in November 2026, three 16px portraits of
519
+ a horned knight, sent seed 334129356 twice and seed 7 once, each came back as a
520
+ blond young man, and the two with the same seed did not match pixel for pixel.
521
+ Two portraits with no seed both drew the knight. So pixelkiln never sends a
522
+ portrait a seed, not even the style's, and refuses `portrait.seed`. The lock
523
+ still keeps the seed the job reports at
524
+ `providerMetadata.pixellab.character.seed` (PixelLab deletes finished jobs
525
+ within about a day), but that seed cannot redraw the portrait; keep the PNG
526
+ instead, which `history` and `restore` already do.
522
527
 
523
528
  **Keeping the character's rotations out of a delivery folder.** A portrait's
524
529
  parent must be in the same style, and the parent's eight rotations land in that
package/docs/ENDPOINTS.md CHANGED
@@ -143,7 +143,7 @@ not probed.
143
143
  | `POST /animate-character`, `mode` template or v3 | `character` loops without skeleton-v3 | Run live, not measured | A v3 text loop on a 96px pro-flash base came back 108×108; template loops need a skeleton template ([Characters, measured](#characters-measured)). Plan: template 1, v3 `ceil(size² × frames / 65536)`. | Billed amounts were not recorded; billed per direction. | High |
144
144
  | `POST /animate-character`, `mode: pro` | `character` loops, `mode: pro` | Unknown | Planned 10 to 25 by canvas ([GENERATORS.md](./GENERATORS.md)). Nothing records a live run. | Everything. | High |
145
145
  | `POST /characters/animations`, `mode: skeleton-v3` | `character` loops, `mode: "skeleton-v3"` (template or sentence) | Measured live | On a v3 character: a template loop billed 3; a sentence loop (no template) billed 3, 8 frames at 96×96 from a 64px character; `west` added with `animation_group_id` billed 3 and joined the group. A standard-engine character is refused with a 500 "no stored 3D skeleton" ([Skeleton-driven motion, measured](#skeleton-driven-motion-measured), October 2026). | `pro` and `pro-flash` bases; other frame counts; the price per direction across 8 directions is untested. | High |
146
- | `POST /portrait-character-pro` (+ `GET /portrait-character-pro/{job_id}`) | `character` portrait | Measured live | A 16px `character_to_portrait` billed 20 and four 128px ones billed 25 each, all before the cut (the floor and middle tiers then, against a plan of 40 for 128px; the plan now says 25); the `GET` reports `usage: null`, so read the job ([Characters, measured](#characters-measured)). The seed is read from the job's `last_response.seed` and kept in the lock. `target_palette` sent, mock only. | The price after the cut (10 to 25); 32, 48, 64 and 160px; whether `last_response` carries `seed` for this job, as it does for `inpaint-v3`. | High |
146
+ | `POST /portrait-character-pro` (+ `GET /portrait-character-pro/{job_id}`) | `character` portrait | Measured live | 16px billed 10 five times (November 2026). Before the cut, 16px billed 20 and four 128px ones billed 25 each (against a plan of 40 then; the plan now says 25). The `GET` reports `usage: null`, so read the job ([Characters, measured](#characters-measured)). The job's `last_response.seed` is the seed it used. **A `seed` in the request makes it ignore the image** ([Portrait seeds](#portrait-seeds-measured)), so none is sent. `target_palette` sent, mock only. | 32, 48, 64, 128 and 160px after the cut. | High |
147
147
  | `POST /characters/{id}/portrait` | `character` portrait attach | Measured live | Free (`usage.generations: 0`); the reply holds the only copy of the stored URL ([Characters, measured](#characters-measured)). | None recorded. | Low |
148
148
  | `POST /transfer-outfit-v2` | `character` outfit | Measured live | A 2-frame 92×92 job billed 20 (before the cut); frames return inline in `last_response.quantized_images` ([Characters, measured](#characters-measured)). `target_palette` sent, mock only. | Other frame counts (2 to 16) and canvases; the price after the cut. | High |
149
149
  | `GET /characters/{id}`, `GET /characters?limit=&offset=` | `adopt`, `fetch --refresh`, `salvage` | Measured live | Free; carries no `usage`; image URLs carry `?t=<updated_at>` ([Object lifecycle](#object-lifecycle)). | None recorded. | Low |
@@ -640,6 +640,30 @@ The two test tilesets and three test tile groups were deleted. The test
640
640
  gallery image was left in the account; the REST API has no route to remove
641
641
  a gallery image.
642
642
 
643
+ ## Portrait seeds, measured
644
+
645
+ November 2026, five `character_to_portrait` jobs at `result_size` 16 from the
646
+ same 80x80 south sprite of a horned, caped knight (sha256 `7819b38c…`), view
647
+ `low top-down`, 10 generations each:
648
+
649
+ | Run | `seed` sent | `last_response.seed` | Result |
650
+ |---|---|---|---|
651
+ | 1 | none | 334129356 | the knight's helmet, horns and red eyes |
652
+ | 2 | 334129356 | 334129356 | a blond young man in a blue collar (190 of 256 pixels differ from run 1) |
653
+ | 3 | 334129356 | 334129356 | a blond young man, close to run 2 but not identical (163 of 256 pixels differ) |
654
+ | 4 | 7 | 7 | a blond young man again |
655
+ | 5 | none | 1180709380 | the knight again, drawn differently (151 of 256 pixels differ from run 1) |
656
+
657
+ - **A seed makes the job ignore the image.** Every run with a seed drew the
658
+ same generic face, whatever the seed; both without one followed the sprite.
659
+ pixelkiln therefore never sends `seed` to this endpoint and refuses
660
+ `portrait.seed`.
661
+ - **A seed does not reproduce a portrait.** Run 1 reported the seed it used;
662
+ sending it back did not redraw run 1, and the same seed twice did not give
663
+ the same bytes.
664
+ - `last_response.seed` is present on this job, as on `inpaint-v3`; the lock
665
+ keeps it for the record.
666
+
643
667
  ## Talking portraits, measured
644
668
 
645
669
  Wrapped as `pixelkiln talk` ([CLI reference](./CLI.md#talk)). Measured on 14
package/docs/MANIFEST.md CHANGED
@@ -67,7 +67,7 @@ not merely a label edit.
67
67
  | `revision` | object | Controlled dependency on another asset: `image-to-image`, `inpaint`, or `outpaint`; on PixelLab also `reduce-colors`, `correct-pixelart`, `remove-background`, `normal-map`, the animate modes (`animate`, `animate-pixminimax`, `animate-skeleton`), `interpolate`, and `edit-animation`. `engine: "pro-flash"` selects PixelLab's Pro Flash tier for `image-to-image`/`inpaint`. See [controlled revisions](REVISIONS.md). |
68
68
  | `state` | object | `character` styles: a pose or outfit of another character asset. See [Characters](./CHARACTERS.md). |
69
69
  | `animation` | object | `character` styles: a loop of another character asset in one direction. `directions` (a list, instead of `direction`) declares the loop for several directions at once and fills the unnamed flips with mirrors; see [One loop, several directions](./CHARACTERS.md#one-loop-several-directions). `mode: "skeleton-v3"` with no `template` animates the asset's `prompt` as a sentence (3–15 `frames`, default 8; a v3 base); see [Loops from a sentence](./CHARACTERS.md#loops-from-a-sentence). `motionFrom` (an asset id) makes a sentence loop follow another direction's loop and share its motion; `directions` writes it for you. |
70
- | `portrait` | object | `character` styles: a bust of a base or state's south sprite, `{ "of": "<asset>", "size": 64 }`; `size` is 16, 32, 48, 64 (default), 128, or 160. Optional `seed` pins PixelLab's seed (part of its identity); `attach: false` leaves the parent's PixelLab record without the portrait. See [Portraits](./CHARACTERS.md#portraits). |
70
+ | `portrait` | object | `character` styles: a bust of a base or state's south sprite, `{ "of": "<asset>", "size": 64 }`; `size` is 16, 32, 48, 64 (default), 128, or 160. `attach: false` leaves the parent's PixelLab record without the portrait. A portrait takes no `seed`: sent one, PixelLab ignores the character, so `portrait.seed` is refused and the style's `seed` is not sent. See [Portraits](./CHARACTERS.md#portraits). |
71
71
  | `outfit` | object | `character` styles: an existing loop's frames re-clothed from an outfit image, `{ "of": "<loop asset>", "reference": "<image>" }`, with optional `additionalInstructions`. See [Outfit transfer](./CHARACTERS.md#outfit-transfer). |
72
72
  | `mirror` | string | Another asset of the same style flipped left to right, made locally at no cost. See [Mirrors](./CHARACTERS.md#mirrors). |
73
73
  | `initImage` | string | `pixflux`, `map` and `isometricTile` styles: a PNG to start the drawing from, relative to the manifest. See [Starting from an image](#starting-from-an-image). |
@@ -485,7 +485,14 @@ The transform is one of:
485
485
  costs nothing in any unit. The plan reports a derived asset `stale`, free to fix,
486
486
  when its source's recorded output, its `file`, the transform, or its parameters
487
487
  change. An edit by hand makes it `orphaned`, like any generated file. The lock entry
488
- records the input's hash under `derive`.
488
+ records the input's hash under `derive`. A run that only derives needs no
489
+ provider key.
490
+
491
+ In a style with a `quality` profile, a derived asset waits until its source's
492
+ refined output is approved; `plan` and `refine` show it as blocked until then,
493
+ and `refine` counts it as blocked, not failed (it still exits 1, since the style
494
+ cannot be packed yet). Once approved, `gen` derives it, and it is refined and
495
+ approved like any other asset in the style.
489
496
 
490
497
  ### `external`: built elsewhere, tracked here
491
498
 
package/docs/TILES.md CHANGED
@@ -198,6 +198,23 @@ corner positions. For edge masks, bits N/E/S/W = 0/1/2/3 are placed into the
198
198
  four edge positions. Terrain names come from the provider metadata; editor
199
199
  colors are deterministic display colors and do not alter the artwork.
200
200
 
201
+ **How it was checked.** Tiled 1.12.2, from a script run with `tiled --evaluate`:
202
+ each exported `.tsj` was loaded, a 12x10 map was painted with Tiled's own Wang
203
+ tool (`TileLayer.wangEdit`, corrections on), every cell's tile was read back,
204
+ and its Wang id was compared with what was painted. `tmxrasterizer` drew each
205
+ map to check by eye. All from real PixelLab art, November 2026:
206
+
207
+ | Set | Wang set | Painted | Cells missing a tile | Cells with the wrong corners or sides |
208
+ |---|---|---|---|---|
209
+ | lake (single set) | corner, 2 colours | a lake with a bay | 0 of 120 | 0 |
210
+ | marsh (single set) | corner, 2 colours | the same | 0 of 120 | 0 |
211
+ | coast (`--merge-connected`, two sets) | corner, 3 colours | ocean, a sand island, a grass field inside it | 0 of 120 | 0 |
212
+ | isometric ground, 32px | corner, 2 colours, isometric grid, `tileoffset` | the same shapes on a diamond map | 0 of 120 | 0 |
213
+ | isometric road, 48px | edge, 2 colours, isometric grid 48x16 | 23 road cells: a long road, a crossing, a T and a corner | 0 of 120 | 0 |
214
+
215
+ Painting two colours that no set joins (ocean straight against grass in the
216
+ merged coast) leaves those cells empty, as in Godot and LDtk.
217
+
201
218
  ## Godot 4
202
219
 
203
220
  The `.tres` export creates a `TileSet` containing one `TileSetAtlasSource`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.121.0",
3
+ "version": "0.121.1",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -39,10 +39,11 @@ PixelLab, and it also takes `isometric: true`, `textGuidanceScale` (1 to 20) and
39
39
  `backgroundRemoval: "complex"`; an asset may set `direction`, which only nudges, so state the
40
40
  facing in the prompt too. Each new option changes the asset's hash only when set.
41
41
 
42
- A `portrait` may pin `seed` (a new seed is a new portrait), and the lock always
43
- keeps the seed it drew with at `providerMetadata.pixellab.character.seed`;
44
- PixelLab deletes finished jobs within a day, so that is the only copy. To
45
- redraw a portrait the same way, copy that seed into the manifest. By default the
42
+ A `portrait` cannot be pinned to a seed: sent one, PixelLab ignores the
43
+ character and draws a generic face (measured 3 of 3), so `portrait.seed` is
44
+ refused and the style's `seed` is never sent to it. The lock keeps the seed the
45
+ job reports, but it cannot redraw the portrait; to get a bust back, use
46
+ `history` and `restore`, never a regeneration. By default the
46
47
  bust is attached to the parent's PixelLab character record; when the person
47
48
  uses that character elsewhere, set `attach: false` rather than skipping the
48
49
  portrait. To deliver only the bust and keep the parent's rotations out of the
@@ -225,14 +225,17 @@ Tell the person when it matters:
225
225
  - LDtk: a 16-tile corner set was opened by hand in LDtk 1.5.3. The preview
226
226
  drew correctly, LDtk's own rule matching reproduced the stored tiles, and
227
227
  painting redrew the right tiles. Edge sets are covered by tests only.
228
- - Tiled: the `.tsj` follows Tiled's documented layout but nothing loads it in
229
- CI, and the isometric `tileoffset` has not been opened in Tiled.
228
+ - Tiled: Tiled 1.12.2 loaded the `.tsj` for two single corner sets, a merged
229
+ three-terrain coast, an isometric corner set and the isometric road (edge)
230
+ set, and its own Wang tool painted each with no missing or wrong cells; the
231
+ isometric `tileoffset` drew correctly. Checked by hand once (November 2026),
232
+ not in CI.
230
233
  - Merged exports: tested through the `export` command. A merged LDtk project
231
234
  (two connected sets from real art, three terrains) was opened in LDtk 1.5.3:
232
235
  the preview drew every border, LDtk's own rules reproduced all stored tiles,
233
236
  and painting redrew correctly. The merged Godot export paints in headless
234
237
  Godot. Painting two terrains that have no set between them leaves empty cells
235
- in LDtk, as expected. No Tiled load of a merged export yet.
238
+ in LDtk, as expected. A merged Tiled export painted cleanly in Tiled 1.12.2.
236
239
 
237
240
  Before the person relies on a format, suggest opening one file in the engine
238
241
  and painting a few cells.